├── Readme.md ├── cli ├── build.js ├── config.default.json ├── deps.js ├── editor.js ├── multirender.js ├── render.js └── rendermacro.js ├── core ├── faustCompiler.js ├── libfaust-wasm.js ├── macro.js ├── player.js ├── project.js └── worklet.js ├── editor-js ├── app.js ├── codeEditor.js ├── devPlayer.js ├── fsa.js ├── lib │ ├── faust │ │ ├── faust2doc.js │ │ ├── faust2md.js │ │ ├── faustlang.js │ │ └── libraries │ │ │ ├── aanl.lib │ │ │ ├── all.lib │ │ │ ├── analyzers.lib │ │ │ ├── basics.lib │ │ │ ├── compressors.lib │ │ │ ├── delays.lib │ │ │ ├── demos.lib │ │ │ ├── dx7.lib │ │ │ ├── envelopes.lib │ │ │ ├── fds.lib │ │ │ ├── filters.lib │ │ │ ├── hoa.lib │ │ │ ├── instruments.lib │ │ │ ├── interpolators.lib │ │ │ ├── maths.lib │ │ │ ├── maxmsp.lib │ │ │ ├── mi.lib │ │ │ ├── misceffects.lib │ │ │ ├── noises.lib │ │ │ ├── oscillators.lib │ │ │ ├── phaflangers.lib │ │ │ ├── physmodels.lib │ │ │ ├── platform.lib │ │ │ ├── primitives.lib │ │ │ ├── quantizers.lib │ │ │ ├── reducemaps.lib │ │ │ ├── reverbs.lib │ │ │ ├── routes.lib │ │ │ ├── sf.lib │ │ │ ├── signals.lib │ │ │ ├── soundfiles.lib │ │ │ ├── spats.lib │ │ │ ├── stdfaust.lib │ │ │ ├── synths.lib │ │ │ ├── tonestacks.lib │ │ │ ├── tubes.lib │ │ │ ├── vaeffects.lib │ │ │ ├── version.lib │ │ │ ├── wdmodels.lib │ │ │ └── webaudio.lib │ ├── mithril.min.js │ ├── mithrilModule.js │ └── monaco │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── ThirdPartyNotices.txt │ │ ├── min-maps │ │ └── vs │ │ │ ├── base │ │ │ ├── common │ │ │ │ └── worker │ │ │ │ │ ├── simpleWorker.nls.de.js.map │ │ │ │ │ ├── simpleWorker.nls.es.js.map │ │ │ │ │ ├── simpleWorker.nls.fr.js.map │ │ │ │ │ ├── simpleWorker.nls.it.js.map │ │ │ │ │ ├── simpleWorker.nls.ja.js.map │ │ │ │ │ ├── simpleWorker.nls.js.map │ │ │ │ │ ├── simpleWorker.nls.ko.js.map │ │ │ │ │ ├── simpleWorker.nls.ru.js.map │ │ │ │ │ ├── simpleWorker.nls.zh-cn.js.map │ │ │ │ │ └── simpleWorker.nls.zh-tw.js.map │ │ │ └── worker │ │ │ │ └── workerMain.js.map │ │ │ ├── editor │ │ │ ├── editor.main.js.map │ │ │ ├── editor.main.nls.de.js.map │ │ │ ├── editor.main.nls.es.js.map │ │ │ ├── editor.main.nls.fr.js.map │ │ │ ├── editor.main.nls.it.js.map │ │ │ ├── editor.main.nls.ja.js.map │ │ │ ├── editor.main.nls.js.map │ │ │ ├── editor.main.nls.ko.js.map │ │ │ ├── editor.main.nls.ru.js.map │ │ │ ├── editor.main.nls.zh-cn.js.map │ │ │ └── editor.main.nls.zh-tw.js.map │ │ │ └── loader.js.map │ │ ├── min │ │ └── vs │ │ │ ├── base │ │ │ ├── browser │ │ │ │ └── ui │ │ │ │ │ └── codicons │ │ │ │ │ └── codicon │ │ │ │ │ └── codicon.ttf │ │ │ ├── common │ │ │ │ └── worker │ │ │ │ │ ├── simpleWorker.nls.de.js │ │ │ │ │ ├── simpleWorker.nls.es.js │ │ │ │ │ ├── simpleWorker.nls.fr.js │ │ │ │ │ ├── simpleWorker.nls.it.js │ │ │ │ │ ├── simpleWorker.nls.ja.js │ │ │ │ │ ├── simpleWorker.nls.js │ │ │ │ │ ├── simpleWorker.nls.ko.js │ │ │ │ │ ├── simpleWorker.nls.ru.js │ │ │ │ │ ├── simpleWorker.nls.zh-cn.js │ │ │ │ │ └── simpleWorker.nls.zh-tw.js │ │ │ └── worker │ │ │ │ └── workerMain.js │ │ │ ├── basic-languages │ │ │ ├── abap │ │ │ │ └── abap.js │ │ │ ├── apex │ │ │ │ └── apex.js │ │ │ ├── azcli │ │ │ │ └── azcli.js │ │ │ ├── bat │ │ │ │ └── bat.js │ │ │ ├── bicep │ │ │ │ └── bicep.js │ │ │ ├── cameligo │ │ │ │ └── cameligo.js │ │ │ ├── clojure │ │ │ │ └── clojure.js │ │ │ ├── coffee │ │ │ │ └── coffee.js │ │ │ ├── cpp │ │ │ │ └── cpp.js │ │ │ ├── csharp │ │ │ │ └── csharp.js │ │ │ ├── csp │ │ │ │ └── csp.js │ │ │ ├── css │ │ │ │ └── css.js │ │ │ ├── cypher │ │ │ │ └── cypher.js │ │ │ ├── dart │ │ │ │ └── dart.js │ │ │ ├── dockerfile │ │ │ │ └── dockerfile.js │ │ │ ├── ecl │ │ │ │ └── ecl.js │ │ │ ├── elixir │ │ │ │ └── elixir.js │ │ │ ├── flow9 │ │ │ │ └── flow9.js │ │ │ ├── freemarker2 │ │ │ │ └── freemarker2.js │ │ │ ├── fsharp │ │ │ │ └── fsharp.js │ │ │ ├── go │ │ │ │ └── go.js │ │ │ ├── graphql │ │ │ │ └── graphql.js │ │ │ ├── handlebars │ │ │ │ └── handlebars.js │ │ │ ├── hcl │ │ │ │ └── hcl.js │ │ │ ├── html │ │ │ │ └── html.js │ │ │ ├── ini │ │ │ │ └── ini.js │ │ │ ├── java │ │ │ │ └── java.js │ │ │ ├── javascript │ │ │ │ └── javascript.js │ │ │ ├── julia │ │ │ │ └── julia.js │ │ │ ├── kotlin │ │ │ │ └── kotlin.js │ │ │ ├── less │ │ │ │ └── less.js │ │ │ ├── lexon │ │ │ │ └── lexon.js │ │ │ ├── liquid │ │ │ │ └── liquid.js │ │ │ ├── lua │ │ │ │ └── lua.js │ │ │ ├── m3 │ │ │ │ └── m3.js │ │ │ ├── markdown │ │ │ │ └── markdown.js │ │ │ ├── mips │ │ │ │ └── mips.js │ │ │ ├── msdax │ │ │ │ └── msdax.js │ │ │ ├── mysql │ │ │ │ └── mysql.js │ │ │ ├── objective-c │ │ │ │ └── objective-c.js │ │ │ ├── pascal │ │ │ │ └── pascal.js │ │ │ ├── pascaligo │ │ │ │ └── pascaligo.js │ │ │ ├── perl │ │ │ │ └── perl.js │ │ │ ├── pgsql │ │ │ │ └── pgsql.js │ │ │ ├── php │ │ │ │ └── php.js │ │ │ ├── pla │ │ │ │ └── pla.js │ │ │ ├── postiats │ │ │ │ └── postiats.js │ │ │ ├── powerquery │ │ │ │ └── powerquery.js │ │ │ ├── powershell │ │ │ │ └── powershell.js │ │ │ ├── protobuf │ │ │ │ └── protobuf.js │ │ │ ├── pug │ │ │ │ └── pug.js │ │ │ ├── python │ │ │ │ └── python.js │ │ │ ├── qsharp │ │ │ │ └── qsharp.js │ │ │ ├── r │ │ │ │ └── r.js │ │ │ ├── razor │ │ │ │ └── razor.js │ │ │ ├── redis │ │ │ │ └── redis.js │ │ │ ├── redshift │ │ │ │ └── redshift.js │ │ │ ├── restructuredtext │ │ │ │ └── restructuredtext.js │ │ │ ├── ruby │ │ │ │ └── ruby.js │ │ │ ├── rust │ │ │ │ └── rust.js │ │ │ ├── sb │ │ │ │ └── sb.js │ │ │ ├── scala │ │ │ │ └── scala.js │ │ │ ├── scheme │ │ │ │ └── scheme.js │ │ │ ├── scss │ │ │ │ └── scss.js │ │ │ ├── shell │ │ │ │ └── shell.js │ │ │ ├── solidity │ │ │ │ └── solidity.js │ │ │ ├── sophia │ │ │ │ └── sophia.js │ │ │ ├── sparql │ │ │ │ └── sparql.js │ │ │ ├── sql │ │ │ │ └── sql.js │ │ │ ├── st │ │ │ │ └── st.js │ │ │ ├── swift │ │ │ │ └── swift.js │ │ │ ├── systemverilog │ │ │ │ └── systemverilog.js │ │ │ ├── tcl │ │ │ │ └── tcl.js │ │ │ ├── twig │ │ │ │ └── twig.js │ │ │ ├── typescript │ │ │ │ └── typescript.js │ │ │ ├── vb │ │ │ │ └── vb.js │ │ │ ├── xml │ │ │ │ └── xml.js │ │ │ └── yaml │ │ │ │ └── yaml.js │ │ │ ├── editor │ │ │ ├── editor.main.css │ │ │ ├── editor.main.js │ │ │ ├── editor.main.nls.de.js │ │ │ ├── editor.main.nls.es.js │ │ │ ├── editor.main.nls.fr.js │ │ │ ├── editor.main.nls.it.js │ │ │ ├── editor.main.nls.ja.js │ │ │ ├── editor.main.nls.js │ │ │ ├── editor.main.nls.ko.js │ │ │ ├── editor.main.nls.ru.js │ │ │ ├── editor.main.nls.zh-cn.js │ │ │ └── editor.main.nls.zh-tw.js │ │ │ ├── language │ │ │ ├── css │ │ │ │ ├── cssMode.js │ │ │ │ └── cssWorker.js │ │ │ ├── html │ │ │ │ ├── htmlMode.js │ │ │ │ └── htmlWorker.js │ │ │ ├── json │ │ │ │ ├── jsonMode.js │ │ │ │ └── jsonWorker.js │ │ │ └── typescript │ │ │ │ ├── tsMode.js │ │ │ │ └── tsWorker.js │ │ │ └── loader.js │ │ ├── monaco.d.ts │ │ └── package.json ├── network.js └── sporthEditor.js ├── editor-static ├── importctrl.js ├── index.html ├── manifest.json ├── teaed.css └── teasynth_t.svg ├── projects └── startup │ ├── 1-welcome │ └── main.js │ └── host.js └── teasynth.js /cli/build.js: -------------------------------------------------------------------------------- 1 | import { path, bundle } from './deps.js'; 2 | import { compileFaust } from '../core/faustCompiler.js'; 3 | import { Project, ProjFile, ProjDir } from '../core/project.js'; 4 | import { makeWorklet } from '../core/worklet.js'; 5 | 6 | const cyrb53 = (str, seed = 0) => { 7 | let h1 = 0xdeadbeef ^ seed, h2 = 0x41c6ce57 ^ seed; 8 | for (let i = 0, ch; i < str.length; i++) { 9 | ch = str.charCodeAt(i); 10 | h1 = Math.imul(h1 ^ ch, 2654435761); 11 | h2 = Math.imul(h2 ^ ch, 1597334677); 12 | } 13 | h1 = Math.imul(h1 ^ (h1>>>16), 2246822507) ^ Math.imul(h2 ^ (h2>>>13), 3266489909); 14 | h2 = Math.imul(h2 ^ (h2>>>16), 2246822507) ^ Math.imul(h1 ^ (h1>>>13), 3266489909); 15 | return 4294967296 * (2097151 & h2) + (h1>>>0); 16 | }; 17 | 18 | /** 19 | * @param {String} fsPath 20 | * @param {ProjDir} projDir 21 | */ 22 | const walkFs = (fsPath, projDir) => { 23 | for (const dirEntry of Deno.readDirSync(fsPath)) { 24 | const entryPath = path.join(fsPath, dirEntry.name); 25 | let projChild; 26 | if (dirEntry.isDirectory) { 27 | projChild = new ProjDir(dirEntry.name); 28 | walkFs(entryPath, projChild); 29 | } else { 30 | const content = Deno.readTextFileSync(entryPath); 31 | projChild = new ProjFile(dirEntry.name, content); 32 | } 33 | projDir.addChild(projChild); 34 | } 35 | }; 36 | 37 | /** 38 | * @param {string} projPath 39 | * @returns Project 40 | */ 41 | export const path2proj = projPath => { 42 | const name = path.basename(projPath); 43 | const ret = new Project(name); 44 | walkFs(projPath, ret.root); 45 | return ret; 46 | }; 47 | 48 | /** 49 | * @param {Project} proj 50 | * @param {ProjFile} main 51 | */ 52 | const buildPatch = async (proj, main) => { 53 | const patchName = 'worklet_' + main.parent.name; 54 | const sources = {}; 55 | for (let file of proj.files) { 56 | if (file.isDir) continue; 57 | sources['file:///' + file.path] = file.content; 58 | } 59 | sources['file:///export_worklet.js'] = makeWorklet('./'+main.path, './host.js', patchName); 60 | const load = async (path) => ({ 61 | kind: 'module', 62 | specifier: path, 63 | content: sources[path] 64 | }); 65 | // note: compilerOptions doesn't work, and inline source maps are included anyways. 66 | // this is a regression from previous deno versions. 67 | // for updates, see: https://github.com/denoland/deno_emit/issues/29 68 | const compilerOptions = { sourceMap: false, inlineSourceMap: false }; 69 | console.log(`bundling ${main.parent.path}...`); 70 | const { code } = await bundle('/export_worklet.js', { load, compilerOptions }); 71 | const outFiles = { [patchName+'.js']: code }; 72 | const faustSources = [...main.parent.descendants].filter(f => f.name.endsWith('.dsp')); 73 | console.log('compiling Faust souces...'); 74 | for (let f of faustSources) { 75 | const hash = cyrb53(f.content); 76 | const comp = await compileFaust(f.content, false); 77 | outFiles[hash+'.wasm'] = comp.ui8Code; 78 | outFiles[hash+'.json'] = JSON.stringify(comp.dspMeta); 79 | } 80 | return outFiles; 81 | }; 82 | 83 | export const build = async ({ inDir, outDir, faustOut, wantPatches = [] }) => { 84 | Deno.mkdirSync(outDir, {recursive: true}); 85 | console.log('reading input project...'); 86 | const proj = path2proj(inDir); 87 | for (let main of proj.files) { 88 | if (main.name !== 'main.js') continue; 89 | if (main.path.includes('failed')) continue; 90 | const exFiles = await buildPatch(proj, main); 91 | 92 | const tPath = path.join(outDir, main.parent.path); 93 | if (!wantPatches.length || wantPatches.includes(main.parent.name)) { 94 | Deno.mkdirSync(tPath, {recursive: true}); 95 | } 96 | for (let filename of Object.keys(exFiles)) { 97 | if (wantPatches.length && filename.endsWith('.js') && !wantPatches.includes(main.parent.name)) { 98 | continue; 99 | } 100 | let outPath = (faustOut && filename.match(/(\.wasm|\.json)$/)) ? faustOut : tPath; 101 | outPath = path.join(outPath, filename); 102 | if (typeof exFiles[filename] === 'string') { 103 | Deno.writeTextFileSync(outPath, exFiles[filename]) 104 | } else { 105 | Deno.writeFileSync(outPath, exFiles[filename]) 106 | } 107 | } 108 | } 109 | console.log('done.'); 110 | }; -------------------------------------------------------------------------------- /cli/config.default.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": { 3 | "/": "../projects/startup" 4 | } 5 | } -------------------------------------------------------------------------------- /cli/deps.js: -------------------------------------------------------------------------------- 1 | export * as path from 'https://deno.land/std@0.217.0/path/mod.ts'; 2 | export { copy, exists, existsSync, walkSync } from 'https://deno.land/std@0.217.0/fs/mod.ts'; 3 | export { parse } from 'https://deno.land/std@0.217.0/flags/mod.ts'; 4 | export { serve } from "https://deno.land/std@0.217.0/http/server.ts"; 5 | export { serveFile } from "https://deno.land/std@0.217.0/http/file_server.ts"; 6 | export { bundle } from "https://deno.land/x/emit@0.38.1/mod.ts"; 7 | -------------------------------------------------------------------------------- /cli/editor.js: -------------------------------------------------------------------------------- 1 | // Functions to generate or serve the Teasynth editor as a static website. 2 | 3 | import { serve, serveFile, copy, exists, walkSync, path } from './deps.js'; 4 | import { path2proj } from './build.js'; 5 | 6 | const join = path.join; 7 | 8 | const req2jsonObj = async (reqPath, config) => { 9 | // remove trailing '/project.json' 10 | const key = reqPath.slice(0, -13) || '/'; 11 | const localPath = config.projects[key]; 12 | if (!localPath) { 13 | console.log(`Requested missing key: ${key}`); 14 | return; 15 | } 16 | if (!await exists(localPath)) { 17 | console.log(`Could not find project: ${key} -> ${localPath}`); 18 | return; 19 | } 20 | const proj = path2proj(localPath); 21 | return proj.toJsonObj(); 22 | }; 23 | 24 | const scaredCopy = async (src, dst, yes) => { 25 | if (yes) { 26 | console.log(`Copying ${src} to ${dst}`); 27 | } else { 28 | console.log('From: ' + src); 29 | console.log('To: ' + dst); 30 | const answer = prompt('Copy? (y/n)'); 31 | if (answer !== 'y') Deno.exit(); 32 | } 33 | await copy(src, dst, { overwrite: true }); 34 | }; 35 | 36 | export const readConfig = async (args, teaDir) => { 37 | const configPath = args['config'] ?? join(teaDir, 'cli/config.default.json'); 38 | const configDir = path.dirname(configPath); 39 | const config = JSON.parse(await Deno.readTextFile(configPath)); 40 | if (args['config']) { 41 | console.log('Loaded config:'); 42 | console.dir(config); 43 | } 44 | for (let [urlPath, localPath] of Object.entries(config.projects)) { 45 | if (!localPath.startsWith('/')) { 46 | config.projects[urlPath] = join(configDir, localPath); 47 | } 48 | } 49 | return config; 50 | }; 51 | 52 | export const serveEditor = (config, teaDir) => { 53 | const handler = async req => { 54 | const reqPath = new URL(req.url).pathname; 55 | let fsPath; 56 | if (reqPath.endsWith('/project.json')) { 57 | const obj = await req2jsonObj(reqPath, config); 58 | if (obj) return new Response( 59 | JSON.stringify(obj), 60 | { 'Content-Type': 'application/json' } 61 | ); 62 | } else if (reqPath.startsWith('/editor-js') || reqPath.startsWith('/core')) { 63 | fsPath = join(teaDir, reqPath); 64 | } else { 65 | fsPath = join(teaDir, 'editor-static', reqPath); 66 | } 67 | if (reqPath === '/' || !fsPath || !await exists(fsPath)) { 68 | fsPath = join(teaDir, 'editor-static/index.html'); 69 | } 70 | const response = await serveFile(req, fsPath); 71 | return response; 72 | }; 73 | console.log('Serving Teasynth at: http://localhost:8000/'); 74 | serve(handler, { port: 8000 }); 75 | }; 76 | 77 | const replaceInFile = (filePath, search, replace) => { 78 | let contents = Deno.readTextFileSync(filePath); 79 | contents = contents.replace(search, replace); 80 | Deno.writeTextFileSync(filePath, contents); 81 | }; 82 | 83 | export const generateEditor = async (config, teaDir, outDir, yes) => { 84 | await Deno.mkdir(outDir, { recursive: true }); 85 | await scaredCopy(join(teaDir, 'editor-static'), outDir, yes); 86 | await scaredCopy(join(teaDir, 'editor-js'), join(outDir, 'editor-js'), yes); 87 | await scaredCopy(join(teaDir, 'core'), join(outDir, 'core'), yes); 88 | const versionStr = ' Version ' + new Date().toISOString().split('T')[0]; 89 | for (let [urlPath, srcPath] of Object.entries(config.projects)) { 90 | if (!await exists(srcPath)) return console.log('Could not find ' + srcPath); 91 | await Deno.mkdir(join(outDir, urlPath), { recursive: true }); 92 | const dstPath = join(outDir, urlPath, 'project.json'); 93 | const proj = path2proj(srcPath); 94 | if (yes) { 95 | console.log('Writing to ' + dstPath); 96 | } else { 97 | console.log('To: ' + dstPath); 98 | const answer = prompt('Write? (y/n)'); 99 | if (answer !== 'y') Deno.exit(); 100 | } 101 | let projStr = JSON.stringify(proj.toJsonObj()); 102 | projStr = projStr.replace(' Served from CLI', versionStr); 103 | Deno.writeTextFileSync(dstPath, projStr); 104 | } 105 | if (config.pwa) { 106 | const paths = []; 107 | const sep = path.SEPARATOR; 108 | for (const entry of walkSync(outDir)) { 109 | if (!entry.isFile) continue; 110 | let rel = path.relative(outDir, entry.path); 111 | if (rel === 'index.html') rel = '' 112 | if (sep !== '/') rel = rel.replaceAll(sep, '/'); 113 | paths.push('./' + rel); 114 | } 115 | const svcPath = join(outDir, 'importctrl.js'); 116 | const nameDummy = 'cache name gets generated here'; 117 | const pathsDummy = '[/*cached paths get generated here*/]'; 118 | const manifDummy = ''; 119 | replaceInFile(svcPath, nameDummy, 'teacache_'+Date.now()); 120 | replaceInFile(svcPath, pathsDummy, JSON.stringify(paths, null, ' ')); 121 | replaceInFile(join(outDir, 'index.html'), manifDummy, ''); 122 | } else { 123 | Deno.removeSync(join(outDir, 'manifest.json')); 124 | } 125 | }; -------------------------------------------------------------------------------- /cli/render.js: -------------------------------------------------------------------------------- 1 | import { path, exists } from './deps.js'; 2 | import { compileFaust } from '../core/faustCompiler.js'; 3 | 4 | const findHostPath = async startPath => { 5 | while(startPath.length > 1) { 6 | startPath = path.dirname(startPath); 7 | if (await exists(path.join(startPath, 'host.js'))) { 8 | return path.join(startPath, 'host.js'); 9 | } 10 | } 11 | }; 12 | 13 | const importFile = async (filePath, bustCache) => { 14 | filePath = path.toFileUrl(path.resolve(filePath)).href; 15 | if (bustCache) filePath +='?id='+(Math.random().toString(36).substring(7)); 16 | return await import(filePath); 17 | }; 18 | 19 | /** 20 | * Load a teasynth patch. Note that you can only have a single patch loaded at a 21 | * time. Once you switch patches, you can't go back to the previous one. Using 22 | * multiple threads or processes is currenly the only way around this. 23 | */ 24 | export const loadPatch = async mainPath => { 25 | const hostPath = await findHostPath(mainPath); 26 | if (!hostPath) throw new Error('could not find host.js'); 27 | const hostMod = await importFile(hostPath); 28 | const mainHost = hostMod.mainHost; 29 | const mainMod = await importFile(mainPath, true); 30 | mainHost.fetchMainRelative = async fetchPath => { 31 | fetchPath = path.join(mainPath, '..', fetchPath); 32 | return await Deno.readTextFile(fetchPath); 33 | }; 34 | mainHost.compileFaust = async (code, internalMemory) => { 35 | const comp = await compileFaust(code, internalMemory); 36 | return { ui8Code: comp.ui8Code, dspMeta: comp.dspMeta }; 37 | }; 38 | let process = mainMod.process; 39 | if (mainMod.instantiate) { 40 | process = await mainMod.instantiate(); 41 | } 42 | await mainHost.init(); 43 | return { 44 | setParams(vals) { 45 | for (let [name, val] of Object.entries(vals)) { 46 | if (!(name in mainHost.params)) throw new Error('No param '+name); 47 | mainHost.params[name].setFn(parseFloat(val)); 48 | } 49 | }, 50 | host: mainHost, 51 | process 52 | }; 53 | }; 54 | 55 | export const parseParamArgs = args => { 56 | const ret = {}; 57 | for (let [name, val] of Object.entries(args)) { 58 | if (!name.startsWith('p-')) continue; 59 | ret[name.slice(2)] = val; 60 | } 61 | return ret; 62 | }; 63 | 64 | const copyAmp = (src, tgt, amp) => { 65 | for (let i=0; i { 71 | const bufFrames = 2048; 72 | const sr = 44100; 73 | const buf = new Float32Array(bufFrames*2); 74 | const buf2 = new Float32Array(bufFrames*2); 75 | const bufView = new Uint8Array(buf.buffer); 76 | const bufView2 = new Uint8Array(buf2.buffer); 77 | const pipes = new Set(); 78 | const xf = x => -1 * Math.pow(-0.5 * Math.cos((x + 1)*Math.PI) + 0.5, 1.772) + 1; 79 | return { 80 | async addOutput(outPath) { 81 | const ext = outPath.split('.').at(-1); 82 | const cmd = ['ffmpeg', '-y', '-f', 'f32le', '-channels', '2', '-i', 'pipe:0']; 83 | if (ext === 'mp3') cmd.push('-b:a', '192k'); 84 | cmd.push(outPath); 85 | const ret = Deno.run({ cmd, stdin: 'piped', stderr: 'piped' }); 86 | pipes.add(ret); 87 | return ret; 88 | }, 89 | async removeOutput(p) { 90 | p.stdin.close(); 91 | await p.status(); 92 | p.close(); 93 | pipes.delete(p); 94 | }, 95 | async render(dur) { 96 | for (let i=0; i { 118 | const ret = xf(pipe.xfPos); 119 | pipe.xfPos += bufFrames/(sr*dur); 120 | if (pipe.xfPos > 1) { 121 | delete pipe.xf; 122 | } 123 | return ret; 124 | } 125 | }, 126 | fadeOut(pipe, dur) { 127 | dur *= 1.01; 128 | pipe.xfPos = 1; 129 | pipe.xf = () => { 130 | const ret = xf(pipe.xfPos); 131 | pipe.xfPos -= bufFrames/(sr*dur); 132 | if (pipe.xfPos < 0) { 133 | delete pipe.xf; 134 | } 135 | return ret; 136 | } 137 | }, 138 | } 139 | }; -------------------------------------------------------------------------------- /cli/rendermacro.js: -------------------------------------------------------------------------------- 1 | import { MultiRenderer } from './multirender.js'; 2 | import { offlineInit, macroEvents, playUpToStamp } from '../core/macro.js'; 3 | import { path } from './deps.js'; 4 | 5 | export const renderMacro = async (projDir, macroPath, outPath) => { 6 | 7 | const content = await Deno.readTextFile(macroPath); 8 | const lines = content.split('\n'); 9 | const r = new MultiRenderer(); 10 | 11 | // i think the web version reuses params from oldPatch 12 | // todo make this more consistent between versions 13 | macroEvents.startPatch = (patchName, params, oldPatch) => { 14 | const paramObj = {}; 15 | for (const p of params) paramObj[p.name] = p.valStr; 16 | const mainPath = path.join(projDir, patchName, 'main.js'); 17 | return r.addPatch(mainPath, paramObj); 18 | }; 19 | macroEvents.tweakPatch = (cmdPatch, param) => { 20 | if (!cmdPatch) throw new Error('no such patch.'); 21 | r.tweakPatch(cmdPatch, { [param.name]: param.valStr }); 22 | }; 23 | macroEvents.stopPatch = (cmdPatch) => { 24 | if (!cmdPatch) throw new Error('no such patch.'); 25 | r.removePatch(cmdPatch); 26 | }; 27 | macroEvents.setHighlight = (file, lineNum) => { 28 | console.log(lines[lineNum-1]); 29 | }; 30 | console.log('\nrendering track: ' + path.basename(macroPath)); 31 | const perfStart = performance.now(); 32 | const outHandle = await r.addOutput(outPath); 33 | let nowStamp = 0; 34 | offlineInit(); 35 | while (true) { 36 | const nextStamp = playUpToStamp(content, nowStamp); 37 | if (nextStamp === Number.MAX_VALUE) { 38 | await r.removeOutput(outHandle); 39 | break; 40 | } 41 | await r.render((nextStamp - nowStamp)/1000); 42 | nowStamp = nextStamp; 43 | } 44 | const perfTime = performance.now() - perfStart; 45 | console.log('done. speed: '+(Math.round(100*nowStamp/perfTime)/100)+'x'); 46 | await r.finalize(); 47 | } -------------------------------------------------------------------------------- /core/player.js: -------------------------------------------------------------------------------- 1 | /** @type {Array.} */ 2 | const playingPatches = []; 3 | 4 | const defaultParamSpec = { 5 | name: 'unnamed param?', 6 | min: 0, 7 | max: 1, 8 | def: 0 9 | }; 10 | 11 | export class PlayingPatch { 12 | constructor({url, processorName, callbacks, audioContext, initParams={}}) { 13 | this.url = url; 14 | this.processorName = processorName; 15 | this.callbacks = callbacks; 16 | this.initParams = initParams; 17 | this.audioContext = audioContext; 18 | } 19 | async init() { 20 | await this.audioContext.audioWorklet.addModule(this.url); 21 | const node = new AudioWorkletNode(this.audioContext, this.processorName, { 22 | numberOfInputs: 0, 23 | outputChannelCount: [2] 24 | }); 25 | this.node = node; 26 | node.onprocessorerror = error => { 27 | console.log('got to rare processor error'); 28 | throw error; 29 | }; 30 | const playResult = {}; 31 | this.playResult = playResult; 32 | this.paramSpecs = []; 33 | const rcvHostCmd = async data => { 34 | const resp = {type: 'hostResp', cmdId: data.cmdId}; 35 | if (data.cmd === 'fetchMainRelative') { 36 | resp.content = await this.callbacks.fetchMainRelative(data.path); 37 | } else if (data.cmd === 'compileFaust') { 38 | const ret = await this.callbacks.compileFaust(data.code, data.internalMemory); 39 | [resp.ui8Code, resp.dspMeta] = ret; 40 | } else if (data.cmd === 'defineParams') { 41 | this.paramSpecs = data.paramSpecs.map(d => Object.assign( 42 | {}, defaultParamSpec, d 43 | )); 44 | } else { 45 | throw new Error('unknown host command: '+data.cmd); 46 | } 47 | node.port.postMessage(resp); 48 | } 49 | node.port.addEventListener('message', event => { 50 | if (event.data.type === 'runHostCmd') rcvHostCmd(event.data); 51 | }); 52 | await new Promise(resolve => { 53 | const readyListener = event => { 54 | if (event.data.type === 'main ready' || event.data.type === 'wrong samplerate') { 55 | node.port.removeEventListener('message', readyListener); 56 | // console.log(`Changing samplerate from ${wantRate} to ${event.data.wantRate}.`) 57 | Object.assign(playResult, event.data); 58 | resolve(); 59 | } 60 | }; 61 | node.port.addEventListener('message', readyListener); 62 | node.port.start(); 63 | node.port.postMessage({type: 'init main', initParams: this.initParams}); 64 | }); 65 | } 66 | postMessage(msg) { this.node.port.postMessage(msg); } 67 | setParam(name, val) { this.postMessage({type: 'set param', name, val}); } 68 | stop() { 69 | // this.node.disconnect(); 70 | this.audioContext.close(); 71 | } 72 | } 73 | 74 | const initContext = wantRate => { 75 | const audioContext = new AudioContext({sampleRate: wantRate}); // , latencyHint: 1 76 | if (audioContext.sampleRate !== wantRate) 77 | throw new Error(`Tried to set samplerate to ${wantRate}, got ${audioContext.sampleRate} instead.`); 78 | console.log('Base latency: '+(Math.floor(audioContext.baseLatency*1000)/1000)); 79 | return audioContext; 80 | }; 81 | 82 | export const createPatch = async ({url, processorName, callbacks, initParams, wantRate=44100}) => { 83 | let audioContext = initContext(wantRate); 84 | const ret = new PlayingPatch({url, processorName, callbacks, audioContext, initParams}); 85 | await ret.init(); 86 | if (ret.playResult.type === 'wrong samplerate') { 87 | audioContext.close(); 88 | audioContext = initContext(ret.playResult.wantRate); 89 | ret.audioContext = audioContext; 90 | await ret.init(); 91 | } 92 | if (ret.playResult.type !== 'main ready') throw new Error('Error adding node: '+processorName); 93 | ret.node.connect(audioContext.destination); 94 | playingPatches.push(ret); 95 | return ret; 96 | }; 97 | 98 | /** 99 | * @param {PlayingPatch} patch 100 | */ 101 | export const removePatch = (patch, cleanContext=false) => { 102 | patch.stop(); 103 | playingPatches.splice(playingPatches.indexOf(patch), 1); 104 | // if (cleanContext && audioContext && !playingPatches.length) { 105 | // audioContext.close(); 106 | // audioContext = undefined; 107 | // } 108 | }; 109 | -------------------------------------------------------------------------------- /core/worklet.js: -------------------------------------------------------------------------------- 1 | 2 | export const makeWorklet = (mainUrl, hostUrl, processorName) => ` 3 | import * as mainModule from '${mainUrl}'; 4 | import { mainHost } from '${hostUrl}'; 5 | 6 | const runHostCmd = (port, data) => new Promise(resolve => { 7 | const cmdId = Math.random().toString(36).substring(7); 8 | const msgListener = event => { 9 | if (event.data.type !== 'hostResp' || event.data.cmdId !== cmdId) return; 10 | port.removeEventListener('message', msgListener); 11 | resolve(event.data); 12 | }; 13 | port.addEventListener('message', msgListener); 14 | port.start(); 15 | data.type = 'runHostCmd'; 16 | data.cmdId = cmdId; 17 | port.postMessage(data); 18 | }); 19 | 20 | let firstFrame, canFill = false; 21 | let processFrame = () => { 22 | throw new Error('i suck, ep.1'); 23 | }; 24 | let frame2channels = (frame, channels, i) => { 25 | throw new Error('i suck, ep.2'); 26 | }; 27 | let cruiseChannels = (channels, i) => { 28 | frame2channels(processFrame(), channels, i); 29 | }; 30 | let fillChannels = (channels, i) => { 31 | if (!canFill) { 32 | channels[0][i] = 0; 33 | channels[1][i] = 0; 34 | return; 35 | } 36 | frame2channels(firstFrame, channels, i); 37 | fillChannels = cruiseChannels; 38 | }; 39 | 40 | const init = async (port, data) => { 41 | const wantRate = mainModule.sampleRate ?? 44100; 42 | if (wantRate !== sampleRate) { 43 | port.postMessage({type: 'wrong samplerate', wantRate}); 44 | return; 45 | } 46 | mainHost.sampleRate = sampleRate; 47 | mainHost.fetchMainRelative = async path => { 48 | const resp = await runHostCmd(port, {cmd: 'fetchMainRelative', path}); 49 | return resp.content; 50 | }; 51 | mainHost.compileFaust = async (code, internalMemory) => { 52 | return await runHostCmd(port, {cmd: 'compileFaust', code, internalMemory}); 53 | }; 54 | processFrame = mainModule.process ?? await mainModule.instantiate(); 55 | await mainHost.init(); 56 | const paramSpecs = []; 57 | for (let name of Object.keys(mainHost.params)) { 58 | const param = mainHost.params[name]; 59 | paramSpecs.push({...param, name, setFn: false}); 60 | const ip = data.initParams[name]; 61 | if (ip !== undefined && param.min <= ip && ip <= param.max ) { 62 | param.setFn(ip); 63 | } 64 | } 65 | await runHostCmd(port, {cmd: 'defineParams', paramSpecs}); 66 | firstFrame = processFrame(); 67 | if (typeof firstFrame === 'number') { 68 | frame2channels = (frame, channels, i) => { 69 | channels[0][i] = frame; 70 | channels[1][i] = frame; 71 | } 72 | } else if (firstFrame.length === 1) { 73 | frame2channels = (frame, channels, i) => { 74 | channels[0][i] = frame[0]; 75 | channels[1][i] = frame[0]; 76 | } 77 | } else if (firstFrame.length === 2) { 78 | frame2channels = (frame, channels, i) => { 79 | channels[0][i] = frame[0]; 80 | channels[1][i] = frame[1]; 81 | } 82 | } else throw new Error('process returned '+firstFrame+' ('+(typeof firstFrame)+')! ' 83 | +'It should return a number or an array of one or two numbers! ' 84 | ); 85 | canFill = true; 86 | port.addEventListener('message', event => { 87 | if (event.data.type !== 'set param') return; 88 | if (!(event.data.name in mainHost.params)) return; 89 | mainHost.params[event.data.name].setFn(parseFloat(event.data.val)); 90 | }); 91 | port.addEventListener('message', event => { 92 | if (event.data.type === 'hostResp') return; 93 | if (!mainHost.events) return; 94 | mainHost.events.trigger(event.data.type, event.data); 95 | }); 96 | port.postMessage({type: 'main ready'}); 97 | }; 98 | 99 | class MainProcessor extends AudioWorkletProcessor { 100 | constructor(options) { 101 | super(options); 102 | this.port.onmessage = event => { 103 | if (event.data.type === 'init main') { 104 | init(this.port, event.data); 105 | } 106 | } 107 | } 108 | process(inputs, outputs, parameters) { 109 | // performance.now is not available in worklets. 110 | const t0 = Date.now(); 111 | const channels = outputs[0]; 112 | // Chrome 121+ initially calls process with 0 output channels (and 0 inputs) 113 | // Perhaps it is a meditation on the emptiness of life's purpose. 114 | // What can we do but return as if we had processed something? 115 | if (!channels.length) return true; 116 | for (let i=0; i { 7 | currentDirHandle = await window.showDirectoryPicker(); 8 | const visit = async (projDir, fsDir) => { 9 | for await (const entry of fsDir.values()) { 10 | if (entry.kind === 'file') { 11 | const file = await entry.getFile(); 12 | const content = await file.text(); 13 | projDir.addChild(new ProjFile(entry.name, content)); 14 | } else if (entry.kind === 'directory') { 15 | await visit(projDir.addChild(new ProjDir(entry.name)), entry); 16 | } else { 17 | console.log('unknown fs entry kind: '+kind); 18 | } 19 | } 20 | } 21 | const proj = new Project(currentDirHandle.name); 22 | await visit(proj.root, currentDirHandle); 23 | return proj; 24 | }; 25 | 26 | const deleteEntry = (fsDir, entry) => { 27 | if (entry.kind === 'directory') { 28 | fsDir.removeEntry(entry.name, { recursive: true }); 29 | } else { 30 | fsDir.removeEntry(entry.name); 31 | } 32 | }; 33 | 34 | export const fsSave = async proj => { 35 | if (!currentDirHandle) throw new Error('Nowhere to save!'); 36 | console.log('Saving...') 37 | if ((await currentDirHandle.queryPermission({mode: 'readwrite'})) !== 'granted') { 38 | if ((await currentDirHandle.requestPermission({mode: 'readwrite'})) !== 'granted') { 39 | throw new Error("Couldn't get permission to write to "+currentDirHandle.name); 40 | } 41 | } 42 | let numCreated = 0, numDeleted = 0; 43 | /** @param {ProjDir} projParent */ 44 | const visit = async (projParent, fsDir) => { 45 | let projChildren = [...projParent.children]; 46 | for await (const fsEntry of fsDir.values()) { 47 | const projChild = projChildren.find(f => f.name === fsEntry.name); 48 | if (!projChild) { 49 | // FS file not present in VFS: delete it 50 | numDeleted++; 51 | deleteEntry(fsDir, fsEntry); 52 | continue; 53 | } 54 | if (projChild.isDir !== (fsEntry.kind === 'directory')) { 55 | // wrong type (directory / non-directory): delete it and keep it in missing files 56 | numDeleted++; 57 | deleteEntry(fsDir, fsEntry); 58 | continue; 59 | } 60 | if (fsEntry.kind === 'directory') { 61 | // directory with correct name: iterate it and remove it from missing files 62 | await visit(projChild, fsEntry); 63 | projChildren = projChildren.filter(f => f !== projChild); 64 | } else if (fsEntry.kind === 'file') { 65 | // file with correct name: check content 66 | const file = await fsEntry.getFile(); 67 | const content = await file.text(); 68 | if (content === projChild.content) { 69 | // file content correct: remove it from missing files 70 | projChildren = projChildren.filter(f => f !== projChild); 71 | } else { 72 | // file content changed: delete it and keep it in missing files 73 | numDeleted++; 74 | deleteEntry(fsDir, fsEntry); 75 | } 76 | } else { 77 | console.log('unknown fs entry kind: '+kind); 78 | } 79 | } 80 | // projChildren now only contains missing files 81 | for (const projChild of projChildren) { 82 | if (projChild.isDir) { 83 | // Missing directory: create and iterate it 84 | numCreated++; 85 | const newFsDir = await fsDir.getDirectoryHandle(projChild.name, {create: true}); 86 | await visit(projChild, newFsDir); 87 | } else { 88 | // Missing non-directory: create and write to it 89 | numCreated++; 90 | const newFsEntry = await fsDir.getFileHandle(projChild.name, {create: true}); 91 | const writable = await newFsEntry.createWritable(); 92 | await writable.write(projChild.content); 93 | await writable.close(); 94 | } 95 | } 96 | } 97 | await visit(proj.root, currentDirHandle); 98 | console.log(`Save successful. Deleted: ${numDeleted}, created: ${numCreated}`); 99 | }; 100 | 101 | export const fsSaveAs = async proj => { 102 | const parentDirHandle = await window.showDirectoryPicker(); 103 | if ((await parentDirHandle.queryPermission({mode: 'readwrite'})) !== 'granted') { 104 | if ((await parentDirHandle.requestPermission({mode: 'readwrite'})) !== 'granted') { 105 | throw new Error("Couldn't get permission to write to "+parentDirHandle.name); 106 | } 107 | } 108 | currentDirHandle = await parentDirHandle.getDirectoryHandle(proj.name, {create: true}); 109 | fsSave(proj); 110 | }; 111 | 112 | export const canSave = () => currentDirHandle; -------------------------------------------------------------------------------- /editor-js/lib/faust/libraries/all.lib: -------------------------------------------------------------------------------- 1 | //##################################### all.lib ########################################## 2 | // The purpose of this library is to give access to all the Faust standard libraries 3 | // from a single point. 4 | //######################################################################################## 5 | 6 | import("aanl.lib"); 7 | import("analyzers.lib"); 8 | import("basics.lib"); 9 | import("compressors.lib"); 10 | import("delays.lib"); 11 | import("demos.lib"); 12 | import("dx7.lib"); 13 | import("envelopes.lib"); 14 | import("fds.lib"); 15 | import("filters.lib"); 16 | import("hoa.lib"); 17 | import("interpolators.lib"); 18 | import("maths.lib"); 19 | import("mi.lib"); 20 | import("misceffects.lib"); 21 | import("oscillators.lib"); 22 | import("noises.lib"); 23 | import("phaflangers.lib"); 24 | import("physmodels.lib"); 25 | import("quantizers.lib"); 26 | import("reducemaps.lib"); 27 | import("reverbs.lib"); 28 | import("routes.lib"); 29 | import("signals.lib"); 30 | import("soundfiles.lib"); 31 | import("spats.lib"); 32 | import("synths.lib"); 33 | import("vaeffects.lib"); 34 | import("version.lib"); 35 | import("wdmodels.lib"); 36 | import("webaudio.lib"); 37 | 38 | -------------------------------------------------------------------------------- /editor-js/lib/faust/libraries/platform.lib: -------------------------------------------------------------------------------- 1 | //#################################### platform.lib ######################################## 2 | // A library to handle platform specific code in Faust. Its official prefix is `pl`. 3 | // 4 | // #### References 5 | // * 6 | //######################################################################################## 7 | // It can be reimplemented to globally change the SR and the tablesize definitions 8 | 9 | 10 | /************************************************************************ 11 | ************************************************************************ 12 | FAUST library file 13 | Copyright (C) 2020 GRAME, Centre National de Creation Musicale 14 | ---------------------------------------------------------------------- 15 | This program is free software; you can redistribute it and/or modify 16 | it under the terms of the GNU Lesser General Public License as 17 | published by the Free Software Foundation; either version 2.1 of the 18 | License, or (at your option) any later version. 19 | 20 | This program is distributed in the hope that it will be useful, 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 | GNU Lesser General Public License for more details. 24 | 25 | You should have received a copy of the GNU Lesser General Public 26 | License along with the GNU C Library; if not, write to the Free 27 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 28 | 02111-1307 USA. 29 | 30 | EXCEPTION TO THE LGPL LICENSE : As a special exception, you may create a 31 | larger FAUST program which directly or indirectly imports this library 32 | file and still distribute the compiled code generated by the FAUST 33 | compiler, or a modified version of this compiled code, under your own 34 | copyright and license. This EXCEPTION TO THE LGPL LICENSE explicitly 35 | grants you the right to freely choose the license for the resulting 36 | compiled code. In particular the resulting compiled code has no obligation 37 | to be LGPL or GPL. For example you are free to choose a commercial or 38 | closed source license or any other license if you decide so. 39 | ************************************************************************ 40 | ************************************************************************/ 41 | 42 | declare name "Generic Platform Library"; 43 | declare version "1.3.0"; 44 | 45 | //---------------------------------`(pl.)SR`----------------------------------- 46 | // Current sampling rate (between 1 and 192000Hz). Constant during 47 | // program execution. 48 | //----------------------------------------------------------------------------- 49 | SR = min(192000.0, max(1.0, fconstant(int fSamplingFreq, ))); 50 | 51 | //---------------------------------`(pl.)BS`--------------------------------------- 52 | // Current block-size (between 1 and 16384 frames). Can change during the execution. 53 | //----------------------------------------------------------------------------- 54 | BS = min(16384.0, max(1.0, fvariable(int count, ))); 55 | 56 | //---------------------------------`(pl.)tablesize`---------------------------- 57 | // Oscillator table size 58 | //----------------------------------------------------------------------------- 59 | tablesize = 1 << 16; 60 | -------------------------------------------------------------------------------- /editor-js/lib/faust/libraries/sf.lib: -------------------------------------------------------------------------------- 1 | /* 2 | sf.lib - aliases all prefixes to sf = all.lib, so that both old and new prefixes can be mixed. 3 | 4 | USAGE: 5 | 6 | import("sf.lib"); // use either standard prefixes or the one prefix "sf" 7 | 8 | The Faust team is committed to unique names for standard Faust 9 | functions, allowing them to all be in the same namespace. 10 | Therefore, only two namespaces are needed: (1) the highest-level 11 | scope (no prefix), and (2) the Standard Faust scope, using prefix 'sf'. 12 | */ 13 | 14 | sf = library("all.lib"); // "Standard Faust" prefix 15 | 16 | //--- use old library prefixes using old libraries --- 17 | /* 18 | ml = library("old/music.lib"); 19 | fl = library("old/filter.lib"); 20 | ol = library("old/oscillator.lib"); 21 | el = library("old/effect.lib"); 22 | */ 23 | //--- use old library prefixes using new libraries --- 24 | ol = sf; 25 | fl = sf; 26 | ml = sf; 27 | el = sf; 28 | //--- new library prefixes --- 29 | an = sf; 30 | ba = sf; 31 | co = sf; 32 | de = sf; 33 | dm = sf; 34 | dx = sf; 35 | ef = sf; 36 | en = sf; 37 | fd = sf; 38 | fi = sf; 39 | ho = sf; 40 | ma = sf; 41 | os = sf; 42 | no = sf; 43 | pf = sf; 44 | pm = sf; 45 | re = sf; 46 | ro = sf; 47 | sp = sf; 48 | si = sf; 49 | so = sf; 50 | sy = sf; 51 | ve = sf; 52 | wa = sf; 53 | //----- 54 | -------------------------------------------------------------------------------- /editor-js/lib/faust/libraries/stdfaust.lib: -------------------------------------------------------------------------------- 1 | //################################ stdfaust.lib ########################################## 2 | // The purpose of this library is to give access to all the Faust standard libraries 3 | // through a series of environments. 4 | //######################################################################################## 5 | 6 | aa = library("aanl.lib"); 7 | sf = library("all.lib"); 8 | an = library("analyzers.lib"); 9 | ba = library("basics.lib"); 10 | co = library("compressors.lib"); 11 | de = library("delays.lib"); 12 | dm = library("demos.lib"); 13 | dx = library("dx7.lib"); 14 | en = library("envelopes.lib"); 15 | fd = library("fds.lib"); 16 | fi = library("filters.lib"); 17 | ho = library("hoa.lib"); 18 | it = library("interpolators.lib"); 19 | ma = library("maths.lib"); 20 | mi = library("mi.lib"); 21 | ef = library("misceffects.lib"); 22 | os = library("oscillators.lib"); 23 | no = library("noises.lib"); 24 | pf = library("phaflangers.lib"); 25 | pl = library("platform.lib"); 26 | pm = library("physmodels.lib"); 27 | qu = library("quantizers.lib"); 28 | rm = library("reducemaps.lib"); 29 | re = library("reverbs.lib"); 30 | ro = library("routes.lib"); 31 | sp = library("spats.lib"); 32 | si = library("signals.lib"); 33 | so = library("soundfiles.lib"); 34 | sy = library("synths.lib"); 35 | ve = library("vaeffects.lib"); 36 | vl = library("version.lib"); 37 | wa = library("webaudio.lib"); 38 | wd = library("wdmodels.lib"); 39 | -------------------------------------------------------------------------------- /editor-js/lib/faust/libraries/version.lib: -------------------------------------------------------------------------------- 1 | //################################ version.lib ########################################## 2 | // Semantic versioning for the Faust libraries. Its official prefix is `vl`. 3 | // 4 | // #### References 5 | // * 6 | //######################################################################################## 7 | 8 | //---------------------------`(vl.)version`--------------------------- 9 | // Return the version number of the Faust standard libraries as a MAJOR, MINOR, PATCH versioning triplet. 10 | // 11 | // #### Usage 12 | // 13 | // ``` 14 | // version : _,_,_ 15 | // ``` 16 | // 17 | //------------------------------------------------------------ 18 | version = 2, // MAJOR version when we make incompatible API changes, 19 | 18, // MINOR version when we add functionality in a backwards compatible manner, 20 | 1; // PATCH version when we make backwards compatible bug fixes. 21 | 22 | 23 | -------------------------------------------------------------------------------- /editor-js/lib/mithrilModule.js: -------------------------------------------------------------------------------- 1 | import './mithril.min.js'; 2 | 3 | export const m = window.m; -------------------------------------------------------------------------------- /editor-js/lib/monaco/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 - present Microsoft Corporation 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min-maps/vs/base/common/worker/simpleWorker.nls.de.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["out-editor/vs/base/common/worker/simpleWorker.nls.de.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/base/common/worker/simpleWorker.nls.de\", {\n\t\"vs/base/common/platform\": [\n\t\t\"_\",\n\t]\n});"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+DAOA,OAAO,4CAA6C,CACnD,0BAA2B,CAC1B,GACD,CACD,CAAC","names":[],"file":"simpleWorker.nls.de.js"} -------------------------------------------------------------------------------- /editor-js/lib/monaco/min-maps/vs/base/common/worker/simpleWorker.nls.es.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["out-editor/vs/base/common/worker/simpleWorker.nls.es.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/base/common/worker/simpleWorker.nls.es\", {\n\t\"vs/base/common/platform\": [\n\t\t\"_\",\n\t]\n});"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+DAOA,OAAO,4CAA6C,CACnD,0BAA2B,CAC1B,GACD,CACD,CAAC","names":[],"file":"simpleWorker.nls.es.js"} -------------------------------------------------------------------------------- /editor-js/lib/monaco/min-maps/vs/base/common/worker/simpleWorker.nls.fr.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["out-editor/vs/base/common/worker/simpleWorker.nls.fr.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/base/common/worker/simpleWorker.nls.fr\", {\n\t\"vs/base/common/platform\": [\n\t\t\"_\",\n\t]\n});"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+DAOA,OAAO,4CAA6C,CACnD,0BAA2B,CAC1B,GACD,CACD,CAAC","names":[],"file":"simpleWorker.nls.fr.js"} -------------------------------------------------------------------------------- /editor-js/lib/monaco/min-maps/vs/base/common/worker/simpleWorker.nls.it.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["out-editor/vs/base/common/worker/simpleWorker.nls.it.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/base/common/worker/simpleWorker.nls.it\", {\n\t\"vs/base/common/platform\": [\n\t\t\"_\",\n\t]\n});"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+DAOA,OAAO,4CAA6C,CACnD,0BAA2B,CAC1B,GACD,CACD,CAAC","names":[],"file":"simpleWorker.nls.it.js"} -------------------------------------------------------------------------------- /editor-js/lib/monaco/min-maps/vs/base/common/worker/simpleWorker.nls.ja.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["out-editor/vs/base/common/worker/simpleWorker.nls.ja.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/base/common/worker/simpleWorker.nls.ja\", {\n\t\"vs/base/common/platform\": [\n\t\t\"_\",\n\t]\n});"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+DAOA,OAAO,4CAA6C,CACnD,0BAA2B,CAC1B,GACD,CACD,CAAC","names":[],"file":"simpleWorker.nls.ja.js"} -------------------------------------------------------------------------------- /editor-js/lib/monaco/min-maps/vs/base/common/worker/simpleWorker.nls.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["out-editor/vs/base/common/worker/simpleWorker.nls.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\n/*---------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n *--------------------------------------------------------*/\ndefine(\"vs/base/common/worker/simpleWorker.nls\", {\n\t\"vs/base/common/platform\": [\n\t\t\"_\"\n\t]\n});"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+DAUA,OAAO,yCAA0C,CAChD,0BAA2B,CAC1B,GACD,CACD,CAAC","names":[],"file":"simpleWorker.nls.js"} -------------------------------------------------------------------------------- /editor-js/lib/monaco/min-maps/vs/base/common/worker/simpleWorker.nls.ko.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["out-editor/vs/base/common/worker/simpleWorker.nls.ko.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/base/common/worker/simpleWorker.nls.ko\", {\n\t\"vs/base/common/platform\": [\n\t\t\"_\",\n\t]\n});"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+DAOA,OAAO,4CAA6C,CACnD,0BAA2B,CAC1B,GACD,CACD,CAAC","names":[],"file":"simpleWorker.nls.ko.js"} -------------------------------------------------------------------------------- /editor-js/lib/monaco/min-maps/vs/base/common/worker/simpleWorker.nls.ru.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["out-editor/vs/base/common/worker/simpleWorker.nls.ru.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/base/common/worker/simpleWorker.nls.ru\", {\n\t\"vs/base/common/platform\": [\n\t\t\"_\",\n\t]\n});"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+DAOA,OAAO,4CAA6C,CACnD,0BAA2B,CAC1B,GACD,CACD,CAAC","names":[],"file":"simpleWorker.nls.ru.js"} -------------------------------------------------------------------------------- /editor-js/lib/monaco/min-maps/vs/base/common/worker/simpleWorker.nls.zh-cn.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["out-editor/vs/base/common/worker/simpleWorker.nls.zh-cn.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/base/common/worker/simpleWorker.nls.zh-cn\", {\n\t\"vs/base/common/platform\": [\n\t\t\"_\",\n\t]\n});"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+DAOA,OAAO,+CAAgD,CACtD,0BAA2B,CAC1B,GACD,CACD,CAAC","names":[],"file":"simpleWorker.nls.zh-cn.js"} -------------------------------------------------------------------------------- /editor-js/lib/monaco/min-maps/vs/base/common/worker/simpleWorker.nls.zh-tw.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["out-editor/vs/base/common/worker/simpleWorker.nls.zh-tw.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/base/common/worker/simpleWorker.nls.zh-tw\", {\n\t\"vs/base/common/platform\": [\n\t\t\"_\",\n\t]\n});"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+DAOA,OAAO,+CAAgD,CACtD,0BAA2B,CAC1B,GACD,CACD,CAAC","names":[],"file":"simpleWorker.nls.zh-tw.js"} -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pac-dev/Teasynth/c100e74e3d5857f1549b2ebe446b9545967e81c4/editor-js/lib/monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/common/worker/simpleWorker.nls.de.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls.de",{"vs/base/common/platform":["_"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.de.js.map -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/common/worker/simpleWorker.nls.es.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls.es",{"vs/base/common/platform":["_"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.es.js.map -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/common/worker/simpleWorker.nls.fr.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls.fr",{"vs/base/common/platform":["_"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.fr.js.map -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/common/worker/simpleWorker.nls.it.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls.it",{"vs/base/common/platform":["_"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.it.js.map -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/common/worker/simpleWorker.nls.ja.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls.ja",{"vs/base/common/platform":["_"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.ja.js.map -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/common/worker/simpleWorker.nls.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls",{"vs/base/common/platform":["_"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.js.map -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/common/worker/simpleWorker.nls.ko.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls.ko",{"vs/base/common/platform":["_"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.ko.js.map -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/common/worker/simpleWorker.nls.ru.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls.ru",{"vs/base/common/platform":["_"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.ru.js.map -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/common/worker/simpleWorker.nls.zh-cn.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls.zh-cn",{"vs/base/common/platform":["_"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.zh-cn.js.map -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/base/common/worker/simpleWorker.nls.zh-tw.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/vscode/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------*/define("vs/base/common/worker/simpleWorker.nls.zh-tw",{"vs/base/common/platform":["_"]}); 7 | 8 | //# sourceMappingURL=../../../../../min-maps/vs/base/common/worker/simpleWorker.nls.zh-tw.js.map -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/apex/apex.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/apex/apex", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var i=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var d=(e,t)=>{for(var s in t)i(e,s,{get:t[s],enumerable:!0})},g=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of c(t))!l.call(e,o)&&o!==s&&i(e,o,{get:()=>t[o],enumerable:!(a=r(t,o))||a.enumerable});return e};var p=e=>g(i({},"__esModule",{value:!0}),e);var h={};d(h,{conf:()=>m,language:()=>b});var m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},u=["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"],f=e=>e.charAt(0).toUpperCase()+e.substr(1),n=[];u.forEach(e=>{n.push(e),n.push(e.toUpperCase()),n.push(f(e))});var b={defaultToken:"",tokenPostfix:".apex",keywords:n,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};return p(h);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/azcli/azcli.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/azcli/azcli", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(t,e)=>{for(var o in e)s(t,o,{get:e[o],enumerable:!0})},k=(t,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of r(e))!l.call(t,n)&&n!==o&&s(t,n,{get:()=>e[n],enumerable:!(a=i(e,n))||a.enumerable});return t};var p=t=>k(s({},"__esModule",{value:!0}),t);var d={};c(d,{conf:()=>f,language:()=>g});var f={comments:{lineComment:"#"}},g={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}};return p(d);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/bat/bat.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/bat/bat", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var n=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var g=(o,e)=>{for(var t in e)n(o,t,{get:e[t],enumerable:!0})},c=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of l(e))!i.call(o,s)&&s!==t&&n(o,s,{get:()=>e[s],enumerable:!(a=r(e,s))||a.enumerable});return o};var p=o=>c(n({},"__esModule",{value:!0}),o);var k={};g(k,{conf:()=>d,language:()=>m});var d={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},m={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>{ 8 | var moduleExports=(()=>{var r=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var g=(e,n)=>{for(var o in n)r(e,o,{get:n[o],enumerable:!0})},l=(e,n,o,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of c(n))!a.call(e,t)&&t!==o&&r(e,t,{get:()=>n[t],enumerable:!(i=s(n,t))||i.enumerable});return e};var m=e=>l(r({},"__esModule",{value:!0}),e);var y={};g(y,{conf:()=>$,language:()=>w});var p=e=>`\\b${e}\\b`,k="[_a-zA-Z]",x="[_a-zA-Z0-9]",u=p(`${k}${x}*`),d=["targetScope","resource","module","param","var","output","for","in","if","existing"],b=["true","false","null"],f="[ \\t\\r\\n]",C="[0-9]+",$={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:`:.,=}])' 9 | `,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},w={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(o,e)=>{for(var n in e)s(o,n,{get:e[n],enumerable:!0})},m=(o,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of a(e))!l.call(o,t)&&t!==n&&s(o,t,{get:()=>e[t],enumerable:!(r=i(e,t))||r.enumerable});return o};var p=o=>m(s({},"__esModule",{value:!0}),o);var u={};c(u,{conf:()=>d,language:()=>g});var d={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},g={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}};return p(u);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/coffee/coffee.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/coffee/coffee", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var l=(n,e)=>{for(var t in e)s(n,t,{get:e[t],enumerable:!0})},p=(n,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of g(e))!a.call(n,r)&&r!==t&&s(n,r,{get:()=>e[r],enumerable:!(o=i(e,r))||o.enumerable});return n};var c=n=>p(s({},"__esModule",{value:!0}),n);var m={};l(m,{conf:()=>d,language:()=>x});var d={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},x={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=>{ 8 | var moduleExports=(()=>{var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var a=(r,t)=>{for(var s in t)o(r,s,{get:t[s],enumerable:!0})},c=(r,t,s,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of u(t))!g.call(r,e)&&e!==s&&o(r,e,{get:()=>t[e],enumerable:!(n=i(t,e))||n.enumerable});return r};var q=r=>c(o({},"__esModule",{value:!0}),r);var p={};a(p,{conf:()=>f,language:()=>l});var f={brackets:[],autoClosingPairs:[],surroundingPairs:[]},l={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(i,e)=>{for(var n in e)s(i,n,{get:e[n],enumerable:!0})},g=(i,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of a(e))!l.call(i,t)&&t!==n&&s(i,t,{get:()=>e[t],enumerable:!(o=r(e,t))||o.enumerable});return i};var p=i=>g(s({},"__esModule",{value:!0}),i);var u={};c(u,{conf:()=>d,language:()=>m});var d={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},m={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","-->","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}};return p(u);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/dart/dart.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/dart/dart", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var r=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var p=(n,e)=>{for(var t in e)r(n,t,{get:e[t],enumerable:!0})},g=(n,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of c(e))!a.call(n,o)&&o!==t&&r(n,o,{get:()=>e[o],enumerable:!(s=i(e,o))||s.enumerable});return n};var l=n=>g(r({},"__esModule",{value:!0}),n);var x={};p(x,{conf:()=>d,language:()=>m});var d={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},m={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}};return l(x);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/dockerfile/dockerfile.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/dockerfile/dockerfile", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var p=(o,e)=>{for(var s in e)a(o,s,{get:e[s],enumerable:!0})},g=(o,e,s,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of r(e))!i.call(o,n)&&n!==s&&a(o,n,{get:()=>e[n],enumerable:!(t=l(e,n))||t.enumerable});return o};var c=o=>g(a({},"__esModule",{value:!0}),o);var k={};p(k,{conf:()=>u,language:()=>d});var u={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},d={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}};return c(k);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/flow9/flow9.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/flow9/flow9", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(o,e)=>{for(var t in e)s(o,t,{get:e[t],enumerable:!0})},m=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of a(e))!l.call(o,n)&&n!==t&&s(o,n,{get:()=>e[n],enumerable:!(i=r(e,n))||i.enumerable});return o};var p=o=>m(s({},"__esModule",{value:!0}),o);var u={};c(u,{conf:()=>g,language:()=>f});var g={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},f={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}};return p(u);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/fsharp/fsharp.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/fsharp/fsharp", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(n,e)=>{for(var o in e)s(n,o,{get:e[o],enumerable:!0})},g=(n,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of a(e))!l.call(n,t)&&t!==o&&s(n,t,{get:()=>e[t],enumerable:!(i=r(e,t))||i.enumerable});return n};var f=n=>g(s({},"__esModule",{value:!0}),n);var d={};c(d,{conf:()=>m,language:()=>u});var m={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},u={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}};return f(d);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/go/go.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/go/go", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var m=(n,e)=>{for(var t in e)s(n,t,{get:e[t],enumerable:!0})},l=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of a(e))!c.call(n,o)&&o!==t&&s(n,o,{get:()=>e[o],enumerable:!(r=i(e,o))||r.enumerable});return n};var g=n=>l(s({},"__esModule",{value:!0}),n);var d={};m(d,{conf:()=>p,language:()=>u});var p={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},u={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}};return g(d);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/graphql/graphql.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/graphql/graphql", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(n,e)=>{for(var t in e)s(n,t,{get:e[t],enumerable:!0})},d=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of i(e))!l.call(n,o)&&o!==t&&s(n,o,{get:()=>e[o],enumerable:!(r=a(e,o))||r.enumerable});return n};var p=n=>d(s({},"__esModule",{value:!0}),n);var u={};c(u,{conf:()=>g,language:()=>I});var g={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},I={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}};return p(u);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/hcl/hcl.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/hcl/hcl", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var r=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var o in e)r(t,o,{get:e[o],enumerable:!0})},d=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of i(e))!c.call(t,s)&&s!==o&&r(t,s,{get:()=>e[s],enumerable:!(n=a(e,s))||n.enumerable});return t};var m=t=>d(r({},"__esModule",{value:!0}),t);var f={};l(f,{conf:()=>p,language:()=>g});var p={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},g={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}};return m(f);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/ini/ini.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/ini/ini", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var c=(n,e)=>{for(var s in e)t(n,s,{get:e[s],enumerable:!0})},l=(n,e,s,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of r(e))!g.call(n,o)&&o!==s&&t(n,o,{get:()=>e[o],enumerable:!(a=i(e,o))||a.enumerable});return n};var p=n=>l(t({},"__esModule",{value:!0}),n);var f={};c(f,{conf:()=>u,language:()=>m});var u={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},m={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};return p(f);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/java/java.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/java/java", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var o in e)s(t,o,{get:e[o],enumerable:!0})},d=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of r(e))!c.call(t,n)&&n!==o&&s(t,n,{get:()=>e[n],enumerable:!(i=a(e,n))||i.enumerable});return t};var g=t=>d(s({},"__esModule",{value:!0}),t);var f={};l(f,{conf:()=>m,language:()=>p});var m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},p={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}};return g(f);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/kotlin/kotlin.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/kotlin/kotlin", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var o=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var l=(n,e)=>{for(var i in e)o(n,i,{get:e[i],enumerable:!0})},d=(n,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of r(e))!c.call(n,t)&&t!==i&&o(n,t,{get:()=>e[t],enumerable:!(s=a(e,t))||s.enumerable});return n};var g=n=>d(o({},"__esModule",{value:!0}),n);var f={};l(f,{conf:()=>m,language:()=>p});var m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},p={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}};return g(f);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/less/less.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/less/less", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var r=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var d=(t,e)=>{for(var i in e)r(t,i,{get:e[i],enumerable:!0})},u=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of a(e))!l.call(t,n)&&n!==i&&r(t,n,{get:()=>e[n],enumerable:!(o=s(e,n))||o.enumerable});return t};var c=t=>u(r({},"__esModule",{value:!0}),t);var p={};d(p,{conf:()=>m,language:()=>g});var m={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},g={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},[`[^)\r 9 | ]+`,"string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}};return c(p);})(); 10 | return moduleExports; 11 | }); 12 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/lexon/lexon.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/lexon/lexon", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var i in e)n(t,i,{get:e[i],enumerable:!0})},p=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of d(e))!a.call(t,o)&&o!==i&&n(t,o,{get:()=>e[o],enumerable:!(r=s(e,o))||r.enumerable});return t};var c=t=>p(n({},"__esModule",{value:!0}),t);var k={};l(k,{conf:()=>m,language:()=>u});var m={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},u={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}};return c(k);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/liquid/liquid.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/liquid/liquid", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var p=Object.create;var a=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty;var f=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,i)=>(typeof require!="undefined"?require:t)[i]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),T=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:!0})},r=(e,t,i,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w(t))!q.call(e,o)&&o!==i&&a(e,o,{get:()=>t[o],enumerable:!(l=g(t,o))||l.enumerable});return e},d=(e,t,i)=>(r(e,t,"default"),i&&r(i,t,"default")),s=(e,t,i)=>(i=e!=null?p(h(e)):{},r(t||!e||!e.__esModule?a(i,"default",{value:e,enumerable:!0}):i,e)),k=e=>r(a({},"__esModule",{value:!0}),e);var c=b((y,u)=>{var _=s(f("vs/editor/editor.api"));u.exports=_});var $={};T($,{conf:()=>x,language:()=>S});var n={};d(n,s(c()));var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},S={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};return k($);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/lua/lua.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/lua/lua", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(o,e)=>{for(var t in e)s(o,t,{get:e[t],enumerable:!0})},m=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of i(e))!l.call(o,n)&&n!==t&&s(o,n,{get:()=>e[n],enumerable:!(r=a(e,n))||r.enumerable});return o};var p=o=>m(s({},"__esModule",{value:!0}),o);var u={};c(u,{conf:()=>d,language:()=>g});var d={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},g={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=>{ 8 | var moduleExports=(()=>{var r=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var R=(o,e)=>{for(var s in e)r(o,s,{get:e[s],enumerable:!0})},c=(o,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of a(e))!i.call(o,t)&&t!==s&&r(o,t,{get:()=>e[t],enumerable:!(n=E(e,t))||n.enumerable});return o};var m=o=>c(r({},"__esModule",{value:!0}),o);var N={};R(N,{conf:()=>A,language:()=>p});var A={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},p={defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}};return m(N);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/markdown/markdown.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/markdown/markdown", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var o in e)s(t,o,{get:e[o],enumerable:!0})},m=(t,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!i.call(t,n)&&n!==o&&s(t,n,{get:()=>e[n],enumerable:!(a=r(e,n))||a.enumerable});return t};var d=t=>m(s({},"__esModule",{value:!0}),t);var b={};l(b,{conf:()=>p,language:()=>g});var p={comments:{blockComment:[""]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},g={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[//,"comment","@pop"],[/"),end:new RegExp("^\\s*")}}},m={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}};return p(g);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/rust/rust.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/rust/rust", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var r=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var _=(t,e)=>{for(var n in e)r(t,n,{get:e[n],enumerable:!0})},u=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of a(e))!c.call(t,o)&&o!==n&&r(t,o,{get:()=>e[o],enumerable:!(s=i(e,o))||s.enumerable});return t};var l=t=>u(r({},"__esModule",{value:!0}),t);var m={};_(m,{conf:()=>f,language:()=>p});var f={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},p={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","async","await","box","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","try","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/r(#*)"/,{token:"string.quote",bracket:"@open",next:"@stringraw.$1"}],[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'(\S|@escapes)'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringraw:[[/[^"#]+/,{token:"string"}],[/"(#*)/,{cases:{"$1==$S2":{token:"string.quote",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["#]/,{token:"string"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}};return l(m);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/sb/sb.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/sb/sb", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var r=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var d=(o,e)=>{for(var t in e)r(o,t,{get:e[t],enumerable:!0})},c=(o,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of a(e))!l.call(o,n)&&n!==t&&r(o,n,{get:()=>e[n],enumerable:!(s=i(e,n))||s.enumerable});return o};var g=o=>c(r({},"__esModule",{value:!0}),o);var m={};d(m,{conf:()=>p,language:()=>f});var p={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}};return g(m);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/scheme/scheme.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/scheme/scheme", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(o,e)=>{for(var t in e)s(o,t,{get:e[t],enumerable:!0})},m=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of i(e))!l.call(o,n)&&n!==t&&s(o,n,{get:()=>e[n],enumerable:!(a=r(e,n))||a.enumerable});return o};var p=o=>m(s({},"__esModule",{value:!0}),o);var u={};c(u,{conf:()=>d,language:()=>g});var d={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},g={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}};return p(u);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/shell/shell.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/shell/shell", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var a=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(r,e)=>{for(var i in e)a(r,i,{get:e[i],enumerable:!0})},d=(r,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of n(e))!l.call(r,t)&&t!==i&&a(r,t,{get:()=>e[t],enumerable:!(o=s(e,t))||o.enumerable});return r};var p=r=>d(a({},"__esModule",{value:!0}),r);var g={};c(g,{conf:()=>m,language:()=>u});var m={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},u={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],startingWithDash:/\-+\w+/,identifiersWithDashes:/[a-zA-Z]\w+(?:@startingWithDash)+/,symbols:/[=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var o in e)s(t,o,{get:e[o],enumerable:!0})},m=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of a(e))!c.call(t,n)&&n!==o&&s(t,n,{get:()=>e[n],enumerable:!(r=i(e,n))||r.enumerable});return t};var d=t=>m(s({},"__esModule",{value:!0}),t);var u={};l(u,{conf:()=>f,language:()=>g});var f={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},g={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}};return d(u);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/sparql/sparql.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/sparql/sparql", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var d=(s,e)=>{for(var n in e)o(s,n,{get:e[n],enumerable:!0})},c=(s,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of a(e))!l.call(s,t)&&t!==n&&o(s,t,{get:()=>e[t],enumerable:!(r=i(e,t))||r.enumerable});return s};var g=s=>c(o({},"__esModule",{value:!0}),s);var m={};d(m,{conf:()=>u,language:()=>p});var u={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"'",close:"'",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},p={defaultToken:"",tokenPostfix:".rq",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["add","as","asc","ask","base","by","clear","construct","copy","create","data","delete","desc","describe","distinct","drop","false","filter","from","graph","group","having","in","insert","limit","load","minus","move","named","not","offset","optional","order","prefix","reduced","select","service","silent","to","true","undef","union","using","values","where","with"],builtinFunctions:["a","abs","avg","bind","bnode","bound","ceil","coalesce","concat","contains","count","datatype","day","encode_for_uri","exists","floor","group_concat","hours","if","iri","isblank","isiri","isliteral","isnumeric","isuri","lang","langmatches","lcase","max","md5","min","minutes","month","now","rand","regex","replace","round","sameterm","sample","seconds","sha1","sha256","sha384","sha512","str","strafter","strbefore","strdt","strends","strlang","strlen","strstarts","struuid","substr","sum","timezone","tz","ucase","uri","uuid","year"],ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,"tag"],{include:"@strings"},[/#.*/,"comment"],[/[{}()\[\]]/,"@brackets"],[/[;,.]/,"delimiter"],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,"tag"],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,"tag"],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:"keyword"},"@builtinFunctions":{token:"predefined.sql"},"@default":"identifier"}}],[/\^\^/,"operator.sql"],[/\^[*+\-<>=&|^\/!?]*/,"operator.sql"],[/[*+\-<>=&|\/!?]/,"operator.sql"],[/@[a-z\d\-]*/,"metatag.html"],[/\s+/,"white"]],strings:[[/'([^'\\]|\\.)*$/,"string.invalid"],[/'$/,"string.sql","@pop"],[/'/,"string.sql","@stringBody"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"$/,"string.sql","@pop"],[/"/,"string.sql","@dblStringBody"]],stringBody:[[/[^\\']+/,"string.sql"],[/\\./,"string.escape"],[/'/,"string.sql","@pop"]],dblStringBody:[[/[^\\"]+/,"string.sql"],[/\\./,"string.escape"],[/"/,"string.sql","@pop"]]}};return g(m);})(); 9 | return moduleExports; 10 | }); 11 | -------------------------------------------------------------------------------- /editor-js/lib/monaco/min/vs/basic-languages/tcl/tcl.js: -------------------------------------------------------------------------------- 1 | "use strict";/*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/tcl/tcl", ["require","require"],(require)=>{ 8 | var moduleExports=(()=>{var s=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(t,e)=>{for(var o in e)s(t,o,{get:e[o],enumerable:!0})},p=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of a(e))!l.call(t,n)&&n!==o&&s(t,n,{get:()=>e[n],enumerable:!(i=r(e,n))||i.enumerable});return t};var u=t=>p(s({},"__esModule",{value:!0}),t);var g={};c(g,{conf:()=>k,language:()=>d});var k={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},d={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=>{ 8 | var moduleExports=(()=>{var u=Object.create;var m=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var f=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,n)=>(typeof require!="undefined"?require:t)[n]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),b=(e,t)=>{for(var n in t)m(e,n,{get:t[n],enumerable:!0})},i=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of p(t))!x.call(e,o)&&o!==n&&m(e,o,{get:()=>t[o],enumerable:!(r=g(t,o))||r.enumerable});return e},l=(e,t,n)=>(i(e,t,"default"),n&&i(n,t,"default")),c=(e,t,n)=>(n=e!=null?u(k(e)):{},i(t||!e||!e.__esModule?m(n,"default",{value:e,enumerable:!0}):n,e)),q=e=>i(m({},"__esModule",{value:!0}),e);var s=w((v,d)=>{var N=c(f("vs/editor/editor.api"));d.exports=N});var I={};b(I,{conf:()=>A,language:()=>C});var a={};l(a,c(s()));var A={comments:{blockComment:[""]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:a.languages.IndentAction.Indent}}]},C={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/ 14 | 15 | 16 | -------------------------------------------------------------------------------- /editor-static/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name":"Teasynth", 3 | "scope": ".", 4 | "start_url": "./", 5 | "display":"standalone", 6 | "icons":[{ 7 | "src":"teasynth_t.svg", 8 | "sizes":"192x192 512x512", 9 | "type":"image/svg+xml" 10 | }] 11 | } -------------------------------------------------------------------------------- /editor-static/teasynth_t.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /projects/startup/1-welcome/main.js: -------------------------------------------------------------------------------- 1 | /** ______ __ __ 2 | * /_ __/__ ___ ____ __ _____ / /_/ / 3 | * / / / -_) _ `(_- { 16 | // Oscillator at 300Hz: 17 | let ret = Math.sin(t * 300 * Math.PI * 2); 18 | // Modulation at 200Hz: 19 | ret *= Math.sin(t * 200 * Math.PI * 2); 20 | // Polyrhythm: 21 | for (let i = 1; i < 6; i++) { 22 | ret *= Math.sqrt(1 + (-6 * t / i) % 1); 23 | } 24 | // Distortion: 25 | ret = Math.tanh(ret * 5); 26 | // Imprecise but simple way of counting time: 27 | t += 1 / sampleRate; 28 | return [ret, ret]; 29 | }; 30 | -------------------------------------------------------------------------------- /projects/startup/host.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module to communicate with the host environment that's running the patches. 3 | * This module can be loaded both by the host and by the patches. This allows 4 | * communication and synchronization beyond the basic "process" function 5 | * exported by patches. 6 | * 7 | * In the browser, the host is an AudioWorklet. In the command line, the host is 8 | * a module loaded by Deno. These can be found in the Teasynth project, under 9 | * core/worklet.js and cli/render.js. 10 | */ 11 | 12 | /** 13 | * @typedef { 14 | * 'got host' 15 | * | 'can read files' 16 | * | 'can init faust' 17 | * | 'done faust init' 18 | * | 'can deduce channels' 19 | * | 'can make processors' 20 | * | 'can play' 21 | * | 'dispose' } HostEventType 22 | */ 23 | 24 | /** 25 | * Each patch is played by a host. It could be a web player, another patch, 26 | * or a command line player. 27 | * 28 | * @typedef { Object } Host 29 | */ 30 | 31 | /** 32 | * Get the cached contents of a file relative to the currently running main.js. 33 | * Can only be called after initialization. 34 | * 35 | * @async 36 | * @function 37 | * @name Host#getMainRelative 38 | * @param {String} path 39 | * @returns {Promise} 40 | */ 41 | 42 | /** 43 | * Fetch the contents of a file relative to the currently running main.js. 44 | * Can only be called after initialization. 45 | * 46 | * @async 47 | * @function 48 | * @name Host#fetchMainRelative 49 | * @param {String} path 50 | * @returns {Promise} 51 | */ 52 | 53 | /** 54 | * Compile Faust code to Wasm. 55 | * Can only be called after initialization. 56 | * 57 | * @async 58 | * @function 59 | * @name Host#compileFaust 60 | * @param {String} code 61 | * @param {Boolean} internalMemory 62 | * @returns {Promise} 63 | */ 64 | 65 | /** 66 | * Normal patch init. 67 | * 68 | * @async 69 | * @function 70 | * @name Host#init 71 | */ 72 | 73 | /** 74 | * Host-controlled parameters. Example: 75 | * this.params['pitch'] = { 76 | * setFn(val) { doSomethingWith(val); }, 77 | * def: 0, min: 0, max: 1 78 | * }; 79 | * 80 | * @name Host#events 81 | * @type { EventTarget } 82 | */ 83 | 84 | /** 85 | * Host-controlled parameters. Example: 86 | * this.params['pitch'] = { 87 | * setFn(val) { doSomethingWith(val); }, 88 | * def: 0, min: 0, max: 1 89 | * }; 90 | * 91 | * @name Host#params 92 | * @type { Object } 93 | */ 94 | 95 | export class EventTarget { 96 | constructor() { 97 | this.handlers = {}; 98 | } 99 | /** @param {HostEventType} eventType */ 100 | on(eventType, handler) { 101 | const handlers = this.handlers[eventType] ?? (this.handlers[eventType] = new Set()); 102 | handlers.add(handler); 103 | } 104 | /** @param {HostEventType} eventType */ 105 | off(eventType, handler) { 106 | let handlers = this.handlers[eventType]; 107 | if (!handlers) throw new Error('Tried removing non-existing handler for ' + eventType); 108 | handlers.delete(handler); 109 | } 110 | /** @param {HostEventType} eventType */ 111 | async trigger(eventType, arg) { 112 | let handlers = this.handlers[eventType]; 113 | if (!handlers) return; 114 | for (let handler of handlers) { 115 | await handler(arg); 116 | } 117 | } 118 | } 119 | 120 | const fileCache = {}; 121 | 122 | /** @type { Host } */ 123 | export const mainHost = { 124 | events: new EventTarget(), 125 | async fetchMainRelative(path) { 126 | if (!this.initialized) { 127 | throw new Error(`Couldn't request ${path}, mainHost not initialized!`); 128 | } 129 | return ''; 130 | }, 131 | async getMainRelative(path) { 132 | if (!(path in fileCache)) fileCache[path] = await this.fetchMainRelative(path); 133 | return fileCache[path]; 134 | }, 135 | async compileFaust(code, internalMemory) { 136 | if (!this.initialized) { 137 | throw new Error(`Couldn't compile Faust, mainHost not initialized!`); 138 | } 139 | return {}; 140 | }, 141 | async init() { 142 | await this.events.trigger('got host'); 143 | await this.events.trigger('can read files'); 144 | await this.events.trigger('can init faust'); 145 | await this.events.trigger('done faust init'); 146 | await this.events.trigger('can deduce channels'); 147 | await this.events.trigger('can make processors'); 148 | await this.events.trigger('can play'); 149 | }, 150 | params: {}, 151 | sampleRate: 44100, 152 | }; 153 | --------------------------------------------------------------------------------