brsh 2.1.2 → 2.1.3
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/.github/workflows/pages.yml +12 -1
- package/CHANGELOG.md +7 -0
- package/Readme.md +191 -3
- package/dist/shell.es.js +750 -563
- package/dist/shell.es.js.map +1 -1
- package/dist/shell.min.js +13 -9
- package/dist/shell.min.js.map +1 -1
- package/dist/terminal.es.js +759 -572
- package/dist/terminal.es.js.map +1 -1
- package/dist/terminal.min.js +16 -12
- package/dist/terminal.min.js.map +1 -1
- package/index.js +56 -6
- package/lib/BaseFileSystem.js +82 -0
- package/lib/Context.js +2 -2
- package/lib/FileSystem.js +55 -26
- package/lib/NodeFileSystem.js +26 -16
- package/lib/Terminal.js +5 -3
- package/lib/builtins/cat.js +4 -1
- package/lib/builtins/echo.js +2 -0
- package/lib/builtins/false.js +1 -1
- package/lib/builtins/grep.js +10 -2
- package/lib/builtins/ls.js +6 -2
- package/lib/builtins/test.js +2 -4
- package/lib/builtins/true.js +1 -1
- package/lib/local/alias.js +2 -0
- package/lib/local/cd.js +5 -3
- package/lib/local/chmod.js +2 -3
- package/lib/local/clear.js +2 -0
- package/lib/local/cp.js +13 -8
- package/lib/local/curl.js +7 -2
- package/lib/local/exit.js +2 -0
- package/lib/local/export.js +2 -0
- package/lib/local/jsfunction.js +1 -1
- package/lib/local/mkdir.js +3 -3
- package/lib/local/mv.js +12 -6
- package/lib/local/pwd.js +2 -0
- package/lib/local/read.js +2 -0
- package/lib/local/rm.js +1 -1
- package/lib/local/source.js +4 -1
- package/lib/local/which.js +2 -0
- package/package.json +6 -4
- package/test/builtins.test.js +11 -0
- package/test/local-commands.test.js +11 -0
- package/test/shell.test.js +42 -0
- package/vite.config.demo.js +35 -0
package/dist/shell.es.js
CHANGED
|
@@ -2,13 +2,82 @@
|
|
|
2
2
|
var e = (e, t) => () => (e && (t = e(e = 0)), t), t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), n, r = e((() => {
|
|
3
3
|
n = globalThis || self;
|
|
4
4
|
})), i = /* @__PURE__ */ t(((e, t) => {
|
|
5
|
+
var n = new Set([
|
|
6
|
+
"getFileByPath",
|
|
7
|
+
"setFileByPath",
|
|
8
|
+
"deleteFileByPath",
|
|
9
|
+
"exists",
|
|
10
|
+
"stat",
|
|
11
|
+
"absolutePath",
|
|
12
|
+
"getMode",
|
|
13
|
+
"setMode",
|
|
14
|
+
"isReadable",
|
|
15
|
+
"isWritable",
|
|
16
|
+
"isExecutable",
|
|
17
|
+
"getSize",
|
|
18
|
+
"autoComplete",
|
|
19
|
+
"isRealFilesystem",
|
|
20
|
+
"isSymlink"
|
|
21
|
+
]);
|
|
5
22
|
t.exports = class {
|
|
23
|
+
isReadable(e) {
|
|
24
|
+
let t = this.getMode(e);
|
|
25
|
+
return t === null ? !1 : (t & 256) != 0;
|
|
26
|
+
}
|
|
27
|
+
isWritable(e) {
|
|
28
|
+
let t = this.getMode(e);
|
|
29
|
+
return t === null ? !1 : (t & 128) != 0;
|
|
30
|
+
}
|
|
31
|
+
isExecutable(e) {
|
|
32
|
+
let t = this.getMode(e);
|
|
33
|
+
return t === null ? !1 : (t & 64) != 0;
|
|
34
|
+
}
|
|
35
|
+
sandbox() {
|
|
36
|
+
let e = this;
|
|
37
|
+
return new Proxy(Object.create(null), {
|
|
38
|
+
get(t, r) {
|
|
39
|
+
if (!n.has(r)) return;
|
|
40
|
+
let i = e[r];
|
|
41
|
+
return typeof i == "function" ? i.bind(e) : i;
|
|
42
|
+
},
|
|
43
|
+
set() {
|
|
44
|
+
return !1;
|
|
45
|
+
},
|
|
46
|
+
has(e, t) {
|
|
47
|
+
return n.has(t);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
_triggerChange() {
|
|
52
|
+
!this._onChange || this._changeScheduled || (this._changeScheduled = !0, Promise.resolve().then(() => {
|
|
53
|
+
this._changeScheduled = !1, typeof this._onChange == "function" && this._onChange(this.getRaw(), this.getRawPermissions());
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
})), a = /* @__PURE__ */ t(((e, t) => {
|
|
58
|
+
var n = i();
|
|
59
|
+
t.exports = class extends n {
|
|
6
60
|
constructor(e = "/", t = {}, n = {}, r = null) {
|
|
7
|
-
this.fileSystem = t, this.permissions = Object.assign({}, n), this.cwd = e, this._onChange = r, this._changeScheduled = !1;
|
|
61
|
+
super(), this.fileSystem = t, this.permissions = Object.assign({}, n), this.cwd = e, this._onChange = r, this._changeScheduled = !1;
|
|
8
62
|
}
|
|
9
63
|
getFileByPath(e) {
|
|
64
|
+
let t = this._getFileByAbsolutePath(this._pathToAbsolute(e));
|
|
65
|
+
return t == null || !this.isReadable(e) ? null : t;
|
|
66
|
+
}
|
|
67
|
+
_getFileRaw(e) {
|
|
10
68
|
return this._getFileByAbsolutePath(this._pathToAbsolute(e));
|
|
11
69
|
}
|
|
70
|
+
exists(e) {
|
|
71
|
+
return this._getFileByAbsolutePath(this._pathToAbsolute(e)) != null;
|
|
72
|
+
}
|
|
73
|
+
stat(e) {
|
|
74
|
+
let t = this._getFileByAbsolutePath(this._pathToAbsolute(e));
|
|
75
|
+
return t == null ? null : {
|
|
76
|
+
isDirectory: t.constructor === Object,
|
|
77
|
+
isFile: typeof t == "string",
|
|
78
|
+
isCommand: typeof t == "function"
|
|
79
|
+
};
|
|
80
|
+
}
|
|
12
81
|
_pathToAbsolute(e) {
|
|
13
82
|
return e.startsWith("./") && (e = e.substring(2)), e.startsWith("/") || (e = this.cwd + e), this._traverseComplexAbsolutePath(e);
|
|
14
83
|
}
|
|
@@ -24,6 +93,18 @@ var e = (e, t) => () => (e && (t = e(e = 0)), t), t = (e, t) => () => (t || (e((
|
|
|
24
93
|
return this._pathToAbsolute(e);
|
|
25
94
|
}
|
|
26
95
|
setFileByPath(e, t, n = !1) {
|
|
96
|
+
let r = this._pathToAbsolute(e);
|
|
97
|
+
if (this._getFileByAbsolutePath(r) != null) {
|
|
98
|
+
if (!this.isWritable(e)) throw Error("Permission denied");
|
|
99
|
+
} else {
|
|
100
|
+
let e = r.split("/");
|
|
101
|
+
e.pop();
|
|
102
|
+
let t = e.join("/") || "/", n = this.getMode(t);
|
|
103
|
+
if (n !== null && !(n & 128)) throw Error("Permission denied");
|
|
104
|
+
}
|
|
105
|
+
this._setFileByAbsolutePath(r, t, n), this._triggerChange();
|
|
106
|
+
}
|
|
107
|
+
_setFileRaw(e, t, n = !1) {
|
|
27
108
|
let r = this._pathToAbsolute(e);
|
|
28
109
|
this._setFileByAbsolutePath(r, t, n), this._triggerChange();
|
|
29
110
|
}
|
|
@@ -69,10 +150,6 @@ var e = (e, t) => () => (e && (t = e(e = 0)), t), t = (e, t) => () => (t || (e((
|
|
|
69
150
|
let n = this._pathToAbsolute(e);
|
|
70
151
|
this.permissions[n] = t, this._triggerChange();
|
|
71
152
|
}
|
|
72
|
-
isExecutable(e) {
|
|
73
|
-
let t = this.getMode(e);
|
|
74
|
-
return t === null ? !1 : (t & 64) != 0;
|
|
75
|
-
}
|
|
76
153
|
getSize(e) {
|
|
77
154
|
let t = this._pathToAbsolute(e), n = this._getFileByAbsolutePath(t);
|
|
78
155
|
return n == null ? 0 : n.constructor === Object ? JSON.stringify(n).length : n.toString().length;
|
|
@@ -86,16 +163,13 @@ var e = (e, t) => () => (e && (t = e(e = 0)), t), t = (e, t) => () => (t || (e((
|
|
|
86
163
|
getRaw() {
|
|
87
164
|
return this.fileSystem;
|
|
88
165
|
}
|
|
89
|
-
getRawPermissions() {
|
|
90
|
-
return Object.assign({}, this.permissions);
|
|
91
|
-
}
|
|
92
166
|
addFiles(e) {
|
|
93
167
|
Object.entries(e).forEach(([e, t]) => {
|
|
94
|
-
this.
|
|
168
|
+
this._setFileRaw(e, t, !0);
|
|
95
169
|
});
|
|
96
170
|
}
|
|
97
171
|
autoComplete(e, t) {
|
|
98
|
-
let n = this._pathToAbsolute(e).split("/"), r = n.pop(), i = this.
|
|
172
|
+
let n = this._pathToAbsolute(e).split("/"), r = n.pop(), i = this._getFileRaw(n.length > 1 ? n.join("/") : "/"), a = this._getFileRaw(t);
|
|
99
173
|
if (i && i.constructor === Object) {
|
|
100
174
|
let t = Object.keys(i).filter((e) => e.startsWith(r));
|
|
101
175
|
r.length < 1 && (t = t.filter((e) => !e.startsWith(".")));
|
|
@@ -109,101 +183,96 @@ var e = (e, t) => () => (e && (t = e(e = 0)), t), t = (e, t) => () => (t || (e((
|
|
|
109
183
|
}
|
|
110
184
|
return null;
|
|
111
185
|
}
|
|
112
|
-
_triggerChange() {
|
|
113
|
-
!this._onChange || this._changeScheduled || (this._changeScheduled = !0, Promise.resolve().then(() => {
|
|
114
|
-
this._changeScheduled = !1, typeof this._onChange == "function" && this._onChange(this.getRaw(), this.getRawPermissions());
|
|
115
|
-
}));
|
|
116
|
-
}
|
|
117
186
|
};
|
|
118
187
|
}));
|
|
119
188
|
//#endregion
|
|
120
189
|
//#region node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js
|
|
121
|
-
function
|
|
190
|
+
function o(e) {
|
|
122
191
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
123
192
|
}
|
|
124
|
-
function
|
|
193
|
+
function s() {
|
|
125
194
|
throw Error("setTimeout has not been defined");
|
|
126
195
|
}
|
|
127
|
-
function
|
|
196
|
+
function c() {
|
|
128
197
|
throw Error("clearTimeout has not been defined");
|
|
129
198
|
}
|
|
130
|
-
function
|
|
131
|
-
if (
|
|
132
|
-
if ((
|
|
199
|
+
function l(e) {
|
|
200
|
+
if (_ === setTimeout) return setTimeout(e, 0);
|
|
201
|
+
if ((_ === s || !_) && setTimeout) return _ = setTimeout, setTimeout(e, 0);
|
|
133
202
|
try {
|
|
134
|
-
return
|
|
203
|
+
return _(e, 0);
|
|
135
204
|
} catch {
|
|
136
205
|
try {
|
|
137
|
-
return
|
|
206
|
+
return _.call(null, e, 0);
|
|
138
207
|
} catch {
|
|
139
|
-
return
|
|
208
|
+
return _.call(this, e, 0);
|
|
140
209
|
}
|
|
141
210
|
}
|
|
142
211
|
}
|
|
143
|
-
function
|
|
144
|
-
if (
|
|
145
|
-
if ((
|
|
212
|
+
function u(e) {
|
|
213
|
+
if (v === clearTimeout) return clearTimeout(e);
|
|
214
|
+
if ((v === c || !v) && clearTimeout) return v = clearTimeout, clearTimeout(e);
|
|
146
215
|
try {
|
|
147
|
-
return
|
|
216
|
+
return v(e);
|
|
148
217
|
} catch {
|
|
149
218
|
try {
|
|
150
|
-
return
|
|
219
|
+
return v.call(null, e);
|
|
151
220
|
} catch {
|
|
152
|
-
return
|
|
221
|
+
return v.call(this, e);
|
|
153
222
|
}
|
|
154
223
|
}
|
|
155
224
|
}
|
|
156
|
-
function u() {
|
|
157
|
-
!y || !b || (y = !1, b.length ? v = b.concat(v) : x = -1, v.length && d());
|
|
158
|
-
}
|
|
159
225
|
function d() {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
226
|
+
!b || !x || (b = !1, x.length ? y = x.concat(y) : S = -1, y.length && f());
|
|
227
|
+
}
|
|
228
|
+
function f() {
|
|
229
|
+
if (!b) {
|
|
230
|
+
var e = l(d);
|
|
231
|
+
b = !0;
|
|
232
|
+
for (var t = y.length; t;) {
|
|
233
|
+
for (x = y, y = []; ++S < t;) x && x[S].run();
|
|
234
|
+
S = -1, t = y.length;
|
|
235
|
+
}
|
|
236
|
+
x = null, b = !1, u(e);
|
|
168
237
|
}
|
|
169
238
|
}
|
|
170
|
-
function
|
|
239
|
+
function p(e, t) {
|
|
171
240
|
this.fun = e, this.array = t;
|
|
172
241
|
}
|
|
173
|
-
function
|
|
174
|
-
var
|
|
175
|
-
|
|
242
|
+
function m() {}
|
|
243
|
+
var h, g, _, v, y, b, x, S, C, w, T = e((() => {
|
|
244
|
+
h = { exports: {} }, g = h.exports = {}, (function() {
|
|
176
245
|
try {
|
|
177
|
-
|
|
246
|
+
_ = typeof setTimeout == "function" ? setTimeout : s;
|
|
178
247
|
} catch {
|
|
179
|
-
|
|
248
|
+
_ = s;
|
|
180
249
|
}
|
|
181
250
|
try {
|
|
182
|
-
|
|
251
|
+
v = typeof clearTimeout == "function" ? clearTimeout : c;
|
|
183
252
|
} catch {
|
|
184
|
-
|
|
253
|
+
v = c;
|
|
185
254
|
}
|
|
186
|
-
})(),
|
|
255
|
+
})(), y = [], b = !1, S = -1, g.nextTick = function(e) {
|
|
187
256
|
var t = Array(arguments.length - 1);
|
|
188
257
|
if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
189
|
-
|
|
190
|
-
},
|
|
258
|
+
y.push(new p(e, t)), y.length === 1 && !b && l(f);
|
|
259
|
+
}, p.prototype.run = function() {
|
|
191
260
|
this.fun.apply(null, this.array);
|
|
192
|
-
},
|
|
261
|
+
}, g.title = "browser", g.browser = !0, g.env = {}, g.argv = [], g.version = "", g.versions = {}, g.on = m, g.addListener = m, g.once = m, g.off = m, g.removeListener = m, g.removeAllListeners = m, g.emit = m, g.prependListener = m, g.prependOnceListener = m, g.listeners = function(e) {
|
|
193
262
|
return [];
|
|
194
|
-
},
|
|
263
|
+
}, g.binding = function(e) {
|
|
195
264
|
throw Error("process.binding is not supported");
|
|
196
|
-
},
|
|
265
|
+
}, g.cwd = function() {
|
|
197
266
|
return "/";
|
|
198
|
-
},
|
|
267
|
+
}, g.chdir = function(e) {
|
|
199
268
|
throw Error("process.chdir is not supported");
|
|
200
|
-
},
|
|
269
|
+
}, g.umask = function() {
|
|
201
270
|
return 0;
|
|
202
|
-
},
|
|
203
|
-
})), T = /* @__PURE__ */ t(((e, t) => {
|
|
204
|
-
t.exports = null;
|
|
271
|
+
}, C = h.exports, w = /* @__PURE__ */ o(C);
|
|
205
272
|
})), E = /* @__PURE__ */ t(((e, t) => {
|
|
206
|
-
|
|
273
|
+
t.exports = null;
|
|
274
|
+
})), D = /* @__PURE__ */ t(((e, t) => {
|
|
275
|
+
T();
|
|
207
276
|
function n(e) {
|
|
208
277
|
if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
209
278
|
}
|
|
@@ -241,7 +310,7 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
241
310
|
resolve: function() {
|
|
242
311
|
for (var e = "", t = !1, i, a = arguments.length - 1; a >= -1 && !t; a--) {
|
|
243
312
|
var o;
|
|
244
|
-
a >= 0 ? o = arguments[a] : (i === void 0 && (i =
|
|
313
|
+
a >= 0 ? o = arguments[a] : (i === void 0 && (i = w.cwd()), o = i), n(o), o.length !== 0 && (e = o + "/" + e, t = o.charCodeAt(0) === 47);
|
|
245
314
|
}
|
|
246
315
|
return e = r(e, !t), t ? e.length > 0 ? "/" + e : "/" : e.length > 0 ? e : ".";
|
|
247
316
|
},
|
|
@@ -370,12 +439,11 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
370
439
|
posix: null
|
|
371
440
|
};
|
|
372
441
|
a.posix = a, t.exports = a;
|
|
373
|
-
})),
|
|
374
|
-
|
|
375
|
-
var n =
|
|
376
|
-
t.exports = class {
|
|
442
|
+
})), O = /* @__PURE__ */ t(((e, t) => {
|
|
443
|
+
T();
|
|
444
|
+
var n = E(), r = D(), a = i(), o = class extends a {
|
|
377
445
|
constructor(e, t = null) {
|
|
378
|
-
this._onChange = t, this._changeScheduled = !1, this._virtualFiles = {}, this.cwd = this._normalizeCwd(e ||
|
|
446
|
+
super(), this._onChange = t, this._changeScheduled = !1, this._virtualFiles = {}, this.cwd = this._normalizeCwd(e || w.cwd());
|
|
379
447
|
}
|
|
380
448
|
get isRealFilesystem() {
|
|
381
449
|
return !0;
|
|
@@ -458,10 +526,6 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
458
526
|
let r = this.absolutePath(e);
|
|
459
527
|
this._virtualFiles[r] === void 0 && (n.chmodSync(r, t), this._triggerChange());
|
|
460
528
|
}
|
|
461
|
-
isExecutable(e) {
|
|
462
|
-
let t = this.getMode(e);
|
|
463
|
-
return t === null ? !1 : (t & 64) != 0;
|
|
464
|
-
}
|
|
465
529
|
getSize(e) {
|
|
466
530
|
let t = this.absolutePath(e);
|
|
467
531
|
if (this._virtualFiles[t] !== void 0) return 0;
|
|
@@ -535,14 +599,43 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
535
599
|
})
|
|
536
600
|
};
|
|
537
601
|
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
602
|
+
_getFileRaw(e) {
|
|
603
|
+
return this.getFileByPath(e);
|
|
604
|
+
}
|
|
605
|
+
exists(e) {
|
|
606
|
+
let t = this.absolutePath(e);
|
|
607
|
+
if (this._virtualFiles[t] !== void 0) return !0;
|
|
608
|
+
try {
|
|
609
|
+
return n.statSync(t), !0;
|
|
610
|
+
} catch {
|
|
611
|
+
return !1;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
stat(e) {
|
|
615
|
+
let t = this.absolutePath(e);
|
|
616
|
+
if (this._virtualFiles[t] !== void 0) {
|
|
617
|
+
let e = this._virtualFiles[t];
|
|
618
|
+
return {
|
|
619
|
+
isDirectory: e != null && e.constructor === Object,
|
|
620
|
+
isFile: typeof e == "string",
|
|
621
|
+
isCommand: typeof e == "function"
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
try {
|
|
625
|
+
let e = n.statSync(t);
|
|
626
|
+
return {
|
|
627
|
+
isDirectory: e.isDirectory(),
|
|
628
|
+
isFile: e.isFile(),
|
|
629
|
+
isCommand: !1
|
|
630
|
+
};
|
|
631
|
+
} catch {
|
|
632
|
+
return null;
|
|
633
|
+
}
|
|
542
634
|
}
|
|
543
635
|
};
|
|
544
|
-
|
|
545
|
-
|
|
636
|
+
t.exports = o, t.exports = o;
|
|
637
|
+
})), k = /* @__PURE__ */ t(((e, t) => {
|
|
638
|
+
var n = a();
|
|
546
639
|
t.exports = class {
|
|
547
640
|
constructor(e) {
|
|
548
641
|
this.options = e;
|
|
@@ -573,14 +666,14 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
573
666
|
}
|
|
574
667
|
getCommand(e) {
|
|
575
668
|
let t = `${this.getVar("PATH")}/${e}`;
|
|
576
|
-
return this.fs.
|
|
669
|
+
return this.fs._getFileRaw(t) || null;
|
|
577
670
|
}
|
|
578
671
|
setNodeFilesystem(e) {
|
|
579
|
-
let t =
|
|
672
|
+
let t = O(), n = this.fs._onChange;
|
|
580
673
|
this.fs = new t(e, n);
|
|
581
674
|
}
|
|
582
675
|
setFilesystem(e, t = {}) {
|
|
583
|
-
let r = this.fs.
|
|
676
|
+
let r = this.fs._getFileRaw(this.getVar("PATH")) || {}, i = this.fs.getRawPermissions(), a = this.fs._onChange;
|
|
584
677
|
this.fs = new n(this.fs.cwd, e, Object.assign({}, i, t), a), this.fs.addFiles(r);
|
|
585
678
|
}
|
|
586
679
|
setCwd(e) {
|
|
@@ -596,7 +689,7 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
596
689
|
typeof this._destroyFn == "function" && this._destroyFn(e);
|
|
597
690
|
}
|
|
598
691
|
};
|
|
599
|
-
})),
|
|
692
|
+
})), A = /* @__PURE__ */ t(((e, t) => {
|
|
600
693
|
var n = typeof Reflect == "object" ? Reflect : null, r = n && typeof n.apply == "function" ? n.apply : function(e, t, n) {
|
|
601
694
|
return Function.prototype.apply.call(e, t, n);
|
|
602
695
|
}, i = n && typeof n.ownKeys == "function" ? n.ownKeys : Object.getOwnPropertySymbols ? function(e) {
|
|
@@ -771,7 +864,7 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
771
864
|
});
|
|
772
865
|
else throw TypeError("The \"emitter\" argument must be of type EventEmitter. Received type " + typeof e);
|
|
773
866
|
}
|
|
774
|
-
})),
|
|
867
|
+
})), j = /* @__PURE__ */ t(((e, t) => {
|
|
775
868
|
var n = ["out", "err"];
|
|
776
869
|
t.exports = class {
|
|
777
870
|
constructor(e, t) {
|
|
@@ -779,8 +872,8 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
779
872
|
this.type = e, this.string = t;
|
|
780
873
|
}
|
|
781
874
|
};
|
|
782
|
-
})),
|
|
783
|
-
var n =
|
|
875
|
+
})), M = /* @__PURE__ */ t(((e, t) => {
|
|
876
|
+
var n = j();
|
|
784
877
|
t.exports = class {
|
|
785
878
|
constructor(e = [], t = 0) {
|
|
786
879
|
if (typeof t != "number") throw Error("Command Result ExitCode must be a number");
|
|
@@ -804,8 +897,8 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
804
897
|
return this.std = [], e;
|
|
805
898
|
}
|
|
806
899
|
};
|
|
807
|
-
})),
|
|
808
|
-
var n =
|
|
900
|
+
})), N = /* @__PURE__ */ t(((e, t) => {
|
|
901
|
+
var n = A(), r = M(), i = n.EventEmitter || n.default || n;
|
|
809
902
|
t.exports = class extends i {
|
|
810
903
|
constructor(e) {
|
|
811
904
|
super(), this.arguments = e, this.result = new r();
|
|
@@ -833,16 +926,16 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
833
926
|
console.log("flush now"), this.emit("flush", this.result.flush());
|
|
834
927
|
}
|
|
835
928
|
};
|
|
836
|
-
})),
|
|
837
|
-
var n =
|
|
929
|
+
})), P = /* @__PURE__ */ t(((e, t) => {
|
|
930
|
+
var n = N();
|
|
838
931
|
t.exports = class extends n {
|
|
839
932
|
constructor(e, t) {
|
|
840
933
|
super(e), this.context = t;
|
|
841
934
|
}
|
|
842
935
|
};
|
|
843
|
-
})),
|
|
936
|
+
})), F = /* @__PURE__ */ t(((e, t) => {
|
|
844
937
|
r();
|
|
845
|
-
var i =
|
|
938
|
+
var i = P();
|
|
846
939
|
t.exports = class extends i {
|
|
847
940
|
constructor(e, t, n, r = !1) {
|
|
848
941
|
super(t, n), this.script = e, this.source = r;
|
|
@@ -987,7 +1080,7 @@ var m, h, g, _, v, y, b, x, S, C, w = e((() => {
|
|
|
987
1080
|
}));
|
|
988
1081
|
//#endregion
|
|
989
1082
|
//#region node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js
|
|
990
|
-
function
|
|
1083
|
+
function I(e) {
|
|
991
1084
|
var t = e.length;
|
|
992
1085
|
if (t % 4 > 0) throw Error("Invalid string. Length must be a multiple of 4");
|
|
993
1086
|
var n = e.indexOf("=");
|
|
@@ -995,32 +1088,32 @@ function F(e) {
|
|
|
995
1088
|
var r = n === t ? 0 : 4 - n % 4;
|
|
996
1089
|
return [n, r];
|
|
997
1090
|
}
|
|
998
|
-
function
|
|
999
|
-
var t =
|
|
1091
|
+
function L(e) {
|
|
1092
|
+
var t = I(e), n = t[0], r = t[1];
|
|
1000
1093
|
return (n + r) * 3 / 4 - r;
|
|
1001
1094
|
}
|
|
1002
|
-
function
|
|
1095
|
+
function ee(e, t, n) {
|
|
1003
1096
|
return (t + n) * 3 / 4 - n;
|
|
1004
1097
|
}
|
|
1005
|
-
function
|
|
1006
|
-
var t, n =
|
|
1007
|
-
for (c = 0; c < s; c += 4) t =
|
|
1008
|
-
return i === 2 && (t =
|
|
1098
|
+
function te(e) {
|
|
1099
|
+
var t, n = I(e), r = n[0], i = n[1], a = new re(ee(e, r, i)), o = 0, s = i > 0 ? r - 4 : r, c;
|
|
1100
|
+
for (c = 0; c < s; c += 4) t = U[e.charCodeAt(c)] << 18 | U[e.charCodeAt(c + 1)] << 12 | U[e.charCodeAt(c + 2)] << 6 | U[e.charCodeAt(c + 3)], a[o++] = t >> 16 & 255, a[o++] = t >> 8 & 255, a[o++] = t & 255;
|
|
1101
|
+
return i === 2 && (t = U[e.charCodeAt(c)] << 2 | U[e.charCodeAt(c + 1)] >> 4, a[o++] = t & 255), i === 1 && (t = U[e.charCodeAt(c)] << 10 | U[e.charCodeAt(c + 1)] << 4 | U[e.charCodeAt(c + 2)] >> 2, a[o++] = t >> 8 & 255, a[o++] = t & 255), a;
|
|
1009
1102
|
}
|
|
1010
1103
|
function R(e) {
|
|
1011
|
-
return
|
|
1104
|
+
return H[e >> 18 & 63] + H[e >> 12 & 63] + H[e >> 6 & 63] + H[e & 63];
|
|
1012
1105
|
}
|
|
1013
1106
|
function z(e, t, n) {
|
|
1014
1107
|
for (var r, i = [], a = t; a < n; a += 3) r = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (e[a + 2] & 255), i.push(R(r));
|
|
1015
1108
|
return i.join("");
|
|
1016
1109
|
}
|
|
1017
|
-
function
|
|
1110
|
+
function ne(e) {
|
|
1018
1111
|
for (var t, n = e.length, r = n % 3, i = [], a = 16383, o = 0, s = n - r; o < s; o += a) i.push(z(e, o, o + a > s ? s : o + a));
|
|
1019
|
-
return r === 1 ? (t = e[n - 1], i.push(
|
|
1112
|
+
return r === 1 ? (t = e[n - 1], i.push(H[t >> 2] + H[t << 4 & 63] + "==")) : r === 2 && (t = (e[n - 2] << 8) + e[n - 1], i.push(H[t >> 10] + H[t >> 4 & 63] + H[t << 2 & 63] + "=")), i.join("");
|
|
1020
1113
|
}
|
|
1021
|
-
var V, H, U,
|
|
1022
|
-
for (
|
|
1023
|
-
|
|
1114
|
+
var B, V, H, U, re, W, G, ie, ae, oe, se = e((() => {
|
|
1115
|
+
for (B = {}, V = {}, V.byteLength = L, V.toByteArray = te, V.fromByteArray = ne, H = [], U = [], re = typeof Uint8Array < "u" ? Uint8Array : Array, W = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", G = 0, ie = W.length; G < ie; ++G) H[G] = W[G], U[W.charCodeAt(G)] = G;
|
|
1116
|
+
U[45] = 62, U[95] = 63, ae = {}, ae.read = function(e, t, n, r, i) {
|
|
1024
1117
|
var a, o, s = i * 8 - r - 1, c = (1 << s) - 1, l = c >> 1, u = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, p = e[t + d];
|
|
1025
1118
|
for (d += f, a = p & (1 << -u) - 1, p >>= -u, u += s; u > 0; a = a * 256 + e[t + d], d += f, u -= 8);
|
|
1026
1119
|
for (o = a & (1 << -u) - 1, a >>= -u, u += r; u > 0; o = o * 256 + e[t + d], d += f, u -= 8);
|
|
@@ -1028,13 +1121,13 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1028
1121
|
else if (a === c) return o ? NaN : (p ? -1 : 1) * Infinity;
|
|
1029
1122
|
else o += 2 ** r, a -= l;
|
|
1030
1123
|
return (p ? -1 : 1) * o * 2 ** (a - r);
|
|
1031
|
-
},
|
|
1124
|
+
}, ae.write = function(e, t, n, r, i, a) {
|
|
1032
1125
|
var o, s, c, l = a * 8 - i - 1, u = (1 << l) - 1, d = u >> 1, f = i === 23 ? 2 ** -24 - 2 ** -77 : 0, p = r ? 0 : a - 1, m = r ? 1 : -1, h = +(t < 0 || t === 0 && 1 / t < 0);
|
|
1033
1126
|
for (t = Math.abs(t), isNaN(t) || t === Infinity ? (s = +!!isNaN(t), o = u) : (o = Math.floor(Math.log(t) / Math.LN2), t * (c = 2 ** -o) < 1 && (o--, c *= 2), o + d >= 1 ? t += f / c : t += f * 2 ** (1 - d), t * c >= 2 && (o++, c /= 2), o + d >= u ? (s = 0, o = u) : o + d >= 1 ? (s = (t * c - 1) * 2 ** i, o += d) : (s = t * 2 ** (d - 1) * 2 ** i, o = 0)); i >= 8; e[n + p] = s & 255, p += m, s /= 256, i -= 8);
|
|
1034
1127
|
for (o = o << i | s, l += i; l > 0; e[n + p] = o & 255, p += m, o /= 256, l -= 8);
|
|
1035
1128
|
e[n + p - m] |= h * 128;
|
|
1036
1129
|
}, (function(e) {
|
|
1037
|
-
let t =
|
|
1130
|
+
let t = V, n = ae, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
1038
1131
|
e.Buffer = u, e.SlowBuffer = x, e.INSPECT_MAX_BYTES = 50;
|
|
1039
1132
|
let i = 2147483647;
|
|
1040
1133
|
e.kMaxLength = i;
|
|
@@ -1226,7 +1319,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1226
1319
|
case "ucs2":
|
|
1227
1320
|
case "ucs-2":
|
|
1228
1321
|
case "utf16le":
|
|
1229
|
-
case "utf-16le": return
|
|
1322
|
+
case "utf-16le": return te(this, t, n);
|
|
1230
1323
|
default:
|
|
1231
1324
|
if (r) throw TypeError("Unknown encoding: " + e);
|
|
1232
1325
|
e = (e + "").toLowerCase(), r = !0;
|
|
@@ -1429,7 +1522,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1429
1522
|
for (let r = t; r < n; ++r) i += ge[e[r]];
|
|
1430
1523
|
return i;
|
|
1431
1524
|
}
|
|
1432
|
-
function
|
|
1525
|
+
function te(e, t, n) {
|
|
1433
1526
|
let r = e.slice(t, n), i = "";
|
|
1434
1527
|
for (let e = 0; e < r.length - 1; e += 2) i += String.fromCharCode(r[e] + r[e + 1] * 256);
|
|
1435
1528
|
return i;
|
|
@@ -1440,30 +1533,30 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1440
1533
|
let r = this.subarray(e, t);
|
|
1441
1534
|
return Object.setPrototypeOf(r, u.prototype), r;
|
|
1442
1535
|
};
|
|
1443
|
-
function
|
|
1536
|
+
function R(e, t, n) {
|
|
1444
1537
|
if (e % 1 != 0 || e < 0) throw RangeError("offset is not uint");
|
|
1445
1538
|
if (e + t > n) throw RangeError("Trying to access beyond buffer length");
|
|
1446
1539
|
}
|
|
1447
1540
|
u.prototype.readUintLE = u.prototype.readUIntLE = function(e, t, n) {
|
|
1448
|
-
e >>>= 0, t >>>= 0, n ||
|
|
1541
|
+
e >>>= 0, t >>>= 0, n || R(e, t, this.length);
|
|
1449
1542
|
let r = this[e], i = 1, a = 0;
|
|
1450
1543
|
for (; ++a < t && (i *= 256);) r += this[e + a] * i;
|
|
1451
1544
|
return r;
|
|
1452
1545
|
}, u.prototype.readUintBE = u.prototype.readUIntBE = function(e, t, n) {
|
|
1453
|
-
e >>>= 0, t >>>= 0, n ||
|
|
1546
|
+
e >>>= 0, t >>>= 0, n || R(e, t, this.length);
|
|
1454
1547
|
let r = this[e + --t], i = 1;
|
|
1455
1548
|
for (; t > 0 && (i *= 256);) r += this[e + --t] * i;
|
|
1456
1549
|
return r;
|
|
1457
1550
|
}, u.prototype.readUint8 = u.prototype.readUInt8 = function(e, t) {
|
|
1458
|
-
return e >>>= 0, t ||
|
|
1551
|
+
return e >>>= 0, t || R(e, 1, this.length), this[e];
|
|
1459
1552
|
}, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(e, t) {
|
|
1460
|
-
return e >>>= 0, t ||
|
|
1553
|
+
return e >>>= 0, t || R(e, 2, this.length), this[e] | this[e + 1] << 8;
|
|
1461
1554
|
}, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(e, t) {
|
|
1462
|
-
return e >>>= 0, t ||
|
|
1555
|
+
return e >>>= 0, t || R(e, 2, this.length), this[e] << 8 | this[e + 1];
|
|
1463
1556
|
}, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(e, t) {
|
|
1464
|
-
return e >>>= 0, t ||
|
|
1557
|
+
return e >>>= 0, t || R(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
|
|
1465
1558
|
}, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(e, t) {
|
|
1466
|
-
return e >>>= 0, t ||
|
|
1559
|
+
return e >>>= 0, t || R(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
|
|
1467
1560
|
}, u.prototype.readBigUInt64LE = Y(function(e) {
|
|
1468
1561
|
e >>>= 0, K(e, "offset");
|
|
1469
1562
|
let t = this[e], n = this[e + 7];
|
|
@@ -1477,29 +1570,29 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1477
1570
|
let r = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], i = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + n;
|
|
1478
1571
|
return (BigInt(r) << BigInt(32)) + BigInt(i);
|
|
1479
1572
|
}), u.prototype.readIntLE = function(e, t, n) {
|
|
1480
|
-
e >>>= 0, t >>>= 0, n ||
|
|
1573
|
+
e >>>= 0, t >>>= 0, n || R(e, t, this.length);
|
|
1481
1574
|
let r = this[e], i = 1, a = 0;
|
|
1482
1575
|
for (; ++a < t && (i *= 256);) r += this[e + a] * i;
|
|
1483
1576
|
return i *= 128, r >= i && (r -= 2 ** (8 * t)), r;
|
|
1484
1577
|
}, u.prototype.readIntBE = function(e, t, n) {
|
|
1485
|
-
e >>>= 0, t >>>= 0, n ||
|
|
1578
|
+
e >>>= 0, t >>>= 0, n || R(e, t, this.length);
|
|
1486
1579
|
let r = t, i = 1, a = this[e + --r];
|
|
1487
1580
|
for (; r > 0 && (i *= 256);) a += this[e + --r] * i;
|
|
1488
1581
|
return i *= 128, a >= i && (a -= 2 ** (8 * t)), a;
|
|
1489
1582
|
}, u.prototype.readInt8 = function(e, t) {
|
|
1490
|
-
return e >>>= 0, t ||
|
|
1583
|
+
return e >>>= 0, t || R(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
|
|
1491
1584
|
}, u.prototype.readInt16LE = function(e, t) {
|
|
1492
|
-
e >>>= 0, t ||
|
|
1585
|
+
e >>>= 0, t || R(e, 2, this.length);
|
|
1493
1586
|
let n = this[e] | this[e + 1] << 8;
|
|
1494
1587
|
return n & 32768 ? n | 4294901760 : n;
|
|
1495
1588
|
}, u.prototype.readInt16BE = function(e, t) {
|
|
1496
|
-
e >>>= 0, t ||
|
|
1589
|
+
e >>>= 0, t || R(e, 2, this.length);
|
|
1497
1590
|
let n = this[e + 1] | this[e] << 8;
|
|
1498
1591
|
return n & 32768 ? n | 4294901760 : n;
|
|
1499
1592
|
}, u.prototype.readInt32LE = function(e, t) {
|
|
1500
|
-
return e >>>= 0, t ||
|
|
1593
|
+
return e >>>= 0, t || R(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
|
|
1501
1594
|
}, u.prototype.readInt32BE = function(e, t) {
|
|
1502
|
-
return e >>>= 0, t ||
|
|
1595
|
+
return e >>>= 0, t || R(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
|
|
1503
1596
|
}, u.prototype.readBigInt64LE = Y(function(e) {
|
|
1504
1597
|
e >>>= 0, K(e, "offset");
|
|
1505
1598
|
let t = this[e], n = this[e + 7];
|
|
@@ -1513,15 +1606,15 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1513
1606
|
let r = (t << 24) + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
|
|
1514
1607
|
return (BigInt(r) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + n);
|
|
1515
1608
|
}), u.prototype.readFloatLE = function(e, t) {
|
|
1516
|
-
return e >>>= 0, t ||
|
|
1609
|
+
return e >>>= 0, t || R(e, 4, this.length), n.read(this, e, !0, 23, 4);
|
|
1517
1610
|
}, u.prototype.readFloatBE = function(e, t) {
|
|
1518
|
-
return e >>>= 0, t ||
|
|
1611
|
+
return e >>>= 0, t || R(e, 4, this.length), n.read(this, e, !1, 23, 4);
|
|
1519
1612
|
}, u.prototype.readDoubleLE = function(e, t) {
|
|
1520
|
-
return e >>>= 0, t ||
|
|
1613
|
+
return e >>>= 0, t || R(e, 8, this.length), n.read(this, e, !0, 52, 8);
|
|
1521
1614
|
}, u.prototype.readDoubleBE = function(e, t) {
|
|
1522
|
-
return e >>>= 0, t ||
|
|
1615
|
+
return e >>>= 0, t || R(e, 8, this.length), n.read(this, e, !1, 52, 8);
|
|
1523
1616
|
};
|
|
1524
|
-
function
|
|
1617
|
+
function z(e, t, n, r, i, a) {
|
|
1525
1618
|
if (!u.isBuffer(e)) throw TypeError("\"buffer\" argument must be a Buffer instance");
|
|
1526
1619
|
if (t > i || t < a) throw RangeError("\"value\" argument is out of bounds");
|
|
1527
1620
|
if (n + r > e.length) throw RangeError("Index out of range");
|
|
@@ -1529,7 +1622,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1529
1622
|
u.prototype.writeUintLE = u.prototype.writeUIntLE = function(e, t, n, r) {
|
|
1530
1623
|
if (e = +e, t >>>= 0, n >>>= 0, !r) {
|
|
1531
1624
|
let r = 2 ** (8 * n) - 1;
|
|
1532
|
-
|
|
1625
|
+
z(this, e, t, n, r, 0);
|
|
1533
1626
|
}
|
|
1534
1627
|
let i = 1, a = 0;
|
|
1535
1628
|
for (this[t] = e & 255; ++a < n && (i *= 256);) this[t + a] = e / i & 255;
|
|
@@ -1537,30 +1630,30 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1537
1630
|
}, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(e, t, n, r) {
|
|
1538
1631
|
if (e = +e, t >>>= 0, n >>>= 0, !r) {
|
|
1539
1632
|
let r = 2 ** (8 * n) - 1;
|
|
1540
|
-
|
|
1633
|
+
z(this, e, t, n, r, 0);
|
|
1541
1634
|
}
|
|
1542
1635
|
let i = n - 1, a = 1;
|
|
1543
1636
|
for (this[t + i] = e & 255; --i >= 0 && (a *= 256);) this[t + i] = e / a & 255;
|
|
1544
1637
|
return t + n;
|
|
1545
1638
|
}, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(e, t, n) {
|
|
1546
|
-
return e = +e, t >>>= 0, n ||
|
|
1639
|
+
return e = +e, t >>>= 0, n || z(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
|
|
1547
1640
|
}, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(e, t, n) {
|
|
1548
|
-
return e = +e, t >>>= 0, n ||
|
|
1641
|
+
return e = +e, t >>>= 0, n || z(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
|
|
1549
1642
|
}, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(e, t, n) {
|
|
1550
|
-
return e = +e, t >>>= 0, n ||
|
|
1643
|
+
return e = +e, t >>>= 0, n || z(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
|
|
1551
1644
|
}, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(e, t, n) {
|
|
1552
|
-
return e = +e, t >>>= 0, n ||
|
|
1645
|
+
return e = +e, t >>>= 0, n || z(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
|
|
1553
1646
|
}, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(e, t, n) {
|
|
1554
|
-
return e = +e, t >>>= 0, n ||
|
|
1647
|
+
return e = +e, t >>>= 0, n || z(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
1555
1648
|
};
|
|
1556
|
-
function
|
|
1649
|
+
function ne(e, t, n, r, i) {
|
|
1557
1650
|
se(t, r, i, e, n, 7);
|
|
1558
1651
|
let a = Number(t & BigInt(4294967295));
|
|
1559
1652
|
e[n++] = a, a >>= 8, e[n++] = a, a >>= 8, e[n++] = a, a >>= 8, e[n++] = a;
|
|
1560
1653
|
let o = Number(t >> BigInt(32) & BigInt(4294967295));
|
|
1561
1654
|
return e[n++] = o, o >>= 8, e[n++] = o, o >>= 8, e[n++] = o, o >>= 8, e[n++] = o, n;
|
|
1562
1655
|
}
|
|
1563
|
-
function
|
|
1656
|
+
function B(e, t, n, r, i) {
|
|
1564
1657
|
se(t, r, i, e, n, 7);
|
|
1565
1658
|
let a = Number(t & BigInt(4294967295));
|
|
1566
1659
|
e[n + 7] = a, a >>= 8, e[n + 6] = a, a >>= 8, e[n + 5] = a, a >>= 8, e[n + 4] = a;
|
|
@@ -1568,13 +1661,13 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1568
1661
|
return e[n + 3] = o, o >>= 8, e[n + 2] = o, o >>= 8, e[n + 1] = o, o >>= 8, e[n] = o, n + 8;
|
|
1569
1662
|
}
|
|
1570
1663
|
u.prototype.writeBigUInt64LE = Y(function(e, t = 0) {
|
|
1571
|
-
return
|
|
1664
|
+
return ne(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1572
1665
|
}), u.prototype.writeBigUInt64BE = Y(function(e, t = 0) {
|
|
1573
|
-
return
|
|
1666
|
+
return B(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1574
1667
|
}), u.prototype.writeIntLE = function(e, t, n, r) {
|
|
1575
1668
|
if (e = +e, t >>>= 0, !r) {
|
|
1576
1669
|
let r = 2 ** (8 * n - 1);
|
|
1577
|
-
|
|
1670
|
+
z(this, e, t, n, r - 1, -r);
|
|
1578
1671
|
}
|
|
1579
1672
|
let i = 0, a = 1, o = 0;
|
|
1580
1673
|
for (this[t] = e & 255; ++i < n && (a *= 256);) e < 0 && o === 0 && this[t + i - 1] !== 0 && (o = 1), this[t + i] = (e / a >> 0) - o & 255;
|
|
@@ -1582,44 +1675,44 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1582
1675
|
}, u.prototype.writeIntBE = function(e, t, n, r) {
|
|
1583
1676
|
if (e = +e, t >>>= 0, !r) {
|
|
1584
1677
|
let r = 2 ** (8 * n - 1);
|
|
1585
|
-
|
|
1678
|
+
z(this, e, t, n, r - 1, -r);
|
|
1586
1679
|
}
|
|
1587
1680
|
let i = n - 1, a = 1, o = 0;
|
|
1588
1681
|
for (this[t + i] = e & 255; --i >= 0 && (a *= 256);) e < 0 && o === 0 && this[t + i + 1] !== 0 && (o = 1), this[t + i] = (e / a >> 0) - o & 255;
|
|
1589
1682
|
return t + n;
|
|
1590
1683
|
}, u.prototype.writeInt8 = function(e, t, n) {
|
|
1591
|
-
return e = +e, t >>>= 0, n ||
|
|
1684
|
+
return e = +e, t >>>= 0, n || z(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
|
|
1592
1685
|
}, u.prototype.writeInt16LE = function(e, t, n) {
|
|
1593
|
-
return e = +e, t >>>= 0, n ||
|
|
1686
|
+
return e = +e, t >>>= 0, n || z(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
|
|
1594
1687
|
}, u.prototype.writeInt16BE = function(e, t, n) {
|
|
1595
|
-
return e = +e, t >>>= 0, n ||
|
|
1688
|
+
return e = +e, t >>>= 0, n || z(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
|
|
1596
1689
|
}, u.prototype.writeInt32LE = function(e, t, n) {
|
|
1597
|
-
return e = +e, t >>>= 0, n ||
|
|
1690
|
+
return e = +e, t >>>= 0, n || z(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
|
|
1598
1691
|
}, u.prototype.writeInt32BE = function(e, t, n) {
|
|
1599
|
-
return e = +e, t >>>= 0, n ||
|
|
1692
|
+
return e = +e, t >>>= 0, n || z(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
1600
1693
|
}, u.prototype.writeBigInt64LE = Y(function(e, t = 0) {
|
|
1601
|
-
return
|
|
1694
|
+
return ne(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1602
1695
|
}), u.prototype.writeBigInt64BE = Y(function(e, t = 0) {
|
|
1603
|
-
return
|
|
1696
|
+
return B(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1604
1697
|
});
|
|
1605
|
-
function
|
|
1698
|
+
function H(e, t, n, r, i, a) {
|
|
1606
1699
|
if (n + r > e.length || n < 0) throw RangeError("Index out of range");
|
|
1607
1700
|
}
|
|
1608
|
-
function
|
|
1609
|
-
return t = +t, r >>>= 0, a ||
|
|
1701
|
+
function U(e, t, r, i, a) {
|
|
1702
|
+
return t = +t, r >>>= 0, a || H(e, t, r, 4), n.write(e, t, r, i, 23, 4), r + 4;
|
|
1610
1703
|
}
|
|
1611
1704
|
u.prototype.writeFloatLE = function(e, t, n) {
|
|
1612
|
-
return
|
|
1705
|
+
return U(this, e, t, !0, n);
|
|
1613
1706
|
}, u.prototype.writeFloatBE = function(e, t, n) {
|
|
1614
|
-
return
|
|
1707
|
+
return U(this, e, t, !1, n);
|
|
1615
1708
|
};
|
|
1616
|
-
function
|
|
1617
|
-
return t = +t, r >>>= 0, a ||
|
|
1709
|
+
function re(e, t, r, i, a) {
|
|
1710
|
+
return t = +t, r >>>= 0, a || H(e, t, r, 8), n.write(e, t, r, i, 52, 8), r + 8;
|
|
1618
1711
|
}
|
|
1619
1712
|
u.prototype.writeDoubleLE = function(e, t, n) {
|
|
1620
|
-
return
|
|
1713
|
+
return re(this, e, t, !0, n);
|
|
1621
1714
|
}, u.prototype.writeDoubleBE = function(e, t, n) {
|
|
1622
|
-
return
|
|
1715
|
+
return re(this, e, t, !1, n);
|
|
1623
1716
|
}, u.prototype.copy = function(e, t, n, r) {
|
|
1624
1717
|
if (!u.isBuffer(e)) throw TypeError("argument should be a Buffer");
|
|
1625
1718
|
if (n ||= 0, !r && r !== 0 && (r = this.length), t >= e.length && (t = e.length), t ||= 0, r > 0 && r < n && (r = n), r === n || e.length === 0 || this.length === 0) return 0;
|
|
@@ -1650,9 +1743,9 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1650
1743
|
}
|
|
1651
1744
|
return this;
|
|
1652
1745
|
};
|
|
1653
|
-
let
|
|
1654
|
-
function
|
|
1655
|
-
|
|
1746
|
+
let W = {};
|
|
1747
|
+
function G(e, t, n) {
|
|
1748
|
+
W[e] = class extends n {
|
|
1656
1749
|
constructor() {
|
|
1657
1750
|
super(), Object.defineProperty(this, "message", {
|
|
1658
1751
|
value: t.apply(this, arguments),
|
|
@@ -1676,15 +1769,15 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1676
1769
|
}
|
|
1677
1770
|
};
|
|
1678
1771
|
}
|
|
1679
|
-
|
|
1772
|
+
G("ERR_BUFFER_OUT_OF_BOUNDS", function(e) {
|
|
1680
1773
|
return e ? `${e} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
1681
|
-
}, RangeError),
|
|
1774
|
+
}, RangeError), G("ERR_INVALID_ARG_TYPE", function(e, t) {
|
|
1682
1775
|
return `The "${e}" argument must be of type number. Received type ${typeof t}`;
|
|
1683
|
-
}, TypeError),
|
|
1776
|
+
}, TypeError), G("ERR_OUT_OF_RANGE", function(e, t, n) {
|
|
1684
1777
|
let r = `The value of "${e}" is out of range.`, i = n;
|
|
1685
|
-
return Number.isInteger(n) && Math.abs(n) > 2 ** 32 ? i =
|
|
1778
|
+
return Number.isInteger(n) && Math.abs(n) > 2 ** 32 ? i = ie(String(n)) : typeof n == "bigint" && (i = String(n), (n > BigInt(2) ** BigInt(32) || n < -(BigInt(2) ** BigInt(32))) && (i = ie(i)), i += "n"), r += ` It must be ${t}. Received ${i}`, r;
|
|
1686
1779
|
}, RangeError);
|
|
1687
|
-
function
|
|
1780
|
+
function ie(e) {
|
|
1688
1781
|
let t = "", n = e.length, r = +(e[0] === "-");
|
|
1689
1782
|
for (; n >= r + 4; n -= 3) t = `_${e.slice(n - 3, n)}${t}`;
|
|
1690
1783
|
return `${e.slice(0, n)}${t}`;
|
|
@@ -1695,15 +1788,15 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1695
1788
|
function se(e, t, n, r, i, a) {
|
|
1696
1789
|
if (e > n || e < t) {
|
|
1697
1790
|
let r = typeof t == "bigint" ? "n" : "", i;
|
|
1698
|
-
throw i = a > 3 ? t === 0 || t === BigInt(0) ? `>= 0${r} and < 2${r} ** ${(a + 1) * 8}${r}` : `>= -(2${r} ** ${(a + 1) * 8 - 1}${r}) and < 2 ** ${(a + 1) * 8 - 1}${r}` : `>= ${t}${r} and <= ${n}${r}`, new
|
|
1791
|
+
throw i = a > 3 ? t === 0 || t === BigInt(0) ? `>= 0${r} and < 2${r} ** ${(a + 1) * 8}${r}` : `>= -(2${r} ** ${(a + 1) * 8 - 1}${r}) and < 2 ** ${(a + 1) * 8 - 1}${r}` : `>= ${t}${r} and <= ${n}${r}`, new W.ERR_OUT_OF_RANGE("value", i, e);
|
|
1699
1792
|
}
|
|
1700
1793
|
oe(r, i, a);
|
|
1701
1794
|
}
|
|
1702
1795
|
function K(e, t) {
|
|
1703
|
-
if (typeof e != "number") throw new
|
|
1796
|
+
if (typeof e != "number") throw new W.ERR_INVALID_ARG_TYPE(t, "number", e);
|
|
1704
1797
|
}
|
|
1705
1798
|
function q(e, t, n) {
|
|
1706
|
-
throw Math.floor(e) === e ? t < 0 ? new
|
|
1799
|
+
throw Math.floor(e) === e ? t < 0 ? new W.ERR_BUFFER_OUT_OF_BOUNDS() : new W.ERR_OUT_OF_RANGE(n || "offset", `>= ${+!!n} and <= ${t}`, e) : (K(e, n), new W.ERR_OUT_OF_RANGE(n || "offset", "an integer", e));
|
|
1707
1800
|
}
|
|
1708
1801
|
let ce = /[^+/0-9A-Za-z-_]/g;
|
|
1709
1802
|
function le(e) {
|
|
@@ -1787,10 +1880,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1787
1880
|
function _e() {
|
|
1788
1881
|
throw Error("BigInt not supported");
|
|
1789
1882
|
}
|
|
1790
|
-
})(
|
|
1791
|
-
})),
|
|
1792
|
-
|
|
1793
|
-
var n =
|
|
1883
|
+
})(B), oe = B.Buffer, B.Blob, B.BlobOptions, B.Buffer, B.File, B.FileOptions, B.INSPECT_MAX_BYTES, B.SlowBuffer, B.TranscodeEncoding, B.atob, B.btoa, B.constants, B.isAscii, B.isUtf8, B.kMaxLength, B.kStringMaxLength, B.resolveObjectURL, B.transcode;
|
|
1884
|
+
})), K = /* @__PURE__ */ t(((e, t) => {
|
|
1885
|
+
se();
|
|
1886
|
+
var n = F();
|
|
1794
1887
|
t.exports = class extends n {
|
|
1795
1888
|
get name() {
|
|
1796
1889
|
return "wasm";
|
|
@@ -1801,7 +1894,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1801
1894
|
run() {
|
|
1802
1895
|
let e = this.script, t = (() => {
|
|
1803
1896
|
try {
|
|
1804
|
-
return
|
|
1897
|
+
return E();
|
|
1805
1898
|
} catch {
|
|
1806
1899
|
return null;
|
|
1807
1900
|
}
|
|
@@ -1833,7 +1926,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1833
1926
|
}
|
|
1834
1927
|
_contentToBytes(e) {
|
|
1835
1928
|
if (e instanceof Uint8Array) return e;
|
|
1836
|
-
if (
|
|
1929
|
+
if (oe !== void 0 && oe.isBuffer(e)) return new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
|
|
1837
1930
|
if (e instanceof ArrayBuffer) return new Uint8Array(e);
|
|
1838
1931
|
let t = new Uint8Array(e.length);
|
|
1839
1932
|
for (let n = 0; n < e.length; n++) t[n] = e.charCodeAt(n) & 255;
|
|
@@ -1987,9 +2080,9 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
1987
2080
|
a();
|
|
1988
2081
|
}
|
|
1989
2082
|
};
|
|
1990
|
-
})),
|
|
1991
|
-
var n =
|
|
1992
|
-
get name() {
|
|
2083
|
+
})), q = /* @__PURE__ */ t(((e, t) => {
|
|
2084
|
+
var n = N(), r = class extends n {
|
|
2085
|
+
static get name() {
|
|
1993
2086
|
return "test";
|
|
1994
2087
|
}
|
|
1995
2088
|
get requiresFilesystem() {
|
|
@@ -2063,18 +2156,21 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2063
2156
|
}
|
|
2064
2157
|
return !1;
|
|
2065
2158
|
}
|
|
2066
|
-
}, i = class extends r {
|
|
2067
|
-
get name() {
|
|
2068
|
-
return "[";
|
|
2069
|
-
}
|
|
2070
2159
|
};
|
|
2071
|
-
|
|
2160
|
+
t.exports = {
|
|
2072
2161
|
Test: r,
|
|
2073
|
-
TestBracket:
|
|
2162
|
+
TestBracket: class extends r {
|
|
2163
|
+
static get name() {
|
|
2164
|
+
return "[";
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2074
2167
|
};
|
|
2075
|
-
})),
|
|
2076
|
-
var n =
|
|
2168
|
+
})), ce = /* @__PURE__ */ t(((e, t) => {
|
|
2169
|
+
var n = N();
|
|
2077
2170
|
t.exports = class extends n {
|
|
2171
|
+
static get name() {
|
|
2172
|
+
return "cat";
|
|
2173
|
+
}
|
|
2078
2174
|
get requiresFilesystem() {
|
|
2079
2175
|
return !0;
|
|
2080
2176
|
}
|
|
@@ -2093,7 +2189,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2093
2189
|
continue;
|
|
2094
2190
|
}
|
|
2095
2191
|
let t = this.fs.getFileByPath(e);
|
|
2096
|
-
if (t == null)
|
|
2192
|
+
if (t == null) {
|
|
2193
|
+
let t = this.fs.exists(e) ? "Permission denied" : "No such file or directory";
|
|
2194
|
+
return this.stdErr = `${e}: ${t}`, this.exitCode = 1, Promise.resolve();
|
|
2195
|
+
}
|
|
2097
2196
|
if (t.constructor === Object) return this.stdErr = `${e}: Is a directory`, this.exitCode = 1, Promise.resolve();
|
|
2098
2197
|
i.push(t.toString());
|
|
2099
2198
|
}
|
|
@@ -2107,7 +2206,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2107
2206
|
return o.forEach((e) => this.stdOut = e), Promise.resolve();
|
|
2108
2207
|
}
|
|
2109
2208
|
};
|
|
2110
|
-
})),
|
|
2209
|
+
})), le = /* @__PURE__ */ t(((e, t) => {
|
|
2111
2210
|
function n(e) {
|
|
2112
2211
|
return typeof e == "object" && !!e;
|
|
2113
2212
|
}
|
|
@@ -2118,7 +2217,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2118
2217
|
return Array.isArray(e) ? e : e === void 0 ? [] : r(e) || e instanceof Set ? Array.from(e) : [e];
|
|
2119
2218
|
}
|
|
2120
2219
|
t.exports = i;
|
|
2121
|
-
})),
|
|
2220
|
+
})), ue = /* @__PURE__ */ t(((e, t) => {
|
|
2122
2221
|
function n(e, t, ...n) {
|
|
2123
2222
|
let r = [];
|
|
2124
2223
|
if (!Array.isArray(e)) throw Error("Input must be an array");
|
|
@@ -2138,7 +2237,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2138
2237
|
return e;
|
|
2139
2238
|
}
|
|
2140
2239
|
t.exports = n;
|
|
2141
|
-
})),
|
|
2240
|
+
})), de = /* @__PURE__ */ t(((e) => {
|
|
2142
2241
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2143
2242
|
function t(e) {
|
|
2144
2243
|
return !isNaN(parseFloat(e));
|
|
@@ -2217,23 +2316,23 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2217
2316
|
isFunction: h,
|
|
2218
2317
|
isAsyncFunction: g
|
|
2219
2318
|
}, e.isArrayLike = i, e.isAsyncFunction = g, e.isClass = u, e.isDefined = o, e.isDefinedValue = l, e.isFiniteNumber = n, e.isFunction = h, e.isIterable = p, e.isNull = c, e.isNumber = t, e.isObject = a, e.isPlainObject = r, e.isPrimitive = d, e.isPromise = f, e.isString = m, e.isUndefined = s;
|
|
2220
|
-
})),
|
|
2319
|
+
})), fe = /* @__PURE__ */ t(((e, t) => {
|
|
2221
2320
|
r();
|
|
2222
|
-
var i = Infinity, a = "[object Symbol]", o = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, s = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, c = "\\ud800-\\udfff", l = "\\u0300-\\u036f\\ufe20-\\ufe23", u = "\\u20d0-\\u20f0", d = "\\u2700-\\u27bf", f = "a-z\\xdf-\\xf6\\xf8-\\xff", p = "\\xac\\xb1\\xd7\\xf7", m = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", h = "\\u2000-\\u206f", g = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", _ = "A-Z\\xc0-\\xd6\\xd8-\\xde", v = "\\ufe0e\\ufe0f", y = p + m + h + g, b = "['’]", x = "[" + c + "]", S = "[" + y + "]", C = "[" + l + u + "]", w = "\\d+", T = "[" + d + "]", E = "[" + f + "]", D = "[^" + c + y + w + d + f + _ + "]", O = "\\ud83c[\\udffb-\\udfff]", k = "(?:" + C + "|" + O + ")", A = "[^" + c + "]", j = "(?:\\ud83c[\\udde6-\\uddff]){2}", M = "[\\ud800-\\udbff][\\udc00-\\udfff]", N = "[" + _ + "]", P = "\\u200d", F = "(?:" + E + "|" + D + ")", I = "(?:" + N + "|" + D + ")", L = "(?:" + b + "(?:d|ll|m|re|s|t|ve))?", ee = "(?:" + b + "(?:D|LL|M|RE|S|T|VE))?",
|
|
2321
|
+
var i = Infinity, a = "[object Symbol]", o = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, s = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, c = "\\ud800-\\udfff", l = "\\u0300-\\u036f\\ufe20-\\ufe23", u = "\\u20d0-\\u20f0", d = "\\u2700-\\u27bf", f = "a-z\\xdf-\\xf6\\xf8-\\xff", p = "\\xac\\xb1\\xd7\\xf7", m = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", h = "\\u2000-\\u206f", g = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", _ = "A-Z\\xc0-\\xd6\\xd8-\\xde", v = "\\ufe0e\\ufe0f", y = p + m + h + g, b = "['’]", x = "[" + c + "]", S = "[" + y + "]", C = "[" + l + u + "]", w = "\\d+", T = "[" + d + "]", E = "[" + f + "]", D = "[^" + c + y + w + d + f + _ + "]", O = "\\ud83c[\\udffb-\\udfff]", k = "(?:" + C + "|" + O + ")", A = "[^" + c + "]", j = "(?:\\ud83c[\\udde6-\\uddff]){2}", M = "[\\ud800-\\udbff][\\udc00-\\udfff]", N = "[" + _ + "]", P = "\\u200d", F = "(?:" + E + "|" + D + ")", I = "(?:" + N + "|" + D + ")", L = "(?:" + b + "(?:d|ll|m|re|s|t|ve))?", ee = "(?:" + b + "(?:D|LL|M|RE|S|T|VE))?", te = k + "?", R = "[" + v + "]?", z = "(?:" + P + "(?:" + [
|
|
2223
2322
|
A,
|
|
2224
2323
|
j,
|
|
2225
2324
|
M
|
|
2226
|
-
].join("|") + ")" +
|
|
2325
|
+
].join("|") + ")" + R + te + ")*", ne = R + te + z, B = "(?:" + [
|
|
2227
2326
|
T,
|
|
2228
2327
|
j,
|
|
2229
2328
|
M
|
|
2230
|
-
].join("|") + ")" +
|
|
2329
|
+
].join("|") + ")" + ne, V = "(?:" + [
|
|
2231
2330
|
A + C + "?",
|
|
2232
2331
|
C,
|
|
2233
2332
|
j,
|
|
2234
2333
|
M,
|
|
2235
2334
|
x
|
|
2236
|
-
].join("|") + ")",
|
|
2335
|
+
].join("|") + ")", H = RegExp(b, "g"), U = RegExp(C, "g"), re = RegExp(O + "(?=" + O + ")|" + V + ne, "g"), W = RegExp([
|
|
2237
2336
|
N + "?" + E + "+" + L + "(?=" + [
|
|
2238
2337
|
S,
|
|
2239
2338
|
N,
|
|
@@ -2247,8 +2346,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2247
2346
|
N + "?" + F + "+" + L,
|
|
2248
2347
|
N + "+" + ee,
|
|
2249
2348
|
w,
|
|
2250
|
-
|
|
2251
|
-
].join("|"), "g"),
|
|
2349
|
+
B
|
|
2350
|
+
].join("|"), "g"), G = RegExp("[" + P + c + l + u + v + "]"), ie = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, ae = {
|
|
2252
2351
|
À: "A",
|
|
2253
2352
|
Á: "A",
|
|
2254
2353
|
Â: "A",
|
|
@@ -2458,7 +2557,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2458
2557
|
}
|
|
2459
2558
|
var de = ue(ae);
|
|
2460
2559
|
function fe(e) {
|
|
2461
|
-
return
|
|
2560
|
+
return G.test(e);
|
|
2462
2561
|
}
|
|
2463
2562
|
function pe(e) {
|
|
2464
2563
|
return ie.test(e);
|
|
@@ -2467,10 +2566,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2467
2566
|
return fe(e) ? J(e) : ce(e);
|
|
2468
2567
|
}
|
|
2469
2568
|
function J(e) {
|
|
2470
|
-
return e.match(
|
|
2569
|
+
return e.match(re) || [];
|
|
2471
2570
|
}
|
|
2472
2571
|
function he(e) {
|
|
2473
|
-
return e.match(
|
|
2572
|
+
return e.match(W) || [];
|
|
2474
2573
|
}
|
|
2475
2574
|
var ge = Object.prototype.toString, Y = K.Symbol, _e = Y ? Y.prototype : void 0, ve = _e ? _e.toString : void 0;
|
|
2476
2575
|
function ye(e, t, n) {
|
|
@@ -2498,7 +2597,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2498
2597
|
}
|
|
2499
2598
|
function Ce(e) {
|
|
2500
2599
|
return function(t) {
|
|
2501
|
-
return q(je(ke(t).replace(
|
|
2600
|
+
return q(je(ke(t).replace(H, "")), e, "");
|
|
2502
2601
|
};
|
|
2503
2602
|
}
|
|
2504
2603
|
function we(e) {
|
|
@@ -2517,26 +2616,26 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2517
2616
|
return Ae(Ee(e).toLowerCase());
|
|
2518
2617
|
}
|
|
2519
2618
|
function ke(e) {
|
|
2520
|
-
return e = Ee(e), e && e.replace(s, de).replace(
|
|
2619
|
+
return e = Ee(e), e && e.replace(s, de).replace(U, "");
|
|
2521
2620
|
}
|
|
2522
2621
|
var Ae = Se("toUpperCase");
|
|
2523
2622
|
function je(e, t, n) {
|
|
2524
2623
|
return e = Ee(e), t = n ? void 0 : t, t === void 0 ? pe(e) ? he(e) : le(e) : e.match(t) || [];
|
|
2525
2624
|
}
|
|
2526
2625
|
t.exports = De;
|
|
2527
|
-
})),
|
|
2528
|
-
|
|
2529
|
-
var n =
|
|
2626
|
+
})), pe = /* @__PURE__ */ t(((e, t) => {
|
|
2627
|
+
T();
|
|
2628
|
+
var n = le(), r = ue(), i = de(), a = fe(), o = {
|
|
2530
2629
|
short: /^-([^\d-])$/,
|
|
2531
2630
|
long: /^--(\S+)/,
|
|
2532
2631
|
combinedShort: /^-[^\d-]{2,}$/,
|
|
2533
2632
|
optEquals: /^(--\S+?)=(.*)/
|
|
2534
2633
|
}, s = class extends Array {
|
|
2535
2634
|
load(e) {
|
|
2536
|
-
if (this.clear(), e && e !==
|
|
2635
|
+
if (this.clear(), e && e !== w.argv) e = n(e);
|
|
2537
2636
|
else {
|
|
2538
|
-
e =
|
|
2539
|
-
let t =
|
|
2637
|
+
e = w.argv.slice(0);
|
|
2638
|
+
let t = w.execArgv.some(m) ? 1 : 2;
|
|
2540
2639
|
e.splice(0, t);
|
|
2541
2640
|
}
|
|
2542
2641
|
e.forEach((e) => this.push(String(e)));
|
|
@@ -2724,9 +2823,9 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2724
2823
|
i.isDefined(this.definition.defaultValue) ? this.definition.isMultiple() ? x.set(this, n(this.definition.defaultValue).slice()) : x.set(this, this.definition.defaultValue) : this.definition.isMultiple() ? x.set(this, []) : x.set(this, null), this.state = "default";
|
|
2725
2824
|
}
|
|
2726
2825
|
static create(e) {
|
|
2727
|
-
return e = new h(e), e.isBoolean() ?
|
|
2826
|
+
return e = new h(e), e.isBoolean() ? C.create(e) : new this(e);
|
|
2728
2827
|
}
|
|
2729
|
-
},
|
|
2828
|
+
}, C = class extends S {
|
|
2730
2829
|
set(e) {
|
|
2731
2830
|
super.set(!0);
|
|
2732
2831
|
}
|
|
@@ -2791,9 +2890,12 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2791
2890
|
});
|
|
2792
2891
|
}
|
|
2793
2892
|
t.exports = O;
|
|
2794
|
-
})),
|
|
2795
|
-
var n =
|
|
2893
|
+
})), me = /* @__PURE__ */ t(((e, t) => {
|
|
2894
|
+
var n = N(), r = pe();
|
|
2796
2895
|
t.exports = class extends n {
|
|
2896
|
+
static get name() {
|
|
2897
|
+
return "ls";
|
|
2898
|
+
}
|
|
2797
2899
|
get requiresFilesystem() {
|
|
2798
2900
|
return !0;
|
|
2799
2901
|
}
|
|
@@ -2806,7 +2908,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2806
2908
|
}
|
|
2807
2909
|
if (n.one = n.one || t, n.help) return this.printHelp(), Promise.resolve();
|
|
2808
2910
|
let r = this.fs.getFileByPath(n.path);
|
|
2809
|
-
if (!r)
|
|
2911
|
+
if (!r) {
|
|
2912
|
+
let e = this.fs.exists(n.path) ? "Permission denied" : "No such file or directory";
|
|
2913
|
+
return Promise.reject(`${n.path}: ${e}`);
|
|
2914
|
+
}
|
|
2810
2915
|
if (r.constructor === Object) {
|
|
2811
2916
|
let e = r;
|
|
2812
2917
|
n.all || (e = Object.entries(e).reduce((e, [t, n]) => (t.startsWith(".") || (e[t] = n), e), {}));
|
|
@@ -2829,8 +2934,9 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2829
2934
|
this.stdOut = Object.entries(e).reduce((e, [n, r]) => e + this.padString(this._applyIndicator(n, r, t)), "");
|
|
2830
2935
|
}
|
|
2831
2936
|
printLong(e, t) {
|
|
2832
|
-
|
|
2833
|
-
|
|
2937
|
+
let n = t.endsWith("/") ? t.slice(0, -1) : t;
|
|
2938
|
+
Object.entries(e).forEach(([e, t]) => {
|
|
2939
|
+
let r = n + "/" + e, i = t != null && t.constructor === Object, a = this.fs.getMode(r), o = a === null ? i ? 493 : 420 : a, s = this._modeToString(o, i), c = this.fs.getSize(r);
|
|
2834
2940
|
return this.stdOut = `${s} root users ${this.padString(c, 10)} ${e}`;
|
|
2835
2941
|
});
|
|
2836
2942
|
}
|
|
@@ -2885,9 +2991,12 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2885
2991
|
], { argv: e });
|
|
2886
2992
|
}
|
|
2887
2993
|
};
|
|
2888
|
-
})),
|
|
2889
|
-
var n =
|
|
2994
|
+
})), J = /* @__PURE__ */ t(((e, t) => {
|
|
2995
|
+
var n = N();
|
|
2890
2996
|
t.exports = class extends n {
|
|
2997
|
+
static get name() {
|
|
2998
|
+
return "echo";
|
|
2999
|
+
}
|
|
2891
3000
|
run() {
|
|
2892
3001
|
let e = [...this.arguments], t = !1, n = !1;
|
|
2893
3002
|
for (; e.length > 0 && /^-[neE]+$/.test(e[0]);) {
|
|
@@ -2898,9 +3007,12 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2898
3007
|
return n && (r = r.replace(/\\c.*$/s, () => (t = !0, "")).replace(/\\0([0-7]{1,3})/g, (e, t) => String.fromCharCode(parseInt(t, 8))).replace(/\\x([0-9a-fA-F]{1,2})/g, (e, t) => String.fromCharCode(parseInt(t, 16))).replace(/\\n/g, "\n").replace(/\\t/g, " ").replace(/\\r/g, "\r").replace(/\\a/g, "\x07").replace(/\\b/g, "\b").replace(/\\e/g, "\x1B").replace(/\\f/g, "\f").replace(/\\v/g, "\v").replace(/\\\\/g, "\\")), t ? (r.split(/\r?\n/).forEach((e) => this.stdOut = e), Promise.resolve()) : Promise.resolve(r);
|
|
2899
3008
|
}
|
|
2900
3009
|
};
|
|
2901
|
-
})),
|
|
2902
|
-
var n =
|
|
3010
|
+
})), he = /* @__PURE__ */ t(((e, t) => {
|
|
3011
|
+
var n = N();
|
|
2903
3012
|
t.exports = class extends n {
|
|
3013
|
+
static get name() {
|
|
3014
|
+
return "grep";
|
|
3015
|
+
}
|
|
2904
3016
|
get requiresFilesystem() {
|
|
2905
3017
|
return !0;
|
|
2906
3018
|
}
|
|
@@ -2979,7 +3091,13 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
2979
3091
|
if (p === "-") e = this.stdin || "";
|
|
2980
3092
|
else {
|
|
2981
3093
|
let t = this.fs.getFileByPath(p);
|
|
2982
|
-
if (t == null)
|
|
3094
|
+
if (t == null) {
|
|
3095
|
+
if (!f) {
|
|
3096
|
+
let e = this.fs.exists(p) ? "Permission denied" : "No such file or directory";
|
|
3097
|
+
this.stdErr = `grep: ${p}: ${e}`;
|
|
3098
|
+
}
|
|
3099
|
+
return this.exitCode = 2, Promise.resolve();
|
|
3100
|
+
}
|
|
2983
3101
|
e = t.toString();
|
|
2984
3102
|
}
|
|
2985
3103
|
for (let t of e.split("\n")) t.length > 0 && h.push(t);
|
|
@@ -3003,7 +3121,11 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3003
3121
|
let x = [], S = !1, C = this.stdin || "", w = (e, t = !1) => {
|
|
3004
3122
|
let n = this.fs.getFileByPath(e);
|
|
3005
3123
|
if (n == null) {
|
|
3006
|
-
|
|
3124
|
+
if (!f) {
|
|
3125
|
+
let t = this.fs.exists(e) ? "Permission denied" : "No such file or directory";
|
|
3126
|
+
this.stdErr = `grep: ${e}: ${t}`;
|
|
3127
|
+
}
|
|
3128
|
+
S = !0;
|
|
3007
3129
|
return;
|
|
3008
3130
|
}
|
|
3009
3131
|
if (n.constructor === Object) {
|
|
@@ -3083,69 +3205,78 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3083
3205
|
return S && !(o && E) ? this.exitCode = 2 : E || (this.exitCode = 1), Promise.resolve();
|
|
3084
3206
|
}
|
|
3085
3207
|
};
|
|
3086
|
-
})),
|
|
3087
|
-
var n =
|
|
3208
|
+
})), ge = /* @__PURE__ */ t(((e, t) => {
|
|
3209
|
+
var n = N();
|
|
3088
3210
|
t.exports = class extends n {
|
|
3089
|
-
get name() {
|
|
3211
|
+
static get name() {
|
|
3090
3212
|
return "true";
|
|
3091
3213
|
}
|
|
3092
3214
|
run() {
|
|
3093
3215
|
return Promise.resolve();
|
|
3094
3216
|
}
|
|
3095
3217
|
};
|
|
3096
|
-
})),
|
|
3097
|
-
var n =
|
|
3218
|
+
})), Y = /* @__PURE__ */ t(((e, t) => {
|
|
3219
|
+
var n = N();
|
|
3098
3220
|
t.exports = class extends n {
|
|
3099
|
-
get name() {
|
|
3221
|
+
static get name() {
|
|
3100
3222
|
return "false";
|
|
3101
3223
|
}
|
|
3102
3224
|
run() {
|
|
3103
3225
|
return this.exitCode = 1, Promise.resolve();
|
|
3104
3226
|
}
|
|
3105
3227
|
};
|
|
3106
|
-
})),
|
|
3107
|
-
var { Test: n, TestBracket: r } =
|
|
3228
|
+
})), _e = /* @__PURE__ */ t(((e, t) => {
|
|
3229
|
+
var { Test: n, TestBracket: r } = q();
|
|
3108
3230
|
t.exports = [
|
|
3109
|
-
|
|
3110
|
-
pe(),
|
|
3231
|
+
ce(),
|
|
3111
3232
|
me(),
|
|
3112
3233
|
J(),
|
|
3113
3234
|
he(),
|
|
3114
3235
|
ge(),
|
|
3236
|
+
Y(),
|
|
3115
3237
|
n,
|
|
3116
3238
|
r
|
|
3117
3239
|
];
|
|
3118
|
-
})),
|
|
3119
|
-
var n =
|
|
3240
|
+
})), ve = /* @__PURE__ */ t(((e, t) => {
|
|
3241
|
+
var n = P();
|
|
3120
3242
|
t.exports = class extends n {
|
|
3243
|
+
static get name() {
|
|
3244
|
+
return "alias";
|
|
3245
|
+
}
|
|
3121
3246
|
run() {
|
|
3122
3247
|
if (this.arguments.length !== 1) return Promise.reject("alias requires a single argument");
|
|
3123
3248
|
let e = this.arguments[0].split("=");
|
|
3124
3249
|
return e.length === 2 ? (this.context.setAlias(e[0], e[1]), Promise.resolve()) : Promise.reject("alias requires a key and value delimited by '=' ie: key=value");
|
|
3125
3250
|
}
|
|
3126
3251
|
};
|
|
3127
|
-
})),
|
|
3128
|
-
var n =
|
|
3252
|
+
})), ye = /* @__PURE__ */ t(((e, t) => {
|
|
3253
|
+
var n = P();
|
|
3129
3254
|
t.exports = class extends n {
|
|
3255
|
+
static get name() {
|
|
3256
|
+
return "export";
|
|
3257
|
+
}
|
|
3130
3258
|
run() {
|
|
3131
3259
|
if (this.arguments.length !== 1) return Promise.reject("export requires a single argument");
|
|
3132
3260
|
let e = this.arguments[0].split("=");
|
|
3133
3261
|
return e.length !== 2 && Promise.reject("export requires a key and value delimited by '=' ie: key=value"), this.context.setVar(e[0], e[1]), Promise.resolve();
|
|
3134
3262
|
}
|
|
3135
3263
|
};
|
|
3136
|
-
})),
|
|
3137
|
-
var n =
|
|
3264
|
+
})), be = /* @__PURE__ */ t(((e, t) => {
|
|
3265
|
+
var n = P();
|
|
3138
3266
|
t.exports = class extends n {
|
|
3267
|
+
static get name() {
|
|
3268
|
+
return "cd";
|
|
3269
|
+
}
|
|
3139
3270
|
run() {
|
|
3140
3271
|
if (this.arguments.length !== 1) return Promise.reject("cd requires a single argument");
|
|
3141
|
-
let e = this.context.fs.
|
|
3142
|
-
return e ? e.
|
|
3272
|
+
let e = this.context.fs.stat(this.arguments[0]);
|
|
3273
|
+
return e ? e.isDirectory ? (this.context.setCwd(this.arguments[0]), Promise.resolve()) : Promise.reject(`${this.arguments[0]}: Not a directory`) : Promise.reject("file or directory not found");
|
|
3143
3274
|
}
|
|
3144
3275
|
};
|
|
3145
|
-
})),
|
|
3146
|
-
var n =
|
|
3276
|
+
})), xe = /* @__PURE__ */ t(((e, t) => {
|
|
3277
|
+
var n = P();
|
|
3147
3278
|
t.exports = class extends n {
|
|
3148
|
-
get name() {
|
|
3279
|
+
static get name() {
|
|
3149
3280
|
return "chmod";
|
|
3150
3281
|
}
|
|
3151
3282
|
get requiresFilesystem() {
|
|
@@ -3156,7 +3287,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3156
3287
|
if (e.length < 2) return this.stdErr = "chmod: usage: chmod MODE FILE...", this.exitCode = 1, Promise.resolve();
|
|
3157
3288
|
let t = e[0], n = e.slice(1);
|
|
3158
3289
|
for (let e of n) {
|
|
3159
|
-
if (this.fs.
|
|
3290
|
+
if (!this.fs.exists(e)) {
|
|
3160
3291
|
this.stdErr = `chmod: cannot access '${e}': No such file or directory`, this.exitCode = 1;
|
|
3161
3292
|
continue;
|
|
3162
3293
|
}
|
|
@@ -3198,10 +3329,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3198
3329
|
return null;
|
|
3199
3330
|
}
|
|
3200
3331
|
};
|
|
3201
|
-
})),
|
|
3202
|
-
var n =
|
|
3332
|
+
})), Se = /* @__PURE__ */ t(((e, t) => {
|
|
3333
|
+
var n = P(), r = E();
|
|
3203
3334
|
t.exports = class extends n {
|
|
3204
|
-
get name() {
|
|
3335
|
+
static get name() {
|
|
3205
3336
|
return "cp";
|
|
3206
3337
|
}
|
|
3207
3338
|
get requiresFilesystem() {
|
|
@@ -3241,14 +3372,14 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3241
3372
|
for (; s < o.length;) a.push(o[s++]);
|
|
3242
3373
|
let c = t === null ? n ? "preserve" : "follow" : t;
|
|
3243
3374
|
if (a.length < 2) return this.stdErr = `cp: missing destination file operand${a.length ? ` after '${a[0]}'` : ""}`, this.exitCode = 1, Promise.resolve();
|
|
3244
|
-
let l = a[a.length - 1], u = a.slice(0, -1), d = this.fs.
|
|
3375
|
+
let l = a[a.length - 1], u = a.slice(0, -1), d = this.fs.stat(l), f = d !== null && d.isDirectory, p = r || c === "follow_cl" ? "follow" : c, m = r || c === "follow_cl" ? i === null ? "preserve" : i : c;
|
|
3245
3376
|
for (let t of u) {
|
|
3246
|
-
let n = this.fs.isSymlink ? this.fs.isSymlink(t) : !1, r = this.fs.
|
|
3247
|
-
if (r
|
|
3377
|
+
let n = this.fs.isSymlink ? this.fs.isSymlink(t) : !1, r = this.fs.stat(t);
|
|
3378
|
+
if (r === null) {
|
|
3248
3379
|
this.stdErr = `cp: cannot stat '${t}': No such file or directory`, this.exitCode = 1;
|
|
3249
3380
|
continue;
|
|
3250
3381
|
}
|
|
3251
|
-
if (!(n && p === "preserve") && r.
|
|
3382
|
+
if (!(n && p === "preserve") && r.isDirectory && !e) {
|
|
3252
3383
|
this.stdErr = `cp: omitting directory '${t}'`, this.exitCode = 1;
|
|
3253
3384
|
continue;
|
|
3254
3385
|
}
|
|
@@ -3269,7 +3400,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3269
3400
|
return null;
|
|
3270
3401
|
}
|
|
3271
3402
|
let o = this.fs.getFileByPath(e);
|
|
3272
|
-
if (o == null) return `cp: cannot stat '${e}': No such file or directory`;
|
|
3403
|
+
if (o == null) return `cp: cannot stat '${e}': ${this.fs.exists(e) ? "Permission denied" : "No such file or directory"}`;
|
|
3273
3404
|
if (o.constructor === Object) {
|
|
3274
3405
|
try {
|
|
3275
3406
|
this.fs.setFileByPath(t, {}, !0);
|
|
@@ -3286,14 +3417,18 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3286
3417
|
let r = e.replace(/\/$/, "") + "/" + n, i = t.replace(/\/$/, "") + "/" + n, o = this.fs.isSymlink ? this.fs.isSymlink(r) : !1, s = this._copy(r, i, a, o, a);
|
|
3287
3418
|
s && (this.stdErr = s, this.exitCode = 1);
|
|
3288
3419
|
}
|
|
3289
|
-
} else
|
|
3420
|
+
} else try {
|
|
3421
|
+
this.fs.setFileByPath(t, o, !0);
|
|
3422
|
+
} catch (e) {
|
|
3423
|
+
return `cp: cannot create '${t}': ${e.message}`;
|
|
3424
|
+
}
|
|
3290
3425
|
return null;
|
|
3291
3426
|
}
|
|
3292
3427
|
};
|
|
3293
|
-
})),
|
|
3294
|
-
var n =
|
|
3428
|
+
})), Ce = /* @__PURE__ */ t(((e, t) => {
|
|
3429
|
+
var n = P();
|
|
3295
3430
|
t.exports = class extends n {
|
|
3296
|
-
get name() {
|
|
3431
|
+
static get name() {
|
|
3297
3432
|
return "mkdir";
|
|
3298
3433
|
}
|
|
3299
3434
|
get requiresFilesystem() {
|
|
@@ -3304,7 +3439,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3304
3439
|
for (let n of this.arguments) n === "-p" || n === "--parents" ? e = !0 : t.push(n);
|
|
3305
3440
|
if (t.length === 0) return this.stdErr = "mkdir: missing operand", this.exitCode = 1, Promise.resolve();
|
|
3306
3441
|
for (let n of t) {
|
|
3307
|
-
if (this.fs.
|
|
3442
|
+
if (this.fs.exists(n)) {
|
|
3308
3443
|
e || (this.stdErr = `mkdir: cannot create directory '${n}': File exists`, this.exitCode = 1);
|
|
3309
3444
|
continue;
|
|
3310
3445
|
}
|
|
@@ -3317,10 +3452,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3317
3452
|
return Promise.resolve();
|
|
3318
3453
|
}
|
|
3319
3454
|
};
|
|
3320
|
-
})),
|
|
3321
|
-
var n =
|
|
3455
|
+
})), we = /* @__PURE__ */ t(((e, t) => {
|
|
3456
|
+
var n = P(), r = E();
|
|
3322
3457
|
t.exports = class extends n {
|
|
3323
|
-
get name() {
|
|
3458
|
+
static get name() {
|
|
3324
3459
|
return "mv";
|
|
3325
3460
|
}
|
|
3326
3461
|
get requiresFilesystem() {
|
|
@@ -3350,7 +3485,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3350
3485
|
for (; i < n.length;) t.push(n[i++]);
|
|
3351
3486
|
let a = e === null ? t[t.length - 1] : e, o = e === null ? t.slice(0, -1) : t;
|
|
3352
3487
|
if (!a || o.length === 0) return this.stdErr = `mv: missing destination file operand${o.length ? ` after '${o[0]}'` : ""}`, this.exitCode = 1, Promise.resolve();
|
|
3353
|
-
let s = this.fs.
|
|
3488
|
+
let s = this.fs.stat(a), c = s !== null && s.isDirectory;
|
|
3354
3489
|
for (let e of o) {
|
|
3355
3490
|
let t = c ? a.replace(/\/$/, "") + "/" + e.split("/").pop() : a;
|
|
3356
3491
|
if (this.fs.isRealFilesystem) {
|
|
@@ -3362,7 +3497,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3362
3497
|
continue;
|
|
3363
3498
|
}
|
|
3364
3499
|
try {
|
|
3365
|
-
let e =
|
|
3500
|
+
let e = D();
|
|
3366
3501
|
r.mkdirSync(e.dirname(i), { recursive: !0 }), r.renameSync(n, i);
|
|
3367
3502
|
} catch (n) {
|
|
3368
3503
|
this.stdErr = `mv: cannot move '${e}' to '${t}': ${n.message}`, this.exitCode = 1;
|
|
@@ -3370,10 +3505,15 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3370
3505
|
} else {
|
|
3371
3506
|
let n = this.fs.getFileByPath(e);
|
|
3372
3507
|
if (n == null) {
|
|
3373
|
-
this.
|
|
3508
|
+
let t = this.fs.exists(e) ? "Permission denied" : "No such file or directory";
|
|
3509
|
+
this.stdErr = `mv: cannot stat '${e}': ${t}`, this.exitCode = 1;
|
|
3374
3510
|
continue;
|
|
3375
3511
|
}
|
|
3376
|
-
|
|
3512
|
+
try {
|
|
3513
|
+
this.fs.setFileByPath(t, this._deepCopy(n), !0), this.fs.deleteFileByPath(e);
|
|
3514
|
+
} catch (n) {
|
|
3515
|
+
this.stdErr = `mv: cannot move '${e}' to '${t}': ${n.message}`, this.exitCode = 1;
|
|
3516
|
+
}
|
|
3377
3517
|
}
|
|
3378
3518
|
}
|
|
3379
3519
|
return Promise.resolve();
|
|
@@ -3385,18 +3525,21 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3385
3525
|
return t;
|
|
3386
3526
|
}
|
|
3387
3527
|
};
|
|
3388
|
-
})),
|
|
3389
|
-
var n =
|
|
3528
|
+
})), Te = /* @__PURE__ */ t(((e, t) => {
|
|
3529
|
+
var n = P();
|
|
3390
3530
|
t.exports = class extends n {
|
|
3531
|
+
static get name() {
|
|
3532
|
+
return "pwd";
|
|
3533
|
+
}
|
|
3391
3534
|
run() {
|
|
3392
3535
|
let e = this.context.fs.cwd;
|
|
3393
3536
|
return this.stdOut = e.endsWith("/") && e !== "/" ? e.slice(0, -1) : e, Promise.resolve();
|
|
3394
3537
|
}
|
|
3395
3538
|
};
|
|
3396
|
-
})),
|
|
3397
|
-
var n =
|
|
3539
|
+
})), Ee = /* @__PURE__ */ t(((e, t) => {
|
|
3540
|
+
var n = P(), r = E();
|
|
3398
3541
|
t.exports = class extends n {
|
|
3399
|
-
get name() {
|
|
3542
|
+
static get name() {
|
|
3400
3543
|
return "rm";
|
|
3401
3544
|
}
|
|
3402
3545
|
get requiresFilesystem() {
|
|
@@ -3438,18 +3581,24 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3438
3581
|
this.fs.deleteFileByPath(e);
|
|
3439
3582
|
}
|
|
3440
3583
|
};
|
|
3441
|
-
})),
|
|
3442
|
-
var n =
|
|
3584
|
+
})), De = /* @__PURE__ */ t(((e, t) => {
|
|
3585
|
+
var n = P();
|
|
3443
3586
|
t.exports = class extends n {
|
|
3587
|
+
static get name() {
|
|
3588
|
+
return "which";
|
|
3589
|
+
}
|
|
3444
3590
|
run() {
|
|
3445
3591
|
if (this.arguments.length !== 1) return Promise.reject("which requires a single argument");
|
|
3446
3592
|
let e = this.context.fs.getFileByPath(`${this.context.getVar("PATH")}/${this.arguments[0]}`);
|
|
3447
3593
|
return !e || e.constructor === Object || e.constructor === String ? Promise.reject() : Promise.resolve(`${this.context.getVar("PATH")}/${this.arguments[0]}`);
|
|
3448
3594
|
}
|
|
3449
3595
|
};
|
|
3450
|
-
})),
|
|
3451
|
-
var n =
|
|
3596
|
+
})), Oe = /* @__PURE__ */ t(((e, t) => {
|
|
3597
|
+
var n = F(), r = P();
|
|
3452
3598
|
t.exports = class extends r {
|
|
3599
|
+
static get name() {
|
|
3600
|
+
return "source";
|
|
3601
|
+
}
|
|
3453
3602
|
constructor(e, t) {
|
|
3454
3603
|
if (super(e, t), this.arguments.length !== 1) return Promise.reject("source requires a single argument");
|
|
3455
3604
|
let r = this.arguments[0];
|
|
@@ -3462,7 +3611,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3462
3611
|
let e = this.arguments[0];
|
|
3463
3612
|
if (e.startsWith("./") || e.startsWith("/")) {
|
|
3464
3613
|
let t = this.context.fs.getFileByPath(e);
|
|
3465
|
-
if (!t)
|
|
3614
|
+
if (!t) {
|
|
3615
|
+
let t = this.context.fs.exists(e) ? "Permission denied" : "No such file or directory";
|
|
3616
|
+
return Promise.reject(`${e}: ${t}`);
|
|
3617
|
+
}
|
|
3466
3618
|
if (t.constructor === Object) return Promise.reject(`${e}: is a directory`);
|
|
3467
3619
|
if (t.prototype && typeof t.prototype.run == "function" && typeof t.prototype.runCommand == "function") return Promise.reject(`${e}: command not found`);
|
|
3468
3620
|
if (t.constructor === String && t.startsWith("#!")) return Promise.reject("FATAL: should not get here");
|
|
@@ -3470,24 +3622,33 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3470
3622
|
return Promise.reject(`${e}: permission denied`);
|
|
3471
3623
|
}
|
|
3472
3624
|
};
|
|
3473
|
-
})),
|
|
3474
|
-
var n =
|
|
3625
|
+
})), ke = /* @__PURE__ */ t(((e, t) => {
|
|
3626
|
+
var n = P();
|
|
3475
3627
|
t.exports = class extends n {
|
|
3628
|
+
static get name() {
|
|
3629
|
+
return "clear";
|
|
3630
|
+
}
|
|
3476
3631
|
run() {
|
|
3477
3632
|
return this.arguments.length > 0 ? Promise.reject("clear does not require arguments") : (this.context.clear(), Promise.resolve());
|
|
3478
3633
|
}
|
|
3479
3634
|
};
|
|
3480
|
-
})),
|
|
3481
|
-
var n =
|
|
3635
|
+
})), Ae = /* @__PURE__ */ t(((e, t) => {
|
|
3636
|
+
var n = P();
|
|
3482
3637
|
t.exports = class extends n {
|
|
3638
|
+
static get name() {
|
|
3639
|
+
return "exit";
|
|
3640
|
+
}
|
|
3483
3641
|
run() {
|
|
3484
3642
|
let e = parseInt(this.arguments[0]) || 0;
|
|
3485
3643
|
return this.exitCode = e, this.context.destroy(e), Promise.resolve();
|
|
3486
3644
|
}
|
|
3487
3645
|
};
|
|
3488
|
-
})),
|
|
3489
|
-
var n =
|
|
3646
|
+
})), je = /* @__PURE__ */ t(((e, t) => {
|
|
3647
|
+
var n = P(), r = pe();
|
|
3490
3648
|
t.exports = class extends n {
|
|
3649
|
+
static get name() {
|
|
3650
|
+
return "read";
|
|
3651
|
+
}
|
|
3491
3652
|
get requiresFilesystem() {
|
|
3492
3653
|
return !1;
|
|
3493
3654
|
}
|
|
@@ -3552,10 +3713,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3552
3713
|
], { argv: this.arguments });
|
|
3553
3714
|
}
|
|
3554
3715
|
};
|
|
3555
|
-
})),
|
|
3556
|
-
var n =
|
|
3716
|
+
})), Me = /* @__PURE__ */ t(((e, t) => {
|
|
3717
|
+
var n = P(), r = N();
|
|
3557
3718
|
t.exports = class extends n {
|
|
3558
|
-
get name() {
|
|
3719
|
+
static get name() {
|
|
3559
3720
|
return "jsfunction";
|
|
3560
3721
|
}
|
|
3561
3722
|
run() {
|
|
@@ -3588,10 +3749,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3588
3749
|
}), this.context.setCommand(a), Promise.resolve();
|
|
3589
3750
|
}
|
|
3590
3751
|
};
|
|
3591
|
-
})),
|
|
3592
|
-
var n =
|
|
3752
|
+
})), Ne = /* @__PURE__ */ t(((e, t) => {
|
|
3753
|
+
var n = P();
|
|
3593
3754
|
t.exports = class extends n {
|
|
3594
|
-
get name() {
|
|
3755
|
+
static get name() {
|
|
3595
3756
|
return "curl";
|
|
3596
3757
|
}
|
|
3597
3758
|
get requiresFilesystem() {
|
|
@@ -3652,9 +3813,15 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3652
3813
|
this.stdOut = `${t}: ${e}`;
|
|
3653
3814
|
}), this.stdOut = "");
|
|
3654
3815
|
let t = await e.text();
|
|
3655
|
-
|
|
3816
|
+
if (o) try {
|
|
3817
|
+
this.fs.setFileByPath(o, t, !1);
|
|
3818
|
+
} catch (e) {
|
|
3819
|
+
this.stdErr = `curl: cannot write to '${o}': ${e.message}`, this.exitCode = 1;
|
|
3820
|
+
}
|
|
3821
|
+
else t.split(/\r?\n/).forEach((e) => {
|
|
3656
3822
|
this.stdOut = e;
|
|
3657
|
-
})
|
|
3823
|
+
});
|
|
3824
|
+
e.ok || (this.exitCode = 22);
|
|
3658
3825
|
}).catch((e) => {
|
|
3659
3826
|
if (!a) {
|
|
3660
3827
|
let t = e && e.message ? e.message : String(e);
|
|
@@ -3667,9 +3834,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3667
3834
|
});
|
|
3668
3835
|
}
|
|
3669
3836
|
};
|
|
3670
|
-
})),
|
|
3837
|
+
})), Pe = /* @__PURE__ */ t(((e, t) => {
|
|
3671
3838
|
t.exports = [
|
|
3672
|
-
_e(),
|
|
3673
3839
|
ve(),
|
|
3674
3840
|
ye(),
|
|
3675
3841
|
be(),
|
|
@@ -3684,56 +3850,57 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3684
3850
|
ke(),
|
|
3685
3851
|
Ae(),
|
|
3686
3852
|
je(),
|
|
3687
|
-
Me()
|
|
3853
|
+
Me(),
|
|
3854
|
+
Ne()
|
|
3688
3855
|
];
|
|
3689
|
-
})), Pe = /* @__PURE__ */ t(((e, t) => {
|
|
3690
|
-
t.exports = Object;
|
|
3691
3856
|
})), Fe = /* @__PURE__ */ t(((e, t) => {
|
|
3692
|
-
t.exports =
|
|
3857
|
+
t.exports = Object;
|
|
3693
3858
|
})), Ie = /* @__PURE__ */ t(((e, t) => {
|
|
3694
|
-
t.exports =
|
|
3859
|
+
t.exports = Error;
|
|
3695
3860
|
})), Le = /* @__PURE__ */ t(((e, t) => {
|
|
3696
|
-
t.exports =
|
|
3861
|
+
t.exports = EvalError;
|
|
3697
3862
|
})), Re = /* @__PURE__ */ t(((e, t) => {
|
|
3698
|
-
t.exports =
|
|
3863
|
+
t.exports = RangeError;
|
|
3699
3864
|
})), ze = /* @__PURE__ */ t(((e, t) => {
|
|
3865
|
+
t.exports = ReferenceError;
|
|
3866
|
+
})), Be = /* @__PURE__ */ t(((e, t) => {
|
|
3700
3867
|
t.exports = SyntaxError;
|
|
3701
3868
|
})), X = /* @__PURE__ */ t(((e, t) => {
|
|
3702
3869
|
t.exports = TypeError;
|
|
3703
|
-
})), Be = /* @__PURE__ */ t(((e, t) => {
|
|
3704
|
-
t.exports = URIError;
|
|
3705
3870
|
})), Ve = /* @__PURE__ */ t(((e, t) => {
|
|
3706
|
-
t.exports =
|
|
3871
|
+
t.exports = URIError;
|
|
3707
3872
|
})), He = /* @__PURE__ */ t(((e, t) => {
|
|
3708
|
-
t.exports = Math.
|
|
3873
|
+
t.exports = Math.abs;
|
|
3709
3874
|
})), Ue = /* @__PURE__ */ t(((e, t) => {
|
|
3710
|
-
t.exports = Math.
|
|
3875
|
+
t.exports = Math.floor;
|
|
3711
3876
|
})), We = /* @__PURE__ */ t(((e, t) => {
|
|
3712
|
-
t.exports = Math.
|
|
3877
|
+
t.exports = Math.max;
|
|
3713
3878
|
})), Ge = /* @__PURE__ */ t(((e, t) => {
|
|
3714
|
-
t.exports = Math.
|
|
3879
|
+
t.exports = Math.min;
|
|
3715
3880
|
})), Ke = /* @__PURE__ */ t(((e, t) => {
|
|
3716
|
-
t.exports = Math.
|
|
3881
|
+
t.exports = Math.pow;
|
|
3717
3882
|
})), qe = /* @__PURE__ */ t(((e, t) => {
|
|
3883
|
+
t.exports = Math.round;
|
|
3884
|
+
})), Je = /* @__PURE__ */ t(((e, t) => {
|
|
3718
3885
|
t.exports = Number.isNaN || function(e) {
|
|
3719
3886
|
return e !== e;
|
|
3720
3887
|
};
|
|
3721
|
-
})),
|
|
3722
|
-
var n =
|
|
3888
|
+
})), Ye = /* @__PURE__ */ t(((e, t) => {
|
|
3889
|
+
var n = Je();
|
|
3723
3890
|
t.exports = function(e) {
|
|
3724
3891
|
return n(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
3725
3892
|
};
|
|
3726
|
-
})), Ye = /* @__PURE__ */ t(((e, t) => {
|
|
3727
|
-
t.exports = Object.getOwnPropertyDescriptor;
|
|
3728
3893
|
})), Xe = /* @__PURE__ */ t(((e, t) => {
|
|
3729
|
-
|
|
3894
|
+
t.exports = Object.getOwnPropertyDescriptor;
|
|
3895
|
+
})), Ze = /* @__PURE__ */ t(((e, t) => {
|
|
3896
|
+
var n = Xe();
|
|
3730
3897
|
if (n) try {
|
|
3731
3898
|
n([], "length");
|
|
3732
3899
|
} catch {
|
|
3733
3900
|
n = null;
|
|
3734
3901
|
}
|
|
3735
3902
|
t.exports = n;
|
|
3736
|
-
})),
|
|
3903
|
+
})), Qe = /* @__PURE__ */ t(((e, t) => {
|
|
3737
3904
|
var n = Object.defineProperty || !1;
|
|
3738
3905
|
if (n) try {
|
|
3739
3906
|
n({}, "a", { value: 1 });
|
|
@@ -3741,7 +3908,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3741
3908
|
n = !1;
|
|
3742
3909
|
}
|
|
3743
3910
|
t.exports = n;
|
|
3744
|
-
})),
|
|
3911
|
+
})), $e = /* @__PURE__ */ t(((e, t) => {
|
|
3745
3912
|
t.exports = function() {
|
|
3746
3913
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
|
|
3747
3914
|
if (typeof Symbol.iterator == "symbol") return !0;
|
|
@@ -3758,16 +3925,16 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3758
3925
|
}
|
|
3759
3926
|
return !0;
|
|
3760
3927
|
};
|
|
3761
|
-
})),
|
|
3762
|
-
var n = typeof Symbol < "u" && Symbol, r =
|
|
3928
|
+
})), et = /* @__PURE__ */ t(((e, t) => {
|
|
3929
|
+
var n = typeof Symbol < "u" && Symbol, r = $e();
|
|
3763
3930
|
t.exports = function() {
|
|
3764
3931
|
return typeof n != "function" || typeof Symbol != "function" || typeof n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
|
|
3765
3932
|
};
|
|
3766
|
-
})), et = /* @__PURE__ */ t(((e, t) => {
|
|
3767
|
-
t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
3768
3933
|
})), tt = /* @__PURE__ */ t(((e, t) => {
|
|
3769
|
-
t.exports =
|
|
3934
|
+
t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
3770
3935
|
})), nt = /* @__PURE__ */ t(((e, t) => {
|
|
3936
|
+
t.exports = Fe().getPrototypeOf || null;
|
|
3937
|
+
})), rt = /* @__PURE__ */ t(((e, t) => {
|
|
3771
3938
|
var n = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, i = Math.max, a = "[object Function]", o = function(e, t) {
|
|
3772
3939
|
for (var n = [], r = 0; r < e.length; r += 1) n[r] = e[r];
|
|
3773
3940
|
for (var i = 0; i < t.length; i += 1) n[i + e.length] = t[i];
|
|
@@ -3795,26 +3962,26 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3795
3962
|
}
|
|
3796
3963
|
return u;
|
|
3797
3964
|
};
|
|
3798
|
-
})), rt = /* @__PURE__ */ t(((e, t) => {
|
|
3799
|
-
var n = nt();
|
|
3800
|
-
t.exports = Function.prototype.bind || n;
|
|
3801
3965
|
})), it = /* @__PURE__ */ t(((e, t) => {
|
|
3802
|
-
|
|
3966
|
+
var n = rt();
|
|
3967
|
+
t.exports = Function.prototype.bind || n;
|
|
3803
3968
|
})), at = /* @__PURE__ */ t(((e, t) => {
|
|
3804
|
-
t.exports = Function.prototype.
|
|
3969
|
+
t.exports = Function.prototype.call;
|
|
3805
3970
|
})), ot = /* @__PURE__ */ t(((e, t) => {
|
|
3806
|
-
t.exports =
|
|
3971
|
+
t.exports = Function.prototype.apply;
|
|
3807
3972
|
})), st = /* @__PURE__ */ t(((e, t) => {
|
|
3808
|
-
|
|
3809
|
-
t.exports = ot() || n.call(i, r);
|
|
3973
|
+
t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
3810
3974
|
})), ct = /* @__PURE__ */ t(((e, t) => {
|
|
3811
|
-
var n =
|
|
3975
|
+
var n = it(), r = ot(), i = at();
|
|
3976
|
+
t.exports = st() || n.call(i, r);
|
|
3977
|
+
})), lt = /* @__PURE__ */ t(((e, t) => {
|
|
3978
|
+
var n = it(), r = X(), i = at(), a = ct();
|
|
3812
3979
|
t.exports = function(e) {
|
|
3813
3980
|
if (e.length < 1 || typeof e[0] != "function") throw new r("a function is required");
|
|
3814
3981
|
return a(n, i, e);
|
|
3815
3982
|
};
|
|
3816
|
-
})),
|
|
3817
|
-
var n =
|
|
3983
|
+
})), ut = /* @__PURE__ */ t(((e, t) => {
|
|
3984
|
+
var n = lt(), r = Ze(), i;
|
|
3818
3985
|
try {
|
|
3819
3986
|
i = [].__proto__ === Array.prototype;
|
|
3820
3987
|
} catch (e) {
|
|
@@ -3824,8 +3991,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3824
3991
|
t.exports = a && typeof a.get == "function" ? n([a.get]) : typeof s == "function" ? function(e) {
|
|
3825
3992
|
return s(e == null ? e : o(e));
|
|
3826
3993
|
} : !1;
|
|
3827
|
-
})),
|
|
3828
|
-
var n =
|
|
3994
|
+
})), dt = /* @__PURE__ */ t(((e, t) => {
|
|
3995
|
+
var n = tt(), r = nt(), i = ut();
|
|
3829
3996
|
t.exports = n ? function(e) {
|
|
3830
3997
|
return n(e);
|
|
3831
3998
|
} : r ? function(e) {
|
|
@@ -3834,15 +4001,15 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3834
4001
|
} : i ? function(e) {
|
|
3835
4002
|
return i(e);
|
|
3836
4003
|
} : null;
|
|
3837
|
-
})),
|
|
4004
|
+
})), ft = /* @__PURE__ */ t(((e, t) => {
|
|
3838
4005
|
var n = Function.prototype.call, r = Object.prototype.hasOwnProperty;
|
|
3839
|
-
t.exports =
|
|
4006
|
+
t.exports = it().call(n, r);
|
|
3840
4007
|
})), Z = /* @__PURE__ */ t(((e, t) => {
|
|
3841
|
-
var n, r =
|
|
4008
|
+
var n, r = Fe(), i = Ie(), a = Le(), o = Re(), s = ze(), c = Be(), l = X(), u = Ve(), d = He(), f = Ue(), p = We(), m = Ge(), h = Ke(), g = qe(), _ = Ye(), v = Function, y = function(e) {
|
|
3842
4009
|
try {
|
|
3843
4010
|
return v("\"use strict\"; return (" + e + ").constructor;")();
|
|
3844
4011
|
} catch {}
|
|
3845
|
-
}, b =
|
|
4012
|
+
}, b = Ze(), x = Qe(), S = function() {
|
|
3846
4013
|
throw new l();
|
|
3847
4014
|
}, C = b ? function() {
|
|
3848
4015
|
try {
|
|
@@ -3854,7 +4021,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
3854
4021
|
return S;
|
|
3855
4022
|
}
|
|
3856
4023
|
}
|
|
3857
|
-
}() : S, w =
|
|
4024
|
+
}() : S, w = et()(), T = dt(), E = nt(), D = tt(), O = ot(), k = at(), A = {}, j = typeof Uint8Array > "u" || !T ? n : T(Uint8Array), M = {
|
|
3858
4025
|
__proto__: null,
|
|
3859
4026
|
"%AggregateError%": typeof AggregateError > "u" ? n : AggregateError,
|
|
3860
4027
|
"%Array%": Array,
|
|
@@ -4044,15 +4211,15 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4044
4211
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
4045
4212
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
4046
4213
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
4047
|
-
}, F =
|
|
4048
|
-
var t =
|
|
4214
|
+
}, F = it(), I = ft(), L = F.call(k, Array.prototype.concat), ee = F.call(O, Array.prototype.splice), te = F.call(k, String.prototype.replace), R = F.call(k, String.prototype.slice), z = F.call(k, RegExp.prototype.exec), ne = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, B = /\\(\\)?/g, V = function(e) {
|
|
4215
|
+
var t = R(e, 0, 1), n = R(e, -1);
|
|
4049
4216
|
if (t === "%" && n !== "%") throw new c("invalid intrinsic syntax, expected closing `%`");
|
|
4050
4217
|
if (n === "%" && t !== "%") throw new c("invalid intrinsic syntax, expected opening `%`");
|
|
4051
4218
|
var r = [];
|
|
4052
|
-
return
|
|
4053
|
-
r[r.length] = n ?
|
|
4219
|
+
return te(e, ne, function(e, t, n, i) {
|
|
4220
|
+
r[r.length] = n ? te(i, B, "$1") : t || e;
|
|
4054
4221
|
}), r;
|
|
4055
|
-
},
|
|
4222
|
+
}, H = function(e, t) {
|
|
4056
4223
|
var n = e, r;
|
|
4057
4224
|
if (I(P, n) && (r = P[n], n = "%" + r[0] + "%"), I(M, n)) {
|
|
4058
4225
|
var i = M[n];
|
|
@@ -4068,11 +4235,11 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4068
4235
|
t.exports = function(e, t) {
|
|
4069
4236
|
if (typeof e != "string" || e.length === 0) throw new l("intrinsic name must be a non-empty string");
|
|
4070
4237
|
if (arguments.length > 1 && typeof t != "boolean") throw new l("\"allowMissing\" argument must be a boolean");
|
|
4071
|
-
if (
|
|
4072
|
-
var n =
|
|
4238
|
+
if (z(/^%?[^%]*%?$/, e) === null) throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
4239
|
+
var n = V(e), r = n.length > 0 ? n[0] : "", i = H("%" + r + "%", t), a = i.name, o = i.value, s = !1, u = i.alias;
|
|
4073
4240
|
u && (r = u[0], ee(n, L([0, 1], u)));
|
|
4074
4241
|
for (var d = 1, f = !0; d < n.length; d += 1) {
|
|
4075
|
-
var p = n[d], m =
|
|
4242
|
+
var p = n[d], m = R(p, 0, 1), h = R(p, -1);
|
|
4076
4243
|
if ((m === "\"" || m === "'" || m === "`" || h === "\"" || h === "'" || h === "`") && m !== h) throw new c("property names with quotes must have matching quotes");
|
|
4077
4244
|
if ((p === "constructor" || !f) && (s = !0), r += "." + p, a = "%" + r + "%", I(M, a)) o = M[a];
|
|
4078
4245
|
else if (o != null) {
|
|
@@ -4089,8 +4256,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4089
4256
|
}
|
|
4090
4257
|
return o;
|
|
4091
4258
|
};
|
|
4092
|
-
})),
|
|
4093
|
-
var n =
|
|
4259
|
+
})), pt = /* @__PURE__ */ t(((e, t) => {
|
|
4260
|
+
var n = Qe(), r = Be(), i = X(), a = Ze();
|
|
4094
4261
|
t.exports = function(e, t, o) {
|
|
4095
4262
|
if (!e || typeof e != "object" && typeof e != "function") throw new i("`obj` must be an object or a function`");
|
|
4096
4263
|
if (typeof t != "string" && typeof t != "symbol") throw new i("`property` must be a string or a symbol`");
|
|
@@ -4108,8 +4275,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4108
4275
|
else if (u || !s && !c && !l) e[t] = o;
|
|
4109
4276
|
else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
4110
4277
|
};
|
|
4111
|
-
})),
|
|
4112
|
-
var n =
|
|
4278
|
+
})), mt = /* @__PURE__ */ t(((e, t) => {
|
|
4279
|
+
var n = Qe(), r = function() {
|
|
4113
4280
|
return !!n;
|
|
4114
4281
|
};
|
|
4115
4282
|
r.hasArrayLengthDefineBug = function() {
|
|
@@ -4120,8 +4287,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4120
4287
|
return !0;
|
|
4121
4288
|
}
|
|
4122
4289
|
}, t.exports = r;
|
|
4123
|
-
})),
|
|
4124
|
-
var n = Z(), r =
|
|
4290
|
+
})), ht = /* @__PURE__ */ t(((e, t) => {
|
|
4291
|
+
var n = Z(), r = pt(), i = mt()(), a = Ze(), o = X(), s = n("%Math.floor%");
|
|
4125
4292
|
t.exports = function(e, t) {
|
|
4126
4293
|
if (typeof e != "function") throw new o("`fn` is not a function");
|
|
4127
4294
|
if (typeof t != "number" || t < 0 || t > 4294967295 || s(t) !== t) throw new o("`length` must be a positive 32-bit integer");
|
|
@@ -4132,27 +4299,27 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4132
4299
|
}
|
|
4133
4300
|
return (c || l || !n) && (i ? r(e, "length", t, !0, !0) : r(e, "length", t)), e;
|
|
4134
4301
|
};
|
|
4135
|
-
})),
|
|
4136
|
-
var n =
|
|
4302
|
+
})), gt = /* @__PURE__ */ t(((e, t) => {
|
|
4303
|
+
var n = it(), r = ot(), i = ct();
|
|
4137
4304
|
t.exports = function() {
|
|
4138
4305
|
return i(n, r, arguments);
|
|
4139
4306
|
};
|
|
4140
|
-
})),
|
|
4141
|
-
var n =
|
|
4307
|
+
})), _t = /* @__PURE__ */ t(((e, t) => {
|
|
4308
|
+
var n = ht(), r = Qe(), i = lt(), a = gt();
|
|
4142
4309
|
t.exports = function(e) {
|
|
4143
4310
|
var t = i(arguments), r = 1 + e.length - (arguments.length - 1);
|
|
4144
4311
|
return n(t, r > 0 ? r : 0, !0);
|
|
4145
4312
|
}, r ? r(t.exports, "apply", { value: a }) : t.exports.apply = a;
|
|
4146
|
-
})),
|
|
4313
|
+
})), vt = /* @__PURE__ */ t(((e, t) => {
|
|
4147
4314
|
var n = Object.prototype.toString;
|
|
4148
4315
|
t.exports = function(e) {
|
|
4149
4316
|
var t = n.call(e), r = t === "[object Arguments]";
|
|
4150
4317
|
return r ||= t !== "[object Array]" && typeof e == "object" && !!e && typeof e.length == "number" && e.length >= 0 && n.call(e.callee) === "[object Function]", r;
|
|
4151
4318
|
};
|
|
4152
|
-
})),
|
|
4319
|
+
})), yt = /* @__PURE__ */ t(((e, t) => {
|
|
4153
4320
|
var n;
|
|
4154
4321
|
if (!Object.keys) {
|
|
4155
|
-
var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, a =
|
|
4322
|
+
var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, a = vt(), o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), c = o.call(function() {}, "prototype"), l = [
|
|
4156
4323
|
"toString",
|
|
4157
4324
|
"toLocaleString",
|
|
4158
4325
|
"valueOf",
|
|
@@ -4219,10 +4386,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4219
4386
|
};
|
|
4220
4387
|
}
|
|
4221
4388
|
t.exports = n;
|
|
4222
|
-
})),
|
|
4223
|
-
var n = Array.prototype.slice, r =
|
|
4389
|
+
})), bt = /* @__PURE__ */ t(((e, t) => {
|
|
4390
|
+
var n = Array.prototype.slice, r = vt(), i = Object.keys, a = i ? function(e) {
|
|
4224
4391
|
return i(e);
|
|
4225
|
-
} :
|
|
4392
|
+
} : yt(), o = Object.keys;
|
|
4226
4393
|
a.shim = function() {
|
|
4227
4394
|
return Object.keys ? function() {
|
|
4228
4395
|
var e = Object.keys(arguments);
|
|
@@ -4231,10 +4398,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4231
4398
|
return r(e) ? o(n.call(e)) : o(e);
|
|
4232
4399
|
}) : Object.keys = a, Object.keys || a;
|
|
4233
4400
|
}, t.exports = a;
|
|
4234
|
-
})),
|
|
4235
|
-
var n =
|
|
4401
|
+
})), xt = /* @__PURE__ */ t(((e, t) => {
|
|
4402
|
+
var n = bt(), r = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", i = Object.prototype.toString, a = Array.prototype.concat, o = pt(), s = function(e) {
|
|
4236
4403
|
return typeof e == "function" && i.call(e) === "[object Function]";
|
|
4237
|
-
}, c =
|
|
4404
|
+
}, c = mt()(), l = function(e, t, n, r) {
|
|
4238
4405
|
if (t in e) {
|
|
4239
4406
|
if (r === !0) {
|
|
4240
4407
|
if (e[t] === n) return;
|
|
@@ -4248,28 +4415,28 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4248
4415
|
};
|
|
4249
4416
|
u.supportsDescriptors = !!c, t.exports = u;
|
|
4250
4417
|
})), Q = /* @__PURE__ */ t(((e, t) => {
|
|
4251
|
-
var n = Z(), r =
|
|
4418
|
+
var n = Z(), r = lt(), i = r([n("%String.prototype.indexOf%")]);
|
|
4252
4419
|
t.exports = function(e, t) {
|
|
4253
4420
|
var a = n(e, !!t);
|
|
4254
4421
|
return typeof a == "function" && i(e, ".prototype.") > -1 ? r([a]) : a;
|
|
4255
4422
|
};
|
|
4256
|
-
})),
|
|
4423
|
+
})), St = /* @__PURE__ */ t(((e, t) => {
|
|
4257
4424
|
var n = Z()("%Array%"), r = !n.isArray && Q()("Object.prototype.toString");
|
|
4258
4425
|
t.exports = n.isArray || function(e) {
|
|
4259
4426
|
return r(e) === "[object Array]";
|
|
4260
4427
|
};
|
|
4261
|
-
})), St = /* @__PURE__ */ t(((e, t) => {
|
|
4262
|
-
t.exports = xt();
|
|
4263
4428
|
})), Ct = /* @__PURE__ */ t(((e, t) => {
|
|
4264
|
-
|
|
4429
|
+
t.exports = St();
|
|
4430
|
+
})), wt = /* @__PURE__ */ t(((e, t) => {
|
|
4431
|
+
var n = Z(), r = Q(), i = X(), a = Ct(), o = n("%Reflect.apply%", !0) || r("Function.prototype.apply");
|
|
4265
4432
|
t.exports = function(e, t) {
|
|
4266
4433
|
var n = arguments.length > 2 ? arguments[2] : [];
|
|
4267
4434
|
if (!a(n)) throw new i("Assertion failed: optional `argumentsList`, if provided, must be a List");
|
|
4268
4435
|
return o(e, t, n);
|
|
4269
4436
|
};
|
|
4270
|
-
})), wt = /* @__PURE__ */ t(((e, t) => {
|
|
4271
|
-
t.exports = {};
|
|
4272
4437
|
})), Tt = /* @__PURE__ */ t(((e, t) => {
|
|
4438
|
+
t.exports = {};
|
|
4439
|
+
})), Et = /* @__PURE__ */ t(((e, t) => {
|
|
4273
4440
|
r();
|
|
4274
4441
|
var i = typeof Map == "function" && Map.prototype, a = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, o = i && a && typeof a.get == "function" ? a.get : null, s = i && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, u = c && l && typeof l.get == "function" ? l.get : null, d = c && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap.prototype.has : null, p = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet.prototype.has : null, m = typeof WeakRef == "function" && WeakRef.prototype ? WeakRef.prototype.deref : null, h = Boolean.prototype.valueOf, g = Object.prototype.toString, _ = Function.prototype.toString, v = String.prototype.match, y = String.prototype.slice, b = String.prototype.replace, x = String.prototype.toUpperCase, S = String.prototype.toLowerCase, C = RegExp.prototype.test, w = Array.prototype.concat, T = Array.prototype.join, E = Array.prototype.slice, D = Math.floor, O = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, k = Object.getOwnPropertySymbols, A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, j = typeof Symbol == "function" && typeof Symbol.iterator == "object", M = typeof Symbol == "function" && Symbol.toStringTag ? Symbol.toStringTag : null, N = Object.prototype.propertyIsEnumerable, P = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
4275
4442
|
return e.__proto__;
|
|
@@ -4286,18 +4453,18 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4286
4453
|
}
|
|
4287
4454
|
return b.call(t, n, "$&_");
|
|
4288
4455
|
}
|
|
4289
|
-
var I =
|
|
4456
|
+
var I = Tt(), L = I.custom, ee = ae(L) ? L : null, te = {
|
|
4290
4457
|
__proto__: null,
|
|
4291
4458
|
double: "\"",
|
|
4292
4459
|
single: "'"
|
|
4293
|
-
},
|
|
4460
|
+
}, R = {
|
|
4294
4461
|
__proto__: null,
|
|
4295
4462
|
double: /(["\\])/g,
|
|
4296
4463
|
single: /(['\\])/g
|
|
4297
4464
|
};
|
|
4298
4465
|
t.exports = function e(t, r, i, a) {
|
|
4299
4466
|
var c = r || {};
|
|
4300
|
-
if (K(c, "quoteStyle") && !K(
|
|
4467
|
+
if (K(c, "quoteStyle") && !K(te, c.quoteStyle)) throw TypeError("option \"quoteStyle\" must be \"single\" or \"double\"");
|
|
4301
4468
|
if (K(c, "maxStringLength") && (typeof c.maxStringLength == "number" ? c.maxStringLength < 0 && c.maxStringLength !== Infinity : c.maxStringLength !== null)) throw TypeError("option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`");
|
|
4302
4469
|
var l = K(c, "customInspect") ? c.customInspect : !0;
|
|
4303
4470
|
if (typeof l != "boolean" && l !== "symbol") throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
@@ -4318,7 +4485,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4318
4485
|
return f ? F(t, m) : m;
|
|
4319
4486
|
}
|
|
4320
4487
|
var g = c.depth === void 0 ? 5 : c.depth;
|
|
4321
|
-
if (i === void 0 && (i = 0), i >= g && g > 0 && typeof t == "object") return
|
|
4488
|
+
if (i === void 0 && (i = 0), i >= g && g > 0 && typeof t == "object") return V(t) ? "[Array]" : "[Object]";
|
|
4322
4489
|
var _ = be(c, i);
|
|
4323
4490
|
if (a === void 0) a = [];
|
|
4324
4491
|
else if (le(a, t) >= 0) return "[Circular]";
|
|
@@ -4329,7 +4496,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4329
4496
|
}
|
|
4330
4497
|
return e(t, c, i + 1, a);
|
|
4331
4498
|
}
|
|
4332
|
-
if (typeof t == "function" && !
|
|
4499
|
+
if (typeof t == "function" && !U(t)) {
|
|
4333
4500
|
var x = ce(t), C = Se(t, v);
|
|
4334
4501
|
return "[Function" + (x ? ": " + x : " (anonymous)") + "]" + (C.length > 0 ? " { " + T.call(C, ", ") + " }" : "");
|
|
4335
4502
|
}
|
|
@@ -4338,15 +4505,15 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4338
4505
|
return typeof t == "object" && !j ? Y(D) : D;
|
|
4339
4506
|
}
|
|
4340
4507
|
if (J(t)) {
|
|
4341
|
-
for (var k = "<" + S.call(String(t.nodeName)), L = t.attributes || [],
|
|
4508
|
+
for (var k = "<" + S.call(String(t.nodeName)), L = t.attributes || [], R = 0; R < L.length; R++) k += " " + L[R].name + "=" + z(ne(L[R].value), "double", c);
|
|
4342
4509
|
return k += ">", t.childNodes && t.childNodes.length && (k += "..."), k += "</" + S.call(String(t.nodeName)) + ">", k;
|
|
4343
4510
|
}
|
|
4344
|
-
if (
|
|
4511
|
+
if (V(t)) {
|
|
4345
4512
|
if (t.length === 0) return "[]";
|
|
4346
|
-
var
|
|
4347
|
-
return _ && !ye(
|
|
4513
|
+
var B = Se(t, v);
|
|
4514
|
+
return _ && !ye(B) ? "[" + xe(B, _) + "]" : "[ " + T.call(B, ", ") + " ]";
|
|
4348
4515
|
}
|
|
4349
|
-
if (
|
|
4516
|
+
if (re(t)) {
|
|
4350
4517
|
var se = Se(t, v);
|
|
4351
4518
|
return !("cause" in Error.prototype) && "cause" in t && !N.call(t, "cause") ? "{ [" + String(t) + "] " + T.call(w.call("[cause]: " + v(t.cause), se), ", ") + " }" : se.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + T.call(se, ", ") + " }";
|
|
4352
4519
|
}
|
|
@@ -4369,48 +4536,48 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4369
4536
|
if (de(t)) return _e("WeakMap");
|
|
4370
4537
|
if (me(t)) return _e("WeakSet");
|
|
4371
4538
|
if (fe(t)) return _e("WeakRef");
|
|
4372
|
-
if (
|
|
4539
|
+
if (G(t)) return Y(v(Number(t)));
|
|
4373
4540
|
if (oe(t)) return Y(v(O.call(t)));
|
|
4374
4541
|
if (ie(t)) return Y(h.call(t));
|
|
4375
|
-
if (
|
|
4542
|
+
if (W(t)) return Y(v(String(t)));
|
|
4376
4543
|
if (typeof window < "u" && t === window) return "{ [object Window] }";
|
|
4377
4544
|
if (typeof globalThis < "u" && t === globalThis || n !== void 0 && t === n) return "{ [object globalThis] }";
|
|
4378
|
-
if (!
|
|
4545
|
+
if (!H(t) && !U(t)) {
|
|
4379
4546
|
var we = Se(t, v), Te = P ? P(t) === Object.prototype : t instanceof Object || t.constructor === Object, Ee = t instanceof Object ? "" : "null prototype", De = !Te && M && Object(t) === t && M in t ? y.call(q(t), 8, -1) : Ee ? "Object" : "", Oe = (Te || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "") + (De || Ee ? "[" + T.call(w.call([], De || [], Ee || []), ": ") + "] " : "");
|
|
4380
4547
|
return we.length === 0 ? Oe + "{}" : _ ? Oe + "{" + xe(we, _) + "}" : Oe + "{ " + T.call(we, ", ") + " }";
|
|
4381
4548
|
}
|
|
4382
4549
|
return String(t);
|
|
4383
4550
|
};
|
|
4384
|
-
function
|
|
4385
|
-
var r =
|
|
4551
|
+
function z(e, t, n) {
|
|
4552
|
+
var r = te[n.quoteStyle || t];
|
|
4386
4553
|
return r + e + r;
|
|
4387
4554
|
}
|
|
4388
|
-
function
|
|
4555
|
+
function ne(e) {
|
|
4389
4556
|
return b.call(String(e), /"/g, """);
|
|
4390
4557
|
}
|
|
4391
|
-
function
|
|
4558
|
+
function B(e) {
|
|
4392
4559
|
return !M || !(typeof e == "object" && (M in e || e[M] !== void 0));
|
|
4393
4560
|
}
|
|
4394
|
-
function
|
|
4395
|
-
return q(e) === "[object Array]" &&
|
|
4561
|
+
function V(e) {
|
|
4562
|
+
return q(e) === "[object Array]" && B(e);
|
|
4396
4563
|
}
|
|
4397
|
-
function
|
|
4398
|
-
return q(e) === "[object Date]" &&
|
|
4564
|
+
function H(e) {
|
|
4565
|
+
return q(e) === "[object Date]" && B(e);
|
|
4399
4566
|
}
|
|
4400
|
-
function
|
|
4401
|
-
return q(e) === "[object RegExp]" &&
|
|
4567
|
+
function U(e) {
|
|
4568
|
+
return q(e) === "[object RegExp]" && B(e);
|
|
4402
4569
|
}
|
|
4403
|
-
function
|
|
4404
|
-
return q(e) === "[object Error]" &&
|
|
4570
|
+
function re(e) {
|
|
4571
|
+
return q(e) === "[object Error]" && B(e);
|
|
4405
4572
|
}
|
|
4406
|
-
function
|
|
4407
|
-
return q(e) === "[object String]" &&
|
|
4573
|
+
function W(e) {
|
|
4574
|
+
return q(e) === "[object String]" && B(e);
|
|
4408
4575
|
}
|
|
4409
|
-
function
|
|
4410
|
-
return q(e) === "[object Number]" &&
|
|
4576
|
+
function G(e) {
|
|
4577
|
+
return q(e) === "[object Number]" && B(e);
|
|
4411
4578
|
}
|
|
4412
4579
|
function ie(e) {
|
|
4413
|
-
return q(e) === "[object Boolean]" &&
|
|
4580
|
+
return q(e) === "[object Boolean]" && B(e);
|
|
4414
4581
|
}
|
|
4415
4582
|
function ae(e) {
|
|
4416
4583
|
if (j) return e && typeof e == "object" && e instanceof Symbol;
|
|
@@ -4514,8 +4681,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4514
4681
|
var n = e.length - t.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
4515
4682
|
return he(y.call(e, 0, t.maxStringLength), t) + r;
|
|
4516
4683
|
}
|
|
4517
|
-
var i =
|
|
4518
|
-
return i.lastIndex = 0,
|
|
4684
|
+
var i = R[t.quoteStyle || "single"];
|
|
4685
|
+
return i.lastIndex = 0, z(b.call(b.call(e, i, "\\$1"), /[\x00-\x1f]/g, ge), "single", t);
|
|
4519
4686
|
}
|
|
4520
4687
|
function ge(e) {
|
|
4521
4688
|
var t = e.charCodeAt(0), n = {
|
|
@@ -4557,7 +4724,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4557
4724
|
return n + T.call(e, "," + n) + "\n" + t.prev;
|
|
4558
4725
|
}
|
|
4559
4726
|
function Se(e, t) {
|
|
4560
|
-
var n =
|
|
4727
|
+
var n = V(e), r = [];
|
|
4561
4728
|
if (n) {
|
|
4562
4729
|
r.length = e.length;
|
|
4563
4730
|
for (var i = 0; i < e.length; i++) r[i] = K(e, i) ? t(e[i], e) : "";
|
|
@@ -4571,7 +4738,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4571
4738
|
if (typeof k == "function") for (var l = 0; l < a.length; l++) N.call(e, a[l]) && r.push("[" + t(a[l]) + "]: " + t(e[a[l]], e));
|
|
4572
4739
|
return r;
|
|
4573
4740
|
}
|
|
4574
|
-
})),
|
|
4741
|
+
})), Dt = /* @__PURE__ */ t(((e, t) => {
|
|
4575
4742
|
t.exports = function(e) {
|
|
4576
4743
|
return typeof e == "string" || typeof e == "symbol";
|
|
4577
4744
|
};
|
|
@@ -4579,20 +4746,20 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4579
4746
|
t.exports = function(e) {
|
|
4580
4747
|
return !!e && (typeof e == "function" || typeof e == "object");
|
|
4581
4748
|
};
|
|
4582
|
-
})),
|
|
4583
|
-
var n = X(), r =
|
|
4749
|
+
})), Ot = /* @__PURE__ */ t(((e, t) => {
|
|
4750
|
+
var n = X(), r = Et(), i = Dt(), a = $();
|
|
4584
4751
|
t.exports = function(e, t) {
|
|
4585
4752
|
if (!a(e)) throw new n("Assertion failed: Type(O) is not Object");
|
|
4586
4753
|
if (!i(t)) throw new n("Assertion failed: P is not a Property Key, got " + r(t));
|
|
4587
4754
|
return e[t];
|
|
4588
4755
|
};
|
|
4589
|
-
})),
|
|
4590
|
-
var n = X(), r =
|
|
4756
|
+
})), kt = /* @__PURE__ */ t(((e, t) => {
|
|
4757
|
+
var n = X(), r = Et(), i = Dt();
|
|
4591
4758
|
t.exports = function(e, t) {
|
|
4592
4759
|
if (!i(t)) throw new n("Assertion failed: P is not a Property Key, got " + r(t));
|
|
4593
4760
|
return e[t];
|
|
4594
4761
|
};
|
|
4595
|
-
})),
|
|
4762
|
+
})), At = /* @__PURE__ */ t(((e, t) => {
|
|
4596
4763
|
var n = Function.prototype.toString, r = typeof Reflect == "object" && Reflect !== null && Reflect.apply, i, a;
|
|
4597
4764
|
if (typeof r == "function" && typeof Object.defineProperty == "function") try {
|
|
4598
4765
|
i = Object.defineProperty({}, "length", { get: function() {
|
|
@@ -4647,10 +4814,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4647
4814
|
var t = l.call(e);
|
|
4648
4815
|
return t !== d && t !== f && !/^\[object HTML/.test(t) ? !1 : c(e);
|
|
4649
4816
|
};
|
|
4650
|
-
})), At = /* @__PURE__ */ t(((e, t) => {
|
|
4651
|
-
t.exports = kt();
|
|
4652
4817
|
})), jt = /* @__PURE__ */ t(((e, t) => {
|
|
4653
|
-
|
|
4818
|
+
t.exports = At();
|
|
4819
|
+
})), Mt = /* @__PURE__ */ t(((e, t) => {
|
|
4820
|
+
var n = X(), r = kt(), i = jt(), a = Dt(), o = Et();
|
|
4654
4821
|
t.exports = function(e, t) {
|
|
4655
4822
|
if (!a(t)) throw new n("Assertion failed: P is not a Property Key");
|
|
4656
4823
|
var s = r(e, t);
|
|
@@ -4659,13 +4826,13 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4659
4826
|
return s;
|
|
4660
4827
|
}
|
|
4661
4828
|
};
|
|
4662
|
-
})),
|
|
4663
|
-
var n =
|
|
4829
|
+
})), Nt = /* @__PURE__ */ t(((e, t) => {
|
|
4830
|
+
var n = $e();
|
|
4664
4831
|
t.exports = function() {
|
|
4665
4832
|
return n() && !!Symbol.toStringTag;
|
|
4666
4833
|
};
|
|
4667
|
-
})),
|
|
4668
|
-
var n = Q(), r =
|
|
4834
|
+
})), Pt = /* @__PURE__ */ t(((e, t) => {
|
|
4835
|
+
var n = Q(), r = Nt()(), i = ft(), a = Ze(), o;
|
|
4669
4836
|
if (r) {
|
|
4670
4837
|
var s = n("RegExp.prototype.exec"), c = {}, l = function() {
|
|
4671
4838
|
throw c;
|
|
@@ -4690,12 +4857,12 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4690
4857
|
};
|
|
4691
4858
|
}
|
|
4692
4859
|
t.exports = o;
|
|
4693
|
-
})),
|
|
4860
|
+
})), Ft = /* @__PURE__ */ t(((e, t) => {
|
|
4694
4861
|
t.exports = function(e) {
|
|
4695
4862
|
return !!e;
|
|
4696
4863
|
};
|
|
4697
|
-
})),
|
|
4698
|
-
var n = Z()("%Symbol.match%", !0), r =
|
|
4864
|
+
})), It = /* @__PURE__ */ t(((e, t) => {
|
|
4865
|
+
var n = Z()("%Symbol.match%", !0), r = Pt(), i = $(), a = Ft();
|
|
4699
4866
|
t.exports = function(e) {
|
|
4700
4867
|
if (!i(e)) return !1;
|
|
4701
4868
|
if (n) {
|
|
@@ -4704,19 +4871,19 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4704
4871
|
}
|
|
4705
4872
|
return r(e);
|
|
4706
4873
|
};
|
|
4707
|
-
})),
|
|
4874
|
+
})), Lt = /* @__PURE__ */ t(((e, t) => {
|
|
4708
4875
|
var n = Z()("%String%"), r = X();
|
|
4709
4876
|
t.exports = function(e) {
|
|
4710
4877
|
if (typeof e == "symbol") throw new r("Cannot convert a Symbol value to a string");
|
|
4711
4878
|
return n(e);
|
|
4712
4879
|
};
|
|
4713
|
-
})),
|
|
4880
|
+
})), Rt = /* @__PURE__ */ t(((e, t) => {
|
|
4714
4881
|
var n = X();
|
|
4715
4882
|
t.exports = function(e) {
|
|
4716
4883
|
if (e == null) throw new n(arguments.length > 0 && arguments[1] || "Cannot call method on " + e);
|
|
4717
4884
|
return e;
|
|
4718
4885
|
};
|
|
4719
|
-
})),
|
|
4886
|
+
})), zt = /* @__PURE__ */ t(((e, t) => {
|
|
4720
4887
|
var n = function() {
|
|
4721
4888
|
return typeof function() {}.name == "string";
|
|
4722
4889
|
}, r = Object.getOwnPropertyDescriptor;
|
|
@@ -4734,21 +4901,21 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4734
4901
|
n.boundFunctionsHaveNames = function() {
|
|
4735
4902
|
return n() && typeof i == "function" && function() {}.bind().name !== "";
|
|
4736
4903
|
}, t.exports = n;
|
|
4737
|
-
})),
|
|
4738
|
-
var n =
|
|
4904
|
+
})), Bt = /* @__PURE__ */ t(((e, t) => {
|
|
4905
|
+
var n = pt(), r = mt()(), i = zt().functionsHaveConfigurableNames(), a = X();
|
|
4739
4906
|
t.exports = function(e, t) {
|
|
4740
4907
|
if (typeof e != "function") throw new a("`fn` is not a function");
|
|
4741
4908
|
return (!(arguments.length > 2 && arguments[2]) || i) && (r ? n(e, "name", t, !0, !0) : n(e, "name", t)), e;
|
|
4742
4909
|
};
|
|
4743
|
-
})),
|
|
4744
|
-
var n =
|
|
4910
|
+
})), Vt = /* @__PURE__ */ t(((e, t) => {
|
|
4911
|
+
var n = Bt(), r = X(), i = Object;
|
|
4745
4912
|
t.exports = n(function() {
|
|
4746
4913
|
if (this == null || this !== i(this)) throw new r("RegExp.prototype.flags getter called on non-object");
|
|
4747
4914
|
var e = "";
|
|
4748
4915
|
return this.hasIndices && (e += "d"), this.global && (e += "g"), this.ignoreCase && (e += "i"), this.multiline && (e += "m"), this.dotAll && (e += "s"), this.unicode && (e += "u"), this.unicodeSets && (e += "v"), this.sticky && (e += "y"), e;
|
|
4749
4916
|
}, "get flags", !0);
|
|
4750
|
-
})),
|
|
4751
|
-
var n =
|
|
4917
|
+
})), Ht = /* @__PURE__ */ t(((e, t) => {
|
|
4918
|
+
var n = Vt(), r = xt().supportsDescriptors, i = Object.getOwnPropertyDescriptor;
|
|
4752
4919
|
t.exports = function() {
|
|
4753
4920
|
if (r && /a/gim.flags === "gim") {
|
|
4754
4921
|
var e = i(RegExp.prototype, "flags");
|
|
@@ -4763,8 +4930,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4763
4930
|
}
|
|
4764
4931
|
return n;
|
|
4765
4932
|
};
|
|
4766
|
-
})),
|
|
4767
|
-
var n =
|
|
4933
|
+
})), Ut = /* @__PURE__ */ t(((e, t) => {
|
|
4934
|
+
var n = xt().supportsDescriptors, r = Ht(), i = Ze(), a = Object.defineProperty, o = Ie(), s = dt(), c = /a/;
|
|
4768
4935
|
t.exports = function() {
|
|
4769
4936
|
if (!n || !s) throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
4770
4937
|
var e = r(), t = s(c), l = i(t, "flags");
|
|
@@ -4774,29 +4941,29 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4774
4941
|
get: e
|
|
4775
4942
|
}), e;
|
|
4776
4943
|
};
|
|
4777
|
-
})),
|
|
4778
|
-
var n =
|
|
4944
|
+
})), Wt = /* @__PURE__ */ t(((e, t) => {
|
|
4945
|
+
var n = xt(), r = _t(), i = Vt(), a = Ht(), o = Ut(), s = r(a());
|
|
4779
4946
|
n(s, {
|
|
4780
4947
|
getPolyfill: a,
|
|
4781
4948
|
implementation: i,
|
|
4782
4949
|
shim: o
|
|
4783
4950
|
}), t.exports = s;
|
|
4784
|
-
})),
|
|
4951
|
+
})), Gt = /* @__PURE__ */ t(((e, t) => {
|
|
4785
4952
|
t.exports = function(e) {
|
|
4786
4953
|
return typeof e == "number" && e >= 55296 && e <= 56319;
|
|
4787
4954
|
};
|
|
4788
|
-
})),
|
|
4955
|
+
})), Kt = /* @__PURE__ */ t(((e, t) => {
|
|
4789
4956
|
t.exports = function(e) {
|
|
4790
4957
|
return typeof e == "number" && e >= 56320 && e <= 57343;
|
|
4791
4958
|
};
|
|
4792
|
-
})),
|
|
4793
|
-
var n = Z(), r = X(), i = n("%String.fromCharCode%"), a =
|
|
4959
|
+
})), qt = /* @__PURE__ */ t(((e, t) => {
|
|
4960
|
+
var n = Z(), r = X(), i = n("%String.fromCharCode%"), a = Gt(), o = Kt();
|
|
4794
4961
|
t.exports = function(e, t) {
|
|
4795
4962
|
if (!a(e) || !o(t)) throw new r("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");
|
|
4796
4963
|
return i(e) + i(t);
|
|
4797
4964
|
};
|
|
4798
|
-
})),
|
|
4799
|
-
var n = X(), r = Q(), i =
|
|
4965
|
+
})), Jt = /* @__PURE__ */ t(((e, t) => {
|
|
4966
|
+
var n = X(), r = Q(), i = Gt(), a = Kt(), o = qt(), s = r("String.prototype.charAt"), c = r("String.prototype.charCodeAt");
|
|
4800
4967
|
t.exports = function(e, t) {
|
|
4801
4968
|
if (typeof e != "string") throw new n("Assertion failed: `string` must be a String");
|
|
4802
4969
|
var r = e.length;
|
|
@@ -4823,22 +4990,22 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4823
4990
|
"[[IsUnpairedSurrogate]]": !0
|
|
4824
4991
|
};
|
|
4825
4992
|
};
|
|
4826
|
-
})),
|
|
4827
|
-
var n =
|
|
4993
|
+
})), Yt = /* @__PURE__ */ t(((e, t) => {
|
|
4994
|
+
var n = Je();
|
|
4828
4995
|
t.exports = function(e) {
|
|
4829
4996
|
return (typeof e == "number" || typeof e == "bigint") && !n(e) && e !== Infinity && e !== -Infinity;
|
|
4830
4997
|
};
|
|
4831
|
-
})),
|
|
4832
|
-
var n =
|
|
4998
|
+
})), Xt = /* @__PURE__ */ t(((e, t) => {
|
|
4999
|
+
var n = He(), r = Ue(), i = Je(), a = Yt();
|
|
4833
5000
|
t.exports = function(e) {
|
|
4834
5001
|
if (typeof e != "number" || i(e) || !a(e)) return !1;
|
|
4835
5002
|
var t = n(e);
|
|
4836
5003
|
return r(t) === t;
|
|
4837
5004
|
};
|
|
4838
|
-
})), Xt = /* @__PURE__ */ t(((e, t) => {
|
|
4839
|
-
t.exports = 2 ** 53 - 1 || 9007199254740991;
|
|
4840
5005
|
})), Zt = /* @__PURE__ */ t(((e, t) => {
|
|
4841
|
-
|
|
5006
|
+
t.exports = 2 ** 53 - 1 || 9007199254740991;
|
|
5007
|
+
})), Qt = /* @__PURE__ */ t(((e, t) => {
|
|
5008
|
+
var n = Jt(), r = X(), i = Xt(), a = Zt();
|
|
4842
5009
|
t.exports = function(e, t, o) {
|
|
4843
5010
|
if (typeof e != "string") throw new r("Assertion failed: `S` must be a String");
|
|
4844
5011
|
if (!i(t) || t < 0 || t > a) throw new r("Assertion failed: `length` must be an integer >= 0 and <= 2**53");
|
|
@@ -4847,7 +5014,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4847
5014
|
var s = e.length;
|
|
4848
5015
|
return t + 1 >= s ? t + 1 : t + n(e, t)["[[CodeUnitCount]]"];
|
|
4849
5016
|
};
|
|
4850
|
-
})),
|
|
5017
|
+
})), $t = /* @__PURE__ */ t(((e, t) => {
|
|
4851
5018
|
var n = X();
|
|
4852
5019
|
t.exports = function(e, t) {
|
|
4853
5020
|
if (typeof t != "boolean") throw new n("Assertion failed: Type(done) is not Boolean");
|
|
@@ -4856,8 +5023,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4856
5023
|
done: t
|
|
4857
5024
|
};
|
|
4858
5025
|
};
|
|
4859
|
-
})),
|
|
4860
|
-
var n = X(), r =
|
|
5026
|
+
})), en = /* @__PURE__ */ t(((e, t) => {
|
|
5027
|
+
var n = X(), r = ft(), i = {
|
|
4861
5028
|
__proto__: null,
|
|
4862
5029
|
"[[Configurable]]": !0,
|
|
4863
5030
|
"[[Enumerable]]": !0,
|
|
@@ -4873,8 +5040,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4873
5040
|
if (a && o) throw new n("Property Descriptors may not be both accessor and data descriptors");
|
|
4874
5041
|
return !0;
|
|
4875
5042
|
};
|
|
4876
|
-
})),
|
|
4877
|
-
var n =
|
|
5043
|
+
})), tn = /* @__PURE__ */ t(((e, t) => {
|
|
5044
|
+
var n = mt(), r = Qe(), i = n.hasArrayLengthDefineBug(), a = i && St(), o = Q()("Object.prototype.propertyIsEnumerable");
|
|
4878
5045
|
t.exports = function(e, t, n, s, c, l) {
|
|
4879
5046
|
if (!r) {
|
|
4880
5047
|
if (!e(l) || !l["[[Configurable]]"] || !l["[[Writable]]"] || c in s && o(s, c) !== !!l["[[Enumerable]]"]) return !1;
|
|
@@ -4883,32 +5050,32 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4883
5050
|
}
|
|
4884
5051
|
return i && c === "length" && "[[Value]]" in l && a(s) && s.length !== l["[[Value]]"] ? (s.length = l["[[Value]]"], s.length === l["[[Value]]"]) : (r(s, c, n(l)), !0);
|
|
4885
5052
|
};
|
|
4886
|
-
})),
|
|
5053
|
+
})), nn = /* @__PURE__ */ t(((e, t) => {
|
|
4887
5054
|
t.exports = function(e) {
|
|
4888
5055
|
if (e === void 0) return e;
|
|
4889
5056
|
var t = {};
|
|
4890
5057
|
return "[[Value]]" in e && (t.value = e["[[Value]]"]), "[[Writable]]" in e && (t.writable = !!e["[[Writable]]"]), "[[Get]]" in e && (t.get = e["[[Get]]"]), "[[Set]]" in e && (t.set = e["[[Set]]"]), "[[Enumerable]]" in e && (t.enumerable = !!e["[[Enumerable]]"]), "[[Configurable]]" in e && (t.configurable = !!e["[[Configurable]]"]), t;
|
|
4891
5058
|
};
|
|
4892
|
-
})),
|
|
4893
|
-
var n = X(), r =
|
|
5059
|
+
})), rn = /* @__PURE__ */ t(((e, t) => {
|
|
5060
|
+
var n = X(), r = en(), i = nn();
|
|
4894
5061
|
t.exports = function(e) {
|
|
4895
5062
|
if (e !== void 0 && !r(e)) throw new n("Assertion failed: `Desc` must be a Property Descriptor");
|
|
4896
5063
|
return i(e);
|
|
4897
5064
|
};
|
|
4898
|
-
})),
|
|
4899
|
-
var n = X(), r =
|
|
5065
|
+
})), an = /* @__PURE__ */ t(((e, t) => {
|
|
5066
|
+
var n = X(), r = ft(), i = en();
|
|
4900
5067
|
t.exports = function(e) {
|
|
4901
5068
|
if (e === void 0) return !1;
|
|
4902
5069
|
if (!i(e)) throw new n("Assertion failed: `Desc` must be a Property Descriptor");
|
|
4903
5070
|
return !(!r(e, "[[Value]]") && !r(e, "[[Writable]]"));
|
|
4904
5071
|
};
|
|
4905
|
-
})),
|
|
4906
|
-
var n =
|
|
5072
|
+
})), on = /* @__PURE__ */ t(((e, t) => {
|
|
5073
|
+
var n = Je();
|
|
4907
5074
|
t.exports = function(e, t) {
|
|
4908
5075
|
return e === t ? e === 0 ? 1 / e == 1 / t : !0 : n(e) && n(t);
|
|
4909
5076
|
};
|
|
4910
|
-
})),
|
|
4911
|
-
var n =
|
|
5077
|
+
})), sn = /* @__PURE__ */ t(((e, t) => {
|
|
5078
|
+
var n = ft(), r = X(), i = $(), a = jt(), o = Ft();
|
|
4912
5079
|
t.exports = function(e) {
|
|
4913
5080
|
if (!i(e)) throw new r("ToPropertyDescriptor requires an object");
|
|
4914
5081
|
var t = {};
|
|
@@ -4925,8 +5092,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4925
5092
|
if ((n(t, "[[Get]]") || n(t, "[[Set]]")) && (n(t, "[[Value]]") || n(t, "[[Writable]]"))) throw new r("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
4926
5093
|
return t;
|
|
4927
5094
|
};
|
|
4928
|
-
})),
|
|
4929
|
-
var n = X(), r = $(), i =
|
|
5095
|
+
})), cn = /* @__PURE__ */ t(((e, t) => {
|
|
5096
|
+
var n = X(), r = $(), i = en(), a = tn(), o = rn(), s = an(), c = Dt(), l = on(), u = sn();
|
|
4930
5097
|
t.exports = function(e, t, d) {
|
|
4931
5098
|
if (!r(e)) throw new n("Assertion failed: Type(O) is not Object");
|
|
4932
5099
|
if (!c(t)) throw new n("Assertion failed: P is not a Property Key");
|
|
@@ -4934,19 +5101,19 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4934
5101
|
if (!i(f)) throw new n("Assertion failed: Desc is not a valid Property Descriptor");
|
|
4935
5102
|
return a(s, l, o, e, t, f);
|
|
4936
5103
|
};
|
|
4937
|
-
})),
|
|
5104
|
+
})), ln = /* @__PURE__ */ t(((e, t) => {
|
|
4938
5105
|
t.exports = function(e) {
|
|
4939
5106
|
return e === null || typeof e != "function" && typeof e != "object";
|
|
4940
5107
|
};
|
|
4941
|
-
})),
|
|
4942
|
-
var n = Z(), r = n("%Object.preventExtensions%", !0), i = n("%Object.isExtensible%", !0), a =
|
|
5108
|
+
})), un = /* @__PURE__ */ t(((e, t) => {
|
|
5109
|
+
var n = Z(), r = n("%Object.preventExtensions%", !0), i = n("%Object.isExtensible%", !0), a = ln();
|
|
4943
5110
|
t.exports = r ? function(e) {
|
|
4944
5111
|
return !a(e) && i(e);
|
|
4945
5112
|
} : function(e) {
|
|
4946
5113
|
return !a(e);
|
|
4947
5114
|
};
|
|
4948
|
-
})),
|
|
4949
|
-
var n = X(), r = $(), i =
|
|
5115
|
+
})), dn = /* @__PURE__ */ t(((e, t) => {
|
|
5116
|
+
var n = X(), r = $(), i = cn(), a = un(), o = Dt();
|
|
4950
5117
|
t.exports = function(e, t, s, c) {
|
|
4951
5118
|
if (!r(e)) throw new n("Assertion failed: `homeObject` is not an Object");
|
|
4952
5119
|
if (!o(t)) throw new n("Assertion failed: `key` is not a Property Key or a Private Name");
|
|
@@ -4960,12 +5127,12 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
4960
5127
|
"[[Configurable]]": !0
|
|
4961
5128
|
});
|
|
4962
5129
|
};
|
|
4963
|
-
})),
|
|
5130
|
+
})), fn = /* @__PURE__ */ t(((e, t) => {
|
|
4964
5131
|
t.exports = function(e, t) {
|
|
4965
5132
|
for (var n = 0; n < e.length; n += 1) t(e[n], n, e);
|
|
4966
5133
|
};
|
|
4967
|
-
})),
|
|
4968
|
-
var n =
|
|
5134
|
+
})), pn = /* @__PURE__ */ t(((e, t) => {
|
|
5135
|
+
var n = Et(), r = X(), i = function(e, t, n) {
|
|
4969
5136
|
for (var r = e, i; (i = r.next) != null; r = i) if (i.key === t) return r.next = i.next, n || (i.next = e.next, e.next = i), i;
|
|
4970
5137
|
}, a = function(e, t) {
|
|
4971
5138
|
if (e) {
|
|
@@ -5005,8 +5172,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5005
5172
|
};
|
|
5006
5173
|
return t;
|
|
5007
5174
|
};
|
|
5008
|
-
})),
|
|
5009
|
-
var n = Z(), r = Q(), i =
|
|
5175
|
+
})), mn = /* @__PURE__ */ t(((e, t) => {
|
|
5176
|
+
var n = Z(), r = Q(), i = Et(), a = X(), o = n("%Map%", !0), s = r("Map.prototype.get", !0), c = r("Map.prototype.set", !0), l = r("Map.prototype.has", !0), u = r("Map.prototype.delete", !0), d = r("Map.prototype.size", !0);
|
|
5010
5177
|
t.exports = !!o && function() {
|
|
5011
5178
|
var e, t = {
|
|
5012
5179
|
assert: function(e) {
|
|
@@ -5031,8 +5198,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5031
5198
|
};
|
|
5032
5199
|
return t;
|
|
5033
5200
|
};
|
|
5034
|
-
})),
|
|
5035
|
-
var n = Z(), r = Q(), i =
|
|
5201
|
+
})), hn = /* @__PURE__ */ t(((e, t) => {
|
|
5202
|
+
var n = Z(), r = Q(), i = Et(), a = mn(), o = X(), s = n("%WeakMap%", !0), c = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), u = r("WeakMap.prototype.has", !0), d = r("WeakMap.prototype.delete", !0);
|
|
5036
5203
|
t.exports = s ? function() {
|
|
5037
5204
|
var e, t, n = {
|
|
5038
5205
|
assert: function(e) {
|
|
@@ -5056,8 +5223,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5056
5223
|
};
|
|
5057
5224
|
return n;
|
|
5058
5225
|
} : a;
|
|
5059
|
-
})),
|
|
5060
|
-
var n = X(), r =
|
|
5226
|
+
})), gn = /* @__PURE__ */ t(((e, t) => {
|
|
5227
|
+
var n = X(), r = Et(), i = pn(), a = mn(), o = hn() || a || i;
|
|
5061
5228
|
t.exports = function() {
|
|
5062
5229
|
var e, t = {
|
|
5063
5230
|
assert: function(e) {
|
|
@@ -5078,8 +5245,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5078
5245
|
};
|
|
5079
5246
|
return t;
|
|
5080
5247
|
};
|
|
5081
|
-
})),
|
|
5082
|
-
var n =
|
|
5248
|
+
})), _n = /* @__PURE__ */ t(((e, t) => {
|
|
5249
|
+
var n = ft(), r = gn()(), i = X(), a = {
|
|
5083
5250
|
assert: function(e, t) {
|
|
5084
5251
|
if (!e || typeof e != "object" && typeof e != "function") throw new i("`O` is not an object");
|
|
5085
5252
|
if (typeof t != "string") throw new i("`slot` must be a string");
|
|
@@ -5105,7 +5272,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5105
5272
|
}
|
|
5106
5273
|
};
|
|
5107
5274
|
Object.freeze && Object.freeze(a), t.exports = a;
|
|
5108
|
-
})),
|
|
5275
|
+
})), vn = /* @__PURE__ */ t(((e, t) => {
|
|
5109
5276
|
var n = {
|
|
5110
5277
|
__proto__: null,
|
|
5111
5278
|
foo: {}
|
|
@@ -5113,8 +5280,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5113
5280
|
t.exports = function() {
|
|
5114
5281
|
return r;
|
|
5115
5282
|
};
|
|
5116
|
-
})),
|
|
5117
|
-
var n = Z()("%Object.create%", !0), r = X(), i =
|
|
5283
|
+
})), yn = /* @__PURE__ */ t(((e, t) => {
|
|
5284
|
+
var n = Z()("%Object.create%", !0), r = X(), i = Be(), a = $(), o = Ct(), s = fn(), c = _n(), l = vn()();
|
|
5118
5285
|
t.exports = function(e) {
|
|
5119
5286
|
if (e !== null && !a(e)) throw new r("Assertion failed: `proto` must be null or an object");
|
|
5120
5287
|
var t = arguments.length < 2 ? [] : arguments[1];
|
|
@@ -5131,8 +5298,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5131
5298
|
c.set(u, e, void 0);
|
|
5132
5299
|
}), u;
|
|
5133
5300
|
};
|
|
5134
|
-
})),
|
|
5135
|
-
var n = X(), r = $(), i = Q()("RegExp.prototype.exec"), a =
|
|
5301
|
+
})), bn = /* @__PURE__ */ t(((e, t) => {
|
|
5302
|
+
var n = X(), r = $(), i = Q()("RegExp.prototype.exec"), a = wt(), o = Ot(), s = jt();
|
|
5136
5303
|
t.exports = function(e, t) {
|
|
5137
5304
|
if (!r(e)) throw new n("Assertion failed: `R` must be an Object");
|
|
5138
5305
|
if (typeof t != "string") throw new n("Assertion failed: `S` must be a String");
|
|
@@ -5144,8 +5311,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5144
5311
|
}
|
|
5145
5312
|
return i(e, t);
|
|
5146
5313
|
};
|
|
5147
|
-
})),
|
|
5148
|
-
var n = X(), r = $(), i =
|
|
5314
|
+
})), xn = /* @__PURE__ */ t(((e, t) => {
|
|
5315
|
+
var n = X(), r = $(), i = Dt(), a = on(), o = function() {
|
|
5149
5316
|
try {
|
|
5150
5317
|
return delete 0, !0;
|
|
5151
5318
|
} catch {
|
|
@@ -5166,31 +5333,31 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5166
5333
|
return !1;
|
|
5167
5334
|
}
|
|
5168
5335
|
};
|
|
5169
|
-
})),
|
|
5336
|
+
})), Sn = /* @__PURE__ */ t(((e, t) => {
|
|
5170
5337
|
t.exports = function(e) {
|
|
5171
5338
|
return e === null || typeof e != "function" && typeof e != "object";
|
|
5172
5339
|
};
|
|
5173
|
-
})),
|
|
5340
|
+
})), Cn = /* @__PURE__ */ t(((e, t) => {
|
|
5174
5341
|
var n = Q(), r = n("Date.prototype.getDay"), i = function(e) {
|
|
5175
5342
|
try {
|
|
5176
5343
|
return r(e), !0;
|
|
5177
5344
|
} catch {
|
|
5178
5345
|
return !1;
|
|
5179
5346
|
}
|
|
5180
|
-
}, a = n("Object.prototype.toString"), o = "[object Date]", s =
|
|
5347
|
+
}, a = n("Object.prototype.toString"), o = "[object Date]", s = Nt()();
|
|
5181
5348
|
t.exports = function(e) {
|
|
5182
5349
|
return typeof e != "object" || !e ? !1 : s ? i(e) : a(e) === o;
|
|
5183
5350
|
};
|
|
5184
|
-
})),
|
|
5185
|
-
var n = Q(), r =
|
|
5351
|
+
})), wn = /* @__PURE__ */ t(((e, t) => {
|
|
5352
|
+
var n = Q(), r = Pt(), i = n("RegExp.prototype.exec"), a = X();
|
|
5186
5353
|
t.exports = function(e) {
|
|
5187
5354
|
if (!r(e)) throw new a("`regex` must be a RegExp");
|
|
5188
5355
|
return function(t) {
|
|
5189
5356
|
return i(e, t) !== null;
|
|
5190
5357
|
};
|
|
5191
5358
|
};
|
|
5192
|
-
})),
|
|
5193
|
-
var n = Q(), r = n("Object.prototype.toString"), i =
|
|
5359
|
+
})), Tn = /* @__PURE__ */ t(((e, t) => {
|
|
5360
|
+
var n = Q(), r = n("Object.prototype.toString"), i = et()(), a = wn();
|
|
5194
5361
|
if (i) {
|
|
5195
5362
|
var o = n("Symbol.prototype.toString"), s = a(/^Symbol\(.*\)$/), c = function(e) {
|
|
5196
5363
|
return typeof e.valueOf() == "symbol" ? s(o(e)) : !1;
|
|
@@ -5207,8 +5374,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5207
5374
|
} else t.exports = function(e) {
|
|
5208
5375
|
return !1;
|
|
5209
5376
|
};
|
|
5210
|
-
})),
|
|
5211
|
-
var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol", r =
|
|
5377
|
+
})), En = /* @__PURE__ */ t(((e, t) => {
|
|
5378
|
+
var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol", r = Sn(), i = At(), a = Cn(), o = Tn(), s = function(e, t) {
|
|
5212
5379
|
if (e == null) throw TypeError("Cannot call method on " + e);
|
|
5213
5380
|
if (typeof t != "string" || t !== "number" && t !== "string") throw TypeError("hint must be \"string\" or \"number\"");
|
|
5214
5381
|
var n = t === "string" ? ["toString", "valueOf"] : ["valueOf", "toString"], a, o, s;
|
|
@@ -5233,29 +5400,29 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5233
5400
|
}
|
|
5234
5401
|
return t === "default" && (a(e) || o(e)) && (t = "string"), s(e, t === "default" ? "number" : t);
|
|
5235
5402
|
};
|
|
5236
|
-
})),
|
|
5237
|
-
var n =
|
|
5403
|
+
})), Dn = /* @__PURE__ */ t(((e, t) => {
|
|
5404
|
+
var n = En();
|
|
5238
5405
|
t.exports = function(e) {
|
|
5239
5406
|
return arguments.length > 1 ? n(e, arguments[1]) : n(e);
|
|
5240
5407
|
};
|
|
5241
|
-
})),
|
|
5242
|
-
var n =
|
|
5408
|
+
})), On = /* @__PURE__ */ t(((e, t) => {
|
|
5409
|
+
var n = Rt(), r = Lt(), i = Q()("String.prototype.replace"), a = /^\s$/.test(""), o = a ? /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/ : /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/, s = a ? /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/ : /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;
|
|
5243
5410
|
t.exports = function() {
|
|
5244
5411
|
return i(i(r(n(this)), o, ""), s, "");
|
|
5245
5412
|
};
|
|
5246
|
-
})),
|
|
5247
|
-
var n =
|
|
5413
|
+
})), kn = /* @__PURE__ */ t(((e, t) => {
|
|
5414
|
+
var n = On(), r = "", i = "";
|
|
5248
5415
|
t.exports = function() {
|
|
5249
5416
|
return String.prototype.trim && r.trim() === r && i.trim() === i && ("_" + i).trim() === "_" + i && (i + "_").trim() === i + "_" ? String.prototype.trim : n;
|
|
5250
5417
|
};
|
|
5251
|
-
})),
|
|
5252
|
-
var n =
|
|
5418
|
+
})), An = /* @__PURE__ */ t(((e, t) => {
|
|
5419
|
+
var n = mt()(), r = pt(), i = kn();
|
|
5253
5420
|
t.exports = function() {
|
|
5254
5421
|
var e = i();
|
|
5255
5422
|
return String.prototype.trim !== e && (n ? r(String.prototype, "trim", e, !0) : r(String.prototype, "trim", e)), e;
|
|
5256
5423
|
};
|
|
5257
|
-
})),
|
|
5258
|
-
var n =
|
|
5424
|
+
})), jn = /* @__PURE__ */ t(((e, t) => {
|
|
5425
|
+
var n = _t(), r = xt(), i = Rt(), a = On(), o = kn(), s = An(), c = n(o()), l = function(e) {
|
|
5259
5426
|
return i(e), c(e);
|
|
5260
5427
|
};
|
|
5261
5428
|
r(l, {
|
|
@@ -5263,12 +5430,12 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5263
5430
|
implementation: a,
|
|
5264
5431
|
shim: s
|
|
5265
5432
|
}), t.exports = l;
|
|
5266
|
-
})),
|
|
5267
|
-
var n = Z(), r = n("%RegExp%"), i = X(), a = n("%parseInt%"), o = Q(), s =
|
|
5433
|
+
})), Mn = /* @__PURE__ */ t(((e, t) => {
|
|
5434
|
+
var n = Z(), r = n("%RegExp%"), i = X(), a = n("%parseInt%"), o = Q(), s = wn(), c = o("String.prototype.slice"), l = s(/^0b[01]+$/i), u = s(/^0o[0-7]+$/i), d = s(/^[-+]0x[0-9a-f]+$/i), f = s(new r("[" + [
|
|
5268
5435
|
"
",
|
|
5269
5436
|
"",
|
|
5270
5437
|
""
|
|
5271
|
-
].join("") + "]", "g")), p =
|
|
5438
|
+
].join("") + "]", "g")), p = jn();
|
|
5272
5439
|
t.exports = function e(t) {
|
|
5273
5440
|
if (typeof t != "string") throw new i("Assertion failed: `argument` is not a String");
|
|
5274
5441
|
if (l(t)) return +a(c(t, 2), 2);
|
|
@@ -5277,40 +5444,40 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5277
5444
|
var n = p(t);
|
|
5278
5445
|
return n === t ? +t : e(n);
|
|
5279
5446
|
};
|
|
5280
|
-
})),
|
|
5281
|
-
var n = Z(), r = X(), i = n("%Number%"), a =
|
|
5447
|
+
})), Nn = /* @__PURE__ */ t(((e, t) => {
|
|
5448
|
+
var n = Z(), r = X(), i = n("%Number%"), a = ln(), o = Dn(), s = Mn();
|
|
5282
5449
|
t.exports = function(e) {
|
|
5283
5450
|
var t = a(e) ? e : o(e, i);
|
|
5284
5451
|
if (typeof t == "symbol") throw new r("Cannot convert a Symbol value to a number");
|
|
5285
5452
|
if (typeof t == "bigint") throw new r("Conversion from 'BigInt' to 'number' is not allowed.");
|
|
5286
5453
|
return typeof t == "string" ? s(t) : +t;
|
|
5287
5454
|
};
|
|
5288
|
-
})),
|
|
5289
|
-
var n =
|
|
5455
|
+
})), Pn = /* @__PURE__ */ t(((e, t) => {
|
|
5456
|
+
var n = Ue();
|
|
5290
5457
|
t.exports = function(e) {
|
|
5291
5458
|
return typeof e == "bigint" ? e : n(e);
|
|
5292
5459
|
};
|
|
5293
|
-
})),
|
|
5294
|
-
var n =
|
|
5460
|
+
})), Fn = /* @__PURE__ */ t(((e, t) => {
|
|
5461
|
+
var n = Pn(), r = X();
|
|
5295
5462
|
t.exports = function(e) {
|
|
5296
5463
|
if (typeof e != "number" && typeof e != "bigint") throw new r("argument must be a Number or a BigInt");
|
|
5297
5464
|
var t = e < 0 ? -n(-e) : n(e);
|
|
5298
5465
|
return t === 0 ? 0 : t;
|
|
5299
5466
|
};
|
|
5300
|
-
})),
|
|
5301
|
-
var n =
|
|
5467
|
+
})), In = /* @__PURE__ */ t(((e, t) => {
|
|
5468
|
+
var n = Nn(), r = Fn(), i = Je(), a = Yt();
|
|
5302
5469
|
t.exports = function(e) {
|
|
5303
5470
|
var t = n(e);
|
|
5304
5471
|
return i(t) || t === 0 ? 0 : a(t) ? r(t) : t;
|
|
5305
5472
|
};
|
|
5306
|
-
})),
|
|
5307
|
-
var n =
|
|
5473
|
+
})), Ln = /* @__PURE__ */ t(((e, t) => {
|
|
5474
|
+
var n = Zt(), r = In();
|
|
5308
5475
|
t.exports = function(e) {
|
|
5309
5476
|
var t = r(e);
|
|
5310
5477
|
return t <= 0 ? 0 : t > n ? n : t;
|
|
5311
5478
|
};
|
|
5312
|
-
})),
|
|
5313
|
-
var n = Z()("%Object.defineProperty%", !0), r =
|
|
5479
|
+
})), Rn = /* @__PURE__ */ t(((e, t) => {
|
|
5480
|
+
var n = Z()("%Object.defineProperty%", !0), r = Nt()(), i = ft(), a = X(), o = r ? Symbol.toStringTag : null;
|
|
5314
5481
|
t.exports = function(e, t) {
|
|
5315
5482
|
var r = arguments.length > 2 && !!arguments[2] && arguments[2].force, s = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
5316
5483
|
if (r !== void 0 && typeof r != "boolean" || s !== void 0 && typeof s != "boolean") throw new a("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
@@ -5321,8 +5488,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5321
5488
|
writable: !1
|
|
5322
5489
|
}) : e[o] = t);
|
|
5323
5490
|
};
|
|
5324
|
-
})),
|
|
5325
|
-
var n = Z(), r =
|
|
5491
|
+
})), zn = /* @__PURE__ */ t(((e, t) => {
|
|
5492
|
+
var n = Z(), r = et()(), i = X(), a = $(), o = n("%IteratorPrototype%", !0), s = Qt(), c = $t(), l = dn(), u = Ot(), d = yn(), f = bn(), p = xn(), m = Ln(), h = Lt(), g = _n(), _ = Rn(), v = function(e, t, n, r) {
|
|
5326
5493
|
if (typeof t != "string") throw new i("`S` must be a string");
|
|
5327
5494
|
if (typeof n != "boolean") throw new i("`global` must be a boolean");
|
|
5328
5495
|
if (typeof r != "boolean") throw new i("`fullUnicode` must be a boolean");
|
|
@@ -5340,10 +5507,10 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5340
5507
|
}, !1)), t.exports = function(e, t, n, r) {
|
|
5341
5508
|
return new v(e, t, n, r);
|
|
5342
5509
|
};
|
|
5343
|
-
})), zn = /* @__PURE__ */ t(((e, t) => {
|
|
5344
|
-
t.exports = Z();
|
|
5345
5510
|
})), Bn = /* @__PURE__ */ t(((e, t) => {
|
|
5346
|
-
|
|
5511
|
+
t.exports = Z();
|
|
5512
|
+
})), Vn = /* @__PURE__ */ t(((e, t) => {
|
|
5513
|
+
var n = Bn()("%Reflect.construct%", !0), r = cn();
|
|
5347
5514
|
try {
|
|
5348
5515
|
r({}, "", { "[[Get]]": function() {} });
|
|
5349
5516
|
} catch {
|
|
@@ -5366,8 +5533,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5366
5533
|
} else t.exports = function(e) {
|
|
5367
5534
|
return typeof e == "function" && !!e.prototype;
|
|
5368
5535
|
};
|
|
5369
|
-
})),
|
|
5370
|
-
var n = Z()("%Symbol.species%", !0), r = X(), i = $(), a =
|
|
5536
|
+
})), Hn = /* @__PURE__ */ t(((e, t) => {
|
|
5537
|
+
var n = Z()("%Symbol.species%", !0), r = X(), i = $(), a = Vn();
|
|
5371
5538
|
t.exports = function(e, t) {
|
|
5372
5539
|
if (!i(e)) throw new r("Assertion failed: Type(O) is not Object");
|
|
5373
5540
|
var o = e.constructor;
|
|
@@ -5378,7 +5545,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5378
5545
|
if (a(s)) return s;
|
|
5379
5546
|
throw new r("no constructor found");
|
|
5380
5547
|
};
|
|
5381
|
-
})),
|
|
5548
|
+
})), Un = /* @__PURE__ */ t(((e, t) => {
|
|
5382
5549
|
var n = $();
|
|
5383
5550
|
t.exports = function(e) {
|
|
5384
5551
|
if (e === null) return "Null";
|
|
@@ -5388,13 +5555,13 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5388
5555
|
if (typeof e == "boolean") return "Boolean";
|
|
5389
5556
|
if (typeof e == "string") return "String";
|
|
5390
5557
|
};
|
|
5391
|
-
})),
|
|
5392
|
-
var n =
|
|
5558
|
+
})), Wn = /* @__PURE__ */ t(((e, t) => {
|
|
5559
|
+
var n = Un();
|
|
5393
5560
|
t.exports = function(e) {
|
|
5394
5561
|
return typeof e == "symbol" ? "Symbol" : typeof e == "bigint" ? "BigInt" : n(e);
|
|
5395
5562
|
};
|
|
5396
|
-
})),
|
|
5397
|
-
var n =
|
|
5563
|
+
})), Gn = /* @__PURE__ */ t(((e, t) => {
|
|
5564
|
+
var n = zn(), r = Ot(), i = xn(), a = Hn(), o = Ln(), s = Lt(), c = Wn(), l = Wt(), u = Bt(), d = Q(), f = Z(), p = X(), m = d("String.prototype.indexOf"), h = f("%RegExp%"), g = "flags" in h.prototype, _ = function(e, t) {
|
|
5398
5565
|
var n, i = "flags" in t ? r(t, "flags") : s(l(t));
|
|
5399
5566
|
return n = g && typeof i == "string" ? new e(t, i) : e === h ? new e(t.source, i) : new e(t, i), {
|
|
5400
5567
|
flags: i,
|
|
@@ -5407,13 +5574,13 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5407
5574
|
var l = s(e), u = _(a(t, h), t), d = u.flags, f = u.matcher;
|
|
5408
5575
|
return i(f, "lastIndex", o(r(t, "lastIndex")), !0), n(f, l, m(d, "g") > -1, m(d, "u") > -1);
|
|
5409
5576
|
}, "[Symbol.matchAll]", !0);
|
|
5410
|
-
})),
|
|
5411
|
-
var n =
|
|
5577
|
+
})), Kn = /* @__PURE__ */ t(((e, t) => {
|
|
5578
|
+
var n = et()(), r = Gn();
|
|
5412
5579
|
t.exports = function() {
|
|
5413
5580
|
return !n || typeof Symbol.matchAll != "symbol" || typeof RegExp.prototype[Symbol.matchAll] != "function" ? r : RegExp.prototype[Symbol.matchAll];
|
|
5414
5581
|
};
|
|
5415
|
-
})),
|
|
5416
|
-
var n =
|
|
5582
|
+
})), qn = /* @__PURE__ */ t(((e, t) => {
|
|
5583
|
+
var n = wt(), r = Ot(), i = Mt(), a = It(), o = Lt(), s = Rt(), c = Q(), l = et()(), u = Wt(), d = Z(), f = X(), p = d("%RegExp%"), m = c("String.prototype.indexOf"), h = Kn(), g = function(e) {
|
|
5417
5584
|
var t = h();
|
|
5418
5585
|
if (l && typeof Symbol.matchAll == "symbol") {
|
|
5419
5586
|
var n = i(e, Symbol.matchAll);
|
|
@@ -5434,8 +5601,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5434
5601
|
var l = o(t), d = new p(e, "g");
|
|
5435
5602
|
return n(g(d), d, [l]);
|
|
5436
5603
|
};
|
|
5437
|
-
})),
|
|
5438
|
-
var n =
|
|
5604
|
+
})), Jn = /* @__PURE__ */ t(((e, t) => {
|
|
5605
|
+
var n = qn();
|
|
5439
5606
|
t.exports = function() {
|
|
5440
5607
|
if (String.prototype.matchAll) try {
|
|
5441
5608
|
"".matchAll(RegExp.prototype);
|
|
@@ -5444,8 +5611,8 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5444
5611
|
}
|
|
5445
5612
|
return n;
|
|
5446
5613
|
};
|
|
5447
|
-
})),
|
|
5448
|
-
var n =
|
|
5614
|
+
})), Yn = /* @__PURE__ */ t(((e, t) => {
|
|
5615
|
+
var n = xt(), r = et()(), i = Ze(), a = Jn(), o = Kn(), s = Object.defineProperty;
|
|
5449
5616
|
t.exports = function() {
|
|
5450
5617
|
var e = a();
|
|
5451
5618
|
if (n(String.prototype, { matchAll: e }, { matchAll: function() {
|
|
@@ -5472,29 +5639,29 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5472
5639
|
}
|
|
5473
5640
|
return e;
|
|
5474
5641
|
};
|
|
5475
|
-
})),
|
|
5476
|
-
var n =
|
|
5642
|
+
})), Xn = /* @__PURE__ */ t(((e, t) => {
|
|
5643
|
+
var n = _t(), r = xt(), i = qn(), a = Jn(), o = Yn(), s = n(i);
|
|
5477
5644
|
r(s, {
|
|
5478
5645
|
getPolyfill: a,
|
|
5479
5646
|
implementation: i,
|
|
5480
5647
|
shim: o
|
|
5481
5648
|
}), t.exports = s;
|
|
5482
|
-
})),
|
|
5649
|
+
})), Zn = /* @__PURE__ */ t(((e, t) => {
|
|
5483
5650
|
r();
|
|
5484
|
-
var
|
|
5651
|
+
var a = k(), o = P(), s = F(), c = K(), l = N(), u = _e(), d = Pe(), f = A(), p = i(), m = /\${?([\w\d]+)}?/g, h = f.EventEmitter || f.default || f;
|
|
5485
5652
|
String.prototype.regexIndexOf = function(e, t) {
|
|
5486
5653
|
let n = this.substring(t || 0).search(e);
|
|
5487
5654
|
return n >= 0 ? n + (t || 0) : n;
|
|
5488
|
-
},
|
|
5489
|
-
var
|
|
5655
|
+
}, Xn().shim();
|
|
5656
|
+
var g = class e extends h {
|
|
5490
5657
|
constructor(t) {
|
|
5491
5658
|
super();
|
|
5492
|
-
let { path: n = "/bin", profile: r, hostname:
|
|
5493
|
-
this.context = new
|
|
5659
|
+
let { path: n = "/bin", profile: r, hostname: i = "browser", filesystem: o = {}, permissions: s = {}, cwd: c = "/", onFsChange: l, useRealFilesystem: u = !1 } = t;
|
|
5660
|
+
this.context = new a(Object.assign({}, t, {
|
|
5494
5661
|
clearFn: this.clear.bind(this),
|
|
5495
5662
|
destroyFn: this.destroy.bind(this),
|
|
5496
5663
|
onFsChange: typeof l == "function" ? l : null
|
|
5497
|
-
})), this.context.setVar("PATH", n), this.context.setVar("HOST",
|
|
5664
|
+
})), this.context.setVar("PATH", n), this.context.setVar("HOST", i), u ? this.context.setNodeFilesystem(c) : this.context.setFilesystem(o, s), this.context.setCwd(c), this._loadDefaultCommands(), this._loadBuiltinCommands(), this._lastCode = 0, r ? this._loadProfile(r) : setTimeout(() => this.emit("status", e.STATUS_READY), 0);
|
|
5498
5665
|
}
|
|
5499
5666
|
get path() {
|
|
5500
5667
|
return this.context.getVar("PATH");
|
|
@@ -5512,12 +5679,12 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5512
5679
|
if (this.runningCommand && this.runningCommand.onInput && this.runningCommand.captureInput) return this.runningCommand.onInput(e), !0;
|
|
5513
5680
|
}
|
|
5514
5681
|
_loadDefaultCommands() {
|
|
5515
|
-
|
|
5682
|
+
d.forEach((e) => {
|
|
5516
5683
|
this.context.setCommand(e);
|
|
5517
5684
|
});
|
|
5518
5685
|
}
|
|
5519
5686
|
_loadBuiltinCommands() {
|
|
5520
|
-
|
|
5687
|
+
u.forEach((e) => {
|
|
5521
5688
|
this.context.setCommand(e);
|
|
5522
5689
|
});
|
|
5523
5690
|
}
|
|
@@ -5552,26 +5719,46 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5552
5719
|
return;
|
|
5553
5720
|
}
|
|
5554
5721
|
if (!n.length) return;
|
|
5555
|
-
let r = n.shift(), i =
|
|
5556
|
-
|
|
5557
|
-
|
|
5722
|
+
let r = n.shift().value, i = null, a = !1, c = [];
|
|
5723
|
+
for (let e = 0; e < n.length; e++) {
|
|
5724
|
+
let { value: t, hasQuote: r } = n[e];
|
|
5725
|
+
!r && (t === ">>" || t === ">") && e + 1 < n.length ? (a = t === ">>", i = n[++e].value) : !r && t.startsWith(">>") && t.length > 2 ? (a = !0, i = t.slice(2)) : !r && t.startsWith(">") && t.length > 1 ? (a = !1, i = t.slice(1)) : c.push(t);
|
|
5726
|
+
}
|
|
5727
|
+
n = c;
|
|
5728
|
+
let l = this.context.getAlias(r);
|
|
5729
|
+
if (l) return this.onCommand(l, !1);
|
|
5730
|
+
let u;
|
|
5558
5731
|
try {
|
|
5559
|
-
|
|
5732
|
+
u = this._parseCommand(r.startsWith("/") || r.startsWith("./") ? r : r.toLowerCase());
|
|
5560
5733
|
} catch (e) {
|
|
5561
5734
|
this.emit("stdErr", e.message), this.lastCode = 1, this.emit("exitCode", this.lastCode);
|
|
5562
5735
|
return;
|
|
5563
5736
|
}
|
|
5564
|
-
let
|
|
5565
|
-
if (
|
|
5566
|
-
else if (
|
|
5737
|
+
let d = (e) => typeof e == "function" && typeof e.prototype.run == "function" && typeof e.prototype.runCommand == "function", f;
|
|
5738
|
+
if (u.prototype instanceof o || new u() instanceof s) f = new u(n, this.context);
|
|
5739
|
+
else if (d(u)) f = new u(n);
|
|
5567
5740
|
else {
|
|
5568
5741
|
this.emit("stdErr", `${r}: Command not found`), this.lastCode = 1, this.emit("exitCode", this.lastCode);
|
|
5569
5742
|
return;
|
|
5570
5743
|
}
|
|
5571
|
-
return
|
|
5744
|
+
return f.requiresFilesystem && (f.fs = this.context.fs.sandbox()), this._stdin !== void 0 && (f.stdin = this._stdin), this.runningCommand = f, this.runningCommand.on && this.runningCommand.on("flush", (e) => {
|
|
5572
5745
|
this._emitOutput(e);
|
|
5573
|
-
}),
|
|
5574
|
-
|
|
5746
|
+
}), f.runCommand().then((e) => {
|
|
5747
|
+
let t = e.getStdOutput();
|
|
5748
|
+
if (i) {
|
|
5749
|
+
let e = this.context.fs.absolutePath(i), n = t.filter((e) => e.type === "out").map((e) => e.string), r = a ? (() => {
|
|
5750
|
+
let t = this.context.fs._getFileRaw(e);
|
|
5751
|
+
return typeof t == "string" ? t + "\n" + n.join("\n") : n.join("\n");
|
|
5752
|
+
})() : n.join("\n");
|
|
5753
|
+
try {
|
|
5754
|
+
this.context.fs.setFileByPath(e, r, !0);
|
|
5755
|
+
} catch {
|
|
5756
|
+
this.emit("stdErr", `${i}: Permission denied`), this.lastCode = 1, this.emit("exitCode", this.lastCode), delete this.runningCommand;
|
|
5757
|
+
return;
|
|
5758
|
+
}
|
|
5759
|
+
this._emitOutput(t.filter((e) => e.type === "err"));
|
|
5760
|
+
} else this._emitOutput(t);
|
|
5761
|
+
this.lastCode = e.getExitCode(), this.emit("exitCode", this.lastCode), delete this.runningCommand;
|
|
5575
5762
|
});
|
|
5576
5763
|
}
|
|
5577
5764
|
_emitOutput(e) {
|
|
@@ -5637,7 +5824,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5637
5824
|
}
|
|
5638
5825
|
_parseCommand(e) {
|
|
5639
5826
|
if (e.startsWith("./") || e.startsWith("/")) {
|
|
5640
|
-
let t = this.context.fs.
|
|
5827
|
+
let t = this.context.fs._getFileRaw(e);
|
|
5641
5828
|
if (!t) throw Error(`${e}: No such file or directory`);
|
|
5642
5829
|
if (t.constructor === Object) throw Error(`${e}: is a directory`);
|
|
5643
5830
|
if (t.prototype && typeof t.prototype.run == "function" && typeof t.prototype.runCommand == "function") {
|
|
@@ -5646,11 +5833,11 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5646
5833
|
}
|
|
5647
5834
|
if (t.constructor === String && t.startsWith("#!")) {
|
|
5648
5835
|
if (!this.context.fs.isExecutable(e)) throw Error(`${e}: permission denied`);
|
|
5649
|
-
return
|
|
5836
|
+
return s.bind(this, t);
|
|
5650
5837
|
}
|
|
5651
5838
|
if (this._isWasmFile(e, t)) {
|
|
5652
5839
|
if (!this.context.fs.isExecutable(e)) throw Error(`${e}: permission denied`);
|
|
5653
|
-
return
|
|
5840
|
+
return c.bind(null, e);
|
|
5654
5841
|
}
|
|
5655
5842
|
throw Error(`${e}: permission denied`);
|
|
5656
5843
|
}
|
|
@@ -5663,7 +5850,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5663
5850
|
return (await Promise.all(n.map(({ value: e, hasQuote: t }) => this._replaceVariables(e).then((e) => ({
|
|
5664
5851
|
value: e,
|
|
5665
5852
|
hasQuote: t
|
|
5666
|
-
}))))).filter(({ value: e, hasQuote: t }) => e.length > 0 || t)
|
|
5853
|
+
}))))).filter(({ value: e, hasQuote: t }) => e.length > 0 || t);
|
|
5667
5854
|
}
|
|
5668
5855
|
static _sanitiseCommandPart(e) {
|
|
5669
5856
|
return e.startsWith("\"") && e.endsWith("\"") || e.startsWith("'") && e.endsWith("'") ? e.substring(1, e.length - 1) : e;
|
|
@@ -5679,7 +5866,7 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5679
5866
|
let n = await this._runAndCapture(e[1]);
|
|
5680
5867
|
t = t.replace(e[0], n);
|
|
5681
5868
|
}
|
|
5682
|
-
let i = t.matchAll(
|
|
5869
|
+
let i = t.matchAll(m), a = i.next();
|
|
5683
5870
|
for (; !a.done;) {
|
|
5684
5871
|
let n = this.context.getVar(a.value[1]);
|
|
5685
5872
|
t = t.replace(new RegExp(e._escapeRegExp(a.value[0]), "g"), String(n)), a = i.next();
|
|
@@ -5749,9 +5936,9 @@ var V, H, U, W, te, ne, G, re, ie, ae, oe = e((() => {
|
|
|
5749
5936
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
5750
5937
|
}
|
|
5751
5938
|
};
|
|
5752
|
-
|
|
5939
|
+
g.STATUS_READY = "READY", g.STATUS_WORKING = "WORKING", g.STATUS_DESTROYED = "DESTROYED", g.Command = l, g.FS = p, n.shell = g, t.exports = g;
|
|
5753
5940
|
}));
|
|
5754
5941
|
//#endregion
|
|
5755
|
-
export default
|
|
5942
|
+
export default Zn();
|
|
5756
5943
|
|
|
5757
5944
|
//# sourceMappingURL=shell.es.js.map
|