@rstest/core 0.7.8 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/LICENSE.md +294 -0
  2. package/dist/0~130.js +2 -2
  3. package/dist/0~1472.js +48 -0
  4. package/dist/0~1981.js +3 -0
  5. package/dist/0~2173.js +25 -10
  6. package/dist/0~2255.js +2 -2
  7. package/dist/0~3062.js +0 -5
  8. package/dist/0~3919.js +1 -1
  9. package/dist/0~4403.js +6 -5
  10. package/dist/0~4809.js +1 -1
  11. package/dist/0~5835.js +2 -2
  12. package/dist/0~62.js +1 -1
  13. package/dist/0~6588.js +3 -3
  14. package/dist/0~6923.js +2 -2
  15. package/dist/0~7583.js +9 -8
  16. package/dist/0~7882.js +1144 -0
  17. package/dist/0~8426.js +1 -2
  18. package/dist/0~89.js +24 -21
  19. package/dist/0~9348.js +953 -0
  20. package/dist/0~9634.js +58 -10
  21. package/dist/1157.js +12 -117
  22. package/dist/{7913.js → 1294.js} +51 -1745
  23. package/dist/2672.js +647 -0
  24. package/dist/3278.js +3 -450
  25. package/dist/4484.js +38 -0
  26. package/dist/487.js +1739 -0
  27. package/dist/4899.js +11 -0
  28. package/dist/5734.js +1 -1
  29. package/dist/{0~6151.js → 6151.js} +169 -13
  30. package/dist/{0~6973.js → 6973.js} +5 -5
  31. package/dist/721.js +9 -0
  32. package/dist/9131.js +554 -502
  33. package/dist/browser-runtime/2~907.js +1211 -0
  34. package/dist/browser-runtime/2~907.js.map +1 -0
  35. package/dist/browser-runtime/389.js +22071 -0
  36. package/dist/browser-runtime/389.js.LICENSE.txt +329 -0
  37. package/dist/browser-runtime/389.js.map +1 -0
  38. package/dist/browser-runtime/index.d.ts +2806 -0
  39. package/dist/browser-runtime/index.js +1 -0
  40. package/dist/browser-runtime/rslib-runtime.js +50 -0
  41. package/dist/browser-runtime/rslib-runtime.js.map +1 -0
  42. package/dist/browser.d.ts +3329 -0
  43. package/dist/browser.js +14 -0
  44. package/dist/globalSetupWorker.js +3 -2
  45. package/dist/index.d.ts +58 -1
  46. package/dist/index.js +2 -1
  47. package/dist/rslib-runtime.js +27 -0
  48. package/dist/rstestSuppressWarnings.cjs +9 -0
  49. package/dist/worker.d.ts +57 -1
  50. package/dist/worker.js +415 -1
  51. package/package.json +28 -13
  52. package/dist/0~8957.js +0 -149
  53. package/dist/554.js +0 -417
  54. package/dist/5693.js +0 -91
  55. /package/dist/{7913.js.LICENSE.txt → 1294.js.LICENSE.txt} +0 -0
  56. /package/dist/{0~6151.js.LICENSE.txt → 6151.js.LICENSE.txt} +0 -0
package/dist/487.js ADDED
@@ -0,0 +1,1739 @@
1
+ import 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ import { __webpack_require__ } from "./rslib-runtime.js";
4
+ import "./2672.js";
5
+ __webpack_require__.add({
6
+ "../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js" (module) {
7
+ var toString = Object.prototype.toString;
8
+ var isModern = "u" > typeof Buffer && 'function' == typeof Buffer.alloc && 'function' == typeof Buffer.allocUnsafe && 'function' == typeof Buffer.from;
9
+ function isArrayBuffer(input) {
10
+ return 'ArrayBuffer' === toString.call(input).slice(8, -1);
11
+ }
12
+ function fromArrayBuffer(obj, byteOffset, length) {
13
+ byteOffset >>>= 0;
14
+ var maxLength = obj.byteLength - byteOffset;
15
+ if (maxLength < 0) throw new RangeError("'offset' is out of bounds");
16
+ if (void 0 === length) length = maxLength;
17
+ else {
18
+ length >>>= 0;
19
+ if (length > maxLength) throw new RangeError("'length' is out of bounds");
20
+ }
21
+ return isModern ? Buffer.from(obj.slice(byteOffset, byteOffset + length)) : new Buffer(new Uint8Array(obj.slice(byteOffset, byteOffset + length)));
22
+ }
23
+ function fromString(string, encoding) {
24
+ if ('string' != typeof encoding || '' === encoding) encoding = 'utf8';
25
+ if (!Buffer.isEncoding(encoding)) throw new TypeError('"encoding" must be a valid string encoding');
26
+ return isModern ? Buffer.from(string, encoding) : new Buffer(string, encoding);
27
+ }
28
+ function bufferFrom(value, encodingOrOffset, length) {
29
+ if ('number' == typeof value) throw new TypeError('"value" argument must not be a number');
30
+ if (isArrayBuffer(value)) return fromArrayBuffer(value, encodingOrOffset, length);
31
+ if ('string' == typeof value) return fromString(value, encodingOrOffset);
32
+ return isModern ? Buffer.from(value) : new Buffer(value);
33
+ }
34
+ module.exports = bufferFrom;
35
+ },
36
+ "../../node_modules/.pnpm/source-map-support@0.5.21/node_modules/source-map-support/source-map-support.js" (module, exports, __webpack_require__) {
37
+ module = __webpack_require__.nmd(module);
38
+ var SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js").SourceMapConsumer;
39
+ var path = __webpack_require__("node:path");
40
+ var fs;
41
+ try {
42
+ fs = __webpack_require__("fs");
43
+ if (!fs.existsSync || !fs.readFileSync) fs = null;
44
+ } catch (err) {}
45
+ var bufferFrom = __webpack_require__("../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js");
46
+ function dynamicRequire(mod, request) {
47
+ return mod.require(request);
48
+ }
49
+ var errorFormatterInstalled = false;
50
+ var uncaughtShimInstalled = false;
51
+ var emptyCacheBetweenOperations = false;
52
+ var environment = "auto";
53
+ var fileContentsCache = {};
54
+ var sourceMapCache = {};
55
+ var reSourceMap = /^data:application\/json[^,]+base64,/;
56
+ var retrieveFileHandlers = [];
57
+ var retrieveMapHandlers = [];
58
+ function isInBrowser() {
59
+ if ("browser" === environment) return true;
60
+ if ("node" === environment) return false;
61
+ return "u" > typeof window && 'function' == typeof XMLHttpRequest && !(window.require && window.module && window.process && "renderer" === window.process.type);
62
+ }
63
+ function hasGlobalProcessEventEmitter() {
64
+ return 'object' == typeof process && null !== process && 'function' == typeof process.on;
65
+ }
66
+ function globalProcessVersion() {
67
+ if ('object' == typeof process && null !== process) return process.version;
68
+ return '';
69
+ }
70
+ function globalProcessStderr() {
71
+ if ('object' == typeof process && null !== process) return process.stderr;
72
+ }
73
+ function globalProcessExit(code) {
74
+ if ('object' == typeof process && null !== process && 'function' == typeof process.exit) return process.exit(code);
75
+ }
76
+ function handlerExec(list) {
77
+ return function(arg) {
78
+ for(var i = 0; i < list.length; i++){
79
+ var ret = list[i](arg);
80
+ if (ret) return ret;
81
+ }
82
+ return null;
83
+ };
84
+ }
85
+ var retrieveFile = handlerExec(retrieveFileHandlers);
86
+ retrieveFileHandlers.push(function(path) {
87
+ path = path.trim();
88
+ if (/^file:/.test(path)) path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
89
+ return drive ? '' : '/';
90
+ });
91
+ if (path in fileContentsCache) return fileContentsCache[path];
92
+ var contents = '';
93
+ try {
94
+ if (fs) {
95
+ if (fs.existsSync(path)) contents = fs.readFileSync(path, 'utf8');
96
+ } else {
97
+ var xhr = new XMLHttpRequest();
98
+ xhr.open('GET', path, false);
99
+ xhr.send(null);
100
+ if (4 === xhr.readyState && 200 === xhr.status) contents = xhr.responseText;
101
+ }
102
+ } catch (er) {}
103
+ return fileContentsCache[path] = contents;
104
+ });
105
+ function supportRelativeURL(file, url) {
106
+ if (!file) return url;
107
+ var dir = path.dirname(file);
108
+ var match = /^\w+:\/\/[^\/]*/.exec(dir);
109
+ var protocol = match ? match[0] : '';
110
+ var startPath = dir.slice(protocol.length);
111
+ if (protocol && /^\/\w\:/.test(startPath)) {
112
+ protocol += '/';
113
+ return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, '/');
114
+ }
115
+ return protocol + path.resolve(dir.slice(protocol.length), url);
116
+ }
117
+ function retrieveSourceMapURL(source) {
118
+ var fileData;
119
+ if (isInBrowser()) try {
120
+ var xhr = new XMLHttpRequest();
121
+ xhr.open('GET', source, false);
122
+ xhr.send(null);
123
+ fileData = 4 === xhr.readyState ? xhr.responseText : null;
124
+ var sourceMapHeader = xhr.getResponseHeader("SourceMap") || xhr.getResponseHeader("X-SourceMap");
125
+ if (sourceMapHeader) return sourceMapHeader;
126
+ } catch (e) {}
127
+ fileData = retrieveFile(source);
128
+ var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
129
+ var lastMatch, match;
130
+ while(match = re.exec(fileData))lastMatch = match;
131
+ if (!lastMatch) return null;
132
+ return lastMatch[1];
133
+ }
134
+ var retrieveSourceMap = handlerExec(retrieveMapHandlers);
135
+ retrieveMapHandlers.push(function(source) {
136
+ var sourceMappingURL = retrieveSourceMapURL(source);
137
+ if (!sourceMappingURL) return null;
138
+ var sourceMapData;
139
+ if (reSourceMap.test(sourceMappingURL)) {
140
+ var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1);
141
+ sourceMapData = bufferFrom(rawData, "base64").toString();
142
+ sourceMappingURL = source;
143
+ } else {
144
+ sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
145
+ sourceMapData = retrieveFile(sourceMappingURL);
146
+ }
147
+ if (!sourceMapData) return null;
148
+ return {
149
+ url: sourceMappingURL,
150
+ map: sourceMapData
151
+ };
152
+ });
153
+ function mapSourcePosition(position) {
154
+ var sourceMap = sourceMapCache[position.source];
155
+ if (!sourceMap) {
156
+ var urlAndMap = retrieveSourceMap(position.source);
157
+ if (urlAndMap) {
158
+ sourceMap = sourceMapCache[position.source] = {
159
+ url: urlAndMap.url,
160
+ map: new SourceMapConsumer(urlAndMap.map)
161
+ };
162
+ if (sourceMap.map.sourcesContent) sourceMap.map.sources.forEach(function(source, i) {
163
+ var contents = sourceMap.map.sourcesContent[i];
164
+ if (contents) {
165
+ var url = supportRelativeURL(sourceMap.url, source);
166
+ fileContentsCache[url] = contents;
167
+ }
168
+ });
169
+ } else sourceMap = sourceMapCache[position.source] = {
170
+ url: null,
171
+ map: null
172
+ };
173
+ }
174
+ if (sourceMap && sourceMap.map && 'function' == typeof sourceMap.map.originalPositionFor) {
175
+ var originalPosition = sourceMap.map.originalPositionFor(position);
176
+ if (null !== originalPosition.source) {
177
+ originalPosition.source = supportRelativeURL(sourceMap.url, originalPosition.source);
178
+ return originalPosition;
179
+ }
180
+ }
181
+ return position;
182
+ }
183
+ function mapEvalOrigin(origin) {
184
+ var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
185
+ if (match) {
186
+ var position = mapSourcePosition({
187
+ source: match[2],
188
+ line: +match[3],
189
+ column: match[4] - 1
190
+ });
191
+ return 'eval at ' + match[1] + ' (' + position.source + ':' + position.line + ':' + (position.column + 1) + ')';
192
+ }
193
+ match = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
194
+ if (match) return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')';
195
+ return origin;
196
+ }
197
+ function CallSiteToString() {
198
+ var fileName;
199
+ var fileLocation = "";
200
+ if (this.isNative()) fileLocation = "native";
201
+ else {
202
+ fileName = this.getScriptNameOrSourceURL();
203
+ if (!fileName && this.isEval()) {
204
+ fileLocation = this.getEvalOrigin();
205
+ fileLocation += ", ";
206
+ }
207
+ if (fileName) fileLocation += fileName;
208
+ else fileLocation += "<anonymous>";
209
+ var lineNumber = this.getLineNumber();
210
+ if (null != lineNumber) {
211
+ fileLocation += ":" + lineNumber;
212
+ var columnNumber = this.getColumnNumber();
213
+ if (columnNumber) fileLocation += ":" + columnNumber;
214
+ }
215
+ }
216
+ var line = "";
217
+ var functionName = this.getFunctionName();
218
+ var addSuffix = true;
219
+ var isConstructor = this.isConstructor();
220
+ var isMethodCall = !(this.isToplevel() || isConstructor);
221
+ if (isMethodCall) {
222
+ var typeName = this.getTypeName();
223
+ if ("[object Object]" === typeName) typeName = "null";
224
+ var methodName = this.getMethodName();
225
+ if (functionName) {
226
+ if (typeName && 0 != functionName.indexOf(typeName)) line += typeName + ".";
227
+ line += functionName;
228
+ if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) line += " [as " + methodName + "]";
229
+ } else line += typeName + "." + (methodName || "<anonymous>");
230
+ } else if (isConstructor) line += "new " + (functionName || "<anonymous>");
231
+ else if (functionName) line += functionName;
232
+ else {
233
+ line += fileLocation;
234
+ addSuffix = false;
235
+ }
236
+ if (addSuffix) line += " (" + fileLocation + ")";
237
+ return line;
238
+ }
239
+ function cloneCallSite(frame) {
240
+ var object = {};
241
+ Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) {
242
+ object[name] = /^(?:is|get)/.test(name) ? function() {
243
+ return frame[name].call(frame);
244
+ } : frame[name];
245
+ });
246
+ object.toString = CallSiteToString;
247
+ return object;
248
+ }
249
+ function wrapCallSite(frame, state) {
250
+ if (void 0 === state) state = {
251
+ nextPosition: null,
252
+ curPosition: null
253
+ };
254
+ if (frame.isNative()) {
255
+ state.curPosition = null;
256
+ return frame;
257
+ }
258
+ var source = frame.getFileName() || frame.getScriptNameOrSourceURL();
259
+ if (source) {
260
+ var line = frame.getLineNumber();
261
+ var column = frame.getColumnNumber() - 1;
262
+ var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/;
263
+ var headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62;
264
+ if (1 === line && column > headerLength && !isInBrowser() && !frame.isEval()) column -= headerLength;
265
+ var position = mapSourcePosition({
266
+ source: source,
267
+ line: line,
268
+ column: column
269
+ });
270
+ state.curPosition = position;
271
+ frame = cloneCallSite(frame);
272
+ var originalFunctionName = frame.getFunctionName;
273
+ frame.getFunctionName = function() {
274
+ if (null == state.nextPosition) return originalFunctionName();
275
+ return state.nextPosition.name || originalFunctionName();
276
+ };
277
+ frame.getFileName = function() {
278
+ return position.source;
279
+ };
280
+ frame.getLineNumber = function() {
281
+ return position.line;
282
+ };
283
+ frame.getColumnNumber = function() {
284
+ return position.column + 1;
285
+ };
286
+ frame.getScriptNameOrSourceURL = function() {
287
+ return position.source;
288
+ };
289
+ return frame;
290
+ }
291
+ var origin = frame.isEval() && frame.getEvalOrigin();
292
+ if (origin) {
293
+ origin = mapEvalOrigin(origin);
294
+ frame = cloneCallSite(frame);
295
+ frame.getEvalOrigin = function() {
296
+ return origin;
297
+ };
298
+ }
299
+ return frame;
300
+ }
301
+ function prepareStackTrace(error, stack) {
302
+ if (emptyCacheBetweenOperations) {
303
+ fileContentsCache = {};
304
+ sourceMapCache = {};
305
+ }
306
+ var name = error.name || 'Error';
307
+ var message = error.message || '';
308
+ var errorString = name + ": " + message;
309
+ var state = {
310
+ nextPosition: null,
311
+ curPosition: null
312
+ };
313
+ var processedStack = [];
314
+ for(var i = stack.length - 1; i >= 0; i--){
315
+ processedStack.push('\n at ' + wrapCallSite(stack[i], state));
316
+ state.nextPosition = state.curPosition;
317
+ }
318
+ state.curPosition = state.nextPosition = null;
319
+ return errorString + processedStack.reverse().join('');
320
+ }
321
+ function getErrorSource(error) {
322
+ var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
323
+ if (match) {
324
+ var source = match[1];
325
+ var line = +match[2];
326
+ var column = +match[3];
327
+ var contents = fileContentsCache[source];
328
+ if (!contents && fs && fs.existsSync(source)) try {
329
+ contents = fs.readFileSync(source, 'utf8');
330
+ } catch (er) {
331
+ contents = '';
332
+ }
333
+ if (contents) {
334
+ var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1];
335
+ if (code) return source + ':' + line + '\n' + code + '\n' + new Array(column).join(' ') + '^';
336
+ }
337
+ }
338
+ return null;
339
+ }
340
+ function printErrorAndExit(error) {
341
+ var source = getErrorSource(error);
342
+ var stderr = globalProcessStderr();
343
+ if (stderr && stderr._handle && stderr._handle.setBlocking) stderr._handle.setBlocking(true);
344
+ if (source) {
345
+ console.error();
346
+ console.error(source);
347
+ }
348
+ console.error(error.stack);
349
+ globalProcessExit(1);
350
+ }
351
+ function shimEmitUncaughtException() {
352
+ var origEmit = process.emit;
353
+ process.emit = function(type) {
354
+ if ('uncaughtException' === type) {
355
+ var hasStack = arguments[1] && arguments[1].stack;
356
+ var hasListeners = this.listeners(type).length > 0;
357
+ if (hasStack && !hasListeners) return printErrorAndExit(arguments[1]);
358
+ }
359
+ return origEmit.apply(this, arguments);
360
+ };
361
+ }
362
+ var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0);
363
+ var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0);
364
+ exports.wrapCallSite = wrapCallSite;
365
+ exports.getErrorSource = getErrorSource;
366
+ exports.mapSourcePosition = mapSourcePosition;
367
+ exports.retrieveSourceMap = retrieveSourceMap;
368
+ exports.install = function(options) {
369
+ options = options || {};
370
+ if (options.environment) {
371
+ environment = options.environment;
372
+ if (-1 === [
373
+ "node",
374
+ "browser",
375
+ "auto"
376
+ ].indexOf(environment)) throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}");
377
+ }
378
+ if (options.retrieveFile) {
379
+ if (options.overrideRetrieveFile) retrieveFileHandlers.length = 0;
380
+ retrieveFileHandlers.unshift(options.retrieveFile);
381
+ }
382
+ if (options.retrieveSourceMap) {
383
+ if (options.overrideRetrieveSourceMap) retrieveMapHandlers.length = 0;
384
+ retrieveMapHandlers.unshift(options.retrieveSourceMap);
385
+ }
386
+ if (options.hookRequire && !isInBrowser()) {
387
+ var Module = dynamicRequire(module, 'module');
388
+ var $compile = Module.prototype._compile;
389
+ if (!$compile.__sourceMapSupport) {
390
+ Module.prototype._compile = function(content, filename) {
391
+ fileContentsCache[filename] = content;
392
+ sourceMapCache[filename] = void 0;
393
+ return $compile.call(this, content, filename);
394
+ };
395
+ Module.prototype._compile.__sourceMapSupport = true;
396
+ }
397
+ }
398
+ if (!emptyCacheBetweenOperations) emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ? options.emptyCacheBetweenOperations : false;
399
+ if (!errorFormatterInstalled) {
400
+ errorFormatterInstalled = true;
401
+ Error.prepareStackTrace = prepareStackTrace;
402
+ }
403
+ if (!uncaughtShimInstalled) {
404
+ var installHandler = 'handleUncaughtExceptions' in options ? options.handleUncaughtExceptions : true;
405
+ try {
406
+ var worker_threads = dynamicRequire(module, 'worker_threads');
407
+ if (false === worker_threads.isMainThread) installHandler = false;
408
+ } catch (e) {}
409
+ if (installHandler && hasGlobalProcessEventEmitter()) {
410
+ uncaughtShimInstalled = true;
411
+ shimEmitUncaughtException();
412
+ }
413
+ }
414
+ };
415
+ exports.resetRetrieveHandlers = function() {
416
+ retrieveFileHandlers.length = 0;
417
+ retrieveMapHandlers.length = 0;
418
+ retrieveFileHandlers = originalRetrieveFileHandlers.slice(0);
419
+ retrieveMapHandlers = originalRetrieveMapHandlers.slice(0);
420
+ retrieveSourceMap = handlerExec(retrieveMapHandlers);
421
+ retrieveFile = handlerExec(retrieveFileHandlers);
422
+ };
423
+ },
424
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js" (__unused_rspack_module, exports, __webpack_require__) {
425
+ var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
426
+ var has = Object.prototype.hasOwnProperty;
427
+ var hasNativeMap = "u" > typeof Map;
428
+ function ArraySet() {
429
+ this._array = [];
430
+ this._set = hasNativeMap ? new Map() : Object.create(null);
431
+ }
432
+ ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
433
+ var set = new ArraySet();
434
+ for(var i = 0, len = aArray.length; i < len; i++)set.add(aArray[i], aAllowDuplicates);
435
+ return set;
436
+ };
437
+ ArraySet.prototype.size = function ArraySet_size() {
438
+ return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
439
+ };
440
+ ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
441
+ var sStr = hasNativeMap ? aStr : util.toSetString(aStr);
442
+ var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
443
+ var idx = this._array.length;
444
+ if (!isDuplicate || aAllowDuplicates) this._array.push(aStr);
445
+ if (!isDuplicate) if (hasNativeMap) this._set.set(aStr, idx);
446
+ else this._set[sStr] = idx;
447
+ };
448
+ ArraySet.prototype.has = function ArraySet_has(aStr) {
449
+ if (hasNativeMap) return this._set.has(aStr);
450
+ var sStr = util.toSetString(aStr);
451
+ return has.call(this._set, sStr);
452
+ };
453
+ ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
454
+ if (hasNativeMap) {
455
+ var idx = this._set.get(aStr);
456
+ if (idx >= 0) return idx;
457
+ } else {
458
+ var sStr = util.toSetString(aStr);
459
+ if (has.call(this._set, sStr)) return this._set[sStr];
460
+ }
461
+ throw new Error('"' + aStr + '" is not in the set.');
462
+ };
463
+ ArraySet.prototype.at = function ArraySet_at(aIdx) {
464
+ if (aIdx >= 0 && aIdx < this._array.length) return this._array[aIdx];
465
+ throw new Error('No element indexed by ' + aIdx);
466
+ };
467
+ ArraySet.prototype.toArray = function ArraySet_toArray() {
468
+ return this._array.slice();
469
+ };
470
+ exports.ArraySet = ArraySet;
471
+ },
472
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js" (__unused_rspack_module, exports, __webpack_require__) {
473
+ var base64 = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js");
474
+ var VLQ_BASE_SHIFT = 5;
475
+ var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
476
+ var VLQ_BASE_MASK = VLQ_BASE - 1;
477
+ var VLQ_CONTINUATION_BIT = VLQ_BASE;
478
+ function toVLQSigned(aValue) {
479
+ return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0;
480
+ }
481
+ function fromVLQSigned(aValue) {
482
+ var isNegative = (1 & aValue) === 1;
483
+ var shifted = aValue >> 1;
484
+ return isNegative ? -shifted : shifted;
485
+ }
486
+ exports.encode = function base64VLQ_encode(aValue) {
487
+ var encoded = "";
488
+ var digit;
489
+ var vlq = toVLQSigned(aValue);
490
+ do {
491
+ digit = vlq & VLQ_BASE_MASK;
492
+ vlq >>>= VLQ_BASE_SHIFT;
493
+ if (vlq > 0) digit |= VLQ_CONTINUATION_BIT;
494
+ encoded += base64.encode(digit);
495
+ }while (vlq > 0);
496
+ return encoded;
497
+ };
498
+ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
499
+ var strLen = aStr.length;
500
+ var result = 0;
501
+ var shift = 0;
502
+ var continuation, digit;
503
+ do {
504
+ if (aIndex >= strLen) throw new Error("Expected more digits in base 64 VLQ value.");
505
+ digit = base64.decode(aStr.charCodeAt(aIndex++));
506
+ if (-1 === digit) throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
507
+ continuation = !!(digit & VLQ_CONTINUATION_BIT);
508
+ digit &= VLQ_BASE_MASK;
509
+ result += digit << shift;
510
+ shift += VLQ_BASE_SHIFT;
511
+ }while (continuation);
512
+ aOutParam.value = fromVLQSigned(result);
513
+ aOutParam.rest = aIndex;
514
+ };
515
+ },
516
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js" (__unused_rspack_module, exports) {
517
+ var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
518
+ exports.encode = function(number) {
519
+ if (0 <= number && number < intToCharMap.length) return intToCharMap[number];
520
+ throw new TypeError("Must be between 0 and 63: " + number);
521
+ };
522
+ exports.decode = function(charCode) {
523
+ var bigA = 65;
524
+ var bigZ = 90;
525
+ var littleA = 97;
526
+ var littleZ = 122;
527
+ var zero = 48;
528
+ var nine = 57;
529
+ var plus = 43;
530
+ var slash = 47;
531
+ var littleOffset = 26;
532
+ var numberOffset = 52;
533
+ if (bigA <= charCode && charCode <= bigZ) return charCode - bigA;
534
+ if (littleA <= charCode && charCode <= littleZ) return charCode - littleA + littleOffset;
535
+ if (zero <= charCode && charCode <= nine) return charCode - zero + numberOffset;
536
+ if (charCode == plus) return 62;
537
+ if (charCode == slash) return 63;
538
+ return -1;
539
+ };
540
+ },
541
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js" (__unused_rspack_module, exports) {
542
+ exports.GREATEST_LOWER_BOUND = 1;
543
+ exports.LEAST_UPPER_BOUND = 2;
544
+ function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
545
+ var mid = Math.floor((aHigh - aLow) / 2) + aLow;
546
+ var cmp = aCompare(aNeedle, aHaystack[mid], true);
547
+ if (0 === cmp) return mid;
548
+ if (cmp > 0) {
549
+ if (aHigh - mid > 1) return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
550
+ if (aBias == exports.LEAST_UPPER_BOUND) return aHigh < aHaystack.length ? aHigh : -1;
551
+ return mid;
552
+ }
553
+ if (mid - aLow > 1) return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
554
+ if (aBias == exports.LEAST_UPPER_BOUND) return mid;
555
+ return aLow < 0 ? -1 : aLow;
556
+ }
557
+ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
558
+ if (0 === aHaystack.length) return -1;
559
+ var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare, aBias || exports.GREATEST_LOWER_BOUND);
560
+ if (index < 0) return -1;
561
+ while(index - 1 >= 0){
562
+ if (0 !== aCompare(aHaystack[index], aHaystack[index - 1], true)) break;
563
+ --index;
564
+ }
565
+ return index;
566
+ };
567
+ },
568
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js" (__unused_rspack_module, exports, __webpack_require__) {
569
+ var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
570
+ function generatedPositionAfter(mappingA, mappingB) {
571
+ var lineA = mappingA.generatedLine;
572
+ var lineB = mappingB.generatedLine;
573
+ var columnA = mappingA.generatedColumn;
574
+ var columnB = mappingB.generatedColumn;
575
+ return lineB > lineA || lineB == lineA && columnB >= columnA || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
576
+ }
577
+ function MappingList() {
578
+ this._array = [];
579
+ this._sorted = true;
580
+ this._last = {
581
+ generatedLine: -1,
582
+ generatedColumn: 0
583
+ };
584
+ }
585
+ MappingList.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) {
586
+ this._array.forEach(aCallback, aThisArg);
587
+ };
588
+ MappingList.prototype.add = function MappingList_add(aMapping) {
589
+ if (generatedPositionAfter(this._last, aMapping)) {
590
+ this._last = aMapping;
591
+ this._array.push(aMapping);
592
+ } else {
593
+ this._sorted = false;
594
+ this._array.push(aMapping);
595
+ }
596
+ };
597
+ MappingList.prototype.toArray = function MappingList_toArray() {
598
+ if (!this._sorted) {
599
+ this._array.sort(util.compareByGeneratedPositionsInflated);
600
+ this._sorted = true;
601
+ }
602
+ return this._array;
603
+ };
604
+ exports.MappingList = MappingList;
605
+ },
606
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js" (__unused_rspack_module, exports) {
607
+ function swap(ary, x, y) {
608
+ var temp = ary[x];
609
+ ary[x] = ary[y];
610
+ ary[y] = temp;
611
+ }
612
+ function randomIntInRange(low, high) {
613
+ return Math.round(low + Math.random() * (high - low));
614
+ }
615
+ function doQuickSort(ary, comparator, p, r) {
616
+ if (p < r) {
617
+ var pivotIndex = randomIntInRange(p, r);
618
+ var i = p - 1;
619
+ swap(ary, pivotIndex, r);
620
+ var pivot = ary[r];
621
+ for(var j = p; j < r; j++)if (comparator(ary[j], pivot) <= 0) {
622
+ i += 1;
623
+ swap(ary, i, j);
624
+ }
625
+ swap(ary, i + 1, j);
626
+ var q = i + 1;
627
+ doQuickSort(ary, comparator, p, q - 1);
628
+ doQuickSort(ary, comparator, q + 1, r);
629
+ }
630
+ }
631
+ exports.quickSort = function(ary, comparator) {
632
+ doQuickSort(ary, comparator, 0, ary.length - 1);
633
+ };
634
+ },
635
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js" (__unused_rspack_module, exports, __webpack_require__) {
636
+ var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
637
+ var binarySearch = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js");
638
+ var ArraySet = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js").ArraySet;
639
+ var base64VLQ = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js");
640
+ var quickSort = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js").quickSort;
641
+ function SourceMapConsumer(aSourceMap, aSourceMapURL) {
642
+ var sourceMap = aSourceMap;
643
+ if ('string' == typeof aSourceMap) sourceMap = util.parseSourceMapInput(aSourceMap);
644
+ return null != sourceMap.sections ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
645
+ }
646
+ SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
647
+ return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
648
+ };
649
+ SourceMapConsumer.prototype._version = 3;
650
+ SourceMapConsumer.prototype.__generatedMappings = null;
651
+ Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {
652
+ configurable: true,
653
+ enumerable: true,
654
+ get: function() {
655
+ if (!this.__generatedMappings) this._parseMappings(this._mappings, this.sourceRoot);
656
+ return this.__generatedMappings;
657
+ }
658
+ });
659
+ SourceMapConsumer.prototype.__originalMappings = null;
660
+ Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {
661
+ configurable: true,
662
+ enumerable: true,
663
+ get: function() {
664
+ if (!this.__originalMappings) this._parseMappings(this._mappings, this.sourceRoot);
665
+ return this.__originalMappings;
666
+ }
667
+ });
668
+ SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
669
+ var c = aStr.charAt(index);
670
+ return ";" === c || "," === c;
671
+ };
672
+ SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
673
+ throw new Error("Subclasses must implement _parseMappings");
674
+ };
675
+ SourceMapConsumer.GENERATED_ORDER = 1;
676
+ SourceMapConsumer.ORIGINAL_ORDER = 2;
677
+ SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
678
+ SourceMapConsumer.LEAST_UPPER_BOUND = 2;
679
+ SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
680
+ var context = aContext || null;
681
+ var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
682
+ var mappings;
683
+ switch(order){
684
+ case SourceMapConsumer.GENERATED_ORDER:
685
+ mappings = this._generatedMappings;
686
+ break;
687
+ case SourceMapConsumer.ORIGINAL_ORDER:
688
+ mappings = this._originalMappings;
689
+ break;
690
+ default:
691
+ throw new Error("Unknown order of iteration.");
692
+ }
693
+ var sourceRoot = this.sourceRoot;
694
+ mappings.map(function(mapping) {
695
+ var source = null === mapping.source ? null : this._sources.at(mapping.source);
696
+ source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);
697
+ return {
698
+ source: source,
699
+ generatedLine: mapping.generatedLine,
700
+ generatedColumn: mapping.generatedColumn,
701
+ originalLine: mapping.originalLine,
702
+ originalColumn: mapping.originalColumn,
703
+ name: null === mapping.name ? null : this._names.at(mapping.name)
704
+ };
705
+ }, this).forEach(aCallback, context);
706
+ };
707
+ SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
708
+ var line = util.getArg(aArgs, 'line');
709
+ var needle = {
710
+ source: util.getArg(aArgs, 'source'),
711
+ originalLine: line,
712
+ originalColumn: util.getArg(aArgs, 'column', 0)
713
+ };
714
+ needle.source = this._findSourceIndex(needle.source);
715
+ if (needle.source < 0) return [];
716
+ var mappings = [];
717
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND);
718
+ if (index >= 0) {
719
+ var mapping = this._originalMappings[index];
720
+ if (void 0 === aArgs.column) {
721
+ var originalLine = mapping.originalLine;
722
+ while(mapping && mapping.originalLine === originalLine){
723
+ mappings.push({
724
+ line: util.getArg(mapping, 'generatedLine', null),
725
+ column: util.getArg(mapping, 'generatedColumn', null),
726
+ lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
727
+ });
728
+ mapping = this._originalMappings[++index];
729
+ }
730
+ } else {
731
+ var originalColumn = mapping.originalColumn;
732
+ while(mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn){
733
+ mappings.push({
734
+ line: util.getArg(mapping, 'generatedLine', null),
735
+ column: util.getArg(mapping, 'generatedColumn', null),
736
+ lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
737
+ });
738
+ mapping = this._originalMappings[++index];
739
+ }
740
+ }
741
+ }
742
+ return mappings;
743
+ };
744
+ exports.SourceMapConsumer = SourceMapConsumer;
745
+ function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
746
+ var sourceMap = aSourceMap;
747
+ if ('string' == typeof aSourceMap) sourceMap = util.parseSourceMapInput(aSourceMap);
748
+ var version = util.getArg(sourceMap, 'version');
749
+ var sources = util.getArg(sourceMap, 'sources');
750
+ var names = util.getArg(sourceMap, 'names', []);
751
+ var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);
752
+ var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);
753
+ var mappings = util.getArg(sourceMap, 'mappings');
754
+ var file = util.getArg(sourceMap, 'file', null);
755
+ if (version != this._version) throw new Error('Unsupported version: ' + version);
756
+ if (sourceRoot) sourceRoot = util.normalize(sourceRoot);
757
+ sources = sources.map(String).map(util.normalize).map(function(source) {
758
+ return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) : source;
759
+ });
760
+ this._names = ArraySet.fromArray(names.map(String), true);
761
+ this._sources = ArraySet.fromArray(sources, true);
762
+ this._absoluteSources = this._sources.toArray().map(function(s) {
763
+ return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
764
+ });
765
+ this.sourceRoot = sourceRoot;
766
+ this.sourcesContent = sourcesContent;
767
+ this._mappings = mappings;
768
+ this._sourceMapURL = aSourceMapURL;
769
+ this.file = file;
770
+ }
771
+ BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
772
+ BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
773
+ BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
774
+ var relativeSource = aSource;
775
+ if (null != this.sourceRoot) relativeSource = util.relative(this.sourceRoot, relativeSource);
776
+ if (this._sources.has(relativeSource)) return this._sources.indexOf(relativeSource);
777
+ var i;
778
+ for(i = 0; i < this._absoluteSources.length; ++i)if (this._absoluteSources[i] == aSource) return i;
779
+ return -1;
780
+ };
781
+ BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
782
+ var smc = Object.create(BasicSourceMapConsumer.prototype);
783
+ var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
784
+ var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
785
+ smc.sourceRoot = aSourceMap._sourceRoot;
786
+ smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), smc.sourceRoot);
787
+ smc.file = aSourceMap._file;
788
+ smc._sourceMapURL = aSourceMapURL;
789
+ smc._absoluteSources = smc._sources.toArray().map(function(s) {
790
+ return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
791
+ });
792
+ var generatedMappings = aSourceMap._mappings.toArray().slice();
793
+ var destGeneratedMappings = smc.__generatedMappings = [];
794
+ var destOriginalMappings = smc.__originalMappings = [];
795
+ for(var i = 0, length = generatedMappings.length; i < length; i++){
796
+ var srcMapping = generatedMappings[i];
797
+ var destMapping = new Mapping;
798
+ destMapping.generatedLine = srcMapping.generatedLine;
799
+ destMapping.generatedColumn = srcMapping.generatedColumn;
800
+ if (srcMapping.source) {
801
+ destMapping.source = sources.indexOf(srcMapping.source);
802
+ destMapping.originalLine = srcMapping.originalLine;
803
+ destMapping.originalColumn = srcMapping.originalColumn;
804
+ if (srcMapping.name) destMapping.name = names.indexOf(srcMapping.name);
805
+ destOriginalMappings.push(destMapping);
806
+ }
807
+ destGeneratedMappings.push(destMapping);
808
+ }
809
+ quickSort(smc.__originalMappings, util.compareByOriginalPositions);
810
+ return smc;
811
+ };
812
+ BasicSourceMapConsumer.prototype._version = 3;
813
+ Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {
814
+ get: function() {
815
+ return this._absoluteSources.slice();
816
+ }
817
+ });
818
+ function Mapping() {
819
+ this.generatedLine = 0;
820
+ this.generatedColumn = 0;
821
+ this.source = null;
822
+ this.originalLine = null;
823
+ this.originalColumn = null;
824
+ this.name = null;
825
+ }
826
+ BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
827
+ var generatedLine = 1;
828
+ var previousGeneratedColumn = 0;
829
+ var previousOriginalLine = 0;
830
+ var previousOriginalColumn = 0;
831
+ var previousSource = 0;
832
+ var previousName = 0;
833
+ var length = aStr.length;
834
+ var index = 0;
835
+ var cachedSegments = {};
836
+ var temp = {};
837
+ var originalMappings = [];
838
+ var generatedMappings = [];
839
+ var mapping, str, segment, end, value;
840
+ while(index < length)if (';' === aStr.charAt(index)) {
841
+ generatedLine++;
842
+ index++;
843
+ previousGeneratedColumn = 0;
844
+ } else if (',' === aStr.charAt(index)) index++;
845
+ else {
846
+ mapping = new Mapping();
847
+ mapping.generatedLine = generatedLine;
848
+ for(end = index; end < length && !this._charIsMappingSeparator(aStr, end); end++);
849
+ str = aStr.slice(index, end);
850
+ segment = cachedSegments[str];
851
+ if (segment) index += str.length;
852
+ else {
853
+ segment = [];
854
+ while(index < end){
855
+ base64VLQ.decode(aStr, index, temp);
856
+ value = temp.value;
857
+ index = temp.rest;
858
+ segment.push(value);
859
+ }
860
+ if (2 === segment.length) throw new Error('Found a source, but no line and column');
861
+ if (3 === segment.length) throw new Error('Found a source and line, but no column');
862
+ cachedSegments[str] = segment;
863
+ }
864
+ mapping.generatedColumn = previousGeneratedColumn + segment[0];
865
+ previousGeneratedColumn = mapping.generatedColumn;
866
+ if (segment.length > 1) {
867
+ mapping.source = previousSource + segment[1];
868
+ previousSource += segment[1];
869
+ mapping.originalLine = previousOriginalLine + segment[2];
870
+ previousOriginalLine = mapping.originalLine;
871
+ mapping.originalLine += 1;
872
+ mapping.originalColumn = previousOriginalColumn + segment[3];
873
+ previousOriginalColumn = mapping.originalColumn;
874
+ if (segment.length > 4) {
875
+ mapping.name = previousName + segment[4];
876
+ previousName += segment[4];
877
+ }
878
+ }
879
+ generatedMappings.push(mapping);
880
+ if ('number' == typeof mapping.originalLine) originalMappings.push(mapping);
881
+ }
882
+ quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);
883
+ this.__generatedMappings = generatedMappings;
884
+ quickSort(originalMappings, util.compareByOriginalPositions);
885
+ this.__originalMappings = originalMappings;
886
+ };
887
+ BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
888
+ if (aNeedle[aLineName] <= 0) throw new TypeError('Line must be greater than or equal to 1, got ' + aNeedle[aLineName]);
889
+ if (aNeedle[aColumnName] < 0) throw new TypeError('Column must be greater than or equal to 0, got ' + aNeedle[aColumnName]);
890
+ return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
891
+ };
892
+ BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() {
893
+ for(var index = 0; index < this._generatedMappings.length; ++index){
894
+ var mapping = this._generatedMappings[index];
895
+ if (index + 1 < this._generatedMappings.length) {
896
+ var nextMapping = this._generatedMappings[index + 1];
897
+ if (mapping.generatedLine === nextMapping.generatedLine) {
898
+ mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
899
+ continue;
900
+ }
901
+ }
902
+ mapping.lastGeneratedColumn = 1 / 0;
903
+ }
904
+ };
905
+ BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
906
+ var needle = {
907
+ generatedLine: util.getArg(aArgs, 'line'),
908
+ generatedColumn: util.getArg(aArgs, 'column')
909
+ };
910
+ var index = this._findMapping(needle, this._generatedMappings, "generatedLine", "generatedColumn", util.compareByGeneratedPositionsDeflated, util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND));
911
+ if (index >= 0) {
912
+ var mapping = this._generatedMappings[index];
913
+ if (mapping.generatedLine === needle.generatedLine) {
914
+ var source = util.getArg(mapping, 'source', null);
915
+ if (null !== source) {
916
+ source = this._sources.at(source);
917
+ source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
918
+ }
919
+ var name = util.getArg(mapping, 'name', null);
920
+ if (null !== name) name = this._names.at(name);
921
+ return {
922
+ source: source,
923
+ line: util.getArg(mapping, 'originalLine', null),
924
+ column: util.getArg(mapping, 'originalColumn', null),
925
+ name: name
926
+ };
927
+ }
928
+ }
929
+ return {
930
+ source: null,
931
+ line: null,
932
+ column: null,
933
+ name: null
934
+ };
935
+ };
936
+ BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() {
937
+ if (!this.sourcesContent) return false;
938
+ return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) {
939
+ return null == sc;
940
+ });
941
+ };
942
+ BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
943
+ if (!this.sourcesContent) return null;
944
+ var index = this._findSourceIndex(aSource);
945
+ if (index >= 0) return this.sourcesContent[index];
946
+ var relativeSource = aSource;
947
+ if (null != this.sourceRoot) relativeSource = util.relative(this.sourceRoot, relativeSource);
948
+ var url;
949
+ if (null != this.sourceRoot && (url = util.urlParse(this.sourceRoot))) {
950
+ var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
951
+ if ("file" == url.scheme && this._sources.has(fileUriAbsPath)) return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
952
+ if ((!url.path || "/" == url.path) && this._sources.has("/" + relativeSource)) return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
953
+ }
954
+ if (nullOnMissing) return null;
955
+ throw new Error('"' + relativeSource + '" is not in the SourceMap.');
956
+ };
957
+ BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
958
+ var source = util.getArg(aArgs, 'source');
959
+ source = this._findSourceIndex(source);
960
+ if (source < 0) return {
961
+ line: null,
962
+ column: null,
963
+ lastColumn: null
964
+ };
965
+ var needle = {
966
+ source: source,
967
+ originalLine: util.getArg(aArgs, 'line'),
968
+ originalColumn: util.getArg(aArgs, 'column')
969
+ };
970
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND));
971
+ if (index >= 0) {
972
+ var mapping = this._originalMappings[index];
973
+ if (mapping.source === needle.source) return {
974
+ line: util.getArg(mapping, 'generatedLine', null),
975
+ column: util.getArg(mapping, 'generatedColumn', null),
976
+ lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
977
+ };
978
+ }
979
+ return {
980
+ line: null,
981
+ column: null,
982
+ lastColumn: null
983
+ };
984
+ };
985
+ function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
986
+ var sourceMap = aSourceMap;
987
+ if ('string' == typeof aSourceMap) sourceMap = util.parseSourceMapInput(aSourceMap);
988
+ var version = util.getArg(sourceMap, 'version');
989
+ var sections = util.getArg(sourceMap, 'sections');
990
+ if (version != this._version) throw new Error('Unsupported version: ' + version);
991
+ this._sources = new ArraySet();
992
+ this._names = new ArraySet();
993
+ var lastOffset = {
994
+ line: -1,
995
+ column: 0
996
+ };
997
+ this._sections = sections.map(function(s) {
998
+ if (s.url) throw new Error('Support for url field in sections not implemented.');
999
+ var offset = util.getArg(s, 'offset');
1000
+ var offsetLine = util.getArg(offset, 'line');
1001
+ var offsetColumn = util.getArg(offset, 'column');
1002
+ if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) throw new Error('Section offsets must be ordered and non-overlapping.');
1003
+ lastOffset = offset;
1004
+ return {
1005
+ generatedOffset: {
1006
+ generatedLine: offsetLine + 1,
1007
+ generatedColumn: offsetColumn + 1
1008
+ },
1009
+ consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL)
1010
+ };
1011
+ });
1012
+ }
1013
+ IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
1014
+ IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
1015
+ IndexedSourceMapConsumer.prototype._version = 3;
1016
+ Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {
1017
+ get: function() {
1018
+ var sources = [];
1019
+ for(var i = 0; i < this._sections.length; i++)for(var j = 0; j < this._sections[i].consumer.sources.length; j++)sources.push(this._sections[i].consumer.sources[j]);
1020
+ return sources;
1021
+ }
1022
+ });
1023
+ IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
1024
+ var needle = {
1025
+ generatedLine: util.getArg(aArgs, 'line'),
1026
+ generatedColumn: util.getArg(aArgs, 'column')
1027
+ };
1028
+ var sectionIndex = binarySearch.search(needle, this._sections, function(needle, section) {
1029
+ var cmp = needle.generatedLine - section.generatedOffset.generatedLine;
1030
+ if (cmp) return cmp;
1031
+ return needle.generatedColumn - section.generatedOffset.generatedColumn;
1032
+ });
1033
+ var section = this._sections[sectionIndex];
1034
+ if (!section) return {
1035
+ source: null,
1036
+ line: null,
1037
+ column: null,
1038
+ name: null
1039
+ };
1040
+ return section.consumer.originalPositionFor({
1041
+ line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
1042
+ column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
1043
+ bias: aArgs.bias
1044
+ });
1045
+ };
1046
+ IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() {
1047
+ return this._sections.every(function(s) {
1048
+ return s.consumer.hasContentsOfAllSources();
1049
+ });
1050
+ };
1051
+ IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
1052
+ for(var i = 0; i < this._sections.length; i++){
1053
+ var section = this._sections[i];
1054
+ var content = section.consumer.sourceContentFor(aSource, true);
1055
+ if (content) return content;
1056
+ }
1057
+ if (nullOnMissing) return null;
1058
+ throw new Error('"' + aSource + '" is not in the SourceMap.');
1059
+ };
1060
+ IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
1061
+ for(var i = 0; i < this._sections.length; i++){
1062
+ var section = this._sections[i];
1063
+ if (-1 !== section.consumer._findSourceIndex(util.getArg(aArgs, 'source'))) {
1064
+ var generatedPosition = section.consumer.generatedPositionFor(aArgs);
1065
+ if (generatedPosition) {
1066
+ var ret = {
1067
+ line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
1068
+ column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
1069
+ };
1070
+ return ret;
1071
+ }
1072
+ }
1073
+ }
1074
+ return {
1075
+ line: null,
1076
+ column: null
1077
+ };
1078
+ };
1079
+ IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
1080
+ this.__generatedMappings = [];
1081
+ this.__originalMappings = [];
1082
+ for(var i = 0; i < this._sections.length; i++){
1083
+ var section = this._sections[i];
1084
+ var sectionMappings = section.consumer._generatedMappings;
1085
+ for(var j = 0; j < sectionMappings.length; j++){
1086
+ var mapping = sectionMappings[j];
1087
+ var source = section.consumer._sources.at(mapping.source);
1088
+ source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
1089
+ this._sources.add(source);
1090
+ source = this._sources.indexOf(source);
1091
+ var name = null;
1092
+ if (mapping.name) {
1093
+ name = section.consumer._names.at(mapping.name);
1094
+ this._names.add(name);
1095
+ name = this._names.indexOf(name);
1096
+ }
1097
+ var adjustedMapping = {
1098
+ source: source,
1099
+ generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
1100
+ generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
1101
+ originalLine: mapping.originalLine,
1102
+ originalColumn: mapping.originalColumn,
1103
+ name: name
1104
+ };
1105
+ this.__generatedMappings.push(adjustedMapping);
1106
+ if ('number' == typeof adjustedMapping.originalLine) this.__originalMappings.push(adjustedMapping);
1107
+ }
1108
+ }
1109
+ quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
1110
+ quickSort(this.__originalMappings, util.compareByOriginalPositions);
1111
+ };
1112
+ },
1113
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js" (__unused_rspack_module, exports, __webpack_require__) {
1114
+ var base64VLQ = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js");
1115
+ var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
1116
+ var ArraySet = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js").ArraySet;
1117
+ var MappingList = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js").MappingList;
1118
+ function SourceMapGenerator(aArgs) {
1119
+ if (!aArgs) aArgs = {};
1120
+ this._file = util.getArg(aArgs, 'file', null);
1121
+ this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null);
1122
+ this._skipValidation = util.getArg(aArgs, 'skipValidation', false);
1123
+ this._sources = new ArraySet();
1124
+ this._names = new ArraySet();
1125
+ this._mappings = new MappingList();
1126
+ this._sourcesContents = null;
1127
+ }
1128
+ SourceMapGenerator.prototype._version = 3;
1129
+ SourceMapGenerator.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
1130
+ var sourceRoot = aSourceMapConsumer.sourceRoot;
1131
+ var generator = new SourceMapGenerator({
1132
+ file: aSourceMapConsumer.file,
1133
+ sourceRoot: sourceRoot
1134
+ });
1135
+ aSourceMapConsumer.eachMapping(function(mapping) {
1136
+ var newMapping = {
1137
+ generated: {
1138
+ line: mapping.generatedLine,
1139
+ column: mapping.generatedColumn
1140
+ }
1141
+ };
1142
+ if (null != mapping.source) {
1143
+ newMapping.source = mapping.source;
1144
+ if (null != sourceRoot) newMapping.source = util.relative(sourceRoot, newMapping.source);
1145
+ newMapping.original = {
1146
+ line: mapping.originalLine,
1147
+ column: mapping.originalColumn
1148
+ };
1149
+ if (null != mapping.name) newMapping.name = mapping.name;
1150
+ }
1151
+ generator.addMapping(newMapping);
1152
+ });
1153
+ aSourceMapConsumer.sources.forEach(function(sourceFile) {
1154
+ var sourceRelative = sourceFile;
1155
+ if (null !== sourceRoot) sourceRelative = util.relative(sourceRoot, sourceFile);
1156
+ if (!generator._sources.has(sourceRelative)) generator._sources.add(sourceRelative);
1157
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
1158
+ if (null != content) generator.setSourceContent(sourceFile, content);
1159
+ });
1160
+ return generator;
1161
+ };
1162
+ SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) {
1163
+ var generated = util.getArg(aArgs, 'generated');
1164
+ var original = util.getArg(aArgs, 'original', null);
1165
+ var source = util.getArg(aArgs, 'source', null);
1166
+ var name = util.getArg(aArgs, 'name', null);
1167
+ if (!this._skipValidation) this._validateMapping(generated, original, source, name);
1168
+ if (null != source) {
1169
+ source = String(source);
1170
+ if (!this._sources.has(source)) this._sources.add(source);
1171
+ }
1172
+ if (null != name) {
1173
+ name = String(name);
1174
+ if (!this._names.has(name)) this._names.add(name);
1175
+ }
1176
+ this._mappings.add({
1177
+ generatedLine: generated.line,
1178
+ generatedColumn: generated.column,
1179
+ originalLine: null != original && original.line,
1180
+ originalColumn: null != original && original.column,
1181
+ source: source,
1182
+ name: name
1183
+ });
1184
+ };
1185
+ SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
1186
+ var source = aSourceFile;
1187
+ if (null != this._sourceRoot) source = util.relative(this._sourceRoot, source);
1188
+ if (null != aSourceContent) {
1189
+ if (!this._sourcesContents) this._sourcesContents = Object.create(null);
1190
+ this._sourcesContents[util.toSetString(source)] = aSourceContent;
1191
+ } else if (this._sourcesContents) {
1192
+ delete this._sourcesContents[util.toSetString(source)];
1193
+ if (0 === Object.keys(this._sourcesContents).length) this._sourcesContents = null;
1194
+ }
1195
+ };
1196
+ SourceMapGenerator.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
1197
+ var sourceFile = aSourceFile;
1198
+ if (null == aSourceFile) {
1199
+ if (null == aSourceMapConsumer.file) throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');
1200
+ sourceFile = aSourceMapConsumer.file;
1201
+ }
1202
+ var sourceRoot = this._sourceRoot;
1203
+ if (null != sourceRoot) sourceFile = util.relative(sourceRoot, sourceFile);
1204
+ var newSources = new ArraySet();
1205
+ var newNames = new ArraySet();
1206
+ this._mappings.unsortedForEach(function(mapping) {
1207
+ if (mapping.source === sourceFile && null != mapping.originalLine) {
1208
+ var original = aSourceMapConsumer.originalPositionFor({
1209
+ line: mapping.originalLine,
1210
+ column: mapping.originalColumn
1211
+ });
1212
+ if (null != original.source) {
1213
+ mapping.source = original.source;
1214
+ if (null != aSourceMapPath) mapping.source = util.join(aSourceMapPath, mapping.source);
1215
+ if (null != sourceRoot) mapping.source = util.relative(sourceRoot, mapping.source);
1216
+ mapping.originalLine = original.line;
1217
+ mapping.originalColumn = original.column;
1218
+ if (null != original.name) mapping.name = original.name;
1219
+ }
1220
+ }
1221
+ var source = mapping.source;
1222
+ if (null != source && !newSources.has(source)) newSources.add(source);
1223
+ var name = mapping.name;
1224
+ if (null != name && !newNames.has(name)) newNames.add(name);
1225
+ }, this);
1226
+ this._sources = newSources;
1227
+ this._names = newNames;
1228
+ aSourceMapConsumer.sources.forEach(function(sourceFile) {
1229
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
1230
+ if (null != content) {
1231
+ if (null != aSourceMapPath) sourceFile = util.join(aSourceMapPath, sourceFile);
1232
+ if (null != sourceRoot) sourceFile = util.relative(sourceRoot, sourceFile);
1233
+ this.setSourceContent(sourceFile, content);
1234
+ }
1235
+ }, this);
1236
+ };
1237
+ SourceMapGenerator.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
1238
+ if (aOriginal && 'number' != typeof aOriginal.line && 'number' != typeof aOriginal.column) throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");
1239
+ if (aGenerated && 'line' in aGenerated && 'column' in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) return;
1240
+ if (aGenerated && 'line' in aGenerated && 'column' in aGenerated && aOriginal && 'line' in aOriginal && 'column' in aOriginal && aGenerated.line > 0 && aGenerated.column >= 0 && aOriginal.line > 0 && aOriginal.column >= 0 && aSource) return;
1241
+ throw new Error('Invalid mapping: ' + JSON.stringify({
1242
+ generated: aGenerated,
1243
+ source: aSource,
1244
+ original: aOriginal,
1245
+ name: aName
1246
+ }));
1247
+ };
1248
+ SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
1249
+ var previousGeneratedColumn = 0;
1250
+ var previousGeneratedLine = 1;
1251
+ var previousOriginalColumn = 0;
1252
+ var previousOriginalLine = 0;
1253
+ var previousName = 0;
1254
+ var previousSource = 0;
1255
+ var result = '';
1256
+ var next;
1257
+ var mapping;
1258
+ var nameIdx;
1259
+ var sourceIdx;
1260
+ var mappings = this._mappings.toArray();
1261
+ for(var i = 0, len = mappings.length; i < len; i++){
1262
+ mapping = mappings[i];
1263
+ next = '';
1264
+ if (mapping.generatedLine !== previousGeneratedLine) {
1265
+ previousGeneratedColumn = 0;
1266
+ while(mapping.generatedLine !== previousGeneratedLine){
1267
+ next += ';';
1268
+ previousGeneratedLine++;
1269
+ }
1270
+ } else if (i > 0) {
1271
+ if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) continue;
1272
+ next += ',';
1273
+ }
1274
+ next += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn);
1275
+ previousGeneratedColumn = mapping.generatedColumn;
1276
+ if (null != mapping.source) {
1277
+ sourceIdx = this._sources.indexOf(mapping.source);
1278
+ next += base64VLQ.encode(sourceIdx - previousSource);
1279
+ previousSource = sourceIdx;
1280
+ next += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine);
1281
+ previousOriginalLine = mapping.originalLine - 1;
1282
+ next += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn);
1283
+ previousOriginalColumn = mapping.originalColumn;
1284
+ if (null != mapping.name) {
1285
+ nameIdx = this._names.indexOf(mapping.name);
1286
+ next += base64VLQ.encode(nameIdx - previousName);
1287
+ previousName = nameIdx;
1288
+ }
1289
+ }
1290
+ result += next;
1291
+ }
1292
+ return result;
1293
+ };
1294
+ SourceMapGenerator.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
1295
+ return aSources.map(function(source) {
1296
+ if (!this._sourcesContents) return null;
1297
+ if (null != aSourceRoot) source = util.relative(aSourceRoot, source);
1298
+ var key = util.toSetString(source);
1299
+ return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null;
1300
+ }, this);
1301
+ };
1302
+ SourceMapGenerator.prototype.toJSON = function SourceMapGenerator_toJSON() {
1303
+ var map = {
1304
+ version: this._version,
1305
+ sources: this._sources.toArray(),
1306
+ names: this._names.toArray(),
1307
+ mappings: this._serializeMappings()
1308
+ };
1309
+ if (null != this._file) map.file = this._file;
1310
+ if (null != this._sourceRoot) map.sourceRoot = this._sourceRoot;
1311
+ if (this._sourcesContents) map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);
1312
+ return map;
1313
+ };
1314
+ SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
1315
+ return JSON.stringify(this.toJSON());
1316
+ };
1317
+ exports.SourceMapGenerator = SourceMapGenerator;
1318
+ },
1319
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js" (__unused_rspack_module, exports, __webpack_require__) {
1320
+ var SourceMapGenerator = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator;
1321
+ var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
1322
+ var REGEX_NEWLINE = /(\r?\n)/;
1323
+ var NEWLINE_CODE = 10;
1324
+ var isSourceNode = "$$$isSourceNode$$$";
1325
+ function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
1326
+ this.children = [];
1327
+ this.sourceContents = {};
1328
+ this.line = null == aLine ? null : aLine;
1329
+ this.column = null == aColumn ? null : aColumn;
1330
+ this.source = null == aSource ? null : aSource;
1331
+ this.name = null == aName ? null : aName;
1332
+ this[isSourceNode] = true;
1333
+ if (null != aChunks) this.add(aChunks);
1334
+ }
1335
+ SourceNode.fromStringWithSourceMap = function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
1336
+ var node = new SourceNode();
1337
+ var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
1338
+ var remainingLinesIndex = 0;
1339
+ var shiftNextLine = function() {
1340
+ var lineContents = getNextLine();
1341
+ var newLine = getNextLine() || "";
1342
+ return lineContents + newLine;
1343
+ function getNextLine() {
1344
+ return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : void 0;
1345
+ }
1346
+ };
1347
+ var lastGeneratedLine = 1, lastGeneratedColumn = 0;
1348
+ var lastMapping = null;
1349
+ aSourceMapConsumer.eachMapping(function(mapping) {
1350
+ if (null !== lastMapping) if (lastGeneratedLine < mapping.generatedLine) {
1351
+ addMappingWithCode(lastMapping, shiftNextLine());
1352
+ lastGeneratedLine++;
1353
+ lastGeneratedColumn = 0;
1354
+ } else {
1355
+ var nextLine = remainingLines[remainingLinesIndex] || '';
1356
+ var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
1357
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
1358
+ lastGeneratedColumn = mapping.generatedColumn;
1359
+ addMappingWithCode(lastMapping, code);
1360
+ lastMapping = mapping;
1361
+ return;
1362
+ }
1363
+ while(lastGeneratedLine < mapping.generatedLine){
1364
+ node.add(shiftNextLine());
1365
+ lastGeneratedLine++;
1366
+ }
1367
+ if (lastGeneratedColumn < mapping.generatedColumn) {
1368
+ var nextLine = remainingLines[remainingLinesIndex] || '';
1369
+ node.add(nextLine.substr(0, mapping.generatedColumn));
1370
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
1371
+ lastGeneratedColumn = mapping.generatedColumn;
1372
+ }
1373
+ lastMapping = mapping;
1374
+ }, this);
1375
+ if (remainingLinesIndex < remainingLines.length) {
1376
+ if (lastMapping) addMappingWithCode(lastMapping, shiftNextLine());
1377
+ node.add(remainingLines.splice(remainingLinesIndex).join(""));
1378
+ }
1379
+ aSourceMapConsumer.sources.forEach(function(sourceFile) {
1380
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
1381
+ if (null != content) {
1382
+ if (null != aRelativePath) sourceFile = util.join(aRelativePath, sourceFile);
1383
+ node.setSourceContent(sourceFile, content);
1384
+ }
1385
+ });
1386
+ return node;
1387
+ function addMappingWithCode(mapping, code) {
1388
+ if (null === mapping || void 0 === mapping.source) node.add(code);
1389
+ else {
1390
+ var source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source;
1391
+ node.add(new SourceNode(mapping.originalLine, mapping.originalColumn, source, code, mapping.name));
1392
+ }
1393
+ }
1394
+ };
1395
+ SourceNode.prototype.add = function SourceNode_add(aChunk) {
1396
+ if (Array.isArray(aChunk)) aChunk.forEach(function(chunk) {
1397
+ this.add(chunk);
1398
+ }, this);
1399
+ else if (aChunk[isSourceNode] || "string" == typeof aChunk) {
1400
+ if (aChunk) this.children.push(aChunk);
1401
+ } else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
1402
+ return this;
1403
+ };
1404
+ SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
1405
+ if (Array.isArray(aChunk)) for(var i = aChunk.length - 1; i >= 0; i--)this.prepend(aChunk[i]);
1406
+ else if (aChunk[isSourceNode] || "string" == typeof aChunk) this.children.unshift(aChunk);
1407
+ else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
1408
+ return this;
1409
+ };
1410
+ SourceNode.prototype.walk = function SourceNode_walk(aFn) {
1411
+ var chunk;
1412
+ for(var i = 0, len = this.children.length; i < len; i++){
1413
+ chunk = this.children[i];
1414
+ if (chunk[isSourceNode]) chunk.walk(aFn);
1415
+ else if ('' !== chunk) aFn(chunk, {
1416
+ source: this.source,
1417
+ line: this.line,
1418
+ column: this.column,
1419
+ name: this.name
1420
+ });
1421
+ }
1422
+ };
1423
+ SourceNode.prototype.join = function SourceNode_join(aSep) {
1424
+ var newChildren;
1425
+ var i;
1426
+ var len = this.children.length;
1427
+ if (len > 0) {
1428
+ newChildren = [];
1429
+ for(i = 0; i < len - 1; i++){
1430
+ newChildren.push(this.children[i]);
1431
+ newChildren.push(aSep);
1432
+ }
1433
+ newChildren.push(this.children[i]);
1434
+ this.children = newChildren;
1435
+ }
1436
+ return this;
1437
+ };
1438
+ SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
1439
+ var lastChild = this.children[this.children.length - 1];
1440
+ if (lastChild[isSourceNode]) lastChild.replaceRight(aPattern, aReplacement);
1441
+ else if ('string' == typeof lastChild) this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
1442
+ else this.children.push(''.replace(aPattern, aReplacement));
1443
+ return this;
1444
+ };
1445
+ SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
1446
+ this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
1447
+ };
1448
+ SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents(aFn) {
1449
+ for(var i = 0, len = this.children.length; i < len; i++)if (this.children[i][isSourceNode]) this.children[i].walkSourceContents(aFn);
1450
+ var sources = Object.keys(this.sourceContents);
1451
+ for(var i = 0, len = sources.length; i < len; i++)aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
1452
+ };
1453
+ SourceNode.prototype.toString = function SourceNode_toString() {
1454
+ var str = "";
1455
+ this.walk(function(chunk) {
1456
+ str += chunk;
1457
+ });
1458
+ return str;
1459
+ };
1460
+ SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
1461
+ var generated = {
1462
+ code: "",
1463
+ line: 1,
1464
+ column: 0
1465
+ };
1466
+ var map = new SourceMapGenerator(aArgs);
1467
+ var sourceMappingActive = false;
1468
+ var lastOriginalSource = null;
1469
+ var lastOriginalLine = null;
1470
+ var lastOriginalColumn = null;
1471
+ var lastOriginalName = null;
1472
+ this.walk(function(chunk, original) {
1473
+ generated.code += chunk;
1474
+ if (null !== original.source && null !== original.line && null !== original.column) {
1475
+ if (lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) map.addMapping({
1476
+ source: original.source,
1477
+ original: {
1478
+ line: original.line,
1479
+ column: original.column
1480
+ },
1481
+ generated: {
1482
+ line: generated.line,
1483
+ column: generated.column
1484
+ },
1485
+ name: original.name
1486
+ });
1487
+ lastOriginalSource = original.source;
1488
+ lastOriginalLine = original.line;
1489
+ lastOriginalColumn = original.column;
1490
+ lastOriginalName = original.name;
1491
+ sourceMappingActive = true;
1492
+ } else if (sourceMappingActive) {
1493
+ map.addMapping({
1494
+ generated: {
1495
+ line: generated.line,
1496
+ column: generated.column
1497
+ }
1498
+ });
1499
+ lastOriginalSource = null;
1500
+ sourceMappingActive = false;
1501
+ }
1502
+ for(var idx = 0, length = chunk.length; idx < length; idx++)if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
1503
+ generated.line++;
1504
+ generated.column = 0;
1505
+ if (idx + 1 === length) {
1506
+ lastOriginalSource = null;
1507
+ sourceMappingActive = false;
1508
+ } else if (sourceMappingActive) map.addMapping({
1509
+ source: original.source,
1510
+ original: {
1511
+ line: original.line,
1512
+ column: original.column
1513
+ },
1514
+ generated: {
1515
+ line: generated.line,
1516
+ column: generated.column
1517
+ },
1518
+ name: original.name
1519
+ });
1520
+ } else generated.column++;
1521
+ });
1522
+ this.walkSourceContents(function(sourceFile, sourceContent) {
1523
+ map.setSourceContent(sourceFile, sourceContent);
1524
+ });
1525
+ return {
1526
+ code: generated.code,
1527
+ map: map
1528
+ };
1529
+ };
1530
+ },
1531
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js" (__unused_rspack_module, exports) {
1532
+ function getArg(aArgs, aName, aDefaultValue) {
1533
+ if (aName in aArgs) return aArgs[aName];
1534
+ if (3 === arguments.length) return aDefaultValue;
1535
+ throw new Error('"' + aName + '" is a required argument.');
1536
+ }
1537
+ exports.getArg = getArg;
1538
+ var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
1539
+ var dataUrlRegexp = /^data:.+\,.+$/;
1540
+ function urlParse(aUrl) {
1541
+ var match = aUrl.match(urlRegexp);
1542
+ if (!match) return null;
1543
+ return {
1544
+ scheme: match[1],
1545
+ auth: match[2],
1546
+ host: match[3],
1547
+ port: match[4],
1548
+ path: match[5]
1549
+ };
1550
+ }
1551
+ exports.urlParse = urlParse;
1552
+ function urlGenerate(aParsedUrl) {
1553
+ var url = '';
1554
+ if (aParsedUrl.scheme) url += aParsedUrl.scheme + ':';
1555
+ url += '//';
1556
+ if (aParsedUrl.auth) url += aParsedUrl.auth + '@';
1557
+ if (aParsedUrl.host) url += aParsedUrl.host;
1558
+ if (aParsedUrl.port) url += ":" + aParsedUrl.port;
1559
+ if (aParsedUrl.path) url += aParsedUrl.path;
1560
+ return url;
1561
+ }
1562
+ exports.urlGenerate = urlGenerate;
1563
+ function normalize(aPath) {
1564
+ var path = aPath;
1565
+ var url = urlParse(aPath);
1566
+ if (url) {
1567
+ if (!url.path) return aPath;
1568
+ path = url.path;
1569
+ }
1570
+ var isAbsolute = exports.isAbsolute(path);
1571
+ var parts = path.split(/\/+/);
1572
+ for(var part, up = 0, i = parts.length - 1; i >= 0; i--){
1573
+ part = parts[i];
1574
+ if ('.' === part) parts.splice(i, 1);
1575
+ else if ('..' === part) up++;
1576
+ else if (up > 0) if ('' === part) {
1577
+ parts.splice(i + 1, up);
1578
+ up = 0;
1579
+ } else {
1580
+ parts.splice(i, 2);
1581
+ up--;
1582
+ }
1583
+ }
1584
+ path = parts.join('/');
1585
+ if ('' === path) path = isAbsolute ? '/' : '.';
1586
+ if (url) {
1587
+ url.path = path;
1588
+ return urlGenerate(url);
1589
+ }
1590
+ return path;
1591
+ }
1592
+ exports.normalize = normalize;
1593
+ function join(aRoot, aPath) {
1594
+ if ("" === aRoot) aRoot = ".";
1595
+ if ("" === aPath) aPath = ".";
1596
+ var aPathUrl = urlParse(aPath);
1597
+ var aRootUrl = urlParse(aRoot);
1598
+ if (aRootUrl) aRoot = aRootUrl.path || '/';
1599
+ if (aPathUrl && !aPathUrl.scheme) {
1600
+ if (aRootUrl) aPathUrl.scheme = aRootUrl.scheme;
1601
+ return urlGenerate(aPathUrl);
1602
+ }
1603
+ if (aPathUrl || aPath.match(dataUrlRegexp)) return aPath;
1604
+ if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
1605
+ aRootUrl.host = aPath;
1606
+ return urlGenerate(aRootUrl);
1607
+ }
1608
+ var joined = '/' === aPath.charAt(0) ? aPath : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath);
1609
+ if (aRootUrl) {
1610
+ aRootUrl.path = joined;
1611
+ return urlGenerate(aRootUrl);
1612
+ }
1613
+ return joined;
1614
+ }
1615
+ exports.join = join;
1616
+ exports.isAbsolute = function(aPath) {
1617
+ return '/' === aPath.charAt(0) || urlRegexp.test(aPath);
1618
+ };
1619
+ function relative(aRoot, aPath) {
1620
+ if ("" === aRoot) aRoot = ".";
1621
+ aRoot = aRoot.replace(/\/$/, '');
1622
+ var level = 0;
1623
+ while(0 !== aPath.indexOf(aRoot + '/')){
1624
+ var index = aRoot.lastIndexOf("/");
1625
+ if (index < 0) return aPath;
1626
+ aRoot = aRoot.slice(0, index);
1627
+ if (aRoot.match(/^([^\/]+:\/)?\/*$/)) return aPath;
1628
+ ++level;
1629
+ }
1630
+ return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
1631
+ }
1632
+ exports.relative = relative;
1633
+ var supportsNullProto = function() {
1634
+ var obj = Object.create(null);
1635
+ return !('__proto__' in obj);
1636
+ }();
1637
+ function identity(s) {
1638
+ return s;
1639
+ }
1640
+ function toSetString(aStr) {
1641
+ if (isProtoString(aStr)) return '$' + aStr;
1642
+ return aStr;
1643
+ }
1644
+ exports.toSetString = supportsNullProto ? identity : toSetString;
1645
+ function fromSetString(aStr) {
1646
+ if (isProtoString(aStr)) return aStr.slice(1);
1647
+ return aStr;
1648
+ }
1649
+ exports.fromSetString = supportsNullProto ? identity : fromSetString;
1650
+ function isProtoString(s) {
1651
+ if (!s) return false;
1652
+ var length = s.length;
1653
+ if (length < 9) return false;
1654
+ if (95 !== s.charCodeAt(length - 1) || 95 !== s.charCodeAt(length - 2) || 111 !== s.charCodeAt(length - 3) || 116 !== s.charCodeAt(length - 4) || 111 !== s.charCodeAt(length - 5) || 114 !== s.charCodeAt(length - 6) || 112 !== s.charCodeAt(length - 7) || 95 !== s.charCodeAt(length - 8) || 95 !== s.charCodeAt(length - 9)) return false;
1655
+ for(var i = length - 10; i >= 0; i--)if (36 !== s.charCodeAt(i)) return false;
1656
+ return true;
1657
+ }
1658
+ function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
1659
+ var cmp = strcmp(mappingA.source, mappingB.source);
1660
+ if (0 !== cmp) return cmp;
1661
+ cmp = mappingA.originalLine - mappingB.originalLine;
1662
+ if (0 !== cmp) return cmp;
1663
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
1664
+ if (0 !== cmp || onlyCompareOriginal) return cmp;
1665
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
1666
+ if (0 !== cmp) return cmp;
1667
+ cmp = mappingA.generatedLine - mappingB.generatedLine;
1668
+ if (0 !== cmp) return cmp;
1669
+ return strcmp(mappingA.name, mappingB.name);
1670
+ }
1671
+ exports.compareByOriginalPositions = compareByOriginalPositions;
1672
+ function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
1673
+ var cmp = mappingA.generatedLine - mappingB.generatedLine;
1674
+ if (0 !== cmp) return cmp;
1675
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
1676
+ if (0 !== cmp || onlyCompareGenerated) return cmp;
1677
+ cmp = strcmp(mappingA.source, mappingB.source);
1678
+ if (0 !== cmp) return cmp;
1679
+ cmp = mappingA.originalLine - mappingB.originalLine;
1680
+ if (0 !== cmp) return cmp;
1681
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
1682
+ if (0 !== cmp) return cmp;
1683
+ return strcmp(mappingA.name, mappingB.name);
1684
+ }
1685
+ exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
1686
+ function strcmp(aStr1, aStr2) {
1687
+ if (aStr1 === aStr2) return 0;
1688
+ if (null === aStr1) return 1;
1689
+ if (null === aStr2) return -1;
1690
+ if (aStr1 > aStr2) return 1;
1691
+ return -1;
1692
+ }
1693
+ function compareByGeneratedPositionsInflated(mappingA, mappingB) {
1694
+ var cmp = mappingA.generatedLine - mappingB.generatedLine;
1695
+ if (0 !== cmp) return cmp;
1696
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
1697
+ if (0 !== cmp) return cmp;
1698
+ cmp = strcmp(mappingA.source, mappingB.source);
1699
+ if (0 !== cmp) return cmp;
1700
+ cmp = mappingA.originalLine - mappingB.originalLine;
1701
+ if (0 !== cmp) return cmp;
1702
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
1703
+ if (0 !== cmp) return cmp;
1704
+ return strcmp(mappingA.name, mappingB.name);
1705
+ }
1706
+ exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
1707
+ function parseSourceMapInput(str) {
1708
+ return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ''));
1709
+ }
1710
+ exports.parseSourceMapInput = parseSourceMapInput;
1711
+ function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
1712
+ sourceURL = sourceURL || '';
1713
+ if (sourceRoot) {
1714
+ if ('/' !== sourceRoot[sourceRoot.length - 1] && '/' !== sourceURL[0]) sourceRoot += '/';
1715
+ sourceURL = sourceRoot + sourceURL;
1716
+ }
1717
+ if (sourceMapURL) {
1718
+ var parsed = urlParse(sourceMapURL);
1719
+ if (!parsed) throw new Error("sourceMapURL could not be parsed");
1720
+ if (parsed.path) {
1721
+ var index = parsed.path.lastIndexOf('/');
1722
+ if (index >= 0) parsed.path = parsed.path.substring(0, index + 1);
1723
+ }
1724
+ sourceURL = join(urlGenerate(parsed), sourceURL);
1725
+ }
1726
+ return normalize(sourceURL);
1727
+ }
1728
+ exports.computeSourceURL = computeSourceURL;
1729
+ },
1730
+ "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js" (__unused_rspack_module, exports, __webpack_require__) {
1731
+ __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator;
1732
+ exports.SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer;
1733
+ __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js");
1734
+ }
1735
+ });
1736
+ const gracefulExit = process.execArgv.some((execArg)=>execArg.startsWith('--perf') || execArg.startsWith('--prof') || execArg.startsWith('--cpu-prof') || execArg.startsWith('--heap-prof') || execArg.startsWith('--diagnostic-dir'));
1737
+ if (gracefulExit) process.on('SIGTERM', ()=>{
1738
+ process.exit();
1739
+ });