@adyen/bento-vue3 1.88.1 → 1.89.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +722 -524
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/list-item.css +1 -0
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.QQ06tTjt.js → accordion-item.BX1KrLMl.js} +6 -15
- package/dist/chunks/{accordion-item.QQ06tTjt.js.map → accordion-item.BX1KrLMl.js.map} +1 -1
- package/dist/chunks/{action-bar.BS2cJzG_.js → action-bar.DLMaIUWW.js} +8 -34
- package/dist/chunks/{action-bar.BS2cJzG_.js.map → action-bar.DLMaIUWW.js.map} +1 -1
- package/dist/chunks/{ai-button.XfeGC4-Q.js → ai-button.1YJdI-sw.js} +3 -3
- package/dist/chunks/{ai-button.XfeGC4-Q.js.map → ai-button.1YJdI-sw.js.map} +1 -1
- package/dist/chunks/{ai-tag.DVCW-_vD.js → ai-tag.DK63ExDc.js} +6 -15
- package/dist/chunks/{ai-tag.DVCW-_vD.js.map → ai-tag.DK63ExDc.js.map} +1 -1
- package/dist/chunks/{alert.CDWtu0Hu.js → alert.C_8-VNi_.js} +6 -24
- package/dist/chunks/{alert.CDWtu0Hu.js.map → alert.C_8-VNi_.js.map} +1 -1
- package/dist/chunks/anchor-scroller.NhjLDBZI.js +207 -0
- package/dist/chunks/{anchor-scroller.BctgW0se.js.map → anchor-scroller.NhjLDBZI.js.map} +1 -1
- package/dist/chunks/{base-button.CRYAiuzn.js → base-button.CvHl36Ue.js} +24 -27
- package/dist/chunks/{base-button.CRYAiuzn.js.map → base-button.CvHl36Ue.js.map} +1 -1
- package/dist/chunks/base-modal.C2-JyHC_.js +424 -0
- package/dist/chunks/{base-modal.gZAtk-xP.js.map → base-modal.C2-JyHC_.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.BQFAgAI2.js +85 -0
- package/dist/chunks/{button-actions-with-menu.Tba1ME79.js.map → button-actions-with-menu.BQFAgAI2.js.map} +1 -1
- package/dist/chunks/{button-actions.BYBpjNqy.js → button-actions.cMQWyZne.js} +511 -542
- package/dist/chunks/{button-actions.BYBpjNqy.js.map → button-actions.cMQWyZne.js.map} +1 -1
- package/dist/chunks/{button.C6t9_lzm.js → button.DWF7FSIw.js} +42 -45
- package/dist/chunks/{button.C6t9_lzm.js.map → button.DWF7FSIw.js.map} +1 -1
- package/dist/chunks/calendar.DcCqkSNJ.js +1201 -0
- package/dist/chunks/{calendar.vM3abC8y.js.map → calendar.DcCqkSNJ.js.map} +1 -1
- package/dist/chunks/{card.Cw63i7Ul.js → card.CoxQ_L0w.js} +9 -21
- package/dist/chunks/{card.Cw63i7Ul.js.map → card.CoxQ_L0w.js.map} +1 -1
- package/dist/chunks/{checkbox-group.ODQy-ICn.js → checkbox-group.96n9Cc3W.js} +5 -5
- package/dist/chunks/{checkbox-group.ODQy-ICn.js.map → checkbox-group.96n9Cc3W.js.map} +1 -1
- package/dist/chunks/{checkbox-input.BZjSoCQW.js → checkbox-input.CVFQCfZM.js} +44 -51
- package/dist/chunks/{checkbox-input.BZjSoCQW.js.map → checkbox-input.CVFQCfZM.js.map} +1 -1
- package/dist/chunks/{checkbox.C3Ewfygy.js → checkbox.C6ATh8f5.js} +85 -94
- package/dist/chunks/{checkbox.C3Ewfygy.js.map → checkbox.C6ATh8f5.js.map} +1 -1
- package/dist/chunks/chevron-right-small.BCinNiMt.js +29 -0
- package/dist/chunks/chevron-right-small.BCinNiMt.js.map +1 -0
- package/dist/chunks/{chip.CyW1V8RU.js → chip.CdgpQyXN.js} +6 -12
- package/dist/chunks/{chip.CyW1V8RU.js.map → chip.CdgpQyXN.js.map} +1 -1
- package/dist/chunks/click-outside.BPylIosK.js +20 -0
- package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BPylIosK.js.map} +1 -1
- package/dist/chunks/{code-snippet.BaJU2I5_.js → code-snippet.DgAuuZF5.js} +9 -24
- package/dist/chunks/{code-snippet.BaJU2I5_.js.map → code-snippet.DgAuuZF5.js.map} +1 -1
- package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
- package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
- package/dist/chunks/constructNow.D9uRk678.js +8 -0
- package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.D9uRk678.js.map} +1 -1
- package/dist/chunks/{controls-group.Bu5lNTyH.js → controls-group.C7hOE1F4.js} +3 -3
- package/dist/chunks/{controls-group.Bu5lNTyH.js.map → controls-group.C7hOE1F4.js.map} +1 -1
- package/dist/chunks/{copy.C_BCNHYQ.js → copy.C2kQ1PbI.js} +7 -19
- package/dist/chunks/{copy.C_BCNHYQ.js.map → copy.C2kQ1PbI.js.map} +1 -1
- package/dist/chunks/{country.DJts6kCv.js → country.CaGc08Ps.js} +3 -3
- package/dist/chunks/{country.DJts6kCv.js.map → country.CaGc08Ps.js.map} +1 -1
- package/dist/chunks/country.types.DjpMGz7a.js +19 -0
- package/dist/chunks/{country.types.BBQbWkTY.js.map → country.types.DjpMGz7a.js.map} +1 -1
- package/dist/chunks/{currency.Afx8MVdY.js → currency.DuTEzR_W.js} +40 -42
- package/dist/chunks/{currency.Afx8MVdY.js.map → currency.DuTEzR_W.js.map} +1 -1
- package/dist/chunks/dashboard-section.UafHRkMa.js +161 -0
- package/dist/chunks/{dashboard-section.CgoLquLP.js.map → dashboard-section.UafHRkMa.js.map} +1 -1
- package/dist/chunks/dashed-underline.CcDV2Aks.js +108 -0
- package/dist/chunks/{dashed-underline.wbRHATeE.js.map → dashed-underline.CcDV2Aks.js.map} +1 -1
- package/dist/chunks/data-grid-template.CnC4TQvk.js +135 -0
- package/dist/chunks/{data-grid-template.D40V1cmi.js.map → data-grid-template.CnC4TQvk.js.map} +1 -1
- package/dist/chunks/data-grid.BSIXLRm7.js +4014 -0
- package/dist/chunks/{data-grid.C2nCCbeC.js.map → data-grid.BSIXLRm7.js.map} +1 -1
- package/dist/chunks/date-picker.dlzZ_-5f.js +231 -0
- package/dist/chunks/{date-picker.D5B_SECc.js.map → date-picker.dlzZ_-5f.js.map} +1 -1
- package/dist/chunks/date-range-picker.DC6CK0As.js +995 -0
- package/dist/chunks/{date-range-picker.B0q7Z4df.js.map → date-range-picker.DC6CK0As.js.map} +1 -1
- package/dist/chunks/{date.BtB1HyWQ.js → date.R2Wz6o7J.js} +28 -28
- package/dist/chunks/{date.BtB1HyWQ.js.map → date.R2Wz6o7J.js.map} +1 -1
- package/dist/chunks/{de.BJvo6njq.js → de.DXrHnkLX.js} +18 -18
- package/dist/chunks/{de.BJvo6njq.js.map → de.DXrHnkLX.js.map} +1 -1
- package/dist/chunks/{dialog-page.C1KUI51V.js → dialog-page.COfKqjT-.js} +7 -13
- package/dist/chunks/{dialog-page.C1KUI51V.js.map → dialog-page.COfKqjT-.js.map} +1 -1
- package/dist/chunks/differenceInMonths.s_znQQpw.js +43 -0
- package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.s_znQQpw.js.map} +1 -1
- package/dist/chunks/{directive.rXUeDb8p.js → directive.Dpivxq_t.js} +2 -2
- package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Dpivxq_t.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.CskseEho.js → dropdown-default-textbox.bq9AlGzJ.js} +55 -64
- package/dist/chunks/{dropdown-default-textbox.CskseEho.js.map → dropdown-default-textbox.bq9AlGzJ.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.Zj-exiup.js → dropdown-tag.Ysrac5GN.js} +82 -86
- package/dist/chunks/{dropdown-tag.Zj-exiup.js.map → dropdown-tag.Ysrac5GN.js.map} +1 -1
- package/dist/chunks/dropdown.MhmX1P9o.js +799 -0
- package/dist/chunks/{dropdown.CxjzXI-k.js.map → dropdown.MhmX1P9o.js.map} +1 -1
- package/dist/chunks/{empty-state.DqdPzU-g.js → empty-state.DT4sFyjB.js} +7 -14
- package/dist/chunks/{empty-state.DqdPzU-g.js.map → empty-state.DT4sFyjB.js.map} +1 -1
- package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.CBpvhDYV.js} +2 -2
- package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.CBpvhDYV.js.map} +1 -1
- package/dist/chunks/{en-US.YeSsZuOc.js → en-US.CCazFVNP.js} +30 -30
- package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.CCazFVNP.js.map} +1 -1
- package/dist/chunks/{error-message.oGiefI2-.js → error-message.DCgo8q20.js} +8 -20
- package/dist/chunks/{error-message.oGiefI2-.js.map → error-message.DCgo8q20.js.map} +1 -1
- package/dist/chunks/{es.DyUjjSL8.js → es.CoF2PB8b.js} +14 -14
- package/dist/chunks/{es.DyUjjSL8.js.map → es.CoF2PB8b.js.map} +1 -1
- package/dist/chunks/{file-uploader.BnmNI1O7.js → file-uploader.Bfd1uUMe.js} +575 -680
- package/dist/chunks/{file-uploader.BnmNI1O7.js.map → file-uploader.Bfd1uUMe.js.map} +1 -1
- package/dist/chunks/filter-bar.CkAjLQol.js +3675 -0
- package/dist/chunks/filter-bar.CkAjLQol.js.map +1 -0
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +150 -0
- package/dist/chunks/{fixed-scroller.i1tmEmst.js.map → fixed-scroller.DtkaGyMD.js.map} +1 -1
- package/dist/chunks/{focus-trap.BxCwzLqN.js → focus-trap.BAiM_ywb.js} +70 -86
- package/dist/chunks/{focus-trap.BxCwzLqN.js.map → focus-trap.BAiM_ywb.js.map} +1 -1
- package/dist/chunks/{footer-actions.Ck6UztD8.js → footer-actions.BcYSsoUg.js} +3 -3
- package/dist/chunks/{footer-actions.Ck6UztD8.js.map → footer-actions.BcYSsoUg.js.map} +1 -1
- package/dist/chunks/{form-layout-title.CQfeGyVw.js → form-layout-title.DW5Kg1rh.js} +4 -6
- package/dist/chunks/{form-layout-title.CQfeGyVw.js.map → form-layout-title.DW5Kg1rh.js.map} +1 -1
- package/dist/chunks/{fr.JD_4GwS8.js → fr.CJXL-Ief.js} +16 -16
- package/dist/chunks/{fr.JD_4GwS8.js.map → fr.CJXL-Ief.js.map} +1 -1
- package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
- package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
- package/dist/chunks/get-slot-text.8Fbl1GOr.js +6 -0
- package/dist/chunks/{get-slot-text.CQRAP2_q.js.map → get-slot-text.8Fbl1GOr.js.map} +1 -1
- package/dist/chunks/{grid-layout.Vhv1_zFs.js → grid-layout.CCWNscU_.js} +11 -12
- package/dist/chunks/{grid-layout.Vhv1_zFs.js.map → grid-layout.CCWNscU_.js.map} +1 -1
- package/dist/chunks/{header-meta.lGt3HsyH.js → header-meta.Bym9AlQm.js} +84 -96
- package/dist/chunks/{header-meta.lGt3HsyH.js.map → header-meta.Bym9AlQm.js.map} +1 -1
- package/dist/chunks/{header-with-views.D_sy4I2A.js → header-with-views.Djba6iol.js} +1013 -1156
- package/dist/chunks/{header-with-views.D_sy4I2A.js.map → header-with-views.Djba6iol.js.map} +1 -1
- package/dist/chunks/{header.oXqwf2xN.js → header.o-7SyHtU.js} +4 -4
- package/dist/chunks/{header.oXqwf2xN.js.map → header.o-7SyHtU.js.map} +1 -1
- package/dist/chunks/{index.Dppy4qHk.js → index.DDwcHPb6.js} +12 -12
- package/dist/chunks/{index.Dppy4qHk.js.map → index.DDwcHPb6.js.map} +1 -1
- package/dist/chunks/{info-icon.DyPOv7Pi.js → info-icon.BUala_wq.js} +3 -3
- package/dist/chunks/{info-icon.DyPOv7Pi.js.map → info-icon.BUala_wq.js.map} +1 -1
- package/dist/chunks/input-field-password.DZytmp_p.js +346 -0
- package/dist/chunks/{input-field-password.C_h61CMn.js.map → input-field-password.DZytmp_p.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.KctRYA9p.js → input-field-phone-number.CxblrmaU.js} +720 -736
- package/dist/chunks/{input-field-phone-number.KctRYA9p.js.map → input-field-phone-number.CxblrmaU.js.map} +1 -1
- package/dist/chunks/{input-field.DPElUS0U.js → input-field.CfU0ZKtL.js} +42 -54
- package/dist/chunks/{input-field.DPElUS0U.js.map → input-field.CfU0ZKtL.js.map} +1 -1
- package/dist/chunks/{inspector.BjLhY3bE.js → inspector.B9k4tJWe.js} +9 -27
- package/dist/chunks/{inspector.BjLhY3bE.js.map → inspector.B9k4tJWe.js.map} +1 -1
- package/dist/chunks/isSameWeek.Dj6luS8h.js +14 -0
- package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.Dj6luS8h.js.map} +1 -1
- package/dist/chunks/{it.BlUnV-yA.js → it.20Y7h-bF.js} +8 -8
- package/dist/chunks/{it.BlUnV-yA.js.map → it.20Y7h-bF.js.map} +1 -1
- package/dist/chunks/{ja.nUwDmVf2.js → ja.DXlq0H98.js} +27 -27
- package/dist/chunks/{ja.nUwDmVf2.js.map → ja.DXlq0H98.js.map} +1 -1
- package/dist/chunks/layout-row.B5VJGEQH.js +99 -0
- package/dist/chunks/{layout-row.Da8nkm9z.js.map → layout-row.B5VJGEQH.js.map} +1 -1
- package/dist/chunks/link.D6D6YGsN.js +113 -0
- package/dist/chunks/{link.DTCn2EtX.js.map → link.D6D6YGsN.js.map} +1 -1
- package/dist/chunks/list-item.DO5uULke.js +128 -0
- package/dist/chunks/list-item.DO5uULke.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.CoBUYwFG.js → listbox-option-tag.Cvplth7d.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CoBUYwFG.js.map → listbox-option-tag.Cvplth7d.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.9ZDR_S29.js → modal-fullscreen.CuKVyTWb.js} +100 -108
- package/dist/chunks/{modal-fullscreen.9ZDR_S29.js.map → modal-fullscreen.CuKVyTWb.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js} +134 -143
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map} +1 -1
- package/dist/chunks/on-click-outside.ZUMLlxE_.js +90 -0
- package/dist/chunks/{on-click-outside.BW4rkhzG.js.map → on-click-outside.ZUMLlxE_.js.map} +1 -1
- package/dist/chunks/pagination.dpVc6Yt0.js +401 -0
- package/dist/chunks/pagination.dpVc6Yt0.js.map +1 -0
- package/dist/chunks/popover.types.D8tHtFl3.js +6 -0
- package/dist/chunks/{popover.types.DhALnOLQ.js.map → popover.types.D8tHtFl3.js.map} +1 -1
- package/dist/chunks/{popper-container.DAK7c9uS.js → popper-container.DMN8n5iC.js} +79 -86
- package/dist/chunks/{popper-container.DAK7c9uS.js.map → popper-container.DMN8n5iC.js.map} +1 -1
- package/dist/chunks/{promo-banner.aNwH6uQx.js → promo-banner.BzveHNOI.js} +7 -13
- package/dist/chunks/{promo-banner.aNwH6uQx.js.map → promo-banner.BzveHNOI.js.map} +1 -1
- package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.DmhmCzxE.js} +14 -14
- package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.DmhmCzxE.js.map} +1 -1
- package/dist/chunks/{radio-group.DEYzF6o7.js → radio-group.Cuiq4mxy.js} +46 -46
- package/dist/chunks/{radio-group.DEYzF6o7.js.map → radio-group.Cuiq4mxy.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DH1d5Zcp.js → rich-text-editor.DLMiT4f5.js} +1018 -1024
- package/dist/chunks/{rich-text-editor.DH1d5Zcp.js.map → rich-text-editor.DLMiT4f5.js.map} +1 -1
- package/dist/chunks/{search-bar.Dtzx88Pv.js → search-bar.CsFyP0_I.js} +6 -15
- package/dist/chunks/{search-bar.Dtzx88Pv.js.map → search-bar.CsFyP0_I.js.map} +1 -1
- package/dist/chunks/{secondary-nav.Zs7dBoJv.js → secondary-nav.CLBdq98c.js} +6 -12
- package/dist/chunks/{secondary-nav.Zs7dBoJv.js.map → secondary-nav.CLBdq98c.js.map} +1 -1
- package/dist/chunks/{segmented-control.Aqquod8g.js → segmented-control.KeQ5kuR1.js} +47 -51
- package/dist/chunks/{segmented-control.Aqquod8g.js.map → segmented-control.KeQ5kuR1.js.map} +1 -1
- package/dist/chunks/selection-card-group.XM11Kk-4.js +412 -0
- package/dist/chunks/{selection-card-group.C7IK2Vl5.js.map → selection-card-group.XM11Kk-4.js.map} +1 -1
- package/dist/chunks/{sidepanel.DaXPcTHm.js → sidepanel.b2QZ1Jsx.js} +64 -71
- package/dist/chunks/{sidepanel.DaXPcTHm.js.map → sidepanel.b2QZ1Jsx.js.map} +1 -1
- package/dist/chunks/startOfWeek.Cvmo-f5J.js +9 -0
- package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Cvmo-f5J.js.map} +1 -1
- package/dist/chunks/status.H00BAmRx.js +42 -0
- package/dist/chunks/status.H00BAmRx.js.map +1 -0
- package/dist/chunks/status.types.Dx8MDhEH.js +5 -0
- package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -0
- package/dist/chunks/{step.BV7MsrRF.js → step.BlwoLfdw.js} +56 -68
- package/dist/chunks/{step.BV7MsrRF.js.map → step.BlwoLfdw.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DAIaUMCY.js → structured-list-item.e-8kRleh.js} +8 -14
- package/dist/chunks/{structured-list-item.DAIaUMCY.js.map → structured-list-item.e-8kRleh.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BZcZS_dW.js → summary-grid.types.CcvOC03H.js} +172 -179
- package/dist/chunks/{summary-grid.types.BZcZS_dW.js.map → summary-grid.types.CcvOC03H.js.map} +1 -1
- package/dist/chunks/tab.mR5uUSdp.js +265 -0
- package/dist/chunks/{tab.DRrnMCxe.js.map → tab.mR5uUSdp.js.map} +1 -1
- package/dist/chunks/{tag.CqWg6C3H.js → tag.DujMVFh-.js} +3 -3
- package/dist/chunks/{tag.CqWg6C3H.js.map → tag.DujMVFh-.js.map} +1 -1
- package/dist/chunks/textarea.CHV6Z8nt.js +247 -0
- package/dist/chunks/{textarea.CvI2InIB.js.map → textarea.CHV6Z8nt.js.map} +1 -1
- package/dist/chunks/timeline-item.CaGcRZbt.js +419 -0
- package/dist/chunks/timeline-item.CaGcRZbt.js.map +1 -0
- package/dist/chunks/{toast.Bbtq3Icj.js → toast.C2oehk9P.js} +72 -78
- package/dist/chunks/{toast.Bbtq3Icj.js.map → toast.C2oehk9P.js.map} +1 -1
- package/dist/chunks/{toggle.BupEBkIG.js → toggle.BQoprdX-.js} +5 -5
- package/dist/chunks/{toggle.BupEBkIG.js.map → toggle.BQoprdX-.js.map} +1 -1
- package/dist/chunks/tooltip.CbADa_4p.js +199 -0
- package/dist/chunks/{tooltip.Lwtlhv3u.js.map → tooltip.CbADa_4p.js.map} +1 -1
- package/dist/chunks/truncate.DmCXQmeb.js +8 -0
- package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js} +100 -124
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js → use-bento-toast-controller.D_NSnBxi.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js.map → use-bento-toast-controller.D_NSnBxi.js.map} +1 -1
- package/dist/chunks/use-cached-selected-values.ClEJRFAd.js +1631 -0
- package/dist/chunks/{use-cached-selected-values.C4_X3vVj.js.map → use-cached-selected-values.ClEJRFAd.js.map} +1 -1
- package/dist/chunks/use-country-items.D_3LBe2I.js +30 -0
- package/dist/chunks/{use-country-items.BTzByPdQ.js.map → use-country-items.D_3LBe2I.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.DoqTGkNr.js +287 -0
- package/dist/chunks/use-country-phon-code.DoqTGkNr.js.map +1 -0
- package/dist/chunks/use-date-input-formatter.CDRzd-hW.js +1629 -0
- package/dist/chunks/{use-date-input-formatter.dtbK-CEy.js.map → use-date-input-formatter.CDRzd-hW.js.map} +1 -1
- package/dist/chunks/use-default-slot-validator.BzHcrgmy.js +12 -0
- package/dist/chunks/{use-default-slot-validator.O02rzsob.js.map → use-default-slot-validator.BzHcrgmy.js.map} +1 -1
- package/dist/chunks/use-expandable-content-height.B5jjRvCz.js +16 -0
- package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.B5jjRvCz.js.map} +1 -1
- package/dist/chunks/use-has-slot.CyMiImRQ.js +14 -0
- package/dist/chunks/{use-has-slot.B7eQSabc.js.map → use-has-slot.CyMiImRQ.js.map} +1 -1
- package/dist/chunks/utils.DWmc2mUI.js +19 -0
- package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
- package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Ce34mXsX.js} +28 -28
- package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Ce34mXsX.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/draggable-handle.js +4 -28
- package/dist/draggable-handle.js.map +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +241 -241
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +13 -13
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/list.js +6 -0
- package/dist/list.js.map +1 -0
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +4 -3
- package/dist/status.js.map +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js +331 -341
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -7
- package/dist/chunks/anchor-scroller.BctgW0se.js +0 -214
- package/dist/chunks/base-modal.gZAtk-xP.js +0 -443
- package/dist/chunks/button-actions-with-menu.Tba1ME79.js +0 -93
- package/dist/chunks/calendar.vM3abC8y.js +0 -1234
- package/dist/chunks/click-outside.CDz_x8mN.js +0 -23
- package/dist/chunks/constructNow.CIc7d13I.js +0 -8
- package/dist/chunks/country.types.BBQbWkTY.js +0 -773
- package/dist/chunks/dashboard-section.CgoLquLP.js +0 -165
- package/dist/chunks/dashed-underline.wbRHATeE.js +0 -114
- package/dist/chunks/data-grid-template.D40V1cmi.js +0 -144
- package/dist/chunks/data-grid.C2nCCbeC.js +0 -4368
- package/dist/chunks/date-picker.D5B_SECc.js +0 -251
- package/dist/chunks/date-range-picker.B0q7Z4df.js +0 -1084
- package/dist/chunks/differenceInMonths.CIYECBxK.js +0 -43
- package/dist/chunks/dropdown.CxjzXI-k.js +0 -837
- package/dist/chunks/filter-bar.DJ7O4zLX.js +0 -4036
- package/dist/chunks/filter-bar.DJ7O4zLX.js.map +0 -1
- package/dist/chunks/fixed-scroller.i1tmEmst.js +0 -161
- package/dist/chunks/get-slot-text.CQRAP2_q.js +0 -12
- package/dist/chunks/input-field-password.C_h61CMn.js +0 -402
- package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
- package/dist/chunks/layout-row.Da8nkm9z.js +0 -100
- package/dist/chunks/link.DTCn2EtX.js +0 -116
- package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
- package/dist/chunks/pagination.B32UgSoH.js +0 -488
- package/dist/chunks/pagination.B32UgSoH.js.map +0 -1
- package/dist/chunks/popover.types.DhALnOLQ.js +0 -6
- package/dist/chunks/selection-card-group.C7IK2Vl5.js +0 -417
- package/dist/chunks/startOfWeek.CXhhX-R7.js +0 -10
- package/dist/chunks/status.types.D3v3k-Q8.js +0 -44
- package/dist/chunks/status.types.D3v3k-Q8.js.map +0 -1
- package/dist/chunks/tab.DRrnMCxe.js +0 -273
- package/dist/chunks/textarea.CvI2InIB.js +0 -255
- package/dist/chunks/timeline-item.BooD99hL.js +0 -427
- package/dist/chunks/timeline-item.BooD99hL.js.map +0 -1
- package/dist/chunks/tooltip.Lwtlhv3u.js +0 -202
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/use-cached-selected-values.C4_X3vVj.js +0 -1711
- package/dist/chunks/use-country-items.BTzByPdQ.js +0 -30
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js +0 -5621
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +0 -1
- package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +0 -1732
- package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
- package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
- package/dist/chunks/utils.BzUwtTXc.js +0 -21
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as Dt, ref as wt, onMounted as
|
|
1
|
+
import { defineComponent as Dt, ref as wt, onMounted as rr, watch as me, openBlock as Z, createElementBlock as Ft, toDisplayString as Nt, createBlock as pt, unref as ht, withCtx as Pt, renderSlot as Tt, createElementVNode as $t, computed as xt, normalizeStyle as ir, h as Q, useAttrs as ur, createCommentVNode as Xt, mergeProps as lr, createVNode as Pe, KeepAlive as ar, createTextVNode as Me, normalizeClass as or } from "vue";
|
|
2
2
|
import { B as Oe } from "./typography.B3J6_tYk.js";
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
3
|
+
import { B as sr } from "./segmented-control.KeQ5kuR1.js";
|
|
4
|
+
import { B as cr } from "./alert.C_8-VNi_.js";
|
|
5
5
|
import { _ as Fe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { B as
|
|
7
|
-
import { B as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { g as Re } from "./generate-uid.
|
|
11
|
-
import { F as
|
|
6
|
+
import { B as fr } from "./link.D6D6YGsN.js";
|
|
7
|
+
import { B as hr } from "./checkbox.C6ATh8f5.js";
|
|
8
|
+
import { u as pr } from "./index.B875RXHM.js";
|
|
9
|
+
import { u as mr } from "./aria-label.CaUURpnB.js";
|
|
10
|
+
import { g as Re } from "./generate-uid.DBWe4g6T.js";
|
|
11
|
+
import { F as gr, E as dr } from "./error-message.DCgo8q20.js";
|
|
12
12
|
import "../assets/rich-text-editor.css";
|
|
13
|
-
const
|
|
13
|
+
const kr = ["disabled"], xr = /* @__PURE__ */ Dt({
|
|
14
14
|
__name: "rich-text-editor-content-area",
|
|
15
15
|
props: {
|
|
16
16
|
value: { default: null },
|
|
@@ -22,7 +22,7 @@ const Sr = ["disabled"], Cr = /* @__PURE__ */ Dt({
|
|
|
22
22
|
r("input", a.target.innerText);
|
|
23
23
|
}, u = () => {
|
|
24
24
|
};
|
|
25
|
-
return
|
|
25
|
+
return rr(() => {
|
|
26
26
|
i.value && i.value.innerText !== e.value && (i.value.innerText = e.value);
|
|
27
27
|
}), me(
|
|
28
28
|
() => e.value,
|
|
@@ -38,9 +38,9 @@ const Sr = ["disabled"], Cr = /* @__PURE__ */ Dt({
|
|
|
38
38
|
class: "b-rich-text-editor-content-area",
|
|
39
39
|
onInput: l,
|
|
40
40
|
onKeydown: u
|
|
41
|
-
}, null, 40,
|
|
41
|
+
}, null, 40, kr));
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
43
|
+
}), br = /* @__PURE__ */ Fe(xr, [["__scopeId", "data-v-36c7b18d"]]);
|
|
44
44
|
function X(t, n, e, r) {
|
|
45
45
|
const i = t.length;
|
|
46
46
|
let l = 0, u;
|
|
@@ -54,14 +54,14 @@ function tt(t, n) {
|
|
|
54
54
|
return t.length > 0 ? (X(t, t.length, 0, n), t) : n;
|
|
55
55
|
}
|
|
56
56
|
const je = {}.hasOwnProperty;
|
|
57
|
-
function
|
|
57
|
+
function gn(t) {
|
|
58
58
|
const n = {};
|
|
59
59
|
let e = -1;
|
|
60
60
|
for (; ++e < t.length; )
|
|
61
|
-
|
|
61
|
+
yr(n, t[e]);
|
|
62
62
|
return n;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function yr(t, n) {
|
|
65
65
|
let e;
|
|
66
66
|
for (e in n) {
|
|
67
67
|
const i = (je.call(t, e) ? t[e] : void 0) || (t[e] = {}), l = n[e];
|
|
@@ -70,7 +70,7 @@ function Er(t, n) {
|
|
|
70
70
|
for (u in l) {
|
|
71
71
|
je.call(i, u) || (i[u] = []);
|
|
72
72
|
const a = l[u];
|
|
73
|
-
|
|
73
|
+
wr(
|
|
74
74
|
// @ts-expect-error Looks like a list.
|
|
75
75
|
i[u],
|
|
76
76
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -78,22 +78,22 @@ function Er(t, n) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function wr(t, n) {
|
|
82
82
|
let e = -1;
|
|
83
83
|
const r = [];
|
|
84
84
|
for (; ++e < n.length; )
|
|
85
85
|
(n[e].add === "after" ? t : r).push(n[e]);
|
|
86
86
|
X(t, 0, 0, r);
|
|
87
87
|
}
|
|
88
|
-
const
|
|
89
|
-
function
|
|
88
|
+
const Fr = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, G = bt(/[A-Za-z]/), J = bt(/[\dA-Za-z]/), Sr = bt(/[#-'*+\--9=?A-Z^-~]/);
|
|
89
|
+
function Ut(t) {
|
|
90
90
|
return (
|
|
91
91
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
92
92
|
// character DEL
|
|
93
93
|
t !== null && (t < 32 || t === 127)
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
|
-
const ge = bt(/\d/),
|
|
96
|
+
const ge = bt(/\d/), Cr = bt(/[\dA-Fa-f]/), Ar = bt(/[!-/:-@[-`{-~]/);
|
|
97
97
|
function T(t) {
|
|
98
98
|
return t !== null && t < -2;
|
|
99
99
|
}
|
|
@@ -103,38 +103,38 @@ function V(t) {
|
|
|
103
103
|
function B(t) {
|
|
104
104
|
return t === -2 || t === -1 || t === 32;
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const Qt = bt(Fr), St = bt(/\s/);
|
|
107
107
|
function bt(t) {
|
|
108
108
|
return n;
|
|
109
109
|
function n(e) {
|
|
110
110
|
return e !== null && t.test(String.fromCharCode(e));
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
const
|
|
114
|
-
tokenize:
|
|
113
|
+
const Er = {
|
|
114
|
+
tokenize: Lr,
|
|
115
115
|
partial: !0
|
|
116
|
-
},
|
|
117
|
-
tokenize:
|
|
116
|
+
}, dn = {
|
|
117
|
+
tokenize: Br,
|
|
118
118
|
partial: !0
|
|
119
|
-
},
|
|
120
|
-
tokenize:
|
|
121
|
-
partial: !0
|
|
122
|
-
}, Sn = {
|
|
123
|
-
tokenize: Hr,
|
|
119
|
+
}, kn = {
|
|
120
|
+
tokenize: Pr,
|
|
124
121
|
partial: !0
|
|
125
|
-
},
|
|
126
|
-
tokenize:
|
|
122
|
+
}, xn = {
|
|
123
|
+
tokenize: Mr,
|
|
127
124
|
partial: !0
|
|
128
|
-
},
|
|
125
|
+
}, zr = {
|
|
129
126
|
tokenize: Or,
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
tokenize:
|
|
133
|
-
previous:
|
|
127
|
+
partial: !0
|
|
128
|
+
}, bn = {
|
|
129
|
+
tokenize: Dr,
|
|
130
|
+
previous: wn
|
|
131
|
+
}, yn = {
|
|
132
|
+
tokenize: _r,
|
|
133
|
+
previous: Fn
|
|
134
134
|
}, mt = {
|
|
135
|
-
tokenize:
|
|
136
|
-
previous:
|
|
137
|
-
}, at = {},
|
|
135
|
+
tokenize: Tr,
|
|
136
|
+
previous: Sn
|
|
137
|
+
}, at = {}, Ir = {
|
|
138
138
|
text: at
|
|
139
139
|
};
|
|
140
140
|
let yt = 48;
|
|
@@ -144,23 +144,23 @@ at[43] = mt;
|
|
|
144
144
|
at[45] = mt;
|
|
145
145
|
at[46] = mt;
|
|
146
146
|
at[95] = mt;
|
|
147
|
-
at[72] = [mt,
|
|
148
|
-
at[104] = [mt,
|
|
149
|
-
at[87] = [mt,
|
|
150
|
-
at[119] = [mt,
|
|
151
|
-
function
|
|
147
|
+
at[72] = [mt, yn];
|
|
148
|
+
at[104] = [mt, yn];
|
|
149
|
+
at[87] = [mt, bn];
|
|
150
|
+
at[119] = [mt, bn];
|
|
151
|
+
function Tr(t, n, e) {
|
|
152
152
|
const r = this;
|
|
153
153
|
let i, l;
|
|
154
154
|
return u;
|
|
155
155
|
function u(o) {
|
|
156
|
-
return !de(o) || !
|
|
156
|
+
return !de(o) || !Sn.call(r, r.previous) || Se(r.events) ? e(o) : (t.enter("literalAutolink"), t.enter("literalAutolinkEmail"), a(o));
|
|
157
157
|
}
|
|
158
158
|
function a(o) {
|
|
159
159
|
return de(o) ? (t.consume(o), a) : o === 64 ? (t.consume(o), c) : e(o);
|
|
160
160
|
}
|
|
161
161
|
function c(o) {
|
|
162
162
|
return o === 46 ? t.check(
|
|
163
|
-
|
|
163
|
+
zr,
|
|
164
164
|
f,
|
|
165
165
|
s
|
|
166
166
|
)(o) : o === 45 || o === 95 || J(o) ? (l = !0, t.consume(o), c) : f(o);
|
|
@@ -172,13 +172,13 @@ function Mr(t, n, e) {
|
|
|
172
172
|
return l && i && G(r.previous) ? (t.exit("literalAutolinkEmail"), t.exit("literalAutolink"), n(o)) : e(o);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Dr(t, n, e) {
|
|
176
176
|
const r = this;
|
|
177
177
|
return i;
|
|
178
178
|
function i(u) {
|
|
179
|
-
return u !== 87 && u !== 119 || !
|
|
180
|
-
|
|
181
|
-
t.attempt(
|
|
179
|
+
return u !== 87 && u !== 119 || !wn.call(r, r.previous) || Se(r.events) ? e(u) : (t.enter("literalAutolink"), t.enter("literalAutolinkWww"), t.check(
|
|
180
|
+
Er,
|
|
181
|
+
t.attempt(dn, t.attempt(kn, l), e),
|
|
182
182
|
e
|
|
183
183
|
)(u));
|
|
184
184
|
}
|
|
@@ -186,19 +186,19 @@ function Or(t, n, e) {
|
|
|
186
186
|
return t.exit("literalAutolinkWww"), t.exit("literalAutolink"), n(u);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function _r(t, n, e) {
|
|
190
190
|
const r = this;
|
|
191
191
|
let i = "", l = !1;
|
|
192
192
|
return u;
|
|
193
193
|
function u(o) {
|
|
194
|
-
return (o === 72 || o === 104) &&
|
|
194
|
+
return (o === 72 || o === 104) && Fn.call(r, r.previous) && !Se(r.events) ? (t.enter("literalAutolink"), t.enter("literalAutolinkHttp"), i += String.fromCodePoint(o), t.consume(o), a) : e(o);
|
|
195
195
|
}
|
|
196
196
|
function a(o) {
|
|
197
197
|
if (G(o) && i.length < 5)
|
|
198
198
|
return i += String.fromCodePoint(o), t.consume(o), a;
|
|
199
199
|
if (o === 58) {
|
|
200
|
-
const
|
|
201
|
-
if (
|
|
200
|
+
const p = i.toLowerCase();
|
|
201
|
+
if (p === "http" || p === "https")
|
|
202
202
|
return t.consume(o), c;
|
|
203
203
|
}
|
|
204
204
|
return e(o);
|
|
@@ -207,13 +207,13 @@ function Rr(t, n, e) {
|
|
|
207
207
|
return o === 47 ? (t.consume(o), l ? s : (l = !0, c)) : e(o);
|
|
208
208
|
}
|
|
209
209
|
function s(o) {
|
|
210
|
-
return o === null ||
|
|
210
|
+
return o === null || Ut(o) || V(o) || St(o) || Qt(o) ? e(o) : t.attempt(dn, t.attempt(kn, f), e)(o);
|
|
211
211
|
}
|
|
212
212
|
function f(o) {
|
|
213
213
|
return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), n(o);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Lr(t, n, e) {
|
|
217
217
|
let r = 0;
|
|
218
218
|
return i;
|
|
219
219
|
function i(u) {
|
|
@@ -223,11 +223,11 @@ function jr(t, n, e) {
|
|
|
223
223
|
return u === null ? e(u) : n(u);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Br(t, n, e) {
|
|
227
227
|
let r, i, l;
|
|
228
228
|
return u;
|
|
229
229
|
function u(s) {
|
|
230
|
-
return s === 46 || s === 95 ? t.check(
|
|
230
|
+
return s === 46 || s === 95 ? t.check(xn, c, a)(s) : s === null || V(s) || St(s) || s !== 45 && Qt(s) ? c(s) : (l = !0, t.consume(s), u);
|
|
231
231
|
}
|
|
232
232
|
function a(s) {
|
|
233
233
|
return s === 95 ? r = !0 : (i = r, r = void 0), t.consume(s), u;
|
|
@@ -236,17 +236,17 @@ function Vr(t, n, e) {
|
|
|
236
236
|
return i || r || !l ? e(s) : n(s);
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Pr(t, n) {
|
|
240
240
|
let e = 0, r = 0;
|
|
241
241
|
return i;
|
|
242
242
|
function i(u) {
|
|
243
|
-
return u === 40 ? (e++, t.consume(u), i) : u === 41 && r < e ? l(u) : u === 33 || u === 34 || u === 38 || u === 39 || u === 41 || u === 42 || u === 44 || u === 46 || u === 58 || u === 59 || u === 60 || u === 63 || u === 93 || u === 95 || u === 126 ? t.check(
|
|
243
|
+
return u === 40 ? (e++, t.consume(u), i) : u === 41 && r < e ? l(u) : u === 33 || u === 34 || u === 38 || u === 39 || u === 41 || u === 42 || u === 44 || u === 46 || u === 58 || u === 59 || u === 60 || u === 63 || u === 93 || u === 95 || u === 126 ? t.check(xn, n, l)(u) : u === null || V(u) || St(u) ? n(u) : (t.consume(u), i);
|
|
244
244
|
}
|
|
245
245
|
function l(u) {
|
|
246
246
|
return u === 41 && r++, t.consume(u), i;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Mr(t, n, e) {
|
|
250
250
|
return r;
|
|
251
251
|
function r(a) {
|
|
252
252
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (t.consume(a), r) : a === 38 ? (t.consume(a), l) : a === 93 ? (t.consume(a), i) : (
|
|
@@ -265,7 +265,7 @@ function Hr(t, n, e) {
|
|
|
265
265
|
return a === 59 ? (t.consume(a), r) : G(a) ? (t.consume(a), u) : e(a);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Or(t, n, e) {
|
|
269
269
|
return r;
|
|
270
270
|
function r(l) {
|
|
271
271
|
return t.consume(l), i;
|
|
@@ -274,13 +274,13 @@ function Nr(t, n, e) {
|
|
|
274
274
|
return J(l) ? e(l) : n(l);
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function wn(t) {
|
|
278
278
|
return t === null || t === 40 || t === 42 || t === 95 || t === 91 || t === 93 || t === 126 || V(t);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Fn(t) {
|
|
281
281
|
return !G(t);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Sn(t) {
|
|
284
284
|
return !(t === 47 || de(t));
|
|
285
285
|
}
|
|
286
286
|
function de(t) {
|
|
@@ -301,13 +301,13 @@ function Se(t) {
|
|
|
301
301
|
}
|
|
302
302
|
return t.length > 0 && !e && (t[t.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), e;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Wt(t) {
|
|
305
305
|
if (t === null || V(t) || St(t))
|
|
306
306
|
return 1;
|
|
307
|
-
if (
|
|
307
|
+
if (Qt(t))
|
|
308
308
|
return 2;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Zt(t, n, e) {
|
|
311
311
|
const r = [];
|
|
312
312
|
let i = -1;
|
|
313
313
|
for (; ++i < t.length; ) {
|
|
@@ -318,10 +318,10 @@ function Gt(t, n, e) {
|
|
|
318
318
|
}
|
|
319
319
|
const ke = {
|
|
320
320
|
name: "attention",
|
|
321
|
-
tokenize:
|
|
322
|
-
resolveAll:
|
|
321
|
+
tokenize: jr,
|
|
322
|
+
resolveAll: Rr
|
|
323
323
|
};
|
|
324
|
-
function
|
|
324
|
+
function Rr(t, n) {
|
|
325
325
|
let e = -1, r, i, l, u, a, c, s, f;
|
|
326
326
|
for (; ++e < t.length; )
|
|
327
327
|
if (t[e][0] === "enter" && t[e][1].type === "attentionSequence" && t[e][1]._close) {
|
|
@@ -331,15 +331,15 @@ function $r(t, n) {
|
|
|
331
331
|
if ((t[r][1]._close || t[e][1]._open) && (t[e][1].end.offset - t[e][1].start.offset) % 3 && !((t[r][1].end.offset - t[r][1].start.offset + t[e][1].end.offset - t[e][1].start.offset) % 3))
|
|
332
332
|
continue;
|
|
333
333
|
c = t[r][1].end.offset - t[r][1].start.offset > 1 && t[e][1].end.offset - t[e][1].start.offset > 1 ? 2 : 1;
|
|
334
|
-
const o = Object.assign({}, t[r][1].end),
|
|
335
|
-
Ve(o, -c), Ve(
|
|
334
|
+
const o = Object.assign({}, t[r][1].end), p = Object.assign({}, t[e][1].start);
|
|
335
|
+
Ve(o, -c), Ve(p, c), u = {
|
|
336
336
|
type: c > 1 ? "strongSequence" : "emphasisSequence",
|
|
337
337
|
start: o,
|
|
338
338
|
end: Object.assign({}, t[r][1].end)
|
|
339
339
|
}, a = {
|
|
340
340
|
type: c > 1 ? "strongSequence" : "emphasisSequence",
|
|
341
341
|
start: Object.assign({}, t[e][1].start),
|
|
342
|
-
end:
|
|
342
|
+
end: p
|
|
343
343
|
}, l = {
|
|
344
344
|
type: c > 1 ? "strongText" : "emphasisText",
|
|
345
345
|
start: Object.assign({}, t[r][1].end),
|
|
@@ -358,7 +358,7 @@ function $r(t, n) {
|
|
|
358
358
|
["enter", l, n]
|
|
359
359
|
]), s = tt(
|
|
360
360
|
s,
|
|
361
|
-
|
|
361
|
+
Zt(
|
|
362
362
|
n.parser.constructs.insideSpan.null,
|
|
363
363
|
t.slice(r + 1, e),
|
|
364
364
|
n
|
|
@@ -379,8 +379,8 @@ function $r(t, n) {
|
|
|
379
379
|
t[e][1].type === "attentionSequence" && (t[e][1].type = "data");
|
|
380
380
|
return t;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
const e = this.parser.constructs.attentionMarkers.null, r = this.previous, i =
|
|
382
|
+
function jr(t, n) {
|
|
383
|
+
const e = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Wt(r);
|
|
384
384
|
let l;
|
|
385
385
|
return u;
|
|
386
386
|
function u(c) {
|
|
@@ -389,18 +389,18 @@ function Ur(t, n) {
|
|
|
389
389
|
function a(c) {
|
|
390
390
|
if (c === l)
|
|
391
391
|
return t.consume(c), a;
|
|
392
|
-
const s = t.exit("attentionSequence"), f =
|
|
393
|
-
return s._open = !!(l === 42 ? o : o && (i || !
|
|
392
|
+
const s = t.exit("attentionSequence"), f = Wt(c), o = !f || f === 2 && i || e.includes(c), p = !i || i === 2 && f || e.includes(r);
|
|
393
|
+
return s._open = !!(l === 42 ? o : o && (i || !p)), s._close = !!(l === 42 ? p : p && (f || !o)), n(c);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
function Ve(t, n) {
|
|
397
397
|
t.column += n, t.offset += n, t._bufferIndex += n;
|
|
398
398
|
}
|
|
399
|
-
const
|
|
399
|
+
const Vr = {
|
|
400
400
|
name: "autolink",
|
|
401
|
-
tokenize:
|
|
401
|
+
tokenize: qr
|
|
402
402
|
};
|
|
403
|
-
function
|
|
403
|
+
function qr(t, n, e) {
|
|
404
404
|
let r = 0;
|
|
405
405
|
return i;
|
|
406
406
|
function i(h) {
|
|
@@ -416,20 +416,20 @@ function vr(t, n, e) {
|
|
|
416
416
|
return h === 58 ? (t.consume(h), r = 0, c) : (h === 43 || h === 45 || h === 46 || J(h)) && r++ < 32 ? (t.consume(h), a) : (r = 0, s(h));
|
|
417
417
|
}
|
|
418
418
|
function c(h) {
|
|
419
|
-
return h === 62 ? (t.exit("autolinkProtocol"), t.enter("autolinkMarker"), t.consume(h), t.exit("autolinkMarker"), t.exit("autolink"), n) : h === null || h === 32 || h === 60 ||
|
|
419
|
+
return h === 62 ? (t.exit("autolinkProtocol"), t.enter("autolinkMarker"), t.consume(h), t.exit("autolinkMarker"), t.exit("autolink"), n) : h === null || h === 32 || h === 60 || Ut(h) ? e(h) : (t.consume(h), c);
|
|
420
420
|
}
|
|
421
421
|
function s(h) {
|
|
422
|
-
return h === 64 ? (t.consume(h), f) :
|
|
422
|
+
return h === 64 ? (t.consume(h), f) : Sr(h) ? (t.consume(h), s) : e(h);
|
|
423
423
|
}
|
|
424
424
|
function f(h) {
|
|
425
425
|
return J(h) ? o(h) : e(h);
|
|
426
426
|
}
|
|
427
427
|
function o(h) {
|
|
428
|
-
return h === 46 ? (t.consume(h), r = 0, f) : h === 62 ? (t.exit("autolinkProtocol").type = "autolinkEmail", t.enter("autolinkMarker"), t.consume(h), t.exit("autolinkMarker"), t.exit("autolink"), n) :
|
|
428
|
+
return h === 46 ? (t.consume(h), r = 0, f) : h === 62 ? (t.exit("autolinkProtocol").type = "autolinkEmail", t.enter("autolinkMarker"), t.consume(h), t.exit("autolinkMarker"), t.exit("autolink"), n) : p(h);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function p(h) {
|
|
431
431
|
if ((h === 45 || J(h)) && r++ < 63) {
|
|
432
|
-
const d = h === 45 ?
|
|
432
|
+
const d = h === 45 ? p : o;
|
|
433
433
|
return t.consume(h), d;
|
|
434
434
|
}
|
|
435
435
|
return e(h);
|
|
@@ -447,10 +447,10 @@ function P(t, n, e, r) {
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
const Ot = {
|
|
450
|
-
tokenize:
|
|
450
|
+
tokenize: Hr,
|
|
451
451
|
partial: !0
|
|
452
452
|
};
|
|
453
|
-
function
|
|
453
|
+
function Hr(t, n, e) {
|
|
454
454
|
return r;
|
|
455
455
|
function r(l) {
|
|
456
456
|
return B(l) ? P(t, i, "linePrefix")(l) : i(l);
|
|
@@ -459,15 +459,15 @@ function Qr(t, n, e) {
|
|
|
459
459
|
return l === null || T(l) ? n(l) : e(l);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
const
|
|
462
|
+
const Cn = {
|
|
463
463
|
name: "blockQuote",
|
|
464
|
-
tokenize:
|
|
464
|
+
tokenize: Nr,
|
|
465
465
|
continuation: {
|
|
466
|
-
tokenize:
|
|
466
|
+
tokenize: $r
|
|
467
467
|
},
|
|
468
|
-
exit:
|
|
468
|
+
exit: Ur
|
|
469
469
|
};
|
|
470
|
-
function
|
|
470
|
+
function Nr(t, n, e) {
|
|
471
471
|
const r = this;
|
|
472
472
|
return i;
|
|
473
473
|
function i(u) {
|
|
@@ -483,7 +483,7 @@ function Zr(t, n, e) {
|
|
|
483
483
|
return B(u) ? (t.enter("blockQuotePrefixWhitespace"), t.consume(u), t.exit("blockQuotePrefixWhitespace"), t.exit("blockQuotePrefix"), n) : (t.exit("blockQuotePrefix"), n(u));
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function $r(t, n, e) {
|
|
487
487
|
const r = this;
|
|
488
488
|
return i;
|
|
489
489
|
function i(u) {
|
|
@@ -495,23 +495,23 @@ function Gr(t, n, e) {
|
|
|
495
495
|
)(u) : l(u);
|
|
496
496
|
}
|
|
497
497
|
function l(u) {
|
|
498
|
-
return t.attempt(
|
|
498
|
+
return t.attempt(Cn, n, e)(u);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Ur(t) {
|
|
502
502
|
t.exit("blockQuote");
|
|
503
503
|
}
|
|
504
|
-
const
|
|
504
|
+
const An = {
|
|
505
505
|
name: "characterEscape",
|
|
506
|
-
tokenize:
|
|
506
|
+
tokenize: Wr
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function Wr(t, n, e) {
|
|
509
509
|
return r;
|
|
510
510
|
function r(l) {
|
|
511
511
|
return t.enter("characterEscape"), t.enter("escapeMarker"), t.consume(l), t.exit("escapeMarker"), i;
|
|
512
512
|
}
|
|
513
513
|
function i(l) {
|
|
514
|
-
return
|
|
514
|
+
return Ar(l) ? (t.enter("characterEscapeValue"), t.consume(l), t.exit("characterEscapeValue"), t.exit("characterEscape"), n) : e(l);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
const qe = document.createElement("i");
|
|
@@ -521,11 +521,11 @@ function Ce(t) {
|
|
|
521
521
|
const e = qe.textContent;
|
|
522
522
|
return e.charCodeAt(e.length - 1) === 59 && t !== "semi" || e === n ? !1 : e;
|
|
523
523
|
}
|
|
524
|
-
const
|
|
524
|
+
const En = {
|
|
525
525
|
name: "characterReference",
|
|
526
|
-
tokenize:
|
|
526
|
+
tokenize: vr
|
|
527
527
|
};
|
|
528
|
-
function
|
|
528
|
+
function vr(t, n, e) {
|
|
529
529
|
const r = this;
|
|
530
530
|
let i = 0, l, u;
|
|
531
531
|
return a;
|
|
@@ -536,25 +536,25 @@ function Kr(t, n, e) {
|
|
|
536
536
|
return o === 35 ? (t.enter("characterReferenceMarkerNumeric"), t.consume(o), t.exit("characterReferenceMarkerNumeric"), s) : (t.enter("characterReferenceValue"), l = 31, u = J, f(o));
|
|
537
537
|
}
|
|
538
538
|
function s(o) {
|
|
539
|
-
return o === 88 || o === 120 ? (t.enter("characterReferenceMarkerHexadecimal"), t.consume(o), t.exit("characterReferenceMarkerHexadecimal"), t.enter("characterReferenceValue"), l = 6, u =
|
|
539
|
+
return o === 88 || o === 120 ? (t.enter("characterReferenceMarkerHexadecimal"), t.consume(o), t.exit("characterReferenceMarkerHexadecimal"), t.enter("characterReferenceValue"), l = 6, u = Cr, f) : (t.enter("characterReferenceValue"), l = 7, u = ge, f(o));
|
|
540
540
|
}
|
|
541
541
|
function f(o) {
|
|
542
542
|
if (o === 59 && i) {
|
|
543
|
-
const
|
|
544
|
-
return u === J && !Ce(r.sliceSerialize(
|
|
543
|
+
const p = t.exit("characterReferenceValue");
|
|
544
|
+
return u === J && !Ce(r.sliceSerialize(p)) ? e(o) : (t.enter("characterReferenceMarker"), t.consume(o), t.exit("characterReferenceMarker"), t.exit("characterReference"), n);
|
|
545
545
|
}
|
|
546
546
|
return u(o) && i++ < l ? (t.consume(o), f) : e(o);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
const He = {
|
|
550
|
-
tokenize:
|
|
550
|
+
tokenize: Zr,
|
|
551
551
|
partial: !0
|
|
552
552
|
}, Ne = {
|
|
553
553
|
name: "codeFenced",
|
|
554
|
-
tokenize:
|
|
554
|
+
tokenize: Qr,
|
|
555
555
|
concrete: !0
|
|
556
556
|
};
|
|
557
|
-
function
|
|
557
|
+
function Qr(t, n, e) {
|
|
558
558
|
const r = this, i = {
|
|
559
559
|
tokenize: z,
|
|
560
560
|
partial: !0
|
|
@@ -574,10 +574,10 @@ function Xr(t, n, e) {
|
|
|
574
574
|
function o(y) {
|
|
575
575
|
return y === null || T(y) ? (t.exit("codeFencedFence"), r.interrupt ? n(y) : t.check(He, w, L)(y)) : (t.enter("codeFencedFenceInfo"), t.enter("chunkString", {
|
|
576
576
|
contentType: "string"
|
|
577
|
-
}),
|
|
577
|
+
}), p(y));
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
return y === null || T(y) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), o(y)) : B(y) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), P(t, h, "whitespace")(y)) : y === 96 && y === a ? e(y) : (t.consume(y),
|
|
579
|
+
function p(y) {
|
|
580
|
+
return y === null || T(y) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), o(y)) : B(y) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), P(t, h, "whitespace")(y)) : y === 96 && y === a ? e(y) : (t.consume(y), p);
|
|
581
581
|
}
|
|
582
582
|
function h(y) {
|
|
583
583
|
return y === null || T(y) ? o(y) : (t.enter("codeFencedFenceMeta"), t.enter("chunkString", {
|
|
@@ -635,7 +635,7 @@ function Xr(t, n, e) {
|
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Zr(t, n, e) {
|
|
639
639
|
const r = this;
|
|
640
640
|
return i;
|
|
641
641
|
function i(u) {
|
|
@@ -645,14 +645,14 @@ function ti(t, n, e) {
|
|
|
645
645
|
return r.parser.lazy[r.now().line] ? e(u) : n(u);
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
const
|
|
648
|
+
const te = {
|
|
649
649
|
name: "codeIndented",
|
|
650
|
-
tokenize:
|
|
651
|
-
},
|
|
652
|
-
tokenize:
|
|
650
|
+
tokenize: Yr
|
|
651
|
+
}, Gr = {
|
|
652
|
+
tokenize: Jr,
|
|
653
653
|
partial: !0
|
|
654
654
|
};
|
|
655
|
-
function
|
|
655
|
+
function Yr(t, n, e) {
|
|
656
656
|
const r = this;
|
|
657
657
|
return i;
|
|
658
658
|
function i(s) {
|
|
@@ -663,7 +663,7 @@ function ni(t, n, e) {
|
|
|
663
663
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? u(s) : e(s);
|
|
664
664
|
}
|
|
665
665
|
function u(s) {
|
|
666
|
-
return s === null ? c(s) : T(s) ? t.attempt(
|
|
666
|
+
return s === null ? c(s) : T(s) ? t.attempt(Gr, u, c)(s) : (t.enter("codeFlowValue"), a(s));
|
|
667
667
|
}
|
|
668
668
|
function a(s) {
|
|
669
669
|
return s === null || T(s) ? (t.exit("codeFlowValue"), u(s)) : (t.consume(s), a);
|
|
@@ -672,7 +672,7 @@ function ni(t, n, e) {
|
|
|
672
672
|
return t.exit("codeIndented"), n(s);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function Jr(t, n, e) {
|
|
676
676
|
const r = this;
|
|
677
677
|
return i;
|
|
678
678
|
function i(u) {
|
|
@@ -683,13 +683,13 @@ function ri(t, n, e) {
|
|
|
683
683
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(u) : T(u) ? i(u) : e(u);
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
|
-
const
|
|
686
|
+
const Kr = {
|
|
687
687
|
name: "codeText",
|
|
688
|
-
tokenize:
|
|
689
|
-
resolve:
|
|
690
|
-
previous:
|
|
688
|
+
tokenize: ei,
|
|
689
|
+
resolve: Xr,
|
|
690
|
+
previous: ti
|
|
691
691
|
};
|
|
692
|
-
function
|
|
692
|
+
function Xr(t) {
|
|
693
693
|
let n = t.length - 4, e = 3, r, i;
|
|
694
694
|
if ((t[e][1].type === "lineEnding" || t[e][1].type === "space") && (t[n][1].type === "lineEnding" || t[n][1].type === "space")) {
|
|
695
695
|
for (r = e; ++r < n; )
|
|
@@ -702,10 +702,10 @@ function ui(t) {
|
|
|
702
702
|
i === void 0 ? r !== n && t[r][1].type !== "lineEnding" && (i = r) : (r === n || t[r][1].type === "lineEnding") && (t[i][1].type = "codeTextData", r !== i + 2 && (t[i][1].end = t[r - 1][1].end, t.splice(i + 2, r - i - 2), n -= r - i - 2, r = i + 2), i = void 0);
|
|
703
703
|
return t;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function ti(t) {
|
|
706
706
|
return t !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function ei(t, n, e) {
|
|
709
709
|
let r = 0, i, l;
|
|
710
710
|
return u;
|
|
711
711
|
function u(o) {
|
|
@@ -724,7 +724,7 @@ function ai(t, n, e) {
|
|
|
724
724
|
return o === 96 ? (t.consume(o), i++, f) : i === r ? (t.exit("codeTextSequence"), t.exit("codeText"), n(o)) : (l.type = "codeTextData", s(o));
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function zn(t) {
|
|
728
728
|
const n = {};
|
|
729
729
|
let e = -1, r, i, l, u, a, c, s;
|
|
730
730
|
for (; ++e < t.length; ) {
|
|
@@ -734,7 +734,7 @@ function Ln(t) {
|
|
|
734
734
|
for (; ++l < c.length && c[l][1].type !== "content"; )
|
|
735
735
|
c[l][1].type === "chunkText" && (c[l][1]._isInFirstContentOfListItem = !0, l++);
|
|
736
736
|
if (r[0] === "enter")
|
|
737
|
-
r[1].contentType && (Object.assign(n,
|
|
737
|
+
r[1].contentType && (Object.assign(n, ni(t, e)), e = n[e], s = !0);
|
|
738
738
|
else if (r[1]._container) {
|
|
739
739
|
for (l = e, i = void 0; l-- && (u = t[l], u[1].type === "lineEnding" || u[1].type === "lineEndingBlank"); )
|
|
740
740
|
u[0] === "enter" && (i && (t[i][1].type = "lineEndingBlank"), u[1].type = "lineEnding", i = l);
|
|
@@ -743,39 +743,39 @@ function Ln(t) {
|
|
|
743
743
|
}
|
|
744
744
|
return !s;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function ni(t, n) {
|
|
747
747
|
const e = t[n][1], r = t[n][2];
|
|
748
748
|
let i = n - 1;
|
|
749
749
|
const l = [], u = e._tokenizer || r.parser[e.contentType](e.start), a = u.events, c = [], s = {};
|
|
750
|
-
let f, o,
|
|
750
|
+
let f, o, p = -1, h = e, d = 0, w = 0;
|
|
751
751
|
const C = [w];
|
|
752
752
|
for (; h; ) {
|
|
753
753
|
for (; t[++i][1] !== h; )
|
|
754
754
|
;
|
|
755
755
|
l.push(i), h._tokenizer || (f = r.sliceStream(h), h.next || f.push(null), o && u.defineSkip(h.start), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = !0), u.write(f), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)), o = h, h = h.next;
|
|
756
756
|
}
|
|
757
|
-
for (h = e; ++
|
|
757
|
+
for (h = e; ++p < a.length; )
|
|
758
758
|
// Find a void token that includes a break.
|
|
759
|
-
a[
|
|
760
|
-
for (u.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : C.pop(),
|
|
761
|
-
const b = a.slice(C[
|
|
759
|
+
a[p][0] === "exit" && a[p - 1][0] === "enter" && a[p][1].type === a[p - 1][1].type && a[p][1].start.line !== a[p][1].end.line && (w = p + 1, C.push(w), h._tokenizer = void 0, h.previous = void 0, h = h.next);
|
|
760
|
+
for (u.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : C.pop(), p = C.length; p--; ) {
|
|
761
|
+
const b = a.slice(C[p], C[p + 1]), I = l.pop();
|
|
762
762
|
c.unshift([I, I + b.length - 1]), X(t, I, 2, b);
|
|
763
763
|
}
|
|
764
|
-
for (
|
|
765
|
-
s[d + c[
|
|
764
|
+
for (p = -1; ++p < c.length; )
|
|
765
|
+
s[d + c[p][0]] = d + c[p][1], d += c[p][1] - c[p][0] - 1;
|
|
766
766
|
return s;
|
|
767
767
|
}
|
|
768
|
-
const
|
|
769
|
-
tokenize:
|
|
770
|
-
resolve:
|
|
771
|
-
},
|
|
772
|
-
tokenize:
|
|
768
|
+
const ri = {
|
|
769
|
+
tokenize: li,
|
|
770
|
+
resolve: ui
|
|
771
|
+
}, ii = {
|
|
772
|
+
tokenize: ai,
|
|
773
773
|
partial: !0
|
|
774
774
|
};
|
|
775
|
-
function
|
|
776
|
-
return
|
|
775
|
+
function ui(t) {
|
|
776
|
+
return zn(t), t;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function li(t, n) {
|
|
779
779
|
let e;
|
|
780
780
|
return r;
|
|
781
781
|
function r(a) {
|
|
@@ -785,7 +785,7 @@ function hi(t, n) {
|
|
|
785
785
|
}
|
|
786
786
|
function i(a) {
|
|
787
787
|
return a === null ? l(a) : T(a) ? t.check(
|
|
788
|
-
|
|
788
|
+
ii,
|
|
789
789
|
u,
|
|
790
790
|
l
|
|
791
791
|
)(a) : (t.consume(a), i);
|
|
@@ -800,7 +800,7 @@ function hi(t, n) {
|
|
|
800
800
|
}), e = e.next, i;
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function ai(t, n, e) {
|
|
804
804
|
const r = this;
|
|
805
805
|
return i;
|
|
806
806
|
function i(u) {
|
|
@@ -813,34 +813,34 @@ function pi(t, n, e) {
|
|
|
813
813
|
return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(u) : t.interrupt(r.parser.constructs.flow, e, n)(u);
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function In(t, n, e, r, i, l, u, a, c) {
|
|
817
817
|
const s = c || Number.POSITIVE_INFINITY;
|
|
818
818
|
let f = 0;
|
|
819
819
|
return o;
|
|
820
820
|
function o(b) {
|
|
821
|
-
return b === 60 ? (t.enter(r), t.enter(i), t.enter(l), t.consume(b), t.exit(l),
|
|
821
|
+
return b === 60 ? (t.enter(r), t.enter(i), t.enter(l), t.consume(b), t.exit(l), p) : b === null || b === 32 || b === 41 || Ut(b) ? e(b) : (t.enter(r), t.enter(u), t.enter(a), t.enter("chunkString", {
|
|
822
822
|
contentType: "string"
|
|
823
823
|
}), w(b));
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function p(b) {
|
|
826
826
|
return b === 62 ? (t.enter(l), t.consume(b), t.exit(l), t.exit(i), t.exit(r), n) : (t.enter(a), t.enter("chunkString", {
|
|
827
827
|
contentType: "string"
|
|
828
828
|
}), h(b));
|
|
829
829
|
}
|
|
830
830
|
function h(b) {
|
|
831
|
-
return b === 62 ? (t.exit("chunkString"), t.exit(a),
|
|
831
|
+
return b === 62 ? (t.exit("chunkString"), t.exit(a), p(b)) : b === null || b === 60 || T(b) ? e(b) : (t.consume(b), b === 92 ? d : h);
|
|
832
832
|
}
|
|
833
833
|
function d(b) {
|
|
834
834
|
return b === 60 || b === 62 || b === 92 ? (t.consume(b), h) : h(b);
|
|
835
835
|
}
|
|
836
836
|
function w(b) {
|
|
837
|
-
return !f && (b === null || b === 41 || V(b)) ? (t.exit("chunkString"), t.exit(a), t.exit(u), t.exit(r), n(b)) : f < s && b === 40 ? (t.consume(b), f++, w) : b === 41 ? (t.consume(b), f--, w) : b === null || b === 32 || b === 40 ||
|
|
837
|
+
return !f && (b === null || b === 41 || V(b)) ? (t.exit("chunkString"), t.exit(a), t.exit(u), t.exit(r), n(b)) : f < s && b === 40 ? (t.consume(b), f++, w) : b === 41 ? (t.consume(b), f--, w) : b === null || b === 32 || b === 40 || Ut(b) ? e(b) : (t.consume(b), b === 92 ? C : w);
|
|
838
838
|
}
|
|
839
839
|
function C(b) {
|
|
840
840
|
return b === 40 || b === 41 || b === 92 ? (t.consume(b), w) : w(b);
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Tn(t, n, e, r, i, l) {
|
|
844
844
|
const u = this;
|
|
845
845
|
let a = 0, c;
|
|
846
846
|
return s;
|
|
@@ -858,31 +858,31 @@ function Pn(t, n, e, r, i, l) {
|
|
|
858
858
|
}), o(h));
|
|
859
859
|
}
|
|
860
860
|
function o(h) {
|
|
861
|
-
return h === null || h === 91 || h === 93 || T(h) || a++ > 999 ? (t.exit("chunkString"), f(h)) : (t.consume(h), c || (c = !B(h)), h === 92 ?
|
|
861
|
+
return h === null || h === 91 || h === 93 || T(h) || a++ > 999 ? (t.exit("chunkString"), f(h)) : (t.consume(h), c || (c = !B(h)), h === 92 ? p : o);
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function p(h) {
|
|
864
864
|
return h === 91 || h === 92 || h === 93 ? (t.consume(h), a++, o) : o(h);
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Dn(t, n, e, r, i, l) {
|
|
868
868
|
let u;
|
|
869
869
|
return a;
|
|
870
|
-
function a(
|
|
871
|
-
return
|
|
870
|
+
function a(p) {
|
|
871
|
+
return p === 34 || p === 39 || p === 40 ? (t.enter(r), t.enter(i), t.consume(p), t.exit(i), u = p === 40 ? 41 : p, c) : e(p);
|
|
872
872
|
}
|
|
873
|
-
function c(
|
|
874
|
-
return
|
|
873
|
+
function c(p) {
|
|
874
|
+
return p === u ? (t.enter(i), t.consume(p), t.exit(i), t.exit(r), n) : (t.enter(l), s(p));
|
|
875
875
|
}
|
|
876
|
-
function s(
|
|
877
|
-
return
|
|
876
|
+
function s(p) {
|
|
877
|
+
return p === u ? (t.exit(l), c(u)) : p === null ? e(p) : T(p) ? (t.enter("lineEnding"), t.consume(p), t.exit("lineEnding"), P(t, s, "linePrefix")) : (t.enter("chunkString", {
|
|
878
878
|
contentType: "string"
|
|
879
|
-
}), f(
|
|
879
|
+
}), f(p));
|
|
880
880
|
}
|
|
881
|
-
function f(
|
|
882
|
-
return
|
|
881
|
+
function f(p) {
|
|
882
|
+
return p === u || p === null || T(p) ? (t.exit("chunkString"), s(p)) : (t.consume(p), p === 92 ? o : f);
|
|
883
883
|
}
|
|
884
|
-
function o(
|
|
885
|
-
return
|
|
884
|
+
function o(p) {
|
|
885
|
+
return p === u || p === 92 ? (t.consume(p), f) : f(p);
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
function Mt(t, n) {
|
|
@@ -899,14 +899,14 @@ function Mt(t, n) {
|
|
|
899
899
|
function ut(t) {
|
|
900
900
|
return t.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
901
901
|
}
|
|
902
|
-
const
|
|
902
|
+
const oi = {
|
|
903
903
|
name: "definition",
|
|
904
|
-
tokenize:
|
|
905
|
-
},
|
|
906
|
-
tokenize:
|
|
904
|
+
tokenize: ci
|
|
905
|
+
}, si = {
|
|
906
|
+
tokenize: fi,
|
|
907
907
|
partial: !0
|
|
908
908
|
};
|
|
909
|
-
function
|
|
909
|
+
function ci(t, n, e) {
|
|
910
910
|
const r = this;
|
|
911
911
|
let i;
|
|
912
912
|
return l;
|
|
@@ -914,7 +914,7 @@ function di(t, n, e) {
|
|
|
914
914
|
return t.enter("definition"), u(h);
|
|
915
915
|
}
|
|
916
916
|
function u(h) {
|
|
917
|
-
return
|
|
917
|
+
return Tn.call(
|
|
918
918
|
r,
|
|
919
919
|
t,
|
|
920
920
|
a,
|
|
@@ -934,7 +934,7 @@ function di(t, n, e) {
|
|
|
934
934
|
return V(h) ? Mt(t, s)(h) : s(h);
|
|
935
935
|
}
|
|
936
936
|
function s(h) {
|
|
937
|
-
return
|
|
937
|
+
return In(
|
|
938
938
|
t,
|
|
939
939
|
f,
|
|
940
940
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
|
@@ -947,22 +947,22 @@ function di(t, n, e) {
|
|
|
947
947
|
)(h);
|
|
948
948
|
}
|
|
949
949
|
function f(h) {
|
|
950
|
-
return t.attempt(
|
|
950
|
+
return t.attempt(si, o, o)(h);
|
|
951
951
|
}
|
|
952
952
|
function o(h) {
|
|
953
|
-
return B(h) ? P(t,
|
|
953
|
+
return B(h) ? P(t, p, "whitespace")(h) : p(h);
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function p(h) {
|
|
956
956
|
return h === null || T(h) ? (t.exit("definition"), r.parser.defined.push(i), n(h)) : e(h);
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function fi(t, n, e) {
|
|
960
960
|
return r;
|
|
961
961
|
function r(a) {
|
|
962
962
|
return V(a) ? Mt(t, i)(a) : e(a);
|
|
963
963
|
}
|
|
964
964
|
function i(a) {
|
|
965
|
-
return
|
|
965
|
+
return Dn(
|
|
966
966
|
t,
|
|
967
967
|
l,
|
|
968
968
|
e,
|
|
@@ -978,11 +978,11 @@ function ki(t, n, e) {
|
|
|
978
978
|
return a === null || T(a) ? n(a) : e(a);
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
|
-
const
|
|
981
|
+
const hi = {
|
|
982
982
|
name: "hardBreakEscape",
|
|
983
|
-
tokenize:
|
|
983
|
+
tokenize: pi
|
|
984
984
|
};
|
|
985
|
-
function
|
|
985
|
+
function pi(t, n, e) {
|
|
986
986
|
return r;
|
|
987
987
|
function r(l) {
|
|
988
988
|
return t.enter("hardBreakEscape"), t.consume(l), i;
|
|
@@ -991,12 +991,12 @@ function bi(t, n, e) {
|
|
|
991
991
|
return T(l) ? (t.exit("hardBreakEscape"), n(l)) : e(l);
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
|
-
const
|
|
994
|
+
const mi = {
|
|
995
995
|
name: "headingAtx",
|
|
996
|
-
tokenize:
|
|
997
|
-
resolve:
|
|
996
|
+
tokenize: di,
|
|
997
|
+
resolve: gi
|
|
998
998
|
};
|
|
999
|
-
function
|
|
999
|
+
function gi(t, n) {
|
|
1000
1000
|
let e = t.length - 2, r = 3, i, l;
|
|
1001
1001
|
return t[r][1].type === "whitespace" && (r += 2), e - 2 > r && t[e][1].type === "whitespace" && (e -= 2), t[e][1].type === "atxHeadingSequence" && (r === e - 1 || e - 4 > r && t[e - 2][1].type === "whitespace") && (e -= r + 1 === e ? 2 : 4), e > r && (i = {
|
|
1002
1002
|
type: "atxHeadingText",
|
|
@@ -1014,7 +1014,7 @@ function wi(t, n) {
|
|
|
1014
1014
|
["exit", i, n]
|
|
1015
1015
|
])), t;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function di(t, n, e) {
|
|
1018
1018
|
let r = 0;
|
|
1019
1019
|
return i;
|
|
1020
1020
|
function i(f) {
|
|
@@ -1036,7 +1036,7 @@ function Fi(t, n, e) {
|
|
|
1036
1036
|
return f === null || f === 35 || V(f) ? (t.exit("atxHeadingText"), a(f)) : (t.consume(f), s);
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
const
|
|
1039
|
+
const ki = [
|
|
1040
1040
|
"address",
|
|
1041
1041
|
"article",
|
|
1042
1042
|
"aside",
|
|
@@ -1099,137 +1099,137 @@ const Si = [
|
|
|
1099
1099
|
"tr",
|
|
1100
1100
|
"track",
|
|
1101
1101
|
"ul"
|
|
1102
|
-
], $e = ["pre", "script", "style", "textarea"],
|
|
1102
|
+
], $e = ["pre", "script", "style", "textarea"], xi = {
|
|
1103
1103
|
name: "htmlFlow",
|
|
1104
|
-
tokenize:
|
|
1105
|
-
resolveTo:
|
|
1104
|
+
tokenize: Fi,
|
|
1105
|
+
resolveTo: wi,
|
|
1106
1106
|
concrete: !0
|
|
1107
|
-
},
|
|
1108
|
-
tokenize:
|
|
1107
|
+
}, bi = {
|
|
1108
|
+
tokenize: Ci,
|
|
1109
1109
|
partial: !0
|
|
1110
|
-
},
|
|
1111
|
-
tokenize:
|
|
1110
|
+
}, yi = {
|
|
1111
|
+
tokenize: Si,
|
|
1112
1112
|
partial: !0
|
|
1113
1113
|
};
|
|
1114
|
-
function
|
|
1114
|
+
function wi(t) {
|
|
1115
1115
|
let n = t.length;
|
|
1116
1116
|
for (; n-- && !(t[n][0] === "enter" && t[n][1].type === "htmlFlow"); )
|
|
1117
1117
|
;
|
|
1118
1118
|
return n > 1 && t[n - 2][1].type === "linePrefix" && (t[n][1].start = t[n - 2][1].start, t[n + 1][1].start = t[n - 2][1].start, t.splice(n - 2, 2)), t;
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function Fi(t, n, e) {
|
|
1121
1121
|
const r = this;
|
|
1122
1122
|
let i, l, u, a, c;
|
|
1123
1123
|
return s;
|
|
1124
|
-
function s(
|
|
1125
|
-
return f(
|
|
1124
|
+
function s(g) {
|
|
1125
|
+
return f(g);
|
|
1126
1126
|
}
|
|
1127
|
-
function f(
|
|
1128
|
-
return t.enter("htmlFlow"), t.enter("htmlFlowData"), t.consume(
|
|
1127
|
+
function f(g) {
|
|
1128
|
+
return t.enter("htmlFlow"), t.enter("htmlFlowData"), t.consume(g), o;
|
|
1129
1129
|
}
|
|
1130
|
-
function o(
|
|
1131
|
-
return
|
|
1130
|
+
function o(g) {
|
|
1131
|
+
return g === 33 ? (t.consume(g), p) : g === 47 ? (t.consume(g), l = !0, w) : g === 63 ? (t.consume(g), i = 3, r.interrupt ? n : m) : G(g) ? (t.consume(g), u = String.fromCharCode(g), C) : e(g);
|
|
1132
1132
|
}
|
|
1133
|
-
function g
|
|
1134
|
-
return
|
|
1133
|
+
function p(g) {
|
|
1134
|
+
return g === 45 ? (t.consume(g), i = 2, h) : g === 91 ? (t.consume(g), i = 5, a = 0, d) : G(g) ? (t.consume(g), i = 4, r.interrupt ? n : m) : e(g);
|
|
1135
1135
|
}
|
|
1136
|
-
function h(
|
|
1137
|
-
return
|
|
1136
|
+
function h(g) {
|
|
1137
|
+
return g === 45 ? (t.consume(g), r.interrupt ? n : m) : e(g);
|
|
1138
1138
|
}
|
|
1139
|
-
function d(
|
|
1139
|
+
function d(g) {
|
|
1140
1140
|
const rt = "CDATA[";
|
|
1141
|
-
return
|
|
1141
|
+
return g === rt.charCodeAt(a++) ? (t.consume(g), a === rt.length ? r.interrupt ? n : E : d) : e(g);
|
|
1142
1142
|
}
|
|
1143
|
-
function w(
|
|
1144
|
-
return G(
|
|
1143
|
+
function w(g) {
|
|
1144
|
+
return G(g) ? (t.consume(g), u = String.fromCharCode(g), C) : e(g);
|
|
1145
1145
|
}
|
|
1146
|
-
function C(
|
|
1147
|
-
if (
|
|
1148
|
-
const rt =
|
|
1149
|
-
return !rt && !l && $e.includes(Ct) ? (i = 1, r.interrupt ? n(
|
|
1146
|
+
function C(g) {
|
|
1147
|
+
if (g === null || g === 47 || g === 62 || V(g)) {
|
|
1148
|
+
const rt = g === 47, Ct = u.toLowerCase();
|
|
1149
|
+
return !rt && !l && $e.includes(Ct) ? (i = 1, r.interrupt ? n(g) : E(g)) : ki.includes(u.toLowerCase()) ? (i = 6, rt ? (t.consume(g), b) : r.interrupt ? n(g) : E(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? e(g) : l ? I(g) : F(g));
|
|
1150
1150
|
}
|
|
1151
|
-
return
|
|
1151
|
+
return g === 45 || J(g) ? (t.consume(g), u += String.fromCharCode(g), C) : e(g);
|
|
1152
1152
|
}
|
|
1153
|
-
function b(
|
|
1154
|
-
return
|
|
1153
|
+
function b(g) {
|
|
1154
|
+
return g === 62 ? (t.consume(g), r.interrupt ? n : E) : e(g);
|
|
1155
1155
|
}
|
|
1156
|
-
function I(
|
|
1157
|
-
return B(
|
|
1156
|
+
function I(g) {
|
|
1157
|
+
return B(g) ? (t.consume(g), I) : k(g);
|
|
1158
1158
|
}
|
|
1159
|
-
function F(
|
|
1160
|
-
return
|
|
1159
|
+
function F(g) {
|
|
1160
|
+
return g === 47 ? (t.consume(g), k) : g === 58 || g === 95 || G(g) ? (t.consume(g), L) : B(g) ? (t.consume(g), F) : k(g);
|
|
1161
1161
|
}
|
|
1162
|
-
function L(
|
|
1163
|
-
return
|
|
1162
|
+
function L(g) {
|
|
1163
|
+
return g === 45 || g === 46 || g === 58 || g === 95 || J(g) ? (t.consume(g), L) : z(g);
|
|
1164
1164
|
}
|
|
1165
|
-
function z(
|
|
1166
|
-
return
|
|
1165
|
+
function z(g) {
|
|
1166
|
+
return g === 61 ? (t.consume(g), y) : B(g) ? (t.consume(g), z) : F(g);
|
|
1167
1167
|
}
|
|
1168
|
-
function y(
|
|
1169
|
-
return
|
|
1168
|
+
function y(g) {
|
|
1169
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? e(g) : g === 34 || g === 39 ? (t.consume(g), c = g, _) : B(g) ? (t.consume(g), y) : q(g);
|
|
1170
1170
|
}
|
|
1171
|
-
function _(
|
|
1172
|
-
return
|
|
1171
|
+
function _(g) {
|
|
1172
|
+
return g === c ? (t.consume(g), c = null, $) : g === null || T(g) ? e(g) : (t.consume(g), _);
|
|
1173
1173
|
}
|
|
1174
|
-
function q(
|
|
1175
|
-
return
|
|
1174
|
+
function q(g) {
|
|
1175
|
+
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || V(g) ? z(g) : (t.consume(g), q);
|
|
1176
1176
|
}
|
|
1177
|
-
function $(
|
|
1178
|
-
return
|
|
1177
|
+
function $(g) {
|
|
1178
|
+
return g === 47 || g === 62 || B(g) ? F(g) : e(g);
|
|
1179
1179
|
}
|
|
1180
|
-
function k(
|
|
1181
|
-
return
|
|
1180
|
+
function k(g) {
|
|
1181
|
+
return g === 62 ? (t.consume(g), A) : e(g);
|
|
1182
1182
|
}
|
|
1183
|
-
function A(
|
|
1184
|
-
return
|
|
1183
|
+
function A(g) {
|
|
1184
|
+
return g === null || T(g) ? E(g) : B(g) ? (t.consume(g), A) : e(g);
|
|
1185
1185
|
}
|
|
1186
|
-
function E(
|
|
1187
|
-
return
|
|
1188
|
-
|
|
1186
|
+
function E(g) {
|
|
1187
|
+
return g === 45 && i === 2 ? (t.consume(g), v) : g === 60 && i === 1 ? (t.consume(g), U) : g === 62 && i === 4 ? (t.consume(g), nt) : g === 63 && i === 3 ? (t.consume(g), m) : g === 93 && i === 5 ? (t.consume(g), ot) : T(g) && (i === 6 || i === 7) ? (t.exit("htmlFlowData"), t.check(
|
|
1188
|
+
bi,
|
|
1189
1189
|
st,
|
|
1190
1190
|
R
|
|
1191
|
-
)(
|
|
1191
|
+
)(g)) : g === null || T(g) ? (t.exit("htmlFlowData"), R(g)) : (t.consume(g), E);
|
|
1192
1192
|
}
|
|
1193
|
-
function R(
|
|
1193
|
+
function R(g) {
|
|
1194
1194
|
return t.check(
|
|
1195
|
-
|
|
1195
|
+
yi,
|
|
1196
1196
|
H,
|
|
1197
1197
|
st
|
|
1198
|
-
)(
|
|
1198
|
+
)(g);
|
|
1199
1199
|
}
|
|
1200
|
-
function H(
|
|
1201
|
-
return t.enter("lineEnding"), t.consume(
|
|
1200
|
+
function H(g) {
|
|
1201
|
+
return t.enter("lineEnding"), t.consume(g), t.exit("lineEnding"), M;
|
|
1202
1202
|
}
|
|
1203
|
-
function M(
|
|
1204
|
-
return
|
|
1203
|
+
function M(g) {
|
|
1204
|
+
return g === null || T(g) ? R(g) : (t.enter("htmlFlowData"), E(g));
|
|
1205
1205
|
}
|
|
1206
|
-
function v(
|
|
1207
|
-
return
|
|
1206
|
+
function v(g) {
|
|
1207
|
+
return g === 45 ? (t.consume(g), m) : E(g);
|
|
1208
1208
|
}
|
|
1209
|
-
function U(
|
|
1210
|
-
return
|
|
1209
|
+
function U(g) {
|
|
1210
|
+
return g === 47 ? (t.consume(g), u = "", et) : E(g);
|
|
1211
1211
|
}
|
|
1212
|
-
function et(
|
|
1213
|
-
if (
|
|
1212
|
+
function et(g) {
|
|
1213
|
+
if (g === 62) {
|
|
1214
1214
|
const rt = u.toLowerCase();
|
|
1215
|
-
return $e.includes(rt) ? (t.consume(
|
|
1215
|
+
return $e.includes(rt) ? (t.consume(g), nt) : E(g);
|
|
1216
1216
|
}
|
|
1217
|
-
return G(
|
|
1217
|
+
return G(g) && u.length < 8 ? (t.consume(g), u += String.fromCharCode(g), et) : E(g);
|
|
1218
1218
|
}
|
|
1219
|
-
function ot(
|
|
1220
|
-
return
|
|
1219
|
+
function ot(g) {
|
|
1220
|
+
return g === 93 ? (t.consume(g), m) : E(g);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1222
|
+
function m(g) {
|
|
1223
|
+
return g === 62 ? (t.consume(g), nt) : g === 45 && i === 2 ? (t.consume(g), m) : E(g);
|
|
1224
1224
|
}
|
|
1225
|
-
function nt(
|
|
1226
|
-
return
|
|
1225
|
+
function nt(g) {
|
|
1226
|
+
return g === null || T(g) ? (t.exit("htmlFlowData"), st(g)) : (t.consume(g), nt);
|
|
1227
1227
|
}
|
|
1228
|
-
function st(
|
|
1229
|
-
return t.exit("htmlFlow"), n(
|
|
1228
|
+
function st(g) {
|
|
1229
|
+
return t.exit("htmlFlow"), n(g);
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function Si(t, n, e) {
|
|
1233
1233
|
const r = this;
|
|
1234
1234
|
return i;
|
|
1235
1235
|
function i(u) {
|
|
@@ -1239,127 +1239,127 @@ function Ti(t, n, e) {
|
|
|
1239
1239
|
return r.parser.lazy[r.now().line] ? e(u) : n(u);
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Ci(t, n, e) {
|
|
1243
1243
|
return r;
|
|
1244
1244
|
function r(i) {
|
|
1245
1245
|
return t.enter("lineEnding"), t.consume(i), t.exit("lineEnding"), t.attempt(Ot, n, e);
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
|
-
const
|
|
1248
|
+
const Ai = {
|
|
1249
1249
|
name: "htmlText",
|
|
1250
|
-
tokenize:
|
|
1250
|
+
tokenize: Ei
|
|
1251
1251
|
};
|
|
1252
|
-
function
|
|
1252
|
+
function Ei(t, n, e) {
|
|
1253
1253
|
const r = this;
|
|
1254
1254
|
let i, l, u;
|
|
1255
1255
|
return a;
|
|
1256
|
-
function a(
|
|
1257
|
-
return t.enter("htmlText"), t.enter("htmlTextData"), t.consume(
|
|
1256
|
+
function a(m) {
|
|
1257
|
+
return t.enter("htmlText"), t.enter("htmlTextData"), t.consume(m), c;
|
|
1258
1258
|
}
|
|
1259
|
-
function c(
|
|
1260
|
-
return
|
|
1259
|
+
function c(m) {
|
|
1260
|
+
return m === 33 ? (t.consume(m), s) : m === 47 ? (t.consume(m), z) : m === 63 ? (t.consume(m), F) : G(m) ? (t.consume(m), q) : e(m);
|
|
1261
1261
|
}
|
|
1262
|
-
function s(
|
|
1263
|
-
return
|
|
1262
|
+
function s(m) {
|
|
1263
|
+
return m === 45 ? (t.consume(m), f) : m === 91 ? (t.consume(m), l = 0, d) : G(m) ? (t.consume(m), I) : e(m);
|
|
1264
1264
|
}
|
|
1265
|
-
function f(
|
|
1266
|
-
return
|
|
1265
|
+
function f(m) {
|
|
1266
|
+
return m === 45 ? (t.consume(m), h) : e(m);
|
|
1267
1267
|
}
|
|
1268
|
-
function o(
|
|
1269
|
-
return
|
|
1268
|
+
function o(m) {
|
|
1269
|
+
return m === null ? e(m) : m === 45 ? (t.consume(m), p) : T(m) ? (u = o, U(m)) : (t.consume(m), o);
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return
|
|
1271
|
+
function p(m) {
|
|
1272
|
+
return m === 45 ? (t.consume(m), h) : o(m);
|
|
1273
1273
|
}
|
|
1274
|
-
function h(
|
|
1275
|
-
return
|
|
1274
|
+
function h(m) {
|
|
1275
|
+
return m === 62 ? v(m) : m === 45 ? p(m) : o(m);
|
|
1276
1276
|
}
|
|
1277
|
-
function d(
|
|
1277
|
+
function d(m) {
|
|
1278
1278
|
const nt = "CDATA[";
|
|
1279
|
-
return
|
|
1279
|
+
return m === nt.charCodeAt(l++) ? (t.consume(m), l === nt.length ? w : d) : e(m);
|
|
1280
1280
|
}
|
|
1281
|
-
function w(
|
|
1282
|
-
return
|
|
1281
|
+
function w(m) {
|
|
1282
|
+
return m === null ? e(m) : m === 93 ? (t.consume(m), C) : T(m) ? (u = w, U(m)) : (t.consume(m), w);
|
|
1283
1283
|
}
|
|
1284
|
-
function C(
|
|
1285
|
-
return
|
|
1284
|
+
function C(m) {
|
|
1285
|
+
return m === 93 ? (t.consume(m), b) : w(m);
|
|
1286
1286
|
}
|
|
1287
|
-
function b(
|
|
1288
|
-
return
|
|
1287
|
+
function b(m) {
|
|
1288
|
+
return m === 62 ? v(m) : m === 93 ? (t.consume(m), b) : w(m);
|
|
1289
1289
|
}
|
|
1290
|
-
function I(
|
|
1291
|
-
return
|
|
1290
|
+
function I(m) {
|
|
1291
|
+
return m === null || m === 62 ? v(m) : T(m) ? (u = I, U(m)) : (t.consume(m), I);
|
|
1292
1292
|
}
|
|
1293
|
-
function F(
|
|
1294
|
-
return
|
|
1293
|
+
function F(m) {
|
|
1294
|
+
return m === null ? e(m) : m === 63 ? (t.consume(m), L) : T(m) ? (u = F, U(m)) : (t.consume(m), F);
|
|
1295
1295
|
}
|
|
1296
|
-
function L(
|
|
1297
|
-
return
|
|
1296
|
+
function L(m) {
|
|
1297
|
+
return m === 62 ? v(m) : F(m);
|
|
1298
1298
|
}
|
|
1299
|
-
function z(
|
|
1300
|
-
return G(
|
|
1299
|
+
function z(m) {
|
|
1300
|
+
return G(m) ? (t.consume(m), y) : e(m);
|
|
1301
1301
|
}
|
|
1302
|
-
function y(
|
|
1303
|
-
return
|
|
1302
|
+
function y(m) {
|
|
1303
|
+
return m === 45 || J(m) ? (t.consume(m), y) : _(m);
|
|
1304
1304
|
}
|
|
1305
|
-
function _(
|
|
1306
|
-
return T(
|
|
1305
|
+
function _(m) {
|
|
1306
|
+
return T(m) ? (u = _, U(m)) : B(m) ? (t.consume(m), _) : v(m);
|
|
1307
1307
|
}
|
|
1308
|
-
function q(
|
|
1309
|
-
return
|
|
1308
|
+
function q(m) {
|
|
1309
|
+
return m === 45 || J(m) ? (t.consume(m), q) : m === 47 || m === 62 || V(m) ? $(m) : e(m);
|
|
1310
1310
|
}
|
|
1311
|
-
function $(
|
|
1312
|
-
return
|
|
1311
|
+
function $(m) {
|
|
1312
|
+
return m === 47 ? (t.consume(m), v) : m === 58 || m === 95 || G(m) ? (t.consume(m), k) : T(m) ? (u = $, U(m)) : B(m) ? (t.consume(m), $) : v(m);
|
|
1313
1313
|
}
|
|
1314
|
-
function k(
|
|
1315
|
-
return
|
|
1314
|
+
function k(m) {
|
|
1315
|
+
return m === 45 || m === 46 || m === 58 || m === 95 || J(m) ? (t.consume(m), k) : A(m);
|
|
1316
1316
|
}
|
|
1317
|
-
function A(
|
|
1318
|
-
return
|
|
1317
|
+
function A(m) {
|
|
1318
|
+
return m === 61 ? (t.consume(m), E) : T(m) ? (u = A, U(m)) : B(m) ? (t.consume(m), A) : $(m);
|
|
1319
1319
|
}
|
|
1320
|
-
function E(
|
|
1321
|
-
return
|
|
1320
|
+
function E(m) {
|
|
1321
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? e(m) : m === 34 || m === 39 ? (t.consume(m), i = m, R) : T(m) ? (u = E, U(m)) : B(m) ? (t.consume(m), E) : (t.consume(m), H);
|
|
1322
1322
|
}
|
|
1323
|
-
function R(
|
|
1324
|
-
return
|
|
1323
|
+
function R(m) {
|
|
1324
|
+
return m === i ? (t.consume(m), i = void 0, M) : m === null ? e(m) : T(m) ? (u = R, U(m)) : (t.consume(m), R);
|
|
1325
1325
|
}
|
|
1326
|
-
function H(
|
|
1327
|
-
return
|
|
1326
|
+
function H(m) {
|
|
1327
|
+
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? e(m) : m === 47 || m === 62 || V(m) ? $(m) : (t.consume(m), H);
|
|
1328
1328
|
}
|
|
1329
|
-
function M(
|
|
1330
|
-
return
|
|
1329
|
+
function M(m) {
|
|
1330
|
+
return m === 47 || m === 62 || V(m) ? $(m) : e(m);
|
|
1331
1331
|
}
|
|
1332
|
-
function v(
|
|
1333
|
-
return
|
|
1332
|
+
function v(m) {
|
|
1333
|
+
return m === 62 ? (t.consume(m), t.exit("htmlTextData"), t.exit("htmlText"), n) : e(m);
|
|
1334
1334
|
}
|
|
1335
|
-
function U(
|
|
1336
|
-
return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(
|
|
1335
|
+
function U(m) {
|
|
1336
|
+
return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(m), t.exit("lineEnding"), et;
|
|
1337
1337
|
}
|
|
1338
|
-
function et(
|
|
1339
|
-
return B(
|
|
1338
|
+
function et(m) {
|
|
1339
|
+
return B(m) ? P(
|
|
1340
1340
|
t,
|
|
1341
1341
|
ot,
|
|
1342
1342
|
"linePrefix",
|
|
1343
1343
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
1344
|
-
)(
|
|
1344
|
+
)(m) : ot(m);
|
|
1345
1345
|
}
|
|
1346
|
-
function ot(
|
|
1347
|
-
return t.enter("htmlTextData"), u(
|
|
1346
|
+
function ot(m) {
|
|
1347
|
+
return t.enter("htmlTextData"), u(m);
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
1350
|
const Ae = {
|
|
1351
1351
|
name: "labelEnd",
|
|
1352
|
-
tokenize:
|
|
1353
|
-
resolveTo:
|
|
1354
|
-
resolveAll:
|
|
1355
|
-
},
|
|
1356
|
-
tokenize:
|
|
1357
|
-
},
|
|
1358
|
-
tokenize:
|
|
1359
|
-
},
|
|
1360
|
-
tokenize:
|
|
1352
|
+
tokenize: Li,
|
|
1353
|
+
resolveTo: _i,
|
|
1354
|
+
resolveAll: Di
|
|
1355
|
+
}, zi = {
|
|
1356
|
+
tokenize: Bi
|
|
1357
|
+
}, Ii = {
|
|
1358
|
+
tokenize: Pi
|
|
1359
|
+
}, Ti = {
|
|
1360
|
+
tokenize: Mi
|
|
1361
1361
|
};
|
|
1362
|
-
function
|
|
1362
|
+
function Di(t) {
|
|
1363
1363
|
let n = -1;
|
|
1364
1364
|
for (; ++n < t.length; ) {
|
|
1365
1365
|
const e = t[n][1];
|
|
@@ -1367,7 +1367,7 @@ function Oi(t) {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
return t;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function _i(t, n) {
|
|
1371
1371
|
let e = t.length, r = 0, i, l, u, a;
|
|
1372
1372
|
for (; e--; )
|
|
1373
1373
|
if (i = t[e][1], l) {
|
|
@@ -1398,7 +1398,7 @@ function Ri(t, n) {
|
|
|
1398
1398
|
["enter", s, n]
|
|
1399
1399
|
], a = tt(a, t.slice(l + 1, l + r + 3)), a = tt(a, [["enter", f, n]]), a = tt(
|
|
1400
1400
|
a,
|
|
1401
|
-
|
|
1401
|
+
Zt(
|
|
1402
1402
|
n.parser.constructs.insideSpan.null,
|
|
1403
1403
|
t.slice(l + r + 4, u - 3),
|
|
1404
1404
|
n
|
|
@@ -1410,7 +1410,7 @@ function Ri(t, n) {
|
|
|
1410
1410
|
["exit", s, n]
|
|
1411
1411
|
]), a = tt(a, t.slice(u + 1)), a = tt(a, [["exit", c, n]]), X(t, l, t.length, a), t;
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function Li(t, n, e) {
|
|
1414
1414
|
const r = this;
|
|
1415
1415
|
let i = r.events.length, l, u;
|
|
1416
1416
|
for (; i--; )
|
|
@@ -1419,42 +1419,42 @@ function ji(t, n, e) {
|
|
|
1419
1419
|
break;
|
|
1420
1420
|
}
|
|
1421
1421
|
return a;
|
|
1422
|
-
function a(
|
|
1423
|
-
return l ? l._inactive ? o(
|
|
1422
|
+
function a(p) {
|
|
1423
|
+
return l ? l._inactive ? o(p) : (u = r.parser.defined.includes(
|
|
1424
1424
|
ut(
|
|
1425
1425
|
r.sliceSerialize({
|
|
1426
1426
|
start: l.end,
|
|
1427
1427
|
end: r.now()
|
|
1428
1428
|
})
|
|
1429
1429
|
)
|
|
1430
|
-
), t.enter("labelEnd"), t.enter("labelMarker"), t.consume(
|
|
1430
|
+
), t.enter("labelEnd"), t.enter("labelMarker"), t.consume(p), t.exit("labelMarker"), t.exit("labelEnd"), c) : e(p);
|
|
1431
1431
|
}
|
|
1432
|
-
function c(
|
|
1433
|
-
return
|
|
1434
|
-
|
|
1432
|
+
function c(p) {
|
|
1433
|
+
return p === 40 ? t.attempt(
|
|
1434
|
+
zi,
|
|
1435
1435
|
f,
|
|
1436
1436
|
u ? f : o
|
|
1437
|
-
)(
|
|
1438
|
-
|
|
1437
|
+
)(p) : p === 91 ? t.attempt(
|
|
1438
|
+
Ii,
|
|
1439
1439
|
f,
|
|
1440
1440
|
u ? s : o
|
|
1441
|
-
)(
|
|
1441
|
+
)(p) : u ? f(p) : o(p);
|
|
1442
1442
|
}
|
|
1443
|
-
function s(
|
|
1443
|
+
function s(p) {
|
|
1444
1444
|
return t.attempt(
|
|
1445
|
-
|
|
1445
|
+
Ti,
|
|
1446
1446
|
f,
|
|
1447
1447
|
o
|
|
1448
|
-
)(
|
|
1448
|
+
)(p);
|
|
1449
1449
|
}
|
|
1450
|
-
function f(
|
|
1451
|
-
return n(
|
|
1450
|
+
function f(p) {
|
|
1451
|
+
return n(p);
|
|
1452
1452
|
}
|
|
1453
|
-
function o(
|
|
1454
|
-
return l._balanced = !0, e(
|
|
1453
|
+
function o(p) {
|
|
1454
|
+
return l._balanced = !0, e(p);
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Bi(t, n, e) {
|
|
1458
1458
|
return r;
|
|
1459
1459
|
function r(o) {
|
|
1460
1460
|
return t.enter("resource"), t.enter("resourceMarker"), t.consume(o), t.exit("resourceMarker"), i;
|
|
@@ -1463,7 +1463,7 @@ function Vi(t, n, e) {
|
|
|
1463
1463
|
return V(o) ? Mt(t, l)(o) : l(o);
|
|
1464
1464
|
}
|
|
1465
1465
|
function l(o) {
|
|
1466
|
-
return o === 41 ? f(o) :
|
|
1466
|
+
return o === 41 ? f(o) : In(
|
|
1467
1467
|
t,
|
|
1468
1468
|
u,
|
|
1469
1469
|
a,
|
|
@@ -1482,7 +1482,7 @@ function Vi(t, n, e) {
|
|
|
1482
1482
|
return e(o);
|
|
1483
1483
|
}
|
|
1484
1484
|
function c(o) {
|
|
1485
|
-
return o === 34 || o === 39 || o === 40 ?
|
|
1485
|
+
return o === 34 || o === 39 || o === 40 ? Dn(
|
|
1486
1486
|
t,
|
|
1487
1487
|
s,
|
|
1488
1488
|
e,
|
|
@@ -1498,11 +1498,11 @@ function Vi(t, n, e) {
|
|
|
1498
1498
|
return o === 41 ? (t.enter("resourceMarker"), t.consume(o), t.exit("resourceMarker"), t.exit("resource"), n) : e(o);
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function Pi(t, n, e) {
|
|
1502
1502
|
const r = this;
|
|
1503
1503
|
return i;
|
|
1504
1504
|
function i(a) {
|
|
1505
|
-
return
|
|
1505
|
+
return Tn.call(
|
|
1506
1506
|
r,
|
|
1507
1507
|
t,
|
|
1508
1508
|
l,
|
|
@@ -1523,7 +1523,7 @@ function qi(t, n, e) {
|
|
|
1523
1523
|
return e(a);
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function Mi(t, n, e) {
|
|
1527
1527
|
return r;
|
|
1528
1528
|
function r(l) {
|
|
1529
1529
|
return t.enter("reference"), t.enter("referenceMarker"), t.consume(l), t.exit("referenceMarker"), i;
|
|
@@ -1532,12 +1532,12 @@ function Hi(t, n, e) {
|
|
|
1532
1532
|
return l === 93 ? (t.enter("referenceMarker"), t.consume(l), t.exit("referenceMarker"), t.exit("reference"), n) : e(l);
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
|
-
const
|
|
1535
|
+
const Oi = {
|
|
1536
1536
|
name: "labelStartImage",
|
|
1537
|
-
tokenize:
|
|
1537
|
+
tokenize: Ri,
|
|
1538
1538
|
resolveAll: Ae.resolveAll
|
|
1539
1539
|
};
|
|
1540
|
-
function
|
|
1540
|
+
function Ri(t, n, e) {
|
|
1541
1541
|
const r = this;
|
|
1542
1542
|
return i;
|
|
1543
1543
|
function i(a) {
|
|
@@ -1550,12 +1550,12 @@ function $i(t, n, e) {
|
|
|
1550
1550
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? e(a) : n(a);
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
|
-
const
|
|
1553
|
+
const ji = {
|
|
1554
1554
|
name: "labelStartLink",
|
|
1555
|
-
tokenize:
|
|
1555
|
+
tokenize: Vi,
|
|
1556
1556
|
resolveAll: Ae.resolveAll
|
|
1557
1557
|
};
|
|
1558
|
-
function
|
|
1558
|
+
function Vi(t, n, e) {
|
|
1559
1559
|
const r = this;
|
|
1560
1560
|
return i;
|
|
1561
1561
|
function i(u) {
|
|
@@ -1565,11 +1565,11 @@ function Wi(t, n, e) {
|
|
|
1565
1565
|
return u === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? e(u) : n(u);
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
-
const
|
|
1568
|
+
const ee = {
|
|
1569
1569
|
name: "lineEnding",
|
|
1570
|
-
tokenize:
|
|
1570
|
+
tokenize: qi
|
|
1571
1571
|
};
|
|
1572
|
-
function
|
|
1572
|
+
function qi(t, n) {
|
|
1573
1573
|
return e;
|
|
1574
1574
|
function e(r) {
|
|
1575
1575
|
return t.enter("lineEnding"), t.consume(r), t.exit("lineEnding"), P(t, n, "linePrefix");
|
|
@@ -1577,9 +1577,9 @@ function vi(t, n) {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
const qt = {
|
|
1579
1579
|
name: "thematicBreak",
|
|
1580
|
-
tokenize:
|
|
1580
|
+
tokenize: Hi
|
|
1581
1581
|
};
|
|
1582
|
-
function
|
|
1582
|
+
function Hi(t, n, e) {
|
|
1583
1583
|
let r = 0, i;
|
|
1584
1584
|
return l;
|
|
1585
1585
|
function l(s) {
|
|
@@ -1597,19 +1597,19 @@ function Qi(t, n, e) {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
const Y = {
|
|
1599
1599
|
name: "list",
|
|
1600
|
-
tokenize:
|
|
1600
|
+
tokenize: Ui,
|
|
1601
1601
|
continuation: {
|
|
1602
|
-
tokenize:
|
|
1602
|
+
tokenize: Wi
|
|
1603
1603
|
},
|
|
1604
|
-
exit:
|
|
1605
|
-
},
|
|
1606
|
-
tokenize:
|
|
1604
|
+
exit: Qi
|
|
1605
|
+
}, Ni = {
|
|
1606
|
+
tokenize: Zi,
|
|
1607
1607
|
partial: !0
|
|
1608
|
-
},
|
|
1609
|
-
tokenize:
|
|
1608
|
+
}, $i = {
|
|
1609
|
+
tokenize: vi,
|
|
1610
1610
|
partial: !0
|
|
1611
1611
|
};
|
|
1612
|
-
function
|
|
1612
|
+
function Ui(t, n, e) {
|
|
1613
1613
|
const r = this, i = r.events[r.events.length - 1];
|
|
1614
1614
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, u = 0;
|
|
1615
1615
|
return a;
|
|
@@ -1634,23 +1634,23 @@ function Yi(t, n, e) {
|
|
|
1634
1634
|
// Can’t be empty when interrupting.
|
|
1635
1635
|
r.interrupt ? e : f,
|
|
1636
1636
|
t.attempt(
|
|
1637
|
-
|
|
1638
|
-
|
|
1637
|
+
Ni,
|
|
1638
|
+
p,
|
|
1639
1639
|
o
|
|
1640
1640
|
)
|
|
1641
1641
|
);
|
|
1642
1642
|
}
|
|
1643
1643
|
function f(h) {
|
|
1644
|
-
return r.containerState.initialBlankLine = !0, l++,
|
|
1644
|
+
return r.containerState.initialBlankLine = !0, l++, p(h);
|
|
1645
1645
|
}
|
|
1646
1646
|
function o(h) {
|
|
1647
|
-
return B(h) ? (t.enter("listItemPrefixWhitespace"), t.consume(h), t.exit("listItemPrefixWhitespace"),
|
|
1647
|
+
return B(h) ? (t.enter("listItemPrefixWhitespace"), t.consume(h), t.exit("listItemPrefixWhitespace"), p) : e(h);
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1649
|
+
function p(h) {
|
|
1650
1650
|
return r.containerState.size = l + r.sliceSerialize(t.exit("listItemPrefix"), !0).length, n(h);
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1653
|
+
function Wi(t, n, e) {
|
|
1654
1654
|
const r = this;
|
|
1655
1655
|
return r.containerState._closeFlow = void 0, t.check(Ot, i, l);
|
|
1656
1656
|
function i(a) {
|
|
@@ -1662,7 +1662,7 @@ function Ji(t, n, e) {
|
|
|
1662
1662
|
)(a);
|
|
1663
1663
|
}
|
|
1664
1664
|
function l(a) {
|
|
1665
|
-
return r.containerState.furtherBlankLines || !B(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, u(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, t.attempt(
|
|
1665
|
+
return r.containerState.furtherBlankLines || !B(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, u(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, t.attempt($i, n, u)(a));
|
|
1666
1666
|
}
|
|
1667
1667
|
function u(a) {
|
|
1668
1668
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, P(
|
|
@@ -1673,7 +1673,7 @@ function Ji(t, n, e) {
|
|
|
1673
1673
|
)(a);
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function vi(t, n, e) {
|
|
1677
1677
|
const r = this;
|
|
1678
1678
|
return P(
|
|
1679
1679
|
t,
|
|
@@ -1686,10 +1686,10 @@ function Ki(t, n, e) {
|
|
|
1686
1686
|
return u && u[1].type === "listItemIndent" && u[2].sliceSerialize(u[1], !0).length === r.containerState.size ? n(l) : e(l);
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function Qi(t) {
|
|
1690
1690
|
t.exit(this.containerState.type);
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function Zi(t, n, e) {
|
|
1693
1693
|
const r = this;
|
|
1694
1694
|
return P(
|
|
1695
1695
|
t,
|
|
@@ -1704,10 +1704,10 @@ function tu(t, n, e) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
const Ue = {
|
|
1706
1706
|
name: "setextUnderline",
|
|
1707
|
-
tokenize:
|
|
1708
|
-
resolveTo:
|
|
1707
|
+
tokenize: Yi,
|
|
1708
|
+
resolveTo: Gi
|
|
1709
1709
|
};
|
|
1710
|
-
function
|
|
1710
|
+
function Gi(t, n) {
|
|
1711
1711
|
let e = t.length, r, i, l;
|
|
1712
1712
|
for (; e--; )
|
|
1713
1713
|
if (t[e][0] === "enter") {
|
|
@@ -1725,7 +1725,7 @@ function eu(t, n) {
|
|
|
1725
1725
|
};
|
|
1726
1726
|
return t[i][1].type = "setextHeadingText", l ? (t.splice(i, 0, ["enter", u, n]), t.splice(l + 1, 0, ["exit", t[r][1], n]), t[r][1].end = Object.assign({}, t[l][1].end)) : t[r][1] = u, t.push(["exit", u, n]), t;
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function Yi(t, n, e) {
|
|
1729
1729
|
const r = this;
|
|
1730
1730
|
let i;
|
|
1731
1731
|
return l;
|
|
@@ -1748,34 +1748,34 @@ function nu(t, n, e) {
|
|
|
1748
1748
|
return s === null || T(s) ? (t.exit("setextHeadingLine"), n(s)) : e(s);
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
|
-
const
|
|
1752
|
-
tokenize:
|
|
1751
|
+
const Ji = {
|
|
1752
|
+
tokenize: uu,
|
|
1753
1753
|
partial: !0
|
|
1754
1754
|
};
|
|
1755
|
-
function
|
|
1755
|
+
function Ki() {
|
|
1756
1756
|
return {
|
|
1757
1757
|
document: {
|
|
1758
1758
|
91: {
|
|
1759
|
-
tokenize:
|
|
1759
|
+
tokenize: nu,
|
|
1760
1760
|
continuation: {
|
|
1761
|
-
tokenize:
|
|
1761
|
+
tokenize: ru
|
|
1762
1762
|
},
|
|
1763
|
-
exit:
|
|
1763
|
+
exit: iu
|
|
1764
1764
|
}
|
|
1765
1765
|
},
|
|
1766
1766
|
text: {
|
|
1767
1767
|
91: {
|
|
1768
|
-
tokenize:
|
|
1768
|
+
tokenize: eu
|
|
1769
1769
|
},
|
|
1770
1770
|
93: {
|
|
1771
1771
|
add: "after",
|
|
1772
|
-
tokenize:
|
|
1773
|
-
resolveTo:
|
|
1772
|
+
tokenize: Xi,
|
|
1773
|
+
resolveTo: tu
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
1776
|
};
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function Xi(t, n, e) {
|
|
1779
1779
|
const r = this;
|
|
1780
1780
|
let i = r.events.length;
|
|
1781
1781
|
const l = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -1802,7 +1802,7 @@ function uu(t, n, e) {
|
|
|
1802
1802
|
return s.codePointAt(0) !== 94 || !l.includes(s.slice(1)) ? e(c) : (t.enter("gfmFootnoteCallLabelMarker"), t.consume(c), t.exit("gfmFootnoteCallLabelMarker"), n(c));
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function tu(t, n) {
|
|
1806
1806
|
let e = t.length;
|
|
1807
1807
|
for (; e--; )
|
|
1808
1808
|
if (t[e][1].type === "labelImage" && t[e][0] === "enter") {
|
|
@@ -1852,7 +1852,7 @@ function lu(t, n) {
|
|
|
1852
1852
|
];
|
|
1853
1853
|
return t.splice(e, t.length - e + 1, ...a), t;
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function eu(t, n, e) {
|
|
1856
1856
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
1857
1857
|
let l = 0, u;
|
|
1858
1858
|
return a;
|
|
@@ -1873,8 +1873,8 @@ function au(t, n, e) {
|
|
|
1873
1873
|
return e(o);
|
|
1874
1874
|
if (o === 93) {
|
|
1875
1875
|
t.exit("chunkString");
|
|
1876
|
-
const
|
|
1877
|
-
return i.includes(ut(r.sliceSerialize(
|
|
1876
|
+
const p = t.exit("gfmFootnoteCallString");
|
|
1877
|
+
return i.includes(ut(r.sliceSerialize(p))) ? (t.enter("gfmFootnoteCallLabelMarker"), t.consume(o), t.exit("gfmFootnoteCallLabelMarker"), t.exit("gfmFootnoteCall"), n) : e(o);
|
|
1878
1878
|
}
|
|
1879
1879
|
return V(o) || (u = !0), l++, t.consume(o), o === 92 ? f : s;
|
|
1880
1880
|
}
|
|
@@ -1882,7 +1882,7 @@ function au(t, n, e) {
|
|
|
1882
1882
|
return o === 91 || o === 92 || o === 93 ? (t.consume(o), l++, s) : s(o);
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function nu(t, n, e) {
|
|
1886
1886
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
1887
1887
|
let l, u = 0, a;
|
|
1888
1888
|
return c;
|
|
@@ -1904,14 +1904,14 @@ function ou(t, n, e) {
|
|
|
1904
1904
|
if (d === 93) {
|
|
1905
1905
|
t.exit("chunkString");
|
|
1906
1906
|
const w = t.exit("gfmFootnoteDefinitionLabelString");
|
|
1907
|
-
return l = ut(r.sliceSerialize(w)), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(d), t.exit("gfmFootnoteDefinitionLabelMarker"), t.exit("gfmFootnoteDefinitionLabel"),
|
|
1907
|
+
return l = ut(r.sliceSerialize(w)), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(d), t.exit("gfmFootnoteDefinitionLabelMarker"), t.exit("gfmFootnoteDefinitionLabel"), p;
|
|
1908
1908
|
}
|
|
1909
1909
|
return V(d) || (a = !0), u++, t.consume(d), d === 92 ? o : f;
|
|
1910
1910
|
}
|
|
1911
1911
|
function o(d) {
|
|
1912
1912
|
return d === 91 || d === 92 || d === 93 ? (t.consume(d), u++, f) : f(d);
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function p(d) {
|
|
1915
1915
|
return d === 58 ? (t.enter("definitionMarker"), t.consume(d), t.exit("definitionMarker"), i.includes(l) || i.push(l), P(
|
|
1916
1916
|
t,
|
|
1917
1917
|
h,
|
|
@@ -1922,13 +1922,13 @@ function ou(t, n, e) {
|
|
|
1922
1922
|
return n(d);
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1926
|
-
return t.check(Ot, n, t.attempt(
|
|
1925
|
+
function ru(t, n, e) {
|
|
1926
|
+
return t.check(Ot, n, t.attempt(Ji, n, e));
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function iu(t) {
|
|
1929
1929
|
t.exit("gfmFootnoteDefinition");
|
|
1930
1930
|
}
|
|
1931
|
-
function
|
|
1931
|
+
function uu(t, n, e) {
|
|
1932
1932
|
const r = this;
|
|
1933
1933
|
return P(
|
|
1934
1934
|
t,
|
|
@@ -1941,7 +1941,7 @@ function fu(t, n, e) {
|
|
|
1941
1941
|
return u && u[1].type === "gfmFootnoteDefinitionIndent" && u[2].sliceSerialize(u[1], !0).length === 4 ? n(l) : e(l);
|
|
1942
1942
|
}
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1944
|
+
function lu(t) {
|
|
1945
1945
|
let e = (t || {}).singleTilde;
|
|
1946
1946
|
const r = {
|
|
1947
1947
|
tokenize: l,
|
|
@@ -1975,23 +1975,23 @@ function hu(t) {
|
|
|
1975
1975
|
type: "strikethroughText",
|
|
1976
1976
|
start: Object.assign({}, u[s][1].end),
|
|
1977
1977
|
end: Object.assign({}, u[c][1].start)
|
|
1978
|
-
},
|
|
1978
|
+
}, p = [
|
|
1979
1979
|
["enter", f, a],
|
|
1980
1980
|
["enter", u[s][1], a],
|
|
1981
1981
|
["exit", u[s][1], a],
|
|
1982
1982
|
["enter", o, a]
|
|
1983
1983
|
], h = a.parser.constructs.insideSpan.null;
|
|
1984
1984
|
h && X(
|
|
1985
|
-
|
|
1986
|
-
|
|
1985
|
+
p,
|
|
1986
|
+
p.length,
|
|
1987
1987
|
0,
|
|
1988
|
-
|
|
1989
|
-
), X(
|
|
1988
|
+
Zt(h, u.slice(s + 1, c), a)
|
|
1989
|
+
), X(p, p.length, 0, [
|
|
1990
1990
|
["exit", o, a],
|
|
1991
1991
|
["enter", u[c][1], a],
|
|
1992
1992
|
["exit", u[c][1], a],
|
|
1993
1993
|
["exit", f, a]
|
|
1994
|
-
]), X(u, s - 1, c - s + 3,
|
|
1994
|
+
]), X(u, s - 1, c - s + 3, p), c = s + p.length - 2;
|
|
1995
1995
|
break;
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
@@ -2002,21 +2002,21 @@ function hu(t) {
|
|
|
2002
2002
|
function l(u, a, c) {
|
|
2003
2003
|
const s = this.previous, f = this.events;
|
|
2004
2004
|
let o = 0;
|
|
2005
|
-
return
|
|
2006
|
-
function
|
|
2005
|
+
return p;
|
|
2006
|
+
function p(d) {
|
|
2007
2007
|
return s === 126 && f[f.length - 1][1].type !== "characterEscape" ? c(d) : (u.enter("strikethroughSequenceTemporary"), h(d));
|
|
2008
2008
|
}
|
|
2009
2009
|
function h(d) {
|
|
2010
|
-
const w =
|
|
2010
|
+
const w = Wt(s);
|
|
2011
2011
|
if (d === 126)
|
|
2012
2012
|
return o > 1 ? c(d) : (u.consume(d), o++, h);
|
|
2013
2013
|
if (o < 2 && !e) return c(d);
|
|
2014
|
-
const C = u.exit("strikethroughSequenceTemporary"), b =
|
|
2014
|
+
const C = u.exit("strikethroughSequenceTemporary"), b = Wt(d);
|
|
2015
2015
|
return C._open = !b || b === 2 && !!w, C._close = !w || w === 2 && !!b, a(d);
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
2018
2018
|
}
|
|
2019
|
-
class
|
|
2019
|
+
class au {
|
|
2020
2020
|
/**
|
|
2021
2021
|
* Create a new edit map.
|
|
2022
2022
|
*/
|
|
@@ -2032,7 +2032,7 @@ class pu {
|
|
|
2032
2032
|
* @returns {void}
|
|
2033
2033
|
*/
|
|
2034
2034
|
add(n, e, r) {
|
|
2035
|
-
|
|
2035
|
+
ou(this, n, e, r);
|
|
2036
2036
|
}
|
|
2037
2037
|
// To do: not used here.
|
|
2038
2038
|
// /**
|
|
@@ -2066,7 +2066,7 @@ class pu {
|
|
|
2066
2066
|
this.map.length = 0;
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2069
|
+
function ou(t, n, e, r) {
|
|
2070
2070
|
let i = 0;
|
|
2071
2071
|
if (!(e === 0 && r.length === 0)) {
|
|
2072
2072
|
for (; i < t.map.length; ) {
|
|
@@ -2079,7 +2079,7 @@ function mu(t, n, e, r) {
|
|
|
2079
2079
|
t.map.push([n, e, r]);
|
|
2080
2080
|
}
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2082
|
+
function su(t, n) {
|
|
2083
2083
|
let e = !1;
|
|
2084
2084
|
const r = [];
|
|
2085
2085
|
for (; n < t.length; ) {
|
|
@@ -2101,15 +2101,15 @@ function gu(t, n) {
|
|
|
2101
2101
|
}
|
|
2102
2102
|
return r;
|
|
2103
2103
|
}
|
|
2104
|
-
const
|
|
2104
|
+
const cu = {
|
|
2105
2105
|
flow: {
|
|
2106
2106
|
null: {
|
|
2107
|
-
tokenize:
|
|
2108
|
-
resolveAll:
|
|
2107
|
+
tokenize: fu,
|
|
2108
|
+
resolveAll: hu
|
|
2109
2109
|
}
|
|
2110
2110
|
}
|
|
2111
2111
|
};
|
|
2112
|
-
function
|
|
2112
|
+
function fu(t, n, e) {
|
|
2113
2113
|
const r = this;
|
|
2114
2114
|
let i = 0, l = 0, u;
|
|
2115
2115
|
return a;
|
|
@@ -2135,9 +2135,9 @@ function ku(t, n, e) {
|
|
|
2135
2135
|
return k === null ? e(k) : T(k) ? l > 1 ? (l = 0, r.interrupt = !0, t.exit("tableRow"), t.enter("lineEnding"), t.consume(k), t.exit("lineEnding"), h) : e(k) : B(k) ? P(t, f, "whitespace")(k) : (l += 1, u && (u = !1, i += 1), k === 124 ? (t.enter("tableCellDivider"), t.consume(k), t.exit("tableCellDivider"), u = !0, f) : (t.enter("data"), o(k)));
|
|
2136
2136
|
}
|
|
2137
2137
|
function o(k) {
|
|
2138
|
-
return k === null || k === 124 || V(k) ? (t.exit("data"), f(k)) : (t.consume(k), k === 92 ?
|
|
2138
|
+
return k === null || k === 124 || V(k) ? (t.exit("data"), f(k)) : (t.consume(k), k === 92 ? p : o);
|
|
2139
2139
|
}
|
|
2140
|
-
function
|
|
2140
|
+
function p(k) {
|
|
2141
2141
|
return k === 92 || k === 124 ? (t.consume(k), o) : o(k);
|
|
2142
2142
|
}
|
|
2143
2143
|
function h(k) {
|
|
@@ -2185,47 +2185,47 @@ function ku(t, n, e) {
|
|
|
2185
2185
|
return k === 92 || k === 124 ? (t.consume(k), q) : q(k);
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2188
|
+
function hu(t, n) {
|
|
2189
2189
|
let e = -1, r = !0, i = 0, l = [0, 0, 0, 0], u = [0, 0, 0, 0], a = !1, c = 0, s, f, o;
|
|
2190
|
-
const
|
|
2190
|
+
const p = new au();
|
|
2191
2191
|
for (; ++e < t.length; ) {
|
|
2192
2192
|
const h = t[e], d = h[1];
|
|
2193
|
-
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, c !== 0 && (We(
|
|
2193
|
+
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, c !== 0 && (We(p, n, c, s, f), f = void 0, c = 0), s = {
|
|
2194
2194
|
type: "table",
|
|
2195
2195
|
start: Object.assign({}, d.start),
|
|
2196
2196
|
// Note: correct end is set later.
|
|
2197
2197
|
end: Object.assign({}, d.end)
|
|
2198
|
-
},
|
|
2198
|
+
}, p.add(e, 0, [["enter", s, n]])) : d.type === "tableRow" || d.type === "tableDelimiterRow" ? (r = !0, o = void 0, l = [0, 0, 0, 0], u = [0, e + 1, 0, 0], a && (a = !1, f = {
|
|
2199
2199
|
type: "tableBody",
|
|
2200
2200
|
start: Object.assign({}, d.start),
|
|
2201
2201
|
// Note: correct end is set later.
|
|
2202
2202
|
end: Object.assign({}, d.end)
|
|
2203
|
-
},
|
|
2204
|
-
|
|
2203
|
+
}, p.add(e, 0, [["enter", f, n]])), i = d.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") ? (r = !1, u[2] === 0 && (l[1] !== 0 && (u[0] = u[1], o = jt(
|
|
2204
|
+
p,
|
|
2205
2205
|
n,
|
|
2206
2206
|
l,
|
|
2207
2207
|
i,
|
|
2208
2208
|
void 0,
|
|
2209
2209
|
o
|
|
2210
2210
|
), l = [0, 0, 0, 0]), u[2] = e)) : d.type === "tableCellDivider" && (r ? r = !1 : (l[1] !== 0 && (u[0] = u[1], o = jt(
|
|
2211
|
-
|
|
2211
|
+
p,
|
|
2212
2212
|
n,
|
|
2213
2213
|
l,
|
|
2214
2214
|
i,
|
|
2215
2215
|
void 0,
|
|
2216
2216
|
o
|
|
2217
2217
|
)), l = u, u = [l[1], e, 0, 0])) : d.type === "tableHead" ? (a = !0, c = e) : d.type === "tableRow" || d.type === "tableDelimiterRow" ? (c = e, l[1] !== 0 ? (u[0] = u[1], o = jt(
|
|
2218
|
-
|
|
2218
|
+
p,
|
|
2219
2219
|
n,
|
|
2220
2220
|
l,
|
|
2221
2221
|
i,
|
|
2222
2222
|
e,
|
|
2223
2223
|
o
|
|
2224
|
-
)) : u[1] !== 0 && (o = jt(
|
|
2224
|
+
)) : u[1] !== 0 && (o = jt(p, n, u, i, e, o)), i = 0) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") && (u[3] = e);
|
|
2225
2225
|
}
|
|
2226
|
-
for (c !== 0 && We(
|
|
2226
|
+
for (c !== 0 && We(p, n, c, s, f), p.consume(n.events), e = -1; ++e < n.events.length; ) {
|
|
2227
2227
|
const h = n.events[e];
|
|
2228
|
-
h[0] === "enter" && h[1].type === "table" && (h[1]._align =
|
|
2228
|
+
h[0] === "enter" && h[1].type === "table" && (h[1]._align = su(n.events, e));
|
|
2229
2229
|
}
|
|
2230
2230
|
return t;
|
|
2231
2231
|
}
|
|
@@ -2245,8 +2245,8 @@ function jt(t, n, e, r, i, l) {
|
|
|
2245
2245
|
end: Object.assign({}, f)
|
|
2246
2246
|
};
|
|
2247
2247
|
if (t.add(e[2], 0, [["enter", o, n]]), r !== 2) {
|
|
2248
|
-
const
|
|
2249
|
-
if (
|
|
2248
|
+
const p = n.events[e[2]], h = n.events[e[3]];
|
|
2249
|
+
if (p[1].end = Object.assign({}, h[1].end), p[1].type = "chunkText", p[1].contentType = "text", e[3] > e[2] + 1) {
|
|
2250
2250
|
const d = e[2] + 1, w = e[3] - e[2] - 1;
|
|
2251
2251
|
t.add(d, w, []);
|
|
2252
2252
|
}
|
|
@@ -2263,14 +2263,14 @@ function It(t, n) {
|
|
|
2263
2263
|
const e = t[n], r = e[0] === "enter" ? "start" : "end";
|
|
2264
2264
|
return e[1][r];
|
|
2265
2265
|
}
|
|
2266
|
-
const
|
|
2267
|
-
tokenize:
|
|
2268
|
-
},
|
|
2266
|
+
const pu = {
|
|
2267
|
+
tokenize: gu
|
|
2268
|
+
}, mu = {
|
|
2269
2269
|
text: {
|
|
2270
|
-
91:
|
|
2270
|
+
91: pu
|
|
2271
2271
|
}
|
|
2272
2272
|
};
|
|
2273
|
-
function
|
|
2273
|
+
function gu(t, n, e) {
|
|
2274
2274
|
const r = this;
|
|
2275
2275
|
return i;
|
|
2276
2276
|
function i(c) {
|
|
@@ -2290,26 +2290,26 @@ function wu(t, n, e) {
|
|
|
2290
2290
|
function a(c) {
|
|
2291
2291
|
return T(c) ? n(c) : B(c) ? t.check(
|
|
2292
2292
|
{
|
|
2293
|
-
tokenize:
|
|
2293
|
+
tokenize: du
|
|
2294
2294
|
},
|
|
2295
2295
|
n,
|
|
2296
2296
|
e
|
|
2297
2297
|
)(c) : e(c);
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2300
|
+
function du(t, n, e) {
|
|
2301
2301
|
return P(t, r, "whitespace");
|
|
2302
2302
|
function r(i) {
|
|
2303
2303
|
return i === null ? e(i) : n(i);
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2307
|
-
return
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2306
|
+
function ku(t) {
|
|
2307
|
+
return gn([
|
|
2308
|
+
Ir,
|
|
2309
|
+
Ki(),
|
|
2310
|
+
lu(t),
|
|
2311
|
+
cu,
|
|
2312
|
+
mu
|
|
2313
2313
|
]);
|
|
2314
2314
|
}
|
|
2315
2315
|
function ve(t, n) {
|
|
@@ -2321,7 +2321,7 @@ function ve(t, n) {
|
|
|
2321
2321
|
r++, i = e.indexOf(n, i + n.length);
|
|
2322
2322
|
return r;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function xu(t) {
|
|
2325
2325
|
if (typeof t != "string")
|
|
2326
2326
|
throw new TypeError("Expected a string");
|
|
2327
2327
|
return t.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
@@ -2339,22 +2339,22 @@ const Ee = (
|
|
|
2339
2339
|
*/
|
|
2340
2340
|
(function(t) {
|
|
2341
2341
|
if (t == null)
|
|
2342
|
-
return
|
|
2342
|
+
return Fu;
|
|
2343
2343
|
if (typeof t == "string")
|
|
2344
|
-
return
|
|
2344
|
+
return wu(t);
|
|
2345
2345
|
if (typeof t == "object")
|
|
2346
|
-
return Array.isArray(t) ?
|
|
2346
|
+
return Array.isArray(t) ? bu(t) : yu(t);
|
|
2347
2347
|
if (typeof t == "function")
|
|
2348
|
-
return
|
|
2348
|
+
return Gt(t);
|
|
2349
2349
|
throw new Error("Expected function, string, or object as test");
|
|
2350
2350
|
})
|
|
2351
2351
|
);
|
|
2352
|
-
function
|
|
2352
|
+
function bu(t) {
|
|
2353
2353
|
const n = [];
|
|
2354
2354
|
let e = -1;
|
|
2355
2355
|
for (; ++e < t.length; )
|
|
2356
2356
|
n[e] = Ee(t[e]);
|
|
2357
|
-
return
|
|
2357
|
+
return Gt(r);
|
|
2358
2358
|
function r(...i) {
|
|
2359
2359
|
let l = -1;
|
|
2360
2360
|
for (; ++l < n.length; )
|
|
@@ -2362,8 +2362,8 @@ function Au(t) {
|
|
|
2362
2362
|
return !1;
|
|
2363
2363
|
}
|
|
2364
2364
|
}
|
|
2365
|
-
function
|
|
2366
|
-
return
|
|
2365
|
+
function yu(t) {
|
|
2366
|
+
return Gt(n);
|
|
2367
2367
|
function n(e) {
|
|
2368
2368
|
let r;
|
|
2369
2369
|
for (r in t)
|
|
@@ -2371,22 +2371,22 @@ function Eu(t) {
|
|
|
2371
2371
|
return !0;
|
|
2372
2372
|
}
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2375
|
-
return
|
|
2374
|
+
function wu(t) {
|
|
2375
|
+
return Gt(n);
|
|
2376
2376
|
function n(e) {
|
|
2377
2377
|
return e && e.type === t;
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
|
-
function
|
|
2380
|
+
function Gt(t) {
|
|
2381
2381
|
return n;
|
|
2382
2382
|
function n(e, ...r) {
|
|
2383
2383
|
return !!(e && typeof e == "object" && "type" in e && t.call(this, e, ...r));
|
|
2384
2384
|
}
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function Fu() {
|
|
2387
2387
|
return !0;
|
|
2388
2388
|
}
|
|
2389
|
-
const
|
|
2389
|
+
const Su = !0, Qe = !1, Cu = "skip", Au = (
|
|
2390
2390
|
/**
|
|
2391
2391
|
* @type {(
|
|
2392
2392
|
* (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined) => void) &
|
|
@@ -2406,7 +2406,7 @@ const Tu = !0, Qe = !1, Du = "skip", _u = (
|
|
|
2406
2406
|
function u(a, c, s) {
|
|
2407
2407
|
const f = a && typeof a == "object" ? a : {};
|
|
2408
2408
|
if (typeof f.type == "string") {
|
|
2409
|
-
const
|
|
2409
|
+
const p = (
|
|
2410
2410
|
// `hast`
|
|
2411
2411
|
typeof f.tagName == "string" ? f.tagName : (
|
|
2412
2412
|
// `xast`
|
|
@@ -2414,29 +2414,29 @@ const Tu = !0, Qe = !1, Du = "skip", _u = (
|
|
|
2414
2414
|
)
|
|
2415
2415
|
);
|
|
2416
2416
|
Object.defineProperty(o, "name", {
|
|
2417
|
-
value: "node (" + (a.type + (
|
|
2417
|
+
value: "node (" + (a.type + (p ? "<" + p + ">" : "")) + ")"
|
|
2418
2418
|
});
|
|
2419
2419
|
}
|
|
2420
2420
|
return o;
|
|
2421
2421
|
function o() {
|
|
2422
|
-
let
|
|
2423
|
-
if (i(a, c, s[s.length - 1] || null) && (
|
|
2424
|
-
return
|
|
2425
|
-
if (a.children &&
|
|
2422
|
+
let p = [], h, d, w;
|
|
2423
|
+
if (i(a, c, s[s.length - 1] || null) && (p = Eu(e(a, s)), p[0] === Qe))
|
|
2424
|
+
return p;
|
|
2425
|
+
if (a.children && p[0] !== Cu)
|
|
2426
2426
|
for (d = -1 + l, w = s.concat(a); d > -1 && d < a.children.length; ) {
|
|
2427
2427
|
if (h = u(a.children[d], d, w)(), h[0] === Qe)
|
|
2428
2428
|
return h;
|
|
2429
2429
|
d = typeof h[1] == "number" ? h[1] : d + l;
|
|
2430
2430
|
}
|
|
2431
|
-
return
|
|
2431
|
+
return p;
|
|
2432
2432
|
}
|
|
2433
2433
|
}
|
|
2434
2434
|
})
|
|
2435
2435
|
);
|
|
2436
|
-
function
|
|
2437
|
-
return Array.isArray(t) ? t : typeof t == "number" ? [
|
|
2436
|
+
function Eu(t) {
|
|
2437
|
+
return Array.isArray(t) ? t : typeof t == "number" ? [Su, t] : [t];
|
|
2438
2438
|
}
|
|
2439
|
-
const
|
|
2439
|
+
const zu = {}.hasOwnProperty, Iu = (
|
|
2440
2440
|
/**
|
|
2441
2441
|
* @type {(
|
|
2442
2442
|
* (<Tree extends Node>(tree: Tree, find: Find, replace?: Replace | null | undefined, options?: Options | null | undefined) => Tree) &
|
|
@@ -2454,15 +2454,15 @@ const Bu = {}.hasOwnProperty, Pu = (
|
|
|
2454
2454
|
(function(t, n, e, r) {
|
|
2455
2455
|
let i, l;
|
|
2456
2456
|
typeof n == "string" || n instanceof RegExp ? (l = [[n, e]], i = r) : (l = n, i = e), i || (i = {});
|
|
2457
|
-
const u = Ee(i.ignore || []), a =
|
|
2457
|
+
const u = Ee(i.ignore || []), a = Tu(l);
|
|
2458
2458
|
let c = -1;
|
|
2459
2459
|
for (; ++c < a.length; )
|
|
2460
|
-
|
|
2460
|
+
Au(t, "text", s);
|
|
2461
2461
|
return t;
|
|
2462
|
-
function s(o,
|
|
2462
|
+
function s(o, p) {
|
|
2463
2463
|
let h = -1, d;
|
|
2464
|
-
for (; ++h <
|
|
2465
|
-
const w =
|
|
2464
|
+
for (; ++h < p.length; ) {
|
|
2465
|
+
const w = p[h];
|
|
2466
2466
|
if (u(
|
|
2467
2467
|
w,
|
|
2468
2468
|
// @ts-expect-error: TS doesn’t understand but it’s perfect.
|
|
@@ -2473,10 +2473,10 @@ const Bu = {}.hasOwnProperty, Pu = (
|
|
|
2473
2473
|
d = w;
|
|
2474
2474
|
}
|
|
2475
2475
|
if (d)
|
|
2476
|
-
return f(o,
|
|
2476
|
+
return f(o, p);
|
|
2477
2477
|
}
|
|
2478
|
-
function f(o,
|
|
2479
|
-
const h =
|
|
2478
|
+
function f(o, p) {
|
|
2479
|
+
const h = p[p.length - 1], d = a[c][0], w = a[c][1];
|
|
2480
2480
|
let C = 0;
|
|
2481
2481
|
const b = h.children.indexOf(o);
|
|
2482
2482
|
let I = !1, F = [];
|
|
@@ -2487,7 +2487,7 @@ const Bu = {}.hasOwnProperty, Pu = (
|
|
|
2487
2487
|
index: L.index,
|
|
2488
2488
|
input: L.input,
|
|
2489
2489
|
// @ts-expect-error: stack is fine.
|
|
2490
|
-
stack: [...
|
|
2490
|
+
stack: [...p, o]
|
|
2491
2491
|
};
|
|
2492
2492
|
let _ = w(...L, y);
|
|
2493
2493
|
if (typeof _ == "string" && (_ = _.length > 0 ? { type: "text", value: _ } : void 0), _ !== !1 && (C !== z && F.push({
|
|
@@ -2501,7 +2501,7 @@ const Bu = {}.hasOwnProperty, Pu = (
|
|
|
2501
2501
|
}
|
|
2502
2502
|
})
|
|
2503
2503
|
);
|
|
2504
|
-
function
|
|
2504
|
+
function Tu(t) {
|
|
2505
2505
|
const n = [];
|
|
2506
2506
|
if (typeof t != "object")
|
|
2507
2507
|
throw new TypeError("Expected array or object as schema");
|
|
@@ -2515,59 +2515,59 @@ function Mu(t) {
|
|
|
2515
2515
|
} else {
|
|
2516
2516
|
let e;
|
|
2517
2517
|
for (e in t)
|
|
2518
|
-
|
|
2518
|
+
zu.call(t, e) && n.push([Ze(e), Ge(t[e])]);
|
|
2519
2519
|
}
|
|
2520
2520
|
return n;
|
|
2521
2521
|
}
|
|
2522
2522
|
function Ze(t) {
|
|
2523
|
-
return typeof t == "string" ? new RegExp(
|
|
2523
|
+
return typeof t == "string" ? new RegExp(xu(t), "g") : t;
|
|
2524
2524
|
}
|
|
2525
2525
|
function Ge(t) {
|
|
2526
2526
|
return typeof t == "function" ? t : () => t;
|
|
2527
2527
|
}
|
|
2528
|
-
const
|
|
2529
|
-
transforms: [
|
|
2528
|
+
const ne = "phrasing", re = ["autolink", "link", "image", "label"], Du = {
|
|
2529
|
+
transforms: [Ru],
|
|
2530
2530
|
enter: {
|
|
2531
|
-
literalAutolink:
|
|
2532
|
-
literalAutolinkEmail:
|
|
2533
|
-
literalAutolinkHttp:
|
|
2534
|
-
literalAutolinkWww:
|
|
2531
|
+
literalAutolink: Lu,
|
|
2532
|
+
literalAutolinkEmail: ie,
|
|
2533
|
+
literalAutolinkHttp: ie,
|
|
2534
|
+
literalAutolinkWww: ie
|
|
2535
2535
|
},
|
|
2536
2536
|
exit: {
|
|
2537
|
-
literalAutolink:
|
|
2538
|
-
literalAutolinkEmail:
|
|
2539
|
-
literalAutolinkHttp:
|
|
2540
|
-
literalAutolinkWww:
|
|
2537
|
+
literalAutolink: Ou,
|
|
2538
|
+
literalAutolinkEmail: Mu,
|
|
2539
|
+
literalAutolinkHttp: Bu,
|
|
2540
|
+
literalAutolinkWww: Pu
|
|
2541
2541
|
}
|
|
2542
|
-
},
|
|
2542
|
+
}, _u = {
|
|
2543
2543
|
unsafe: [
|
|
2544
2544
|
{
|
|
2545
2545
|
character: "@",
|
|
2546
2546
|
before: "[+\\-.\\w]",
|
|
2547
2547
|
after: "[\\-.\\w]",
|
|
2548
|
-
inConstruct:
|
|
2549
|
-
notInConstruct:
|
|
2548
|
+
inConstruct: ne,
|
|
2549
|
+
notInConstruct: re
|
|
2550
2550
|
},
|
|
2551
2551
|
{
|
|
2552
2552
|
character: ".",
|
|
2553
2553
|
before: "[Ww]",
|
|
2554
2554
|
after: "[\\-.\\w]",
|
|
2555
|
-
inConstruct:
|
|
2556
|
-
notInConstruct:
|
|
2555
|
+
inConstruct: ne,
|
|
2556
|
+
notInConstruct: re
|
|
2557
2557
|
},
|
|
2558
|
-
{ character: ":", before: "[ps]", after: "\\/", inConstruct:
|
|
2558
|
+
{ character: ":", before: "[ps]", after: "\\/", inConstruct: ne, notInConstruct: re }
|
|
2559
2559
|
]
|
|
2560
2560
|
};
|
|
2561
|
-
function
|
|
2561
|
+
function Lu(t) {
|
|
2562
2562
|
this.enter({ type: "link", title: null, url: "", children: [] }, t);
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2564
|
+
function ie(t) {
|
|
2565
2565
|
this.config.enter.autolinkProtocol.call(this, t);
|
|
2566
2566
|
}
|
|
2567
|
-
function
|
|
2567
|
+
function Bu(t) {
|
|
2568
2568
|
this.config.exit.autolinkProtocol.call(this, t);
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2570
|
+
function Pu(t) {
|
|
2571
2571
|
this.config.exit.data.call(this, t);
|
|
2572
2572
|
const n = (
|
|
2573
2573
|
/** @type {Link} */
|
|
@@ -2575,27 +2575,27 @@ function qu(t) {
|
|
|
2575
2575
|
);
|
|
2576
2576
|
n.url = "http://" + this.sliceSerialize(t);
|
|
2577
2577
|
}
|
|
2578
|
-
function
|
|
2578
|
+
function Mu(t) {
|
|
2579
2579
|
this.config.exit.autolinkEmail.call(this, t);
|
|
2580
2580
|
}
|
|
2581
|
-
function
|
|
2581
|
+
function Ou(t) {
|
|
2582
2582
|
this.exit(t);
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2585
|
-
|
|
2584
|
+
function Ru(t) {
|
|
2585
|
+
Iu(
|
|
2586
2586
|
t,
|
|
2587
2587
|
[
|
|
2588
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
2589
|
-
[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,
|
|
2588
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, ju],
|
|
2589
|
+
[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g, Vu]
|
|
2590
2590
|
],
|
|
2591
2591
|
{ ignore: ["link", "linkReference"] }
|
|
2592
2592
|
);
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2594
|
+
function ju(t, n, e, r, i) {
|
|
2595
2595
|
let l = "";
|
|
2596
|
-
if (!
|
|
2596
|
+
if (!_n(i) || (/^w/i.test(n) && (e = n + e, n = "", l = "http://"), !qu(e)))
|
|
2597
2597
|
return !1;
|
|
2598
|
-
const u =
|
|
2598
|
+
const u = Hu(e + r);
|
|
2599
2599
|
if (!u[0]) return !1;
|
|
2600
2600
|
const a = {
|
|
2601
2601
|
type: "link",
|
|
@@ -2605,10 +2605,10 @@ function Uu(t, n, e, r, i) {
|
|
|
2605
2605
|
};
|
|
2606
2606
|
return u[1] ? [a, { type: "text", value: u[1] }] : a;
|
|
2607
2607
|
}
|
|
2608
|
-
function
|
|
2608
|
+
function Vu(t, n, e, r) {
|
|
2609
2609
|
return (
|
|
2610
2610
|
// Not an expected previous character.
|
|
2611
|
-
!
|
|
2611
|
+
!_n(r, !0) || // Label ends in not allowed character.
|
|
2612
2612
|
/[-\d_]$/.test(e) ? !1 : {
|
|
2613
2613
|
type: "link",
|
|
2614
2614
|
title: null,
|
|
@@ -2617,11 +2617,11 @@ function Wu(t, n, e, r) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
);
|
|
2619
2619
|
}
|
|
2620
|
-
function
|
|
2620
|
+
function qu(t) {
|
|
2621
2621
|
const n = t.split(".");
|
|
2622
2622
|
return !(n.length < 2 || n[n.length - 1] && (/_/.test(n[n.length - 1]) || !/[a-zA-Z\d]/.test(n[n.length - 1])) || n[n.length - 2] && (/_/.test(n[n.length - 2]) || !/[a-zA-Z\d]/.test(n[n.length - 2])));
|
|
2623
2623
|
}
|
|
2624
|
-
function
|
|
2624
|
+
function Hu(t) {
|
|
2625
2625
|
const n = /[!"&'),.:;<>?\]}]+$/.exec(t);
|
|
2626
2626
|
if (!n)
|
|
2627
2627
|
return [t, void 0];
|
|
@@ -2633,11 +2633,11 @@ function Qu(t) {
|
|
|
2633
2633
|
t += e.slice(0, r + 1), e = e.slice(r + 1), r = e.indexOf(")"), l++;
|
|
2634
2634
|
return [t, e];
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2636
|
+
function _n(t, n) {
|
|
2637
2637
|
const e = t.input.charCodeAt(t.index - 1);
|
|
2638
|
-
return (t.index === 0 || St(e) ||
|
|
2638
|
+
return (t.index === 0 || St(e) || Qt(e)) && (!n || e !== 47);
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2640
|
+
function Ln(t, n) {
|
|
2641
2641
|
const e = Number.parseInt(t, n);
|
|
2642
2642
|
return (
|
|
2643
2643
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -2648,23 +2648,23 @@ function Rn(t, n) {
|
|
|
2648
2648
|
e > 1114111 ? "�" : String.fromCharCode(e)
|
|
2649
2649
|
);
|
|
2650
2650
|
}
|
|
2651
|
-
const
|
|
2652
|
-
function
|
|
2653
|
-
return t.replace(
|
|
2651
|
+
const Nu = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
2652
|
+
function Bn(t) {
|
|
2653
|
+
return t.replace(Nu, $u);
|
|
2654
2654
|
}
|
|
2655
|
-
function
|
|
2655
|
+
function $u(t, n, e) {
|
|
2656
2656
|
if (n)
|
|
2657
2657
|
return n;
|
|
2658
2658
|
if (e.charCodeAt(0) === 35) {
|
|
2659
2659
|
const i = e.charCodeAt(1), l = i === 120 || i === 88;
|
|
2660
|
-
return
|
|
2660
|
+
return Ln(e.slice(l ? 2 : 1), l ? 16 : 10);
|
|
2661
2661
|
}
|
|
2662
2662
|
return Ce(e) || t;
|
|
2663
2663
|
}
|
|
2664
|
-
function
|
|
2665
|
-
return t.label || !t.identifier ? t.label || "" :
|
|
2664
|
+
function Pn(t) {
|
|
2665
|
+
return t.label || !t.identifier ? t.label || "" : Bn(t.identifier);
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function Uu(t, n, e) {
|
|
2668
2668
|
const r = n.indexStack, i = t.children || [], l = n.createTracker(e), u = [];
|
|
2669
2669
|
let a = -1;
|
|
2670
2670
|
for (r.push(-1); ++a < i.length; ) {
|
|
@@ -2680,12 +2680,12 @@ function Yu(t, n, e) {
|
|
|
2680
2680
|
})
|
|
2681
2681
|
)
|
|
2682
2682
|
), c.type !== "list" && (n.bulletLastUsed = void 0), a < i.length - 1 && u.push(
|
|
2683
|
-
l.move(
|
|
2683
|
+
l.move(Wu(c, i[a + 1], t, n))
|
|
2684
2684
|
);
|
|
2685
2685
|
}
|
|
2686
2686
|
return r.pop(), u.join("");
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function Wu(t, n, e, r) {
|
|
2689
2689
|
let i = r.join.length;
|
|
2690
2690
|
for (; i--; ) {
|
|
2691
2691
|
const l = r.join[i](t, n, e, r);
|
|
@@ -2705,18 +2705,18 @@ function Ju(t, n, e, r) {
|
|
|
2705
2705
|
|
|
2706
2706
|
`;
|
|
2707
2707
|
}
|
|
2708
|
-
const
|
|
2709
|
-
function
|
|
2708
|
+
const vu = /\r?\n|\r/g;
|
|
2709
|
+
function Qu(t, n) {
|
|
2710
2710
|
const e = [];
|
|
2711
2711
|
let r = 0, i = 0, l;
|
|
2712
|
-
for (; l =
|
|
2712
|
+
for (; l = vu.exec(t); )
|
|
2713
2713
|
u(t.slice(r, l.index)), e.push(l[0]), r = l.index + l[0].length, i++;
|
|
2714
2714
|
return u(t.slice(r)), e.join("");
|
|
2715
2715
|
function u(a) {
|
|
2716
2716
|
e.push(n(a, i, !a));
|
|
2717
2717
|
}
|
|
2718
2718
|
}
|
|
2719
|
-
function
|
|
2719
|
+
function Mn(t) {
|
|
2720
2720
|
if (!t._compiled) {
|
|
2721
2721
|
const n = (t.atBreak ? "[\\r\\n][\\t ]*" : "") + (t.before ? "(?:" + t.before + ")" : "");
|
|
2722
2722
|
t._compiled = new RegExp(
|
|
@@ -2726,7 +2726,7 @@ function qn(t) {
|
|
|
2726
2726
|
}
|
|
2727
2727
|
return t._compiled;
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function Zu(t, n) {
|
|
2730
2730
|
return Ye(t, n.inConstruct, !0) && !Ye(t, n.notInConstruct, !1);
|
|
2731
2731
|
}
|
|
2732
2732
|
function Ye(t, n, e) {
|
|
@@ -2738,21 +2738,21 @@ function Ye(t, n, e) {
|
|
|
2738
2738
|
return !0;
|
|
2739
2739
|
return !1;
|
|
2740
2740
|
}
|
|
2741
|
-
function
|
|
2741
|
+
function On(t, n, e) {
|
|
2742
2742
|
const r = (e.before || "") + (n || "") + (e.after || ""), i = [], l = [], u = {};
|
|
2743
2743
|
let a = -1;
|
|
2744
2744
|
for (; ++a < t.unsafe.length; ) {
|
|
2745
2745
|
const f = t.unsafe[a];
|
|
2746
|
-
if (!
|
|
2746
|
+
if (!Zu(t.stack, f))
|
|
2747
2747
|
continue;
|
|
2748
|
-
const o =
|
|
2749
|
-
let
|
|
2750
|
-
for (;
|
|
2751
|
-
const h = "before" in f || !!f.atBreak, d = "after" in f, w =
|
|
2748
|
+
const o = Mn(f);
|
|
2749
|
+
let p;
|
|
2750
|
+
for (; p = o.exec(r); ) {
|
|
2751
|
+
const h = "before" in f || !!f.atBreak, d = "after" in f, w = p.index + (h ? p[1].length : 0);
|
|
2752
2752
|
i.includes(w) ? (u[w].before && !h && (u[w].before = !1), u[w].after && !d && (u[w].after = !1)) : (i.push(w), u[w] = { before: h, after: d });
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
|
-
i.sort(
|
|
2755
|
+
i.sort(Gu);
|
|
2756
2756
|
let c = e.before ? e.before.length : 0;
|
|
2757
2757
|
const s = r.length - (e.after ? e.after.length : 0);
|
|
2758
2758
|
for (a = -1; ++a < i.length; ) {
|
|
@@ -2763,7 +2763,7 @@ function Hn(t, n, e) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
return l.push(Je(r.slice(c, s), e.after)), l.join("");
|
|
2765
2765
|
}
|
|
2766
|
-
function
|
|
2766
|
+
function Gu(t, n) {
|
|
2767
2767
|
return t - n;
|
|
2768
2768
|
}
|
|
2769
2769
|
function Je(t, n) {
|
|
@@ -2775,7 +2775,7 @@ function Je(t, n) {
|
|
|
2775
2775
|
a !== r[u] && i.push(t.slice(a, r[u])), i.push("\\"), a = r[u];
|
|
2776
2776
|
return i.push(t.slice(a)), i.join("");
|
|
2777
2777
|
}
|
|
2778
|
-
function
|
|
2778
|
+
function Yt(t) {
|
|
2779
2779
|
const n = t || {}, e = n.now || {};
|
|
2780
2780
|
let r = n.lineShift || 0, i = e.line || 1, l = e.column || 1;
|
|
2781
2781
|
return { move: c, current: u, shift: a };
|
|
@@ -2786,44 +2786,44 @@ function Jt(t) {
|
|
|
2786
2786
|
r += s;
|
|
2787
2787
|
}
|
|
2788
2788
|
function c(s) {
|
|
2789
|
-
const f = s || "", o = f.split(/\r?\n|\r/g),
|
|
2790
|
-
return i += o.length - 1, l = o.length === 1 ? l +
|
|
2789
|
+
const f = s || "", o = f.split(/\r?\n|\r/g), p = o[o.length - 1];
|
|
2790
|
+
return i += o.length - 1, l = o.length === 1 ? l + p.length : 1 + p.length + r, f;
|
|
2791
2791
|
}
|
|
2792
2792
|
}
|
|
2793
|
-
|
|
2794
|
-
function
|
|
2793
|
+
Rn.peek = ll;
|
|
2794
|
+
function Yu() {
|
|
2795
2795
|
return {
|
|
2796
2796
|
enter: {
|
|
2797
|
-
gfmFootnoteDefinition:
|
|
2798
|
-
gfmFootnoteDefinitionLabelString:
|
|
2799
|
-
gfmFootnoteCall:
|
|
2800
|
-
gfmFootnoteCallString:
|
|
2797
|
+
gfmFootnoteDefinition: Ku,
|
|
2798
|
+
gfmFootnoteDefinitionLabelString: Xu,
|
|
2799
|
+
gfmFootnoteCall: nl,
|
|
2800
|
+
gfmFootnoteCallString: rl
|
|
2801
2801
|
},
|
|
2802
2802
|
exit: {
|
|
2803
|
-
gfmFootnoteDefinition:
|
|
2804
|
-
gfmFootnoteDefinitionLabelString:
|
|
2805
|
-
gfmFootnoteCall:
|
|
2806
|
-
gfmFootnoteCallString:
|
|
2803
|
+
gfmFootnoteDefinition: el,
|
|
2804
|
+
gfmFootnoteDefinitionLabelString: tl,
|
|
2805
|
+
gfmFootnoteCall: ul,
|
|
2806
|
+
gfmFootnoteCallString: il
|
|
2807
2807
|
}
|
|
2808
2808
|
};
|
|
2809
2809
|
}
|
|
2810
|
-
function
|
|
2810
|
+
function Ju() {
|
|
2811
2811
|
return {
|
|
2812
2812
|
// This is on by default already.
|
|
2813
2813
|
unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
|
|
2814
|
-
handlers: { footnoteDefinition:
|
|
2814
|
+
handlers: { footnoteDefinition: al, footnoteReference: Rn }
|
|
2815
2815
|
};
|
|
2816
2816
|
}
|
|
2817
|
-
function
|
|
2817
|
+
function Ku(t) {
|
|
2818
2818
|
this.enter(
|
|
2819
2819
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
2820
2820
|
t
|
|
2821
2821
|
);
|
|
2822
2822
|
}
|
|
2823
|
-
function
|
|
2823
|
+
function Xu() {
|
|
2824
2824
|
this.buffer();
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2826
|
+
function tl(t) {
|
|
2827
2827
|
const n = this.resume(), e = (
|
|
2828
2828
|
/** @type {FootnoteDefinition} */
|
|
2829
2829
|
this.stack[this.stack.length - 1]
|
|
@@ -2832,16 +2832,16 @@ function ll(t) {
|
|
|
2832
2832
|
this.sliceSerialize(t)
|
|
2833
2833
|
).toLowerCase();
|
|
2834
2834
|
}
|
|
2835
|
-
function
|
|
2835
|
+
function el(t) {
|
|
2836
2836
|
this.exit(t);
|
|
2837
2837
|
}
|
|
2838
|
-
function
|
|
2838
|
+
function nl(t) {
|
|
2839
2839
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, t);
|
|
2840
2840
|
}
|
|
2841
|
-
function
|
|
2841
|
+
function rl() {
|
|
2842
2842
|
this.buffer();
|
|
2843
2843
|
}
|
|
2844
|
-
function
|
|
2844
|
+
function il(t) {
|
|
2845
2845
|
const n = this.resume(), e = (
|
|
2846
2846
|
/** @type {FootnoteDefinition} */
|
|
2847
2847
|
this.stack[this.stack.length - 1]
|
|
@@ -2850,30 +2850,30 @@ function cl(t) {
|
|
|
2850
2850
|
this.sliceSerialize(t)
|
|
2851
2851
|
).toLowerCase();
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2853
|
+
function ul(t) {
|
|
2854
2854
|
this.exit(t);
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2857
|
-
const i =
|
|
2856
|
+
function Rn(t, n, e, r) {
|
|
2857
|
+
const i = Yt(r);
|
|
2858
2858
|
let l = i.move("[^");
|
|
2859
2859
|
const u = e.enter("footnoteReference"), a = e.enter("reference");
|
|
2860
2860
|
return l += i.move(
|
|
2861
|
-
|
|
2861
|
+
On(e, Pn(t), {
|
|
2862
2862
|
...i.current(),
|
|
2863
2863
|
before: l,
|
|
2864
2864
|
after: "]"
|
|
2865
2865
|
})
|
|
2866
2866
|
), a(), u(), l += i.move("]"), l;
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function ll() {
|
|
2869
2869
|
return "[";
|
|
2870
2870
|
}
|
|
2871
|
-
function
|
|
2872
|
-
const i =
|
|
2871
|
+
function al(t, n, e, r) {
|
|
2872
|
+
const i = Yt(r);
|
|
2873
2873
|
let l = i.move("[^");
|
|
2874
2874
|
const u = e.enter("footnoteDefinition"), a = e.enter("label");
|
|
2875
2875
|
return l += i.move(
|
|
2876
|
-
|
|
2876
|
+
On(e, Pn(t), {
|
|
2877
2877
|
...i.current(),
|
|
2878
2878
|
before: l,
|
|
2879
2879
|
after: "]"
|
|
@@ -2881,13 +2881,13 @@ function pl(t, n, e, r) {
|
|
|
2881
2881
|
), a(), l += i.move(
|
|
2882
2882
|
"]:" + (t.children && t.children.length > 0 ? " " : "")
|
|
2883
2883
|
), i.shift(4), l += i.move(
|
|
2884
|
-
|
|
2884
|
+
Qu(Uu(t, e, i.current()), ol)
|
|
2885
2885
|
), u(), l;
|
|
2886
2886
|
}
|
|
2887
|
-
function
|
|
2887
|
+
function ol(t, n, e) {
|
|
2888
2888
|
return n === 0 ? t : (e ? "" : " ") + t;
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function jn(t, n, e) {
|
|
2891
2891
|
const r = n.indexStack, i = t.children || [], l = [];
|
|
2892
2892
|
let u = -1, a = e.before;
|
|
2893
2893
|
r.push(-1);
|
|
@@ -2920,7 +2920,7 @@ function $n(t, n, e) {
|
|
|
2920
2920
|
}
|
|
2921
2921
|
return r.pop(), l.join("");
|
|
2922
2922
|
}
|
|
2923
|
-
const
|
|
2923
|
+
const sl = [
|
|
2924
2924
|
"autolink",
|
|
2925
2925
|
"destinationLiteral",
|
|
2926
2926
|
"destinationRaw",
|
|
@@ -2928,46 +2928,46 @@ const gl = [
|
|
|
2928
2928
|
"titleQuote",
|
|
2929
2929
|
"titleApostrophe"
|
|
2930
2930
|
];
|
|
2931
|
-
|
|
2932
|
-
const
|
|
2931
|
+
Vn.peek = ml;
|
|
2932
|
+
const cl = {
|
|
2933
2933
|
canContainEols: ["delete"],
|
|
2934
|
-
enter: { strikethrough:
|
|
2935
|
-
exit: { strikethrough:
|
|
2936
|
-
},
|
|
2934
|
+
enter: { strikethrough: hl },
|
|
2935
|
+
exit: { strikethrough: pl }
|
|
2936
|
+
}, fl = {
|
|
2937
2937
|
unsafe: [
|
|
2938
2938
|
{
|
|
2939
2939
|
character: "~",
|
|
2940
2940
|
inConstruct: "phrasing",
|
|
2941
|
-
notInConstruct:
|
|
2941
|
+
notInConstruct: sl
|
|
2942
2942
|
}
|
|
2943
2943
|
],
|
|
2944
|
-
handlers: { delete:
|
|
2944
|
+
handlers: { delete: Vn }
|
|
2945
2945
|
};
|
|
2946
|
-
function
|
|
2946
|
+
function hl(t) {
|
|
2947
2947
|
this.enter({ type: "delete", children: [] }, t);
|
|
2948
2948
|
}
|
|
2949
|
-
function
|
|
2949
|
+
function pl(t) {
|
|
2950
2950
|
this.exit(t);
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2953
|
-
const i =
|
|
2952
|
+
function Vn(t, n, e, r) {
|
|
2953
|
+
const i = Yt(r), l = e.enter("strikethrough");
|
|
2954
2954
|
let u = i.move("~~");
|
|
2955
|
-
return u +=
|
|
2955
|
+
return u += jn(t, e, {
|
|
2956
2956
|
...i.current(),
|
|
2957
2957
|
before: u,
|
|
2958
2958
|
after: "~"
|
|
2959
2959
|
}), u += i.move("~~"), l(), u;
|
|
2960
2960
|
}
|
|
2961
|
-
function
|
|
2961
|
+
function ml() {
|
|
2962
2962
|
return "~";
|
|
2963
2963
|
}
|
|
2964
|
-
|
|
2965
|
-
function
|
|
2964
|
+
qn.peek = gl;
|
|
2965
|
+
function qn(t, n, e) {
|
|
2966
2966
|
let r = t.value || "", i = "`", l = -1;
|
|
2967
2967
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
2968
2968
|
i += "`";
|
|
2969
2969
|
for (/[^ \r\n]/.test(r) && (/^[ \r\n]/.test(r) && /[ \r\n]$/.test(r) || /^`|`$/.test(r)) && (r = " " + r + " "); ++l < e.unsafe.length; ) {
|
|
2970
|
-
const u = e.unsafe[l], a =
|
|
2970
|
+
const u = e.unsafe[l], a = Mn(u);
|
|
2971
2971
|
let c;
|
|
2972
2972
|
if (u.atBreak)
|
|
2973
2973
|
for (; c = a.exec(r); ) {
|
|
@@ -2977,20 +2977,20 @@ function Wn(t, n, e) {
|
|
|
2977
2977
|
}
|
|
2978
2978
|
return i + r + i;
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function gl() {
|
|
2981
2981
|
return "`";
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2983
|
+
function dl(t) {
|
|
2984
2984
|
return t.length;
|
|
2985
2985
|
}
|
|
2986
|
-
function
|
|
2987
|
-
const e = n || {}, r = (e.align || []).concat(), i = e.stringLength ||
|
|
2986
|
+
function kl(t, n) {
|
|
2987
|
+
const e = n || {}, r = (e.align || []).concat(), i = e.stringLength || dl, l = [], u = [], a = [], c = [];
|
|
2988
2988
|
let s = 0, f = -1;
|
|
2989
2989
|
for (; ++f < t.length; ) {
|
|
2990
2990
|
const w = [], C = [];
|
|
2991
2991
|
let b = -1;
|
|
2992
2992
|
for (t[f].length > s && (s = t[f].length); ++b < t[f].length; ) {
|
|
2993
|
-
const I =
|
|
2993
|
+
const I = xl(t[f][b]);
|
|
2994
2994
|
if (e.alignDelimiters !== !1) {
|
|
2995
2995
|
const F = i(I);
|
|
2996
2996
|
C[b] = F, (c[b] === void 0 || F > c[b]) && (c[b] = F);
|
|
@@ -3009,7 +3009,7 @@ function Sl(t, n) {
|
|
|
3009
3009
|
l[o] = w;
|
|
3010
3010
|
}
|
|
3011
3011
|
o = -1;
|
|
3012
|
-
const
|
|
3012
|
+
const p = [], h = [];
|
|
3013
3013
|
for (; ++o < s; ) {
|
|
3014
3014
|
const w = l[o];
|
|
3015
3015
|
let C = "", b = "";
|
|
@@ -3019,9 +3019,9 @@ function Sl(t, n) {
|
|
|
3019
3019
|
c[o] - C.length - b.length
|
|
3020
3020
|
);
|
|
3021
3021
|
const F = C + "-".repeat(I) + b;
|
|
3022
|
-
e.alignDelimiters !== !1 && (I = C.length + I + b.length, I > c[o] && (c[o] = I), h[o] = I),
|
|
3022
|
+
e.alignDelimiters !== !1 && (I = C.length + I + b.length, I > c[o] && (c[o] = I), h[o] = I), p[o] = F;
|
|
3023
3023
|
}
|
|
3024
|
-
u.splice(1, 0,
|
|
3024
|
+
u.splice(1, 0, p), a.splice(1, 0, h), f = -1;
|
|
3025
3025
|
const d = [];
|
|
3026
3026
|
for (; ++f < u.length; ) {
|
|
3027
3027
|
const w = u[f], C = a[f];
|
|
@@ -3045,29 +3045,29 @@ function Sl(t, n) {
|
|
|
3045
3045
|
return d.join(`
|
|
3046
3046
|
`);
|
|
3047
3047
|
}
|
|
3048
|
-
function
|
|
3048
|
+
function xl(t) {
|
|
3049
3049
|
return t == null ? "" : String(t);
|
|
3050
3050
|
}
|
|
3051
3051
|
function Ke(t) {
|
|
3052
3052
|
const n = typeof t == "string" ? t.codePointAt(0) : 0;
|
|
3053
3053
|
return n === 67 || n === 99 ? 99 : n === 76 || n === 108 ? 108 : n === 82 || n === 114 ? 114 : 0;
|
|
3054
3054
|
}
|
|
3055
|
-
const
|
|
3055
|
+
const bl = {
|
|
3056
3056
|
enter: {
|
|
3057
|
-
table:
|
|
3057
|
+
table: yl,
|
|
3058
3058
|
tableData: Xe,
|
|
3059
3059
|
tableHeader: Xe,
|
|
3060
|
-
tableRow:
|
|
3060
|
+
tableRow: Fl
|
|
3061
3061
|
},
|
|
3062
3062
|
exit: {
|
|
3063
|
-
codeText:
|
|
3064
|
-
table:
|
|
3065
|
-
tableData:
|
|
3066
|
-
tableHeader:
|
|
3067
|
-
tableRow:
|
|
3063
|
+
codeText: Sl,
|
|
3064
|
+
table: wl,
|
|
3065
|
+
tableData: ue,
|
|
3066
|
+
tableHeader: ue,
|
|
3067
|
+
tableRow: ue
|
|
3068
3068
|
}
|
|
3069
3069
|
};
|
|
3070
|
-
function
|
|
3070
|
+
function yl(t) {
|
|
3071
3071
|
const n = t._align;
|
|
3072
3072
|
this.enter(
|
|
3073
3073
|
{
|
|
@@ -3078,31 +3078,31 @@ function El(t) {
|
|
|
3078
3078
|
t
|
|
3079
3079
|
), this.setData("inTable", !0);
|
|
3080
3080
|
}
|
|
3081
|
-
function
|
|
3081
|
+
function wl(t) {
|
|
3082
3082
|
this.exit(t), this.setData("inTable");
|
|
3083
3083
|
}
|
|
3084
|
-
function
|
|
3084
|
+
function Fl(t) {
|
|
3085
3085
|
this.enter({ type: "tableRow", children: [] }, t);
|
|
3086
3086
|
}
|
|
3087
|
-
function
|
|
3087
|
+
function ue(t) {
|
|
3088
3088
|
this.exit(t);
|
|
3089
3089
|
}
|
|
3090
3090
|
function Xe(t) {
|
|
3091
3091
|
this.enter({ type: "tableCell", children: [] }, t);
|
|
3092
3092
|
}
|
|
3093
|
-
function
|
|
3093
|
+
function Sl(t) {
|
|
3094
3094
|
let n = this.resume();
|
|
3095
|
-
this.getData("inTable") && (n = n.replace(/\\([\\|])/g,
|
|
3095
|
+
this.getData("inTable") && (n = n.replace(/\\([\\|])/g, Cl));
|
|
3096
3096
|
const e = (
|
|
3097
3097
|
/** @type {InlineCode} */
|
|
3098
3098
|
this.stack[this.stack.length - 1]
|
|
3099
3099
|
);
|
|
3100
3100
|
e.value = n, this.exit(t);
|
|
3101
3101
|
}
|
|
3102
|
-
function
|
|
3102
|
+
function Cl(t, n) {
|
|
3103
3103
|
return n === "|" ? n : t;
|
|
3104
3104
|
}
|
|
3105
|
-
function
|
|
3105
|
+
function Al(t) {
|
|
3106
3106
|
const n = t || {}, e = n.tableCellPadding, r = n.tablePipeAlign, i = n.stringLength, l = e ? " " : "|";
|
|
3107
3107
|
return {
|
|
3108
3108
|
unsafe: [
|
|
@@ -3128,7 +3128,7 @@ function _l(t) {
|
|
|
3128
3128
|
table: u,
|
|
3129
3129
|
tableRow: a,
|
|
3130
3130
|
tableCell: c,
|
|
3131
|
-
inlineCode:
|
|
3131
|
+
inlineCode: p
|
|
3132
3132
|
}
|
|
3133
3133
|
};
|
|
3134
3134
|
function u(h, d, w, C) {
|
|
@@ -3143,7 +3143,7 @@ function _l(t) {
|
|
|
3143
3143
|
`));
|
|
3144
3144
|
}
|
|
3145
3145
|
function c(h, d, w, C) {
|
|
3146
|
-
const b = w.enter("tableCell"), I = w.enter("phrasing"), F =
|
|
3146
|
+
const b = w.enter("tableCell"), I = w.enter("phrasing"), F = jn(h, w, {
|
|
3147
3147
|
...C,
|
|
3148
3148
|
before: l,
|
|
3149
3149
|
after: l
|
|
@@ -3151,7 +3151,7 @@ function _l(t) {
|
|
|
3151
3151
|
return I(), b(), F;
|
|
3152
3152
|
}
|
|
3153
3153
|
function s(h, d) {
|
|
3154
|
-
return
|
|
3154
|
+
return kl(h, {
|
|
3155
3155
|
align: d,
|
|
3156
3156
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
3157
3157
|
alignDelimiters: r,
|
|
@@ -3186,12 +3186,12 @@ function _l(t) {
|
|
|
3186
3186
|
);
|
|
3187
3187
|
return F(), I;
|
|
3188
3188
|
}
|
|
3189
|
-
function
|
|
3190
|
-
let C =
|
|
3189
|
+
function p(h, d, w) {
|
|
3190
|
+
let C = qn(h, d, w);
|
|
3191
3191
|
return w.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
|
|
3192
3192
|
}
|
|
3193
3193
|
}
|
|
3194
|
-
function
|
|
3194
|
+
function El(t) {
|
|
3195
3195
|
const n = t.options.bullet || "*";
|
|
3196
3196
|
if (n !== "*" && n !== "+" && n !== "-")
|
|
3197
3197
|
throw new Error(
|
|
@@ -3199,7 +3199,7 @@ function Ll(t) {
|
|
|
3199
3199
|
);
|
|
3200
3200
|
return n;
|
|
3201
3201
|
}
|
|
3202
|
-
function
|
|
3202
|
+
function zl(t) {
|
|
3203
3203
|
const n = t.options.listItemIndent || "tab";
|
|
3204
3204
|
if (n === 1 || n === "1")
|
|
3205
3205
|
return "one";
|
|
@@ -3209,9 +3209,9 @@ function Bl(t) {
|
|
|
3209
3209
|
);
|
|
3210
3210
|
return n;
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3213
|
-
const i =
|
|
3214
|
-
let l = e.bulletCurrent ||
|
|
3212
|
+
function Il(t, n, e, r) {
|
|
3213
|
+
const i = zl(e);
|
|
3214
|
+
let l = e.bulletCurrent || El(e);
|
|
3215
3215
|
n && n.type === "list" && n.ordered && (l = (typeof n.start == "number" && n.start > -1 ? n.start : 1) + (e.options.incrementListMarker === !1 ? 0 : n.children.indexOf(t)) + l);
|
|
3216
3216
|
let u = l.length + 1;
|
|
3217
3217
|
(i === "tab" || i === "mixed" && (n && n.type === "list" && n.spread || t.spread)) && (u = Math.ceil(u / 4) * 4);
|
|
@@ -3222,19 +3222,19 @@ function Pl(t, n, e, r) {
|
|
|
3222
3222
|
f
|
|
3223
3223
|
);
|
|
3224
3224
|
return c(), s;
|
|
3225
|
-
function f(o,
|
|
3226
|
-
return
|
|
3225
|
+
function f(o, p, h) {
|
|
3226
|
+
return p ? (h ? "" : " ".repeat(u)) + o : (h ? l : l + " ".repeat(u - l.length)) + o;
|
|
3227
3227
|
}
|
|
3228
3228
|
}
|
|
3229
|
-
const
|
|
3229
|
+
const Tl = {
|
|
3230
3230
|
exit: {
|
|
3231
3231
|
taskListCheckValueChecked: tn,
|
|
3232
3232
|
taskListCheckValueUnchecked: tn,
|
|
3233
|
-
paragraph:
|
|
3233
|
+
paragraph: _l
|
|
3234
3234
|
}
|
|
3235
|
-
},
|
|
3235
|
+
}, Dl = {
|
|
3236
3236
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
3237
|
-
handlers: { listItem:
|
|
3237
|
+
handlers: { listItem: Ll }
|
|
3238
3238
|
};
|
|
3239
3239
|
function tn(t) {
|
|
3240
3240
|
const n = (
|
|
@@ -3243,7 +3243,7 @@ function tn(t) {
|
|
|
3243
3243
|
);
|
|
3244
3244
|
n.checked = t.type === "taskListCheckValueChecked";
|
|
3245
3245
|
}
|
|
3246
|
-
function
|
|
3246
|
+
function _l(t) {
|
|
3247
3247
|
const n = (
|
|
3248
3248
|
/** @type {Parents} */
|
|
3249
3249
|
this.stack[this.stack.length - 2]
|
|
@@ -3268,10 +3268,10 @@ function Rl(t) {
|
|
|
3268
3268
|
}
|
|
3269
3269
|
this.exit(t);
|
|
3270
3270
|
}
|
|
3271
|
-
function
|
|
3272
|
-
const i = t.children[0], l = typeof t.checked == "boolean" && i && i.type === "paragraph", u = "[" + (t.checked ? "x" : " ") + "] ", a =
|
|
3271
|
+
function Ll(t, n, e, r) {
|
|
3272
|
+
const i = t.children[0], l = typeof t.checked == "boolean" && i && i.type === "paragraph", u = "[" + (t.checked ? "x" : " ") + "] ", a = Yt(r);
|
|
3273
3273
|
l && a.move(u);
|
|
3274
|
-
let c =
|
|
3274
|
+
let c = Il(t, n, e, {
|
|
3275
3275
|
...r,
|
|
3276
3276
|
...a.current()
|
|
3277
3277
|
});
|
|
@@ -3280,29 +3280,29 @@ function jl(t, n, e, r) {
|
|
|
3280
3280
|
return f + u;
|
|
3281
3281
|
}
|
|
3282
3282
|
}
|
|
3283
|
-
function
|
|
3283
|
+
function Bl() {
|
|
3284
3284
|
return [
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3285
|
+
Du,
|
|
3286
|
+
Yu(),
|
|
3287
|
+
cl,
|
|
3288
|
+
bl,
|
|
3289
|
+
Tl
|
|
3290
3290
|
];
|
|
3291
3291
|
}
|
|
3292
|
-
function
|
|
3292
|
+
function Pl(t) {
|
|
3293
3293
|
return {
|
|
3294
3294
|
extensions: [
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3295
|
+
_u,
|
|
3296
|
+
Ju(),
|
|
3297
|
+
fl,
|
|
3298
|
+
Al(t),
|
|
3299
|
+
Dl
|
|
3300
3300
|
]
|
|
3301
3301
|
};
|
|
3302
3302
|
}
|
|
3303
|
-
function
|
|
3303
|
+
function Ml(t = {}) {
|
|
3304
3304
|
const n = this.data();
|
|
3305
|
-
e("micromarkExtensions",
|
|
3305
|
+
e("micromarkExtensions", ku(t)), e("fromMarkdownExtensions", Bl()), e("toMarkdownExtensions", Pl(t));
|
|
3306
3306
|
function e(r, i) {
|
|
3307
3307
|
/** @type {unknown[]} */
|
|
3308
3308
|
// Other extensions
|
|
@@ -3314,51 +3314,58 @@ function en(t) {
|
|
|
3314
3314
|
if (t)
|
|
3315
3315
|
throw t;
|
|
3316
3316
|
}
|
|
3317
|
-
function
|
|
3317
|
+
function Ol(t) {
|
|
3318
3318
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3319
3319
|
}
|
|
3320
|
-
var
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
};
|
|
3354
|
-
|
|
3320
|
+
var le, nn;
|
|
3321
|
+
function Rl() {
|
|
3322
|
+
if (nn) return le;
|
|
3323
|
+
nn = 1;
|
|
3324
|
+
var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, e = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(s) {
|
|
3325
|
+
return typeof Array.isArray == "function" ? Array.isArray(s) : n.call(s) === "[object Array]";
|
|
3326
|
+
}, l = function(s) {
|
|
3327
|
+
if (!s || n.call(s) !== "[object Object]")
|
|
3328
|
+
return !1;
|
|
3329
|
+
var f = t.call(s, "constructor"), o = s.constructor && s.constructor.prototype && t.call(s.constructor.prototype, "isPrototypeOf");
|
|
3330
|
+
if (s.constructor && !f && !o)
|
|
3331
|
+
return !1;
|
|
3332
|
+
var p;
|
|
3333
|
+
for (p in s)
|
|
3334
|
+
;
|
|
3335
|
+
return typeof p > "u" || t.call(s, p);
|
|
3336
|
+
}, u = function(s, f) {
|
|
3337
|
+
e && f.name === "__proto__" ? e(s, f.name, {
|
|
3338
|
+
enumerable: !0,
|
|
3339
|
+
configurable: !0,
|
|
3340
|
+
value: f.newValue,
|
|
3341
|
+
writable: !0
|
|
3342
|
+
}) : s[f.name] = f.newValue;
|
|
3343
|
+
}, a = function(s, f) {
|
|
3344
|
+
if (f === "__proto__")
|
|
3345
|
+
if (t.call(s, f)) {
|
|
3346
|
+
if (r)
|
|
3347
|
+
return r(s, f).value;
|
|
3348
|
+
} else return;
|
|
3349
|
+
return s[f];
|
|
3350
|
+
};
|
|
3351
|
+
return le = function c() {
|
|
3352
|
+
var s, f, o, p, h, d, w = arguments[0], C = 1, b = arguments.length, I = !1;
|
|
3353
|
+
for (typeof w == "boolean" && (I = w, w = arguments[1] || {}, C = 2), (w == null || typeof w != "object" && typeof w != "function") && (w = {}); C < b; ++C)
|
|
3354
|
+
if (s = arguments[C], s != null)
|
|
3355
|
+
for (f in s)
|
|
3356
|
+
o = a(w, f), p = a(s, f), w !== p && (I && p && (l(p) || (h = i(p))) ? (h ? (h = !1, d = o && i(o) ? o : []) : d = o && l(o) ? o : {}, u(w, { name: f, newValue: c(I, d, p) })) : typeof p < "u" && u(w, { name: f, newValue: p }));
|
|
3357
|
+
return w;
|
|
3358
|
+
}, le;
|
|
3359
|
+
}
|
|
3360
|
+
var jl = Rl();
|
|
3361
|
+
const ae = /* @__PURE__ */ Ol(jl);
|
|
3355
3362
|
function xe(t) {
|
|
3356
3363
|
if (typeof t != "object" || t === null)
|
|
3357
3364
|
return !1;
|
|
3358
3365
|
const n = Object.getPrototypeOf(t);
|
|
3359
3366
|
return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
3360
3367
|
}
|
|
3361
|
-
function
|
|
3368
|
+
function Vl() {
|
|
3362
3369
|
const t = [], n = { run: e, use: r };
|
|
3363
3370
|
return n;
|
|
3364
3371
|
function e(...i) {
|
|
@@ -3376,7 +3383,7 @@ function Ul() {
|
|
|
3376
3383
|
}
|
|
3377
3384
|
for (; ++o < i.length; )
|
|
3378
3385
|
(s[o] === null || s[o] === void 0) && (s[o] = i[o]);
|
|
3379
|
-
i = s, f ?
|
|
3386
|
+
i = s, f ? ql(f, a)(...s) : u(null, ...s);
|
|
3380
3387
|
}
|
|
3381
3388
|
}
|
|
3382
3389
|
function r(i) {
|
|
@@ -3387,7 +3394,7 @@ function Ul() {
|
|
|
3387
3394
|
return t.push(i), n;
|
|
3388
3395
|
}
|
|
3389
3396
|
}
|
|
3390
|
-
function
|
|
3397
|
+
function ql(t, n) {
|
|
3391
3398
|
let e;
|
|
3392
3399
|
return r;
|
|
3393
3400
|
function r(...u) {
|
|
@@ -3414,16 +3421,16 @@ function Wl(t, n) {
|
|
|
3414
3421
|
i(null, u);
|
|
3415
3422
|
}
|
|
3416
3423
|
}
|
|
3417
|
-
function
|
|
3418
|
-
return !t || typeof t != "object" ? "" : "position" in t || "type" in t ?
|
|
3424
|
+
function Hl(t) {
|
|
3425
|
+
return !t || typeof t != "object" ? "" : "position" in t || "type" in t ? rn(t.position) : "start" in t || "end" in t ? rn(t) : "line" in t || "column" in t ? be(t) : "";
|
|
3419
3426
|
}
|
|
3420
3427
|
function be(t) {
|
|
3421
|
-
return
|
|
3428
|
+
return un(t && t.line) + ":" + un(t && t.column);
|
|
3422
3429
|
}
|
|
3423
|
-
function
|
|
3430
|
+
function rn(t) {
|
|
3424
3431
|
return be(t && t.start) + "-" + be(t && t.end);
|
|
3425
3432
|
}
|
|
3426
|
-
function
|
|
3433
|
+
function un(t) {
|
|
3427
3434
|
return t && typeof t == "number" ? t : 1;
|
|
3428
3435
|
}
|
|
3429
3436
|
class K extends Error {
|
|
@@ -3497,7 +3504,7 @@ class K extends Error {
|
|
|
3497
3504
|
c && (l.place = c.position);
|
|
3498
3505
|
}
|
|
3499
3506
|
const a = l.place && "start" in l.place ? l.place.start : l.place;
|
|
3500
|
-
this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name =
|
|
3507
|
+
this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name = Hl(l.place) || "1:1", this.place = l.place || void 0, this.reason = this.message, this.ruleId = l.ruleId || void 0, this.source = l.source || void 0, this.stack = u && l.cause && typeof l.cause.stack == "string" ? l.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
3501
3508
|
}
|
|
3502
3509
|
}
|
|
3503
3510
|
K.prototype.file = "";
|
|
@@ -3513,8 +3520,8 @@ K.prototype.fatal = void 0;
|
|
|
3513
3520
|
K.prototype.place = void 0;
|
|
3514
3521
|
K.prototype.ruleId = void 0;
|
|
3515
3522
|
K.prototype.source = void 0;
|
|
3516
|
-
const lt = { basename:
|
|
3517
|
-
function
|
|
3523
|
+
const lt = { basename: Nl, dirname: $l, extname: Ul, join: Wl, sep: "/" };
|
|
3524
|
+
function Nl(t, n) {
|
|
3518
3525
|
if (n !== void 0 && typeof n != "string")
|
|
3519
3526
|
throw new TypeError('"ext" argument must be a string');
|
|
3520
3527
|
Rt(t);
|
|
@@ -3542,7 +3549,7 @@ function Ql(t, n) {
|
|
|
3542
3549
|
u < 0 && (l = !0, u = i + 1), a > -1 && (t.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = u));
|
|
3543
3550
|
return e === r ? r = u : r < 0 && (r = t.length), t.slice(e, r);
|
|
3544
3551
|
}
|
|
3545
|
-
function
|
|
3552
|
+
function $l(t) {
|
|
3546
3553
|
if (Rt(t), t.length === 0)
|
|
3547
3554
|
return ".";
|
|
3548
3555
|
let n = -1, e = t.length, r;
|
|
@@ -3555,7 +3562,7 @@ function Zl(t) {
|
|
|
3555
3562
|
} else r || (r = !0);
|
|
3556
3563
|
return n < 0 ? t.codePointAt(0) === 47 ? "/" : "." : n === 1 && t.codePointAt(0) === 47 ? "//" : t.slice(0, n);
|
|
3557
3564
|
}
|
|
3558
|
-
function
|
|
3565
|
+
function Ul(t) {
|
|
3559
3566
|
Rt(t);
|
|
3560
3567
|
let n = t.length, e = -1, r = 0, i = -1, l = 0, u;
|
|
3561
3568
|
for (; n--; ) {
|
|
@@ -3573,19 +3580,19 @@ function Gl(t) {
|
|
|
3573
3580
|
l === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
3574
3581
|
l === 1 && i === e - 1 && i === r + 1 ? "" : t.slice(i, e);
|
|
3575
3582
|
}
|
|
3576
|
-
function
|
|
3583
|
+
function Wl(...t) {
|
|
3577
3584
|
let n = -1, e;
|
|
3578
3585
|
for (; ++n < t.length; )
|
|
3579
3586
|
Rt(t[n]), t[n] && (e = e === void 0 ? t[n] : e + "/" + t[n]);
|
|
3580
|
-
return e === void 0 ? "." :
|
|
3587
|
+
return e === void 0 ? "." : vl(e);
|
|
3581
3588
|
}
|
|
3582
|
-
function
|
|
3589
|
+
function vl(t) {
|
|
3583
3590
|
Rt(t);
|
|
3584
3591
|
const n = t.codePointAt(0) === 47;
|
|
3585
|
-
let e =
|
|
3592
|
+
let e = Ql(t, !n);
|
|
3586
3593
|
return e.length === 0 && !n && (e = "."), e.length > 0 && t.codePointAt(t.length - 1) === 47 && (e += "/"), n ? "/" + e : e;
|
|
3587
3594
|
}
|
|
3588
|
-
function
|
|
3595
|
+
function Ql(t, n) {
|
|
3589
3596
|
let e = "", r = 0, i = -1, l = 0, u = -1, a, c;
|
|
3590
3597
|
for (; ++u <= t.length; ) {
|
|
3591
3598
|
if (u < t.length)
|
|
@@ -3622,15 +3629,15 @@ function Rt(t) {
|
|
|
3622
3629
|
"Path must be a string. Received " + JSON.stringify(t)
|
|
3623
3630
|
);
|
|
3624
3631
|
}
|
|
3625
|
-
const
|
|
3626
|
-
function
|
|
3632
|
+
const Zl = { cwd: Gl };
|
|
3633
|
+
function Gl() {
|
|
3627
3634
|
return "/";
|
|
3628
3635
|
}
|
|
3629
3636
|
function ye(t) {
|
|
3630
3637
|
return !!(t !== null && typeof t == "object" && "href" in t && t.href && "protocol" in t && t.protocol && // @ts-expect-error: indexing is fine.
|
|
3631
3638
|
t.auth === void 0);
|
|
3632
3639
|
}
|
|
3633
|
-
function
|
|
3640
|
+
function Yl(t) {
|
|
3634
3641
|
if (typeof t == "string")
|
|
3635
3642
|
t = new URL(t);
|
|
3636
3643
|
else if (!ye(t)) {
|
|
@@ -3643,9 +3650,9 @@ function ea(t) {
|
|
|
3643
3650
|
const n = new TypeError("The URL must be of scheme file");
|
|
3644
3651
|
throw n.code = "ERR_INVALID_URL_SCHEME", n;
|
|
3645
3652
|
}
|
|
3646
|
-
return
|
|
3653
|
+
return Jl(t);
|
|
3647
3654
|
}
|
|
3648
|
-
function
|
|
3655
|
+
function Jl(t) {
|
|
3649
3656
|
if (t.hostname !== "") {
|
|
3650
3657
|
const r = new TypeError(
|
|
3651
3658
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -3677,7 +3684,7 @@ const oe = (
|
|
|
3677
3684
|
"dirname"
|
|
3678
3685
|
]
|
|
3679
3686
|
);
|
|
3680
|
-
class
|
|
3687
|
+
class Kl {
|
|
3681
3688
|
/**
|
|
3682
3689
|
* Create a new virtual file.
|
|
3683
3690
|
*
|
|
@@ -3702,7 +3709,7 @@ class ra {
|
|
|
3702
3709
|
*/
|
|
3703
3710
|
constructor(n) {
|
|
3704
3711
|
let e;
|
|
3705
|
-
n ? ye(n) ? e = { path: n } : typeof n == "string" ||
|
|
3712
|
+
n ? ye(n) ? e = { path: n } : typeof n == "string" || Xl(n) ? e = { value: n } : e = n : e = {}, this.cwd = "cwd" in e ? "" : Zl.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
3706
3713
|
let r = -1;
|
|
3707
3714
|
for (; ++r < oe.length; ) {
|
|
3708
3715
|
const l = oe[r];
|
|
@@ -3756,7 +3763,7 @@ class ra {
|
|
|
3756
3763
|
* Nothing.
|
|
3757
3764
|
*/
|
|
3758
3765
|
set dirname(n) {
|
|
3759
|
-
|
|
3766
|
+
ln(this.basename, "dirname"), this.path = lt.join(n || "", this.basename);
|
|
3760
3767
|
}
|
|
3761
3768
|
/**
|
|
3762
3769
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -3780,7 +3787,7 @@ class ra {
|
|
|
3780
3787
|
* Nothing.
|
|
3781
3788
|
*/
|
|
3782
3789
|
set extname(n) {
|
|
3783
|
-
if (se(n, "extname"),
|
|
3790
|
+
if (se(n, "extname"), ln(this.dirname, "extname"), n) {
|
|
3784
3791
|
if (n.codePointAt(0) !== 46)
|
|
3785
3792
|
throw new Error("`extname` must start with `.`");
|
|
3786
3793
|
if (n.includes(".", 1))
|
|
@@ -3810,7 +3817,7 @@ class ra {
|
|
|
3810
3817
|
* Nothing.
|
|
3811
3818
|
*/
|
|
3812
3819
|
set path(n) {
|
|
3813
|
-
ye(n) && (n =
|
|
3820
|
+
ye(n) && (n = Yl(n)), ce(n, "path"), this.path !== n && this.history.push(n);
|
|
3814
3821
|
}
|
|
3815
3822
|
/**
|
|
3816
3823
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -4057,14 +4064,14 @@ function ce(t, n) {
|
|
|
4057
4064
|
if (!t)
|
|
4058
4065
|
throw new Error("`" + n + "` cannot be empty");
|
|
4059
4066
|
}
|
|
4060
|
-
function
|
|
4067
|
+
function ln(t, n) {
|
|
4061
4068
|
if (!t)
|
|
4062
4069
|
throw new Error("Setting `" + n + "` requires `path` to be set too");
|
|
4063
4070
|
}
|
|
4064
|
-
function
|
|
4071
|
+
function Xl(t) {
|
|
4065
4072
|
return !!(t && typeof t == "object" && "byteLength" in t && "byteOffset" in t);
|
|
4066
4073
|
}
|
|
4067
|
-
const
|
|
4074
|
+
const ta = (
|
|
4068
4075
|
/**
|
|
4069
4076
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
4070
4077
|
*/
|
|
@@ -4085,13 +4092,13 @@ const ua = (
|
|
|
4085
4092
|
};
|
|
4086
4093
|
return Object.setPrototypeOf(l, r), l;
|
|
4087
4094
|
})
|
|
4088
|
-
),
|
|
4089
|
-
class ze extends
|
|
4095
|
+
), ea = {}.hasOwnProperty;
|
|
4096
|
+
class ze extends ta {
|
|
4090
4097
|
/**
|
|
4091
4098
|
* Create a processor.
|
|
4092
4099
|
*/
|
|
4093
4100
|
constructor() {
|
|
4094
|
-
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers =
|
|
4101
|
+
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = Vl();
|
|
4095
4102
|
}
|
|
4096
4103
|
/**
|
|
4097
4104
|
* Copy a processor.
|
|
@@ -4176,7 +4183,7 @@ class ze extends ua {
|
|
|
4176
4183
|
* the entire dataset when getting without key.
|
|
4177
4184
|
*/
|
|
4178
4185
|
data(n, e) {
|
|
4179
|
-
return typeof n == "string" ? arguments.length === 2 ? (pe("data", this.frozen), this.namespace[n] = e, this) :
|
|
4186
|
+
return typeof n == "string" ? arguments.length === 2 ? (pe("data", this.frozen), this.namespace[n] = e, this) : ea.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (pe("data", this.frozen), this.namespace = n, this) : this.namespace;
|
|
4180
4187
|
}
|
|
4181
4188
|
/**
|
|
4182
4189
|
* Freeze a processor.
|
|
@@ -4283,18 +4290,18 @@ class ze extends ua {
|
|
|
4283
4290
|
/** @type {unknown} */
|
|
4284
4291
|
r.parse(a)
|
|
4285
4292
|
);
|
|
4286
|
-
r.run(c, a, function(f, o,
|
|
4287
|
-
if (f || !o || !
|
|
4293
|
+
r.run(c, a, function(f, o, p) {
|
|
4294
|
+
if (f || !o || !p)
|
|
4288
4295
|
return s(f);
|
|
4289
4296
|
const h = (
|
|
4290
4297
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
4291
4298
|
/** @type {unknown} */
|
|
4292
4299
|
o
|
|
4293
|
-
), d = r.stringify(h,
|
|
4294
|
-
|
|
4300
|
+
), d = r.stringify(h, p);
|
|
4301
|
+
ia(d) ? p.value = d : p.result = d, s(
|
|
4295
4302
|
f,
|
|
4296
4303
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
4297
|
-
|
|
4304
|
+
p
|
|
4298
4305
|
);
|
|
4299
4306
|
});
|
|
4300
4307
|
function s(f, o) {
|
|
@@ -4335,7 +4342,7 @@ class ze extends ua {
|
|
|
4335
4342
|
*/
|
|
4336
4343
|
processSync(n) {
|
|
4337
4344
|
let e = !1, r;
|
|
4338
|
-
return this.freeze(), fe("processSync", this.parser || this.Parser), he("processSync", this.compiler || this.Compiler), this.process(n, i),
|
|
4345
|
+
return this.freeze(), fe("processSync", this.parser || this.Parser), he("processSync", this.compiler || this.Compiler), this.process(n, i), on("processSync", "process", e), r;
|
|
4339
4346
|
function i(l, u) {
|
|
4340
4347
|
e = !0, en(l), r = u;
|
|
4341
4348
|
}
|
|
@@ -4379,18 +4386,18 @@ class ze extends ua {
|
|
|
4379
4386
|
* transformed tree.
|
|
4380
4387
|
*/
|
|
4381
4388
|
run(n, e, r) {
|
|
4382
|
-
|
|
4389
|
+
an(n), this.freeze();
|
|
4383
4390
|
const i = this.transformers;
|
|
4384
4391
|
return !r && typeof e == "function" && (r = e, e = void 0), r ? l(void 0, r) : new Promise(l);
|
|
4385
4392
|
function l(u, a) {
|
|
4386
4393
|
const c = Vt(e);
|
|
4387
4394
|
i.run(n, c, s);
|
|
4388
|
-
function s(f, o,
|
|
4395
|
+
function s(f, o, p) {
|
|
4389
4396
|
const h = (
|
|
4390
4397
|
/** @type {TailTree extends undefined ? Node : TailTree} */
|
|
4391
4398
|
o || n
|
|
4392
4399
|
);
|
|
4393
|
-
f ? a(f) : u ? u(h) : r(void 0, h,
|
|
4400
|
+
f ? a(f) : u ? u(h) : r(void 0, h, p);
|
|
4394
4401
|
}
|
|
4395
4402
|
}
|
|
4396
4403
|
}
|
|
@@ -4413,7 +4420,7 @@ class ze extends ua {
|
|
|
4413
4420
|
*/
|
|
4414
4421
|
runSync(n, e) {
|
|
4415
4422
|
let r = !1, i;
|
|
4416
|
-
return this.run(n, e, l),
|
|
4423
|
+
return this.run(n, e, l), on("runSync", "run", r), i;
|
|
4417
4424
|
function l(u, a) {
|
|
4418
4425
|
en(u), i = a, r = !0;
|
|
4419
4426
|
}
|
|
@@ -4450,7 +4457,7 @@ class ze extends ua {
|
|
|
4450
4457
|
stringify(n, e) {
|
|
4451
4458
|
this.freeze();
|
|
4452
4459
|
const r = Vt(e), i = this.compiler || this.Compiler;
|
|
4453
|
-
return he("stringify", i),
|
|
4460
|
+
return he("stringify", i), an(n), i(n, r);
|
|
4454
4461
|
}
|
|
4455
4462
|
/**
|
|
4456
4463
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -4551,23 +4558,23 @@ class ze extends ua {
|
|
|
4551
4558
|
throw new TypeError("Expected a list of plugins, not `" + s + "`");
|
|
4552
4559
|
}
|
|
4553
4560
|
function c(s, f) {
|
|
4554
|
-
let o = -1,
|
|
4561
|
+
let o = -1, p = -1;
|
|
4555
4562
|
for (; ++o < r.length; )
|
|
4556
4563
|
if (r[o][0] === s) {
|
|
4557
|
-
|
|
4564
|
+
p = o;
|
|
4558
4565
|
break;
|
|
4559
4566
|
}
|
|
4560
|
-
if (
|
|
4567
|
+
if (p === -1)
|
|
4561
4568
|
r.push([s, ...f]);
|
|
4562
4569
|
else if (f.length > 0) {
|
|
4563
4570
|
let [h, ...d] = f;
|
|
4564
|
-
const w = r[
|
|
4565
|
-
xe(w) && xe(h) && (h = ae(!0, w, h)), r[
|
|
4571
|
+
const w = r[p][1];
|
|
4572
|
+
xe(w) && xe(h) && (h = ae(!0, w, h)), r[p] = [s, h, ...d];
|
|
4566
4573
|
}
|
|
4567
4574
|
}
|
|
4568
4575
|
}
|
|
4569
4576
|
}
|
|
4570
|
-
const
|
|
4577
|
+
const na = new ze().freeze();
|
|
4571
4578
|
function fe(t, n) {
|
|
4572
4579
|
if (typeof n != "function")
|
|
4573
4580
|
throw new TypeError("Cannot `" + t + "` without `parser`");
|
|
@@ -4582,58 +4589,58 @@ function pe(t, n) {
|
|
|
4582
4589
|
"Cannot call `" + t + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
4583
4590
|
);
|
|
4584
4591
|
}
|
|
4585
|
-
function
|
|
4592
|
+
function an(t) {
|
|
4586
4593
|
if (!xe(t) || typeof t.type != "string")
|
|
4587
4594
|
throw new TypeError("Expected node, got `" + t + "`");
|
|
4588
4595
|
}
|
|
4589
|
-
function
|
|
4596
|
+
function on(t, n, e) {
|
|
4590
4597
|
if (!e)
|
|
4591
4598
|
throw new Error(
|
|
4592
4599
|
"`" + t + "` finished async. Use `" + n + "` instead"
|
|
4593
4600
|
);
|
|
4594
4601
|
}
|
|
4595
4602
|
function Vt(t) {
|
|
4596
|
-
return
|
|
4603
|
+
return ra(t) ? t : new Kl(t);
|
|
4597
4604
|
}
|
|
4598
|
-
function
|
|
4605
|
+
function ra(t) {
|
|
4599
4606
|
return !!(t && typeof t == "object" && "message" in t && "messages" in t);
|
|
4600
4607
|
}
|
|
4601
|
-
function
|
|
4602
|
-
return typeof t == "string" ||
|
|
4608
|
+
function ia(t) {
|
|
4609
|
+
return typeof t == "string" || ua(t);
|
|
4603
4610
|
}
|
|
4604
|
-
function
|
|
4611
|
+
function ua(t) {
|
|
4605
4612
|
return !!(t && typeof t == "object" && "byteLength" in t && "byteOffset" in t);
|
|
4606
4613
|
}
|
|
4607
|
-
const
|
|
4608
|
-
function
|
|
4609
|
-
const e =
|
|
4610
|
-
return
|
|
4614
|
+
const la = {};
|
|
4615
|
+
function aa(t, n) {
|
|
4616
|
+
const e = la, r = typeof e.includeImageAlt == "boolean" ? e.includeImageAlt : !0, i = typeof e.includeHtml == "boolean" ? e.includeHtml : !0;
|
|
4617
|
+
return Hn(t, r, i);
|
|
4611
4618
|
}
|
|
4612
|
-
function
|
|
4613
|
-
if (
|
|
4619
|
+
function Hn(t, n, e) {
|
|
4620
|
+
if (oa(t)) {
|
|
4614
4621
|
if ("value" in t)
|
|
4615
4622
|
return t.type === "html" && !e ? "" : t.value;
|
|
4616
4623
|
if (n && "alt" in t && t.alt)
|
|
4617
4624
|
return t.alt;
|
|
4618
4625
|
if ("children" in t)
|
|
4619
|
-
return
|
|
4626
|
+
return sn(t.children, n, e);
|
|
4620
4627
|
}
|
|
4621
|
-
return Array.isArray(t) ?
|
|
4628
|
+
return Array.isArray(t) ? sn(t, n, e) : "";
|
|
4622
4629
|
}
|
|
4623
|
-
function
|
|
4630
|
+
function sn(t, n, e) {
|
|
4624
4631
|
const r = [];
|
|
4625
4632
|
let i = -1;
|
|
4626
4633
|
for (; ++i < t.length; )
|
|
4627
|
-
r[i] =
|
|
4634
|
+
r[i] = Hn(t[i], n, e);
|
|
4628
4635
|
return r.join("");
|
|
4629
4636
|
}
|
|
4630
|
-
function
|
|
4637
|
+
function oa(t) {
|
|
4631
4638
|
return !!(t && typeof t == "object");
|
|
4632
4639
|
}
|
|
4633
|
-
const
|
|
4634
|
-
tokenize:
|
|
4640
|
+
const sa = {
|
|
4641
|
+
tokenize: ca
|
|
4635
4642
|
};
|
|
4636
|
-
function
|
|
4643
|
+
function ca(t) {
|
|
4637
4644
|
const n = t.attempt(
|
|
4638
4645
|
this.parser.constructs.contentInitial,
|
|
4639
4646
|
r,
|
|
@@ -4666,12 +4673,12 @@ function ga(t) {
|
|
|
4666
4673
|
return T(a) ? (t.consume(a), t.exit("chunkText"), l) : (t.consume(a), u);
|
|
4667
4674
|
}
|
|
4668
4675
|
}
|
|
4669
|
-
const
|
|
4670
|
-
tokenize:
|
|
4671
|
-
},
|
|
4672
|
-
tokenize:
|
|
4676
|
+
const fa = {
|
|
4677
|
+
tokenize: ha
|
|
4678
|
+
}, cn = {
|
|
4679
|
+
tokenize: pa
|
|
4673
4680
|
};
|
|
4674
|
-
function
|
|
4681
|
+
function ha(t) {
|
|
4675
4682
|
const n = this, e = [];
|
|
4676
4683
|
let r = 0, i, l, u;
|
|
4677
4684
|
return a;
|
|
@@ -4712,32 +4719,32 @@ function ka(t) {
|
|
|
4712
4719
|
function s(F) {
|
|
4713
4720
|
if (r === e.length) {
|
|
4714
4721
|
if (!i)
|
|
4715
|
-
return
|
|
4722
|
+
return p(F);
|
|
4716
4723
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
|
4717
4724
|
return d(F);
|
|
4718
4725
|
n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
4719
4726
|
}
|
|
4720
4727
|
return n.containerState = {}, t.check(
|
|
4721
|
-
|
|
4728
|
+
cn,
|
|
4722
4729
|
f,
|
|
4723
4730
|
o
|
|
4724
4731
|
)(F);
|
|
4725
4732
|
}
|
|
4726
4733
|
function f(F) {
|
|
4727
|
-
return i && I(), b(r),
|
|
4734
|
+
return i && I(), b(r), p(F);
|
|
4728
4735
|
}
|
|
4729
4736
|
function o(F) {
|
|
4730
4737
|
return n.parser.lazy[n.now().line] = r !== e.length, u = n.now().offset, d(F);
|
|
4731
4738
|
}
|
|
4732
|
-
function
|
|
4739
|
+
function p(F) {
|
|
4733
4740
|
return n.containerState = {}, t.attempt(
|
|
4734
|
-
|
|
4741
|
+
cn,
|
|
4735
4742
|
h,
|
|
4736
4743
|
d
|
|
4737
4744
|
)(F);
|
|
4738
4745
|
}
|
|
4739
4746
|
function h(F) {
|
|
4740
|
-
return r++, e.push([n.currentConstruct, n.containerState]),
|
|
4747
|
+
return r++, e.push([n.currentConstruct, n.containerState]), p(F);
|
|
4741
4748
|
}
|
|
4742
4749
|
function d(F) {
|
|
4743
4750
|
if (F === null) {
|
|
@@ -4801,7 +4808,7 @@ function ka(t) {
|
|
|
4801
4808
|
i.write([null]), l = void 0, i = void 0, n.containerState._closeFlow = void 0;
|
|
4802
4809
|
}
|
|
4803
4810
|
}
|
|
4804
|
-
function
|
|
4811
|
+
function pa(t, n, e) {
|
|
4805
4812
|
return P(
|
|
4806
4813
|
t,
|
|
4807
4814
|
t.attempt(this.parser.constructs.document, n, e),
|
|
@@ -4809,10 +4816,10 @@ function xa(t, n, e) {
|
|
|
4809
4816
|
this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
4810
4817
|
);
|
|
4811
4818
|
}
|
|
4812
|
-
const
|
|
4813
|
-
tokenize:
|
|
4819
|
+
const ma = {
|
|
4820
|
+
tokenize: ga
|
|
4814
4821
|
};
|
|
4815
|
-
function
|
|
4822
|
+
function ga(t) {
|
|
4816
4823
|
const n = this, e = t.attempt(
|
|
4817
4824
|
// Try to parse a blank line.
|
|
4818
4825
|
Ot,
|
|
@@ -4826,7 +4833,7 @@ function ya(t) {
|
|
|
4826
4833
|
t.attempt(
|
|
4827
4834
|
this.parser.constructs.flow,
|
|
4828
4835
|
i,
|
|
4829
|
-
t.attempt(
|
|
4836
|
+
t.attempt(ri, i)
|
|
4830
4837
|
),
|
|
4831
4838
|
"linePrefix"
|
|
4832
4839
|
)
|
|
@@ -4848,14 +4855,14 @@ function ya(t) {
|
|
|
4848
4855
|
return t.enter("lineEnding"), t.consume(l), t.exit("lineEnding"), n.currentConstruct = void 0, e;
|
|
4849
4856
|
}
|
|
4850
4857
|
}
|
|
4851
|
-
const
|
|
4852
|
-
resolveAll:
|
|
4853
|
-
},
|
|
4854
|
-
function
|
|
4858
|
+
const da = {
|
|
4859
|
+
resolveAll: $n()
|
|
4860
|
+
}, ka = Nn("string"), xa = Nn("text");
|
|
4861
|
+
function Nn(t) {
|
|
4855
4862
|
return {
|
|
4856
4863
|
tokenize: n,
|
|
4857
|
-
resolveAll:
|
|
4858
|
-
t === "text" ?
|
|
4864
|
+
resolveAll: $n(
|
|
4865
|
+
t === "text" ? ba : void 0
|
|
4859
4866
|
)
|
|
4860
4867
|
};
|
|
4861
4868
|
function n(e) {
|
|
@@ -4878,10 +4885,10 @@ function Zn(t) {
|
|
|
4878
4885
|
if (f === null)
|
|
4879
4886
|
return !0;
|
|
4880
4887
|
const o = i[f];
|
|
4881
|
-
let
|
|
4888
|
+
let p = -1;
|
|
4882
4889
|
if (o)
|
|
4883
|
-
for (; ++
|
|
4884
|
-
const h = o[
|
|
4890
|
+
for (; ++p < o.length; ) {
|
|
4891
|
+
const h = o[p];
|
|
4885
4892
|
if (!h.previous || h.previous.call(r, r.previous))
|
|
4886
4893
|
return !0;
|
|
4887
4894
|
}
|
|
@@ -4889,7 +4896,7 @@ function Zn(t) {
|
|
|
4889
4896
|
}
|
|
4890
4897
|
}
|
|
4891
4898
|
}
|
|
4892
|
-
function
|
|
4899
|
+
function $n(t) {
|
|
4893
4900
|
return n;
|
|
4894
4901
|
function n(e, r) {
|
|
4895
4902
|
let i = -1, l;
|
|
@@ -4898,7 +4905,7 @@ function Gn(t) {
|
|
|
4898
4905
|
return t ? t(e, r) : e;
|
|
4899
4906
|
}
|
|
4900
4907
|
}
|
|
4901
|
-
function
|
|
4908
|
+
function ba(t, n) {
|
|
4902
4909
|
let e = 0;
|
|
4903
4910
|
for (; ++e <= t.length; )
|
|
4904
4911
|
if ((e === t.length || t[e][1].type === "lineEnding") && t[e - 1][1].type === "data") {
|
|
@@ -4941,7 +4948,7 @@ function Ca(t, n) {
|
|
|
4941
4948
|
}
|
|
4942
4949
|
return t;
|
|
4943
4950
|
}
|
|
4944
|
-
function
|
|
4951
|
+
function ya(t, n, e) {
|
|
4945
4952
|
let r = Object.assign(
|
|
4946
4953
|
e ? Object.assign({}, e) : {
|
|
4947
4954
|
line: 1,
|
|
@@ -4971,7 +4978,7 @@ function Aa(t, n, e) {
|
|
|
4971
4978
|
events: [],
|
|
4972
4979
|
parser: t,
|
|
4973
4980
|
sliceStream: h,
|
|
4974
|
-
sliceSerialize:
|
|
4981
|
+
sliceSerialize: p,
|
|
4975
4982
|
now: d,
|
|
4976
4983
|
defineSkip: w,
|
|
4977
4984
|
write: o
|
|
@@ -4979,13 +4986,13 @@ function Aa(t, n, e) {
|
|
|
4979
4986
|
let f = n.tokenize.call(s, c);
|
|
4980
4987
|
return n.resolveAll && l.push(n), s;
|
|
4981
4988
|
function o(A) {
|
|
4982
|
-
return u = tt(u, A), C(), u[u.length - 1] !== null ? [] : (q(n, 0), s.events =
|
|
4989
|
+
return u = tt(u, A), C(), u[u.length - 1] !== null ? [] : (q(n, 0), s.events = Zt(l, s.events, s), s.events);
|
|
4983
4990
|
}
|
|
4984
|
-
function
|
|
4985
|
-
return
|
|
4991
|
+
function p(A, E) {
|
|
4992
|
+
return Fa(h(A), E);
|
|
4986
4993
|
}
|
|
4987
4994
|
function h(A) {
|
|
4988
|
-
return
|
|
4995
|
+
return wa(u, A);
|
|
4989
4996
|
}
|
|
4990
4997
|
function d() {
|
|
4991
4998
|
const { line: A, column: E, offset: R, _index: H, _bufferIndex: M } = r;
|
|
@@ -5034,7 +5041,7 @@ function Aa(t, n, e) {
|
|
|
5034
5041
|
function _(A, E) {
|
|
5035
5042
|
return R;
|
|
5036
5043
|
function R(H, M, v) {
|
|
5037
|
-
let U, et, ot,
|
|
5044
|
+
let U, et, ot, m;
|
|
5038
5045
|
return Array.isArray(H) ? st(H) : "tokenize" in H ? (
|
|
5039
5046
|
// @ts-expect-error Looks like a construct.
|
|
5040
5047
|
st([H])
|
|
@@ -5042,22 +5049,22 @@ function Aa(t, n, e) {
|
|
|
5042
5049
|
function nt(W) {
|
|
5043
5050
|
return At;
|
|
5044
5051
|
function At(gt) {
|
|
5045
|
-
const Et = gt !== null && W[gt], zt = gt !== null && W.null,
|
|
5052
|
+
const Et = gt !== null && W[gt], zt = gt !== null && W.null, Jt = [
|
|
5046
5053
|
// To do: add more extension tests.
|
|
5047
5054
|
/* c8 ignore next 2 */
|
|
5048
5055
|
...Array.isArray(Et) ? Et : Et ? [Et] : [],
|
|
5049
5056
|
...Array.isArray(zt) ? zt : zt ? [zt] : []
|
|
5050
5057
|
];
|
|
5051
|
-
return st(
|
|
5058
|
+
return st(Jt)(gt);
|
|
5052
5059
|
}
|
|
5053
5060
|
}
|
|
5054
5061
|
function st(W) {
|
|
5055
|
-
return U = W, et = 0, W.length === 0 ? v :
|
|
5062
|
+
return U = W, et = 0, W.length === 0 ? v : g(W[et]);
|
|
5056
5063
|
}
|
|
5057
|
-
function
|
|
5064
|
+
function g(W) {
|
|
5058
5065
|
return At;
|
|
5059
5066
|
function At(gt) {
|
|
5060
|
-
return
|
|
5067
|
+
return m = $(), ot = W, W.partial || (s.currentConstruct = W), W.name && s.parser.constructs.disable.null.includes(W.name) ? Ct() : W.tokenize.call(
|
|
5061
5068
|
// If we do have fields, create an object w/ `context` as its
|
|
5062
5069
|
// prototype.
|
|
5063
5070
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -5069,10 +5076,10 @@ function Aa(t, n, e) {
|
|
|
5069
5076
|
}
|
|
5070
5077
|
}
|
|
5071
5078
|
function rt(W) {
|
|
5072
|
-
return A(ot,
|
|
5079
|
+
return A(ot, m), M;
|
|
5073
5080
|
}
|
|
5074
5081
|
function Ct(W) {
|
|
5075
|
-
return
|
|
5082
|
+
return m.restore(), ++et < U.length ? g(U[et]) : v;
|
|
5076
5083
|
}
|
|
5077
5084
|
}
|
|
5078
5085
|
}
|
|
@@ -5098,7 +5105,7 @@ function Aa(t, n, e) {
|
|
|
5098
5105
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
5099
5106
|
}
|
|
5100
5107
|
}
|
|
5101
|
-
function
|
|
5108
|
+
function wa(t, n) {
|
|
5102
5109
|
const e = n.start._index, r = n.start._bufferIndex, i = n.end._index, l = n.end._bufferIndex;
|
|
5103
5110
|
let u;
|
|
5104
5111
|
if (e === i)
|
|
@@ -5112,7 +5119,7 @@ function Ea(t, n) {
|
|
|
5112
5119
|
}
|
|
5113
5120
|
return u;
|
|
5114
5121
|
}
|
|
5115
|
-
function
|
|
5122
|
+
function Fa(t, n) {
|
|
5116
5123
|
let e = -1;
|
|
5117
5124
|
const r = [];
|
|
5118
5125
|
let i;
|
|
@@ -5153,7 +5160,7 @@ function za(t, n) {
|
|
|
5153
5160
|
}
|
|
5154
5161
|
return r.join("");
|
|
5155
5162
|
}
|
|
5156
|
-
const
|
|
5163
|
+
const Sa = {
|
|
5157
5164
|
42: Y,
|
|
5158
5165
|
43: Y,
|
|
5159
5166
|
45: Y,
|
|
@@ -5167,94 +5174,94 @@ const Ia = {
|
|
|
5167
5174
|
55: Y,
|
|
5168
5175
|
56: Y,
|
|
5169
5176
|
57: Y,
|
|
5170
|
-
62:
|
|
5171
|
-
},
|
|
5172
|
-
91:
|
|
5173
|
-
},
|
|
5174
|
-
[-2]:
|
|
5175
|
-
[-1]:
|
|
5176
|
-
32:
|
|
5177
|
-
},
|
|
5178
|
-
35:
|
|
5177
|
+
62: Cn
|
|
5178
|
+
}, Ca = {
|
|
5179
|
+
91: oi
|
|
5180
|
+
}, Aa = {
|
|
5181
|
+
[-2]: te,
|
|
5182
|
+
[-1]: te,
|
|
5183
|
+
32: te
|
|
5184
|
+
}, Ea = {
|
|
5185
|
+
35: mi,
|
|
5179
5186
|
42: qt,
|
|
5180
5187
|
45: [Ue, qt],
|
|
5181
|
-
60:
|
|
5188
|
+
60: xi,
|
|
5182
5189
|
61: Ue,
|
|
5183
5190
|
95: qt,
|
|
5184
5191
|
96: Ne,
|
|
5185
5192
|
126: Ne
|
|
5186
|
-
},
|
|
5187
|
-
38:
|
|
5188
|
-
92:
|
|
5189
|
-
},
|
|
5190
|
-
[-5]:
|
|
5191
|
-
[-4]:
|
|
5192
|
-
[-3]:
|
|
5193
|
-
33:
|
|
5194
|
-
38:
|
|
5193
|
+
}, za = {
|
|
5194
|
+
38: En,
|
|
5195
|
+
92: An
|
|
5196
|
+
}, Ia = {
|
|
5197
|
+
[-5]: ee,
|
|
5198
|
+
[-4]: ee,
|
|
5199
|
+
[-3]: ee,
|
|
5200
|
+
33: Oi,
|
|
5201
|
+
38: En,
|
|
5195
5202
|
42: ke,
|
|
5196
|
-
60: [
|
|
5197
|
-
91:
|
|
5198
|
-
92: [
|
|
5203
|
+
60: [Vr, Ai],
|
|
5204
|
+
91: ji,
|
|
5205
|
+
92: [hi, An],
|
|
5199
5206
|
93: Ae,
|
|
5200
5207
|
95: ke,
|
|
5201
|
-
96:
|
|
5202
|
-
},
|
|
5203
|
-
null: [ke,
|
|
5204
|
-
},
|
|
5208
|
+
96: Kr
|
|
5209
|
+
}, Ta = {
|
|
5210
|
+
null: [ke, da]
|
|
5211
|
+
}, Da = {
|
|
5205
5212
|
null: [42, 95]
|
|
5206
|
-
},
|
|
5213
|
+
}, _a = {
|
|
5207
5214
|
null: []
|
|
5208
|
-
},
|
|
5215
|
+
}, La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5209
5216
|
__proto__: null,
|
|
5210
|
-
attentionMarkers:
|
|
5211
|
-
contentInitial:
|
|
5212
|
-
disable:
|
|
5213
|
-
document:
|
|
5214
|
-
flow:
|
|
5215
|
-
flowInitial:
|
|
5216
|
-
insideSpan:
|
|
5217
|
-
string:
|
|
5218
|
-
text:
|
|
5217
|
+
attentionMarkers: Da,
|
|
5218
|
+
contentInitial: Ca,
|
|
5219
|
+
disable: _a,
|
|
5220
|
+
document: Sa,
|
|
5221
|
+
flow: Ea,
|
|
5222
|
+
flowInitial: Aa,
|
|
5223
|
+
insideSpan: Ta,
|
|
5224
|
+
string: za,
|
|
5225
|
+
text: Ia
|
|
5219
5226
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5220
|
-
function
|
|
5227
|
+
function Ba(t) {
|
|
5221
5228
|
const e = (
|
|
5222
5229
|
/** @type {FullNormalizedExtension} */
|
|
5223
|
-
|
|
5230
|
+
gn([La, ...(t || {}).extensions || []])
|
|
5224
5231
|
), r = {
|
|
5225
5232
|
defined: [],
|
|
5226
5233
|
lazy: {},
|
|
5227
5234
|
constructs: e,
|
|
5228
|
-
content: i(
|
|
5229
|
-
document: i(
|
|
5230
|
-
flow: i(
|
|
5231
|
-
string: i(
|
|
5232
|
-
text: i(
|
|
5235
|
+
content: i(sa),
|
|
5236
|
+
document: i(fa),
|
|
5237
|
+
flow: i(ma),
|
|
5238
|
+
string: i(ka),
|
|
5239
|
+
text: i(xa)
|
|
5233
5240
|
};
|
|
5234
5241
|
return r;
|
|
5235
5242
|
function i(l) {
|
|
5236
5243
|
return u;
|
|
5237
5244
|
function u(a) {
|
|
5238
|
-
return
|
|
5245
|
+
return ya(r, l, a);
|
|
5239
5246
|
}
|
|
5240
5247
|
}
|
|
5241
5248
|
}
|
|
5242
|
-
const
|
|
5243
|
-
function
|
|
5249
|
+
const fn = /[\0\t\n\r]/g;
|
|
5250
|
+
function Pa() {
|
|
5244
5251
|
let t = 1, n = "", e = !0, r;
|
|
5245
5252
|
return i;
|
|
5246
5253
|
function i(l, u, a) {
|
|
5247
5254
|
const c = [];
|
|
5248
|
-
let s, f, o,
|
|
5255
|
+
let s, f, o, p, h;
|
|
5249
5256
|
for (l = n + l.toString(u), o = 0, n = "", e && (l.charCodeAt(0) === 65279 && o++, e = void 0); o < l.length; ) {
|
|
5250
|
-
if (
|
|
5257
|
+
if (fn.lastIndex = o, s = fn.exec(l), p = s && s.index !== void 0 ? s.index : l.length, h = l.charCodeAt(p), !s) {
|
|
5251
5258
|
n = l.slice(o);
|
|
5252
5259
|
break;
|
|
5253
5260
|
}
|
|
5254
|
-
if (h === 10 && o ===
|
|
5261
|
+
if (h === 10 && o === p && r)
|
|
5255
5262
|
c.push(-3), r = void 0;
|
|
5256
5263
|
else
|
|
5257
|
-
switch (r && (c.push(-5), r = void 0), o <
|
|
5264
|
+
switch (r && (c.push(-5), r = void 0), o < p && (c.push(l.slice(o, p)), t += p - o), h) {
|
|
5258
5265
|
case 0: {
|
|
5259
5266
|
c.push(65533), t++;
|
|
5260
5267
|
break;
|
|
@@ -5270,29 +5277,29 @@ function Va() {
|
|
|
5270
5277
|
default:
|
|
5271
5278
|
r = !0, t = 1;
|
|
5272
5279
|
}
|
|
5273
|
-
o =
|
|
5280
|
+
o = p + 1;
|
|
5274
5281
|
}
|
|
5275
5282
|
return a && (r && c.push(-5), n && c.push(n), c.push(null)), c;
|
|
5276
5283
|
}
|
|
5277
5284
|
}
|
|
5278
|
-
function
|
|
5279
|
-
for (; !
|
|
5285
|
+
function Ma(t) {
|
|
5286
|
+
for (; !zn(t); )
|
|
5280
5287
|
;
|
|
5281
5288
|
return t;
|
|
5282
5289
|
}
|
|
5283
|
-
function
|
|
5284
|
-
return !t || typeof t != "object" ? "" : "position" in t || "type" in t ?
|
|
5290
|
+
function Ht(t) {
|
|
5291
|
+
return !t || typeof t != "object" ? "" : "position" in t || "type" in t ? hn(t.position) : "start" in t || "end" in t ? hn(t) : "line" in t || "column" in t ? we(t) : "";
|
|
5285
5292
|
}
|
|
5286
5293
|
function we(t) {
|
|
5287
|
-
return
|
|
5294
|
+
return pn(t && t.line) + ":" + pn(t && t.column);
|
|
5288
5295
|
}
|
|
5289
|
-
function
|
|
5296
|
+
function hn(t) {
|
|
5290
5297
|
return we(t && t.start) + "-" + we(t && t.end);
|
|
5291
5298
|
}
|
|
5292
|
-
function
|
|
5299
|
+
function pn(t) {
|
|
5293
5300
|
return t && typeof t == "number" ? t : 1;
|
|
5294
5301
|
}
|
|
5295
|
-
const
|
|
5302
|
+
const Un = {}.hasOwnProperty, Oa = (
|
|
5296
5303
|
/**
|
|
5297
5304
|
* @type {(
|
|
5298
5305
|
* ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) &
|
|
@@ -5306,14 +5313,14 @@ const Yn = {}.hasOwnProperty, Ha = (
|
|
|
5306
5313
|
* @returns {Root}
|
|
5307
5314
|
*/
|
|
5308
5315
|
function(t, n, e) {
|
|
5309
|
-
return typeof n != "string" && (e = n, n = void 0),
|
|
5310
|
-
|
|
5311
|
-
|
|
5316
|
+
return typeof n != "string" && (e = n, n = void 0), Ra(e)(
|
|
5317
|
+
Ma(
|
|
5318
|
+
Ba(e).document().write(Pa()(t, n, !0))
|
|
5312
5319
|
)
|
|
5313
5320
|
);
|
|
5314
5321
|
}
|
|
5315
5322
|
);
|
|
5316
|
-
function
|
|
5323
|
+
function Ra(t) {
|
|
5317
5324
|
const n = {
|
|
5318
5325
|
transforms: [],
|
|
5319
5326
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -5322,43 +5329,43 @@ function Na(t) {
|
|
|
5322
5329
|
autolinkProtocol: A,
|
|
5323
5330
|
autolinkEmail: A,
|
|
5324
5331
|
atxHeading: a(Te),
|
|
5325
|
-
blockQuote: a(
|
|
5332
|
+
blockQuote: a(Jt),
|
|
5326
5333
|
characterEscape: A,
|
|
5327
5334
|
characterReference: A,
|
|
5328
5335
|
codeFenced: a(Ie),
|
|
5329
5336
|
codeFencedFenceInfo: c,
|
|
5330
5337
|
codeFencedFenceMeta: c,
|
|
5331
5338
|
codeIndented: a(Ie, c),
|
|
5332
|
-
codeText: a(
|
|
5339
|
+
codeText: a(Zn, c),
|
|
5333
5340
|
codeTextData: A,
|
|
5334
5341
|
data: A,
|
|
5335
5342
|
codeFlowValue: A,
|
|
5336
|
-
definition: a(
|
|
5343
|
+
definition: a(Gn),
|
|
5337
5344
|
definitionDestinationString: c,
|
|
5338
5345
|
definitionLabelString: c,
|
|
5339
5346
|
definitionTitleString: c,
|
|
5340
|
-
emphasis: a(
|
|
5347
|
+
emphasis: a(Yn),
|
|
5341
5348
|
hardBreakEscape: a(De),
|
|
5342
5349
|
hardBreakTrailing: a(De),
|
|
5343
5350
|
htmlFlow: a(_e, c),
|
|
5344
5351
|
htmlFlowData: A,
|
|
5345
5352
|
htmlText: a(_e, c),
|
|
5346
5353
|
htmlTextData: A,
|
|
5347
|
-
image: a(
|
|
5354
|
+
image: a(Jn),
|
|
5348
5355
|
label: c,
|
|
5349
5356
|
link: a(Le),
|
|
5350
|
-
listItem: a(
|
|
5357
|
+
listItem: a(Kn),
|
|
5351
5358
|
listItemValue: d,
|
|
5352
5359
|
listOrdered: a(Be, h),
|
|
5353
5360
|
listUnordered: a(Be),
|
|
5354
|
-
paragraph: a(
|
|
5361
|
+
paragraph: a(Xn),
|
|
5355
5362
|
reference: Ct,
|
|
5356
5363
|
referenceString: c,
|
|
5357
5364
|
resourceDestinationString: c,
|
|
5358
5365
|
resourceTitleString: c,
|
|
5359
5366
|
setextHeading: a(Te),
|
|
5360
|
-
strong: a(
|
|
5361
|
-
thematicBreak: a(
|
|
5367
|
+
strong: a(tr),
|
|
5368
|
+
thematicBreak: a(nr)
|
|
5362
5369
|
},
|
|
5363
5370
|
exit: {
|
|
5364
5371
|
atxHeading: f(),
|
|
@@ -5393,7 +5400,7 @@ function Na(t) {
|
|
|
5393
5400
|
htmlTextData: E,
|
|
5394
5401
|
image: f(ot),
|
|
5395
5402
|
label: nt,
|
|
5396
|
-
labelText:
|
|
5403
|
+
labelText: m,
|
|
5397
5404
|
lineEnding: R,
|
|
5398
5405
|
link: f(et),
|
|
5399
5406
|
listItem: f(),
|
|
@@ -5402,7 +5409,7 @@ function Na(t) {
|
|
|
5402
5409
|
paragraph: f(),
|
|
5403
5410
|
referenceString: W,
|
|
5404
5411
|
resourceDestinationString: st,
|
|
5405
|
-
resourceTitleString:
|
|
5412
|
+
resourceTitleString: g,
|
|
5406
5413
|
resource: rt,
|
|
5407
5414
|
setextHeading: f(k),
|
|
5408
5415
|
setextHeadingLineSequence: $,
|
|
@@ -5411,7 +5418,7 @@ function Na(t) {
|
|
|
5411
5418
|
thematicBreak: f()
|
|
5412
5419
|
}
|
|
5413
5420
|
};
|
|
5414
|
-
|
|
5421
|
+
Wn(n, (t || {}).mdastExtensions || []);
|
|
5415
5422
|
const e = {};
|
|
5416
5423
|
return r;
|
|
5417
5424
|
function r(x) {
|
|
@@ -5426,7 +5433,7 @@ function Na(t) {
|
|
|
5426
5433
|
enter: s,
|
|
5427
5434
|
exit: o,
|
|
5428
5435
|
buffer: c,
|
|
5429
|
-
resume:
|
|
5436
|
+
resume: p,
|
|
5430
5437
|
setData: l,
|
|
5431
5438
|
getData: u
|
|
5432
5439
|
}, O = [];
|
|
@@ -5441,7 +5448,7 @@ function Na(t) {
|
|
|
5441
5448
|
}
|
|
5442
5449
|
for (j = -1; ++j < x.length; ) {
|
|
5443
5450
|
const it = n[x[j][0]];
|
|
5444
|
-
|
|
5451
|
+
Un.call(it, x[j][1].type) && it[x[j][1].type].call(
|
|
5445
5452
|
Object.assign(
|
|
5446
5453
|
{
|
|
5447
5454
|
sliceSerialize: x[j][2].sliceSerialize
|
|
@@ -5453,7 +5460,7 @@ function Na(t) {
|
|
|
5453
5460
|
}
|
|
5454
5461
|
if (D.tokenStack.length > 0) {
|
|
5455
5462
|
const it = D.tokenStack[D.tokenStack.length - 1];
|
|
5456
|
-
(it[1] ||
|
|
5463
|
+
(it[1] || mn).call(D, void 0, it[0]);
|
|
5457
5464
|
}
|
|
5458
5465
|
for (S.position = {
|
|
5459
5466
|
start: kt(
|
|
@@ -5480,12 +5487,12 @@ function Na(t) {
|
|
|
5480
5487
|
const N = x[O];
|
|
5481
5488
|
if (N[1].type === "listUnordered" || N[1].type === "listOrdered" || N[1].type === "blockQuote" ? (N[0] === "enter" ? j++ : j--, Lt = void 0) : N[1].type === "lineEndingBlank" ? N[0] === "enter" && (dt && !Lt && !j && !_t && (_t = O), Lt = void 0) : N[1].type === "linePrefix" || N[1].type === "listItemValue" || N[1].type === "listItemMarker" || N[1].type === "listItemPrefix" || N[1].type === "listItemPrefixWhitespace" || (Lt = void 0), !j && N[0] === "enter" && N[1].type === "listItemPrefix" || j === -1 && N[0] === "exit" && (N[1].type === "listUnordered" || N[1].type === "listOrdered")) {
|
|
5482
5489
|
if (dt) {
|
|
5483
|
-
let
|
|
5484
|
-
for (ct = void 0;
|
|
5485
|
-
const ft = x[
|
|
5490
|
+
let Kt = O;
|
|
5491
|
+
for (ct = void 0; Kt--; ) {
|
|
5492
|
+
const ft = x[Kt];
|
|
5486
5493
|
if (ft[1].type === "lineEnding" || ft[1].type === "lineEndingBlank") {
|
|
5487
5494
|
if (ft[0] === "exit") continue;
|
|
5488
|
-
ct && (x[ct][1].type = "lineEndingBlank", it = !0), ft[1].type = "lineEnding", ct =
|
|
5495
|
+
ct && (x[ct][1].type = "lineEndingBlank", it = !0), ft[1].type = "lineEnding", ct = Kt;
|
|
5489
5496
|
} else if (!(ft[1].type === "linePrefix" || ft[1].type === "blockQuotePrefix" || ft[1].type === "blockQuotePrefixWhitespace" || ft[1].type === "blockQuoteMarker" || ft[1].type === "listItemIndent")) break;
|
|
5490
5497
|
}
|
|
5491
5498
|
_t && (!ct || _t < ct) && (dt._spread = !0), dt.end = Object.assign(
|
|
@@ -5536,17 +5543,17 @@ function Na(t) {
|
|
|
5536
5543
|
function o(x, S) {
|
|
5537
5544
|
const D = this.stack.pop(), O = this.tokenStack.pop();
|
|
5538
5545
|
if (O)
|
|
5539
|
-
O[0].type !== x.type && (S ? S.call(this, x, O[0]) : (O[1] ||
|
|
5546
|
+
O[0].type !== x.type && (S ? S.call(this, x, O[0]) : (O[1] || mn).call(this, x, O[0]));
|
|
5540
5547
|
else throw new Error(
|
|
5541
|
-
"Cannot close `" + x.type + "` (" +
|
|
5548
|
+
"Cannot close `" + x.type + "` (" + Ht({
|
|
5542
5549
|
start: x.start,
|
|
5543
5550
|
end: x.end
|
|
5544
5551
|
}) + "): it’s not open"
|
|
5545
5552
|
);
|
|
5546
5553
|
return D.position.end = kt(x.end), D;
|
|
5547
5554
|
}
|
|
5548
|
-
function
|
|
5549
|
-
return
|
|
5555
|
+
function p() {
|
|
5556
|
+
return aa(this.stack.pop());
|
|
5550
5557
|
}
|
|
5551
5558
|
function h() {
|
|
5552
5559
|
l("expectingFirstListItemValue", !0);
|
|
@@ -5610,7 +5617,7 @@ function Na(t) {
|
|
|
5610
5617
|
function A(x) {
|
|
5611
5618
|
const S = this.stack[this.stack.length - 1];
|
|
5612
5619
|
let D = S.children[S.children.length - 1];
|
|
5613
|
-
(!D || D.type !== "text") && (D =
|
|
5620
|
+
(!D || D.type !== "text") && (D = er(), D.position = {
|
|
5614
5621
|
start: kt(x.start)
|
|
5615
5622
|
}, S.children.push(D)), this.stack.push(D);
|
|
5616
5623
|
}
|
|
@@ -5660,9 +5667,9 @@ function Na(t) {
|
|
|
5660
5667
|
delete x.identifier, delete x.label;
|
|
5661
5668
|
l("referenceType");
|
|
5662
5669
|
}
|
|
5663
|
-
function
|
|
5670
|
+
function m(x) {
|
|
5664
5671
|
const S = this.sliceSerialize(x), D = this.stack[this.stack.length - 2];
|
|
5665
|
-
D.label =
|
|
5672
|
+
D.label = Bn(S), D.identifier = ut(S).toLowerCase();
|
|
5666
5673
|
}
|
|
5667
5674
|
function nt() {
|
|
5668
5675
|
const x = this.stack[this.stack.length - 1], S = this.resume(), D = this.stack[this.stack.length - 1];
|
|
@@ -5676,7 +5683,7 @@ function Na(t) {
|
|
|
5676
5683
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5677
5684
|
S.url = x;
|
|
5678
5685
|
}
|
|
5679
|
-
function
|
|
5686
|
+
function g() {
|
|
5680
5687
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5681
5688
|
S.title = x;
|
|
5682
5689
|
}
|
|
@@ -5698,7 +5705,7 @@ function Na(t) {
|
|
|
5698
5705
|
function gt(x) {
|
|
5699
5706
|
const S = this.sliceSerialize(x), D = u("characterReferenceType");
|
|
5700
5707
|
let O;
|
|
5701
|
-
D ? (O =
|
|
5708
|
+
D ? (O = Ln(
|
|
5702
5709
|
S,
|
|
5703
5710
|
D === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
5704
5711
|
), l("characterReferenceType")) : O = Ce(S);
|
|
@@ -5715,7 +5722,7 @@ function Na(t) {
|
|
|
5715
5722
|
const S = this.stack[this.stack.length - 1];
|
|
5716
5723
|
S.url = "mailto:" + this.sliceSerialize(x);
|
|
5717
5724
|
}
|
|
5718
|
-
function
|
|
5725
|
+
function Jt() {
|
|
5719
5726
|
return {
|
|
5720
5727
|
type: "blockquote",
|
|
5721
5728
|
children: []
|
|
@@ -5729,13 +5736,13 @@ function Na(t) {
|
|
|
5729
5736
|
value: ""
|
|
5730
5737
|
};
|
|
5731
5738
|
}
|
|
5732
|
-
function
|
|
5739
|
+
function Zn() {
|
|
5733
5740
|
return {
|
|
5734
5741
|
type: "inlineCode",
|
|
5735
5742
|
value: ""
|
|
5736
5743
|
};
|
|
5737
5744
|
}
|
|
5738
|
-
function
|
|
5745
|
+
function Gn() {
|
|
5739
5746
|
return {
|
|
5740
5747
|
type: "definition",
|
|
5741
5748
|
identifier: "",
|
|
@@ -5744,7 +5751,7 @@ function Na(t) {
|
|
|
5744
5751
|
url: ""
|
|
5745
5752
|
};
|
|
5746
5753
|
}
|
|
5747
|
-
function
|
|
5754
|
+
function Yn() {
|
|
5748
5755
|
return {
|
|
5749
5756
|
type: "emphasis",
|
|
5750
5757
|
children: []
|
|
@@ -5768,7 +5775,7 @@ function Na(t) {
|
|
|
5768
5775
|
value: ""
|
|
5769
5776
|
};
|
|
5770
5777
|
}
|
|
5771
|
-
function
|
|
5778
|
+
function Jn() {
|
|
5772
5779
|
return {
|
|
5773
5780
|
type: "image",
|
|
5774
5781
|
title: null,
|
|
@@ -5793,7 +5800,7 @@ function Na(t) {
|
|
|
5793
5800
|
children: []
|
|
5794
5801
|
};
|
|
5795
5802
|
}
|
|
5796
|
-
function
|
|
5803
|
+
function Kn(x) {
|
|
5797
5804
|
return {
|
|
5798
5805
|
type: "listItem",
|
|
5799
5806
|
spread: x._spread,
|
|
@@ -5801,25 +5808,25 @@ function Na(t) {
|
|
|
5801
5808
|
children: []
|
|
5802
5809
|
};
|
|
5803
5810
|
}
|
|
5804
|
-
function
|
|
5811
|
+
function Xn() {
|
|
5805
5812
|
return {
|
|
5806
5813
|
type: "paragraph",
|
|
5807
5814
|
children: []
|
|
5808
5815
|
};
|
|
5809
5816
|
}
|
|
5810
|
-
function
|
|
5817
|
+
function tr() {
|
|
5811
5818
|
return {
|
|
5812
5819
|
type: "strong",
|
|
5813
5820
|
children: []
|
|
5814
5821
|
};
|
|
5815
5822
|
}
|
|
5816
|
-
function
|
|
5823
|
+
function er() {
|
|
5817
5824
|
return {
|
|
5818
5825
|
type: "text",
|
|
5819
5826
|
value: ""
|
|
5820
5827
|
};
|
|
5821
5828
|
}
|
|
5822
|
-
function
|
|
5829
|
+
function nr() {
|
|
5823
5830
|
return {
|
|
5824
5831
|
type: "thematicBreak"
|
|
5825
5832
|
};
|
|
@@ -5832,17 +5839,17 @@ function kt(t) {
|
|
|
5832
5839
|
offset: t.offset
|
|
5833
5840
|
};
|
|
5834
5841
|
}
|
|
5835
|
-
function
|
|
5842
|
+
function Wn(t, n) {
|
|
5836
5843
|
let e = -1;
|
|
5837
5844
|
for (; ++e < n.length; ) {
|
|
5838
5845
|
const r = n[e];
|
|
5839
|
-
Array.isArray(r) ?
|
|
5846
|
+
Array.isArray(r) ? Wn(t, r) : ja(t, r);
|
|
5840
5847
|
}
|
|
5841
5848
|
}
|
|
5842
|
-
function
|
|
5849
|
+
function ja(t, n) {
|
|
5843
5850
|
let e;
|
|
5844
5851
|
for (e in n)
|
|
5845
|
-
if (
|
|
5852
|
+
if (Un.call(n, e)) {
|
|
5846
5853
|
if (e === "canContainEols") {
|
|
5847
5854
|
const r = n[e];
|
|
5848
5855
|
r && t[e].push(...r);
|
|
@@ -5855,29 +5862,29 @@ function $a(t, n) {
|
|
|
5855
5862
|
}
|
|
5856
5863
|
}
|
|
5857
5864
|
}
|
|
5858
|
-
function
|
|
5865
|
+
function mn(t, n) {
|
|
5859
5866
|
throw t ? new Error(
|
|
5860
|
-
"Cannot close `" + t.type + "` (" +
|
|
5867
|
+
"Cannot close `" + t.type + "` (" + Ht({
|
|
5861
5868
|
start: t.start,
|
|
5862
5869
|
end: t.end
|
|
5863
|
-
}) + "): a different token (`" + n.type + "`, " +
|
|
5870
|
+
}) + "): a different token (`" + n.type + "`, " + Ht({
|
|
5864
5871
|
start: n.start,
|
|
5865
5872
|
end: n.end
|
|
5866
5873
|
}) + ") is open"
|
|
5867
5874
|
) : new Error(
|
|
5868
|
-
"Cannot close document, a token (`" + n.type + "`, " +
|
|
5875
|
+
"Cannot close document, a token (`" + n.type + "`, " + Ht({
|
|
5869
5876
|
start: n.start,
|
|
5870
5877
|
end: n.end
|
|
5871
5878
|
}) + ") is still open"
|
|
5872
5879
|
);
|
|
5873
5880
|
}
|
|
5874
|
-
function
|
|
5881
|
+
function Va(t) {
|
|
5875
5882
|
Object.assign(this, { Parser: (e) => {
|
|
5876
5883
|
const r = (
|
|
5877
5884
|
/** @type {Options} */
|
|
5878
5885
|
this.data("settings")
|
|
5879
5886
|
);
|
|
5880
|
-
return
|
|
5887
|
+
return Oa(
|
|
5881
5888
|
e,
|
|
5882
5889
|
Object.assign({}, r, t, {
|
|
5883
5890
|
// Note: these options are not in the readme.
|
|
@@ -5889,53 +5896,53 @@ function Ua(t) {
|
|
|
5889
5896
|
);
|
|
5890
5897
|
} });
|
|
5891
5898
|
}
|
|
5892
|
-
function
|
|
5893
|
-
return
|
|
5899
|
+
function qa(t) {
|
|
5900
|
+
return na().use(Va).use(Ml).freeze().parse(t);
|
|
5894
5901
|
}
|
|
5895
|
-
const
|
|
5902
|
+
const Ha = new RegExp(
|
|
5896
5903
|
"^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
|
|
5897
|
-
),
|
|
5904
|
+
), Na = Object.freeze(["http:", "https:", "mailto:"]), $a = (t) => {
|
|
5898
5905
|
const n = document.createElement("textarea");
|
|
5899
5906
|
return n.innerHTML = t, n.value;
|
|
5900
|
-
},
|
|
5907
|
+
}, Ua = (t) => {
|
|
5901
5908
|
if (!t.trim())
|
|
5902
5909
|
return null;
|
|
5903
|
-
let n =
|
|
5904
|
-
|
|
5910
|
+
let n = $a(t);
|
|
5911
|
+
Ha.test(n) && (n = `mailto:${n}`);
|
|
5905
5912
|
const e = n.includes(":"), r = n.startsWith("mailto:");
|
|
5906
5913
|
if (!e && !r)
|
|
5907
5914
|
return null;
|
|
5908
5915
|
try {
|
|
5909
5916
|
const i = new URL(n, window.location.origin);
|
|
5910
|
-
if (
|
|
5917
|
+
if (Na.includes(i.protocol))
|
|
5911
5918
|
return i;
|
|
5912
5919
|
} catch {
|
|
5913
5920
|
return null;
|
|
5914
5921
|
}
|
|
5915
5922
|
return null;
|
|
5916
|
-
},
|
|
5923
|
+
}, Wa = /* @__PURE__ */ Dt({
|
|
5917
5924
|
__name: "rich-text-editor-code-block",
|
|
5918
5925
|
props: {
|
|
5919
5926
|
code: {}
|
|
5920
5927
|
},
|
|
5921
5928
|
setup(t) {
|
|
5922
|
-
return (n, e) => (Z(), Ft("pre", null,
|
|
5929
|
+
return (n, e) => (Z(), Ft("pre", null, Nt(n.code), 1));
|
|
5923
5930
|
}
|
|
5924
|
-
}),
|
|
5931
|
+
}), va = /* @__PURE__ */ Dt({
|
|
5925
5932
|
__name: "rich-text-editor-inline-code",
|
|
5926
5933
|
props: {
|
|
5927
5934
|
code: {}
|
|
5928
5935
|
},
|
|
5929
5936
|
setup(t) {
|
|
5930
|
-
return (n, e) => (Z(), Ft("code", null,
|
|
5937
|
+
return (n, e) => (Z(), Ft("code", null, Nt(n.code), 1));
|
|
5931
5938
|
}
|
|
5932
|
-
}),
|
|
5939
|
+
}), Qa = /* @__PURE__ */ Dt({
|
|
5933
5940
|
__name: "rich-text-editor-link",
|
|
5934
5941
|
props: {
|
|
5935
5942
|
url: { default: "" }
|
|
5936
5943
|
},
|
|
5937
5944
|
setup(t) {
|
|
5938
|
-
return (n, e) => (Z(), pt(ht(
|
|
5945
|
+
return (n, e) => (Z(), pt(ht(fr), {
|
|
5939
5946
|
to: n.url,
|
|
5940
5947
|
external: "",
|
|
5941
5948
|
"is-not-routing": ""
|
|
@@ -5946,20 +5953,20 @@ const va = new RegExp(
|
|
|
5946
5953
|
_: 3
|
|
5947
5954
|
}, 8, ["to"]));
|
|
5948
5955
|
}
|
|
5949
|
-
}),
|
|
5950
|
-
function
|
|
5956
|
+
}), Za = {};
|
|
5957
|
+
function Ga(t, n) {
|
|
5951
5958
|
return Z(), Ft("table", null, [
|
|
5952
5959
|
Tt(t.$slots, "default", {}, () => [
|
|
5953
|
-
|
|
5960
|
+
$t("thead", null, [
|
|
5954
5961
|
Tt(t.$slots, "head")
|
|
5955
5962
|
]),
|
|
5956
|
-
|
|
5963
|
+
$t("tbody", null, [
|
|
5957
5964
|
Tt(t.$slots, "body")
|
|
5958
5965
|
])
|
|
5959
5966
|
])
|
|
5960
5967
|
]);
|
|
5961
5968
|
}
|
|
5962
|
-
const
|
|
5969
|
+
const Ya = /* @__PURE__ */ Fe(Za, [["render", Ga]]), Ja = { key: 1 }, Ka = /* @__PURE__ */ Dt({
|
|
5963
5970
|
__name: "rich-text-editor-list-item",
|
|
5964
5971
|
props: {
|
|
5965
5972
|
checked: { type: Boolean, default: null }
|
|
@@ -5967,9 +5974,9 @@ const eo = /* @__PURE__ */ Fe(Xa, [["render", to]]), no = { key: 1 }, ro = /* @_
|
|
|
5967
5974
|
setup(t) {
|
|
5968
5975
|
const n = t, e = wt(n.checked), r = xt(() => n.checked !== null), i = xt(() => r.value ? { listStyleType: "none", marginLeft: "-20px" } : {});
|
|
5969
5976
|
return (l, u) => (Z(), Ft("li", {
|
|
5970
|
-
style:
|
|
5977
|
+
style: ir(i.value)
|
|
5971
5978
|
}, [
|
|
5972
|
-
r.value ? (Z(), pt(
|
|
5979
|
+
r.value ? (Z(), pt(hr, {
|
|
5973
5980
|
key: 0,
|
|
5974
5981
|
modelValue: e.value,
|
|
5975
5982
|
"onUpdate:modelValue": u[0] || (u[0] = (a) => e.value = a)
|
|
@@ -5978,7 +5985,7 @@ const eo = /* @__PURE__ */ Fe(Xa, [["render", to]]), no = { key: 1 }, ro = /* @_
|
|
|
5978
5985
|
Tt(l.$slots, "default")
|
|
5979
5986
|
]),
|
|
5980
5987
|
_: 3
|
|
5981
|
-
}, 8, ["modelValue"])) : (Z(), Ft("div",
|
|
5988
|
+
}, 8, ["modelValue"])) : (Z(), Ft("div", Ja, [
|
|
5982
5989
|
Tt(l.$slots, "default")
|
|
5983
5990
|
]))
|
|
5984
5991
|
], 4));
|
|
@@ -5987,14 +5994,11 @@ const eo = /* @__PURE__ */ Fe(Xa, [["render", to]]), no = { key: 1 }, ro = /* @_
|
|
|
5987
5994
|
function Bt(t, n) {
|
|
5988
5995
|
return { [t]: n };
|
|
5989
5996
|
}
|
|
5990
|
-
const
|
|
5991
|
-
var n;
|
|
5992
|
-
return (n = t.value) == null ? void 0 : n.toString();
|
|
5993
|
-
}, io = Object.freeze({
|
|
5997
|
+
const vt = ({ astNode: t }) => t.value?.toString(), Xa = Object.freeze({
|
|
5994
5998
|
// Render HTML & Image nodes as text (protection layer 4)
|
|
5995
|
-
html:
|
|
5996
|
-
image:
|
|
5997
|
-
}),
|
|
5999
|
+
html: vt,
|
|
6000
|
+
image: vt
|
|
6001
|
+
}), to = Object.freeze({
|
|
5998
6002
|
root: ({ childrenVNodes: t }) => Q(
|
|
5999
6003
|
"div",
|
|
6000
6004
|
{
|
|
@@ -6002,8 +6006,8 @@ const Qt = ({ astNode: t }) => {
|
|
|
6002
6006
|
},
|
|
6003
6007
|
t
|
|
6004
6008
|
),
|
|
6005
|
-
text:
|
|
6006
|
-
html:
|
|
6009
|
+
text: vt,
|
|
6010
|
+
html: vt,
|
|
6007
6011
|
break: () => Q("br"),
|
|
6008
6012
|
delete: ({ childrenVNodes: t }) => Q("del", t),
|
|
6009
6013
|
emphasis: ({ childrenVNodes: t }) => Q("em", t),
|
|
@@ -6011,12 +6015,11 @@ const Qt = ({ astNode: t }) => {
|
|
|
6011
6015
|
paragraph: ({ childrenVNodes: t }) => Q("p", t),
|
|
6012
6016
|
heading: ({ astNode: t, childrenVNodes: n }) => Q(`h${t.depth}`, n),
|
|
6013
6017
|
blockquote: ({ childrenVNodes: t }) => Q("blockquote", t),
|
|
6014
|
-
code: ({ astNode: t }) => Q(
|
|
6015
|
-
inlineCode: ({ astNode: t }) => Q(
|
|
6018
|
+
code: ({ astNode: t }) => Q(Wa, { ...Bt("code", t.value) }),
|
|
6019
|
+
inlineCode: ({ astNode: t }) => Q(va, { ...Bt("code", t.value) }),
|
|
6016
6020
|
link: ({ astNode: t, childrenVNodes: n }) => {
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
return Q(Ka, { ...Bt("url", e) }, n);
|
|
6021
|
+
const e = Ua(t.url)?.toString() || "";
|
|
6022
|
+
return Q(Qa, { ...Bt("url", e) }, n);
|
|
6020
6023
|
},
|
|
6021
6024
|
list: ({ astNode: t, childrenVNodes: n }) => Q(
|
|
6022
6025
|
t.ordered ? "ol" : "ul",
|
|
@@ -6027,30 +6030,30 @@ const Qt = ({ astNode: t }) => {
|
|
|
6027
6030
|
n
|
|
6028
6031
|
),
|
|
6029
6032
|
listItem: ({ astNode: t, childrenVNodes: n }) => Q(
|
|
6030
|
-
|
|
6033
|
+
Ka,
|
|
6031
6034
|
{ ...Bt("checked", t.checked) },
|
|
6032
6035
|
n
|
|
6033
6036
|
),
|
|
6034
6037
|
table: ({ childrenVNodes: t }) => {
|
|
6035
6038
|
const [n, ...e] = t;
|
|
6036
|
-
return Q(
|
|
6039
|
+
return Q(Ya, {}, { ...{
|
|
6037
6040
|
head: () => [n],
|
|
6038
6041
|
body: () => e
|
|
6039
6042
|
} });
|
|
6040
6043
|
},
|
|
6041
6044
|
tableRow: ({ childrenVNodes: t }) => Q("tr", t),
|
|
6042
6045
|
tableCell: ({ astNode: t, childrenVNodes: n }) => Q(t.position.start.line === 1 ? "th" : "td", n)
|
|
6043
|
-
}),
|
|
6044
|
-
...
|
|
6045
|
-
...
|
|
6046
|
+
}), eo = xt(() => ({
|
|
6047
|
+
...to,
|
|
6048
|
+
...Xa
|
|
6046
6049
|
}));
|
|
6047
|
-
function
|
|
6050
|
+
function vn(t) {
|
|
6048
6051
|
if (!t)
|
|
6049
6052
|
return null;
|
|
6050
|
-
const n =
|
|
6053
|
+
const n = eo.value[t.type];
|
|
6051
6054
|
if (!n)
|
|
6052
6055
|
throw new Error(`Unsupported node type: "${t.type}"`);
|
|
6053
|
-
const e = (t.children || []).map((r) =>
|
|
6056
|
+
const e = (t.children || []).map((r) => vn(r));
|
|
6054
6057
|
return n({
|
|
6055
6058
|
// AST Node from the "unified.parse" method
|
|
6056
6059
|
astNode: t,
|
|
@@ -6058,7 +6061,7 @@ function Kn(t) {
|
|
|
6058
6061
|
childrenVNodes: e
|
|
6059
6062
|
});
|
|
6060
6063
|
}
|
|
6061
|
-
const
|
|
6064
|
+
const no = {
|
|
6062
6065
|
props: {
|
|
6063
6066
|
node: {
|
|
6064
6067
|
type: Object,
|
|
@@ -6066,25 +6069,16 @@ const ao = {
|
|
|
6066
6069
|
}
|
|
6067
6070
|
},
|
|
6068
6071
|
setup(t) {
|
|
6069
|
-
return () =>
|
|
6070
|
-
}
|
|
6071
|
-
},
|
|
6072
|
-
"en-US": {
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
errorProcessingMarkdown: "Markdown処理中にエラーが発生しました"
|
|
6080
|
-
},
|
|
6081
|
-
"pt-BR": {
|
|
6082
|
-
errorProcessingMarkdown: "Erro ao processar markdown"
|
|
6083
|
-
}
|
|
6084
|
-
}, oo = ["aria-disabled"], so = { class: "b-rich-text-editor__toolbar" }, co = ["id"], fo = {
|
|
6085
|
-
i18n: { messages: Xn }
|
|
6086
|
-
}, ho = /* @__PURE__ */ Dt({
|
|
6087
|
-
...fo,
|
|
6072
|
+
return () => vn(t.node);
|
|
6073
|
+
}
|
|
6074
|
+
}, Qn = {
|
|
6075
|
+
"en-US": { ariaLabelFallback: "Rich text editor", errorProcessingMarkdown: "Error processing markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6076
|
+
"ja-JP": { errorProcessingMarkdown: "Markdown処理中にエラーが発生しました" },
|
|
6077
|
+
"pt-BR": { errorProcessingMarkdown: "Erro ao processar markdown" }
|
|
6078
|
+
}, ro = ["aria-disabled"], io = { class: "b-rich-text-editor__toolbar" }, uo = ["id"], lo = {
|
|
6079
|
+
i18n: { messages: Qn }
|
|
6080
|
+
}, ao = /* @__PURE__ */ Dt({
|
|
6081
|
+
...lo,
|
|
6088
6082
|
__name: "rich-text-editor",
|
|
6089
6083
|
props: {
|
|
6090
6084
|
description: { default: null },
|
|
@@ -6099,7 +6093,7 @@ const ao = {
|
|
|
6099
6093
|
},
|
|
6100
6094
|
emits: ["input"],
|
|
6101
6095
|
setup(t, { emit: n }) {
|
|
6102
|
-
const { t: e } =
|
|
6096
|
+
const { t: e } = pr({ messages: Qn }), r = Re("rich-text-editor-error"), i = Re("rich-text-editor-description"), l = ur(), u = t, a = n, c = wt(u.mode), s = wt(u.value), f = wt(null), o = wt(null), p = xt(() => [
|
|
6103
6097
|
{
|
|
6104
6098
|
label: e("visual"),
|
|
6105
6099
|
value: "visual",
|
|
@@ -6115,7 +6109,7 @@ const ao = {
|
|
|
6115
6109
|
"b-rich-text-editor__container--error": u.errorMessage
|
|
6116
6110
|
})), d = xt(() => ({
|
|
6117
6111
|
"b-rich-text-editor__renderer--disabled": u.disabled
|
|
6118
|
-
})), w = xt(() => e("ariaLabelFallback")), C = wt(l["aria-label"]), b =
|
|
6112
|
+
})), w = xt(() => e("ariaLabelFallback")), C = wt(l["aria-label"]), b = mr({
|
|
6119
6113
|
ariaLabel: C.value,
|
|
6120
6114
|
defaultFallback: w
|
|
6121
6115
|
}), I = xt(
|
|
@@ -6123,7 +6117,7 @@ const ao = {
|
|
|
6123
6117
|
);
|
|
6124
6118
|
function F() {
|
|
6125
6119
|
try {
|
|
6126
|
-
f.value =
|
|
6120
|
+
f.value = qa(s.value), o.value = null;
|
|
6127
6121
|
} catch (z) {
|
|
6128
6122
|
f.value = null, o.value = z.message.split(":")[1];
|
|
6129
6123
|
}
|
|
@@ -6145,26 +6139,26 @@ const ao = {
|
|
|
6145
6139
|
"rich-text": ""
|
|
6146
6140
|
}, {
|
|
6147
6141
|
default: Pt(() => [
|
|
6148
|
-
z.hideLabel ?
|
|
6142
|
+
z.hideLabel ? Xt("", !0) : (Z(), pt(ht(gr), {
|
|
6149
6143
|
key: 0,
|
|
6150
6144
|
label: z.label,
|
|
6151
6145
|
"tooltip-text": z.tooltipText,
|
|
6152
6146
|
required: z.required
|
|
6153
6147
|
}, null, 8, ["label", "tooltip-text", "required"])),
|
|
6154
|
-
|
|
6148
|
+
$t("div", lr(ht(l), {
|
|
6155
6149
|
class: ["b-rich-text-editor__container", h.value],
|
|
6156
6150
|
"data-testid": "rich-text-editor-container",
|
|
6157
6151
|
"aria-disabled": z.disabled
|
|
6158
6152
|
}), [
|
|
6159
|
-
|
|
6160
|
-
Pe(
|
|
6153
|
+
$t("div", io, [
|
|
6154
|
+
Pe(sr, {
|
|
6161
6155
|
modelValue: c.value,
|
|
6162
6156
|
"onUpdate:modelValue": y[0] || (y[0] = (_) => c.value = _),
|
|
6163
|
-
items:
|
|
6157
|
+
items: p.value
|
|
6164
6158
|
}, null, 8, ["modelValue", "items"])
|
|
6165
6159
|
]),
|
|
6166
|
-
(Z(), pt(
|
|
6167
|
-
c.value === "markdown" ? (Z(), pt(
|
|
6160
|
+
(Z(), pt(ar, null, [
|
|
6161
|
+
c.value === "markdown" ? (Z(), pt(br, {
|
|
6168
6162
|
key: 0,
|
|
6169
6163
|
value: s.value,
|
|
6170
6164
|
role: "textbox",
|
|
@@ -6174,27 +6168,27 @@ const ao = {
|
|
|
6174
6168
|
"aria-describedby": I.value,
|
|
6175
6169
|
"aria-required": z.required,
|
|
6176
6170
|
onInput: L
|
|
6177
|
-
}, null, 8, ["value", "disabled", "aria-label", "aria-describedby", "aria-required"])) : o.value ? (Z(), pt(
|
|
6171
|
+
}, null, 8, ["value", "disabled", "aria-label", "aria-describedby", "aria-required"])) : o.value ? (Z(), pt(cr, {
|
|
6178
6172
|
key: 1,
|
|
6179
6173
|
type: "critical"
|
|
6180
6174
|
}, {
|
|
6181
6175
|
default: Pt(() => [
|
|
6182
|
-
Me(
|
|
6176
|
+
Me(Nt(ht(e)("errorProcessingMarkdown", { value: o.value })), 1)
|
|
6183
6177
|
]),
|
|
6184
6178
|
_: 1
|
|
6185
|
-
})) : (Z(), pt(ht(
|
|
6179
|
+
})) : (Z(), pt(ht(no), {
|
|
6186
6180
|
key: 2,
|
|
6187
6181
|
node: f.value,
|
|
6188
|
-
class:
|
|
6182
|
+
class: or(["b-rich-text-editor__renderer", d.value])
|
|
6189
6183
|
}, null, 8, ["node", "class"]))
|
|
6190
6184
|
], 1024))
|
|
6191
|
-
], 16,
|
|
6192
|
-
z.errorMessage ? (Z(), pt(ht(
|
|
6185
|
+
], 16, ro),
|
|
6186
|
+
z.errorMessage ? (Z(), pt(ht(dr), {
|
|
6193
6187
|
key: 1,
|
|
6194
6188
|
id: ht(r),
|
|
6195
6189
|
"error-message": z.errorMessage,
|
|
6196
6190
|
class: "b-rich-text-editor__error-message"
|
|
6197
|
-
}, null, 8, ["id", "error-message"])) :
|
|
6191
|
+
}, null, 8, ["id", "error-message"])) : Xt("", !0),
|
|
6198
6192
|
z.description ? (Z(), Ft("span", {
|
|
6199
6193
|
key: 2,
|
|
6200
6194
|
id: ht(i),
|
|
@@ -6205,17 +6199,17 @@ const ao = {
|
|
|
6205
6199
|
variant: "body"
|
|
6206
6200
|
}, {
|
|
6207
6201
|
default: Pt(() => [
|
|
6208
|
-
Me(
|
|
6202
|
+
Me(Nt(z.description), 1)
|
|
6209
6203
|
]),
|
|
6210
6204
|
_: 1
|
|
6211
6205
|
})
|
|
6212
|
-
], 8,
|
|
6206
|
+
], 8, uo)) : Xt("", !0)
|
|
6213
6207
|
]),
|
|
6214
6208
|
_: 1
|
|
6215
6209
|
}));
|
|
6216
6210
|
}
|
|
6217
|
-
}),
|
|
6211
|
+
}), yo = /* @__PURE__ */ Fe(ao, [["__scopeId", "data-v-ffb09ccf"]]);
|
|
6218
6212
|
export {
|
|
6219
|
-
|
|
6213
|
+
yo as r
|
|
6220
6214
|
};
|
|
6221
|
-
//# sourceMappingURL=rich-text-editor.
|
|
6215
|
+
//# sourceMappingURL=rich-text-editor.DLMiT4f5.js.map
|