@marimo-team/islands 0.26.1-dev8 → 0.26.1-dev84
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/{ConnectedDataExplorerComponent-DtwVgVpX.js → ConnectedDataExplorerComponent-CO9uVewH.js} +15 -15
- package/dist/{ErrorBoundary-DgwX53fT.js → ErrorBoundary-T8CwNebX.js} +7 -7
- package/dist/{abnfDiagram-VCTEODGH-BbZOIueZ.js → abnfDiagram-VCTEODGH-Ba0MYVW8.js} +2 -2
- package/dist/{any-language-editor-yG-YmLaK.js → any-language-editor-BNe8do3C.js} +5 -5
- package/dist/{architectureDiagram-5GKGNRK7-qjLjxapm.js → architectureDiagram-5GKGNRK7-7MqAehef.js} +1 -1
- package/dist/{assertNever-DywGMo-S.js → assertNever-5vhHGKOK.js} +14 -14
- package/dist/{button-qQhINE7z.js → button-Z2R2272J.js} +34 -31
- package/dist/{capabilities-DKqMqBzm.js → capabilities-ba3Dyv8n.js} +1 -1
- package/dist/{chat-ui-D5YPIONI.js → chat-ui-CjZbdpzb.js} +117 -117
- package/dist/{check-jchHMCfs.js → check-DUIc04aK.js} +1 -1
- package/dist/{chunk-IMKFNOWR-BzDY1_I7.js → chunk-IMKFNOWR-CAWA0HGB.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DbHsMKdo.js → chunk-SHT3W25Y-BIwVQjG5.js} +1 -1
- package/dist/{chunk-SVP7TREG-CtwnwAE6.js → chunk-SVP7TREG-Cux251TB.js} +1 -1
- package/dist/{chunk-TICWLB2K-C5Z5QMbO.js → chunk-TICWLB2K-DJVQ6khO.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-B8E5Hn78.js → classDiagram-ZZMXUADV-Cwve77ev.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DeGsK9bT.js → classDiagram-v2-VYDZK3BY-BAeHKXmD.js} +2 -2
- package/dist/{code-visibility-BRw-I8KK.js → code-visibility-BBgRhs2A.js} +17 -17
- package/dist/{common-CsAoQn5h.js → common-BF30ifb8.js} +6102 -6047
- package/dist/{config-qTaTHnpE.js → config-CShkLThS.js} +43 -42
- package/dist/{copy-icon-BI7vZHEW.js → copy-icon-CmNLxT5_.js} +3 -3
- package/dist/{createReducer-DdSLRfBT.js → createReducer-BUQhgLOI.js} +6 -6
- package/dist/{cynefinDiagram-5FMLGOSQ-NDedRwsw.js → cynefinDiagram-5FMLGOSQ-t4eEkPJh.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-De0sSZO7.js → dagre-GXQ25YYZ-IuZuI28B.js} +1 -1
- package/dist/{data-grid-overlay-editor-DeWsTtac.js → data-grid-overlay-editor-ChntsIBb.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-wBtVl61y.js → diagram-S7CK7UJ4-D8R5Q_ok.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CKWE3c1T.js → diagram-UQ7AKVKN-BGuMPsr-.js} +1 -1
- package/dist/{diagram-VX7I27RA-D2Ac5198.js → diagram-VX7I27RA-BkTtpO8P.js} +1 -1
- package/dist/{diagram-Z3DM3KII-CYaFOQcI.js → diagram-Z3DM3KII-C0__Mxfm.js} +1 -1
- package/dist/{dialog-Ic6dh09m.js → dialog-BvjfalZ9.js} +28 -28
- package/dist/{dist-BvZpdAuG.js → dist-6B1_Ttbh.js} +1 -1
- package/dist/{dist-D1D56-GS.js → dist-B28poF32.js} +2 -2
- package/dist/{dist-BozTF_gH.js → dist-BBZ7lnMw.js} +2 -2
- package/dist/{dist-BfrgytDR.js → dist-BD8ZKF5t.js} +3 -3
- package/dist/{dist-DNkrY12t.js → dist-BG-7Qpaj.js} +3 -3
- package/dist/{dist-D92tYjLc.js → dist-BIaGGUbU.js} +13 -11
- package/dist/{dist-BagHbFqG.js → dist-BR5PU2Ph.js} +3 -3
- package/dist/{dist-DpYpG8Yc.js → dist-BidYR5m4.js} +3 -3
- package/dist/{dist-D95Cd4xm.js → dist-BkGYCvFX.js} +3 -3
- package/dist/{dist-DneeBk3K.js → dist-BmEyXT7K.js} +2 -2
- package/dist/{dist-BdUitvVW.js → dist-Bt0Wt6m9.js} +2 -2
- package/dist/{dist-CEomphG1.js → dist-CG2Sl0D4.js} +2 -2
- package/dist/{dist-BMz__bo5.js → dist-CQfpgadU.js} +3 -3
- package/dist/{dist-BreKIQqQ.js → dist-CVOPvfzN.js} +3 -3
- package/dist/{dist-BEcpQbZa.js → dist-Cm0iCeQQ.js} +3 -3
- package/dist/{dist-CDVvitRS.js → dist-Cnc14jEq.js} +2 -2
- package/dist/{dist-ChcBm3jk.js → dist-D3KPC38e.js} +4 -4
- package/dist/{dist-B1qu3Bez.js → dist-D7BXk27E.js} +3 -3
- package/dist/{dist-BsE4gQHj.js → dist-D9Qhvxvg.js} +1 -1
- package/dist/{dist-OmeAz0fR.js → dist-DJKajXDB.js} +3 -3
- package/dist/{dist-ObeTgSmf.js → dist-DYbNRTYG.js} +4 -4
- package/dist/{dist-Cshl6jBw.js → dist-DhtDWnzK.js} +2 -2
- package/dist/{dist-BunZKA_9.js → dist-_x2Jks2R.js} +2 -2
- package/dist/{dist-MggMo7OR.js → dist-m0MWV-aw.js} +1 -1
- package/dist/{dist-TGSwzj8a.js → dist-pPbYNVjd.js} +4 -4
- package/dist/{dropdown-menu-Dhv4fcNl.js → dropdown-menu-D0DeN-aL.js} +2108 -2108
- package/dist/{ebnfDiagram-PWID7BFC-Ds7f42dj.js → ebnfDiagram-PWID7BFC-CSESPZoz.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-b58Sz2Mc.js → erDiagram-RLTQ6QDP-DsDTtabH.js} +1 -1
- package/dist/{error-banner-CJVLr5_a.js → error-banner-CXLjTW24.js} +75 -80
- package/dist/{error-entries-BKlEsuk4.js → error-entries-CsXAdy1j.js} +1032 -867
- package/dist/{esm-B9n0caHs.js → esm-DY8dGAjJ.js} +23 -23
- package/dist/{esm-Bwp_FHP0.js → esm-Dw2ZydG_.js} +3 -3
- package/dist/{feedback-button-DBJ87u8R.js → feedback-button-nmOvfn22.js} +123 -123
- package/dist/{flowDiagram-HODETNUW-BH9U7VZK.js → flowDiagram-HODETNUW-qxDPYbfV.js} +2 -2
- package/dist/{formats-BLNFWWhV.js → formats-BRDSQgKN.js} +3 -3
- package/dist/{glide-data-editor-CQQvTuRa.js → glide-data-editor-SkR9hqZZ.js} +43 -43
- package/dist/{glide-utils-Ze_7l_91.js → glide-utils-CD8BaFTm.js} +3 -3
- package/dist/{globals-KyhCA8uY.js → globals-BjiU5aEs.js} +3 -3
- package/dist/{html-to-image-CNM0ZSFD.js → html-to-image-CwpapHNl.js} +24212 -24090
- package/dist/{infoDiagram-27XIBGKW-xbjwrcNi.js → infoDiagram-27XIBGKW-B5hq8RM_.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DKtukhGS.js → ishikawaDiagram-5VMMS53U-DkHc_9ET.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-BEhlkZBb.js → kanban-definition-UXKFOSKX-CqkTFXmU.js} +1 -1
- package/dist/{loader-Bin_dutt.js → loader-qPmiRXZd.js} +1 -1
- package/dist/main.js +8865 -8747
- package/dist/{mermaid-D1CZDNoB.js → mermaid-pmVHDUQA.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-DQcnJPcV.js → mindmap-definition-YA3MSWOX-D6cNa__z.js} +1 -1
- package/dist/{number-overlay-editor-Bul3xvgs.js → number-overlay-editor-GjrMTG9X.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-BFQuPYfI.js → pegDiagram-XKGWAZYB-CmWJX_s1.js} +2 -2
- package/dist/{pencil-DVYzq-iR.js → pencil-CxMgOe04.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-l7aqNrem.js → pieDiagram-E7YTZNPT-CAQAxHah.js} +1 -1
- package/dist/{process-output-DthYR2Te.js → process-output-ztSj9cDn.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-6R3C1lwQ.js → railroadDiagram-O6MQD6OU-jlSsiQg3.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DdWYu8fn.js → requirementDiagram-BXWQKSXE-DkDjfPhn.js} +1 -1
- package/dist/{reveal-component-CYrENlgq.js → reveal-component-BrZbx6s7.js} +1017 -1017
- package/dist/{select-CDUxhHZg.js → select-CEnB18uc.js} +364 -364
- package/dist/{sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js → sequenceDiagram-WJ2MYXX4-DLywsGCW.js} +1 -1
- package/dist/{spec-ZAt4P01J.js → spec-Dz-Avv1m.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-BGnTUhFJ.js → stateDiagram-D77RDMKH-DUmlKwYU.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DsJbmDf1.js → stateDiagram-v2-MP3YSRHH-D646KiXs.js} +2 -2
- package/dist/{static-state-C4bAlKTU.js → static-state-DhVFm8Z6.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Bd4Bzh9r.js → swimlanes-42K2YHIH-L7B1GphF.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BlY12Jf6.js → swimlanesDiagram-VR7AAH4N-DEu2wxtC.js} +2 -2
- package/dist/{swiper-component-DTdNB9wg.js → swiper-component-B2O8hF7b.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-m0LanyCH.js → timeline-definition-24CTP7MA-DDPyx1yG.js} +1 -1
- package/dist/{toast-U3NpO2x3.js → toast-BTjH6fIf.js} +197 -197
- package/dist/{tooltip-UzJukb3F.js → tooltip-DyLdBIM4.js} +81 -81
- package/dist/{use-restore-focus-DaTVz6S6.js → use-restore-focus-DJ_-uSn_.js} +2006 -1997
- package/dist/{useDateFormatter-LQNtoXyh.js → useDateFormatter-HpKD0jEC.js} +2 -2
- package/dist/{useDeepCompareMemoize-CmNbQ9TT.js → useDeepCompareMemoize-CHx-NxMl.js} +1 -1
- package/dist/{useIframeCapabilities-HTZiVlGV.js → useIframeCapabilities-_0KX0nu_.js} +1 -1
- package/dist/{useLifecycle-DTMczKkf.js → useLifecycle-tPpAt-OE.js} +2 -2
- package/dist/{vega-component-ZTdbCcwI.js → vega-component-BxJFcD2G.js} +19 -19
- package/dist/{vennDiagram-4TSXK5OY-BJ7vqDmn.js → vennDiagram-4TSXK5OY-CRwWeb7g.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-D5kWacsn.js → wardleyDiagram-VM6X3IG4-DVlG9eoq.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-gr15Ws_z.js → xychartDiagram-S5SC5T6Z-CM32AISp.js} +1 -1
- package/package.json +3 -3
- package/src/__mocks__/animation-frames.ts +31 -0
- package/src/__mocks__/executions.ts +51 -23
- package/src/__mocks__/intersection-observer.ts +45 -0
- package/src/__mocks__/notebook.ts +1 -1
- package/src/__tests__/branded.ts +4 -0
- package/src/__tests__/notebook-analysis.ts +48 -0
- package/src/__tests__/render-tracker.ts +15 -0
- package/src/__tests__/setup.ts +3 -0
- package/src/components/app-config/__tests__/add-model-discovery.test.tsx +30 -0
- package/src/components/app-config/ai-config.tsx +5 -3
- package/src/components/app-config/user-config-form.tsx +1 -1
- package/src/components/data-table/__tests__/export-actions.test.tsx +79 -0
- package/src/components/data-table/export-actions.tsx +64 -19
- package/src/components/data-table/schemas.ts +1 -0
- package/src/components/databases/engine-variable.tsx +2 -2
- package/src/components/dependency-graph/panels.tsx +2 -2
- package/src/components/editor/__tests__/cell-renders.test.tsx +116 -0
- package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +1 -1
- package/src/components/editor/actions/useCellActionButton.tsx +2 -8
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +28 -61
- package/src/components/editor/cell/CreateCellButton.tsx +69 -40
- package/src/components/editor/cell/__tests__/CreateCellButton.test.tsx +49 -0
- package/src/components/editor/cell/__tests__/cell-context-menu.test.tsx +126 -0
- package/src/components/editor/cell/__tests__/useRunCells.test.tsx +5 -5
- package/src/components/editor/cell/cell-context-menu.tsx +202 -111
- package/src/components/editor/cell/code/__tests__/code-placeholder.test.tsx +40 -0
- package/src/components/editor/cell/code/cell-editor.tsx +49 -108
- package/src/components/editor/cell/code/code-placeholder.css +61 -11
- package/src/components/editor/cell/code/code-placeholder.tsx +52 -27
- package/src/components/editor/cell/collapse.tsx +6 -3
- package/src/components/editor/cell/useSplitCell.tsx +2 -2
- package/src/components/editor/chrome/panels/__tests__/secrets-panel.test.tsx +57 -0
- package/src/components/editor/chrome/panels/secrets-panel.tsx +36 -9
- package/src/components/editor/chrome/panels/secrets-utils.ts +20 -0
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +5 -2
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +6 -10
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +240 -93
- package/src/components/editor/errors/auto-fix.tsx +8 -7
- package/src/components/editor/errors/send-error-report-button.tsx +139 -41
- package/src/components/editor/header/status.tsx +5 -2
- package/src/components/editor/navigation/__tests__/navigation.test.ts +3 -16
- 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/output/console/ConsoleOutput.tsx +77 -50
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +28 -0
- package/src/components/editor/renderers/cells-renderer.tsx +3 -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/icons/__tests__/large-spinner.test.tsx +5 -4
- package/src/components/scratchpad/scratchpad.tsx +2 -2
- package/src/components/tracing/tracing-keyboard.test.tsx +4 -3
- package/src/components/ui/__tests__/button-shortcut.test.tsx +22 -0
- package/src/components/ui/__tests__/fullscreen.test.tsx +83 -1
- package/src/components/ui/button.tsx +5 -1
- package/src/components/ui/fullscreen.tsx +43 -89
- package/src/components/variables/__tests__/variables-table.test.tsx +1 -2
- package/src/core/MarimoApp.tsx +1 -1
- package/src/core/__tests__/MarimoApp.test.tsx +147 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +6 -39
- package/src/core/ai/context/providers/__tests__/error.test.ts +6 -3
- package/src/core/ai/staged-cells.ts +8 -35
- 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__/actions.test.ts +2 -2
- package/src/core/cells/__tests__/add-missing-import.test.ts +14 -9
- package/src/core/cells/__tests__/arrange.test.ts +1 -1
- 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 +9 -8
- package/src/core/cells/__tests__/layout.test.ts +1 -1
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +121 -11
- package/src/core/cells/__tests__/runs.test.ts +14 -14
- package/src/core/cells/__tests__/utils.test.ts +3 -2
- package/src/core/cells/actions.ts +6 -6
- package/src/core/cells/add-missing-import.ts +2 -3
- package/src/core/cells/cells.ts +40 -27
- package/src/core/cells/document.ts +1 -2
- package/src/core/cells/execution-console.ts +10 -5
- package/src/core/cells/focus.ts +1 -1
- package/src/core/cells/ids.ts +2 -4
- package/src/core/cells/pending-delete-service.ts +97 -85
- package/src/core/cells/runs.ts +7 -5
- package/src/core/cells/scrollCellIntoView.ts +4 -14
- package/src/core/cells/session.ts +8 -5
- package/src/core/cells/utils.ts +0 -13
- package/src/core/codemirror/__tests__/cell-documents.test.ts +79 -0
- package/src/core/codemirror/__tests__/debounced-editor-update.test.ts +72 -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__/setup.test.ts +61 -1
- package/src/core/codemirror/__tests__/use-lazy-editor-mount.test.tsx +198 -0
- package/src/core/codemirror/cell-documents.ts +132 -0
- package/src/core/codemirror/cells/debugger-decorations.ts +22 -18
- package/src/core/codemirror/cells/line-timing-decorations.ts +13 -11
- package/src/core/codemirror/cells/traceback-decorations.ts +10 -11
- package/src/core/codemirror/code-lens/__tests__/entities.test.ts +7 -11
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +38 -12
- package/src/core/codemirror/code-lens/__tests__/perf.test.ts +7 -9
- package/src/core/codemirror/code-lens/extension.ts +21 -13
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +9 -14
- package/src/core/codemirror/copilot/getCodes.ts +3 -14
- package/src/core/codemirror/debounced-editor-update.ts +41 -0
- 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__/underline.test.ts +58 -0
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +24 -44
- package/src/core/codemirror/go-to-definition/extension.ts +9 -7
- package/src/core/codemirror/go-to-definition/underline.ts +39 -48
- package/src/core/codemirror/language/__tests__/sql.test.ts +36 -0
- package/src/core/codemirror/language/cell-code.ts +7 -0
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +2 -18
- package/src/core/codemirror/language/languages/sql/sql.ts +3 -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/placeholder/extensions.ts +26 -24
- package/src/core/codemirror/reactive-references/__tests__/extension.test.ts +54 -0
- package/src/core/codemirror/reactive-references/extension.ts +30 -21
- package/src/core/codemirror/use-lazy-editor-mount.ts +70 -0
- package/src/core/codemirror/utils.ts +2 -6
- package/src/core/datasets/__tests__/data-source.test.ts +15 -17
- package/src/core/datasets/data-source-connections.ts +8 -11
- package/src/core/datasets/state.ts +7 -12
- package/src/core/dom/__tests__/uiregistry.test.ts +27 -0
- package/src/core/dom/uiregistry.ts +9 -7
- package/src/core/executions/__tests__/atoms.test.ts +211 -5
- package/src/core/executions/__tests__/freshness.test.ts +65 -56
- package/src/core/executions/__tests__/interrupt.test.ts +5 -3
- package/src/core/executions/__tests__/output-lifecycle.test.ts +95 -7
- package/src/core/executions/__tests__/output.test.ts +5 -3
- package/src/core/executions/__tests__/run.test.ts +4 -4
- package/src/core/executions/__tests__/select.test.ts +108 -69
- package/src/core/executions/atoms.ts +248 -83
- package/src/core/executions/freshness.ts +7 -7
- package/src/core/executions/hooks.ts +15 -59
- package/src/core/executions/index.ts +2 -0
- package/src/core/executions/output.ts +49 -35
- package/src/core/executions/select.ts +90 -37
- package/src/core/export/__tests__/hooks.test.ts +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +1 -1
- package/src/core/islands/bootstrap.ts +7 -7
- package/src/core/islands/bridge.ts +1 -1
- package/src/core/meta/__tests__/code-visibility.test.tsx +3 -2
- package/src/core/notebook/document/__tests__/codemirror.test.ts +8 -6
- package/src/core/notebook/document/__tests__/draft.test.ts +56 -58
- package/src/core/notebook/document/__tests__/fixtures.ts +8 -7
- package/src/core/notebook/document/__tests__/hooks.test.tsx +39 -35
- package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +8 -5
- package/src/core/notebook/document/__tests__/model.test.ts +8 -5
- package/src/core/notebook/document/__tests__/protocol-fixtures.ts +2 -2
- package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +37 -32
- package/src/core/notebook/document/__tests__/scenarios.test.ts +49 -45
- package/src/core/notebook/document/__tests__/state.test.ts +59 -56
- package/src/core/notebook/document/__tests__/submission.test.ts +15 -12
- package/src/core/notebook/document/__tests__/test-host.ts +3 -2
- package/src/core/notebook/document/__tests__/user.ts +7 -3
- package/src/core/notebook/document/draft.ts +29 -11
- package/src/core/notebook/document/state.ts +7 -6
- package/src/core/notebook/replica/__tests__/document.test.ts +9 -5
- package/src/core/notebook/replica/__tests__/executions.test.ts +90 -25
- package/src/core/notebook/replica/__tests__/fixtures.ts +7 -2
- package/src/core/notebook/replica/__tests__/frame.test.ts +206 -0
- package/src/core/notebook/replica/__tests__/once-per-frame.test.ts +95 -0
- package/src/core/notebook/replica/__tests__/replica.test.ts +53 -9
- package/src/core/notebook/replica/__tests__/results.test.ts +27 -29
- package/src/core/notebook/replica/backend.ts +4 -1
- package/src/core/notebook/replica/execution-state.ts +2 -2
- package/src/core/notebook/replica/frame.ts +54 -0
- package/src/core/notebook/replica/index.ts +1 -0
- package/src/core/notebook/replica/once-per-frame.ts +60 -0
- package/src/core/notebook/replica/replica.ts +27 -6
- package/src/core/notebook/replica/resources/analysis.ts +1 -1
- package/src/core/notebook/replica/resources/document.ts +9 -8
- package/src/core/notebook/replica/resources/executions.ts +197 -78
- package/src/core/notebook/replica/resources/results.ts +8 -14
- package/src/core/saving/__tests__/document.test.tsx +1 -1
- package/src/core/saving/__tests__/state.test.ts +2 -2
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +55 -9
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +230 -12
- package/src/core/session/active-notebook.ts +10 -1
- package/src/core/session/useNotebookReplica.ts +15 -2
- package/src/core/session/useNotebookSession.tsx +38 -46
- package/src/core/state/__tests__/atom-with-selected-inputs.test.ts +48 -0
- package/src/core/state/__tests__/create-keyed-selector-hook.test.tsx +137 -0
- package/src/core/state/atom-with-selected-inputs.ts +24 -0
- package/src/core/state/create-keyed-atom-hook.ts +18 -0
- package/src/core/state/create-keyed-selector-hook.ts +22 -0
- package/src/core/storage/__tests__/state.test.ts +6 -9
- package/src/core/storage/state.ts +5 -8
- package/src/core/transports/__tests__/static.test.ts +24 -20
- package/src/core/transports/static.ts +3 -2
- package/src/core/variables/state.ts +73 -68
- package/src/core/variables/types.ts +2 -2
- package/src/core/vscode/__tests__/is-in-vscode.test.ts +36 -0
- package/src/core/vscode/is-in-vscode.ts +2 -2
- package/src/core/wasm/__tests__/bridge.test.ts +73 -1
- package/src/core/wasm/bridge.ts +5 -4
- package/src/plugins/impl/TextInputPlugin.tsx +2 -1
- package/src/plugins/impl/__test__/text-labels.test.tsx +46 -1
- package/src/utils/__tests__/lazy.test.tsx +33 -0
- package/src/utils/__tests__/shared-intersection-observer.test.ts +49 -0
- package/src/utils/__tests__/shared-resource.test.ts +107 -0
- package/src/utils/arrays.ts +4 -1
- package/src/utils/lazy.tsx +74 -0
- package/src/utils/shared-intersection-observer.ts +53 -0
- package/src/utils/shared-resource.ts +59 -0
- package/src/core/variables/__tests__/state.test.ts +0 -148
- package/src/utils/lazy.ts +0 -35
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
2
|
-
import { g as t, h as n, m as r, p as i, u as a } from "./button-
|
|
2
|
+
import { g as t, h as n, m as r, p as i, u as a } from "./button-Z2R2272J.js";
|
|
3
3
|
import { t as o } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { c, h as l, l as u, s as d, u as f } from "./tooltip-
|
|
6
|
-
import { t as p } from "./check-
|
|
7
|
-
import { A as m, C as h, E as g, M as _, S as v, _ as y, b, g as x, h as S, j as C, m as w, p as T, v as E, x as D, y as O } from "./select-
|
|
8
|
-
import { a as ee, s as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
5
|
+
import { c, h as l, l as u, s as d, u as f } from "./tooltip-DyLdBIM4.js";
|
|
6
|
+
import { t as p } from "./check-DUIc04aK.js";
|
|
7
|
+
import { A as m, C as h, E as g, M as _, S as v, _ as y, b, g as x, h as S, j as C, m as w, p as T, v as E, x as D, y as O } from "./select-CEnB18uc.js";
|
|
8
|
+
import { a as ee, s as te } from "./assertNever-5vhHGKOK.js";
|
|
9
|
+
import { t as ne } from "./clsx-CoeGtWvn.js";
|
|
10
|
+
import { t as k } from "./react-dom-DdqGVp5N.js";
|
|
11
|
+
import { t as A } from "./jsx-runtime-D8btoEHk.js";
|
|
12
|
+
import { Cn as j, Sn as M, _n as N, an as P, bn as F, cn as re, dn as ie, fn as ae, gn as oe, hn as se, in as ce, l as le, ln as ue, n as de, o as fe, pn as pe, s as me, sn as he, un as ge, vn as _e, xn as ve, yn as I } from "./use-restore-focus-DJ_-uSn_.js";
|
|
13
13
|
import { t as ye } from "./debounce-DrhhziJv.js";
|
|
14
14
|
import { t as be } from "./useEvent-BoN7U38T.js";
|
|
15
15
|
import { t as xe } from "./once-NnpX_HnX.js";
|
|
@@ -55,13 +55,13 @@ function Me() {
|
|
|
55
55
|
return Ae(je, () => !0, () => !1);
|
|
56
56
|
}
|
|
57
57
|
De(Me, "useIsHydratedModern");
|
|
58
|
-
var Ne = typeof Ae == "function" ? Me : ke, R =
|
|
58
|
+
var Ne = typeof Ae == "function" ? Me : ke, R = A(), Pe = Object.defineProperty, Fe = (e, t) => Pe(e, "name", {
|
|
59
59
|
value: t,
|
|
60
60
|
configurable: !0
|
|
61
61
|
}), Ie = "rovingFocusGroup.onEntryFocus", Le = {
|
|
62
62
|
bubbles: !1,
|
|
63
63
|
cancelable: !0
|
|
64
|
-
}, Re = "RovingFocusGroup", [ze, Be, Ve] = ee(Re), [He, Ue] =
|
|
64
|
+
}, Re = "RovingFocusGroup", [ze, Be, Ve] = ee(Re), [He, Ue] = ve(Re, [Ve]), We = {
|
|
65
65
|
Vertical: "vertical",
|
|
66
66
|
Horizontal: "horizontal"
|
|
67
67
|
}, Ge = {
|
|
@@ -79,12 +79,12 @@ var Ne = typeof Ae == "function" ? Me : ke, R = j(), Pe = Object.defineProperty,
|
|
|
79
79
|
})
|
|
80
80
|
});
|
|
81
81
|
}, "RovingFocusGroup")), Ye = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Fe(function(e, t) {
|
|
82
|
-
let { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = e, p = L.useRef(null), h = i(t, p), g = m(o), [_, v] =
|
|
82
|
+
let { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = e, p = L.useRef(null), h = i(t, p), g = m(o), [_, v] = _e({
|
|
83
83
|
prop: s,
|
|
84
84
|
defaultProp: c ?? null,
|
|
85
85
|
onChange: l,
|
|
86
86
|
caller: Re
|
|
87
|
-
}), [y, b] = L.useState(!1), x =
|
|
87
|
+
}), [y, b] = L.useState(!1), x = se(u), S = Be(n), C = L.useRef(!1), [w, T] = L.useState(0);
|
|
88
88
|
return L.useEffect(() => {
|
|
89
89
|
let e = p.current;
|
|
90
90
|
if (e) return e.addEventListener(Ie, x), () => e.removeEventListener(Ie, x);
|
|
@@ -98,7 +98,7 @@ var Ne = typeof Ae == "function" ? Me : ke, R = j(), Pe = Object.defineProperty,
|
|
|
98
98
|
onItemShiftTab: L.useCallback(() => b(!0), []),
|
|
99
99
|
onFocusableItemAdd: L.useCallback(() => T((e) => e + 1), []),
|
|
100
100
|
onFocusableItemRemove: L.useCallback(() => T((e) => e - 1), []),
|
|
101
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
101
|
+
children: /* @__PURE__ */ (0, R.jsx)(M.div, {
|
|
102
102
|
tabIndex: y || w === 0 ? -1 : 0,
|
|
103
103
|
"data-orientation": r,
|
|
104
104
|
...f,
|
|
@@ -129,8 +129,8 @@ var Ne = typeof Ae == "function" ? Me : ke, R = j(), Pe = Object.defineProperty,
|
|
|
129
129
|
})
|
|
130
130
|
});
|
|
131
131
|
}, "RovingFocusGroupImpl")), Xe = "RovingFocusGroupItem", Ze = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Fe(function(e, t) {
|
|
132
|
-
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c =
|
|
133
|
-
return
|
|
132
|
+
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = oe(), l = a || c, u = qe(Xe, n), d = u.currentTabStopId === l, f = Be(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u, g = Ne();
|
|
133
|
+
return F(() => {
|
|
134
134
|
if (g && r) return p(), () => m();
|
|
135
135
|
}, [
|
|
136
136
|
g,
|
|
@@ -149,7 +149,7 @@ var Ne = typeof Ae == "function" ? Me : ke, R = j(), Pe = Object.defineProperty,
|
|
|
149
149
|
id: l,
|
|
150
150
|
focusable: r,
|
|
151
151
|
active: i,
|
|
152
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
152
|
+
children: /* @__PURE__ */ (0, R.jsx)(M.span, {
|
|
153
153
|
tabIndex: d ? 0 : -1,
|
|
154
154
|
"data-orientation": u.orientation,
|
|
155
155
|
...s,
|
|
@@ -234,12 +234,12 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
234
234
|
}, ut = {
|
|
235
235
|
ltr: ["ArrowLeft"],
|
|
236
236
|
rtl: ["ArrowRight"]
|
|
237
|
-
}, dt = "Menu", [ft, pt, mt] = ee(dt), [ht, gt] =
|
|
237
|
+
}, dt = "Menu", [ft, pt, mt] = ee(dt), [ht, gt] = ve(dt, [
|
|
238
238
|
mt,
|
|
239
239
|
f,
|
|
240
240
|
Ue
|
|
241
241
|
]), _t = f(), vt = Ue(), [yt, bt] = ht(dt), [xt, St] = ht(dt), Ct = /* @__PURE__ */ z((e) => {
|
|
242
|
-
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = _t(t), [c, l] = L.useState(null), u = L.useRef(!1), f =
|
|
242
|
+
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = _t(t), [c, l] = L.useState(null), u = L.useRef(!1), f = se(a), p = m(i);
|
|
243
243
|
return L.useEffect(() => {
|
|
244
244
|
let e = /* @__PURE__ */ z(() => {
|
|
245
245
|
u.current = !0, document.addEventListener("pointerdown", t, {
|
|
@@ -287,9 +287,9 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
287
287
|
return /* @__PURE__ */ (0, R.jsx)(Et, {
|
|
288
288
|
scope: t,
|
|
289
289
|
forceMount: n,
|
|
290
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
290
|
+
children: /* @__PURE__ */ (0, R.jsx)(N, {
|
|
291
291
|
present: n || a.open,
|
|
292
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
292
|
+
children: /* @__PURE__ */ (0, R.jsx)(re, {
|
|
293
293
|
asChild: !0,
|
|
294
294
|
container: i,
|
|
295
295
|
children: r
|
|
@@ -300,7 +300,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
300
300
|
let n = Dt(B, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = bt(B, e.__scopeMenu), o = St(B, e.__scopeMenu);
|
|
301
301
|
return /* @__PURE__ */ (0, R.jsx)(ft.Provider, {
|
|
302
302
|
scope: e.__scopeMenu,
|
|
303
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
303
|
+
children: /* @__PURE__ */ (0, R.jsx)(N, {
|
|
304
304
|
present: r || a.open,
|
|
305
305
|
children: /* @__PURE__ */ (0, R.jsx)(ft.Slot, {
|
|
306
306
|
scope: e.__scopeMenu,
|
|
@@ -318,7 +318,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
318
318
|
let n = bt(B, e.__scopeMenu), r = L.useRef(null), a = i(t, r);
|
|
319
319
|
return L.useEffect(() => {
|
|
320
320
|
let e = r.current;
|
|
321
|
-
if (e) return
|
|
321
|
+
if (e) return ce(e);
|
|
322
322
|
}, []), /* @__PURE__ */ (0, R.jsx)(Ft, {
|
|
323
323
|
...e,
|
|
324
324
|
ref: a,
|
|
@@ -340,27 +340,27 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
340
340
|
});
|
|
341
341
|
}, "MenuRootContentNonModal")), Pt = a("MenuContent.ScrollLock"), Ft = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
342
342
|
let { __scopeMenu: n, loop: r = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: d, onPointerDownOutside: f, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = e, v = bt(B, n), y = St(B, n), b = _t(n), x = vt(n), S = pt(n), [C, w] = L.useState(null), T = L.useRef(null), [E, D] = L.useState(null);
|
|
343
|
-
|
|
344
|
-
let { nodes: O, registry: ee } =
|
|
343
|
+
ie(E);
|
|
344
|
+
let { nodes: O, registry: ee } = ae(), te = !!(a || g), ne = i(t, T, v.onContentChange, D), k = L.useRef(0), A = L.useRef(""), j = L.useRef(0), M = L.useRef(null), N = L.useRef("right"), F = L.useRef(0), re = L.useMemo(() => g ? [T, ...O.map((e) => ({ current: e }))] : [], [
|
|
345
345
|
T,
|
|
346
346
|
O,
|
|
347
347
|
g
|
|
348
|
-
]),
|
|
348
|
+
]), oe = g ? P : L.Fragment, se = g ? {
|
|
349
349
|
as: Pt,
|
|
350
350
|
allowPinchZoom: !0,
|
|
351
|
-
shards:
|
|
351
|
+
shards: re
|
|
352
352
|
} : void 0, ce = /* @__PURE__ */ z((e) => {
|
|
353
|
-
let t =
|
|
353
|
+
let t = A.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = pn(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
354
354
|
function s(e) {
|
|
355
|
-
|
|
355
|
+
A.current = e, window.clearTimeout(k.current), e !== "" && (k.current = window.setTimeout(() => s(""), 1e3));
|
|
356
356
|
}
|
|
357
357
|
z(s, "updateSearch"), s(t), o && setTimeout(() => o.focus());
|
|
358
358
|
}, "handleTypeaheadSearch");
|
|
359
|
-
L.useEffect(() => () => window.clearTimeout(
|
|
360
|
-
let le = L.useCallback((e) =>
|
|
359
|
+
L.useEffect(() => () => window.clearTimeout(k.current), []), he();
|
|
360
|
+
let le = L.useCallback((e) => N.current === M.current?.side && hn(e, M.current?.area), []);
|
|
361
361
|
return /* @__PURE__ */ (0, R.jsx)(kt, {
|
|
362
362
|
scope: n,
|
|
363
|
-
searchRef:
|
|
363
|
+
searchRef: A,
|
|
364
364
|
onItemEnter: L.useCallback((e) => {
|
|
365
365
|
le(e) && e.preventDefault();
|
|
366
366
|
}, [le]),
|
|
@@ -370,15 +370,15 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
370
370
|
onTriggerLeave: L.useCallback((e) => {
|
|
371
371
|
le(e) && e.preventDefault();
|
|
372
372
|
}, [le]),
|
|
373
|
-
pointerGraceTimerRef:
|
|
373
|
+
pointerGraceTimerRef: j,
|
|
374
374
|
onPointerGraceIntentChange: L.useCallback((e) => {
|
|
375
|
-
|
|
375
|
+
M.current = e;
|
|
376
376
|
}, []),
|
|
377
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
378
|
-
registry:
|
|
379
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
380
|
-
...
|
|
381
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
377
|
+
children: /* @__PURE__ */ (0, R.jsx)(ge, {
|
|
378
|
+
registry: te ? ee : null,
|
|
379
|
+
children: /* @__PURE__ */ (0, R.jsx)(oe, {
|
|
380
|
+
...se,
|
|
381
|
+
children: /* @__PURE__ */ (0, R.jsx)(ue, {
|
|
382
382
|
asChild: !0,
|
|
383
383
|
trapped: a,
|
|
384
384
|
branches: O,
|
|
@@ -386,7 +386,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
386
386
|
e.preventDefault(), T.current?.focus({ preventScroll: !0 });
|
|
387
387
|
}),
|
|
388
388
|
onUnmountAutoFocus: s,
|
|
389
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
389
|
+
children: /* @__PURE__ */ (0, R.jsx)(pe, {
|
|
390
390
|
asChild: !0,
|
|
391
391
|
disableOutsidePointerEvents: c,
|
|
392
392
|
onEscapeKeyDown: d,
|
|
@@ -414,7 +414,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
414
414
|
dir: y.dir,
|
|
415
415
|
...b,
|
|
416
416
|
..._,
|
|
417
|
-
ref:
|
|
417
|
+
ref: ne,
|
|
418
418
|
style: {
|
|
419
419
|
outline: "none",
|
|
420
420
|
..._.style
|
|
@@ -429,13 +429,13 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
429
429
|
st.includes(e.key) && a.reverse(), dn(a);
|
|
430
430
|
}),
|
|
431
431
|
onBlur: I(e.onBlur, (e) => {
|
|
432
|
-
e.currentTarget.contains(e.target) || (window.clearTimeout(
|
|
432
|
+
e.currentTarget.contains(e.target) || (window.clearTimeout(k.current), A.current = "");
|
|
433
433
|
}),
|
|
434
434
|
onPointerMove: I(e.onPointerMove, gn((e) => {
|
|
435
|
-
let t = e.target, n =
|
|
435
|
+
let t = e.target, n = F.current !== e.clientX;
|
|
436
436
|
if (e.currentTarget.contains(t) && n) {
|
|
437
|
-
let t = e.clientX >
|
|
438
|
-
|
|
437
|
+
let t = e.clientX > F.current ? "right" : "left";
|
|
438
|
+
N.current = t, F.current = e.clientX;
|
|
439
439
|
}
|
|
440
440
|
}))
|
|
441
441
|
})
|
|
@@ -447,14 +447,14 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
447
447
|
});
|
|
448
448
|
}, "MenuContentImpl")), It = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
449
449
|
let { __scopeMenu: n, ...r } = e;
|
|
450
|
-
return /* @__PURE__ */ (0, R.jsx)(
|
|
450
|
+
return /* @__PURE__ */ (0, R.jsx)(M.div, {
|
|
451
451
|
role: "group",
|
|
452
452
|
...r,
|
|
453
453
|
ref: t
|
|
454
454
|
});
|
|
455
455
|
}, "MenuGroup")), Lt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
456
456
|
let { __scopeMenu: n, ...r } = e;
|
|
457
|
-
return /* @__PURE__ */ (0, R.jsx)(
|
|
457
|
+
return /* @__PURE__ */ (0, R.jsx)(M.div, {
|
|
458
458
|
...r,
|
|
459
459
|
ref: t
|
|
460
460
|
});
|
|
@@ -466,7 +466,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
466
466
|
bubbles: !0,
|
|
467
467
|
cancelable: !0
|
|
468
468
|
});
|
|
469
|
-
e.addEventListener(zt, (e) => r?.(e), { once: !0 }),
|
|
469
|
+
e.addEventListener(zt, (e) => r?.(e), { once: !0 }), j(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
|
|
470
470
|
}
|
|
471
471
|
}, "handleSelect");
|
|
472
472
|
return /* @__PURE__ */ (0, R.jsx)(Vt, {
|
|
@@ -497,7 +497,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
497
497
|
asChild: !0,
|
|
498
498
|
...c,
|
|
499
499
|
focusable: !r,
|
|
500
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
500
|
+
children: /* @__PURE__ */ (0, R.jsx)(M.div, {
|
|
501
501
|
role: "menuitem",
|
|
502
502
|
"data-highlighted": d ? "" : void 0,
|
|
503
503
|
"aria-disabled": r || void 0,
|
|
@@ -531,7 +531,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
531
531
|
value: void 0,
|
|
532
532
|
onValueChange: /* @__PURE__ */ z(() => {}, "onValueChange")
|
|
533
533
|
}), Gt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
534
|
-
let { value: n, onValueChange: r, ...i } = e, a =
|
|
534
|
+
let { value: n, onValueChange: r, ...i } = e, a = se(r);
|
|
535
535
|
return /* @__PURE__ */ (0, R.jsx)(Ut, {
|
|
536
536
|
scope: e.__scopeMenu,
|
|
537
537
|
value: n,
|
|
@@ -557,9 +557,9 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
557
557
|
});
|
|
558
558
|
}, "MenuRadioItem")), Jt = "MenuItemIndicator", [Yt, Xt] = ht(Jt, { checked: !1 }), Zt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
559
559
|
let { __scopeMenu: n, forceMount: r, ...i } = e, a = Xt(Jt, n);
|
|
560
|
-
return /* @__PURE__ */ (0, R.jsx)(
|
|
560
|
+
return /* @__PURE__ */ (0, R.jsx)(N, {
|
|
561
561
|
present: r || ln(a.checked) || a.checked === !0,
|
|
562
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
562
|
+
children: /* @__PURE__ */ (0, R.jsx)(M.span, {
|
|
563
563
|
...i,
|
|
564
564
|
ref: t,
|
|
565
565
|
"data-state": un(a.checked)
|
|
@@ -567,14 +567,14 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
567
567
|
});
|
|
568
568
|
}, "MenuItemIndicator")), Qt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
569
569
|
let { __scopeMenu: n, ...r } = e;
|
|
570
|
-
return /* @__PURE__ */ (0, R.jsx)(
|
|
570
|
+
return /* @__PURE__ */ (0, R.jsx)(M.div, {
|
|
571
571
|
role: "separator",
|
|
572
572
|
"aria-orientation": "horizontal",
|
|
573
573
|
...r,
|
|
574
574
|
ref: t
|
|
575
575
|
});
|
|
576
576
|
}, "MenuSeparator")), $t = "MenuSub", [en, tn] = ht($t), nn = /* @__PURE__ */ z((e) => {
|
|
577
|
-
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = bt($t, t), o = _t(t), [s, c] = L.useState(null), [l, u] = L.useState(null), f =
|
|
577
|
+
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = bt($t, t), o = _t(t), [s, c] = L.useState(null), [l, u] = L.useState(null), f = se(i);
|
|
578
578
|
return L.useEffect(() => (a.open === !1 && f(!1), () => f(!1)), [a.open, f]), /* @__PURE__ */ (0, R.jsx)(d, {
|
|
579
579
|
...o,
|
|
580
580
|
children: /* @__PURE__ */ (0, R.jsx)(yt, {
|
|
@@ -585,8 +585,8 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
585
585
|
onContentChange: u,
|
|
586
586
|
children: /* @__PURE__ */ (0, R.jsx)(en, {
|
|
587
587
|
scope: t,
|
|
588
|
-
contentId:
|
|
589
|
-
triggerId:
|
|
588
|
+
contentId: oe(),
|
|
589
|
+
triggerId: oe(),
|
|
590
590
|
trigger: s,
|
|
591
591
|
onTriggerChange: c,
|
|
592
592
|
children: n
|
|
@@ -667,7 +667,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
|
|
|
667
667
|
let n = Dt(B, e.__scopeMenu), { forceMount: r = n.forceMount, align: a = "start", ...o } = e, s = bt(B, e.__scopeMenu), c = St(B, e.__scopeMenu), l = tn(on, e.__scopeMenu), u = L.useRef(null), d = i(t, u);
|
|
668
668
|
return /* @__PURE__ */ (0, R.jsx)(ft.Provider, {
|
|
669
669
|
scope: e.__scopeMenu,
|
|
670
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
670
|
+
children: /* @__PURE__ */ (0, R.jsx)(N, {
|
|
671
671
|
present: r || s.open,
|
|
672
672
|
children: /* @__PURE__ */ (0, R.jsx)(ft.Slot, {
|
|
673
673
|
scope: e.__scopeMenu,
|
|
@@ -753,8 +753,8 @@ z(gn, "whenMouse");
|
|
|
753
753
|
var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
|
|
754
754
|
value: t,
|
|
755
755
|
configurable: !0
|
|
756
|
-
}), vn = "DropdownMenu", [yn, bn] =
|
|
757
|
-
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = H(t), l = L.useRef(null), [u, d] =
|
|
756
|
+
}), vn = "DropdownMenu", [yn, bn] = ve(vn, [gt]), H = gt(), [xn, Sn] = yn(vn), Cn = /* @__PURE__ */ V((e) => {
|
|
757
|
+
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = H(t), l = L.useRef(null), [u, d] = _e({
|
|
758
758
|
prop: i,
|
|
759
759
|
defaultProp: a ?? !1,
|
|
760
760
|
onChange: o,
|
|
@@ -762,9 +762,9 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
|
|
|
762
762
|
});
|
|
763
763
|
return /* @__PURE__ */ (0, R.jsx)(xn, {
|
|
764
764
|
scope: t,
|
|
765
|
-
triggerId:
|
|
765
|
+
triggerId: oe(),
|
|
766
766
|
triggerRef: l,
|
|
767
|
-
contentId:
|
|
767
|
+
contentId: oe(),
|
|
768
768
|
open: u,
|
|
769
769
|
onOpenChange: d,
|
|
770
770
|
onOpenToggle: L.useCallback(() => d((e) => !e), [d]),
|
|
@@ -783,7 +783,7 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
|
|
|
783
783
|
return /* @__PURE__ */ (0, R.jsx)(wt, {
|
|
784
784
|
asChild: !0,
|
|
785
785
|
...s,
|
|
786
|
-
children: /* @__PURE__ */ (0, R.jsx)(
|
|
786
|
+
children: /* @__PURE__ */ (0, R.jsx)(M.button, {
|
|
787
787
|
type: "button",
|
|
788
788
|
id: o.triggerId,
|
|
789
789
|
"aria-haspopup": "menu",
|
|
@@ -886,7 +886,7 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
|
|
|
886
886
|
ref: t
|
|
887
887
|
});
|
|
888
888
|
}, "DropdownMenuSeparator")), In = /* @__PURE__ */ V((e) => {
|
|
889
|
-
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = H(t), [s, c] =
|
|
889
|
+
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = H(t), [s, c] = _e({
|
|
890
890
|
prop: r,
|
|
891
891
|
defaultProp: a ?? !1,
|
|
892
892
|
onChange: i,
|
|
@@ -1459,7 +1459,7 @@ function q(...e) {
|
|
|
1459
1459
|
let r = e[n];
|
|
1460
1460
|
for (let e in r) {
|
|
1461
1461
|
let n = t[e], i = r[e];
|
|
1462
|
-
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = ai(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] =
|
|
1462
|
+
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = ai(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = ne(n, i) : e === "id" && n && i ? t.id = fi(n, i) : e === "ref" && n && i ? t.ref = mi(n, i) : t[e] = i === void 0 ? n : i;
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
1465
|
return t;
|
|
@@ -1709,7 +1709,7 @@ function J(e) {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
//#endregion
|
|
1711
1711
|
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria/dist/private/utils/useEvent.mjs
|
|
1712
|
-
var Bi = /* @__PURE__ */ e(
|
|
1712
|
+
var Bi = /* @__PURE__ */ e(k(), 1);
|
|
1713
1713
|
function Vi(e, t, n, r) {
|
|
1714
1714
|
let i = J(n), a = n == null;
|
|
1715
1715
|
(0, L.useEffect)(() => {
|
|
@@ -3394,19 +3394,19 @@ function Gs(e) {
|
|
|
3394
3394
|
}), O = J((e) => {
|
|
3395
3395
|
v(), g.current = !0, t.current = window.setTimeout(D, e);
|
|
3396
3396
|
}), ee = J(() => {
|
|
3397
|
-
(i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(),
|
|
3398
|
-
}),
|
|
3397
|
+
(i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(), te(60));
|
|
3398
|
+
}), te = J((e) => {
|
|
3399
3399
|
v(), g.current = !0, t.current = window.setTimeout(ee, e);
|
|
3400
|
-
}),
|
|
3400
|
+
}), ne = (e) => {
|
|
3401
3401
|
e.preventDefault();
|
|
3402
|
-
}, { addGlobalListener:
|
|
3402
|
+
}, { addGlobalListener: k, removeAllGlobalListeners: A } = ya(), j = (0, L.useRef)(!1), [M, N] = (0, L.useState)(null);
|
|
3403
3403
|
(0, L.useEffect)(() => {
|
|
3404
|
-
|
|
3405
|
-
}, [
|
|
3406
|
-
let [
|
|
3404
|
+
M === "touch" ? O(600) : M ? O(400) : M || v();
|
|
3405
|
+
}, [M]);
|
|
3406
|
+
let [P, F] = (0, L.useState)(null);
|
|
3407
3407
|
return (0, L.useEffect)(() => {
|
|
3408
|
-
|
|
3409
|
-
}, [
|
|
3408
|
+
P === "touch" ? te(600) : P ? te(400) : P || v();
|
|
3409
|
+
}, [P]), {
|
|
3410
3410
|
spinButtonProps: {
|
|
3411
3411
|
role: "spinbutton",
|
|
3412
3412
|
"aria-valuenow": n !== void 0 && !isNaN(n) ? n : void 0,
|
|
@@ -3422,26 +3422,26 @@ function Gs(e) {
|
|
|
3422
3422
|
},
|
|
3423
3423
|
incrementButtonProps: {
|
|
3424
3424
|
onPressStart: (e) => {
|
|
3425
|
-
_(), e.pointerType === "touch" ? (
|
|
3425
|
+
_(), e.pointerType === "touch" ? (k(window, "pointercancel", w, { capture: !0 }), j.current = !1, N("touch")) : (l?.(), N("mouse")), k(window, "contextmenu", ne);
|
|
3426
3426
|
},
|
|
3427
3427
|
onPressUp: (e) => {
|
|
3428
|
-
_(), e.pointerType === "touch" && (
|
|
3428
|
+
_(), e.pointerType === "touch" && (j.current = !0), A(), N(null);
|
|
3429
3429
|
},
|
|
3430
3430
|
onPressEnd: (e) => {
|
|
3431
|
-
_(), e.pointerType === "touch" && !g.current &&
|
|
3431
|
+
_(), e.pointerType === "touch" && !g.current && j.current && l?.(), j.current = !1, N(null);
|
|
3432
3432
|
},
|
|
3433
3433
|
onFocus: x,
|
|
3434
3434
|
onBlur: S
|
|
3435
3435
|
},
|
|
3436
3436
|
decrementButtonProps: {
|
|
3437
3437
|
onPressStart: (e) => {
|
|
3438
|
-
_(), e.pointerType === "touch" ? (
|
|
3438
|
+
_(), e.pointerType === "touch" ? (k(window, "pointercancel", w, { capture: !0 }), j.current = !1, F("touch")) : (d?.(), F("mouse"));
|
|
3439
3439
|
},
|
|
3440
3440
|
onPressUp: (e) => {
|
|
3441
|
-
_(), e.pointerType === "touch" && (
|
|
3441
|
+
_(), e.pointerType === "touch" && (j.current = !0), A(), F(null);
|
|
3442
3442
|
},
|
|
3443
3443
|
onPressEnd: (e) => {
|
|
3444
|
-
_(), e.pointerType === "touch" && !g.current &&
|
|
3444
|
+
_(), e.pointerType === "touch" && !g.current && j.current && d?.(), j.current = !1, F(null);
|
|
3445
3445
|
},
|
|
3446
3446
|
onFocus: x,
|
|
3447
3447
|
onBlur: S
|
|
@@ -3454,17 +3454,17 @@ function Ks(e) {
|
|
|
3454
3454
|
return e && e.__esModule ? e.default : e;
|
|
3455
3455
|
}
|
|
3456
3456
|
function qs(e, t, n) {
|
|
3457
|
-
let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: d, label: f, formatOptions: p, onBlur: m = () => {}, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e, { increment: C, incrementToMax: w, decrement: T, decrementToMin: E, numberValue: O, inputValue: ee, commit:
|
|
3457
|
+
let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: d, label: f, formatOptions: p, onBlur: m = () => {}, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e, { increment: C, incrementToMax: w, decrement: T, decrementToMin: E, numberValue: O, inputValue: ee, commit: te, commitValidation: ne } = t, k = na(Ks(rs), "@react-aria/numberfield"), A = (0, L.useCallback)(() => {
|
|
3458
3458
|
let e = n.current?.value ?? "";
|
|
3459
3459
|
(0, Bi.flushSync)(() => {
|
|
3460
|
-
|
|
3460
|
+
te();
|
|
3461
3461
|
}), n.current?.value !== e && Ia(n.current?.value ?? "", "assertive");
|
|
3462
|
-
}, [
|
|
3463
|
-
|
|
3464
|
-
} }),
|
|
3462
|
+
}, [te, n]), j = di(r), { focusProps: M } = gi({ onBlur() {
|
|
3463
|
+
A();
|
|
3464
|
+
} }), N = D(p), P = (0, L.useMemo)(() => N.resolvedOptions(), [N]), F = D({
|
|
3465
3465
|
...p,
|
|
3466
3466
|
currencySign: void 0
|
|
3467
|
-
}), { spinButtonProps: re, incrementButtonProps: ie, decrementButtonProps:
|
|
3467
|
+
}), { spinButtonProps: re, incrementButtonProps: ie, decrementButtonProps: ae } = Gs({
|
|
3468
3468
|
isDisabled: o,
|
|
3469
3469
|
isReadOnly: s,
|
|
3470
3470
|
isRequired: c,
|
|
@@ -3475,35 +3475,35 @@ function qs(e, t, n) {
|
|
|
3475
3475
|
onDecrement: T,
|
|
3476
3476
|
onDecrementToMin: E,
|
|
3477
3477
|
value: O,
|
|
3478
|
-
textValue: (0, L.useMemo)(() => isNaN(O) ? "" :
|
|
3479
|
-
}), [
|
|
3478
|
+
textValue: (0, L.useMemo)(() => isNaN(O) ? "" : F.format(O), [F, O])
|
|
3479
|
+
}), [oe, se] = (0, L.useState)(!1), { focusWithinProps: ce } = io({
|
|
3480
3480
|
isDisabled: o,
|
|
3481
|
-
onFocusWithinChange:
|
|
3481
|
+
onFocusWithinChange: se
|
|
3482
3482
|
});
|
|
3483
3483
|
ss({
|
|
3484
3484
|
onScroll: (0, L.useCallback)((e) => {
|
|
3485
3485
|
Math.abs(e.deltaY) <= Math.abs(e.deltaX) || (e.deltaY > 0 ? C() : e.deltaY < 0 && T());
|
|
3486
3486
|
}, [T, C]),
|
|
3487
|
-
isDisabled: x || o || s || !
|
|
3487
|
+
isDisabled: x || o || s || !oe
|
|
3488
3488
|
}, n);
|
|
3489
|
-
let
|
|
3490
|
-
xr() ?
|
|
3491
|
-
let
|
|
3489
|
+
let le = (P.maximumFractionDigits ?? 0) > 0, ue = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, de = "numeric";
|
|
3490
|
+
xr() ? ue ? de = "text" : le && (de = "decimal") : Er() && (ue ? de = "numeric" : le && (de = "decimal"));
|
|
3491
|
+
let fe = (e) => {
|
|
3492
3492
|
t.validate(e) && t.setInputValue(e);
|
|
3493
|
-
},
|
|
3493
|
+
}, pe = (t) => {
|
|
3494
3494
|
e.onPaste?.(t);
|
|
3495
3495
|
let n = K(t);
|
|
3496
|
-
n && (n.selectionEnd ?? -1) - (n.selectionStart ?? 0) === n.value.length && (t.preventDefault(),
|
|
3497
|
-
},
|
|
3496
|
+
n && (n.selectionEnd ?? -1) - (n.selectionStart ?? 0) === n.value.length && (t.preventDefault(), te(t.clipboardData?.getData?.("text/plain")?.trim() ?? ""));
|
|
3497
|
+
}, me = la(e), { keyboardProps: he } = Ai({
|
|
3498
3498
|
isDisabled: o || s,
|
|
3499
3499
|
shortcuts: { Enter: () => ((0, Bi.flushSync)(() => {
|
|
3500
|
-
|
|
3501
|
-
}),
|
|
3500
|
+
te();
|
|
3501
|
+
}), ne(), { shouldPreventDefault: !1 }) },
|
|
3502
3502
|
onKeyDown: _,
|
|
3503
3503
|
onKeyUp: v
|
|
3504
|
-
}), { isInvalid:
|
|
3504
|
+
}), { isInvalid: ge, validationErrors: _e, validationDetails: ve } = t.displayValidation, { labelProps: I, inputProps: ye, descriptionProps: be, errorMessageProps: xe } = os({
|
|
3505
3505
|
...S,
|
|
3506
|
-
...
|
|
3506
|
+
...me,
|
|
3507
3507
|
name: void 0,
|
|
3508
3508
|
form: void 0,
|
|
3509
3509
|
label: f,
|
|
@@ -3518,21 +3518,21 @@ function qs(e, t, n) {
|
|
|
3518
3518
|
autoComplete: "off",
|
|
3519
3519
|
"aria-label": e["aria-label"] || void 0,
|
|
3520
3520
|
"aria-labelledby": e["aria-labelledby"] || void 0,
|
|
3521
|
-
id:
|
|
3521
|
+
id: j,
|
|
3522
3522
|
type: "text",
|
|
3523
|
-
inputMode:
|
|
3524
|
-
onChange:
|
|
3523
|
+
inputMode: de,
|
|
3524
|
+
onChange: fe,
|
|
3525
3525
|
onBlur: m,
|
|
3526
3526
|
onFocus: h,
|
|
3527
3527
|
onFocusChange: g,
|
|
3528
|
-
onPaste:
|
|
3528
|
+
onPaste: pe,
|
|
3529
3529
|
description: y,
|
|
3530
3530
|
errorMessage: b
|
|
3531
|
-
}, t, n), Se = q(
|
|
3531
|
+
}, t, n), Se = q(he, ye);
|
|
3532
3532
|
za(n, t.defaultNumberValue, t.setNumberValue), Js(t, e.validationBehavior, e.commitBehavior, n, t.minValue, t.maxValue, e.step, t.numberValue);
|
|
3533
|
-
let Ce = q(re,
|
|
3533
|
+
let Ce = q(re, M, Se, {
|
|
3534
3534
|
role: null,
|
|
3535
|
-
"aria-roledescription": Cr() ? null :
|
|
3535
|
+
"aria-roledescription": Cr() ? null : k.format("numberField"),
|
|
3536
3536
|
"aria-valuemax": null,
|
|
3537
3537
|
"aria-valuemin": null,
|
|
3538
3538
|
"aria-valuenow": null,
|
|
@@ -3544,22 +3544,22 @@ function qs(e, t, n) {
|
|
|
3544
3544
|
let we = (e) => {
|
|
3545
3545
|
Qn() !== n.current && (e.pointerType === "mouse" ? n.current?.focus() : e.target.focus());
|
|
3546
3546
|
}, Te = e["aria-label"] || (typeof e.label == "string" ? e.label : ""), Ee;
|
|
3547
|
-
Te || (Ee = e.label == null ? e["aria-labelledby"] :
|
|
3547
|
+
Te || (Ee = e.label == null ? e["aria-labelledby"] : I.id);
|
|
3548
3548
|
let De = di(), Oe = di(), ke = q(ie, {
|
|
3549
|
-
"aria-label": a ||
|
|
3549
|
+
"aria-label": a || k.format("increase", { fieldLabel: Te }).trim(),
|
|
3550
3550
|
id: Ee && !a ? De : null,
|
|
3551
3551
|
"aria-labelledby": Ee && !a ? `${De} ${Ee}` : null,
|
|
3552
|
-
"aria-controls":
|
|
3552
|
+
"aria-controls": j,
|
|
3553
3553
|
excludeFromTabOrder: !0,
|
|
3554
3554
|
preventFocusOnPress: !0,
|
|
3555
3555
|
allowFocusWhenDisabled: !0,
|
|
3556
3556
|
isDisabled: !t.canIncrement,
|
|
3557
3557
|
onPressStart: we
|
|
3558
|
-
}), Ae = q(
|
|
3559
|
-
"aria-label": i ||
|
|
3558
|
+
}), Ae = q(ae, {
|
|
3559
|
+
"aria-label": i || k.format("decrease", { fieldLabel: Te }).trim(),
|
|
3560
3560
|
id: Ee && !i ? Oe : null,
|
|
3561
3561
|
"aria-labelledby": Ee && !i ? `${Oe} ${Ee}` : null,
|
|
3562
|
-
"aria-controls":
|
|
3562
|
+
"aria-controls": j,
|
|
3563
3563
|
excludeFromTabOrder: !0,
|
|
3564
3564
|
preventFocusOnPress: !0,
|
|
3565
3565
|
allowFocusWhenDisabled: !0,
|
|
@@ -3568,20 +3568,20 @@ function qs(e, t, n) {
|
|
|
3568
3568
|
});
|
|
3569
3569
|
return {
|
|
3570
3570
|
groupProps: {
|
|
3571
|
-
...
|
|
3571
|
+
...ce,
|
|
3572
3572
|
role: "group",
|
|
3573
3573
|
"aria-disabled": o,
|
|
3574
|
-
"aria-invalid":
|
|
3574
|
+
"aria-invalid": ge ? "true" : void 0
|
|
3575
3575
|
},
|
|
3576
|
-
labelProps:
|
|
3576
|
+
labelProps: I,
|
|
3577
3577
|
inputProps: Ce,
|
|
3578
3578
|
incrementButtonProps: ke,
|
|
3579
3579
|
decrementButtonProps: Ae,
|
|
3580
3580
|
errorMessageProps: xe,
|
|
3581
3581
|
descriptionProps: be,
|
|
3582
|
-
isInvalid:
|
|
3583
|
-
validationErrors:
|
|
3584
|
-
validationDetails:
|
|
3582
|
+
isInvalid: ge,
|
|
3583
|
+
validationErrors: _e,
|
|
3584
|
+
validationDetails: ve
|
|
3585
3585
|
};
|
|
3586
3586
|
}
|
|
3587
3587
|
var Y = null;
|
|
@@ -3761,2082 +3761,2082 @@ 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
|
+
}, P = () => {
|
|
4075
|
+
n != null && (m(lo(n, t, n, T)), w.commitValidation());
|
|
4076
|
+
}, F = () => {
|
|
4077
|
+
t != null && (m(t), w.commitValidation());
|
|
4078
|
+
}, re = (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: P,
|
|
4098
|
+
decrement: N,
|
|
4099
|
+
decrementToMin: F,
|
|
4100
|
+
canIncrement: re,
|
|
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
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
href: n,
|
|
4393
|
-
tokens: [{
|
|
4394
|
-
type: "text",
|
|
4395
|
-
raw: e,
|
|
4396
|
-
text: e
|
|
4397
|
-
}]
|
|
4398
|
-
};
|
|
4399
|
-
}
|
|
4400
|
-
}
|
|
4401
|
-
inlineText(e) {
|
|
4402
|
-
let t = this.rules.inline.text.exec(e);
|
|
4403
|
-
if (t) {
|
|
4404
|
-
let e = this.lexer.state.inRawBlock;
|
|
4405
|
-
return {
|
|
4406
|
-
type: "text",
|
|
4407
|
-
raw: t[0],
|
|
4408
|
-
text: t[0],
|
|
4409
|
-
escaped: e
|
|
4410
|
-
};
|
|
4411
|
-
}
|
|
4412
|
-
}
|
|
4413
|
-
}, Sl = class e {
|
|
4414
|
-
tokens;
|
|
4415
|
-
options;
|
|
4416
|
-
state;
|
|
4417
|
-
tokenizer;
|
|
4418
|
-
inlineQueue;
|
|
4419
|
-
constructor(e) {
|
|
4420
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || cc, this.options.tokenizer = this.options.tokenizer || new xl(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
4421
|
-
inLink: !1,
|
|
4422
|
-
inRawBlock: !1,
|
|
4423
|
-
top: !0
|
|
4424
|
-
};
|
|
4425
|
-
let t = {
|
|
4426
|
-
other: Q,
|
|
4427
|
-
block: ul.normal,
|
|
4428
|
-
inline: dl.normal
|
|
4429
|
-
};
|
|
4430
|
-
this.options.pedantic ? (t.block = ul.pedantic, t.inline = dl.pedantic) : this.options.gfm && (t.block = ul.gfm, t.inline = this.options.breaks ? dl.breaks : dl.gfm), this.tokenizer.rules = t;
|
|
4431
|
-
}
|
|
4432
|
-
static get rules() {
|
|
4433
|
-
return {
|
|
4434
|
-
block: ul,
|
|
4435
|
-
inline: dl
|
|
4436
|
-
};
|
|
4437
|
-
}
|
|
4438
|
-
static lex(t, n) {
|
|
4439
|
-
return new e(n).lex(t);
|
|
4440
|
-
}
|
|
4441
|
-
static lexInline(t, n) {
|
|
4442
|
-
return new e(n).inlineTokens(t);
|
|
4443
|
-
}
|
|
4444
|
-
lex(e) {
|
|
4445
|
-
e = e.replace(Q.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
4446
|
-
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
4447
|
-
let t = this.inlineQueue[e];
|
|
4448
|
-
this.inlineTokens(t.src, t.tokens);
|
|
4449
|
-
}
|
|
4450
|
-
return this.inlineQueue = [], this.tokens;
|
|
4451
|
-
}
|
|
4452
|
-
blockTokens(e, t = [], n = !1) {
|
|
4453
|
-
for (this.options.pedantic && (e = e.replace(Q.tabCharGlobal, " ").replace(Q.spaceLine, "")); e;) {
|
|
4454
|
-
let r;
|
|
4455
|
-
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;
|
|
4456
|
-
if (r = this.tokenizer.space(e)) {
|
|
4457
|
-
e = e.substring(r.raw.length);
|
|
4458
|
-
let n = t.at(-1);
|
|
4459
|
-
r.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(r);
|
|
4460
|
-
continue;
|
|
4461
|
-
}
|
|
4462
|
-
if (r = this.tokenizer.code(e)) {
|
|
4463
|
-
e = e.substring(r.raw.length);
|
|
4464
|
-
let n = t.at(-1);
|
|
4465
|
-
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);
|
|
4466
|
-
continue;
|
|
4467
|
-
}
|
|
4468
|
-
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))) {
|
|
4469
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
4470
|
-
continue;
|
|
4471
|
-
}
|
|
4472
|
-
if (r = this.tokenizer.def(e)) {
|
|
4473
|
-
e = e.substring(r.raw.length);
|
|
4474
|
-
let n = t.at(-1);
|
|
4475
|
-
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] = {
|
|
4476
|
-
href: r.href,
|
|
4477
|
-
title: r.title
|
|
4478
|
-
});
|
|
4479
|
-
continue;
|
|
4480
|
-
}
|
|
4481
|
-
if ((r = this.tokenizer.table(e)) || (r = this.tokenizer.lheading(e))) {
|
|
4482
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
4483
|
-
continue;
|
|
4484
|
-
}
|
|
4485
|
-
let i = e;
|
|
4486
|
-
if (this.options.extensions?.startBlock) {
|
|
4487
|
-
let t = Infinity, n = e.slice(1), r;
|
|
4488
|
-
this.options.extensions.startBlock.forEach((e) => {
|
|
4489
|
-
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
4490
|
-
}), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
|
|
4491
|
-
}
|
|
4492
|
-
if (this.state.top && (r = this.tokenizer.paragraph(i))) {
|
|
4493
|
-
let a = t.at(-1);
|
|
4494
|
-
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);
|
|
4495
|
-
} else if (r = this.tokenizer.text(e)) {
|
|
4496
|
-
e = e.substring(r.raw.length);
|
|
4497
|
-
let n = t.at(-1);
|
|
4498
|
-
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);
|
|
4499
|
-
} else if (e) {
|
|
4500
|
-
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
4501
|
-
if (this.options.silent) {
|
|
4502
|
-
console.error(t);
|
|
4503
|
-
break;
|
|
4504
|
-
}
|
|
4505
|
-
throw Error(t);
|
|
4506
|
-
}
|
|
4507
|
-
}
|
|
4508
|
-
return this.state.top = !0, t;
|
|
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 P;
|
|
4361
|
+
return r[49] !== s || r[50] !== N || r[51] !== f ? (P = /* @__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] = P) : P = r[52], P;
|
|
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;
|
|
4509
4393
|
}
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
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] = _e(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("");
|
|
4515
4729
|
}
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
let
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
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;
|
|
4529
|
-
if ((r = this.tokenizer.escape(e)) || (r = this.tokenizer.tag(e)) || (r = this.tokenizer.link(e))) {
|
|
4530
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
4531
|
-
continue;
|
|
4532
|
-
}
|
|
4533
|
-
if (r = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
4534
|
-
e = e.substring(r.raw.length);
|
|
4535
|
-
let n = t.at(-1);
|
|
4536
|
-
r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
4537
|
-
continue;
|
|
4538
|
-
}
|
|
4539
|
-
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))) {
|
|
4540
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
4541
|
-
continue;
|
|
4542
|
-
}
|
|
4543
|
-
let o = e;
|
|
4544
|
-
if (this.options.extensions?.startInline) {
|
|
4545
|
-
let t = Infinity, n = e.slice(1), r;
|
|
4546
|
-
this.options.extensions.startInline.forEach((e) => {
|
|
4547
|
-
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
4548
|
-
}), t < Infinity && t >= 0 && (o = e.substring(0, t + 1));
|
|
4549
|
-
}
|
|
4550
|
-
if (r = this.tokenizer.inlineText(o)) {
|
|
4551
|
-
e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (a = r.raw.slice(-1)), i = !0;
|
|
4552
|
-
let n = t.at(-1);
|
|
4553
|
-
n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
4554
|
-
} else if (e) {
|
|
4555
|
-
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
4556
|
-
if (this.options.silent) {
|
|
4557
|
-
console.error(t);
|
|
4558
|
-
break;
|
|
4559
|
-
}
|
|
4560
|
-
throw Error(t);
|
|
4561
|
-
}
|
|
4562
|
-
}
|
|
4563
|
-
return t;
|
|
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
|
-
|
|
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
|
+
};
|
|
4577
4790
|
}
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
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
|
+
};
|
|
4801
|
+
}
|
|
4582
4802
|
}
|
|
4583
|
-
|
|
4584
|
-
|
|
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
|
+
};
|
|
4813
|
+
}
|
|
4585
4814
|
}
|
|
4586
|
-
heading(
|
|
4587
|
-
|
|
4588
|
-
|
|
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
|
+
};
|
|
4830
|
+
}
|
|
4589
4831
|
}
|
|
4590
4832
|
hr(e) {
|
|
4591
|
-
|
|
4833
|
+
let t = this.rules.block.hr.exec(e);
|
|
4834
|
+
if (t) return {
|
|
4835
|
+
type: "hr",
|
|
4836
|
+
raw: bu(t[0], "\n")
|
|
4837
|
+
};
|
|
4592
4838
|
}
|
|
4593
|
-
|
|
4594
|
-
let t =
|
|
4595
|
-
|
|
4596
|
-
let n =
|
|
4597
|
-
|
|
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
|
+
};
|
|
4598
4873
|
}
|
|
4599
|
-
let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
|
|
4600
|
-
return "<" + i + a + ">\n" + r + "</" + i + ">\n";
|
|
4601
4874
|
}
|
|
4602
|
-
|
|
4603
|
-
let t =
|
|
4604
|
-
if (
|
|
4605
|
-
let n =
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
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;
|
|
4612
4928
|
}
|
|
4613
|
-
return t += this.parser.parse(e.tokens, !!e.loose), `<li>${t}</li>
|
|
4614
|
-
`;
|
|
4615
4929
|
}
|
|
4616
|
-
|
|
4617
|
-
|
|
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
|
+
};
|
|
4618
4939
|
}
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
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
|
+
}
|
|
4622
4952
|
}
|
|
4623
4953
|
table(e) {
|
|
4624
|
-
let t =
|
|
4625
|
-
|
|
4626
|
-
t
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
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;
|
|
4633
4978
|
}
|
|
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
|
-
}
|
|
4641
|
-
tablecell(e) {
|
|
4642
|
-
let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
|
|
4643
|
-
return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
|
|
4644
|
-
`;
|
|
4645
|
-
}
|
|
4646
|
-
strong({ tokens: e }) {
|
|
4647
|
-
return `<strong>${this.parser.parseInline(e)}</strong>`;
|
|
4648
|
-
}
|
|
4649
|
-
em({ tokens: e }) {
|
|
4650
|
-
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
4651
|
-
}
|
|
4652
|
-
codespan({ text: e }) {
|
|
4653
|
-
return `<code>${ml(e, !0)}</code>`;
|
|
4654
|
-
}
|
|
4655
|
-
br(e) {
|
|
4656
|
-
return "<br>";
|
|
4657
4979
|
}
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
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;
|
|
4740
|
-
}
|
|
4741
|
-
}
|
|
4742
|
-
let a = i;
|
|
4743
|
-
switch (a.type) {
|
|
4744
|
-
case "space":
|
|
4745
|
-
n += this.renderer.space(a);
|
|
4746
|
-
continue;
|
|
4747
|
-
case "hr":
|
|
4748
|
-
n += this.renderer.hr(a);
|
|
4749
|
-
continue;
|
|
4750
|
-
case "heading":
|
|
4751
|
-
n += this.renderer.heading(a);
|
|
4752
|
-
continue;
|
|
4753
|
-
case "code":
|
|
4754
|
-
n += this.renderer.code(a);
|
|
4755
|
-
continue;
|
|
4756
|
-
case "table":
|
|
4757
|
-
n += this.renderer.table(a);
|
|
4758
|
-
continue;
|
|
4759
|
-
case "blockquote":
|
|
4760
|
-
n += this.renderer.blockquote(a);
|
|
4761
|
-
continue;
|
|
4762
|
-
case "list":
|
|
4763
|
-
n += this.renderer.list(a);
|
|
4764
|
-
continue;
|
|
4765
|
-
case "html":
|
|
4766
|
-
n += this.renderer.html(a);
|
|
4767
|
-
continue;
|
|
4768
|
-
case "paragraph":
|
|
4769
|
-
n += this.renderer.paragraph(a);
|
|
4770
|
-
continue;
|
|
4771
|
-
case "text": {
|
|
4772
|
-
let i = a, o = this.renderer.text(i);
|
|
4773
|
-
for (; r + 1 < e.length && e[r + 1].type === "text";) i = e[++r], o += "\n" + this.renderer.text(i);
|
|
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;
|
|
4785
|
-
continue;
|
|
4786
|
-
}
|
|
4787
|
-
default: {
|
|
4788
|
-
let e = "Token with \"" + a.type + "\" type was not found.";
|
|
4789
|
-
if (this.options.silent) return console.error(e), "";
|
|
4790
|
-
throw Error(e);
|
|
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] = "";
|
|
4791
5044
|
}
|
|
4792
5045
|
}
|
|
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);
|
|
4793
5055
|
}
|
|
4794
|
-
return n;
|
|
4795
5056
|
}
|
|
4796
|
-
|
|
4797
|
-
let n
|
|
4798
|
-
|
|
4799
|
-
let
|
|
4800
|
-
if (
|
|
4801
|
-
let e =
|
|
4802
|
-
|
|
4803
|
-
"
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
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;
|
|
4815
5080
|
continue;
|
|
4816
5081
|
}
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
case "strong":
|
|
4833
|
-
n += t.strong(a);
|
|
4834
|
-
break;
|
|
4835
|
-
case "em":
|
|
4836
|
-
n += t.em(a);
|
|
4837
|
-
break;
|
|
4838
|
-
case "codespan":
|
|
4839
|
-
n += t.codespan(a);
|
|
4840
|
-
break;
|
|
4841
|
-
case "br":
|
|
4842
|
-
n += t.br(a);
|
|
4843
|
-
break;
|
|
4844
|
-
case "del":
|
|
4845
|
-
n += t.del(a);
|
|
4846
|
-
break;
|
|
4847
|
-
case "text":
|
|
4848
|
-
n += t.text(a);
|
|
4849
|
-
break;
|
|
4850
|
-
default: {
|
|
4851
|
-
let e = "Token with \"" + a.type + "\" type was not found.";
|
|
4852
|
-
if (this.options.silent) return console.error(e), "";
|
|
4853
|
-
throw Error(e);
|
|
5082
|
+
if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
|
|
5083
|
+
s += a;
|
|
5084
|
+
continue;
|
|
5085
|
+
}
|
|
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
|
+
};
|
|
4854
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
|
+
};
|
|
4855
5105
|
}
|
|
4856
5106
|
}
|
|
4857
|
-
return n;
|
|
4858
5107
|
}
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
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
|
+
}
|
|
4864
5118
|
}
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
return e;
|
|
5119
|
+
br(e) {
|
|
5120
|
+
let t = this.rules.inline.br.exec(e);
|
|
5121
|
+
if (t) return {
|
|
5122
|
+
type: "br",
|
|
5123
|
+
raw: t[0]
|
|
5124
|
+
};
|
|
4872
5125
|
}
|
|
4873
|
-
|
|
4874
|
-
|
|
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
|
+
};
|
|
4875
5134
|
}
|
|
4876
|
-
|
|
4877
|
-
|
|
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
|
+
}
|
|
4878
5151
|
}
|
|
4879
|
-
|
|
4880
|
-
|
|
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];
|
|
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
|
+
}
|
|
4881
5176
|
}
|
|
4882
|
-
|
|
4883
|
-
|
|
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
|
+
};
|
|
5187
|
+
}
|
|
4884
5188
|
}
|
|
4885
|
-
},
|
|
4886
|
-
|
|
4887
|
-
options
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
5189
|
+
}, Tu = class e {
|
|
5190
|
+
tokens;
|
|
5191
|
+
options;
|
|
5192
|
+
state;
|
|
5193
|
+
tokenizer;
|
|
5194
|
+
inlineQueue;
|
|
5195
|
+
constructor(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;
|
|
4898
5207
|
}
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
5208
|
+
static get rules() {
|
|
5209
|
+
return {
|
|
5210
|
+
block: pu,
|
|
5211
|
+
inline: mu
|
|
5212
|
+
};
|
|
5213
|
+
}
|
|
5214
|
+
static lex(t, n) {
|
|
5215
|
+
return new e(n).lex(t);
|
|
5216
|
+
}
|
|
5217
|
+
static lexInline(t, n) {
|
|
5218
|
+
return new e(n).inlineTokens(t);
|
|
5219
|
+
}
|
|
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;
|
|
5227
|
+
}
|
|
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;
|
|
4912
5243
|
}
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
let i = e[r].flat(Infinity);
|
|
4917
|
-
n = n.concat(this.walkTokens(i, t));
|
|
4918
|
-
}) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
|
|
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;
|
|
4919
5247
|
}
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
return e.forEach((e) => {
|
|
4929
|
-
let n = { ...e };
|
|
4930
|
-
if (n.async = this.defaults.async || n.async || !1, e.extensions && (e.extensions.forEach((e) => {
|
|
4931
|
-
if (!e.name) throw Error("extension name required");
|
|
4932
|
-
if ("renderer" in e) {
|
|
4933
|
-
let n = t.renderers[e.name];
|
|
4934
|
-
n ? t.renderers[e.name] = function(...t) {
|
|
4935
|
-
let r = e.renderer.apply(this, t);
|
|
4936
|
-
return r === !1 && (r = n.apply(this, t)), r;
|
|
4937
|
-
} : t.renderers[e.name] = e.renderer;
|
|
4938
|
-
}
|
|
4939
|
-
if ("tokenizer" in e) {
|
|
4940
|
-
if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
|
|
4941
|
-
let n = t[e.level];
|
|
4942
|
-
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]));
|
|
4943
|
-
}
|
|
4944
|
-
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
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;
|
|
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;
|
|
4957
5256
|
}
|
|
4958
|
-
if (e.tokenizer) {
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
4962
|
-
if ([
|
|
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;
|
|
5257
|
+
if ((r = this.tokenizer.table(e)) || (r = this.tokenizer.lheading(e))) {
|
|
5258
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
5259
|
+
continue;
|
|
4974
5260
|
}
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
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;
|
|
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));
|
|
4991
5267
|
}
|
|
4992
|
-
if (
|
|
4993
|
-
let
|
|
4994
|
-
n.
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
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);
|
|
4998
5282
|
}
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
...n
|
|
5002
|
-
};
|
|
5003
|
-
}), this;
|
|
5004
|
-
}
|
|
5005
|
-
setOptions(e) {
|
|
5006
|
-
return this.defaults = {
|
|
5007
|
-
...this.defaults,
|
|
5008
|
-
...e
|
|
5009
|
-
}, this;
|
|
5010
|
-
}
|
|
5011
|
-
lexer(e, t) {
|
|
5012
|
-
return Sl.lex(e, t ?? this.defaults);
|
|
5283
|
+
}
|
|
5284
|
+
return this.state.top = !0, t;
|
|
5013
5285
|
}
|
|
5014
|
-
|
|
5015
|
-
return
|
|
5286
|
+
inline(e, t = []) {
|
|
5287
|
+
return this.inlineQueue.push({
|
|
5288
|
+
src: e,
|
|
5289
|
+
tokens: t
|
|
5290
|
+
}), t;
|
|
5016
5291
|
}
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
let n = s(e, i);
|
|
5034
|
-
return i.hooks && (n = i.hooks.postprocess(n)), n;
|
|
5035
|
-
} catch (e) {
|
|
5036
|
-
return a(e);
|
|
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;
|
|
5037
5308
|
}
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
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;
|
|
5314
|
+
}
|
|
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;
|
|
5318
|
+
}
|
|
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));
|
|
5325
|
+
}
|
|
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);
|
|
5045
5337
|
}
|
|
5046
|
-
if (t) return Promise.reject(n);
|
|
5047
|
-
throw n;
|
|
5048
|
-
};
|
|
5049
|
-
}
|
|
5050
|
-
}();
|
|
5051
|
-
function $(e, t) {
|
|
5052
|
-
return Dl.parse(e, t);
|
|
5053
|
-
}
|
|
5054
|
-
$.options = $.setOptions = function(e) {
|
|
5055
|
-
return Dl.setOptions(e), $.defaults = Dl.defaults, lc($.defaults), $;
|
|
5056
|
-
}, $.getDefaults = sc, $.defaults = cc, $.use = function(...e) {
|
|
5057
|
-
return Dl.use(...e), $.defaults = Dl.defaults, lc($.defaults), $;
|
|
5058
|
-
}, $.walkTokens = function(e, t) {
|
|
5059
|
-
return Dl.walkTokens(e, t);
|
|
5060
|
-
}, $.parseInline = Dl.parseInline, $.Parser = Tl, $.parser = Tl.parse, $.Renderer = Cl, $.TextRenderer = wl, $.Lexer = Sl, $.lexer = Sl.lex, $.Tokenizer = xl, $.Hooks = El, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Tl.parse, Sl.lex;
|
|
5061
|
-
//#endregion
|
|
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}.`);
|
|
5113
5338
|
}
|
|
5114
|
-
return
|
|
5339
|
+
return t;
|
|
5115
5340
|
}
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
|
|
5122
|
-
...t.defaultStyle,
|
|
5123
|
-
...n
|
|
5124
|
-
}, a = typeof e.style == "function" ? e.style({
|
|
5125
|
-
...t,
|
|
5126
|
-
defaultStyle: r
|
|
5127
|
-
}) : e.style;
|
|
5128
|
-
return {
|
|
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;
|
|
5341
|
+
}, Eu = class {
|
|
5342
|
+
options;
|
|
5343
|
+
parser;
|
|
5344
|
+
constructor(e) {
|
|
5345
|
+
this.options = e || dl;
|
|
5222
5346
|
}
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
}
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
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), [k, te] = (0, L.useState)(i);
|
|
5344
|
-
(!Object.is(p, E) || c !== O || !iu(i, k)) && (_(C(p)), D(p), ee(c), te(i));
|
|
5345
|
-
let A = (0, L.useMemo)(() => y.parse(g), [y, g]), j = (e) => {
|
|
5346
|
-
let t = e === void 0 ? g : e, n = A;
|
|
5347
|
-
if (e !== void 0 && (n = y.parse(t)), !t.length) {
|
|
5348
|
-
m(NaN), _(a === void 0 ? "" : C(p));
|
|
5349
|
-
return;
|
|
5347
|
+
space(e) {
|
|
5348
|
+
return "";
|
|
5349
|
+
}
|
|
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";
|
|
5353
|
+
}
|
|
5354
|
+
blockquote({ tokens: e }) {
|
|
5355
|
+
return `<blockquote>
|
|
5356
|
+
${this.parser.parse(e)}</blockquote>
|
|
5357
|
+
`;
|
|
5358
|
+
}
|
|
5359
|
+
html({ text: e }) {
|
|
5360
|
+
return e;
|
|
5361
|
+
}
|
|
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);
|
|
5350
5374
|
}
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5375
|
+
let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
|
|
5376
|
+
return "<" + i + a + ">\n" + r + "</" + i + ">\n";
|
|
5377
|
+
}
|
|
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
|
+
`;
|
|
5391
|
+
}
|
|
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 });
|
|
5354
5409
|
}
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
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
|
+
}
|
|
5365
5569
|
}
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
let
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
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
|
+
}
|
|
5632
|
+
}
|
|
5633
|
+
return n;
|
|
5423
5634
|
}
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
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);
|
|
5635
|
+
}, ku = class {
|
|
5636
|
+
options;
|
|
5637
|
+
block;
|
|
5638
|
+
constructor(e) {
|
|
5639
|
+
this.options = e || dl;
|
|
5498
5640
|
}
|
|
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
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5641
|
+
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
5642
|
+
"preprocess",
|
|
5643
|
+
"postprocess",
|
|
5644
|
+
"processAllTokens"
|
|
5645
|
+
]);
|
|
5646
|
+
preprocess(e) {
|
|
5647
|
+
return e;
|
|
5648
|
+
}
|
|
5649
|
+
postprocess(e) {
|
|
5650
|
+
return e;
|
|
5651
|
+
}
|
|
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
|
+
};
|
|
5552
5815
|
}
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
}
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
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 k = s.isDisabled, te = l === "xs" && "w-2 h-2", A;
|
|
5630
|
-
r[34] === te ? A = r[35] : (A = n("w-3 h-3 -mt-px", te), r[34] = te, r[35] = A);
|
|
5631
|
-
let j;
|
|
5632
|
-
r[36] === A ? j = r[37] : (j = /* @__PURE__ */ (0, R.jsx)(_, {
|
|
5633
|
-
"aria-hidden": !0,
|
|
5634
|
-
className: A
|
|
5635
|
-
}), r[36] = A, r[37] = j);
|
|
5636
|
-
let M;
|
|
5637
|
-
r[38] !== s.isDisabled || r[39] !== j || r[40] !== l ? (M = /* @__PURE__ */ (0, R.jsx)(Cu, {
|
|
5638
|
-
slot: "decrement",
|
|
5639
|
-
isDisabled: k,
|
|
5640
|
-
variant: l,
|
|
5641
|
-
excludeFromTabOrder: !0,
|
|
5642
|
-
children: j
|
|
5643
|
-
}), r[38] = s.isDisabled, r[39] = j, r[40] = l, r[41] = M) : M = r[41];
|
|
5644
|
-
let N;
|
|
5645
|
-
r[42] !== O || r[43] !== M ? (N = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
5646
|
-
className: "flex flex-col border-s-2",
|
|
5647
|
-
children: [
|
|
5648
|
-
O,
|
|
5649
|
-
ee,
|
|
5650
|
-
M
|
|
5651
|
-
]
|
|
5652
|
-
}), r[42] = O, r[43] = M, r[44] = N) : N = r[44];
|
|
5653
|
-
let P;
|
|
5654
|
-
r[45] !== S || r[46] !== N || r[47] !== g ? (P = /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
5655
|
-
className: g,
|
|
5656
|
-
children: [S, N]
|
|
5657
|
-
}), r[45] = S, r[46] = N, r[47] = g, r[48] = P) : P = r[48];
|
|
5658
|
-
let F;
|
|
5659
|
-
return r[49] !== s || r[50] !== P || r[51] !== f ? (F = /* @__PURE__ */ (0, R.jsx)(cu, {
|
|
5660
|
-
...s,
|
|
5661
|
-
formatOptions: f,
|
|
5662
|
-
children: P
|
|
5663
|
-
}), r[49] = s, r[50] = P, r[51] = f, r[52] = F) : F = r[52], F;
|
|
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();
|
|
5677
|
-
}
|
|
5678
|
-
//#endregion
|
|
5679
|
-
//#region src/components/ui/input.tsx
|
|
5680
|
-
var Tu = /* @__PURE__ */ (0, R.jsx)(Te, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), Eu = L.forwardRef((e, t) => {
|
|
5681
|
-
let i = (0, X.c)(29), a, o, s, c;
|
|
5682
|
-
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);
|
|
5683
|
-
let l = s.icon;
|
|
5684
|
-
if (c === "hidden") {
|
|
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;
|
|
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
|
+
};
|
|
5691
5825
|
}
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
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)(k, { 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] = ce(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";
|
|
5826
|
+
}();
|
|
5827
|
+
function $(e, t) {
|
|
5828
|
+
return Au.parse(e, t);
|
|
5829
|
+
}
|
|
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
|
-
var ju = Cn, Mu = Tn, Nu = kn, Pu =
|
|
5839
|
+
var ju = Cn, Mu = Tn, Nu = kn, Pu = fe(En), Fu = me(On), Iu = me(Rn), Lu = In, Ru = L.forwardRef((e, t) => {
|
|
5840
5840
|
let n = (0, X.c)(17), r, i, a, o, s;
|
|
5841
5841
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({className: i, inset: a, showChevron: s, children: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
5842
5842
|
let c = s === void 0 || s, l;
|
|
@@ -5873,13 +5873,13 @@ var Bu = L.forwardRef((e, t) => {
|
|
|
5873
5873
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: i, scrollable: o, sideOffset: s, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
|
|
5874
5874
|
let c = o === void 0 || o, l = s === void 0 ? 4 : s, u;
|
|
5875
5875
|
r[5] !== i || r[6] !== c ? (u = n(w(), "animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 print:hidden", c && "overflow-auto", i), r[5] = i, r[6] = c, r[7] = u) : u = r[7];
|
|
5876
|
-
let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${
|
|
5876
|
+
let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${de}px)` : void 0, f;
|
|
5877
5877
|
r[8] !== a.style || r[9] !== d ? (f = {
|
|
5878
5878
|
...a.style,
|
|
5879
5879
|
maxHeight: d
|
|
5880
5880
|
}, r[8] = a.style, r[9] = d, r[10] = f) : f = r[10];
|
|
5881
5881
|
let p;
|
|
5882
|
-
return r[11] !== a || r[12] !== t || r[13] !== l || r[14] !== u || r[15] !== f ? (p = /* @__PURE__ */ (0, R.jsx)(Pu, { children: /* @__PURE__ */ (0, R.jsx)(
|
|
5882
|
+
return r[11] !== a || r[12] !== t || r[13] !== l || r[14] !== u || r[15] !== f ? (p = /* @__PURE__ */ (0, R.jsx)(Pu, { children: /* @__PURE__ */ (0, R.jsx)(le, { children: /* @__PURE__ */ (0, R.jsx)(Fu, {
|
|
5883
5883
|
ref: t,
|
|
5884
5884
|
sideOffset: l,
|
|
5885
5885
|
className: u,
|
|
@@ -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 };
|