@mhmo91/schmancy 0.5.18 → 0.5.19
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/ai/navigation-bar-item.md +247 -0
- package/ai/navigation-bar.md +163 -0
- package/dist/ai/navigation-bar-item.md +247 -0
- package/dist/ai/navigation-bar.md +163 -0
- package/dist/{animated-text-Bu95OxOB.js → animated-text-DbBKOAWI.js} +3 -3
- package/dist/{animated-text-Bu95OxOB.js.map → animated-text-DbBKOAWI.js.map} +1 -1
- package/dist/{animated-text-B3ShIBX3.cjs → animated-text-L4rVnRqB.cjs} +2 -2
- package/dist/{animated-text-B3ShIBX3.cjs.map → animated-text-L4rVnRqB.cjs.map} +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/area.cjs +1 -1
- package/dist/{area.component-De95XHvt.cjs → area.component-DsBt1CIM.cjs} +2 -2
- package/dist/{area.component-De95XHvt.cjs.map → area.component-DsBt1CIM.cjs.map} +1 -1
- package/dist/{area.component-Uj8eYomX.js → area.component-eV-v6J5C.js} +3 -3
- package/dist/{area.component-Uj8eYomX.js.map → area.component-eV-v6J5C.js.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-CfICiUej.js → autocomplete-CTQ6eqYl.js} +4 -4
- package/dist/{autocomplete-CfICiUej.js.map → autocomplete-CTQ6eqYl.js.map} +1 -1
- package/dist/{autocomplete-S3tqpsfx.cjs → autocomplete-DnX6sEMg.cjs} +2 -2
- package/dist/{autocomplete-S3tqpsfx.cjs.map → autocomplete-DnX6sEMg.cjs.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar-BAaUCxc-.js +895 -0
- package/dist/avatar-BAaUCxc-.js.map +1 -0
- package/dist/avatar-DwqCiKOy.cjs +303 -0
- package/dist/avatar-DwqCiKOy.cjs.map +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-COig4aPk.cjs → boat-BbF0BpAl.cjs} +2 -2
- package/dist/{boat-COig4aPk.cjs.map → boat-BbF0BpAl.cjs.map} +1 -1
- package/dist/{boat-X1OG5F2J.js → boat-CQyUVpLW.js} +2 -2
- package/dist/{boat-X1OG5F2J.js.map → boat-CQyUVpLW.js.map} +1 -1
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-CQ_N8nVx.js → checkbox-7annHqhF.js} +2 -2
- package/dist/{checkbox-CQ_N8nVx.js.map → checkbox-7annHqhF.js.map} +1 -1
- package/dist/{checkbox-BKyJeBzr.cjs → checkbox-CI4CDpoS.cjs} +2 -2
- package/dist/{checkbox-BKyJeBzr.cjs.map → checkbox-CI4CDpoS.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-DRt2qNK4.js → code-preview-Y783aZ7J.js} +133 -123
- package/dist/{code-preview-DRt2qNK4.js.map → code-preview-Y783aZ7J.js.map} +1 -1
- package/dist/{code-preview-DdWQ9Huu.cjs → code-preview-zE_SbNNO.cjs} +67 -57
- package/dist/{code-preview-DdWQ9Huu.cjs.map → code-preview-zE_SbNNO.cjs.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-_0PfGLTG.cjs → date-range-Bh2x7nlc.cjs} +2 -2
- package/dist/{date-range-_0PfGLTG.cjs.map → date-range-Bh2x7nlc.cjs.map} +1 -1
- package/dist/{date-range-W2AtcWsE.js → date-range-BtFn7iGs.js} +3 -3
- package/dist/{date-range-W2AtcWsE.js.map → date-range-BtFn7iGs.js.map} +1 -1
- package/dist/{date-range-inline-Cqu7nIGM.js → date-range-inline-BnGPY5ZY.js} +3 -3
- package/dist/{date-range-inline-Cqu7nIGM.js.map → date-range-inline-BnGPY5ZY.js.map} +1 -1
- package/dist/{date-range-inline-tDA37KYD.cjs → date-range-inline-C_6N7yca.cjs} +2 -2
- package/dist/{date-range-inline-tDA37KYD.cjs.map → date-range-inline-C_6N7yca.cjs.map} +1 -1
- package/dist/date-range-inline.cjs +1 -1
- package/dist/date-range-inline.js +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-CXAQP1GR.js → delay-DafLdRaR.js} +2 -2
- package/dist/{delay-CXAQP1GR.js.map → delay-DafLdRaR.js.map} +1 -1
- package/dist/{delay-B_M7fPe5.cjs → delay-DgBkfK3a.cjs} +2 -2
- package/dist/{delay-B_M7fPe5.cjs.map → delay-DgBkfK3a.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{details-CphTZvhk.js → details-89R5QI1S.js} +2 -2
- package/dist/{details-CphTZvhk.js.map → details-89R5QI1S.js.map} +1 -1
- package/dist/{details-Chfs-oHV.cjs → details-DpodqE31.cjs} +2 -2
- package/dist/{details-Chfs-oHV.cjs.map → details-DpodqE31.cjs.map} +1 -1
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/{dialog-content-h_Oz2PDz.js → dialog-content-CGt4hZZn.js} +3 -3
- package/dist/{dialog-content-h_Oz2PDz.js.map → dialog-content-CGt4hZZn.js.map} +1 -1
- package/dist/{dialog-content-Cm8VekL4.cjs → dialog-content-S6k16Le_.cjs} +2 -2
- package/dist/{dialog-content-Cm8VekL4.cjs.map → dialog-content-S6k16Le_.cjs.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-CrP3muaP.cjs → divider-CUFy4oEY.cjs} +2 -2
- package/dist/{divider-CrP3muaP.cjs.map → divider-CUFy4oEY.cjs.map} +1 -1
- package/dist/{divider-DZZPRjp6.js → divider-dTggJNS0.js} +3 -3
- package/dist/{divider-DZZPRjp6.js.map → divider-dTggJNS0.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-CB1GBHlI.js → dropdown-content-Bty4mF1A.js} +3 -3
- package/dist/{dropdown-content-CB1GBHlI.js.map → dropdown-content-Bty4mF1A.js.map} +1 -1
- package/dist/{dropdown-content-A6ZdJyZz.cjs → dropdown-content-D7dvNRRR.cjs} +2 -2
- package/dist/{dropdown-content-A6ZdJyZz.cjs.map → dropdown-content-D7dvNRRR.cjs.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{email-recipients-DbovFfyf.cjs → email-recipients-DKDl1Qlt.cjs} +2 -2
- package/dist/{email-recipients-DbovFfyf.cjs.map → email-recipients-DKDl1Qlt.cjs.map} +1 -1
- package/dist/{email-recipients-Wk64dWuZ.js → email-recipients-Tb0UBtjf.js} +5 -5
- package/dist/{email-recipients-Wk64dWuZ.js.map → email-recipients-Tb0UBtjf.js.map} +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-BjEfo9Y7.js → flex-CYF9ejQL.js} +2 -2
- package/dist/{flex-BjEfo9Y7.js.map → flex-CYF9ejQL.js.map} +1 -1
- package/dist/{flex-B20VU8L_.cjs → flex-zkXsvBw6.cjs} +2 -2
- package/dist/{flex-B20VU8L_.cjs.map → flex-zkXsvBw6.cjs.map} +1 -1
- package/dist/{form-C02xoiR8.cjs → form-D-CgyzE3.cjs} +2 -2
- package/dist/{form-C02xoiR8.cjs.map → form-D-CgyzE3.cjs.map} +1 -1
- package/dist/{form-C1PF3LFP.js → form-DdQgacXw.js} +2 -2
- package/dist/{form-C1PF3LFP.js.map → form-DdQgacXw.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{formField.mixin-pLRVCeUD.cjs → formField.mixin-C7xna5S7.cjs} +2 -2
- package/dist/{formField.mixin-pLRVCeUD.cjs.map → formField.mixin-C7xna5S7.cjs.map} +1 -1
- package/dist/{formField.mixin-Butk4H3G.js → formField.mixin-Cc6iv6e6.js} +2 -2
- package/dist/{formField.mixin-Butk4H3G.js.map → formField.mixin-Cc6iv6e6.js.map} +1 -1
- package/dist/{icon-CcNT1vvG.cjs → icon-CFM5r0Fm.cjs} +2 -2
- package/dist/{icon-CcNT1vvG.cjs.map → icon-CFM5r0Fm.cjs.map} +1 -1
- package/dist/{icon-BZUpikxQ.js → icon-CYqOQBoE.js} +2 -2
- package/dist/{icon-BZUpikxQ.js.map → icon-CYqOQBoE.js.map} +1 -1
- package/dist/{icon-button-7b5uVTan.js → icon-button-BSCcuC7U.js} +3 -3
- package/dist/{icon-button-7b5uVTan.js.map → icon-button-BSCcuC7U.js.map} +1 -1
- package/dist/{icon-button-C5YpXRdC.cjs → icon-button-Bf_dCRHx.cjs} +2 -2
- package/dist/{icon-button-C5YpXRdC.cjs.map → icon-button-Bf_dCRHx.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +212 -210
- package/dist/{input-DC8Sf6IC.js → input-CNs7L8A9.js} +3 -3
- package/dist/{input-DC8Sf6IC.js.map → input-CNs7L8A9.js.map} +1 -1
- package/dist/{input-DhdHemYN.cjs → input-D9B5aydv.cjs} +2 -2
- package/dist/{input-DhdHemYN.cjs.map → input-D9B5aydv.cjs.map} +1 -1
- package/dist/{input-chip-BVeKi5rc.cjs → input-chip-Bu8DLVMh.cjs} +2 -2
- package/dist/{input-chip-BVeKi5rc.cjs.map → input-chip-Bu8DLVMh.cjs.map} +1 -1
- package/dist/{input-chip-CIk926sc.js → input-chip-CPNF4szF.js} +2 -2
- package/dist/{input-chip-CIk926sc.js.map → input-chip-CPNF4szF.js.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{list-CGNZvRGe.js → list-Cp-TE18p.js} +2 -2
- package/dist/{list-CGNZvRGe.js.map → list-Cp-TE18p.js.map} +1 -1
- package/dist/{list-t7vG7o_O.cjs → list-Ds8oKtEs.cjs} +2 -2
- package/dist/{list-t7vG7o_O.cjs.map → list-Ds8oKtEs.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-C_TdCsfa.js → litElement.mixin-7HEBIRUp.js} +2 -2
- package/dist/{litElement.mixin-C_TdCsfa.js.map → litElement.mixin-7HEBIRUp.js.map} +1 -1
- package/dist/{litElement.mixin-BJ_Q1yRD.cjs → litElement.mixin-DIoywlzp.cjs} +2 -2
- package/dist/{litElement.mixin-BJ_Q1yRD.cjs.map → litElement.mixin-DIoywlzp.cjs.map} +1 -1
- package/dist/mailbox.cjs +1 -1
- package/dist/mailbox.js +1 -1
- package/dist/{map-BiTqxS1F.js → map-CaTzsyI7.js} +2 -2
- package/dist/{map-BiTqxS1F.js.map → map-CaTzsyI7.js.map} +1 -1
- package/dist/{map-Bm3uVhWx.cjs → map-DRCyozDz.cjs} +2 -2
- package/dist/{map-Bm3uVhWx.cjs.map → map-DRCyozDz.cjs.map} +1 -1
- package/dist/map.cjs +1 -1
- package/dist/map.js +1 -1
- package/dist/{media-D1kp7fjX.cjs → media-DdzYh2k5.cjs} +2 -2
- package/dist/{media-D1kp7fjX.cjs.map → media-DdzYh2k5.cjs.map} +1 -1
- package/dist/{media-BKviPW_h.js → media-Xr5pO0WU.js} +2 -2
- package/dist/{media-BKviPW_h.js.map → media-Xr5pO0WU.js.map} +1 -1
- package/dist/{menu-BZzL9ILt.js → menu-C-Lvh3cn.js} +3 -3
- package/dist/{menu-BZzL9ILt.js.map → menu-C-Lvh3cn.js.map} +1 -1
- package/dist/{menu-Cjz7s37L.cjs → menu-S_OxKAxt.cjs} +2 -2
- package/dist/{menu-Cjz7s37L.cjs.map → menu-S_OxKAxt.cjs.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/navigation-bar.cjs +2 -0
- package/dist/navigation-bar.cjs.map +1 -0
- package/dist/navigation-bar.js +6 -0
- package/dist/navigation-bar.js.map +1 -0
- package/dist/{navigation-rail-item-B4IK1tid.cjs → navigation-rail-item-CCuC37Dx.cjs} +2 -2
- package/dist/{navigation-rail-item-B4IK1tid.cjs.map → navigation-rail-item-CCuC37Dx.cjs.map} +1 -1
- package/dist/{navigation-rail-item-D3uE3_58.js → navigation-rail-item-CZKWN1Ki.js} +2 -2
- package/dist/{navigation-rail-item-D3uE3_58.js.map → navigation-rail-item-CZKWN1Ki.js.map} +1 -1
- package/dist/navigation-rail.cjs +1 -1
- package/dist/navigation-rail.js +1 -1
- package/dist/{notification-service-CLOPRsR_.js → notification-service-36m9Setj.js} +4 -4
- package/dist/{notification-service-CLOPRsR_.js.map → notification-service-36m9Setj.js.map} +1 -1
- package/dist/{notification-service-ECIE9gmi.cjs → notification-service-Bi9hRE33.cjs} +2 -2
- package/dist/{notification-service-ECIE9gmi.cjs.map → notification-service-Bi9hRE33.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +2 -2
- package/dist/{notify-nO72O0p5.cjs → notify-BLdA7aAa.cjs} +2 -2
- package/dist/{notify-nO72O0p5.cjs.map → notify-BLdA7aAa.cjs.map} +1 -1
- package/dist/{notify-Ujep-Wva.js → notify-BcimHn85.js} +2 -2
- package/dist/{notify-Ujep-Wva.js.map → notify-BcimHn85.js.map} +1 -1
- package/dist/{option-r8dBm4ca.cjs → option-C9QLuFcY.cjs} +2 -2
- package/dist/{option-r8dBm4ca.cjs.map → option-C9QLuFcY.cjs.map} +1 -1
- package/dist/{option-CRjbCpf-.js → option-DwEBerwR.js} +2 -2
- package/dist/{option-CRjbCpf-.js.map → option-DwEBerwR.js.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-BkWQ6H8v.js → payment-card-form-B1uZ9JUa.js} +3 -3
- package/dist/{payment-card-form-BkWQ6H8v.js.map → payment-card-form-B1uZ9JUa.js.map} +1 -1
- package/dist/{payment-card-form-C3rs3GJg.cjs → payment-card-form-DGdRK0yK.cjs} +2 -2
- package/dist/{payment-card-form-C3rs3GJg.cjs.map → payment-card-form-DGdRK0yK.cjs.map} +1 -1
- package/dist/{progress-T5BaCgVz.js → progress-B3hQmGMa.js} +2 -2
- package/dist/{progress-T5BaCgVz.js.map → progress-B3hQmGMa.js.map} +1 -1
- package/dist/{progress-C6sY_Q2O.cjs → progress-DQwzTPYM.cjs} +2 -2
- package/dist/{progress-C6sY_Q2O.cjs.map → progress-DQwzTPYM.cjs.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-button-C85DWct1.cjs → radio-button-CJhEZw8n.cjs} +2 -2
- package/dist/{radio-button-C85DWct1.cjs.map → radio-button-CJhEZw8n.cjs.map} +1 -1
- package/dist/{radio-button-BXZsXmyT.js → radio-button-DDE3kwPV.js} +3 -3
- package/dist/{radio-button-BXZsXmyT.js.map → radio-button-DDE3kwPV.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-C18l7ZUJ.js → schmancy-steps-container-Bk6YDDXz.js} +2 -2
- package/dist/{schmancy-steps-container-C18l7ZUJ.js.map → schmancy-steps-container-Bk6YDDXz.js.map} +1 -1
- package/dist/{schmancy-steps-container-YzlY4UDL.cjs → schmancy-steps-container-COzUZD-d.cjs} +2 -2
- package/dist/{schmancy-steps-container-YzlY4UDL.cjs.map → schmancy-steps-container-COzUZD-d.cjs.map} +1 -1
- package/dist/{select-BgxZupg_.js → select-BKkGETee.js} +3 -3
- package/dist/{select-BgxZupg_.js.map → select-BKkGETee.js.map} +1 -1
- package/dist/{select-Dve8bW-v.cjs → select-Cc96IjOA.cjs} +2 -2
- package/dist/{select-Dve8bW-v.cjs.map → select-Cc96IjOA.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-y9Uo1NQy.cjs → sheet-_3iJjzla.cjs} +2 -2
- package/dist/{sheet-y9Uo1NQy.cjs.map → sheet-_3iJjzla.cjs.map} +1 -1
- package/dist/{sheet-Dn2OyNPH.js → sheet-_Nwjk8tC.js} +3 -3
- package/dist/{sheet-Dn2OyNPH.js.map → sheet-_Nwjk8tC.js.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-HrSdi1w5.js → slider-BawxkW-m.js} +3 -3
- package/dist/{slider-HrSdi1w5.js.map → slider-BawxkW-m.js.map} +1 -1
- package/dist/{slider-CTsC1POO.cjs → slider-CvoNTGfb.cjs} +2 -2
- package/dist/{slider-CTsC1POO.cjs.map → slider-CvoNTGfb.cjs.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-CwsNWGqj.js → spinner-BSaeqgVi.js} +2 -2
- package/dist/{spinner-CwsNWGqj.js.map → spinner-BSaeqgVi.js.map} +1 -1
- package/dist/{spinner-DguvYTr2.cjs → spinner-CreHceHO.cjs} +2 -2
- package/dist/{spinner-DguvYTr2.cjs.map → spinner-CreHceHO.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{suggestion-chip-BcfuYhVu.js → suggestion-chip-Ca9HEISE.js} +3 -3
- package/dist/{suggestion-chip-BcfuYhVu.js.map → suggestion-chip-Ca9HEISE.js.map} +1 -1
- package/dist/{suggestion-chip-CocgJQgD.cjs → suggestion-chip-DgR-hY9P.cjs} +2 -2
- package/dist/{suggestion-chip-CocgJQgD.cjs.map → suggestion-chip-DgR-hY9P.cjs.map} +1 -1
- package/dist/{surface-BU2twRfK.js → surface-DssJvvqY.js} +2 -2
- package/dist/{surface-BU2twRfK.js.map → surface-DssJvvqY.js.map} +1 -1
- package/dist/{surface-14-wbhaX.cjs → surface-FlpARbmi.cjs} +2 -2
- package/dist/{surface-14-wbhaX.cjs.map → surface-FlpARbmi.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-CUWzQ4jl.cjs → table-DbGq1vlq.cjs} +2 -2
- package/dist/{table-CUWzQ4jl.cjs.map → table-DbGq1vlq.cjs.map} +1 -1
- package/dist/{table-d_te1RgD.js → table-DcgdSj1D.js} +2 -2
- package/dist/{table-d_te1RgD.js.map → table-DcgdSj1D.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-DyZLNr4f.cjs → tabs-compatibility-Lffxgw0G.cjs} +2 -2
- package/dist/{tabs-compatibility-DyZLNr4f.cjs.map → tabs-compatibility-Lffxgw0G.cjs.map} +1 -1
- package/dist/{tabs-compatibility-Boc5CUVW.js → tabs-compatibility-yIZW7NeR.js} +2 -2
- package/dist/{tabs-compatibility-Boc5CUVW.js.map → tabs-compatibility-yIZW7NeR.js.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-Dj-xh5c5.js +43 -0
- package/dist/{tailwind.mixin-nZk3QUQy.js.map → tailwind.mixin-Dj-xh5c5.js.map} +1 -1
- package/dist/tailwind.mixin-Dwm4EWu8.cjs +2 -0
- package/dist/{tailwind.mixin-D2o72t31.cjs.map → tailwind.mixin-Dwm4EWu8.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-B0sYfSz6.js → textarea-BQ94zdoX.js} +2 -2
- package/dist/{textarea-B0sYfSz6.js.map → textarea-BQ94zdoX.js.map} +1 -1
- package/dist/{textarea-mrIBP74N.cjs → textarea-CwYuTsPD.cjs} +2 -2
- package/dist/{textarea-mrIBP74N.cjs.map → textarea-CwYuTsPD.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-CNJVyopz.js → theme-button-CKt6f6kw.js} +2 -2
- package/dist/{theme-button-CNJVyopz.js.map → theme-button-CKt6f6kw.js.map} +1 -1
- package/dist/{theme-button-DGb5LDjM.cjs → theme-button-CvJH2BwY.cjs} +2 -2
- package/dist/{theme-button-DGb5LDjM.cjs.map → theme-button-CvJH2BwY.cjs.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{theme.component-X5en4kgs.js → theme.component-DcPhAbxK.js} +2 -2
- package/dist/{theme.component-X5en4kgs.js.map → theme.component-DcPhAbxK.js.map} +1 -1
- package/dist/{theme.component-BIrl0bms.cjs → theme.component-DhaisaKD.cjs} +2 -2
- package/dist/{theme.component-BIrl0bms.cjs.map → theme.component-DhaisaKD.cjs.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-Bt3qA38o.cjs → timezone-D7Ufhjog.cjs} +2 -2
- package/dist/{timezone-Bt3qA38o.cjs.map → timezone-D7Ufhjog.cjs.map} +1 -1
- package/dist/{timezone-CjMKVlle.js → timezone-ikqEpkrq.js} +3 -3
- package/dist/{timezone-CjMKVlle.js.map → timezone-ikqEpkrq.js.map} +1 -1
- package/dist/{tooltip-B8YU69FO.cjs → tooltip-Cod-ciP6.cjs} +2 -2
- package/dist/{tooltip-B8YU69FO.cjs.map → tooltip-Cod-ciP6.cjs.map} +1 -1
- package/dist/{tooltip-BorRixOk.js → tooltip-DQeBYmkT.js} +2 -2
- package/dist/{tooltip-BorRixOk.js.map → tooltip-DQeBYmkT.js.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-DQi0dyBy.js → tree-BL71j34m.js} +2 -2
- package/dist/{tree-DQi0dyBy.js.map → tree-BL71j34m.js.map} +1 -1
- package/dist/{tree-jWKUZns-.cjs → tree-DNJ-QNmK.cjs} +2 -2
- package/dist/{tree-jWKUZns-.cjs.map → tree-DNJ-QNmK.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-BCVmjF7y.cjs → typewriter-HY8FFj0-.cjs} +2 -2
- package/dist/{typewriter-BCVmjF7y.cjs.map → typewriter-HY8FFj0-.cjs.map} +1 -1
- package/dist/{typewriter-GHGwLOWk.js → typewriter-KPl30p8k.js} +4 -4
- package/dist/{typewriter-GHGwLOWk.js.map → typewriter-KPl30p8k.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-DsKadWmR.js → typography-D5Mf_MlW.js} +2 -2
- package/dist/{typography-DsKadWmR.js.map → typography-D5Mf_MlW.js.map} +1 -1
- package/dist/{typography-BIHYyI6-.cjs → typography-eyw2Cqu6.cjs} +2 -2
- package/dist/{typography-BIHYyI6-.cjs.map → typography-eyw2Cqu6.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/types/src/code-highlight/code-highlight.d.ts +1 -1
- package/types/src/index.d.ts +1 -0
- package/types/src/navigation-bar/index.d.ts +2 -0
- package/types/src/navigation-bar/navigation-bar-item.d.ts +94 -0
- package/types/src/navigation-bar/navigation-bar.d.ts +93 -0
- package/dist/avatar-3C1rkJ1T.cjs +0 -157
- package/dist/avatar-3C1rkJ1T.cjs.map +0 -1
- package/dist/avatar-CxDF7O9q.js +0 -609
- package/dist/avatar-CxDF7O9q.js.map +0 -1
- package/dist/tailwind.mixin-D2o72t31.cjs +0 -2
- package/dist/tailwind.mixin-nZk3QUQy.js +0 -43
|
@@ -2,7 +2,7 @@ import { timer as Cn } from "rxjs";
|
|
|
2
2
|
import "lit/directives/class-map.js";
|
|
3
3
|
import "lit/directives/style-map.js";
|
|
4
4
|
import { property as Q, state as on, customElement as cn } from "lit/decorators.js";
|
|
5
|
-
import { T as ln } from "./tailwind.mixin-
|
|
5
|
+
import { T as ln } from "./tailwind.mixin-Dj-xh5c5.js";
|
|
6
6
|
import { css as dn, html as Oe } from "lit";
|
|
7
7
|
import { g as Bn } from "./_commonjsHelpers-Dw9sPFZy.js";
|
|
8
8
|
import { unsafeHTML as $n } from "lit/directives/unsafe-html.js";
|
|
@@ -182,19 +182,19 @@ function Dn() {
|
|
|
182
182
|
u.contains.push({ scope: "doctag", begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/, excludeBegin: !0, relevance: 0 });
|
|
183
183
|
const N = G("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
|
|
184
184
|
return u.contains.push({ begin: D(/[ ]+/, "(", N, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), u;
|
|
185
|
-
}, _e = ce("//", "$"), pe = ce("/\\*", "\\*/"), Ae = ce("#", "$"), L = { scope: "number", begin: Z, relevance: 0 }, ne = { scope: "number", begin: Ee, relevance: 0 }, te = { scope: "number", begin: oe, relevance: 0 }, se = { scope: "regexp", begin: /\/(?=[^/\n]*\/)/, end: /\/[gimuy]*/, contains: [ee, { begin: /\[/, end: /\]/, relevance: 0, contains: [ee] }] }, ae = { scope: "title", begin: re, relevance: 0 },
|
|
185
|
+
}, _e = ce("//", "$"), pe = ce("/\\*", "\\*/"), Ae = ce("#", "$"), L = { scope: "number", begin: Z, relevance: 0 }, ne = { scope: "number", begin: Ee, relevance: 0 }, te = { scope: "number", begin: oe, relevance: 0 }, se = { scope: "regexp", begin: /\/(?=[^/\n]*\/)/, end: /\/[gimuy]*/, contains: [ee, { begin: /\[/, end: /\]/, relevance: 0, contains: [ee] }] }, ae = { scope: "title", begin: re, relevance: 0 }, me = { scope: "title", begin: X, relevance: 0 }, be = { begin: "\\.\\s*" + X, relevance: 0 };
|
|
186
186
|
var le = Object.freeze({ __proto__: null, APOS_STRING_MODE: xe, BACKSLASH_ESCAPE: ee, BINARY_NUMBER_MODE: te, BINARY_NUMBER_RE: oe, COMMENT: ce, C_BLOCK_COMMENT_MODE: pe, C_LINE_COMMENT_MODE: _e, C_NUMBER_MODE: ne, C_NUMBER_RE: Ee, END_SAME_AS_BEGIN: function(e) {
|
|
187
187
|
return Object.assign(e, { "on:begin": (n, s) => {
|
|
188
188
|
s.data._beginMatch = n[1];
|
|
189
189
|
}, "on:end": (n, s) => {
|
|
190
190
|
s.data._beginMatch !== n[1] && s.ignoreMatch();
|
|
191
191
|
} });
|
|
192
|
-
}, HASH_COMMENT_MODE: Ae, IDENT_RE: re, MATCH_NOTHING_RE: /\b\B/, METHOD_GUARD:
|
|
192
|
+
}, HASH_COMMENT_MODE: Ae, IDENT_RE: re, MATCH_NOTHING_RE: /\b\B/, METHOD_GUARD: be, NUMBER_MODE: L, NUMBER_RE: Z, PHRASAL_WORDS_MODE: { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, QUOTE_STRING_MODE: he, REGEXP_MODE: se, RE_STARTERS_RE: "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", SHEBANG: (e = {}) => {
|
|
193
193
|
const n = /^#![ ]*\//;
|
|
194
194
|
return e.binary && (e.begin = D(n, /.*\b/, e.binary, /\b.*/)), d({ scope: "meta", begin: n, end: /$/, relevance: 0, "on:begin": (s, u) => {
|
|
195
195
|
s.index !== 0 && u.ignoreMatch();
|
|
196
196
|
} }, e);
|
|
197
|
-
}, TITLE_MODE: ae, UNDERSCORE_IDENT_RE: X, UNDERSCORE_TITLE_MODE:
|
|
197
|
+
}, TITLE_MODE: ae, UNDERSCORE_IDENT_RE: X, UNDERSCORE_TITLE_MODE: me });
|
|
198
198
|
function Se(e, n) {
|
|
199
199
|
e.input[e.index - 1] === "." && n.ignoreMatch();
|
|
200
200
|
}
|
|
@@ -354,28 +354,28 @@ function Dn() {
|
|
|
354
354
|
function T(c) {
|
|
355
355
|
return l.noHighlightRe.test(c);
|
|
356
356
|
}
|
|
357
|
-
function R(c,
|
|
357
|
+
function R(c, m, E) {
|
|
358
358
|
let C = "", M = "";
|
|
359
|
-
typeof
|
|
360
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C =
|
|
359
|
+
typeof m == "object" ? (C = c, E = m.ignoreIllegals, M = m.language) : (ve("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ve("10.7.0", `Please use highlight(code, options) instead.
|
|
360
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = m), E === void 0 && (E = !0);
|
|
361
361
|
const B = { code: C, language: M };
|
|
362
362
|
je("before:highlight", B);
|
|
363
363
|
const P = B.result ? B.result : A(B.language, B.code, E);
|
|
364
364
|
return P.code = B.code, je("after:highlight", P), P;
|
|
365
365
|
}
|
|
366
|
-
function A(c,
|
|
366
|
+
function A(c, m, E, C) {
|
|
367
367
|
const M = /* @__PURE__ */ Object.create(null);
|
|
368
368
|
function B(r, g) {
|
|
369
369
|
return r.keywords[g];
|
|
370
370
|
}
|
|
371
371
|
function P() {
|
|
372
|
-
if (!
|
|
372
|
+
if (!b.keywords) return void $.addText(_);
|
|
373
373
|
let r = 0;
|
|
374
|
-
|
|
375
|
-
let g =
|
|
374
|
+
b.keywordPatternRe.lastIndex = 0;
|
|
375
|
+
let g = b.keywordPatternRe.exec(_), x = "";
|
|
376
376
|
for (; g; ) {
|
|
377
377
|
x += _.substring(r, g.index);
|
|
378
|
-
const v = J.case_insensitive ? g[0].toLowerCase() : g[0], O = B(
|
|
378
|
+
const v = J.case_insensitive ? g[0].toLowerCase() : g[0], O = B(b, v);
|
|
379
379
|
if (O) {
|
|
380
380
|
const [I, ye] = O;
|
|
381
381
|
if ($.addText(x), x = "", M[v] = (M[v] || 0) + 1, M[v] <= 7 && (Ie += ye), I.startsWith("_")) x += g[0];
|
|
@@ -384,19 +384,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
384
384
|
k(g[0], Pe);
|
|
385
385
|
}
|
|
386
386
|
} else x += g[0];
|
|
387
|
-
r =
|
|
387
|
+
r = b.keywordPatternRe.lastIndex, g = b.keywordPatternRe.exec(_);
|
|
388
388
|
}
|
|
389
389
|
x += _.substring(r), $.addText(x);
|
|
390
390
|
}
|
|
391
391
|
function H() {
|
|
392
|
-
|
|
392
|
+
b.subLanguage != null ? function() {
|
|
393
393
|
if (_ === "") return;
|
|
394
394
|
let r = null;
|
|
395
|
-
if (typeof
|
|
396
|
-
if (!n[
|
|
397
|
-
r = A(
|
|
398
|
-
} else r = de(_,
|
|
399
|
-
|
|
395
|
+
if (typeof b.subLanguage == "string") {
|
|
396
|
+
if (!n[b.subLanguage]) return void $.addText(_);
|
|
397
|
+
r = A(b.subLanguage, _, !0, nn[b.subLanguage]), nn[b.subLanguage] = r._top;
|
|
398
|
+
} else r = de(_, b.subLanguage.length ? b.subLanguage : null);
|
|
399
|
+
b.relevance > 0 && (Ie += r.relevance), $.t(r._emitter, r.language);
|
|
400
400
|
}() : P(), _ = "";
|
|
401
401
|
}
|
|
402
402
|
function k(r, g) {
|
|
@@ -415,7 +415,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
function Qe(r, g) {
|
|
418
|
-
return r.scope && typeof r.scope == "string" && $.openNode(J.classNameAliases[r.scope] || r.scope), r.beginScope && (r.beginScope._wrap ? (k(_, J.classNameAliases[r.beginScope._wrap] || r.beginScope._wrap), _ = "") : r.beginScope._multi && (q(r.beginScope, g), _ = "")),
|
|
418
|
+
return r.scope && typeof r.scope == "string" && $.openNode(J.classNameAliases[r.scope] || r.scope), r.beginScope && (r.beginScope._wrap ? (k(_, J.classNameAliases[r.beginScope._wrap] || r.beginScope._wrap), _ = "") : r.beginScope._multi && (q(r.beginScope, g), _ = "")), b = Object.create(r, { parent: { value: b } }), b;
|
|
419
419
|
}
|
|
420
420
|
function Ye(r, g, x) {
|
|
421
421
|
let v = function(O, I) {
|
|
@@ -435,16 +435,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
435
435
|
if (r.endsWithParent) return Ye(r.parent, g, x);
|
|
436
436
|
}
|
|
437
437
|
function Tn(r) {
|
|
438
|
-
return
|
|
438
|
+
return b.matcher.regexIndex === 0 ? (_ += r[0], 1) : (De = !0, 0);
|
|
439
439
|
}
|
|
440
440
|
function In(r) {
|
|
441
|
-
const g = r[0], x =
|
|
441
|
+
const g = r[0], x = m.substring(r.index), v = Ye(b, r, x);
|
|
442
442
|
if (!v) return We;
|
|
443
|
-
const O =
|
|
444
|
-
|
|
443
|
+
const O = b;
|
|
444
|
+
b.endScope && b.endScope._wrap ? (H(), k(g, b.endScope._wrap)) : b.endScope && b.endScope._multi ? (H(), q(b.endScope, r)) : O.skip ? _ += g : (O.returnEnd || O.excludeEnd || (_ += g), H(), O.excludeEnd && (_ = g));
|
|
445
445
|
do
|
|
446
|
-
|
|
447
|
-
while (
|
|
446
|
+
b.scope && $.closeNode(), b.skip || b.subLanguage || (Ie += b.relevance), b = b.parent;
|
|
447
|
+
while (b !== v.parent);
|
|
448
448
|
return v.starts && Qe(v.starts, r), O.returnEnd ? 0 : g.length;
|
|
449
449
|
}
|
|
450
450
|
let Te = {};
|
|
@@ -452,7 +452,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
452
452
|
const x = g && g[0];
|
|
453
453
|
if (_ += r, x == null) return H(), 0;
|
|
454
454
|
if (Te.type === "begin" && g.type === "end" && Te.index === g.index && x === "") {
|
|
455
|
-
if (_ +=
|
|
455
|
+
if (_ += m.slice(g.index, g.index + 1), !N) {
|
|
456
456
|
const v = new Error(`0 width match regex (${c})`);
|
|
457
457
|
throw v.languageName = c, v.badRule = Te.rule, v;
|
|
458
458
|
}
|
|
@@ -464,8 +464,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
464
464
|
return I.skip ? _ += O : (I.excludeBegin && (_ += O), H(), I.returnBegin || I.excludeBegin || (_ = O)), Qe(I, v), I.returnBegin ? 0 : O.length;
|
|
465
465
|
}(g);
|
|
466
466
|
if (g.type === "illegal" && !E) {
|
|
467
|
-
const v = new Error('Illegal lexeme "' + x + '" for mode "' + (
|
|
468
|
-
throw v.mode =
|
|
467
|
+
const v = new Error('Illegal lexeme "' + x + '" for mode "' + (b.scope || "<unnamed>") + '"');
|
|
468
|
+
throw v.mode = b, v;
|
|
469
469
|
}
|
|
470
470
|
if (g.type === "end") {
|
|
471
471
|
const v = In(g);
|
|
@@ -480,39 +480,39 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
480
480
|
const J = ge(c);
|
|
481
481
|
if (!J) throw i.replace("{}", c), new Error('Unknown language: "' + c + '"');
|
|
482
482
|
const Ln = Mn(J);
|
|
483
|
-
let $e = "",
|
|
483
|
+
let $e = "", b = C || Ln;
|
|
484
484
|
const nn = {}, $ = new l.o(l);
|
|
485
485
|
(function() {
|
|
486
486
|
const r = [];
|
|
487
|
-
for (let g =
|
|
487
|
+
for (let g = b; g !== J; g = g.parent) g.scope && r.unshift(g.scope);
|
|
488
488
|
r.forEach((g) => $.openNode(g));
|
|
489
489
|
})();
|
|
490
490
|
let _ = "", Ie = 0, fe = 0, ze = 0, De = !1;
|
|
491
491
|
try {
|
|
492
|
-
if (J.l) J.l(
|
|
492
|
+
if (J.l) J.l(m, $);
|
|
493
493
|
else {
|
|
494
|
-
for (
|
|
495
|
-
ze++, De ? De = !1 :
|
|
496
|
-
const r =
|
|
494
|
+
for (b.matcher.considerAll(); ; ) {
|
|
495
|
+
ze++, De ? De = !1 : b.matcher.considerAll(), b.matcher.lastIndex = fe;
|
|
496
|
+
const r = b.matcher.exec(m);
|
|
497
497
|
if (!r) break;
|
|
498
|
-
const g = en(
|
|
498
|
+
const g = en(m.substring(fe, r.index), r);
|
|
499
499
|
fe = r.index + g;
|
|
500
500
|
}
|
|
501
|
-
en(
|
|
501
|
+
en(m.substring(fe));
|
|
502
502
|
}
|
|
503
|
-
return $.finalize(), $e = $.toHTML(), { language: c, value: $e, relevance: Ie, illegal: !1, _emitter: $, _top:
|
|
503
|
+
return $.finalize(), $e = $.toHTML(), { language: c, value: $e, relevance: Ie, illegal: !1, _emitter: $, _top: b };
|
|
504
504
|
} catch (r) {
|
|
505
|
-
if (r.message && r.message.includes("Illegal")) return { language: c, value: Ce(
|
|
506
|
-
if (N) return { language: c, value: Ce(
|
|
505
|
+
if (r.message && r.message.includes("Illegal")) return { language: c, value: Ce(m), illegal: !0, relevance: 0, _illegalBy: { message: r.message, index: fe, context: m.slice(fe - 100, fe + 100), mode: r.mode, resultSoFar: $e }, _emitter: $ };
|
|
506
|
+
if (N) return { language: c, value: Ce(m), illegal: !1, relevance: 0, errorRaised: r, _emitter: $, _top: b };
|
|
507
507
|
throw r;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function de(c,
|
|
511
|
-
|
|
510
|
+
function de(c, m) {
|
|
511
|
+
m = m || l.languages || Object.keys(n);
|
|
512
512
|
const E = function(k) {
|
|
513
513
|
const q = { value: Ce(k), illegal: !1, relevance: 0, _top: p, _emitter: new l.o(l) };
|
|
514
514
|
return q._emitter.addText(k), q;
|
|
515
|
-
}(c), C =
|
|
515
|
+
}(c), C = m.filter(ge).filter(Ve).map((k) => A(k, c, !1));
|
|
516
516
|
C.unshift(E);
|
|
517
517
|
const M = C.sort((k, q) => {
|
|
518
518
|
if (k.relevance !== q.relevance) return q.relevance - k.relevance;
|
|
@@ -525,7 +525,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
525
525
|
return H.secondBest = P, H;
|
|
526
526
|
}
|
|
527
527
|
function Be(c) {
|
|
528
|
-
let
|
|
528
|
+
let m = null;
|
|
529
529
|
const E = function(B) {
|
|
530
530
|
let P = B.className + " ";
|
|
531
531
|
P += B.parentNode ? B.parentNode.className : "";
|
|
@@ -539,8 +539,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
539
539
|
if (T(E) || (je("before:highlightElement", { el: c, language: E }), c.dataset.highlighted)) return;
|
|
540
540
|
if (c.children.length > 0 && (l.ignoreUnescapedHTML, l.throwUnescapedHTML))
|
|
541
541
|
throw new jn("One of your code blocks includes unescaped HTML.", c.innerHTML);
|
|
542
|
-
|
|
543
|
-
const C =
|
|
542
|
+
m = c;
|
|
543
|
+
const C = m.textContent, M = E ? R(C, { language: E, ignoreIllegals: !0 }) : de(C);
|
|
544
544
|
c.innerHTML = M.value, c.dataset.highlighted = "yes", function(B, P, H) {
|
|
545
545
|
const k = P && s[P] || H;
|
|
546
546
|
B.classList.add("hljs"), B.classList.add(`language-${k}`);
|
|
@@ -556,19 +556,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
556
556
|
function ge(c) {
|
|
557
557
|
return c = (c || "").toLowerCase(), n[c] || n[s[c]];
|
|
558
558
|
}
|
|
559
|
-
function Je(c, { languageName:
|
|
559
|
+
function Je(c, { languageName: m }) {
|
|
560
560
|
typeof c == "string" && (c = [c]), c.forEach((E) => {
|
|
561
|
-
s[E.toLowerCase()] =
|
|
561
|
+
s[E.toLowerCase()] = m;
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
564
|
function Ve(c) {
|
|
565
|
-
const
|
|
566
|
-
return
|
|
565
|
+
const m = ge(c);
|
|
566
|
+
return m && !m.disableAutodetect;
|
|
567
567
|
}
|
|
568
|
-
function je(c,
|
|
568
|
+
function je(c, m) {
|
|
569
569
|
const E = c;
|
|
570
570
|
u.forEach(function(C) {
|
|
571
|
-
C[E] && C[E](
|
|
571
|
+
C[E] && C[E](m);
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
574
|
Object.assign(e, { highlight: R, highlightAuto: de, highlightAll: Me, highlightElement: Be, highlightBlock: function(c) {
|
|
@@ -579,31 +579,31 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
579
579
|
Me(), ve("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
580
580
|
}, initHighlightingOnLoad: function() {
|
|
581
581
|
Me(), ve("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
582
|
-
}, registerLanguage: function(c,
|
|
582
|
+
}, registerLanguage: function(c, m) {
|
|
583
583
|
let E = null;
|
|
584
584
|
try {
|
|
585
|
-
E =
|
|
585
|
+
E = m(e);
|
|
586
586
|
} catch (C) {
|
|
587
587
|
if ("Language definition for '{}' could not be registered.".replace("{}", c), !N) throw C;
|
|
588
588
|
E = p;
|
|
589
589
|
}
|
|
590
|
-
E.name || (E.name = c), n[c] = E, E.rawDefinition =
|
|
590
|
+
E.name || (E.name = c), n[c] = E, E.rawDefinition = m.bind(null, e), E.aliases && Je(E.aliases, { languageName: c });
|
|
591
591
|
}, unregisterLanguage: function(c) {
|
|
592
592
|
delete n[c];
|
|
593
|
-
for (const
|
|
593
|
+
for (const m of Object.keys(s)) s[m] === c && delete s[m];
|
|
594
594
|
}, listLanguages: function() {
|
|
595
595
|
return Object.keys(n);
|
|
596
596
|
}, getLanguage: ge, registerAliases: Je, autoDetection: Ve, inherit: Ke, addPlugin: function(c) {
|
|
597
|
-
(function(
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
}),
|
|
601
|
-
|
|
597
|
+
(function(m) {
|
|
598
|
+
m["before:highlightBlock"] && !m["before:highlightElement"] && (m["before:highlightElement"] = (E) => {
|
|
599
|
+
m["before:highlightBlock"](Object.assign({ block: E.el }, E));
|
|
600
|
+
}), m["after:highlightBlock"] && !m["after:highlightElement"] && (m["after:highlightElement"] = (E) => {
|
|
601
|
+
m["after:highlightBlock"](Object.assign({ block: E.el }, E));
|
|
602
602
|
});
|
|
603
603
|
})(c), u.push(c);
|
|
604
604
|
}, removePlugin: function(c) {
|
|
605
|
-
const
|
|
606
|
-
|
|
605
|
+
const m = u.indexOf(c);
|
|
606
|
+
m !== -1 && u.splice(m, 1);
|
|
607
607
|
} }), e.debugMode = function() {
|
|
608
608
|
N = !1;
|
|
609
609
|
}, e.safeMode = function() {
|
|
@@ -614,21 +614,21 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = c, C = b), E ===
|
|
|
614
614
|
}, we = Xe({});
|
|
615
615
|
return we.newInstance = () => Xe({}), He = we, we.HighlightJS = we, we.default = we, He;
|
|
616
616
|
}
|
|
617
|
-
const ue = Bn(Dn()), an = "[A-Za-z$_][0-9A-Za-z$_]*", Pn = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], Hn = ["true", "false", "null", "undefined", "NaN", "Infinity"], gn = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], un = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], hn = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], Un = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], Zn = [].concat(hn, gn, un), Le = "[A-Za-z$_][0-9A-Za-z$_]*", pn = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"],
|
|
617
|
+
const ue = Bn(Dn()), an = "[A-Za-z$_][0-9A-Za-z$_]*", Pn = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], Hn = ["true", "false", "null", "undefined", "NaN", "Infinity"], gn = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], un = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], hn = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], Un = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], Zn = [].concat(hn, gn, un), Le = "[A-Za-z$_][0-9A-Za-z$_]*", pn = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], mn = ["true", "false", "null", "undefined", "NaN", "Infinity"], bn = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], fn = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], yn = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], En = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], vn = [].concat(yn, bn, fn);
|
|
618
618
|
function Fn(t) {
|
|
619
619
|
const o = t.regex, a = Le, d = "<>", y = "</>", h = { begin: /<[A-Za-z0-9\\._:-]+/, end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: (L, ne) => {
|
|
620
620
|
const te = L[0].length + L.index, se = L.input[te];
|
|
621
621
|
if (se === "<" || se === ",") return void ne.ignoreMatch();
|
|
622
622
|
let ae;
|
|
623
|
-
se === ">" && (((
|
|
624
|
-
const Se = "</" +
|
|
625
|
-
return
|
|
623
|
+
se === ">" && (((be, { after: le }) => {
|
|
624
|
+
const Se = "</" + be[0].slice(1);
|
|
625
|
+
return be.input.indexOf(Se, le) !== -1;
|
|
626
626
|
})(L, { after: te }) || ne.ignoreMatch());
|
|
627
|
-
const
|
|
628
|
-
((ae =
|
|
629
|
-
} }, f = { $pattern: Le, keyword: pn, literal:
|
|
627
|
+
const me = L.input.substring(te);
|
|
628
|
+
((ae = me.match(/^\s*=/)) || (ae = me.match(/^\s+extends\s+/)) && ae.index === 0) && ne.ignoreMatch();
|
|
629
|
+
} }, f = { $pattern: Le, keyword: pn, literal: mn, built_in: vn, "variable.language": En }, w = "[0-9](_?[0-9])*", S = `\\.(${w})`, z = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", F = { className: "number", variants: [{ begin: `(\\b(${z})((${S})|\\.)?|(${S}))[eE][+-]?(${w})\\b` }, { begin: `\\b(${z})\\b((${S})\\b|\\.)?|(${S})\\b` }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, j = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: f, contains: [] }, U = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, j], subLanguage: "xml" } }, D = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, j], subLanguage: "css" } }, G = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, j], subLanguage: "graphql" } }, K = { className: "string", begin: "`", end: "`", contains: [t.BACKSLASH_ESCAPE, j] }, W = { className: "comment", variants: [t.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: a + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), t.C_BLOCK_COMMENT_MODE, t.C_LINE_COMMENT_MODE] }, Y = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, D, G, K, { match: /\$\d+/ }, F];
|
|
630
630
|
j.contains = Y.concat({ begin: /\{/, end: /\}/, keywords: f, contains: ["self"].concat(Y) });
|
|
631
|
-
const re = [].concat(W, j.contains), X = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: f, contains: ["self"].concat(re) }]), Z = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: f, contains: X }, Ee = { variants: [{ match: [/class/, /\s+/, a, /\s+/, /extends/, /\s+/, o.concat(a, "(", o.concat(/\./, a), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, a], scope: { 1: "keyword", 3: "title.class" } }] }, oe = { relevance: 0, match: o.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [...
|
|
631
|
+
const re = [].concat(W, j.contains), X = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: f, contains: ["self"].concat(re) }]), Z = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: f, contains: X }, Ee = { variants: [{ match: [/class/, /\s+/, a, /\s+/, /extends/, /\s+/, o.concat(a, "(", o.concat(/\./, a), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, a], scope: { 1: "keyword", 3: "title.class" } }] }, oe = { relevance: 0, match: o.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [...bn, ...fn] } }, ee = { variants: [{ match: [/function/, /\s+/, a, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [Z], illegal: /%/ }, xe = { match: o.concat(/\b/, (he = [...yn, "super", "import"].map((L) => `${L}\\s*\\(`), o.concat("(?!", he.join("|"), ")")), a, o.lookahead(/\s*\(/)), className: "title.function", relevance: 0 };
|
|
632
632
|
var he;
|
|
633
633
|
const ce = { begin: o.concat(/\./, o.lookahead(o.concat(a, /(?![0-9A-Za-z$_(])/))), end: a, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, _e = { match: [/get|set/, /\s+/, a, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, Z] }, pe = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + t.UNDERSCORE_IDENT_RE + ")\\s*=>", Ae = { match: [/const|var|let/, /\s+/, a, /\s*/, /=\s*/, /(async\s*)?/, o.lookahead(pe)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [Z] };
|
|
634
634
|
return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: f, exports: { PARAMS_CONTAINS: X, CLASS_REFERENCE: oe }, illegal: /#(?![$_A-z])/, contains: [t.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, D, G, K, W, { match: /\$\d+/ }, F, oe, { scope: "attr", match: a + o.lookahead(":"), relevance: 0 }, Ae, { begin: "(" + t.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [W, t.REGEXP_MODE, { className: "function", begin: pe, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: t.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: f, contains: X }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: d, end: y }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: h.begin, "on:begin": h.isTrulyOpeningTag, end: h.end }], subLanguage: "xml", contains: [{ begin: h.begin, end: h.end, skip: !0, contains: ["self"] }] }] }, ee, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + t.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [Z, t.inherit(t.TITLE_MODE, { begin: a, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, ce, { match: "\\$" + a, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [Z] }, xe, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, Ee, _e, { match: /\$[(.]/ }] };
|
|
@@ -646,12 +646,12 @@ ue.registerLanguage("javascript", function(t) {
|
|
|
646
646
|
const te = L[0].length + L.index, se = L.input[te];
|
|
647
647
|
if (se === "<" || se === ",") return void ne.ignoreMatch();
|
|
648
648
|
let ae;
|
|
649
|
-
se === ">" && (((
|
|
650
|
-
const Se = "</" +
|
|
651
|
-
return
|
|
649
|
+
se === ">" && (((be, { after: le }) => {
|
|
650
|
+
const Se = "</" + be[0].slice(1);
|
|
651
|
+
return be.input.indexOf(Se, le) !== -1;
|
|
652
652
|
})(L, { after: te }) || ne.ignoreMatch());
|
|
653
|
-
const
|
|
654
|
-
((ae =
|
|
653
|
+
const me = L.input.substring(te);
|
|
654
|
+
((ae = me.match(/^\s*=/)) || (ae = me.match(/^\s+extends\s+/)) && ae.index === 0) && ne.ignoreMatch();
|
|
655
655
|
} }, f = { $pattern: an, keyword: Pn, literal: Hn, built_in: Zn, "variable.language": Un }, w = "[0-9](_?[0-9])*", S = `\\.(${w})`, z = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", F = { className: "number", variants: [{ begin: `(\\b(${z})((${S})|\\.)?|(${S}))[eE][+-]?(${w})\\b` }, { begin: `\\b(${z})\\b((${S})\\b|\\.)?|(${S})\\b` }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, j = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: f, contains: [] }, U = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, j], subLanguage: "xml" } }, D = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, j], subLanguage: "css" } }, G = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, j], subLanguage: "graphql" } }, K = { className: "string", begin: "`", end: "`", contains: [t.BACKSLASH_ESCAPE, j] }, W = { className: "comment", variants: [t.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: a + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), t.C_BLOCK_COMMENT_MODE, t.C_LINE_COMMENT_MODE] }, Y = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, D, G, K, { match: /\$\d+/ }, F];
|
|
656
656
|
j.contains = Y.concat({ begin: /\{/, end: /\}/, keywords: f, contains: ["self"].concat(Y) });
|
|
657
657
|
const re = [].concat(W, j.contains), X = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: f, contains: ["self"].concat(re) }]), Z = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: f, contains: X }, Ee = { variants: [{ match: [/class/, /\s+/, a, /\s+/, /extends/, /\s+/, o.concat(a, "(", o.concat(/\./, a), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, a], scope: { 1: "keyword", 3: "title.class" } }] }, oe = { relevance: 0, match: o.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [...gn, ...un] } }, ee = { variants: [{ match: [/function/, /\s+/, a, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [Z], illegal: /%/ }, xe = { match: o.concat(/\b/, (he = [...hn, "super", "import"].map((L) => `${L}\\s*\\(`), o.concat("(?!", he.join("|"), ")")), a, o.lookahead(/\s*\(/)), className: "title.function", relevance: 0 };
|
|
@@ -659,7 +659,7 @@ ue.registerLanguage("javascript", function(t) {
|
|
|
659
659
|
const ce = { begin: o.concat(/\./, o.lookahead(o.concat(a, /(?![0-9A-Za-z$_(])/))), end: a, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, _e = { match: [/get|set/, /\s+/, a, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, Z] }, pe = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + t.UNDERSCORE_IDENT_RE + ")\\s*=>", Ae = { match: [/const|var|let/, /\s+/, a, /\s*/, /=\s*/, /(async\s*)?/, o.lookahead(pe)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [Z] };
|
|
660
660
|
return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: f, exports: { PARAMS_CONTAINS: X, CLASS_REFERENCE: oe }, illegal: /#(?![$_A-z])/, contains: [t.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, D, G, K, W, { match: /\$\d+/ }, F, oe, { scope: "attr", match: a + o.lookahead(":"), relevance: 0 }, Ae, { begin: "(" + t.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [W, t.REGEXP_MODE, { className: "function", begin: pe, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: t.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: f, contains: X }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: d, end: y }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: h.begin, "on:begin": h.isTrulyOpeningTag, end: h.end }], subLanguage: "xml", contains: [{ begin: h.begin, end: h.end, skip: !0, contains: ["self"] }] }] }, ee, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + t.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [Z, t.inherit(t.TITLE_MODE, { begin: a, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, ce, { match: "\\$" + a, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [Z] }, xe, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, Ee, _e, { match: /\$[(.]/ }] };
|
|
661
661
|
}), ue.registerLanguage("typescript", function(t) {
|
|
662
|
-
const o = t.regex, a = Fn(t), d = Le, y = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], h = { begin: [/namespace/, /\s+/, t.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, f = { beginKeywords: "interface", end: /\{/, excludeEnd: !0, keywords: { keyword: "interface extends", built_in: y }, contains: [a.exports.CLASS_REFERENCE] }, w = { $pattern: Le, keyword: pn.concat(["type", "interface", "public", "private", "protected", "implements", "declare", "abstract", "readonly", "enum", "override", "satisfies"]), literal:
|
|
662
|
+
const o = t.regex, a = Fn(t), d = Le, y = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], h = { begin: [/namespace/, /\s+/, t.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, f = { beginKeywords: "interface", end: /\{/, excludeEnd: !0, keywords: { keyword: "interface extends", built_in: y }, contains: [a.exports.CLASS_REFERENCE] }, w = { $pattern: Le, keyword: pn.concat(["type", "interface", "public", "private", "protected", "implements", "declare", "abstract", "readonly", "enum", "override", "satisfies"]), literal: mn, built_in: vn.concat(y), "variable.language": En }, S = { className: "meta", begin: "@" + d }, z = (U, D, G) => {
|
|
663
663
|
const K = U.contains.findIndex((W) => W.label === D);
|
|
664
664
|
if (K === -1) throw new Error("can not find mode to replace");
|
|
665
665
|
U.contains.splice(K, 1, G);
|
|
@@ -689,52 +689,60 @@ let V = class extends ln(dn`
|
|
|
689
689
|
overflow: hidden;
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
-
/*
|
|
692
|
+
/* Code block styling using schmancy color system */
|
|
693
693
|
.hljs {
|
|
694
694
|
display: block;
|
|
695
695
|
overflow-x: auto;
|
|
696
696
|
padding: 0.5em;
|
|
697
|
-
color:
|
|
698
|
-
background:
|
|
697
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
698
|
+
background: var(--md-sys-color-surface-container-lowest);
|
|
699
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
699
700
|
}
|
|
700
701
|
|
|
702
|
+
/* Comments and documentation */
|
|
701
703
|
.hljs-comment,
|
|
702
704
|
.hljs-quote {
|
|
703
|
-
color:
|
|
705
|
+
color: var(--md-sys-color-outline);
|
|
704
706
|
font-style: italic;
|
|
705
707
|
}
|
|
706
708
|
|
|
709
|
+
/* Keywords, doctags, formulas */
|
|
707
710
|
.hljs-doctag,
|
|
708
711
|
.hljs-keyword,
|
|
709
712
|
.hljs-formula {
|
|
710
|
-
color:
|
|
713
|
+
color: var(--md-sys-color-primary);
|
|
711
714
|
}
|
|
712
715
|
|
|
716
|
+
/* Tags, sections, names, deletions */
|
|
713
717
|
.hljs-section,
|
|
714
718
|
.hljs-name,
|
|
715
719
|
.hljs-selector-tag,
|
|
716
720
|
.hljs-deletion,
|
|
717
721
|
.hljs-subst {
|
|
718
|
-
color:
|
|
722
|
+
color: var(--md-sys-color-error);
|
|
719
723
|
}
|
|
720
724
|
|
|
725
|
+
/* Literals */
|
|
721
726
|
.hljs-literal {
|
|
722
|
-
color:
|
|
727
|
+
color: var(--md-sys-color-tertiary);
|
|
723
728
|
}
|
|
724
729
|
|
|
730
|
+
/* Strings, regex, additions */
|
|
725
731
|
.hljs-string,
|
|
726
732
|
.hljs-regexp,
|
|
727
733
|
.hljs-addition,
|
|
728
734
|
.hljs-attribute,
|
|
729
735
|
.hljs-meta-string {
|
|
730
|
-
color:
|
|
736
|
+
color: var(--md-sys-color-secondary);
|
|
731
737
|
}
|
|
732
738
|
|
|
739
|
+
/* Built-ins and class titles */
|
|
733
740
|
.hljs-built_in,
|
|
734
741
|
.hljs-class .hljs-title {
|
|
735
|
-
color:
|
|
742
|
+
color: var(--md-sys-color-tertiary);
|
|
736
743
|
}
|
|
737
744
|
|
|
745
|
+
/* Variables, attributes, types */
|
|
738
746
|
.hljs-attr,
|
|
739
747
|
.hljs-variable,
|
|
740
748
|
.hljs-template-variable,
|
|
@@ -743,16 +751,17 @@ let V = class extends ln(dn`
|
|
|
743
751
|
.hljs-selector-attr,
|
|
744
752
|
.hljs-selector-pseudo,
|
|
745
753
|
.hljs-number {
|
|
746
|
-
color:
|
|
754
|
+
color: var(--md-sys-color-on-surface);
|
|
747
755
|
}
|
|
748
756
|
|
|
757
|
+
/* Symbols, bullets, links, meta */
|
|
749
758
|
.hljs-symbol,
|
|
750
759
|
.hljs-bullet,
|
|
751
760
|
.hljs-link,
|
|
752
761
|
.hljs-meta,
|
|
753
762
|
.hljs-selector-id,
|
|
754
763
|
.hljs-title {
|
|
755
|
-
color:
|
|
764
|
+
color: var(--md-sys-color-secondary);
|
|
756
765
|
}
|
|
757
766
|
|
|
758
767
|
.hljs-emphasis {
|
|
@@ -767,7 +776,7 @@ let V = class extends ln(dn`
|
|
|
767
776
|
text-decoration: underline;
|
|
768
777
|
}
|
|
769
778
|
|
|
770
|
-
/*
|
|
779
|
+
/* Line features styling */
|
|
771
780
|
.code-with-lines {
|
|
772
781
|
background: transparent;
|
|
773
782
|
padding: 0;
|
|
@@ -776,10 +785,12 @@ let V = class extends ln(dn`
|
|
|
776
785
|
.code-line {
|
|
777
786
|
display: block;
|
|
778
787
|
padding-left: 0;
|
|
788
|
+
transition: background-color 0.2s ease;
|
|
779
789
|
}
|
|
780
790
|
|
|
781
791
|
.code-line.highlighted {
|
|
782
|
-
background-color:
|
|
792
|
+
background-color: var(--md-sys-color-primary-container);
|
|
793
|
+
opacity: 0.2;
|
|
783
794
|
}
|
|
784
795
|
|
|
785
796
|
.line-number {
|
|
@@ -787,7 +798,7 @@ let V = class extends ln(dn`
|
|
|
787
798
|
width: 3rem;
|
|
788
799
|
padding-right: 1rem;
|
|
789
800
|
text-align: right;
|
|
790
|
-
color:
|
|
801
|
+
color: var(--md-sys-color-outline);
|
|
791
802
|
user-select: none;
|
|
792
803
|
font-size: inherit;
|
|
793
804
|
}
|
|
@@ -852,40 +863,39 @@ let V = class extends ln(dn`
|
|
|
852
863
|
render() {
|
|
853
864
|
const t = this.lineNumbers || this.highlightLines ? "code-with-lines" : "hljs";
|
|
854
865
|
return Oe`
|
|
855
|
-
<schmancy-
|
|
856
|
-
<
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
</div>
|
|
866
|
-
<span class="text-xs font-medium text-surface-onVariant opacity-70 ml-2">
|
|
867
|
-
${this.getLanguageLabel()}
|
|
868
|
-
</span>
|
|
866
|
+
<schmancy-details>
|
|
867
|
+
<section slot="summary">
|
|
868
|
+
<!-- Header -->
|
|
869
|
+
<div class="flex items-center justify-between px-4 py-2"
|
|
870
|
+
style="background-color: var(--md-sys-color-surface-container); border-bottom: 1px solid var(--md-sys-color-outline-variant);">
|
|
871
|
+
<div class="flex items-center gap-2">
|
|
872
|
+
<div class="flex gap-1.5">
|
|
873
|
+
<div class="w-3 h-3 rounded-full opacity-60" style="background-color: var(--md-sys-color-error);"></div>
|
|
874
|
+
<div class="w-3 h-3 rounded-full opacity-60" style="background-color: var(--md-sys-color-tertiary);"></div>
|
|
875
|
+
<div class="w-3 h-3 rounded-full opacity-60" style="background-color: var(--md-sys-color-secondary);"></div>
|
|
869
876
|
</div>
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
size="sm"
|
|
874
|
-
@click=${this.copyCode}
|
|
875
|
-
class="transition-all"
|
|
876
|
-
>
|
|
877
|
-
<schmancy-icon size="16"> ${this.copied ? "check" : "content_copy"} </schmancy-icon>
|
|
878
|
-
<span class="ml-1">${this.copied ? "Copied!" : "Copy"}</span>
|
|
879
|
-
</schmancy-button>
|
|
880
|
-
` : ""}
|
|
877
|
+
<span class="text-xs font-medium opacity-70 ml-2" style="color: var(--md-sys-color-on-surface-variant);">
|
|
878
|
+
${this.getLanguageLabel()}
|
|
879
|
+
</span>
|
|
881
880
|
</div>
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
881
|
+
${this.copyButton ? Oe`
|
|
882
|
+
<schmancy-button
|
|
883
|
+
.variant="${this.copied ? "filled tonal" : "text"}"
|
|
884
|
+
size="sm"
|
|
885
|
+
@click=${this.copyCode}
|
|
886
|
+
class="transition-all"
|
|
887
|
+
>
|
|
888
|
+
<schmancy-icon size="16"> ${this.copied ? "check" : "content_copy"} </schmancy-icon>
|
|
889
|
+
<span class="ml-1">${this.copied ? "Copied!" : "Copy"}</span>
|
|
890
|
+
</schmancy-button>
|
|
891
|
+
` : ""}
|
|
886
892
|
</div>
|
|
887
|
-
</
|
|
888
|
-
|
|
893
|
+
</section>
|
|
894
|
+
<!-- Code -->
|
|
895
|
+
<div class="overflow-auto" style="${this.maxHeight ? `max-height: ${this.maxHeight}` : ""}">
|
|
896
|
+
<pre class="m-0"><code class="${t}">${$n(this.highlightedCode)}</code></pre>
|
|
897
|
+
</div>
|
|
898
|
+
</schmancy-details>
|
|
889
899
|
`;
|
|
890
900
|
}
|
|
891
901
|
};
|
|
@@ -955,4 +965,4 @@ export {
|
|
|
955
965
|
V as S,
|
|
956
966
|
Ne as a
|
|
957
967
|
};
|
|
958
|
-
//# sourceMappingURL=code-preview-
|
|
968
|
+
//# sourceMappingURL=code-preview-Y783aZ7J.js.map
|