@luzmo/lucero 1.0.3-alpha.5 → 1.0.3-alpha.7
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/components/accordion/index.cjs +1 -1
- package/components/accordion/index.js +1 -1
- package/components/{accordion-DC7cjb1c.js → accordion-BDchhAjE.js} +4 -4
- package/components/accordion-CW7xAsId.cjs +43 -0
- package/components/action-bar/index.cjs +1 -1
- package/components/action-bar/index.js +1 -1
- package/components/{action-bar-Dn4IDXEF.js → action-bar-BO65QnWi.js} +6 -6
- package/components/action-bar-CSf3qi0f.cjs +39 -0
- package/components/action-button/index.cjs +1 -1
- package/components/action-button/index.js +1 -1
- package/components/action-button-CMRoRRWo.cjs +22 -0
- package/components/{action-button-DC-ZFZTm.js → action-button-CfpJ8ybz.js} +3 -3
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -1
- package/components/{action-group-DYKpp-mz.js → action-group-BQ-fyPYS.js} +3 -3
- package/components/action-group-D1G30Iir.cjs +20 -0
- package/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.js +1 -1
- package/components/{action-menu-DAzm6TyR.js → action-menu-CBSyW4O8.js} +8 -8
- package/components/{action-menu-BdCk6AXo.cjs → action-menu-CnkzFDHK.cjs} +2 -2
- package/components/avatar/index.cjs +1 -1
- package/components/avatar/index.js +1 -1
- package/components/{avatar-CyY_ZSD0.js → avatar-79Zd9NiA.js} +4 -4
- package/components/avatar-BRfwsoBh.cjs +24 -0
- package/components/badge/index.cjs +1 -1
- package/components/badge/index.js +1 -1
- package/components/{badge-D6p2hPj8.js → badge-2zAt91bn.js} +3 -3
- package/components/badge-BjusWIAn.cjs +23 -0
- package/components/button/index.cjs +1 -1
- package/components/button/index.js +2 -2
- package/components/{button-D1a4B85S.js → button-CPh-7eos.js} +5 -5
- package/components/button-D7RUI_x1.cjs +20 -0
- package/components/{button-base-CzTYjZND.js → button-base-CgZijING.js} +4 -4
- package/components/{button-base-Dj2qQqwO.cjs → button-base-UZcvbkXl.cjs} +2 -2
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +1 -1
- package/components/button-group-6M8M-TUI.cjs +18 -0
- package/components/{button-group-BiQxYcQ2.js → button-group-DaANSInm.js} +2 -2
- package/components/calendar/index.cjs +1 -1
- package/components/calendar/index.js +1 -1
- package/components/calendar-9tmSkAp2.cjs +142 -0
- package/components/{calendar-BNRjXf9B.js → calendar-Ck40E6VN.js} +4 -4
- package/components/chat-message/index.cjs +1 -1
- package/components/chat-message/index.js +1 -1
- package/components/{chat-message-DJgocVNj.js → chat-message-BDTAV-Ph.js} +679 -501
- package/components/chat-message-SBnm0ITB.cjs +150 -0
- package/components/chat-message-group/index.cjs +1 -1
- package/components/chat-message-group/index.js +1 -1
- package/components/chat-message-group-CzCwyW7F.cjs +24 -0
- package/components/{chat-message-group-B4U2MzHx.js → chat-message-group-D7vdn2gG.js} +2 -2
- package/components/checkbox/index.cjs +1 -1
- package/components/checkbox/index.js +1 -1
- package/components/checkbox-C-HC6f2c.cjs +25 -0
- package/components/{checkbox-CPS-tR_i.js → checkbox-DrbacuOs.js} +3 -3
- package/components/{checkbox-mixin-C5sLMo5L.js → checkbox-mixin-ClK1paqU.js} +1 -1
- package/components/{checkbox-mixin-D4HeLrMj.cjs → checkbox-mixin-PEFpw1Ep.cjs} +2 -2
- package/components/{close-button-MgaJT7yO.js → close-button-BG--crbw.js} +4 -4
- package/components/close-button-BQUJeFCq.cjs +18 -0
- package/components/color-area/color-area.d.ts +7 -0
- package/components/color-area/index.cjs +1 -1
- package/components/color-area/index.js +1 -1
- package/components/color-area-B5OHLqtm.cjs +80 -0
- package/components/{color-area-DViRjuKo.js → color-area-CAM3uysY.js} +14 -12
- package/components/color-controller-DZe3_BMD.cjs +18 -0
- package/components/color-field/index.cjs +1 -1
- package/components/color-field/index.js +1 -1
- package/components/{color-field-CxdIoSq6.js → color-field-Bq0IEitn.js} +3 -3
- package/components/{color-field-D7_7z2A2.cjs → color-field-IpL7Z89G.cjs} +2 -2
- package/components/color-handle/index.cjs +1 -1
- package/components/color-handle/index.js +1 -1
- package/components/color-handle-BwV3Nia5.cjs +24 -0
- package/components/{color-handle-BOusOFFx.js → color-handle-DioEcX1V.js} +2 -2
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -1
- package/components/color-loupe-C_C2hy-m.cjs +56 -0
- package/components/{color-loupe-bEzi2P0y.js → color-loupe-ZcCecT0r.js} +1 -1
- package/components/color-menu/index.cjs +1 -1
- package/components/color-menu/index.js +1 -1
- package/components/color-menu-CBpuPimx.cjs +89 -0
- package/components/{color-menu-Lxc9PTzl.js → color-menu-DtYUtPee.js} +9 -9
- package/components/color-palette/index.cjs +1 -1
- package/components/color-palette/index.js +1 -1
- package/components/color-palette-C6G0Tdla.cjs +18 -0
- package/components/{color-palette-BAdaNySC.js → color-palette-FQyIMSwP.js} +3 -3
- package/components/color-palette-group/index.cjs +1 -1
- package/components/color-palette-group/index.js +1 -1
- package/components/color-palette-group-B4r4tPfY.cjs +28 -0
- package/components/{color-palette-group-D8Mavsd2.js → color-palette-group-o6bnF-Ir.js} +3 -3
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.js +1 -1
- package/components/{color-picker-CSWiU-X5.cjs → color-picker-CajJUS1c.cjs} +2 -2
- package/components/{color-picker-DqjfTvYf.js → color-picker-WCIGRufq.js} +6 -6
- package/components/color-slider/index.cjs +1 -1
- package/components/color-slider/index.js +1 -1
- package/components/{color-slider-ihAIFt5p.js → color-slider-BZ3G8Zgn.js} +6 -5
- package/components/color-slider-CVSEpLOP.cjs +57 -0
- package/components/{condition-attribute-with-id-DauPaLSS.cjs → condition-attribute-with-id-Cw92IbcP.cjs} +1 -1
- package/components/date-range-picker/index.cjs +1 -1
- package/components/date-range-picker/index.js +1 -1
- package/components/{date-range-picker-DaV1vcVx.js → date-range-picker-B2cRO9e5.js} +10 -10
- package/components/date-range-picker-nnN0b_N4.cjs +180 -0
- package/components/date-time-picker/index.cjs +1 -1
- package/components/date-time-picker/index.js +1 -1
- package/components/{date-time-picker-qVon-GIh.js → date-time-picker-CStBWop1.js} +11 -11
- package/components/date-time-picker-Cj4n6nG-.cjs +105 -0
- package/components/{decorate-aGxJUVxg.js → decorate-CkCg3wfh.js} +1 -1
- package/components/decorate-Dq34MBGe.cjs +18 -0
- package/components/{dependency-manger-CHy9t__e.cjs → dependency-manger-BSaHw9ju.cjs} +1 -1
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +1 -1
- package/components/{divider-cU0lVwOp.js → divider-CGbT-CL8.js} +3 -3
- package/components/divider-wana0uPI.cjs +18 -0
- package/components/{divider.module-CL60P_z8.cjs → divider.module-BV6tmpOY.cjs} +1 -1
- package/components/{element-resolution-C0aiOB0Y.cjs → element-resolution-BjaAlqwX.cjs} +1 -1
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +1 -1
- package/components/{field-group-C7ROsWq3.js → field-group-EZzkXa2e.js} +2 -2
- package/components/{field-group-OcI5Lgu7.cjs → field-group-aWhlzhoj.cjs} +2 -2
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -1
- package/components/{field-label-CtGCEmdp.js → field-label-B9S41b7c.js} +5 -5
- package/components/field-label-C5vdJ1ys.cjs +25 -0
- package/components/focus-group-C8lOjbi9.cjs +18 -0
- package/components/{focus-group-BshI1RpM.js → focus-group-DVPa1zxz.js} +1 -1
- package/components/{focus-visible-CrooVCUu.js → focus-visible-Bt2uDmuM.js} +2 -2
- package/components/focus-visible-eQdwUM9k.cjs +18 -0
- package/components/focusable-DTxxQ3yJ.cjs +18 -0
- package/components/{focusable-BmS8IzhH.js → focusable-DuP0-Kuy.js} +2 -2
- package/components/{focusable-selectors-5n5liBn0.cjs → focusable-selectors-DJqGLTJo.cjs} +1 -1
- package/components/{get-label-from-slot-LO_DZP60.cjs → get-label-from-slot-TV4APBYs.cjs} +1 -1
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +1 -1
- package/components/{icon-CwBAE1eU.js → icon-M3agnqx7.js} +1 -1
- package/components/icon-xwNfYSkj.cjs +18 -0
- package/components/index.cjs +1 -1
- package/components/index.js +67 -67
- package/components/infield-button/index.cjs +1 -1
- package/components/infield-button/index.js +1 -1
- package/components/{infield-button-BvKsbtKr.js → infield-button-CMcy_QGt.js} +3 -3
- package/components/infield-button-DKlrlNuX.cjs +22 -0
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +1 -1
- package/components/{label-ClJE2esm.js → label-B1HYQ4Pp.js} +1 -1
- package/components/label-DPG13Ib0.cjs +18 -0
- package/components/{language-resolution-BYemISJC.cjs → language-resolution-BUeKpSce.cjs} +1 -1
- package/components/{like-anchor-BZJXts_H.cjs → like-anchor-BX4PSB3d.cjs} +2 -2
- package/components/{like-anchor-DeOXX-MX.js → like-anchor-DXCaEv7O.js} +1 -1
- package/components/{manage-help-text-D9VbYRf_.cjs → manage-help-text-D20THJ3U.cjs} +2 -2
- package/components/{manage-help-text-CF0xBh0F.js → manage-help-text-DwfUBgHK.js} +2 -2
- package/components/menu/index.cjs +1 -1
- package/components/menu/index.js +1 -1
- package/components/menu/menu-item.d.ts +14 -0
- package/components/menu-BS_hemfn.cjs +108 -0
- package/components/{menu--ukVtSq7.js → menu-qMByaBwZ.js} +27 -18
- package/components/multi-language-field/index.cjs +1 -1
- package/components/multi-language-field/index.js +1 -1
- package/components/{multi-language-field-DmoMyCBH.cjs → multi-language-field-B7dnlCK9.cjs} +2 -2
- package/components/{multi-language-field-BzY75rOY.js → multi-language-field-DqAlPXww.js} +4 -4
- package/components/number-field/index.cjs +1 -1
- package/components/number-field/index.js +1 -1
- package/components/{number-field-DrJURvoW.js → number-field-B6BiDw0B.js} +7 -7
- package/components/number-field-BEBoSI-_.cjs +57 -0
- package/components/observe-slot-presence-CS8pMePk.cjs +18 -0
- package/components/{observe-slot-text-Ddf1OC6F.js → observe-slot-text-97nX6NyX.js} +1 -1
- package/components/observe-slot-text-DzUSxLpj.cjs +18 -0
- package/components/options/index.cjs +1 -1
- package/components/options/index.js +1 -1
- package/components/{options-BGwKMvng.js → options-BV5E4ygY.js} +8 -8
- package/components/{options-CKi3VkNR.cjs → options-Cq9Gx9UR.cjs} +2 -2
- package/components/overlay/index.cjs +1 -1
- package/components/overlay/index.js +3 -3
- package/components/overlay/placement-controller.d.ts +8 -0
- package/components/{overlay-CMd2Dnpv.cjs → overlay-CO_JAhWD.cjs} +2 -2
- package/components/{overlay-CwR_36OV.js → overlay-DR9oYpb5.js} +3 -3
- package/components/{overlay-8tN0KPbR.js → overlay-DpBGFUBW.js} +130 -123
- package/components/overlay-duS52Rsb.cjs +47 -0
- package/components/{pending-state-DFcNf5rd.js → pending-state-BeG7qBDP.js} +1 -1
- package/components/{pending-state-DIeF18qg.cjs → pending-state-a527YMWV.cjs} +2 -2
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +1 -1
- package/components/picker/picker.d.ts +7 -0
- package/components/{picker-agQW7YNo.js → picker-D5AyIL5x.js} +24 -21
- package/components/picker-D_lZ-gXW.cjs +123 -0
- package/components/picker-button/index.cjs +1 -1
- package/components/picker-button/index.js +1 -1
- package/components/{picker-button-VAxzuhhg.js → picker-button-Bg1oKrx4.js} +5 -5
- package/components/picker-button-COrTSUL5.cjs +37 -0
- package/components/platform-BAjeJp2W.cjs +18 -0
- package/components/{platform-D4V_cOJF.js → platform-Ce9pNsR9.js} +2 -2
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -1
- package/components/{popover-DyC9xGhX.js → popover-CFawf-z9.js} +3 -3
- package/components/popover-R-fdNBvR.cjs +30 -0
- package/components/progress-bar/index.cjs +1 -1
- package/components/progress-bar/index.js +1 -1
- package/components/{progress-bar-DHgFRml1.js → progress-bar-BU_h5i27.js} +3 -3
- package/components/progress-bar-DHmthnzp.cjs +31 -0
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/{progress-circle-Cg_ua9Ff.js → progress-circle-BVToDWX8.js} +3 -3
- package/components/progress-circle-DyApSKdm.cjs +33 -0
- package/components/progress-steps/index.cjs +1 -1
- package/components/progress-steps/index.js +1 -1
- package/components/{progress-steps-Da8aZWx3.js → progress-steps-9unA0ptN.js} +2 -2
- package/components/progress-steps-BgRH7KAn.cjs +96 -0
- package/components/prompt-box/index.cjs +1 -1
- package/components/prompt-box/index.js +1 -1
- package/components/{prompt-box-CCh9aOjY.js → prompt-box-B1eJoNNC.js} +13 -13
- package/components/{prompt-box-BjjBnJ7C.cjs → prompt-box-DG4G19Vq.cjs} +3 -3
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.js +1 -1
- package/components/radio-Ch4iR6e1.cjs +22 -0
- package/components/{radio-BzEPGUmQ.js → radio-DhrwxuSB.js} +5 -5
- package/components/{random-id-B51lUxUB.cjs → random-id-BcUJAxUZ.cjs} +1 -1
- package/components/{random-id-Dd4boCPV.js → random-id-CiMDyX7v.js} +1 -1
- package/components/{chunk-D-qHiVGv.cjs → rolldown-runtime-DWNI8pZO.cjs} +1 -1
- package/components/{roving-tabindex-B7x5ePUB.cjs → roving-tabindex-BoPao4td.cjs} +1 -1
- package/components/{roving-tabindex-BP6mQbXf.js → roving-tabindex-pomAn3z-.js} +1 -1
- package/components/{scaled-indicator-DF45Sc3W.cjs → scaled-indicator-DLJIztx0.cjs} +2 -2
- package/components/search/index.cjs +1 -1
- package/components/search/index.js +1 -1
- package/components/search/search.d.ts +1 -0
- package/components/search-COpGXyHi.cjs +47 -0
- package/components/{search-IXGErIHW.js → search-DJa1-_UC.js} +19 -13
- package/components/segments-factory-DtPyN5sh.cjs +18 -0
- package/components/select/index.cjs +1 -1
- package/components/select/index.js +1 -1
- package/components/select/select.d.ts +7 -0
- package/components/{select-BNDNv50o.js → select-CzZZmuWl.js} +18 -15
- package/components/select-DV38y5iI.cjs +158 -0
- package/components/sized-mixin-BT7cv-fT.cjs +18 -0
- package/components/{sized-mixin-DaBoZkVS.js → sized-mixin-DzQTebN-.js} +1 -1
- package/components/skeleton-loader/index.cjs +1 -1
- package/components/skeleton-loader/index.js +1 -1
- package/components/{skeleton-loader-C1XG3m_u.js → skeleton-loader-C0LH3prK.js} +1 -1
- package/components/skeleton-loader-Cm50Ztzk.cjs +18 -0
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +1 -1
- package/components/{slider-3QBnq0S8.js → slider-BLaYicz8.js} +2 -2
- package/components/slider-CfZ2IRgC.cjs +18 -0
- package/components/{slottable-request-event-gAcEQan2.cjs → slottable-request-event-C6eb7Ch3.cjs} +1 -1
- package/components/status-light/index.cjs +1 -1
- package/components/status-light/index.js +1 -1
- package/components/{status-light-Bf8jGu4G.js → status-light-BlfBJpqa.js} +2 -2
- package/components/status-light-Bu0G8-lH.cjs +21 -0
- package/components/{strategies-kuvLVIKO.cjs → strategies-CPWEHFe1.cjs} +1 -1
- package/components/{strategies-DhxJGIZT.js → strategies-Dbb3w-JB.js} +1 -1
- package/components/streaming-listener-Bfyk6Fsx.cjs +18 -0
- package/components/swatch/index.cjs +1 -1
- package/components/swatch/index.js +1 -1
- package/components/{swatch-BLuV-hlF.js → swatch-C2ty27bJ.js} +4 -4
- package/components/{swatch-G70JUe6I.cjs → swatch-DcUK5qDv.cjs} +2 -2
- package/components/switch/index.cjs +1 -1
- package/components/switch/index.js +1 -1
- package/components/{switch-C5g5t5x2.js → switch-B10exYOk.js} +4 -4
- package/components/switch-BKDJ3dZ9.cjs +22 -0
- package/components/tabs/index.cjs +1 -1
- package/components/tabs/index.js +1 -1
- package/components/{tabs-CTKkW-L8.cjs → tabs-C07QGZbj.cjs} +2 -2
- package/components/{tabs-DYpbsO58.js → tabs-CqYK2mFY.js} +11 -11
- package/components/tags/index.cjs +1 -1
- package/components/tags/index.js +1 -1
- package/components/tags-CX8xqWyH.cjs +47 -0
- package/components/{tags-DQLiHnTr.js → tags-DrDRVcwq.js} +11 -8
- package/components/text-field/index.cjs +1 -1
- package/components/text-field/index.js +2 -2
- package/components/{text-field-FJr8ZUhI.cjs → text-field-BG6dB1fv.cjs} +2 -2
- package/components/{text-field-BoGAvXvh.js → text-field-C9_95TpH.js} +3 -3
- package/components/text-field-D0Z0K_7q.cjs +21 -0
- package/components/{text-field-Cs8HYRYL.js → text-field-DItC9-FS.js} +5 -5
- package/components/{text-field.module-D5oDP7MB.cjs → text-field.module-DDRcQM7Y.cjs} +1 -1
- package/components/toast/index.cjs +1 -1
- package/components/toast/index.js +1 -1
- package/components/{toast-Bd0fleYT.js → toast-B2rcl_2b.js} +3 -3
- package/components/toast-BzIN9rHc.cjs +51 -0
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.js +1 -1
- package/components/tooltip/tooltip.d.ts +30 -2
- package/components/{tooltip-C3O4AQ1l.js → tooltip-Byl1h4nN.js} +27 -12
- package/components/tooltip-Sm0pruxL.cjs +45 -0
- package/components/top-nav/index.cjs +1 -1
- package/components/top-nav/index.js +1 -1
- package/components/{top-nav-CMVB3G_v.js → top-nav-D3Iqfth0.js} +6 -6
- package/components/top-nav-Dqa5pB4f.cjs +45 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +7 -7
- package/components/{voice-recorder-BUtmSvPO.cjs → voice-recorder-B1tBrGTV.cjs} +1 -1
- package/custom-elements.json +1 -1
- package/package.json +1 -1
- package/components/accordion-BHBIfsLU.cjs +0 -43
- package/components/action-bar-BSMX042X.cjs +0 -39
- package/components/action-button-Cr_QN4On.cjs +0 -22
- package/components/action-group-CH8FTW0i.cjs +0 -20
- package/components/avatar-PulwjkMI.cjs +0 -24
- package/components/badge-D1Ry32wi.cjs +0 -23
- package/components/button-C5hcfigl.cjs +0 -20
- package/components/button-group-DIz5TZvc.cjs +0 -18
- package/components/calendar-BWArK3rh.cjs +0 -142
- package/components/chat-message-CNE-mGuP.cjs +0 -149
- package/components/chat-message-group-COmhCN-R.cjs +0 -24
- package/components/checkbox-DFwDrIdY.cjs +0 -25
- package/components/close-button-_EXjp6_m.cjs +0 -18
- package/components/color-area-DA3ps2-c.cjs +0 -80
- package/components/color-controller-DueaXfnX.cjs +0 -18
- package/components/color-handle-Cka48yPY.cjs +0 -24
- package/components/color-loupe-DMk8uWZW.cjs +0 -56
- package/components/color-menu-DwbTxeqv.cjs +0 -89
- package/components/color-palette-349EkPMg.cjs +0 -18
- package/components/color-palette-group-BvP09zmT.cjs +0 -28
- package/components/color-slider-DxjJ72ue.cjs +0 -57
- package/components/date-range-picker-BOTudFdP.cjs +0 -180
- package/components/date-time-picker-DpQWIAg0.cjs +0 -105
- package/components/decorate-B2wePfNm.cjs +0 -18
- package/components/divider-Dn8XqbB6.cjs +0 -18
- package/components/field-label-BCl6R1uO.cjs +0 -25
- package/components/focus-group-SF8Kj7iB.cjs +0 -18
- package/components/focus-visible-B0NNezGc.cjs +0 -18
- package/components/focusable-CupEoHmn.cjs +0 -18
- package/components/icon-B7hKwn_q.cjs +0 -18
- package/components/infield-button-D5cuBWE5.cjs +0 -22
- package/components/label-CqolZbJo.cjs +0 -18
- package/components/menu-DAA51y45.cjs +0 -108
- package/components/number-field-BmWODnnR.cjs +0 -57
- package/components/observe-slot-presence-Dx8hzNzK.cjs +0 -18
- package/components/observe-slot-text-BhTcGuHY.cjs +0 -18
- package/components/overlay-DdrfkOry.cjs +0 -47
- package/components/picker-C4RVOxLq.cjs +0 -123
- package/components/picker-button-adl1JO5u.cjs +0 -37
- package/components/platform-B7Sk7Qon.cjs +0 -18
- package/components/popover-dgL04x6P.cjs +0 -30
- package/components/progress-bar-BR28tISC.cjs +0 -31
- package/components/progress-circle-DuzwUiGN.cjs +0 -33
- package/components/progress-steps-WriXaZpE.cjs +0 -96
- package/components/radio-d-2GUbYE.cjs +0 -22
- package/components/search-DICDMqwa.cjs +0 -45
- package/components/segments-factory-CHo9oQw7.cjs +0 -18
- package/components/select-L6dKp-qu.cjs +0 -158
- package/components/sized-mixin-StFA4y0J.cjs +0 -18
- package/components/skeleton-loader-B8NgELvX.cjs +0 -18
- package/components/slider-uXRKcOz5.cjs +0 -18
- package/components/status-light-CBaAFRUc.cjs +0 -21
- package/components/streaming-listener-BnDW38lt.cjs +0 -18
- package/components/switch-COhz9ka9.cjs +0 -22
- package/components/tags-DBD74tKB.cjs +0 -47
- package/components/text-field-A4Obzs4l.cjs +0 -21
- package/components/toast-NZ0Z1lz9.cjs +0 -51
- package/components/tooltip-DY1trLtg.cjs +0 -45
- package/components/top-nav-bekRXHUk.cjs +0 -45
- /package/components/{color-controller-G2_v2xSl.js → color-controller-Rg_Zl0sT.js} +0 -0
- /package/components/{condition-attribute-with-id-Duo51HZ7.js → condition-attribute-with-id-BdnTdWKz.js} +0 -0
- /package/components/{dependency-manger-DMrulWcJ.js → dependency-manger-wHEXoU92.js} +0 -0
- /package/components/{divider.module-C65RfSUa.js → divider.module-CPEKsaqR.js} +0 -0
- /package/components/{element-resolution-Bs1x89vU.js → element-resolution-gap51AVo.js} +0 -0
- /package/components/{focusable-selectors-Bg60_Kra.js → focusable-selectors-BWpiuXz5.js} +0 -0
- /package/components/{get-label-from-slot-5vVnfSgN.js → get-label-from-slot-Bo9mqYCZ.js} +0 -0
- /package/components/{language-resolution-BpfGTC29.js → language-resolution-DR30FsWE.js} +0 -0
- /package/components/{observe-slot-presence-BCqd3VSd.js → observe-slot-presence-BKY6n06-.js} +0 -0
- /package/components/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
- /package/components/{scaled-indicator-BoLeYSgL.js → scaled-indicator-C-TupV4L.js} +0 -0
- /package/components/{segments-factory-D0IveW-q.js → segments-factory-BCRi1NKb.js} +0 -0
- /package/components/{slottable-request-event-DZ2Z_BLk.js → slottable-request-event-MRSZbgTu.js} +0 -0
- /package/components/{streaming-listener-2NcP7ys7.js → streaming-listener-CtcMpYfS.js} +0 -0
- /package/components/{text-field.module-Btsve-VN.js → text-field.module-BrBqDht3.js} +0 -0
- /package/components/{voice-recorder-477xPHRU.js → voice-recorder-CTg3kRxx.js} +0 -0
|
@@ -15,104 +15,147 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
import { n as e, t } from "./decorate-
|
|
19
|
-
import { n } from "./sized-mixin-
|
|
20
|
-
import { t as r } from "./language-resolution-
|
|
18
|
+
import { n as e, t } from "./decorate-CkCg3wfh.js";
|
|
19
|
+
import { n } from "./sized-mixin-DzQTebN-.js";
|
|
20
|
+
import { t as r } from "./language-resolution-DR30FsWE.js";
|
|
21
21
|
import { html as i, nothing as a, unsafeCSS as o } from "lit";
|
|
22
22
|
import { property as s, state as c } from "lit/decorators.js";
|
|
23
23
|
import { classMap as l } from "lit/directives/class-map.js";
|
|
24
24
|
import { unsafeHTML as u } from "lit/directives/unsafe-html.js";
|
|
25
25
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
function d(e, t) {
|
|
27
|
+
(t == null || t > e.length) && (t = e.length);
|
|
28
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
function ee(e) {
|
|
32
|
+
if (Array.isArray(e)) return e;
|
|
33
|
+
}
|
|
34
|
+
function te(e, t) {
|
|
35
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
36
|
+
if (n != null) {
|
|
37
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
38
|
+
try {
|
|
39
|
+
if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
40
|
+
} catch (e) {
|
|
41
|
+
l = !0, i = e;
|
|
42
|
+
} finally {
|
|
43
|
+
try {
|
|
44
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
45
|
+
} finally {
|
|
46
|
+
if (l) throw i;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return s;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function ne() {
|
|
53
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
54
|
+
}
|
|
55
|
+
function re(e, t) {
|
|
56
|
+
return ee(e) || te(e, t) || f(e, t) || ne();
|
|
57
|
+
}
|
|
58
|
+
function f(e, t) {
|
|
59
|
+
if (e) {
|
|
60
|
+
if (typeof e == "string") return d(e, t);
|
|
61
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
62
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? d(e, t) : void 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
var ie = Object.entries, ae = Object.setPrototypeOf, oe = Object.isFrozen, p = Object.getPrototypeOf, m = Object.getOwnPropertyDescriptor, h = Object.freeze, g = Object.seal, se = Object.create, _ = typeof Reflect < "u" && Reflect, v = _.apply, ce = _.construct;
|
|
66
|
+
h ||= function(e) {
|
|
28
67
|
return e;
|
|
29
|
-
},
|
|
68
|
+
}, g ||= function(e) {
|
|
30
69
|
return e;
|
|
31
|
-
},
|
|
70
|
+
}, v ||= function(e, t) {
|
|
32
71
|
var n = [...arguments].slice(2);
|
|
33
72
|
return e.apply(t, n);
|
|
34
|
-
},
|
|
73
|
+
}, ce ||= function(e) {
|
|
35
74
|
return new e(...[...arguments].slice(1));
|
|
36
75
|
};
|
|
37
|
-
var
|
|
38
|
-
function
|
|
76
|
+
var le = C(Array.prototype.forEach), ue = C(Array.prototype.lastIndexOf), de = C(Array.prototype.pop), fe = C(Array.prototype.push), pe = C(Array.prototype.splice), y = Array.isArray, me = C(String.prototype.toLowerCase), he = C(String.prototype.toString), ge = C(String.prototype.match), _e = C(String.prototype.replace), ve = C(String.prototype.indexOf), ye = C(String.prototype.trim), be = C(Number.prototype.toString), xe = C(Boolean.prototype.toString), Se = typeof BigInt > "u" ? null : C(BigInt.prototype.toString), b = typeof Symbol > "u" ? null : C(Symbol.prototype.toString), x = C(Object.prototype.hasOwnProperty), Ce = C(Object.prototype.toString), S = C(RegExp.prototype.test), we = Te(TypeError);
|
|
77
|
+
function C(e) {
|
|
39
78
|
return function(t) {
|
|
40
79
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
41
80
|
var n = [...arguments].slice(1);
|
|
42
|
-
return
|
|
81
|
+
return v(e, t, n);
|
|
43
82
|
};
|
|
44
83
|
}
|
|
45
|
-
function
|
|
84
|
+
function Te(e) {
|
|
46
85
|
return function() {
|
|
47
|
-
return
|
|
86
|
+
return ce(e, [...arguments]);
|
|
48
87
|
};
|
|
49
88
|
}
|
|
50
|
-
function
|
|
51
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
52
|
-
if (
|
|
89
|
+
function w(e, t) {
|
|
90
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : me;
|
|
91
|
+
if (ae && ae(e, null), !y(t)) return e;
|
|
53
92
|
let r = t.length;
|
|
54
93
|
for (; r--;) {
|
|
55
94
|
let i = t[r];
|
|
56
95
|
if (typeof i == "string") {
|
|
57
96
|
let e = n(i);
|
|
58
|
-
e !== i && (
|
|
97
|
+
e !== i && (oe(t) || (t[r] = e), i = e);
|
|
59
98
|
}
|
|
60
99
|
e[i] = !0;
|
|
61
100
|
}
|
|
62
101
|
return e;
|
|
63
102
|
}
|
|
64
|
-
function
|
|
65
|
-
for (let t = 0; t < e.length; t++)
|
|
103
|
+
function Ee(e) {
|
|
104
|
+
for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
|
|
66
105
|
return e;
|
|
67
106
|
}
|
|
68
|
-
function
|
|
69
|
-
let t =
|
|
70
|
-
for (let
|
|
107
|
+
function T(e) {
|
|
108
|
+
let t = se(null);
|
|
109
|
+
for (let r of ie(e)) {
|
|
110
|
+
var n = re(r, 2);
|
|
111
|
+
let i = n[0], a = n[1];
|
|
112
|
+
x(e, i) && (y(a) ? t[i] = Ee(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = T(a) : t[i] = a);
|
|
113
|
+
}
|
|
71
114
|
return t;
|
|
72
115
|
}
|
|
73
|
-
function
|
|
116
|
+
function De(e) {
|
|
74
117
|
switch (typeof e) {
|
|
75
118
|
case "string": return e;
|
|
76
|
-
case "number": return
|
|
77
|
-
case "boolean": return
|
|
78
|
-
case "bigint": return
|
|
79
|
-
case "symbol": return
|
|
80
|
-
case "undefined": return
|
|
119
|
+
case "number": return be(e);
|
|
120
|
+
case "boolean": return xe(e);
|
|
121
|
+
case "bigint": return Se ? Se(e) : "0";
|
|
122
|
+
case "symbol": return b ? b(e) : "Symbol()";
|
|
123
|
+
case "undefined": return Ce(e);
|
|
81
124
|
case "function":
|
|
82
125
|
case "object": {
|
|
83
|
-
if (e === null) return
|
|
84
|
-
let t = e, n =
|
|
126
|
+
if (e === null) return Ce(e);
|
|
127
|
+
let t = e, n = E(t, "toString");
|
|
85
128
|
if (typeof n == "function") {
|
|
86
129
|
let e = n(t);
|
|
87
|
-
return typeof e == "string" ? e :
|
|
130
|
+
return typeof e == "string" ? e : Ce(e);
|
|
88
131
|
}
|
|
89
|
-
return
|
|
132
|
+
return Ce(e);
|
|
90
133
|
}
|
|
91
|
-
default: return
|
|
134
|
+
default: return Ce(e);
|
|
92
135
|
}
|
|
93
136
|
}
|
|
94
|
-
function
|
|
137
|
+
function E(e, t) {
|
|
95
138
|
for (; e !== null;) {
|
|
96
|
-
let n =
|
|
139
|
+
let n = m(e, t);
|
|
97
140
|
if (n) {
|
|
98
|
-
if (n.get) return
|
|
99
|
-
if (typeof n.value == "function") return
|
|
141
|
+
if (n.get) return C(n.get);
|
|
142
|
+
if (typeof n.value == "function") return C(n.value);
|
|
100
143
|
}
|
|
101
|
-
e =
|
|
144
|
+
e = p(e);
|
|
102
145
|
}
|
|
103
146
|
function n() {
|
|
104
147
|
return null;
|
|
105
148
|
}
|
|
106
149
|
return n;
|
|
107
150
|
}
|
|
108
|
-
function
|
|
151
|
+
function Oe(e) {
|
|
109
152
|
try {
|
|
110
|
-
return
|
|
153
|
+
return S(e, ""), !0;
|
|
111
154
|
} catch {
|
|
112
155
|
return !1;
|
|
113
156
|
}
|
|
114
157
|
}
|
|
115
|
-
var
|
|
158
|
+
var ke = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Ae = h(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), je = h([
|
|
116
159
|
"feBlend",
|
|
117
160
|
"feColorMatrix",
|
|
118
161
|
"feComponentTransfer",
|
|
@@ -138,7 +181,7 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
138
181
|
"feSpotLight",
|
|
139
182
|
"feTile",
|
|
140
183
|
"feTurbulence"
|
|
141
|
-
]),
|
|
184
|
+
]), Me = h([
|
|
142
185
|
"animate",
|
|
143
186
|
"color-profile",
|
|
144
187
|
"cursor",
|
|
@@ -161,7 +204,7 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
161
204
|
"solidcolor",
|
|
162
205
|
"unknown",
|
|
163
206
|
"use"
|
|
164
|
-
]),
|
|
207
|
+
]), Ne = h(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Pe = h([
|
|
165
208
|
"maction",
|
|
166
209
|
"maligngroup",
|
|
167
210
|
"malignmark",
|
|
@@ -177,33 +220,28 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
177
220
|
"annotation-xml",
|
|
178
221
|
"mprescripts",
|
|
179
222
|
"none"
|
|
180
|
-
]),
|
|
223
|
+
]), Fe = h(["#text"]), Ie = h(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Le = h(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Re = h(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), ze = h([
|
|
181
224
|
"xlink:href",
|
|
182
225
|
"xml:id",
|
|
183
226
|
"xlink:title",
|
|
184
227
|
"xml:space",
|
|
185
228
|
"xmlns:xlink"
|
|
186
|
-
]),
|
|
187
|
-
__proto__: null,
|
|
188
|
-
ARIA_ATTR: ze,
|
|
189
|
-
ATTR_WHITESPACE: He,
|
|
190
|
-
CUSTOM_ELEMENT: We,
|
|
191
|
-
DATA_ATTR: Re,
|
|
192
|
-
DOCTYPE_NAME: Ue,
|
|
193
|
-
ERB_EXPR: w,
|
|
194
|
-
IS_ALLOWED_URI: Be,
|
|
195
|
-
IS_SCRIPT_OR_DATA: Ve,
|
|
196
|
-
MUSTACHE_EXPR: Ie,
|
|
197
|
-
TMPLIT_EXPR: Le
|
|
198
|
-
}), Ke = {
|
|
229
|
+
]), Be = g(/{{[\w\W]*|^[\w\W]*}}/g), Ve = g(/<%[\w\W]*|^[\w\W]*%>/g), He = g(/\${[\w\W]*/g), Ue = g(/^data-[\-\w.\u00B7-\uFFFF]+$/), We = g(/^aria-[\-\w]+$/), Ge = g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ke = g(/^(?:\w+script|data):/i), qe = g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Je = g(/^html$/i), Ye = g(/^[a-z][.\w]*(-[.\w]+)+$/i), Xe = g(/<[/\w!]/g), Ze = g(/<[/\w]/g), Qe = g(/<\/no(script|embed|frames)/i), $e = g(/\/>/i), D = {
|
|
199
230
|
element: 1,
|
|
231
|
+
attribute: 2,
|
|
200
232
|
text: 3,
|
|
201
|
-
|
|
233
|
+
cdataSection: 4,
|
|
234
|
+
entityReference: 5,
|
|
235
|
+
entityNode: 6,
|
|
236
|
+
processingInstruction: 7,
|
|
202
237
|
comment: 8,
|
|
203
|
-
document: 9
|
|
204
|
-
|
|
238
|
+
document: 9,
|
|
239
|
+
documentType: 10,
|
|
240
|
+
documentFragment: 11,
|
|
241
|
+
notation: 12
|
|
242
|
+
}, et = function() {
|
|
205
243
|
return typeof window > "u" ? null : window;
|
|
206
|
-
},
|
|
244
|
+
}, tt = function(e, t) {
|
|
207
245
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
208
246
|
let n = null, r = "data-tt-policy-suffix";
|
|
209
247
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -220,7 +258,7 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
220
258
|
} catch {
|
|
221
259
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
222
260
|
}
|
|
223
|
-
},
|
|
261
|
+
}, nt = function() {
|
|
224
262
|
return {
|
|
225
263
|
afterSanitizeAttributes: [],
|
|
226
264
|
afterSanitizeElements: [],
|
|
@@ -232,29 +270,53 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
232
270
|
uponSanitizeElement: [],
|
|
233
271
|
uponSanitizeShadowNode: []
|
|
234
272
|
};
|
|
273
|
+
}, O = function(e, t, n, r) {
|
|
274
|
+
return x(e, t) && y(e[t]) ? w(r.base ? T(r.base) : {}, e[t], r.transform) : n;
|
|
235
275
|
};
|
|
236
|
-
function
|
|
237
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
238
|
-
if (t.version = "3.4.
|
|
239
|
-
let
|
|
240
|
-
|
|
276
|
+
function rt() {
|
|
277
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : et(), t = (e) => rt(e);
|
|
278
|
+
if (t.version = "3.4.12", t.removed = [], !e || !e.document || e.document.nodeType !== D.document || !e.Element) return t.isSupported = !1, t;
|
|
279
|
+
let n = e.document, r = n, i = r.currentScript;
|
|
280
|
+
e.DocumentFragment;
|
|
281
|
+
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
282
|
+
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
283
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, ee = E(d, "cloneNode"), te = E(d, "remove"), ne = E(d, "nextSibling"), re = E(d, "childNodes"), f = E(d, "parentNode"), ae = E(d, "shadowRoot"), oe = E(d, "attributes"), p = o && o.prototype ? E(o.prototype, "nodeType") : null, m = o && o.prototype ? E(o.prototype, "nodeName") : null;
|
|
284
|
+
if (typeof a == "function") {
|
|
241
285
|
let e = n.createElement("template");
|
|
242
286
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
243
287
|
}
|
|
244
|
-
let
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
288
|
+
let _, v = "", ce, be = !1, xe = 0, Se = function() {
|
|
289
|
+
if (xe > 0) throw we("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
290
|
+
}, b = function(e) {
|
|
291
|
+
Se(), xe++;
|
|
292
|
+
try {
|
|
293
|
+
return _.createHTML(e);
|
|
294
|
+
} finally {
|
|
295
|
+
xe--;
|
|
296
|
+
}
|
|
297
|
+
}, Ce = function(e) {
|
|
298
|
+
Se(), xe++;
|
|
299
|
+
try {
|
|
300
|
+
return _.createScriptURL(e);
|
|
301
|
+
} finally {
|
|
302
|
+
xe--;
|
|
303
|
+
}
|
|
304
|
+
}, C = function() {
|
|
305
|
+
return be ||= (ce = tt(u, i), !0), ce;
|
|
306
|
+
}, Te = n, Ee = Te.implementation, it = Te.createNodeIterator, at = Te.createDocumentFragment, k = Te.getElementsByTagName, ot = r.importNode, A = nt();
|
|
307
|
+
t.isSupported = typeof ie == "function" && typeof f == "function" && Ee && Ee.createHTMLDocument !== void 0;
|
|
308
|
+
let st = Be, j = Ve, ct = He, M = Ue, lt = We, ut = Ke, dt = qe, ft = Ye, pt = Ge, N = null, mt = w({}, [
|
|
250
309
|
...ke,
|
|
251
|
-
...
|
|
252
|
-
|
|
253
|
-
...Me,
|
|
310
|
+
...Ae,
|
|
311
|
+
...je,
|
|
254
312
|
...Ne,
|
|
255
|
-
...Pe,
|
|
256
313
|
...Fe
|
|
257
|
-
]),
|
|
314
|
+
]), P = null, ht = w({}, [
|
|
315
|
+
...Ie,
|
|
316
|
+
...Le,
|
|
317
|
+
...Re,
|
|
318
|
+
...ze
|
|
319
|
+
]), F = Object.seal(se(null, {
|
|
258
320
|
tagNameCheck: {
|
|
259
321
|
writable: !0,
|
|
260
322
|
configurable: !1,
|
|
@@ -273,7 +335,7 @@ function Xe() {
|
|
|
273
335
|
enumerable: !0,
|
|
274
336
|
value: !1
|
|
275
337
|
}
|
|
276
|
-
})),
|
|
338
|
+
})), gt = null, _t = null, I = Object.seal(se(null, {
|
|
277
339
|
tagCheck: {
|
|
278
340
|
writable: !0,
|
|
279
341
|
configurable: !1,
|
|
@@ -286,40 +348,14 @@ function Xe() {
|
|
|
286
348
|
enumerable: !0,
|
|
287
349
|
value: null
|
|
288
350
|
}
|
|
289
|
-
})),
|
|
290
|
-
"annotation-xml",
|
|
291
|
-
"audio",
|
|
292
|
-
"colgroup",
|
|
293
|
-
"desc",
|
|
294
|
-
"foreignobject",
|
|
295
|
-
"head",
|
|
296
|
-
"iframe",
|
|
297
|
-
"math",
|
|
298
|
-
"mi",
|
|
299
|
-
"mn",
|
|
300
|
-
"mo",
|
|
301
|
-
"ms",
|
|
302
|
-
"mtext",
|
|
303
|
-
"noembed",
|
|
304
|
-
"noframes",
|
|
305
|
-
"noscript",
|
|
306
|
-
"plaintext",
|
|
307
|
-
"script",
|
|
308
|
-
"style",
|
|
309
|
-
"svg",
|
|
310
|
-
"template",
|
|
311
|
-
"thead",
|
|
312
|
-
"title",
|
|
313
|
-
"video",
|
|
314
|
-
"xmp"
|
|
315
|
-
]), mt = null, ht = S({}, [
|
|
351
|
+
})), vt = !0, yt = !0, bt = !1, xt = !0, L = !1, R = !0, z = !1, St = !1, Ct = null, wt = null, Tt = !1, Et = !1, Dt = !1, Ot = !1, kt = !0, B = !1, At = "user-content-", jt = !0, Mt = !1, V = {}, H = null, Nt = w({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Pt = null, Ft = w({}, [
|
|
316
352
|
"audio",
|
|
317
353
|
"video",
|
|
318
354
|
"img",
|
|
319
355
|
"source",
|
|
320
356
|
"image",
|
|
321
357
|
"track"
|
|
322
|
-
]),
|
|
358
|
+
]), It = null, Lt = w({}, [
|
|
323
359
|
"alt",
|
|
324
360
|
"class",
|
|
325
361
|
"for",
|
|
@@ -334,152 +370,249 @@ function Xe() {
|
|
|
334
370
|
"value",
|
|
335
371
|
"style",
|
|
336
372
|
"xmlns"
|
|
337
|
-
]),
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
],
|
|
373
|
+
]), Rt = "http://www.w3.org/1998/Math/MathML", zt = "http://www.w3.org/2000/svg", U = "http://www.w3.org/1999/xhtml", Bt = U, Vt = !1, Ht = null, Ut = w({}, [
|
|
374
|
+
Rt,
|
|
375
|
+
zt,
|
|
376
|
+
U
|
|
377
|
+
], he), Wt = h([
|
|
342
378
|
"mi",
|
|
343
379
|
"mo",
|
|
344
380
|
"mn",
|
|
345
381
|
"ms",
|
|
346
382
|
"mtext"
|
|
347
|
-
]),
|
|
383
|
+
]), Gt = w({}, Wt), Kt = h(["annotation-xml"]), qt = w({}, Kt), Jt = w({}, [
|
|
348
384
|
"title",
|
|
349
385
|
"style",
|
|
350
386
|
"font",
|
|
351
387
|
"a",
|
|
352
388
|
"script"
|
|
353
|
-
]),
|
|
389
|
+
]), Yt = null, Xt = ["application/xhtml+xml", "text/html"], W = null, Zt = null, Qt = n.createElement("form"), $t = function(e) {
|
|
354
390
|
return e instanceof RegExp || e instanceof Function;
|
|
355
|
-
},
|
|
391
|
+
}, en = function() {
|
|
356
392
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
357
|
-
if (
|
|
358
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
let t =
|
|
366
|
-
if (
|
|
393
|
+
if (Zt && Zt === e) return;
|
|
394
|
+
(!e || typeof e != "object") && (e = {}), e = T(e), Yt = Xt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, W = Yt === "application/xhtml+xml" ? he : me, N = O(e, "ALLOWED_TAGS", mt, { transform: W }), P = O(e, "ALLOWED_ATTR", ht, { transform: W }), Ht = O(e, "ALLOWED_NAMESPACES", Ut, { transform: he }), It = O(e, "ADD_URI_SAFE_ATTR", Lt, {
|
|
395
|
+
transform: W,
|
|
396
|
+
base: Lt
|
|
397
|
+
}), Pt = O(e, "ADD_DATA_URI_TAGS", Ft, {
|
|
398
|
+
transform: W,
|
|
399
|
+
base: Ft
|
|
400
|
+
}), H = O(e, "FORBID_CONTENTS", Nt, { transform: W }), gt = O(e, "FORBID_TAGS", T({}), { transform: W }), _t = O(e, "FORBID_ATTR", T({}), { transform: W }), V = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? T(e.USE_PROFILES) : e.USE_PROFILES : !1, vt = e.ALLOW_ARIA_ATTR !== !1, yt = e.ALLOW_DATA_ATTR !== !1, bt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, xt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, L = e.SAFE_FOR_TEMPLATES || !1, R = e.SAFE_FOR_XML !== !1, z = e.WHOLE_DOCUMENT || !1, Et = e.RETURN_DOM || !1, Dt = e.RETURN_DOM_FRAGMENT || !1, Ot = e.RETURN_TRUSTED_TYPE || !1, Tt = e.FORCE_BODY || !1, kt = e.SANITIZE_DOM !== !1, B = e.SANITIZE_NAMED_PROPS || !1, jt = e.KEEP_CONTENT !== !1, Mt = e.IN_PLACE || !1, pt = Oe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ge, Bt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : U, Gt = x(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? T(e.MATHML_TEXT_INTEGRATION_POINTS) : w({}, Wt), qt = x(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? T(e.HTML_INTEGRATION_POINTS) : w({}, Kt);
|
|
401
|
+
let t = x(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? T(e.CUSTOM_ELEMENT_HANDLING) : se(null);
|
|
402
|
+
if (F = se(null), x(t, "tagNameCheck") && $t(t.tagNameCheck) && (F.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && $t(t.attributeNameCheck) && (F.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), g(F), L && (yt = !1), Dt && (Et = !0), V && (N = w({}, Fe), P = se(null), V.html === !0 && (w(N, ke), w(P, Ie)), V.svg === !0 && (w(N, Ae), w(P, Le), w(P, ze)), V.svgFilters === !0 && (w(N, je), w(P, Le), w(P, ze)), V.mathMl === !0 && (w(N, Ne), w(P, Re), w(P, ze))), I.tagCheck = null, I.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? I.tagCheck = e.ADD_TAGS : y(e.ADD_TAGS) && (N === mt && (N = T(N)), w(N, e.ADD_TAGS, W))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? I.attributeCheck = e.ADD_ATTR : y(e.ADD_ATTR) && (P === ht && (P = T(P)), w(P, e.ADD_ATTR, W))), x(e, "ADD_URI_SAFE_ATTR") && y(e.ADD_URI_SAFE_ATTR) && w(It, e.ADD_URI_SAFE_ATTR, W), x(e, "FORBID_CONTENTS") && y(e.FORBID_CONTENTS) && (H === Nt && (H = T(H)), w(H, e.FORBID_CONTENTS, W)), x(e, "ADD_FORBID_CONTENTS") && y(e.ADD_FORBID_CONTENTS) && (H === Nt && (H = T(H)), w(H, e.ADD_FORBID_CONTENTS, W)), jt && (N["#text"] = !0), z && w(N, [
|
|
367
403
|
"html",
|
|
368
404
|
"head",
|
|
369
405
|
"body"
|
|
370
|
-
]),
|
|
371
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
372
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
406
|
+
]), N.table && (w(N, ["tbody"]), delete gt.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
407
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw we("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
408
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw we("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
409
|
+
let t = _;
|
|
410
|
+
_ = e.TRUSTED_TYPES_POLICY;
|
|
411
|
+
try {
|
|
412
|
+
v = b("");
|
|
413
|
+
} catch (e) {
|
|
414
|
+
throw _ = t, e;
|
|
415
|
+
}
|
|
416
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (_ = void 0, v = "") : (_ === void 0 && (_ = C()), _ && typeof v == "string" && (v = b("")));
|
|
417
|
+
h && h(e), Zt = e;
|
|
418
|
+
}, tn = w({}, [
|
|
419
|
+
...Ae,
|
|
420
|
+
...je,
|
|
421
|
+
...Me
|
|
422
|
+
]), nn = w({}, [...Ne, ...Pe]), rn = function(e, t, n) {
|
|
423
|
+
return t.namespaceURI === U ? e === "svg" : t.namespaceURI === Rt ? e === "svg" && (n === "annotation-xml" || Gt[n]) : !!tn[e];
|
|
424
|
+
}, an = function(e, t, n) {
|
|
425
|
+
return t.namespaceURI === U ? e === "math" : t.namespaceURI === zt ? e === "math" && qt[n] : !!nn[e];
|
|
426
|
+
}, on = function(e, t, n) {
|
|
427
|
+
return t.namespaceURI === zt && !qt[n] || t.namespaceURI === Rt && !Gt[n] ? !1 : !nn[e] && (Jt[e] || !tn[e]);
|
|
428
|
+
}, G = function(e) {
|
|
429
|
+
let t = f(e);
|
|
382
430
|
(!t || !t.tagName) && (t = {
|
|
383
|
-
namespaceURI:
|
|
431
|
+
namespaceURI: Bt,
|
|
384
432
|
tagName: "template"
|
|
385
433
|
});
|
|
386
|
-
let n =
|
|
387
|
-
return
|
|
388
|
-
},
|
|
389
|
-
|
|
434
|
+
let n = me(e.tagName), r = me(t.tagName);
|
|
435
|
+
return Ht[e.namespaceURI] ? e.namespaceURI === zt ? rn(n, t, r) : e.namespaceURI === Rt ? an(n, t, r) : e.namespaceURI === U ? on(n, t, r) : !!(Yt === "application/xhtml+xml" && Ht[e.namespaceURI]) : !1;
|
|
436
|
+
}, K = function(e) {
|
|
437
|
+
fe(t.removed, { element: e });
|
|
390
438
|
try {
|
|
391
|
-
|
|
439
|
+
f(e).removeChild(e);
|
|
392
440
|
} catch {
|
|
393
|
-
|
|
441
|
+
if (te(e), !f(e)) throw we("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
442
|
+
}
|
|
443
|
+
}, sn = function(e) {
|
|
444
|
+
ln(e);
|
|
445
|
+
let t = re(e);
|
|
446
|
+
if (t) {
|
|
447
|
+
let e = [];
|
|
448
|
+
le(t, (t) => {
|
|
449
|
+
fe(e, t);
|
|
450
|
+
}), le(e, (e) => {
|
|
451
|
+
try {
|
|
452
|
+
te(e);
|
|
453
|
+
} catch {}
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
let n = oe(e);
|
|
457
|
+
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
458
|
+
let r = n[t], i = r && r.name;
|
|
459
|
+
if (typeof i == "string") try {
|
|
460
|
+
e.removeAttribute(i);
|
|
461
|
+
} catch {}
|
|
394
462
|
}
|
|
395
|
-
},
|
|
463
|
+
}, q = function(e, n) {
|
|
396
464
|
try {
|
|
397
|
-
|
|
465
|
+
fe(t.removed, {
|
|
398
466
|
attribute: n.getAttributeNode(e),
|
|
399
467
|
from: n
|
|
400
468
|
});
|
|
401
469
|
} catch {
|
|
402
|
-
|
|
470
|
+
fe(t.removed, {
|
|
403
471
|
attribute: null,
|
|
404
472
|
from: n
|
|
405
473
|
});
|
|
406
474
|
}
|
|
407
|
-
if (n.removeAttribute(e), e === "is") if (
|
|
408
|
-
|
|
475
|
+
if (n.removeAttribute(e), e === "is") if (Et || Dt) try {
|
|
476
|
+
K(n);
|
|
409
477
|
} catch {}
|
|
410
478
|
else try {
|
|
411
479
|
n.setAttribute(e, "");
|
|
412
480
|
} catch {}
|
|
413
|
-
},
|
|
481
|
+
}, cn = function(e) {
|
|
482
|
+
let t = oe(e);
|
|
483
|
+
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
484
|
+
let r = t[n], i = r && r.name;
|
|
485
|
+
if (!(typeof i != "string" || P[W(i)])) try {
|
|
486
|
+
e.removeAttribute(i);
|
|
487
|
+
} catch {}
|
|
488
|
+
}
|
|
489
|
+
}, ln = function(e) {
|
|
490
|
+
let t = [e];
|
|
491
|
+
for (; t.length > 0;) {
|
|
492
|
+
let e = t.pop();
|
|
493
|
+
(p ? p(e) : e.nodeType) === D.element && cn(e);
|
|
494
|
+
let n = re(e);
|
|
495
|
+
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
496
|
+
}
|
|
497
|
+
}, un = function(e) {
|
|
498
|
+
if (!R) return;
|
|
499
|
+
let t = [e];
|
|
500
|
+
for (; t.length > 0;) {
|
|
501
|
+
let e = t.pop(), n = p ? p(e) : e.nodeType;
|
|
502
|
+
if (n === D.processingInstruction || n === D.comment && S(Ze, e.data)) {
|
|
503
|
+
try {
|
|
504
|
+
te(e);
|
|
505
|
+
} catch {}
|
|
506
|
+
continue;
|
|
507
|
+
}
|
|
508
|
+
if (n === D.element) {
|
|
509
|
+
let t = e, n = W(m ? m(e) : e.nodeName);
|
|
510
|
+
try {
|
|
511
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
|
|
512
|
+
} catch {}
|
|
513
|
+
}
|
|
514
|
+
let r = re(e);
|
|
515
|
+
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
516
|
+
}
|
|
517
|
+
}, dn = function(e) {
|
|
414
518
|
let t = null, r = null;
|
|
415
|
-
if (
|
|
519
|
+
if (Tt) e = "<remove></remove>" + e;
|
|
416
520
|
else {
|
|
417
|
-
let t =
|
|
521
|
+
let t = ge(e, /^[\r\n\t ]+/);
|
|
418
522
|
r = t && t[0];
|
|
419
523
|
}
|
|
420
|
-
|
|
421
|
-
let i =
|
|
422
|
-
if (
|
|
423
|
-
t = new
|
|
524
|
+
Yt === "application/xhtml+xml" && Bt === U && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
525
|
+
let i = _ ? b(e) : e;
|
|
526
|
+
if (Bt === U) try {
|
|
527
|
+
t = new l().parseFromString(i, Yt);
|
|
424
528
|
} catch {}
|
|
425
529
|
if (!t || !t.documentElement) {
|
|
426
|
-
t =
|
|
530
|
+
t = Ee.createDocument(Bt, "template", null);
|
|
427
531
|
try {
|
|
428
|
-
t.documentElement.innerHTML =
|
|
532
|
+
t.documentElement.innerHTML = Vt ? v : i;
|
|
429
533
|
} catch {}
|
|
430
534
|
}
|
|
431
535
|
let a = t.body || t.documentElement;
|
|
432
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
433
|
-
},
|
|
434
|
-
return
|
|
435
|
-
},
|
|
436
|
-
return e
|
|
437
|
-
},
|
|
438
|
-
|
|
536
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Bt === U ? k.call(t, z ? "html" : "body")[0] : z ? t.documentElement : a;
|
|
537
|
+
}, fn = function(e) {
|
|
538
|
+
return it.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
539
|
+
}, pn = function(e) {
|
|
540
|
+
return e = _e(e, st, " "), e = _e(e, j, " "), e = _e(e, ct, " "), e;
|
|
541
|
+
}, J = function(e) {
|
|
542
|
+
e.normalize();
|
|
543
|
+
let t = it.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
544
|
+
for (; n;) n.data = pn(n.data), n = t.nextNode();
|
|
545
|
+
let r = e.querySelectorAll?.call(e, "template");
|
|
546
|
+
r && le(r, (e) => {
|
|
547
|
+
Y(e.content) && J(e.content);
|
|
548
|
+
});
|
|
549
|
+
}, mn = function(e) {
|
|
550
|
+
let t = m ? m(e) : null;
|
|
551
|
+
return typeof t != "string" || W(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== oe(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== p(e) || e.childNodes !== re(e);
|
|
552
|
+
}, Y = function(e) {
|
|
553
|
+
if (!p || typeof e != "object" || !e) return !1;
|
|
554
|
+
try {
|
|
555
|
+
return p(e) === D.documentFragment;
|
|
556
|
+
} catch {
|
|
557
|
+
return !1;
|
|
558
|
+
}
|
|
559
|
+
}, X = function(e) {
|
|
560
|
+
if (!p || typeof e != "object" || !e) return !1;
|
|
561
|
+
try {
|
|
562
|
+
return typeof p(e) == "number";
|
|
563
|
+
} catch {
|
|
564
|
+
return !1;
|
|
565
|
+
}
|
|
439
566
|
};
|
|
440
|
-
function
|
|
441
|
-
|
|
442
|
-
e.call(t, n, r,
|
|
567
|
+
function Z(e, n, r) {
|
|
568
|
+
e.length !== 0 && le(e, (e) => {
|
|
569
|
+
e.call(t, n, r, Zt);
|
|
443
570
|
});
|
|
444
571
|
}
|
|
445
|
-
let
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
if (
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
let t = ve(e) || e.parentNode, n = _e(e) || e.childNodes;
|
|
457
|
-
if (n && t) {
|
|
458
|
-
let r = n.length;
|
|
459
|
-
for (let i = r - 1; i >= 0; --i) {
|
|
460
|
-
let r = m(n[i], !0);
|
|
461
|
-
t.insertBefore(r, ae(e));
|
|
462
|
-
}
|
|
572
|
+
let hn = function(e, t) {
|
|
573
|
+
return !!(R && e.hasChildNodes() && !X(e.firstElementChild) && S(Xe, e.textContent) && S(Xe, e.innerHTML) || R && e.namespaceURI === U && t === "style" && X(e.firstElementChild) || e.nodeType === D.processingInstruction || R && e.nodeType === D.comment && S(Ze, e.data));
|
|
574
|
+
}, Q = function(e, t) {
|
|
575
|
+
if (!gt[t] && vn(t) && (F.tagNameCheck instanceof RegExp && S(F.tagNameCheck, t) || F.tagNameCheck instanceof Function && F.tagNameCheck(t))) return !1;
|
|
576
|
+
if (jt && !H[t]) {
|
|
577
|
+
let t = f(e), n = re(e);
|
|
578
|
+
if (n && t) {
|
|
579
|
+
let r = n.length;
|
|
580
|
+
for (let i = r - 1; i >= 0; --i) {
|
|
581
|
+
let r = Mt ? n[i] : ee(n[i], !0);
|
|
582
|
+
t.insertBefore(r, ne(e));
|
|
463
583
|
}
|
|
464
584
|
}
|
|
465
|
-
return G(e), !0;
|
|
466
585
|
}
|
|
467
|
-
return
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
if (
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
586
|
+
return K(e), !0;
|
|
587
|
+
}, gn = function(e, n) {
|
|
588
|
+
if (Z(A.beforeSanitizeElements, e, null), e !== n && f(e) === null) return !0;
|
|
589
|
+
if (mn(e)) return K(e), !0;
|
|
590
|
+
let r = W(m ? m(e) : e.nodeName);
|
|
591
|
+
if (Z(A.uponSanitizeElement, e, {
|
|
592
|
+
tagName: r,
|
|
593
|
+
allowedTags: N
|
|
594
|
+
}), e !== n && f(e) === null) return !0;
|
|
595
|
+
if (hn(e, r)) return K(e), !0;
|
|
596
|
+
if (gt[r] || !(I.tagCheck instanceof Function && I.tagCheck(r)) && !N[r]) {
|
|
597
|
+
let t = Q(e, r);
|
|
598
|
+
return t === !1 && Z(A.afterSanitizeElements, e, null), t;
|
|
599
|
+
}
|
|
600
|
+
if ((p ? p(e) : e.nodeType) === D.element && !G(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(Qe, e.innerHTML)) return K(e), !0;
|
|
601
|
+
if (L && e.nodeType === D.text) {
|
|
602
|
+
let n = pn(e.textContent);
|
|
603
|
+
e.textContent !== n && (fe(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
604
|
+
}
|
|
605
|
+
return Z(A.afterSanitizeElements, e, null), !1;
|
|
606
|
+
}, $ = function(e, t, r) {
|
|
607
|
+
if (_t[t] || R && t === "patchsrc" || R && t === "for" && e !== "label" && e !== "output" || kt && (t === "id" || t === "name") && (r in n || r in Qt)) return !1;
|
|
608
|
+
let i = P[t] || I.attributeCheck instanceof Function && I.attributeCheck(t, e);
|
|
609
|
+
if (!(yt && S(M, t)) && !(vt && S(lt, t))) {
|
|
610
|
+
if (!i) {
|
|
611
|
+
if (!(vn(e) && (F.tagNameCheck instanceof RegExp && S(F.tagNameCheck, e) || F.tagNameCheck instanceof Function && F.tagNameCheck(e)) && (F.attributeNameCheck instanceof RegExp && S(F.attributeNameCheck, t) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(t, e)) || t === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && S(F.tagNameCheck, r) || F.tagNameCheck instanceof Function && F.tagNameCheck(r)))) return !1;
|
|
612
|
+
} else if (!It[t] && !S(pt, _e(r, dt, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ve(r, "data:") === 0 && Pt[e]) && !(bt && !S(ut, _e(r, dt, ""))) && r) return !1;
|
|
480
613
|
}
|
|
481
614
|
return !0;
|
|
482
|
-
},
|
|
615
|
+
}, _n = w({}, [
|
|
483
616
|
"annotation-xml",
|
|
484
617
|
"color-profile",
|
|
485
618
|
"font-face",
|
|
@@ -488,137 +621,175 @@ function Xe() {
|
|
|
488
621
|
"font-face-src",
|
|
489
622
|
"font-face-uri",
|
|
490
623
|
"missing-glyph"
|
|
491
|
-
]),
|
|
492
|
-
return !
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
624
|
+
]), vn = function(e) {
|
|
625
|
+
return !_n[me(e)] && S(ft, e);
|
|
626
|
+
}, yn = function(e, t, n, r) {
|
|
627
|
+
if (_ && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
628
|
+
case "TrustedHTML": return b(r);
|
|
629
|
+
case "TrustedScriptURL": return Ce(r);
|
|
630
|
+
}
|
|
631
|
+
return r;
|
|
632
|
+
}, bn = function(e, n, r, i) {
|
|
633
|
+
try {
|
|
634
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), mn(e) ? K(e) : de(t.removed);
|
|
635
|
+
} catch {
|
|
636
|
+
q(n, e);
|
|
637
|
+
}
|
|
638
|
+
}, xn = function(e) {
|
|
639
|
+
Z(A.beforeSanitizeAttributes, e, null);
|
|
640
|
+
let t = e.attributes;
|
|
641
|
+
if (!t || mn(e)) return;
|
|
642
|
+
let n = {
|
|
498
643
|
attrName: "",
|
|
499
644
|
attrValue: "",
|
|
500
645
|
keepAttr: !0,
|
|
501
|
-
allowedAttributes:
|
|
646
|
+
allowedAttributes: P,
|
|
502
647
|
forceKeepAttr: void 0
|
|
503
|
-
}, i =
|
|
504
|
-
for (;
|
|
505
|
-
let
|
|
506
|
-
if (
|
|
507
|
-
|
|
648
|
+
}, r = t.length, i = W(e.nodeName);
|
|
649
|
+
for (; r--;) {
|
|
650
|
+
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = W(o), u = c, d = o === "value" ? u : ye(u);
|
|
651
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, Z(A.uponSanitizeAttribute, e, n), d = n.attrValue, B && (l === "id" || l === "name") && ve(d, At) !== 0 && (q(o, e), d = At + d), R && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
652
|
+
q(o, e);
|
|
508
653
|
continue;
|
|
509
654
|
}
|
|
510
|
-
if (
|
|
511
|
-
|
|
655
|
+
if (l === "attributename" && ge(d, "href")) {
|
|
656
|
+
q(o, e);
|
|
512
657
|
continue;
|
|
513
658
|
}
|
|
514
|
-
if (
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
659
|
+
if (!n.forceKeepAttr) {
|
|
660
|
+
if (!n.keepAttr) {
|
|
661
|
+
q(o, e);
|
|
662
|
+
continue;
|
|
663
|
+
}
|
|
664
|
+
if (!xt && S($e, d)) {
|
|
665
|
+
q(o, e);
|
|
666
|
+
continue;
|
|
667
|
+
}
|
|
668
|
+
if (L && (d = pn(d)), !$(i, l, d)) {
|
|
669
|
+
q(o, e);
|
|
670
|
+
continue;
|
|
671
|
+
}
|
|
672
|
+
d = yn(i, l, s, d), d !== u && bn(e, o, s, d);
|
|
518
673
|
}
|
|
519
|
-
|
|
520
|
-
|
|
674
|
+
}
|
|
675
|
+
Z(A.afterSanitizeAttributes, e, null);
|
|
676
|
+
}, Sn = function(e) {
|
|
677
|
+
let t = null, n = fn(e);
|
|
678
|
+
for (Z(A.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Z(A.uponSanitizeShadowNode, t, null), gn(t, e), xn(t), Y(t.content) && Sn(t.content), (p ? p(t) : t.nodeType) === D.element) {
|
|
679
|
+
let e = ae(t);
|
|
680
|
+
Y(e) && (Cn(e), Sn(e));
|
|
681
|
+
}
|
|
682
|
+
Z(A.afterSanitizeShadowDOM, e, null);
|
|
683
|
+
}, Cn = function(e) {
|
|
684
|
+
let t = [{
|
|
685
|
+
node: e,
|
|
686
|
+
shadow: null
|
|
687
|
+
}];
|
|
688
|
+
for (; t.length > 0;) {
|
|
689
|
+
let e = t.pop();
|
|
690
|
+
if (e.shadow) {
|
|
691
|
+
Sn(e.shadow);
|
|
521
692
|
continue;
|
|
522
693
|
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
], (e) => {
|
|
528
|
-
u = me(u, e, " ");
|
|
694
|
+
let n = e.node, r = (p ? p(n) : n.nodeType) === D.element, i = re(n);
|
|
695
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
696
|
+
node: i[e],
|
|
697
|
+
shadow: null
|
|
529
698
|
});
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
case "TrustedScriptURL":
|
|
540
|
-
u = g.createScriptURL(u);
|
|
541
|
-
break;
|
|
699
|
+
if (r) {
|
|
700
|
+
let e = m ? m(n) : null;
|
|
701
|
+
if (typeof e == "string" && W(e) === "template") {
|
|
702
|
+
let e = n.content;
|
|
703
|
+
Y(e) && t.push({
|
|
704
|
+
node: e,
|
|
705
|
+
shadow: null
|
|
706
|
+
});
|
|
707
|
+
}
|
|
542
708
|
}
|
|
543
|
-
if (
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
709
|
+
if (r) {
|
|
710
|
+
let e = ae(n);
|
|
711
|
+
Y(e) && t.push({
|
|
712
|
+
node: null,
|
|
713
|
+
shadow: e
|
|
714
|
+
}, {
|
|
715
|
+
node: e,
|
|
716
|
+
shadow: null
|
|
717
|
+
});
|
|
547
718
|
}
|
|
548
719
|
}
|
|
549
|
-
q(w.afterSanitizeAttributes, e, null);
|
|
550
|
-
}, Vt = function(e) {
|
|
551
|
-
let t = null, n = Nt(e);
|
|
552
|
-
for (q(w.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) q(w.uponSanitizeShadowNode, t, null), It(t), Bt(t), t.content instanceof a && Vt(t.content);
|
|
553
|
-
q(w.afterSanitizeShadowDOM, e, null);
|
|
554
720
|
};
|
|
555
721
|
return t.sanitize = function(e) {
|
|
556
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null,
|
|
557
|
-
if (
|
|
722
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
723
|
+
if (Vt = !e, Vt && (e = "<!-->"), typeof e != "string" && !X(e) && (e = De(e), typeof e != "string")) throw we("dirty is not a string, aborting");
|
|
558
724
|
if (!t.isSupported) return e;
|
|
559
|
-
|
|
560
|
-
|
|
725
|
+
St ? (N = Ct, P = wt) : en(n), (A.uponSanitizeElement.length > 0 || A.uponSanitizeAttribute.length > 0) && (N = T(N)), A.uponSanitizeAttribute.length > 0 && (P = T(P)), t.removed = [];
|
|
726
|
+
let c = Mt && typeof e != "string" && X(e);
|
|
727
|
+
if (c) {
|
|
728
|
+
un(e);
|
|
729
|
+
let t = m ? m(e) : e.nodeName;
|
|
561
730
|
if (typeof t == "string") {
|
|
562
|
-
let
|
|
563
|
-
if (!
|
|
731
|
+
let n = W(t);
|
|
732
|
+
if (!N[n] || gt[n]) throw sn(e), we("root node is forbidden and cannot be sanitized in-place");
|
|
564
733
|
}
|
|
565
|
-
|
|
734
|
+
if (mn(e)) throw sn(e), we("root node is clobbered and cannot be sanitized in-place");
|
|
735
|
+
try {
|
|
736
|
+
Cn(e);
|
|
737
|
+
} catch (t) {
|
|
738
|
+
throw sn(e), t;
|
|
739
|
+
}
|
|
740
|
+
} else if (X(e)) i = dn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === D.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Cn(a);
|
|
566
741
|
else {
|
|
567
|
-
if (!
|
|
568
|
-
if (i =
|
|
742
|
+
if (!Et && !L && !z && e.indexOf("<") === -1) return _ && Ot ? b(e) : e;
|
|
743
|
+
if (i = dn(e), !i) return Et ? null : Ot ? v : "";
|
|
744
|
+
}
|
|
745
|
+
i && Tt && K(i.firstChild);
|
|
746
|
+
let l = c ? e : i, u = fn(l);
|
|
747
|
+
try {
|
|
748
|
+
for (; o = u.nextNode();) gn(o, l), xn(o), Y(o.content) && Sn(o.content);
|
|
749
|
+
} catch (n) {
|
|
750
|
+
throw c && (sn(e), le(t.removed, (e) => {
|
|
751
|
+
e.element && ln(e.element);
|
|
752
|
+
})), n;
|
|
569
753
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
if (
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
let e = i.innerHTML;
|
|
578
|
-
oe([
|
|
579
|
-
Le,
|
|
580
|
-
Re,
|
|
581
|
-
ze
|
|
582
|
-
], (t) => {
|
|
583
|
-
e = me(e, t, " ");
|
|
584
|
-
}), i.innerHTML = e;
|
|
585
|
-
}
|
|
586
|
-
if (ct) for (l = be.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
|
|
587
|
-
else l = i;
|
|
588
|
-
return (O.shadowroot || O.shadowrootmode) && (l = Ie.call(r, l, !0)), l;
|
|
754
|
+
if (c) return le(t.removed, (e) => {
|
|
755
|
+
e.element && ln(e.element);
|
|
756
|
+
}), L && J(e), e;
|
|
757
|
+
if (Et) {
|
|
758
|
+
if (L && J(i), Dt) for (s = at.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
759
|
+
else s = i;
|
|
760
|
+
return (P.shadowroot || P.shadowrootmode) && (s = ot.call(r, s, !0)), s;
|
|
589
761
|
}
|
|
590
|
-
let d =
|
|
591
|
-
return
|
|
592
|
-
Le,
|
|
593
|
-
Re,
|
|
594
|
-
ze
|
|
595
|
-
], (e) => {
|
|
596
|
-
d = me(d, e, " ");
|
|
597
|
-
}), g && F ? g.createHTML(d) : d;
|
|
762
|
+
let d = z ? i.outerHTML : i.innerHTML;
|
|
763
|
+
return z && N["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Je, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), L && (d = pn(d)), _ && Ot ? b(d) : d;
|
|
598
764
|
}, t.setConfig = function() {
|
|
599
|
-
|
|
765
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
766
|
+
en(e), St = !0, Ct = N, wt = P;
|
|
600
767
|
}, t.clearConfig = function() {
|
|
601
|
-
|
|
768
|
+
Zt = null, St = !1, Ct = null, wt = null, _ = ce, v = "";
|
|
602
769
|
}, t.isValidAttribute = function(e, t, n) {
|
|
603
|
-
|
|
770
|
+
Zt || en({});
|
|
771
|
+
let r = W(e), i = W(t);
|
|
772
|
+
return $(r, i, n);
|
|
604
773
|
}, t.addHook = function(e, t) {
|
|
605
|
-
typeof t == "function" &&
|
|
774
|
+
typeof t == "function" && x(A, e) && fe(A[e], t);
|
|
606
775
|
}, t.removeHook = function(e, t) {
|
|
607
|
-
if (
|
|
608
|
-
|
|
609
|
-
|
|
776
|
+
if (x(A, e)) {
|
|
777
|
+
if (t !== void 0) {
|
|
778
|
+
let n = ue(A[e], t);
|
|
779
|
+
return n === -1 ? void 0 : pe(A[e], n, 1)[0];
|
|
780
|
+
}
|
|
781
|
+
return de(A[e]);
|
|
610
782
|
}
|
|
611
|
-
return ce(w[e]);
|
|
612
783
|
}, t.removeHooks = function(e) {
|
|
613
|
-
|
|
784
|
+
x(A, e) && (A[e] = []);
|
|
614
785
|
}, t.removeAllHooks = function() {
|
|
615
|
-
|
|
786
|
+
A = nt();
|
|
616
787
|
}, t;
|
|
617
788
|
}
|
|
618
|
-
var
|
|
789
|
+
var it = rt();
|
|
619
790
|
//#endregion
|
|
620
791
|
//#region node_modules/marked/lib/marked.esm.js
|
|
621
|
-
function
|
|
792
|
+
function at() {
|
|
622
793
|
return {
|
|
623
794
|
async: !1,
|
|
624
795
|
breaks: !1,
|
|
@@ -632,28 +803,35 @@ function Qe() {
|
|
|
632
803
|
walkTokens: null
|
|
633
804
|
};
|
|
634
805
|
}
|
|
635
|
-
var
|
|
636
|
-
function
|
|
637
|
-
|
|
806
|
+
var k = at();
|
|
807
|
+
function ot(e) {
|
|
808
|
+
k = e;
|
|
638
809
|
}
|
|
639
|
-
var
|
|
640
|
-
function
|
|
810
|
+
var A = { exec: () => null };
|
|
811
|
+
function st(e) {
|
|
812
|
+
let t = [];
|
|
813
|
+
return (n) => {
|
|
814
|
+
let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
|
|
815
|
+
return i || (i = e(r), t[r] = i), i;
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
function j(e, t = "") {
|
|
641
819
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
642
820
|
replace: (e, t) => {
|
|
643
821
|
let i = typeof t == "string" ? t : t.source;
|
|
644
|
-
return i = i.replace(
|
|
822
|
+
return i = i.replace(M.caret, "$1"), n = n.replace(e, i), r;
|
|
645
823
|
},
|
|
646
824
|
getRegex: () => new RegExp(n, t)
|
|
647
825
|
};
|
|
648
826
|
return r;
|
|
649
827
|
}
|
|
650
|
-
var
|
|
828
|
+
var ct = ((e = "") => {
|
|
651
829
|
try {
|
|
652
830
|
return !!RegExp("(?<=1)(?<!1)" + e);
|
|
653
831
|
} catch {
|
|
654
832
|
return !1;
|
|
655
833
|
}
|
|
656
|
-
})(),
|
|
834
|
+
})(), M = {
|
|
657
835
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
658
836
|
outputLinkReplace: /\\([\[\]])/g,
|
|
659
837
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -704,121 +882,121 @@ var $e = ((e = "") => {
|
|
|
704
882
|
notSpaceStart: /^\S*/,
|
|
705
883
|
endingNewline: /\n$/,
|
|
706
884
|
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
707
|
-
nextBulletRegex: (e) => RegExp(`^ {0,${
|
|
708
|
-
hrRegex: (e) => RegExp(`^ {0,${
|
|
709
|
-
fencesBeginRegex: (e) => RegExp(`^ {0,${
|
|
710
|
-
headingBeginRegex: (e) => RegExp(`^ {0,${
|
|
711
|
-
htmlBeginRegex: (e) => RegExp(`^ {0,${
|
|
712
|
-
blockquoteBeginRegex: (e) => RegExp(`^ {0,${
|
|
713
|
-
},
|
|
714
|
-
blockquote:
|
|
715
|
-
code:
|
|
716
|
-
def:
|
|
717
|
-
fences:
|
|
718
|
-
heading:
|
|
719
|
-
hr:
|
|
720
|
-
html:
|
|
721
|
-
lheading:
|
|
722
|
-
list:
|
|
723
|
-
newline:
|
|
724
|
-
paragraph:
|
|
725
|
-
table:
|
|
726
|
-
text:
|
|
727
|
-
},
|
|
728
|
-
...
|
|
729
|
-
lheading:
|
|
730
|
-
table:
|
|
731
|
-
paragraph:
|
|
732
|
-
},
|
|
733
|
-
...
|
|
734
|
-
html:
|
|
885
|
+
nextBulletRegex: st((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
|
|
886
|
+
hrRegex: st((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
|
|
887
|
+
fencesBeginRegex: st((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
|
|
888
|
+
headingBeginRegex: st((e) => RegExp(`^ {0,${e}}#`)),
|
|
889
|
+
htmlBeginRegex: st((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
|
|
890
|
+
blockquoteBeginRegex: st((e) => RegExp(`^ {0,${e}}>`))
|
|
891
|
+
}, lt = /^(?:[ \t]*(?:\n|$))+/, ut = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, dt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ft = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, pt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, N = / {0,3}(?:[*+-]|\d{1,9}[.)])/, mt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, P = j(mt).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ht = j(mt).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, gt = /^[^\n]+/, _t = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, I = j(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", _t).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), vt = j(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, N).getRegex(), yt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", bt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, xt = j("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", bt).replace("tag", yt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), L = (e) => j(F).replace("hr", ft).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", yt).getRegex(), R = L(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), z = L(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), St = {
|
|
892
|
+
blockquote: j(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", z).getRegex(),
|
|
893
|
+
code: ut,
|
|
894
|
+
def: I,
|
|
895
|
+
fences: dt,
|
|
896
|
+
heading: pt,
|
|
897
|
+
hr: ft,
|
|
898
|
+
html: xt,
|
|
899
|
+
lheading: P,
|
|
900
|
+
list: vt,
|
|
901
|
+
newline: lt,
|
|
902
|
+
paragraph: R,
|
|
903
|
+
table: A,
|
|
904
|
+
text: gt
|
|
905
|
+
}, Ct = j("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ft).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", yt).getRegex(), wt = {
|
|
906
|
+
...St,
|
|
907
|
+
lheading: ht,
|
|
908
|
+
table: Ct,
|
|
909
|
+
paragraph: j(F).replace("hr", ft).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ct).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", yt).getRegex()
|
|
910
|
+
}, Tt = {
|
|
911
|
+
...St,
|
|
912
|
+
html: j("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", bt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
735
913
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
736
914
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
737
|
-
fences:
|
|
915
|
+
fences: A,
|
|
738
916
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
739
|
-
paragraph:
|
|
740
|
-
},
|
|
741
|
-
_backpedal:
|
|
742
|
-
anyPunctuation:
|
|
743
|
-
autolink:
|
|
744
|
-
blockSkip:
|
|
745
|
-
br:
|
|
746
|
-
code:
|
|
747
|
-
del:
|
|
748
|
-
delLDelim:
|
|
749
|
-
delRDelim:
|
|
750
|
-
emStrongLDelim:
|
|
751
|
-
emStrongRDelimAst:
|
|
752
|
-
emStrongRDelimUnd:
|
|
753
|
-
escape:
|
|
754
|
-
link:
|
|
755
|
-
nolink:
|
|
756
|
-
punctuation:
|
|
757
|
-
reflink:
|
|
758
|
-
reflinkSearch:
|
|
759
|
-
tag:
|
|
760
|
-
text:
|
|
761
|
-
url:
|
|
762
|
-
},
|
|
763
|
-
...
|
|
764
|
-
link:
|
|
765
|
-
reflink:
|
|
766
|
-
},
|
|
767
|
-
...
|
|
768
|
-
emStrongRDelimAst:
|
|
769
|
-
emStrongLDelim:
|
|
770
|
-
delLDelim:
|
|
771
|
-
delRDelim:
|
|
772
|
-
url:
|
|
917
|
+
paragraph: j(F).replace("hr", ft).replace("heading", " *#{1,6} *[^\n]").replace("lheading", P).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
918
|
+
}, Et = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Dt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ot = /^( {2,}|\\)\n(?!\s*$)/, kt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, B = /[\p{P}\p{S}]/u, At = /[\s\p{P}\p{S}]/u, jt = /[^\s\p{P}\p{S}]/u, Mt = j(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, At).getRegex(), V = /(?!~)[\p{P}\p{S}]/u, H = /(?!~)[\s\p{P}\p{S}]/u, Nt = /(?:[^\s\p{P}\p{S}]|~)/u, Pt = j(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ct ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ft = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, It = j(Ft, "u").replace(/punct/g, B).getRegex(), Lt = j(Ft, "u").replace(/punct/g, V).getRegex(), Rt = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", zt = j(Rt, "gu").replace(/notPunctSpace/g, jt).replace(/punctSpace/g, At).replace(/punct/g, B).getRegex(), U = j(Rt, "gu").replace(/notPunctSpace/g, Nt).replace(/punctSpace/g, H).replace(/punct/g, V).getRegex(), Bt = j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, jt).replace(/punctSpace/g, At).replace(/punct/g, B).getRegex(), Vt = j(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, B).getRegex(), Ht = j("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, jt).replace(/punctSpace/g, At).replace(/punct/g, B).getRegex(), Ut = j(/\\(punct)/, "gu").replace(/punct/g, B).getRegex(), Wt = j(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Gt = j(bt).replace("(?:-->|$)", "-->").getRegex(), Kt = j("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Gt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), qt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Jt = j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", qt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Yt = j(/^!?\[(label)\]\[(ref)\]/).replace("label", qt).replace("ref", _t).getRegex(), Xt = j(/^!?\[(ref)\](?:\[\])?/).replace("ref", _t).getRegex(), W = j("reflink|nolink(?!\\()", "g").replace("reflink", Yt).replace("nolink", Xt).getRegex(), Zt = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Qt = {
|
|
919
|
+
_backpedal: A,
|
|
920
|
+
anyPunctuation: Ut,
|
|
921
|
+
autolink: Wt,
|
|
922
|
+
blockSkip: Pt,
|
|
923
|
+
br: Ot,
|
|
924
|
+
code: Dt,
|
|
925
|
+
del: A,
|
|
926
|
+
delLDelim: A,
|
|
927
|
+
delRDelim: A,
|
|
928
|
+
emStrongLDelim: It,
|
|
929
|
+
emStrongRDelimAst: zt,
|
|
930
|
+
emStrongRDelimUnd: Bt,
|
|
931
|
+
escape: Et,
|
|
932
|
+
link: Jt,
|
|
933
|
+
nolink: Xt,
|
|
934
|
+
punctuation: Mt,
|
|
935
|
+
reflink: Yt,
|
|
936
|
+
reflinkSearch: W,
|
|
937
|
+
tag: Kt,
|
|
938
|
+
text: kt,
|
|
939
|
+
url: A
|
|
940
|
+
}, $t = {
|
|
941
|
+
...Qt,
|
|
942
|
+
link: j(/^!?\[(label)\]\((.*?)\)/).replace("label", qt).getRegex(),
|
|
943
|
+
reflink: j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", qt).getRegex()
|
|
944
|
+
}, en = {
|
|
945
|
+
...Qt,
|
|
946
|
+
emStrongRDelimAst: U,
|
|
947
|
+
emStrongLDelim: Lt,
|
|
948
|
+
delLDelim: Vt,
|
|
949
|
+
delRDelim: Ht,
|
|
950
|
+
url: j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Zt).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
773
951
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
774
952
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
775
|
-
text:
|
|
776
|
-
},
|
|
777
|
-
...
|
|
778
|
-
br:
|
|
779
|
-
text:
|
|
780
|
-
},
|
|
781
|
-
normal:
|
|
782
|
-
gfm:
|
|
783
|
-
pedantic:
|
|
784
|
-
},
|
|
785
|
-
normal:
|
|
786
|
-
gfm:
|
|
787
|
-
breaks:
|
|
788
|
-
pedantic:
|
|
789
|
-
},
|
|
953
|
+
text: j(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Zt).getRegex()
|
|
954
|
+
}, tn = {
|
|
955
|
+
...en,
|
|
956
|
+
br: j(Ot).replace("{2,}", "*").getRegex(),
|
|
957
|
+
text: j(en.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
958
|
+
}, nn = {
|
|
959
|
+
normal: St,
|
|
960
|
+
gfm: wt,
|
|
961
|
+
pedantic: Tt
|
|
962
|
+
}, rn = {
|
|
963
|
+
normal: Qt,
|
|
964
|
+
gfm: en,
|
|
965
|
+
breaks: tn,
|
|
966
|
+
pedantic: $t
|
|
967
|
+
}, an = {
|
|
790
968
|
"&": "&",
|
|
791
969
|
"<": "<",
|
|
792
970
|
">": ">",
|
|
793
971
|
"\"": """,
|
|
794
972
|
"'": "'"
|
|
795
|
-
},
|
|
796
|
-
function
|
|
973
|
+
}, on = (e) => an[e];
|
|
974
|
+
function G(e, t) {
|
|
797
975
|
if (t) {
|
|
798
|
-
if (
|
|
799
|
-
} else if (
|
|
976
|
+
if (M.escapeTest.test(e)) return e.replace(M.escapeReplace, on);
|
|
977
|
+
} else if (M.escapeTestNoEncode.test(e)) return e.replace(M.escapeReplaceNoEncode, on);
|
|
800
978
|
return e;
|
|
801
979
|
}
|
|
802
|
-
function
|
|
980
|
+
function K(e) {
|
|
803
981
|
try {
|
|
804
|
-
e = encodeURI(e).replace(
|
|
982
|
+
e = encodeURI(e).replace(M.percentDecode, "%");
|
|
805
983
|
} catch {
|
|
806
984
|
return null;
|
|
807
985
|
}
|
|
808
986
|
return e;
|
|
809
987
|
}
|
|
810
|
-
function
|
|
811
|
-
let n = e.replace(
|
|
988
|
+
function sn(e, t) {
|
|
989
|
+
let n = e.replace(M.findPipe, (e, t, n) => {
|
|
812
990
|
let r = !1, i = t;
|
|
813
991
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
814
992
|
return r ? "|" : " |";
|
|
815
|
-
}).split(
|
|
993
|
+
}).split(M.splitPipe), r = 0;
|
|
816
994
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
|
|
817
995
|
else for (; n.length < t;) n.push("");
|
|
818
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
996
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(M.slashPipe, "|");
|
|
819
997
|
return n;
|
|
820
998
|
}
|
|
821
|
-
function
|
|
999
|
+
function q(e, t, n) {
|
|
822
1000
|
let r = e.length;
|
|
823
1001
|
if (r === 0) return "";
|
|
824
1002
|
let i = 0;
|
|
@@ -830,12 +1008,12 @@ function Y(e, t, n) {
|
|
|
830
1008
|
}
|
|
831
1009
|
return e.slice(0, r - i);
|
|
832
1010
|
}
|
|
833
|
-
function
|
|
1011
|
+
function cn(e) {
|
|
834
1012
|
let t = e.split("\n"), n = t.length - 1;
|
|
835
|
-
for (; n >= 0 &&
|
|
1013
|
+
for (; n >= 0 && M.blankLine.test(t[n]);) n--;
|
|
836
1014
|
return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
|
|
837
1015
|
}
|
|
838
|
-
function
|
|
1016
|
+
function ln(e, t) {
|
|
839
1017
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
840
1018
|
let n = 0;
|
|
841
1019
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -843,7 +1021,7 @@ function Kt(e, t) {
|
|
|
843
1021
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
844
1022
|
return n > 0 ? -2 : -1;
|
|
845
1023
|
}
|
|
846
|
-
function
|
|
1024
|
+
function un(e, t = 0) {
|
|
847
1025
|
let n = t, r = "";
|
|
848
1026
|
for (let t of e) if (t === " ") {
|
|
849
1027
|
let e = 4 - n % 4;
|
|
@@ -851,7 +1029,7 @@ function qt(e, t = 0) {
|
|
|
851
1029
|
} else r += t, n++;
|
|
852
1030
|
return r;
|
|
853
1031
|
}
|
|
854
|
-
function
|
|
1032
|
+
function dn(e, t, n, r, i) {
|
|
855
1033
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
856
1034
|
r.state.inLink = !0;
|
|
857
1035
|
let c = {
|
|
@@ -864,7 +1042,7 @@ function Jt(e, t, n, r, i) {
|
|
|
864
1042
|
};
|
|
865
1043
|
return r.state.inLink = !1, c;
|
|
866
1044
|
}
|
|
867
|
-
function
|
|
1045
|
+
function fn(e, t, n) {
|
|
868
1046
|
let r = e.match(n.other.indentCodeCompensation);
|
|
869
1047
|
if (r === null) return t;
|
|
870
1048
|
let i = r[1];
|
|
@@ -875,12 +1053,12 @@ function Yt(e, t, n) {
|
|
|
875
1053
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
876
1054
|
}).join("\n");
|
|
877
1055
|
}
|
|
878
|
-
var
|
|
1056
|
+
var pn = class {
|
|
879
1057
|
options;
|
|
880
1058
|
rules;
|
|
881
1059
|
lexer;
|
|
882
1060
|
constructor(e) {
|
|
883
|
-
this.options = e ||
|
|
1061
|
+
this.options = e || k;
|
|
884
1062
|
}
|
|
885
1063
|
space(e) {
|
|
886
1064
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -892,7 +1070,7 @@ var Xt = class {
|
|
|
892
1070
|
code(e) {
|
|
893
1071
|
let t = this.rules.block.code.exec(e);
|
|
894
1072
|
if (t) {
|
|
895
|
-
let e = this.options.pedantic ? t[0] :
|
|
1073
|
+
let e = this.options.pedantic ? t[0] : cn(t[0]);
|
|
896
1074
|
return {
|
|
897
1075
|
type: "code",
|
|
898
1076
|
raw: e,
|
|
@@ -904,7 +1082,7 @@ var Xt = class {
|
|
|
904
1082
|
fences(e) {
|
|
905
1083
|
let t = this.rules.block.fences.exec(e);
|
|
906
1084
|
if (t) {
|
|
907
|
-
let e = t[0], n =
|
|
1085
|
+
let e = t[0], n = fn(e, t[3] || "", this.rules);
|
|
908
1086
|
return {
|
|
909
1087
|
type: "code",
|
|
910
1088
|
raw: e,
|
|
@@ -918,12 +1096,12 @@ var Xt = class {
|
|
|
918
1096
|
if (t) {
|
|
919
1097
|
let e = t[2].trim();
|
|
920
1098
|
if (this.rules.other.endingHash.test(e)) {
|
|
921
|
-
let t =
|
|
1099
|
+
let t = q(e, "#");
|
|
922
1100
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
923
1101
|
}
|
|
924
1102
|
return {
|
|
925
1103
|
type: "heading",
|
|
926
|
-
raw:
|
|
1104
|
+
raw: q(t[0], "\n"),
|
|
927
1105
|
depth: t[1].length,
|
|
928
1106
|
text: e,
|
|
929
1107
|
tokens: this.lexer.inline(e)
|
|
@@ -934,13 +1112,13 @@ var Xt = class {
|
|
|
934
1112
|
let t = this.rules.block.hr.exec(e);
|
|
935
1113
|
if (t) return {
|
|
936
1114
|
type: "hr",
|
|
937
|
-
raw:
|
|
1115
|
+
raw: q(t[0], "\n")
|
|
938
1116
|
};
|
|
939
1117
|
}
|
|
940
1118
|
blockquote(e) {
|
|
941
1119
|
let t = this.rules.block.blockquote.exec(e);
|
|
942
1120
|
if (t) {
|
|
943
|
-
let e =
|
|
1121
|
+
let e = q(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
944
1122
|
for (; e.length > 0;) {
|
|
945
1123
|
let t = !1, a = [], o;
|
|
946
1124
|
for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -990,18 +1168,18 @@ ${c}` : c;
|
|
|
990
1168
|
let n = !1, r = "", s = "";
|
|
991
1169
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
992
1170
|
r = t[0], e = e.substring(r.length);
|
|
993
|
-
let c =
|
|
1171
|
+
let c = un(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
994
1172
|
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
995
1173
|
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), ee = this.rules.other.blockquoteBeginRegex(d);
|
|
996
1174
|
for (; e;) {
|
|
997
|
-
let te = e.split("\n", 1)[0],
|
|
998
|
-
if (l = te, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "),
|
|
999
|
-
if (
|
|
1175
|
+
let te = e.split("\n", 1)[0], ne;
|
|
1176
|
+
if (l = te, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), ne = l) : ne = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || ee.test(l) || t.test(l) || n.test(l)) break;
|
|
1177
|
+
if (ne.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + ne.slice(d);
|
|
1000
1178
|
else {
|
|
1001
1179
|
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
|
|
1002
1180
|
s += "\n" + l;
|
|
1003
1181
|
}
|
|
1004
|
-
u = !l.trim(), r += te + "\n", e = e.substring(te.length + 1), c =
|
|
1182
|
+
u = !l.trim(), r += te + "\n", e = e.substring(te.length + 1), c = ne.slice(d);
|
|
1005
1183
|
}
|
|
1006
1184
|
}
|
|
1007
1185
|
i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0)), i.items.push({
|
|
@@ -1018,29 +1196,29 @@ ${c}` : c;
|
|
|
1018
1196
|
else return;
|
|
1019
1197
|
i.raw = i.raw.trimEnd();
|
|
1020
1198
|
for (let e of i.items) {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1199
|
+
this.lexer.state.top = !1, e.tokens = this.lexer.blockTokens(e.text, []);
|
|
1200
|
+
let t = e.tokens[0];
|
|
1201
|
+
if (e.task && (t?.type === "text" || t?.type === "paragraph")) {
|
|
1202
|
+
e.text = e.text.replace(this.rules.other.listReplaceTask, ""), t.raw = t.raw.replace(this.rules.other.listReplaceTask, ""), t.text = t.text.replace(this.rules.other.listReplaceTask, "");
|
|
1203
|
+
for (let e = this.lexer.inlineQueue.length - 1; e >= 0; e--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)) {
|
|
1204
|
+
this.lexer.inlineQueue[e].src = this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask, "");
|
|
1205
|
+
break;
|
|
1028
1206
|
}
|
|
1029
|
-
let
|
|
1030
|
-
if (
|
|
1031
|
-
let
|
|
1207
|
+
let n = this.rules.other.listTaskCheckbox.exec(e.raw);
|
|
1208
|
+
if (n) {
|
|
1209
|
+
let t = {
|
|
1032
1210
|
type: "checkbox",
|
|
1033
|
-
raw:
|
|
1034
|
-
checked:
|
|
1211
|
+
raw: n[0] + " ",
|
|
1212
|
+
checked: n[0] !== "[ ]"
|
|
1035
1213
|
};
|
|
1036
|
-
e.checked =
|
|
1214
|
+
e.checked = t.checked, i.loose ? e.tokens[0] && ["paragraph", "text"].includes(e.tokens[0].type) && "tokens" in e.tokens[0] && e.tokens[0].tokens ? (e.tokens[0].raw = t.raw + e.tokens[0].raw, e.tokens[0].text = t.raw + e.tokens[0].text, e.tokens[0].tokens.unshift(t)) : e.tokens.unshift({
|
|
1037
1215
|
type: "paragraph",
|
|
1038
|
-
raw:
|
|
1039
|
-
text:
|
|
1040
|
-
tokens: [
|
|
1041
|
-
}) : e.tokens.unshift(
|
|
1216
|
+
raw: t.raw,
|
|
1217
|
+
text: t.raw,
|
|
1218
|
+
tokens: [t]
|
|
1219
|
+
}) : e.tokens.unshift(t);
|
|
1042
1220
|
}
|
|
1043
|
-
}
|
|
1221
|
+
} else e.task &&= !1;
|
|
1044
1222
|
if (!i.loose) {
|
|
1045
1223
|
let t = e.tokens.filter((e) => e.type === "space");
|
|
1046
1224
|
i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
|
|
@@ -1056,7 +1234,7 @@ ${c}` : c;
|
|
|
1056
1234
|
html(e) {
|
|
1057
1235
|
let t = this.rules.block.html.exec(e);
|
|
1058
1236
|
if (t) {
|
|
1059
|
-
let e =
|
|
1237
|
+
let e = cn(t[0]);
|
|
1060
1238
|
return {
|
|
1061
1239
|
type: "html",
|
|
1062
1240
|
block: !0,
|
|
@@ -1073,7 +1251,7 @@ ${c}` : c;
|
|
|
1073
1251
|
return {
|
|
1074
1252
|
type: "def",
|
|
1075
1253
|
tag: e,
|
|
1076
|
-
raw:
|
|
1254
|
+
raw: q(t[0], "\n"),
|
|
1077
1255
|
href: n,
|
|
1078
1256
|
title: r
|
|
1079
1257
|
};
|
|
@@ -1082,9 +1260,9 @@ ${c}` : c;
|
|
|
1082
1260
|
table(e) {
|
|
1083
1261
|
let t = this.rules.block.table.exec(e);
|
|
1084
1262
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
1085
|
-
let n =
|
|
1263
|
+
let n = sn(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
1086
1264
|
type: "table",
|
|
1087
|
-
raw:
|
|
1265
|
+
raw: q(t[0], "\n"),
|
|
1088
1266
|
header: [],
|
|
1089
1267
|
align: [],
|
|
1090
1268
|
rows: []
|
|
@@ -1097,7 +1275,7 @@ ${c}` : c;
|
|
|
1097
1275
|
header: !0,
|
|
1098
1276
|
align: a.align[e]
|
|
1099
1277
|
});
|
|
1100
|
-
for (let e of i) a.rows.push(
|
|
1278
|
+
for (let e of i) a.rows.push(sn(e, a.header.length).map((e, t) => ({
|
|
1101
1279
|
text: e,
|
|
1102
1280
|
tokens: this.lexer.inline(e),
|
|
1103
1281
|
header: !1,
|
|
@@ -1112,7 +1290,7 @@ ${c}` : c;
|
|
|
1112
1290
|
let e = t[1].trim();
|
|
1113
1291
|
return {
|
|
1114
1292
|
type: "heading",
|
|
1115
|
-
raw:
|
|
1293
|
+
raw: q(t[0], "\n"),
|
|
1116
1294
|
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
1117
1295
|
text: e,
|
|
1118
1296
|
tokens: this.lexer.inline(e)
|
|
@@ -1165,10 +1343,10 @@ ${c}` : c;
|
|
|
1165
1343
|
let e = t[2].trim();
|
|
1166
1344
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
1167
1345
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
1168
|
-
let t =
|
|
1346
|
+
let t = q(e.slice(0, -1), "\\");
|
|
1169
1347
|
if ((e.length - t.length) % 2 == 0) return;
|
|
1170
1348
|
} else {
|
|
1171
|
-
let e =
|
|
1349
|
+
let e = ln(t[2], "()");
|
|
1172
1350
|
if (e === -2) return;
|
|
1173
1351
|
if (e > -1) {
|
|
1174
1352
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -1180,7 +1358,7 @@ ${c}` : c;
|
|
|
1180
1358
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
1181
1359
|
e && (n = e[1], r = e[3]);
|
|
1182
1360
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
1183
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
1361
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), dn(t, {
|
|
1184
1362
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
1185
1363
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
1186
1364
|
}, t[0], this.lexer, this.rules);
|
|
@@ -1198,7 +1376,7 @@ ${c}` : c;
|
|
|
1198
1376
|
text: e
|
|
1199
1377
|
};
|
|
1200
1378
|
}
|
|
1201
|
-
return
|
|
1379
|
+
return dn(n, e, n[0], this.lexer, this.rules);
|
|
1202
1380
|
}
|
|
1203
1381
|
}
|
|
1204
1382
|
emStrong(e, t, n = "") {
|
|
@@ -1330,29 +1508,29 @@ ${c}` : c;
|
|
|
1330
1508
|
};
|
|
1331
1509
|
}
|
|
1332
1510
|
}
|
|
1333
|
-
},
|
|
1511
|
+
}, J = class e {
|
|
1334
1512
|
tokens;
|
|
1335
1513
|
options;
|
|
1336
1514
|
state;
|
|
1337
1515
|
inlineQueue;
|
|
1338
1516
|
tokenizer;
|
|
1339
1517
|
constructor(e) {
|
|
1340
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
1518
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || k, this.options.tokenizer = this.options.tokenizer || new pn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
1341
1519
|
inLink: !1,
|
|
1342
1520
|
inRawBlock: !1,
|
|
1343
1521
|
top: !0
|
|
1344
1522
|
};
|
|
1345
1523
|
let t = {
|
|
1346
|
-
other:
|
|
1347
|
-
block:
|
|
1348
|
-
inline:
|
|
1524
|
+
other: M,
|
|
1525
|
+
block: nn.normal,
|
|
1526
|
+
inline: rn.normal
|
|
1349
1527
|
};
|
|
1350
|
-
this.options.pedantic ? (t.block =
|
|
1528
|
+
this.options.pedantic ? (t.block = nn.pedantic, t.inline = rn.pedantic) : this.options.gfm && (t.block = nn.gfm, this.options.breaks ? t.inline = rn.breaks : t.inline = rn.gfm), this.tokenizer.rules = t;
|
|
1351
1529
|
}
|
|
1352
1530
|
static get rules() {
|
|
1353
1531
|
return {
|
|
1354
|
-
block:
|
|
1355
|
-
inline:
|
|
1532
|
+
block: nn,
|
|
1533
|
+
inline: rn
|
|
1356
1534
|
};
|
|
1357
1535
|
}
|
|
1358
1536
|
static lex(t, n) {
|
|
@@ -1362,7 +1540,7 @@ ${c}` : c;
|
|
|
1362
1540
|
return new e(n).inlineTokens(t);
|
|
1363
1541
|
}
|
|
1364
1542
|
lex(e) {
|
|
1365
|
-
e = e.replace(
|
|
1543
|
+
e = e.replace(M.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
1366
1544
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
1367
1545
|
let t = this.inlineQueue[e];
|
|
1368
1546
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -1370,7 +1548,7 @@ ${c}` : c;
|
|
|
1370
1548
|
return this.inlineQueue = [], this.tokens;
|
|
1371
1549
|
}
|
|
1372
1550
|
blockTokens(e, t = [], n = !1) {
|
|
1373
|
-
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
1551
|
+
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(M.tabCharGlobal, " ").replace(M.spaceLine, ""));
|
|
1374
1552
|
let r = Infinity;
|
|
1375
1553
|
for (; e;) {
|
|
1376
1554
|
if (e.length < r) r = e.length;
|
|
@@ -1552,18 +1730,18 @@ ${c}` : c;
|
|
|
1552
1730
|
if (this.options.silent) console.error(t);
|
|
1553
1731
|
else throw Error(t);
|
|
1554
1732
|
}
|
|
1555
|
-
},
|
|
1733
|
+
}, mn = class {
|
|
1556
1734
|
options;
|
|
1557
1735
|
parser;
|
|
1558
1736
|
constructor(e) {
|
|
1559
|
-
this.options = e ||
|
|
1737
|
+
this.options = e || k;
|
|
1560
1738
|
}
|
|
1561
1739
|
space(e) {
|
|
1562
1740
|
return "";
|
|
1563
1741
|
}
|
|
1564
1742
|
code({ text: e, lang: t, escaped: n }) {
|
|
1565
|
-
let r = (t || "").match(
|
|
1566
|
-
return r ? "<pre><code class=\"language-" +
|
|
1743
|
+
let r = (t || "").match(M.notSpaceStart)?.[0], i = e.replace(M.endingNewline, "") + "\n";
|
|
1744
|
+
return r ? "<pre><code class=\"language-" + G(r) + "\">" + (n ? i : G(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : G(i, !0)) + "</code></pre>\n";
|
|
1567
1745
|
}
|
|
1568
1746
|
blockquote({ tokens: e }) {
|
|
1569
1747
|
return `<blockquote>
|
|
@@ -1633,7 +1811,7 @@ ${e}</tr>
|
|
|
1633
1811
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
1634
1812
|
}
|
|
1635
1813
|
codespan({ text: e }) {
|
|
1636
|
-
return `<code>${
|
|
1814
|
+
return `<code>${G(e, !0)}</code>`;
|
|
1637
1815
|
}
|
|
1638
1816
|
br(e) {
|
|
1639
1817
|
return "<br>";
|
|
@@ -1642,24 +1820,24 @@ ${e}</tr>
|
|
|
1642
1820
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
1643
1821
|
}
|
|
1644
1822
|
link({ href: e, title: t, tokens: n }) {
|
|
1645
|
-
let r = this.parser.parseInline(n), i =
|
|
1823
|
+
let r = this.parser.parseInline(n), i = K(e);
|
|
1646
1824
|
if (i === null) return r;
|
|
1647
1825
|
e = i;
|
|
1648
1826
|
let a = "<a href=\"" + e + "\"";
|
|
1649
|
-
return t && (a += " title=\"" +
|
|
1827
|
+
return t && (a += " title=\"" + G(t) + "\""), a += ">" + r + "</a>", a;
|
|
1650
1828
|
}
|
|
1651
1829
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
1652
1830
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1653
|
-
let i =
|
|
1654
|
-
if (i === null) return
|
|
1831
|
+
let i = K(e);
|
|
1832
|
+
if (i === null) return G(n);
|
|
1655
1833
|
e = i;
|
|
1656
|
-
let a = `<img src="${e}" alt="${
|
|
1657
|
-
return t && (a += ` title="${
|
|
1834
|
+
let a = `<img src="${e}" alt="${G(n)}"`;
|
|
1835
|
+
return t && (a += ` title="${G(t)}"`), a += ">", a;
|
|
1658
1836
|
}
|
|
1659
1837
|
text(e) {
|
|
1660
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
1838
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : G(e.text);
|
|
1661
1839
|
}
|
|
1662
|
-
},
|
|
1840
|
+
}, Y = class {
|
|
1663
1841
|
strong({ text: e }) {
|
|
1664
1842
|
return e;
|
|
1665
1843
|
}
|
|
@@ -1690,12 +1868,12 @@ ${e}</tr>
|
|
|
1690
1868
|
checkbox({ raw: e }) {
|
|
1691
1869
|
return e;
|
|
1692
1870
|
}
|
|
1693
|
-
},
|
|
1871
|
+
}, X = class e {
|
|
1694
1872
|
options;
|
|
1695
1873
|
renderer;
|
|
1696
1874
|
textRenderer;
|
|
1697
1875
|
constructor(e) {
|
|
1698
|
-
this.options = e ||
|
|
1876
|
+
this.options = e || k, this.options.renderer = this.options.renderer || new mn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Y();
|
|
1699
1877
|
}
|
|
1700
1878
|
static parse(t, n) {
|
|
1701
1879
|
return new e(n).parse(t);
|
|
@@ -1841,19 +2019,19 @@ ${e}</tr>
|
|
|
1841
2019
|
}
|
|
1842
2020
|
return n;
|
|
1843
2021
|
}
|
|
1844
|
-
},
|
|
2022
|
+
}, Z = class {
|
|
1845
2023
|
options;
|
|
1846
2024
|
block;
|
|
1847
2025
|
constructor(e) {
|
|
1848
|
-
this.options = e ||
|
|
2026
|
+
this.options = e || k;
|
|
1849
2027
|
}
|
|
1850
|
-
static passThroughHooks = new Set([
|
|
2028
|
+
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
1851
2029
|
"preprocess",
|
|
1852
2030
|
"postprocess",
|
|
1853
2031
|
"processAllTokens",
|
|
1854
2032
|
"emStrongMask"
|
|
1855
2033
|
]);
|
|
1856
|
-
static passThroughHooksRespectAsync = new Set([
|
|
2034
|
+
static passThroughHooksRespectAsync = /* @__PURE__ */ new Set([
|
|
1857
2035
|
"preprocess",
|
|
1858
2036
|
"postprocess",
|
|
1859
2037
|
"processAllTokens"
|
|
@@ -1871,22 +2049,22 @@ ${e}</tr>
|
|
|
1871
2049
|
return e;
|
|
1872
2050
|
}
|
|
1873
2051
|
provideLexer(e = this.block) {
|
|
1874
|
-
return e ?
|
|
2052
|
+
return e ? J.lex : J.lexInline;
|
|
1875
2053
|
}
|
|
1876
2054
|
provideParser(e = this.block) {
|
|
1877
|
-
return e ?
|
|
2055
|
+
return e ? X.parse : X.parseInline;
|
|
1878
2056
|
}
|
|
1879
|
-
},
|
|
1880
|
-
defaults =
|
|
2057
|
+
}, hn = new class {
|
|
2058
|
+
defaults = at();
|
|
1881
2059
|
options = this.setOptions;
|
|
1882
2060
|
parse = this.parseMarkdown(!0);
|
|
1883
2061
|
parseInline = this.parseMarkdown(!1);
|
|
1884
|
-
Parser =
|
|
1885
|
-
Renderer =
|
|
1886
|
-
TextRenderer =
|
|
1887
|
-
Lexer =
|
|
1888
|
-
Tokenizer =
|
|
1889
|
-
Hooks =
|
|
2062
|
+
Parser = X;
|
|
2063
|
+
Renderer = mn;
|
|
2064
|
+
TextRenderer = Y;
|
|
2065
|
+
Lexer = J;
|
|
2066
|
+
Tokenizer = pn;
|
|
2067
|
+
Hooks = Z;
|
|
1890
2068
|
constructor(...e) {
|
|
1891
2069
|
this.use(...e);
|
|
1892
2070
|
}
|
|
@@ -1937,7 +2115,7 @@ ${e}</tr>
|
|
|
1937
2115
|
}
|
|
1938
2116
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
1939
2117
|
}), n.extensions = t), e.renderer) {
|
|
1940
|
-
let t = this.defaults.renderer || new
|
|
2118
|
+
let t = this.defaults.renderer || new mn(this.defaults);
|
|
1941
2119
|
for (let n in e.renderer) {
|
|
1942
2120
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
1943
2121
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -1950,7 +2128,7 @@ ${e}</tr>
|
|
|
1950
2128
|
n.renderer = t;
|
|
1951
2129
|
}
|
|
1952
2130
|
if (e.tokenizer) {
|
|
1953
|
-
let t = this.defaults.tokenizer || new
|
|
2131
|
+
let t = this.defaults.tokenizer || new pn(this.defaults);
|
|
1954
2132
|
for (let n in e.tokenizer) {
|
|
1955
2133
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
1956
2134
|
if ([
|
|
@@ -1967,13 +2145,13 @@ ${e}</tr>
|
|
|
1967
2145
|
n.tokenizer = t;
|
|
1968
2146
|
}
|
|
1969
2147
|
if (e.hooks) {
|
|
1970
|
-
let t = this.defaults.hooks || new
|
|
2148
|
+
let t = this.defaults.hooks || new Z();
|
|
1971
2149
|
for (let n in e.hooks) {
|
|
1972
2150
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
1973
2151
|
if (["options", "block"].includes(n)) continue;
|
|
1974
2152
|
let r = n, i = e.hooks[r], a = t[r];
|
|
1975
|
-
|
|
1976
|
-
if (this.defaults.async &&
|
|
2153
|
+
Z.passThroughHooks.has(n) ? t[r] = (e) => {
|
|
2154
|
+
if (this.defaults.async && Z.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
1977
2155
|
let n = await i.call(t, e);
|
|
1978
2156
|
return a.call(t, n);
|
|
1979
2157
|
})();
|
|
@@ -2010,10 +2188,10 @@ ${e}</tr>
|
|
|
2010
2188
|
}, this;
|
|
2011
2189
|
}
|
|
2012
2190
|
lexer(e, t) {
|
|
2013
|
-
return
|
|
2191
|
+
return J.lex(e, t ?? this.defaults);
|
|
2014
2192
|
}
|
|
2015
2193
|
parser(e, t) {
|
|
2016
|
-
return
|
|
2194
|
+
return X.parse(e, t ?? this.defaults);
|
|
2017
2195
|
}
|
|
2018
2196
|
parseMarkdown(e) {
|
|
2019
2197
|
return (t, n) => {
|
|
@@ -2025,16 +2203,16 @@ ${e}</tr>
|
|
|
2025
2203
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
2026
2204
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
2027
2205
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
2028
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ?
|
|
2206
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? J.lex : J.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
2029
2207
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
2030
|
-
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ?
|
|
2208
|
+
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? X.parse : X.parseInline)(a, i);
|
|
2031
2209
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
2032
2210
|
})().catch(a);
|
|
2033
2211
|
try {
|
|
2034
2212
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
2035
|
-
let n = (i.hooks ? i.hooks.provideLexer(e) : e ?
|
|
2213
|
+
let n = (i.hooks ? i.hooks.provideLexer(e) : e ? J.lex : J.lexInline)(t, i);
|
|
2036
2214
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
2037
|
-
let r = (i.hooks ? i.hooks.provideParser(e) : e ?
|
|
2215
|
+
let r = (i.hooks ? i.hooks.provideParser(e) : e ? X.parse : X.parseInline)(n, i);
|
|
2038
2216
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
2039
2217
|
} catch (e) {
|
|
2040
2218
|
return a(e);
|
|
@@ -2044,7 +2222,7 @@ ${e}</tr>
|
|
|
2044
2222
|
onError(e, t) {
|
|
2045
2223
|
return (n) => {
|
|
2046
2224
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
2047
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
2225
|
+
let e = "<p>An error occurred:</p><pre>" + G(n.message + "", !0) + "</pre>";
|
|
2048
2226
|
return t ? Promise.resolve(e) : e;
|
|
2049
2227
|
}
|
|
2050
2228
|
if (t) return Promise.reject(n);
|
|
@@ -2053,18 +2231,18 @@ ${e}</tr>
|
|
|
2053
2231
|
}
|
|
2054
2232
|
}();
|
|
2055
2233
|
function Q(e, t) {
|
|
2056
|
-
return
|
|
2234
|
+
return hn.parse(e, t);
|
|
2057
2235
|
}
|
|
2058
2236
|
Q.options = Q.setOptions = function(e) {
|
|
2059
|
-
return
|
|
2060
|
-
}, Q.getDefaults =
|
|
2061
|
-
return
|
|
2237
|
+
return hn.setOptions(e), Q.defaults = hn.defaults, ot(Q.defaults), Q;
|
|
2238
|
+
}, Q.getDefaults = at, Q.defaults = k, Q.use = function(...e) {
|
|
2239
|
+
return hn.use(...e), Q.defaults = hn.defaults, ot(Q.defaults), Q;
|
|
2062
2240
|
}, Q.walkTokens = function(e, t) {
|
|
2063
|
-
return
|
|
2064
|
-
}, Q.parseInline =
|
|
2241
|
+
return hn.walkTokens(e, t);
|
|
2242
|
+
}, Q.parseInline = hn.parseInline, Q.Parser = X, Q.parser = X.parse, Q.Renderer = mn, Q.TextRenderer = Y, Q.Lexer = J, Q.lexer = J.lex, Q.Tokenizer = pn, Q.Hooks = Z, Q.parse = Q, Q.options, Q.setOptions, Q.use, Q.walkTokens, Q.parseInline, X.parse, J.lex;
|
|
2065
2243
|
//#endregion
|
|
2066
2244
|
//#region src/components/chat-message/chat-message.module.scss?inline
|
|
2067
|
-
var tn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(--chat-message-font-family));font-size:var(--luzmo-chat-message-font-size,var(--chat-message-font-size));line-height:var(--luzmo-chat-message-line-height,var(--chat-message-line-height));color:var(--highcontrast-chat-message-text-color,var(--luzmo-chat-message-text-color,var(--chat-message-text-color)));display:flex}:host([position=left]){justify-content:flex-start}:host([position=right]){justify-content:flex-end}:host([position=middle]){justify-content:center}.container{gap:var(--luzmo-chat-message-message-to-avatar,var(--chat-message-message-to-avatar));max-width:var(--luzmo-chat-message-max-width,var(--chat-message-max-width));width:fit-content;display:flex}:host(:not([data-has-avatar])) .container{gap:0}:host(:not([data-has-avatar])) .avatar-wrapper{display:none}.position-left{flex-direction:row}.position-left .avatar-wrapper{order:0}.position-left .message-wrapper{order:1;align-items:flex-start}.position-left .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius-start,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius-bottom-start,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)))}.position-right{flex-direction:row-reverse}.position-right .avatar-wrapper{order:0}.position-right .message-wrapper{order:1;align-items:flex-end}.position-right .header{justify-content:flex-end}.position-right .message{border-top-right-radius:var(--luzmo-chat-message-message-border-radius-end,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius-bottom-end,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)))}.position-right .actions-outside{justify-content:flex-end}.position-middle .message-wrapper{align-items:center}.position-middle .header,.position-middle .actions-outside{justify-content:center}.avatar-wrapper{margin-top:var(--luzmo-chat-message-avatar-margin-top,var(--chat-message-avatar-margin-top,0));margin-bottom:var(--luzmo-chat-message-avatar-margin-bottom,var(--chat-message-avatar-margin-bottom,0));flex-shrink:0;align-items:flex-start;display:flex}:host([data-in-group]) .avatar-wrapper{min-width:var(--chat-message-avatar-size,var(--luzmo-avatar-size,var(--avatar-size,32px)));flex-basis:var(--chat-message-avatar-size,var(--luzmo-avatar-size,var(--avatar-size,32px)))}:host([data-in-group]:not([data-group-square-border])) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important}.avatar-top .avatar-wrapper{align-self:flex-start}.avatar-middle .avatar-wrapper{align-self:center}.avatar-bottom .avatar-wrapper{align-self:flex-end}.avatar-middle .message-wrapper,.avatar-bottom .message-wrapper{position:relative}.avatar-middle .actions-outside,.avatar-bottom .actions-outside{margin-top:var(--luzmo-chat-message-gap,var(--chat-message-gap));position:absolute;top:100%}.avatar-middle.position-left .actions-outside,.avatar-bottom.position-left .actions-outside{left:0}.avatar-middle.position-right .actions-outside,.avatar-bottom.position-right .actions-outside{right:0}.avatar-bottom.position-left .message{--luzmo-chat-message-message-border-radius-bottom-start:0}.avatar-bottom.position-right .message{--luzmo-chat-message-message-border-radius-bottom-end:0}.message-wrapper{gap:var(--luzmo-chat-message-gap,var(--chat-message-gap));flex-direction:column;min-width:0;display:flex}.message{padding:var(--luzmo-chat-message-content-vertical-padding,var(--chat-message-content-vertical-padding)) var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding));border-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-width:var(--luzmo-chat-message-message-border-width,var(--chat-message-message-border-width));border-style:solid;border-color:var(--highcontrast-chat-message-message-border-color,var(--luzmo-chat-message-message-border-color,var(--chat-message-message-border-color)));background-color:var(--highcontrast-chat-message-message-background-color,var(--luzmo-chat-message-message-background-color,var(--chat-message-message-background-color)));box-shadow:var(--luzmo-chat-message-message-shadow,var(--chat-message-message-shadow));color:var(--luzmo-chat-message-message-text-color,var(--chat-message-message-text-color));word-wrap:break-word;overflow-wrap:break-word;max-width:100%;position:relative}.message .header,.message .user-name,.message .datetime,.message .actions-inside{color:inherit}.message.squared-top-left{border-top-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-top-right{border-top-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-bottom-left{border-bottom-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-bottom-right{border-bottom-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=top-left]) .message{border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=top-right]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=bottom-left]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=bottom-right]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.header{align-items:baseline;gap:var(--luzmo-chat-message-header-gap,var(--chat-message-header-gap));margin-bottom:var(--luzmo-chat-message-header-margin-bottom,var(--chat-message-header-margin-bottom));flex-wrap:wrap;display:flex}:host([meta=outside]) .header{margin-bottom:0}.user-name{font-weight:var(--luzmo-chat-message-user-name-font-weight,var(--chat-message-user-name-font-weight));color:var(--luzmo-chat-message-user-name-color,var(--chat-message-user-name-color))}.datetime{font-size:var(--luzmo-chat-message-datetime-font-size,var(--chat-message-datetime-font-size));color:var(--luzmo-chat-message-datetime-color,var(--chat-message-datetime-color));opacity:var(--luzmo-chat-message-datetime-opacity,var(--chat-message-datetime-opacity))}.content{display:block}.markdown-content>*{margin-block:0 var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing))}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content h1,.markdown-content h2,.markdown-content h3,.markdown-content h4,.markdown-content h5,.markdown-content h6{margin-block:var(--luzmo-chat-message-markdown-heading-spacing-top,var(--chat-message-markdown-heading-spacing-top)) var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));font-weight:var(--luzmo-chat-message-markdown-heading-font-weight,var(--chat-message-markdown-heading-font-weight));line-height:var(--luzmo-chat-message-markdown-heading-line-height,var(--chat-message-markdown-heading-line-height))}.markdown-content h1{font-size:1.5em}.markdown-content h2{font-size:1.3em}.markdown-content h3{font-size:1.15em}.markdown-content h4{font-size:1em}.markdown-content h5{font-size:.9em}.markdown-content h6{font-size:.85em}.markdown-content strong{font-weight:var(--luzmo-font-weight-bold,600)}.markdown-content em{font-style:italic}.markdown-content del{text-decoration:line-through}.markdown-content a{color:var(--luzmo-chat-message-markdown-link-color,var(--chat-message-markdown-link-color));text-underline-offset:.15em;text-decoration:underline}.markdown-content a:hover{text-decoration-thickness:2px}.markdown-content a:focus-visible{outline:var(--luzmo-indicator-width,1px) solid var(--luzmo-chat-message-markdown-link-color,var(--chat-message-markdown-link-color));outline-offset:2px;border-radius:var(--luzmo-border-radius-s)}.markdown-content code{font-family:var(--luzmo-chat-message-markdown-code-font-family,var(--chat-message-markdown-code-font-family));font-size:var(--luzmo-chat-message-markdown-code-font-size,var(--chat-message-markdown-code-font-size));background:var(--luzmo-chat-message-markdown-code-background,var(--chat-message-markdown-code-background));border-radius:var(--luzmo-chat-message-markdown-code-radius,var(--chat-message-markdown-code-radius));padding:.15em .35em}.markdown-content pre{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));padding:var(--luzmo-chat-message-markdown-pre-padding,var(--chat-message-markdown-pre-padding));background:var(--luzmo-chat-message-markdown-pre-background,var(--chat-message-markdown-pre-background));border-radius:var(--luzmo-chat-message-markdown-pre-radius,var(--chat-message-markdown-pre-radius));white-space:pre;scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-scrollbar-thumb-background) var(--luzmo-scrollbar-track-background);overflow-x:auto}.markdown-content pre code{font-size:var(--luzmo-chat-message-markdown-code-font-size,var(--chat-message-markdown-code-font-size));background:0 0;border-radius:0;padding:0}.markdown-content blockquote{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));border-inline-start:var(--luzmo-spacing-1,2px) solid var(--luzmo-chat-message-markdown-blockquote-border-color,var(--chat-message-markdown-blockquote-border-color));margin-inline:0;padding-inline-start:var(--luzmo-spacing-4)}.markdown-content blockquote>:first-child{margin-top:0}.markdown-content blockquote>:last-child{margin-bottom:0}.markdown-content ul,.markdown-content ol{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));padding-inline-start:var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent))}.markdown-content li,.markdown-content li>ul,.markdown-content li>ol{margin-block:var(--luzmo-spacing-1)}.markdown-content li.task-list-item{margin-inline-start:calc(-1 * var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent)));padding-inline-start:var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent));list-style:none}.markdown-content li.task-list-item input[type=checkbox]{vertical-align:middle;margin-inline-end:var(--luzmo-spacing-2)}.markdown-content table{width:max-content;max-width:100%;margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));border-collapse:collapse;display:block;overflow-x:auto}.markdown-content th,.markdown-content td{padding:var(--luzmo-chat-message-markdown-table-cell-padding,var(--chat-message-markdown-table-cell-padding));border:var(--luzmo-border-width,1px) solid var(--luzmo-chat-message-markdown-border-color,var(--chat-message-markdown-border-color));text-align:start}.markdown-content th{font-weight:var(--luzmo-font-weight-bold,600)}.markdown-content hr{margin-block:var(--luzmo-chat-message-markdown-heading-spacing-top,var(--chat-message-markdown-heading-spacing-top));border:0;border-top:var(--luzmo-border-width,1px) solid var(--luzmo-chat-message-markdown-border-color,var(--chat-message-markdown-border-color))}.markdown-content img{border-radius:var(--luzmo-border-radius);max-width:100%;height:auto}.actions{gap:var(--luzmo-chat-message-actions-gap,var(--chat-message-actions-gap));align-items:center;display:flex}.actions-inside{margin-top:var(--luzmo-chat-message-actions-margin-top,var(--chat-message-actions-margin-top))}.actions-outside{opacity:var(--luzmo-chat-message-actions-opacity,var(--chat-message-actions-opacity));transition:opacity var(--luzmo-chat-message-animation-duration,var(--chat-message-animation-duration)) ease-in-out}:host(:hover) .actions-outside,:host(:focus-within) .actions-outside{opacity:var(--luzmo-chat-message-actions-opacity-hover,var(--chat-message-actions-opacity-hover))}::slotted([slot=avatar]){display:block}::slotted([slot=actions]){align-items:center;display:inline-flex}.extra-actions{top:var(--luzmo-chat-message-extra-actions-top,var(--chat-message-extra-actions-top));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right));bottom:var(--luzmo-chat-message-extra-actions-bottom,var(--chat-message-extra-actions-bottom));left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left));padding:var(--luzmo-chat-message-extra-actions-vertical-padding,var(--chat-message-extra-actions-vertical-padding)) var(--luzmo-chat-message-extra-actions-horizontal-padding,var(--chat-message-extra-actions-horizontal-padding));opacity:0;pointer-events:none;transition:opacity var(--luzmo-chat-message-animation-duration,var(--chat-message-animation-duration)) ease-in-out;z-index:10;position:absolute}:host([position=left]) .extra-actions{left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left), var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding)));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right), auto)}:host([size=m]) .extra-actions{top:calc(-1 * var(--luzmo-spacing-5))}:host([size=m][position=right]) .extra-actions{left:calc(-1 * var(--luzmo-spacing-5));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right), auto)}:host([size=m][position=middle]) .extra-actions,:host([size=m][position=left]) .extra-actions{right:calc(-1 * var(--luzmo-spacing-5));left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left), auto)}.extra-actions-wrapper{background-color:var(--luzmo-chat-message-extra-actions-wrapper-background-color,var(--luzmo-background-color));border-radius:var(--luzmo-chat-message-extra-actions-wrapper-border-radius,var(--luzmo-border-radius));border-width:var(--luzmo-chat-message-extra-actions-wrapper-border-width,var(--luzmo-border-width));border-style:var(--luzmo-chat-message-extra-actions-wrapper-border-style,solid);border-color:var(--luzmo-chat-message-extra-actions-wrapper-border,var(--luzmo-border-color));padding:var(--luzmo-chat-message-extra-actions-wrapper-vertical-padding,var(--chat-message-extra-actions-wrapper-vertical-padding)) var(--luzmo-chat-message-extra-actions-wrapper-horizontal-padding,var(--chat-message-extra-actions-wrapper-horizontal-padding));position:var(--luzmo-chat-message-extra-actions-wrapper-position,var(--chat-message-extra-actions-wrapper-position), relative);top:var(--luzmo-chat-message-extra-actions-wrapper-top,var(--chat-message-extra-actions-wrapper-top));right:var(--luzmo-chat-message-extra-actions-wrapper-right,var(--chat-message-extra-actions-wrapper-right));bottom:var(--luzmo-chat-message-extra-actions-wrapper-bottom,var(--chat-message-extra-actions-wrapper-bottom));left:var(--luzmo-chat-message-extra-actions-wrapper-left,var(--chat-message-extra-actions-wrapper-left));align-items:center;display:inline-flex}:host(:hover) .extra-actions,:host(:focus-within) .extra-actions,:host(:active) .extra-actions{opacity:1;pointer-events:auto}::slotted([slot=extra-actions]){align-items:center;display:inline-flex}@media (forced-colors:active){.markdown-content th,.markdown-content td,.markdown-content hr{border-color:canvastext}.markdown-content pre,.markdown-content code{border:1px solid canvastext}.markdown-content pre code{border:0}.markdown-content blockquote{border-inline-start-color:canvastext}.markdown-content a{color:linktext}:host{--highcontrast-chat-message-message-background-color:Canvas;--highcontrast-chat-message-message-border-color:CanvasText;--highcontrast-chat-message-text-color:CanvasText}}:host{--chat-message-message-border-width:var(--luzmo-border-width);--chat-message-message-border-color:var(--luzmo-border-color);--chat-message-message-background-color:var(--luzmo-background-color-highlight);--chat-message-message-shadow:0 1px 2px rgba(var(--luzmo-border-color-rgb), .05);--chat-message-message-text-color:inherit;--chat-message-font-family:var(--luzmo-font-family);--chat-message-font-size:var(--luzmo-font-size);--chat-message-line-height:1.5;--chat-message-text-color:var(--luzmo-font-color);--chat-message-header-gap:var(--luzmo-spacing-2);--chat-message-header-margin-bottom:var(--luzmo-spacing-1);--chat-message-user-name-font-weight:var(--luzmo-font-weight-bold,600);--chat-message-user-name-color:var(--luzmo-font-color);--chat-message-datetime-font-size:.75em;--chat-message-datetime-color:var(--luzmo-font-color-secondary);--chat-message-datetime-opacity:.7;--chat-message-actions-gap:var(--luzmo-spacing-1);--chat-message-actions-margin-top:var(--luzmo-spacing-2);--chat-message-actions-opacity:1;--chat-message-actions-opacity-hover:1;--chat-message-animation-duration:var(--luzmo-animation-duration,.15s);--chat-message-gap:var(--luzmo-spacing-4);--chat-message-message-to-avatar:var(--luzmo-spacing-3);--chat-message-max-width:80%;--chat-message-content-vertical-padding:var(--luzmo-spacing-3);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--chat-message-primary-background-color:var(--luzmo-primary);--chat-message-primary-border-color:var(--luzmo-primary);--chat-message-primary-text-color:var(--luzmo-primary-inverse-color);--chat-message-primary-text-color-outline:var(--luzmo-primary);--chat-message-secondary-background-color:var(--luzmo-secondary);--chat-message-secondary-border-color:var(--luzmo-secondary);--chat-message-secondary-text-color:var(--luzmo-secondary-inverse-color);--chat-message-secondary-text-color-outline:var(--luzmo-secondary);--chat-message-markdown-block-spacing:var(--luzmo-spacing-4);--chat-message-markdown-heading-font-weight:var(--luzmo-font-weight-bold);--chat-message-markdown-heading-spacing-top:var(--luzmo-spacing-5);--chat-message-markdown-heading-line-height:1.25;--chat-message-markdown-code-font-family:ui-monospace, sfmono-regular, \"SF Mono\", menlo, consolas, \"Liberation Mono\", monospace;--chat-message-markdown-code-font-size:.875em;--chat-message-markdown-code-background:var(--luzmo-background-color-highlight);--chat-message-markdown-code-radius:var(--luzmo-border-radius-s);--chat-message-markdown-pre-background:var(--luzmo-background-color-highlight);--chat-message-markdown-pre-radius:var(--luzmo-border-radius);--chat-message-markdown-pre-padding:var(--luzmo-spacing-4);--chat-message-markdown-border-color:var(--luzmo-border-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-border-color);--chat-message-markdown-link-color:var(--luzmo-primary);--chat-message-markdown-list-indent:var(--luzmo-spacing-5);--chat-message-markdown-table-cell-padding:var(--luzmo-spacing-2) var(--luzmo-spacing-3)}:host([position=middle]){--chat-message-max-width:90%}:host{--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-gap:var(--luzmo-spacing-2);--chat-message-message-to-avatar:var(--luzmo-spacing-4);--chat-message-max-width:80%;--chat-message-content-vertical-padding:var(--luzmo-spacing-4);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1))}:host([size=xs]){--chat-message-message-border-radius:var(--luzmo-border-radius);--chat-message-squared-border-radius:var(--luzmo-border-radius-xs);--chat-message-font-size:11px;--chat-message-content-vertical-padding:var(--luzmo-spacing-3);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--chat-message-gap:var(--luzmo-spacing-1);--chat-message-message-to-avatar:var(--luzmo-spacing-3)}:host([size=s]){--chat-message-message-border-radius:var(--luzmo-border-radius-l);--chat-message-squared-border-radius:var(--luzmo-border-radius-xs);--chat-message-font-size:12px;--chat-message-content-vertical-padding:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--chat-message-content-horizontal-padding:var(--luzmo-spacing-4);--chat-message-gap:var(--luzmo-spacing-2);--chat-message-message-to-avatar:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=l]){--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-font-size:16px;--chat-message-content-vertical-padding:var(--luzmo-spacing-5);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--chat-message-gap:var(--luzmo-spacing-3);--chat-message-message-to-avatar:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1))}:host([size=xl]){--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-font-size:18px;--chat-message-content-vertical-padding:var(--luzmo-spacing-5);--chat-message-content-horizontal-padding:var(--luzmo-spacing-5);--chat-message-gap:var(--luzmo-spacing-4);--chat-message-message-to-avatar:var(--luzmo-spacing-5)}:host([treatment=fill]){--chat-message-message-shadow:none}:host([variant=default][treatment=fill]){--chat-message-message-border-width:0}:host([variant=primary][treatment=fill]){--chat-message-message-background-color:var(--chat-message-primary-background-color);--chat-message-message-border-color:var(--chat-message-primary-border-color);--chat-message-message-text-color:var(--chat-message-primary-text-color)}:host([variant=secondary][treatment=fill]){--chat-message-message-background-color:var(--chat-message-secondary-background-color);--chat-message-message-border-color:var(--chat-message-secondary-border-color);--chat-message-message-text-color:var(--chat-message-secondary-text-color)}:host([variant=primary][treatment=fill]:not([quiet])){--chat-message-markdown-code-background:var(--luzmo-primary-down);--chat-message-markdown-pre-background:var(--luzmo-primary-down);--chat-message-markdown-link-color:var(--luzmo-primary-inverse-color);--chat-message-markdown-border-color:var(--luzmo-primary-inverse-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-primary-inverse-color)}:host([variant=secondary][treatment=fill]:not([quiet])){--chat-message-markdown-code-background:var(--luzmo-secondary-down);--chat-message-markdown-pre-background:var(--luzmo-secondary-down);--chat-message-markdown-link-color:var(--luzmo-secondary-inverse-color);--chat-message-markdown-border-color:var(--luzmo-secondary-inverse-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-secondary-inverse-color)}:host([treatment=outline]){--chat-message-message-background-color:transparent;--chat-message-message-shadow:none}:host([variant=primary][treatment=outline]){--chat-message-message-border-color:var(--chat-message-primary-border-color);--chat-message-message-text-color:var(--chat-message-primary-text-color-outline)}:host([variant=secondary][treatment=outline]){--chat-message-message-border-color:var(--chat-message-secondary-border-color);--chat-message-message-text-color:var(--chat-message-secondary-text-color-outline)}:host([quiet]){--chat-message-message-background-color:transparent;--chat-message-message-border-color:transparent;--chat-message-message-border-width:0;--chat-message-message-shadow:none;--chat-message-content-vertical-padding:0;--chat-message-content-horizontal-padding:0}:host([quiet][avatar-placement=top]){--chat-message-avatar-margin-top:calc((var(--chat-message-line-height) - 1) / 2 * 1em)}:host([quiet][avatar-placement=bottom]){--chat-message-avatar-margin-bottom:calc((var(--chat-message-line-height) - 1) / 2 * -1em)}:host([quiet][variant=primary]){--chat-message-primary-background-color:transparent;--chat-message-primary-border-color:transparent;--chat-message-primary-text-color:var(--luzmo-primary)}:host([quiet][variant=secondary]){--chat-message-secondary-background-color:transparent;--chat-message-secondary-border-color:transparent;--chat-message-secondary-text-color:var(--luzmo-secondary)}:host{--chat-message-extra-actions-top:var(--luzmo-chat-message-content-vertical-padding,var(--chat-message-content-vertical-padding));--chat-message-extra-actions-right:var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding));--chat-message-extra-actions-bottom:auto;--chat-message-extra-actions-left:auto;--chat-message-extra-actions-vertical-padding:0;--chat-message-extra-actions-horizontal-padding:0;--chat-message-extra-actions-wrapper-background-color:var(--luzmo-border-color);--chat-message-extra-actions-wrapper-border-radius:var(--luzmo-border-radius);--chat-message-extra-actions-wrapper-border:none;--chat-message-extra-actions-wrapper-vertical-padding:var(--luzmo-spacing-1);--chat-message-extra-actions-wrapper-horizontal-padding:var(--luzmo-spacing-1);--chat-message-extra-actions-wrapper-position:relative;--chat-message-extra-actions-wrapper-top:auto;--chat-message-extra-actions-wrapper-right:auto;--chat-message-extra-actions-wrapper-bottom:auto;--chat-message-extra-actions-wrapper-left:auto}", $ = class extends n(e, {
|
|
2245
|
+
var gn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(--chat-message-font-family));font-size:var(--luzmo-chat-message-font-size,var(--chat-message-font-size));line-height:var(--luzmo-chat-message-line-height,var(--chat-message-line-height));color:var(--highcontrast-chat-message-text-color,var(--luzmo-chat-message-text-color,var(--chat-message-text-color)));display:flex}:host([position=left]){justify-content:flex-start}:host([position=right]){justify-content:flex-end}:host([position=middle]){justify-content:center}.container{gap:var(--luzmo-chat-message-message-to-avatar,var(--chat-message-message-to-avatar));max-width:var(--luzmo-chat-message-max-width,var(--chat-message-max-width));width:fit-content;display:flex}:host(:not([data-has-avatar])) .container{gap:0}:host(:not([data-has-avatar])) .avatar-wrapper{display:none}.position-left{flex-direction:row}.position-left .avatar-wrapper{order:0}.position-left .message-wrapper{order:1;align-items:flex-start}.position-left .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius-start,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius-bottom-start,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)))}.position-right{flex-direction:row-reverse}.position-right .avatar-wrapper{order:0}.position-right .message-wrapper{order:1;align-items:flex-end}.position-right .header{justify-content:flex-end}.position-right .message{border-top-right-radius:var(--luzmo-chat-message-message-border-radius-end,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius-bottom-end,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)))}.position-right .actions-outside{justify-content:flex-end}.position-middle .message-wrapper{align-items:center}.position-middle .header,.position-middle .actions-outside{justify-content:center}.avatar-wrapper{margin-top:var(--luzmo-chat-message-avatar-margin-top,var(--chat-message-avatar-margin-top,0));margin-bottom:var(--luzmo-chat-message-avatar-margin-bottom,var(--chat-message-avatar-margin-bottom,0));flex-shrink:0;align-items:flex-start;display:flex}:host([data-in-group]) .avatar-wrapper{min-width:var(--chat-message-avatar-size,var(--luzmo-avatar-size,var(--avatar-size,32px)));flex-basis:var(--chat-message-avatar-size,var(--luzmo-avatar-size,var(--avatar-size,32px)))}:host([data-in-group]:not([data-group-square-border])) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important}.avatar-top .avatar-wrapper{align-self:flex-start}.avatar-middle .avatar-wrapper{align-self:center}.avatar-bottom .avatar-wrapper{align-self:flex-end}.avatar-middle .message-wrapper,.avatar-bottom .message-wrapper{position:relative}.avatar-middle .actions-outside,.avatar-bottom .actions-outside{margin-top:var(--luzmo-chat-message-gap,var(--chat-message-gap));position:absolute;top:100%}.avatar-middle.position-left .actions-outside,.avatar-bottom.position-left .actions-outside{left:0}.avatar-middle.position-right .actions-outside,.avatar-bottom.position-right .actions-outside{right:0}.avatar-bottom.position-left .message{--luzmo-chat-message-message-border-radius-bottom-start:0}.avatar-bottom.position-right .message{--luzmo-chat-message-message-border-radius-bottom-end:0}.message-wrapper{gap:var(--luzmo-chat-message-gap,var(--chat-message-gap));flex-direction:column;min-width:0;display:flex}.message{padding:var(--luzmo-chat-message-content-vertical-padding,var(--chat-message-content-vertical-padding)) var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding));border-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-width:var(--luzmo-chat-message-message-border-width,var(--chat-message-message-border-width));border-style:solid;border-color:var(--highcontrast-chat-message-message-border-color,var(--luzmo-chat-message-message-border-color,var(--chat-message-message-border-color)));background-color:var(--highcontrast-chat-message-message-background-color,var(--luzmo-chat-message-message-background-color,var(--chat-message-message-background-color)));box-shadow:var(--luzmo-chat-message-message-shadow,var(--chat-message-message-shadow));color:var(--luzmo-chat-message-message-text-color,var(--chat-message-message-text-color));word-wrap:break-word;overflow-wrap:break-word;max-width:100%;position:relative}.message .header,.message .user-name,.message .datetime,.message .actions-inside{color:inherit}.message.squared-top-left{border-top-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-top-right{border-top-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-bottom-left{border-bottom-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-bottom-right{border-bottom-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=top-left]) .message{border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=top-right]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=bottom-left]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=bottom-right]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.header{align-items:baseline;gap:var(--luzmo-chat-message-header-gap,var(--chat-message-header-gap));margin-bottom:var(--luzmo-chat-message-header-margin-bottom,var(--chat-message-header-margin-bottom));flex-wrap:wrap;display:flex}:host([meta=outside]) .header{margin-bottom:0}.user-name{font-weight:var(--luzmo-chat-message-user-name-font-weight,var(--chat-message-user-name-font-weight));color:var(--luzmo-chat-message-user-name-color,var(--chat-message-user-name-color))}.datetime{font-size:var(--luzmo-chat-message-datetime-font-size,var(--chat-message-datetime-font-size));color:var(--luzmo-chat-message-datetime-color,var(--chat-message-datetime-color));opacity:var(--luzmo-chat-message-datetime-opacity,var(--chat-message-datetime-opacity))}.content{display:block}.markdown-content>*{margin-block:0 var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing))}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content h1,.markdown-content h2,.markdown-content h3,.markdown-content h4,.markdown-content h5,.markdown-content h6{margin-block:var(--luzmo-chat-message-markdown-heading-spacing-top,var(--chat-message-markdown-heading-spacing-top)) var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));font-weight:var(--luzmo-chat-message-markdown-heading-font-weight,var(--chat-message-markdown-heading-font-weight));line-height:var(--luzmo-chat-message-markdown-heading-line-height,var(--chat-message-markdown-heading-line-height))}.markdown-content h1{font-size:1.5em}.markdown-content h2{font-size:1.3em}.markdown-content h3{font-size:1.15em}.markdown-content h4{font-size:1em}.markdown-content h5{font-size:.9em}.markdown-content h6{font-size:.85em}.markdown-content strong{font-weight:var(--luzmo-font-weight-bold,600)}.markdown-content em{font-style:italic}.markdown-content del{text-decoration:line-through}.markdown-content a{color:var(--luzmo-chat-message-markdown-link-color,var(--chat-message-markdown-link-color));text-underline-offset:.15em;text-decoration:underline}.markdown-content a:hover{text-decoration-thickness:2px}.markdown-content a:focus-visible{outline:var(--luzmo-indicator-width,1px) solid var(--luzmo-chat-message-markdown-link-color,var(--chat-message-markdown-link-color));outline-offset:2px;border-radius:var(--luzmo-border-radius-s)}.markdown-content code{font-family:var(--luzmo-chat-message-markdown-code-font-family,var(--chat-message-markdown-code-font-family));font-size:var(--luzmo-chat-message-markdown-code-font-size,var(--chat-message-markdown-code-font-size));background:var(--luzmo-chat-message-markdown-code-background,var(--chat-message-markdown-code-background));border-radius:var(--luzmo-chat-message-markdown-code-radius,var(--chat-message-markdown-code-radius));padding:.15em .35em}.markdown-content pre{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));padding:var(--luzmo-chat-message-markdown-pre-padding,var(--chat-message-markdown-pre-padding));background:var(--luzmo-chat-message-markdown-pre-background,var(--chat-message-markdown-pre-background));border-radius:var(--luzmo-chat-message-markdown-pre-radius,var(--chat-message-markdown-pre-radius));white-space:pre;scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-scrollbar-thumb-background) var(--luzmo-scrollbar-track-background);overflow-x:auto}.markdown-content pre code{font-size:var(--luzmo-chat-message-markdown-code-font-size,var(--chat-message-markdown-code-font-size));background:0 0;border-radius:0;padding:0}.markdown-content blockquote{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));border-inline-start:var(--luzmo-spacing-1,2px) solid var(--luzmo-chat-message-markdown-blockquote-border-color,var(--chat-message-markdown-blockquote-border-color));margin-inline:0;padding-inline-start:var(--luzmo-spacing-4)}.markdown-content blockquote>:first-child{margin-top:0}.markdown-content blockquote>:last-child{margin-bottom:0}.markdown-content ul,.markdown-content ol{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));padding-inline-start:var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent))}.markdown-content li,.markdown-content li>ul,.markdown-content li>ol{margin-block:var(--luzmo-spacing-1)}.markdown-content li.task-list-item{margin-inline-start:calc(-1 * var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent)));padding-inline-start:var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent));list-style:none}.markdown-content li.task-list-item input[type=checkbox]{vertical-align:middle;margin-inline-end:var(--luzmo-spacing-2)}.markdown-content table{width:max-content;max-width:100%;margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));border-collapse:collapse;display:block;overflow-x:auto}.markdown-content th,.markdown-content td{padding:var(--luzmo-chat-message-markdown-table-cell-padding,var(--chat-message-markdown-table-cell-padding));border:var(--luzmo-border-width,1px) solid var(--luzmo-chat-message-markdown-border-color,var(--chat-message-markdown-border-color));text-align:start}.markdown-content th{font-weight:var(--luzmo-font-weight-bold,600)}.markdown-content hr{margin-block:var(--luzmo-chat-message-markdown-heading-spacing-top,var(--chat-message-markdown-heading-spacing-top));border:0;border-top:var(--luzmo-border-width,1px) solid var(--luzmo-chat-message-markdown-border-color,var(--chat-message-markdown-border-color))}.markdown-content img{border-radius:var(--luzmo-border-radius);max-width:100%;height:auto}.actions{gap:var(--luzmo-chat-message-actions-gap,var(--chat-message-actions-gap));align-items:center;display:flex}.actions-inside{margin-top:var(--luzmo-chat-message-actions-margin-top,var(--chat-message-actions-margin-top))}.actions-outside{opacity:var(--luzmo-chat-message-actions-opacity,var(--chat-message-actions-opacity));transition:opacity var(--luzmo-chat-message-animation-duration,var(--chat-message-animation-duration)) ease-in-out}:host(:hover) .actions-outside,:host(:focus-within) .actions-outside{opacity:var(--luzmo-chat-message-actions-opacity-hover,var(--chat-message-actions-opacity-hover))}::slotted([slot=avatar]){display:block}::slotted([slot=actions]){align-items:center;display:inline-flex}.extra-actions{top:var(--luzmo-chat-message-extra-actions-top,var(--chat-message-extra-actions-top));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right));bottom:var(--luzmo-chat-message-extra-actions-bottom,var(--chat-message-extra-actions-bottom));left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left));padding:var(--luzmo-chat-message-extra-actions-vertical-padding,var(--chat-message-extra-actions-vertical-padding)) var(--luzmo-chat-message-extra-actions-horizontal-padding,var(--chat-message-extra-actions-horizontal-padding));opacity:0;pointer-events:none;transition:opacity var(--luzmo-chat-message-animation-duration,var(--chat-message-animation-duration)) ease-in-out;z-index:10;position:absolute}:host([position=left]) .extra-actions{left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left), var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding)));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right), auto)}:host([size=m]) .extra-actions{top:calc(-1 * var(--luzmo-spacing-5))}:host([size=m][position=right]) .extra-actions{left:calc(-1 * var(--luzmo-spacing-5));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right), auto)}:host([size=m][position=middle]) .extra-actions,:host([size=m][position=left]) .extra-actions{right:calc(-1 * var(--luzmo-spacing-5));left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left), auto)}.extra-actions-wrapper{background-color:var(--luzmo-chat-message-extra-actions-wrapper-background-color,var(--luzmo-background-color));border-radius:var(--luzmo-chat-message-extra-actions-wrapper-border-radius,var(--luzmo-border-radius));border-width:var(--luzmo-chat-message-extra-actions-wrapper-border-width,var(--luzmo-border-width));border-style:var(--luzmo-chat-message-extra-actions-wrapper-border-style,solid);border-color:var(--luzmo-chat-message-extra-actions-wrapper-border,var(--luzmo-border-color));padding:var(--luzmo-chat-message-extra-actions-wrapper-vertical-padding,var(--chat-message-extra-actions-wrapper-vertical-padding)) var(--luzmo-chat-message-extra-actions-wrapper-horizontal-padding,var(--chat-message-extra-actions-wrapper-horizontal-padding));position:var(--luzmo-chat-message-extra-actions-wrapper-position,var(--chat-message-extra-actions-wrapper-position), relative);top:var(--luzmo-chat-message-extra-actions-wrapper-top,var(--chat-message-extra-actions-wrapper-top));right:var(--luzmo-chat-message-extra-actions-wrapper-right,var(--chat-message-extra-actions-wrapper-right));bottom:var(--luzmo-chat-message-extra-actions-wrapper-bottom,var(--chat-message-extra-actions-wrapper-bottom));left:var(--luzmo-chat-message-extra-actions-wrapper-left,var(--chat-message-extra-actions-wrapper-left));align-items:center;display:inline-flex}:host(:hover) .extra-actions,:host(:focus-within) .extra-actions,:host(:active) .extra-actions{opacity:1;pointer-events:auto}::slotted([slot=extra-actions]){align-items:center;display:inline-flex}@media (forced-colors:active){.markdown-content th,.markdown-content td,.markdown-content hr{border-color:canvastext}.markdown-content pre,.markdown-content code{border:1px solid canvastext}.markdown-content pre code{border:0}.markdown-content blockquote{border-inline-start-color:canvastext}.markdown-content a{color:linktext}:host{--highcontrast-chat-message-message-background-color:Canvas;--highcontrast-chat-message-message-border-color:CanvasText;--highcontrast-chat-message-text-color:CanvasText}}:host{--chat-message-message-border-width:var(--luzmo-border-width);--chat-message-message-border-color:var(--luzmo-border-color);--chat-message-message-background-color:var(--luzmo-background-color-highlight);--chat-message-message-shadow:0 1px 2px rgba(var(--luzmo-border-color-rgb), .05);--chat-message-message-text-color:inherit;--chat-message-font-family:var(--luzmo-font-family);--chat-message-font-size:var(--luzmo-font-size);--chat-message-line-height:1.5;--chat-message-text-color:var(--luzmo-font-color);--chat-message-header-gap:var(--luzmo-spacing-2);--chat-message-header-margin-bottom:var(--luzmo-spacing-1);--chat-message-user-name-font-weight:var(--luzmo-font-weight-bold,600);--chat-message-user-name-color:var(--luzmo-font-color);--chat-message-datetime-font-size:.75em;--chat-message-datetime-color:var(--luzmo-font-color-secondary);--chat-message-datetime-opacity:.7;--chat-message-actions-gap:var(--luzmo-spacing-1);--chat-message-actions-margin-top:var(--luzmo-spacing-2);--chat-message-actions-opacity:1;--chat-message-actions-opacity-hover:1;--chat-message-animation-duration:var(--luzmo-animation-duration,.15s);--chat-message-gap:var(--luzmo-spacing-4);--chat-message-message-to-avatar:var(--luzmo-spacing-3);--chat-message-max-width:80%;--chat-message-content-vertical-padding:var(--luzmo-spacing-3);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--chat-message-primary-background-color:var(--luzmo-primary);--chat-message-primary-border-color:var(--luzmo-primary);--chat-message-primary-text-color:var(--luzmo-primary-inverse-color);--chat-message-primary-text-color-outline:var(--luzmo-primary);--chat-message-secondary-background-color:var(--luzmo-secondary);--chat-message-secondary-border-color:var(--luzmo-secondary);--chat-message-secondary-text-color:var(--luzmo-secondary-inverse-color);--chat-message-secondary-text-color-outline:var(--luzmo-secondary);--chat-message-markdown-block-spacing:var(--luzmo-spacing-4);--chat-message-markdown-heading-font-weight:var(--luzmo-font-weight-bold);--chat-message-markdown-heading-spacing-top:var(--luzmo-spacing-5);--chat-message-markdown-heading-line-height:1.25;--chat-message-markdown-code-font-family:ui-monospace, sfmono-regular, \"SF Mono\", menlo, consolas, \"Liberation Mono\", monospace;--chat-message-markdown-code-font-size:.875em;--chat-message-markdown-code-background:var(--luzmo-background-color-highlight);--chat-message-markdown-code-radius:var(--luzmo-border-radius-s);--chat-message-markdown-pre-background:var(--luzmo-background-color-highlight);--chat-message-markdown-pre-radius:var(--luzmo-border-radius);--chat-message-markdown-pre-padding:var(--luzmo-spacing-4);--chat-message-markdown-border-color:var(--luzmo-border-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-border-color);--chat-message-markdown-link-color:var(--luzmo-primary);--chat-message-markdown-list-indent:var(--luzmo-spacing-5);--chat-message-markdown-table-cell-padding:var(--luzmo-spacing-2) var(--luzmo-spacing-3)}:host([position=middle]){--chat-message-max-width:90%}:host{--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-gap:var(--luzmo-spacing-2);--chat-message-message-to-avatar:var(--luzmo-spacing-4);--chat-message-max-width:80%;--chat-message-content-vertical-padding:var(--luzmo-spacing-4);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1))}:host([size=xs]){--chat-message-message-border-radius:var(--luzmo-border-radius);--chat-message-squared-border-radius:var(--luzmo-border-radius-xs);--chat-message-font-size:11px;--chat-message-content-vertical-padding:var(--luzmo-spacing-3);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--chat-message-gap:var(--luzmo-spacing-1);--chat-message-message-to-avatar:var(--luzmo-spacing-3)}:host([size=s]){--chat-message-message-border-radius:var(--luzmo-border-radius-l);--chat-message-squared-border-radius:var(--luzmo-border-radius-xs);--chat-message-font-size:12px;--chat-message-content-vertical-padding:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--chat-message-content-horizontal-padding:var(--luzmo-spacing-4);--chat-message-gap:var(--luzmo-spacing-2);--chat-message-message-to-avatar:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=l]){--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-font-size:16px;--chat-message-content-vertical-padding:var(--luzmo-spacing-5);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--chat-message-gap:var(--luzmo-spacing-3);--chat-message-message-to-avatar:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1))}:host([size=xl]){--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-font-size:18px;--chat-message-content-vertical-padding:var(--luzmo-spacing-5);--chat-message-content-horizontal-padding:var(--luzmo-spacing-5);--chat-message-gap:var(--luzmo-spacing-4);--chat-message-message-to-avatar:var(--luzmo-spacing-5)}:host([treatment=fill]){--chat-message-message-shadow:none}:host([variant=default][treatment=fill]){--chat-message-message-border-width:0}:host([variant=primary][treatment=fill]){--chat-message-message-background-color:var(--chat-message-primary-background-color);--chat-message-message-border-color:var(--chat-message-primary-border-color);--chat-message-message-text-color:var(--chat-message-primary-text-color)}:host([variant=secondary][treatment=fill]){--chat-message-message-background-color:var(--chat-message-secondary-background-color);--chat-message-message-border-color:var(--chat-message-secondary-border-color);--chat-message-message-text-color:var(--chat-message-secondary-text-color)}:host([variant=primary][treatment=fill]:not([quiet])){--chat-message-markdown-code-background:var(--luzmo-primary-down);--chat-message-markdown-pre-background:var(--luzmo-primary-down);--chat-message-markdown-link-color:var(--luzmo-primary-inverse-color);--chat-message-markdown-border-color:var(--luzmo-primary-inverse-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-primary-inverse-color)}:host([variant=secondary][treatment=fill]:not([quiet])){--chat-message-markdown-code-background:var(--luzmo-secondary-down);--chat-message-markdown-pre-background:var(--luzmo-secondary-down);--chat-message-markdown-link-color:var(--luzmo-secondary-inverse-color);--chat-message-markdown-border-color:var(--luzmo-secondary-inverse-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-secondary-inverse-color)}:host([treatment=outline]){--chat-message-message-background-color:transparent;--chat-message-message-shadow:none}:host([variant=primary][treatment=outline]){--chat-message-message-border-color:var(--chat-message-primary-border-color);--chat-message-message-text-color:var(--chat-message-primary-text-color-outline)}:host([variant=secondary][treatment=outline]){--chat-message-message-border-color:var(--chat-message-secondary-border-color);--chat-message-message-text-color:var(--chat-message-secondary-text-color-outline)}:host([quiet]){--chat-message-message-background-color:transparent;--chat-message-message-border-color:transparent;--chat-message-message-border-width:0;--chat-message-message-shadow:none;--chat-message-content-vertical-padding:0;--chat-message-content-horizontal-padding:0}:host([quiet][avatar-placement=top]){--chat-message-avatar-margin-top:calc((var(--chat-message-line-height) - 1) / 2 * 1em)}:host([quiet][avatar-placement=bottom]){--chat-message-avatar-margin-bottom:calc((var(--chat-message-line-height) - 1) / 2 * -1em)}:host([quiet][variant=primary]){--chat-message-primary-background-color:transparent;--chat-message-primary-border-color:transparent;--chat-message-primary-text-color:var(--luzmo-primary)}:host([quiet][variant=secondary]){--chat-message-secondary-background-color:transparent;--chat-message-secondary-border-color:transparent;--chat-message-secondary-text-color:var(--luzmo-secondary)}:host{--chat-message-extra-actions-top:var(--luzmo-chat-message-content-vertical-padding,var(--chat-message-content-vertical-padding));--chat-message-extra-actions-right:var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding));--chat-message-extra-actions-bottom:auto;--chat-message-extra-actions-left:auto;--chat-message-extra-actions-vertical-padding:0;--chat-message-extra-actions-horizontal-padding:0;--chat-message-extra-actions-wrapper-background-color:var(--luzmo-border-color);--chat-message-extra-actions-wrapper-border-radius:var(--luzmo-border-radius);--chat-message-extra-actions-wrapper-border:none;--chat-message-extra-actions-wrapper-vertical-padding:var(--luzmo-spacing-1);--chat-message-extra-actions-wrapper-horizontal-padding:var(--luzmo-spacing-1);--chat-message-extra-actions-wrapper-position:relative;--chat-message-extra-actions-wrapper-top:auto;--chat-message-extra-actions-wrapper-right:auto;--chat-message-extra-actions-wrapper-bottom:auto;--chat-message-extra-actions-wrapper-left:auto}", $ = class extends n(e, {
|
|
2068
2246
|
validSizes: [
|
|
2069
2247
|
"xs",
|
|
2070
2248
|
"s",
|
|
@@ -2092,7 +2270,7 @@ var tn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(
|
|
|
2092
2270
|
this.defaultSlotObserver.disconnect(), super.disconnectedCallback();
|
|
2093
2271
|
}
|
|
2094
2272
|
static get styles() {
|
|
2095
|
-
return [o(
|
|
2273
|
+
return [o(gn)];
|
|
2096
2274
|
}
|
|
2097
2275
|
_handleAvatarSlotChange(e) {
|
|
2098
2276
|
let t = e.target;
|
|
@@ -2118,7 +2296,7 @@ var tn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(
|
|
|
2118
2296
|
let e = [...this.childNodes].filter((e) => e.nodeType !== Node.ELEMENT_NODE || !e.hasAttribute("slot"));
|
|
2119
2297
|
if (e.some((e) => e.nodeType === Node.ELEMENT_NODE)) return;
|
|
2120
2298
|
let t = e.filter((e) => e.nodeType === Node.TEXT_NODE || e.nodeType === Node.CDATA_SECTION_NODE).map((e) => e.textContent || "").join("").replaceAll("\r\n", "\n").replaceAll("\r", "\n").trim();
|
|
2121
|
-
if (t) return
|
|
2299
|
+
if (t) return it.sanitize(Q.parse(t, {
|
|
2122
2300
|
gfm: !0,
|
|
2123
2301
|
async: !1
|
|
2124
2302
|
}), { USE_PROFILES: { html: !0 } });
|