Brunobkr commited on
Commit
03362bd
·
verified ·
1 Parent(s): cf64237

Upload folder using huggingface_hub (part 10)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. tools/ui/node_modules/@babel/parser/lib/index.js.map +0 -0
  3. tools/ui/node_modules/@babel/parser/package.json +50 -0
  4. tools/ui/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
  5. tools/ui/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/LICENSE +22 -0
  6. tools/ui/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/README.md +19 -0
  7. tools/ui/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/lib/index.js +75 -0
  8. tools/ui/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/lib/index.js.map +1 -0
  9. tools/ui/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/package.json +43 -0
  10. tools/ui/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/LICENSE +22 -0
  11. tools/ui/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/README.md +19 -0
  12. tools/ui/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/lib/index.js +73 -0
  13. tools/ui/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/lib/index.js.map +1 -0
  14. tools/ui/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/package.json +43 -0
  15. tools/ui/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/LICENSE +22 -0
  16. tools/ui/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/README.md +19 -0
  17. tools/ui/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/lib/index.js +47 -0
  18. tools/ui/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/lib/index.js.map +1 -0
  19. tools/ui/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json +43 -0
  20. tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/LICENSE +22 -0
  21. tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/README.md +19 -0
  22. tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/lib/index.js +29 -0
  23. tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/lib/index.js.map +1 -0
  24. tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/lib/util.js +32 -0
  25. tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/lib/util.js.map +1 -0
  26. tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/package.json +44 -0
  27. tools/ui/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/LICENSE +22 -0
  28. tools/ui/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/README.md +19 -0
  29. tools/ui/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/lib/index.js +66 -0
  30. tools/ui/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/lib/index.js.map +1 -0
  31. tools/ui/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/package.json +45 -0
  32. tools/ui/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/LICENSE +22 -0
  33. tools/ui/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/README.md +19 -0
  34. tools/ui/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/lib/index.js +175 -0
  35. tools/ui/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/lib/index.js.map +1 -0
  36. tools/ui/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/package.json +44 -0
  37. tools/ui/node_modules/@babel/plugin-proposal-private-property-in-object/LICENSE +22 -0
  38. tools/ui/node_modules/@babel/plugin-proposal-private-property-in-object/README.md +23 -0
  39. tools/ui/node_modules/@babel/plugin-proposal-private-property-in-object/lib/index.js +36 -0
  40. tools/ui/node_modules/@babel/plugin-proposal-private-property-in-object/lib/index.js.map +1 -0
  41. tools/ui/node_modules/@babel/plugin-proposal-private-property-in-object/package.json +27 -0
  42. tools/ui/node_modules/@babel/plugin-syntax-import-assertions/LICENSE +22 -0
  43. tools/ui/node_modules/@babel/plugin-syntax-import-assertions/README.md +19 -0
  44. tools/ui/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js +32 -0
  45. tools/ui/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js.map +1 -0
  46. tools/ui/node_modules/@babel/plugin-syntax-import-assertions/package.json +32 -0
  47. tools/ui/node_modules/@babel/plugin-syntax-import-attributes/LICENSE +22 -0
  48. tools/ui/node_modules/@babel/plugin-syntax-import-attributes/README.md +19 -0
  49. tools/ui/node_modules/@babel/plugin-syntax-import-attributes/lib/index.js +39 -0
  50. tools/ui/node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map +1 -0
.gitattributes CHANGED
@@ -86,3 +86,4 @@ tools/ui/.svelte-kit/output/client/recommended-mcp/huggingface.ico filter=lfs di
86
  tools/ui/dist/_gzip/_app/immutable/assets/bundle.S65JMH_w.css filter=lfs diff=lfs merge=lfs -text
87
  tools/ui/dist/_gzip/_app/immutable/bundle.Yxmpoeis.js filter=lfs diff=lfs merge=lfs -text
88
  tools/ui/dist/recommended-mcp/huggingface.ico filter=lfs diff=lfs merge=lfs -text
 
 
86
  tools/ui/dist/_gzip/_app/immutable/assets/bundle.S65JMH_w.css filter=lfs diff=lfs merge=lfs -text
87
  tools/ui/dist/_gzip/_app/immutable/bundle.Yxmpoeis.js filter=lfs diff=lfs merge=lfs -text
88
  tools/ui/dist/recommended-mcp/huggingface.ico filter=lfs diff=lfs merge=lfs -text
89
+ tools/ui/node_modules/@esbuild/linux-x64/bin/esbuild filter=lfs diff=lfs merge=lfs -text
tools/ui/node_modules/@babel/parser/lib/index.js.map ADDED
The diff for this file is too large to render. See raw diff
 
tools/ui/node_modules/@babel/parser/package.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@babel/parser",
3
+ "version": "7.29.7",
4
+ "description": "A JavaScript parser",
5
+ "author": "The Babel Team (https://babel.dev/team)",
6
+ "homepage": "https://babel.dev/docs/en/next/babel-parser",
7
+ "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen",
8
+ "license": "MIT",
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "keywords": [
13
+ "babel",
14
+ "javascript",
15
+ "parser",
16
+ "tc39",
17
+ "ecmascript",
18
+ "@babel/parser"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/babel/babel.git",
23
+ "directory": "packages/babel-parser"
24
+ },
25
+ "main": "./lib/index.js",
26
+ "types": "./typings/babel-parser.d.ts",
27
+ "files": [
28
+ "bin",
29
+ "lib",
30
+ "typings/babel-parser.d.ts",
31
+ "index.cjs"
32
+ ],
33
+ "engines": {
34
+ "node": ">=6.0.0"
35
+ },
36
+ "# dependencies": "This package doesn't actually have runtime dependencies. @babel/types is only needed for type definitions.",
37
+ "dependencies": {
38
+ "@babel/types": "^7.29.7"
39
+ },
40
+ "devDependencies": {
41
+ "@babel/code-frame": "^7.29.7",
42
+ "@babel/helper-check-duplicate-nodes": "^7.29.7",
43
+ "@babel/helper-fixtures": "^7.29.7",
44
+ "@babel/helper-string-parser": "^7.29.7",
45
+ "@babel/helper-validator-identifier": "^7.29.7",
46
+ "charcodes": "^0.2.0"
47
+ },
48
+ "bin": "./bin/babel-parser.js",
49
+ "type": "commonjs"
50
+ }
tools/ui/node_modules/@babel/parser/typings/babel-parser.d.ts ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This file is auto-generated! Do not modify it directly.
2
+ // Run `yarn gulp bundle-dts` to re-generate it.
3
+ /* eslint-disable @typescript-eslint/consistent-type-imports, @typescript-eslint/no-redundant-type-constituents */
4
+ import { File, Expression } from '@babel/types';
5
+
6
+ declare class Position {
7
+ line: number;
8
+ column: number;
9
+ index: number;
10
+ constructor(line: number, col: number, index: number);
11
+ }
12
+
13
+ type SyntaxPlugin = "flow" | "typescript" | "jsx" | "pipelineOperator" | "placeholders";
14
+ type ParseErrorCode = "BABEL_PARSER_SYNTAX_ERROR" | "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";
15
+ interface ParseErrorSpecification<ErrorDetails> {
16
+ code: ParseErrorCode;
17
+ reasonCode: string;
18
+ syntaxPlugin?: SyntaxPlugin;
19
+ missingPlugin?: string | string[];
20
+ loc: Position;
21
+ details: ErrorDetails;
22
+ pos: number;
23
+ }
24
+ type ParseError$1<ErrorDetails> = SyntaxError & ParseErrorSpecification<ErrorDetails>;
25
+
26
+ type BABEL_8_BREAKING = false;
27
+ type IF_BABEL_7<V> = false extends BABEL_8_BREAKING ? V : never;
28
+
29
+ type Plugin$1 =
30
+ | "asyncDoExpressions"
31
+ | IF_BABEL_7<"asyncGenerators">
32
+ | IF_BABEL_7<"bigInt">
33
+ | IF_BABEL_7<"classPrivateMethods">
34
+ | IF_BABEL_7<"classPrivateProperties">
35
+ | IF_BABEL_7<"classProperties">
36
+ | IF_BABEL_7<"classStaticBlock">
37
+ | IF_BABEL_7<"decimal">
38
+ | "decorators-legacy"
39
+ | "deferredImportEvaluation"
40
+ | "decoratorAutoAccessors"
41
+ | "destructuringPrivate"
42
+ | IF_BABEL_7<"deprecatedImportAssert">
43
+ | "doExpressions"
44
+ | IF_BABEL_7<"dynamicImport">
45
+ | IF_BABEL_7<"explicitResourceManagement">
46
+ | "exportDefaultFrom"
47
+ | IF_BABEL_7<"exportNamespaceFrom">
48
+ | "flow"
49
+ | "flowComments"
50
+ | "functionBind"
51
+ | "functionSent"
52
+ | "importMeta"
53
+ | "jsx"
54
+ | IF_BABEL_7<"jsonStrings">
55
+ | IF_BABEL_7<"logicalAssignment">
56
+ | IF_BABEL_7<"importAssertions">
57
+ | IF_BABEL_7<"importReflection">
58
+ | "moduleBlocks"
59
+ | IF_BABEL_7<"moduleStringNames">
60
+ | IF_BABEL_7<"nullishCoalescingOperator">
61
+ | IF_BABEL_7<"numericSeparator">
62
+ | IF_BABEL_7<"objectRestSpread">
63
+ | IF_BABEL_7<"optionalCatchBinding">
64
+ | IF_BABEL_7<"optionalChaining">
65
+ | "partialApplication"
66
+ | "placeholders"
67
+ | IF_BABEL_7<"privateIn">
68
+ | IF_BABEL_7<"regexpUnicodeSets">
69
+ | "sourcePhaseImports"
70
+ | "throwExpressions"
71
+ | IF_BABEL_7<"topLevelAwait">
72
+ | "v8intrinsic"
73
+ | ParserPluginWithOptions[0];
74
+
75
+ type ParserPluginWithOptions =
76
+ | ["decorators", DecoratorsPluginOptions]
77
+ | ["discardBinding", { syntaxType: "void" }]
78
+ | ["estree", { classFeatures?: boolean }]
79
+ | IF_BABEL_7<["importAttributes", { deprecatedAssertSyntax: boolean }]>
80
+ | IF_BABEL_7<["moduleAttributes", { version: "may-2020" }]>
81
+ | ["optionalChainingAssign", { version: "2023-07" }]
82
+ | ["pipelineOperator", PipelineOperatorPluginOptions]
83
+ | ["recordAndTuple", RecordAndTuplePluginOptions]
84
+ | ["flow", FlowPluginOptions]
85
+ | ["typescript", TypeScriptPluginOptions];
86
+
87
+ type PluginConfig = Plugin$1 | ParserPluginWithOptions;
88
+
89
+ interface DecoratorsPluginOptions {
90
+ decoratorsBeforeExport?: boolean;
91
+ allowCallParenthesized?: boolean;
92
+ }
93
+
94
+ interface PipelineOperatorPluginOptions {
95
+ proposal: BABEL_8_BREAKING extends false
96
+ ? "minimal" | "fsharp" | "hack" | "smart"
97
+ : "fsharp" | "hack";
98
+ topicToken?: "%" | "#" | "@@" | "^^" | "^";
99
+ }
100
+
101
+ interface RecordAndTuplePluginOptions {
102
+ syntaxType: "bar" | "hash";
103
+ }
104
+
105
+ type FlowPluginOptions = BABEL_8_BREAKING extends true
106
+ ? {
107
+ all?: boolean;
108
+ enums?: boolean;
109
+ }
110
+ : {
111
+ all?: boolean;
112
+ };
113
+
114
+ interface TypeScriptPluginOptions {
115
+ dts?: boolean;
116
+ disallowAmbiguousJSXLike?: boolean;
117
+ }
118
+
119
+ type Plugin = PluginConfig;
120
+
121
+ type SourceType = "script" | "commonjs" | "module" | "unambiguous";
122
+ interface Options {
123
+ /**
124
+ * By default, import and export declarations can only appear at a program's top level.
125
+ * Setting this option to true allows them anywhere where a statement is allowed.
126
+ */
127
+ allowImportExportEverywhere?: boolean;
128
+ /**
129
+ * By default, await use is not allowed outside of an async function.
130
+ * Set this to true to accept such code.
131
+ */
132
+ allowAwaitOutsideFunction?: boolean;
133
+ /**
134
+ * By default, a return statement at the top level raises an error.
135
+ * Set this to true to accept such code.
136
+ */
137
+ allowReturnOutsideFunction?: boolean;
138
+ /**
139
+ * By default, new.target use is not allowed outside of a function or class.
140
+ * Set this to true to accept such code.
141
+ */
142
+ allowNewTargetOutsideFunction?: boolean;
143
+ /**
144
+ * By default, super calls are not allowed outside of a method.
145
+ * Set this to true to accept such code.
146
+ */
147
+ allowSuperOutsideMethod?: boolean;
148
+ /**
149
+ * By default, exported identifiers must refer to a declared variable.
150
+ * Set this to true to allow export statements to reference undeclared variables.
151
+ */
152
+ allowUndeclaredExports?: boolean;
153
+ /**
154
+ * By default, yield use is not allowed outside of a generator function.
155
+ * Set this to true to accept such code.
156
+ */
157
+ allowYieldOutsideFunction?: boolean;
158
+ /**
159
+ * By default, Babel parser JavaScript code according to Annex B syntax.
160
+ * Set this to `false` to disable such behavior.
161
+ */
162
+ annexB?: boolean;
163
+ /**
164
+ * By default, Babel attaches comments to adjacent AST nodes.
165
+ * When this option is set to false, comments are not attached.
166
+ * It can provide up to 30% performance improvement when the input code has many comments.
167
+ * @babel/eslint-parser will set it for you.
168
+ * It is not recommended to use attachComment: false with Babel transform,
169
+ * as doing so removes all the comments in output code, and renders annotations such as
170
+ * /* istanbul ignore next *\/ nonfunctional.
171
+ */
172
+ attachComment?: boolean;
173
+ /**
174
+ * By default, Babel always throws an error when it finds some invalid code.
175
+ * When this option is set to true, it will store the parsing error and
176
+ * try to continue parsing the invalid input file.
177
+ */
178
+ errorRecovery?: boolean;
179
+ /**
180
+ * Indicate the mode the code should be parsed in.
181
+ * Can be one of "script", "commonjs", "module", or "unambiguous". Defaults to "script".
182
+ * "unambiguous" will make @babel/parser attempt to guess, based on the presence
183
+ * of ES6 import or export statements.
184
+ * Files with ES6 imports and exports are considered "module" and are otherwise "script".
185
+ *
186
+ * Use "commonjs" to parse code that is intended to be run in a CommonJS environment such as Node.js.
187
+ */
188
+ sourceType?: SourceType;
189
+ /**
190
+ * Correlate output AST nodes with their source filename.
191
+ * Useful when generating code and source maps from the ASTs of multiple input files.
192
+ */
193
+ sourceFilename?: string;
194
+ /**
195
+ * By default, all source indexes start from 0.
196
+ * You can provide a start index to alternatively start with.
197
+ * Useful for integration with other source tools.
198
+ */
199
+ startIndex?: number;
200
+ /**
201
+ * By default, the first line of code parsed is treated as line 1.
202
+ * You can provide a line number to alternatively start with.
203
+ * Useful for integration with other source tools.
204
+ */
205
+ startLine?: number;
206
+ /**
207
+ * By default, the parsed code is treated as if it starts from line 1, column 0.
208
+ * You can provide a column number to alternatively start with.
209
+ * Useful for integration with other source tools.
210
+ */
211
+ startColumn?: number;
212
+ /**
213
+ * Array containing the plugins that you want to enable.
214
+ */
215
+ plugins?: Plugin[];
216
+ /**
217
+ * Should the parser work in strict mode.
218
+ * Defaults to true if sourceType === 'module'. Otherwise, false.
219
+ */
220
+ strictMode?: boolean;
221
+ /**
222
+ * Adds a ranges property to each node: [node.start, node.end]
223
+ */
224
+ ranges?: boolean;
225
+ /**
226
+ * Adds all parsed tokens to a tokens property on the File node.
227
+ */
228
+ tokens?: boolean;
229
+ /**
230
+ * By default, the parser adds information about parentheses by setting
231
+ * `extra.parenthesized` to `true` as needed.
232
+ * When this option is `true` the parser creates `ParenthesizedExpression`
233
+ * AST nodes instead of using the `extra` property.
234
+ */
235
+ createParenthesizedExpressions?: boolean;
236
+ /**
237
+ * The default is false in Babel 7 and true in Babel 8
238
+ * Set this to true to parse it as an `ImportExpression` node.
239
+ * Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
240
+ */
241
+ createImportExpressions?: boolean;
242
+ }
243
+
244
+ type ParserOptions = Partial<Options>;
245
+ type ParseError = ParseError$1<object>;
246
+ type ParseResult<Result extends File | Expression = File> = Result & {
247
+ comments: File["comments"];
248
+ errors: null | ParseError[];
249
+ tokens?: File["tokens"];
250
+ };
251
+ /**
252
+ * Parse the provided code as an entire ECMAScript program.
253
+ */
254
+ declare function parse(input: string, options?: ParserOptions): ParseResult<File>;
255
+ declare function parseExpression(input: string, options?: ParserOptions): ParseResult<Expression>;
256
+
257
+ declare const tokTypes: {
258
+ // todo(flow->ts) real token type
259
+ [name: string]: any;
260
+ };
261
+
262
+ export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, PluginConfig as ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };
tools/ui/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # @babel/plugin-bugfix-firefox-class-in-computed-class-key
2
+
3
+ > Wraps classes defined in computed keys of other classes affected by https://bugzilla.mozilla.org/show_bug.cgi?id=1887677
4
+
5
+ See our website [@babel/plugin-bugfix-firefox-class-in-computed-class-key](https://babeljs.io/docs/babel-plugin-bugfix-firefox-class-in-computed-class-key) for more information.
6
+
7
+ ## Install
8
+
9
+ Using npm:
10
+
11
+ ```sh
12
+ npm install --save-dev @babel/plugin-bugfix-firefox-class-in-computed-class-key
13
+ ```
14
+
15
+ or using yarn:
16
+
17
+ ```sh
18
+ yarn add @babel/plugin-bugfix-firefox-class-in-computed-class-key --dev
19
+ ```
tools/ui/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/lib/index.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _traverse = require("@babel/traverse");
8
+ var _helperPluginUtils = require("@babel/helper-plugin-utils");
9
+ var _default = exports.default = (0, _helperPluginUtils.declare)(({
10
+ types: t,
11
+ assertVersion
12
+ }) => {
13
+ assertVersion(7);
14
+ const containsClassExpressionVisitor = {
15
+ ClassExpression(path, state) {
16
+ state.found = true;
17
+ path.stop();
18
+ },
19
+ Function(path) {
20
+ path.skip();
21
+ }
22
+ };
23
+ const containsYieldOrAwaitVisitor = _traverse.visitors.environmentVisitor({
24
+ YieldExpression(path, state) {
25
+ state.yield = true;
26
+ if (state.await) path.stop();
27
+ },
28
+ AwaitExpression(path, state) {
29
+ state.await = true;
30
+ if (state.yield) path.stop();
31
+ }
32
+ });
33
+ function containsClassExpression(path) {
34
+ if (t.isClassExpression(path.node)) return true;
35
+ if (t.isFunction(path.node)) return false;
36
+ const state = {
37
+ found: false
38
+ };
39
+ path.traverse(containsClassExpressionVisitor, state);
40
+ return state.found;
41
+ }
42
+ function wrap(path) {
43
+ const context = {
44
+ yield: t.isYieldExpression(path.node),
45
+ await: t.isAwaitExpression(path.node)
46
+ };
47
+ path.traverse(containsYieldOrAwaitVisitor, context);
48
+ let replacement;
49
+ if (context.yield) {
50
+ const fn = t.functionExpression(null, [], t.blockStatement([t.returnStatement(path.node)]), true, context.await);
51
+ replacement = t.yieldExpression(t.callExpression(t.memberExpression(fn, t.identifier("call")), [t.thisExpression(), t.identifier("arguments")]), true);
52
+ } else {
53
+ const fn = t.arrowFunctionExpression([], path.node, context.await);
54
+ replacement = t.callExpression(fn, []);
55
+ if (context.await) replacement = t.awaitExpression(replacement);
56
+ }
57
+ path.replaceWith(replacement);
58
+ }
59
+ return {
60
+ name: "bugfix-firefox-class-in-computed-class-key",
61
+ visitor: {
62
+ Class(path) {
63
+ const hasPrivateElement = path.node.body.body.some(node => t.isPrivate(node));
64
+ if (!hasPrivateElement) return;
65
+ for (const elem of path.get("body.body")) {
66
+ if ("computed" in elem.node && elem.node.computed && containsClassExpression(elem.get("key"))) {
67
+ wrap(elem.get("key"));
68
+ }
69
+ }
70
+ }
71
+ }
72
+ };
73
+ });
74
+
75
+ //# sourceMappingURL=index.js.map
tools/ui/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/lib/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"names":["_traverse","require","_helperPluginUtils","_default","exports","default","declare","types","t","assertVersion","containsClassExpressionVisitor","ClassExpression","path","state","found","stop","Function","skip","containsYieldOrAwaitVisitor","visitors","environmentVisitor","YieldExpression","yield","await","AwaitExpression","containsClassExpression","isClassExpression","node","isFunction","traverse","wrap","context","isYieldExpression","isAwaitExpression","replacement","fn","functionExpression","blockStatement","returnStatement","yieldExpression","callExpression","memberExpression","identifier","thisExpression","arrowFunctionExpression","awaitExpression","replaceWith","name","visitor","Class","hasPrivateElement","body","some","isPrivate","elem","get","computed"],"sources":["../src/index.ts"],"sourcesContent":["import type { types as t, NodePath, Visitor } from \"@babel/core\";\nimport { visitors } from \"@babel/traverse\";\nimport { declare } from \"@babel/helper-plugin-utils\";\n\nexport default declare(({ types: t, assertVersion }) => {\n assertVersion(REQUIRED_VERSION(7));\n\n const containsClassExpressionVisitor: Visitor<{ found: boolean }> = {\n ClassExpression(path, state) {\n state.found = true;\n path.stop();\n },\n Function(path) {\n path.skip();\n },\n };\n\n const containsYieldOrAwaitVisitor = visitors.environmentVisitor<{\n yield: boolean;\n await: boolean;\n }>({\n YieldExpression(path, state) {\n state.yield = true;\n if (state.await) path.stop();\n },\n AwaitExpression(path, state) {\n state.await = true;\n if (state.yield) path.stop();\n },\n });\n\n function containsClassExpression(path: NodePath<t.Node>) {\n if (t.isClassExpression(path.node)) return true;\n if (t.isFunction(path.node)) return false;\n const state = { found: false };\n if (process.env.BABEL_8_BREAKING) {\n t.traverseFast(path.node, node => {\n if (t.isClassExpression(node)) {\n state.found = true;\n return t.traverseFast.stop;\n } else if (t.isFunction(node)) {\n return t.traverseFast.skip;\n }\n });\n } else {\n path.traverse(containsClassExpressionVisitor, state);\n }\n return state.found;\n }\n\n function wrap(path: NodePath<t.Expression>) {\n const context = {\n yield: t.isYieldExpression(path.node),\n await: t.isAwaitExpression(path.node),\n };\n if (process.env.BABEL_8_BREAKING) {\n t.traverseFast(path.node, node => {\n if (t.isYieldExpression(node)) {\n context.yield = true;\n if (context.await) return t.traverseFast.stop;\n } else if (t.isAwaitExpression(node)) {\n context.await = true;\n if (context.yield) return t.traverseFast.stop;\n }\n });\n } else {\n path.traverse(containsYieldOrAwaitVisitor, context);\n }\n\n let replacement;\n\n if (context.yield) {\n const fn = t.functionExpression(\n null,\n [],\n t.blockStatement([t.returnStatement(path.node)]),\n /* generator */ true,\n /* async */ context.await,\n );\n\n replacement = t.yieldExpression(\n t.callExpression(t.memberExpression(fn, t.identifier(\"call\")), [\n t.thisExpression(),\n // NOTE: In some context arguments is invalid (it might not be defined\n // in the top-level scope, or it's a syntax error in static class blocks).\n // However, `yield` is also invalid in those contexts, so we can safely\n // inject a reference to arguments.\n t.identifier(\"arguments\"),\n ]),\n true,\n );\n } else {\n const fn = t.arrowFunctionExpression([], path.node, context.await);\n\n replacement = t.callExpression(fn, []);\n if (context.await) replacement = t.awaitExpression(replacement);\n }\n\n path.replaceWith(replacement);\n }\n\n return {\n name: \"bugfix-firefox-class-in-computed-class-key\",\n\n visitor: {\n Class(path) {\n const hasPrivateElement = path.node.body.body.some(node =>\n t.isPrivate(node),\n );\n if (!hasPrivateElement) return;\n\n for (const elem of path.get(\"body.body\")) {\n if (\n \"computed\" in elem.node &&\n elem.node.computed &&\n containsClassExpression(elem.get(\"key\"))\n ) {\n wrap(\n // @ts-expect-error .key also includes t.PrivateName\n elem.get(\"key\") satisfies NodePath<t.Expression>,\n );\n }\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAAqD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEtC,IAAAC,0BAAO,EAAC,CAAC;EAAEC,KAAK,EAAEC,CAAC;EAAEC;AAAc,CAAC,KAAK;EACtDA,aAAa,CAAkB,CAAE,CAAC;EAElC,MAAMC,8BAA2D,GAAG;IAClEC,eAAeA,CAACC,IAAI,EAAEC,KAAK,EAAE;MAC3BA,KAAK,CAACC,KAAK,GAAG,IAAI;MAClBF,IAAI,CAACG,IAAI,CAAC,CAAC;IACb,CAAC;IACDC,QAAQA,CAACJ,IAAI,EAAE;MACbA,IAAI,CAACK,IAAI,CAAC,CAAC;IACb;EACF,CAAC;EAED,MAAMC,2BAA2B,GAAGC,kBAAQ,CAACC,kBAAkB,CAG5D;IACDC,eAAeA,CAACT,IAAI,EAAEC,KAA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H;QACF;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
tools/ui/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/package.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@babel/plugin-bugfix-firefox-class-in-computed-class-key",
3
+ "version": "7.29.7",
4
+ "description": "Wraps classes defined in computed keys of other classes affected by https://bugzilla.mozilla.org/show_bug.cgi?id=1887677",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/babel/babel.git",
8
+ "directory": "packages/babel-plugin-bugfix-firefox-class-in-computed-class-key"
9
+ },
10
+ "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-firefox-class-in-computed-class-key",
11
+ "license": "MIT",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "main": "./lib/index.js",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "keywords": [
24
+ "babel-plugin",
25
+ "bugfix"
26
+ ],
27
+ "dependencies": {
28
+ "@babel/helper-plugin-utils": "^7.29.7",
29
+ "@babel/traverse": "^7.29.7"
30
+ },
31
+ "peerDependencies": {
32
+ "@babel/core": "^7.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "@babel/core": "^7.29.7",
36
+ "@babel/helper-plugin-test-runner": "^7.29.7"
37
+ },
38
+ "engines": {
39
+ "node": ">=6.9.0"
40
+ },
41
+ "author": "The Babel Team (https://babel.dev/team)",
42
+ "type": "commonjs"
43
+ }
tools/ui/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # @babel/plugin-bugfix-safari-class-field-initializer-scope
2
+
3
+ > Wrap class field initializers with IIFE to workaround https://webkit.org/b/236843
4
+
5
+ See our website [@babel/plugin-bugfix-safari-class-field-initializer-scope](https://babeljs.io/docs/babel-plugin-bugfix-safari-class-field-initializer-scope) for more information.
6
+
7
+ ## Install
8
+
9
+ Using npm:
10
+
11
+ ```sh
12
+ npm install --save-dev @babel/plugin-bugfix-safari-class-field-initializer-scope
13
+ ```
14
+
15
+ or using yarn:
16
+
17
+ ```sh
18
+ yarn add @babel/plugin-bugfix-safari-class-field-initializer-scope --dev
19
+ ```
tools/ui/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/lib/index.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var helperPluginUtils = require('@babel/helper-plugin-utils');
6
+ var core = require('@babel/core');
7
+
8
+ function needsWrapping(node) {
9
+ if (core.types.isLiteral(node) && !core.types.isTemplateLiteral(node)) {
10
+ return false;
11
+ }
12
+ if (core.types.isCallExpression(node) || core.types.isOptionalCallExpression(node) || core.types.isNewExpression(node)) {
13
+ return needsWrapping(node.callee) || node.arguments.some(needsWrapping);
14
+ }
15
+ if (core.types.isTemplateLiteral(node)) {
16
+ return node.expressions.some(needsWrapping);
17
+ }
18
+ if (core.types.isTaggedTemplateExpression(node)) {
19
+ return needsWrapping(node.tag) || needsWrapping(node.quasi);
20
+ }
21
+ if (core.types.isArrayExpression(node)) {
22
+ return node.elements.some(needsWrapping);
23
+ }
24
+ if (core.types.isObjectExpression(node)) {
25
+ return node.properties.some(prop => {
26
+ if (core.types.isObjectProperty(prop)) {
27
+ return needsWrapping(prop.value) || prop.computed && needsWrapping(prop.key);
28
+ }
29
+ if (core.types.isObjectMethod(prop)) {
30
+ return false;
31
+ }
32
+ return false;
33
+ });
34
+ }
35
+ if (core.types.isMemberExpression(node) || core.types.isOptionalMemberExpression(node)) {
36
+ return needsWrapping(node.object) || node.computed && needsWrapping(node.property);
37
+ }
38
+ if (core.types.isFunctionExpression(node) || core.types.isArrowFunctionExpression(node) || core.types.isClassExpression(node)) {
39
+ return false;
40
+ }
41
+ if (core.types.isThisExpression(node)) {
42
+ return false;
43
+ }
44
+ if (core.types.isSequenceExpression(node)) {
45
+ return node.expressions.some(needsWrapping);
46
+ }
47
+ return true;
48
+ }
49
+ function wrapInitializer(path) {
50
+ const {
51
+ value
52
+ } = path.node;
53
+ if (value && needsWrapping(value)) {
54
+ path.node.value = core.types.callExpression(core.types.arrowFunctionExpression([], value), []);
55
+ }
56
+ }
57
+ var index = helperPluginUtils.declare(api => {
58
+ api.assertVersion("^7.16.0");
59
+ return {
60
+ name: "plugin-bugfix-safari-class-field-initializer-scope",
61
+ visitor: {
62
+ ClassProperty(path) {
63
+ wrapInitializer(path);
64
+ },
65
+ ClassPrivateProperty(path) {
66
+ wrapInitializer(path);
67
+ }
68
+ }
69
+ };
70
+ });
71
+
72
+ exports.default = index;
73
+ //# sourceMappingURL=index.js.map
tools/ui/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/lib/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t } from \"@babel/core\";\nimport type { NodePath } from \"@babel/core\";\n\nfunction needsWrapping(node: t.Node): boolean {\n if (t.isLiteral(node) && !t.isTemplateLiteral(node)) {\n return false;\n }\n\n if (\n t.isCallExpression(node) ||\n t.isOptionalCallExpression(node) ||\n t.isNewExpression(node)\n ) {\n return needsWrapping(node.callee) || node.arguments.some(needsWrapping);\n }\n\n if (t.isTemplateLiteral(node)) {\n return node.expressions.some(needsWrapping);\n }\n\n if (t.isTaggedTemplateExpression(node)) {\n return needsWrapping(node.tag) || needsWrapping(node.quasi);\n }\n\n if (t.isArrayExpression(node)) {\n return node.elements.some(needsWrapping);\n }\n\n if (t.isObjectExpression(node)) {\n return node.properties.some(prop => {\n if (t.isObjectProperty(prop)) {\n return (\n needsWrapping(prop.value) ||\n (prop.computed && needsWrapping(prop.key))\n );\n }\n if (t.isObjectMethod(prop)) {\n return false;\n }\n return false;\n });\n }\n\n if (t.isMemberExpression(node) || t.isOptionalMemberExpression(node)) {\n return (\n needsWrapping(node.object) ||\n (node.computed && needsWrapping(node.property))\n );\n }\n\n if (\n t.isFunctionExpression(node) ||\n t.isArrowFunctionExpression(node) ||\n t.isClassExpression(node)\n ) {\n return false;\n }\n\n if (t.isThisExpression(node)) {\n return false;\n }\n\n if (t.isSequenceExpression(node)) {\n return node.expressions.some(needsWrapping);\n }\n\n // Is an identifier, or anything else not covered above\n return true;\n}\n\nfunction wrapInitializer(\n path: NodePath<t.ClassProperty | t.ClassPrivateProperty>,\n) {\n const { value } = path.node;\n\n if (value && needsWrapping(value)) {\n path.node.value = t.callExpression(\n t.arrowFunctionExpression([], value),\n [],\n );\n }\n}\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(\"^7.16.0\"));\n\n return {\n name: \"plugin-bugfix-safari-class-field-initializer-scope\",\n\n visitor: {\n ClassProperty(path) {\n wrapInitializer(path);\n },\n ClassPrivateProperty(path) {\n wrapInitializer(path);\n },\n },\n };\n});\n"],"names":["needsWrapping","node","t","isLiteral","isTemplateLiteral","isCallExpression","isOptionalCallExpression","isNewExpression","callee","arguments","some","expressions","isTaggedTemplateExpression","tag","quasi","isArrayExpression","elements","isObjectExpression","properties","prop","isObjectProperty","value","computed","key","isObjectMethod","isMemberExpression","isOptionalMemberExpression","object","property","isFunctionExpression","isArrowFunctionExpression","isClassExpression","isThisExpression","isSequenceExpression","wrapInitializer","path","callExpression","arrowFunctionExpression","declare","api","assertVersion","name","visitor","ClassProperty","ClassPrivateProperty"],"mappings":";;;;;;;AAIA,SAASA,aAAaA,CAACC,IAAY,EAAW;AAC5C,EAAA,IAAIC,UAAC,CAACC,SAAS,CAACF,IAAI,CAAC,IAAI,CAACC,UAAC,CAACE,iBAAiB,CAACH,IAAI,CAAC,EAAE;AACnD,IAAA,OAAO,KAAK,CAAA;AACd,GAAA;EAEA,IACEC,UAAC,CAACG,gBAAgB,CAACJ,IAAI,CAAC,IACxBC,UAAC,CAACI,wBAAwB,CAACL,IAAI,CAAC,IAChCC,UAAC,CAACK,eAAe,CAACN,IAAI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AaA,CAACR,IAAI,EAAE;QAClBD,eAAe,CAACC,IAAI,CAAC,CAAA;OACtB;MACDS,oBAAoBA,CAACT,IAAI,EAAE;QACzBD,eAAe,CAACC,IAAI,CAAC,CAAA;AACvB,OAAA;AACF,KAAA;GACD,CAAA;AACH,CAAC,CAAC;;;;"}
tools/ui/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/package.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@babel/plugin-bugfix-safari-class-field-initializer-scope",
3
+ "version": "7.29.7",
4
+ "description": "Wrap class field initializers with IIFE to workaround https://webkit.org/b/236843",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/babel/babel.git",
8
+ "directory": "packages/babel-plugin-bugfix-safari-class-field-initializer-scope"
9
+ },
10
+ "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-safari-class-field-initializer-scope",
11
+ "license": "MIT",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "main": "./lib/index.js",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "keywords": [
24
+ "babel-plugin",
25
+ "bugfix"
26
+ ],
27
+ "dependencies": {
28
+ "@babel/helper-plugin-utils": "^7.29.7"
29
+ },
30
+ "peerDependencies": {
31
+ "@babel/core": "^7.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@babel/core": "^7.29.7",
35
+ "@babel/helper-plugin-test-runner": "^7.29.7",
36
+ "@babel/traverse": "^7.29.7"
37
+ },
38
+ "engines": {
39
+ "node": ">=6.9.0"
40
+ },
41
+ "author": "The Babel Team (https://babel.dev/team)",
42
+ "type": "commonjs"
43
+ }
tools/ui/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression
2
+
3
+ > Rename destructuring parameter to workaround https://bugs.webkit.org/show_bug.cgi?id=220517
4
+
5
+ See our website [@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression](https://babeljs.io/docs/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression) for more information.
6
+
7
+ ## Install
8
+
9
+ Using npm:
10
+
11
+ ```sh
12
+ npm install --save-dev @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression
13
+ ```
14
+
15
+ or using yarn:
16
+
17
+ ```sh
18
+ yarn add @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression --dev
19
+ ```
tools/ui/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/lib/index.js ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var helperPluginUtils = require('@babel/helper-plugin-utils');
6
+
7
+ function shouldTransform(path) {
8
+ const {
9
+ node
10
+ } = path;
11
+ const functionId = node.id;
12
+ if (!functionId) return false;
13
+ const name = functionId.name;
14
+ const paramNameBinding = path.scope.getOwnBinding(name);
15
+ if (paramNameBinding === undefined) {
16
+ return false;
17
+ }
18
+ if (paramNameBinding.kind !== "param") {
19
+ return false;
20
+ }
21
+ if (paramNameBinding.identifier === paramNameBinding.path.node) {
22
+ return false;
23
+ }
24
+ return name;
25
+ }
26
+
27
+ var index = helperPluginUtils.declare(api => {
28
+ api.assertVersion("^7.16.0");
29
+ return {
30
+ name: "plugin-bugfix-safari-id-destructuring-collision-in-function-expression",
31
+ visitor: {
32
+ FunctionExpression(path) {
33
+ const name = shouldTransform(path);
34
+ if (name) {
35
+ const {
36
+ scope
37
+ } = path;
38
+ const newParamName = scope.generateUid(name);
39
+ scope.rename(name, newParamName);
40
+ }
41
+ }
42
+ }
43
+ };
44
+ });
45
+
46
+ exports.default = index;
47
+ //# sourceMappingURL=index.js.map
tools/ui/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/lib/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.js","sources":["../src/util.ts","../src/index.ts"],"sourcesContent":["import type { NodePath, types as t } from \"@babel/core\";\n\n/**\n * Check whether a function expression can be affected by\n * https://bugs.webkit.org/show_bug.cgi?id=220517\n * @param path The function expression NodePath\n * @returns the name of function id if it should be transformed, otherwise returns false\n */\nexport function shouldTransform(\n path: NodePath<t.FunctionExpression>,\n): string | false {\n const { node } = path;\n const functionId = node.id;\n if (!functionId) return false;\n\n const name = functionId.name;\n // On collision, `getOwnBinding` returns the param binding\n // with the id binding be registered as constant violation\n const paramNameBinding = path.scope.getOwnBinding(name);\n if (paramNameBinding === undefined) {\n // Case 1: the function id is injected by babel-helper-name-function, which\n // assigns `NOT_LOCAL_BINDING` to the `functionId` and thus not registering id\n // in scope tracking\n // Case 2: the function id is injected by a third party plugin which does not update the\n // scope info\n return false;\n }\n if (paramNameBinding.kind !== \"param\") {\n // the function id does not reproduce in params\n return false;\n }\n\n if (paramNameBinding.identifier === paramNameBinding.path.node) {\n // the param binding is a simple parameter\n // e.g. (function a(a) {})\n return false;\n }\n\n return name;\n}\n","import { declare } from \"@babel/helper-plugin-utils\";\nimport { shouldTransform } from \"./util.ts\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(\"^7.16.0\"));\n\n return {\n name: \"plugin-bugfix-safari-id-destructuring-collision-in-function-expression\",\n\n visitor: {\n FunctionExpression(path) {\n const name = shouldTransform(path);\n if (name) {\n // Now we have (function a([a]) {})\n const { scope } = path;\n // invariant: path.node.id is always an Identifier here\n const newParamName = scope.generateUid(name);\n scope.rename(name, newParamName);\n }\n },\n },\n };\n});\n"],"names":["shouldTransform","path","node","functionId","id","name","paramNameBinding","scope","getOwnBinding","undefined","kind","identifier","declare","api","assertVersion","visitor","FunctionExpression","newParamName","generateUid","rename"],"mappings":";;;;;;AAQO,SAASA,eAAeA,CAC7BC,IAAoC,EACpB;EAChB,MAAM;AAAEC,IAAAA,IAAAA;AAAK,GAAC,GAAGD,IAAI,CAAA;AACrB,EAAA,MAAME,UAAU,GAAGD,IAAI,CAACE,EAAE,CAAA;AAC1B,EAAA,IAAI,CAACD,UAAU,EAAE,OAAO,KAAK,CAAA;AAE7B,EAAA,MAAME,IAAI,GAAGF,UAAU,CAACE,IAAI,CAAA;EAG5B,MAAMC,gBAAgB,GAAGL,IAAI,CAACM,KAAK,CAACC,aAAa,CAACH,IAAI,CAAC,CAAA;EACvD,IAAIC,gBAAgB,KAAKG,SAAS,EAAE;AAMlC,IAAA,OAAO,KAAK,CAAA;AACd,GAAA;AACA,EAAA,IAAIH,gBAAgB,CAACI,IAAI,KAAK,OAAO,EAAE;AAErC,IAAA,OAAO,KAAK,CAAA;AACd,GAAA;EAEA,IAAIJ,gBAAgB,CAACK,UAAU,KAAKL,gBAAgB,CAACL,IAAI,CAACC,IAAI,EAAE;AAG9D,IAAA,OAAO,KAAK,CAAA;AACd,GAAA;AAEA,EAAA,OAAOG,IAAI,CAAA;AACb;;ACpCA,YAAeO,yBAAO,CAACC,GAAG,IAAI;AAC5BA,EAAAA,GAAG,CAACC,aAAa,CAAkB,SAAU,CAAC,CAAA;EAE9C,OAAO;AACLT,IAAAA,IAAI,EAAE,wEAAwE;AAE9EU,IAAAA,OAAO,EAAE;MACPC,kBAAkBA,CAACf,IAAI,EAAE;AACvB,QAAA,MAAMI,IAAI,GAAGL,eAAe,CAACC,IAAI,CAAC,CAAA;AAClC,QAAA,IAAII,IAAI,EAAE;UAER,MAAM;AAAEE,YAAAA,KAAAA;AAAM,WAAC,GAAGN,IAAI,CAAA;AAEtB,UAAA,MAAMgB,YAAY,GAAGV,KAAK,CAACW,WAAW,CAACb,IAAI,CAAC,CAAA;AAC5CE,UAAAA,KAAK,CAACY,MAAM,CAACd,IAAI,EAAEY,YAAY,CAAC,CAAA;AAClC,SAAA;AACF,OAAA;AACF,KAAA;GACD,CAAA;AACH,CAAC,CAAC;;;;"}
tools/ui/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression",
3
+ "version": "7.29.7",
4
+ "description": "Rename destructuring parameter to workaround https://bugs.webkit.org/show_bug.cgi?id=220517",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/babel/babel.git",
8
+ "directory": "packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression"
9
+ },
10
+ "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression",
11
+ "license": "MIT",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "main": "./lib/index.js",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "keywords": [
24
+ "babel-plugin",
25
+ "bugfix"
26
+ ],
27
+ "dependencies": {
28
+ "@babel/helper-plugin-utils": "^7.29.7"
29
+ },
30
+ "peerDependencies": {
31
+ "@babel/core": "^7.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@babel/core": "^7.29.7",
35
+ "@babel/helper-plugin-test-runner": "^7.29.7",
36
+ "@babel/traverse": "^7.29.7"
37
+ },
38
+ "engines": {
39
+ "node": ">=6.9.0"
40
+ },
41
+ "author": "The Babel Team (https://babel.dev/team)",
42
+ "type": "commonjs"
43
+ }
tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # @babel/plugin-bugfix-safari-rest-destructuring-rhs-array
2
+
3
+ > Workaround a Safari bug where rest destructuring with an array literal on the rhs can yield incorrect results
4
+
5
+ See our website [@babel/plugin-bugfix-safari-rest-destructuring-rhs-array](https://babeljs.io/docs/babel-plugin-bugfix-safari-rest-destructuring-rhs-array) for more information.
6
+
7
+ ## Install
8
+
9
+ Using npm:
10
+
11
+ ```sh
12
+ npm install --save-dev @babel/plugin-bugfix-safari-rest-destructuring-rhs-array
13
+ ```
14
+
15
+ or using yarn:
16
+
17
+ ```sh
18
+ yarn add @babel/plugin-bugfix-safari-rest-destructuring-rhs-array --dev
19
+ ```
tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/lib/index.js ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _helperPluginUtils = require("@babel/helper-plugin-utils");
8
+ var _util = require("./util.js");
9
+ var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
10
+ const {
11
+ types: t,
12
+ assertVersion
13
+ } = api;
14
+ assertVersion(7);
15
+ return {
16
+ name: "plugin-bugfix-safari-rest-destructuring-rhs-array",
17
+ visitor: {
18
+ ArrayPattern(path) {
19
+ const rhs = (0, _util.shouldTransform)(path);
20
+ if (rhs) {
21
+ path.replaceWith(t.arrayPattern([path.node]));
22
+ rhs.replaceWith(t.arrayExpression([rhs.node]));
23
+ }
24
+ }
25
+ }
26
+ };
27
+ });
28
+
29
+ //# sourceMappingURL=index.js.map
tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/lib/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"names":["_helperPluginUtils","require","_util","_default","exports","default","declare","api","types","t","assertVersion","name","visitor","ArrayPattern","path","rhs","shouldTransform","replaceWith","arrayPattern","node","arrayExpression"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { shouldTransform } from \"./util.ts\";\n\nexport default declare(api => {\n const { types: t, assertVersion } = api;\n assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"plugin-bugfix-safari-rest-destructuring-rhs-array\",\n\n visitor: {\n ArrayPattern(path) {\n const rhs = shouldTransform(path);\n if (rhs) {\n // The most minimal approach is to add a trailing comma to the rhs array,\n // but that would be easily reverted by minifiers, so instead we wrap both sides\n // in an array\n path.replaceWith(t.arrayPattern([path.node]));\n rhs.replaceWith(t.arrayExpression([rhs.node]));\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAA4C,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE7B,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5B,MAAM;IAAEC,KAAK,EAAEC,CAAC;IAAEC;EAAc,CAAC,GAAGH,GAAG;EACvCG,aAAa,CAAkB,CAAE,CAAC;EAElC,OAAO;IACLC,IAAI,EAAE,mDAAmD;IAEzDC,OAAO,EAAE;MACPC,YAAYA,CAACC,IAAI,EAAE;QACjB,MAAMC,GAAG,GAAG,IAAAC,qBAAe,EAACF,IAAI,CAAC;QACjC,IAAIC,GAAG,EAAE;UAIPD,IAAI,CAACG,WAAW,CAACR,CAAC,CAACS,YAAY,CAAC,CAACJ,IAAI,CAACK,IAAI,CAAC,CAAC,CAAC;UAC7CJ,GAAG,CAACE,WAAW,CAACR,CAAC,CAACW,eAAe,CAAC,CAACL,GAAG,CAACI,IAAI,CAAC,CAAC,CAAC;QAChD;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/lib/util.js ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.isPathSimpleArrayWithLength = isPathSimpleArrayWithLength;
7
+ exports.shouldTransform = shouldTransform;
8
+ var _helperSkipTransparentExpressionWrappers = require("@babel/helper-skip-transparent-expression-wrappers");
9
+ function isPathSimpleArrayWithLength(path, N) {
10
+ var _path$node$extra;
11
+ if (!path.isArrayExpression()) {
12
+ return false;
13
+ }
14
+ const elementPaths = path.get("elements");
15
+ return elementPaths.length === N && elementPaths.every(elementPath => elementPath.node && !elementPath.isSpreadElement()) && !((_path$node$extra = path.node.extra) != null && _path$node$extra.trailingComma);
16
+ }
17
+ function shouldTransform(path) {
18
+ const elementPaths = path.get("elements");
19
+ const elementPathsLength = elementPaths.length;
20
+ if (elementPaths[elementPathsLength - 1].isRestElement()) {
21
+ const {
22
+ parentPath
23
+ } = path;
24
+ const rhsPath = parentPath.isVariableDeclarator() ? parentPath.get("init") : parentPath.isAssignmentExpression() ? parentPath.get("right") : null;
25
+ if (rhsPath != null && rhsPath.node && isPathSimpleArrayWithLength((0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(rhsPath), elementPathsLength)) {
26
+ return rhsPath;
27
+ }
28
+ }
29
+ return false;
30
+ }
31
+
32
+ //# sourceMappingURL=util.js.map
tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/lib/util.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"names":["_helperSkipTransparentExpressionWrappers","require","isPathSimpleArrayWithLength","path","N","_path$node$extra","isArrayExpression","elementPaths","get","length","every","elementPath","node","isSpreadElement","extra","trailingComma","shouldTransform","elementPathsLength","isRestElement","parentPath","rhsPath","isVariableDeclarator","isAssignmentExpression","skipTransparentExprWrappers"],"sources":["../src/util.ts"],"sourcesContent":["import type { NodePath, types as t } from \"@babel/core\";\nimport { skipTransparentExprWrappers } from \"@babel/helper-skip-transparent-expression-wrappers\";\n\n/**\n * Check whether a path is an ArrayExpression with exactly N non-spread & non-hole elements and no trailing comma\n * @param path\n * @param N\n * @returns\n */\nexport function isPathSimpleArrayWithLength(\n path: NodePath,\n N: number,\n): path is NodePath<t.ArrayExpression> {\n if (!path.isArrayExpression()) {\n return false;\n }\n const elementPaths = path.get(\"elements\");\n return (\n elementPaths.length === N &&\n elementPaths.every(\n elementPath => elementPath.node && !elementPath.isSpreadElement(),\n ) &&\n !path.node.extra?.trailingComma\n );\n}\n\n/**\n * Check whether an array pattern may be affected by\n * https://github.com/babel/babel/issues/17773#issuecomment-3842765704\n * @param path The array pattern NodePath\n * @returns The RHS NodePath if the pattern should be transformed, or false if it can be left as-is.\n */\nexport function shouldTransform(\n path: NodePath<t.ArrayPattern>,\n): NodePath<t.Expression> | false {\n const elementPaths = path.get(\"elements\");\n const elementPathsLength = elementPaths.length;\n if (elementPaths[elementPathsLength - 1].isRestElement()) {\n const { parentPath } = path;\n const rhsPath = parentPath.isVariableDeclarator()\n ? parentPath.get(\"init\")\n : parentPath.isAssignmentExpression()\n ? parentPath.get(\"right\")\n : null;\n if (\n rhsPath?.node &&\n isPathSimpleArrayWithLength(\n skipTransparentExprWrappers(rhsPath),\n elementPathsLength,\n )\n ) {\n return rhsPath;\n }\n }\n return false;\n}\n"],"mappings":";;;;;;;AACA,IAAAA,wCAAA,GAAAC,OAAA;AAQO,SAASC,2BAA2BA,CACzCC,IAAc,EACdC,CAAS,EAC4B;EAAA,IAAAC,gBAAA;EACrC,IAAI,CAACF,IAAI,CAACG,iBAAiB,CAAC,CAAC,EAAE;IAC7B,OAAO,KAAK;EACd;EACA,MAAMC,YAAY,GAAGJ,IAAI,CAACK,GAAG,CAAC,UAAU,CAAC;EACzC,OACED,YAAY,CAACE,MAAM,KAAKL,CAAC,IACzBG,YAAY,CAACG,KAAK,CAChBC,WAAW,IAAIA,WAAW,CAACC,IAAI,IAAI,CAACD,WAAW,CAACE,eAAe,CAAC,CAClE,CAAC,IACD,GAAAR,gBAAA,GAACF,IAAI,CAACS,IAAI,CAACE,KAAK,aAAfT,gBAAA,CAAiBU,aAAa;AAEnC;AAQO,SAASC,eAAeA,CAC7Bb,IAA8B,EACE;EAChC,MAAMI,YAAY,GAAGJ,IAAI,CAACK,GAAG,CAAC,UAAU,CAAC;EACzC,MAAMS,kBAAkB,GAAGV,YAAY,CAACE,MAAM;EAC9C,IAAIF,YAAY,CAACU,kBAAkB,GAAG,CAAC,CAAC,CAACC,aAAa,CAAC,CAAC,EAAE;IACxD,MAAM;MAAEC;IAAW,CAAC,GAAGhB,IAAI;IAC3B,MAAMiB,OAAO,GAAGD,UAAU,CAACE,oBAAoB,CAAC,CAAC,GAC7CF,UAAU,CAACX,GAAG,CAAC,MAAM,CAAC,GACtBW,UAAU,CAACG,sBAAsB,CAAC,CAAC,GACjCH,UAAU,CAACX,GAAG,CAAC,OAAO,CAAC,GACvB,IAAI;IACV,IACEY,OAAO,YAAPA,OAAO,CAAER,IAAI,IACbV,2BAA2B,CACzB,IAAAqB,oEAA2B,EAACH,OAAO,CAAC,EACpCH,kBACF,CAAC,EACD;MACA,OAAOG,OAAO;IAChB;EACF;EACA,OAAO,KAAK;AACd","ignoreList":[]}
tools/ui/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/package.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array",
3
+ "version": "7.29.7",
4
+ "description": "Workaround a Safari bug where rest destructuring with an array literal on the rhs can yield incorrect results",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/babel/babel.git",
8
+ "directory": "packages/babel-plugin-bugfix-safari-rest-destructuring-rhs-array"
9
+ },
10
+ "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-safari-rest-destructuring-rhs-array",
11
+ "license": "MIT",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "main": "./lib/index.js",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "keywords": [
24
+ "babel-plugin",
25
+ "bugfix"
26
+ ],
27
+ "dependencies": {
28
+ "@babel/helper-plugin-utils": "^7.29.7",
29
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7"
30
+ },
31
+ "peerDependencies": {
32
+ "@babel/core": "^7.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "@babel/core": "^7.29.7",
36
+ "@babel/helper-plugin-test-runner": "^7.29.7",
37
+ "@babel/traverse": "^7.29.7"
38
+ },
39
+ "engines": {
40
+ "node": ">=6.9.0"
41
+ },
42
+ "author": "The Babel Team (https://babel.dev/team)",
43
+ "type": "commonjs"
44
+ }
tools/ui/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining
2
+
3
+ > Transform optional chaining operators to workaround https://crbug.com/v8/11558
4
+
5
+ See our website [@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining](https://babeljs.io/docs/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining) for more information.
6
+
7
+ ## Install
8
+
9
+ Using npm:
10
+
11
+ ```sh
12
+ npm install --save-dev @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining
13
+ ```
14
+
15
+ or using yarn:
16
+
17
+ ```sh
18
+ yarn add @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining --dev
19
+ ```
tools/ui/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/lib/index.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var helperPluginUtils = require('@babel/helper-plugin-utils');
6
+ var pluginTransformOptionalChaining = require('@babel/plugin-transform-optional-chaining');
7
+ var helperSkipTransparentExpressionWrappers = require('@babel/helper-skip-transparent-expression-wrappers');
8
+ var core = require('@babel/core');
9
+
10
+ function matchAffectedArguments(argumentNodes) {
11
+ const spreadIndex = argumentNodes.findIndex(node => core.types.isSpreadElement(node));
12
+ return spreadIndex >= 0 && spreadIndex !== argumentNodes.length - 1;
13
+ }
14
+ function shouldTransform(path) {
15
+ let optionalPath = path;
16
+ const chains = [];
17
+ for (;;) {
18
+ if (optionalPath.isOptionalMemberExpression()) {
19
+ chains.push(optionalPath.node);
20
+ optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("object"));
21
+ } else if (optionalPath.isOptionalCallExpression()) {
22
+ chains.push(optionalPath.node);
23
+ optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("callee"));
24
+ } else {
25
+ break;
26
+ }
27
+ }
28
+ for (let i = 0; i < chains.length; i++) {
29
+ const node = chains[i];
30
+ if (core.types.isOptionalCallExpression(node) && matchAffectedArguments(node.arguments)) {
31
+ if (node.optional) {
32
+ return true;
33
+ }
34
+ const callee = chains[i + 1];
35
+ if (core.types.isOptionalMemberExpression(callee, {
36
+ optional: true
37
+ })) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+
45
+ var index = helperPluginUtils.declare(api => {
46
+ var _api$assumption, _api$assumption2;
47
+ api.assertVersion(7);
48
+ const noDocumentAll = (_api$assumption = api.assumption("noDocumentAll")) != null ? _api$assumption : false;
49
+ const pureGetters = (_api$assumption2 = api.assumption("pureGetters")) != null ? _api$assumption2 : false;
50
+ return {
51
+ name: "bugfix-v8-spread-parameters-in-optional-chaining",
52
+ visitor: {
53
+ "OptionalCallExpression|OptionalMemberExpression"(path) {
54
+ if (shouldTransform(path)) {
55
+ pluginTransformOptionalChaining.transform(path, {
56
+ noDocumentAll,
57
+ pureGetters
58
+ });
59
+ }
60
+ }
61
+ }
62
+ };
63
+ });
64
+
65
+ exports.default = index;
66
+ //# sourceMappingURL=index.js.map
tools/ui/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/lib/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.js","sources":["../src/util.ts","../src/index.ts"],"sourcesContent":["import { skipTransparentExprWrappers } from \"@babel/helper-skip-transparent-expression-wrappers\";\nimport { types as t, type NodePath } from \"@babel/core\";\n// https://crbug.com/v8/11558\n\n// check if there is a spread element followed by another argument.\n// (...[], 0) or (...[], ...[])\n\nfunction matchAffectedArguments(argumentNodes: t.CallExpression[\"arguments\"]) {\n const spreadIndex = argumentNodes.findIndex(node => t.isSpreadElement(node));\n return spreadIndex >= 0 && spreadIndex !== argumentNodes.length - 1;\n}\n\n/**\n * Check whether the optional chain is affected by https://crbug.com/v8/11558.\n * This routine MUST not manipulate NodePath\n *\n * @export\n * @param {(NodePath<t.OptionalMemberExpression | t.OptionalCallExpression>)} path\n * @returns {boolean}\n */\nexport function shouldTransform(\n path: NodePath<t.OptionalMemberExpression | t.OptionalCallExpression>,\n): boolean {\n let optionalPath: NodePath<t.Expression> = path;\n const chains: (t.OptionalCallExpression | t.OptionalMemberExpression)[] = [];\n for (;;) {\n if (optionalPath.isOptionalMemberExpression()) {\n chains.push(optionalPath.node);\n optionalPath = skipTransparentExprWrappers(optionalPath.get(\"object\"));\n } else if (optionalPath.isOptionalCallExpression()) {\n chains.push(optionalPath.node);\n optionalPath = skipTransparentExprWrappers(optionalPath.get(\"callee\"));\n } else {\n break;\n }\n }\n for (let i = 0; i < chains.length; i++) {\n const node = chains[i];\n if (\n t.isOptionalCallExpression(node) &&\n matchAffectedArguments(node.arguments)\n ) {\n // f?.(...[], 0)\n if (node.optional) {\n return true;\n }\n // o?.m(...[], 0)\n // when node.optional is false, chains[i + 1] is always well defined\n const callee = chains[i + 1];\n if (t.isOptionalMemberExpression(callee, { optional: true })) {\n return true;\n }\n }\n }\n return false;\n}\n","import { declare } from \"@babel/helper-plugin-utils\";\nimport { transform } from \"@babel/plugin-transform-optional-chaining\";\nimport { shouldTransform } from \"./util.ts\";\nimport type { NodePath, types as t } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const noDocumentAll = api.assumption(\"noDocumentAll\") ?? false;\n const pureGetters = api.assumption(\"pureGetters\") ?? false;\n\n return {\n name: \"bugfix-v8-spread-parameters-in-optional-chaining\",\n\n visitor: {\n \"OptionalCallExpression|OptionalMemberExpression\"(\n path: NodePath<t.OptionalCallExpression | t.OptionalMemberExpression>,\n ) {\n if (shouldTransform(path)) {\n transform(path, { noDocumentAll, pureGetters });\n }\n },\n },\n };\n});\n"],"names":["matchAffectedArguments","argumentNodes","spreadIndex","findIndex","node","t","isSpreadElement","length","shouldTransform","path","optionalPath","chains","isOptionalMemberExpression","push","skipTransparentExprWrappers","get","isOptionalCallExpression","i","arguments","optional","callee","declare","api","_api$assumption","_api$assumption2","assertVersion","noDocumentAll","assumption","pureGetters","name","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 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining",
3
+ "version": "7.29.7",
4
+ "description": "Transform optional chaining operators to workaround https://crbug.com/v8/11558",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/babel/babel.git",
8
+ "directory": "packages/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining"
9
+ },
10
+ "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining",
11
+ "license": "MIT",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "main": "./lib/index.js",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "keywords": [
24
+ "babel-plugin",
25
+ "bugfix"
26
+ ],
27
+ "dependencies": {
28
+ "@babel/helper-plugin-utils": "^7.29.7",
29
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7",
30
+ "@babel/plugin-transform-optional-chaining": "^7.29.7"
31
+ },
32
+ "peerDependencies": {
33
+ "@babel/core": "^7.13.0"
34
+ },
35
+ "devDependencies": {
36
+ "@babel/core": "^7.29.7",
37
+ "@babel/helper-plugin-test-runner": "^7.29.7",
38
+ "@babel/traverse": "^7.29.7"
39
+ },
40
+ "engines": {
41
+ "node": ">=6.9.0"
42
+ },
43
+ "author": "The Babel Team (https://babel.dev/team)",
44
+ "type": "commonjs"
45
+ }
tools/ui/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly
2
+
3
+ > Transform static class fields assignments that are affected by https://crbug.com/v8/12421
4
+
5
+ See our website [@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly](https://babeljs.io/docs/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly) for more information.
6
+
7
+ ## Install
8
+
9
+ Using npm:
10
+
11
+ ```sh
12
+ npm install --save-dev @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly
13
+ ```
14
+
15
+ or using yarn:
16
+
17
+ ```sh
18
+ yarn add @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly --dev
19
+ ```
tools/ui/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/lib/index.js ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var core = require('@babel/core');
6
+ var helperPluginUtils = require('@babel/helper-plugin-utils');
7
+
8
+ function isNameOrLength(key) {
9
+ if (core.types.isIdentifier(key)) {
10
+ return key.name === "name" || key.name === "length";
11
+ }
12
+ if (core.types.isStringLiteral(key)) {
13
+ return key.value === "name" || key.value === "length";
14
+ }
15
+ return false;
16
+ }
17
+ function isStaticFieldWithValue(node) {
18
+ return (core.types.isClassProperty(node) || core.types.isClassPrivateProperty(node)) && node.static && !!node.value;
19
+ }
20
+ const hasReferenceVisitor = {
21
+ ReferencedIdentifier(path, state) {
22
+ if (path.node.name === state.name) {
23
+ state.ref();
24
+ path.stop();
25
+ }
26
+ },
27
+ Scope(path, {
28
+ name
29
+ }) {
30
+ if (path.scope.hasOwnBinding(name)) {
31
+ path.skip();
32
+ }
33
+ }
34
+ };
35
+ function isReferenceOrThis(node, name) {
36
+ return core.types.isThisExpression(node) || name && core.types.isIdentifier(node, {
37
+ name
38
+ });
39
+ }
40
+ const hasReferenceOrThisVisitor = {
41
+ "ThisExpression|ReferencedIdentifier"(path, state) {
42
+ if (isReferenceOrThis(path.node, state.name)) {
43
+ state.ref();
44
+ path.stop();
45
+ }
46
+ },
47
+ FunctionParent(path, state) {
48
+ if (path.isArrowFunctionExpression()) return;
49
+ if (state.name && !path.scope.hasOwnBinding(state.name)) {
50
+ path.traverse(hasReferenceVisitor, state);
51
+ }
52
+ path.skip();
53
+ if (path.isMethod()) {
54
+ if (path.requeueComputedKeyAndDecorators) {
55
+ path.requeueComputedKeyAndDecorators();
56
+ } else {
57
+ require("@babel/traverse").NodePath.prototype.requeueComputedKeyAndDecorators.call(path);
58
+ }
59
+ }
60
+ }
61
+ };
62
+ function getPotentiallyBuggyFieldsIndexes(path) {
63
+ var _path$node$id;
64
+ const buggyPublicStaticFieldsIndexes = [];
65
+ let classReferenced = false;
66
+ const className = (_path$node$id = path.node.id) == null ? void 0 : _path$node$id.name;
67
+ const hasReferenceState = {
68
+ name: className,
69
+ ref: () => classReferenced = true
70
+ };
71
+ if (className) {
72
+ for (const el of path.get("body.body")) {
73
+ if (el.node.computed) {
74
+ el.get("key").traverse(hasReferenceVisitor, hasReferenceState);
75
+ if (classReferenced) break;
76
+ }
77
+ }
78
+ }
79
+ let nextPotentiallyBuggy = false;
80
+ const {
81
+ body
82
+ } = path.node.body;
83
+ for (let i = 0; i < body.length; i++) {
84
+ const node = body[i];
85
+ if (!nextPotentiallyBuggy) {
86
+ if (core.types.isStaticBlock(node)) {
87
+ classReferenced = true;
88
+ nextPotentiallyBuggy = true;
89
+ } else if (isStaticFieldWithValue(node)) {
90
+ if (!classReferenced) {
91
+ if (isReferenceOrThis(node.value, className)) {
92
+ classReferenced = true;
93
+ } else {
94
+ path.get(`body.body.${i}.value`).traverse(hasReferenceOrThisVisitor, hasReferenceState);
95
+ }
96
+ }
97
+ if (classReferenced) {
98
+ nextPotentiallyBuggy = !path.scope.isPure(node.value);
99
+ }
100
+ }
101
+ }
102
+ if (core.types.isClassProperty(node, {
103
+ static: true
104
+ }) && (nextPotentiallyBuggy || node.computed || isNameOrLength(node.key))) {
105
+ buggyPublicStaticFieldsIndexes.push(i);
106
+ }
107
+ }
108
+ return buggyPublicStaticFieldsIndexes;
109
+ }
110
+ function getNameOrLengthStaticFieldsIndexes(path) {
111
+ const indexes = [];
112
+ const {
113
+ body
114
+ } = path.node.body;
115
+ for (let i = 0; i < body.length; i++) {
116
+ const node = body[i];
117
+ if (core.types.isClassProperty(node, {
118
+ static: true,
119
+ computed: false
120
+ }) && isNameOrLength(node.key)) {
121
+ indexes.push(i);
122
+ }
123
+ }
124
+ return indexes;
125
+ }
126
+ function toRanges(nums) {
127
+ const ranges = [];
128
+ if (nums.length === 0) return ranges;
129
+ let start = nums[0];
130
+ let end = start + 1;
131
+ for (let i = 1; i < nums.length; i++) {
132
+ if (nums[i] <= nums[i - 1]) {
133
+ throw new Error("Internal Babel error: nums must be in ascending order");
134
+ }
135
+ if (nums[i] === end) {
136
+ end++;
137
+ } else {
138
+ ranges.push([start, end]);
139
+ start = nums[i];
140
+ end = start + 1;
141
+ }
142
+ }
143
+ ranges.push([start, end]);
144
+ return ranges;
145
+ }
146
+
147
+ function buildFieldsReplacement(fields, scope, file) {
148
+ return core.types.staticBlock(fields.map(field => {
149
+ const key = field.computed || !core.types.isIdentifier(field.key) ? field.key : core.types.stringLiteral(field.key.name);
150
+ return core.types.expressionStatement(core.types.callExpression(file.addHelper("defineProperty"), [core.types.thisExpression(), key, field.value || scope.buildUndefinedNode()]));
151
+ }));
152
+ }
153
+ var index = helperPluginUtils.declare(api => {
154
+ api.assertVersion("^7.0.0-0 || ^8.0.0-0 || >8.0.0-alpha <8.0.0-beta");
155
+ const setPublicClassFields = api.assumption("setPublicClassFields");
156
+ return {
157
+ name: "bugfix-v8-static-class-fields-redefine-readonly",
158
+ visitor: {
159
+ Class(path) {
160
+ const ranges = toRanges(setPublicClassFields ? getNameOrLengthStaticFieldsIndexes(path) : getPotentiallyBuggyFieldsIndexes(path));
161
+ for (let i = ranges.length - 1; i >= 0; i--) {
162
+ const [start, end] = ranges[i];
163
+ const startPath = path.get("body.body")[start];
164
+ startPath.replaceWith(buildFieldsReplacement(path.node.body.body.slice(start, end), path.scope, this.file));
165
+ for (let j = end - 1; j > start; j--) {
166
+ path.get("body.body")[j].remove();
167
+ }
168
+ }
169
+ }
170
+ }
171
+ };
172
+ });
173
+
174
+ exports.default = index;
175
+ //# sourceMappingURL=index.js.map
tools/ui/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/lib/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.js","sources":["../src/util.ts","../src/index.ts"],"sourcesContent":["import { types as t, type NodePath, type Visitor } from \"@babel/core\";\n\nfunction isNameOrLength(key: t.Node): boolean {\n if (t.isIdentifier(key)) {\n return key.name === \"name\" || key.name === \"length\";\n }\n if (t.isStringLiteral(key)) {\n return key.value === \"name\" || key.value === \"length\";\n }\n return false;\n}\n\nfunction isStaticFieldWithValue(\n node: t.Node,\n): node is t.ClassProperty | t.ClassPrivateProperty {\n return (\n (t.isClassProperty(node) || t.isClassPrivateProperty(node)) &&\n node.static &&\n !!node.value\n );\n}\n\nconst hasReferenceVisitor: Visitor<{ name: string; ref: () => void }> = {\n ReferencedIdentifier(path, state) {\n if (path.node.name === state.name) {\n state.ref();\n path.stop();\n }\n },\n Scope(path, { name }) {\n if (path.scope.hasOwnBinding(name)) {\n path.skip();\n }\n },\n};\n\nfunction isReferenceOrThis(node: t.Node, name?: string) {\n return t.isThisExpression(node) || (name && t.isIdentifier(node, { name }));\n}\n\nconst hasReferenceOrThisVisitor: Visitor<{ name?: string; ref: () => void }> = {\n \"ThisExpression|ReferencedIdentifier\"(path, state) {\n if (isReferenceOrThis(path.node, state.name)) {\n state.ref();\n path.stop();\n }\n },\n FunctionParent(path, state) {\n if (path.isArrowFunctionExpression()) return;\n if (state.name && !path.scope.hasOwnBinding(state.name)) {\n path.traverse(hasReferenceVisitor, state);\n }\n path.skip();\n if (path.isMethod()) {\n if (\n process.env.BABEL_8_BREAKING ||\n USE_ESM ||\n IS_STANDALONE ||\n path.requeueComputedKeyAndDecorators\n ) {\n path.requeueComputedKeyAndDecorators();\n } else {\n // eslint-disable-next-line no-restricted-globals\n require(\"@babel/traverse\").NodePath.prototype.requeueComputedKeyAndDecorators.call(\n path,\n );\n }\n }\n },\n};\n\ntype ClassElementWithComputedKeySupport = Extract<\n t.ClassBody[\"body\"][number],\n { computed?: boolean }\n>;\n\n/**\n * This function returns an array containing the indexes of class elements\n * that might be affected by https://crbug.com/v8/12421 bug.\n *\n * This bug affects public static class fields that have the same name as an\n * existing non-writable property with the same name. This usually happens when\n * the static field is named 'length' or 'name', since it clashes with the\n * predefined fn.length and fn.name properties. We must also compile static\n * fields with computed key, because they might end up being named 'length' or\n * 'name'.\n *\n * However, this bug can potentially affect public static fields with any name.\n * Consider this example:\n *\n * class A {\n * static {\n * Object.defineProperty(A, \"readonly\", {\n * value: 1,\n * writable: false,\n * configurable: true\n * })\n * }\n *\n * static readonly = 2;\n * }\n *\n * When initializing the 'static readonly' field, the class already has a\n * non-writable property named 'readonly' and thus V8 9.7 incorrectly throws.\n *\n * To avoid unconditionally compiling every public static field, we track how\n * the class is referenced during definition & static evaluation: any side\n * effect after a reference to the class can potentially define a non-writable\n * conflicting property, so subsequent public static fields must be compiled.\n * The class could be referenced using the class name in computed keys, which\n * run before static fields, or using either the class name or 'this' in static\n * fields (both public and private) and static blocks.\n *\n * We don't need to check if computed keys referencing the class have any side\n * effect, because during the computed keys evaluation the internal class\n * binding is in TDZ. However, the first side effect in a static field/block\n * could have access to a function defined in a computed key that modifies the\n * class.\n *\n * This logic is already quite complex, so we assume that static blocks always\n * have side effects and reference the class (the reason to use them is to\n * perform additional initialization logic on the class anyway), so that we do\n * not have to check their contents.\n */\nexport function getPotentiallyBuggyFieldsIndexes(path: NodePath<t.Class>) {\n const buggyPublicStaticFieldsIndexes: number[] = [];\n\n let classReferenced = false;\n const className = path.node.id?.name;\n\n const hasReferenceState = {\n name: className,\n ref: () => (classReferenced = true),\n };\n\n if (className) {\n for (const el of path.get(\"body.body\")) {\n if ((el.node as ClassElementWithComputedKeySupport).computed) {\n // Since .traverse skips the top-level node, it doesn't detect\n // a reference happening immediately:\n // class A { [A]() {} }\n // However, it's a TDZ error so it's ok not to consider this case.\n (el as NodePath<ClassElementWithComputedKeySupport>)\n .get(\"key\")\n .traverse(hasReferenceVisitor, hasReferenceState);\n\n if (classReferenced) break;\n }\n }\n }\n\n let nextPotentiallyBuggy = false;\n\n const { body } = path.node.body;\n for (let i = 0; i < body.length; i++) {\n const node = body[i];\n\n if (!nextPotentiallyBuggy) {\n if (t.isStaticBlock(node)) {\n classReferenced = true;\n nextPotentiallyBuggy = true;\n } else if (isStaticFieldWithValue(node)) {\n if (!classReferenced) {\n if (isReferenceOrThis(node.value, className)) {\n classReferenced = true;\n } else {\n (\n path.get(`body.body.${i}.value`) as NodePath<t.Expression>\n ).traverse(hasReferenceOrThisVisitor, hasReferenceState);\n }\n }\n\n if (classReferenced) {\n nextPotentiallyBuggy = !path.scope.isPure(node.value);\n }\n }\n }\n\n if (\n t.isClassProperty(node, { static: true }) &&\n (nextPotentiallyBuggy || node.computed || isNameOrLength(node.key))\n ) {\n buggyPublicStaticFieldsIndexes.push(i);\n }\n }\n\n return buggyPublicStaticFieldsIndexes;\n}\n\nexport function getNameOrLengthStaticFieldsIndexes(path: NodePath<t.Class>) {\n const indexes: number[] = [];\n\n const { body } = path.node.body;\n for (let i = 0; i < body.length; i++) {\n const node = body[i];\n if (\n t.isClassProperty(node, { static: true, computed: false }) &&\n isNameOrLength(node.key)\n ) {\n indexes.push(i);\n }\n }\n\n return indexes;\n}\n\ntype Range = [start: number, end: number];\n\n/**\n * Converts a sorted list of numbers into a list of (inclusive-exclusive)\n * ranges representing the same numbers.\n *\n * @example toRanges([1, 3, 4, 5, 8, 9]) -> [[1, 2], [3, 6], [8, 10]]\n */\nexport function toRanges(nums: number[]): Range[] {\n const ranges: Range[] = [];\n\n if (nums.length === 0) return ranges;\n\n let start = nums[0];\n let end = start + 1;\n for (let i = 1; i < nums.length; i++) {\n if (nums[i] <= nums[i - 1]) {\n throw new Error(\"Internal Babel error: nums must be in ascending order\");\n }\n if (nums[i] === end) {\n end++;\n } else {\n ranges.push([start, end]);\n start = nums[i];\n end = start + 1;\n }\n }\n ranges.push([start, end]);\n\n return ranges;\n}\n","import type { NodePath, Scope, PluginPass, File } from \"@babel/core\";\nimport { types as t } from \"@babel/core\";\nimport { declare } from \"@babel/helper-plugin-utils\";\n\nimport {\n getPotentiallyBuggyFieldsIndexes,\n getNameOrLengthStaticFieldsIndexes,\n toRanges,\n} from \"./util.ts\";\n\nfunction buildFieldsReplacement(\n fields: t.ClassProperty[],\n scope: Scope,\n file: File,\n) {\n return t.staticBlock(\n fields.map(field => {\n const key =\n field.computed || !t.isIdentifier(field.key)\n ? field.key\n : t.stringLiteral(field.key.name);\n\n return t.expressionStatement(\n t.callExpression(file.addHelper(\"defineProperty\"), [\n t.thisExpression(),\n key,\n field.value || scope.buildUndefinedNode(),\n ]),\n );\n }),\n );\n}\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n const setPublicClassFields = api.assumption(\"setPublicClassFields\");\n\n return {\n name: \"bugfix-v8-static-class-fields-redefine-readonly\",\n\n visitor: {\n Class(this: PluginPass, path: NodePath<t.Class>) {\n const ranges = toRanges(\n setPublicClassFields\n ? getNameOrLengthStaticFieldsIndexes(path)\n : getPotentiallyBuggyFieldsIndexes(path),\n );\n\n for (let i = ranges.length - 1; i >= 0; i--) {\n const [start, end] = ranges[i];\n\n const startPath = path.get(\"body.body\")[start];\n\n startPath.replaceWith(\n buildFieldsReplacement(\n path.node.body.body.slice(start, end) as t.ClassProperty[],\n path.scope,\n this.file,\n ),\n );\n\n for (let j = end - 1; j > start; j--) {\n path.get(\"body.body\")[j].remove();\n }\n }\n },\n },\n };\n});\n"],"names":["isNameOrLength","key","t","isIdentifier","name","isStringLiteral","value","isStaticFieldWithValue","node","isClassProperty","isClassPrivateProperty","static","hasReferenceVisitor","ReferencedIdentifier","path","state","ref","stop","Scope","scope","hasOwnBinding","skip","isReferenceOrThis","isThisExpression","hasReferenceOrThisVisitor","ThisExpression|ReferencedIdentifier","FunctionParent","isArrowFunctionExpression","traverse","isMethod","requeueComputedKeyAndDecorators","require","NodePath","prototype","call","getPotentiallyBuggyFieldsIndexes","_path$node$id","buggyPublicStaticFieldsIndexes","classReferenced","className","id","hasReferenceState","el","get","computed","nextPotentiallyBuggy","body","i","length","isStaticBlock","isPure","push","getNameOrLengthStaticFieldsIndexes","indexes","toRanges","nums","ranges","start","end","Error","buildFieldsReplacement","fields","file","staticBlock","map","field","stringLiteral","expressionStatement","callExpression","addHelper","thisExpression","buildUndefinedNode","declare","api","assertVersion","setPublicClassFields","assumption","visitor","Class","startPath","replaceWith","slice","j","remove"],"mappings":";;;;;;;AAEA,SAASA,cAAcA,CAACC,GAAW,EAAW;AAC5C,EAAA,IAAIC,UAAC,CAACC,YAAY,CAACF,GAAG,CAAC,EAAE;IACvB,OAAOA,GAAG,CAACG,IAAI,KAAK,MAAM,IAAIH,GAAG,CAACG,IAAI,KAAK,QAAQ,CAAA;AACrD,GAAA;AACA,EAAA,IAAIF,UAAC,CAACG,eAAe,CAACJ,GAAG,CAAC,EAAE;IAC1B,OAAOA,GAAG,CAACK,KAAK,KAAK,MAAM,IAAIL,GAAG,CAACK,KAAK,KAAK,QAAQ,CAAA;AACvD,GAAA;AACA,EAAA,OAAO,KAAK,CAAA;AACd,CAAA;AAEA,SAASC,sBAAsBA,CAC7BC,IAAY,EACsC;EAClD,OACE,CAACN,UAAC,CAACO,eAAe,CAACD,IAAI,CAAC,IAAIN,UAAC,CAACQ,sBAAsB,CAACF,IAAI,CAAC,KAC1DA,IAAI,CAACG,MAAM,IACX,CAAC,CAACH,IAAI,CAACF,KAAK,CAAA;AAEhB,CAAA;AAEA,MAAMM,mBAA+D,GAAG;AACtEC,EAAAA,oBAAoBA,CAACC,IAAI,EAAEC,KAAK,EAAE;IAChC,IAAID,IAAI,CAACN,IAAI,CAACJ,IAAI,KAAKW,KAAK,CAACX,IAAI,EAAE;MACjCW,KAAK,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AAKA,CAAmBhE,IAAuB,EAAE;AAC/C,QAAA,MAAM0C,MAAM,GAAGF,QAAQ,CACrBqB,oBAAoB,GAChBvB,kCAAkC,CAACtC,IAAI,CAAC,GACxCqB,gCAAgC,CAACrB,IAAI,CAC3C,CAAC,CAAA;AAED,QAAA,KAAK,IAAIiC,CAAC,GAAGS,MAAM,CAACR,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;UAC3C,MAAM,CAACU,KAAK,EAAEC,GAAG,CAAC,GAAGF,MAAM,CAACT,CAAC,CAAC,CAAA;UAE9B,MAAMgC,SAAS,GAAGjE,IAAI,CAAC6B,GAAG,CAAC,WAAW,CAAC,CAACc,KAAK,CAAC,CAAA;AAE9CsB,UAAAA,SAAS,CAACC,WAAW,CACnBpB,sBAAsB,CACpB9C,IAAI,CAACN,IAAI,CAACsC,IAAI,CAACA,IAAI,CAACmC,KAAK,CAACxB,KAAK,EAAEC,GAAG,CAAC,EACrC5C,IAAI,CAACK,KAAK,EACV,IAAI,CAAC2C,IACP,CACF,CAAC,CAAA;AAED,UAAA,KAAK,IAAIoB,CAAC,GAAGxB,GAAG,GAAG,CAAC,EAAEwB,CAAC,GAAGzB,KAAK,EAAEyB,CAAC,EAAE,EAAE;YACpCpE,IAAI,CAAC6B,GAAG,CAAC,WAAW,CAAC,CAACuC,CAAC,CAAC,CAACC,MAAM,EAAE,CAAA;AACnC,WAAA;AACF,SAAA;AACF,OAAA;AACF,KAAA;GACD,CAAA;AACH,CAAC,CAAC;;;;"}
tools/ui/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/package.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly",
3
+ "version": "7.29.7",
4
+ "description": "Transform static class fields assignments that are affected by https://crbug.com/v8/12421",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/babel/babel.git",
8
+ "directory": "packages/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly"
9
+ },
10
+ "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly",
11
+ "license": "MIT",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "main": "./lib/index.js",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "keywords": [
24
+ "babel-plugin",
25
+ "bugfix"
26
+ ],
27
+ "dependencies": {
28
+ "@babel/helper-plugin-utils": "^7.29.7",
29
+ "@babel/traverse": "^7.29.7"
30
+ },
31
+ "peerDependencies": {
32
+ "@babel/core": "^7.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "@babel/core": "^7.29.7",
36
+ "@babel/helper-plugin-test-runner": "^7.29.7",
37
+ "@babel/traverse": "^7.29.7"
38
+ },
39
+ "engines": {
40
+ "node": ">=6.9.0"
41
+ },
42
+ "author": "The Babel Team (https://babel.dev/team)",
43
+ "type": "commonjs"
44
+ }
tools/ui/node_modules/@babel/plugin-proposal-private-property-in-object/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/@babel/plugin-proposal-private-property-in-object/README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # @babel/plugin-proposal-private-property-in-object
2
+
3
+ > ⚠️ This version of the package (`v7.21.0-placeholder-for-preset-env.1`) is not meant to
4
+ > be imported. Use any other version of this plugin or, even better, the
5
+ > [@babel/plugin-transform-private-property-in-object](https://babeljs.io/docs/en/babel-plugin-transform-private-property-in-object) package.
6
+
7
+ > This plugin transforms checks for a private property in an object
8
+
9
+ See our website [@babel/plugin-proposal-private-property-in-object](https://babeljs.io/docs/en/babel-plugin-proposal-private-property-in-object) for more information.
10
+
11
+ ## Install
12
+
13
+ Using npm:
14
+
15
+ ```sh
16
+ npm install --save-dev @babel/plugin-proposal-private-property-in-object
17
+ ```
18
+
19
+ or using yarn:
20
+
21
+ ```sh
22
+ yarn add @babel/plugin-proposal-private-property-in-object --dev
23
+ ```
tools/ui/node_modules/@babel/plugin-proposal-private-property-in-object/lib/index.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ maybeWarn: try {
2
+ var stackTraceLimit = Error.stackTraceLimit;
3
+ Error.stackTraceLimit = Infinity;
4
+ var stack = new Error().stack;
5
+ Error.stackTraceLimit = stackTraceLimit;
6
+ if (!stack.includes("babel-preset-react-app")) break maybeWarn;
7
+
8
+ // Try this as a fallback, in case it's available in node_modules
9
+ module.exports = require("@babel/plugin-transform-private-property-in-object");
10
+
11
+ setTimeout(console.warn, 2500, `\
12
+ \x1B[0;33mOne of your dependencies, babel-preset-react-app, is importing the
13
+ "@babel/plugin-proposal-private-property-in-object" package without
14
+ declaring it in its dependencies. This is currently working because
15
+ "@babel/plugin-proposal-private-property-in-object" is already in your
16
+ node_modules folder for unrelated reasons, but it \x1B[1mmay break at any time\x1B[0;33m.
17
+
18
+ babel-preset-react-app is part of the create-react-app project, \x1B[1mwhich
19
+ is not maintianed anymore\x1B[0;33m. It is thus unlikely that this bug will
20
+ ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
21
+ your devDependencies to work around this error. This will make this message
22
+ go away.\x1B[0m
23
+ `);
24
+
25
+ return;
26
+ } catch (e) {}
27
+
28
+ throw new Error(`\
29
+ --- PLACEHOLDER PACKAGE ---
30
+ This @babel/plugin-proposal-private-property-in-object version is not meant to
31
+ be imported. Something is importing
32
+ @babel/plugin-proposal-private-property-in-object without declaring it in its
33
+ dependencies (or devDependencies) in the package.json file.
34
+ Add "@babel/plugin-proposal-private-property-in-object" to your devDependencies
35
+ to work around this error. This will make this message go away.
36
+ `);
tools/ui/node_modules/@babel/plugin-proposal-private-property-in-object/lib/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"names":["declare","api","opt","assertVersion","types","t","template","loose","classWeakSets","WeakMap","fieldsWeakSets","unshadow","name","targetScope","scope","hasOwnBinding","rename","parent","injectToFieldInit","fieldPath","expr","before","node","value","get","insertBefore","insertAfter","set","unaryExpression","injectInitialization","classPath","init","firstFieldPath","constructorPath","el","isClassProperty","isClassPrivateProperty","static","isClassMethod","kind","injectConstructorInit","expressionStatement","getWeakSetId","weakSets","outerClass","reference","inject","id","generateUidIdentifier","expression","ast","cloneNode","newExpr","newExpression","identifier","annotateAsPure","inherits","syntaxPlugin","default","pre","enableFeature","file","FEATURES","privateIn","visitor","BinaryExpression","path","state","operator","isPrivateName","left","privateElement","findParent","isClass","find","isPrivate","key","parentPath","isPattern","replaceWith","type","buildCheckInRHS","right"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport syntaxPlugin from \"@babel/plugin-syntax-private-property-in-object\";\nimport {\n enableFeature,\n FEATURES,\n injectInitialization as injectConstructorInit,\n buildCheckInRHS,\n} from \"@babel/helper-create-class-features-plugin\";\nimport annotateAsPure from \"@babel/helper-annotate-as-pure\";\nimport type * as t from \"@babel/types\";\nimport type { NodePath, Scope } from \"@babel/traverse\";\n\nexport interface Options {\n loose?: boolean;\n}\nexport default declare((api, opt: Options) => {\n api.assertVersion(7);\n const { types: t, template } = api;\n const { loose } = opt;\n\n // NOTE: When using the class fields or private methods plugins,\n // they will also take care of '#priv in obj' checks when visiting\n // the ClassExpression or ClassDeclaration nodes.\n // The visitor of this plugin is only effective when not compiling\n // private fields and methods.\n\n const classWeakSets: WeakMap<t.Class, t.Identifier> = new WeakMap();\n const fieldsWeakSets: WeakMap<\n t.ClassPrivateProperty | t.ClassPrivateMethod,\n t.Identifier\n > = new WeakMap();\n\n function unshadow(name: string, targetScope: Scope, scope: Scope) {\n while (scope !== targetScope) {\n if (scope.hasOwnBinding(name)) scope.rename(name);\n scope = scope.parent;\n }\n }\n\n function injectToFieldInit(\n fieldPath: NodePath<t.ClassPrivateProperty | t.ClassProperty>,\n expr: t.Expression,\n before = false,\n ) {\n if (fieldPath.node.value) {\n const value = fieldPath.get(\"value\");\n if (before) {\n value.insertBefore(expr);\n } else {\n value.insertAfter(expr);\n }\n } else {\n fieldPath.set(\"value\", t.unaryExpression(\"void\", expr));\n }\n }\n\n function injectInitialization(\n classPath: NodePath<t.Class>,\n init: t.Expression,\n ) {\n let firstFieldPath;\n let constructorPath;\n\n for (const el of classPath.get(\"body.body\")) {\n if (\n (el.isClassProperty() || el.isClassPrivateProperty()) &&\n !el.node.static\n ) {\n firstFieldPath = el;\n break;\n }\n if (!constructorPath && el.isClassMethod({ kind: \"constructor\" })) {\n constructorPath = el;\n }\n }\n\n if (firstFieldPath) {\n injectToFieldInit(firstFieldPath, init, true);\n } else {\n injectConstructorInit(classPath, constructorPath, [\n t.expressionStatement(init),\n ]);\n }\n }\n\n function getWeakSetId<Ref extends t.Node>(\n weakSets: WeakMap<Ref, t.Identifier>,\n outerClass: NodePath<t.Class>,\n reference: NodePath<Ref>,\n name = \"\",\n inject: (\n reference: NodePath<Ref>,\n expression: t.Expression,\n before?: boolean,\n ) => void,\n ) {\n let id = weakSets.get(reference.node);\n\n if (!id) {\n id = outerClass.scope.generateUidIdentifier(`${name || \"\"} brandCheck`);\n weakSets.set(reference.node, id);\n\n inject(reference, template.expression.ast`${t.cloneNode(id)}.add(this)`);\n\n const newExpr = t.newExpression(t.identifier(\"WeakSet\"), []);\n annotateAsPure(newExpr);\n\n outerClass.insertBefore(template.ast`var ${id} = ${newExpr}`);\n }\n\n return t.cloneNode(id);\n }\n\n return {\n name: \"proposal-private-property-in-object\",\n inherits: syntaxPlugin.default,\n pre() {\n // Enable this in @babel/helper-create-class-features-plugin, so that it\n // can be handled by the private fields and methods transform.\n enableFeature(this.file, FEATURES.privateIn, loose);\n },\n visitor: {\n BinaryExpression(path, state) {\n const { node } = path;\n const { file } = state;\n if (node.operator !== \"in\") return;\n if (!t.isPrivateName(node.left)) return;\n\n const { name } = node.left.id;\n\n let privateElement: NodePath<\n t.ClassPrivateMethod | t.ClassPrivateProperty\n >;\n const outerClass = path.findParent(path => {\n if (!path.isClass()) return false;\n\n privateElement = path.get(\"body.body\").find(\n ({ node }) =>\n // fixme: Support class accessor property\n t.isPrivate(node) && node.key.id.name === name,\n ) as NodePath<t.ClassPrivateMethod | t.ClassPrivateProperty>;\n\n return !!privateElement;\n }) as NodePath<t.Class>;\n\n if (outerClass.parentPath.scope.path.isPattern()) {\n outerClass.replaceWith(\n template.ast`(() => ${outerClass.node})()` as t.Statement,\n );\n // The injected class will be queued and eventually transformed when visited\n return;\n }\n\n if (privateElement.node.type === \"ClassPrivateMethod\") {\n if (privateElement.node.static) {\n if (outerClass.node.id) {\n unshadow(outerClass.node.id.name, outerClass.scope, path.scope);\n } else {\n outerClass.set(\"id\", path.scope.generateUidIdentifier(\"class\"));\n }\n path.replaceWith(\n template.expression.ast`\n ${t.cloneNode(outerClass.node.id)} === ${buildCheckInRHS(\n node.right,\n file,\n )}\n `,\n );\n } else {\n const id = getWeakSetId(\n classWeakSets,\n outerClass,\n outerClass,\n outerClass.node.id?.name,\n injectInitialization,\n );\n\n path.replaceWith(\n template.expression.ast`${id}.has(${buildCheckInRHS(\n node.right,\n file,\n )})`,\n );\n }\n } else {\n // Private fields might not all be initialized: see the 'halfConstructed'\n // example at https://v8.dev/features/private-brand-checks.\n\n const id = getWeakSetId<t.ClassPrivateProperty>(\n fieldsWeakSets,\n outerClass,\n privateElement as NodePath<t.ClassPrivateProperty>,\n privateElement.node.key.id.name,\n injectToFieldInit,\n );\n\n path.replaceWith(\n template.expression.ast`${id}.has(${buildCheckInRHS(\n node.right,\n file,\n )})`,\n );\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAMA;AAA4D,eAO7C,IAAAA,0BAAO,EAAC,CAACC,GAAG,EAAEC,GAAY,KAAK;EAC5CD,GAAG,CAACE,aAAa,CAAC,CAAC,CAAC;EACpB,MAAM;IAAEC,KAAK,EAAEC,CAAC;IAAEC;EAAS,CAAC,GAAGL,GAAG;EAClC,MAAM;IAAEM;EAAM,CAAC,GAAGL,GAAG;EAQrB,MAAMM,aAA6C,GAAG,IAAIC,OAAO,EAAE;EACnE,MAAMC,cAGL,GAAG,IAAID,OAAO,EAAE;EAEjB,SAASE,QAAQ,CAACC,IAAY,EAAEC,WAAkB,EAAEC,KAAY,EAAE;IAChE,OAAOA,KAAK,KAAKD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C,IAAI,CAACpD,KAAK,CAACkC,qBAAqB,CAAC,OAAO,CAAC,CAAC;YACjE;YACAkB,IAAI,CAACa,WAAW,CACdzE,QAAQ,CAAC2C,UAAU,CAACC,GAAI;AACtC,kBAAkB7C,CAAC,CAAC8C,SAAS,CAACP,UAAU,CAACtB,IAAI,CAACyB,EAAE,CAAE,QAAO,IAAAkC,gDAAe,EACxD3D,IAAI,CAAC4D,KAAK,EACVrB,IAAI,CACJ;AAChB,eAAe,CACF;UACH,CAAC,MAAM;YAAA;YACL,MAAMd,EAAE,GAAGL,YAAY,CACrBlC,aAAa,EACboC,UAAU,EACVA,UAAU,yBACVA,UAAU,CAACtB,IAAI,CAACyB,EAAE,qBAAlB,oBAAoBnC,IAAI,EACxBiB,oBAAoB,CACrB;YAEDqC,IAAI,CAACa,WAAW,CACdzE,QAAQ,CAAC2C,UAAU,CAACC,GAAI,GAAEH,EAAG,QAAO,IAAAkC,gDAAe,EACjD3D,IAAI,CAAC4D,KAAK,EACVrB,IAAI,CACJ,GAAE,CACL;UACH;QACF,CAAC,MAAM;UAIL,MAAMd,EAAE,GAAGL,YAAY,CACrBhC,cAAc,EACdkC,UAAU,EACV2B,cAAc,EACdA,cAAc,CAACjD,IAAI,CAACsD,GAAG,CAAC7B,EAAE,CAACnC,IAAI,EAC/BM,iBAAiB,CAClB;UAEDgD,IAAI,CAACa,WAAW,CACdzE,QAAQ,CAAC2C,UAAU,CAACC,GAAI,GAAEH,EAAG,QAAO,IAAAkC,gDAAe,EACjD3D,IAAI,CAAC4D,KAAK,EACVrB,IAAI,CACJ,GAAE,CACL;QACH;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC;AAAA"}
tools/ui/node_modules/@babel/plugin-proposal-private-property-in-object/package.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@babel/plugin-proposal-private-property-in-object",
3
+ "version": "7.21.0-placeholder-for-preset-env.2",
4
+ "description": "This plugin transforms checks for a private property in an object",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/babel/babel-plugin-proposal-private-property-in-object.git"
8
+ },
9
+ "homepage": "https://babel.dev/docs/en/next/babel-plugin-proposal-private-property-in-object",
10
+ "license": "MIT",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "main": "./lib/index.js",
15
+ "keywords": [
16
+ "babel-plugin"
17
+ ],
18
+ "peerDependencies": {
19
+ "@babel/core": "^7.0.0-0"
20
+ },
21
+ "devDependencies": {},
22
+ "engines": {
23
+ "node": ">=6.9.0"
24
+ },
25
+ "author": "The Babel Team (https://babel.dev/team)",
26
+ "type": "commonjs"
27
+ }
tools/ui/node_modules/@babel/plugin-syntax-import-assertions/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/@babel/plugin-syntax-import-assertions/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # @babel/plugin-syntax-import-assertions
2
+
3
+ > Allow parsing of the module assertion attributes in the import statement
4
+
5
+ See our website [@babel/plugin-syntax-import-assertions](https://babeljs.io/docs/babel-plugin-syntax-import-assertions) for more information.
6
+
7
+ ## Install
8
+
9
+ Using npm:
10
+
11
+ ```sh
12
+ npm install --save-dev @babel/plugin-syntax-import-assertions
13
+ ```
14
+
15
+ or using yarn:
16
+
17
+ ```sh
18
+ yarn add @babel/plugin-syntax-import-assertions --dev
19
+ ```
tools/ui/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _helperPluginUtils = require("@babel/helper-plugin-utils");
8
+ var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
9
+ api.assertVersion("^7.0.0-0 || ^8.0.0-0");
10
+ const isPlugin = (plugin, name) => name === "plugin" || Array.isArray(plugin) && plugin[0] === "plugin";
11
+ const options = plugin => Array.isArray(plugin) && plugin.length > 1 ? plugin[1] : {};
12
+ return {
13
+ name: "syntax-import-assertions",
14
+ manipulateOptions(opts, {
15
+ plugins
16
+ }) {
17
+ for (let i = 0; i < plugins.length; i++) {
18
+ const plugin = plugins[i];
19
+ if (isPlugin(plugin, "deprecatedImportAssert")) return;
20
+ if (isPlugin(plugin, "importAttributes")) {
21
+ plugins.splice(i, 1, "deprecatedImportAssert", ["importAttributes", Object.assign({}, options(plugin), {
22
+ deprecatedAssertSyntax: true
23
+ })]);
24
+ return;
25
+ }
26
+ }
27
+ plugins.push("importAssertions");
28
+ }
29
+ };
30
+ });
31
+
32
+ //# sourceMappingURL=index.js.map
tools/ui/node_modules/@babel/plugin-syntax-import-assertions/lib/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"names":["_helperPluginUtils","require","_default","exports","default","declare","api","assertVersion","isPlugin","plugin","name","Array","isArray","options","length","manipulateOptions","opts","plugins","i","splice","Object","assign","deprecatedAssertSyntax","push"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0-0\"));\n\n const isPlugin = (plugin: string | [string, object], name: string) =>\n name === \"plugin\" || (Array.isArray(plugin) && plugin[0] === \"plugin\");\n const options = (plugin: string | [string, object]) =>\n Array.isArray(plugin) && plugin.length > 1 ? plugin[1] : {};\n\n return {\n name: \"syntax-import-assertions\",\n\n manipulateOptions(opts, { plugins }) {\n for (let i = 0; i < plugins.length; i++) {\n const plugin = plugins[i];\n\n if (isPlugin(plugin, \"deprecatedImportAssert\")) return;\n\n if (isPlugin(plugin, \"importAttributes\")) {\n plugins.splice(i, 1, \"deprecatedImportAssert\", [\n \"importAttributes\",\n { ...options(plugin), deprecatedAssertSyntax: true },\n ]);\n return;\n }\n }\n\n plugins.push(\"importAssertions\");\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAAqD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEtC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAkB,sBAAuB,CAAC;EAE3D,MAAMC,QAAQ,GAAGA,CAACC,MAAiC,EAAEC,IAAY,KAC/DA,IAAI,KAAK,QAAQ,IAAKC,KAAK,CAACC,OAAO,CAACH,MAAM,CAAC,IAAIA,MAAM,CAAC,CAAC,CAAC,KAAK,QAAS;EACxE,MAAMI,OAAO,GAAIJ,MAAiC,IAChDE,KAAK,CAACC,OAAO,CAACH,MAAM,CAAC,IAAIA,MAAM,CAACK,MAAM,GAAG,CAAC,GAAGL,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;EAE7D,OAAO;IACLC,IAAI,EAAE,0BAA0B;IAEhCK,iBAAiBA,CAACC,IAAI,EAAE;MAAEC;IAAQ,CAAC,EAAE;MACnC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGD,OAAO,CAACH,MAAM,EAAEI,CAAC,EAAE,EAAE;QACvC,MAAMT,MAAM,GAAGQ,OAAO,CAACC,CAAC,CAAC;QAEzB,IAAIV,QAAQ,CAACC,MAAM,EAAE,wBAAwB,CAAC,EAAE;QAEhD,IAAID,QAAQ,CAACC,MAAM,EAAE,kBAAkB,CAAC,EAAE;UACxCQ,OAAO,CAACE,MAAM,CAACD,CAAC,EAAE,CAAC,EAAE,wBAAwB,EAAE,CAC7C,kBAAkB,EAAAE,MAAA,CAAAC,MAAA,KACbR,OAAO,CAACJ,MAAM,CAAC;YAAEa,sBAAsB,EAAE;UAAI,GACnD,CAAC;UACF;QACF;MACF;MAEAL,OAAO,CAACM,IAAI,CAAC,kBAAkB,CAAC;IAClC;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
tools/ui/node_modules/@babel/plugin-syntax-import-assertions/package.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@babel/plugin-syntax-import-assertions",
3
+ "version": "7.29.7",
4
+ "description": "Allow parsing of the module assertion attributes in the import statement",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/babel/babel.git",
8
+ "directory": "packages/babel-plugin-syntax-import-assertions"
9
+ },
10
+ "license": "MIT",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "main": "./lib/index.js",
15
+ "keywords": [
16
+ "babel-plugin"
17
+ ],
18
+ "dependencies": {
19
+ "@babel/helper-plugin-utils": "^7.29.7"
20
+ },
21
+ "peerDependencies": {
22
+ "@babel/core": "^7.0.0-0"
23
+ },
24
+ "devDependencies": {
25
+ "@babel/core": "^7.29.7"
26
+ },
27
+ "engines": {
28
+ "node": ">=6.9.0"
29
+ },
30
+ "author": "The Babel Team (https://babel.dev/team)",
31
+ "type": "commonjs"
32
+ }
tools/ui/node_modules/@babel/plugin-syntax-import-attributes/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/@babel/plugin-syntax-import-attributes/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # @babel/plugin-syntax-import-attributes
2
+
3
+ > Allow parsing of the module attributes in the import statement
4
+
5
+ See our website [@babel/plugin-syntax-import-attributes](https://babeljs.io/docs/babel-plugin-syntax-import-attributes) for more information.
6
+
7
+ ## Install
8
+
9
+ Using npm:
10
+
11
+ ```sh
12
+ npm install --save-dev @babel/plugin-syntax-import-attributes
13
+ ```
14
+
15
+ or using yarn:
16
+
17
+ ```sh
18
+ yarn add @babel/plugin-syntax-import-attributes --dev
19
+ ```
tools/ui/node_modules/@babel/plugin-syntax-import-attributes/lib/index.js ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _helperPluginUtils = require("@babel/helper-plugin-utils");
8
+ var _default = exports.default = (0, _helperPluginUtils.declare)((api, {
9
+ deprecatedAssertSyntax
10
+ }) => {
11
+ api.assertVersion("^7.22.0 || ^8.0.0-0");
12
+ if (deprecatedAssertSyntax != null && typeof deprecatedAssertSyntax !== "boolean") {
13
+ throw new Error("'deprecatedAssertSyntax' must be a boolean, if specified.");
14
+ }
15
+ return {
16
+ name: "syntax-import-attributes",
17
+ manipulateOptions({
18
+ parserOpts,
19
+ generatorOpts
20
+ }) {
21
+ var _generatorOpts$import;
22
+ (_generatorOpts$import = generatorOpts.importAttributesKeyword) != null ? _generatorOpts$import : generatorOpts.importAttributesKeyword = "with";
23
+ const importAssertionsPluginIndex = parserOpts.plugins.indexOf("importAssertions");
24
+ if (importAssertionsPluginIndex !== -1) {
25
+ parserOpts.plugins.splice(importAssertionsPluginIndex, 1);
26
+ deprecatedAssertSyntax = true;
27
+ }
28
+ if (deprecatedAssertSyntax) {
29
+ parserOpts.plugins.push("deprecatedImportAssert", ["importAttributes", {
30
+ deprecatedAssertSyntax: true
31
+ }]);
32
+ } else {
33
+ parserOpts.plugins.push("importAttributes");
34
+ }
35
+ }
36
+ };
37
+ });
38
+
39
+ //# sourceMappingURL=index.js.map
tools/ui/node_modules/@babel/plugin-syntax-import-attributes/lib/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"names":["_helperPluginUtils","require","_default","exports","default","declare","api","deprecatedAssertSyntax","assertVersion","Error","name","manipulateOptions","parserOpts","generatorOpts","_generatorOpts$import","importAttributesKeyword","importAssertionsPluginIndex","plugins","indexOf","splice","push"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\n\nexport interface Options {\n deprecatedAssertSyntax?: boolean;\n}\n\nexport default declare((api, { deprecatedAssertSyntax }: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.22.0 || ^8.0.0-0\"));\n\n if (\n deprecatedAssertSyntax != null &&\n typeof deprecatedAssertSyntax !== \"boolean\"\n ) {\n throw new Error(\n \"'deprecatedAssertSyntax' must be a boolean, if specified.\",\n );\n }\n\n return {\n name: \"syntax-import-attributes\",\n\n manipulateOptions({ parserOpts, generatorOpts }) {\n generatorOpts.importAttributesKeyword ??= \"with\";\n\n const importAssertionsPluginIndex =\n parserOpts.plugins.indexOf(\"importAssertions\");\n if (importAssertionsPluginIndex !== -1) {\n parserOpts.plugins.splice(importAssertionsPluginIndex, 1);\n deprecatedAssertSyntax = true;\n }\n\n if (deprecatedAssertSyntax) {\n parserOpts.plugins.push(\"deprecatedImportAssert\", [\n \"importAttributes\",\n { deprecatedAssertSyntax: true },\n ]);\n } else {\n parserOpts.plugins.push(\"importAttributes\");\n }\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAAqD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMtC,IAAAC,0BAAO,EAAC,CAACC,GAAG,EAAE;EAAEC;AAAgC,CAAC,KAAK;EACnED,GAAG,CAACE,aAAa,CAAkB,qBAAsB,CAAC;EAE1D,IACED,sBAAsB,IAAI,IAAI,IAC9B,OAAOA,sBAAsB,KAAK,SAAS,EAC3C;IACA,MAAM,IAAIE,KAAK,CACb,2DACF,CAAC;EACH;EAEA,OAAO;IACLC,IAAI,EAAE,0BAA0B;IAEhCC,iBAAiBA,CAAC;MAAEC,UAAU;MAAEC;IAAc,CAAC,EAAE;MAAA,IAAAC,qBAAA;MAC/C,CAAAA,qBAAA,GAAAD,aAAa,CAACE,uBAAuB,YAAAD,qBAAA,GAArCD,aAAa,CAACE,uBAAuB,GAAK,MAAM;MAEhD,MAAMC,2BAA2B,GAC/BJ,UAAU,CAACK,OAAO,CAACC,OAAO,CAAC,kBAAkB,CAAC;MAChD,IAAIF,2BAA2B,KAAK,CAAC,CAAC,EAAE;QACtCJ,UAAU,CAACK,OAAO,CAACE,MAAM,CAACH,2BAA2B,EAAE,CAAC,CAAC;QACzDT,sBAAsB,GAAG,IAAI;MAC/B;MAEA,IAAIA,sBAAsB,EAAE;QAC1BK,UAAU,CAACK,OAAO,CAACG,IAAI,CAAC,wBAAwB,EAAE,CAChD,kBAAkB,EAClB;UAAEb,sBAAsB,EAAE;QAAK,CAAC,CACjC,CAAC;MACJ,CAAC,MAAM;QACLK,UAAU,CAACK,OAAO,CAACG,IAAI,CAAC,kBAAkB,CAAC;MAC7C;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}