docmedown 0.1.7 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -21
- package/README.md +86 -37
- package/dist/architecture-7GRP2DOG-B8Xs9IfY.mjs +2 -0
- package/dist/architecture-7GRP2DOG-Vdsw7WC7.js +1 -0
- package/dist/cli.js +672 -1294
- package/dist/cynefin-OW5HDTMX-DU6kwwck.js +1 -0
- package/dist/cynefin-OW5HDTMX-F0P2M_lQ.mjs +2 -0
- package/dist/docmedown-compiler.js +228 -0
- package/dist/docmedown-mermaid.js +3588 -0
- package/dist/docmedown.cjs +7264 -80
- package/dist/docmedown.iife.js +7624 -424
- package/dist/docmedown.mjs +15531 -15009
- package/dist/docmedown.web.js +7628 -0
- package/dist/eventmodeling-NTZA5JFV-D58ICByZ.js +1 -0
- package/dist/eventmodeling-NTZA5JFV-SxxTo5cJ.mjs +2 -0
- package/dist/gitGraph-4MIJSDKK-C_R2a4aQ.mjs +2 -0
- package/dist/gitGraph-4MIJSDKK-CdMj8HJ8.js +1 -0
- package/dist/info-A6RAGUB7-CG4UBCfn.js +1 -0
- package/dist/info-A6RAGUB7-DmjQlHTj.mjs +2 -0
- package/dist/mermaid-BvOI3ZSW.js +3334 -0
- package/dist/mermaid-Cx9uSfoz.mjs +116948 -0
- package/dist/packet-AYTQ26CC-CMuoEJn0.js +1 -0
- package/dist/packet-AYTQ26CC-tdMo_iPL.mjs +2 -0
- package/dist/pie-WAS4IAKB-C1hjX8y0.js +1 -0
- package/dist/pie-WAS4IAKB-DG2Bio1G.mjs +2 -0
- package/dist/prism-CeBRmKvl.js +2 -0
- package/dist/prism-CummdiZX.mjs +1588 -0
- package/dist/radar-RG4KPBEZ-DHxYOB0f.mjs +2 -0
- package/dist/radar-RG4KPBEZ-Dvyo3gdA.js +1 -0
- package/dist/railroad-74A4TZTK-1sb9Z_QQ.js +1 -0
- package/dist/railroad-74A4TZTK-CwztrSkE.mjs +2 -0
- package/dist/railroad-abnf-HS5TGJTU-4264fZjH.js +1 -0
- package/dist/railroad-abnf-HS5TGJTU-BKCsR9iC.mjs +2 -0
- package/dist/railroad-ebnf-LZEXJU2U-BXErl5kO.js +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-DzDOfuxK.mjs +2 -0
- package/dist/railroad-peg-WCYAUIDC-B6gNHamV.mjs +2 -0
- package/dist/railroad-peg-WCYAUIDC-D7pSwRGa.js +1 -0
- package/dist/rolldown-runtime-B0aSnxlc.mjs +20 -0
- package/dist/rolldown-runtime-DF3sbh8G.js +1 -0
- package/dist/svelte-compiler-loader-Deqbdbvf.js +1 -0
- package/dist/svelte-compiler-loader-DtYQgEKV.mjs +50 -0
- package/dist/svelte-runtime-Brc440dp.js +5 -0
- package/dist/svelte-runtime-CgCk_bw1.mjs +40 -0
- package/dist/treeView-Q6P3EWNA-DArM8kFH.mjs +2 -0
- package/dist/treeView-Q6P3EWNA-JstiGzov.js +1 -0
- package/dist/treemap-WGGIJYW6-CMIcmEVN.mjs +2 -0
- package/dist/treemap-WGGIJYW6-Dq6fFckz.js +1 -0
- package/dist/ts-compiler-BMDmcNn5.mjs +93 -0
- package/dist/ts-compiler-U7pTMJjY.js +3 -0
- package/dist/types/runtime/bridges/dynamic-component.d.ts +43 -0
- package/dist/types/runtime/bridges/element-bridge.d.ts +24 -0
- package/dist/types/runtime/bridges/index.d.ts +3 -0
- package/dist/types/runtime/bridges/react-bridge.d.ts +35 -0
- package/dist/types/runtime/compiler-cache.d.ts +18 -0
- package/dist/types/runtime/config-schema.d.ts +2 -0
- package/dist/types/runtime/favicons.d.ts +28 -0
- package/dist/types/runtime/loader/local-loader.d.ts +13 -0
- package/dist/types/runtime/markdown/component-body.d.ts +7 -0
- package/dist/types/runtime/markdown/escape.d.ts +1 -0
- package/dist/types/runtime/markdown/highlighter.d.ts +32 -6
- package/dist/types/runtime/markdown/katex.d.ts +5 -0
- package/dist/types/runtime/markdown/mermaid-engine.d.ts +1 -0
- package/dist/types/runtime/markdown/mermaid-loader.d.ts +19 -0
- package/dist/types/runtime/markdown/mermaid.d.ts +6 -0
- package/dist/types/runtime/markdown/tables.d.ts +68 -0
- package/dist/types/runtime/media.d.ts +30 -0
- package/dist/types/runtime/motion.d.ts +134 -0
- package/dist/types/runtime/offline-export.d.ts +9 -2
- package/dist/types/runtime/router.d.ts +40 -2
- package/dist/types/runtime/splash.d.ts +90 -0
- package/dist/types/runtime/svelte-compiler-engine.d.ts +1 -0
- package/dist/types/runtime/svelte-compiler-loader.d.ts +14 -0
- package/dist/types/runtime/svelte-runtime.d.ts +29 -0
- package/dist/types/runtime/svelte-tag.d.ts +7 -0
- package/dist/types/runtime/ts-compiler.d.ts +24 -0
- package/dist/types/runtime/types.d.ts +1 -0
- package/dist/types/ui/doc-context.svelte.d.ts +198 -0
- package/dist/types/ui/index.d.ts +33 -0
- package/dist/types/ui/registry.d.ts +52 -0
- package/dist/types/ui/theme.svelte.d.ts +32 -0
- package/dist/wardley-WFR3VGLG-BK9BA6h6.mjs +2 -0
- package/dist/wardley-WFR3VGLG-Cbs7W-dU.js +1 -0
- package/package.json +61 -48
- package/schemas/docs.schema.json +186 -181
- package/templates/.dmd/CounterWidget.svelte +29 -0
- package/templates/README.md +2 -2
- package/templates/favicon.svg +12 -0
- package/templates/favicons/favicon-book.svg +11 -0
- package/templates/favicons/favicon-markdown.svg +11 -0
- package/templates/favicons/favicon-minimal.svg +15 -0
- package/templates/favicons/favicon-terminal.svg +14 -0
- package/templates/favicons/favicon.svg +12 -0
- package/templates/guides/custom-components.md +82 -22
- package/templates/index.html +6 -3
- package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +0 -89
- package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +0 -1
- package/dist/arc-DgPKXEdT.mjs +0 -82
- package/dist/arc-n7TW7Bis.js +0 -1
- package/dist/architecture-7GRP2DOG-B7myQ46f.js +0 -1
- package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +0 -3
- package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +0 -36
- package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +0 -4154
- package/dist/array-CApNbSU9.mjs +0 -6
- package/dist/array-DZSRzHA_.js +0 -1
- package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +0 -129
- package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +0 -1922
- package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +0 -38
- package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +0 -3010
- package/dist/channel-LgHproiI.mjs +0 -5
- package/dist/channel-yqu0m4cl.js +0 -1
- package/dist/chunk-2E4U76K2-BOyeRQsI.js +0 -1
- package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +0 -348
- package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +0 -15
- package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +0 -1
- package/dist/chunk-4HAMMTFA-GFyfmcSO.js +0 -62
- package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +0 -4188
- package/dist/chunk-5VM5RSS4-GINalzIv.js +0 -15
- package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +0 -5
- package/dist/chunk-75Z2AOVW-DYouz5MZ.js +0 -2
- package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +0 -1330
- package/dist/chunk-CLGD4ZFX-C5J-e2io.js +0 -1
- package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +0 -14
- package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +0 -3836
- package/dist/chunk-DU6HZSFF-CWc5ewtb.js +0 -127
- package/dist/chunk-F27PBJKO-8jvY_jJK.js +0 -1
- package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +0 -61
- package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +0 -21456
- package/dist/chunk-FOHPRMQF-tmTlwTeH.js +0 -161
- package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +0 -1863
- package/dist/chunk-GMAD6QVW-DEQiTa0c.js +0 -72
- package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +0 -37
- package/dist/chunk-GVQU2GXP-CdJIWN41.js +0 -1
- package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +0 -2042
- package/dist/chunk-IMKFNOWR-CPJsszGN.js +0 -231
- package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +0 -8
- package/dist/chunk-JWPE2WC7-p1fYVdYc.js +0 -1
- package/dist/chunk-L3NEJ4N5-TzDiVs78.js +0 -1
- package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +0 -245
- package/dist/chunk-LNGE3PJU-BQX75wkM.js +0 -34
- package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +0 -1521
- package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +0 -672
- package/dist/chunk-OSK3NFVY-CHzvVe8m.js +0 -10
- package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +0 -67
- package/dist/chunk-P2QGCYS3-DKZzpRQW.js +0 -1
- package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +0 -26
- package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +0 -1
- package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +0 -275
- package/dist/chunk-PWAF6VOD-DxZLuCEw.js +0 -1
- package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +0 -4183
- package/dist/chunk-SHT3W25Y-BQjHSn5K.js +0 -168
- package/dist/chunk-SVP7TREG-BFMd615E.js +0 -88
- package/dist/chunk-SVP7TREG-CynckzeF.mjs +0 -490
- package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +0 -3357
- package/dist/chunk-TICWLB2K-agcyBfUp.js +0 -206
- package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +0 -59
- package/dist/chunk-TLUHSLCS-Drx_a7am.js +0 -1
- package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +0 -1
- package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +0 -9
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +0 -1
- package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +0 -12
- package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +0 -1
- package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +0 -1
- package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +0 -30
- package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +0 -1
- package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +0 -2253
- package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +0 -3
- package/dist/cynefin-OW5HDTMX-lNKysi7S.js +0 -1
- package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +0 -62
- package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +0 -355
- package/dist/cytoscape.esm-C5TvPYYm.mjs +0 -18148
- package/dist/cytoscape.esm-CBmWJr5M.js +0 -321
- package/dist/dagre-CZ6P9L_h.js +0 -1
- package/dist/dagre-GXQ25YYZ-CQszk-7P.js +0 -4
- package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +0 -425
- package/dist/dagre-J_1oH0eY.mjs +0 -1934
- package/dist/defaultLocale-N-0uLSyg.mjs +0 -198
- package/dist/defaultLocale-ybN1Vtvg.js +0 -1
- package/dist/diagram-S7CK7UJ4-CTMvxX__.js +0 -30
- package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +0 -301
- package/dist/diagram-UQ7AKVKN-1viEkqlG.js +0 -41
- package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +0 -214
- package/dist/diagram-VSXAHHWV-DgVT19mq.js +0 -3
- package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +0 -432
- package/dist/diagram-VX7I27RA-CNw0pOX_.js +0 -24
- package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +0 -527
- package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +0 -134
- package/dist/diagram-Z3DM3KII-CPkBr3FT.js +0 -24
- package/dist/dist-CXWJafG_.js +0 -1
- package/dist/dist-DNdLIC8h.mjs +0 -59
- package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +0 -1
- package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +0 -100
- package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +0 -99
- package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +0 -1966
- package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +0 -1
- package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +0 -3
- package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +0 -1
- package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +0 -17
- package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +0 -3072
- package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +0 -292
- package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +0 -1
- package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +0 -3
- package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +0 -106
- package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +0 -733
- package/dist/graphlib-BaETKKSa.js +0 -1
- package/dist/graphlib-XW-Jr8pF.mjs +0 -1267
- package/dist/info-A6RAGUB7-ClYskpn6.mjs +0 -3
- package/dist/info-A6RAGUB7-DDvvt-fW.js +0 -1
- package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +0 -20
- package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +0 -2
- package/dist/init-BJdqMO10.js +0 -1
- package/dist/init-CsQUQz36.mjs +0 -13
- package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +0 -70
- package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +0 -719
- package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +0 -139
- package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +0 -884
- package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +0 -976
- package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +0 -89
- package/dist/line-BEwhHSLl.js +0 -1
- package/dist/line-CiXRog8O.mjs +0 -34
- package/dist/linear-75tfjrny.js +0 -1
- package/dist/linear-Ncx_RuON.mjs +0 -288
- package/dist/mermaid-parser.core-BBApyu_y.js +0 -6
- package/dist/mermaid-parser.core-BRHibdUE.mjs +0 -638
- package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +0 -1006
- package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +0 -96
- package/dist/ordinal-B1BNQwUR.mjs +0 -65
- package/dist/ordinal-B9aFWmF9.js +0 -1
- package/dist/packet-AYTQ26CC-CorIy9Ul.js +0 -1
- package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +0 -3
- package/dist/path-CnWkkRiY.mjs +0 -84
- package/dist/path-DIS6ck99.js +0 -1
- package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +0 -1
- package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +0 -94
- package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +0 -3
- package/dist/pie-WAS4IAKB-D84xrSoY.js +0 -1
- package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +0 -39
- package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +0 -203
- package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +0 -7
- package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +0 -2001
- package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +0 -3
- package/dist/radar-RG4KPBEZ-R2sQOLL9.js +0 -1
- package/dist/railroad-74A4TZTK-BOZIf6ts.js +0 -1
- package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +0 -3
- package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +0 -3
- package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +0 -3
- package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +0 -3
- package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +0 -1
- package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +0 -76
- package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +0 -1
- package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +0 -84
- package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +0 -2224
- package/dist/rough.esm-ChRLLRha.js +0 -1
- package/dist/rough.esm-DXYGHN3m.mjs +0 -1361
- package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +0 -972
- package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +0 -40
- package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +0 -162
- package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +0 -4156
- package/dist/sizeCapture-INFHLROL-BihkCH-7.js +0 -1
- package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +0 -46
- package/dist/src-B4mN2BMl.js +0 -1
- package/dist/src-D_hsMyeP.mjs +0 -2154
- package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +0 -220
- package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +0 -1
- package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +0 -30
- package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +0 -1
- package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +0 -4979
- package/dist/swimlanes-42K2YHIH-DlggBCTy.js +0 -1
- package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +0 -8
- package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +0 -31
- package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +0 -120
- package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +0 -1069
- package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +0 -3
- package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +0 -1
- package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +0 -3
- package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +0 -1
- package/dist/types/runtime/app.d.ts +0 -9
- package/dist/types/runtime/components/AppearanceMenu.d.ts +0 -2
- package/dist/types/runtime/components/Builtins.d.ts +0 -44
- package/dist/types/runtime/components/Content.d.ts +0 -2
- package/dist/types/runtime/components/DmdRegistry.d.ts +0 -19
- package/dist/types/runtime/components/Layout.d.ts +0 -2
- package/dist/types/runtime/components/MermaidDiagram.d.ts +0 -16
- package/dist/types/runtime/components/Navbar.d.ts +0 -2
- package/dist/types/runtime/components/OfflineDownloadButton.d.ts +0 -2
- package/dist/types/runtime/components/OfflineNotice.d.ts +0 -6
- package/dist/types/runtime/components/Sidebar.d.ts +0 -2
- package/dist/types/runtime/components/TableOfContents.d.ts +0 -8
- package/dist/types/runtime/index.d.ts +0 -8
- package/dist/types/runtime/markdown/renderer.d.ts +0 -7
- package/dist/types/runtime/provider/DocProvider.d.ts +0 -40
- package/dist/types/runtime/provider/ThemeProvider.d.ts +0 -25
- package/dist/types/runtime/search/SearchModal.d.ts +0 -11
- package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +0 -34
- package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +0 -1880
- package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +0 -3
- package/dist/wardley-WFR3VGLG-DWDqJSgm.js +0 -1
- package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +0 -78
- package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +0 -645
- package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +0 -7
- package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +0 -2210
- package/templates/.dmd/components.js +0 -25
|
@@ -1,1521 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
|
|
2
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-LNGE3PJU.mjs
|
|
3
|
-
function t(e) {
|
|
4
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
|
-
}
|
|
6
|
-
e(t, "getDefaultExportFromCjs");
|
|
7
|
-
var n = {}, r = {}, i = {}, a;
|
|
8
|
-
function o() {
|
|
9
|
-
if (a) return i;
|
|
10
|
-
a = 1;
|
|
11
|
-
function t(e) {
|
|
12
|
-
return e == null;
|
|
13
|
-
}
|
|
14
|
-
e(t, "isNothing");
|
|
15
|
-
function n(e) {
|
|
16
|
-
return typeof e == "object" && !!e;
|
|
17
|
-
}
|
|
18
|
-
e(n, "isObject");
|
|
19
|
-
function r(e) {
|
|
20
|
-
return Array.isArray(e) ? e : t(e) ? [] : [e];
|
|
21
|
-
}
|
|
22
|
-
e(r, "toArray");
|
|
23
|
-
function o(e, t) {
|
|
24
|
-
if (t) {
|
|
25
|
-
let n = Object.keys(t);
|
|
26
|
-
for (let r = 0, i = n.length; r < i; r += 1) {
|
|
27
|
-
let i = n[r];
|
|
28
|
-
e[i] = t[i];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return e;
|
|
32
|
-
}
|
|
33
|
-
e(o, "extend");
|
|
34
|
-
function s(e, t) {
|
|
35
|
-
let n = "";
|
|
36
|
-
for (let r = 0; r < t; r += 1) n += e;
|
|
37
|
-
return n;
|
|
38
|
-
}
|
|
39
|
-
e(s, "repeat");
|
|
40
|
-
function c(e) {
|
|
41
|
-
return e === 0 && 1 / e == -Infinity;
|
|
42
|
-
}
|
|
43
|
-
return e(c, "isNegativeZero"), i.isNothing = t, i.isObject = n, i.toArray = r, i.repeat = s, i.isNegativeZero = c, i.extend = o, i;
|
|
44
|
-
}
|
|
45
|
-
e(o, "requireCommon");
|
|
46
|
-
var s, c;
|
|
47
|
-
function l() {
|
|
48
|
-
if (c) return s;
|
|
49
|
-
c = 1;
|
|
50
|
-
function t(e, t) {
|
|
51
|
-
let n = "", r = e.reason || "(unknown reason)";
|
|
52
|
-
return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
|
|
53
|
-
}
|
|
54
|
-
e(t, "formatError");
|
|
55
|
-
function n(e, n) {
|
|
56
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = t(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
57
|
-
}
|
|
58
|
-
return e(n, "YAMLException2"), n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n.prototype.toString = /* @__PURE__ */ e(function(e) {
|
|
59
|
-
return this.name + ": " + t(this, e);
|
|
60
|
-
}, "toString"), s = n, s;
|
|
61
|
-
}
|
|
62
|
-
e(l, "requireException");
|
|
63
|
-
var u, d;
|
|
64
|
-
function f() {
|
|
65
|
-
if (d) return u;
|
|
66
|
-
d = 1;
|
|
67
|
-
let t = o();
|
|
68
|
-
function n(e, t, n, r, i) {
|
|
69
|
-
let a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
70
|
-
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
71
|
-
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
72
|
-
pos: r - t + a.length
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
e(n, "getLine");
|
|
76
|
-
function r(e, n) {
|
|
77
|
-
return t.repeat(" ", n - e.length) + e;
|
|
78
|
-
}
|
|
79
|
-
e(r, "padStart");
|
|
80
|
-
function i(e, i) {
|
|
81
|
-
if (i = Object.create(i || null), !e.buffer) return null;
|
|
82
|
-
i.maxLength || (i.maxLength = 79), typeof i.indent != "number" && (i.indent = 1), typeof i.linesBefore != "number" && (i.linesBefore = 3), typeof i.linesAfter != "number" && (i.linesAfter = 2);
|
|
83
|
-
let a = /\r?\n|\r|\0/g, o = [0], s = [], c, l = -1;
|
|
84
|
-
for (; c = a.exec(e.buffer);) s.push(c.index), o.push(c.index + c[0].length), e.position <= c.index && l < 0 && (l = o.length - 2);
|
|
85
|
-
l < 0 && (l = o.length - 1);
|
|
86
|
-
let u = "", d = Math.min(e.line + i.linesAfter, s.length).toString().length, f = i.maxLength - (i.indent + d + 3);
|
|
87
|
-
for (let a = 1; a <= i.linesBefore && !(l - a < 0); a++) {
|
|
88
|
-
let c = n(e.buffer, o[l - a], s[l - a], e.position - (o[l] - o[l - a]), f);
|
|
89
|
-
u = t.repeat(" ", i.indent) + r((e.line - a + 1).toString(), d) + " | " + c.str + "\n" + u;
|
|
90
|
-
}
|
|
91
|
-
let p = n(e.buffer, o[l], s[l], e.position, f);
|
|
92
|
-
u += t.repeat(" ", i.indent) + r((e.line + 1).toString(), d) + " | " + p.str + "\n", u += t.repeat("-", i.indent + d + 3 + p.pos) + "^\n";
|
|
93
|
-
for (let a = 1; a <= i.linesAfter && !(l + a >= s.length); a++) {
|
|
94
|
-
let c = n(e.buffer, o[l + a], s[l + a], e.position - (o[l] - o[l + a]), f);
|
|
95
|
-
u += t.repeat(" ", i.indent) + r((e.line + a + 1).toString(), d) + " | " + c.str + "\n";
|
|
96
|
-
}
|
|
97
|
-
return u.replace(/\n$/, "");
|
|
98
|
-
}
|
|
99
|
-
return e(i, "makeSnippet"), u = i, u;
|
|
100
|
-
}
|
|
101
|
-
e(f, "requireSnippet");
|
|
102
|
-
var p, m;
|
|
103
|
-
function h() {
|
|
104
|
-
if (m) return p;
|
|
105
|
-
m = 1;
|
|
106
|
-
let t = l(), n = [
|
|
107
|
-
"kind",
|
|
108
|
-
"multi",
|
|
109
|
-
"resolve",
|
|
110
|
-
"construct",
|
|
111
|
-
"instanceOf",
|
|
112
|
-
"predicate",
|
|
113
|
-
"represent",
|
|
114
|
-
"representName",
|
|
115
|
-
"defaultStyle",
|
|
116
|
-
"styleAliases"
|
|
117
|
-
], r = [
|
|
118
|
-
"scalar",
|
|
119
|
-
"sequence",
|
|
120
|
-
"mapping"
|
|
121
|
-
];
|
|
122
|
-
function i(e) {
|
|
123
|
-
let t = {};
|
|
124
|
-
return e !== null && Object.keys(e).forEach(function(n) {
|
|
125
|
-
e[n].forEach(function(e) {
|
|
126
|
-
t[String(e)] = n;
|
|
127
|
-
});
|
|
128
|
-
}), t;
|
|
129
|
-
}
|
|
130
|
-
e(i, "compileStyleAliases");
|
|
131
|
-
function a(e, a) {
|
|
132
|
-
if (a ||= {}, Object.keys(a).forEach(function(r) {
|
|
133
|
-
if (n.indexOf(r) === -1) throw new t("Unknown option \"" + r + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
134
|
-
}), this.options = a, this.tag = e, this.kind = a.kind || null, this.resolve = a.resolve || function() {
|
|
135
|
-
return !0;
|
|
136
|
-
}, this.construct = a.construct || function(e) {
|
|
137
|
-
return e;
|
|
138
|
-
}, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = i(a.styleAliases || null), r.indexOf(this.kind) === -1) throw new t("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
139
|
-
}
|
|
140
|
-
return e(a, "Type2"), p = a, p;
|
|
141
|
-
}
|
|
142
|
-
e(h, "requireType");
|
|
143
|
-
var g, _;
|
|
144
|
-
function v() {
|
|
145
|
-
if (_) return g;
|
|
146
|
-
_ = 1;
|
|
147
|
-
let t = l(), n = h();
|
|
148
|
-
function r(e, t) {
|
|
149
|
-
let n = [];
|
|
150
|
-
return e[t].forEach(function(e) {
|
|
151
|
-
let t = n.length;
|
|
152
|
-
n.forEach(function(n, r) {
|
|
153
|
-
n.tag === e.tag && n.kind === e.kind && n.multi === e.multi && (t = r);
|
|
154
|
-
}), n[t] = e;
|
|
155
|
-
}), n;
|
|
156
|
-
}
|
|
157
|
-
e(r, "compileList");
|
|
158
|
-
function i() {
|
|
159
|
-
let t = {
|
|
160
|
-
scalar: {},
|
|
161
|
-
sequence: {},
|
|
162
|
-
mapping: {},
|
|
163
|
-
fallback: {},
|
|
164
|
-
multi: {
|
|
165
|
-
scalar: [],
|
|
166
|
-
sequence: [],
|
|
167
|
-
mapping: [],
|
|
168
|
-
fallback: []
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
function n(e) {
|
|
172
|
-
e.multi ? (t.multi[e.kind].push(e), t.multi.fallback.push(e)) : t[e.kind][e.tag] = t.fallback[e.tag] = e;
|
|
173
|
-
}
|
|
174
|
-
e(n, "collectType");
|
|
175
|
-
for (let e = 0, t = arguments.length; e < t; e += 1) arguments[e].forEach(n);
|
|
176
|
-
return t;
|
|
177
|
-
}
|
|
178
|
-
e(i, "compileMap");
|
|
179
|
-
function a(e) {
|
|
180
|
-
return this.extend(e);
|
|
181
|
-
}
|
|
182
|
-
return e(a, "Schema2"), a.prototype.extend = /* @__PURE__ */ e(function(e) {
|
|
183
|
-
let o = [], s = [];
|
|
184
|
-
if (e instanceof n) s.push(e);
|
|
185
|
-
else if (Array.isArray(e)) s = s.concat(e);
|
|
186
|
-
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (o = o.concat(e.implicit)), e.explicit && (s = s.concat(e.explicit));
|
|
187
|
-
else throw new t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
188
|
-
o.forEach(function(e) {
|
|
189
|
-
if (!(e instanceof n)) throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
190
|
-
if (e.loadKind && e.loadKind !== "scalar") throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
191
|
-
if (e.multi) throw new t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
192
|
-
}), s.forEach(function(e) {
|
|
193
|
-
if (!(e instanceof n)) throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
194
|
-
});
|
|
195
|
-
let c = Object.create(a.prototype);
|
|
196
|
-
return c.implicit = (this.implicit || []).concat(o), c.explicit = (this.explicit || []).concat(s), c.compiledImplicit = r(c, "implicit"), c.compiledExplicit = r(c, "explicit"), c.compiledTypeMap = i(c.compiledImplicit, c.compiledExplicit), c;
|
|
197
|
-
}, "extend"), g = a, g;
|
|
198
|
-
}
|
|
199
|
-
e(v, "requireSchema");
|
|
200
|
-
var y, b;
|
|
201
|
-
function x() {
|
|
202
|
-
return b ? y : (b = 1, y = new (h())("tag:yaml.org,2002:str", {
|
|
203
|
-
kind: "scalar",
|
|
204
|
-
construct: /* @__PURE__ */ e(function(e) {
|
|
205
|
-
return e === null ? "" : e;
|
|
206
|
-
}, "construct")
|
|
207
|
-
}), y);
|
|
208
|
-
}
|
|
209
|
-
e(x, "requireStr");
|
|
210
|
-
var S, C;
|
|
211
|
-
function w() {
|
|
212
|
-
return C ? S : (C = 1, S = new (h())("tag:yaml.org,2002:seq", {
|
|
213
|
-
kind: "sequence",
|
|
214
|
-
construct: /* @__PURE__ */ e(function(e) {
|
|
215
|
-
return e === null ? [] : e;
|
|
216
|
-
}, "construct")
|
|
217
|
-
}), S);
|
|
218
|
-
}
|
|
219
|
-
e(w, "requireSeq");
|
|
220
|
-
var T, E;
|
|
221
|
-
function D() {
|
|
222
|
-
return E ? T : (E = 1, T = new (h())("tag:yaml.org,2002:map", {
|
|
223
|
-
kind: "mapping",
|
|
224
|
-
construct: /* @__PURE__ */ e(function(e) {
|
|
225
|
-
return e === null ? {} : e;
|
|
226
|
-
}, "construct")
|
|
227
|
-
}), T);
|
|
228
|
-
}
|
|
229
|
-
e(D, "requireMap");
|
|
230
|
-
var O, k;
|
|
231
|
-
function A() {
|
|
232
|
-
return k ? O : (k = 1, O = new (v())({ explicit: [
|
|
233
|
-
x(),
|
|
234
|
-
w(),
|
|
235
|
-
D()
|
|
236
|
-
] }), O);
|
|
237
|
-
}
|
|
238
|
-
e(A, "requireFailsafe");
|
|
239
|
-
var j, M;
|
|
240
|
-
function N() {
|
|
241
|
-
if (M) return j;
|
|
242
|
-
M = 1;
|
|
243
|
-
let t = h();
|
|
244
|
-
function n(e) {
|
|
245
|
-
if (e === null) return !0;
|
|
246
|
-
let t = e.length;
|
|
247
|
-
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
248
|
-
}
|
|
249
|
-
e(n, "resolveYamlNull");
|
|
250
|
-
function r() {
|
|
251
|
-
return null;
|
|
252
|
-
}
|
|
253
|
-
e(r, "constructYamlNull");
|
|
254
|
-
function i(e) {
|
|
255
|
-
return e === null;
|
|
256
|
-
}
|
|
257
|
-
return e(i, "isNull"), j = new t("tag:yaml.org,2002:null", {
|
|
258
|
-
kind: "scalar",
|
|
259
|
-
resolve: n,
|
|
260
|
-
construct: r,
|
|
261
|
-
predicate: i,
|
|
262
|
-
represent: {
|
|
263
|
-
canonical: /* @__PURE__ */ e(function() {
|
|
264
|
-
return "~";
|
|
265
|
-
}, "canonical"),
|
|
266
|
-
lowercase: /* @__PURE__ */ e(function() {
|
|
267
|
-
return "null";
|
|
268
|
-
}, "lowercase"),
|
|
269
|
-
uppercase: /* @__PURE__ */ e(function() {
|
|
270
|
-
return "NULL";
|
|
271
|
-
}, "uppercase"),
|
|
272
|
-
camelcase: /* @__PURE__ */ e(function() {
|
|
273
|
-
return "Null";
|
|
274
|
-
}, "camelcase"),
|
|
275
|
-
empty: /* @__PURE__ */ e(function() {
|
|
276
|
-
return "";
|
|
277
|
-
}, "empty")
|
|
278
|
-
},
|
|
279
|
-
defaultStyle: "lowercase"
|
|
280
|
-
}), j;
|
|
281
|
-
}
|
|
282
|
-
e(N, "require_null");
|
|
283
|
-
var P, F;
|
|
284
|
-
function I() {
|
|
285
|
-
if (F) return P;
|
|
286
|
-
F = 1;
|
|
287
|
-
let t = h();
|
|
288
|
-
function n(e) {
|
|
289
|
-
if (e === null) return !1;
|
|
290
|
-
let t = e.length;
|
|
291
|
-
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
292
|
-
}
|
|
293
|
-
e(n, "resolveYamlBoolean");
|
|
294
|
-
function r(e) {
|
|
295
|
-
return e === "true" || e === "True" || e === "TRUE";
|
|
296
|
-
}
|
|
297
|
-
e(r, "constructYamlBoolean");
|
|
298
|
-
function i(e) {
|
|
299
|
-
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
300
|
-
}
|
|
301
|
-
return e(i, "isBoolean"), P = new t("tag:yaml.org,2002:bool", {
|
|
302
|
-
kind: "scalar",
|
|
303
|
-
resolve: n,
|
|
304
|
-
construct: r,
|
|
305
|
-
predicate: i,
|
|
306
|
-
represent: {
|
|
307
|
-
lowercase: /* @__PURE__ */ e(function(e) {
|
|
308
|
-
return e ? "true" : "false";
|
|
309
|
-
}, "lowercase"),
|
|
310
|
-
uppercase: /* @__PURE__ */ e(function(e) {
|
|
311
|
-
return e ? "TRUE" : "FALSE";
|
|
312
|
-
}, "uppercase"),
|
|
313
|
-
camelcase: /* @__PURE__ */ e(function(e) {
|
|
314
|
-
return e ? "True" : "False";
|
|
315
|
-
}, "camelcase")
|
|
316
|
-
},
|
|
317
|
-
defaultStyle: "lowercase"
|
|
318
|
-
}), P;
|
|
319
|
-
}
|
|
320
|
-
e(I, "requireBool");
|
|
321
|
-
var L, R;
|
|
322
|
-
function z() {
|
|
323
|
-
if (R) return L;
|
|
324
|
-
R = 1;
|
|
325
|
-
let t = o(), n = h();
|
|
326
|
-
function r(e) {
|
|
327
|
-
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
328
|
-
}
|
|
329
|
-
e(r, "isHexCode");
|
|
330
|
-
function i(e) {
|
|
331
|
-
return e >= 48 && e <= 55;
|
|
332
|
-
}
|
|
333
|
-
e(i, "isOctCode");
|
|
334
|
-
function a(e) {
|
|
335
|
-
return e >= 48 && e <= 57;
|
|
336
|
-
}
|
|
337
|
-
e(a, "isDecCode");
|
|
338
|
-
function s(e) {
|
|
339
|
-
if (e === null) return !1;
|
|
340
|
-
let t = e.length, n = 0, o = !1;
|
|
341
|
-
if (!t) return !1;
|
|
342
|
-
let s = e[n];
|
|
343
|
-
if ((s === "-" || s === "+") && (s = e[++n]), s === "0") {
|
|
344
|
-
if (n + 1 === t) return !0;
|
|
345
|
-
if (s = e[++n], s === "b") {
|
|
346
|
-
for (n++; n < t; n++) {
|
|
347
|
-
if (s = e[n], s !== "0" && s !== "1") return !1;
|
|
348
|
-
o = !0;
|
|
349
|
-
}
|
|
350
|
-
return o && isFinite(c(e));
|
|
351
|
-
}
|
|
352
|
-
if (s === "x") {
|
|
353
|
-
for (n++; n < t; n++) {
|
|
354
|
-
if (!r(e.charCodeAt(n))) return !1;
|
|
355
|
-
o = !0;
|
|
356
|
-
}
|
|
357
|
-
return o && isFinite(c(e));
|
|
358
|
-
}
|
|
359
|
-
if (s === "o") {
|
|
360
|
-
for (n++; n < t; n++) {
|
|
361
|
-
if (!i(e.charCodeAt(n))) return !1;
|
|
362
|
-
o = !0;
|
|
363
|
-
}
|
|
364
|
-
return o && isFinite(c(e));
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
for (; n < t; n++) {
|
|
368
|
-
if (!a(e.charCodeAt(n))) return !1;
|
|
369
|
-
o = !0;
|
|
370
|
-
}
|
|
371
|
-
return o ? isFinite(c(e)) : !1;
|
|
372
|
-
}
|
|
373
|
-
e(s, "resolveYamlInteger");
|
|
374
|
-
function c(e) {
|
|
375
|
-
let t = e, n = 1, r = t[0];
|
|
376
|
-
if ((r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
|
|
377
|
-
if (r === "0") {
|
|
378
|
-
if (t[1] === "b") return n * parseInt(t.slice(2), 2);
|
|
379
|
-
if (t[1] === "x") return n * parseInt(t.slice(2), 16);
|
|
380
|
-
if (t[1] === "o") return n * parseInt(t.slice(2), 8);
|
|
381
|
-
}
|
|
382
|
-
return n * parseInt(t, 10);
|
|
383
|
-
}
|
|
384
|
-
e(c, "parseYamlInteger");
|
|
385
|
-
function l(e) {
|
|
386
|
-
return c(e);
|
|
387
|
-
}
|
|
388
|
-
e(l, "constructYamlInteger");
|
|
389
|
-
function u(e) {
|
|
390
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !t.isNegativeZero(e);
|
|
391
|
-
}
|
|
392
|
-
return e(u, "isInteger"), L = new n("tag:yaml.org,2002:int", {
|
|
393
|
-
kind: "scalar",
|
|
394
|
-
resolve: s,
|
|
395
|
-
construct: l,
|
|
396
|
-
predicate: u,
|
|
397
|
-
represent: {
|
|
398
|
-
binary: /* @__PURE__ */ e(function(e) {
|
|
399
|
-
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
400
|
-
}, "binary"),
|
|
401
|
-
octal: /* @__PURE__ */ e(function(e) {
|
|
402
|
-
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
403
|
-
}, "octal"),
|
|
404
|
-
decimal: /* @__PURE__ */ e(function(e) {
|
|
405
|
-
return e.toString(10);
|
|
406
|
-
}, "decimal"),
|
|
407
|
-
hexadecimal: /* @__PURE__ */ e(function(e) {
|
|
408
|
-
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
409
|
-
}, "hexadecimal")
|
|
410
|
-
},
|
|
411
|
-
defaultStyle: "decimal",
|
|
412
|
-
styleAliases: {
|
|
413
|
-
binary: [2, "bin"],
|
|
414
|
-
octal: [8, "oct"],
|
|
415
|
-
decimal: [10, "dec"],
|
|
416
|
-
hexadecimal: [16, "hex"]
|
|
417
|
-
}
|
|
418
|
-
}), L;
|
|
419
|
-
}
|
|
420
|
-
e(z, "requireInt");
|
|
421
|
-
var B, V;
|
|
422
|
-
function H() {
|
|
423
|
-
if (V) return B;
|
|
424
|
-
V = 1;
|
|
425
|
-
let t = o(), n = h(), r = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), i = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
426
|
-
function a(e) {
|
|
427
|
-
return e === null || !r.test(e) ? !1 : isFinite(parseFloat(e, 10)) ? !0 : i.test(e);
|
|
428
|
-
}
|
|
429
|
-
e(a, "resolveYamlFloat");
|
|
430
|
-
function s(e) {
|
|
431
|
-
let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
432
|
-
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
433
|
-
}
|
|
434
|
-
e(s, "constructYamlFloat");
|
|
435
|
-
let c = /^[-+]?[0-9]+e/;
|
|
436
|
-
function l(e, n) {
|
|
437
|
-
if (isNaN(e)) switch (n) {
|
|
438
|
-
case "lowercase": return ".nan";
|
|
439
|
-
case "uppercase": return ".NAN";
|
|
440
|
-
case "camelcase": return ".NaN";
|
|
441
|
-
}
|
|
442
|
-
else if (e === Infinity) switch (n) {
|
|
443
|
-
case "lowercase": return ".inf";
|
|
444
|
-
case "uppercase": return ".INF";
|
|
445
|
-
case "camelcase": return ".Inf";
|
|
446
|
-
}
|
|
447
|
-
else if (e === -Infinity) switch (n) {
|
|
448
|
-
case "lowercase": return "-.inf";
|
|
449
|
-
case "uppercase": return "-.INF";
|
|
450
|
-
case "camelcase": return "-.Inf";
|
|
451
|
-
}
|
|
452
|
-
else if (t.isNegativeZero(e)) return "-0.0";
|
|
453
|
-
let r = e.toString(10);
|
|
454
|
-
return c.test(r) ? r.replace("e", ".e") : r;
|
|
455
|
-
}
|
|
456
|
-
e(l, "representYamlFloat");
|
|
457
|
-
function u(e) {
|
|
458
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || t.isNegativeZero(e));
|
|
459
|
-
}
|
|
460
|
-
return e(u, "isFloat"), B = new n("tag:yaml.org,2002:float", {
|
|
461
|
-
kind: "scalar",
|
|
462
|
-
resolve: a,
|
|
463
|
-
construct: s,
|
|
464
|
-
predicate: u,
|
|
465
|
-
represent: l,
|
|
466
|
-
defaultStyle: "lowercase"
|
|
467
|
-
}), B;
|
|
468
|
-
}
|
|
469
|
-
e(H, "requireFloat");
|
|
470
|
-
var U, W;
|
|
471
|
-
function G() {
|
|
472
|
-
return W ? U : (W = 1, U = A().extend({ implicit: [
|
|
473
|
-
N(),
|
|
474
|
-
I(),
|
|
475
|
-
z(),
|
|
476
|
-
H()
|
|
477
|
-
] }), U);
|
|
478
|
-
}
|
|
479
|
-
e(G, "requireJson");
|
|
480
|
-
var ee, te;
|
|
481
|
-
function K() {
|
|
482
|
-
return te ? ee : (te = 1, ee = G(), ee);
|
|
483
|
-
}
|
|
484
|
-
e(K, "requireCore");
|
|
485
|
-
var q, ne;
|
|
486
|
-
function J() {
|
|
487
|
-
if (ne) return q;
|
|
488
|
-
ne = 1;
|
|
489
|
-
let t = h(), n = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), r = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
490
|
-
function i(e) {
|
|
491
|
-
return e === null ? !1 : n.exec(e) !== null || r.exec(e) !== null;
|
|
492
|
-
}
|
|
493
|
-
e(i, "resolveYamlTimestamp");
|
|
494
|
-
function a(e) {
|
|
495
|
-
let t = 0, i = null, a = n.exec(e);
|
|
496
|
-
if (a === null && (a = r.exec(e)), a === null) throw Error("Date resolve error");
|
|
497
|
-
let o = +a[1], s = a[2] - 1, c = +a[3];
|
|
498
|
-
if (!a[4]) return new Date(Date.UTC(o, s, c));
|
|
499
|
-
let l = +a[4], u = +a[5], d = +a[6];
|
|
500
|
-
if (a[7]) {
|
|
501
|
-
for (t = a[7].slice(0, 3); t.length < 3;) t += "0";
|
|
502
|
-
t = +t;
|
|
503
|
-
}
|
|
504
|
-
if (a[9]) {
|
|
505
|
-
let e = +a[10], t = +(a[11] || 0);
|
|
506
|
-
i = (e * 60 + t) * 6e4, a[9] === "-" && (i = -i);
|
|
507
|
-
}
|
|
508
|
-
let f = new Date(Date.UTC(o, s, c, l, u, d, t));
|
|
509
|
-
return i && f.setTime(f.getTime() - i), f;
|
|
510
|
-
}
|
|
511
|
-
e(a, "constructYamlTimestamp");
|
|
512
|
-
function o(e) {
|
|
513
|
-
return e.toISOString();
|
|
514
|
-
}
|
|
515
|
-
return e(o, "representYamlTimestamp"), q = new t("tag:yaml.org,2002:timestamp", {
|
|
516
|
-
kind: "scalar",
|
|
517
|
-
resolve: i,
|
|
518
|
-
construct: a,
|
|
519
|
-
instanceOf: Date,
|
|
520
|
-
represent: o
|
|
521
|
-
}), q;
|
|
522
|
-
}
|
|
523
|
-
e(J, "requireTimestamp");
|
|
524
|
-
var Y, re;
|
|
525
|
-
function X() {
|
|
526
|
-
if (re) return Y;
|
|
527
|
-
re = 1;
|
|
528
|
-
let t = h();
|
|
529
|
-
function n(e) {
|
|
530
|
-
return e === "<<" || e === null;
|
|
531
|
-
}
|
|
532
|
-
return e(n, "resolveYamlMerge"), Y = new t("tag:yaml.org,2002:merge", {
|
|
533
|
-
kind: "scalar",
|
|
534
|
-
resolve: n
|
|
535
|
-
}), Y;
|
|
536
|
-
}
|
|
537
|
-
e(X, "requireMerge");
|
|
538
|
-
var Z, ie;
|
|
539
|
-
function Q() {
|
|
540
|
-
if (ie) return Z;
|
|
541
|
-
ie = 1;
|
|
542
|
-
let t = h();
|
|
543
|
-
function n(e) {
|
|
544
|
-
if (e === null) return !1;
|
|
545
|
-
let t = 0, n = e.length;
|
|
546
|
-
for (let r = 0; r < n; r++) {
|
|
547
|
-
let n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(e.charAt(r));
|
|
548
|
-
if (!(n > 64)) {
|
|
549
|
-
if (n < 0) return !1;
|
|
550
|
-
t += 6;
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
return t % 8 == 0;
|
|
554
|
-
}
|
|
555
|
-
e(n, "resolveYamlBinary");
|
|
556
|
-
function r(e) {
|
|
557
|
-
let t = e.replace(/[\r\n=]/g, ""), n = t.length, r = 0, i = [];
|
|
558
|
-
for (let e = 0; e < n; e++) e % 4 == 0 && e && (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)), r = r << 6 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(t.charAt(e));
|
|
559
|
-
let a = n % 4 * 6;
|
|
560
|
-
return a === 0 ? (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)) : a === 18 ? (i.push(r >> 10 & 255), i.push(r >> 2 & 255)) : a === 12 && i.push(r >> 4 & 255), new Uint8Array(i);
|
|
561
|
-
}
|
|
562
|
-
e(r, "constructYamlBinary");
|
|
563
|
-
function i(e) {
|
|
564
|
-
let t = "", n = 0, r = e.length, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
565
|
-
for (let a = 0; a < r; a++) a % 3 == 0 && a && (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]), n = (n << 8) + e[a];
|
|
566
|
-
let a = r % 3;
|
|
567
|
-
return a === 0 ? (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]) : a === 2 ? (t += i[n >> 10 & 63], t += i[n >> 4 & 63], t += i[n << 2 & 63], t += i[64]) : a === 1 && (t += i[n >> 2 & 63], t += i[n << 4 & 63], t += i[64], t += i[64]), t;
|
|
568
|
-
}
|
|
569
|
-
e(i, "representYamlBinary");
|
|
570
|
-
function a(e) {
|
|
571
|
-
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
572
|
-
}
|
|
573
|
-
return e(a, "isBinary"), Z = new t("tag:yaml.org,2002:binary", {
|
|
574
|
-
kind: "scalar",
|
|
575
|
-
resolve: n,
|
|
576
|
-
construct: r,
|
|
577
|
-
predicate: a,
|
|
578
|
-
represent: i
|
|
579
|
-
}), Z;
|
|
580
|
-
}
|
|
581
|
-
e(Q, "requireBinary");
|
|
582
|
-
var $, ae;
|
|
583
|
-
function oe() {
|
|
584
|
-
if (ae) return $;
|
|
585
|
-
ae = 1;
|
|
586
|
-
let t = h(), n = Object.prototype.hasOwnProperty, r = Object.prototype.toString;
|
|
587
|
-
function i(e) {
|
|
588
|
-
if (e === null) return !0;
|
|
589
|
-
let t = [], i = e;
|
|
590
|
-
for (let e = 0, a = i.length; e < a; e += 1) {
|
|
591
|
-
let a = i[e], o = !1;
|
|
592
|
-
if (r.call(a) !== "[object Object]") return !1;
|
|
593
|
-
let s;
|
|
594
|
-
for (s in a) if (n.call(a, s)) {
|
|
595
|
-
if (!o) o = !0;
|
|
596
|
-
else return !1;
|
|
597
|
-
}
|
|
598
|
-
if (!o) return !1;
|
|
599
|
-
if (t.indexOf(s) === -1) t.push(s);
|
|
600
|
-
else return !1;
|
|
601
|
-
}
|
|
602
|
-
return !0;
|
|
603
|
-
}
|
|
604
|
-
e(i, "resolveYamlOmap");
|
|
605
|
-
function a(e) {
|
|
606
|
-
return e === null ? [] : e;
|
|
607
|
-
}
|
|
608
|
-
return e(a, "constructYamlOmap"), $ = new t("tag:yaml.org,2002:omap", {
|
|
609
|
-
kind: "sequence",
|
|
610
|
-
resolve: i,
|
|
611
|
-
construct: a
|
|
612
|
-
}), $;
|
|
613
|
-
}
|
|
614
|
-
e(oe, "requireOmap");
|
|
615
|
-
var se, ce;
|
|
616
|
-
function le() {
|
|
617
|
-
if (ce) return se;
|
|
618
|
-
ce = 1;
|
|
619
|
-
let t = h(), n = Object.prototype.toString;
|
|
620
|
-
function r(e) {
|
|
621
|
-
if (e === null) return !0;
|
|
622
|
-
let t = e, r = Array(t.length);
|
|
623
|
-
for (let e = 0, i = t.length; e < i; e += 1) {
|
|
624
|
-
let i = t[e];
|
|
625
|
-
if (n.call(i) !== "[object Object]") return !1;
|
|
626
|
-
let a = Object.keys(i);
|
|
627
|
-
if (a.length !== 1) return !1;
|
|
628
|
-
r[e] = [a[0], i[a[0]]];
|
|
629
|
-
}
|
|
630
|
-
return !0;
|
|
631
|
-
}
|
|
632
|
-
e(r, "resolveYamlPairs");
|
|
633
|
-
function i(e) {
|
|
634
|
-
if (e === null) return [];
|
|
635
|
-
let t = e, n = Array(t.length);
|
|
636
|
-
for (let e = 0, r = t.length; e < r; e += 1) {
|
|
637
|
-
let r = t[e], i = Object.keys(r);
|
|
638
|
-
n[e] = [i[0], r[i[0]]];
|
|
639
|
-
}
|
|
640
|
-
return n;
|
|
641
|
-
}
|
|
642
|
-
return e(i, "constructYamlPairs"), se = new t("tag:yaml.org,2002:pairs", {
|
|
643
|
-
kind: "sequence",
|
|
644
|
-
resolve: r,
|
|
645
|
-
construct: i
|
|
646
|
-
}), se;
|
|
647
|
-
}
|
|
648
|
-
e(le, "requirePairs");
|
|
649
|
-
var ue, de;
|
|
650
|
-
function fe() {
|
|
651
|
-
if (de) return ue;
|
|
652
|
-
de = 1;
|
|
653
|
-
let t = h(), n = Object.prototype.hasOwnProperty;
|
|
654
|
-
function r(e) {
|
|
655
|
-
if (e === null) return !0;
|
|
656
|
-
let t = e;
|
|
657
|
-
for (let e in t) if (n.call(t, e) && t[e] !== null) return !1;
|
|
658
|
-
return !0;
|
|
659
|
-
}
|
|
660
|
-
e(r, "resolveYamlSet");
|
|
661
|
-
function i(e) {
|
|
662
|
-
return e === null ? {} : e;
|
|
663
|
-
}
|
|
664
|
-
return e(i, "constructYamlSet"), ue = new t("tag:yaml.org,2002:set", {
|
|
665
|
-
kind: "mapping",
|
|
666
|
-
resolve: r,
|
|
667
|
-
construct: i
|
|
668
|
-
}), ue;
|
|
669
|
-
}
|
|
670
|
-
e(fe, "requireSet");
|
|
671
|
-
var pe, me;
|
|
672
|
-
function he() {
|
|
673
|
-
return me ? pe : (me = 1, pe = K().extend({
|
|
674
|
-
implicit: [J(), X()],
|
|
675
|
-
explicit: [
|
|
676
|
-
Q(),
|
|
677
|
-
oe(),
|
|
678
|
-
le(),
|
|
679
|
-
fe()
|
|
680
|
-
]
|
|
681
|
-
}), pe);
|
|
682
|
-
}
|
|
683
|
-
e(he, "require_default");
|
|
684
|
-
var ge;
|
|
685
|
-
function _e() {
|
|
686
|
-
if (ge) return r;
|
|
687
|
-
ge = 1;
|
|
688
|
-
let t = o(), n = l(), i = f(), a = he(), s = Object.prototype.hasOwnProperty, c = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, u = /[\x85\u2028\u2029]/, d = /[,\[\]{}]/, p = /^(?:!|!!|![0-9A-Za-z-]+!)$/, m = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
689
|
-
function h(e) {
|
|
690
|
-
return Object.prototype.toString.call(e);
|
|
691
|
-
}
|
|
692
|
-
e(h, "_class");
|
|
693
|
-
function g(e) {
|
|
694
|
-
return e === 10 || e === 13;
|
|
695
|
-
}
|
|
696
|
-
e(g, "isEol");
|
|
697
|
-
function _(e) {
|
|
698
|
-
return e === 9 || e === 32;
|
|
699
|
-
}
|
|
700
|
-
e(_, "isWhiteSpace");
|
|
701
|
-
function v(e) {
|
|
702
|
-
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
703
|
-
}
|
|
704
|
-
e(v, "isWsOrEol");
|
|
705
|
-
function y(e) {
|
|
706
|
-
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
707
|
-
}
|
|
708
|
-
e(y, "isFlowIndicator");
|
|
709
|
-
function b(e) {
|
|
710
|
-
if (e >= 48 && e <= 57) return e - 48;
|
|
711
|
-
let t = e | 32;
|
|
712
|
-
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
713
|
-
}
|
|
714
|
-
e(b, "fromHexCode");
|
|
715
|
-
function x(e) {
|
|
716
|
-
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
717
|
-
}
|
|
718
|
-
e(x, "escapedHexLen");
|
|
719
|
-
function S(e) {
|
|
720
|
-
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
721
|
-
}
|
|
722
|
-
e(S, "fromDecimalCode");
|
|
723
|
-
function C(e) {
|
|
724
|
-
switch (e) {
|
|
725
|
-
case 48: return "\0";
|
|
726
|
-
case 97: return "\x07";
|
|
727
|
-
case 98: return "\b";
|
|
728
|
-
case 116: return " ";
|
|
729
|
-
case 9: return " ";
|
|
730
|
-
case 110: return "\n";
|
|
731
|
-
case 118: return "\v";
|
|
732
|
-
case 102: return "\f";
|
|
733
|
-
case 114: return "\r";
|
|
734
|
-
case 101: return "\x1B";
|
|
735
|
-
case 32: return " ";
|
|
736
|
-
case 34: return "\"";
|
|
737
|
-
case 47: return "/";
|
|
738
|
-
case 92: return "\\";
|
|
739
|
-
case 78: return "
";
|
|
740
|
-
case 95: return "\xA0";
|
|
741
|
-
case 76: return "\u2028";
|
|
742
|
-
case 80: return "\u2029";
|
|
743
|
-
default: return "";
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
e(C, "simpleEscapeSequence");
|
|
747
|
-
function w(e) {
|
|
748
|
-
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
749
|
-
}
|
|
750
|
-
e(w, "charFromCodepoint");
|
|
751
|
-
function T(e, t, n) {
|
|
752
|
-
t === "__proto__" ? Object.defineProperty(e, t, {
|
|
753
|
-
configurable: !0,
|
|
754
|
-
enumerable: !0,
|
|
755
|
-
writable: !0,
|
|
756
|
-
value: n
|
|
757
|
-
}) : e[t] = n;
|
|
758
|
-
}
|
|
759
|
-
e(T, "setProperty");
|
|
760
|
-
let E = Array(256), D = Array(256);
|
|
761
|
-
for (let e = 0; e < 256; e++) E[e] = +!!C(e), D[e] = C(e);
|
|
762
|
-
function O(e, t) {
|
|
763
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema || a, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : 100, this.maxTotalMergeKeys = typeof t.maxTotalMergeKeys == "number" ? t.maxTotalMergeKeys : 1e4, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.depth = 0, this.totalMergeKeys = 0, this.firstTabInLine = -1, this.documents = [], this.anchorMapTransactions = [];
|
|
764
|
-
}
|
|
765
|
-
e(O, "State");
|
|
766
|
-
function k(e, t) {
|
|
767
|
-
let r = {
|
|
768
|
-
name: e.filename,
|
|
769
|
-
buffer: e.input.slice(0, -1),
|
|
770
|
-
position: e.position,
|
|
771
|
-
line: e.line,
|
|
772
|
-
column: e.position - e.lineStart
|
|
773
|
-
};
|
|
774
|
-
return r.snippet = i(r), new n(t, r);
|
|
775
|
-
}
|
|
776
|
-
e(k, "generateError");
|
|
777
|
-
function A(e, t) {
|
|
778
|
-
throw k(e, t);
|
|
779
|
-
}
|
|
780
|
-
e(A, "throwError");
|
|
781
|
-
function j(e, t) {
|
|
782
|
-
e.onWarning && e.onWarning.call(null, k(e, t));
|
|
783
|
-
}
|
|
784
|
-
e(j, "throwWarning");
|
|
785
|
-
function M(e, t, n) {
|
|
786
|
-
let r = e.anchorMapTransactions;
|
|
787
|
-
if (r.length !== 0) {
|
|
788
|
-
let n = r[r.length - 1];
|
|
789
|
-
s.call(n, t) || (n[t] = {
|
|
790
|
-
existed: s.call(e.anchorMap, t),
|
|
791
|
-
value: e.anchorMap[t]
|
|
792
|
-
});
|
|
793
|
-
}
|
|
794
|
-
e.anchorMap[t] = n;
|
|
795
|
-
}
|
|
796
|
-
e(M, "storeAnchor");
|
|
797
|
-
function N(e) {
|
|
798
|
-
e.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
799
|
-
}
|
|
800
|
-
e(N, "beginAnchorTransaction");
|
|
801
|
-
function P(e) {
|
|
802
|
-
let t = e.anchorMapTransactions.pop(), n = e.anchorMapTransactions;
|
|
803
|
-
if (n.length === 0) return;
|
|
804
|
-
let r = n[n.length - 1], i = Object.keys(t);
|
|
805
|
-
for (let e = 0, n = i.length; e < n; e += 1) {
|
|
806
|
-
let n = i[e];
|
|
807
|
-
s.call(r, n) || (r[n] = t[n]);
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
e(P, "commitAnchorTransaction");
|
|
811
|
-
function F(e) {
|
|
812
|
-
let t = e.anchorMapTransactions.pop(), n = Object.keys(t);
|
|
813
|
-
for (let r = n.length - 1; r >= 0; --r) {
|
|
814
|
-
let i = t[n[r]];
|
|
815
|
-
i.existed ? e.anchorMap[n[r]] = i.value : delete e.anchorMap[n[r]];
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
e(F, "rollbackAnchorTransaction");
|
|
819
|
-
function I(e) {
|
|
820
|
-
return {
|
|
821
|
-
position: e.position,
|
|
822
|
-
line: e.line,
|
|
823
|
-
lineStart: e.lineStart,
|
|
824
|
-
lineIndent: e.lineIndent,
|
|
825
|
-
firstTabInLine: e.firstTabInLine,
|
|
826
|
-
tag: e.tag,
|
|
827
|
-
anchor: e.anchor,
|
|
828
|
-
kind: e.kind,
|
|
829
|
-
result: e.result
|
|
830
|
-
};
|
|
831
|
-
}
|
|
832
|
-
e(I, "snapshotState");
|
|
833
|
-
function L(e, t) {
|
|
834
|
-
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.tag = t.tag, e.anchor = t.anchor, e.kind = t.kind, e.result = t.result;
|
|
835
|
-
}
|
|
836
|
-
e(L, "restoreState");
|
|
837
|
-
let R = {
|
|
838
|
-
YAML: /* @__PURE__ */ e(function(e, t, n) {
|
|
839
|
-
e.version !== null && A(e, "duplication of %YAML directive"), n.length !== 1 && A(e, "YAML directive accepts exactly one argument");
|
|
840
|
-
let r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]);
|
|
841
|
-
r === null && A(e, "ill-formed argument of the YAML directive");
|
|
842
|
-
let i = parseInt(r[1], 10), a = parseInt(r[2], 10);
|
|
843
|
-
i !== 1 && A(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && j(e, "unsupported YAML version of the document");
|
|
844
|
-
}, "handleYamlDirective"),
|
|
845
|
-
TAG: /* @__PURE__ */ e(function(e, t, n) {
|
|
846
|
-
let r;
|
|
847
|
-
n.length !== 2 && A(e, "TAG directive accepts exactly two arguments");
|
|
848
|
-
let i = n[0];
|
|
849
|
-
r = n[1], p.test(i) || A(e, "ill-formed tag handle (first argument) of the TAG directive"), s.call(e.tagMap, i) && A(e, "there is a previously declared suffix for \"" + i + "\" tag handle"), m.test(r) || A(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
850
|
-
try {
|
|
851
|
-
r = decodeURIComponent(r);
|
|
852
|
-
} catch {
|
|
853
|
-
A(e, "tag prefix is malformed: " + r);
|
|
854
|
-
}
|
|
855
|
-
e.tagMap[i] = r;
|
|
856
|
-
}, "handleTagDirective")
|
|
857
|
-
};
|
|
858
|
-
function z(e, t, n, r) {
|
|
859
|
-
if (t < n) {
|
|
860
|
-
let i = e.input.slice(t, n);
|
|
861
|
-
if (r) for (let t = 0, n = i.length; t < n; t += 1) {
|
|
862
|
-
let n = i.charCodeAt(t);
|
|
863
|
-
n === 9 || n >= 32 && n <= 1114111 || A(e, "expected valid JSON character");
|
|
864
|
-
}
|
|
865
|
-
else c.test(i) && A(e, "the stream contains non-printable characters");
|
|
866
|
-
e.result += i;
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
e(z, "captureSegment");
|
|
870
|
-
function B(e, n, r, i) {
|
|
871
|
-
t.isObject(r) || A(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
872
|
-
let a = Object.keys(r);
|
|
873
|
-
for (let t = 0, o = a.length; t < o; t += 1) {
|
|
874
|
-
let o = a[t];
|
|
875
|
-
e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && A(e, "merge keys exceeded maxTotalMergeKeys (" + e.maxTotalMergeKeys + ")"), s.call(n, o) || (T(n, o, r[o]), i[o] = !0);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
e(B, "mergeMappings");
|
|
879
|
-
function V(e, t, n, r, i, a, o, c, l) {
|
|
880
|
-
if (Array.isArray(i)) {
|
|
881
|
-
i = Array.prototype.slice.call(i);
|
|
882
|
-
for (let t = 0, n = i.length; t < n; t += 1) Array.isArray(i[t]) && A(e, "nested arrays are not supported inside keys"), typeof i == "object" && h(i[t]) === "[object Object]" && (i[t] = "[object Object]");
|
|
883
|
-
}
|
|
884
|
-
if (typeof i == "object" && h(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
|
|
885
|
-
if (Array.isArray(a)) for (let r = 0, i = a.length; r < i; r += 1) B(e, t, a[r], n);
|
|
886
|
-
else B(e, t, a, n);
|
|
887
|
-
} else !e.json && !s.call(n, i) && s.call(t, i) && (e.line = o || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, A(e, "duplicated mapping key")), T(t, i, a), delete n[i];
|
|
888
|
-
return t;
|
|
889
|
-
}
|
|
890
|
-
e(V, "storeMappingPair");
|
|
891
|
-
function H(e) {
|
|
892
|
-
let t = e.input.charCodeAt(e.position);
|
|
893
|
-
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : A(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
894
|
-
}
|
|
895
|
-
e(H, "readLineBreak");
|
|
896
|
-
function U(e, t, n) {
|
|
897
|
-
let r = 0, i = e.input.charCodeAt(e.position);
|
|
898
|
-
for (; i !== 0;) {
|
|
899
|
-
for (; _(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
900
|
-
if (t && i === 35) do
|
|
901
|
-
i = e.input.charCodeAt(++e.position);
|
|
902
|
-
while (i !== 10 && i !== 13 && i !== 0);
|
|
903
|
-
if (g(i)) for (H(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
904
|
-
else break;
|
|
905
|
-
}
|
|
906
|
-
return n !== -1 && r !== 0 && e.lineIndent < n && j(e, "deficient indentation"), r;
|
|
907
|
-
}
|
|
908
|
-
e(U, "skipSeparationSpace");
|
|
909
|
-
function W(e) {
|
|
910
|
-
let t = e.position, n = e.input.charCodeAt(t);
|
|
911
|
-
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || v(n)));
|
|
912
|
-
}
|
|
913
|
-
e(W, "testDocumentSeparator");
|
|
914
|
-
function G(e, n) {
|
|
915
|
-
n === 1 ? e.result += " " : n > 1 && (e.result += t.repeat("\n", n - 1));
|
|
916
|
-
}
|
|
917
|
-
e(G, "writeFoldedLines");
|
|
918
|
-
function ee(e, t, n) {
|
|
919
|
-
let r, i, a, o, s, c, l = e.kind, u = e.result, d = e.input.charCodeAt(e.position);
|
|
920
|
-
if (v(d) || y(d) || d === 35 || d === 38 || d === 42 || d === 33 || d === 124 || d === 62 || d === 39 || d === 34 || d === 37 || d === 64 || d === 96) return !1;
|
|
921
|
-
if (d === 63 || d === 45) {
|
|
922
|
-
let t = e.input.charCodeAt(e.position + 1);
|
|
923
|
-
if (v(t) || n && y(t)) return !1;
|
|
924
|
-
}
|
|
925
|
-
for (e.kind = "scalar", e.result = "", r = i = e.position, a = !1; d !== 0;) {
|
|
926
|
-
if (d === 58) {
|
|
927
|
-
let t = e.input.charCodeAt(e.position + 1);
|
|
928
|
-
if (v(t) || n && y(t)) break;
|
|
929
|
-
} else if (d === 35) {
|
|
930
|
-
if (v(e.input.charCodeAt(e.position - 1))) break;
|
|
931
|
-
} else if (e.position === e.lineStart && W(e) || n && y(d)) break;
|
|
932
|
-
else if (g(d)) {
|
|
933
|
-
if (o = e.line, s = e.lineStart, c = e.lineIndent, U(e, !1, -1), e.lineIndent >= t) {
|
|
934
|
-
a = !0, d = e.input.charCodeAt(e.position);
|
|
935
|
-
continue;
|
|
936
|
-
}
|
|
937
|
-
e.position = i, e.line = o, e.lineStart = s, e.lineIndent = c;
|
|
938
|
-
break;
|
|
939
|
-
}
|
|
940
|
-
a &&= (z(e, r, i, !1), G(e, e.line - o), r = i = e.position, !1), _(d) || (i = e.position + 1), d = e.input.charCodeAt(++e.position);
|
|
941
|
-
}
|
|
942
|
-
return z(e, r, i, !1), e.result ? !0 : (e.kind = l, e.result = u, !1);
|
|
943
|
-
}
|
|
944
|
-
e(ee, "readPlainScalar");
|
|
945
|
-
function te(e, t) {
|
|
946
|
-
let n, r, i = e.input.charCodeAt(e.position);
|
|
947
|
-
if (i !== 39) return !1;
|
|
948
|
-
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) {
|
|
949
|
-
if (z(e, n, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) n = e.position, e.position++, r = e.position;
|
|
950
|
-
else return !0;
|
|
951
|
-
} else g(i) ? (z(e, n, r, !0), G(e, U(e, !1, t)), n = r = e.position) : e.position === e.lineStart && W(e) ? A(e, "unexpected end of the document within a single quoted scalar") : (e.position++, _(i) || (r = e.position));
|
|
952
|
-
A(e, "unexpected end of the stream within a single quoted scalar");
|
|
953
|
-
}
|
|
954
|
-
e(te, "readSingleQuotedScalar");
|
|
955
|
-
function K(e, t) {
|
|
956
|
-
let n, r, i, a = e.input.charCodeAt(e.position);
|
|
957
|
-
if (a !== 34) return !1;
|
|
958
|
-
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return z(e, n, e.position, !0), e.position++, !0;
|
|
959
|
-
else if (a === 92) {
|
|
960
|
-
if (z(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), g(a)) U(e, !1, t);
|
|
961
|
-
else if (a < 256 && E[a]) e.result += D[a], e.position++;
|
|
962
|
-
else if ((i = x(a)) > 0) {
|
|
963
|
-
let t = i, n = 0;
|
|
964
|
-
for (; t > 0; t--) a = e.input.charCodeAt(++e.position), (i = b(a)) >= 0 ? n = (n << 4) + i : A(e, "expected hexadecimal character");
|
|
965
|
-
e.result += w(n), e.position++;
|
|
966
|
-
} else A(e, "unknown escape sequence");
|
|
967
|
-
n = r = e.position;
|
|
968
|
-
} else g(a) ? (z(e, n, r, !0), G(e, U(e, !1, t)), n = r = e.position) : e.position === e.lineStart && W(e) ? A(e, "unexpected end of the document within a double quoted scalar") : (e.position++, _(a) || (r = e.position));
|
|
969
|
-
A(e, "unexpected end of the stream within a double quoted scalar");
|
|
970
|
-
}
|
|
971
|
-
e(K, "readDoubleQuotedScalar");
|
|
972
|
-
function q(e, t) {
|
|
973
|
-
let n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p = /* @__PURE__ */ Object.create(null), m, h, g, _ = e.input.charCodeAt(e.position);
|
|
974
|
-
if (_ === 91) l = 93, f = !1, s = [];
|
|
975
|
-
else if (_ === 123) l = 125, f = !0, s = {};
|
|
976
|
-
else return !1;
|
|
977
|
-
for (e.anchor !== null && M(e, e.anchor, s), _ = e.input.charCodeAt(++e.position); _ !== 0;) {
|
|
978
|
-
if (U(e, !0, t), _ = e.input.charCodeAt(e.position), _ === l) return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
979
|
-
n ? _ === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), h = m = g = null, u = d = !1, _ === 63 && v(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++, U(e, !0, t)), r = e.line, i = e.lineStart, a = e.position, Q(e, t, 1, !1, !0), h = e.tag, m = e.result, U(e, !0, t), _ = e.input.charCodeAt(e.position), (d || e.line === r) && _ === 58 && (u = !0, _ = e.input.charCodeAt(++e.position), U(e, !0, t), Q(e, t, 1, !1, !0), g = e.result), f ? V(e, s, p, h, m, g, r, i, a) : u ? s.push(V(e, null, p, h, m, g, r, i, a)) : s.push(m), U(e, !0, t), _ = e.input.charCodeAt(e.position), _ === 44 ? (n = !0, _ = e.input.charCodeAt(++e.position)) : n = !1;
|
|
980
|
-
}
|
|
981
|
-
A(e, "unexpected end of the stream within a flow collection");
|
|
982
|
-
}
|
|
983
|
-
e(q, "readFlowCollection");
|
|
984
|
-
function ne(e, n) {
|
|
985
|
-
let r, i = 1, a = !1, o = !1, s = n, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
|
|
986
|
-
if (d === 124) r = !1;
|
|
987
|
-
else if (d === 62) r = !0;
|
|
988
|
-
else return !1;
|
|
989
|
-
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) i === 1 ? i = d === 43 ? 3 : 2 : A(e, "repeat of a chomping mode identifier");
|
|
990
|
-
else if ((u = S(d)) >= 0) u === 0 ? A(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? A(e, "repeat of an indentation width identifier") : (s = n + u - 1, o = !0);
|
|
991
|
-
else break;
|
|
992
|
-
if (_(d)) {
|
|
993
|
-
do
|
|
994
|
-
d = e.input.charCodeAt(++e.position);
|
|
995
|
-
while (_(d));
|
|
996
|
-
if (d === 35) do
|
|
997
|
-
d = e.input.charCodeAt(++e.position);
|
|
998
|
-
while (!g(d) && d !== 0);
|
|
999
|
-
}
|
|
1000
|
-
for (; d !== 0;) {
|
|
1001
|
-
for (H(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
|
|
1002
|
-
if (!o && e.lineIndent > s && (s = e.lineIndent), g(d)) {
|
|
1003
|
-
c++;
|
|
1004
|
-
continue;
|
|
1005
|
-
}
|
|
1006
|
-
if (!o && s === 0 && A(e, "missing indentation for block scalar"), e.lineIndent < s) {
|
|
1007
|
-
i === 3 ? e.result += t.repeat("\n", a ? 1 + c : c) : i === 1 && a && (e.result += "\n");
|
|
1008
|
-
break;
|
|
1009
|
-
}
|
|
1010
|
-
r ? _(d) ? (l = !0, e.result += t.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += t.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += t.repeat("\n", c) : e.result += t.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0;
|
|
1011
|
-
let n = e.position;
|
|
1012
|
-
for (; !g(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
|
|
1013
|
-
z(e, n, e.position, !1);
|
|
1014
|
-
}
|
|
1015
|
-
return !0;
|
|
1016
|
-
}
|
|
1017
|
-
e(ne, "readBlockScalar");
|
|
1018
|
-
function J(e, t) {
|
|
1019
|
-
let n = e.tag, r = e.anchor, i = [], a = !1;
|
|
1020
|
-
if (e.firstTabInLine !== -1) return !1;
|
|
1021
|
-
e.anchor !== null && M(e, e.anchor, i);
|
|
1022
|
-
let o = e.input.charCodeAt(e.position);
|
|
1023
|
-
for (; o !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), !(o !== 45 || !v(e.input.charCodeAt(e.position + 1))));) {
|
|
1024
|
-
if (a = !0, e.position++, U(e, !0, -1) && e.lineIndent <= t) {
|
|
1025
|
-
i.push(null), o = e.input.charCodeAt(e.position);
|
|
1026
|
-
continue;
|
|
1027
|
-
}
|
|
1028
|
-
let n = e.line;
|
|
1029
|
-
if (Q(e, t, 3, !1, !0), i.push(e.result), U(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && o !== 0) A(e, "bad indentation of a sequence entry");
|
|
1030
|
-
else if (e.lineIndent < t) break;
|
|
1031
|
-
}
|
|
1032
|
-
return a ? (e.tag = n, e.anchor = r, e.kind = "sequence", e.result = i, !0) : !1;
|
|
1033
|
-
}
|
|
1034
|
-
e(J, "readBlockSequence");
|
|
1035
|
-
function Y(e, t, n) {
|
|
1036
|
-
let r, i, a, o, s = e.tag, c = e.anchor, l = {}, u = /* @__PURE__ */ Object.create(null), d = null, f = null, p = null, m = !1, h = !1;
|
|
1037
|
-
if (e.firstTabInLine !== -1) return !1;
|
|
1038
|
-
e.anchor !== null && M(e, e.anchor, l);
|
|
1039
|
-
let g = e.input.charCodeAt(e.position);
|
|
1040
|
-
for (; g !== 0;) {
|
|
1041
|
-
!m && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation"));
|
|
1042
|
-
let y = e.input.charCodeAt(e.position + 1), b = e.line;
|
|
1043
|
-
if ((g === 63 || g === 58) && v(y)) g === 63 ? (m && (V(e, l, u, d, f, null, i, a, o), d = f = p = null), h = !0, m = !0, r = !0) : m ? (m = !1, r = !0) : A(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, g = y;
|
|
1044
|
-
else {
|
|
1045
|
-
if (i = e.line, a = e.lineStart, o = e.position, !Q(e, n, 2, !1, !0)) break;
|
|
1046
|
-
if (e.line === b) {
|
|
1047
|
-
for (g = e.input.charCodeAt(e.position); _(g);) g = e.input.charCodeAt(++e.position);
|
|
1048
|
-
if (g === 58) g = e.input.charCodeAt(++e.position), v(g) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), m && (V(e, l, u, d, f, null, i, a, o), d = f = p = null), h = !0, m = !1, r = !1, d = e.tag, f = e.result;
|
|
1049
|
-
else if (h) A(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1050
|
-
else return e.tag = s, e.anchor = c, !0;
|
|
1051
|
-
} else if (h) A(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1052
|
-
else return e.tag = s, e.anchor = c, !0;
|
|
1053
|
-
}
|
|
1054
|
-
if ((e.line === b || e.lineIndent > t) && (m && (i = e.line, a = e.lineStart, o = e.position), Q(e, t, 4, !0, r) && (m ? f = e.result : p = e.result), m || (V(e, l, u, d, f, p, i, a, o), d = f = p = null), U(e, !0, -1), g = e.input.charCodeAt(e.position)), (e.line === b || e.lineIndent > t) && g !== 0) A(e, "bad indentation of a mapping entry");
|
|
1055
|
-
else if (e.lineIndent < t) break;
|
|
1056
|
-
}
|
|
1057
|
-
return m && V(e, l, u, d, f, null, i, a, o), h && (e.tag = s, e.anchor = c, e.kind = "mapping", e.result = l), h;
|
|
1058
|
-
}
|
|
1059
|
-
e(Y, "readBlockMapping");
|
|
1060
|
-
function re(e) {
|
|
1061
|
-
let t = !1, n = !1, r, i, a = e.input.charCodeAt(e.position);
|
|
1062
|
-
if (a !== 33) return !1;
|
|
1063
|
-
e.tag !== null && A(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (t = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (n = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!";
|
|
1064
|
-
let o = e.position;
|
|
1065
|
-
if (t) {
|
|
1066
|
-
do
|
|
1067
|
-
a = e.input.charCodeAt(++e.position);
|
|
1068
|
-
while (a !== 0 && a !== 62);
|
|
1069
|
-
e.position < e.length ? (i = e.input.slice(o, e.position), a = e.input.charCodeAt(++e.position)) : A(e, "unexpected end of the stream within a verbatim tag");
|
|
1070
|
-
} else {
|
|
1071
|
-
for (; a !== 0 && !v(a);) a === 33 && (n ? A(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(o - 1, e.position + 1), p.test(r) || A(e, "named tag handle cannot contain such characters"), n = !0, o = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1072
|
-
i = e.input.slice(o, e.position), d.test(i) && A(e, "tag suffix cannot contain flow indicator characters");
|
|
1073
|
-
}
|
|
1074
|
-
i && !m.test(i) && A(e, "tag name cannot contain such characters: " + i);
|
|
1075
|
-
try {
|
|
1076
|
-
i = decodeURIComponent(i);
|
|
1077
|
-
} catch {
|
|
1078
|
-
A(e, "tag name is malformed: " + i);
|
|
1079
|
-
}
|
|
1080
|
-
return t ? e.tag = i : s.call(e.tagMap, r) ? e.tag = e.tagMap[r] + i : r === "!" ? e.tag = "!" + i : r === "!!" ? e.tag = "tag:yaml.org,2002:" + i : A(e, "undeclared tag handle \"" + r + "\""), !0;
|
|
1081
|
-
}
|
|
1082
|
-
e(re, "readTagProperty");
|
|
1083
|
-
function X(e) {
|
|
1084
|
-
let t = e.input.charCodeAt(e.position);
|
|
1085
|
-
if (t !== 38) return !1;
|
|
1086
|
-
e.anchor !== null && A(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position);
|
|
1087
|
-
let n = e.position;
|
|
1088
|
-
for (; t !== 0 && !v(t) && !y(t);) t = e.input.charCodeAt(++e.position);
|
|
1089
|
-
return e.position === n && A(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
1090
|
-
}
|
|
1091
|
-
e(X, "readAnchorProperty");
|
|
1092
|
-
function Z(e) {
|
|
1093
|
-
let t = e.input.charCodeAt(e.position);
|
|
1094
|
-
if (t !== 42) return !1;
|
|
1095
|
-
t = e.input.charCodeAt(++e.position);
|
|
1096
|
-
let n = e.position;
|
|
1097
|
-
for (; t !== 0 && !v(t) && !y(t);) t = e.input.charCodeAt(++e.position);
|
|
1098
|
-
e.position === n && A(e, "name of an alias node must contain at least one character");
|
|
1099
|
-
let r = e.input.slice(n, e.position);
|
|
1100
|
-
return s.call(e.anchorMap, r) || A(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r], U(e, !0, -1), !0;
|
|
1101
|
-
}
|
|
1102
|
-
e(Z, "readAlias");
|
|
1103
|
-
function ie(e, t, n, r) {
|
|
1104
|
-
let i = I(e);
|
|
1105
|
-
return N(e), L(e, t), e.tag = null, e.anchor = null, e.kind = null, e.result = null, Y(e, n, r) && e.kind === "mapping" ? (P(e), !0) : (F(e), L(e, i), !1);
|
|
1106
|
-
}
|
|
1107
|
-
e(ie, "tryReadBlockMappingFromProperty");
|
|
1108
|
-
function Q(e, t, n, r, i) {
|
|
1109
|
-
let a, o, c = 1, l = !1, u = !1, d = null, f, p, m;
|
|
1110
|
-
e.depth >= e.maxDepth && A(e, "nesting exceeded maxDepth (" + e.maxDepth + ")"), e.depth += 1, e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null;
|
|
1111
|
-
let h = a = o = n === 4 || n === 3;
|
|
1112
|
-
if (r && U(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (;;) {
|
|
1113
|
-
let n = e.input.charCodeAt(e.position), r = I(e);
|
|
1114
|
-
if (l && (n === 33 && e.tag !== null || n === 38 && e.anchor !== null) || !re(e) && !X(e)) break;
|
|
1115
|
-
d === null && (d = r), U(e, !0, -1) ? (l = !0, o = h, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : o = !1;
|
|
1116
|
-
}
|
|
1117
|
-
if (o &&= l || i, c === 1 || n === 4) {
|
|
1118
|
-
if (p = n === 1 || n === 2 ? t : t + 1, m = e.position - e.lineStart, c === 1) {
|
|
1119
|
-
if (o && (J(e, m) || Y(e, m, p)) || q(e, p)) u = !0;
|
|
1120
|
-
else {
|
|
1121
|
-
let t = e.input.charCodeAt(e.position);
|
|
1122
|
-
d !== null && h && !o && t !== 124 && t !== 62 && ie(e, d, d.position - d.lineStart, p) || a && ne(e, p) || te(e, p) || K(e, p) ? u = !0 : Z(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && A(e, "alias node should not have any properties")) : ee(e, p, n === 1) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && M(e, e.anchor, e.result);
|
|
1123
|
-
}
|
|
1124
|
-
} else c === 0 && (u = o && J(e, m));
|
|
1125
|
-
}
|
|
1126
|
-
if (e.tag === null) e.anchor !== null && M(e, e.anchor, e.result);
|
|
1127
|
-
else if (e.tag === "?") {
|
|
1128
|
-
e.result !== null && e.kind !== "scalar" && A(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\"");
|
|
1129
|
-
for (let t = 0, n = e.implicitTypes.length; t < n; t += 1) if (f = e.implicitTypes[t], f.resolve(e.result)) {
|
|
1130
|
-
e.result = f.construct(e.result), e.tag = f.tag, e.anchor !== null && M(e, e.anchor, e.result);
|
|
1131
|
-
break;
|
|
1132
|
-
}
|
|
1133
|
-
} else if (e.tag !== "!") {
|
|
1134
|
-
if (s.call(e.typeMap[e.kind || "fallback"], e.tag)) f = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1135
|
-
else {
|
|
1136
|
-
f = null;
|
|
1137
|
-
let t = e.typeMap.multi[e.kind || "fallback"];
|
|
1138
|
-
for (let n = 0, r = t.length; n < r; n += 1) if (e.tag.slice(0, t[n].tag.length) === t[n].tag) {
|
|
1139
|
-
f = t[n];
|
|
1140
|
-
break;
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
f || A(e, "unknown tag !<" + e.tag + ">"), e.result !== null && f.kind !== e.kind && A(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + f.kind + "\", not \"" + e.kind + "\""), f.resolve(e.result, e.tag) ? (e.result = f.construct(e.result, e.tag), e.anchor !== null && M(e, e.anchor, e.result)) : A(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1144
|
-
}
|
|
1145
|
-
return e.listener !== null && e.listener("close", e), --e.depth, e.tag !== null || e.anchor !== null || u;
|
|
1146
|
-
}
|
|
1147
|
-
e(Q, "composeNode");
|
|
1148
|
-
function $(e) {
|
|
1149
|
-
let t = e.position, n = !1, r;
|
|
1150
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (U(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37));) {
|
|
1151
|
-
n = !0, r = e.input.charCodeAt(++e.position);
|
|
1152
|
-
let t = e.position;
|
|
1153
|
-
for (; r !== 0 && !v(r);) r = e.input.charCodeAt(++e.position);
|
|
1154
|
-
let i = e.input.slice(t, e.position), a = [];
|
|
1155
|
-
for (i.length < 1 && A(e, "directive name must not be less than one character in length"); r !== 0;) {
|
|
1156
|
-
for (; _(r);) r = e.input.charCodeAt(++e.position);
|
|
1157
|
-
if (r === 35) {
|
|
1158
|
-
do
|
|
1159
|
-
r = e.input.charCodeAt(++e.position);
|
|
1160
|
-
while (r !== 0 && !g(r));
|
|
1161
|
-
break;
|
|
1162
|
-
}
|
|
1163
|
-
if (g(r)) break;
|
|
1164
|
-
for (t = e.position; r !== 0 && !v(r);) r = e.input.charCodeAt(++e.position);
|
|
1165
|
-
a.push(e.input.slice(t, e.position));
|
|
1166
|
-
}
|
|
1167
|
-
r !== 0 && H(e), s.call(R, i) ? R[i](e, i, a) : j(e, "unknown document directive \"" + i + "\"");
|
|
1168
|
-
}
|
|
1169
|
-
if (U(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, U(e, !0, -1)) : n && A(e, "directives end mark is expected"), Q(e, e.lineIndent - 1, 4, !1, !0), U(e, !0, -1), e.checkLineBreaks && u.test(e.input.slice(t, e.position)) && j(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && W(e)) {
|
|
1170
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3, U(e, !0, -1));
|
|
1171
|
-
return;
|
|
1172
|
-
}
|
|
1173
|
-
e.position < e.length - 1 && A(e, "end of the stream or a document separator is expected");
|
|
1174
|
-
}
|
|
1175
|
-
e($, "readDocument");
|
|
1176
|
-
function ae(e, t) {
|
|
1177
|
-
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1178
|
-
let n = new O(e, t), r = e.indexOf("\0");
|
|
1179
|
-
for (r !== -1 && (n.position = r, A(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
1180
|
-
for (; n.position < n.length - 1;) $(n);
|
|
1181
|
-
return n.documents;
|
|
1182
|
-
}
|
|
1183
|
-
e(ae, "loadDocuments");
|
|
1184
|
-
function oe(e, t, n) {
|
|
1185
|
-
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
1186
|
-
let r = ae(e, n);
|
|
1187
|
-
if (typeof t != "function") return r;
|
|
1188
|
-
for (let e = 0, n = r.length; e < n; e += 1) t(r[e]);
|
|
1189
|
-
}
|
|
1190
|
-
e(oe, "loadAll2");
|
|
1191
|
-
function se(e, t) {
|
|
1192
|
-
let r = ae(e, t);
|
|
1193
|
-
if (r.length !== 0) {
|
|
1194
|
-
if (r.length === 1) return r[0];
|
|
1195
|
-
throw new n("expected a single document in the stream, but found more");
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
return e(se, "load2"), r.loadAll = oe, r.load = se, r;
|
|
1199
|
-
}
|
|
1200
|
-
e(_e, "requireLoader");
|
|
1201
|
-
var ve = {}, ye;
|
|
1202
|
-
function be() {
|
|
1203
|
-
if (ye) return ve;
|
|
1204
|
-
ye = 1;
|
|
1205
|
-
let t = o(), n = l(), r = he(), i = Object.prototype.toString, a = Object.prototype.hasOwnProperty, s = 65279, c = {};
|
|
1206
|
-
c[0] = "\\0", c[7] = "\\a", c[8] = "\\b", c[9] = "\\t", c[10] = "\\n", c[11] = "\\v", c[12] = "\\f", c[13] = "\\r", c[27] = "\\e", c[34] = "\\\"", c[92] = "\\\\", c[133] = "\\N", c[160] = "\\_", c[8232] = "\\L", c[8233] = "\\P";
|
|
1207
|
-
let u = [
|
|
1208
|
-
"y",
|
|
1209
|
-
"Y",
|
|
1210
|
-
"yes",
|
|
1211
|
-
"Yes",
|
|
1212
|
-
"YES",
|
|
1213
|
-
"on",
|
|
1214
|
-
"On",
|
|
1215
|
-
"ON",
|
|
1216
|
-
"n",
|
|
1217
|
-
"N",
|
|
1218
|
-
"no",
|
|
1219
|
-
"No",
|
|
1220
|
-
"NO",
|
|
1221
|
-
"off",
|
|
1222
|
-
"Off",
|
|
1223
|
-
"OFF"
|
|
1224
|
-
], d = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1225
|
-
function f(e, t) {
|
|
1226
|
-
if (t === null) return {};
|
|
1227
|
-
let n = {}, r = Object.keys(t);
|
|
1228
|
-
for (let i = 0, o = r.length; i < o; i += 1) {
|
|
1229
|
-
let o = r[i], s = String(t[o]);
|
|
1230
|
-
o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2));
|
|
1231
|
-
let c = e.compiledTypeMap.fallback[o];
|
|
1232
|
-
c && a.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
1233
|
-
}
|
|
1234
|
-
return n;
|
|
1235
|
-
}
|
|
1236
|
-
e(f, "compileStyleMap");
|
|
1237
|
-
function p(e) {
|
|
1238
|
-
let r, i, a = e.toString(16).toUpperCase();
|
|
1239
|
-
if (e <= 255) r = "x", i = 2;
|
|
1240
|
-
else if (e <= 65535) r = "u", i = 4;
|
|
1241
|
-
else if (e <= 4294967295) r = "U", i = 8;
|
|
1242
|
-
else throw new n("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1243
|
-
return "\\" + r + t.repeat("0", i - a.length) + a;
|
|
1244
|
-
}
|
|
1245
|
-
e(p, "encodeHex");
|
|
1246
|
-
function m(e) {
|
|
1247
|
-
this.schema = e.schema || r, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = t.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = f(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? 2 : 1, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
1248
|
-
}
|
|
1249
|
-
e(m, "State");
|
|
1250
|
-
function h(e, n) {
|
|
1251
|
-
let r = t.repeat(" ", n), i = 0, a = "", o = e.length;
|
|
1252
|
-
for (; i < o;) {
|
|
1253
|
-
let t, n = e.indexOf("\n", i);
|
|
1254
|
-
n === -1 ? (t = e.slice(i), i = o) : (t = e.slice(i, n + 1), i = n + 1), t.length && t !== "\n" && (a += r), a += t;
|
|
1255
|
-
}
|
|
1256
|
-
return a;
|
|
1257
|
-
}
|
|
1258
|
-
e(h, "indentString");
|
|
1259
|
-
function g(e, n) {
|
|
1260
|
-
return "\n" + t.repeat(" ", e.indent * n);
|
|
1261
|
-
}
|
|
1262
|
-
e(g, "generateNextLine");
|
|
1263
|
-
function _(e, t) {
|
|
1264
|
-
for (let n = 0, r = e.implicitTypes.length; n < r; n += 1) if (e.implicitTypes[n].resolve(t)) return !0;
|
|
1265
|
-
return !1;
|
|
1266
|
-
}
|
|
1267
|
-
e(_, "testImplicitResolving");
|
|
1268
|
-
function v(e) {
|
|
1269
|
-
return e === 32 || e === 9;
|
|
1270
|
-
}
|
|
1271
|
-
e(v, "isWhitespace");
|
|
1272
|
-
function y(e) {
|
|
1273
|
-
return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !== s || e >= 65536 && e <= 1114111;
|
|
1274
|
-
}
|
|
1275
|
-
e(y, "isPrintable");
|
|
1276
|
-
function b(e) {
|
|
1277
|
-
return y(e) && e !== s && e !== 13 && e !== 10;
|
|
1278
|
-
}
|
|
1279
|
-
e(b, "isNsCharOrWhitespace");
|
|
1280
|
-
function x(e, t, n) {
|
|
1281
|
-
let r = b(e), i = r && !v(e);
|
|
1282
|
-
return (n ? r : r && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125) && e !== 35 && !(t === 58 && !i) || b(t) && !v(t) && e === 35 || t === 58 && i;
|
|
1283
|
-
}
|
|
1284
|
-
e(x, "isPlainSafe");
|
|
1285
|
-
function S(e) {
|
|
1286
|
-
return y(e) && e !== s && !v(e) && e !== 45 && e !== 63 && e !== 58 && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125 && e !== 35 && e !== 38 && e !== 42 && e !== 33 && e !== 124 && e !== 61 && e !== 62 && e !== 39 && e !== 34 && e !== 37 && e !== 64 && e !== 96;
|
|
1287
|
-
}
|
|
1288
|
-
e(S, "isPlainSafeFirst");
|
|
1289
|
-
function C(e) {
|
|
1290
|
-
return !v(e) && e !== 58;
|
|
1291
|
-
}
|
|
1292
|
-
e(C, "isPlainSafeLast");
|
|
1293
|
-
function w(e, t) {
|
|
1294
|
-
let n = e.charCodeAt(t), r;
|
|
1295
|
-
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
1296
|
-
}
|
|
1297
|
-
e(w, "codePointAt");
|
|
1298
|
-
function T(e) {
|
|
1299
|
-
return /^\n* /.test(e);
|
|
1300
|
-
}
|
|
1301
|
-
e(T, "needIndentIndicator");
|
|
1302
|
-
function E(e, t, n, r, i, a, o, s) {
|
|
1303
|
-
let c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = S(w(e, 0)) && C(w(e, e.length - 1));
|
|
1304
|
-
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
1305
|
-
if (l = w(e, c), !y(l)) return 5;
|
|
1306
|
-
h &&= x(l, u, s), u = l;
|
|
1307
|
-
}
|
|
1308
|
-
else {
|
|
1309
|
-
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
1310
|
-
if (l = w(e, c), l === 10) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
|
|
1311
|
-
else if (!y(l)) return 5;
|
|
1312
|
-
h &&= x(l, u, s), u = l;
|
|
1313
|
-
}
|
|
1314
|
-
f ||= p && c - m - 1 > r && e[m + 1] !== " ";
|
|
1315
|
-
}
|
|
1316
|
-
return !d && !f ? h && !o && !i(e) ? 1 : a === 2 ? 5 : 2 : n > 9 && T(e) ? 5 : o ? a === 2 ? 5 : 2 : f ? 4 : 3;
|
|
1317
|
-
}
|
|
1318
|
-
e(E, "chooseScalarStyle");
|
|
1319
|
-
function D(t, r, i, a, o) {
|
|
1320
|
-
t.dump = (function() {
|
|
1321
|
-
if (r.length === 0) return t.quotingType === 2 ? "\"\"" : "''";
|
|
1322
|
-
if (!t.noCompatMode && (u.indexOf(r) !== -1 || d.test(r))) return t.quotingType === 2 ? "\"" + r + "\"" : "'" + r + "'";
|
|
1323
|
-
let s = t.indent * Math.max(1, i), c = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), l = a || t.flowLevel > -1 && i >= t.flowLevel;
|
|
1324
|
-
function f(e) {
|
|
1325
|
-
return _(t, e);
|
|
1326
|
-
}
|
|
1327
|
-
switch (e(f, "testAmbiguity"), E(r, l, t.indent, c, f, t.quotingType, t.forceQuotes && !a, o)) {
|
|
1328
|
-
case 1: return r;
|
|
1329
|
-
case 2: return "'" + r.replace(/'/g, "''") + "'";
|
|
1330
|
-
case 3: return "|" + O(r, t.indent) + k(h(r, s));
|
|
1331
|
-
case 4: return ">" + O(r, t.indent) + k(h(A(r, c), s));
|
|
1332
|
-
case 5: return "\"" + M(r) + "\"";
|
|
1333
|
-
default: throw new n("impossible error: invalid scalar style");
|
|
1334
|
-
}
|
|
1335
|
-
})();
|
|
1336
|
-
}
|
|
1337
|
-
e(D, "writeScalar");
|
|
1338
|
-
function O(e, t) {
|
|
1339
|
-
let n = T(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
1340
|
-
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
1341
|
-
}
|
|
1342
|
-
e(O, "blockHeader");
|
|
1343
|
-
function k(e) {
|
|
1344
|
-
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
1345
|
-
}
|
|
1346
|
-
e(k, "dropEndingNewline");
|
|
1347
|
-
function A(e, t) {
|
|
1348
|
-
let n = /(\n+)([^\n]*)/g, r = (function() {
|
|
1349
|
-
let r = e.indexOf("\n");
|
|
1350
|
-
return r = r === -1 ? e.length : r, n.lastIndex = r, j(e.slice(0, r), t);
|
|
1351
|
-
})(), i = e[0] === "\n" || e[0] === " ", a, o;
|
|
1352
|
-
for (; o = n.exec(e);) {
|
|
1353
|
-
let e = o[1], n = o[2];
|
|
1354
|
-
a = n[0] === " ", r += e + (!i && !a && n !== "" ? "\n" : "") + j(n, t), i = a;
|
|
1355
|
-
}
|
|
1356
|
-
return r;
|
|
1357
|
-
}
|
|
1358
|
-
e(A, "foldString");
|
|
1359
|
-
function j(e, t) {
|
|
1360
|
-
if (e === "" || e[0] === " ") return e;
|
|
1361
|
-
let n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = "";
|
|
1362
|
-
for (; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
|
|
1363
|
-
return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
|
|
1364
|
-
}
|
|
1365
|
-
e(j, "foldLine");
|
|
1366
|
-
function M(e) {
|
|
1367
|
-
let t = "", n = 0;
|
|
1368
|
-
for (let r = 0; r < e.length; n >= 65536 ? r += 2 : r++) {
|
|
1369
|
-
n = w(e, r);
|
|
1370
|
-
let i = c[n];
|
|
1371
|
-
!i && y(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || p(n);
|
|
1372
|
-
}
|
|
1373
|
-
return t;
|
|
1374
|
-
}
|
|
1375
|
-
e(M, "escapeString");
|
|
1376
|
-
function N(e, t, n) {
|
|
1377
|
-
let r = "", i = e.tag;
|
|
1378
|
-
for (let i = 0, a = n.length; i < a; i += 1) {
|
|
1379
|
-
let a = n[i];
|
|
1380
|
-
e.replacer && (a = e.replacer.call(n, String(i), a)), (R(e, t, a, !1, !1) || a === void 0 && R(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
1381
|
-
}
|
|
1382
|
-
e.tag = i, e.dump = "[" + r + "]";
|
|
1383
|
-
}
|
|
1384
|
-
e(N, "writeFlowSequence");
|
|
1385
|
-
function P(e, t, n, r) {
|
|
1386
|
-
let i = "", a = e.tag;
|
|
1387
|
-
for (let a = 0, o = n.length; a < o; a += 1) {
|
|
1388
|
-
let o = n[a];
|
|
1389
|
-
e.replacer && (o = e.replacer.call(n, String(a), o)), (R(e, t + 1, o, !0, !0, !1, !0) || o === void 0 && R(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += g(e, t)), e.dump && e.dump.charCodeAt(0) === 10 ? i += "-" : i += "- ", i += e.dump);
|
|
1390
|
-
}
|
|
1391
|
-
e.tag = a, e.dump = i || "[]";
|
|
1392
|
-
}
|
|
1393
|
-
e(P, "writeBlockSequence");
|
|
1394
|
-
function F(e, t, n) {
|
|
1395
|
-
let r = "", i = e.tag, a = Object.keys(n);
|
|
1396
|
-
for (let i = 0, o = a.length; i < o; i += 1) {
|
|
1397
|
-
let o = "";
|
|
1398
|
-
r !== "" && (o += ", "), e.condenseFlow && (o += "\"");
|
|
1399
|
-
let s = a[i], c = n[s];
|
|
1400
|
-
e.replacer && (c = e.replacer.call(n, s, c)), R(e, t, s, !1, !1) && (e.dump.length > 1024 && (o += "? "), o += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), R(e, t, c, !1, !1) && (o += e.dump, r += o));
|
|
1401
|
-
}
|
|
1402
|
-
e.tag = i, e.dump = "{" + r + "}";
|
|
1403
|
-
}
|
|
1404
|
-
e(F, "writeFlowMapping");
|
|
1405
|
-
function I(e, t, r, i) {
|
|
1406
|
-
let a = "", o = e.tag, s = Object.keys(r);
|
|
1407
|
-
if (e.sortKeys === !0) s.sort();
|
|
1408
|
-
else if (typeof e.sortKeys == "function") s.sort(e.sortKeys);
|
|
1409
|
-
else if (e.sortKeys) throw new n("sortKeys must be a boolean or a function");
|
|
1410
|
-
for (let n = 0, o = s.length; n < o; n += 1) {
|
|
1411
|
-
let o = "";
|
|
1412
|
-
(!i || a !== "") && (o += g(e, t));
|
|
1413
|
-
let c = s[n], l = r[c];
|
|
1414
|
-
if (e.replacer && (l = e.replacer.call(r, c, l)), !R(e, t + 1, c, !0, !0, !0)) continue;
|
|
1415
|
-
let u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024;
|
|
1416
|
-
u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += g(e, t)), R(e, t + 1, l, !0, u) && (e.dump && e.dump.charCodeAt(0) === 10 ? o += ":" : o += ": ", o += e.dump, a += o);
|
|
1417
|
-
}
|
|
1418
|
-
e.tag = o, e.dump = a || "{}";
|
|
1419
|
-
}
|
|
1420
|
-
e(I, "writeBlockMapping");
|
|
1421
|
-
function L(e, t, r) {
|
|
1422
|
-
let o = r ? e.explicitTypes : e.implicitTypes;
|
|
1423
|
-
for (let s = 0, c = o.length; s < c; s += 1) {
|
|
1424
|
-
let c = o[s];
|
|
1425
|
-
if ((c.instanceOf || c.predicate) && (!c.instanceOf || typeof t == "object" && t instanceof c.instanceOf) && (!c.predicate || c.predicate(t))) {
|
|
1426
|
-
if (e.tag = r ? c.multi && c.representName ? c.representName(t) : c.tag : "?", c.represent) {
|
|
1427
|
-
let r = e.styleMap[c.tag] || c.defaultStyle, o;
|
|
1428
|
-
if (i.call(c.represent) === "[object Function]") o = c.represent(t, r);
|
|
1429
|
-
else if (a.call(c.represent, r)) o = c.represent[r](t, r);
|
|
1430
|
-
else throw new n("!<" + c.tag + "> tag resolver accepts not \"" + r + "\" style");
|
|
1431
|
-
e.dump = o;
|
|
1432
|
-
}
|
|
1433
|
-
return !0;
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
return !1;
|
|
1437
|
-
}
|
|
1438
|
-
e(L, "detectType");
|
|
1439
|
-
function R(e, t, r, a, o, s, c) {
|
|
1440
|
-
e.tag = null, e.dump = r, L(e, r, !1) || L(e, r, !0);
|
|
1441
|
-
let l = i.call(e.dump), u = a;
|
|
1442
|
-
a &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
1443
|
-
let d = l === "[object Object]" || l === "[object Array]", f, p;
|
|
1444
|
-
if (d && (f = e.duplicates.indexOf(r), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (o = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
|
|
1445
|
-
else {
|
|
1446
|
-
if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (I(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (F(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1447
|
-
else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && t > 0 ? P(e, t - 1, e.dump, o) : P(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (N(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1448
|
-
else if (l === "[object String]") e.tag !== "?" && D(e, e.dump, t, s, u);
|
|
1449
|
-
else if (l === "[object Undefined]") return !1;
|
|
1450
|
-
else {
|
|
1451
|
-
if (e.skipInvalid) return !1;
|
|
1452
|
-
throw new n("unacceptable kind of an object to dump " + l);
|
|
1453
|
-
}
|
|
1454
|
-
if (e.tag !== null && e.tag !== "?") {
|
|
1455
|
-
let t = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21");
|
|
1456
|
-
t = e.tag[0] === "!" ? "!" + t : t.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + t.slice(18) : "!<" + t + ">", e.dump = t + " " + e.dump;
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
return !0;
|
|
1460
|
-
}
|
|
1461
|
-
e(R, "writeNode");
|
|
1462
|
-
function z(e, t) {
|
|
1463
|
-
let n = [], r = [];
|
|
1464
|
-
B(e, n, r);
|
|
1465
|
-
let i = r.length;
|
|
1466
|
-
for (let e = 0; e < i; e += 1) t.duplicates.push(n[r[e]]);
|
|
1467
|
-
t.usedDuplicates = Array(i);
|
|
1468
|
-
}
|
|
1469
|
-
e(z, "getDuplicateReferences");
|
|
1470
|
-
function B(e, t, n) {
|
|
1471
|
-
if (typeof e == "object" && e) {
|
|
1472
|
-
let r = t.indexOf(e);
|
|
1473
|
-
if (r !== -1) n.indexOf(r) === -1 && n.push(r);
|
|
1474
|
-
else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1) B(e[r], t, n);
|
|
1475
|
-
else {
|
|
1476
|
-
let r = Object.keys(e);
|
|
1477
|
-
for (let i = 0, a = r.length; i < a; i += 1) B(e[r[i]], t, n);
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
e(B, "inspectNode");
|
|
1482
|
-
function V(e, t) {
|
|
1483
|
-
t ||= {};
|
|
1484
|
-
let n = new m(t);
|
|
1485
|
-
n.noRefs || z(e, n);
|
|
1486
|
-
let r = e;
|
|
1487
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), R(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
1488
|
-
}
|
|
1489
|
-
return e(V, "dump2"), ve.dump = V, ve;
|
|
1490
|
-
}
|
|
1491
|
-
e(be, "requireDumper");
|
|
1492
|
-
var xe;
|
|
1493
|
-
function Se() {
|
|
1494
|
-
if (xe) return n;
|
|
1495
|
-
xe = 1;
|
|
1496
|
-
let t = _e(), r = be();
|
|
1497
|
-
function i(e, t) {
|
|
1498
|
-
return function() {
|
|
1499
|
-
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
1500
|
-
};
|
|
1501
|
-
}
|
|
1502
|
-
return e(i, "renamed"), n.Type = h(), n.Schema = v(), n.FAILSAFE_SCHEMA = A(), n.JSON_SCHEMA = G(), n.CORE_SCHEMA = K(), n.DEFAULT_SCHEMA = he(), n.load = t.load, n.loadAll = t.loadAll, n.dump = r.dump, n.YAMLException = l(), n.types = {
|
|
1503
|
-
binary: Q(),
|
|
1504
|
-
float: H(),
|
|
1505
|
-
map: D(),
|
|
1506
|
-
null: N(),
|
|
1507
|
-
pairs: le(),
|
|
1508
|
-
set: fe(),
|
|
1509
|
-
timestamp: J(),
|
|
1510
|
-
bool: I(),
|
|
1511
|
-
int: z(),
|
|
1512
|
-
merge: X(),
|
|
1513
|
-
omap: oe(),
|
|
1514
|
-
seq: w(),
|
|
1515
|
-
str: x()
|
|
1516
|
-
}, n.safeLoad = i("safeLoad", "load"), n.safeLoadAll = i("safeLoadAll", "loadAll"), n.safeDump = i("safeDump", "dump"), n;
|
|
1517
|
-
}
|
|
1518
|
-
e(Se, "requireJsYaml");
|
|
1519
|
-
var { Type: Ce, Schema: we, FAILSAFE_SCHEMA: Te, JSON_SCHEMA: Ee, CORE_SCHEMA: De, DEFAULT_SCHEMA: Oe, load: ke, loadAll: Ae, dump: je, YAMLException: Me, types: Ne, safeLoad: Pe, safeLoadAll: Fe, safeDump: Ie } = /* @__PURE__ */ t(Se());
|
|
1520
|
-
//#endregion
|
|
1521
|
-
export { ke as n, Ee as t };
|