@rsbuild/webpack 0.0.0-next-20231103091827

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 (158) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +19 -0
  3. package/compiled/ansi-escapes/index.d.ts +248 -0
  4. package/compiled/ansi-escapes/index.js +1 -0
  5. package/compiled/ansi-escapes/license +9 -0
  6. package/compiled/ansi-escapes/package.json +1 -0
  7. package/compiled/ansi-escapes/type-fest/index.d.ts +2 -0
  8. package/compiled/babel-plugin-lodash/index.d.ts +1 -0
  9. package/compiled/babel-plugin-lodash/index.js +1 -0
  10. package/compiled/babel-plugin-lodash/license +44 -0
  11. package/compiled/babel-plugin-lodash/package.json +1 -0
  12. package/compiled/babel-plugin-transform-react-remove-prop-types/index.d.ts +1 -0
  13. package/compiled/babel-plugin-transform-react-remove-prop-types/index.js +1 -0
  14. package/compiled/babel-plugin-transform-react-remove-prop-types/license +22 -0
  15. package/compiled/babel-plugin-transform-react-remove-prop-types/package.json +1 -0
  16. package/compiled/cli-truncate/index.d.ts +96 -0
  17. package/compiled/cli-truncate/index.js +1 -0
  18. package/compiled/cli-truncate/license +9 -0
  19. package/compiled/cli-truncate/package.json +1 -0
  20. package/compiled/copy-webpack-plugin/index.d.ts +1 -0
  21. package/compiled/copy-webpack-plugin/index.js +22 -0
  22. package/compiled/copy-webpack-plugin/license +20 -0
  23. package/compiled/copy-webpack-plugin/package.json +1 -0
  24. package/compiled/patch-console/build/index.d.ts +4 -0
  25. package/compiled/patch-console/index.js +1 -0
  26. package/compiled/patch-console/package.json +1 -0
  27. package/compiled/schema-utils3/index.d.ts +1 -0
  28. package/compiled/schema-utils3/index.js +3 -0
  29. package/compiled/schema-utils3/license +20 -0
  30. package/compiled/schema-utils3/package.json +1 -0
  31. package/compiled/tapable/index.js +1 -0
  32. package/compiled/tapable/license +21 -0
  33. package/compiled/tapable/package.json +1 -0
  34. package/compiled/tapable/tapable.d.ts +116 -0
  35. package/compiled/webpack-manifest-plugin/index.js +1 -0
  36. package/compiled/webpack-manifest-plugin/license +21 -0
  37. package/compiled/webpack-manifest-plugin/package.json +1 -0
  38. package/compiled/webpack-manifest-plugin/types/helpers.d.ts +23 -0
  39. package/compiled/webpack-manifest-plugin/types/hooks.d.ts +24 -0
  40. package/compiled/webpack-manifest-plugin/types/index.d.ts +30 -0
  41. package/compiled/webpack-sources/index.d.ts +1 -0
  42. package/compiled/webpack-sources/index.js +1 -0
  43. package/compiled/webpack-sources/license +21 -0
  44. package/compiled/webpack-sources/package.json +1 -0
  45. package/dist/config/defaults.d.ts +3 -0
  46. package/dist/config/defaults.js +52 -0
  47. package/dist/config/normalize.d.ts +7 -0
  48. package/dist/config/normalize.js +33 -0
  49. package/dist/core/build.d.ts +20 -0
  50. package/dist/core/build.js +80 -0
  51. package/dist/core/createCompiler.d.ts +8 -0
  52. package/dist/core/createCompiler.js +68 -0
  53. package/dist/core/createContext.d.ts +13 -0
  54. package/dist/core/createContext.js +56 -0
  55. package/dist/core/devMiddleware.d.ts +5 -0
  56. package/dist/core/devMiddleware.js +73 -0
  57. package/dist/core/initConfigs.d.ts +14 -0
  58. package/dist/core/initConfigs.js +76 -0
  59. package/dist/core/initHooks.d.ts +19 -0
  60. package/dist/core/initHooks.js +44 -0
  61. package/dist/core/initPlugins.d.ts +9 -0
  62. package/dist/core/initPlugins.js +83 -0
  63. package/dist/core/inspectConfig.d.ts +20 -0
  64. package/dist/core/inspectConfig.js +81 -0
  65. package/dist/core/startDevServer.d.ts +5 -0
  66. package/dist/core/startDevServer.js +75 -0
  67. package/dist/core/webpackConfig.d.ts +9 -0
  68. package/dist/core/webpackConfig.js +164 -0
  69. package/dist/exports/webpack.d.ts +2 -0
  70. package/dist/exports/webpack.js +35 -0
  71. package/dist/index.d.ts +6 -0
  72. package/dist/index.js +34 -0
  73. package/dist/plugins/babel.d.ts +3 -0
  74. package/dist/plugins/babel.js +171 -0
  75. package/dist/plugins/basic.d.ts +5 -0
  76. package/dist/plugins/basic.js +60 -0
  77. package/dist/plugins/copy.d.ts +2 -0
  78. package/dist/plugins/copy.js +69 -0
  79. package/dist/plugins/css.d.ts +23 -0
  80. package/dist/plugins/css.js +123 -0
  81. package/dist/plugins/fallback.d.ts +2 -0
  82. package/dist/plugins/fallback.js +51 -0
  83. package/dist/plugins/hmr.d.ts +2 -0
  84. package/dist/plugins/hmr.js +41 -0
  85. package/dist/plugins/lazyCompilation.d.ts +2 -0
  86. package/dist/plugins/lazyCompilation.js +43 -0
  87. package/dist/plugins/less.d.ts +6 -0
  88. package/dist/plugins/less.js +65 -0
  89. package/dist/plugins/manifest.d.ts +2 -0
  90. package/dist/plugins/manifest.js +58 -0
  91. package/dist/plugins/minimize.d.ts +2 -0
  92. package/dist/plugins/minimize.js +64 -0
  93. package/dist/plugins/moduleScopes.d.ts +5 -0
  94. package/dist/plugins/moduleScopes.js +85 -0
  95. package/dist/plugins/output.d.ts +2 -0
  96. package/dist/plugins/output.js +66 -0
  97. package/dist/plugins/progress.d.ts +2 -0
  98. package/dist/plugins/progress.js +57 -0
  99. package/dist/plugins/react.d.ts +2 -0
  100. package/dist/plugins/react.js +96 -0
  101. package/dist/plugins/resolve.d.ts +2 -0
  102. package/dist/plugins/resolve.js +88 -0
  103. package/dist/plugins/sass.d.ts +2 -0
  104. package/dist/plugins/sass.js +76 -0
  105. package/dist/plugins/sri.d.ts +2 -0
  106. package/dist/plugins/sri.js +43 -0
  107. package/dist/plugins/tsLoader.d.ts +2 -0
  108. package/dist/plugins/tsLoader.js +103 -0
  109. package/dist/provider.d.ts +9 -0
  110. package/dist/provider.js +104 -0
  111. package/dist/shared/fs.d.ts +1 -0
  112. package/dist/shared/fs.js +38 -0
  113. package/dist/shared/index.d.ts +1 -0
  114. package/dist/shared/index.js +22 -0
  115. package/dist/shared/plugin.d.ts +5 -0
  116. package/dist/shared/plugin.js +111 -0
  117. package/dist/types/config/index.d.ts +30 -0
  118. package/dist/types/config/index.js +26 -0
  119. package/dist/types/config/security.d.ts +9 -0
  120. package/dist/types/config/security.js +16 -0
  121. package/dist/types/config/source.d.ts +26 -0
  122. package/dist/types/config/source.js +16 -0
  123. package/dist/types/config/tools.d.ts +52 -0
  124. package/dist/types/config/tools.js +16 -0
  125. package/dist/types/context.d.ts +17 -0
  126. package/dist/types/context.js +16 -0
  127. package/dist/types/hooks.d.ts +24 -0
  128. package/dist/types/hooks.js +16 -0
  129. package/dist/types/index.d.ts +5 -0
  130. package/dist/types/index.js +30 -0
  131. package/dist/types/plugin.d.ts +10 -0
  132. package/dist/types/plugin.js +16 -0
  133. package/dist/types/thirdParty/css.d.ts +7 -0
  134. package/dist/types/thirdParty/css.js +16 -0
  135. package/dist/types/thirdParty/index.d.ts +9 -0
  136. package/dist/types/thirdParty/index.js +16 -0
  137. package/dist/webpackPlugins/ModuleScopePlugin.d.ts +16 -0
  138. package/dist/webpackPlugins/ModuleScopePlugin.js +111 -0
  139. package/dist/webpackPlugins/ProgressPlugin/ProgressPlugin.d.ts +13 -0
  140. package/dist/webpackPlugins/ProgressPlugin/ProgressPlugin.js +102 -0
  141. package/dist/webpackPlugins/ProgressPlugin/helpers/bar.d.ts +5 -0
  142. package/dist/webpackPlugins/ProgressPlugin/helpers/bar.js +143 -0
  143. package/dist/webpackPlugins/ProgressPlugin/helpers/bus.d.ts +17 -0
  144. package/dist/webpackPlugins/ProgressPlugin/helpers/bus.js +105 -0
  145. package/dist/webpackPlugins/ProgressPlugin/helpers/index.d.ts +4 -0
  146. package/dist/webpackPlugins/ProgressPlugin/helpers/index.js +28 -0
  147. package/dist/webpackPlugins/ProgressPlugin/helpers/log.d.ts +8 -0
  148. package/dist/webpackPlugins/ProgressPlugin/helpers/log.js +62 -0
  149. package/dist/webpackPlugins/ProgressPlugin/helpers/nonTty.d.ts +15 -0
  150. package/dist/webpackPlugins/ProgressPlugin/helpers/nonTty.js +56 -0
  151. package/dist/webpackPlugins/ProgressPlugin/helpers/percentage.d.ts +7 -0
  152. package/dist/webpackPlugins/ProgressPlugin/helpers/percentage.js +52 -0
  153. package/dist/webpackPlugins/ProgressPlugin/helpers/type.d.ts +25 -0
  154. package/dist/webpackPlugins/ProgressPlugin/helpers/type.js +16 -0
  155. package/dist/webpackPlugins/ProgressPlugin/helpers/utils.d.ts +1 -0
  156. package/dist/webpackPlugins/ProgressPlugin/helpers/utils.js +30 -0
  157. package/package.json +88 -0
  158. package/static/ModuleFilenameHelpers.js +2 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present Bytedance, Inc. and its affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ <p align="center">
2
+ <a href="https://rsbuild.dev" target="blank"><img src="https://github.com/web-infra-dev/rsbuild/assets/7237365/84abc13e-b620-468f-a90b-dbf28e7e9427" alt="Rsbuild Logo" /></a>
3
+ </p>
4
+
5
+ # Rsbuild
6
+
7
+ Unleash the power of Rspack with the out-of-the-box build tool.
8
+
9
+ ## Documentation
10
+
11
+ https://rsbuild.dev/
12
+
13
+ ## Contributing
14
+
15
+ Please read the [Contributing Guide](https://github.com/web-infra-dev/rsbuild/blob/main/CONTRIBUTING.md).
16
+
17
+ ## License
18
+
19
+ Rsbuild is [MIT licensed](https://github.com/web-infra-dev/rsbuild/blob/main/LICENSE).
@@ -0,0 +1,248 @@
1
+ /// <reference types="node"/>
2
+ import {LiteralUnion} from './type-fest';
3
+
4
+ declare namespace ansiEscapes {
5
+ interface ImageOptions {
6
+ /**
7
+ The width is given as a number followed by a unit, or the word `'auto'`.
8
+
9
+ - `N`: N character cells.
10
+ - `Npx`: N pixels.
11
+ - `N%`: N percent of the session's width or height.
12
+ - `auto`: The image's inherent size will be used to determine an appropriate dimension.
13
+ */
14
+ readonly width?: LiteralUnion<'auto', number | string>;
15
+
16
+ /**
17
+ The height is given as a number followed by a unit, or the word `'auto'`.
18
+
19
+ - `N`: N character cells.
20
+ - `Npx`: N pixels.
21
+ - `N%`: N percent of the session's width or height.
22
+ - `auto`: The image's inherent size will be used to determine an appropriate dimension.
23
+ */
24
+ readonly height?: LiteralUnion<'auto', number | string>;
25
+
26
+ readonly preserveAspectRatio?: boolean;
27
+ }
28
+
29
+ interface AnnotationOptions {
30
+ /**
31
+ Nonzero number of columns to annotate.
32
+
33
+ Default: The remainder of the line.
34
+ */
35
+ readonly length?: number;
36
+
37
+ /**
38
+ Starting X coordinate.
39
+
40
+ Must be used with `y` and `length`.
41
+
42
+ Default: The cursor position
43
+ */
44
+ readonly x?: number;
45
+
46
+ /**
47
+ Starting Y coordinate.
48
+
49
+ Must be used with `x` and `length`.
50
+
51
+ Default: Cursor position.
52
+ */
53
+ readonly y?: number;
54
+
55
+ /**
56
+ Create a "hidden" annotation.
57
+
58
+ Annotations created this way can be shown using the "Show Annotations" iTerm command.
59
+ */
60
+ readonly isHidden?: boolean;
61
+ }
62
+ }
63
+
64
+ declare const ansiEscapes: {
65
+ /**
66
+ Set the absolute position of the cursor. `x0` `y0` is the top left of the screen.
67
+ */
68
+ cursorTo(x: number, y?: number): string;
69
+
70
+ /**
71
+ Set the position of the cursor relative to its current position.
72
+ */
73
+ cursorMove(x: number, y?: number): string;
74
+
75
+ /**
76
+ Move cursor up a specific amount of rows.
77
+
78
+ @param count - Count of rows to move up. Default is `1`.
79
+ */
80
+ cursorUp(count?: number): string;
81
+
82
+ /**
83
+ Move cursor down a specific amount of rows.
84
+
85
+ @param count - Count of rows to move down. Default is `1`.
86
+ */
87
+ cursorDown(count?: number): string;
88
+
89
+ /**
90
+ Move cursor forward a specific amount of rows.
91
+
92
+ @param count - Count of rows to move forward. Default is `1`.
93
+ */
94
+ cursorForward(count?: number): string;
95
+
96
+ /**
97
+ Move cursor backward a specific amount of rows.
98
+
99
+ @param count - Count of rows to move backward. Default is `1`.
100
+ */
101
+ cursorBackward(count?: number): string;
102
+
103
+ /**
104
+ Move cursor to the left side.
105
+ */
106
+ cursorLeft: string;
107
+
108
+ /**
109
+ Save cursor position.
110
+ */
111
+ cursorSavePosition: string;
112
+
113
+ /**
114
+ Restore saved cursor position.
115
+ */
116
+ cursorRestorePosition: string;
117
+
118
+ /**
119
+ Get cursor position.
120
+ */
121
+ cursorGetPosition: string;
122
+
123
+ /**
124
+ Move cursor to the next line.
125
+ */
126
+ cursorNextLine: string;
127
+
128
+ /**
129
+ Move cursor to the previous line.
130
+ */
131
+ cursorPrevLine: string;
132
+
133
+ /**
134
+ Hide cursor.
135
+ */
136
+ cursorHide: string;
137
+
138
+ /**
139
+ Show cursor.
140
+ */
141
+ cursorShow: string;
142
+
143
+ /**
144
+ Erase from the current cursor position up the specified amount of rows.
145
+
146
+ @param count - Count of rows to erase.
147
+ */
148
+ eraseLines(count: number): string;
149
+
150
+ /**
151
+ Erase from the current cursor position to the end of the current line.
152
+ */
153
+ eraseEndLine: string;
154
+
155
+ /**
156
+ Erase from the current cursor position to the start of the current line.
157
+ */
158
+ eraseStartLine: string;
159
+
160
+ /**
161
+ Erase the entire current line.
162
+ */
163
+ eraseLine: string;
164
+
165
+ /**
166
+ Erase the screen from the current line down to the bottom of the screen.
167
+ */
168
+ eraseDown: string;
169
+
170
+ /**
171
+ Erase the screen from the current line up to the top of the screen.
172
+ */
173
+ eraseUp: string;
174
+
175
+ /**
176
+ Erase the screen and move the cursor the top left position.
177
+ */
178
+ eraseScreen: string;
179
+
180
+ /**
181
+ Scroll display up one line.
182
+ */
183
+ scrollUp: string;
184
+
185
+ /**
186
+ Scroll display down one line.
187
+ */
188
+ scrollDown: string;
189
+
190
+ /**
191
+ Clear the terminal screen. (Viewport)
192
+ */
193
+ clearScreen: string;
194
+
195
+ /**
196
+ Clear the whole terminal, including scrollback buffer. (Not just the visible part of it)
197
+ */
198
+ clearTerminal: string;
199
+
200
+ /**
201
+ Output a beeping sound.
202
+ */
203
+ beep: string;
204
+
205
+ /**
206
+ Create a clickable link.
207
+
208
+ [Supported terminals.](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) Use [`supports-hyperlinks`](https://github.com/jamestalmage/supports-hyperlinks) to detect link support.
209
+ */
210
+ link(text: string, url: string): string;
211
+
212
+ /**
213
+ Display an image.
214
+
215
+ _Currently only supported on iTerm2 >=3_
216
+
217
+ See [term-img](https://github.com/sindresorhus/term-img) for a higher-level module.
218
+
219
+ @param buffer - Buffer of an image. Usually read in with `fs.readFile()`.
220
+ */
221
+ image(buffer: Buffer, options?: ansiEscapes.ImageOptions): string;
222
+
223
+ iTerm: {
224
+ /**
225
+ [Inform iTerm2](https://www.iterm2.com/documentation-escape-codes.html) of the current directory to help semantic history and enable [Cmd-clicking relative paths](https://coderwall.com/p/b7e82q/quickly-open-files-in-iterm-with-cmd-click).
226
+
227
+ @param cwd - Current directory. Default: `process.cwd()`.
228
+ */
229
+ setCwd(cwd?: string): string;
230
+
231
+ /**
232
+ An annotation looks like this when shown:
233
+
234
+ ![screenshot of iTerm annotation](https://user-images.githubusercontent.com/924465/64382136-b60ac700-cfe9-11e9-8a35-9682e8dc4b72.png)
235
+
236
+ See the [iTerm Proprietary Escape Codes documentation](https://iterm2.com/documentation-escape-codes.html) for more information.
237
+
238
+ @param message - The message to display within the annotation. The `|` character is disallowed and will be stripped.
239
+ @returns An escape code which will create an annotation when printed in iTerm2.
240
+ */
241
+ annotation(message: string, options?: ansiEscapes.AnnotationOptions): string;
242
+ };
243
+
244
+ // TODO: remove this in the next major version
245
+ default: typeof ansiEscapes;
246
+ };
247
+
248
+ export = ansiEscapes;
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={933:e=>{const r=e.exports;e.exports["default"]=r;const n="[";const t="]";const o="";const i=";";const s=process.env.TERM_PROGRAM==="Apple_Terminal";r.cursorTo=(e,r)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}if(typeof r!=="number"){return n+(e+1)+"G"}return n+(r+1)+";"+(e+1)+"H"};r.cursorMove=(e,r)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}let t="";if(e<0){t+=n+-e+"D"}else if(e>0){t+=n+e+"C"}if(r<0){t+=n+-r+"A"}else if(r>0){t+=n+r+"B"}return t};r.cursorUp=(e=1)=>n+e+"A";r.cursorDown=(e=1)=>n+e+"B";r.cursorForward=(e=1)=>n+e+"C";r.cursorBackward=(e=1)=>n+e+"D";r.cursorLeft=n+"G";r.cursorSavePosition=s?"7":n+"s";r.cursorRestorePosition=s?"8":n+"u";r.cursorGetPosition=n+"6n";r.cursorNextLine=n+"E";r.cursorPrevLine=n+"F";r.cursorHide=n+"?25l";r.cursorShow=n+"?25h";r.eraseLines=e=>{let n="";for(let t=0;t<e;t++){n+=r.eraseLine+(t<e-1?r.cursorUp():"")}if(e){n+=r.cursorLeft}return n};r.eraseEndLine=n+"K";r.eraseStartLine=n+"1K";r.eraseLine=n+"2K";r.eraseDown=n+"J";r.eraseUp=n+"1J";r.eraseScreen=n+"2J";r.scrollUp=n+"S";r.scrollDown=n+"T";r.clearScreen="c";r.clearTerminal=process.platform==="win32"?`${r.eraseScreen}${n}0f`:`${r.eraseScreen}${n}3J${n}H`;r.beep=o;r.link=(e,r)=>[t,"8",i,i,r,o,e,t,"8",i,i,o].join("");r.image=(e,r={})=>{let n=`${t}1337;File=inline=1`;if(r.width){n+=`;width=${r.width}`}if(r.height){n+=`;height=${r.height}`}if(r.preserveAspectRatio===false){n+=";preserveAspectRatio=0"}return n+":"+e.toString("base64")+o};r.iTerm={setCwd:(e=process.cwd())=>`${t}50;CurrentDir=${e}${o}`,annotation:(e,r={})=>{let n=`${t}1337;`;const i=typeof r.x!=="undefined";const s=typeof r.y!=="undefined";if((i||s)&&!(i&&s&&typeof r.length!=="undefined")){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}e=e.replace(/\|/g,"");n+=r.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(r.length>0){n+=(i?[e,r.length,r.x,r.y]:[r.length,e]).join("|")}else{n+=e}return n+o}}}};var r={};function __nccwpck_require__(n){var t=r[n];if(t!==undefined){return t.exports}var o=r[n]={exports:{}};var i=true;try{e[n](o,o.exports,__nccwpck_require__);i=false}finally{if(i)delete r[n]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(933);module.exports=n})();
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"ansi-escapes","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"version":"4.3.2","funding":"https://github.com/sponsors/sindresorhus","license":"MIT"}
@@ -0,0 +1,2 @@
1
+ // These are all the basic types that's compatible with all supported TypeScript versions.
2
+ export * from './base';
@@ -0,0 +1 @@
1
+ export = any;
@@ -0,0 +1 @@
1
+ (()=>{var e={443:(e,t)=>{"use strict";t.__esModule=true;t["default"]=MapCtor;function MapCtor(e){return Object.setPrototypeOf(new Map(e),Object.getPrototypeOf(this))}MapCtor.prototype=Map.prototype;e.exports=t["default"]},390:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var a=_interopRequireDefault(r(443));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var i={};var s=function(e){_inheritsLoose(MapCache,e);function MapCache(){return e.apply(this,arguments)||this}var t=MapCache.prototype;t.clear=function clear(){e.prototype.clear.call(this);return this};t.findKey=function findKey(e){var t;try{this.forEach((function(r,a,s){if(e(r,a,s)){t=a;throw i}}))}catch(e){if(e!==i){throw e}}return t};return MapCache}(a.default);t["default"]=s;e.exports=t["default"]},537:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var a=_interopRequireDefault(r(848));var i=_interopRequireDefault(r(30));var s=_interopRequireDefault(r(823));var o=_interopRequireDefault(r(320));var n=_interopRequireDefault(r(765));var u=_interopRequireDefault(r(865));var l=_interopRequireDefault(r(147));var f=_interopRequireDefault(r(205));var d=_interopRequireDefault(r(390));var p=_interopRequireDefault(r(188));var c=r(906);var h=_interopRequireDefault(r(17));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _assertThisInitialized(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var m=function(e){_inheritsLoose(ModuleCache,e);function ModuleCache(t){var r;r=e.call(this)||this;t=(0,u.default)(t);if(!t){return _assertThisInitialized(r)}var a=h.default.join(t,"package.json");var p=l.default.existsSync(a)&&require(a).main||"index.js";var m=(0,c.normalizePath)(h.default.dirname(h.default.resolve(t,p)));var _=(0,n.default)(f.default.sync(h.default.join(t,"**/"),{ignore:h.default.join(t,"node_modules/**/")}),(function(e){return(0,o.default)(e,m)}),["desc"]);(0,s.default)(_,(function(e){var a=h.default.relative(t,e);var s=f.default.sync(h.default.join(e,"*.js"));var o=(0,i.default)(s,(function(e){var t=h.default.basename(e,".js");return[t.toLowerCase(),t]}));r.set(a,new d.default(o))}));return r}ModuleCache.resolve=function resolve(e,t){if(t===void 0){t=process.cwd()}try{var r=h.default.dirname(p.default._resolveFilename(e,(0,a.default)(new p.default,{paths:p.default._nodeModulePaths(t)}))).split(h.default.sep);var i=r.length;while(i--){var s=r.slice(0,i+1);var o=s.join("/");var n=h.default.join(o,"package.json");if(i&&r[i-1]=="node_modules"||l.default.existsSync(n)&&require(n).name==e){return o}}return r.join("/")}catch(e){}return""};return ModuleCache}(d.default);t["default"]=m;e.exports=t["default"]},715:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var a=_interopRequireDefault(r(73));var i=_interopRequireDefault(r(865));var s=_interopRequireDefault(r(72));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o=/^lodash(?:-compat|-es)?$/;var n=function Package(e){e=(0,i.default)(e);var t=(0,s.default)(e);this.base=e.replace(new RegExp(t+"/?"),"");this.id=t;this.isLodash=(0,a.default)(o.test(this.id));this.path=e};t["default"]=n;e.exports=t["default"]},498:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var a=_interopRequireDefault(r(823));var i=_interopRequireDefault(r(390));var s=r(906);var o=_interopRequireDefault(r(715));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var n=function(e){_inheritsLoose(Store,e);function Store(t){var r;r=e.call(this)||this;(0,a.default)(t,(function(e){return r.set(e)}));return r}var t=Store.prototype;t.get=function get(t){return e.prototype.get.call(this,(0,s.normalizePath)(t))};t.set=function set(t,r){if(r===void 0){r=new o.default((0,s.normalizePath)(t))}return e.prototype.set.call(this,(0,s.normalizePath)(t),r)};return Store}(i.default);t["default"]=n;e.exports=t["default"]},176:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=config;var a=_interopRequireDefault(r(779));var i=_interopRequireDefault(r(823));var s=_interopRequireDefault(r(390));var o=_interopRequireDefault(r(537));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var n=["lodash","lodash-es","lodash-compat"];var u;var l=[];var f=new s.default;function config(e){var t=e===void 0?{}:e,r=t.cwd,s=r===void 0?process.cwd():r,d=t.id,p=d===void 0?n:d;if(u!==s){u=s;f.clear()}(0,i.default)((0,a.default)(p),(function(e){if(!f.get(e)){var t=o.default.resolve(e,s);if(t){l.push(e);f.set(e,new o.default(t))}}}));return{ids:l,modules:f}}e.exports=t["default"]},445:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var a=_interopRequireDefault(r(319));var i=r(408);var s=_interopRequireDefault(r(698));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function resolvePath(e,t,r){var a=e.base,i=e.id;var o=t.toLowerCase();var n=s.default.modules.get(i);if(!n.get(a).has(o)){a=a?"":n.findKey((function(e){return e.has(o)}));if(!a){throw r.buildCodeFrameError([`The '${i}' method \`${t}\` is not a known module.`,"Please report bugs to https://github.com/lodash/babel-plugin-lodash/issues."].join("\n"))}}return i+"/"+(a?a+"/":"")+n.get(a).get(o)}function importModule(e,t,r){return(0,i.addDefault)(r,resolvePath(e,t,r),{nameHint:t})}var o=(0,a.default)(importModule,(function(e,t){return(e.path+"/"+t).toLowerCase()}));t["default"]=o;e.exports=t["default"]},380:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=lodash;var a=_interopRequireDefault(r(80));var i=_interopRequireDefault(r(163));var s=_interopRequireDefault(r(823));var o=_interopRequireDefault(r(848));var n=r(638);var u=_interopRequireDefault(r(176));var l=_interopRequireDefault(r(445));var f=_interopRequireDefault(r(698));var d=_interopRequireDefault(r(498));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var p=["Lodash chain sequences are not supported by babel-plugin-lodash.","Consider substituting chain sequences with composition patterns.","See https://medium.com/making-internets/why-using-chain-is-a-mistake-9bc1f80d51ba"].join("\n");function lodash(e){var t=e.types;var r={PLACEHOLDER:t.identifier("placeholder"),UNDEFINED:t.identifier("undefined")};var c=new d.default;function getCallee(e){var r=e.parentPath;while(!r.isStatement()){if(r.isCallExpression()){var a=r.node.callee;while(t.isCallExpression(a)){a=a.callee}return a}r=r.parentPath}}var h={Program(e,a){var d=(0,o.default)(f.default,(0,u.default)(a.opts)),h=d.ids;var m=e.hub.file;l.default.cache.clear();c.clear();(0,s.default)(h,(function(e){c.set(e);f.default.modules.get(e).forEach((function(t,r){c.set(e+"/"+r)}))}));var _=[];var v=false;for(var b=m.ast.program.body,y=Array.isArray(b),g=0,b=y?b:b[Symbol.iterator]();;){var D;if(y){if(g>=b.length)break;D=b[g++]}else{g=b.next();if(g.done)break;D=g.value}var q=D;if((0,n.isImportDeclaration)(q)||(0,n.isExportDeclaration)(q)){v=true;break}}if(v){m.path.traverse({ImportDeclaration:{exit(e){var t=e.node;var r=[];var a=[];_.push({source:t.source.value,imported:r,specifiers:a});for(var i=e.get("specifiers"),s=Array.isArray(i),o=0,i=s?i:i[Symbol.iterator]();;){var n;if(s){if(o>=i.length)break;n=i[o++]}else{o=i.next();if(o.done)break;n=o.value}var u=n;var l=u.node.local.name;if(u.isImportDefaultSpecifier()){r.push("default");a.push({kind:"named",imported:"default",local:l})}if(u.isImportSpecifier()){var f=u.node.imported.name;r.push(f);a.push({kind:"named",imported:f,local:l})}if(u.isImportNamespaceSpecifier()){r.push("*");a.push({kind:"namespace",local:l})}}}}})}(0,s.default)(_,(function(e){var a=c.get(e.source);if(!a){return}var o=a.isLodash();var n=(0,i.default)(e.specifiers,(function(e){return e.imported==="default"}));(0,s.default)(n,(function(e){var i=e.imported,n=e.local;var u=m.scope.getBinding(n);var f=u.path.parent.importKind,d=f===void 0?"value":f;if(d!="value"){return}var c=o&&i==="chain";(0,s.default)(u.referencePaths,(function(e){var s=e.node,u=e.parentPath;var f=s.type;if(i&&i!=="default"){if(c&&e.parentPath.isCallExpression()){throw e.buildCodeFrameError(p)}var d=(0,l.default)(a,i,e),h=d.name;e.replaceWith({type:f,name:h})}else if(u.isMemberExpression()){var m=e.parent.property.name;if(o&&m==="chain"&&u.parentPath.isCallExpression()){throw e.buildCodeFrameError(p)}var _=(0,l.default)(a,m,e),v=_.name;u.replaceWith({type:f,name:v})}else if(o){var b=getCallee(e);if(b&&b.name===n){throw e.buildCodeFrameError(p)}e.replaceWith(b?t.memberExpression(b,r.PLACEHOLDER):r.UNDEFINED)}}))}))}))},ImportDeclaration(e){if(c.get(e.node.source.value)){e.remove()}},ExportNamedDeclaration(e){var t=e.node;var r=(0,a.default)(t,"source.value");var i=c.get(r);if(!i){return}t.source=null;(0,s.default)(t.specifiers,(function(t){t.local=(0,l.default)(i,t.local.name,e)}))}};return{visitor:h}}e.exports=t["default"]},698:(e,t,r)=>{"use strict";t.__esModule=true;t["default"]=void 0;var a=_interopRequireDefault(r(176));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=(0,a.default)();t["default"]=i;e.exports=t["default"]},906:(e,t,r)=>{"use strict";t.__esModule=true;t.normalizePath=normalizePath;var a=_interopRequireDefault(r(865));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function normalizePath(e){return(0,a.default)(e).replace(/\\/g,"/")}},72:e=>{var t=/^(?:(@[^/]+)[/]+)([^/]+)[/]?/;var r=/^([^/]+)[/]?/;e.exports=extract.bind(null,false);e.exports.base=extract.bind(null,true);function extract(e,a){if(/^@/.test(a)){var i=t.exec(a);if(!i||!i[1]||!i[2])return null;if(e)return i[2]||null;return[i[1],i[2]].join("/")}else{var i=r.exec(a);if(!i)return null;return i[1]||null}}},638:e=>{"use strict";e.exports=require("@babel/types")},205:e=>{"use strict";e.exports=require("@modern-js/utils/glob")},491:e=>{"use strict";e.exports=require("assert")},147:e=>{"use strict";e.exports=require("fs")},848:e=>{"use strict";e.exports=require("lodash/assign")},779:e=>{"use strict";e.exports=require("lodash/castArray")},73:e=>{"use strict";e.exports=require("lodash/constant")},823:e=>{"use strict";e.exports=require("lodash/each")},80:e=>{"use strict";e.exports=require("lodash/get")},30:e=>{"use strict";e.exports=require("lodash/map")},319:e=>{"use strict";e.exports=require("lodash/memoize")},765:e=>{"use strict";e.exports=require("lodash/orderBy")},163:e=>{"use strict";e.exports=require("lodash/sortBy")},320:e=>{"use strict";e.exports=require("lodash/startsWith")},865:e=>{"use strict";e.exports=require("lodash/toString")},188:e=>{"use strict";e.exports=require("module")},17:e=>{"use strict";e.exports=require("path")},79:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=r(491);var i=r(638);const{callExpression:s,cloneNode:o,expressionStatement:n,identifier:u,importDeclaration:l,importDefaultSpecifier:f,importNamespaceSpecifier:d,importSpecifier:p,memberExpression:c,stringLiteral:h,variableDeclaration:m,variableDeclarator:_}=i;class ImportBuilder{constructor(e,t,r){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=t;this._hub=r;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(l([],h(this._importedSource)));return this}require(){this._statements.push(n(s(u("require"),[h(this._importedSource)])));return this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];a(r.type==="ImportDeclaration");a(r.specifiers.length===0);r.specifiers=[d(t)];this._resultName=o(t);return this}default(e){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];a(r.type==="ImportDeclaration");a(r.specifiers.length===0);r.specifiers=[f(t)];this._resultName=o(t);return this}named(e,t){if(t==="default")return this.default(e);const r=this._scope.generateUidIdentifier(e);const i=this._statements[this._statements.length-1];a(i.type==="ImportDeclaration");a(i.specifiers.length===0);i.specifiers=[p(r,u(t))];this._resultName=o(r);return this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];if(r.type!=="ExpressionStatement"){a(this._resultName);r=n(this._resultName);this._statements.push(r)}this._statements[this._statements.length-1]=m("var",[_(t,r.expression)]);this._resultName=o(t);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=s(e,[t.expression])}else if(t.type==="VariableDeclaration"){a(t.declarations.length===1);t.declarations[0].init=s(e,[t.declarations[0].init])}else{a.fail("Unexpected type.")}return this}prop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=c(t.expression,u(e))}else if(t.type==="VariableDeclaration"){a(t.declarations.length===1);t.declarations[0].init=c(t.declarations[0].init,u(e))}else{a.fail("Unexpected type:"+t.type)}return this}read(e){this._resultName=c(this._resultName,u(e))}}t["default"]=ImportBuilder},378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var a=r(491);var i=r(638);var s=r(79);var o=r(898);const{numericLiteral:n,sequenceExpression:u}=i;class ImportInjector{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const a=e.find((e=>e.isProgram()));this._programPath=a;this._programScope=a.scope;this._hub=a.hub;this._defaultOpts=this._applyDefaults(t,r,true)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){a(typeof e==="string");return this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=false){let i;if(typeof e==="string"){i=Object.assign({},this._defaultOpts,{importedSource:e},t)}else{a(!t,"Unexpected secondary arguments.");i=Object.assign({},this._defaultOpts,e)}if(!r&&t){if(t.nameHint!==undefined)i.nameHint=t.nameHint;if(t.blockHoist!==undefined)i.blockHoist=t.blockHoist}return i}_generateImport(e,t){const r=t==="default";const a=!!t&&!r;const i=t===null;const{importedSource:l,importedType:f,importedInterop:d,importingInterop:p,ensureLiveReference:c,ensureNoContext:h,nameHint:m,importPosition:_,blockHoist:v}=e;let b=m||t;const y=(0,o.default)(this._programPath);const g=y&&p==="node";const D=y&&p==="babel";if(_==="after"&&!y){throw new Error(`"importPosition": "after" is only supported in modules`)}const q=new s.default(l,this._programScope,this._hub);if(f==="es6"){if(!g&&!D){throw new Error("Cannot import an ES6 module from CommonJS")}q.import();if(i){q.namespace(m||l)}else if(r||a){q.named(b,t)}}else if(f!=="commonjs"){throw new Error(`Unexpected interopType "${f}"`)}else if(d==="babel"){if(g){b=b!=="default"?b:l;const e=`${l}$es6Default`;q.import();if(i){q.default(e).var(b||l).wildcardInterop()}else if(r){if(c){q.default(e).var(b||l).defaultInterop().read("default")}else{q.default(e).var(b).defaultInterop().prop(t)}}else if(a){q.default(e).read(t)}}else if(D){q.import();if(i){q.namespace(b||l)}else if(r||a){q.named(b,t)}}else{q.require();if(i){q.var(b||l).wildcardInterop()}else if((r||a)&&c){if(r){b=b!=="default"?b:l;q.var(b).read(t);q.defaultInterop()}else{q.var(l).read(t)}}else if(r){q.var(b).defaultInterop().prop(t)}else if(a){q.var(b).prop(t)}}}else if(d==="compiled"){if(g){q.import();if(i){q.default(b||l)}else if(r||a){q.default(l).read(b)}}else if(D){q.import();if(i){q.namespace(b||l)}else if(r||a){q.named(b,t)}}else{q.require();if(i){q.var(b||l)}else if(r||a){if(c){q.var(l).read(b)}else{q.prop(t).var(b)}}}}else if(d==="uncompiled"){if(r&&c){throw new Error("No live reference for commonjs default")}if(g){q.import();if(i){q.default(b||l)}else if(r){q.default(b)}else if(a){q.default(l).read(b)}}else if(D){q.import();if(i){q.default(b||l)}else if(r){q.default(b)}else if(a){q.named(b,t)}}else{q.require();if(i){q.var(b||l)}else if(r){q.var(b)}else if(a){if(c){q.var(l).read(b)}else{q.var(b).prop(t)}}}}else{throw new Error(`Unknown importedInterop "${d}".`)}const{statements:x,resultName:w}=q.done();this._insertStatements(x,_,v);if((r||a)&&h&&w.type!=="Identifier"){return u([n(0),w])}return w}_insertStatements(e,t="before",r=3){const a=this._programPath.get("body");if(t==="after"){for(let t=a.length-1;t>=0;t--){if(a[t].isImportDeclaration()){a[t].insertAfter(e);return}}}else{e.forEach((e=>{e._blockHoist=r}));const t=a.find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(t){t.insertBefore(e);return}}this._programPath.unshiftContainer("body",e)}}t["default"]=ImportInjector},408:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ImportInjector",{enumerable:true,get:function(){return a.default}});t.addDefault=addDefault;t.addNamed=addNamed;t.addNamespace=addNamespace;t.addSideEffect=addSideEffect;Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return i.default}});var a=r(378);var i=r(898);function addDefault(e,t,r){return new a.default(e).addDefault(t,r)}function addNamed(e,t,r,i){return new a.default(e).addNamed(t,r,i)}function addNamespace(e,t,r){return new a.default(e).addNamespace(t,r)}function addSideEffect(e,t,r){return new a.default(e).addSideEffect(t,r)}},898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}}};var t={};function __nccwpck_require__(r){var a=t[r];if(a!==undefined){return a.exports}var i=t[r]={exports:{}};var s=true;try{e[r](i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(380);module.exports=r})();
@@ -0,0 +1,44 @@
1
+ Copyright JS Foundation and other contributors <https://js.foundation/>
2
+
3
+ This software consists of voluntary contributions made by many
4
+ individuals. For exact contribution history, see the revision history
5
+ available at https://github.com/lodash/lodash
6
+
7
+ The following license applies to all parts of this software except as
8
+ documented below:
9
+
10
+ ====
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining
13
+ a copy of this software and associated documentation files (the
14
+ "Software"), to deal in the Software without restriction, including
15
+ without limitation the rights to use, copy, modify, merge, publish,
16
+ distribute, sublicense, and/or sell copies of the Software, and to
17
+ permit persons to whom the Software is furnished to do so, subject to
18
+ the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be
21
+ included in all copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
+
31
+ ====
32
+
33
+ Copyright and related rights for sample code are waived via CC0. Sample
34
+ code is defined as all source code displayed within the prose of the
35
+ documentation.
36
+
37
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
38
+
39
+ ====
40
+
41
+ Files located in the node_modules and vendor directories are externally
42
+ maintained libraries used by this software which have their own
43
+ licenses; we recommend you read them, as their terms may differ from the
44
+ terms above.
@@ -0,0 +1 @@
1
+ {"name":"babel-plugin-lodash","author":"Graeme Yeates <megawac@gmail.com> (https://github.com/megawac)","version":"3.3.4","license":"MIT","types":"index.d.ts"}
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={13:(e,r)=>{Object.defineProperty(r,"__esModule",{value:true});r["default"]=isAnnotatedForRemoval;function isAnnotatedForRemoval(e){var r=e.trailingComments||[];return Boolean(r.find((function(e){var r=e.value;return r.trim()==="remove-proptypes"})))}},551:(e,r)=>{Object.defineProperty(r,"__esModule",{value:true});r["default"]=isStatelessComponent;var t=Symbol("traversed");function isJSXElementOrReactCreateElement(e){var r=false;e.traverse({CallExpression:function CallExpression(e){var t=e.get("callee");if(t.matchesPattern("React.createElement")||t.matchesPattern("React.cloneElement")||t.node.name==="cloneElement"){r=true}},JSXElement:function JSXElement(){r=true}});return r}function isReturningJSXElement(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(e.node.init&&e.node.init.body&&isJSXElementOrReactCreateElement(e)){return true}if(r>20){throw new Error("transform-react-remove-prop-type: infinite loop detected.")}var a=false;e.traverse({ReturnStatement:function ReturnStatement(n){if(a){return}var i=n.get("argument");if(!i.node){return}if(isJSXElementOrReactCreateElement(n)){a=true;return}if(i.node.type==="CallExpression"){var o=i.get("callee").node.name;var s=e.scope.getBinding(o);if(!s){return}if(s.path[t]){return}s.path[t]=true;if(isReturningJSXElement(s.path,r+1)){a=true}}}});return a}var a=["VariableDeclarator","FunctionDeclaration"];function isStatelessComponent(e){if(a.indexOf(e.node.type)===-1){return false}if(isReturningJSXElement(e)){return true}return false}},442:(e,r)=>{Object.defineProperty(r,"__esModule",{value:true});r["default"]=remove;function isInside(e,r){if(!e.hub.file.opts){return true}var t=e.hub.file.opts.filename;if(!t){return true}if(!r){return false}return r.test(t)}function remove(e,r,t){var a=r.visitedKey,n=r.unsafeWrapTemplate,i=r.wrapTemplate,o=r.mode,s=r.ignoreFilenames,u=r.types;if(s&&isInside(e.scope,s)){return}if(e.node[a]){return}e.node[a]=true;if(o==="remove"){if(e.parentPath.type==="ConditionalExpression"){e.replaceWith(u.unaryExpression("void",u.numericLiteral(0)))}else{e.remove()}return}if(o==="wrap"||o==="unsafe-wrap"){switch(t.type){case"createClass":break;case"class static":{var l;var p=t.pathClassDeclaration;if(!p.isClassExpression()&&p.node.id){l=p.node.id}else{return}var f=u.expressionStatement(u.assignmentExpression("=",u.memberExpression(l,e.node.key),e.node.value));if(p.parentPath.isExportDeclaration()){p=p.parentPath}p.insertAfter(f);e.remove();break}case"assign":if(o==="unsafe-wrap"){e.replaceWith(n({NODE:e.node}))}else{e.replaceWith(i({LEFT:e.node.left,RIGHT:e.node.right}))}e.node[a]=true;break;case"declarator":e.replaceWith(i({LEFT:e.node.id,RIGHT:e.node.init},{as:"variableDeclarator"}));e.node[a]=true;break;default:break}return}throw new Error("transform-react-remove-prop-type: unsupported mode ".concat(o,"."))}}};var r={};function __nccwpck_require__(t){var a=r[t];if(a!==undefined){return a.exports}var n=r[t]={exports:{}};var i=true;try{e[t](n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete r[t]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t={};(()=>{var e=t;Object.defineProperty(e,"__esModule",{value:true});e["default"]=_default;var r=_interopRequireDefault(__nccwpck_require__(13));var a=_interopRequireDefault(__nccwpck_require__(551));var n=_interopRequireDefault(__nccwpck_require__(442));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};var a=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))}a.forEach((function(r){_defineProperty(e,r,t[r])}))}return e}function _defineProperty(e,r,t){if(r in e){Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true})}else{e[r]=t}return e}function isPathReactClass(e,r){var t=e.node;var a=r.classNameMatchers;if(e.matchesPattern("React.Component")||e.matchesPattern("React.PureComponent")){return true}if(t&&(t.name==="Component"||t.name==="PureComponent")){return true}if(t&&a&&a.test(t.name)){return true}return false}function isReactClass(e,r,t){if(!e.node){return false}var a=false;if(isPathReactClass(e,t)){a=true}else if(e.node.name){var n=e.node.name;var i=r.getBinding(n);if(!i){a=false}else{var o=i.path.get("superClass");if(isPathReactClass(o,t)){a=true}}}return a}function areSetsEqual(e,r){if(e===r){return true}if(e.size!==r.size){return false}return!Array.from(e).some((function(e){return!r.has(e)}))}function memberExpressionRootIdentifier(e){var r=e.findParent((function(e){return!e.isMemberExpression()}));var t=r.node.type;var a;if(t==="ObjectProperty"){a=r.get("value")}if(!a||a.type!=="MemberExpression"){return null}while(a.node.object.type==="MemberExpression"){a=a.get("object")}return a.get("object")}function _default(e){var t=e.template,i=e.types,o=e.traverse;var s=new Set;var u=new WeakSet;var l={Identifier:function Identifier(e){if(e.parent.type==="MemberExpression"){var r=memberExpressionRootIdentifier(e);if(r){s.add(r.node.name)}return}if(e.parent.type==="ObjectProperty"&&(e.parent.key===e.node||e.parent.shorthand)){return}s.add(e.node.name)}};return{visitor:{Program:function Program(p,f){var c;var d;if(f.opts.ignoreFilenames){c=new RegExp(f.opts.ignoreFilenames.join("|"),"i")}else{c=undefined}if(f.opts.classNameMatchers){d=new RegExp(f.opts.classNameMatchers.join("|"))}else{d=undefined}var m={visitedKey:"transform-react-remove-prop-types".concat(Date.now()),unsafeWrapTemplate:t('\n if (process.env.NODE_ENV !== "production") {\n NODE;\n }\n ',{placeholderPattern:/^NODE$/}),wrapTemplate:function wrapTemplate(e){var r=e.LEFT,a=e.RIGHT;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var o=n.as,s=o===void 0?"assignmentExpression":o;var u=t.expression('\n process.env.NODE_ENV !== "production" ? RIGHT : {}\n ',{placeholderPattern:/^(LEFT|RIGHT)$/})({RIGHT:a});switch(s){case"variableDeclarator":return i.variableDeclarator(r,u);case"assignmentExpression":return i.assignmentExpression("=",r,u);default:throw new Error("unrecognized template type ".concat(s))}},mode:f.opts.mode||"remove",ignoreFilenames:c,types:i,removeImport:f.opts.removeImport||false,libraries:(f.opts.additionalLibraries||[]).concat("prop-types"),classNameMatchers:d,createReactClassName:f.opts.createReactClassName||"createReactClass"};if(f.opts.plugins){var v=f;var y=f.opts.plugins.map((function(r){var t=typeof r==="string"?r:r[0];if(typeof r!=="string"){v.opts=_objectSpread({},v.opts,r[1])}var a=require(t);if(typeof a!=="function"){a=a.default}return a(e).visitor}));o(p.parent,o.visitors.merge(y),p.scope,v,p.parentPath)}p.traverse({ObjectProperty:{exit:function exit(e){var r=e.node;if(r.computed||r.key.name!=="propTypes"){return}var t=e.findParent((function(e){if(e.type!=="CallExpression"){return false}return e.get("callee").node.name===m.createReactClassName||e.get("callee").node.property&&e.get("callee").node.property.name==="createClass"}));if(t){e.traverse(l);u.add(e);(0,n.default)(e,m,{type:"createClass"})}}},ClassProperty:function ClassProperty(e){var r=e.node,t=e.scope;if(r.key.name==="propTypes"){var a=t.path;if(isReactClass(a.get("superClass"),t,m)){e.traverse(l);u.add(e);(0,n.default)(e,m,{type:"class static",pathClassDeclaration:a})}}},AssignmentExpression:function AssignmentExpression(e){var t=e.node,i=e.scope;if(t.left.computed||!t.left.property||t.left.property.name!=="propTypes"){return}var o=(0,r.default)(e.node.left);if(o){e.traverse(l);u.add(e);(0,n.default)(e,m,{type:"assign"});return}var s=t.left.object.name;var p=i.getBinding(s);if(!p){return}if(p.path.isClassDeclaration()){var f=p.path.get("superClass");if(isReactClass(f,i,m)){e.traverse(l);u.add(e);(0,n.default)(e,m,{type:"assign"})}}else if((0,a.default)(p.path)){e.traverse(l);u.add(e);(0,n.default)(e,m,{type:"assign"})}}});var g=0;var b={VariableDeclarator:function VariableDeclarator(e){if(e.scope.block.type!=="Program"){return}if(["ObjectPattern","ArrayPattern"].includes(e.node.id.type)){return}var r=e.node.id.name;if(!s.has(r)){return}var t=e.scope.getBinding(r),a=t.referencePaths;var i=a.some((function(e){var r=e.find((function(e){return u.has(e)}));return!r}));if(i){g+=1;return}u.add(e);s.delete(r);e.get("init").traverse(l);(0,n.default)(e,m,{type:"declarator"})}};var _=new Set;while(!areSetsEqual(s,_)&&s.size>0&&g<s.size){_=new Set(s);g=0;p.scope.crawl();p.traverse(b)}if(m.removeImport){if(m.mode==="remove"){p.scope.crawl();p.traverse({ImportDeclaration:function ImportDeclaration(e){var r=e.node,t=r.source,a=r.specifiers;var n=m.libraries.some((function(e){if(e instanceof RegExp){return e.test(t.value)}return t.value===e}));if(!n){return}var i=a.some((function(r){var t=r.local.name;var a=e.scope.getBinding(t),n=a.referencePaths;return n.length>0}));if(!i){e.remove()}}})}else{throw new Error('transform-react-remove-prop-type: removeImport = true and mode != "remove" can not be used at the same time.')}}}}}}})();module.exports=t})();
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Nikita Gusakov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -0,0 +1 @@
1
+ {"name":"babel-plugin-transform-react-remove-prop-types","author":"Nikita Gusakov","version":"0.4.24","license":"MIT","types":"index.d.ts"}
@@ -0,0 +1,96 @@
1
+ declare namespace cliTruncate {
2
+ interface Options {
3
+ /**
4
+ Position to truncate the string.
5
+
6
+ @default 'end'
7
+ */
8
+ readonly position?: 'start' | 'middle' | 'end';
9
+
10
+ /**
11
+ Add a space between the text and the ellipsis.
12
+
13
+ @default false
14
+
15
+ @example
16
+ ```
17
+ cliTruncate('unicorns', 5, {position: 'end', space: true});
18
+ //=> 'uni …'
19
+
20
+ cliTruncate('unicorns', 5, {position: 'end', space: false});
21
+ //=> 'unic…'
22
+
23
+ cliTruncate('unicorns', 6, {position: 'start', space: true});
24
+ //=> '… orns'
25
+
26
+ cliTruncate('unicorns', 7, {position: 'middle', space: true});
27
+ //=> 'uni … s'
28
+ ```
29
+ */
30
+ readonly space?: boolean;
31
+
32
+ /**
33
+ Truncate the string from a whitespace if it is within 3 characters from the actual breaking point.
34
+
35
+ @default false
36
+
37
+ @example
38
+ ```
39
+ cliTruncate('unicorns rainbow dragons', 20, {position: 'start', preferTruncationOnSpace: true});
40
+ //=> '…rainbow dragons'
41
+
42
+ cliTruncate('unicorns rainbow dragons', 20, {position: 'middle', preferTruncationOnSpace: true});
43
+ //=> 'unicorns…dragons'
44
+
45
+ cliTruncate('unicorns rainbow dragons', 6, {position: 'end', preferTruncationOnSpace: true});
46
+ //=> 'unico…'
47
+ ````
48
+ */
49
+ readonly preferTruncationOnSpace?: boolean;
50
+ }
51
+ }
52
+
53
+ /**
54
+ Truncate a string to a specific width in the terminal.
55
+
56
+ @param text - Text to truncate.
57
+ @param columns - Columns to occupy in the terminal.
58
+
59
+ @example
60
+ ```
61
+ import cliTruncate = require('./cli-truncate');
62
+
63
+ cliTruncate('unicorn', 4);
64
+ //=> 'uni…'
65
+
66
+ // Truncate at different positions
67
+ cliTruncate('unicorn', 4, {position: 'start'});
68
+ //=> '…orn'
69
+
70
+ cliTruncate('unicorn', 4, {position: 'middle'});
71
+ //=> 'un…n'
72
+
73
+ cliTruncate('\u001B[31municorn\u001B[39m', 4);
74
+ //=> '\u001B[31muni\u001B[39m…'
75
+
76
+ // Truncate Unicode surrogate pairs
77
+ cliTruncate('uni\uD83C\uDE00corn', 5);
78
+ //=> 'uni\uD83C\uDE00…'
79
+
80
+ // Truncate fullwidth characters
81
+ cliTruncate('안녕하세요', 3);
82
+ //=> '안…'
83
+
84
+ // Truncate the paragraph to the terminal width
85
+ const paragraph = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.';
86
+ cliTruncate(paragraph, process.stdout.columns));
87
+ //=> 'Lorem ipsum dolor sit amet, consectetuer adipiscing…'
88
+ ```
89
+ */
90
+ declare function cliTruncate(
91
+ text: string,
92
+ columns: number,
93
+ options?: cliTruncate.Options
94
+ ): string;
95
+
96
+ export = cliTruncate;
@@ -0,0 +1 @@
1
+ (()=>{var D={275:D=>{"use strict";D.exports=({onlyFirst:D=false}={})=>{const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,D?undefined:"g")}},44:(D,u,e)=>{"use strict";D=e.nmd(D);const wrapAnsi16=(D,u)=>(...e)=>{const t=D(...e);return`[${t+u}m`};const wrapAnsi256=(D,u)=>(...e)=>{const t=D(...e);return`[${38+u};5;${t}m`};const wrapAnsi16m=(D,u)=>(...e)=>{const t=D(...e);return`[${38+u};2;${t[0]};${t[1]};${t[2]}m`};const ansi2ansi=D=>D;const rgb2rgb=(D,u,e)=>[D,u,e];const setLazyProperty=(D,u,e)=>{Object.defineProperty(D,u,{get:()=>{const t=e();Object.defineProperty(D,u,{value:t,enumerable:true,configurable:true});return t},enumerable:true,configurable:true})};let t;const makeDynamicStyles=(D,u,n,r)=>{if(t===undefined){t=e(767)}const o=r?10:0;const F={};for(const[e,r]of Object.entries(t)){const t=e==="ansi16"?"ansi":e;if(e===u){F[t]=D(n,o)}else if(typeof r==="object"){F[t]=D(r[u],o)}}return F};function assembleStyles(){const D=new Map;const u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright;u.bgColor.bgGray=u.bgColor.bgBlackBright;u.color.grey=u.color.blackBright;u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(const[e,t]of Object.entries(u)){for(const[e,n]of Object.entries(t)){u[e]={open:`[${n[0]}m`,close:`[${n[1]}m`};t[e]=u[e];D.set(n[0],n[1])}Object.defineProperty(u,e,{value:t,enumerable:false})}Object.defineProperty(u,"codes",{value:D,enumerable:false});u.color.close="";u.bgColor.close="";setLazyProperty(u.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(u.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(u.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(u.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(u.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(u.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return u}Object.defineProperty(D,"exports",{enumerable:true,get:assembleStyles})},788:D=>{"use strict";const u="[\ud800-\udbff][\udc00-\udfff]";const astralRegex=D=>D&&D.exact?new RegExp(`^${u}$`):new RegExp(u,"g");D.exports=astralRegex},922:(D,u,e)=>{"use strict";const t=e(770);const n=e(629);function getIndexOfNearestSpace(D,u,e){if(D.charAt(u)===" "){return u}for(let t=1;t<=3;t++){if(e){if(D.charAt(u+t)===" "){return u+t}}else if(D.charAt(u-t)===" "){return u-t}}return u}D.exports=(D,u,e)=>{e={position:"end",preferTruncationOnSpace:false,...e};const{position:r,space:o,preferTruncationOnSpace:F}=e;let s="…";let c=1;if(typeof D!=="string"){throw new TypeError(`Expected \`input\` to be a string, got ${typeof D}`)}if(typeof u!=="number"){throw new TypeError(`Expected \`columns\` to be a number, got ${typeof u}`)}if(u<1){return""}if(u===1){return s}const C=n(D);if(C<=u){return D}if(r==="start"){if(F){const e=getIndexOfNearestSpace(D,C-u+1,true);return s+t(D,e,C).trim()}if(o===true){s+=" ";c=2}return s+t(D,C-u+c,C)}if(r==="middle"){if(o===true){s=" "+s+" ";c=3}const e=Math.floor(u/2);if(F){const n=getIndexOfNearestSpace(D,e);const r=getIndexOfNearestSpace(D,C-(u-e)+1,true);return t(D,0,n)+s+t(D,r,C).trim()}return t(D,0,e)+s+t(D,C-(u-e)+c,C)}if(r==="end"){if(F){const e=getIndexOfNearestSpace(D,u-1);return t(D,0,e)+s}if(o===true){s=" "+s;c=2}return t(D,0,u-c)+s}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${r}`)}},226:(D,u,e)=>{const t=e(866);const n={};for(const D of Object.keys(t)){n[t[D]]=D}const r={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};D.exports=r;for(const D of Object.keys(r)){if(!("channels"in r[D])){throw new Error("missing channels property: "+D)}if(!("labels"in r[D])){throw new Error("missing channel labels property: "+D)}if(r[D].labels.length!==r[D].channels){throw new Error("channel and label counts mismatch: "+D)}const{channels:u,labels:e}=r[D];delete r[D].channels;delete r[D].labels;Object.defineProperty(r[D],"channels",{value:u});Object.defineProperty(r[D],"labels",{value:e})}r.rgb.hsl=function(D){const u=D[0]/255;const e=D[1]/255;const t=D[2]/255;const n=Math.min(u,e,t);const r=Math.max(u,e,t);const o=r-n;let F;let s;if(r===n){F=0}else if(u===r){F=(e-t)/o}else if(e===r){F=2+(t-u)/o}else if(t===r){F=4+(u-e)/o}F=Math.min(F*60,360);if(F<0){F+=360}const c=(n+r)/2;if(r===n){s=0}else if(c<=.5){s=o/(r+n)}else{s=o/(2-r-n)}return[F,s*100,c*100]};r.rgb.hsv=function(D){let u;let e;let t;let n;let r;const o=D[0]/255;const F=D[1]/255;const s=D[2]/255;const c=Math.max(o,F,s);const C=c-Math.min(o,F,s);const diffc=function(D){return(c-D)/6/C+1/2};if(C===0){n=0;r=0}else{r=C/c;u=diffc(o);e=diffc(F);t=diffc(s);if(o===c){n=t-e}else if(F===c){n=1/3+u-t}else if(s===c){n=2/3+e-u}if(n<0){n+=1}else if(n>1){n-=1}}return[n*360,r*100,c*100]};r.rgb.hwb=function(D){const u=D[0];const e=D[1];let t=D[2];const n=r.rgb.hsl(D)[0];const o=1/255*Math.min(u,Math.min(e,t));t=1-1/255*Math.max(u,Math.max(e,t));return[n,o*100,t*100]};r.rgb.cmyk=function(D){const u=D[0]/255;const e=D[1]/255;const t=D[2]/255;const n=Math.min(1-u,1-e,1-t);const r=(1-u-n)/(1-n)||0;const o=(1-e-n)/(1-n)||0;const F=(1-t-n)/(1-n)||0;return[r*100,o*100,F*100,n*100]};function comparativeDistance(D,u){return(D[0]-u[0])**2+(D[1]-u[1])**2+(D[2]-u[2])**2}r.rgb.keyword=function(D){const u=n[D];if(u){return u}let e=Infinity;let r;for(const u of Object.keys(t)){const n=t[u];const o=comparativeDistance(D,n);if(o<e){e=o;r=u}}return r};r.keyword.rgb=function(D){return t[D]};r.rgb.xyz=function(D){let u=D[0]/255;let e=D[1]/255;let t=D[2]/255;u=u>.04045?((u+.055)/1.055)**2.4:u/12.92;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;const n=u*.4124+e*.3576+t*.1805;const r=u*.2126+e*.7152+t*.0722;const o=u*.0193+e*.1192+t*.9505;return[n*100,r*100,o*100]};r.rgb.lab=function(D){const u=r.rgb.xyz(D);let e=u[0];let t=u[1];let n=u[2];e/=95.047;t/=100;n/=108.883;e=e>.008856?e**(1/3):7.787*e+16/116;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;const o=116*t-16;const F=500*(e-t);const s=200*(t-n);return[o,F,s]};r.hsl.rgb=function(D){const u=D[0]/360;const e=D[1]/100;const t=D[2]/100;let n;let r;let o;if(e===0){o=t*255;return[o,o,o]}if(t<.5){n=t*(1+e)}else{n=t+e-t*e}const F=2*t-n;const s=[0,0,0];for(let D=0;D<3;D++){r=u+1/3*-(D-1);if(r<0){r++}if(r>1){r--}if(6*r<1){o=F+(n-F)*6*r}else if(2*r<1){o=n}else if(3*r<2){o=F+(n-F)*(2/3-r)*6}else{o=F}s[D]=o*255}return s};r.hsl.hsv=function(D){const u=D[0];let e=D[1]/100;let t=D[2]/100;let n=e;const r=Math.max(t,.01);t*=2;e*=t<=1?t:2-t;n*=r<=1?r:2-r;const o=(t+e)/2;const F=t===0?2*n/(r+n):2*e/(t+e);return[u,F*100,o*100]};r.hsv.rgb=function(D){const u=D[0]/60;const e=D[1]/100;let t=D[2]/100;const n=Math.floor(u)%6;const r=u-Math.floor(u);const o=255*t*(1-e);const F=255*t*(1-e*r);const s=255*t*(1-e*(1-r));t*=255;switch(n){case 0:return[t,s,o];case 1:return[F,t,o];case 2:return[o,t,s];case 3:return[o,F,t];case 4:return[s,o,t];case 5:return[t,o,F]}};r.hsv.hsl=function(D){const u=D[0];const e=D[1]/100;const t=D[2]/100;const n=Math.max(t,.01);let r;let o;o=(2-e)*t;const F=(2-e)*n;r=e*n;r/=F<=1?F:2-F;r=r||0;o/=2;return[u,r*100,o*100]};r.hwb.rgb=function(D){const u=D[0]/360;let e=D[1]/100;let t=D[2]/100;const n=e+t;let r;if(n>1){e/=n;t/=n}const o=Math.floor(6*u);const F=1-t;r=6*u-o;if((o&1)!==0){r=1-r}const s=e+r*(F-e);let c;let C;let i;switch(o){default:case 6:case 0:c=F;C=s;i=e;break;case 1:c=s;C=F;i=e;break;case 2:c=e;C=F;i=s;break;case 3:c=e;C=s;i=F;break;case 4:c=s;C=e;i=F;break;case 5:c=F;C=e;i=s;break}return[c*255,C*255,i*255]};r.cmyk.rgb=function(D){const u=D[0]/100;const e=D[1]/100;const t=D[2]/100;const n=D[3]/100;const r=1-Math.min(1,u*(1-n)+n);const o=1-Math.min(1,e*(1-n)+n);const F=1-Math.min(1,t*(1-n)+n);return[r*255,o*255,F*255]};r.xyz.rgb=function(D){const u=D[0]/100;const e=D[1]/100;const t=D[2]/100;let n;let r;let o;n=u*3.2406+e*-1.5372+t*-.4986;r=u*-.9689+e*1.8758+t*.0415;o=u*.0557+e*-.204+t*1.057;n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92;r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;n=Math.min(Math.max(0,n),1);r=Math.min(Math.max(0,r),1);o=Math.min(Math.max(0,o),1);return[n*255,r*255,o*255]};r.xyz.lab=function(D){let u=D[0];let e=D[1];let t=D[2];u/=95.047;e/=100;t/=108.883;u=u>.008856?u**(1/3):7.787*u+16/116;e=e>.008856?e**(1/3):7.787*e+16/116;t=t>.008856?t**(1/3):7.787*t+16/116;const n=116*e-16;const r=500*(u-e);const o=200*(e-t);return[n,r,o]};r.lab.xyz=function(D){const u=D[0];const e=D[1];const t=D[2];let n;let r;let o;r=(u+16)/116;n=e/500+r;o=r-t/200;const F=r**3;const s=n**3;const c=o**3;r=F>.008856?F:(r-16/116)/7.787;n=s>.008856?s:(n-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;n*=95.047;r*=100;o*=108.883;return[n,r,o]};r.lab.lch=function(D){const u=D[0];const e=D[1];const t=D[2];let n;const r=Math.atan2(t,e);n=r*360/2/Math.PI;if(n<0){n+=360}const o=Math.sqrt(e*e+t*t);return[u,o,n]};r.lch.lab=function(D){const u=D[0];const e=D[1];const t=D[2];const n=t/360*2*Math.PI;const r=e*Math.cos(n);const o=e*Math.sin(n);return[u,r,o]};r.rgb.ansi16=function(D,u=null){const[e,t,n]=D;let o=u===null?r.rgb.hsv(D)[2]:u;o=Math.round(o/50);if(o===0){return 30}let F=30+(Math.round(n/255)<<2|Math.round(t/255)<<1|Math.round(e/255));if(o===2){F+=60}return F};r.hsv.ansi16=function(D){return r.rgb.ansi16(r.hsv.rgb(D),D[2])};r.rgb.ansi256=function(D){const u=D[0];const e=D[1];const t=D[2];if(u===e&&e===t){if(u<8){return 16}if(u>248){return 231}return Math.round((u-8)/247*24)+232}const n=16+36*Math.round(u/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5);return n};r.ansi16.rgb=function(D){let u=D%10;if(u===0||u===7){if(D>50){u+=3.5}u=u/10.5*255;return[u,u,u]}const e=(~~(D>50)+1)*.5;const t=(u&1)*e*255;const n=(u>>1&1)*e*255;const r=(u>>2&1)*e*255;return[t,n,r]};r.ansi256.rgb=function(D){if(D>=232){const u=(D-232)*10+8;return[u,u,u]}D-=16;let u;const e=Math.floor(D/36)/5*255;const t=Math.floor((u=D%36)/6)/5*255;const n=u%6/5*255;return[e,t,n]};r.rgb.hex=function(D){const u=((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255);const e=u.toString(16).toUpperCase();return"000000".substring(e.length)+e};r.hex.rgb=function(D){const u=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!u){return[0,0,0]}let e=u[0];if(u[0].length===3){e=e.split("").map((D=>D+D)).join("")}const t=parseInt(e,16);const n=t>>16&255;const r=t>>8&255;const o=t&255;return[n,r,o]};r.rgb.hcg=function(D){const u=D[0]/255;const e=D[1]/255;const t=D[2]/255;const n=Math.max(Math.max(u,e),t);const r=Math.min(Math.min(u,e),t);const o=n-r;let F;let s;if(o<1){F=r/(1-o)}else{F=0}if(o<=0){s=0}else if(n===u){s=(e-t)/o%6}else if(n===e){s=2+(t-u)/o}else{s=4+(u-e)/o}s/=6;s%=1;return[s*360,o*100,F*100]};r.hsl.hcg=function(D){const u=D[1]/100;const e=D[2]/100;const t=e<.5?2*u*e:2*u*(1-e);let n=0;if(t<1){n=(e-.5*t)/(1-t)}return[D[0],t*100,n*100]};r.hsv.hcg=function(D){const u=D[1]/100;const e=D[2]/100;const t=u*e;let n=0;if(t<1){n=(e-t)/(1-t)}return[D[0],t*100,n*100]};r.hcg.rgb=function(D){const u=D[0]/360;const e=D[1]/100;const t=D[2]/100;if(e===0){return[t*255,t*255,t*255]}const n=[0,0,0];const r=u%1*6;const o=r%1;const F=1-o;let s=0;switch(Math.floor(r)){case 0:n[0]=1;n[1]=o;n[2]=0;break;case 1:n[0]=F;n[1]=1;n[2]=0;break;case 2:n[0]=0;n[1]=1;n[2]=o;break;case 3:n[0]=0;n[1]=F;n[2]=1;break;case 4:n[0]=o;n[1]=0;n[2]=1;break;default:n[0]=1;n[1]=0;n[2]=F}s=(1-e)*t;return[(e*n[0]+s)*255,(e*n[1]+s)*255,(e*n[2]+s)*255]};r.hcg.hsv=function(D){const u=D[1]/100;const e=D[2]/100;const t=u+e*(1-u);let n=0;if(t>0){n=u/t}return[D[0],n*100,t*100]};r.hcg.hsl=function(D){const u=D[1]/100;const e=D[2]/100;const t=e*(1-u)+.5*u;let n=0;if(t>0&&t<.5){n=u/(2*t)}else if(t>=.5&&t<1){n=u/(2*(1-t))}return[D[0],n*100,t*100]};r.hcg.hwb=function(D){const u=D[1]/100;const e=D[2]/100;const t=u+e*(1-u);return[D[0],(t-u)*100,(1-t)*100]};r.hwb.hcg=function(D){const u=D[1]/100;const e=D[2]/100;const t=1-e;const n=t-u;let r=0;if(n<1){r=(t-n)/(1-n)}return[D[0],n*100,r*100]};r.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};r.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};r.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};r.gray.hsl=function(D){return[0,0,D[0]]};r.gray.hsv=r.gray.hsl;r.gray.hwb=function(D){return[0,100,D[0]]};r.gray.cmyk=function(D){return[0,0,0,D[0]]};r.gray.lab=function(D){return[D[0],0,0]};r.gray.hex=function(D){const u=Math.round(D[0]/100*255)&255;const e=(u<<16)+(u<<8)+u;const t=e.toString(16).toUpperCase();return"000000".substring(t.length)+t};r.rgb.gray=function(D){const u=(D[0]+D[1]+D[2])/3;return[u/255*100]}},767:(D,u,e)=>{const t=e(226);const n=e(392);const r={};const o=Object.keys(t);function wrapRaw(D){const wrappedFn=function(...u){const e=u[0];if(e===undefined||e===null){return e}if(e.length>1){u=e}return D(u)};if("conversion"in D){wrappedFn.conversion=D.conversion}return wrappedFn}function wrapRounded(D){const wrappedFn=function(...u){const e=u[0];if(e===undefined||e===null){return e}if(e.length>1){u=e}const t=D(u);if(typeof t==="object"){for(let D=t.length,u=0;u<D;u++){t[u]=Math.round(t[u])}}return t};if("conversion"in D){wrappedFn.conversion=D.conversion}return wrappedFn}o.forEach((D=>{r[D]={};Object.defineProperty(r[D],"channels",{value:t[D].channels});Object.defineProperty(r[D],"labels",{value:t[D].labels});const u=n(D);const e=Object.keys(u);e.forEach((e=>{const t=u[e];r[D][e]=wrapRounded(t);r[D][e].raw=wrapRaw(t)}))}));D.exports=r},392:(D,u,e)=>{const t=e(226);function buildGraph(){const D={};const u=Object.keys(t);for(let e=u.length,t=0;t<e;t++){D[u[t]]={distance:-1,parent:null}}return D}function deriveBFS(D){const u=buildGraph();const e=[D];u[D].distance=0;while(e.length){const D=e.pop();const n=Object.keys(t[D]);for(let t=n.length,r=0;r<t;r++){const t=n[r];const o=u[t];if(o.distance===-1){o.distance=u[D].distance+1;o.parent=D;e.unshift(t)}}}return u}function link(D,u){return function(e){return u(D(e))}}function wrapConversion(D,u){const e=[u[D].parent,D];let n=t[u[D].parent][D];let r=u[D].parent;while(u[r].parent){e.unshift(u[r].parent);n=link(t[u[r].parent][r],n);r=u[r].parent}n.conversion=e;return n}D.exports=function(D){const u=deriveBFS(D);const e={};const t=Object.keys(u);for(let D=t.length,n=0;n<D;n++){const D=t[n];const r=u[D];if(r.parent===null){continue}e[D]=wrapConversion(D,u)}return e}},866:D=>{"use strict";D.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},331:D=>{"use strict";D.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},82:D=>{"use strict";const isFullwidthCodePoint=D=>{if(Number.isNaN(D)){return false}if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141)){return true}return false};D.exports=isFullwidthCodePoint;D.exports["default"]=isFullwidthCodePoint},770:(D,u,e)=>{"use strict";const t=e(82);const n=e(788);const r=e(44);const o=["","›"];const wrapAnsi=D=>`${o[0]}[${D}m`;const checkAnsi=(D,u,e)=>{let t=[];D=[...D];for(let e of D){const n=e;if(e.match(";")){e=e.split(";")[0][0]+"0"}const o=r.codes.get(parseInt(e,10));if(o){const e=D.indexOf(o.toString());if(e>=0){D.splice(e,1)}else{t.push(wrapAnsi(u?o:n))}}else if(u){t.push(wrapAnsi(0));break}else{t.push(wrapAnsi(n))}}if(u){t=t.filter(((D,u)=>t.indexOf(D)===u));if(e!==undefined){const D=wrapAnsi(r.codes.get(parseInt(e,10)));t=t.reduce(((u,e)=>e===D?[e,...u]:[...u,e]),[])}}return t.join("")};D.exports=(D,u,e)=>{const r=[...D.normalize()];const F=[];e=typeof e==="number"?e:r.length;let s=false;let c;let C=0;let i="";for(const[l,a]of r.entries()){let r=false;if(o.includes(a)){const u=/\d[^m]*/.exec(D.slice(l,l+18));c=u&&u.length>0?u[0]:undefined;if(C<e){s=true;if(c!==undefined){F.push(c)}}}else if(s&&a==="m"){s=false;r=true}if(!s&&!r){++C}if(!n({exact:true}).test(a)&&t(a.codePointAt())){++C}if(C>u&&C<=e){i+=a}else if(C===u&&!s&&c!==undefined){i=checkAnsi(F)}else if(C>=e){i+=checkAnsi(F,true,c);break}}return i}},629:(D,u,e)=>{"use strict";const t=e(647);const n=e(82);const r=e(331);const stringWidth=D=>{if(typeof D!=="string"||D.length===0){return 0}D=t(D);if(D.length===0){return 0}D=D.replace(r()," ");let u=0;for(let e=0;e<D.length;e++){const t=D.codePointAt(e);if(t<=31||t>=127&&t<=159){continue}if(t>=768&&t<=879){continue}if(t>65535){e++}u+=n(t)?2:1}return u};D.exports=stringWidth;D.exports["default"]=stringWidth},647:(D,u,e)=>{"use strict";const t=e(275);D.exports=D=>typeof D==="string"?D.replace(t(),""):D}};var u={};function __nccwpck_require__(e){var t=u[e];if(t!==undefined){return t.exports}var n=u[e]={id:e,loaded:false,exports:{}};var r=true;try{D[e](n,n.exports,__nccwpck_require__);r=false}finally{if(r)delete u[e]}n.loaded=true;return n.exports}(()=>{__nccwpck_require__.nmd=D=>{D.paths=[];if(!D.children)D.children=[];return D}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var e=__nccwpck_require__(922);module.exports=e})();