spell 0.8.7 → 0.8.9
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/README-epics.md +149 -49
- package/app/package.json +25 -1
- package/app/spaces/@spell/guides/SpellUI/SpellUI.spellml +486 -486
- package/app/spaces/@spell/sites/SpellApp/SpellApp.spellml +50 -124
- package/dist/app/app/pages/SiteBoardView.css +5 -5
- package/dist/app/app/pages/SiteBoardView.js +1 -1
- package/dist/app/app/pages/SiteEditorPage.js +6 -3
- package/dist/app/app/pages/SiteEdits.js +27 -10
- package/dist/app/app/pages/SiteWrites.js +11 -0
- package/dist/app/app/runner/spellRuntime.js +1 -0
- package/dist/cli/publish/PublishedPackage.d.ts +2 -1
- package/dist/cli/publish/PublishedPackage.js +6 -3
- package/dist/cli/publish/ScratchInstall.d.ts +14 -3
- package/dist/cli/publish/ScratchInstall.js +69 -8
- package/dist/epic/cli/EpicProgram.js +20 -5
- package/dist/epic/cli/epicGroups.js +7 -1
- package/dist/epic/command/BaseBranch.d.ts +35 -0
- package/dist/epic/command/BaseBranch.js +58 -0
- package/dist/epic/command/EpicCheckout.d.ts +1 -1
- package/dist/epic/command/EpicCheckout.js +4 -4
- package/dist/epic/command/EpicGuide.js +3 -2
- package/dist/epic/command/EpicTools.d.ts +5 -0
- package/dist/epic/command/EpicTools.js +14 -3
- package/dist/epic/command/MainMerge.d.ts +26 -15
- package/dist/epic/command/MainMerge.js +60 -16
- package/dist/epic/command/PullRequest.d.ts +45 -0
- package/dist/epic/command/PullRequest.js +100 -0
- package/dist/epic/command/RepoInit.d.ts +196 -39
- package/dist/epic/command/RepoInit.js +481 -60
- package/dist/epic/command/Requests.d.ts +1 -0
- package/dist/epic/command/Requests.js +7 -1
- package/dist/epic/command/SessionMoves.js +2 -1
- package/dist/epic/command/SkillsCheck.js +3 -2
- package/dist/epic/command/Stock.js +3 -1
- package/dist/epic/command/TurnEnd.d.ts +1 -1
- package/dist/epic/command/TurnEnd.js +4 -3
- package/dist/epic/command/Worktrees.d.ts +20 -3
- package/dist/epic/command/Worktrees.js +39 -7
- package/dist/epic/command/command.types.d.ts +3 -0
- package/dist/epic/components/__pack/epics.entry.js +43 -43
- package/dist/epic/components/__pack/epics.pack.js +36 -12794
- package/dist/epic/config/CodeHost.d.ts +96 -0
- package/dist/epic/config/CodeHost.js +89 -0
- package/dist/epic/config/EngineFiles.mjs +60 -0
- package/dist/epic/config/EpicConfig.d.ts +20 -3
- package/dist/epic/config/EpicConfig.js +25 -1
- package/dist/epic/config/EpicRepo.js +1 -1
- package/dist/epic/config/GitHub.d.ts +75 -3
- package/dist/epic/config/GitHub.js +106 -5
- package/dist/epic/config/GitLab.d.ts +138 -0
- package/dist/epic/config/GitLab.js +297 -0
- package/dist/epic/config/LayeredSettings.js +3 -2
- package/dist/epic/server/EpicServer.d.ts +1 -1
- package/dist/epic/server/EpicServer.js +26 -12
- package/dist/epic/tool/InboxPoller.mjs +2 -1
- package/dist/epic/tool/MigrateCommands.js +6 -8
- package/dist/epic/tool/PlanCommits.d.ts +7 -4
- package/dist/epic/tool/PlanCommits.js +7 -5
- package/dist/epic/tool/PlanDocCommands.js +3 -4
- package/dist/epic/tool/PlanDocFiles.d.ts +3 -1
- package/dist/epic/tool/PlanDocFiles.js +13 -5
- package/dist/epic/tool/ServedFolders.d.ts +1 -1
- package/dist/epic/tool/ServedFolders.js +4 -4
- package/dist/epic/tools/PageInboxes.js +3 -3
- package/dist/epic/tools/_assets/commands.entry.js +149 -68
- package/dist/epic/tools/_assets/commands.js +20 -2073
- package/dist/epic/tools/_assets/core-reference.entry.js +244 -124
- package/dist/epic/tools/_assets/core-reference.js +20 -2142
- package/dist/epic/tools/_assets/emoji/cldr/0.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/a.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/b.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/c.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/d.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/e.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/f.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/g.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/h.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/i.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/j.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/k.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/l.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/m.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/n.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/o.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/p.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/r.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/s.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/t.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/u.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/v.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/w.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/x.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/y.js +2 -2
- package/dist/epic/tools/_assets/emoji/cldr/z.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/0.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/a.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/b.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/c.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/d.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/e.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/f.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/g.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/h.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/i.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/j.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/k.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/l.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/m.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/n.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/o.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/p.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/q.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/r.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/s.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/t.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/u.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/v.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/w.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/x.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/y.js +2 -2
- package/dist/epic/tools/_assets/emoji/fomantic/z.js +2 -2
- package/dist/epic/tools/_assets/goals-live.js +318 -210
- package/dist/epic/tools/_assets/highlight.min.js +5764 -5269
- package/dist/epic/tools/_assets/lazy/code-engine.js +5 -1270
- package/dist/epic/tools/_assets/lazy/markdown-engine.js +67 -1513
- package/dist/epic/tools/_assets/lazy/markdown-sanitizer.js +3 -753
- package/dist/epic/tools/_assets/spell-comments.entry.js +282 -159
- package/dist/epic/tools/_assets/spell-comments.js +24 -3716
- package/dist/epic/tools/_assets/spell-doc-comments.js +1243 -816
- package/dist/epic/tools/_assets/spell-doc-helpers.js +298 -165
- package/dist/epic/tools/_assets/spell-doc-runtime.js +2760 -1415
- package/dist/epic/tools/_assets/spell-doc-toolbar.js +396 -227
- package/dist/epic/tools/_assets/spell-syntax.entry.js +505 -285
- package/dist/epic/tools/_assets/spell-syntax.js +22 -2916
- package/dist/epic/tools/_assets/spell-ui-sources.js +102 -60
- package/dist/epic/tools/_assets/spell-ui.entry.js +108 -40
- package/dist/epic/tools/_assets/spell-ui.js +3131 -46465
- package/dist/epic/tools/pages.d.ts +5 -6
- package/dist/epic/tools/pages.js +7 -6
- package/dist/epic/window.mjs +2 -3
- package/dist/parser/core/classes/View.d.ts +20 -0
- package/dist/parser/core/classes/View.js +91 -17
- package/dist/parser/core/core.declarations.json5 +18 -0
- package/dist/parser/core/core.scopes.js +5 -0
- package/dist/parser/core/sites.d.ts +10 -0
- package/dist/parser/core/sites.js +12 -0
- package/dist/parser/parser/tokenizer/Tokenizer.d.ts +9 -1
- package/dist/parser/parser/tokenizer/Tokenizer.js +43 -5
- package/dist/parser/parser/tokenizer/Tokens.d.ts +4 -0
- package/dist/parser/parser/tokenizer/Tokens.js +4 -0
- package/dist/parser/parser/tokenizer/tokenizer.types.d.ts +5 -0
- package/dist/parser/parser/tokenizer/tokenizer.types.js +2 -0
- package/dist/parser/py/core/spell_core/apps.py +2 -0
- package/dist/parser/spell/PARSING.md +21 -0
- package/dist/parser/spell/SpellParser.d.ts +2 -0
- package/dist/parser/spell/SpellParser.js +58 -3
- package/dist/parser/spell/SpellxTokenizer.js +2 -1
- package/dist/parser/spell/SpellxTwin.d.ts +4 -1
- package/dist/parser/spell/SpellxTwin.js +10 -3
- package/dist/parser/spell/builtinTypes.js +24 -1
- package/dist/parser/spell/ingest/PlaceIngest.js +3 -1
- package/dist/parser/spell/languages/Language.d.ts +11 -2
- package/dist/parser/spell/languages/en/words.js +3 -2
- package/dist/parser/spell/languages/es/words.js +7 -4
- package/dist/parser/spell/rules/Statement.js +1 -1
- package/dist/parser/spell/rules/classes/DrawSlot.js +6 -1
- package/dist/parser/spell/rules/sites/SitePage.d.ts +3 -3
- package/dist/parser/spell/rules/sites/SitePage.js +2 -2
- package/dist/parser/spell/rules/sites/sites.en.js +1 -1
- package/dist/parser/spell/rules/sites/sites.es.js +1 -1
- package/dist/parser/spell/rules/sites/sites.shared.d.ts +2 -2
- package/dist/parser/spell/spell.types.d.ts +7 -0
- package/dist/parser/spell/spellSyntax.es.json +6 -6
- package/dist/parser/spell/spellSyntax.json +6 -6
- package/dist/parser/spellx/SpellxView.js +2 -1
- package/dist/ui/components/ui-accordion/UIAccordion.d.ts +1 -0
- package/dist/ui/components/ui-ad/UIAd.d.ts +1 -0
- package/dist/ui/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
- package/dist/ui/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
- package/dist/ui/components/ui-button/UIButton.d.ts +8 -3
- package/dist/ui/components/ui-button/UIButton.fallback.d.ts +8 -3
- package/dist/ui/components/ui-button/UIButtons.d.ts +1 -0
- package/dist/ui/components/ui-button/UIOr.d.ts +1 -0
- package/dist/ui/components/ui-calendar/UICalendar.d.ts +6 -0
- package/dist/ui/components/ui-calendar/UICalendar.fallback.d.ts +6 -0
- package/dist/ui/components/ui-card/UICards.d.ts +31 -0
- package/dist/ui/components/ui-checkbox/UICheckbox.d.ts +7 -0
- package/dist/ui/components/ui-checkbox/UICheckbox.fallback.d.ts +7 -0
- package/dist/ui/components/ui-comment/UIComment.d.ts +1 -0
- package/dist/ui/components/ui-comment/UIComments.d.ts +1 -0
- package/dist/ui/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/ui/components/ui-dimmer/UIDimmer.d.ts +1 -0
- package/dist/ui/components/ui-divider/UIDivider.d.ts +2 -0
- package/dist/ui/components/ui-dropdown/UIDropdown.d.ts +6 -0
- package/dist/ui/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -0
- package/dist/ui/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/ui/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/ui/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/ui/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/ui/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/ui/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/ui/components/ui-form/UIFields.d.ts +1 -0
- package/dist/ui/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/ui/components/ui-grid/UIColumn.d.ts +1 -0
- package/dist/ui/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/ui/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/ui/components/ui-icon/UIIcon.d.ts +3 -2
- package/dist/ui/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/ui/components/ui-icon-picker/UIIconPicker.d.ts +6 -0
- package/dist/ui/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
- package/dist/ui/components/ui-image/UIImages.d.ts +1 -0
- package/dist/ui/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/ui/components/ui-input/UIInput.fallback.d.ts +9 -2
- package/dist/ui/components/ui-items/UIItems.d.ts +1 -0
- package/dist/ui/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/ui/components/ui-label/UILabel.d.ts +2 -0
- package/dist/ui/components/ui-label/UILabels.d.ts +1 -0
- package/dist/ui/components/ui-list/UIList.d.ts +2 -0
- package/dist/ui/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/ui/components/ui-message/UIMessage.d.ts +2 -0
- package/dist/ui/components/ui-modal/UIModal.d.ts +1 -0
- package/dist/ui/components/ui-nag/UINag.d.ts +1 -0
- package/dist/ui/components/ui-page/UIPage.d.ts +15 -0
- package/dist/ui/components/ui-page/UIPage.es.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIAvatar.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIHeader.d.ts +15 -3
- package/dist/ui/components/ui-parts/UIHeader.en.d.ts +5 -2
- package/dist/ui/components/ui-parts/UIHeader.en.js +6 -3
- package/dist/ui/components/ui-parts/UIHeader.js +45 -5
- package/dist/ui/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIParts.css +18 -0
- package/dist/ui/components/ui-parts/UIParts.css.inline.js +1 -1
- package/dist/ui/components/ui-parts/UIParts.types.d.ts +15 -1
- package/dist/ui/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/ui/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/ui/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/ui/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/ui/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/ui/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/ui/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/ui/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/ui/components/ui-progress/UIProgress.d.ts +2 -0
- package/dist/ui/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/ui/components/ui-rail/UIRail.d.ts +1 -0
- package/dist/ui/components/ui-rating/UIRating.d.ts +6 -0
- package/dist/ui/components/ui-rating/UIRating.fallback.d.ts +6 -0
- package/dist/ui/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/ui/components/ui-search/UISearch.fallback.d.ts +13 -1
- package/dist/ui/components/ui-section/UISections.d.ts +1 -0
- package/dist/ui/components/ui-segment/UISegment.d.ts +2 -0
- package/dist/ui/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/ui/components/ui-select/UISelect.d.ts +6 -0
- package/dist/ui/components/ui-select/UISelect.fallback.d.ts +6 -0
- package/dist/ui/components/ui-shape/UISide.d.ts +4 -0
- package/dist/ui/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/ui/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/ui/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/ui/components/ui-sides/UISides.d.ts +6 -0
- package/dist/ui/components/ui-sides/UISides.fallback.d.ts +6 -0
- package/dist/ui/components/ui-slider/UISlider.d.ts +7 -0
- package/dist/ui/components/ui-slider/UISlider.fallback.d.ts +7 -0
- package/dist/ui/components/ui-space/UISpace.d.ts +1 -0
- package/dist/ui/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/ui/components/ui-statistic/UIStatistics.d.ts +1 -0
- package/dist/ui/components/ui-step/UIStep.d.ts +1 -0
- package/dist/ui/components/ui-step/UISteps.d.ts +1 -0
- package/dist/ui/components/ui-table/UICell.d.ts +1 -0
- package/dist/ui/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/ui/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/ui/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/ui/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/ui/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/ui/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/ui/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/ui/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/ui/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/ui/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/ui/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/ui/jsx.d.ts +4 -4
- package/dist/ui/vocabulary/defaults.generated.js +1 -1
- package/dist/util/spell/constants.js +1 -1
- package/epic/.claude-plugin/plugin.json +1 -1
- package/epic/.codex-plugin/plugin.json +1 -1
- package/epic/hooks/handoff.mjs +4 -3
- package/epic/hooks/worktree.mjs +22 -3
- package/epic/package.json +41 -2
- package/epic/skills/details/SKILL.md +2 -1
- package/epic/skills/epic/SKILL.md +7 -1
- package/epic/skills/epic/guide.md +3 -0
- package/epic/skills/isolate/SKILL.md +53 -20
- package/epic/src/AGENTS.md +11 -2
- package/epic/templates/durable.html +1 -1
- package/epic/vscode/package.json +1 -1
- package/epic/vscode/spell-epic.vsix +0 -0
- package/package.json +1 -1
- package/parser/package.json +1 -1
- package/ui/package.json +15 -2
|
@@ -1,1270 +1,5 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// src/tools/_assets/lazy/code-engine.js
|
|
5
|
-
var __spellCodeEngine = (() => {
|
|
6
|
-
var wn = Object.create;
|
|
7
|
-
var me = Object.defineProperty;
|
|
8
|
-
var An = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var Rn = Object.getOwnPropertyNames;
|
|
10
|
-
var xn = Object.getPrototypeOf, kn = Object.prototype.hasOwnProperty;
|
|
11
|
-
var i = /* @__PURE__ */ __name((e, t) => me(e, "name", { value: t, configurable: true }), "i");
|
|
12
|
-
var Mn = /* @__PURE__ */ __name((e, t) => () => {
|
|
13
|
-
try {
|
|
14
|
-
return t || e((t = { exports: {} }).exports, t), t.exports;
|
|
15
|
-
} catch (n) {
|
|
16
|
-
throw t = 0, n;
|
|
17
|
-
}
|
|
18
|
-
}, "Mn"), Cn = /* @__PURE__ */ __name((e, t) => {
|
|
19
|
-
for (var n in t) me(e, n, { get: t[n], enumerable: true });
|
|
20
|
-
}, "Cn"), et = /* @__PURE__ */ __name((e, t, n, a) => {
|
|
21
|
-
if (t && typeof t == "object" || typeof t == "function") for (let s of Rn(t)) !kn.call(e, s) && s !== n && me(e, s, { get: /* @__PURE__ */ __name(() => t[s], "get"), enumerable: !(a = An(t, s)) || a.enumerable });
|
|
22
|
-
return e;
|
|
23
|
-
}, "et");
|
|
24
|
-
var In = /* @__PURE__ */ __name((e, t, n) => (n = e != null ? wn(xn(e)) : {}, et(t || !e || !e.__esModule ? me(n, "default", { value: e, enumerable: true }) : n, e)), "In"), Dn = /* @__PURE__ */ __name((e) => et(me({}, "__esModule", { value: true }), e), "Dn");
|
|
25
|
-
var yt = Mn((ba, ht) => {
|
|
26
|
-
"use strict";
|
|
27
|
-
function st(e) {
|
|
28
|
-
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
29
|
-
throw new Error("map is read-only");
|
|
30
|
-
} : e instanceof Set && (e.add = e.clear = e.delete = function() {
|
|
31
|
-
throw new Error("set is read-only");
|
|
32
|
-
}), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((t) => {
|
|
33
|
-
let n = e[t], a = typeof n;
|
|
34
|
-
(a === "object" || a === "function") && !Object.isFrozen(n) && st(n);
|
|
35
|
-
}), e;
|
|
36
|
-
}
|
|
37
|
-
__name(st, "st");
|
|
38
|
-
i(st, "deepFreeze");
|
|
39
|
-
var Oe = class {
|
|
40
|
-
static {
|
|
41
|
-
__name(this, "Oe");
|
|
42
|
-
}
|
|
43
|
-
static {
|
|
44
|
-
i(this, "Response");
|
|
45
|
-
}
|
|
46
|
-
constructor(t) {
|
|
47
|
-
t.data === void 0 && (t.data = {}), this.data = t.data, this.isMatchIgnored = false;
|
|
48
|
-
}
|
|
49
|
-
ignoreMatch() {
|
|
50
|
-
this.isMatchIgnored = true;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
function ct(e) {
|
|
54
|
-
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
55
|
-
}
|
|
56
|
-
__name(ct, "ct");
|
|
57
|
-
i(ct, "escapeHTML");
|
|
58
|
-
function ae(e, ...t) {
|
|
59
|
-
let n = /* @__PURE__ */ Object.create(null);
|
|
60
|
-
for (let a in e) n[a] = e[a];
|
|
61
|
-
return t.forEach(function(a) {
|
|
62
|
-
for (let s in a) n[s] = a[s];
|
|
63
|
-
}), n;
|
|
64
|
-
}
|
|
65
|
-
__name(ae, "ae");
|
|
66
|
-
i(ae, "inherit$1");
|
|
67
|
-
var Ln = "</span>", tt = i((e) => !!e.scope, "emitsWrappingTags"), Bn = i((e, { prefix: t }) => {
|
|
68
|
-
if (e.startsWith("language:")) return e.replace("language:", "language-");
|
|
69
|
-
if (e.includes(".")) {
|
|
70
|
-
let n = e.split(".");
|
|
71
|
-
return [`${t}${n.shift()}`, ...n.map((a, s) => `${a}${"_".repeat(s + 1)}`)].join(" ");
|
|
72
|
-
}
|
|
73
|
-
return `${t}${e}`;
|
|
74
|
-
}, "scopeToCSSClass"), He = class {
|
|
75
|
-
static {
|
|
76
|
-
__name(this, "He");
|
|
77
|
-
}
|
|
78
|
-
static {
|
|
79
|
-
i(this, "HTMLRenderer");
|
|
80
|
-
}
|
|
81
|
-
constructor(t, n) {
|
|
82
|
-
this.buffer = "", this.classPrefix = n.classPrefix, t.walk(this);
|
|
83
|
-
}
|
|
84
|
-
addText(t) {
|
|
85
|
-
this.buffer += ct(t);
|
|
86
|
-
}
|
|
87
|
-
openNode(t) {
|
|
88
|
-
if (!tt(t)) return;
|
|
89
|
-
let n = Bn(t.scope, { prefix: this.classPrefix });
|
|
90
|
-
this.span(n);
|
|
91
|
-
}
|
|
92
|
-
closeNode(t) {
|
|
93
|
-
tt(t) && (this.buffer += Ln);
|
|
94
|
-
}
|
|
95
|
-
value() {
|
|
96
|
-
return this.buffer;
|
|
97
|
-
}
|
|
98
|
-
span(t) {
|
|
99
|
-
this.buffer += `<span class="${t}">`;
|
|
100
|
-
}
|
|
101
|
-
}, nt = i((e = {}) => {
|
|
102
|
-
let t = { children: [] };
|
|
103
|
-
return Object.assign(t, e), t;
|
|
104
|
-
}, "newNode"), We = class e {
|
|
105
|
-
static {
|
|
106
|
-
__name(this, "e");
|
|
107
|
-
}
|
|
108
|
-
static {
|
|
109
|
-
i(this, "TokenTree");
|
|
110
|
-
}
|
|
111
|
-
constructor() {
|
|
112
|
-
this.rootNode = nt(), this.stack = [this.rootNode];
|
|
113
|
-
}
|
|
114
|
-
get top() {
|
|
115
|
-
return this.stack[this.stack.length - 1];
|
|
116
|
-
}
|
|
117
|
-
get root() {
|
|
118
|
-
return this.rootNode;
|
|
119
|
-
}
|
|
120
|
-
add(t) {
|
|
121
|
-
this.top.children.push(t);
|
|
122
|
-
}
|
|
123
|
-
openNode(t) {
|
|
124
|
-
let n = nt({ scope: t });
|
|
125
|
-
this.add(n), this.stack.push(n);
|
|
126
|
-
}
|
|
127
|
-
closeNode() {
|
|
128
|
-
if (this.stack.length > 1) return this.stack.pop();
|
|
129
|
-
}
|
|
130
|
-
closeAllNodes() {
|
|
131
|
-
for (; this.closeNode(); ) ;
|
|
132
|
-
}
|
|
133
|
-
toJSON() {
|
|
134
|
-
return JSON.stringify(this.rootNode, null, 4);
|
|
135
|
-
}
|
|
136
|
-
walk(t) {
|
|
137
|
-
return this.constructor._walk(t, this.rootNode);
|
|
138
|
-
}
|
|
139
|
-
static _walk(t, n) {
|
|
140
|
-
return typeof n == "string" ? t.addText(n) : n.children && (t.openNode(n), n.children.forEach((a) => this._walk(t, a)), t.closeNode(n)), t;
|
|
141
|
-
}
|
|
142
|
-
static _collapse(t) {
|
|
143
|
-
typeof t != "string" && t.children && (t.children.every((n) => typeof n == "string") ? t.children = [t.children.join("")] : t.children.forEach((n) => {
|
|
144
|
-
e._collapse(n);
|
|
145
|
-
}));
|
|
146
|
-
}
|
|
147
|
-
}, Ye = class extends We {
|
|
148
|
-
static {
|
|
149
|
-
__name(this, "Ye");
|
|
150
|
-
}
|
|
151
|
-
static {
|
|
152
|
-
i(this, "TokenTreeEmitter");
|
|
153
|
-
}
|
|
154
|
-
constructor(t) {
|
|
155
|
-
super(), this.options = t;
|
|
156
|
-
}
|
|
157
|
-
addText(t) {
|
|
158
|
-
t !== "" && this.add(t);
|
|
159
|
-
}
|
|
160
|
-
startScope(t) {
|
|
161
|
-
this.openNode(t);
|
|
162
|
-
}
|
|
163
|
-
endScope() {
|
|
164
|
-
this.closeNode();
|
|
165
|
-
}
|
|
166
|
-
__addSublanguage(t, n) {
|
|
167
|
-
let a = t.root;
|
|
168
|
-
n && (a.scope = `language:${n}`), this.add(a);
|
|
169
|
-
}
|
|
170
|
-
toHTML() {
|
|
171
|
-
return new He(this, this.options).value();
|
|
172
|
-
}
|
|
173
|
-
finalize() {
|
|
174
|
-
return this.closeAllNodes(), true;
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
function fe(e) {
|
|
178
|
-
return e ? typeof e == "string" ? e : e.source : null;
|
|
179
|
-
}
|
|
180
|
-
__name(fe, "fe");
|
|
181
|
-
i(fe, "source");
|
|
182
|
-
function lt(e) {
|
|
183
|
-
return se("(?=", e, ")");
|
|
184
|
-
}
|
|
185
|
-
__name(lt, "lt");
|
|
186
|
-
i(lt, "lookahead");
|
|
187
|
-
function Pn(e) {
|
|
188
|
-
return se("(?:", e, ")*");
|
|
189
|
-
}
|
|
190
|
-
__name(Pn, "Pn");
|
|
191
|
-
i(Pn, "anyNumberOfTimes");
|
|
192
|
-
function Un(e) {
|
|
193
|
-
return se("(?:", e, ")?");
|
|
194
|
-
}
|
|
195
|
-
__name(Un, "Un");
|
|
196
|
-
i(Un, "optional");
|
|
197
|
-
function se(...e) {
|
|
198
|
-
return e.map((n) => fe(n)).join("");
|
|
199
|
-
}
|
|
200
|
-
__name(se, "se");
|
|
201
|
-
i(se, "concat");
|
|
202
|
-
function Fn(e) {
|
|
203
|
-
let t = e[e.length - 1];
|
|
204
|
-
return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
|
|
205
|
-
}
|
|
206
|
-
__name(Fn, "Fn");
|
|
207
|
-
i(Fn, "stripOptionsFromArgs");
|
|
208
|
-
function Ae(...e) {
|
|
209
|
-
return "(" + (Fn(e).capture ? "" : "?:") + e.map((a) => fe(a)).join("|") + ")";
|
|
210
|
-
}
|
|
211
|
-
__name(Ae, "Ae");
|
|
212
|
-
i(Ae, "either");
|
|
213
|
-
function dt(e) {
|
|
214
|
-
return new RegExp(e.toString() + "|").exec("").length - 1;
|
|
215
|
-
}
|
|
216
|
-
__name(dt, "dt");
|
|
217
|
-
i(dt, "countMatchGroups");
|
|
218
|
-
function zn(e, t) {
|
|
219
|
-
let n = e && e.exec(t);
|
|
220
|
-
return n && n.index === 0;
|
|
221
|
-
}
|
|
222
|
-
__name(zn, "zn");
|
|
223
|
-
i(zn, "startsWith");
|
|
224
|
-
var $n = new RegExp(Ae(/\[(?:[^\\\]]|\\.)*\]/, /\(\?<(?![=!])[^>]+>/, /\(\?'[^']+'/, /\(\??/, /\\([1-9][0-9]*)/, /\\./));
|
|
225
|
-
function Ze(e, { joinWith: t }) {
|
|
226
|
-
let n = 0;
|
|
227
|
-
return e.map((a) => {
|
|
228
|
-
n += 1;
|
|
229
|
-
let s = n, g = fe(a), o = "";
|
|
230
|
-
for (; g.length > 0; ) {
|
|
231
|
-
let r = $n.exec(g);
|
|
232
|
-
if (!r) {
|
|
233
|
-
o += g;
|
|
234
|
-
break;
|
|
235
|
-
}
|
|
236
|
-
o += g.substring(0, r.index), g = g.substring(r.index + r[0].length), r[0][0] === "\\" && r[1] ? o += "\\" + String(Number(r[1]) + s) : (o += r[0], (r[0] === "(" || /^\(\?[<']/.test(r[0])) && n++);
|
|
237
|
-
}
|
|
238
|
-
return o;
|
|
239
|
-
}).map((a) => `(${a})`).join(t);
|
|
240
|
-
}
|
|
241
|
-
__name(Ze, "Ze");
|
|
242
|
-
i(Ze, "_rewriteBackreferences");
|
|
243
|
-
var Kn = /\b\B/, ut = "[a-zA-Z]\\w*", Ve = "[a-zA-Z_]\\w*", gt = "\\b\\d+(\\.\\d+)?", pt = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", bt = "\\b(0b[01]+)", Gn = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Hn = i((e = {}) => {
|
|
244
|
-
let t = /^#![ ]*\//;
|
|
245
|
-
return e.binary && (e.begin = se(t, /.*\b/, e.binary, /\b.*/)), ae({ scope: "meta", begin: t, end: /$/, relevance: 0, "on:begin": i((n, a) => {
|
|
246
|
-
n.index !== 0 && a.ignoreMatch();
|
|
247
|
-
}, "on:begin") }, e);
|
|
248
|
-
}, "SHEBANG"), Ee = { begin: "\\\\[\\s\\S]", relevance: 0 }, Wn = { scope: "string", begin: "'", end: "'", illegal: "\\n", contains: [Ee] }, Yn = { scope: "string", begin: '"', end: '"', illegal: "\\n", contains: [Ee] }, qn = { 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/ }, Re = i(function(e, t, n = {}) {
|
|
249
|
-
let a = ae({ scope: "comment", begin: e, end: t, contains: [] }, n);
|
|
250
|
-
a.contains.push({ scope: "doctag", begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/, excludeBegin: true, relevance: 0 });
|
|
251
|
-
let s = Ae("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,}/);
|
|
252
|
-
return a.contains.push({ begin: se(/[ ]+/, "(", s, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), a;
|
|
253
|
-
}, "COMMENT"), Zn = Re("//", "$"), Vn = Re("/\\*", "\\*/"), Xn = Re("#", "$"), Qn = { scope: "number", begin: gt, relevance: 0 }, Jn = { scope: "number", begin: pt, relevance: 0 }, jn = { scope: "number", begin: bt, relevance: 0 }, ei = { scope: "regexp", begin: /\/(?=[^/\n]*\/)/, end: /\/[gimuy]*/, contains: [Ee, { begin: /\[/, end: /\]/, relevance: 0, contains: [Ee] }] }, ti = { scope: "title", begin: ut, relevance: 0 }, ni = { scope: "title", begin: Ve, relevance: 0 }, ii = { begin: "\\.\\s*" + Ve, relevance: 0 }, ai = i(function(e) {
|
|
254
|
-
return Object.assign(e, { "on:begin": i((t, n) => {
|
|
255
|
-
n.data._beginMatch = t[1];
|
|
256
|
-
}, "on:begin"), "on:end": i((t, n) => {
|
|
257
|
-
n.data._beginMatch !== t[1] && n.ignoreMatch();
|
|
258
|
-
}, "on:end") });
|
|
259
|
-
}, "END_SAME_AS_BEGIN"), ve = Object.freeze({ __proto__: null, APOS_STRING_MODE: Wn, BACKSLASH_ESCAPE: Ee, BINARY_NUMBER_MODE: jn, BINARY_NUMBER_RE: bt, COMMENT: Re, C_BLOCK_COMMENT_MODE: Vn, C_LINE_COMMENT_MODE: Zn, C_NUMBER_MODE: Jn, C_NUMBER_RE: pt, END_SAME_AS_BEGIN: ai, HASH_COMMENT_MODE: Xn, IDENT_RE: ut, MATCH_NOTHING_RE: Kn, METHOD_GUARD: ii, NUMBER_MODE: Qn, NUMBER_RE: gt, PHRASAL_WORDS_MODE: qn, QUOTE_STRING_MODE: Yn, REGEXP_MODE: ei, RE_STARTERS_RE: Gn, SHEBANG: Hn, TITLE_MODE: ti, UNDERSCORE_IDENT_RE: Ve, UNDERSCORE_TITLE_MODE: ni });
|
|
260
|
-
function ri(e, t) {
|
|
261
|
-
e.input[e.index - 1] === "." && t.ignoreMatch();
|
|
262
|
-
}
|
|
263
|
-
__name(ri, "ri");
|
|
264
|
-
i(ri, "skipIfHasPrecedingDot");
|
|
265
|
-
function oi(e, t) {
|
|
266
|
-
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
267
|
-
}
|
|
268
|
-
__name(oi, "oi");
|
|
269
|
-
i(oi, "scopeClassName");
|
|
270
|
-
function si(e, t) {
|
|
271
|
-
t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = ri, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
272
|
-
}
|
|
273
|
-
__name(si, "si");
|
|
274
|
-
i(si, "beginKeywords");
|
|
275
|
-
function ci(e, t) {
|
|
276
|
-
Array.isArray(e.illegal) && (e.illegal = Ae(...e.illegal));
|
|
277
|
-
}
|
|
278
|
-
__name(ci, "ci");
|
|
279
|
-
i(ci, "compileIllegal");
|
|
280
|
-
function li(e, t) {
|
|
281
|
-
if (e.match) {
|
|
282
|
-
if (e.begin || e.end) throw new Error("begin & end are not supported with match");
|
|
283
|
-
e.begin = e.match, delete e.match;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
__name(li, "li");
|
|
287
|
-
i(li, "compileMatch");
|
|
288
|
-
function di(e, t) {
|
|
289
|
-
e.relevance === void 0 && (e.relevance = 1);
|
|
290
|
-
}
|
|
291
|
-
__name(di, "di");
|
|
292
|
-
i(di, "compileRelevance");
|
|
293
|
-
var ui = i((e, t) => {
|
|
294
|
-
if (!e.beforeMatch) return;
|
|
295
|
-
if (e.starts) throw new Error("beforeMatch cannot be used with starts");
|
|
296
|
-
let n = Object.assign({}, e);
|
|
297
|
-
Object.keys(e).forEach((a) => {
|
|
298
|
-
delete e[a];
|
|
299
|
-
}), e.keywords = n.keywords, e.begin = se(n.beforeMatch, lt(n.begin)), e.starts = { relevance: 0, contains: [Object.assign(n, { endsParent: true })] }, e.relevance = 0, delete n.beforeMatch;
|
|
300
|
-
}, "beforeMatchExt"), gi = ["of", "and", "for", "in", "not", "or", "if", "then", "parent", "list", "value"], pi = "keyword";
|
|
301
|
-
function mt(e, t, n = pi) {
|
|
302
|
-
let a = /* @__PURE__ */ Object.create(null);
|
|
303
|
-
return typeof e == "string" ? s(n, e.split(" ")) : Array.isArray(e) ? s(n, e) : Object.keys(e).forEach(function(g) {
|
|
304
|
-
Object.assign(a, mt(e[g], t, g));
|
|
305
|
-
}), a;
|
|
306
|
-
function s(g, o) {
|
|
307
|
-
t && (o = o.map((r) => r.toLowerCase())), o.forEach(function(r) {
|
|
308
|
-
let c = r.split("|");
|
|
309
|
-
a[c[0]] = [g, bi(c[0], c[1])];
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
__name(s, "s");
|
|
313
|
-
i(s, "compileList");
|
|
314
|
-
}
|
|
315
|
-
__name(mt, "mt");
|
|
316
|
-
i(mt, "compileKeywords");
|
|
317
|
-
function bi(e, t) {
|
|
318
|
-
return t ? Number(t) : mi(e) ? 0 : 1;
|
|
319
|
-
}
|
|
320
|
-
__name(bi, "bi");
|
|
321
|
-
i(bi, "scoreForKeyword");
|
|
322
|
-
function mi(e) {
|
|
323
|
-
return gi.includes(e.toLowerCase());
|
|
324
|
-
}
|
|
325
|
-
__name(mi, "mi");
|
|
326
|
-
i(mi, "commonKeyword");
|
|
327
|
-
var it = {}, oe = i((e) => {
|
|
328
|
-
console.error(e);
|
|
329
|
-
}, "error"), at = i((e, ...t) => {
|
|
330
|
-
console.log(`WARN: ${e}`, ...t);
|
|
331
|
-
}, "warn"), de = i((e, t) => {
|
|
332
|
-
it[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), it[`${e}/${t}`] = true);
|
|
333
|
-
}, "deprecated"), we = new Error();
|
|
334
|
-
function ft(e, t, { key: n }) {
|
|
335
|
-
let a = 0, s = e[n], g = {}, o = {};
|
|
336
|
-
for (let r = 1; r <= t.length; r++) o[r + a] = s[r], g[r + a] = true, a += dt(t[r - 1]);
|
|
337
|
-
e[n] = o, e[n]._emit = g, e[n]._multi = true;
|
|
338
|
-
}
|
|
339
|
-
__name(ft, "ft");
|
|
340
|
-
i(ft, "remapScopeNames");
|
|
341
|
-
function fi(e) {
|
|
342
|
-
if (Array.isArray(e.begin)) {
|
|
343
|
-
if (e.skip || e.excludeBegin || e.returnBegin) throw oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), we;
|
|
344
|
-
if (typeof e.beginScope != "object" || e.beginScope === null) throw oe("beginScope must be object"), we;
|
|
345
|
-
ft(e, e.begin, { key: "beginScope" }), e.begin = Ze(e.begin, { joinWith: "" });
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
__name(fi, "fi");
|
|
349
|
-
i(fi, "beginMultiClass");
|
|
350
|
-
function Ei(e) {
|
|
351
|
-
if (Array.isArray(e.end)) {
|
|
352
|
-
if (e.skip || e.excludeEnd || e.returnEnd) throw oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"), we;
|
|
353
|
-
if (typeof e.endScope != "object" || e.endScope === null) throw oe("endScope must be object"), we;
|
|
354
|
-
ft(e, e.end, { key: "endScope" }), e.end = Ze(e.end, { joinWith: "" });
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
__name(Ei, "Ei");
|
|
358
|
-
i(Ei, "endMultiClass");
|
|
359
|
-
function _i(e) {
|
|
360
|
-
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
361
|
-
}
|
|
362
|
-
__name(_i, "_i");
|
|
363
|
-
i(_i, "scopeSugar");
|
|
364
|
-
function hi(e) {
|
|
365
|
-
_i(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), fi(e), Ei(e);
|
|
366
|
-
}
|
|
367
|
-
__name(hi, "hi");
|
|
368
|
-
i(hi, "MultiClass");
|
|
369
|
-
function yi(e) {
|
|
370
|
-
function t(o, r) {
|
|
371
|
-
return new RegExp(fe(o), "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (r ? "g" : ""));
|
|
372
|
-
}
|
|
373
|
-
__name(t, "t");
|
|
374
|
-
i(t, "langRe");
|
|
375
|
-
class n {
|
|
376
|
-
static {
|
|
377
|
-
__name(this, "n");
|
|
378
|
-
}
|
|
379
|
-
static {
|
|
380
|
-
i(this, "MultiRegex");
|
|
381
|
-
}
|
|
382
|
-
constructor() {
|
|
383
|
-
this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
|
384
|
-
}
|
|
385
|
-
addRule(r, c) {
|
|
386
|
-
c.position = this.position++, this.matchIndexes[this.matchAt] = c, this.regexes.push([c, r]), this.matchAt += dt(r) + 1;
|
|
387
|
-
}
|
|
388
|
-
compile() {
|
|
389
|
-
this.regexes.length === 0 && (this.exec = () => null);
|
|
390
|
-
let r = this.regexes.map((c) => c[1]);
|
|
391
|
-
this.matcherRe = t(Ze(r, { joinWith: "|" }), true), this.lastIndex = 0;
|
|
392
|
-
}
|
|
393
|
-
exec(r) {
|
|
394
|
-
this.matcherRe.lastIndex = this.lastIndex;
|
|
395
|
-
let c = this.matcherRe.exec(r);
|
|
396
|
-
if (!c) return null;
|
|
397
|
-
let d = c.findIndex((_, b) => b > 0 && _ !== void 0), u = this.matchIndexes[d];
|
|
398
|
-
return c.splice(0, d), Object.assign(c, u);
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
class a {
|
|
402
|
-
static {
|
|
403
|
-
__name(this, "a");
|
|
404
|
-
}
|
|
405
|
-
static {
|
|
406
|
-
i(this, "ResumableMultiRegex");
|
|
407
|
-
}
|
|
408
|
-
constructor() {
|
|
409
|
-
this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
|
|
410
|
-
}
|
|
411
|
-
getMatcher(r) {
|
|
412
|
-
if (this.multiRegexes[r]) return this.multiRegexes[r];
|
|
413
|
-
let c = new n();
|
|
414
|
-
return this.rules.slice(r).forEach(([d, u]) => c.addRule(d, u)), c.compile(), this.multiRegexes[r] = c, c;
|
|
415
|
-
}
|
|
416
|
-
resumingScanAtSamePosition() {
|
|
417
|
-
return this.regexIndex !== 0;
|
|
418
|
-
}
|
|
419
|
-
considerAll() {
|
|
420
|
-
this.regexIndex = 0;
|
|
421
|
-
}
|
|
422
|
-
addRule(r, c) {
|
|
423
|
-
this.rules.push([r, c]), c.type === "begin" && this.count++;
|
|
424
|
-
}
|
|
425
|
-
exec(r) {
|
|
426
|
-
let c = this.getMatcher(this.regexIndex);
|
|
427
|
-
c.lastIndex = this.lastIndex;
|
|
428
|
-
let d = c.exec(r);
|
|
429
|
-
if (this.resumingScanAtSamePosition() && !(d && d.index === this.lastIndex)) {
|
|
430
|
-
let u = this.getMatcher(0);
|
|
431
|
-
u.lastIndex = this.lastIndex + 1, d = u.exec(r);
|
|
432
|
-
}
|
|
433
|
-
return d && (this.regexIndex += d.position + 1, this.regexIndex === this.count && this.considerAll()), d;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
function s(o) {
|
|
437
|
-
let r = new a();
|
|
438
|
-
return o.contains.forEach((c) => r.addRule(c.begin, { rule: c, type: "begin" })), o.terminatorEnd && r.addRule(o.terminatorEnd, { type: "end" }), o.illegal && r.addRule(o.illegal, { type: "illegal" }), r;
|
|
439
|
-
}
|
|
440
|
-
__name(s, "s");
|
|
441
|
-
i(s, "buildModeRegex");
|
|
442
|
-
function g(o, r) {
|
|
443
|
-
let c = o;
|
|
444
|
-
if (o.isCompiled) return c;
|
|
445
|
-
[oi, li, hi, ui].forEach((u) => u(o, r)), e.compilerExtensions.forEach((u) => u(o, r)), o.__beforeBegin = null, [si, ci, di].forEach((u) => u(o, r)), o.isCompiled = true;
|
|
446
|
-
let d = null;
|
|
447
|
-
return typeof o.keywords == "object" && o.keywords.$pattern && (o.keywords = Object.assign({}, o.keywords), d = o.keywords.$pattern, delete o.keywords.$pattern), d = d || /\w+/, o.keywords && (o.keywords = mt(o.keywords, e.case_insensitive)), c.keywordPatternRe = t(d, true), r && (o.begin || (o.begin = /\B|\b/), c.beginRe = t(c.begin), !o.end && !o.endsWithParent && (o.end = /\B|\b/), o.end && (c.endRe = t(c.end)), c.terminatorEnd = fe(c.end) || "", o.endsWithParent && r.terminatorEnd && (c.terminatorEnd += (o.end ? "|" : "") + r.terminatorEnd)), o.illegal && (c.illegalRe = t(o.illegal)), o.contains || (o.contains = []), o.contains = [].concat(...o.contains.map(function(u) {
|
|
448
|
-
return Ni(u === "self" ? o : u);
|
|
449
|
-
})), o.contains.forEach(function(u) {
|
|
450
|
-
g(u, c);
|
|
451
|
-
}), o.starts && g(o.starts, r), c.matcher = s(c), c;
|
|
452
|
-
}
|
|
453
|
-
__name(g, "g");
|
|
454
|
-
if (i(g, "compileMode"), e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self")) throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
455
|
-
return e.classNameAliases = ae(e.classNameAliases || {}), g(e);
|
|
456
|
-
}
|
|
457
|
-
__name(yi, "yi");
|
|
458
|
-
i(yi, "compileLanguage");
|
|
459
|
-
function Et(e) {
|
|
460
|
-
return e ? e.endsWithParent || Et(e.starts) : false;
|
|
461
|
-
}
|
|
462
|
-
__name(Et, "Et");
|
|
463
|
-
i(Et, "dependencyOnParent");
|
|
464
|
-
function Ni(e) {
|
|
465
|
-
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
|
|
466
|
-
return ae(e, { variants: null }, t);
|
|
467
|
-
})), e.cachedVariants ? e.cachedVariants : Et(e) ? ae(e, { starts: e.starts ? ae(e.starts) : null }) : Object.isFrozen(e) ? ae(e) : e;
|
|
468
|
-
}
|
|
469
|
-
__name(Ni, "Ni");
|
|
470
|
-
i(Ni, "expandOrCloneMode");
|
|
471
|
-
var Ti = "11.12.0", qe = class extends Error {
|
|
472
|
-
static {
|
|
473
|
-
__name(this, "qe");
|
|
474
|
-
}
|
|
475
|
-
static {
|
|
476
|
-
i(this, "HTMLInjectionError");
|
|
477
|
-
}
|
|
478
|
-
constructor(t, n) {
|
|
479
|
-
super(t), this.name = "HTMLInjectionError", this.html = n;
|
|
480
|
-
}
|
|
481
|
-
}, Ge = ct, rt = ae, ot = /* @__PURE__ */ Symbol("nomatch"), Si = 7, _t = i(function(e) {
|
|
482
|
-
let t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), a = [], s = true, g = "Could not find the language '{}', did you forget to load/include a language module?", o = { disableAutodetect: true, name: "Plain text", contains: [] }, r = { ignoreUnescapedHTML: false, throwUnescapedHTML: false, noHighlightRe: /^(no-?highlight)$/i, languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i, classPrefix: "hljs-", cssSelector: "pre code", languages: null, __emitter: Ye };
|
|
483
|
-
function c(l) {
|
|
484
|
-
return r.noHighlightRe.test(l);
|
|
485
|
-
}
|
|
486
|
-
__name(c, "c");
|
|
487
|
-
i(c, "shouldNotHighlight");
|
|
488
|
-
function d(l) {
|
|
489
|
-
let m = l.className + " ";
|
|
490
|
-
m += l.parentNode ? l.parentNode.className : "";
|
|
491
|
-
let f = r.languageDetectRe.exec(m);
|
|
492
|
-
if (f) {
|
|
493
|
-
let w = D(f[1]);
|
|
494
|
-
return w || (at(g.replace("{}", f[1])), at("Falling back to no-highlight mode for this block.", l)), w ? f[1] : "no-highlight";
|
|
495
|
-
}
|
|
496
|
-
return m.split(/\s+/).find((w) => c(w) || D(w));
|
|
497
|
-
}
|
|
498
|
-
__name(d, "d");
|
|
499
|
-
i(d, "blockLanguage");
|
|
500
|
-
function u(l, m, f) {
|
|
501
|
-
let w = "", C = "";
|
|
502
|
-
typeof m == "object" ? (w = l, f = m.ignoreIllegals, C = m.language) : (de("10.7.0", "highlight(lang, code, ...args) has been deprecated."), de("10.7.0", `Please use highlight(code, options) instead.
|
|
503
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), C = l, w = m), f === void 0 && (f = true);
|
|
504
|
-
let F = { code: w, language: C };
|
|
505
|
-
K("before:highlight", F);
|
|
506
|
-
let $ = F.result ? F.result : _(F.language, F.code, f);
|
|
507
|
-
return $.code = F.code, K("after:highlight", $), $;
|
|
508
|
-
}
|
|
509
|
-
__name(u, "u");
|
|
510
|
-
i(u, "highlight");
|
|
511
|
-
function _(l, m, f, w) {
|
|
512
|
-
let C = /* @__PURE__ */ Object.create(null);
|
|
513
|
-
function F(p, h) {
|
|
514
|
-
return p.keywords[h];
|
|
515
|
-
}
|
|
516
|
-
__name(F, "F");
|
|
517
|
-
i(F, "keywordData");
|
|
518
|
-
function $() {
|
|
519
|
-
if (!N.keywords) {
|
|
520
|
-
H.addText(z);
|
|
521
|
-
return;
|
|
522
|
-
}
|
|
523
|
-
let p = 0;
|
|
524
|
-
N.keywordPatternRe.lastIndex = 0;
|
|
525
|
-
let h = N.keywordPatternRe.exec(z), R = "";
|
|
526
|
-
for (; h; ) {
|
|
527
|
-
R += z.substring(p, h.index);
|
|
528
|
-
let L = j.case_insensitive ? h[0].toLowerCase() : h[0], Y = F(N, L);
|
|
529
|
-
if (Y) {
|
|
530
|
-
let [ne, vn] = Y;
|
|
531
|
-
if (H.addText(R), R = "", C[L] = (C[L] || 0) + 1, C[L] <= Si && (Se += vn), ne.startsWith("_")) R += h[0];
|
|
532
|
-
else {
|
|
533
|
-
let On = j.classNameAliases[ne] || ne;
|
|
534
|
-
V(h[0], On);
|
|
535
|
-
}
|
|
536
|
-
} else R += h[0];
|
|
537
|
-
p = N.keywordPatternRe.lastIndex, h = N.keywordPatternRe.exec(z);
|
|
538
|
-
}
|
|
539
|
-
R += z.substring(p), H.addText(R);
|
|
540
|
-
}
|
|
541
|
-
__name($, "$");
|
|
542
|
-
i($, "processKeywords");
|
|
543
|
-
function J() {
|
|
544
|
-
if (z === "") return;
|
|
545
|
-
let p = null;
|
|
546
|
-
if (typeof N.subLanguage == "string") {
|
|
547
|
-
if (!t[N.subLanguage]) {
|
|
548
|
-
H.addText(z);
|
|
549
|
-
return;
|
|
550
|
-
}
|
|
551
|
-
p = _(N.subLanguage, z, true, Te[N.subLanguage]), Te[N.subLanguage] = p._top;
|
|
552
|
-
} else p = E(z, N.subLanguage.length ? N.subLanguage : null);
|
|
553
|
-
N.relevance > 0 && (Se += p.relevance), H.__addSublanguage(p._emitter, p.language);
|
|
554
|
-
}
|
|
555
|
-
__name(J, "J");
|
|
556
|
-
i(J, "processSubLanguage");
|
|
557
|
-
function Z() {
|
|
558
|
-
N.subLanguage != null ? J() : $(), z = "";
|
|
559
|
-
}
|
|
560
|
-
__name(Z, "Z");
|
|
561
|
-
i(Z, "processBuffer");
|
|
562
|
-
function V(p, h) {
|
|
563
|
-
p !== "" && (H.startScope(h), H.addText(p), H.endScope());
|
|
564
|
-
}
|
|
565
|
-
__name(V, "V");
|
|
566
|
-
i(V, "emitKeyword");
|
|
567
|
-
function ce(p, h) {
|
|
568
|
-
let R = 1, L = h.length - 1;
|
|
569
|
-
for (; R <= L; ) {
|
|
570
|
-
if (!p._emit[R]) {
|
|
571
|
-
R++;
|
|
572
|
-
continue;
|
|
573
|
-
}
|
|
574
|
-
let Y = j.classNameAliases[p[R]] || p[R], ne = h[R];
|
|
575
|
-
Y ? V(ne, Y) : (z = ne, $(), z = ""), R++;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
__name(ce, "ce");
|
|
579
|
-
i(ce, "emitMultiClass");
|
|
580
|
-
function ye(p, h) {
|
|
581
|
-
return p.scope && typeof p.scope == "string" && H.openNode(j.classNameAliases[p.scope] || p.scope), p.beginScope && (p.beginScope._wrap ? (V(z, j.classNameAliases[p.beginScope._wrap] || p.beginScope._wrap), z = "") : p.beginScope._multi && (ce(p.beginScope, h), z = "")), N = Object.create(p, { parent: { value: N } }), N;
|
|
582
|
-
}
|
|
583
|
-
__name(ye, "ye");
|
|
584
|
-
i(ye, "startNewMode");
|
|
585
|
-
function be(p, h, R) {
|
|
586
|
-
let L = zn(p.endRe, R);
|
|
587
|
-
if (L) {
|
|
588
|
-
if (p["on:end"]) {
|
|
589
|
-
let Y = new Oe(p);
|
|
590
|
-
p["on:end"](h, Y), Y.isMatchIgnored && (L = false);
|
|
591
|
-
}
|
|
592
|
-
if (L) {
|
|
593
|
-
for (; p.endsParent && p.parent; ) p = p.parent;
|
|
594
|
-
return p;
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
if (p.endsWithParent) return be(p.parent, h, R);
|
|
598
|
-
}
|
|
599
|
-
__name(be, "be");
|
|
600
|
-
i(be, "endOfMode");
|
|
601
|
-
function Pe(p) {
|
|
602
|
-
return N.matcher.regexIndex === 0 ? (z += p[0], 1) : (Ke = true, 0);
|
|
603
|
-
}
|
|
604
|
-
__name(Pe, "Pe");
|
|
605
|
-
i(Pe, "doIgnore");
|
|
606
|
-
function Ue(p) {
|
|
607
|
-
let h = p[0], R = p.rule, L = new Oe(R), Y = [R.__beforeBegin, R["on:begin"]];
|
|
608
|
-
for (let ne of Y) if (ne && (ne(p, L), L.isMatchIgnored)) return Pe(h);
|
|
609
|
-
return R.skip ? z += h : (R.excludeBegin && (z += h), Z(), !R.returnBegin && !R.excludeBegin && (z = h)), ye(R, p), R.returnBegin ? 0 : h.length;
|
|
610
|
-
}
|
|
611
|
-
__name(Ue, "Ue");
|
|
612
|
-
i(Ue, "doBeginMatch");
|
|
613
|
-
function Fe(p) {
|
|
614
|
-
let h = p[0], R = m.substring(p.index), L = be(N, p, R);
|
|
615
|
-
if (!L) return ot;
|
|
616
|
-
let Y = N;
|
|
617
|
-
N.endScope && N.endScope._wrap ? (Z(), V(h, N.endScope._wrap)) : N.endScope && N.endScope._multi ? (Z(), ce(N.endScope, p)) : Y.skip ? z += h : (Y.returnEnd || Y.excludeEnd || (z += h), Z(), Y.excludeEnd && (z = h));
|
|
618
|
-
do
|
|
619
|
-
N.scope && H.closeNode(), !N.skip && !N.subLanguage && (Se += N.relevance), N = N.parent;
|
|
620
|
-
while (N !== L.parent);
|
|
621
|
-
return L.starts && ye(L.starts, p), Y.returnEnd ? 0 : h.length;
|
|
622
|
-
}
|
|
623
|
-
__name(Fe, "Fe");
|
|
624
|
-
i(Fe, "doEndMatch");
|
|
625
|
-
function ze() {
|
|
626
|
-
let p = [];
|
|
627
|
-
for (let h = N; h !== j; h = h.parent) h.scope && p.unshift(h.scope);
|
|
628
|
-
p.forEach((h) => H.openNode(h));
|
|
629
|
-
}
|
|
630
|
-
__name(ze, "ze");
|
|
631
|
-
i(ze, "processContinuations");
|
|
632
|
-
let le = {};
|
|
633
|
-
function Ne(p, h) {
|
|
634
|
-
let R = h && h[0];
|
|
635
|
-
if (z += p, R == null) return Z(), 0;
|
|
636
|
-
if (le.type === "begin" && h.type === "end" && le.index === h.index && R === "") {
|
|
637
|
-
if (z += m.slice(h.index, h.index + 1), !s) {
|
|
638
|
-
let L = new Error(`0 width match regex (${l})`);
|
|
639
|
-
throw L.languageName = l, L.badRule = le.rule, L;
|
|
640
|
-
}
|
|
641
|
-
return 1;
|
|
642
|
-
}
|
|
643
|
-
if (le = h, h.type === "begin") return Ue(h);
|
|
644
|
-
if (h.type === "illegal" && !f) {
|
|
645
|
-
let L = new Error('Illegal lexeme "' + R + '" for mode "' + (N.scope || "<unnamed>") + '"');
|
|
646
|
-
throw L.mode = N, L;
|
|
647
|
-
} else if (h.type === "end") {
|
|
648
|
-
let L = Fe(h);
|
|
649
|
-
if (L !== ot) return L;
|
|
650
|
-
}
|
|
651
|
-
if (h.type === "illegal" && R === "") return h.index === m.length || (z += `
|
|
652
|
-
`), 1;
|
|
653
|
-
if ($e > 1e5 && $e > h.index * 3) throw new Error("potential infinite loop, way more iterations than matches");
|
|
654
|
-
return z += R, R.length;
|
|
655
|
-
}
|
|
656
|
-
__name(Ne, "Ne");
|
|
657
|
-
i(Ne, "processLexeme");
|
|
658
|
-
let j = D(l);
|
|
659
|
-
if (!j) throw oe(g.replace("{}", l)), new Error('Unknown language: "' + l + '"');
|
|
660
|
-
let P = yi(j), ie = "", N = w || P, Te = {}, H = new r.__emitter(r);
|
|
661
|
-
ze();
|
|
662
|
-
let z = "", Se = 0, re = 0, $e = 0, Ke = false;
|
|
663
|
-
try {
|
|
664
|
-
if (j.__emitTokens) j.__emitTokens(m, H);
|
|
665
|
-
else {
|
|
666
|
-
for (N.matcher.considerAll(); ; ) {
|
|
667
|
-
$e++, Ke ? Ke = false : N.matcher.considerAll(), N.matcher.lastIndex = re;
|
|
668
|
-
let p = N.matcher.exec(m);
|
|
669
|
-
if (!p) break;
|
|
670
|
-
let h = m.substring(re, p.index), R = Ne(h, p);
|
|
671
|
-
re = p.index + R;
|
|
672
|
-
}
|
|
673
|
-
Ne(m.substring(re));
|
|
674
|
-
}
|
|
675
|
-
return H.finalize(), ie = H.toHTML(), { language: l, value: ie, relevance: Se, illegal: false, _emitter: H, _top: N };
|
|
676
|
-
} catch (p) {
|
|
677
|
-
if (p.message && p.message.includes("Illegal")) return { language: l, value: Ge(m), illegal: true, relevance: 0, _illegalBy: { message: p.message, index: re, context: m.slice(re - 100, re + 100), mode: p.mode, resultSoFar: ie }, _emitter: H };
|
|
678
|
-
if (s) return { language: l, value: Ge(m), illegal: false, relevance: 0, errorRaised: p, _emitter: H, _top: N };
|
|
679
|
-
throw p;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
__name(_, "_");
|
|
683
|
-
i(_, "_highlight");
|
|
684
|
-
function b(l) {
|
|
685
|
-
let m = { value: Ge(l), illegal: false, relevance: 0, _top: o, _emitter: new r.__emitter(r) };
|
|
686
|
-
return m._emitter.addText(l), m;
|
|
687
|
-
}
|
|
688
|
-
__name(b, "b");
|
|
689
|
-
i(b, "justTextHighlightResult");
|
|
690
|
-
function E(l, m) {
|
|
691
|
-
m = m || r.languages || Object.keys(t);
|
|
692
|
-
let f = b(l), w = m.filter(D).filter(W).map((Z) => _(Z, l, false));
|
|
693
|
-
w.unshift(f);
|
|
694
|
-
let C = w.sort((Z, V) => {
|
|
695
|
-
if (Z.relevance !== V.relevance) return V.relevance - Z.relevance;
|
|
696
|
-
if (Z.language && V.language) {
|
|
697
|
-
if (D(Z.language).supersetOf === V.language) return 1;
|
|
698
|
-
if (D(V.language).supersetOf === Z.language) return -1;
|
|
699
|
-
}
|
|
700
|
-
return 0;
|
|
701
|
-
}), [F, $] = C, J = F;
|
|
702
|
-
return J.secondBest = $, J;
|
|
703
|
-
}
|
|
704
|
-
__name(E, "E");
|
|
705
|
-
i(E, "highlightAuto");
|
|
706
|
-
function T(l, m, f) {
|
|
707
|
-
let w = m && n[m] || f;
|
|
708
|
-
l.classList.add("hljs"), l.classList.add(`language-${w}`);
|
|
709
|
-
}
|
|
710
|
-
__name(T, "T");
|
|
711
|
-
i(T, "updateClassName");
|
|
712
|
-
function y(l) {
|
|
713
|
-
let m = null, f = d(l);
|
|
714
|
-
if (c(f)) return;
|
|
715
|
-
if (K("before:highlightElement", { el: l, language: f }), l.dataset.highlighted) {
|
|
716
|
-
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", l);
|
|
717
|
-
return;
|
|
718
|
-
}
|
|
719
|
-
if (l.children.length > 0 && (r.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(l)), r.throwUnescapedHTML)) throw new qe("One of your code blocks includes unescaped HTML.", l.innerHTML);
|
|
720
|
-
m = l;
|
|
721
|
-
let w = m.textContent, C = f ? u(w, { language: f, ignoreIllegals: true }) : E(w);
|
|
722
|
-
l.innerHTML = C.value, l.dataset.highlighted = "yes", T(l, f, C.language), l.result = { language: C.language, re: C.relevance, relevance: C.relevance }, C.secondBest && (l.secondBest = { language: C.secondBest.language, relevance: C.secondBest.relevance }), K("after:highlightElement", { el: l, result: C, text: w });
|
|
723
|
-
}
|
|
724
|
-
__name(y, "y");
|
|
725
|
-
i(y, "highlightElement");
|
|
726
|
-
function S(l) {
|
|
727
|
-
r = rt(r, l);
|
|
728
|
-
}
|
|
729
|
-
__name(S, "S");
|
|
730
|
-
i(S, "configure");
|
|
731
|
-
let v = i(() => {
|
|
732
|
-
O(), de("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
733
|
-
}, "initHighlighting");
|
|
734
|
-
function k() {
|
|
735
|
-
O(), de("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
736
|
-
}
|
|
737
|
-
__name(k, "k");
|
|
738
|
-
i(k, "initHighlightingOnLoad");
|
|
739
|
-
let M = false;
|
|
740
|
-
function O() {
|
|
741
|
-
function l() {
|
|
742
|
-
O();
|
|
743
|
-
}
|
|
744
|
-
__name(l, "l");
|
|
745
|
-
if (i(l, "boot"), document.readyState === "loading") {
|
|
746
|
-
M || window.addEventListener("DOMContentLoaded", l, false), M = true;
|
|
747
|
-
return;
|
|
748
|
-
}
|
|
749
|
-
document.querySelectorAll(r.cssSelector).forEach(y);
|
|
750
|
-
}
|
|
751
|
-
__name(O, "O");
|
|
752
|
-
i(O, "highlightAll");
|
|
753
|
-
function A(l, m) {
|
|
754
|
-
let f = null;
|
|
755
|
-
try {
|
|
756
|
-
f = m(e);
|
|
757
|
-
} catch (w) {
|
|
758
|
-
if (oe("Language definition for '{}' could not be registered.".replace("{}", l)), s) oe(w);
|
|
759
|
-
else throw w;
|
|
760
|
-
f = o;
|
|
761
|
-
}
|
|
762
|
-
f.name || (f.name = l), t[l] = f, f.rawDefinition = m.bind(null, e), f.aliases && B(f.aliases, { languageName: l });
|
|
763
|
-
}
|
|
764
|
-
__name(A, "A");
|
|
765
|
-
i(A, "registerLanguage");
|
|
766
|
-
function x(l) {
|
|
767
|
-
delete t[l];
|
|
768
|
-
for (let m of Object.keys(n)) n[m] === l && delete n[m];
|
|
769
|
-
}
|
|
770
|
-
__name(x, "x");
|
|
771
|
-
i(x, "unregisterLanguage");
|
|
772
|
-
function I() {
|
|
773
|
-
return Object.keys(t);
|
|
774
|
-
}
|
|
775
|
-
__name(I, "I");
|
|
776
|
-
i(I, "listLanguages");
|
|
777
|
-
function D(l) {
|
|
778
|
-
return l = (l || "").toLowerCase(), t[l] || t[n[l]];
|
|
779
|
-
}
|
|
780
|
-
__name(D, "D");
|
|
781
|
-
i(D, "getLanguage");
|
|
782
|
-
function B(l, { languageName: m }) {
|
|
783
|
-
typeof l == "string" && (l = [l]), l.forEach((f) => {
|
|
784
|
-
n[f.toLowerCase()] = m;
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
__name(B, "B");
|
|
788
|
-
i(B, "registerAliases");
|
|
789
|
-
function W(l) {
|
|
790
|
-
let m = D(l);
|
|
791
|
-
return m && !m.disableAutodetect;
|
|
792
|
-
}
|
|
793
|
-
__name(W, "W");
|
|
794
|
-
i(W, "autoDetection");
|
|
795
|
-
function X(l) {
|
|
796
|
-
l["before:highlightBlock"] && !l["before:highlightElement"] && (l["before:highlightElement"] = (m) => {
|
|
797
|
-
l["before:highlightBlock"](Object.assign({ block: m.el }, m));
|
|
798
|
-
}), l["after:highlightBlock"] && !l["after:highlightElement"] && (l["after:highlightElement"] = (m) => {
|
|
799
|
-
l["after:highlightBlock"](Object.assign({ block: m.el }, m));
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
__name(X, "X");
|
|
803
|
-
i(X, "upgradePluginAPI");
|
|
804
|
-
function Q(l) {
|
|
805
|
-
X(l), a.push(l);
|
|
806
|
-
}
|
|
807
|
-
__name(Q, "Q");
|
|
808
|
-
i(Q, "addPlugin");
|
|
809
|
-
function ee(l) {
|
|
810
|
-
let m = a.indexOf(l);
|
|
811
|
-
m !== -1 && a.splice(m, 1);
|
|
812
|
-
}
|
|
813
|
-
__name(ee, "ee");
|
|
814
|
-
i(ee, "removePlugin");
|
|
815
|
-
function K(l, m) {
|
|
816
|
-
let f = l;
|
|
817
|
-
a.forEach(function(w) {
|
|
818
|
-
w[f] && w[f](m);
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
__name(K, "K");
|
|
822
|
-
i(K, "fire");
|
|
823
|
-
function G(l) {
|
|
824
|
-
return de("10.7.0", "highlightBlock will be removed entirely in v12.0"), de("10.7.0", "Please use highlightElement now."), y(l);
|
|
825
|
-
}
|
|
826
|
-
__name(G, "G");
|
|
827
|
-
i(G, "deprecateHighlightBlock"), Object.assign(e, { highlight: u, highlightAuto: E, highlightAll: O, highlightElement: y, highlightBlock: G, configure: S, initHighlighting: v, initHighlightingOnLoad: k, registerLanguage: A, unregisterLanguage: x, listLanguages: I, getLanguage: D, registerAliases: B, autoDetection: W, inherit: rt, addPlugin: Q, removePlugin: ee }), e.debugMode = function() {
|
|
828
|
-
s = false;
|
|
829
|
-
}, e.safeMode = function() {
|
|
830
|
-
s = true;
|
|
831
|
-
}, e.versionString = Ti, e.regex = { concat: se, lookahead: lt, either: Ae, optional: Un, anyNumberOfTimes: Pn };
|
|
832
|
-
for (let l in ve) typeof ve[l] == "object" && st(ve[l]);
|
|
833
|
-
return Object.assign(e, ve), e;
|
|
834
|
-
}, "HLJS"), ue = _t({});
|
|
835
|
-
ue.newInstance = () => _t({});
|
|
836
|
-
ht.exports = ue;
|
|
837
|
-
ue.HighlightJS = ue;
|
|
838
|
-
ue.default = ue;
|
|
839
|
-
});
|
|
840
|
-
var ga = {};
|
|
841
|
-
Cn(ga, { CodeEngine: /* @__PURE__ */ __name(() => je, "CodeEngine") });
|
|
842
|
-
var Nt = In(yt(), 1);
|
|
843
|
-
var Tt = Nt.default;
|
|
844
|
-
function St(e) {
|
|
845
|
-
let t = e.regex, n = {}, a = { begin: /\$\{/, end: /\}/, contains: ["self", { begin: /:-/, contains: [n] }] };
|
|
846
|
-
Object.assign(n, { className: "variable", variants: [{ begin: t.concat(/\$[\w\d#@][\w\d_]*/, "(?![\\w\\d])(?![$])") }, a] });
|
|
847
|
-
let s = { className: "subst", begin: /\$\(/, end: /\)/, contains: [e.BACKSLASH_ESCAPE] }, g = e.inherit(e.COMMENT(), { match: [/(^|\s)/, /#.*$/], scope: { 2: "comment" } }), o = { begin: /<<-?\s*(?=\w+)/, starts: { contains: [e.END_SAME_AS_BEGIN({ begin: /(\w+)/, end: /(\w+)/, className: "string" })] } }, r = { className: "string", begin: /"/, end: /"/, contains: [e.BACKSLASH_ESCAPE, n, s] };
|
|
848
|
-
s.contains.push(r);
|
|
849
|
-
let c = { match: /\\"/ }, d = { className: "string", begin: /'/, end: /'/ }, u = { match: /\\'/ }, _ = { begin: /\$?\(\(/, end: /\)\)/, contains: [{ begin: /\d+#[0-9a-f]+/, className: "number" }, e.NUMBER_MODE, n] }, b = ["fish", "bash", "zsh", "sh", "csh", "ksh", "tcsh", "dash", "scsh"], E = e.SHEBANG({ binary: `(${b.join("|")})`, relevance: 10 }), T = { className: "function", begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/, returnBegin: true, contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })], relevance: 0 }, y = ["if", "then", "else", "elif", "fi", "time", "for", "while", "until", "in", "do", "done", "case", "esac", "coproc", "function", "select"], S = ["true", "false"], v = { match: /(\/[a-z._-]+)+/ }, k = ["break", "cd", "continue", "eval", "exec", "exit", "export", "getopts", "hash", "pwd", "readonly", "return", "shift", "test", "times", "trap", "umask", "unset"], M = ["alias", "bind", "builtin", "caller", "command", "declare", "echo", "enable", "help", "let", "local", "logout", "mapfile", "printf", "read", "readarray", "source", "sudo", "type", "typeset", "ulimit", "unalias"], O = ["autoload", "bg", "bindkey", "bye", "cap", "chdir", "clone", "comparguments", "compcall", "compctl", "compdescribe", "compfiles", "compgroups", "compquote", "comptags", "comptry", "compvalues", "dirs", "disable", "disown", "echotc", "echoti", "emulate", "fc", "fg", "float", "functions", "getcap", "getln", "history", "integer", "jobs", "kill", "limit", "log", "noglob", "popd", "print", "pushd", "pushln", "rehash", "sched", "setcap", "setopt", "stat", "suspend", "ttyctl", "unfunction", "unhash", "unlimit", "unsetopt", "vared", "wait", "whence", "where", "which", "zcompile", "zformat", "zftp", "zle", "zmodload", "zparseopts", "zprof", "zpty", "zregexparse", "zsocket", "zstyle", "ztcp"], A = ["chcon", "chgrp", "chown", "chmod", "cp", "dd", "df", "dir", "dircolors", "ln", "ls", "mkdir", "mkfifo", "mknod", "mktemp", "mv", "realpath", "rm", "rmdir", "shred", "sync", "touch", "truncate", "vdir", "b2sum", "base32", "base64", "cat", "cksum", "comm", "csplit", "cut", "expand", "fmt", "fold", "head", "join", "md5sum", "nl", "numfmt", "od", "paste", "ptx", "pr", "sha1sum", "sha224sum", "sha256sum", "sha384sum", "sha512sum", "shuf", "sort", "split", "sum", "tac", "tail", "tr", "tsort", "unexpand", "uniq", "wc", "arch", "basename", "chroot", "date", "dirname", "du", "echo", "env", "expr", "factor", "groups", "hostid", "id", "link", "logname", "nice", "nohup", "nproc", "pathchk", "pinky", "printenv", "printf", "pwd", "readlink", "runcon", "seq", "sleep", "stat", "stdbuf", "stty", "tee", "test", "timeout", "tty", "uname", "unlink", "uptime", "users", "who", "whoami", "yes"];
|
|
850
|
-
return { name: "Bash", aliases: ["sh", "zsh"], keywords: { $pattern: /\b[a-z][a-z0-9._-]+\b/, keyword: y, literal: S, built_in: [...k, ...M, "set", "shopt", ...O, ...A] }, contains: [E, e.SHEBANG(), T, _, g, o, v, r, c, d, u, n] };
|
|
851
|
-
}
|
|
852
|
-
__name(St, "St");
|
|
853
|
-
i(St, "bash");
|
|
854
|
-
var vi = i((e) => ({ IMPORTANT: { scope: "meta", begin: "!important" }, BLOCK_COMMENT: e.C_BLOCK_COMMENT_MODE, HEXCOLOR: { scope: "number", begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ }, UNICODE_RANGE: { scope: "number", begin: /\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/ }, FUNCTION_DISPATCH: { className: "built_in", begin: /[\w-]+(?=\()/ }, ATTRIBUTE_SELECTOR_MODE: { scope: "selector-attr", begin: /\[/, end: /\]/, illegal: "$", contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE] }, CSS_NUMBER_MODE: { scope: "number", begin: e.NUMBER_RE + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", relevance: 0 }, CSS_VARIABLE: { className: "attr", begin: /--[A-Za-z_][A-Za-z0-9_-]*/ } }), "MODES"), Oi = ["a", "abbr", "address", "article", "aside", "audio", "b", "blockquote", "body", "button", "canvas", "caption", "cite", "code", "dd", "del", "details", "dfn", "div", "dl", "dt", "em", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "mark", "menu", "nav", "object", "ol", "optgroup", "option", "p", "picture", "q", "quote", "samp", "section", "select", "source", "span", "strong", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "ul", "var", "video"], wi = ["defs", "g", "marker", "mask", "pattern", "svg", "switch", "symbol", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feFlood", "feGaussianBlur", "feImage", "feMerge", "feMorphology", "feOffset", "feSpecularLighting", "feTile", "feTurbulence", "linearGradient", "radialGradient", "stop", "circle", "ellipse", "image", "line", "path", "polygon", "polyline", "rect", "text", "use", "textPath", "tspan", "foreignObject", "clipPath"], Ai = [...Oi, ...wi], Ri = ["any-hover", "any-pointer", "aspect-ratio", "color", "color-gamut", "color-index", "device-aspect-ratio", "device-height", "device-width", "display-mode", "forced-colors", "grid", "height", "hover", "inverted-colors", "monochrome", "orientation", "overflow-block", "overflow-inline", "pointer", "prefers-color-scheme", "prefers-contrast", "prefers-reduced-motion", "prefers-reduced-transparency", "resolution", "scan", "scripting", "update", "width", "min-width", "max-width", "min-height", "max-height"].sort().reverse(), xi = ["active", "any-link", "blank", "checked", "current", "default", "defined", "dir", "disabled", "drop", "empty", "enabled", "first", "first-child", "first-of-type", "fullscreen", "future", "focus", "focus-visible", "focus-within", "has", "host", "host-context", "hover", "indeterminate", "in-range", "invalid", "is", "lang", "last-child", "last-of-type", "left", "link", "local-link", "not", "nth-child", "nth-col", "nth-last-child", "nth-last-col", "nth-last-of-type", "nth-of-type", "only-child", "only-of-type", "optional", "out-of-range", "past", "placeholder-shown", "read-only", "read-write", "required", "right", "root", "scope", "target", "target-within", "user-invalid", "valid", "visited", "where"].sort().reverse(), ki = ["after", "backdrop", "before", "cue", "cue-region", "first-letter", "first-line", "grammar-error", "marker", "part", "placeholder", "selection", "slotted", "spelling-error"].sort().reverse(), Mi = ["accent-color", "align-content", "align-items", "align-self", "alignment-baseline", "all", "anchor-name", "animation", "animation-composition", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-range", "animation-range-end", "animation-range-start", "animation-timeline", "animation-timing-function", "appearance", "aspect-ratio", "backdrop-filter", "backface-visibility", "background", "background-attachment", "background-blend-mode", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-position-x", "background-position-y", "background-repeat", "background-size", "baseline-shift", "block-size", "border", "border-block", "border-block-color", "border-block-end", "border-block-end-color", "border-block-end-style", "border-block-end-width", "border-block-start", "border-block-start-color", "border-block-start-style", "border-block-start-width", "border-block-style", "border-block-width", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-end-end-radius", "border-end-start-radius", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-inline", "border-inline-color", "border-inline-end", "border-inline-end-color", "border-inline-end-style", "border-inline-end-width", "border-inline-start", "border-inline-start-color", "border-inline-start-style", "border-inline-start-width", "border-inline-style", "border-inline-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-start-end-radius", "border-start-start-radius", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-align", "box-decoration-break", "box-direction", "box-flex", "box-flex-group", "box-lines", "box-ordinal-group", "box-orient", "box-pack", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "caret-color", "clear", "clip", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "color-scheme", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "contain", "contain-intrinsic-block-size", "contain-intrinsic-height", "contain-intrinsic-inline-size", "contain-intrinsic-size", "contain-intrinsic-width", "container", "container-name", "container-type", "content", "content-visibility", "corner-bottom-left-shape", "corner-bottom-right-shape", "corner-shape", "corner-top-left-shape", "corner-top-right-shape", "counter-increment", "counter-reset", "counter-set", "cue", "cue-after", "cue-before", "cursor", "cx", "cy", "direction", "display", "dominant-baseline", "empty-cells", "enable-background", "field-sizing", "fill", "fill-opacity", "fill-rule", "filter", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "flood-color", "flood-opacity", "flow", "font", "font-display", "font-family", "font-feature-settings", "font-kerning", "font-language-override", "font-optical-sizing", "font-palette", "font-size", "font-size-adjust", "font-smooth", "font-smoothing", "font-stretch", "font-style", "font-synthesis", "font-synthesis-position", "font-synthesis-small-caps", "font-synthesis-style", "font-synthesis-weight", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-emoji", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-variation-settings", "font-weight", "forced-color-adjust", "gap", "glyph-orientation-horizontal", "glyph-orientation-vertical", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphenate-character", "hyphenate-limit-chars", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "ime-mode", "initial-letter", "initial-letter-align", "inline-size", "inset", "inset-area", "inset-block", "inset-block-end", "inset-block-start", "inset-inline", "inset-inline-end", "inset-inline-start", "isolation", "justify-content", "justify-items", "justify-self", "kerning", "left", "letter-spacing", "lighting-color", "line-break", "line-height", "line-height-step", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-block", "margin-block-end", "margin-block-start", "margin-bottom", "margin-inline", "margin-inline-end", "margin-inline-start", "margin-left", "margin-right", "margin-top", "margin-trim", "marker", "marker-end", "marker-mid", "marker-start", "marks", "mask", "mask-border", "mask-border-mode", "mask-border-outset", "mask-border-repeat", "mask-border-slice", "mask-border-source", "mask-border-width", "mask-clip", "mask-composite", "mask-image", "mask-mode", "mask-origin", "mask-position", "mask-repeat", "mask-size", "mask-type", "masonry-auto-flow", "math-depth", "math-shift", "math-style", "max-block-size", "max-height", "max-inline-size", "max-width", "min-block-size", "min-height", "min-inline-size", "min-width", "mix-blend-mode", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "none", "normal", "object-fit", "object-position", "offset", "offset-anchor", "offset-distance", "offset-path", "offset-position", "offset-rotate", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-anchor", "overflow-block", "overflow-clip-margin", "overflow-inline", "overflow-wrap", "overflow-x", "overflow-y", "overlay", "overscroll-behavior", "overscroll-behavior-block", "overscroll-behavior-inline", "overscroll-behavior-x", "overscroll-behavior-y", "padding", "padding-block", "padding-block-end", "padding-block-start", "padding-bottom", "padding-inline", "padding-inline-end", "padding-inline-start", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "paint-order", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "place-content", "place-items", "place-self", "pointer-events", "position", "position-anchor", "position-visibility", "print-color-adjust", "quotes", "r", "resize", "rest", "rest-after", "rest-before", "right", "rotate", "row-gap", "ruby-align", "ruby-position", "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block", "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom", "scroll-margin-inline", "scroll-margin-inline-end", "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right", "scroll-margin-top", "scroll-padding", "scroll-padding-block", "scroll-padding-block-end", "scroll-padding-block-start", "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end", "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right", "scroll-padding-top", "scroll-snap-align", "scroll-snap-stop", "scroll-snap-type", "scroll-timeline", "scroll-timeline-axis", "scroll-timeline-name", "scrollbar-color", "scrollbar-gutter", "scrollbar-width", "shape-image-threshold", "shape-margin", "shape-outside", "shape-rendering", "speak", "speak-as", "src", "stop-color", "stop-opacity", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "tab-size", "table-layout", "text-align", "text-align-all", "text-align-last", "text-anchor", "text-combine-upright", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-skip-ink", "text-decoration-style", "text-decoration-thickness", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-indent", "text-justify", "text-orientation", "text-overflow", "text-rendering", "text-shadow", "text-size-adjust", "text-transform", "text-underline-offset", "text-underline-position", "text-wrap", "text-wrap-mode", "text-wrap-style", "timeline-scope", "top", "touch-action", "transform", "transform-box", "transform-origin", "transform-style", "transition", "transition-behavior", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "translate", "unicode-bidi", "unicode-range", "user-modify", "user-select", "vector-effect", "vertical-align", "view-timeline", "view-timeline-axis", "view-timeline-inset", "view-timeline-name", "view-transition-name", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "white-space", "white-space-collapse", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "x", "y", "z-index", "zoom"].sort().reverse();
|
|
855
|
-
function vt(e) {
|
|
856
|
-
let t = e.regex, n = vi(e), a = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, s = "and or not only", g = /@-?\w[\w]*(-\w+)*/, o = "[a-zA-Z-][a-zA-Z0-9_-]*", r = [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE];
|
|
857
|
-
return { name: "CSS", case_insensitive: true, illegal: /[=|'\$]/, keywords: { keyframePosition: "from to" }, classNameAliases: { keyframePosition: "selector-tag" }, contains: [n.BLOCK_COMMENT, a, n.CSS_NUMBER_MODE, { className: "selector-id", begin: /#[A-Za-z0-9_-]+/, relevance: 0 }, { className: "selector-class", begin: "\\." + o, relevance: 0 }, n.ATTRIBUTE_SELECTOR_MODE, { className: "selector-pseudo", variants: [{ begin: ":(" + xi.join("|") + ")" }, { begin: ":(:)?(" + ki.join("|") + ")" }] }, n.CSS_VARIABLE, { className: "attribute", begin: "\\b(" + Mi.join("|") + ")\\b" }, { begin: /:/, end: /[;}{]/, contains: [n.BLOCK_COMMENT, n.HEXCOLOR, n.IMPORTANT, n.CSS_NUMBER_MODE, n.UNICODE_RANGE, ...r, { begin: /(url|data-uri)\(/, end: /\)/, relevance: 0, keywords: { built_in: "url data-uri" }, contains: [...r, { className: "string", begin: /[^)]/, endsWithParent: true, excludeEnd: true }] }, n.FUNCTION_DISPATCH] }, { begin: t.lookahead(/@/), end: "[{;]", relevance: 0, illegal: /:/, contains: [{ className: "keyword", begin: g }, { begin: /\s/, endsWithParent: true, excludeEnd: true, relevance: 0, keywords: { $pattern: /[a-z-]+/, keyword: s, attribute: Ri.join(" ") }, contains: [{ begin: /[a-z-]+(?=:)/, className: "attribute" }, ...r, n.CSS_NUMBER_MODE] }] }, { className: "selector-tag", begin: "\\b(" + Ai.join("|") + ")\\b" }] };
|
|
858
|
-
}
|
|
859
|
-
__name(vt, "vt");
|
|
860
|
-
i(vt, "css");
|
|
861
|
-
var Ot = "[A-Za-z$_][0-9A-Za-z$_]*", Ci = ["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"], Ii = ["true", "false", "null", "undefined", "NaN", "Infinity"], wt = ["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"], At = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], Rt = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], Di = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "self", "global"], Li = [].concat(Rt, wt, At);
|
|
862
|
-
function xt(e) {
|
|
863
|
-
let t = e.regex, n = i((f, { after: w }) => {
|
|
864
|
-
let C = "</" + f[0].slice(1);
|
|
865
|
-
return f.input.indexOf(C, w) !== -1;
|
|
866
|
-
}, "hasClosingTag"), a = Ot, s = { begin: "<>", end: "</>" }, g = /<[A-Za-z0-9\\._:-]+\s*\/>/, o = { begin: /<[A-Za-z0-9\\._:-]+/, end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: i((f, w) => {
|
|
867
|
-
let C = f[0].length + f.index, F = f.input[C];
|
|
868
|
-
if (F === "<" || F === ",") {
|
|
869
|
-
w.ignoreMatch();
|
|
870
|
-
return;
|
|
871
|
-
}
|
|
872
|
-
F === ">" && (n(f, { after: C }) || w.ignoreMatch());
|
|
873
|
-
let $, J = f.input.substring(C);
|
|
874
|
-
if ($ = J.match(/^\s*=/)) {
|
|
875
|
-
w.ignoreMatch();
|
|
876
|
-
return;
|
|
877
|
-
}
|
|
878
|
-
if (($ = J.match(/^\s+extends\s+/)) && $.index === 0) {
|
|
879
|
-
w.ignoreMatch();
|
|
880
|
-
return;
|
|
881
|
-
}
|
|
882
|
-
}, "isTrulyOpeningTag") }, r = { $pattern: Ot, keyword: Ci, literal: Ii, built_in: Li, "variable.language": Di }, c = "[0-9](_?[0-9])*", d = `\\.(${c})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", _ = { className: "number", variants: [{ begin: `(\\b(${u})((${d})|\\.)?|(${d}))[eE][+-]?(${c})\\b` }, { begin: `\\b(${u})\\b((${d})\\b|\\.)?|(${d})\\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 }, b = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: r, contains: [] }, E = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: false, contains: [e.BACKSLASH_ESCAPE, b], subLanguage: "xml" } }, T = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: false, contains: [e.BACKSLASH_ESCAPE, b], subLanguage: "css" } }, y = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: false, contains: [e.BACKSLASH_ESCAPE, b], subLanguage: "graphql" } }, S = { className: "string", begin: "`", end: "`", contains: [e.BACKSLASH_ESCAPE, b] }, k = { className: "comment", variants: [e.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: true, excludeBegin: true, relevance: 0 }, { className: "variable", begin: a + "(?=\\s*(-)|$)", endsParent: true, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), e.C_BLOCK_COMMENT_MODE, e.C_LINE_COMMENT_MODE] }, M = [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, E, T, y, S, { match: /\$\d+/ }, _];
|
|
883
|
-
b.contains = M.concat({ begin: /\{/, end: /\}/, keywords: r, contains: ["self"].concat(M) });
|
|
884
|
-
let O = [].concat(k, b.contains), A = O.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: r, contains: ["self"].concat(O) }]), x = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: true, excludeEnd: true, keywords: r, contains: A }, I = { variants: [{ match: [/class/, /\s+/, a, /\s+/, /extends/, /\s+/, t.concat(a, "(", t.concat(/\./, a), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, a], scope: { 1: "keyword", 3: "title.class" } }] }, D = { relevance: 0, match: t.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: { _: [...wt, ...At] } }, B = { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, W = { variants: [{ match: [/function/, /\s+/, a, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [x], illegal: /%/ }, X = { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" };
|
|
885
|
-
function Q(f) {
|
|
886
|
-
return t.concat("(?!", f.join("|"), ")");
|
|
887
|
-
}
|
|
888
|
-
__name(Q, "Q");
|
|
889
|
-
i(Q, "noneOf");
|
|
890
|
-
let ee = { match: t.concat(/\b/, Q([...Rt, "super", "import", "await"].map((f) => `${f}\\s*\\(`)), a, t.lookahead(/\s*\(/)), className: "title.function", relevance: 0 }, K = { begin: t.concat(/\./, t.lookahead(t.concat(a, /(?![0-9A-Za-z$_(])/))), end: a, excludeBegin: true, keywords: "prototype", className: "property", relevance: 0 }, G = { match: [/get|set/, /\s+/, a, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, x] }, l = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", m = { match: [/const|var|let/, /\s+/, a, /\s*/, /=\s*/, /(async\s*)?/, t.lookahead(l)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [x] };
|
|
891
|
-
return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: r, exports: { PARAMS_CONTAINS: A, CLASS_REFERENCE: D }, illegal: /#(?![$_A-Za-z])/, contains: [e.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), B, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, E, T, y, S, k, { match: /\$\d+/ }, _, D, { scope: "attr", match: a + t.lookahead(":"), relevance: 0 }, m, { begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [k, e.REGEXP_MODE, { className: "function", begin: l, returnBegin: true, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: e.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: true }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: true, excludeEnd: true, keywords: r, contains: A }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: s.begin, end: s.end }, { match: g }, { begin: o.begin, "on:begin": o.isTrulyOpeningTag, end: o.end }], subLanguage: "xml", contains: [{ begin: o.begin, end: o.end, skip: true, contains: ["self"] }] }] }, W, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: true, label: "func.def", contains: [x, e.inherit(e.TITLE_MODE, { begin: a, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, K, { match: "\\$" + a, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [x] }, ee, X, I, G, { match: /\$[(.]/ }] };
|
|
892
|
-
}
|
|
893
|
-
__name(xt, "xt");
|
|
894
|
-
i(xt, "javascript");
|
|
895
|
-
var Bi = "([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity", Pi = { scope: "number", match: Bi, relevance: 0 };
|
|
896
|
-
function kt(e) {
|
|
897
|
-
let t = { className: "attr", begin: /(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/, relevance: 1.01 }, n = { match: /[{}[\],:]/, className: "punctuation", relevance: 0 }, a = ["true", "false", "null"], s = { scope: "literal", beginKeywords: a.join(" ") };
|
|
898
|
-
return { name: "JSON", aliases: ["jsonc", "json5"], keywords: { literal: a }, contains: [t, n, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, s, Pi, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE], illegal: "\\S" };
|
|
899
|
-
}
|
|
900
|
-
__name(kt, "kt");
|
|
901
|
-
i(kt, "json");
|
|
902
|
-
function Mt(e) {
|
|
903
|
-
let t = e.regex, n = { begin: /<\/?[A-Za-z_]/, end: ">", subLanguage: "xml", relevance: 0 }, a = { match: /^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/ }, s = { className: "code", variants: [{ begin: "(`{3,})[^`](.|\\n)*?\\1`*[ ]*" }, { begin: "(~{3,})[^~](.|\\n)*?\\1~*[ ]*" }, { begin: "```", end: "```+[ ]*$" }, { begin: "~~~", end: "~~~+[ ]*$" }, { begin: "`.+?`" }, { begin: "(?=^( {4}|\\t))", contains: [{ begin: "^( {4}|\\t)", end: "(\\n)$" }], relevance: 0 }] }, g = { className: "bullet", begin: "^[ ]*([*+-]|(\\d+\\.))(?=\\s+)", end: "\\s+", excludeEnd: true }, o = { begin: /^\[[^\n]+\]:/, returnBegin: true, contains: [{ className: "symbol", begin: /\[/, end: /\]/, excludeBegin: true, excludeEnd: true }, { className: "link", begin: /:\s*/, end: /$/, excludeBegin: true }] }, r = /[A-Za-z][A-Za-z0-9+.-]*/, c = { variants: [{ begin: /\[.+?\]\[.*?\]/, relevance: 0 }, { begin: /\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/, relevance: 2 }, { begin: t.concat(/\[.+?\]\(/, r, /:\/\/.*?\)/), relevance: 2 }, { begin: /\[.+?\]\([./?&#].*?\)/, relevance: 1 }, { begin: /\[.*?\]\(.*?\)/, relevance: 0 }], returnBegin: true, contains: [{ match: /\[(?=\])/ }, { className: "string", relevance: 0, begin: "\\[", end: "\\]", excludeBegin: true, returnEnd: true }, { className: "link", relevance: 0, begin: "\\]\\(", end: "\\)", excludeBegin: true, excludeEnd: true }, { className: "symbol", relevance: 0, begin: "\\]\\[", end: "\\]", excludeBegin: true, excludeEnd: true }] }, d = { className: "strong", contains: [], variants: [{ begin: /_{2}(?!\s)/, end: /_{2}/ }, { begin: /\*{2}(?!\s)/, end: /\*{2}/ }] }, u = { className: "emphasis", contains: [], variants: [{ begin: /\*(?![*\s])/, end: /\*/ }, { begin: /_(?![_\s])/, end: /_/, relevance: 0 }] }, _ = e.inherit(d, { contains: [] }), b = e.inherit(u, { contains: [] });
|
|
904
|
-
d.contains.push(b), u.contains.push(_);
|
|
905
|
-
let E = [n, c];
|
|
906
|
-
return [d, u, _, b].forEach((v) => {
|
|
907
|
-
v.contains = v.contains.concat(E);
|
|
908
|
-
}), E = E.concat(d, u), { name: "Markdown", aliases: ["md", "mkdown", "mkd"], contains: [{ className: "section", variants: [{ begin: "^#{1,6}", end: "$", contains: E }, { begin: "(?=^.+?\\n[=-]{2,}$)", contains: [{ begin: "^[=-]*$" }, { begin: "^", end: "\\n", contains: E }] }] }, n, g, a, d, u, { className: "quote", begin: "^>\\s+", contains: E, end: "$" }, s, c, o, { scope: "literal", match: /&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/ }] };
|
|
909
|
-
}
|
|
910
|
-
__name(Mt, "Mt");
|
|
911
|
-
i(Mt, "markdown");
|
|
912
|
-
function Ct(e) {
|
|
913
|
-
return { name: "Plain text", aliases: ["text", "txt"], disableAutodetect: true };
|
|
914
|
-
}
|
|
915
|
-
__name(Ct, "Ct");
|
|
916
|
-
i(Ct, "plaintext");
|
|
917
|
-
function It(e) {
|
|
918
|
-
let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, a = ["and", "as", "assert", "async", "await", "break", "case", "class", "continue", "def", "del", "elif", "else", "except", "finally", "for", "from", "global", "if", "import", "in", "is", "lambda", "lazy", "match", "nonlocal|10", "not", "or", "pass", "raise", "return", "try", "while", "with", "yield"], r = { $pattern: /[A-Za-z]\w+|__\w+__/, keyword: a, built_in: ["__import__", "abs", "aiter", "all", "anext", "any", "ascii", "bin", "bool", "breakpoint", "bytearray", "bytes", "callable", "chr", "classmethod", "compile", "complex", "delattr", "dict", "dir", "divmod", "enumerate", "eval", "exec", "filter", "float", "format", "frozendict", "frozenset", "getattr", "globals", "hasattr", "hash", "help", "hex", "id", "input", "int", "isinstance", "issubclass", "iter", "len", "list", "locals", "map", "max", "memoryview", "min", "next", "object", "oct", "open", "ord", "pow", "print", "property", "range", "repr", "reversed", "round", "sentinel", "set", "setattr", "slice", "sorted", "staticmethod", "str", "sum", "super", "tuple", "type", "vars", "zip"], literal: ["__debug__", "Ellipsis", "False", "None", "NotImplemented", "True"], type: ["Any", "Callable", "Coroutine", "Dict", "List", "Literal", "Generic", "Optional", "Sequence", "Set", "Tuple", "Type", "Union"] }, c = { className: "meta", begin: /^(>>>|\.\.\.) / }, d = { className: "subst", begin: /\{/, end: /\}/, keywords: r, illegal: /#/ }, u = { begin: /\{\{/, relevance: 0 }, _ = { className: "string", contains: [e.BACKSLASH_ESCAPE], variants: [{ begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/, end: /'''/, contains: [e.BACKSLASH_ESCAPE, c], relevance: 10 }, { begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/, end: /"""/, contains: [e.BACKSLASH_ESCAPE, c], relevance: 10 }, { begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'''/, end: /'''/, contains: [e.BACKSLASH_ESCAPE, c, u, d] }, { begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"""/, end: /"""/, contains: [e.BACKSLASH_ESCAPE, c, u, d] }, { begin: /([uU]|[rR])'/, end: /'/, relevance: 10 }, { begin: /([uU]|[rR])"/, end: /"/, relevance: 10 }, { begin: /([bB]|[bB][rR]|[rR][bB])'/, end: /'/ }, { begin: /([bB]|[bB][rR]|[rR][bB])"/, end: /"/ }, { begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'/, end: /'/, contains: [e.BACKSLASH_ESCAPE, u, d] }, { begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"/, end: /"/, contains: [e.BACKSLASH_ESCAPE, u, d] }, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE] }, b = "[0-9](_?[0-9])*", E = `(\\b(${b}))?\\.(${b})|\\b(${b})\\.`, T = `\\b|${a.join("|")}`, y = { className: "number", relevance: 0, variants: [{ begin: `(\\b(${b})|(${E}))[eE][+-]?(${b})[jJ]?(?=${T})` }, { begin: `(${E})[jJ]?` }, { begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${T})` }, { begin: `\\b0[bB](_?[01])+[lL]?(?=${T})` }, { begin: `\\b0[oO](_?[0-7])+[lL]?(?=${T})` }, { begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${T})` }, { begin: `\\b(${b})[jJ](?=${T})` }] }, S = { className: "comment", begin: t.lookahead(/# type:/), end: /$/, keywords: r, contains: [{ begin: /# type:/ }, { begin: /#/, end: /\b\B/, endsWithParent: true }] }, v = { className: "params", variants: [{ className: "", begin: /\(\s*\)/, skip: true }, { begin: /\(/, end: /\)/, excludeBegin: true, excludeEnd: true, keywords: r, contains: ["self", c, y, _, e.HASH_COMMENT_MODE] }] };
|
|
919
|
-
return d.contains = [_, y, c], { name: "Python", aliases: ["py", "gyp", "ipython"], unicodeRegex: true, keywords: r, illegal: /(<\/|\?)|=>/, contains: [c, y, { scope: "variable.language", match: /\bself\b/ }, { beginKeywords: "if", relevance: 0 }, { match: /\bor\b/, scope: "keyword" }, _, S, e.HASH_COMMENT_MODE, { match: [/\bdef/, /\s+/, n], scope: { 1: "keyword", 3: "title.function" }, contains: [v] }, { variants: [{ match: [/\bclass/, /\s+/, n, /\s*/, /\(\s*/, n, /\s*\)/] }, { match: [/\bclass/, /\s+/, n] }], scope: { 1: "keyword", 3: "title.class", 6: "title.class.inherited" } }, { className: "meta", begin: /^[\t ]*@/, end: /(?=#)|$/, contains: [y, v, _] }] };
|
|
920
|
-
}
|
|
921
|
-
__name(It, "It");
|
|
922
|
-
i(It, "python");
|
|
923
|
-
var xe = "[A-Za-z$_][0-9A-Za-z$_]*", Dt = ["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"], Lt = ["true", "false", "null", "undefined", "NaN", "Infinity"], Bt = ["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"], Pt = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], Ut = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], Ft = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "self", "global"], zt = [].concat(Ut, Bt, Pt);
|
|
924
|
-
function Ui(e) {
|
|
925
|
-
let t = e.regex, n = i((f, { after: w }) => {
|
|
926
|
-
let C = "</" + f[0].slice(1);
|
|
927
|
-
return f.input.indexOf(C, w) !== -1;
|
|
928
|
-
}, "hasClosingTag"), a = xe, s = { begin: "<>", end: "</>" }, g = /<[A-Za-z0-9\\._:-]+\s*\/>/, o = { begin: /<[A-Za-z0-9\\._:-]+/, end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: i((f, w) => {
|
|
929
|
-
let C = f[0].length + f.index, F = f.input[C];
|
|
930
|
-
if (F === "<" || F === ",") {
|
|
931
|
-
w.ignoreMatch();
|
|
932
|
-
return;
|
|
933
|
-
}
|
|
934
|
-
F === ">" && (n(f, { after: C }) || w.ignoreMatch());
|
|
935
|
-
let $, J = f.input.substring(C);
|
|
936
|
-
if ($ = J.match(/^\s*=/)) {
|
|
937
|
-
w.ignoreMatch();
|
|
938
|
-
return;
|
|
939
|
-
}
|
|
940
|
-
if (($ = J.match(/^\s+extends\s+/)) && $.index === 0) {
|
|
941
|
-
w.ignoreMatch();
|
|
942
|
-
return;
|
|
943
|
-
}
|
|
944
|
-
}, "isTrulyOpeningTag") }, r = { $pattern: xe, keyword: Dt, literal: Lt, built_in: zt, "variable.language": Ft }, c = "[0-9](_?[0-9])*", d = `\\.(${c})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", _ = { className: "number", variants: [{ begin: `(\\b(${u})((${d})|\\.)?|(${d}))[eE][+-]?(${c})\\b` }, { begin: `\\b(${u})\\b((${d})\\b|\\.)?|(${d})\\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 }, b = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: r, contains: [] }, E = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: false, contains: [e.BACKSLASH_ESCAPE, b], subLanguage: "xml" } }, T = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: false, contains: [e.BACKSLASH_ESCAPE, b], subLanguage: "css" } }, y = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: false, contains: [e.BACKSLASH_ESCAPE, b], subLanguage: "graphql" } }, S = { className: "string", begin: "`", end: "`", contains: [e.BACKSLASH_ESCAPE, b] }, k = { className: "comment", variants: [e.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: true, excludeBegin: true, relevance: 0 }, { className: "variable", begin: a + "(?=\\s*(-)|$)", endsParent: true, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), e.C_BLOCK_COMMENT_MODE, e.C_LINE_COMMENT_MODE] }, M = [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, E, T, y, S, { match: /\$\d+/ }, _];
|
|
945
|
-
b.contains = M.concat({ begin: /\{/, end: /\}/, keywords: r, contains: ["self"].concat(M) });
|
|
946
|
-
let O = [].concat(k, b.contains), A = O.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: r, contains: ["self"].concat(O) }]), x = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: true, excludeEnd: true, keywords: r, contains: A }, I = { variants: [{ match: [/class/, /\s+/, a, /\s+/, /extends/, /\s+/, t.concat(a, "(", t.concat(/\./, a), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, a], scope: { 1: "keyword", 3: "title.class" } }] }, D = { relevance: 0, match: t.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: { _: [...Bt, ...Pt] } }, B = { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, W = { variants: [{ match: [/function/, /\s+/, a, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [x], illegal: /%/ }, X = { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" };
|
|
947
|
-
function Q(f) {
|
|
948
|
-
return t.concat("(?!", f.join("|"), ")");
|
|
949
|
-
}
|
|
950
|
-
__name(Q, "Q");
|
|
951
|
-
i(Q, "noneOf");
|
|
952
|
-
let ee = { match: t.concat(/\b/, Q([...Ut, "super", "import", "await"].map((f) => `${f}\\s*\\(`)), a, t.lookahead(/\s*\(/)), className: "title.function", relevance: 0 }, K = { begin: t.concat(/\./, t.lookahead(t.concat(a, /(?![0-9A-Za-z$_(])/))), end: a, excludeBegin: true, keywords: "prototype", className: "property", relevance: 0 }, G = { match: [/get|set/, /\s+/, a, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, x] }, l = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", m = { match: [/const|var|let/, /\s+/, a, /\s*/, /=\s*/, /(async\s*)?/, t.lookahead(l)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [x] };
|
|
953
|
-
return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: r, exports: { PARAMS_CONTAINS: A, CLASS_REFERENCE: D }, illegal: /#(?![$_A-Za-z])/, contains: [e.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), B, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, E, T, y, S, k, { match: /\$\d+/ }, _, D, { scope: "attr", match: a + t.lookahead(":"), relevance: 0 }, m, { begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [k, e.REGEXP_MODE, { className: "function", begin: l, returnBegin: true, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: e.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: true }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: true, excludeEnd: true, keywords: r, contains: A }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: s.begin, end: s.end }, { match: g }, { begin: o.begin, "on:begin": o.isTrulyOpeningTag, end: o.end }], subLanguage: "xml", contains: [{ begin: o.begin, end: o.end, skip: true, contains: ["self"] }] }] }, W, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: true, label: "func.def", contains: [x, e.inherit(e.TITLE_MODE, { begin: a, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, K, { match: "\\$" + a, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [x] }, ee, X, I, G, { match: /\$[(.]/ }] };
|
|
954
|
-
}
|
|
955
|
-
__name(Ui, "Ui");
|
|
956
|
-
i(Ui, "javascript");
|
|
957
|
-
function $t(e) {
|
|
958
|
-
let t = e.regex, n = Ui(e), a = xe, s = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], g = { begin: [/namespace/, /\s+/, e.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, o = { beginKeywords: "interface", end: /\{/, excludeEnd: true, keywords: { keyword: "interface extends", built_in: s }, contains: [n.exports.CLASS_REFERENCE] }, r = { className: "meta", relevance: 10, begin: /^\s*['"]use strict['"]/ }, c = ["type", "interface", "public", "private", "protected", "implements", "declare", "abstract", "readonly", "enum", "override", "satisfies"], d = { $pattern: xe, keyword: Dt.concat(c), literal: Lt, built_in: zt.concat(s), "variable.language": Ft }, u = { className: "meta", begin: "@" + a }, _ = i((y, S, v) => {
|
|
959
|
-
let k = y.contains.findIndex((M) => M.label === S);
|
|
960
|
-
if (k === -1) throw new Error("can not find mode to replace");
|
|
961
|
-
y.contains.splice(k, 1, v);
|
|
962
|
-
}, "swapMode");
|
|
963
|
-
Object.assign(n.keywords, d), n.exports.PARAMS_CONTAINS.push(u);
|
|
964
|
-
let b = n.contains.find((y) => y.scope === "attr"), E = Object.assign({}, b, { match: t.concat(a, t.lookahead(/\s*\?:/)) });
|
|
965
|
-
n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE, b, E]), n.contains = n.contains.concat([u, g, o, E]), _(n, "shebang", e.SHEBANG()), _(n, "use_strict", r);
|
|
966
|
-
let T = n.contains.find((y) => y.label === "func.def");
|
|
967
|
-
return T.relevance = 0, Object.assign(n, { name: "TypeScript", aliases: ["ts", "tsx", "mts", "cts"] }), n;
|
|
968
|
-
}
|
|
969
|
-
__name($t, "$t");
|
|
970
|
-
i($t, "typescript");
|
|
971
|
-
function Kt(e) {
|
|
972
|
-
let t = e.regex, n = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), a = /[\p{L}0-9._:-]+/u, s = { className: "symbol", begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ }, g = { begin: /\s/, contains: [{ className: "keyword", begin: /#?[a-z_][a-z1-9_-]+/, illegal: /\n/ }] }, o = e.inherit(g, { begin: /\(/, end: /\)/ }), r = e.inherit(e.APOS_STRING_MODE, { className: "string" }), c = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), d = { endsWithParent: true, illegal: /</, relevance: 0, contains: [{ className: "attr", begin: a, relevance: 0 }, { begin: /=\s*/, relevance: 0, contains: [{ className: "string", endsParent: true, variants: [{ begin: /"/, end: /"/, contains: [s] }, { begin: /'/, end: /'/, contains: [s] }, { begin: /[^\s"'=<>`]+/ }] }] }] };
|
|
973
|
-
return { name: "HTML, XML", aliases: ["html", "xhtml", "rss", "atom", "xjb", "xsd", "xsl", "plist", "wsf", "svg"], case_insensitive: true, unicodeRegex: true, contains: [{ className: "meta", begin: /<![a-z]/, end: />/, relevance: 10, contains: [g, c, r, o, { begin: /\[/, end: /\]/, contains: [{ className: "meta", begin: /<![a-z]/, end: />/, contains: [g, o, c, r] }] }] }, e.COMMENT(/<!--/, /-->/, { relevance: 10 }), { begin: /<!\[CDATA\[/, end: /\]\]>/, relevance: 10 }, s, { className: "meta", end: /\?>/, variants: [{ begin: /<\?xml/, relevance: 10, contains: [c] }, { begin: /<\?[a-z][a-z0-9]+/ }] }, { className: "tag", begin: /<style(?=\s|>)/, end: />/, keywords: { name: "style" }, contains: [d], starts: { end: /<\/style>/, returnEnd: true, subLanguage: "css" } }, { className: "tag", begin: /<script(?=\s|>)/, end: />/, keywords: { name: "script" }, contains: [d], starts: { end: /<\/script>/, returnEnd: true, subLanguage: "javascript" } }, { className: "tag", begin: /<>|<\/>/ }, { className: "tag", begin: t.concat(/</, t.lookahead(t.concat(n, t.either(/\/>/, />/, /\s/)))), end: /\/?>/, contains: [{ className: "name", begin: n, relevance: 0, starts: d }] }, { className: "tag", begin: t.concat(/<\//, t.lookahead(t.concat(n, />/))), contains: [{ className: "name", begin: n, relevance: 0 }, { begin: />/, relevance: 0, endsParent: true }] }] };
|
|
974
|
-
}
|
|
975
|
-
__name(Kt, "Kt");
|
|
976
|
-
i(Kt, "xml");
|
|
977
|
-
function Gt(e) {
|
|
978
|
-
let t = "true false yes no null", n = "[\\w#;/?:@&=+$,.~*'()[\\]]+", a = { className: "attr", variants: [{ begin: /[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/ }, { begin: /"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/ }, { begin: /'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/ }] }, s = { className: "template-variable", variants: [{ begin: /\{\{/, end: /\}\}/ }, { begin: /%\{/, end: /\}/ }] }, g = { className: "string", relevance: 0, begin: /'/, end: /'/, contains: [{ match: /''/, scope: "char.escape", relevance: 0 }] }, o = { className: "string", relevance: 0, variants: [{ begin: /"/, end: /"/ }, { begin: /\S+/ }], contains: [e.BACKSLASH_ESCAPE, s] }, r = e.inherit(o, { variants: [{ begin: /'/, end: /'/, contains: [{ begin: /''/, relevance: 0 }] }, { begin: /"/, end: /"/ }, { begin: /[^\s,{}[\]]+/ }] }), b = { className: "number", begin: "\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b" }, E = { end: ",", endsWithParent: true, excludeEnd: true, keywords: t, relevance: 0 }, T = { begin: /\{/, end: /\}/, contains: [E], illegal: "\\n", relevance: 0 }, y = { begin: "\\[", end: "\\]", contains: [E], illegal: "\\n", relevance: 0 }, S = [a, { className: "meta", begin: "^---\\s*$", relevance: 10 }, { className: "string", begin: "[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*" }, { begin: "<%[%=-]?", end: "[%-]?%>", subLanguage: "ruby", excludeBegin: true, excludeEnd: true, relevance: 0 }, { className: "type", begin: "!\\w+!" + n }, { className: "type", begin: "!<" + n + ">" }, { className: "type", begin: "!" + n }, { className: "type", begin: "!!" + n }, { className: "meta", begin: "&" + e.UNDERSCORE_IDENT_RE + "$" }, { className: "meta", begin: "\\*" + e.UNDERSCORE_IDENT_RE + "$" }, { className: "bullet", begin: "-(?=[ ]|$)", relevance: 0 }, e.HASH_COMMENT_MODE, { beginKeywords: t, keywords: { literal: t } }, b, { className: "number", begin: e.C_NUMBER_RE + "\\b", relevance: 0 }, T, y, g, o], v = [...S];
|
|
979
|
-
return v.pop(), v.push(r), E.contains = v, { name: "YAML", case_insensitive: true, aliases: ["yml"], contains: S };
|
|
980
|
-
}
|
|
981
|
-
__name(Gt, "Gt");
|
|
982
|
-
i(Gt, "yaml");
|
|
983
|
-
function Ht(e) {
|
|
984
|
-
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", s = "[a-zA-Z_]\\w*::", o = "(" + a + "|" + t.optional(s) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", r = t.concat(/\batomic_/, t.either("bool", "char", "schar", "uchar", "short", "ushort", "int", "uint", "long", "ulong", "llong", "ullong", "char16_t", "char32_t", "wchar_t", "int_least8_t", "uint_least8_t", "int_least16_t", "uint_least16_t", "int_least32_t", "uint_least32_t", "int_least64_t", "uint_least64_t", "int_fast8_t", "uint_fast8_t", "int_fast16_t", "uint_fast16_t", "int_fast32_t", "uint_fast32_t", "int_fast64_t", "uint_fast64_t", "intptr_t", "uintptr_t", "size_t", "ptrdiff_t", "intmax_t", "uintmax_t"), /\b/), c = { className: "type", variants: [{ begin: "\\b[a-z\\d_]*_t\\b" }, { match: r }] }, u = { className: "string", variants: [{ begin: '(u8?|U|L)?"', end: '"', illegal: "\\n", contains: [e.BACKSLASH_ESCAPE] }, { begin: "(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", end: "'", illegal: "." }, e.END_SAME_AS_BEGIN({ begin: /(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/, end: /\)([^()\\\s"]{0,16})"/ })] }, _ = { className: "number", variants: [{ match: /\b(0b[01']+)/ }, { match: /(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/ }, { match: /(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/ }, { match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }], relevance: 0 }, b = { scope: "meta", begin: /#\s*include\b/, end: /$/, keywords: { keyword: "include" }, contains: [{ begin: /\\\n/ }, u, { scope: "string", begin: /<.*?>/ }, n, e.C_BLOCK_COMMENT_MODE] }, E = { className: "meta", begin: /#\s*[a-z]+\b/, end: /$/, keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include" }, contains: [{ begin: /\\\n/, relevance: 0 }, e.inherit(u, { className: "string" }), n, e.C_BLOCK_COMMENT_MODE] }, T = [b, E], y = { className: "title", begin: t.optional(s) + e.IDENT_RE, relevance: 0 }, S = t.optional(s) + e.IDENT_RE + "\\s*\\(", v = 12, O = { keyword: ["asm", "auto", "break", "case", "continue", "default", "do", "else", "enum", "extern", "for", "fortran", "goto", "if", "inline", "register", "restrict", "return", "sizeof", "typeof", "typeof_unqual", "struct", "switch", "typedef", "union", "volatile", "while", "_Alignas", "_Alignof", "_Atomic", "_Generic", "_Noreturn", "_Static_assert", "_Thread_local", "alignas", "alignof", "noreturn", "static_assert", "thread_local", "_Pragma"], type: ["float", "double", "signed", "unsigned", "int", "short", "long", "char", "void", "_Bool", "_BitInt", "_Complex", "_Imaginary", "_Decimal32", "_Decimal64", "_Decimal96", "_Decimal128", "_Decimal64x", "_Decimal128x", "_Float16", "_Float32", "_Float64", "_Float128", "_Float32x", "_Float64x", "_Float128x", "const", "static", "constexpr", "complex", "bool", "imaginary"], literal: "true false NULL", built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr" }, A = [...T, c, n, e.C_BLOCK_COMMENT_MODE, _, u], x = { variants: [{ begin: /=/, end: /;/ }, { begin: /\(/, end: /\)/ }, { beginKeywords: "new throw return else", end: /;/ }], keywords: O, contains: A.concat([{ begin: /\(/, end: /\)/, keywords: O, contains: A.concat(["self"]), relevance: 0 }]), relevance: 0 }, I = { begin: "(" + o + "[\\*&\\s]+){1," + v + "}" + S, returnBegin: true, end: /[{;=]/, excludeEnd: true, keywords: O, illegal: /[^\w\s\*&:<>.]/, contains: [{ begin: a, keywords: O, relevance: 0 }, { begin: S, returnBegin: true, contains: [e.inherit(y, { className: "title.function" })], relevance: 0 }, { relevance: 0, match: /,/ }, { className: "params", begin: /\(/, end: /\)/, keywords: O, relevance: 0, contains: [n, e.C_BLOCK_COMMENT_MODE, u, _, c, { begin: /\(/, end: /\)/, keywords: O, relevance: 0, contains: ["self", n, e.C_BLOCK_COMMENT_MODE, u, _, c] }] }, c, n, e.C_BLOCK_COMMENT_MODE, ...T] };
|
|
985
|
-
return { name: "C", aliases: ["h"], keywords: O, disableAutodetect: true, illegal: "</", contains: [].concat(x, I, A, [...T, { begin: e.IDENT_RE + "::", keywords: O }, { className: "class", beginKeywords: "enum class struct union", end: /[{;:<>=]/, contains: [{ beginKeywords: "final class struct" }, e.TITLE_MODE] }]), exports: { preprocessor: E, strings: u, keywords: O } };
|
|
986
|
-
}
|
|
987
|
-
__name(Ht, "Ht");
|
|
988
|
-
i(Ht, "c");
|
|
989
|
-
function Wt(e) {
|
|
990
|
-
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", s = "[a-zA-Z_]\\w*::", o = "(?!struct)(" + a + "|" + t.optional(s) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", r = { className: "type", begin: "\\b[a-z\\d_]*_t\\b" }, d = { className: "string", variants: [{ begin: '(u8?|U|L)?"', end: '"', illegal: "\\n", contains: [e.BACKSLASH_ESCAPE] }, { begin: "(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", end: "'", illegal: "." }, e.END_SAME_AS_BEGIN({ begin: /(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/, end: /\)([^()\\\s"]{0,16})"/ })] }, u = { className: "number", variants: [{ begin: "[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)" }, { begin: "[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)" }], relevance: 0 }, _ = { scope: "meta", begin: /#\s*include\b/, end: /$/, keywords: { keyword: "include" }, contains: [{ begin: /\\\n/ }, d, { scope: "string", begin: /<.*?>/ }, n, e.C_BLOCK_COMMENT_MODE] }, b = { className: "meta", begin: /#\s*[a-z]+\b/, end: /$/, keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" }, contains: [{ begin: /\\\n/, relevance: 0 }, e.inherit(d, { className: "string" }), n, e.C_BLOCK_COMMENT_MODE] }, E = [_, b], T = { className: "title", begin: t.optional(s) + e.IDENT_RE, relevance: 0 }, y = t.optional(s) + e.IDENT_RE + "\\s*\\(", S = 12, v = ["alignas", "alignof", "and", "and_eq", "asm", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "bitand", "bitor", "break", "case", "catch", "class", "co_await", "co_return", "co_yield", "compl", "concept", "const_cast|10", "consteval", "constexpr", "constinit", "continue", "decltype", "default", "delete", "do", "dynamic_cast|10", "else", "enum", "explicit", "export", "extern", "false", "final", "for", "friend", "goto", "if", "import", "inline", "module", "mutable", "namespace", "new", "noexcept", "not", "not_eq", "nullptr", "operator", "or", "or_eq", "override", "private", "protected", "public", "reflexpr", "register", "reinterpret_cast|10", "requires", "return", "sizeof", "static_assert", "static_cast|10", "struct", "switch", "synchronized", "template", "this", "thread_local", "throw", "transaction_safe", "transaction_safe_dynamic", "true", "try", "typedef", "typeid", "typename", "union", "using", "virtual", "volatile", "while", "xor", "xor_eq"], k = ["bool", "char", "char16_t", "char32_t", "char8_t", "double", "float", "int", "long", "short", "void", "wchar_t", "unsigned", "signed", "const", "static"], M = ["any", "auto_ptr", "barrier", "binary_semaphore", "bitset", "complex", "condition_variable", "condition_variable_any", "counting_semaphore", "deque", "false_type", "flat_map", "flat_set", "future", "imaginary", "initializer_list", "istringstream", "jthread", "latch", "lock_guard", "multimap", "multiset", "mutex", "optional", "ostringstream", "packaged_task", "pair", "promise", "priority_queue", "queue", "recursive_mutex", "recursive_timed_mutex", "scoped_lock", "set", "shared_future", "shared_lock", "shared_mutex", "shared_timed_mutex", "shared_ptr", "stack", "string_view", "stringstream", "timed_mutex", "thread", "true_type", "tuple", "unique_lock", "unique_ptr", "unordered_map", "unordered_multimap", "unordered_multiset", "unordered_set", "variant", "vector", "weak_ptr", "wstring", "wstring_view"], O = ["abort", "abs", "acos", "apply", "as_const", "asin", "atan", "atan2", "calloc", "ceil", "cerr", "cin", "clog", "cos", "cosh", "cout", "declval", "endl", "exchange", "exit", "exp", "fabs", "floor", "fmod", "forward", "fprintf", "fputs", "free", "frexp", "fscanf", "future", "invoke", "isalnum", "isalpha", "iscntrl", "isdigit", "isgraph", "islower", "isprint", "ispunct", "isspace", "isupper", "isxdigit", "labs", "launder", "ldexp", "log", "log10", "make_pair", "make_shared", "make_shared_for_overwrite", "make_tuple", "make_unique", "malloc", "memchr", "memcmp", "memcpy", "memset", "modf", "move", "pow", "printf", "putchar", "puts", "realloc", "scanf", "sin", "sinh", "snprintf", "sprintf", "sqrt", "sscanf", "std", "stderr", "stdin", "stdout", "strcat", "strchr", "strcmp", "strcpy", "strcspn", "strlen", "strncat", "strncmp", "strncpy", "strpbrk", "strrchr", "strspn", "strstr", "swap", "tan", "tanh", "terminate", "to_underlying", "tolower", "toupper", "vfprintf", "visit", "vprintf", "vsprintf"], I = { type: k, keyword: v, literal: ["NULL", "false", "nullopt", "nullptr", "true"], built_in: ["_Pragma"], _type_hints: M }, D = { className: "function.dispatch", relevance: 0, keywords: { _hint: O }, begin: t.concat(/\b/, `(?!${v.join("|")})`, e.IDENT_RE, t.lookahead(/(<[^<>]+>|)\s*\(/)) }, B = [D, ...E, r, n, e.C_BLOCK_COMMENT_MODE, u, d], W = { variants: [{ begin: /=/, end: /;/ }, { begin: /\(/, end: /\)/ }, { beginKeywords: "new throw return else", end: /;/ }], keywords: I, contains: B.concat([{ begin: /\(/, end: /\)/, keywords: I, contains: B.concat(["self"]), relevance: 0 }]), relevance: 0 }, X = { className: "function", begin: "(" + o + "[\\*&\\s]+){1," + S + "}" + y, returnBegin: true, end: /[{;=]/, excludeEnd: true, keywords: I, illegal: /[^\w\s\*&:<>.]/, contains: [{ begin: a, keywords: I, relevance: 0 }, { begin: y, returnBegin: true, contains: [T], relevance: 0 }, { begin: /::/, relevance: 0 }, { begin: /:/, endsWithParent: true, contains: [d, u] }, { relevance: 0, match: /,/ }, { className: "params", begin: /\(/, end: /\)/, keywords: I, relevance: 0, contains: [n, e.C_BLOCK_COMMENT_MODE, d, u, r, { begin: /\(/, end: /\)/, keywords: I, relevance: 0, contains: ["self", n, e.C_BLOCK_COMMENT_MODE, d, u, r] }] }, r, n, e.C_BLOCK_COMMENT_MODE, ...E] };
|
|
991
|
-
return { name: "C++", aliases: ["cc", "c++", "h++", "hpp", "hh", "hxx", "cxx"], keywords: I, illegal: "</", classNameAliases: { "function.dispatch": "built_in" }, contains: [].concat(W, X, D, B, [...E, { begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)", end: ">", keywords: I, contains: ["self", r] }, { begin: e.IDENT_RE + "::", keywords: I }, { match: [/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/, /\s+/, /\w+/], className: { 1: "keyword", 3: "title.class" } }]) };
|
|
992
|
-
}
|
|
993
|
-
__name(Wt, "Wt");
|
|
994
|
-
i(Wt, "cpp");
|
|
995
|
-
function Yt(e) {
|
|
996
|
-
let t = ["bool", "byte", "char", "decimal", "delegate", "double", "dynamic", "enum", "float", "int", "long", "nint", "nuint", "object", "sbyte", "short", "string", "ulong", "uint", "ushort"], n = ["public", "private", "protected", "static", "internal", "protected", "abstract", "async", "extern", "override", "unsafe", "virtual", "new", "sealed", "partial"], a = ["default", "false", "null", "true"], s = ["abstract", "as", "base", "break", "case", "catch", "class", "const", "continue", "do", "else", "event", "explicit", "extern", "finally", "fixed", "for", "foreach", "goto", "if", "implicit", "in", "interface", "internal", "is", "lock", "namespace", "new", "operator", "out", "override", "params", "private", "protected", "public", "readonly", "record", "ref", "return", "scoped", "sealed", "sizeof", "stackalloc", "static", "struct", "switch", "this", "throw", "try", "typeof", "unchecked", "unsafe", "using", "virtual", "void", "volatile", "while"], g = ["add", "alias", "and", "ascending", "args", "async", "await", "by", "descending", "dynamic", "equals", "file", "from", "get", "global", "group", "init", "into", "join", "let", "nameof", "not", "notnull", "on", "or", "orderby", "partial", "record", "remove", "required", "scoped", "select", "set", "unmanaged", "value|0", "var", "when", "where", "with", "yield"], o = { keyword: s.concat(g), built_in: t, literal: a }, r = e.inherit(e.TITLE_MODE, { begin: "[a-zA-Z](\\.?\\w)*" }), c = "\\d(_*\\d)*", d = "([uU][lL]?|[lL][uU]?)?", _ = { className: "number", variants: [{ begin: "\\b0[bB]_*[01](_*[01])*" + d }, { begin: "(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*" + d }, { begin: "(-?)(\\b" + c + "(\\.(" + c + ")?)?|\\." + c + ")([eE][-+]?" + c + ")?([fFdDmM]|[uU][lL]?|[lL][uU]?)?" }], relevance: 0 }, b = { className: "string", begin: /"""("*)(?!")(.|\n)*?"""\1/, relevance: 1 }, E = { className: "string", begin: '@"', end: '"', contains: [{ begin: '""' }] }, T = e.inherit(E, { illegal: /\n/ }), y = { className: "subst", begin: /\{/, end: /\}/, keywords: o }, S = e.inherit(y, { illegal: /\n/ }), v = { className: "string", begin: /\$"/, end: '"', illegal: /\n/, contains: [{ begin: /\{\{/ }, { begin: /\}\}/ }, e.BACKSLASH_ESCAPE, S] }, k = { className: "string", begin: /\$@"/, end: '"', contains: [{ begin: /\{\{/ }, { begin: /\}\}/ }, { begin: '""' }, y] }, M = e.inherit(k, { illegal: /\n/, contains: [{ begin: /\{\{/ }, { begin: /\}\}/ }, { begin: '""' }, S] });
|
|
997
|
-
y.contains = [k, v, E, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, _, e.C_BLOCK_COMMENT_MODE], S.contains = [M, v, T, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, _, e.inherit(e.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })];
|
|
998
|
-
let O = { variants: [b, k, v, E, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE] }, A = { begin: "<", end: ">", contains: [{ beginKeywords: "in out" }, r] }, x = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", I = { begin: "@" + e.IDENT_RE, relevance: 0 };
|
|
999
|
-
return { name: "C#", aliases: ["cs", "c#"], keywords: o, illegal: /::/, contains: [e.COMMENT("///", "$", { returnBegin: true, contains: [{ className: "doctag", variants: [{ begin: "///", relevance: 0 }, { begin: "<!--|-->" }, { begin: "</?", end: ">" }] }] }), e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, { className: "meta", begin: "#", end: "$", keywords: { keyword: "if else elif endif define undef warning error line region endregion pragma checksum" } }, O, _, { beginKeywords: "class interface", relevance: 0, end: /[{;=]/, illegal: /[^\s:,]/, contains: [{ beginKeywords: "where class" }, r, A, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE] }, { beginKeywords: "namespace", relevance: 0, end: /[{;=]/, illegal: /[^\s:]/, contains: [r, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE] }, { beginKeywords: "record", relevance: 0, end: /[{;=]/, illegal: /[^\s:]/, contains: [r, A, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE] }, { className: "meta", begin: "^\\s*\\[(?=[\\w])", excludeBegin: true, end: "\\]", excludeEnd: true, contains: [{ className: "string", begin: /"/, end: /"/ }] }, { beginKeywords: "new return throw await else", relevance: 0 }, { className: "function", begin: "(" + x + "\\s+)+" + e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(", returnBegin: true, end: /\s*[{;=]/, excludeEnd: true, keywords: o, contains: [{ beginKeywords: n.join(" "), relevance: 0 }, { begin: e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(", returnBegin: true, contains: [e.TITLE_MODE, A], relevance: 0 }, { match: /\(\)/ }, { className: "params", begin: /\(/, end: /\)/, excludeBegin: true, excludeEnd: true, keywords: o, relevance: 0, contains: [O, _, e.C_BLOCK_COMMENT_MODE] }, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE] }, I] };
|
|
1000
|
-
}
|
|
1001
|
-
__name(Yt, "Yt");
|
|
1002
|
-
i(Yt, "csharp");
|
|
1003
|
-
function qt(e) {
|
|
1004
|
-
let t = e.regex;
|
|
1005
|
-
return { name: "Diff", aliases: ["patch"], contains: [{ className: "meta", relevance: 10, match: t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/, /^@@ +-\d+ +\+\d+,\d+ +@@/, /^@@ +-\d+,\d+ +\+\d+ +@@/, /^@@ +-\d+ +\+\d+ +@@/, /^\*\*\* +\d+,\d+ +\*\*\*\*$/, /^--- +\d+,\d+ +----$/) }, { className: "comment", variants: [{ begin: t.either(/Index: /, /^index/, /={3,}/, /^-{3}/, /^\*{3} /, /^\+{3}/, /^diff --git/), end: /$/ }, { match: /^\*{15}$/ }] }, { className: "addition", begin: /^\+/, end: /$/ }, { className: "deletion", begin: /^-/, end: /$/ }, { className: "addition", begin: /^!/, end: /$/ }] };
|
|
1006
|
-
}
|
|
1007
|
-
__name(qt, "qt");
|
|
1008
|
-
i(qt, "diff");
|
|
1009
|
-
function Zt(e) {
|
|
1010
|
-
return { name: "Dockerfile", aliases: ["docker"], case_insensitive: true, keywords: ["from", "maintainer", "expose", "env", "arg", "user", "onbuild", "stopsignal"], contains: [e.HASH_COMMENT_MODE, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.NUMBER_MODE, { beginKeywords: "run cmd entrypoint volume add copy workdir label healthcheck shell", starts: { end: /[^\\]$/, subLanguage: "bash" } }], illegal: "</" };
|
|
1011
|
-
}
|
|
1012
|
-
__name(Zt, "Zt");
|
|
1013
|
-
i(Zt, "dockerfile");
|
|
1014
|
-
function Vt(e) {
|
|
1015
|
-
let g = { keyword: ["break", "case", "chan", "const", "continue", "default", "defer", "else", "fallthrough", "for", "func", "go", "goto", "if", "import", "interface", "map", "package", "range", "return", "select", "struct", "switch", "type", "var"], type: ["bool", "byte", "complex64", "complex128", "error", "float32", "float64", "int8", "int16", "int32", "int64", "string", "uint8", "uint16", "uint32", "uint64", "int", "uint", "uintptr", "rune"], literal: ["true", "false", "iota", "nil"], built_in: ["append", "cap", "close", "complex", "copy", "imag", "len", "make", "new", "panic", "print", "println", "real", "recover", "delete"] };
|
|
1016
|
-
return { name: "Go", aliases: ["golang"], keywords: g, illegal: "</", contains: [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, { className: "string", variants: [e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, { begin: "`", end: "`" }] }, { className: "number", variants: [{ match: /-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/, relevance: 0 }, { match: /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/, relevance: 0 }, { match: /-?\b0[oO](_?[0-7])*i?/, relevance: 0 }, { match: /-?\b0[bB](_?[01])*i?/, relevance: 0 }, { match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/, relevance: 0 }, { match: /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/, relevance: 0 }] }, { begin: /:=/ }, { className: "function", beginKeywords: "func", end: "\\s*(\\{|$)", excludeEnd: true, contains: [e.TITLE_MODE, { className: "params", begin: /\(/, end: /\)/, endsParent: true, keywords: g, illegal: /["']/ }] }] };
|
|
1017
|
-
}
|
|
1018
|
-
__name(Vt, "Vt");
|
|
1019
|
-
i(Vt, "go");
|
|
1020
|
-
function Xt(e) {
|
|
1021
|
-
let t = e.regex, n = /[_A-Za-z][_0-9A-Za-z]*/;
|
|
1022
|
-
return { name: "GraphQL", aliases: ["gql"], case_insensitive: true, disableAutodetect: false, keywords: { keyword: ["query", "mutation", "subscription", "type", "input", "schema", "directive", "interface", "union", "scalar", "fragment", "enum", "on"], literal: ["true", "false", "null"] }, contains: [e.HASH_COMMENT_MODE, e.QUOTE_STRING_MODE, e.NUMBER_MODE, { scope: "punctuation", match: /[.]{3}/, relevance: 0 }, { scope: "punctuation", begin: /[\!\(\)\:\=\[\]\{\|\}]{1}/, relevance: 0 }, { scope: "variable", begin: /\$/, end: /\W/, excludeEnd: true, relevance: 0 }, { scope: "meta", match: /@\w+/, excludeEnd: true }, { scope: "symbol", begin: t.concat(n, t.lookahead(/\s*:/)), relevance: 0 }], illegal: [/[;<']/, /BEGIN/] };
|
|
1023
|
-
}
|
|
1024
|
-
__name(Xt, "Xt");
|
|
1025
|
-
i(Xt, "graphql");
|
|
1026
|
-
function Qt(e) {
|
|
1027
|
-
let t = e.regex, n = { className: "number", relevance: 0, variants: [{ begin: /([+-]+)?[\d]+_[\d_]+/ }, { begin: e.NUMBER_RE }] }, a = e.COMMENT();
|
|
1028
|
-
a.variants = [{ begin: /;/, end: /$/ }, { begin: /#/, end: /$/ }];
|
|
1029
|
-
let s = { className: "variable", variants: [{ begin: /\$[\w\d"][\w\d_]*/ }, { begin: /\$\{(.*?)\}/ }] }, g = { className: "literal", begin: /\bon|off|true|false|yes|no\b/ }, o = { className: "string", contains: [e.BACKSLASH_ESCAPE], variants: [{ begin: "'''", end: "'''", relevance: 10 }, { begin: '"""', end: '"""', relevance: 10 }, { begin: '"', end: '"' }, { begin: "'", end: "'" }] }, r = { begin: /\[/, end: /\]/, contains: [a, g, s, o, n, "self"], relevance: 0 }, c = /[A-Za-z0-9_-]+/, d = /"(\\"|[^"])*"/, u = /'[^']*'/, _ = t.either(c, d, u), b = t.concat(_, "(\\s*\\.\\s*", _, ")*", t.lookahead(/\s*=\s*[^#\s]/));
|
|
1030
|
-
return { name: "TOML, also INI", aliases: ["toml"], case_insensitive: true, illegal: /\S/, contains: [a, { className: "section", begin: /\[+/, end: /\]+/ }, { begin: b, className: "attr", starts: { end: /$/, contains: [a, r, g, s, o, n] } }] };
|
|
1031
|
-
}
|
|
1032
|
-
__name(Qt, "Qt");
|
|
1033
|
-
i(Qt, "ini");
|
|
1034
|
-
var ge = "[0-9](_*[0-9])*", ke = `\\.(${ge})`, Me = "[0-9a-fA-F](_*[0-9a-fA-F])*", Jt = { className: "number", variants: [{ begin: `(\\b(${ge})((${ke})|\\.)?|(${ke}))[eE][+-]?(${ge})[fFdD]?\\b` }, { begin: `\\b(${ge})((${ke})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, { begin: `(${ke})[fFdD]?\\b` }, { begin: `\\b(${ge})[fFdD]\\b` }, { begin: `\\b0[xX]((${Me})\\.?|(${Me})?\\.(${Me}))[pP][+-]?(${ge})[fFdD]?\\b` }, { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" }, { begin: `\\b0[xX](${Me})[lL]?\\b` }, { begin: "\\b0(_*[0-7])*[lL]?\\b" }, { begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }], relevance: 0 };
|
|
1035
|
-
function jt(e, t, n) {
|
|
1036
|
-
return n === -1 ? "" : e.replace(t, (a) => jt(e, t, n - 1));
|
|
1037
|
-
}
|
|
1038
|
-
__name(jt, "jt");
|
|
1039
|
-
i(jt, "recurRegex");
|
|
1040
|
-
function en(e) {
|
|
1041
|
-
let t = e.regex, n = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", a = "(?:(?:\\s*\\[\\s*])+)?", s = n + "<@@@>" + a, o = "(?:" + ("\\?(?:\\s+(?:extends|super)\\s+" + s + ")?") + "|" + s + ")", r = jt("(?:\\s*<\\s*" + o + "(?:\\s*,\\s*" + o + ")*\\s*>)?", /<@@@>/g, 2), b = { keyword: ["synchronized", "abstract", "private", "var", "static", "if", "const ", "for", "while", "strictfp", "finally", "protected", "import", "native", "final", "void", "enum", "else", "break", "transient", "catch", "instanceof", "volatile", "case", "assert", "package", "default", "public", "try", "switch", "continue", "throws", "protected", "public", "private", "module", "requires", "exports", "do", "sealed", "yield", "permits", "goto", "when"], literal: ["false", "true", "null"], type: ["char", "boolean", "long", "float", "int", "byte", "short", "double"], built_in: ["super", "this"] }, E = { className: "meta", begin: "@" + n, contains: [{ begin: /\(/, end: /\)/, contains: ["self"] }] }, T = { className: "params", begin: /\(/, end: /\)/, keywords: b, relevance: 0, contains: [e.C_BLOCK_COMMENT_MODE], endsParent: true };
|
|
1042
|
-
return { name: "Java", aliases: ["jsp"], keywords: b, illegal: /<\/|#/, contains: [e.COMMENT("/\\*\\*", "\\*/", { relevance: 0, contains: [{ begin: /\w+@/, relevance: 0 }, { className: "doctag", begin: "@[A-Za-z]+" }] }), { begin: /import java\.[a-z]+\./, keywords: "import", relevance: 2 }, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, { begin: /"""/, end: /"""/, className: "string", contains: [e.BACKSLASH_ESCAPE] }, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, { match: [/\b(?:class|interface|enum|extends|implements|new)/, /\s+/, n], className: { 1: "keyword", 3: "title.class" } }, { match: /non-sealed/, scope: "keyword" }, { beginKeywords: "new throw return else yield assert", relevance: 0 }, { begin: [n, t.concat(r, a, /\s+/), n, a, /\s*/, /=(?!=)/], className: { 1: "type", 3: "variable", 6: "operator" } }, { begin: [/record/, /\s+/, n], className: { 1: "keyword", 3: "title.class" }, contains: [T, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE] }, { begin: [n, t.concat(r, a, /\s+/), n, /\s*(?=\()/], className: { 1: "type", 3: "title.function" }, keywords: b, contains: [{ className: "params", begin: /\(/, end: /\)/, keywords: b, relevance: 0, contains: [E, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, Jt, e.C_BLOCK_COMMENT_MODE] }, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE] }, Jt, E] };
|
|
1043
|
-
}
|
|
1044
|
-
__name(en, "en");
|
|
1045
|
-
i(en, "java");
|
|
1046
|
-
var pe = "[0-9](_*[0-9])*", Ce = `\\.(${pe})`, Ie = "[0-9a-fA-F](_*[0-9a-fA-F])*", Fi = { className: "number", variants: [{ begin: `(\\b(${pe})((${Ce})|\\.)?|(${Ce}))[eE][+-]?(${pe})[fFdD]?\\b` }, { begin: `\\b(${pe})((${Ce})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, { begin: `(${Ce})[fFdD]?\\b` }, { begin: `\\b(${pe})[fFdD]\\b` }, { begin: `\\b0[xX]((${Ie})\\.?|(${Ie})?\\.(${Ie}))[pP][+-]?(${pe})[fFdD]?\\b` }, { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" }, { begin: `\\b0[xX](${Ie})[lL]?\\b` }, { begin: "\\b0(_*[0-7])*[lL]?\\b" }, { begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }], relevance: 0 };
|
|
1047
|
-
function tn(e) {
|
|
1048
|
-
let t = { keyword: "abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual", built_in: "Byte Short Char Int Long Boolean Float Double Void Unit Nothing", literal: "true false null" }, n = { className: "keyword", begin: /\b(break|continue|return|this)\b/, starts: { contains: [{ className: "symbol", begin: /@\w+/ }] } }, a = { className: "symbol", begin: e.UNDERSCORE_IDENT_RE + "@" }, s = { className: "subst", begin: /\$\{/, end: /\}/, contains: [e.C_NUMBER_MODE] }, g = { className: "variable", begin: "\\$" + e.UNDERSCORE_IDENT_RE }, o = { className: "string", variants: [{ begin: '"""', end: '"""(?=[^"])', contains: [g, s] }, { begin: "'", end: "'", illegal: /\n/, contains: [e.BACKSLASH_ESCAPE] }, { begin: '"', end: '"', illegal: /\n/, contains: [e.BACKSLASH_ESCAPE, g, s] }] };
|
|
1049
|
-
s.contains.push(o);
|
|
1050
|
-
let r = { className: "meta", begin: "@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*" + e.UNDERSCORE_IDENT_RE + ")?" }, c = { className: "meta", begin: "@" + e.UNDERSCORE_IDENT_RE, contains: [{ begin: /\(/, end: /\)/, contains: [e.inherit(o, { className: "string" }), "self"] }] }, d = Fi, u = e.COMMENT("/\\*", "\\*/", { contains: [e.C_BLOCK_COMMENT_MODE] }), _ = { variants: [{ className: "type", begin: e.UNDERSCORE_IDENT_RE }, { begin: /\(/, end: /\)/, contains: [] }] }, b = _;
|
|
1051
|
-
return b.variants[1].contains = [_], _.variants[1].contains = [b], { name: "Kotlin", aliases: ["kt", "kts", "ktm", "ktx"], keywords: t, contains: [e.COMMENT("/\\*\\*", "\\*/", { relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }] }), e.C_LINE_COMMENT_MODE, u, n, a, r, c, { className: "function", beginKeywords: "fun", end: "[(]|$", returnBegin: true, excludeEnd: true, keywords: t, relevance: 5, contains: [{ begin: e.UNDERSCORE_IDENT_RE + "\\s*\\(", returnBegin: true, relevance: 0, contains: [e.UNDERSCORE_TITLE_MODE] }, { className: "type", begin: /</, end: />/, keywords: "reified", relevance: 0 }, { className: "params", begin: /\(/, end: /\)/, endsParent: true, keywords: t, relevance: 0, contains: [{ begin: /:/, end: /[=,\/]/, endsWithParent: true, contains: [_, e.C_LINE_COMMENT_MODE, u], relevance: 0 }, e.C_LINE_COMMENT_MODE, u, r, c, o, e.C_NUMBER_MODE] }, u] }, { begin: [/class|interface|trait/, /\s+/, e.UNDERSCORE_IDENT_RE], beginScope: { 3: "title.class" }, keywords: "class interface trait", end: /[:\{(]|$/, excludeEnd: true, illegal: "extends implements", contains: [{ beginKeywords: "public protected internal private constructor" }, e.UNDERSCORE_TITLE_MODE, { className: "type", begin: /</, end: />/, excludeBegin: true, excludeEnd: true, relevance: 0 }, { className: "type", begin: /[,:]\s*/, end: /[<\(,){\s]|$/, excludeBegin: true, returnEnd: true }, r, c] }, o, { className: "meta", begin: "^#!/usr/bin/env", end: "$", illegal: `
|
|
1052
|
-
` }, d] };
|
|
1053
|
-
}
|
|
1054
|
-
__name(tn, "tn");
|
|
1055
|
-
i(tn, "kotlin");
|
|
1056
|
-
var zi = i((e) => ({ IMPORTANT: { scope: "meta", begin: "!important" }, BLOCK_COMMENT: e.C_BLOCK_COMMENT_MODE, HEXCOLOR: { scope: "number", begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ }, UNICODE_RANGE: { scope: "number", begin: /\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/ }, FUNCTION_DISPATCH: { className: "built_in", begin: /[\w-]+(?=\()/ }, ATTRIBUTE_SELECTOR_MODE: { scope: "selector-attr", begin: /\[/, end: /\]/, illegal: "$", contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE] }, CSS_NUMBER_MODE: { scope: "number", begin: e.NUMBER_RE + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", relevance: 0 }, CSS_VARIABLE: { className: "attr", begin: /--[A-Za-z_][A-Za-z0-9_-]*/ } }), "MODES"), $i = ["a", "abbr", "address", "article", "aside", "audio", "b", "blockquote", "body", "button", "canvas", "caption", "cite", "code", "dd", "del", "details", "dfn", "div", "dl", "dt", "em", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "mark", "menu", "nav", "object", "ol", "optgroup", "option", "p", "picture", "q", "quote", "samp", "section", "select", "source", "span", "strong", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "ul", "var", "video"], Ki = ["defs", "g", "marker", "mask", "pattern", "svg", "switch", "symbol", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feFlood", "feGaussianBlur", "feImage", "feMerge", "feMorphology", "feOffset", "feSpecularLighting", "feTile", "feTurbulence", "linearGradient", "radialGradient", "stop", "circle", "ellipse", "image", "line", "path", "polygon", "polyline", "rect", "text", "use", "textPath", "tspan", "foreignObject", "clipPath"], Gi = [...$i, ...Ki], Hi = ["any-hover", "any-pointer", "aspect-ratio", "color", "color-gamut", "color-index", "device-aspect-ratio", "device-height", "device-width", "display-mode", "forced-colors", "grid", "height", "hover", "inverted-colors", "monochrome", "orientation", "overflow-block", "overflow-inline", "pointer", "prefers-color-scheme", "prefers-contrast", "prefers-reduced-motion", "prefers-reduced-transparency", "resolution", "scan", "scripting", "update", "width", "min-width", "max-width", "min-height", "max-height"].sort().reverse(), nn = ["active", "any-link", "blank", "checked", "current", "default", "defined", "dir", "disabled", "drop", "empty", "enabled", "first", "first-child", "first-of-type", "fullscreen", "future", "focus", "focus-visible", "focus-within", "has", "host", "host-context", "hover", "indeterminate", "in-range", "invalid", "is", "lang", "last-child", "last-of-type", "left", "link", "local-link", "not", "nth-child", "nth-col", "nth-last-child", "nth-last-col", "nth-last-of-type", "nth-of-type", "only-child", "only-of-type", "optional", "out-of-range", "past", "placeholder-shown", "read-only", "read-write", "required", "right", "root", "scope", "target", "target-within", "user-invalid", "valid", "visited", "where"].sort().reverse(), an = ["after", "backdrop", "before", "cue", "cue-region", "first-letter", "first-line", "grammar-error", "marker", "part", "placeholder", "selection", "slotted", "spelling-error"].sort().reverse(), Wi = ["accent-color", "align-content", "align-items", "align-self", "alignment-baseline", "all", "anchor-name", "animation", "animation-composition", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-range", "animation-range-end", "animation-range-start", "animation-timeline", "animation-timing-function", "appearance", "aspect-ratio", "backdrop-filter", "backface-visibility", "background", "background-attachment", "background-blend-mode", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-position-x", "background-position-y", "background-repeat", "background-size", "baseline-shift", "block-size", "border", "border-block", "border-block-color", "border-block-end", "border-block-end-color", "border-block-end-style", "border-block-end-width", "border-block-start", "border-block-start-color", "border-block-start-style", "border-block-start-width", "border-block-style", "border-block-width", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-end-end-radius", "border-end-start-radius", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-inline", "border-inline-color", "border-inline-end", "border-inline-end-color", "border-inline-end-style", "border-inline-end-width", "border-inline-start", "border-inline-start-color", "border-inline-start-style", "border-inline-start-width", "border-inline-style", "border-inline-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-start-end-radius", "border-start-start-radius", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-align", "box-decoration-break", "box-direction", "box-flex", "box-flex-group", "box-lines", "box-ordinal-group", "box-orient", "box-pack", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "caret-color", "clear", "clip", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "color-scheme", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "contain", "contain-intrinsic-block-size", "contain-intrinsic-height", "contain-intrinsic-inline-size", "contain-intrinsic-size", "contain-intrinsic-width", "container", "container-name", "container-type", "content", "content-visibility", "corner-bottom-left-shape", "corner-bottom-right-shape", "corner-shape", "corner-top-left-shape", "corner-top-right-shape", "counter-increment", "counter-reset", "counter-set", "cue", "cue-after", "cue-before", "cursor", "cx", "cy", "direction", "display", "dominant-baseline", "empty-cells", "enable-background", "field-sizing", "fill", "fill-opacity", "fill-rule", "filter", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "flood-color", "flood-opacity", "flow", "font", "font-display", "font-family", "font-feature-settings", "font-kerning", "font-language-override", "font-optical-sizing", "font-palette", "font-size", "font-size-adjust", "font-smooth", "font-smoothing", "font-stretch", "font-style", "font-synthesis", "font-synthesis-position", "font-synthesis-small-caps", "font-synthesis-style", "font-synthesis-weight", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-emoji", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-variation-settings", "font-weight", "forced-color-adjust", "gap", "glyph-orientation-horizontal", "glyph-orientation-vertical", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphenate-character", "hyphenate-limit-chars", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "ime-mode", "initial-letter", "initial-letter-align", "inline-size", "inset", "inset-area", "inset-block", "inset-block-end", "inset-block-start", "inset-inline", "inset-inline-end", "inset-inline-start", "isolation", "justify-content", "justify-items", "justify-self", "kerning", "left", "letter-spacing", "lighting-color", "line-break", "line-height", "line-height-step", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-block", "margin-block-end", "margin-block-start", "margin-bottom", "margin-inline", "margin-inline-end", "margin-inline-start", "margin-left", "margin-right", "margin-top", "margin-trim", "marker", "marker-end", "marker-mid", "marker-start", "marks", "mask", "mask-border", "mask-border-mode", "mask-border-outset", "mask-border-repeat", "mask-border-slice", "mask-border-source", "mask-border-width", "mask-clip", "mask-composite", "mask-image", "mask-mode", "mask-origin", "mask-position", "mask-repeat", "mask-size", "mask-type", "masonry-auto-flow", "math-depth", "math-shift", "math-style", "max-block-size", "max-height", "max-inline-size", "max-width", "min-block-size", "min-height", "min-inline-size", "min-width", "mix-blend-mode", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "none", "normal", "object-fit", "object-position", "offset", "offset-anchor", "offset-distance", "offset-path", "offset-position", "offset-rotate", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-anchor", "overflow-block", "overflow-clip-margin", "overflow-inline", "overflow-wrap", "overflow-x", "overflow-y", "overlay", "overscroll-behavior", "overscroll-behavior-block", "overscroll-behavior-inline", "overscroll-behavior-x", "overscroll-behavior-y", "padding", "padding-block", "padding-block-end", "padding-block-start", "padding-bottom", "padding-inline", "padding-inline-end", "padding-inline-start", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "paint-order", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "place-content", "place-items", "place-self", "pointer-events", "position", "position-anchor", "position-visibility", "print-color-adjust", "quotes", "r", "resize", "rest", "rest-after", "rest-before", "right", "rotate", "row-gap", "ruby-align", "ruby-position", "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block", "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom", "scroll-margin-inline", "scroll-margin-inline-end", "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right", "scroll-margin-top", "scroll-padding", "scroll-padding-block", "scroll-padding-block-end", "scroll-padding-block-start", "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end", "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right", "scroll-padding-top", "scroll-snap-align", "scroll-snap-stop", "scroll-snap-type", "scroll-timeline", "scroll-timeline-axis", "scroll-timeline-name", "scrollbar-color", "scrollbar-gutter", "scrollbar-width", "shape-image-threshold", "shape-margin", "shape-outside", "shape-rendering", "speak", "speak-as", "src", "stop-color", "stop-opacity", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "tab-size", "table-layout", "text-align", "text-align-all", "text-align-last", "text-anchor", "text-combine-upright", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-skip-ink", "text-decoration-style", "text-decoration-thickness", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-indent", "text-justify", "text-orientation", "text-overflow", "text-rendering", "text-shadow", "text-size-adjust", "text-transform", "text-underline-offset", "text-underline-position", "text-wrap", "text-wrap-mode", "text-wrap-style", "timeline-scope", "top", "touch-action", "transform", "transform-box", "transform-origin", "transform-style", "transition", "transition-behavior", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "translate", "unicode-bidi", "unicode-range", "user-modify", "user-select", "vector-effect", "vertical-align", "view-timeline", "view-timeline-axis", "view-timeline-inset", "view-timeline-name", "view-transition-name", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "white-space", "white-space-collapse", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "x", "y", "z-index", "zoom"].sort().reverse(), Yi = nn.concat(an).sort().reverse();
|
|
1057
|
-
function rn(e) {
|
|
1058
|
-
let t = zi(e), n = Yi, a = "and or not only", s = "[\\w-]+", g = "(" + s + "|@\\{" + s + "\\})", o = [], r = [], c = i(function(M) {
|
|
1059
|
-
return { className: "string", begin: "~?" + M + ".*?" + M };
|
|
1060
|
-
}, "STRING_MODE"), d = i(function(M, O, A) {
|
|
1061
|
-
return { className: M, begin: O, relevance: A };
|
|
1062
|
-
}, "IDENT_MODE"), u = { $pattern: /[a-z-]+/, keyword: a, attribute: Hi.join(" ") }, _ = { begin: "\\(", end: "\\)", contains: r, keywords: u, relevance: 0 };
|
|
1063
|
-
r.push(e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, c("'"), c('"'), t.CSS_NUMBER_MODE, { begin: "(url|data-uri)\\(", starts: { className: "string", end: "[\\)\\n]", excludeEnd: true } }, t.UNICODE_RANGE, t.HEXCOLOR, _, d("variable", "@@?" + s, 10), d("variable", "@\\{" + s + "\\}"), d("built_in", "~?`[^`]*?`"), { className: "attribute", begin: s + "\\s*:", end: ":", returnBegin: true, excludeEnd: true }, t.IMPORTANT, { beginKeywords: "and not" }, t.FUNCTION_DISPATCH);
|
|
1064
|
-
let b = r.concat({ begin: /\{/, end: /\}/, contains: o }), E = { beginKeywords: "when", endsWithParent: true, contains: [{ beginKeywords: "and not" }].concat(r) }, T = { begin: g + "\\s*:", returnBegin: true, end: /[;}]/, relevance: 0, contains: [{ begin: /-(webkit|moz|ms|o)-/ }, t.CSS_VARIABLE, { className: "attribute", begin: "\\b(" + Wi.join("|") + ")\\b", end: /(?=:)/, starts: { endsWithParent: true, illegal: "[<=$]", relevance: 0, contains: r } }] }, y = { className: "keyword", begin: "@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b", starts: { end: "[;{}]", keywords: u, returnEnd: true, contains: r, relevance: 0 } }, S = { className: "variable", variants: [{ begin: "@" + s + "\\s*:", relevance: 15 }, { begin: "@" + s }], starts: { end: "[;}]", returnEnd: true, contains: b } }, v = { variants: [{ begin: "[\\.#:&\\[>]", end: "[;{}]" }, { begin: g, end: /\{/ }], returnBegin: true, returnEnd: true, illegal: `[<='$"]`, relevance: 0, contains: [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, E, d("keyword", "all\\b"), d("variable", "@\\{" + s + "\\}"), { begin: "\\b(" + Gi.join("|") + ")\\b", className: "selector-tag" }, t.CSS_NUMBER_MODE, d("selector-tag", g, 0), d("selector-id", "#" + g), d("selector-class", "\\." + g, 0), d("selector-tag", "&", 0), t.ATTRIBUTE_SELECTOR_MODE, { className: "selector-pseudo", begin: ":(" + nn.join("|") + ")" }, { className: "selector-pseudo", begin: ":(:)?(" + an.join("|") + ")" }, { begin: /\(/, end: /\)/, relevance: 0, contains: b }, { begin: "!important" }, t.FUNCTION_DISPATCH] }, k = { begin: s + `:(:)?(${n.join("|")})`, returnBegin: true, contains: [v] };
|
|
1065
|
-
return o.push(e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, y, S, k, T, v, E, t.FUNCTION_DISPATCH), { name: "Less", case_insensitive: true, illegal: `[=>'/<($"]`, contains: o };
|
|
1066
|
-
}
|
|
1067
|
-
__name(rn, "rn");
|
|
1068
|
-
i(rn, "less");
|
|
1069
|
-
function on(e) {
|
|
1070
|
-
let t = "\\[=*\\[", n = "\\]=*\\]", a = { begin: t, end: n, contains: ["self"] }, s = [e.COMMENT("--(?!" + t + ")", "$"), e.COMMENT("--" + t, n, { contains: [a], relevance: 10 })];
|
|
1071
|
-
return { name: "Lua", aliases: ["pluto"], keywords: { $pattern: e.UNDERSCORE_IDENT_RE, literal: "true false nil", keyword: "and break do else elseif end for goto if in local global not or repeat return then until while", built_in: "_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove" }, contains: s.concat([{ className: "function", beginKeywords: "function", end: "\\)", contains: [e.inherit(e.TITLE_MODE, { begin: "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*" }), { className: "params", begin: "\\(", endsWithParent: true, contains: s }].concat(s) }, e.C_NUMBER_MODE, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, { className: "string", begin: t, end: n, contains: [a], relevance: 5 }]) };
|
|
1072
|
-
}
|
|
1073
|
-
__name(on, "on");
|
|
1074
|
-
i(on, "lua");
|
|
1075
|
-
function sn(e) {
|
|
1076
|
-
let t = { className: "variable", variants: [{ begin: "\\$\\(" + e.UNDERSCORE_IDENT_RE + "\\)", contains: [e.BACKSLASH_ESCAPE] }, { begin: /\$[@%<?\^\+\*]/ }] }, n = { className: "string", begin: /"/, end: /"/, contains: [e.BACKSLASH_ESCAPE, t] }, a = { className: "variable", begin: /\$\([\w-]+\s/, end: /\)/, keywords: { built_in: "subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value" }, contains: [t, n] }, s = { begin: "^" + e.UNDERSCORE_IDENT_RE + "\\s*(?=[:+?]?=)" }, g = { className: "meta", begin: /^\.PHONY:/, end: /$/, keywords: { $pattern: /[\.\w]+/, keyword: ".PHONY" } }, o = { className: "section", begin: /^[^\s]+:/, end: /$/, contains: [t] };
|
|
1077
|
-
return { name: "Makefile", aliases: ["mk", "mak", "make"], keywords: { $pattern: /[\w-]+/, keyword: "define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath" }, contains: [e.HASH_COMMENT_MODE, t, n, a, s, g, o] };
|
|
1078
|
-
}
|
|
1079
|
-
__name(sn, "sn");
|
|
1080
|
-
i(sn, "makefile");
|
|
1081
|
-
function cn(e) {
|
|
1082
|
-
let t = e.regex, n = /(?![A-Za-z0-9])(?![$])/, a = t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, n), s = t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/, n), g = t.concat(/[A-Z]+/, n), o = { scope: "variable", match: "\\$+" + a }, r = { scope: "meta", variants: [{ begin: /<\?php/, relevance: 10 }, { begin: /<\?=/ }, { begin: /<\?/, relevance: 0.1 }, { begin: /\?>/ }] }, c = { scope: "subst", variants: [{ begin: /\$\w+/ }, { begin: /\{\$/, end: /\}/ }] }, d = e.inherit(e.APOS_STRING_MODE, { illegal: null }), u = e.inherit(e.QUOTE_STRING_MODE, { illegal: null, contains: e.QUOTE_STRING_MODE.contains.concat(c) }), _ = { begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/, end: /[ \t]*(\w+)\b/, contains: e.QUOTE_STRING_MODE.contains.concat(c), "on:begin": i((K, G) => {
|
|
1083
|
-
G.data._beginMatch = K[1] || K[2];
|
|
1084
|
-
}, "on:begin"), "on:end": i((K, G) => {
|
|
1085
|
-
G.data._beginMatch !== K[1] && G.ignoreMatch();
|
|
1086
|
-
}, "on:end") }, b = e.END_SAME_AS_BEGIN({ begin: /<<<[ \t]*'(\w+)'\n/, end: /[ \t]*(\w+)\b/ }), E = `[
|
|
1087
|
-
]`, T = { scope: "string", variants: [u, d, _, b] }, y = { scope: "number", variants: [{ begin: "\\b0[bB][01]+(?:_[01]+)*\\b" }, { begin: "\\b0[oO][0-7]+(?:_[0-7]+)*\\b" }, { begin: "\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b" }, { begin: "(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?" }], relevance: 0 }, S = ["false", "null", "true"], v = ["__CLASS__", "__DIR__", "__FILE__", "__FUNCTION__", "__COMPILER_HALT_OFFSET__", "__LINE__", "__METHOD__", "__NAMESPACE__", "__TRAIT__", "die", "echo", "exit", "include", "include_once", "print", "require", "require_once", "array", "abstract", "and", "as", "binary", "bool", "boolean", "break", "callable", "case", "catch", "class", "clone", "const", "continue", "declare", "default", "do", "double", "else", "elseif", "empty", "enddeclare", "endfor", "endforeach", "endif", "endswitch", "endwhile", "enum", "eval", "extends", "final", "finally", "float", "for", "foreach", "from", "global", "goto", "if", "implements", "instanceof", "insteadof", "int", "integer", "interface", "isset", "iterable", "list", "match|0", "mixed", "new", "never", "object", "or", "private", "protected", "public", "readonly", "real", "return", "string", "switch", "throw", "trait", "try", "unset", "use", "var", "void", "while", "xor", "yield"], k = ["Error|0", "AppendIterator", "ArgumentCountError", "ArithmeticError", "ArrayIterator", "ArrayObject", "AssertionError", "BadFunctionCallException", "BadMethodCallException", "CachingIterator", "CallbackFilterIterator", "CompileError", "Countable", "DirectoryIterator", "DivisionByZeroError", "DomainException", "EmptyIterator", "ErrorException", "Exception", "FilesystemIterator", "FilterIterator", "GlobIterator", "InfiniteIterator", "InvalidArgumentException", "IteratorIterator", "LengthException", "LimitIterator", "LogicException", "MultipleIterator", "NoRewindIterator", "OutOfBoundsException", "OutOfRangeException", "OuterIterator", "OverflowException", "ParentIterator", "ParseError", "RangeException", "RecursiveArrayIterator", "RecursiveCachingIterator", "RecursiveCallbackFilterIterator", "RecursiveDirectoryIterator", "RecursiveFilterIterator", "RecursiveIterator", "RecursiveIteratorIterator", "RecursiveRegexIterator", "RecursiveTreeIterator", "RegexIterator", "RuntimeException", "SeekableIterator", "SplDoublyLinkedList", "SplFileInfo", "SplFileObject", "SplFixedArray", "SplHeap", "SplMaxHeap", "SplMinHeap", "SplObjectStorage", "SplObserver", "SplPriorityQueue", "SplQueue", "SplStack", "SplSubject", "SplTempFileObject", "TypeError", "UnderflowException", "UnexpectedValueException", "UnhandledMatchError", "ArrayAccess", "BackedEnum", "Closure", "Fiber", "Generator", "Iterator", "IteratorAggregate", "Serializable", "Stringable", "Throwable", "Traversable", "UnitEnum", "WeakReference", "WeakMap", "Directory", "__PHP_Incomplete_Class", "parent", "php_user_filter", "self", "static", "stdClass"], O = { keyword: v, literal: i((K) => {
|
|
1088
|
-
let G = [];
|
|
1089
|
-
return K.forEach((l) => {
|
|
1090
|
-
G.push(l), l.toLowerCase() === l ? G.push(l.toUpperCase()) : G.push(l.toLowerCase());
|
|
1091
|
-
}), G;
|
|
1092
|
-
}, "dualCase")(S), built_in: k }, A = i((K) => K.map((G) => G.replace(/\|\d+$/, "")), "normalizeKeywords"), x = { variants: [{ match: [/new/, t.concat(E, "+"), t.concat("(?!", A(k).join("\\b|"), "\\b)"), s], scope: { 1: "keyword", 4: "title.class" } }] }, I = t.concat(a, "\\b(?!\\()"), D = { variants: [{ match: [t.concat(/::/, t.lookahead(/(?!class\b)/)), I], scope: { 2: "variable.constant" } }, { match: [/::/, /class/], scope: { 2: "variable.language" } }, { match: [s, t.concat(/::/, t.lookahead(/(?!class\b)/)), I], scope: { 1: "title.class", 3: "variable.constant" } }, { match: [s, t.concat("::", t.lookahead(/(?!class\b)/))], scope: { 1: "title.class" } }, { match: [s, /::/, /class/], scope: { 1: "title.class", 3: "variable.language" } }] }, B = { scope: "attr", match: t.concat(a, t.lookahead(":"), t.lookahead(/(?!::)/)) }, W = { relevance: 0, begin: /\(/, end: /\)/, keywords: O, contains: [B, o, D, e.C_BLOCK_COMMENT_MODE, e.C_LINE_COMMENT_MODE, e.HASH_COMMENT_MODE, T, y, x] }, X = { relevance: 0, match: [/\b/, t.concat("(?!fn\\b|function\\b|", A(v).join("\\b|"), "|", A(k).join("\\b|"), "\\b)"), a, t.concat(E, "*"), t.lookahead(/(?=\()/)], scope: { 3: "title.function.invoke" }, contains: [W] };
|
|
1093
|
-
W.contains.push(X);
|
|
1094
|
-
let Q = [B, D, e.C_BLOCK_COMMENT_MODE, e.C_LINE_COMMENT_MODE, e.HASH_COMMENT_MODE, T, y, x], ee = { begin: t.concat(/#\[\s*\\?/, t.either(s, g)), beginScope: "meta", end: /]/, endScope: "meta", keywords: { literal: S, keyword: ["new", "array"] }, contains: [{ begin: /\[/, end: /]/, keywords: { literal: S, keyword: ["new", "array"] }, contains: ["self", ...Q] }, ...Q, { scope: "meta", variants: [{ match: s }, { match: g }] }] };
|
|
1095
|
-
return { case_insensitive: false, keywords: O, contains: [ee, e.HASH_COMMENT_MODE, e.COMMENT("//", "$"), e.COMMENT("/\\*", "\\*/", { contains: [{ scope: "doctag", match: "@[A-Za-z]+" }] }), { match: /__halt_compiler\(\);/, keywords: "__halt_compiler", starts: { scope: "comment", end: e.MATCH_NOTHING_RE, contains: [{ match: /\?>/, scope: "meta", endsParent: true }] } }, r, { scope: "variable.language", match: /\$this\b/ }, o, X, D, { match: [/const/, /\s/, a], scope: { 1: "keyword", 3: "variable.constant" } }, x, { scope: "function", relevance: 0, beginKeywords: "fn function", end: /[;{]/, excludeEnd: true, illegal: "[$%\\[]", contains: [{ beginKeywords: "use" }, e.UNDERSCORE_TITLE_MODE, { begin: "=>", endsParent: true }, { scope: "params", begin: "\\(", end: "\\)", excludeBegin: true, excludeEnd: true, keywords: O, contains: ["self", ee, o, D, e.C_BLOCK_COMMENT_MODE, e.C_LINE_COMMENT_MODE, e.HASH_COMMENT_MODE, T, y] }] }, { scope: "class", variants: [{ beginKeywords: "enum", illegal: /[($"]/ }, { beginKeywords: "class interface trait", illegal: /[:($"]/ }], relevance: 0, end: /\{/, excludeEnd: true, contains: [{ beginKeywords: "extends implements" }, e.UNDERSCORE_TITLE_MODE] }, { beginKeywords: "namespace", relevance: 0, end: ";", illegal: /[.']/, contains: [e.inherit(e.UNDERSCORE_TITLE_MODE, { scope: "title.class" })] }, { beginKeywords: "use", relevance: 0, end: ";", contains: [{ match: /\b(as|const|function)\b/, scope: "keyword" }, e.UNDERSCORE_TITLE_MODE] }, T, y] };
|
|
1096
|
-
}
|
|
1097
|
-
__name(cn, "cn");
|
|
1098
|
-
i(cn, "php");
|
|
1099
|
-
function ln(e) {
|
|
1100
|
-
let t = ["string", "char", "byte", "int", "long", "bool", "decimal", "single", "double", "DateTime", "xml", "array", "hashtable", "void"], n = "Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where", a = "-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor", s = { $pattern: /-?[A-z\.\-]+\b/, keyword: "if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter", built_in: "ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write" }, g = /\w[\w\d]*((-)[\w\d]+)*/, o = { begin: "`[\\s\\S]", relevance: 0 }, r = { className: "variable", variants: [{ begin: /\$\B/ }, { className: "keyword", begin: /\$this/ }, { begin: /\$[\w\d][\w\d_:]*/ }] }, c = { className: "literal", begin: /\$(null|true|false)\b/ }, d = { className: "string", variants: [{ begin: /"/, end: /"/ }, { begin: /@"/, end: /^"@/ }], contains: [o, r, { className: "variable", begin: /\$[A-z]/, end: /[^A-z]/ }] }, u = { className: "string", variants: [{ begin: /'/, end: /'/ }, { begin: /@'/, end: /^'@/ }] }, _ = { className: "doctag", variants: [{ begin: /\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/ }, { begin: /\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/ }] }, b = e.inherit(e.COMMENT(null, null), { variants: [{ begin: /#/, end: /$/ }, { begin: /<#/, end: /#>/ }], contains: [_] }), E = { className: "built_in", variants: [{ begin: "(".concat(n, ")+(-)[\\w\\d]+") }] }, T = { className: "class", beginKeywords: "class enum", end: /\s*[{]/, excludeEnd: true, relevance: 0, contains: [e.TITLE_MODE] }, y = { className: "function", begin: /function\s+/, end: /\s*\{|$/, excludeEnd: true, returnBegin: true, relevance: 0, contains: [{ begin: "function", relevance: 0, className: "keyword" }, { className: "title", begin: g, relevance: 0 }, { begin: /\(/, end: /\)/, className: "params", relevance: 0, contains: [r] }] }, S = { begin: /using\s/, end: /$/, returnBegin: true, contains: [d, u, { className: "keyword", begin: /(using|assembly|command|module|namespace|type)/ }] }, v = { variants: [{ className: "operator", begin: "(".concat(a, ")\\b") }, { className: "literal", begin: /(-){1,2}[\w\d-]+/, relevance: 0 }] }, k = { className: "selector-tag", begin: /@\B/, relevance: 0 }, M = { className: "function", begin: /\[.*\]\s*[\w]+[ ]??\(/, end: /$/, returnBegin: true, relevance: 0, contains: [{ className: "keyword", begin: "(".concat(s.keyword.toString().replace(/\s/g, "|"), ")\\b"), endsParent: true, relevance: 0 }, e.inherit(e.TITLE_MODE, { endsParent: true })] }, O = [M, b, o, e.NUMBER_MODE, d, u, E, r, c, k], A = { begin: /\[/, end: /\]/, excludeBegin: true, excludeEnd: true, relevance: 0, contains: [].concat("self", O, { begin: "(" + t.join("|") + ")", className: "built_in", relevance: 0 }, { className: "type", begin: /[\.\w\d]+/, relevance: 0 }) };
|
|
1101
|
-
return M.contains.unshift(A), { name: "PowerShell", aliases: ["pwsh", "ps", "ps1"], case_insensitive: true, keywords: s, contains: O.concat(T, y, S, v, A) };
|
|
1102
|
-
}
|
|
1103
|
-
__name(ln, "ln");
|
|
1104
|
-
i(ln, "powershell");
|
|
1105
|
-
function dn(e) {
|
|
1106
|
-
let t = e.regex, n = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", a = t.either(/\b([A-Z]+[a-z0-9]+)+/, /\b([A-Z]+[a-z0-9]+)+[A-Z]+/), s = t.concat(a, /(::\w+)*/), o = { "variable.constant": ["__FILE__", "__LINE__", "__ENCODING__"], "variable.language": ["self", "super"], keyword: ["alias", "and", "begin", "BEGIN", "break", "case", "class", "defined", "do", "else", "elsif", "end", "END", "ensure", "for", "if", "in", "module", "next", "not", "or", "redo", "require", "rescue", "retry", "return", "then", "undef", "unless", "until", "when", "while", "yield", ...["include", "extend", "prepend", "public", "private", "protected", "raise", "throw"]], built_in: ["proc", "lambda", "attr_accessor", "attr_reader", "attr_writer", "define_method", "private_constant", "module_function"], literal: ["true", "false", "nil"] }, r = { className: "doctag", begin: "@[A-Za-z]+" }, c = { begin: "#<", end: ">" }, d = [e.COMMENT("#", "$", { contains: [r] }), e.COMMENT("^=begin", "^=end", { contains: [r], relevance: 10 }), e.COMMENT("^__END__", e.MATCH_NOTHING_RE)], u = { className: "subst", begin: /#\{/, end: /\}/, keywords: o }, _ = { className: "string", contains: [e.BACKSLASH_ESCAPE, u], variants: [{ begin: /'/, end: /'/ }, { begin: /"/, end: /"/ }, { begin: /`/, end: /`/ }, { begin: /%[qQwWx]?\(/, end: /\)/ }, { begin: /%[qQwWx]?\[/, end: /\]/ }, { begin: /%[qQwWx]?\{/, end: /\}/ }, { begin: /%[qQwWx]?</, end: />/ }, { begin: /%[qQwWx]?\//, end: /\// }, { begin: /%[qQwWx]?%/, end: /%/ }, { begin: /%[qQwWx]?-/, end: /-/ }, { begin: /%[qQwWx]?\|/, end: /\|/ }, { begin: /\B\?(\\\d{1,3})/ }, { begin: /\B\?(\\x[A-Fa-f0-9]{1,2})/ }, { begin: /\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/ }, { begin: /\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/ }, { begin: /\B\?\\(c|C-)[\x20-\x7e]/ }, { begin: /\B\?\\?\S/ }, { begin: t.concat(/<<[-~]?'?/, t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)), contains: [e.END_SAME_AS_BEGIN({ begin: /(\w+)/, end: /(\w+)/, contains: [e.BACKSLASH_ESCAPE, u] })] }] }, b = "[1-9](_?[0-9])*|0", E = "[0-9](_?[0-9])*", T = { className: "number", relevance: 0, variants: [{ begin: `\\b(${b})(\\.(${E}))?([eE][+-]?(${E})|r)?i?\\b` }, { begin: "\\b0[dD][0-9](_?[0-9])*r?i?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*r?i?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*r?i?\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b" }, { begin: "\\b0(_?[0-7])+r?i?\\b" }] }, y = { variants: [{ match: /\(\)/ }, { className: "params", begin: /\(/, end: /(?=\))/, excludeBegin: true, endsParent: true, keywords: o }] }, x = [_, { variants: [{ match: [/class\s+/, s, /\s+<\s+/, s] }, { match: [/\b(class|module)\s+/, s] }], scope: { 2: "title.class", 4: "title.class.inherited" }, keywords: o }, { match: [/(include|extend)\s+/, s], scope: { 2: "title.class" }, keywords: o }, { relevance: 0, match: [s, /\.new[. (]/], scope: { 1: "title.class" } }, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, { relevance: 0, match: a, scope: "title.class" }, { match: [/def/, /\s+/, n], scope: { 1: "keyword", 3: "title.function" }, contains: [y] }, { begin: "::" }, { className: "symbol", begin: e.UNDERSCORE_IDENT_RE + "(!|\\?)?:", relevance: 0 }, { className: "symbol", begin: ":(?!\\s)", contains: [_, { begin: n }], relevance: 0 }, T, { className: "variable", begin: "(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])" }, { className: "params", begin: /\|(?!=)/, end: /\|/, excludeBegin: true, excludeEnd: true, relevance: 0, keywords: o }, { begin: "(" + e.RE_STARTERS_RE + "|unless)\\s*", keywords: "unless", contains: [{ className: "regexp", contains: [e.BACKSLASH_ESCAPE, u], illegal: /\n/, variants: [{ begin: "/", end: "/[a-z]*" }, { begin: /%r\{/, end: /\}[a-z]*/ }, { begin: "%r\\(", end: "\\)[a-z]*" }, { begin: "%r!", end: "![a-z]*" }, { begin: "%r\\[", end: "\\][a-z]*" }] }].concat(c, d), relevance: 0 }].concat(c, d);
|
|
1107
|
-
u.contains = x, y.contains = x;
|
|
1108
|
-
let W = [{ begin: /^\s*=>/, starts: { end: "$", contains: x } }, { className: "meta.prompt", begin: "^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])", starts: { end: "$", keywords: o, contains: x } }];
|
|
1109
|
-
return d.unshift(c), { name: "Ruby", aliases: ["rb", "gemspec", "podspec", "thor", "irb"], keywords: o, illegal: /\/\*/, contains: [e.SHEBANG({ binary: "ruby" })].concat(W).concat(d).concat(x) };
|
|
1110
|
-
}
|
|
1111
|
-
__name(dn, "dn");
|
|
1112
|
-
i(dn, "ruby");
|
|
1113
|
-
function un(e) {
|
|
1114
|
-
let t = e.regex, n = /(r#)?/, a = t.concat(n, e.UNDERSCORE_IDENT_RE), s = t.concat(n, e.IDENT_RE), g = { scope: "title.function.invoke", relevance: 0, begin: t.concat(/\b/, /(?!(?:let|for|while|if|else|match)\b)/, s, t.lookahead(/\s*\(/)) }, o = "([ui](8|16|32|64|128|size)|f(16|32|64|128))?", r = ["abstract", "as", "async", "await", "become", "box", "break", "const", "continue", "crate", "do", "dyn", "else", "enum", "extern", "false", "final", "fn", "for", "if", "impl", "in", "let", "loop", "macro", "match", "mod", "move", "mut", "override", "priv", "pub", "raw", "ref", "return", "self", "Self", "static", "struct", "super", "trait", "true", "try", "type", "typeof", "union", "unsafe", "unsized", "use", "virtual", "where", "while", "yield"], c = ["true", "false", "Some", "None", "Ok", "Err"], d = ["drop ", "Copy", "Send", "Sized", "Sync", "Drop", "Fn", "FnMut", "FnOnce", "ToOwned", "Clone", "Debug", "PartialEq", "PartialOrd", "Eq", "Ord", "AsRef", "AsMut", "Into", "From", "Default", "Iterator", "Extend", "IntoIterator", "DoubleEndedIterator", "ExactSizeIterator", "SliceConcatExt", "ToString", "assert!", "assert_eq!", "bitflags!", "bytes!", "cfg!", "col!", "concat!", "concat_idents!", "debug_assert!", "debug_assert_eq!", "env!", "eprintln!", "panic!", "file!", "format!", "format_args!", "include_bytes!", "include_str!", "line!", "local_data_key!", "module_path!", "option_env!", "print!", "println!", "select!", "stringify!", "try!", "unimplemented!", "unreachable!", "vec!", "write!", "writeln!", "macro_rules!", "assert_ne!", "debug_assert_ne!"], u = ["i8", "i16", "i32", "i64", "i128", "isize", "u8", "u16", "u32", "u64", "u128", "usize", "f16", "f32", "f64", "f128", "str", "char", "bool", "Box", "Option", "Result", "String", "Vec"];
|
|
1115
|
-
return { name: "Rust", aliases: ["rs"], keywords: { $pattern: e.IDENT_RE + "!?", type: u, keyword: r, literal: c, built_in: d }, illegal: "</", contains: [e.C_LINE_COMMENT_MODE, e.COMMENT("/\\*", "\\*/", { contains: ["self"] }), e.inherit(e.QUOTE_STRING_MODE, { begin: /b?"/, illegal: null }), { scope: "symbol", begin: /'[a-zA-Z_][a-zA-Z0-9_]*(?!')/ }, { scope: "string", variants: [{ begin: /b?r(#*)"(.|\n)*?"\1(?!#)/ }, { begin: /b?'/, end: /'/, contains: [{ scope: "char.escape", match: /\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/ }] }] }, { scope: "number", variants: [{ begin: "\\b0b([01_]+)" + o }, { begin: "\\b0o([0-7_]+)" + o }, { begin: "\\b0x([A-Fa-f0-9_]+)" + o }, { begin: "\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)" + o }], relevance: 0 }, { begin: [/\bsafe/, /\s+/, /extern/], scope: { 1: "keyword", 3: "keyword" } }, { begin: [/fn/, /\s+/, a], scope: { 1: "keyword", 3: "title.function" } }, { scope: "meta", begin: "#!?\\[", end: "\\]", contains: [{ scope: "string", begin: /"/, end: /"/, contains: [e.BACKSLASH_ESCAPE] }] }, { begin: [/let/, /\s+/, /(?:mut\s+)?/, a], scope: { 1: "keyword", 3: "keyword", 4: "variable" } }, { begin: [/for/, /\s+/, a, /\s+/, /in/], scope: { 1: "keyword", 3: "variable", 5: "keyword" } }, { begin: [/type/, /\s+/, a], scope: { 1: "keyword", 3: "title.class" } }, { begin: [/(?:trait|enum|struct|union|impl|for)/, /\s+/, a], scope: { 1: "keyword", 3: "title.class" } }, { begin: e.IDENT_RE + "::", keywords: { keyword: "Self", built_in: d, type: u } }, { scope: "punctuation", begin: "->" }, g] };
|
|
1116
|
-
}
|
|
1117
|
-
__name(un, "un");
|
|
1118
|
-
i(un, "rust");
|
|
1119
|
-
var qi = i((e) => ({ IMPORTANT: { scope: "meta", begin: "!important" }, BLOCK_COMMENT: e.C_BLOCK_COMMENT_MODE, HEXCOLOR: { scope: "number", begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ }, UNICODE_RANGE: { scope: "number", begin: /\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/ }, FUNCTION_DISPATCH: { className: "built_in", begin: /[\w-]+(?=\()/ }, ATTRIBUTE_SELECTOR_MODE: { scope: "selector-attr", begin: /\[/, end: /\]/, illegal: "$", contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE] }, CSS_NUMBER_MODE: { scope: "number", begin: e.NUMBER_RE + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", relevance: 0 }, CSS_VARIABLE: { className: "attr", begin: /--[A-Za-z_][A-Za-z0-9_-]*/ } }), "MODES"), Zi = ["a", "abbr", "address", "article", "aside", "audio", "b", "blockquote", "body", "button", "canvas", "caption", "cite", "code", "dd", "del", "details", "dfn", "div", "dl", "dt", "em", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "mark", "menu", "nav", "object", "ol", "optgroup", "option", "p", "picture", "q", "quote", "samp", "section", "select", "source", "span", "strong", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "ul", "var", "video"], Vi = ["defs", "g", "marker", "mask", "pattern", "svg", "switch", "symbol", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feFlood", "feGaussianBlur", "feImage", "feMerge", "feMorphology", "feOffset", "feSpecularLighting", "feTile", "feTurbulence", "linearGradient", "radialGradient", "stop", "circle", "ellipse", "image", "line", "path", "polygon", "polyline", "rect", "text", "use", "textPath", "tspan", "foreignObject", "clipPath"], Xi = [...Zi, ...Vi], Qi = ["any-hover", "any-pointer", "aspect-ratio", "color", "color-gamut", "color-index", "device-aspect-ratio", "device-height", "device-width", "display-mode", "forced-colors", "grid", "height", "hover", "inverted-colors", "monochrome", "orientation", "overflow-block", "overflow-inline", "pointer", "prefers-color-scheme", "prefers-contrast", "prefers-reduced-motion", "prefers-reduced-transparency", "resolution", "scan", "scripting", "update", "width", "min-width", "max-width", "min-height", "max-height"].sort().reverse(), Ji = ["active", "any-link", "blank", "checked", "current", "default", "defined", "dir", "disabled", "drop", "empty", "enabled", "first", "first-child", "first-of-type", "fullscreen", "future", "focus", "focus-visible", "focus-within", "has", "host", "host-context", "hover", "indeterminate", "in-range", "invalid", "is", "lang", "last-child", "last-of-type", "left", "link", "local-link", "not", "nth-child", "nth-col", "nth-last-child", "nth-last-col", "nth-last-of-type", "nth-of-type", "only-child", "only-of-type", "optional", "out-of-range", "past", "placeholder-shown", "read-only", "read-write", "required", "right", "root", "scope", "target", "target-within", "user-invalid", "valid", "visited", "where"].sort().reverse(), ji = ["after", "backdrop", "before", "cue", "cue-region", "first-letter", "first-line", "grammar-error", "marker", "part", "placeholder", "selection", "slotted", "spelling-error"].sort().reverse(), ea = ["accent-color", "align-content", "align-items", "align-self", "alignment-baseline", "all", "anchor-name", "animation", "animation-composition", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-range", "animation-range-end", "animation-range-start", "animation-timeline", "animation-timing-function", "appearance", "aspect-ratio", "backdrop-filter", "backface-visibility", "background", "background-attachment", "background-blend-mode", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-position-x", "background-position-y", "background-repeat", "background-size", "baseline-shift", "block-size", "border", "border-block", "border-block-color", "border-block-end", "border-block-end-color", "border-block-end-style", "border-block-end-width", "border-block-start", "border-block-start-color", "border-block-start-style", "border-block-start-width", "border-block-style", "border-block-width", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-end-end-radius", "border-end-start-radius", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-inline", "border-inline-color", "border-inline-end", "border-inline-end-color", "border-inline-end-style", "border-inline-end-width", "border-inline-start", "border-inline-start-color", "border-inline-start-style", "border-inline-start-width", "border-inline-style", "border-inline-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-start-end-radius", "border-start-start-radius", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-align", "box-decoration-break", "box-direction", "box-flex", "box-flex-group", "box-lines", "box-ordinal-group", "box-orient", "box-pack", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "caret-color", "clear", "clip", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "color-scheme", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "contain", "contain-intrinsic-block-size", "contain-intrinsic-height", "contain-intrinsic-inline-size", "contain-intrinsic-size", "contain-intrinsic-width", "container", "container-name", "container-type", "content", "content-visibility", "corner-bottom-left-shape", "corner-bottom-right-shape", "corner-shape", "corner-top-left-shape", "corner-top-right-shape", "counter-increment", "counter-reset", "counter-set", "cue", "cue-after", "cue-before", "cursor", "cx", "cy", "direction", "display", "dominant-baseline", "empty-cells", "enable-background", "field-sizing", "fill", "fill-opacity", "fill-rule", "filter", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "flood-color", "flood-opacity", "flow", "font", "font-display", "font-family", "font-feature-settings", "font-kerning", "font-language-override", "font-optical-sizing", "font-palette", "font-size", "font-size-adjust", "font-smooth", "font-smoothing", "font-stretch", "font-style", "font-synthesis", "font-synthesis-position", "font-synthesis-small-caps", "font-synthesis-style", "font-synthesis-weight", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-emoji", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-variation-settings", "font-weight", "forced-color-adjust", "gap", "glyph-orientation-horizontal", "glyph-orientation-vertical", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphenate-character", "hyphenate-limit-chars", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "ime-mode", "initial-letter", "initial-letter-align", "inline-size", "inset", "inset-area", "inset-block", "inset-block-end", "inset-block-start", "inset-inline", "inset-inline-end", "inset-inline-start", "isolation", "justify-content", "justify-items", "justify-self", "kerning", "left", "letter-spacing", "lighting-color", "line-break", "line-height", "line-height-step", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-block", "margin-block-end", "margin-block-start", "margin-bottom", "margin-inline", "margin-inline-end", "margin-inline-start", "margin-left", "margin-right", "margin-top", "margin-trim", "marker", "marker-end", "marker-mid", "marker-start", "marks", "mask", "mask-border", "mask-border-mode", "mask-border-outset", "mask-border-repeat", "mask-border-slice", "mask-border-source", "mask-border-width", "mask-clip", "mask-composite", "mask-image", "mask-mode", "mask-origin", "mask-position", "mask-repeat", "mask-size", "mask-type", "masonry-auto-flow", "math-depth", "math-shift", "math-style", "max-block-size", "max-height", "max-inline-size", "max-width", "min-block-size", "min-height", "min-inline-size", "min-width", "mix-blend-mode", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "none", "normal", "object-fit", "object-position", "offset", "offset-anchor", "offset-distance", "offset-path", "offset-position", "offset-rotate", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-anchor", "overflow-block", "overflow-clip-margin", "overflow-inline", "overflow-wrap", "overflow-x", "overflow-y", "overlay", "overscroll-behavior", "overscroll-behavior-block", "overscroll-behavior-inline", "overscroll-behavior-x", "overscroll-behavior-y", "padding", "padding-block", "padding-block-end", "padding-block-start", "padding-bottom", "padding-inline", "padding-inline-end", "padding-inline-start", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "paint-order", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "place-content", "place-items", "place-self", "pointer-events", "position", "position-anchor", "position-visibility", "print-color-adjust", "quotes", "r", "resize", "rest", "rest-after", "rest-before", "right", "rotate", "row-gap", "ruby-align", "ruby-position", "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block", "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom", "scroll-margin-inline", "scroll-margin-inline-end", "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right", "scroll-margin-top", "scroll-padding", "scroll-padding-block", "scroll-padding-block-end", "scroll-padding-block-start", "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end", "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right", "scroll-padding-top", "scroll-snap-align", "scroll-snap-stop", "scroll-snap-type", "scroll-timeline", "scroll-timeline-axis", "scroll-timeline-name", "scrollbar-color", "scrollbar-gutter", "scrollbar-width", "shape-image-threshold", "shape-margin", "shape-outside", "shape-rendering", "speak", "speak-as", "src", "stop-color", "stop-opacity", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "tab-size", "table-layout", "text-align", "text-align-all", "text-align-last", "text-anchor", "text-combine-upright", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-skip-ink", "text-decoration-style", "text-decoration-thickness", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-indent", "text-justify", "text-orientation", "text-overflow", "text-rendering", "text-shadow", "text-size-adjust", "text-transform", "text-underline-offset", "text-underline-position", "text-wrap", "text-wrap-mode", "text-wrap-style", "timeline-scope", "top", "touch-action", "transform", "transform-box", "transform-origin", "transform-style", "transition", "transition-behavior", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "translate", "unicode-bidi", "unicode-range", "user-modify", "user-select", "vector-effect", "vertical-align", "view-timeline", "view-timeline-axis", "view-timeline-inset", "view-timeline-name", "view-transition-name", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "white-space", "white-space-collapse", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "x", "y", "z-index", "zoom"].sort().reverse();
|
|
1120
|
-
function gn(e) {
|
|
1121
|
-
let t = qi(e), n = ji, a = Ji, s = "@[a-z-]+", g = "and or not only", r = { className: "variable", begin: "(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b", relevance: 0 };
|
|
1122
|
-
return { name: "SCSS", case_insensitive: true, illegal: "[=/|']", contains: [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, t.CSS_NUMBER_MODE, { className: "selector-id", begin: "#[A-Za-z0-9_-]+", relevance: 0 }, { className: "selector-class", begin: "\\.[A-Za-z0-9_-]+", relevance: 0 }, t.ATTRIBUTE_SELECTOR_MODE, { className: "selector-tag", begin: "\\b(" + Xi.join("|") + ")\\b", relevance: 0 }, { className: "selector-pseudo", begin: ":(" + a.join("|") + ")" }, { className: "selector-pseudo", begin: ":(:)?(" + n.join("|") + ")" }, r, { begin: /\(/, end: /\)/, contains: [t.CSS_NUMBER_MODE] }, t.CSS_VARIABLE, { className: "attribute", begin: "\\b(" + ea.join("|") + ")\\b" }, { begin: "\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" }, { begin: /:/, end: /[;}{]/, relevance: 0, contains: [t.BLOCK_COMMENT, r, t.HEXCOLOR, t.CSS_NUMBER_MODE, t.UNICODE_RANGE, e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, t.IMPORTANT, t.FUNCTION_DISPATCH] }, { begin: "@(page|font-face)", keywords: { $pattern: s, keyword: "@page @font-face" } }, { begin: "@", end: "[{;]", returnBegin: true, keywords: { $pattern: /[a-z-]+/, keyword: g, attribute: Qi.join(" ") }, contains: [{ begin: s, className: "keyword" }, { begin: /[a-z-]+(?=:)/, className: "attribute" }, r, e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, t.HEXCOLOR, t.CSS_NUMBER_MODE] }, t.FUNCTION_DISPATCH] };
|
|
1123
|
-
}
|
|
1124
|
-
__name(gn, "gn");
|
|
1125
|
-
i(gn, "scss");
|
|
1126
|
-
function pn(e) {
|
|
1127
|
-
return { name: "Shell Session", aliases: ["console", "shellsession"], contains: [{ className: "meta.prompt", begin: /^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/, starts: { end: /[^\\](?=\s*$)/, subLanguage: "bash" } }] };
|
|
1128
|
-
}
|
|
1129
|
-
__name(pn, "pn");
|
|
1130
|
-
i(pn, "shell");
|
|
1131
|
-
function bn(e) {
|
|
1132
|
-
let t = e.regex, n = e.COMMENT("--", "$"), a = { scope: "string", variants: [{ begin: /'/, end: /'/, contains: [{ match: /''/ }] }] }, s = { begin: /"/, end: /"/, contains: [{ match: /""/ }] }, g = ["true", "false", "unknown"], o = ["double precision", "large object", "with timezone", "without timezone"], r = ["bigint", "binary", "blob", "boolean", "char", "character", "clob", "date", "dec", "decfloat", "decimal", "float", "int", "integer", "interval", "nchar", "nclob", "national", "numeric", "real", "row", "smallint", "time", "timestamp", "varchar", "varying", "varbinary"], c = ["add", "asc", "collation", "desc", "final", "first", "last", "view"], d = ["abs", "acos", "all", "allocate", "alter", "and", "any", "are", "array", "array_agg", "array_max_cardinality", "as", "asensitive", "asin", "asymmetric", "at", "atan", "atomic", "authorization", "avg", "begin", "begin_frame", "begin_partition", "between", "bigint", "binary", "blob", "boolean", "both", "by", "call", "called", "cardinality", "cascaded", "case", "cast", "ceil", "ceiling", "char", "char_length", "character", "character_length", "check", "classifier", "clob", "close", "coalesce", "collate", "collect", "column", "commit", "condition", "connect", "constraint", "contains", "convert", "copy", "corr", "corresponding", "cos", "cosh", "count", "covar_pop", "covar_samp", "create", "cross", "cube", "cume_dist", "current", "current_catalog", "current_date", "current_default_transform_group", "current_path", "current_role", "current_row", "current_schema", "current_time", "current_timestamp", "current_path", "current_role", "current_transform_group_for_type", "current_user", "cursor", "cycle", "date", "day", "deallocate", "dec", "decimal", "decfloat", "declare", "default", "define", "delete", "dense_rank", "deref", "describe", "deterministic", "disconnect", "distinct", "double", "drop", "dynamic", "each", "element", "else", "empty", "end", "end_frame", "end_partition", "end-exec", "equals", "escape", "every", "except", "exec", "execute", "exists", "exp", "external", "extract", "false", "fetch", "filter", "first_value", "float", "floor", "for", "foreign", "frame_row", "free", "from", "full", "function", "fusion", "get", "global", "grant", "group", "grouping", "groups", "having", "hold", "hour", "identity", "in", "indicator", "initial", "inner", "inout", "insensitive", "insert", "int", "integer", "intersect", "intersection", "interval", "into", "is", "join", "json_array", "json_arrayagg", "json_exists", "json_object", "json_objectagg", "json_query", "json_table", "json_table_primitive", "json_value", "lag", "language", "large", "last_value", "lateral", "lead", "leading", "left", "like", "like_regex", "listagg", "ln", "local", "localtime", "localtimestamp", "log", "log10", "lower", "match", "match_number", "match_recognize", "matches", "max", "member", "merge", "method", "min", "minute", "mod", "modifies", "module", "month", "multiset", "national", "natural", "nchar", "nclob", "new", "no", "none", "normalize", "not", "nth_value", "ntile", "null", "nullif", "numeric", "octet_length", "occurrences_regex", "of", "offset", "old", "omit", "on", "one", "only", "open", "or", "order", "out", "outer", "over", "overlaps", "overlay", "parameter", "partition", "pattern", "per", "percent", "percent_rank", "percentile_cont", "percentile_disc", "period", "portion", "position", "position_regex", "power", "precedes", "precision", "prepare", "primary", "procedure", "ptf", "range", "rank", "reads", "real", "recursive", "ref", "references", "referencing", "regr_avgx", "regr_avgy", "regr_count", "regr_intercept", "regr_r2", "regr_slope", "regr_sxx", "regr_sxy", "regr_syy", "release", "result", "return", "returns", "revoke", "right", "rollback", "rollup", "row", "row_number", "rows", "running", "savepoint", "scope", "scroll", "search", "second", "seek", "select", "sensitive", "session_user", "set", "show", "similar", "sin", "sinh", "skip", "smallint", "some", "specific", "specifictype", "sql", "sqlexception", "sqlstate", "sqlwarning", "sqrt", "start", "static", "stddev_pop", "stddev_samp", "submultiset", "subset", "substring", "substring_regex", "succeeds", "sum", "symmetric", "system", "system_time", "system_user", "table", "tablesample", "tan", "tanh", "then", "time", "timestamp", "timezone_hour", "timezone_minute", "to", "trailing", "translate", "translate_regex", "translation", "treat", "trigger", "trim", "trim_array", "true", "truncate", "uescape", "union", "unique", "unknown", "unnest", "update", "upper", "user", "using", "value", "values", "value_of", "var_pop", "var_samp", "varbinary", "varchar", "varying", "versioning", "when", "whenever", "where", "width_bucket", "window", "with", "within", "without", "year"], u = ["abs", "acos", "array_agg", "asin", "atan", "avg", "cast", "ceil", "ceiling", "coalesce", "corr", "cos", "cosh", "count", "covar_pop", "covar_samp", "cume_dist", "dense_rank", "deref", "element", "exp", "extract", "first_value", "floor", "json_array", "json_arrayagg", "json_exists", "json_object", "json_objectagg", "json_query", "json_table", "json_table_primitive", "json_value", "lag", "last_value", "lead", "listagg", "ln", "log", "log10", "lower", "max", "min", "mod", "nth_value", "ntile", "nullif", "percent_rank", "percentile_cont", "percentile_disc", "position", "position_regex", "power", "rank", "regr_avgx", "regr_avgy", "regr_count", "regr_intercept", "regr_r2", "regr_slope", "regr_sxx", "regr_sxy", "regr_syy", "row_number", "sin", "sinh", "sqrt", "stddev_pop", "stddev_samp", "substring", "substring_regex", "sum", "tan", "tanh", "translate", "translate_regex", "treat", "trim", "trim_array", "unnest", "upper", "value_of", "var_pop", "var_samp", "width_bucket"], _ = ["current_catalog", "current_date", "current_default_transform_group", "current_path", "current_role", "current_schema", "current_transform_group_for_type", "current_user", "session_user", "system_time", "system_user", "current_time", "localtime", "current_timestamp", "localtimestamp"], b = ["create table", "insert into", "primary key", "foreign key", "not null", "alter table", "add constraint", "grouping sets", "on overflow", "character set", "respect nulls", "ignore nulls", "nulls first", "nulls last", "depth first", "breadth first"], E = u, T = [...d, ...c].filter((A) => !u.includes(A)), y = { scope: "variable", match: /@[a-z0-9][a-z0-9_]*/ }, S = { scope: "operator", match: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/, relevance: 0 }, v = { match: t.concat(/\b/, t.either(...E), /\s*\(/), relevance: 0, keywords: { built_in: E } };
|
|
1133
|
-
function k(A) {
|
|
1134
|
-
return t.concat(/\b/, t.either(...A.map((x) => x.replace(/\s+/, "\\s+"))), /\b/);
|
|
1135
|
-
}
|
|
1136
|
-
__name(k, "k");
|
|
1137
|
-
i(k, "kws_to_regex");
|
|
1138
|
-
let M = { scope: "keyword", match: k(b), relevance: 0 };
|
|
1139
|
-
function O(A, { exceptions: x, when: I } = {}) {
|
|
1140
|
-
let D = I;
|
|
1141
|
-
return x = x || [], A.map((B) => B.match(/\|\d+$/) || x.includes(B) ? B : D(B) ? `${B}|0` : B);
|
|
1142
|
-
}
|
|
1143
|
-
__name(O, "O");
|
|
1144
|
-
return i(O, "reduceRelevancy"), { name: "SQL", case_insensitive: true, illegal: /[{}]|<\//, keywords: { $pattern: /\b[\w\.]+/, keyword: O(T, { when: i((A) => A.length < 3, "when") }), literal: g, type: r, built_in: _ }, contains: [{ scope: "type", match: k(o) }, M, v, y, a, s, e.C_NUMBER_MODE, e.C_BLOCK_COMMENT_MODE, n, S] };
|
|
1145
|
-
}
|
|
1146
|
-
__name(bn, "bn");
|
|
1147
|
-
i(bn, "sql");
|
|
1148
|
-
function _n(e) {
|
|
1149
|
-
return e ? typeof e == "string" ? e : e.source : null;
|
|
1150
|
-
}
|
|
1151
|
-
__name(_n, "_n");
|
|
1152
|
-
i(_n, "source");
|
|
1153
|
-
function _e(e) {
|
|
1154
|
-
return U("(?=", e, ")");
|
|
1155
|
-
}
|
|
1156
|
-
__name(_e, "_e");
|
|
1157
|
-
i(_e, "lookahead");
|
|
1158
|
-
function U(...e) {
|
|
1159
|
-
return e.map((n) => _n(n)).join("");
|
|
1160
|
-
}
|
|
1161
|
-
__name(U, "U");
|
|
1162
|
-
i(U, "concat");
|
|
1163
|
-
function ta(e) {
|
|
1164
|
-
let t = e[e.length - 1];
|
|
1165
|
-
return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
|
|
1166
|
-
}
|
|
1167
|
-
__name(ta, "ta");
|
|
1168
|
-
i(ta, "stripOptionsFromArgs");
|
|
1169
|
-
function q(...e) {
|
|
1170
|
-
return "(" + (ta(e).capture ? "" : "?:") + e.map((a) => _n(a)).join("|") + ")";
|
|
1171
|
-
}
|
|
1172
|
-
__name(q, "q");
|
|
1173
|
-
i(q, "either");
|
|
1174
|
-
new RegExp(q(/\[(?:[^\\\]]|\\.)*\]/, /\(\?<(?![=!])[^>]+>/, /\(\?'[^']+'/, /\(\??/, /\\([1-9][0-9]*)/, /\\./));
|
|
1175
|
-
var Je = i((e) => U(/\b/, e, /\w$/.test(e) ? /\b/ : /\B/), "keywordWrapper"), na = ["Protocol", "Type"].map(Je), mn = ["init", "self"].map(Je), ia = ["Any", "Self"], Xe = ["actor", "any", "associatedtype", "async", "await", /as\?/, /as!/, "as", "borrowing", "break", "case", "catch", "class", "consume", "consuming", "continue", "convenience", "copy", "default", "defer", "deinit", "didSet", "distributed", "do", "dynamic", "each", "else", "enum", "extension", "fallthrough", /fileprivate\(set\)/, "fileprivate", "final", "for", "func", "get", "guard", "if", "import", "indirect", "infix", /init\?/, /init!/, "inout", /internal\(set\)/, "internal", "in", "is", "isolated", "nonisolated", "lazy", "let", "macro", "mutating", "nonmutating", /open\(set\)/, "open", "operator", "optional", "override", "package", "postfix", "precedencegroup", "prefix", /private\(set\)/, "private", "protocol", /public\(set\)/, "public", "repeat", "required", "rethrows", "return", "set", "some", "static", "struct", "subscript", "super", "switch", "throws", "throw", /try\?/, /try!/, "try", "typealias", /unowned\(safe\)/, /unowned\(unsafe\)/, "unowned", "var", "weak", "where", "while", "willSet"], fn = ["false", "nil", "true"], aa = ["assignment", "associativity", "higherThan", "left", "lowerThan", "none", "right"], ra = ["#colorLiteral", "#column", "#dsohandle", "#else", "#elseif", "#endif", "#error", "#file", "#fileID", "#fileLiteral", "#filePath", "#function", "#if", "#imageLiteral", "#keyPath", "#line", "#selector", "#sourceLocation", "#warning"], En = ["abs", "all", "any", "assert", "assertionFailure", "debugPrint", "dump", "fatalError", "getVaList", "isKnownUniquelyReferenced", "max", "min", "numericCast", "pointwiseMax", "pointwiseMin", "precondition", "preconditionFailure", "print", "readLine", "repeatElement", "sequence", "stride", "swap", "swift_unboxFromSwiftValueWithType", "transcode", "type", "unsafeBitCast", "unsafeDowncast", "withExtendedLifetime", "withUnsafeMutablePointer", "withUnsafePointer", "withVaList", "withoutActuallyEscaping", "zip"], hn = q(/[/=\-+!*%<>&|^~?]/, /[\u00A1-\u00A7]/, /[\u00A9\u00AB]/, /[\u00AC\u00AE]/, /[\u00B0\u00B1]/, /[\u00B6\u00BB\u00BF\u00D7\u00F7]/, /[\u2016-\u2017]/, /[\u2020-\u2027]/, /[\u2030-\u203E]/, /[\u2041-\u2053]/, /[\u2055-\u205E]/, /[\u2190-\u23FF]/, /[\u2500-\u2775]/, /[\u2794-\u2BFF]/, /[\u2E00-\u2E7F]/, /[\u3001-\u3003]/, /[\u3008-\u3020]/, /[\u3030]/), yn = q(hn, /[\u0300-\u036F]/, /[\u1DC0-\u1DFF]/, /[\u20D0-\u20FF]/, /[\uFE00-\uFE0F]/, /[\uFE20-\uFE2F]/), Qe = U(hn, yn, "*"), Nn = q(/[a-zA-Z_]/, /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/, /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/, /[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/, /[\u1E00-\u1FFF]/, /[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/, /[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/, /[\u2C00-\u2DFF\u2E80-\u2FFF]/, /[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/, /[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/, /[\uFE47-\uFEFE\uFF00-\uFFFD]/), Le = q(Nn, /\d/, /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/), te = U(Nn, Le, "*"), De = U(/[A-Z]/, Le, "*"), oa = ["attached", "autoclosure", U(/convention\(/, q("swift", "block", "c"), /\)/), "discardableResult", "dynamicCallable", "dynamicMemberLookup", "escaping", "freestanding", "frozen", "GKInspectable", "IBAction", "IBDesignable", "IBInspectable", "IBOutlet", "IBSegueAction", "inlinable", "main", "nonobjc", "NSApplicationMain", "NSCopying", "NSManaged", U(/objc\(/, te, /\)/), "objc", "objcMembers", "propertyWrapper", "requires_stored_property_inits", "resultBuilder", "Sendable", "testable", "UIApplicationMain", "unchecked", "unknown", "usableFromInline", "warn_unqualified_access"], sa = ["iOS", "iOSApplicationExtension", "macOS", "macOSApplicationExtension", "macCatalyst", "macCatalystApplicationExtension", "watchOS", "watchOSApplicationExtension", "tvOS", "tvOSApplicationExtension", "swift"];
|
|
1176
|
-
function Tn(e) {
|
|
1177
|
-
let t = { match: /\s+/, relevance: 0 }, n = e.COMMENT("/\\*", "\\*/", { contains: ["self"] }), a = [e.C_LINE_COMMENT_MODE, n], s = { match: [/\./, q(...na, ...mn)], className: { 2: "keyword" } }, g = { match: U(/\./, q(...Xe)), relevance: 0 }, o = Xe.filter((P) => typeof P == "string").concat(["_|0"]), r = Xe.filter((P) => typeof P != "string").concat(ia).map(Je), c = { variants: [{ className: "keyword", match: q(...r, ...mn) }] }, d = { $pattern: q(/\b\w+/, /#\w+/), keyword: o.concat(ra), literal: fn }, u = [s, g, c], _ = { match: U(/\./, q(...En)), relevance: 0 }, b = { className: "built_in", match: U(/\b/, q(...En), /(?=\()/) }, E = [_, b], T = { match: /->/, relevance: 0 }, y = { className: "operator", relevance: 0, variants: [{ match: Qe }, { match: `\\.(\\.|${yn})+` }] }, S = [T, y], v = "([0-9]_*)+", k = "([0-9a-fA-F]_*)+", M = { className: "number", relevance: 0, variants: [{ match: `\\b(${v})(\\.(${v}))?([eE][+-]?(${v}))?\\b` }, { match: `\\b0x(${k})(\\.(${k}))?([pP][+-]?(${v}))?\\b` }, { match: /\b0o([0-7]_*)+\b/ }, { match: /\b0b([01]_*)+\b/ }] }, O = i((P = "") => ({ className: "subst", variants: [{ match: U(/\\/, P, /[0\\tnr"']/) }, { match: U(/\\/, P, /u\{[0-9a-fA-F]{1,8}\}/) }] }), "ESCAPED_CHARACTER"), A = i((P = "") => ({ className: "subst", match: U(/\\/, P, /[\t ]*(?:[\r\n]|\r\n)/) }), "ESCAPED_NEWLINE"), x = i((P = "") => ({ className: "subst", label: "interpol", begin: U(/\\/, P, /\(/), end: /\)/ }), "INTERPOLATION"), I = i((P = "") => ({ begin: U(P, /"""/), end: U(/"""/, P), contains: [O(P), A(P), x(P)] }), "MULTILINE_STRING"), D = i((P = "") => ({ begin: U(P, /"/), end: U(/"/, P), contains: [O(P), x(P)] }), "SINGLE_LINE_STRING"), B = { className: "string", variants: [I(), I("#"), I("##"), I("###"), D(), D("#"), D("##"), D("###")] }, W = [e.BACKSLASH_ESCAPE, { begin: /\[/, end: /\]/, relevance: 0, contains: [e.BACKSLASH_ESCAPE] }], X = { begin: /\/[^\s](?=[^/\n]*\/)/, end: /\//, contains: W }, Q = i((P) => {
|
|
1178
|
-
let ie = U(P, /\//), N = U(/\//, P);
|
|
1179
|
-
return { begin: ie, end: N, contains: [...W, { scope: "comment", begin: `#(?!.*${N})`, end: /$/ }] };
|
|
1180
|
-
}, "EXTENDED_REGEXP_LITERAL"), ee = { scope: "regexp", variants: [Q("###"), Q("##"), Q("#"), X] }, K = { match: U(/`/, te, /`/) }, G = { className: "variable", match: /\$\d+/ }, l = { className: "variable", match: `\\$${Le}+` }, m = [K, G, l], f = { match: /(@|#(un)?)available/, scope: "keyword", starts: { contains: [{ begin: /\(/, end: /\)/, keywords: sa, contains: [...S, M, B] }] } }, w = { scope: "keyword", match: U(/@/, q(...oa), _e(q(/\(/, /\s+/))) }, C = { scope: "meta", match: U(/@/, te) }, F = [f, w, C], $ = { match: _e(/\b[A-Z]/), relevance: 0, contains: [{ className: "type", match: U(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, Le, "+") }, { className: "type", match: De, relevance: 0 }, { match: /[?!]+/, relevance: 0 }, { match: /\.\.\./, relevance: 0 }, { match: U(/\s+&\s+/, _e(De)), relevance: 0 }] }, J = { begin: /</, end: />/, keywords: d, contains: [...a, ...u, ...F, T, $] };
|
|
1181
|
-
$.contains.push(J);
|
|
1182
|
-
let Z = { match: U(te, /\s*:/), keywords: "_|0", relevance: 0 }, V = { begin: /\(/, end: /\)/, relevance: 0, keywords: d, contains: ["self", Z, ...a, ee, ...u, ...E, ...S, M, B, ...m, ...F, $] }, ce = { begin: /</, end: />/, keywords: "repeat each", contains: [...a, $] }, ye = { begin: q(_e(U(te, /\s*:/)), _e(U(te, /\s+/, te, /\s*:/))), end: /:/, relevance: 0, contains: [{ className: "keyword", match: /\b_\b/ }, { className: "params", match: te }] }, be = { begin: /\(/, end: /\)/, keywords: d, contains: [ye, ...a, ...u, ...S, M, B, ...F, $, V], endsParent: true, illegal: /["']/ }, Pe = { match: [/(func|macro)/, /\s+/, q(K.match, te, Qe)], className: { 1: "keyword", 3: "title.function" }, contains: [ce, be, t], illegal: [/\[/, /%/] }, Ue = { match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/], className: { 1: "keyword" }, contains: [ce, be, t], illegal: /\[|%/ }, Fe = { match: [/operator/, /\s+/, Qe], className: { 1: "keyword", 3: "title" } }, ze = { begin: [/precedencegroup/, /\s+/, De], className: { 1: "keyword", 3: "title" }, contains: [$], keywords: [...aa, ...fn], end: /}/ }, le = { match: [/class\b/, /\s+/, /func\b/, /\s+/, /\b[A-Za-z_][A-Za-z0-9_]*\b/], scope: { 1: "keyword", 3: "keyword", 5: "title.function" } }, Ne = { match: [/class\b/, /\s+/, /var\b/], scope: { 1: "keyword", 3: "keyword" } }, j = { begin: [/(struct|protocol|class|extension|enum|actor)/, /\s+/, te, /\s*/], beginScope: { 1: "keyword", 3: "title.class" }, keywords: d, contains: [ce, ...u, { begin: /:/, end: /\{/, keywords: d, contains: [{ scope: "title.class.inherited", match: De }, ...u], relevance: 0 }] };
|
|
1183
|
-
for (let P of B.variants) {
|
|
1184
|
-
let ie = P.contains.find((Te) => Te.label === "interpol");
|
|
1185
|
-
ie.keywords = d;
|
|
1186
|
-
let N = [...u, ...E, ...S, M, B, ...m];
|
|
1187
|
-
ie.contains = [...N, { begin: /\(/, end: /\)/, contains: ["self", ...N] }];
|
|
1188
|
-
}
|
|
1189
|
-
return { name: "Swift", keywords: d, contains: [...a, Pe, Ue, le, Ne, j, Fe, ze, { beginKeywords: "import", end: /$/, contains: [...a], relevance: 0 }, ee, ...u, ...E, ...S, M, B, ...m, ...F, $, V] };
|
|
1190
|
-
}
|
|
1191
|
-
__name(Tn, "Tn");
|
|
1192
|
-
i(Tn, "swift");
|
|
1193
|
-
var Be = class extends Error {
|
|
1194
|
-
static {
|
|
1195
|
-
__name(this, "Be");
|
|
1196
|
-
}
|
|
1197
|
-
static {
|
|
1198
|
-
i(this, "ApiError");
|
|
1199
|
-
}
|
|
1200
|
-
get status() {
|
|
1201
|
-
return this.cause?.response.status;
|
|
1202
|
-
}
|
|
1203
|
-
get response() {
|
|
1204
|
-
return this.cause?.response;
|
|
1205
|
-
}
|
|
1206
|
-
};
|
|
1207
|
-
Be.prototype.name = "ApiError";
|
|
1208
|
-
var ca = ["load", "cross-origin", "file-protocol", "save", "conflict", "no-saver", "render"], he = class e extends Error {
|
|
1209
|
-
static {
|
|
1210
|
-
__name(this, "e");
|
|
1211
|
-
}
|
|
1212
|
-
static {
|
|
1213
|
-
i(this, "SourceError");
|
|
1214
|
-
}
|
|
1215
|
-
get kind() {
|
|
1216
|
-
return this.cause?.kind;
|
|
1217
|
-
}
|
|
1218
|
-
get status() {
|
|
1219
|
-
return this.cause?.status;
|
|
1220
|
-
}
|
|
1221
|
-
static kindFor(t, n) {
|
|
1222
|
-
return t instanceof e && t.kind || n;
|
|
1223
|
-
}
|
|
1224
|
-
static isKind(t) {
|
|
1225
|
-
return ca.includes(t);
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
|
-
he.prototype.name = "SourceError";
|
|
1229
|
-
var Sn = { bash: St, css: vt, javascript: xt, json: kt, markdown: Mt, python: It, typescript: $t, xml: Kt, yaml: Gt }, la = "plaintext", da = { c: Ht, cpp: Wt, csharp: Yt, diff: qt, dockerfile: Zt, go: Vt, graphql: Xt, ini: Qt, java: en, kotlin: tn, less: rn, lua: on, makefile: sn, php: cn, powershell: ln, ruby: dn, rust: un, scss: gn, shell: pn, sql: bn, swift: Tn }, ua = { "c++": "cpp", cs: "csharp", "c#": "csharp", docker: "dockerfile", golang: "go", gql: "graphql", toml: "ini", kt: "kotlin", make: "makefile", ps1: "powershell", rb: "ruby", rs: "rust", console: "shell" }, je = class e {
|
|
1230
|
-
static {
|
|
1231
|
-
__name(this, "e");
|
|
1232
|
-
}
|
|
1233
|
-
static {
|
|
1234
|
-
i(this, "CodeEngine");
|
|
1235
|
-
}
|
|
1236
|
-
static instance = new e();
|
|
1237
|
-
hljs = Tt.newInstance();
|
|
1238
|
-
detectable = new Set(Object.keys(Sn));
|
|
1239
|
-
grammars = /* @__PURE__ */ new Map();
|
|
1240
|
-
constructor() {
|
|
1241
|
-
for (let [t, n] of Object.entries(Sn)) this.hljs.registerLanguage(t, n);
|
|
1242
|
-
this.hljs.registerLanguage(la, Ct), this.hljs.configure({ ignoreUnescapedHTML: true });
|
|
1243
|
-
}
|
|
1244
|
-
register(t, n, a = {}) {
|
|
1245
|
-
if (this.grammars.get(t) !== n) {
|
|
1246
|
-
if (typeof n != "function") throw new he(`CodeEngine.register(): "${t}" isn't a highlight.js grammar; pass \`(hljs) => Language\``, { cause: { kind: "render" } });
|
|
1247
|
-
this.grammars.set(t, n), this.hljs.registerLanguage(t, n), a.aliases?.length && this.hljs.registerAliases([...a.aliases], { languageName: t }), a.detect && this.detectable.add(t);
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
async ensure(t) {
|
|
1251
|
-
let n = t.toLowerCase();
|
|
1252
|
-
if (this.hljs.getLanguage(n)) return this.canonical(n);
|
|
1253
|
-
let s = ua[n] ?? n, g = da[s];
|
|
1254
|
-
if (g) return this.hljs.registerLanguage(s, g), s;
|
|
1255
|
-
}
|
|
1256
|
-
highlight(t, n) {
|
|
1257
|
-
return this.hljs.highlight(t, { language: n, ignoreIllegals: true }).value;
|
|
1258
|
-
}
|
|
1259
|
-
detect(t) {
|
|
1260
|
-
let n = this.hljs.highlightAuto(t, [...this.detectable]);
|
|
1261
|
-
return { html: n.value, language: n.language };
|
|
1262
|
-
}
|
|
1263
|
-
canonical(t) {
|
|
1264
|
-
if (this.hljs.listLanguages().includes(t)) return t;
|
|
1265
|
-
for (let n of this.hljs.listLanguages()) if (this.hljs.getLanguage(n) === this.hljs.getLanguage(t)) return n;
|
|
1266
|
-
return t;
|
|
1267
|
-
}
|
|
1268
|
-
};
|
|
1269
|
-
return Dn(ga);
|
|
1270
|
-
})();
|
|
1
|
+
"use strict";var __spellCodeEngine=(()=>{var wn=Object.create;var me=Object.defineProperty;var An=Object.getOwnPropertyDescriptor;var Rn=Object.getOwnPropertyNames;var xn=Object.getPrototypeOf,kn=Object.prototype.hasOwnProperty;var i=(e,t)=>me(e,"name",{value:t,configurable:!0});var Mn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},Cn=(e,t)=>{for(var n in t)me(e,n,{get:t[n],enumerable:!0})},et=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Rn(t))!kn.call(e,s)&&s!==n&&me(e,s,{get:()=>t[s],enumerable:!(a=An(t,s))||a.enumerable});return e};var In=(e,t,n)=>(n=e!=null?wn(xn(e)):{},et(t||!e||!e.__esModule?me(n,"default",{value:e,enumerable:!0}):n,e)),Dn=e=>et(me({},"__esModule",{value:!0}),e);var yt=Mn((ba,ht)=>{"use strict";function st(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t],a=typeof n;(a==="object"||a==="function")&&!Object.isFrozen(n)&&st(n)}),e}i(st,"deepFreeze");var Oe=class{static{i(this,"Response")}constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function ct(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}i(ct,"escapeHTML");function ae(e,...t){let n=Object.create(null);for(let a in e)n[a]=e[a];return t.forEach(function(a){for(let s in a)n[s]=a[s]}),n}i(ae,"inherit$1");var Ln="</span>",tt=i(e=>!!e.scope,"emitsWrappingTags"),Bn=i((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((a,s)=>`${a}${"_".repeat(s+1)}`)].join(" ")}return`${t}${e}`},"scopeToCSSClass"),He=class{static{i(this,"HTMLRenderer")}constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=ct(t)}openNode(t){if(!tt(t))return;let n=Bn(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){tt(t)&&(this.buffer+=Ln)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},nt=i((e={})=>{let t={children:[]};return Object.assign(t,e),t},"newNode"),We=class e{static{i(this,"TokenTree")}constructor(){this.rootNode=nt(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let n=nt({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(a=>this._walk(t,a)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{e._collapse(n)}))}},Ye=class extends We{static{i(this,"TokenTreeEmitter")}constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){let a=t.root;n&&(a.scope=`language:${n}`),this.add(a)}toHTML(){return new He(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function fe(e){return e?typeof e=="string"?e:e.source:null}i(fe,"source");function lt(e){return se("(?=",e,")")}i(lt,"lookahead");function Pn(e){return se("(?:",e,")*")}i(Pn,"anyNumberOfTimes");function Un(e){return se("(?:",e,")?")}i(Un,"optional");function se(...e){return e.map(n=>fe(n)).join("")}i(se,"concat");function Fn(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}i(Fn,"stripOptionsFromArgs");function Ae(...e){return"("+(Fn(e).capture?"":"?:")+e.map(a=>fe(a)).join("|")+")"}i(Ae,"either");function dt(e){return new RegExp(e.toString()+"|").exec("").length-1}i(dt,"countMatchGroups");function zn(e,t){let n=e&&e.exec(t);return n&&n.index===0}i(zn,"startsWith");var $n=new RegExp(Ae(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function Ze(e,{joinWith:t}){let n=0;return e.map(a=>{n+=1;let s=n,g=fe(a),o="";for(;g.length>0;){let r=$n.exec(g);if(!r){o+=g;break}o+=g.substring(0,r.index),g=g.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?o+="\\"+String(Number(r[1])+s):(o+=r[0],(r[0]==="("||/^\(\?[<']/.test(r[0]))&&n++)}return o}).map(a=>`(${a})`).join(t)}i(Ze,"_rewriteBackreferences");var Kn=/\b\B/,ut="[a-zA-Z]\\w*",Ve="[a-zA-Z_]\\w*",gt="\\b\\d+(\\.\\d+)?",pt="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bt="\\b(0b[01]+)",Gn="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Hn=i((e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=se(t,/.*\b/,e.binary,/\b.*/)),ae({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":i((n,a)=>{n.index!==0&&a.ignoreMatch()},"on:begin")},e)},"SHEBANG"),Ee={begin:"\\\\[\\s\\S]",relevance:0},Wn={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ee]},Yn={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ee]},qn={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/},Re=i(function(e,t,n={}){let a=ae({scope:"comment",begin:e,end:t,contains:[]},n);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let s=Ae("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,}/);return a.contains.push({begin:se(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},"COMMENT"),Zn=Re("//","$"),Vn=Re("/\\*","\\*/"),Xn=Re("#","$"),Qn={scope:"number",begin:gt,relevance:0},Jn={scope:"number",begin:pt,relevance:0},jn={scope:"number",begin:bt,relevance:0},ei={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ee,{begin:/\[/,end:/\]/,relevance:0,contains:[Ee]}]},ti={scope:"title",begin:ut,relevance:0},ni={scope:"title",begin:Ve,relevance:0},ii={begin:"\\.\\s*"+Ve,relevance:0},ai=i(function(e){return Object.assign(e,{"on:begin":i((t,n)=>{n.data._beginMatch=t[1]},"on:begin"),"on:end":i((t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()},"on:end")})},"END_SAME_AS_BEGIN"),ve=Object.freeze({__proto__:null,APOS_STRING_MODE:Wn,BACKSLASH_ESCAPE:Ee,BINARY_NUMBER_MODE:jn,BINARY_NUMBER_RE:bt,COMMENT:Re,C_BLOCK_COMMENT_MODE:Vn,C_LINE_COMMENT_MODE:Zn,C_NUMBER_MODE:Jn,C_NUMBER_RE:pt,END_SAME_AS_BEGIN:ai,HASH_COMMENT_MODE:Xn,IDENT_RE:ut,MATCH_NOTHING_RE:Kn,METHOD_GUARD:ii,NUMBER_MODE:Qn,NUMBER_RE:gt,PHRASAL_WORDS_MODE:qn,QUOTE_STRING_MODE:Yn,REGEXP_MODE:ei,RE_STARTERS_RE:Gn,SHEBANG:Hn,TITLE_MODE:ti,UNDERSCORE_IDENT_RE:Ve,UNDERSCORE_TITLE_MODE:ni});function ri(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}i(ri,"skipIfHasPrecedingDot");function oi(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}i(oi,"scopeClassName");function si(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=ri,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}i(si,"beginKeywords");function ci(e,t){Array.isArray(e.illegal)&&(e.illegal=Ae(...e.illegal))}i(ci,"compileIllegal");function li(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}i(li,"compileMatch");function di(e,t){e.relevance===void 0&&(e.relevance=1)}i(di,"compileRelevance");var ui=i((e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(a=>{delete e[a]}),e.keywords=n.keywords,e.begin=se(n.beforeMatch,lt(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},"beforeMatchExt"),gi=["of","and","for","in","not","or","if","then","parent","list","value"],pi="keyword";function mt(e,t,n=pi){let a=Object.create(null);return typeof e=="string"?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach(function(g){Object.assign(a,mt(e[g],t,g))}),a;function s(g,o){t&&(o=o.map(r=>r.toLowerCase())),o.forEach(function(r){let c=r.split("|");a[c[0]]=[g,bi(c[0],c[1])]})}i(s,"compileList")}i(mt,"compileKeywords");function bi(e,t){return t?Number(t):mi(e)?0:1}i(bi,"scoreForKeyword");function mi(e){return gi.includes(e.toLowerCase())}i(mi,"commonKeyword");var it={},oe=i(e=>{console.error(e)},"error"),at=i((e,...t)=>{console.log(`WARN: ${e}`,...t)},"warn"),de=i((e,t)=>{it[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),it[`${e}/${t}`]=!0)},"deprecated"),we=new Error;function ft(e,t,{key:n}){let a=0,s=e[n],g={},o={};for(let r=1;r<=t.length;r++)o[r+a]=s[r],g[r+a]=!0,a+=dt(t[r-1]);e[n]=o,e[n]._emit=g,e[n]._multi=!0}i(ft,"remapScopeNames");function fi(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),we;if(typeof e.beginScope!="object"||e.beginScope===null)throw oe("beginScope must be object"),we;ft(e,e.begin,{key:"beginScope"}),e.begin=Ze(e.begin,{joinWith:""})}}i(fi,"beginMultiClass");function Ei(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),we;if(typeof e.endScope!="object"||e.endScope===null)throw oe("endScope must be object"),we;ft(e,e.end,{key:"endScope"}),e.end=Ze(e.end,{joinWith:""})}}i(Ei,"endMultiClass");function _i(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}i(_i,"scopeSugar");function hi(e){_i(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),fi(e),Ei(e)}i(hi,"MultiClass");function yi(e){function t(o,r){return new RegExp(fe(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}i(t,"langRe");class n{static{i(this,"MultiRegex")}constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,r]),this.matchAt+=dt(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let r=this.regexes.map(c=>c[1]);this.matcherRe=t(Ze(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;let c=this.matcherRe.exec(r);if(!c)return null;let d=c.findIndex((_,b)=>b>0&&_!==void 0),u=this.matchIndexes[d];return c.splice(0,d),Object.assign(c,u)}}class a{static{i(this,"ResumableMultiRegex")}constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];let c=new n;return this.rules.slice(r).forEach(([d,u])=>c.addRule(d,u)),c.compile(),this.multiRegexes[r]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,c){this.rules.push([r,c]),c.type==="begin"&&this.count++}exec(r){let c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let d=c.exec(r);if(this.resumingScanAtSamePosition()&&!(d&&d.index===this.lastIndex)){let u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,d=u.exec(r)}return d&&(this.regexIndex+=d.position+1,this.regexIndex===this.count&&this.considerAll()),d}}function s(o){let r=new a;return o.contains.forEach(c=>r.addRule(c.begin,{rule:c,type:"begin"})),o.terminatorEnd&&r.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&r.addRule(o.illegal,{type:"illegal"}),r}i(s,"buildModeRegex");function g(o,r){let c=o;if(o.isCompiled)return c;[oi,li,hi,ui].forEach(u=>u(o,r)),e.compilerExtensions.forEach(u=>u(o,r)),o.__beforeBegin=null,[si,ci,di].forEach(u=>u(o,r)),o.isCompiled=!0;let d=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),d=o.keywords.$pattern,delete o.keywords.$pattern),d=d||/\w+/,o.keywords&&(o.keywords=mt(o.keywords,e.case_insensitive)),c.keywordPatternRe=t(d,!0),r&&(o.begin||(o.begin=/\B|\b/),c.beginRe=t(c.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(c.endRe=t(c.end)),c.terminatorEnd=fe(c.end)||"",o.endsWithParent&&r.terminatorEnd&&(c.terminatorEnd+=(o.end?"|":"")+r.terminatorEnd)),o.illegal&&(c.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return Ni(u==="self"?o:u)})),o.contains.forEach(function(u){g(u,c)}),o.starts&&g(o.starts,r),c.matcher=s(c),c}if(i(g,"compileMode"),e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ae(e.classNameAliases||{}),g(e)}i(yi,"compileLanguage");function Et(e){return e?e.endsWithParent||Et(e.starts):!1}i(Et,"dependencyOnParent");function Ni(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return ae(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Et(e)?ae(e,{starts:e.starts?ae(e.starts):null}):Object.isFrozen(e)?ae(e):e}i(Ni,"expandOrCloneMode");var Ti="11.12.0",qe=class extends Error{static{i(this,"HTMLInjectionError")}constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},Ge=ct,rt=ae,ot=Symbol("nomatch"),Si=7,_t=i(function(e){let t=Object.create(null),n=Object.create(null),a=[],s=!0,g="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]},r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ye};function c(l){return r.noHighlightRe.test(l)}i(c,"shouldNotHighlight");function d(l){let m=l.className+" ";m+=l.parentNode?l.parentNode.className:"";let f=r.languageDetectRe.exec(m);if(f){let w=D(f[1]);return w||(at(g.replace("{}",f[1])),at("Falling back to no-highlight mode for this block.",l)),w?f[1]:"no-highlight"}return m.split(/\s+/).find(w=>c(w)||D(w))}i(d,"blockLanguage");function u(l,m,f){let w="",C="";typeof m=="object"?(w=l,f=m.ignoreIllegals,C=m.language):(de("10.7.0","highlight(lang, code, ...args) has been deprecated."),de("10.7.0",`Please use highlight(code, options) instead.
|
|
2
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),C=l,w=m),f===void 0&&(f=!0);let F={code:w,language:C};K("before:highlight",F);let $=F.result?F.result:_(F.language,F.code,f);return $.code=F.code,K("after:highlight",$),$}i(u,"highlight");function _(l,m,f,w){let C=Object.create(null);function F(p,h){return p.keywords[h]}i(F,"keywordData");function $(){if(!N.keywords){H.addText(z);return}let p=0;N.keywordPatternRe.lastIndex=0;let h=N.keywordPatternRe.exec(z),R="";for(;h;){R+=z.substring(p,h.index);let L=j.case_insensitive?h[0].toLowerCase():h[0],Y=F(N,L);if(Y){let[ne,vn]=Y;if(H.addText(R),R="",C[L]=(C[L]||0)+1,C[L]<=Si&&(Se+=vn),ne.startsWith("_"))R+=h[0];else{let On=j.classNameAliases[ne]||ne;V(h[0],On)}}else R+=h[0];p=N.keywordPatternRe.lastIndex,h=N.keywordPatternRe.exec(z)}R+=z.substring(p),H.addText(R)}i($,"processKeywords");function J(){if(z==="")return;let p=null;if(typeof N.subLanguage=="string"){if(!t[N.subLanguage]){H.addText(z);return}p=_(N.subLanguage,z,!0,Te[N.subLanguage]),Te[N.subLanguage]=p._top}else p=E(z,N.subLanguage.length?N.subLanguage:null);N.relevance>0&&(Se+=p.relevance),H.__addSublanguage(p._emitter,p.language)}i(J,"processSubLanguage");function Z(){N.subLanguage!=null?J():$(),z=""}i(Z,"processBuffer");function V(p,h){p!==""&&(H.startScope(h),H.addText(p),H.endScope())}i(V,"emitKeyword");function ce(p,h){let R=1,L=h.length-1;for(;R<=L;){if(!p._emit[R]){R++;continue}let Y=j.classNameAliases[p[R]]||p[R],ne=h[R];Y?V(ne,Y):(z=ne,$(),z=""),R++}}i(ce,"emitMultiClass");function ye(p,h){return p.scope&&typeof p.scope=="string"&&H.openNode(j.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(V(z,j.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),z=""):p.beginScope._multi&&(ce(p.beginScope,h),z="")),N=Object.create(p,{parent:{value:N}}),N}i(ye,"startNewMode");function be(p,h,R){let L=zn(p.endRe,R);if(L){if(p["on:end"]){let Y=new Oe(p);p["on:end"](h,Y),Y.isMatchIgnored&&(L=!1)}if(L){for(;p.endsParent&&p.parent;)p=p.parent;return p}}if(p.endsWithParent)return be(p.parent,h,R)}i(be,"endOfMode");function Pe(p){return N.matcher.regexIndex===0?(z+=p[0],1):(Ke=!0,0)}i(Pe,"doIgnore");function Ue(p){let h=p[0],R=p.rule,L=new Oe(R),Y=[R.__beforeBegin,R["on:begin"]];for(let ne of Y)if(ne&&(ne(p,L),L.isMatchIgnored))return Pe(h);return R.skip?z+=h:(R.excludeBegin&&(z+=h),Z(),!R.returnBegin&&!R.excludeBegin&&(z=h)),ye(R,p),R.returnBegin?0:h.length}i(Ue,"doBeginMatch");function Fe(p){let h=p[0],R=m.substring(p.index),L=be(N,p,R);if(!L)return ot;let Y=N;N.endScope&&N.endScope._wrap?(Z(),V(h,N.endScope._wrap)):N.endScope&&N.endScope._multi?(Z(),ce(N.endScope,p)):Y.skip?z+=h:(Y.returnEnd||Y.excludeEnd||(z+=h),Z(),Y.excludeEnd&&(z=h));do N.scope&&H.closeNode(),!N.skip&&!N.subLanguage&&(Se+=N.relevance),N=N.parent;while(N!==L.parent);return L.starts&&ye(L.starts,p),Y.returnEnd?0:h.length}i(Fe,"doEndMatch");function ze(){let p=[];for(let h=N;h!==j;h=h.parent)h.scope&&p.unshift(h.scope);p.forEach(h=>H.openNode(h))}i(ze,"processContinuations");let le={};function Ne(p,h){let R=h&&h[0];if(z+=p,R==null)return Z(),0;if(le.type==="begin"&&h.type==="end"&&le.index===h.index&&R===""){if(z+=m.slice(h.index,h.index+1),!s){let L=new Error(`0 width match regex (${l})`);throw L.languageName=l,L.badRule=le.rule,L}return 1}if(le=h,h.type==="begin")return Ue(h);if(h.type==="illegal"&&!f){let L=new Error('Illegal lexeme "'+R+'" for mode "'+(N.scope||"<unnamed>")+'"');throw L.mode=N,L}else if(h.type==="end"){let L=Fe(h);if(L!==ot)return L}if(h.type==="illegal"&&R==="")return h.index===m.length||(z+=`
|
|
3
|
+
`),1;if($e>1e5&&$e>h.index*3)throw new Error("potential infinite loop, way more iterations than matches");return z+=R,R.length}i(Ne,"processLexeme");let j=D(l);if(!j)throw oe(g.replace("{}",l)),new Error('Unknown language: "'+l+'"');let P=yi(j),ie="",N=w||P,Te={},H=new r.__emitter(r);ze();let z="",Se=0,re=0,$e=0,Ke=!1;try{if(j.__emitTokens)j.__emitTokens(m,H);else{for(N.matcher.considerAll();;){$e++,Ke?Ke=!1:N.matcher.considerAll(),N.matcher.lastIndex=re;let p=N.matcher.exec(m);if(!p)break;let h=m.substring(re,p.index),R=Ne(h,p);re=p.index+R}Ne(m.substring(re))}return H.finalize(),ie=H.toHTML(),{language:l,value:ie,relevance:Se,illegal:!1,_emitter:H,_top:N}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:l,value:Ge(m),illegal:!0,relevance:0,_illegalBy:{message:p.message,index:re,context:m.slice(re-100,re+100),mode:p.mode,resultSoFar:ie},_emitter:H};if(s)return{language:l,value:Ge(m),illegal:!1,relevance:0,errorRaised:p,_emitter:H,_top:N};throw p}}i(_,"_highlight");function b(l){let m={value:Ge(l),illegal:!1,relevance:0,_top:o,_emitter:new r.__emitter(r)};return m._emitter.addText(l),m}i(b,"justTextHighlightResult");function E(l,m){m=m||r.languages||Object.keys(t);let f=b(l),w=m.filter(D).filter(W).map(Z=>_(Z,l,!1));w.unshift(f);let C=w.sort((Z,V)=>{if(Z.relevance!==V.relevance)return V.relevance-Z.relevance;if(Z.language&&V.language){if(D(Z.language).supersetOf===V.language)return 1;if(D(V.language).supersetOf===Z.language)return-1}return 0}),[F,$]=C,J=F;return J.secondBest=$,J}i(E,"highlightAuto");function T(l,m,f){let w=m&&n[m]||f;l.classList.add("hljs"),l.classList.add(`language-${w}`)}i(T,"updateClassName");function y(l){let m=null,f=d(l);if(c(f))return;if(K("before:highlightElement",{el:l,language:f}),l.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",l);return}if(l.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(l)),r.throwUnescapedHTML))throw new qe("One of your code blocks includes unescaped HTML.",l.innerHTML);m=l;let w=m.textContent,C=f?u(w,{language:f,ignoreIllegals:!0}):E(w);l.innerHTML=C.value,l.dataset.highlighted="yes",T(l,f,C.language),l.result={language:C.language,re:C.relevance,relevance:C.relevance},C.secondBest&&(l.secondBest={language:C.secondBest.language,relevance:C.secondBest.relevance}),K("after:highlightElement",{el:l,result:C,text:w})}i(y,"highlightElement");function S(l){r=rt(r,l)}i(S,"configure");let v=i(()=>{O(),de("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},"initHighlighting");function k(){O(),de("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}i(k,"initHighlightingOnLoad");let M=!1;function O(){function l(){O()}if(i(l,"boot"),document.readyState==="loading"){M||window.addEventListener("DOMContentLoaded",l,!1),M=!0;return}document.querySelectorAll(r.cssSelector).forEach(y)}i(O,"highlightAll");function A(l,m){let f=null;try{f=m(e)}catch(w){if(oe("Language definition for '{}' could not be registered.".replace("{}",l)),s)oe(w);else throw w;f=o}f.name||(f.name=l),t[l]=f,f.rawDefinition=m.bind(null,e),f.aliases&&B(f.aliases,{languageName:l})}i(A,"registerLanguage");function x(l){delete t[l];for(let m of Object.keys(n))n[m]===l&&delete n[m]}i(x,"unregisterLanguage");function I(){return Object.keys(t)}i(I,"listLanguages");function D(l){return l=(l||"").toLowerCase(),t[l]||t[n[l]]}i(D,"getLanguage");function B(l,{languageName:m}){typeof l=="string"&&(l=[l]),l.forEach(f=>{n[f.toLowerCase()]=m})}i(B,"registerAliases");function W(l){let m=D(l);return m&&!m.disableAutodetect}i(W,"autoDetection");function X(l){l["before:highlightBlock"]&&!l["before:highlightElement"]&&(l["before:highlightElement"]=m=>{l["before:highlightBlock"](Object.assign({block:m.el},m))}),l["after:highlightBlock"]&&!l["after:highlightElement"]&&(l["after:highlightElement"]=m=>{l["after:highlightBlock"](Object.assign({block:m.el},m))})}i(X,"upgradePluginAPI");function Q(l){X(l),a.push(l)}i(Q,"addPlugin");function ee(l){let m=a.indexOf(l);m!==-1&&a.splice(m,1)}i(ee,"removePlugin");function K(l,m){let f=l;a.forEach(function(w){w[f]&&w[f](m)})}i(K,"fire");function G(l){return de("10.7.0","highlightBlock will be removed entirely in v12.0"),de("10.7.0","Please use highlightElement now."),y(l)}i(G,"deprecateHighlightBlock"),Object.assign(e,{highlight:u,highlightAuto:E,highlightAll:O,highlightElement:y,highlightBlock:G,configure:S,initHighlighting:v,initHighlightingOnLoad:k,registerLanguage:A,unregisterLanguage:x,listLanguages:I,getLanguage:D,registerAliases:B,autoDetection:W,inherit:rt,addPlugin:Q,removePlugin:ee}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString=Ti,e.regex={concat:se,lookahead:lt,either:Ae,optional:Un,anyNumberOfTimes:Pn};for(let l in ve)typeof ve[l]=="object"&&st(ve[l]);return Object.assign(e,ve),e},"HLJS"),ue=_t({});ue.newInstance=()=>_t({});ht.exports=ue;ue.HighlightJS=ue;ue.default=ue});var ga={};Cn(ga,{CodeEngine:()=>je});var Nt=In(yt(),1);var Tt=Nt.default;function St(e){let t=e.regex,n={},a={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});let s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},g=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,s]};s.contains.push(r);let c={match:/\\"/},d={className:"string",begin:/'/,end:/'/},u={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},b=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],E=e.SHEBANG({binary:`(${b.join("|")})`,relevance:10}),T={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},y=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],S=["true","false"],v={match:/(\/[a-z._-]+)+/},k=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],M=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],O=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],A=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:y,literal:S,built_in:[...k,...M,"set","shopt",...O,...A]},contains:[E,e.SHEBANG(),T,_,g,o,v,r,c,d,u,n]}}i(St,"bash");var vi=i(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),"MODES"),Oi=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],wi=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ai=[...Oi,...wi],Ri=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),xi=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),ki=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Mi=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function vt(e){let t=e.regex,n=vi(e),a={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",g=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",r=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,a,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+xi.join("|")+")"},{begin:":(:)?("+ki.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Mi.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,n.UNICODE_RANGE,...r,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...r,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:g},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:Ri.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...r,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ai.join("|")+")\\b"}]}}i(vt,"css");var Ot="[A-Za-z$_][0-9A-Za-z$_]*",Ci=["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"],Ii=["true","false","null","undefined","NaN","Infinity"],wt=["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"],At=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Rt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Di=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],Li=[].concat(Rt,wt,At);function xt(e){let t=e.regex,n=i((f,{after:w})=>{let C="</"+f[0].slice(1);return f.input.indexOf(C,w)!==-1},"hasClosingTag"),a=Ot,s={begin:"<>",end:"</>"},g=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:i((f,w)=>{let C=f[0].length+f.index,F=f.input[C];if(F==="<"||F===","){w.ignoreMatch();return}F===">"&&(n(f,{after:C})||w.ignoreMatch());let $,J=f.input.substring(C);if($=J.match(/^\s*=/)){w.ignoreMatch();return}if(($=J.match(/^\s+extends\s+/))&&$.index===0){w.ignoreMatch();return}},"isTrulyOpeningTag")},r={$pattern:Ot,keyword:Ci,literal:Ii,built_in:Li,"variable.language":Di},c="[0-9](_?[0-9])*",d=`\\.(${c})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",_={className:"number",variants:[{begin:`(\\b(${u})((${d})|\\.)?|(${d}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${d})\\b|\\.)?|(${d})\\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},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},E={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"css"}},y={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},S={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},k={className:"comment",variants:[e.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}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},M=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,T,y,S,{match:/\$\d+/},_];b.contains=M.concat({begin:/\{/,end:/\}/,keywords:r,contains:["self"].concat(M)});let O=[].concat(k,b.contains),A=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:r,contains:["self"].concat(O)}]),x={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:A},I={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,t.concat(a,"(",t.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},D={relevance:0,match:t.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:{_:[...wt,...At]}},B={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},W={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(f){return t.concat("(?!",f.join("|"),")")}i(Q,"noneOf");let ee={match:t.concat(/\b/,Q([...Rt,"super","import","await"].map(f=>`${f}\\s*\\(`)),a,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},G={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},l="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",m={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(l)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:r,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:D},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),B,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,T,y,S,k,{match:/\$\d+/},_,D,{scope:"attr",match:a+t.lookahead(":"),relevance:0},m,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[k,e.REGEXP_MODE,{className:"function",begin:l,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:g},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},W,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},ee,X,I,G,{match:/\$[(.]/}]}}i(xt,"javascript");var Bi="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",Pi={scope:"number",match:Bi,relevance:0};function kt(e){let t={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},a=["true","false","null"],s={scope:"literal",beginKeywords:a.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:a},contains:[t,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,Pi,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}i(kt,"json");function Mt(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},a={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},g={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},r=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,r,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},d={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},_=e.inherit(d,{contains:[]}),b=e.inherit(u,{contains:[]});d.contains.push(b),u.contains.push(_);let E=[n,c];return[d,u,_,b].forEach(v=>{v.contains=v.contains.concat(E)}),E=E.concat(d,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:E},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:E}]}]},n,g,a,d,u,{className:"quote",begin:"^>\\s+",contains:E,end:"$"},s,c,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}i(Mt,"markdown");function Ct(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}i(Ct,"plaintext");function It(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,a=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],r={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:a,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:r,illegal:/#/},u={begin:/\{\{/,relevance:0},_={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,u,d]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,u,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,d]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b="[0-9](_?[0-9])*",E=`(\\b(${b}))?\\.(${b})|\\b(${b})\\.`,T=`\\b|${a.join("|")}`,y={className:"number",relevance:0,variants:[{begin:`(\\b(${b})|(${E}))[eE][+-]?(${b})[jJ]?(?=${T})`},{begin:`(${E})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${T})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${T})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${T})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${T})`},{begin:`\\b(${b})[jJ](?=${T})`}]},S={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:r,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},v={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:["self",c,y,_,e.HASH_COMMENT_MODE]}]};return d.contains=[_,y,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:r,illegal:/(<\/|\?)|=>/,contains:[c,y,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,S,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[v]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[y,v,_]}]}}i(It,"python");var xe="[A-Za-z$_][0-9A-Za-z$_]*",Dt=["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"],Lt=["true","false","null","undefined","NaN","Infinity"],Bt=["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"],Pt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ut=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ft=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],zt=[].concat(Ut,Bt,Pt);function Ui(e){let t=e.regex,n=i((f,{after:w})=>{let C="</"+f[0].slice(1);return f.input.indexOf(C,w)!==-1},"hasClosingTag"),a=xe,s={begin:"<>",end:"</>"},g=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:i((f,w)=>{let C=f[0].length+f.index,F=f.input[C];if(F==="<"||F===","){w.ignoreMatch();return}F===">"&&(n(f,{after:C})||w.ignoreMatch());let $,J=f.input.substring(C);if($=J.match(/^\s*=/)){w.ignoreMatch();return}if(($=J.match(/^\s+extends\s+/))&&$.index===0){w.ignoreMatch();return}},"isTrulyOpeningTag")},r={$pattern:xe,keyword:Dt,literal:Lt,built_in:zt,"variable.language":Ft},c="[0-9](_?[0-9])*",d=`\\.(${c})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",_={className:"number",variants:[{begin:`(\\b(${u})((${d})|\\.)?|(${d}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${d})\\b|\\.)?|(${d})\\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},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},E={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"css"}},y={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},S={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},k={className:"comment",variants:[e.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}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},M=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,T,y,S,{match:/\$\d+/},_];b.contains=M.concat({begin:/\{/,end:/\}/,keywords:r,contains:["self"].concat(M)});let O=[].concat(k,b.contains),A=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:r,contains:["self"].concat(O)}]),x={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:A},I={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,t.concat(a,"(",t.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},D={relevance:0,match:t.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:{_:[...Bt,...Pt]}},B={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},W={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(f){return t.concat("(?!",f.join("|"),")")}i(Q,"noneOf");let ee={match:t.concat(/\b/,Q([...Ut,"super","import","await"].map(f=>`${f}\\s*\\(`)),a,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},G={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},l="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",m={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(l)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:r,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:D},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),B,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,T,y,S,k,{match:/\$\d+/},_,D,{scope:"attr",match:a+t.lookahead(":"),relevance:0},m,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[k,e.REGEXP_MODE,{className:"function",begin:l,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:g},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},W,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},ee,X,I,G,{match:/\$[(.]/}]}}i(Ui,"javascript");function $t(e){let t=e.regex,n=Ui(e),a=xe,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],g={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[n.exports.CLASS_REFERENCE]},r={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],d={$pattern:xe,keyword:Dt.concat(c),literal:Lt,built_in:zt.concat(s),"variable.language":Ft},u={className:"meta",begin:"@"+a},_=i((y,S,v)=>{let k=y.contains.findIndex(M=>M.label===S);if(k===-1)throw new Error("can not find mode to replace");y.contains.splice(k,1,v)},"swapMode");Object.assign(n.keywords,d),n.exports.PARAMS_CONTAINS.push(u);let b=n.contains.find(y=>y.scope==="attr"),E=Object.assign({},b,{match:t.concat(a,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,b,E]),n.contains=n.contains.concat([u,g,o,E]),_(n,"shebang",e.SHEBANG()),_(n,"use_strict",r);let T=n.contains.find(y=>y.label==="func.def");return T.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}i($t,"typescript");function Kt(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},g={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(g,{begin:/\(/,end:/\)/}),r=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[g,c,r,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[g,o,c,r]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:d}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}i(Kt,"xml");function Gt(e){let t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},g={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,s]},r=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),b={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},E={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},T={begin:/\{/,end:/\}/,contains:[E],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[E],illegal:"\\n",relevance:0},S=[a,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},b,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},T,y,g,o],v=[...S];return v.pop(),v.push(r),E.contains=v,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:S}}i(Gt,"yaml");function Ht(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",o="("+a+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",r=t.concat(/\batomic_/,t.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:r}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},_={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},b={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},u,{scope:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),n,e.C_BLOCK_COMMENT_MODE]},T=[b,E],y={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},S=t.optional(s)+e.IDENT_RE+"\\s*\\(",v=12,O={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},A=[...T,c,n,e.C_BLOCK_COMMENT_MODE,_,u],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:O,contains:A.concat([{begin:/\(/,end:/\)/,keywords:O,contains:A.concat(["self"]),relevance:0}]),relevance:0},I={begin:"("+o+"[\\*&\\s]+){1,"+v+"}"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:O,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:O,relevance:0},{begin:S,returnBegin:!0,contains:[e.inherit(y,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,_,c,{begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,_,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,...T]};return{name:"C",aliases:["h"],keywords:O,disableAutodetect:!0,illegal:"</",contains:[].concat(x,I,A,[...T,{begin:e.IDENT_RE+"::",keywords:O},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:E,strings:u,keywords:O}}}i(Ht,"c");function Wt(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",o="(?!struct)("+a+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",r={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},u={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},_={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},d,{scope:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},b={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),n,e.C_BLOCK_COMMENT_MODE]},E=[_,b],T={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},y=t.optional(s)+e.IDENT_RE+"\\s*\\(",S=12,v=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],k=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],M=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],O=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],I={type:k,keyword:v,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:M},D={className:"function.dispatch",relevance:0,keywords:{_hint:O},begin:t.concat(/\b/,`(?!${v.join("|")})`,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},B=[D,...E,r,n,e.C_BLOCK_COMMENT_MODE,u,d],W={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:B.concat([{begin:/\(/,end:/\)/,keywords:I,contains:B.concat(["self"]),relevance:0}]),relevance:0},X={className:"function",begin:"("+o+"[\\*&\\s]+){1,"+S+"}"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:I,relevance:0},{begin:y,returnBegin:!0,contains:[T],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,u,r,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,d,u,r]}]},r,n,e.C_BLOCK_COMMENT_MODE,...E]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(W,X,D,B,[...E,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:I,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}i(Wt,"cpp");function Yt(e){let t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],a=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],g=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:s.concat(g),built_in:t,literal:a},r=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c="\\d(_*\\d)*",d="([uU][lL]?|[lL][uU]?)?",_={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+d},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+d},{begin:"(-?)(\\b"+c+"(\\.("+c+")?)?|\\."+c+")([eE][-+]?"+c+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},b={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},E={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},T=e.inherit(E,{illegal:/\n/}),y={className:"subst",begin:/\{/,end:/\}/,keywords:o},S=e.inherit(y,{illegal:/\n/}),v={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,S]},k={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},y]},M=e.inherit(k,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},S]});y.contains=[k,v,E,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_BLOCK_COMMENT_MODE],S.contains=[M,v,T,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let O={variants:[b,k,v,E,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},A={begin:"<",end:">",contains:[{beginKeywords:"in out"},r]},x=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",I={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},O,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},r,A,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[r,A,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+x+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,A],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[O,_,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},I]}}i(Yt,"csharp");function qt(e){let t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}i(qt,"diff");function Zt(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}i(Zt,"dockerfile");function Vt(e){let g={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:g,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:g,illegal:/["']/}]}]}}i(Vt,"go");function Xt(e){let t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}i(Xt,"graphql");function Qt(e){let t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},a=e.COMMENT();a.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},g={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},r={begin:/\[/,end:/\]/,contains:[a,g,s,o,n,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,d=/"(\\"|[^"])*"/,u=/'[^']*'/,_=t.either(c,d,u),b=t.concat(_,"(\\s*\\.\\s*",_,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[a,{className:"section",begin:/\[+/,end:/\]+/},{begin:b,className:"attr",starts:{end:/$/,contains:[a,r,g,s,o,n]}}]}}i(Qt,"ini");var ge="[0-9](_*[0-9])*",ke=`\\.(${ge})`,Me="[0-9a-fA-F](_*[0-9a-fA-F])*",Jt={className:"number",variants:[{begin:`(\\b(${ge})((${ke})|\\.)?|(${ke}))[eE][+-]?(${ge})[fFdD]?\\b`},{begin:`\\b(${ge})((${ke})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${ke})[fFdD]?\\b`},{begin:`\\b(${ge})[fFdD]\\b`},{begin:`\\b0[xX]((${Me})\\.?|(${Me})?\\.(${Me}))[pP][+-]?(${ge})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Me})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function jt(e,t,n){return n===-1?"":e.replace(t,a=>jt(e,t,n-1))}i(jt,"recurRegex");function en(e){let t=e.regex,n="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",a="(?:(?:\\s*\\[\\s*])+)?",s=n+"<@@@>"+a,o="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+s+")?")+"|"+s+")",r=jt("(?:\\s*<\\s*"+o+"(?:\\s*,\\s*"+o+")*\\s*>)?",/<@@@>/g,2),b={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},E={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},T={className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:b,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[n,t.concat(r,a,/\s+/),n,a,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[T,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:[n,t.concat(r,a,/\s+/),n,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:b,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[E,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Jt,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Jt,E]}}i(en,"java");var pe="[0-9](_*[0-9])*",Ce=`\\.(${pe})`,Ie="[0-9a-fA-F](_*[0-9a-fA-F])*",Fi={className:"number",variants:[{begin:`(\\b(${pe})((${Ce})|\\.)?|(${Ce}))[eE][+-]?(${pe})[fFdD]?\\b`},{begin:`\\b(${pe})((${Ce})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Ce})[fFdD]?\\b`},{begin:`\\b(${pe})[fFdD]\\b`},{begin:`\\b0[xX]((${Ie})\\.?|(${Ie})?\\.(${Ie}))[pP][+-]?(${pe})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Ie})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function tn(e){let t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},a={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},g={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[g,s]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,g,s]}]};s.contains.push(o);let r={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},d=Fi,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),_={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},b=_;return b.variants[1].contains=[_],_.variants[1].contains=[b],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,a,r,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[_,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,r,c,o,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},r,c]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
4
|
+
`},d]}}i(tn,"kotlin");var zi=i(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),"MODES"),$i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ki=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Gi=[...$i,...Ki],Hi=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),nn=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),an=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Wi=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),Yi=nn.concat(an).sort().reverse();function rn(e){let t=zi(e),n=Yi,a="and or not only",s="[\\w-]+",g="("+s+"|@\\{"+s+"\\})",o=[],r=[],c=i(function(M){return{className:"string",begin:"~?"+M+".*?"+M}},"STRING_MODE"),d=i(function(M,O,A){return{className:M,begin:O,relevance:A}},"IDENT_MODE"),u={$pattern:/[a-z-]+/,keyword:a,attribute:Hi.join(" ")},_={begin:"\\(",end:"\\)",contains:r,keywords:u,relevance:0};r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c("'"),c('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.UNICODE_RANGE,t.HEXCOLOR,_,d("variable","@@?"+s,10),d("variable","@\\{"+s+"\\}"),d("built_in","~?`[^`]*?`"),{className:"attribute",begin:s+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);let b=r.concat({begin:/\{/,end:/\}/,contains:o}),E={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(r)},T={begin:g+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Wi.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:r}}]},y={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:r,relevance:0}},S={className:"variable",variants:[{begin:"@"+s+"\\s*:",relevance:15},{begin:"@"+s}],starts:{end:"[;}]",returnEnd:!0,contains:b}},v={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:g,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,E,d("keyword","all\\b"),d("variable","@\\{"+s+"\\}"),{begin:"\\b("+Gi.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,d("selector-tag",g,0),d("selector-id","#"+g),d("selector-class","\\."+g,0),d("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+nn.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+an.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:b},{begin:"!important"},t.FUNCTION_DISPATCH]},k={begin:s+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[v]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,S,k,T,v,E,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}i(rn,"less");function on(e){let t="\\[=*\\[",n="\\]=*\\]",a={begin:t,end:n,contains:["self"]},s=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[a],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[a],relevance:5}])}}i(on,"lua");function sn(e){let t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},a={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},g={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,a,s,g,o]}}i(sn,"makefile");function cn(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,a=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),s=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),g=t.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+a},r={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":i((K,G)=>{G.data._beginMatch=K[1]||K[2]},"on:begin"),"on:end":i((K,G)=>{G.data._beginMatch!==K[1]&&G.ignoreMatch()},"on:end")},b=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),E=`[
|
|
5
|
+
]`,T={scope:"string",variants:[u,d,_,b]},y={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},S=["false","null","true"],v=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],k=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],O={keyword:v,literal:i(K=>{let G=[];return K.forEach(l=>{G.push(l),l.toLowerCase()===l?G.push(l.toUpperCase()):G.push(l.toLowerCase())}),G},"dualCase")(S),built_in:k},A=i(K=>K.map(G=>G.replace(/\|\d+$/,"")),"normalizeKeywords"),x={variants:[{match:[/new/,t.concat(E,"+"),t.concat("(?!",A(k).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},I=t.concat(a,"\\b(?!\\()"),D={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),I],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,t.concat(/::/,t.lookahead(/(?!class\b)/)),I],scope:{1:"title.class",3:"variable.constant"}},{match:[s,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},B={scope:"attr",match:t.concat(a,t.lookahead(":"),t.lookahead(/(?!::)/))},W={relevance:0,begin:/\(/,end:/\)/,keywords:O,contains:[B,o,D,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,T,y,x]},X={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",A(v).join("\\b|"),"|",A(k).join("\\b|"),"\\b)"),a,t.concat(E,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[W]};W.contains.push(X);let Q=[B,D,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,T,y,x],ee={begin:t.concat(/#\[\s*\\?/,t.either(s,g)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:S,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:S,keyword:["new","array"]},contains:["self",...Q]},...Q,{scope:"meta",variants:[{match:s},{match:g}]}]};return{case_insensitive:!1,keywords:O,contains:[ee,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},r,{scope:"variable.language",match:/\$this\b/},o,X,D,{match:[/const/,/\s/,a],scope:{1:"keyword",3:"variable.constant"}},x,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:O,contains:["self",ee,o,D,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,T,y]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},T,y]}}i(cn,"php");function ln(e){let t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",a="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",s={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},g=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},r={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},c={className:"literal",begin:/\$(null|true|false)\b/},d={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,r,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},u={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},_={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},b=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[_]}),E={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},T={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},y={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:g,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[r]}]},S={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,u,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},v={variants:[{className:"operator",begin:"(".concat(a,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},k={className:"selector-tag",begin:/@\B/,relevance:0},M={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(s.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},O=[M,b,o,e.NUMBER_MODE,d,u,E,r,c,k],A={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",O,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return M.contains.unshift(A),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:s,contains:O.concat(T,y,S,v,A)}}i(ln,"powershell");function dn(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",a=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=t.concat(a,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},r={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},d=[e.COMMENT("#","$",{contains:[r]}),e.COMMENT("^=begin","^=end",{contains:[r],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:o},_={className:"string",contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},b="[1-9](_?[0-9])*|0",E="[0-9](_?[0-9])*",T={className:"number",relevance:0,variants:[{begin:`\\b(${b})(\\.(${E}))?([eE][+-]?(${E})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},y={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},x=[_,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:o},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:a,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[y]},{begin:"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:n}],relevance:0},T,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,d),relevance:0}].concat(c,d);u.contains=x,y.contains=x;let W=[{begin:/^\s*=>/,starts:{end:"$",contains:x}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:x}}];return d.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(W).concat(d).concat(x)}}i(dn,"ruby");function un(e){let t=e.regex,n=/(r#)?/,a=t.concat(n,e.UNDERSCORE_IDENT_RE),s=t.concat(n,e.IDENT_RE),g={scope:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,s,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",r=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],c=["true","false","Some","None","Ok","Err"],d=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],u=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:u,keyword:r,literal:c,built_in:d},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,a],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,a],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,a,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,a],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,a],scope:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:d,type:u}},{scope:"punctuation",begin:"->"},g]}}i(un,"rust");var qi=i(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),"MODES"),Zi=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Vi=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Xi=[...Zi,...Vi],Qi=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Ji=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),ji=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),ea=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function gn(e){let t=qi(e),n=ji,a=Ji,s="@[a-z-]+",g="and or not only",r={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+Xi.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},r,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ea.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,r,t.HEXCOLOR,t.CSS_NUMBER_MODE,t.UNICODE_RANGE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:s,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:Qi.join(" ")},contains:[{begin:s,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},r,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}i(gn,"scss");function pn(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}i(pn,"shell");function bn(e){let t=e.regex,n=e.COMMENT("--","$"),a={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},g=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],r=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],d=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],_=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],b=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],E=u,T=[...d,...c].filter(A=>!u.includes(A)),y={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},S={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={match:t.concat(/\b/,t.either(...E),/\s*\(/),relevance:0,keywords:{built_in:E}};function k(A){return t.concat(/\b/,t.either(...A.map(x=>x.replace(/\s+/,"\\s+"))),/\b/)}i(k,"kws_to_regex");let M={scope:"keyword",match:k(b),relevance:0};function O(A,{exceptions:x,when:I}={}){let D=I;return x=x||[],A.map(B=>B.match(/\|\d+$/)||x.includes(B)?B:D(B)?`${B}|0`:B)}return i(O,"reduceRelevancy"),{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:O(T,{when:i(A=>A.length<3,"when")}),literal:g,type:r,built_in:_},contains:[{scope:"type",match:k(o)},M,v,y,a,s,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,S]}}i(bn,"sql");function _n(e){return e?typeof e=="string"?e:e.source:null}i(_n,"source");function _e(e){return U("(?=",e,")")}i(_e,"lookahead");function U(...e){return e.map(n=>_n(n)).join("")}i(U,"concat");function ta(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}i(ta,"stripOptionsFromArgs");function q(...e){return"("+(ta(e).capture?"":"?:")+e.map(a=>_n(a)).join("|")+")"}i(q,"either");new RegExp(q(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));var Je=i(e=>U(/\b/,e,/\w$/.test(e)?/\b/:/\B/),"keywordWrapper"),na=["Protocol","Type"].map(Je),mn=["init","self"].map(Je),ia=["Any","Self"],Xe=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],fn=["false","nil","true"],aa=["assignment","associativity","higherThan","left","lowerThan","none","right"],ra=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],En=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],hn=q(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),yn=q(hn,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Qe=U(hn,yn,"*"),Nn=q(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Le=q(Nn,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),te=U(Nn,Le,"*"),De=U(/[A-Z]/,Le,"*"),oa=["attached","autoclosure",U(/convention\(/,q("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",U(/objc\(/,te,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],sa=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Tn(e){let t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),a=[e.C_LINE_COMMENT_MODE,n],s={match:[/\./,q(...na,...mn)],className:{2:"keyword"}},g={match:U(/\./,q(...Xe)),relevance:0},o=Xe.filter(P=>typeof P=="string").concat(["_|0"]),r=Xe.filter(P=>typeof P!="string").concat(ia).map(Je),c={variants:[{className:"keyword",match:q(...r,...mn)}]},d={$pattern:q(/\b\w+/,/#\w+/),keyword:o.concat(ra),literal:fn},u=[s,g,c],_={match:U(/\./,q(...En)),relevance:0},b={className:"built_in",match:U(/\b/,q(...En),/(?=\()/)},E=[_,b],T={match:/->/,relevance:0},y={className:"operator",relevance:0,variants:[{match:Qe},{match:`\\.(\\.|${yn})+`}]},S=[T,y],v="([0-9]_*)+",k="([0-9a-fA-F]_*)+",M={className:"number",relevance:0,variants:[{match:`\\b(${v})(\\.(${v}))?([eE][+-]?(${v}))?\\b`},{match:`\\b0x(${k})(\\.(${k}))?([pP][+-]?(${v}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},O=i((P="")=>({className:"subst",variants:[{match:U(/\\/,P,/[0\\tnr"']/)},{match:U(/\\/,P,/u\{[0-9a-fA-F]{1,8}\}/)}]}),"ESCAPED_CHARACTER"),A=i((P="")=>({className:"subst",match:U(/\\/,P,/[\t ]*(?:[\r\n]|\r\n)/)}),"ESCAPED_NEWLINE"),x=i((P="")=>({className:"subst",label:"interpol",begin:U(/\\/,P,/\(/),end:/\)/}),"INTERPOLATION"),I=i((P="")=>({begin:U(P,/"""/),end:U(/"""/,P),contains:[O(P),A(P),x(P)]}),"MULTILINE_STRING"),D=i((P="")=>({begin:U(P,/"/),end:U(/"/,P),contains:[O(P),x(P)]}),"SINGLE_LINE_STRING"),B={className:"string",variants:[I(),I("#"),I("##"),I("###"),D(),D("#"),D("##"),D("###")]},W=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],X={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:W},Q=i(P=>{let ie=U(P,/\//),N=U(/\//,P);return{begin:ie,end:N,contains:[...W,{scope:"comment",begin:`#(?!.*${N})`,end:/$/}]}},"EXTENDED_REGEXP_LITERAL"),ee={scope:"regexp",variants:[Q("###"),Q("##"),Q("#"),X]},K={match:U(/`/,te,/`/)},G={className:"variable",match:/\$\d+/},l={className:"variable",match:`\\$${Le}+`},m=[K,G,l],f={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:sa,contains:[...S,M,B]}]}},w={scope:"keyword",match:U(/@/,q(...oa),_e(q(/\(/,/\s+/)))},C={scope:"meta",match:U(/@/,te)},F=[f,w,C],$={match:_e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:U(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Le,"+")},{className:"type",match:De,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:U(/\s+&\s+/,_e(De)),relevance:0}]},J={begin:/</,end:/>/,keywords:d,contains:[...a,...u,...F,T,$]};$.contains.push(J);let Z={match:U(te,/\s*:/),keywords:"_|0",relevance:0},V={begin:/\(/,end:/\)/,relevance:0,keywords:d,contains:["self",Z,...a,ee,...u,...E,...S,M,B,...m,...F,$]},ce={begin:/</,end:/>/,keywords:"repeat each",contains:[...a,$]},ye={begin:q(_e(U(te,/\s*:/)),_e(U(te,/\s+/,te,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:te}]},be={begin:/\(/,end:/\)/,keywords:d,contains:[ye,...a,...u,...S,M,B,...F,$,V],endsParent:!0,illegal:/["']/},Pe={match:[/(func|macro)/,/\s+/,q(K.match,te,Qe)],className:{1:"keyword",3:"title.function"},contains:[ce,be,t],illegal:[/\[/,/%/]},Ue={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ce,be,t],illegal:/\[|%/},Fe={match:[/operator/,/\s+/,Qe],className:{1:"keyword",3:"title"}},ze={begin:[/precedencegroup/,/\s+/,De],className:{1:"keyword",3:"title"},contains:[$],keywords:[...aa,...fn],end:/}/},le={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Ne={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},j={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,te,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:d,contains:[ce,...u,{begin:/:/,end:/\{/,keywords:d,contains:[{scope:"title.class.inherited",match:De},...u],relevance:0}]};for(let P of B.variants){let ie=P.contains.find(Te=>Te.label==="interpol");ie.keywords=d;let N=[...u,...E,...S,M,B,...m];ie.contains=[...N,{begin:/\(/,end:/\)/,contains:["self",...N]}]}return{name:"Swift",keywords:d,contains:[...a,Pe,Ue,le,Ne,j,Fe,ze,{beginKeywords:"import",end:/$/,contains:[...a],relevance:0},ee,...u,...E,...S,M,B,...m,...F,$,V]}}i(Tn,"swift");var Be=class extends Error{static{i(this,"ApiError")}get status(){return this.cause?.response.status}get response(){return this.cause?.response}};Be.prototype.name="ApiError";var ca=["load","cross-origin","file-protocol","save","conflict","no-saver","render"],he=class e extends Error{static{i(this,"SourceError")}get kind(){return this.cause?.kind}get status(){return this.cause?.status}static kindFor(t,n){return t instanceof e&&t.kind||n}static isKind(t){return ca.includes(t)}};he.prototype.name="SourceError";var Sn={bash:St,css:vt,javascript:xt,json:kt,markdown:Mt,python:It,typescript:$t,xml:Kt,yaml:Gt},la="plaintext",da={c:Ht,cpp:Wt,csharp:Yt,diff:qt,dockerfile:Zt,go:Vt,graphql:Xt,ini:Qt,java:en,kotlin:tn,less:rn,lua:on,makefile:sn,php:cn,powershell:ln,ruby:dn,rust:un,scss:gn,shell:pn,sql:bn,swift:Tn},ua={"c++":"cpp",cs:"csharp","c#":"csharp",docker:"dockerfile",golang:"go",gql:"graphql",toml:"ini",kt:"kotlin",make:"makefile",ps1:"powershell",rb:"ruby",rs:"rust",console:"shell"},je=class e{static{i(this,"CodeEngine")}static instance=new e;hljs=Tt.newInstance();detectable=new Set(Object.keys(Sn));grammars=new Map;constructor(){for(let[t,n]of Object.entries(Sn))this.hljs.registerLanguage(t,n);this.hljs.registerLanguage(la,Ct),this.hljs.configure({ignoreUnescapedHTML:!0})}register(t,n,a={}){if(this.grammars.get(t)!==n){if(typeof n!="function")throw new he(`CodeEngine.register(): "${t}" isn't a highlight.js grammar; pass \`(hljs) => Language\``,{cause:{kind:"render"}});this.grammars.set(t,n),this.hljs.registerLanguage(t,n),a.aliases?.length&&this.hljs.registerAliases([...a.aliases],{languageName:t}),a.detect&&this.detectable.add(t)}}async ensure(t){let n=t.toLowerCase();if(this.hljs.getLanguage(n))return this.canonical(n);let s=ua[n]??n,g=da[s];if(g)return this.hljs.registerLanguage(s,g),s}highlight(t,n){return this.hljs.highlight(t,{language:n,ignoreIllegals:!0}).value}detect(t){let n=this.hljs.highlightAuto(t,[...this.detectable]);return{html:n.value,language:n.language}}canonical(t){if(this.hljs.listLanguages().includes(t))return t;for(let n of this.hljs.listLanguages())if(this.hljs.getLanguage(n)===this.hljs.getLanguage(t))return n;return t}};return Dn(ga);})();
|