@eluan/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +52 -0
- package/dist/accordion-BbMxlj3j.cjs +1 -0
- package/dist/accordion-CXia5iw_.js +28 -0
- package/dist/accordion.cjs +1 -0
- package/dist/accordion.d.ts +1 -0
- package/dist/accordion.js +8 -0
- package/dist/action-popover-Cbn19EbH.cjs +1 -0
- package/dist/action-popover-eGNn1j7S.js +22 -0
- package/dist/action-popover.cjs +1 -0
- package/dist/action-popover.d.ts +1 -0
- package/dist/action-popover.js +5 -0
- package/dist/aspect-ratio-DLyuGSGy.js +12 -0
- package/dist/aspect-ratio-sDUXILPX.cjs +1 -0
- package/dist/aspect-ratio.cjs +1 -0
- package/dist/aspect-ratio.d.ts +1 -0
- package/dist/aspect-ratio.js +5 -0
- package/dist/avatar-BsiJB5zR.js +134 -0
- package/dist/avatar-Caw6wXQN.cjs +1 -0
- package/dist/avatar.cjs +1 -0
- package/dist/avatar.d.ts +1 -0
- package/dist/avatar.js +10 -0
- package/dist/badge-BZli5zpU.js +117 -0
- package/dist/badge-CnJpMnon.cjs +1 -0
- package/dist/badge.cjs +1 -0
- package/dist/badge.d.ts +1 -0
- package/dist/badge.js +5 -0
- package/dist/banner-CqgXXNRv.js +112 -0
- package/dist/banner-D64jTKV8.cjs +1 -0
- package/dist/banner.cjs +1 -0
- package/dist/banner.d.ts +1 -0
- package/dist/banner.js +5 -0
- package/dist/breadcrumb-BPB6FOAt.js +56 -0
- package/dist/breadcrumb-CUJua1hE.cjs +1 -0
- package/dist/breadcrumb.cjs +1 -0
- package/dist/breadcrumb.d.ts +1 -0
- package/dist/breadcrumb.js +11 -0
- package/dist/button-CT6_HUIx.cjs +1 -0
- package/dist/button-nntae7sN.js +256 -0
- package/dist/button.cjs +1 -0
- package/dist/button.d.ts +1 -0
- package/dist/button.js +5 -0
- package/dist/calendar-BzinprHi.js +272 -0
- package/dist/calendar-DyIe52PQ.cjs +66 -0
- package/dist/calendar.cjs +1 -0
- package/dist/calendar.d.ts +1 -0
- package/dist/calendar.js +5 -0
- package/dist/card-80y0WWWV.js +70 -0
- package/dist/card-D57HaBr_.cjs +1 -0
- package/dist/card.cjs +1 -0
- package/dist/card.d.ts +1 -0
- package/dist/card.js +10 -0
- package/dist/carousel-D8FSc_tM.cjs +1 -0
- package/dist/carousel-UUulZiGR.js +125 -0
- package/dist/carousel.cjs +1 -0
- package/dist/carousel.d.ts +1 -0
- package/dist/carousel.js +9 -0
- package/dist/checkbox-CR6mntVh.js +10 -0
- package/dist/checkbox-Cx5qbEn4.cjs +1 -0
- package/dist/checkbox-group-B-mimaCX.js +81 -0
- package/dist/checkbox-group-iKPfMVTu.cjs +1 -0
- package/dist/checkbox-group.cjs +1 -0
- package/dist/checkbox-group.d.ts +1 -0
- package/dist/checkbox-group.js +7 -0
- package/dist/checkbox.cjs +1 -0
- package/dist/checkbox.d.ts +1 -0
- package/dist/checkbox.js +5 -0
- package/dist/code-block-BXOzo8zX.js +1335 -0
- package/dist/code-block-CH0gswm8.cjs +2 -0
- package/dist/code-block.cjs +1 -0
- package/dist/code-block.d.ts +1 -0
- package/dist/code-block.js +5 -0
- package/dist/collapsible-BUUUXTCi.cjs +1 -0
- package/dist/collapsible-hYY3yFPg.js +8 -0
- package/dist/collapsible.cjs +1 -0
- package/dist/collapsible.d.ts +1 -0
- package/dist/collapsible.js +7 -0
- package/dist/command-BWY863DY.cjs +1 -0
- package/dist/command-ButF6joJ.js +99 -0
- package/dist/command.cjs +1 -0
- package/dist/command.d.ts +1 -0
- package/dist/command.js +13 -0
- package/dist/components/accordion.d.ts +10 -0
- package/dist/components/action-popover.d.ts +20 -0
- package/dist/components/aspect-ratio.d.ts +5 -0
- package/dist/components/avatar.d.ts +26 -0
- package/dist/components/badge.d.ts +12 -0
- package/dist/components/banner.d.ts +13 -0
- package/dist/components/breadcrumb.d.ts +27 -0
- package/dist/components/button.d.ts +19 -0
- package/dist/components/calendar.d.ts +10 -0
- package/dist/components/card.d.ts +16 -0
- package/dist/components/carousel.d.ts +18 -0
- package/dist/components/checkbox-group.d.ts +23 -0
- package/dist/components/checkbox.d.ts +5 -0
- package/dist/components/code-block.d.ts +32 -0
- package/dist/components/collapsible.d.ts +5 -0
- package/dist/components/command.d.ts +57 -0
- package/dist/components/context-menu.d.ts +33 -0
- package/dist/components/credit-card-input.d.ts +27 -0
- package/dist/components/date-picker.d.ts +24 -0
- package/dist/components/datetime-picker.d.ts +11 -0
- package/dist/components/decimal-input.d.ts +41 -0
- package/dist/components/dialog.d.ts +25 -0
- package/dist/components/drawer.d.ts +33 -0
- package/dist/components/dropdown-menu.d.ts +34 -0
- package/dist/components/email-input.d.ts +7 -0
- package/dist/components/fieldset.d.ts +7 -0
- package/dist/components/file-input.d.ts +30 -0
- package/dist/components/footer.d.ts +38 -0
- package/dist/components/form-label.d.ts +16 -0
- package/dist/components/header-navigation.d.ts +18 -0
- package/dist/components/header.d.ts +1 -0
- package/dist/components/hover-card.d.ts +7 -0
- package/dist/components/input-otp.d.ts +23 -0
- package/dist/components/input.d.ts +19 -0
- package/dist/components/kbd.d.ts +20 -0
- package/dist/components/media.d.ts +17 -0
- package/dist/components/menubar.d.ts +36 -0
- package/dist/components/multi-select.d.ts +18 -0
- package/dist/components/navigation-drawer.d.ts +54 -0
- package/dist/components/navigation-menu.d.ts +18 -0
- package/dist/components/number-input.d.ts +13 -0
- package/dist/components/pagination.d.ts +40 -0
- package/dist/components/password-input.d.ts +14 -0
- package/dist/components/phone-input.d.ts +17 -0
- package/dist/components/popover.d.ts +8 -0
- package/dist/components/progress.d.ts +7 -0
- package/dist/components/radio-group.d.ts +7 -0
- package/dist/components/rich-text.d.ts +15 -0
- package/dist/components/scroll-area.d.ts +7 -0
- package/dist/components/search-input.d.ts +39 -0
- package/dist/components/select.d.ts +22 -0
- package/dist/components/separator.d.ts +6 -0
- package/dist/components/sheet.d.ts +27 -0
- package/dist/components/skeleton.d.ts +5 -0
- package/dist/components/slider.d.ts +5 -0
- package/dist/components/spinner.d.ts +7 -0
- package/dist/components/stepper.d.ts +21 -0
- package/dist/components/switch.d.ts +5 -0
- package/dist/components/table.d.ts +22 -0
- package/dist/components/tabs.d.ts +10 -0
- package/dist/components/textarea.d.ts +5 -0
- package/dist/components/time-input.d.ts +21 -0
- package/dist/components/timeline.d.ts +34 -0
- package/dist/components/toast.d.ts +4 -0
- package/dist/components/toggle-group.d.ts +14 -0
- package/dist/components/toggle.d.ts +10 -0
- package/dist/components/tooltip.d.ts +8 -0
- package/dist/components/tree-view.d.ts +19 -0
- package/dist/context-menu-DQh1EvFX.cjs +1 -0
- package/dist/context-menu-Da5JJFgE.js +95 -0
- package/dist/context-menu.cjs +1 -0
- package/dist/context-menu.d.ts +1 -0
- package/dist/context-menu.js +19 -0
- package/dist/credit-card-input-BRv7r_Z_.cjs +1 -0
- package/dist/credit-card-input-YutN_krQ.js +180 -0
- package/dist/credit-card-input.cjs +1 -0
- package/dist/credit-card-input.d.ts +1 -0
- package/dist/credit-card-input.js +8 -0
- package/dist/date-picker-DYsE7_v0.cjs +1 -0
- package/dist/date-picker-ioqGlU1x.js +55 -0
- package/dist/date-picker.cjs +1 -0
- package/dist/date-picker.d.ts +1 -0
- package/dist/date-picker.js +6 -0
- package/dist/datetime-picker-BGa-aOfq.cjs +1 -0
- package/dist/datetime-picker-CRVKsoKc.js +98 -0
- package/dist/datetime-picker.cjs +1 -0
- package/dist/datetime-picker.d.ts +1 -0
- package/dist/datetime-picker.js +5 -0
- package/dist/decimal-input-BAGAfAp7.js +177 -0
- package/dist/decimal-input-CtAZp5ka.cjs +1 -0
- package/dist/decimal-input.cjs +1 -0
- package/dist/decimal-input.d.ts +1 -0
- package/dist/decimal-input.js +9 -0
- package/dist/dialog-DAY0non_.js +59 -0
- package/dist/dialog-DaO5_1FE.cjs +1 -0
- package/dist/dialog.cjs +1 -0
- package/dist/dialog.d.ts +1 -0
- package/dist/dialog.js +14 -0
- package/dist/drawer-ChIEo1Vx.js +161 -0
- package/dist/drawer-DMmAzv-6.cjs +1 -0
- package/dist/drawer.cjs +1 -0
- package/dist/drawer.d.ts +1 -0
- package/dist/drawer.js +14 -0
- package/dist/dropdown-menu-BRhqJFtK.js +110 -0
- package/dist/dropdown-menu-CxRQEecr.cjs +1 -0
- package/dist/dropdown-menu.cjs +1 -0
- package/dist/dropdown-menu.d.ts +1 -0
- package/dist/dropdown-menu.js +19 -0
- package/dist/email-input-CiqmwAYT.cjs +1 -0
- package/dist/email-input-ZRXJoKUn.js +29 -0
- package/dist/email-input.cjs +1 -0
- package/dist/email-input.d.ts +1 -0
- package/dist/email-input.js +5 -0
- package/dist/fieldset-D-hGYILF.js +14 -0
- package/dist/fieldset-DAv2Ggd8.cjs +1 -0
- package/dist/fieldset.cjs +1 -0
- package/dist/fieldset.d.ts +1 -0
- package/dist/fieldset.js +7 -0
- package/dist/file-input-BGTrB0cs.cjs +1 -0
- package/dist/file-input-BLs5K_r2.js +227 -0
- package/dist/file-input.cjs +1 -0
- package/dist/file-input.d.ts +1 -0
- package/dist/file-input.js +9 -0
- package/dist/footer-OvNxNb2K.cjs +1 -0
- package/dist/footer-hjSI-aUh.js +117 -0
- package/dist/footer.cjs +1 -0
- package/dist/footer.d.ts +1 -0
- package/dist/footer.js +19 -0
- package/dist/form-label-5f53LEry.cjs +1 -0
- package/dist/form-label-Yt_CRHVE.js +42 -0
- package/dist/form-label.cjs +1 -0
- package/dist/form-label.d.ts +1 -0
- package/dist/form-label.js +8 -0
- package/dist/header-navigation-Kx7h7lMv.cjs +1 -0
- package/dist/header-navigation-_klqI2OP.js +145 -0
- package/dist/header-navigation.cjs +1 -0
- package/dist/header-navigation.d.ts +1 -0
- package/dist/header-navigation.js +5 -0
- package/dist/header.cjs +1 -0
- package/dist/header.d.ts +1 -0
- package/dist/header.js +5 -0
- package/dist/hover-card-B1c-blFU.js +15 -0
- package/dist/hover-card-DIvfJrUP.cjs +1 -0
- package/dist/hover-card.cjs +1 -0
- package/dist/hover-card.d.ts +1 -0
- package/dist/hover-card.js +7 -0
- package/dist/index.cjs +6 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.js +520 -0
- package/dist/input-CFzV2DMn.js +128 -0
- package/dist/input-CtFmiB4z.cjs +1 -0
- package/dist/input-otp-DK9DLJkj.cjs +1 -0
- package/dist/input-otp-aX3qLlEW.js +88 -0
- package/dist/input-otp.cjs +1 -0
- package/dist/input-otp.d.ts +1 -0
- package/dist/input-otp.js +8 -0
- package/dist/input.cjs +1 -0
- package/dist/input.d.ts +1 -0
- package/dist/input.js +5 -0
- package/dist/kbd-BDOIULN0.js +153 -0
- package/dist/kbd-CRXHjf__.cjs +1 -0
- package/dist/kbd.cjs +1 -0
- package/dist/kbd.d.ts +1 -0
- package/dist/kbd.js +10 -0
- package/dist/media-CNlM4uDT.cjs +1 -0
- package/dist/media-ChW2bsnq.js +158 -0
- package/dist/media.cjs +1 -0
- package/dist/media.d.ts +1 -0
- package/dist/media.js +7 -0
- package/dist/menubar-BYX0L59g.cjs +1 -0
- package/dist/menubar-Du-kLZh6.js +107 -0
- package/dist/menubar.cjs +1 -0
- package/dist/menubar.d.ts +1 -0
- package/dist/menubar.js +20 -0
- package/dist/multi-select-C3VuEz8X.js +70 -0
- package/dist/multi-select-_DYPhuhp.cjs +1 -0
- package/dist/multi-select.cjs +1 -0
- package/dist/multi-select.d.ts +1 -0
- package/dist/multi-select.js +5 -0
- package/dist/navigation-drawer-D--FbZEd.js +155 -0
- package/dist/navigation-drawer-WGKTRBl_.cjs +1 -0
- package/dist/navigation-drawer.cjs +1 -0
- package/dist/navigation-drawer.d.ts +1 -0
- package/dist/navigation-drawer.js +14 -0
- package/dist/navigation-menu-Cp5Qt84b.cjs +1 -0
- package/dist/navigation-menu-yQHp8kq5.js +49 -0
- package/dist/navigation-menu.cjs +1 -0
- package/dist/navigation-menu.d.ts +1 -0
- package/dist/navigation-menu.js +13 -0
- package/dist/number-input-BdkF_YEo.js +66 -0
- package/dist/number-input-emzdVMCg.cjs +1 -0
- package/dist/number-input.cjs +1 -0
- package/dist/number-input.d.ts +1 -0
- package/dist/number-input.js +5 -0
- package/dist/pagination-BiEchkN6.cjs +1 -0
- package/dist/pagination-CohVWKa8.js +136 -0
- package/dist/pagination.cjs +1 -0
- package/dist/pagination.d.ts +1 -0
- package/dist/pagination.js +11 -0
- package/dist/password-input-CnkiwWVo.cjs +1 -0
- package/dist/password-input-DCg5E__k.js +86 -0
- package/dist/password-input.cjs +1 -0
- package/dist/password-input.d.ts +1 -0
- package/dist/password-input.js +5 -0
- package/dist/phone-input-Brm07Ltw.cjs +1 -0
- package/dist/phone-input-DFq6toxM.js +51 -0
- package/dist/phone-input.cjs +1 -0
- package/dist/phone-input.d.ts +1 -0
- package/dist/phone-input.js +6 -0
- package/dist/popover-5z1it-o9.cjs +1 -0
- package/dist/popover-DQgrg789.js +65 -0
- package/dist/popover.cjs +1 -0
- package/dist/popover.d.ts +1 -0
- package/dist/popover.js +7 -0
- package/dist/progress-DpQjGEyn.cjs +1 -0
- package/dist/progress-Dz_it5I-.js +62 -0
- package/dist/progress.cjs +1 -0
- package/dist/progress.d.ts +1 -0
- package/dist/progress.js +5 -0
- package/dist/providers/create-theme.d.ts +49 -0
- package/dist/providers/eluan-provider.d.ts +56 -0
- package/dist/radio-group-DMocn_bO.cjs +1 -0
- package/dist/radio-group-dLbtpuHm.js +12 -0
- package/dist/radio-group.cjs +1 -0
- package/dist/radio-group.d.ts +1 -0
- package/dist/radio-group.js +6 -0
- package/dist/rich-text-B6Ogqw5B.cjs +73 -0
- package/dist/rich-text-DjthjUyA.js +192 -0
- package/dist/rich-text.cjs +1 -0
- package/dist/rich-text.d.ts +1 -0
- package/dist/rich-text.js +6 -0
- package/dist/scroll-area-CEjpWCN2.js +35 -0
- package/dist/scroll-area-DZbd7b5b.cjs +1 -0
- package/dist/scroll-area.cjs +1 -0
- package/dist/scroll-area.d.ts +1 -0
- package/dist/scroll-area.js +6 -0
- package/dist/search-input-Dme1Kg69.cjs +1 -0
- package/dist/search-input-Dy6kVsR6.js +193 -0
- package/dist/search-input.cjs +1 -0
- package/dist/search-input.d.ts +1 -0
- package/dist/search-input.js +7 -0
- package/dist/select-DikwRWF5.js +114 -0
- package/dist/select-VTNCKmzK.cjs +1 -0
- package/dist/select.cjs +1 -0
- package/dist/select.d.ts +1 -0
- package/dist/select.js +14 -0
- package/dist/separator-DISe3E9K.js +53 -0
- package/dist/separator-DWK3Xd7q.cjs +1 -0
- package/dist/separator.cjs +1 -0
- package/dist/separator.d.ts +1 -0
- package/dist/separator.js +5 -0
- package/dist/sheet-BQy30PDl.js +135 -0
- package/dist/sheet-DSAi4Blo.cjs +1 -0
- package/dist/sheet.cjs +1 -0
- package/dist/sheet.d.ts +1 -0
- package/dist/sheet.js +14 -0
- package/dist/skeleton-BPOckSeF.js +8 -0
- package/dist/skeleton-yXCPli60.cjs +1 -0
- package/dist/skeleton.cjs +1 -0
- package/dist/skeleton.d.ts +1 -0
- package/dist/skeleton.js +5 -0
- package/dist/slider-Bjxl7b91.cjs +1 -0
- package/dist/slider-DXZyL3ev.js +16 -0
- package/dist/slider.cjs +1 -0
- package/dist/slider.d.ts +1 -0
- package/dist/slider.js +5 -0
- package/dist/spinner-BidrZmnV.js +51 -0
- package/dist/spinner-_aMavekm.cjs +1 -0
- package/dist/spinner.cjs +1 -0
- package/dist/spinner.d.ts +1 -0
- package/dist/spinner.js +5 -0
- package/dist/stepper-BtepQViL.cjs +1 -0
- package/dist/stepper-C7g_AewR.js +144 -0
- package/dist/stepper.cjs +1 -0
- package/dist/stepper.d.ts +1 -0
- package/dist/stepper.js +6 -0
- package/dist/styles.css +2776 -0
- package/dist/switch-Bi_OIsAH.cjs +1 -0
- package/dist/switch-wMC6HqKA.js +9 -0
- package/dist/switch.cjs +1 -0
- package/dist/switch.d.ts +1 -0
- package/dist/switch.js +5 -0
- package/dist/table-DopzfXYj.js +101 -0
- package/dist/table-xNu_KUaU.cjs +1 -0
- package/dist/table.cjs +1 -0
- package/dist/table.d.ts +1 -0
- package/dist/table.js +12 -0
- package/dist/tabs-BLFvzL-o.cjs +1 -0
- package/dist/tabs-D-T4lTOx.js +22 -0
- package/dist/tabs.cjs +1 -0
- package/dist/tabs.d.ts +1 -0
- package/dist/tabs.js +8 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/textarea-DXUk1b_-.js +8 -0
- package/dist/textarea-Dl-daLHR.cjs +1 -0
- package/dist/textarea.cjs +1 -0
- package/dist/textarea.d.ts +1 -0
- package/dist/textarea.js +5 -0
- package/dist/time-input-Dhhuxwh1.cjs +1 -0
- package/dist/time-input-DpukiDy9.js +148 -0
- package/dist/time-input.cjs +1 -0
- package/dist/time-input.d.ts +1 -0
- package/dist/time-input.js +6 -0
- package/dist/timeline-1iqp4rUU.js +215 -0
- package/dist/timeline-Dpeps0L2.cjs +1 -0
- package/dist/timeline.cjs +1 -0
- package/dist/timeline.d.ts +1 -0
- package/dist/timeline.js +16 -0
- package/dist/toast-BK0ulAzi.cjs +1 -0
- package/dist/toast-hI3pdZ2X.js +25 -0
- package/dist/toast.cjs +1 -0
- package/dist/toast.d.ts +1 -0
- package/dist/toast.js +5 -0
- package/dist/toggle--M_Xcph3.js +74 -0
- package/dist/toggle-BUmAdWrJ.cjs +1 -0
- package/dist/toggle-group-CSWEdWiB.js +95 -0
- package/dist/toggle-group-CUL20lLE.cjs +1 -0
- package/dist/toggle-group.cjs +1 -0
- package/dist/toggle-group.d.ts +1 -0
- package/dist/toggle-group.js +6 -0
- package/dist/toggle.cjs +1 -0
- package/dist/toggle.d.ts +1 -0
- package/dist/toggle.js +5 -0
- package/dist/tooltip-BZYIVbFE.cjs +1 -0
- package/dist/tooltip-DTOC9Xwd.js +18 -0
- package/dist/tooltip.cjs +1 -0
- package/dist/tooltip.d.ts +1 -0
- package/dist/tooltip.js +8 -0
- package/dist/tree-view-BuhJmfCg.js +84 -0
- package/dist/tree-view-DsrzJV2W.cjs +1 -0
- package/dist/tree-view.cjs +1 -0
- package/dist/tree-view.d.ts +1 -0
- package/dist/tree-view.js +5 -0
- package/package.json +135 -0
|
@@ -0,0 +1,1335 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as T, jsx as f, Fragment as N } from "react/jsx-runtime";
|
|
3
|
+
import * as R from "react";
|
|
4
|
+
import * as O from "@stylexjs/stylex";
|
|
5
|
+
import y from "prismjs";
|
|
6
|
+
import { Check as w, Copy as k } from "lucide-react";
|
|
7
|
+
Prism.languages.javascript = Prism.languages.extend("clike", {
|
|
8
|
+
"class-name": [
|
|
9
|
+
Prism.languages.clike["class-name"],
|
|
10
|
+
{
|
|
11
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
|
|
12
|
+
lookbehind: !0
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
keyword: [
|
|
16
|
+
{
|
|
17
|
+
pattern: /((?:^|\})\s*)catch\b/,
|
|
18
|
+
lookbehind: !0
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
|
|
22
|
+
lookbehind: !0
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
|
|
26
|
+
function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
|
|
27
|
+
number: {
|
|
28
|
+
pattern: RegExp(
|
|
29
|
+
/(^|[^\w$])/.source + "(?:" + // constant
|
|
30
|
+
(/NaN|Infinity/.source + "|" + // binary integer
|
|
31
|
+
/0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
|
|
32
|
+
/0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
|
|
33
|
+
/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
|
|
34
|
+
/\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
|
|
35
|
+
/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
|
|
36
|
+
),
|
|
37
|
+
lookbehind: !0
|
|
38
|
+
},
|
|
39
|
+
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
|
|
40
|
+
});
|
|
41
|
+
Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;
|
|
42
|
+
Prism.languages.insertBefore("javascript", "keyword", {
|
|
43
|
+
regex: {
|
|
44
|
+
pattern: RegExp(
|
|
45
|
+
// lookbehind
|
|
46
|
+
// eslint-disable-next-line regexp/no-dupe-characters-character-class
|
|
47
|
+
/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + // Regex pattern:
|
|
48
|
+
// There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
|
|
49
|
+
// classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
|
|
50
|
+
// with the only syntax, so we have to define 2 different regex patterns.
|
|
51
|
+
/\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + // `v` flag syntax. This supports 3 levels of nested character classes.
|
|
52
|
+
/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + // lookahead
|
|
53
|
+
/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
|
|
54
|
+
),
|
|
55
|
+
lookbehind: !0,
|
|
56
|
+
greedy: !0,
|
|
57
|
+
inside: {
|
|
58
|
+
"regex-source": {
|
|
59
|
+
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
|
60
|
+
lookbehind: !0,
|
|
61
|
+
alias: "language-regex",
|
|
62
|
+
inside: Prism.languages.regex
|
|
63
|
+
},
|
|
64
|
+
"regex-delimiter": /^\/|\/$/,
|
|
65
|
+
"regex-flags": /^[a-z]+$/
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
// This must be declared before keyword because we use "function" inside the look-forward
|
|
69
|
+
"function-variable": {
|
|
70
|
+
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
|
|
71
|
+
alias: "function"
|
|
72
|
+
},
|
|
73
|
+
parameter: [
|
|
74
|
+
{
|
|
75
|
+
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
|
|
76
|
+
lookbehind: !0,
|
|
77
|
+
inside: Prism.languages.javascript
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
|
|
81
|
+
lookbehind: !0,
|
|
82
|
+
inside: Prism.languages.javascript
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
|
|
86
|
+
lookbehind: !0,
|
|
87
|
+
inside: Prism.languages.javascript
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
|
|
91
|
+
lookbehind: !0,
|
|
92
|
+
inside: Prism.languages.javascript
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
|
96
|
+
});
|
|
97
|
+
Prism.languages.insertBefore("javascript", "string", {
|
|
98
|
+
hashbang: {
|
|
99
|
+
pattern: /^#!.*/,
|
|
100
|
+
greedy: !0,
|
|
101
|
+
alias: "comment"
|
|
102
|
+
},
|
|
103
|
+
"template-string": {
|
|
104
|
+
pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
|
|
105
|
+
greedy: !0,
|
|
106
|
+
inside: {
|
|
107
|
+
"template-punctuation": {
|
|
108
|
+
pattern: /^`|`$/,
|
|
109
|
+
alias: "string"
|
|
110
|
+
},
|
|
111
|
+
interpolation: {
|
|
112
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
113
|
+
lookbehind: !0,
|
|
114
|
+
inside: {
|
|
115
|
+
"interpolation-punctuation": {
|
|
116
|
+
pattern: /^\$\{|\}$/,
|
|
117
|
+
alias: "punctuation"
|
|
118
|
+
},
|
|
119
|
+
rest: Prism.languages.javascript
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
string: /[\s\S]+/
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"string-property": {
|
|
126
|
+
pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
|
|
127
|
+
lookbehind: !0,
|
|
128
|
+
greedy: !0,
|
|
129
|
+
alias: "property"
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Prism.languages.insertBefore("javascript", "operator", {
|
|
133
|
+
"literal-property": {
|
|
134
|
+
pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
|
|
135
|
+
lookbehind: !0,
|
|
136
|
+
alias: "property"
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute(
|
|
140
|
+
/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
|
|
141
|
+
"javascript"
|
|
142
|
+
));
|
|
143
|
+
Prism.languages.js = Prism.languages.javascript;
|
|
144
|
+
(function(e) {
|
|
145
|
+
e.languages.typescript = e.languages.extend("javascript", {
|
|
146
|
+
"class-name": {
|
|
147
|
+
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
|
|
148
|
+
lookbehind: !0,
|
|
149
|
+
greedy: !0,
|
|
150
|
+
inside: null
|
|
151
|
+
// see below
|
|
152
|
+
},
|
|
153
|
+
builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
|
|
154
|
+
}), e.languages.typescript.keyword.push(
|
|
155
|
+
/\b(?:abstract|declare|is|keyof|readonly|require)\b/,
|
|
156
|
+
// keywords that have to be followed by an identifier
|
|
157
|
+
/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,
|
|
158
|
+
// This is for `import type *, {}`
|
|
159
|
+
/\btype\b(?=\s*(?:[\{*]|$))/
|
|
160
|
+
), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
|
|
161
|
+
var n = e.languages.extend("typescript", {});
|
|
162
|
+
delete n["class-name"], e.languages.typescript["class-name"].inside = n, e.languages.insertBefore("typescript", "function", {
|
|
163
|
+
decorator: {
|
|
164
|
+
pattern: /@[$\w\xA0-\uFFFF]+/,
|
|
165
|
+
inside: {
|
|
166
|
+
at: {
|
|
167
|
+
pattern: /^@/,
|
|
168
|
+
alias: "operator"
|
|
169
|
+
},
|
|
170
|
+
function: /^[\s\S]+/
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"generic-function": {
|
|
174
|
+
// e.g. foo<T extends "bar" | "baz">( ...
|
|
175
|
+
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
|
|
176
|
+
greedy: !0,
|
|
177
|
+
inside: {
|
|
178
|
+
function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
|
|
179
|
+
generic: {
|
|
180
|
+
pattern: /<[\s\S]+/,
|
|
181
|
+
// everything after the first <
|
|
182
|
+
alias: "class-name",
|
|
183
|
+
inside: n
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}), e.languages.ts = e.languages.typescript;
|
|
188
|
+
})(Prism);
|
|
189
|
+
(function(e) {
|
|
190
|
+
var n = e.util.clone(e.languages.javascript), s = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, o = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, p = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
|
|
191
|
+
function g(r, u) {
|
|
192
|
+
return r = r.replace(/<S>/g, function() {
|
|
193
|
+
return s;
|
|
194
|
+
}).replace(/<BRACES>/g, function() {
|
|
195
|
+
return o;
|
|
196
|
+
}).replace(/<SPREAD>/g, function() {
|
|
197
|
+
return p;
|
|
198
|
+
}), RegExp(r, u);
|
|
199
|
+
}
|
|
200
|
+
p = g(p).source, e.languages.jsx = e.languages.extend("markup", n), e.languages.jsx.tag.pattern = g(
|
|
201
|
+
/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
|
|
202
|
+
), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = n.comment, e.languages.insertBefore("inside", "attr-name", {
|
|
203
|
+
spread: {
|
|
204
|
+
pattern: g(/<SPREAD>/.source),
|
|
205
|
+
inside: e.languages.jsx
|
|
206
|
+
}
|
|
207
|
+
}, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", {
|
|
208
|
+
script: {
|
|
209
|
+
// Allow for two levels of nesting
|
|
210
|
+
pattern: g(/=<BRACES>/.source),
|
|
211
|
+
alias: "language-javascript",
|
|
212
|
+
inside: {
|
|
213
|
+
"script-punctuation": {
|
|
214
|
+
pattern: /^=(?=\{)/,
|
|
215
|
+
alias: "punctuation"
|
|
216
|
+
},
|
|
217
|
+
rest: e.languages.jsx
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}, e.languages.jsx.tag);
|
|
221
|
+
var i = function(r) {
|
|
222
|
+
return r ? typeof r == "string" ? r : typeof r.content == "string" ? r.content : r.content.map(i).join("") : "";
|
|
223
|
+
}, A = function(r) {
|
|
224
|
+
for (var u = [], a = 0; a < r.length; a++) {
|
|
225
|
+
var t = r[a], c = !1;
|
|
226
|
+
if (typeof t != "string" && (t.type === "tag" && t.content[0] && t.content[0].type === "tag" ? t.content[0].content[0].content === "</" ? u.length > 0 && u[u.length - 1].tagName === i(t.content[0].content[1]) && u.pop() : t.content[t.content.length - 1].content === "/>" || u.push({
|
|
227
|
+
tagName: i(t.content[0].content[1]),
|
|
228
|
+
openedBraces: 0
|
|
229
|
+
}) : u.length > 0 && t.type === "punctuation" && t.content === "{" ? u[u.length - 1].openedBraces++ : u.length > 0 && u[u.length - 1].openedBraces > 0 && t.type === "punctuation" && t.content === "}" ? u[u.length - 1].openedBraces-- : c = !0), (c || typeof t == "string") && u.length > 0 && u[u.length - 1].openedBraces === 0) {
|
|
230
|
+
var l = i(t);
|
|
231
|
+
a < r.length - 1 && (typeof r[a + 1] == "string" || r[a + 1].type === "plain-text") && (l += i(r[a + 1]), r.splice(a + 1, 1)), a > 0 && (typeof r[a - 1] == "string" || r[a - 1].type === "plain-text") && (l = i(r[a - 1]) + l, r.splice(a - 1, 1), a--), r[a] = new e.Token("plain-text", l, null, l);
|
|
232
|
+
}
|
|
233
|
+
t.content && typeof t.content != "string" && A(t.content);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
e.hooks.add("after-tokenize", function(r) {
|
|
237
|
+
r.language !== "jsx" && r.language !== "tsx" || A(r.tokens);
|
|
238
|
+
});
|
|
239
|
+
})(Prism);
|
|
240
|
+
(function(e) {
|
|
241
|
+
var n = e.util.clone(e.languages.typescript);
|
|
242
|
+
e.languages.tsx = e.languages.extend("jsx", n), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"];
|
|
243
|
+
var s = e.languages.tsx.tag;
|
|
244
|
+
s.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + s.pattern.source + ")", s.pattern.flags), s.lookbehind = !0;
|
|
245
|
+
})(Prism);
|
|
246
|
+
(function(e) {
|
|
247
|
+
var n = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
248
|
+
e.languages.css = {
|
|
249
|
+
comment: /\/\*[\s\S]*?\*\//,
|
|
250
|
+
atrule: {
|
|
251
|
+
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + n.source + ")*?" + /(?:;|(?=\s*\{))/.source),
|
|
252
|
+
inside: {
|
|
253
|
+
rule: /^@[\w-]+/,
|
|
254
|
+
"selector-function-argument": {
|
|
255
|
+
pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
|
|
256
|
+
lookbehind: !0,
|
|
257
|
+
alias: "selector"
|
|
258
|
+
},
|
|
259
|
+
keyword: {
|
|
260
|
+
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
|
|
261
|
+
lookbehind: !0
|
|
262
|
+
}
|
|
263
|
+
// See rest below
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
url: {
|
|
267
|
+
// https://drafts.csswg.org/css-values-3/#urls
|
|
268
|
+
pattern: RegExp("\\burl\\((?:" + n.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
|
|
269
|
+
greedy: !0,
|
|
270
|
+
inside: {
|
|
271
|
+
function: /^url/i,
|
|
272
|
+
punctuation: /^\(|\)$/,
|
|
273
|
+
string: {
|
|
274
|
+
pattern: RegExp("^" + n.source + "$"),
|
|
275
|
+
alias: "url"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
selector: {
|
|
280
|
+
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + n.source + ")*(?=\\s*\\{)"),
|
|
281
|
+
lookbehind: !0
|
|
282
|
+
},
|
|
283
|
+
string: {
|
|
284
|
+
pattern: n,
|
|
285
|
+
greedy: !0
|
|
286
|
+
},
|
|
287
|
+
property: {
|
|
288
|
+
pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
|
|
289
|
+
lookbehind: !0
|
|
290
|
+
},
|
|
291
|
+
important: /!important\b/i,
|
|
292
|
+
function: {
|
|
293
|
+
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
|
|
294
|
+
lookbehind: !0
|
|
295
|
+
},
|
|
296
|
+
punctuation: /[(){};:,]/
|
|
297
|
+
}, e.languages.css.atrule.inside.rest = e.languages.css;
|
|
298
|
+
var s = e.languages.markup;
|
|
299
|
+
s && (s.tag.addInlined("style", "css"), s.tag.addAttribute("style", "css"));
|
|
300
|
+
})(Prism);
|
|
301
|
+
Prism.languages.json = {
|
|
302
|
+
property: {
|
|
303
|
+
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
304
|
+
lookbehind: !0,
|
|
305
|
+
greedy: !0
|
|
306
|
+
},
|
|
307
|
+
string: {
|
|
308
|
+
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
|
|
309
|
+
lookbehind: !0,
|
|
310
|
+
greedy: !0
|
|
311
|
+
},
|
|
312
|
+
comment: {
|
|
313
|
+
pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
|
314
|
+
greedy: !0
|
|
315
|
+
},
|
|
316
|
+
number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
|
|
317
|
+
punctuation: /[{}[\],]/,
|
|
318
|
+
operator: /:/,
|
|
319
|
+
boolean: /\b(?:false|true)\b/,
|
|
320
|
+
null: {
|
|
321
|
+
pattern: /\bnull\b/,
|
|
322
|
+
alias: "keyword"
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
Prism.languages.webmanifest = Prism.languages.json;
|
|
326
|
+
(function(e) {
|
|
327
|
+
var n = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", s = {
|
|
328
|
+
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
329
|
+
lookbehind: !0,
|
|
330
|
+
alias: "punctuation",
|
|
331
|
+
// this looks reasonably well in all themes
|
|
332
|
+
inside: null
|
|
333
|
+
// see below
|
|
334
|
+
}, o = {
|
|
335
|
+
bash: s,
|
|
336
|
+
environment: {
|
|
337
|
+
pattern: RegExp("\\$" + n),
|
|
338
|
+
alias: "constant"
|
|
339
|
+
},
|
|
340
|
+
variable: [
|
|
341
|
+
// [0]: Arithmetic Environment
|
|
342
|
+
{
|
|
343
|
+
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
344
|
+
greedy: !0,
|
|
345
|
+
inside: {
|
|
346
|
+
// If there is a $ sign at the beginning highlight $(( and )) as variable
|
|
347
|
+
variable: [
|
|
348
|
+
{
|
|
349
|
+
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
350
|
+
lookbehind: !0
|
|
351
|
+
},
|
|
352
|
+
/^\$\(\(/
|
|
353
|
+
],
|
|
354
|
+
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
355
|
+
// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
|
|
356
|
+
operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
357
|
+
// If there is no $ sign at the beginning highlight (( and )) as punctuation
|
|
358
|
+
punctuation: /\(\(?|\)\)?|,|;/
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
// [1]: Command Substitution
|
|
362
|
+
{
|
|
363
|
+
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
364
|
+
greedy: !0,
|
|
365
|
+
inside: {
|
|
366
|
+
variable: /^\$\(|^`|\)$|`$/
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
// [2]: Brace expansion
|
|
370
|
+
{
|
|
371
|
+
pattern: /\$\{[^}]+\}/,
|
|
372
|
+
greedy: !0,
|
|
373
|
+
inside: {
|
|
374
|
+
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
375
|
+
punctuation: /[\[\]]/,
|
|
376
|
+
environment: {
|
|
377
|
+
pattern: RegExp("(\\{)" + n),
|
|
378
|
+
lookbehind: !0,
|
|
379
|
+
alias: "constant"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
/\$(?:\w+|[#?*!@$])/
|
|
384
|
+
],
|
|
385
|
+
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
386
|
+
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
387
|
+
};
|
|
388
|
+
e.languages.bash = {
|
|
389
|
+
shebang: {
|
|
390
|
+
pattern: /^#!\s*\/.*/,
|
|
391
|
+
alias: "important"
|
|
392
|
+
},
|
|
393
|
+
comment: {
|
|
394
|
+
pattern: /(^|[^"{\\$])#.*/,
|
|
395
|
+
lookbehind: !0
|
|
396
|
+
},
|
|
397
|
+
"function-name": [
|
|
398
|
+
// a) function foo {
|
|
399
|
+
// b) foo() {
|
|
400
|
+
// c) function foo() {
|
|
401
|
+
// but not “foo {”
|
|
402
|
+
{
|
|
403
|
+
// a) and c)
|
|
404
|
+
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
405
|
+
lookbehind: !0,
|
|
406
|
+
alias: "function"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
// b)
|
|
410
|
+
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
411
|
+
alias: "function"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
// Highlight variable names as variables in for and select beginnings.
|
|
415
|
+
"for-or-select": {
|
|
416
|
+
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
417
|
+
alias: "variable",
|
|
418
|
+
lookbehind: !0
|
|
419
|
+
},
|
|
420
|
+
// Highlight variable names as variables in the left-hand part
|
|
421
|
+
// of assignments (“=” and “+=”).
|
|
422
|
+
"assign-left": {
|
|
423
|
+
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
424
|
+
inside: {
|
|
425
|
+
environment: {
|
|
426
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + n),
|
|
427
|
+
lookbehind: !0,
|
|
428
|
+
alias: "constant"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
alias: "variable",
|
|
432
|
+
lookbehind: !0
|
|
433
|
+
},
|
|
434
|
+
// Highlight parameter names as variables
|
|
435
|
+
parameter: {
|
|
436
|
+
pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
|
|
437
|
+
alias: "variable",
|
|
438
|
+
lookbehind: !0
|
|
439
|
+
},
|
|
440
|
+
string: [
|
|
441
|
+
// Support for Here-documents https://en.wikipedia.org/wiki/Here_document
|
|
442
|
+
{
|
|
443
|
+
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
444
|
+
lookbehind: !0,
|
|
445
|
+
greedy: !0,
|
|
446
|
+
inside: o
|
|
447
|
+
},
|
|
448
|
+
// Here-document with quotes around the tag
|
|
449
|
+
// → No expansion (so no “inside”).
|
|
450
|
+
{
|
|
451
|
+
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
452
|
+
lookbehind: !0,
|
|
453
|
+
greedy: !0,
|
|
454
|
+
inside: {
|
|
455
|
+
bash: s
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
// “Normal” string
|
|
459
|
+
{
|
|
460
|
+
// https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
|
|
461
|
+
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
462
|
+
lookbehind: !0,
|
|
463
|
+
greedy: !0,
|
|
464
|
+
inside: o
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
468
|
+
pattern: /(^|[^$\\])'[^']*'/,
|
|
469
|
+
lookbehind: !0,
|
|
470
|
+
greedy: !0
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
// https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
|
|
474
|
+
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
475
|
+
greedy: !0,
|
|
476
|
+
inside: {
|
|
477
|
+
entity: o.entity
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
],
|
|
481
|
+
environment: {
|
|
482
|
+
pattern: RegExp("\\$?" + n),
|
|
483
|
+
alias: "constant"
|
|
484
|
+
},
|
|
485
|
+
variable: o.variable,
|
|
486
|
+
function: {
|
|
487
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
488
|
+
lookbehind: !0
|
|
489
|
+
},
|
|
490
|
+
keyword: {
|
|
491
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
492
|
+
lookbehind: !0
|
|
493
|
+
},
|
|
494
|
+
// https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
|
|
495
|
+
builtin: {
|
|
496
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
|
|
497
|
+
lookbehind: !0,
|
|
498
|
+
// Alias added to make those easier to distinguish from strings.
|
|
499
|
+
alias: "class-name"
|
|
500
|
+
},
|
|
501
|
+
boolean: {
|
|
502
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
503
|
+
lookbehind: !0
|
|
504
|
+
},
|
|
505
|
+
"file-descriptor": {
|
|
506
|
+
pattern: /\B&\d\b/,
|
|
507
|
+
alias: "important"
|
|
508
|
+
},
|
|
509
|
+
operator: {
|
|
510
|
+
// Lots of redirections here, but not just that.
|
|
511
|
+
pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
512
|
+
inside: {
|
|
513
|
+
"file-descriptor": {
|
|
514
|
+
pattern: /^\d/,
|
|
515
|
+
alias: "important"
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
520
|
+
number: {
|
|
521
|
+
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
522
|
+
lookbehind: !0
|
|
523
|
+
}
|
|
524
|
+
}, s.inside = e.languages.bash;
|
|
525
|
+
for (var p = [
|
|
526
|
+
"comment",
|
|
527
|
+
"function-name",
|
|
528
|
+
"for-or-select",
|
|
529
|
+
"assign-left",
|
|
530
|
+
"parameter",
|
|
531
|
+
"string",
|
|
532
|
+
"environment",
|
|
533
|
+
"function",
|
|
534
|
+
"keyword",
|
|
535
|
+
"builtin",
|
|
536
|
+
"boolean",
|
|
537
|
+
"file-descriptor",
|
|
538
|
+
"operator",
|
|
539
|
+
"punctuation",
|
|
540
|
+
"number"
|
|
541
|
+
], g = o.variable[1].inside, i = 0; i < p.length; i++)
|
|
542
|
+
g[p[i]] = e.languages.bash[p[i]];
|
|
543
|
+
e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
|
|
544
|
+
})(Prism);
|
|
545
|
+
Prism.languages.python = {
|
|
546
|
+
comment: {
|
|
547
|
+
pattern: /(^|[^\\])#.*/,
|
|
548
|
+
lookbehind: !0,
|
|
549
|
+
greedy: !0
|
|
550
|
+
},
|
|
551
|
+
"string-interpolation": {
|
|
552
|
+
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
|
553
|
+
greedy: !0,
|
|
554
|
+
inside: {
|
|
555
|
+
interpolation: {
|
|
556
|
+
// "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
|
|
557
|
+
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
|
558
|
+
lookbehind: !0,
|
|
559
|
+
inside: {
|
|
560
|
+
"format-spec": {
|
|
561
|
+
pattern: /(:)[^:(){}]+(?=\}$)/,
|
|
562
|
+
lookbehind: !0
|
|
563
|
+
},
|
|
564
|
+
"conversion-option": {
|
|
565
|
+
pattern: //,
|
|
566
|
+
alias: "punctuation"
|
|
567
|
+
},
|
|
568
|
+
rest: null
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
string: /[\s\S]+/
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"triple-quoted-string": {
|
|
575
|
+
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
|
576
|
+
greedy: !0,
|
|
577
|
+
alias: "string"
|
|
578
|
+
},
|
|
579
|
+
string: {
|
|
580
|
+
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
|
581
|
+
greedy: !0
|
|
582
|
+
},
|
|
583
|
+
function: {
|
|
584
|
+
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
|
585
|
+
lookbehind: !0
|
|
586
|
+
},
|
|
587
|
+
"class-name": {
|
|
588
|
+
pattern: /(\bclass\s+)\w+/i,
|
|
589
|
+
lookbehind: !0
|
|
590
|
+
},
|
|
591
|
+
decorator: {
|
|
592
|
+
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
|
593
|
+
lookbehind: !0,
|
|
594
|
+
alias: ["annotation", "punctuation"],
|
|
595
|
+
inside: {
|
|
596
|
+
punctuation: /\./
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
600
|
+
builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
601
|
+
boolean: /\b(?:False|None|True)\b/,
|
|
602
|
+
number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
|
603
|
+
operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
|
604
|
+
punctuation: /[{}[\];(),.:]/
|
|
605
|
+
};
|
|
606
|
+
Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python;
|
|
607
|
+
Prism.languages.py = Prism.languages.python;
|
|
608
|
+
(function(e) {
|
|
609
|
+
var n = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, s = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, o = {
|
|
610
|
+
pattern: RegExp(/(^|[^\w.])/.source + s + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),
|
|
611
|
+
lookbehind: !0,
|
|
612
|
+
inside: {
|
|
613
|
+
namespace: {
|
|
614
|
+
pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
|
|
615
|
+
inside: {
|
|
616
|
+
punctuation: /\./
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
punctuation: /\./
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
e.languages.java = e.languages.extend("clike", {
|
|
623
|
+
string: {
|
|
624
|
+
pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,
|
|
625
|
+
lookbehind: !0,
|
|
626
|
+
greedy: !0
|
|
627
|
+
},
|
|
628
|
+
"class-name": [
|
|
629
|
+
o,
|
|
630
|
+
{
|
|
631
|
+
// variables, parameters, and constructor references
|
|
632
|
+
// this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
|
|
633
|
+
pattern: RegExp(/(^|[^\w.])/.source + s + /[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),
|
|
634
|
+
lookbehind: !0,
|
|
635
|
+
inside: o.inside
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
// class names based on keyword
|
|
639
|
+
// this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
|
|
640
|
+
pattern: RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source + s + /[A-Z]\w*\b/.source),
|
|
641
|
+
lookbehind: !0,
|
|
642
|
+
inside: o.inside
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
keyword: n,
|
|
646
|
+
function: [
|
|
647
|
+
e.languages.clike.function,
|
|
648
|
+
{
|
|
649
|
+
pattern: /(::\s*)[a-z_]\w*/,
|
|
650
|
+
lookbehind: !0
|
|
651
|
+
}
|
|
652
|
+
],
|
|
653
|
+
number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,
|
|
654
|
+
operator: {
|
|
655
|
+
pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,
|
|
656
|
+
lookbehind: !0
|
|
657
|
+
},
|
|
658
|
+
constant: /\b[A-Z][A-Z_\d]+\b/
|
|
659
|
+
}), e.languages.insertBefore("java", "string", {
|
|
660
|
+
"triple-quoted-string": {
|
|
661
|
+
// http://openjdk.java.net/jeps/355#Description
|
|
662
|
+
pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
|
|
663
|
+
greedy: !0,
|
|
664
|
+
alias: "string"
|
|
665
|
+
},
|
|
666
|
+
char: {
|
|
667
|
+
pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/,
|
|
668
|
+
greedy: !0
|
|
669
|
+
}
|
|
670
|
+
}), e.languages.insertBefore("java", "class-name", {
|
|
671
|
+
annotation: {
|
|
672
|
+
pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/,
|
|
673
|
+
lookbehind: !0,
|
|
674
|
+
alias: "punctuation"
|
|
675
|
+
},
|
|
676
|
+
generics: {
|
|
677
|
+
pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
|
|
678
|
+
inside: {
|
|
679
|
+
"class-name": o,
|
|
680
|
+
keyword: n,
|
|
681
|
+
punctuation: /[<>(),.:]/,
|
|
682
|
+
operator: /[?&|]/
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
import: [
|
|
686
|
+
{
|
|
687
|
+
pattern: RegExp(/(\bimport\s+)/.source + s + /(?:[A-Z]\w*|\*)(?=\s*;)/.source),
|
|
688
|
+
lookbehind: !0,
|
|
689
|
+
inside: {
|
|
690
|
+
namespace: o.inside.namespace,
|
|
691
|
+
punctuation: /\./,
|
|
692
|
+
operator: /\*/,
|
|
693
|
+
"class-name": /\w+/
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
pattern: RegExp(/(\bimport\s+static\s+)/.source + s + /(?:\w+|\*)(?=\s*;)/.source),
|
|
698
|
+
lookbehind: !0,
|
|
699
|
+
alias: "static",
|
|
700
|
+
inside: {
|
|
701
|
+
namespace: o.inside.namespace,
|
|
702
|
+
static: /\b\w+$/,
|
|
703
|
+
punctuation: /\./,
|
|
704
|
+
operator: /\*/,
|
|
705
|
+
"class-name": /\w+/
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
],
|
|
709
|
+
namespace: {
|
|
710
|
+
pattern: RegExp(
|
|
711
|
+
/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g, function() {
|
|
712
|
+
return n.source;
|
|
713
|
+
})
|
|
714
|
+
),
|
|
715
|
+
lookbehind: !0,
|
|
716
|
+
inside: {
|
|
717
|
+
punctuation: /\./
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
});
|
|
721
|
+
})(Prism);
|
|
722
|
+
Prism.languages.go = Prism.languages.extend("clike", {
|
|
723
|
+
string: {
|
|
724
|
+
pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,
|
|
725
|
+
lookbehind: !0,
|
|
726
|
+
greedy: !0
|
|
727
|
+
},
|
|
728
|
+
keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,
|
|
729
|
+
boolean: /\b(?:_|false|iota|nil|true)\b/,
|
|
730
|
+
number: [
|
|
731
|
+
// binary and octal integers
|
|
732
|
+
/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,
|
|
733
|
+
// hexadecimal integers and floats
|
|
734
|
+
/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,
|
|
735
|
+
// decimal integers and floats
|
|
736
|
+
/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i
|
|
737
|
+
],
|
|
738
|
+
operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
|
|
739
|
+
builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/
|
|
740
|
+
});
|
|
741
|
+
Prism.languages.insertBefore("go", "string", {
|
|
742
|
+
char: {
|
|
743
|
+
pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/,
|
|
744
|
+
greedy: !0
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
delete Prism.languages.go["class-name"];
|
|
748
|
+
(function(e) {
|
|
749
|
+
for (var n = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, s = 0; s < 2; s++)
|
|
750
|
+
n = n.replace(/<self>/g, function() {
|
|
751
|
+
return n;
|
|
752
|
+
});
|
|
753
|
+
n = n.replace(/<self>/g, function() {
|
|
754
|
+
return /[^\s\S]/.source;
|
|
755
|
+
}), e.languages.rust = {
|
|
756
|
+
comment: [
|
|
757
|
+
{
|
|
758
|
+
pattern: RegExp(/(^|[^\\])/.source + n),
|
|
759
|
+
lookbehind: !0,
|
|
760
|
+
greedy: !0
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
pattern: /(^|[^\\:])\/\/.*/,
|
|
764
|
+
lookbehind: !0,
|
|
765
|
+
greedy: !0
|
|
766
|
+
}
|
|
767
|
+
],
|
|
768
|
+
string: {
|
|
769
|
+
pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,
|
|
770
|
+
greedy: !0
|
|
771
|
+
},
|
|
772
|
+
char: {
|
|
773
|
+
pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,
|
|
774
|
+
greedy: !0
|
|
775
|
+
},
|
|
776
|
+
attribute: {
|
|
777
|
+
pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,
|
|
778
|
+
greedy: !0,
|
|
779
|
+
alias: "attr-name",
|
|
780
|
+
inside: {
|
|
781
|
+
string: null
|
|
782
|
+
// see below
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
// Closure params should not be confused with bitwise OR |
|
|
786
|
+
"closure-params": {
|
|
787
|
+
pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,
|
|
788
|
+
lookbehind: !0,
|
|
789
|
+
greedy: !0,
|
|
790
|
+
inside: {
|
|
791
|
+
"closure-punctuation": {
|
|
792
|
+
pattern: /^\||\|$/,
|
|
793
|
+
alias: "punctuation"
|
|
794
|
+
},
|
|
795
|
+
rest: null
|
|
796
|
+
// see below
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
"lifetime-annotation": {
|
|
800
|
+
pattern: /'\w+/,
|
|
801
|
+
alias: "symbol"
|
|
802
|
+
},
|
|
803
|
+
"fragment-specifier": {
|
|
804
|
+
pattern: /(\$\w+:)[a-z]+/,
|
|
805
|
+
lookbehind: !0,
|
|
806
|
+
alias: "punctuation"
|
|
807
|
+
},
|
|
808
|
+
variable: /\$\w+/,
|
|
809
|
+
"function-definition": {
|
|
810
|
+
pattern: /(\bfn\s+)\w+/,
|
|
811
|
+
lookbehind: !0,
|
|
812
|
+
alias: "function"
|
|
813
|
+
},
|
|
814
|
+
"type-definition": {
|
|
815
|
+
pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/,
|
|
816
|
+
lookbehind: !0,
|
|
817
|
+
alias: "class-name"
|
|
818
|
+
},
|
|
819
|
+
"module-declaration": [
|
|
820
|
+
{
|
|
821
|
+
pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,
|
|
822
|
+
lookbehind: !0,
|
|
823
|
+
alias: "namespace"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,
|
|
827
|
+
lookbehind: !0,
|
|
828
|
+
alias: "namespace",
|
|
829
|
+
inside: {
|
|
830
|
+
punctuation: /::/
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
keyword: [
|
|
835
|
+
// https://github.com/rust-lang/reference/blob/master/src/keywords.md
|
|
836
|
+
/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,
|
|
837
|
+
// primitives and str
|
|
838
|
+
// https://doc.rust-lang.org/stable/rust-by-example/primitives.html
|
|
839
|
+
/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/
|
|
840
|
+
],
|
|
841
|
+
// functions can technically start with an upper-case letter, but this will introduce a lot of false positives
|
|
842
|
+
// and Rust's naming conventions recommend snake_case anyway.
|
|
843
|
+
// https://doc.rust-lang.org/1.0.0/style/style/naming/README.html
|
|
844
|
+
function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,
|
|
845
|
+
macro: {
|
|
846
|
+
pattern: /\b\w+!/,
|
|
847
|
+
alias: "property"
|
|
848
|
+
},
|
|
849
|
+
constant: /\b[A-Z_][A-Z_\d]+\b/,
|
|
850
|
+
"class-name": /\b[A-Z]\w*\b/,
|
|
851
|
+
namespace: {
|
|
852
|
+
pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,
|
|
853
|
+
inside: {
|
|
854
|
+
punctuation: /::/
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
// Hex, oct, bin, dec numbers with visual separators and type suffix
|
|
858
|
+
number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,
|
|
859
|
+
boolean: /\b(?:false|true)\b/,
|
|
860
|
+
punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,
|
|
861
|
+
operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/
|
|
862
|
+
}, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
|
|
863
|
+
})(Prism);
|
|
864
|
+
Prism.languages.sql = {
|
|
865
|
+
comment: {
|
|
866
|
+
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
|
|
867
|
+
lookbehind: !0
|
|
868
|
+
},
|
|
869
|
+
variable: [
|
|
870
|
+
{
|
|
871
|
+
pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,
|
|
872
|
+
greedy: !0
|
|
873
|
+
},
|
|
874
|
+
/@[\w.$]+/
|
|
875
|
+
],
|
|
876
|
+
string: {
|
|
877
|
+
pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,
|
|
878
|
+
greedy: !0,
|
|
879
|
+
lookbehind: !0
|
|
880
|
+
},
|
|
881
|
+
identifier: {
|
|
882
|
+
pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,
|
|
883
|
+
greedy: !0,
|
|
884
|
+
lookbehind: !0,
|
|
885
|
+
inside: {
|
|
886
|
+
punctuation: /^`|`$/
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,
|
|
890
|
+
// Should we highlight user defined functions too?
|
|
891
|
+
keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,
|
|
892
|
+
boolean: /\b(?:FALSE|NULL|TRUE)\b/i,
|
|
893
|
+
number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,
|
|
894
|
+
operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
|
|
895
|
+
punctuation: /[;[\]()`,.]/
|
|
896
|
+
};
|
|
897
|
+
(function(e) {
|
|
898
|
+
var n = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
899
|
+
function s(a) {
|
|
900
|
+
return a = a.replace(/<inner>/g, function() {
|
|
901
|
+
return n;
|
|
902
|
+
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + a + ")");
|
|
903
|
+
}
|
|
904
|
+
var o = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, p = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
|
905
|
+
return o;
|
|
906
|
+
}), g = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
|
|
907
|
+
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
|
|
908
|
+
"front-matter-block": {
|
|
909
|
+
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
910
|
+
lookbehind: !0,
|
|
911
|
+
greedy: !0,
|
|
912
|
+
inside: {
|
|
913
|
+
punctuation: /^---|---$/,
|
|
914
|
+
"front-matter": {
|
|
915
|
+
pattern: /\S+(?:\s+\S+)*/,
|
|
916
|
+
alias: ["yaml", "language-yaml"],
|
|
917
|
+
inside: e.languages.yaml
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
blockquote: {
|
|
922
|
+
// > ...
|
|
923
|
+
pattern: /^>(?:[\t ]*>)*/m,
|
|
924
|
+
alias: "punctuation"
|
|
925
|
+
},
|
|
926
|
+
table: {
|
|
927
|
+
pattern: RegExp("^" + p + g + "(?:" + p + ")*", "m"),
|
|
928
|
+
inside: {
|
|
929
|
+
"table-data-rows": {
|
|
930
|
+
pattern: RegExp("^(" + p + g + ")(?:" + p + ")*$"),
|
|
931
|
+
lookbehind: !0,
|
|
932
|
+
inside: {
|
|
933
|
+
"table-data": {
|
|
934
|
+
pattern: RegExp(o),
|
|
935
|
+
inside: e.languages.markdown
|
|
936
|
+
},
|
|
937
|
+
punctuation: /\|/
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
"table-line": {
|
|
941
|
+
pattern: RegExp("^(" + p + ")" + g + "$"),
|
|
942
|
+
lookbehind: !0,
|
|
943
|
+
inside: {
|
|
944
|
+
punctuation: /\||:?-{3,}:?/
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"table-header-row": {
|
|
948
|
+
pattern: RegExp("^" + p + "$"),
|
|
949
|
+
inside: {
|
|
950
|
+
"table-header": {
|
|
951
|
+
pattern: RegExp(o),
|
|
952
|
+
alias: "important",
|
|
953
|
+
inside: e.languages.markdown
|
|
954
|
+
},
|
|
955
|
+
punctuation: /\|/
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
code: [
|
|
961
|
+
{
|
|
962
|
+
// Prefixed by 4 spaces or 1 tab and preceded by an empty line
|
|
963
|
+
pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
|
|
964
|
+
lookbehind: !0,
|
|
965
|
+
alias: "keyword"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
// ```optional language
|
|
969
|
+
// code block
|
|
970
|
+
// ```
|
|
971
|
+
pattern: /^```[\s\S]*?^```$/m,
|
|
972
|
+
greedy: !0,
|
|
973
|
+
inside: {
|
|
974
|
+
"code-block": {
|
|
975
|
+
pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
|
|
976
|
+
lookbehind: !0
|
|
977
|
+
},
|
|
978
|
+
"code-language": {
|
|
979
|
+
pattern: /^(```).+/,
|
|
980
|
+
lookbehind: !0
|
|
981
|
+
},
|
|
982
|
+
punctuation: /```/
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
],
|
|
986
|
+
title: [
|
|
987
|
+
{
|
|
988
|
+
// title 1
|
|
989
|
+
// =======
|
|
990
|
+
// title 2
|
|
991
|
+
// -------
|
|
992
|
+
pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
|
|
993
|
+
alias: "important",
|
|
994
|
+
inside: {
|
|
995
|
+
punctuation: /==+$|--+$/
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
// # title 1
|
|
1000
|
+
// ###### title 6
|
|
1001
|
+
pattern: /(^\s*)#.+/m,
|
|
1002
|
+
lookbehind: !0,
|
|
1003
|
+
alias: "important",
|
|
1004
|
+
inside: {
|
|
1005
|
+
punctuation: /^#+|#+$/
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
],
|
|
1009
|
+
hr: {
|
|
1010
|
+
// ***
|
|
1011
|
+
// ---
|
|
1012
|
+
// * * *
|
|
1013
|
+
// -----------
|
|
1014
|
+
pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
|
|
1015
|
+
lookbehind: !0,
|
|
1016
|
+
alias: "punctuation"
|
|
1017
|
+
},
|
|
1018
|
+
list: {
|
|
1019
|
+
// * item
|
|
1020
|
+
// + item
|
|
1021
|
+
// - item
|
|
1022
|
+
// 1. item
|
|
1023
|
+
pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
|
|
1024
|
+
lookbehind: !0,
|
|
1025
|
+
alias: "punctuation"
|
|
1026
|
+
},
|
|
1027
|
+
"url-reference": {
|
|
1028
|
+
// [id]: http://example.com "Optional title"
|
|
1029
|
+
// [id]: http://example.com 'Optional title'
|
|
1030
|
+
// [id]: http://example.com (Optional title)
|
|
1031
|
+
// [id]: <http://example.com> "Optional title"
|
|
1032
|
+
pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
|
|
1033
|
+
inside: {
|
|
1034
|
+
variable: {
|
|
1035
|
+
pattern: /^(!?\[)[^\]]+/,
|
|
1036
|
+
lookbehind: !0
|
|
1037
|
+
},
|
|
1038
|
+
string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
|
|
1039
|
+
punctuation: /^[\[\]!:]|[<>]/
|
|
1040
|
+
},
|
|
1041
|
+
alias: "url"
|
|
1042
|
+
},
|
|
1043
|
+
bold: {
|
|
1044
|
+
// **strong**
|
|
1045
|
+
// __strong__
|
|
1046
|
+
// allow one nested instance of italic text using the same delimiter
|
|
1047
|
+
pattern: s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),
|
|
1048
|
+
lookbehind: !0,
|
|
1049
|
+
greedy: !0,
|
|
1050
|
+
inside: {
|
|
1051
|
+
content: {
|
|
1052
|
+
pattern: /(^..)[\s\S]+(?=..$)/,
|
|
1053
|
+
lookbehind: !0,
|
|
1054
|
+
inside: {}
|
|
1055
|
+
// see below
|
|
1056
|
+
},
|
|
1057
|
+
punctuation: /\*\*|__/
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
italic: {
|
|
1061
|
+
// *em*
|
|
1062
|
+
// _em_
|
|
1063
|
+
// allow one nested instance of bold text using the same delimiter
|
|
1064
|
+
pattern: s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),
|
|
1065
|
+
lookbehind: !0,
|
|
1066
|
+
greedy: !0,
|
|
1067
|
+
inside: {
|
|
1068
|
+
content: {
|
|
1069
|
+
pattern: /(^.)[\s\S]+(?=.$)/,
|
|
1070
|
+
lookbehind: !0,
|
|
1071
|
+
inside: {}
|
|
1072
|
+
// see below
|
|
1073
|
+
},
|
|
1074
|
+
punctuation: /[*_]/
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
strike: {
|
|
1078
|
+
// ~~strike through~~
|
|
1079
|
+
// ~strike~
|
|
1080
|
+
// eslint-disable-next-line regexp/strict
|
|
1081
|
+
pattern: s(/(~~?)(?:(?!~)<inner>)+\2/.source),
|
|
1082
|
+
lookbehind: !0,
|
|
1083
|
+
greedy: !0,
|
|
1084
|
+
inside: {
|
|
1085
|
+
content: {
|
|
1086
|
+
pattern: /(^~~?)[\s\S]+(?=\1$)/,
|
|
1087
|
+
lookbehind: !0,
|
|
1088
|
+
inside: {}
|
|
1089
|
+
// see below
|
|
1090
|
+
},
|
|
1091
|
+
punctuation: /~~?/
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
"code-snippet": {
|
|
1095
|
+
// `code`
|
|
1096
|
+
// ``code``
|
|
1097
|
+
pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
|
|
1098
|
+
lookbehind: !0,
|
|
1099
|
+
greedy: !0,
|
|
1100
|
+
alias: ["code", "keyword"]
|
|
1101
|
+
},
|
|
1102
|
+
url: {
|
|
1103
|
+
// [example](http://example.com "Optional title")
|
|
1104
|
+
// [example][id]
|
|
1105
|
+
// [example] [id]
|
|
1106
|
+
pattern: s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),
|
|
1107
|
+
lookbehind: !0,
|
|
1108
|
+
greedy: !0,
|
|
1109
|
+
inside: {
|
|
1110
|
+
operator: /^!/,
|
|
1111
|
+
content: {
|
|
1112
|
+
pattern: /(^\[)[^\]]+(?=\])/,
|
|
1113
|
+
lookbehind: !0,
|
|
1114
|
+
inside: {}
|
|
1115
|
+
// see below
|
|
1116
|
+
},
|
|
1117
|
+
variable: {
|
|
1118
|
+
pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
|
|
1119
|
+
lookbehind: !0
|
|
1120
|
+
},
|
|
1121
|
+
url: {
|
|
1122
|
+
pattern: /(^\]\()[^\s)]+/,
|
|
1123
|
+
lookbehind: !0
|
|
1124
|
+
},
|
|
1125
|
+
string: {
|
|
1126
|
+
pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
|
|
1127
|
+
lookbehind: !0
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}), ["url", "bold", "italic", "strike"].forEach(function(a) {
|
|
1132
|
+
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(t) {
|
|
1133
|
+
a !== t && (e.languages.markdown[a].inside.content.inside[t] = e.languages.markdown[t]);
|
|
1134
|
+
});
|
|
1135
|
+
}), e.hooks.add("after-tokenize", function(a) {
|
|
1136
|
+
if (a.language !== "markdown" && a.language !== "md")
|
|
1137
|
+
return;
|
|
1138
|
+
function t(c) {
|
|
1139
|
+
if (!(!c || typeof c == "string"))
|
|
1140
|
+
for (var l = 0, m = c.length; l < m; l++) {
|
|
1141
|
+
var d = c[l];
|
|
1142
|
+
if (d.type !== "code") {
|
|
1143
|
+
t(d.content);
|
|
1144
|
+
continue;
|
|
1145
|
+
}
|
|
1146
|
+
var E = d.content[1], b = d.content[3];
|
|
1147
|
+
if (E && b && E.type === "code-language" && b.type === "code-block" && typeof E.content == "string") {
|
|
1148
|
+
var S = E.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
1149
|
+
S = (/[a-z][\w-]*/i.exec(S) || [""])[0].toLowerCase();
|
|
1150
|
+
var I = "language-" + S;
|
|
1151
|
+
b.alias ? typeof b.alias == "string" ? b.alias = [b.alias, I] : b.alias.push(I) : b.alias = [I];
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
t(a.tokens);
|
|
1156
|
+
}), e.hooks.add("wrap", function(a) {
|
|
1157
|
+
if (a.type === "code-block") {
|
|
1158
|
+
for (var t = "", c = 0, l = a.classes.length; c < l; c++) {
|
|
1159
|
+
var m = a.classes[c], d = /language-(.+)/.exec(m);
|
|
1160
|
+
if (d) {
|
|
1161
|
+
t = d[1];
|
|
1162
|
+
break;
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
var E = e.languages[t];
|
|
1166
|
+
if (E)
|
|
1167
|
+
a.content = e.highlight(u(a.content), E, t);
|
|
1168
|
+
else if (t && t !== "none" && e.plugins.autoloader) {
|
|
1169
|
+
var b = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
1170
|
+
a.attributes.id = b, e.plugins.autoloader.loadLanguages(t, function() {
|
|
1171
|
+
var S = document.getElementById(b);
|
|
1172
|
+
S && (S.innerHTML = e.highlight(S.textContent, e.languages[t], t));
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
var i = RegExp(e.languages.markup.tag.pattern.source, "gi"), A = {
|
|
1178
|
+
amp: "&",
|
|
1179
|
+
lt: "<",
|
|
1180
|
+
gt: ">",
|
|
1181
|
+
quot: '"'
|
|
1182
|
+
}, r = String.fromCodePoint || String.fromCharCode;
|
|
1183
|
+
function u(a) {
|
|
1184
|
+
var t = a.replace(i, "");
|
|
1185
|
+
return t = t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(c, l) {
|
|
1186
|
+
if (l = l.toLowerCase(), l[0] === "#") {
|
|
1187
|
+
var m;
|
|
1188
|
+
return l[1] === "x" ? m = parseInt(l.slice(2), 16) : m = Number(l.slice(1)), r(m);
|
|
1189
|
+
} else {
|
|
1190
|
+
var d = A[l];
|
|
1191
|
+
return d || c;
|
|
1192
|
+
}
|
|
1193
|
+
}), t;
|
|
1194
|
+
}
|
|
1195
|
+
e.languages.md = e.languages.markdown;
|
|
1196
|
+
})(Prism);
|
|
1197
|
+
(function(e) {
|
|
1198
|
+
var n = /[*&][^\s[\]{},]+/, s = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, o = "(?:" + s.source + "(?:[ ]+" + n.source + ")?|" + n.source + "(?:[ ]+" + s.source + ")?)", p = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
1199
|
+
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
1200
|
+
}), g = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
1201
|
+
function i(A, r) {
|
|
1202
|
+
r = (r || "").replace(/m/g, "") + "m";
|
|
1203
|
+
var u = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
1204
|
+
return o;
|
|
1205
|
+
}).replace(/<<value>>/g, function() {
|
|
1206
|
+
return A;
|
|
1207
|
+
});
|
|
1208
|
+
return RegExp(u, r);
|
|
1209
|
+
}
|
|
1210
|
+
e.languages.yaml = {
|
|
1211
|
+
scalar: {
|
|
1212
|
+
pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
|
|
1213
|
+
return o;
|
|
1214
|
+
})),
|
|
1215
|
+
lookbehind: !0,
|
|
1216
|
+
alias: "string"
|
|
1217
|
+
},
|
|
1218
|
+
comment: /#.*/,
|
|
1219
|
+
key: {
|
|
1220
|
+
pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
1221
|
+
return o;
|
|
1222
|
+
}).replace(/<<key>>/g, function() {
|
|
1223
|
+
return "(?:" + p + "|" + g + ")";
|
|
1224
|
+
})),
|
|
1225
|
+
lookbehind: !0,
|
|
1226
|
+
greedy: !0,
|
|
1227
|
+
alias: "atrule"
|
|
1228
|
+
},
|
|
1229
|
+
directive: {
|
|
1230
|
+
pattern: /(^[ \t]*)%.+/m,
|
|
1231
|
+
lookbehind: !0,
|
|
1232
|
+
alias: "important"
|
|
1233
|
+
},
|
|
1234
|
+
datetime: {
|
|
1235
|
+
pattern: i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
|
|
1236
|
+
lookbehind: !0,
|
|
1237
|
+
alias: "number"
|
|
1238
|
+
},
|
|
1239
|
+
boolean: {
|
|
1240
|
+
pattern: i(/false|true/.source, "i"),
|
|
1241
|
+
lookbehind: !0,
|
|
1242
|
+
alias: "important"
|
|
1243
|
+
},
|
|
1244
|
+
null: {
|
|
1245
|
+
pattern: i(/null|~/.source, "i"),
|
|
1246
|
+
lookbehind: !0,
|
|
1247
|
+
alias: "important"
|
|
1248
|
+
},
|
|
1249
|
+
string: {
|
|
1250
|
+
pattern: i(g),
|
|
1251
|
+
lookbehind: !0,
|
|
1252
|
+
greedy: !0
|
|
1253
|
+
},
|
|
1254
|
+
number: {
|
|
1255
|
+
pattern: i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
|
|
1256
|
+
lookbehind: !0
|
|
1257
|
+
},
|
|
1258
|
+
tag: s,
|
|
1259
|
+
important: n,
|
|
1260
|
+
punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
|
|
1261
|
+
}, e.languages.yml = e.languages.yaml;
|
|
1262
|
+
})(Prism);
|
|
1263
|
+
const F = R.forwardRef(({
|
|
1264
|
+
code: e,
|
|
1265
|
+
language: n = "text",
|
|
1266
|
+
showLineNumbers: s = !1,
|
|
1267
|
+
showCopyButton: o = !0,
|
|
1268
|
+
filename: p,
|
|
1269
|
+
highlightLines: g = [],
|
|
1270
|
+
languages: i,
|
|
1271
|
+
...A
|
|
1272
|
+
}, r) => {
|
|
1273
|
+
const [u, a] = R.useState(!1), [t, c] = R.useState(""), [l, m] = R.useState(0), d = i ? i[l].code : e, E = i ? i[l].language : n;
|
|
1274
|
+
R.useEffect(() => {
|
|
1275
|
+
if (E !== "text") {
|
|
1276
|
+
const h = y.languages[E];
|
|
1277
|
+
c(h ? y.highlight(d, h, E) : d);
|
|
1278
|
+
} else
|
|
1279
|
+
c(d);
|
|
1280
|
+
}, [d, E]);
|
|
1281
|
+
const b = async () => {
|
|
1282
|
+
await navigator.clipboard.writeText(d), a(!0), setTimeout(() => a(!1), 2e3);
|
|
1283
|
+
}, S = t.split(`
|
|
1284
|
+
`), I = p || o || i && i.length > 1;
|
|
1285
|
+
return /* @__PURE__ */ T("div", { ref: r, ...A, className: "x1cqd74s xsdfdjn x9nsp9x x1y0btm7 xmkeg23 xa18zv3 x1eqnyfr x1n2onr6", children: [
|
|
1286
|
+
I && /* @__PURE__ */ T("div", { className: "x6s0dn4 x1dyd9yc x1q0q8m5 xso031l x78zum5 xpfqfdi x1qughib xrtip4p x16pzmsl", children: [
|
|
1287
|
+
/* @__PURE__ */ T("div", { className: "x6s0dn4 x78zum5 xpfqfdi xw2csxc", children: [
|
|
1288
|
+
p && /* @__PURE__ */ f("span", { className: "xwa5xuj x2lah0s x51wmvv", children: p }),
|
|
1289
|
+
i && i.length > 1 && /* @__PURE__ */ f("div", { className: "x6s0dn4 xtpsrvy x1brvnfc x78zum5 x1o29ju6 x2k5h2x", children: i.map((h, x) => /* @__PURE__ */ f("button", { type: "button", onClick: () => m(x), ...{
|
|
1290
|
+
0: {
|
|
1291
|
+
className: "xc342km x1kcekj6 x1ypdohk x51wmvv xk50ysn x14aypoh x1wu0y3b xx6bhzk x1yyhn7k xwji4o3 xjbqb8w x1uuraw0 x1leyzdx"
|
|
1292
|
+
},
|
|
1293
|
+
1: {
|
|
1294
|
+
className: "xc342km x1kcekj6 x1ypdohk x51wmvv xk50ysn x14aypoh x1wu0y3b xx6bhzk x1yyhn7k xwji4o3 x11tn5dx xv186zg x1vmo3ik"
|
|
1295
|
+
}
|
|
1296
|
+
}[(x === l) << 0], children: h.label ?? h.language }, h.language + x)) })
|
|
1297
|
+
] }),
|
|
1298
|
+
o && /* @__PURE__ */ f("button", { type: "button", onClick: b, className: "x6s0dn4 xjbqb8w x1kcekj6 xc342km x1uuraw0 x1ypdohk x78zum5 x2lah0s x51wmvv x1o29ju6 x8x9d4c x136oad8 x1wu0y3b x3wwfir x1leyzdx", children: u ? /* @__PURE__ */ T(N, { children: [
|
|
1299
|
+
/* @__PURE__ */ f(w, { className: "x1kpxq89 xsmyaan" }),
|
|
1300
|
+
"Copied"
|
|
1301
|
+
] }) : /* @__PURE__ */ T(N, { children: [
|
|
1302
|
+
/* @__PURE__ */ f(k, { className: "x1kpxq89 xsmyaan" }),
|
|
1303
|
+
"Copy"
|
|
1304
|
+
] }) })
|
|
1305
|
+
] }),
|
|
1306
|
+
/* @__PURE__ */ f("div", { className: "xw2csxc x11omchh", children: /* @__PURE__ */ f("pre", { className: `${L(_.pre)} language-${E}`, children: /* @__PURE__ */ f("code", { className: `language-${E}`, children: S.map((h, x) => /* @__PURE__ */ T("div", { ...{
|
|
1307
|
+
0: {
|
|
1308
|
+
className: "x17mssa0"
|
|
1309
|
+
},
|
|
1310
|
+
1: {
|
|
1311
|
+
className: "x17mssa0 xy8psvg xxucxnl x16pzmsl"
|
|
1312
|
+
}
|
|
1313
|
+
}[!!g.includes(x + 1) << 0], children: [
|
|
1314
|
+
s && /* @__PURE__ */ f("span", { className: "xwa5xuj x1rg5ohu xdmqks8 x1hr2gdg x87ps6o xooyq8t", children: x + 1 }),
|
|
1315
|
+
/* @__PURE__ */ f("span", { dangerouslySetInnerHTML: {
|
|
1316
|
+
__html: h || " "
|
|
1317
|
+
} })
|
|
1318
|
+
] }, x)) }) }) })
|
|
1319
|
+
] });
|
|
1320
|
+
});
|
|
1321
|
+
F.displayName = "CodeBlock";
|
|
1322
|
+
function L(...e) {
|
|
1323
|
+
return O.props(...e).className ?? "";
|
|
1324
|
+
}
|
|
1325
|
+
const _ = {
|
|
1326
|
+
pre: {
|
|
1327
|
+
kMv6JI: "xpw0y0u",
|
|
1328
|
+
kGuDYH: "x1eqnyfr",
|
|
1329
|
+
kqGvvJ: "x10im51j",
|
|
1330
|
+
$$css: !0
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
export {
|
|
1334
|
+
F as C
|
|
1335
|
+
};
|