@normed/bundle 4.5.2 → 4.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/bundles/bin/cli.js +844 -695
- package/bundles/bin/cli.js.map +4 -4
- package/bundles/esbuild-plugins/css_url_resolver.d.ts +20 -0
- package/bundles/esbuild-plugins/index.d.ts +1 -0
- package/bundles/esbuild-plugins/load_pug.d.ts +16 -0
- package/bundles/index.js +844 -695
- package/bundles/index.js.map +4 -4
- package/package.json +1 -1
package/bundles/index.js
CHANGED
|
@@ -83,54 +83,54 @@ var require_polyfills = __commonJS({
|
|
|
83
83
|
}
|
|
84
84
|
var chdir;
|
|
85
85
|
module2.exports = patch;
|
|
86
|
-
function patch(
|
|
86
|
+
function patch(fs12) {
|
|
87
87
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
88
|
-
patchLchmod(
|
|
89
|
-
}
|
|
90
|
-
if (!
|
|
91
|
-
patchLutimes(
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if (
|
|
112
|
-
|
|
88
|
+
patchLchmod(fs12);
|
|
89
|
+
}
|
|
90
|
+
if (!fs12.lutimes) {
|
|
91
|
+
patchLutimes(fs12);
|
|
92
|
+
}
|
|
93
|
+
fs12.chown = chownFix(fs12.chown);
|
|
94
|
+
fs12.fchown = chownFix(fs12.fchown);
|
|
95
|
+
fs12.lchown = chownFix(fs12.lchown);
|
|
96
|
+
fs12.chmod = chmodFix(fs12.chmod);
|
|
97
|
+
fs12.fchmod = chmodFix(fs12.fchmod);
|
|
98
|
+
fs12.lchmod = chmodFix(fs12.lchmod);
|
|
99
|
+
fs12.chownSync = chownFixSync(fs12.chownSync);
|
|
100
|
+
fs12.fchownSync = chownFixSync(fs12.fchownSync);
|
|
101
|
+
fs12.lchownSync = chownFixSync(fs12.lchownSync);
|
|
102
|
+
fs12.chmodSync = chmodFixSync(fs12.chmodSync);
|
|
103
|
+
fs12.fchmodSync = chmodFixSync(fs12.fchmodSync);
|
|
104
|
+
fs12.lchmodSync = chmodFixSync(fs12.lchmodSync);
|
|
105
|
+
fs12.stat = statFix(fs12.stat);
|
|
106
|
+
fs12.fstat = statFix(fs12.fstat);
|
|
107
|
+
fs12.lstat = statFix(fs12.lstat);
|
|
108
|
+
fs12.statSync = statFixSync(fs12.statSync);
|
|
109
|
+
fs12.fstatSync = statFixSync(fs12.fstatSync);
|
|
110
|
+
fs12.lstatSync = statFixSync(fs12.lstatSync);
|
|
111
|
+
if (fs12.chmod && !fs12.lchmod) {
|
|
112
|
+
fs12.lchmod = function(path13, mode, cb) {
|
|
113
113
|
if (cb) process.nextTick(cb);
|
|
114
114
|
};
|
|
115
|
-
|
|
115
|
+
fs12.lchmodSync = function() {
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
if (
|
|
119
|
-
|
|
118
|
+
if (fs12.chown && !fs12.lchown) {
|
|
119
|
+
fs12.lchown = function(path13, uid, gid, cb) {
|
|
120
120
|
if (cb) process.nextTick(cb);
|
|
121
121
|
};
|
|
122
|
-
|
|
122
|
+
fs12.lchownSync = function() {
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
if (platform === "win32") {
|
|
126
|
-
|
|
126
|
+
fs12.rename = typeof fs12.rename !== "function" ? fs12.rename : function(fs$rename) {
|
|
127
127
|
function rename(from, to, cb) {
|
|
128
128
|
var start = Date.now();
|
|
129
129
|
var backoff = 0;
|
|
130
130
|
fs$rename(from, to, function CB(er) {
|
|
131
131
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
132
132
|
setTimeout(function() {
|
|
133
|
-
|
|
133
|
+
fs12.stat(to, function(stater, st) {
|
|
134
134
|
if (stater && stater.code === "ENOENT")
|
|
135
135
|
fs$rename(from, to, CB);
|
|
136
136
|
else
|
|
@@ -146,9 +146,9 @@ var require_polyfills = __commonJS({
|
|
|
146
146
|
}
|
|
147
147
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
148
148
|
return rename;
|
|
149
|
-
}(
|
|
149
|
+
}(fs12.rename);
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
fs12.read = typeof fs12.read !== "function" ? fs12.read : function(fs$read) {
|
|
152
152
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
153
153
|
var callback;
|
|
154
154
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -156,22 +156,22 @@ var require_polyfills = __commonJS({
|
|
|
156
156
|
callback = function(er, _, __) {
|
|
157
157
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
158
158
|
eagCounter++;
|
|
159
|
-
return fs$read.call(
|
|
159
|
+
return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
|
|
160
160
|
}
|
|
161
161
|
callback_.apply(this, arguments);
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
return fs$read.call(
|
|
164
|
+
return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
|
|
165
165
|
}
|
|
166
166
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
167
167
|
return read;
|
|
168
|
-
}(
|
|
169
|
-
|
|
168
|
+
}(fs12.read);
|
|
169
|
+
fs12.readSync = typeof fs12.readSync !== "function" ? fs12.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
170
170
|
return function(fd, buffer, offset, length, position) {
|
|
171
171
|
var eagCounter = 0;
|
|
172
172
|
while (true) {
|
|
173
173
|
try {
|
|
174
|
-
return fs$readSync.call(
|
|
174
|
+
return fs$readSync.call(fs12, fd, buffer, offset, length, position);
|
|
175
175
|
} catch (er) {
|
|
176
176
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
177
177
|
eagCounter++;
|
|
@@ -181,11 +181,11 @@ var require_polyfills = __commonJS({
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
|
-
}(
|
|
185
|
-
function patchLchmod(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
184
|
+
}(fs12.readSync);
|
|
185
|
+
function patchLchmod(fs13) {
|
|
186
|
+
fs13.lchmod = function(path13, mode, callback) {
|
|
187
|
+
fs13.open(
|
|
188
|
+
path13,
|
|
189
189
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
190
190
|
mode,
|
|
191
191
|
function(err, fd) {
|
|
@@ -193,80 +193,80 @@ var require_polyfills = __commonJS({
|
|
|
193
193
|
if (callback) callback(err);
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
fs13.fchmod(fd, mode, function(err2) {
|
|
197
|
+
fs13.close(fd, function(err22) {
|
|
198
198
|
if (callback) callback(err2 || err22);
|
|
199
199
|
});
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
203
|
};
|
|
204
|
-
|
|
205
|
-
var fd =
|
|
204
|
+
fs13.lchmodSync = function(path13, mode) {
|
|
205
|
+
var fd = fs13.openSync(path13, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
206
206
|
var threw = true;
|
|
207
207
|
var ret;
|
|
208
208
|
try {
|
|
209
|
-
ret =
|
|
209
|
+
ret = fs13.fchmodSync(fd, mode);
|
|
210
210
|
threw = false;
|
|
211
211
|
} finally {
|
|
212
212
|
if (threw) {
|
|
213
213
|
try {
|
|
214
|
-
|
|
214
|
+
fs13.closeSync(fd);
|
|
215
215
|
} catch (er) {
|
|
216
216
|
}
|
|
217
217
|
} else {
|
|
218
|
-
|
|
218
|
+
fs13.closeSync(fd);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
return ret;
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
function patchLutimes(
|
|
225
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
226
|
-
|
|
227
|
-
|
|
224
|
+
function patchLutimes(fs13) {
|
|
225
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs13.futimes) {
|
|
226
|
+
fs13.lutimes = function(path13, at, mt, cb) {
|
|
227
|
+
fs13.open(path13, constants.O_SYMLINK, function(er, fd) {
|
|
228
228
|
if (er) {
|
|
229
229
|
if (cb) cb(er);
|
|
230
230
|
return;
|
|
231
231
|
}
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
fs13.futimes(fd, at, mt, function(er2) {
|
|
233
|
+
fs13.close(fd, function(er22) {
|
|
234
234
|
if (cb) cb(er2 || er22);
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
237
|
});
|
|
238
238
|
};
|
|
239
|
-
|
|
240
|
-
var fd =
|
|
239
|
+
fs13.lutimesSync = function(path13, at, mt) {
|
|
240
|
+
var fd = fs13.openSync(path13, constants.O_SYMLINK);
|
|
241
241
|
var ret;
|
|
242
242
|
var threw = true;
|
|
243
243
|
try {
|
|
244
|
-
ret =
|
|
244
|
+
ret = fs13.futimesSync(fd, at, mt);
|
|
245
245
|
threw = false;
|
|
246
246
|
} finally {
|
|
247
247
|
if (threw) {
|
|
248
248
|
try {
|
|
249
|
-
|
|
249
|
+
fs13.closeSync(fd);
|
|
250
250
|
} catch (er) {
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
|
-
|
|
253
|
+
fs13.closeSync(fd);
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
return ret;
|
|
257
257
|
};
|
|
258
|
-
} else if (
|
|
259
|
-
|
|
258
|
+
} else if (fs13.futimes) {
|
|
259
|
+
fs13.lutimes = function(_a, _b, _c, cb) {
|
|
260
260
|
if (cb) process.nextTick(cb);
|
|
261
261
|
};
|
|
262
|
-
|
|
262
|
+
fs13.lutimesSync = function() {
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
function chmodFix(orig) {
|
|
267
267
|
if (!orig) return orig;
|
|
268
268
|
return function(target, mode, cb) {
|
|
269
|
-
return orig.call(
|
|
269
|
+
return orig.call(fs12, target, mode, function(er) {
|
|
270
270
|
if (chownErOk(er)) er = null;
|
|
271
271
|
if (cb) cb.apply(this, arguments);
|
|
272
272
|
});
|
|
@@ -276,7 +276,7 @@ var require_polyfills = __commonJS({
|
|
|
276
276
|
if (!orig) return orig;
|
|
277
277
|
return function(target, mode) {
|
|
278
278
|
try {
|
|
279
|
-
return orig.call(
|
|
279
|
+
return orig.call(fs12, target, mode);
|
|
280
280
|
} catch (er) {
|
|
281
281
|
if (!chownErOk(er)) throw er;
|
|
282
282
|
}
|
|
@@ -285,7 +285,7 @@ var require_polyfills = __commonJS({
|
|
|
285
285
|
function chownFix(orig) {
|
|
286
286
|
if (!orig) return orig;
|
|
287
287
|
return function(target, uid, gid, cb) {
|
|
288
|
-
return orig.call(
|
|
288
|
+
return orig.call(fs12, target, uid, gid, function(er) {
|
|
289
289
|
if (chownErOk(er)) er = null;
|
|
290
290
|
if (cb) cb.apply(this, arguments);
|
|
291
291
|
});
|
|
@@ -295,7 +295,7 @@ var require_polyfills = __commonJS({
|
|
|
295
295
|
if (!orig) return orig;
|
|
296
296
|
return function(target, uid, gid) {
|
|
297
297
|
try {
|
|
298
|
-
return orig.call(
|
|
298
|
+
return orig.call(fs12, target, uid, gid);
|
|
299
299
|
} catch (er) {
|
|
300
300
|
if (!chownErOk(er)) throw er;
|
|
301
301
|
}
|
|
@@ -315,13 +315,13 @@ var require_polyfills = __commonJS({
|
|
|
315
315
|
}
|
|
316
316
|
if (cb) cb.apply(this, arguments);
|
|
317
317
|
}
|
|
318
|
-
return options ? orig.call(
|
|
318
|
+
return options ? orig.call(fs12, target, options, callback) : orig.call(fs12, target, callback);
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
function statFixSync(orig) {
|
|
322
322
|
if (!orig) return orig;
|
|
323
323
|
return function(target, options) {
|
|
324
|
-
var stats = options ? orig.call(
|
|
324
|
+
var stats = options ? orig.call(fs12, target, options) : orig.call(fs12, target);
|
|
325
325
|
if (stats) {
|
|
326
326
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
327
327
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -350,16 +350,16 @@ var require_legacy_streams = __commonJS({
|
|
|
350
350
|
"pnp:/builds/normed/bundle/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-bf152d0ed1.zip/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
351
351
|
var Stream = require("stream").Stream;
|
|
352
352
|
module2.exports = legacy;
|
|
353
|
-
function legacy(
|
|
353
|
+
function legacy(fs12) {
|
|
354
354
|
return {
|
|
355
355
|
ReadStream,
|
|
356
356
|
WriteStream
|
|
357
357
|
};
|
|
358
|
-
function ReadStream(
|
|
359
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
358
|
+
function ReadStream(path13, options) {
|
|
359
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path13, options);
|
|
360
360
|
Stream.call(this);
|
|
361
361
|
var self2 = this;
|
|
362
|
-
this.path =
|
|
362
|
+
this.path = path13;
|
|
363
363
|
this.fd = null;
|
|
364
364
|
this.readable = true;
|
|
365
365
|
this.paused = false;
|
|
@@ -393,7 +393,7 @@ var require_legacy_streams = __commonJS({
|
|
|
393
393
|
});
|
|
394
394
|
return;
|
|
395
395
|
}
|
|
396
|
-
|
|
396
|
+
fs12.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
397
397
|
if (err) {
|
|
398
398
|
self2.emit("error", err);
|
|
399
399
|
self2.readable = false;
|
|
@@ -404,10 +404,10 @@ var require_legacy_streams = __commonJS({
|
|
|
404
404
|
self2._read();
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
function WriteStream(
|
|
408
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
407
|
+
function WriteStream(path13, options) {
|
|
408
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path13, options);
|
|
409
409
|
Stream.call(this);
|
|
410
|
-
this.path =
|
|
410
|
+
this.path = path13;
|
|
411
411
|
this.fd = null;
|
|
412
412
|
this.writable = true;
|
|
413
413
|
this.flags = "w";
|
|
@@ -432,7 +432,7 @@ var require_legacy_streams = __commonJS({
|
|
|
432
432
|
this.busy = false;
|
|
433
433
|
this._queue = [];
|
|
434
434
|
if (this.fd === null) {
|
|
435
|
-
this._open =
|
|
435
|
+
this._open = fs12.open;
|
|
436
436
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
437
437
|
this.flush();
|
|
438
438
|
}
|
|
@@ -467,7 +467,7 @@ var require_clone = __commonJS({
|
|
|
467
467
|
// pnp:/builds/normed/bundle/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-bf152d0ed1.zip/node_modules/graceful-fs/graceful-fs.js
|
|
468
468
|
var require_graceful_fs = __commonJS({
|
|
469
469
|
"pnp:/builds/normed/bundle/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-bf152d0ed1.zip/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
470
|
-
var
|
|
470
|
+
var fs12 = require("fs");
|
|
471
471
|
var polyfills = require_polyfills();
|
|
472
472
|
var legacy = require_legacy_streams();
|
|
473
473
|
var clone = require_clone();
|
|
@@ -499,12 +499,12 @@ var require_graceful_fs = __commonJS({
|
|
|
499
499
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
500
500
|
console.error(m);
|
|
501
501
|
};
|
|
502
|
-
if (!
|
|
502
|
+
if (!fs12[gracefulQueue]) {
|
|
503
503
|
queue = global[gracefulQueue] || [];
|
|
504
|
-
publishQueue(
|
|
505
|
-
|
|
504
|
+
publishQueue(fs12, queue);
|
|
505
|
+
fs12.close = function(fs$close) {
|
|
506
506
|
function close(fd, cb) {
|
|
507
|
-
return fs$close.call(
|
|
507
|
+
return fs$close.call(fs12, fd, function(err) {
|
|
508
508
|
if (!err) {
|
|
509
509
|
resetQueue();
|
|
510
510
|
}
|
|
@@ -516,48 +516,48 @@ var require_graceful_fs = __commonJS({
|
|
|
516
516
|
value: fs$close
|
|
517
517
|
});
|
|
518
518
|
return close;
|
|
519
|
-
}(
|
|
520
|
-
|
|
519
|
+
}(fs12.close);
|
|
520
|
+
fs12.closeSync = function(fs$closeSync) {
|
|
521
521
|
function closeSync(fd) {
|
|
522
|
-
fs$closeSync.apply(
|
|
522
|
+
fs$closeSync.apply(fs12, arguments);
|
|
523
523
|
resetQueue();
|
|
524
524
|
}
|
|
525
525
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
526
526
|
value: fs$closeSync
|
|
527
527
|
});
|
|
528
528
|
return closeSync;
|
|
529
|
-
}(
|
|
529
|
+
}(fs12.closeSync);
|
|
530
530
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
531
531
|
process.on("exit", function() {
|
|
532
|
-
debug(
|
|
533
|
-
require("assert").equal(
|
|
532
|
+
debug(fs12[gracefulQueue]);
|
|
533
|
+
require("assert").equal(fs12[gracefulQueue].length, 0);
|
|
534
534
|
});
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
var queue;
|
|
538
538
|
if (!global[gracefulQueue]) {
|
|
539
|
-
publishQueue(global,
|
|
540
|
-
}
|
|
541
|
-
module2.exports = patch(clone(
|
|
542
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
543
|
-
module2.exports = patch(
|
|
544
|
-
|
|
545
|
-
}
|
|
546
|
-
function patch(
|
|
547
|
-
polyfills(
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
var fs$readFile =
|
|
552
|
-
|
|
553
|
-
function readFile(
|
|
539
|
+
publishQueue(global, fs12[gracefulQueue]);
|
|
540
|
+
}
|
|
541
|
+
module2.exports = patch(clone(fs12));
|
|
542
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs12.__patched) {
|
|
543
|
+
module2.exports = patch(fs12);
|
|
544
|
+
fs12.__patched = true;
|
|
545
|
+
}
|
|
546
|
+
function patch(fs13) {
|
|
547
|
+
polyfills(fs13);
|
|
548
|
+
fs13.gracefulify = patch;
|
|
549
|
+
fs13.createReadStream = createReadStream;
|
|
550
|
+
fs13.createWriteStream = createWriteStream;
|
|
551
|
+
var fs$readFile = fs13.readFile;
|
|
552
|
+
fs13.readFile = readFile;
|
|
553
|
+
function readFile(path13, options, cb) {
|
|
554
554
|
if (typeof options === "function")
|
|
555
555
|
cb = options, options = null;
|
|
556
|
-
return go$readFile(
|
|
557
|
-
function go$readFile(
|
|
558
|
-
return fs$readFile(
|
|
556
|
+
return go$readFile(path13, options, cb);
|
|
557
|
+
function go$readFile(path14, options2, cb2, startTime) {
|
|
558
|
+
return fs$readFile(path14, options2, function(err) {
|
|
559
559
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
560
|
-
enqueue([go$readFile, [
|
|
560
|
+
enqueue([go$readFile, [path14, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
561
561
|
else {
|
|
562
562
|
if (typeof cb2 === "function")
|
|
563
563
|
cb2.apply(this, arguments);
|
|
@@ -565,16 +565,16 @@ var require_graceful_fs = __commonJS({
|
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
var fs$writeFile =
|
|
569
|
-
|
|
570
|
-
function writeFile(
|
|
568
|
+
var fs$writeFile = fs13.writeFile;
|
|
569
|
+
fs13.writeFile = writeFile;
|
|
570
|
+
function writeFile(path13, data, options, cb) {
|
|
571
571
|
if (typeof options === "function")
|
|
572
572
|
cb = options, options = null;
|
|
573
|
-
return go$writeFile(
|
|
574
|
-
function go$writeFile(
|
|
575
|
-
return fs$writeFile(
|
|
573
|
+
return go$writeFile(path13, data, options, cb);
|
|
574
|
+
function go$writeFile(path14, data2, options2, cb2, startTime) {
|
|
575
|
+
return fs$writeFile(path14, data2, options2, function(err) {
|
|
576
576
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
577
|
-
enqueue([go$writeFile, [
|
|
577
|
+
enqueue([go$writeFile, [path14, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
578
578
|
else {
|
|
579
579
|
if (typeof cb2 === "function")
|
|
580
580
|
cb2.apply(this, arguments);
|
|
@@ -582,17 +582,17 @@ var require_graceful_fs = __commonJS({
|
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
var fs$appendFile =
|
|
585
|
+
var fs$appendFile = fs13.appendFile;
|
|
586
586
|
if (fs$appendFile)
|
|
587
|
-
|
|
588
|
-
function appendFile(
|
|
587
|
+
fs13.appendFile = appendFile;
|
|
588
|
+
function appendFile(path13, data, options, cb) {
|
|
589
589
|
if (typeof options === "function")
|
|
590
590
|
cb = options, options = null;
|
|
591
|
-
return go$appendFile(
|
|
592
|
-
function go$appendFile(
|
|
593
|
-
return fs$appendFile(
|
|
591
|
+
return go$appendFile(path13, data, options, cb);
|
|
592
|
+
function go$appendFile(path14, data2, options2, cb2, startTime) {
|
|
593
|
+
return fs$appendFile(path14, data2, options2, function(err) {
|
|
594
594
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
595
|
-
enqueue([go$appendFile, [
|
|
595
|
+
enqueue([go$appendFile, [path14, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
596
596
|
else {
|
|
597
597
|
if (typeof cb2 === "function")
|
|
598
598
|
cb2.apply(this, arguments);
|
|
@@ -600,9 +600,9 @@ var require_graceful_fs = __commonJS({
|
|
|
600
600
|
});
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
var fs$copyFile =
|
|
603
|
+
var fs$copyFile = fs13.copyFile;
|
|
604
604
|
if (fs$copyFile)
|
|
605
|
-
|
|
605
|
+
fs13.copyFile = copyFile;
|
|
606
606
|
function copyFile(src, dest, flags, cb) {
|
|
607
607
|
if (typeof flags === "function") {
|
|
608
608
|
cb = flags;
|
|
@@ -620,34 +620,34 @@ var require_graceful_fs = __commonJS({
|
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
var fs$readdir =
|
|
624
|
-
|
|
623
|
+
var fs$readdir = fs13.readdir;
|
|
624
|
+
fs13.readdir = readdir;
|
|
625
625
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
626
|
-
function readdir(
|
|
626
|
+
function readdir(path13, options, cb) {
|
|
627
627
|
if (typeof options === "function")
|
|
628
628
|
cb = options, options = null;
|
|
629
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
630
|
-
return fs$readdir(
|
|
631
|
-
|
|
629
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path14, options2, cb2, startTime) {
|
|
630
|
+
return fs$readdir(path14, fs$readdirCallback(
|
|
631
|
+
path14,
|
|
632
632
|
options2,
|
|
633
633
|
cb2,
|
|
634
634
|
startTime
|
|
635
635
|
));
|
|
636
|
-
} : function go$readdir2(
|
|
637
|
-
return fs$readdir(
|
|
638
|
-
|
|
636
|
+
} : function go$readdir2(path14, options2, cb2, startTime) {
|
|
637
|
+
return fs$readdir(path14, options2, fs$readdirCallback(
|
|
638
|
+
path14,
|
|
639
639
|
options2,
|
|
640
640
|
cb2,
|
|
641
641
|
startTime
|
|
642
642
|
));
|
|
643
643
|
};
|
|
644
|
-
return go$readdir(
|
|
645
|
-
function fs$readdirCallback(
|
|
644
|
+
return go$readdir(path13, options, cb);
|
|
645
|
+
function fs$readdirCallback(path14, options2, cb2, startTime) {
|
|
646
646
|
return function(err, files) {
|
|
647
647
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
648
648
|
enqueue([
|
|
649
649
|
go$readdir,
|
|
650
|
-
[
|
|
650
|
+
[path14, options2, cb2],
|
|
651
651
|
err,
|
|
652
652
|
startTime || Date.now(),
|
|
653
653
|
Date.now()
|
|
@@ -662,21 +662,21 @@ var require_graceful_fs = __commonJS({
|
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
665
|
-
var legStreams = legacy(
|
|
665
|
+
var legStreams = legacy(fs13);
|
|
666
666
|
ReadStream = legStreams.ReadStream;
|
|
667
667
|
WriteStream = legStreams.WriteStream;
|
|
668
668
|
}
|
|
669
|
-
var fs$ReadStream =
|
|
669
|
+
var fs$ReadStream = fs13.ReadStream;
|
|
670
670
|
if (fs$ReadStream) {
|
|
671
671
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
672
672
|
ReadStream.prototype.open = ReadStream$open;
|
|
673
673
|
}
|
|
674
|
-
var fs$WriteStream =
|
|
674
|
+
var fs$WriteStream = fs13.WriteStream;
|
|
675
675
|
if (fs$WriteStream) {
|
|
676
676
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
677
677
|
WriteStream.prototype.open = WriteStream$open;
|
|
678
678
|
}
|
|
679
|
-
Object.defineProperty(
|
|
679
|
+
Object.defineProperty(fs13, "ReadStream", {
|
|
680
680
|
get: function() {
|
|
681
681
|
return ReadStream;
|
|
682
682
|
},
|
|
@@ -686,7 +686,7 @@ var require_graceful_fs = __commonJS({
|
|
|
686
686
|
enumerable: true,
|
|
687
687
|
configurable: true
|
|
688
688
|
});
|
|
689
|
-
Object.defineProperty(
|
|
689
|
+
Object.defineProperty(fs13, "WriteStream", {
|
|
690
690
|
get: function() {
|
|
691
691
|
return WriteStream;
|
|
692
692
|
},
|
|
@@ -697,7 +697,7 @@ var require_graceful_fs = __commonJS({
|
|
|
697
697
|
configurable: true
|
|
698
698
|
});
|
|
699
699
|
var FileReadStream = ReadStream;
|
|
700
|
-
Object.defineProperty(
|
|
700
|
+
Object.defineProperty(fs13, "FileReadStream", {
|
|
701
701
|
get: function() {
|
|
702
702
|
return FileReadStream;
|
|
703
703
|
},
|
|
@@ -708,7 +708,7 @@ var require_graceful_fs = __commonJS({
|
|
|
708
708
|
configurable: true
|
|
709
709
|
});
|
|
710
710
|
var FileWriteStream = WriteStream;
|
|
711
|
-
Object.defineProperty(
|
|
711
|
+
Object.defineProperty(fs13, "FileWriteStream", {
|
|
712
712
|
get: function() {
|
|
713
713
|
return FileWriteStream;
|
|
714
714
|
},
|
|
@@ -718,7 +718,7 @@ var require_graceful_fs = __commonJS({
|
|
|
718
718
|
enumerable: true,
|
|
719
719
|
configurable: true
|
|
720
720
|
});
|
|
721
|
-
function ReadStream(
|
|
721
|
+
function ReadStream(path13, options) {
|
|
722
722
|
if (this instanceof ReadStream)
|
|
723
723
|
return fs$ReadStream.apply(this, arguments), this;
|
|
724
724
|
else
|
|
@@ -738,7 +738,7 @@ var require_graceful_fs = __commonJS({
|
|
|
738
738
|
}
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
function WriteStream(
|
|
741
|
+
function WriteStream(path13, options) {
|
|
742
742
|
if (this instanceof WriteStream)
|
|
743
743
|
return fs$WriteStream.apply(this, arguments), this;
|
|
744
744
|
else
|
|
@@ -756,22 +756,22 @@ var require_graceful_fs = __commonJS({
|
|
|
756
756
|
}
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
-
function createReadStream(
|
|
760
|
-
return new
|
|
759
|
+
function createReadStream(path13, options) {
|
|
760
|
+
return new fs13.ReadStream(path13, options);
|
|
761
761
|
}
|
|
762
|
-
function createWriteStream(
|
|
763
|
-
return new
|
|
762
|
+
function createWriteStream(path13, options) {
|
|
763
|
+
return new fs13.WriteStream(path13, options);
|
|
764
764
|
}
|
|
765
|
-
var fs$open =
|
|
766
|
-
|
|
767
|
-
function open(
|
|
765
|
+
var fs$open = fs13.open;
|
|
766
|
+
fs13.open = open;
|
|
767
|
+
function open(path13, flags, mode, cb) {
|
|
768
768
|
if (typeof mode === "function")
|
|
769
769
|
cb = mode, mode = null;
|
|
770
|
-
return go$open(
|
|
771
|
-
function go$open(
|
|
772
|
-
return fs$open(
|
|
770
|
+
return go$open(path13, flags, mode, cb);
|
|
771
|
+
function go$open(path14, flags2, mode2, cb2, startTime) {
|
|
772
|
+
return fs$open(path14, flags2, mode2, function(err, fd) {
|
|
773
773
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
774
|
-
enqueue([go$open, [
|
|
774
|
+
enqueue([go$open, [path14, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
775
775
|
else {
|
|
776
776
|
if (typeof cb2 === "function")
|
|
777
777
|
cb2.apply(this, arguments);
|
|
@@ -779,20 +779,20 @@ var require_graceful_fs = __commonJS({
|
|
|
779
779
|
});
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
return
|
|
782
|
+
return fs13;
|
|
783
783
|
}
|
|
784
784
|
function enqueue(elem) {
|
|
785
785
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
786
|
-
|
|
786
|
+
fs12[gracefulQueue].push(elem);
|
|
787
787
|
retry();
|
|
788
788
|
}
|
|
789
789
|
var retryTimer;
|
|
790
790
|
function resetQueue() {
|
|
791
791
|
var now = Date.now();
|
|
792
|
-
for (var i = 0; i <
|
|
793
|
-
if (
|
|
794
|
-
|
|
795
|
-
|
|
792
|
+
for (var i = 0; i < fs12[gracefulQueue].length; ++i) {
|
|
793
|
+
if (fs12[gracefulQueue][i].length > 2) {
|
|
794
|
+
fs12[gracefulQueue][i][3] = now;
|
|
795
|
+
fs12[gracefulQueue][i][4] = now;
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
retry();
|
|
@@ -800,9 +800,9 @@ var require_graceful_fs = __commonJS({
|
|
|
800
800
|
function retry() {
|
|
801
801
|
clearTimeout(retryTimer);
|
|
802
802
|
retryTimer = void 0;
|
|
803
|
-
if (
|
|
803
|
+
if (fs12[gracefulQueue].length === 0)
|
|
804
804
|
return;
|
|
805
|
-
var elem =
|
|
805
|
+
var elem = fs12[gracefulQueue].shift();
|
|
806
806
|
var fn = elem[0];
|
|
807
807
|
var args = elem[1];
|
|
808
808
|
var err = elem[2];
|
|
@@ -824,7 +824,7 @@ var require_graceful_fs = __commonJS({
|
|
|
824
824
|
debug("RETRY", fn.name, args);
|
|
825
825
|
fn.apply(null, args.concat([startTime]));
|
|
826
826
|
} else {
|
|
827
|
-
|
|
827
|
+
fs12[gracefulQueue].push(elem);
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
if (retryTimer === void 0) {
|
|
@@ -839,7 +839,7 @@ var require_fs = __commonJS({
|
|
|
839
839
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/fs/index.js"(exports2) {
|
|
840
840
|
"use strict";
|
|
841
841
|
var u = require_universalify().fromCallback;
|
|
842
|
-
var
|
|
842
|
+
var fs12 = require_graceful_fs();
|
|
843
843
|
var api = [
|
|
844
844
|
"access",
|
|
845
845
|
"appendFile",
|
|
@@ -880,26 +880,26 @@ var require_fs = __commonJS({
|
|
|
880
880
|
"utimes",
|
|
881
881
|
"writeFile"
|
|
882
882
|
].filter((key) => {
|
|
883
|
-
return typeof
|
|
883
|
+
return typeof fs12[key] === "function";
|
|
884
884
|
});
|
|
885
|
-
Object.assign(exports2,
|
|
885
|
+
Object.assign(exports2, fs12);
|
|
886
886
|
api.forEach((method) => {
|
|
887
|
-
exports2[method] = u(
|
|
887
|
+
exports2[method] = u(fs12[method]);
|
|
888
888
|
});
|
|
889
889
|
exports2.exists = function(filename, callback) {
|
|
890
890
|
if (typeof callback === "function") {
|
|
891
|
-
return
|
|
891
|
+
return fs12.exists(filename, callback);
|
|
892
892
|
}
|
|
893
893
|
return new Promise((resolve) => {
|
|
894
|
-
return
|
|
894
|
+
return fs12.exists(filename, resolve);
|
|
895
895
|
});
|
|
896
896
|
};
|
|
897
897
|
exports2.read = function(fd, buffer, offset, length, position, callback) {
|
|
898
898
|
if (typeof callback === "function") {
|
|
899
|
-
return
|
|
899
|
+
return fs12.read(fd, buffer, offset, length, position, callback);
|
|
900
900
|
}
|
|
901
901
|
return new Promise((resolve, reject) => {
|
|
902
|
-
|
|
902
|
+
fs12.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
|
|
903
903
|
if (err) return reject(err);
|
|
904
904
|
resolve({ bytesRead, buffer: buffer2 });
|
|
905
905
|
});
|
|
@@ -907,10 +907,10 @@ var require_fs = __commonJS({
|
|
|
907
907
|
};
|
|
908
908
|
exports2.write = function(fd, buffer, ...args) {
|
|
909
909
|
if (typeof args[args.length - 1] === "function") {
|
|
910
|
-
return
|
|
910
|
+
return fs12.write(fd, buffer, ...args);
|
|
911
911
|
}
|
|
912
912
|
return new Promise((resolve, reject) => {
|
|
913
|
-
|
|
913
|
+
fs12.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
914
914
|
if (err) return reject(err);
|
|
915
915
|
resolve({ bytesWritten, buffer: buffer2 });
|
|
916
916
|
});
|
|
@@ -918,10 +918,10 @@ var require_fs = __commonJS({
|
|
|
918
918
|
};
|
|
919
919
|
exports2.readv = function(fd, buffers, ...args) {
|
|
920
920
|
if (typeof args[args.length - 1] === "function") {
|
|
921
|
-
return
|
|
921
|
+
return fs12.readv(fd, buffers, ...args);
|
|
922
922
|
}
|
|
923
923
|
return new Promise((resolve, reject) => {
|
|
924
|
-
|
|
924
|
+
fs12.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
|
|
925
925
|
if (err) return reject(err);
|
|
926
926
|
resolve({ bytesRead, buffers: buffers2 });
|
|
927
927
|
});
|
|
@@ -929,17 +929,17 @@ var require_fs = __commonJS({
|
|
|
929
929
|
};
|
|
930
930
|
exports2.writev = function(fd, buffers, ...args) {
|
|
931
931
|
if (typeof args[args.length - 1] === "function") {
|
|
932
|
-
return
|
|
932
|
+
return fs12.writev(fd, buffers, ...args);
|
|
933
933
|
}
|
|
934
934
|
return new Promise((resolve, reject) => {
|
|
935
|
-
|
|
935
|
+
fs12.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
936
936
|
if (err) return reject(err);
|
|
937
937
|
resolve({ bytesWritten, buffers: buffers2 });
|
|
938
938
|
});
|
|
939
939
|
});
|
|
940
940
|
};
|
|
941
|
-
if (typeof
|
|
942
|
-
exports2.realpath.native = u(
|
|
941
|
+
if (typeof fs12.realpath.native === "function") {
|
|
942
|
+
exports2.realpath.native = u(fs12.realpath.native);
|
|
943
943
|
} else {
|
|
944
944
|
process.emitWarning(
|
|
945
945
|
"fs.realpath.native is not a function. Is fs being monkey-patched?",
|
|
@@ -954,10 +954,10 @@ var require_fs = __commonJS({
|
|
|
954
954
|
var require_utils = __commonJS({
|
|
955
955
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
|
|
956
956
|
"use strict";
|
|
957
|
-
var
|
|
957
|
+
var path13 = require("path");
|
|
958
958
|
module2.exports.checkPath = function checkPath(pth) {
|
|
959
959
|
if (process.platform === "win32") {
|
|
960
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
960
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path13.parse(pth).root, ""));
|
|
961
961
|
if (pathHasInvalidWinCharacters) {
|
|
962
962
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
963
963
|
error.code = "EINVAL";
|
|
@@ -972,7 +972,7 @@ var require_utils = __commonJS({
|
|
|
972
972
|
var require_make_dir = __commonJS({
|
|
973
973
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
|
|
974
974
|
"use strict";
|
|
975
|
-
var
|
|
975
|
+
var fs12 = require_fs();
|
|
976
976
|
var { checkPath } = require_utils();
|
|
977
977
|
var getMode = (options) => {
|
|
978
978
|
const defaults = { mode: 511 };
|
|
@@ -981,14 +981,14 @@ var require_make_dir = __commonJS({
|
|
|
981
981
|
};
|
|
982
982
|
module2.exports.makeDir = async (dir, options) => {
|
|
983
983
|
checkPath(dir);
|
|
984
|
-
return
|
|
984
|
+
return fs12.mkdir(dir, {
|
|
985
985
|
mode: getMode(options),
|
|
986
986
|
recursive: true
|
|
987
987
|
});
|
|
988
988
|
};
|
|
989
989
|
module2.exports.makeDirSync = (dir, options) => {
|
|
990
990
|
checkPath(dir);
|
|
991
|
-
return
|
|
991
|
+
return fs12.mkdirSync(dir, {
|
|
992
992
|
mode: getMode(options),
|
|
993
993
|
recursive: true
|
|
994
994
|
});
|
|
@@ -1020,13 +1020,13 @@ var require_path_exists = __commonJS({
|
|
|
1020
1020
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
|
|
1021
1021
|
"use strict";
|
|
1022
1022
|
var u = require_universalify().fromPromise;
|
|
1023
|
-
var
|
|
1024
|
-
function pathExists(
|
|
1025
|
-
return
|
|
1023
|
+
var fs12 = require_fs();
|
|
1024
|
+
function pathExists(path13) {
|
|
1025
|
+
return fs12.access(path13).then(() => true).catch(() => false);
|
|
1026
1026
|
}
|
|
1027
1027
|
module2.exports = {
|
|
1028
1028
|
pathExists: u(pathExists),
|
|
1029
|
-
pathExistsSync:
|
|
1029
|
+
pathExistsSync: fs12.existsSync
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
@@ -1035,16 +1035,16 @@ var require_path_exists = __commonJS({
|
|
|
1035
1035
|
var require_utimes = __commonJS({
|
|
1036
1036
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
|
|
1037
1037
|
"use strict";
|
|
1038
|
-
var
|
|
1038
|
+
var fs12 = require_fs();
|
|
1039
1039
|
var u = require_universalify().fromPromise;
|
|
1040
|
-
async function utimesMillis(
|
|
1041
|
-
const fd = await
|
|
1040
|
+
async function utimesMillis(path13, atime, mtime) {
|
|
1041
|
+
const fd = await fs12.open(path13, "r+");
|
|
1042
1042
|
let closeErr = null;
|
|
1043
1043
|
try {
|
|
1044
|
-
await
|
|
1044
|
+
await fs12.futimes(fd, atime, mtime);
|
|
1045
1045
|
} finally {
|
|
1046
1046
|
try {
|
|
1047
|
-
await
|
|
1047
|
+
await fs12.close(fd);
|
|
1048
1048
|
} catch (e) {
|
|
1049
1049
|
closeErr = e;
|
|
1050
1050
|
}
|
|
@@ -1053,10 +1053,10 @@ var require_utimes = __commonJS({
|
|
|
1053
1053
|
throw closeErr;
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
|
-
function utimesMillisSync(
|
|
1057
|
-
const fd =
|
|
1058
|
-
|
|
1059
|
-
return
|
|
1056
|
+
function utimesMillisSync(path13, atime, mtime) {
|
|
1057
|
+
const fd = fs12.openSync(path13, "r+");
|
|
1058
|
+
fs12.futimesSync(fd, atime, mtime);
|
|
1059
|
+
return fs12.closeSync(fd);
|
|
1060
1060
|
}
|
|
1061
1061
|
module2.exports = {
|
|
1062
1062
|
utimesMillis: u(utimesMillis),
|
|
@@ -1069,11 +1069,11 @@ var require_utimes = __commonJS({
|
|
|
1069
1069
|
var require_stat = __commonJS({
|
|
1070
1070
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
|
|
1071
1071
|
"use strict";
|
|
1072
|
-
var
|
|
1073
|
-
var
|
|
1072
|
+
var fs12 = require_fs();
|
|
1073
|
+
var path13 = require("path");
|
|
1074
1074
|
var u = require_universalify().fromPromise;
|
|
1075
1075
|
function getStats(src, dest, opts) {
|
|
1076
|
-
const statFunc = opts.dereference ? (file) =>
|
|
1076
|
+
const statFunc = opts.dereference ? (file) => fs12.stat(file, { bigint: true }) : (file) => fs12.lstat(file, { bigint: true });
|
|
1077
1077
|
return Promise.all([
|
|
1078
1078
|
statFunc(src),
|
|
1079
1079
|
statFunc(dest).catch((err) => {
|
|
@@ -1084,7 +1084,7 @@ var require_stat = __commonJS({
|
|
|
1084
1084
|
}
|
|
1085
1085
|
function getStatsSync(src, dest, opts) {
|
|
1086
1086
|
let destStat;
|
|
1087
|
-
const statFunc = opts.dereference ? (file) =>
|
|
1087
|
+
const statFunc = opts.dereference ? (file) => fs12.statSync(file, { bigint: true }) : (file) => fs12.lstatSync(file, { bigint: true });
|
|
1088
1088
|
const srcStat = statFunc(src);
|
|
1089
1089
|
try {
|
|
1090
1090
|
destStat = statFunc(dest);
|
|
@@ -1098,8 +1098,8 @@ var require_stat = __commonJS({
|
|
|
1098
1098
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
1099
1099
|
if (destStat) {
|
|
1100
1100
|
if (areIdentical(srcStat, destStat)) {
|
|
1101
|
-
const srcBaseName =
|
|
1102
|
-
const destBaseName =
|
|
1101
|
+
const srcBaseName = path13.basename(src);
|
|
1102
|
+
const destBaseName = path13.basename(dest);
|
|
1103
1103
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1104
1104
|
return { srcStat, destStat, isChangingCase: true };
|
|
1105
1105
|
}
|
|
@@ -1121,8 +1121,8 @@ var require_stat = __commonJS({
|
|
|
1121
1121
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
1122
1122
|
if (destStat) {
|
|
1123
1123
|
if (areIdentical(srcStat, destStat)) {
|
|
1124
|
-
const srcBaseName =
|
|
1125
|
-
const destBaseName =
|
|
1124
|
+
const srcBaseName = path13.basename(src);
|
|
1125
|
+
const destBaseName = path13.basename(dest);
|
|
1126
1126
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1127
1127
|
return { srcStat, destStat, isChangingCase: true };
|
|
1128
1128
|
}
|
|
@@ -1141,12 +1141,12 @@ var require_stat = __commonJS({
|
|
|
1141
1141
|
return { srcStat, destStat };
|
|
1142
1142
|
}
|
|
1143
1143
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
1144
|
-
const srcParent =
|
|
1145
|
-
const destParent =
|
|
1146
|
-
if (destParent === srcParent || destParent ===
|
|
1144
|
+
const srcParent = path13.resolve(path13.dirname(src));
|
|
1145
|
+
const destParent = path13.resolve(path13.dirname(dest));
|
|
1146
|
+
if (destParent === srcParent || destParent === path13.parse(destParent).root) return;
|
|
1147
1147
|
let destStat;
|
|
1148
1148
|
try {
|
|
1149
|
-
destStat = await
|
|
1149
|
+
destStat = await fs12.stat(destParent, { bigint: true });
|
|
1150
1150
|
} catch (err) {
|
|
1151
1151
|
if (err.code === "ENOENT") return;
|
|
1152
1152
|
throw err;
|
|
@@ -1157,12 +1157,12 @@ var require_stat = __commonJS({
|
|
|
1157
1157
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
1158
1158
|
}
|
|
1159
1159
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
1160
|
-
const srcParent =
|
|
1161
|
-
const destParent =
|
|
1162
|
-
if (destParent === srcParent || destParent ===
|
|
1160
|
+
const srcParent = path13.resolve(path13.dirname(src));
|
|
1161
|
+
const destParent = path13.resolve(path13.dirname(dest));
|
|
1162
|
+
if (destParent === srcParent || destParent === path13.parse(destParent).root) return;
|
|
1163
1163
|
let destStat;
|
|
1164
1164
|
try {
|
|
1165
|
-
destStat =
|
|
1165
|
+
destStat = fs12.statSync(destParent, { bigint: true });
|
|
1166
1166
|
} catch (err) {
|
|
1167
1167
|
if (err.code === "ENOENT") return;
|
|
1168
1168
|
throw err;
|
|
@@ -1176,8 +1176,8 @@ var require_stat = __commonJS({
|
|
|
1176
1176
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
1177
1177
|
}
|
|
1178
1178
|
function isSrcSubdir(src, dest) {
|
|
1179
|
-
const srcArr =
|
|
1180
|
-
const destArr =
|
|
1179
|
+
const srcArr = path13.resolve(src).split(path13.sep).filter((i) => i);
|
|
1180
|
+
const destArr = path13.resolve(dest).split(path13.sep).filter((i) => i);
|
|
1181
1181
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
1182
1182
|
}
|
|
1183
1183
|
function errMsg(src, dest, funcName) {
|
|
@@ -1201,8 +1201,8 @@ var require_stat = __commonJS({
|
|
|
1201
1201
|
var require_copy = __commonJS({
|
|
1202
1202
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
|
|
1203
1203
|
"use strict";
|
|
1204
|
-
var
|
|
1205
|
-
var
|
|
1204
|
+
var fs12 = require_fs();
|
|
1205
|
+
var path13 = require("path");
|
|
1206
1206
|
var { mkdirs } = require_mkdirs();
|
|
1207
1207
|
var { pathExists } = require_path_exists();
|
|
1208
1208
|
var { utimesMillis } = require_utimes();
|
|
@@ -1224,7 +1224,7 @@ var require_copy = __commonJS({
|
|
|
1224
1224
|
await stat.checkParentPaths(src, srcStat, dest, "copy");
|
|
1225
1225
|
const include = await runFilter(src, dest, opts);
|
|
1226
1226
|
if (!include) return;
|
|
1227
|
-
const destParent =
|
|
1227
|
+
const destParent = path13.dirname(dest);
|
|
1228
1228
|
const dirExists = await pathExists(destParent);
|
|
1229
1229
|
if (!dirExists) {
|
|
1230
1230
|
await mkdirs(destParent);
|
|
@@ -1236,7 +1236,7 @@ var require_copy = __commonJS({
|
|
|
1236
1236
|
return opts.filter(src, dest);
|
|
1237
1237
|
}
|
|
1238
1238
|
async function getStatsAndPerformCopy(destStat, src, dest, opts) {
|
|
1239
|
-
const statFn = opts.dereference ?
|
|
1239
|
+
const statFn = opts.dereference ? fs12.stat : fs12.lstat;
|
|
1240
1240
|
const srcStat = await statFn(src);
|
|
1241
1241
|
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
|
|
1242
1242
|
if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
|
|
@@ -1248,7 +1248,7 @@ var require_copy = __commonJS({
|
|
|
1248
1248
|
async function onFile(srcStat, destStat, src, dest, opts) {
|
|
1249
1249
|
if (!destStat) return copyFile(srcStat, src, dest, opts);
|
|
1250
1250
|
if (opts.overwrite) {
|
|
1251
|
-
await
|
|
1251
|
+
await fs12.unlink(dest);
|
|
1252
1252
|
return copyFile(srcStat, src, dest, opts);
|
|
1253
1253
|
}
|
|
1254
1254
|
if (opts.errorOnExist) {
|
|
@@ -1256,30 +1256,30 @@ var require_copy = __commonJS({
|
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
1258
|
async function copyFile(srcStat, src, dest, opts) {
|
|
1259
|
-
await
|
|
1259
|
+
await fs12.copyFile(src, dest);
|
|
1260
1260
|
if (opts.preserveTimestamps) {
|
|
1261
1261
|
if (fileIsNotWritable(srcStat.mode)) {
|
|
1262
1262
|
await makeFileWritable(dest, srcStat.mode);
|
|
1263
1263
|
}
|
|
1264
|
-
const updatedSrcStat = await
|
|
1264
|
+
const updatedSrcStat = await fs12.stat(src);
|
|
1265
1265
|
await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
1266
1266
|
}
|
|
1267
|
-
return
|
|
1267
|
+
return fs12.chmod(dest, srcStat.mode);
|
|
1268
1268
|
}
|
|
1269
1269
|
function fileIsNotWritable(srcMode) {
|
|
1270
1270
|
return (srcMode & 128) === 0;
|
|
1271
1271
|
}
|
|
1272
1272
|
function makeFileWritable(dest, srcMode) {
|
|
1273
|
-
return
|
|
1273
|
+
return fs12.chmod(dest, srcMode | 128);
|
|
1274
1274
|
}
|
|
1275
1275
|
async function onDir(srcStat, destStat, src, dest, opts) {
|
|
1276
1276
|
if (!destStat) {
|
|
1277
|
-
await
|
|
1277
|
+
await fs12.mkdir(dest);
|
|
1278
1278
|
}
|
|
1279
1279
|
const promises = [];
|
|
1280
|
-
for await (const item of await
|
|
1281
|
-
const srcItem =
|
|
1282
|
-
const destItem =
|
|
1280
|
+
for await (const item of await fs12.opendir(src)) {
|
|
1281
|
+
const srcItem = path13.join(src, item.name);
|
|
1282
|
+
const destItem = path13.join(dest, item.name);
|
|
1283
1283
|
promises.push(
|
|
1284
1284
|
runFilter(srcItem, destItem, opts).then((include) => {
|
|
1285
1285
|
if (include) {
|
|
@@ -1292,26 +1292,26 @@ var require_copy = __commonJS({
|
|
|
1292
1292
|
}
|
|
1293
1293
|
await Promise.all(promises);
|
|
1294
1294
|
if (!destStat) {
|
|
1295
|
-
await
|
|
1295
|
+
await fs12.chmod(dest, srcStat.mode);
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
1298
|
async function onLink(destStat, src, dest, opts) {
|
|
1299
|
-
let resolvedSrc = await
|
|
1299
|
+
let resolvedSrc = await fs12.readlink(src);
|
|
1300
1300
|
if (opts.dereference) {
|
|
1301
|
-
resolvedSrc =
|
|
1301
|
+
resolvedSrc = path13.resolve(process.cwd(), resolvedSrc);
|
|
1302
1302
|
}
|
|
1303
1303
|
if (!destStat) {
|
|
1304
|
-
return
|
|
1304
|
+
return fs12.symlink(resolvedSrc, dest);
|
|
1305
1305
|
}
|
|
1306
1306
|
let resolvedDest = null;
|
|
1307
1307
|
try {
|
|
1308
|
-
resolvedDest = await
|
|
1308
|
+
resolvedDest = await fs12.readlink(dest);
|
|
1309
1309
|
} catch (e) {
|
|
1310
|
-
if (e.code === "EINVAL" || e.code === "UNKNOWN") return
|
|
1310
|
+
if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs12.symlink(resolvedSrc, dest);
|
|
1311
1311
|
throw e;
|
|
1312
1312
|
}
|
|
1313
1313
|
if (opts.dereference) {
|
|
1314
|
-
resolvedDest =
|
|
1314
|
+
resolvedDest = path13.resolve(process.cwd(), resolvedDest);
|
|
1315
1315
|
}
|
|
1316
1316
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1317
1317
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -1319,8 +1319,8 @@ var require_copy = __commonJS({
|
|
|
1319
1319
|
if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
1320
1320
|
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
1321
1321
|
}
|
|
1322
|
-
await
|
|
1323
|
-
return
|
|
1322
|
+
await fs12.unlink(dest);
|
|
1323
|
+
return fs12.symlink(resolvedSrc, dest);
|
|
1324
1324
|
}
|
|
1325
1325
|
module2.exports = copy2;
|
|
1326
1326
|
}
|
|
@@ -1330,8 +1330,8 @@ var require_copy = __commonJS({
|
|
|
1330
1330
|
var require_copy_sync = __commonJS({
|
|
1331
1331
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
|
|
1332
1332
|
"use strict";
|
|
1333
|
-
var
|
|
1334
|
-
var
|
|
1333
|
+
var fs12 = require_graceful_fs();
|
|
1334
|
+
var path13 = require("path");
|
|
1335
1335
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
1336
1336
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
1337
1337
|
var stat = require_stat();
|
|
@@ -1352,12 +1352,12 @@ var require_copy_sync = __commonJS({
|
|
|
1352
1352
|
const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
|
|
1353
1353
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
1354
1354
|
if (opts.filter && !opts.filter(src, dest)) return;
|
|
1355
|
-
const destParent =
|
|
1356
|
-
if (!
|
|
1355
|
+
const destParent = path13.dirname(dest);
|
|
1356
|
+
if (!fs12.existsSync(destParent)) mkdirsSync(destParent);
|
|
1357
1357
|
return getStats(destStat, src, dest, opts);
|
|
1358
1358
|
}
|
|
1359
1359
|
function getStats(destStat, src, dest, opts) {
|
|
1360
|
-
const statSync = opts.dereference ?
|
|
1360
|
+
const statSync = opts.dereference ? fs12.statSync : fs12.lstatSync;
|
|
1361
1361
|
const srcStat = statSync(src);
|
|
1362
1362
|
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
|
|
1363
1363
|
else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
|
|
@@ -1372,14 +1372,14 @@ var require_copy_sync = __commonJS({
|
|
|
1372
1372
|
}
|
|
1373
1373
|
function mayCopyFile(srcStat, src, dest, opts) {
|
|
1374
1374
|
if (opts.overwrite) {
|
|
1375
|
-
|
|
1375
|
+
fs12.unlinkSync(dest);
|
|
1376
1376
|
return copyFile(srcStat, src, dest, opts);
|
|
1377
1377
|
} else if (opts.errorOnExist) {
|
|
1378
1378
|
throw new Error(`'${dest}' already exists`);
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
1381
|
function copyFile(srcStat, src, dest, opts) {
|
|
1382
|
-
|
|
1382
|
+
fs12.copyFileSync(src, dest);
|
|
1383
1383
|
if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
|
|
1384
1384
|
return setDestMode(dest, srcStat.mode);
|
|
1385
1385
|
}
|
|
@@ -1394,10 +1394,10 @@ var require_copy_sync = __commonJS({
|
|
|
1394
1394
|
return setDestMode(dest, srcMode | 128);
|
|
1395
1395
|
}
|
|
1396
1396
|
function setDestMode(dest, srcMode) {
|
|
1397
|
-
return
|
|
1397
|
+
return fs12.chmodSync(dest, srcMode);
|
|
1398
1398
|
}
|
|
1399
1399
|
function setDestTimestamps(src, dest) {
|
|
1400
|
-
const updatedSrcStat =
|
|
1400
|
+
const updatedSrcStat = fs12.statSync(src);
|
|
1401
1401
|
return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
1402
1402
|
}
|
|
1403
1403
|
function onDir(srcStat, destStat, src, dest, opts) {
|
|
@@ -1405,12 +1405,12 @@ var require_copy_sync = __commonJS({
|
|
|
1405
1405
|
return copyDir(src, dest, opts);
|
|
1406
1406
|
}
|
|
1407
1407
|
function mkDirAndCopy(srcMode, src, dest, opts) {
|
|
1408
|
-
|
|
1408
|
+
fs12.mkdirSync(dest);
|
|
1409
1409
|
copyDir(src, dest, opts);
|
|
1410
1410
|
return setDestMode(dest, srcMode);
|
|
1411
1411
|
}
|
|
1412
1412
|
function copyDir(src, dest, opts) {
|
|
1413
|
-
const dir =
|
|
1413
|
+
const dir = fs12.opendirSync(src);
|
|
1414
1414
|
try {
|
|
1415
1415
|
let dirent;
|
|
1416
1416
|
while ((dirent = dir.readSync()) !== null) {
|
|
@@ -1421,29 +1421,29 @@ var require_copy_sync = __commonJS({
|
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
1423
|
function copyDirItem(item, src, dest, opts) {
|
|
1424
|
-
const srcItem =
|
|
1425
|
-
const destItem =
|
|
1424
|
+
const srcItem = path13.join(src, item);
|
|
1425
|
+
const destItem = path13.join(dest, item);
|
|
1426
1426
|
if (opts.filter && !opts.filter(srcItem, destItem)) return;
|
|
1427
1427
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
1428
1428
|
return getStats(destStat, srcItem, destItem, opts);
|
|
1429
1429
|
}
|
|
1430
1430
|
function onLink(destStat, src, dest, opts) {
|
|
1431
|
-
let resolvedSrc =
|
|
1431
|
+
let resolvedSrc = fs12.readlinkSync(src);
|
|
1432
1432
|
if (opts.dereference) {
|
|
1433
|
-
resolvedSrc =
|
|
1433
|
+
resolvedSrc = path13.resolve(process.cwd(), resolvedSrc);
|
|
1434
1434
|
}
|
|
1435
1435
|
if (!destStat) {
|
|
1436
|
-
return
|
|
1436
|
+
return fs12.symlinkSync(resolvedSrc, dest);
|
|
1437
1437
|
} else {
|
|
1438
1438
|
let resolvedDest;
|
|
1439
1439
|
try {
|
|
1440
|
-
resolvedDest =
|
|
1440
|
+
resolvedDest = fs12.readlinkSync(dest);
|
|
1441
1441
|
} catch (err) {
|
|
1442
|
-
if (err.code === "EINVAL" || err.code === "UNKNOWN") return
|
|
1442
|
+
if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs12.symlinkSync(resolvedSrc, dest);
|
|
1443
1443
|
throw err;
|
|
1444
1444
|
}
|
|
1445
1445
|
if (opts.dereference) {
|
|
1446
|
-
resolvedDest =
|
|
1446
|
+
resolvedDest = path13.resolve(process.cwd(), resolvedDest);
|
|
1447
1447
|
}
|
|
1448
1448
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1449
1449
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -1455,8 +1455,8 @@ var require_copy_sync = __commonJS({
|
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
1457
|
function copyLink(resolvedSrc, dest) {
|
|
1458
|
-
|
|
1459
|
-
return
|
|
1458
|
+
fs12.unlinkSync(dest);
|
|
1459
|
+
return fs12.symlinkSync(resolvedSrc, dest);
|
|
1460
1460
|
}
|
|
1461
1461
|
module2.exports = copySync;
|
|
1462
1462
|
}
|
|
@@ -1478,13 +1478,13 @@ var require_copy2 = __commonJS({
|
|
|
1478
1478
|
var require_remove = __commonJS({
|
|
1479
1479
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
|
|
1480
1480
|
"use strict";
|
|
1481
|
-
var
|
|
1481
|
+
var fs12 = require_graceful_fs();
|
|
1482
1482
|
var u = require_universalify().fromCallback;
|
|
1483
|
-
function remove(
|
|
1484
|
-
|
|
1483
|
+
function remove(path13, callback) {
|
|
1484
|
+
fs12.rm(path13, { recursive: true, force: true }, callback);
|
|
1485
1485
|
}
|
|
1486
|
-
function removeSync(
|
|
1487
|
-
|
|
1486
|
+
function removeSync(path13) {
|
|
1487
|
+
fs12.rmSync(path13, { recursive: true, force: true });
|
|
1488
1488
|
}
|
|
1489
1489
|
module2.exports = {
|
|
1490
1490
|
remove: u(remove),
|
|
@@ -1498,28 +1498,28 @@ var require_empty = __commonJS({
|
|
|
1498
1498
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
|
|
1499
1499
|
"use strict";
|
|
1500
1500
|
var u = require_universalify().fromPromise;
|
|
1501
|
-
var
|
|
1502
|
-
var
|
|
1501
|
+
var fs12 = require_fs();
|
|
1502
|
+
var path13 = require("path");
|
|
1503
1503
|
var mkdir = require_mkdirs();
|
|
1504
1504
|
var remove = require_remove();
|
|
1505
1505
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
1506
1506
|
let items;
|
|
1507
1507
|
try {
|
|
1508
|
-
items = await
|
|
1508
|
+
items = await fs12.readdir(dir);
|
|
1509
1509
|
} catch {
|
|
1510
1510
|
return mkdir.mkdirs(dir);
|
|
1511
1511
|
}
|
|
1512
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
1512
|
+
return Promise.all(items.map((item) => remove.remove(path13.join(dir, item))));
|
|
1513
1513
|
});
|
|
1514
1514
|
function emptyDirSync(dir) {
|
|
1515
1515
|
let items;
|
|
1516
1516
|
try {
|
|
1517
|
-
items =
|
|
1517
|
+
items = fs12.readdirSync(dir);
|
|
1518
1518
|
} catch {
|
|
1519
1519
|
return mkdir.mkdirsSync(dir);
|
|
1520
1520
|
}
|
|
1521
1521
|
items.forEach((item) => {
|
|
1522
|
-
item =
|
|
1522
|
+
item = path13.join(dir, item);
|
|
1523
1523
|
remove.removeSync(item);
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
@@ -1537,52 +1537,52 @@ var require_file = __commonJS({
|
|
|
1537
1537
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
|
|
1538
1538
|
"use strict";
|
|
1539
1539
|
var u = require_universalify().fromPromise;
|
|
1540
|
-
var
|
|
1541
|
-
var
|
|
1540
|
+
var path13 = require("path");
|
|
1541
|
+
var fs12 = require_fs();
|
|
1542
1542
|
var mkdir = require_mkdirs();
|
|
1543
1543
|
async function createFile(file) {
|
|
1544
1544
|
let stats;
|
|
1545
1545
|
try {
|
|
1546
|
-
stats = await
|
|
1546
|
+
stats = await fs12.stat(file);
|
|
1547
1547
|
} catch {
|
|
1548
1548
|
}
|
|
1549
1549
|
if (stats && stats.isFile()) return;
|
|
1550
|
-
const dir =
|
|
1550
|
+
const dir = path13.dirname(file);
|
|
1551
1551
|
let dirStats = null;
|
|
1552
1552
|
try {
|
|
1553
|
-
dirStats = await
|
|
1553
|
+
dirStats = await fs12.stat(dir);
|
|
1554
1554
|
} catch (err) {
|
|
1555
1555
|
if (err.code === "ENOENT") {
|
|
1556
1556
|
await mkdir.mkdirs(dir);
|
|
1557
|
-
await
|
|
1557
|
+
await fs12.writeFile(file, "");
|
|
1558
1558
|
return;
|
|
1559
1559
|
} else {
|
|
1560
1560
|
throw err;
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
1563
|
if (dirStats.isDirectory()) {
|
|
1564
|
-
await
|
|
1564
|
+
await fs12.writeFile(file, "");
|
|
1565
1565
|
} else {
|
|
1566
|
-
await
|
|
1566
|
+
await fs12.readdir(dir);
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
1569
|
function createFileSync(file) {
|
|
1570
1570
|
let stats;
|
|
1571
1571
|
try {
|
|
1572
|
-
stats =
|
|
1572
|
+
stats = fs12.statSync(file);
|
|
1573
1573
|
} catch {
|
|
1574
1574
|
}
|
|
1575
1575
|
if (stats && stats.isFile()) return;
|
|
1576
|
-
const dir =
|
|
1576
|
+
const dir = path13.dirname(file);
|
|
1577
1577
|
try {
|
|
1578
|
-
if (!
|
|
1579
|
-
|
|
1578
|
+
if (!fs12.statSync(dir).isDirectory()) {
|
|
1579
|
+
fs12.readdirSync(dir);
|
|
1580
1580
|
}
|
|
1581
1581
|
} catch (err) {
|
|
1582
1582
|
if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
|
|
1583
1583
|
else throw err;
|
|
1584
1584
|
}
|
|
1585
|
-
|
|
1585
|
+
fs12.writeFileSync(file, "");
|
|
1586
1586
|
}
|
|
1587
1587
|
module2.exports = {
|
|
1588
1588
|
createFile: u(createFile),
|
|
@@ -1596,50 +1596,50 @@ var require_link = __commonJS({
|
|
|
1596
1596
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
|
|
1597
1597
|
"use strict";
|
|
1598
1598
|
var u = require_universalify().fromPromise;
|
|
1599
|
-
var
|
|
1600
|
-
var
|
|
1599
|
+
var path13 = require("path");
|
|
1600
|
+
var fs12 = require_fs();
|
|
1601
1601
|
var mkdir = require_mkdirs();
|
|
1602
1602
|
var { pathExists } = require_path_exists();
|
|
1603
1603
|
var { areIdentical } = require_stat();
|
|
1604
1604
|
async function createLink(srcpath, dstpath) {
|
|
1605
1605
|
let dstStat;
|
|
1606
1606
|
try {
|
|
1607
|
-
dstStat = await
|
|
1607
|
+
dstStat = await fs12.lstat(dstpath);
|
|
1608
1608
|
} catch {
|
|
1609
1609
|
}
|
|
1610
1610
|
let srcStat;
|
|
1611
1611
|
try {
|
|
1612
|
-
srcStat = await
|
|
1612
|
+
srcStat = await fs12.lstat(srcpath);
|
|
1613
1613
|
} catch (err) {
|
|
1614
1614
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
1615
1615
|
throw err;
|
|
1616
1616
|
}
|
|
1617
1617
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
1618
|
-
const dir =
|
|
1618
|
+
const dir = path13.dirname(dstpath);
|
|
1619
1619
|
const dirExists = await pathExists(dir);
|
|
1620
1620
|
if (!dirExists) {
|
|
1621
1621
|
await mkdir.mkdirs(dir);
|
|
1622
1622
|
}
|
|
1623
|
-
await
|
|
1623
|
+
await fs12.link(srcpath, dstpath);
|
|
1624
1624
|
}
|
|
1625
1625
|
function createLinkSync(srcpath, dstpath) {
|
|
1626
1626
|
let dstStat;
|
|
1627
1627
|
try {
|
|
1628
|
-
dstStat =
|
|
1628
|
+
dstStat = fs12.lstatSync(dstpath);
|
|
1629
1629
|
} catch {
|
|
1630
1630
|
}
|
|
1631
1631
|
try {
|
|
1632
|
-
const srcStat =
|
|
1632
|
+
const srcStat = fs12.lstatSync(srcpath);
|
|
1633
1633
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
1634
1634
|
} catch (err) {
|
|
1635
1635
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
1636
1636
|
throw err;
|
|
1637
1637
|
}
|
|
1638
|
-
const dir =
|
|
1639
|
-
const dirExists =
|
|
1640
|
-
if (dirExists) return
|
|
1638
|
+
const dir = path13.dirname(dstpath);
|
|
1639
|
+
const dirExists = fs12.existsSync(dir);
|
|
1640
|
+
if (dirExists) return fs12.linkSync(srcpath, dstpath);
|
|
1641
1641
|
mkdir.mkdirsSync(dir);
|
|
1642
|
-
return
|
|
1642
|
+
return fs12.linkSync(srcpath, dstpath);
|
|
1643
1643
|
}
|
|
1644
1644
|
module2.exports = {
|
|
1645
1645
|
createLink: u(createLink),
|
|
@@ -1652,14 +1652,14 @@ var require_link = __commonJS({
|
|
|
1652
1652
|
var require_symlink_paths = __commonJS({
|
|
1653
1653
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
|
|
1654
1654
|
"use strict";
|
|
1655
|
-
var
|
|
1656
|
-
var
|
|
1655
|
+
var path13 = require("path");
|
|
1656
|
+
var fs12 = require_fs();
|
|
1657
1657
|
var { pathExists } = require_path_exists();
|
|
1658
1658
|
var u = require_universalify().fromPromise;
|
|
1659
1659
|
async function symlinkPaths(srcpath, dstpath) {
|
|
1660
|
-
if (
|
|
1660
|
+
if (path13.isAbsolute(srcpath)) {
|
|
1661
1661
|
try {
|
|
1662
|
-
await
|
|
1662
|
+
await fs12.lstat(srcpath);
|
|
1663
1663
|
} catch (err) {
|
|
1664
1664
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
1665
1665
|
throw err;
|
|
@@ -1669,8 +1669,8 @@ var require_symlink_paths = __commonJS({
|
|
|
1669
1669
|
toDst: srcpath
|
|
1670
1670
|
};
|
|
1671
1671
|
}
|
|
1672
|
-
const dstdir =
|
|
1673
|
-
const relativeToDst =
|
|
1672
|
+
const dstdir = path13.dirname(dstpath);
|
|
1673
|
+
const relativeToDst = path13.join(dstdir, srcpath);
|
|
1674
1674
|
const exists = await pathExists(relativeToDst);
|
|
1675
1675
|
if (exists) {
|
|
1676
1676
|
return {
|
|
@@ -1679,39 +1679,39 @@ var require_symlink_paths = __commonJS({
|
|
|
1679
1679
|
};
|
|
1680
1680
|
}
|
|
1681
1681
|
try {
|
|
1682
|
-
await
|
|
1682
|
+
await fs12.lstat(srcpath);
|
|
1683
1683
|
} catch (err) {
|
|
1684
1684
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
1685
1685
|
throw err;
|
|
1686
1686
|
}
|
|
1687
1687
|
return {
|
|
1688
1688
|
toCwd: srcpath,
|
|
1689
|
-
toDst:
|
|
1689
|
+
toDst: path13.relative(dstdir, srcpath)
|
|
1690
1690
|
};
|
|
1691
1691
|
}
|
|
1692
1692
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
1693
|
-
if (
|
|
1694
|
-
const exists2 =
|
|
1693
|
+
if (path13.isAbsolute(srcpath)) {
|
|
1694
|
+
const exists2 = fs12.existsSync(srcpath);
|
|
1695
1695
|
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
1696
1696
|
return {
|
|
1697
1697
|
toCwd: srcpath,
|
|
1698
1698
|
toDst: srcpath
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
|
-
const dstdir =
|
|
1702
|
-
const relativeToDst =
|
|
1703
|
-
const exists =
|
|
1701
|
+
const dstdir = path13.dirname(dstpath);
|
|
1702
|
+
const relativeToDst = path13.join(dstdir, srcpath);
|
|
1703
|
+
const exists = fs12.existsSync(relativeToDst);
|
|
1704
1704
|
if (exists) {
|
|
1705
1705
|
return {
|
|
1706
1706
|
toCwd: relativeToDst,
|
|
1707
1707
|
toDst: srcpath
|
|
1708
1708
|
};
|
|
1709
1709
|
}
|
|
1710
|
-
const srcExists =
|
|
1710
|
+
const srcExists = fs12.existsSync(srcpath);
|
|
1711
1711
|
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
1712
1712
|
return {
|
|
1713
1713
|
toCwd: srcpath,
|
|
1714
|
-
toDst:
|
|
1714
|
+
toDst: path13.relative(dstdir, srcpath)
|
|
1715
1715
|
};
|
|
1716
1716
|
}
|
|
1717
1717
|
module2.exports = {
|
|
@@ -1725,13 +1725,13 @@ var require_symlink_paths = __commonJS({
|
|
|
1725
1725
|
var require_symlink_type = __commonJS({
|
|
1726
1726
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
|
|
1727
1727
|
"use strict";
|
|
1728
|
-
var
|
|
1728
|
+
var fs12 = require_fs();
|
|
1729
1729
|
var u = require_universalify().fromPromise;
|
|
1730
1730
|
async function symlinkType(srcpath, type) {
|
|
1731
1731
|
if (type) return type;
|
|
1732
1732
|
let stats;
|
|
1733
1733
|
try {
|
|
1734
|
-
stats = await
|
|
1734
|
+
stats = await fs12.lstat(srcpath);
|
|
1735
1735
|
} catch {
|
|
1736
1736
|
return "file";
|
|
1737
1737
|
}
|
|
@@ -1741,7 +1741,7 @@ var require_symlink_type = __commonJS({
|
|
|
1741
1741
|
if (type) return type;
|
|
1742
1742
|
let stats;
|
|
1743
1743
|
try {
|
|
1744
|
-
stats =
|
|
1744
|
+
stats = fs12.lstatSync(srcpath);
|
|
1745
1745
|
} catch {
|
|
1746
1746
|
return "file";
|
|
1747
1747
|
}
|
|
@@ -1759,8 +1759,8 @@ var require_symlink = __commonJS({
|
|
|
1759
1759
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
|
|
1760
1760
|
"use strict";
|
|
1761
1761
|
var u = require_universalify().fromPromise;
|
|
1762
|
-
var
|
|
1763
|
-
var
|
|
1762
|
+
var path13 = require("path");
|
|
1763
|
+
var fs12 = require_fs();
|
|
1764
1764
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
1765
1765
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
1766
1766
|
var { symlinkType, symlinkTypeSync } = require_symlink_type();
|
|
@@ -1769,44 +1769,44 @@ var require_symlink = __commonJS({
|
|
|
1769
1769
|
async function createSymlink(srcpath, dstpath, type) {
|
|
1770
1770
|
let stats;
|
|
1771
1771
|
try {
|
|
1772
|
-
stats = await
|
|
1772
|
+
stats = await fs12.lstat(dstpath);
|
|
1773
1773
|
} catch {
|
|
1774
1774
|
}
|
|
1775
1775
|
if (stats && stats.isSymbolicLink()) {
|
|
1776
1776
|
const [srcStat, dstStat] = await Promise.all([
|
|
1777
|
-
|
|
1778
|
-
|
|
1777
|
+
fs12.stat(srcpath),
|
|
1778
|
+
fs12.stat(dstpath)
|
|
1779
1779
|
]);
|
|
1780
1780
|
if (areIdentical(srcStat, dstStat)) return;
|
|
1781
1781
|
}
|
|
1782
1782
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
1783
1783
|
srcpath = relative.toDst;
|
|
1784
1784
|
const toType = await symlinkType(relative.toCwd, type);
|
|
1785
|
-
const dir =
|
|
1785
|
+
const dir = path13.dirname(dstpath);
|
|
1786
1786
|
if (!await pathExists(dir)) {
|
|
1787
1787
|
await mkdirs(dir);
|
|
1788
1788
|
}
|
|
1789
|
-
return
|
|
1789
|
+
return fs12.symlink(srcpath, dstpath, toType);
|
|
1790
1790
|
}
|
|
1791
1791
|
function createSymlinkSync(srcpath, dstpath, type) {
|
|
1792
1792
|
let stats;
|
|
1793
1793
|
try {
|
|
1794
|
-
stats =
|
|
1794
|
+
stats = fs12.lstatSync(dstpath);
|
|
1795
1795
|
} catch {
|
|
1796
1796
|
}
|
|
1797
1797
|
if (stats && stats.isSymbolicLink()) {
|
|
1798
|
-
const srcStat =
|
|
1799
|
-
const dstStat =
|
|
1798
|
+
const srcStat = fs12.statSync(srcpath);
|
|
1799
|
+
const dstStat = fs12.statSync(dstpath);
|
|
1800
1800
|
if (areIdentical(srcStat, dstStat)) return;
|
|
1801
1801
|
}
|
|
1802
1802
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
1803
1803
|
srcpath = relative.toDst;
|
|
1804
1804
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
1805
|
-
const dir =
|
|
1806
|
-
const exists =
|
|
1807
|
-
if (exists) return
|
|
1805
|
+
const dir = path13.dirname(dstpath);
|
|
1806
|
+
const exists = fs12.existsSync(dir);
|
|
1807
|
+
if (exists) return fs12.symlinkSync(srcpath, dstpath, type);
|
|
1808
1808
|
mkdirsSync(dir);
|
|
1809
|
-
return
|
|
1809
|
+
return fs12.symlinkSync(srcpath, dstpath, type);
|
|
1810
1810
|
}
|
|
1811
1811
|
module2.exports = {
|
|
1812
1812
|
createSymlink: u(createSymlink),
|
|
@@ -1873,9 +1873,9 @@ var require_jsonfile = __commonJS({
|
|
|
1873
1873
|
if (typeof options === "string") {
|
|
1874
1874
|
options = { encoding: options };
|
|
1875
1875
|
}
|
|
1876
|
-
const
|
|
1876
|
+
const fs12 = options.fs || _fs;
|
|
1877
1877
|
const shouldThrow = "throws" in options ? options.throws : true;
|
|
1878
|
-
let data = await universalify.fromCallback(
|
|
1878
|
+
let data = await universalify.fromCallback(fs12.readFile)(file, options);
|
|
1879
1879
|
data = stripBom(data);
|
|
1880
1880
|
let obj;
|
|
1881
1881
|
try {
|
|
@@ -1895,10 +1895,10 @@ var require_jsonfile = __commonJS({
|
|
|
1895
1895
|
if (typeof options === "string") {
|
|
1896
1896
|
options = { encoding: options };
|
|
1897
1897
|
}
|
|
1898
|
-
const
|
|
1898
|
+
const fs12 = options.fs || _fs;
|
|
1899
1899
|
const shouldThrow = "throws" in options ? options.throws : true;
|
|
1900
1900
|
try {
|
|
1901
|
-
let content =
|
|
1901
|
+
let content = fs12.readFileSync(file, options);
|
|
1902
1902
|
content = stripBom(content);
|
|
1903
1903
|
return JSON.parse(content, options.reviver);
|
|
1904
1904
|
} catch (err) {
|
|
@@ -1911,15 +1911,15 @@ var require_jsonfile = __commonJS({
|
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
1913
|
async function _writeFile(file, obj, options = {}) {
|
|
1914
|
-
const
|
|
1914
|
+
const fs12 = options.fs || _fs;
|
|
1915
1915
|
const str = stringify2(obj, options);
|
|
1916
|
-
await universalify.fromCallback(
|
|
1916
|
+
await universalify.fromCallback(fs12.writeFile)(file, str, options);
|
|
1917
1917
|
}
|
|
1918
1918
|
var writeFile = universalify.fromPromise(_writeFile);
|
|
1919
1919
|
function writeFileSync(file, obj, options = {}) {
|
|
1920
|
-
const
|
|
1920
|
+
const fs12 = options.fs || _fs;
|
|
1921
1921
|
const str = stringify2(obj, options);
|
|
1922
|
-
return
|
|
1922
|
+
return fs12.writeFileSync(file, str, options);
|
|
1923
1923
|
}
|
|
1924
1924
|
var jsonfile = {
|
|
1925
1925
|
readFile,
|
|
@@ -1951,23 +1951,23 @@ var require_output_file = __commonJS({
|
|
|
1951
1951
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
|
|
1952
1952
|
"use strict";
|
|
1953
1953
|
var u = require_universalify().fromPromise;
|
|
1954
|
-
var
|
|
1955
|
-
var
|
|
1954
|
+
var fs12 = require_fs();
|
|
1955
|
+
var path13 = require("path");
|
|
1956
1956
|
var mkdir = require_mkdirs();
|
|
1957
1957
|
var pathExists = require_path_exists().pathExists;
|
|
1958
1958
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
1959
|
-
const dir =
|
|
1959
|
+
const dir = path13.dirname(file);
|
|
1960
1960
|
if (!await pathExists(dir)) {
|
|
1961
1961
|
await mkdir.mkdirs(dir);
|
|
1962
1962
|
}
|
|
1963
|
-
return
|
|
1963
|
+
return fs12.writeFile(file, data, encoding);
|
|
1964
1964
|
}
|
|
1965
1965
|
function outputFileSync(file, ...args) {
|
|
1966
|
-
const dir =
|
|
1967
|
-
if (!
|
|
1966
|
+
const dir = path13.dirname(file);
|
|
1967
|
+
if (!fs12.existsSync(dir)) {
|
|
1968
1968
|
mkdir.mkdirsSync(dir);
|
|
1969
1969
|
}
|
|
1970
|
-
|
|
1970
|
+
fs12.writeFileSync(file, ...args);
|
|
1971
1971
|
}
|
|
1972
1972
|
module2.exports = {
|
|
1973
1973
|
outputFile: u(outputFile),
|
|
@@ -2026,8 +2026,8 @@ var require_json = __commonJS({
|
|
|
2026
2026
|
var require_move = __commonJS({
|
|
2027
2027
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
|
|
2028
2028
|
"use strict";
|
|
2029
|
-
var
|
|
2030
|
-
var
|
|
2029
|
+
var fs12 = require_fs();
|
|
2030
|
+
var path13 = require("path");
|
|
2031
2031
|
var { copy: copy2 } = require_copy2();
|
|
2032
2032
|
var { remove } = require_remove();
|
|
2033
2033
|
var { mkdirp } = require_mkdirs();
|
|
@@ -2037,8 +2037,8 @@ var require_move = __commonJS({
|
|
|
2037
2037
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2038
2038
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
2039
2039
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
2040
|
-
const destParent =
|
|
2041
|
-
const parsedParentPath =
|
|
2040
|
+
const destParent = path13.dirname(dest);
|
|
2041
|
+
const parsedParentPath = path13.parse(destParent);
|
|
2042
2042
|
if (parsedParentPath.root !== destParent) {
|
|
2043
2043
|
await mkdirp(destParent);
|
|
2044
2044
|
}
|
|
@@ -2053,7 +2053,7 @@ var require_move = __commonJS({
|
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
2055
|
try {
|
|
2056
|
-
await
|
|
2056
|
+
await fs12.rename(src, dest);
|
|
2057
2057
|
} catch (err) {
|
|
2058
2058
|
if (err.code !== "EXDEV") {
|
|
2059
2059
|
throw err;
|
|
@@ -2078,8 +2078,8 @@ var require_move = __commonJS({
|
|
|
2078
2078
|
var require_move_sync = __commonJS({
|
|
2079
2079
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.0-a6b1b4d5ad-c9fe7b23dd.zip/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
|
|
2080
2080
|
"use strict";
|
|
2081
|
-
var
|
|
2082
|
-
var
|
|
2081
|
+
var fs12 = require_graceful_fs();
|
|
2082
|
+
var path13 = require("path");
|
|
2083
2083
|
var copySync = require_copy2().copySync;
|
|
2084
2084
|
var removeSync = require_remove().removeSync;
|
|
2085
2085
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -2089,12 +2089,12 @@ var require_move_sync = __commonJS({
|
|
|
2089
2089
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2090
2090
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
2091
2091
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
2092
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
2092
|
+
if (!isParentRoot(dest)) mkdirpSync(path13.dirname(dest));
|
|
2093
2093
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
2094
2094
|
}
|
|
2095
2095
|
function isParentRoot(dest) {
|
|
2096
|
-
const parent =
|
|
2097
|
-
const parsedPath =
|
|
2096
|
+
const parent = path13.dirname(dest);
|
|
2097
|
+
const parsedPath = path13.parse(parent);
|
|
2098
2098
|
return parsedPath.root === parent;
|
|
2099
2099
|
}
|
|
2100
2100
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -2103,12 +2103,12 @@ var require_move_sync = __commonJS({
|
|
|
2103
2103
|
removeSync(dest);
|
|
2104
2104
|
return rename(src, dest, overwrite);
|
|
2105
2105
|
}
|
|
2106
|
-
if (
|
|
2106
|
+
if (fs12.existsSync(dest)) throw new Error("dest already exists.");
|
|
2107
2107
|
return rename(src, dest, overwrite);
|
|
2108
2108
|
}
|
|
2109
2109
|
function rename(src, dest, overwrite) {
|
|
2110
2110
|
try {
|
|
2111
|
-
|
|
2111
|
+
fs12.renameSync(src, dest);
|
|
2112
2112
|
} catch (err) {
|
|
2113
2113
|
if (err.code !== "EXDEV") throw err;
|
|
2114
2114
|
return moveAcrossDevice(src, dest, overwrite);
|
|
@@ -2178,15 +2178,15 @@ var require_core = __commonJS({
|
|
|
2178
2178
|
* @param path the path to the part of the refinement where the error occurrs
|
|
2179
2179
|
* @param message the human readable message describing the nature of the error
|
|
2180
2180
|
*/
|
|
2181
|
-
constructor(
|
|
2182
|
-
super(`Expected ${
|
|
2183
|
-
this.path =
|
|
2181
|
+
constructor(path13, message) {
|
|
2182
|
+
super(`Expected ${path13[0]}: ${path13.slice(1).join(".")} - ${message}`);
|
|
2183
|
+
this.path = path13;
|
|
2184
2184
|
}
|
|
2185
2185
|
};
|
|
2186
2186
|
exports2.RefinementError = RefinementError2;
|
|
2187
2187
|
function attemptRefine(refine) {
|
|
2188
|
-
return function _attemptRefine(
|
|
2189
|
-
const result = refine(
|
|
2188
|
+
return function _attemptRefine(path13, v, fallback) {
|
|
2189
|
+
const result = refine(path13, v);
|
|
2190
2190
|
return result instanceof RefinementError2 ? fallback : result;
|
|
2191
2191
|
};
|
|
2192
2192
|
}
|
|
@@ -2196,24 +2196,24 @@ var require_core = __commonJS({
|
|
|
2196
2196
|
}
|
|
2197
2197
|
exports2.isRefinementError = isRefinementError;
|
|
2198
2198
|
function refineAny3(...refinements) {
|
|
2199
|
-
return function(
|
|
2199
|
+
return function(path13, v) {
|
|
2200
2200
|
const errors = [];
|
|
2201
2201
|
for (let i = 0; i < refinements.length; i++) {
|
|
2202
|
-
const result = refinements[i](
|
|
2202
|
+
const result = refinements[i](path13, v);
|
|
2203
2203
|
if (result instanceof RefinementError2) {
|
|
2204
2204
|
errors.push(result);
|
|
2205
2205
|
} else {
|
|
2206
2206
|
return result;
|
|
2207
2207
|
}
|
|
2208
2208
|
}
|
|
2209
|
-
return new RefinementError2(
|
|
2209
|
+
return new RefinementError2(path13, `
|
|
2210
2210
|
${errors.map((e) => e.message).join("\n OR \n ")}`);
|
|
2211
2211
|
};
|
|
2212
2212
|
}
|
|
2213
2213
|
exports2.refineAny = refineAny3;
|
|
2214
2214
|
function useRefine(refine) {
|
|
2215
|
-
return function _useRefine(
|
|
2216
|
-
const result = refine(
|
|
2215
|
+
return function _useRefine(path13, v) {
|
|
2216
|
+
const result = refine(path13, v);
|
|
2217
2217
|
if (result instanceof RefinementError2) {
|
|
2218
2218
|
throw result;
|
|
2219
2219
|
} else {
|
|
@@ -2224,8 +2224,8 @@ var require_core = __commonJS({
|
|
|
2224
2224
|
exports2.useRefine = useRefine;
|
|
2225
2225
|
function canRefine2(refine) {
|
|
2226
2226
|
let localLastCanRefineRefinementError = new RefinementError2([], "Incorrect error fetched");
|
|
2227
|
-
function _canRefine(
|
|
2228
|
-
const result = refine(
|
|
2227
|
+
function _canRefine(path13, v) {
|
|
2228
|
+
const result = refine(path13, v);
|
|
2229
2229
|
if (result instanceof RefinementError2) {
|
|
2230
2230
|
localLastCanRefineRefinementError = result;
|
|
2231
2231
|
return false;
|
|
@@ -2240,16 +2240,16 @@ var require_core = __commonJS({
|
|
|
2240
2240
|
}
|
|
2241
2241
|
exports2.canRefine = canRefine2;
|
|
2242
2242
|
function makeRefinement2(definition) {
|
|
2243
|
-
function doRefinement(d,
|
|
2243
|
+
function doRefinement(d, path13, v) {
|
|
2244
2244
|
if (typeof d === "function") {
|
|
2245
|
-
return d(
|
|
2245
|
+
return d(path13, v);
|
|
2246
2246
|
}
|
|
2247
2247
|
if (typeof v !== "object" || v === null) {
|
|
2248
|
-
return new RefinementError2(
|
|
2248
|
+
return new RefinementError2(path13, `to be an Object`);
|
|
2249
2249
|
}
|
|
2250
2250
|
const o = {};
|
|
2251
2251
|
for (let [k, vInner] of Object.entries(d)) {
|
|
2252
|
-
const result = doRefinement(vInner,
|
|
2252
|
+
const result = doRefinement(vInner, path13.concat(k), v[k]);
|
|
2253
2253
|
if (result instanceof RefinementError2) {
|
|
2254
2254
|
return result;
|
|
2255
2255
|
}
|
|
@@ -2257,7 +2257,7 @@ var require_core = __commonJS({
|
|
|
2257
2257
|
}
|
|
2258
2258
|
return o;
|
|
2259
2259
|
}
|
|
2260
|
-
return (
|
|
2260
|
+
return (path13, v) => doRefinement(definition, path13, v);
|
|
2261
2261
|
}
|
|
2262
2262
|
exports2.makeRefinement = makeRefinement2;
|
|
2263
2263
|
}
|
|
@@ -2274,19 +2274,19 @@ var require_array = __commonJS({
|
|
|
2274
2274
|
return Array.isArray(v);
|
|
2275
2275
|
}
|
|
2276
2276
|
exports2.isArray = isArray;
|
|
2277
|
-
function refineArray(
|
|
2278
|
-
return Array.isArray(v) ? v : new core_1.RefinementError(
|
|
2277
|
+
function refineArray(path13, v) {
|
|
2278
|
+
return Array.isArray(v) ? v : new core_1.RefinementError(path13, `to be an Array`);
|
|
2279
2279
|
}
|
|
2280
2280
|
exports2.refineArray = refineArray;
|
|
2281
2281
|
function refineArrayOf2(refineValues) {
|
|
2282
|
-
return (
|
|
2283
|
-
const array = refineArray(
|
|
2282
|
+
return (path13, v) => {
|
|
2283
|
+
const array = refineArray(path13, v);
|
|
2284
2284
|
if (array instanceof core_1.RefinementError) {
|
|
2285
2285
|
return array;
|
|
2286
2286
|
}
|
|
2287
2287
|
const arrayRefined = new Array(array.length);
|
|
2288
2288
|
for (let i = 0; i < array.length; i++) {
|
|
2289
|
-
const result = refineValues(
|
|
2289
|
+
const result = refineValues(path13.concat(i.toString()), array[i]);
|
|
2290
2290
|
if (result instanceof core_1.RefinementError) {
|
|
2291
2291
|
return result;
|
|
2292
2292
|
} else {
|
|
@@ -2298,9 +2298,9 @@ var require_array = __commonJS({
|
|
|
2298
2298
|
}
|
|
2299
2299
|
exports2.refineArrayOf = refineArrayOf2;
|
|
2300
2300
|
function refineFromEnumArray(...enumValues) {
|
|
2301
|
-
return (
|
|
2301
|
+
return (path13, v) => {
|
|
2302
2302
|
const index = enumValues.findIndex((eV) => eV === v);
|
|
2303
|
-
return index === -1 ? new core_1.RefinementError(
|
|
2303
|
+
return index === -1 ? new core_1.RefinementError(path13, `to be part of the enum "${enumValues.join('", "')}"`) : enumValues[index];
|
|
2304
2304
|
};
|
|
2305
2305
|
}
|
|
2306
2306
|
exports2.refineFromEnumArray = refineFromEnumArray;
|
|
@@ -2318,8 +2318,8 @@ var require_boolean = __commonJS({
|
|
|
2318
2318
|
return typeof v === "boolean";
|
|
2319
2319
|
}
|
|
2320
2320
|
exports2.isBoolean = isBoolean;
|
|
2321
|
-
function refineBoolean2(
|
|
2322
|
-
return typeof v === "boolean" ? v : new core_1.RefinementError(
|
|
2321
|
+
function refineBoolean2(path13, v) {
|
|
2322
|
+
return typeof v === "boolean" ? v : new core_1.RefinementError(path13, `to be a boolean`);
|
|
2323
2323
|
}
|
|
2324
2324
|
exports2.refineBoolean = refineBoolean2;
|
|
2325
2325
|
}
|
|
@@ -2336,24 +2336,24 @@ var require_object = __commonJS({
|
|
|
2336
2336
|
return typeof v === "object" && v !== null;
|
|
2337
2337
|
}
|
|
2338
2338
|
exports2.isObject = isObject;
|
|
2339
|
-
function refineObject(
|
|
2340
|
-
return isObject(v) ? v : new core_1.RefinementError(
|
|
2339
|
+
function refineObject(path13, v) {
|
|
2340
|
+
return isObject(v) ? v : new core_1.RefinementError(path13, `to be an Object`);
|
|
2341
2341
|
}
|
|
2342
2342
|
exports2.refineObject = refineObject;
|
|
2343
2343
|
function refineObjectOf2(refineKeys, refineValues) {
|
|
2344
|
-
return (
|
|
2345
|
-
const obj = refineObject(
|
|
2344
|
+
return (path13, v) => {
|
|
2345
|
+
const obj = refineObject(path13, v);
|
|
2346
2346
|
if (core_1.isRefinementError(obj)) {
|
|
2347
2347
|
return obj;
|
|
2348
2348
|
}
|
|
2349
2349
|
const objKeys = Object.keys(obj);
|
|
2350
2350
|
const objRefined = {};
|
|
2351
2351
|
for (let i = 0; i < objKeys.length; i++) {
|
|
2352
|
-
const resultKey = refineKeys(
|
|
2352
|
+
const resultKey = refineKeys(path13.concat("$Keys"), objKeys[i]);
|
|
2353
2353
|
if (core_1.isRefinementError(resultKey)) {
|
|
2354
2354
|
return resultKey;
|
|
2355
2355
|
}
|
|
2356
|
-
const resultValue = refineValues(
|
|
2356
|
+
const resultValue = refineValues(path13.concat(objKeys[i]), obj[objKeys[i]]);
|
|
2357
2357
|
if (core_1.isRefinementError(resultValue)) {
|
|
2358
2358
|
return resultValue;
|
|
2359
2359
|
}
|
|
@@ -2365,14 +2365,14 @@ var require_object = __commonJS({
|
|
|
2365
2365
|
exports2.refineObjectOf = refineObjectOf2;
|
|
2366
2366
|
function refineObjectWithKeysMatching(template, refineValue) {
|
|
2367
2367
|
const templateKeys = Object.keys(template);
|
|
2368
|
-
return (
|
|
2369
|
-
const o = refineObject(
|
|
2368
|
+
return (path13, v) => {
|
|
2369
|
+
const o = refineObject(path13, v);
|
|
2370
2370
|
if (o instanceof core_1.RefinementError) {
|
|
2371
2371
|
return o;
|
|
2372
2372
|
}
|
|
2373
2373
|
const entries = [];
|
|
2374
2374
|
for (const key of templateKeys) {
|
|
2375
|
-
const value = refineValue(
|
|
2375
|
+
const value = refineValue(path13.concat(key), o[key]);
|
|
2376
2376
|
if (value instanceof core_1.RefinementError) {
|
|
2377
2377
|
return value;
|
|
2378
2378
|
}
|
|
@@ -2400,16 +2400,16 @@ var require_option = __commonJS({
|
|
|
2400
2400
|
return v === null || v === void 0 ? f : v;
|
|
2401
2401
|
}
|
|
2402
2402
|
exports2.option = option;
|
|
2403
|
-
function refineOption(
|
|
2404
|
-
return v === null || v === void 0 ? v : new core_1.RefinementError(
|
|
2403
|
+
function refineOption(path13, v) {
|
|
2404
|
+
return v === null || v === void 0 ? v : new core_1.RefinementError(path13, `to be null or undefined`);
|
|
2405
2405
|
}
|
|
2406
2406
|
exports2.refineOption = refineOption;
|
|
2407
|
-
function refineUndefined2(
|
|
2408
|
-
return v === void 0 ? v : new core_1.RefinementError(
|
|
2407
|
+
function refineUndefined2(path13, v) {
|
|
2408
|
+
return v === void 0 ? v : new core_1.RefinementError(path13, `to be undefined`);
|
|
2409
2409
|
}
|
|
2410
2410
|
exports2.refineUndefined = refineUndefined2;
|
|
2411
|
-
function refineNull(
|
|
2412
|
-
return v === null ? v : new core_1.RefinementError(
|
|
2411
|
+
function refineNull(path13, v) {
|
|
2412
|
+
return v === null ? v : new core_1.RefinementError(path13, `to be null`);
|
|
2413
2413
|
}
|
|
2414
2414
|
exports2.refineNull = refineNull;
|
|
2415
2415
|
}
|
|
@@ -2426,14 +2426,14 @@ var require_string = __commonJS({
|
|
|
2426
2426
|
return typeof v === "string";
|
|
2427
2427
|
}
|
|
2428
2428
|
exports2.isString = isString;
|
|
2429
|
-
function refineString2(
|
|
2430
|
-
return typeof v === "string" ? v : new core_1.RefinementError(
|
|
2429
|
+
function refineString2(path13, v) {
|
|
2430
|
+
return typeof v === "string" ? v : new core_1.RefinementError(path13, `to be a String`);
|
|
2431
2431
|
}
|
|
2432
2432
|
exports2.refineString = refineString2;
|
|
2433
2433
|
function refineStringLiteral2(literal) {
|
|
2434
|
-
return function _refineStringLiteral(
|
|
2434
|
+
return function _refineStringLiteral(path13, v) {
|
|
2435
2435
|
if (v !== literal) {
|
|
2436
|
-
return new core_1.RefinementError(
|
|
2436
|
+
return new core_1.RefinementError(path13, `should be string literal "${literal}"`);
|
|
2437
2437
|
}
|
|
2438
2438
|
return literal;
|
|
2439
2439
|
};
|
|
@@ -2444,13 +2444,13 @@ var require_string = __commonJS({
|
|
|
2444
2444
|
}
|
|
2445
2445
|
exports2.isStringLiteral = isStringLiteral;
|
|
2446
2446
|
function refineStringRegex(regex) {
|
|
2447
|
-
return function _refineStringRegex(
|
|
2448
|
-
const string = refineString2(
|
|
2447
|
+
return function _refineStringRegex(path13, v) {
|
|
2448
|
+
const string = refineString2(path13, v);
|
|
2449
2449
|
if (string instanceof core_1.RefinementError) {
|
|
2450
2450
|
return string;
|
|
2451
2451
|
}
|
|
2452
2452
|
if (!regex.test(string)) {
|
|
2453
|
-
return new core_1.RefinementError(
|
|
2453
|
+
return new core_1.RefinementError(path13, `should be a string matching the regex ${regex.toString()}`);
|
|
2454
2454
|
}
|
|
2455
2455
|
return string;
|
|
2456
2456
|
};
|
|
@@ -2474,8 +2474,8 @@ var require_function = __commonJS({
|
|
|
2474
2474
|
return typeof v === "function";
|
|
2475
2475
|
}
|
|
2476
2476
|
exports2.isFunction = isFunction;
|
|
2477
|
-
function refineFunction(
|
|
2478
|
-
return typeof v === "function" ? v : new core_1.RefinementError(
|
|
2477
|
+
function refineFunction(path13, v) {
|
|
2478
|
+
return typeof v === "function" ? v : new core_1.RefinementError(path13, `to be a function`);
|
|
2479
2479
|
}
|
|
2480
2480
|
exports2.refineFunction = refineFunction;
|
|
2481
2481
|
}
|
|
@@ -2492,14 +2492,14 @@ var require_number = __commonJS({
|
|
|
2492
2492
|
return typeof v === "number";
|
|
2493
2493
|
}
|
|
2494
2494
|
exports2.isNumber = isNumber;
|
|
2495
|
-
function refineNumber(
|
|
2496
|
-
return typeof v === "number" ? v : new core_1.RefinementError(
|
|
2495
|
+
function refineNumber(path13, v) {
|
|
2496
|
+
return typeof v === "number" ? v : new core_1.RefinementError(path13, `to be a Number`);
|
|
2497
2497
|
}
|
|
2498
2498
|
exports2.refineNumber = refineNumber;
|
|
2499
2499
|
function refineNumberLiteral(literal) {
|
|
2500
|
-
return function _refineStringLiteral(
|
|
2500
|
+
return function _refineStringLiteral(path13, v) {
|
|
2501
2501
|
if (v !== literal) {
|
|
2502
|
-
return new core_1.RefinementError(
|
|
2502
|
+
return new core_1.RefinementError(path13, `should be number literal "${literal}"`);
|
|
2503
2503
|
}
|
|
2504
2504
|
return literal;
|
|
2505
2505
|
};
|
|
@@ -5503,15 +5503,15 @@ var require_route = __commonJS({
|
|
|
5503
5503
|
};
|
|
5504
5504
|
}
|
|
5505
5505
|
function wrapConversion(toModel, graph) {
|
|
5506
|
-
const
|
|
5506
|
+
const path13 = [graph[toModel].parent, toModel];
|
|
5507
5507
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
5508
5508
|
let cur = graph[toModel].parent;
|
|
5509
5509
|
while (graph[cur].parent) {
|
|
5510
|
-
|
|
5510
|
+
path13.unshift(graph[cur].parent);
|
|
5511
5511
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
5512
5512
|
cur = graph[cur].parent;
|
|
5513
5513
|
}
|
|
5514
|
-
fn.conversion =
|
|
5514
|
+
fn.conversion = path13;
|
|
5515
5515
|
return fn;
|
|
5516
5516
|
}
|
|
5517
5517
|
module2.exports = function(fromModel) {
|
|
@@ -6705,8 +6705,8 @@ var require_types = __commonJS({
|
|
|
6705
6705
|
// pnp:/builds/normed/bundle/.yarn/cache/mime-npm-1.6.0-60ae95038a-b7d98bb1e0.zip/node_modules/mime/mime.js
|
|
6706
6706
|
var require_mime = __commonJS({
|
|
6707
6707
|
"pnp:/builds/normed/bundle/.yarn/cache/mime-npm-1.6.0-60ae95038a-b7d98bb1e0.zip/node_modules/mime/mime.js"(exports2, module2) {
|
|
6708
|
-
var
|
|
6709
|
-
var
|
|
6708
|
+
var path13 = require("path");
|
|
6709
|
+
var fs12 = require("fs");
|
|
6710
6710
|
function Mime() {
|
|
6711
6711
|
this.types = /* @__PURE__ */ Object.create(null);
|
|
6712
6712
|
this.extensions = /* @__PURE__ */ Object.create(null);
|
|
@@ -6727,7 +6727,7 @@ var require_mime = __commonJS({
|
|
|
6727
6727
|
};
|
|
6728
6728
|
Mime.prototype.load = function(file) {
|
|
6729
6729
|
this._loading = file;
|
|
6730
|
-
var map = {}, content =
|
|
6730
|
+
var map = {}, content = fs12.readFileSync(file, "ascii"), lines = content.split(/[\r\n]+/);
|
|
6731
6731
|
lines.forEach(function(line) {
|
|
6732
6732
|
var fields = line.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/);
|
|
6733
6733
|
map[fields.shift()] = fields;
|
|
@@ -6735,8 +6735,8 @@ var require_mime = __commonJS({
|
|
|
6735
6735
|
this.define(map);
|
|
6736
6736
|
this._loading = null;
|
|
6737
6737
|
};
|
|
6738
|
-
Mime.prototype.lookup = function(
|
|
6739
|
-
var ext =
|
|
6738
|
+
Mime.prototype.lookup = function(path14, fallback) {
|
|
6739
|
+
var ext = path14.replace(/^.*[\.\/\\]/, "").toLowerCase();
|
|
6740
6740
|
return this.types[ext] || fallback || this.default_type;
|
|
6741
6741
|
};
|
|
6742
6742
|
Mime.prototype.extension = function(mimeType) {
|
|
@@ -6902,16 +6902,16 @@ var require_util2 = __commonJS({
|
|
|
6902
6902
|
}
|
|
6903
6903
|
exports2.urlGenerate = urlGenerate;
|
|
6904
6904
|
function normalize(aPath) {
|
|
6905
|
-
var
|
|
6905
|
+
var path13 = aPath;
|
|
6906
6906
|
var url = urlParse(aPath);
|
|
6907
6907
|
if (url) {
|
|
6908
6908
|
if (!url.path) {
|
|
6909
6909
|
return aPath;
|
|
6910
6910
|
}
|
|
6911
|
-
|
|
6911
|
+
path13 = url.path;
|
|
6912
6912
|
}
|
|
6913
|
-
var isAbsolute = exports2.isAbsolute(
|
|
6914
|
-
var parts =
|
|
6913
|
+
var isAbsolute = exports2.isAbsolute(path13);
|
|
6914
|
+
var parts = path13.split(/\/+/);
|
|
6915
6915
|
for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
|
|
6916
6916
|
part = parts[i];
|
|
6917
6917
|
if (part === ".") {
|
|
@@ -6928,15 +6928,15 @@ var require_util2 = __commonJS({
|
|
|
6928
6928
|
}
|
|
6929
6929
|
}
|
|
6930
6930
|
}
|
|
6931
|
-
|
|
6932
|
-
if (
|
|
6933
|
-
|
|
6931
|
+
path13 = parts.join("/");
|
|
6932
|
+
if (path13 === "") {
|
|
6933
|
+
path13 = isAbsolute ? "/" : ".";
|
|
6934
6934
|
}
|
|
6935
6935
|
if (url) {
|
|
6936
|
-
url.path =
|
|
6936
|
+
url.path = path13;
|
|
6937
6937
|
return urlGenerate(url);
|
|
6938
6938
|
}
|
|
6939
|
-
return
|
|
6939
|
+
return path13;
|
|
6940
6940
|
}
|
|
6941
6941
|
exports2.normalize = normalize;
|
|
6942
6942
|
function join2(aRoot, aPath) {
|
|
@@ -8531,13 +8531,13 @@ var require_fs2 = __commonJS({
|
|
|
8531
8531
|
"pnp:/builds/normed/bundle/.yarn/cache/less-npm-4.3.0-29a3ad37f8-893d058939.zip/node_modules/less/lib/less-node/fs.js"(exports2) {
|
|
8532
8532
|
"use strict";
|
|
8533
8533
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8534
|
-
var
|
|
8534
|
+
var fs12;
|
|
8535
8535
|
try {
|
|
8536
|
-
|
|
8536
|
+
fs12 = require_graceful_fs();
|
|
8537
8537
|
} catch (e) {
|
|
8538
|
-
|
|
8538
|
+
fs12 = require("fs");
|
|
8539
8539
|
}
|
|
8540
|
-
exports2.default =
|
|
8540
|
+
exports2.default = fs12;
|
|
8541
8541
|
}
|
|
8542
8542
|
});
|
|
8543
8543
|
|
|
@@ -8565,11 +8565,11 @@ var require_abstract_file_manager = __commonJS({
|
|
|
8565
8565
|
}
|
|
8566
8566
|
return filename.slice(0, j + 1);
|
|
8567
8567
|
};
|
|
8568
|
-
AbstractFileManager2.prototype.tryAppendExtension = function(
|
|
8569
|
-
return /(\.[a-z]*$)|([?;].*)$/.test(
|
|
8568
|
+
AbstractFileManager2.prototype.tryAppendExtension = function(path13, ext) {
|
|
8569
|
+
return /(\.[a-z]*$)|([?;].*)$/.test(path13) ? path13 : path13 + ext;
|
|
8570
8570
|
};
|
|
8571
|
-
AbstractFileManager2.prototype.tryAppendLessExtension = function(
|
|
8572
|
-
return this.tryAppendExtension(
|
|
8571
|
+
AbstractFileManager2.prototype.tryAppendLessExtension = function(path13) {
|
|
8572
|
+
return this.tryAppendExtension(path13, ".less");
|
|
8573
8573
|
};
|
|
8574
8574
|
AbstractFileManager2.prototype.supportsSync = function() {
|
|
8575
8575
|
return false;
|
|
@@ -8990,9 +8990,9 @@ var require_auth = __commonJS({
|
|
|
8990
8990
|
nc = nc + "";
|
|
8991
8991
|
return padding.substr(0, 8 - nc.length) + nc;
|
|
8992
8992
|
};
|
|
8993
|
-
digest.generate = function(header, user, pass, method,
|
|
8993
|
+
digest.generate = function(header, user, pass, method, path13) {
|
|
8994
8994
|
var nc = 1, cnonce = null, challenge = digest.parse_header(header);
|
|
8995
|
-
var ha1 = md5(user + ":" + challenge.realm + ":" + pass), ha2 = md5(method.toUpperCase() + ":" +
|
|
8995
|
+
var ha1 = md5(user + ":" + challenge.realm + ":" + pass), ha2 = md5(method.toUpperCase() + ":" + path13), resp = [ha1, challenge.nonce];
|
|
8996
8996
|
if (typeof challenge.qop === "string") {
|
|
8997
8997
|
cnonce = md5(Math.random().toString(36)).substr(0, 8);
|
|
8998
8998
|
nc = digest.update_nc(nc);
|
|
@@ -9002,7 +9002,7 @@ var require_auth = __commonJS({
|
|
|
9002
9002
|
resp = resp.concat(ha2);
|
|
9003
9003
|
}
|
|
9004
9004
|
var params = {
|
|
9005
|
-
uri:
|
|
9005
|
+
uri: path13,
|
|
9006
9006
|
realm: challenge.realm,
|
|
9007
9007
|
nonce: challenge.nonce,
|
|
9008
9008
|
username: user,
|
|
@@ -14337,7 +14337,7 @@ var require_decoder = __commonJS({
|
|
|
14337
14337
|
// pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/utils.js
|
|
14338
14338
|
var require_utils3 = __commonJS({
|
|
14339
14339
|
"pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/utils.js"(exports2, module2) {
|
|
14340
|
-
var
|
|
14340
|
+
var fs12 = require("fs");
|
|
14341
14341
|
var url = require("url");
|
|
14342
14342
|
var stream = require("stream");
|
|
14343
14343
|
function resolve_url(href, base) {
|
|
@@ -14388,7 +14388,7 @@ var require_utils3 = __commonJS({
|
|
|
14388
14388
|
return cb(given_length);
|
|
14389
14389
|
if (stream2.end !== void 0 && stream2.end !== Infinity && stream2.start !== void 0)
|
|
14390
14390
|
return cb(stream2.end + 1 - (stream2.start || 0));
|
|
14391
|
-
|
|
14391
|
+
fs12.stat(stream2.path, function(err, stat) {
|
|
14392
14392
|
cb(stat ? stat.size - (stream2.start || 0) : null);
|
|
14393
14393
|
});
|
|
14394
14394
|
}
|
|
@@ -14496,7 +14496,7 @@ var require_package = __commonJS({
|
|
|
14496
14496
|
// pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/needle.js
|
|
14497
14497
|
var require_needle = __commonJS({
|
|
14498
14498
|
"pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/needle.js"(exports2, module2) {
|
|
14499
|
-
var
|
|
14499
|
+
var fs12 = require("fs");
|
|
14500
14500
|
var http = require("http");
|
|
14501
14501
|
var https = require("https");
|
|
14502
14502
|
var url = require("url");
|
|
@@ -14896,7 +14896,7 @@ var require_needle = __commonJS({
|
|
|
14896
14896
|
if (err && err.message == "write after end") request.destroy();
|
|
14897
14897
|
});
|
|
14898
14898
|
if (config.output && resp.statusCode == 200) {
|
|
14899
|
-
var file =
|
|
14899
|
+
var file = fs12.createWriteStream(config.output);
|
|
14900
14900
|
file.on("error", had_error);
|
|
14901
14901
|
out.on("end", function() {
|
|
14902
14902
|
if (file.writable) file.end();
|
|
@@ -16570,47 +16570,47 @@ var require_contexts = __commonJS({
|
|
|
16570
16570
|
}
|
|
16571
16571
|
return true;
|
|
16572
16572
|
};
|
|
16573
|
-
contexts.Eval.prototype.pathRequiresRewrite = function(
|
|
16573
|
+
contexts.Eval.prototype.pathRequiresRewrite = function(path13) {
|
|
16574
16574
|
var isRelative = this.rewriteUrls === Constants.RewriteUrls.LOCAL ? isPathLocalRelative : isPathRelative;
|
|
16575
|
-
return isRelative(
|
|
16575
|
+
return isRelative(path13);
|
|
16576
16576
|
};
|
|
16577
|
-
contexts.Eval.prototype.rewritePath = function(
|
|
16577
|
+
contexts.Eval.prototype.rewritePath = function(path13, rootpath) {
|
|
16578
16578
|
var newPath;
|
|
16579
16579
|
rootpath = rootpath || "";
|
|
16580
|
-
newPath = this.normalizePath(rootpath +
|
|
16581
|
-
if (isPathLocalRelative(
|
|
16580
|
+
newPath = this.normalizePath(rootpath + path13);
|
|
16581
|
+
if (isPathLocalRelative(path13) && isPathRelative(rootpath) && isPathLocalRelative(newPath) === false) {
|
|
16582
16582
|
newPath = "./".concat(newPath);
|
|
16583
16583
|
}
|
|
16584
16584
|
return newPath;
|
|
16585
16585
|
};
|
|
16586
|
-
contexts.Eval.prototype.normalizePath = function(
|
|
16587
|
-
var segments =
|
|
16586
|
+
contexts.Eval.prototype.normalizePath = function(path13) {
|
|
16587
|
+
var segments = path13.split("/").reverse();
|
|
16588
16588
|
var segment;
|
|
16589
|
-
|
|
16589
|
+
path13 = [];
|
|
16590
16590
|
while (segments.length !== 0) {
|
|
16591
16591
|
segment = segments.pop();
|
|
16592
16592
|
switch (segment) {
|
|
16593
16593
|
case ".":
|
|
16594
16594
|
break;
|
|
16595
16595
|
case "..":
|
|
16596
|
-
if (
|
|
16597
|
-
|
|
16596
|
+
if (path13.length === 0 || path13[path13.length - 1] === "..") {
|
|
16597
|
+
path13.push(segment);
|
|
16598
16598
|
} else {
|
|
16599
|
-
|
|
16599
|
+
path13.pop();
|
|
16600
16600
|
}
|
|
16601
16601
|
break;
|
|
16602
16602
|
default:
|
|
16603
|
-
|
|
16603
|
+
path13.push(segment);
|
|
16604
16604
|
break;
|
|
16605
16605
|
}
|
|
16606
16606
|
}
|
|
16607
|
-
return
|
|
16607
|
+
return path13.join("/");
|
|
16608
16608
|
};
|
|
16609
|
-
function isPathRelative(
|
|
16610
|
-
return !/^(?:[a-z-]+:|\/|#)/i.test(
|
|
16609
|
+
function isPathRelative(path13) {
|
|
16610
|
+
return !/^(?:[a-z-]+:|\/|#)/i.test(path13);
|
|
16611
16611
|
}
|
|
16612
|
-
function isPathLocalRelative(
|
|
16613
|
-
return
|
|
16612
|
+
function isPathLocalRelative(path13) {
|
|
16613
|
+
return path13.charAt(0) === ".";
|
|
16614
16614
|
}
|
|
16615
16615
|
}
|
|
16616
16616
|
});
|
|
@@ -17229,22 +17229,22 @@ var require_extend_visitor = __commonJS({
|
|
|
17229
17229
|
return false;
|
|
17230
17230
|
};
|
|
17231
17231
|
ProcessExtendsVisitor2.prototype.extendSelector = function(matches, selectorPath, replacementSelector, isVisible) {
|
|
17232
|
-
var currentSelectorPathIndex = 0, currentSelectorPathElementIndex = 0,
|
|
17232
|
+
var currentSelectorPathIndex = 0, currentSelectorPathElementIndex = 0, path13 = [], matchIndex, selector, firstElement, match, newElements;
|
|
17233
17233
|
for (matchIndex = 0; matchIndex < matches.length; matchIndex++) {
|
|
17234
17234
|
match = matches[matchIndex];
|
|
17235
17235
|
selector = selectorPath[match.pathIndex];
|
|
17236
17236
|
firstElement = new tree_1.default.Element(match.initialCombinator, replacementSelector.elements[0].value, replacementSelector.elements[0].isVariable, replacementSelector.elements[0].getIndex(), replacementSelector.elements[0].fileInfo());
|
|
17237
17237
|
if (match.pathIndex > currentSelectorPathIndex && currentSelectorPathElementIndex > 0) {
|
|
17238
|
-
|
|
17238
|
+
path13[path13.length - 1].elements = path13[path13.length - 1].elements.concat(selectorPath[currentSelectorPathIndex].elements.slice(currentSelectorPathElementIndex));
|
|
17239
17239
|
currentSelectorPathElementIndex = 0;
|
|
17240
17240
|
currentSelectorPathIndex++;
|
|
17241
17241
|
}
|
|
17242
17242
|
newElements = selector.elements.slice(currentSelectorPathElementIndex, match.index).concat([firstElement]).concat(replacementSelector.elements.slice(1));
|
|
17243
17243
|
if (currentSelectorPathIndex === match.pathIndex && matchIndex > 0) {
|
|
17244
|
-
|
|
17244
|
+
path13[path13.length - 1].elements = path13[path13.length - 1].elements.concat(newElements);
|
|
17245
17245
|
} else {
|
|
17246
|
-
|
|
17247
|
-
|
|
17246
|
+
path13 = path13.concat(selectorPath.slice(currentSelectorPathIndex, match.pathIndex));
|
|
17247
|
+
path13.push(new tree_1.default.Selector(newElements));
|
|
17248
17248
|
}
|
|
17249
17249
|
currentSelectorPathIndex = match.endPathIndex;
|
|
17250
17250
|
currentSelectorPathElementIndex = match.endPathElementIndex;
|
|
@@ -17254,11 +17254,11 @@ var require_extend_visitor = __commonJS({
|
|
|
17254
17254
|
}
|
|
17255
17255
|
}
|
|
17256
17256
|
if (currentSelectorPathIndex < selectorPath.length && currentSelectorPathElementIndex > 0) {
|
|
17257
|
-
|
|
17257
|
+
path13[path13.length - 1].elements = path13[path13.length - 1].elements.concat(selectorPath[currentSelectorPathIndex].elements.slice(currentSelectorPathElementIndex));
|
|
17258
17258
|
currentSelectorPathIndex++;
|
|
17259
17259
|
}
|
|
17260
|
-
|
|
17261
|
-
|
|
17260
|
+
path13 = path13.concat(selectorPath.slice(currentSelectorPathIndex, selectorPath.length));
|
|
17261
|
+
path13 = path13.map(function(currentValue) {
|
|
17262
17262
|
var derived = currentValue.createDerived(currentValue.elements);
|
|
17263
17263
|
if (isVisible) {
|
|
17264
17264
|
derived.ensureVisibility();
|
|
@@ -17267,7 +17267,7 @@ var require_extend_visitor = __commonJS({
|
|
|
17267
17267
|
}
|
|
17268
17268
|
return derived;
|
|
17269
17269
|
});
|
|
17270
|
-
return
|
|
17270
|
+
return path13;
|
|
17271
17271
|
};
|
|
17272
17272
|
ProcessExtendsVisitor2.prototype.visitMedia = function(mediaNode, visitArgs) {
|
|
17273
17273
|
var newAllExtends = mediaNode.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length - 1]);
|
|
@@ -19761,20 +19761,20 @@ var require_parser = __commonJS({
|
|
|
19761
19761
|
// stored in `import`, which we pass to the Import constructor.
|
|
19762
19762
|
//
|
|
19763
19763
|
"import": function() {
|
|
19764
|
-
var
|
|
19764
|
+
var path13;
|
|
19765
19765
|
var features;
|
|
19766
19766
|
var index = parserInput.i;
|
|
19767
19767
|
var dir = parserInput.$re(/^@import\s+/);
|
|
19768
19768
|
if (dir) {
|
|
19769
19769
|
var options = (dir ? this.importOptions() : null) || {};
|
|
19770
|
-
if (
|
|
19770
|
+
if (path13 = this.entities.quoted() || this.entities.url()) {
|
|
19771
19771
|
features = this.mediaFeatures({});
|
|
19772
19772
|
if (!parserInput.$char(";")) {
|
|
19773
19773
|
parserInput.i = index;
|
|
19774
19774
|
error("missing semi-colon or unrecognised media features on import");
|
|
19775
19775
|
}
|
|
19776
19776
|
features = features && new tree_1.default.Value(features);
|
|
19777
|
-
return new tree_1.default.Import(
|
|
19777
|
+
return new tree_1.default.Import(path13, features, options, index + currentIndex, fileInfo);
|
|
19778
19778
|
} else {
|
|
19779
19779
|
parserInput.i = index;
|
|
19780
19780
|
error("malformed import statement");
|
|
@@ -19925,7 +19925,7 @@ var require_parser = __commonJS({
|
|
|
19925
19925
|
// @plugin (args) "lib";
|
|
19926
19926
|
//
|
|
19927
19927
|
plugin: function() {
|
|
19928
|
-
var
|
|
19928
|
+
var path13;
|
|
19929
19929
|
var args;
|
|
19930
19930
|
var options;
|
|
19931
19931
|
var index = parserInput.i;
|
|
@@ -19940,12 +19940,12 @@ var require_parser = __commonJS({
|
|
|
19940
19940
|
} else {
|
|
19941
19941
|
options = { isPlugin: true };
|
|
19942
19942
|
}
|
|
19943
|
-
if (
|
|
19943
|
+
if (path13 = this.entities.quoted() || this.entities.url()) {
|
|
19944
19944
|
if (!parserInput.$char(";")) {
|
|
19945
19945
|
parserInput.i = index;
|
|
19946
19946
|
error("missing semi-colon on @plugin");
|
|
19947
19947
|
}
|
|
19948
|
-
return new tree_1.default.Import(
|
|
19948
|
+
return new tree_1.default.Import(path13, null, options, index + currentIndex, fileInfo);
|
|
19949
19949
|
} else {
|
|
19950
19950
|
parserInput.i = index;
|
|
19951
19951
|
error("malformed @plugin statement");
|
|
@@ -21248,7 +21248,7 @@ var require_ruleset = __commonJS({
|
|
|
21248
21248
|
var ruleNodes = [];
|
|
21249
21249
|
var debugInfo;
|
|
21250
21250
|
var rule;
|
|
21251
|
-
var
|
|
21251
|
+
var path13;
|
|
21252
21252
|
context.tabLevel = context.tabLevel || 0;
|
|
21253
21253
|
if (!this.root) {
|
|
21254
21254
|
context.tabLevel++;
|
|
@@ -21287,18 +21287,18 @@ var require_ruleset = __commonJS({
|
|
|
21287
21287
|
var pathSubCnt = void 0;
|
|
21288
21288
|
sep = context.compress ? "," : ",\n".concat(tabSetStr);
|
|
21289
21289
|
for (i = 0; i < pathCnt; i++) {
|
|
21290
|
-
|
|
21291
|
-
if (!(pathSubCnt =
|
|
21290
|
+
path13 = paths[i];
|
|
21291
|
+
if (!(pathSubCnt = path13.length)) {
|
|
21292
21292
|
continue;
|
|
21293
21293
|
}
|
|
21294
21294
|
if (i > 0) {
|
|
21295
21295
|
output.add(sep);
|
|
21296
21296
|
}
|
|
21297
21297
|
context.firstSelector = true;
|
|
21298
|
-
|
|
21298
|
+
path13[0].genCSS(context, output);
|
|
21299
21299
|
context.firstSelector = false;
|
|
21300
21300
|
for (j = 1; j < pathSubCnt; j++) {
|
|
21301
|
-
|
|
21301
|
+
path13[j].genCSS(context, output);
|
|
21302
21302
|
}
|
|
21303
21303
|
}
|
|
21304
21304
|
output.add((context.compress ? "{" : " {\n") + tabRuleStr);
|
|
@@ -21890,23 +21890,23 @@ var require_nested_at_rule = __commonJS({
|
|
|
21890
21890
|
evalNested: function(context) {
|
|
21891
21891
|
var i;
|
|
21892
21892
|
var value;
|
|
21893
|
-
var
|
|
21894
|
-
for (i = 0; i <
|
|
21895
|
-
if (
|
|
21893
|
+
var path13 = context.mediaPath.concat([this]);
|
|
21894
|
+
for (i = 0; i < path13.length; i++) {
|
|
21895
|
+
if (path13[i].type !== this.type) {
|
|
21896
21896
|
context.mediaBlocks.splice(i, 1);
|
|
21897
21897
|
return this;
|
|
21898
21898
|
}
|
|
21899
|
-
value =
|
|
21900
|
-
|
|
21899
|
+
value = path13[i].features instanceof value_1.default ? path13[i].features.value : path13[i].features;
|
|
21900
|
+
path13[i] = Array.isArray(value) ? value : [value];
|
|
21901
21901
|
}
|
|
21902
|
-
this.features = new value_1.default(this.permute(
|
|
21903
|
-
|
|
21902
|
+
this.features = new value_1.default(this.permute(path13).map(function(path14) {
|
|
21903
|
+
path14 = path14.map(function(fragment) {
|
|
21904
21904
|
return fragment.toCSS ? fragment : new anonymous_1.default(fragment);
|
|
21905
21905
|
});
|
|
21906
|
-
for (i =
|
|
21907
|
-
|
|
21906
|
+
for (i = path14.length - 1; i > 0; i--) {
|
|
21907
|
+
path14.splice(i, 0, new anonymous_1.default("and"));
|
|
21908
21908
|
}
|
|
21909
|
-
return new expression_1.default(
|
|
21909
|
+
return new expression_1.default(path14);
|
|
21910
21910
|
}));
|
|
21911
21911
|
this.setParent(this.features, this);
|
|
21912
21912
|
return new ruleset_1.default([], []);
|
|
@@ -22663,8 +22663,8 @@ var require_url = __commonJS({
|
|
|
22663
22663
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
22664
22664
|
var tslib_1 = require_tslib();
|
|
22665
22665
|
var node_1 = tslib_1.__importDefault(require_node());
|
|
22666
|
-
function escapePath(
|
|
22667
|
-
return
|
|
22666
|
+
function escapePath(path13) {
|
|
22667
|
+
return path13.replace(/[()'"\s]/g, function(match) {
|
|
22668
22668
|
return "\\".concat(match);
|
|
22669
22669
|
});
|
|
22670
22670
|
}
|
|
@@ -22782,11 +22782,11 @@ var require_import = __commonJS({
|
|
|
22782
22782
|
var anonymous_1 = tslib_1.__importDefault(require_anonymous());
|
|
22783
22783
|
var utils = tslib_1.__importStar(require_utils4());
|
|
22784
22784
|
var less_error_1 = tslib_1.__importDefault(require_less_error());
|
|
22785
|
-
var Import = function(
|
|
22785
|
+
var Import = function(path13, features, options, index, currentFileInfo, visibilityInfo) {
|
|
22786
22786
|
this.options = options;
|
|
22787
22787
|
this._index = index;
|
|
22788
22788
|
this._fileInfo = currentFileInfo;
|
|
22789
|
-
this.path =
|
|
22789
|
+
this.path = path13;
|
|
22790
22790
|
this.features = features;
|
|
22791
22791
|
this.allowRoot = true;
|
|
22792
22792
|
if (this.options.less !== void 0 || this.options.inline) {
|
|
@@ -22827,34 +22827,34 @@ var require_import = __commonJS({
|
|
|
22827
22827
|
return this.path instanceof url_1.default ? this.path.value.value : this.path.value;
|
|
22828
22828
|
},
|
|
22829
22829
|
isVariableImport: function() {
|
|
22830
|
-
var
|
|
22831
|
-
if (
|
|
22832
|
-
|
|
22830
|
+
var path13 = this.path;
|
|
22831
|
+
if (path13 instanceof url_1.default) {
|
|
22832
|
+
path13 = path13.value;
|
|
22833
22833
|
}
|
|
22834
|
-
if (
|
|
22835
|
-
return
|
|
22834
|
+
if (path13 instanceof quoted_1.default) {
|
|
22835
|
+
return path13.containsVariables();
|
|
22836
22836
|
}
|
|
22837
22837
|
return true;
|
|
22838
22838
|
},
|
|
22839
22839
|
evalForImport: function(context) {
|
|
22840
|
-
var
|
|
22841
|
-
if (
|
|
22842
|
-
|
|
22840
|
+
var path13 = this.path;
|
|
22841
|
+
if (path13 instanceof url_1.default) {
|
|
22842
|
+
path13 = path13.value;
|
|
22843
22843
|
}
|
|
22844
|
-
return new Import(
|
|
22844
|
+
return new Import(path13.eval(context), this.features, this.options, this._index, this._fileInfo, this.visibilityInfo());
|
|
22845
22845
|
},
|
|
22846
22846
|
evalPath: function(context) {
|
|
22847
|
-
var
|
|
22847
|
+
var path13 = this.path.eval(context);
|
|
22848
22848
|
var fileInfo = this._fileInfo;
|
|
22849
|
-
if (!(
|
|
22850
|
-
var pathValue =
|
|
22849
|
+
if (!(path13 instanceof url_1.default)) {
|
|
22850
|
+
var pathValue = path13.value;
|
|
22851
22851
|
if (fileInfo && pathValue && context.pathRequiresRewrite(pathValue)) {
|
|
22852
|
-
|
|
22852
|
+
path13.value = context.rewritePath(pathValue, fileInfo.rootpath);
|
|
22853
22853
|
} else {
|
|
22854
|
-
|
|
22854
|
+
path13.value = context.normalizePath(path13.value);
|
|
22855
22855
|
}
|
|
22856
22856
|
}
|
|
22857
|
-
return
|
|
22857
|
+
return path13;
|
|
22858
22858
|
},
|
|
22859
22859
|
eval: function(context) {
|
|
22860
22860
|
var result = this.doEval(context);
|
|
@@ -25517,14 +25517,14 @@ var require_source_map_output = __commonJS({
|
|
|
25517
25517
|
this._lineNumber = 0;
|
|
25518
25518
|
this._column = 0;
|
|
25519
25519
|
}
|
|
25520
|
-
SourceMapOutput2.prototype.removeBasepath = function(
|
|
25521
|
-
if (this._sourceMapBasepath &&
|
|
25522
|
-
|
|
25523
|
-
if (
|
|
25524
|
-
|
|
25520
|
+
SourceMapOutput2.prototype.removeBasepath = function(path13) {
|
|
25521
|
+
if (this._sourceMapBasepath && path13.indexOf(this._sourceMapBasepath) === 0) {
|
|
25522
|
+
path13 = path13.substring(this._sourceMapBasepath.length);
|
|
25523
|
+
if (path13.charAt(0) === "\\" || path13.charAt(0) === "/") {
|
|
25524
|
+
path13 = path13.substring(1);
|
|
25525
25525
|
}
|
|
25526
25526
|
}
|
|
25527
|
-
return
|
|
25527
|
+
return path13;
|
|
25528
25528
|
};
|
|
25529
25529
|
SourceMapOutput2.prototype.normalizeFilename = function(filename) {
|
|
25530
25530
|
filename = filename.replace(/\\/g, "/");
|
|
@@ -25799,11 +25799,11 @@ var require_import_manager = __commonJS({
|
|
|
25799
25799
|
this.queue = [];
|
|
25800
25800
|
this.files = {};
|
|
25801
25801
|
}
|
|
25802
|
-
ImportManager2.prototype.push = function(
|
|
25802
|
+
ImportManager2.prototype.push = function(path13, tryAppendExtension, currentFileInfo, importOptions, callback) {
|
|
25803
25803
|
var importManager = this, pluginLoader = this.context.pluginManager.Loader;
|
|
25804
|
-
this.queue.push(
|
|
25804
|
+
this.queue.push(path13);
|
|
25805
25805
|
var fileParsedFunc = function(e, root, fullPath) {
|
|
25806
|
-
importManager.queue.splice(importManager.queue.indexOf(
|
|
25806
|
+
importManager.queue.splice(importManager.queue.indexOf(path13), 1);
|
|
25807
25807
|
var importedEqualsRoot = fullPath === importManager.rootFilename;
|
|
25808
25808
|
if (importOptions.optional && e) {
|
|
25809
25809
|
callback(null, { rules: [] }, false, null);
|
|
@@ -25824,9 +25824,9 @@ var require_import_manager = __commonJS({
|
|
|
25824
25824
|
rootpath: currentFileInfo.rootpath,
|
|
25825
25825
|
rootFilename: currentFileInfo.rootFilename
|
|
25826
25826
|
};
|
|
25827
|
-
var fileManager = environment.getFileManager(
|
|
25827
|
+
var fileManager = environment.getFileManager(path13, currentFileInfo.currentDirectory, this.context, environment);
|
|
25828
25828
|
if (!fileManager) {
|
|
25829
|
-
fileParsedFunc({ message: "Could not find a file-manager for ".concat(
|
|
25829
|
+
fileParsedFunc({ message: "Could not find a file-manager for ".concat(path13) });
|
|
25830
25830
|
return;
|
|
25831
25831
|
}
|
|
25832
25832
|
var loadFileCallback = function(loadedFile2) {
|
|
@@ -25875,15 +25875,15 @@ var require_import_manager = __commonJS({
|
|
|
25875
25875
|
if (importOptions.isPlugin) {
|
|
25876
25876
|
context.mime = "application/javascript";
|
|
25877
25877
|
if (context.syncImport) {
|
|
25878
|
-
loadedFile = pluginLoader.loadPluginSync(
|
|
25878
|
+
loadedFile = pluginLoader.loadPluginSync(path13, currentFileInfo.currentDirectory, context, environment, fileManager);
|
|
25879
25879
|
} else {
|
|
25880
|
-
promise = pluginLoader.loadPlugin(
|
|
25880
|
+
promise = pluginLoader.loadPlugin(path13, currentFileInfo.currentDirectory, context, environment, fileManager);
|
|
25881
25881
|
}
|
|
25882
25882
|
} else {
|
|
25883
25883
|
if (context.syncImport) {
|
|
25884
|
-
loadedFile = fileManager.loadFileSync(
|
|
25884
|
+
loadedFile = fileManager.loadFileSync(path13, currentFileInfo.currentDirectory, context, environment);
|
|
25885
25885
|
} else {
|
|
25886
|
-
promise = fileManager.loadFile(
|
|
25886
|
+
promise = fileManager.loadFile(path13, currentFileInfo.currentDirectory, context, environment, function(err, loadedFile2) {
|
|
25887
25887
|
if (err) {
|
|
25888
25888
|
fileParsedFunc(err);
|
|
25889
25889
|
} else {
|
|
@@ -26749,7 +26749,7 @@ var require_readUInt = __commonJS({
|
|
|
26749
26749
|
var require_tiff = __commonJS({
|
|
26750
26750
|
"pnp:/builds/normed/bundle/.yarn/cache/image-size-patch-bc5785d808-6fbf67bc78.zip/node_modules/image-size/lib/types/tiff.js"(exports2, module2) {
|
|
26751
26751
|
"use strict";
|
|
26752
|
-
var
|
|
26752
|
+
var fs12 = require("fs");
|
|
26753
26753
|
var readUInt = require_readUInt();
|
|
26754
26754
|
function isTIFF(buffer) {
|
|
26755
26755
|
var hex4 = buffer.toString("hex", 0, 4);
|
|
@@ -26758,13 +26758,13 @@ var require_tiff = __commonJS({
|
|
|
26758
26758
|
function readIFD(buffer, filepath, isBigEndian) {
|
|
26759
26759
|
var ifdOffset = readUInt(buffer, 32, 4, isBigEndian);
|
|
26760
26760
|
var bufferSize = 1024;
|
|
26761
|
-
var fileSize =
|
|
26761
|
+
var fileSize = fs12.statSync(filepath).size;
|
|
26762
26762
|
if (ifdOffset + bufferSize > fileSize) {
|
|
26763
26763
|
bufferSize = fileSize - ifdOffset - 10;
|
|
26764
26764
|
}
|
|
26765
26765
|
var endBuffer = new Buffer(bufferSize);
|
|
26766
|
-
var descriptor =
|
|
26767
|
-
|
|
26766
|
+
var descriptor = fs12.openSync(filepath, "r");
|
|
26767
|
+
fs12.readSync(descriptor, endBuffer, 0, bufferSize, ifdOffset);
|
|
26768
26768
|
var ifdBuffer = endBuffer.slice(2);
|
|
26769
26769
|
return ifdBuffer;
|
|
26770
26770
|
}
|
|
@@ -26935,8 +26935,8 @@ var require_detector = __commonJS({
|
|
|
26935
26935
|
var require_lib4 = __commonJS({
|
|
26936
26936
|
"pnp:/builds/normed/bundle/.yarn/cache/image-size-patch-bc5785d808-6fbf67bc78.zip/node_modules/image-size/lib/index.js"(exports2, module2) {
|
|
26937
26937
|
"use strict";
|
|
26938
|
-
var
|
|
26939
|
-
var
|
|
26938
|
+
var fs12 = require("fs");
|
|
26939
|
+
var path13 = require("path");
|
|
26940
26940
|
var detector = require_detector();
|
|
26941
26941
|
var handlers = {};
|
|
26942
26942
|
handlers["bmp"] = require_bmp().detect;
|
|
@@ -26961,33 +26961,33 @@ var require_lib4 = __commonJS({
|
|
|
26961
26961
|
throw new TypeError("unsupported file type: " + type + " (file: " + filepath + ")");
|
|
26962
26962
|
}
|
|
26963
26963
|
function asyncFileToBuffer(filepath, callback) {
|
|
26964
|
-
|
|
26964
|
+
fs12.open(filepath, "r", function(err, descriptor) {
|
|
26965
26965
|
if (err) {
|
|
26966
26966
|
return callback(err);
|
|
26967
26967
|
}
|
|
26968
|
-
var size =
|
|
26968
|
+
var size = fs12.fstatSync(descriptor).size;
|
|
26969
26969
|
if (size <= 0) {
|
|
26970
26970
|
return callback(new Error("File size is not greater than 0 \u2014\u2014 " + filepath));
|
|
26971
26971
|
}
|
|
26972
26972
|
var bufferSize = Math.min(size, MaxBufferSize);
|
|
26973
26973
|
var buffer = new Buffer(bufferSize);
|
|
26974
|
-
|
|
26974
|
+
fs12.read(descriptor, buffer, 0, bufferSize, 0, function(err2) {
|
|
26975
26975
|
if (err2) {
|
|
26976
26976
|
return callback(err2);
|
|
26977
26977
|
}
|
|
26978
|
-
|
|
26978
|
+
fs12.close(descriptor, function(err3) {
|
|
26979
26979
|
callback(err3, buffer);
|
|
26980
26980
|
});
|
|
26981
26981
|
});
|
|
26982
26982
|
});
|
|
26983
26983
|
}
|
|
26984
26984
|
function syncFileToBuffer(filepath) {
|
|
26985
|
-
var descriptor =
|
|
26986
|
-
var size =
|
|
26985
|
+
var descriptor = fs12.openSync(filepath, "r");
|
|
26986
|
+
var size = fs12.fstatSync(descriptor).size;
|
|
26987
26987
|
var bufferSize = Math.min(size, MaxBufferSize);
|
|
26988
26988
|
var buffer = new Buffer(bufferSize);
|
|
26989
|
-
|
|
26990
|
-
|
|
26989
|
+
fs12.readSync(descriptor, buffer, 0, bufferSize, 0);
|
|
26990
|
+
fs12.closeSync(descriptor);
|
|
26991
26991
|
return buffer;
|
|
26992
26992
|
}
|
|
26993
26993
|
module2.exports = function(input, callback) {
|
|
@@ -26997,7 +26997,7 @@ var require_lib4 = __commonJS({
|
|
|
26997
26997
|
if (typeof input !== "string") {
|
|
26998
26998
|
throw new TypeError("invalid invocation");
|
|
26999
26999
|
}
|
|
27000
|
-
var filepath =
|
|
27000
|
+
var filepath = path13.resolve(input);
|
|
27001
27001
|
if (typeof callback === "function") {
|
|
27002
27002
|
asyncFileToBuffer(filepath, function(err, buffer2) {
|
|
27003
27003
|
if (err) {
|
|
@@ -34601,14 +34601,14 @@ var require_pug_parser = __commonJS({
|
|
|
34601
34601
|
*/
|
|
34602
34602
|
parseExtends: function() {
|
|
34603
34603
|
var tok = this.expect("extends");
|
|
34604
|
-
var
|
|
34604
|
+
var path13 = this.expect("path");
|
|
34605
34605
|
return {
|
|
34606
34606
|
type: "Extends",
|
|
34607
34607
|
file: {
|
|
34608
34608
|
type: "FileReference",
|
|
34609
|
-
path:
|
|
34610
|
-
line:
|
|
34611
|
-
column:
|
|
34609
|
+
path: path13.val.trim(),
|
|
34610
|
+
line: path13.loc.start.line,
|
|
34611
|
+
column: path13.loc.start.column,
|
|
34612
34612
|
filename: this.filename
|
|
34613
34613
|
},
|
|
34614
34614
|
line: tok.loc.start.line,
|
|
@@ -34673,10 +34673,10 @@ var require_pug_parser = __commonJS({
|
|
|
34673
34673
|
while (this.peek().type === "filter") {
|
|
34674
34674
|
filters2.push(this.parseIncludeFilter());
|
|
34675
34675
|
}
|
|
34676
|
-
var
|
|
34677
|
-
node.file.path =
|
|
34678
|
-
node.file.line =
|
|
34679
|
-
node.file.column =
|
|
34676
|
+
var path13 = this.expect("path");
|
|
34677
|
+
node.file.path = path13.val.trim();
|
|
34678
|
+
node.file.line = path13.loc.start.line;
|
|
34679
|
+
node.file.column = path13.loc.start.column;
|
|
34680
34680
|
if ((/\.jade$/.test(node.file.path) || /\.pug$/.test(node.file.path)) && !filters2.length) {
|
|
34681
34681
|
node.block = "indent" == this.peek().type ? this.block() : this.emptyBlock(tok.loc.start.line);
|
|
34682
34682
|
if (/\.jade$/.test(node.file.path)) {
|
|
@@ -35143,8 +35143,8 @@ var require_pug_walk = __commonJS({
|
|
|
35143
35143
|
var require_pug_load = __commonJS({
|
|
35144
35144
|
"pnp:/builds/normed/bundle/.yarn/cache/pug-load-npm-3.0.0-dc9f2273d3-1800ec5199.zip/node_modules/pug-load/index.js"(exports2, module2) {
|
|
35145
35145
|
"use strict";
|
|
35146
|
-
var
|
|
35147
|
-
var
|
|
35146
|
+
var fs12 = require("fs");
|
|
35147
|
+
var path13 = require("path");
|
|
35148
35148
|
var walk = require_pug_walk();
|
|
35149
35149
|
var assign = require_object_assign();
|
|
35150
35150
|
module2.exports = load;
|
|
@@ -35158,11 +35158,11 @@ var require_pug_load = __commonJS({
|
|
|
35158
35158
|
if (file.type !== "FileReference") {
|
|
35159
35159
|
throw new Error('Expected file.type to be "FileReference"');
|
|
35160
35160
|
}
|
|
35161
|
-
var
|
|
35161
|
+
var path14, str, raw;
|
|
35162
35162
|
try {
|
|
35163
|
-
|
|
35164
|
-
file.fullPath =
|
|
35165
|
-
raw = options.read(
|
|
35163
|
+
path14 = options.resolve(file.path, file.filename, options);
|
|
35164
|
+
file.fullPath = path14;
|
|
35165
|
+
raw = options.read(path14, options);
|
|
35166
35166
|
str = raw.toString("utf8");
|
|
35167
35167
|
} catch (ex) {
|
|
35168
35168
|
ex.message += "\n at " + node.filename + " line " + node.line;
|
|
@@ -35174,7 +35174,7 @@ var require_pug_load = __commonJS({
|
|
|
35174
35174
|
file.ast = load.string(
|
|
35175
35175
|
str,
|
|
35176
35176
|
assign({}, options, {
|
|
35177
|
-
filename:
|
|
35177
|
+
filename: path14
|
|
35178
35178
|
})
|
|
35179
35179
|
);
|
|
35180
35180
|
}
|
|
@@ -35207,14 +35207,14 @@ var require_pug_load = __commonJS({
|
|
|
35207
35207
|
throw new Error(
|
|
35208
35208
|
'the "basedir" option is required to use includes and extends with "absolute" paths'
|
|
35209
35209
|
);
|
|
35210
|
-
filename =
|
|
35211
|
-
filename[0] === "/" ? options.basedir :
|
|
35210
|
+
filename = path13.join(
|
|
35211
|
+
filename[0] === "/" ? options.basedir : path13.dirname(source.trim()),
|
|
35212
35212
|
filename
|
|
35213
35213
|
);
|
|
35214
35214
|
return filename;
|
|
35215
35215
|
};
|
|
35216
35216
|
load.read = function read(filename, options) {
|
|
35217
|
-
return
|
|
35217
|
+
return fs12.readFileSync(filename);
|
|
35218
35218
|
};
|
|
35219
35219
|
load.validateOptions = function validateOptions(options) {
|
|
35220
35220
|
if (typeof options !== "object") {
|
|
@@ -35860,7 +35860,7 @@ var require_is_promise = __commonJS({
|
|
|
35860
35860
|
var require_jstransformer = __commonJS({
|
|
35861
35861
|
"pnp:/builds/normed/bundle/.yarn/cache/jstransformer-npm-1.0.0-41a47d180a-7bca6e2e2f.zip/node_modules/jstransformer/index.js"(exports2, module2) {
|
|
35862
35862
|
"use strict";
|
|
35863
|
-
var
|
|
35863
|
+
var fs12 = require("fs");
|
|
35864
35864
|
var assert = require("assert");
|
|
35865
35865
|
var Promise2 = require_promise();
|
|
35866
35866
|
var isPromise = require_is_promise();
|
|
@@ -35872,9 +35872,9 @@ var require_jstransformer = __commonJS({
|
|
|
35872
35872
|
tr.normalizeFnAsync = normalizeFnAsync;
|
|
35873
35873
|
tr.normalize = normalize;
|
|
35874
35874
|
tr.normalizeAsync = normalizeAsync;
|
|
35875
|
-
if (
|
|
35876
|
-
tr.readFile = Promise2.denodeify(
|
|
35877
|
-
tr.readFileSync =
|
|
35875
|
+
if (fs12.readFile) {
|
|
35876
|
+
tr.readFile = Promise2.denodeify(fs12.readFile);
|
|
35877
|
+
tr.readFileSync = fs12.readFileSync;
|
|
35878
35878
|
} else {
|
|
35879
35879
|
tr.readFile = function() {
|
|
35880
35880
|
throw new Error("fs.readFile unsupported");
|
|
@@ -36319,8 +36319,8 @@ var require_path_parse = __commonJS({
|
|
|
36319
36319
|
// pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/node-modules-paths.js
|
|
36320
36320
|
var require_node_modules_paths = __commonJS({
|
|
36321
36321
|
"pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/node-modules-paths.js"(exports2, module2) {
|
|
36322
|
-
var
|
|
36323
|
-
var parse =
|
|
36322
|
+
var path13 = require("path");
|
|
36323
|
+
var parse = path13.parse || require_path_parse();
|
|
36324
36324
|
var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
|
|
36325
36325
|
var prefix = "/";
|
|
36326
36326
|
if (/^([A-Za-z]:)/.test(absoluteStart)) {
|
|
@@ -36336,7 +36336,7 @@ var require_node_modules_paths = __commonJS({
|
|
|
36336
36336
|
}
|
|
36337
36337
|
return paths.reduce(function(dirs, aPath) {
|
|
36338
36338
|
return dirs.concat(modules.map(function(moduleDir) {
|
|
36339
|
-
return
|
|
36339
|
+
return path13.resolve(prefix, aPath, moduleDir);
|
|
36340
36340
|
}));
|
|
36341
36341
|
}, []);
|
|
36342
36342
|
};
|
|
@@ -36361,7 +36361,7 @@ var require_node_modules_paths = __commonJS({
|
|
|
36361
36361
|
// pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/normalize-options.js
|
|
36362
36362
|
var require_normalize_options = __commonJS({
|
|
36363
36363
|
"pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/normalize-options.js"(exports2, module2) {
|
|
36364
|
-
var
|
|
36364
|
+
var path13 = require("path");
|
|
36365
36365
|
module2.exports = function(_, opts) {
|
|
36366
36366
|
opts = opts || {};
|
|
36367
36367
|
if (opts.forceNodeResolution || !process.versions.pnp)
|
|
@@ -36372,7 +36372,7 @@ var require_normalize_options = __commonJS({
|
|
|
36372
36372
|
if (!parts)
|
|
36373
36373
|
throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${request}")`);
|
|
36374
36374
|
if (basedir.charAt(basedir.length - 1) !== `/`)
|
|
36375
|
-
basedir =
|
|
36375
|
+
basedir = path13.join(basedir, `/`);
|
|
36376
36376
|
const api = findPnpApi(basedir);
|
|
36377
36377
|
if (api === null)
|
|
36378
36378
|
return void 0;
|
|
@@ -36384,8 +36384,8 @@ var require_normalize_options = __commonJS({
|
|
|
36384
36384
|
}
|
|
36385
36385
|
if (manifestPath === null)
|
|
36386
36386
|
throw new Error(`Assertion failed: The resolution thinks that "${parts[1]}" is a Node builtin`);
|
|
36387
|
-
const packagePath =
|
|
36388
|
-
const unqualifiedPath = typeof parts[2] !== `undefined` ?
|
|
36387
|
+
const packagePath = path13.dirname(manifestPath);
|
|
36388
|
+
const unqualifiedPath = typeof parts[2] !== `undefined` ? path13.join(packagePath, parts[2]) : packagePath;
|
|
36389
36389
|
return { packagePath, unqualifiedPath };
|
|
36390
36390
|
};
|
|
36391
36391
|
const runPnpResolutionOnArray = (request, paths2) => {
|
|
@@ -36410,9 +36410,9 @@ var require_normalize_options = __commonJS({
|
|
|
36410
36410
|
const resolution = runPnpResolutionOnArray(request, pathsToTest);
|
|
36411
36411
|
if (resolution == null)
|
|
36412
36412
|
return getNodeModulePaths().concat(originalPaths);
|
|
36413
|
-
let nodeModules =
|
|
36413
|
+
let nodeModules = path13.dirname(resolution.packagePath);
|
|
36414
36414
|
if (request.match(/^@[^/]+\//))
|
|
36415
|
-
nodeModules =
|
|
36415
|
+
nodeModules = path13.dirname(nodeModules);
|
|
36416
36416
|
return [nodeModules];
|
|
36417
36417
|
};
|
|
36418
36418
|
let isInsideIterator = false;
|
|
@@ -36668,23 +36668,23 @@ var require_is_core_module = __commonJS({
|
|
|
36668
36668
|
// pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/async.js
|
|
36669
36669
|
var require_async = __commonJS({
|
|
36670
36670
|
"pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/async.js"(exports2, module2) {
|
|
36671
|
-
var
|
|
36671
|
+
var fs12 = require("fs");
|
|
36672
36672
|
var getHomedir = require_homedir();
|
|
36673
|
-
var
|
|
36673
|
+
var path13 = require("path");
|
|
36674
36674
|
var caller = require_caller();
|
|
36675
36675
|
var nodeModulesPaths = require_node_modules_paths();
|
|
36676
36676
|
var normalizeOptions = require_normalize_options();
|
|
36677
36677
|
var isCore = require_is_core_module();
|
|
36678
|
-
var realpathFS = process.platform !== "win32" &&
|
|
36678
|
+
var realpathFS = process.platform !== "win32" && fs12.realpath && typeof fs12.realpath.native === "function" ? fs12.realpath.native : fs12.realpath;
|
|
36679
36679
|
var homedir = getHomedir();
|
|
36680
36680
|
var defaultPaths = function() {
|
|
36681
36681
|
return [
|
|
36682
|
-
|
|
36683
|
-
|
|
36682
|
+
path13.join(homedir, ".node_modules"),
|
|
36683
|
+
path13.join(homedir, ".node_libraries")
|
|
36684
36684
|
];
|
|
36685
36685
|
};
|
|
36686
36686
|
var defaultIsFile = function isFile(file, cb) {
|
|
36687
|
-
|
|
36687
|
+
fs12.stat(file, function(err, stat) {
|
|
36688
36688
|
if (!err) {
|
|
36689
36689
|
return cb(null, stat.isFile() || stat.isFIFO());
|
|
36690
36690
|
}
|
|
@@ -36693,7 +36693,7 @@ var require_async = __commonJS({
|
|
|
36693
36693
|
});
|
|
36694
36694
|
};
|
|
36695
36695
|
var defaultIsDir = function isDirectory(dir, cb) {
|
|
36696
|
-
|
|
36696
|
+
fs12.stat(dir, function(err, stat) {
|
|
36697
36697
|
if (!err) {
|
|
36698
36698
|
return cb(null, stat.isDirectory());
|
|
36699
36699
|
}
|
|
@@ -36730,7 +36730,7 @@ var require_async = __commonJS({
|
|
|
36730
36730
|
var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
|
|
36731
36731
|
var dirs = nodeModulesPaths(start, opts, x);
|
|
36732
36732
|
for (var i = 0; i < dirs.length; i++) {
|
|
36733
|
-
dirs[i] =
|
|
36733
|
+
dirs[i] = path13.join(dirs[i], x);
|
|
36734
36734
|
}
|
|
36735
36735
|
return dirs;
|
|
36736
36736
|
};
|
|
@@ -36750,7 +36750,7 @@ var require_async = __commonJS({
|
|
|
36750
36750
|
opts = normalizeOptions(x, opts);
|
|
36751
36751
|
var isFile = opts.isFile || defaultIsFile;
|
|
36752
36752
|
var isDirectory = opts.isDirectory || defaultIsDir;
|
|
36753
|
-
var readFile = opts.readFile ||
|
|
36753
|
+
var readFile = opts.readFile || fs12.readFile;
|
|
36754
36754
|
var realpath = opts.realpath || defaultRealpath;
|
|
36755
36755
|
var readPackage = opts.readPackage || defaultReadPackage;
|
|
36756
36756
|
if (opts.readFile && opts.readPackage) {
|
|
@@ -36762,10 +36762,10 @@ var require_async = __commonJS({
|
|
|
36762
36762
|
var packageIterator = opts.packageIterator;
|
|
36763
36763
|
var extensions = opts.extensions || [".js"];
|
|
36764
36764
|
var includeCoreModules = opts.includeCoreModules !== false;
|
|
36765
|
-
var basedir = opts.basedir ||
|
|
36765
|
+
var basedir = opts.basedir || path13.dirname(caller());
|
|
36766
36766
|
var parent = opts.filename || basedir;
|
|
36767
36767
|
opts.paths = opts.paths || defaultPaths();
|
|
36768
|
-
var absoluteStart =
|
|
36768
|
+
var absoluteStart = path13.resolve(basedir);
|
|
36769
36769
|
maybeRealpath(
|
|
36770
36770
|
realpath,
|
|
36771
36771
|
absoluteStart,
|
|
@@ -36778,7 +36778,7 @@ var require_async = __commonJS({
|
|
|
36778
36778
|
var res;
|
|
36779
36779
|
function init(basedir2) {
|
|
36780
36780
|
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
|
|
36781
|
-
res =
|
|
36781
|
+
res = path13.resolve(basedir2, x);
|
|
36782
36782
|
if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
|
|
36783
36783
|
if (/\/$/.test(x) && res === basedir2) {
|
|
36784
36784
|
loadAsDirectory(res, opts.package, onfile);
|
|
@@ -36836,17 +36836,17 @@ var require_async = __commonJS({
|
|
|
36836
36836
|
var file = x3 + exts2[0];
|
|
36837
36837
|
var pkg = loadPackage;
|
|
36838
36838
|
if (pkg) onpkg(null, pkg);
|
|
36839
|
-
else loadpkg(
|
|
36839
|
+
else loadpkg(path13.dirname(file), onpkg);
|
|
36840
36840
|
function onpkg(err2, pkg_, dir) {
|
|
36841
36841
|
pkg = pkg_;
|
|
36842
36842
|
if (err2) return cb2(err2);
|
|
36843
36843
|
if (dir && pkg && opts.pathFilter) {
|
|
36844
|
-
var rfile =
|
|
36844
|
+
var rfile = path13.relative(dir, file);
|
|
36845
36845
|
var rel = rfile.slice(0, rfile.length - exts2[0].length);
|
|
36846
36846
|
var r = opts.pathFilter(pkg, x3, rel);
|
|
36847
36847
|
if (r) return load(
|
|
36848
36848
|
[""].concat(extensions.slice()),
|
|
36849
|
-
|
|
36849
|
+
path13.resolve(dir, r),
|
|
36850
36850
|
pkg
|
|
36851
36851
|
);
|
|
36852
36852
|
}
|
|
@@ -36866,10 +36866,10 @@ var require_async = __commonJS({
|
|
|
36866
36866
|
}
|
|
36867
36867
|
if (/[/\\]node_modules[/\\]*$/.test(dir)) return cb2(null);
|
|
36868
36868
|
maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
|
|
36869
|
-
if (unwrapErr) return loadpkg(
|
|
36870
|
-
var pkgfile =
|
|
36869
|
+
if (unwrapErr) return loadpkg(path13.dirname(dir), cb2);
|
|
36870
|
+
var pkgfile = path13.join(pkgdir, "package.json");
|
|
36871
36871
|
isFile(pkgfile, function(err2, ex) {
|
|
36872
|
-
if (!ex) return loadpkg(
|
|
36872
|
+
if (!ex) return loadpkg(path13.dirname(dir), cb2);
|
|
36873
36873
|
readPackage(readFile, pkgfile, function(err3, pkgParam) {
|
|
36874
36874
|
if (err3) cb2(err3);
|
|
36875
36875
|
var pkg = pkgParam;
|
|
@@ -36890,10 +36890,10 @@ var require_async = __commonJS({
|
|
|
36890
36890
|
}
|
|
36891
36891
|
maybeRealpath(realpath, x2, opts, function(unwrapErr, pkgdir) {
|
|
36892
36892
|
if (unwrapErr) return cb2(unwrapErr);
|
|
36893
|
-
var pkgfile =
|
|
36893
|
+
var pkgfile = path13.join(pkgdir, "package.json");
|
|
36894
36894
|
isFile(pkgfile, function(err2, ex) {
|
|
36895
36895
|
if (err2) return cb2(err2);
|
|
36896
|
-
if (!ex) return loadAsFile2(
|
|
36896
|
+
if (!ex) return loadAsFile2(path13.join(x2, "index"), fpkg, cb2);
|
|
36897
36897
|
readPackage(readFile, pkgfile, function(err3, pkgParam) {
|
|
36898
36898
|
if (err3) return cb2(err3);
|
|
36899
36899
|
var pkg = pkgParam;
|
|
@@ -36909,20 +36909,20 @@ var require_async = __commonJS({
|
|
|
36909
36909
|
if (pkg.main === "." || pkg.main === "./") {
|
|
36910
36910
|
pkg.main = "index";
|
|
36911
36911
|
}
|
|
36912
|
-
loadAsFile2(
|
|
36912
|
+
loadAsFile2(path13.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
|
|
36913
36913
|
if (err4) return cb2(err4);
|
|
36914
36914
|
if (m) return cb2(null, m, pkg2);
|
|
36915
|
-
if (!pkg2) return loadAsFile2(
|
|
36916
|
-
var dir =
|
|
36915
|
+
if (!pkg2) return loadAsFile2(path13.join(x2, "index"), pkg2, cb2);
|
|
36916
|
+
var dir = path13.resolve(x2, pkg2.main);
|
|
36917
36917
|
loadAsDirectory(dir, pkg2, function(err5, n, pkg3) {
|
|
36918
36918
|
if (err5) return cb2(err5);
|
|
36919
36919
|
if (n) return cb2(null, n, pkg3);
|
|
36920
|
-
loadAsFile2(
|
|
36920
|
+
loadAsFile2(path13.join(x2, "index"), pkg3, cb2);
|
|
36921
36921
|
});
|
|
36922
36922
|
});
|
|
36923
36923
|
return;
|
|
36924
36924
|
}
|
|
36925
|
-
loadAsFile2(
|
|
36925
|
+
loadAsFile2(path13.join(x2, "/index"), pkg, cb2);
|
|
36926
36926
|
});
|
|
36927
36927
|
});
|
|
36928
36928
|
});
|
|
@@ -36930,7 +36930,7 @@ var require_async = __commonJS({
|
|
|
36930
36930
|
function processDirs(cb2, dirs) {
|
|
36931
36931
|
if (dirs.length === 0) return cb2(null, void 0);
|
|
36932
36932
|
var dir = dirs[0];
|
|
36933
|
-
isDirectory(
|
|
36933
|
+
isDirectory(path13.dirname(dir), isdir);
|
|
36934
36934
|
function isdir(err2, isdir2) {
|
|
36935
36935
|
if (err2) return cb2(err2);
|
|
36936
36936
|
if (!isdir2) return processDirs(cb2, dirs.slice(1));
|
|
@@ -37155,23 +37155,23 @@ var require_is_core = __commonJS({
|
|
|
37155
37155
|
var require_sync = __commonJS({
|
|
37156
37156
|
"pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/sync.js"(exports2, module2) {
|
|
37157
37157
|
var isCore = require_is_core_module();
|
|
37158
|
-
var
|
|
37159
|
-
var
|
|
37158
|
+
var fs12 = require("fs");
|
|
37159
|
+
var path13 = require("path");
|
|
37160
37160
|
var getHomedir = require_homedir();
|
|
37161
37161
|
var caller = require_caller();
|
|
37162
37162
|
var nodeModulesPaths = require_node_modules_paths();
|
|
37163
37163
|
var normalizeOptions = require_normalize_options();
|
|
37164
|
-
var realpathFS = process.platform !== "win32" &&
|
|
37164
|
+
var realpathFS = process.platform !== "win32" && fs12.realpathSync && typeof fs12.realpathSync.native === "function" ? fs12.realpathSync.native : fs12.realpathSync;
|
|
37165
37165
|
var homedir = getHomedir();
|
|
37166
37166
|
var defaultPaths = function() {
|
|
37167
37167
|
return [
|
|
37168
|
-
|
|
37169
|
-
|
|
37168
|
+
path13.join(homedir, ".node_modules"),
|
|
37169
|
+
path13.join(homedir, ".node_libraries")
|
|
37170
37170
|
];
|
|
37171
37171
|
};
|
|
37172
37172
|
var defaultIsFile = function isFile(file) {
|
|
37173
37173
|
try {
|
|
37174
|
-
var stat =
|
|
37174
|
+
var stat = fs12.statSync(file, { throwIfNoEntry: false });
|
|
37175
37175
|
} catch (e) {
|
|
37176
37176
|
if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
|
|
37177
37177
|
throw e;
|
|
@@ -37180,7 +37180,7 @@ var require_sync = __commonJS({
|
|
|
37180
37180
|
};
|
|
37181
37181
|
var defaultIsDir = function isDirectory(dir) {
|
|
37182
37182
|
try {
|
|
37183
|
-
var stat =
|
|
37183
|
+
var stat = fs12.statSync(dir, { throwIfNoEntry: false });
|
|
37184
37184
|
} catch (e) {
|
|
37185
37185
|
if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
|
|
37186
37186
|
throw e;
|
|
@@ -37214,7 +37214,7 @@ var require_sync = __commonJS({
|
|
|
37214
37214
|
var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
|
|
37215
37215
|
var dirs = nodeModulesPaths(start, opts, x);
|
|
37216
37216
|
for (var i = 0; i < dirs.length; i++) {
|
|
37217
|
-
dirs[i] =
|
|
37217
|
+
dirs[i] = path13.join(dirs[i], x);
|
|
37218
37218
|
}
|
|
37219
37219
|
return dirs;
|
|
37220
37220
|
};
|
|
@@ -37224,7 +37224,7 @@ var require_sync = __commonJS({
|
|
|
37224
37224
|
}
|
|
37225
37225
|
var opts = normalizeOptions(x, options);
|
|
37226
37226
|
var isFile = opts.isFile || defaultIsFile;
|
|
37227
|
-
var readFileSync = opts.readFileSync ||
|
|
37227
|
+
var readFileSync = opts.readFileSync || fs12.readFileSync;
|
|
37228
37228
|
var isDirectory = opts.isDirectory || defaultIsDir;
|
|
37229
37229
|
var realpathSync = opts.realpathSync || defaultRealpathSync;
|
|
37230
37230
|
var readPackageSync = opts.readPackageSync || defaultReadPackageSync;
|
|
@@ -37234,12 +37234,12 @@ var require_sync = __commonJS({
|
|
|
37234
37234
|
var packageIterator = opts.packageIterator;
|
|
37235
37235
|
var extensions = opts.extensions || [".js"];
|
|
37236
37236
|
var includeCoreModules = opts.includeCoreModules !== false;
|
|
37237
|
-
var basedir = opts.basedir ||
|
|
37237
|
+
var basedir = opts.basedir || path13.dirname(caller());
|
|
37238
37238
|
var parent = opts.filename || basedir;
|
|
37239
37239
|
opts.paths = opts.paths || defaultPaths();
|
|
37240
|
-
var absoluteStart = maybeRealpathSync(realpathSync,
|
|
37240
|
+
var absoluteStart = maybeRealpathSync(realpathSync, path13.resolve(basedir), opts);
|
|
37241
37241
|
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
|
|
37242
|
-
var res =
|
|
37242
|
+
var res = path13.resolve(absoluteStart, x);
|
|
37243
37243
|
if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
|
|
37244
37244
|
var m = loadAsFileSync(res) || loadAsDirectorySync(res);
|
|
37245
37245
|
if (m) return maybeRealpathSync(realpathSync, m, opts);
|
|
@@ -37253,12 +37253,12 @@ var require_sync = __commonJS({
|
|
|
37253
37253
|
err.code = "MODULE_NOT_FOUND";
|
|
37254
37254
|
throw err;
|
|
37255
37255
|
function loadAsFileSync(x2) {
|
|
37256
|
-
var pkg = loadpkg(
|
|
37256
|
+
var pkg = loadpkg(path13.dirname(x2));
|
|
37257
37257
|
if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
|
|
37258
|
-
var rfile =
|
|
37258
|
+
var rfile = path13.relative(pkg.dir, x2);
|
|
37259
37259
|
var r = opts.pathFilter(pkg.pkg, x2, rfile);
|
|
37260
37260
|
if (r) {
|
|
37261
|
-
x2 =
|
|
37261
|
+
x2 = path13.resolve(pkg.dir, r);
|
|
37262
37262
|
}
|
|
37263
37263
|
}
|
|
37264
37264
|
if (isFile(x2)) {
|
|
@@ -37277,9 +37277,9 @@ var require_sync = __commonJS({
|
|
|
37277
37277
|
return;
|
|
37278
37278
|
}
|
|
37279
37279
|
if (/[/\\]node_modules[/\\]*$/.test(dir)) return;
|
|
37280
|
-
var pkgfile =
|
|
37280
|
+
var pkgfile = path13.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
|
|
37281
37281
|
if (!isFile(pkgfile)) {
|
|
37282
|
-
return loadpkg(
|
|
37282
|
+
return loadpkg(path13.dirname(dir));
|
|
37283
37283
|
}
|
|
37284
37284
|
var pkg = readPackageSync(readFileSync, pkgfile);
|
|
37285
37285
|
if (pkg && opts.packageFilter) {
|
|
@@ -37292,7 +37292,7 @@ var require_sync = __commonJS({
|
|
|
37292
37292
|
return { pkg, dir };
|
|
37293
37293
|
}
|
|
37294
37294
|
function loadAsDirectorySync(x2) {
|
|
37295
|
-
var pkgfile =
|
|
37295
|
+
var pkgfile = path13.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
|
|
37296
37296
|
if (isFile(pkgfile)) {
|
|
37297
37297
|
try {
|
|
37298
37298
|
var pkg = readPackageSync(readFileSync, pkgfile);
|
|
@@ -37315,15 +37315,15 @@ var require_sync = __commonJS({
|
|
|
37315
37315
|
pkg.main = "index";
|
|
37316
37316
|
}
|
|
37317
37317
|
try {
|
|
37318
|
-
var m2 = loadAsFileSync(
|
|
37318
|
+
var m2 = loadAsFileSync(path13.resolve(x2, pkg.main));
|
|
37319
37319
|
if (m2) return m2;
|
|
37320
|
-
var n2 = loadAsDirectorySync(
|
|
37320
|
+
var n2 = loadAsDirectorySync(path13.resolve(x2, pkg.main));
|
|
37321
37321
|
if (n2) return n2;
|
|
37322
37322
|
} catch (e) {
|
|
37323
37323
|
}
|
|
37324
37324
|
}
|
|
37325
37325
|
}
|
|
37326
|
-
return loadAsFileSync(
|
|
37326
|
+
return loadAsFileSync(path13.join(x2, "/index"));
|
|
37327
37327
|
}
|
|
37328
37328
|
function loadNodeModulesSync(x2, start) {
|
|
37329
37329
|
var thunk = function() {
|
|
@@ -37332,7 +37332,7 @@ var require_sync = __commonJS({
|
|
|
37332
37332
|
var dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk();
|
|
37333
37333
|
for (var i = 0; i < dirs.length; i++) {
|
|
37334
37334
|
var dir = dirs[i];
|
|
37335
|
-
if (isDirectory(
|
|
37335
|
+
if (isDirectory(path13.dirname(dir))) {
|
|
37336
37336
|
var m2 = loadAsFileSync(dir);
|
|
37337
37337
|
if (m2) return m2;
|
|
37338
37338
|
var n2 = loadAsDirectorySync(dir);
|
|
@@ -66322,7 +66322,7 @@ var require_sources = __commonJS({
|
|
|
66322
66322
|
var require_build = __commonJS({
|
|
66323
66323
|
"pnp:/builds/normed/bundle/.yarn/cache/pug-runtime-npm-3.0.1-13038c62ae-d34ee1b951.zip/node_modules/pug-runtime/build.js"(exports2, module2) {
|
|
66324
66324
|
"use strict";
|
|
66325
|
-
var
|
|
66325
|
+
var fs12 = require("fs");
|
|
66326
66326
|
var dependencies = require_dependencies();
|
|
66327
66327
|
var internals = require_internals();
|
|
66328
66328
|
var sources = require_sources();
|
|
@@ -68088,8 +68088,8 @@ var require_wrap = __commonJS({
|
|
|
68088
68088
|
var require_lib14 = __commonJS({
|
|
68089
68089
|
"pnp:/builds/normed/bundle/.yarn/cache/pug-npm-3.0.3-9b210cb01a-a883647575.zip/node_modules/pug/lib/index.js"(exports2) {
|
|
68090
68090
|
"use strict";
|
|
68091
|
-
var
|
|
68092
|
-
var
|
|
68091
|
+
var fs12 = require("fs");
|
|
68092
|
+
var path13 = require("path");
|
|
68093
68093
|
var lex = require_pug_lexer();
|
|
68094
68094
|
var stripComments = require_pug_strip_comments();
|
|
68095
68095
|
var parse = require_pug_parser();
|
|
@@ -68152,7 +68152,7 @@ var require_lib14 = __commonJS({
|
|
|
68152
68152
|
},
|
|
68153
68153
|
parse: function(tokens, options2) {
|
|
68154
68154
|
tokens = tokens.map(function(token) {
|
|
68155
|
-
if (token.type === "path" &&
|
|
68155
|
+
if (token.type === "path" && path13.extname(token.val) === "") {
|
|
68156
68156
|
return {
|
|
68157
68157
|
type: "path",
|
|
68158
68158
|
loc: token.loc,
|
|
@@ -68250,7 +68250,7 @@ var require_lib14 = __commonJS({
|
|
|
68250
68250
|
if (options.cache && exports2.cache[key]) {
|
|
68251
68251
|
return exports2.cache[key];
|
|
68252
68252
|
} else {
|
|
68253
|
-
if (str === void 0) str =
|
|
68253
|
+
if (str === void 0) str = fs12.readFileSync(options.filename, "utf8");
|
|
68254
68254
|
var templ = exports2.compile(str, options);
|
|
68255
68255
|
if (options.cache) exports2.cache[key] = templ;
|
|
68256
68256
|
return templ;
|
|
@@ -68312,9 +68312,9 @@ var require_lib14 = __commonJS({
|
|
|
68312
68312
|
exports2.compileClient = function(str, options) {
|
|
68313
68313
|
return exports2.compileClientWithDependenciesTracked(str, options).body;
|
|
68314
68314
|
};
|
|
68315
|
-
exports2.compileFile = function(
|
|
68315
|
+
exports2.compileFile = function(path14, options) {
|
|
68316
68316
|
options = options || {};
|
|
68317
|
-
options.filename =
|
|
68317
|
+
options.filename = path14;
|
|
68318
68318
|
return handleTemplateCache(options);
|
|
68319
68319
|
};
|
|
68320
68320
|
exports2.render = function(str, options, fn) {
|
|
@@ -68336,40 +68336,40 @@ var require_lib14 = __commonJS({
|
|
|
68336
68336
|
}
|
|
68337
68337
|
return handleTemplateCache(options, str)(options);
|
|
68338
68338
|
};
|
|
68339
|
-
exports2.renderFile = function(
|
|
68339
|
+
exports2.renderFile = function(path14, options, fn) {
|
|
68340
68340
|
if ("function" == typeof options) {
|
|
68341
68341
|
fn = options, options = void 0;
|
|
68342
68342
|
}
|
|
68343
68343
|
if (typeof fn === "function") {
|
|
68344
68344
|
var res;
|
|
68345
68345
|
try {
|
|
68346
|
-
res = exports2.renderFile(
|
|
68346
|
+
res = exports2.renderFile(path14, options);
|
|
68347
68347
|
} catch (ex) {
|
|
68348
68348
|
return fn(ex);
|
|
68349
68349
|
}
|
|
68350
68350
|
return fn(null, res);
|
|
68351
68351
|
}
|
|
68352
68352
|
options = options || {};
|
|
68353
|
-
options.filename =
|
|
68353
|
+
options.filename = path14;
|
|
68354
68354
|
return handleTemplateCache(options)(options);
|
|
68355
68355
|
};
|
|
68356
|
-
exports2.compileFileClient = function(
|
|
68357
|
-
var key =
|
|
68356
|
+
exports2.compileFileClient = function(path14, options) {
|
|
68357
|
+
var key = path14 + ":client";
|
|
68358
68358
|
options = options || {};
|
|
68359
|
-
options.filename =
|
|
68359
|
+
options.filename = path14;
|
|
68360
68360
|
if (options.cache && exports2.cache[key]) {
|
|
68361
68361
|
return exports2.cache[key];
|
|
68362
68362
|
}
|
|
68363
|
-
var str =
|
|
68363
|
+
var str = fs12.readFileSync(options.filename, "utf8");
|
|
68364
68364
|
var out = exports2.compileClient(str, options);
|
|
68365
68365
|
if (options.cache) exports2.cache[key] = out;
|
|
68366
68366
|
return out;
|
|
68367
68367
|
};
|
|
68368
|
-
exports2.__express = function(
|
|
68368
|
+
exports2.__express = function(path14, options, fn) {
|
|
68369
68369
|
if (options.compileDebug == void 0 && process.env.NODE_ENV === "production") {
|
|
68370
68370
|
options.compileDebug = false;
|
|
68371
68371
|
}
|
|
68372
|
-
exports2.renderFile(
|
|
68372
|
+
exports2.renderFile(path14, options, fn);
|
|
68373
68373
|
};
|
|
68374
68374
|
}
|
|
68375
68375
|
});
|
|
@@ -68381,7 +68381,7 @@ var require_lib15 = __commonJS({
|
|
|
68381
68381
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68382
68382
|
exports2.pnpPlugin = void 0;
|
|
68383
68383
|
var tslib_1 = require_tslib();
|
|
68384
|
-
var
|
|
68384
|
+
var fs12 = tslib_1.__importStar(require("fs"));
|
|
68385
68385
|
var path_1 = tslib_1.__importDefault(require("path"));
|
|
68386
68386
|
var matchAll = /()/;
|
|
68387
68387
|
var defaultExtensions = [`.tsx`, `.ts`, `.jsx`, `.mjs`, `.cjs`, `.js`, `.css`, `.json`];
|
|
@@ -68393,17 +68393,17 @@ var require_lib15 = __commonJS({
|
|
|
68393
68393
|
return external;
|
|
68394
68394
|
});
|
|
68395
68395
|
}
|
|
68396
|
-
function isExternal(
|
|
68396
|
+
function isExternal(path13, externals) {
|
|
68397
68397
|
for (const external of externals) {
|
|
68398
68398
|
if (typeof external === `object`) {
|
|
68399
|
-
if (
|
|
68399
|
+
if (path13.length >= external.prefix.length + external.suffix.length && path13.startsWith(external.prefix) && path13.endsWith(external.suffix)) {
|
|
68400
68400
|
return true;
|
|
68401
68401
|
}
|
|
68402
68402
|
} else {
|
|
68403
|
-
if (
|
|
68403
|
+
if (path13 === external)
|
|
68404
68404
|
return true;
|
|
68405
68405
|
if (!external.startsWith(`/`) && !external.startsWith(`./`) && !external.startsWith(`../`) && external !== `.` && external !== `..`) {
|
|
68406
|
-
if (
|
|
68406
|
+
if (path13.startsWith(`${external}/`)) {
|
|
68407
68407
|
return true;
|
|
68408
68408
|
}
|
|
68409
68409
|
}
|
|
@@ -68413,7 +68413,7 @@ var require_lib15 = __commonJS({
|
|
|
68413
68413
|
}
|
|
68414
68414
|
async function defaultOnLoad(args) {
|
|
68415
68415
|
return {
|
|
68416
|
-
contents: await
|
|
68416
|
+
contents: await fs12.promises.readFile(args.path),
|
|
68417
68417
|
loader: `default`,
|
|
68418
68418
|
// For regular imports in the `file` namespace, resolveDir is the directory the
|
|
68419
68419
|
// file being resolved lives in. For all other virtual modules, this defaults to
|
|
@@ -68478,10 +68478,10 @@ var require_lib15 = __commonJS({
|
|
|
68478
68478
|
const pnpApi = findPnpApi(effectiveImporter);
|
|
68479
68479
|
if (!pnpApi)
|
|
68480
68480
|
return void 0;
|
|
68481
|
-
let
|
|
68481
|
+
let path13 = null;
|
|
68482
68482
|
let error;
|
|
68483
68483
|
try {
|
|
68484
|
-
|
|
68484
|
+
path13 = pnpApi.resolveRequest(args.path, effectiveImporter, {
|
|
68485
68485
|
conditions,
|
|
68486
68486
|
considerBuiltins: isPlatformNode,
|
|
68487
68487
|
extensions
|
|
@@ -68490,16 +68490,16 @@ var require_lib15 = __commonJS({
|
|
|
68490
68490
|
error = e;
|
|
68491
68491
|
}
|
|
68492
68492
|
const watchFiles = [pnpApi.resolveRequest(`pnpapi`, null)];
|
|
68493
|
-
if (
|
|
68494
|
-
const locator = pnpApi.findPackageLocator(
|
|
68493
|
+
if (path13) {
|
|
68494
|
+
const locator = pnpApi.findPackageLocator(path13);
|
|
68495
68495
|
if (locator) {
|
|
68496
68496
|
const info = pnpApi.getPackageInformation(locator);
|
|
68497
68497
|
if ((info === null || info === void 0 ? void 0 : info.linkType) === `SOFT`) {
|
|
68498
|
-
watchFiles.push((_b2 = (_a2 = pnpApi.resolveVirtual) === null || _a2 === void 0 ? void 0 : _a2.call(pnpApi,
|
|
68498
|
+
watchFiles.push((_b2 = (_a2 = pnpApi.resolveVirtual) === null || _a2 === void 0 ? void 0 : _a2.call(pnpApi, path13)) !== null && _b2 !== void 0 ? _b2 : path13);
|
|
68499
68499
|
}
|
|
68500
68500
|
}
|
|
68501
68501
|
}
|
|
68502
|
-
return onResolve(args, { resolvedPath:
|
|
68502
|
+
return onResolve(args, { resolvedPath: path13, error, watchFiles });
|
|
68503
68503
|
});
|
|
68504
68504
|
if (build2.onLoad !== null) {
|
|
68505
68505
|
build2.onLoad({ filter: filter2 }, onLoad);
|
|
@@ -68657,19 +68657,19 @@ function __throw__(error) {
|
|
|
68657
68657
|
}
|
|
68658
68658
|
function makePartialRefinement(definition) {
|
|
68659
68659
|
const possibleKeys = Object.keys(definition);
|
|
68660
|
-
function doRefinement(d,
|
|
68660
|
+
function doRefinement(d, path13, v, depth = 0) {
|
|
68661
68661
|
if (typeof d === "function") {
|
|
68662
|
-
return d(
|
|
68662
|
+
return d(path13, v);
|
|
68663
68663
|
}
|
|
68664
68664
|
if (typeof v !== "object" || v === null) {
|
|
68665
|
-
return new import_refinements.RefinementError(
|
|
68665
|
+
return new import_refinements.RefinementError(path13, `to be an Object`);
|
|
68666
68666
|
}
|
|
68667
68667
|
const o = {};
|
|
68668
68668
|
for (let k of possibleKeys) {
|
|
68669
68669
|
if (depth < 1 && !(k in v)) {
|
|
68670
68670
|
continue;
|
|
68671
68671
|
}
|
|
68672
|
-
const result = doRefinement(d[k],
|
|
68672
|
+
const result = doRefinement(d[k], path13.concat(k), v[k], depth + 1);
|
|
68673
68673
|
if (result instanceof import_refinements.RefinementError) {
|
|
68674
68674
|
return result;
|
|
68675
68675
|
}
|
|
@@ -68677,7 +68677,7 @@ function makePartialRefinement(definition) {
|
|
|
68677
68677
|
}
|
|
68678
68678
|
return o;
|
|
68679
68679
|
}
|
|
68680
|
-
return (
|
|
68680
|
+
return (path13, v) => doRefinement(definition, path13, v);
|
|
68681
68681
|
}
|
|
68682
68682
|
|
|
68683
68683
|
// pnp:/builds/normed/bundle/packages/bundle/src/readConfigs.ts
|
|
@@ -69182,10 +69182,17 @@ function isRelativeAssetPath(assetPath) {
|
|
|
69182
69182
|
function isPugReference(assetPath) {
|
|
69183
69183
|
return assetPath.endsWith(".pug") && isRelativeAssetPath(assetPath);
|
|
69184
69184
|
}
|
|
69185
|
+
function isLessReference(assetPath) {
|
|
69186
|
+
return assetPath.endsWith(".less") && isRelativeAssetPath(assetPath);
|
|
69187
|
+
}
|
|
69185
69188
|
var discoveredPugReferences = /* @__PURE__ */ new Map();
|
|
69189
|
+
var discoveredLessReferences = /* @__PURE__ */ new Map();
|
|
69186
69190
|
function clearDiscoveredPugReferences() {
|
|
69187
69191
|
discoveredPugReferences.clear();
|
|
69188
69192
|
}
|
|
69193
|
+
function clearDiscoveredLessReferences() {
|
|
69194
|
+
discoveredLessReferences.clear();
|
|
69195
|
+
}
|
|
69189
69196
|
function applyAssetNamesTemplate(template, originalPath, hash, baseDir) {
|
|
69190
69197
|
const ext = import_path5.default.extname(originalPath).slice(1);
|
|
69191
69198
|
const name3 = import_path5.default.basename(originalPath, import_path5.default.extname(originalPath));
|
|
@@ -69196,6 +69203,7 @@ function applyAssetNamesTemplate(template, originalPath, hash, baseDir) {
|
|
|
69196
69203
|
async function processHtmlAssets(html, pugFilePath, options) {
|
|
69197
69204
|
const assets = [];
|
|
69198
69205
|
const pugReferences = [];
|
|
69206
|
+
const lessReferences = [];
|
|
69199
69207
|
const assetNames = options.assetNames || "[name]-[hash]";
|
|
69200
69208
|
const outdir = options.outdir || ".";
|
|
69201
69209
|
const outbase = options.outbase || import_path5.default.dirname(pugFilePath);
|
|
@@ -69221,6 +69229,7 @@ async function processHtmlAssets(html, pugFilePath, options) {
|
|
|
69221
69229
|
}
|
|
69222
69230
|
}
|
|
69223
69231
|
const discoveredPugPaths = /* @__PURE__ */ new Set();
|
|
69232
|
+
const discoveredLessPaths = /* @__PURE__ */ new Set();
|
|
69224
69233
|
for (const { fullMatch, attr, value } of matches) {
|
|
69225
69234
|
let newValue = value;
|
|
69226
69235
|
if (attr === "srcset") {
|
|
@@ -69266,6 +69275,12 @@ async function processHtmlAssets(html, pugFilePath, options) {
|
|
|
69266
69275
|
discoveredPugPaths.add(absolutePath);
|
|
69267
69276
|
pugReferences.push({ originalHref: value, absolutePath });
|
|
69268
69277
|
}
|
|
69278
|
+
} else if (isLessReference(value)) {
|
|
69279
|
+
const absolutePath = import_path5.default.resolve(pugDir, value);
|
|
69280
|
+
if (!discoveredLessPaths.has(absolutePath)) {
|
|
69281
|
+
discoveredLessPaths.add(absolutePath);
|
|
69282
|
+
lessReferences.push({ originalHref: value, absolutePath });
|
|
69283
|
+
}
|
|
69269
69284
|
} else if (isRelativeAssetPath(value)) {
|
|
69270
69285
|
const hashedPath = await processAsset(
|
|
69271
69286
|
value,
|
|
@@ -69287,7 +69302,7 @@ async function processHtmlAssets(html, pugFilePath, options) {
|
|
|
69287
69302
|
modifiedHtml = modifiedHtml.replace(fullMatch, newFullMatch);
|
|
69288
69303
|
}
|
|
69289
69304
|
}
|
|
69290
|
-
return { html: modifiedHtml, assets, pugReferences };
|
|
69305
|
+
return { html: modifiedHtml, assets, pugReferences, lessReferences };
|
|
69291
69306
|
}
|
|
69292
69307
|
async function processAsset(assetPath, pugDir, pugFilePath, outdir, outbase, assetNames, publicPath, assets, processedAssets) {
|
|
69293
69308
|
const absoluteSource = import_path5.default.resolve(pugDir, assetPath);
|
|
@@ -69329,10 +69344,10 @@ async function processAsset(assetPath, pugDir, pugFilePath, outdir, outbase, ass
|
|
|
69329
69344
|
}
|
|
69330
69345
|
}
|
|
69331
69346
|
async function copyAssets(assets) {
|
|
69332
|
-
const
|
|
69347
|
+
const written = /* @__PURE__ */ new Set();
|
|
69333
69348
|
for (const asset of assets) {
|
|
69334
|
-
if (
|
|
69335
|
-
|
|
69349
|
+
if (written.has(asset.absoluteOutput)) continue;
|
|
69350
|
+
written.add(asset.absoluteOutput);
|
|
69336
69351
|
const outputDir = import_path5.default.dirname(asset.absoluteOutput);
|
|
69337
69352
|
await import_fs4.default.promises.mkdir(outputDir, { recursive: true });
|
|
69338
69353
|
await import_fs4.default.promises.copyFile(asset.absoluteSource, asset.absoluteOutput);
|
|
@@ -69421,12 +69436,16 @@ async function loadAsEntrypoint(filepath, options) {
|
|
|
69421
69436
|
const {
|
|
69422
69437
|
html: processedHtml,
|
|
69423
69438
|
assets,
|
|
69424
|
-
pugReferences
|
|
69439
|
+
pugReferences,
|
|
69440
|
+
lessReferences
|
|
69425
69441
|
} = await processHtmlAssets(contents, filepath, options);
|
|
69426
69442
|
contents = processedHtml;
|
|
69427
69443
|
if (pugReferences.length > 0) {
|
|
69428
69444
|
discoveredPugReferences.set(filepath, pugReferences);
|
|
69429
69445
|
}
|
|
69446
|
+
if (lessReferences.length > 0) {
|
|
69447
|
+
discoveredLessReferences.set(filepath, lessReferences);
|
|
69448
|
+
}
|
|
69430
69449
|
if (assets.length > 0) {
|
|
69431
69450
|
await copyAssets(assets);
|
|
69432
69451
|
}
|
|
@@ -69594,11 +69613,11 @@ function createCssExternalUrlsPlugin(patterns) {
|
|
|
69594
69613
|
name: name3,
|
|
69595
69614
|
setup(build2) {
|
|
69596
69615
|
build2.onResolve({ filter: /.*/ }, (args) => {
|
|
69597
|
-
const
|
|
69616
|
+
const path13 = args.path;
|
|
69598
69617
|
for (const regex of regexPatterns) {
|
|
69599
|
-
if (regex.test(
|
|
69618
|
+
if (regex.test(path13)) {
|
|
69600
69619
|
return {
|
|
69601
|
-
path:
|
|
69620
|
+
path: path13,
|
|
69602
69621
|
external: true
|
|
69603
69622
|
};
|
|
69604
69623
|
}
|
|
@@ -69609,11 +69628,60 @@ function createCssExternalUrlsPlugin(patterns) {
|
|
|
69609
69628
|
};
|
|
69610
69629
|
}
|
|
69611
69630
|
|
|
69631
|
+
// pnp:/builds/normed/bundle/packages/bundle/src/esbuild-plugins/css_url_resolver.ts
|
|
69632
|
+
var import_path7 = __toESM(require("path"));
|
|
69633
|
+
var import_fs6 = __toESM(require("fs"));
|
|
69634
|
+
function isRelativeAssetPath2(assetPath) {
|
|
69635
|
+
if (!assetPath) return false;
|
|
69636
|
+
if (assetPath.startsWith("#")) return false;
|
|
69637
|
+
if (assetPath.startsWith("//")) return false;
|
|
69638
|
+
if (assetPath.startsWith("/")) return false;
|
|
69639
|
+
try {
|
|
69640
|
+
new URL(assetPath);
|
|
69641
|
+
return false;
|
|
69642
|
+
} catch {
|
|
69643
|
+
return true;
|
|
69644
|
+
}
|
|
69645
|
+
}
|
|
69646
|
+
function createCssUrlResolverPlugin() {
|
|
69647
|
+
const name3 = "css-url-resolver";
|
|
69648
|
+
return {
|
|
69649
|
+
name: name3,
|
|
69650
|
+
setup(build2) {
|
|
69651
|
+
build2.onResolve({ filter: /.*/ }, (args) => {
|
|
69652
|
+
if (args.kind !== "url-token") {
|
|
69653
|
+
return void 0;
|
|
69654
|
+
}
|
|
69655
|
+
const urlPath = args.path;
|
|
69656
|
+
if (!isRelativeAssetPath2(urlPath)) {
|
|
69657
|
+
return {
|
|
69658
|
+
path: urlPath,
|
|
69659
|
+
external: true
|
|
69660
|
+
};
|
|
69661
|
+
}
|
|
69662
|
+
if (args.resolveDir) {
|
|
69663
|
+
const resolvedPath = import_path7.default.resolve(args.resolveDir, urlPath);
|
|
69664
|
+
if (import_fs6.default.existsSync(resolvedPath)) {
|
|
69665
|
+
return {
|
|
69666
|
+
path: resolvedPath,
|
|
69667
|
+
namespace: "file"
|
|
69668
|
+
};
|
|
69669
|
+
}
|
|
69670
|
+
}
|
|
69671
|
+
return {
|
|
69672
|
+
path: urlPath,
|
|
69673
|
+
external: true
|
|
69674
|
+
};
|
|
69675
|
+
});
|
|
69676
|
+
}
|
|
69677
|
+
};
|
|
69678
|
+
}
|
|
69679
|
+
|
|
69612
69680
|
// pnp:/builds/normed/bundle/packages/bundle/src/builders/esbuilder.ts
|
|
69613
69681
|
var import_esbuild_plugin_pnp = __toESM(require_lib15());
|
|
69614
69682
|
var ts = __toESM(require("typescript"));
|
|
69615
|
-
var
|
|
69616
|
-
var
|
|
69683
|
+
var import_path8 = __toESM(require("path"));
|
|
69684
|
+
var import_fs7 = __toESM(require("fs"));
|
|
69617
69685
|
import_chalk3.default.level = 3;
|
|
69618
69686
|
function rewritePugReferencesInHtml(html, pugReferences, pugToOutputPath) {
|
|
69619
69687
|
let result = html;
|
|
@@ -69625,6 +69693,16 @@ function rewritePugReferencesInHtml(html, pugReferences, pugToOutputPath) {
|
|
|
69625
69693
|
}
|
|
69626
69694
|
return result;
|
|
69627
69695
|
}
|
|
69696
|
+
function rewriteLessReferencesInHtml(html, lessReferences, lessToOutputPath) {
|
|
69697
|
+
let result = html;
|
|
69698
|
+
for (const ref of lessReferences) {
|
|
69699
|
+
const outputPath = lessToOutputPath.get(ref.absolutePath);
|
|
69700
|
+
if (outputPath) {
|
|
69701
|
+
result = result.split(ref.originalHref).join(outputPath);
|
|
69702
|
+
}
|
|
69703
|
+
}
|
|
69704
|
+
return result;
|
|
69705
|
+
}
|
|
69628
69706
|
function outExt(inExt) {
|
|
69629
69707
|
if (inExt.match(/^((c|m)?sx?|tsx?)$/)) {
|
|
69630
69708
|
return "js";
|
|
@@ -69709,6 +69787,8 @@ var esbuilder = {
|
|
|
69709
69787
|
load_pug_default,
|
|
69710
69788
|
load_ts_js_default({ sourceRelativeDirnameFilename: true, basedir: indir }),
|
|
69711
69789
|
...externalUrlsPlugin ? [externalUrlsPlugin] : [],
|
|
69790
|
+
createCssUrlResolverPlugin(),
|
|
69791
|
+
// Handle CSS url() before PnP to prevent data URIs and relative paths from being treated as packages
|
|
69712
69792
|
(0, import_esbuild_plugin_pnp.pnpPlugin)()
|
|
69713
69793
|
// if running in yarn/other pnp env
|
|
69714
69794
|
],
|
|
@@ -69728,10 +69808,14 @@ var esbuilder = {
|
|
|
69728
69808
|
)
|
|
69729
69809
|
);
|
|
69730
69810
|
clearDiscoveredPugReferences();
|
|
69811
|
+
clearDiscoveredLessReferences();
|
|
69731
69812
|
const pugHtmlOutputs = /* @__PURE__ */ new Map();
|
|
69732
69813
|
const pugToOutputPath = /* @__PURE__ */ new Map();
|
|
69814
|
+
const lessToOutputPath = /* @__PURE__ */ new Map();
|
|
69733
69815
|
const processedPugFiles = /* @__PURE__ */ new Set();
|
|
69816
|
+
const processedLessFiles = /* @__PURE__ */ new Set();
|
|
69734
69817
|
const pendingPugFiles = [];
|
|
69818
|
+
const pendingLessFiles = [];
|
|
69735
69819
|
const processOutputFiles = async (result, currentOutputFilesMap, isDiscoveredBuild) => {
|
|
69736
69820
|
if (result.errors.length || result.warnings.length) {
|
|
69737
69821
|
log_default.info(`Build completed with errors or warnings:`, {
|
|
@@ -69742,7 +69826,7 @@ var esbuilder = {
|
|
|
69742
69826
|
}
|
|
69743
69827
|
log_default.debug(
|
|
69744
69828
|
`Got output files:`,
|
|
69745
|
-
result.outputFiles.map((f) =>
|
|
69829
|
+
result.outputFiles.map((f) => import_path8.default.relative(outdir, f.path))
|
|
69746
69830
|
);
|
|
69747
69831
|
const writers = [];
|
|
69748
69832
|
for (const file of result.outputFiles) {
|
|
@@ -69752,7 +69836,7 @@ var esbuilder = {
|
|
|
69752
69836
|
}
|
|
69753
69837
|
return c5;
|
|
69754
69838
|
};
|
|
69755
|
-
const relativeFilePath =
|
|
69839
|
+
const relativeFilePath = import_path8.default.relative(outdir, file.path);
|
|
69756
69840
|
let relativeTarget = relativeFilePath;
|
|
69757
69841
|
let content = file.contents;
|
|
69758
69842
|
let transforms = [];
|
|
@@ -69791,10 +69875,11 @@ var esbuilder = {
|
|
|
69791
69875
|
const sourcePath = oFM_result?.sourcePath;
|
|
69792
69876
|
if (isHtmlOutput && sourcePath) {
|
|
69793
69877
|
const pugRefs = discoveredPugReferences.get(sourcePath) || [];
|
|
69878
|
+
const lessRefs = discoveredLessReferences.get(sourcePath) || [];
|
|
69794
69879
|
pugToOutputPath.set(sourcePath, relativeTarget);
|
|
69795
69880
|
for (const ref of pugRefs) {
|
|
69796
69881
|
if (!processedPugFiles.has(ref.absolutePath) && !pendingPugFiles.includes(ref.absolutePath)) {
|
|
69797
|
-
if (
|
|
69882
|
+
if (import_fs7.default.existsSync(ref.absolutePath)) {
|
|
69798
69883
|
pendingPugFiles.push(ref.absolutePath);
|
|
69799
69884
|
log_default.debug(
|
|
69800
69885
|
`Discovered pug reference: ${ref.originalHref} -> ${ref.absolutePath}`
|
|
@@ -69806,15 +69891,36 @@ var esbuilder = {
|
|
|
69806
69891
|
}
|
|
69807
69892
|
}
|
|
69808
69893
|
}
|
|
69894
|
+
for (const ref of lessRefs) {
|
|
69895
|
+
if (!processedLessFiles.has(ref.absolutePath) && !pendingLessFiles.includes(ref.absolutePath)) {
|
|
69896
|
+
if (import_fs7.default.existsSync(ref.absolutePath)) {
|
|
69897
|
+
pendingLessFiles.push(ref.absolutePath);
|
|
69898
|
+
log_default.debug(
|
|
69899
|
+
`Discovered less reference: ${ref.originalHref} -> ${ref.absolutePath}`
|
|
69900
|
+
);
|
|
69901
|
+
} else {
|
|
69902
|
+
log_default.warn(
|
|
69903
|
+
`Referenced less file not found: ${ref.originalHref} (resolved to ${ref.absolutePath})`
|
|
69904
|
+
);
|
|
69905
|
+
}
|
|
69906
|
+
}
|
|
69907
|
+
}
|
|
69809
69908
|
pugHtmlOutputs.set(sourcePath, {
|
|
69810
69909
|
content: file.text,
|
|
69811
69910
|
sourcePath,
|
|
69812
|
-
outputPath:
|
|
69813
|
-
pugReferences: pugRefs
|
|
69911
|
+
outputPath: import_path8.default.join(outdir, relativeTarget),
|
|
69912
|
+
pugReferences: pugRefs,
|
|
69913
|
+
lessReferences: lessRefs
|
|
69814
69914
|
});
|
|
69815
69915
|
} else {
|
|
69916
|
+
if (relativeTarget.endsWith(".css") && oFM_result?.entrypoint?.infile.extension === "less") {
|
|
69917
|
+
lessToOutputPath.set(
|
|
69918
|
+
oFM_result.entrypoint.infile.absolute,
|
|
69919
|
+
relativeTarget
|
|
69920
|
+
);
|
|
69921
|
+
}
|
|
69816
69922
|
const promise = fileWriter.writeFile(
|
|
69817
|
-
|
|
69923
|
+
import_path8.default.join(outdir, relativeTarget),
|
|
69818
69924
|
applyTransforms(content, transforms),
|
|
69819
69925
|
{ encoding: "utf-8" }
|
|
69820
69926
|
);
|
|
@@ -69844,6 +69950,9 @@ var esbuilder = {
|
|
|
69844
69950
|
if (entrypoint.infile.extension === "pug") {
|
|
69845
69951
|
processedPugFiles.add(entrypoint.infile.absolute);
|
|
69846
69952
|
}
|
|
69953
|
+
if (entrypoint.infile.extension === "less") {
|
|
69954
|
+
processedLessFiles.add(entrypoint.infile.absolute);
|
|
69955
|
+
}
|
|
69847
69956
|
}
|
|
69848
69957
|
const extendedOutputFilesMap = /* @__PURE__ */ new Map();
|
|
69849
69958
|
for (const [key, value] of outputFilesMap.entries()) {
|
|
@@ -69870,7 +69979,7 @@ var esbuilder = {
|
|
|
69870
69979
|
);
|
|
69871
69980
|
const discoveredOutputFilesMap = /* @__PURE__ */ new Map();
|
|
69872
69981
|
for (const pugSourcePath of newEntryPoints) {
|
|
69873
|
-
const relativeSource =
|
|
69982
|
+
const relativeSource = import_path8.default.relative(indir, pugSourcePath);
|
|
69874
69983
|
discoveredOutputFilesMap.set(relativeSource, {
|
|
69875
69984
|
entrypoint: void 0,
|
|
69876
69985
|
sourcePath: pugSourcePath,
|
|
@@ -69891,8 +70000,41 @@ var esbuilder = {
|
|
|
69891
70000
|
true
|
|
69892
70001
|
);
|
|
69893
70002
|
}
|
|
70003
|
+
while (pendingLessFiles.length > 0) {
|
|
70004
|
+
const batch = pendingLessFiles.splice(0);
|
|
70005
|
+
const newEntryPoints = batch.filter(
|
|
70006
|
+
(f) => !processedLessFiles.has(f)
|
|
70007
|
+
);
|
|
70008
|
+
if (newEntryPoints.length === 0) break;
|
|
70009
|
+
log_default.debug(
|
|
70010
|
+
`Building ${newEntryPoints.length} discovered less file(s):`,
|
|
70011
|
+
newEntryPoints
|
|
70012
|
+
);
|
|
70013
|
+
for (const lessSourcePath of newEntryPoints) {
|
|
70014
|
+
processedLessFiles.add(lessSourcePath);
|
|
70015
|
+
const entryNames = finalConfig.assetNames?.replace("[ext]", "") || "[name]-[hash]";
|
|
70016
|
+
const lessConfig = {
|
|
70017
|
+
...finalConfig,
|
|
70018
|
+
entryPoints: [lessSourcePath],
|
|
70019
|
+
entryNames
|
|
70020
|
+
};
|
|
70021
|
+
const lessResult = await esbuild.build(lessConfig);
|
|
70022
|
+
for (const file of lessResult.outputFiles) {
|
|
70023
|
+
const relativeFilePath = import_path8.default.relative(outdir, file.path);
|
|
70024
|
+
if (relativeFilePath.endsWith(".css")) {
|
|
70025
|
+
lessToOutputPath.set(lessSourcePath, relativeFilePath);
|
|
70026
|
+
await fileWriter.writeFile(file.path, file.contents, {
|
|
70027
|
+
encoding: "utf-8"
|
|
70028
|
+
});
|
|
70029
|
+
log_default.debug(
|
|
70030
|
+
`Built less file: ${import_path8.default.relative(indir, lessSourcePath)} -> ${relativeFilePath}`
|
|
70031
|
+
);
|
|
70032
|
+
}
|
|
70033
|
+
}
|
|
70034
|
+
}
|
|
70035
|
+
}
|
|
69894
70036
|
log_default.debug(
|
|
69895
|
-
`Rewriting pug references in ${pugHtmlOutputs.size} HTML file(s)`
|
|
70037
|
+
`Rewriting pug/less references in ${pugHtmlOutputs.size} HTML file(s)`
|
|
69896
70038
|
);
|
|
69897
70039
|
const htmlWriters = [];
|
|
69898
70040
|
for (const [_sourcePath, output] of pugHtmlOutputs.entries()) {
|
|
@@ -69904,6 +70046,13 @@ var esbuilder = {
|
|
|
69904
70046
|
pugToOutputPath
|
|
69905
70047
|
);
|
|
69906
70048
|
}
|
|
70049
|
+
if (output.lessReferences.length > 0) {
|
|
70050
|
+
html = rewriteLessReferencesInHtml(
|
|
70051
|
+
html,
|
|
70052
|
+
output.lessReferences,
|
|
70053
|
+
lessToOutputPath
|
|
70054
|
+
);
|
|
70055
|
+
}
|
|
69907
70056
|
const promise = fileWriter.writeFile(output.outputPath, html, {
|
|
69908
70057
|
encoding: "utf-8"
|
|
69909
70058
|
});
|
|
@@ -70058,11 +70207,11 @@ function getBuilder(builders2, ext, modifiers) {
|
|
|
70058
70207
|
}
|
|
70059
70208
|
|
|
70060
70209
|
// pnp:/builds/normed/bundle/packages/bundle/src/entrypoints.ts
|
|
70061
|
-
var
|
|
70210
|
+
var import_path12 = __toESM(require("path"));
|
|
70062
70211
|
|
|
70063
70212
|
// pnp:/builds/normed/bundle/.yarn/cache/filesystem-traverse-npm-3.0.0-2273ac54af-8725791ac7.zip/node_modules/filesystem-traverse/dist/esm/index.mjs
|
|
70064
|
-
var
|
|
70065
|
-
var
|
|
70213
|
+
var import_path9 = __toESM(require("path"), 1);
|
|
70214
|
+
var import_fs8 = __toESM(require("fs"), 1);
|
|
70066
70215
|
function makeAsync(func) {
|
|
70067
70216
|
return async (arg) => func(arg);
|
|
70068
70217
|
}
|
|
@@ -70093,16 +70242,16 @@ function makeInclude(include, exclude) {
|
|
|
70093
70242
|
};
|
|
70094
70243
|
}
|
|
70095
70244
|
async function search(match, context, directory, state = { complete: false }) {
|
|
70096
|
-
const { fs:
|
|
70245
|
+
const { fs: fs12, basedir, includeFile, includeDirectory } = context;
|
|
70097
70246
|
if (state.complete) {
|
|
70098
70247
|
return;
|
|
70099
70248
|
}
|
|
70100
|
-
const entries = await
|
|
70249
|
+
const entries = await fs12.promises.readdir(import_path9.default.join(basedir, directory), {
|
|
70101
70250
|
encoding: "utf8",
|
|
70102
70251
|
withFileTypes: true
|
|
70103
70252
|
});
|
|
70104
|
-
const files = entries.filter((entry) => entry.isFile() && includeFile(entry.name)).map((entry) =>
|
|
70105
|
-
const directories = entries.filter((entry) => entry.isDirectory() && includeDirectory(entry.name)).map((entry) =>
|
|
70253
|
+
const files = entries.filter((entry) => entry.isFile() && includeFile(entry.name)).map((entry) => import_path9.default.join(directory, entry.name));
|
|
70254
|
+
const directories = entries.filter((entry) => entry.isDirectory() && includeDirectory(entry.name)).map((entry) => import_path9.default.join(directory, entry.name));
|
|
70106
70255
|
const fileSearch = files.map(async (file) => {
|
|
70107
70256
|
if (!state.complete) {
|
|
70108
70257
|
const result = await match(file);
|
|
@@ -70117,15 +70266,15 @@ async function search(match, context, directory, state = { complete: false }) {
|
|
|
70117
70266
|
await Promise.all([...fileSearch, ...directorySearch]);
|
|
70118
70267
|
}
|
|
70119
70268
|
function optionsToContext(options) {
|
|
70120
|
-
const basedir =
|
|
70269
|
+
const basedir = import_path9.default.isAbsolute(options.directory || "") ? options.directory || "" : import_path9.default.resolve(import_path9.default.join(process.cwd(), options.directory || ""));
|
|
70121
70270
|
const includeFile = makeInclude(options.include_file, options.exclude_file);
|
|
70122
70271
|
const includeDirectory = makeInclude(
|
|
70123
70272
|
options.include_dir,
|
|
70124
70273
|
options.exclude_dir
|
|
70125
70274
|
);
|
|
70126
|
-
const
|
|
70275
|
+
const fs12 = options.fs || import_fs8.default;
|
|
70127
70276
|
return {
|
|
70128
|
-
fs:
|
|
70277
|
+
fs: fs12,
|
|
70129
70278
|
basedir,
|
|
70130
70279
|
includeFile,
|
|
70131
70280
|
includeDirectory
|
|
@@ -70242,7 +70391,7 @@ function getOutExt(builder, infile) {
|
|
|
70242
70391
|
}
|
|
70243
70392
|
|
|
70244
70393
|
// pnp:/builds/normed/bundle/packages/bundle/src/File.ts
|
|
70245
|
-
var
|
|
70394
|
+
var import_path10 = __toESM(require("path"));
|
|
70246
70395
|
var File = class {
|
|
70247
70396
|
basedir;
|
|
70248
70397
|
relative;
|
|
@@ -70257,13 +70406,13 @@ var File = class {
|
|
|
70257
70406
|
*/
|
|
70258
70407
|
constructor(opts) {
|
|
70259
70408
|
this.basedir = opts.basedir;
|
|
70260
|
-
this.relative =
|
|
70409
|
+
this.relative = import_path10.default.relative(
|
|
70261
70410
|
this.basedir,
|
|
70262
|
-
|
|
70411
|
+
import_path10.default.resolve(this.basedir, opts.path)
|
|
70263
70412
|
);
|
|
70264
|
-
this.absolute =
|
|
70265
|
-
this.dirname =
|
|
70266
|
-
const conventional_basename =
|
|
70413
|
+
this.absolute = import_path10.default.join(this.basedir, this.relative);
|
|
70414
|
+
this.dirname = import_path10.default.dirname(this.relative);
|
|
70415
|
+
const conventional_basename = import_path10.default.basename(this.relative);
|
|
70267
70416
|
const parts = conventional_basename.split(".");
|
|
70268
70417
|
this.extension = parts.pop() ?? __throw__(new Error(`No extension found for file "${opts.path}"`));
|
|
70269
70418
|
const file_start = parts.shift() ?? __throw__(new Error(`No basename found for file "${opts.path}"`));
|
|
@@ -70283,7 +70432,7 @@ var File = class {
|
|
|
70283
70432
|
}
|
|
70284
70433
|
}
|
|
70285
70434
|
this.basename = [file_start, ...parts].join(".");
|
|
70286
|
-
this.bare =
|
|
70435
|
+
this.bare = import_path10.default.join(this.dirname, this.basename);
|
|
70287
70436
|
}
|
|
70288
70437
|
};
|
|
70289
70438
|
|
|
@@ -70471,8 +70620,8 @@ var SetMap = class _SetMap {
|
|
|
70471
70620
|
};
|
|
70472
70621
|
|
|
70473
70622
|
// pnp:/builds/normed/bundle/packages/bundle/src/EntryConfigInstance.ts
|
|
70474
|
-
var
|
|
70475
|
-
var
|
|
70623
|
+
var import_fs9 = __toESM(require("fs"));
|
|
70624
|
+
var import_path11 = __toESM(require("path"));
|
|
70476
70625
|
var namedEntryConfigs = /* @__PURE__ */ new Map();
|
|
70477
70626
|
var entryConfigEquality = new SetMap();
|
|
70478
70627
|
var EntryConfigInstance = class _EntryConfigInstance {
|
|
@@ -70654,24 +70803,24 @@ var EntryConfigInstance = class _EntryConfigInstance {
|
|
|
70654
70803
|
}
|
|
70655
70804
|
};
|
|
70656
70805
|
async function readEsbuild(filepath, relativeDirectory) {
|
|
70657
|
-
const aboslutePath =
|
|
70806
|
+
const aboslutePath = import_path11.default.resolve(
|
|
70658
70807
|
relativeDirectory ?? process.cwd(),
|
|
70659
70808
|
filepath
|
|
70660
70809
|
);
|
|
70661
|
-
const data = await
|
|
70810
|
+
const data = await import_fs9.default.promises.readFile(aboslutePath, "utf-8");
|
|
70662
70811
|
return JSON.parse(data);
|
|
70663
70812
|
}
|
|
70664
70813
|
async function readTsconfig(filepath, relativeDirectory) {
|
|
70665
|
-
const aboslutePath =
|
|
70814
|
+
const aboslutePath = import_path11.default.resolve(
|
|
70666
70815
|
relativeDirectory ?? process.cwd(),
|
|
70667
70816
|
filepath
|
|
70668
70817
|
);
|
|
70669
|
-
const data = await
|
|
70818
|
+
const data = await import_fs9.default.promises.readFile(aboslutePath, "utf-8");
|
|
70670
70819
|
return JSON.parse(data);
|
|
70671
70820
|
}
|
|
70672
70821
|
|
|
70673
70822
|
// pnp:/builds/normed/bundle/packages/bundle/src/entrypoints.ts
|
|
70674
|
-
var
|
|
70823
|
+
var import_fs10 = __toESM(require("fs"));
|
|
70675
70824
|
async function pathToEntrypoint(buildConfig, file, source) {
|
|
70676
70825
|
const infile = new File({
|
|
70677
70826
|
supportedModifiers: buildConfig.modifiers,
|
|
@@ -70679,14 +70828,14 @@ async function pathToEntrypoint(buildConfig, file, source) {
|
|
|
70679
70828
|
basedir: buildConfig.dir.in,
|
|
70680
70829
|
parseModifiers: true
|
|
70681
70830
|
});
|
|
70682
|
-
const stats = await
|
|
70831
|
+
const stats = await import_fs10.default.promises.stat(infile.absolute);
|
|
70683
70832
|
if (stats.isDirectory()) {
|
|
70684
70833
|
(await Promise.all(
|
|
70685
70834
|
await index_default({
|
|
70686
70835
|
directory: infile.relative,
|
|
70687
70836
|
process_file: (file2) => pathToEntrypoint(
|
|
70688
70837
|
buildConfig,
|
|
70689
|
-
|
|
70838
|
+
import_path12.default.join(infile.relative, file2),
|
|
70690
70839
|
source
|
|
70691
70840
|
)
|
|
70692
70841
|
})
|