@adyen/bento-vue3 1.89.2 → 1.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +767 -522
- 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/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/input-time.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
- package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
- package/dist/chunks/action-bar.BPS3wPde.js +336 -0
- package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.BPS3wPde.js.map} +1 -1
- package/dist/chunks/ai-tag.D7shWB_x.js +137 -0
- package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.D7shWB_x.js.map} +1 -1
- package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
- package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
- package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
- package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
- package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BxcS7Pao.js} +132 -125
- package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BxcS7Pao.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.BKdNXYgU.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.BKdNXYgU.js.map} +1 -1
- package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.DLiM8KZL.js} +203 -189
- package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.DLiM8KZL.js.map} +1 -1
- package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.qm-kFNQv.js} +460 -428
- package/dist/chunks/calendar.qm-kFNQv.js.map +1 -0
- package/dist/chunks/card.BEChcEqg.js +223 -0
- package/dist/chunks/{card.CoxQ_L0w.js.map → card.BEChcEqg.js.map} +1 -1
- package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.i3W8WO-7.js} +4 -4
- package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.i3W8WO-7.js.map} +1 -1
- package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BPrymcRl.js} +68 -61
- package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BPrymcRl.js.map} +1 -1
- package/dist/chunks/chip.DFldnqfz.js +72 -0
- package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
- package/dist/chunks/{click-outside.BPylIosK.js → click-outside.B0whuTUU.js} +2 -2
- package/dist/chunks/{click-outside.BPylIosK.js.map → click-outside.B0whuTUU.js.map} +1 -1
- package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BG5ZmCrb.js} +113 -106
- package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BG5ZmCrb.js.map} +1 -1
- package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.DqRpF9bh.js} +2 -2
- package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.DqRpF9bh.js.map} +1 -1
- package/dist/chunks/copy.CL893i9-.js +114 -0
- package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
- package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
- package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
- package/dist/chunks/country.types.6a7xxZIR.js +26 -0
- package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
- package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.C7mfUXOl.js} +3 -3
- package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.C7mfUXOl.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.B50DIXjK.js} +3 -3
- package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.B50DIXjK.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.CKdZb6EN.js} +4 -4
- package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.CKdZb6EN.js.map} +1 -1
- package/dist/chunks/data-grid.DvMe72LK.js +4247 -0
- package/dist/chunks/data-grid.DvMe72LK.js.map +1 -0
- package/dist/chunks/date-picker.CidHad1p.js +269 -0
- package/dist/chunks/date-picker.CidHad1p.js.map +1 -0
- package/dist/chunks/date-range-picker.c5OwESTS.js +1027 -0
- package/dist/chunks/date-range-picker.c5OwESTS.js.map +1 -0
- package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
- package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
- package/dist/chunks/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
- package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
- package/dist/chunks/draggable-handle.CySRx1tb.js +171 -0
- package/dist/chunks/draggable-handle.CySRx1tb.js.map +1 -0
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.wcJ6Mgqe.js} +5 -5
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.wcJ6Mgqe.js.map} +1 -1
- package/dist/chunks/dropdown.DHoL50gV.js +1214 -0
- package/dist/chunks/dropdown.DHoL50gV.js.map +1 -0
- package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
- package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
- package/dist/chunks/field-label.DZYFjFgr.js +111 -0
- package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
- package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.Dbg3vfZ_.js} +606 -584
- package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.Dbg3vfZ_.js.map} +1 -1
- package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.Dt-cU3zy.js} +1559 -1471
- package/dist/chunks/filter-bar.Dt-cU3zy.js.map +1 -0
- package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
- package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
- package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.CYBdKDPo.js} +2 -2
- package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.CYBdKDPo.js.map} +1 -1
- package/dist/chunks/form-layout-title.B3ePK3yi.js +253 -0
- package/dist/chunks/form-layout-title.B3ePK3yi.js.map +1 -0
- package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.COak4D8-.js} +98 -84
- package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.COak4D8-.js.map} +1 -1
- package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.DqioajcO.js} +1091 -1070
- package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.DqioajcO.js.map} +1 -1
- package/dist/chunks/{header.o-7SyHtU.js → header.C21yzWrk.js} +3 -3
- package/dist/chunks/{header.o-7SyHtU.js.map → header.C21yzWrk.js.map} +1 -1
- package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
- package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
- package/dist/chunks/input-field-password.DyUphhxB.js +353 -0
- package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.DyUphhxB.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.BXVaC5ra.js} +12 -5
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.BXVaC5ra.js.map} +1 -1
- package/dist/chunks/input-field.DkUFvIWt.js +326 -0
- package/dist/chunks/input-field.DkUFvIWt.js.map +1 -0
- package/dist/chunks/input-time.WI_qdwJc.js +122 -0
- package/dist/chunks/input-time.WI_qdwJc.js.map +1 -0
- package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
- package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
- package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
- package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.c6QphYQo.js} +54 -47
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.c6QphYQo.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js} +48 -41
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map} +1 -1
- package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
- package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
- package/dist/chunks/{pagination.dpVc6Yt0.js → pagination.Cu85Lqms.js} +150 -138
- package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.Cu85Lqms.js.map} +1 -1
- package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
- package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
- package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.CfMr1fmW.js} +4 -4
- package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.CfMr1fmW.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Bf9EWzNk.js} +421 -413
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Bf9EWzNk.js.map} +1 -1
- package/dist/chunks/search-bar.p6kHCCvT.js +114 -0
- package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.p6kHCCvT.js.map} +1 -1
- package/dist/chunks/secondary-nav.CaxiyVaO.js +285 -0
- package/dist/chunks/secondary-nav.CaxiyVaO.js.map +1 -0
- package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
- package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
- package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.58XZj_SJ.js} +3 -3
- package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.58XZj_SJ.js.map} +1 -1
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.CAVhSs-O.js} +56 -49
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.CAVhSs-O.js.map} +1 -1
- package/dist/chunks/step.AsX2jAeL.js +268 -0
- package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
- package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
- package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.CDithi8M.js} +5 -5
- package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.CDithi8M.js.map} +1 -1
- package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
- package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
- package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
- package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
- package/dist/chunks/textarea.JGXAlpx9.js +257 -0
- package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.JGXAlpx9.js.map} +1 -1
- package/dist/chunks/timeline-item.BNFPpQz1.js +433 -0
- package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.BNFPpQz1.js.map} +1 -1
- package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
- package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
- package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
- package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js} +120 -113
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.Bx8uuky9.js} +436 -410
- package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +1 -0
- package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
- package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BOuXpRb-.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BOuXpRb-.js.map} +1 -1
- package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
- package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- 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/draggable.js +1383 -0
- package/dist/draggable.js.map +1 -0
- package/dist/dropdown.js +10 -11
- package/dist/dropdown.js.map +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.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 +284 -279
- 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/input-time.js +5 -0
- package/dist/input-time.js.map +1 -0
- package/dist/inspector.js +1 -1
- package/dist/internal.js +26 -25
- package/dist/internal.js.map +1 -1
- package/dist/list.js +1 -1
- 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 +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/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/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -10
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
- package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
- package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
- package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
- package/dist/chunks/calendar.DcCqkSNJ.js.map +0 -1
- package/dist/chunks/card.CoxQ_L0w.js +0 -216
- package/dist/chunks/chip.CdgpQyXN.js +0 -65
- package/dist/chunks/copy.C2kQ1PbI.js +0 -107
- package/dist/chunks/country.types.DjpMGz7a.js +0 -19
- package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
- package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
- package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
- package/dist/chunks/date-picker.dlzZ_-5f.js.map +0 -1
- package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
- package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
- package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js +0 -408
- package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js.map +0 -1
- package/dist/chunks/dropdown.MhmX1P9o.js +0 -799
- package/dist/chunks/dropdown.MhmX1P9o.js.map +0 -1
- package/dist/chunks/error-message.DCgo8q20.js +0 -143
- package/dist/chunks/error-message.DCgo8q20.js.map +0 -1
- package/dist/chunks/filter-bar.CkAjLQol.js.map +0 -1
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
- package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
- package/dist/chunks/form-layout-title.DW5Kg1rh.js.map +0 -1
- package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
- package/dist/chunks/input-field.CfU0ZKtL.js +0 -315
- package/dist/chunks/input-field.CfU0ZKtL.js.map +0 -1
- package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
- package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
- package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
- package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
- package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
- package/dist/chunks/step.BlwoLfdw.js +0 -259
- package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
- package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
- package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
- package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.ClEJRFAd.js.map +0 -1
- package/dist/draggable-handle.js +0 -155
- package/dist/draggable-handle.js.map +0 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
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 sr } from "./segmented-control.
|
|
4
|
-
import { B as cr } from "./alert.
|
|
3
|
+
import { B as sr } from "./segmented-control.CQWOO1-J.js";
|
|
4
|
+
import { B as cr } from "./alert.CFWN2E0b.js";
|
|
5
5
|
import { _ as Fe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import { B as fr } from "./link.D6D6YGsN.js";
|
|
7
|
-
import { B as hr } from "./checkbox.
|
|
7
|
+
import { B as hr } from "./checkbox.BPrymcRl.js";
|
|
8
8
|
import { u as pr } from "./index.B875RXHM.js";
|
|
9
9
|
import { u as mr } from "./aria-label.CaUURpnB.js";
|
|
10
10
|
import { g as Re } from "./generate-uid.DBWe4g6T.js";
|
|
11
|
-
import { F as
|
|
11
|
+
import { F as dr } from "./field-label.DZYFjFgr.js";
|
|
12
|
+
import { E as gr } from "./error-message.Dyvrw6ZB.js";
|
|
12
13
|
import "../assets/rich-text-editor.css";
|
|
13
14
|
const kr = ["disabled"], xr = /* @__PURE__ */ Dt({
|
|
14
15
|
__name: "rich-text-editor-content-area",
|
|
@@ -54,7 +55,7 @@ function tt(t, n) {
|
|
|
54
55
|
return t.length > 0 ? (X(t, t.length, 0, n), t) : n;
|
|
55
56
|
}
|
|
56
57
|
const je = {}.hasOwnProperty;
|
|
57
|
-
function
|
|
58
|
+
function dn(t) {
|
|
58
59
|
const n = {};
|
|
59
60
|
let e = -1;
|
|
60
61
|
for (; ++e < t.length; )
|
|
@@ -86,14 +87,14 @@ function wr(t, n) {
|
|
|
86
87
|
X(t, 0, 0, r);
|
|
87
88
|
}
|
|
88
89
|
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
|
|
90
|
+
function vt(t) {
|
|
90
91
|
return (
|
|
91
92
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
92
93
|
// character DEL
|
|
93
94
|
t !== null && (t < 32 || t === 127)
|
|
94
95
|
);
|
|
95
96
|
}
|
|
96
|
-
const
|
|
97
|
+
const de = bt(/\d/), Cr = bt(/[\dA-Fa-f]/), Ar = bt(/[!-/:-@[-`{-~]/);
|
|
97
98
|
function T(t) {
|
|
98
99
|
return t !== null && t < -2;
|
|
99
100
|
}
|
|
@@ -111,9 +112,9 @@ function bt(t) {
|
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
const Er = {
|
|
114
|
-
tokenize:
|
|
115
|
+
tokenize: _r,
|
|
115
116
|
partial: !0
|
|
116
|
-
},
|
|
117
|
+
}, gn = {
|
|
117
118
|
tokenize: Br,
|
|
118
119
|
partial: !0
|
|
119
120
|
}, kn = {
|
|
@@ -129,7 +130,7 @@ const Er = {
|
|
|
129
130
|
tokenize: Dr,
|
|
130
131
|
previous: wn
|
|
131
132
|
}, yn = {
|
|
132
|
-
tokenize:
|
|
133
|
+
tokenize: Lr,
|
|
133
134
|
previous: Fn
|
|
134
135
|
}, mt = {
|
|
135
136
|
tokenize: Tr,
|
|
@@ -153,10 +154,10 @@ function Tr(t, n, e) {
|
|
|
153
154
|
let i, l;
|
|
154
155
|
return u;
|
|
155
156
|
function u(o) {
|
|
156
|
-
return !
|
|
157
|
+
return !ge(o) || !Sn.call(r, r.previous) || Se(r.events) ? e(o) : (t.enter("literalAutolink"), t.enter("literalAutolinkEmail"), a(o));
|
|
157
158
|
}
|
|
158
159
|
function a(o) {
|
|
159
|
-
return
|
|
160
|
+
return ge(o) ? (t.consume(o), a) : o === 64 ? (t.consume(o), c) : e(o);
|
|
160
161
|
}
|
|
161
162
|
function c(o) {
|
|
162
163
|
return o === 46 ? t.check(
|
|
@@ -178,7 +179,7 @@ function Dr(t, n, e) {
|
|
|
178
179
|
function i(u) {
|
|
179
180
|
return u !== 87 && u !== 119 || !wn.call(r, r.previous) || Se(r.events) ? e(u) : (t.enter("literalAutolink"), t.enter("literalAutolinkWww"), t.check(
|
|
180
181
|
Er,
|
|
181
|
-
t.attempt(
|
|
182
|
+
t.attempt(gn, t.attempt(kn, l), e),
|
|
182
183
|
e
|
|
183
184
|
)(u));
|
|
184
185
|
}
|
|
@@ -186,7 +187,7 @@ function Dr(t, n, e) {
|
|
|
186
187
|
return t.exit("literalAutolinkWww"), t.exit("literalAutolink"), n(u);
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
+
function Lr(t, n, e) {
|
|
190
191
|
const r = this;
|
|
191
192
|
let i = "", l = !1;
|
|
192
193
|
return u;
|
|
@@ -207,13 +208,13 @@ function _r(t, n, e) {
|
|
|
207
208
|
return o === 47 ? (t.consume(o), l ? s : (l = !0, c)) : e(o);
|
|
208
209
|
}
|
|
209
210
|
function s(o) {
|
|
210
|
-
return o === null ||
|
|
211
|
+
return o === null || vt(o) || V(o) || St(o) || Qt(o) ? e(o) : t.attempt(gn, t.attempt(kn, f), e)(o);
|
|
211
212
|
}
|
|
212
213
|
function f(o) {
|
|
213
214
|
return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), n(o);
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
|
-
function
|
|
217
|
+
function _r(t, n, e) {
|
|
217
218
|
let r = 0;
|
|
218
219
|
return i;
|
|
219
220
|
function i(u) {
|
|
@@ -281,9 +282,9 @@ function Fn(t) {
|
|
|
281
282
|
return !G(t);
|
|
282
283
|
}
|
|
283
284
|
function Sn(t) {
|
|
284
|
-
return !(t === 47 ||
|
|
285
|
+
return !(t === 47 || ge(t));
|
|
285
286
|
}
|
|
286
|
-
function
|
|
287
|
+
function ge(t) {
|
|
287
288
|
return t === 43 || t === 45 || t === 46 || t === 95 || J(t);
|
|
288
289
|
}
|
|
289
290
|
function Se(t) {
|
|
@@ -301,7 +302,7 @@ function Se(t) {
|
|
|
301
302
|
}
|
|
302
303
|
return t.length > 0 && !e && (t[t.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), e;
|
|
303
304
|
}
|
|
304
|
-
function
|
|
305
|
+
function Ut(t) {
|
|
305
306
|
if (t === null || V(t) || St(t))
|
|
306
307
|
return 1;
|
|
307
308
|
if (Qt(t))
|
|
@@ -380,7 +381,7 @@ function Rr(t, n) {
|
|
|
380
381
|
return t;
|
|
381
382
|
}
|
|
382
383
|
function jr(t, n) {
|
|
383
|
-
const e = this.parser.constructs.attentionMarkers.null, r = this.previous, i =
|
|
384
|
+
const e = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Ut(r);
|
|
384
385
|
let l;
|
|
385
386
|
return u;
|
|
386
387
|
function u(c) {
|
|
@@ -389,7 +390,7 @@ function jr(t, n) {
|
|
|
389
390
|
function a(c) {
|
|
390
391
|
if (c === l)
|
|
391
392
|
return t.consume(c), a;
|
|
392
|
-
const s = t.exit("attentionSequence"), f =
|
|
393
|
+
const s = t.exit("attentionSequence"), f = Ut(c), o = !f || f === 2 && i || e.includes(c), p = !i || i === 2 && f || e.includes(r);
|
|
393
394
|
return s._open = !!(l === 42 ? o : o && (i || !p)), s._close = !!(l === 42 ? p : p && (f || !o)), n(c);
|
|
394
395
|
}
|
|
395
396
|
}
|
|
@@ -416,7 +417,7 @@ function qr(t, n, e) {
|
|
|
416
417
|
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
418
|
}
|
|
418
419
|
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 ||
|
|
420
|
+
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 || vt(h) ? e(h) : (t.consume(h), c);
|
|
420
421
|
}
|
|
421
422
|
function s(h) {
|
|
422
423
|
return h === 64 ? (t.consume(h), f) : Sr(h) ? (t.consume(h), s) : e(h);
|
|
@@ -429,8 +430,8 @@ function qr(t, n, e) {
|
|
|
429
430
|
}
|
|
430
431
|
function p(h) {
|
|
431
432
|
if ((h === 45 || J(h)) && r++ < 63) {
|
|
432
|
-
const
|
|
433
|
-
return t.consume(h),
|
|
433
|
+
const g = h === 45 ? p : o;
|
|
434
|
+
return t.consume(h), g;
|
|
434
435
|
}
|
|
435
436
|
return e(h);
|
|
436
437
|
}
|
|
@@ -465,7 +466,7 @@ const Cn = {
|
|
|
465
466
|
continuation: {
|
|
466
467
|
tokenize: $r
|
|
467
468
|
},
|
|
468
|
-
exit:
|
|
469
|
+
exit: vr
|
|
469
470
|
};
|
|
470
471
|
function Nr(t, n, e) {
|
|
471
472
|
const r = this;
|
|
@@ -498,14 +499,14 @@ function $r(t, n, e) {
|
|
|
498
499
|
return t.attempt(Cn, n, e)(u);
|
|
499
500
|
}
|
|
500
501
|
}
|
|
501
|
-
function
|
|
502
|
+
function vr(t) {
|
|
502
503
|
t.exit("blockQuote");
|
|
503
504
|
}
|
|
504
505
|
const An = {
|
|
505
506
|
name: "characterEscape",
|
|
506
|
-
tokenize:
|
|
507
|
+
tokenize: Ur
|
|
507
508
|
};
|
|
508
|
-
function
|
|
509
|
+
function Ur(t, n, e) {
|
|
509
510
|
return r;
|
|
510
511
|
function r(l) {
|
|
511
512
|
return t.enter("characterEscape"), t.enter("escapeMarker"), t.consume(l), t.exit("escapeMarker"), i;
|
|
@@ -523,9 +524,9 @@ function Ce(t) {
|
|
|
523
524
|
}
|
|
524
525
|
const En = {
|
|
525
526
|
name: "characterReference",
|
|
526
|
-
tokenize:
|
|
527
|
+
tokenize: Wr
|
|
527
528
|
};
|
|
528
|
-
function
|
|
529
|
+
function Wr(t, n, e) {
|
|
529
530
|
const r = this;
|
|
530
531
|
let i = 0, l, u;
|
|
531
532
|
return a;
|
|
@@ -536,7 +537,7 @@ function vr(t, n, e) {
|
|
|
536
537
|
return o === 35 ? (t.enter("characterReferenceMarkerNumeric"), t.consume(o), t.exit("characterReferenceMarkerNumeric"), s) : (t.enter("characterReferenceValue"), l = 31, u = J, f(o));
|
|
537
538
|
}
|
|
538
539
|
function s(o) {
|
|
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 =
|
|
540
|
+
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 = de, f(o));
|
|
540
541
|
}
|
|
541
542
|
function f(o) {
|
|
542
543
|
if (o === 59 && i) {
|
|
@@ -565,14 +566,14 @@ function Qr(t, n, e) {
|
|
|
565
566
|
return s(y);
|
|
566
567
|
}
|
|
567
568
|
function s(y) {
|
|
568
|
-
const
|
|
569
|
-
return l =
|
|
569
|
+
const L = r.events[r.events.length - 1];
|
|
570
|
+
return l = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, a = y, t.enter("codeFenced"), t.enter("codeFencedFence"), t.enter("codeFencedFenceSequence"), f(y);
|
|
570
571
|
}
|
|
571
572
|
function f(y) {
|
|
572
573
|
return y === a ? (u++, t.consume(y), f) : u < 3 ? e(y) : (t.exit("codeFencedFenceSequence"), B(y) ? P(t, o, "whitespace")(y) : o(y));
|
|
573
574
|
}
|
|
574
575
|
function o(y) {
|
|
575
|
-
return y === null || T(y) ? (t.exit("codeFencedFence"), r.interrupt ? n(y) : t.check(He, w,
|
|
576
|
+
return y === null || T(y) ? (t.exit("codeFencedFence"), r.interrupt ? n(y) : t.check(He, w, _)(y)) : (t.enter("codeFencedFenceInfo"), t.enter("chunkString", {
|
|
576
577
|
contentType: "string"
|
|
577
578
|
}), p(y));
|
|
578
579
|
}
|
|
@@ -582,13 +583,13 @@ function Qr(t, n, e) {
|
|
|
582
583
|
function h(y) {
|
|
583
584
|
return y === null || T(y) ? o(y) : (t.enter("codeFencedFenceMeta"), t.enter("chunkString", {
|
|
584
585
|
contentType: "string"
|
|
585
|
-
}),
|
|
586
|
+
}), g(y));
|
|
586
587
|
}
|
|
587
|
-
function
|
|
588
|
-
return y === null || T(y) ? (t.exit("chunkString"), t.exit("codeFencedFenceMeta"), o(y)) : y === 96 && y === a ? e(y) : (t.consume(y),
|
|
588
|
+
function g(y) {
|
|
589
|
+
return y === null || T(y) ? (t.exit("chunkString"), t.exit("codeFencedFenceMeta"), o(y)) : y === 96 && y === a ? e(y) : (t.consume(y), g);
|
|
589
590
|
}
|
|
590
591
|
function w(y) {
|
|
591
|
-
return t.attempt(i,
|
|
592
|
+
return t.attempt(i, _, C)(y);
|
|
592
593
|
}
|
|
593
594
|
function C(y) {
|
|
594
595
|
return t.enter("lineEnding"), t.consume(y), t.exit("lineEnding"), b;
|
|
@@ -602,15 +603,15 @@ function Qr(t, n, e) {
|
|
|
602
603
|
)(y) : I(y);
|
|
603
604
|
}
|
|
604
605
|
function I(y) {
|
|
605
|
-
return y === null || T(y) ? t.check(He, w,
|
|
606
|
+
return y === null || T(y) ? t.check(He, w, _)(y) : (t.enter("codeFlowValue"), F(y));
|
|
606
607
|
}
|
|
607
608
|
function F(y) {
|
|
608
609
|
return y === null || T(y) ? (t.exit("codeFlowValue"), I(y)) : (t.consume(y), F);
|
|
609
610
|
}
|
|
610
|
-
function
|
|
611
|
+
function _(y) {
|
|
611
612
|
return t.exit("codeFenced"), n(y);
|
|
612
613
|
}
|
|
613
|
-
function z(y,
|
|
614
|
+
function z(y, L, q) {
|
|
614
615
|
let $ = 0;
|
|
615
616
|
return k;
|
|
616
617
|
function k(M) {
|
|
@@ -631,7 +632,7 @@ function Qr(t, n, e) {
|
|
|
631
632
|
return M === a ? ($++, y.consume(M), R) : $ >= u ? (y.exit("codeFencedFenceSequence"), B(M) ? P(y, H, "whitespace")(M) : H(M)) : q(M);
|
|
632
633
|
}
|
|
633
634
|
function H(M) {
|
|
634
|
-
return M === null || T(M) ? (y.exit("codeFencedFence"),
|
|
635
|
+
return M === null || T(M) ? (y.exit("codeFencedFence"), L(M)) : q(M);
|
|
635
636
|
}
|
|
636
637
|
}
|
|
637
638
|
}
|
|
@@ -747,7 +748,7 @@ function ni(t, n) {
|
|
|
747
748
|
const e = t[n][1], r = t[n][2];
|
|
748
749
|
let i = n - 1;
|
|
749
750
|
const l = [], u = e._tokenizer || r.parser[e.contentType](e.start), a = u.events, c = [], s = {};
|
|
750
|
-
let f, o, p = -1, h = e,
|
|
751
|
+
let f, o, p = -1, h = e, g = 0, w = 0;
|
|
751
752
|
const C = [w];
|
|
752
753
|
for (; h; ) {
|
|
753
754
|
for (; t[++i][1] !== h; )
|
|
@@ -762,7 +763,7 @@ function ni(t, n) {
|
|
|
762
763
|
c.unshift([I, I + b.length - 1]), X(t, I, 2, b);
|
|
763
764
|
}
|
|
764
765
|
for (p = -1; ++p < c.length; )
|
|
765
|
-
s[
|
|
766
|
+
s[g + c[p][0]] = g + c[p][1], g += c[p][1] - c[p][0] - 1;
|
|
766
767
|
return s;
|
|
767
768
|
}
|
|
768
769
|
const ri = {
|
|
@@ -818,7 +819,7 @@ function In(t, n, e, r, i, l, u, a, c) {
|
|
|
818
819
|
let f = 0;
|
|
819
820
|
return o;
|
|
820
821
|
function o(b) {
|
|
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 ||
|
|
822
|
+
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 || vt(b) ? e(b) : (t.enter(r), t.enter(u), t.enter(a), t.enter("chunkString", {
|
|
822
823
|
contentType: "string"
|
|
823
824
|
}), w(b));
|
|
824
825
|
}
|
|
@@ -828,13 +829,13 @@ function In(t, n, e, r, i, l, u, a, c) {
|
|
|
828
829
|
}), h(b));
|
|
829
830
|
}
|
|
830
831
|
function h(b) {
|
|
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 ?
|
|
832
|
+
return b === 62 ? (t.exit("chunkString"), t.exit(a), p(b)) : b === null || b === 60 || T(b) ? e(b) : (t.consume(b), b === 92 ? g : h);
|
|
832
833
|
}
|
|
833
|
-
function
|
|
834
|
+
function g(b) {
|
|
834
835
|
return b === 60 || b === 62 || b === 92 ? (t.consume(b), h) : h(b);
|
|
835
836
|
}
|
|
836
837
|
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 ||
|
|
838
|
+
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 || vt(b) ? e(b) : (t.consume(b), b === 92 ? C : w);
|
|
838
839
|
}
|
|
839
840
|
function C(b) {
|
|
840
841
|
return b === 40 || b === 41 || b === 92 ? (t.consume(b), w) : w(b);
|
|
@@ -993,10 +994,10 @@ function pi(t, n, e) {
|
|
|
993
994
|
}
|
|
994
995
|
const mi = {
|
|
995
996
|
name: "headingAtx",
|
|
996
|
-
tokenize:
|
|
997
|
-
resolve:
|
|
997
|
+
tokenize: gi,
|
|
998
|
+
resolve: di
|
|
998
999
|
};
|
|
999
|
-
function
|
|
1000
|
+
function di(t, n) {
|
|
1000
1001
|
let e = t.length - 2, r = 3, i, l;
|
|
1001
1002
|
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
1003
|
type: "atxHeadingText",
|
|
@@ -1014,7 +1015,7 @@ function gi(t, n) {
|
|
|
1014
1015
|
["exit", i, n]
|
|
1015
1016
|
])), t;
|
|
1016
1017
|
}
|
|
1017
|
-
function
|
|
1018
|
+
function gi(t, n, e) {
|
|
1018
1019
|
let r = 0;
|
|
1019
1020
|
return i;
|
|
1020
1021
|
function i(f) {
|
|
@@ -1121,112 +1122,112 @@ function Fi(t, n, e) {
|
|
|
1121
1122
|
const r = this;
|
|
1122
1123
|
let i, l, u, a, c;
|
|
1123
1124
|
return s;
|
|
1124
|
-
function s(
|
|
1125
|
-
return f(
|
|
1125
|
+
function s(d) {
|
|
1126
|
+
return f(d);
|
|
1126
1127
|
}
|
|
1127
|
-
function f(
|
|
1128
|
-
return t.enter("htmlFlow"), t.enter("htmlFlowData"), t.consume(
|
|
1128
|
+
function f(d) {
|
|
1129
|
+
return t.enter("htmlFlow"), t.enter("htmlFlowData"), t.consume(d), o;
|
|
1129
1130
|
}
|
|
1130
|
-
function o(
|
|
1131
|
-
return
|
|
1131
|
+
function o(d) {
|
|
1132
|
+
return d === 33 ? (t.consume(d), p) : d === 47 ? (t.consume(d), l = !0, w) : d === 63 ? (t.consume(d), i = 3, r.interrupt ? n : m) : G(d) ? (t.consume(d), u = String.fromCharCode(d), C) : e(d);
|
|
1132
1133
|
}
|
|
1133
|
-
function p(
|
|
1134
|
-
return
|
|
1134
|
+
function p(d) {
|
|
1135
|
+
return d === 45 ? (t.consume(d), i = 2, h) : d === 91 ? (t.consume(d), i = 5, a = 0, g) : G(d) ? (t.consume(d), i = 4, r.interrupt ? n : m) : e(d);
|
|
1135
1136
|
}
|
|
1136
|
-
function h(
|
|
1137
|
-
return
|
|
1137
|
+
function h(d) {
|
|
1138
|
+
return d === 45 ? (t.consume(d), r.interrupt ? n : m) : e(d);
|
|
1138
1139
|
}
|
|
1139
|
-
function d
|
|
1140
|
+
function g(d) {
|
|
1140
1141
|
const rt = "CDATA[";
|
|
1141
|
-
return
|
|
1142
|
+
return d === rt.charCodeAt(a++) ? (t.consume(d), a === rt.length ? r.interrupt ? n : E : g) : e(d);
|
|
1142
1143
|
}
|
|
1143
|
-
function w(
|
|
1144
|
-
return G(
|
|
1144
|
+
function w(d) {
|
|
1145
|
+
return G(d) ? (t.consume(d), u = String.fromCharCode(d), C) : e(d);
|
|
1145
1146
|
}
|
|
1146
|
-
function C(
|
|
1147
|
-
if (
|
|
1148
|
-
const rt =
|
|
1149
|
-
return !rt && !l && $e.includes(Ct) ? (i = 1, r.interrupt ? n(
|
|
1147
|
+
function C(d) {
|
|
1148
|
+
if (d === null || d === 47 || d === 62 || V(d)) {
|
|
1149
|
+
const rt = d === 47, Ct = u.toLowerCase();
|
|
1150
|
+
return !rt && !l && $e.includes(Ct) ? (i = 1, r.interrupt ? n(d) : E(d)) : ki.includes(u.toLowerCase()) ? (i = 6, rt ? (t.consume(d), b) : r.interrupt ? n(d) : E(d)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? e(d) : l ? I(d) : F(d));
|
|
1150
1151
|
}
|
|
1151
|
-
return
|
|
1152
|
+
return d === 45 || J(d) ? (t.consume(d), u += String.fromCharCode(d), C) : e(d);
|
|
1152
1153
|
}
|
|
1153
|
-
function b(
|
|
1154
|
-
return
|
|
1154
|
+
function b(d) {
|
|
1155
|
+
return d === 62 ? (t.consume(d), r.interrupt ? n : E) : e(d);
|
|
1155
1156
|
}
|
|
1156
|
-
function I(
|
|
1157
|
-
return B(
|
|
1157
|
+
function I(d) {
|
|
1158
|
+
return B(d) ? (t.consume(d), I) : k(d);
|
|
1158
1159
|
}
|
|
1159
|
-
function F(
|
|
1160
|
-
return
|
|
1160
|
+
function F(d) {
|
|
1161
|
+
return d === 47 ? (t.consume(d), k) : d === 58 || d === 95 || G(d) ? (t.consume(d), _) : B(d) ? (t.consume(d), F) : k(d);
|
|
1161
1162
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return
|
|
1163
|
+
function _(d) {
|
|
1164
|
+
return d === 45 || d === 46 || d === 58 || d === 95 || J(d) ? (t.consume(d), _) : z(d);
|
|
1164
1165
|
}
|
|
1165
|
-
function z(
|
|
1166
|
-
return
|
|
1166
|
+
function z(d) {
|
|
1167
|
+
return d === 61 ? (t.consume(d), y) : B(d) ? (t.consume(d), z) : F(d);
|
|
1167
1168
|
}
|
|
1168
|
-
function y(
|
|
1169
|
-
return
|
|
1169
|
+
function y(d) {
|
|
1170
|
+
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? e(d) : d === 34 || d === 39 ? (t.consume(d), c = d, L) : B(d) ? (t.consume(d), y) : q(d);
|
|
1170
1171
|
}
|
|
1171
|
-
function
|
|
1172
|
-
return
|
|
1172
|
+
function L(d) {
|
|
1173
|
+
return d === c ? (t.consume(d), c = null, $) : d === null || T(d) ? e(d) : (t.consume(d), L);
|
|
1173
1174
|
}
|
|
1174
|
-
function q(
|
|
1175
|
-
return
|
|
1175
|
+
function q(d) {
|
|
1176
|
+
return d === null || d === 34 || d === 39 || d === 47 || d === 60 || d === 61 || d === 62 || d === 96 || V(d) ? z(d) : (t.consume(d), q);
|
|
1176
1177
|
}
|
|
1177
|
-
function $(
|
|
1178
|
-
return
|
|
1178
|
+
function $(d) {
|
|
1179
|
+
return d === 47 || d === 62 || B(d) ? F(d) : e(d);
|
|
1179
1180
|
}
|
|
1180
|
-
function k(
|
|
1181
|
-
return
|
|
1181
|
+
function k(d) {
|
|
1182
|
+
return d === 62 ? (t.consume(d), A) : e(d);
|
|
1182
1183
|
}
|
|
1183
|
-
function A(
|
|
1184
|
-
return
|
|
1184
|
+
function A(d) {
|
|
1185
|
+
return d === null || T(d) ? E(d) : B(d) ? (t.consume(d), A) : e(d);
|
|
1185
1186
|
}
|
|
1186
|
-
function E(
|
|
1187
|
-
return
|
|
1187
|
+
function E(d) {
|
|
1188
|
+
return d === 45 && i === 2 ? (t.consume(d), W) : d === 60 && i === 1 ? (t.consume(d), v) : d === 62 && i === 4 ? (t.consume(d), nt) : d === 63 && i === 3 ? (t.consume(d), m) : d === 93 && i === 5 ? (t.consume(d), ot) : T(d) && (i === 6 || i === 7) ? (t.exit("htmlFlowData"), t.check(
|
|
1188
1189
|
bi,
|
|
1189
1190
|
st,
|
|
1190
1191
|
R
|
|
1191
|
-
)(
|
|
1192
|
+
)(d)) : d === null || T(d) ? (t.exit("htmlFlowData"), R(d)) : (t.consume(d), E);
|
|
1192
1193
|
}
|
|
1193
|
-
function R(
|
|
1194
|
+
function R(d) {
|
|
1194
1195
|
return t.check(
|
|
1195
1196
|
yi,
|
|
1196
1197
|
H,
|
|
1197
1198
|
st
|
|
1198
|
-
)(
|
|
1199
|
+
)(d);
|
|
1199
1200
|
}
|
|
1200
|
-
function H(
|
|
1201
|
-
return t.enter("lineEnding"), t.consume(
|
|
1201
|
+
function H(d) {
|
|
1202
|
+
return t.enter("lineEnding"), t.consume(d), t.exit("lineEnding"), M;
|
|
1202
1203
|
}
|
|
1203
|
-
function M(
|
|
1204
|
-
return
|
|
1204
|
+
function M(d) {
|
|
1205
|
+
return d === null || T(d) ? R(d) : (t.enter("htmlFlowData"), E(d));
|
|
1205
1206
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return
|
|
1207
|
+
function W(d) {
|
|
1208
|
+
return d === 45 ? (t.consume(d), m) : E(d);
|
|
1208
1209
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return
|
|
1210
|
+
function v(d) {
|
|
1211
|
+
return d === 47 ? (t.consume(d), u = "", et) : E(d);
|
|
1211
1212
|
}
|
|
1212
|
-
function et(
|
|
1213
|
-
if (
|
|
1213
|
+
function et(d) {
|
|
1214
|
+
if (d === 62) {
|
|
1214
1215
|
const rt = u.toLowerCase();
|
|
1215
|
-
return $e.includes(rt) ? (t.consume(
|
|
1216
|
+
return $e.includes(rt) ? (t.consume(d), nt) : E(d);
|
|
1216
1217
|
}
|
|
1217
|
-
return G(
|
|
1218
|
+
return G(d) && u.length < 8 ? (t.consume(d), u += String.fromCharCode(d), et) : E(d);
|
|
1218
1219
|
}
|
|
1219
|
-
function ot(
|
|
1220
|
-
return
|
|
1220
|
+
function ot(d) {
|
|
1221
|
+
return d === 93 ? (t.consume(d), m) : E(d);
|
|
1221
1222
|
}
|
|
1222
|
-
function m(
|
|
1223
|
-
return
|
|
1223
|
+
function m(d) {
|
|
1224
|
+
return d === 62 ? (t.consume(d), nt) : d === 45 && i === 2 ? (t.consume(d), m) : E(d);
|
|
1224
1225
|
}
|
|
1225
|
-
function nt(
|
|
1226
|
-
return
|
|
1226
|
+
function nt(d) {
|
|
1227
|
+
return d === null || T(d) ? (t.exit("htmlFlowData"), st(d)) : (t.consume(d), nt);
|
|
1227
1228
|
}
|
|
1228
|
-
function st(
|
|
1229
|
-
return t.exit("htmlFlow"), n(
|
|
1229
|
+
function st(d) {
|
|
1230
|
+
return t.exit("htmlFlow"), n(d);
|
|
1230
1231
|
}
|
|
1231
1232
|
}
|
|
1232
1233
|
function Si(t, n, e) {
|
|
@@ -1260,68 +1261,68 @@ function Ei(t, n, e) {
|
|
|
1260
1261
|
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
1262
|
}
|
|
1262
1263
|
function s(m) {
|
|
1263
|
-
return m === 45 ? (t.consume(m), f) : m === 91 ? (t.consume(m), l = 0,
|
|
1264
|
+
return m === 45 ? (t.consume(m), f) : m === 91 ? (t.consume(m), l = 0, g) : G(m) ? (t.consume(m), I) : e(m);
|
|
1264
1265
|
}
|
|
1265
1266
|
function f(m) {
|
|
1266
1267
|
return m === 45 ? (t.consume(m), h) : e(m);
|
|
1267
1268
|
}
|
|
1268
1269
|
function o(m) {
|
|
1269
|
-
return m === null ? e(m) : m === 45 ? (t.consume(m), p) : T(m) ? (u = o,
|
|
1270
|
+
return m === null ? e(m) : m === 45 ? (t.consume(m), p) : T(m) ? (u = o, v(m)) : (t.consume(m), o);
|
|
1270
1271
|
}
|
|
1271
1272
|
function p(m) {
|
|
1272
1273
|
return m === 45 ? (t.consume(m), h) : o(m);
|
|
1273
1274
|
}
|
|
1274
1275
|
function h(m) {
|
|
1275
|
-
return m === 62 ?
|
|
1276
|
+
return m === 62 ? W(m) : m === 45 ? p(m) : o(m);
|
|
1276
1277
|
}
|
|
1277
|
-
function
|
|
1278
|
+
function g(m) {
|
|
1278
1279
|
const nt = "CDATA[";
|
|
1279
|
-
return m === nt.charCodeAt(l++) ? (t.consume(m), l === nt.length ? w :
|
|
1280
|
+
return m === nt.charCodeAt(l++) ? (t.consume(m), l === nt.length ? w : g) : e(m);
|
|
1280
1281
|
}
|
|
1281
1282
|
function w(m) {
|
|
1282
|
-
return m === null ? e(m) : m === 93 ? (t.consume(m), C) : T(m) ? (u = w,
|
|
1283
|
+
return m === null ? e(m) : m === 93 ? (t.consume(m), C) : T(m) ? (u = w, v(m)) : (t.consume(m), w);
|
|
1283
1284
|
}
|
|
1284
1285
|
function C(m) {
|
|
1285
1286
|
return m === 93 ? (t.consume(m), b) : w(m);
|
|
1286
1287
|
}
|
|
1287
1288
|
function b(m) {
|
|
1288
|
-
return m === 62 ?
|
|
1289
|
+
return m === 62 ? W(m) : m === 93 ? (t.consume(m), b) : w(m);
|
|
1289
1290
|
}
|
|
1290
1291
|
function I(m) {
|
|
1291
|
-
return m === null || m === 62 ?
|
|
1292
|
+
return m === null || m === 62 ? W(m) : T(m) ? (u = I, v(m)) : (t.consume(m), I);
|
|
1292
1293
|
}
|
|
1293
1294
|
function F(m) {
|
|
1294
|
-
return m === null ? e(m) : m === 63 ? (t.consume(m),
|
|
1295
|
+
return m === null ? e(m) : m === 63 ? (t.consume(m), _) : T(m) ? (u = F, v(m)) : (t.consume(m), F);
|
|
1295
1296
|
}
|
|
1296
|
-
function
|
|
1297
|
-
return m === 62 ?
|
|
1297
|
+
function _(m) {
|
|
1298
|
+
return m === 62 ? W(m) : F(m);
|
|
1298
1299
|
}
|
|
1299
1300
|
function z(m) {
|
|
1300
1301
|
return G(m) ? (t.consume(m), y) : e(m);
|
|
1301
1302
|
}
|
|
1302
1303
|
function y(m) {
|
|
1303
|
-
return m === 45 || J(m) ? (t.consume(m), y) :
|
|
1304
|
+
return m === 45 || J(m) ? (t.consume(m), y) : L(m);
|
|
1304
1305
|
}
|
|
1305
|
-
function
|
|
1306
|
-
return T(m) ? (u =
|
|
1306
|
+
function L(m) {
|
|
1307
|
+
return T(m) ? (u = L, v(m)) : B(m) ? (t.consume(m), L) : W(m);
|
|
1307
1308
|
}
|
|
1308
1309
|
function q(m) {
|
|
1309
1310
|
return m === 45 || J(m) ? (t.consume(m), q) : m === 47 || m === 62 || V(m) ? $(m) : e(m);
|
|
1310
1311
|
}
|
|
1311
1312
|
function $(m) {
|
|
1312
|
-
return m === 47 ? (t.consume(m),
|
|
1313
|
+
return m === 47 ? (t.consume(m), W) : m === 58 || m === 95 || G(m) ? (t.consume(m), k) : T(m) ? (u = $, v(m)) : B(m) ? (t.consume(m), $) : W(m);
|
|
1313
1314
|
}
|
|
1314
1315
|
function k(m) {
|
|
1315
1316
|
return m === 45 || m === 46 || m === 58 || m === 95 || J(m) ? (t.consume(m), k) : A(m);
|
|
1316
1317
|
}
|
|
1317
1318
|
function A(m) {
|
|
1318
|
-
return m === 61 ? (t.consume(m), E) : T(m) ? (u = A,
|
|
1319
|
+
return m === 61 ? (t.consume(m), E) : T(m) ? (u = A, v(m)) : B(m) ? (t.consume(m), A) : $(m);
|
|
1319
1320
|
}
|
|
1320
1321
|
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,
|
|
1322
|
+
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, v(m)) : B(m) ? (t.consume(m), E) : (t.consume(m), H);
|
|
1322
1323
|
}
|
|
1323
1324
|
function R(m) {
|
|
1324
|
-
return m === i ? (t.consume(m), i = void 0, M) : m === null ? e(m) : T(m) ? (u = R,
|
|
1325
|
+
return m === i ? (t.consume(m), i = void 0, M) : m === null ? e(m) : T(m) ? (u = R, v(m)) : (t.consume(m), R);
|
|
1325
1326
|
}
|
|
1326
1327
|
function H(m) {
|
|
1327
1328
|
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);
|
|
@@ -1329,10 +1330,10 @@ function Ei(t, n, e) {
|
|
|
1329
1330
|
function M(m) {
|
|
1330
1331
|
return m === 47 || m === 62 || V(m) ? $(m) : e(m);
|
|
1331
1332
|
}
|
|
1332
|
-
function
|
|
1333
|
+
function W(m) {
|
|
1333
1334
|
return m === 62 ? (t.consume(m), t.exit("htmlTextData"), t.exit("htmlText"), n) : e(m);
|
|
1334
1335
|
}
|
|
1335
|
-
function
|
|
1336
|
+
function v(m) {
|
|
1336
1337
|
return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(m), t.exit("lineEnding"), et;
|
|
1337
1338
|
}
|
|
1338
1339
|
function et(m) {
|
|
@@ -1349,8 +1350,8 @@ function Ei(t, n, e) {
|
|
|
1349
1350
|
}
|
|
1350
1351
|
const Ae = {
|
|
1351
1352
|
name: "labelEnd",
|
|
1352
|
-
tokenize:
|
|
1353
|
-
resolveTo:
|
|
1353
|
+
tokenize: _i,
|
|
1354
|
+
resolveTo: Li,
|
|
1354
1355
|
resolveAll: Di
|
|
1355
1356
|
}, zi = {
|
|
1356
1357
|
tokenize: Bi
|
|
@@ -1367,7 +1368,7 @@ function Di(t) {
|
|
|
1367
1368
|
}
|
|
1368
1369
|
return t;
|
|
1369
1370
|
}
|
|
1370
|
-
function
|
|
1371
|
+
function Li(t, n) {
|
|
1371
1372
|
let e = t.length, r = 0, i, l, u, a;
|
|
1372
1373
|
for (; e--; )
|
|
1373
1374
|
if (i = t[e][1], l) {
|
|
@@ -1410,7 +1411,7 @@ function _i(t, n) {
|
|
|
1410
1411
|
["exit", s, n]
|
|
1411
1412
|
]), a = tt(a, t.slice(u + 1)), a = tt(a, [["exit", c, n]]), X(t, l, t.length, a), t;
|
|
1412
1413
|
}
|
|
1413
|
-
function
|
|
1414
|
+
function _i(t, n, e) {
|
|
1414
1415
|
const r = this;
|
|
1415
1416
|
let i = r.events.length, l, u;
|
|
1416
1417
|
for (; i--; )
|
|
@@ -1597,28 +1598,28 @@ function Hi(t, n, e) {
|
|
|
1597
1598
|
}
|
|
1598
1599
|
const Y = {
|
|
1599
1600
|
name: "list",
|
|
1600
|
-
tokenize:
|
|
1601
|
+
tokenize: vi,
|
|
1601
1602
|
continuation: {
|
|
1602
|
-
tokenize:
|
|
1603
|
+
tokenize: Ui
|
|
1603
1604
|
},
|
|
1604
1605
|
exit: Qi
|
|
1605
1606
|
}, Ni = {
|
|
1606
1607
|
tokenize: Zi,
|
|
1607
1608
|
partial: !0
|
|
1608
1609
|
}, $i = {
|
|
1609
|
-
tokenize:
|
|
1610
|
+
tokenize: Wi,
|
|
1610
1611
|
partial: !0
|
|
1611
1612
|
};
|
|
1612
|
-
function
|
|
1613
|
+
function vi(t, n, e) {
|
|
1613
1614
|
const r = this, i = r.events[r.events.length - 1];
|
|
1614
1615
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, u = 0;
|
|
1615
1616
|
return a;
|
|
1616
1617
|
function a(h) {
|
|
1617
|
-
const
|
|
1618
|
-
if (
|
|
1619
|
-
if (r.containerState.type || (r.containerState.type =
|
|
1618
|
+
const g = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
|
|
1619
|
+
if (g === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : de(h)) {
|
|
1620
|
+
if (r.containerState.type || (r.containerState.type = g, t.enter(g, {
|
|
1620
1621
|
_container: !0
|
|
1621
|
-
})),
|
|
1622
|
+
})), g === "listUnordered")
|
|
1622
1623
|
return t.enter("listItemPrefix"), h === 42 || h === 45 ? t.check(qt, e, s)(h) : s(h);
|
|
1623
1624
|
if (!r.interrupt || h === 49)
|
|
1624
1625
|
return t.enter("listItemPrefix"), t.enter("listItemValue"), c(h);
|
|
@@ -1626,7 +1627,7 @@ function Ui(t, n, e) {
|
|
|
1626
1627
|
return e(h);
|
|
1627
1628
|
}
|
|
1628
1629
|
function c(h) {
|
|
1629
|
-
return
|
|
1630
|
+
return de(h) && ++u < 10 ? (t.consume(h), c) : (!r.interrupt || u < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (t.exit("listItemValue"), s(h)) : e(h);
|
|
1630
1631
|
}
|
|
1631
1632
|
function s(h) {
|
|
1632
1633
|
return t.enter("listItemMarker"), t.consume(h), t.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, t.check(
|
|
@@ -1650,7 +1651,7 @@ function Ui(t, n, e) {
|
|
|
1650
1651
|
return r.containerState.size = l + r.sliceSerialize(t.exit("listItemPrefix"), !0).length, n(h);
|
|
1651
1652
|
}
|
|
1652
1653
|
}
|
|
1653
|
-
function
|
|
1654
|
+
function Ui(t, n, e) {
|
|
1654
1655
|
const r = this;
|
|
1655
1656
|
return r.containerState._closeFlow = void 0, t.check(Ot, i, l);
|
|
1656
1657
|
function i(a) {
|
|
@@ -1673,7 +1674,7 @@ function Wi(t, n, e) {
|
|
|
1673
1674
|
)(a);
|
|
1674
1675
|
}
|
|
1675
1676
|
}
|
|
1676
|
-
function
|
|
1677
|
+
function Wi(t, n, e) {
|
|
1677
1678
|
const r = this;
|
|
1678
1679
|
return P(
|
|
1679
1680
|
t,
|
|
@@ -1702,7 +1703,7 @@ function Zi(t, n, e) {
|
|
|
1702
1703
|
return !B(l) && u && u[1].type === "listItemPrefixWhitespace" ? n(l) : e(l);
|
|
1703
1704
|
}
|
|
1704
1705
|
}
|
|
1705
|
-
const
|
|
1706
|
+
const ve = {
|
|
1706
1707
|
name: "setextUnderline",
|
|
1707
1708
|
tokenize: Yi,
|
|
1708
1709
|
resolveTo: Gi
|
|
@@ -1886,40 +1887,40 @@ function nu(t, n, e) {
|
|
|
1886
1887
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
1887
1888
|
let l, u = 0, a;
|
|
1888
1889
|
return c;
|
|
1889
|
-
function c(
|
|
1890
|
-
return t.enter("gfmFootnoteDefinition")._container = !0, t.enter("gfmFootnoteDefinitionLabel"), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(
|
|
1890
|
+
function c(g) {
|
|
1891
|
+
return t.enter("gfmFootnoteDefinition")._container = !0, t.enter("gfmFootnoteDefinitionLabel"), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(g), t.exit("gfmFootnoteDefinitionLabelMarker"), s;
|
|
1891
1892
|
}
|
|
1892
|
-
function s(
|
|
1893
|
-
return
|
|
1893
|
+
function s(g) {
|
|
1894
|
+
return g === 94 ? (t.enter("gfmFootnoteDefinitionMarker"), t.consume(g), t.exit("gfmFootnoteDefinitionMarker"), t.enter("gfmFootnoteDefinitionLabelString"), t.enter("chunkString").contentType = "string", f) : e(g);
|
|
1894
1895
|
}
|
|
1895
|
-
function f(
|
|
1896
|
+
function f(g) {
|
|
1896
1897
|
if (
|
|
1897
1898
|
// Too long.
|
|
1898
1899
|
u > 999 || // Closing brace with nothing.
|
|
1899
|
-
|
|
1900
|
+
g === 93 && !a || // Space or tab is not supported by GFM for some reason.
|
|
1900
1901
|
// `\n` and `[` not being supported makes sense.
|
|
1901
|
-
|
|
1902
|
+
g === null || g === 91 || V(g)
|
|
1902
1903
|
)
|
|
1903
|
-
return e(
|
|
1904
|
-
if (
|
|
1904
|
+
return e(g);
|
|
1905
|
+
if (g === 93) {
|
|
1905
1906
|
t.exit("chunkString");
|
|
1906
1907
|
const w = t.exit("gfmFootnoteDefinitionLabelString");
|
|
1907
|
-
return l = ut(r.sliceSerialize(w)), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(
|
|
1908
|
+
return l = ut(r.sliceSerialize(w)), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(g), t.exit("gfmFootnoteDefinitionLabelMarker"), t.exit("gfmFootnoteDefinitionLabel"), p;
|
|
1908
1909
|
}
|
|
1909
|
-
return V(
|
|
1910
|
+
return V(g) || (a = !0), u++, t.consume(g), g === 92 ? o : f;
|
|
1910
1911
|
}
|
|
1911
|
-
function o(
|
|
1912
|
-
return
|
|
1912
|
+
function o(g) {
|
|
1913
|
+
return g === 91 || g === 92 || g === 93 ? (t.consume(g), u++, f) : f(g);
|
|
1913
1914
|
}
|
|
1914
|
-
function p(
|
|
1915
|
-
return
|
|
1915
|
+
function p(g) {
|
|
1916
|
+
return g === 58 ? (t.enter("definitionMarker"), t.consume(g), t.exit("definitionMarker"), i.includes(l) || i.push(l), P(
|
|
1916
1917
|
t,
|
|
1917
1918
|
h,
|
|
1918
1919
|
"gfmFootnoteDefinitionWhitespace"
|
|
1919
|
-
)) : e(
|
|
1920
|
+
)) : e(g);
|
|
1920
1921
|
}
|
|
1921
|
-
function h(
|
|
1922
|
-
return n(
|
|
1922
|
+
function h(g) {
|
|
1923
|
+
return n(g);
|
|
1923
1924
|
}
|
|
1924
1925
|
}
|
|
1925
1926
|
function ru(t, n, e) {
|
|
@@ -2003,16 +2004,16 @@ function lu(t) {
|
|
|
2003
2004
|
const s = this.previous, f = this.events;
|
|
2004
2005
|
let o = 0;
|
|
2005
2006
|
return p;
|
|
2006
|
-
function p(
|
|
2007
|
-
return s === 126 && f[f.length - 1][1].type !== "characterEscape" ? c(
|
|
2007
|
+
function p(g) {
|
|
2008
|
+
return s === 126 && f[f.length - 1][1].type !== "characterEscape" ? c(g) : (u.enter("strikethroughSequenceTemporary"), h(g));
|
|
2008
2009
|
}
|
|
2009
|
-
function h(
|
|
2010
|
-
const w =
|
|
2011
|
-
if (
|
|
2012
|
-
return o > 1 ? c(
|
|
2013
|
-
if (o < 2 && !e) return c(
|
|
2014
|
-
const C = u.exit("strikethroughSequenceTemporary"), b =
|
|
2015
|
-
return C._open = !b || b === 2 && !!w, C._close = !w || w === 2 && !!b, a(
|
|
2010
|
+
function h(g) {
|
|
2011
|
+
const w = Ut(s);
|
|
2012
|
+
if (g === 126)
|
|
2013
|
+
return o > 1 ? c(g) : (u.consume(g), o++, h);
|
|
2014
|
+
if (o < 2 && !e) return c(g);
|
|
2015
|
+
const C = u.exit("strikethroughSequenceTemporary"), b = Ut(g);
|
|
2016
|
+
return C._open = !b || b === 2 && !!w, C._close = !w || w === 2 && !!b, a(g);
|
|
2016
2017
|
}
|
|
2017
2018
|
}
|
|
2018
2019
|
}
|
|
@@ -2143,19 +2144,19 @@ function fu(t, n, e) {
|
|
|
2143
2144
|
function h(k) {
|
|
2144
2145
|
return r.interrupt = !1, r.parser.lazy[r.now().line] ? e(k) : (t.enter("tableDelimiterRow"), u = !1, B(k) ? P(
|
|
2145
2146
|
t,
|
|
2146
|
-
|
|
2147
|
+
g,
|
|
2147
2148
|
"linePrefix",
|
|
2148
2149
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
2149
|
-
)(k) :
|
|
2150
|
+
)(k) : g(k));
|
|
2150
2151
|
}
|
|
2151
|
-
function
|
|
2152
|
+
function g(k) {
|
|
2152
2153
|
return k === 45 || k === 58 ? C(k) : k === 124 ? (u = !0, t.enter("tableCellDivider"), t.consume(k), t.exit("tableCellDivider"), w) : z(k);
|
|
2153
2154
|
}
|
|
2154
2155
|
function w(k) {
|
|
2155
2156
|
return B(k) ? P(t, C, "whitespace")(k) : C(k);
|
|
2156
2157
|
}
|
|
2157
2158
|
function C(k) {
|
|
2158
|
-
return k === 58 ? (l += 1, u = !0, t.enter("tableDelimiterMarker"), t.consume(k), t.exit("tableDelimiterMarker"), b) : k === 45 ? (l += 1, b(k)) : k === null || T(k) ?
|
|
2159
|
+
return k === 58 ? (l += 1, u = !0, t.enter("tableDelimiterMarker"), t.consume(k), t.exit("tableDelimiterMarker"), b) : k === 45 ? (l += 1, b(k)) : k === null || T(k) ? _(k) : z(k);
|
|
2159
2160
|
}
|
|
2160
2161
|
function b(k) {
|
|
2161
2162
|
return k === 45 ? (t.enter("tableDelimiterFiller"), I(k)) : z(k);
|
|
@@ -2164,22 +2165,22 @@ function fu(t, n, e) {
|
|
|
2164
2165
|
return k === 45 ? (t.consume(k), I) : k === 58 ? (u = !0, t.exit("tableDelimiterFiller"), t.enter("tableDelimiterMarker"), t.consume(k), t.exit("tableDelimiterMarker"), F) : (t.exit("tableDelimiterFiller"), F(k));
|
|
2165
2166
|
}
|
|
2166
2167
|
function F(k) {
|
|
2167
|
-
return B(k) ? P(t,
|
|
2168
|
+
return B(k) ? P(t, _, "whitespace")(k) : _(k);
|
|
2168
2169
|
}
|
|
2169
|
-
function
|
|
2170
|
-
return k === 124 ?
|
|
2170
|
+
function _(k) {
|
|
2171
|
+
return k === 124 ? g(k) : k === null || T(k) ? !u || i !== l ? z(k) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), n(k)) : z(k);
|
|
2171
2172
|
}
|
|
2172
2173
|
function z(k) {
|
|
2173
2174
|
return e(k);
|
|
2174
2175
|
}
|
|
2175
2176
|
function y(k) {
|
|
2176
|
-
return t.enter("tableRow"),
|
|
2177
|
+
return t.enter("tableRow"), L(k);
|
|
2177
2178
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return k === 124 ? (t.enter("tableCellDivider"), t.consume(k), t.exit("tableCellDivider"),
|
|
2179
|
+
function L(k) {
|
|
2180
|
+
return k === 124 ? (t.enter("tableCellDivider"), t.consume(k), t.exit("tableCellDivider"), L) : k === null || T(k) ? (t.exit("tableRow"), n(k)) : B(k) ? P(t, L, "whitespace")(k) : (t.enter("data"), q(k));
|
|
2180
2181
|
}
|
|
2181
2182
|
function q(k) {
|
|
2182
|
-
return k === null || k === 124 || V(k) ? (t.exit("data"),
|
|
2183
|
+
return k === null || k === 124 || V(k) ? (t.exit("data"), L(k)) : (t.consume(k), k === 92 ? $ : q);
|
|
2183
2184
|
}
|
|
2184
2185
|
function $(k) {
|
|
2185
2186
|
return k === 92 || k === 124 ? (t.consume(k), q) : q(k);
|
|
@@ -2189,41 +2190,41 @@ function hu(t, n) {
|
|
|
2189
2190
|
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
2191
|
const p = new au();
|
|
2191
2192
|
for (; ++e < t.length; ) {
|
|
2192
|
-
const h = t[e],
|
|
2193
|
-
h[0] === "enter" ?
|
|
2193
|
+
const h = t[e], g = h[1];
|
|
2194
|
+
h[0] === "enter" ? g.type === "tableHead" ? (a = !1, c !== 0 && (Ue(p, n, c, s, f), f = void 0, c = 0), s = {
|
|
2194
2195
|
type: "table",
|
|
2195
|
-
start: Object.assign({},
|
|
2196
|
+
start: Object.assign({}, g.start),
|
|
2196
2197
|
// Note: correct end is set later.
|
|
2197
|
-
end: Object.assign({},
|
|
2198
|
-
}, p.add(e, 0, [["enter", s, n]])) :
|
|
2198
|
+
end: Object.assign({}, g.end)
|
|
2199
|
+
}, p.add(e, 0, [["enter", s, n]])) : g.type === "tableRow" || g.type === "tableDelimiterRow" ? (r = !0, o = void 0, l = [0, 0, 0, 0], u = [0, e + 1, 0, 0], a && (a = !1, f = {
|
|
2199
2200
|
type: "tableBody",
|
|
2200
|
-
start: Object.assign({},
|
|
2201
|
+
start: Object.assign({}, g.start),
|
|
2201
2202
|
// Note: correct end is set later.
|
|
2202
|
-
end: Object.assign({},
|
|
2203
|
-
}, p.add(e, 0, [["enter", f, n]])), i =
|
|
2203
|
+
end: Object.assign({}, g.end)
|
|
2204
|
+
}, p.add(e, 0, [["enter", f, n]])), i = g.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (g.type === "data" || g.type === "tableDelimiterMarker" || g.type === "tableDelimiterFiller") ? (r = !1, u[2] === 0 && (l[1] !== 0 && (u[0] = u[1], o = jt(
|
|
2204
2205
|
p,
|
|
2205
2206
|
n,
|
|
2206
2207
|
l,
|
|
2207
2208
|
i,
|
|
2208
2209
|
void 0,
|
|
2209
2210
|
o
|
|
2210
|
-
), l = [0, 0, 0, 0]), u[2] = e)) :
|
|
2211
|
+
), l = [0, 0, 0, 0]), u[2] = e)) : g.type === "tableCellDivider" && (r ? r = !1 : (l[1] !== 0 && (u[0] = u[1], o = jt(
|
|
2211
2212
|
p,
|
|
2212
2213
|
n,
|
|
2213
2214
|
l,
|
|
2214
2215
|
i,
|
|
2215
2216
|
void 0,
|
|
2216
2217
|
o
|
|
2217
|
-
)), l = u, u = [l[1], e, 0, 0])) :
|
|
2218
|
+
)), l = u, u = [l[1], e, 0, 0])) : g.type === "tableHead" ? (a = !0, c = e) : g.type === "tableRow" || g.type === "tableDelimiterRow" ? (c = e, l[1] !== 0 ? (u[0] = u[1], o = jt(
|
|
2218
2219
|
p,
|
|
2219
2220
|
n,
|
|
2220
2221
|
l,
|
|
2221
2222
|
i,
|
|
2222
2223
|
e,
|
|
2223
2224
|
o
|
|
2224
|
-
)) : u[1] !== 0 && (o = jt(p, n, u, i, e, o)), i = 0) : i && (
|
|
2225
|
+
)) : u[1] !== 0 && (o = jt(p, n, u, i, e, o)), i = 0) : i && (g.type === "data" || g.type === "tableDelimiterMarker" || g.type === "tableDelimiterFiller") && (u[3] = e);
|
|
2225
2226
|
}
|
|
2226
|
-
for (c !== 0 &&
|
|
2227
|
+
for (c !== 0 && Ue(p, n, c, s, f), p.consume(n.events), e = -1; ++e < n.events.length; ) {
|
|
2227
2228
|
const h = n.events[e];
|
|
2228
2229
|
h[0] === "enter" && h[1].type === "table" && (h[1]._align = su(n.events, e));
|
|
2229
2230
|
}
|
|
@@ -2247,15 +2248,15 @@ function jt(t, n, e, r, i, l) {
|
|
|
2247
2248
|
if (t.add(e[2], 0, [["enter", o, n]]), r !== 2) {
|
|
2248
2249
|
const p = n.events[e[2]], h = n.events[e[3]];
|
|
2249
2250
|
if (p[1].end = Object.assign({}, h[1].end), p[1].type = "chunkText", p[1].contentType = "text", e[3] > e[2] + 1) {
|
|
2250
|
-
const
|
|
2251
|
-
t.add(
|
|
2251
|
+
const g = e[2] + 1, w = e[3] - e[2] - 1;
|
|
2252
|
+
t.add(g, w, []);
|
|
2252
2253
|
}
|
|
2253
2254
|
}
|
|
2254
2255
|
t.add(e[3] + 1, 0, [["exit", o, n]]);
|
|
2255
2256
|
}
|
|
2256
2257
|
return i !== void 0 && (l.end = Object.assign({}, It(n.events, i)), t.add(i, 0, [["exit", l, n]]), l = void 0), l;
|
|
2257
2258
|
}
|
|
2258
|
-
function
|
|
2259
|
+
function Ue(t, n, e, r, i) {
|
|
2259
2260
|
const l = [], u = It(n.events, e);
|
|
2260
2261
|
i && (i.end = Object.assign({}, u), l.push(["exit", i, n])), r.end = Object.assign({}, u), l.push(["exit", r, n]), t.add(e + 1, 0, l);
|
|
2261
2262
|
}
|
|
@@ -2264,13 +2265,13 @@ function It(t, n) {
|
|
|
2264
2265
|
return e[1][r];
|
|
2265
2266
|
}
|
|
2266
2267
|
const pu = {
|
|
2267
|
-
tokenize:
|
|
2268
|
+
tokenize: du
|
|
2268
2269
|
}, mu = {
|
|
2269
2270
|
text: {
|
|
2270
2271
|
91: pu
|
|
2271
2272
|
}
|
|
2272
2273
|
};
|
|
2273
|
-
function
|
|
2274
|
+
function du(t, n, e) {
|
|
2274
2275
|
const r = this;
|
|
2275
2276
|
return i;
|
|
2276
2277
|
function i(c) {
|
|
@@ -2290,21 +2291,21 @@ function gu(t, n, e) {
|
|
|
2290
2291
|
function a(c) {
|
|
2291
2292
|
return T(c) ? n(c) : B(c) ? t.check(
|
|
2292
2293
|
{
|
|
2293
|
-
tokenize:
|
|
2294
|
+
tokenize: gu
|
|
2294
2295
|
},
|
|
2295
2296
|
n,
|
|
2296
2297
|
e
|
|
2297
2298
|
)(c) : e(c);
|
|
2298
2299
|
}
|
|
2299
2300
|
}
|
|
2300
|
-
function
|
|
2301
|
+
function gu(t, n, e) {
|
|
2301
2302
|
return P(t, r, "whitespace");
|
|
2302
2303
|
function r(i) {
|
|
2303
2304
|
return i === null ? e(i) : n(i);
|
|
2304
2305
|
}
|
|
2305
2306
|
}
|
|
2306
2307
|
function ku(t) {
|
|
2307
|
-
return
|
|
2308
|
+
return dn([
|
|
2308
2309
|
Ir,
|
|
2309
2310
|
Ki(),
|
|
2310
2311
|
lu(t),
|
|
@@ -2312,7 +2313,7 @@ function ku(t) {
|
|
|
2312
2313
|
mu
|
|
2313
2314
|
]);
|
|
2314
2315
|
}
|
|
2315
|
-
function
|
|
2316
|
+
function We(t, n) {
|
|
2316
2317
|
const e = String(t);
|
|
2317
2318
|
if (typeof n != "string")
|
|
2318
2319
|
throw new TypeError("Expected character");
|
|
@@ -2419,14 +2420,14 @@ const Su = !0, Qe = !1, Cu = "skip", Au = (
|
|
|
2419
2420
|
}
|
|
2420
2421
|
return o;
|
|
2421
2422
|
function o() {
|
|
2422
|
-
let p = [], h,
|
|
2423
|
+
let p = [], h, g, w;
|
|
2423
2424
|
if (i(a, c, s[s.length - 1] || null) && (p = Eu(e(a, s)), p[0] === Qe))
|
|
2424
2425
|
return p;
|
|
2425
2426
|
if (a.children && p[0] !== Cu)
|
|
2426
|
-
for (
|
|
2427
|
-
if (h = u(a.children[
|
|
2427
|
+
for (g = -1 + l, w = s.concat(a); g > -1 && g < a.children.length; ) {
|
|
2428
|
+
if (h = u(a.children[g], g, w)(), h[0] === Qe)
|
|
2428
2429
|
return h;
|
|
2429
|
-
|
|
2430
|
+
g = typeof h[1] == "number" ? h[1] : g + l;
|
|
2430
2431
|
}
|
|
2431
2432
|
return p;
|
|
2432
2433
|
}
|
|
@@ -2460,42 +2461,42 @@ const zu = {}.hasOwnProperty, Iu = (
|
|
|
2460
2461
|
Au(t, "text", s);
|
|
2461
2462
|
return t;
|
|
2462
2463
|
function s(o, p) {
|
|
2463
|
-
let h = -1,
|
|
2464
|
+
let h = -1, g;
|
|
2464
2465
|
for (; ++h < p.length; ) {
|
|
2465
2466
|
const w = p[h];
|
|
2466
2467
|
if (u(
|
|
2467
2468
|
w,
|
|
2468
2469
|
// @ts-expect-error: TS doesn’t understand but it’s perfect.
|
|
2469
|
-
|
|
2470
|
-
|
|
2470
|
+
g ? g.children.indexOf(w) : void 0,
|
|
2471
|
+
g
|
|
2471
2472
|
))
|
|
2472
2473
|
return;
|
|
2473
|
-
|
|
2474
|
+
g = w;
|
|
2474
2475
|
}
|
|
2475
|
-
if (
|
|
2476
|
+
if (g)
|
|
2476
2477
|
return f(o, p);
|
|
2477
2478
|
}
|
|
2478
2479
|
function f(o, p) {
|
|
2479
|
-
const h = p[p.length - 1],
|
|
2480
|
+
const h = p[p.length - 1], g = a[c][0], w = a[c][1];
|
|
2480
2481
|
let C = 0;
|
|
2481
2482
|
const b = h.children.indexOf(o);
|
|
2482
2483
|
let I = !1, F = [];
|
|
2483
|
-
|
|
2484
|
-
let
|
|
2485
|
-
for (;
|
|
2486
|
-
const z =
|
|
2487
|
-
index:
|
|
2488
|
-
input:
|
|
2484
|
+
g.lastIndex = 0;
|
|
2485
|
+
let _ = g.exec(o.value);
|
|
2486
|
+
for (; _; ) {
|
|
2487
|
+
const z = _.index, y = {
|
|
2488
|
+
index: _.index,
|
|
2489
|
+
input: _.input,
|
|
2489
2490
|
// @ts-expect-error: stack is fine.
|
|
2490
2491
|
stack: [...p, o]
|
|
2491
2492
|
};
|
|
2492
|
-
let
|
|
2493
|
-
if (typeof
|
|
2493
|
+
let L = w(..._, y);
|
|
2494
|
+
if (typeof L == "string" && (L = L.length > 0 ? { type: "text", value: L } : void 0), L !== !1 && (C !== z && F.push({
|
|
2494
2495
|
type: "text",
|
|
2495
2496
|
value: o.value.slice(C, z)
|
|
2496
|
-
}), Array.isArray(
|
|
2497
|
+
}), Array.isArray(L) ? F.push(...L) : L && F.push(L), C = z + _[0].length, I = !0), !g.global)
|
|
2497
2498
|
break;
|
|
2498
|
-
|
|
2499
|
+
_ = g.exec(o.value);
|
|
2499
2500
|
}
|
|
2500
2501
|
return I ? (C < o.value.length && F.push({ type: "text", value: o.value.slice(C) }), h.children.splice(b, 1, ...F)) : F = [o], b + F.length;
|
|
2501
2502
|
}
|
|
@@ -2528,7 +2529,7 @@ function Ge(t) {
|
|
|
2528
2529
|
const ne = "phrasing", re = ["autolink", "link", "image", "label"], Du = {
|
|
2529
2530
|
transforms: [Ru],
|
|
2530
2531
|
enter: {
|
|
2531
|
-
literalAutolink:
|
|
2532
|
+
literalAutolink: _u,
|
|
2532
2533
|
literalAutolinkEmail: ie,
|
|
2533
2534
|
literalAutolinkHttp: ie,
|
|
2534
2535
|
literalAutolinkWww: ie
|
|
@@ -2539,7 +2540,7 @@ const ne = "phrasing", re = ["autolink", "link", "image", "label"], Du = {
|
|
|
2539
2540
|
literalAutolinkHttp: Bu,
|
|
2540
2541
|
literalAutolinkWww: Pu
|
|
2541
2542
|
}
|
|
2542
|
-
},
|
|
2543
|
+
}, Lu = {
|
|
2543
2544
|
unsafe: [
|
|
2544
2545
|
{
|
|
2545
2546
|
character: "@",
|
|
@@ -2558,7 +2559,7 @@ const ne = "phrasing", re = ["autolink", "link", "image", "label"], Du = {
|
|
|
2558
2559
|
{ character: ":", before: "[ps]", after: "\\/", inConstruct: ne, notInConstruct: re }
|
|
2559
2560
|
]
|
|
2560
2561
|
};
|
|
2561
|
-
function
|
|
2562
|
+
function _u(t) {
|
|
2562
2563
|
this.enter({ type: "link", title: null, url: "", children: [] }, t);
|
|
2563
2564
|
}
|
|
2564
2565
|
function ie(t) {
|
|
@@ -2593,7 +2594,7 @@ function Ru(t) {
|
|
|
2593
2594
|
}
|
|
2594
2595
|
function ju(t, n, e, r, i) {
|
|
2595
2596
|
let l = "";
|
|
2596
|
-
if (!
|
|
2597
|
+
if (!Ln(i) || (/^w/i.test(n) && (e = n + e, n = "", l = "http://"), !qu(e)))
|
|
2597
2598
|
return !1;
|
|
2598
2599
|
const u = Hu(e + r);
|
|
2599
2600
|
if (!u[0]) return !1;
|
|
@@ -2608,7 +2609,7 @@ function ju(t, n, e, r, i) {
|
|
|
2608
2609
|
function Vu(t, n, e, r) {
|
|
2609
2610
|
return (
|
|
2610
2611
|
// Not an expected previous character.
|
|
2611
|
-
!
|
|
2612
|
+
!Ln(r, !0) || // Label ends in not allowed character.
|
|
2612
2613
|
/[-\d_]$/.test(e) ? !1 : {
|
|
2613
2614
|
type: "link",
|
|
2614
2615
|
title: null,
|
|
@@ -2627,17 +2628,17 @@ function Hu(t) {
|
|
|
2627
2628
|
return [t, void 0];
|
|
2628
2629
|
t = t.slice(0, n.index);
|
|
2629
2630
|
let e = n[0], r = e.indexOf(")");
|
|
2630
|
-
const i =
|
|
2631
|
-
let l =
|
|
2631
|
+
const i = We(t, "(");
|
|
2632
|
+
let l = We(t, ")");
|
|
2632
2633
|
for (; r !== -1 && i > l; )
|
|
2633
2634
|
t += e.slice(0, r + 1), e = e.slice(r + 1), r = e.indexOf(")"), l++;
|
|
2634
2635
|
return [t, e];
|
|
2635
2636
|
}
|
|
2636
|
-
function
|
|
2637
|
+
function Ln(t, n) {
|
|
2637
2638
|
const e = t.input.charCodeAt(t.index - 1);
|
|
2638
2639
|
return (t.index === 0 || St(e) || Qt(e)) && (!n || e !== 47);
|
|
2639
2640
|
}
|
|
2640
|
-
function
|
|
2641
|
+
function _n(t, n) {
|
|
2641
2642
|
const e = Number.parseInt(t, n);
|
|
2642
2643
|
return (
|
|
2643
2644
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -2657,14 +2658,14 @@ function $u(t, n, e) {
|
|
|
2657
2658
|
return n;
|
|
2658
2659
|
if (e.charCodeAt(0) === 35) {
|
|
2659
2660
|
const i = e.charCodeAt(1), l = i === 120 || i === 88;
|
|
2660
|
-
return
|
|
2661
|
+
return _n(e.slice(l ? 2 : 1), l ? 16 : 10);
|
|
2661
2662
|
}
|
|
2662
2663
|
return Ce(e) || t;
|
|
2663
2664
|
}
|
|
2664
2665
|
function Pn(t) {
|
|
2665
2666
|
return t.label || !t.identifier ? t.label || "" : Bn(t.identifier);
|
|
2666
2667
|
}
|
|
2667
|
-
function
|
|
2668
|
+
function vu(t, n, e) {
|
|
2668
2669
|
const r = n.indexStack, i = t.children || [], l = n.createTracker(e), u = [];
|
|
2669
2670
|
let a = -1;
|
|
2670
2671
|
for (r.push(-1); ++a < i.length; ) {
|
|
@@ -2680,12 +2681,12 @@ function Uu(t, n, e) {
|
|
|
2680
2681
|
})
|
|
2681
2682
|
)
|
|
2682
2683
|
), c.type !== "list" && (n.bulletLastUsed = void 0), a < i.length - 1 && u.push(
|
|
2683
|
-
l.move(
|
|
2684
|
+
l.move(Uu(c, i[a + 1], t, n))
|
|
2684
2685
|
);
|
|
2685
2686
|
}
|
|
2686
2687
|
return r.pop(), u.join("");
|
|
2687
2688
|
}
|
|
2688
|
-
function
|
|
2689
|
+
function Uu(t, n, e, r) {
|
|
2689
2690
|
let i = r.join.length;
|
|
2690
2691
|
for (; i--; ) {
|
|
2691
2692
|
const l = r.join[i](t, n, e, r);
|
|
@@ -2705,11 +2706,11 @@ function Wu(t, n, e, r) {
|
|
|
2705
2706
|
|
|
2706
2707
|
`;
|
|
2707
2708
|
}
|
|
2708
|
-
const
|
|
2709
|
+
const Wu = /\r?\n|\r/g;
|
|
2709
2710
|
function Qu(t, n) {
|
|
2710
2711
|
const e = [];
|
|
2711
2712
|
let r = 0, i = 0, l;
|
|
2712
|
-
for (; l =
|
|
2713
|
+
for (; l = Wu.exec(t); )
|
|
2713
2714
|
u(t.slice(r, l.index)), e.push(l[0]), r = l.index + l[0].length, i++;
|
|
2714
2715
|
return u(t.slice(r)), e.join("");
|
|
2715
2716
|
function u(a) {
|
|
@@ -2748,8 +2749,8 @@ function On(t, n, e) {
|
|
|
2748
2749
|
const o = Mn(f);
|
|
2749
2750
|
let p;
|
|
2750
2751
|
for (; p = o.exec(r); ) {
|
|
2751
|
-
const h = "before" in f || !!f.atBreak,
|
|
2752
|
-
i.includes(w) ? (u[w].before && !h && (u[w].before = !1), u[w].after && !
|
|
2752
|
+
const h = "before" in f || !!f.atBreak, g = "after" in f, w = p.index + (h ? p[1].length : 0);
|
|
2753
|
+
i.includes(w) ? (u[w].before && !h && (u[w].before = !1), u[w].after && !g && (u[w].after = !1)) : (i.push(w), u[w] = { before: h, after: g });
|
|
2753
2754
|
}
|
|
2754
2755
|
}
|
|
2755
2756
|
i.sort(Gu);
|
|
@@ -2881,7 +2882,7 @@ function al(t, n, e, r) {
|
|
|
2881
2882
|
), a(), l += i.move(
|
|
2882
2883
|
"]:" + (t.children && t.children.length > 0 ? " " : "")
|
|
2883
2884
|
), i.shift(4), l += i.move(
|
|
2884
|
-
Qu(
|
|
2885
|
+
Qu(vu(t, e, i.current()), ol)
|
|
2885
2886
|
), u(), l;
|
|
2886
2887
|
}
|
|
2887
2888
|
function ol(t, n, e) {
|
|
@@ -2961,7 +2962,7 @@ function Vn(t, n, e, r) {
|
|
|
2961
2962
|
function ml() {
|
|
2962
2963
|
return "~";
|
|
2963
2964
|
}
|
|
2964
|
-
qn.peek =
|
|
2965
|
+
qn.peek = dl;
|
|
2965
2966
|
function qn(t, n, e) {
|
|
2966
2967
|
let r = t.value || "", i = "`", l = -1;
|
|
2967
2968
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
@@ -2977,14 +2978,14 @@ function qn(t, n, e) {
|
|
|
2977
2978
|
}
|
|
2978
2979
|
return i + r + i;
|
|
2979
2980
|
}
|
|
2980
|
-
function
|
|
2981
|
+
function dl() {
|
|
2981
2982
|
return "`";
|
|
2982
2983
|
}
|
|
2983
|
-
function
|
|
2984
|
+
function gl(t) {
|
|
2984
2985
|
return t.length;
|
|
2985
2986
|
}
|
|
2986
2987
|
function kl(t, n) {
|
|
2987
|
-
const e = n || {}, r = (e.align || []).concat(), i = e.stringLength ||
|
|
2988
|
+
const e = n || {}, r = (e.align || []).concat(), i = e.stringLength || gl, l = [], u = [], a = [], c = [];
|
|
2988
2989
|
let s = 0, f = -1;
|
|
2989
2990
|
for (; ++f < t.length; ) {
|
|
2990
2991
|
const w = [], C = [];
|
|
@@ -3022,27 +3023,27 @@ function kl(t, n) {
|
|
|
3022
3023
|
e.alignDelimiters !== !1 && (I = C.length + I + b.length, I > c[o] && (c[o] = I), h[o] = I), p[o] = F;
|
|
3023
3024
|
}
|
|
3024
3025
|
u.splice(1, 0, p), a.splice(1, 0, h), f = -1;
|
|
3025
|
-
const
|
|
3026
|
+
const g = [];
|
|
3026
3027
|
for (; ++f < u.length; ) {
|
|
3027
3028
|
const w = u[f], C = a[f];
|
|
3028
3029
|
o = -1;
|
|
3029
3030
|
const b = [];
|
|
3030
3031
|
for (; ++o < s; ) {
|
|
3031
3032
|
const I = w[o] || "";
|
|
3032
|
-
let F = "",
|
|
3033
|
+
let F = "", _ = "";
|
|
3033
3034
|
if (e.alignDelimiters !== !1) {
|
|
3034
3035
|
const z = c[o] - (C[o] || 0), y = l[o];
|
|
3035
|
-
y === 114 ? F = " ".repeat(z) : y === 99 ? z % 2 ? (F = " ".repeat(z / 2 + 0.5),
|
|
3036
|
+
y === 114 ? F = " ".repeat(z) : y === 99 ? z % 2 ? (F = " ".repeat(z / 2 + 0.5), _ = " ".repeat(z / 2 - 0.5)) : (F = " ".repeat(z / 2), _ = F) : _ = " ".repeat(z);
|
|
3036
3037
|
}
|
|
3037
3038
|
e.delimiterStart !== !1 && !o && b.push("|"), e.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
3038
3039
|
// empty: there will be a closing space.
|
|
3039
|
-
!(e.alignDelimiters === !1 && I === "") && (e.delimiterStart !== !1 || o) && b.push(" "), e.alignDelimiters !== !1 && b.push(F), b.push(I), e.alignDelimiters !== !1 && b.push(
|
|
3040
|
+
!(e.alignDelimiters === !1 && I === "") && (e.delimiterStart !== !1 || o) && b.push(" "), e.alignDelimiters !== !1 && b.push(F), b.push(I), e.alignDelimiters !== !1 && b.push(_), e.padding !== !1 && b.push(" "), (e.delimiterEnd !== !1 || o !== s - 1) && b.push("|");
|
|
3040
3041
|
}
|
|
3041
|
-
|
|
3042
|
+
g.push(
|
|
3042
3043
|
e.delimiterEnd === !1 ? b.join("").replace(/ +$/, "") : b.join("")
|
|
3043
3044
|
);
|
|
3044
3045
|
}
|
|
3045
|
-
return
|
|
3046
|
+
return g.join(`
|
|
3046
3047
|
`);
|
|
3047
3048
|
}
|
|
3048
3049
|
function xl(t) {
|
|
@@ -3131,18 +3132,18 @@ function Al(t) {
|
|
|
3131
3132
|
inlineCode: p
|
|
3132
3133
|
}
|
|
3133
3134
|
};
|
|
3134
|
-
function u(h,
|
|
3135
|
+
function u(h, g, w, C) {
|
|
3135
3136
|
return s(
|
|
3136
3137
|
f(h, w, C),
|
|
3137
3138
|
h.align
|
|
3138
3139
|
);
|
|
3139
3140
|
}
|
|
3140
|
-
function a(h,
|
|
3141
|
+
function a(h, g, w, C) {
|
|
3141
3142
|
const b = o(h, w, C), I = s([b]);
|
|
3142
3143
|
return I.slice(0, I.indexOf(`
|
|
3143
3144
|
`));
|
|
3144
3145
|
}
|
|
3145
|
-
function c(h,
|
|
3146
|
+
function c(h, g, w, C) {
|
|
3146
3147
|
const b = w.enter("tableCell"), I = w.enter("phrasing"), F = jn(h, w, {
|
|
3147
3148
|
...C,
|
|
3148
3149
|
before: l,
|
|
@@ -3150,9 +3151,9 @@ function Al(t) {
|
|
|
3150
3151
|
});
|
|
3151
3152
|
return I(), b(), F;
|
|
3152
3153
|
}
|
|
3153
|
-
function s(h,
|
|
3154
|
+
function s(h, g) {
|
|
3154
3155
|
return kl(h, {
|
|
3155
|
-
align:
|
|
3156
|
+
align: g,
|
|
3156
3157
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
3157
3158
|
alignDelimiters: r,
|
|
3158
3159
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
@@ -3161,33 +3162,33 @@ function Al(t) {
|
|
|
3161
3162
|
stringLength: i
|
|
3162
3163
|
});
|
|
3163
3164
|
}
|
|
3164
|
-
function f(h,
|
|
3165
|
+
function f(h, g, w) {
|
|
3165
3166
|
const C = h.children;
|
|
3166
3167
|
let b = -1;
|
|
3167
|
-
const I = [], F =
|
|
3168
|
+
const I = [], F = g.enter("table");
|
|
3168
3169
|
for (; ++b < C.length; )
|
|
3169
3170
|
I[b] = o(
|
|
3170
3171
|
C[b],
|
|
3171
|
-
|
|
3172
|
+
g,
|
|
3172
3173
|
w
|
|
3173
3174
|
);
|
|
3174
3175
|
return F(), I;
|
|
3175
3176
|
}
|
|
3176
|
-
function o(h,
|
|
3177
|
+
function o(h, g, w) {
|
|
3177
3178
|
const C = h.children;
|
|
3178
3179
|
let b = -1;
|
|
3179
|
-
const I = [], F =
|
|
3180
|
+
const I = [], F = g.enter("tableRow");
|
|
3180
3181
|
for (; ++b < C.length; )
|
|
3181
3182
|
I[b] = c(
|
|
3182
3183
|
C[b],
|
|
3183
3184
|
h,
|
|
3184
|
-
|
|
3185
|
+
g,
|
|
3185
3186
|
w
|
|
3186
3187
|
);
|
|
3187
3188
|
return F(), I;
|
|
3188
3189
|
}
|
|
3189
|
-
function p(h,
|
|
3190
|
-
let C = qn(h,
|
|
3190
|
+
function p(h, g, w) {
|
|
3191
|
+
let C = qn(h, g, w);
|
|
3191
3192
|
return w.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
|
|
3192
3193
|
}
|
|
3193
3194
|
}
|
|
@@ -3230,11 +3231,11 @@ const Tl = {
|
|
|
3230
3231
|
exit: {
|
|
3231
3232
|
taskListCheckValueChecked: tn,
|
|
3232
3233
|
taskListCheckValueUnchecked: tn,
|
|
3233
|
-
paragraph:
|
|
3234
|
+
paragraph: Ll
|
|
3234
3235
|
}
|
|
3235
3236
|
}, Dl = {
|
|
3236
3237
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
3237
|
-
handlers: { listItem:
|
|
3238
|
+
handlers: { listItem: _l }
|
|
3238
3239
|
};
|
|
3239
3240
|
function tn(t) {
|
|
3240
3241
|
const n = (
|
|
@@ -3243,7 +3244,7 @@ function tn(t) {
|
|
|
3243
3244
|
);
|
|
3244
3245
|
n.checked = t.type === "taskListCheckValueChecked";
|
|
3245
3246
|
}
|
|
3246
|
-
function
|
|
3247
|
+
function Ll(t) {
|
|
3247
3248
|
const n = (
|
|
3248
3249
|
/** @type {Parents} */
|
|
3249
3250
|
this.stack[this.stack.length - 2]
|
|
@@ -3268,7 +3269,7 @@ function _l(t) {
|
|
|
3268
3269
|
}
|
|
3269
3270
|
this.exit(t);
|
|
3270
3271
|
}
|
|
3271
|
-
function
|
|
3272
|
+
function _l(t, n, e, r) {
|
|
3272
3273
|
const i = t.children[0], l = typeof t.checked == "boolean" && i && i.type === "paragraph", u = "[" + (t.checked ? "x" : " ") + "] ", a = Yt(r);
|
|
3273
3274
|
l && a.move(u);
|
|
3274
3275
|
let c = Il(t, n, e, {
|
|
@@ -3292,7 +3293,7 @@ function Bl() {
|
|
|
3292
3293
|
function Pl(t) {
|
|
3293
3294
|
return {
|
|
3294
3295
|
extensions: [
|
|
3295
|
-
|
|
3296
|
+
Lu,
|
|
3296
3297
|
Ju(),
|
|
3297
3298
|
fl,
|
|
3298
3299
|
Al(t),
|
|
@@ -3349,11 +3350,11 @@ function Rl() {
|
|
|
3349
3350
|
return s[f];
|
|
3350
3351
|
};
|
|
3351
3352
|
return le = function c() {
|
|
3352
|
-
var s, f, o, p, h,
|
|
3353
|
+
var s, f, o, p, h, g, w = arguments[0], C = 1, b = arguments.length, I = !1;
|
|
3353
3354
|
for (typeof w == "boolean" && (I = w, w = arguments[1] || {}, C = 2), (w == null || typeof w != "object" && typeof w != "function") && (w = {}); C < b; ++C)
|
|
3354
3355
|
if (s = arguments[C], s != null)
|
|
3355
3356
|
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,
|
|
3357
|
+
o = a(w, f), p = a(s, f), w !== p && (I && p && (l(p) || (h = i(p))) ? (h ? (h = !1, g = o && i(o) ? o : []) : g = o && l(o) ? o : {}, u(w, { name: f, newValue: c(I, g, p) })) : typeof p < "u" && u(w, { name: f, newValue: p }));
|
|
3357
3358
|
return w;
|
|
3358
3359
|
}, le;
|
|
3359
3360
|
}
|
|
@@ -3520,7 +3521,7 @@ K.prototype.fatal = void 0;
|
|
|
3520
3521
|
K.prototype.place = void 0;
|
|
3521
3522
|
K.prototype.ruleId = void 0;
|
|
3522
3523
|
K.prototype.source = void 0;
|
|
3523
|
-
const lt = { basename: Nl, dirname: $l, extname:
|
|
3524
|
+
const lt = { basename: Nl, dirname: $l, extname: vl, join: Ul, sep: "/" };
|
|
3524
3525
|
function Nl(t, n) {
|
|
3525
3526
|
if (n !== void 0 && typeof n != "string")
|
|
3526
3527
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -3562,7 +3563,7 @@ function $l(t) {
|
|
|
3562
3563
|
} else r || (r = !0);
|
|
3563
3564
|
return n < 0 ? t.codePointAt(0) === 47 ? "/" : "." : n === 1 && t.codePointAt(0) === 47 ? "//" : t.slice(0, n);
|
|
3564
3565
|
}
|
|
3565
|
-
function
|
|
3566
|
+
function vl(t) {
|
|
3566
3567
|
Rt(t);
|
|
3567
3568
|
let n = t.length, e = -1, r = 0, i = -1, l = 0, u;
|
|
3568
3569
|
for (; n--; ) {
|
|
@@ -3580,13 +3581,13 @@ function Ul(t) {
|
|
|
3580
3581
|
l === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
3581
3582
|
l === 1 && i === e - 1 && i === r + 1 ? "" : t.slice(i, e);
|
|
3582
3583
|
}
|
|
3583
|
-
function
|
|
3584
|
+
function Ul(...t) {
|
|
3584
3585
|
let n = -1, e;
|
|
3585
3586
|
for (; ++n < t.length; )
|
|
3586
3587
|
Rt(t[n]), t[n] && (e = e === void 0 ? t[n] : e + "/" + t[n]);
|
|
3587
|
-
return e === void 0 ? "." :
|
|
3588
|
+
return e === void 0 ? "." : Wl(e);
|
|
3588
3589
|
}
|
|
3589
|
-
function
|
|
3590
|
+
function Wl(t) {
|
|
3590
3591
|
Rt(t);
|
|
3591
3592
|
const n = t.codePointAt(0) === 47;
|
|
3592
3593
|
let e = Ql(t, !n);
|
|
@@ -4297,8 +4298,8 @@ class ze extends ta {
|
|
|
4297
4298
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
4298
4299
|
/** @type {unknown} */
|
|
4299
4300
|
o
|
|
4300
|
-
),
|
|
4301
|
-
ia(
|
|
4301
|
+
), g = r.stringify(h, p);
|
|
4302
|
+
ia(g) ? p.value = g : p.result = g, s(
|
|
4302
4303
|
f,
|
|
4303
4304
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
4304
4305
|
p
|
|
@@ -4567,9 +4568,9 @@ class ze extends ta {
|
|
|
4567
4568
|
if (p === -1)
|
|
4568
4569
|
r.push([s, ...f]);
|
|
4569
4570
|
else if (f.length > 0) {
|
|
4570
|
-
let [h, ...
|
|
4571
|
+
let [h, ...g] = f;
|
|
4571
4572
|
const w = r[p][1];
|
|
4572
|
-
xe(w) && xe(h) && (h = ae(!0, w, h)), r[p] = [s, h, ...
|
|
4573
|
+
xe(w) && xe(h) && (h = ae(!0, w, h)), r[p] = [s, h, ...g];
|
|
4573
4574
|
}
|
|
4574
4575
|
}
|
|
4575
4576
|
}
|
|
@@ -4684,9 +4685,9 @@ function ha(t) {
|
|
|
4684
4685
|
return a;
|
|
4685
4686
|
function a(F) {
|
|
4686
4687
|
if (r < e.length) {
|
|
4687
|
-
const
|
|
4688
|
-
return n.containerState =
|
|
4689
|
-
|
|
4688
|
+
const _ = e[r];
|
|
4689
|
+
return n.containerState = _[1], t.attempt(
|
|
4690
|
+
_[0].continuation,
|
|
4690
4691
|
c,
|
|
4691
4692
|
s
|
|
4692
4693
|
)(F);
|
|
@@ -4696,23 +4697,23 @@ function ha(t) {
|
|
|
4696
4697
|
function c(F) {
|
|
4697
4698
|
if (r++, n.containerState._closeFlow) {
|
|
4698
4699
|
n.containerState._closeFlow = void 0, i && I();
|
|
4699
|
-
const
|
|
4700
|
-
let z =
|
|
4700
|
+
const _ = n.events.length;
|
|
4701
|
+
let z = _, y;
|
|
4701
4702
|
for (; z--; )
|
|
4702
4703
|
if (n.events[z][0] === "exit" && n.events[z][1].type === "chunkFlow") {
|
|
4703
4704
|
y = n.events[z][1].end;
|
|
4704
4705
|
break;
|
|
4705
4706
|
}
|
|
4706
4707
|
b(r);
|
|
4707
|
-
let
|
|
4708
|
-
for (;
|
|
4709
|
-
n.events[
|
|
4708
|
+
let L = _;
|
|
4709
|
+
for (; L < n.events.length; )
|
|
4710
|
+
n.events[L][1].end = Object.assign({}, y), L++;
|
|
4710
4711
|
return X(
|
|
4711
4712
|
n.events,
|
|
4712
4713
|
z + 1,
|
|
4713
4714
|
0,
|
|
4714
|
-
n.events.slice(
|
|
4715
|
-
), n.events.length =
|
|
4715
|
+
n.events.slice(_)
|
|
4716
|
+
), n.events.length = L, s(F);
|
|
4716
4717
|
}
|
|
4717
4718
|
return a(F);
|
|
4718
4719
|
}
|
|
@@ -4721,7 +4722,7 @@ function ha(t) {
|
|
|
4721
4722
|
if (!i)
|
|
4722
4723
|
return p(F);
|
|
4723
4724
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
|
4724
|
-
return
|
|
4725
|
+
return g(F);
|
|
4725
4726
|
n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
4726
4727
|
}
|
|
4727
4728
|
return n.containerState = {}, t.check(
|
|
@@ -4734,19 +4735,19 @@ function ha(t) {
|
|
|
4734
4735
|
return i && I(), b(r), p(F);
|
|
4735
4736
|
}
|
|
4736
4737
|
function o(F) {
|
|
4737
|
-
return n.parser.lazy[n.now().line] = r !== e.length, u = n.now().offset,
|
|
4738
|
+
return n.parser.lazy[n.now().line] = r !== e.length, u = n.now().offset, g(F);
|
|
4738
4739
|
}
|
|
4739
4740
|
function p(F) {
|
|
4740
4741
|
return n.containerState = {}, t.attempt(
|
|
4741
4742
|
cn,
|
|
4742
4743
|
h,
|
|
4743
|
-
|
|
4744
|
+
g
|
|
4744
4745
|
)(F);
|
|
4745
4746
|
}
|
|
4746
4747
|
function h(F) {
|
|
4747
4748
|
return r++, e.push([n.currentConstruct, n.containerState]), p(F);
|
|
4748
4749
|
}
|
|
4749
|
-
function
|
|
4750
|
+
function g(F) {
|
|
4750
4751
|
if (F === null) {
|
|
4751
4752
|
i && I(), b(0), t.consume(F);
|
|
4752
4753
|
return;
|
|
@@ -4764,9 +4765,9 @@ function ha(t) {
|
|
|
4764
4765
|
}
|
|
4765
4766
|
return T(F) ? (t.consume(F), C(t.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (t.consume(F), w);
|
|
4766
4767
|
}
|
|
4767
|
-
function C(F,
|
|
4768
|
+
function C(F, _) {
|
|
4768
4769
|
const z = n.sliceStream(F);
|
|
4769
|
-
if (
|
|
4770
|
+
if (_ && z.push(null), F.previous = l, l && (l.next = F), l = F, i.defineSkip(F.start), i.write(z), n.parser.lazy[F.start.line]) {
|
|
4770
4771
|
let y = i.events.length;
|
|
4771
4772
|
for (; y--; )
|
|
4772
4773
|
if (
|
|
@@ -4776,8 +4777,8 @@ function ha(t) {
|
|
|
4776
4777
|
i.events[y][1].end.offset > u)
|
|
4777
4778
|
)
|
|
4778
4779
|
return;
|
|
4779
|
-
const
|
|
4780
|
-
let q =
|
|
4780
|
+
const L = n.events.length;
|
|
4781
|
+
let q = L, $, k;
|
|
4781
4782
|
for (; q--; )
|
|
4782
4783
|
if (n.events[q][0] === "exit" && n.events[q][1].type === "chunkFlow") {
|
|
4783
4784
|
if ($) {
|
|
@@ -4786,20 +4787,20 @@ function ha(t) {
|
|
|
4786
4787
|
}
|
|
4787
4788
|
$ = !0;
|
|
4788
4789
|
}
|
|
4789
|
-
for (b(r), y =
|
|
4790
|
+
for (b(r), y = L; y < n.events.length; )
|
|
4790
4791
|
n.events[y][1].end = Object.assign({}, k), y++;
|
|
4791
4792
|
X(
|
|
4792
4793
|
n.events,
|
|
4793
4794
|
q + 1,
|
|
4794
4795
|
0,
|
|
4795
|
-
n.events.slice(
|
|
4796
|
+
n.events.slice(L)
|
|
4796
4797
|
), n.events.length = y;
|
|
4797
4798
|
}
|
|
4798
4799
|
}
|
|
4799
4800
|
function b(F) {
|
|
4800
|
-
let
|
|
4801
|
-
for (;
|
|
4802
|
-
const z = e[
|
|
4801
|
+
let _ = e.length;
|
|
4802
|
+
for (; _-- > F; ) {
|
|
4803
|
+
const z = e[_];
|
|
4803
4804
|
n.containerState = z[1], z[0].exit.call(n, t);
|
|
4804
4805
|
}
|
|
4805
4806
|
e.length = F;
|
|
@@ -4817,9 +4818,9 @@ function pa(t, n, e) {
|
|
|
4817
4818
|
);
|
|
4818
4819
|
}
|
|
4819
4820
|
const ma = {
|
|
4820
|
-
tokenize:
|
|
4821
|
+
tokenize: da
|
|
4821
4822
|
};
|
|
4822
|
-
function
|
|
4823
|
+
function da(t) {
|
|
4823
4824
|
const n = this, e = t.attempt(
|
|
4824
4825
|
// Try to parse a blank line.
|
|
4825
4826
|
Ot,
|
|
@@ -4855,7 +4856,7 @@ function ga(t) {
|
|
|
4855
4856
|
return t.enter("lineEnding"), t.consume(l), t.exit("lineEnding"), n.currentConstruct = void 0, e;
|
|
4856
4857
|
}
|
|
4857
4858
|
}
|
|
4858
|
-
const
|
|
4859
|
+
const ga = {
|
|
4859
4860
|
resolveAll: $n()
|
|
4860
4861
|
}, ka = Nn("string"), xa = Nn("text");
|
|
4861
4862
|
function Nn(t) {
|
|
@@ -4965,10 +4966,10 @@ function ya(t, n, e) {
|
|
|
4965
4966
|
const c = {
|
|
4966
4967
|
consume: I,
|
|
4967
4968
|
enter: F,
|
|
4968
|
-
exit:
|
|
4969
|
-
attempt:
|
|
4970
|
-
check:
|
|
4971
|
-
interrupt:
|
|
4969
|
+
exit: _,
|
|
4970
|
+
attempt: L(z),
|
|
4971
|
+
check: L(y),
|
|
4972
|
+
interrupt: L(y, {
|
|
4972
4973
|
interrupt: !0
|
|
4973
4974
|
})
|
|
4974
4975
|
}, s = {
|
|
@@ -4979,7 +4980,7 @@ function ya(t, n, e) {
|
|
|
4979
4980
|
parser: t,
|
|
4980
4981
|
sliceStream: h,
|
|
4981
4982
|
sliceSerialize: p,
|
|
4982
|
-
now:
|
|
4983
|
+
now: g,
|
|
4983
4984
|
defineSkip: w,
|
|
4984
4985
|
write: o
|
|
4985
4986
|
};
|
|
@@ -4994,7 +4995,7 @@ function ya(t, n, e) {
|
|
|
4994
4995
|
function h(A) {
|
|
4995
4996
|
return wa(u, A);
|
|
4996
4997
|
}
|
|
4997
|
-
function
|
|
4998
|
+
function g() {
|
|
4998
4999
|
const { line: A, column: E, offset: R, _index: H, _bufferIndex: M } = r;
|
|
4999
5000
|
return {
|
|
5000
5001
|
line: A,
|
|
@@ -5026,11 +5027,11 @@ function ya(t, n, e) {
|
|
|
5026
5027
|
}
|
|
5027
5028
|
function F(A, E) {
|
|
5028
5029
|
const R = E || {};
|
|
5029
|
-
return R.type = A, R.start =
|
|
5030
|
+
return R.type = A, R.start = g(), s.events.push(["enter", R, s]), a.push(R), R;
|
|
5030
5031
|
}
|
|
5031
|
-
function
|
|
5032
|
+
function _(A) {
|
|
5032
5033
|
const E = a.pop();
|
|
5033
|
-
return E.end =
|
|
5034
|
+
return E.end = g(), s.events.push(["exit", E, s]), E;
|
|
5034
5035
|
}
|
|
5035
5036
|
function z(A, E) {
|
|
5036
5037
|
q(A, E.from);
|
|
@@ -5038,33 +5039,33 @@ function ya(t, n, e) {
|
|
|
5038
5039
|
function y(A, E) {
|
|
5039
5040
|
E.restore();
|
|
5040
5041
|
}
|
|
5041
|
-
function
|
|
5042
|
+
function L(A, E) {
|
|
5042
5043
|
return R;
|
|
5043
|
-
function R(H, M,
|
|
5044
|
-
let
|
|
5044
|
+
function R(H, M, W) {
|
|
5045
|
+
let v, et, ot, m;
|
|
5045
5046
|
return Array.isArray(H) ? st(H) : "tokenize" in H ? (
|
|
5046
5047
|
// @ts-expect-error Looks like a construct.
|
|
5047
5048
|
st([H])
|
|
5048
5049
|
) : nt(H);
|
|
5049
|
-
function nt(
|
|
5050
|
+
function nt(U) {
|
|
5050
5051
|
return At;
|
|
5051
|
-
function At(
|
|
5052
|
-
const Et =
|
|
5052
|
+
function At(dt) {
|
|
5053
|
+
const Et = dt !== null && U[dt], zt = dt !== null && U.null, Jt = [
|
|
5053
5054
|
// To do: add more extension tests.
|
|
5054
5055
|
/* c8 ignore next 2 */
|
|
5055
5056
|
...Array.isArray(Et) ? Et : Et ? [Et] : [],
|
|
5056
5057
|
...Array.isArray(zt) ? zt : zt ? [zt] : []
|
|
5057
5058
|
];
|
|
5058
|
-
return st(Jt)(
|
|
5059
|
+
return st(Jt)(dt);
|
|
5059
5060
|
}
|
|
5060
5061
|
}
|
|
5061
|
-
function st(
|
|
5062
|
-
return
|
|
5062
|
+
function st(U) {
|
|
5063
|
+
return v = U, et = 0, U.length === 0 ? W : d(U[et]);
|
|
5063
5064
|
}
|
|
5064
|
-
function
|
|
5065
|
+
function d(U) {
|
|
5065
5066
|
return At;
|
|
5066
|
-
function At(
|
|
5067
|
-
return m = $(), ot =
|
|
5067
|
+
function At(dt) {
|
|
5068
|
+
return m = $(), ot = U, U.partial || (s.currentConstruct = U), U.name && s.parser.constructs.disable.null.includes(U.name) ? Ct() : U.tokenize.call(
|
|
5068
5069
|
// If we do have fields, create an object w/ `context` as its
|
|
5069
5070
|
// prototype.
|
|
5070
5071
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -5072,14 +5073,14 @@ function ya(t, n, e) {
|
|
|
5072
5073
|
c,
|
|
5073
5074
|
rt,
|
|
5074
5075
|
Ct
|
|
5075
|
-
)(
|
|
5076
|
+
)(dt);
|
|
5076
5077
|
}
|
|
5077
5078
|
}
|
|
5078
|
-
function rt(
|
|
5079
|
+
function rt(U) {
|
|
5079
5080
|
return A(ot, m), M;
|
|
5080
5081
|
}
|
|
5081
|
-
function Ct(
|
|
5082
|
-
return m.restore(), ++et <
|
|
5082
|
+
function Ct(U) {
|
|
5083
|
+
return m.restore(), ++et < v.length ? d(v[et]) : W;
|
|
5083
5084
|
}
|
|
5084
5085
|
}
|
|
5085
5086
|
}
|
|
@@ -5092,12 +5093,12 @@ function ya(t, n, e) {
|
|
|
5092
5093
|
), A.resolveTo && (s.events = A.resolveTo(s.events, s));
|
|
5093
5094
|
}
|
|
5094
5095
|
function $() {
|
|
5095
|
-
const A =
|
|
5096
|
+
const A = g(), E = s.previous, R = s.currentConstruct, H = s.events.length, M = Array.from(a);
|
|
5096
5097
|
return {
|
|
5097
|
-
restore:
|
|
5098
|
+
restore: W,
|
|
5098
5099
|
from: H
|
|
5099
5100
|
};
|
|
5100
|
-
function
|
|
5101
|
+
function W() {
|
|
5101
5102
|
r = A, s.previous = E, s.currentConstruct = R, s.events.length = H, a = M, k();
|
|
5102
5103
|
}
|
|
5103
5104
|
}
|
|
@@ -5184,9 +5185,9 @@ const Sa = {
|
|
|
5184
5185
|
}, Ea = {
|
|
5185
5186
|
35: mi,
|
|
5186
5187
|
42: qt,
|
|
5187
|
-
45: [
|
|
5188
|
+
45: [ve, qt],
|
|
5188
5189
|
60: xi,
|
|
5189
|
-
61:
|
|
5190
|
+
61: ve,
|
|
5190
5191
|
95: qt,
|
|
5191
5192
|
96: Ne,
|
|
5192
5193
|
126: Ne
|
|
@@ -5207,16 +5208,16 @@ const Sa = {
|
|
|
5207
5208
|
95: ke,
|
|
5208
5209
|
96: Kr
|
|
5209
5210
|
}, Ta = {
|
|
5210
|
-
null: [ke,
|
|
5211
|
+
null: [ke, ga]
|
|
5211
5212
|
}, Da = {
|
|
5212
5213
|
null: [42, 95]
|
|
5213
|
-
},
|
|
5214
|
+
}, La = {
|
|
5214
5215
|
null: []
|
|
5215
|
-
},
|
|
5216
|
+
}, _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5216
5217
|
__proto__: null,
|
|
5217
5218
|
attentionMarkers: Da,
|
|
5218
5219
|
contentInitial: Ca,
|
|
5219
|
-
disable:
|
|
5220
|
+
disable: La,
|
|
5220
5221
|
document: Sa,
|
|
5221
5222
|
flow: Ea,
|
|
5222
5223
|
flowInitial: Aa,
|
|
@@ -5227,7 +5228,7 @@ const Sa = {
|
|
|
5227
5228
|
function Ba(t) {
|
|
5228
5229
|
const e = (
|
|
5229
5230
|
/** @type {FullNormalizedExtension} */
|
|
5230
|
-
|
|
5231
|
+
dn([_a, ...(t || {}).extensions || []])
|
|
5231
5232
|
), r = {
|
|
5232
5233
|
defined: [],
|
|
5233
5234
|
lazy: {},
|
|
@@ -5299,7 +5300,7 @@ function hn(t) {
|
|
|
5299
5300
|
function pn(t) {
|
|
5300
5301
|
return t && typeof t == "number" ? t : 1;
|
|
5301
5302
|
}
|
|
5302
|
-
const
|
|
5303
|
+
const vn = {}.hasOwnProperty, Oa = (
|
|
5303
5304
|
/**
|
|
5304
5305
|
* @type {(
|
|
5305
5306
|
* ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) &
|
|
@@ -5325,7 +5326,7 @@ function Ra(t) {
|
|
|
5325
5326
|
transforms: [],
|
|
5326
5327
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
5327
5328
|
enter: {
|
|
5328
|
-
autolink: a(
|
|
5329
|
+
autolink: a(_e),
|
|
5329
5330
|
autolinkProtocol: A,
|
|
5330
5331
|
autolinkEmail: A,
|
|
5331
5332
|
atxHeading: a(Te),
|
|
@@ -5347,15 +5348,15 @@ function Ra(t) {
|
|
|
5347
5348
|
emphasis: a(Yn),
|
|
5348
5349
|
hardBreakEscape: a(De),
|
|
5349
5350
|
hardBreakTrailing: a(De),
|
|
5350
|
-
htmlFlow: a(
|
|
5351
|
+
htmlFlow: a(Le, c),
|
|
5351
5352
|
htmlFlowData: A,
|
|
5352
|
-
htmlText: a(
|
|
5353
|
+
htmlText: a(Le, c),
|
|
5353
5354
|
htmlTextData: A,
|
|
5354
5355
|
image: a(Jn),
|
|
5355
5356
|
label: c,
|
|
5356
|
-
link: a(
|
|
5357
|
+
link: a(_e),
|
|
5357
5358
|
listItem: a(Kn),
|
|
5358
|
-
listItemValue:
|
|
5359
|
+
listItemValue: g,
|
|
5359
5360
|
listOrdered: a(Be, h),
|
|
5360
5361
|
listUnordered: a(Be),
|
|
5361
5362
|
paragraph: a(Xn),
|
|
@@ -5369,7 +5370,7 @@ function Ra(t) {
|
|
|
5369
5370
|
},
|
|
5370
5371
|
exit: {
|
|
5371
5372
|
atxHeading: f(),
|
|
5372
|
-
atxHeadingSequence:
|
|
5373
|
+
atxHeadingSequence: L,
|
|
5373
5374
|
autolink: f(),
|
|
5374
5375
|
autolinkEmail: zt,
|
|
5375
5376
|
autolinkProtocol: Et,
|
|
@@ -5377,26 +5378,26 @@ function Ra(t) {
|
|
|
5377
5378
|
characterEscapeValue: E,
|
|
5378
5379
|
characterReferenceMarkerHexadecimal: At,
|
|
5379
5380
|
characterReferenceMarkerNumeric: At,
|
|
5380
|
-
characterReferenceValue:
|
|
5381
|
+
characterReferenceValue: dt,
|
|
5381
5382
|
codeFenced: f(I),
|
|
5382
5383
|
codeFencedFence: b,
|
|
5383
5384
|
codeFencedFenceInfo: w,
|
|
5384
5385
|
codeFencedFenceMeta: C,
|
|
5385
5386
|
codeFlowValue: E,
|
|
5386
5387
|
codeIndented: f(F),
|
|
5387
|
-
codeText: f(
|
|
5388
|
+
codeText: f(v),
|
|
5388
5389
|
codeTextData: E,
|
|
5389
5390
|
data: E,
|
|
5390
5391
|
definition: f(),
|
|
5391
5392
|
definitionDestinationString: y,
|
|
5392
|
-
definitionLabelString:
|
|
5393
|
+
definitionLabelString: _,
|
|
5393
5394
|
definitionTitleString: z,
|
|
5394
5395
|
emphasis: f(),
|
|
5395
5396
|
hardBreakEscape: f(H),
|
|
5396
5397
|
hardBreakTrailing: f(H),
|
|
5397
5398
|
htmlFlow: f(M),
|
|
5398
5399
|
htmlFlowData: E,
|
|
5399
|
-
htmlText: f(
|
|
5400
|
+
htmlText: f(W),
|
|
5400
5401
|
htmlTextData: E,
|
|
5401
5402
|
image: f(ot),
|
|
5402
5403
|
label: nt,
|
|
@@ -5407,9 +5408,9 @@ function Ra(t) {
|
|
|
5407
5408
|
listOrdered: f(),
|
|
5408
5409
|
listUnordered: f(),
|
|
5409
5410
|
paragraph: f(),
|
|
5410
|
-
referenceString:
|
|
5411
|
+
referenceString: U,
|
|
5411
5412
|
resourceDestinationString: st,
|
|
5412
|
-
resourceTitleString:
|
|
5413
|
+
resourceTitleString: d,
|
|
5413
5414
|
resource: rt,
|
|
5414
5415
|
setextHeading: f(k),
|
|
5415
5416
|
setextHeadingLineSequence: $,
|
|
@@ -5418,7 +5419,7 @@ function Ra(t) {
|
|
|
5418
5419
|
thematicBreak: f()
|
|
5419
5420
|
}
|
|
5420
5421
|
};
|
|
5421
|
-
|
|
5422
|
+
Un(n, (t || {}).mdastExtensions || []);
|
|
5422
5423
|
const e = {};
|
|
5423
5424
|
return r;
|
|
5424
5425
|
function r(x) {
|
|
@@ -5448,7 +5449,7 @@ function Ra(t) {
|
|
|
5448
5449
|
}
|
|
5449
5450
|
for (j = -1; ++j < x.length; ) {
|
|
5450
5451
|
const it = n[x[j][0]];
|
|
5451
|
-
|
|
5452
|
+
vn.call(it, x[j][1].type) && it[x[j][1].type].call(
|
|
5452
5453
|
Object.assign(
|
|
5453
5454
|
{
|
|
5454
5455
|
sliceSerialize: x[j][2].sliceSerialize
|
|
@@ -5482,11 +5483,11 @@ function Ra(t) {
|
|
|
5482
5483
|
return S;
|
|
5483
5484
|
}
|
|
5484
5485
|
function i(x, S, D) {
|
|
5485
|
-
let O = S - 1, j = -1, it = !1,
|
|
5486
|
+
let O = S - 1, j = -1, it = !1, gt, ct, Lt, _t;
|
|
5486
5487
|
for (; ++O <= D; ) {
|
|
5487
5488
|
const N = x[O];
|
|
5488
|
-
if (N[1].type === "listUnordered" || N[1].type === "listOrdered" || N[1].type === "blockQuote" ? (N[0] === "enter" ? j++ : j--,
|
|
5489
|
-
if (
|
|
5489
|
+
if (N[1].type === "listUnordered" || N[1].type === "listOrdered" || N[1].type === "blockQuote" ? (N[0] === "enter" ? j++ : j--, _t = void 0) : N[1].type === "lineEndingBlank" ? N[0] === "enter" && (gt && !_t && !j && !Lt && (Lt = O), _t = void 0) : N[1].type === "linePrefix" || N[1].type === "listItemValue" || N[1].type === "listItemMarker" || N[1].type === "listItemPrefix" || N[1].type === "listItemPrefixWhitespace" || (_t = void 0), !j && N[0] === "enter" && N[1].type === "listItemPrefix" || j === -1 && N[0] === "exit" && (N[1].type === "listUnordered" || N[1].type === "listOrdered")) {
|
|
5490
|
+
if (gt) {
|
|
5490
5491
|
let Kt = O;
|
|
5491
5492
|
for (ct = void 0; Kt--; ) {
|
|
5492
5493
|
const ft = x[Kt];
|
|
@@ -5495,18 +5496,18 @@ function Ra(t) {
|
|
|
5495
5496
|
ct && (x[ct][1].type = "lineEndingBlank", it = !0), ft[1].type = "lineEnding", ct = Kt;
|
|
5496
5497
|
} else if (!(ft[1].type === "linePrefix" || ft[1].type === "blockQuotePrefix" || ft[1].type === "blockQuotePrefixWhitespace" || ft[1].type === "blockQuoteMarker" || ft[1].type === "listItemIndent")) break;
|
|
5497
5498
|
}
|
|
5498
|
-
|
|
5499
|
+
Lt && (!ct || Lt < ct) && (gt._spread = !0), gt.end = Object.assign(
|
|
5499
5500
|
{},
|
|
5500
5501
|
ct ? x[ct][1].start : N[1].end
|
|
5501
|
-
), x.splice(ct || O, 0, ["exit",
|
|
5502
|
+
), x.splice(ct || O, 0, ["exit", gt, N[2]]), O++, D++;
|
|
5502
5503
|
}
|
|
5503
|
-
N[1].type === "listItemPrefix" && (
|
|
5504
|
+
N[1].type === "listItemPrefix" && (gt = {
|
|
5504
5505
|
type: "listItem",
|
|
5505
5506
|
_spread: !1,
|
|
5506
5507
|
start: Object.assign({}, N[1].start),
|
|
5507
5508
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
5508
5509
|
end: void 0
|
|
5509
|
-
}, x.splice(O, 0, ["enter",
|
|
5510
|
+
}, x.splice(O, 0, ["enter", gt, N[2]]), O++, D++, Lt = void 0, _t = !0);
|
|
5510
5511
|
}
|
|
5511
5512
|
}
|
|
5512
5513
|
return x[S][1]._spread = it, D;
|
|
@@ -5558,7 +5559,7 @@ function Ra(t) {
|
|
|
5558
5559
|
function h() {
|
|
5559
5560
|
l("expectingFirstListItemValue", !0);
|
|
5560
5561
|
}
|
|
5561
|
-
function
|
|
5562
|
+
function g(x) {
|
|
5562
5563
|
if (u("expectingFirstListItemValue")) {
|
|
5563
5564
|
const S = this.stack[this.stack.length - 2];
|
|
5564
5565
|
S.start = Number.parseInt(this.sliceSerialize(x), 10), l("expectingFirstListItemValue");
|
|
@@ -5583,7 +5584,7 @@ function Ra(t) {
|
|
|
5583
5584
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5584
5585
|
S.value = x.replace(/(\r?\n|\r)$/g, "");
|
|
5585
5586
|
}
|
|
5586
|
-
function
|
|
5587
|
+
function _(x) {
|
|
5587
5588
|
const S = this.resume(), D = this.stack[this.stack.length - 1];
|
|
5588
5589
|
D.label = S, D.identifier = ut(
|
|
5589
5590
|
this.sliceSerialize(x)
|
|
@@ -5597,7 +5598,7 @@ function Ra(t) {
|
|
|
5597
5598
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5598
5599
|
S.url = x;
|
|
5599
5600
|
}
|
|
5600
|
-
function
|
|
5601
|
+
function L(x) {
|
|
5601
5602
|
const S = this.stack[this.stack.length - 1];
|
|
5602
5603
|
if (!S.depth) {
|
|
5603
5604
|
const D = this.sliceSerialize(x).length;
|
|
@@ -5641,11 +5642,11 @@ function Ra(t) {
|
|
|
5641
5642
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5642
5643
|
S.value = x;
|
|
5643
5644
|
}
|
|
5644
|
-
function
|
|
5645
|
+
function W() {
|
|
5645
5646
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5646
5647
|
S.value = x;
|
|
5647
5648
|
}
|
|
5648
|
-
function
|
|
5649
|
+
function v() {
|
|
5649
5650
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5650
5651
|
S.value = x;
|
|
5651
5652
|
}
|
|
@@ -5683,7 +5684,7 @@ function Ra(t) {
|
|
|
5683
5684
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5684
5685
|
S.url = x;
|
|
5685
5686
|
}
|
|
5686
|
-
function
|
|
5687
|
+
function d() {
|
|
5687
5688
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5688
5689
|
S.title = x;
|
|
5689
5690
|
}
|
|
@@ -5693,7 +5694,7 @@ function Ra(t) {
|
|
|
5693
5694
|
function Ct() {
|
|
5694
5695
|
l("referenceType", "collapsed");
|
|
5695
5696
|
}
|
|
5696
|
-
function
|
|
5697
|
+
function U(x) {
|
|
5697
5698
|
const S = this.resume(), D = this.stack[this.stack.length - 1];
|
|
5698
5699
|
D.label = S, D.identifier = ut(
|
|
5699
5700
|
this.sliceSerialize(x)
|
|
@@ -5702,10 +5703,10 @@ function Ra(t) {
|
|
|
5702
5703
|
function At(x) {
|
|
5703
5704
|
l("characterReferenceType", x.type);
|
|
5704
5705
|
}
|
|
5705
|
-
function
|
|
5706
|
+
function dt(x) {
|
|
5706
5707
|
const S = this.sliceSerialize(x), D = u("characterReferenceType");
|
|
5707
5708
|
let O;
|
|
5708
|
-
D ? (O =
|
|
5709
|
+
D ? (O = _n(
|
|
5709
5710
|
S,
|
|
5710
5711
|
D === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
5711
5712
|
), l("characterReferenceType")) : O = Ce(S);
|
|
@@ -5769,7 +5770,7 @@ function Ra(t) {
|
|
|
5769
5770
|
type: "break"
|
|
5770
5771
|
};
|
|
5771
5772
|
}
|
|
5772
|
-
function
|
|
5773
|
+
function Le() {
|
|
5773
5774
|
return {
|
|
5774
5775
|
type: "html",
|
|
5775
5776
|
value: ""
|
|
@@ -5783,7 +5784,7 @@ function Ra(t) {
|
|
|
5783
5784
|
alt: null
|
|
5784
5785
|
};
|
|
5785
5786
|
}
|
|
5786
|
-
function
|
|
5787
|
+
function _e() {
|
|
5787
5788
|
return {
|
|
5788
5789
|
type: "link",
|
|
5789
5790
|
title: null,
|
|
@@ -5839,17 +5840,17 @@ function kt(t) {
|
|
|
5839
5840
|
offset: t.offset
|
|
5840
5841
|
};
|
|
5841
5842
|
}
|
|
5842
|
-
function
|
|
5843
|
+
function Un(t, n) {
|
|
5843
5844
|
let e = -1;
|
|
5844
5845
|
for (; ++e < n.length; ) {
|
|
5845
5846
|
const r = n[e];
|
|
5846
|
-
Array.isArray(r) ?
|
|
5847
|
+
Array.isArray(r) ? Un(t, r) : ja(t, r);
|
|
5847
5848
|
}
|
|
5848
5849
|
}
|
|
5849
5850
|
function ja(t, n) {
|
|
5850
5851
|
let e;
|
|
5851
5852
|
for (e in n)
|
|
5852
|
-
if (
|
|
5853
|
+
if (vn.call(n, e)) {
|
|
5853
5854
|
if (e === "canContainEols") {
|
|
5854
5855
|
const r = n[e];
|
|
5855
5856
|
r && t[e].push(...r);
|
|
@@ -5904,7 +5905,7 @@ const Ha = new RegExp(
|
|
|
5904
5905
|
), Na = Object.freeze(["http:", "https:", "mailto:"]), $a = (t) => {
|
|
5905
5906
|
const n = document.createElement("textarea");
|
|
5906
5907
|
return n.innerHTML = t, n.value;
|
|
5907
|
-
},
|
|
5908
|
+
}, va = (t) => {
|
|
5908
5909
|
if (!t.trim())
|
|
5909
5910
|
return null;
|
|
5910
5911
|
let n = $a(t);
|
|
@@ -5920,7 +5921,7 @@ const Ha = new RegExp(
|
|
|
5920
5921
|
return null;
|
|
5921
5922
|
}
|
|
5922
5923
|
return null;
|
|
5923
|
-
},
|
|
5924
|
+
}, Ua = /* @__PURE__ */ Dt({
|
|
5924
5925
|
__name: "rich-text-editor-code-block",
|
|
5925
5926
|
props: {
|
|
5926
5927
|
code: {}
|
|
@@ -5928,7 +5929,7 @@ const Ha = new RegExp(
|
|
|
5928
5929
|
setup(t) {
|
|
5929
5930
|
return (n, e) => (Z(), Ft("pre", null, Nt(n.code), 1));
|
|
5930
5931
|
}
|
|
5931
|
-
}),
|
|
5932
|
+
}), Wa = /* @__PURE__ */ Dt({
|
|
5932
5933
|
__name: "rich-text-editor-inline-code",
|
|
5933
5934
|
props: {
|
|
5934
5935
|
code: {}
|
|
@@ -5994,10 +5995,10 @@ const Ya = /* @__PURE__ */ Fe(Za, [["render", Ga]]), Ja = { key: 1 }, Ka = /* @_
|
|
|
5994
5995
|
function Bt(t, n) {
|
|
5995
5996
|
return { [t]: n };
|
|
5996
5997
|
}
|
|
5997
|
-
const
|
|
5998
|
+
const Wt = ({ astNode: t }) => t.value?.toString(), Xa = Object.freeze({
|
|
5998
5999
|
// Render HTML & Image nodes as text (protection layer 4)
|
|
5999
|
-
html:
|
|
6000
|
-
image:
|
|
6000
|
+
html: Wt,
|
|
6001
|
+
image: Wt
|
|
6001
6002
|
}), to = Object.freeze({
|
|
6002
6003
|
root: ({ childrenVNodes: t }) => Q(
|
|
6003
6004
|
"div",
|
|
@@ -6006,8 +6007,8 @@ const vt = ({ astNode: t }) => t.value?.toString(), Xa = Object.freeze({
|
|
|
6006
6007
|
},
|
|
6007
6008
|
t
|
|
6008
6009
|
),
|
|
6009
|
-
text:
|
|
6010
|
-
html:
|
|
6010
|
+
text: Wt,
|
|
6011
|
+
html: Wt,
|
|
6011
6012
|
break: () => Q("br"),
|
|
6012
6013
|
delete: ({ childrenVNodes: t }) => Q("del", t),
|
|
6013
6014
|
emphasis: ({ childrenVNodes: t }) => Q("em", t),
|
|
@@ -6015,10 +6016,10 @@ const vt = ({ astNode: t }) => t.value?.toString(), Xa = Object.freeze({
|
|
|
6015
6016
|
paragraph: ({ childrenVNodes: t }) => Q("p", t),
|
|
6016
6017
|
heading: ({ astNode: t, childrenVNodes: n }) => Q(`h${t.depth}`, n),
|
|
6017
6018
|
blockquote: ({ childrenVNodes: t }) => Q("blockquote", t),
|
|
6018
|
-
code: ({ astNode: t }) => Q(
|
|
6019
|
-
inlineCode: ({ astNode: t }) => Q(
|
|
6019
|
+
code: ({ astNode: t }) => Q(Ua, { ...Bt("code", t.value) }),
|
|
6020
|
+
inlineCode: ({ astNode: t }) => Q(Wa, { ...Bt("code", t.value) }),
|
|
6020
6021
|
link: ({ astNode: t, childrenVNodes: n }) => {
|
|
6021
|
-
const e =
|
|
6022
|
+
const e = va(t.url)?.toString() || "";
|
|
6022
6023
|
return Q(Qa, { ...Bt("url", e) }, n);
|
|
6023
6024
|
},
|
|
6024
6025
|
list: ({ astNode: t, childrenVNodes: n }) => Q(
|
|
@@ -6047,13 +6048,13 @@ const vt = ({ astNode: t }) => t.value?.toString(), Xa = Object.freeze({
|
|
|
6047
6048
|
...to,
|
|
6048
6049
|
...Xa
|
|
6049
6050
|
}));
|
|
6050
|
-
function
|
|
6051
|
+
function Wn(t) {
|
|
6051
6052
|
if (!t)
|
|
6052
6053
|
return null;
|
|
6053
6054
|
const n = eo.value[t.type];
|
|
6054
6055
|
if (!n)
|
|
6055
6056
|
throw new Error(`Unsupported node type: "${t.type}"`);
|
|
6056
|
-
const e = (t.children || []).map((r) =>
|
|
6057
|
+
const e = (t.children || []).map((r) => Wn(r));
|
|
6057
6058
|
return n({
|
|
6058
6059
|
// AST Node from the "unified.parse" method
|
|
6059
6060
|
astNode: t,
|
|
@@ -6069,12 +6070,19 @@ const no = {
|
|
|
6069
6070
|
}
|
|
6070
6071
|
},
|
|
6071
6072
|
setup(t) {
|
|
6072
|
-
return () =>
|
|
6073
|
+
return () => Wn(t.node);
|
|
6073
6074
|
}
|
|
6074
6075
|
}, Qn = {
|
|
6076
|
+
"de-DE": { ariaLabelFallback: "Rich-Text-Editor", errorProcessingMarkdown: "Fehlerverarbeitungs-Markdown: {value}", markdown: "Markdown", visual: "Visuell" },
|
|
6077
|
+
"en-GB": { ariaLabelFallback: "Rich text editor", errorProcessingMarkdown: "Error processing markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6075
6078
|
"en-US": { ariaLabelFallback: "Rich text editor", errorProcessingMarkdown: "Error processing markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6076
|
-
"
|
|
6077
|
-
"
|
|
6079
|
+
"es-ES": { ariaLabelFallback: "Editor de texto enriquecido", errorProcessingMarkdown: "Error al procesar markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6080
|
+
"es-MX": { ariaLabelFallback: "Editor de texto enriquecido", errorProcessingMarkdown: "Error al procesar markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6081
|
+
"fr-FR": { ariaLabelFallback: "Éditeur de texte riche", errorProcessingMarkdown: "Erreur de traitement du Markdown : {value}", markdown: "Markdown", visual: "Visuel" },
|
|
6082
|
+
"it-IT": { ariaLabelFallback: "Editor di testo arricchito", errorProcessingMarkdown: "Errore nell'elaborazione del markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6083
|
+
"ja-JP": { ariaLabelFallback: "Rich text editor", errorProcessingMarkdown: "Error processing markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6084
|
+
"pt-BR": { ariaLabelFallback: "Rich text editor", errorProcessingMarkdown: "Error processing markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6085
|
+
"zh-CN": { ariaLabelFallback: "富文本编辑器", errorProcessingMarkdown: "处理 markdown 时出错:{value}", markdown: "Markdown", visual: "可视" }
|
|
6078
6086
|
}, ro = ["aria-disabled"], io = { class: "b-rich-text-editor__toolbar" }, uo = ["id"], lo = {
|
|
6079
6087
|
i18n: { messages: Qn }
|
|
6080
6088
|
}, ao = /* @__PURE__ */ Dt({
|
|
@@ -6107,7 +6115,7 @@ const no = {
|
|
|
6107
6115
|
]), h = xt(() => ({
|
|
6108
6116
|
"b-rich-text-editor__container--disabled": u.disabled,
|
|
6109
6117
|
"b-rich-text-editor__container--error": u.errorMessage
|
|
6110
|
-
})),
|
|
6118
|
+
})), g = xt(() => ({
|
|
6111
6119
|
"b-rich-text-editor__renderer--disabled": u.disabled
|
|
6112
6120
|
})), w = xt(() => e("ariaLabelFallback")), C = wt(l["aria-label"]), b = mr({
|
|
6113
6121
|
ariaLabel: C.value,
|
|
@@ -6122,7 +6130,7 @@ const no = {
|
|
|
6122
6130
|
f.value = null, o.value = z.message.split(":")[1];
|
|
6123
6131
|
}
|
|
6124
6132
|
}
|
|
6125
|
-
const
|
|
6133
|
+
const _ = (z) => {
|
|
6126
6134
|
s.value = z;
|
|
6127
6135
|
};
|
|
6128
6136
|
return me(s, (z) => {
|
|
@@ -6139,7 +6147,7 @@ const no = {
|
|
|
6139
6147
|
"rich-text": ""
|
|
6140
6148
|
}, {
|
|
6141
6149
|
default: Pt(() => [
|
|
6142
|
-
z.hideLabel ? Xt("", !0) : (Z(), pt(ht(
|
|
6150
|
+
z.hideLabel ? Xt("", !0) : (Z(), pt(ht(dr), {
|
|
6143
6151
|
key: 0,
|
|
6144
6152
|
label: z.label,
|
|
6145
6153
|
"tooltip-text": z.tooltipText,
|
|
@@ -6153,7 +6161,7 @@ const no = {
|
|
|
6153
6161
|
$t("div", io, [
|
|
6154
6162
|
Pe(sr, {
|
|
6155
6163
|
modelValue: c.value,
|
|
6156
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
6164
|
+
"onUpdate:modelValue": y[0] || (y[0] = (L) => c.value = L),
|
|
6157
6165
|
items: p.value
|
|
6158
6166
|
}, null, 8, ["modelValue", "items"])
|
|
6159
6167
|
]),
|
|
@@ -6167,7 +6175,7 @@ const no = {
|
|
|
6167
6175
|
"aria-label": ht(b),
|
|
6168
6176
|
"aria-describedby": I.value,
|
|
6169
6177
|
"aria-required": z.required,
|
|
6170
|
-
onInput:
|
|
6178
|
+
onInput: _
|
|
6171
6179
|
}, null, 8, ["value", "disabled", "aria-label", "aria-describedby", "aria-required"])) : o.value ? (Z(), pt(cr, {
|
|
6172
6180
|
key: 1,
|
|
6173
6181
|
type: "critical"
|
|
@@ -6179,11 +6187,11 @@ const no = {
|
|
|
6179
6187
|
})) : (Z(), pt(ht(no), {
|
|
6180
6188
|
key: 2,
|
|
6181
6189
|
node: f.value,
|
|
6182
|
-
class: or(["b-rich-text-editor__renderer",
|
|
6190
|
+
class: or(["b-rich-text-editor__renderer", g.value])
|
|
6183
6191
|
}, null, 8, ["node", "class"]))
|
|
6184
6192
|
], 1024))
|
|
6185
6193
|
], 16, ro),
|
|
6186
|
-
z.errorMessage ? (Z(), pt(ht(
|
|
6194
|
+
z.errorMessage ? (Z(), pt(ht(gr), {
|
|
6187
6195
|
key: 1,
|
|
6188
6196
|
id: ht(r),
|
|
6189
6197
|
"error-message": z.errorMessage,
|
|
@@ -6208,8 +6216,8 @@ const no = {
|
|
|
6208
6216
|
_: 1
|
|
6209
6217
|
}));
|
|
6210
6218
|
}
|
|
6211
|
-
}),
|
|
6219
|
+
}), wo = /* @__PURE__ */ Fe(ao, [["__scopeId", "data-v-ffb09ccf"]]);
|
|
6212
6220
|
export {
|
|
6213
|
-
|
|
6221
|
+
wo as r
|
|
6214
6222
|
};
|
|
6215
|
-
//# sourceMappingURL=rich-text-editor.
|
|
6223
|
+
//# sourceMappingURL=rich-text-editor.Bf9EWzNk.js.map
|