pnpm 11.27.1 → 11.28.0

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/dist/worker.js CHANGED
@@ -4760,15 +4760,15 @@ var require_bole = __commonJS({
4760
4760
  var individual = require_individual()("$$bole", { fastTime: false });
4761
4761
  var format = require_format();
4762
4762
  var levels = "debug info warn error".split(" ");
4763
- var os = __require("os");
4763
+ var os2 = __require("os");
4764
4764
  var pid = process.pid;
4765
4765
  var hasObjMode = false;
4766
4766
  var scache = [];
4767
4767
  var hostname;
4768
4768
  try {
4769
- hostname = os.hostname();
4769
+ hostname = os2.hostname();
4770
4770
  } catch (e) {
4771
- hostname = os.version().indexOf("Windows 7 ") === 0 ? "windows7" : "hostname-unknown";
4771
+ hostname = os2.version().indexOf("Windows 7 ") === 0 ? "windows7" : "hostname-unknown";
4772
4772
  }
4773
4773
  var hostnameSt = _stringify(hostname);
4774
4774
  for (const level of levels) {
@@ -6584,6 +6584,583 @@ var require_lib3 = __commonJS({
6584
6584
  }
6585
6585
  });
6586
6586
 
6587
+ // ../../../../../setup-pnpm/store/v11/links/@/bz2/1.0.1/139e6cee395ddb8e294e731242c5c23c8559e0c0cd4e82cba0a199a345f06b4f/node_modules/bz2/index.js
6588
+ var require_bz2 = __commonJS({
6589
+ "../../../../../setup-pnpm/store/v11/links/@/bz2/1.0.1/139e6cee395ddb8e294e731242c5c23c8559e0c0cd4e82cba0a199a345f06b4f/node_modules/bz2/index.js"(exports, module) {
6590
+ "use strict";
6591
+ (function bz22() {
6592
+ const crc32Table = [
6593
+ 0,
6594
+ 79764919,
6595
+ 159529838,
6596
+ 222504665,
6597
+ 319059676,
6598
+ 398814059,
6599
+ 445009330,
6600
+ 507990021,
6601
+ 638119352,
6602
+ 583659535,
6603
+ 797628118,
6604
+ 726387553,
6605
+ 890018660,
6606
+ 835552979,
6607
+ 1015980042,
6608
+ 944750013,
6609
+ 1276238704,
6610
+ 1221641927,
6611
+ 1167319070,
6612
+ 1095957929,
6613
+ 1595256236,
6614
+ 1540665371,
6615
+ 1452775106,
6616
+ 1381403509,
6617
+ 1780037320,
6618
+ 1859660671,
6619
+ 1671105958,
6620
+ 1733955601,
6621
+ 2031960084,
6622
+ 2111593891,
6623
+ 1889500026,
6624
+ 1952343757,
6625
+ 2552477408,
6626
+ 2632100695,
6627
+ 2443283854,
6628
+ 2506133561,
6629
+ 2334638140,
6630
+ 2414271883,
6631
+ 2191915858,
6632
+ 2254759653,
6633
+ 3190512472,
6634
+ 3135915759,
6635
+ 3081330742,
6636
+ 3009969537,
6637
+ 2905550212,
6638
+ 2850959411,
6639
+ 2762807018,
6640
+ 2691435357,
6641
+ 3560074640,
6642
+ 3505614887,
6643
+ 3719321342,
6644
+ 3648080713,
6645
+ 3342211916,
6646
+ 3287746299,
6647
+ 3467911202,
6648
+ 3396681109,
6649
+ 4063920168,
6650
+ 4143685023,
6651
+ 4223187782,
6652
+ 4286162673,
6653
+ 3779000052,
6654
+ 3858754371,
6655
+ 3904687514,
6656
+ 3967668269,
6657
+ 881225847,
6658
+ 809987520,
6659
+ 1023691545,
6660
+ 969234094,
6661
+ 662832811,
6662
+ 591600412,
6663
+ 771767749,
6664
+ 717299826,
6665
+ 311336399,
6666
+ 374308984,
6667
+ 453813921,
6668
+ 533576470,
6669
+ 25881363,
6670
+ 88864420,
6671
+ 134795389,
6672
+ 214552010,
6673
+ 2023205639,
6674
+ 2086057648,
6675
+ 1897238633,
6676
+ 1976864222,
6677
+ 1804852699,
6678
+ 1867694188,
6679
+ 1645340341,
6680
+ 1724971778,
6681
+ 1587496639,
6682
+ 1516133128,
6683
+ 1461550545,
6684
+ 1406951526,
6685
+ 1302016099,
6686
+ 1230646740,
6687
+ 1142491917,
6688
+ 1087903418,
6689
+ 2896545431,
6690
+ 2825181984,
6691
+ 2770861561,
6692
+ 2716262478,
6693
+ 3215044683,
6694
+ 3143675388,
6695
+ 3055782693,
6696
+ 3001194130,
6697
+ 2326604591,
6698
+ 2389456536,
6699
+ 2200899649,
6700
+ 2280525302,
6701
+ 2578013683,
6702
+ 2640855108,
6703
+ 2418763421,
6704
+ 2498394922,
6705
+ 3769900519,
6706
+ 3832873040,
6707
+ 3912640137,
6708
+ 3992402750,
6709
+ 4088425275,
6710
+ 4151408268,
6711
+ 4197601365,
6712
+ 4277358050,
6713
+ 3334271071,
6714
+ 3263032808,
6715
+ 3476998961,
6716
+ 3422541446,
6717
+ 3585640067,
6718
+ 3514407732,
6719
+ 3694837229,
6720
+ 3640369242,
6721
+ 1762451694,
6722
+ 1842216281,
6723
+ 1619975040,
6724
+ 1682949687,
6725
+ 2047383090,
6726
+ 2127137669,
6727
+ 1938468188,
6728
+ 2001449195,
6729
+ 1325665622,
6730
+ 1271206113,
6731
+ 1183200824,
6732
+ 1111960463,
6733
+ 1543535498,
6734
+ 1489069629,
6735
+ 1434599652,
6736
+ 1363369299,
6737
+ 622672798,
6738
+ 568075817,
6739
+ 748617968,
6740
+ 677256519,
6741
+ 907627842,
6742
+ 853037301,
6743
+ 1067152940,
6744
+ 995781531,
6745
+ 51762726,
6746
+ 131386257,
6747
+ 177728840,
6748
+ 240578815,
6749
+ 269590778,
6750
+ 349224269,
6751
+ 429104020,
6752
+ 491947555,
6753
+ 4046411278,
6754
+ 4126034873,
6755
+ 4172115296,
6756
+ 4234965207,
6757
+ 3794477266,
6758
+ 3874110821,
6759
+ 3953728444,
6760
+ 4016571915,
6761
+ 3609705398,
6762
+ 3555108353,
6763
+ 3735388376,
6764
+ 3664026991,
6765
+ 3290680682,
6766
+ 3236090077,
6767
+ 3449943556,
6768
+ 3378572211,
6769
+ 3174993278,
6770
+ 3120533705,
6771
+ 3032266256,
6772
+ 2961025959,
6773
+ 2923101090,
6774
+ 2868635157,
6775
+ 2813903052,
6776
+ 2742672763,
6777
+ 2604032198,
6778
+ 2683796849,
6779
+ 2461293480,
6780
+ 2524268063,
6781
+ 2284983834,
6782
+ 2364738477,
6783
+ 2175806836,
6784
+ 2238787779,
6785
+ 1569362073,
6786
+ 1498123566,
6787
+ 1409854455,
6788
+ 1355396672,
6789
+ 1317987909,
6790
+ 1246755826,
6791
+ 1192025387,
6792
+ 1137557660,
6793
+ 2072149281,
6794
+ 2135122070,
6795
+ 1912620623,
6796
+ 1992383480,
6797
+ 1753615357,
6798
+ 1816598090,
6799
+ 1627664531,
6800
+ 1707420964,
6801
+ 295390185,
6802
+ 358241886,
6803
+ 404320391,
6804
+ 483945776,
6805
+ 43990325,
6806
+ 106832002,
6807
+ 186451547,
6808
+ 266083308,
6809
+ 932423249,
6810
+ 861060070,
6811
+ 1041341759,
6812
+ 986742920,
6813
+ 613929101,
6814
+ 542559546,
6815
+ 756411363,
6816
+ 701822548,
6817
+ 3316196985,
6818
+ 3244833742,
6819
+ 3425377559,
6820
+ 3370778784,
6821
+ 3601682597,
6822
+ 3530312978,
6823
+ 3744426955,
6824
+ 3689838204,
6825
+ 3819031489,
6826
+ 3881883254,
6827
+ 3928223919,
6828
+ 4007849240,
6829
+ 4037393693,
6830
+ 4100235434,
6831
+ 4180117107,
6832
+ 4259748804,
6833
+ 2310601993,
6834
+ 2373574846,
6835
+ 2151335527,
6836
+ 2231098320,
6837
+ 2596047829,
6838
+ 2659030626,
6839
+ 2470359227,
6840
+ 2550115596,
6841
+ 2947551409,
6842
+ 2876312838,
6843
+ 2788305887,
6844
+ 2733848168,
6845
+ 3165939309,
6846
+ 3094707162,
6847
+ 3040238851,
6848
+ 2985771188
6849
+ ];
6850
+ const masks = [
6851
+ 0,
6852
+ 1,
6853
+ 3,
6854
+ 7,
6855
+ 15,
6856
+ 31,
6857
+ 63,
6858
+ 127,
6859
+ 255,
6860
+ 511,
6861
+ 1023,
6862
+ 2047,
6863
+ 4095,
6864
+ 8191,
6865
+ 16383,
6866
+ 32767,
6867
+ 65535,
6868
+ 131071,
6869
+ 262143,
6870
+ 524287,
6871
+ 1048575,
6872
+ 2097151,
6873
+ 4194303,
6874
+ 8388607,
6875
+ 16777215,
6876
+ 33554431,
6877
+ 67108863,
6878
+ 134217727,
6879
+ 268435455,
6880
+ 536870911,
6881
+ 1073741823,
6882
+ -2147483648
6883
+ ];
6884
+ function createOrderedHuffmanTable(lengths) {
6885
+ const z = [];
6886
+ for (let i = 0; i < lengths.length; i += 1) {
6887
+ z.push([i, lengths[i]]);
6888
+ }
6889
+ z.push([lengths.length, -1]);
6890
+ const table = [];
6891
+ let start = z[0][0];
6892
+ let bits = z[0][1];
6893
+ for (let i = 0; i < z.length; i += 1) {
6894
+ const finish = z[i][0];
6895
+ const endbits = z[i][1];
6896
+ if (bits) {
6897
+ for (let code = start; code < finish; code += 1) {
6898
+ table.push({ code, bits, symbol: void 0 });
6899
+ }
6900
+ }
6901
+ start = finish;
6902
+ bits = endbits;
6903
+ if (endbits === -1) {
6904
+ break;
6905
+ }
6906
+ }
6907
+ table.sort((a, b) => a.bits - b.bits || a.code - b.code);
6908
+ let tempBits = 0;
6909
+ let symbol = -1;
6910
+ const fastAccess = [];
6911
+ let current;
6912
+ for (let i = 0; i < table.length; i += 1) {
6913
+ const t = table[i];
6914
+ symbol += 1;
6915
+ if (t.bits !== tempBits) {
6916
+ symbol <<= t.bits - tempBits;
6917
+ tempBits = t.bits;
6918
+ current = fastAccess[tempBits] = {};
6919
+ }
6920
+ t.symbol = symbol;
6921
+ current[symbol] = t;
6922
+ }
6923
+ return {
6924
+ table,
6925
+ fastAccess
6926
+ };
6927
+ }
6928
+ function bwtReverse(src2, primary) {
6929
+ if (primary < 0 || primary >= src2.length) {
6930
+ throw RangeError("Out of bound");
6931
+ }
6932
+ const unsorted = src2.slice();
6933
+ src2.sort((a, b) => a - b);
6934
+ const start = {};
6935
+ for (let i2 = src2.length - 1; i2 >= 0; i2 -= 1) {
6936
+ start[src2[i2]] = i2;
6937
+ }
6938
+ const links = [];
6939
+ for (let i2 = 0; i2 < src2.length; i2 += 1) {
6940
+ links.push(start[unsorted[i2]]++);
6941
+ }
6942
+ let i;
6943
+ const first = src2[i = primary];
6944
+ const ret = [];
6945
+ for (let j = 1; j < src2.length; j += 1) {
6946
+ const x = src2[i = links[i]];
6947
+ if (x === void 0) {
6948
+ ret.push(255);
6949
+ } else {
6950
+ ret.push(x);
6951
+ }
6952
+ }
6953
+ ret.push(first);
6954
+ ret.reverse();
6955
+ return ret;
6956
+ }
6957
+ function decompress(bytes, checkCRC = false) {
6958
+ let index = 0;
6959
+ let bitfield = 0;
6960
+ let bits = 0;
6961
+ const read2 = (n) => {
6962
+ if (n >= 32) {
6963
+ const nd = n >> 1;
6964
+ return read2(nd) * (1 << nd) + read2(n - nd);
6965
+ }
6966
+ while (bits < n) {
6967
+ bitfield = (bitfield << 8) + bytes[index];
6968
+ index += 1;
6969
+ bits += 8;
6970
+ }
6971
+ const m = masks[n];
6972
+ const r = bitfield >> bits - n & m;
6973
+ bits -= n;
6974
+ bitfield &= ~(m << bits);
6975
+ return r;
6976
+ };
6977
+ const magic = read2(16);
6978
+ if (magic !== 16986) {
6979
+ throw new Error("Invalid magic");
6980
+ }
6981
+ const method = read2(8);
6982
+ if (method !== 104) {
6983
+ throw new Error("Invalid method");
6984
+ }
6985
+ let blocksize = read2(8);
6986
+ if (blocksize >= 49 && blocksize <= 57) {
6987
+ blocksize -= 48;
6988
+ } else {
6989
+ throw new Error("Invalid blocksize");
6990
+ }
6991
+ let out = new Uint8Array(bytes.length * 1.5);
6992
+ let outIndex = 0;
6993
+ let newCRC = -1;
6994
+ while (true) {
6995
+ const blocktype = read2(48);
6996
+ const crc = read2(32) | 0;
6997
+ if (blocktype === 54156738319193) {
6998
+ if (read2(1)) {
6999
+ throw new Error("do not support randomised");
7000
+ }
7001
+ const pointer = read2(24);
7002
+ const used = [];
7003
+ const usedGroups = read2(16);
7004
+ for (let i2 = 1 << 15; i2 > 0; i2 >>= 1) {
7005
+ if (!(usedGroups & i2)) {
7006
+ for (let j = 0; j < 16; j += 1) {
7007
+ used.push(false);
7008
+ }
7009
+ continue;
7010
+ }
7011
+ const usedChars = read2(16);
7012
+ for (let j = 1 << 15; j > 0; j >>= 1) {
7013
+ used.push(!!(usedChars & j));
7014
+ }
7015
+ }
7016
+ const groups = read2(3);
7017
+ if (groups < 2 || groups > 6) {
7018
+ throw new Error("Invalid number of huffman groups");
7019
+ }
7020
+ const selectorsUsed = read2(15);
7021
+ const selectors = [];
7022
+ const mtf = Array.from({ length: groups }, (_, i2) => i2);
7023
+ for (let i2 = 0; i2 < selectorsUsed; i2 += 1) {
7024
+ let c = 0;
7025
+ while (read2(1)) {
7026
+ c += 1;
7027
+ if (c >= groups) {
7028
+ throw new Error("MTF table out of range");
7029
+ }
7030
+ }
7031
+ const v = mtf[c];
7032
+ for (let j = c; j > 0; mtf[j] = mtf[--j]) {
7033
+ }
7034
+ selectors.push(v);
7035
+ mtf[0] = v;
7036
+ }
7037
+ const symbolsInUse = used.reduce((a, b) => a + b, 0) + 2;
7038
+ const tables = [];
7039
+ for (let i2 = 0; i2 < groups; i2 += 1) {
7040
+ let length = read2(5);
7041
+ const lengths = [];
7042
+ for (let j = 0; j < symbolsInUse; j += 1) {
7043
+ if (length < 0 || length > 20) {
7044
+ throw new Error("Huffman group length outside range");
7045
+ }
7046
+ while (read2(1)) {
7047
+ length -= read2(1) * 2 - 1;
7048
+ }
7049
+ lengths.push(length);
7050
+ }
7051
+ tables.push(createOrderedHuffmanTable(lengths));
7052
+ }
7053
+ const favourites = [];
7054
+ for (let i2 = 0; i2 < used.length - 1; i2 += 1) {
7055
+ if (used[i2]) {
7056
+ favourites.push(i2);
7057
+ }
7058
+ }
7059
+ let decoded = 0;
7060
+ let selectorPointer = 0;
7061
+ let t;
7062
+ let r;
7063
+ let repeat = 0;
7064
+ let repeatPower = 0;
7065
+ const buffer = [];
7066
+ while (true) {
7067
+ decoded -= 1;
7068
+ if (decoded <= 0) {
7069
+ decoded = 50;
7070
+ if (selectorPointer <= selectors.length) {
7071
+ t = tables[selectors[selectorPointer]];
7072
+ selectorPointer += 1;
7073
+ }
7074
+ }
7075
+ for (const b in t.fastAccess) {
7076
+ if (!Object.prototype.hasOwnProperty.call(t.fastAccess, b)) {
7077
+ continue;
7078
+ }
7079
+ if (bits < b) {
7080
+ bitfield = (bitfield << 8) + bytes[index];
7081
+ index += 1;
7082
+ bits += 8;
7083
+ }
7084
+ r = t.fastAccess[b][bitfield >> bits - b];
7085
+ if (r) {
7086
+ bitfield &= masks[bits -= b];
7087
+ r = r.code;
7088
+ break;
7089
+ }
7090
+ }
7091
+ if (r >= 0 && r <= 1) {
7092
+ if (repeat === 0) {
7093
+ repeatPower = 1;
7094
+ }
7095
+ repeat += repeatPower << r;
7096
+ repeatPower <<= 1;
7097
+ continue;
7098
+ } else {
7099
+ const v = favourites[0];
7100
+ for (; repeat > 0; repeat -= 1) {
7101
+ buffer.push(v);
7102
+ }
7103
+ }
7104
+ if (r === symbolsInUse - 1) {
7105
+ break;
7106
+ } else {
7107
+ const v = favourites[r - 1];
7108
+ for (let j = r - 1; j > 0; favourites[j] = favourites[--j]) {
7109
+ }
7110
+ favourites[0] = v;
7111
+ buffer.push(v);
7112
+ }
7113
+ }
7114
+ const nt = bwtReverse(buffer, pointer);
7115
+ let i = 0;
7116
+ while (i < nt.length) {
7117
+ const c = nt[i];
7118
+ let count = 1;
7119
+ if (i < nt.length - 4 && nt[i + 1] === c && nt[i + 2] === c && nt[i + 3] === c) {
7120
+ count = nt[i + 4] + 4;
7121
+ i += 5;
7122
+ } else {
7123
+ i += 1;
7124
+ }
7125
+ if (outIndex + count >= out.length) {
7126
+ const old = out;
7127
+ out = new Uint8Array(old.length * 2);
7128
+ out.set(old);
7129
+ }
7130
+ for (let j = 0; j < count; j += 1) {
7131
+ if (checkCRC) {
7132
+ newCRC = newCRC << 8 ^ crc32Table[(newCRC >> 24 ^ c) & 255];
7133
+ }
7134
+ out[outIndex] = c;
7135
+ outIndex += 1;
7136
+ }
7137
+ }
7138
+ if (checkCRC) {
7139
+ const calculatedCRC = newCRC ^ -1;
7140
+ if (calculatedCRC !== crc) {
7141
+ throw new Error(`CRC mismatch: ${calculatedCRC} !== ${crc}`);
7142
+ }
7143
+ newCRC = -1;
7144
+ }
7145
+ } else if (blocktype === 25779555029136) {
7146
+ read2(bits & 7);
7147
+ break;
7148
+ } else {
7149
+ throw new Error("Invalid bz2 blocktype");
7150
+ }
7151
+ }
7152
+ return out.subarray(0, outIndex);
7153
+ }
7154
+ const exports2 = { decompress };
7155
+ if (typeof window !== "undefined") {
7156
+ window.bz2 = exports2;
7157
+ } else {
7158
+ module.exports = exports2;
7159
+ }
7160
+ })();
7161
+ }
7162
+ });
7163
+
6587
7164
  // ../../../../../setup-pnpm/store/v11/links/@/is-gzip/2.0.0/82a8e17050fa38e95e62aa7580ddf517da43682e2ea1a94728382ef43c644d04/node_modules/is-gzip/index.js
6588
7165
  var require_is_gzip = __commonJS({
6589
7166
  "../../../../../setup-pnpm/store/v11/links/@/is-gzip/2.0.0/82a8e17050fa38e95e62aa7580ddf517da43682e2ea1a94728382ef43c644d04/node_modules/is-gzip/index.js"(exports, module) {
@@ -8077,9 +8654,9 @@ var require_semver2 = __commonJS({
8077
8654
  }
8078
8655
  });
8079
8656
 
8080
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/fs/index.js
8657
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/fs/index.js
8081
8658
  var require_fs2 = __commonJS({
8082
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/fs/index.js"(exports) {
8659
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/fs/index.js"(exports) {
8083
8660
  "use strict";
8084
8661
  var u = require_universalify().fromCallback;
8085
8662
  var fs15 = require_graceful_fs();
@@ -8193,9 +8770,9 @@ var require_fs2 = __commonJS({
8193
8770
  }
8194
8771
  });
8195
8772
 
8196
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/mkdirs/utils.js
8773
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/mkdirs/utils.js
8197
8774
  var require_utils3 = __commonJS({
8198
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
8775
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
8199
8776
  "use strict";
8200
8777
  var path18 = __require("path");
8201
8778
  module.exports.checkPath = function checkPath(pth) {
@@ -8211,9 +8788,9 @@ var require_utils3 = __commonJS({
8211
8788
  }
8212
8789
  });
8213
8790
 
8214
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/mkdirs/make-dir.js
8791
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/mkdirs/make-dir.js
8215
8792
  var require_make_dir2 = __commonJS({
8216
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) {
8793
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) {
8217
8794
  "use strict";
8218
8795
  var fs15 = require_fs2();
8219
8796
  var { checkPath } = require_utils3();
@@ -8239,9 +8816,9 @@ var require_make_dir2 = __commonJS({
8239
8816
  }
8240
8817
  });
8241
8818
 
8242
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/mkdirs/index.js
8819
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/mkdirs/index.js
8243
8820
  var require_mkdirs2 = __commonJS({
8244
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module) {
8821
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module) {
8245
8822
  "use strict";
8246
8823
  var u = require_universalify().fromPromise;
8247
8824
  var { makeDir: _makeDir, makeDirSync } = require_make_dir2();
@@ -8258,9 +8835,9 @@ var require_mkdirs2 = __commonJS({
8258
8835
  }
8259
8836
  });
8260
8837
 
8261
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/path-exists/index.js
8838
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/path-exists/index.js
8262
8839
  var require_path_exists2 = __commonJS({
8263
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/path-exists/index.js"(exports, module) {
8840
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/path-exists/index.js"(exports, module) {
8264
8841
  "use strict";
8265
8842
  var u = require_universalify().fromPromise;
8266
8843
  var fs15 = require_fs2();
@@ -8274,9 +8851,9 @@ var require_path_exists2 = __commonJS({
8274
8851
  }
8275
8852
  });
8276
8853
 
8277
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/util/utimes.js
8854
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/util/utimes.js
8278
8855
  var require_utimes2 = __commonJS({
8279
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/util/utimes.js"(exports, module) {
8856
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/util/utimes.js"(exports, module) {
8280
8857
  "use strict";
8281
8858
  var fs15 = require_fs2();
8282
8859
  var u = require_universalify().fromPromise;
@@ -8323,9 +8900,9 @@ var require_utimes2 = __commonJS({
8323
8900
  }
8324
8901
  });
8325
8902
 
8326
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/util/stat.js
8903
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/util/stat.js
8327
8904
  var require_stat2 = __commonJS({
8328
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
8905
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
8329
8906
  "use strict";
8330
8907
  var fs15 = require_fs2();
8331
8908
  var path18 = __require("path");
@@ -8358,7 +8935,7 @@ var require_stat2 = __commonJS({
8358
8935
  if (areIdentical(srcStat, destStat)) {
8359
8936
  const srcBaseName = path18.basename(src2);
8360
8937
  const destBaseName = path18.basename(dest);
8361
- if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
8938
+ if (funcName === "move" && srcBaseName !== destBaseName && isCosmeticRename(srcBaseName, destBaseName)) {
8362
8939
  return { srcStat, destStat, isChangingCase: true };
8363
8940
  }
8364
8941
  throw new Error("Source and destination must not be the same.");
@@ -8381,7 +8958,7 @@ var require_stat2 = __commonJS({
8381
8958
  if (areIdentical(srcStat, destStat)) {
8382
8959
  const srcBaseName = path18.basename(src2);
8383
8960
  const destBaseName = path18.basename(dest);
8384
- if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
8961
+ if (funcName === "move" && srcBaseName !== destBaseName && isCosmeticRename(srcBaseName, destBaseName)) {
8385
8962
  return { srcStat, destStat, isChangingCase: true };
8386
8963
  }
8387
8964
  throw new Error("Source and destination must not be the same.");
@@ -8398,6 +8975,9 @@ var require_stat2 = __commonJS({
8398
8975
  }
8399
8976
  return { srcStat, destStat };
8400
8977
  }
8978
+ function isCosmeticRename(srcBaseName, destBaseName) {
8979
+ return srcBaseName.toLowerCase().normalize("NFC") === destBaseName.toLowerCase().normalize("NFC");
8980
+ }
8401
8981
  async function checkParentPaths(src2, srcStat, dest, funcName) {
8402
8982
  const srcParent = path18.resolve(path18.dirname(src2));
8403
8983
  const destParent = path18.resolve(path18.dirname(dest));
@@ -8455,9 +9035,9 @@ var require_stat2 = __commonJS({
8455
9035
  }
8456
9036
  });
8457
9037
 
8458
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/util/async.js
9038
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/util/async.js
8459
9039
  var require_async2 = __commonJS({
8460
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/util/async.js"(exports, module) {
9040
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/util/async.js"(exports, module) {
8461
9041
  "use strict";
8462
9042
  async function asyncIteratorConcurrentProcess(iterator, fn) {
8463
9043
  const promises = [];
@@ -8483,9 +9063,9 @@ var require_async2 = __commonJS({
8483
9063
  }
8484
9064
  });
8485
9065
 
8486
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/copy/copy.js
9066
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/copy/copy.js
8487
9067
  var require_copy3 = __commonJS({
8488
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
9068
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
8489
9069
  "use strict";
8490
9070
  var fs15 = require_fs2();
8491
9071
  var path18 = __require("path");
@@ -8609,9 +9189,9 @@ var require_copy3 = __commonJS({
8609
9189
  }
8610
9190
  });
8611
9191
 
8612
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/copy/copy-sync.js
9192
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/copy/copy-sync.js
8613
9193
  var require_copy_sync2 = __commonJS({
8614
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
9194
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
8615
9195
  "use strict";
8616
9196
  var fs15 = require_graceful_fs();
8617
9197
  var path18 = __require("path");
@@ -8747,9 +9327,9 @@ var require_copy_sync2 = __commonJS({
8747
9327
  }
8748
9328
  });
8749
9329
 
8750
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/copy/index.js
9330
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/copy/index.js
8751
9331
  var require_copy4 = __commonJS({
8752
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/copy/index.js"(exports, module) {
9332
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/copy/index.js"(exports, module) {
8753
9333
  "use strict";
8754
9334
  var u = require_universalify().fromPromise;
8755
9335
  module.exports = {
@@ -8759,9 +9339,9 @@ var require_copy4 = __commonJS({
8759
9339
  }
8760
9340
  });
8761
9341
 
8762
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/remove/index.js
9342
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/remove/index.js
8763
9343
  var require_remove2 = __commonJS({
8764
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/remove/index.js"(exports, module) {
9344
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/remove/index.js"(exports, module) {
8765
9345
  "use strict";
8766
9346
  var fs15 = require_graceful_fs();
8767
9347
  var u = require_universalify().fromCallback;
@@ -8778,9 +9358,9 @@ var require_remove2 = __commonJS({
8778
9358
  }
8779
9359
  });
8780
9360
 
8781
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/empty/index.js
9361
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/empty/index.js
8782
9362
  var require_empty2 = __commonJS({
8783
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/empty/index.js"(exports, module) {
9363
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/empty/index.js"(exports, module) {
8784
9364
  "use strict";
8785
9365
  var u = require_universalify().fromPromise;
8786
9366
  var fs15 = require_fs2();
@@ -8791,7 +9371,8 @@ var require_empty2 = __commonJS({
8791
9371
  let items;
8792
9372
  try {
8793
9373
  items = await fs15.readdir(dir);
8794
- } catch {
9374
+ } catch (err) {
9375
+ if (err.code !== "ENOENT") throw err;
8795
9376
  return mkdir.mkdirs(dir);
8796
9377
  }
8797
9378
  return Promise.all(items.map((item) => remove.remove(path18.join(dir, item))));
@@ -8800,7 +9381,8 @@ var require_empty2 = __commonJS({
8800
9381
  let items;
8801
9382
  try {
8802
9383
  items = fs15.readdirSync(dir);
8803
- } catch {
9384
+ } catch (err) {
9385
+ if (err.code !== "ENOENT") throw err;
8804
9386
  return mkdir.mkdirsSync(dir);
8805
9387
  }
8806
9388
  items.forEach((item) => {
@@ -8817,9 +9399,9 @@ var require_empty2 = __commonJS({
8817
9399
  }
8818
9400
  });
8819
9401
 
8820
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/file.js
9402
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/file.js
8821
9403
  var require_file2 = __commonJS({
8822
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
9404
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
8823
9405
  "use strict";
8824
9406
  var u = require_universalify().fromPromise;
8825
9407
  var path18 = __require("path");
@@ -8876,9 +9458,9 @@ var require_file2 = __commonJS({
8876
9458
  }
8877
9459
  });
8878
9460
 
8879
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/link.js
9461
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/link.js
8880
9462
  var require_link2 = __commonJS({
8881
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
9463
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
8882
9464
  "use strict";
8883
9465
  var u = require_universalify().fromPromise;
8884
9466
  var path18 = __require("path");
@@ -8933,9 +9515,9 @@ var require_link2 = __commonJS({
8933
9515
  }
8934
9516
  });
8935
9517
 
8936
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/symlink-paths.js
9518
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/symlink-paths.js
8937
9519
  var require_symlink_paths2 = __commonJS({
8938
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
9520
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
8939
9521
  "use strict";
8940
9522
  var path18 = __require("path");
8941
9523
  var fs15 = require_fs2();
@@ -9006,9 +9588,9 @@ var require_symlink_paths2 = __commonJS({
9006
9588
  }
9007
9589
  });
9008
9590
 
9009
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/symlink-type.js
9591
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/symlink-type.js
9010
9592
  var require_symlink_type2 = __commonJS({
9011
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) {
9593
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) {
9012
9594
  "use strict";
9013
9595
  var fs15 = require_fs2();
9014
9596
  var u = require_universalify().fromPromise;
@@ -9039,9 +9621,9 @@ var require_symlink_type2 = __commonJS({
9039
9621
  }
9040
9622
  });
9041
9623
 
9042
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/symlink.js
9624
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/symlink.js
9043
9625
  var require_symlink2 = __commonJS({
9044
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
9626
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
9045
9627
  "use strict";
9046
9628
  var u = require_universalify().fromPromise;
9047
9629
  var path18 = __require("path");
@@ -9130,9 +9712,9 @@ var require_symlink2 = __commonJS({
9130
9712
  }
9131
9713
  });
9132
9714
 
9133
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/index.js
9715
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/index.js
9134
9716
  var require_ensure2 = __commonJS({
9135
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/ensure/index.js"(exports, module) {
9717
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/ensure/index.js"(exports, module) {
9136
9718
  "use strict";
9137
9719
  var { createFile, createFileSync } = require_file2();
9138
9720
  var { createLink, createLinkSync } = require_link2();
@@ -9157,9 +9739,9 @@ var require_ensure2 = __commonJS({
9157
9739
  }
9158
9740
  });
9159
9741
 
9160
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/json/jsonfile.js
9742
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/json/jsonfile.js
9161
9743
  var require_jsonfile3 = __commonJS({
9162
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module) {
9744
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module) {
9163
9745
  "use strict";
9164
9746
  var jsonFile = require_jsonfile();
9165
9747
  module.exports = {
@@ -9172,9 +9754,9 @@ var require_jsonfile3 = __commonJS({
9172
9754
  }
9173
9755
  });
9174
9756
 
9175
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/output-file/index.js
9757
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/output-file/index.js
9176
9758
  var require_output_file2 = __commonJS({
9177
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/output-file/index.js"(exports, module) {
9759
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/output-file/index.js"(exports, module) {
9178
9760
  "use strict";
9179
9761
  var u = require_universalify().fromPromise;
9180
9762
  var fs15 = require_fs2();
@@ -9202,9 +9784,9 @@ var require_output_file2 = __commonJS({
9202
9784
  }
9203
9785
  });
9204
9786
 
9205
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/json/output-json.js
9787
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/json/output-json.js
9206
9788
  var require_output_json2 = __commonJS({
9207
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/json/output-json.js"(exports, module) {
9789
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/json/output-json.js"(exports, module) {
9208
9790
  "use strict";
9209
9791
  var { stringify } = require_utils2();
9210
9792
  var { outputFile } = require_output_file2();
@@ -9216,9 +9798,9 @@ var require_output_json2 = __commonJS({
9216
9798
  }
9217
9799
  });
9218
9800
 
9219
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/json/output-json-sync.js
9801
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/json/output-json-sync.js
9220
9802
  var require_output_json_sync2 = __commonJS({
9221
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module) {
9803
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module) {
9222
9804
  "use strict";
9223
9805
  var { stringify } = require_utils2();
9224
9806
  var { outputFileSync } = require_output_file2();
@@ -9230,9 +9812,9 @@ var require_output_json_sync2 = __commonJS({
9230
9812
  }
9231
9813
  });
9232
9814
 
9233
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/json/index.js
9815
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/json/index.js
9234
9816
  var require_json2 = __commonJS({
9235
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/json/index.js"(exports, module) {
9817
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/json/index.js"(exports, module) {
9236
9818
  "use strict";
9237
9819
  var u = require_universalify().fromPromise;
9238
9820
  var jsonFile = require_jsonfile3();
@@ -9248,9 +9830,9 @@ var require_json2 = __commonJS({
9248
9830
  }
9249
9831
  });
9250
9832
 
9251
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/move/move.js
9833
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/move/move.js
9252
9834
  var require_move3 = __commonJS({
9253
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/move/move.js"(exports, module) {
9835
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/move/move.js"(exports, module) {
9254
9836
  "use strict";
9255
9837
  var fs15 = require_fs2();
9256
9838
  var path18 = __require("path");
@@ -9300,9 +9882,9 @@ var require_move3 = __commonJS({
9300
9882
  }
9301
9883
  });
9302
9884
 
9303
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/move/move-sync.js
9885
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/move/move-sync.js
9304
9886
  var require_move_sync2 = __commonJS({
9305
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
9887
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
9306
9888
  "use strict";
9307
9889
  var fs15 = require_graceful_fs();
9308
9890
  var path18 = __require("path");
@@ -9353,9 +9935,9 @@ var require_move_sync2 = __commonJS({
9353
9935
  }
9354
9936
  });
9355
9937
 
9356
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/move/index.js
9938
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/move/index.js
9357
9939
  var require_move4 = __commonJS({
9358
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/move/index.js"(exports, module) {
9940
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/move/index.js"(exports, module) {
9359
9941
  "use strict";
9360
9942
  var u = require_universalify().fromPromise;
9361
9943
  module.exports = {
@@ -9365,9 +9947,9 @@ var require_move4 = __commonJS({
9365
9947
  }
9366
9948
  });
9367
9949
 
9368
- // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/index.js
9950
+ // ../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/index.js
9369
9951
  var require_lib4 = __commonJS({
9370
- "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.0/e439e6fd4e4e9f79a9b4208fa39fea4dd6d7c4364cffe6989d0b5179d7e3aec7/node_modules/fs-extra/lib/index.js"(exports, module) {
9952
+ "../../../../../setup-pnpm/store/v11/links/@/fs-extra/11.4.1/bf276894486fae379ebf7a9c563bd39c312837555973484a9a8f0c6d4c934f3e/node_modules/fs-extra/lib/index.js"(exports, module) {
9371
9953
  "use strict";
9372
9954
  module.exports = {
9373
9955
  // Export promiseified graceful-fs:
@@ -9826,7 +10408,7 @@ var require_node_gyp_build = __commonJS({
9826
10408
  var fs15 = __require("fs");
9827
10409
  var path18 = __require("path");
9828
10410
  var url = __require("url");
9829
- var os = __require("os");
10411
+ var os2 = __require("os");
9830
10412
  var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
9831
10413
  var vars = process.config && process.config.variables || {};
9832
10414
  var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
@@ -9836,8 +10418,8 @@ var require_node_gyp_build = __commonJS({
9836
10418
  abi = "unsupported";
9837
10419
  }
9838
10420
  var runtime = isElectron() ? "electron" : isNwjs() ? "node-webkit" : "node";
9839
- var arch = process.env.npm_config_arch || os.arch();
9840
- var platform = process.env.npm_config_platform || os.platform();
10421
+ var arch = process.env.npm_config_arch || os2.arch();
10422
+ var platform = process.env.npm_config_platform || os2.platform();
9841
10423
  var libc = process.env.LIBC || (isMusl(platform) ? "musl" : "glibc");
9842
10424
  var armv = process.env.ARM_VERSION || (arch === "arm64" ? "8" : vars.arm_version) || "";
9843
10425
  var uv = (versions.uv || "").split(".")[0];
@@ -10076,20 +10658,39 @@ var import_normalize_package_data = __toESM(require_normalize(), 1);
10076
10658
 
10077
10659
  // ../building/pkg-requires-build/lib/index.js
10078
10660
  function pkgRequiresBuild(manifest, filesIndex) {
10079
- return Boolean(manifest?.scripts != null && (Boolean(manifest.scripts.preinstall) || Boolean(manifest.scripts.install) || Boolean(manifest.scripts.postinstall)) || filesIncludeInstallScripts(filesIndex));
10661
+ return manifest != null && manifestHasBuildScripts(manifest) || filesIncludeInstallScripts(filesIndex, manifest?.gypfile === false);
10080
10662
  }
10081
- function filesIncludeInstallScripts(filesIndex) {
10663
+ function manifestHasBuildScripts(manifest) {
10664
+ return manifest.scripts != null && (Boolean(manifest.scripts.preinstall) || Boolean(manifest.scripts.install) || Boolean(manifest.scripts.postinstall));
10665
+ }
10666
+ function storedRequiresBuildNeedsManifestCheck(manifest, filesIndex) {
10667
+ if (manifest != null && ("gypfile" in manifest || manifestHasBuildScripts(manifest)))
10668
+ return false;
10669
+ const hasBindingGyp = filesIndex instanceof Map ? filesIndex.has("binding.gyp") : Object.hasOwn(filesIndex, "binding.gyp");
10670
+ if (!hasBindingGyp)
10671
+ return false;
10082
10672
  const keys = filesIndex instanceof Map ? filesIndex.keys() : Object.keys(filesIndex);
10083
10673
  for (const filename of keys) {
10084
- if (filename === "binding.gyp") {
10674
+ if (isHooksEntry(filename))
10675
+ return false;
10676
+ }
10677
+ return true;
10678
+ }
10679
+ function filesIncludeInstallScripts(filesIndex, gypBuildOptedOut) {
10680
+ const keys = filesIndex instanceof Map ? filesIndex.keys() : Object.keys(filesIndex);
10681
+ for (const filename of keys) {
10682
+ if (filename === "binding.gyp" && !gypBuildOptedOut) {
10085
10683
  return true;
10086
10684
  }
10087
- if (filename.match(/^\.hooks[\\/]/) != null) {
10685
+ if (isHooksEntry(filename)) {
10088
10686
  return true;
10089
10687
  }
10090
10688
  }
10091
10689
  return false;
10092
10690
  }
10691
+ function isHooksEntry(filename) {
10692
+ return filename.match(/^\.hooks[\\/]/) != null;
10693
+ }
10093
10694
 
10094
10695
  // ../crypto/integrity/lib/index.js
10095
10696
  var INTEGRITY_REGEX = /^([^-]+)-([a-z0-9+/=]+)$/i;
@@ -10117,6 +10718,7 @@ import util2 from "node:util";
10117
10718
  // ../fs/graceful-fs/lib/index.js
10118
10719
  var import_graceful_fs = __toESM(require_graceful_fs(), 1);
10119
10720
  import fs2 from "node:fs";
10721
+ import os from "node:os";
10120
10722
  import util, { promisify } from "node:util";
10121
10723
  var FILE_LOCK_RETRY_BUDGET_MS = 6e4;
10122
10724
  var PERMISSION_DENIED_RETRY_BUDGET_MS = 1e3;
@@ -10175,13 +10777,24 @@ function unlinkWithRetry(target2) {
10175
10777
  });
10176
10778
  }
10177
10779
  function withFileLockRetry(operation) {
10178
- const startedAt = Date.now();
10179
- let backoffMs = 0;
10180
- let budgetMs = FILE_LOCK_RETRY_BUDGET_MS;
10780
+ const retry = createFileLockRetry();
10181
10781
  for (; ; ) {
10182
10782
  try {
10183
10783
  return operation();
10184
10784
  } catch (err) {
10785
+ const delayMs = retry.delayBeforeNextAttempt(err);
10786
+ if (delayMs > 0)
10787
+ Atomics.wait(fileLockRetrySleepBuffer, 0, 0, delayMs);
10788
+ retry.checkBudgetAfterDelay(err);
10789
+ }
10790
+ }
10791
+ }
10792
+ function createFileLockRetry() {
10793
+ const startedAt = Date.now();
10794
+ let backoffMs = 0;
10795
+ let budgetMs = FILE_LOCK_RETRY_BUDGET_MS;
10796
+ return {
10797
+ delayBeforeNextAttempt(err) {
10185
10798
  if (!isTransientFileLockError(err))
10186
10799
  throw err;
10187
10800
  if (err.code === "EPERM" || err.code === "EACCES")
@@ -10189,16 +10802,20 @@ function withFileLockRetry(operation) {
10189
10802
  const remainingMs = budgetMs - (Date.now() - startedAt);
10190
10803
  if (remainingMs <= 0)
10191
10804
  throw err;
10192
- if (backoffMs > 0)
10193
- Atomics.wait(fileLockRetrySleepBuffer, 0, 0, Math.min(backoffMs, remainingMs));
10805
+ return Math.min(backoffMs, remainingMs);
10806
+ },
10807
+ checkBudgetAfterDelay(err) {
10194
10808
  if (Date.now() - startedAt >= budgetMs)
10195
10809
  throw err;
10196
10810
  backoffMs = Math.min(backoffMs + 10, FILE_LOCK_RETRY_BACKOFF_CAP_MS);
10197
10811
  }
10198
- }
10812
+ };
10199
10813
  }
10200
10814
  function isTransientFileLockError(err) {
10201
- return process.platform === "win32" && util.types.isNativeError(err) && "code" in err && (err.code === "EPERM" || err.code === "EACCES" || err.code === "EBUSY");
10815
+ return (process.platform === "win32" || isWsl()) && util.types.isNativeError(err) && "code" in err && (err.code === "EPERM" || err.code === "EACCES" || err.code === "EBUSY");
10816
+ }
10817
+ function isWsl() {
10818
+ return process.platform === "linux" && os.release().toLowerCase().includes("microsoft");
10202
10819
  }
10203
10820
 
10204
10821
  // ../core/logger/lib/logger.js
@@ -10591,7 +11208,7 @@ function winResolve(p) {
10591
11208
  return path3.resolve(p);
10592
11209
  }
10593
11210
 
10594
- // ../../../../../setup-pnpm/store/v11/links/@/symlink-dir/10.0.1/99651a995e6d76e095bc87316473b0e784f9c820abf21dbac80a697d2ae16c64/node_modules/symlink-dir/dist/index.js
11211
+ // ../../../../../setup-pnpm/store/v11/links/@/symlink-dir/10.0.3/4d43271197febf0032f6310ea36ada870bf89dea8eadbcea81d00275dc8fe840/node_modules/symlink-dir/dist/index.js
10595
11212
  import { promises as fs6, symlinkSync, mkdirSync, readlinkSync, unlinkSync } from "fs";
10596
11213
  import { types } from "util";
10597
11214
  import pathLib from "path";
@@ -10701,7 +11318,7 @@ function swapRenameSync(oldPath, newPath) {
10701
11318
  }
10702
11319
  }
10703
11320
 
10704
- // ../../../../../setup-pnpm/store/v11/links/@/symlink-dir/10.0.1/99651a995e6d76e095bc87316473b0e784f9c820abf21dbac80a697d2ae16c64/node_modules/symlink-dir/dist/index.js
11321
+ // ../../../../../setup-pnpm/store/v11/links/@/symlink-dir/10.0.3/4d43271197febf0032f6310ea36ada870bf89dea8eadbcea81d00275dc8fe840/node_modules/symlink-dir/dist/index.js
10705
11322
  var IS_WINDOWS = process.platform === "win32" || /^(msys|cygwin)$/.test(process.env.OSTYPE);
10706
11323
  function resolveSrcOnWinJunction(src2) {
10707
11324
  return `${src2}\\`;
@@ -10769,6 +11386,44 @@ function createJunctionAsync(target2, path18) {
10769
11386
  function createJunctionSync(target2, path18) {
10770
11387
  symlinkSync(resolveSrcOnWinJunction(target2), path18, "junction");
10771
11388
  }
11389
+ var TRANSIENT_REFUSAL_CODES = /* @__PURE__ */ new Set(["EPERM", "EACCES", "EBUSY"]);
11390
+ var PERMISSION_REFUSAL_CODES = /* @__PURE__ */ new Set(["EPERM", "EACCES"]);
11391
+ var REFUSAL_BUDGET_MS = 6e4;
11392
+ var PERMISSION_REFUSAL_BUDGET_MS = 1e3;
11393
+ var MAX_BACKOFF_MS = 100;
11394
+ function refusalCode(err) {
11395
+ if (!IS_WINDOWS || !types.isNativeError(err) || !("code" in err))
11396
+ return void 0;
11397
+ const code = err.code;
11398
+ return TRANSIENT_REFUSAL_CODES.has(code) ? code : void 0;
11399
+ }
11400
+ function budgetFor(code) {
11401
+ return PERMISSION_REFUSAL_CODES.has(code) ? PERMISSION_REFUSAL_BUDGET_MS : REFUSAL_BUDGET_MS;
11402
+ }
11403
+ function readlinkSyncWaitingOutARefusal(path18) {
11404
+ const started = Date.now();
11405
+ let deadline = Number.POSITIVE_INFINITY;
11406
+ let backoff = 0;
11407
+ while (true) {
11408
+ try {
11409
+ return readlinkSync(path18);
11410
+ } catch (err) {
11411
+ const code = refusalCode(err);
11412
+ if (code == null)
11413
+ throw err;
11414
+ deadline = Math.min(deadline, started + budgetFor(code));
11415
+ if (Date.now() >= deadline)
11416
+ throw err;
11417
+ sleepSync(backoff);
11418
+ backoff = Math.min(backoff + 10, MAX_BACKOFF_MS);
11419
+ }
11420
+ }
11421
+ }
11422
+ function sleepSync(ms) {
11423
+ if (ms === 0)
11424
+ return;
11425
+ Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
11426
+ }
10772
11427
  function forceSymlinkSync(target2, path18, opts2) {
10773
11428
  let initialErr;
10774
11429
  try {
@@ -10799,7 +11454,7 @@ function forceSymlinkSync(target2, path18, opts2) {
10799
11454
  }
10800
11455
  let linkString;
10801
11456
  try {
10802
- linkString = readlinkSync(path18);
11457
+ linkString = readlinkSyncWaitingOutARefusal(path18);
10803
11458
  } catch (err) {
10804
11459
  if (opts2?.overwrite === false) {
10805
11460
  throw initialErr;
@@ -10814,10 +11469,12 @@ function forceSymlinkSync(target2, path18, opts2) {
10814
11469
  try {
10815
11470
  renameOverwriteSync(path18, pathLib.join(parentDir, ignore));
10816
11471
  } catch (error) {
10817
- if (types.isNativeError(error) && "code" in error && error.code === "ENOENT") {
10818
- throw initialErr;
11472
+ if (!types.isNativeError(error) || !("code" in error) || error.code !== "ENOENT") {
11473
+ throw error;
10819
11474
  }
10820
- throw error;
11475
+ if (opts2?.vanishedRetried)
11476
+ throw initialErr;
11477
+ return forceSymlinkSync(target2, path18, { ...opts2, vanishedRetried: true });
10821
11478
  }
10822
11479
  warn = `Symlink wanted name was occupied by directory or file. Old entity moved: "${parentDir}${pathLib.sep}{${pathLib.basename(path18)} => ${ignore}".`;
10823
11480
  }
@@ -10843,8 +11500,8 @@ function forceSymlinkSync(target2, path18, opts2) {
10843
11500
  }
10844
11501
 
10845
11502
  // ../fs/symlink-dependency/lib/safeJoinModulesDir.js
10846
- var import_validate_npm_package_name = __toESM(require_lib3(), 1);
10847
11503
  import path5 from "node:path";
11504
+ var import_validate_npm_package_name = __toESM(require_lib3(), 1);
10848
11505
  function safeJoinModulesDir(modulesDir, alias) {
10849
11506
  if (!(0, import_validate_npm_package_name.default)(alias).validForOldPackages) {
10850
11507
  throw invalidDependencyNameError(modulesDir, alias);
@@ -11033,6 +11690,7 @@ function findFiles(ctx, dir, relativeDir, currentRealPath) {
11033
11690
  }
11034
11691
 
11035
11692
  // ../store/cafs/lib/addFilesFromTarball.js
11693
+ var import_bz2 = __toESM(require_bz2(), 1);
11036
11694
  var import_is_gzip = __toESM(require_is_gzip(), 1);
11037
11695
  import { gunzipSync } from "node:zlib";
11038
11696
 
@@ -11231,7 +11889,7 @@ function clamp(index, len, defaultValue) {
11231
11889
 
11232
11890
  // ../store/cafs/lib/addFilesFromTarball.js
11233
11891
  function addFilesFromTarball(addBufferToCafs2, tarballBuffer, readManifest, ignore) {
11234
- const tarContent = (0, import_is_gzip.default)(tarballBuffer) ? gunzipSync(tarballBuffer, { chunkSize: 128 * 1024 }) : Buffer.isBuffer(tarballBuffer) ? tarballBuffer : Buffer.from(tarballBuffer);
11892
+ const tarContent = decompressTarball(tarballBuffer);
11235
11893
  const { files } = parseTarball(tarContent);
11236
11894
  const filesIndex = /* @__PURE__ */ new Map();
11237
11895
  let manifestBuffer;
@@ -11253,6 +11911,19 @@ function addFilesFromTarball(addBufferToCafs2, tarballBuffer, readManifest, igno
11253
11911
  manifest: manifestBuffer ? parseJsonBufferSync(manifestBuffer) : void 0
11254
11912
  };
11255
11913
  }
11914
+ function decompressTarball(tarballBuffer) {
11915
+ if ((0, import_is_gzip.default)(tarballBuffer)) {
11916
+ return gunzipSync(tarballBuffer, { chunkSize: 128 * 1024 });
11917
+ }
11918
+ if (isBzip2(tarballBuffer)) {
11919
+ const decompressed = import_bz2.default.decompress(tarballBuffer);
11920
+ return Buffer.from(decompressed.buffer, decompressed.byteOffset, decompressed.byteLength);
11921
+ }
11922
+ return Buffer.isBuffer(tarballBuffer) ? tarballBuffer : Buffer.from(tarballBuffer);
11923
+ }
11924
+ function isBzip2(buffer) {
11925
+ return buffer.length >= 3 && buffer[0] === 66 && buffer[1] === 90 && buffer[2] === 104;
11926
+ }
11256
11927
 
11257
11928
  // ../store/cafs/lib/checkPkgFilesIntegrity.js
11258
11929
  import crypto3 from "node:crypto";
@@ -11476,6 +12147,7 @@ var BUNDLED_MANIFEST_FIELDS = [
11476
12147
  "devDependencies",
11477
12148
  "directories",
11478
12149
  "engines",
12150
+ "gypfile",
11479
12151
  "libc",
11480
12152
  "name",
11481
12153
  "optionalDependencies",
@@ -11692,13 +12364,13 @@ function importIndexedDir(importer, newDir, filenames, opts2) {
11692
12364
  importIntoSharedDir(dirImport);
11693
12365
  return;
11694
12366
  }
11695
- if (!opts2.keepModulesDir && tryExclusiveImport(importer, newDir, filenames)) {
12367
+ if (!opts2.keepModulesDir && tryExclusiveImport(importer, newDir, filenames, symlinkDirs(opts2, filenames, { writtenDir: newDir, finalDir: newDir }))) {
11696
12368
  return;
11697
12369
  }
11698
12370
  const stage = fastPathTemp(newDir);
11699
12371
  try {
11700
12372
  makeEmptyDirSync(stage, { recursive: true });
11701
- tryImportIndexedDir({ importFile: importer.importFile, importFileAtomic: importer.importFile }, stage, filenames);
12373
+ tryImportIndexedDir({ importFile: importer.importFile, importFileAtomic: importer.importFile }, stage, filenames, symlinkDirs(opts2, filenames, { writtenDir: stage, finalDir: newDir }));
11702
12374
  if (opts2.keepModulesDir) {
11703
12375
  moveOrMergeModulesDirs(path13.join(newDir, "node_modules"), path13.join(stage, "node_modules"));
11704
12376
  }
@@ -11712,7 +12384,9 @@ function importIndexedDir(importer, newDir, filenames, opts2) {
11712
12384
  throw err;
11713
12385
  }
11714
12386
  try {
11715
- renameOverwriteSync(stage, newDir);
12387
+ withFileLockRetry(() => {
12388
+ renameOverwriteSync(stage, newDir);
12389
+ });
11716
12390
  } catch (renameErr) {
11717
12391
  try {
11718
12392
  rimrafSync(stage);
@@ -11855,7 +12529,7 @@ function retryWithFixedFileMap(err, dirImport) {
11855
12529
  }
11856
12530
  return false;
11857
12531
  }
11858
- function tryExclusiveImport(importer, newDir, filenames) {
12532
+ function tryExclusiveImport(importer, newDir, filenames, links) {
11859
12533
  fs11.mkdirSync(path13.dirname(newDir), { recursive: true });
11860
12534
  try {
11861
12535
  fs11.mkdirSync(newDir);
@@ -11865,7 +12539,7 @@ function tryExclusiveImport(importer, newDir, filenames) {
11865
12539
  throw err;
11866
12540
  }
11867
12541
  try {
11868
- tryImportIndexedDir(importer, newDir, filenames);
12542
+ tryImportIndexedDir(importer, newDir, filenames, links);
11869
12543
  return true;
11870
12544
  } catch {
11871
12545
  try {
@@ -11956,7 +12630,7 @@ function sanitizeFilenames(filenames) {
11956
12630
  }
11957
12631
  return { sanitizedFilenames, invalidFilenames };
11958
12632
  }
11959
- function tryImportIndexedDir({ importFile, importFileAtomic }, newDir, filenames) {
12633
+ function tryImportIndexedDir({ importFile, importFileAtomic }, newDir, filenames, links) {
11960
12634
  makeFileMapDirs(newDir, filenames);
11961
12635
  let packageJsonSrc;
11962
12636
  for (const [f, src2] of filenames) {
@@ -11964,12 +12638,77 @@ function tryImportIndexedDir({ importFile, importFileAtomic }, newDir, filenames
11964
12638
  packageJsonSrc = src2;
11965
12639
  continue;
11966
12640
  }
11967
- importFile(src2, path13.join(newDir, f));
12641
+ importEntry(importFile, src2, path13.join(newDir, f), links);
11968
12642
  }
11969
12643
  if (packageJsonSrc !== void 0) {
11970
- importFileAtomic(packageJsonSrc, path13.join(newDir, "package.json"));
12644
+ importEntry(importFileAtomic, packageJsonSrc, path13.join(newDir, "package.json"), links);
12645
+ }
12646
+ }
12647
+ function symlinkDirs(opts2, filenames, dirs2) {
12648
+ if (opts2.resolvedFrom !== "local-dir")
12649
+ return void 0;
12650
+ const imported = /* @__PURE__ */ new Set([""]);
12651
+ for (const f of filenames.keys()) {
12652
+ for (let entry = f; entry !== "" && !imported.has(entry); entry = path13.posix.dirname(entry).replace(/^\.$/, "")) {
12653
+ imported.add(entry);
12654
+ }
12655
+ }
12656
+ return { ...dirs2, imported };
12657
+ }
12658
+ function importEntry(importFile, src2, dest, links) {
12659
+ if (links != null && fs11.lstatSync(src2).isSymbolicLink() && copyInternalSymlink(src2, dest, links))
12660
+ return;
12661
+ importFile(src2, dest);
12662
+ }
12663
+ function copyInternalSymlink(src2, dest, links) {
12664
+ let target2 = fs11.readlinkSync(src2);
12665
+ if (path13.isAbsolute(target2)) {
12666
+ target2 = path13.relative(realpathOrSelf(path13.dirname(src2)), realpathOrSelf(target2));
12667
+ }
12668
+ const resolved = path13.resolve(path13.dirname(dest), target2);
12669
+ if (escapesDir(links.writtenDir, resolved))
12670
+ return false;
12671
+ if (!links.imported.has(path13.relative(links.writtenDir, resolved).split(path13.sep).join("/"))) {
12672
+ return isDirectory(src2);
12673
+ }
12674
+ if (process.platform !== "win32") {
12675
+ fs11.symlinkSync(target2, dest);
12676
+ return true;
12677
+ }
12678
+ const isDir = isDirectory(src2);
12679
+ try {
12680
+ fs11.symlinkSync(target2, dest, isDir ? "dir" : "file");
12681
+ } catch (err) {
12682
+ if (!util6.types.isNativeError(err) || !("code" in err) || err.code !== "EPERM")
12683
+ throw err;
12684
+ if (!isDir)
12685
+ return false;
12686
+ fs11.symlinkSync(path13.join(links.finalDir, path13.relative(links.writtenDir, resolved)), dest, "junction");
12687
+ }
12688
+ return true;
12689
+ }
12690
+ function realpathOrSelf(file) {
12691
+ try {
12692
+ return fs11.realpathSync(file);
12693
+ } catch (err) {
12694
+ if (util6.types.isNativeError(err) && "code" in err && err.code === "ENOENT")
12695
+ return file;
12696
+ throw err;
12697
+ }
12698
+ }
12699
+ function isDirectory(file) {
12700
+ try {
12701
+ return fs11.statSync(file).isDirectory();
12702
+ } catch (err) {
12703
+ if (util6.types.isNativeError(err) && "code" in err && err.code === "ENOENT")
12704
+ return false;
12705
+ throw err;
11971
12706
  }
11972
12707
  }
12708
+ function escapesDir(rootDir, targetPath) {
12709
+ const rel = path13.relative(rootDir, targetPath);
12710
+ return rel === ".." || rel.startsWith(`..${path13.sep}`) || path13.isAbsolute(rel);
12711
+ }
11973
12712
  function makeFileMapDirs(newDir, filenames, opts2) {
11974
12713
  const allDirs = /* @__PURE__ */ new Set();
11975
12714
  for (const f of filenames.keys()) {
@@ -12094,31 +12833,35 @@ function getStderr(err) {
12094
12833
  }
12095
12834
 
12096
12835
  // ../fs/indexed-pkg-importer/lib/index.js
12097
- function createIndexedPkgImporter(packageImportMethod) {
12098
- const importPackage2 = createImportPackage(packageImportMethod);
12836
+ function createIndexedPkgImporter(packageImportMethod, opts2) {
12837
+ const importPackage2 = createImportPackage(packageImportMethod, opts2);
12099
12838
  return importPackage2;
12100
12839
  }
12101
- function createImportPackage(packageImportMethod) {
12840
+ function createImportPackage(packageImportMethod, opts2) {
12841
+ const disableLogging = opts2?.disableLogging;
12102
12842
  switch (packageImportMethod ?? "auto") {
12103
12843
  case "clone":
12104
- packageImportMethodLogger.debug({ method: "clone" });
12844
+ if (!disableLogging)
12845
+ packageImportMethodLogger.debug({ method: "clone" });
12105
12846
  return createClonePkg();
12106
12847
  case "hardlink":
12107
- packageImportMethodLogger.debug({ method: "hardlink" });
12848
+ if (!disableLogging)
12849
+ packageImportMethodLogger.debug({ method: "hardlink" });
12108
12850
  return hardlinkPkg.bind(null, linkOrCopy2);
12109
12851
  case "auto": {
12110
- return createAutoImporter();
12852
+ return createAutoImporter(opts2);
12111
12853
  }
12112
12854
  case "clone-or-copy":
12113
- return createCloneOrCopyImporter();
12855
+ return createCloneOrCopyImporter(opts2);
12114
12856
  case "copy":
12115
- packageImportMethodLogger.debug({ method: "copy" });
12857
+ if (!disableLogging)
12858
+ packageImportMethodLogger.debug({ method: "copy" });
12116
12859
  return copyPkg;
12117
12860
  default:
12118
12861
  throw new Error(`Unknown package import method ${packageImportMethod}`);
12119
12862
  }
12120
12863
  }
12121
- function createAutoImporter() {
12864
+ function createAutoImporter(createOpts) {
12122
12865
  let auto = initialAuto;
12123
12866
  return (to, opts2) => auto(to, opts2);
12124
12867
  function initialAuto(to, opts2) {
@@ -12126,7 +12869,8 @@ function createAutoImporter() {
12126
12869
  try {
12127
12870
  if (!tryClonePkg(to, opts2))
12128
12871
  return void 0;
12129
- packageImportMethodLogger.debug({ method: "clone" });
12872
+ if (!createOpts?.disableLogging)
12873
+ packageImportMethodLogger.debug({ method: "clone" });
12130
12874
  auto = createClonePkg();
12131
12875
  return "clone";
12132
12876
  } catch {
@@ -12135,7 +12879,8 @@ function createAutoImporter() {
12135
12879
  try {
12136
12880
  if (!hardlinkPkg(lib_default.linkSync, to, opts2))
12137
12881
  return void 0;
12138
- packageImportMethodLogger.debug({ method: "hardlink" });
12882
+ if (!createOpts?.disableLogging)
12883
+ packageImportMethodLogger.debug({ method: "hardlink" });
12139
12884
  auto = hardlinkPkg.bind(null, linkOrCopy2);
12140
12885
  return "hardlink";
12141
12886
  } catch (err) {
@@ -12143,29 +12888,33 @@ function createAutoImporter() {
12143
12888
  if (err.message.startsWith("EXDEV: cross-device link not permitted")) {
12144
12889
  globalWarn(err.message);
12145
12890
  globalInfo("Falling back to copying packages from store");
12146
- packageImportMethodLogger.debug({ method: "copy" });
12891
+ if (!createOpts?.disableLogging)
12892
+ packageImportMethodLogger.debug({ method: "copy" });
12147
12893
  auto = copyPkg;
12148
12894
  return auto(to, opts2);
12149
12895
  }
12150
- packageImportMethodLogger.debug({ method: "hardlink" });
12896
+ if (!createOpts?.disableLogging)
12897
+ packageImportMethodLogger.debug({ method: "hardlink" });
12151
12898
  auto = hardlinkPkg.bind(null, linkOrCopy2);
12152
12899
  return auto(to, opts2);
12153
12900
  }
12154
12901
  }
12155
12902
  }
12156
- function createCloneOrCopyImporter() {
12903
+ function createCloneOrCopyImporter(createOpts) {
12157
12904
  let auto = initialAuto;
12158
12905
  return (to, opts2) => auto(to, opts2);
12159
12906
  function initialAuto(to, opts2) {
12160
12907
  try {
12161
12908
  if (!tryClonePkg(to, opts2))
12162
12909
  return void 0;
12163
- packageImportMethodLogger.debug({ method: "clone" });
12910
+ if (!createOpts?.disableLogging)
12911
+ packageImportMethodLogger.debug({ method: "clone" });
12164
12912
  auto = createClonePkg();
12165
12913
  return "clone";
12166
12914
  } catch {
12167
12915
  }
12168
- packageImportMethodLogger.debug({ method: "copy" });
12916
+ if (!createOpts?.disableLogging)
12917
+ packageImportMethodLogger.debug({ method: "copy" });
12169
12918
  auto = copyPkg;
12170
12919
  return auto(to, opts2);
12171
12920
  }
@@ -12464,7 +13213,7 @@ function createPackageImporter(opts2) {
12464
13213
  return (to, opts3) => {
12465
13214
  const { filesMap, isBuilt } = gfm(opts3.filesResponse, opts3.sideEffectsCacheKey);
12466
13215
  const willBeBuilt = !isBuilt && opts3.requiresBuild;
12467
- const pkgImportMethod = willBeBuilt ? "clone-or-copy" : opts3.filesResponse.packageImportMethod ?? packageImportMethod;
13216
+ const pkgImportMethod = willBeBuilt ? packageImportMethod === "copy" ? "copy" : "clone-or-copy" : packageImportMethod && packageImportMethod !== "auto" ? packageImportMethod : opts3.filesResponse.packageImportMethod ?? packageImportMethod;
12468
13217
  const impPkg = cachedImporterCreator(pkgImportMethod);
12469
13218
  const importMethod = impPkg(to, {
12470
13219
  disableRelinkLocalDirDeps: opts3.disableRelinkLocalDirDeps,
@@ -14753,7 +15502,7 @@ function sqliteRetry(fn) {
14753
15502
  return fn();
14754
15503
  } catch (err) {
14755
15504
  if (isSqliteBusy(err) && attempt < MAX_RETRIES) {
14756
- sleepSync(RETRY_DELAY_MS);
15505
+ sleepSync2(RETRY_DELAY_MS);
14757
15506
  continue;
14758
15507
  }
14759
15508
  throw err;
@@ -14764,7 +15513,7 @@ function isSqliteBusy(err) {
14764
15513
  return (err?.errcode & 255) === SQLITE_BUSY;
14765
15514
  }
14766
15515
  var sleepBuffer = new Int32Array(new SharedArrayBuffer(4));
14767
- function sleepSync(ms) {
15516
+ function sleepSync2(ms) {
14768
15517
  Atomics.wait(sleepBuffer, 0, 0, ms);
14769
15518
  }
14770
15519
  function packForStorage(data) {
@@ -15158,7 +15907,7 @@ If you want to ignore this issue, set strictStorePkgContentCheck to false in you
15158
15907
  verifyResult = buildFileMapsFromIndex(storeDir, pkgFilesIndex);
15159
15908
  }
15160
15909
  const bundledManifest = pkgFilesIndex.manifest;
15161
- const requiresBuild = pkgFilesIndex.requiresBuild ?? pkgRequiresBuild(bundledManifest, verifyResult.filesMap);
15910
+ const requiresBuild = resolveRequiresBuild(pkgFilesIndex.requiresBuild, bundledManifest, verifyResult.filesMap);
15162
15911
  parentPort.postMessage({
15163
15912
  status: "success",
15164
15913
  warnings,
@@ -15207,6 +15956,27 @@ If you want to ignore this issue, set strictStorePkgContentCheck to false in you
15207
15956
  });
15208
15957
  }
15209
15958
  }
15959
+ function resolveRequiresBuild(stored, bundledManifest, filesMap) {
15960
+ if (stored == null)
15961
+ return pkgRequiresBuild(bundledManifest, filesMap);
15962
+ if (!stored || !storedRequiresBuildNeedsManifestCheck(bundledManifest, filesMap))
15963
+ return stored;
15964
+ const manifest = readManifestFromCafs(filesMap);
15965
+ return manifest == null ? stored : pkgRequiresBuild(manifest, filesMap);
15966
+ }
15967
+ function readManifestFromCafs(filesMap) {
15968
+ const manifestPath = filesMap.get("package.json");
15969
+ if (manifestPath == null)
15970
+ return void 0;
15971
+ try {
15972
+ return parseJsonBufferSync(fs14.readFileSync(manifestPath));
15973
+ } catch (err) {
15974
+ if (err instanceof SyntaxError || util8.types.isNativeError(err) && "code" in err && err.code === "ENOENT") {
15975
+ return void 0;
15976
+ }
15977
+ throw err;
15978
+ }
15979
+ }
15210
15980
  function addTarballToStore({ buffer, storeDir, integrity, filesIndexFile, appendManifest, ignoreFilePattern }) {
15211
15981
  if (integrity) {
15212
15982
  const { algorithm, hexDigest } = parseIntegrity(integrity);
@@ -15457,4 +16227,7 @@ is-windows/index.js:
15457
16227
  * Copyright © 2015-2018, Jon Schlinkert.
15458
16228
  * Released under the MIT License.
15459
16229
  *)
16230
+
16231
+ bz2/index.js:
16232
+ (*! bz2 (C) 2019-present SheetJS LLC *)
15460
16233
  */