@marimo-team/islands 0.26.1-dev27 → 0.26.1-dev29
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/{ErrorBoundary-zpe6C93k.js → ErrorBoundary-CPcZlpvU.js} +1 -1
- package/dist/{chat-ui-DOvIzlMA.js → chat-ui-CWmSnBs8.js} +899 -899
- package/dist/{code-visibility-BtvMUvQ6.js → code-visibility-CHvnQsso.js} +2 -2
- package/dist/{common-B46KECgx.js → common-9OlCmjdr.js} +6565 -6565
- package/dist/{config-DL9e-OWE.js → config-1ku0tAiU.js} +27 -28
- package/dist/{data-grid-overlay-editor-CLCJ44fs.js → data-grid-overlay-editor-D6x_MBSD.js} +1 -1
- package/dist/{dropdown-menu-DYN2RV5d.js → dropdown-menu-D65ZUqka.js} +1983 -1983
- package/dist/{error-entries-CncQR572.js → error-entries-DFHEq_SO.js} +515 -519
- package/dist/{feedback-button-CnyHlwaY.js → feedback-button-CodkZ3hF.js} +19 -19
- package/dist/{glide-data-editor-C3znsea0.js → glide-data-editor-BZxvtSp-.js} +35 -35
- package/dist/{globals-DHoGn4Qt.js → globals-DFf-tSyE.js} +1 -1
- package/dist/{html-to-image-BU7H-AM1.js → html-to-image-D6Gtk5ik.js} +24005 -23992
- package/dist/main.js +864 -864
- package/dist/{number-overlay-editor-DwK5S3_f.js → number-overlay-editor-CfwFMv_U.js} +1 -1
- package/dist/{process-output-xJm8T5-E.js → process-output-ZBdibqlG.js} +2 -2
- package/dist/{reveal-component-Dsp5kSt3.js → reveal-component-CDfNuSFv.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{vega-component-DpTyTrz3.js → vega-component-D61CTW1X.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/intersection-observer.ts +45 -0
- package/src/components/databases/engine-variable.tsx +2 -2
- package/src/components/dependency-graph/panels.tsx +2 -2
- package/src/components/editor/actions/useCellActionButton.tsx +2 -8
- package/src/components/editor/cell/code/__tests__/code-placeholder.test.tsx +40 -0
- package/src/components/editor/cell/code/cell-editor.tsx +41 -104
- package/src/components/editor/cell/code/code-placeholder.css +61 -11
- package/src/components/editor/cell/code/code-placeholder.tsx +52 -29
- package/src/components/editor/cell/useSplitCell.tsx +2 -2
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +6 -10
- package/src/components/editor/errors/auto-fix.tsx +8 -7
- package/src/components/editor/navigation/__tests__/navigation.test.ts +3 -12
- package/src/components/editor/navigation/focus-utils.ts +20 -8
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +3 -11
- package/src/components/editor/navigation/navigation.ts +2 -2
- package/src/components/editor/notebook-cell.tsx +15 -24
- package/src/components/editor/output/MarimoTracebackOutput.tsx +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +6 -9
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +2 -5
- package/src/components/find-replace/find-replace.tsx +3 -7
- package/src/components/variables/__tests__/variables-table.test.tsx +1 -2
- package/src/core/ai/__tests__/staged-cells.test.ts +6 -39
- package/src/core/ai/staged-cells.ts +2 -20
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +15 -13
- package/src/core/ai/tools/edit-notebook-tool.ts +13 -8
- package/src/core/cells/__tests__/cell-editor-view.test.ts +44 -0
- package/src/core/cells/__tests__/cells.test.ts +0 -1
- package/src/core/cells/__tests__/focus.test.ts +1 -7
- package/src/core/cells/__tests__/harness.ts +0 -1
- package/src/core/cells/cells.ts +15 -10
- package/src/core/cells/focus.ts +1 -1
- package/src/core/cells/scrollCellIntoView.ts +4 -14
- package/src/core/cells/utils.ts +0 -13
- package/src/core/codemirror/__tests__/cell-documents.test.ts +79 -0
- package/src/core/codemirror/__tests__/editor-mount-scheduler.test.ts +75 -105
- package/src/core/codemirror/__tests__/format.test.ts +85 -63
- package/src/core/codemirror/__tests__/use-lazy-editor-mount.test.tsx +193 -0
- package/src/core/codemirror/cell-documents.ts +132 -0
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +0 -1
- package/src/core/codemirror/copilot/getCodes.ts +3 -14
- package/src/core/codemirror/editor-mount-scheduler.ts +41 -48
- package/src/core/codemirror/extensions.ts +2 -2
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -16
- package/src/core/codemirror/find-replace/__tests__/search-highlight.test.ts +30 -0
- package/src/core/codemirror/find-replace/__tests__/unmounted-cells.test.ts +145 -0
- package/src/core/codemirror/find-replace/navigate.ts +88 -129
- package/src/core/codemirror/find-replace/search-highlight.ts +3 -1
- package/src/core/codemirror/find-replace/state.ts +7 -2
- package/src/core/codemirror/format.ts +25 -31
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +8 -9
- package/src/core/codemirror/language/cell-code.ts +7 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +25 -0
- package/src/core/codemirror/lsp/notebook-lsp.ts +6 -16
- package/src/core/codemirror/use-lazy-editor-mount.ts +67 -0
- package/src/core/codemirror/utils.ts +2 -6
- package/src/utils/__tests__/shared-intersection-observer.test.ts +49 -0
- package/src/utils/shared-intersection-observer.ts +53 -0
|
@@ -3761,2079 +3761,2079 @@ function oc(e, t) {
|
|
|
3761
3761
|
return n[0] !== t || n[1] !== r ? (i = ye(r, t), n[0] = t, n[1] = r, n[2] = i) : i = n[2], i;
|
|
3762
3762
|
}
|
|
3763
3763
|
//#endregion
|
|
3764
|
-
//#region ../node_modules/.pnpm/
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
extensions: null,
|
|
3770
|
-
gfm: !0,
|
|
3771
|
-
hooks: null,
|
|
3772
|
-
pedantic: !1,
|
|
3773
|
-
renderer: null,
|
|
3774
|
-
silent: !1,
|
|
3775
|
-
tokenizer: null,
|
|
3776
|
-
walkTokens: null
|
|
3777
|
-
};
|
|
3764
|
+
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria-components/dist/private/utils.mjs
|
|
3765
|
+
var sc = Symbol("default");
|
|
3766
|
+
function cc({ values: e, children: t }) {
|
|
3767
|
+
for (let [n, r] of e) t = /*#__PURE__*/ L.createElement(n.Provider, { value: r }, t);
|
|
3768
|
+
return t;
|
|
3778
3769
|
}
|
|
3779
|
-
var cc = sc();
|
|
3780
3770
|
function lc(e) {
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
}
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
listIsTask: /^\[[ xX]\] /,
|
|
3814
|
-
listReplaceTask: /^\[[ xX]\] +/,
|
|
3815
|
-
anyLine: /\n.*\n/,
|
|
3816
|
-
hrefBrackets: /^<(.*)>$/,
|
|
3817
|
-
tableDelimiter: /[:|]/,
|
|
3818
|
-
tableAlignChars: /^\||\| *$/g,
|
|
3819
|
-
tableRowBlankLine: /\n[ \t]*$/,
|
|
3820
|
-
tableAlignRight: /^ *-+: *$/,
|
|
3821
|
-
tableAlignCenter: /^ *:-+: *$/,
|
|
3822
|
-
tableAlignLeft: /^ *:-+ *$/,
|
|
3823
|
-
startATag: /^<a /i,
|
|
3824
|
-
endATag: /^<\/a>/i,
|
|
3825
|
-
startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
|
|
3826
|
-
endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
|
|
3827
|
-
startAngleBracket: /^</,
|
|
3828
|
-
endAngleBracket: />$/,
|
|
3829
|
-
pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
|
|
3830
|
-
unicodeAlphaNumeric: /[\p{L}\p{N}]/u,
|
|
3831
|
-
escapeTest: /[&<>"']/,
|
|
3832
|
-
escapeReplace: /[&<>"']/g,
|
|
3833
|
-
escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
|
|
3834
|
-
escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
|
|
3835
|
-
unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,
|
|
3836
|
-
caret: /(^|[^\[])\^/g,
|
|
3837
|
-
percentDecode: /%25/g,
|
|
3838
|
-
findPipe: /\|/g,
|
|
3839
|
-
splitPipe: / \|/,
|
|
3840
|
-
slashPipe: /\\\|/g,
|
|
3841
|
-
carriageReturn: /\r\n|\r/g,
|
|
3842
|
-
spaceLine: /^ +$/gm,
|
|
3843
|
-
notSpaceStart: /^\S*/,
|
|
3844
|
-
endingNewline: /\n$/,
|
|
3845
|
-
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
3846
|
-
nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
3847
|
-
hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
3848
|
-
fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
3849
|
-
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
3850
|
-
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
3851
|
-
}, dc = /^(?:[ \t]*(?:\n|$))+/, fc = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, pc = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, mc = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, hc = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, gc = /(?:[*+-]|\d{1,9}[.)])/, _c = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, vc = Z(_c).replace(/bull/g, gc).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(), yc = Z(_c).replace(/bull/g, gc).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(), bc = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, xc = /^[^\n]+/, Sc = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Cc = Z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Sc).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), wc = Z(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, gc).getRegex(), Tc = "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", Ec = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Dc = Z("^ {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", Ec).replace("tag", Tc).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Oc = Z(bc).replace("hr", mc).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", Tc).getRegex(), kc = {
|
|
3852
|
-
blockquote: Z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Oc).getRegex(),
|
|
3853
|
-
code: fc,
|
|
3854
|
-
def: Cc,
|
|
3855
|
-
fences: pc,
|
|
3856
|
-
heading: hc,
|
|
3857
|
-
hr: mc,
|
|
3858
|
-
html: Dc,
|
|
3859
|
-
lheading: vc,
|
|
3860
|
-
list: wc,
|
|
3861
|
-
newline: dc,
|
|
3862
|
-
paragraph: Oc,
|
|
3863
|
-
table: uc,
|
|
3864
|
-
text: xc
|
|
3865
|
-
}, Ac = Z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", mc).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", Tc).getRegex(), jc = {
|
|
3866
|
-
...kc,
|
|
3867
|
-
lheading: yc,
|
|
3868
|
-
table: Ac,
|
|
3869
|
-
paragraph: Z(bc).replace("hr", mc).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ac).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", Tc).getRegex()
|
|
3870
|
-
}, Mc = {
|
|
3871
|
-
...kc,
|
|
3872
|
-
html: Z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Ec).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(),
|
|
3873
|
-
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
3874
|
-
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
3875
|
-
fences: uc,
|
|
3876
|
-
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
3877
|
-
paragraph: Z(bc).replace("hr", mc).replace("heading", " *#{1,6} *[^\n]").replace("lheading", vc).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
3878
|
-
}, Nc = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Pc = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Fc = /^( {2,}|\\)\n(?!\s*$)/, Ic = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Lc = /[\p{P}\p{S}]/u, Rc = /[\s\p{P}\p{S}]/u, zc = /[^\s\p{P}\p{S}]/u, Bc = Z(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Rc).getRegex(), Vc = /(?!~)[\p{P}\p{S}]/u, Hc = /(?!~)[\s\p{P}\p{S}]/u, Uc = /(?:[^\s\p{P}\p{S}]|~)/u, Wc = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Gc = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Kc = Z(Gc, "u").replace(/punct/g, Lc).getRegex(), qc = Z(Gc, "u").replace(/punct/g, Vc).getRegex(), Jc = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Yc = Z(Jc, "gu").replace(/notPunctSpace/g, zc).replace(/punctSpace/g, Rc).replace(/punct/g, Lc).getRegex(), Xc = Z(Jc, "gu").replace(/notPunctSpace/g, Uc).replace(/punctSpace/g, Hc).replace(/punct/g, Vc).getRegex(), Zc = Z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, zc).replace(/punctSpace/g, Rc).replace(/punct/g, Lc).getRegex(), Qc = Z(/\\(punct)/, "gu").replace(/punct/g, Lc).getRegex(), $c = Z(/^<(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(), el = Z(Ec).replace("(?:-->|$)", "-->").getRegex(), tl = Z("^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", el).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), nl = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, rl = Z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", nl).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), il = Z(/^!?\[(label)\]\[(ref)\]/).replace("label", nl).replace("ref", Sc).getRegex(), al = Z(/^!?\[(ref)\](?:\[\])?/).replace("ref", Sc).getRegex(), ol = {
|
|
3879
|
-
_backpedal: uc,
|
|
3880
|
-
anyPunctuation: Qc,
|
|
3881
|
-
autolink: $c,
|
|
3882
|
-
blockSkip: Wc,
|
|
3883
|
-
br: Fc,
|
|
3884
|
-
code: Pc,
|
|
3885
|
-
del: uc,
|
|
3886
|
-
emStrongLDelim: Kc,
|
|
3887
|
-
emStrongRDelimAst: Yc,
|
|
3888
|
-
emStrongRDelimUnd: Zc,
|
|
3889
|
-
escape: Nc,
|
|
3890
|
-
link: rl,
|
|
3891
|
-
nolink: al,
|
|
3892
|
-
punctuation: Bc,
|
|
3893
|
-
reflink: il,
|
|
3894
|
-
reflinkSearch: Z("reflink|nolink(?!\\()", "g").replace("reflink", il).replace("nolink", al).getRegex(),
|
|
3895
|
-
tag: tl,
|
|
3896
|
-
text: Ic,
|
|
3897
|
-
url: uc
|
|
3898
|
-
}, sl = {
|
|
3899
|
-
...ol,
|
|
3900
|
-
link: Z(/^!?\[(label)\]\((.*?)\)/).replace("label", nl).getRegex(),
|
|
3901
|
-
reflink: Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", nl).getRegex()
|
|
3902
|
-
}, cl = {
|
|
3903
|
-
...ol,
|
|
3904
|
-
emStrongRDelimAst: Xc,
|
|
3905
|
-
emStrongLDelim: qc,
|
|
3906
|
-
url: Z(/^((?: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(),
|
|
3907
|
-
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
3908
|
-
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
3909
|
-
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
3910
|
-
}, ll = {
|
|
3911
|
-
...cl,
|
|
3912
|
-
br: Z(Fc).replace("{2,}", "*").getRegex(),
|
|
3913
|
-
text: Z(cl.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
3914
|
-
}, ul = {
|
|
3915
|
-
normal: kc,
|
|
3916
|
-
gfm: jc,
|
|
3917
|
-
pedantic: Mc
|
|
3918
|
-
}, dl = {
|
|
3919
|
-
normal: ol,
|
|
3920
|
-
gfm: cl,
|
|
3921
|
-
breaks: ll,
|
|
3922
|
-
pedantic: sl
|
|
3923
|
-
}, fl = {
|
|
3924
|
-
"&": "&",
|
|
3925
|
-
"<": "<",
|
|
3926
|
-
">": ">",
|
|
3927
|
-
"\"": """,
|
|
3928
|
-
"'": "'"
|
|
3929
|
-
}, pl = (e) => fl[e];
|
|
3930
|
-
function ml(e, t) {
|
|
3931
|
-
if (t) {
|
|
3932
|
-
if (Q.escapeTest.test(e)) return e.replace(Q.escapeReplace, pl);
|
|
3933
|
-
} else if (Q.escapeTestNoEncode.test(e)) return e.replace(Q.escapeReplaceNoEncode, pl);
|
|
3934
|
-
return e;
|
|
3771
|
+
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
|
|
3772
|
+
return (0, L.useMemo)(() => {
|
|
3773
|
+
let e, l, u;
|
|
3774
|
+
return e = typeof t == "function" ? t({
|
|
3775
|
+
...s,
|
|
3776
|
+
defaultClassName: i
|
|
3777
|
+
}) : t, l = typeof n == "function" ? n({
|
|
3778
|
+
...s,
|
|
3779
|
+
defaultStyle: o || {}
|
|
3780
|
+
}) : n, u = typeof r == "function" ? r({
|
|
3781
|
+
...s,
|
|
3782
|
+
defaultChildren: a
|
|
3783
|
+
}) : r ?? a, {
|
|
3784
|
+
className: e ?? i,
|
|
3785
|
+
style: l || o ? {
|
|
3786
|
+
...o,
|
|
3787
|
+
...l
|
|
3788
|
+
} : void 0,
|
|
3789
|
+
children: u ?? a,
|
|
3790
|
+
"data-rac": "",
|
|
3791
|
+
render: c ? (e) => c(e, s) : void 0
|
|
3792
|
+
};
|
|
3793
|
+
}, [
|
|
3794
|
+
t,
|
|
3795
|
+
n,
|
|
3796
|
+
r,
|
|
3797
|
+
i,
|
|
3798
|
+
a,
|
|
3799
|
+
o,
|
|
3800
|
+
s,
|
|
3801
|
+
c
|
|
3802
|
+
]);
|
|
3935
3803
|
}
|
|
3936
|
-
function
|
|
3937
|
-
|
|
3938
|
-
e = encodeURI(e).replace(Q.percentDecode, "%");
|
|
3939
|
-
} catch {
|
|
3940
|
-
return null;
|
|
3941
|
-
}
|
|
3942
|
-
return e;
|
|
3804
|
+
function uc(e, t) {
|
|
3805
|
+
return (n) => t(typeof e == "function" ? e(n) : e, n);
|
|
3943
3806
|
}
|
|
3944
|
-
function
|
|
3945
|
-
let n =
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3807
|
+
function dc(e, t) {
|
|
3808
|
+
let n = (0, L.useContext)(e);
|
|
3809
|
+
if (t === null) return null;
|
|
3810
|
+
if (n && typeof n == "object" && "slots" in n && n.slots) {
|
|
3811
|
+
let e = t || sc;
|
|
3812
|
+
if (!n.slots[e]) {
|
|
3813
|
+
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
|
|
3814
|
+
throw Error(`${r} Valid slot names are ${e}.`);
|
|
3815
|
+
}
|
|
3816
|
+
return n.slots[e];
|
|
3953
3817
|
}
|
|
3954
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(Q.slashPipe, "|");
|
|
3955
3818
|
return n;
|
|
3956
3819
|
}
|
|
3957
|
-
function
|
|
3958
|
-
let r = e.
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3820
|
+
function fc(e, t, n) {
|
|
3821
|
+
let { ref: r, ...i } = dc(n, e.slot) || {}, a = ji((0, L.useMemo)(() => mi(t, r), [t, r])), o = q(i, e);
|
|
3822
|
+
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
|
|
3823
|
+
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
|
|
3824
|
+
...t.defaultStyle,
|
|
3825
|
+
...n
|
|
3826
|
+
}, a = typeof e.style == "function" ? e.style({
|
|
3827
|
+
...t,
|
|
3828
|
+
defaultStyle: r
|
|
3829
|
+
}) : e.style;
|
|
3830
|
+
return {
|
|
3831
|
+
...r,
|
|
3832
|
+
...a
|
|
3833
|
+
};
|
|
3834
|
+
} : {
|
|
3835
|
+
...i.style,
|
|
3836
|
+
...e.style
|
|
3837
|
+
}), [o, a];
|
|
3968
3838
|
}
|
|
3969
|
-
function
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3839
|
+
function pc(e = !0) {
|
|
3840
|
+
let [t, n] = (0, L.useState)(e), r = (0, L.useRef)(!1), i = (0, L.useCallback)((e) => {
|
|
3841
|
+
r.current = !0, n(!!e);
|
|
3842
|
+
}, []);
|
|
3843
|
+
return dr(() => {
|
|
3844
|
+
r.current || n(!1);
|
|
3845
|
+
}, []), [i, t];
|
|
3976
3846
|
}
|
|
3977
|
-
function
|
|
3978
|
-
let
|
|
3979
|
-
r.
|
|
3980
|
-
|
|
3981
|
-
type: e[0].charAt(0) === "!" ? "image" : "link",
|
|
3982
|
-
raw: n,
|
|
3983
|
-
href: a,
|
|
3984
|
-
title: o,
|
|
3985
|
-
text: s,
|
|
3986
|
-
tokens: r.inlineTokens(s)
|
|
3987
|
-
};
|
|
3988
|
-
return r.state.inLink = !1, c;
|
|
3847
|
+
function mc(e) {
|
|
3848
|
+
let t = /^(data-.*)$/, n = {};
|
|
3849
|
+
for (let r in e) t.test(r) || (n[r] = e[r]);
|
|
3850
|
+
return n;
|
|
3989
3851
|
}
|
|
3990
|
-
function
|
|
3991
|
-
let r =
|
|
3992
|
-
|
|
3993
|
-
let
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
return r.length >= i.length ? e.slice(i.length) : e;
|
|
3999
|
-
}).join("\n");
|
|
3852
|
+
function hc(e, t, n) {
|
|
3853
|
+
let { render: r, ...i } = t, a = (0, L.useRef)(null), o = (0, L.useMemo)(() => mi(n, a), [n, a]);
|
|
3854
|
+
dr(() => {}, [e, r]);
|
|
3855
|
+
let s = {
|
|
3856
|
+
...i,
|
|
3857
|
+
ref: o
|
|
3858
|
+
};
|
|
3859
|
+
return r ? r(s, void 0) : /*#__PURE__*/ L.createElement(e, s);
|
|
4000
3860
|
}
|
|
4001
|
-
var
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
}
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
3861
|
+
var gc = {}, _c = new Proxy({}, { get(e, t) {
|
|
3862
|
+
if (typeof t != "string") return;
|
|
3863
|
+
let n = gc[t];
|
|
3864
|
+
return n || (n = /*#__PURE__*/ (0, L.forwardRef)(hc.bind(null, t)), gc[t] = n), n;
|
|
3865
|
+
} }), vc = /*#__PURE__*/ (0, L.createContext)({}), yc = /*#__PURE__*/ Li(function(e, t) {
|
|
3866
|
+
[e, t] = fc(e, t, vc);
|
|
3867
|
+
let { elementType: n = "label", ...r } = e, i = _c[n];
|
|
3868
|
+
return /*#__PURE__*/ L.createElement(i, {
|
|
3869
|
+
className: "react-aria-Label",
|
|
3870
|
+
...r,
|
|
3871
|
+
ref: t
|
|
3872
|
+
});
|
|
3873
|
+
}), bc = /*#__PURE__*/ (0, L.createContext)(null), xc = /*#__PURE__*/ (0, L.createContext)({}), Sc = /*#__PURE__*/ Li(function(e, t) {
|
|
3874
|
+
[e, t] = fc(e, t, xc);
|
|
3875
|
+
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Na(e, t);
|
|
3876
|
+
i = wc(i, r);
|
|
3877
|
+
let { focusProps: o, isFocused: s, isFocusVisible: c } = Ys(e), { hoverProps: l, isHovered: u } = tc({
|
|
3878
|
+
...e,
|
|
3879
|
+
isDisabled: e.isDisabled || r
|
|
3880
|
+
}), d = {
|
|
3881
|
+
isHovered: u,
|
|
3882
|
+
isPressed: (n.isPressed || a) && !r,
|
|
3883
|
+
isFocused: s,
|
|
3884
|
+
isFocusVisible: c,
|
|
3885
|
+
isDisabled: e.isDisabled || !1,
|
|
3886
|
+
isPending: r ?? !1
|
|
3887
|
+
}, f = lc({
|
|
3888
|
+
...e,
|
|
3889
|
+
values: d,
|
|
3890
|
+
defaultClassName: "react-aria-Button"
|
|
3891
|
+
}), p = di(i.id), m = di(), h = i["aria-labelledby"];
|
|
3892
|
+
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
|
|
3893
|
+
let g = (0, L.useRef)(r);
|
|
3894
|
+
(0, L.useEffect)(() => {
|
|
3895
|
+
let e = { "aria-labelledby": h || p };
|
|
3896
|
+
(!g.current && s && r || g.current && s && !r) && Ia(e, "assertive"), g.current = r;
|
|
3897
|
+
}, [
|
|
3898
|
+
r,
|
|
3899
|
+
s,
|
|
3900
|
+
h,
|
|
3901
|
+
p
|
|
3902
|
+
]);
|
|
3903
|
+
let _ = la(e, { global: !0 });
|
|
3904
|
+
return delete _.onClick, /*#__PURE__*/ L.createElement(_c.button, {
|
|
3905
|
+
...q(_, f, i, o, l),
|
|
3906
|
+
type: i.type === "submit" && r ? "button" : i.type,
|
|
3907
|
+
id: p,
|
|
3908
|
+
ref: t,
|
|
3909
|
+
"aria-labelledby": h,
|
|
3910
|
+
slot: e.slot || void 0,
|
|
3911
|
+
"aria-disabled": r ? "true" : i["aria-disabled"],
|
|
3912
|
+
"data-disabled": e.isDisabled || void 0,
|
|
3913
|
+
"data-pressed": d.isPressed || void 0,
|
|
3914
|
+
"data-hovered": u || void 0,
|
|
3915
|
+
"data-focused": s || void 0,
|
|
3916
|
+
"data-pending": r || void 0,
|
|
3917
|
+
"data-focus-visible": c || void 0
|
|
3918
|
+
}, /*#__PURE__*/ L.createElement(bc.Provider, { value: { id: m } }, f.children));
|
|
3919
|
+
}), Cc = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
|
|
3920
|
+
function wc(e, t) {
|
|
3921
|
+
if (t) {
|
|
3922
|
+
for (let t in e) t.startsWith("on") && !Cc.test(t) && (e[t] = void 0);
|
|
3923
|
+
e.href = void 0, e.target = void 0;
|
|
4062
3924
|
}
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
3925
|
+
return e;
|
|
3926
|
+
}
|
|
3927
|
+
//#endregion
|
|
3928
|
+
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria-components/dist/private/Text.mjs
|
|
3929
|
+
var Tc = /*#__PURE__*/ (0, L.createContext)({}), Ec = /*#__PURE__*/ Li(function(e, t) {
|
|
3930
|
+
[e, t] = fc(e, t, Tc);
|
|
3931
|
+
let { elementType: n = "span", ...r } = e, i = _c[n];
|
|
3932
|
+
return /*#__PURE__*/ L.createElement(i, {
|
|
3933
|
+
className: "react-aria-Text",
|
|
3934
|
+
...r,
|
|
3935
|
+
ref: t
|
|
3936
|
+
});
|
|
3937
|
+
}), Dc = /*#__PURE__*/ (0, L.createContext)(null), Oc = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
|
|
3938
|
+
return (0, L.useContext)(Dc)?.isInvalid ? /*#__PURE__*/ L.createElement(kc, {
|
|
3939
|
+
...e,
|
|
3940
|
+
ref: t
|
|
3941
|
+
}) : null;
|
|
3942
|
+
}), kc = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
|
|
3943
|
+
let n = (0, L.useContext)(Dc), { elementType: r, ...i } = e, a = la(i, { global: !0 }), o = lc({
|
|
3944
|
+
...i,
|
|
3945
|
+
defaultClassName: "react-aria-FieldError",
|
|
3946
|
+
defaultChildren: n.validationErrors.length === 0 ? void 0 : n.validationErrors.join(" "),
|
|
3947
|
+
values: n
|
|
3948
|
+
});
|
|
3949
|
+
return o.children == null ? null : /*#__PURE__*/ L.createElement(Ec, {
|
|
3950
|
+
slot: "errorMessage",
|
|
3951
|
+
elementType: r,
|
|
3952
|
+
...a,
|
|
3953
|
+
...o,
|
|
3954
|
+
ref: t
|
|
3955
|
+
});
|
|
3956
|
+
}), Ac = /*#__PURE__*/ (0, L.createContext)(null), jc = /*#__PURE__*/ (0, L.createContext)({}), Mc = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
|
|
3957
|
+
[e, t] = fc(e, t, jc);
|
|
3958
|
+
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
|
|
3959
|
+
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
|
|
3960
|
+
let { hoverProps: l, isHovered: u } = tc({
|
|
3961
|
+
onHoverStart: a,
|
|
3962
|
+
onHoverChange: o,
|
|
3963
|
+
onHoverEnd: s,
|
|
3964
|
+
isDisabled: n
|
|
3965
|
+
}), { isFocused: d, isFocusVisible: f, focusProps: p } = Ys({ within: !0 }), m = lc({
|
|
3966
|
+
...e,
|
|
3967
|
+
values: {
|
|
3968
|
+
isHovered: u,
|
|
3969
|
+
isFocusWithin: d,
|
|
3970
|
+
isFocusVisible: f,
|
|
3971
|
+
isDisabled: n,
|
|
3972
|
+
isInvalid: r
|
|
3973
|
+
},
|
|
3974
|
+
defaultClassName: "react-aria-Group"
|
|
3975
|
+
});
|
|
3976
|
+
return /*#__PURE__*/ L.createElement(_c.div, {
|
|
3977
|
+
...q(c, p, l),
|
|
3978
|
+
...m,
|
|
3979
|
+
ref: t,
|
|
3980
|
+
role: e.role ?? "group",
|
|
3981
|
+
slot: e.slot ?? void 0,
|
|
3982
|
+
"data-focus-within": d || void 0,
|
|
3983
|
+
"data-hovered": u || void 0,
|
|
3984
|
+
"data-focus-visible": f || void 0,
|
|
3985
|
+
"data-disabled": n || void 0,
|
|
3986
|
+
"data-invalid": r || void 0,
|
|
3987
|
+
"data-readonly": i || void 0
|
|
3988
|
+
}, m.children);
|
|
3989
|
+
}), Nc = /*#__PURE__*/ (0, L.createContext)({}), Pc = (e) => {
|
|
3990
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
|
|
3991
|
+
return i;
|
|
3992
|
+
}, Fc = /*#__PURE__*/ Li(function(e, t) {
|
|
3993
|
+
[e, t] = fc(e, t, Nc);
|
|
3994
|
+
let { hoverProps: n, isHovered: r } = tc({
|
|
3995
|
+
...e,
|
|
3996
|
+
isDisabled: e.disabled
|
|
3997
|
+
}), { isFocused: i, isFocusVisible: a, focusProps: o } = Ys({
|
|
3998
|
+
isTextInput: !0,
|
|
3999
|
+
autoFocus: e.autoFocus
|
|
4000
|
+
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = lc({
|
|
4001
|
+
...e,
|
|
4002
|
+
values: {
|
|
4003
|
+
isHovered: r,
|
|
4004
|
+
isFocused: i,
|
|
4005
|
+
isFocusVisible: a,
|
|
4006
|
+
isDisabled: e.disabled || !1,
|
|
4007
|
+
isInvalid: s
|
|
4008
|
+
},
|
|
4009
|
+
defaultClassName: "react-aria-Input"
|
|
4010
|
+
});
|
|
4011
|
+
return /*#__PURE__*/ L.createElement(_c.input, {
|
|
4012
|
+
...q(Pc(e), o, n),
|
|
4013
|
+
...c,
|
|
4014
|
+
ref: t,
|
|
4015
|
+
"data-focused": i || void 0,
|
|
4016
|
+
"data-disabled": e.disabled || void 0,
|
|
4017
|
+
"data-hovered": r || void 0,
|
|
4018
|
+
"data-focus-visible": a || void 0,
|
|
4019
|
+
"data-invalid": s || void 0
|
|
4020
|
+
});
|
|
4021
|
+
});
|
|
4022
|
+
//#endregion
|
|
4023
|
+
//#region ../node_modules/.pnpm/react-stately@3.50.0_react@19.3.1/node_modules/react-stately/dist/private/numberfield/useNumberFieldState.mjs
|
|
4024
|
+
function Ic(e) {
|
|
4025
|
+
let { minValue: t, maxValue: n, step: r, formatOptions: i, value: a, defaultValue: o = NaN, onChange: s, locale: c, isDisabled: l, isReadOnly: u, commitBehavior: d = "snap" } = e;
|
|
4026
|
+
a === null && (a = NaN);
|
|
4027
|
+
let f = (0, L.useCallback)((e) => r === void 0 || isNaN(r) ? so(e, t, n) : lo(e, t, n, r), [
|
|
4028
|
+
r,
|
|
4029
|
+
t,
|
|
4030
|
+
n
|
|
4031
|
+
]);
|
|
4032
|
+
a !== void 0 && !isNaN(a) && d === "snap" && (a = f(a)), !isNaN(o) && d === "snap" && (o = f(o));
|
|
4033
|
+
let [p, m] = oo(a, isNaN(o) ? NaN : o, s), [h] = (0, L.useState)(p), [g, _] = (0, L.useState)(() => isNaN(p) ? "" : new v(c, i).format(p)), y = (0, L.useMemo)(() => new po(c, i), [c, i]), b = (0, L.useMemo)(() => y.getNumberingSystem(g), [y, g]), x = (0, L.useMemo)(() => new v(c, {
|
|
4034
|
+
...i,
|
|
4035
|
+
numberingSystem: b
|
|
4036
|
+
}), [
|
|
4037
|
+
c,
|
|
4038
|
+
i,
|
|
4039
|
+
b
|
|
4040
|
+
]), S = (0, L.useMemo)(() => x.resolvedOptions(), [x]), C = (0, L.useCallback)((e) => isNaN(e) || e === null ? "" : x.format(e), [x]), w = Ya({
|
|
4041
|
+
...e,
|
|
4042
|
+
value: p
|
|
4043
|
+
}), T = r !== void 0 && !isNaN(r) ? r : 1;
|
|
4044
|
+
S.style === "percent" && (r === void 0 || isNaN(r)) && (T = .01);
|
|
4045
|
+
let [E, D] = (0, L.useState)(p), [O, ee] = (0, L.useState)(c), [te, ne] = (0, L.useState)(i);
|
|
4046
|
+
(!Object.is(p, E) || c !== O || !Lc(i, te)) && (_(C(p)), D(p), ee(c), ne(i));
|
|
4047
|
+
let k = (0, L.useMemo)(() => y.parse(g), [y, g]), A = (e) => {
|
|
4048
|
+
let t = e === void 0 ? g : e, n = k;
|
|
4049
|
+
if (e !== void 0 && (n = y.parse(t)), !t.length) {
|
|
4050
|
+
m(NaN), _(a === void 0 ? "" : C(p));
|
|
4051
|
+
return;
|
|
4097
4052
|
}
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
if (t) {
|
|
4102
|
-
let n = t[1].trim(), r = n.length > 1, i = {
|
|
4103
|
-
type: "list",
|
|
4104
|
-
raw: "",
|
|
4105
|
-
ordered: r,
|
|
4106
|
-
start: r ? +n.slice(0, -1) : "",
|
|
4107
|
-
loose: !1,
|
|
4108
|
-
items: []
|
|
4109
|
-
};
|
|
4110
|
-
n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
|
|
4111
|
-
let a = this.rules.other.listItemRegex(n), o = !1;
|
|
4112
|
-
for (; e;) {
|
|
4113
|
-
let n = !1, r = "", s = "";
|
|
4114
|
-
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
4115
|
-
r = t[0], e = e.substring(r.length);
|
|
4116
|
-
let c = t[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, (e) => " ".repeat(3 * e.length)), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
4117
|
-
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = t[2].search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
4118
|
-
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d);
|
|
4119
|
-
for (; e;) {
|
|
4120
|
-
let f = e.split("\n", 1)[0], p;
|
|
4121
|
-
if (l = f, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || t.test(l) || n.test(l)) break;
|
|
4122
|
-
if (p.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + p.slice(d);
|
|
4123
|
-
else {
|
|
4124
|
-
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
|
|
4125
|
-
s += "\n" + l;
|
|
4126
|
-
}
|
|
4127
|
-
!u && !l.trim() && (u = !0), r += f + "\n", e = e.substring(f.length + 1), c = p.slice(d);
|
|
4128
|
-
}
|
|
4129
|
-
}
|
|
4130
|
-
i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0));
|
|
4131
|
-
let f = null, p;
|
|
4132
|
-
this.options.gfm && (f = this.rules.other.listIsTask.exec(s), f && (p = f[0] !== "[ ] ", s = s.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
|
|
4133
|
-
type: "list_item",
|
|
4134
|
-
raw: r,
|
|
4135
|
-
task: !!f,
|
|
4136
|
-
checked: p,
|
|
4137
|
-
loose: !1,
|
|
4138
|
-
text: s,
|
|
4139
|
-
tokens: []
|
|
4140
|
-
}), i.raw += r;
|
|
4141
|
-
}
|
|
4142
|
-
let s = i.items.at(-1);
|
|
4143
|
-
if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
|
|
4144
|
-
else return;
|
|
4145
|
-
i.raw = i.raw.trimEnd();
|
|
4146
|
-
for (let e = 0; e < i.items.length; e++) if (this.lexer.state.top = !1, i.items[e].tokens = this.lexer.blockTokens(i.items[e].text, []), !i.loose) {
|
|
4147
|
-
let t = i.items[e].tokens.filter((e) => e.type === "space");
|
|
4148
|
-
i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
|
|
4149
|
-
}
|
|
4150
|
-
if (i.loose) for (let e = 0; e < i.items.length; e++) i.items[e].loose = !0;
|
|
4151
|
-
return i;
|
|
4152
|
-
}
|
|
4153
|
-
}
|
|
4154
|
-
html(e) {
|
|
4155
|
-
let t = this.rules.block.html.exec(e);
|
|
4156
|
-
if (t) return {
|
|
4157
|
-
type: "html",
|
|
4158
|
-
block: !0,
|
|
4159
|
-
raw: t[0],
|
|
4160
|
-
pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
|
|
4161
|
-
text: t[0]
|
|
4162
|
-
};
|
|
4163
|
-
}
|
|
4164
|
-
def(e) {
|
|
4165
|
-
let t = this.rules.block.def.exec(e);
|
|
4166
|
-
if (t) {
|
|
4167
|
-
let e = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
|
|
4168
|
-
return {
|
|
4169
|
-
type: "def",
|
|
4170
|
-
tag: e,
|
|
4171
|
-
raw: t[0],
|
|
4172
|
-
href: n,
|
|
4173
|
-
title: r
|
|
4174
|
-
};
|
|
4053
|
+
if (isNaN(n)) {
|
|
4054
|
+
_(C(p));
|
|
4055
|
+
return;
|
|
4175
4056
|
}
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
let
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
};
|
|
4187
|
-
if (n.length === r.length) {
|
|
4188
|
-
for (let e of r) this.rules.other.tableAlignRight.test(e) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? a.align.push("left") : a.align.push(null);
|
|
4189
|
-
for (let e = 0; e < n.length; e++) a.header.push({
|
|
4190
|
-
text: n[e],
|
|
4191
|
-
tokens: this.lexer.inline(n[e]),
|
|
4192
|
-
header: !0,
|
|
4193
|
-
align: a.align[e]
|
|
4194
|
-
});
|
|
4195
|
-
for (let e of i) a.rows.push(gl(e, a.header.length).map((e, t) => ({
|
|
4196
|
-
text: e,
|
|
4197
|
-
tokens: this.lexer.inline(e),
|
|
4198
|
-
header: !1,
|
|
4199
|
-
align: a.align[t]
|
|
4200
|
-
})));
|
|
4201
|
-
return a;
|
|
4057
|
+
let r = d === "snap" ? f(n) : n;
|
|
4058
|
+
r = y.parse(C(r));
|
|
4059
|
+
let i = r !== p;
|
|
4060
|
+
m(r), _(C(a === void 0 ? r : p)), i && w.commitValidation();
|
|
4061
|
+
}, j = (e, r = 0) => {
|
|
4062
|
+
let i = k;
|
|
4063
|
+
if (isNaN(i)) return lo(isNaN(r) ? 0 : r, t, n, T);
|
|
4064
|
+
{
|
|
4065
|
+
let r = lo(i, t, n, T);
|
|
4066
|
+
return e === "+" && r > i || e === "-" && r < i ? r : lo(Rc(e, i, T), t, n, T);
|
|
4202
4067
|
}
|
|
4068
|
+
}, M = () => {
|
|
4069
|
+
let e = j("+", t);
|
|
4070
|
+
e === p && _(C(e)), m(e), w.commitValidation();
|
|
4071
|
+
}, N = () => {
|
|
4072
|
+
let e = j("-", n);
|
|
4073
|
+
e === p && _(C(e)), m(e), w.commitValidation();
|
|
4074
|
+
}, re = () => {
|
|
4075
|
+
n != null && (m(lo(n, t, n, T)), w.commitValidation());
|
|
4076
|
+
}, P = () => {
|
|
4077
|
+
t != null && (m(t), w.commitValidation());
|
|
4078
|
+
}, F = (0, L.useMemo)(() => !l && !u && (isNaN(k) || n === void 0 || isNaN(n) || lo(k, t, n, T) > k || Rc("+", k, T) <= n), [
|
|
4079
|
+
l,
|
|
4080
|
+
u,
|
|
4081
|
+
t,
|
|
4082
|
+
n,
|
|
4083
|
+
T,
|
|
4084
|
+
k
|
|
4085
|
+
]), ie = (0, L.useMemo)(() => !l && !u && (isNaN(k) || t === void 0 || isNaN(t) || lo(k, t, n, T) < k || Rc("-", k, T) >= t), [
|
|
4086
|
+
l,
|
|
4087
|
+
u,
|
|
4088
|
+
t,
|
|
4089
|
+
n,
|
|
4090
|
+
T,
|
|
4091
|
+
k
|
|
4092
|
+
]), ae = (e) => y.isValidPartialNumber(e, t, n);
|
|
4093
|
+
return {
|
|
4094
|
+
...w,
|
|
4095
|
+
validate: ae,
|
|
4096
|
+
increment: M,
|
|
4097
|
+
incrementToMax: re,
|
|
4098
|
+
decrement: N,
|
|
4099
|
+
decrementToMin: P,
|
|
4100
|
+
canIncrement: F,
|
|
4101
|
+
canDecrement: ie,
|
|
4102
|
+
minValue: t,
|
|
4103
|
+
maxValue: n,
|
|
4104
|
+
numberValue: k,
|
|
4105
|
+
defaultNumberValue: isNaN(o) ? h : o,
|
|
4106
|
+
setNumberValue: m,
|
|
4107
|
+
setInputValue: _,
|
|
4108
|
+
inputValue: g,
|
|
4109
|
+
commit: A
|
|
4110
|
+
};
|
|
4111
|
+
}
|
|
4112
|
+
function Lc(e, t) {
|
|
4113
|
+
if (e === t) return !0;
|
|
4114
|
+
if (!e || !t) return !1;
|
|
4115
|
+
let n = Object.keys(e), r = Object.keys(t);
|
|
4116
|
+
if (n.length !== r.length) return !1;
|
|
4117
|
+
for (let r of n) if (t[r] !== e[r]) return !1;
|
|
4118
|
+
return !0;
|
|
4119
|
+
}
|
|
4120
|
+
function Rc(e, t, n) {
|
|
4121
|
+
let r = e === "+" ? t + n : t - n;
|
|
4122
|
+
if (t % 1 != 0 || n % 1 != 0) {
|
|
4123
|
+
let i = t.toString().split("."), a = n.toString().split("."), o = i[1] && i[1].length || 0, s = a[1] && a[1].length || 0, c = 10 ** Math.max(o, s);
|
|
4124
|
+
t = Math.round(t * c), n = Math.round(n * c), r = e === "+" ? t + n : t - n, r /= c;
|
|
4203
4125
|
}
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4126
|
+
return r;
|
|
4127
|
+
}
|
|
4128
|
+
//#endregion
|
|
4129
|
+
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria-components/dist/private/NumberField.mjs
|
|
4130
|
+
var zc = /*#__PURE__*/ (0, L.createContext)(null), Bc = /*#__PURE__*/ (0, L.createContext)(null), Vc = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
|
|
4131
|
+
[e, t] = fc(e, t, zc);
|
|
4132
|
+
let { validationBehavior: n } = dc(Ac) || {}, r = e.validationBehavior ?? n ?? "native", { locale: i } = h(), a = Ic({
|
|
4133
|
+
...e,
|
|
4134
|
+
locale: i,
|
|
4135
|
+
validationBehavior: r
|
|
4136
|
+
}), o = (0, L.useRef)(null), [s, c] = pc(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: l, groupProps: u, inputProps: d, incrementButtonProps: f, decrementButtonProps: p, descriptionProps: m, errorMessageProps: g, ..._ } = qs({
|
|
4137
|
+
...mc(e),
|
|
4138
|
+
label: c,
|
|
4139
|
+
validationBehavior: r
|
|
4140
|
+
}, a, o), v = lc({
|
|
4141
|
+
...e,
|
|
4142
|
+
values: {
|
|
4143
|
+
state: a,
|
|
4144
|
+
isDisabled: e.isDisabled || !1,
|
|
4145
|
+
isInvalid: _.isInvalid || !1,
|
|
4146
|
+
isRequired: e.isRequired || !1,
|
|
4147
|
+
isReadOnly: e.isReadOnly || !1
|
|
4148
|
+
},
|
|
4149
|
+
defaultClassName: "react-aria-NumberField"
|
|
4150
|
+
}), y = la(e, { global: !0 });
|
|
4151
|
+
return delete y.id, /*#__PURE__*/ L.createElement(cc, { values: [
|
|
4152
|
+
[Bc, a],
|
|
4153
|
+
[jc, u],
|
|
4154
|
+
[Nc, {
|
|
4155
|
+
...d,
|
|
4156
|
+
ref: o
|
|
4157
|
+
}],
|
|
4158
|
+
[vc, {
|
|
4159
|
+
...l,
|
|
4160
|
+
ref: s
|
|
4161
|
+
}],
|
|
4162
|
+
[xc, { slots: {
|
|
4163
|
+
increment: f,
|
|
4164
|
+
decrement: p
|
|
4165
|
+
} }],
|
|
4166
|
+
[Tc, { slots: {
|
|
4167
|
+
description: m,
|
|
4168
|
+
errorMessage: g
|
|
4169
|
+
} }],
|
|
4170
|
+
[Dc, _]
|
|
4171
|
+
] }, /*#__PURE__*/ L.createElement(_c.div, {
|
|
4172
|
+
...y,
|
|
4173
|
+
...v,
|
|
4174
|
+
ref: t,
|
|
4175
|
+
slot: e.slot || void 0,
|
|
4176
|
+
"data-disabled": e.isDisabled || void 0,
|
|
4177
|
+
"data-readonly": e.isReadOnly || void 0,
|
|
4178
|
+
"data-required": e.isRequired || void 0,
|
|
4179
|
+
"data-invalid": _.isInvalid || void 0
|
|
4180
|
+
}), e.name && /*#__PURE__*/ L.createElement("input", {
|
|
4181
|
+
type: "hidden",
|
|
4182
|
+
name: e.name,
|
|
4183
|
+
form: e.form,
|
|
4184
|
+
value: isNaN(a.numberValue) ? "" : a.numberValue,
|
|
4185
|
+
disabled: e.isDisabled || void 0
|
|
4186
|
+
}));
|
|
4187
|
+
}), Hc = xe((e) => {
|
|
4188
|
+
for (let n of [
|
|
4189
|
+
100,
|
|
4190
|
+
20,
|
|
4191
|
+
2,
|
|
4192
|
+
0
|
|
4193
|
+
]) try {
|
|
4194
|
+
return new Intl.NumberFormat(e, {
|
|
4195
|
+
minimumFractionDigits: 0,
|
|
4196
|
+
maximumFractionDigits: n
|
|
4197
|
+
}).format(1), n;
|
|
4198
|
+
} catch (e) {
|
|
4199
|
+
t.error(e);
|
|
4213
4200
|
}
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4201
|
+
return 0;
|
|
4202
|
+
}), Uc = xe((e, t = 1) => new Intl.NumberFormat(e, {
|
|
4203
|
+
minimumFractionDigits: 1,
|
|
4204
|
+
maximumFractionDigits: t,
|
|
4205
|
+
notation: "scientific"
|
|
4206
|
+
})), Wc = xe((e, t = 2) => new Intl.NumberFormat(e, {
|
|
4207
|
+
minimumFractionDigits: 0,
|
|
4208
|
+
maximumFractionDigits: t
|
|
4209
|
+
})), Gc = xe((e) => new Intl.NumberFormat(e, {
|
|
4210
|
+
notation: "engineering",
|
|
4211
|
+
maximumSignificantDigits: 3
|
|
4212
|
+
}));
|
|
4213
|
+
function Kc(e) {
|
|
4214
|
+
if (!Number.isFinite(e) || e === 0) return 0;
|
|
4215
|
+
let t = e.toFixed(12).replace(/\.?0+$/, ""), n = t.indexOf(".");
|
|
4216
|
+
return n === -1 ? 0 : t.length - n - 1;
|
|
4217
|
+
}
|
|
4218
|
+
function qc(e, t) {
|
|
4219
|
+
let n = Kc(t);
|
|
4220
|
+
for (let t of e) n = Math.max(n, Kc(t));
|
|
4221
|
+
return n;
|
|
4222
|
+
}
|
|
4223
|
+
function Jc(e, t, n, r) {
|
|
4224
|
+
let i = n == null ? 0 : Kc(n);
|
|
4225
|
+
if (t && t.length > 0) {
|
|
4226
|
+
let e = Infinity;
|
|
4227
|
+
for (let n = 1; n < t.length; n++) {
|
|
4228
|
+
let r = Math.abs(t[n] - t[n - 1]);
|
|
4229
|
+
r > 0 && r < e && (e = r);
|
|
4224
4230
|
}
|
|
4231
|
+
return Math.max(i, qc(t, Number.isFinite(e) ? e : 0));
|
|
4225
4232
|
}
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
raw: t[0],
|
|
4248
|
-
inLink: this.lexer.state.inLink,
|
|
4249
|
-
inRawBlock: this.lexer.state.inRawBlock,
|
|
4250
|
-
block: !1,
|
|
4251
|
-
text: t[0]
|
|
4252
|
-
};
|
|
4233
|
+
return e == null || !Number.isFinite(e) || e <= 0 ? Math.max(2, i, ...(r ?? []).map(Kc)) : Math.max(i, Kc(e));
|
|
4234
|
+
}
|
|
4235
|
+
function Yc(e, t) {
|
|
4236
|
+
return Number(e.toFixed(t));
|
|
4237
|
+
}
|
|
4238
|
+
function Xc(e, t) {
|
|
4239
|
+
return e == null ? "" : Array.isArray(e) ? String(e) : typeof e == "string" ? e : typeof e == "boolean" ? String(e) : typeof e == "number" || typeof e == "bigint" ? e.toLocaleString(t, {
|
|
4240
|
+
minimumFractionDigits: 0,
|
|
4241
|
+
maximumFractionDigits: 2
|
|
4242
|
+
}) : String(e);
|
|
4243
|
+
}
|
|
4244
|
+
function Zc(e) {
|
|
4245
|
+
return e === 0 ? "0" : Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? null : e > 0 ? "Infinity" : "-Infinity";
|
|
4246
|
+
}
|
|
4247
|
+
function Qc(e, t) {
|
|
4248
|
+
let n = Zc(e);
|
|
4249
|
+
if (n !== null) return n;
|
|
4250
|
+
let r = Math.abs(e);
|
|
4251
|
+
if (r < .01 || r >= 1e6) {
|
|
4252
|
+
let n = t.maximumFractionDigits === void 0 ? 1 : Math.max(1, Math.min(Hc(t.locale), t.maximumFractionDigits + Math.floor(Math.log10(r))));
|
|
4253
|
+
return Uc(t.locale, n).format(e).toLowerCase();
|
|
4253
4254
|
}
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
}
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4255
|
+
let { shouldRound: i, locale: a } = t;
|
|
4256
|
+
return i || t.maximumFractionDigits !== void 0 ? Wc(a, t.maximumFractionDigits ?? 2).format(e) : e.toLocaleString(a, {
|
|
4257
|
+
minimumFractionDigits: 0,
|
|
4258
|
+
maximumFractionDigits: Hc(a)
|
|
4259
|
+
});
|
|
4260
|
+
}
|
|
4261
|
+
var $c = {
|
|
4262
|
+
24: "Y",
|
|
4263
|
+
21: "Z",
|
|
4264
|
+
18: "E",
|
|
4265
|
+
15: "P",
|
|
4266
|
+
12: "T",
|
|
4267
|
+
9: "G",
|
|
4268
|
+
6: "M",
|
|
4269
|
+
3: "k",
|
|
4270
|
+
0: "",
|
|
4271
|
+
"-3": "m",
|
|
4272
|
+
"-6": "µ",
|
|
4273
|
+
"-9": "n",
|
|
4274
|
+
"-12": "p",
|
|
4275
|
+
"-15": "f",
|
|
4276
|
+
"-18": "a",
|
|
4277
|
+
"-21": "z",
|
|
4278
|
+
"-24": "y"
|
|
4279
|
+
};
|
|
4280
|
+
function el(e, t) {
|
|
4281
|
+
let n = Zc(e);
|
|
4282
|
+
if (n !== null) return n;
|
|
4283
|
+
let [r, i] = Gc(t).format(e).split("E");
|
|
4284
|
+
return i in $c ? r + $c[i] : `${r}E${i}`;
|
|
4285
|
+
}
|
|
4286
|
+
//#endregion
|
|
4287
|
+
//#region src/components/ui/number-field.tsx
|
|
4288
|
+
var tl = L.forwardRef((e, t) => {
|
|
4289
|
+
let r = (0, X.c)(53), i, a, o, s, c;
|
|
4290
|
+
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5]) : ({placeholder: o, variant: c, onInputText: a, formatOptions: i, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c);
|
|
4291
|
+
let l = c === void 0 ? "default" : c, { locale: u } = h(), d;
|
|
4292
|
+
r[6] === u ? d = r[7] : (d = Hc(u), r[6] = u, r[7] = d);
|
|
4293
|
+
let f;
|
|
4294
|
+
r[8] !== i || r[9] !== d ? (f = {
|
|
4295
|
+
minimumFractionDigits: 0,
|
|
4296
|
+
maximumFractionDigits: d,
|
|
4297
|
+
...i
|
|
4298
|
+
}, r[8] = i, r[9] = d, r[10] = f) : f = r[10];
|
|
4299
|
+
let p = l === "default" ? "h-6 w-full mb-1" : "h-4 w-full mb-0.5", m = l === "xs" && "text-xs", g;
|
|
4300
|
+
r[11] !== s.className || r[12] !== p || r[13] !== m ? (g = n("shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid", "flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background", "disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid", "focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary", p, m, s.className), r[11] = s.className, r[12] = p, r[13] = m, r[14] = g) : g = r[14];
|
|
4301
|
+
let v = s.isDisabled, y;
|
|
4302
|
+
r[15] === a ? y = r[16] : (y = a ? (e) => a(e.currentTarget.value) : void 0, r[15] = a, r[16] = y);
|
|
4303
|
+
let b = l === "default" ? "px-1.5" : "px-1", x;
|
|
4304
|
+
r[17] === b ? x = r[18] : (x = n("flex-1", "w-full", "placeholder:text-muted-foreground", "outline-hidden", "disabled:cursor-not-allowed disabled:opacity-50", b), r[17] = b, r[18] = x);
|
|
4305
|
+
let S;
|
|
4306
|
+
r[19] !== o || r[20] !== s.isDisabled || r[21] !== t || r[22] !== x || r[23] !== y ? (S = /* @__PURE__ */ (0, R.jsx)(Fc, {
|
|
4307
|
+
ref: t,
|
|
4308
|
+
disabled: v,
|
|
4309
|
+
placeholder: o,
|
|
4310
|
+
onKeyDown: rl,
|
|
4311
|
+
onInput: y,
|
|
4312
|
+
className: x
|
|
4313
|
+
}), r[19] = o, r[20] = s.isDisabled, r[21] = t, r[22] = x, r[23] = y, r[24] = S) : S = r[24];
|
|
4314
|
+
let w = s.isDisabled, T = l === "xs" && "w-2 h-2", E;
|
|
4315
|
+
r[25] === T ? E = r[26] : (E = n("w-3 h-3 -mb-px", T), r[25] = T, r[26] = E);
|
|
4316
|
+
let D;
|
|
4317
|
+
r[27] === E ? D = r[28] : (D = /* @__PURE__ */ (0, R.jsx)(C, {
|
|
4318
|
+
"aria-hidden": !0,
|
|
4319
|
+
className: E
|
|
4320
|
+
}), r[27] = E, r[28] = D);
|
|
4321
|
+
let O;
|
|
4322
|
+
r[29] !== s.isDisabled || r[30] !== D || r[31] !== l ? (O = /* @__PURE__ */ (0, R.jsx)(nl, {
|
|
4323
|
+
slot: "increment",
|
|
4324
|
+
isDisabled: w,
|
|
4325
|
+
variant: l,
|
|
4326
|
+
excludeFromTabOrder: !0,
|
|
4327
|
+
children: D
|
|
4328
|
+
}), r[29] = s.isDisabled, r[30] = D, r[31] = l, r[32] = O) : O = r[32];
|
|
4329
|
+
let ee;
|
|
4330
|
+
r[33] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ (0, R.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), r[33] = ee) : ee = r[33];
|
|
4331
|
+
let te = s.isDisabled, ne = l === "xs" && "w-2 h-2", k;
|
|
4332
|
+
r[34] === ne ? k = r[35] : (k = n("w-3 h-3 -mt-px", ne), r[34] = ne, r[35] = k);
|
|
4333
|
+
let A;
|
|
4334
|
+
r[36] === k ? A = r[37] : (A = /* @__PURE__ */ (0, R.jsx)(_, {
|
|
4335
|
+
"aria-hidden": !0,
|
|
4336
|
+
className: k
|
|
4337
|
+
}), r[36] = k, r[37] = A);
|
|
4338
|
+
let j;
|
|
4339
|
+
r[38] !== s.isDisabled || r[39] !== A || r[40] !== l ? (j = /* @__PURE__ */ (0, R.jsx)(nl, {
|
|
4340
|
+
slot: "decrement",
|
|
4341
|
+
isDisabled: te,
|
|
4342
|
+
variant: l,
|
|
4343
|
+
excludeFromTabOrder: !0,
|
|
4344
|
+
children: A
|
|
4345
|
+
}), r[38] = s.isDisabled, r[39] = A, r[40] = l, r[41] = j) : j = r[41];
|
|
4346
|
+
let M;
|
|
4347
|
+
r[42] !== O || r[43] !== j ? (M = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
4348
|
+
className: "flex flex-col border-s-2",
|
|
4349
|
+
children: [
|
|
4350
|
+
O,
|
|
4351
|
+
ee,
|
|
4352
|
+
j
|
|
4353
|
+
]
|
|
4354
|
+
}), r[42] = O, r[43] = j, r[44] = M) : M = r[44];
|
|
4355
|
+
let N;
|
|
4356
|
+
r[45] !== S || r[46] !== M || r[47] !== g ? (N = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
4357
|
+
className: g,
|
|
4358
|
+
children: [S, M]
|
|
4359
|
+
}), r[45] = S, r[46] = M, r[47] = g, r[48] = N) : N = r[48];
|
|
4360
|
+
let re;
|
|
4361
|
+
return r[49] !== s || r[50] !== N || r[51] !== f ? (re = /* @__PURE__ */ (0, R.jsx)(Vc, {
|
|
4362
|
+
...s,
|
|
4363
|
+
formatOptions: f,
|
|
4364
|
+
children: N
|
|
4365
|
+
}), r[49] = s, r[50] = N, r[51] = f, r[52] = re) : re = r[52], re;
|
|
4366
|
+
});
|
|
4367
|
+
tl.displayName = "NumberField";
|
|
4368
|
+
var nl = (e) => {
|
|
4369
|
+
let t = (0, X.c)(6), r = !e.isDisabled && "hover:text-primary hover:bg-muted", i = e.variant === "default" ? "px-0.5" : "px-0.25", a;
|
|
4370
|
+
t[0] !== r || t[1] !== i ? (a = n("cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary", "disabled:cursor-not-allowed disabled:opacity-50", r, i), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
|
|
4371
|
+
let o;
|
|
4372
|
+
return t[3] !== e || t[4] !== a ? (o = /* @__PURE__ */ (0, R.jsx)(Sc, {
|
|
4373
|
+
...e,
|
|
4374
|
+
className: a
|
|
4375
|
+
}), t[3] = e, t[4] = a, t[5] = o) : o = t[5], o;
|
|
4376
|
+
};
|
|
4377
|
+
function rl(e) {
|
|
4378
|
+
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
4379
|
+
}
|
|
4380
|
+
//#endregion
|
|
4381
|
+
//#region src/components/ui/input.tsx
|
|
4382
|
+
var il = /* @__PURE__ */ (0, R.jsx)(Te, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), al = L.forwardRef((e, t) => {
|
|
4383
|
+
let i = (0, X.c)(29), a, o, s, c;
|
|
4384
|
+
i[0] === e ? (a = i[1], o = i[2], s = i[3], c = i[4]) : ({className: a, type: c, endAdornment: o, ...s} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = s, i[4] = c);
|
|
4385
|
+
let l = s.icon;
|
|
4386
|
+
if (c === "hidden") {
|
|
4387
|
+
let e;
|
|
4388
|
+
return i[5] !== s || i[6] !== t ? (e = /* @__PURE__ */ (0, R.jsx)("input", {
|
|
4389
|
+
type: "hidden",
|
|
4390
|
+
ref: t,
|
|
4391
|
+
...s
|
|
4392
|
+
}), i[5] = s, i[6] = t, i[7] = e) : e = i[7], e;
|
|
4375
4393
|
}
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
}
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4394
|
+
let u;
|
|
4395
|
+
i[8] === s.rootClassName ? u = i[9] : (u = n("relative", s.rootClassName), i[8] = s.rootClassName, i[9] = u);
|
|
4396
|
+
let d;
|
|
4397
|
+
i[10] === l ? d = i[11] : (d = l && /* @__PURE__ */ (0, R.jsx)("div", {
|
|
4398
|
+
className: "absolute inset-y-0 left-0 flex items-center pl-[6px] pointer-events-none text-muted-foreground",
|
|
4399
|
+
children: l
|
|
4400
|
+
}), i[10] = l, i[11] = d);
|
|
4401
|
+
let f = l && "pl-7", p = o && "pr-10", m;
|
|
4402
|
+
i[12] !== a || i[13] !== f || i[14] !== p ? (m = n("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid", "flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50", f, p, a), i[12] = a, i[13] = f, i[14] = p, i[15] = m) : m = i[15];
|
|
4403
|
+
let h;
|
|
4404
|
+
i[16] === Symbol.for("react.memo_cache_sentinel") ? (h = r.stopPropagation(), i[16] = h) : h = i[16];
|
|
4405
|
+
let g;
|
|
4406
|
+
i[17] !== s || i[18] !== t || i[19] !== m || i[20] !== c ? (g = /* @__PURE__ */ (0, R.jsx)("input", {
|
|
4407
|
+
type: c,
|
|
4408
|
+
className: m,
|
|
4409
|
+
ref: t,
|
|
4410
|
+
onClick: h,
|
|
4411
|
+
...s
|
|
4412
|
+
}), i[17] = s, i[18] = t, i[19] = m, i[20] = c, i[21] = g) : g = i[21];
|
|
4413
|
+
let _;
|
|
4414
|
+
i[22] === o ? _ = i[23] : (_ = o && /* @__PURE__ */ (0, R.jsx)("div", {
|
|
4415
|
+
className: "absolute inset-y-0 right-0 flex items-center pr-[6px] text-muted-foreground h-6",
|
|
4416
|
+
children: o
|
|
4417
|
+
}), i[22] = o, i[23] = _);
|
|
4418
|
+
let v;
|
|
4419
|
+
return i[24] !== u || i[25] !== d || i[26] !== g || i[27] !== _ ? (v = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
4420
|
+
className: u,
|
|
4421
|
+
children: [
|
|
4422
|
+
d,
|
|
4423
|
+
g,
|
|
4424
|
+
_
|
|
4425
|
+
]
|
|
4426
|
+
}), i[24] = u, i[25] = d, i[26] = g, i[27] = _, i[28] = v) : v = i[28], v;
|
|
4427
|
+
});
|
|
4428
|
+
al.displayName = "Input";
|
|
4429
|
+
var ol = L.forwardRef((e, t) => {
|
|
4430
|
+
let n = (0, X.c)(16), r, i, a;
|
|
4431
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4432
|
+
let o;
|
|
4433
|
+
n[4] !== i || n[5] !== a.delay || n[6] !== a.value ? (o = {
|
|
4434
|
+
initialValue: a.value,
|
|
4435
|
+
delay: a.delay,
|
|
4436
|
+
onChange: i
|
|
4437
|
+
}, n[4] = i, n[5] = a.delay, n[6] = a.value, n[7] = o) : o = n[7];
|
|
4438
|
+
let { value: s, onChange: c } = ac(o), l;
|
|
4439
|
+
n[8] === c ? l = n[9] : (l = (e) => c(e.target.value), n[8] = c, n[9] = l);
|
|
4440
|
+
let u;
|
|
4441
|
+
return n[10] !== r || n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== s ? (u = /* @__PURE__ */ (0, R.jsx)(al, {
|
|
4442
|
+
ref: t,
|
|
4443
|
+
className: r,
|
|
4444
|
+
...a,
|
|
4445
|
+
onChange: l,
|
|
4446
|
+
value: s
|
|
4447
|
+
}), n[10] = r, n[11] = a, n[12] = t, n[13] = l, n[14] = s, n[15] = u) : u = n[15], u;
|
|
4448
|
+
});
|
|
4449
|
+
ol.displayName = "DebouncedInput";
|
|
4450
|
+
var sl = L.forwardRef((e, t) => {
|
|
4451
|
+
let n = (0, X.c)(13), r, i, a;
|
|
4452
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4453
|
+
let o;
|
|
4454
|
+
n[4] !== i || n[5] !== a.value ? (o = {
|
|
4455
|
+
initialValue: a.value,
|
|
4456
|
+
delay: 200,
|
|
4457
|
+
onChange: i
|
|
4458
|
+
}, n[4] = i, n[5] = a.value, n[6] = o) : o = n[6];
|
|
4459
|
+
let { value: s, onChange: c } = ac(o), l;
|
|
4460
|
+
return n[7] !== r || n[8] !== c || n[9] !== a || n[10] !== t || n[11] !== s ? (l = /* @__PURE__ */ (0, R.jsx)(tl, {
|
|
4461
|
+
ref: t,
|
|
4462
|
+
className: r,
|
|
4463
|
+
...a,
|
|
4464
|
+
onChange: c,
|
|
4465
|
+
value: s
|
|
4466
|
+
}), n[7] = r, n[8] = c, n[9] = a, n[10] = t, n[11] = s, n[12] = l) : l = n[12], l;
|
|
4467
|
+
});
|
|
4468
|
+
sl.displayName = "DebouncedNumberInput";
|
|
4469
|
+
var cl = L.forwardRef((e, t) => {
|
|
4470
|
+
let r = (0, X.c)(24), i, a, o, s, c;
|
|
4471
|
+
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5]) : ({className: i, rootClassName: o, icon: s, clearable: c, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c);
|
|
4472
|
+
let l = s === void 0 ? il : s, u = c === void 0 || c, d = L.useId(), f = a.id || d, p;
|
|
4473
|
+
r[6] === o ? p = r[7] : (p = n("flex items-center border-b px-3", o), r[6] = o, r[7] = p);
|
|
4474
|
+
let m;
|
|
4475
|
+
r[8] === i ? m = r[9] : (m = n("placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", i), r[8] = i, r[9] = m);
|
|
4476
|
+
let h;
|
|
4477
|
+
r[10] !== f || r[11] !== a || r[12] !== t || r[13] !== m ? (h = /* @__PURE__ */ (0, R.jsx)("input", {
|
|
4478
|
+
id: f,
|
|
4479
|
+
ref: t,
|
|
4480
|
+
className: m,
|
|
4481
|
+
...a
|
|
4482
|
+
}), r[10] = f, r[11] = a, r[12] = t, r[13] = m, r[14] = h) : h = r[14];
|
|
4483
|
+
let g;
|
|
4484
|
+
r[15] !== u || r[16] !== f || r[17] !== a ? (g = u && a.value && /* @__PURE__ */ (0, R.jsx)("span", {
|
|
4485
|
+
onPointerDown: (e) => {
|
|
4486
|
+
e.preventDefault(), e.stopPropagation();
|
|
4487
|
+
let t = document.getElementById(f);
|
|
4488
|
+
t && t instanceof HTMLInputElement && (t.focus(), t.value = "", a.onChange?.({
|
|
4489
|
+
...e,
|
|
4490
|
+
target: t,
|
|
4491
|
+
currentTarget: t,
|
|
4492
|
+
type: "change"
|
|
4493
|
+
}));
|
|
4494
|
+
},
|
|
4495
|
+
children: /* @__PURE__ */ (0, R.jsx)(te, { className: "h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer" })
|
|
4496
|
+
}), r[15] = u, r[16] = f, r[17] = a, r[18] = g) : g = r[18];
|
|
4497
|
+
let _;
|
|
4498
|
+
return r[19] !== l || r[20] !== p || r[21] !== h || r[22] !== g ? (_ = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
4499
|
+
className: p,
|
|
4500
|
+
children: [
|
|
4501
|
+
l,
|
|
4502
|
+
h,
|
|
4503
|
+
g
|
|
4504
|
+
]
|
|
4505
|
+
}), r[19] = l, r[20] = p, r[21] = h, r[22] = g, r[23] = _) : _ = r[23], _;
|
|
4506
|
+
});
|
|
4507
|
+
cl.displayName = "SearchInput";
|
|
4508
|
+
var ll = L.forwardRef((e, t) => {
|
|
4509
|
+
let n = (0, X.c)(23), r, i, a;
|
|
4510
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4511
|
+
let [o, s] = L.useState(a.value), c;
|
|
4512
|
+
n[4] !== o || n[5] !== i || n[6] !== a.value ? (c = {
|
|
4513
|
+
prop: a.value,
|
|
4514
|
+
defaultProp: o,
|
|
4515
|
+
onChange: i
|
|
4516
|
+
}, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
|
|
4517
|
+
let [l, u] = ie(c), d, f;
|
|
4518
|
+
n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
|
|
4519
|
+
s(l || "");
|
|
4520
|
+
}, f = [l], n[8] = l, n[9] = d, n[10] = f), L.useEffect(d, f);
|
|
4521
|
+
let p;
|
|
4522
|
+
n[11] === Symbol.for("react.memo_cache_sentinel") ? (p = (e) => s(e.target.value), n[11] = p) : p = n[11];
|
|
4523
|
+
let m, h;
|
|
4524
|
+
n[12] !== o || n[13] !== u ? (m = () => u(o || ""), h = (e) => {
|
|
4525
|
+
e.key !== "Enter" || e.shiftKey || u(o || "");
|
|
4526
|
+
}, n[12] = o, n[13] = u, n[14] = m, n[15] = h) : (m = n[14], h = n[15]);
|
|
4527
|
+
let g;
|
|
4528
|
+
return n[16] !== r || n[17] !== o || n[18] !== a || n[19] !== t || n[20] !== m || n[21] !== h ? (g = /* @__PURE__ */ (0, R.jsx)(al, {
|
|
4529
|
+
ref: t,
|
|
4530
|
+
className: r,
|
|
4531
|
+
...a,
|
|
4532
|
+
value: o,
|
|
4533
|
+
onChange: p,
|
|
4534
|
+
onBlur: m,
|
|
4535
|
+
onKeyDown: h
|
|
4536
|
+
}), n[16] = r, n[17] = o, n[18] = a, n[19] = t, n[20] = m, n[21] = h, n[22] = g) : g = n[22], g;
|
|
4537
|
+
});
|
|
4538
|
+
ll.displayName = "OnBlurredInput";
|
|
4539
|
+
//#endregion
|
|
4540
|
+
//#region ../node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.js
|
|
4541
|
+
function ul() {
|
|
4542
|
+
return {
|
|
4543
|
+
async: !1,
|
|
4544
|
+
breaks: !1,
|
|
4545
|
+
extensions: null,
|
|
4546
|
+
gfm: !0,
|
|
4547
|
+
hooks: null,
|
|
4548
|
+
pedantic: !1,
|
|
4549
|
+
renderer: null,
|
|
4550
|
+
silent: !1,
|
|
4551
|
+
tokenizer: null,
|
|
4552
|
+
walkTokens: null
|
|
4553
|
+
};
|
|
4554
|
+
}
|
|
4555
|
+
var dl = ul();
|
|
4556
|
+
function fl(e) {
|
|
4557
|
+
dl = e;
|
|
4558
|
+
}
|
|
4559
|
+
var pl = { exec: () => null };
|
|
4560
|
+
function Z(e, t = "") {
|
|
4561
|
+
let n = typeof e == "string" ? e : e.source, r = {
|
|
4562
|
+
replace: (e, t) => {
|
|
4563
|
+
let i = typeof t == "string" ? t : t.source;
|
|
4564
|
+
return i = i.replace(Q.caret, "$1"), n = n.replace(e, i), r;
|
|
4565
|
+
},
|
|
4566
|
+
getRegex: () => new RegExp(n, t)
|
|
4567
|
+
};
|
|
4568
|
+
return r;
|
|
4569
|
+
}
|
|
4570
|
+
var Q = {
|
|
4571
|
+
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
4572
|
+
outputLinkReplace: /\\([\[\]])/g,
|
|
4573
|
+
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
4574
|
+
beginningSpace: /^\s+/,
|
|
4575
|
+
endingHash: /#$/,
|
|
4576
|
+
startingSpaceChar: /^ /,
|
|
4577
|
+
endingSpaceChar: / $/,
|
|
4578
|
+
nonSpaceChar: /[^ ]/,
|
|
4579
|
+
newLineCharGlobal: /\n/g,
|
|
4580
|
+
tabCharGlobal: /\t/g,
|
|
4581
|
+
multipleSpaceGlobal: /\s+/g,
|
|
4582
|
+
blankLine: /^[ \t]*$/,
|
|
4583
|
+
doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
|
|
4584
|
+
blockquoteStart: /^ {0,3}>/,
|
|
4585
|
+
blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
|
|
4586
|
+
blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
|
|
4587
|
+
listReplaceTabs: /^\t+/,
|
|
4588
|
+
listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
|
|
4589
|
+
listIsTask: /^\[[ xX]\] /,
|
|
4590
|
+
listReplaceTask: /^\[[ xX]\] +/,
|
|
4591
|
+
anyLine: /\n.*\n/,
|
|
4592
|
+
hrefBrackets: /^<(.*)>$/,
|
|
4593
|
+
tableDelimiter: /[:|]/,
|
|
4594
|
+
tableAlignChars: /^\||\| *$/g,
|
|
4595
|
+
tableRowBlankLine: /\n[ \t]*$/,
|
|
4596
|
+
tableAlignRight: /^ *-+: *$/,
|
|
4597
|
+
tableAlignCenter: /^ *:-+: *$/,
|
|
4598
|
+
tableAlignLeft: /^ *:-+ *$/,
|
|
4599
|
+
startATag: /^<a /i,
|
|
4600
|
+
endATag: /^<\/a>/i,
|
|
4601
|
+
startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
|
|
4602
|
+
endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
|
|
4603
|
+
startAngleBracket: /^</,
|
|
4604
|
+
endAngleBracket: />$/,
|
|
4605
|
+
pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
|
|
4606
|
+
unicodeAlphaNumeric: /[\p{L}\p{N}]/u,
|
|
4607
|
+
escapeTest: /[&<>"']/,
|
|
4608
|
+
escapeReplace: /[&<>"']/g,
|
|
4609
|
+
escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
|
|
4610
|
+
escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
|
|
4611
|
+
unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,
|
|
4612
|
+
caret: /(^|[^\[])\^/g,
|
|
4613
|
+
percentDecode: /%25/g,
|
|
4614
|
+
findPipe: /\|/g,
|
|
4615
|
+
splitPipe: / \|/,
|
|
4616
|
+
slashPipe: /\\\|/g,
|
|
4617
|
+
carriageReturn: /\r\n|\r/g,
|
|
4618
|
+
spaceLine: /^ +$/gm,
|
|
4619
|
+
notSpaceStart: /^\S*/,
|
|
4620
|
+
endingNewline: /\n$/,
|
|
4621
|
+
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
4622
|
+
nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
4623
|
+
hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
4624
|
+
fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
4625
|
+
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
4626
|
+
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
4627
|
+
}, ml = /^(?:[ \t]*(?:\n|$))+/, hl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, gl = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, _l = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, vl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, yl = /(?:[*+-]|\d{1,9}[.)])/, bl = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, xl = Z(bl).replace(/bull/g, yl).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(), Sl = Z(bl).replace(/bull/g, yl).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(), Cl = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, wl = /^[^\n]+/, Tl = /(?!\s*\])(?:\\.|[^\[\]\\])+/, El = Z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Tl).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Dl = Z(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, yl).getRegex(), Ol = "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", kl = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Al = Z("^ {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", kl).replace("tag", Ol).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), jl = Z(Cl).replace("hr", _l).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", Ol).getRegex(), Ml = {
|
|
4628
|
+
blockquote: Z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", jl).getRegex(),
|
|
4629
|
+
code: hl,
|
|
4630
|
+
def: El,
|
|
4631
|
+
fences: gl,
|
|
4632
|
+
heading: vl,
|
|
4633
|
+
hr: _l,
|
|
4634
|
+
html: Al,
|
|
4635
|
+
lheading: xl,
|
|
4636
|
+
list: Dl,
|
|
4637
|
+
newline: ml,
|
|
4638
|
+
paragraph: jl,
|
|
4639
|
+
table: pl,
|
|
4640
|
+
text: wl
|
|
4641
|
+
}, Nl = Z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", _l).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", Ol).getRegex(), Pl = {
|
|
4642
|
+
...Ml,
|
|
4643
|
+
lheading: Sl,
|
|
4644
|
+
table: Nl,
|
|
4645
|
+
paragraph: Z(Cl).replace("hr", _l).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Nl).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", Ol).getRegex()
|
|
4646
|
+
}, Fl = {
|
|
4647
|
+
...Ml,
|
|
4648
|
+
html: Z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", kl).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(),
|
|
4649
|
+
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
4650
|
+
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
4651
|
+
fences: pl,
|
|
4652
|
+
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
4653
|
+
paragraph: Z(Cl).replace("hr", _l).replace("heading", " *#{1,6} *[^\n]").replace("lheading", xl).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
4654
|
+
}, Il = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ll = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Rl = /^( {2,}|\\)\n(?!\s*$)/, zl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Bl = /[\p{P}\p{S}]/u, Vl = /[\s\p{P}\p{S}]/u, Hl = /[^\s\p{P}\p{S}]/u, Ul = Z(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Vl).getRegex(), Wl = /(?!~)[\p{P}\p{S}]/u, Gl = /(?!~)[\s\p{P}\p{S}]/u, Kl = /(?:[^\s\p{P}\p{S}]|~)/u, ql = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Jl = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Yl = Z(Jl, "u").replace(/punct/g, Bl).getRegex(), Xl = Z(Jl, "u").replace(/punct/g, Wl).getRegex(), Zl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ql = Z(Zl, "gu").replace(/notPunctSpace/g, Hl).replace(/punctSpace/g, Vl).replace(/punct/g, Bl).getRegex(), $l = Z(Zl, "gu").replace(/notPunctSpace/g, Kl).replace(/punctSpace/g, Gl).replace(/punct/g, Wl).getRegex(), eu = Z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Hl).replace(/punctSpace/g, Vl).replace(/punct/g, Bl).getRegex(), tu = Z(/\\(punct)/, "gu").replace(/punct/g, Bl).getRegex(), nu = Z(/^<(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(), ru = Z(kl).replace("(?:-->|$)", "-->").getRegex(), iu = Z("^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", ru).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), au = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, ou = Z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", au).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), su = Z(/^!?\[(label)\]\[(ref)\]/).replace("label", au).replace("ref", Tl).getRegex(), cu = Z(/^!?\[(ref)\](?:\[\])?/).replace("ref", Tl).getRegex(), lu = {
|
|
4655
|
+
_backpedal: pl,
|
|
4656
|
+
anyPunctuation: tu,
|
|
4657
|
+
autolink: nu,
|
|
4658
|
+
blockSkip: ql,
|
|
4659
|
+
br: Rl,
|
|
4660
|
+
code: Ll,
|
|
4661
|
+
del: pl,
|
|
4662
|
+
emStrongLDelim: Yl,
|
|
4663
|
+
emStrongRDelimAst: Ql,
|
|
4664
|
+
emStrongRDelimUnd: eu,
|
|
4665
|
+
escape: Il,
|
|
4666
|
+
link: ou,
|
|
4667
|
+
nolink: cu,
|
|
4668
|
+
punctuation: Ul,
|
|
4669
|
+
reflink: su,
|
|
4670
|
+
reflinkSearch: Z("reflink|nolink(?!\\()", "g").replace("reflink", su).replace("nolink", cu).getRegex(),
|
|
4671
|
+
tag: iu,
|
|
4672
|
+
text: zl,
|
|
4673
|
+
url: pl
|
|
4674
|
+
}, uu = {
|
|
4675
|
+
...lu,
|
|
4676
|
+
link: Z(/^!?\[(label)\]\((.*?)\)/).replace("label", au).getRegex(),
|
|
4677
|
+
reflink: Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", au).getRegex()
|
|
4678
|
+
}, du = {
|
|
4679
|
+
...lu,
|
|
4680
|
+
emStrongRDelimAst: $l,
|
|
4681
|
+
emStrongLDelim: Xl,
|
|
4682
|
+
url: Z(/^((?: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(),
|
|
4683
|
+
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
4684
|
+
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
4685
|
+
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
4686
|
+
}, fu = {
|
|
4687
|
+
...du,
|
|
4688
|
+
br: Z(Rl).replace("{2,}", "*").getRegex(),
|
|
4689
|
+
text: Z(du.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
4690
|
+
}, pu = {
|
|
4691
|
+
normal: Ml,
|
|
4692
|
+
gfm: Pl,
|
|
4693
|
+
pedantic: Fl
|
|
4694
|
+
}, mu = {
|
|
4695
|
+
normal: lu,
|
|
4696
|
+
gfm: du,
|
|
4697
|
+
breaks: fu,
|
|
4698
|
+
pedantic: uu
|
|
4699
|
+
}, hu = {
|
|
4700
|
+
"&": "&",
|
|
4701
|
+
"<": "<",
|
|
4702
|
+
">": ">",
|
|
4703
|
+
"\"": """,
|
|
4704
|
+
"'": "'"
|
|
4705
|
+
}, gu = (e) => hu[e];
|
|
4706
|
+
function _u(e, t) {
|
|
4707
|
+
if (t) {
|
|
4708
|
+
if (Q.escapeTest.test(e)) return e.replace(Q.escapeReplace, gu);
|
|
4709
|
+
} else if (Q.escapeTestNoEncode.test(e)) return e.replace(Q.escapeReplaceNoEncode, gu);
|
|
4710
|
+
return e;
|
|
4711
|
+
}
|
|
4712
|
+
function vu(e) {
|
|
4713
|
+
try {
|
|
4714
|
+
e = encodeURI(e).replace(Q.percentDecode, "%");
|
|
4715
|
+
} catch {
|
|
4716
|
+
return null;
|
|
4717
|
+
}
|
|
4718
|
+
return e;
|
|
4719
|
+
}
|
|
4720
|
+
function yu(e, t) {
|
|
4721
|
+
let n = e.replace(Q.findPipe, (e, t, n) => {
|
|
4722
|
+
let r = !1, i = t;
|
|
4723
|
+
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
4724
|
+
return r ? "|" : " |";
|
|
4725
|
+
}).split(Q.splitPipe), r = 0;
|
|
4726
|
+
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
|
|
4727
|
+
if (n.length > t) n.splice(t);
|
|
4728
|
+
else for (; n.length < t;) n.push("");
|
|
4729
|
+
}
|
|
4730
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(Q.slashPipe, "|");
|
|
4731
|
+
return n;
|
|
4732
|
+
}
|
|
4733
|
+
function bu(e, t, n) {
|
|
4734
|
+
let r = e.length;
|
|
4735
|
+
if (r === 0) return "";
|
|
4736
|
+
let i = 0;
|
|
4737
|
+
for (; i < r;) {
|
|
4738
|
+
let a = e.charAt(r - i - 1);
|
|
4739
|
+
if (a === t && !n) i++;
|
|
4740
|
+
else if (a !== t && n) i++;
|
|
4741
|
+
else break;
|
|
4564
4742
|
}
|
|
4565
|
-
|
|
4743
|
+
return e.slice(0, r - i);
|
|
4744
|
+
}
|
|
4745
|
+
function xu(e, t) {
|
|
4746
|
+
if (e.indexOf(t[1]) === -1) return -1;
|
|
4747
|
+
let n = 0;
|
|
4748
|
+
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
4749
|
+
else if (e[r] === t[0]) n++;
|
|
4750
|
+
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
4751
|
+
return n > 0 ? -2 : -1;
|
|
4752
|
+
}
|
|
4753
|
+
function Su(e, t, n, r, i) {
|
|
4754
|
+
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
4755
|
+
r.state.inLink = !0;
|
|
4756
|
+
let c = {
|
|
4757
|
+
type: e[0].charAt(0) === "!" ? "image" : "link",
|
|
4758
|
+
raw: n,
|
|
4759
|
+
href: a,
|
|
4760
|
+
title: o,
|
|
4761
|
+
text: s,
|
|
4762
|
+
tokens: r.inlineTokens(s)
|
|
4763
|
+
};
|
|
4764
|
+
return r.state.inLink = !1, c;
|
|
4765
|
+
}
|
|
4766
|
+
function Cu(e, t, n) {
|
|
4767
|
+
let r = e.match(n.other.indentCodeCompensation);
|
|
4768
|
+
if (r === null) return t;
|
|
4769
|
+
let i = r[1];
|
|
4770
|
+
return t.split("\n").map((e) => {
|
|
4771
|
+
let t = e.match(n.other.beginningSpace);
|
|
4772
|
+
if (t === null) return e;
|
|
4773
|
+
let [r] = t;
|
|
4774
|
+
return r.length >= i.length ? e.slice(i.length) : e;
|
|
4775
|
+
}).join("\n");
|
|
4776
|
+
}
|
|
4777
|
+
var wu = class {
|
|
4566
4778
|
options;
|
|
4567
|
-
|
|
4779
|
+
rules;
|
|
4780
|
+
lexer;
|
|
4568
4781
|
constructor(e) {
|
|
4569
|
-
this.options = e ||
|
|
4782
|
+
this.options = e || dl;
|
|
4570
4783
|
}
|
|
4571
4784
|
space(e) {
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
}
|
|
4578
|
-
blockquote({ tokens: e }) {
|
|
4579
|
-
return `<blockquote>
|
|
4580
|
-
${this.parser.parse(e)}</blockquote>
|
|
4581
|
-
`;
|
|
4582
|
-
}
|
|
4583
|
-
html({ text: e }) {
|
|
4584
|
-
return e;
|
|
4585
|
-
}
|
|
4586
|
-
heading({ tokens: e, depth: t }) {
|
|
4587
|
-
return `<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
4588
|
-
`;
|
|
4589
|
-
}
|
|
4590
|
-
hr(e) {
|
|
4591
|
-
return "<hr>\n";
|
|
4785
|
+
let t = this.rules.block.newline.exec(e);
|
|
4786
|
+
if (t && t[0].length > 0) return {
|
|
4787
|
+
type: "space",
|
|
4788
|
+
raw: t[0]
|
|
4789
|
+
};
|
|
4592
4790
|
}
|
|
4593
|
-
|
|
4594
|
-
let t =
|
|
4595
|
-
|
|
4596
|
-
let
|
|
4597
|
-
|
|
4791
|
+
code(e) {
|
|
4792
|
+
let t = this.rules.block.code.exec(e);
|
|
4793
|
+
if (t) {
|
|
4794
|
+
let e = t[0].replace(this.rules.other.codeRemoveIndent, "");
|
|
4795
|
+
return {
|
|
4796
|
+
type: "code",
|
|
4797
|
+
raw: t[0],
|
|
4798
|
+
codeBlockStyle: "indented",
|
|
4799
|
+
text: this.options.pedantic ? e : bu(e, "\n")
|
|
4800
|
+
};
|
|
4598
4801
|
}
|
|
4599
|
-
let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
|
|
4600
|
-
return "<" + i + a + ">\n" + r + "</" + i + ">\n";
|
|
4601
4802
|
}
|
|
4602
|
-
|
|
4603
|
-
let t =
|
|
4604
|
-
if (
|
|
4605
|
-
let n =
|
|
4606
|
-
|
|
4607
|
-
type: "
|
|
4608
|
-
raw:
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
}
|
|
4803
|
+
fences(e) {
|
|
4804
|
+
let t = this.rules.block.fences.exec(e);
|
|
4805
|
+
if (t) {
|
|
4806
|
+
let e = t[0], n = Cu(e, t[3] || "", this.rules);
|
|
4807
|
+
return {
|
|
4808
|
+
type: "code",
|
|
4809
|
+
raw: e,
|
|
4810
|
+
lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
|
|
4811
|
+
text: n
|
|
4812
|
+
};
|
|
4612
4813
|
}
|
|
4613
|
-
return t += this.parser.parse(e.tokens, !!e.loose), `<li>${t}</li>
|
|
4614
|
-
`;
|
|
4615
|
-
}
|
|
4616
|
-
checkbox({ checked: e }) {
|
|
4617
|
-
return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\">";
|
|
4618
|
-
}
|
|
4619
|
-
paragraph({ tokens: e }) {
|
|
4620
|
-
return `<p>${this.parser.parseInline(e)}</p>
|
|
4621
|
-
`;
|
|
4622
4814
|
}
|
|
4623
|
-
|
|
4624
|
-
let t =
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4815
|
+
heading(e) {
|
|
4816
|
+
let t = this.rules.block.heading.exec(e);
|
|
4817
|
+
if (t) {
|
|
4818
|
+
let e = t[2].trim();
|
|
4819
|
+
if (this.rules.other.endingHash.test(e)) {
|
|
4820
|
+
let t = bu(e, "#");
|
|
4821
|
+
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
4822
|
+
}
|
|
4823
|
+
return {
|
|
4824
|
+
type: "heading",
|
|
4825
|
+
raw: t[0],
|
|
4826
|
+
depth: t[1].length,
|
|
4827
|
+
text: e,
|
|
4828
|
+
tokens: this.lexer.inline(e)
|
|
4829
|
+
};
|
|
4633
4830
|
}
|
|
4634
|
-
return r &&= `<tbody>${r}</tbody>`, "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
|
|
4635
|
-
}
|
|
4636
|
-
tablerow({ text: e }) {
|
|
4637
|
-
return `<tr>
|
|
4638
|
-
${e}</tr>
|
|
4639
|
-
`;
|
|
4640
4831
|
}
|
|
4641
|
-
|
|
4642
|
-
let t = this.
|
|
4643
|
-
|
|
4644
|
-
|
|
4832
|
+
hr(e) {
|
|
4833
|
+
let t = this.rules.block.hr.exec(e);
|
|
4834
|
+
if (t) return {
|
|
4835
|
+
type: "hr",
|
|
4836
|
+
raw: bu(t[0], "\n")
|
|
4837
|
+
};
|
|
4645
4838
|
}
|
|
4646
|
-
|
|
4647
|
-
|
|
4839
|
+
blockquote(e) {
|
|
4840
|
+
let t = this.rules.block.blockquote.exec(e);
|
|
4841
|
+
if (t) {
|
|
4842
|
+
let e = bu(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
4843
|
+
for (; e.length > 0;) {
|
|
4844
|
+
let t = !1, a = [], o = 0;
|
|
4845
|
+
for (; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
4846
|
+
else if (!t) a.push(e[o]);
|
|
4847
|
+
else break;
|
|
4848
|
+
e = e.slice(o);
|
|
4849
|
+
let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
4850
|
+
n = n ? `${n}
|
|
4851
|
+
${s}` : s, r = r ? `${r}
|
|
4852
|
+
${c}` : c;
|
|
4853
|
+
let l = this.lexer.state.top;
|
|
4854
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = l, e.length === 0) break;
|
|
4855
|
+
let u = i.at(-1);
|
|
4856
|
+
if (u?.type === "code") break;
|
|
4857
|
+
if (u?.type === "blockquote") {
|
|
4858
|
+
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
|
|
4859
|
+
i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
|
|
4860
|
+
break;
|
|
4861
|
+
}
|
|
4862
|
+
if (u?.type === "list") {
|
|
4863
|
+
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
|
|
4864
|
+
i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
return {
|
|
4868
|
+
type: "blockquote",
|
|
4869
|
+
raw: n,
|
|
4870
|
+
tokens: i,
|
|
4871
|
+
text: r
|
|
4872
|
+
};
|
|
4873
|
+
}
|
|
4648
4874
|
}
|
|
4649
|
-
|
|
4650
|
-
|
|
4875
|
+
list(e) {
|
|
4876
|
+
let t = this.rules.block.list.exec(e);
|
|
4877
|
+
if (t) {
|
|
4878
|
+
let n = t[1].trim(), r = n.length > 1, i = {
|
|
4879
|
+
type: "list",
|
|
4880
|
+
raw: "",
|
|
4881
|
+
ordered: r,
|
|
4882
|
+
start: r ? +n.slice(0, -1) : "",
|
|
4883
|
+
loose: !1,
|
|
4884
|
+
items: []
|
|
4885
|
+
};
|
|
4886
|
+
n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
|
|
4887
|
+
let a = this.rules.other.listItemRegex(n), o = !1;
|
|
4888
|
+
for (; e;) {
|
|
4889
|
+
let n = !1, r = "", s = "";
|
|
4890
|
+
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
4891
|
+
r = t[0], e = e.substring(r.length);
|
|
4892
|
+
let c = t[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, (e) => " ".repeat(3 * e.length)), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
4893
|
+
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = t[2].search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
4894
|
+
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d);
|
|
4895
|
+
for (; e;) {
|
|
4896
|
+
let f = e.split("\n", 1)[0], p;
|
|
4897
|
+
if (l = f, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || t.test(l) || n.test(l)) break;
|
|
4898
|
+
if (p.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + p.slice(d);
|
|
4899
|
+
else {
|
|
4900
|
+
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
|
|
4901
|
+
s += "\n" + l;
|
|
4902
|
+
}
|
|
4903
|
+
!u && !l.trim() && (u = !0), r += f + "\n", e = e.substring(f.length + 1), c = p.slice(d);
|
|
4904
|
+
}
|
|
4905
|
+
}
|
|
4906
|
+
i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0));
|
|
4907
|
+
let f = null, p;
|
|
4908
|
+
this.options.gfm && (f = this.rules.other.listIsTask.exec(s), f && (p = f[0] !== "[ ] ", s = s.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
|
|
4909
|
+
type: "list_item",
|
|
4910
|
+
raw: r,
|
|
4911
|
+
task: !!f,
|
|
4912
|
+
checked: p,
|
|
4913
|
+
loose: !1,
|
|
4914
|
+
text: s,
|
|
4915
|
+
tokens: []
|
|
4916
|
+
}), i.raw += r;
|
|
4917
|
+
}
|
|
4918
|
+
let s = i.items.at(-1);
|
|
4919
|
+
if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
|
|
4920
|
+
else return;
|
|
4921
|
+
i.raw = i.raw.trimEnd();
|
|
4922
|
+
for (let e = 0; e < i.items.length; e++) if (this.lexer.state.top = !1, i.items[e].tokens = this.lexer.blockTokens(i.items[e].text, []), !i.loose) {
|
|
4923
|
+
let t = i.items[e].tokens.filter((e) => e.type === "space");
|
|
4924
|
+
i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
|
|
4925
|
+
}
|
|
4926
|
+
if (i.loose) for (let e = 0; e < i.items.length; e++) i.items[e].loose = !0;
|
|
4927
|
+
return i;
|
|
4928
|
+
}
|
|
4651
4929
|
}
|
|
4652
|
-
|
|
4653
|
-
|
|
4930
|
+
html(e) {
|
|
4931
|
+
let t = this.rules.block.html.exec(e);
|
|
4932
|
+
if (t) return {
|
|
4933
|
+
type: "html",
|
|
4934
|
+
block: !0,
|
|
4935
|
+
raw: t[0],
|
|
4936
|
+
pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
|
|
4937
|
+
text: t[0]
|
|
4938
|
+
};
|
|
4654
4939
|
}
|
|
4655
|
-
|
|
4656
|
-
|
|
4940
|
+
def(e) {
|
|
4941
|
+
let t = this.rules.block.def.exec(e);
|
|
4942
|
+
if (t) {
|
|
4943
|
+
let e = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
|
|
4944
|
+
return {
|
|
4945
|
+
type: "def",
|
|
4946
|
+
tag: e,
|
|
4947
|
+
raw: t[0],
|
|
4948
|
+
href: n,
|
|
4949
|
+
title: r
|
|
4950
|
+
};
|
|
4951
|
+
}
|
|
4657
4952
|
}
|
|
4658
|
-
|
|
4659
|
-
|
|
4953
|
+
table(e) {
|
|
4954
|
+
let t = this.rules.block.table.exec(e);
|
|
4955
|
+
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
4956
|
+
let n = yu(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
4957
|
+
type: "table",
|
|
4958
|
+
raw: t[0],
|
|
4959
|
+
header: [],
|
|
4960
|
+
align: [],
|
|
4961
|
+
rows: []
|
|
4962
|
+
};
|
|
4963
|
+
if (n.length === r.length) {
|
|
4964
|
+
for (let e of r) this.rules.other.tableAlignRight.test(e) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? a.align.push("left") : a.align.push(null);
|
|
4965
|
+
for (let e = 0; e < n.length; e++) a.header.push({
|
|
4966
|
+
text: n[e],
|
|
4967
|
+
tokens: this.lexer.inline(n[e]),
|
|
4968
|
+
header: !0,
|
|
4969
|
+
align: a.align[e]
|
|
4970
|
+
});
|
|
4971
|
+
for (let e of i) a.rows.push(yu(e, a.header.length).map((e, t) => ({
|
|
4972
|
+
text: e,
|
|
4973
|
+
tokens: this.lexer.inline(e),
|
|
4974
|
+
header: !1,
|
|
4975
|
+
align: a.align[t]
|
|
4976
|
+
})));
|
|
4977
|
+
return a;
|
|
4978
|
+
}
|
|
4660
4979
|
}
|
|
4661
|
-
|
|
4662
|
-
let
|
|
4663
|
-
if (
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4980
|
+
lheading(e) {
|
|
4981
|
+
let t = this.rules.block.lheading.exec(e);
|
|
4982
|
+
if (t) return {
|
|
4983
|
+
type: "heading",
|
|
4984
|
+
raw: t[0],
|
|
4985
|
+
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
4986
|
+
text: t[1],
|
|
4987
|
+
tokens: this.lexer.inline(t[1])
|
|
4988
|
+
};
|
|
4667
4989
|
}
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4990
|
+
paragraph(e) {
|
|
4991
|
+
let t = this.rules.block.paragraph.exec(e);
|
|
4992
|
+
if (t) {
|
|
4993
|
+
let e = t[1].charAt(t[1].length - 1) === "\n" ? t[1].slice(0, -1) : t[1];
|
|
4994
|
+
return {
|
|
4995
|
+
type: "paragraph",
|
|
4996
|
+
raw: t[0],
|
|
4997
|
+
text: e,
|
|
4998
|
+
tokens: this.lexer.inline(e)
|
|
4999
|
+
};
|
|
5000
|
+
}
|
|
4675
5001
|
}
|
|
4676
5002
|
text(e) {
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
return e;
|
|
4685
|
-
}
|
|
4686
|
-
codespan({ text: e }) {
|
|
4687
|
-
return e;
|
|
4688
|
-
}
|
|
4689
|
-
del({ text: e }) {
|
|
4690
|
-
return e;
|
|
4691
|
-
}
|
|
4692
|
-
html({ text: e }) {
|
|
4693
|
-
return e;
|
|
4694
|
-
}
|
|
4695
|
-
text({ text: e }) {
|
|
4696
|
-
return e;
|
|
4697
|
-
}
|
|
4698
|
-
link({ text: e }) {
|
|
4699
|
-
return "" + e;
|
|
4700
|
-
}
|
|
4701
|
-
image({ text: e }) {
|
|
4702
|
-
return "" + e;
|
|
4703
|
-
}
|
|
4704
|
-
br() {
|
|
4705
|
-
return "";
|
|
4706
|
-
}
|
|
4707
|
-
}, Tl = class e {
|
|
4708
|
-
options;
|
|
4709
|
-
renderer;
|
|
4710
|
-
textRenderer;
|
|
4711
|
-
constructor(e) {
|
|
4712
|
-
this.options = e || cc, this.options.renderer = this.options.renderer || new Cl(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new wl();
|
|
5003
|
+
let t = this.rules.block.text.exec(e);
|
|
5004
|
+
if (t) return {
|
|
5005
|
+
type: "text",
|
|
5006
|
+
raw: t[0],
|
|
5007
|
+
text: t[0],
|
|
5008
|
+
tokens: this.lexer.inline(t[0])
|
|
5009
|
+
};
|
|
4713
5010
|
}
|
|
4714
|
-
|
|
4715
|
-
|
|
5011
|
+
escape(e) {
|
|
5012
|
+
let t = this.rules.inline.escape.exec(e);
|
|
5013
|
+
if (t) return {
|
|
5014
|
+
type: "escape",
|
|
5015
|
+
raw: t[0],
|
|
5016
|
+
text: t[1]
|
|
5017
|
+
};
|
|
4716
5018
|
}
|
|
4717
|
-
|
|
4718
|
-
|
|
5019
|
+
tag(e) {
|
|
5020
|
+
let t = this.rules.inline.tag.exec(e);
|
|
5021
|
+
if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
|
|
5022
|
+
type: "html",
|
|
5023
|
+
raw: t[0],
|
|
5024
|
+
inLink: this.lexer.state.inLink,
|
|
5025
|
+
inRawBlock: this.lexer.state.inRawBlock,
|
|
5026
|
+
block: !1,
|
|
5027
|
+
text: t[0]
|
|
5028
|
+
};
|
|
4719
5029
|
}
|
|
4720
|
-
|
|
4721
|
-
let
|
|
4722
|
-
|
|
4723
|
-
let
|
|
4724
|
-
if (this.options.
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
"
|
|
4733
|
-
"
|
|
4734
|
-
"html",
|
|
4735
|
-
"paragraph",
|
|
4736
|
-
"text"
|
|
4737
|
-
].includes(e.type)) {
|
|
4738
|
-
n += t || "";
|
|
4739
|
-
continue;
|
|
5030
|
+
link(e) {
|
|
5031
|
+
let t = this.rules.inline.link.exec(e);
|
|
5032
|
+
if (t) {
|
|
5033
|
+
let e = t[2].trim();
|
|
5034
|
+
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
5035
|
+
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
5036
|
+
let t = bu(e.slice(0, -1), "\\");
|
|
5037
|
+
if ((e.length - t.length) % 2 == 0) return;
|
|
5038
|
+
} else {
|
|
5039
|
+
let e = xu(t[2], "()");
|
|
5040
|
+
if (e === -2) return;
|
|
5041
|
+
if (e > -1) {
|
|
5042
|
+
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
5043
|
+
t[2] = t[2].substring(0, e), t[0] = t[0].substring(0, n).trim(), t[3] = "";
|
|
4740
5044
|
}
|
|
4741
5045
|
}
|
|
4742
|
-
let
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
5046
|
+
let n = t[2], r = "";
|
|
5047
|
+
if (this.options.pedantic) {
|
|
5048
|
+
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
5049
|
+
e && (n = e[1], r = e[3]);
|
|
5050
|
+
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
5051
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Su(t, {
|
|
5052
|
+
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
5053
|
+
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
5054
|
+
}, t[0], this.lexer, this.rules);
|
|
5055
|
+
}
|
|
5056
|
+
}
|
|
5057
|
+
reflink(e, t) {
|
|
5058
|
+
let n;
|
|
5059
|
+
if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
|
|
5060
|
+
let e = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
|
|
5061
|
+
if (!e) {
|
|
5062
|
+
let e = n[0].charAt(0);
|
|
5063
|
+
return {
|
|
5064
|
+
type: "text",
|
|
5065
|
+
raw: e,
|
|
5066
|
+
text: e
|
|
5067
|
+
};
|
|
5068
|
+
}
|
|
5069
|
+
return Su(n, e, n[0], this.lexer, this.rules);
|
|
5070
|
+
}
|
|
5071
|
+
}
|
|
5072
|
+
emStrong(e, t, n = "") {
|
|
5073
|
+
let r = this.rules.inline.emStrongLDelim.exec(e);
|
|
5074
|
+
if (r && !(r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[2]) || !n || this.rules.inline.punctuation.exec(n))) {
|
|
5075
|
+
let n = [...r[0]].length - 1, i, a, o = n, s = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
5076
|
+
for (c.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = c.exec(t)) != null;) {
|
|
5077
|
+
if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i) continue;
|
|
5078
|
+
if (a = [...i].length, r[3] || r[4]) {
|
|
5079
|
+
o += a;
|
|
4770
5080
|
continue;
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
n += t ? this.renderer.paragraph({
|
|
4775
|
-
type: "paragraph",
|
|
4776
|
-
raw: o,
|
|
4777
|
-
text: o,
|
|
4778
|
-
tokens: [{
|
|
4779
|
-
type: "text",
|
|
4780
|
-
raw: o,
|
|
4781
|
-
text: o,
|
|
4782
|
-
escaped: !0
|
|
4783
|
-
}]
|
|
4784
|
-
}) : o;
|
|
5081
|
+
}
|
|
5082
|
+
if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
|
|
5083
|
+
s += a;
|
|
4785
5084
|
continue;
|
|
4786
5085
|
}
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
5086
|
+
if (o -= a, o > 0) continue;
|
|
5087
|
+
a = Math.min(a, a + o + s);
|
|
5088
|
+
let t = [...r[0]][0].length, c = e.slice(0, n + r.index + t + a);
|
|
5089
|
+
if (Math.min(n, a) % 2) {
|
|
5090
|
+
let e = c.slice(1, -1);
|
|
5091
|
+
return {
|
|
5092
|
+
type: "em",
|
|
5093
|
+
raw: c,
|
|
5094
|
+
text: e,
|
|
5095
|
+
tokens: this.lexer.inlineTokens(e)
|
|
5096
|
+
};
|
|
4791
5097
|
}
|
|
5098
|
+
let l = c.slice(2, -2);
|
|
5099
|
+
return {
|
|
5100
|
+
type: "strong",
|
|
5101
|
+
raw: c,
|
|
5102
|
+
text: l,
|
|
5103
|
+
tokens: this.lexer.inlineTokens(l)
|
|
5104
|
+
};
|
|
4792
5105
|
}
|
|
4793
5106
|
}
|
|
4794
|
-
return n;
|
|
4795
5107
|
}
|
|
4796
|
-
|
|
4797
|
-
let
|
|
4798
|
-
|
|
4799
|
-
let
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
let e = "Token with \"" + a.type + "\" type was not found.";
|
|
4852
|
-
if (this.options.silent) return console.error(e), "";
|
|
4853
|
-
throw Error(e);
|
|
4854
|
-
}
|
|
5108
|
+
codespan(e) {
|
|
5109
|
+
let t = this.rules.inline.code.exec(e);
|
|
5110
|
+
if (t) {
|
|
5111
|
+
let e = t[2].replace(this.rules.other.newLineCharGlobal, " "), n = this.rules.other.nonSpaceChar.test(e), r = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
|
|
5112
|
+
return n && r && (e = e.substring(1, e.length - 1)), {
|
|
5113
|
+
type: "codespan",
|
|
5114
|
+
raw: t[0],
|
|
5115
|
+
text: e
|
|
5116
|
+
};
|
|
5117
|
+
}
|
|
5118
|
+
}
|
|
5119
|
+
br(e) {
|
|
5120
|
+
let t = this.rules.inline.br.exec(e);
|
|
5121
|
+
if (t) return {
|
|
5122
|
+
type: "br",
|
|
5123
|
+
raw: t[0]
|
|
5124
|
+
};
|
|
5125
|
+
}
|
|
5126
|
+
del(e) {
|
|
5127
|
+
let t = this.rules.inline.del.exec(e);
|
|
5128
|
+
if (t) return {
|
|
5129
|
+
type: "del",
|
|
5130
|
+
raw: t[0],
|
|
5131
|
+
text: t[2],
|
|
5132
|
+
tokens: this.lexer.inlineTokens(t[2])
|
|
5133
|
+
};
|
|
5134
|
+
}
|
|
5135
|
+
autolink(e) {
|
|
5136
|
+
let t = this.rules.inline.autolink.exec(e);
|
|
5137
|
+
if (t) {
|
|
5138
|
+
let e, n;
|
|
5139
|
+
return t[2] === "@" ? (e = t[1], n = "mailto:" + e) : (e = t[1], n = e), {
|
|
5140
|
+
type: "link",
|
|
5141
|
+
raw: t[0],
|
|
5142
|
+
text: e,
|
|
5143
|
+
href: n,
|
|
5144
|
+
tokens: [{
|
|
5145
|
+
type: "text",
|
|
5146
|
+
raw: e,
|
|
5147
|
+
text: e
|
|
5148
|
+
}]
|
|
5149
|
+
};
|
|
5150
|
+
}
|
|
5151
|
+
}
|
|
5152
|
+
url(e) {
|
|
5153
|
+
let t;
|
|
5154
|
+
if (t = this.rules.inline.url.exec(e)) {
|
|
5155
|
+
let e, n;
|
|
5156
|
+
if (t[2] === "@") e = t[0], n = "mailto:" + e;
|
|
5157
|
+
else {
|
|
5158
|
+
let r;
|
|
5159
|
+
do
|
|
5160
|
+
r = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
|
|
5161
|
+
while (r !== t[0]);
|
|
5162
|
+
e = t[0], n = t[1] === "www." ? "http://" + t[0] : t[0];
|
|
4855
5163
|
}
|
|
5164
|
+
return {
|
|
5165
|
+
type: "link",
|
|
5166
|
+
raw: t[0],
|
|
5167
|
+
text: e,
|
|
5168
|
+
href: n,
|
|
5169
|
+
tokens: [{
|
|
5170
|
+
type: "text",
|
|
5171
|
+
raw: e,
|
|
5172
|
+
text: e
|
|
5173
|
+
}]
|
|
5174
|
+
};
|
|
5175
|
+
}
|
|
5176
|
+
}
|
|
5177
|
+
inlineText(e) {
|
|
5178
|
+
let t = this.rules.inline.text.exec(e);
|
|
5179
|
+
if (t) {
|
|
5180
|
+
let e = this.lexer.state.inRawBlock;
|
|
5181
|
+
return {
|
|
5182
|
+
type: "text",
|
|
5183
|
+
raw: t[0],
|
|
5184
|
+
text: t[0],
|
|
5185
|
+
escaped: e
|
|
5186
|
+
};
|
|
4856
5187
|
}
|
|
4857
|
-
return n;
|
|
4858
5188
|
}
|
|
4859
|
-
},
|
|
5189
|
+
}, Tu = class e {
|
|
5190
|
+
tokens;
|
|
4860
5191
|
options;
|
|
4861
|
-
|
|
5192
|
+
state;
|
|
5193
|
+
tokenizer;
|
|
5194
|
+
inlineQueue;
|
|
4862
5195
|
constructor(e) {
|
|
4863
|
-
this.options = e ||
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
return e;
|
|
5196
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || dl, this.options.tokenizer = this.options.tokenizer || new wu(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
5197
|
+
inLink: !1,
|
|
5198
|
+
inRawBlock: !1,
|
|
5199
|
+
top: !0
|
|
5200
|
+
};
|
|
5201
|
+
let t = {
|
|
5202
|
+
other: Q,
|
|
5203
|
+
block: pu.normal,
|
|
5204
|
+
inline: mu.normal
|
|
5205
|
+
};
|
|
5206
|
+
this.options.pedantic ? (t.block = pu.pedantic, t.inline = mu.pedantic) : this.options.gfm && (t.block = pu.gfm, t.inline = this.options.breaks ? mu.breaks : mu.gfm), this.tokenizer.rules = t;
|
|
4875
5207
|
}
|
|
4876
|
-
|
|
4877
|
-
return
|
|
5208
|
+
static get rules() {
|
|
5209
|
+
return {
|
|
5210
|
+
block: pu,
|
|
5211
|
+
inline: mu
|
|
5212
|
+
};
|
|
4878
5213
|
}
|
|
4879
|
-
|
|
4880
|
-
return
|
|
5214
|
+
static lex(t, n) {
|
|
5215
|
+
return new e(n).lex(t);
|
|
4881
5216
|
}
|
|
4882
|
-
|
|
4883
|
-
return
|
|
5217
|
+
static lexInline(t, n) {
|
|
5218
|
+
return new e(n).inlineTokens(t);
|
|
4884
5219
|
}
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
TextRenderer = wl;
|
|
4893
|
-
Lexer = Sl;
|
|
4894
|
-
Tokenizer = xl;
|
|
4895
|
-
Hooks = El;
|
|
4896
|
-
constructor(...e) {
|
|
4897
|
-
this.use(...e);
|
|
5220
|
+
lex(e) {
|
|
5221
|
+
e = e.replace(Q.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
5222
|
+
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
5223
|
+
let t = this.inlineQueue[e];
|
|
5224
|
+
this.inlineTokens(t.src, t.tokens);
|
|
5225
|
+
}
|
|
5226
|
+
return this.inlineQueue = [], this.tokens;
|
|
4898
5227
|
}
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
5228
|
+
blockTokens(e, t = [], n = !1) {
|
|
5229
|
+
for (this.options.pedantic && (e = e.replace(Q.tabCharGlobal, " ").replace(Q.spaceLine, "")); e;) {
|
|
5230
|
+
let r;
|
|
5231
|
+
if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
5232
|
+
if (r = this.tokenizer.space(e)) {
|
|
5233
|
+
e = e.substring(r.raw.length);
|
|
5234
|
+
let n = t.at(-1);
|
|
5235
|
+
r.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(r);
|
|
5236
|
+
continue;
|
|
4907
5237
|
}
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
n =
|
|
4911
|
-
|
|
5238
|
+
if (r = this.tokenizer.code(e)) {
|
|
5239
|
+
e = e.substring(r.raw.length);
|
|
5240
|
+
let n = t.at(-1);
|
|
5241
|
+
n?.type === "paragraph" || n?.type === "text" ? (n.raw += "\n" + r.raw, n.text += "\n" + r.text, this.inlineQueue.at(-1).src = n.text) : t.push(r);
|
|
5242
|
+
continue;
|
|
5243
|
+
}
|
|
5244
|
+
if ((r = this.tokenizer.fences(e)) || (r = this.tokenizer.heading(e)) || (r = this.tokenizer.hr(e)) || (r = this.tokenizer.blockquote(e)) || (r = this.tokenizer.list(e)) || (r = this.tokenizer.html(e))) {
|
|
5245
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
5246
|
+
continue;
|
|
5247
|
+
}
|
|
5248
|
+
if (r = this.tokenizer.def(e)) {
|
|
5249
|
+
e = e.substring(r.raw.length);
|
|
5250
|
+
let n = t.at(-1);
|
|
5251
|
+
n?.type === "paragraph" || n?.type === "text" ? (n.raw += "\n" + r.raw, n.text += "\n" + r.raw, this.inlineQueue.at(-1).src = n.text) : this.tokens.links[r.tag] || (this.tokens.links[r.tag] = {
|
|
5252
|
+
href: r.href,
|
|
5253
|
+
title: r.title
|
|
5254
|
+
});
|
|
5255
|
+
continue;
|
|
5256
|
+
}
|
|
5257
|
+
if ((r = this.tokenizer.table(e)) || (r = this.tokenizer.lheading(e))) {
|
|
5258
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
5259
|
+
continue;
|
|
5260
|
+
}
|
|
5261
|
+
let i = e;
|
|
5262
|
+
if (this.options.extensions?.startBlock) {
|
|
5263
|
+
let t = Infinity, n = e.slice(1), r;
|
|
5264
|
+
this.options.extensions.startBlock.forEach((e) => {
|
|
5265
|
+
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
5266
|
+
}), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
|
|
4912
5267
|
}
|
|
4913
|
-
|
|
4914
|
-
let
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
5268
|
+
if (this.state.top && (r = this.tokenizer.paragraph(i))) {
|
|
5269
|
+
let a = t.at(-1);
|
|
5270
|
+
n && a?.type === "paragraph" ? (a.raw += "\n" + r.raw, a.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
|
|
5271
|
+
} else if (r = this.tokenizer.text(e)) {
|
|
5272
|
+
e = e.substring(r.raw.length);
|
|
5273
|
+
let n = t.at(-1);
|
|
5274
|
+
n?.type === "text" ? (n.raw += "\n" + r.raw, n.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(r);
|
|
5275
|
+
} else if (e) {
|
|
5276
|
+
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
5277
|
+
if (this.options.silent) {
|
|
5278
|
+
console.error(t);
|
|
5279
|
+
break;
|
|
5280
|
+
}
|
|
5281
|
+
throw Error(t);
|
|
4919
5282
|
}
|
|
4920
5283
|
}
|
|
4921
|
-
return
|
|
5284
|
+
return this.state.top = !0, t;
|
|
4922
5285
|
}
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
};
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
}), n.extensions = t), e.renderer) {
|
|
4946
|
-
let t = this.defaults.renderer || new Cl(this.defaults);
|
|
4947
|
-
for (let n in e.renderer) {
|
|
4948
|
-
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
4949
|
-
if (["options", "parser"].includes(n)) continue;
|
|
4950
|
-
let r = n, i = e.renderer[r], a = t[r];
|
|
4951
|
-
t[r] = (...e) => {
|
|
4952
|
-
let n = i.apply(t, e);
|
|
4953
|
-
return n === !1 && (n = a.apply(t, e)), n || "";
|
|
4954
|
-
};
|
|
4955
|
-
}
|
|
4956
|
-
n.renderer = t;
|
|
5286
|
+
inline(e, t = []) {
|
|
5287
|
+
return this.inlineQueue.push({
|
|
5288
|
+
src: e,
|
|
5289
|
+
tokens: t
|
|
5290
|
+
}), t;
|
|
5291
|
+
}
|
|
5292
|
+
inlineTokens(e, t = []) {
|
|
5293
|
+
let n = e, r = null;
|
|
5294
|
+
if (this.tokens.links) {
|
|
5295
|
+
let e = Object.keys(this.tokens.links);
|
|
5296
|
+
if (e.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null;) e.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
5297
|
+
}
|
|
5298
|
+
for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null;) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
5299
|
+
for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) != null;) n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
5300
|
+
let i = !1, a = "";
|
|
5301
|
+
for (; e;) {
|
|
5302
|
+
i || (a = ""), i = !1;
|
|
5303
|
+
let r;
|
|
5304
|
+
if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
5305
|
+
if ((r = this.tokenizer.escape(e)) || (r = this.tokenizer.tag(e)) || (r = this.tokenizer.link(e))) {
|
|
5306
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
5307
|
+
continue;
|
|
4957
5308
|
}
|
|
4958
|
-
if (e.
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
"options",
|
|
4964
|
-
"rules",
|
|
4965
|
-
"lexer"
|
|
4966
|
-
].includes(n)) continue;
|
|
4967
|
-
let r = n, i = e.tokenizer[r], a = t[r];
|
|
4968
|
-
t[r] = (...e) => {
|
|
4969
|
-
let n = i.apply(t, e);
|
|
4970
|
-
return n === !1 && (n = a.apply(t, e)), n;
|
|
4971
|
-
};
|
|
4972
|
-
}
|
|
4973
|
-
n.tokenizer = t;
|
|
5309
|
+
if (r = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
5310
|
+
e = e.substring(r.raw.length);
|
|
5311
|
+
let n = t.at(-1);
|
|
5312
|
+
r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
5313
|
+
continue;
|
|
4974
5314
|
}
|
|
4975
|
-
if (e.
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
4979
|
-
if (["options", "block"].includes(n)) continue;
|
|
4980
|
-
let r = n, i = e.hooks[r], a = t[r];
|
|
4981
|
-
t[r] = El.passThroughHooks.has(n) ? (e) => {
|
|
4982
|
-
if (this.defaults.async) return Promise.resolve(i.call(t, e)).then((e) => a.call(t, e));
|
|
4983
|
-
let n = i.call(t, e);
|
|
4984
|
-
return a.call(t, n);
|
|
4985
|
-
} : (...e) => {
|
|
4986
|
-
let n = i.apply(t, e);
|
|
4987
|
-
return n === !1 && (n = a.apply(t, e)), n;
|
|
4988
|
-
};
|
|
4989
|
-
}
|
|
4990
|
-
n.hooks = t;
|
|
5315
|
+
if ((r = this.tokenizer.emStrong(e, n, a)) || (r = this.tokenizer.codespan(e)) || (r = this.tokenizer.br(e)) || (r = this.tokenizer.del(e)) || (r = this.tokenizer.autolink(e)) || !this.state.inLink && (r = this.tokenizer.url(e))) {
|
|
5316
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
5317
|
+
continue;
|
|
4991
5318
|
}
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
n
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
};
|
|
5319
|
+
let o = e;
|
|
5320
|
+
if (this.options.extensions?.startInline) {
|
|
5321
|
+
let t = Infinity, n = e.slice(1), r;
|
|
5322
|
+
this.options.extensions.startInline.forEach((e) => {
|
|
5323
|
+
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
5324
|
+
}), t < Infinity && t >= 0 && (o = e.substring(0, t + 1));
|
|
4998
5325
|
}
|
|
4999
|
-
this.
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5326
|
+
if (r = this.tokenizer.inlineText(o)) {
|
|
5327
|
+
e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (a = r.raw.slice(-1)), i = !0;
|
|
5328
|
+
let n = t.at(-1);
|
|
5329
|
+
n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
5330
|
+
} else if (e) {
|
|
5331
|
+
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
5332
|
+
if (this.options.silent) {
|
|
5333
|
+
console.error(t);
|
|
5334
|
+
break;
|
|
5335
|
+
}
|
|
5336
|
+
throw Error(t);
|
|
5337
|
+
}
|
|
5338
|
+
}
|
|
5339
|
+
return t;
|
|
5004
5340
|
}
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5341
|
+
}, Eu = class {
|
|
5342
|
+
options;
|
|
5343
|
+
parser;
|
|
5344
|
+
constructor(e) {
|
|
5345
|
+
this.options = e || dl;
|
|
5010
5346
|
}
|
|
5011
|
-
|
|
5012
|
-
return
|
|
5347
|
+
space(e) {
|
|
5348
|
+
return "";
|
|
5013
5349
|
}
|
|
5014
|
-
|
|
5015
|
-
|
|
5350
|
+
code({ text: e, lang: t, escaped: n }) {
|
|
5351
|
+
let r = (t || "").match(Q.notSpaceStart)?.[0], i = e.replace(Q.endingNewline, "") + "\n";
|
|
5352
|
+
return r ? "<pre><code class=\"language-" + _u(r) + "\">" + (n ? i : _u(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : _u(i, !0)) + "</code></pre>\n";
|
|
5016
5353
|
}
|
|
5017
|
-
|
|
5018
|
-
return
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
...r
|
|
5022
|
-
}, a = this.onError(!!i.silent, !!i.async);
|
|
5023
|
-
if (this.defaults.async === !0 && r.async === !1) return a(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
5024
|
-
if (t == null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
5025
|
-
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
5026
|
-
i.hooks && (i.hooks.options = i, i.hooks.block = e);
|
|
5027
|
-
let o = i.hooks ? i.hooks.provideLexer() : e ? Sl.lex : Sl.lexInline, s = i.hooks ? i.hooks.provideParser() : e ? Tl.parse : Tl.parseInline;
|
|
5028
|
-
if (i.async) return Promise.resolve(i.hooks ? i.hooks.preprocess(t) : t).then((e) => o(e, i)).then((e) => i.hooks ? i.hooks.processAllTokens(e) : e).then((e) => i.walkTokens ? Promise.all(this.walkTokens(e, i.walkTokens)).then(() => e) : e).then((e) => s(e, i)).then((e) => i.hooks ? i.hooks.postprocess(e) : e).catch(a);
|
|
5029
|
-
try {
|
|
5030
|
-
i.hooks && (t = i.hooks.preprocess(t));
|
|
5031
|
-
let e = o(t, i);
|
|
5032
|
-
i.hooks && (e = i.hooks.processAllTokens(e)), i.walkTokens && this.walkTokens(e, i.walkTokens);
|
|
5033
|
-
let n = s(e, i);
|
|
5034
|
-
return i.hooks && (n = i.hooks.postprocess(n)), n;
|
|
5035
|
-
} catch (e) {
|
|
5036
|
-
return a(e);
|
|
5037
|
-
}
|
|
5038
|
-
};
|
|
5354
|
+
blockquote({ tokens: e }) {
|
|
5355
|
+
return `<blockquote>
|
|
5356
|
+
${this.parser.parse(e)}</blockquote>
|
|
5357
|
+
`;
|
|
5039
5358
|
}
|
|
5040
|
-
|
|
5041
|
-
return
|
|
5042
|
-
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
5043
|
-
let e = "<p>An error occurred:</p><pre>" + ml(n.message + "", !0) + "</pre>";
|
|
5044
|
-
return t ? Promise.resolve(e) : e;
|
|
5045
|
-
}
|
|
5046
|
-
if (t) return Promise.reject(n);
|
|
5047
|
-
throw n;
|
|
5048
|
-
};
|
|
5359
|
+
html({ text: e }) {
|
|
5360
|
+
return e;
|
|
5049
5361
|
}
|
|
5050
|
-
}
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
}
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
}
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria-components/dist/private/utils.mjs
|
|
5063
|
-
var Ol = Symbol("default");
|
|
5064
|
-
function kl({ values: e, children: t }) {
|
|
5065
|
-
for (let [n, r] of e) t = /*#__PURE__*/ L.createElement(n.Provider, { value: r }, t);
|
|
5066
|
-
return t;
|
|
5067
|
-
}
|
|
5068
|
-
function Al(e) {
|
|
5069
|
-
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
|
|
5070
|
-
return (0, L.useMemo)(() => {
|
|
5071
|
-
let e, l, u;
|
|
5072
|
-
return e = typeof t == "function" ? t({
|
|
5073
|
-
...s,
|
|
5074
|
-
defaultClassName: i
|
|
5075
|
-
}) : t, l = typeof n == "function" ? n({
|
|
5076
|
-
...s,
|
|
5077
|
-
defaultStyle: o || {}
|
|
5078
|
-
}) : n, u = typeof r == "function" ? r({
|
|
5079
|
-
...s,
|
|
5080
|
-
defaultChildren: a
|
|
5081
|
-
}) : r ?? a, {
|
|
5082
|
-
className: e ?? i,
|
|
5083
|
-
style: l || o ? {
|
|
5084
|
-
...o,
|
|
5085
|
-
...l
|
|
5086
|
-
} : void 0,
|
|
5087
|
-
children: u ?? a,
|
|
5088
|
-
"data-rac": "",
|
|
5089
|
-
render: c ? (e) => c(e, s) : void 0
|
|
5090
|
-
};
|
|
5091
|
-
}, [
|
|
5092
|
-
t,
|
|
5093
|
-
n,
|
|
5094
|
-
r,
|
|
5095
|
-
i,
|
|
5096
|
-
a,
|
|
5097
|
-
o,
|
|
5098
|
-
s,
|
|
5099
|
-
c
|
|
5100
|
-
]);
|
|
5101
|
-
}
|
|
5102
|
-
function jl(e, t) {
|
|
5103
|
-
return (n) => t(typeof e == "function" ? e(n) : e, n);
|
|
5104
|
-
}
|
|
5105
|
-
function Ml(e, t) {
|
|
5106
|
-
let n = (0, L.useContext)(e);
|
|
5107
|
-
if (t === null) return null;
|
|
5108
|
-
if (n && typeof n == "object" && "slots" in n && n.slots) {
|
|
5109
|
-
let e = t || Ol;
|
|
5110
|
-
if (!n.slots[e]) {
|
|
5111
|
-
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
|
|
5112
|
-
throw Error(`${r} Valid slot names are ${e}.`);
|
|
5362
|
+
heading({ tokens: e, depth: t }) {
|
|
5363
|
+
return `<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
5364
|
+
`;
|
|
5365
|
+
}
|
|
5366
|
+
hr(e) {
|
|
5367
|
+
return "<hr>\n";
|
|
5368
|
+
}
|
|
5369
|
+
list(e) {
|
|
5370
|
+
let t = e.ordered, n = e.start, r = "";
|
|
5371
|
+
for (let t = 0; t < e.items.length; t++) {
|
|
5372
|
+
let n = e.items[t];
|
|
5373
|
+
r += this.listitem(n);
|
|
5113
5374
|
}
|
|
5114
|
-
|
|
5375
|
+
let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
|
|
5376
|
+
return "<" + i + a + ">\n" + r + "</" + i + ">\n";
|
|
5115
5377
|
}
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
...r,
|
|
5130
|
-
...a
|
|
5131
|
-
};
|
|
5132
|
-
} : {
|
|
5133
|
-
...i.style,
|
|
5134
|
-
...e.style
|
|
5135
|
-
}), [o, a];
|
|
5136
|
-
}
|
|
5137
|
-
function Pl(e = !0) {
|
|
5138
|
-
let [t, n] = (0, L.useState)(e), r = (0, L.useRef)(!1), i = (0, L.useCallback)((e) => {
|
|
5139
|
-
r.current = !0, n(!!e);
|
|
5140
|
-
}, []);
|
|
5141
|
-
return dr(() => {
|
|
5142
|
-
r.current || n(!1);
|
|
5143
|
-
}, []), [i, t];
|
|
5144
|
-
}
|
|
5145
|
-
function Fl(e) {
|
|
5146
|
-
let t = /^(data-.*)$/, n = {};
|
|
5147
|
-
for (let r in e) t.test(r) || (n[r] = e[r]);
|
|
5148
|
-
return n;
|
|
5149
|
-
}
|
|
5150
|
-
function Il(e, t, n) {
|
|
5151
|
-
let { render: r, ...i } = t, a = (0, L.useRef)(null), o = (0, L.useMemo)(() => mi(n, a), [n, a]);
|
|
5152
|
-
dr(() => {}, [e, r]);
|
|
5153
|
-
let s = {
|
|
5154
|
-
...i,
|
|
5155
|
-
ref: o
|
|
5156
|
-
};
|
|
5157
|
-
return r ? r(s, void 0) : /*#__PURE__*/ L.createElement(e, s);
|
|
5158
|
-
}
|
|
5159
|
-
var Ll = {}, Rl = new Proxy({}, { get(e, t) {
|
|
5160
|
-
if (typeof t != "string") return;
|
|
5161
|
-
let n = Ll[t];
|
|
5162
|
-
return n || (n = /*#__PURE__*/ (0, L.forwardRef)(Il.bind(null, t)), Ll[t] = n), n;
|
|
5163
|
-
} }), zl = /*#__PURE__*/ (0, L.createContext)({}), Bl = /*#__PURE__*/ Li(function(e, t) {
|
|
5164
|
-
[e, t] = Nl(e, t, zl);
|
|
5165
|
-
let { elementType: n = "label", ...r } = e, i = Rl[n];
|
|
5166
|
-
return /*#__PURE__*/ L.createElement(i, {
|
|
5167
|
-
className: "react-aria-Label",
|
|
5168
|
-
...r,
|
|
5169
|
-
ref: t
|
|
5170
|
-
});
|
|
5171
|
-
}), Vl = /*#__PURE__*/ (0, L.createContext)(null), Hl = /*#__PURE__*/ (0, L.createContext)({}), Ul = /*#__PURE__*/ Li(function(e, t) {
|
|
5172
|
-
[e, t] = Nl(e, t, Hl);
|
|
5173
|
-
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Na(e, t);
|
|
5174
|
-
i = Gl(i, r);
|
|
5175
|
-
let { focusProps: o, isFocused: s, isFocusVisible: c } = Ys(e), { hoverProps: l, isHovered: u } = tc({
|
|
5176
|
-
...e,
|
|
5177
|
-
isDisabled: e.isDisabled || r
|
|
5178
|
-
}), d = {
|
|
5179
|
-
isHovered: u,
|
|
5180
|
-
isPressed: (n.isPressed || a) && !r,
|
|
5181
|
-
isFocused: s,
|
|
5182
|
-
isFocusVisible: c,
|
|
5183
|
-
isDisabled: e.isDisabled || !1,
|
|
5184
|
-
isPending: r ?? !1
|
|
5185
|
-
}, f = Al({
|
|
5186
|
-
...e,
|
|
5187
|
-
values: d,
|
|
5188
|
-
defaultClassName: "react-aria-Button"
|
|
5189
|
-
}), p = di(i.id), m = di(), h = i["aria-labelledby"];
|
|
5190
|
-
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
|
|
5191
|
-
let g = (0, L.useRef)(r);
|
|
5192
|
-
(0, L.useEffect)(() => {
|
|
5193
|
-
let e = { "aria-labelledby": h || p };
|
|
5194
|
-
(!g.current && s && r || g.current && s && !r) && Ia(e, "assertive"), g.current = r;
|
|
5195
|
-
}, [
|
|
5196
|
-
r,
|
|
5197
|
-
s,
|
|
5198
|
-
h,
|
|
5199
|
-
p
|
|
5200
|
-
]);
|
|
5201
|
-
let _ = la(e, { global: !0 });
|
|
5202
|
-
return delete _.onClick, /*#__PURE__*/ L.createElement(Rl.button, {
|
|
5203
|
-
...q(_, f, i, o, l),
|
|
5204
|
-
type: i.type === "submit" && r ? "button" : i.type,
|
|
5205
|
-
id: p,
|
|
5206
|
-
ref: t,
|
|
5207
|
-
"aria-labelledby": h,
|
|
5208
|
-
slot: e.slot || void 0,
|
|
5209
|
-
"aria-disabled": r ? "true" : i["aria-disabled"],
|
|
5210
|
-
"data-disabled": e.isDisabled || void 0,
|
|
5211
|
-
"data-pressed": d.isPressed || void 0,
|
|
5212
|
-
"data-hovered": u || void 0,
|
|
5213
|
-
"data-focused": s || void 0,
|
|
5214
|
-
"data-pending": r || void 0,
|
|
5215
|
-
"data-focus-visible": c || void 0
|
|
5216
|
-
}, /*#__PURE__*/ L.createElement(Vl.Provider, { value: { id: m } }, f.children));
|
|
5217
|
-
}), Wl = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
|
|
5218
|
-
function Gl(e, t) {
|
|
5219
|
-
if (t) {
|
|
5220
|
-
for (let t in e) t.startsWith("on") && !Wl.test(t) && (e[t] = void 0);
|
|
5221
|
-
e.href = void 0, e.target = void 0;
|
|
5378
|
+
listitem(e) {
|
|
5379
|
+
let t = "";
|
|
5380
|
+
if (e.task) {
|
|
5381
|
+
let n = this.checkbox({ checked: !!e.checked });
|
|
5382
|
+
e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + _u(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
|
|
5383
|
+
type: "text",
|
|
5384
|
+
raw: n + " ",
|
|
5385
|
+
text: n + " ",
|
|
5386
|
+
escaped: !0
|
|
5387
|
+
}) : t += n + " ";
|
|
5388
|
+
}
|
|
5389
|
+
return t += this.parser.parse(e.tokens, !!e.loose), `<li>${t}</li>
|
|
5390
|
+
`;
|
|
5222
5391
|
}
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
}), Xl = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
|
|
5241
|
-
let n = (0, L.useContext)(Jl), { elementType: r, ...i } = e, a = la(i, { global: !0 }), o = Al({
|
|
5242
|
-
...i,
|
|
5243
|
-
defaultClassName: "react-aria-FieldError",
|
|
5244
|
-
defaultChildren: n.validationErrors.length === 0 ? void 0 : n.validationErrors.join(" "),
|
|
5245
|
-
values: n
|
|
5246
|
-
});
|
|
5247
|
-
return o.children == null ? null : /*#__PURE__*/ L.createElement(ql, {
|
|
5248
|
-
slot: "errorMessage",
|
|
5249
|
-
elementType: r,
|
|
5250
|
-
...a,
|
|
5251
|
-
...o,
|
|
5252
|
-
ref: t
|
|
5253
|
-
});
|
|
5254
|
-
}), Zl = /*#__PURE__*/ (0, L.createContext)(null), Ql = /*#__PURE__*/ (0, L.createContext)({}), $l = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
|
|
5255
|
-
[e, t] = Nl(e, t, Ql);
|
|
5256
|
-
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
|
|
5257
|
-
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
|
|
5258
|
-
let { hoverProps: l, isHovered: u } = tc({
|
|
5259
|
-
onHoverStart: a,
|
|
5260
|
-
onHoverChange: o,
|
|
5261
|
-
onHoverEnd: s,
|
|
5262
|
-
isDisabled: n
|
|
5263
|
-
}), { isFocused: d, isFocusVisible: f, focusProps: p } = Ys({ within: !0 }), m = Al({
|
|
5264
|
-
...e,
|
|
5265
|
-
values: {
|
|
5266
|
-
isHovered: u,
|
|
5267
|
-
isFocusWithin: d,
|
|
5268
|
-
isFocusVisible: f,
|
|
5269
|
-
isDisabled: n,
|
|
5270
|
-
isInvalid: r
|
|
5271
|
-
},
|
|
5272
|
-
defaultClassName: "react-aria-Group"
|
|
5273
|
-
});
|
|
5274
|
-
return /*#__PURE__*/ L.createElement(Rl.div, {
|
|
5275
|
-
...q(c, p, l),
|
|
5276
|
-
...m,
|
|
5277
|
-
ref: t,
|
|
5278
|
-
role: e.role ?? "group",
|
|
5279
|
-
slot: e.slot ?? void 0,
|
|
5280
|
-
"data-focus-within": d || void 0,
|
|
5281
|
-
"data-hovered": u || void 0,
|
|
5282
|
-
"data-focus-visible": f || void 0,
|
|
5283
|
-
"data-disabled": n || void 0,
|
|
5284
|
-
"data-invalid": r || void 0,
|
|
5285
|
-
"data-readonly": i || void 0
|
|
5286
|
-
}, m.children);
|
|
5287
|
-
}), eu = /*#__PURE__*/ (0, L.createContext)({}), tu = (e) => {
|
|
5288
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
|
|
5289
|
-
return i;
|
|
5290
|
-
}, nu = /*#__PURE__*/ Li(function(e, t) {
|
|
5291
|
-
[e, t] = Nl(e, t, eu);
|
|
5292
|
-
let { hoverProps: n, isHovered: r } = tc({
|
|
5293
|
-
...e,
|
|
5294
|
-
isDisabled: e.disabled
|
|
5295
|
-
}), { isFocused: i, isFocusVisible: a, focusProps: o } = Ys({
|
|
5296
|
-
isTextInput: !0,
|
|
5297
|
-
autoFocus: e.autoFocus
|
|
5298
|
-
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Al({
|
|
5299
|
-
...e,
|
|
5300
|
-
values: {
|
|
5301
|
-
isHovered: r,
|
|
5302
|
-
isFocused: i,
|
|
5303
|
-
isFocusVisible: a,
|
|
5304
|
-
isDisabled: e.disabled || !1,
|
|
5305
|
-
isInvalid: s
|
|
5306
|
-
},
|
|
5307
|
-
defaultClassName: "react-aria-Input"
|
|
5308
|
-
});
|
|
5309
|
-
return /*#__PURE__*/ L.createElement(Rl.input, {
|
|
5310
|
-
...q(tu(e), o, n),
|
|
5311
|
-
...c,
|
|
5312
|
-
ref: t,
|
|
5313
|
-
"data-focused": i || void 0,
|
|
5314
|
-
"data-disabled": e.disabled || void 0,
|
|
5315
|
-
"data-hovered": r || void 0,
|
|
5316
|
-
"data-focus-visible": a || void 0,
|
|
5317
|
-
"data-invalid": s || void 0
|
|
5318
|
-
});
|
|
5319
|
-
});
|
|
5320
|
-
//#endregion
|
|
5321
|
-
//#region ../node_modules/.pnpm/react-stately@3.50.0_react@19.3.1/node_modules/react-stately/dist/private/numberfield/useNumberFieldState.mjs
|
|
5322
|
-
function ru(e) {
|
|
5323
|
-
let { minValue: t, maxValue: n, step: r, formatOptions: i, value: a, defaultValue: o = NaN, onChange: s, locale: c, isDisabled: l, isReadOnly: u, commitBehavior: d = "snap" } = e;
|
|
5324
|
-
a === null && (a = NaN);
|
|
5325
|
-
let f = (0, L.useCallback)((e) => r === void 0 || isNaN(r) ? so(e, t, n) : lo(e, t, n, r), [
|
|
5326
|
-
r,
|
|
5327
|
-
t,
|
|
5328
|
-
n
|
|
5329
|
-
]);
|
|
5330
|
-
a !== void 0 && !isNaN(a) && d === "snap" && (a = f(a)), !isNaN(o) && d === "snap" && (o = f(o));
|
|
5331
|
-
let [p, m] = oo(a, isNaN(o) ? NaN : o, s), [h] = (0, L.useState)(p), [g, _] = (0, L.useState)(() => isNaN(p) ? "" : new v(c, i).format(p)), y = (0, L.useMemo)(() => new po(c, i), [c, i]), b = (0, L.useMemo)(() => y.getNumberingSystem(g), [y, g]), x = (0, L.useMemo)(() => new v(c, {
|
|
5332
|
-
...i,
|
|
5333
|
-
numberingSystem: b
|
|
5334
|
-
}), [
|
|
5335
|
-
c,
|
|
5336
|
-
i,
|
|
5337
|
-
b
|
|
5338
|
-
]), S = (0, L.useMemo)(() => x.resolvedOptions(), [x]), C = (0, L.useCallback)((e) => isNaN(e) || e === null ? "" : x.format(e), [x]), w = Ya({
|
|
5339
|
-
...e,
|
|
5340
|
-
value: p
|
|
5341
|
-
}), T = r !== void 0 && !isNaN(r) ? r : 1;
|
|
5342
|
-
S.style === "percent" && (r === void 0 || isNaN(r)) && (T = .01);
|
|
5343
|
-
let [E, D] = (0, L.useState)(p), [O, ee] = (0, L.useState)(c), [te, ne] = (0, L.useState)(i);
|
|
5344
|
-
(!Object.is(p, E) || c !== O || !iu(i, te)) && (_(C(p)), D(p), ee(c), ne(i));
|
|
5345
|
-
let k = (0, L.useMemo)(() => y.parse(g), [y, g]), A = (e) => {
|
|
5346
|
-
let t = e === void 0 ? g : e, n = k;
|
|
5347
|
-
if (e !== void 0 && (n = y.parse(t)), !t.length) {
|
|
5348
|
-
m(NaN), _(a === void 0 ? "" : C(p));
|
|
5349
|
-
return;
|
|
5392
|
+
checkbox({ checked: e }) {
|
|
5393
|
+
return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\">";
|
|
5394
|
+
}
|
|
5395
|
+
paragraph({ tokens: e }) {
|
|
5396
|
+
return `<p>${this.parser.parseInline(e)}</p>
|
|
5397
|
+
`;
|
|
5398
|
+
}
|
|
5399
|
+
table(e) {
|
|
5400
|
+
let t = "", n = "";
|
|
5401
|
+
for (let t = 0; t < e.header.length; t++) n += this.tablecell(e.header[t]);
|
|
5402
|
+
t += this.tablerow({ text: n });
|
|
5403
|
+
let r = "";
|
|
5404
|
+
for (let t = 0; t < e.rows.length; t++) {
|
|
5405
|
+
let i = e.rows[t];
|
|
5406
|
+
n = "";
|
|
5407
|
+
for (let e = 0; e < i.length; e++) n += this.tablecell(i[e]);
|
|
5408
|
+
r += this.tablerow({ text: n });
|
|
5350
5409
|
}
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5410
|
+
return r &&= `<tbody>${r}</tbody>`, "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
|
|
5411
|
+
}
|
|
5412
|
+
tablerow({ text: e }) {
|
|
5413
|
+
return `<tr>
|
|
5414
|
+
${e}</tr>
|
|
5415
|
+
`;
|
|
5416
|
+
}
|
|
5417
|
+
tablecell(e) {
|
|
5418
|
+
let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
|
|
5419
|
+
return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
|
|
5420
|
+
`;
|
|
5421
|
+
}
|
|
5422
|
+
strong({ tokens: e }) {
|
|
5423
|
+
return `<strong>${this.parser.parseInline(e)}</strong>`;
|
|
5424
|
+
}
|
|
5425
|
+
em({ tokens: e }) {
|
|
5426
|
+
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
5427
|
+
}
|
|
5428
|
+
codespan({ text: e }) {
|
|
5429
|
+
return `<code>${_u(e, !0)}</code>`;
|
|
5430
|
+
}
|
|
5431
|
+
br(e) {
|
|
5432
|
+
return "<br>";
|
|
5433
|
+
}
|
|
5434
|
+
del({ tokens: e }) {
|
|
5435
|
+
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
5436
|
+
}
|
|
5437
|
+
link({ href: e, title: t, tokens: n }) {
|
|
5438
|
+
let r = this.parser.parseInline(n), i = vu(e);
|
|
5439
|
+
if (i === null) return r;
|
|
5440
|
+
e = i;
|
|
5441
|
+
let a = "<a href=\"" + e + "\"";
|
|
5442
|
+
return t && (a += " title=\"" + _u(t) + "\""), a += ">" + r + "</a>", a;
|
|
5443
|
+
}
|
|
5444
|
+
image({ href: e, title: t, text: n, tokens: r }) {
|
|
5445
|
+
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
5446
|
+
let i = vu(e);
|
|
5447
|
+
if (i === null) return _u(n);
|
|
5448
|
+
e = i;
|
|
5449
|
+
let a = `<img src="${e}" alt="${n}"`;
|
|
5450
|
+
return t && (a += ` title="${_u(t)}"`), a += ">", a;
|
|
5451
|
+
}
|
|
5452
|
+
text(e) {
|
|
5453
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : _u(e.text);
|
|
5454
|
+
}
|
|
5455
|
+
}, Du = class {
|
|
5456
|
+
strong({ text: e }) {
|
|
5457
|
+
return e;
|
|
5458
|
+
}
|
|
5459
|
+
em({ text: e }) {
|
|
5460
|
+
return e;
|
|
5461
|
+
}
|
|
5462
|
+
codespan({ text: e }) {
|
|
5463
|
+
return e;
|
|
5464
|
+
}
|
|
5465
|
+
del({ text: e }) {
|
|
5466
|
+
return e;
|
|
5467
|
+
}
|
|
5468
|
+
html({ text: e }) {
|
|
5469
|
+
return e;
|
|
5470
|
+
}
|
|
5471
|
+
text({ text: e }) {
|
|
5472
|
+
return e;
|
|
5473
|
+
}
|
|
5474
|
+
link({ text: e }) {
|
|
5475
|
+
return "" + e;
|
|
5476
|
+
}
|
|
5477
|
+
image({ text: e }) {
|
|
5478
|
+
return "" + e;
|
|
5479
|
+
}
|
|
5480
|
+
br() {
|
|
5481
|
+
return "";
|
|
5482
|
+
}
|
|
5483
|
+
}, Ou = class e {
|
|
5484
|
+
options;
|
|
5485
|
+
renderer;
|
|
5486
|
+
textRenderer;
|
|
5487
|
+
constructor(e) {
|
|
5488
|
+
this.options = e || dl, this.options.renderer = this.options.renderer || new Eu(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Du();
|
|
5489
|
+
}
|
|
5490
|
+
static parse(t, n) {
|
|
5491
|
+
return new e(n).parse(t);
|
|
5492
|
+
}
|
|
5493
|
+
static parseInline(t, n) {
|
|
5494
|
+
return new e(n).parseInline(t);
|
|
5495
|
+
}
|
|
5496
|
+
parse(e, t = !0) {
|
|
5497
|
+
let n = "";
|
|
5498
|
+
for (let r = 0; r < e.length; r++) {
|
|
5499
|
+
let i = e[r];
|
|
5500
|
+
if (this.options.extensions?.renderers?.[i.type]) {
|
|
5501
|
+
let e = i, t = this.options.extensions.renderers[e.type].call({ parser: this }, e);
|
|
5502
|
+
if (t !== !1 || ![
|
|
5503
|
+
"space",
|
|
5504
|
+
"hr",
|
|
5505
|
+
"heading",
|
|
5506
|
+
"code",
|
|
5507
|
+
"table",
|
|
5508
|
+
"blockquote",
|
|
5509
|
+
"list",
|
|
5510
|
+
"html",
|
|
5511
|
+
"paragraph",
|
|
5512
|
+
"text"
|
|
5513
|
+
].includes(e.type)) {
|
|
5514
|
+
n += t || "";
|
|
5515
|
+
continue;
|
|
5516
|
+
}
|
|
5517
|
+
}
|
|
5518
|
+
let a = i;
|
|
5519
|
+
switch (a.type) {
|
|
5520
|
+
case "space":
|
|
5521
|
+
n += this.renderer.space(a);
|
|
5522
|
+
continue;
|
|
5523
|
+
case "hr":
|
|
5524
|
+
n += this.renderer.hr(a);
|
|
5525
|
+
continue;
|
|
5526
|
+
case "heading":
|
|
5527
|
+
n += this.renderer.heading(a);
|
|
5528
|
+
continue;
|
|
5529
|
+
case "code":
|
|
5530
|
+
n += this.renderer.code(a);
|
|
5531
|
+
continue;
|
|
5532
|
+
case "table":
|
|
5533
|
+
n += this.renderer.table(a);
|
|
5534
|
+
continue;
|
|
5535
|
+
case "blockquote":
|
|
5536
|
+
n += this.renderer.blockquote(a);
|
|
5537
|
+
continue;
|
|
5538
|
+
case "list":
|
|
5539
|
+
n += this.renderer.list(a);
|
|
5540
|
+
continue;
|
|
5541
|
+
case "html":
|
|
5542
|
+
n += this.renderer.html(a);
|
|
5543
|
+
continue;
|
|
5544
|
+
case "paragraph":
|
|
5545
|
+
n += this.renderer.paragraph(a);
|
|
5546
|
+
continue;
|
|
5547
|
+
case "text": {
|
|
5548
|
+
let i = a, o = this.renderer.text(i);
|
|
5549
|
+
for (; r + 1 < e.length && e[r + 1].type === "text";) i = e[++r], o += "\n" + this.renderer.text(i);
|
|
5550
|
+
n += t ? this.renderer.paragraph({
|
|
5551
|
+
type: "paragraph",
|
|
5552
|
+
raw: o,
|
|
5553
|
+
text: o,
|
|
5554
|
+
tokens: [{
|
|
5555
|
+
type: "text",
|
|
5556
|
+
raw: o,
|
|
5557
|
+
text: o,
|
|
5558
|
+
escaped: !0
|
|
5559
|
+
}]
|
|
5560
|
+
}) : o;
|
|
5561
|
+
continue;
|
|
5562
|
+
}
|
|
5563
|
+
default: {
|
|
5564
|
+
let e = "Token with \"" + a.type + "\" type was not found.";
|
|
5565
|
+
if (this.options.silent) return console.error(e), "";
|
|
5566
|
+
throw Error(e);
|
|
5567
|
+
}
|
|
5568
|
+
}
|
|
5354
5569
|
}
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5570
|
+
return n;
|
|
5571
|
+
}
|
|
5572
|
+
parseInline(e, t = this.renderer) {
|
|
5573
|
+
let n = "";
|
|
5574
|
+
for (let r = 0; r < e.length; r++) {
|
|
5575
|
+
let i = e[r];
|
|
5576
|
+
if (this.options.extensions?.renderers?.[i.type]) {
|
|
5577
|
+
let e = this.options.extensions.renderers[i.type].call({ parser: this }, i);
|
|
5578
|
+
if (e !== !1 || ![
|
|
5579
|
+
"escape",
|
|
5580
|
+
"html",
|
|
5581
|
+
"link",
|
|
5582
|
+
"image",
|
|
5583
|
+
"strong",
|
|
5584
|
+
"em",
|
|
5585
|
+
"codespan",
|
|
5586
|
+
"br",
|
|
5587
|
+
"del",
|
|
5588
|
+
"text"
|
|
5589
|
+
].includes(i.type)) {
|
|
5590
|
+
n += e || "";
|
|
5591
|
+
continue;
|
|
5592
|
+
}
|
|
5593
|
+
}
|
|
5594
|
+
let a = i;
|
|
5595
|
+
switch (a.type) {
|
|
5596
|
+
case "escape":
|
|
5597
|
+
n += t.text(a);
|
|
5598
|
+
break;
|
|
5599
|
+
case "html":
|
|
5600
|
+
n += t.html(a);
|
|
5601
|
+
break;
|
|
5602
|
+
case "link":
|
|
5603
|
+
n += t.link(a);
|
|
5604
|
+
break;
|
|
5605
|
+
case "image":
|
|
5606
|
+
n += t.image(a);
|
|
5607
|
+
break;
|
|
5608
|
+
case "strong":
|
|
5609
|
+
n += t.strong(a);
|
|
5610
|
+
break;
|
|
5611
|
+
case "em":
|
|
5612
|
+
n += t.em(a);
|
|
5613
|
+
break;
|
|
5614
|
+
case "codespan":
|
|
5615
|
+
n += t.codespan(a);
|
|
5616
|
+
break;
|
|
5617
|
+
case "br":
|
|
5618
|
+
n += t.br(a);
|
|
5619
|
+
break;
|
|
5620
|
+
case "del":
|
|
5621
|
+
n += t.del(a);
|
|
5622
|
+
break;
|
|
5623
|
+
case "text":
|
|
5624
|
+
n += t.text(a);
|
|
5625
|
+
break;
|
|
5626
|
+
default: {
|
|
5627
|
+
let e = "Token with \"" + a.type + "\" type was not found.";
|
|
5628
|
+
if (this.options.silent) return console.error(e), "";
|
|
5629
|
+
throw Error(e);
|
|
5630
|
+
}
|
|
5631
|
+
}
|
|
5365
5632
|
}
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
T,
|
|
5382
|
-
k
|
|
5383
|
-
]), ie = (0, L.useMemo)(() => !l && !u && (isNaN(k) || t === void 0 || isNaN(t) || lo(k, t, n, T) < k || au("-", k, T) >= t), [
|
|
5384
|
-
l,
|
|
5385
|
-
u,
|
|
5386
|
-
t,
|
|
5387
|
-
n,
|
|
5388
|
-
T,
|
|
5389
|
-
k
|
|
5390
|
-
]), ae = (e) => y.isValidPartialNumber(e, t, n);
|
|
5391
|
-
return {
|
|
5392
|
-
...w,
|
|
5393
|
-
validate: ae,
|
|
5394
|
-
increment: M,
|
|
5395
|
-
incrementToMax: re,
|
|
5396
|
-
decrement: N,
|
|
5397
|
-
decrementToMin: P,
|
|
5398
|
-
canIncrement: F,
|
|
5399
|
-
canDecrement: ie,
|
|
5400
|
-
minValue: t,
|
|
5401
|
-
maxValue: n,
|
|
5402
|
-
numberValue: k,
|
|
5403
|
-
defaultNumberValue: isNaN(o) ? h : o,
|
|
5404
|
-
setNumberValue: m,
|
|
5405
|
-
setInputValue: _,
|
|
5406
|
-
inputValue: g,
|
|
5407
|
-
commit: A
|
|
5408
|
-
};
|
|
5409
|
-
}
|
|
5410
|
-
function iu(e, t) {
|
|
5411
|
-
if (e === t) return !0;
|
|
5412
|
-
if (!e || !t) return !1;
|
|
5413
|
-
let n = Object.keys(e), r = Object.keys(t);
|
|
5414
|
-
if (n.length !== r.length) return !1;
|
|
5415
|
-
for (let r of n) if (t[r] !== e[r]) return !1;
|
|
5416
|
-
return !0;
|
|
5417
|
-
}
|
|
5418
|
-
function au(e, t, n) {
|
|
5419
|
-
let r = e === "+" ? t + n : t - n;
|
|
5420
|
-
if (t % 1 != 0 || n % 1 != 0) {
|
|
5421
|
-
let i = t.toString().split("."), a = n.toString().split("."), o = i[1] && i[1].length || 0, s = a[1] && a[1].length || 0, c = 10 ** Math.max(o, s);
|
|
5422
|
-
t = Math.round(t * c), n = Math.round(n * c), r = e === "+" ? t + n : t - n, r /= c;
|
|
5633
|
+
return n;
|
|
5634
|
+
}
|
|
5635
|
+
}, ku = class {
|
|
5636
|
+
options;
|
|
5637
|
+
block;
|
|
5638
|
+
constructor(e) {
|
|
5639
|
+
this.options = e || dl;
|
|
5640
|
+
}
|
|
5641
|
+
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
5642
|
+
"preprocess",
|
|
5643
|
+
"postprocess",
|
|
5644
|
+
"processAllTokens"
|
|
5645
|
+
]);
|
|
5646
|
+
preprocess(e) {
|
|
5647
|
+
return e;
|
|
5423
5648
|
}
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
//#endregion
|
|
5427
|
-
//#region ../node_modules/.pnpm/react-aria-components@1.21.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria-components/dist/private/NumberField.mjs
|
|
5428
|
-
var ou = /*#__PURE__*/ (0, L.createContext)(null), su = /*#__PURE__*/ (0, L.createContext)(null), cu = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
|
|
5429
|
-
[e, t] = Nl(e, t, ou);
|
|
5430
|
-
let { validationBehavior: n } = Ml(Zl) || {}, r = e.validationBehavior ?? n ?? "native", { locale: i } = h(), a = ru({
|
|
5431
|
-
...e,
|
|
5432
|
-
locale: i,
|
|
5433
|
-
validationBehavior: r
|
|
5434
|
-
}), o = (0, L.useRef)(null), [s, c] = Pl(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: l, groupProps: u, inputProps: d, incrementButtonProps: f, decrementButtonProps: p, descriptionProps: m, errorMessageProps: g, ..._ } = qs({
|
|
5435
|
-
...Fl(e),
|
|
5436
|
-
label: c,
|
|
5437
|
-
validationBehavior: r
|
|
5438
|
-
}, a, o), v = Al({
|
|
5439
|
-
...e,
|
|
5440
|
-
values: {
|
|
5441
|
-
state: a,
|
|
5442
|
-
isDisabled: e.isDisabled || !1,
|
|
5443
|
-
isInvalid: _.isInvalid || !1,
|
|
5444
|
-
isRequired: e.isRequired || !1,
|
|
5445
|
-
isReadOnly: e.isReadOnly || !1
|
|
5446
|
-
},
|
|
5447
|
-
defaultClassName: "react-aria-NumberField"
|
|
5448
|
-
}), y = la(e, { global: !0 });
|
|
5449
|
-
return delete y.id, /*#__PURE__*/ L.createElement(kl, { values: [
|
|
5450
|
-
[su, a],
|
|
5451
|
-
[Ql, u],
|
|
5452
|
-
[eu, {
|
|
5453
|
-
...d,
|
|
5454
|
-
ref: o
|
|
5455
|
-
}],
|
|
5456
|
-
[zl, {
|
|
5457
|
-
...l,
|
|
5458
|
-
ref: s
|
|
5459
|
-
}],
|
|
5460
|
-
[Hl, { slots: {
|
|
5461
|
-
increment: f,
|
|
5462
|
-
decrement: p
|
|
5463
|
-
} }],
|
|
5464
|
-
[Kl, { slots: {
|
|
5465
|
-
description: m,
|
|
5466
|
-
errorMessage: g
|
|
5467
|
-
} }],
|
|
5468
|
-
[Jl, _]
|
|
5469
|
-
] }, /*#__PURE__*/ L.createElement(Rl.div, {
|
|
5470
|
-
...y,
|
|
5471
|
-
...v,
|
|
5472
|
-
ref: t,
|
|
5473
|
-
slot: e.slot || void 0,
|
|
5474
|
-
"data-disabled": e.isDisabled || void 0,
|
|
5475
|
-
"data-readonly": e.isReadOnly || void 0,
|
|
5476
|
-
"data-required": e.isRequired || void 0,
|
|
5477
|
-
"data-invalid": _.isInvalid || void 0
|
|
5478
|
-
}), e.name && /*#__PURE__*/ L.createElement("input", {
|
|
5479
|
-
type: "hidden",
|
|
5480
|
-
name: e.name,
|
|
5481
|
-
form: e.form,
|
|
5482
|
-
value: isNaN(a.numberValue) ? "" : a.numberValue,
|
|
5483
|
-
disabled: e.isDisabled || void 0
|
|
5484
|
-
}));
|
|
5485
|
-
}), lu = xe((e) => {
|
|
5486
|
-
for (let n of [
|
|
5487
|
-
100,
|
|
5488
|
-
20,
|
|
5489
|
-
2,
|
|
5490
|
-
0
|
|
5491
|
-
]) try {
|
|
5492
|
-
return new Intl.NumberFormat(e, {
|
|
5493
|
-
minimumFractionDigits: 0,
|
|
5494
|
-
maximumFractionDigits: n
|
|
5495
|
-
}).format(1), n;
|
|
5496
|
-
} catch (e) {
|
|
5497
|
-
t.error(e);
|
|
5649
|
+
postprocess(e) {
|
|
5650
|
+
return e;
|
|
5498
5651
|
}
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
}
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
}
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
let e =
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5652
|
+
processAllTokens(e) {
|
|
5653
|
+
return e;
|
|
5654
|
+
}
|
|
5655
|
+
provideLexer() {
|
|
5656
|
+
return this.block ? Tu.lex : Tu.lexInline;
|
|
5657
|
+
}
|
|
5658
|
+
provideParser() {
|
|
5659
|
+
return this.block ? Ou.parse : Ou.parseInline;
|
|
5660
|
+
}
|
|
5661
|
+
}, Au = new class {
|
|
5662
|
+
defaults = ul();
|
|
5663
|
+
options = this.setOptions;
|
|
5664
|
+
parse = this.parseMarkdown(!0);
|
|
5665
|
+
parseInline = this.parseMarkdown(!1);
|
|
5666
|
+
Parser = Ou;
|
|
5667
|
+
Renderer = Eu;
|
|
5668
|
+
TextRenderer = Du;
|
|
5669
|
+
Lexer = Tu;
|
|
5670
|
+
Tokenizer = wu;
|
|
5671
|
+
Hooks = ku;
|
|
5672
|
+
constructor(...e) {
|
|
5673
|
+
this.use(...e);
|
|
5674
|
+
}
|
|
5675
|
+
walkTokens(e, t) {
|
|
5676
|
+
let n = [];
|
|
5677
|
+
for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
|
|
5678
|
+
case "table": {
|
|
5679
|
+
let e = r;
|
|
5680
|
+
for (let r of e.header) n = n.concat(this.walkTokens(r.tokens, t));
|
|
5681
|
+
for (let r of e.rows) for (let e of r) n = n.concat(this.walkTokens(e.tokens, t));
|
|
5682
|
+
break;
|
|
5683
|
+
}
|
|
5684
|
+
case "list": {
|
|
5685
|
+
let e = r;
|
|
5686
|
+
n = n.concat(this.walkTokens(e.items, t));
|
|
5687
|
+
break;
|
|
5688
|
+
}
|
|
5689
|
+
default: {
|
|
5690
|
+
let e = r;
|
|
5691
|
+
this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
|
|
5692
|
+
let i = e[r].flat(Infinity);
|
|
5693
|
+
n = n.concat(this.walkTokens(i, t));
|
|
5694
|
+
}) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
|
|
5695
|
+
}
|
|
5528
5696
|
}
|
|
5529
|
-
return
|
|
5697
|
+
return n;
|
|
5530
5698
|
}
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
}
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
function
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5699
|
+
use(...e) {
|
|
5700
|
+
let t = this.defaults.extensions || {
|
|
5701
|
+
renderers: {},
|
|
5702
|
+
childTokens: {}
|
|
5703
|
+
};
|
|
5704
|
+
return e.forEach((e) => {
|
|
5705
|
+
let n = { ...e };
|
|
5706
|
+
if (n.async = this.defaults.async || n.async || !1, e.extensions && (e.extensions.forEach((e) => {
|
|
5707
|
+
if (!e.name) throw Error("extension name required");
|
|
5708
|
+
if ("renderer" in e) {
|
|
5709
|
+
let n = t.renderers[e.name];
|
|
5710
|
+
n ? t.renderers[e.name] = function(...t) {
|
|
5711
|
+
let r = e.renderer.apply(this, t);
|
|
5712
|
+
return r === !1 && (r = n.apply(this, t)), r;
|
|
5713
|
+
} : t.renderers[e.name] = e.renderer;
|
|
5714
|
+
}
|
|
5715
|
+
if ("tokenizer" in e) {
|
|
5716
|
+
if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
|
|
5717
|
+
let n = t[e.level];
|
|
5718
|
+
n ? n.unshift(e.tokenizer) : t[e.level] = [e.tokenizer], e.start && (e.level === "block" ? t.startBlock ? t.startBlock.push(e.start) : t.startBlock = [e.start] : e.level === "inline" && (t.startInline ? t.startInline.push(e.start) : t.startInline = [e.start]));
|
|
5719
|
+
}
|
|
5720
|
+
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
5721
|
+
}), n.extensions = t), e.renderer) {
|
|
5722
|
+
let t = this.defaults.renderer || new Eu(this.defaults);
|
|
5723
|
+
for (let n in e.renderer) {
|
|
5724
|
+
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
5725
|
+
if (["options", "parser"].includes(n)) continue;
|
|
5726
|
+
let r = n, i = e.renderer[r], a = t[r];
|
|
5727
|
+
t[r] = (...e) => {
|
|
5728
|
+
let n = i.apply(t, e);
|
|
5729
|
+
return n === !1 && (n = a.apply(t, e)), n || "";
|
|
5730
|
+
};
|
|
5731
|
+
}
|
|
5732
|
+
n.renderer = t;
|
|
5733
|
+
}
|
|
5734
|
+
if (e.tokenizer) {
|
|
5735
|
+
let t = this.defaults.tokenizer || new wu(this.defaults);
|
|
5736
|
+
for (let n in e.tokenizer) {
|
|
5737
|
+
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
5738
|
+
if ([
|
|
5739
|
+
"options",
|
|
5740
|
+
"rules",
|
|
5741
|
+
"lexer"
|
|
5742
|
+
].includes(n)) continue;
|
|
5743
|
+
let r = n, i = e.tokenizer[r], a = t[r];
|
|
5744
|
+
t[r] = (...e) => {
|
|
5745
|
+
let n = i.apply(t, e);
|
|
5746
|
+
return n === !1 && (n = a.apply(t, e)), n;
|
|
5747
|
+
};
|
|
5748
|
+
}
|
|
5749
|
+
n.tokenizer = t;
|
|
5750
|
+
}
|
|
5751
|
+
if (e.hooks) {
|
|
5752
|
+
let t = this.defaults.hooks || new ku();
|
|
5753
|
+
for (let n in e.hooks) {
|
|
5754
|
+
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
5755
|
+
if (["options", "block"].includes(n)) continue;
|
|
5756
|
+
let r = n, i = e.hooks[r], a = t[r];
|
|
5757
|
+
t[r] = ku.passThroughHooks.has(n) ? (e) => {
|
|
5758
|
+
if (this.defaults.async) return Promise.resolve(i.call(t, e)).then((e) => a.call(t, e));
|
|
5759
|
+
let n = i.call(t, e);
|
|
5760
|
+
return a.call(t, n);
|
|
5761
|
+
} : (...e) => {
|
|
5762
|
+
let n = i.apply(t, e);
|
|
5763
|
+
return n === !1 && (n = a.apply(t, e)), n;
|
|
5764
|
+
};
|
|
5765
|
+
}
|
|
5766
|
+
n.hooks = t;
|
|
5767
|
+
}
|
|
5768
|
+
if (e.walkTokens) {
|
|
5769
|
+
let t = this.defaults.walkTokens, r = e.walkTokens;
|
|
5770
|
+
n.walkTokens = function(e) {
|
|
5771
|
+
let n = [];
|
|
5772
|
+
return n.push(r.call(this, e)), t && (n = n.concat(t.call(this, e))), n;
|
|
5773
|
+
};
|
|
5774
|
+
}
|
|
5775
|
+
this.defaults = {
|
|
5776
|
+
...this.defaults,
|
|
5777
|
+
...n
|
|
5778
|
+
};
|
|
5779
|
+
}), this;
|
|
5780
|
+
}
|
|
5781
|
+
setOptions(e) {
|
|
5782
|
+
return this.defaults = {
|
|
5783
|
+
...this.defaults,
|
|
5784
|
+
...e
|
|
5785
|
+
}, this;
|
|
5786
|
+
}
|
|
5787
|
+
lexer(e, t) {
|
|
5788
|
+
return Tu.lex(e, t ?? this.defaults);
|
|
5789
|
+
}
|
|
5790
|
+
parser(e, t) {
|
|
5791
|
+
return Ou.parse(e, t ?? this.defaults);
|
|
5792
|
+
}
|
|
5793
|
+
parseMarkdown(e) {
|
|
5794
|
+
return (t, n) => {
|
|
5795
|
+
let r = { ...n }, i = {
|
|
5796
|
+
...this.defaults,
|
|
5797
|
+
...r
|
|
5798
|
+
}, a = this.onError(!!i.silent, !!i.async);
|
|
5799
|
+
if (this.defaults.async === !0 && r.async === !1) return a(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
5800
|
+
if (t == null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
5801
|
+
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
5802
|
+
i.hooks && (i.hooks.options = i, i.hooks.block = e);
|
|
5803
|
+
let o = i.hooks ? i.hooks.provideLexer() : e ? Tu.lex : Tu.lexInline, s = i.hooks ? i.hooks.provideParser() : e ? Ou.parse : Ou.parseInline;
|
|
5804
|
+
if (i.async) return Promise.resolve(i.hooks ? i.hooks.preprocess(t) : t).then((e) => o(e, i)).then((e) => i.hooks ? i.hooks.processAllTokens(e) : e).then((e) => i.walkTokens ? Promise.all(this.walkTokens(e, i.walkTokens)).then(() => e) : e).then((e) => s(e, i)).then((e) => i.hooks ? i.hooks.postprocess(e) : e).catch(a);
|
|
5805
|
+
try {
|
|
5806
|
+
i.hooks && (t = i.hooks.preprocess(t));
|
|
5807
|
+
let e = o(t, i);
|
|
5808
|
+
i.hooks && (e = i.hooks.processAllTokens(e)), i.walkTokens && this.walkTokens(e, i.walkTokens);
|
|
5809
|
+
let n = s(e, i);
|
|
5810
|
+
return i.hooks && (n = i.hooks.postprocess(n)), n;
|
|
5811
|
+
} catch (e) {
|
|
5812
|
+
return a(e);
|
|
5813
|
+
}
|
|
5814
|
+
};
|
|
5815
|
+
}
|
|
5816
|
+
onError(e, t) {
|
|
5817
|
+
return (n) => {
|
|
5818
|
+
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
5819
|
+
let e = "<p>An error occurred:</p><pre>" + _u(n.message + "", !0) + "</pre>";
|
|
5820
|
+
return t ? Promise.resolve(e) : e;
|
|
5821
|
+
}
|
|
5822
|
+
if (t) return Promise.reject(n);
|
|
5823
|
+
throw n;
|
|
5824
|
+
};
|
|
5552
5825
|
}
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
maximumFractionDigits: lu(a)
|
|
5557
|
-
});
|
|
5558
|
-
}
|
|
5559
|
-
var bu = {
|
|
5560
|
-
24: "Y",
|
|
5561
|
-
21: "Z",
|
|
5562
|
-
18: "E",
|
|
5563
|
-
15: "P",
|
|
5564
|
-
12: "T",
|
|
5565
|
-
9: "G",
|
|
5566
|
-
6: "M",
|
|
5567
|
-
3: "k",
|
|
5568
|
-
0: "",
|
|
5569
|
-
"-3": "m",
|
|
5570
|
-
"-6": "µ",
|
|
5571
|
-
"-9": "n",
|
|
5572
|
-
"-12": "p",
|
|
5573
|
-
"-15": "f",
|
|
5574
|
-
"-18": "a",
|
|
5575
|
-
"-21": "z",
|
|
5576
|
-
"-24": "y"
|
|
5577
|
-
};
|
|
5578
|
-
function xu(e, t) {
|
|
5579
|
-
let n = vu(e);
|
|
5580
|
-
if (n !== null) return n;
|
|
5581
|
-
let [r, i] = fu(t).format(e).split("E");
|
|
5582
|
-
return i in bu ? r + bu[i] : `${r}E${i}`;
|
|
5583
|
-
}
|
|
5584
|
-
//#endregion
|
|
5585
|
-
//#region src/components/ui/number-field.tsx
|
|
5586
|
-
var Su = L.forwardRef((e, t) => {
|
|
5587
|
-
let r = (0, X.c)(53), i, a, o, s, c;
|
|
5588
|
-
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5]) : ({placeholder: o, variant: c, onInputText: a, formatOptions: i, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c);
|
|
5589
|
-
let l = c === void 0 ? "default" : c, { locale: u } = h(), d;
|
|
5590
|
-
r[6] === u ? d = r[7] : (d = lu(u), r[6] = u, r[7] = d);
|
|
5591
|
-
let f;
|
|
5592
|
-
r[8] !== i || r[9] !== d ? (f = {
|
|
5593
|
-
minimumFractionDigits: 0,
|
|
5594
|
-
maximumFractionDigits: d,
|
|
5595
|
-
...i
|
|
5596
|
-
}, r[8] = i, r[9] = d, r[10] = f) : f = r[10];
|
|
5597
|
-
let p = l === "default" ? "h-6 w-full mb-1" : "h-4 w-full mb-0.5", m = l === "xs" && "text-xs", g;
|
|
5598
|
-
r[11] !== s.className || r[12] !== p || r[13] !== m ? (g = n("shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid", "flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background", "disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid", "focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary", p, m, s.className), r[11] = s.className, r[12] = p, r[13] = m, r[14] = g) : g = r[14];
|
|
5599
|
-
let v = s.isDisabled, y;
|
|
5600
|
-
r[15] === a ? y = r[16] : (y = a ? (e) => a(e.currentTarget.value) : void 0, r[15] = a, r[16] = y);
|
|
5601
|
-
let b = l === "default" ? "px-1.5" : "px-1", x;
|
|
5602
|
-
r[17] === b ? x = r[18] : (x = n("flex-1", "w-full", "placeholder:text-muted-foreground", "outline-hidden", "disabled:cursor-not-allowed disabled:opacity-50", b), r[17] = b, r[18] = x);
|
|
5603
|
-
let S;
|
|
5604
|
-
r[19] !== o || r[20] !== s.isDisabled || r[21] !== t || r[22] !== x || r[23] !== y ? (S = /* @__PURE__ */ (0, R.jsx)(nu, {
|
|
5605
|
-
ref: t,
|
|
5606
|
-
disabled: v,
|
|
5607
|
-
placeholder: o,
|
|
5608
|
-
onKeyDown: wu,
|
|
5609
|
-
onInput: y,
|
|
5610
|
-
className: x
|
|
5611
|
-
}), r[19] = o, r[20] = s.isDisabled, r[21] = t, r[22] = x, r[23] = y, r[24] = S) : S = r[24];
|
|
5612
|
-
let w = s.isDisabled, T = l === "xs" && "w-2 h-2", E;
|
|
5613
|
-
r[25] === T ? E = r[26] : (E = n("w-3 h-3 -mb-px", T), r[25] = T, r[26] = E);
|
|
5614
|
-
let D;
|
|
5615
|
-
r[27] === E ? D = r[28] : (D = /* @__PURE__ */ (0, R.jsx)(C, {
|
|
5616
|
-
"aria-hidden": !0,
|
|
5617
|
-
className: E
|
|
5618
|
-
}), r[27] = E, r[28] = D);
|
|
5619
|
-
let O;
|
|
5620
|
-
r[29] !== s.isDisabled || r[30] !== D || r[31] !== l ? (O = /* @__PURE__ */ (0, R.jsx)(Cu, {
|
|
5621
|
-
slot: "increment",
|
|
5622
|
-
isDisabled: w,
|
|
5623
|
-
variant: l,
|
|
5624
|
-
excludeFromTabOrder: !0,
|
|
5625
|
-
children: D
|
|
5626
|
-
}), r[29] = s.isDisabled, r[30] = D, r[31] = l, r[32] = O) : O = r[32];
|
|
5627
|
-
let ee;
|
|
5628
|
-
r[33] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ (0, R.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), r[33] = ee) : ee = r[33];
|
|
5629
|
-
let te = s.isDisabled, ne = l === "xs" && "w-2 h-2", k;
|
|
5630
|
-
r[34] === ne ? k = r[35] : (k = n("w-3 h-3 -mt-px", ne), r[34] = ne, r[35] = k);
|
|
5631
|
-
let A;
|
|
5632
|
-
r[36] === k ? A = r[37] : (A = /* @__PURE__ */ (0, R.jsx)(_, {
|
|
5633
|
-
"aria-hidden": !0,
|
|
5634
|
-
className: k
|
|
5635
|
-
}), r[36] = k, r[37] = A);
|
|
5636
|
-
let j;
|
|
5637
|
-
r[38] !== s.isDisabled || r[39] !== A || r[40] !== l ? (j = /* @__PURE__ */ (0, R.jsx)(Cu, {
|
|
5638
|
-
slot: "decrement",
|
|
5639
|
-
isDisabled: te,
|
|
5640
|
-
variant: l,
|
|
5641
|
-
excludeFromTabOrder: !0,
|
|
5642
|
-
children: A
|
|
5643
|
-
}), r[38] = s.isDisabled, r[39] = A, r[40] = l, r[41] = j) : j = r[41];
|
|
5644
|
-
let M;
|
|
5645
|
-
r[42] !== O || r[43] !== j ? (M = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
5646
|
-
className: "flex flex-col border-s-2",
|
|
5647
|
-
children: [
|
|
5648
|
-
O,
|
|
5649
|
-
ee,
|
|
5650
|
-
j
|
|
5651
|
-
]
|
|
5652
|
-
}), r[42] = O, r[43] = j, r[44] = M) : M = r[44];
|
|
5653
|
-
let N;
|
|
5654
|
-
r[45] !== S || r[46] !== M || r[47] !== g ? (N = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
5655
|
-
className: g,
|
|
5656
|
-
children: [S, M]
|
|
5657
|
-
}), r[45] = S, r[46] = M, r[47] = g, r[48] = N) : N = r[48];
|
|
5658
|
-
let re;
|
|
5659
|
-
return r[49] !== s || r[50] !== N || r[51] !== f ? (re = /* @__PURE__ */ (0, R.jsx)(cu, {
|
|
5660
|
-
...s,
|
|
5661
|
-
formatOptions: f,
|
|
5662
|
-
children: N
|
|
5663
|
-
}), r[49] = s, r[50] = N, r[51] = f, r[52] = re) : re = r[52], re;
|
|
5664
|
-
});
|
|
5665
|
-
Su.displayName = "NumberField";
|
|
5666
|
-
var Cu = (e) => {
|
|
5667
|
-
let t = (0, X.c)(6), r = !e.isDisabled && "hover:text-primary hover:bg-muted", i = e.variant === "default" ? "px-0.5" : "px-0.25", a;
|
|
5668
|
-
t[0] !== r || t[1] !== i ? (a = n("cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary", "disabled:cursor-not-allowed disabled:opacity-50", r, i), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
|
|
5669
|
-
let o;
|
|
5670
|
-
return t[3] !== e || t[4] !== a ? (o = /* @__PURE__ */ (0, R.jsx)(Ul, {
|
|
5671
|
-
...e,
|
|
5672
|
-
className: a
|
|
5673
|
-
}), t[3] = e, t[4] = a, t[5] = o) : o = t[5], o;
|
|
5674
|
-
};
|
|
5675
|
-
function wu(e) {
|
|
5676
|
-
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
5826
|
+
}();
|
|
5827
|
+
function $(e, t) {
|
|
5828
|
+
return Au.parse(e, t);
|
|
5677
5829
|
}
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
let e;
|
|
5686
|
-
return i[5] !== s || i[6] !== t ? (e = /* @__PURE__ */ (0, R.jsx)("input", {
|
|
5687
|
-
type: "hidden",
|
|
5688
|
-
ref: t,
|
|
5689
|
-
...s
|
|
5690
|
-
}), i[5] = s, i[6] = t, i[7] = e) : e = i[7], e;
|
|
5691
|
-
}
|
|
5692
|
-
let u;
|
|
5693
|
-
i[8] === s.rootClassName ? u = i[9] : (u = n("relative", s.rootClassName), i[8] = s.rootClassName, i[9] = u);
|
|
5694
|
-
let d;
|
|
5695
|
-
i[10] === l ? d = i[11] : (d = l && /* @__PURE__ */ (0, R.jsx)("div", {
|
|
5696
|
-
className: "absolute inset-y-0 left-0 flex items-center pl-[6px] pointer-events-none text-muted-foreground",
|
|
5697
|
-
children: l
|
|
5698
|
-
}), i[10] = l, i[11] = d);
|
|
5699
|
-
let f = l && "pl-7", p = o && "pr-10", m;
|
|
5700
|
-
i[12] !== a || i[13] !== f || i[14] !== p ? (m = n("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid", "flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50", f, p, a), i[12] = a, i[13] = f, i[14] = p, i[15] = m) : m = i[15];
|
|
5701
|
-
let h;
|
|
5702
|
-
i[16] === Symbol.for("react.memo_cache_sentinel") ? (h = r.stopPropagation(), i[16] = h) : h = i[16];
|
|
5703
|
-
let g;
|
|
5704
|
-
i[17] !== s || i[18] !== t || i[19] !== m || i[20] !== c ? (g = /* @__PURE__ */ (0, R.jsx)("input", {
|
|
5705
|
-
type: c,
|
|
5706
|
-
className: m,
|
|
5707
|
-
ref: t,
|
|
5708
|
-
onClick: h,
|
|
5709
|
-
...s
|
|
5710
|
-
}), i[17] = s, i[18] = t, i[19] = m, i[20] = c, i[21] = g) : g = i[21];
|
|
5711
|
-
let _;
|
|
5712
|
-
i[22] === o ? _ = i[23] : (_ = o && /* @__PURE__ */ (0, R.jsx)("div", {
|
|
5713
|
-
className: "absolute inset-y-0 right-0 flex items-center pr-[6px] text-muted-foreground h-6",
|
|
5714
|
-
children: o
|
|
5715
|
-
}), i[22] = o, i[23] = _);
|
|
5716
|
-
let v;
|
|
5717
|
-
return i[24] !== u || i[25] !== d || i[26] !== g || i[27] !== _ ? (v = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
5718
|
-
className: u,
|
|
5719
|
-
children: [
|
|
5720
|
-
d,
|
|
5721
|
-
g,
|
|
5722
|
-
_
|
|
5723
|
-
]
|
|
5724
|
-
}), i[24] = u, i[25] = d, i[26] = g, i[27] = _, i[28] = v) : v = i[28], v;
|
|
5725
|
-
});
|
|
5726
|
-
Eu.displayName = "Input";
|
|
5727
|
-
var Du = L.forwardRef((e, t) => {
|
|
5728
|
-
let n = (0, X.c)(16), r, i, a;
|
|
5729
|
-
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
5730
|
-
let o;
|
|
5731
|
-
n[4] !== i || n[5] !== a.delay || n[6] !== a.value ? (o = {
|
|
5732
|
-
initialValue: a.value,
|
|
5733
|
-
delay: a.delay,
|
|
5734
|
-
onChange: i
|
|
5735
|
-
}, n[4] = i, n[5] = a.delay, n[6] = a.value, n[7] = o) : o = n[7];
|
|
5736
|
-
let { value: s, onChange: c } = ac(o), l;
|
|
5737
|
-
n[8] === c ? l = n[9] : (l = (e) => c(e.target.value), n[8] = c, n[9] = l);
|
|
5738
|
-
let u;
|
|
5739
|
-
return n[10] !== r || n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== s ? (u = /* @__PURE__ */ (0, R.jsx)(Eu, {
|
|
5740
|
-
ref: t,
|
|
5741
|
-
className: r,
|
|
5742
|
-
...a,
|
|
5743
|
-
onChange: l,
|
|
5744
|
-
value: s
|
|
5745
|
-
}), n[10] = r, n[11] = a, n[12] = t, n[13] = l, n[14] = s, n[15] = u) : u = n[15], u;
|
|
5746
|
-
});
|
|
5747
|
-
Du.displayName = "DebouncedInput";
|
|
5748
|
-
var Ou = L.forwardRef((e, t) => {
|
|
5749
|
-
let n = (0, X.c)(13), r, i, a;
|
|
5750
|
-
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
5751
|
-
let o;
|
|
5752
|
-
n[4] !== i || n[5] !== a.value ? (o = {
|
|
5753
|
-
initialValue: a.value,
|
|
5754
|
-
delay: 200,
|
|
5755
|
-
onChange: i
|
|
5756
|
-
}, n[4] = i, n[5] = a.value, n[6] = o) : o = n[6];
|
|
5757
|
-
let { value: s, onChange: c } = ac(o), l;
|
|
5758
|
-
return n[7] !== r || n[8] !== c || n[9] !== a || n[10] !== t || n[11] !== s ? (l = /* @__PURE__ */ (0, R.jsx)(Su, {
|
|
5759
|
-
ref: t,
|
|
5760
|
-
className: r,
|
|
5761
|
-
...a,
|
|
5762
|
-
onChange: c,
|
|
5763
|
-
value: s
|
|
5764
|
-
}), n[7] = r, n[8] = c, n[9] = a, n[10] = t, n[11] = s, n[12] = l) : l = n[12], l;
|
|
5765
|
-
});
|
|
5766
|
-
Ou.displayName = "DebouncedNumberInput";
|
|
5767
|
-
var ku = L.forwardRef((e, t) => {
|
|
5768
|
-
let r = (0, X.c)(24), i, a, o, s, c;
|
|
5769
|
-
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5]) : ({className: i, rootClassName: o, icon: s, clearable: c, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c);
|
|
5770
|
-
let l = s === void 0 ? Tu : s, u = c === void 0 || c, d = L.useId(), f = a.id || d, p;
|
|
5771
|
-
r[6] === o ? p = r[7] : (p = n("flex items-center border-b px-3", o), r[6] = o, r[7] = p);
|
|
5772
|
-
let m;
|
|
5773
|
-
r[8] === i ? m = r[9] : (m = n("placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", i), r[8] = i, r[9] = m);
|
|
5774
|
-
let h;
|
|
5775
|
-
r[10] !== f || r[11] !== a || r[12] !== t || r[13] !== m ? (h = /* @__PURE__ */ (0, R.jsx)("input", {
|
|
5776
|
-
id: f,
|
|
5777
|
-
ref: t,
|
|
5778
|
-
className: m,
|
|
5779
|
-
...a
|
|
5780
|
-
}), r[10] = f, r[11] = a, r[12] = t, r[13] = m, r[14] = h) : h = r[14];
|
|
5781
|
-
let g;
|
|
5782
|
-
r[15] !== u || r[16] !== f || r[17] !== a ? (g = u && a.value && /* @__PURE__ */ (0, R.jsx)("span", {
|
|
5783
|
-
onPointerDown: (e) => {
|
|
5784
|
-
e.preventDefault(), e.stopPropagation();
|
|
5785
|
-
let t = document.getElementById(f);
|
|
5786
|
-
t && t instanceof HTMLInputElement && (t.focus(), t.value = "", a.onChange?.({
|
|
5787
|
-
...e,
|
|
5788
|
-
target: t,
|
|
5789
|
-
currentTarget: t,
|
|
5790
|
-
type: "change"
|
|
5791
|
-
}));
|
|
5792
|
-
},
|
|
5793
|
-
children: /* @__PURE__ */ (0, R.jsx)(te, { className: "h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer" })
|
|
5794
|
-
}), r[15] = u, r[16] = f, r[17] = a, r[18] = g) : g = r[18];
|
|
5795
|
-
let _;
|
|
5796
|
-
return r[19] !== l || r[20] !== p || r[21] !== h || r[22] !== g ? (_ = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
5797
|
-
className: p,
|
|
5798
|
-
children: [
|
|
5799
|
-
l,
|
|
5800
|
-
h,
|
|
5801
|
-
g
|
|
5802
|
-
]
|
|
5803
|
-
}), r[19] = l, r[20] = p, r[21] = h, r[22] = g, r[23] = _) : _ = r[23], _;
|
|
5804
|
-
});
|
|
5805
|
-
ku.displayName = "SearchInput";
|
|
5806
|
-
var Au = L.forwardRef((e, t) => {
|
|
5807
|
-
let n = (0, X.c)(23), r, i, a;
|
|
5808
|
-
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
5809
|
-
let [o, s] = L.useState(a.value), c;
|
|
5810
|
-
n[4] !== o || n[5] !== i || n[6] !== a.value ? (c = {
|
|
5811
|
-
prop: a.value,
|
|
5812
|
-
defaultProp: o,
|
|
5813
|
-
onChange: i
|
|
5814
|
-
}, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
|
|
5815
|
-
let [l, u] = ie(c), d, f;
|
|
5816
|
-
n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
|
|
5817
|
-
s(l || "");
|
|
5818
|
-
}, f = [l], n[8] = l, n[9] = d, n[10] = f), L.useEffect(d, f);
|
|
5819
|
-
let p;
|
|
5820
|
-
n[11] === Symbol.for("react.memo_cache_sentinel") ? (p = (e) => s(e.target.value), n[11] = p) : p = n[11];
|
|
5821
|
-
let m, h;
|
|
5822
|
-
n[12] !== o || n[13] !== u ? (m = () => u(o || ""), h = (e) => {
|
|
5823
|
-
e.key !== "Enter" || e.shiftKey || u(o || "");
|
|
5824
|
-
}, n[12] = o, n[13] = u, n[14] = m, n[15] = h) : (m = n[14], h = n[15]);
|
|
5825
|
-
let g;
|
|
5826
|
-
return n[16] !== r || n[17] !== o || n[18] !== a || n[19] !== t || n[20] !== m || n[21] !== h ? (g = /* @__PURE__ */ (0, R.jsx)(Eu, {
|
|
5827
|
-
ref: t,
|
|
5828
|
-
className: r,
|
|
5829
|
-
...a,
|
|
5830
|
-
value: o,
|
|
5831
|
-
onChange: p,
|
|
5832
|
-
onBlur: m,
|
|
5833
|
-
onKeyDown: h
|
|
5834
|
-
}), n[16] = r, n[17] = o, n[18] = a, n[19] = t, n[20] = m, n[21] = h, n[22] = g) : g = n[22], g;
|
|
5835
|
-
});
|
|
5836
|
-
Au.displayName = "OnBlurredInput";
|
|
5830
|
+
$.options = $.setOptions = function(e) {
|
|
5831
|
+
return Au.setOptions(e), $.defaults = Au.defaults, fl($.defaults), $;
|
|
5832
|
+
}, $.getDefaults = ul, $.defaults = dl, $.use = function(...e) {
|
|
5833
|
+
return Au.use(...e), $.defaults = Au.defaults, fl($.defaults), $;
|
|
5834
|
+
}, $.walkTokens = function(e, t) {
|
|
5835
|
+
return Au.walkTokens(e, t);
|
|
5836
|
+
}, $.parseInline = Au.parseInline, $.Parser = Ou, $.parser = Ou.parse, $.Renderer = Eu, $.TextRenderer = Du, $.Lexer = Tu, $.lexer = Tu.lex, $.Tokenizer = wu, $.Hooks = ku, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Ou.parse, Tu.lex;
|
|
5837
5837
|
//#endregion
|
|
5838
5838
|
//#region src/components/ui/dropdown-menu.tsx
|
|
5839
5839
|
var ju = Cn, Mu = Tn, Nu = kn, Pu = I(En), Fu = pe(On), Iu = pe(Rn), Lu = In, Ru = L.forwardRef((e, t) => {
|
|
@@ -5979,4 +5979,4 @@ var Gu = L.forwardRef((e, t) => {
|
|
|
5979
5979
|
Gu.displayName = Fn.displayName;
|
|
5980
5980
|
var Ku = T;
|
|
5981
5981
|
//#endregion
|
|
5982
|
-
export { Ys as $, Jn as $t,
|
|
5982
|
+
export { Ys as $, Jn as $t, jc as A, q as At, cc as B, dr as Bt, el as C, Se as Cn, Hi as Ct, Nc as D, Ni as Dt, Yc as E, Ri as Et, Tc as F, Jr as Ft, sc as G, Qn as Gt, lc as H, lr as Ht, xc as I, Tr as It, dc as J, Zn as Jt, _c as K, $n as Kt, Sc as L, wr as Lt, Oc as M, di as Mt, Dc as N, ai as Nt, Fc as O, ji as Ot, Ec as P, ii as Pt, tc as Q, W as Qt, vc as R, Er as Rt, Hc as S, Ce as Sn, Ki as St, Qc as T, J as Tt, pc as U, G as Ut, fc as V, cr as Vt, uc as W, er as Wt, oc as X, qn as Xt, ac as Y, Yn as Yt, rc as Z, U as Zt, ll as _, Je as _n, _a as _t, Wu as a, It as an, ro as at, Jc as b, Te as bn, na as bt, Ku as c, Lt as cn, Wa as ct, Ru as d, qt as dn, Ba as dt, zn as en, Gs as et, Mu as f, Qt as fn, za as ft, al as g, gt as gn, va as gt, sl as h, an as hn, Ta as ht, Vu as i, jt as in, io as it, Ac as j, pi as jt, Mc as k, Ai as kt, Lu as l, Ot as ln, Ka as lt, ol as m, sn as mn, Na as mt, Bu as n, wt as nn, so as nt, Pu as o, Bt as on, to as ot, $ as p, nn as pn, Ia as pt, mc as q, K as qt, Nu as r, Ht as rn, oo as rt, Gu as s, Zt as sn, Ja as st, ju as t, Ct as tn, po as tt, zu as u, Gt as un, Ya as ut, tl as v, Ze as vn, la as vt, Xc as w, Vi as wt, qc as x, we as xn, Qi as xt, Kc as y, Ue as yn, ta as yt, yc as z, Cr as zt };
|