@tempots/beatui 0.17.0 → 0.19.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/README.md +15 -34
- package/dist/2019-CfIF9XVA.cjs +1 -0
- package/dist/2019-D0n7sHsB.js +164 -0
- package/dist/2020-BkXWq9F8.js +192 -0
- package/dist/2020-D1ziwonq.cjs +1 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/apl-B2DGVGxc.js +76 -0
- package/dist/apl-M-DNMvvR.cjs +1 -0
- package/dist/ar-BsUm-TCn.cjs +1 -0
- package/dist/{ar-D5jeVM2s.js → ar-CMndb3tf.js} +24 -18
- package/dist/ar-DYmDITuw.cjs +1 -0
- package/dist/asciiarmor-2LVJmxlE.js +34 -0
- package/dist/asciiarmor-BMx3XVjX.cjs +1 -0
- package/dist/asn1-OOsVM4yU.cjs +1 -0
- package/dist/asn1-jKiBa2Ya.js +95 -0
- package/dist/asterisk-B1QUaW1C.cjs +1 -0
- package/dist/asterisk-DS281yxp.js +271 -0
- package/dist/auth/index.cjs.js +1 -0
- package/dist/auth/index.es.js +1331 -0
- package/dist/beatui.css +1 -1
- package/dist/brainfuck-BjUlYKdF.cjs +1 -0
- package/dist/brainfuck-C_p9pTT8.js +34 -0
- package/dist/clike-BEMIzMUI.cjs +1 -0
- package/dist/clike-DGTaUp48.js +620 -0
- package/dist/clojure-Ap_IXD2I.cjs +1 -0
- package/dist/clojure-CCKyeQKf.js +800 -0
- package/dist/cmake-C4D5_VmS.cjs +1 -0
- package/dist/cmake-CuaCgAKt.js +28 -0
- package/dist/cobol-BlTKFDRj.js +72 -0
- package/dist/cobol-Du-cT2hr.cjs +1 -0
- package/dist/coffeescript-BVCvwO8I.js +179 -0
- package/dist/coffeescript-DDFAj2ea.cjs +1 -0
- package/dist/commonlisp-CXBBRCTx.cjs +1 -0
- package/dist/commonlisp-D_kxz07b.js +75 -0
- package/dist/crystal-D309uH6_.js +217 -0
- package/dist/crystal-DAFWRDbh.cjs +1 -0
- package/dist/css-BkF-NPzE.js +1553 -0
- package/dist/css-DzFJyRJ8.cjs +1 -0
- package/dist/cypher-BMq4Fwjl.js +68 -0
- package/dist/cypher-BN0-oCze.cjs +1 -0
- package/dist/d-BHsqGcfm.cjs +1 -0
- package/dist/d-BZcgY6La.js +127 -0
- package/dist/de-BUFLEyKr.cjs +1 -0
- package/dist/{de-QCsvvABM.js → de-Cgy7XJBg.js} +25 -19
- package/dist/de-ClQgQrXM.cjs +1 -0
- package/dist/diff-CemTHKfk.cjs +1 -0
- package/dist/diff-Cg9d_RX2.js +18 -0
- package/dist/dockerfile-BBTH3voH.cjs +1 -0
- package/dist/dockerfile-DIy8NleC.js +194 -0
- package/dist/dtd-ChoVQPwv.cjs +1 -0
- package/dist/dtd-CtLokQ-U.js +84 -0
- package/dist/dylan-QYeExnWK.js +234 -0
- package/dist/dylan-apTQIgUA.cjs +1 -0
- package/dist/ebnf-DUPDuY4r.js +78 -0
- package/dist/ebnf-LYmLy17h.cjs +1 -0
- package/dist/ecl-C7WNQq7-.cjs +1 -0
- package/dist/ecl-CiXN-g_D.js +121 -0
- package/dist/eiffel-BJThA8RG.cjs +1 -0
- package/dist/eiffel-yQhjl4T1.js +110 -0
- package/dist/elm-CNT9vbN0.js +108 -0
- package/dist/elm-CcXP9T36.cjs +1 -0
- package/dist/erlang-B6mpcObI.cjs +1 -0
- package/dist/erlang-CFOYdy9e.js +487 -0
- package/dist/es-BN5Mihv0.cjs +1 -0
- package/dist/es-BxBeTRCv.cjs +1 -0
- package/dist/{es-QPLFaGbp.js → es-j0qszDAW.js} +23 -17
- package/dist/fa-BUQvM0nj.cjs +1 -0
- package/dist/{fa-DQmCKW-7.js → fa-COUp2ofv.js} +24 -16
- package/dist/fa-DxPseW3g.cjs +1 -0
- package/dist/factor-B-tsx9yW.cjs +1 -0
- package/dist/factor-DDOC7X6P.js +65 -0
- package/dist/fcl-BzAKklXo.cjs +1 -0
- package/dist/fcl-CPC2WYrI.js +103 -0
- package/dist/forth-BmxRyE9S.js +60 -0
- package/dist/forth-CPAzyZ_n.cjs +1 -0
- package/dist/fortran-9bvPyrOW.js +442 -0
- package/dist/fortran-DHiTlGV1.cjs +1 -0
- package/dist/{fr-MvvOUdq6.js → fr-B5Ar6QcE.js} +26 -20
- package/dist/fr-Cdyopuz3.cjs +1 -0
- package/dist/fr-CwvsJDIZ.cjs +1 -0
- package/dist/gas-BiPtGF2E.cjs +1 -0
- package/dist/gas-cpmYfFX2.js +183 -0
- package/dist/gherkin-CJuwpceU.js +34 -0
- package/dist/gherkin-Djo7Y51D.cjs +1 -0
- package/dist/groovy-BMVITiCm.cjs +1 -0
- package/dist/groovy-DZeT_VM-.js +146 -0
- package/dist/haskell-Bvt3Qq1t.js +375 -0
- package/dist/haskell-CngODaW-.cjs +1 -0
- package/dist/haxe-70NVW1pR.js +359 -0
- package/dist/haxe-Dyk-piTh.cjs +1 -0
- package/dist/{he-BgUKFv6v.js → he-D5HTHvKh.js} +24 -18
- package/dist/he-DarDNPn0.cjs +1 -0
- package/dist/he-HZvvmFUB.cjs +1 -0
- package/dist/{hi-BJXdbCIZ.js → hi-Bcc7iEXp.js} +24 -18
- package/dist/hi-Cnr1RtgA.cjs +1 -0
- package/dist/hi-tATwsXJ6.cjs +1 -0
- package/dist/http-BkLifcnL.cjs +1 -0
- package/dist/http-D9LttvKF.js +44 -0
- package/dist/idl-B6TRFYjl.js +947 -0
- package/dist/idl-FmHDmsE-.cjs +1 -0
- package/dist/index-2DKUYRWr.js +226 -0
- package/dist/index-85k3bgcY.cjs +1 -0
- package/dist/index-B-d5blto.js +302 -0
- package/dist/index-B16dbwxM.cjs +1 -0
- package/dist/index-B2079wM-.js +921 -0
- package/dist/index-B66rNs5i.cjs +2 -0
- package/dist/index-BF4pXHo-.js +270 -0
- package/dist/index-BJfVmi_X.js +612 -0
- package/dist/index-BUKtbimR.cjs +6 -0
- package/dist/index-BYk56bqR.cjs +13 -0
- package/dist/index-BZHMnjr6.cjs +1 -0
- package/dist/index-Bg1QLlyj.js +552 -0
- package/dist/index-BguvTLHu.cjs +1 -0
- package/dist/index-BirEb-BA.js +8285 -0
- package/dist/index-By8a3eg5.cjs +1 -0
- package/dist/index-C4UzgyIA.cjs +1 -0
- package/dist/index-C9XAXTDx.cjs +1 -0
- package/dist/index-CFo2nnaI.js +342 -0
- package/dist/index-CHgx0rFt.js +76 -0
- package/dist/index-CIfx_bs7.cjs +7 -0
- package/dist/index-CKRuo2DB.js +960 -0
- package/dist/index-CRfUh74G.cjs +1 -0
- package/dist/index-CUs1c8a9.js +309 -0
- package/dist/index-CoBM7UvE.js +157 -0
- package/dist/index-Cohec4rB.cjs +1 -0
- package/dist/index-D-Rzl363.cjs +1 -0
- package/dist/index-D0-d-xdJ.js +953 -0
- package/dist/index-DC4nzG_w.js +554 -0
- package/dist/index-DD-MOsCa.js +59 -0
- package/dist/index-DD8_efWr.cjs +1 -0
- package/dist/index-DJ-avKHU.js +138 -0
- package/dist/index-DSvEBuy-.cjs +3 -0
- package/dist/index-DV7tB1MN.cjs +1 -0
- package/dist/index-DXFKCiah.cjs +8 -0
- package/dist/index-DYIv5X6N.js +289 -0
- package/dist/index-Dben4dbo.js +1874 -0
- package/dist/index-DgUJYXoy.cjs +1 -0
- package/dist/index-DjNMMz5-.cjs +1 -0
- package/dist/index-DxG_avr8.cjs +1 -0
- package/dist/index-FEy4Hwnx.cjs +1 -0
- package/dist/index-_OaxQJX1.js +74 -0
- package/dist/index-dV4F3c70.js +136 -0
- package/dist/index-dsitEt8M.cjs +1 -0
- package/dist/index-faGepKVA.js +94 -0
- package/dist/index-kk6qFeC5.cjs +1 -0
- package/dist/index-rWglN8IQ.js +1307 -0
- package/dist/index-tuwLQMCb.js +251 -0
- package/dist/index-ykojBEwT.js +101 -0
- package/dist/index.cjs.js +143 -0
- package/dist/index.es.js +4456 -7705
- package/dist/index.esm-8xolKogd.cjs +1 -0
- package/dist/index.esm-CSotgpVw.js +4959 -0
- package/dist/it-B7KeOLBm.cjs +1 -0
- package/dist/it-BmFag7j0.cjs +1 -0
- package/dist/{it-Bu7Sjs-g.js → it-CTCKFU5g.js} +24 -18
- package/dist/ja-0ldomgID.cjs +1 -0
- package/dist/{ja-DrXpNYfH.js → ja-BGoETTZv.js} +23 -15
- package/dist/ja-Dj-bAKLf.cjs +1 -0
- package/dist/javascript-C2yteZeJ.js +691 -0
- package/dist/javascript-DngSGg_0.cjs +1 -0
- package/dist/jinja2-DnB6dQmV.js +154 -0
- package/dist/jinja2-wbVbDTNi.cjs +1 -0
- package/dist/json-schema/index.cjs.js +1 -0
- package/dist/json-schema/index.es.js +37 -0
- package/dist/julia-DA67Qw9E.cjs +1 -0
- package/dist/julia-DpvXAuO6.js +241 -0
- package/dist/ko-BomUE-yQ.cjs +1 -0
- package/dist/ko-C4WEkArz.cjs +1 -0
- package/dist/{ko-BmkxLoBO.js → ko-xHeRs9LU.js} +22 -14
- package/dist/link-portal-Cr2l9f3k.js +9 -0
- package/dist/link-portal-_tiDFZqh.cjs +1 -0
- package/dist/livescript-Bg3URadp.cjs +1 -0
- package/dist/livescript-CanGTf8u.js +272 -0
- package/dist/lua-CIsxjGwi.cjs +1 -0
- package/dist/lua-XplVlWi_.js +217 -0
- package/dist/markdown/index.cjs.js +2 -0
- package/dist/markdown/index.es.js +422 -0
- package/dist/markdown.css +39 -0
- package/dist/mathematica-BG089QIc.cjs +1 -0
- package/dist/mathematica-jaRHnSxC.js +35 -0
- package/dist/mbox-BctzC1hL.js +76 -0
- package/dist/mbox-CySolFFZ.cjs +1 -0
- package/dist/milkdown/index.cjs.js +1 -0
- package/dist/milkdown/index.es.js +4 -0
- package/dist/milkdown-input-BbbZJGDl.js +62376 -0
- package/dist/milkdown-input-C-Muq7PQ.cjs +941 -0
- package/dist/milkdown-url-BKbqhNCO.js +4 -0
- package/dist/milkdown-url-BLgXPmZR.cjs +1 -0
- package/dist/milkdown.css +1903 -0
- package/dist/mirc-BfqEffzk.cjs +1 -0
- package/dist/mirc-CFBPAOaF.js +72 -0
- package/dist/mllike-BSnXJBGA.js +272 -0
- package/dist/mllike-QUjwI6zq.cjs +1 -0
- package/dist/modal-nbZW44XS.js +614 -0
- package/dist/modal-wbG_oGOr.cjs +1 -0
- package/dist/modelica-B6Zhcb-M.cjs +1 -0
- package/dist/modelica-vUgVs--1.js +93 -0
- package/dist/monaco/index.cjs.js +2 -0
- package/dist/monaco/index.es.js +269 -0
- package/dist/monaco.css +14 -0
- package/dist/mscgen-BToym4Bs.cjs +1 -0
- package/dist/mscgen-Cpl0NYLN.js +104 -0
- package/dist/mumps-CQoS1kWX.js +25 -0
- package/dist/mumps-wfyQdxSu.cjs +1 -0
- package/dist/nginx-CwqyBUfA.cjs +1 -0
- package/dist/nginx-zDPm3Z74.js +89 -0
- package/dist/nl-D-y231ZO.cjs +1 -0
- package/dist/nl-Dr-l6zUy.cjs +1 -0
- package/dist/{nl-DC5KbcZ1.js → nl-ey2Li7DF.js} +24 -18
- package/dist/notice-CIPcSfD5.js +2432 -0
- package/dist/notice-Cq02YHoN.cjs +1 -0
- package/dist/nsis-DPj2fUaP.cjs +1 -0
- package/dist/nsis-fePjrhq7.js +62 -0
- package/dist/ntriples-CsNjv2QF.js +79 -0
- package/dist/ntriples-DgwJmozm.cjs +1 -0
- package/dist/octave-1pkKrgAA.cjs +1 -0
- package/dist/octave-C8PmmSRH.js +143 -0
- package/dist/oz-BXOZCt0U.cjs +1 -0
- package/dist/oz-Ce8aN8oE.js +151 -0
- package/dist/pascal-De0D6mP7.js +77 -0
- package/dist/pascal-DtY2LEkJ.cjs +1 -0
- package/dist/perl-B4bSCe1C.js +915 -0
- package/dist/perl-CVDWbEju.cjs +1 -0
- package/dist/pig-D24Z8EXi.js +54 -0
- package/dist/pig-DMByOrnr.cjs +1 -0
- package/dist/pl-BK0i_yvq.cjs +1 -0
- package/dist/{pl-BJJ-Grej.js → pl-Bf0QaCGx.js} +27 -21
- package/dist/pl-G6e4Mybr.cjs +1 -0
- package/dist/powershell-BaoYaFvj.cjs +1 -0
- package/dist/powershell-DkYVfTzP.js +249 -0
- package/dist/preprocess-CvkqwVNt.cjs +3 -0
- package/dist/preprocess-D898zxsP.js +2295 -0
- package/dist/properties-DXHJZ3WE.cjs +1 -0
- package/dist/properties-Dn9wna3M.js +26 -0
- package/dist/protobuf-BKhXdfH6.cjs +1 -0
- package/dist/protobuf-BPIjwpzm.js +49 -0
- package/dist/pt-CD2Eqazl.cjs +1 -0
- package/dist/{pt-DH8tH7fr.js → pt-D-_KxA9g.js} +26 -20
- package/dist/pt-oBMmVYcu.cjs +1 -0
- package/dist/pug-CwAQJzGR.js +248 -0
- package/dist/pug-kEfRDOiF.cjs +1 -0
- package/dist/puppet-8mAyuMbW.cjs +1 -0
- package/dist/puppet-nyd4dhjf.js +45 -0
- package/dist/python-BkR3uSy8.js +313 -0
- package/dist/python-D-iU6WXz.cjs +1 -0
- package/dist/q-BPQ45Nxu.cjs +1 -0
- package/dist/q-DXjKs-tC.js +83 -0
- package/dist/r-LKEuhEGI.js +104 -0
- package/dist/r-r2_EZsON.cjs +1 -0
- package/dist/rpm-IznJm2Xc.js +57 -0
- package/dist/rpm-YK81m3qU.cjs +1 -0
- package/dist/ru-CKh2xgqC.cjs +1 -0
- package/dist/ru-CtxMmoa6.cjs +1 -0
- package/dist/{ru-DoNk8aVN.js → ru-Dzbl29K2.js} +29 -21
- package/dist/ruby-CcYfvIk6.js +228 -0
- package/dist/ruby-Cn1sFkZF.cjs +1 -0
- package/dist/sas-7E8yHoCW.js +105 -0
- package/dist/sas-DAGcJy94.cjs +1 -0
- package/dist/scheme-B0ZrbojV.cjs +1 -0
- package/dist/scheme-DjibxsNh.js +124 -0
- package/dist/shell-BMYo43V6.cjs +1 -0
- package/dist/shell-C0C2sNA_.js +182 -0
- package/dist/sieve-Bwz7vjP5.js +72 -0
- package/dist/sieve-CIYW-b_H.cjs +1 -0
- package/dist/simple-mode-B0dvCdAA.js +89 -0
- package/dist/simple-mode-BIKNPBes.cjs +1 -0
- package/dist/smalltalk-Bhddl2pB.js +48 -0
- package/dist/smalltalk-CSslY-3i.cjs +1 -0
- package/dist/solr-A1kSnAwJ.cjs +1 -0
- package/dist/solr-BNlsLglM.js +41 -0
- package/dist/sparql-DnHMBLLY.cjs +1 -0
- package/dist/sparql-FarWu_Gb.js +197 -0
- package/dist/spreadsheet-B7_BK8hB.cjs +1 -0
- package/dist/spreadsheet-C-cy4P5N.js +49 -0
- package/dist/sql-9VmIWHrZ.cjs +1 -0
- package/dist/sql-CfG5lQ3l.js +282 -0
- package/dist/stex-B4wyjEnp.cjs +1 -0
- package/dist/stex-Du4h4KAU.js +129 -0
- package/dist/styles-url-B-d6aezR.cjs +1 -0
- package/dist/styles-url-B4WGMvfi.js +4 -0
- package/dist/styles-url-CZUL_YRT.cjs +1 -0
- package/dist/styles-url-DpP5gepF.js +4 -0
- package/dist/stylus-CAdqWld3.js +250 -0
- package/dist/stylus-D6GYOT3Z.cjs +1 -0
- package/dist/swift-DGw6Cgu8.cjs +1 -0
- package/dist/swift-DSxqR9R6.js +230 -0
- package/dist/tcl-ByLXbQFo.cjs +1 -0
- package/dist/tcl-xfoLljhY.js +81 -0
- package/dist/textile-D1AWE-pc.js +295 -0
- package/dist/textile-iryw-lTw.cjs +1 -0
- package/dist/theme-CJVt8QIc.js +34 -0
- package/dist/theme-YS3sFklH.cjs +1 -0
- package/dist/tiddlywiki-5wqsXtSk.js +155 -0
- package/dist/tiddlywiki-D8IJz1k7.cjs +1 -0
- package/dist/tiki-C5p5KSQK.cjs +1 -0
- package/dist/tiki-__Kn3CeS.js +181 -0
- package/dist/timer-CcMCjYrq.cjs +1 -0
- package/dist/timer-CkgWORR9.js +42 -0
- package/dist/toml-3ZsH_4Qa.cjs +1 -0
- package/dist/toml-BHiuTcfn.js +49 -0
- package/dist/tr-BbpC5gzM.cjs +1 -0
- package/dist/tr-CgJ8uhZu.cjs +1 -0
- package/dist/{tr-BD5Li2rQ.js → tr-yMHT8n7z.js} +24 -18
- package/dist/translations-CXE8Z_Ac.cjs +1 -0
- package/dist/translations-DBtfTNnM.js +2005 -0
- package/dist/translations-DbN-OSLv.js +47 -0
- package/dist/translations-EQ1qPZ0_.cjs +2 -0
- package/dist/troff-D-3QCOYN.cjs +1 -0
- package/dist/troff-D2UO-fKf.js +35 -0
- package/dist/ttcn-Bsa4sfRm.js +123 -0
- package/dist/ttcn-C2MXAqcM.cjs +1 -0
- package/dist/ttcn-cfg-BYqcMRxC.cjs +1 -0
- package/dist/ttcn-cfg-Bac_acMi.js +88 -0
- package/dist/turtle-DSJNatSv.cjs +1 -0
- package/dist/turtle-xwJUxoPV.js +80 -0
- package/dist/types/auth/index.d.ts +1 -0
- package/dist/types/beatui-i18n/default.d.ts +8 -1
- package/dist/types/beatui-i18n/locales/en.d.ts +8 -1
- package/dist/types/beatui-i18n/translations.d.ts +8 -1
- package/dist/types/components/auth/auth-divider.d.ts +2 -2
- package/dist/types/components/auth/index.d.ts +8 -6
- package/dist/types/components/auth/password-strength-indicator.d.ts +4 -4
- package/dist/types/components/auth/reset-password-form.d.ts +2 -2
- package/dist/types/components/auth/signin-form.d.ts +2 -2
- package/dist/types/components/auth/signup-form.d.ts +2 -2
- package/dist/types/components/auth/social-login-button.d.ts +27 -27
- package/dist/types/components/auth/types.d.ts +11 -13
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/button/close-button.d.ts +15 -0
- package/dist/types/components/button/index.d.ts +1 -0
- package/dist/types/components/data/tag.d.ts +3 -2
- package/dist/types/components/form/control/control-factory.d.ts +24 -0
- package/dist/types/components/form/control/date-utils.d.ts +6 -0
- package/dist/types/components/form/control/index.d.ts +3 -22
- package/dist/types/components/form/control/list-control.d.ts +23 -14
- package/dist/types/components/form/controller/controller.d.ts +20 -1
- package/dist/types/components/form/controller/index.d.ts +2 -0
- package/dist/types/components/form/controller/union-controller.d.ts +53 -0
- package/dist/types/components/form/controller/utils.d.ts +4 -0
- package/dist/types/components/form/input/appearance-selector.d.ts +2 -1
- package/dist/types/components/form/input/base64-input.d.ts +10 -0
- package/dist/types/components/form/input/base64s-input.d.ts +12 -0
- package/dist/types/components/form/input/bigint-input.d.ts +9 -0
- package/dist/types/components/form/input/color-input.d.ts +8 -1
- package/dist/types/components/form/input/combobox-input.d.ts +16 -0
- package/dist/types/components/form/input/combobox-tags-input.d.ts +16 -0
- package/dist/types/components/form/input/dropdown-base.d.ts +19 -0
- package/dist/types/components/form/input/dropdown-input.d.ts +14 -0
- package/dist/types/components/form/input/duration-input.d.ts +3 -0
- package/dist/types/components/form/input/duration-mask.d.ts +12 -0
- package/dist/types/components/form/input/editable-text.d.ts +2 -1
- package/dist/types/components/form/input/file-input.d.ts +3 -4
- package/dist/types/components/form/input/files-input.d.ts +12 -0
- package/dist/types/components/form/input/index.d.ts +42 -2
- package/dist/types/components/form/input/input-container.d.ts +2 -3
- package/dist/types/components/form/input/input-options.d.ts +0 -13
- package/dist/types/components/form/input/input-wrapper.d.ts +1 -1
- package/dist/types/components/form/input/instant-input.d.ts +3 -0
- package/dist/types/components/form/input/lazy-native-select.d.ts +1 -1
- package/dist/types/components/form/input/list-input.d.ts +14 -0
- package/dist/types/components/form/input/mask-input.d.ts +94 -0
- package/dist/types/components/form/input/native-select.d.ts +4 -23
- package/dist/types/components/form/input/nullable-base64-input.d.ts +8 -0
- package/dist/types/components/form/input/nullable-bigint-input.d.ts +9 -0
- package/dist/types/components/form/input/nullable-duration-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-email-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-instant-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-mask-input.d.ts +5 -0
- package/dist/types/components/form/input/nullable-number-input.d.ts +9 -0
- package/dist/types/components/form/input/nullable-password-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-month-day-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-rating-input.d.ts +14 -0
- package/dist/types/components/form/input/nullable-url-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-utils.d.ts +2 -0
- package/dist/types/components/form/input/nullable-uuid-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-zoned-date-time-input.d.ts +3 -0
- package/dist/types/components/form/input/option.d.ts +38 -0
- package/dist/types/components/form/input/plain-date-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-date-time-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-month-day-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-time-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-year-month-input.d.ts +3 -0
- package/dist/types/components/form/input/rating-input.d.ts +15 -0
- package/dist/types/components/form/input/segmented-input.d.ts +10 -0
- package/dist/types/components/form/input/select-tags-input.d.ts +20 -0
- package/dist/types/components/form/input/slider-input.d.ts +15 -0
- package/dist/types/components/form/input/tag-utils.d.ts +11 -0
- package/dist/types/components/form/input/url-input.d.ts +2 -0
- package/dist/types/components/form/input/uuid-input.d.ts +2 -0
- package/dist/types/components/form/input/zoned-date-time-input.d.ts +3 -0
- package/dist/types/components/form/schema/custom-validation.d.ts +1 -1
- package/dist/types/components/form/use-form.d.ts +11 -4
- package/dist/types/components/json-schema/ajv-utils.d.ts +121 -0
- package/dist/types/components/json-schema/cache-management.d.ts +148 -0
- package/dist/types/components/json-schema/containers/container-layouts.d.ts +66 -0
- package/dist/types/components/json-schema/controls/any-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/array-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/boolean-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/composition-controls.d.ts +24 -0
- package/dist/types/components/json-schema/controls/composition-shared.d.ts +34 -0
- package/dist/types/components/json-schema/controls/enum-const-controls.d.ts +17 -0
- package/dist/types/components/json-schema/controls/generic-control.d.ts +18 -0
- package/dist/types/components/json-schema/controls/null-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/number-controls.d.ts +17 -0
- package/dist/types/components/json-schema/controls/object-control.d.ts +12 -0
- package/dist/types/components/json-schema/controls/object-helpers.d.ts +31 -0
- package/dist/types/components/json-schema/controls/presence-toggle.d.ts +12 -0
- package/dist/types/components/json-schema/controls/schema-banners.d.ts +14 -0
- package/dist/types/components/json-schema/controls/schema-wrapper.d.ts +7 -0
- package/dist/types/components/json-schema/controls/shared-utils.d.ts +16 -0
- package/dist/types/components/json-schema/controls/string-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/type-utils.d.ts +27 -0
- package/dist/types/components/json-schema/controls/union-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls.d.ts +11 -0
- package/dist/types/components/json-schema/discriminator/discriminator-utils.d.ts +57 -0
- package/dist/types/components/json-schema/index.d.ts +5 -0
- package/dist/types/components/json-schema/json-schema-form.d.ts +79 -0
- package/dist/types/components/json-schema/oneof-branch-detection.d.ts +35 -0
- package/dist/types/components/json-schema/ref-utils.d.ts +18 -0
- package/dist/types/components/json-schema/schema-context.d.ts +185 -0
- package/dist/types/components/json-schema/validation/async-validation.d.ts +113 -0
- package/dist/types/components/json-schema/validation/conditional-validation.d.ts +75 -0
- package/dist/types/components/json-schema/validation/cross-field-validation.d.ts +71 -0
- package/dist/types/components/json-schema/validation/error-aggregation.d.ts +84 -0
- package/dist/types/components/json-schema/validation/performance-optimization.d.ts +120 -0
- package/dist/types/components/json-schema/validator.d.ts +10 -0
- package/dist/types/components/json-schema/visibility/visibility-evaluation.d.ts +77 -0
- package/dist/types/components/json-schema/visibility/visibility-wrapper.d.ts +56 -0
- package/dist/types/components/json-schema/widgets/enhanced-widgets.d.ts +70 -0
- package/dist/types/components/json-schema/widgets/string-controls.d.ts +8 -0
- package/dist/types/components/json-schema/widgets/string-detection.d.ts +3 -0
- package/dist/types/components/json-schema/widgets/string-type.d.ts +62 -0
- package/dist/types/components/json-schema/widgets/utils.d.ts +45 -0
- package/dist/types/components/json-schema/widgets/widget-composition.d.ts +144 -0
- package/dist/types/components/json-schema/widgets/widget-customization.d.ts +120 -0
- package/dist/types/components/layout/index.d.ts +1 -0
- package/dist/types/components/layout/nine-slice-scroll-view.d.ts +21 -0
- package/dist/types/components/layout/scrollable-panel.d.ts +1 -1
- package/dist/types/components/milkdown/milkdown-input.d.ts +15 -0
- package/dist/types/components/milkdown/milkdown-url.d.ts +2 -0
- package/dist/types/components/misc/index.d.ts +3 -0
- package/dist/types/components/misc/link-portal.d.ts +11 -0
- package/dist/types/components/misc/notice.d.ts +15 -0
- package/dist/types/components/misc/style-portal.d.ts +10 -0
- package/dist/types/components/monaco/monaco-editor-input.d.ts +12 -0
- package/dist/types/components/navigation/flyout.d.ts +2 -2
- package/dist/types/components/navigation/index.d.ts +1 -0
- package/dist/types/components/navigation/menu.d.ts +7 -7
- package/dist/types/components/navigation/toolbar/index.d.ts +1 -0
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +17 -0
- package/dist/types/components/overlay/drawer.d.ts +2 -2
- package/dist/types/components/overlay/modal.d.ts +3 -3
- package/dist/types/components/overlay/tooltip.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/json-schema/index.d.ts +1 -0
- package/dist/types/markdown/extensions.d.ts +8 -0
- package/dist/types/markdown/index.d.ts +17 -0
- package/dist/types/markdown/styles-url.d.ts +2 -0
- package/dist/types/markdown/styles.d.ts +2 -0
- package/dist/types/milkdown/index.d.ts +1 -0
- package/dist/types/milkdown/styles.d.ts +2 -0
- package/dist/types/monaco/index.d.ts +3 -0
- package/dist/types/monaco/lazy-loader.d.ts +5 -0
- package/dist/types/monaco/styles-url.d.ts +2 -0
- package/dist/types/monaco/styles.d.ts +2 -0
- package/dist/types/monaco/types.d.ts +14 -0
- package/dist/types/styles/base-url.d.ts +2 -0
- package/dist/types/styles/base.d.ts +2 -0
- package/dist/types/temporal/index.d.ts +3 -0
- package/dist/types/temporal/runtime.d.ts +2 -0
- package/dist/types/temporal/types.d.ts +10 -0
- package/dist/types/temporal/with-temporal.d.ts +3 -0
- package/dist/types/tokens/colors.d.ts +12 -1
- package/dist/types/utils/focus-trap.d.ts +4 -4
- package/dist/{ur-CUvRCu9R.js → ur-CdQA0epV.js} +24 -18
- package/dist/ur-DvqAg9gW.cjs +1 -0
- package/dist/ur-kkik6-_r.cjs +1 -0
- package/dist/vb-c2kQGd6-.js +74 -0
- package/dist/vb-qzHzzvyB.cjs +1 -0
- package/dist/vbscript-1f_Dhg5H.js +324 -0
- package/dist/vbscript-CWm8v9tE.cjs +1 -0
- package/dist/velocity-D3_yAIp3.cjs +1 -0
- package/dist/velocity-DJd0pTTC.js +96 -0
- package/dist/verilog-BOhLNmQo.cjs +1 -0
- package/dist/verilog-CiS1jyi5.js +262 -0
- package/dist/vhdl-CMFbi8Im.cjs +1 -0
- package/dist/vhdl-T9HkrbI2.js +106 -0
- package/dist/vi-1xtFXJc0.cjs +1 -0
- package/dist/{vi-BXI6n5F3.js → vi-A8UmZU3L.js} +26 -20
- package/dist/vi-D5R3YcU0.cjs +1 -0
- package/dist/webidl-CWb_flNk.cjs +1 -0
- package/dist/webidl-CjfDENEo.js +155 -0
- package/dist/xquery-BUQdORAS.js +422 -0
- package/dist/xquery-Cjw5fRnG.cjs +1 -0
- package/dist/yacas-C0absKBh.js +73 -0
- package/dist/yacas-urx_N5C8.cjs +1 -0
- package/dist/z80-CsG3CM6M.cjs +1 -0
- package/dist/z80-Pki2zAjW.js +61 -0
- package/dist/zh-CCGXcj5r.cjs +1 -0
- package/dist/{zh-DyIbx84k.js → zh-D0nnvX8T.js} +23 -15
- package/dist/zh-DC_SsXdk.cjs +1 -0
- package/package.json +57 -8
- package/dist/index.umd.js +0 -100
- package/dist/types/components/form/control/combobox-control.d.ts +0 -11
- package/dist/types/components/form/control/control-input-wrapper.d.ts +0 -7
- package/dist/types/components/form/control/control-options.d.ts +0 -20
- package/dist/types/components/form/control/date-control.d.ts +0 -3
- package/dist/types/components/form/control/date-time-control.d.ts +0 -3
- package/dist/types/components/form/control/email-control.d.ts +0 -3
- package/dist/types/components/form/control/file-control.d.ts +0 -13
- package/dist/types/components/form/control/lazy-native-select-control.d.ts +0 -16
- package/dist/types/components/form/control/native-select-control.d.ts +0 -9
- package/dist/types/components/form/control/nullable-date-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-date-time-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-string-date-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-string-date-time-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-text-area-control.d.ts +0 -7
- package/dist/types/components/form/control/nullable-text-control.d.ts +0 -3
- package/dist/types/components/form/control/number-control.d.ts +0 -9
- package/dist/types/components/form/control/password-control.d.ts +0 -3
- package/dist/types/components/form/control/segmented-control.d.ts +0 -10
- package/dist/types/components/form/control/string-date-control.d.ts +0 -3
- package/dist/types/components/form/control/tags-control.d.ts +0 -3
- package/dist/types/components/form/control/text-area-control.d.ts +0 -7
- package/dist/types/components/form/control/text-control.d.ts +0 -8
- package/dist/types/components/form/input/combobox.d.ts +0 -39
|
@@ -0,0 +1,921 @@
|
|
|
1
|
+
import { h as _, i as I, m as k, u as E, j as K, k as st, s as N, n as T, l as ht, o as F, q as P, r as gt, t as X, v as L, w as x, x as mt, c as ft } from "./preprocess-D898zxsP.js";
|
|
2
|
+
const bt = {
|
|
3
|
+
tokenize: Ct,
|
|
4
|
+
partial: !0
|
|
5
|
+
}, v = {
|
|
6
|
+
tokenize: yt,
|
|
7
|
+
partial: !0
|
|
8
|
+
}, tt = {
|
|
9
|
+
tokenize: Ft,
|
|
10
|
+
partial: !0
|
|
11
|
+
}, et = {
|
|
12
|
+
tokenize: At,
|
|
13
|
+
partial: !0
|
|
14
|
+
}, pt = {
|
|
15
|
+
tokenize: xt,
|
|
16
|
+
partial: !0
|
|
17
|
+
}, nt = {
|
|
18
|
+
name: "wwwAutolink",
|
|
19
|
+
tokenize: ct,
|
|
20
|
+
previous: rt
|
|
21
|
+
}, it = {
|
|
22
|
+
name: "protocolAutolink",
|
|
23
|
+
tokenize: wt,
|
|
24
|
+
previous: lt
|
|
25
|
+
}, C = {
|
|
26
|
+
name: "emailAutolink",
|
|
27
|
+
tokenize: Dt,
|
|
28
|
+
previous: at
|
|
29
|
+
}, c = {};
|
|
30
|
+
function kt() {
|
|
31
|
+
return {
|
|
32
|
+
text: c
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
let A = 48;
|
|
36
|
+
for (; A < 123; )
|
|
37
|
+
c[A] = C, A++, A === 58 ? A = 65 : A === 91 && (A = 97);
|
|
38
|
+
c[43] = C;
|
|
39
|
+
c[45] = C;
|
|
40
|
+
c[46] = C;
|
|
41
|
+
c[95] = C;
|
|
42
|
+
c[72] = [C, it];
|
|
43
|
+
c[104] = [C, it];
|
|
44
|
+
c[87] = [C, nt];
|
|
45
|
+
c[119] = [C, nt];
|
|
46
|
+
function Dt(t, i, e) {
|
|
47
|
+
const r = this;
|
|
48
|
+
let s, h;
|
|
49
|
+
return n;
|
|
50
|
+
function n(l) {
|
|
51
|
+
return !B(l) || !at.call(r, r.previous) || W(r.events) ? e(l) : (t.enter("literalAutolink"), t.enter("literalAutolinkEmail"), u(l));
|
|
52
|
+
}
|
|
53
|
+
function u(l) {
|
|
54
|
+
return B(l) ? (t.consume(l), u) : l === 64 ? (t.consume(l), o) : e(l);
|
|
55
|
+
}
|
|
56
|
+
function o(l) {
|
|
57
|
+
return l === 46 ? t.check(pt, f, m)(l) : l === 45 || l === 95 || _(l) ? (h = !0, t.consume(l), o) : f(l);
|
|
58
|
+
}
|
|
59
|
+
function m(l) {
|
|
60
|
+
return t.consume(l), s = !0, o;
|
|
61
|
+
}
|
|
62
|
+
function f(l) {
|
|
63
|
+
return h && s && I(r.previous) ? (t.exit("literalAutolinkEmail"), t.exit("literalAutolink"), i(l)) : e(l);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function ct(t, i, e) {
|
|
67
|
+
const r = this;
|
|
68
|
+
return s;
|
|
69
|
+
function s(n) {
|
|
70
|
+
return n !== 87 && n !== 119 || !rt.call(r, r.previous) || W(r.events) ? e(n) : (t.enter("literalAutolink"), t.enter("literalAutolinkWww"), t.check(bt, t.attempt(v, t.attempt(tt, h), e), e)(n));
|
|
71
|
+
}
|
|
72
|
+
function h(n) {
|
|
73
|
+
return t.exit("literalAutolinkWww"), t.exit("literalAutolink"), i(n);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function wt(t, i, e) {
|
|
77
|
+
const r = this;
|
|
78
|
+
let s = "", h = !1;
|
|
79
|
+
return n;
|
|
80
|
+
function n(l) {
|
|
81
|
+
return (l === 72 || l === 104) && lt.call(r, r.previous) && !W(r.events) ? (t.enter("literalAutolink"), t.enter("literalAutolinkHttp"), s += String.fromCodePoint(l), t.consume(l), u) : e(l);
|
|
82
|
+
}
|
|
83
|
+
function u(l) {
|
|
84
|
+
if (I(l) && s.length < 5)
|
|
85
|
+
return s += String.fromCodePoint(l), t.consume(l), u;
|
|
86
|
+
if (l === 58) {
|
|
87
|
+
const b = s.toLowerCase();
|
|
88
|
+
if (b === "http" || b === "https")
|
|
89
|
+
return t.consume(l), o;
|
|
90
|
+
}
|
|
91
|
+
return e(l);
|
|
92
|
+
}
|
|
93
|
+
function o(l) {
|
|
94
|
+
return l === 47 ? (t.consume(l), h ? m : (h = !0, o)) : e(l);
|
|
95
|
+
}
|
|
96
|
+
function m(l) {
|
|
97
|
+
return l === null || st(l) || k(l) || E(l) || K(l) ? e(l) : t.attempt(v, t.attempt(tt, f), e)(l);
|
|
98
|
+
}
|
|
99
|
+
function f(l) {
|
|
100
|
+
return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), i(l);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function Ct(t, i, e) {
|
|
104
|
+
let r = 0;
|
|
105
|
+
return s;
|
|
106
|
+
function s(n) {
|
|
107
|
+
return (n === 87 || n === 119) && r < 3 ? (r++, t.consume(n), s) : n === 46 && r === 3 ? (t.consume(n), h) : e(n);
|
|
108
|
+
}
|
|
109
|
+
function h(n) {
|
|
110
|
+
return n === null ? e(n) : i(n);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function yt(t, i, e) {
|
|
114
|
+
let r, s, h;
|
|
115
|
+
return n;
|
|
116
|
+
function n(m) {
|
|
117
|
+
return m === 46 || m === 95 ? t.check(et, o, u)(m) : m === null || k(m) || E(m) || m !== 45 && K(m) ? o(m) : (h = !0, t.consume(m), n);
|
|
118
|
+
}
|
|
119
|
+
function u(m) {
|
|
120
|
+
return m === 95 ? r = !0 : (s = r, r = void 0), t.consume(m), n;
|
|
121
|
+
}
|
|
122
|
+
function o(m) {
|
|
123
|
+
return s || r || !h ? e(m) : i(m);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function Ft(t, i) {
|
|
127
|
+
let e = 0, r = 0;
|
|
128
|
+
return s;
|
|
129
|
+
function s(n) {
|
|
130
|
+
return n === 40 ? (e++, t.consume(n), s) : n === 41 && r < e ? h(n) : n === 33 || n === 34 || n === 38 || n === 39 || n === 41 || n === 42 || n === 44 || n === 46 || n === 58 || n === 59 || n === 60 || n === 63 || n === 93 || n === 95 || n === 126 ? t.check(et, i, h)(n) : n === null || k(n) || E(n) ? i(n) : (t.consume(n), s);
|
|
131
|
+
}
|
|
132
|
+
function h(n) {
|
|
133
|
+
return n === 41 && r++, t.consume(n), s;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function At(t, i, e) {
|
|
137
|
+
return r;
|
|
138
|
+
function r(u) {
|
|
139
|
+
return u === 33 || u === 34 || u === 39 || u === 41 || u === 42 || u === 44 || u === 46 || u === 58 || u === 59 || u === 63 || u === 95 || u === 126 ? (t.consume(u), r) : u === 38 ? (t.consume(u), h) : u === 93 ? (t.consume(u), s) : (
|
|
140
|
+
// `<` is an end.
|
|
141
|
+
u === 60 || // So is whitespace.
|
|
142
|
+
u === null || k(u) || E(u) ? i(u) : e(u)
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
function s(u) {
|
|
146
|
+
return u === null || u === 40 || u === 91 || k(u) || E(u) ? i(u) : r(u);
|
|
147
|
+
}
|
|
148
|
+
function h(u) {
|
|
149
|
+
return I(u) ? n(u) : e(u);
|
|
150
|
+
}
|
|
151
|
+
function n(u) {
|
|
152
|
+
return u === 59 ? (t.consume(u), r) : I(u) ? (t.consume(u), n) : e(u);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function xt(t, i, e) {
|
|
156
|
+
return r;
|
|
157
|
+
function r(h) {
|
|
158
|
+
return t.consume(h), s;
|
|
159
|
+
}
|
|
160
|
+
function s(h) {
|
|
161
|
+
return _(h) ? e(h) : i(h);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function rt(t) {
|
|
165
|
+
return t === null || t === 40 || t === 42 || t === 95 || t === 91 || t === 93 || t === 126 || k(t);
|
|
166
|
+
}
|
|
167
|
+
function lt(t) {
|
|
168
|
+
return !I(t);
|
|
169
|
+
}
|
|
170
|
+
function at(t) {
|
|
171
|
+
return !(t === 47 || B(t));
|
|
172
|
+
}
|
|
173
|
+
function B(t) {
|
|
174
|
+
return t === 43 || t === 45 || t === 46 || t === 95 || _(t);
|
|
175
|
+
}
|
|
176
|
+
function W(t) {
|
|
177
|
+
let i = t.length, e = !1;
|
|
178
|
+
for (; i--; ) {
|
|
179
|
+
const r = t[i][1];
|
|
180
|
+
if ((r.type === "labelLink" || r.type === "labelImage") && !r._balanced) {
|
|
181
|
+
e = !0;
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
if (r._gfmAutolinkLiteralWalkedInto) {
|
|
185
|
+
e = !1;
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return t.length > 0 && !e && (t[t.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), e;
|
|
190
|
+
}
|
|
191
|
+
function St() {
|
|
192
|
+
return {
|
|
193
|
+
exit: {
|
|
194
|
+
literalAutolinkEmail: dt,
|
|
195
|
+
literalAutolinkHttp: Lt,
|
|
196
|
+
literalAutolinkWww: zt
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function zt(t) {
|
|
201
|
+
q.call(this, t, "http://");
|
|
202
|
+
}
|
|
203
|
+
function dt(t) {
|
|
204
|
+
q.call(this, t, "mailto:");
|
|
205
|
+
}
|
|
206
|
+
function Lt(t) {
|
|
207
|
+
q.call(this, t);
|
|
208
|
+
}
|
|
209
|
+
function q(t, i) {
|
|
210
|
+
const e = this.sliceSerialize(t);
|
|
211
|
+
this.tag('<a href="' + N((i || "") + e) + '">'), this.raw(this.encode(e)), this.tag("</a>");
|
|
212
|
+
}
|
|
213
|
+
const It = {
|
|
214
|
+
tokenize: Ht,
|
|
215
|
+
partial: !0
|
|
216
|
+
};
|
|
217
|
+
function Et() {
|
|
218
|
+
return {
|
|
219
|
+
document: {
|
|
220
|
+
91: {
|
|
221
|
+
name: "gfmFootnoteDefinition",
|
|
222
|
+
tokenize: Mt,
|
|
223
|
+
continuation: {
|
|
224
|
+
tokenize: jt
|
|
225
|
+
},
|
|
226
|
+
exit: Pt
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
text: {
|
|
230
|
+
91: {
|
|
231
|
+
name: "gfmFootnoteCall",
|
|
232
|
+
tokenize: Rt
|
|
233
|
+
},
|
|
234
|
+
93: {
|
|
235
|
+
name: "gfmPotentialFootnoteCall",
|
|
236
|
+
add: "after",
|
|
237
|
+
tokenize: Tt,
|
|
238
|
+
resolveTo: Ot
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function Tt(t, i, e) {
|
|
244
|
+
const r = this;
|
|
245
|
+
let s = r.events.length;
|
|
246
|
+
const h = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
247
|
+
let n;
|
|
248
|
+
for (; s--; ) {
|
|
249
|
+
const o = r.events[s][1];
|
|
250
|
+
if (o.type === "labelImage") {
|
|
251
|
+
n = o;
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
if (o.type === "gfmFootnoteCall" || o.type === "labelLink" || o.type === "label" || o.type === "image" || o.type === "link")
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
return u;
|
|
258
|
+
function u(o) {
|
|
259
|
+
if (!n || !n._balanced)
|
|
260
|
+
return e(o);
|
|
261
|
+
const m = T(r.sliceSerialize({
|
|
262
|
+
start: n.end,
|
|
263
|
+
end: r.now()
|
|
264
|
+
}));
|
|
265
|
+
return m.codePointAt(0) !== 94 || !h.includes(m.slice(1)) ? e(o) : (t.enter("gfmFootnoteCallLabelMarker"), t.consume(o), t.exit("gfmFootnoteCallLabelMarker"), i(o));
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
function Ot(t, i) {
|
|
269
|
+
let e = t.length;
|
|
270
|
+
for (; e--; )
|
|
271
|
+
if (t[e][1].type === "labelImage" && t[e][0] === "enter") {
|
|
272
|
+
t[e][1];
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
t[e + 1][1].type = "data", t[e + 3][1].type = "gfmFootnoteCallLabelMarker";
|
|
276
|
+
const r = {
|
|
277
|
+
type: "gfmFootnoteCall",
|
|
278
|
+
start: Object.assign({}, t[e + 3][1].start),
|
|
279
|
+
end: Object.assign({}, t[t.length - 1][1].end)
|
|
280
|
+
}, s = {
|
|
281
|
+
type: "gfmFootnoteCallMarker",
|
|
282
|
+
start: Object.assign({}, t[e + 3][1].end),
|
|
283
|
+
end: Object.assign({}, t[e + 3][1].end)
|
|
284
|
+
};
|
|
285
|
+
s.end.column++, s.end.offset++, s.end._bufferIndex++;
|
|
286
|
+
const h = {
|
|
287
|
+
type: "gfmFootnoteCallString",
|
|
288
|
+
start: Object.assign({}, s.end),
|
|
289
|
+
end: Object.assign({}, t[t.length - 1][1].start)
|
|
290
|
+
}, n = {
|
|
291
|
+
type: "chunkString",
|
|
292
|
+
contentType: "string",
|
|
293
|
+
start: Object.assign({}, h.start),
|
|
294
|
+
end: Object.assign({}, h.end)
|
|
295
|
+
}, u = [
|
|
296
|
+
// Take the `labelImageMarker` (now `data`, the `!`)
|
|
297
|
+
t[e + 1],
|
|
298
|
+
t[e + 2],
|
|
299
|
+
["enter", r, i],
|
|
300
|
+
// The `[`
|
|
301
|
+
t[e + 3],
|
|
302
|
+
t[e + 4],
|
|
303
|
+
// The `^`.
|
|
304
|
+
["enter", s, i],
|
|
305
|
+
["exit", s, i],
|
|
306
|
+
// Everything in between.
|
|
307
|
+
["enter", h, i],
|
|
308
|
+
["enter", n, i],
|
|
309
|
+
["exit", n, i],
|
|
310
|
+
["exit", h, i],
|
|
311
|
+
// The ending (`]`, properly parsed and labelled).
|
|
312
|
+
t[t.length - 2],
|
|
313
|
+
t[t.length - 1],
|
|
314
|
+
["exit", r, i]
|
|
315
|
+
];
|
|
316
|
+
return t.splice(e, t.length - e + 1, ...u), t;
|
|
317
|
+
}
|
|
318
|
+
function Rt(t, i, e) {
|
|
319
|
+
const r = this, s = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
320
|
+
let h = 0, n;
|
|
321
|
+
return u;
|
|
322
|
+
function u(l) {
|
|
323
|
+
return t.enter("gfmFootnoteCall"), t.enter("gfmFootnoteCallLabelMarker"), t.consume(l), t.exit("gfmFootnoteCallLabelMarker"), o;
|
|
324
|
+
}
|
|
325
|
+
function o(l) {
|
|
326
|
+
return l !== 94 ? e(l) : (t.enter("gfmFootnoteCallMarker"), t.consume(l), t.exit("gfmFootnoteCallMarker"), t.enter("gfmFootnoteCallString"), t.enter("chunkString").contentType = "string", m);
|
|
327
|
+
}
|
|
328
|
+
function m(l) {
|
|
329
|
+
if (
|
|
330
|
+
// Too long.
|
|
331
|
+
h > 999 || // Closing brace with nothing.
|
|
332
|
+
l === 93 && !n || // Space or tab is not supported by GFM for some reason.
|
|
333
|
+
// `\n` and `[` not being supported makes sense.
|
|
334
|
+
l === null || l === 91 || k(l)
|
|
335
|
+
)
|
|
336
|
+
return e(l);
|
|
337
|
+
if (l === 93) {
|
|
338
|
+
t.exit("chunkString");
|
|
339
|
+
const b = t.exit("gfmFootnoteCallString");
|
|
340
|
+
return s.includes(T(r.sliceSerialize(b))) ? (t.enter("gfmFootnoteCallLabelMarker"), t.consume(l), t.exit("gfmFootnoteCallLabelMarker"), t.exit("gfmFootnoteCall"), i) : e(l);
|
|
341
|
+
}
|
|
342
|
+
return k(l) || (n = !0), h++, t.consume(l), l === 92 ? f : m;
|
|
343
|
+
}
|
|
344
|
+
function f(l) {
|
|
345
|
+
return l === 91 || l === 92 || l === 93 ? (t.consume(l), h++, m) : m(l);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
function Mt(t, i, e) {
|
|
349
|
+
const r = this, s = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
350
|
+
let h, n = 0, u;
|
|
351
|
+
return o;
|
|
352
|
+
function o(g) {
|
|
353
|
+
return t.enter("gfmFootnoteDefinition")._container = !0, t.enter("gfmFootnoteDefinitionLabel"), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(g), t.exit("gfmFootnoteDefinitionLabelMarker"), m;
|
|
354
|
+
}
|
|
355
|
+
function m(g) {
|
|
356
|
+
return g === 94 ? (t.enter("gfmFootnoteDefinitionMarker"), t.consume(g), t.exit("gfmFootnoteDefinitionMarker"), t.enter("gfmFootnoteDefinitionLabelString"), t.enter("chunkString").contentType = "string", f) : e(g);
|
|
357
|
+
}
|
|
358
|
+
function f(g) {
|
|
359
|
+
if (
|
|
360
|
+
// Too long.
|
|
361
|
+
n > 999 || // Closing brace with nothing.
|
|
362
|
+
g === 93 && !u || // Space or tab is not supported by GFM for some reason.
|
|
363
|
+
// `\n` and `[` not being supported makes sense.
|
|
364
|
+
g === null || g === 91 || k(g)
|
|
365
|
+
)
|
|
366
|
+
return e(g);
|
|
367
|
+
if (g === 93) {
|
|
368
|
+
t.exit("chunkString");
|
|
369
|
+
const D = t.exit("gfmFootnoteDefinitionLabelString");
|
|
370
|
+
return h = T(r.sliceSerialize(D)), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(g), t.exit("gfmFootnoteDefinitionLabelMarker"), t.exit("gfmFootnoteDefinitionLabel"), b;
|
|
371
|
+
}
|
|
372
|
+
return k(g) || (u = !0), n++, t.consume(g), g === 92 ? l : f;
|
|
373
|
+
}
|
|
374
|
+
function l(g) {
|
|
375
|
+
return g === 91 || g === 92 || g === 93 ? (t.consume(g), n++, f) : f(g);
|
|
376
|
+
}
|
|
377
|
+
function b(g) {
|
|
378
|
+
return g === 58 ? (t.enter("definitionMarker"), t.consume(g), t.exit("definitionMarker"), s.includes(h) || s.push(h), F(t, p, "gfmFootnoteDefinitionWhitespace")) : e(g);
|
|
379
|
+
}
|
|
380
|
+
function p(g) {
|
|
381
|
+
return i(g);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
function jt(t, i, e) {
|
|
385
|
+
return t.check(ht, i, t.attempt(It, i, e));
|
|
386
|
+
}
|
|
387
|
+
function Pt(t) {
|
|
388
|
+
t.exit("gfmFootnoteDefinition");
|
|
389
|
+
}
|
|
390
|
+
function Ht(t, i, e) {
|
|
391
|
+
const r = this;
|
|
392
|
+
return F(t, s, "gfmFootnoteDefinitionIndent", 5);
|
|
393
|
+
function s(h) {
|
|
394
|
+
const n = r.events[r.events.length - 1];
|
|
395
|
+
return n && n[1].type === "gfmFootnoteDefinitionIndent" && n[2].sliceSerialize(n[1], !0).length === 4 ? i(h) : e(h);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
const Nt = {}.hasOwnProperty, Bt = {};
|
|
399
|
+
function _t(t, i) {
|
|
400
|
+
return "Back to reference " + (t + 1) + (i > 1 ? "-" + i : "");
|
|
401
|
+
}
|
|
402
|
+
function Wt(t) {
|
|
403
|
+
const i = t || Bt, e = i.label || "Footnotes", r = i.labelTagName || "h2", s = i.labelAttributes === null || i.labelAttributes === void 0 ? 'class="sr-only"' : i.labelAttributes, h = i.backLabel || _t, n = i.clobberPrefix === null || i.clobberPrefix === void 0 ? "user-content-" : i.clobberPrefix;
|
|
404
|
+
return {
|
|
405
|
+
enter: {
|
|
406
|
+
gfmFootnoteDefinition() {
|
|
407
|
+
this.getData("tightStack").push(!1);
|
|
408
|
+
},
|
|
409
|
+
gfmFootnoteDefinitionLabelString() {
|
|
410
|
+
this.buffer();
|
|
411
|
+
},
|
|
412
|
+
gfmFootnoteCallString() {
|
|
413
|
+
this.buffer();
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
exit: {
|
|
417
|
+
gfmFootnoteDefinition() {
|
|
418
|
+
let u = this.getData("gfmFootnoteDefinitions");
|
|
419
|
+
const o = this.getData("gfmFootnoteDefinitionStack"), m = this.getData("tightStack"), f = o.pop(), l = this.resume();
|
|
420
|
+
u || this.setData("gfmFootnoteDefinitions", u = {}), Nt.call(u, f) || (u[f] = l), m.pop(), this.setData("slurpOneLineEnding", !0), this.setData("lastWasTag");
|
|
421
|
+
},
|
|
422
|
+
gfmFootnoteDefinitionLabelString(u) {
|
|
423
|
+
let o = this.getData("gfmFootnoteDefinitionStack");
|
|
424
|
+
o || this.setData("gfmFootnoteDefinitionStack", o = []), o.push(T(this.sliceSerialize(u))), this.resume(), this.buffer();
|
|
425
|
+
},
|
|
426
|
+
gfmFootnoteCallString(u) {
|
|
427
|
+
let o = this.getData("gfmFootnoteCallOrder"), m = this.getData("gfmFootnoteCallCounts");
|
|
428
|
+
const f = T(this.sliceSerialize(u));
|
|
429
|
+
let l;
|
|
430
|
+
this.resume(), o || this.setData("gfmFootnoteCallOrder", o = []), m || this.setData("gfmFootnoteCallCounts", m = {});
|
|
431
|
+
const b = o.indexOf(f), p = N(f.toLowerCase());
|
|
432
|
+
b === -1 ? (o.push(f), m[f] = 1, l = o.length) : (m[f]++, l = b + 1);
|
|
433
|
+
const g = m[f];
|
|
434
|
+
this.tag('<sup><a href="#' + n + "fn-" + p + '" id="' + n + "fnref-" + p + (g > 1 ? "-" + g : "") + '" data-footnote-ref="" aria-describedby="footnote-label">' + String(l) + "</a></sup>");
|
|
435
|
+
},
|
|
436
|
+
null() {
|
|
437
|
+
const u = this.getData("gfmFootnoteCallOrder") || [], o = this.getData("gfmFootnoteCallCounts") || {}, m = this.getData("gfmFootnoteDefinitions") || {};
|
|
438
|
+
let f = -1;
|
|
439
|
+
for (u.length > 0 && (this.lineEndingIfNeeded(), this.tag('<section data-footnotes="" class="footnotes"><' + r + ' id="footnote-label"' + (s ? " " + s : "") + ">"), this.raw(this.encode(e)), this.tag("</" + r + ">"), this.lineEndingIfNeeded(), this.tag("<ol>")); ++f < u.length; ) {
|
|
440
|
+
const l = u[f], b = N(l.toLowerCase());
|
|
441
|
+
let p = 0;
|
|
442
|
+
const g = [];
|
|
443
|
+
for (; ++p <= o[l]; )
|
|
444
|
+
g.push('<a href="#' + n + "fnref-" + b + (p > 1 ? "-" + p : "") + '" data-footnote-backref="" aria-label="' + this.encode(typeof h == "string" ? h : h(f, p)) + '" class="data-footnote-backref">↩' + (p > 1 ? "<sup>" + p + "</sup>" : "") + "</a>");
|
|
445
|
+
const D = g.join(" ");
|
|
446
|
+
let w = !1;
|
|
447
|
+
this.lineEndingIfNeeded(), this.tag('<li id="' + n + "fn-" + b + '">'), this.lineEndingIfNeeded(), this.tag(m[l].replace(/<\/p>(?:\r?\n|\r)?$/, function(y) {
|
|
448
|
+
return w = !0, " " + D + y;
|
|
449
|
+
})), w || (this.lineEndingIfNeeded(), this.tag(D)), this.lineEndingIfNeeded(), this.tag("</li>");
|
|
450
|
+
}
|
|
451
|
+
u.length > 0 && (this.lineEndingIfNeeded(), this.tag("</ol>"), this.lineEndingIfNeeded(), this.tag("</section>"));
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
function qt() {
|
|
457
|
+
return {
|
|
458
|
+
enter: {
|
|
459
|
+
strikethrough() {
|
|
460
|
+
this.tag("<del>");
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
exit: {
|
|
464
|
+
strikethrough() {
|
|
465
|
+
this.tag("</del>");
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function Vt(t) {
|
|
471
|
+
let e = (t || {}).singleTilde;
|
|
472
|
+
const r = {
|
|
473
|
+
name: "strikethrough",
|
|
474
|
+
tokenize: h,
|
|
475
|
+
resolveAll: s
|
|
476
|
+
};
|
|
477
|
+
return e == null && (e = !0), {
|
|
478
|
+
text: {
|
|
479
|
+
126: r
|
|
480
|
+
},
|
|
481
|
+
insideSpan: {
|
|
482
|
+
null: [r]
|
|
483
|
+
},
|
|
484
|
+
attentionMarkers: {
|
|
485
|
+
null: [126]
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
function s(n, u) {
|
|
489
|
+
let o = -1;
|
|
490
|
+
for (; ++o < n.length; )
|
|
491
|
+
if (n[o][0] === "enter" && n[o][1].type === "strikethroughSequenceTemporary" && n[o][1]._close) {
|
|
492
|
+
let m = o;
|
|
493
|
+
for (; m--; )
|
|
494
|
+
if (n[m][0] === "exit" && n[m][1].type === "strikethroughSequenceTemporary" && n[m][1]._open && // If the sizes are the same:
|
|
495
|
+
n[o][1].end.offset - n[o][1].start.offset === n[m][1].end.offset - n[m][1].start.offset) {
|
|
496
|
+
n[o][1].type = "strikethroughSequence", n[m][1].type = "strikethroughSequence";
|
|
497
|
+
const f = {
|
|
498
|
+
type: "strikethrough",
|
|
499
|
+
start: Object.assign({}, n[m][1].start),
|
|
500
|
+
end: Object.assign({}, n[o][1].end)
|
|
501
|
+
}, l = {
|
|
502
|
+
type: "strikethroughText",
|
|
503
|
+
start: Object.assign({}, n[m][1].end),
|
|
504
|
+
end: Object.assign({}, n[o][1].start)
|
|
505
|
+
}, b = [["enter", f, u], ["enter", n[m][1], u], ["exit", n[m][1], u], ["enter", l, u]], p = u.parser.constructs.insideSpan.null;
|
|
506
|
+
p && P(b, b.length, 0, gt(p, n.slice(m + 1, o), u)), P(b, b.length, 0, [["exit", l, u], ["enter", n[o][1], u], ["exit", n[o][1], u], ["exit", f, u]]), P(n, m - 1, o - m + 3, b), o = m + b.length - 2;
|
|
507
|
+
break;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
for (o = -1; ++o < n.length; )
|
|
511
|
+
n[o][1].type === "strikethroughSequenceTemporary" && (n[o][1].type = "data");
|
|
512
|
+
return n;
|
|
513
|
+
}
|
|
514
|
+
function h(n, u, o) {
|
|
515
|
+
const m = this.previous, f = this.events;
|
|
516
|
+
let l = 0;
|
|
517
|
+
return b;
|
|
518
|
+
function b(g) {
|
|
519
|
+
return m === 126 && f[f.length - 1][1].type !== "characterEscape" ? o(g) : (n.enter("strikethroughSequenceTemporary"), p(g));
|
|
520
|
+
}
|
|
521
|
+
function p(g) {
|
|
522
|
+
const D = X(m);
|
|
523
|
+
if (g === 126)
|
|
524
|
+
return l > 1 ? o(g) : (n.consume(g), l++, p);
|
|
525
|
+
if (l < 2 && !e) return o(g);
|
|
526
|
+
const w = n.exit("strikethroughSequenceTemporary"), y = X(g);
|
|
527
|
+
return w._open = !y || y === 2 && !!D, w._close = !D || D === 2 && !!y, u(g);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
const H = {
|
|
532
|
+
none: "",
|
|
533
|
+
left: ' align="left"',
|
|
534
|
+
right: ' align="right"',
|
|
535
|
+
center: ' align="center"'
|
|
536
|
+
};
|
|
537
|
+
function Ut() {
|
|
538
|
+
return {
|
|
539
|
+
enter: {
|
|
540
|
+
table(t) {
|
|
541
|
+
const i = t._align;
|
|
542
|
+
this.lineEndingIfNeeded(), this.tag("<table>"), this.setData("tableAlign", i);
|
|
543
|
+
},
|
|
544
|
+
tableBody() {
|
|
545
|
+
this.tag("<tbody>");
|
|
546
|
+
},
|
|
547
|
+
tableData() {
|
|
548
|
+
const t = this.getData("tableAlign"), i = this.getData("tableColumn"), e = H[t[i]];
|
|
549
|
+
e === void 0 ? this.buffer() : (this.lineEndingIfNeeded(), this.tag("<td" + e + ">"));
|
|
550
|
+
},
|
|
551
|
+
tableHead() {
|
|
552
|
+
this.lineEndingIfNeeded(), this.tag("<thead>");
|
|
553
|
+
},
|
|
554
|
+
tableHeader() {
|
|
555
|
+
const t = this.getData("tableAlign"), i = this.getData("tableColumn"), e = H[t[i]];
|
|
556
|
+
this.lineEndingIfNeeded(), this.tag("<th" + e + ">");
|
|
557
|
+
},
|
|
558
|
+
tableRow() {
|
|
559
|
+
this.setData("tableColumn", 0), this.lineEndingIfNeeded(), this.tag("<tr>");
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
exit: {
|
|
563
|
+
// Overwrite the default code text data handler to unescape escaped pipes when
|
|
564
|
+
// they are in tables.
|
|
565
|
+
codeTextData(t) {
|
|
566
|
+
let i = this.sliceSerialize(t);
|
|
567
|
+
this.getData("tableAlign") && (i = i.replace(/\\([\\|])/g, Gt)), this.raw(this.encode(i));
|
|
568
|
+
},
|
|
569
|
+
table() {
|
|
570
|
+
this.setData("tableAlign"), this.setData("slurpAllLineEndings"), this.lineEndingIfNeeded(), this.tag("</table>");
|
|
571
|
+
},
|
|
572
|
+
tableBody() {
|
|
573
|
+
this.lineEndingIfNeeded(), this.tag("</tbody>");
|
|
574
|
+
},
|
|
575
|
+
tableData() {
|
|
576
|
+
const t = this.getData("tableAlign"), i = this.getData("tableColumn");
|
|
577
|
+
i in t ? (this.tag("</td>"), this.setData("tableColumn", i + 1)) : this.resume();
|
|
578
|
+
},
|
|
579
|
+
tableHead() {
|
|
580
|
+
this.lineEndingIfNeeded(), this.tag("</thead>");
|
|
581
|
+
},
|
|
582
|
+
tableHeader() {
|
|
583
|
+
const t = this.getData("tableColumn");
|
|
584
|
+
this.tag("</th>"), this.setData("tableColumn", t + 1);
|
|
585
|
+
},
|
|
586
|
+
tableRow() {
|
|
587
|
+
const t = this.getData("tableAlign");
|
|
588
|
+
let i = this.getData("tableColumn");
|
|
589
|
+
for (; i < t.length; )
|
|
590
|
+
this.lineEndingIfNeeded(), this.tag("<td" + H[t[i]] + "></td>"), i++;
|
|
591
|
+
this.setData("tableColumn", i), this.lineEndingIfNeeded(), this.tag("</tr>");
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
function Gt(t, i) {
|
|
597
|
+
return i === "|" ? i : t;
|
|
598
|
+
}
|
|
599
|
+
class $t {
|
|
600
|
+
/**
|
|
601
|
+
* Create a new edit map.
|
|
602
|
+
*/
|
|
603
|
+
constructor() {
|
|
604
|
+
this.map = [];
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* Create an edit: a remove and/or add at a certain place.
|
|
608
|
+
*
|
|
609
|
+
* @param {number} index
|
|
610
|
+
* @param {number} remove
|
|
611
|
+
* @param {Array<Event>} add
|
|
612
|
+
* @returns {undefined}
|
|
613
|
+
*/
|
|
614
|
+
add(i, e, r) {
|
|
615
|
+
Jt(this, i, e, r);
|
|
616
|
+
}
|
|
617
|
+
// To do: add this when moving to `micromark`.
|
|
618
|
+
// /**
|
|
619
|
+
// * Create an edit: but insert `add` before existing additions.
|
|
620
|
+
// *
|
|
621
|
+
// * @param {number} index
|
|
622
|
+
// * @param {number} remove
|
|
623
|
+
// * @param {Array<Event>} add
|
|
624
|
+
// * @returns {undefined}
|
|
625
|
+
// */
|
|
626
|
+
// addBefore(index, remove, add) {
|
|
627
|
+
// addImplementation(this, index, remove, add, true)
|
|
628
|
+
// }
|
|
629
|
+
/**
|
|
630
|
+
* Done, change the events.
|
|
631
|
+
*
|
|
632
|
+
* @param {Array<Event>} events
|
|
633
|
+
* @returns {undefined}
|
|
634
|
+
*/
|
|
635
|
+
consume(i) {
|
|
636
|
+
if (this.map.sort(function(h, n) {
|
|
637
|
+
return h[0] - n[0];
|
|
638
|
+
}), this.map.length === 0)
|
|
639
|
+
return;
|
|
640
|
+
let e = this.map.length;
|
|
641
|
+
const r = [];
|
|
642
|
+
for (; e > 0; )
|
|
643
|
+
e -= 1, r.push(i.slice(this.map[e][0] + this.map[e][1]), this.map[e][2]), i.length = this.map[e][0];
|
|
644
|
+
r.push(i.slice()), i.length = 0;
|
|
645
|
+
let s = r.pop();
|
|
646
|
+
for (; s; ) {
|
|
647
|
+
for (const h of s)
|
|
648
|
+
i.push(h);
|
|
649
|
+
s = r.pop();
|
|
650
|
+
}
|
|
651
|
+
this.map.length = 0;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
function Jt(t, i, e, r) {
|
|
655
|
+
let s = 0;
|
|
656
|
+
if (!(e === 0 && r.length === 0)) {
|
|
657
|
+
for (; s < t.map.length; ) {
|
|
658
|
+
if (t.map[s][0] === i) {
|
|
659
|
+
t.map[s][1] += e, t.map[s][2].push(...r);
|
|
660
|
+
return;
|
|
661
|
+
}
|
|
662
|
+
s += 1;
|
|
663
|
+
}
|
|
664
|
+
t.map.push([i, e, r]);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
function Qt(t, i) {
|
|
668
|
+
let e = !1;
|
|
669
|
+
const r = [];
|
|
670
|
+
for (; i < t.length; ) {
|
|
671
|
+
const s = t[i];
|
|
672
|
+
if (e) {
|
|
673
|
+
if (s[0] === "enter")
|
|
674
|
+
s[1].type === "tableContent" && r.push(t[i + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
|
|
675
|
+
else if (s[1].type === "tableContent") {
|
|
676
|
+
if (t[i - 1][1].type === "tableDelimiterMarker") {
|
|
677
|
+
const h = r.length - 1;
|
|
678
|
+
r[h] = r[h] === "left" ? "center" : "right";
|
|
679
|
+
}
|
|
680
|
+
} else if (s[1].type === "tableDelimiterRow")
|
|
681
|
+
break;
|
|
682
|
+
} else s[0] === "enter" && s[1].type === "tableDelimiterRow" && (e = !0);
|
|
683
|
+
i += 1;
|
|
684
|
+
}
|
|
685
|
+
return r;
|
|
686
|
+
}
|
|
687
|
+
function Xt() {
|
|
688
|
+
return {
|
|
689
|
+
flow: {
|
|
690
|
+
null: {
|
|
691
|
+
name: "table",
|
|
692
|
+
tokenize: Yt,
|
|
693
|
+
resolveAll: Zt
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
function Yt(t, i, e) {
|
|
699
|
+
const r = this;
|
|
700
|
+
let s = 0, h = 0, n;
|
|
701
|
+
return u;
|
|
702
|
+
function u(a) {
|
|
703
|
+
let d = r.events.length - 1;
|
|
704
|
+
for (; d > -1; ) {
|
|
705
|
+
const Q = r.events[d][1].type;
|
|
706
|
+
if (Q === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
|
707
|
+
Q === "linePrefix") d--;
|
|
708
|
+
else break;
|
|
709
|
+
}
|
|
710
|
+
const $ = d > -1 ? r.events[d][1].type : null, J = $ === "tableHead" || $ === "tableRow" ? G : o;
|
|
711
|
+
return J === G && r.parser.lazy[r.now().line] ? e(a) : J(a);
|
|
712
|
+
}
|
|
713
|
+
function o(a) {
|
|
714
|
+
return t.enter("tableHead"), t.enter("tableRow"), m(a);
|
|
715
|
+
}
|
|
716
|
+
function m(a) {
|
|
717
|
+
return a === 124 || (n = !0, h += 1), f(a);
|
|
718
|
+
}
|
|
719
|
+
function f(a) {
|
|
720
|
+
return a === null ? e(a) : L(a) ? h > 1 ? (h = 0, r.interrupt = !0, t.exit("tableRow"), t.enter("lineEnding"), t.consume(a), t.exit("lineEnding"), p) : e(a) : x(a) ? F(t, f, "whitespace")(a) : (h += 1, n && (n = !1, s += 1), a === 124 ? (t.enter("tableCellDivider"), t.consume(a), t.exit("tableCellDivider"), n = !0, f) : (t.enter("data"), l(a)));
|
|
721
|
+
}
|
|
722
|
+
function l(a) {
|
|
723
|
+
return a === null || a === 124 || k(a) ? (t.exit("data"), f(a)) : (t.consume(a), a === 92 ? b : l);
|
|
724
|
+
}
|
|
725
|
+
function b(a) {
|
|
726
|
+
return a === 92 || a === 124 ? (t.consume(a), l) : l(a);
|
|
727
|
+
}
|
|
728
|
+
function p(a) {
|
|
729
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? e(a) : (t.enter("tableDelimiterRow"), n = !1, x(a) ? F(t, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a) : g(a));
|
|
730
|
+
}
|
|
731
|
+
function g(a) {
|
|
732
|
+
return a === 45 || a === 58 ? w(a) : a === 124 ? (n = !0, t.enter("tableCellDivider"), t.consume(a), t.exit("tableCellDivider"), D) : z(a);
|
|
733
|
+
}
|
|
734
|
+
function D(a) {
|
|
735
|
+
return x(a) ? F(t, w, "whitespace")(a) : w(a);
|
|
736
|
+
}
|
|
737
|
+
function w(a) {
|
|
738
|
+
return a === 58 ? (h += 1, n = !0, t.enter("tableDelimiterMarker"), t.consume(a), t.exit("tableDelimiterMarker"), y) : a === 45 ? (h += 1, y(a)) : a === null || L(a) ? j(a) : z(a);
|
|
739
|
+
}
|
|
740
|
+
function y(a) {
|
|
741
|
+
return a === 45 ? (t.enter("tableDelimiterFiller"), V(a)) : z(a);
|
|
742
|
+
}
|
|
743
|
+
function V(a) {
|
|
744
|
+
return a === 45 ? (t.consume(a), V) : a === 58 ? (n = !0, t.exit("tableDelimiterFiller"), t.enter("tableDelimiterMarker"), t.consume(a), t.exit("tableDelimiterMarker"), U) : (t.exit("tableDelimiterFiller"), U(a));
|
|
745
|
+
}
|
|
746
|
+
function U(a) {
|
|
747
|
+
return x(a) ? F(t, j, "whitespace")(a) : j(a);
|
|
748
|
+
}
|
|
749
|
+
function j(a) {
|
|
750
|
+
return a === 124 ? g(a) : a === null || L(a) ? !n || s !== h ? z(a) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), i(a)) : z(a);
|
|
751
|
+
}
|
|
752
|
+
function z(a) {
|
|
753
|
+
return e(a);
|
|
754
|
+
}
|
|
755
|
+
function G(a) {
|
|
756
|
+
return t.enter("tableRow"), O(a);
|
|
757
|
+
}
|
|
758
|
+
function O(a) {
|
|
759
|
+
return a === 124 ? (t.enter("tableCellDivider"), t.consume(a), t.exit("tableCellDivider"), O) : a === null || L(a) ? (t.exit("tableRow"), i(a)) : x(a) ? F(t, O, "whitespace")(a) : (t.enter("data"), R(a));
|
|
760
|
+
}
|
|
761
|
+
function R(a) {
|
|
762
|
+
return a === null || a === 124 || k(a) ? (t.exit("data"), O(a)) : (t.consume(a), a === 92 ? ot : R);
|
|
763
|
+
}
|
|
764
|
+
function ot(a) {
|
|
765
|
+
return a === 92 || a === 124 ? (t.consume(a), R) : R(a);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
function Zt(t, i) {
|
|
769
|
+
let e = -1, r = !0, s = 0, h = [0, 0, 0, 0], n = [0, 0, 0, 0], u = !1, o = 0, m, f, l;
|
|
770
|
+
const b = new $t();
|
|
771
|
+
for (; ++e < t.length; ) {
|
|
772
|
+
const p = t[e], g = p[1];
|
|
773
|
+
p[0] === "enter" ? g.type === "tableHead" ? (u = !1, o !== 0 && (Y(b, i, o, m, f), f = void 0, o = 0), m = {
|
|
774
|
+
type: "table",
|
|
775
|
+
start: Object.assign({}, g.start),
|
|
776
|
+
// Note: correct end is set later.
|
|
777
|
+
end: Object.assign({}, g.end)
|
|
778
|
+
}, b.add(e, 0, [["enter", m, i]])) : g.type === "tableRow" || g.type === "tableDelimiterRow" ? (r = !0, l = void 0, h = [0, 0, 0, 0], n = [0, e + 1, 0, 0], u && (u = !1, f = {
|
|
779
|
+
type: "tableBody",
|
|
780
|
+
start: Object.assign({}, g.start),
|
|
781
|
+
// Note: correct end is set later.
|
|
782
|
+
end: Object.assign({}, g.end)
|
|
783
|
+
}, b.add(e, 0, [["enter", f, i]])), s = g.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : s && (g.type === "data" || g.type === "tableDelimiterMarker" || g.type === "tableDelimiterFiller") ? (r = !1, n[2] === 0 && (h[1] !== 0 && (n[0] = n[1], l = M(b, i, h, s, void 0, l), h = [0, 0, 0, 0]), n[2] = e)) : g.type === "tableCellDivider" && (r ? r = !1 : (h[1] !== 0 && (n[0] = n[1], l = M(b, i, h, s, void 0, l)), h = n, n = [h[1], e, 0, 0])) : g.type === "tableHead" ? (u = !0, o = e) : g.type === "tableRow" || g.type === "tableDelimiterRow" ? (o = e, h[1] !== 0 ? (n[0] = n[1], l = M(b, i, h, s, e, l)) : n[1] !== 0 && (l = M(b, i, n, s, e, l)), s = 0) : s && (g.type === "data" || g.type === "tableDelimiterMarker" || g.type === "tableDelimiterFiller") && (n[3] = e);
|
|
784
|
+
}
|
|
785
|
+
for (o !== 0 && Y(b, i, o, m, f), b.consume(i.events), e = -1; ++e < i.events.length; ) {
|
|
786
|
+
const p = i.events[e];
|
|
787
|
+
p[0] === "enter" && p[1].type === "table" && (p[1]._align = Qt(i.events, e));
|
|
788
|
+
}
|
|
789
|
+
return t;
|
|
790
|
+
}
|
|
791
|
+
function M(t, i, e, r, s, h) {
|
|
792
|
+
const n = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", u = "tableContent";
|
|
793
|
+
e[0] !== 0 && (h.end = Object.assign({}, S(i.events, e[0])), t.add(e[0], 0, [["exit", h, i]]));
|
|
794
|
+
const o = S(i.events, e[1]);
|
|
795
|
+
if (h = {
|
|
796
|
+
type: n,
|
|
797
|
+
start: Object.assign({}, o),
|
|
798
|
+
// Note: correct end is set later.
|
|
799
|
+
end: Object.assign({}, o)
|
|
800
|
+
}, t.add(e[1], 0, [["enter", h, i]]), e[2] !== 0) {
|
|
801
|
+
const m = S(i.events, e[2]), f = S(i.events, e[3]), l = {
|
|
802
|
+
type: u,
|
|
803
|
+
start: Object.assign({}, m),
|
|
804
|
+
end: Object.assign({}, f)
|
|
805
|
+
};
|
|
806
|
+
if (t.add(e[2], 0, [["enter", l, i]]), r !== 2) {
|
|
807
|
+
const b = i.events[e[2]], p = i.events[e[3]];
|
|
808
|
+
if (b[1].end = Object.assign({}, p[1].end), b[1].type = "chunkText", b[1].contentType = "text", e[3] > e[2] + 1) {
|
|
809
|
+
const g = e[2] + 1, D = e[3] - e[2] - 1;
|
|
810
|
+
t.add(g, D, []);
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
t.add(e[3] + 1, 0, [["exit", l, i]]);
|
|
814
|
+
}
|
|
815
|
+
return s !== void 0 && (h.end = Object.assign({}, S(i.events, s)), t.add(s, 0, [["exit", h, i]]), h = void 0), h;
|
|
816
|
+
}
|
|
817
|
+
function Y(t, i, e, r, s) {
|
|
818
|
+
const h = [], n = S(i.events, e);
|
|
819
|
+
s && (s.end = Object.assign({}, n), h.push(["exit", s, i])), r.end = Object.assign({}, n), h.push(["exit", r, i]), t.add(e + 1, 0, h);
|
|
820
|
+
}
|
|
821
|
+
function S(t, i) {
|
|
822
|
+
const e = t[i], r = e[0] === "enter" ? "start" : "end";
|
|
823
|
+
return e[1][r];
|
|
824
|
+
}
|
|
825
|
+
const ut = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi, Kt = new RegExp("^" + ut.source, "i");
|
|
826
|
+
function vt() {
|
|
827
|
+
return {
|
|
828
|
+
exit: {
|
|
829
|
+
htmlFlowData(t) {
|
|
830
|
+
Z.call(this, t, ut);
|
|
831
|
+
},
|
|
832
|
+
htmlTextData(t) {
|
|
833
|
+
Z.call(this, t, Kt);
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
function Z(t, i) {
|
|
839
|
+
let e = this.sliceSerialize(t);
|
|
840
|
+
this.options.allowDangerousHtml && (e = e.replace(i, "<$1$2")), this.raw(this.encode(e));
|
|
841
|
+
}
|
|
842
|
+
function te() {
|
|
843
|
+
return {
|
|
844
|
+
enter: {
|
|
845
|
+
taskListCheck() {
|
|
846
|
+
this.tag('<input type="checkbox" disabled="" ');
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
exit: {
|
|
850
|
+
taskListCheck() {
|
|
851
|
+
this.tag("/>");
|
|
852
|
+
},
|
|
853
|
+
taskListCheckValueChecked() {
|
|
854
|
+
this.tag('checked="" ');
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
const ee = {
|
|
860
|
+
name: "tasklistCheck",
|
|
861
|
+
tokenize: ie
|
|
862
|
+
};
|
|
863
|
+
function ne() {
|
|
864
|
+
return {
|
|
865
|
+
text: {
|
|
866
|
+
91: ee
|
|
867
|
+
}
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
function ie(t, i, e) {
|
|
871
|
+
const r = this;
|
|
872
|
+
return s;
|
|
873
|
+
function s(o) {
|
|
874
|
+
return (
|
|
875
|
+
// Exit if there’s stuff before.
|
|
876
|
+
r.previous !== null || // Exit if not in the first content that is the first child of a list
|
|
877
|
+
// item.
|
|
878
|
+
!r._gfmTasklistFirstContentOfListItem ? e(o) : (t.enter("taskListCheck"), t.enter("taskListCheckMarker"), t.consume(o), t.exit("taskListCheckMarker"), h)
|
|
879
|
+
);
|
|
880
|
+
}
|
|
881
|
+
function h(o) {
|
|
882
|
+
return k(o) ? (t.enter("taskListCheckValueUnchecked"), t.consume(o), t.exit("taskListCheckValueUnchecked"), n) : o === 88 || o === 120 ? (t.enter("taskListCheckValueChecked"), t.consume(o), t.exit("taskListCheckValueChecked"), n) : e(o);
|
|
883
|
+
}
|
|
884
|
+
function n(o) {
|
|
885
|
+
return o === 93 ? (t.enter("taskListCheckMarker"), t.consume(o), t.exit("taskListCheckMarker"), t.exit("taskListCheck"), u) : e(o);
|
|
886
|
+
}
|
|
887
|
+
function u(o) {
|
|
888
|
+
return L(o) ? i(o) : x(o) ? t.check({
|
|
889
|
+
tokenize: re
|
|
890
|
+
}, i, e)(o) : e(o);
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
function re(t, i, e) {
|
|
894
|
+
return F(t, r, "whitespace");
|
|
895
|
+
function r(s) {
|
|
896
|
+
return s === null ? e(s) : i(s);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
function ae(t) {
|
|
900
|
+
return mt([
|
|
901
|
+
kt(),
|
|
902
|
+
Et(),
|
|
903
|
+
Vt(t),
|
|
904
|
+
Xt(),
|
|
905
|
+
ne()
|
|
906
|
+
]);
|
|
907
|
+
}
|
|
908
|
+
function ue(t) {
|
|
909
|
+
return ft([
|
|
910
|
+
St(),
|
|
911
|
+
Wt(t),
|
|
912
|
+
qt(),
|
|
913
|
+
Ut(),
|
|
914
|
+
vt(),
|
|
915
|
+
te()
|
|
916
|
+
]);
|
|
917
|
+
}
|
|
918
|
+
export {
|
|
919
|
+
ae as gfm,
|
|
920
|
+
ue as gfmHtml
|
|
921
|
+
};
|