create-expo 3.6.17 → 3.6.18
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/build/303.index.js +15 -2
- package/build/691.index.js +421 -324
- package/build/index.js +1 -1
- package/package.json +5 -4
package/build/303.index.js
CHANGED
|
@@ -424,8 +424,9 @@ async function npmPackAsync(packageName, cwd = undefined, ...props) {
|
|
|
424
424
|
}
|
|
425
425
|
try {
|
|
426
426
|
const json = JSON.parse(results);
|
|
427
|
-
|
|
428
|
-
|
|
427
|
+
const packages = normalizeNpmPackResult(json);
|
|
428
|
+
if (packages?.every(isNpmPackageInfo)) {
|
|
429
|
+
return packages.map(sanitizeNpmPackageFilename);
|
|
429
430
|
}
|
|
430
431
|
else {
|
|
431
432
|
throw new Error(`Invalid response from npm: ${results}`);
|
|
@@ -435,6 +436,18 @@ async function npmPackAsync(packageName, cwd = undefined, ...props) {
|
|
|
435
436
|
throw new Error(`Could not parse JSON returned from "${cmdString}".\n\n${results}\n\nError: ${error.message}`);
|
|
436
437
|
}
|
|
437
438
|
}
|
|
439
|
+
/** Normalize the npm pack JSON formats used before and after npm 12 */
|
|
440
|
+
function normalizeNpmPackResult(result) {
|
|
441
|
+
if (Array.isArray(result)) {
|
|
442
|
+
return result;
|
|
443
|
+
}
|
|
444
|
+
else if (result && typeof result === 'object') {
|
|
445
|
+
return Object.values(result);
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
return null;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
438
451
|
function getNpmBin() {
|
|
439
452
|
return process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
440
453
|
}
|
package/build/691.index.js
CHANGED
|
@@ -19419,7 +19419,7 @@ glob.glob = glob;
|
|
|
19419
19419
|
|
|
19420
19420
|
"use strict";
|
|
19421
19421
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19422
|
-
/* harmony export */ Aq: () => (/* binding */
|
|
19422
|
+
/* harmony export */ Aq: () => (/* binding */ p),
|
|
19423
19423
|
/* harmony export */ PJ: () => (/* binding */ untar),
|
|
19424
19424
|
/* harmony export */ WT: () => (/* binding */ streamToAsyncIterable)
|
|
19425
19425
|
/* harmony export */ });
|
|
@@ -19432,15 +19432,18 @@ function createReadableStream(t) {
|
|
|
19432
19432
|
const {pull: n, cancel: i} = t;
|
|
19433
19433
|
if (n && i) {
|
|
19434
19434
|
let e;
|
|
19435
|
+
let a;
|
|
19435
19436
|
t.pull = function wrappedPull(t) {
|
|
19436
19437
|
return e = n(t);
|
|
19437
19438
|
};
|
|
19438
19439
|
t.cancel = function wrappedCancel() {
|
|
19439
|
-
if (null !=
|
|
19440
|
+
if (null != a) {
|
|
19441
|
+
return a;
|
|
19442
|
+
} else if (null != e) {
|
|
19440
19443
|
const settle = () => i();
|
|
19441
|
-
return Promise.resolve(e).then(settle, settle);
|
|
19444
|
+
return a = Promise.resolve(e).then(settle, settle);
|
|
19442
19445
|
}
|
|
19443
|
-
return i();
|
|
19446
|
+
return a = Promise.resolve(i());
|
|
19444
19447
|
};
|
|
19445
19448
|
}
|
|
19446
19449
|
const a = new ReadableStream(t, e);
|
|
@@ -19457,12 +19460,24 @@ function streamToAsyncIterable(e) {
|
|
|
19457
19460
|
if (!e[Symbol.asyncIterator]) {
|
|
19458
19461
|
return async function*() {
|
|
19459
19462
|
const t = e.getReader();
|
|
19460
|
-
|
|
19461
|
-
|
|
19462
|
-
|
|
19463
|
-
|
|
19463
|
+
let n = !1;
|
|
19464
|
+
try {
|
|
19465
|
+
while (1) {
|
|
19466
|
+
const e = await t.read();
|
|
19467
|
+
if (e.done) {
|
|
19468
|
+
n = !0;
|
|
19469
|
+
return e.value;
|
|
19470
|
+
}
|
|
19471
|
+
yield e.value;
|
|
19472
|
+
}
|
|
19473
|
+
} finally {
|
|
19474
|
+
try {
|
|
19475
|
+
if (!n) {
|
|
19476
|
+
await t.cancel();
|
|
19477
|
+
}
|
|
19478
|
+
} finally {
|
|
19479
|
+
t.releaseLock();
|
|
19464
19480
|
}
|
|
19465
|
-
yield e.value;
|
|
19466
19481
|
}
|
|
19467
19482
|
}();
|
|
19468
19483
|
} else {
|
|
@@ -19470,20 +19485,75 @@ function streamToAsyncIterable(e) {
|
|
|
19470
19485
|
}
|
|
19471
19486
|
}
|
|
19472
19487
|
|
|
19473
|
-
function
|
|
19474
|
-
if (
|
|
19475
|
-
|
|
19476
|
-
return async function read() {
|
|
19477
|
-
return await t.read();
|
|
19478
|
-
};
|
|
19488
|
+
async function* streamToSizedAsyncIterable(e, t, n) {
|
|
19489
|
+
if (null == t) {
|
|
19490
|
+
yield* streamToAsyncIterable(e);
|
|
19479
19491
|
} else {
|
|
19480
|
-
const
|
|
19481
|
-
|
|
19482
|
-
|
|
19483
|
-
|
|
19492
|
+
const i = e.getReader();
|
|
19493
|
+
let a = t;
|
|
19494
|
+
let r = !1;
|
|
19495
|
+
try {
|
|
19496
|
+
while (1) {
|
|
19497
|
+
const e = await i.read();
|
|
19498
|
+
if (e.done) {
|
|
19499
|
+
r = !0;
|
|
19500
|
+
break;
|
|
19501
|
+
}
|
|
19502
|
+
a -= e.value.byteLength;
|
|
19503
|
+
if (a < 0) {
|
|
19504
|
+
throw new Error(`${n} body exceeds declared size`);
|
|
19505
|
+
}
|
|
19506
|
+
yield e.value;
|
|
19507
|
+
}
|
|
19508
|
+
if (a > 0) {
|
|
19509
|
+
throw new Error(`${n} body is shorter than declared size`);
|
|
19510
|
+
}
|
|
19511
|
+
} finally {
|
|
19512
|
+
try {
|
|
19513
|
+
if (!r) {
|
|
19514
|
+
await i.cancel();
|
|
19515
|
+
}
|
|
19516
|
+
} finally {
|
|
19517
|
+
i.releaseLock();
|
|
19518
|
+
}
|
|
19519
|
+
}
|
|
19484
19520
|
}
|
|
19485
19521
|
}
|
|
19486
19522
|
|
|
19523
|
+
function streamLikeToIterator(e) {
|
|
19524
|
+
const t = "getReader" in e && "function" == typeof e.getReader ? streamToAsyncIterable(e) : e;
|
|
19525
|
+
const n = t[Symbol.asyncIterator] ? t[Symbol.asyncIterator]() : t[Symbol.iterator]();
|
|
19526
|
+
let i = !1;
|
|
19527
|
+
const a = {
|
|
19528
|
+
[Symbol.asyncIterator]: () => a,
|
|
19529
|
+
async next() {
|
|
19530
|
+
if (i) {
|
|
19531
|
+
return {
|
|
19532
|
+
done: !0,
|
|
19533
|
+
value: void 0
|
|
19534
|
+
};
|
|
19535
|
+
}
|
|
19536
|
+
const e = await n.next();
|
|
19537
|
+
i = !!e.done;
|
|
19538
|
+
return e.done ? {
|
|
19539
|
+
done: !0,
|
|
19540
|
+
value: void 0
|
|
19541
|
+
} : e;
|
|
19542
|
+
},
|
|
19543
|
+
async return() {
|
|
19544
|
+
if (!i) {
|
|
19545
|
+
i = !0;
|
|
19546
|
+
await (n.return?.());
|
|
19547
|
+
}
|
|
19548
|
+
return {
|
|
19549
|
+
done: !0,
|
|
19550
|
+
value: void 0
|
|
19551
|
+
};
|
|
19552
|
+
}
|
|
19553
|
+
};
|
|
19554
|
+
return a;
|
|
19555
|
+
}
|
|
19556
|
+
|
|
19487
19557
|
function iterableToStream(e, t) {
|
|
19488
19558
|
const n = t?.signal;
|
|
19489
19559
|
const i = new AbortController;
|
|
@@ -19629,6 +19699,9 @@ class ReadableStreamBlockReader {
|
|
|
19629
19699
|
this.block = new Uint8Array(t);
|
|
19630
19700
|
this.buffer = null;
|
|
19631
19701
|
}
|
|
19702
|
+
async close() {
|
|
19703
|
+
await this.next.return();
|
|
19704
|
+
}
|
|
19632
19705
|
async read() {
|
|
19633
19706
|
const {blockSize: e, block: t} = this;
|
|
19634
19707
|
let n = 0;
|
|
@@ -19650,7 +19723,7 @@ class ReadableStreamBlockReader {
|
|
|
19650
19723
|
}
|
|
19651
19724
|
}
|
|
19652
19725
|
while ((i = e - n) > 0) {
|
|
19653
|
-
const {done: e, value: a} = await this.next();
|
|
19726
|
+
const {done: e, value: a} = await this.next.next();
|
|
19654
19727
|
if (e || !a?.byteLength) {
|
|
19655
19728
|
break;
|
|
19656
19729
|
} else if (a.byteLength > i) {
|
|
@@ -19688,7 +19761,7 @@ class ReadableStreamBlockReader {
|
|
|
19688
19761
|
}
|
|
19689
19762
|
}
|
|
19690
19763
|
this.blockLocked = !1;
|
|
19691
|
-
const {done: i, value: a} = await this.next();
|
|
19764
|
+
const {done: i, value: a} = await this.next.next();
|
|
19692
19765
|
if (i) {
|
|
19693
19766
|
return null;
|
|
19694
19767
|
} else if (a.byteLength > e) {
|
|
@@ -19718,7 +19791,7 @@ class ReadableStreamBlockReader {
|
|
|
19718
19791
|
}
|
|
19719
19792
|
}
|
|
19720
19793
|
while (t > 0) {
|
|
19721
|
-
const {done: e, value: n} = await this.next();
|
|
19794
|
+
const {done: e, value: n} = await this.next.next();
|
|
19722
19795
|
if (e) {
|
|
19723
19796
|
return t;
|
|
19724
19797
|
} else if (n.byteLength > t) {
|
|
@@ -19948,29 +20021,34 @@ async function expectTrailer(e, t) {
|
|
|
19948
20021
|
async function decodeHeaders(e) {
|
|
19949
20022
|
let t = 0;
|
|
19950
20023
|
const n = Object.create(null);
|
|
19951
|
-
while (t
|
|
20024
|
+
while (t <= 32e3) {
|
|
19952
20025
|
let i = "";
|
|
20026
|
+
let a = 0;
|
|
19953
20027
|
for await (const n of readUntilBoundary(e, s, l)) {
|
|
19954
20028
|
if (null == n) {
|
|
19955
20029
|
throw new Error("Invalid Multipart Headers: Unexpected EOF");
|
|
19956
20030
|
} else if (!t && !i && 45 === n[0] && 45 === n[1]) {
|
|
19957
20031
|
return null;
|
|
19958
20032
|
} else {
|
|
19959
|
-
|
|
19960
|
-
if (
|
|
20033
|
+
a += n.byteLength;
|
|
20034
|
+
if (a > 16e3) {
|
|
19961
20035
|
throw new Error("Invalid Multipart Headers: A header exceeded its maximum length of 16kB");
|
|
19962
20036
|
}
|
|
20037
|
+
i += d.decode(n, {
|
|
20038
|
+
stream: !0
|
|
20039
|
+
});
|
|
19963
20040
|
}
|
|
19964
20041
|
}
|
|
20042
|
+
i += d.decode();
|
|
19965
20043
|
if (i) {
|
|
19966
20044
|
const e = i.indexOf(":");
|
|
19967
20045
|
if (e > -1) {
|
|
19968
|
-
const
|
|
19969
|
-
const
|
|
19970
|
-
if (
|
|
19971
|
-
n[
|
|
20046
|
+
const r = i.slice(0, e).trim().toLowerCase();
|
|
20047
|
+
const o = i.slice(e + 1).trim();
|
|
20048
|
+
if (o) {
|
|
20049
|
+
n[r] = o;
|
|
19972
20050
|
}
|
|
19973
|
-
t +=
|
|
20051
|
+
t += a + s.byteLength;
|
|
19974
20052
|
} else {
|
|
19975
20053
|
throw new Error("Invalid Multipart Headers: Invalid header value missing `:`");
|
|
19976
20054
|
}
|
|
@@ -19978,113 +20056,119 @@ async function decodeHeaders(e) {
|
|
|
19978
20056
|
break;
|
|
19979
20057
|
}
|
|
19980
20058
|
}
|
|
19981
|
-
if (t >
|
|
20059
|
+
if (t > 32e3) {
|
|
19982
20060
|
throw new Error("Invalid Multipart Headers: Headers exceeded their maximum length of 32kB");
|
|
19983
20061
|
}
|
|
19984
20062
|
return n;
|
|
19985
20063
|
}
|
|
19986
20064
|
|
|
19987
20065
|
async function* parseMultipart(e, t) {
|
|
19988
|
-
const n =
|
|
19989
|
-
|
|
19990
|
-
|
|
19991
|
-
|
|
19992
|
-
|
|
19993
|
-
|
|
19994
|
-
|
|
19995
|
-
|
|
19996
|
-
|
|
19997
|
-
|
|
19998
|
-
|
|
19999
|
-
|
|
20000
|
-
|
|
20001
|
-
|
|
20002
|
-
|
|
20003
|
-
|
|
20004
|
-
|
|
20005
|
-
|
|
20006
|
-
|
|
20007
|
-
|
|
20008
|
-
|
|
20009
|
-
|
|
20010
|
-
|
|
20011
|
-
}(i, n);
|
|
20012
|
-
let a;
|
|
20013
|
-
while (a = await decodeHeaders(i)) {
|
|
20014
|
-
const e = a["content-type"];
|
|
20015
|
-
const t = parseContentDisposition(a["content-disposition"]);
|
|
20016
|
-
const r = t?.filename || t?.name;
|
|
20017
|
-
const o = parseContentLength(a["content-length"]);
|
|
20018
|
-
if (!r) {
|
|
20019
|
-
throw new Error("Invalid Multipart Part: Missing Content-Disposition name or filename parameter");
|
|
20020
|
-
}
|
|
20021
|
-
let s = !1;
|
|
20022
|
-
let l = 0;
|
|
20023
|
-
let c;
|
|
20024
|
-
if (null !== o) {
|
|
20025
|
-
l = o;
|
|
20026
|
-
c = createReadableStream({
|
|
20027
|
-
expectedLength: o,
|
|
20028
|
-
async cancel() {
|
|
20029
|
-
if (l > 0) {
|
|
20030
|
-
l = await i.skip(l);
|
|
20031
|
-
if (l > 0) {
|
|
20032
|
-
throw new Error("Invalid Multipart Part: Unexpected EOF");
|
|
20033
|
-
}
|
|
20034
|
-
}
|
|
20035
|
-
if (!s) {
|
|
20036
|
-
await expectTrailer(i, n);
|
|
20037
|
-
s = !0;
|
|
20038
|
-
}
|
|
20039
|
-
},
|
|
20040
|
-
async pull(e) {
|
|
20041
|
-
if (l) {
|
|
20042
|
-
const t = await i.pull(l);
|
|
20043
|
-
if (!t) {
|
|
20044
|
-
throw new Error("Invalid Multipart Part: Unexpected EOF");
|
|
20045
|
-
}
|
|
20046
|
-
l -= t.byteLength;
|
|
20047
|
-
e.enqueue(i.blockLocked ? t.slice() : t);
|
|
20048
|
-
}
|
|
20049
|
-
if (!l) {
|
|
20050
|
-
await expectTrailer(i, n);
|
|
20051
|
-
s = !0;
|
|
20052
|
-
e.close();
|
|
20066
|
+
const n = new ReadableStreamBlockReader(e, 4096);
|
|
20067
|
+
try {
|
|
20068
|
+
yield* async function* readMultipart(e, t) {
|
|
20069
|
+
const n = function convertToBoundaryBytes(e) {
|
|
20070
|
+
const t = e.match(c);
|
|
20071
|
+
const n = `--${t?.[1] || "-"}`;
|
|
20072
|
+
const i = `\r\n${n}`;
|
|
20073
|
+
const a = utf8Encode(n);
|
|
20074
|
+
const r = utf8Encode(i);
|
|
20075
|
+
return {
|
|
20076
|
+
raw: a,
|
|
20077
|
+
rawSkipTable: bytesToSkipTable(a),
|
|
20078
|
+
trailer: r,
|
|
20079
|
+
trailerSkipTable: bytesToSkipTable(r)
|
|
20080
|
+
};
|
|
20081
|
+
}(t.contentType);
|
|
20082
|
+
await async function expectPreamble(e, t) {
|
|
20083
|
+
let n = 0;
|
|
20084
|
+
for await (const i of readUntilBoundary(e, t.raw, t.rawSkipTable)) {
|
|
20085
|
+
if (null == i) {
|
|
20086
|
+
throw new Error("Invalid Multipart Preamble: Unexpected EOF");
|
|
20087
|
+
} else if ((n += i?.byteLength) > 16e3) {
|
|
20088
|
+
throw new Error("Invalid Multipart Preamble: Boundary not found within the first 16kB");
|
|
20053
20089
|
}
|
|
20054
20090
|
}
|
|
20055
|
-
});
|
|
20056
|
-
|
|
20057
|
-
|
|
20058
|
-
|
|
20059
|
-
|
|
20060
|
-
|
|
20061
|
-
|
|
20062
|
-
|
|
20091
|
+
}(e, n);
|
|
20092
|
+
let i;
|
|
20093
|
+
while (i = await decodeHeaders(e)) {
|
|
20094
|
+
const t = i["content-type"];
|
|
20095
|
+
const a = parseContentDisposition(i["content-disposition"]);
|
|
20096
|
+
const r = a?.filename || a?.name;
|
|
20097
|
+
const o = parseContentLength(i["content-length"]);
|
|
20098
|
+
if (!r) {
|
|
20099
|
+
throw new Error("Invalid Multipart Part: Missing Content-Disposition name or filename parameter");
|
|
20100
|
+
}
|
|
20101
|
+
let s = !1;
|
|
20102
|
+
let l = 0;
|
|
20103
|
+
let c;
|
|
20104
|
+
if (null !== o) {
|
|
20105
|
+
l = o;
|
|
20106
|
+
c = createReadableStream({
|
|
20107
|
+
expectedLength: o,
|
|
20108
|
+
async cancel() {
|
|
20109
|
+
if (l > 0) {
|
|
20110
|
+
l = await e.skip(l);
|
|
20111
|
+
if (l > 0) {
|
|
20112
|
+
throw new Error("Invalid Multipart Part: Unexpected EOF");
|
|
20113
|
+
}
|
|
20114
|
+
}
|
|
20115
|
+
if (!s) {
|
|
20116
|
+
await expectTrailer(e, n);
|
|
20117
|
+
s = !0;
|
|
20118
|
+
}
|
|
20119
|
+
},
|
|
20120
|
+
async pull(t) {
|
|
20121
|
+
if (l) {
|
|
20122
|
+
const n = await e.pull(l);
|
|
20123
|
+
if (!n) {
|
|
20124
|
+
throw new Error("Invalid Multipart Part: Unexpected EOF");
|
|
20125
|
+
}
|
|
20126
|
+
l -= n.byteLength;
|
|
20127
|
+
t.enqueue(e.blockLocked ? n.slice() : n);
|
|
20128
|
+
}
|
|
20129
|
+
if (!l) {
|
|
20130
|
+
await expectTrailer(e, n);
|
|
20131
|
+
s = !0;
|
|
20132
|
+
t.close();
|
|
20133
|
+
}
|
|
20063
20134
|
}
|
|
20064
|
-
}
|
|
20065
|
-
|
|
20066
|
-
|
|
20067
|
-
|
|
20068
|
-
|
|
20069
|
-
|
|
20070
|
-
|
|
20071
|
-
|
|
20072
|
-
|
|
20073
|
-
|
|
20074
|
-
|
|
20075
|
-
|
|
20076
|
-
|
|
20135
|
+
});
|
|
20136
|
+
} else {
|
|
20137
|
+
const t = readUntilBoundary(e, n.trailer, n.trailerSkipTable);
|
|
20138
|
+
c = createReadableStream({
|
|
20139
|
+
async cancel() {
|
|
20140
|
+
for await (const e of t) {
|
|
20141
|
+
if (!e) {
|
|
20142
|
+
throw new Error("Invalid Multipart Part: Unexpected EOF");
|
|
20143
|
+
}
|
|
20144
|
+
}
|
|
20145
|
+
s = !0;
|
|
20146
|
+
},
|
|
20147
|
+
async pull(e) {
|
|
20148
|
+
const n = await t.next();
|
|
20149
|
+
if (n.done) {
|
|
20150
|
+
e.close();
|
|
20151
|
+
s = !0;
|
|
20152
|
+
} else if (!n.value) {
|
|
20153
|
+
throw new Error("Invalid Multipart Part: Unexpected EOF");
|
|
20154
|
+
} else {
|
|
20155
|
+
e.enqueue(n.value.slice());
|
|
20156
|
+
}
|
|
20157
|
+
}
|
|
20158
|
+
});
|
|
20077
20159
|
}
|
|
20078
|
-
|
|
20079
|
-
|
|
20080
|
-
|
|
20081
|
-
|
|
20082
|
-
|
|
20083
|
-
|
|
20084
|
-
|
|
20085
|
-
|
|
20086
|
-
|
|
20087
|
-
}
|
|
20160
|
+
yield new MultipartPart(c, r, {
|
|
20161
|
+
type: t ?? void 0,
|
|
20162
|
+
size: o ?? void 0,
|
|
20163
|
+
headers: i
|
|
20164
|
+
});
|
|
20165
|
+
if (l > 0 || !s) {
|
|
20166
|
+
await c.cancel();
|
|
20167
|
+
}
|
|
20168
|
+
}
|
|
20169
|
+
}(n, t);
|
|
20170
|
+
} finally {
|
|
20171
|
+
await n.close();
|
|
20088
20172
|
}
|
|
20089
20173
|
}
|
|
20090
20174
|
|
|
@@ -20098,9 +20182,10 @@ const isBlob = e => "object" == typeof e && null != e && (e instanceof Multipart
|
|
|
20098
20182
|
|
|
20099
20183
|
const makeFormHeader = (e, t) => {
|
|
20100
20184
|
let n = f + i + u;
|
|
20101
|
-
|
|
20185
|
+
const a = encodeName(e.name);
|
|
20186
|
+
n += `Content-Disposition: form-data; name="${a}"`;
|
|
20102
20187
|
if (null != e.filename) {
|
|
20103
|
-
n += `; filename="${encodeName(e.filename)}"`;
|
|
20188
|
+
n += `; filename="${e.filename === e.name ? a : encodeName(e.filename)}"`;
|
|
20104
20189
|
}
|
|
20105
20190
|
if (t) {
|
|
20106
20191
|
if (t.type) {
|
|
@@ -20122,39 +20207,36 @@ const makeFormHeader = (e, t) => {
|
|
|
20122
20207
|
return n;
|
|
20123
20208
|
};
|
|
20124
20209
|
|
|
20125
|
-
const
|
|
20210
|
+
const y = (/* unused pure expression or super */ null && (`multipart/form-data; boundary=${i}`));
|
|
20126
20211
|
|
|
20127
20212
|
async function* streamMultipart(e) {
|
|
20128
|
-
const n
|
|
20129
|
-
|
|
20130
|
-
while (!(i = await n()).done && i.value) {
|
|
20131
|
-
const e = i.value[0];
|
|
20132
|
-
const n = i.value[1];
|
|
20133
|
-
if (isBlob(n)) {
|
|
20213
|
+
for await (const [n, i] of streamLikeToIterator(e)) {
|
|
20214
|
+
if (isBlob(i)) {
|
|
20134
20215
|
yield t.encode(makeFormHeader({
|
|
20135
|
-
name:
|
|
20136
|
-
filename: "name" in
|
|
20137
|
-
},
|
|
20138
|
-
|
|
20216
|
+
name: n,
|
|
20217
|
+
filename: "name" in i ? i.name : n
|
|
20218
|
+
}, i));
|
|
20219
|
+
const e = i.stream();
|
|
20220
|
+
yield* streamToSizedAsyncIterable(e, i.size || null, "Invalid Multipart: Part");
|
|
20139
20221
|
} else {
|
|
20140
20222
|
yield t.encode(makeFormHeader({
|
|
20141
|
-
name:
|
|
20223
|
+
name: n
|
|
20142
20224
|
}, void 0));
|
|
20143
|
-
yield "string" == typeof
|
|
20225
|
+
yield "string" == typeof i ? t.encode(i) : i;
|
|
20144
20226
|
}
|
|
20145
20227
|
yield t.encode(u);
|
|
20146
20228
|
}
|
|
20147
20229
|
yield t.encode(h);
|
|
20148
20230
|
}
|
|
20149
20231
|
|
|
20150
|
-
const
|
|
20232
|
+
const m = 512;
|
|
20151
20233
|
|
|
20152
20234
|
function blockPad(e) {
|
|
20153
20235
|
const t = 511 & e;
|
|
20154
|
-
return t &&
|
|
20236
|
+
return t && m - t;
|
|
20155
20237
|
}
|
|
20156
20238
|
|
|
20157
|
-
let
|
|
20239
|
+
let p = function(e) {
|
|
20158
20240
|
e[e.FILE = 48] = "FILE";
|
|
20159
20241
|
e[e.LINK = 49] = "LINK";
|
|
20160
20242
|
e[e.SYMLINK = 50] = "SYMLINK";
|
|
@@ -20170,12 +20252,13 @@ function initTarHeader(e) {
|
|
|
20170
20252
|
gid: e?.gid || 0,
|
|
20171
20253
|
size: e?.size || 0,
|
|
20172
20254
|
mtime: e?.mtime || 0,
|
|
20173
|
-
typeflag: e?.typeflag ||
|
|
20255
|
+
typeflag: e?.typeflag || p.FILE,
|
|
20174
20256
|
linkname: e?.linkname || null,
|
|
20175
20257
|
uname: e?.uname || null,
|
|
20176
20258
|
gname: e?.gname || null,
|
|
20177
20259
|
devmajor: e?.devmajor || 0,
|
|
20178
|
-
devminor: e?.devminor || 0
|
|
20260
|
+
devminor: e?.devminor || 0,
|
|
20261
|
+
_paxSize: e?._paxSize
|
|
20179
20262
|
};
|
|
20180
20263
|
}
|
|
20181
20264
|
|
|
@@ -20191,7 +20274,7 @@ const getTarName = e => {
|
|
|
20191
20274
|
}
|
|
20192
20275
|
};
|
|
20193
20276
|
|
|
20194
|
-
const getTarSize = e => e._paxSize
|
|
20277
|
+
const getTarSize = e => e._paxSize ?? e.size;
|
|
20195
20278
|
|
|
20196
20279
|
class TarChunk extends StreamFile {
|
|
20197
20280
|
constructor(e, t) {
|
|
@@ -20229,7 +20312,7 @@ class TarFile extends StreamFile {
|
|
|
20229
20312
|
this.uid = t.uid;
|
|
20230
20313
|
this.gid = t.gid;
|
|
20231
20314
|
this.mtime = t.mtime;
|
|
20232
|
-
this.typeflag =
|
|
20315
|
+
this.typeflag = p.FILE;
|
|
20233
20316
|
this.linkname = null;
|
|
20234
20317
|
this.uname = t.uname;
|
|
20235
20318
|
this.gname = t.gname;
|
|
@@ -20240,59 +20323,60 @@ class TarFile extends StreamFile {
|
|
|
20240
20323
|
|
|
20241
20324
|
async function decodePax(e, t, i) {
|
|
20242
20325
|
let a = i.size;
|
|
20243
|
-
|
|
20326
|
+
const r = [];
|
|
20244
20327
|
while (a > 0) {
|
|
20245
|
-
|
|
20328
|
+
const t = await e.read();
|
|
20246
20329
|
if (!t || t.byteLength !== e.blockSize) {
|
|
20247
20330
|
throw new Error("Invalid Tar: Unexpected EOF while parsing PAX data");
|
|
20248
20331
|
}
|
|
20249
|
-
a
|
|
20250
|
-
|
|
20251
|
-
|
|
20252
|
-
|
|
20253
|
-
|
|
20254
|
-
|
|
20255
|
-
|
|
20332
|
+
const n = Math.min(a, t.byteLength);
|
|
20333
|
+
r.push(t.slice(0, n));
|
|
20334
|
+
a -= n;
|
|
20335
|
+
}
|
|
20336
|
+
const o = new Uint8Array(i.size);
|
|
20337
|
+
for (let e = 0, t = 0; e < r.length; e++) {
|
|
20338
|
+
o.set(r[e], t);
|
|
20339
|
+
t += r[e].byteLength;
|
|
20256
20340
|
}
|
|
20257
|
-
for (let e = 0,
|
|
20258
|
-
while (
|
|
20259
|
-
|
|
20341
|
+
for (let e = 0, a = 0; e < o.byteLength; a = e) {
|
|
20342
|
+
while (a < o.byteLength && 32 !== o[a]) {
|
|
20343
|
+
a++;
|
|
20260
20344
|
}
|
|
20261
|
-
const
|
|
20262
|
-
if (!
|
|
20345
|
+
const r = parseInt(n.decode(o.subarray(e, a)), 10);
|
|
20346
|
+
if (!r || r != r) {
|
|
20263
20347
|
break;
|
|
20264
20348
|
}
|
|
20265
|
-
if (10 !==
|
|
20349
|
+
if (10 !== o[e + r - 1]) {
|
|
20266
20350
|
break;
|
|
20267
20351
|
}
|
|
20268
|
-
const
|
|
20269
|
-
const
|
|
20270
|
-
if (-1 ===
|
|
20352
|
+
const s = n.decode(o.subarray(a + 1, e + r - 1));
|
|
20353
|
+
const l = s.indexOf("=");
|
|
20354
|
+
if (-1 === l) {
|
|
20271
20355
|
break;
|
|
20272
20356
|
}
|
|
20273
|
-
const
|
|
20274
|
-
const
|
|
20275
|
-
e +=
|
|
20276
|
-
switch (
|
|
20357
|
+
const c = s.slice(0, l);
|
|
20358
|
+
const d = s.slice(l + 1);
|
|
20359
|
+
e += r;
|
|
20360
|
+
switch (c) {
|
|
20277
20361
|
case "path":
|
|
20278
20362
|
if (t) {
|
|
20279
|
-
t._paxName =
|
|
20363
|
+
t._paxName = d;
|
|
20280
20364
|
}
|
|
20281
|
-
i._paxName =
|
|
20365
|
+
i._paxName = d;
|
|
20282
20366
|
break;
|
|
20283
20367
|
|
|
20284
20368
|
case "linkpath":
|
|
20285
20369
|
if (t) {
|
|
20286
|
-
t._paxLinkName =
|
|
20370
|
+
t._paxLinkName = d;
|
|
20287
20371
|
}
|
|
20288
|
-
i._paxLinkName =
|
|
20372
|
+
i._paxLinkName = d;
|
|
20289
20373
|
break;
|
|
20290
20374
|
|
|
20291
20375
|
case "size":
|
|
20292
20376
|
if (t) {
|
|
20293
|
-
t._paxSize = +
|
|
20377
|
+
t._paxSize = +d;
|
|
20294
20378
|
}
|
|
20295
|
-
i._paxSize = +
|
|
20379
|
+
i._paxSize = +d;
|
|
20296
20380
|
break;
|
|
20297
20381
|
|
|
20298
20382
|
case "gid":
|
|
@@ -20300,17 +20384,17 @@ async function decodePax(e, t, i) {
|
|
|
20300
20384
|
case "mode":
|
|
20301
20385
|
case "mtime":
|
|
20302
20386
|
if (t) {
|
|
20303
|
-
t[
|
|
20387
|
+
t[c] = +d;
|
|
20304
20388
|
}
|
|
20305
|
-
i[
|
|
20389
|
+
i[c] = +d;
|
|
20306
20390
|
break;
|
|
20307
20391
|
|
|
20308
20392
|
case "uname":
|
|
20309
20393
|
case "gname":
|
|
20310
20394
|
if (t) {
|
|
20311
|
-
t[
|
|
20395
|
+
t[c] = d;
|
|
20312
20396
|
}
|
|
20313
|
-
i[
|
|
20397
|
+
i[c] = d;
|
|
20314
20398
|
}
|
|
20315
20399
|
}
|
|
20316
20400
|
}
|
|
@@ -20418,7 +20502,7 @@ function decodeBase(e, t) {
|
|
|
20418
20502
|
e._prefix = decodeString(t, 345, 500);
|
|
20419
20503
|
}
|
|
20420
20504
|
if (0 === e.typeflag && e.name.endsWith("/")) {
|
|
20421
|
-
e.typeflag =
|
|
20505
|
+
e.typeflag = p.DIRECTORY;
|
|
20422
20506
|
}
|
|
20423
20507
|
}
|
|
20424
20508
|
|
|
@@ -20453,10 +20537,10 @@ async function decodeHeader(e, t) {
|
|
|
20453
20537
|
|
|
20454
20538
|
case 0:
|
|
20455
20539
|
case 55:
|
|
20456
|
-
case
|
|
20457
|
-
case
|
|
20458
|
-
case
|
|
20459
|
-
case
|
|
20540
|
+
case p.FILE:
|
|
20541
|
+
case p.LINK:
|
|
20542
|
+
case p.SYMLINK:
|
|
20543
|
+
case p.DIRECTORY:
|
|
20460
20544
|
decodeBase(i, n);
|
|
20461
20545
|
return i;
|
|
20462
20546
|
|
|
@@ -20477,79 +20561,91 @@ async function decodeHeader(e, t) {
|
|
|
20477
20561
|
}
|
|
20478
20562
|
|
|
20479
20563
|
async function* untar(e) {
|
|
20480
|
-
const t =
|
|
20481
|
-
|
|
20482
|
-
|
|
20483
|
-
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20505
|
-
|
|
20506
|
-
}
|
|
20507
|
-
|
|
20508
|
-
|
|
20509
|
-
|
|
20510
|
-
|
|
20511
|
-
|
|
20512
|
-
|
|
20513
|
-
|
|
20514
|
-
|
|
20564
|
+
const t = new ReadableStreamBlockReader(e, m);
|
|
20565
|
+
try {
|
|
20566
|
+
yield* async function* readTar(e) {
|
|
20567
|
+
const t = initTarHeader(null);
|
|
20568
|
+
let n;
|
|
20569
|
+
while (null != (n = await decodeHeader(e, t))) {
|
|
20570
|
+
const t = n._paxSize ?? n.size;
|
|
20571
|
+
if (!Number.isSafeInteger(t) || t < 0) {
|
|
20572
|
+
throw new Error(`Invalid Tar: Invalid entry size ${t}`);
|
|
20573
|
+
}
|
|
20574
|
+
const i = blockPad(t);
|
|
20575
|
+
let a = 0 === i;
|
|
20576
|
+
let r = t;
|
|
20577
|
+
const o = createReadableStream({
|
|
20578
|
+
expectedLength: t,
|
|
20579
|
+
async cancel() {
|
|
20580
|
+
if (!a) {
|
|
20581
|
+
r += i;
|
|
20582
|
+
}
|
|
20583
|
+
if (r > 0) {
|
|
20584
|
+
if (await e.skip(r) > 0) {
|
|
20585
|
+
throw new Error("Invalid Tar: Unexpected EOF");
|
|
20586
|
+
}
|
|
20587
|
+
r = 0;
|
|
20588
|
+
}
|
|
20589
|
+
a = !0;
|
|
20590
|
+
},
|
|
20591
|
+
async pull(t) {
|
|
20592
|
+
if (r) {
|
|
20593
|
+
const n = await e.pull(r);
|
|
20594
|
+
if (!n) {
|
|
20595
|
+
throw new Error("Invalid Tar: Unexpected EOF");
|
|
20596
|
+
}
|
|
20597
|
+
r -= n.byteLength;
|
|
20598
|
+
t.enqueue(e.blockLocked ? n.slice() : n);
|
|
20599
|
+
}
|
|
20600
|
+
if (!r) {
|
|
20601
|
+
if (!a) {
|
|
20602
|
+
if (await e.skip(i) > 0) {
|
|
20603
|
+
throw new Error("Invalid Tar: Unexpected EOF");
|
|
20604
|
+
}
|
|
20605
|
+
a = !0;
|
|
20606
|
+
}
|
|
20607
|
+
t.close();
|
|
20515
20608
|
}
|
|
20516
20609
|
}
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
case y.FILE:
|
|
20526
|
-
o = new TarFile(r, i);
|
|
20527
|
-
break;
|
|
20610
|
+
});
|
|
20611
|
+
let s;
|
|
20612
|
+
switch (n.typeflag) {
|
|
20613
|
+
case 0:
|
|
20614
|
+
case 55:
|
|
20615
|
+
case p.FILE:
|
|
20616
|
+
s = new TarFile(o, n);
|
|
20617
|
+
break;
|
|
20528
20618
|
|
|
20529
|
-
|
|
20530
|
-
|
|
20531
|
-
|
|
20532
|
-
|
|
20533
|
-
|
|
20619
|
+
case p.LINK:
|
|
20620
|
+
case p.SYMLINK:
|
|
20621
|
+
case p.DIRECTORY:
|
|
20622
|
+
s = new TarChunk(o, n);
|
|
20623
|
+
break;
|
|
20534
20624
|
|
|
20535
|
-
|
|
20536
|
-
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
|
|
20542
|
-
|
|
20625
|
+
default:
|
|
20626
|
+
await o.cancel();
|
|
20627
|
+
continue;
|
|
20628
|
+
}
|
|
20629
|
+
yield s;
|
|
20630
|
+
if (r > 0 || !a) {
|
|
20631
|
+
await o.cancel();
|
|
20632
|
+
}
|
|
20633
|
+
}
|
|
20634
|
+
}(t);
|
|
20635
|
+
} finally {
|
|
20636
|
+
await t.close();
|
|
20543
20637
|
}
|
|
20544
20638
|
}
|
|
20545
20639
|
|
|
20546
20640
|
const b = 100;
|
|
20547
20641
|
|
|
20548
|
-
const w = new Uint8Array(
|
|
20642
|
+
const w = new Uint8Array(m);
|
|
20643
|
+
|
|
20644
|
+
const g = /[^\x00-\x7f]/;
|
|
20549
20645
|
|
|
20550
20646
|
function encodeString(e, n, i, a) {
|
|
20551
20647
|
if (a) {
|
|
20552
|
-
t.encodeInto(
|
|
20648
|
+
t.encodeInto(a, e.subarray(n, i));
|
|
20553
20649
|
}
|
|
20554
20650
|
}
|
|
20555
20651
|
|
|
@@ -20587,28 +20683,9 @@ function encodeOctal(e, t, n, i) {
|
|
|
20587
20683
|
}
|
|
20588
20684
|
}
|
|
20589
20685
|
|
|
20590
|
-
function indexOfPrefixEnd(e) {
|
|
20591
|
-
if (e.length <= 255) {
|
|
20592
|
-
let t = e.length - 1;
|
|
20593
|
-
while ((t = e.lastIndexOf("/", t - 1)) > -1) {
|
|
20594
|
-
if (t < 155 && e.length - t - 1 < b) {
|
|
20595
|
-
return t;
|
|
20596
|
-
}
|
|
20597
|
-
}
|
|
20598
|
-
}
|
|
20599
|
-
return -1;
|
|
20600
|
-
}
|
|
20601
|
-
|
|
20602
20686
|
function encodeHeader(e) {
|
|
20603
|
-
const t = new Uint8Array(
|
|
20687
|
+
const t = new Uint8Array(m);
|
|
20604
20688
|
!function encodeBase(e, t) {
|
|
20605
|
-
let n = t.name;
|
|
20606
|
-
if (!t._paxName && !t._longName && n.length > b) {
|
|
20607
|
-
const e = indexOfPrefixEnd(n);
|
|
20608
|
-
if (e > -1) {
|
|
20609
|
-
n = n.slice(e + 1);
|
|
20610
|
-
}
|
|
20611
|
-
}
|
|
20612
20689
|
if (!t.typeflag) {
|
|
20613
20690
|
t.typeflag = function modeToType(e) {
|
|
20614
20691
|
switch (61440 & e) {
|
|
@@ -20619,26 +20696,26 @@ function encodeHeader(e) {
|
|
|
20619
20696
|
return 51;
|
|
20620
20697
|
|
|
20621
20698
|
case 16384:
|
|
20622
|
-
return
|
|
20699
|
+
return p.DIRECTORY;
|
|
20623
20700
|
|
|
20624
20701
|
case 4096:
|
|
20625
20702
|
return 54;
|
|
20626
20703
|
|
|
20627
20704
|
case 40960:
|
|
20628
|
-
return
|
|
20705
|
+
return p.SYMLINK;
|
|
20629
20706
|
|
|
20630
20707
|
default:
|
|
20631
|
-
return
|
|
20708
|
+
return p.FILE;
|
|
20632
20709
|
}
|
|
20633
20710
|
}(t.mode);
|
|
20634
20711
|
}
|
|
20635
20712
|
if (!t.mode) {
|
|
20636
|
-
t.mode = t.typeflag ===
|
|
20713
|
+
t.mode = t.typeflag === p.DIRECTORY ? 493 : 420;
|
|
20637
20714
|
}
|
|
20638
20715
|
if (!t.mtime) {
|
|
20639
20716
|
t.mtime = Math.floor(Date.now() / 1e3);
|
|
20640
20717
|
}
|
|
20641
|
-
encodeString(e, 0, 100,
|
|
20718
|
+
encodeString(e, 0, 100, t.name);
|
|
20642
20719
|
encodeOctal(e, 100, 108, 4095 & t.mode);
|
|
20643
20720
|
encodeOctal(e, 108, 116, t.uid);
|
|
20644
20721
|
encodeOctal(e, 116, 124, t.gid);
|
|
@@ -20667,15 +20744,15 @@ function encodeHeader(e) {
|
|
|
20667
20744
|
}
|
|
20668
20745
|
|
|
20669
20746
|
function encodePax(e) {
|
|
20670
|
-
function encodePaxEntry(e,
|
|
20671
|
-
const
|
|
20672
|
-
let
|
|
20673
|
-
const
|
|
20674
|
-
|
|
20675
|
-
if (1 + Math.floor(Math.log10(
|
|
20676
|
-
|
|
20747
|
+
function encodePaxEntry(e, n) {
|
|
20748
|
+
const i = ` ${e}=${n}\n`;
|
|
20749
|
+
let a = t.encode(i).byteLength;
|
|
20750
|
+
const r = `${a}`;
|
|
20751
|
+
a += r.length;
|
|
20752
|
+
if (1 + Math.floor(Math.log10(a)) > r.length) {
|
|
20753
|
+
a += 1;
|
|
20677
20754
|
}
|
|
20678
|
-
return `${
|
|
20755
|
+
return `${a}${i}`;
|
|
20679
20756
|
}
|
|
20680
20757
|
let n = "";
|
|
20681
20758
|
if (e._paxName) {
|
|
@@ -20687,64 +20764,84 @@ function encodePax(e) {
|
|
|
20687
20764
|
return n ? t.encode(n) : null;
|
|
20688
20765
|
}
|
|
20689
20766
|
|
|
20690
|
-
function
|
|
20691
|
-
|
|
20692
|
-
|
|
20767
|
+
function truncateHeaderString(e) {
|
|
20768
|
+
let t = 99;
|
|
20769
|
+
while (128 == (192 & e[t])) {
|
|
20770
|
+
t--;
|
|
20771
|
+
}
|
|
20772
|
+
return n.decode(e.subarray(0, t));
|
|
20693
20773
|
}
|
|
20694
20774
|
|
|
20695
|
-
|
|
20696
|
-
|
|
20697
|
-
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
t
|
|
20711
|
-
|
|
20712
|
-
|
|
20713
|
-
const e = indexOfPrefixEnd(t.name);
|
|
20714
|
-
if (e > -1) {
|
|
20715
|
-
t._prefix = t.name.slice(0, e);
|
|
20716
|
-
t.name = t.name.slice(e + 1);
|
|
20775
|
+
function prepareHeaderStrings(e) {
|
|
20776
|
+
if (e.name.length > 33 && (e.name.length > b || g.test(e.name))) {
|
|
20777
|
+
const i = t.encode(e.name);
|
|
20778
|
+
if (i.byteLength > b) {
|
|
20779
|
+
const t = function indexOfPrefixEnd(e) {
|
|
20780
|
+
if (e.byteLength <= 255) {
|
|
20781
|
+
let t = e.byteLength;
|
|
20782
|
+
while ((t = e.lastIndexOf(47, t - 1)) > 0) {
|
|
20783
|
+
if (t < 155 && e.byteLength - t - 1 < b) {
|
|
20784
|
+
return t;
|
|
20785
|
+
}
|
|
20786
|
+
}
|
|
20787
|
+
}
|
|
20788
|
+
return -1;
|
|
20789
|
+
}(i);
|
|
20790
|
+
if (t > -1) {
|
|
20791
|
+
e._prefix = n.decode(i.subarray(0, t));
|
|
20792
|
+
e.name = n.decode(i.subarray(t + 1));
|
|
20717
20793
|
} else {
|
|
20718
|
-
|
|
20719
|
-
|
|
20794
|
+
e._paxName = e.name;
|
|
20795
|
+
e.name = truncateHeaderString(i);
|
|
20720
20796
|
}
|
|
20721
20797
|
}
|
|
20722
|
-
|
|
20723
|
-
|
|
20724
|
-
|
|
20798
|
+
}
|
|
20799
|
+
if (e.linkname && e.linkname.length > 33 && (e.linkname.length > b || g.test(e.linkname))) {
|
|
20800
|
+
const n = t.encode(e.linkname);
|
|
20801
|
+
if (n.byteLength > b) {
|
|
20802
|
+
e._paxLinkName = e.linkname;
|
|
20803
|
+
e.linkname = truncateHeaderString(n);
|
|
20725
20804
|
}
|
|
20726
|
-
|
|
20727
|
-
|
|
20805
|
+
}
|
|
20806
|
+
}
|
|
20807
|
+
|
|
20808
|
+
async function* tar(e) {
|
|
20809
|
+
for await (const t of streamLikeToIterator(e)) {
|
|
20810
|
+
const e = initTarHeader(t);
|
|
20811
|
+
if (!Number.isSafeInteger(e.size) || e.size < 0) {
|
|
20812
|
+
throw new Error(`Invalid Tar: Cannot safely encode part with size ${e.size}`);
|
|
20813
|
+
}
|
|
20814
|
+
if (t.lastModified && !e.mtime) {
|
|
20815
|
+
e.mtime = Math.floor(t.lastModified / 1e3);
|
|
20816
|
+
}
|
|
20817
|
+
if (e.typeflag === p.DIRECTORY && !e.name.endsWith("/")) {
|
|
20818
|
+
e.name += "/";
|
|
20819
|
+
} else if (e.typeflag === p.SYMLINK) {
|
|
20820
|
+
e.size = 0;
|
|
20821
|
+
}
|
|
20822
|
+
prepareHeaderStrings(e);
|
|
20823
|
+
const n = encodePax(e);
|
|
20824
|
+
if (n) {
|
|
20728
20825
|
const e = initTarHeader(null);
|
|
20729
20826
|
e.typeflag = 120;
|
|
20730
|
-
e.size =
|
|
20827
|
+
e.size = n.byteLength;
|
|
20731
20828
|
yield encodeHeader(e);
|
|
20732
|
-
yield
|
|
20733
|
-
const t = blockPad(
|
|
20829
|
+
yield n;
|
|
20830
|
+
const t = blockPad(n.byteLength);
|
|
20734
20831
|
if (t) {
|
|
20735
20832
|
yield w.subarray(0, t);
|
|
20736
20833
|
}
|
|
20737
20834
|
}
|
|
20738
|
-
yield encodeHeader(
|
|
20739
|
-
const
|
|
20740
|
-
if (
|
|
20741
|
-
yield*
|
|
20742
|
-
} else if (!
|
|
20743
|
-
await
|
|
20835
|
+
yield encodeHeader(e);
|
|
20836
|
+
const i = t.stream();
|
|
20837
|
+
if (e.size) {
|
|
20838
|
+
yield* streamToSizedAsyncIterable(i, e.size, "Invalid Tar: Entry");
|
|
20839
|
+
} else if (!i.locked) {
|
|
20840
|
+
await i.cancel();
|
|
20744
20841
|
}
|
|
20745
|
-
const
|
|
20746
|
-
if (
|
|
20747
|
-
yield w.subarray(0,
|
|
20842
|
+
const a = blockPad(e.size);
|
|
20843
|
+
if (a) {
|
|
20844
|
+
yield w.subarray(0, a);
|
|
20748
20845
|
}
|
|
20749
20846
|
}
|
|
20750
20847
|
yield new Uint8Array(1024);
|
package/build/index.js
CHANGED
|
@@ -46,4 +46,4 @@ const n=r(5680);const toRegexRange=(e,t,r)=>{if(n(e)===false){throw new TypeErro
|
|
|
46
46
|
{bold yarn:} {cyan yarn create ${e}}
|
|
47
47
|
{bold pnpm:} {cyan pnpm create ${e}}
|
|
48
48
|
{bold bun:} {cyan bun create ${e}}
|
|
49
|
-
`)}const{AnalyticsEventPhases:c,AnalyticsEventTypes:l,flushAsync:p,track:h}=await r.e(178).then(r.bind(r,9178));try{const s=await resolveStringOrBooleanArgsAsync(e,t,{"--template":Boolean,"--example":Boolean,"-t":"--template","-e":"--example"});f(`Default args:\n%O`,n);f(`Parsed:\n%O`,s);const{createAsync:i}=await Promise.all([r.e(691),r.e(303)]).then(r.bind(r,4303));await i(s.projectRoot,{yes:!!n["--yes"],template:s.args["--template"],example:s.args["--example"],install:!n["--no-install"]});h({event:l.CREATE_EXPO_APP,properties:{phase:c.SUCCESS}});await p()}catch(e){if(!(e instanceof o.R)){u.tG.exception(e)}h({event:l.CREATE_EXPO_APP,properties:{phase:c.FAIL,message:e.cause}});await p().finally((()=>{process.exit(e.code||1)}))}finally{const e=await(await r.e(654).then(r.bind(r,654))).default;await e()}}run()},3130:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});const n=r(8330).name},9696:(e,t,r)=>{"use strict";r.d(t,{R:()=>ExitError});class ExitError extends Error{cause;code;constructor(e,t){super(e instanceof Error?e.message:e);this.cause=e;this.code=t}}},8032:(e,t,r)=>{"use strict";r.d(t,{NS:()=>exit,tG:()=>o});var n=r(2325);var s=r.n(n);var i=r(9696);function error(...e){console.error(...e)}function exception(e){const{env:t}=r(4695);error(s().red(e.toString())+(t.EXPO_DEBUG?"\n"+s().gray(e.stack):""))}function log(...e){console.log(...e)}function exit(e,t=1){if(e instanceof Error){exception(e)}else if(e){if(t===0){log(e)}else{error(e)}}if(t!==0){throw new i.R(e,t)}process.exit(t)}const o={error:error,exception:exception,log:log,exit:exit}},1129:(e,t,r)=>{"use strict";r.d(t,{DC:()=>installDependenciesAsync,MZ:()=>configurePackageManager,Wq:()=>formatRunCommand,_c:()=>resolvePackageManager,fZ:()=>formatSelfCommand});var n=r(54);var s=r.n(n);var i=r(5317);var o=r.n(i);var u=r(3130);const a=r(7674)("expo:init:resolvePackageManager");function resolvePackageManager(){const e=process.env.npm_config_user_agent;a("npm_config_user_agent:",e);if(e?.startsWith("yarn")){return"yarn"}else if(e?.startsWith("pnpm")){return"pnpm"}else if(e?.startsWith("bun")){return"bun"}else if(e?.startsWith("npm")){return"npm"}if(isPackageManagerAvailable("yarn")){return"yarn"}else if(isPackageManagerAvailable("pnpm")){return"pnpm"}else if(isPackageManagerAvailable("bun")){return"bun"}return"npm"}function isPackageManagerAvailable(e){try{(0,i.execSync)(`${e} --version`,{stdio:"ignore"});return true}catch{}return false}function formatRunCommand(e,t){switch(e){case"pnpm":return`pnpm run ${t}`;case"yarn":return`yarn ${t}`;case"bun":return`bun run ${t}`;case"npm":default:return`npm run ${t}`}}function formatSelfCommand(){const e=resolvePackageManager();switch(e){case"pnpm":return`pnpx ${u.V}`;case"bun":return`bunx ${u.V}`;case"yarn":case"npm":default:return`npx ${u.V}`}}function createPackageManager(e,t){switch(e){case"yarn":return new n.YarnPackageManager(t);case"pnpm":return new n.PnpmPackageManager(t);case"bun":return new n.BunPackageManager(t);case"npm":default:return new n.NpmPackageManager(t)}}async function installDependenciesAsync(e,t,r={silent:false}){await createPackageManager(t,{cwd:e,silent:r.silent}).installAsync()}async function configurePackageManager(e,t,r={silent:false}){const n=createPackageManager(t,{cwd:e,...r});switch(n.name){case"pnpm":await n.runAsync(["config","--location","project","set","node-linker","hoisted"]);break;case"yarn":{const e=await n.versionAsync();const t=parseInt(e.split(".")[0],10);if(t>=2){await n.runAsync(["config","set","nodeLinker","node-modules"])}break}}}},4695:(e,t,r)=>{"use strict";r.r(t);r.d(t,{env:()=>i});var n=r(4175);var s=r.n(n);class Env{get EXPO_DEBUG(){return(0,n.boolish)("EXPO_DEBUG",false)}get EXPO_BETA(){return(0,n.boolish)("EXPO_BETA",false)}get CI(){return(0,n.boolish)("CI",false)}get EXPO_NO_CACHE(){return(0,n.boolish)("EXPO_NO_CACHE",false)}get EXPO_NO_TELEMETRY(){return(0,n.boolish)("EXPO_NO_TELEMETRY",false)}}const i=new Env},2613:e=>{"use strict";e.exports=require("assert")},181:e=>{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},6982:e=>{"use strict";e.exports=require("crypto")},2250:e=>{"use strict";e.exports=require("dns")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},3339:e=>{"use strict";e.exports=require("module")},7598:e=>{"use strict";e.exports=require("node:crypto")},8474:e=>{"use strict";e.exports=require("node:events")},3024:e=>{"use strict";e.exports=require("node:fs")},1455:e=>{"use strict";e.exports=require("node:fs/promises")},6760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},7075:e=>{"use strict";e.exports=require("node:stream")},6193:e=>{"use strict";e.exports=require("node:string_decoder")},3136:e=>{"use strict";e.exports=require("node:url")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},3785:e=>{"use strict";e.exports=require("readline")},2203:e=>{"use strict";e.exports=require("stream")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},6775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(6596);var s=r(3608);var i=r(3083);function isColorSupported(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?false:n.isColorSupported}const compose=(e,t)=>r=>e(t(r));function buildDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:compose(compose(e.white,e.bgRed),e.bold),gutter:e.gray,marker:compose(e.red,e.bold),message:compose(e.red,e.bold),reset:e.reset}}const o=buildDefs(n.createColors(true));const u=buildDefs(n.createColors(false));function getDefs(e){return e?o:u}const a=new Set(["as","async","from","get","of","set"]);const c=/\r\n|[\n\r\u2028\u2029]/;const l=/^[()[\]{}]$/;let f;const p=/^[a-z][\w-]*$/i;const getTokenType=function(e,t,r){if(e.type==="name"){const n=e.value;if(i.isKeyword(n)||i.isStrictReservedWord(n,true)||a.has(n)){return"keyword"}if(p.test(n)&&(r[t-1]==="<"||r.slice(t-2,t)==="</")){return"jsxIdentifier"}const s=String.fromCodePoint(n.codePointAt(0));if(s!==s.toLowerCase()){return"capitalized"}}if(e.type==="punctuator"&&l.test(e.value)){return"bracket"}if(e.type==="invalid"&&(e.value==="@"||e.value==="#")){return"punctuator"}return e.type};f=function*(e){let t;while(t=s.default.exec(e)){const r=s.matchToToken(t);yield{type:getTokenType(r,t.index,e),value:r.value}}};function highlight(e){if(e==="")return"";const t=getDefs(true);let r="";for(const{type:n,value:s}of f(e)){if(n in t){r+=s.split(c).map((e=>t[n](e))).join("\n")}else{r+=s}}return r}let h=false;const d=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r,n){const s=Object.assign({column:0,line:-1},e.start);const i=Object.assign({},s,e.end);const{linesAbove:o=2,linesBelow:u=3}=r||{};const a=s.line-n;const c=s.column;const l=i.line-n;const f=i.column;let p=Math.max(a-(o+1),0);let h=Math.min(t.length,l+u);if(a===-1){p=0}if(l===-1){h=t.length}const d=l-a;const g={};if(d){for(let e=0;e<=d;e++){const r=e+a;if(!c){g[r]=true}else if(e===0){const e=t[r-1].length;g[r]=[c,e-c+1]}else if(e===d){g[r]=[0,f]}else{const n=t[r-e].length;g[r]=[0,n]}}}else{if(c===f){if(c){g[a]=[c,0]}else{g[a]=true}}else{g[a]=[c,f-c]}}return{start:p,end:h,markerLines:g}}function codeFrameColumns(e,t,r={}){const n=r.forceColor||isColorSupported()&&r.highlightCode;const s=(r.startLine||1)-1;const i=getDefs(n);const o=e.split(d);const{start:u,end:a,markerLines:c}=getMarkerLines(t,o,r,s);const l=t.start&&typeof t.start.column==="number";const f=String(a+s).length;const p=n?highlight(e):e;let h=p.split(d,a).slice(u,a).map(((e,t)=>{const n=u+1+t;const o=` ${n+s}`.slice(-f);const a=` ${o} |`;const l=c[n];const p=!c[n+1];if(l){let t="";if(Array.isArray(l)){const n=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," ");const s=l[1]||1;t=["\n ",i.gutter(a.replace(/\d/g," "))," ",n,i.marker("^").repeat(s)].join("");if(p&&r.message){t+=" "+i.message(r.message)}}return[i.marker(">"),i.gutter(a),e.length>0?` ${e}`:"",t].join("")}else{return` ${i.gutter(a)}${e.length>0?` ${e}`:""}`}})).join("\n");if(r.message&&!l){h=`${" ".repeat(f+1)}${r.message}\n${h}`}if(n){return i.reset(h)}else{return h}}function index(e,t,r,n={}){if(!h){h=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}r=Math.max(r,0);const s={start:{column:r,line:t}};return codeFrameColumns(e,s,n)}t.codeFrameColumns=codeFrameColumns;t["default"]=index;t.highlight=highlight},5744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;t.isIdentifierStart=isIdentifierStart;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let n="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const s=new RegExp("["+r+"]");const i=new RegExp("["+r+n+"]");r=n=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489];const u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){r+=t[n];if(r>e)return false;r+=t[n+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&s.test(String.fromCharCode(e))}return isInAstralSet(e,o)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&i.test(String.fromCharCode(e))}return isInAstralSet(e,o)||isInAstralSet(e,u)}function isIdentifierName(e){let t=true;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){const t=e.charCodeAt(++r);if((t&64512)===56320){n=65536+((n&1023)<<10)+(t&1023)}}if(t){t=false;if(!isIdentifierStart(n)){return false}}else if(!isIdentifierChar(n)){return false}}return!t}},3083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return n.isIdentifierChar}});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return n.isIdentifierName}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return n.isIdentifierStart}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return s.isKeyword}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return s.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return s.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return s.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return s.isStrictReservedWord}});var n=r(5744);var s=r(728)},728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyword=isKeyword;t.isReservedWord=isReservedWord;t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;t.isStrictBindReservedWord=isStrictBindReservedWord;t.isStrictReservedWord=isStrictReservedWord;const r={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const n=new Set(r.keyword);const s=new Set(r.strict);const i=new Set(r.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||s.has(e)}function isStrictBindOnlyReservedWord(e){return i.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return n.has(e)}},3481:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LRUCache=void 0;const r=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const n=new Set;const s=typeof process==="object"&&!!process?process:{};const emitWarning=(e,t,r,n)=>{typeof s.emitWarning==="function"?s.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let i=globalThis.AbortController;let o=globalThis.AbortSignal;if(typeof i==="undefined"){o=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(e,t){this._onabort.push(t)}};i=class AbortController{constructor(){warnACPolyfill()}signal=new o;abort(e){if(this.signal.aborted)return;this.signal.reason=e;this.signal.aborted=true;for(const t of this.signal._onabort){t(e)}this.signal.onabort?.(e)}};let e=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!e)return;e=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=e=>!n.has(e);const u=Symbol("type");const isPosInt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e);const getUintArray=e=>!isPosInt(e)?null:e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(e){super(e);this.fill(0)}}class Stack{heap;length;static#n=false;static create(e){const t=getUintArray(e);if(!t)return[];Stack.#n=true;const r=new Stack(e,t);Stack.#n=false;return r}constructor(e,t){if(!Stack.#n){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new t(e);this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class LRUCache{#s;#i;#o;#u;#a;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#l;#f;#p;#h;#d;#g;#m;#D;#A;#E;#y;#C;#w;#b;#v;#F;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#w,sizes:e.#y,keyMap:e.#f,keyList:e.#p,valList:e.#h,next:e.#d,prev:e.#g,get head(){return e.#m},get tail(){return e.#D},free:e.#A,isBackgroundFetch:t=>e.#_(t),backgroundFetch:(t,r,n,s)=>e.#S(t,r,n,s),moveToTail:t=>e.#x(t),indexes:t=>e.#O(t),rindexes:t=>e.#k(t),isStale:t=>e.#R(t)}}get max(){return this.#s}get maxSize(){return this.#i}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#a}get dispose(){return this.#o}get disposeAfter(){return this.#u}constructor(e){const{max:t=0,ttl:r,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:u,allowStale:a,dispose:c,disposeAfter:l,noDisposeOnSet:f,noUpdateTTL:p,maxSize:h=0,maxEntrySize:d=0,sizeCalculation:g,fetchMethod:m,noDeleteOnFetchRejection:D,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:y,ignoreFetchAbort:C}=e;if(t!==0&&!isPosInt(t)){throw new TypeError("max option must be a nonnegative integer")}const w=t?getUintArray(t):Array;if(!w){throw new Error("invalid max value: "+t)}this.#s=t;this.#i=h;this.maxEntrySize=d||this.#i;this.sizeCalculation=g;if(this.sizeCalculation){if(!this.#i&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(m!==undefined&&typeof m!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#a=m;this.#v=!!m;this.#f=new Map;this.#p=new Array(t).fill(undefined);this.#h=new Array(t).fill(undefined);this.#d=new w(t);this.#g=new w(t);this.#m=0;this.#D=0;this.#A=Stack.create(t);this.#c=0;this.#l=0;if(typeof c==="function"){this.#o=c}if(typeof l==="function"){this.#u=l;this.#E=[]}else{this.#u=undefined;this.#E=undefined}this.#b=!!this.#o;this.#F=!!this.#u;this.noDisposeOnSet=!!f;this.noUpdateTTL=!!p;this.noDeleteOnFetchRejection=!!D;this.allowStaleOnFetchRejection=!!E;this.allowStaleOnFetchAbort=!!y;this.ignoreFetchAbort=!!C;if(this.maxEntrySize!==0){if(this.#i!==0){if(!isPosInt(this.#i)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#$()}this.allowStale=!!a;this.noDeleteOnStaleGet=!!A;this.updateAgeOnGet=!!o;this.updateAgeOnHas=!!u;this.ttlResolution=isPosInt(s)||s===0?s:1;this.ttlAutopurge=!!i;this.ttl=r||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#L()}if(this.#s===0&&this.ttl===0&&this.#i===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#s&&!this.#i){const e="LRU_CACHE_UNBOUNDED";if(shouldWarn(e)){n.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(t,"UnboundedCacheWarning",e,LRUCache)}}}getRemainingTTL(e){return this.#f.has(e)?Infinity:0}#L(){const e=new ZeroArray(this.#s);const t=new ZeroArray(this.#s);this.#w=e;this.#C=t;this.#B=(n,s,i=r.now())=>{t[n]=s!==0?i:0;e[n]=s;if(s!==0&&this.ttlAutopurge){const e=setTimeout((()=>{if(this.#R(n)){this.delete(this.#p[n])}}),s+1);if(e.unref){e.unref()}}};this.#I=n=>{t[n]=e[n]!==0?r.now():0};this.#P=(r,s)=>{if(e[s]){const i=e[s];const o=t[s];if(!i||!o)return;r.ttl=i;r.start=o;r.now=n||getNow();const u=r.now-o;r.remainingTTL=i-u}};let n=0;const getNow=()=>{const e=r.now();if(this.ttlResolution>0){n=e;const t=setTimeout((()=>n=0),this.ttlResolution);if(t.unref){t.unref()}}return e};this.getRemainingTTL=r=>{const s=this.#f.get(r);if(s===undefined){return 0}const i=e[s];const o=t[s];if(!i||!o){return Infinity}const u=(n||getNow())-o;return i-u};this.#R=r=>{const s=t[r];const i=e[r];return!!i&&!!s&&(n||getNow())-s>i}}#I=()=>{};#P=()=>{};#B=()=>{};#R=()=>false;#$(){const e=new ZeroArray(this.#s);this.#l=0;this.#y=e;this.#N=t=>{this.#l-=e[t];e[t]=0};this.#T=(e,t,r,n)=>{if(this.#_(t)){return 0}if(!isPosInt(r)){if(n){if(typeof n!=="function"){throw new TypeError("sizeCalculation must be a function")}r=n(t,e);if(!isPosInt(r)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return r};this.#M=(t,r,n)=>{e[t]=r;if(this.#i){const r=this.#i-e[t];while(this.#l>r){this.#j(true)}}this.#l+=e[t];if(n){n.entrySize=r;n.totalCalculatedSize=this.#l}}}#N=e=>{};#M=(e,t,r)=>{};#T=(e,t,r,n)=>{if(r||n){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#c){for(let t=this.#D;true;){if(!this.#H(t)){break}if(e||!this.#R(t)){yield t}if(t===this.#m){break}else{t=this.#g[t]}}}}*#k({allowStale:e=this.allowStale}={}){if(this.#c){for(let t=this.#m;true;){if(!this.#H(t)){break}if(e||!this.#R(t)){yield t}if(t===this.#D){break}else{t=this.#d[t]}}}}#H(e){return e!==undefined&&this.#f.get(this.#p[e])===e}*entries(){for(const e of this.#O()){if(this.#h[e]!==undefined&&this.#p[e]!==undefined&&!this.#_(this.#h[e])){yield[this.#p[e],this.#h[e]]}}}*rentries(){for(const e of this.#k()){if(this.#h[e]!==undefined&&this.#p[e]!==undefined&&!this.#_(this.#h[e])){yield[this.#p[e],this.#h[e]]}}}*keys(){for(const e of this.#O()){const t=this.#p[e];if(t!==undefined&&!this.#_(this.#h[e])){yield t}}}*rkeys(){for(const e of this.#k()){const t=this.#p[e];if(t!==undefined&&!this.#_(this.#h[e])){yield t}}}*values(){for(const e of this.#O()){const t=this.#h[e];if(t!==undefined&&!this.#_(this.#h[e])){yield this.#h[e]}}}*rvalues(){for(const e of this.#k()){const t=this.#h[e];if(t!==undefined&&!this.#_(this.#h[e])){yield this.#h[e]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#O()){const n=this.#h[r];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)continue;if(e(s,this.#p[r],this)){return this.get(this.#p[r],t)}}}forEach(e,t=this){for(const r of this.#O()){const n=this.#h[r];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)continue;e.call(t,s,this.#p[r],this)}}rforEach(e,t=this){for(const r of this.#k()){const n=this.#h[r];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)continue;e.call(t,s,this.#p[r],this)}}purgeStale(){let e=false;for(const t of this.#k({allowStale:true})){if(this.#R(t)){this.delete(this.#p[t]);e=true}}return e}info(e){const t=this.#f.get(e);if(t===undefined)return undefined;const n=this.#h[t];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)return undefined;const i={value:s};if(this.#w&&this.#C){const e=this.#w[t];const n=this.#C[t];if(e&&n){const t=e-(r.now()-n);i.ttl=t;i.start=Date.now()}}if(this.#y){i.size=this.#y[t]}return i}dump(){const e=[];for(const t of this.#O({allowStale:true})){const n=this.#p[t];const s=this.#h[t];const i=this.#_(s)?s.__staleWhileFetching:s;if(i===undefined||n===undefined)continue;const o={value:i};if(this.#w&&this.#C){o.ttl=this.#w[t];const e=r.now()-this.#C[t];o.start=Math.floor(Date.now()-e)}if(this.#y){o.size=this.#y[t]}e.unshift([n,o])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}set(e,t,r={}){if(t===undefined){this.delete(e);return this}const{ttl:n=this.ttl,start:s,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:u}=r;let{noUpdateTTL:a=this.noUpdateTTL}=r;const c=this.#T(e,t,r.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize){if(u){u.set="miss";u.maxEntrySizeExceeded=true}this.delete(e);return this}let l=this.#c===0?undefined:this.#f.get(e);if(l===undefined){l=this.#c===0?this.#D:this.#A.length!==0?this.#A.pop():this.#c===this.#s?this.#j(false):this.#c;this.#p[l]=e;this.#h[l]=t;this.#f.set(e,l);this.#d[this.#D]=l;this.#g[l]=this.#D;this.#D=l;this.#c++;this.#M(l,c,u);if(u)u.set="add";a=false}else{this.#x(l);const r=this.#h[l];if(t!==r){if(this.#v&&this.#_(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;if(t!==undefined&&!i){if(this.#b){this.#o?.(t,e,"set")}if(this.#F){this.#E?.push([t,e,"set"])}}}else if(!i){if(this.#b){this.#o?.(r,e,"set")}if(this.#F){this.#E?.push([r,e,"set"])}}this.#N(l);this.#M(l,c,u);this.#h[l]=t;if(u){u.set="replace";const e=r&&this.#_(r)?r.__staleWhileFetching:r;if(e!==undefined)u.oldValue=e}}else if(u){u.set="update"}}if(n!==0&&!this.#w){this.#L()}if(this.#w){if(!a){this.#B(l,n,s)}if(u)this.#P(u,l)}if(!i&&this.#F&&this.#E){const e=this.#E;let t;while(t=e?.shift()){this.#u?.(...t)}}return this}pop(){try{while(this.#c){const e=this.#h[this.#m];this.#j(true);if(this.#_(e)){if(e.__staleWhileFetching){return e.__staleWhileFetching}}else if(e!==undefined){return e}}}finally{if(this.#F&&this.#E){const e=this.#E;let t;while(t=e?.shift()){this.#u?.(...t)}}}}#j(e){const t=this.#m;const r=this.#p[t];const n=this.#h[t];if(this.#v&&this.#_(n)){n.__abortController.abort(new Error("evicted"))}else if(this.#b||this.#F){if(this.#b){this.#o?.(n,r,"evict")}if(this.#F){this.#E?.push([n,r,"evict"])}}this.#N(t);if(e){this.#p[t]=undefined;this.#h[t]=undefined;this.#A.push(t)}if(this.#c===1){this.#m=this.#D=0;this.#A.length=0}else{this.#m=this.#d[t]}this.#f.delete(r);this.#c--;return t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=t;const s=this.#f.get(e);if(s!==undefined){const e=this.#h[s];if(this.#_(e)&&e.__staleWhileFetching===undefined){return false}if(!this.#R(s)){if(r){this.#I(s)}if(n){n.has="hit";this.#P(n,s)}return true}else if(n){n.has="stale";this.#P(n,s)}}else if(n){n.has="miss"}return false}peek(e,t={}){const{allowStale:r=this.allowStale}=t;const n=this.#f.get(e);if(n===undefined||!r&&this.#R(n)){return}const s=this.#h[n];return this.#_(s)?s.__staleWhileFetching:s}#S(e,t,r,n){const s=t===undefined?undefined:this.#h[t];if(this.#_(s)){return s}const o=new i;const{signal:u}=r;u?.addEventListener("abort",(()=>o.abort(u.reason)),{signal:o.signal});const a={signal:o.signal,options:r,context:n};const cb=(n,s=false)=>{const{aborted:i}=o.signal;const u=r.ignoreFetchAbort&&n!==undefined;if(r.status){if(i&&!s){r.status.fetchAborted=true;r.status.fetchError=o.signal.reason;if(u)r.status.fetchAbortIgnored=true}else{r.status.fetchResolved=true}}if(i&&!u&&!s){return fetchFail(o.signal.reason)}const l=c;if(this.#h[t]===c){if(n===undefined){if(l.__staleWhileFetching){this.#h[t]=l.__staleWhileFetching}else{this.delete(e)}}else{if(r.status)r.status.fetchUpdated=true;this.set(e,n,a.options)}}return n};const eb=e=>{if(r.status){r.status.fetchRejected=true;r.status.fetchError=e}return fetchFail(e)};const fetchFail=n=>{const{aborted:s}=o.signal;const i=s&&r.allowStaleOnFetchAbort;const u=i||r.allowStaleOnFetchRejection;const a=u||r.noDeleteOnFetchRejection;const l=c;if(this.#h[t]===c){const r=!a||l.__staleWhileFetching===undefined;if(r){this.delete(e)}else if(!i){this.#h[t]=l.__staleWhileFetching}}if(u){if(r.status&&l.__staleWhileFetching!==undefined){r.status.returnedStale=true}return l.__staleWhileFetching}else if(l.__returned===l){throw n}};const pcall=(t,n)=>{const i=this.#a?.(e,s,a);if(i&&i instanceof Promise){i.then((e=>t(e===undefined?undefined:e)),n)}o.signal.addEventListener("abort",(()=>{if(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort){t(undefined);if(r.allowStaleOnFetchAbort){t=e=>cb(e,true)}}}))};if(r.status)r.status.fetchDispatched=true;const c=new Promise(pcall).then(cb,eb);const l=Object.assign(c,{__abortController:o,__staleWhileFetching:s,__returned:undefined});if(t===undefined){this.set(e,l,{...a.options,status:undefined});t=this.#f.get(e)}else{this.#h[t]=l}return l}#_(e){if(!this.#v)return false;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof i}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:u=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:d,forceRefresh:g=false,status:m,signal:D}=t;if(!this.#v){if(m)m.fetch="get";return this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:m})}const A={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:i,noDisposeOnSet:o,size:u,sizeCalculation:a,noUpdateTTL:c,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:h,ignoreFetchAbort:p,status:m,signal:D};let E=this.#f.get(e);if(E===undefined){if(m)m.fetch="miss";const t=this.#S(e,E,A,d);return t.__returned=t}else{const t=this.#h[E];if(this.#_(t)){const e=r&&t.__staleWhileFetching!==undefined;if(m){m.fetch="inflight";if(e)m.returnedStale=true}return e?t.__staleWhileFetching:t.__returned=t}const s=this.#R(E);if(!g&&!s){if(m)m.fetch="hit";this.#x(E);if(n){this.#I(E)}if(m)this.#P(m,E);return t}const i=this.#S(e,E,A,d);const o=i.__staleWhileFetching!==undefined;const u=o&&r;if(m){m.fetch=s?"stale":"refresh";if(u&&s)m.returnedStale=true}return u?i.__staleWhileFetching:i.__returned=i}}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:i}=t;const o=this.#f.get(e);if(o!==undefined){const t=this.#h[o];const u=this.#_(t);if(i)this.#P(i,o);if(this.#R(o)){if(i)i.get="stale";if(!u){if(!s){this.delete(e)}if(i&&r)i.returnedStale=true;return r?t:undefined}else{if(i&&r&&t.__staleWhileFetching!==undefined){i.returnedStale=true}return r?t.__staleWhileFetching:undefined}}else{if(i)i.get="hit";if(u){return t.__staleWhileFetching}this.#x(o);if(n){this.#I(o)}return t}}else if(i){i.get="miss"}}#G(e,t){this.#g[t]=e;this.#d[e]=t}#x(e){if(e!==this.#D){if(e===this.#m){this.#m=this.#d[e]}else{this.#G(this.#g[e],this.#d[e])}this.#G(this.#D,e);this.#D=e}}delete(e){let t=false;if(this.#c!==0){const r=this.#f.get(e);if(r!==undefined){t=true;if(this.#c===1){this.clear()}else{this.#N(r);const t=this.#h[r];if(this.#_(t)){t.__abortController.abort(new Error("deleted"))}else if(this.#b||this.#F){if(this.#b){this.#o?.(t,e,"delete")}if(this.#F){this.#E?.push([t,e,"delete"])}}this.#f.delete(e);this.#p[r]=undefined;this.#h[r]=undefined;if(r===this.#D){this.#D=this.#g[r]}else if(r===this.#m){this.#m=this.#d[r]}else{const e=this.#g[r];this.#d[e]=this.#d[r];const t=this.#d[r];this.#g[t]=this.#g[r]}this.#c--;this.#A.push(r)}}}if(this.#F&&this.#E?.length){const e=this.#E;let t;while(t=e?.shift()){this.#u?.(...t)}}return t}clear(){for(const e of this.#k({allowStale:true})){const t=this.#h[e];if(this.#_(t)){t.__abortController.abort(new Error("deleted"))}else{const r=this.#p[e];if(this.#b){this.#o?.(t,r,"delete")}if(this.#F){this.#E?.push([t,r,"delete"])}}}this.#f.clear();this.#h.fill(undefined);this.#p.fill(undefined);if(this.#w&&this.#C){this.#w.fill(0);this.#C.fill(0)}if(this.#y){this.#y.fill(0)}this.#m=0;this.#D=0;this.#A.length=0;this.#l=0;this.#c=0;if(this.#F&&this.#E){const e=this.#E;let t;while(t=e?.shift()){this.#u?.(...t)}}}}t.LRUCache=LRUCache},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"create-expo","version":"3.6.17","bin":"./build/index.js","main":"build","description":"Create universal Expo apps","license":"BSD-3-Clause","keywords":["expo","react-native","react"],"homepage":"https://docs.expo.dev","repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/create-expo"},"author":"Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)","files":["build","template"],"engines":{"node":">=18.13.0"},"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepare":"expo-module clean && yarn run build:prod","clean":"expo-module clean","lint":"expo-module lint","typecheck":"expo-module typecheck","test":"expo-module test","test:e2e":"expo-module test --config e2e/jest.config.js --runInBand","watch":"yarn run build --watch","prepublishOnly":"expo-module prepublishOnly"},"devDependencies":{"@expo/config":"~55.0.19","@expo/json-file":"^10.0.15","@expo/package-manager":"^1.10.6","@expo/spawn-async":"^1.7.2","@octokit/types":"^13.5.0","@types/debug":"^4.1.7","@types/getenv":"^1.0.0","@types/node":"^22.14.0","@types/picomatch":"^2.3.3","@types/prompts":"2.0.14","@vercel/ncc":"^0.38.3","arg":"^5.0.2","chalk":"^4.0.0","debug":"^4.3.4","expo-module-scripts":"^55.0.2","getenv":"^2.0.0","glob":"^13.0.0","nock":"^14.0.10","ora":"3.4.0","picomatch":"^2.3.1","prompts":"^2.4.2","multitars":"^1.0.0","update-check":"^1.5.4"},"gitHead":"c8f16914a2713c37fe446c46d613004626b3e6b3"}')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}s.loaded=true;return s.exports}__nccwpck_require__.m=e;(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(r,n){if(n&1)r=this(r);if(n&8)return r;if(typeof r==="object"&&r){if(n&4&&r.__esModule)return r;if(n&16&&typeof r.then==="function")return r}var s=Object.create(null);__nccwpck_require__.r(s);var i={};t=t||[null,e({}),e([]),e(e)];for(var o=n&2&&r;typeof o=="object"&&!~t.indexOf(o);o=e(o)){Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>r[e]))}i["default"]=()=>r;__nccwpck_require__.d(s,i);return s}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.f={};__nccwpck_require__.e=e=>Promise.all(Object.keys(__nccwpck_require__.f).reduce(((t,r)=>{__nccwpck_require__.f[r](e,t);return t}),[]))})();(()=>{__nccwpck_require__.u=e=>""+e+".index.js"})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";(()=>{var e={792:1};var installChunk=t=>{var r=t.modules,n=t.ids,s=t.runtime;for(var i in r){if(__nccwpck_require__.o(r,i)){__nccwpck_require__.m[i]=r[i]}}if(s)s(__nccwpck_require__);for(var o=0;o<n.length;o++)e[n[o]]=1};__nccwpck_require__.f.require=(t,r)=>{if(!e[t]){if(true){installChunk(require("./"+__nccwpck_require__.u(t)))}else e[t]=1}}})();var r={};(()=>{"use strict";__nccwpck_require__.r(r);var e=__nccwpck_require__(7674);var t=__nccwpck_require__.n(e);var n=__nccwpck_require__(4175);var s=__nccwpck_require__.n(n);var i=__nccwpck_require__(3130);process.title=i.V;if((0,n.boolish)("EXPO_DEBUG",false)){t().enable("expo:init:*")}else if(t().enabled("expo:init:")){process.env.EXPO_DEBUG="1"}__nccwpck_require__(3138)})();module.exports=r})();
|
|
49
|
+
`)}const{AnalyticsEventPhases:c,AnalyticsEventTypes:l,flushAsync:p,track:h}=await r.e(178).then(r.bind(r,9178));try{const s=await resolveStringOrBooleanArgsAsync(e,t,{"--template":Boolean,"--example":Boolean,"-t":"--template","-e":"--example"});f(`Default args:\n%O`,n);f(`Parsed:\n%O`,s);const{createAsync:i}=await Promise.all([r.e(691),r.e(303)]).then(r.bind(r,4303));await i(s.projectRoot,{yes:!!n["--yes"],template:s.args["--template"],example:s.args["--example"],install:!n["--no-install"]});h({event:l.CREATE_EXPO_APP,properties:{phase:c.SUCCESS}});await p()}catch(e){if(!(e instanceof o.R)){u.tG.exception(e)}h({event:l.CREATE_EXPO_APP,properties:{phase:c.FAIL,message:e.cause}});await p().finally((()=>{process.exit(e.code||1)}))}finally{const e=await(await r.e(654).then(r.bind(r,654))).default;await e()}}run()},3130:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});const n=r(8330).name},9696:(e,t,r)=>{"use strict";r.d(t,{R:()=>ExitError});class ExitError extends Error{cause;code;constructor(e,t){super(e instanceof Error?e.message:e);this.cause=e;this.code=t}}},8032:(e,t,r)=>{"use strict";r.d(t,{NS:()=>exit,tG:()=>o});var n=r(2325);var s=r.n(n);var i=r(9696);function error(...e){console.error(...e)}function exception(e){const{env:t}=r(4695);error(s().red(e.toString())+(t.EXPO_DEBUG?"\n"+s().gray(e.stack):""))}function log(...e){console.log(...e)}function exit(e,t=1){if(e instanceof Error){exception(e)}else if(e){if(t===0){log(e)}else{error(e)}}if(t!==0){throw new i.R(e,t)}process.exit(t)}const o={error:error,exception:exception,log:log,exit:exit}},1129:(e,t,r)=>{"use strict";r.d(t,{DC:()=>installDependenciesAsync,MZ:()=>configurePackageManager,Wq:()=>formatRunCommand,_c:()=>resolvePackageManager,fZ:()=>formatSelfCommand});var n=r(54);var s=r.n(n);var i=r(5317);var o=r.n(i);var u=r(3130);const a=r(7674)("expo:init:resolvePackageManager");function resolvePackageManager(){const e=process.env.npm_config_user_agent;a("npm_config_user_agent:",e);if(e?.startsWith("yarn")){return"yarn"}else if(e?.startsWith("pnpm")){return"pnpm"}else if(e?.startsWith("bun")){return"bun"}else if(e?.startsWith("npm")){return"npm"}if(isPackageManagerAvailable("yarn")){return"yarn"}else if(isPackageManagerAvailable("pnpm")){return"pnpm"}else if(isPackageManagerAvailable("bun")){return"bun"}return"npm"}function isPackageManagerAvailable(e){try{(0,i.execSync)(`${e} --version`,{stdio:"ignore"});return true}catch{}return false}function formatRunCommand(e,t){switch(e){case"pnpm":return`pnpm run ${t}`;case"yarn":return`yarn ${t}`;case"bun":return`bun run ${t}`;case"npm":default:return`npm run ${t}`}}function formatSelfCommand(){const e=resolvePackageManager();switch(e){case"pnpm":return`pnpx ${u.V}`;case"bun":return`bunx ${u.V}`;case"yarn":case"npm":default:return`npx ${u.V}`}}function createPackageManager(e,t){switch(e){case"yarn":return new n.YarnPackageManager(t);case"pnpm":return new n.PnpmPackageManager(t);case"bun":return new n.BunPackageManager(t);case"npm":default:return new n.NpmPackageManager(t)}}async function installDependenciesAsync(e,t,r={silent:false}){await createPackageManager(t,{cwd:e,silent:r.silent}).installAsync()}async function configurePackageManager(e,t,r={silent:false}){const n=createPackageManager(t,{cwd:e,...r});switch(n.name){case"pnpm":await n.runAsync(["config","--location","project","set","node-linker","hoisted"]);break;case"yarn":{const e=await n.versionAsync();const t=parseInt(e.split(".")[0],10);if(t>=2){await n.runAsync(["config","set","nodeLinker","node-modules"])}break}}}},4695:(e,t,r)=>{"use strict";r.r(t);r.d(t,{env:()=>i});var n=r(4175);var s=r.n(n);class Env{get EXPO_DEBUG(){return(0,n.boolish)("EXPO_DEBUG",false)}get EXPO_BETA(){return(0,n.boolish)("EXPO_BETA",false)}get CI(){return(0,n.boolish)("CI",false)}get EXPO_NO_CACHE(){return(0,n.boolish)("EXPO_NO_CACHE",false)}get EXPO_NO_TELEMETRY(){return(0,n.boolish)("EXPO_NO_TELEMETRY",false)}}const i=new Env},2613:e=>{"use strict";e.exports=require("assert")},181:e=>{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},6982:e=>{"use strict";e.exports=require("crypto")},2250:e=>{"use strict";e.exports=require("dns")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},3339:e=>{"use strict";e.exports=require("module")},7598:e=>{"use strict";e.exports=require("node:crypto")},8474:e=>{"use strict";e.exports=require("node:events")},3024:e=>{"use strict";e.exports=require("node:fs")},1455:e=>{"use strict";e.exports=require("node:fs/promises")},6760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},7075:e=>{"use strict";e.exports=require("node:stream")},6193:e=>{"use strict";e.exports=require("node:string_decoder")},3136:e=>{"use strict";e.exports=require("node:url")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},3785:e=>{"use strict";e.exports=require("readline")},2203:e=>{"use strict";e.exports=require("stream")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},6775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(6596);var s=r(3608);var i=r(3083);function isColorSupported(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?false:n.isColorSupported}const compose=(e,t)=>r=>e(t(r));function buildDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:compose(compose(e.white,e.bgRed),e.bold),gutter:e.gray,marker:compose(e.red,e.bold),message:compose(e.red,e.bold),reset:e.reset}}const o=buildDefs(n.createColors(true));const u=buildDefs(n.createColors(false));function getDefs(e){return e?o:u}const a=new Set(["as","async","from","get","of","set"]);const c=/\r\n|[\n\r\u2028\u2029]/;const l=/^[()[\]{}]$/;let f;const p=/^[a-z][\w-]*$/i;const getTokenType=function(e,t,r){if(e.type==="name"){const n=e.value;if(i.isKeyword(n)||i.isStrictReservedWord(n,true)||a.has(n)){return"keyword"}if(p.test(n)&&(r[t-1]==="<"||r.slice(t-2,t)==="</")){return"jsxIdentifier"}const s=String.fromCodePoint(n.codePointAt(0));if(s!==s.toLowerCase()){return"capitalized"}}if(e.type==="punctuator"&&l.test(e.value)){return"bracket"}if(e.type==="invalid"&&(e.value==="@"||e.value==="#")){return"punctuator"}return e.type};f=function*(e){let t;while(t=s.default.exec(e)){const r=s.matchToToken(t);yield{type:getTokenType(r,t.index,e),value:r.value}}};function highlight(e){if(e==="")return"";const t=getDefs(true);let r="";for(const{type:n,value:s}of f(e)){if(n in t){r+=s.split(c).map((e=>t[n](e))).join("\n")}else{r+=s}}return r}let h=false;const d=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r,n){const s=Object.assign({column:0,line:-1},e.start);const i=Object.assign({},s,e.end);const{linesAbove:o=2,linesBelow:u=3}=r||{};const a=s.line-n;const c=s.column;const l=i.line-n;const f=i.column;let p=Math.max(a-(o+1),0);let h=Math.min(t.length,l+u);if(a===-1){p=0}if(l===-1){h=t.length}const d=l-a;const g={};if(d){for(let e=0;e<=d;e++){const r=e+a;if(!c){g[r]=true}else if(e===0){const e=t[r-1].length;g[r]=[c,e-c+1]}else if(e===d){g[r]=[0,f]}else{const n=t[r-e].length;g[r]=[0,n]}}}else{if(c===f){if(c){g[a]=[c,0]}else{g[a]=true}}else{g[a]=[c,f-c]}}return{start:p,end:h,markerLines:g}}function codeFrameColumns(e,t,r={}){const n=r.forceColor||isColorSupported()&&r.highlightCode;const s=(r.startLine||1)-1;const i=getDefs(n);const o=e.split(d);const{start:u,end:a,markerLines:c}=getMarkerLines(t,o,r,s);const l=t.start&&typeof t.start.column==="number";const f=String(a+s).length;const p=n?highlight(e):e;let h=p.split(d,a).slice(u,a).map(((e,t)=>{const n=u+1+t;const o=` ${n+s}`.slice(-f);const a=` ${o} |`;const l=c[n];const p=!c[n+1];if(l){let t="";if(Array.isArray(l)){const n=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," ");const s=l[1]||1;t=["\n ",i.gutter(a.replace(/\d/g," "))," ",n,i.marker("^").repeat(s)].join("");if(p&&r.message){t+=" "+i.message(r.message)}}return[i.marker(">"),i.gutter(a),e.length>0?` ${e}`:"",t].join("")}else{return` ${i.gutter(a)}${e.length>0?` ${e}`:""}`}})).join("\n");if(r.message&&!l){h=`${" ".repeat(f+1)}${r.message}\n${h}`}if(n){return i.reset(h)}else{return h}}function index(e,t,r,n={}){if(!h){h=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}r=Math.max(r,0);const s={start:{column:r,line:t}};return codeFrameColumns(e,s,n)}t.codeFrameColumns=codeFrameColumns;t["default"]=index;t.highlight=highlight},5744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;t.isIdentifierStart=isIdentifierStart;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let n="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const s=new RegExp("["+r+"]");const i=new RegExp("["+r+n+"]");r=n=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489];const u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){r+=t[n];if(r>e)return false;r+=t[n+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&s.test(String.fromCharCode(e))}return isInAstralSet(e,o)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&i.test(String.fromCharCode(e))}return isInAstralSet(e,o)||isInAstralSet(e,u)}function isIdentifierName(e){let t=true;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){const t=e.charCodeAt(++r);if((t&64512)===56320){n=65536+((n&1023)<<10)+(t&1023)}}if(t){t=false;if(!isIdentifierStart(n)){return false}}else if(!isIdentifierChar(n)){return false}}return!t}},3083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return n.isIdentifierChar}});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return n.isIdentifierName}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return n.isIdentifierStart}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return s.isKeyword}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return s.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return s.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return s.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return s.isStrictReservedWord}});var n=r(5744);var s=r(728)},728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyword=isKeyword;t.isReservedWord=isReservedWord;t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;t.isStrictBindReservedWord=isStrictBindReservedWord;t.isStrictReservedWord=isStrictReservedWord;const r={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const n=new Set(r.keyword);const s=new Set(r.strict);const i=new Set(r.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||s.has(e)}function isStrictBindOnlyReservedWord(e){return i.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return n.has(e)}},3481:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LRUCache=void 0;const r=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const n=new Set;const s=typeof process==="object"&&!!process?process:{};const emitWarning=(e,t,r,n)=>{typeof s.emitWarning==="function"?s.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let i=globalThis.AbortController;let o=globalThis.AbortSignal;if(typeof i==="undefined"){o=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(e,t){this._onabort.push(t)}};i=class AbortController{constructor(){warnACPolyfill()}signal=new o;abort(e){if(this.signal.aborted)return;this.signal.reason=e;this.signal.aborted=true;for(const t of this.signal._onabort){t(e)}this.signal.onabort?.(e)}};let e=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!e)return;e=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=e=>!n.has(e);const u=Symbol("type");const isPosInt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e);const getUintArray=e=>!isPosInt(e)?null:e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(e){super(e);this.fill(0)}}class Stack{heap;length;static#n=false;static create(e){const t=getUintArray(e);if(!t)return[];Stack.#n=true;const r=new Stack(e,t);Stack.#n=false;return r}constructor(e,t){if(!Stack.#n){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new t(e);this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class LRUCache{#s;#i;#o;#u;#a;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#l;#f;#p;#h;#d;#g;#m;#D;#A;#E;#y;#C;#w;#b;#v;#F;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#w,sizes:e.#y,keyMap:e.#f,keyList:e.#p,valList:e.#h,next:e.#d,prev:e.#g,get head(){return e.#m},get tail(){return e.#D},free:e.#A,isBackgroundFetch:t=>e.#_(t),backgroundFetch:(t,r,n,s)=>e.#S(t,r,n,s),moveToTail:t=>e.#x(t),indexes:t=>e.#O(t),rindexes:t=>e.#k(t),isStale:t=>e.#R(t)}}get max(){return this.#s}get maxSize(){return this.#i}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#a}get dispose(){return this.#o}get disposeAfter(){return this.#u}constructor(e){const{max:t=0,ttl:r,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:u,allowStale:a,dispose:c,disposeAfter:l,noDisposeOnSet:f,noUpdateTTL:p,maxSize:h=0,maxEntrySize:d=0,sizeCalculation:g,fetchMethod:m,noDeleteOnFetchRejection:D,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:y,ignoreFetchAbort:C}=e;if(t!==0&&!isPosInt(t)){throw new TypeError("max option must be a nonnegative integer")}const w=t?getUintArray(t):Array;if(!w){throw new Error("invalid max value: "+t)}this.#s=t;this.#i=h;this.maxEntrySize=d||this.#i;this.sizeCalculation=g;if(this.sizeCalculation){if(!this.#i&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(m!==undefined&&typeof m!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#a=m;this.#v=!!m;this.#f=new Map;this.#p=new Array(t).fill(undefined);this.#h=new Array(t).fill(undefined);this.#d=new w(t);this.#g=new w(t);this.#m=0;this.#D=0;this.#A=Stack.create(t);this.#c=0;this.#l=0;if(typeof c==="function"){this.#o=c}if(typeof l==="function"){this.#u=l;this.#E=[]}else{this.#u=undefined;this.#E=undefined}this.#b=!!this.#o;this.#F=!!this.#u;this.noDisposeOnSet=!!f;this.noUpdateTTL=!!p;this.noDeleteOnFetchRejection=!!D;this.allowStaleOnFetchRejection=!!E;this.allowStaleOnFetchAbort=!!y;this.ignoreFetchAbort=!!C;if(this.maxEntrySize!==0){if(this.#i!==0){if(!isPosInt(this.#i)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#$()}this.allowStale=!!a;this.noDeleteOnStaleGet=!!A;this.updateAgeOnGet=!!o;this.updateAgeOnHas=!!u;this.ttlResolution=isPosInt(s)||s===0?s:1;this.ttlAutopurge=!!i;this.ttl=r||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#L()}if(this.#s===0&&this.ttl===0&&this.#i===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#s&&!this.#i){const e="LRU_CACHE_UNBOUNDED";if(shouldWarn(e)){n.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(t,"UnboundedCacheWarning",e,LRUCache)}}}getRemainingTTL(e){return this.#f.has(e)?Infinity:0}#L(){const e=new ZeroArray(this.#s);const t=new ZeroArray(this.#s);this.#w=e;this.#C=t;this.#B=(n,s,i=r.now())=>{t[n]=s!==0?i:0;e[n]=s;if(s!==0&&this.ttlAutopurge){const e=setTimeout((()=>{if(this.#R(n)){this.delete(this.#p[n])}}),s+1);if(e.unref){e.unref()}}};this.#I=n=>{t[n]=e[n]!==0?r.now():0};this.#P=(r,s)=>{if(e[s]){const i=e[s];const o=t[s];if(!i||!o)return;r.ttl=i;r.start=o;r.now=n||getNow();const u=r.now-o;r.remainingTTL=i-u}};let n=0;const getNow=()=>{const e=r.now();if(this.ttlResolution>0){n=e;const t=setTimeout((()=>n=0),this.ttlResolution);if(t.unref){t.unref()}}return e};this.getRemainingTTL=r=>{const s=this.#f.get(r);if(s===undefined){return 0}const i=e[s];const o=t[s];if(!i||!o){return Infinity}const u=(n||getNow())-o;return i-u};this.#R=r=>{const s=t[r];const i=e[r];return!!i&&!!s&&(n||getNow())-s>i}}#I=()=>{};#P=()=>{};#B=()=>{};#R=()=>false;#$(){const e=new ZeroArray(this.#s);this.#l=0;this.#y=e;this.#N=t=>{this.#l-=e[t];e[t]=0};this.#T=(e,t,r,n)=>{if(this.#_(t)){return 0}if(!isPosInt(r)){if(n){if(typeof n!=="function"){throw new TypeError("sizeCalculation must be a function")}r=n(t,e);if(!isPosInt(r)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return r};this.#M=(t,r,n)=>{e[t]=r;if(this.#i){const r=this.#i-e[t];while(this.#l>r){this.#j(true)}}this.#l+=e[t];if(n){n.entrySize=r;n.totalCalculatedSize=this.#l}}}#N=e=>{};#M=(e,t,r)=>{};#T=(e,t,r,n)=>{if(r||n){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#c){for(let t=this.#D;true;){if(!this.#H(t)){break}if(e||!this.#R(t)){yield t}if(t===this.#m){break}else{t=this.#g[t]}}}}*#k({allowStale:e=this.allowStale}={}){if(this.#c){for(let t=this.#m;true;){if(!this.#H(t)){break}if(e||!this.#R(t)){yield t}if(t===this.#D){break}else{t=this.#d[t]}}}}#H(e){return e!==undefined&&this.#f.get(this.#p[e])===e}*entries(){for(const e of this.#O()){if(this.#h[e]!==undefined&&this.#p[e]!==undefined&&!this.#_(this.#h[e])){yield[this.#p[e],this.#h[e]]}}}*rentries(){for(const e of this.#k()){if(this.#h[e]!==undefined&&this.#p[e]!==undefined&&!this.#_(this.#h[e])){yield[this.#p[e],this.#h[e]]}}}*keys(){for(const e of this.#O()){const t=this.#p[e];if(t!==undefined&&!this.#_(this.#h[e])){yield t}}}*rkeys(){for(const e of this.#k()){const t=this.#p[e];if(t!==undefined&&!this.#_(this.#h[e])){yield t}}}*values(){for(const e of this.#O()){const t=this.#h[e];if(t!==undefined&&!this.#_(this.#h[e])){yield this.#h[e]}}}*rvalues(){for(const e of this.#k()){const t=this.#h[e];if(t!==undefined&&!this.#_(this.#h[e])){yield this.#h[e]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#O()){const n=this.#h[r];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)continue;if(e(s,this.#p[r],this)){return this.get(this.#p[r],t)}}}forEach(e,t=this){for(const r of this.#O()){const n=this.#h[r];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)continue;e.call(t,s,this.#p[r],this)}}rforEach(e,t=this){for(const r of this.#k()){const n=this.#h[r];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)continue;e.call(t,s,this.#p[r],this)}}purgeStale(){let e=false;for(const t of this.#k({allowStale:true})){if(this.#R(t)){this.delete(this.#p[t]);e=true}}return e}info(e){const t=this.#f.get(e);if(t===undefined)return undefined;const n=this.#h[t];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)return undefined;const i={value:s};if(this.#w&&this.#C){const e=this.#w[t];const n=this.#C[t];if(e&&n){const t=e-(r.now()-n);i.ttl=t;i.start=Date.now()}}if(this.#y){i.size=this.#y[t]}return i}dump(){const e=[];for(const t of this.#O({allowStale:true})){const n=this.#p[t];const s=this.#h[t];const i=this.#_(s)?s.__staleWhileFetching:s;if(i===undefined||n===undefined)continue;const o={value:i};if(this.#w&&this.#C){o.ttl=this.#w[t];const e=r.now()-this.#C[t];o.start=Math.floor(Date.now()-e)}if(this.#y){o.size=this.#y[t]}e.unshift([n,o])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}set(e,t,r={}){if(t===undefined){this.delete(e);return this}const{ttl:n=this.ttl,start:s,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:u}=r;let{noUpdateTTL:a=this.noUpdateTTL}=r;const c=this.#T(e,t,r.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize){if(u){u.set="miss";u.maxEntrySizeExceeded=true}this.delete(e);return this}let l=this.#c===0?undefined:this.#f.get(e);if(l===undefined){l=this.#c===0?this.#D:this.#A.length!==0?this.#A.pop():this.#c===this.#s?this.#j(false):this.#c;this.#p[l]=e;this.#h[l]=t;this.#f.set(e,l);this.#d[this.#D]=l;this.#g[l]=this.#D;this.#D=l;this.#c++;this.#M(l,c,u);if(u)u.set="add";a=false}else{this.#x(l);const r=this.#h[l];if(t!==r){if(this.#v&&this.#_(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;if(t!==undefined&&!i){if(this.#b){this.#o?.(t,e,"set")}if(this.#F){this.#E?.push([t,e,"set"])}}}else if(!i){if(this.#b){this.#o?.(r,e,"set")}if(this.#F){this.#E?.push([r,e,"set"])}}this.#N(l);this.#M(l,c,u);this.#h[l]=t;if(u){u.set="replace";const e=r&&this.#_(r)?r.__staleWhileFetching:r;if(e!==undefined)u.oldValue=e}}else if(u){u.set="update"}}if(n!==0&&!this.#w){this.#L()}if(this.#w){if(!a){this.#B(l,n,s)}if(u)this.#P(u,l)}if(!i&&this.#F&&this.#E){const e=this.#E;let t;while(t=e?.shift()){this.#u?.(...t)}}return this}pop(){try{while(this.#c){const e=this.#h[this.#m];this.#j(true);if(this.#_(e)){if(e.__staleWhileFetching){return e.__staleWhileFetching}}else if(e!==undefined){return e}}}finally{if(this.#F&&this.#E){const e=this.#E;let t;while(t=e?.shift()){this.#u?.(...t)}}}}#j(e){const t=this.#m;const r=this.#p[t];const n=this.#h[t];if(this.#v&&this.#_(n)){n.__abortController.abort(new Error("evicted"))}else if(this.#b||this.#F){if(this.#b){this.#o?.(n,r,"evict")}if(this.#F){this.#E?.push([n,r,"evict"])}}this.#N(t);if(e){this.#p[t]=undefined;this.#h[t]=undefined;this.#A.push(t)}if(this.#c===1){this.#m=this.#D=0;this.#A.length=0}else{this.#m=this.#d[t]}this.#f.delete(r);this.#c--;return t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=t;const s=this.#f.get(e);if(s!==undefined){const e=this.#h[s];if(this.#_(e)&&e.__staleWhileFetching===undefined){return false}if(!this.#R(s)){if(r){this.#I(s)}if(n){n.has="hit";this.#P(n,s)}return true}else if(n){n.has="stale";this.#P(n,s)}}else if(n){n.has="miss"}return false}peek(e,t={}){const{allowStale:r=this.allowStale}=t;const n=this.#f.get(e);if(n===undefined||!r&&this.#R(n)){return}const s=this.#h[n];return this.#_(s)?s.__staleWhileFetching:s}#S(e,t,r,n){const s=t===undefined?undefined:this.#h[t];if(this.#_(s)){return s}const o=new i;const{signal:u}=r;u?.addEventListener("abort",(()=>o.abort(u.reason)),{signal:o.signal});const a={signal:o.signal,options:r,context:n};const cb=(n,s=false)=>{const{aborted:i}=o.signal;const u=r.ignoreFetchAbort&&n!==undefined;if(r.status){if(i&&!s){r.status.fetchAborted=true;r.status.fetchError=o.signal.reason;if(u)r.status.fetchAbortIgnored=true}else{r.status.fetchResolved=true}}if(i&&!u&&!s){return fetchFail(o.signal.reason)}const l=c;if(this.#h[t]===c){if(n===undefined){if(l.__staleWhileFetching){this.#h[t]=l.__staleWhileFetching}else{this.delete(e)}}else{if(r.status)r.status.fetchUpdated=true;this.set(e,n,a.options)}}return n};const eb=e=>{if(r.status){r.status.fetchRejected=true;r.status.fetchError=e}return fetchFail(e)};const fetchFail=n=>{const{aborted:s}=o.signal;const i=s&&r.allowStaleOnFetchAbort;const u=i||r.allowStaleOnFetchRejection;const a=u||r.noDeleteOnFetchRejection;const l=c;if(this.#h[t]===c){const r=!a||l.__staleWhileFetching===undefined;if(r){this.delete(e)}else if(!i){this.#h[t]=l.__staleWhileFetching}}if(u){if(r.status&&l.__staleWhileFetching!==undefined){r.status.returnedStale=true}return l.__staleWhileFetching}else if(l.__returned===l){throw n}};const pcall=(t,n)=>{const i=this.#a?.(e,s,a);if(i&&i instanceof Promise){i.then((e=>t(e===undefined?undefined:e)),n)}o.signal.addEventListener("abort",(()=>{if(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort){t(undefined);if(r.allowStaleOnFetchAbort){t=e=>cb(e,true)}}}))};if(r.status)r.status.fetchDispatched=true;const c=new Promise(pcall).then(cb,eb);const l=Object.assign(c,{__abortController:o,__staleWhileFetching:s,__returned:undefined});if(t===undefined){this.set(e,l,{...a.options,status:undefined});t=this.#f.get(e)}else{this.#h[t]=l}return l}#_(e){if(!this.#v)return false;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof i}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:u=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:d,forceRefresh:g=false,status:m,signal:D}=t;if(!this.#v){if(m)m.fetch="get";return this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:m})}const A={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:i,noDisposeOnSet:o,size:u,sizeCalculation:a,noUpdateTTL:c,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:h,ignoreFetchAbort:p,status:m,signal:D};let E=this.#f.get(e);if(E===undefined){if(m)m.fetch="miss";const t=this.#S(e,E,A,d);return t.__returned=t}else{const t=this.#h[E];if(this.#_(t)){const e=r&&t.__staleWhileFetching!==undefined;if(m){m.fetch="inflight";if(e)m.returnedStale=true}return e?t.__staleWhileFetching:t.__returned=t}const s=this.#R(E);if(!g&&!s){if(m)m.fetch="hit";this.#x(E);if(n){this.#I(E)}if(m)this.#P(m,E);return t}const i=this.#S(e,E,A,d);const o=i.__staleWhileFetching!==undefined;const u=o&&r;if(m){m.fetch=s?"stale":"refresh";if(u&&s)m.returnedStale=true}return u?i.__staleWhileFetching:i.__returned=i}}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:i}=t;const o=this.#f.get(e);if(o!==undefined){const t=this.#h[o];const u=this.#_(t);if(i)this.#P(i,o);if(this.#R(o)){if(i)i.get="stale";if(!u){if(!s){this.delete(e)}if(i&&r)i.returnedStale=true;return r?t:undefined}else{if(i&&r&&t.__staleWhileFetching!==undefined){i.returnedStale=true}return r?t.__staleWhileFetching:undefined}}else{if(i)i.get="hit";if(u){return t.__staleWhileFetching}this.#x(o);if(n){this.#I(o)}return t}}else if(i){i.get="miss"}}#G(e,t){this.#g[t]=e;this.#d[e]=t}#x(e){if(e!==this.#D){if(e===this.#m){this.#m=this.#d[e]}else{this.#G(this.#g[e],this.#d[e])}this.#G(this.#D,e);this.#D=e}}delete(e){let t=false;if(this.#c!==0){const r=this.#f.get(e);if(r!==undefined){t=true;if(this.#c===1){this.clear()}else{this.#N(r);const t=this.#h[r];if(this.#_(t)){t.__abortController.abort(new Error("deleted"))}else if(this.#b||this.#F){if(this.#b){this.#o?.(t,e,"delete")}if(this.#F){this.#E?.push([t,e,"delete"])}}this.#f.delete(e);this.#p[r]=undefined;this.#h[r]=undefined;if(r===this.#D){this.#D=this.#g[r]}else if(r===this.#m){this.#m=this.#d[r]}else{const e=this.#g[r];this.#d[e]=this.#d[r];const t=this.#d[r];this.#g[t]=this.#g[r]}this.#c--;this.#A.push(r)}}}if(this.#F&&this.#E?.length){const e=this.#E;let t;while(t=e?.shift()){this.#u?.(...t)}}return t}clear(){for(const e of this.#k({allowStale:true})){const t=this.#h[e];if(this.#_(t)){t.__abortController.abort(new Error("deleted"))}else{const r=this.#p[e];if(this.#b){this.#o?.(t,r,"delete")}if(this.#F){this.#E?.push([t,r,"delete"])}}}this.#f.clear();this.#h.fill(undefined);this.#p.fill(undefined);if(this.#w&&this.#C){this.#w.fill(0);this.#C.fill(0)}if(this.#y){this.#y.fill(0)}this.#m=0;this.#D=0;this.#A.length=0;this.#l=0;this.#c=0;if(this.#F&&this.#E){const e=this.#E;let t;while(t=e?.shift()){this.#u?.(...t)}}}}t.LRUCache=LRUCache},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"create-expo","version":"3.6.18","bin":"./build/index.js","main":"build","description":"Create universal Expo apps","license":"BSD-3-Clause","keywords":["expo","react-native","react"],"homepage":"https://docs.expo.dev","repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/create-expo"},"author":"Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)","files":["build","template"],"engines":{"node":">=18.13.0"},"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepare":"expo-module clean && yarn run build:prod","clean":"expo-module clean","lint":"expo-module lint","typecheck":"expo-module typecheck","test":"expo-module test","test:e2e":"expo-module test --config e2e/jest.config.js --runInBand","watch":"yarn run build --watch","prepublishOnly":"expo-module prepublishOnly"},"devDependencies":{"@expo/config":"~55.0.20","@expo/json-file":"^10.0.15","@expo/package-manager":"^1.10.6","@expo/spawn-async":"^1.7.2","@octokit/types":"^13.5.0","@types/debug":"^4.1.7","@types/getenv":"^1.0.0","@types/node":"^22.14.0","@types/picomatch":"^2.3.3","@types/prompts":"2.0.14","@vercel/ncc":"^0.38.3","arg":"^5.0.2","chalk":"^4.0.0","debug":"^4.3.4","expo-module-scripts":"^55.0.2","getenv":"^2.0.0","glob":"^13.0.0","memfs":"^3.2.0","multitars":"^1.0.2","nock":"^14.0.10","ora":"3.4.0","picomatch":"^2.3.1","prompts":"^2.4.2","update-check":"^1.5.4"},"gitHead":"764641f87074c1e49d004790c5a5983f4b5bfc6b"}')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}s.loaded=true;return s.exports}__nccwpck_require__.m=e;(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(r,n){if(n&1)r=this(r);if(n&8)return r;if(typeof r==="object"&&r){if(n&4&&r.__esModule)return r;if(n&16&&typeof r.then==="function")return r}var s=Object.create(null);__nccwpck_require__.r(s);var i={};t=t||[null,e({}),e([]),e(e)];for(var o=n&2&&r;typeof o=="object"&&!~t.indexOf(o);o=e(o)){Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>r[e]))}i["default"]=()=>r;__nccwpck_require__.d(s,i);return s}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.f={};__nccwpck_require__.e=e=>Promise.all(Object.keys(__nccwpck_require__.f).reduce(((t,r)=>{__nccwpck_require__.f[r](e,t);return t}),[]))})();(()=>{__nccwpck_require__.u=e=>""+e+".index.js"})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";(()=>{var e={792:1};var installChunk=t=>{var r=t.modules,n=t.ids,s=t.runtime;for(var i in r){if(__nccwpck_require__.o(r,i)){__nccwpck_require__.m[i]=r[i]}}if(s)s(__nccwpck_require__);for(var o=0;o<n.length;o++)e[n[o]]=1};__nccwpck_require__.f.require=(t,r)=>{if(!e[t]){if(true){installChunk(require("./"+__nccwpck_require__.u(t)))}else e[t]=1}}})();var r={};(()=>{"use strict";__nccwpck_require__.r(r);var e=__nccwpck_require__(7674);var t=__nccwpck_require__.n(e);var n=__nccwpck_require__(4175);var s=__nccwpck_require__.n(n);var i=__nccwpck_require__(3130);process.title=i.V;if((0,n.boolish)("EXPO_DEBUG",false)){t().enable("expo:init:*")}else if(t().enabled("expo:init:")){process.env.EXPO_DEBUG="1"}__nccwpck_require__(3138)})();module.exports=r})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-expo",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.18",
|
|
4
4
|
"bin": "./build/index.js",
|
|
5
5
|
"main": "build",
|
|
6
6
|
"description": "Create universal Expo apps",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"prepublishOnly": "expo-module prepublishOnly"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@expo/config": "~55.0.
|
|
40
|
+
"@expo/config": "~55.0.20",
|
|
41
41
|
"@expo/json-file": "^10.0.15",
|
|
42
42
|
"@expo/package-manager": "^1.10.6",
|
|
43
43
|
"@expo/spawn-async": "^1.7.2",
|
|
@@ -54,12 +54,13 @@
|
|
|
54
54
|
"expo-module-scripts": "^55.0.2",
|
|
55
55
|
"getenv": "^2.0.0",
|
|
56
56
|
"glob": "^13.0.0",
|
|
57
|
+
"memfs": "^3.2.0",
|
|
58
|
+
"multitars": "^1.0.2",
|
|
57
59
|
"nock": "^14.0.10",
|
|
58
60
|
"ora": "3.4.0",
|
|
59
61
|
"picomatch": "^2.3.1",
|
|
60
62
|
"prompts": "^2.4.2",
|
|
61
|
-
"multitars": "^1.0.0",
|
|
62
63
|
"update-check": "^1.5.4"
|
|
63
64
|
},
|
|
64
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "764641f87074c1e49d004790c5a5983f4b5bfc6b"
|
|
65
66
|
}
|