@trishchuk/coolors-mcp 1.0.0 → 1.0.1

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.
Files changed (66) hide show
  1. package/.claude/settings.local.json +2 -6
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +20 -8
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +22 -8
  4. package/.github/pull_request_template.md +33 -8
  5. package/.github/workflows/ci.yml +97 -97
  6. package/.github/workflows/deploy-docs.yml +9 -9
  7. package/.github/workflows/release.yml +15 -15
  8. package/README.md +26 -1
  9. package/TOOLS_UK.md +233 -0
  10. package/docs/.vitepress/cache/deps/@braintree_sanitize-url.js +30 -12
  11. package/docs/.vitepress/cache/deps/_metadata.json +1 -1
  12. package/docs/.vitepress/cache/deps/chunk-BUSYA2B4.js +9 -6
  13. package/docs/.vitepress/cache/deps/chunk-JD3CXNQ6.js +2543 -1612
  14. package/docs/.vitepress/cache/deps/chunk-SYPOPCWC.js +3508 -2529
  15. package/docs/.vitepress/cache/deps/cytoscape-cose-bilkent.js +1902 -1003
  16. package/docs/.vitepress/cache/deps/cytoscape.js +13303 -7347
  17. package/docs/.vitepress/cache/deps/dayjs.js +494 -272
  18. package/docs/.vitepress/cache/deps/debug.js +82 -38
  19. package/docs/.vitepress/cache/deps/prismjs.js +444 -272
  20. package/docs/.vitepress/cache/deps/prismjs_components_prism-bash.js +80 -73
  21. package/docs/.vitepress/cache/deps/prismjs_components_prism-javascript.js +93 -62
  22. package/docs/.vitepress/cache/deps/prismjs_components_prism-json.js +13 -13
  23. package/docs/.vitepress/cache/deps/prismjs_components_prism-python.js +34 -27
  24. package/docs/.vitepress/cache/deps/prismjs_components_prism-typescript.js +20 -17
  25. package/docs/.vitepress/cache/deps/prismjs_components_prism-yaml.js +75 -41
  26. package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +2005 -1438
  27. package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +2 -2
  28. package/docs/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js +566 -229
  29. package/docs/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js +382 -270
  30. package/docs/.vitepress/cache/deps/vitepress___minisearch.js +334 -125
  31. package/docs/.vitepress/cache/deps/vue.js +2 -2
  32. package/docs/.vitepress/components/ClientGrid.vue +9 -3
  33. package/docs/.vitepress/components/CodeBlock.vue +51 -44
  34. package/docs/.vitepress/components/ConfigModal.vue +151 -67
  35. package/docs/.vitepress/components/DiagramModal.vue +186 -154
  36. package/docs/.vitepress/components/TroubleshootingModal.vue +101 -96
  37. package/docs/.vitepress/config.js +171 -141
  38. package/docs/.vitepress/theme/FundingLayout.vue +65 -54
  39. package/docs/.vitepress/theme/Layout.vue +21 -21
  40. package/docs/.vitepress/theme/components/AdBanner.vue +73 -52
  41. package/docs/.vitepress/theme/components/AdPlaceholder.vue +3 -3
  42. package/docs/.vitepress/theme/components/FundingEffects.vue +77 -53
  43. package/docs/.vitepress/theme/components/FundingHero.vue +78 -63
  44. package/docs/.vitepress/theme/components/SupportSection.vue +106 -89
  45. package/docs/.vitepress/theme/custom-app.css +19 -12
  46. package/docs/.vitepress/theme/custom.css +33 -25
  47. package/docs/.vitepress/theme/index.js +19 -16
  48. package/docs/concepts/accessibility.md +59 -47
  49. package/docs/concepts/color-spaces.md +28 -6
  50. package/docs/concepts/distance-metrics.md +45 -30
  51. package/docs/concepts/hct.md +30 -27
  52. package/docs/concepts/image-analysis.md +52 -21
  53. package/docs/concepts/material-design.md +43 -17
  54. package/docs/concepts/theme-matching.md +64 -40
  55. package/docs/examples/basic-colors.md +92 -108
  56. package/docs/examples/creating-themes.md +104 -108
  57. package/docs/examples/css-refactoring.md +33 -29
  58. package/docs/examples/image-extraction.md +145 -138
  59. package/docs/getting-started.md +45 -34
  60. package/docs/index.md +5 -1
  61. package/docs/installation.md +15 -1
  62. package/docs/tools/accessibility.md +74 -68
  63. package/docs/tools/image-extraction.md +62 -54
  64. package/docs/tools/theme-matching.md +45 -42
  65. package/note.md +1 -2
  66. package/package.json +2 -2
@@ -1,76 +1,78 @@
1
1
  // node_modules/prismjs/components/prism-bash.js
2
- (function(Prism2) {
3
- var envVars = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b";
2
+ (function (Prism2) {
3
+ var envVars =
4
+ "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b";
4
5
  var commandAfterHeredoc = {
5
6
  pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
6
7
  lookbehind: true,
7
8
  alias: "punctuation",
8
9
  // this looks reasonably well in all themes
9
- inside: null
10
+ inside: null,
10
11
  // see below
11
12
  };
12
13
  var insideString = {
13
- "bash": commandAfterHeredoc,
14
- "environment": {
14
+ bash: commandAfterHeredoc,
15
+ environment: {
15
16
  pattern: RegExp("\\$" + envVars),
16
- alias: "constant"
17
+ alias: "constant",
17
18
  },
18
- "variable": [
19
+ variable: [
19
20
  // [0]: Arithmetic Environment
20
21
  {
21
22
  pattern: /\$?\(\([\s\S]+?\)\)/,
22
23
  greedy: true,
23
24
  inside: {
24
25
  // If there is a $ sign at the beginning highlight $(( and )) as variable
25
- "variable": [
26
+ variable: [
26
27
  {
27
28
  pattern: /(^\$\(\([\s\S]+)\)\)/,
28
- lookbehind: true
29
+ lookbehind: true,
29
30
  },
30
- /^\$\(\(/
31
+ /^\$\(\(/,
31
32
  ],
32
- "number": /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
33
+ number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
33
34
  // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
34
- "operator": /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
35
+ operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
35
36
  // If there is no $ sign at the beginning highlight (( and )) as punctuation
36
- "punctuation": /\(\(?|\)\)?|,|;/
37
- }
37
+ punctuation: /\(\(?|\)\)?|,|;/,
38
+ },
38
39
  },
39
40
  // [1]: Command Substitution
40
41
  {
41
42
  pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
42
43
  greedy: true,
43
44
  inside: {
44
- "variable": /^\$\(|^`|\)$|`$/
45
- }
45
+ variable: /^\$\(|^`|\)$|`$/,
46
+ },
46
47
  },
47
48
  // [2]: Brace expansion
48
49
  {
49
50
  pattern: /\$\{[^}]+\}/,
50
51
  greedy: true,
51
52
  inside: {
52
- "operator": /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
53
- "punctuation": /[\[\]]/,
54
- "environment": {
53
+ operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
54
+ punctuation: /[\[\]]/,
55
+ environment: {
55
56
  pattern: RegExp("(\\{)" + envVars),
56
57
  lookbehind: true,
57
- alias: "constant"
58
- }
59
- }
58
+ alias: "constant",
59
+ },
60
+ },
60
61
  },
61
- /\$(?:\w+|[#?*!@$])/
62
+ /\$(?:\w+|[#?*!@$])/,
62
63
  ],
63
64
  // Escape sequences from echo and printf's manuals, and escaped quotes.
64
- "entity": /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
65
+ entity:
66
+ /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/,
65
67
  };
66
68
  Prism2.languages.bash = {
67
- "shebang": {
69
+ shebang: {
68
70
  pattern: /^#!\s*\/.*/,
69
- alias: "important"
71
+ alias: "important",
70
72
  },
71
- "comment": {
73
+ comment: {
72
74
  pattern: /(^|[^"{\\$])#.*/,
73
- lookbehind: true
75
+ lookbehind: true,
74
76
  },
75
77
  "function-name": [
76
78
  // a) function foo {
@@ -81,47 +83,47 @@
81
83
  // a) and c)
82
84
  pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
83
85
  lookbehind: true,
84
- alias: "function"
86
+ alias: "function",
85
87
  },
86
88
  {
87
89
  // b)
88
90
  pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
89
- alias: "function"
90
- }
91
+ alias: "function",
92
+ },
91
93
  ],
92
94
  // Highlight variable names as variables in for and select beginnings.
93
95
  "for-or-select": {
94
96
  pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
95
97
  alias: "variable",
96
- lookbehind: true
98
+ lookbehind: true,
97
99
  },
98
100
  // Highlight variable names as variables in the left-hand part
99
101
  // of assignments (“=” and “+=”).
100
102
  "assign-left": {
101
103
  pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
102
104
  inside: {
103
- "environment": {
105
+ environment: {
104
106
  pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + envVars),
105
107
  lookbehind: true,
106
- alias: "constant"
107
- }
108
+ alias: "constant",
109
+ },
108
110
  },
109
111
  alias: "variable",
110
- lookbehind: true
112
+ lookbehind: true,
111
113
  },
112
114
  // Highlight parameter names as variables
113
- "parameter": {
115
+ parameter: {
114
116
  pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
115
117
  alias: "variable",
116
- lookbehind: true
118
+ lookbehind: true,
117
119
  },
118
- "string": [
120
+ string: [
119
121
  // Support for Here-documents https://en.wikipedia.org/wiki/Here_document
120
122
  {
121
123
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
122
124
  lookbehind: true,
123
125
  greedy: true,
124
- inside: insideString
126
+ inside: insideString,
125
127
  },
126
128
  // Here-document with quotes around the tag
127
129
  // → No expansion (so no “inside”).
@@ -130,75 +132,80 @@
130
132
  lookbehind: true,
131
133
  greedy: true,
132
134
  inside: {
133
- "bash": commandAfterHeredoc
134
- }
135
+ bash: commandAfterHeredoc,
136
+ },
135
137
  },
136
138
  // “Normal” string
137
139
  {
138
140
  // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
139
- pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
141
+ pattern:
142
+ /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
140
143
  lookbehind: true,
141
144
  greedy: true,
142
- inside: insideString
145
+ inside: insideString,
143
146
  },
144
147
  {
145
148
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
146
149
  pattern: /(^|[^$\\])'[^']*'/,
147
150
  lookbehind: true,
148
- greedy: true
151
+ greedy: true,
149
152
  },
150
153
  {
151
154
  // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
152
155
  pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
153
156
  greedy: true,
154
157
  inside: {
155
- "entity": insideString.entity
156
- }
157
- }
158
+ entity: insideString.entity,
159
+ },
160
+ },
158
161
  ],
159
- "environment": {
162
+ environment: {
160
163
  pattern: RegExp("\\$?" + envVars),
161
- alias: "constant"
164
+ alias: "constant",
162
165
  },
163
- "variable": insideString.variable,
164
- "function": {
165
- pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
166
- lookbehind: true
166
+ variable: insideString.variable,
167
+ function: {
168
+ pattern:
169
+ /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
170
+ lookbehind: true,
167
171
  },
168
- "keyword": {
169
- pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
170
- lookbehind: true
172
+ keyword: {
173
+ pattern:
174
+ /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
175
+ lookbehind: true,
171
176
  },
172
177
  // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
173
- "builtin": {
174
- pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
178
+ builtin: {
179
+ pattern:
180
+ /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
175
181
  lookbehind: true,
176
182
  // Alias added to make those easier to distinguish from strings.
177
- alias: "class-name"
183
+ alias: "class-name",
178
184
  },
179
- "boolean": {
185
+ boolean: {
180
186
  pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
181
- lookbehind: true
187
+ lookbehind: true,
182
188
  },
183
189
  "file-descriptor": {
184
190
  pattern: /\B&\d\b/,
185
- alias: "important"
191
+ alias: "important",
186
192
  },
187
- "operator": {
193
+ operator: {
188
194
  // Lots of redirections here, but not just that.
189
- pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
195
+ pattern:
196
+ /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
190
197
  inside: {
191
198
  "file-descriptor": {
192
199
  pattern: /^\d/,
193
- alias: "important"
194
- }
195
- }
200
+ alias: "important",
201
+ },
202
+ },
196
203
  },
197
- "punctuation": /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
198
- "number": {
204
+ punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
205
+ number: {
199
206
  pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
200
- lookbehind: true
201
- }
207
+ lookbehind: true,
208
+ },
202
209
  };
203
210
  commandAfterHeredoc.inside = Prism2.languages.bash;
204
211
  var toBeCopied = [
@@ -216,7 +223,7 @@
216
223
  "file-descriptor",
217
224
  "operator",
218
225
  "punctuation",
219
- "number"
226
+ "number",
220
227
  ];
221
228
  var inside = insideString.variable[1].inside;
222
229
  for (var i = 0; i < toBeCopied.length; i++) {
@@ -3,49 +3,70 @@ Prism.languages.javascript = Prism.languages.extend("clike", {
3
3
  "class-name": [
4
4
  Prism.languages.clike["class-name"],
5
5
  {
6
- pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
7
- lookbehind: true
8
- }
6
+ pattern:
7
+ /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
8
+ lookbehind: true,
9
+ },
9
10
  ],
10
- "keyword": [
11
+ keyword: [
11
12
  {
12
13
  pattern: /((?:^|\})\s*)catch\b/,
13
- lookbehind: true
14
+ lookbehind: true,
14
15
  },
15
16
  {
16
- pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
17
- lookbehind: true
18
- }
17
+ pattern:
18
+ /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
19
+ lookbehind: true,
20
+ },
19
21
  ],
20
22
  // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
21
- "function": /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
22
- "number": {
23
+ function:
24
+ /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
25
+ number: {
23
26
  pattern: RegExp(
24
- /(^|[^\w$])/.source + "(?:" + // constant
25
- (/NaN|Infinity/.source + "|" + // binary integer
26
- /0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
27
- /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
28
- /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
29
- /\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
30
- /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
27
+ /(^|[^\w$])/.source +
28
+ "(?:" + // constant
29
+ (/NaN|Infinity/.source +
30
+ "|" + // binary integer
31
+ /0[bB][01]+(?:_[01]+)*n?/.source +
32
+ "|" + // octal integer
33
+ /0[oO][0-7]+(?:_[0-7]+)*n?/.source +
34
+ "|" + // hexadecimal integer
35
+ /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source +
36
+ "|" + // decimal bigint
37
+ /\d+(?:_\d+)*n/.source +
38
+ "|" + // decimal number (integer or float) but no bigint
39
+ /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/
40
+ .source) +
41
+ ")" +
42
+ /(?![\w$])/.source,
31
43
  ),
32
- lookbehind: true
44
+ lookbehind: true,
33
45
  },
34
- "operator": /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
46
+ operator:
47
+ /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,
35
48
  });
36
- Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;
49
+ Prism.languages.javascript["class-name"][0].pattern =
50
+ /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;
37
51
  Prism.languages.insertBefore("javascript", "keyword", {
38
- "regex": {
52
+ regex: {
39
53
  pattern: RegExp(
40
54
  // lookbehind
41
55
  // eslint-disable-next-line regexp/no-dupe-characters-character-class
42
56
  /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + // Regex pattern:
43
- // There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
44
- // classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
45
- // with the only syntax, so we have to define 2 different regex patterns.
46
- /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + // `v` flag syntax. This supports 3 levels of nested character classes.
47
- /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + // lookahead
48
- /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
57
+ // There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
58
+ // classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
59
+ // with the only syntax, so we have to define 2 different regex patterns.
60
+ /\//.source +
61
+ "(?:" +
62
+ /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/
63
+ .source +
64
+ "|" + // `v` flag syntax. This supports 3 levels of nested character classes.
65
+ /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/
66
+ .source +
67
+ ")" + // lookahead
68
+ /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/
69
+ .source,
49
70
  ),
50
71
  lookbehind: true,
51
72
  greedy: true,
@@ -54,88 +75,98 @@ Prism.languages.insertBefore("javascript", "keyword", {
54
75
  pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
55
76
  lookbehind: true,
56
77
  alias: "language-regex",
57
- inside: Prism.languages.regex
78
+ inside: Prism.languages.regex,
58
79
  },
59
80
  "regex-delimiter": /^\/|\/$/,
60
- "regex-flags": /^[a-z]+$/
61
- }
81
+ "regex-flags": /^[a-z]+$/,
82
+ },
62
83
  },
63
84
  // This must be declared before keyword because we use "function" inside the look-forward
64
85
  "function-variable": {
65
- pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
66
- alias: "function"
86
+ pattern:
87
+ /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
88
+ alias: "function",
67
89
  },
68
- "parameter": [
90
+ parameter: [
69
91
  {
70
- pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
92
+ pattern:
93
+ /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
71
94
  lookbehind: true,
72
- inside: Prism.languages.javascript
95
+ inside: Prism.languages.javascript,
73
96
  },
74
97
  {
75
- pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
98
+ pattern:
99
+ /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
76
100
  lookbehind: true,
77
- inside: Prism.languages.javascript
101
+ inside: Prism.languages.javascript,
78
102
  },
79
103
  {
80
- pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
104
+ pattern:
105
+ /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
81
106
  lookbehind: true,
82
- inside: Prism.languages.javascript
107
+ inside: Prism.languages.javascript,
83
108
  },
84
109
  {
85
- pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
110
+ pattern:
111
+ /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
86
112
  lookbehind: true,
87
- inside: Prism.languages.javascript
88
- }
113
+ inside: Prism.languages.javascript,
114
+ },
89
115
  ],
90
- "constant": /\b[A-Z](?:[A-Z_]|\dx?)*\b/
116
+ constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/,
91
117
  });
92
118
  Prism.languages.insertBefore("javascript", "string", {
93
- "hashbang": {
119
+ hashbang: {
94
120
  pattern: /^#!.*/,
95
121
  greedy: true,
96
- alias: "comment"
122
+ alias: "comment",
97
123
  },
98
124
  "template-string": {
99
- pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
125
+ pattern:
126
+ /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
100
127
  greedy: true,
101
128
  inside: {
102
129
  "template-punctuation": {
103
130
  pattern: /^`|`$/,
104
- alias: "string"
131
+ alias: "string",
105
132
  },
106
- "interpolation": {
107
- pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
133
+ interpolation: {
134
+ pattern:
135
+ /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
108
136
  lookbehind: true,
109
137
  inside: {
110
138
  "interpolation-punctuation": {
111
139
  pattern: /^\$\{|\}$/,
112
- alias: "punctuation"
140
+ alias: "punctuation",
113
141
  },
114
- rest: Prism.languages.javascript
115
- }
142
+ rest: Prism.languages.javascript,
143
+ },
116
144
  },
117
- "string": /[\s\S]+/
118
- }
145
+ string: /[\s\S]+/,
146
+ },
119
147
  },
120
148
  "string-property": {
121
- pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
149
+ pattern:
150
+ /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
122
151
  lookbehind: true,
123
152
  greedy: true,
124
- alias: "property"
125
- }
153
+ alias: "property",
154
+ },
126
155
  });
127
156
  Prism.languages.insertBefore("javascript", "operator", {
128
157
  "literal-property": {
129
- pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
158
+ pattern:
159
+ /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
130
160
  lookbehind: true,
131
- alias: "property"
132
- }
161
+ alias: "property",
162
+ },
133
163
  });
134
164
  if (Prism.languages.markup) {
135
165
  Prism.languages.markup.tag.addInlined("script", "javascript");
136
166
  Prism.languages.markup.tag.addAttribute(
137
- /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
138
- "javascript"
167
+ /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/
168
+ .source,
169
+ "javascript",
139
170
  );
140
171
  }
141
172
  Prism.languages.js = Prism.languages.javascript;
@@ -1,27 +1,27 @@
1
1
  // node_modules/prismjs/components/prism-json.js
2
2
  Prism.languages.json = {
3
- "property": {
3
+ property: {
4
4
  pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
5
5
  lookbehind: true,
6
- greedy: true
6
+ greedy: true,
7
7
  },
8
- "string": {
8
+ string: {
9
9
  pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
10
10
  lookbehind: true,
11
- greedy: true
11
+ greedy: true,
12
12
  },
13
- "comment": {
13
+ comment: {
14
14
  pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
15
- greedy: true
15
+ greedy: true,
16
16
  },
17
- "number": /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
18
- "punctuation": /[{}[\],]/,
19
- "operator": /:/,
20
- "boolean": /\b(?:false|true)\b/,
21
- "null": {
17
+ number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
18
+ punctuation: /[{}[\],]/,
19
+ operator: /:/,
20
+ boolean: /\b(?:false|true)\b/,
21
+ null: {
22
22
  pattern: /\bnull\b/,
23
- alias: "keyword"
24
- }
23
+ alias: "keyword",
24
+ },
25
25
  };
26
26
  Prism.languages.webmanifest = Prism.languages.json;
27
27
  //# sourceMappingURL=prismjs_components_prism-json.js.map