@n8n/codemirror-lang 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +4 -0
- package/LICENSE.md +88 -0
- package/LICENSE_EE.md +27 -0
- package/README.md +5 -0
- package/dist/build.tsbuildinfo +1 -0
- package/dist/expressions/grammar.d.ts +2 -0
- package/dist/expressions/grammar.js +19 -0
- package/dist/expressions/grammar.js.map +1 -0
- package/dist/expressions/grammar.terms.d.ts +1 -0
- package/dist/expressions/grammar.terms.js +5 -0
- package/dist/expressions/grammar.terms.js.map +1 -0
- package/dist/expressions/index.d.ts +5 -0
- package/dist/expressions/index.js +31 -0
- package/dist/expressions/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/eslint.config.mjs +11 -0
- package/jest.config.js +2 -0
- package/package.json +49 -0
- package/src/expressions/README.md +32 -0
- package/src/expressions/expressions.grammar +21 -0
- package/src/expressions/grammar.terms.ts +4 -0
- package/src/expressions/grammar.ts +17 -0
- package/src/expressions/index.ts +31 -0
- package/src/index.ts +1 -0
- package/test/expressions/cases.txt +326 -0
- package/test/expressions/expressions.test.ts +22 -0
- package/tsconfig.build.json +10 -0
- package/tsconfig.json +8 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
Portions of this software are licensed as follows:
|
|
4
|
+
|
|
5
|
+
- Content of branches other than the main branch (i.e. "master") are not licensed.
|
|
6
|
+
- Source code files that contain ".ee." in their filename or ".ee" in their dirname are NOT licensed under
|
|
7
|
+
the Sustainable Use License.
|
|
8
|
+
To use source code files that contain ".ee." in their filename or ".ee" in their dirname you must hold a
|
|
9
|
+
valid n8n Enterprise License specifically allowing you access to such source code files and as defined
|
|
10
|
+
in "LICENSE_EE.md".
|
|
11
|
+
- All third party components incorporated into the n8n Software are licensed under the original license
|
|
12
|
+
provided by the owner of the applicable component.
|
|
13
|
+
- Content outside of the above mentioned files or restrictions is available under the "Sustainable Use
|
|
14
|
+
License" as defined below.
|
|
15
|
+
|
|
16
|
+
## Sustainable Use License
|
|
17
|
+
|
|
18
|
+
Version 1.0
|
|
19
|
+
|
|
20
|
+
### Acceptance
|
|
21
|
+
|
|
22
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
23
|
+
|
|
24
|
+
### Copyright License
|
|
25
|
+
|
|
26
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license
|
|
27
|
+
to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject
|
|
28
|
+
to the limitations below.
|
|
29
|
+
|
|
30
|
+
### Limitations
|
|
31
|
+
|
|
32
|
+
You may use or modify the software only for your own internal business purposes or for non-commercial or
|
|
33
|
+
personal use. You may distribute the software or provide it to others only if you do so free of charge for
|
|
34
|
+
non-commercial purposes. You may not alter, remove, or obscure any licensing, copyright, or other notices of
|
|
35
|
+
the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
|
|
36
|
+
|
|
37
|
+
### Patents
|
|
38
|
+
|
|
39
|
+
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to
|
|
40
|
+
license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case
|
|
41
|
+
subject to the limitations and conditions in this license. This license does not cover any patent claims that
|
|
42
|
+
you cause to be infringed by modifications or additions to the software. If you or your company make any
|
|
43
|
+
written claim that the software infringes or contributes to infringement of any patent, your patent license
|
|
44
|
+
for the software granted under these terms ends immediately. If your company makes such a claim, your patent
|
|
45
|
+
license ends immediately for work on behalf of your company.
|
|
46
|
+
|
|
47
|
+
### Notices
|
|
48
|
+
|
|
49
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these
|
|
50
|
+
terms. If you modify the software, you must include in any modified copies of the software a prominent notice
|
|
51
|
+
stating that you have modified the software.
|
|
52
|
+
|
|
53
|
+
### No Other Rights
|
|
54
|
+
|
|
55
|
+
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
56
|
+
|
|
57
|
+
### Termination
|
|
58
|
+
|
|
59
|
+
If you use the software in violation of these terms, such use is not licensed, and your license will
|
|
60
|
+
automatically terminate. If the licensor provides you with a notice of your violation, and you cease all
|
|
61
|
+
violation of this license no later than 30 days after you receive that notice, your license will be reinstated
|
|
62
|
+
retroactively. However, if you violate these terms after such reinstatement, any additional violation of these
|
|
63
|
+
terms will cause your license to terminate automatically and permanently.
|
|
64
|
+
|
|
65
|
+
### No Liability
|
|
66
|
+
|
|
67
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will
|
|
68
|
+
not be liable to you for any damages arising out of these terms or the use or nature of the software, under
|
|
69
|
+
any kind of legal claim.
|
|
70
|
+
|
|
71
|
+
### Definitions
|
|
72
|
+
|
|
73
|
+
The “licensor” is the entity offering these terms.
|
|
74
|
+
|
|
75
|
+
The “software” is the software the licensor makes available under these terms, including any portion of it.
|
|
76
|
+
|
|
77
|
+
“You” refers to the individual or entity agreeing to these terms.
|
|
78
|
+
|
|
79
|
+
“Your company” is any legal entity, sole proprietorship, or other kind of organization that you work for, plus
|
|
80
|
+
all organizations that have control over, are under the control of, or are under common control with that
|
|
81
|
+
organization. Control means ownership of substantially all the assets of an entity, or the power to direct its
|
|
82
|
+
management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
83
|
+
|
|
84
|
+
“Your license” is the license granted to you for the software under these terms.
|
|
85
|
+
|
|
86
|
+
“Use” means anything you do with the software requiring your license.
|
|
87
|
+
|
|
88
|
+
“Trademark” means trademarks, service marks, and similar rights.
|
package/LICENSE_EE.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# The n8n Enterprise License (the “Enterprise License”)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-present n8n GmbH.
|
|
4
|
+
|
|
5
|
+
With regard to the n8n Software:
|
|
6
|
+
|
|
7
|
+
This software and associated documentation files (the "Software") may only be used in production, if
|
|
8
|
+
you (and any entity that you represent) hold a valid n8n Enterprise license corresponding to your
|
|
9
|
+
usage. Subject to the foregoing sentence, you are free to modify this Software and publish patches
|
|
10
|
+
to the Software. You agree that n8n and/or its licensors (as applicable) retain all right, title and
|
|
11
|
+
interest in and to all such modifications and/or patches, and all such modifications and/or patches
|
|
12
|
+
may only be used, copied, modified, displayed, distributed, or otherwise exploited with a valid n8n
|
|
13
|
+
Enterprise license for the corresponding usage. Notwithstanding the foregoing, you may copy and
|
|
14
|
+
modify the Software for development and testing purposes, without requiring a subscription. You
|
|
15
|
+
agree that n8n and/or its licensors (as applicable) retain all right, title and interest in and to
|
|
16
|
+
all such modifications. You are not granted any other rights beyond what is expressly stated herein.
|
|
17
|
+
Subject to the foregoing, it is forbidden to copy, merge, publish, distribute, sublicense, and/or
|
|
18
|
+
sell the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
|
21
|
+
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
22
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
|
|
23
|
+
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
24
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
25
|
+
|
|
26
|
+
For all third party components incorporated into the n8n Software, those components are licensed
|
|
27
|
+
under the original license provided by the owner of the applicable component.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/jest-expect-message/types/index.d.ts","../../../../node_modules/.pnpm/@lezer+common@1.2.1/node_modules/@lezer/common/dist/index.d.ts","../../../../node_modules/.pnpm/@lezer+lr@1.4.5/node_modules/@lezer/lr/dist/index.d.ts","../../../../node_modules/.pnpm/@codemirror+state@6.5.3/node_modules/@codemirror/state/dist/index.d.ts","../../../../node_modules/.pnpm/style-mod@4.1.0/node_modules/style-mod/src/style-mod.d.ts","../../../../node_modules/.pnpm/@codemirror+view@6.39.8/node_modules/@codemirror/view/dist/index.d.ts","../../../../node_modules/.pnpm/@lezer+highlight@1.2.3_patch_hash=97f85e6fe46f23015ea0dd420e33d584bc2dc71633910cf131321da31b27ca8c/node_modules/@lezer/highlight/dist/index.d.ts","../../../../node_modules/.pnpm/@codemirror+language@6.12.1/node_modules/@codemirror/language/dist/index.d.ts","../src/expressions/grammar.ts","../src/expressions/index.ts","../src/index.ts","../src/expressions/grammar.terms.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/compatibility/disposable.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/compatibility/indexable.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/compatibility/index.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/header.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/readable.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/file.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/fetch.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/formdata.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/connector.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/client.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-origin.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/handlers.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-client.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/api.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/interceptors.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/util.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cookies.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/patch.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/websocket.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/eventsource.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/filereader.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/content-type.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cache.d.ts","../../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/index.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/globals.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/assert.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/buffer.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/child_process.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/cluster.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/console.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/constants.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/crypto.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/dgram.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/dns.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/domain.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/dom-events.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/events.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/fs.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/http.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/http2.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/https.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/inspector.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/module.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/net.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/os.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/path.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/process.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/punycode.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/querystring.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/readline.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/repl.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/sea.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/stream.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/stream/web.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/test.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/timers.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/tls.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/trace_events.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/tty.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/url.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/util.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/v8.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/vm.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/wasi.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/zlib.d.ts","../../../../node_modules/.pnpm/@types+node@20.17.57/node_modules/@types/node/index.d.ts"],"fileIdsList":[[54,55,56,57,58,59,70,113],[70,113],[56,57,70,113],[54,70,113],[70,110,113],[70,112,113],[113],[70,113,118,147],[70,113,114,119,125,126,133,144,155],[70,113,114,115,125,133],[65,66,67,70,113],[70,113,116,156],[70,113,117,118,126,134],[70,113,118,144,152],[70,113,119,121,125,133],[70,112,113,120],[70,113,121,122],[70,113,123,125],[70,112,113,125],[70,113,125,126,127,144,155],[70,113,125,126,127,140,144,147],[70,108,113],[70,113,121,125,128,133,144,155],[70,113,125,126,128,129,133,144,152,155],[70,113,128,130,144,152,155],[68,69,70,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161],[70,113,125,131],[70,113,132,155,160],[70,113,121,125,133,144],[70,113,134],[70,113,135],[70,112,113,136],[70,110,111,112,113,114,115,116,117,118,119,120,121,122,123,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161],[70,113,138],[70,113,139],[70,113,125,140,141],[70,113,140,142,156,158],[70,113,125,144,145,147],[70,113,146,147],[70,113,144,145],[70,113,147],[70,113,148],[70,110,113,144],[70,113,125,150,151],[70,113,150,151],[70,113,118,133,144,152],[70,113,153],[70,113,133,154],[70,113,128,139,155],[70,113,118,156],[70,113,144,157],[70,113,132,158],[70,113,159],[70,113,125,127,136,144,147,155,158,160],[70,113,144,161],[70,80,84,113,155],[70,80,113,144,155],[70,75,113],[70,77,80,113,152,155],[70,113,133,152],[70,113,162],[70,75,113,162],[70,77,80,113,133,155],[70,72,73,76,79,113,125,144,155],[70,80,87,113],[70,72,78,113],[70,80,101,102,113],[70,76,80,113,147,155,162],[70,101,113,162],[70,74,75,113,162],[70,80,113],[70,74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,102,103,104,105,106,107,113],[70,80,95,113],[70,80,87,88,113],[70,78,80,88,89,113],[70,79,113],[70,72,75,80,113],[70,80,84,88,89,113],[70,84,113],[70,78,80,83,113,155],[70,72,77,80,87,113],[70,113,144],[70,75,80,101,113,160,162],[55,70,113],[59,60,61,70,113],[62,70,113]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"406a5a771d97867cba07e7fbd3cd1fb2dd1004558b973733205737e9dd7ed929","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7568d221108717cee204ad1e8b0e25044fbff3bdeb09de8ca579c869a13da5f","impliedFormat":99},{"version":"5a4ddf80b1bdab540fe5d3f837921e9e8dc559a1a319e75451c30f0d5f62ac0f","impliedFormat":99},{"version":"97e0a23ac45763f990b704b66cabbb48df07eddc5bf46054a34d72e350f1088e","impliedFormat":99},{"version":"fe9dd679e568dc2a0e5e6959f77b53f8bc1f126d46b0d17631347ba57470b808","impliedFormat":99},{"version":"86245b010961138b1c4ce2e0610b8b9577157dac3f7eeaf3d20017ee01e7760b","impliedFormat":99},{"version":"0c6ef3deba595b7dc7b4ee09342435c7a2392fe7752e335acdedfe2476529638","impliedFormat":99},{"version":"00fab36b3130e6d7a2316d0583a2e2a4d328a6f4e01817d90d8b07baad69b4e1","impliedFormat":99},{"version":"5515be0714ec44d435c5283b1d888c7b2a968962671d5fd419538b776f1a27e4","signature":"9516ab1055d47d47ad7a13b664c82dfc5ead0368b1ef6e59ab474e2f57beef09"},{"version":"a101419b6c832e7f944a09ba380859f4977e38569f2a1f1f533128d6c0c57f7d","signature":"e19cb5ed84118329758d22bdff9069fd4524c6d104a3e35f12387c8c68064ca8"},"6476727e4a520605dedec183d7f59d765da639f60eeabf3963dfdf078538be4e",{"version":"a2dd5db509f85f234d1bd8b21e8aeae3fbc19bae808048cdfb6f804201068df0","signature":"a44f1c74dca00f3bffd7896b7d66a40cbaba540556a3075dca44175c2a5c1c08"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"49a5a44f2e68241a1d2bd9ec894535797998841c09729e506a7cbfcaa40f2180","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b8582f8bf95b9b901bf6cf47b9ee3560c7f340be0bd39cb432f21e9e136c36a7","affectsGlobalScope":true,"impliedFormat":1},{"version":"6b042aa5d277ad6963e2837179fd2f8fbb01968ac67115b0833c0244e93d1d50","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"9e025aa38cad40827cc30aca974fe33fe2c4652fe8c88f48dadbbbd6300c8b07","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3e58c4c18a031cbb17abec7a4ad0bd5ae9fc70c1f4ba1e7fb921ad87c504aca","impliedFormat":1},{"version":"84c1930e33d1bb12ad01bcbe11d656f9646bd21b2fb2afd96e8e10615a021aef","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4b87f767c7bc841511113c876a6b8bf1fd0cb0b718c888ad84478b372ec486b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d04e3640dd9eb67f7f1e5bd3d0bf96c784666f7aefc8ac1537af6f2d38d4c29","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"5a369483ac4cfbdf0331c248deeb36140e6907db5e1daed241546b4a2055f82c","impliedFormat":1},{"version":"e8f5b5cc36615c17d330eaf8eebbc0d6bdd942c25991f96ef122f246f4ff722f","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"71450bbc2d82821d24ca05699a533e72758964e9852062c53b30f31c36978ab8","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ada07543808f3b967624645a8e1ccd446f8b01ade47842acf1328aec899fed0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c21aaa8257d7950a5b75a251d9075b6a371208fc948c9c8402f6690ef3b5b55","impliedFormat":1},{"version":"b5895e6353a5d708f55d8685c38a235c3a6d8138e374dee8ceb8ffde5aa8002a","impliedFormat":1},{"version":"5b75ca915164e4a7ad94a60729fe45b8a62e7750ab232d0122f8ccdd768f5314","impliedFormat":1},{"version":"93bd413918fa921c8729cef45302b24d8b6c7855d72d5bf82d3972595ae8dcbf","impliedFormat":1},{"version":"4ff41188773cbf465807dd2f7059c7494cbee5115608efc297383832a1150c43","impliedFormat":1},{"version":"dccdf1677e531e33f8ac961a68bc537418c9a414797c1ea7e91307501cdc3f5e","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"5155da3047ef977944d791a2188ff6e6c225f6975cc1910ab7bb6838ab84cede","impliedFormat":1},{"version":"93f437e1398a4f06a984f441f7fa7a9f0535c04399619b5c22e0b87bdee182cb","impliedFormat":1},{"version":"afbe24ab0d74694372baa632ecb28bb375be53f3be53f9b07ecd7fc994907de5","impliedFormat":1},{"version":"3e5b3163e34f3dc24cba59db4bb90bcc33555cccac06b707501439bdcf3d4df4","affectsGlobalScope":true,"impliedFormat":1},{"version":"6b19db3600a17af69d4f33d08cc7076a7d19fb65bb36e442cac58929ec7c9482","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"5b6844ad931dcc1d3aca53268f4bd671428421464b1286746027aede398094f2","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"0dbcebe2126d03936c70545e96a6e41007cf065be38a1ce4d32a39fcedefead4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1851a3b4db78664f83901bb9cac9e45e03a37bb5933cc5bf37e10bb7e91ab4eb","impliedFormat":1},{"version":"09d479208911ac3ac6a7c2fe86217fc1abe6c4f04e2d52e4890e500699eeab32","affectsGlobalScope":true,"impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"c40b3d3cfbb1227c8935f681c2480a32b560e387dd771d329cdbd1641f2d6da5","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"5b566927cad2ed2139655d55d690ffa87df378b956e7fe1c96024c4d9f75c4cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"c4a3720550d1787c8d6284040853c0781ff1e2cd8d842f2cb44547525ee34c36","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3dffd70e6375b872f0b4e152de4ae682d762c61a24881ecc5eb9f04c5caf76f","impliedFormat":1},{"version":"f008d63ce0077f533e39df44b82d660707b15b0f8e31fbc153a62bb00b99bfe5","impliedFormat":1},{"version":"d91a7d8b5655c42986f1bdfe2105c4408f472831c8f20cf11a8c3345b6b56c8c","impliedFormat":1},{"version":"6bdb3144f8bf020f513651a6ea1cb8a378a612c0791042e0436fd9adf7372a17","affectsGlobalScope":true,"impliedFormat":1},{"version":"e8a979b8af001c9fc2e774e7809d233c8ca955a28756f52ee5dee88ccb0611d2","impliedFormat":1},{"version":"cac793cc47c29e26e4ac3601dcb00b4435ebed26203485790e44f2ad8b6ad847","impliedFormat":1}],"root":[53,[61,64]],"options":{"declaration":true,"esModuleInterop":true,"module":1,"noImplicitAny":true,"noImplicitReturns":true,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","preserveConstEnums":true,"removeComments":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"target":8,"tsBuildInfoFile":"./build.tsbuildinfo","useUnknownInCatchVariables":true},"referencedMap":[[60,1],[56,2],[58,3],[54,2],[59,4],[55,4],[110,5],[111,5],[112,6],[70,7],[113,8],[114,9],[115,10],[65,2],[68,11],[66,2],[67,2],[116,12],[117,13],[118,14],[119,15],[120,16],[121,17],[122,17],[124,2],[123,18],[125,19],[126,20],[127,21],[109,22],[69,2],[128,23],[129,24],[130,25],[162,26],[131,27],[132,28],[133,29],[134,30],[135,31],[136,32],[137,33],[138,34],[139,35],[140,36],[141,36],[142,37],[143,2],[144,38],[146,39],[145,40],[147,41],[148,42],[149,43],[150,44],[151,45],[152,46],[153,47],[154,48],[155,49],[156,50],[157,51],[158,52],[159,53],[160,54],[161,55],[71,2],[57,2],[51,2],[52,2],[9,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[20,2],[21,2],[4,2],[22,2],[26,2],[23,2],[24,2],[25,2],[27,2],[28,2],[29,2],[5,2],[30,2],[31,2],[32,2],[33,2],[6,2],[37,2],[34,2],[35,2],[36,2],[38,2],[7,2],[39,2],[44,2],[45,2],[40,2],[41,2],[42,2],[43,2],[8,2],[49,2],[46,2],[47,2],[48,2],[50,2],[1,2],[87,56],[97,57],[86,56],[107,58],[78,59],[77,60],[106,61],[100,62],[105,63],[80,64],[94,65],[79,66],[103,67],[75,68],[74,61],[104,69],[76,70],[81,71],[82,2],[85,71],[72,2],[108,72],[98,73],[89,74],[90,75],[92,76],[88,77],[91,78],[101,61],[83,79],[84,80],[93,81],[73,82],[96,73],[95,71],[99,2],[102,83],[53,2],[64,2],[61,84],[62,85],[63,86]],"version":"5.9.2"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parser = void 0;
|
|
4
|
+
const lr_1 = require("@lezer/lr");
|
|
5
|
+
exports.parser = lr_1.LRParser.deserialize({
|
|
6
|
+
version: 14,
|
|
7
|
+
states: "nQQOPOOOOOO'#Cb'#CbOOOO'#C`'#C`QQOPOOOOOO-E6^-E6^",
|
|
8
|
+
stateData: 'Y~OQPORPO~O',
|
|
9
|
+
goto: 'bVPPPPWP^QRORSRTQOR',
|
|
10
|
+
nodeNames: '⚠ Program Plaintext Resolvable',
|
|
11
|
+
maxTerm: 6,
|
|
12
|
+
skippedNodes: [0],
|
|
13
|
+
repeatNodeCount: 1,
|
|
14
|
+
tokenData: "%o~RTO#ob#o#p!h#p;'Sb;'S;=`!]<%lOb~gTQ~O#ob#o#pv#p;'Sb;'S;=`!]<%lOb~yUO#ob#p;'Sb;'S;=`!]<%l~b~Ob~~!c~!`P;=`<%lb~!hOQ~~!kVO#ob#o#p#Q#p;'Sb;'S;=`!]<%l~b~Ob~~!c~#TVO#O#Q#O#P#j#P#q#Q#q#r%Q#r;'S#Q;'S;=`%i<%lO#Q~#mVO#O#Q#O#P#j#P#q#Q#q#r$S#r;'S#Q;'S;=`%i<%lO#Q~$VTO#q#Q#q#r$f#r;'S#Q;'S;=`%i<%lO#Q~$kVR~O#O#Q#O#P#j#P#q#Q#q#r%Q#r;'S#Q;'S;=`%i<%lO#Q~%TTO#q#Q#q#r%d#r;'S#Q;'S;=`%i<%lO#Q~%iOR~~%lP;=`<%l#Q",
|
|
15
|
+
tokenizers: [0],
|
|
16
|
+
topRules: { Program: [0, 1] },
|
|
17
|
+
tokenPrec: 0,
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=grammar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grammar.js","sourceRoot":"","sources":["../../src/expressions/grammar.ts"],"names":[],"mappings":";;;AACA,kCAAqC;AACxB,QAAA,MAAM,GAAG,aAAQ,CAAC,WAAW,CAAC;IAC1C,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,mDAAmD;IAC3D,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,qBAAqB;IAC3B,SAAS,EAAE,gCAAgC;IAC3C,OAAO,EAAE,CAAC;IACV,YAAY,EAAE,CAAC,CAAC,CAAC;IACjB,eAAe,EAAE,CAAC;IAClB,SAAS,EACR,2YAA2Y;IAC5Y,UAAU,EAAE,CAAC,CAAC,CAAC;IACf,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;IAC7B,SAAS,EAAE,CAAC;CACZ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Program = 1, Plaintext = 2, Resolvable = 3;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grammar.terms.js","sourceRoot":"","sources":["../../src/expressions/grammar.terms.ts"],"names":[],"mappings":";;;AACa,QAAA,OAAO,GAAG,CAAC,EACvB,QAAA,SAAS,GAAG,CAAC,EACb,QAAA,UAAU,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LRLanguage, LanguageSupport } from '@codemirror/language';
|
|
2
|
+
export declare const expressionParser: import("@lezer/lr").LRParser;
|
|
3
|
+
export declare const parserWithMetaData: import("@lezer/lr").LRParser;
|
|
4
|
+
export declare const n8nLanguage: LRLanguage;
|
|
5
|
+
export declare function n8nExpression(): LanguageSupport;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.n8nLanguage = exports.parserWithMetaData = exports.expressionParser = void 0;
|
|
4
|
+
exports.n8nExpression = n8nExpression;
|
|
5
|
+
const language_1 = require("@codemirror/language");
|
|
6
|
+
const highlight_1 = require("@lezer/highlight");
|
|
7
|
+
const grammar_1 = require("./grammar");
|
|
8
|
+
exports.expressionParser = grammar_1.parser;
|
|
9
|
+
exports.parserWithMetaData = grammar_1.parser.configure({
|
|
10
|
+
props: [
|
|
11
|
+
language_1.foldNodeProp.add({
|
|
12
|
+
Application: language_1.foldInside,
|
|
13
|
+
}),
|
|
14
|
+
(0, highlight_1.styleTags)({
|
|
15
|
+
OpenMarker: highlight_1.tags.brace,
|
|
16
|
+
CloseMarker: highlight_1.tags.brace,
|
|
17
|
+
Plaintext: highlight_1.tags.content,
|
|
18
|
+
Resolvable: highlight_1.tags.string,
|
|
19
|
+
}),
|
|
20
|
+
],
|
|
21
|
+
});
|
|
22
|
+
exports.n8nLanguage = language_1.LRLanguage.define({
|
|
23
|
+
parser: exports.parserWithMetaData,
|
|
24
|
+
languageData: {
|
|
25
|
+
commentTokens: { line: ';' },
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
function n8nExpression() {
|
|
29
|
+
return new language_1.LanguageSupport(exports.n8nLanguage);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/expressions/index.ts"],"names":[],"mappings":";;;AA4BA,sCAEC;AA9BD,mDAA6F;AAC7F,gDAAwD;AAExD,uCAAmC;AAEtB,QAAA,gBAAgB,GAAG,gBAAM,CAAC;AAE1B,QAAA,kBAAkB,GAAG,gBAAM,CAAC,SAAS,CAAC;IAClD,KAAK,EAAE;QACN,uBAAY,CAAC,GAAG,CAAC;YAChB,WAAW,EAAE,qBAAU;SACvB,CAAC;QACF,IAAA,qBAAS,EAAC;YACT,UAAU,EAAE,gBAAC,CAAC,KAAK;YACnB,WAAW,EAAE,gBAAC,CAAC,KAAK;YACpB,SAAS,EAAE,gBAAC,CAAC,OAAO;YACpB,UAAU,EAAE,gBAAC,CAAC,MAAM;SACpB,CAAC;KACF;CACD,CAAC,CAAC;AAEU,QAAA,WAAW,GAAG,qBAAU,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,0BAAkB;IAC1B,YAAY,EAAE;QACb,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;KAC5B;CACD,CAAC,CAAC;AAEH,SAAgB,aAAa;IAC5B,OAAO,IAAI,0BAAe,CAAC,mBAAW,CAAC,CAAC;AACzC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parserWithMetaData, n8nLanguage, expressionParser } from './expressions';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.expressionParser = exports.n8nLanguage = exports.parserWithMetaData = void 0;
|
|
4
|
+
var expressions_1 = require("./expressions");
|
|
5
|
+
Object.defineProperty(exports, "parserWithMetaData", { enumerable: true, get: function () { return expressions_1.parserWithMetaData; } });
|
|
6
|
+
Object.defineProperty(exports, "n8nLanguage", { enumerable: true, get: function () { return expressions_1.n8nLanguage; } });
|
|
7
|
+
Object.defineProperty(exports, "expressionParser", { enumerable: true, get: function () { return expressions_1.expressionParser; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6CAAkF;AAAzE,iHAAA,kBAAkB,OAAA;AAAE,0GAAA,WAAW,OAAA;AAAE,+GAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
2
|
+
import { baseConfig } from '@n8n/eslint-config/base';
|
|
3
|
+
|
|
4
|
+
export default defineConfig(baseConfig, globalIgnores(['src/expressions/grammar*.ts']), {
|
|
5
|
+
rules: {
|
|
6
|
+
// TODO: Remove this
|
|
7
|
+
'@typescript-eslint/naming-convention': 'warn',
|
|
8
|
+
'no-useless-escape': 'warn',
|
|
9
|
+
'@typescript-eslint/unbound-method': 'warn',
|
|
10
|
+
},
|
|
11
|
+
});
|
package/jest.config.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@n8n/codemirror-lang",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Language support package for CodeMirror 6 in n8n",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Jan Oberhauser",
|
|
9
|
+
"email": "jan@n8n.io"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/n8n-io/n8n.git"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"module": "src/index.ts",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"require": "./dist/index.js",
|
|
21
|
+
"import": "./src/index.ts",
|
|
22
|
+
"types": "./dist/index.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./*": "./*"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@codemirror/language": "6.12.1",
|
|
28
|
+
"@lezer/highlight": "1.2.3",
|
|
29
|
+
"@lezer/lr": "1.4.5"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@lezer/generator": "1.8.0",
|
|
33
|
+
"@n8n/typescript-config": "1.3.0"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://n8n.io",
|
|
36
|
+
"scripts": {
|
|
37
|
+
"clean": "rimraf dist .turbo",
|
|
38
|
+
"typecheck": "tsc --noEmit",
|
|
39
|
+
"generate:expressions:grammar": "lezer-generator --typeScript --output src/expressions/grammar.ts src/expressions/expressions.grammar",
|
|
40
|
+
"generate": "pnpm generate:expressions:grammar && pnpm format",
|
|
41
|
+
"build": "tsc -p tsconfig.build.json",
|
|
42
|
+
"test": "jest",
|
|
43
|
+
"test:unit": "jest",
|
|
44
|
+
"lint": "eslint . --quiet",
|
|
45
|
+
"lint:fix": "eslint . --fix",
|
|
46
|
+
"format": "biome format --write src test",
|
|
47
|
+
"format:check": "biome ci src test"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# n8n Expression language support
|
|
2
|
+
|
|
3
|
+
## Usage
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
import { parserWithMetaData as n8nParser } from '@n8n/codemirror-lang';
|
|
7
|
+
import { LanguageSupport, LRLanguage } from '@codemirror/language';
|
|
8
|
+
import { parseMixed } from '@lezer/common';
|
|
9
|
+
import { parser as jsParser } from '@lezer/javascript';
|
|
10
|
+
|
|
11
|
+
const n8nPlusJsParser = n8nParser.configure({
|
|
12
|
+
wrap: parseMixed((node) => {
|
|
13
|
+
if (node.type.isTop) return null;
|
|
14
|
+
|
|
15
|
+
return node.name === 'Resolvable'
|
|
16
|
+
? { parser: jsParser, overlay: (node) => node.type.name === 'Resolvable' }
|
|
17
|
+
: null;
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const n8nLanguage = LRLanguage.define({ parser: n8nPlusJsParser });
|
|
22
|
+
|
|
23
|
+
export function n8nExpressionLanguageSupport() {
|
|
24
|
+
return new LanguageSupport(n8nLanguage);
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Supported Unicode ranges
|
|
29
|
+
|
|
30
|
+
- From `Basic Latin` up to and including `Currency Symbols`
|
|
31
|
+
- `Miscellaneous Symbols and Pictographs`
|
|
32
|
+
- `CJK Unified Ideographs`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@top Program { entity* }
|
|
2
|
+
|
|
3
|
+
entity { Plaintext | Resolvable }
|
|
4
|
+
|
|
5
|
+
@tokens {
|
|
6
|
+
Plaintext { ![{] Plaintext? | "{" (@eof | ![{] Plaintext?) }
|
|
7
|
+
|
|
8
|
+
OpenMarker[closedBy="CloseMarker"] { "{{" }
|
|
9
|
+
|
|
10
|
+
CloseMarker[openedBy="OpenMarker"] { "}}" }
|
|
11
|
+
|
|
12
|
+
Resolvable {
|
|
13
|
+
OpenMarker resolvableChar* CloseMarker
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
resolvableChar { unicodeChar | "}" ![}] | "\\}}" }
|
|
17
|
+
|
|
18
|
+
unicodeChar { $[\u0000-\u007C] | $[\u007E-\u{10FFFF}] }
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@detectDelim
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
2
|
+
import { LRParser } from '@lezer/lr';
|
|
3
|
+
export const parser = LRParser.deserialize({
|
|
4
|
+
version: 14,
|
|
5
|
+
states: "nQQOPOOOOOO'#Cb'#CbOOOO'#C`'#C`QQOPOOOOOO-E6^-E6^",
|
|
6
|
+
stateData: 'Y~OQPORPO~O',
|
|
7
|
+
goto: 'bVPPPPWP^QRORSRTQOR',
|
|
8
|
+
nodeNames: '⚠ Program Plaintext Resolvable',
|
|
9
|
+
maxTerm: 6,
|
|
10
|
+
skippedNodes: [0],
|
|
11
|
+
repeatNodeCount: 1,
|
|
12
|
+
tokenData:
|
|
13
|
+
"%o~RTO#ob#o#p!h#p;'Sb;'S;=`!]<%lOb~gTQ~O#ob#o#pv#p;'Sb;'S;=`!]<%lOb~yUO#ob#p;'Sb;'S;=`!]<%l~b~Ob~~!c~!`P;=`<%lb~!hOQ~~!kVO#ob#o#p#Q#p;'Sb;'S;=`!]<%l~b~Ob~~!c~#TVO#O#Q#O#P#j#P#q#Q#q#r%Q#r;'S#Q;'S;=`%i<%lO#Q~#mVO#O#Q#O#P#j#P#q#Q#q#r$S#r;'S#Q;'S;=`%i<%lO#Q~$VTO#q#Q#q#r$f#r;'S#Q;'S;=`%i<%lO#Q~$kVR~O#O#Q#O#P#j#P#q#Q#q#r%Q#r;'S#Q;'S;=`%i<%lO#Q~%TTO#q#Q#q#r%d#r;'S#Q;'S;=`%i<%lO#Q~%iOR~~%lP;=`<%l#Q",
|
|
14
|
+
tokenizers: [0],
|
|
15
|
+
topRules: { Program: [0, 1] },
|
|
16
|
+
tokenPrec: 0,
|
|
17
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LRLanguage, LanguageSupport, foldNodeProp, foldInside } from '@codemirror/language';
|
|
2
|
+
import { styleTags, tags as t } from '@lezer/highlight';
|
|
3
|
+
|
|
4
|
+
import { parser } from './grammar';
|
|
5
|
+
|
|
6
|
+
export const expressionParser = parser;
|
|
7
|
+
|
|
8
|
+
export const parserWithMetaData = parser.configure({
|
|
9
|
+
props: [
|
|
10
|
+
foldNodeProp.add({
|
|
11
|
+
Application: foldInside,
|
|
12
|
+
}),
|
|
13
|
+
styleTags({
|
|
14
|
+
OpenMarker: t.brace,
|
|
15
|
+
CloseMarker: t.brace,
|
|
16
|
+
Plaintext: t.content,
|
|
17
|
+
Resolvable: t.string,
|
|
18
|
+
}),
|
|
19
|
+
],
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export const n8nLanguage = LRLanguage.define({
|
|
23
|
+
parser: parserWithMetaData,
|
|
24
|
+
languageData: {
|
|
25
|
+
commentTokens: { line: ';' },
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function n8nExpression() {
|
|
30
|
+
return new LanguageSupport(n8nLanguage);
|
|
31
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parserWithMetaData, n8nLanguage, expressionParser } from './expressions';
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
# Resolvable
|
|
2
|
+
|
|
3
|
+
{{ 1 + 1 }}
|
|
4
|
+
|
|
5
|
+
==>
|
|
6
|
+
|
|
7
|
+
Program(Resolvable)
|
|
8
|
+
|
|
9
|
+
# Empty Resolvable
|
|
10
|
+
|
|
11
|
+
{{}}
|
|
12
|
+
|
|
13
|
+
==>
|
|
14
|
+
|
|
15
|
+
Program(Resolvable)
|
|
16
|
+
|
|
17
|
+
# Resolvable of only whitespace
|
|
18
|
+
|
|
19
|
+
{{ }}
|
|
20
|
+
|
|
21
|
+
==>
|
|
22
|
+
|
|
23
|
+
Program(Resolvable)
|
|
24
|
+
|
|
25
|
+
# No content
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
==>
|
|
30
|
+
|
|
31
|
+
Program
|
|
32
|
+
|
|
33
|
+
# Plaintext
|
|
34
|
+
|
|
35
|
+
text
|
|
36
|
+
|
|
37
|
+
==>
|
|
38
|
+
|
|
39
|
+
Program(Plaintext)
|
|
40
|
+
|
|
41
|
+
# Plaintext of single-brace-wrapped text
|
|
42
|
+
|
|
43
|
+
{text}
|
|
44
|
+
|
|
45
|
+
==>
|
|
46
|
+
|
|
47
|
+
Program(Plaintext)
|
|
48
|
+
|
|
49
|
+
# Plaintext then Resolvable
|
|
50
|
+
|
|
51
|
+
text {{ 1 + 1 }}
|
|
52
|
+
|
|
53
|
+
==>
|
|
54
|
+
|
|
55
|
+
Program(Plaintext, Resolvable)
|
|
56
|
+
|
|
57
|
+
# Resolvable then Plaintext
|
|
58
|
+
|
|
59
|
+
{{ 1 + 1 }} Plaintext
|
|
60
|
+
|
|
61
|
+
==>
|
|
62
|
+
|
|
63
|
+
Program(Resolvable, Plaintext)
|
|
64
|
+
|
|
65
|
+
# Plaintext then Resolvable then Plaintext
|
|
66
|
+
|
|
67
|
+
text {{ 1 + 1 }} text
|
|
68
|
+
|
|
69
|
+
==>
|
|
70
|
+
|
|
71
|
+
Program(Plaintext, Resolvable, Plaintext)
|
|
72
|
+
|
|
73
|
+
# Resolvable then Plaintext then Resolvable
|
|
74
|
+
|
|
75
|
+
{{ 1 + 1 }} text {{ 1 + 1 }}
|
|
76
|
+
|
|
77
|
+
==>
|
|
78
|
+
|
|
79
|
+
Program(Resolvable,Plaintext,Resolvable)
|
|
80
|
+
|
|
81
|
+
# Plaintext then Resolvable then Plaintext then Resolvable
|
|
82
|
+
|
|
83
|
+
text {{ 1 + 1 }} text {{ 1 + 1 }}
|
|
84
|
+
|
|
85
|
+
==>
|
|
86
|
+
|
|
87
|
+
Program(Plaintext, Resolvable, Plaintext, Resolvable)
|
|
88
|
+
|
|
89
|
+
# Resolvable then Plaintext then Resolvable then Plaintext
|
|
90
|
+
|
|
91
|
+
{{ 1 + 1 }} text {{ 1 + 1 }} text
|
|
92
|
+
|
|
93
|
+
==>
|
|
94
|
+
|
|
95
|
+
Program(Resolvable,Plaintext,Resolvable,Plaintext)
|
|
96
|
+
|
|
97
|
+
# Resolvable containing all resolvable chars
|
|
98
|
+
|
|
99
|
+
{{ he ()[]{<>~`!@#$%^&*-_+=|\;:'",./?\{ llo }}
|
|
100
|
+
|
|
101
|
+
==>
|
|
102
|
+
|
|
103
|
+
Program(Resolvable)
|
|
104
|
+
|
|
105
|
+
# Resolvable containing single left brace
|
|
106
|
+
|
|
107
|
+
{{ he { llo }}
|
|
108
|
+
|
|
109
|
+
==>
|
|
110
|
+
|
|
111
|
+
Program(Resolvable)
|
|
112
|
+
|
|
113
|
+
# Resolvable containing double left brace
|
|
114
|
+
|
|
115
|
+
{{ he {{ llo }}
|
|
116
|
+
|
|
117
|
+
==>
|
|
118
|
+
|
|
119
|
+
Program(Resolvable)
|
|
120
|
+
|
|
121
|
+
# Resolvable containing triple left brace
|
|
122
|
+
|
|
123
|
+
{{ he {{{ llo }}
|
|
124
|
+
|
|
125
|
+
==>
|
|
126
|
+
|
|
127
|
+
Program(Resolvable)
|
|
128
|
+
|
|
129
|
+
# Resolvable containing single right brace
|
|
130
|
+
|
|
131
|
+
{{ he } llo }}
|
|
132
|
+
|
|
133
|
+
==>
|
|
134
|
+
|
|
135
|
+
Program(Resolvable)
|
|
136
|
+
|
|
137
|
+
# Resolvable containing escaped double right brace
|
|
138
|
+
|
|
139
|
+
{{ he \}} llo }}
|
|
140
|
+
|
|
141
|
+
==>
|
|
142
|
+
|
|
143
|
+
Program(Resolvable)
|
|
144
|
+
|
|
145
|
+
# Resolvable containing escaped triple right brace
|
|
146
|
+
|
|
147
|
+
{{ he \}}} llo }}
|
|
148
|
+
|
|
149
|
+
==>
|
|
150
|
+
|
|
151
|
+
Program(Resolvable)
|
|
152
|
+
|
|
153
|
+
# Resolvable containing single-brace-wrapped text with escaping
|
|
154
|
+
|
|
155
|
+
{{ he { abc } llo }}
|
|
156
|
+
|
|
157
|
+
==>
|
|
158
|
+
|
|
159
|
+
Program(Resolvable)
|
|
160
|
+
|
|
161
|
+
# Resolvable containing double-brace-wrapped text with escaping
|
|
162
|
+
|
|
163
|
+
{{ he {{ abc \}} llo }}
|
|
164
|
+
|
|
165
|
+
==>
|
|
166
|
+
|
|
167
|
+
Program(Resolvable)
|
|
168
|
+
|
|
169
|
+
# Resolvable containing triple-brace-wrapped text with escaping
|
|
170
|
+
|
|
171
|
+
{{ he {{{ abc \}}} llo }}
|
|
172
|
+
|
|
173
|
+
==>
|
|
174
|
+
|
|
175
|
+
Program(Resolvable)
|
|
176
|
+
|
|
177
|
+
# Resolvable containing single-bracket-wrapped text
|
|
178
|
+
|
|
179
|
+
{{ he [ abc ] llo }}
|
|
180
|
+
|
|
181
|
+
==>
|
|
182
|
+
|
|
183
|
+
Program(Resolvable)
|
|
184
|
+
|
|
185
|
+
# Resolvable containing double-bracket-wrapped text
|
|
186
|
+
|
|
187
|
+
{{ he [[ abc ]] llo }}
|
|
188
|
+
|
|
189
|
+
==>
|
|
190
|
+
|
|
191
|
+
Program(Resolvable)
|
|
192
|
+
|
|
193
|
+
# Resolvable containing triple-bracket-wrapped text
|
|
194
|
+
|
|
195
|
+
{{ he [[[ abc ]]] llo }}
|
|
196
|
+
|
|
197
|
+
==>
|
|
198
|
+
|
|
199
|
+
Program(Resolvable)
|
|
200
|
+
|
|
201
|
+
# Plaintext of one opening brace
|
|
202
|
+
|
|
203
|
+
{
|
|
204
|
+
|
|
205
|
+
==>
|
|
206
|
+
|
|
207
|
+
Program(Plaintext)
|
|
208
|
+
|
|
209
|
+
# Plaintext of one opening brace and two closing braces
|
|
210
|
+
|
|
211
|
+
{ }}
|
|
212
|
+
|
|
213
|
+
==>
|
|
214
|
+
|
|
215
|
+
Program(Plaintext)
|
|
216
|
+
|
|
217
|
+
# Plaintext then Resolvable with non-ASCII chars then Plaintext
|
|
218
|
+
|
|
219
|
+
a {{ 'áßи' }} a
|
|
220
|
+
|
|
221
|
+
==>
|
|
222
|
+
|
|
223
|
+
Program(Plaintext, Resolvable, Plaintext)
|
|
224
|
+
|
|
225
|
+
# Resolvable with currency symbol
|
|
226
|
+
|
|
227
|
+
{{ '€' }}
|
|
228
|
+
|
|
229
|
+
==>
|
|
230
|
+
|
|
231
|
+
Program(Resolvable)
|
|
232
|
+
|
|
233
|
+
# Resolvable with cyrillic char
|
|
234
|
+
|
|
235
|
+
{{ 'л' }}
|
|
236
|
+
|
|
237
|
+
==>
|
|
238
|
+
|
|
239
|
+
Program(Resolvable)
|
|
240
|
+
|
|
241
|
+
# Resolvable with Pictographs char
|
|
242
|
+
|
|
243
|
+
{{ '🎉' }}
|
|
244
|
+
|
|
245
|
+
==>
|
|
246
|
+
|
|
247
|
+
Program(Resolvable)
|
|
248
|
+
|
|
249
|
+
# Resolvable with Emoticons char
|
|
250
|
+
|
|
251
|
+
{{ '😎' }}
|
|
252
|
+
|
|
253
|
+
==>
|
|
254
|
+
|
|
255
|
+
Program(Resolvable)
|
|
256
|
+
|
|
257
|
+
# Resolvable with general punctuation char
|
|
258
|
+
|
|
259
|
+
{{ '†' }}
|
|
260
|
+
|
|
261
|
+
==>
|
|
262
|
+
|
|
263
|
+
Program(Resolvable)
|
|
264
|
+
|
|
265
|
+
# Resolvable with superscript char
|
|
266
|
+
|
|
267
|
+
{{ '⁷' }}
|
|
268
|
+
|
|
269
|
+
==>
|
|
270
|
+
|
|
271
|
+
Program(Resolvable)
|
|
272
|
+
|
|
273
|
+
# Resolvable with CJK char
|
|
274
|
+
|
|
275
|
+
{{ '漢' }}
|
|
276
|
+
|
|
277
|
+
==>
|
|
278
|
+
|
|
279
|
+
Program(Resolvable)
|
|
280
|
+
|
|
281
|
+
# Resolvable with new emoji range
|
|
282
|
+
|
|
283
|
+
{{ '🟢' }}
|
|
284
|
+
|
|
285
|
+
==>
|
|
286
|
+
|
|
287
|
+
Program(Resolvable)
|
|
288
|
+
|
|
289
|
+
# Resolvable with new emoji range end of range
|
|
290
|
+
|
|
291
|
+
{{ '🫸' }}
|
|
292
|
+
|
|
293
|
+
==>
|
|
294
|
+
|
|
295
|
+
Program(Resolvable)
|
|
296
|
+
|
|
297
|
+
# Resolvable with start of Dingbat range - U+2700
|
|
298
|
+
|
|
299
|
+
{{ '✀' }}
|
|
300
|
+
|
|
301
|
+
==>
|
|
302
|
+
|
|
303
|
+
Program(Resolvable)
|
|
304
|
+
|
|
305
|
+
# Resolvable with end of Dingbat range - U+27BF
|
|
306
|
+
|
|
307
|
+
{{ '➿' }}
|
|
308
|
+
|
|
309
|
+
==>
|
|
310
|
+
|
|
311
|
+
Program(Resolvable)
|
|
312
|
+
|
|
313
|
+
# Resolvable with zap emoji - U+26A1
|
|
314
|
+
|
|
315
|
+
{{ '⚡' }}
|
|
316
|
+
|
|
317
|
+
==>
|
|
318
|
+
|
|
319
|
+
Program(Resolvable)
|
|
320
|
+
|
|
321
|
+
# Resolvable with character near end of Unicode range U+10FFFD
|
|
322
|
+
{{ '' }}
|
|
323
|
+
|
|
324
|
+
==>
|
|
325
|
+
|
|
326
|
+
Program(Resolvable)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { fileTests as runTestFile } from '@lezer/generator/dist/test';
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
|
|
5
|
+
import { n8nLanguage } from '../../src/expressions/index';
|
|
6
|
+
|
|
7
|
+
describe('expressions language', () => {
|
|
8
|
+
const CASES_DIR = __dirname;
|
|
9
|
+
for (const testFile of fs.readdirSync(CASES_DIR)) {
|
|
10
|
+
if (!/\.txt$/.test(testFile)) continue;
|
|
11
|
+
|
|
12
|
+
const testFileName = /^[^\.]*/.exec(testFile)![0];
|
|
13
|
+
describe(testFileName, () => {
|
|
14
|
+
for (const { name, run } of runTestFile(
|
|
15
|
+
fs.readFileSync(path.join(CASES_DIR, testFile), 'utf8'),
|
|
16
|
+
testFile,
|
|
17
|
+
)) {
|
|
18
|
+
it(name, () => run(n8nLanguage.parser));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|