mirror of
https://github.com/Leado123/Leado123.github.io.git
synced 2026-10-01 00:32:59 +00:00
change
This commit is contained in:
+78780
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
+276
@@ -0,0 +1,276 @@
|
|||||||
|
import {
|
||||||
|
useMediaQuery
|
||||||
|
} from "./chunk-6F5JWMBQ.js";
|
||||||
|
import {
|
||||||
|
computed,
|
||||||
|
ref,
|
||||||
|
shallowRef,
|
||||||
|
watch
|
||||||
|
} from "./chunk-VJWGEPT5.js";
|
||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/index.js
|
||||||
|
import "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/styles/fonts.css";
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/without-fonts.js
|
||||||
|
import "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/styles/vars.css";
|
||||||
|
import "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/styles/base.css";
|
||||||
|
import "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/styles/icons.css";
|
||||||
|
import "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/styles/utils.css";
|
||||||
|
import "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/styles/components/custom-block.css";
|
||||||
|
import "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/styles/components/vp-code.css";
|
||||||
|
import "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/styles/components/vp-code-group.css";
|
||||||
|
import "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/styles/components/vp-doc.css";
|
||||||
|
import "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/styles/components/vp-sponsor.css";
|
||||||
|
import VPBadge from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPBadge.vue";
|
||||||
|
import Layout from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/Layout.vue";
|
||||||
|
import { default as default2 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPBadge.vue";
|
||||||
|
import { default as default3 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPButton.vue";
|
||||||
|
import { default as default4 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPDocAsideSponsors.vue";
|
||||||
|
import { default as default5 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPFeatures.vue";
|
||||||
|
import { default as default6 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPHomeContent.vue";
|
||||||
|
import { default as default7 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPHomeFeatures.vue";
|
||||||
|
import { default as default8 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPHomeHero.vue";
|
||||||
|
import { default as default9 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPHomeSponsors.vue";
|
||||||
|
import { default as default10 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPImage.vue";
|
||||||
|
import { default as default11 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPLink.vue";
|
||||||
|
import { default as default12 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPNavBarSearch.vue";
|
||||||
|
import { default as default13 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPSocialLink.vue";
|
||||||
|
import { default as default14 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPSocialLinks.vue";
|
||||||
|
import { default as default15 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPSponsors.vue";
|
||||||
|
import { default as default16 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPTeamMembers.vue";
|
||||||
|
import { default as default17 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue";
|
||||||
|
import { default as default18 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPTeamPageSection.vue";
|
||||||
|
import { default as default19 } from "/home/liyaowhen/Documents/ss/Leado123.github.io/node_modules/vitepress/dist/client/theme-default/components/VPTeamPageTitle.vue";
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/composables/local-nav.js
|
||||||
|
import { onContentUpdated } from "vitepress";
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/composables/outline.js
|
||||||
|
import { getScrollOffset } from "vitepress";
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/support/utils.js
|
||||||
|
import { withBase } from "vitepress";
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/composables/data.js
|
||||||
|
import { useData as useData$ } from "vitepress";
|
||||||
|
var useData = useData$;
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/support/utils.js
|
||||||
|
function ensureStartingSlash(path) {
|
||||||
|
return path.startsWith("/") ? path : `/${path}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/support/sidebar.js
|
||||||
|
function getSidebar(_sidebar, path) {
|
||||||
|
if (Array.isArray(_sidebar))
|
||||||
|
return addBase(_sidebar);
|
||||||
|
if (_sidebar == null)
|
||||||
|
return [];
|
||||||
|
path = ensureStartingSlash(path);
|
||||||
|
const dir = Object.keys(_sidebar).sort((a, b) => {
|
||||||
|
return b.split("/").length - a.split("/").length;
|
||||||
|
}).find((dir2) => {
|
||||||
|
return path.startsWith(ensureStartingSlash(dir2));
|
||||||
|
});
|
||||||
|
const sidebar = dir ? _sidebar[dir] : [];
|
||||||
|
return Array.isArray(sidebar) ? addBase(sidebar) : addBase(sidebar.items, sidebar.base);
|
||||||
|
}
|
||||||
|
function getSidebarGroups(sidebar) {
|
||||||
|
const groups = [];
|
||||||
|
let lastGroupIndex = 0;
|
||||||
|
for (const index in sidebar) {
|
||||||
|
const item = sidebar[index];
|
||||||
|
if (item.items) {
|
||||||
|
lastGroupIndex = groups.push(item);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!groups[lastGroupIndex]) {
|
||||||
|
groups.push({ items: [] });
|
||||||
|
}
|
||||||
|
groups[lastGroupIndex].items.push(item);
|
||||||
|
}
|
||||||
|
return groups;
|
||||||
|
}
|
||||||
|
function addBase(items, _base) {
|
||||||
|
return [...items].map((_item) => {
|
||||||
|
const item = { ..._item };
|
||||||
|
const base = item.base || _base;
|
||||||
|
if (base && item.link)
|
||||||
|
item.link = base + item.link;
|
||||||
|
if (item.items)
|
||||||
|
item.items = addBase(item.items, base);
|
||||||
|
return item;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/composables/sidebar.js
|
||||||
|
function useSidebar() {
|
||||||
|
const { frontmatter, page, theme: theme2 } = useData();
|
||||||
|
const is960 = useMediaQuery("(min-width: 960px)");
|
||||||
|
const isOpen = ref(false);
|
||||||
|
const _sidebar = computed(() => {
|
||||||
|
const sidebarConfig = theme2.value.sidebar;
|
||||||
|
const relativePath = page.value.relativePath;
|
||||||
|
return sidebarConfig ? getSidebar(sidebarConfig, relativePath) : [];
|
||||||
|
});
|
||||||
|
const sidebar = ref(_sidebar.value);
|
||||||
|
watch(_sidebar, (next, prev) => {
|
||||||
|
if (JSON.stringify(next) !== JSON.stringify(prev))
|
||||||
|
sidebar.value = _sidebar.value;
|
||||||
|
});
|
||||||
|
const hasSidebar = computed(() => {
|
||||||
|
return frontmatter.value.sidebar !== false && sidebar.value.length > 0 && frontmatter.value.layout !== "home";
|
||||||
|
});
|
||||||
|
const leftAside = computed(() => {
|
||||||
|
if (hasAside)
|
||||||
|
return frontmatter.value.aside == null ? theme2.value.aside === "left" : frontmatter.value.aside === "left";
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
const hasAside = computed(() => {
|
||||||
|
if (frontmatter.value.layout === "home")
|
||||||
|
return false;
|
||||||
|
if (frontmatter.value.aside != null)
|
||||||
|
return !!frontmatter.value.aside;
|
||||||
|
return theme2.value.aside !== false;
|
||||||
|
});
|
||||||
|
const isSidebarEnabled = computed(() => hasSidebar.value && is960.value);
|
||||||
|
const sidebarGroups = computed(() => {
|
||||||
|
return hasSidebar.value ? getSidebarGroups(sidebar.value) : [];
|
||||||
|
});
|
||||||
|
function open() {
|
||||||
|
isOpen.value = true;
|
||||||
|
}
|
||||||
|
function close() {
|
||||||
|
isOpen.value = false;
|
||||||
|
}
|
||||||
|
function toggle() {
|
||||||
|
isOpen.value ? close() : open();
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
isOpen,
|
||||||
|
sidebar,
|
||||||
|
sidebarGroups,
|
||||||
|
hasSidebar,
|
||||||
|
hasAside,
|
||||||
|
leftAside,
|
||||||
|
isSidebarEnabled,
|
||||||
|
open,
|
||||||
|
close,
|
||||||
|
toggle
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/composables/outline.js
|
||||||
|
var ignoreRE = /\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/;
|
||||||
|
var resolvedHeaders = [];
|
||||||
|
function getHeaders(range) {
|
||||||
|
const headers = [
|
||||||
|
...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")
|
||||||
|
].filter((el) => el.id && el.hasChildNodes()).map((el) => {
|
||||||
|
const level = Number(el.tagName[1]);
|
||||||
|
return {
|
||||||
|
element: el,
|
||||||
|
title: serializeHeader(el),
|
||||||
|
link: "#" + el.id,
|
||||||
|
level
|
||||||
|
};
|
||||||
|
});
|
||||||
|
return resolveHeaders(headers, range);
|
||||||
|
}
|
||||||
|
function serializeHeader(h) {
|
||||||
|
let ret = "";
|
||||||
|
for (const node of h.childNodes) {
|
||||||
|
if (node.nodeType === 1) {
|
||||||
|
if (ignoreRE.test(node.className))
|
||||||
|
continue;
|
||||||
|
ret += node.textContent;
|
||||||
|
} else if (node.nodeType === 3) {
|
||||||
|
ret += node.textContent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ret.trim();
|
||||||
|
}
|
||||||
|
function resolveHeaders(headers, range) {
|
||||||
|
if (range === false) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
const levelsRange = (typeof range === "object" && !Array.isArray(range) ? range.level : range) || 2;
|
||||||
|
const [high, low] = typeof levelsRange === "number" ? [levelsRange, levelsRange] : levelsRange === "deep" ? [2, 6] : levelsRange;
|
||||||
|
return buildTree(headers, high, low);
|
||||||
|
}
|
||||||
|
function buildTree(data, min, max) {
|
||||||
|
resolvedHeaders.length = 0;
|
||||||
|
const result = [];
|
||||||
|
const stack = [];
|
||||||
|
data.forEach((item) => {
|
||||||
|
const node = { ...item, children: [] };
|
||||||
|
let parent = stack[stack.length - 1];
|
||||||
|
while (parent && parent.level >= node.level) {
|
||||||
|
stack.pop();
|
||||||
|
parent = stack[stack.length - 1];
|
||||||
|
}
|
||||||
|
if (node.element.classList.contains("ignore-header") || parent && "shouldIgnore" in parent) {
|
||||||
|
stack.push({ level: node.level, shouldIgnore: true });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (node.level > max || node.level < min)
|
||||||
|
return;
|
||||||
|
resolvedHeaders.push({ element: node.element, link: node.link });
|
||||||
|
if (parent)
|
||||||
|
parent.children.push(node);
|
||||||
|
else
|
||||||
|
result.push(node);
|
||||||
|
stack.push(node);
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/composables/local-nav.js
|
||||||
|
function useLocalNav() {
|
||||||
|
const { theme: theme2, frontmatter } = useData();
|
||||||
|
const headers = shallowRef([]);
|
||||||
|
const hasLocalNav = computed(() => {
|
||||||
|
return headers.value.length > 0;
|
||||||
|
});
|
||||||
|
onContentUpdated(() => {
|
||||||
|
headers.value = getHeaders(frontmatter.value.outline ?? theme2.value.outline);
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
headers,
|
||||||
|
hasLocalNav
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/vitepress/dist/client/theme-default/without-fonts.js
|
||||||
|
var theme = {
|
||||||
|
Layout,
|
||||||
|
enhanceApp: ({ app }) => {
|
||||||
|
app.component("Badge", VPBadge);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var without_fonts_default = theme;
|
||||||
|
export {
|
||||||
|
default2 as VPBadge,
|
||||||
|
default3 as VPButton,
|
||||||
|
default4 as VPDocAsideSponsors,
|
||||||
|
default5 as VPFeatures,
|
||||||
|
default6 as VPHomeContent,
|
||||||
|
default7 as VPHomeFeatures,
|
||||||
|
default8 as VPHomeHero,
|
||||||
|
default9 as VPHomeSponsors,
|
||||||
|
default10 as VPImage,
|
||||||
|
default11 as VPLink,
|
||||||
|
default12 as VPNavBarSearch,
|
||||||
|
default13 as VPSocialLink,
|
||||||
|
default14 as VPSocialLinks,
|
||||||
|
default15 as VPSponsors,
|
||||||
|
default16 as VPTeamMembers,
|
||||||
|
default17 as VPTeamPage,
|
||||||
|
default18 as VPTeamPageSection,
|
||||||
|
default19 as VPTeamPageTitle,
|
||||||
|
without_fonts_default as default,
|
||||||
|
useLocalNav,
|
||||||
|
useSidebar
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=@theme_index.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
Vendored
+571
@@ -0,0 +1,571 @@
|
|||||||
|
{
|
||||||
|
"hash": "84e5a34f",
|
||||||
|
"configHash": "e0d1a919",
|
||||||
|
"lockfileHash": "0b9e90d8",
|
||||||
|
"browserHash": "9e6e4bf4",
|
||||||
|
"optimized": {
|
||||||
|
"react": {
|
||||||
|
"src": "../../../node_modules/react/index.js",
|
||||||
|
"file": "react.js",
|
||||||
|
"fileHash": "be92c545",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-dom": {
|
||||||
|
"src": "../../../node_modules/react-dom/index.js",
|
||||||
|
"file": "react-dom.js",
|
||||||
|
"fileHash": "82155e03",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react/jsx-dev-runtime": {
|
||||||
|
"src": "../../../node_modules/react/jsx-dev-runtime.js",
|
||||||
|
"file": "react_jsx-dev-runtime.js",
|
||||||
|
"fileHash": "a16bcfc1",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react/jsx-runtime": {
|
||||||
|
"src": "../../../node_modules/react/jsx-runtime.js",
|
||||||
|
"file": "react_jsx-runtime.js",
|
||||||
|
"fileHash": "7826131d",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"vue": {
|
||||||
|
"src": "../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
|
||||||
|
"file": "vue.js",
|
||||||
|
"fileHash": "438f2bc3",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"vitepress > @vue/devtools-api": {
|
||||||
|
"src": "../../../node_modules/@vue/devtools-api/dist/index.js",
|
||||||
|
"file": "vitepress___@vue_devtools-api.js",
|
||||||
|
"fileHash": "5612f853",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"vitepress > @vueuse/core": {
|
||||||
|
"src": "../../../node_modules/@vueuse/core/index.mjs",
|
||||||
|
"file": "vitepress___@vueuse_core.js",
|
||||||
|
"fileHash": "3effdd4a",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"@mdxeditor/editor": {
|
||||||
|
"src": "../../../node_modules/@mdxeditor/editor/dist/index.js",
|
||||||
|
"file": "@mdxeditor_editor.js",
|
||||||
|
"fileHash": "bbd2d0d4",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"is-mobile": {
|
||||||
|
"src": "../../../node_modules/is-mobile/index.js",
|
||||||
|
"file": "is-mobile.js",
|
||||||
|
"fileHash": "21cc08f8",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"mime-types": {
|
||||||
|
"src": "../../../node_modules/mime-types/index.js",
|
||||||
|
"file": "mime-types.js",
|
||||||
|
"fileHash": "253a3c63",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-datasheet-grid": {
|
||||||
|
"src": "../../../node_modules/react-datasheet-grid/dist/index.js",
|
||||||
|
"file": "react-datasheet-grid.js",
|
||||||
|
"fileHash": "75b75029",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-doc-viewer": {
|
||||||
|
"src": "../../../node_modules/react-doc-viewer/build/index.js",
|
||||||
|
"file": "react-doc-viewer.js",
|
||||||
|
"fileHash": "628afa24",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react-dom/client": {
|
||||||
|
"src": "../../../node_modules/react-dom/client.js",
|
||||||
|
"file": "react-dom_client.js",
|
||||||
|
"fileHash": "54ad48b4",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-fast-marquee": {
|
||||||
|
"src": "../../../node_modules/react-fast-marquee/dist/index.js",
|
||||||
|
"file": "react-fast-marquee.js",
|
||||||
|
"fileHash": "345d06a6",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-router-dom": {
|
||||||
|
"src": "../../../node_modules/react-router-dom/dist/index.mjs",
|
||||||
|
"file": "react-router-dom.js",
|
||||||
|
"fileHash": "a8903715",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react-select": {
|
||||||
|
"src": "../../../node_modules/react-select/dist/react-select.esm.js",
|
||||||
|
"file": "react-select.js",
|
||||||
|
"fileHash": "2be6ec33",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react-select/async": {
|
||||||
|
"src": "../../../node_modules/react-select/async/dist/react-select-async.esm.js",
|
||||||
|
"file": "react-select_async.js",
|
||||||
|
"fileHash": "29f1bf4e",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"srpv-js": {
|
||||||
|
"src": "../../../node_modules/srpv-js/dist/index.modern.js",
|
||||||
|
"file": "srpv-js.js",
|
||||||
|
"fileHash": "5ff9ee32",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"@theme/index": {
|
||||||
|
"src": "../../../node_modules/vitepress/dist/client/theme-default/index.js",
|
||||||
|
"file": "@theme_index.js",
|
||||||
|
"fileHash": "73442176",
|
||||||
|
"needsInterop": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chunks": {
|
||||||
|
"dist-XDUBFIJ5": {
|
||||||
|
"file": "dist-XDUBFIJ5.js"
|
||||||
|
},
|
||||||
|
"fs-3IMEAG3L": {
|
||||||
|
"file": "fs-3IMEAG3L.js"
|
||||||
|
},
|
||||||
|
"http-LCLH6MAM": {
|
||||||
|
"file": "http-LCLH6MAM.js"
|
||||||
|
},
|
||||||
|
"https-5ILD5SNG": {
|
||||||
|
"file": "https-5ILD5SNG.js"
|
||||||
|
},
|
||||||
|
"url-JJMYEOXW": {
|
||||||
|
"file": "url-JJMYEOXW.js"
|
||||||
|
},
|
||||||
|
"vbscript-H7QYOJIT": {
|
||||||
|
"file": "vbscript-H7QYOJIT.js"
|
||||||
|
},
|
||||||
|
"velocity-2IYVT5XZ": {
|
||||||
|
"file": "velocity-2IYVT5XZ.js"
|
||||||
|
},
|
||||||
|
"vhdl-MD3HHMP2": {
|
||||||
|
"file": "vhdl-MD3HHMP2.js"
|
||||||
|
},
|
||||||
|
"xquery-ZHEFKNCQ": {
|
||||||
|
"file": "xquery-ZHEFKNCQ.js"
|
||||||
|
},
|
||||||
|
"yacas-BYZTBFCU": {
|
||||||
|
"file": "yacas-BYZTBFCU.js"
|
||||||
|
},
|
||||||
|
"z80-6T62SBDK": {
|
||||||
|
"file": "z80-6T62SBDK.js"
|
||||||
|
},
|
||||||
|
"mscgen-72HKPNOL": {
|
||||||
|
"file": "mscgen-72HKPNOL.js"
|
||||||
|
},
|
||||||
|
"dist-RKB2JOFF": {
|
||||||
|
"file": "dist-RKB2JOFF.js"
|
||||||
|
},
|
||||||
|
"tiki-YRGGOZCH": {
|
||||||
|
"file": "tiki-YRGGOZCH.js"
|
||||||
|
},
|
||||||
|
"toml-YQ6IP2HP": {
|
||||||
|
"file": "toml-YQ6IP2HP.js"
|
||||||
|
},
|
||||||
|
"troff-O27WTREI": {
|
||||||
|
"file": "troff-O27WTREI.js"
|
||||||
|
},
|
||||||
|
"ttcn-OYD7R33H": {
|
||||||
|
"file": "ttcn-OYD7R33H.js"
|
||||||
|
},
|
||||||
|
"ttcn-cfg-DDAO2MGI": {
|
||||||
|
"file": "ttcn-cfg-DDAO2MGI.js"
|
||||||
|
},
|
||||||
|
"turtle-QQJUI3OF": {
|
||||||
|
"file": "turtle-QQJUI3OF.js"
|
||||||
|
},
|
||||||
|
"webidl-SUP53OGG": {
|
||||||
|
"file": "webidl-SUP53OGG.js"
|
||||||
|
},
|
||||||
|
"vb-NWKV3JKQ": {
|
||||||
|
"file": "vb-NWKV3JKQ.js"
|
||||||
|
},
|
||||||
|
"spreadsheet-KBFALYWI": {
|
||||||
|
"file": "spreadsheet-KBFALYWI.js"
|
||||||
|
},
|
||||||
|
"stylus-TMWY2RQX": {
|
||||||
|
"file": "stylus-TMWY2RQX.js"
|
||||||
|
},
|
||||||
|
"swift-EDDE667L": {
|
||||||
|
"file": "swift-EDDE667L.js"
|
||||||
|
},
|
||||||
|
"stex-L4IB44PL": {
|
||||||
|
"file": "stex-L4IB44PL.js"
|
||||||
|
},
|
||||||
|
"verilog-GZ2EPD6S": {
|
||||||
|
"file": "verilog-GZ2EPD6S.js"
|
||||||
|
},
|
||||||
|
"tcl-6IOST7R4": {
|
||||||
|
"file": "tcl-6IOST7R4.js"
|
||||||
|
},
|
||||||
|
"textile-B4UIFATV": {
|
||||||
|
"file": "textile-B4UIFATV.js"
|
||||||
|
},
|
||||||
|
"tiddlywiki-UUZ7SU2S": {
|
||||||
|
"file": "tiddlywiki-UUZ7SU2S.js"
|
||||||
|
},
|
||||||
|
"ruby-PRVWXQR2": {
|
||||||
|
"file": "ruby-PRVWXQR2.js"
|
||||||
|
},
|
||||||
|
"sas-SICXWWVS": {
|
||||||
|
"file": "sas-SICXWWVS.js"
|
||||||
|
},
|
||||||
|
"scheme-W6JRDMGN": {
|
||||||
|
"file": "scheme-W6JRDMGN.js"
|
||||||
|
},
|
||||||
|
"shell-WUXA3R5N": {
|
||||||
|
"file": "shell-WUXA3R5N.js"
|
||||||
|
},
|
||||||
|
"sieve-M34OJIDC": {
|
||||||
|
"file": "sieve-M34OJIDC.js"
|
||||||
|
},
|
||||||
|
"smalltalk-5OSTZKIA": {
|
||||||
|
"file": "smalltalk-5OSTZKIA.js"
|
||||||
|
},
|
||||||
|
"solr-3YDWC2JY": {
|
||||||
|
"file": "solr-3YDWC2JY.js"
|
||||||
|
},
|
||||||
|
"sparql-RY3R6HJI": {
|
||||||
|
"file": "sparql-RY3R6HJI.js"
|
||||||
|
},
|
||||||
|
"powershell-ELXREJLB": {
|
||||||
|
"file": "powershell-ELXREJLB.js"
|
||||||
|
},
|
||||||
|
"properties-24KREHX7": {
|
||||||
|
"file": "properties-24KREHX7.js"
|
||||||
|
},
|
||||||
|
"protobuf-HTE6HWSM": {
|
||||||
|
"file": "protobuf-HTE6HWSM.js"
|
||||||
|
},
|
||||||
|
"pug-3OQFIHR7": {
|
||||||
|
"file": "pug-3OQFIHR7.js"
|
||||||
|
},
|
||||||
|
"puppet-PGAYADYE": {
|
||||||
|
"file": "puppet-PGAYADYE.js"
|
||||||
|
},
|
||||||
|
"q-S3Z3GDO7": {
|
||||||
|
"file": "q-S3Z3GDO7.js"
|
||||||
|
},
|
||||||
|
"r-77SX2YMI": {
|
||||||
|
"file": "r-77SX2YMI.js"
|
||||||
|
},
|
||||||
|
"rpm-KCJFDNPL": {
|
||||||
|
"file": "rpm-KCJFDNPL.js"
|
||||||
|
},
|
||||||
|
"nginx-XQFDNAAM": {
|
||||||
|
"file": "nginx-XQFDNAAM.js"
|
||||||
|
},
|
||||||
|
"nsis-KB2EH5W3": {
|
||||||
|
"file": "nsis-KB2EH5W3.js"
|
||||||
|
},
|
||||||
|
"ntriples-5J2W2EFB": {
|
||||||
|
"file": "ntriples-5J2W2EFB.js"
|
||||||
|
},
|
||||||
|
"octave-U2FGSWKD": {
|
||||||
|
"file": "octave-U2FGSWKD.js"
|
||||||
|
},
|
||||||
|
"oz-VRBWD2RA": {
|
||||||
|
"file": "oz-VRBWD2RA.js"
|
||||||
|
},
|
||||||
|
"pascal-U2FWGOSJ": {
|
||||||
|
"file": "pascal-U2FWGOSJ.js"
|
||||||
|
},
|
||||||
|
"perl-PWUBN7ZI": {
|
||||||
|
"file": "perl-PWUBN7ZI.js"
|
||||||
|
},
|
||||||
|
"pig-KZCP64U5": {
|
||||||
|
"file": "pig-KZCP64U5.js"
|
||||||
|
},
|
||||||
|
"julia-SCCZKLSQ": {
|
||||||
|
"file": "julia-SCCZKLSQ.js"
|
||||||
|
},
|
||||||
|
"livescript-4UZGRSXD": {
|
||||||
|
"file": "livescript-4UZGRSXD.js"
|
||||||
|
},
|
||||||
|
"lua-VKTRYM36": {
|
||||||
|
"file": "lua-VKTRYM36.js"
|
||||||
|
},
|
||||||
|
"mirc-6EJ7CX6I": {
|
||||||
|
"file": "mirc-6EJ7CX6I.js"
|
||||||
|
},
|
||||||
|
"mathematica-QDIPMMSD": {
|
||||||
|
"file": "mathematica-QDIPMMSD.js"
|
||||||
|
},
|
||||||
|
"modelica-P4I4D6XK": {
|
||||||
|
"file": "modelica-P4I4D6XK.js"
|
||||||
|
},
|
||||||
|
"mumps-V6KSSSKL": {
|
||||||
|
"file": "mumps-V6KSSSKL.js"
|
||||||
|
},
|
||||||
|
"mbox-LU2DVJSS": {
|
||||||
|
"file": "mbox-LU2DVJSS.js"
|
||||||
|
},
|
||||||
|
"gherkin-LIUMC5XO": {
|
||||||
|
"file": "gherkin-LIUMC5XO.js"
|
||||||
|
},
|
||||||
|
"groovy-M72VR4NA": {
|
||||||
|
"file": "groovy-M72VR4NA.js"
|
||||||
|
},
|
||||||
|
"haskell-DHSJW7WV": {
|
||||||
|
"file": "haskell-DHSJW7WV.js"
|
||||||
|
},
|
||||||
|
"haxe-G7HDX6D5": {
|
||||||
|
"file": "haxe-G7HDX6D5.js"
|
||||||
|
},
|
||||||
|
"http-NKFDI2RX": {
|
||||||
|
"file": "http-NKFDI2RX.js"
|
||||||
|
},
|
||||||
|
"idl-UEVXGO67": {
|
||||||
|
"file": "idl-UEVXGO67.js"
|
||||||
|
},
|
||||||
|
"javascript-ALQT64DS": {
|
||||||
|
"file": "javascript-ALQT64DS.js"
|
||||||
|
},
|
||||||
|
"chunk-WDORMSBC": {
|
||||||
|
"file": "chunk-WDORMSBC.js"
|
||||||
|
},
|
||||||
|
"jinja2-K4VCQ5BM": {
|
||||||
|
"file": "jinja2-K4VCQ5BM.js"
|
||||||
|
},
|
||||||
|
"erlang-VGKF672V": {
|
||||||
|
"file": "erlang-VGKF672V.js"
|
||||||
|
},
|
||||||
|
"sql-6ZATZTHF": {
|
||||||
|
"file": "sql-6ZATZTHF.js"
|
||||||
|
},
|
||||||
|
"factor-TCLPPPZJ": {
|
||||||
|
"file": "factor-TCLPPPZJ.js"
|
||||||
|
},
|
||||||
|
"fcl-I4P56ERN": {
|
||||||
|
"file": "fcl-I4P56ERN.js"
|
||||||
|
},
|
||||||
|
"forth-6NKAK7IJ": {
|
||||||
|
"file": "forth-6NKAK7IJ.js"
|
||||||
|
},
|
||||||
|
"fortran-VS3D62YB": {
|
||||||
|
"file": "fortran-VS3D62YB.js"
|
||||||
|
},
|
||||||
|
"mllike-2G7JECAA": {
|
||||||
|
"file": "mllike-2G7JECAA.js"
|
||||||
|
},
|
||||||
|
"gas-KIIIS36D": {
|
||||||
|
"file": "gas-KIIIS36D.js"
|
||||||
|
},
|
||||||
|
"diff-H7NFZQHR": {
|
||||||
|
"file": "diff-H7NFZQHR.js"
|
||||||
|
},
|
||||||
|
"dockerfile-4C7IR73S": {
|
||||||
|
"file": "dockerfile-4C7IR73S.js"
|
||||||
|
},
|
||||||
|
"chunk-LLCG3GAF": {
|
||||||
|
"file": "chunk-LLCG3GAF.js"
|
||||||
|
},
|
||||||
|
"dtd-EWFJMW2P": {
|
||||||
|
"file": "dtd-EWFJMW2P.js"
|
||||||
|
},
|
||||||
|
"dylan-4HYZE2HI": {
|
||||||
|
"file": "dylan-4HYZE2HI.js"
|
||||||
|
},
|
||||||
|
"ebnf-VZGL6EFZ": {
|
||||||
|
"file": "ebnf-VZGL6EFZ.js"
|
||||||
|
},
|
||||||
|
"ecl-HOCZ3LGV": {
|
||||||
|
"file": "ecl-HOCZ3LGV.js"
|
||||||
|
},
|
||||||
|
"eiffel-VNJIY6L3": {
|
||||||
|
"file": "eiffel-VNJIY6L3.js"
|
||||||
|
},
|
||||||
|
"elm-AKTK2SMS": {
|
||||||
|
"file": "elm-AKTK2SMS.js"
|
||||||
|
},
|
||||||
|
"css-SVT3IEIS": {
|
||||||
|
"file": "css-SVT3IEIS.js"
|
||||||
|
},
|
||||||
|
"cmake-B44XYXTV": {
|
||||||
|
"file": "cmake-B44XYXTV.js"
|
||||||
|
},
|
||||||
|
"coffeescript-64RSSDJV": {
|
||||||
|
"file": "coffeescript-64RSSDJV.js"
|
||||||
|
},
|
||||||
|
"commonlisp-FHFDAPRS": {
|
||||||
|
"file": "commonlisp-FHFDAPRS.js"
|
||||||
|
},
|
||||||
|
"cypher-AYUTXOLY": {
|
||||||
|
"file": "cypher-AYUTXOLY.js"
|
||||||
|
},
|
||||||
|
"python-K3ORBWSM": {
|
||||||
|
"file": "python-K3ORBWSM.js"
|
||||||
|
},
|
||||||
|
"crystal-ORS3MCCJ": {
|
||||||
|
"file": "crystal-ORS3MCCJ.js"
|
||||||
|
},
|
||||||
|
"d-W7FTMYZB": {
|
||||||
|
"file": "d-W7FTMYZB.js"
|
||||||
|
},
|
||||||
|
"apl-ZWMB55DA": {
|
||||||
|
"file": "apl-ZWMB55DA.js"
|
||||||
|
},
|
||||||
|
"asciiarmor-67WC52OX": {
|
||||||
|
"file": "asciiarmor-67WC52OX.js"
|
||||||
|
},
|
||||||
|
"asn1-Q55IUX3W": {
|
||||||
|
"file": "asn1-Q55IUX3W.js"
|
||||||
|
},
|
||||||
|
"asterisk-UDDB4THN": {
|
||||||
|
"file": "asterisk-UDDB4THN.js"
|
||||||
|
},
|
||||||
|
"brainfuck-2K3RTKTU": {
|
||||||
|
"file": "brainfuck-2K3RTKTU.js"
|
||||||
|
},
|
||||||
|
"cobol-YAW52ZKD": {
|
||||||
|
"file": "cobol-YAW52ZKD.js"
|
||||||
|
},
|
||||||
|
"clike-AMIGQXDG": {
|
||||||
|
"file": "clike-AMIGQXDG.js"
|
||||||
|
},
|
||||||
|
"clojure-UBACKFG7": {
|
||||||
|
"file": "clojure-UBACKFG7.js"
|
||||||
|
},
|
||||||
|
"dist-45OUZ3MH": {
|
||||||
|
"file": "dist-45OUZ3MH.js"
|
||||||
|
},
|
||||||
|
"dist-7XUHZWWM": {
|
||||||
|
"file": "dist-7XUHZWWM.js"
|
||||||
|
},
|
||||||
|
"dist-EODQYXY2": {
|
||||||
|
"file": "dist-EODQYXY2.js"
|
||||||
|
},
|
||||||
|
"dist-SXVQDQ32": {
|
||||||
|
"file": "dist-SXVQDQ32.js"
|
||||||
|
},
|
||||||
|
"dist-D3KH2DEH": {
|
||||||
|
"file": "dist-D3KH2DEH.js"
|
||||||
|
},
|
||||||
|
"dist-2FIPZMIA": {
|
||||||
|
"file": "dist-2FIPZMIA.js"
|
||||||
|
},
|
||||||
|
"dist-AEQG224Z": {
|
||||||
|
"file": "dist-AEQG224Z.js"
|
||||||
|
},
|
||||||
|
"dist-JAJDB4XA": {
|
||||||
|
"file": "dist-JAJDB4XA.js"
|
||||||
|
},
|
||||||
|
"dist-R7RM2S7T": {
|
||||||
|
"file": "dist-R7RM2S7T.js"
|
||||||
|
},
|
||||||
|
"dist-KBCR5RZ6": {
|
||||||
|
"file": "dist-KBCR5RZ6.js"
|
||||||
|
},
|
||||||
|
"dist-2TFJJJYU": {
|
||||||
|
"file": "dist-2TFJJJYU.js"
|
||||||
|
},
|
||||||
|
"dist-UGCSVMXY": {
|
||||||
|
"file": "dist-UGCSVMXY.js"
|
||||||
|
},
|
||||||
|
"dist-PUL6BDZ3": {
|
||||||
|
"file": "dist-PUL6BDZ3.js"
|
||||||
|
},
|
||||||
|
"dist-3Z52KZM7": {
|
||||||
|
"file": "dist-3Z52KZM7.js"
|
||||||
|
},
|
||||||
|
"dist-25HAQNSB": {
|
||||||
|
"file": "dist-25HAQNSB.js"
|
||||||
|
},
|
||||||
|
"dist-M6QMBXEE": {
|
||||||
|
"file": "dist-M6QMBXEE.js"
|
||||||
|
},
|
||||||
|
"chunk-4RL6IR4I": {
|
||||||
|
"file": "chunk-4RL6IR4I.js"
|
||||||
|
},
|
||||||
|
"chunk-MHJDNTSG": {
|
||||||
|
"file": "chunk-MHJDNTSG.js"
|
||||||
|
},
|
||||||
|
"chunk-N6I6HNZ2": {
|
||||||
|
"file": "chunk-N6I6HNZ2.js"
|
||||||
|
},
|
||||||
|
"chunk-W3TQBGP4": {
|
||||||
|
"file": "chunk-W3TQBGP4.js"
|
||||||
|
},
|
||||||
|
"node-5WWEALVT": {
|
||||||
|
"file": "node-5WWEALVT.js"
|
||||||
|
},
|
||||||
|
"index-599aeaf7-M2KZ3NMX": {
|
||||||
|
"file": "index-599aeaf7-M2KZ3NMX.js"
|
||||||
|
},
|
||||||
|
"chunk-2DYCD4DK": {
|
||||||
|
"file": "chunk-2DYCD4DK.js"
|
||||||
|
},
|
||||||
|
"runtime-EXEICEE3": {
|
||||||
|
"file": "runtime-EXEICEE3.js"
|
||||||
|
},
|
||||||
|
"chunk-HCAY5AHM": {
|
||||||
|
"file": "chunk-HCAY5AHM.js"
|
||||||
|
},
|
||||||
|
"dist-YBOEZHJ4": {
|
||||||
|
"file": "dist-YBOEZHJ4.js"
|
||||||
|
},
|
||||||
|
"dist-MGBA266D": {
|
||||||
|
"file": "dist-MGBA266D.js"
|
||||||
|
},
|
||||||
|
"chunk-DEC57D5V": {
|
||||||
|
"file": "chunk-DEC57D5V.js"
|
||||||
|
},
|
||||||
|
"chunk-FFYAK5JG": {
|
||||||
|
"file": "chunk-FFYAK5JG.js"
|
||||||
|
},
|
||||||
|
"chunk-6F5JWMBQ": {
|
||||||
|
"file": "chunk-6F5JWMBQ.js"
|
||||||
|
},
|
||||||
|
"chunk-VJWGEPT5": {
|
||||||
|
"file": "chunk-VJWGEPT5.js"
|
||||||
|
},
|
||||||
|
"chunk-ZFN2AXL3": {
|
||||||
|
"file": "chunk-ZFN2AXL3.js"
|
||||||
|
},
|
||||||
|
"chunk-XIFAY33O": {
|
||||||
|
"file": "chunk-XIFAY33O.js"
|
||||||
|
},
|
||||||
|
"chunk-CQSCQVZH": {
|
||||||
|
"file": "chunk-CQSCQVZH.js"
|
||||||
|
},
|
||||||
|
"chunk-WS77TBA6": {
|
||||||
|
"file": "chunk-WS77TBA6.js"
|
||||||
|
},
|
||||||
|
"chunk-CQODXWBO": {
|
||||||
|
"file": "chunk-CQODXWBO.js"
|
||||||
|
},
|
||||||
|
"chunk-5VHTIHW6": {
|
||||||
|
"file": "chunk-5VHTIHW6.js"
|
||||||
|
},
|
||||||
|
"chunk-HNY5L3CQ": {
|
||||||
|
"file": "chunk-HNY5L3CQ.js"
|
||||||
|
},
|
||||||
|
"chunk-GSKJAQL2": {
|
||||||
|
"file": "chunk-GSKJAQL2.js"
|
||||||
|
},
|
||||||
|
"chunk-UVSV26GJ": {
|
||||||
|
"file": "chunk-UVSV26GJ.js"
|
||||||
|
},
|
||||||
|
"chunk-EAXHGRGE": {
|
||||||
|
"file": "chunk-EAXHGRGE.js"
|
||||||
|
},
|
||||||
|
"chunk-H5MQ6BND": {
|
||||||
|
"file": "chunk-H5MQ6BND.js"
|
||||||
|
},
|
||||||
|
"chunk-EVB5MFRE": {
|
||||||
|
"file": "chunk-EVB5MFRE.js"
|
||||||
|
},
|
||||||
|
"chunk-C5IA4YUH": {
|
||||||
|
"file": "chunk-C5IA4YUH.js"
|
||||||
|
},
|
||||||
|
"chunk-KZRXRAEA": {
|
||||||
|
"file": "chunk-KZRXRAEA.js"
|
||||||
|
},
|
||||||
|
"chunk-OL46QLBJ": {
|
||||||
|
"file": "chunk-OL46QLBJ.js"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+144
@@ -0,0 +1,144 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/apl.js
|
||||||
|
var builtInFuncs = {
|
||||||
|
"+": ["conjugate", "add"],
|
||||||
|
"−": ["negate", "subtract"],
|
||||||
|
"×": ["signOf", "multiply"],
|
||||||
|
"÷": ["reciprocal", "divide"],
|
||||||
|
"⌈": ["ceiling", "greaterOf"],
|
||||||
|
"⌊": ["floor", "lesserOf"],
|
||||||
|
"∣": ["absolute", "residue"],
|
||||||
|
"⍳": ["indexGenerate", "indexOf"],
|
||||||
|
"?": ["roll", "deal"],
|
||||||
|
"⋆": ["exponentiate", "toThePowerOf"],
|
||||||
|
"⍟": ["naturalLog", "logToTheBase"],
|
||||||
|
"○": ["piTimes", "circularFuncs"],
|
||||||
|
"!": ["factorial", "binomial"],
|
||||||
|
"⌹": ["matrixInverse", "matrixDivide"],
|
||||||
|
"<": [null, "lessThan"],
|
||||||
|
"≤": [null, "lessThanOrEqual"],
|
||||||
|
"=": [null, "equals"],
|
||||||
|
">": [null, "greaterThan"],
|
||||||
|
"≥": [null, "greaterThanOrEqual"],
|
||||||
|
"≠": [null, "notEqual"],
|
||||||
|
"≡": ["depth", "match"],
|
||||||
|
"≢": [null, "notMatch"],
|
||||||
|
"∈": ["enlist", "membership"],
|
||||||
|
"⍷": [null, "find"],
|
||||||
|
"∪": ["unique", "union"],
|
||||||
|
"∩": [null, "intersection"],
|
||||||
|
"∼": ["not", "without"],
|
||||||
|
"∨": [null, "or"],
|
||||||
|
"∧": [null, "and"],
|
||||||
|
"⍱": [null, "nor"],
|
||||||
|
"⍲": [null, "nand"],
|
||||||
|
"⍴": ["shapeOf", "reshape"],
|
||||||
|
",": ["ravel", "catenate"],
|
||||||
|
"⍪": [null, "firstAxisCatenate"],
|
||||||
|
"⌽": ["reverse", "rotate"],
|
||||||
|
"⊖": ["axis1Reverse", "axis1Rotate"],
|
||||||
|
"⍉": ["transpose", null],
|
||||||
|
"↑": ["first", "take"],
|
||||||
|
"↓": [null, "drop"],
|
||||||
|
"⊂": ["enclose", "partitionWithAxis"],
|
||||||
|
"⊃": ["diclose", "pick"],
|
||||||
|
"⌷": [null, "index"],
|
||||||
|
"⍋": ["gradeUp", null],
|
||||||
|
"⍒": ["gradeDown", null],
|
||||||
|
"⊤": ["encode", null],
|
||||||
|
"⊥": ["decode", null],
|
||||||
|
"⍕": ["format", "formatByExample"],
|
||||||
|
"⍎": ["execute", null],
|
||||||
|
"⊣": ["stop", "left"],
|
||||||
|
"⊢": ["pass", "right"]
|
||||||
|
};
|
||||||
|
var isOperator = /[\.\/⌿⍀¨⍣]/;
|
||||||
|
var isNiladic = /⍬/;
|
||||||
|
var isFunction = /[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/;
|
||||||
|
var isArrow = /←/;
|
||||||
|
var isComment = /[⍝#].*$/;
|
||||||
|
var stringEater = function(type) {
|
||||||
|
var prev;
|
||||||
|
prev = false;
|
||||||
|
return function(c) {
|
||||||
|
prev = c;
|
||||||
|
if (c === type) {
|
||||||
|
return prev === "\\";
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var apl = {
|
||||||
|
name: "apl",
|
||||||
|
startState: function() {
|
||||||
|
return {
|
||||||
|
prev: false,
|
||||||
|
func: false,
|
||||||
|
op: false,
|
||||||
|
string: false,
|
||||||
|
escape: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
var ch;
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
ch = stream.next();
|
||||||
|
if (ch === '"' || ch === "'") {
|
||||||
|
stream.eatWhile(stringEater(ch));
|
||||||
|
stream.next();
|
||||||
|
state.prev = true;
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
if (/[\[{\(]/.test(ch)) {
|
||||||
|
state.prev = false;
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (/[\]}\)]/.test(ch)) {
|
||||||
|
state.prev = true;
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (isNiladic.test(ch)) {
|
||||||
|
state.prev = false;
|
||||||
|
return "atom";
|
||||||
|
}
|
||||||
|
if (/[¯\d]/.test(ch)) {
|
||||||
|
if (state.func) {
|
||||||
|
state.func = false;
|
||||||
|
state.prev = false;
|
||||||
|
} else {
|
||||||
|
state.prev = true;
|
||||||
|
}
|
||||||
|
stream.eatWhile(/[\w\.]/);
|
||||||
|
return "number";
|
||||||
|
}
|
||||||
|
if (isOperator.test(ch)) {
|
||||||
|
return "operator";
|
||||||
|
}
|
||||||
|
if (isArrow.test(ch)) {
|
||||||
|
return "operator";
|
||||||
|
}
|
||||||
|
if (isFunction.test(ch)) {
|
||||||
|
state.func = true;
|
||||||
|
state.prev = false;
|
||||||
|
return builtInFuncs[ch] ? "variableName.function.standard" : "variableName.function";
|
||||||
|
}
|
||||||
|
if (isComment.test(ch)) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
if (ch === "∘" && stream.peek() === ".") {
|
||||||
|
stream.next();
|
||||||
|
return "variableName.function";
|
||||||
|
}
|
||||||
|
stream.eatWhile(/[\w\$_]/);
|
||||||
|
state.prev = true;
|
||||||
|
return "keyword";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
apl
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=apl-ZWMB55DA.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/@codemirror/legacy-modes/mode/apl.js"],
|
||||||
|
"sourcesContent": ["var builtInFuncs = {\n \"+\": [\"conjugate\", \"add\"],\n \"−\": [\"negate\", \"subtract\"],\n \"×\": [\"signOf\", \"multiply\"],\n \"÷\": [\"reciprocal\", \"divide\"],\n \"⌈\": [\"ceiling\", \"greaterOf\"],\n \"⌊\": [\"floor\", \"lesserOf\"],\n \"∣\": [\"absolute\", \"residue\"],\n \"⍳\": [\"indexGenerate\", \"indexOf\"],\n \"?\": [\"roll\", \"deal\"],\n \"⋆\": [\"exponentiate\", \"toThePowerOf\"],\n \"⍟\": [\"naturalLog\", \"logToTheBase\"],\n \"○\": [\"piTimes\", \"circularFuncs\"],\n \"!\": [\"factorial\", \"binomial\"],\n \"⌹\": [\"matrixInverse\", \"matrixDivide\"],\n \"<\": [null, \"lessThan\"],\n \"≤\": [null, \"lessThanOrEqual\"],\n \"=\": [null, \"equals\"],\n \">\": [null, \"greaterThan\"],\n \"≥\": [null, \"greaterThanOrEqual\"],\n \"≠\": [null, \"notEqual\"],\n \"≡\": [\"depth\", \"match\"],\n \"≢\": [null, \"notMatch\"],\n \"∈\": [\"enlist\", \"membership\"],\n \"⍷\": [null, \"find\"],\n \"∪\": [\"unique\", \"union\"],\n \"∩\": [null, \"intersection\"],\n \"∼\": [\"not\", \"without\"],\n \"∨\": [null, \"or\"],\n \"∧\": [null, \"and\"],\n \"⍱\": [null, \"nor\"],\n \"⍲\": [null, \"nand\"],\n \"⍴\": [\"shapeOf\", \"reshape\"],\n \",\": [\"ravel\", \"catenate\"],\n \"⍪\": [null, \"firstAxisCatenate\"],\n \"⌽\": [\"reverse\", \"rotate\"],\n \"⊖\": [\"axis1Reverse\", \"axis1Rotate\"],\n \"⍉\": [\"transpose\", null],\n \"↑\": [\"first\", \"take\"],\n \"↓\": [null, \"drop\"],\n \"⊂\": [\"enclose\", \"partitionWithAxis\"],\n \"⊃\": [\"diclose\", \"pick\"],\n \"⌷\": [null, \"index\"],\n \"⍋\": [\"gradeUp\", null],\n \"⍒\": [\"gradeDown\", null],\n \"⊤\": [\"encode\", null],\n \"⊥\": [\"decode\", null],\n \"⍕\": [\"format\", \"formatByExample\"],\n \"⍎\": [\"execute\", null],\n \"⊣\": [\"stop\", \"left\"],\n \"⊢\": [\"pass\", \"right\"]\n};\n\nvar isOperator = /[\\.\\/⌿⍀¨⍣]/;\nvar isNiladic = /⍬/;\nvar isFunction = /[\\+−×÷⌈⌊∣⍳\\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/;\nvar isArrow = /←/;\nvar isComment = /[⍝#].*$/;\n\nvar stringEater = function(type) {\n var prev;\n prev = false;\n return function(c) {\n prev = c;\n if (c === type) {\n return prev === \"\\\\\";\n }\n return true;\n };\n};\n\nexport const apl = {\n name: \"apl\",\n startState: function() {\n return {\n prev: false,\n func: false,\n op: false,\n string: false,\n escape: false\n };\n },\n token: function(stream, state) {\n var ch;\n if (stream.eatSpace()) {\n return null;\n }\n ch = stream.next();\n if (ch === '\"' || ch === \"'\") {\n stream.eatWhile(stringEater(ch));\n stream.next();\n state.prev = true;\n return \"string\";\n }\n if (/[\\[{\\(]/.test(ch)) {\n state.prev = false;\n return null;\n }\n if (/[\\]}\\)]/.test(ch)) {\n state.prev = true;\n return null;\n }\n if (isNiladic.test(ch)) {\n state.prev = false;\n return \"atom\";\n }\n if (/[¯\\d]/.test(ch)) {\n if (state.func) {\n state.func = false;\n state.prev = false;\n } else {\n state.prev = true;\n }\n stream.eatWhile(/[\\w\\.]/);\n return \"number\";\n }\n if (isOperator.test(ch)) {\n return \"operator\"\n }\n if (isArrow.test(ch)) {\n return \"operator\";\n }\n if (isFunction.test(ch)) {\n state.func = true;\n state.prev = false;\n return builtInFuncs[ch] ? \"variableName.function.standard\" : \"variableName.function\"\n }\n if (isComment.test(ch)) {\n stream.skipToEnd();\n return \"comment\";\n }\n if (ch === \"∘\" && stream.peek() === \".\") {\n stream.next();\n return \"variableName.function\";\n }\n stream.eatWhile(/[\\w\\$_]/);\n state.prev = true;\n return \"keyword\";\n }\n}\n"],
|
||||||
|
"mappings": ";;;AAAA,IAAI,eAAe;AAAA,EACjB,KAAK,CAAC,aAAa,KAAK;AAAA,EACxB,KAAK,CAAC,UAAU,UAAU;AAAA,EAC1B,KAAK,CAAC,UAAU,UAAU;AAAA,EAC1B,KAAK,CAAC,cAAc,QAAQ;AAAA,EAC5B,KAAK,CAAC,WAAW,WAAW;AAAA,EAC5B,KAAK,CAAC,SAAS,UAAU;AAAA,EACzB,KAAK,CAAC,YAAY,SAAS;AAAA,EAC3B,KAAK,CAAC,iBAAiB,SAAS;AAAA,EAChC,KAAK,CAAC,QAAQ,MAAM;AAAA,EACpB,KAAK,CAAC,gBAAgB,cAAc;AAAA,EACpC,KAAK,CAAC,cAAc,cAAc;AAAA,EAClC,KAAK,CAAC,WAAW,eAAe;AAAA,EAChC,KAAK,CAAC,aAAa,UAAU;AAAA,EAC7B,KAAK,CAAC,iBAAiB,cAAc;AAAA,EACrC,KAAK,CAAC,MAAM,UAAU;AAAA,EACtB,KAAK,CAAC,MAAM,iBAAiB;AAAA,EAC7B,KAAK,CAAC,MAAM,QAAQ;AAAA,EACpB,KAAK,CAAC,MAAM,aAAa;AAAA,EACzB,KAAK,CAAC,MAAM,oBAAoB;AAAA,EAChC,KAAK,CAAC,MAAM,UAAU;AAAA,EACtB,KAAK,CAAC,SAAS,OAAO;AAAA,EACtB,KAAK,CAAC,MAAM,UAAU;AAAA,EACtB,KAAK,CAAC,UAAU,YAAY;AAAA,EAC5B,KAAK,CAAC,MAAM,MAAM;AAAA,EAClB,KAAK,CAAC,UAAU,OAAO;AAAA,EACvB,KAAK,CAAC,MAAM,cAAc;AAAA,EAC1B,KAAK,CAAC,OAAO,SAAS;AAAA,EACtB,KAAK,CAAC,MAAM,IAAI;AAAA,EAChB,KAAK,CAAC,MAAM,KAAK;AAAA,EACjB,KAAK,CAAC,MAAM,KAAK;AAAA,EACjB,KAAK,CAAC,MAAM,MAAM;AAAA,EAClB,KAAK,CAAC,WAAW,SAAS;AAAA,EAC1B,KAAK,CAAC,SAAS,UAAU;AAAA,EACzB,KAAK,CAAC,MAAM,mBAAmB;AAAA,EAC/B,KAAK,CAAC,WAAW,QAAQ;AAAA,EACzB,KAAK,CAAC,gBAAgB,aAAa;AAAA,EACnC,KAAK,CAAC,aAAa,IAAI;AAAA,EACvB,KAAK,CAAC,SAAS,MAAM;AAAA,EACrB,KAAK,CAAC,MAAM,MAAM;AAAA,EAClB,KAAK,CAAC,WAAW,mBAAmB;AAAA,EACpC,KAAK,CAAC,WAAW,MAAM;AAAA,EACvB,KAAK,CAAC,MAAM,OAAO;AAAA,EACnB,KAAK,CAAC,WAAW,IAAI;AAAA,EACrB,KAAK,CAAC,aAAa,IAAI;AAAA,EACvB,KAAK,CAAC,UAAU,IAAI;AAAA,EACpB,KAAK,CAAC,UAAU,IAAI;AAAA,EACpB,KAAK,CAAC,UAAU,iBAAiB;AAAA,EACjC,KAAK,CAAC,WAAW,IAAI;AAAA,EACrB,KAAK,CAAC,QAAQ,MAAM;AAAA,EACpB,KAAK,CAAC,QAAQ,OAAO;AACvB;AAEA,IAAI,aAAa;AACjB,IAAI,YAAY;AAChB,IAAI,aAAa;AACjB,IAAI,UAAU;AACd,IAAI,YAAY;AAEhB,IAAI,cAAc,SAAS,MAAM;AAC/B,MAAI;AACJ,SAAO;AACP,SAAO,SAAS,GAAG;AACjB,WAAO;AACP,QAAI,MAAM,MAAM;AACd,aAAO,SAAS;AAAA,IAClB;AACA,WAAO;AAAA,EACT;AACF;AAEO,IAAM,MAAM;AAAA,EACjB,MAAM;AAAA,EACN,YAAY,WAAW;AACrB,WAAO;AAAA,MACL,MAAM;AAAA,MACN,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,QAAQ;AAAA,MACR,QAAQ;AAAA,IACV;AAAA,EACF;AAAA,EACA,OAAO,SAAS,QAAQ,OAAO;AAC7B,QAAI;AACJ,QAAI,OAAO,SAAS,GAAG;AACrB,aAAO;AAAA,IACT;AACA,SAAK,OAAO,KAAK;AACjB,QAAI,OAAO,OAAO,OAAO,KAAK;AAC5B,aAAO,SAAS,YAAY,EAAE,CAAC;AAC/B,aAAO,KAAK;AACZ,YAAM,OAAO;AACb,aAAO;AAAA,IACT;AACA,QAAI,UAAU,KAAK,EAAE,GAAG;AACtB,YAAM,OAAO;AACb,aAAO;AAAA,IACT;AACA,QAAI,UAAU,KAAK,EAAE,GAAG;AACtB,YAAM,OAAO;AACb,aAAO;AAAA,IACT;AACA,QAAI,UAAU,KAAK,EAAE,GAAG;AACtB,YAAM,OAAO;AACb,aAAO;AAAA,IACT;AACA,QAAI,QAAQ,KAAK,EAAE,GAAG;AACpB,UAAI,MAAM,MAAM;AACd,cAAM,OAAO;AACb,cAAM,OAAO;AAAA,MACf,OAAO;AACL,cAAM,OAAO;AAAA,MACf;AACA,aAAO,SAAS,QAAQ;AACxB,aAAO;AAAA,IACT;AACA,QAAI,WAAW,KAAK,EAAE,GAAG;AACvB,aAAO;AAAA,IACT;AACA,QAAI,QAAQ,KAAK,EAAE,GAAG;AACpB,aAAO;AAAA,IACT;AACA,QAAI,WAAW,KAAK,EAAE,GAAG;AACvB,YAAM,OAAO;AACb,YAAM,OAAO;AACb,aAAO,aAAa,EAAE,IAAI,mCAAmC;AAAA,IAC/D;AACA,QAAI,UAAU,KAAK,EAAE,GAAG;AACtB,aAAO,UAAU;AACjB,aAAO;AAAA,IACT;AACA,QAAI,OAAO,OAAO,OAAO,KAAK,MAAM,KAAK;AACvC,aAAO,KAAK;AACZ,aAAO;AAAA,IACT;AACA,WAAO,SAAS,SAAS;AACzB,UAAM,OAAO;AACb,WAAO;AAAA,EACT;AACF;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+60
@@ -0,0 +1,60 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/asciiarmor.js
|
||||||
|
function errorIfNotEmpty(stream) {
|
||||||
|
var nonWS = stream.match(/^\s*\S/);
|
||||||
|
stream.skipToEnd();
|
||||||
|
return nonWS ? "error" : null;
|
||||||
|
}
|
||||||
|
var asciiArmor = {
|
||||||
|
name: "asciiarmor",
|
||||||
|
token: function(stream, state) {
|
||||||
|
var m;
|
||||||
|
if (state.state == "top") {
|
||||||
|
if (stream.sol() && (m = stream.match(/^-----BEGIN (.*)?-----\s*$/))) {
|
||||||
|
state.state = "headers";
|
||||||
|
state.type = m[1];
|
||||||
|
return "tag";
|
||||||
|
}
|
||||||
|
return errorIfNotEmpty(stream);
|
||||||
|
} else if (state.state == "headers") {
|
||||||
|
if (stream.sol() && stream.match(/^\w+:/)) {
|
||||||
|
state.state = "header";
|
||||||
|
return "atom";
|
||||||
|
} else {
|
||||||
|
var result = errorIfNotEmpty(stream);
|
||||||
|
if (result) state.state = "body";
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
} else if (state.state == "header") {
|
||||||
|
stream.skipToEnd();
|
||||||
|
state.state = "headers";
|
||||||
|
return "string";
|
||||||
|
} else if (state.state == "body") {
|
||||||
|
if (stream.sol() && (m = stream.match(/^-----END (.*)?-----\s*$/))) {
|
||||||
|
if (m[1] != state.type) return "error";
|
||||||
|
state.state = "end";
|
||||||
|
return "tag";
|
||||||
|
} else {
|
||||||
|
if (stream.eatWhile(/[A-Za-z0-9+\/=]/)) {
|
||||||
|
return null;
|
||||||
|
} else {
|
||||||
|
stream.next();
|
||||||
|
return "error";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (state.state == "end") {
|
||||||
|
return errorIfNotEmpty(stream);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
blankLine: function(state) {
|
||||||
|
if (state.state == "headers") state.state = "body";
|
||||||
|
},
|
||||||
|
startState: function() {
|
||||||
|
return { state: "top", type: null };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
asciiArmor
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=asciiarmor-67WC52OX.js.map
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/@codemirror/legacy-modes/mode/asciiarmor.js"],
|
||||||
|
"sourcesContent": ["function errorIfNotEmpty(stream) {\n var nonWS = stream.match(/^\\s*\\S/);\n stream.skipToEnd();\n return nonWS ? \"error\" : null;\n}\n\nexport const asciiArmor = {\n name: \"asciiarmor\",\n token: function(stream, state) {\n var m;\n if (state.state == \"top\") {\n if (stream.sol() && (m = stream.match(/^-----BEGIN (.*)?-----\\s*$/))) {\n state.state = \"headers\";\n state.type = m[1];\n return \"tag\";\n }\n return errorIfNotEmpty(stream);\n } else if (state.state == \"headers\") {\n if (stream.sol() && stream.match(/^\\w+:/)) {\n state.state = \"header\";\n return \"atom\";\n } else {\n var result = errorIfNotEmpty(stream);\n if (result) state.state = \"body\";\n return result;\n }\n } else if (state.state == \"header\") {\n stream.skipToEnd();\n state.state = \"headers\";\n return \"string\";\n } else if (state.state == \"body\") {\n if (stream.sol() && (m = stream.match(/^-----END (.*)?-----\\s*$/))) {\n if (m[1] != state.type) return \"error\";\n state.state = \"end\";\n return \"tag\";\n } else {\n if (stream.eatWhile(/[A-Za-z0-9+\\/=]/)) {\n return null;\n } else {\n stream.next();\n return \"error\";\n }\n }\n } else if (state.state == \"end\") {\n return errorIfNotEmpty(stream);\n }\n },\n blankLine: function(state) {\n if (state.state == \"headers\") state.state = \"body\";\n },\n startState: function() {\n return {state: \"top\", type: null};\n }\n};\n"],
|
||||||
|
"mappings": ";;;AAAA,SAAS,gBAAgB,QAAQ;AAC/B,MAAI,QAAQ,OAAO,MAAM,QAAQ;AACjC,SAAO,UAAU;AACjB,SAAO,QAAQ,UAAU;AAC3B;AAEO,IAAM,aAAa;AAAA,EACxB,MAAM;AAAA,EACN,OAAO,SAAS,QAAQ,OAAO;AAC7B,QAAI;AACJ,QAAI,MAAM,SAAS,OAAO;AACxB,UAAI,OAAO,IAAI,MAAM,IAAI,OAAO,MAAM,4BAA4B,IAAI;AACpE,cAAM,QAAQ;AACd,cAAM,OAAO,EAAE,CAAC;AAChB,eAAO;AAAA,MACT;AACA,aAAO,gBAAgB,MAAM;AAAA,IAC/B,WAAW,MAAM,SAAS,WAAW;AACnC,UAAI,OAAO,IAAI,KAAK,OAAO,MAAM,OAAO,GAAG;AACzC,cAAM,QAAQ;AACd,eAAO;AAAA,MACT,OAAO;AACL,YAAI,SAAS,gBAAgB,MAAM;AACnC,YAAI,OAAQ,OAAM,QAAQ;AAC1B,eAAO;AAAA,MACT;AAAA,IACF,WAAW,MAAM,SAAS,UAAU;AAClC,aAAO,UAAU;AACjB,YAAM,QAAQ;AACd,aAAO;AAAA,IACT,WAAW,MAAM,SAAS,QAAQ;AAChC,UAAI,OAAO,IAAI,MAAM,IAAI,OAAO,MAAM,0BAA0B,IAAI;AAClE,YAAI,EAAE,CAAC,KAAK,MAAM,KAAM,QAAO;AAC/B,cAAM,QAAQ;AACd,eAAO;AAAA,MACT,OAAO;AACL,YAAI,OAAO,SAAS,iBAAiB,GAAG;AACtC,iBAAO;AAAA,QACT,OAAO;AACL,iBAAO,KAAK;AACZ,iBAAO;AAAA,QACT;AAAA,MACF;AAAA,IACF,WAAW,MAAM,SAAS,OAAO;AAC/B,aAAO,gBAAgB,MAAM;AAAA,IAC/B;AAAA,EACF;AAAA,EACA,WAAW,SAAS,OAAO;AACzB,QAAI,MAAM,SAAS,UAAW,OAAM,QAAQ;AAAA,EAC9C;AAAA,EACA,YAAY,WAAW;AACrB,WAAO,EAAC,OAAO,OAAO,MAAM,KAAI;AAAA,EAClC;AACF;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+146
@@ -0,0 +1,146 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/asn1.js
|
||||||
|
function words(str) {
|
||||||
|
var obj = {}, words2 = str.split(" ");
|
||||||
|
for (var i = 0; i < words2.length; ++i) obj[words2[i]] = true;
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
var defaults = {
|
||||||
|
keywords: words("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),
|
||||||
|
cmipVerbs: words("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),
|
||||||
|
compareTypes: words("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),
|
||||||
|
status: words("current deprecated mandatory obsolete"),
|
||||||
|
tags: words("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),
|
||||||
|
storage: words("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),
|
||||||
|
modifier: words("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),
|
||||||
|
accessTypes: words("not-accessible accessible-for-notify read-only read-create read-write"),
|
||||||
|
multiLineStrings: true
|
||||||
|
};
|
||||||
|
function asn1(parserConfig) {
|
||||||
|
var keywords = parserConfig.keywords || defaults.keywords, cmipVerbs = parserConfig.cmipVerbs || defaults.cmipVerbs, compareTypes = parserConfig.compareTypes || defaults.compareTypes, status = parserConfig.status || defaults.status, tags = parserConfig.tags || defaults.tags, storage = parserConfig.storage || defaults.storage, modifier = parserConfig.modifier || defaults.modifier, accessTypes = parserConfig.accessTypes || defaults.accessTypes, multiLineStrings = parserConfig.multiLineStrings || defaults.multiLineStrings, indentStatements = parserConfig.indentStatements !== false;
|
||||||
|
var isOperatorChar = /[\|\^]/;
|
||||||
|
var curPunc;
|
||||||
|
function tokenBase(stream, state) {
|
||||||
|
var ch = stream.next();
|
||||||
|
if (ch == '"' || ch == "'") {
|
||||||
|
state.tokenize = tokenString(ch);
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
}
|
||||||
|
if (/[\[\]\(\){}:=,;]/.test(ch)) {
|
||||||
|
curPunc = ch;
|
||||||
|
return "punctuation";
|
||||||
|
}
|
||||||
|
if (ch == "-") {
|
||||||
|
if (stream.eat("-")) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (/\d/.test(ch)) {
|
||||||
|
stream.eatWhile(/[\w\.]/);
|
||||||
|
return "number";
|
||||||
|
}
|
||||||
|
if (isOperatorChar.test(ch)) {
|
||||||
|
stream.eatWhile(isOperatorChar);
|
||||||
|
return "operator";
|
||||||
|
}
|
||||||
|
stream.eatWhile(/[\w\-]/);
|
||||||
|
var cur = stream.current();
|
||||||
|
if (keywords.propertyIsEnumerable(cur)) return "keyword";
|
||||||
|
if (cmipVerbs.propertyIsEnumerable(cur)) return "variableName";
|
||||||
|
if (compareTypes.propertyIsEnumerable(cur)) return "atom";
|
||||||
|
if (status.propertyIsEnumerable(cur)) return "comment";
|
||||||
|
if (tags.propertyIsEnumerable(cur)) return "typeName";
|
||||||
|
if (storage.propertyIsEnumerable(cur)) return "modifier";
|
||||||
|
if (modifier.propertyIsEnumerable(cur)) return "modifier";
|
||||||
|
if (accessTypes.propertyIsEnumerable(cur)) return "modifier";
|
||||||
|
return "variableName";
|
||||||
|
}
|
||||||
|
function tokenString(quote) {
|
||||||
|
return function(stream, state) {
|
||||||
|
var escaped = false, next, end = false;
|
||||||
|
while ((next = stream.next()) != null) {
|
||||||
|
if (next == quote && !escaped) {
|
||||||
|
var afterNext = stream.peek();
|
||||||
|
if (afterNext) {
|
||||||
|
afterNext = afterNext.toLowerCase();
|
||||||
|
if (afterNext == "b" || afterNext == "h" || afterNext == "o")
|
||||||
|
stream.next();
|
||||||
|
}
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
escaped = !escaped && next == "\\";
|
||||||
|
}
|
||||||
|
if (end || !(escaped || multiLineStrings))
|
||||||
|
state.tokenize = null;
|
||||||
|
return "string";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function Context(indented, column, type, align, prev) {
|
||||||
|
this.indented = indented;
|
||||||
|
this.column = column;
|
||||||
|
this.type = type;
|
||||||
|
this.align = align;
|
||||||
|
this.prev = prev;
|
||||||
|
}
|
||||||
|
function pushContext(state, col, type) {
|
||||||
|
var indent = state.indented;
|
||||||
|
if (state.context && state.context.type == "statement")
|
||||||
|
indent = state.context.indented;
|
||||||
|
return state.context = new Context(indent, col, type, null, state.context);
|
||||||
|
}
|
||||||
|
function popContext(state) {
|
||||||
|
var t = state.context.type;
|
||||||
|
if (t == ")" || t == "]" || t == "}")
|
||||||
|
state.indented = state.context.indented;
|
||||||
|
return state.context = state.context.prev;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
name: "asn1",
|
||||||
|
startState: function() {
|
||||||
|
return {
|
||||||
|
tokenize: null,
|
||||||
|
context: new Context(-2, 0, "top", false),
|
||||||
|
indented: 0,
|
||||||
|
startOfLine: true
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
var ctx = state.context;
|
||||||
|
if (stream.sol()) {
|
||||||
|
if (ctx.align == null) ctx.align = false;
|
||||||
|
state.indented = stream.indentation();
|
||||||
|
state.startOfLine = true;
|
||||||
|
}
|
||||||
|
if (stream.eatSpace()) return null;
|
||||||
|
curPunc = null;
|
||||||
|
var style = (state.tokenize || tokenBase)(stream, state);
|
||||||
|
if (style == "comment") return style;
|
||||||
|
if (ctx.align == null) ctx.align = true;
|
||||||
|
if ((curPunc == ";" || curPunc == ":" || curPunc == ",") && ctx.type == "statement") {
|
||||||
|
popContext(state);
|
||||||
|
} else if (curPunc == "{") pushContext(state, stream.column(), "}");
|
||||||
|
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
||||||
|
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
||||||
|
else if (curPunc == "}") {
|
||||||
|
while (ctx.type == "statement") ctx = popContext(state);
|
||||||
|
if (ctx.type == "}") ctx = popContext(state);
|
||||||
|
while (ctx.type == "statement") ctx = popContext(state);
|
||||||
|
} else if (curPunc == ctx.type) popContext(state);
|
||||||
|
else if (indentStatements && ((ctx.type == "}" || ctx.type == "top") && curPunc != ";" || ctx.type == "statement" && curPunc == "newstatement"))
|
||||||
|
pushContext(state, stream.column(), "statement");
|
||||||
|
state.startOfLine = false;
|
||||||
|
return style;
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
indentOnInput: /^\s*[{}]$/,
|
||||||
|
commentTokens: { line: "--" }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
asn1
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=asn1-Q55IUX3W.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
+353
@@ -0,0 +1,353 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/asterisk.js
|
||||||
|
var atoms = ["exten", "same", "include", "ignorepat", "switch"];
|
||||||
|
var dpcmd = ["#include", "#exec"];
|
||||||
|
var apps = [
|
||||||
|
"addqueuemember",
|
||||||
|
"adsiprog",
|
||||||
|
"aelsub",
|
||||||
|
"agentlogin",
|
||||||
|
"agentmonitoroutgoing",
|
||||||
|
"agi",
|
||||||
|
"alarmreceiver",
|
||||||
|
"amd",
|
||||||
|
"answer",
|
||||||
|
"authenticate",
|
||||||
|
"background",
|
||||||
|
"backgrounddetect",
|
||||||
|
"bridge",
|
||||||
|
"busy",
|
||||||
|
"callcompletioncancel",
|
||||||
|
"callcompletionrequest",
|
||||||
|
"celgenuserevent",
|
||||||
|
"changemonitor",
|
||||||
|
"chanisavail",
|
||||||
|
"channelredirect",
|
||||||
|
"chanspy",
|
||||||
|
"clearhash",
|
||||||
|
"confbridge",
|
||||||
|
"congestion",
|
||||||
|
"continuewhile",
|
||||||
|
"controlplayback",
|
||||||
|
"dahdiacceptr2call",
|
||||||
|
"dahdibarge",
|
||||||
|
"dahdiras",
|
||||||
|
"dahdiscan",
|
||||||
|
"dahdisendcallreroutingfacility",
|
||||||
|
"dahdisendkeypadfacility",
|
||||||
|
"datetime",
|
||||||
|
"dbdel",
|
||||||
|
"dbdeltree",
|
||||||
|
"deadagi",
|
||||||
|
"dial",
|
||||||
|
"dictate",
|
||||||
|
"directory",
|
||||||
|
"disa",
|
||||||
|
"dumpchan",
|
||||||
|
"eagi",
|
||||||
|
"echo",
|
||||||
|
"endwhile",
|
||||||
|
"exec",
|
||||||
|
"execif",
|
||||||
|
"execiftime",
|
||||||
|
"exitwhile",
|
||||||
|
"extenspy",
|
||||||
|
"externalivr",
|
||||||
|
"festival",
|
||||||
|
"flash",
|
||||||
|
"followme",
|
||||||
|
"forkcdr",
|
||||||
|
"getcpeid",
|
||||||
|
"gosub",
|
||||||
|
"gosubif",
|
||||||
|
"goto",
|
||||||
|
"gotoif",
|
||||||
|
"gotoiftime",
|
||||||
|
"hangup",
|
||||||
|
"iax2provision",
|
||||||
|
"ices",
|
||||||
|
"importvar",
|
||||||
|
"incomplete",
|
||||||
|
"ivrdemo",
|
||||||
|
"jabberjoin",
|
||||||
|
"jabberleave",
|
||||||
|
"jabbersend",
|
||||||
|
"jabbersendgroup",
|
||||||
|
"jabberstatus",
|
||||||
|
"jack",
|
||||||
|
"log",
|
||||||
|
"macro",
|
||||||
|
"macroexclusive",
|
||||||
|
"macroexit",
|
||||||
|
"macroif",
|
||||||
|
"mailboxexists",
|
||||||
|
"meetme",
|
||||||
|
"meetmeadmin",
|
||||||
|
"meetmechanneladmin",
|
||||||
|
"meetmecount",
|
||||||
|
"milliwatt",
|
||||||
|
"minivmaccmess",
|
||||||
|
"minivmdelete",
|
||||||
|
"minivmgreet",
|
||||||
|
"minivmmwi",
|
||||||
|
"minivmnotify",
|
||||||
|
"minivmrecord",
|
||||||
|
"mixmonitor",
|
||||||
|
"monitor",
|
||||||
|
"morsecode",
|
||||||
|
"mp3player",
|
||||||
|
"mset",
|
||||||
|
"musiconhold",
|
||||||
|
"nbscat",
|
||||||
|
"nocdr",
|
||||||
|
"noop",
|
||||||
|
"odbc",
|
||||||
|
"odbc",
|
||||||
|
"odbcfinish",
|
||||||
|
"originate",
|
||||||
|
"ospauth",
|
||||||
|
"ospfinish",
|
||||||
|
"osplookup",
|
||||||
|
"ospnext",
|
||||||
|
"page",
|
||||||
|
"park",
|
||||||
|
"parkandannounce",
|
||||||
|
"parkedcall",
|
||||||
|
"pausemonitor",
|
||||||
|
"pausequeuemember",
|
||||||
|
"pickup",
|
||||||
|
"pickupchan",
|
||||||
|
"playback",
|
||||||
|
"playtones",
|
||||||
|
"privacymanager",
|
||||||
|
"proceeding",
|
||||||
|
"progress",
|
||||||
|
"queue",
|
||||||
|
"queuelog",
|
||||||
|
"raiseexception",
|
||||||
|
"read",
|
||||||
|
"readexten",
|
||||||
|
"readfile",
|
||||||
|
"receivefax",
|
||||||
|
"receivefax",
|
||||||
|
"receivefax",
|
||||||
|
"record",
|
||||||
|
"removequeuemember",
|
||||||
|
"resetcdr",
|
||||||
|
"retrydial",
|
||||||
|
"return",
|
||||||
|
"ringing",
|
||||||
|
"sayalpha",
|
||||||
|
"saycountedadj",
|
||||||
|
"saycountednoun",
|
||||||
|
"saycountpl",
|
||||||
|
"saydigits",
|
||||||
|
"saynumber",
|
||||||
|
"sayphonetic",
|
||||||
|
"sayunixtime",
|
||||||
|
"senddtmf",
|
||||||
|
"sendfax",
|
||||||
|
"sendfax",
|
||||||
|
"sendfax",
|
||||||
|
"sendimage",
|
||||||
|
"sendtext",
|
||||||
|
"sendurl",
|
||||||
|
"set",
|
||||||
|
"setamaflags",
|
||||||
|
"setcallerpres",
|
||||||
|
"setmusiconhold",
|
||||||
|
"sipaddheader",
|
||||||
|
"sipdtmfmode",
|
||||||
|
"sipremoveheader",
|
||||||
|
"skel",
|
||||||
|
"slastation",
|
||||||
|
"slatrunk",
|
||||||
|
"sms",
|
||||||
|
"softhangup",
|
||||||
|
"speechactivategrammar",
|
||||||
|
"speechbackground",
|
||||||
|
"speechcreate",
|
||||||
|
"speechdeactivategrammar",
|
||||||
|
"speechdestroy",
|
||||||
|
"speechloadgrammar",
|
||||||
|
"speechprocessingsound",
|
||||||
|
"speechstart",
|
||||||
|
"speechunloadgrammar",
|
||||||
|
"stackpop",
|
||||||
|
"startmusiconhold",
|
||||||
|
"stopmixmonitor",
|
||||||
|
"stopmonitor",
|
||||||
|
"stopmusiconhold",
|
||||||
|
"stopplaytones",
|
||||||
|
"system",
|
||||||
|
"testclient",
|
||||||
|
"testserver",
|
||||||
|
"transfer",
|
||||||
|
"tryexec",
|
||||||
|
"trysystem",
|
||||||
|
"unpausemonitor",
|
||||||
|
"unpausequeuemember",
|
||||||
|
"userevent",
|
||||||
|
"verbose",
|
||||||
|
"vmauthenticate",
|
||||||
|
"vmsayname",
|
||||||
|
"voicemail",
|
||||||
|
"voicemailmain",
|
||||||
|
"wait",
|
||||||
|
"waitexten",
|
||||||
|
"waitfornoise",
|
||||||
|
"waitforring",
|
||||||
|
"waitforsilence",
|
||||||
|
"waitmusiconhold",
|
||||||
|
"waituntil",
|
||||||
|
"while",
|
||||||
|
"zapateller"
|
||||||
|
];
|
||||||
|
function basicToken(stream, state) {
|
||||||
|
var cur = "";
|
||||||
|
var ch = stream.next();
|
||||||
|
if (state.blockComment) {
|
||||||
|
if (ch == "-" && stream.match("-;", true)) {
|
||||||
|
state.blockComment = false;
|
||||||
|
} else if (stream.skipTo("--;")) {
|
||||||
|
stream.next();
|
||||||
|
stream.next();
|
||||||
|
stream.next();
|
||||||
|
state.blockComment = false;
|
||||||
|
} else {
|
||||||
|
stream.skipToEnd();
|
||||||
|
}
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
if (ch == ";") {
|
||||||
|
if (stream.match("--", true)) {
|
||||||
|
if (!stream.match("-", false)) {
|
||||||
|
state.blockComment = true;
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
if (ch == "[") {
|
||||||
|
stream.skipTo("]");
|
||||||
|
stream.eat("]");
|
||||||
|
return "header";
|
||||||
|
}
|
||||||
|
if (ch == '"') {
|
||||||
|
stream.skipTo('"');
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
if (ch == "'") {
|
||||||
|
stream.skipTo("'");
|
||||||
|
return "string.special";
|
||||||
|
}
|
||||||
|
if (ch == "#") {
|
||||||
|
stream.eatWhile(/\w/);
|
||||||
|
cur = stream.current();
|
||||||
|
if (dpcmd.indexOf(cur) !== -1) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "strong";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (ch == "$") {
|
||||||
|
var ch1 = stream.peek();
|
||||||
|
if (ch1 == "{") {
|
||||||
|
stream.skipTo("}");
|
||||||
|
stream.eat("}");
|
||||||
|
return "variableName.special";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stream.eatWhile(/\w/);
|
||||||
|
cur = stream.current();
|
||||||
|
if (atoms.indexOf(cur) !== -1) {
|
||||||
|
state.extenStart = true;
|
||||||
|
switch (cur) {
|
||||||
|
case "same":
|
||||||
|
state.extenSame = true;
|
||||||
|
break;
|
||||||
|
case "include":
|
||||||
|
case "switch":
|
||||||
|
case "ignorepat":
|
||||||
|
state.extenInclude = true;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return "atom";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var asterisk = {
|
||||||
|
name: "asterisk",
|
||||||
|
startState: function() {
|
||||||
|
return {
|
||||||
|
blockComment: false,
|
||||||
|
extenStart: false,
|
||||||
|
extenSame: false,
|
||||||
|
extenInclude: false,
|
||||||
|
extenExten: false,
|
||||||
|
extenPriority: false,
|
||||||
|
extenApplication: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
var cur = "";
|
||||||
|
if (stream.eatSpace()) return null;
|
||||||
|
if (state.extenStart) {
|
||||||
|
stream.eatWhile(/[^\s]/);
|
||||||
|
cur = stream.current();
|
||||||
|
if (/^=>?$/.test(cur)) {
|
||||||
|
state.extenExten = true;
|
||||||
|
state.extenStart = false;
|
||||||
|
return "strong";
|
||||||
|
} else {
|
||||||
|
state.extenStart = false;
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "error";
|
||||||
|
}
|
||||||
|
} else if (state.extenExten) {
|
||||||
|
state.extenExten = false;
|
||||||
|
state.extenPriority = true;
|
||||||
|
stream.eatWhile(/[^,]/);
|
||||||
|
if (state.extenInclude) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
state.extenPriority = false;
|
||||||
|
state.extenInclude = false;
|
||||||
|
}
|
||||||
|
if (state.extenSame) {
|
||||||
|
state.extenPriority = false;
|
||||||
|
state.extenSame = false;
|
||||||
|
state.extenApplication = true;
|
||||||
|
}
|
||||||
|
return "tag";
|
||||||
|
} else if (state.extenPriority) {
|
||||||
|
state.extenPriority = false;
|
||||||
|
state.extenApplication = true;
|
||||||
|
stream.next();
|
||||||
|
if (state.extenSame) return null;
|
||||||
|
stream.eatWhile(/[^,]/);
|
||||||
|
return "number";
|
||||||
|
} else if (state.extenApplication) {
|
||||||
|
stream.eatWhile(/,/);
|
||||||
|
cur = stream.current();
|
||||||
|
if (cur === ",") return null;
|
||||||
|
stream.eatWhile(/\w/);
|
||||||
|
cur = stream.current().toLowerCase();
|
||||||
|
state.extenApplication = false;
|
||||||
|
if (apps.indexOf(cur) !== -1) {
|
||||||
|
return "def";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return basicToken(stream, state);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
commentTokens: { line: ";", block: { open: ";--", close: "--;" } }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
asterisk
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=asterisk-UDDB4THN.js.map
|
||||||
File diff suppressed because one or more lines are too long
+57
@@ -0,0 +1,57 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/brainfuck.js
|
||||||
|
var reserve = "><+-.,[]".split("");
|
||||||
|
var brainfuck = {
|
||||||
|
name: "brainfuck",
|
||||||
|
startState: function() {
|
||||||
|
return {
|
||||||
|
commentLine: false,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
commentLoop: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
if (stream.eatSpace()) return null;
|
||||||
|
if (stream.sol()) {
|
||||||
|
state.commentLine = false;
|
||||||
|
}
|
||||||
|
var ch = stream.next().toString();
|
||||||
|
if (reserve.indexOf(ch) !== -1) {
|
||||||
|
if (state.commentLine === true) {
|
||||||
|
if (stream.eol()) {
|
||||||
|
state.commentLine = false;
|
||||||
|
}
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
if (ch === "]" || ch === "[") {
|
||||||
|
if (ch === "[") {
|
||||||
|
state.left++;
|
||||||
|
} else {
|
||||||
|
state.right++;
|
||||||
|
}
|
||||||
|
return "bracket";
|
||||||
|
} else if (ch === "+" || ch === "-") {
|
||||||
|
return "keyword";
|
||||||
|
} else if (ch === "<" || ch === ">") {
|
||||||
|
return "atom";
|
||||||
|
} else if (ch === "." || ch === ",") {
|
||||||
|
return "def";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
state.commentLine = true;
|
||||||
|
if (stream.eol()) {
|
||||||
|
state.commentLine = false;
|
||||||
|
}
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
if (stream.eol()) {
|
||||||
|
state.commentLine = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
brainfuck
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=brainfuck-2K3RTKTU.js.map
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/@codemirror/legacy-modes/mode/brainfuck.js"],
|
||||||
|
"sourcesContent": ["var reserve = \"><+-.,[]\".split(\"\");\n/*\n comments can be either:\n placed behind lines\n\n +++ this is a comment\n\n where reserved characters cannot be used\n or in a loop\n [\n this is ok to use [ ] and stuff\n ]\n or preceded by #\n*/\nexport const brainfuck = {\n name: \"brainfuck\",\n startState: function() {\n return {\n commentLine: false,\n left: 0,\n right: 0,\n commentLoop: false\n }\n },\n token: function(stream, state) {\n if (stream.eatSpace()) return null\n if(stream.sol()){\n state.commentLine = false;\n }\n var ch = stream.next().toString();\n if(reserve.indexOf(ch) !== -1){\n if(state.commentLine === true){\n if(stream.eol()){\n state.commentLine = false;\n }\n return \"comment\";\n }\n if(ch === \"]\" || ch === \"[\"){\n if(ch === \"[\"){\n state.left++;\n }\n else{\n state.right++;\n }\n return \"bracket\";\n }\n else if(ch === \"+\" || ch === \"-\"){\n return \"keyword\";\n }\n else if(ch === \"<\" || ch === \">\"){\n return \"atom\";\n }\n else if(ch === \".\" || ch === \",\"){\n return \"def\";\n }\n }\n else{\n state.commentLine = true;\n if(stream.eol()){\n state.commentLine = false;\n }\n return \"comment\";\n }\n if(stream.eol()){\n state.commentLine = false;\n }\n }\n};\n"],
|
||||||
|
"mappings": ";;;AAAA,IAAI,UAAU,WAAW,MAAM,EAAE;AAc1B,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,YAAY,WAAW;AACrB,WAAO;AAAA,MACL,aAAa;AAAA,MACb,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,OAAO,SAAS,QAAQ,OAAO;AAC7B,QAAI,OAAO,SAAS,EAAG,QAAO;AAC9B,QAAG,OAAO,IAAI,GAAE;AACd,YAAM,cAAc;AAAA,IACtB;AACA,QAAI,KAAK,OAAO,KAAK,EAAE,SAAS;AAChC,QAAG,QAAQ,QAAQ,EAAE,MAAM,IAAG;AAC5B,UAAG,MAAM,gBAAgB,MAAK;AAC5B,YAAG,OAAO,IAAI,GAAE;AACd,gBAAM,cAAc;AAAA,QACtB;AACA,eAAO;AAAA,MACT;AACA,UAAG,OAAO,OAAO,OAAO,KAAI;AAC1B,YAAG,OAAO,KAAI;AACZ,gBAAM;AAAA,QACR,OACI;AACF,gBAAM;AAAA,QACR;AACA,eAAO;AAAA,MACT,WACQ,OAAO,OAAO,OAAO,KAAI;AAC/B,eAAO;AAAA,MACT,WACQ,OAAO,OAAO,OAAO,KAAI;AAC/B,eAAO;AAAA,MACT,WACQ,OAAO,OAAO,OAAO,KAAI;AAC/B,eAAO;AAAA,MACT;AAAA,IACF,OACI;AACF,YAAM,cAAc;AACpB,UAAG,OAAO,IAAI,GAAE;AACd,cAAM,cAAc;AAAA,MACtB;AACA,aAAO;AAAA,IACT;AACA,QAAG,OAAO,IAAI,GAAE;AACd,YAAM,cAAc;AAAA,IACtB;AAAA,EACF;AACF;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+257
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
+21
@@ -0,0 +1,21 @@
|
|||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// browser-external:fs
|
||||||
|
var require_fs = __commonJS({
|
||||||
|
"browser-external:fs"(exports, module) {
|
||||||
|
module.exports = Object.create(new Proxy({}, {
|
||||||
|
get(_, key) {
|
||||||
|
if (key !== "__esModule" && key !== "__proto__" && key !== "constructor" && key !== "splice") {
|
||||||
|
console.warn(`Module "fs" has been externalized for browser compatibility. Cannot access "fs.${key}" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_fs
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-4RL6IR4I.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["browser-external:fs"],
|
||||||
|
"sourcesContent": ["module.exports = Object.create(new Proxy({}, {\n get(_, key) {\n if (\n key !== '__esModule' &&\n key !== '__proto__' &&\n key !== 'constructor' &&\n key !== 'splice'\n ) {\n console.warn(`Module \"fs\" has been externalized for browser compatibility. Cannot access \"fs.${key}\" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`)\n }\n }\n}))"],
|
||||||
|
"mappings": ";;;;;AAAA;AAAA;AAAA,WAAO,UAAU,OAAO,OAAO,IAAI,MAAM,CAAC,GAAG;AAAA,MAC3C,IAAI,GAAG,KAAK;AACV,YACE,QAAQ,gBACR,QAAQ,eACR,QAAQ,iBACR,QAAQ,UACR;AACA,kBAAQ,KAAK,kFAAkF,GAAG,mIAAmI;AAAA,QACvO;AAAA,MACF;AAAA,IACF,CAAC,CAAC;AAAA;AAAA;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+1823
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+9719
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+928
@@ -0,0 +1,928 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-KZRXRAEA.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/react/cjs/react-jsx-runtime.development.js
|
||||||
|
var require_react_jsx_runtime_development = __commonJS({
|
||||||
|
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
var React = require_react();
|
||||||
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
||||||
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
||||||
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||||
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
||||||
|
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||||
|
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||||
|
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||||
|
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||||
|
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||||
|
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
||||||
|
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
||||||
|
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
||||||
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||||
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||||
|
function getIteratorFn(maybeIterable) {
|
||||||
|
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
||||||
|
if (typeof maybeIterator === "function") {
|
||||||
|
return maybeIterator;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
|
function error(format) {
|
||||||
|
{
|
||||||
|
{
|
||||||
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
||||||
|
args[_key2 - 1] = arguments[_key2];
|
||||||
|
}
|
||||||
|
printWarning("error", format, args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function printWarning(level, format, args) {
|
||||||
|
{
|
||||||
|
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
||||||
|
if (stack !== "") {
|
||||||
|
format += "%s";
|
||||||
|
args = args.concat([stack]);
|
||||||
|
}
|
||||||
|
var argsWithFormat = args.map(function(item) {
|
||||||
|
return String(item);
|
||||||
|
});
|
||||||
|
argsWithFormat.unshift("Warning: " + format);
|
||||||
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var enableScopeAPI = false;
|
||||||
|
var enableCacheElement = false;
|
||||||
|
var enableTransitionTracing = false;
|
||||||
|
var enableLegacyHidden = false;
|
||||||
|
var enableDebugTracing = false;
|
||||||
|
var REACT_MODULE_REFERENCE;
|
||||||
|
{
|
||||||
|
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
||||||
|
}
|
||||||
|
function isValidElementType(type) {
|
||||||
|
if (typeof type === "string" || typeof type === "function") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (typeof type === "object" && type !== null) {
|
||||||
|
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
||||||
|
// types supported by any Flight configuration anywhere since
|
||||||
|
// we don't know which Flight build this will end up being used
|
||||||
|
// with.
|
||||||
|
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function getWrappedName(outerType, innerType, wrapperName) {
|
||||||
|
var displayName = outerType.displayName;
|
||||||
|
if (displayName) {
|
||||||
|
return displayName;
|
||||||
|
}
|
||||||
|
var functionName = innerType.displayName || innerType.name || "";
|
||||||
|
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
||||||
|
}
|
||||||
|
function getContextName(type) {
|
||||||
|
return type.displayName || "Context";
|
||||||
|
}
|
||||||
|
function getComponentNameFromType(type) {
|
||||||
|
if (type == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof type.tag === "number") {
|
||||||
|
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
return type.displayName || type.name || null;
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
return "Fragment";
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return "Portal";
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
return "Profiler";
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
return "StrictMode";
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return "Suspense";
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return "SuspenseList";
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
var context = type;
|
||||||
|
return getContextName(context) + ".Consumer";
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
var provider = type;
|
||||||
|
return getContextName(provider._context) + ".Provider";
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return getWrappedName(type, type.render, "ForwardRef");
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
var outerName = type.displayName || null;
|
||||||
|
if (outerName !== null) {
|
||||||
|
return outerName;
|
||||||
|
}
|
||||||
|
return getComponentNameFromType(type.type) || "Memo";
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return getComponentNameFromType(init(payload));
|
||||||
|
} catch (x) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var assign = Object.assign;
|
||||||
|
var disabledDepth = 0;
|
||||||
|
var prevLog;
|
||||||
|
var prevInfo;
|
||||||
|
var prevWarn;
|
||||||
|
var prevError;
|
||||||
|
var prevGroup;
|
||||||
|
var prevGroupCollapsed;
|
||||||
|
var prevGroupEnd;
|
||||||
|
function disabledLog() {
|
||||||
|
}
|
||||||
|
disabledLog.__reactDisabledLog = true;
|
||||||
|
function disableLogs() {
|
||||||
|
{
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
prevLog = console.log;
|
||||||
|
prevInfo = console.info;
|
||||||
|
prevWarn = console.warn;
|
||||||
|
prevError = console.error;
|
||||||
|
prevGroup = console.group;
|
||||||
|
prevGroupCollapsed = console.groupCollapsed;
|
||||||
|
prevGroupEnd = console.groupEnd;
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
value: disabledLog,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
info: props,
|
||||||
|
log: props,
|
||||||
|
warn: props,
|
||||||
|
error: props,
|
||||||
|
group: props,
|
||||||
|
groupCollapsed: props,
|
||||||
|
groupEnd: props
|
||||||
|
});
|
||||||
|
}
|
||||||
|
disabledDepth++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function reenableLogs() {
|
||||||
|
{
|
||||||
|
disabledDepth--;
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
log: assign({}, props, {
|
||||||
|
value: prevLog
|
||||||
|
}),
|
||||||
|
info: assign({}, props, {
|
||||||
|
value: prevInfo
|
||||||
|
}),
|
||||||
|
warn: assign({}, props, {
|
||||||
|
value: prevWarn
|
||||||
|
}),
|
||||||
|
error: assign({}, props, {
|
||||||
|
value: prevError
|
||||||
|
}),
|
||||||
|
group: assign({}, props, {
|
||||||
|
value: prevGroup
|
||||||
|
}),
|
||||||
|
groupCollapsed: assign({}, props, {
|
||||||
|
value: prevGroupCollapsed
|
||||||
|
}),
|
||||||
|
groupEnd: assign({}, props, {
|
||||||
|
value: prevGroupEnd
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (disabledDepth < 0) {
|
||||||
|
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
||||||
|
var prefix;
|
||||||
|
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
||||||
|
{
|
||||||
|
if (prefix === void 0) {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
||||||
|
prefix = match && match[1] || "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "\n" + prefix + name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var reentry = false;
|
||||||
|
var componentFrameCache;
|
||||||
|
{
|
||||||
|
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
||||||
|
componentFrameCache = new PossiblyWeakMap();
|
||||||
|
}
|
||||||
|
function describeNativeComponentFrame(fn, construct) {
|
||||||
|
if (!fn || reentry) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
var frame = componentFrameCache.get(fn);
|
||||||
|
if (frame !== void 0) {
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var control;
|
||||||
|
reentry = true;
|
||||||
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
||||||
|
Error.prepareStackTrace = void 0;
|
||||||
|
var previousDispatcher;
|
||||||
|
{
|
||||||
|
previousDispatcher = ReactCurrentDispatcher.current;
|
||||||
|
ReactCurrentDispatcher.current = null;
|
||||||
|
disableLogs();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if (construct) {
|
||||||
|
var Fake = function() {
|
||||||
|
throw Error();
|
||||||
|
};
|
||||||
|
Object.defineProperty(Fake.prototype, "props", {
|
||||||
|
set: function() {
|
||||||
|
throw Error();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (typeof Reflect === "object" && Reflect.construct) {
|
||||||
|
try {
|
||||||
|
Reflect.construct(Fake, []);
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
Reflect.construct(fn, [], Fake);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
Fake.call();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn.call(Fake.prototype);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn();
|
||||||
|
}
|
||||||
|
} catch (sample) {
|
||||||
|
if (sample && control && typeof sample.stack === "string") {
|
||||||
|
var sampleLines = sample.stack.split("\n");
|
||||||
|
var controlLines = control.stack.split("\n");
|
||||||
|
var s = sampleLines.length - 1;
|
||||||
|
var c = controlLines.length - 1;
|
||||||
|
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
||||||
|
c--;
|
||||||
|
}
|
||||||
|
for (; s >= 1 && c >= 0; s--, c--) {
|
||||||
|
if (sampleLines[s] !== controlLines[c]) {
|
||||||
|
if (s !== 1 || c !== 1) {
|
||||||
|
do {
|
||||||
|
s--;
|
||||||
|
c--;
|
||||||
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
||||||
|
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
||||||
|
if (fn.displayName && _frame.includes("<anonymous>")) {
|
||||||
|
_frame = _frame.replace("<anonymous>", fn.displayName);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, _frame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _frame;
|
||||||
|
}
|
||||||
|
} while (s >= 1 && c >= 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
reentry = false;
|
||||||
|
{
|
||||||
|
ReactCurrentDispatcher.current = previousDispatcher;
|
||||||
|
reenableLogs();
|
||||||
|
}
|
||||||
|
Error.prepareStackTrace = previousPrepareStackTrace;
|
||||||
|
}
|
||||||
|
var name = fn ? fn.displayName || fn.name : "";
|
||||||
|
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, syntheticFrame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return syntheticFrame;
|
||||||
|
}
|
||||||
|
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(fn, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function shouldConstruct(Component) {
|
||||||
|
var prototype = Component.prototype;
|
||||||
|
return !!(prototype && prototype.isReactComponent);
|
||||||
|
}
|
||||||
|
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
||||||
|
if (type == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(type, shouldConstruct(type));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return describeBuiltInComponentFrame(type);
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("Suspense");
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("SuspenseList");
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return describeFunctionComponentFrame(type.render);
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
||||||
|
} catch (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||||
|
var loggedTypeFailures = {};
|
||||||
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
||||||
|
{
|
||||||
|
var has = Function.call.bind(hasOwnProperty);
|
||||||
|
for (var typeSpecName in typeSpecs) {
|
||||||
|
if (has(typeSpecs, typeSpecName)) {
|
||||||
|
var error$1 = void 0;
|
||||||
|
try {
|
||||||
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
||||||
|
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
||||||
|
err.name = "Invariant Violation";
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
||||||
|
} catch (ex) {
|
||||||
|
error$1 = ex;
|
||||||
|
}
|
||||||
|
if (error$1 && !(error$1 instanceof Error)) {
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
||||||
|
loggedTypeFailures[error$1.message] = true;
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("Failed %s type: %s", location, error$1.message);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var isArrayImpl = Array.isArray;
|
||||||
|
function isArray(a) {
|
||||||
|
return isArrayImpl(a);
|
||||||
|
}
|
||||||
|
function typeName(value) {
|
||||||
|
{
|
||||||
|
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
||||||
|
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function willCoercionThrow(value) {
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
testStringCoercion(value);
|
||||||
|
return false;
|
||||||
|
} catch (e) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function checkKeyStringCoercion(value) {
|
||||||
|
{
|
||||||
|
if (willCoercionThrow(value)) {
|
||||||
|
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
||||||
|
return testStringCoercion(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var RESERVED_PROPS = {
|
||||||
|
key: true,
|
||||||
|
ref: true,
|
||||||
|
__self: true,
|
||||||
|
__source: true
|
||||||
|
};
|
||||||
|
var specialPropKeyWarningShown;
|
||||||
|
var specialPropRefWarningShown;
|
||||||
|
var didWarnAboutStringRefs;
|
||||||
|
{
|
||||||
|
didWarnAboutStringRefs = {};
|
||||||
|
}
|
||||||
|
function hasValidRef(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "ref")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.ref !== void 0;
|
||||||
|
}
|
||||||
|
function hasValidKey(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.key !== void 0;
|
||||||
|
}
|
||||||
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||||
|
{
|
||||||
|
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
||||||
|
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
||||||
|
if (!didWarnAboutStringRefs[componentName]) {
|
||||||
|
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
||||||
|
didWarnAboutStringRefs[componentName] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineKeyPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingKey = function() {
|
||||||
|
if (!specialPropKeyWarningShown) {
|
||||||
|
specialPropKeyWarningShown = true;
|
||||||
|
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingKey.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "key", {
|
||||||
|
get: warnAboutAccessingKey,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineRefPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingRef = function() {
|
||||||
|
if (!specialPropRefWarningShown) {
|
||||||
|
specialPropRefWarningShown = true;
|
||||||
|
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingRef.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "ref", {
|
||||||
|
get: warnAboutAccessingRef,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
||||||
|
var element = {
|
||||||
|
// This tag allows us to uniquely identify this as a React Element
|
||||||
|
$$typeof: REACT_ELEMENT_TYPE,
|
||||||
|
// Built-in properties that belong on the element
|
||||||
|
type,
|
||||||
|
key,
|
||||||
|
ref,
|
||||||
|
props,
|
||||||
|
// Record the component responsible for creating this element.
|
||||||
|
_owner: owner
|
||||||
|
};
|
||||||
|
{
|
||||||
|
element._store = {};
|
||||||
|
Object.defineProperty(element._store, "validated", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: false
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_self", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: self
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_source", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: source
|
||||||
|
});
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(element.props);
|
||||||
|
Object.freeze(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
};
|
||||||
|
function jsxDEV(type, config, maybeKey, source, self) {
|
||||||
|
{
|
||||||
|
var propName;
|
||||||
|
var props = {};
|
||||||
|
var key = null;
|
||||||
|
var ref = null;
|
||||||
|
if (maybeKey !== void 0) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(maybeKey);
|
||||||
|
}
|
||||||
|
key = "" + maybeKey;
|
||||||
|
}
|
||||||
|
if (hasValidKey(config)) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(config.key);
|
||||||
|
}
|
||||||
|
key = "" + config.key;
|
||||||
|
}
|
||||||
|
if (hasValidRef(config)) {
|
||||||
|
ref = config.ref;
|
||||||
|
warnIfStringRefCannotBeAutoConverted(config, self);
|
||||||
|
}
|
||||||
|
for (propName in config) {
|
||||||
|
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
||||||
|
props[propName] = config[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type && type.defaultProps) {
|
||||||
|
var defaultProps = type.defaultProps;
|
||||||
|
for (propName in defaultProps) {
|
||||||
|
if (props[propName] === void 0) {
|
||||||
|
props[propName] = defaultProps[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (key || ref) {
|
||||||
|
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
||||||
|
if (key) {
|
||||||
|
defineKeyPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
if (ref) {
|
||||||
|
defineRefPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement$1(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var propTypesMisspellWarningShown;
|
||||||
|
{
|
||||||
|
propTypesMisspellWarningShown = false;
|
||||||
|
}
|
||||||
|
function isValidElement(object) {
|
||||||
|
{
|
||||||
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getDeclarationErrorAddendum() {
|
||||||
|
{
|
||||||
|
if (ReactCurrentOwner$1.current) {
|
||||||
|
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
||||||
|
if (name) {
|
||||||
|
return "\n\nCheck the render method of `" + name + "`.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getSourceInfoErrorAddendum(source) {
|
||||||
|
{
|
||||||
|
if (source !== void 0) {
|
||||||
|
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
||||||
|
var lineNumber = source.lineNumber;
|
||||||
|
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ownerHasKeyUseWarning = {};
|
||||||
|
function getCurrentComponentErrorInfo(parentType) {
|
||||||
|
{
|
||||||
|
var info = getDeclarationErrorAddendum();
|
||||||
|
if (!info) {
|
||||||
|
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
||||||
|
if (parentName) {
|
||||||
|
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateExplicitKey(element, parentType) {
|
||||||
|
{
|
||||||
|
if (!element._store || element._store.validated || element.key != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
element._store.validated = true;
|
||||||
|
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
||||||
|
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
||||||
|
var childOwner = "";
|
||||||
|
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
||||||
|
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
||||||
|
}
|
||||||
|
setCurrentlyValidatingElement$1(element);
|
||||||
|
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateChildKeys(node, parentType) {
|
||||||
|
{
|
||||||
|
if (typeof node !== "object") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isArray(node)) {
|
||||||
|
for (var i = 0; i < node.length; i++) {
|
||||||
|
var child = node[i];
|
||||||
|
if (isValidElement(child)) {
|
||||||
|
validateExplicitKey(child, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (isValidElement(node)) {
|
||||||
|
if (node._store) {
|
||||||
|
node._store.validated = true;
|
||||||
|
}
|
||||||
|
} else if (node) {
|
||||||
|
var iteratorFn = getIteratorFn(node);
|
||||||
|
if (typeof iteratorFn === "function") {
|
||||||
|
if (iteratorFn !== node.entries) {
|
||||||
|
var iterator = iteratorFn.call(node);
|
||||||
|
var step;
|
||||||
|
while (!(step = iterator.next()).done) {
|
||||||
|
if (isValidElement(step.value)) {
|
||||||
|
validateExplicitKey(step.value, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validatePropTypes(element) {
|
||||||
|
{
|
||||||
|
var type = element.type;
|
||||||
|
if (type === null || type === void 0 || typeof type === "string") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var propTypes;
|
||||||
|
if (typeof type === "function") {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
||||||
|
// Inner props are checked in the reconciler.
|
||||||
|
type.$$typeof === REACT_MEMO_TYPE)) {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (propTypes) {
|
||||||
|
var name = getComponentNameFromType(type);
|
||||||
|
checkPropTypes(propTypes, element.props, "prop", name, element);
|
||||||
|
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
||||||
|
propTypesMisspellWarningShown = true;
|
||||||
|
var _name = getComponentNameFromType(type);
|
||||||
|
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
||||||
|
}
|
||||||
|
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
||||||
|
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateFragmentProps(fragment) {
|
||||||
|
{
|
||||||
|
var keys = Object.keys(fragment.props);
|
||||||
|
for (var i = 0; i < keys.length; i++) {
|
||||||
|
var key = keys[i];
|
||||||
|
if (key !== "children" && key !== "key") {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (fragment.ref !== null) {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var didWarnAboutKeySpread = {};
|
||||||
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
||||||
|
{
|
||||||
|
var validType = isValidElementType(type);
|
||||||
|
if (!validType) {
|
||||||
|
var info = "";
|
||||||
|
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
||||||
|
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
||||||
|
}
|
||||||
|
var sourceInfo = getSourceInfoErrorAddendum(source);
|
||||||
|
if (sourceInfo) {
|
||||||
|
info += sourceInfo;
|
||||||
|
} else {
|
||||||
|
info += getDeclarationErrorAddendum();
|
||||||
|
}
|
||||||
|
var typeString;
|
||||||
|
if (type === null) {
|
||||||
|
typeString = "null";
|
||||||
|
} else if (isArray(type)) {
|
||||||
|
typeString = "array";
|
||||||
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
||||||
|
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
||||||
|
info = " Did you accidentally export a JSX literal instead of a component?";
|
||||||
|
} else {
|
||||||
|
typeString = typeof type;
|
||||||
|
}
|
||||||
|
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
||||||
|
}
|
||||||
|
var element = jsxDEV(type, props, key, source, self);
|
||||||
|
if (element == null) {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
if (validType) {
|
||||||
|
var children = props.children;
|
||||||
|
if (children !== void 0) {
|
||||||
|
if (isStaticChildren) {
|
||||||
|
if (isArray(children)) {
|
||||||
|
for (var i = 0; i < children.length; i++) {
|
||||||
|
validateChildKeys(children[i], type);
|
||||||
|
}
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(children);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
validateChildKeys(children, type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(props, "key")) {
|
||||||
|
var componentName = getComponentNameFromType(type);
|
||||||
|
var keys = Object.keys(props).filter(function(k) {
|
||||||
|
return k !== "key";
|
||||||
|
});
|
||||||
|
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
||||||
|
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
||||||
|
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
||||||
|
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
||||||
|
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE) {
|
||||||
|
validateFragmentProps(element);
|
||||||
|
} else {
|
||||||
|
validatePropTypes(element);
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function jsxWithValidationStatic(type, props, key) {
|
||||||
|
{
|
||||||
|
return jsxWithValidation(type, props, key, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function jsxWithValidationDynamic(type, props, key) {
|
||||||
|
{
|
||||||
|
return jsxWithValidation(type, props, key, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var jsx = jsxWithValidationDynamic;
|
||||||
|
var jsxs = jsxWithValidationStatic;
|
||||||
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
exports.jsx = jsx;
|
||||||
|
exports.jsxs = jsxs;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/react/jsx-runtime.js
|
||||||
|
var require_jsx_runtime = __commonJS({
|
||||||
|
"node_modules/react/jsx-runtime.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_jsx_runtime_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_jsx_runtime
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react/cjs/react-jsx-runtime.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-runtime.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=chunk-C5IA4YUH.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
+679
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
+365
@@ -0,0 +1,365 @@
|
|||||||
|
// node_modules/outvariant/lib/index.mjs
|
||||||
|
var POSITIONALS_EXP = /(%?)(%([sdjo]))/g;
|
||||||
|
function serializePositional(positional, flag) {
|
||||||
|
switch (flag) {
|
||||||
|
case "s":
|
||||||
|
return positional;
|
||||||
|
case "d":
|
||||||
|
case "i":
|
||||||
|
return Number(positional);
|
||||||
|
case "j":
|
||||||
|
return JSON.stringify(positional);
|
||||||
|
case "o": {
|
||||||
|
if (typeof positional === "string") {
|
||||||
|
return positional;
|
||||||
|
}
|
||||||
|
const json = JSON.stringify(positional);
|
||||||
|
if (json === "{}" || json === "[]" || /^\[object .+?\]$/.test(json)) {
|
||||||
|
return positional;
|
||||||
|
}
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function format(message, ...positionals) {
|
||||||
|
if (positionals.length === 0) {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
let positionalIndex = 0;
|
||||||
|
let formattedMessage = message.replace(
|
||||||
|
POSITIONALS_EXP,
|
||||||
|
(match, isEscaped, _, flag) => {
|
||||||
|
const positional = positionals[positionalIndex];
|
||||||
|
const value = serializePositional(positional, flag);
|
||||||
|
if (!isEscaped) {
|
||||||
|
positionalIndex++;
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
return match;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
if (positionalIndex < positionals.length) {
|
||||||
|
formattedMessage += ` ${positionals.slice(positionalIndex).join(" ")}`;
|
||||||
|
}
|
||||||
|
formattedMessage = formattedMessage.replace(/%{2,2}/g, "%");
|
||||||
|
return formattedMessage;
|
||||||
|
}
|
||||||
|
var STACK_FRAMES_TO_IGNORE = 2;
|
||||||
|
function cleanErrorStack(error) {
|
||||||
|
if (!error.stack) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const nextStack = error.stack.split("\n");
|
||||||
|
nextStack.splice(1, STACK_FRAMES_TO_IGNORE);
|
||||||
|
error.stack = nextStack.join("\n");
|
||||||
|
}
|
||||||
|
var InvariantError = class extends Error {
|
||||||
|
constructor(message, ...positionals) {
|
||||||
|
super(message);
|
||||||
|
this.message = message;
|
||||||
|
this.name = "Invariant Violation";
|
||||||
|
this.message = format(message, ...positionals);
|
||||||
|
cleanErrorStack(this);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var invariant = (predicate, message, ...positionals) => {
|
||||||
|
if (!predicate) {
|
||||||
|
throw new InvariantError(message, ...positionals);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
invariant.as = (ErrorConstructor, predicate, message, ...positionals) => {
|
||||||
|
if (!predicate) {
|
||||||
|
const isConstructor = ErrorConstructor.prototype.name != null;
|
||||||
|
const error = isConstructor ? new ErrorConstructor(format(message, positionals)) : ErrorConstructor(format(message, positionals));
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/@codesandbox/sandpack-client/dist/utils-52664384.mjs
|
||||||
|
var extendStatics = function(d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
||||||
|
d2.__proto__ = b2;
|
||||||
|
} || function(d2, b2) {
|
||||||
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
||||||
|
};
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
function __extends(d, b) {
|
||||||
|
if (typeof b !== "function" && b !== null)
|
||||||
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() {
|
||||||
|
this.constructor = d;
|
||||||
|
}
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
}
|
||||||
|
var __assign = function() {
|
||||||
|
__assign = Object.assign || function __assign2(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
function __awaiter(thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) {
|
||||||
|
return value instanceof P ? value : new P(function(resolve) {
|
||||||
|
resolve(value);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return new (P || (P = Promise))(function(resolve, reject) {
|
||||||
|
function fulfilled(value) {
|
||||||
|
try {
|
||||||
|
step(generator.next(value));
|
||||||
|
} catch (e) {
|
||||||
|
reject(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function rejected(value) {
|
||||||
|
try {
|
||||||
|
step(generator["throw"](value));
|
||||||
|
} catch (e) {
|
||||||
|
reject(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function step(result) {
|
||||||
|
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
||||||
|
}
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function __generator(thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() {
|
||||||
|
if (t[0] & 1) throw t[1];
|
||||||
|
return t[1];
|
||||||
|
}, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
||||||
|
return this;
|
||||||
|
}), g;
|
||||||
|
function verb(n) {
|
||||||
|
return function(v) {
|
||||||
|
return step([n, v]);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0:
|
||||||
|
case 1:
|
||||||
|
t = op;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
_.label++;
|
||||||
|
return { value: op[1], done: false };
|
||||||
|
case 5:
|
||||||
|
_.label++;
|
||||||
|
y = op[1];
|
||||||
|
op = [0];
|
||||||
|
continue;
|
||||||
|
case 7:
|
||||||
|
op = _.ops.pop();
|
||||||
|
_.trys.pop();
|
||||||
|
continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
||||||
|
_ = 0;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
||||||
|
_.label = op[1];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (op[0] === 6 && _.label < t[1]) {
|
||||||
|
_.label = t[1];
|
||||||
|
t = op;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (t && _.label < t[2]) {
|
||||||
|
_.label = t[2];
|
||||||
|
_.ops.push(op);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) {
|
||||||
|
op = [6, e];
|
||||||
|
y = 0;
|
||||||
|
} finally {
|
||||||
|
f = t = 0;
|
||||||
|
}
|
||||||
|
if (op[0] & 5) throw op[1];
|
||||||
|
return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function __spreadArray(to, from, pack) {
|
||||||
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
||||||
|
if (ar || !(i in from)) {
|
||||||
|
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
||||||
|
ar[i] = from[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return to.concat(ar || Array.prototype.slice.call(from));
|
||||||
|
}
|
||||||
|
var SandpackLogLevel;
|
||||||
|
(function(SandpackLogLevel2) {
|
||||||
|
SandpackLogLevel2[SandpackLogLevel2["None"] = 0] = "None";
|
||||||
|
SandpackLogLevel2[SandpackLogLevel2["Error"] = 10] = "Error";
|
||||||
|
SandpackLogLevel2[SandpackLogLevel2["Warning"] = 20] = "Warning";
|
||||||
|
SandpackLogLevel2[SandpackLogLevel2["Info"] = 30] = "Info";
|
||||||
|
SandpackLogLevel2[SandpackLogLevel2["Debug"] = 40] = "Debug";
|
||||||
|
})(SandpackLogLevel || (SandpackLogLevel = {}));
|
||||||
|
var createError = function(message) {
|
||||||
|
return "[sandpack-client]: ".concat(message);
|
||||||
|
};
|
||||||
|
function nullthrows(value, err) {
|
||||||
|
if (err === void 0) {
|
||||||
|
err = "Value is nullish";
|
||||||
|
}
|
||||||
|
invariant(value != null, createError(err));
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
var DEPENDENCY_ERROR_MESSAGE = '"dependencies" was not specified - provide either a package.json or a "dependencies" value';
|
||||||
|
var ENTRY_ERROR_MESSAGE = '"entry" was not specified - provide either a package.json with the "main" field or an "entry" value';
|
||||||
|
function createPackageJSON(dependencies, devDependencies, entry) {
|
||||||
|
if (dependencies === void 0) {
|
||||||
|
dependencies = {};
|
||||||
|
}
|
||||||
|
if (devDependencies === void 0) {
|
||||||
|
devDependencies = {};
|
||||||
|
}
|
||||||
|
if (entry === void 0) {
|
||||||
|
entry = "/index.js";
|
||||||
|
}
|
||||||
|
return JSON.stringify({
|
||||||
|
name: "sandpack-project",
|
||||||
|
main: entry,
|
||||||
|
dependencies,
|
||||||
|
devDependencies
|
||||||
|
}, null, 2);
|
||||||
|
}
|
||||||
|
function addPackageJSONIfNeeded(files, dependencies, devDependencies, entry) {
|
||||||
|
var _a, _b;
|
||||||
|
var normalizedFilesPath = normalizePath(files);
|
||||||
|
var packageJsonFile = normalizedFilesPath["/package.json"];
|
||||||
|
if (!packageJsonFile) {
|
||||||
|
nullthrows(dependencies, DEPENDENCY_ERROR_MESSAGE);
|
||||||
|
nullthrows(entry, ENTRY_ERROR_MESSAGE);
|
||||||
|
normalizedFilesPath["/package.json"] = {
|
||||||
|
code: createPackageJSON(dependencies, devDependencies, entry)
|
||||||
|
};
|
||||||
|
return normalizedFilesPath;
|
||||||
|
}
|
||||||
|
if (packageJsonFile) {
|
||||||
|
var packageJsonContent = JSON.parse(packageJsonFile.code);
|
||||||
|
nullthrows(!(!dependencies && !packageJsonContent.dependencies), ENTRY_ERROR_MESSAGE);
|
||||||
|
if (dependencies) {
|
||||||
|
packageJsonContent.dependencies = __assign(__assign({}, (_a = packageJsonContent.dependencies) !== null && _a !== void 0 ? _a : {}), dependencies !== null && dependencies !== void 0 ? dependencies : {});
|
||||||
|
}
|
||||||
|
if (devDependencies) {
|
||||||
|
packageJsonContent.devDependencies = __assign(__assign({}, (_b = packageJsonContent.devDependencies) !== null && _b !== void 0 ? _b : {}), devDependencies !== null && devDependencies !== void 0 ? devDependencies : {});
|
||||||
|
}
|
||||||
|
if (entry) {
|
||||||
|
packageJsonContent.main = entry;
|
||||||
|
}
|
||||||
|
normalizedFilesPath["/package.json"] = {
|
||||||
|
code: JSON.stringify(packageJsonContent, null, 2)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return normalizedFilesPath;
|
||||||
|
}
|
||||||
|
function extractErrorDetails(msg) {
|
||||||
|
var _a;
|
||||||
|
if (msg.title === "SyntaxError") {
|
||||||
|
var title = msg.title, path = msg.path, message = msg.message, line = msg.line, column = msg.column;
|
||||||
|
return { title, path, message, line, column };
|
||||||
|
}
|
||||||
|
var relevantStackFrame = getRelevantStackFrame((_a = msg.payload) === null || _a === void 0 ? void 0 : _a.frames);
|
||||||
|
if (!relevantStackFrame) {
|
||||||
|
return { message: msg.message };
|
||||||
|
}
|
||||||
|
var errorInCode = getErrorInOriginalCode(relevantStackFrame);
|
||||||
|
var errorLocation = getErrorLocation(relevantStackFrame);
|
||||||
|
var errorMessage = formatErrorMessage(relevantStackFrame._originalFileName, msg.message, errorLocation, errorInCode);
|
||||||
|
return {
|
||||||
|
message: errorMessage,
|
||||||
|
title: msg.title,
|
||||||
|
path: relevantStackFrame._originalFileName,
|
||||||
|
line: relevantStackFrame._originalLineNumber,
|
||||||
|
column: relevantStackFrame._originalColumnNumber
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function getRelevantStackFrame(frames) {
|
||||||
|
if (!frames) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
return frames.find(function(frame) {
|
||||||
|
return !!frame._originalFileName;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function getErrorLocation(errorFrame) {
|
||||||
|
return errorFrame ? " (".concat(errorFrame._originalLineNumber, ":").concat(errorFrame._originalColumnNumber, ")") : "";
|
||||||
|
}
|
||||||
|
function getErrorInOriginalCode(errorFrame) {
|
||||||
|
var lastScriptLine = errorFrame._originalScriptCode[errorFrame._originalScriptCode.length - 1];
|
||||||
|
var numberOfLineNumberCharacters = lastScriptLine.lineNumber.toString().length;
|
||||||
|
var leadingCharacterOffset = 2;
|
||||||
|
var barSeparatorCharacterOffset = 3;
|
||||||
|
var extraLineLeadingSpaces = leadingCharacterOffset + numberOfLineNumberCharacters + barSeparatorCharacterOffset + errorFrame._originalColumnNumber;
|
||||||
|
return errorFrame._originalScriptCode.reduce(function(result, scriptLine) {
|
||||||
|
var leadingChar = scriptLine.highlight ? ">" : " ";
|
||||||
|
var lineNumber = scriptLine.lineNumber.toString().length === numberOfLineNumberCharacters ? "".concat(scriptLine.lineNumber) : " ".concat(scriptLine.lineNumber);
|
||||||
|
var extraLine = scriptLine.highlight ? "\n" + " ".repeat(extraLineLeadingSpaces) + "^" : "";
|
||||||
|
return result + // accumulator
|
||||||
|
"\n" + leadingChar + // > or " "
|
||||||
|
" " + lineNumber + // line number on equal number of characters
|
||||||
|
" | " + scriptLine.content + // code
|
||||||
|
extraLine;
|
||||||
|
}, "");
|
||||||
|
}
|
||||||
|
function formatErrorMessage(filePath, message, location, errorInCode) {
|
||||||
|
return "".concat(filePath, ": ").concat(message).concat(location, "\n").concat(errorInCode);
|
||||||
|
}
|
||||||
|
var normalizePath = function(path) {
|
||||||
|
if (typeof path === "string") {
|
||||||
|
return path.startsWith("/") ? path : "/".concat(path);
|
||||||
|
}
|
||||||
|
if (Array.isArray(path)) {
|
||||||
|
return path.map(function(p) {
|
||||||
|
return p.startsWith("/") ? p : "/".concat(p);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (typeof path === "object" && path !== null) {
|
||||||
|
return Object.entries(path).reduce(function(acc, _a) {
|
||||||
|
var key = _a[0], content = _a[1];
|
||||||
|
var fileName = key.startsWith("/") ? key : "/".concat(key);
|
||||||
|
acc[fileName] = content;
|
||||||
|
return acc;
|
||||||
|
}, {});
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
export {
|
||||||
|
invariant,
|
||||||
|
__extends,
|
||||||
|
__assign,
|
||||||
|
__awaiter,
|
||||||
|
__generator,
|
||||||
|
__spreadArray,
|
||||||
|
SandpackLogLevel,
|
||||||
|
createError,
|
||||||
|
nullthrows,
|
||||||
|
createPackageJSON,
|
||||||
|
addPackageJSONIfNeeded,
|
||||||
|
extractErrorDetails,
|
||||||
|
normalizePath
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-CQSCQVZH.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
+5619
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
+1630
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+21628
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+109
@@ -0,0 +1,109 @@
|
|||||||
|
import {
|
||||||
|
require_react_is
|
||||||
|
} from "./chunk-H5MQ6BND.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
||||||
|
var require_hoist_non_react_statics_cjs = __commonJS({
|
||||||
|
"node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
||||||
|
"use strict";
|
||||||
|
var reactIs = require_react_is();
|
||||||
|
var REACT_STATICS = {
|
||||||
|
childContextTypes: true,
|
||||||
|
contextType: true,
|
||||||
|
contextTypes: true,
|
||||||
|
defaultProps: true,
|
||||||
|
displayName: true,
|
||||||
|
getDefaultProps: true,
|
||||||
|
getDerivedStateFromError: true,
|
||||||
|
getDerivedStateFromProps: true,
|
||||||
|
mixins: true,
|
||||||
|
propTypes: true,
|
||||||
|
type: true
|
||||||
|
};
|
||||||
|
var KNOWN_STATICS = {
|
||||||
|
name: true,
|
||||||
|
length: true,
|
||||||
|
prototype: true,
|
||||||
|
caller: true,
|
||||||
|
callee: true,
|
||||||
|
arguments: true,
|
||||||
|
arity: true
|
||||||
|
};
|
||||||
|
var FORWARD_REF_STATICS = {
|
||||||
|
"$$typeof": true,
|
||||||
|
render: true,
|
||||||
|
defaultProps: true,
|
||||||
|
displayName: true,
|
||||||
|
propTypes: true
|
||||||
|
};
|
||||||
|
var MEMO_STATICS = {
|
||||||
|
"$$typeof": true,
|
||||||
|
compare: true,
|
||||||
|
defaultProps: true,
|
||||||
|
displayName: true,
|
||||||
|
propTypes: true,
|
||||||
|
type: true
|
||||||
|
};
|
||||||
|
var TYPE_STATICS = {};
|
||||||
|
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
||||||
|
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
||||||
|
function getStatics(component) {
|
||||||
|
if (reactIs.isMemo(component)) {
|
||||||
|
return MEMO_STATICS;
|
||||||
|
}
|
||||||
|
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
||||||
|
}
|
||||||
|
var defineProperty = Object.defineProperty;
|
||||||
|
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
||||||
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
||||||
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||||||
|
var getPrototypeOf = Object.getPrototypeOf;
|
||||||
|
var objectPrototype = Object.prototype;
|
||||||
|
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
||||||
|
if (typeof sourceComponent !== "string") {
|
||||||
|
if (objectPrototype) {
|
||||||
|
var inheritedComponent = getPrototypeOf(sourceComponent);
|
||||||
|
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
||||||
|
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var keys = getOwnPropertyNames(sourceComponent);
|
||||||
|
if (getOwnPropertySymbols) {
|
||||||
|
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
||||||
|
}
|
||||||
|
var targetStatics = getStatics(targetComponent);
|
||||||
|
var sourceStatics = getStatics(sourceComponent);
|
||||||
|
for (var i = 0; i < keys.length; ++i) {
|
||||||
|
var key = keys[i];
|
||||||
|
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
||||||
|
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
||||||
|
try {
|
||||||
|
defineProperty(targetComponent, key, descriptor);
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return targetComponent;
|
||||||
|
}
|
||||||
|
module.exports = hoistNonReactStatics;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
||||||
|
function memoize(fn) {
|
||||||
|
var cache = /* @__PURE__ */ Object.create(null);
|
||||||
|
return function(arg) {
|
||||||
|
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
||||||
|
return cache[arg];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
memoize,
|
||||||
|
require_hoist_non_react_statics_cjs
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-FFYAK5JG.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js", "../../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"],
|
||||||
|
"sourcesContent": ["'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n", "function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n"],
|
||||||
|
"mappings": ";;;;;;;;AAAA;AAAA;AAAA;AAEA,QAAI,UAAU;AAMd,QAAI,gBAAgB;AAAA,MAClB,mBAAmB;AAAA,MACnB,aAAa;AAAA,MACb,cAAc;AAAA,MACd,cAAc;AAAA,MACd,aAAa;AAAA,MACb,iBAAiB;AAAA,MACjB,0BAA0B;AAAA,MAC1B,0BAA0B;AAAA,MAC1B,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,MAAM;AAAA,IACR;AACA,QAAI,gBAAgB;AAAA,MAClB,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,OAAO;AAAA,IACT;AACA,QAAI,sBAAsB;AAAA,MACxB,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,cAAc;AAAA,MACd,aAAa;AAAA,MACb,WAAW;AAAA,IACb;AACA,QAAI,eAAe;AAAA,MACjB,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,cAAc;AAAA,MACd,aAAa;AAAA,MACb,WAAW;AAAA,MACX,MAAM;AAAA,IACR;AACA,QAAI,eAAe,CAAC;AACpB,iBAAa,QAAQ,UAAU,IAAI;AACnC,iBAAa,QAAQ,IAAI,IAAI;AAE7B,aAAS,WAAW,WAAW;AAE7B,UAAI,QAAQ,OAAO,SAAS,GAAG;AAC7B,eAAO;AAAA,MACT;AAGA,aAAO,aAAa,UAAU,UAAU,CAAC,KAAK;AAAA,IAChD;AAEA,QAAI,iBAAiB,OAAO;AAC5B,QAAI,sBAAsB,OAAO;AACjC,QAAI,wBAAwB,OAAO;AACnC,QAAI,2BAA2B,OAAO;AACtC,QAAI,iBAAiB,OAAO;AAC5B,QAAI,kBAAkB,OAAO;AAC7B,aAAS,qBAAqB,iBAAiB,iBAAiB,WAAW;AACzE,UAAI,OAAO,oBAAoB,UAAU;AAEvC,YAAI,iBAAiB;AACnB,cAAI,qBAAqB,eAAe,eAAe;AAEvD,cAAI,sBAAsB,uBAAuB,iBAAiB;AAChE,iCAAqB,iBAAiB,oBAAoB,SAAS;AAAA,UACrE;AAAA,QACF;AAEA,YAAI,OAAO,oBAAoB,eAAe;AAE9C,YAAI,uBAAuB;AACzB,iBAAO,KAAK,OAAO,sBAAsB,eAAe,CAAC;AAAA,QAC3D;AAEA,YAAI,gBAAgB,WAAW,eAAe;AAC9C,YAAI,gBAAgB,WAAW,eAAe;AAE9C,iBAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,EAAE,GAAG;AACpC,cAAI,MAAM,KAAK,CAAC;AAEhB,cAAI,CAAC,cAAc,GAAG,KAAK,EAAE,aAAa,UAAU,GAAG,MAAM,EAAE,iBAAiB,cAAc,GAAG,MAAM,EAAE,iBAAiB,cAAc,GAAG,IAAI;AAC7I,gBAAI,aAAa,yBAAyB,iBAAiB,GAAG;AAE9D,gBAAI;AAEF,6BAAe,iBAAiB,KAAK,UAAU;AAAA,YACjD,SAAS,GAAG;AAAA,YAAC;AAAA,UACf;AAAA,QACF;AAAA,MACF;AAEA,aAAO;AAAA,IACT;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACtGjB,SAAS,QAAQ,IAAI;AACnB,MAAI,QAAQ,uBAAO,OAAO,IAAI;AAC9B,SAAO,SAAU,KAAK;AACpB,QAAI,MAAM,GAAG,MAAM,OAAW,OAAM,GAAG,IAAI,GAAG,GAAG;AACjD,WAAO,MAAM,GAAG;AAAA,EAClB;AACF;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+77
@@ -0,0 +1,77 @@
|
|||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/classnames/index.js
|
||||||
|
var require_classnames = __commonJS({
|
||||||
|
"node_modules/classnames/index.js"(exports, module) {
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
var hasOwn = {}.hasOwnProperty;
|
||||||
|
function classNames() {
|
||||||
|
var classes = "";
|
||||||
|
for (var i = 0; i < arguments.length; i++) {
|
||||||
|
var arg = arguments[i];
|
||||||
|
if (arg) {
|
||||||
|
classes = appendClass(classes, parseValue(arg));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return classes;
|
||||||
|
}
|
||||||
|
function parseValue(arg) {
|
||||||
|
if (typeof arg === "string" || typeof arg === "number") {
|
||||||
|
return arg;
|
||||||
|
}
|
||||||
|
if (typeof arg !== "object") {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (Array.isArray(arg)) {
|
||||||
|
return classNames.apply(null, arg);
|
||||||
|
}
|
||||||
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
||||||
|
return arg.toString();
|
||||||
|
}
|
||||||
|
var classes = "";
|
||||||
|
for (var key in arg) {
|
||||||
|
if (hasOwn.call(arg, key) && arg[key]) {
|
||||||
|
classes = appendClass(classes, key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return classes;
|
||||||
|
}
|
||||||
|
function appendClass(value, newClass) {
|
||||||
|
if (!newClass) {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
if (value) {
|
||||||
|
return value + " " + newClass;
|
||||||
|
}
|
||||||
|
return value + newClass;
|
||||||
|
}
|
||||||
|
if (typeof module !== "undefined" && module.exports) {
|
||||||
|
classNames.default = classNames;
|
||||||
|
module.exports = classNames;
|
||||||
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
||||||
|
define("classnames", [], function() {
|
||||||
|
return classNames;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
window.classNames = classNames;
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_classnames
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
classnames/index.js:
|
||||||
|
(*!
|
||||||
|
Copyright (c) 2018 Jed Watson.
|
||||||
|
Licensed under the MIT License (MIT), see
|
||||||
|
http://jedwatson.github.io/classnames
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=chunk-GSKJAQL2.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/classnames/index.js"],
|
||||||
|
"sourcesContent": ["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],
|
||||||
|
"mappings": ";;;;;AAAA;AAAA;AAOA,KAAC,WAAY;AACZ;AAEA,UAAI,SAAS,CAAC,EAAE;AAEhB,eAAS,aAAc;AACtB,YAAI,UAAU;AAEd,iBAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AAC1C,cAAI,MAAM,UAAU,CAAC;AACrB,cAAI,KAAK;AACR,sBAAU,YAAY,SAAS,WAAW,GAAG,CAAC;AAAA,UAC/C;AAAA,QACD;AAEA,eAAO;AAAA,MACR;AAEA,eAAS,WAAY,KAAK;AACzB,YAAI,OAAO,QAAQ,YAAY,OAAO,QAAQ,UAAU;AACvD,iBAAO;AAAA,QACR;AAEA,YAAI,OAAO,QAAQ,UAAU;AAC5B,iBAAO;AAAA,QACR;AAEA,YAAI,MAAM,QAAQ,GAAG,GAAG;AACvB,iBAAO,WAAW,MAAM,MAAM,GAAG;AAAA,QAClC;AAEA,YAAI,IAAI,aAAa,OAAO,UAAU,YAAY,CAAC,IAAI,SAAS,SAAS,EAAE,SAAS,eAAe,GAAG;AACrG,iBAAO,IAAI,SAAS;AAAA,QACrB;AAEA,YAAI,UAAU;AAEd,iBAAS,OAAO,KAAK;AACpB,cAAI,OAAO,KAAK,KAAK,GAAG,KAAK,IAAI,GAAG,GAAG;AACtC,sBAAU,YAAY,SAAS,GAAG;AAAA,UACnC;AAAA,QACD;AAEA,eAAO;AAAA,MACR;AAEA,eAAS,YAAa,OAAO,UAAU;AACtC,YAAI,CAAC,UAAU;AACd,iBAAO;AAAA,QACR;AAEA,YAAI,OAAO;AACV,iBAAO,QAAQ,MAAM;AAAA,QACtB;AAEA,eAAO,QAAQ;AAAA,MAChB;AAEA,UAAI,OAAO,WAAW,eAAe,OAAO,SAAS;AACpD,mBAAW,UAAU;AACrB,eAAO,UAAU;AAAA,MAClB,WAAW,OAAO,WAAW,cAAc,OAAO,OAAO,QAAQ,YAAY,OAAO,KAAK;AAExF,eAAO,cAAc,CAAC,GAAG,WAAY;AACpC,iBAAO;AAAA,QACR,CAAC;AAAA,MACF,OAAO;AACN,eAAO,aAAa;AAAA,MACrB;AAAA,IACD,GAAE;AAAA;AAAA;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+187
@@ -0,0 +1,187 @@
|
|||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/react-is/cjs/react-is.development.js
|
||||||
|
var require_react_is_development = __commonJS({
|
||||||
|
"node_modules/react-is/cjs/react-is.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
||||||
|
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
||||||
|
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
||||||
|
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
||||||
|
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
||||||
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
||||||
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
||||||
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
||||||
|
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
||||||
|
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
||||||
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
||||||
|
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
||||||
|
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
||||||
|
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
||||||
|
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
||||||
|
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
||||||
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
||||||
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
||||||
|
function isValidElementType(type) {
|
||||||
|
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
||||||
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
||||||
|
}
|
||||||
|
function typeOf(object) {
|
||||||
|
if (typeof object === "object" && object !== null) {
|
||||||
|
var $$typeof = object.$$typeof;
|
||||||
|
switch ($$typeof) {
|
||||||
|
case REACT_ELEMENT_TYPE:
|
||||||
|
var type = object.type;
|
||||||
|
switch (type) {
|
||||||
|
case REACT_ASYNC_MODE_TYPE:
|
||||||
|
case REACT_CONCURRENT_MODE_TYPE:
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return type;
|
||||||
|
default:
|
||||||
|
var $$typeofType = type && type.$$typeof;
|
||||||
|
switch ($$typeofType) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
case REACT_LAZY_TYPE:
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
return $$typeofType;
|
||||||
|
default:
|
||||||
|
return $$typeof;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return $$typeof;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
|
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
||||||
|
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
||||||
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
||||||
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
||||||
|
var Element = REACT_ELEMENT_TYPE;
|
||||||
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
||||||
|
var Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
var Lazy = REACT_LAZY_TYPE;
|
||||||
|
var Memo = REACT_MEMO_TYPE;
|
||||||
|
var Portal = REACT_PORTAL_TYPE;
|
||||||
|
var Profiler = REACT_PROFILER_TYPE;
|
||||||
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
||||||
|
var Suspense = REACT_SUSPENSE_TYPE;
|
||||||
|
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
||||||
|
function isAsyncMode(object) {
|
||||||
|
{
|
||||||
|
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
||||||
|
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
||||||
|
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isConcurrentMode(object) {
|
||||||
|
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isContextConsumer(object) {
|
||||||
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
||||||
|
}
|
||||||
|
function isContextProvider(object) {
|
||||||
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
||||||
|
}
|
||||||
|
function isElement(object) {
|
||||||
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
function isForwardRef(object) {
|
||||||
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
||||||
|
}
|
||||||
|
function isFragment(object) {
|
||||||
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
||||||
|
}
|
||||||
|
function isLazy(object) {
|
||||||
|
return typeOf(object) === REACT_LAZY_TYPE;
|
||||||
|
}
|
||||||
|
function isMemo(object) {
|
||||||
|
return typeOf(object) === REACT_MEMO_TYPE;
|
||||||
|
}
|
||||||
|
function isPortal(object) {
|
||||||
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
||||||
|
}
|
||||||
|
function isProfiler(object) {
|
||||||
|
return typeOf(object) === REACT_PROFILER_TYPE;
|
||||||
|
}
|
||||||
|
function isStrictMode(object) {
|
||||||
|
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isSuspense(object) {
|
||||||
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
||||||
|
}
|
||||||
|
exports.AsyncMode = AsyncMode;
|
||||||
|
exports.ConcurrentMode = ConcurrentMode;
|
||||||
|
exports.ContextConsumer = ContextConsumer;
|
||||||
|
exports.ContextProvider = ContextProvider;
|
||||||
|
exports.Element = Element;
|
||||||
|
exports.ForwardRef = ForwardRef;
|
||||||
|
exports.Fragment = Fragment;
|
||||||
|
exports.Lazy = Lazy;
|
||||||
|
exports.Memo = Memo;
|
||||||
|
exports.Portal = Portal;
|
||||||
|
exports.Profiler = Profiler;
|
||||||
|
exports.StrictMode = StrictMode;
|
||||||
|
exports.Suspense = Suspense;
|
||||||
|
exports.isAsyncMode = isAsyncMode;
|
||||||
|
exports.isConcurrentMode = isConcurrentMode;
|
||||||
|
exports.isContextConsumer = isContextConsumer;
|
||||||
|
exports.isContextProvider = isContextProvider;
|
||||||
|
exports.isElement = isElement;
|
||||||
|
exports.isForwardRef = isForwardRef;
|
||||||
|
exports.isFragment = isFragment;
|
||||||
|
exports.isLazy = isLazy;
|
||||||
|
exports.isMemo = isMemo;
|
||||||
|
exports.isPortal = isPortal;
|
||||||
|
exports.isProfiler = isProfiler;
|
||||||
|
exports.isStrictMode = isStrictMode;
|
||||||
|
exports.isSuspense = isSuspense;
|
||||||
|
exports.isValidElementType = isValidElementType;
|
||||||
|
exports.typeOf = typeOf;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/react-is/index.js
|
||||||
|
var require_react_is = __commonJS({
|
||||||
|
"node_modules/react-is/index.js"(exports, module) {
|
||||||
|
"use strict";
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_is_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_react_is
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react-is/cjs/react-is.development.js:
|
||||||
|
(** @license React v16.13.1
|
||||||
|
* react-is.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=chunk-H5MQ6BND.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
+46
@@ -0,0 +1,46 @@
|
|||||||
|
import {
|
||||||
|
dequal
|
||||||
|
} from "./chunk-UVSV26GJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codesandbox/sandpack-client/dist/base-80a1f760.mjs
|
||||||
|
var SandpackClient = (
|
||||||
|
/** @class */
|
||||||
|
function() {
|
||||||
|
function SandpackClient2(iframeSelector, sandboxSetup, options) {
|
||||||
|
if (options === void 0) {
|
||||||
|
options = {};
|
||||||
|
}
|
||||||
|
this.status = "idle";
|
||||||
|
this.options = options;
|
||||||
|
this.sandboxSetup = sandboxSetup;
|
||||||
|
this.iframeSelector = iframeSelector;
|
||||||
|
}
|
||||||
|
SandpackClient2.prototype.updateOptions = function(options) {
|
||||||
|
if (!dequal(this.options, options)) {
|
||||||
|
this.options = options;
|
||||||
|
this.updateSandbox();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
SandpackClient2.prototype.updateSandbox = function(_sandboxSetup, _isInitializationCompile) {
|
||||||
|
if (_sandboxSetup === void 0) {
|
||||||
|
_sandboxSetup = this.sandboxSetup;
|
||||||
|
}
|
||||||
|
throw Error("Method not implemented");
|
||||||
|
};
|
||||||
|
SandpackClient2.prototype.destroy = function() {
|
||||||
|
throw Error("Method not implemented");
|
||||||
|
};
|
||||||
|
SandpackClient2.prototype.dispatch = function(_message) {
|
||||||
|
throw Error("Method not implemented");
|
||||||
|
};
|
||||||
|
SandpackClient2.prototype.listen = function(_listener) {
|
||||||
|
throw Error("Method not implemented");
|
||||||
|
};
|
||||||
|
return SandpackClient2;
|
||||||
|
}()
|
||||||
|
);
|
||||||
|
|
||||||
|
export {
|
||||||
|
SandpackClient
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-HCAY5AHM.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/@codesandbox/sandpack-client/dist/base-80a1f760.mjs"],
|
||||||
|
"sourcesContent": ["import { dequal } from 'dequal';\n\nvar SandpackClient = /** @class */ (function () {\n function SandpackClient(iframeSelector, sandboxSetup, options) {\n if (options === void 0) { options = {}; }\n this.status = \"idle\";\n this.options = options;\n this.sandboxSetup = sandboxSetup;\n this.iframeSelector = iframeSelector;\n }\n /**\n * Clients handles\n */\n SandpackClient.prototype.updateOptions = function (options) {\n if (!dequal(this.options, options)) {\n this.options = options;\n this.updateSandbox();\n }\n };\n SandpackClient.prototype.updateSandbox = function (_sandboxSetup, _isInitializationCompile) {\n if (_sandboxSetup === void 0) { _sandboxSetup = this.sandboxSetup; }\n throw Error(\"Method not implemented\");\n };\n SandpackClient.prototype.destroy = function () {\n throw Error(\"Method not implemented\");\n };\n /**\n * Bundler communication\n */\n SandpackClient.prototype.dispatch = function (_message) {\n throw Error(\"Method not implemented\");\n };\n SandpackClient.prototype.listen = function (_listener) {\n throw Error(\"Method not implemented\");\n };\n return SandpackClient;\n}());\n\nexport { SandpackClient as S };\n"],
|
||||||
|
"mappings": ";;;;;AAEA,IAAI;AAAA;AAAA,EAAgC,WAAY;AAC5C,aAASA,gBAAe,gBAAgB,cAAc,SAAS;AAC3D,UAAI,YAAY,QAAQ;AAAE,kBAAU,CAAC;AAAA,MAAG;AACxC,WAAK,SAAS;AACd,WAAK,UAAU;AACf,WAAK,eAAe;AACpB,WAAK,iBAAiB;AAAA,IAC1B;AAIA,IAAAA,gBAAe,UAAU,gBAAgB,SAAU,SAAS;AACxD,UAAI,CAAC,OAAO,KAAK,SAAS,OAAO,GAAG;AAChC,aAAK,UAAU;AACf,aAAK,cAAc;AAAA,MACvB;AAAA,IACJ;AACA,IAAAA,gBAAe,UAAU,gBAAgB,SAAU,eAAe,0BAA0B;AACxF,UAAI,kBAAkB,QAAQ;AAAE,wBAAgB,KAAK;AAAA,MAAc;AACnE,YAAM,MAAM,wBAAwB;AAAA,IACxC;AACA,IAAAA,gBAAe,UAAU,UAAU,WAAY;AAC3C,YAAM,MAAM,wBAAwB;AAAA,IACxC;AAIA,IAAAA,gBAAe,UAAU,WAAW,SAAU,UAAU;AACpD,YAAM,MAAM,wBAAwB;AAAA,IACxC;AACA,IAAAA,gBAAe,UAAU,SAAS,SAAU,WAAW;AACnD,YAAM,MAAM,wBAAwB;AAAA,IACxC;AACA,WAAOA;AAAA,EACX,EAAE;AAAA;",
|
||||||
|
"names": ["SandpackClient"]
|
||||||
|
}
|
||||||
+20442
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+1906
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+131
@@ -0,0 +1,131 @@
|
|||||||
|
// node_modules/@codemirror/legacy-modes/mode/simple-mode.js
|
||||||
|
function simpleMode(states) {
|
||||||
|
ensureState(states, "start");
|
||||||
|
var states_ = {}, meta = states.languageData || {}, hasIndentation = false;
|
||||||
|
for (var state in states) if (state != meta && states.hasOwnProperty(state)) {
|
||||||
|
var list = states_[state] = [], orig = states[state];
|
||||||
|
for (var i = 0; i < orig.length; i++) {
|
||||||
|
var data = orig[i];
|
||||||
|
list.push(new Rule(data, states));
|
||||||
|
if (data.indent || data.dedent) hasIndentation = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
name: meta.name,
|
||||||
|
startState: function() {
|
||||||
|
return { state: "start", pending: null, indent: hasIndentation ? [] : null };
|
||||||
|
},
|
||||||
|
copyState: function(state2) {
|
||||||
|
var s = { state: state2.state, pending: state2.pending, indent: state2.indent && state2.indent.slice(0) };
|
||||||
|
if (state2.stack)
|
||||||
|
s.stack = state2.stack.slice(0);
|
||||||
|
return s;
|
||||||
|
},
|
||||||
|
token: tokenFunction(states_),
|
||||||
|
indent: indentFunction(states_, meta),
|
||||||
|
languageData: meta
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function ensureState(states, name) {
|
||||||
|
if (!states.hasOwnProperty(name))
|
||||||
|
throw new Error("Undefined state " + name + " in simple mode");
|
||||||
|
}
|
||||||
|
function toRegex(val, caret) {
|
||||||
|
if (!val) return /(?:)/;
|
||||||
|
var flags = "";
|
||||||
|
if (val instanceof RegExp) {
|
||||||
|
if (val.ignoreCase) flags = "i";
|
||||||
|
val = val.source;
|
||||||
|
} else {
|
||||||
|
val = String(val);
|
||||||
|
}
|
||||||
|
return new RegExp((caret === false ? "" : "^") + "(?:" + val + ")", flags);
|
||||||
|
}
|
||||||
|
function asToken(val) {
|
||||||
|
if (!val) return null;
|
||||||
|
if (val.apply) return val;
|
||||||
|
if (typeof val == "string") return val.replace(/\./g, " ");
|
||||||
|
var result = [];
|
||||||
|
for (var i = 0; i < val.length; i++)
|
||||||
|
result.push(val[i] && val[i].replace(/\./g, " "));
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
function Rule(data, states) {
|
||||||
|
if (data.next || data.push) ensureState(states, data.next || data.push);
|
||||||
|
this.regex = toRegex(data.regex);
|
||||||
|
this.token = asToken(data.token);
|
||||||
|
this.data = data;
|
||||||
|
}
|
||||||
|
function tokenFunction(states) {
|
||||||
|
return function(stream, state) {
|
||||||
|
if (state.pending) {
|
||||||
|
var pend = state.pending.shift();
|
||||||
|
if (state.pending.length == 0) state.pending = null;
|
||||||
|
stream.pos += pend.text.length;
|
||||||
|
return pend.token;
|
||||||
|
}
|
||||||
|
var curState = states[state.state];
|
||||||
|
for (var i = 0; i < curState.length; i++) {
|
||||||
|
var rule = curState[i];
|
||||||
|
var matches = (!rule.data.sol || stream.sol()) && stream.match(rule.regex);
|
||||||
|
if (matches) {
|
||||||
|
if (rule.data.next) {
|
||||||
|
state.state = rule.data.next;
|
||||||
|
} else if (rule.data.push) {
|
||||||
|
(state.stack || (state.stack = [])).push(state.state);
|
||||||
|
state.state = rule.data.push;
|
||||||
|
} else if (rule.data.pop && state.stack && state.stack.length) {
|
||||||
|
state.state = state.stack.pop();
|
||||||
|
}
|
||||||
|
if (rule.data.indent)
|
||||||
|
state.indent.push(stream.indentation() + stream.indentUnit);
|
||||||
|
if (rule.data.dedent)
|
||||||
|
state.indent.pop();
|
||||||
|
var token = rule.token;
|
||||||
|
if (token && token.apply) token = token(matches);
|
||||||
|
if (matches.length > 2 && rule.token && typeof rule.token != "string") {
|
||||||
|
state.pending = [];
|
||||||
|
for (var j = 2; j < matches.length; j++)
|
||||||
|
if (matches[j])
|
||||||
|
state.pending.push({ text: matches[j], token: rule.token[j - 1] });
|
||||||
|
stream.backUp(matches[0].length - (matches[1] ? matches[1].length : 0));
|
||||||
|
return token[0];
|
||||||
|
} else if (token && token.join) {
|
||||||
|
return token[0];
|
||||||
|
} else {
|
||||||
|
return token;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stream.next();
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function indentFunction(states, meta) {
|
||||||
|
return function(state, textAfter) {
|
||||||
|
if (state.indent == null || meta.dontIndentStates && meta.dontIndentStates.indexOf(state.state) > -1)
|
||||||
|
return null;
|
||||||
|
var pos = state.indent.length - 1, rules = states[state.state];
|
||||||
|
scan: for (; ; ) {
|
||||||
|
for (var i = 0; i < rules.length; i++) {
|
||||||
|
var rule = rules[i];
|
||||||
|
if (rule.data.dedent && rule.data.dedentIfLineStart !== false) {
|
||||||
|
var m = rule.regex.exec(textAfter);
|
||||||
|
if (m && m[0]) {
|
||||||
|
pos--;
|
||||||
|
if (rule.next || rule.push) rules = states[rule.next || rule.push];
|
||||||
|
textAfter = textAfter.slice(m[0].length);
|
||||||
|
continue scan;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return pos < 0 ? 0 : state.indent[pos];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
simpleMode
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-LLCG3GAF.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/@codemirror/legacy-modes/mode/simple-mode.js"],
|
||||||
|
"sourcesContent": ["export function simpleMode(states) {\n ensureState(states, \"start\");\n var states_ = {}, meta = states.languageData || {}, hasIndentation = false;\n for (var state in states) if (state != meta && states.hasOwnProperty(state)) {\n var list = states_[state] = [], orig = states[state];\n for (var i = 0; i < orig.length; i++) {\n var data = orig[i];\n list.push(new Rule(data, states));\n if (data.indent || data.dedent) hasIndentation = true;\n }\n }\n return {\n name: meta.name,\n startState: function() {\n return {state: \"start\", pending: null, indent: hasIndentation ? [] : null};\n },\n copyState: function(state) {\n var s = {state: state.state, pending: state.pending, indent: state.indent && state.indent.slice(0)};\n if (state.stack)\n s.stack = state.stack.slice(0);\n return s;\n },\n token: tokenFunction(states_),\n indent: indentFunction(states_, meta),\n languageData: meta\n }\n};\n\nfunction ensureState(states, name) {\n if (!states.hasOwnProperty(name))\n throw new Error(\"Undefined state \" + name + \" in simple mode\");\n}\n\nfunction toRegex(val, caret) {\n if (!val) return /(?:)/;\n var flags = \"\";\n if (val instanceof RegExp) {\n if (val.ignoreCase) flags = \"i\";\n val = val.source;\n } else {\n val = String(val);\n }\n return new RegExp((caret === false ? \"\" : \"^\") + \"(?:\" + val + \")\", flags);\n}\n\nfunction asToken(val) {\n if (!val) return null;\n if (val.apply) return val\n if (typeof val == \"string\") return val.replace(/\\./g, \" \");\n var result = [];\n for (var i = 0; i < val.length; i++)\n result.push(val[i] && val[i].replace(/\\./g, \" \"));\n return result;\n}\n\nfunction Rule(data, states) {\n if (data.next || data.push) ensureState(states, data.next || data.push);\n this.regex = toRegex(data.regex);\n this.token = asToken(data.token);\n this.data = data;\n}\n\nfunction tokenFunction(states) {\n return function(stream, state) {\n if (state.pending) {\n var pend = state.pending.shift();\n if (state.pending.length == 0) state.pending = null;\n stream.pos += pend.text.length;\n return pend.token;\n }\n\n var curState = states[state.state];\n for (var i = 0; i < curState.length; i++) {\n var rule = curState[i];\n var matches = (!rule.data.sol || stream.sol()) && stream.match(rule.regex);\n if (matches) {\n if (rule.data.next) {\n state.state = rule.data.next;\n } else if (rule.data.push) {\n (state.stack || (state.stack = [])).push(state.state);\n state.state = rule.data.push;\n } else if (rule.data.pop && state.stack && state.stack.length) {\n state.state = state.stack.pop();\n }\n\n if (rule.data.indent)\n state.indent.push(stream.indentation() + stream.indentUnit);\n if (rule.data.dedent)\n state.indent.pop();\n var token = rule.token\n if (token && token.apply) token = token(matches)\n if (matches.length > 2 && rule.token && typeof rule.token != \"string\") {\n state.pending = [];\n for (var j = 2; j < matches.length; j++)\n if (matches[j])\n state.pending.push({text: matches[j], token: rule.token[j - 1]});\n stream.backUp(matches[0].length - (matches[1] ? matches[1].length : 0));\n return token[0];\n } else if (token && token.join) {\n return token[0];\n } else {\n return token;\n }\n }\n }\n stream.next();\n return null;\n };\n}\n\nfunction indentFunction(states, meta) {\n return function(state, textAfter) {\n if (state.indent == null || meta.dontIndentStates && meta.dontIndentStates.indexOf(state.state) > -1)\n return null\n\n var pos = state.indent.length - 1, rules = states[state.state];\n scan: for (;;) {\n for (var i = 0; i < rules.length; i++) {\n var rule = rules[i];\n if (rule.data.dedent && rule.data.dedentIfLineStart !== false) {\n var m = rule.regex.exec(textAfter);\n if (m && m[0]) {\n pos--;\n if (rule.next || rule.push) rules = states[rule.next || rule.push];\n textAfter = textAfter.slice(m[0].length);\n continue scan;\n }\n }\n }\n break;\n }\n return pos < 0 ? 0 : state.indent[pos];\n };\n}\n"],
|
||||||
|
"mappings": ";AAAO,SAAS,WAAW,QAAQ;AACjC,cAAY,QAAQ,OAAO;AAC3B,MAAI,UAAU,CAAC,GAAG,OAAO,OAAO,gBAAgB,CAAC,GAAG,iBAAiB;AACrE,WAAS,SAAS,OAAQ,KAAI,SAAS,QAAQ,OAAO,eAAe,KAAK,GAAG;AAC3E,QAAI,OAAO,QAAQ,KAAK,IAAI,CAAC,GAAG,OAAO,OAAO,KAAK;AACnD,aAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,UAAI,OAAO,KAAK,CAAC;AACjB,WAAK,KAAK,IAAI,KAAK,MAAM,MAAM,CAAC;AAChC,UAAI,KAAK,UAAU,KAAK,OAAQ,kBAAiB;AAAA,IACnD;AAAA,EACF;AACA,SAAO;AAAA,IACL,MAAM,KAAK;AAAA,IACX,YAAY,WAAW;AACrB,aAAO,EAAC,OAAO,SAAS,SAAS,MAAM,QAAQ,iBAAiB,CAAC,IAAI,KAAI;AAAA,IAC3E;AAAA,IACA,WAAW,SAASA,QAAO;AACzB,UAAI,IAAI,EAAC,OAAOA,OAAM,OAAO,SAASA,OAAM,SAAS,QAAQA,OAAM,UAAUA,OAAM,OAAO,MAAM,CAAC,EAAC;AAClG,UAAIA,OAAM;AACR,UAAE,QAAQA,OAAM,MAAM,MAAM,CAAC;AAC/B,aAAO;AAAA,IACT;AAAA,IACA,OAAO,cAAc,OAAO;AAAA,IAC5B,QAAQ,eAAe,SAAS,IAAI;AAAA,IACpC,cAAc;AAAA,EAChB;AACF;AAEA,SAAS,YAAY,QAAQ,MAAM;AACjC,MAAI,CAAC,OAAO,eAAe,IAAI;AAC7B,UAAM,IAAI,MAAM,qBAAqB,OAAO,iBAAiB;AACjE;AAEA,SAAS,QAAQ,KAAK,OAAO;AAC3B,MAAI,CAAC,IAAK,QAAO;AACjB,MAAI,QAAQ;AACZ,MAAI,eAAe,QAAQ;AACzB,QAAI,IAAI,WAAY,SAAQ;AAC5B,UAAM,IAAI;AAAA,EACZ,OAAO;AACL,UAAM,OAAO,GAAG;AAAA,EAClB;AACA,SAAO,IAAI,QAAQ,UAAU,QAAQ,KAAK,OAAO,QAAQ,MAAM,KAAK,KAAK;AAC3E;AAEA,SAAS,QAAQ,KAAK;AACpB,MAAI,CAAC,IAAK,QAAO;AACjB,MAAI,IAAI,MAAO,QAAO;AACtB,MAAI,OAAO,OAAO,SAAU,QAAO,IAAI,QAAQ,OAAO,GAAG;AACzD,MAAI,SAAS,CAAC;AACd,WAAS,IAAI,GAAG,IAAI,IAAI,QAAQ;AAC9B,WAAO,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,EAAE,QAAQ,OAAO,GAAG,CAAC;AAClD,SAAO;AACT;AAEA,SAAS,KAAK,MAAM,QAAQ;AAC1B,MAAI,KAAK,QAAQ,KAAK,KAAM,aAAY,QAAQ,KAAK,QAAQ,KAAK,IAAI;AACtE,OAAK,QAAQ,QAAQ,KAAK,KAAK;AAC/B,OAAK,QAAQ,QAAQ,KAAK,KAAK;AAC/B,OAAK,OAAO;AACd;AAEA,SAAS,cAAc,QAAQ;AAC7B,SAAO,SAAS,QAAQ,OAAO;AAC7B,QAAI,MAAM,SAAS;AACjB,UAAI,OAAO,MAAM,QAAQ,MAAM;AAC/B,UAAI,MAAM,QAAQ,UAAU,EAAG,OAAM,UAAU;AAC/C,aAAO,OAAO,KAAK,KAAK;AACxB,aAAO,KAAK;AAAA,IACd;AAEA,QAAI,WAAW,OAAO,MAAM,KAAK;AACjC,aAAS,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;AACxC,UAAI,OAAO,SAAS,CAAC;AACrB,UAAI,WAAW,CAAC,KAAK,KAAK,OAAO,OAAO,IAAI,MAAM,OAAO,MAAM,KAAK,KAAK;AACzE,UAAI,SAAS;AACX,YAAI,KAAK,KAAK,MAAM;AAClB,gBAAM,QAAQ,KAAK,KAAK;AAAA,QAC1B,WAAW,KAAK,KAAK,MAAM;AACzB,WAAC,MAAM,UAAU,MAAM,QAAQ,CAAC,IAAI,KAAK,MAAM,KAAK;AACpD,gBAAM,QAAQ,KAAK,KAAK;AAAA,QAC1B,WAAW,KAAK,KAAK,OAAO,MAAM,SAAS,MAAM,MAAM,QAAQ;AAC7D,gBAAM,QAAQ,MAAM,MAAM,IAAI;AAAA,QAChC;AAEA,YAAI,KAAK,KAAK;AACZ,gBAAM,OAAO,KAAK,OAAO,YAAY,IAAI,OAAO,UAAU;AAC5D,YAAI,KAAK,KAAK;AACZ,gBAAM,OAAO,IAAI;AACnB,YAAI,QAAQ,KAAK;AACjB,YAAI,SAAS,MAAM,MAAO,SAAQ,MAAM,OAAO;AAC/C,YAAI,QAAQ,SAAS,KAAK,KAAK,SAAS,OAAO,KAAK,SAAS,UAAU;AACrE,gBAAM,UAAU,CAAC;AACjB,mBAAS,IAAI,GAAG,IAAI,QAAQ,QAAQ;AAClC,gBAAI,QAAQ,CAAC;AACX,oBAAM,QAAQ,KAAK,EAAC,MAAM,QAAQ,CAAC,GAAG,OAAO,KAAK,MAAM,IAAI,CAAC,EAAC,CAAC;AACnE,iBAAO,OAAO,QAAQ,CAAC,EAAE,UAAU,QAAQ,CAAC,IAAI,QAAQ,CAAC,EAAE,SAAS,EAAE;AACtE,iBAAO,MAAM,CAAC;AAAA,QAChB,WAAW,SAAS,MAAM,MAAM;AAC9B,iBAAO,MAAM,CAAC;AAAA,QAChB,OAAO;AACL,iBAAO;AAAA,QACT;AAAA,MACF;AAAA,IACF;AACA,WAAO,KAAK;AACZ,WAAO;AAAA,EACT;AACF;AAEA,SAAS,eAAe,QAAQ,MAAM;AACpC,SAAO,SAAS,OAAO,WAAW;AAChC,QAAI,MAAM,UAAU,QAAQ,KAAK,oBAAoB,KAAK,iBAAiB,QAAQ,MAAM,KAAK,IAAI;AAChG,aAAO;AAET,QAAI,MAAM,MAAM,OAAO,SAAS,GAAG,QAAQ,OAAO,MAAM,KAAK;AAC7D,SAAM,YAAS;AACb,eAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,YAAI,OAAO,MAAM,CAAC;AAClB,YAAI,KAAK,KAAK,UAAU,KAAK,KAAK,sBAAsB,OAAO;AAC7D,cAAI,IAAI,KAAK,MAAM,KAAK,SAAS;AACjC,cAAI,KAAK,EAAE,CAAC,GAAG;AACb;AACA,gBAAI,KAAK,QAAQ,KAAK,KAAM,SAAQ,OAAO,KAAK,QAAQ,KAAK,IAAI;AACjE,wBAAY,UAAU,MAAM,EAAE,CAAC,EAAE,MAAM;AACvC,qBAAS;AAAA,UACX;AAAA,QACF;AAAA,MACF;AACA;AAAA,IACF;AACA,WAAO,MAAM,IAAI,IAAI,MAAM,OAAO,GAAG;AAAA,EACvC;AACF;",
|
||||||
|
"names": ["state"]
|
||||||
|
}
|
||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// browser-external:http
|
||||||
|
var require_http = __commonJS({
|
||||||
|
"browser-external:http"(exports, module) {
|
||||||
|
module.exports = Object.create(new Proxy({}, {
|
||||||
|
get(_, key) {
|
||||||
|
if (key !== "__esModule" && key !== "__proto__" && key !== "constructor" && key !== "splice") {
|
||||||
|
console.warn(`Module "http" has been externalized for browser compatibility. Cannot access "http.${key}" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_http
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-MHJDNTSG.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["browser-external:http"],
|
||||||
|
"sourcesContent": ["module.exports = Object.create(new Proxy({}, {\n get(_, key) {\n if (\n key !== '__esModule' &&\n key !== '__proto__' &&\n key !== 'constructor' &&\n key !== 'splice'\n ) {\n console.warn(`Module \"http\" has been externalized for browser compatibility. Cannot access \"http.${key}\" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`)\n }\n }\n}))"],
|
||||||
|
"mappings": ";;;;;AAAA;AAAA;AAAA,WAAO,UAAU,OAAO,OAAO,IAAI,MAAM,CAAC,GAAG;AAAA,MAC3C,IAAI,GAAG,KAAK;AACV,YACE,QAAQ,gBACR,QAAQ,eACR,QAAQ,iBACR,QAAQ,UACR;AACA,kBAAQ,KAAK,sFAAsF,GAAG,mIAAmI;AAAA,QAC3O;AAAA,MACF;AAAA,IACF,CAAC,CAAC;AAAA;AAAA;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// browser-external:https
|
||||||
|
var require_https = __commonJS({
|
||||||
|
"browser-external:https"(exports, module) {
|
||||||
|
module.exports = Object.create(new Proxy({}, {
|
||||||
|
get(_, key) {
|
||||||
|
if (key !== "__esModule" && key !== "__proto__" && key !== "constructor" && key !== "splice") {
|
||||||
|
console.warn(`Module "https" has been externalized for browser compatibility. Cannot access "https.${key}" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_https
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-N6I6HNZ2.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["browser-external:https"],
|
||||||
|
"sourcesContent": ["module.exports = Object.create(new Proxy({}, {\n get(_, key) {\n if (\n key !== '__esModule' &&\n key !== '__proto__' &&\n key !== 'constructor' &&\n key !== 'splice'\n ) {\n console.warn(`Module \"https\" has been externalized for browser compatibility. Cannot access \"https.${key}\" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`)\n }\n }\n}))"],
|
||||||
|
"mappings": ";;;;;AAAA;AAAA;AAAA,WAAO,UAAU,OAAO,OAAO,IAAI,MAAM,CAAC,GAAG;AAAA,MAC3C,IAAI,GAAG,KAAK;AACV,YACE,QAAQ,gBACR,QAAQ,eACR,QAAQ,iBACR,QAAQ,UACR;AACA,kBAAQ,KAAK,wFAAwF,GAAG,mIAAmI;AAAA,QAC7O;AAAA,MACF;AAAA,IACF,CAAC,CAAC;AAAA;AAAA;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+73
@@ -0,0 +1,73 @@
|
|||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __typeError = (msg) => {
|
||||||
|
throw TypeError(msg);
|
||||||
|
};
|
||||||
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
||||||
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||||
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||||
|
}) : x)(function(x) {
|
||||||
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
||||||
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
||||||
|
});
|
||||||
|
var __esm = (fn, res) => function __init() {
|
||||||
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
||||||
|
};
|
||||||
|
var __commonJS = (cb, mod) => function __require2() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||||
|
// If the importer is in node compatibility mode or this is not an ESM
|
||||||
|
// file that has been converted to a CommonJS file using a Babel-
|
||||||
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||||
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||||
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||||
|
mod
|
||||||
|
));
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
||||||
|
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
||||||
|
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
||||||
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
||||||
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
||||||
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
||||||
|
var __privateWrapper = (obj, member, setter, getter) => ({
|
||||||
|
set _(value) {
|
||||||
|
__privateSet(obj, member, value, setter);
|
||||||
|
},
|
||||||
|
get _() {
|
||||||
|
return __privateGet(obj, member, getter);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
__require,
|
||||||
|
__esm,
|
||||||
|
__commonJS,
|
||||||
|
__export,
|
||||||
|
__toESM,
|
||||||
|
__toCommonJS,
|
||||||
|
__publicField,
|
||||||
|
__privateGet,
|
||||||
|
__privateAdd,
|
||||||
|
__privateSet,
|
||||||
|
__privateMethod,
|
||||||
|
__privateWrapper
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-OL46QLBJ.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+80
@@ -0,0 +1,80 @@
|
|||||||
|
// node_modules/dequal/dist/index.mjs
|
||||||
|
var has = Object.prototype.hasOwnProperty;
|
||||||
|
function find(iter, tar, key) {
|
||||||
|
for (key of iter.keys()) {
|
||||||
|
if (dequal(key, tar)) return key;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function dequal(foo, bar) {
|
||||||
|
var ctor, len, tmp;
|
||||||
|
if (foo === bar) return true;
|
||||||
|
if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
|
||||||
|
if (ctor === Date) return foo.getTime() === bar.getTime();
|
||||||
|
if (ctor === RegExp) return foo.toString() === bar.toString();
|
||||||
|
if (ctor === Array) {
|
||||||
|
if ((len = foo.length) === bar.length) {
|
||||||
|
while (len-- && dequal(foo[len], bar[len])) ;
|
||||||
|
}
|
||||||
|
return len === -1;
|
||||||
|
}
|
||||||
|
if (ctor === Set) {
|
||||||
|
if (foo.size !== bar.size) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
for (len of foo) {
|
||||||
|
tmp = len;
|
||||||
|
if (tmp && typeof tmp === "object") {
|
||||||
|
tmp = find(bar, tmp);
|
||||||
|
if (!tmp) return false;
|
||||||
|
}
|
||||||
|
if (!bar.has(tmp)) return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (ctor === Map) {
|
||||||
|
if (foo.size !== bar.size) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
for (len of foo) {
|
||||||
|
tmp = len[0];
|
||||||
|
if (tmp && typeof tmp === "object") {
|
||||||
|
tmp = find(bar, tmp);
|
||||||
|
if (!tmp) return false;
|
||||||
|
}
|
||||||
|
if (!dequal(len[1], bar.get(tmp))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (ctor === ArrayBuffer) {
|
||||||
|
foo = new Uint8Array(foo);
|
||||||
|
bar = new Uint8Array(bar);
|
||||||
|
} else if (ctor === DataView) {
|
||||||
|
if ((len = foo.byteLength) === bar.byteLength) {
|
||||||
|
while (len-- && foo.getInt8(len) === bar.getInt8(len)) ;
|
||||||
|
}
|
||||||
|
return len === -1;
|
||||||
|
}
|
||||||
|
if (ArrayBuffer.isView(foo)) {
|
||||||
|
if ((len = foo.byteLength) === bar.byteLength) {
|
||||||
|
while (len-- && foo[len] === bar[len]) ;
|
||||||
|
}
|
||||||
|
return len === -1;
|
||||||
|
}
|
||||||
|
if (!ctor || typeof foo === "object") {
|
||||||
|
len = 0;
|
||||||
|
for (ctor in foo) {
|
||||||
|
if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
|
||||||
|
if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;
|
||||||
|
}
|
||||||
|
return Object.keys(bar).length === len;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return foo !== foo && bar !== bar;
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
dequal
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-UVSV26GJ.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/dequal/dist/index.mjs"],
|
||||||
|
"sourcesContent": ["var has = Object.prototype.hasOwnProperty;\n\nfunction find(iter, tar, key) {\n\tfor (key of iter.keys()) {\n\t\tif (dequal(key, tar)) return key;\n\t}\n}\n\nexport function dequal(foo, bar) {\n\tvar ctor, len, tmp;\n\tif (foo === bar) return true;\n\n\tif (foo && bar && (ctor=foo.constructor) === bar.constructor) {\n\t\tif (ctor === Date) return foo.getTime() === bar.getTime();\n\t\tif (ctor === RegExp) return foo.toString() === bar.toString();\n\n\t\tif (ctor === Array) {\n\t\t\tif ((len=foo.length) === bar.length) {\n\t\t\t\twhile (len-- && dequal(foo[len], bar[len]));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (ctor === Set) {\n\t\t\tif (foo.size !== bar.size) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (len of foo) {\n\t\t\t\ttmp = len;\n\t\t\t\tif (tmp && typeof tmp === 'object') {\n\t\t\t\t\ttmp = find(bar, tmp);\n\t\t\t\t\tif (!tmp) return false;\n\t\t\t\t}\n\t\t\t\tif (!bar.has(tmp)) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (ctor === Map) {\n\t\t\tif (foo.size !== bar.size) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (len of foo) {\n\t\t\t\ttmp = len[0];\n\t\t\t\tif (tmp && typeof tmp === 'object') {\n\t\t\t\t\ttmp = find(bar, tmp);\n\t\t\t\t\tif (!tmp) return false;\n\t\t\t\t}\n\t\t\t\tif (!dequal(len[1], bar.get(tmp))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (ctor === ArrayBuffer) {\n\t\t\tfoo = new Uint8Array(foo);\n\t\t\tbar = new Uint8Array(bar);\n\t\t} else if (ctor === DataView) {\n\t\t\tif ((len=foo.byteLength) === bar.byteLength) {\n\t\t\t\twhile (len-- && foo.getInt8(len) === bar.getInt8(len));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (ArrayBuffer.isView(foo)) {\n\t\t\tif ((len=foo.byteLength) === bar.byteLength) {\n\t\t\t\twhile (len-- && foo[len] === bar[len]);\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (!ctor || typeof foo === 'object') {\n\t\t\tlen = 0;\n\t\t\tfor (ctor in foo) {\n\t\t\t\tif (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;\n\t\t\t\tif (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;\n\t\t\t}\n\t\t\treturn Object.keys(bar).length === len;\n\t\t}\n\t}\n\n\treturn foo !== foo && bar !== bar;\n}\n"],
|
||||||
|
"mappings": ";AAAA,IAAI,MAAM,OAAO,UAAU;AAE3B,SAAS,KAAK,MAAM,KAAK,KAAK;AAC7B,OAAK,OAAO,KAAK,KAAK,GAAG;AACxB,QAAI,OAAO,KAAK,GAAG,EAAG,QAAO;AAAA,EAC9B;AACD;AAEO,SAAS,OAAO,KAAK,KAAK;AAChC,MAAI,MAAM,KAAK;AACf,MAAI,QAAQ,IAAK,QAAO;AAExB,MAAI,OAAO,QAAQ,OAAK,IAAI,iBAAiB,IAAI,aAAa;AAC7D,QAAI,SAAS,KAAM,QAAO,IAAI,QAAQ,MAAM,IAAI,QAAQ;AACxD,QAAI,SAAS,OAAQ,QAAO,IAAI,SAAS,MAAM,IAAI,SAAS;AAE5D,QAAI,SAAS,OAAO;AACnB,WAAK,MAAI,IAAI,YAAY,IAAI,QAAQ;AACpC,eAAO,SAAS,OAAO,IAAI,GAAG,GAAG,IAAI,GAAG,CAAC,EAAE;AAAA,MAC5C;AACA,aAAO,QAAQ;AAAA,IAChB;AAEA,QAAI,SAAS,KAAK;AACjB,UAAI,IAAI,SAAS,IAAI,MAAM;AAC1B,eAAO;AAAA,MACR;AACA,WAAK,OAAO,KAAK;AAChB,cAAM;AACN,YAAI,OAAO,OAAO,QAAQ,UAAU;AACnC,gBAAM,KAAK,KAAK,GAAG;AACnB,cAAI,CAAC,IAAK,QAAO;AAAA,QAClB;AACA,YAAI,CAAC,IAAI,IAAI,GAAG,EAAG,QAAO;AAAA,MAC3B;AACA,aAAO;AAAA,IACR;AAEA,QAAI,SAAS,KAAK;AACjB,UAAI,IAAI,SAAS,IAAI,MAAM;AAC1B,eAAO;AAAA,MACR;AACA,WAAK,OAAO,KAAK;AAChB,cAAM,IAAI,CAAC;AACX,YAAI,OAAO,OAAO,QAAQ,UAAU;AACnC,gBAAM,KAAK,KAAK,GAAG;AACnB,cAAI,CAAC,IAAK,QAAO;AAAA,QAClB;AACA,YAAI,CAAC,OAAO,IAAI,CAAC,GAAG,IAAI,IAAI,GAAG,CAAC,GAAG;AAClC,iBAAO;AAAA,QACR;AAAA,MACD;AACA,aAAO;AAAA,IACR;AAEA,QAAI,SAAS,aAAa;AACzB,YAAM,IAAI,WAAW,GAAG;AACxB,YAAM,IAAI,WAAW,GAAG;AAAA,IACzB,WAAW,SAAS,UAAU;AAC7B,WAAK,MAAI,IAAI,gBAAgB,IAAI,YAAY;AAC5C,eAAO,SAAS,IAAI,QAAQ,GAAG,MAAM,IAAI,QAAQ,GAAG,EAAE;AAAA,MACvD;AACA,aAAO,QAAQ;AAAA,IAChB;AAEA,QAAI,YAAY,OAAO,GAAG,GAAG;AAC5B,WAAK,MAAI,IAAI,gBAAgB,IAAI,YAAY;AAC5C,eAAO,SAAS,IAAI,GAAG,MAAM,IAAI,GAAG,EAAE;AAAA,MACvC;AACA,aAAO,QAAQ;AAAA,IAChB;AAEA,QAAI,CAAC,QAAQ,OAAO,QAAQ,UAAU;AACrC,YAAM;AACN,WAAK,QAAQ,KAAK;AACjB,YAAI,IAAI,KAAK,KAAK,IAAI,KAAK,EAAE,OAAO,CAAC,IAAI,KAAK,KAAK,IAAI,EAAG,QAAO;AACjE,YAAI,EAAE,QAAQ,QAAQ,CAAC,OAAO,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,EAAG,QAAO;AAAA,MAC7D;AACA,aAAO,OAAO,KAAK,GAAG,EAAE,WAAW;AAAA,IACpC;AAAA,EACD;AAEA,SAAO,QAAQ,OAAO,QAAQ;AAC/B;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+12542
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+21
@@ -0,0 +1,21 @@
|
|||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// browser-external:url
|
||||||
|
var require_url = __commonJS({
|
||||||
|
"browser-external:url"(exports, module) {
|
||||||
|
module.exports = Object.create(new Proxy({}, {
|
||||||
|
get(_, key) {
|
||||||
|
if (key !== "__esModule" && key !== "__proto__" && key !== "constructor" && key !== "splice") {
|
||||||
|
console.warn(`Module "url" has been externalized for browser compatibility. Cannot access "url.${key}" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_url
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-W3TQBGP4.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["browser-external:url"],
|
||||||
|
"sourcesContent": ["module.exports = Object.create(new Proxy({}, {\n get(_, key) {\n if (\n key !== '__esModule' &&\n key !== '__proto__' &&\n key !== 'constructor' &&\n key !== 'splice'\n ) {\n console.warn(`Module \"url\" has been externalized for browser compatibility. Cannot access \"url.${key}\" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`)\n }\n }\n}))"],
|
||||||
|
"mappings": ";;;;;AAAA;AAAA;AAAA,WAAO,UAAU,OAAO,OAAO,IAAI,MAAM,CAAC,GAAG;AAAA,MAC3C,IAAI,GAAG,KAAK;AACV,YACE,QAAQ,gBACR,QAAQ,eACR,QAAQ,iBACR,QAAQ,UACR;AACA,kBAAQ,KAAK,oFAAoF,GAAG,mIAAmI;AAAA,QACzO;AAAA,MACF;AAAA,IACF,CAAC,CAAC;AAAA;AAAA;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+998
@@ -0,0 +1,998 @@
|
|||||||
|
// node_modules/@codemirror/legacy-modes/mode/javascript.js
|
||||||
|
function mkJavaScript(parserConfig) {
|
||||||
|
var statementIndent = parserConfig.statementIndent;
|
||||||
|
var jsonldMode = parserConfig.jsonld;
|
||||||
|
var jsonMode = parserConfig.json || jsonldMode;
|
||||||
|
var isTS = parserConfig.typescript;
|
||||||
|
var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
|
||||||
|
var keywords = function() {
|
||||||
|
function kw(type2) {
|
||||||
|
return { type: type2, style: "keyword" };
|
||||||
|
}
|
||||||
|
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"), D = kw("keyword d");
|
||||||
|
var operator = kw("operator"), atom = { type: "atom", style: "atom" };
|
||||||
|
return {
|
||||||
|
"if": kw("if"),
|
||||||
|
"while": A,
|
||||||
|
"with": A,
|
||||||
|
"else": B,
|
||||||
|
"do": B,
|
||||||
|
"try": B,
|
||||||
|
"finally": B,
|
||||||
|
"return": D,
|
||||||
|
"break": D,
|
||||||
|
"continue": D,
|
||||||
|
"new": kw("new"),
|
||||||
|
"delete": C,
|
||||||
|
"void": C,
|
||||||
|
"throw": C,
|
||||||
|
"debugger": kw("debugger"),
|
||||||
|
"var": kw("var"),
|
||||||
|
"const": kw("var"),
|
||||||
|
"let": kw("var"),
|
||||||
|
"function": kw("function"),
|
||||||
|
"catch": kw("catch"),
|
||||||
|
"for": kw("for"),
|
||||||
|
"switch": kw("switch"),
|
||||||
|
"case": kw("case"),
|
||||||
|
"default": kw("default"),
|
||||||
|
"in": operator,
|
||||||
|
"typeof": operator,
|
||||||
|
"instanceof": operator,
|
||||||
|
"true": atom,
|
||||||
|
"false": atom,
|
||||||
|
"null": atom,
|
||||||
|
"undefined": atom,
|
||||||
|
"NaN": atom,
|
||||||
|
"Infinity": atom,
|
||||||
|
"this": kw("this"),
|
||||||
|
"class": kw("class"),
|
||||||
|
"super": kw("atom"),
|
||||||
|
"yield": C,
|
||||||
|
"export": kw("export"),
|
||||||
|
"import": kw("import"),
|
||||||
|
"extends": C,
|
||||||
|
"await": C
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
var isOperatorChar = /[+\-*&%=<>!?|~^@]/;
|
||||||
|
var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
|
||||||
|
function readRegexp(stream) {
|
||||||
|
var escaped = false, next, inSet = false;
|
||||||
|
while ((next = stream.next()) != null) {
|
||||||
|
if (!escaped) {
|
||||||
|
if (next == "/" && !inSet) return;
|
||||||
|
if (next == "[") inSet = true;
|
||||||
|
else if (inSet && next == "]") inSet = false;
|
||||||
|
}
|
||||||
|
escaped = !escaped && next == "\\";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var type, content;
|
||||||
|
function ret(tp, style, cont2) {
|
||||||
|
type = tp;
|
||||||
|
content = cont2;
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
function tokenBase(stream, state) {
|
||||||
|
var ch = stream.next();
|
||||||
|
if (ch == '"' || ch == "'") {
|
||||||
|
state.tokenize = tokenString(ch);
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
} else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
|
||||||
|
return ret("number", "number");
|
||||||
|
} else if (ch == "." && stream.match("..")) {
|
||||||
|
return ret("spread", "meta");
|
||||||
|
} else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
||||||
|
return ret(ch);
|
||||||
|
} else if (ch == "=" && stream.eat(">")) {
|
||||||
|
return ret("=>", "operator");
|
||||||
|
} else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
|
||||||
|
return ret("number", "number");
|
||||||
|
} else if (/\d/.test(ch)) {
|
||||||
|
stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
|
||||||
|
return ret("number", "number");
|
||||||
|
} else if (ch == "/") {
|
||||||
|
if (stream.eat("*")) {
|
||||||
|
state.tokenize = tokenComment;
|
||||||
|
return tokenComment(stream, state);
|
||||||
|
} else if (stream.eat("/")) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return ret("comment", "comment");
|
||||||
|
} else if (expressionAllowed(stream, state, 1)) {
|
||||||
|
readRegexp(stream);
|
||||||
|
stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
|
||||||
|
return ret("regexp", "string.special");
|
||||||
|
} else {
|
||||||
|
stream.eat("=");
|
||||||
|
return ret("operator", "operator", stream.current());
|
||||||
|
}
|
||||||
|
} else if (ch == "`") {
|
||||||
|
state.tokenize = tokenQuasi;
|
||||||
|
return tokenQuasi(stream, state);
|
||||||
|
} else if (ch == "#" && stream.peek() == "!") {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return ret("meta", "meta");
|
||||||
|
} else if (ch == "#" && stream.eatWhile(wordRE)) {
|
||||||
|
return ret("variable", "property");
|
||||||
|
} else if (ch == "<" && stream.match("!--") || ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start))) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return ret("comment", "comment");
|
||||||
|
} else if (isOperatorChar.test(ch)) {
|
||||||
|
if (ch != ">" || !state.lexical || state.lexical.type != ">") {
|
||||||
|
if (stream.eat("=")) {
|
||||||
|
if (ch == "!" || ch == "=") stream.eat("=");
|
||||||
|
} else if (/[<>*+\-|&?]/.test(ch)) {
|
||||||
|
stream.eat(ch);
|
||||||
|
if (ch == ">") stream.eat(ch);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (ch == "?" && stream.eat(".")) return ret(".");
|
||||||
|
return ret("operator", "operator", stream.current());
|
||||||
|
} else if (wordRE.test(ch)) {
|
||||||
|
stream.eatWhile(wordRE);
|
||||||
|
var word = stream.current();
|
||||||
|
if (state.lastType != ".") {
|
||||||
|
if (keywords.propertyIsEnumerable(word)) {
|
||||||
|
var kw = keywords[word];
|
||||||
|
return ret(kw.type, kw.style, word);
|
||||||
|
}
|
||||||
|
if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false))
|
||||||
|
return ret("async", "keyword", word);
|
||||||
|
}
|
||||||
|
return ret("variable", "variable", word);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function tokenString(quote) {
|
||||||
|
return function(stream, state) {
|
||||||
|
var escaped = false, next;
|
||||||
|
if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
return ret("jsonld-keyword", "meta");
|
||||||
|
}
|
||||||
|
while ((next = stream.next()) != null) {
|
||||||
|
if (next == quote && !escaped) break;
|
||||||
|
escaped = !escaped && next == "\\";
|
||||||
|
}
|
||||||
|
if (!escaped) state.tokenize = tokenBase;
|
||||||
|
return ret("string", "string");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function tokenComment(stream, state) {
|
||||||
|
var maybeEnd = false, ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "/" && maybeEnd) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = ch == "*";
|
||||||
|
}
|
||||||
|
return ret("comment", "comment");
|
||||||
|
}
|
||||||
|
function tokenQuasi(stream, state) {
|
||||||
|
var escaped = false, next;
|
||||||
|
while ((next = stream.next()) != null) {
|
||||||
|
if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
escaped = !escaped && next == "\\";
|
||||||
|
}
|
||||||
|
return ret("quasi", "string.special", stream.current());
|
||||||
|
}
|
||||||
|
var brackets = "([{}])";
|
||||||
|
function findFatArrow(stream, state) {
|
||||||
|
if (state.fatArrowAt) state.fatArrowAt = null;
|
||||||
|
var arrow = stream.string.indexOf("=>", stream.start);
|
||||||
|
if (arrow < 0) return;
|
||||||
|
if (isTS) {
|
||||||
|
var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow));
|
||||||
|
if (m) arrow = m.index;
|
||||||
|
}
|
||||||
|
var depth = 0, sawSomething = false;
|
||||||
|
for (var pos = arrow - 1; pos >= 0; --pos) {
|
||||||
|
var ch = stream.string.charAt(pos);
|
||||||
|
var bracket = brackets.indexOf(ch);
|
||||||
|
if (bracket >= 0 && bracket < 3) {
|
||||||
|
if (!depth) {
|
||||||
|
++pos;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (--depth == 0) {
|
||||||
|
if (ch == "(") sawSomething = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} else if (bracket >= 3 && bracket < 6) {
|
||||||
|
++depth;
|
||||||
|
} else if (wordRE.test(ch)) {
|
||||||
|
sawSomething = true;
|
||||||
|
} else if (/["'\/`]/.test(ch)) {
|
||||||
|
for (; ; --pos) {
|
||||||
|
if (pos == 0) return;
|
||||||
|
var next = stream.string.charAt(pos - 1);
|
||||||
|
if (next == ch && stream.string.charAt(pos - 2) != "\\") {
|
||||||
|
pos--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (sawSomething && !depth) {
|
||||||
|
++pos;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (sawSomething && !depth) state.fatArrowAt = pos;
|
||||||
|
}
|
||||||
|
var atomicTypes = {
|
||||||
|
"atom": true,
|
||||||
|
"number": true,
|
||||||
|
"variable": true,
|
||||||
|
"string": true,
|
||||||
|
"regexp": true,
|
||||||
|
"this": true,
|
||||||
|
"import": true,
|
||||||
|
"jsonld-keyword": true
|
||||||
|
};
|
||||||
|
function JSLexical(indented, column, type2, align, prev, info) {
|
||||||
|
this.indented = indented;
|
||||||
|
this.column = column;
|
||||||
|
this.type = type2;
|
||||||
|
this.prev = prev;
|
||||||
|
this.info = info;
|
||||||
|
if (align != null) this.align = align;
|
||||||
|
}
|
||||||
|
function inScope(state, varname) {
|
||||||
|
for (var v = state.localVars; v; v = v.next)
|
||||||
|
if (v.name == varname) return true;
|
||||||
|
for (var cx2 = state.context; cx2; cx2 = cx2.prev) {
|
||||||
|
for (var v = cx2.vars; v; v = v.next)
|
||||||
|
if (v.name == varname) return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function parseJS(state, style, type2, content2, stream) {
|
||||||
|
var cc = state.cc;
|
||||||
|
cx.state = state;
|
||||||
|
cx.stream = stream;
|
||||||
|
cx.marked = null;
|
||||||
|
cx.cc = cc;
|
||||||
|
cx.style = style;
|
||||||
|
if (!state.lexical.hasOwnProperty("align"))
|
||||||
|
state.lexical.align = true;
|
||||||
|
while (true) {
|
||||||
|
var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
|
||||||
|
if (combinator(type2, content2)) {
|
||||||
|
while (cc.length && cc[cc.length - 1].lex)
|
||||||
|
cc.pop()();
|
||||||
|
if (cx.marked) return cx.marked;
|
||||||
|
if (type2 == "variable" && inScope(state, content2)) return "variableName.local";
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var cx = { state: null, column: null, marked: null, cc: null };
|
||||||
|
function pass() {
|
||||||
|
for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
|
||||||
|
}
|
||||||
|
function cont() {
|
||||||
|
pass.apply(null, arguments);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
function inList(name, list) {
|
||||||
|
for (var v = list; v; v = v.next) if (v.name == name) return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function register(varname) {
|
||||||
|
var state = cx.state;
|
||||||
|
cx.marked = "def";
|
||||||
|
if (state.context) {
|
||||||
|
if (state.lexical.info == "var" && state.context && state.context.block) {
|
||||||
|
var newContext = registerVarScoped(varname, state.context);
|
||||||
|
if (newContext != null) {
|
||||||
|
state.context = newContext;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else if (!inList(varname, state.localVars)) {
|
||||||
|
state.localVars = new Var(varname, state.localVars);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (parserConfig.globalVars && !inList(varname, state.globalVars))
|
||||||
|
state.globalVars = new Var(varname, state.globalVars);
|
||||||
|
}
|
||||||
|
function registerVarScoped(varname, context) {
|
||||||
|
if (!context) {
|
||||||
|
return null;
|
||||||
|
} else if (context.block) {
|
||||||
|
var inner = registerVarScoped(varname, context.prev);
|
||||||
|
if (!inner) return null;
|
||||||
|
if (inner == context.prev) return context;
|
||||||
|
return new Context(inner, context.vars, true);
|
||||||
|
} else if (inList(varname, context.vars)) {
|
||||||
|
return context;
|
||||||
|
} else {
|
||||||
|
return new Context(context.prev, new Var(varname, context.vars), false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function isModifier(name) {
|
||||||
|
return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly";
|
||||||
|
}
|
||||||
|
function Context(prev, vars, block2) {
|
||||||
|
this.prev = prev;
|
||||||
|
this.vars = vars;
|
||||||
|
this.block = block2;
|
||||||
|
}
|
||||||
|
function Var(name, next) {
|
||||||
|
this.name = name;
|
||||||
|
this.next = next;
|
||||||
|
}
|
||||||
|
var defaultVars = new Var("this", new Var("arguments", null));
|
||||||
|
function pushcontext() {
|
||||||
|
cx.state.context = new Context(cx.state.context, cx.state.localVars, false);
|
||||||
|
cx.state.localVars = defaultVars;
|
||||||
|
}
|
||||||
|
function pushblockcontext() {
|
||||||
|
cx.state.context = new Context(cx.state.context, cx.state.localVars, true);
|
||||||
|
cx.state.localVars = null;
|
||||||
|
}
|
||||||
|
pushcontext.lex = pushblockcontext.lex = true;
|
||||||
|
function popcontext() {
|
||||||
|
cx.state.localVars = cx.state.context.vars;
|
||||||
|
cx.state.context = cx.state.context.prev;
|
||||||
|
}
|
||||||
|
popcontext.lex = true;
|
||||||
|
function pushlex(type2, info) {
|
||||||
|
var result = function() {
|
||||||
|
var state = cx.state, indent = state.indented;
|
||||||
|
if (state.lexical.type == "stat") indent = state.lexical.indented;
|
||||||
|
else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
|
||||||
|
indent = outer.indented;
|
||||||
|
state.lexical = new JSLexical(indent, cx.stream.column(), type2, null, state.lexical, info);
|
||||||
|
};
|
||||||
|
result.lex = true;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
function poplex() {
|
||||||
|
var state = cx.state;
|
||||||
|
if (state.lexical.prev) {
|
||||||
|
if (state.lexical.type == ")")
|
||||||
|
state.indented = state.lexical.indented;
|
||||||
|
state.lexical = state.lexical.prev;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
poplex.lex = true;
|
||||||
|
function expect(wanted) {
|
||||||
|
function exp(type2) {
|
||||||
|
if (type2 == wanted) return cont();
|
||||||
|
else if (wanted == ";" || type2 == "}" || type2 == ")" || type2 == "]") return pass();
|
||||||
|
else return cont(exp);
|
||||||
|
}
|
||||||
|
;
|
||||||
|
return exp;
|
||||||
|
}
|
||||||
|
function statement(type2, value) {
|
||||||
|
if (type2 == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
|
||||||
|
if (type2 == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
|
||||||
|
if (type2 == "keyword b") return cont(pushlex("form"), statement, poplex);
|
||||||
|
if (type2 == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
|
||||||
|
if (type2 == "debugger") return cont(expect(";"));
|
||||||
|
if (type2 == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
|
||||||
|
if (type2 == ";") return cont();
|
||||||
|
if (type2 == "if") {
|
||||||
|
if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
|
||||||
|
cx.state.cc.pop()();
|
||||||
|
return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
|
||||||
|
}
|
||||||
|
if (type2 == "function") return cont(functiondef);
|
||||||
|
if (type2 == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
|
||||||
|
if (type2 == "class" || isTS && value == "interface") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(pushlex("form", type2 == "class" ? type2 : value), className, poplex);
|
||||||
|
}
|
||||||
|
if (type2 == "variable") {
|
||||||
|
if (isTS && value == "declare") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(statement);
|
||||||
|
} else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
if (value == "enum") return cont(enumdef);
|
||||||
|
else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));
|
||||||
|
else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex);
|
||||||
|
} else if (isTS && value == "namespace") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(pushlex("form"), expression, statement, poplex);
|
||||||
|
} else if (isTS && value == "abstract") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(statement);
|
||||||
|
} else {
|
||||||
|
return cont(pushlex("stat"), maybelabel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type2 == "switch") return cont(
|
||||||
|
pushlex("form"),
|
||||||
|
parenExpr,
|
||||||
|
expect("{"),
|
||||||
|
pushlex("}", "switch"),
|
||||||
|
pushblockcontext,
|
||||||
|
block,
|
||||||
|
poplex,
|
||||||
|
poplex,
|
||||||
|
popcontext
|
||||||
|
);
|
||||||
|
if (type2 == "case") return cont(expression, expect(":"));
|
||||||
|
if (type2 == "default") return cont(expect(":"));
|
||||||
|
if (type2 == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
|
||||||
|
if (type2 == "export") return cont(pushlex("stat"), afterExport, poplex);
|
||||||
|
if (type2 == "import") return cont(pushlex("stat"), afterImport, poplex);
|
||||||
|
if (type2 == "async") return cont(statement);
|
||||||
|
if (value == "@") return cont(expression, statement);
|
||||||
|
return pass(pushlex("stat"), expression, expect(";"), poplex);
|
||||||
|
}
|
||||||
|
function maybeCatchBinding(type2) {
|
||||||
|
if (type2 == "(") return cont(funarg, expect(")"));
|
||||||
|
}
|
||||||
|
function expression(type2, value) {
|
||||||
|
return expressionInner(type2, value, false);
|
||||||
|
}
|
||||||
|
function expressionNoComma(type2, value) {
|
||||||
|
return expressionInner(type2, value, true);
|
||||||
|
}
|
||||||
|
function parenExpr(type2) {
|
||||||
|
if (type2 != "(") return pass();
|
||||||
|
return cont(pushlex(")"), maybeexpression, expect(")"), poplex);
|
||||||
|
}
|
||||||
|
function expressionInner(type2, value, noComma) {
|
||||||
|
if (cx.state.fatArrowAt == cx.stream.start) {
|
||||||
|
var body = noComma ? arrowBodyNoComma : arrowBody;
|
||||||
|
if (type2 == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);
|
||||||
|
else if (type2 == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
|
||||||
|
}
|
||||||
|
var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
|
||||||
|
if (atomicTypes.hasOwnProperty(type2)) return cont(maybeop);
|
||||||
|
if (type2 == "function") return cont(functiondef, maybeop);
|
||||||
|
if (type2 == "class" || isTS && value == "interface") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(pushlex("form"), classExpression, poplex);
|
||||||
|
}
|
||||||
|
if (type2 == "keyword c" || type2 == "async") return cont(noComma ? expressionNoComma : expression);
|
||||||
|
if (type2 == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
|
||||||
|
if (type2 == "operator" || type2 == "spread") return cont(noComma ? expressionNoComma : expression);
|
||||||
|
if (type2 == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
|
||||||
|
if (type2 == "{") return contCommasep(objprop, "}", null, maybeop);
|
||||||
|
if (type2 == "quasi") return pass(quasi, maybeop);
|
||||||
|
if (type2 == "new") return cont(maybeTarget(noComma));
|
||||||
|
return cont();
|
||||||
|
}
|
||||||
|
function maybeexpression(type2) {
|
||||||
|
if (type2.match(/[;\}\)\],]/)) return pass();
|
||||||
|
return pass(expression);
|
||||||
|
}
|
||||||
|
function maybeoperatorComma(type2, value) {
|
||||||
|
if (type2 == ",") return cont(maybeexpression);
|
||||||
|
return maybeoperatorNoComma(type2, value, false);
|
||||||
|
}
|
||||||
|
function maybeoperatorNoComma(type2, value, noComma) {
|
||||||
|
var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
|
||||||
|
var expr = noComma == false ? expression : expressionNoComma;
|
||||||
|
if (type2 == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
|
||||||
|
if (type2 == "operator") {
|
||||||
|
if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
|
||||||
|
if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false))
|
||||||
|
return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
|
||||||
|
if (value == "?") return cont(expression, expect(":"), expr);
|
||||||
|
return cont(expr);
|
||||||
|
}
|
||||||
|
if (type2 == "quasi") {
|
||||||
|
return pass(quasi, me);
|
||||||
|
}
|
||||||
|
if (type2 == ";") return;
|
||||||
|
if (type2 == "(") return contCommasep(expressionNoComma, ")", "call", me);
|
||||||
|
if (type2 == ".") return cont(property, me);
|
||||||
|
if (type2 == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
|
||||||
|
if (isTS && value == "as") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(typeexpr, me);
|
||||||
|
}
|
||||||
|
if (type2 == "regexp") {
|
||||||
|
cx.state.lastType = cx.marked = "operator";
|
||||||
|
cx.stream.backUp(cx.stream.pos - cx.stream.start - 1);
|
||||||
|
return cont(expr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function quasi(type2, value) {
|
||||||
|
if (type2 != "quasi") return pass();
|
||||||
|
if (value.slice(value.length - 2) != "${") return cont(quasi);
|
||||||
|
return cont(maybeexpression, continueQuasi);
|
||||||
|
}
|
||||||
|
function continueQuasi(type2) {
|
||||||
|
if (type2 == "}") {
|
||||||
|
cx.marked = "string.special";
|
||||||
|
cx.state.tokenize = tokenQuasi;
|
||||||
|
return cont(quasi);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function arrowBody(type2) {
|
||||||
|
findFatArrow(cx.stream, cx.state);
|
||||||
|
return pass(type2 == "{" ? statement : expression);
|
||||||
|
}
|
||||||
|
function arrowBodyNoComma(type2) {
|
||||||
|
findFatArrow(cx.stream, cx.state);
|
||||||
|
return pass(type2 == "{" ? statement : expressionNoComma);
|
||||||
|
}
|
||||||
|
function maybeTarget(noComma) {
|
||||||
|
return function(type2) {
|
||||||
|
if (type2 == ".") return cont(noComma ? targetNoComma : target);
|
||||||
|
else if (type2 == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma);
|
||||||
|
else return pass(noComma ? expressionNoComma : expression);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function target(_, value) {
|
||||||
|
if (value == "target") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(maybeoperatorComma);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function targetNoComma(_, value) {
|
||||||
|
if (value == "target") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(maybeoperatorNoComma);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function maybelabel(type2) {
|
||||||
|
if (type2 == ":") return cont(poplex, statement);
|
||||||
|
return pass(maybeoperatorComma, expect(";"), poplex);
|
||||||
|
}
|
||||||
|
function property(type2) {
|
||||||
|
if (type2 == "variable") {
|
||||||
|
cx.marked = "property";
|
||||||
|
return cont();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function objprop(type2, value) {
|
||||||
|
if (type2 == "async") {
|
||||||
|
cx.marked = "property";
|
||||||
|
return cont(objprop);
|
||||||
|
} else if (type2 == "variable" || cx.style == "keyword") {
|
||||||
|
cx.marked = "property";
|
||||||
|
if (value == "get" || value == "set") return cont(getterSetter);
|
||||||
|
var m;
|
||||||
|
if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false)))
|
||||||
|
cx.state.fatArrowAt = cx.stream.pos + m[0].length;
|
||||||
|
return cont(afterprop);
|
||||||
|
} else if (type2 == "number" || type2 == "string") {
|
||||||
|
cx.marked = jsonldMode ? "property" : cx.style + " property";
|
||||||
|
return cont(afterprop);
|
||||||
|
} else if (type2 == "jsonld-keyword") {
|
||||||
|
return cont(afterprop);
|
||||||
|
} else if (isTS && isModifier(value)) {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(objprop);
|
||||||
|
} else if (type2 == "[") {
|
||||||
|
return cont(expression, maybetype, expect("]"), afterprop);
|
||||||
|
} else if (type2 == "spread") {
|
||||||
|
return cont(expressionNoComma, afterprop);
|
||||||
|
} else if (value == "*") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(objprop);
|
||||||
|
} else if (type2 == ":") {
|
||||||
|
return pass(afterprop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getterSetter(type2) {
|
||||||
|
if (type2 != "variable") return pass(afterprop);
|
||||||
|
cx.marked = "property";
|
||||||
|
return cont(functiondef);
|
||||||
|
}
|
||||||
|
function afterprop(type2) {
|
||||||
|
if (type2 == ":") return cont(expressionNoComma);
|
||||||
|
if (type2 == "(") return pass(functiondef);
|
||||||
|
}
|
||||||
|
function commasep(what, end, sep) {
|
||||||
|
function proceed(type2, value) {
|
||||||
|
if (sep ? sep.indexOf(type2) > -1 : type2 == ",") {
|
||||||
|
var lex = cx.state.lexical;
|
||||||
|
if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
|
||||||
|
return cont(function(type3, value2) {
|
||||||
|
if (type3 == end || value2 == end) return pass();
|
||||||
|
return pass(what);
|
||||||
|
}, proceed);
|
||||||
|
}
|
||||||
|
if (type2 == end || value == end) return cont();
|
||||||
|
if (sep && sep.indexOf(";") > -1) return pass(what);
|
||||||
|
return cont(expect(end));
|
||||||
|
}
|
||||||
|
return function(type2, value) {
|
||||||
|
if (type2 == end || value == end) return cont();
|
||||||
|
return pass(what, proceed);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function contCommasep(what, end, info) {
|
||||||
|
for (var i = 3; i < arguments.length; i++)
|
||||||
|
cx.cc.push(arguments[i]);
|
||||||
|
return cont(pushlex(end, info), commasep(what, end), poplex);
|
||||||
|
}
|
||||||
|
function block(type2) {
|
||||||
|
if (type2 == "}") return cont();
|
||||||
|
return pass(statement, block);
|
||||||
|
}
|
||||||
|
function maybetype(type2, value) {
|
||||||
|
if (isTS) {
|
||||||
|
if (type2 == ":") return cont(typeexpr);
|
||||||
|
if (value == "?") return cont(maybetype);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function maybetypeOrIn(type2, value) {
|
||||||
|
if (isTS && (type2 == ":" || value == "in")) return cont(typeexpr);
|
||||||
|
}
|
||||||
|
function mayberettype(type2) {
|
||||||
|
if (isTS && type2 == ":") {
|
||||||
|
if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr);
|
||||||
|
else return cont(typeexpr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function isKW(_, value) {
|
||||||
|
if (value == "is") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function typeexpr(type2, value) {
|
||||||
|
if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(value == "typeof" ? expressionNoComma : typeexpr);
|
||||||
|
}
|
||||||
|
if (type2 == "variable" || value == "void") {
|
||||||
|
cx.marked = "type";
|
||||||
|
return cont(afterType);
|
||||||
|
}
|
||||||
|
if (value == "|" || value == "&") return cont(typeexpr);
|
||||||
|
if (type2 == "string" || type2 == "number" || type2 == "atom") return cont(afterType);
|
||||||
|
if (type2 == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType);
|
||||||
|
if (type2 == "{") return cont(pushlex("}"), typeprops, poplex, afterType);
|
||||||
|
if (type2 == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType);
|
||||||
|
if (type2 == "<") return cont(commasep(typeexpr, ">"), typeexpr);
|
||||||
|
if (type2 == "quasi") return pass(quasiType, afterType);
|
||||||
|
}
|
||||||
|
function maybeReturnType(type2) {
|
||||||
|
if (type2 == "=>") return cont(typeexpr);
|
||||||
|
}
|
||||||
|
function typeprops(type2) {
|
||||||
|
if (type2.match(/[\}\)\]]/)) return cont();
|
||||||
|
if (type2 == "," || type2 == ";") return cont(typeprops);
|
||||||
|
return pass(typeprop, typeprops);
|
||||||
|
}
|
||||||
|
function typeprop(type2, value) {
|
||||||
|
if (type2 == "variable" || cx.style == "keyword") {
|
||||||
|
cx.marked = "property";
|
||||||
|
return cont(typeprop);
|
||||||
|
} else if (value == "?" || type2 == "number" || type2 == "string") {
|
||||||
|
return cont(typeprop);
|
||||||
|
} else if (type2 == ":") {
|
||||||
|
return cont(typeexpr);
|
||||||
|
} else if (type2 == "[") {
|
||||||
|
return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop);
|
||||||
|
} else if (type2 == "(") {
|
||||||
|
return pass(functiondecl, typeprop);
|
||||||
|
} else if (!type2.match(/[;\}\)\],]/)) {
|
||||||
|
return cont();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function quasiType(type2, value) {
|
||||||
|
if (type2 != "quasi") return pass();
|
||||||
|
if (value.slice(value.length - 2) != "${") return cont(quasiType);
|
||||||
|
return cont(typeexpr, continueQuasiType);
|
||||||
|
}
|
||||||
|
function continueQuasiType(type2) {
|
||||||
|
if (type2 == "}") {
|
||||||
|
cx.marked = "string.special";
|
||||||
|
cx.state.tokenize = tokenQuasi;
|
||||||
|
return cont(quasiType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function typearg(type2, value) {
|
||||||
|
if (type2 == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg);
|
||||||
|
if (type2 == ":") return cont(typeexpr);
|
||||||
|
if (type2 == "spread") return cont(typearg);
|
||||||
|
return pass(typeexpr);
|
||||||
|
}
|
||||||
|
function afterType(type2, value) {
|
||||||
|
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType);
|
||||||
|
if (value == "|" || type2 == "." || value == "&") return cont(typeexpr);
|
||||||
|
if (type2 == "[") return cont(typeexpr, expect("]"), afterType);
|
||||||
|
if (value == "extends" || value == "implements") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(typeexpr);
|
||||||
|
}
|
||||||
|
if (value == "?") return cont(typeexpr, expect(":"), typeexpr);
|
||||||
|
}
|
||||||
|
function maybeTypeArgs(_, value) {
|
||||||
|
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType);
|
||||||
|
}
|
||||||
|
function typeparam() {
|
||||||
|
return pass(typeexpr, maybeTypeDefault);
|
||||||
|
}
|
||||||
|
function maybeTypeDefault(_, value) {
|
||||||
|
if (value == "=") return cont(typeexpr);
|
||||||
|
}
|
||||||
|
function vardef(_, value) {
|
||||||
|
if (value == "enum") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(enumdef);
|
||||||
|
}
|
||||||
|
return pass(pattern, maybetype, maybeAssign, vardefCont);
|
||||||
|
}
|
||||||
|
function pattern(type2, value) {
|
||||||
|
if (isTS && isModifier(value)) {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(pattern);
|
||||||
|
}
|
||||||
|
if (type2 == "variable") {
|
||||||
|
register(value);
|
||||||
|
return cont();
|
||||||
|
}
|
||||||
|
if (type2 == "spread") return cont(pattern);
|
||||||
|
if (type2 == "[") return contCommasep(eltpattern, "]");
|
||||||
|
if (type2 == "{") return contCommasep(proppattern, "}");
|
||||||
|
}
|
||||||
|
function proppattern(type2, value) {
|
||||||
|
if (type2 == "variable" && !cx.stream.match(/^\s*:/, false)) {
|
||||||
|
register(value);
|
||||||
|
return cont(maybeAssign);
|
||||||
|
}
|
||||||
|
if (type2 == "variable") cx.marked = "property";
|
||||||
|
if (type2 == "spread") return cont(pattern);
|
||||||
|
if (type2 == "}") return pass();
|
||||||
|
if (type2 == "[") return cont(expression, expect("]"), expect(":"), proppattern);
|
||||||
|
return cont(expect(":"), pattern, maybeAssign);
|
||||||
|
}
|
||||||
|
function eltpattern() {
|
||||||
|
return pass(pattern, maybeAssign);
|
||||||
|
}
|
||||||
|
function maybeAssign(_type, value) {
|
||||||
|
if (value == "=") return cont(expressionNoComma);
|
||||||
|
}
|
||||||
|
function vardefCont(type2) {
|
||||||
|
if (type2 == ",") return cont(vardef);
|
||||||
|
}
|
||||||
|
function maybeelse(type2, value) {
|
||||||
|
if (type2 == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
|
||||||
|
}
|
||||||
|
function forspec(type2, value) {
|
||||||
|
if (value == "await") return cont(forspec);
|
||||||
|
if (type2 == "(") return cont(pushlex(")"), forspec1, poplex);
|
||||||
|
}
|
||||||
|
function forspec1(type2) {
|
||||||
|
if (type2 == "var") return cont(vardef, forspec2);
|
||||||
|
if (type2 == "variable") return cont(forspec2);
|
||||||
|
return pass(forspec2);
|
||||||
|
}
|
||||||
|
function forspec2(type2, value) {
|
||||||
|
if (type2 == ")") return cont();
|
||||||
|
if (type2 == ";") return cont(forspec2);
|
||||||
|
if (value == "in" || value == "of") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(expression, forspec2);
|
||||||
|
}
|
||||||
|
return pass(expression, forspec2);
|
||||||
|
}
|
||||||
|
function functiondef(type2, value) {
|
||||||
|
if (value == "*") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(functiondef);
|
||||||
|
}
|
||||||
|
if (type2 == "variable") {
|
||||||
|
register(value);
|
||||||
|
return cont(functiondef);
|
||||||
|
}
|
||||||
|
if (type2 == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
|
||||||
|
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef);
|
||||||
|
}
|
||||||
|
function functiondecl(type2, value) {
|
||||||
|
if (value == "*") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(functiondecl);
|
||||||
|
}
|
||||||
|
if (type2 == "variable") {
|
||||||
|
register(value);
|
||||||
|
return cont(functiondecl);
|
||||||
|
}
|
||||||
|
if (type2 == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
|
||||||
|
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl);
|
||||||
|
}
|
||||||
|
function typename(type2, value) {
|
||||||
|
if (type2 == "keyword" || type2 == "variable") {
|
||||||
|
cx.marked = "type";
|
||||||
|
return cont(typename);
|
||||||
|
} else if (value == "<") {
|
||||||
|
return cont(pushlex(">"), commasep(typeparam, ">"), poplex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function funarg(type2, value) {
|
||||||
|
if (value == "@") cont(expression, funarg);
|
||||||
|
if (type2 == "spread") return cont(funarg);
|
||||||
|
if (isTS && isModifier(value)) {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(funarg);
|
||||||
|
}
|
||||||
|
if (isTS && type2 == "this") return cont(maybetype, maybeAssign);
|
||||||
|
return pass(pattern, maybetype, maybeAssign);
|
||||||
|
}
|
||||||
|
function classExpression(type2, value) {
|
||||||
|
if (type2 == "variable") return className(type2, value);
|
||||||
|
return classNameAfter(type2, value);
|
||||||
|
}
|
||||||
|
function className(type2, value) {
|
||||||
|
if (type2 == "variable") {
|
||||||
|
register(value);
|
||||||
|
return cont(classNameAfter);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function classNameAfter(type2, value) {
|
||||||
|
if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter);
|
||||||
|
if (value == "extends" || value == "implements" || isTS && type2 == ",") {
|
||||||
|
if (value == "implements") cx.marked = "keyword";
|
||||||
|
return cont(isTS ? typeexpr : expression, classNameAfter);
|
||||||
|
}
|
||||||
|
if (type2 == "{") return cont(pushlex("}"), classBody, poplex);
|
||||||
|
}
|
||||||
|
function classBody(type2, value) {
|
||||||
|
if (type2 == "async" || type2 == "variable" && (value == "static" || value == "get" || value == "set" || isTS && isModifier(value)) && cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/, false)) {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(classBody);
|
||||||
|
}
|
||||||
|
if (type2 == "variable" || cx.style == "keyword") {
|
||||||
|
cx.marked = "property";
|
||||||
|
return cont(classfield, classBody);
|
||||||
|
}
|
||||||
|
if (type2 == "number" || type2 == "string") return cont(classfield, classBody);
|
||||||
|
if (type2 == "[")
|
||||||
|
return cont(expression, maybetype, expect("]"), classfield, classBody);
|
||||||
|
if (value == "*") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(classBody);
|
||||||
|
}
|
||||||
|
if (isTS && type2 == "(") return pass(functiondecl, classBody);
|
||||||
|
if (type2 == ";" || type2 == ",") return cont(classBody);
|
||||||
|
if (type2 == "}") return cont();
|
||||||
|
if (value == "@") return cont(expression, classBody);
|
||||||
|
}
|
||||||
|
function classfield(type2, value) {
|
||||||
|
if (value == "!" || value == "?") return cont(classfield);
|
||||||
|
if (type2 == ":") return cont(typeexpr, maybeAssign);
|
||||||
|
if (value == "=") return cont(expressionNoComma);
|
||||||
|
var context = cx.state.lexical.prev, isInterface = context && context.info == "interface";
|
||||||
|
return pass(isInterface ? functiondecl : functiondef);
|
||||||
|
}
|
||||||
|
function afterExport(type2, value) {
|
||||||
|
if (value == "*") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(maybeFrom, expect(";"));
|
||||||
|
}
|
||||||
|
if (value == "default") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(expression, expect(";"));
|
||||||
|
}
|
||||||
|
if (type2 == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
|
||||||
|
return pass(statement);
|
||||||
|
}
|
||||||
|
function exportField(type2, value) {
|
||||||
|
if (value == "as") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(expect("variable"));
|
||||||
|
}
|
||||||
|
if (type2 == "variable") return pass(expressionNoComma, exportField);
|
||||||
|
}
|
||||||
|
function afterImport(type2) {
|
||||||
|
if (type2 == "string") return cont();
|
||||||
|
if (type2 == "(") return pass(expression);
|
||||||
|
if (type2 == ".") return pass(maybeoperatorComma);
|
||||||
|
return pass(importSpec, maybeMoreImports, maybeFrom);
|
||||||
|
}
|
||||||
|
function importSpec(type2, value) {
|
||||||
|
if (type2 == "{") return contCommasep(importSpec, "}");
|
||||||
|
if (type2 == "variable") register(value);
|
||||||
|
if (value == "*") cx.marked = "keyword";
|
||||||
|
return cont(maybeAs);
|
||||||
|
}
|
||||||
|
function maybeMoreImports(type2) {
|
||||||
|
if (type2 == ",") return cont(importSpec, maybeMoreImports);
|
||||||
|
}
|
||||||
|
function maybeAs(_type, value) {
|
||||||
|
if (value == "as") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(importSpec);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function maybeFrom(_type, value) {
|
||||||
|
if (value == "from") {
|
||||||
|
cx.marked = "keyword";
|
||||||
|
return cont(expression);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function arrayLiteral(type2) {
|
||||||
|
if (type2 == "]") return cont();
|
||||||
|
return pass(commasep(expressionNoComma, "]"));
|
||||||
|
}
|
||||||
|
function enumdef() {
|
||||||
|
return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex);
|
||||||
|
}
|
||||||
|
function enummember() {
|
||||||
|
return pass(pattern, maybeAssign);
|
||||||
|
}
|
||||||
|
function isContinuedStatement(state, textAfter) {
|
||||||
|
return state.lastType == "operator" || state.lastType == "," || isOperatorChar.test(textAfter.charAt(0)) || /[,.]/.test(textAfter.charAt(0));
|
||||||
|
}
|
||||||
|
function expressionAllowed(stream, state, backUp) {
|
||||||
|
return state.tokenize == tokenBase && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) || state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0)));
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
name: parserConfig.name,
|
||||||
|
startState: function(indentUnit) {
|
||||||
|
var state = {
|
||||||
|
tokenize: tokenBase,
|
||||||
|
lastType: "sof",
|
||||||
|
cc: [],
|
||||||
|
lexical: new JSLexical(-indentUnit, 0, "block", false),
|
||||||
|
localVars: parserConfig.localVars,
|
||||||
|
context: parserConfig.localVars && new Context(null, null, false),
|
||||||
|
indented: 0
|
||||||
|
};
|
||||||
|
if (parserConfig.globalVars && typeof parserConfig.globalVars == "object")
|
||||||
|
state.globalVars = parserConfig.globalVars;
|
||||||
|
return state;
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
if (stream.sol()) {
|
||||||
|
if (!state.lexical.hasOwnProperty("align"))
|
||||||
|
state.lexical.align = false;
|
||||||
|
state.indented = stream.indentation();
|
||||||
|
findFatArrow(stream, state);
|
||||||
|
}
|
||||||
|
if (state.tokenize != tokenComment && stream.eatSpace()) return null;
|
||||||
|
var style = state.tokenize(stream, state);
|
||||||
|
if (type == "comment") return style;
|
||||||
|
state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
|
||||||
|
return parseJS(state, style, type, content, stream);
|
||||||
|
},
|
||||||
|
indent: function(state, textAfter, cx2) {
|
||||||
|
if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return null;
|
||||||
|
if (state.tokenize != tokenBase) return 0;
|
||||||
|
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top;
|
||||||
|
if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
|
||||||
|
var c = state.cc[i];
|
||||||
|
if (c == poplex) lexical = lexical.prev;
|
||||||
|
else if (c != maybeelse && c != popcontext) break;
|
||||||
|
}
|
||||||
|
while ((lexical.type == "stat" || lexical.type == "form") && (firstChar == "}" || (top = state.cc[state.cc.length - 1]) && (top == maybeoperatorComma || top == maybeoperatorNoComma) && !/^[,\.=+\-*:?[\(]/.test(textAfter)))
|
||||||
|
lexical = lexical.prev;
|
||||||
|
if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
|
||||||
|
lexical = lexical.prev;
|
||||||
|
var type2 = lexical.type, closing = firstChar == type2;
|
||||||
|
if (type2 == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);
|
||||||
|
else if (type2 == "form" && firstChar == "{") return lexical.indented;
|
||||||
|
else if (type2 == "form") return lexical.indented + cx2.unit;
|
||||||
|
else if (type2 == "stat")
|
||||||
|
return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || cx2.unit : 0);
|
||||||
|
else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
|
||||||
|
return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? cx2.unit : 2 * cx2.unit);
|
||||||
|
else if (lexical.align) return lexical.column + (closing ? 0 : 1);
|
||||||
|
else return lexical.indented + (closing ? 0 : cx2.unit);
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
indentOnInput: /^\s*(?:case .*?:|default:|\{|\})$/,
|
||||||
|
commentTokens: jsonMode ? void 0 : { line: "//", block: { open: "/*", close: "*/" } },
|
||||||
|
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] },
|
||||||
|
wordChars: "$"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var javascript = mkJavaScript({ name: "javascript" });
|
||||||
|
var json = mkJavaScript({ name: "json", json: true });
|
||||||
|
var jsonld = mkJavaScript({ name: "json", jsonld: true });
|
||||||
|
var typescript = mkJavaScript({ name: "typescript", typescript: true });
|
||||||
|
|
||||||
|
export {
|
||||||
|
javascript,
|
||||||
|
json,
|
||||||
|
jsonld,
|
||||||
|
typescript
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-WDORMSBC.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
+1034
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+1116
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
+2460
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+810
@@ -0,0 +1,810 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/clike.js
|
||||||
|
function Context(indented, column, type, info, align, prev) {
|
||||||
|
this.indented = indented;
|
||||||
|
this.column = column;
|
||||||
|
this.type = type;
|
||||||
|
this.info = info;
|
||||||
|
this.align = align;
|
||||||
|
this.prev = prev;
|
||||||
|
}
|
||||||
|
function pushContext(state, col, type, info) {
|
||||||
|
var indent = state.indented;
|
||||||
|
if (state.context && state.context.type == "statement" && type != "statement")
|
||||||
|
indent = state.context.indented;
|
||||||
|
return state.context = new Context(indent, col, type, info, null, state.context);
|
||||||
|
}
|
||||||
|
function popContext(state) {
|
||||||
|
var t = state.context.type;
|
||||||
|
if (t == ")" || t == "]" || t == "}")
|
||||||
|
state.indented = state.context.indented;
|
||||||
|
return state.context = state.context.prev;
|
||||||
|
}
|
||||||
|
function typeBefore(stream, state, pos) {
|
||||||
|
if (state.prevToken == "variable" || state.prevToken == "type") return true;
|
||||||
|
if (/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(stream.string.slice(0, pos))) return true;
|
||||||
|
if (state.typeAtEndOfLine && stream.column() == stream.indentation()) return true;
|
||||||
|
}
|
||||||
|
function isTopScope(context) {
|
||||||
|
for (; ; ) {
|
||||||
|
if (!context || context.type == "top") return true;
|
||||||
|
if (context.type == "}" && context.prev.info != "namespace") return false;
|
||||||
|
context = context.prev;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function clike(parserConfig) {
|
||||||
|
var statementIndentUnit = parserConfig.statementIndentUnit, dontAlignCalls = parserConfig.dontAlignCalls, keywords = parserConfig.keywords || {}, types = parserConfig.types || {}, builtin = parserConfig.builtin || {}, blockKeywords = parserConfig.blockKeywords || {}, defKeywords = parserConfig.defKeywords || {}, atoms = parserConfig.atoms || {}, hooks = parserConfig.hooks || {}, multiLineStrings = parserConfig.multiLineStrings, indentStatements = parserConfig.indentStatements !== false, indentSwitch = parserConfig.indentSwitch !== false, namespaceSeparator = parserConfig.namespaceSeparator, isPunctuationChar = parserConfig.isPunctuationChar || /[\[\]{}\(\),;\:\.]/, numberStart = parserConfig.numberStart || /[\d\.]/, number = parserConfig.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i, isOperatorChar = parserConfig.isOperatorChar || /[+\-*&%=<>!?|\/]/, isIdentifierChar = parserConfig.isIdentifierChar || /[\w\$_\xa1-\uffff]/, isReservedIdentifier = parserConfig.isReservedIdentifier || false;
|
||||||
|
var curPunc, isDefKeyword;
|
||||||
|
function tokenBase(stream, state) {
|
||||||
|
var ch = stream.next();
|
||||||
|
if (hooks[ch]) {
|
||||||
|
var result = hooks[ch](stream, state);
|
||||||
|
if (result !== false) return result;
|
||||||
|
}
|
||||||
|
if (ch == '"' || ch == "'") {
|
||||||
|
state.tokenize = tokenString(ch);
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
}
|
||||||
|
if (numberStart.test(ch)) {
|
||||||
|
stream.backUp(1);
|
||||||
|
if (stream.match(number)) return "number";
|
||||||
|
stream.next();
|
||||||
|
}
|
||||||
|
if (isPunctuationChar.test(ch)) {
|
||||||
|
curPunc = ch;
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (ch == "/") {
|
||||||
|
if (stream.eat("*")) {
|
||||||
|
state.tokenize = tokenComment;
|
||||||
|
return tokenComment(stream, state);
|
||||||
|
}
|
||||||
|
if (stream.eat("/")) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (isOperatorChar.test(ch)) {
|
||||||
|
while (!stream.match(/^\/[\/*]/, false) && stream.eat(isOperatorChar)) {
|
||||||
|
}
|
||||||
|
return "operator";
|
||||||
|
}
|
||||||
|
stream.eatWhile(isIdentifierChar);
|
||||||
|
if (namespaceSeparator) while (stream.match(namespaceSeparator))
|
||||||
|
stream.eatWhile(isIdentifierChar);
|
||||||
|
var cur = stream.current();
|
||||||
|
if (contains(keywords, cur)) {
|
||||||
|
if (contains(blockKeywords, cur)) curPunc = "newstatement";
|
||||||
|
if (contains(defKeywords, cur)) isDefKeyword = true;
|
||||||
|
return "keyword";
|
||||||
|
}
|
||||||
|
if (contains(types, cur)) return "type";
|
||||||
|
if (contains(builtin, cur) || isReservedIdentifier && isReservedIdentifier(cur)) {
|
||||||
|
if (contains(blockKeywords, cur)) curPunc = "newstatement";
|
||||||
|
return "builtin";
|
||||||
|
}
|
||||||
|
if (contains(atoms, cur)) return "atom";
|
||||||
|
return "variable";
|
||||||
|
}
|
||||||
|
function tokenString(quote) {
|
||||||
|
return function(stream, state) {
|
||||||
|
var escaped = false, next, end = false;
|
||||||
|
while ((next = stream.next()) != null) {
|
||||||
|
if (next == quote && !escaped) {
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
escaped = !escaped && next == "\\";
|
||||||
|
}
|
||||||
|
if (end || !(escaped || multiLineStrings))
|
||||||
|
state.tokenize = null;
|
||||||
|
return "string";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function tokenComment(stream, state) {
|
||||||
|
var maybeEnd = false, ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "/" && maybeEnd) {
|
||||||
|
state.tokenize = null;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = ch == "*";
|
||||||
|
}
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
function maybeEOL(stream, state) {
|
||||||
|
if (parserConfig.typeFirstDefinitions && stream.eol() && isTopScope(state.context))
|
||||||
|
state.typeAtEndOfLine = typeBefore(stream, state, stream.pos);
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
name: parserConfig.name,
|
||||||
|
startState: function(indentUnit) {
|
||||||
|
return {
|
||||||
|
tokenize: null,
|
||||||
|
context: new Context(-indentUnit, 0, "top", null, false),
|
||||||
|
indented: 0,
|
||||||
|
startOfLine: true,
|
||||||
|
prevToken: null
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
var ctx = state.context;
|
||||||
|
if (stream.sol()) {
|
||||||
|
if (ctx.align == null) ctx.align = false;
|
||||||
|
state.indented = stream.indentation();
|
||||||
|
state.startOfLine = true;
|
||||||
|
}
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
maybeEOL(stream, state);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
curPunc = isDefKeyword = null;
|
||||||
|
var style = (state.tokenize || tokenBase)(stream, state);
|
||||||
|
if (style == "comment" || style == "meta") return style;
|
||||||
|
if (ctx.align == null) ctx.align = true;
|
||||||
|
if (curPunc == ";" || curPunc == ":" || curPunc == "," && stream.match(/^\s*(?:\/\/.*)?$/, false))
|
||||||
|
while (state.context.type == "statement") popContext(state);
|
||||||
|
else if (curPunc == "{") pushContext(state, stream.column(), "}");
|
||||||
|
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
||||||
|
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
||||||
|
else if (curPunc == "}") {
|
||||||
|
while (ctx.type == "statement") ctx = popContext(state);
|
||||||
|
if (ctx.type == "}") ctx = popContext(state);
|
||||||
|
while (ctx.type == "statement") ctx = popContext(state);
|
||||||
|
} else if (curPunc == ctx.type) popContext(state);
|
||||||
|
else if (indentStatements && ((ctx.type == "}" || ctx.type == "top") && curPunc != ";" || ctx.type == "statement" && curPunc == "newstatement")) {
|
||||||
|
pushContext(state, stream.column(), "statement", stream.current());
|
||||||
|
}
|
||||||
|
if (style == "variable" && (state.prevToken == "def" || parserConfig.typeFirstDefinitions && typeBefore(stream, state, stream.start) && isTopScope(state.context) && stream.match(/^\s*\(/, false)))
|
||||||
|
style = "def";
|
||||||
|
if (hooks.token) {
|
||||||
|
var result = hooks.token(stream, state, style);
|
||||||
|
if (result !== void 0) style = result;
|
||||||
|
}
|
||||||
|
if (style == "def" && parserConfig.styleDefs === false) style = "variable";
|
||||||
|
state.startOfLine = false;
|
||||||
|
state.prevToken = isDefKeyword ? "def" : style || curPunc;
|
||||||
|
maybeEOL(stream, state);
|
||||||
|
return style;
|
||||||
|
},
|
||||||
|
indent: function(state, textAfter, context) {
|
||||||
|
if (state.tokenize != tokenBase && state.tokenize != null || state.typeAtEndOfLine && isTopScope(state.context))
|
||||||
|
return null;
|
||||||
|
var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
|
||||||
|
var closing = firstChar == ctx.type;
|
||||||
|
if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
|
||||||
|
if (parserConfig.dontIndentStatements)
|
||||||
|
while (ctx.type == "statement" && parserConfig.dontIndentStatements.test(ctx.info))
|
||||||
|
ctx = ctx.prev;
|
||||||
|
if (hooks.indent) {
|
||||||
|
var hook = hooks.indent(state, ctx, textAfter, context.unit);
|
||||||
|
if (typeof hook == "number") return hook;
|
||||||
|
}
|
||||||
|
var switchBlock = ctx.prev && ctx.prev.info == "switch";
|
||||||
|
if (parserConfig.allmanIndentation && /[{(]/.test(firstChar)) {
|
||||||
|
while (ctx.type != "top" && ctx.type != "}") ctx = ctx.prev;
|
||||||
|
return ctx.indented;
|
||||||
|
}
|
||||||
|
if (ctx.type == "statement")
|
||||||
|
return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit || context.unit);
|
||||||
|
if (ctx.align && (!dontAlignCalls || ctx.type != ")"))
|
||||||
|
return ctx.column + (closing ? 0 : 1);
|
||||||
|
if (ctx.type == ")" && !closing)
|
||||||
|
return ctx.indented + (statementIndentUnit || context.unit);
|
||||||
|
return ctx.indented + (closing ? 0 : context.unit) + (!closing && switchBlock && !/^(?:case|default)\b/.test(textAfter) ? context.unit : 0);
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
indentOnInput: indentSwitch ? /^\s*(?:case .*?:|default:|\{\}?|\})$/ : /^\s*[{}]$/,
|
||||||
|
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
|
||||||
|
autocomplete: Object.keys(keywords).concat(Object.keys(types)).concat(Object.keys(builtin)).concat(Object.keys(atoms)),
|
||||||
|
...parserConfig.languageData
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function words(str) {
|
||||||
|
var obj = {}, words2 = str.split(" ");
|
||||||
|
for (var i = 0; i < words2.length; ++i) obj[words2[i]] = true;
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
function contains(words2, word) {
|
||||||
|
if (typeof words2 === "function") {
|
||||||
|
return words2(word);
|
||||||
|
} else {
|
||||||
|
return words2.propertyIsEnumerable(word);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var cKeywords = "auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran";
|
||||||
|
var cppKeywords = "alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq";
|
||||||
|
var objCKeywords = "bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available";
|
||||||
|
var objCBuiltins = "FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT";
|
||||||
|
var basicCTypes = words("int long char short double float unsigned signed void bool");
|
||||||
|
var basicObjCTypes = words("SEL instancetype id Class Protocol BOOL");
|
||||||
|
function cTypes(identifier) {
|
||||||
|
return contains(basicCTypes, identifier) || /.+_t$/.test(identifier);
|
||||||
|
}
|
||||||
|
function objCTypes(identifier) {
|
||||||
|
return cTypes(identifier) || contains(basicObjCTypes, identifier);
|
||||||
|
}
|
||||||
|
var cBlockKeywords = "case do else for if switch while struct enum union";
|
||||||
|
var cDefKeywords = "struct enum union";
|
||||||
|
function cppHook(stream, state) {
|
||||||
|
if (!state.startOfLine) return false;
|
||||||
|
for (var ch, next = null; ch = stream.peek(); ) {
|
||||||
|
if (ch == "\\" && stream.match(/^.$/)) {
|
||||||
|
next = cppHook;
|
||||||
|
break;
|
||||||
|
} else if (ch == "/" && stream.match(/^\/[\/\*]/, false)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
stream.next();
|
||||||
|
}
|
||||||
|
state.tokenize = next;
|
||||||
|
return "meta";
|
||||||
|
}
|
||||||
|
function pointerHook(_stream, state) {
|
||||||
|
if (state.prevToken == "type") return "type";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function cIsReservedIdentifier(token) {
|
||||||
|
if (!token || token.length < 2) return false;
|
||||||
|
if (token[0] != "_") return false;
|
||||||
|
return token[1] == "_" || token[1] !== token[1].toLowerCase();
|
||||||
|
}
|
||||||
|
function cpp14Literal(stream) {
|
||||||
|
stream.eatWhile(/[\w\.']/);
|
||||||
|
return "number";
|
||||||
|
}
|
||||||
|
function cpp11StringHook(stream, state) {
|
||||||
|
stream.backUp(1);
|
||||||
|
if (stream.match(/^(?:R|u8R|uR|UR|LR)/)) {
|
||||||
|
var match = stream.match(/^"([^\s\\()]{0,16})\(/);
|
||||||
|
if (!match) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
state.cpp11RawStringDelim = match[1];
|
||||||
|
state.tokenize = tokenRawString;
|
||||||
|
return tokenRawString(stream, state);
|
||||||
|
}
|
||||||
|
if (stream.match(/^(?:u8|u|U|L)/)) {
|
||||||
|
if (stream.match(
|
||||||
|
/^["']/,
|
||||||
|
/* eat */
|
||||||
|
false
|
||||||
|
)) {
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
stream.next();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function cppLooksLikeConstructor(word) {
|
||||||
|
var lastTwo = /(\w+)::~?(\w+)$/.exec(word);
|
||||||
|
return lastTwo && lastTwo[1] == lastTwo[2];
|
||||||
|
}
|
||||||
|
function tokenAtString(stream, state) {
|
||||||
|
var next;
|
||||||
|
while ((next = stream.next()) != null) {
|
||||||
|
if (next == '"' && !stream.eat('"')) {
|
||||||
|
state.tokenize = null;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
function tokenRawString(stream, state) {
|
||||||
|
var delim = state.cpp11RawStringDelim.replace(/[^\w\s]/g, "\\$&");
|
||||||
|
var match = stream.match(new RegExp(".*?\\)" + delim + '"'));
|
||||||
|
if (match)
|
||||||
|
state.tokenize = null;
|
||||||
|
else
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
var c = clike({
|
||||||
|
name: "c",
|
||||||
|
keywords: words(cKeywords),
|
||||||
|
types: cTypes,
|
||||||
|
blockKeywords: words(cBlockKeywords),
|
||||||
|
defKeywords: words(cDefKeywords),
|
||||||
|
typeFirstDefinitions: true,
|
||||||
|
atoms: words("NULL true false"),
|
||||||
|
isReservedIdentifier: cIsReservedIdentifier,
|
||||||
|
hooks: {
|
||||||
|
"#": cppHook,
|
||||||
|
"*": pointerHook
|
||||||
|
}
|
||||||
|
});
|
||||||
|
var cpp = clike({
|
||||||
|
name: "cpp",
|
||||||
|
keywords: words(cKeywords + " " + cppKeywords),
|
||||||
|
types: cTypes,
|
||||||
|
blockKeywords: words(cBlockKeywords + " class try catch"),
|
||||||
|
defKeywords: words(cDefKeywords + " class namespace"),
|
||||||
|
typeFirstDefinitions: true,
|
||||||
|
atoms: words("true false NULL nullptr"),
|
||||||
|
dontIndentStatements: /^template$/,
|
||||||
|
isIdentifierChar: /[\w\$_~\xa1-\uffff]/,
|
||||||
|
isReservedIdentifier: cIsReservedIdentifier,
|
||||||
|
hooks: {
|
||||||
|
"#": cppHook,
|
||||||
|
"*": pointerHook,
|
||||||
|
"u": cpp11StringHook,
|
||||||
|
"U": cpp11StringHook,
|
||||||
|
"L": cpp11StringHook,
|
||||||
|
"R": cpp11StringHook,
|
||||||
|
"0": cpp14Literal,
|
||||||
|
"1": cpp14Literal,
|
||||||
|
"2": cpp14Literal,
|
||||||
|
"3": cpp14Literal,
|
||||||
|
"4": cpp14Literal,
|
||||||
|
"5": cpp14Literal,
|
||||||
|
"6": cpp14Literal,
|
||||||
|
"7": cpp14Literal,
|
||||||
|
"8": cpp14Literal,
|
||||||
|
"9": cpp14Literal,
|
||||||
|
token: function(stream, state, style) {
|
||||||
|
if (style == "variable" && stream.peek() == "(" && (state.prevToken == ";" || state.prevToken == null || state.prevToken == "}") && cppLooksLikeConstructor(stream.current()))
|
||||||
|
return "def";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
namespaceSeparator: "::"
|
||||||
|
});
|
||||||
|
var java = clike({
|
||||||
|
name: "java",
|
||||||
|
keywords: words("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),
|
||||||
|
types: words("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),
|
||||||
|
blockKeywords: words("catch class do else finally for if switch try while"),
|
||||||
|
defKeywords: words("class interface enum @interface"),
|
||||||
|
typeFirstDefinitions: true,
|
||||||
|
atoms: words("true false null"),
|
||||||
|
number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
|
||||||
|
hooks: {
|
||||||
|
"@": function(stream) {
|
||||||
|
if (stream.match("interface", false)) return false;
|
||||||
|
stream.eatWhile(/[\w\$_]/);
|
||||||
|
return "meta";
|
||||||
|
},
|
||||||
|
'"': function(stream, state) {
|
||||||
|
if (!stream.match(/""$/)) return false;
|
||||||
|
state.tokenize = tokenTripleString;
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
var csharp = clike({
|
||||||
|
name: "csharp",
|
||||||
|
keywords: words("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),
|
||||||
|
types: words("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),
|
||||||
|
blockKeywords: words("catch class do else finally for foreach if struct switch try while"),
|
||||||
|
defKeywords: words("class interface namespace record struct var"),
|
||||||
|
typeFirstDefinitions: true,
|
||||||
|
atoms: words("true false null"),
|
||||||
|
hooks: {
|
||||||
|
"@": function(stream, state) {
|
||||||
|
if (stream.eat('"')) {
|
||||||
|
state.tokenize = tokenAtString;
|
||||||
|
return tokenAtString(stream, state);
|
||||||
|
}
|
||||||
|
stream.eatWhile(/[\w\$_]/);
|
||||||
|
return "meta";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
function tokenTripleString(stream, state) {
|
||||||
|
var escaped = false;
|
||||||
|
while (!stream.eol()) {
|
||||||
|
if (!escaped && stream.match('"""')) {
|
||||||
|
state.tokenize = null;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
escaped = stream.next() == "\\" && !escaped;
|
||||||
|
}
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
function tokenNestedComment(depth) {
|
||||||
|
return function(stream, state) {
|
||||||
|
var ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "*" && stream.eat("/")) {
|
||||||
|
if (depth == 1) {
|
||||||
|
state.tokenize = null;
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
state.tokenize = tokenNestedComment(depth - 1);
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
}
|
||||||
|
} else if (ch == "/" && stream.eat("*")) {
|
||||||
|
state.tokenize = tokenNestedComment(depth + 1);
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "comment";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var scala = clike({
|
||||||
|
name: "scala",
|
||||||
|
keywords: words(
|
||||||
|
/* scala */
|
||||||
|
"abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"
|
||||||
|
),
|
||||||
|
types: words(
|
||||||
|
"AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
|
||||||
|
),
|
||||||
|
multiLineStrings: true,
|
||||||
|
blockKeywords: words("catch class enum do else finally for forSome if match switch try while"),
|
||||||
|
defKeywords: words("class enum def object package trait type val var"),
|
||||||
|
atoms: words("true false null"),
|
||||||
|
indentStatements: false,
|
||||||
|
indentSwitch: false,
|
||||||
|
isOperatorChar: /[+\-*&%=<>!?|\/#:@]/,
|
||||||
|
hooks: {
|
||||||
|
"@": function(stream) {
|
||||||
|
stream.eatWhile(/[\w\$_]/);
|
||||||
|
return "meta";
|
||||||
|
},
|
||||||
|
'"': function(stream, state) {
|
||||||
|
if (!stream.match('""')) return false;
|
||||||
|
state.tokenize = tokenTripleString;
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
},
|
||||||
|
"'": function(stream) {
|
||||||
|
if (stream.match(/^(\\[^'\s]+|[^\\'])'/)) return "character";
|
||||||
|
stream.eatWhile(/[\w\$_\xa1-\uffff]/);
|
||||||
|
return "atom";
|
||||||
|
},
|
||||||
|
"=": function(stream, state) {
|
||||||
|
var cx = state.context;
|
||||||
|
if (cx.type == "}" && cx.align && stream.eat(">")) {
|
||||||
|
state.context = new Context(cx.indented, cx.column, cx.type, cx.info, null, cx.prev);
|
||||||
|
return "operator";
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"/": function(stream, state) {
|
||||||
|
if (!stream.eat("*")) return false;
|
||||||
|
state.tokenize = tokenNestedComment(1);
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
closeBrackets: { brackets: ["(", "[", "{", "'", '"', '"""'] }
|
||||||
|
}
|
||||||
|
});
|
||||||
|
function tokenKotlinString(tripleString) {
|
||||||
|
return function(stream, state) {
|
||||||
|
var escaped = false, next, end = false;
|
||||||
|
while (!stream.eol()) {
|
||||||
|
if (!tripleString && !escaped && stream.match('"')) {
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (tripleString && stream.match('"""')) {
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
next = stream.next();
|
||||||
|
if (!escaped && next == "$" && stream.match("{"))
|
||||||
|
stream.skipTo("}");
|
||||||
|
escaped = !escaped && next == "\\" && !tripleString;
|
||||||
|
}
|
||||||
|
if (end || !tripleString)
|
||||||
|
state.tokenize = null;
|
||||||
|
return "string";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var kotlin = clike({
|
||||||
|
name: "kotlin",
|
||||||
|
keywords: words(
|
||||||
|
/*keywords*/
|
||||||
|
"package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"
|
||||||
|
),
|
||||||
|
types: words(
|
||||||
|
/* package java.lang */
|
||||||
|
"Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"
|
||||||
|
),
|
||||||
|
intendSwitch: false,
|
||||||
|
indentStatements: false,
|
||||||
|
multiLineStrings: true,
|
||||||
|
number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
|
||||||
|
blockKeywords: words("catch class do else finally for if where try while enum"),
|
||||||
|
defKeywords: words("class val var object interface fun"),
|
||||||
|
atoms: words("true false null this"),
|
||||||
|
hooks: {
|
||||||
|
"@": function(stream) {
|
||||||
|
stream.eatWhile(/[\w\$_]/);
|
||||||
|
return "meta";
|
||||||
|
},
|
||||||
|
"*": function(_stream, state) {
|
||||||
|
return state.prevToken == "." ? "variable" : "operator";
|
||||||
|
},
|
||||||
|
'"': function(stream, state) {
|
||||||
|
state.tokenize = tokenKotlinString(stream.match('""'));
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
},
|
||||||
|
"/": function(stream, state) {
|
||||||
|
if (!stream.eat("*")) return false;
|
||||||
|
state.tokenize = tokenNestedComment(1);
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
},
|
||||||
|
indent: function(state, ctx, textAfter, indentUnit) {
|
||||||
|
var firstChar = textAfter && textAfter.charAt(0);
|
||||||
|
if ((state.prevToken == "}" || state.prevToken == ")") && textAfter == "")
|
||||||
|
return state.indented;
|
||||||
|
if (state.prevToken == "operator" && textAfter != "}" && state.context.type != "}" || state.prevToken == "variable" && firstChar == "." || (state.prevToken == "}" || state.prevToken == ")") && firstChar == ".")
|
||||||
|
return indentUnit * 2 + ctx.indented;
|
||||||
|
if (ctx.align && ctx.type == "}")
|
||||||
|
return ctx.indented + (state.context.type == (textAfter || "").charAt(0) ? 0 : indentUnit);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
closeBrackets: { brackets: ["(", "[", "{", "'", '"', '"""'] }
|
||||||
|
}
|
||||||
|
});
|
||||||
|
var shader = clike({
|
||||||
|
name: "shader",
|
||||||
|
keywords: words("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),
|
||||||
|
types: words("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),
|
||||||
|
blockKeywords: words("for while do if else struct"),
|
||||||
|
builtin: words("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),
|
||||||
|
atoms: words("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),
|
||||||
|
indentSwitch: false,
|
||||||
|
hooks: { "#": cppHook }
|
||||||
|
});
|
||||||
|
var nesC = clike({
|
||||||
|
name: "nesc",
|
||||||
|
keywords: words(cKeywords + " as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),
|
||||||
|
types: cTypes,
|
||||||
|
blockKeywords: words(cBlockKeywords),
|
||||||
|
atoms: words("null true false"),
|
||||||
|
hooks: { "#": cppHook }
|
||||||
|
});
|
||||||
|
var objectiveC = clike({
|
||||||
|
name: "objectivec",
|
||||||
|
keywords: words(cKeywords + " " + objCKeywords),
|
||||||
|
types: objCTypes,
|
||||||
|
builtin: words(objCBuiltins),
|
||||||
|
blockKeywords: words(cBlockKeywords + " @synthesize @try @catch @finally @autoreleasepool @synchronized"),
|
||||||
|
defKeywords: words(cDefKeywords + " @interface @implementation @protocol @class"),
|
||||||
|
dontIndentStatements: /^@.*$/,
|
||||||
|
typeFirstDefinitions: true,
|
||||||
|
atoms: words("YES NO NULL Nil nil true false nullptr"),
|
||||||
|
isReservedIdentifier: cIsReservedIdentifier,
|
||||||
|
hooks: {
|
||||||
|
"#": cppHook,
|
||||||
|
"*": pointerHook
|
||||||
|
}
|
||||||
|
});
|
||||||
|
var objectiveCpp = clike({
|
||||||
|
name: "objectivecpp",
|
||||||
|
keywords: words(cKeywords + " " + objCKeywords + " " + cppKeywords),
|
||||||
|
types: objCTypes,
|
||||||
|
builtin: words(objCBuiltins),
|
||||||
|
blockKeywords: words(cBlockKeywords + " @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),
|
||||||
|
defKeywords: words(cDefKeywords + " @interface @implementation @protocol @class class namespace"),
|
||||||
|
dontIndentStatements: /^@.*$|^template$/,
|
||||||
|
typeFirstDefinitions: true,
|
||||||
|
atoms: words("YES NO NULL Nil nil true false nullptr"),
|
||||||
|
isReservedIdentifier: cIsReservedIdentifier,
|
||||||
|
hooks: {
|
||||||
|
"#": cppHook,
|
||||||
|
"*": pointerHook,
|
||||||
|
"u": cpp11StringHook,
|
||||||
|
"U": cpp11StringHook,
|
||||||
|
"L": cpp11StringHook,
|
||||||
|
"R": cpp11StringHook,
|
||||||
|
"0": cpp14Literal,
|
||||||
|
"1": cpp14Literal,
|
||||||
|
"2": cpp14Literal,
|
||||||
|
"3": cpp14Literal,
|
||||||
|
"4": cpp14Literal,
|
||||||
|
"5": cpp14Literal,
|
||||||
|
"6": cpp14Literal,
|
||||||
|
"7": cpp14Literal,
|
||||||
|
"8": cpp14Literal,
|
||||||
|
"9": cpp14Literal,
|
||||||
|
token: function(stream, state, style) {
|
||||||
|
if (style == "variable" && stream.peek() == "(" && (state.prevToken == ";" || state.prevToken == null || state.prevToken == "}") && cppLooksLikeConstructor(stream.current()))
|
||||||
|
return "def";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
namespaceSeparator: "::"
|
||||||
|
});
|
||||||
|
var squirrel = clike({
|
||||||
|
name: "squirrel",
|
||||||
|
keywords: words("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),
|
||||||
|
types: cTypes,
|
||||||
|
blockKeywords: words("case catch class else for foreach if switch try while"),
|
||||||
|
defKeywords: words("function local class"),
|
||||||
|
typeFirstDefinitions: true,
|
||||||
|
atoms: words("true false null"),
|
||||||
|
hooks: { "#": cppHook }
|
||||||
|
});
|
||||||
|
var stringTokenizer = null;
|
||||||
|
function tokenCeylonString(type) {
|
||||||
|
return function(stream, state) {
|
||||||
|
var escaped = false, next, end = false;
|
||||||
|
while (!stream.eol()) {
|
||||||
|
if (!escaped && stream.match('"') && (type == "single" || stream.match('""'))) {
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (!escaped && stream.match("``")) {
|
||||||
|
stringTokenizer = tokenCeylonString(type);
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
next = stream.next();
|
||||||
|
escaped = type == "single" && !escaped && next == "\\";
|
||||||
|
}
|
||||||
|
if (end)
|
||||||
|
state.tokenize = null;
|
||||||
|
return "string";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var ceylon = clike({
|
||||||
|
name: "ceylon",
|
||||||
|
keywords: words("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),
|
||||||
|
types: function(word) {
|
||||||
|
var first = word.charAt(0);
|
||||||
|
return first === first.toUpperCase() && first !== first.toLowerCase();
|
||||||
|
},
|
||||||
|
blockKeywords: words("case catch class dynamic else finally for function if interface module new object switch try while"),
|
||||||
|
defKeywords: words("class dynamic function interface module object package value"),
|
||||||
|
builtin: words("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),
|
||||||
|
isPunctuationChar: /[\[\]{}\(\),;\:\.`]/,
|
||||||
|
isOperatorChar: /[+\-*&%=<>!?|^~:\/]/,
|
||||||
|
numberStart: /[\d#$]/,
|
||||||
|
number: /^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,
|
||||||
|
multiLineStrings: true,
|
||||||
|
typeFirstDefinitions: true,
|
||||||
|
atoms: words("true false null larger smaller equal empty finished"),
|
||||||
|
indentSwitch: false,
|
||||||
|
styleDefs: false,
|
||||||
|
hooks: {
|
||||||
|
"@": function(stream) {
|
||||||
|
stream.eatWhile(/[\w\$_]/);
|
||||||
|
return "meta";
|
||||||
|
},
|
||||||
|
'"': function(stream, state) {
|
||||||
|
state.tokenize = tokenCeylonString(stream.match('""') ? "triple" : "single");
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
},
|
||||||
|
"`": function(stream, state) {
|
||||||
|
if (!stringTokenizer || !stream.match("`")) return false;
|
||||||
|
state.tokenize = stringTokenizer;
|
||||||
|
stringTokenizer = null;
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
},
|
||||||
|
"'": function(stream) {
|
||||||
|
if (stream.match(/^(\\[^'\s]+|[^\\'])'/)) return "string.special";
|
||||||
|
stream.eatWhile(/[\w\$_\xa1-\uffff]/);
|
||||||
|
return "atom";
|
||||||
|
},
|
||||||
|
token: function(_stream, state, style) {
|
||||||
|
if ((style == "variable" || style == "type") && state.prevToken == ".") {
|
||||||
|
return "variableName.special";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
closeBrackets: { brackets: ["(", "[", "{", "'", '"', '"""'] }
|
||||||
|
}
|
||||||
|
});
|
||||||
|
function pushInterpolationStack(state) {
|
||||||
|
(state.interpolationStack || (state.interpolationStack = [])).push(state.tokenize);
|
||||||
|
}
|
||||||
|
function popInterpolationStack(state) {
|
||||||
|
return (state.interpolationStack || (state.interpolationStack = [])).pop();
|
||||||
|
}
|
||||||
|
function sizeInterpolationStack(state) {
|
||||||
|
return state.interpolationStack ? state.interpolationStack.length : 0;
|
||||||
|
}
|
||||||
|
function tokenDartString(quote, stream, state, raw) {
|
||||||
|
var tripleQuoted = false;
|
||||||
|
if (stream.eat(quote)) {
|
||||||
|
if (stream.eat(quote)) tripleQuoted = true;
|
||||||
|
else return "string";
|
||||||
|
}
|
||||||
|
function tokenStringHelper(stream2, state2) {
|
||||||
|
var escaped = false;
|
||||||
|
while (!stream2.eol()) {
|
||||||
|
if (!raw && !escaped && stream2.peek() == "$") {
|
||||||
|
pushInterpolationStack(state2);
|
||||||
|
state2.tokenize = tokenInterpolation;
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
var next = stream2.next();
|
||||||
|
if (next == quote && !escaped && (!tripleQuoted || stream2.match(quote + quote))) {
|
||||||
|
state2.tokenize = null;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
escaped = !raw && !escaped && next == "\\";
|
||||||
|
}
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
state.tokenize = tokenStringHelper;
|
||||||
|
return tokenStringHelper(stream, state);
|
||||||
|
}
|
||||||
|
function tokenInterpolation(stream, state) {
|
||||||
|
stream.eat("$");
|
||||||
|
if (stream.eat("{")) {
|
||||||
|
state.tokenize = null;
|
||||||
|
} else {
|
||||||
|
state.tokenize = tokenInterpolationIdentifier;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
function tokenInterpolationIdentifier(stream, state) {
|
||||||
|
stream.eatWhile(/[\w_]/);
|
||||||
|
state.tokenize = popInterpolationStack(state);
|
||||||
|
return "variable";
|
||||||
|
}
|
||||||
|
var dart = clike({
|
||||||
|
name: "dart",
|
||||||
|
keywords: words("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),
|
||||||
|
blockKeywords: words("try catch finally do else for if switch while"),
|
||||||
|
builtin: words("void bool num int double dynamic var String Null Never"),
|
||||||
|
atoms: words("true false null"),
|
||||||
|
// clike numbers without the suffixes, and with '_' separators.
|
||||||
|
number: /^(?:0x[a-f\d_]+|(?:[\d_]+\.?[\d_]*|\.[\d_]+)(?:e[-+]?[\d_]+)?)/i,
|
||||||
|
hooks: {
|
||||||
|
"@": function(stream) {
|
||||||
|
stream.eatWhile(/[\w\$_\.]/);
|
||||||
|
return "meta";
|
||||||
|
},
|
||||||
|
// custom string handling to deal with triple-quoted strings and string interpolation
|
||||||
|
"'": function(stream, state) {
|
||||||
|
return tokenDartString("'", stream, state, false);
|
||||||
|
},
|
||||||
|
'"': function(stream, state) {
|
||||||
|
return tokenDartString('"', stream, state, false);
|
||||||
|
},
|
||||||
|
"r": function(stream, state) {
|
||||||
|
var peek = stream.peek();
|
||||||
|
if (peek == "'" || peek == '"') {
|
||||||
|
return tokenDartString(stream.next(), stream, state, true);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
"}": function(_stream, state) {
|
||||||
|
if (sizeInterpolationStack(state) > 0) {
|
||||||
|
state.tokenize = popInterpolationStack(state);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
"/": function(stream, state) {
|
||||||
|
if (!stream.eat("*")) return false;
|
||||||
|
state.tokenize = tokenNestedComment(1);
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
},
|
||||||
|
token: function(stream, _, style) {
|
||||||
|
if (style == "variable") {
|
||||||
|
var isUpper = RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$", "g");
|
||||||
|
if (isUpper.test(stream.current())) {
|
||||||
|
return "type";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export {
|
||||||
|
c,
|
||||||
|
ceylon,
|
||||||
|
clike,
|
||||||
|
cpp,
|
||||||
|
csharp,
|
||||||
|
dart,
|
||||||
|
java,
|
||||||
|
kotlin,
|
||||||
|
nesC,
|
||||||
|
objectiveC,
|
||||||
|
objectiveCpp,
|
||||||
|
scala,
|
||||||
|
shader,
|
||||||
|
squirrel
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=clike-AMIGQXDG.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
+853
@@ -0,0 +1,853 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/clojure.js
|
||||||
|
var atoms = ["false", "nil", "true"];
|
||||||
|
var specialForms = [
|
||||||
|
".",
|
||||||
|
"catch",
|
||||||
|
"def",
|
||||||
|
"do",
|
||||||
|
"if",
|
||||||
|
"monitor-enter",
|
||||||
|
"monitor-exit",
|
||||||
|
"new",
|
||||||
|
"quote",
|
||||||
|
"recur",
|
||||||
|
"set!",
|
||||||
|
"throw",
|
||||||
|
"try",
|
||||||
|
"var"
|
||||||
|
];
|
||||||
|
var coreSymbols = [
|
||||||
|
"*",
|
||||||
|
"*'",
|
||||||
|
"*1",
|
||||||
|
"*2",
|
||||||
|
"*3",
|
||||||
|
"*agent*",
|
||||||
|
"*allow-unresolved-vars*",
|
||||||
|
"*assert*",
|
||||||
|
"*clojure-version*",
|
||||||
|
"*command-line-args*",
|
||||||
|
"*compile-files*",
|
||||||
|
"*compile-path*",
|
||||||
|
"*compiler-options*",
|
||||||
|
"*data-readers*",
|
||||||
|
"*default-data-reader-fn*",
|
||||||
|
"*e",
|
||||||
|
"*err*",
|
||||||
|
"*file*",
|
||||||
|
"*flush-on-newline*",
|
||||||
|
"*fn-loader*",
|
||||||
|
"*in*",
|
||||||
|
"*math-context*",
|
||||||
|
"*ns*",
|
||||||
|
"*out*",
|
||||||
|
"*print-dup*",
|
||||||
|
"*print-length*",
|
||||||
|
"*print-level*",
|
||||||
|
"*print-meta*",
|
||||||
|
"*print-namespace-maps*",
|
||||||
|
"*print-readably*",
|
||||||
|
"*read-eval*",
|
||||||
|
"*reader-resolver*",
|
||||||
|
"*source-path*",
|
||||||
|
"*suppress-read*",
|
||||||
|
"*unchecked-math*",
|
||||||
|
"*use-context-classloader*",
|
||||||
|
"*verbose-defrecords*",
|
||||||
|
"*warn-on-reflection*",
|
||||||
|
"+",
|
||||||
|
"+'",
|
||||||
|
"-",
|
||||||
|
"-'",
|
||||||
|
"->",
|
||||||
|
"->>",
|
||||||
|
"->ArrayChunk",
|
||||||
|
"->Eduction",
|
||||||
|
"->Vec",
|
||||||
|
"->VecNode",
|
||||||
|
"->VecSeq",
|
||||||
|
"-cache-protocol-fn",
|
||||||
|
"-reset-methods",
|
||||||
|
"..",
|
||||||
|
"/",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
"=",
|
||||||
|
"==",
|
||||||
|
">",
|
||||||
|
">=",
|
||||||
|
"EMPTY-NODE",
|
||||||
|
"Inst",
|
||||||
|
"StackTraceElement->vec",
|
||||||
|
"Throwable->map",
|
||||||
|
"accessor",
|
||||||
|
"aclone",
|
||||||
|
"add-classpath",
|
||||||
|
"add-watch",
|
||||||
|
"agent",
|
||||||
|
"agent-error",
|
||||||
|
"agent-errors",
|
||||||
|
"aget",
|
||||||
|
"alength",
|
||||||
|
"alias",
|
||||||
|
"all-ns",
|
||||||
|
"alter",
|
||||||
|
"alter-meta!",
|
||||||
|
"alter-var-root",
|
||||||
|
"amap",
|
||||||
|
"ancestors",
|
||||||
|
"and",
|
||||||
|
"any?",
|
||||||
|
"apply",
|
||||||
|
"areduce",
|
||||||
|
"array-map",
|
||||||
|
"as->",
|
||||||
|
"aset",
|
||||||
|
"aset-boolean",
|
||||||
|
"aset-byte",
|
||||||
|
"aset-char",
|
||||||
|
"aset-double",
|
||||||
|
"aset-float",
|
||||||
|
"aset-int",
|
||||||
|
"aset-long",
|
||||||
|
"aset-short",
|
||||||
|
"assert",
|
||||||
|
"assoc",
|
||||||
|
"assoc!",
|
||||||
|
"assoc-in",
|
||||||
|
"associative?",
|
||||||
|
"atom",
|
||||||
|
"await",
|
||||||
|
"await-for",
|
||||||
|
"await1",
|
||||||
|
"bases",
|
||||||
|
"bean",
|
||||||
|
"bigdec",
|
||||||
|
"bigint",
|
||||||
|
"biginteger",
|
||||||
|
"binding",
|
||||||
|
"bit-and",
|
||||||
|
"bit-and-not",
|
||||||
|
"bit-clear",
|
||||||
|
"bit-flip",
|
||||||
|
"bit-not",
|
||||||
|
"bit-or",
|
||||||
|
"bit-set",
|
||||||
|
"bit-shift-left",
|
||||||
|
"bit-shift-right",
|
||||||
|
"bit-test",
|
||||||
|
"bit-xor",
|
||||||
|
"boolean",
|
||||||
|
"boolean-array",
|
||||||
|
"boolean?",
|
||||||
|
"booleans",
|
||||||
|
"bound-fn",
|
||||||
|
"bound-fn*",
|
||||||
|
"bound?",
|
||||||
|
"bounded-count",
|
||||||
|
"butlast",
|
||||||
|
"byte",
|
||||||
|
"byte-array",
|
||||||
|
"bytes",
|
||||||
|
"bytes?",
|
||||||
|
"case",
|
||||||
|
"cast",
|
||||||
|
"cat",
|
||||||
|
"char",
|
||||||
|
"char-array",
|
||||||
|
"char-escape-string",
|
||||||
|
"char-name-string",
|
||||||
|
"char?",
|
||||||
|
"chars",
|
||||||
|
"chunk",
|
||||||
|
"chunk-append",
|
||||||
|
"chunk-buffer",
|
||||||
|
"chunk-cons",
|
||||||
|
"chunk-first",
|
||||||
|
"chunk-next",
|
||||||
|
"chunk-rest",
|
||||||
|
"chunked-seq?",
|
||||||
|
"class",
|
||||||
|
"class?",
|
||||||
|
"clear-agent-errors",
|
||||||
|
"clojure-version",
|
||||||
|
"coll?",
|
||||||
|
"comment",
|
||||||
|
"commute",
|
||||||
|
"comp",
|
||||||
|
"comparator",
|
||||||
|
"compare",
|
||||||
|
"compare-and-set!",
|
||||||
|
"compile",
|
||||||
|
"complement",
|
||||||
|
"completing",
|
||||||
|
"concat",
|
||||||
|
"cond",
|
||||||
|
"cond->",
|
||||||
|
"cond->>",
|
||||||
|
"condp",
|
||||||
|
"conj",
|
||||||
|
"conj!",
|
||||||
|
"cons",
|
||||||
|
"constantly",
|
||||||
|
"construct-proxy",
|
||||||
|
"contains?",
|
||||||
|
"count",
|
||||||
|
"counted?",
|
||||||
|
"create-ns",
|
||||||
|
"create-struct",
|
||||||
|
"cycle",
|
||||||
|
"dec",
|
||||||
|
"dec'",
|
||||||
|
"decimal?",
|
||||||
|
"declare",
|
||||||
|
"dedupe",
|
||||||
|
"default-data-readers",
|
||||||
|
"definline",
|
||||||
|
"definterface",
|
||||||
|
"defmacro",
|
||||||
|
"defmethod",
|
||||||
|
"defmulti",
|
||||||
|
"defn",
|
||||||
|
"defn-",
|
||||||
|
"defonce",
|
||||||
|
"defprotocol",
|
||||||
|
"defrecord",
|
||||||
|
"defstruct",
|
||||||
|
"deftype",
|
||||||
|
"delay",
|
||||||
|
"delay?",
|
||||||
|
"deliver",
|
||||||
|
"denominator",
|
||||||
|
"deref",
|
||||||
|
"derive",
|
||||||
|
"descendants",
|
||||||
|
"destructure",
|
||||||
|
"disj",
|
||||||
|
"disj!",
|
||||||
|
"dissoc",
|
||||||
|
"dissoc!",
|
||||||
|
"distinct",
|
||||||
|
"distinct?",
|
||||||
|
"doall",
|
||||||
|
"dorun",
|
||||||
|
"doseq",
|
||||||
|
"dosync",
|
||||||
|
"dotimes",
|
||||||
|
"doto",
|
||||||
|
"double",
|
||||||
|
"double-array",
|
||||||
|
"double?",
|
||||||
|
"doubles",
|
||||||
|
"drop",
|
||||||
|
"drop-last",
|
||||||
|
"drop-while",
|
||||||
|
"eduction",
|
||||||
|
"empty",
|
||||||
|
"empty?",
|
||||||
|
"ensure",
|
||||||
|
"ensure-reduced",
|
||||||
|
"enumeration-seq",
|
||||||
|
"error-handler",
|
||||||
|
"error-mode",
|
||||||
|
"eval",
|
||||||
|
"even?",
|
||||||
|
"every-pred",
|
||||||
|
"every?",
|
||||||
|
"ex-data",
|
||||||
|
"ex-info",
|
||||||
|
"extend",
|
||||||
|
"extend-protocol",
|
||||||
|
"extend-type",
|
||||||
|
"extenders",
|
||||||
|
"extends?",
|
||||||
|
"false?",
|
||||||
|
"ffirst",
|
||||||
|
"file-seq",
|
||||||
|
"filter",
|
||||||
|
"filterv",
|
||||||
|
"find",
|
||||||
|
"find-keyword",
|
||||||
|
"find-ns",
|
||||||
|
"find-protocol-impl",
|
||||||
|
"find-protocol-method",
|
||||||
|
"find-var",
|
||||||
|
"first",
|
||||||
|
"flatten",
|
||||||
|
"float",
|
||||||
|
"float-array",
|
||||||
|
"float?",
|
||||||
|
"floats",
|
||||||
|
"flush",
|
||||||
|
"fn",
|
||||||
|
"fn?",
|
||||||
|
"fnext",
|
||||||
|
"fnil",
|
||||||
|
"for",
|
||||||
|
"force",
|
||||||
|
"format",
|
||||||
|
"frequencies",
|
||||||
|
"future",
|
||||||
|
"future-call",
|
||||||
|
"future-cancel",
|
||||||
|
"future-cancelled?",
|
||||||
|
"future-done?",
|
||||||
|
"future?",
|
||||||
|
"gen-class",
|
||||||
|
"gen-interface",
|
||||||
|
"gensym",
|
||||||
|
"get",
|
||||||
|
"get-in",
|
||||||
|
"get-method",
|
||||||
|
"get-proxy-class",
|
||||||
|
"get-thread-bindings",
|
||||||
|
"get-validator",
|
||||||
|
"group-by",
|
||||||
|
"halt-when",
|
||||||
|
"hash",
|
||||||
|
"hash-combine",
|
||||||
|
"hash-map",
|
||||||
|
"hash-ordered-coll",
|
||||||
|
"hash-set",
|
||||||
|
"hash-unordered-coll",
|
||||||
|
"ident?",
|
||||||
|
"identical?",
|
||||||
|
"identity",
|
||||||
|
"if-let",
|
||||||
|
"if-not",
|
||||||
|
"if-some",
|
||||||
|
"ifn?",
|
||||||
|
"import",
|
||||||
|
"in-ns",
|
||||||
|
"inc",
|
||||||
|
"inc'",
|
||||||
|
"indexed?",
|
||||||
|
"init-proxy",
|
||||||
|
"inst-ms",
|
||||||
|
"inst-ms*",
|
||||||
|
"inst?",
|
||||||
|
"instance?",
|
||||||
|
"int",
|
||||||
|
"int-array",
|
||||||
|
"int?",
|
||||||
|
"integer?",
|
||||||
|
"interleave",
|
||||||
|
"intern",
|
||||||
|
"interpose",
|
||||||
|
"into",
|
||||||
|
"into-array",
|
||||||
|
"ints",
|
||||||
|
"io!",
|
||||||
|
"isa?",
|
||||||
|
"iterate",
|
||||||
|
"iterator-seq",
|
||||||
|
"juxt",
|
||||||
|
"keep",
|
||||||
|
"keep-indexed",
|
||||||
|
"key",
|
||||||
|
"keys",
|
||||||
|
"keyword",
|
||||||
|
"keyword?",
|
||||||
|
"last",
|
||||||
|
"lazy-cat",
|
||||||
|
"lazy-seq",
|
||||||
|
"let",
|
||||||
|
"letfn",
|
||||||
|
"line-seq",
|
||||||
|
"list",
|
||||||
|
"list*",
|
||||||
|
"list?",
|
||||||
|
"load",
|
||||||
|
"load-file",
|
||||||
|
"load-reader",
|
||||||
|
"load-string",
|
||||||
|
"loaded-libs",
|
||||||
|
"locking",
|
||||||
|
"long",
|
||||||
|
"long-array",
|
||||||
|
"longs",
|
||||||
|
"loop",
|
||||||
|
"macroexpand",
|
||||||
|
"macroexpand-1",
|
||||||
|
"make-array",
|
||||||
|
"make-hierarchy",
|
||||||
|
"map",
|
||||||
|
"map-entry?",
|
||||||
|
"map-indexed",
|
||||||
|
"map?",
|
||||||
|
"mapcat",
|
||||||
|
"mapv",
|
||||||
|
"max",
|
||||||
|
"max-key",
|
||||||
|
"memfn",
|
||||||
|
"memoize",
|
||||||
|
"merge",
|
||||||
|
"merge-with",
|
||||||
|
"meta",
|
||||||
|
"method-sig",
|
||||||
|
"methods",
|
||||||
|
"min",
|
||||||
|
"min-key",
|
||||||
|
"mix-collection-hash",
|
||||||
|
"mod",
|
||||||
|
"munge",
|
||||||
|
"name",
|
||||||
|
"namespace",
|
||||||
|
"namespace-munge",
|
||||||
|
"nat-int?",
|
||||||
|
"neg-int?",
|
||||||
|
"neg?",
|
||||||
|
"newline",
|
||||||
|
"next",
|
||||||
|
"nfirst",
|
||||||
|
"nil?",
|
||||||
|
"nnext",
|
||||||
|
"not",
|
||||||
|
"not-any?",
|
||||||
|
"not-empty",
|
||||||
|
"not-every?",
|
||||||
|
"not=",
|
||||||
|
"ns",
|
||||||
|
"ns-aliases",
|
||||||
|
"ns-imports",
|
||||||
|
"ns-interns",
|
||||||
|
"ns-map",
|
||||||
|
"ns-name",
|
||||||
|
"ns-publics",
|
||||||
|
"ns-refers",
|
||||||
|
"ns-resolve",
|
||||||
|
"ns-unalias",
|
||||||
|
"ns-unmap",
|
||||||
|
"nth",
|
||||||
|
"nthnext",
|
||||||
|
"nthrest",
|
||||||
|
"num",
|
||||||
|
"number?",
|
||||||
|
"numerator",
|
||||||
|
"object-array",
|
||||||
|
"odd?",
|
||||||
|
"or",
|
||||||
|
"parents",
|
||||||
|
"partial",
|
||||||
|
"partition",
|
||||||
|
"partition-all",
|
||||||
|
"partition-by",
|
||||||
|
"pcalls",
|
||||||
|
"peek",
|
||||||
|
"persistent!",
|
||||||
|
"pmap",
|
||||||
|
"pop",
|
||||||
|
"pop!",
|
||||||
|
"pop-thread-bindings",
|
||||||
|
"pos-int?",
|
||||||
|
"pos?",
|
||||||
|
"pr",
|
||||||
|
"pr-str",
|
||||||
|
"prefer-method",
|
||||||
|
"prefers",
|
||||||
|
"primitives-classnames",
|
||||||
|
"print",
|
||||||
|
"print-ctor",
|
||||||
|
"print-dup",
|
||||||
|
"print-method",
|
||||||
|
"print-simple",
|
||||||
|
"print-str",
|
||||||
|
"printf",
|
||||||
|
"println",
|
||||||
|
"println-str",
|
||||||
|
"prn",
|
||||||
|
"prn-str",
|
||||||
|
"promise",
|
||||||
|
"proxy",
|
||||||
|
"proxy-call-with-super",
|
||||||
|
"proxy-mappings",
|
||||||
|
"proxy-name",
|
||||||
|
"proxy-super",
|
||||||
|
"push-thread-bindings",
|
||||||
|
"pvalues",
|
||||||
|
"qualified-ident?",
|
||||||
|
"qualified-keyword?",
|
||||||
|
"qualified-symbol?",
|
||||||
|
"quot",
|
||||||
|
"rand",
|
||||||
|
"rand-int",
|
||||||
|
"rand-nth",
|
||||||
|
"random-sample",
|
||||||
|
"range",
|
||||||
|
"ratio?",
|
||||||
|
"rational?",
|
||||||
|
"rationalize",
|
||||||
|
"re-find",
|
||||||
|
"re-groups",
|
||||||
|
"re-matcher",
|
||||||
|
"re-matches",
|
||||||
|
"re-pattern",
|
||||||
|
"re-seq",
|
||||||
|
"read",
|
||||||
|
"read-line",
|
||||||
|
"read-string",
|
||||||
|
"reader-conditional",
|
||||||
|
"reader-conditional?",
|
||||||
|
"realized?",
|
||||||
|
"record?",
|
||||||
|
"reduce",
|
||||||
|
"reduce-kv",
|
||||||
|
"reduced",
|
||||||
|
"reduced?",
|
||||||
|
"reductions",
|
||||||
|
"ref",
|
||||||
|
"ref-history-count",
|
||||||
|
"ref-max-history",
|
||||||
|
"ref-min-history",
|
||||||
|
"ref-set",
|
||||||
|
"refer",
|
||||||
|
"refer-clojure",
|
||||||
|
"reify",
|
||||||
|
"release-pending-sends",
|
||||||
|
"rem",
|
||||||
|
"remove",
|
||||||
|
"remove-all-methods",
|
||||||
|
"remove-method",
|
||||||
|
"remove-ns",
|
||||||
|
"remove-watch",
|
||||||
|
"repeat",
|
||||||
|
"repeatedly",
|
||||||
|
"replace",
|
||||||
|
"replicate",
|
||||||
|
"require",
|
||||||
|
"reset!",
|
||||||
|
"reset-meta!",
|
||||||
|
"reset-vals!",
|
||||||
|
"resolve",
|
||||||
|
"rest",
|
||||||
|
"restart-agent",
|
||||||
|
"resultset-seq",
|
||||||
|
"reverse",
|
||||||
|
"reversible?",
|
||||||
|
"rseq",
|
||||||
|
"rsubseq",
|
||||||
|
"run!",
|
||||||
|
"satisfies?",
|
||||||
|
"second",
|
||||||
|
"select-keys",
|
||||||
|
"send",
|
||||||
|
"send-off",
|
||||||
|
"send-via",
|
||||||
|
"seq",
|
||||||
|
"seq?",
|
||||||
|
"seqable?",
|
||||||
|
"seque",
|
||||||
|
"sequence",
|
||||||
|
"sequential?",
|
||||||
|
"set",
|
||||||
|
"set-agent-send-executor!",
|
||||||
|
"set-agent-send-off-executor!",
|
||||||
|
"set-error-handler!",
|
||||||
|
"set-error-mode!",
|
||||||
|
"set-validator!",
|
||||||
|
"set?",
|
||||||
|
"short",
|
||||||
|
"short-array",
|
||||||
|
"shorts",
|
||||||
|
"shuffle",
|
||||||
|
"shutdown-agents",
|
||||||
|
"simple-ident?",
|
||||||
|
"simple-keyword?",
|
||||||
|
"simple-symbol?",
|
||||||
|
"slurp",
|
||||||
|
"some",
|
||||||
|
"some->",
|
||||||
|
"some->>",
|
||||||
|
"some-fn",
|
||||||
|
"some?",
|
||||||
|
"sort",
|
||||||
|
"sort-by",
|
||||||
|
"sorted-map",
|
||||||
|
"sorted-map-by",
|
||||||
|
"sorted-set",
|
||||||
|
"sorted-set-by",
|
||||||
|
"sorted?",
|
||||||
|
"special-symbol?",
|
||||||
|
"spit",
|
||||||
|
"split-at",
|
||||||
|
"split-with",
|
||||||
|
"str",
|
||||||
|
"string?",
|
||||||
|
"struct",
|
||||||
|
"struct-map",
|
||||||
|
"subs",
|
||||||
|
"subseq",
|
||||||
|
"subvec",
|
||||||
|
"supers",
|
||||||
|
"swap!",
|
||||||
|
"swap-vals!",
|
||||||
|
"symbol",
|
||||||
|
"symbol?",
|
||||||
|
"sync",
|
||||||
|
"tagged-literal",
|
||||||
|
"tagged-literal?",
|
||||||
|
"take",
|
||||||
|
"take-last",
|
||||||
|
"take-nth",
|
||||||
|
"take-while",
|
||||||
|
"test",
|
||||||
|
"the-ns",
|
||||||
|
"thread-bound?",
|
||||||
|
"time",
|
||||||
|
"to-array",
|
||||||
|
"to-array-2d",
|
||||||
|
"trampoline",
|
||||||
|
"transduce",
|
||||||
|
"transient",
|
||||||
|
"tree-seq",
|
||||||
|
"true?",
|
||||||
|
"type",
|
||||||
|
"unchecked-add",
|
||||||
|
"unchecked-add-int",
|
||||||
|
"unchecked-byte",
|
||||||
|
"unchecked-char",
|
||||||
|
"unchecked-dec",
|
||||||
|
"unchecked-dec-int",
|
||||||
|
"unchecked-divide-int",
|
||||||
|
"unchecked-double",
|
||||||
|
"unchecked-float",
|
||||||
|
"unchecked-inc",
|
||||||
|
"unchecked-inc-int",
|
||||||
|
"unchecked-int",
|
||||||
|
"unchecked-long",
|
||||||
|
"unchecked-multiply",
|
||||||
|
"unchecked-multiply-int",
|
||||||
|
"unchecked-negate",
|
||||||
|
"unchecked-negate-int",
|
||||||
|
"unchecked-remainder-int",
|
||||||
|
"unchecked-short",
|
||||||
|
"unchecked-subtract",
|
||||||
|
"unchecked-subtract-int",
|
||||||
|
"underive",
|
||||||
|
"unquote",
|
||||||
|
"unquote-splicing",
|
||||||
|
"unreduced",
|
||||||
|
"unsigned-bit-shift-right",
|
||||||
|
"update",
|
||||||
|
"update-in",
|
||||||
|
"update-proxy",
|
||||||
|
"uri?",
|
||||||
|
"use",
|
||||||
|
"uuid?",
|
||||||
|
"val",
|
||||||
|
"vals",
|
||||||
|
"var-get",
|
||||||
|
"var-set",
|
||||||
|
"var?",
|
||||||
|
"vary-meta",
|
||||||
|
"vec",
|
||||||
|
"vector",
|
||||||
|
"vector-of",
|
||||||
|
"vector?",
|
||||||
|
"volatile!",
|
||||||
|
"volatile?",
|
||||||
|
"vreset!",
|
||||||
|
"vswap!",
|
||||||
|
"when",
|
||||||
|
"when-first",
|
||||||
|
"when-let",
|
||||||
|
"when-not",
|
||||||
|
"when-some",
|
||||||
|
"while",
|
||||||
|
"with-bindings",
|
||||||
|
"with-bindings*",
|
||||||
|
"with-in-str",
|
||||||
|
"with-loading-context",
|
||||||
|
"with-local-vars",
|
||||||
|
"with-meta",
|
||||||
|
"with-open",
|
||||||
|
"with-out-str",
|
||||||
|
"with-precision",
|
||||||
|
"with-redefs",
|
||||||
|
"with-redefs-fn",
|
||||||
|
"xml-seq",
|
||||||
|
"zero?",
|
||||||
|
"zipmap"
|
||||||
|
];
|
||||||
|
var haveBodyParameter = [
|
||||||
|
"->",
|
||||||
|
"->>",
|
||||||
|
"as->",
|
||||||
|
"binding",
|
||||||
|
"bound-fn",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"comment",
|
||||||
|
"cond",
|
||||||
|
"cond->",
|
||||||
|
"cond->>",
|
||||||
|
"condp",
|
||||||
|
"def",
|
||||||
|
"definterface",
|
||||||
|
"defmethod",
|
||||||
|
"defn",
|
||||||
|
"defmacro",
|
||||||
|
"defprotocol",
|
||||||
|
"defrecord",
|
||||||
|
"defstruct",
|
||||||
|
"deftype",
|
||||||
|
"do",
|
||||||
|
"doseq",
|
||||||
|
"dotimes",
|
||||||
|
"doto",
|
||||||
|
"extend",
|
||||||
|
"extend-protocol",
|
||||||
|
"extend-type",
|
||||||
|
"fn",
|
||||||
|
"for",
|
||||||
|
"future",
|
||||||
|
"if",
|
||||||
|
"if-let",
|
||||||
|
"if-not",
|
||||||
|
"if-some",
|
||||||
|
"let",
|
||||||
|
"letfn",
|
||||||
|
"locking",
|
||||||
|
"loop",
|
||||||
|
"ns",
|
||||||
|
"proxy",
|
||||||
|
"reify",
|
||||||
|
"struct-map",
|
||||||
|
"some->",
|
||||||
|
"some->>",
|
||||||
|
"try",
|
||||||
|
"when",
|
||||||
|
"when-first",
|
||||||
|
"when-let",
|
||||||
|
"when-not",
|
||||||
|
"when-some",
|
||||||
|
"while",
|
||||||
|
"with-bindings",
|
||||||
|
"with-bindings*",
|
||||||
|
"with-in-str",
|
||||||
|
"with-loading-context",
|
||||||
|
"with-local-vars",
|
||||||
|
"with-meta",
|
||||||
|
"with-open",
|
||||||
|
"with-out-str",
|
||||||
|
"with-precision",
|
||||||
|
"with-redefs",
|
||||||
|
"with-redefs-fn"
|
||||||
|
];
|
||||||
|
var atom = createLookupMap(atoms);
|
||||||
|
var specialForm = createLookupMap(specialForms);
|
||||||
|
var coreSymbol = createLookupMap(coreSymbols);
|
||||||
|
var hasBodyParameter = createLookupMap(haveBodyParameter);
|
||||||
|
var delimiter = /^(?:[\\\[\]\s"(),;@^`{}~]|$)/;
|
||||||
|
var numberLiteral = /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/;
|
||||||
|
var characterLiteral = /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/;
|
||||||
|
var qualifiedSymbol = /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;
|
||||||
|
function base(stream, state) {
|
||||||
|
if (stream.eatSpace() || stream.eat(",")) return ["space", null];
|
||||||
|
if (stream.match(numberLiteral)) return [null, "number"];
|
||||||
|
if (stream.match(characterLiteral)) return [null, "string.special"];
|
||||||
|
if (stream.eat(/^"/)) return (state.tokenize = inString)(stream, state);
|
||||||
|
if (stream.eat(/^[(\[{]/)) return ["open", "bracket"];
|
||||||
|
if (stream.eat(/^[)\]}]/)) return ["close", "bracket"];
|
||||||
|
if (stream.eat(/^;/)) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return ["space", "comment"];
|
||||||
|
}
|
||||||
|
if (stream.eat(/^[#'@^`~]/)) return [null, "meta"];
|
||||||
|
var matches = stream.match(qualifiedSymbol);
|
||||||
|
var symbol = matches && matches[0];
|
||||||
|
if (!symbol) {
|
||||||
|
stream.next();
|
||||||
|
stream.eatWhile(function(c) {
|
||||||
|
return !is(c, delimiter);
|
||||||
|
});
|
||||||
|
return [null, "error"];
|
||||||
|
}
|
||||||
|
if (symbol === "comment" && state.lastToken === "(")
|
||||||
|
return (state.tokenize = inComment)(stream, state);
|
||||||
|
if (is(symbol, atom) || symbol.charAt(0) === ":") return ["symbol", "atom"];
|
||||||
|
if (is(symbol, specialForm) || is(symbol, coreSymbol)) return ["symbol", "keyword"];
|
||||||
|
if (state.lastToken === "(") return ["symbol", "builtin"];
|
||||||
|
return ["symbol", "variable"];
|
||||||
|
}
|
||||||
|
function inString(stream, state) {
|
||||||
|
var escaped = false, next;
|
||||||
|
while (next = stream.next()) {
|
||||||
|
if (next === '"' && !escaped) {
|
||||||
|
state.tokenize = base;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
escaped = !escaped && next === "\\";
|
||||||
|
}
|
||||||
|
return [null, "string"];
|
||||||
|
}
|
||||||
|
function inComment(stream, state) {
|
||||||
|
var parenthesisCount = 1;
|
||||||
|
var next;
|
||||||
|
while (next = stream.next()) {
|
||||||
|
if (next === ")") parenthesisCount--;
|
||||||
|
if (next === "(") parenthesisCount++;
|
||||||
|
if (parenthesisCount === 0) {
|
||||||
|
stream.backUp(1);
|
||||||
|
state.tokenize = base;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ["space", "comment"];
|
||||||
|
}
|
||||||
|
function createLookupMap(words) {
|
||||||
|
var obj = {};
|
||||||
|
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
function is(value, test) {
|
||||||
|
if (test instanceof RegExp) return test.test(value);
|
||||||
|
if (test instanceof Object) return test.propertyIsEnumerable(value);
|
||||||
|
}
|
||||||
|
var clojure = {
|
||||||
|
name: "clojure",
|
||||||
|
startState: function() {
|
||||||
|
return {
|
||||||
|
ctx: { prev: null, start: 0, indentTo: 0 },
|
||||||
|
lastToken: null,
|
||||||
|
tokenize: base
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
if (stream.sol() && typeof state.ctx.indentTo !== "number")
|
||||||
|
state.ctx.indentTo = state.ctx.start + 1;
|
||||||
|
var typeStylePair = state.tokenize(stream, state);
|
||||||
|
var type = typeStylePair[0];
|
||||||
|
var style = typeStylePair[1];
|
||||||
|
var current = stream.current();
|
||||||
|
if (type !== "space") {
|
||||||
|
if (state.lastToken === "(" && state.ctx.indentTo === null) {
|
||||||
|
if (type === "symbol" && is(current, hasBodyParameter))
|
||||||
|
state.ctx.indentTo = state.ctx.start + stream.indentUnit;
|
||||||
|
else state.ctx.indentTo = "next";
|
||||||
|
} else if (state.ctx.indentTo === "next") {
|
||||||
|
state.ctx.indentTo = stream.column();
|
||||||
|
}
|
||||||
|
state.lastToken = current;
|
||||||
|
}
|
||||||
|
if (type === "open")
|
||||||
|
state.ctx = { prev: state.ctx, start: stream.column(), indentTo: null };
|
||||||
|
else if (type === "close") state.ctx = state.ctx.prev || state.ctx;
|
||||||
|
return style;
|
||||||
|
},
|
||||||
|
indent: function(state) {
|
||||||
|
var i = state.ctx.indentTo;
|
||||||
|
return typeof i === "number" ? i : state.ctx.start + 1;
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
closeBrackets: { brackets: ["(", "[", "{", '"'] },
|
||||||
|
commentTokens: { line: ";;" },
|
||||||
|
autocomplete: [].concat(atoms, specialForms, coreSymbols)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
clojure
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=clojure-UBACKFG7.js.map
|
||||||
File diff suppressed because one or more lines are too long
+75
@@ -0,0 +1,75 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/cmake.js
|
||||||
|
var variable_regex = /({)?[a-zA-Z0-9_]+(})?/;
|
||||||
|
function tokenString(stream, state) {
|
||||||
|
var current, prev, found_var = false;
|
||||||
|
while (!stream.eol() && (current = stream.next()) != state.pending) {
|
||||||
|
if (current === "$" && prev != "\\" && state.pending == '"') {
|
||||||
|
found_var = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
prev = current;
|
||||||
|
}
|
||||||
|
if (found_var) {
|
||||||
|
stream.backUp(1);
|
||||||
|
}
|
||||||
|
if (current == state.pending) {
|
||||||
|
state.continueString = false;
|
||||||
|
} else {
|
||||||
|
state.continueString = true;
|
||||||
|
}
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
function tokenize(stream, state) {
|
||||||
|
var ch = stream.next();
|
||||||
|
if (ch === "$") {
|
||||||
|
if (stream.match(variable_regex)) {
|
||||||
|
return "variableName.special";
|
||||||
|
}
|
||||||
|
return "variable";
|
||||||
|
}
|
||||||
|
if (state.continueString) {
|
||||||
|
stream.backUp(1);
|
||||||
|
return tokenString(stream, state);
|
||||||
|
}
|
||||||
|
if (stream.match(/(\s+)?\w+\(/) || stream.match(/(\s+)?\w+\ \(/)) {
|
||||||
|
stream.backUp(1);
|
||||||
|
return "def";
|
||||||
|
}
|
||||||
|
if (ch == "#") {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
if (ch == "'" || ch == '"') {
|
||||||
|
state.pending = ch;
|
||||||
|
return tokenString(stream, state);
|
||||||
|
}
|
||||||
|
if (ch == "(" || ch == ")") {
|
||||||
|
return "bracket";
|
||||||
|
}
|
||||||
|
if (ch.match(/[0-9]/)) {
|
||||||
|
return "number";
|
||||||
|
}
|
||||||
|
stream.eatWhile(/[\w-]/);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var cmake = {
|
||||||
|
name: "cmake",
|
||||||
|
startState: function() {
|
||||||
|
var state = {};
|
||||||
|
state.inDefinition = false;
|
||||||
|
state.inInclude = false;
|
||||||
|
state.continueString = false;
|
||||||
|
state.pending = false;
|
||||||
|
return state;
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
if (stream.eatSpace()) return null;
|
||||||
|
return tokenize(stream, state);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
cmake
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=cmake-B44XYXTV.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/@codemirror/legacy-modes/mode/cmake.js"],
|
||||||
|
"sourcesContent": ["var variable_regex = /({)?[a-zA-Z0-9_]+(})?/;\n\nfunction tokenString(stream, state) {\n var current, prev, found_var = false;\n while (!stream.eol() && (current = stream.next()) != state.pending) {\n if (current === '$' && prev != '\\\\' && state.pending == '\"') {\n found_var = true;\n break;\n }\n prev = current;\n }\n if (found_var) {\n stream.backUp(1);\n }\n if (current == state.pending) {\n state.continueString = false;\n } else {\n state.continueString = true;\n }\n return \"string\";\n}\n\nfunction tokenize(stream, state) {\n var ch = stream.next();\n\n // Have we found a variable?\n if (ch === '$') {\n if (stream.match(variable_regex)) {\n return 'variableName.special';\n }\n return 'variable';\n }\n // Should we still be looking for the end of a string?\n if (state.continueString) {\n // If so, go through the loop again\n stream.backUp(1);\n return tokenString(stream, state);\n }\n // Do we just have a function on our hands?\n // In 'cmake_minimum_required (VERSION 2.8.8)', 'cmake_minimum_required' is matched\n if (stream.match(/(\\s+)?\\w+\\(/) || stream.match(/(\\s+)?\\w+\\ \\(/)) {\n stream.backUp(1);\n return 'def';\n }\n if (ch == \"#\") {\n stream.skipToEnd();\n return \"comment\";\n }\n // Have we found a string?\n if (ch == \"'\" || ch == '\"') {\n // Store the type (single or double)\n state.pending = ch;\n // Perform the looping function to find the end\n return tokenString(stream, state);\n }\n if (ch == '(' || ch == ')') {\n return 'bracket';\n }\n if (ch.match(/[0-9]/)) {\n return 'number';\n }\n stream.eatWhile(/[\\w-]/);\n return null;\n}\nexport const cmake = {\n name: \"cmake\",\n startState: function () {\n var state = {};\n state.inDefinition = false;\n state.inInclude = false;\n state.continueString = false;\n state.pending = false;\n return state;\n },\n token: function (stream, state) {\n if (stream.eatSpace()) return null;\n return tokenize(stream, state);\n }\n};\n\n"],
|
||||||
|
"mappings": ";;;AAAA,IAAI,iBAAiB;AAErB,SAAS,YAAY,QAAQ,OAAO;AAClC,MAAI,SAAS,MAAM,YAAY;AAC/B,SAAO,CAAC,OAAO,IAAI,MAAM,UAAU,OAAO,KAAK,MAAM,MAAM,SAAS;AAClE,QAAI,YAAY,OAAO,QAAQ,QAAQ,MAAM,WAAW,KAAK;AAC3D,kBAAY;AACZ;AAAA,IACF;AACA,WAAO;AAAA,EACT;AACA,MAAI,WAAW;AACb,WAAO,OAAO,CAAC;AAAA,EACjB;AACA,MAAI,WAAW,MAAM,SAAS;AAC5B,UAAM,iBAAiB;AAAA,EACzB,OAAO;AACL,UAAM,iBAAiB;AAAA,EACzB;AACA,SAAO;AACT;AAEA,SAAS,SAAS,QAAQ,OAAO;AAC/B,MAAI,KAAK,OAAO,KAAK;AAGrB,MAAI,OAAO,KAAK;AACd,QAAI,OAAO,MAAM,cAAc,GAAG;AAChC,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT;AAEA,MAAI,MAAM,gBAAgB;AAExB,WAAO,OAAO,CAAC;AACf,WAAO,YAAY,QAAQ,KAAK;AAAA,EAClC;AAGA,MAAI,OAAO,MAAM,aAAa,KAAK,OAAO,MAAM,eAAe,GAAG;AAChE,WAAO,OAAO,CAAC;AACf,WAAO;AAAA,EACT;AACA,MAAI,MAAM,KAAK;AACb,WAAO,UAAU;AACjB,WAAO;AAAA,EACT;AAEA,MAAI,MAAM,OAAO,MAAM,KAAK;AAE1B,UAAM,UAAU;AAEhB,WAAO,YAAY,QAAQ,KAAK;AAAA,EAClC;AACA,MAAI,MAAM,OAAO,MAAM,KAAK;AAC1B,WAAO;AAAA,EACT;AACA,MAAI,GAAG,MAAM,OAAO,GAAG;AACrB,WAAO;AAAA,EACT;AACA,SAAO,SAAS,OAAO;AACvB,SAAO;AACT;AACO,IAAM,QAAQ;AAAA,EACnB,MAAM;AAAA,EACN,YAAY,WAAY;AACtB,QAAI,QAAQ,CAAC;AACb,UAAM,eAAe;AACrB,UAAM,YAAY;AAClB,UAAM,iBAAiB;AACvB,UAAM,UAAU;AAChB,WAAO;AAAA,EACT;AAAA,EACA,OAAO,SAAU,QAAQ,OAAO;AAC9B,QAAI,OAAO,SAAS,EAAG,QAAO;AAC9B,WAAO,SAAS,QAAQ,KAAK;AAAA,EAC/B;AACF;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+133
@@ -0,0 +1,133 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/cobol.js
|
||||||
|
var BUILTIN = "builtin";
|
||||||
|
var COMMENT = "comment";
|
||||||
|
var STRING = "string";
|
||||||
|
var ATOM = "atom";
|
||||||
|
var NUMBER = "number";
|
||||||
|
var KEYWORD = "keyword";
|
||||||
|
var MODTAG = "header";
|
||||||
|
var COBOLLINENUM = "def";
|
||||||
|
var PERIOD = "link";
|
||||||
|
function makeKeywords(str) {
|
||||||
|
var obj = {}, words = str.split(" ");
|
||||||
|
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
var atoms = makeKeywords("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES ");
|
||||||
|
var keywords = makeKeywords(
|
||||||
|
"ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT END-UNSTRING END-WRITE END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL "
|
||||||
|
);
|
||||||
|
var builtins = makeKeywords("- * ** / + < <= = > >= ");
|
||||||
|
var tests = {
|
||||||
|
digit: /\d/,
|
||||||
|
digit_or_colon: /[\d:]/,
|
||||||
|
hex: /[0-9a-f]/i,
|
||||||
|
sign: /[+-]/,
|
||||||
|
exponent: /e/i,
|
||||||
|
keyword_char: /[^\s\(\[\;\)\]]/,
|
||||||
|
symbol: /[\w*+\-]/
|
||||||
|
};
|
||||||
|
function isNumber(ch, stream) {
|
||||||
|
if (ch === "0" && stream.eat(/x/i)) {
|
||||||
|
stream.eatWhile(tests.hex);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if ((ch == "+" || ch == "-") && tests.digit.test(stream.peek())) {
|
||||||
|
stream.eat(tests.sign);
|
||||||
|
ch = stream.next();
|
||||||
|
}
|
||||||
|
if (tests.digit.test(ch)) {
|
||||||
|
stream.eat(ch);
|
||||||
|
stream.eatWhile(tests.digit);
|
||||||
|
if ("." == stream.peek()) {
|
||||||
|
stream.eat(".");
|
||||||
|
stream.eatWhile(tests.digit);
|
||||||
|
}
|
||||||
|
if (stream.eat(tests.exponent)) {
|
||||||
|
stream.eat(tests.sign);
|
||||||
|
stream.eatWhile(tests.digit);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var cobol = {
|
||||||
|
name: "cobol",
|
||||||
|
startState: function() {
|
||||||
|
return {
|
||||||
|
indentStack: null,
|
||||||
|
indentation: 0,
|
||||||
|
mode: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
if (state.indentStack == null && stream.sol()) {
|
||||||
|
state.indentation = 6;
|
||||||
|
}
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var returnType = null;
|
||||||
|
switch (state.mode) {
|
||||||
|
case "string":
|
||||||
|
var next = false;
|
||||||
|
while ((next = stream.next()) != null) {
|
||||||
|
if ((next == '"' || next == "'") && !stream.match(/['"]/, false)) {
|
||||||
|
state.mode = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
returnType = STRING;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
var ch = stream.next();
|
||||||
|
var col = stream.column();
|
||||||
|
if (col >= 0 && col <= 5) {
|
||||||
|
returnType = COBOLLINENUM;
|
||||||
|
} else if (col >= 72 && col <= 79) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
returnType = MODTAG;
|
||||||
|
} else if (ch == "*" && col == 6) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
returnType = COMMENT;
|
||||||
|
} else if (ch == '"' || ch == "'") {
|
||||||
|
state.mode = "string";
|
||||||
|
returnType = STRING;
|
||||||
|
} else if (ch == "'" && !tests.digit_or_colon.test(stream.peek())) {
|
||||||
|
returnType = ATOM;
|
||||||
|
} else if (ch == ".") {
|
||||||
|
returnType = PERIOD;
|
||||||
|
} else if (isNumber(ch, stream)) {
|
||||||
|
returnType = NUMBER;
|
||||||
|
} else {
|
||||||
|
if (stream.current().match(tests.symbol)) {
|
||||||
|
while (col < 71) {
|
||||||
|
if (stream.eat(tests.symbol) === void 0) {
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
col++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (keywords && keywords.propertyIsEnumerable(stream.current().toUpperCase())) {
|
||||||
|
returnType = KEYWORD;
|
||||||
|
} else if (builtins && builtins.propertyIsEnumerable(stream.current().toUpperCase())) {
|
||||||
|
returnType = BUILTIN;
|
||||||
|
} else if (atoms && atoms.propertyIsEnumerable(stream.current().toUpperCase())) {
|
||||||
|
returnType = ATOM;
|
||||||
|
} else returnType = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return returnType;
|
||||||
|
},
|
||||||
|
indent: function(state) {
|
||||||
|
if (state.indentStack == null) return state.indentation;
|
||||||
|
return state.indentStack.indent;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
cobol
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=cobol-YAW52ZKD.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
+312
@@ -0,0 +1,312 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/coffeescript.js
|
||||||
|
var ERRORCLASS = "error";
|
||||||
|
function wordRegexp(words) {
|
||||||
|
return new RegExp("^((" + words.join(")|(") + "))\\b");
|
||||||
|
}
|
||||||
|
var operators = /^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/;
|
||||||
|
var delimiters = /^(?:[()\[\]{},:`=;]|\.\.?\.?)/;
|
||||||
|
var identifiers = /^[_A-Za-z$][_A-Za-z$0-9]*/;
|
||||||
|
var atProp = /^@[_A-Za-z$][_A-Za-z$0-9]*/;
|
||||||
|
var wordOperators = wordRegexp([
|
||||||
|
"and",
|
||||||
|
"or",
|
||||||
|
"not",
|
||||||
|
"is",
|
||||||
|
"isnt",
|
||||||
|
"in",
|
||||||
|
"instanceof",
|
||||||
|
"typeof"
|
||||||
|
]);
|
||||||
|
var indentKeywords = [
|
||||||
|
"for",
|
||||||
|
"while",
|
||||||
|
"loop",
|
||||||
|
"if",
|
||||||
|
"unless",
|
||||||
|
"else",
|
||||||
|
"switch",
|
||||||
|
"try",
|
||||||
|
"catch",
|
||||||
|
"finally",
|
||||||
|
"class"
|
||||||
|
];
|
||||||
|
var commonKeywords = [
|
||||||
|
"break",
|
||||||
|
"by",
|
||||||
|
"continue",
|
||||||
|
"debugger",
|
||||||
|
"delete",
|
||||||
|
"do",
|
||||||
|
"in",
|
||||||
|
"of",
|
||||||
|
"new",
|
||||||
|
"return",
|
||||||
|
"then",
|
||||||
|
"this",
|
||||||
|
"@",
|
||||||
|
"throw",
|
||||||
|
"when",
|
||||||
|
"until",
|
||||||
|
"extends"
|
||||||
|
];
|
||||||
|
var keywords = wordRegexp(indentKeywords.concat(commonKeywords));
|
||||||
|
indentKeywords = wordRegexp(indentKeywords);
|
||||||
|
var stringPrefixes = /^('{3}|\"{3}|['\"])/;
|
||||||
|
var regexPrefixes = /^(\/{3}|\/)/;
|
||||||
|
var commonConstants = ["Infinity", "NaN", "undefined", "null", "true", "false", "on", "off", "yes", "no"];
|
||||||
|
var constants = wordRegexp(commonConstants);
|
||||||
|
function tokenBase(stream, state) {
|
||||||
|
if (stream.sol()) {
|
||||||
|
if (state.scope.align === null) state.scope.align = false;
|
||||||
|
var scopeOffset = state.scope.offset;
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
var lineOffset = stream.indentation();
|
||||||
|
if (lineOffset > scopeOffset && state.scope.type == "coffee") {
|
||||||
|
return "indent";
|
||||||
|
} else if (lineOffset < scopeOffset) {
|
||||||
|
return "dedent";
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
} else {
|
||||||
|
if (scopeOffset > 0) {
|
||||||
|
dedent(stream, state);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var ch = stream.peek();
|
||||||
|
if (stream.match("####")) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
if (stream.match("###")) {
|
||||||
|
state.tokenize = longComment;
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
}
|
||||||
|
if (ch === "#") {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
if (stream.match(/^-?[0-9\.]/, false)) {
|
||||||
|
var floatLiteral = false;
|
||||||
|
if (stream.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)) {
|
||||||
|
floatLiteral = true;
|
||||||
|
}
|
||||||
|
if (stream.match(/^-?\d+\.\d*/)) {
|
||||||
|
floatLiteral = true;
|
||||||
|
}
|
||||||
|
if (stream.match(/^-?\.\d+/)) {
|
||||||
|
floatLiteral = true;
|
||||||
|
}
|
||||||
|
if (floatLiteral) {
|
||||||
|
if (stream.peek() == ".") {
|
||||||
|
stream.backUp(1);
|
||||||
|
}
|
||||||
|
return "number";
|
||||||
|
}
|
||||||
|
var intLiteral = false;
|
||||||
|
if (stream.match(/^-?0x[0-9a-f]+/i)) {
|
||||||
|
intLiteral = true;
|
||||||
|
}
|
||||||
|
if (stream.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)) {
|
||||||
|
intLiteral = true;
|
||||||
|
}
|
||||||
|
if (stream.match(/^-?0(?![\dx])/i)) {
|
||||||
|
intLiteral = true;
|
||||||
|
}
|
||||||
|
if (intLiteral) {
|
||||||
|
return "number";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (stream.match(stringPrefixes)) {
|
||||||
|
state.tokenize = tokenFactory(stream.current(), false, "string");
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
}
|
||||||
|
if (stream.match(regexPrefixes)) {
|
||||||
|
if (stream.current() != "/" || stream.match(/^.*\//, false)) {
|
||||||
|
state.tokenize = tokenFactory(stream.current(), true, "string.special");
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
} else {
|
||||||
|
stream.backUp(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (stream.match(operators) || stream.match(wordOperators)) {
|
||||||
|
return "operator";
|
||||||
|
}
|
||||||
|
if (stream.match(delimiters)) {
|
||||||
|
return "punctuation";
|
||||||
|
}
|
||||||
|
if (stream.match(constants)) {
|
||||||
|
return "atom";
|
||||||
|
}
|
||||||
|
if (stream.match(atProp) || state.prop && stream.match(identifiers)) {
|
||||||
|
return "property";
|
||||||
|
}
|
||||||
|
if (stream.match(keywords)) {
|
||||||
|
return "keyword";
|
||||||
|
}
|
||||||
|
if (stream.match(identifiers)) {
|
||||||
|
return "variable";
|
||||||
|
}
|
||||||
|
stream.next();
|
||||||
|
return ERRORCLASS;
|
||||||
|
}
|
||||||
|
function tokenFactory(delimiter, singleline, outclass) {
|
||||||
|
return function(stream, state) {
|
||||||
|
while (!stream.eol()) {
|
||||||
|
stream.eatWhile(/[^'"\/\\]/);
|
||||||
|
if (stream.eat("\\")) {
|
||||||
|
stream.next();
|
||||||
|
if (singleline && stream.eol()) {
|
||||||
|
return outclass;
|
||||||
|
}
|
||||||
|
} else if (stream.match(delimiter)) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
return outclass;
|
||||||
|
} else {
|
||||||
|
stream.eat(/['"\/]/);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (singleline) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
}
|
||||||
|
return outclass;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function longComment(stream, state) {
|
||||||
|
while (!stream.eol()) {
|
||||||
|
stream.eatWhile(/[^#]/);
|
||||||
|
if (stream.match("###")) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
stream.eatWhile("#");
|
||||||
|
}
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
function indent(stream, state, type = "coffee") {
|
||||||
|
var offset = 0, align = false, alignOffset = null;
|
||||||
|
for (var scope = state.scope; scope; scope = scope.prev) {
|
||||||
|
if (scope.type === "coffee" || scope.type == "}") {
|
||||||
|
offset = scope.offset + stream.indentUnit;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type !== "coffee") {
|
||||||
|
align = null;
|
||||||
|
alignOffset = stream.column() + stream.current().length;
|
||||||
|
} else if (state.scope.align) {
|
||||||
|
state.scope.align = false;
|
||||||
|
}
|
||||||
|
state.scope = {
|
||||||
|
offset,
|
||||||
|
type,
|
||||||
|
prev: state.scope,
|
||||||
|
align,
|
||||||
|
alignOffset
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function dedent(stream, state) {
|
||||||
|
if (!state.scope.prev) return;
|
||||||
|
if (state.scope.type === "coffee") {
|
||||||
|
var _indent = stream.indentation();
|
||||||
|
var matched = false;
|
||||||
|
for (var scope = state.scope; scope; scope = scope.prev) {
|
||||||
|
if (_indent === scope.offset) {
|
||||||
|
matched = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!matched) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
while (state.scope.prev && state.scope.offset !== _indent) {
|
||||||
|
state.scope = state.scope.prev;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
state.scope = state.scope.prev;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function tokenLexer(stream, state) {
|
||||||
|
var style = state.tokenize(stream, state);
|
||||||
|
var current = stream.current();
|
||||||
|
if (current === "return") {
|
||||||
|
state.dedent = true;
|
||||||
|
}
|
||||||
|
if ((current === "->" || current === "=>") && stream.eol() || style === "indent") {
|
||||||
|
indent(stream, state);
|
||||||
|
}
|
||||||
|
var delimiter_index = "[({".indexOf(current);
|
||||||
|
if (delimiter_index !== -1) {
|
||||||
|
indent(stream, state, "])}".slice(delimiter_index, delimiter_index + 1));
|
||||||
|
}
|
||||||
|
if (indentKeywords.exec(current)) {
|
||||||
|
indent(stream, state);
|
||||||
|
}
|
||||||
|
if (current == "then") {
|
||||||
|
dedent(stream, state);
|
||||||
|
}
|
||||||
|
if (style === "dedent") {
|
||||||
|
if (dedent(stream, state)) {
|
||||||
|
return ERRORCLASS;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
delimiter_index = "])}".indexOf(current);
|
||||||
|
if (delimiter_index !== -1) {
|
||||||
|
while (state.scope.type == "coffee" && state.scope.prev)
|
||||||
|
state.scope = state.scope.prev;
|
||||||
|
if (state.scope.type == current)
|
||||||
|
state.scope = state.scope.prev;
|
||||||
|
}
|
||||||
|
if (state.dedent && stream.eol()) {
|
||||||
|
if (state.scope.type == "coffee" && state.scope.prev)
|
||||||
|
state.scope = state.scope.prev;
|
||||||
|
state.dedent = false;
|
||||||
|
}
|
||||||
|
return style == "indent" || style == "dedent" ? null : style;
|
||||||
|
}
|
||||||
|
var coffeeScript = {
|
||||||
|
name: "coffeescript",
|
||||||
|
startState: function() {
|
||||||
|
return {
|
||||||
|
tokenize: tokenBase,
|
||||||
|
scope: { offset: 0, type: "coffee", prev: null, align: false },
|
||||||
|
prop: false,
|
||||||
|
dedent: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
var fillAlign = state.scope.align === null && state.scope;
|
||||||
|
if (fillAlign && stream.sol()) fillAlign.align = false;
|
||||||
|
var style = tokenLexer(stream, state);
|
||||||
|
if (style && style != "comment") {
|
||||||
|
if (fillAlign) fillAlign.align = true;
|
||||||
|
state.prop = style == "punctuation" && stream.current() == ".";
|
||||||
|
}
|
||||||
|
return style;
|
||||||
|
},
|
||||||
|
indent: function(state, text) {
|
||||||
|
if (state.tokenize != tokenBase) return 0;
|
||||||
|
var scope = state.scope;
|
||||||
|
var closer = text && "])}".indexOf(text.charAt(0)) > -1;
|
||||||
|
if (closer) while (scope.type == "coffee" && scope.prev) scope = scope.prev;
|
||||||
|
var closes = closer && scope.type === text.charAt(0);
|
||||||
|
if (scope.align)
|
||||||
|
return scope.alignOffset - (closes ? 1 : 0);
|
||||||
|
else
|
||||||
|
return (closes ? scope.prev : scope).offset;
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
commentTokens: { line: "#" }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
coffeeScript
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=coffeescript-64RSSDJV.js.map
|
||||||
File diff suppressed because one or more lines are too long
+134
@@ -0,0 +1,134 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/commonlisp.js
|
||||||
|
var specialForm = /^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/;
|
||||||
|
var assumeBody = /^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/;
|
||||||
|
var numLiteral = /^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/;
|
||||||
|
var symbol = /[^\s'`,@()\[\]";]/;
|
||||||
|
var type;
|
||||||
|
function readSym(stream) {
|
||||||
|
var ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "\\") stream.next();
|
||||||
|
else if (!symbol.test(ch)) {
|
||||||
|
stream.backUp(1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return stream.current();
|
||||||
|
}
|
||||||
|
function base(stream, state) {
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
type = "ws";
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (stream.match(numLiteral)) return "number";
|
||||||
|
var ch = stream.next();
|
||||||
|
if (ch == "\\") ch = stream.next();
|
||||||
|
if (ch == '"') return (state.tokenize = inString)(stream, state);
|
||||||
|
else if (ch == "(") {
|
||||||
|
type = "open";
|
||||||
|
return "bracket";
|
||||||
|
} else if (ch == ")") {
|
||||||
|
type = "close";
|
||||||
|
return "bracket";
|
||||||
|
} else if (ch == ";") {
|
||||||
|
stream.skipToEnd();
|
||||||
|
type = "ws";
|
||||||
|
return "comment";
|
||||||
|
} else if (/['`,@]/.test(ch)) return null;
|
||||||
|
else if (ch == "|") {
|
||||||
|
if (stream.skipTo("|")) {
|
||||||
|
stream.next();
|
||||||
|
return "variableName";
|
||||||
|
} else {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "error";
|
||||||
|
}
|
||||||
|
} else if (ch == "#") {
|
||||||
|
var ch = stream.next();
|
||||||
|
if (ch == "(") {
|
||||||
|
type = "open";
|
||||||
|
return "bracket";
|
||||||
|
} else if (/[+\-=\.']/.test(ch)) return null;
|
||||||
|
else if (/\d/.test(ch) && stream.match(/^\d*#/)) return null;
|
||||||
|
else if (ch == "|") return (state.tokenize = inComment)(stream, state);
|
||||||
|
else if (ch == ":") {
|
||||||
|
readSym(stream);
|
||||||
|
return "meta";
|
||||||
|
} else if (ch == "\\") {
|
||||||
|
stream.next();
|
||||||
|
readSym(stream);
|
||||||
|
return "string.special";
|
||||||
|
} else return "error";
|
||||||
|
} else {
|
||||||
|
var name = readSym(stream);
|
||||||
|
if (name == ".") return null;
|
||||||
|
type = "symbol";
|
||||||
|
if (name == "nil" || name == "t" || name.charAt(0) == ":") return "atom";
|
||||||
|
if (state.lastType == "open" && (specialForm.test(name) || assumeBody.test(name))) return "keyword";
|
||||||
|
if (name.charAt(0) == "&") return "variableName.special";
|
||||||
|
return "variableName";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function inString(stream, state) {
|
||||||
|
var escaped = false, next;
|
||||||
|
while (next = stream.next()) {
|
||||||
|
if (next == '"' && !escaped) {
|
||||||
|
state.tokenize = base;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
escaped = !escaped && next == "\\";
|
||||||
|
}
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
function inComment(stream, state) {
|
||||||
|
var next, last;
|
||||||
|
while (next = stream.next()) {
|
||||||
|
if (next == "#" && last == "|") {
|
||||||
|
state.tokenize = base;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
last = next;
|
||||||
|
}
|
||||||
|
type = "ws";
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
var commonLisp = {
|
||||||
|
name: "commonlisp",
|
||||||
|
startState: function() {
|
||||||
|
return { ctx: { prev: null, start: 0, indentTo: 0 }, lastType: null, tokenize: base };
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
if (stream.sol() && typeof state.ctx.indentTo != "number")
|
||||||
|
state.ctx.indentTo = state.ctx.start + 1;
|
||||||
|
type = null;
|
||||||
|
var style = state.tokenize(stream, state);
|
||||||
|
if (type != "ws") {
|
||||||
|
if (state.ctx.indentTo == null) {
|
||||||
|
if (type == "symbol" && assumeBody.test(stream.current()))
|
||||||
|
state.ctx.indentTo = state.ctx.start + stream.indentUnit;
|
||||||
|
else
|
||||||
|
state.ctx.indentTo = "next";
|
||||||
|
} else if (state.ctx.indentTo == "next") {
|
||||||
|
state.ctx.indentTo = stream.column();
|
||||||
|
}
|
||||||
|
state.lastType = type;
|
||||||
|
}
|
||||||
|
if (type == "open") state.ctx = { prev: state.ctx, start: stream.column(), indentTo: null };
|
||||||
|
else if (type == "close") state.ctx = state.ctx.prev || state.ctx;
|
||||||
|
return style;
|
||||||
|
},
|
||||||
|
indent: function(state) {
|
||||||
|
var i = state.ctx.indentTo;
|
||||||
|
return typeof i == "number" ? i : state.ctx.start + 1;
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
commentTokens: { line: ";;", block: { open: "#|", close: "|#" } },
|
||||||
|
closeBrackets: { brackets: ["(", "[", "{", '"'] }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
commonLisp
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=commonlisp-FHFDAPRS.js.map
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/@codemirror/legacy-modes/mode/commonlisp.js"],
|
||||||
|
"sourcesContent": ["var specialForm = /^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/;\nvar assumeBody = /^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/;\nvar numLiteral = /^(?:[+\\-]?(?:\\d+|\\d*\\.\\d+)(?:[efd][+\\-]?\\d+)?|[+\\-]?\\d+(?:\\/[+\\-]?\\d+)?|#b[+\\-]?[01]+|#o[+\\-]?[0-7]+|#x[+\\-]?[\\da-f]+)/;\nvar symbol = /[^\\s'`,@()\\[\\]\";]/;\nvar type;\n\nfunction readSym(stream) {\n var ch;\n while (ch = stream.next()) {\n if (ch == \"\\\\\") stream.next();\n else if (!symbol.test(ch)) { stream.backUp(1); break; }\n }\n return stream.current();\n}\n\nfunction base(stream, state) {\n if (stream.eatSpace()) {type = \"ws\"; return null;}\n if (stream.match(numLiteral)) return \"number\";\n var ch = stream.next();\n if (ch == \"\\\\\") ch = stream.next();\n\n if (ch == '\"') return (state.tokenize = inString)(stream, state);\n else if (ch == \"(\") { type = \"open\"; return \"bracket\"; }\n else if (ch == \")\") { type = \"close\"; return \"bracket\"; }\n else if (ch == \";\") { stream.skipToEnd(); type = \"ws\"; return \"comment\"; }\n else if (/['`,@]/.test(ch)) return null;\n else if (ch == \"|\") {\n if (stream.skipTo(\"|\")) { stream.next(); return \"variableName\"; }\n else { stream.skipToEnd(); return \"error\"; }\n } else if (ch == \"#\") {\n var ch = stream.next();\n if (ch == \"(\") { type = \"open\"; return \"bracket\"; }\n else if (/[+\\-=\\.']/.test(ch)) return null;\n else if (/\\d/.test(ch) && stream.match(/^\\d*#/)) return null;\n else if (ch == \"|\") return (state.tokenize = inComment)(stream, state);\n else if (ch == \":\") { readSym(stream); return \"meta\"; }\n else if (ch == \"\\\\\") { stream.next(); readSym(stream); return \"string.special\" }\n else return \"error\";\n } else {\n var name = readSym(stream);\n if (name == \".\") return null;\n type = \"symbol\";\n if (name == \"nil\" || name == \"t\" || name.charAt(0) == \":\") return \"atom\";\n if (state.lastType == \"open\" && (specialForm.test(name) || assumeBody.test(name))) return \"keyword\";\n if (name.charAt(0) == \"&\") return \"variableName.special\";\n return \"variableName\";\n }\n}\n\nfunction inString(stream, state) {\n var escaped = false, next;\n while (next = stream.next()) {\n if (next == '\"' && !escaped) { state.tokenize = base; break; }\n escaped = !escaped && next == \"\\\\\";\n }\n return \"string\";\n}\n\nfunction inComment(stream, state) {\n var next, last;\n while (next = stream.next()) {\n if (next == \"#\" && last == \"|\") { state.tokenize = base; break; }\n last = next;\n }\n type = \"ws\";\n return \"comment\";\n}\n\nexport const commonLisp = {\n name: \"commonlisp\",\n startState: function () {\n return {ctx: {prev: null, start: 0, indentTo: 0}, lastType: null, tokenize: base};\n },\n\n token: function (stream, state) {\n if (stream.sol() && typeof state.ctx.indentTo != \"number\")\n state.ctx.indentTo = state.ctx.start + 1;\n\n type = null;\n var style = state.tokenize(stream, state);\n if (type != \"ws\") {\n if (state.ctx.indentTo == null) {\n if (type == \"symbol\" && assumeBody.test(stream.current()))\n state.ctx.indentTo = state.ctx.start + stream.indentUnit;\n else\n state.ctx.indentTo = \"next\";\n } else if (state.ctx.indentTo == \"next\") {\n state.ctx.indentTo = stream.column();\n }\n state.lastType = type;\n }\n if (type == \"open\") state.ctx = {prev: state.ctx, start: stream.column(), indentTo: null};\n else if (type == \"close\") state.ctx = state.ctx.prev || state.ctx;\n return style;\n },\n\n indent: function (state) {\n var i = state.ctx.indentTo;\n return typeof i == \"number\" ? i : state.ctx.start + 1;\n },\n\n languageData: {\n commentTokens: {line: \";;\", block: {open: \"#|\", close: \"|#\"}},\n closeBrackets: {brackets: [\"(\", \"[\", \"{\", '\"']}\n }\n};\n\n"],
|
||||||
|
"mappings": ";;;AAAA,IAAI,cAAc;AAClB,IAAI,aAAa;AACjB,IAAI,aAAa;AACjB,IAAI,SAAS;AACb,IAAI;AAEJ,SAAS,QAAQ,QAAQ;AACvB,MAAI;AACJ,SAAO,KAAK,OAAO,KAAK,GAAG;AACzB,QAAI,MAAM,KAAM,QAAO,KAAK;AAAA,aACnB,CAAC,OAAO,KAAK,EAAE,GAAG;AAAE,aAAO,OAAO,CAAC;AAAG;AAAA,IAAO;AAAA,EACxD;AACA,SAAO,OAAO,QAAQ;AACxB;AAEA,SAAS,KAAK,QAAQ,OAAO;AAC3B,MAAI,OAAO,SAAS,GAAG;AAAC,WAAO;AAAM,WAAO;AAAA,EAAK;AACjD,MAAI,OAAO,MAAM,UAAU,EAAG,QAAO;AACrC,MAAI,KAAK,OAAO,KAAK;AACrB,MAAI,MAAM,KAAM,MAAK,OAAO,KAAK;AAEjC,MAAI,MAAM,IAAK,SAAQ,MAAM,WAAW,UAAU,QAAQ,KAAK;AAAA,WACtD,MAAM,KAAK;AAAE,WAAO;AAAQ,WAAO;AAAA,EAAW,WAC9C,MAAM,KAAK;AAAE,WAAO;AAAS,WAAO;AAAA,EAAW,WAC/C,MAAM,KAAK;AAAE,WAAO,UAAU;AAAG,WAAO;AAAM,WAAO;AAAA,EAAW,WAChE,SAAS,KAAK,EAAE,EAAG,QAAO;AAAA,WAC1B,MAAM,KAAK;AAClB,QAAI,OAAO,OAAO,GAAG,GAAG;AAAE,aAAO,KAAK;AAAG,aAAO;AAAA,IAAgB,OAC3D;AAAE,aAAO,UAAU;AAAG,aAAO;AAAA,IAAS;AAAA,EAC7C,WAAW,MAAM,KAAK;AACpB,QAAI,KAAK,OAAO,KAAK;AACrB,QAAI,MAAM,KAAK;AAAE,aAAO;AAAQ,aAAO;AAAA,IAAW,WACzC,YAAY,KAAK,EAAE,EAAG,QAAO;AAAA,aAC7B,KAAK,KAAK,EAAE,KAAK,OAAO,MAAM,OAAO,EAAG,QAAO;AAAA,aAC/C,MAAM,IAAK,SAAQ,MAAM,WAAW,WAAW,QAAQ,KAAK;AAAA,aAC5D,MAAM,KAAK;AAAE,cAAQ,MAAM;AAAG,aAAO;AAAA,IAAQ,WAC7C,MAAM,MAAM;AAAE,aAAO,KAAK;AAAG,cAAQ,MAAM;AAAG,aAAO;AAAA,IAAiB,MAC1E,QAAO;AAAA,EACd,OAAO;AACL,QAAI,OAAO,QAAQ,MAAM;AACzB,QAAI,QAAQ,IAAK,QAAO;AACxB,WAAO;AACP,QAAI,QAAQ,SAAS,QAAQ,OAAO,KAAK,OAAO,CAAC,KAAK,IAAK,QAAO;AAClE,QAAI,MAAM,YAAY,WAAW,YAAY,KAAK,IAAI,KAAK,WAAW,KAAK,IAAI,GAAI,QAAO;AAC1F,QAAI,KAAK,OAAO,CAAC,KAAK,IAAK,QAAO;AAClC,WAAO;AAAA,EACT;AACF;AAEA,SAAS,SAAS,QAAQ,OAAO;AAC/B,MAAI,UAAU,OAAO;AACrB,SAAO,OAAO,OAAO,KAAK,GAAG;AAC3B,QAAI,QAAQ,OAAO,CAAC,SAAS;AAAE,YAAM,WAAW;AAAM;AAAA,IAAO;AAC7D,cAAU,CAAC,WAAW,QAAQ;AAAA,EAChC;AACA,SAAO;AACT;AAEA,SAAS,UAAU,QAAQ,OAAO;AAChC,MAAI,MAAM;AACV,SAAO,OAAO,OAAO,KAAK,GAAG;AAC3B,QAAI,QAAQ,OAAO,QAAQ,KAAK;AAAE,YAAM,WAAW;AAAM;AAAA,IAAO;AAChE,WAAO;AAAA,EACT;AACA,SAAO;AACP,SAAO;AACT;AAEO,IAAM,aAAa;AAAA,EACxB,MAAM;AAAA,EACN,YAAY,WAAY;AACtB,WAAO,EAAC,KAAK,EAAC,MAAM,MAAM,OAAO,GAAG,UAAU,EAAC,GAAG,UAAU,MAAM,UAAU,KAAI;AAAA,EAClF;AAAA,EAEA,OAAO,SAAU,QAAQ,OAAO;AAC9B,QAAI,OAAO,IAAI,KAAK,OAAO,MAAM,IAAI,YAAY;AAC/C,YAAM,IAAI,WAAW,MAAM,IAAI,QAAQ;AAEzC,WAAO;AACP,QAAI,QAAQ,MAAM,SAAS,QAAQ,KAAK;AACxC,QAAI,QAAQ,MAAM;AAChB,UAAI,MAAM,IAAI,YAAY,MAAM;AAC9B,YAAI,QAAQ,YAAY,WAAW,KAAK,OAAO,QAAQ,CAAC;AACtD,gBAAM,IAAI,WAAW,MAAM,IAAI,QAAQ,OAAO;AAAA;AAE9C,gBAAM,IAAI,WAAW;AAAA,MACzB,WAAW,MAAM,IAAI,YAAY,QAAQ;AACvC,cAAM,IAAI,WAAW,OAAO,OAAO;AAAA,MACrC;AACA,YAAM,WAAW;AAAA,IACnB;AACA,QAAI,QAAQ,OAAQ,OAAM,MAAM,EAAC,MAAM,MAAM,KAAK,OAAO,OAAO,OAAO,GAAG,UAAU,KAAI;AAAA,aAC/E,QAAQ,QAAS,OAAM,MAAM,MAAM,IAAI,QAAQ,MAAM;AAC9D,WAAO;AAAA,EACT;AAAA,EAEA,QAAQ,SAAU,OAAO;AACvB,QAAI,IAAI,MAAM,IAAI;AAClB,WAAO,OAAO,KAAK,WAAW,IAAI,MAAM,IAAI,QAAQ;AAAA,EACtD;AAAA,EAEA,cAAc;AAAA,IACZ,eAAe,EAAC,MAAM,MAAM,OAAO,EAAC,MAAM,MAAM,OAAO,KAAI,EAAC;AAAA,IAC5D,eAAe,EAAC,UAAU,CAAC,KAAK,KAAK,KAAK,GAAG,EAAC;AAAA,EAChD;AACF;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+402
@@ -0,0 +1,402 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/crystal.js
|
||||||
|
function wordRegExp(words, end) {
|
||||||
|
return new RegExp((end ? "" : "^") + "(?:" + words.join("|") + ")" + (end ? "$" : "\\b"));
|
||||||
|
}
|
||||||
|
function chain(tokenize, stream, state) {
|
||||||
|
state.tokenize.push(tokenize);
|
||||||
|
return tokenize(stream, state);
|
||||||
|
}
|
||||||
|
var operators = /^(?:[-+/%|&^]|\*\*?|[<>]{2})/;
|
||||||
|
var conditionalOperators = /^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/;
|
||||||
|
var indexingOperators = /^(?:\[\][?=]?)/;
|
||||||
|
var anotherOperators = /^(?:\.(?:\.{2})?|->|[?:])/;
|
||||||
|
var idents = /^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/;
|
||||||
|
var types = /^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/;
|
||||||
|
var keywords = wordRegExp([
|
||||||
|
"abstract",
|
||||||
|
"alias",
|
||||||
|
"as",
|
||||||
|
"asm",
|
||||||
|
"begin",
|
||||||
|
"break",
|
||||||
|
"case",
|
||||||
|
"class",
|
||||||
|
"def",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"elsif",
|
||||||
|
"end",
|
||||||
|
"ensure",
|
||||||
|
"enum",
|
||||||
|
"extend",
|
||||||
|
"for",
|
||||||
|
"fun",
|
||||||
|
"if",
|
||||||
|
"include",
|
||||||
|
"instance_sizeof",
|
||||||
|
"lib",
|
||||||
|
"macro",
|
||||||
|
"module",
|
||||||
|
"next",
|
||||||
|
"of",
|
||||||
|
"out",
|
||||||
|
"pointerof",
|
||||||
|
"private",
|
||||||
|
"protected",
|
||||||
|
"rescue",
|
||||||
|
"return",
|
||||||
|
"require",
|
||||||
|
"select",
|
||||||
|
"sizeof",
|
||||||
|
"struct",
|
||||||
|
"super",
|
||||||
|
"then",
|
||||||
|
"type",
|
||||||
|
"typeof",
|
||||||
|
"uninitialized",
|
||||||
|
"union",
|
||||||
|
"unless",
|
||||||
|
"until",
|
||||||
|
"when",
|
||||||
|
"while",
|
||||||
|
"with",
|
||||||
|
"yield",
|
||||||
|
"__DIR__",
|
||||||
|
"__END_LINE__",
|
||||||
|
"__FILE__",
|
||||||
|
"__LINE__"
|
||||||
|
]);
|
||||||
|
var atomWords = wordRegExp(["true", "false", "nil", "self"]);
|
||||||
|
var indentKeywordsArray = [
|
||||||
|
"def",
|
||||||
|
"fun",
|
||||||
|
"macro",
|
||||||
|
"class",
|
||||||
|
"module",
|
||||||
|
"struct",
|
||||||
|
"lib",
|
||||||
|
"enum",
|
||||||
|
"union",
|
||||||
|
"do",
|
||||||
|
"for"
|
||||||
|
];
|
||||||
|
var indentKeywords = wordRegExp(indentKeywordsArray);
|
||||||
|
var indentExpressionKeywordsArray = ["if", "unless", "case", "while", "until", "begin", "then"];
|
||||||
|
var indentExpressionKeywords = wordRegExp(indentExpressionKeywordsArray);
|
||||||
|
var dedentKeywordsArray = ["end", "else", "elsif", "rescue", "ensure"];
|
||||||
|
var dedentKeywords = wordRegExp(dedentKeywordsArray);
|
||||||
|
var dedentPunctualsArray = ["\\)", "\\}", "\\]"];
|
||||||
|
var dedentPunctuals = new RegExp("^(?:" + dedentPunctualsArray.join("|") + ")$");
|
||||||
|
var nextTokenizer = {
|
||||||
|
"def": tokenFollowIdent,
|
||||||
|
"fun": tokenFollowIdent,
|
||||||
|
"macro": tokenMacroDef,
|
||||||
|
"class": tokenFollowType,
|
||||||
|
"module": tokenFollowType,
|
||||||
|
"struct": tokenFollowType,
|
||||||
|
"lib": tokenFollowType,
|
||||||
|
"enum": tokenFollowType,
|
||||||
|
"union": tokenFollowType
|
||||||
|
};
|
||||||
|
var matching = { "[": "]", "{": "}", "(": ")", "<": ">" };
|
||||||
|
function tokenBase(stream, state) {
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (state.lastToken != "\\" && stream.match("{%", false)) {
|
||||||
|
return chain(tokenMacro("%", "%"), stream, state);
|
||||||
|
}
|
||||||
|
if (state.lastToken != "\\" && stream.match("{{", false)) {
|
||||||
|
return chain(tokenMacro("{", "}"), stream, state);
|
||||||
|
}
|
||||||
|
if (stream.peek() == "#") {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
var matched;
|
||||||
|
if (stream.match(idents)) {
|
||||||
|
stream.eat(/[?!]/);
|
||||||
|
matched = stream.current();
|
||||||
|
if (stream.eat(":")) {
|
||||||
|
return "atom";
|
||||||
|
} else if (state.lastToken == ".") {
|
||||||
|
return "property";
|
||||||
|
} else if (keywords.test(matched)) {
|
||||||
|
if (indentKeywords.test(matched)) {
|
||||||
|
if (!(matched == "fun" && state.blocks.indexOf("lib") >= 0) && !(matched == "def" && state.lastToken == "abstract")) {
|
||||||
|
state.blocks.push(matched);
|
||||||
|
state.currentIndent += 1;
|
||||||
|
}
|
||||||
|
} else if ((state.lastStyle == "operator" || !state.lastStyle) && indentExpressionKeywords.test(matched)) {
|
||||||
|
state.blocks.push(matched);
|
||||||
|
state.currentIndent += 1;
|
||||||
|
} else if (matched == "end") {
|
||||||
|
state.blocks.pop();
|
||||||
|
state.currentIndent -= 1;
|
||||||
|
}
|
||||||
|
if (nextTokenizer.hasOwnProperty(matched)) {
|
||||||
|
state.tokenize.push(nextTokenizer[matched]);
|
||||||
|
}
|
||||||
|
return "keyword";
|
||||||
|
} else if (atomWords.test(matched)) {
|
||||||
|
return "atom";
|
||||||
|
}
|
||||||
|
return "variable";
|
||||||
|
}
|
||||||
|
if (stream.eat("@")) {
|
||||||
|
if (stream.peek() == "[") {
|
||||||
|
return chain(tokenNest("[", "]", "meta"), stream, state);
|
||||||
|
}
|
||||||
|
stream.eat("@");
|
||||||
|
stream.match(idents) || stream.match(types);
|
||||||
|
return "propertyName";
|
||||||
|
}
|
||||||
|
if (stream.match(types)) {
|
||||||
|
return "tag";
|
||||||
|
}
|
||||||
|
if (stream.eat(":")) {
|
||||||
|
if (stream.eat('"')) {
|
||||||
|
return chain(tokenQuote('"', "atom", false), stream, state);
|
||||||
|
} else if (stream.match(idents) || stream.match(types) || stream.match(operators) || stream.match(conditionalOperators) || stream.match(indexingOperators)) {
|
||||||
|
return "atom";
|
||||||
|
}
|
||||||
|
stream.eat(":");
|
||||||
|
return "operator";
|
||||||
|
}
|
||||||
|
if (stream.eat('"')) {
|
||||||
|
return chain(tokenQuote('"', "string", true), stream, state);
|
||||||
|
}
|
||||||
|
if (stream.peek() == "%") {
|
||||||
|
var style = "string";
|
||||||
|
var embed = true;
|
||||||
|
var delim;
|
||||||
|
if (stream.match("%r")) {
|
||||||
|
style = "string.special";
|
||||||
|
delim = stream.next();
|
||||||
|
} else if (stream.match("%w")) {
|
||||||
|
embed = false;
|
||||||
|
delim = stream.next();
|
||||||
|
} else if (stream.match("%q")) {
|
||||||
|
embed = false;
|
||||||
|
delim = stream.next();
|
||||||
|
} else {
|
||||||
|
if (delim = stream.match(/^%([^\w\s=])/)) {
|
||||||
|
delim = delim[1];
|
||||||
|
} else if (stream.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/)) {
|
||||||
|
return "meta";
|
||||||
|
} else if (stream.eat("%")) {
|
||||||
|
return "operator";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (matching.hasOwnProperty(delim)) {
|
||||||
|
delim = matching[delim];
|
||||||
|
}
|
||||||
|
return chain(tokenQuote(delim, style, embed), stream, state);
|
||||||
|
}
|
||||||
|
if (matched = stream.match(/^<<-('?)([A-Z]\w*)\1/)) {
|
||||||
|
return chain(tokenHereDoc(matched[2], !matched[1]), stream, state);
|
||||||
|
}
|
||||||
|
if (stream.eat("'")) {
|
||||||
|
stream.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/);
|
||||||
|
stream.eat("'");
|
||||||
|
return "atom";
|
||||||
|
}
|
||||||
|
if (stream.eat("0")) {
|
||||||
|
if (stream.eat("x")) {
|
||||||
|
stream.match(/^[0-9a-fA-F_]+/);
|
||||||
|
} else if (stream.eat("o")) {
|
||||||
|
stream.match(/^[0-7_]+/);
|
||||||
|
} else if (stream.eat("b")) {
|
||||||
|
stream.match(/^[01_]+/);
|
||||||
|
}
|
||||||
|
return "number";
|
||||||
|
}
|
||||||
|
if (stream.eat(/^\d/)) {
|
||||||
|
stream.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/);
|
||||||
|
return "number";
|
||||||
|
}
|
||||||
|
if (stream.match(operators)) {
|
||||||
|
stream.eat("=");
|
||||||
|
return "operator";
|
||||||
|
}
|
||||||
|
if (stream.match(conditionalOperators) || stream.match(anotherOperators)) {
|
||||||
|
return "operator";
|
||||||
|
}
|
||||||
|
if (matched = stream.match(/[({[]/, false)) {
|
||||||
|
matched = matched[0];
|
||||||
|
return chain(tokenNest(matched, matching[matched], null), stream, state);
|
||||||
|
}
|
||||||
|
if (stream.eat("\\")) {
|
||||||
|
stream.next();
|
||||||
|
return "meta";
|
||||||
|
}
|
||||||
|
stream.next();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
function tokenNest(begin, end, style, started) {
|
||||||
|
return function(stream, state) {
|
||||||
|
if (!started && stream.match(begin)) {
|
||||||
|
state.tokenize[state.tokenize.length - 1] = tokenNest(begin, end, style, true);
|
||||||
|
state.currentIndent += 1;
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
var nextStyle = tokenBase(stream, state);
|
||||||
|
if (stream.current() === end) {
|
||||||
|
state.tokenize.pop();
|
||||||
|
state.currentIndent -= 1;
|
||||||
|
nextStyle = style;
|
||||||
|
}
|
||||||
|
return nextStyle;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function tokenMacro(begin, end, started) {
|
||||||
|
return function(stream, state) {
|
||||||
|
if (!started && stream.match("{" + begin)) {
|
||||||
|
state.currentIndent += 1;
|
||||||
|
state.tokenize[state.tokenize.length - 1] = tokenMacro(begin, end, true);
|
||||||
|
return "meta";
|
||||||
|
}
|
||||||
|
if (stream.match(end + "}")) {
|
||||||
|
state.currentIndent -= 1;
|
||||||
|
state.tokenize.pop();
|
||||||
|
return "meta";
|
||||||
|
}
|
||||||
|
return tokenBase(stream, state);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function tokenMacroDef(stream, state) {
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var matched;
|
||||||
|
if (matched = stream.match(idents)) {
|
||||||
|
if (matched == "def") {
|
||||||
|
return "keyword";
|
||||||
|
}
|
||||||
|
stream.eat(/[?!]/);
|
||||||
|
}
|
||||||
|
state.tokenize.pop();
|
||||||
|
return "def";
|
||||||
|
}
|
||||||
|
function tokenFollowIdent(stream, state) {
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (stream.match(idents)) {
|
||||||
|
stream.eat(/[!?]/);
|
||||||
|
} else {
|
||||||
|
stream.match(operators) || stream.match(conditionalOperators) || stream.match(indexingOperators);
|
||||||
|
}
|
||||||
|
state.tokenize.pop();
|
||||||
|
return "def";
|
||||||
|
}
|
||||||
|
function tokenFollowType(stream, state) {
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
stream.match(types);
|
||||||
|
state.tokenize.pop();
|
||||||
|
return "def";
|
||||||
|
}
|
||||||
|
function tokenQuote(end, style, embed) {
|
||||||
|
return function(stream, state) {
|
||||||
|
var escaped = false;
|
||||||
|
while (stream.peek()) {
|
||||||
|
if (!escaped) {
|
||||||
|
if (stream.match("{%", false)) {
|
||||||
|
state.tokenize.push(tokenMacro("%", "%"));
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
if (stream.match("{{", false)) {
|
||||||
|
state.tokenize.push(tokenMacro("{", "}"));
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
if (embed && stream.match("#{", false)) {
|
||||||
|
state.tokenize.push(tokenNest("#{", "}", "meta"));
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
var ch = stream.next();
|
||||||
|
if (ch == end) {
|
||||||
|
state.tokenize.pop();
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
escaped = embed && ch == "\\";
|
||||||
|
} else {
|
||||||
|
stream.next();
|
||||||
|
escaped = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return style;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function tokenHereDoc(phrase, embed) {
|
||||||
|
return function(stream, state) {
|
||||||
|
if (stream.sol()) {
|
||||||
|
stream.eatSpace();
|
||||||
|
if (stream.match(phrase)) {
|
||||||
|
state.tokenize.pop();
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var escaped = false;
|
||||||
|
while (stream.peek()) {
|
||||||
|
if (!escaped) {
|
||||||
|
if (stream.match("{%", false)) {
|
||||||
|
state.tokenize.push(tokenMacro("%", "%"));
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
if (stream.match("{{", false)) {
|
||||||
|
state.tokenize.push(tokenMacro("{", "}"));
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
if (embed && stream.match("#{", false)) {
|
||||||
|
state.tokenize.push(tokenNest("#{", "}", "meta"));
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
escaped = stream.next() == "\\" && embed;
|
||||||
|
} else {
|
||||||
|
stream.next();
|
||||||
|
escaped = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "string";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var crystal = {
|
||||||
|
name: "crystal",
|
||||||
|
startState: function() {
|
||||||
|
return {
|
||||||
|
tokenize: [tokenBase],
|
||||||
|
currentIndent: 0,
|
||||||
|
lastToken: null,
|
||||||
|
lastStyle: null,
|
||||||
|
blocks: []
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
var style = state.tokenize[state.tokenize.length - 1](stream, state);
|
||||||
|
var token = stream.current();
|
||||||
|
if (style && style != "comment") {
|
||||||
|
state.lastToken = token;
|
||||||
|
state.lastStyle = style;
|
||||||
|
}
|
||||||
|
return style;
|
||||||
|
},
|
||||||
|
indent: function(state, textAfter, cx) {
|
||||||
|
textAfter = textAfter.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g, "");
|
||||||
|
if (dedentKeywords.test(textAfter) || dedentPunctuals.test(textAfter)) {
|
||||||
|
return cx.unit * (state.currentIndent - 1);
|
||||||
|
}
|
||||||
|
return cx.unit * state.currentIndent;
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
indentOnInput: wordRegExp(dedentPunctualsArray.concat(dedentKeywordsArray), true),
|
||||||
|
commentTokens: { line: "#" }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
crystal
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=crystal-ORS3MCCJ.js.map
|
||||||
File diff suppressed because one or more lines are too long
+1797
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+125
@@ -0,0 +1,125 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/cypher.js
|
||||||
|
var wordRegexp = function(words) {
|
||||||
|
return new RegExp("^(?:" + words.join("|") + ")$", "i");
|
||||||
|
};
|
||||||
|
var tokenBase = function(stream) {
|
||||||
|
curPunc = null;
|
||||||
|
var ch = stream.next();
|
||||||
|
if (ch === '"') {
|
||||||
|
stream.match(/^.*?"/);
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
if (ch === "'") {
|
||||||
|
stream.match(/^.*?'/);
|
||||||
|
return "string";
|
||||||
|
}
|
||||||
|
if (/[{}\(\),\.;\[\]]/.test(ch)) {
|
||||||
|
curPunc = ch;
|
||||||
|
return "punctuation";
|
||||||
|
} else if (ch === "/" && stream.eat("/")) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "comment";
|
||||||
|
} else if (operatorChars.test(ch)) {
|
||||||
|
stream.eatWhile(operatorChars);
|
||||||
|
return null;
|
||||||
|
} else {
|
||||||
|
stream.eatWhile(/[_\w\d]/);
|
||||||
|
if (stream.eat(":")) {
|
||||||
|
stream.eatWhile(/[\w\d_\-]/);
|
||||||
|
return "atom";
|
||||||
|
}
|
||||||
|
var word = stream.current();
|
||||||
|
if (funcs.test(word)) return "builtin";
|
||||||
|
if (preds.test(word)) return "def";
|
||||||
|
if (keywords.test(word) || systemKeywords.test(word)) return "keyword";
|
||||||
|
return "variable";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var pushContext = function(state, type, col) {
|
||||||
|
return state.context = {
|
||||||
|
prev: state.context,
|
||||||
|
indent: state.indent,
|
||||||
|
col,
|
||||||
|
type
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var popContext = function(state) {
|
||||||
|
state.indent = state.context.indent;
|
||||||
|
return state.context = state.context.prev;
|
||||||
|
};
|
||||||
|
var curPunc;
|
||||||
|
var funcs = wordRegexp(["abs", "acos", "allShortestPaths", "asin", "atan", "atan2", "avg", "ceil", "coalesce", "collect", "cos", "cot", "count", "degrees", "e", "endnode", "exp", "extract", "filter", "floor", "haversin", "head", "id", "keys", "labels", "last", "left", "length", "log", "log10", "lower", "ltrim", "max", "min", "node", "nodes", "percentileCont", "percentileDisc", "pi", "radians", "rand", "range", "reduce", "rel", "relationship", "relationships", "replace", "reverse", "right", "round", "rtrim", "shortestPath", "sign", "sin", "size", "split", "sqrt", "startnode", "stdev", "stdevp", "str", "substring", "sum", "tail", "tan", "timestamp", "toFloat", "toInt", "toString", "trim", "type", "upper"]);
|
||||||
|
var preds = wordRegexp(["all", "and", "any", "contains", "exists", "has", "in", "none", "not", "or", "single", "xor"]);
|
||||||
|
var keywords = wordRegexp(["as", "asc", "ascending", "assert", "by", "case", "commit", "constraint", "create", "csv", "cypher", "delete", "desc", "descending", "detach", "distinct", "drop", "else", "end", "ends", "explain", "false", "fieldterminator", "foreach", "from", "headers", "in", "index", "is", "join", "limit", "load", "match", "merge", "null", "on", "optional", "order", "periodic", "profile", "remove", "return", "scan", "set", "skip", "start", "starts", "then", "true", "union", "unique", "unwind", "using", "when", "where", "with", "call", "yield"]);
|
||||||
|
var systemKeywords = wordRegexp(["access", "active", "assign", "all", "alter", "as", "catalog", "change", "copy", "create", "constraint", "constraints", "current", "database", "databases", "dbms", "default", "deny", "drop", "element", "elements", "exists", "from", "grant", "graph", "graphs", "if", "index", "indexes", "label", "labels", "management", "match", "name", "names", "new", "node", "nodes", "not", "of", "on", "or", "password", "populated", "privileges", "property", "read", "relationship", "relationships", "remove", "replace", "required", "revoke", "role", "roles", "set", "show", "start", "status", "stop", "suspended", "to", "traverse", "type", "types", "user", "users", "with", "write"]);
|
||||||
|
var operatorChars = /[*+\-<>=&|~%^]/;
|
||||||
|
var cypher = {
|
||||||
|
name: "cypher",
|
||||||
|
startState: function() {
|
||||||
|
return {
|
||||||
|
tokenize: tokenBase,
|
||||||
|
context: null,
|
||||||
|
indent: 0,
|
||||||
|
col: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
if (stream.sol()) {
|
||||||
|
if (state.context && state.context.align == null) {
|
||||||
|
state.context.align = false;
|
||||||
|
}
|
||||||
|
state.indent = stream.indentation();
|
||||||
|
}
|
||||||
|
if (stream.eatSpace()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var style = state.tokenize(stream, state);
|
||||||
|
if (style !== "comment" && state.context && state.context.align == null && state.context.type !== "pattern") {
|
||||||
|
state.context.align = true;
|
||||||
|
}
|
||||||
|
if (curPunc === "(") {
|
||||||
|
pushContext(state, ")", stream.column());
|
||||||
|
} else if (curPunc === "[") {
|
||||||
|
pushContext(state, "]", stream.column());
|
||||||
|
} else if (curPunc === "{") {
|
||||||
|
pushContext(state, "}", stream.column());
|
||||||
|
} else if (/[\]\}\)]/.test(curPunc)) {
|
||||||
|
while (state.context && state.context.type === "pattern") {
|
||||||
|
popContext(state);
|
||||||
|
}
|
||||||
|
if (state.context && curPunc === state.context.type) {
|
||||||
|
popContext(state);
|
||||||
|
}
|
||||||
|
} else if (curPunc === "." && state.context && state.context.type === "pattern") {
|
||||||
|
popContext(state);
|
||||||
|
} else if (/atom|string|variable/.test(style) && state.context) {
|
||||||
|
if (/[\}\]]/.test(state.context.type)) {
|
||||||
|
pushContext(state, "pattern", stream.column());
|
||||||
|
} else if (state.context.type === "pattern" && !state.context.align) {
|
||||||
|
state.context.align = true;
|
||||||
|
state.context.col = stream.column();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return style;
|
||||||
|
},
|
||||||
|
indent: function(state, textAfter, cx) {
|
||||||
|
var firstChar = textAfter && textAfter.charAt(0);
|
||||||
|
var context = state.context;
|
||||||
|
if (/[\]\}]/.test(firstChar)) {
|
||||||
|
while (context && context.type === "pattern") {
|
||||||
|
context = context.prev;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var closing = context && firstChar === context.type;
|
||||||
|
if (!context) return 0;
|
||||||
|
if (context.type === "keywords") return null;
|
||||||
|
if (context.align) return context.col + (closing ? 0 : 1);
|
||||||
|
return context.indent + (closing ? 0 : cx.unit);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
cypher
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=cypher-AYUTXOLY.js.map
|
||||||
File diff suppressed because one or more lines are too long
Vendored
+189
@@ -0,0 +1,189 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/d.js
|
||||||
|
function words(str) {
|
||||||
|
var obj = {}, words2 = str.split(" ");
|
||||||
|
for (var i = 0; i < words2.length; ++i) obj[words2[i]] = true;
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
var blockKeywordsStr = "body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";
|
||||||
|
var parserConfig = {
|
||||||
|
keywords: words("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters " + blockKeywordsStr),
|
||||||
|
blockKeywords: words(blockKeywordsStr),
|
||||||
|
builtin: words("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),
|
||||||
|
atoms: words("exit failure success true false null"),
|
||||||
|
hooks: {
|
||||||
|
"@": function(stream, _state) {
|
||||||
|
stream.eatWhile(/[\w\$_]/);
|
||||||
|
return "meta";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var statementIndentUnit = parserConfig.statementIndentUnit;
|
||||||
|
var keywords = parserConfig.keywords;
|
||||||
|
var builtin = parserConfig.builtin;
|
||||||
|
var blockKeywords = parserConfig.blockKeywords;
|
||||||
|
var atoms = parserConfig.atoms;
|
||||||
|
var hooks = parserConfig.hooks;
|
||||||
|
var multiLineStrings = parserConfig.multiLineStrings;
|
||||||
|
var isOperatorChar = /[+\-*&%=<>!?|\/]/;
|
||||||
|
var curPunc;
|
||||||
|
function tokenBase(stream, state) {
|
||||||
|
var ch = stream.next();
|
||||||
|
if (hooks[ch]) {
|
||||||
|
var result = hooks[ch](stream, state);
|
||||||
|
if (result !== false) return result;
|
||||||
|
}
|
||||||
|
if (ch == '"' || ch == "'" || ch == "`") {
|
||||||
|
state.tokenize = tokenString(ch);
|
||||||
|
return state.tokenize(stream, state);
|
||||||
|
}
|
||||||
|
if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
||||||
|
curPunc = ch;
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (/\d/.test(ch)) {
|
||||||
|
stream.eatWhile(/[\w\.]/);
|
||||||
|
return "number";
|
||||||
|
}
|
||||||
|
if (ch == "/") {
|
||||||
|
if (stream.eat("+")) {
|
||||||
|
state.tokenize = tokenNestedComment;
|
||||||
|
return tokenNestedComment(stream, state);
|
||||||
|
}
|
||||||
|
if (stream.eat("*")) {
|
||||||
|
state.tokenize = tokenComment;
|
||||||
|
return tokenComment(stream, state);
|
||||||
|
}
|
||||||
|
if (stream.eat("/")) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (isOperatorChar.test(ch)) {
|
||||||
|
stream.eatWhile(isOperatorChar);
|
||||||
|
return "operator";
|
||||||
|
}
|
||||||
|
stream.eatWhile(/[\w\$_\xa1-\uffff]/);
|
||||||
|
var cur = stream.current();
|
||||||
|
if (keywords.propertyIsEnumerable(cur)) {
|
||||||
|
if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
|
||||||
|
return "keyword";
|
||||||
|
}
|
||||||
|
if (builtin.propertyIsEnumerable(cur)) {
|
||||||
|
if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
|
||||||
|
return "builtin";
|
||||||
|
}
|
||||||
|
if (atoms.propertyIsEnumerable(cur)) return "atom";
|
||||||
|
return "variable";
|
||||||
|
}
|
||||||
|
function tokenString(quote) {
|
||||||
|
return function(stream, state) {
|
||||||
|
var escaped = false, next, end = false;
|
||||||
|
while ((next = stream.next()) != null) {
|
||||||
|
if (next == quote && !escaped) {
|
||||||
|
end = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
escaped = !escaped && next == "\\";
|
||||||
|
}
|
||||||
|
if (end || !(escaped || multiLineStrings))
|
||||||
|
state.tokenize = null;
|
||||||
|
return "string";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function tokenComment(stream, state) {
|
||||||
|
var maybeEnd = false, ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "/" && maybeEnd) {
|
||||||
|
state.tokenize = null;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = ch == "*";
|
||||||
|
}
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
function tokenNestedComment(stream, state) {
|
||||||
|
var maybeEnd = false, ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "/" && maybeEnd) {
|
||||||
|
state.tokenize = null;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = ch == "+";
|
||||||
|
}
|
||||||
|
return "comment";
|
||||||
|
}
|
||||||
|
function Context(indented, column, type, align, prev) {
|
||||||
|
this.indented = indented;
|
||||||
|
this.column = column;
|
||||||
|
this.type = type;
|
||||||
|
this.align = align;
|
||||||
|
this.prev = prev;
|
||||||
|
}
|
||||||
|
function pushContext(state, col, type) {
|
||||||
|
var indent = state.indented;
|
||||||
|
if (state.context && state.context.type == "statement")
|
||||||
|
indent = state.context.indented;
|
||||||
|
return state.context = new Context(indent, col, type, null, state.context);
|
||||||
|
}
|
||||||
|
function popContext(state) {
|
||||||
|
var t = state.context.type;
|
||||||
|
if (t == ")" || t == "]" || t == "}")
|
||||||
|
state.indented = state.context.indented;
|
||||||
|
return state.context = state.context.prev;
|
||||||
|
}
|
||||||
|
var d = {
|
||||||
|
name: "d",
|
||||||
|
startState: function(indentUnit) {
|
||||||
|
return {
|
||||||
|
tokenize: null,
|
||||||
|
context: new Context(-indentUnit, 0, "top", false),
|
||||||
|
indented: 0,
|
||||||
|
startOfLine: true
|
||||||
|
};
|
||||||
|
},
|
||||||
|
token: function(stream, state) {
|
||||||
|
var ctx = state.context;
|
||||||
|
if (stream.sol()) {
|
||||||
|
if (ctx.align == null) ctx.align = false;
|
||||||
|
state.indented = stream.indentation();
|
||||||
|
state.startOfLine = true;
|
||||||
|
}
|
||||||
|
if (stream.eatSpace()) return null;
|
||||||
|
curPunc = null;
|
||||||
|
var style = (state.tokenize || tokenBase)(stream, state);
|
||||||
|
if (style == "comment" || style == "meta") return style;
|
||||||
|
if (ctx.align == null) ctx.align = true;
|
||||||
|
if ((curPunc == ";" || curPunc == ":" || curPunc == ",") && ctx.type == "statement") popContext(state);
|
||||||
|
else if (curPunc == "{") pushContext(state, stream.column(), "}");
|
||||||
|
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
||||||
|
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
||||||
|
else if (curPunc == "}") {
|
||||||
|
while (ctx.type == "statement") ctx = popContext(state);
|
||||||
|
if (ctx.type == "}") ctx = popContext(state);
|
||||||
|
while (ctx.type == "statement") ctx = popContext(state);
|
||||||
|
} else if (curPunc == ctx.type) popContext(state);
|
||||||
|
else if ((ctx.type == "}" || ctx.type == "top") && curPunc != ";" || ctx.type == "statement" && curPunc == "newstatement")
|
||||||
|
pushContext(state, stream.column(), "statement");
|
||||||
|
state.startOfLine = false;
|
||||||
|
return style;
|
||||||
|
},
|
||||||
|
indent: function(state, textAfter, cx) {
|
||||||
|
if (state.tokenize != tokenBase && state.tokenize != null) return null;
|
||||||
|
var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
|
||||||
|
if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
|
||||||
|
var closing = firstChar == ctx.type;
|
||||||
|
if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit || cx.unit);
|
||||||
|
else if (ctx.align) return ctx.column + (closing ? 0 : 1);
|
||||||
|
else return ctx.indented + (closing ? 0 : cx.unit);
|
||||||
|
},
|
||||||
|
languageData: {
|
||||||
|
indentOnInput: /^\s*[{}]$/,
|
||||||
|
commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
d
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=d-W7FTMYZB.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
+29
@@ -0,0 +1,29 @@
|
|||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/legacy-modes/mode/diff.js
|
||||||
|
var TOKEN_NAMES = {
|
||||||
|
"+": "inserted",
|
||||||
|
"-": "deleted",
|
||||||
|
"@": "meta"
|
||||||
|
};
|
||||||
|
var diff = {
|
||||||
|
name: "diff",
|
||||||
|
token: function(stream) {
|
||||||
|
var tw_pos = stream.string.search(/[\t ]+?$/);
|
||||||
|
if (!stream.sol() || tw_pos === 0) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
return ("error " + (TOKEN_NAMES[stream.string.charAt(0)] || "")).replace(/ $/, "");
|
||||||
|
}
|
||||||
|
var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();
|
||||||
|
if (tw_pos === -1) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
} else {
|
||||||
|
stream.pos = tw_pos;
|
||||||
|
}
|
||||||
|
return token_name;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
diff
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=diff-H7NFZQHR.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/@codemirror/legacy-modes/mode/diff.js"],
|
||||||
|
"sourcesContent": ["var TOKEN_NAMES = {\n '+': 'inserted',\n '-': 'deleted',\n '@': 'meta'\n};\n\nexport const diff = {\n name: \"diff\",\n token: function(stream) {\n var tw_pos = stream.string.search(/[\\t ]+?$/);\n\n if (!stream.sol() || tw_pos === 0) {\n stream.skipToEnd();\n return (\"error \" + (\n TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');\n }\n\n var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();\n\n if (tw_pos === -1) {\n stream.skipToEnd();\n } else {\n stream.pos = tw_pos;\n }\n\n return token_name;\n }\n};\n\n"],
|
||||||
|
"mappings": ";;;AAAA,IAAI,cAAc;AAAA,EAChB,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AACP;AAEO,IAAM,OAAO;AAAA,EAClB,MAAM;AAAA,EACN,OAAO,SAAS,QAAQ;AACtB,QAAI,SAAS,OAAO,OAAO,OAAO,UAAU;AAE5C,QAAI,CAAC,OAAO,IAAI,KAAK,WAAW,GAAG;AACjC,aAAO,UAAU;AACjB,cAAQ,YACN,YAAY,OAAO,OAAO,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ,MAAM,EAAE;AAAA,IACjE;AAEA,QAAI,aAAa,YAAY,OAAO,KAAK,CAAC,KAAK,OAAO,UAAU;AAEhE,QAAI,WAAW,IAAI;AACjB,aAAO,UAAU;AAAA,IACnB,OAAO;AACL,aAAO,MAAM;AAAA,IACf;AAEA,WAAO;AAAA,EACT;AACF;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+169
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
+74
@@ -0,0 +1,74 @@
|
|||||||
|
import {
|
||||||
|
LRLanguage,
|
||||||
|
LRParser,
|
||||||
|
LanguageSupport,
|
||||||
|
delimitedIndent,
|
||||||
|
foldInside,
|
||||||
|
foldNodeProp,
|
||||||
|
indentNodeProp,
|
||||||
|
styleTags,
|
||||||
|
tags
|
||||||
|
} from "./chunk-HNY5L3CQ.js";
|
||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@codemirror/lang-wast/dist/index.js
|
||||||
|
var spec_Keyword = { __proto__: null, anyref: 34, dataref: 34, eqref: 34, externref: 34, i31ref: 34, funcref: 34, i8: 34, i16: 34, i32: 34, i64: 34, f32: 34, f64: 34 };
|
||||||
|
var parser = LRParser.deserialize({
|
||||||
|
version: 14,
|
||||||
|
states: "!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",
|
||||||
|
stateData: "!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",
|
||||||
|
goto: "xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",
|
||||||
|
nodeNames: "⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",
|
||||||
|
maxTerm: 17,
|
||||||
|
nodeProps: [
|
||||||
|
["isolate", -3, 1, 2, 11, ""],
|
||||||
|
["openedBy", 4, "("],
|
||||||
|
["closedBy", 5, ")"],
|
||||||
|
["group", -6, 6, 7, 8, 9, 10, 11, "Expression"]
|
||||||
|
],
|
||||||
|
skippedNodes: [0, 1, 2],
|
||||||
|
repeatNodeCount: 1,
|
||||||
|
tokenData: "0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",
|
||||||
|
tokenizers: [0],
|
||||||
|
topRules: { "Module": [0, 3] },
|
||||||
|
specialized: [{ term: 9, get: (value) => spec_Keyword[value] || -1 }],
|
||||||
|
tokenPrec: 0
|
||||||
|
});
|
||||||
|
var wastLanguage = LRLanguage.define({
|
||||||
|
name: "wast",
|
||||||
|
parser: parser.configure({
|
||||||
|
props: [
|
||||||
|
indentNodeProp.add({
|
||||||
|
App: delimitedIndent({ closing: ")", align: false })
|
||||||
|
}),
|
||||||
|
foldNodeProp.add({
|
||||||
|
App: foldInside,
|
||||||
|
BlockComment(tree) {
|
||||||
|
return { from: tree.from + 2, to: tree.to - 2 };
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
styleTags({
|
||||||
|
Keyword: tags.keyword,
|
||||||
|
Type: tags.typeName,
|
||||||
|
Number: tags.number,
|
||||||
|
String: tags.string,
|
||||||
|
Identifier: tags.variableName,
|
||||||
|
LineComment: tags.lineComment,
|
||||||
|
BlockComment: tags.blockComment,
|
||||||
|
"( )": tags.paren
|
||||||
|
})
|
||||||
|
]
|
||||||
|
}),
|
||||||
|
languageData: {
|
||||||
|
commentTokens: { line: ";;", block: { open: "(;", close: ";)" } },
|
||||||
|
closeBrackets: { brackets: ["(", '"'] }
|
||||||
|
}
|
||||||
|
});
|
||||||
|
function wast() {
|
||||||
|
return new LanguageSupport(wastLanguage);
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
wast,
|
||||||
|
wastLanguage
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=dist-2FIPZMIA.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/@codemirror/lang-wast/dist/index.js"],
|
||||||
|
"sourcesContent": ["import { LRLanguage, indentNodeProp, delimitedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';\nimport { styleTags, tags } from '@lezer/highlight';\nimport { LRParser } from '@lezer/lr';\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst spec_Keyword = {__proto__:null,anyref:34, dataref:34, eqref:34, externref:34, i31ref:34, funcref:34, i8:34, i16:34, i32:34, i64:34, f32:34, f64:34};\nconst parser = /*@__PURE__*/LRParser.deserialize({\n version: 14,\n states: \"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h\",\n stateData: \"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O\",\n goto: \"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV\",\n nodeNames: \"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String\",\n maxTerm: 17,\n nodeProps: [\n [\"isolate\", -3,1,2,11,\"\"],\n [\"openedBy\", 4,\"(\"],\n [\"closedBy\", 5,\")\"],\n [\"group\", -6,6,7,8,9,10,11,\"Expression\"]\n ],\n skippedNodes: [0,1,2],\n repeatNodeCount: 1,\n tokenData: \"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{\",\n tokenizers: [0],\n topRules: {\"Module\":[0,3]},\n specialized: [{term: 9, get: (value) => spec_Keyword[value] || -1}],\n tokenPrec: 0\n});\n\nconst wastLanguage = /*@__PURE__*/LRLanguage.define({\n name: \"wast\",\n parser: /*@__PURE__*/parser.configure({\n props: [\n /*@__PURE__*/indentNodeProp.add({\n App: /*@__PURE__*/delimitedIndent({ closing: \")\", align: false })\n }),\n /*@__PURE__*/foldNodeProp.add({\n App: foldInside,\n BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }\n }),\n /*@__PURE__*/styleTags({\n Keyword: tags.keyword,\n Type: tags.typeName,\n Number: tags.number,\n String: tags.string,\n Identifier: tags.variableName,\n LineComment: tags.lineComment,\n BlockComment: tags.blockComment,\n \"( )\": tags.paren\n })\n ]\n }),\n languageData: {\n commentTokens: { line: \";;\", block: { open: \"(;\", close: \";)\" } },\n closeBrackets: { brackets: [\"(\", '\"'] }\n }\n});\nfunction wast() {\n return new LanguageSupport(wastLanguage);\n}\n\nexport { wast, wastLanguage };\n"],
|
||||||
|
"mappings": ";;;;;;;;;;;;;;AAKA,IAAM,eAAe,EAAC,WAAU,MAAK,QAAO,IAAI,SAAQ,IAAI,OAAM,IAAI,WAAU,IAAI,QAAO,IAAI,SAAQ,IAAI,IAAG,IAAI,KAAI,IAAI,KAAI,IAAI,KAAI,IAAI,KAAI,IAAI,KAAI,GAAE;AACxJ,IAAM,SAAsB,SAAS,YAAY;AAAA,EAC/C,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AAAA,IACT,CAAC,WAAW,IAAG,GAAE,GAAE,IAAG,EAAE;AAAA,IACxB,CAAC,YAAY,GAAE,GAAG;AAAA,IAClB,CAAC,YAAY,GAAE,GAAG;AAAA,IAClB,CAAC,SAAS,IAAG,GAAE,GAAE,GAAE,GAAE,IAAG,IAAG,YAAY;AAAA,EACzC;AAAA,EACA,cAAc,CAAC,GAAE,GAAE,CAAC;AAAA,EACpB,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,YAAY,CAAC,CAAC;AAAA,EACd,UAAU,EAAC,UAAS,CAAC,GAAE,CAAC,EAAC;AAAA,EACzB,aAAa,CAAC,EAAC,MAAM,GAAG,KAAK,CAAC,UAAU,aAAa,KAAK,KAAK,GAAE,CAAC;AAAA,EAClE,WAAW;AACb,CAAC;AAED,IAAM,eAA4B,WAAW,OAAO;AAAA,EAChD,MAAM;AAAA,EACN,QAAqB,OAAO,UAAU;AAAA,IAClC,OAAO;AAAA,MACU,eAAe,IAAI;AAAA,QAC5B,KAAkB,gBAAgB,EAAE,SAAS,KAAK,OAAO,MAAM,CAAC;AAAA,MACpE,CAAC;AAAA,MACY,aAAa,IAAI;AAAA,QAC1B,KAAK;AAAA,QACL,aAAa,MAAM;AAAE,iBAAO,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,KAAK,KAAK,EAAE;AAAA,QAAG;AAAA,MAC1E,CAAC;AAAA,MACY,UAAU;AAAA,QACnB,SAAS,KAAK;AAAA,QACd,MAAM,KAAK;AAAA,QACX,QAAQ,KAAK;AAAA,QACb,QAAQ,KAAK;AAAA,QACb,YAAY,KAAK;AAAA,QACjB,aAAa,KAAK;AAAA,QAClB,cAAc,KAAK;AAAA,QACnB,OAAO,KAAK;AAAA,MAChB,CAAC;AAAA,IACL;AAAA,EACJ,CAAC;AAAA,EACD,cAAc;AAAA,IACV,eAAe,EAAE,MAAM,MAAM,OAAO,EAAE,MAAM,MAAM,OAAO,KAAK,EAAE;AAAA,IAChE,eAAe,EAAE,UAAU,CAAC,KAAK,GAAG,EAAE;AAAA,EAC1C;AACJ,CAAC;AACD,SAAS,OAAO;AACZ,SAAO,IAAI,gBAAgB,YAAY;AAC3C;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+189
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
+97
@@ -0,0 +1,97 @@
|
|||||||
|
import {
|
||||||
|
LRLanguage,
|
||||||
|
LRParser,
|
||||||
|
LanguageSupport,
|
||||||
|
continuedIndent,
|
||||||
|
foldInside,
|
||||||
|
foldNodeProp,
|
||||||
|
indentNodeProp,
|
||||||
|
styleTags,
|
||||||
|
tags
|
||||||
|
} from "./chunk-HNY5L3CQ.js";
|
||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
|
||||||
|
// node_modules/@lezer/json/dist/index.js
|
||||||
|
var jsonHighlighting = styleTags({
|
||||||
|
String: tags.string,
|
||||||
|
Number: tags.number,
|
||||||
|
"True False": tags.bool,
|
||||||
|
PropertyName: tags.propertyName,
|
||||||
|
Null: tags.null,
|
||||||
|
", :": tags.separator,
|
||||||
|
"[ ]": tags.squareBracket,
|
||||||
|
"{ }": tags.brace
|
||||||
|
});
|
||||||
|
var parser = LRParser.deserialize({
|
||||||
|
version: 14,
|
||||||
|
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
|
||||||
|
stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
|
||||||
|
goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
|
||||||
|
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
|
||||||
|
maxTerm: 25,
|
||||||
|
nodeProps: [
|
||||||
|
["isolate", -2, 6, 11, ""],
|
||||||
|
["openedBy", 7, "{", 14, "["],
|
||||||
|
["closedBy", 8, "}", 15, "]"]
|
||||||
|
],
|
||||||
|
propSources: [jsonHighlighting],
|
||||||
|
skippedNodes: [0],
|
||||||
|
repeatNodeCount: 2,
|
||||||
|
tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
|
||||||
|
tokenizers: [0],
|
||||||
|
topRules: { "JsonText": [0, 1] },
|
||||||
|
tokenPrec: 0
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/@codemirror/lang-json/dist/index.js
|
||||||
|
var jsonParseLinter = () => (view) => {
|
||||||
|
try {
|
||||||
|
JSON.parse(view.state.doc.toString());
|
||||||
|
} catch (e) {
|
||||||
|
if (!(e instanceof SyntaxError))
|
||||||
|
throw e;
|
||||||
|
const pos = getErrorPosition(e, view.state.doc);
|
||||||
|
return [{
|
||||||
|
from: pos,
|
||||||
|
message: e.message,
|
||||||
|
severity: "error",
|
||||||
|
to: pos
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
return [];
|
||||||
|
};
|
||||||
|
function getErrorPosition(error, doc) {
|
||||||
|
let m;
|
||||||
|
if (m = error.message.match(/at position (\d+)/))
|
||||||
|
return Math.min(+m[1], doc.length);
|
||||||
|
if (m = error.message.match(/at line (\d+) column (\d+)/))
|
||||||
|
return Math.min(doc.line(+m[1]).from + +m[2] - 1, doc.length);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
var jsonLanguage = LRLanguage.define({
|
||||||
|
name: "json",
|
||||||
|
parser: parser.configure({
|
||||||
|
props: [
|
||||||
|
indentNodeProp.add({
|
||||||
|
Object: continuedIndent({ except: /^\s*\}/ }),
|
||||||
|
Array: continuedIndent({ except: /^\s*\]/ })
|
||||||
|
}),
|
||||||
|
foldNodeProp.add({
|
||||||
|
"Object Array": foldInside
|
||||||
|
})
|
||||||
|
]
|
||||||
|
}),
|
||||||
|
languageData: {
|
||||||
|
closeBrackets: { brackets: ["[", "{", '"'] },
|
||||||
|
indentOnInput: /^\s*[\}\]]$/
|
||||||
|
}
|
||||||
|
});
|
||||||
|
function json() {
|
||||||
|
return new LanguageSupport(jsonLanguage);
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
json,
|
||||||
|
jsonLanguage,
|
||||||
|
jsonParseLinter
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=dist-3Z52KZM7.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../../node_modules/@lezer/json/dist/index.js", "../../../node_modules/@codemirror/lang-json/dist/index.js"],
|
||||||
|
"sourcesContent": ["import { LRParser } from '@lezer/lr';\nimport { styleTags, tags } from '@lezer/highlight';\n\nconst jsonHighlighting = styleTags({\n String: tags.string,\n Number: tags.number,\n \"True False\": tags.bool,\n PropertyName: tags.propertyName,\n Null: tags.null,\n \", :\": tags.separator,\n \"[ ]\": tags.squareBracket,\n \"{ }\": tags.brace\n});\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst parser = LRParser.deserialize({\n version: 14,\n states: \"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l\",\n stateData: \"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O\",\n goto: \"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R\",\n nodeNames: \"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array\",\n maxTerm: 25,\n nodeProps: [\n [\"isolate\", -2,6,11,\"\"],\n [\"openedBy\", 7,\"{\",14,\"[\"],\n [\"closedBy\", 8,\"}\",15,\"]\"]\n ],\n propSources: [jsonHighlighting],\n skippedNodes: [0],\n repeatNodeCount: 2,\n tokenData: \"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~\",\n tokenizers: [0],\n topRules: {\"JsonText\":[0,1]},\n tokenPrec: 0\n});\n\nexport { parser };\n", "import { parser } from '@lezer/json';\nimport { LRLanguage, indentNodeProp, continuedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';\n\n/**\nCalls\n[`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse)\non the document and, if that throws an error, reports it as a\nsingle diagnostic.\n*/\nconst jsonParseLinter = () => (view) => {\n try {\n JSON.parse(view.state.doc.toString());\n }\n catch (e) {\n if (!(e instanceof SyntaxError))\n throw e;\n const pos = getErrorPosition(e, view.state.doc);\n return [{\n from: pos,\n message: e.message,\n severity: 'error',\n to: pos\n }];\n }\n return [];\n};\nfunction getErrorPosition(error, doc) {\n let m;\n if (m = error.message.match(/at position (\\d+)/))\n return Math.min(+m[1], doc.length);\n if (m = error.message.match(/at line (\\d+) column (\\d+)/))\n return Math.min(doc.line(+m[1]).from + (+m[2]) - 1, doc.length);\n return 0;\n}\n\n/**\nA language provider that provides JSON parsing.\n*/\nconst jsonLanguage = /*@__PURE__*/LRLanguage.define({\n name: \"json\",\n parser: /*@__PURE__*/parser.configure({\n props: [\n /*@__PURE__*/indentNodeProp.add({\n Object: /*@__PURE__*/continuedIndent({ except: /^\\s*\\}/ }),\n Array: /*@__PURE__*/continuedIndent({ except: /^\\s*\\]/ })\n }),\n /*@__PURE__*/foldNodeProp.add({\n \"Object Array\": foldInside\n })\n ]\n }),\n languageData: {\n closeBrackets: { brackets: [\"[\", \"{\", '\"'] },\n indentOnInput: /^\\s*[\\}\\]]$/\n }\n});\n/**\nJSON language support.\n*/\nfunction json() {\n return new LanguageSupport(jsonLanguage);\n}\n\nexport { json, jsonLanguage, jsonParseLinter };\n"],
|
||||||
|
"mappings": ";;;;;;;;;;;;;;AAGA,IAAM,mBAAmB,UAAU;AAAA,EACjC,QAAQ,KAAK;AAAA,EACb,QAAQ,KAAK;AAAA,EACb,cAAc,KAAK;AAAA,EACnB,cAAc,KAAK;AAAA,EACnB,MAAM,KAAK;AAAA,EACX,OAAO,KAAK;AAAA,EACZ,OAAO,KAAK;AAAA,EACZ,OAAO,KAAK;AACd,CAAC;AAGD,IAAM,SAAS,SAAS,YAAY;AAAA,EAClC,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AAAA,IACT,CAAC,WAAW,IAAG,GAAE,IAAG,EAAE;AAAA,IACtB,CAAC,YAAY,GAAE,KAAI,IAAG,GAAG;AAAA,IACzB,CAAC,YAAY,GAAE,KAAI,IAAG,GAAG;AAAA,EAC3B;AAAA,EACA,aAAa,CAAC,gBAAgB;AAAA,EAC9B,cAAc,CAAC,CAAC;AAAA,EAChB,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,YAAY,CAAC,CAAC;AAAA,EACd,UAAU,EAAC,YAAW,CAAC,GAAE,CAAC,EAAC;AAAA,EAC3B,WAAW;AACb,CAAC;;;ACzBD,IAAM,kBAAkB,MAAM,CAAC,SAAS;AACpC,MAAI;AACA,SAAK,MAAM,KAAK,MAAM,IAAI,SAAS,CAAC;AAAA,EACxC,SACO,GAAG;AACN,QAAI,EAAE,aAAa;AACf,YAAM;AACV,UAAM,MAAM,iBAAiB,GAAG,KAAK,MAAM,GAAG;AAC9C,WAAO,CAAC;AAAA,MACA,MAAM;AAAA,MACN,SAAS,EAAE;AAAA,MACX,UAAU;AAAA,MACV,IAAI;AAAA,IACR,CAAC;AAAA,EACT;AACA,SAAO,CAAC;AACZ;AACA,SAAS,iBAAiB,OAAO,KAAK;AAClC,MAAI;AACJ,MAAI,IAAI,MAAM,QAAQ,MAAM,mBAAmB;AAC3C,WAAO,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,MAAM;AACrC,MAAI,IAAI,MAAM,QAAQ,MAAM,4BAA4B;AACpD,WAAO,KAAK,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,OAAQ,CAAC,EAAE,CAAC,IAAK,GAAG,IAAI,MAAM;AAClE,SAAO;AACX;AAKA,IAAM,eAA4B,WAAW,OAAO;AAAA,EAChD,MAAM;AAAA,EACN,QAAqB,OAAO,UAAU;AAAA,IAClC,OAAO;AAAA,MACU,eAAe,IAAI;AAAA,QAC5B,QAAqB,gBAAgB,EAAE,QAAQ,SAAS,CAAC;AAAA,QACzD,OAAoB,gBAAgB,EAAE,QAAQ,SAAS,CAAC;AAAA,MAC5D,CAAC;AAAA,MACY,aAAa,IAAI;AAAA,QAC1B,gBAAgB;AAAA,MACpB,CAAC;AAAA,IACL;AAAA,EACJ,CAAC;AAAA,EACD,cAAc;AAAA,IACV,eAAe,EAAE,UAAU,CAAC,KAAK,KAAK,GAAG,EAAE;AAAA,IAC3C,eAAe;AAAA,EACnB;AACJ,CAAC;AAID,SAAS,OAAO;AACZ,SAAO,IAAI,gBAAgB,YAAY;AAC3C;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+23
@@ -0,0 +1,23 @@
|
|||||||
|
import {
|
||||||
|
commonmarkLanguage,
|
||||||
|
deleteMarkupBackward,
|
||||||
|
insertNewlineContinueMarkup,
|
||||||
|
markdown,
|
||||||
|
markdownKeymap,
|
||||||
|
markdownLanguage
|
||||||
|
} from "./chunk-ZFN2AXL3.js";
|
||||||
|
import "./chunk-XIFAY33O.js";
|
||||||
|
import "./chunk-WS77TBA6.js";
|
||||||
|
import "./chunk-CQODXWBO.js";
|
||||||
|
import "./chunk-5VHTIHW6.js";
|
||||||
|
import "./chunk-HNY5L3CQ.js";
|
||||||
|
import "./chunk-OL46QLBJ.js";
|
||||||
|
export {
|
||||||
|
commonmarkLanguage,
|
||||||
|
deleteMarkupBackward,
|
||||||
|
insertNewlineContinueMarkup,
|
||||||
|
markdown,
|
||||||
|
markdownKeymap,
|
||||||
|
markdownLanguage
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=dist-45OUZ3MH.js.map
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user