silvery 0.19.1 → 0.21.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/README.md +9 -4
- package/dist/Text-Lq0dmj8-.mjs +239 -0
- package/dist/Text-Lq0dmj8-.mjs.map +1 -0
- package/dist/UPNG-Bo33r8rA.mjs +3 -0
- package/dist/UPNG-DosRPdF4.mjs +5075 -0
- package/dist/UPNG-DosRPdF4.mjs.map +1 -0
- package/dist/__vite-browser-external-2447137e-D_JM6skp.mjs +6 -0
- package/dist/__vite-browser-external-2447137e-D_JM6skp.mjs.map +1 -0
- package/dist/{animation-Cn64yepo.mjs → animation-ZMN2_XKv.mjs} +2 -2
- package/dist/animation-ZMN2_XKv.mjs.map +1 -0
- package/dist/{ansi-Cc33mW54.d.mts → ansi-2Xn0yatP.d.mts} +1 -1
- package/dist/{ansi-Cc33mW54.d.mts.map → ansi-2Xn0yatP.d.mts.map} +1 -1
- package/dist/{ansi-CLOitHKx.mjs → ansi-D1KQMAbf.mjs} +1 -1
- package/dist/{ansi-CLOitHKx.mjs.map → ansi-D1KQMAbf.mjs.map} +1 -1
- package/dist/ansi-yC4RyBNY.mjs +22441 -0
- package/dist/ansi-yC4RyBNY.mjs.map +1 -0
- package/dist/apng-CR08rIaH.mjs +58 -0
- package/dist/apng-CR08rIaH.mjs.map +1 -0
- package/dist/apng-DaHfVaVI.mjs +3 -0
- package/dist/assets/resvgjs.darwin-arm64-BtufyGW1.node +0 -0
- package/dist/assets/skia.darwin-arm64-DQs5sT6N.node +0 -0
- package/dist/backend-B-WYLUib.mjs +13396 -0
- package/dist/backend-B-WYLUib.mjs.map +1 -0
- package/dist/backends-CUtan80W.mjs +3 -0
- package/dist/backends-DIVYzKqd.mjs +1083 -0
- package/dist/backends-DIVYzKqd.mjs.map +1 -0
- package/dist/bound-term-0sPrrzH1.d.mts +4640 -0
- package/dist/bound-term-0sPrrzH1.d.mts.map +1 -0
- package/dist/canvas-1v7dPT-_.mjs +3 -0
- package/dist/canvas-CSuPOMNt.mjs +1442 -0
- package/dist/canvas-CSuPOMNt.mjs.map +1 -0
- package/dist/{chunk-Vs_PY4HZ.mjs → chunk-BSw8zbkd.mjs} +1 -1
- package/dist/cli-dvo0r2fs.mjs +4 -0
- package/dist/compare-CQodSH4G.mjs +376 -0
- package/dist/compare-CQodSH4G.mjs.map +1 -0
- package/dist/compare-DHlcxEYA.mjs +3 -0
- package/dist/context-BU5LkkIy.mjs.map +1 -1
- package/dist/devtools-CJdt5H0X.mjs +2 -0
- package/dist/{devtools-DxkSLXDA.mjs → devtools-DcQjgyjL.mjs} +5 -4
- package/dist/{devtools-DxkSLXDA.mjs.map → devtools-DcQjgyjL.mjs.map} +1 -1
- package/dist/easing-BI-ASGMO.d.mts +24 -0
- package/dist/easing-BI-ASGMO.d.mts.map +1 -0
- package/dist/{eta-Bb3RH3wh.mjs → eta-CJlGH06n.mjs} +1 -1
- package/dist/{eta-Bb3RH3wh.mjs.map → eta-CJlGH06n.mjs.map} +1 -1
- package/dist/flexily-zero-adapter-C3Vj0fPt.mjs +306 -0
- package/dist/flexily-zero-adapter-C3Vj0fPt.mjs.map +1 -0
- package/dist/{flexily-zero-adapter-CMxXhdOL.mjs → flexily-zero-adapter-C4lW_Ov5.mjs} +1 -1
- package/dist/fonts-BFmhXDv7.mjs +88 -0
- package/dist/fonts-BFmhXDv7.mjs.map +1 -0
- package/dist/gif-C_AjaT9d.mjs +188 -0
- package/dist/gif-C_AjaT9d.mjs.map +1 -0
- package/dist/gif-DaC4XrxA.mjs +3 -0
- package/dist/gifenc-BOUT-KFB.mjs +730 -0
- package/dist/gifenc-BOUT-KFB.mjs.map +1 -0
- package/dist/image-C2Birh2x.mjs +1252 -0
- package/dist/image-C2Birh2x.mjs.map +1 -0
- package/dist/index-BUMxS65f.d.mts +453 -0
- package/dist/index-BUMxS65f.d.mts.map +1 -0
- package/dist/{index-D3saHouR.d.mts → index-CSQf13CI.d.mts} +1057 -1133
- package/dist/index-CSQf13CI.d.mts.map +1 -0
- package/dist/{index-BXslOebb.d.mts → index-Cl9KKjQ_.d.mts} +4919 -3921
- package/dist/index-Cl9KKjQ_.d.mts.map +1 -0
- package/dist/index-XbNrPhWl.d.mts +336 -0
- package/dist/index-XbNrPhWl.d.mts.map +1 -0
- package/dist/index.d.mts +8 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +14 -12
- package/dist/index.mjs.map +1 -1
- package/dist/key-mapping-CS-YD_cD.mjs +132 -0
- package/dist/key-mapping-CS-YD_cD.mjs.map +1 -0
- package/dist/key-mapping-Yn-Jgrij.mjs +3 -0
- package/dist/{layout-engine-B6Cdz1yZ.mjs → layout-engine-C07LEXWT.mjs} +1 -1
- package/dist/layout-engine-C2px0RJE.mjs +67 -0
- package/dist/layout-engine-C2px0RJE.mjs.map +1 -0
- package/dist/layout-signals-Cnw6xk8Q.mjs +988 -0
- package/dist/layout-signals-Cnw6xk8Q.mjs.map +1 -0
- package/dist/mouse-events-Dki3ISIp.mjs +1044 -0
- package/dist/mouse-events-Dki3ISIp.mjs.map +1 -0
- package/dist/{multi-progress-Bq9Oi_WI.mjs → multi-progress-CIRjrzma.mjs} +3 -3
- package/dist/{multi-progress-Bq9Oi_WI.mjs.map → multi-progress-CIRjrzma.mjs.map} +1 -1
- package/dist/{multi-progress-DAQC7eap.d.mts → multi-progress-DHZ2xUT2.d.mts} +2 -2
- package/dist/{multi-progress-DAQC7eap.d.mts.map → multi-progress-DHZ2xUT2.d.mts.map} +1 -1
- package/dist/{node-BeWlnCPY.mjs → node-CjM5Rt-M.mjs} +4 -4
- package/dist/node-CjM5Rt-M.mjs.map +1 -0
- package/dist/playwright-D5YiZcNS.mjs +76397 -0
- package/dist/playwright-D5YiZcNS.mjs.map +1 -0
- package/dist/png-codec-Dp84742B.mjs +36 -0
- package/dist/png-codec-Dp84742B.mjs.map +1 -0
- package/dist/png-codec-QwOtJ8Zs.mjs +3 -0
- package/dist/progress-DB_Xo071.mjs +675 -0
- package/dist/progress-DB_Xo071.mjs.map +1 -0
- package/dist/{progress-bar-CXE5Qfkd.mjs → progress-bar-oJwq22CR.mjs} +4 -4
- package/dist/{progress-bar-CXE5Qfkd.mjs.map → progress-bar-oJwq22CR.mjs.map} +1 -1
- package/dist/rasterizer-BRXrDdWx.mjs +3 -0
- package/dist/rasterizer-CpEhJvdR.mjs +296 -0
- package/dist/rasterizer-CpEhJvdR.mjs.map +1 -0
- package/dist/reconciler-DldIJB93.mjs +2083 -0
- package/dist/reconciler-DldIJB93.mjs.map +1 -0
- package/dist/{render-string-0mN37DLf.mjs → render-string-BcoCpjCB.mjs} +1 -1
- package/dist/{render-string-X-CxpTdZ.mjs → render-string-DkQacASz.mjs} +2728 -555
- package/dist/render-string-DkQacASz.mjs.map +1 -0
- package/dist/resvg-js-DkOndZI3.mjs +203 -0
- package/dist/resvg-js-DkOndZI3.mjs.map +1 -0
- package/dist/runtime.d.mts +3 -2
- package/dist/runtime.mjs +3 -3
- package/dist/schemes-JjNp4aSl.mjs +2611 -0
- package/dist/schemes-JjNp4aSl.mjs.map +1 -0
- package/dist/{spinner-CGo34vyR.d.mts → spinner-CZINHpkV.d.mts} +2 -2
- package/dist/{spinner-CGo34vyR.d.mts.map → spinner-CZINHpkV.d.mts.map} +1 -1
- package/dist/{spinner-CeOmcuw_.mjs → spinner-D9lrHr8s.mjs} +7 -7
- package/dist/spinner-D9lrHr8s.mjs.map +1 -0
- package/dist/src-5w9QR6_8.mjs +1071 -0
- package/dist/src-5w9QR6_8.mjs.map +1 -0
- package/dist/src-BNTToU7l.mjs +4387 -0
- package/dist/src-BNTToU7l.mjs.map +1 -0
- package/dist/{src-Bd7ezSgG.mjs → src-BR4xNwdG.mjs} +10436 -2622
- package/dist/src-BR4xNwdG.mjs.map +1 -0
- package/dist/{types-Bk2yw9Qj.mjs → src-DKp-_OFG.mjs} +34 -94
- package/dist/src-DKp-_OFG.mjs.map +1 -0
- package/dist/src-bt8wSrfJ.mjs +258 -0
- package/dist/src-bt8wSrfJ.mjs.map +1 -0
- package/dist/src-e33Y6kNJ.mjs +3 -0
- package/dist/src-iDwu25UD.mjs +1814 -0
- package/dist/src-iDwu25UD.mjs.map +1 -0
- package/dist/steps-Bp2uNqnn.d.mts +202 -0
- package/dist/steps-Bp2uNqnn.d.mts.map +1 -0
- package/dist/svg-15lZZzxq.mjs +486 -0
- package/dist/svg-15lZZzxq.mjs.map +1 -0
- package/dist/svg-Cz0UXcDj.mjs +255 -0
- package/dist/svg-Cz0UXcDj.mjs.map +1 -0
- package/dist/svg-DY72a4HK.mjs +3 -0
- package/dist/svg-g1D6ErwR.d.mts +82 -0
- package/dist/svg-g1D6ErwR.d.mts.map +1 -0
- package/dist/term.d.mts +3 -0
- package/dist/term.mjs +9 -0
- package/dist/term.mjs.map +1 -0
- package/dist/theme.d.mts +95 -2
- package/dist/theme.d.mts.map +1 -0
- package/dist/theme.mjs +9 -3
- package/dist/theme.mjs.map +1 -0
- package/dist/{types-BH_v3iMT.d.mts → types-kt_fKR37.d.mts} +2 -15
- package/dist/types-kt_fKR37.d.mts.map +1 -0
- package/dist/ui/animation.d.mts +2 -1
- package/dist/ui/animation.mjs +1 -1
- package/dist/ui/ansi.d.mts +1 -1
- package/dist/ui/ansi.mjs +1 -1
- package/dist/ui/cli.d.mts +3 -3
- package/dist/ui/cli.mjs +5 -5
- package/dist/ui/display.d.mts +1 -1
- package/dist/ui/image.d.mts +2 -2
- package/dist/ui/image.mjs +2 -2
- package/dist/ui/input.d.mts +1 -1
- package/dist/ui/input.mjs +4 -2
- package/dist/ui/input.mjs.map +1 -1
- package/dist/ui/progress.d.mts +5 -249
- package/dist/ui/progress.mjs +5 -858
- package/dist/ui/react.d.mts +1 -1
- package/dist/ui/react.mjs +2 -2
- package/dist/ui/recording-chrome-react.d.mts +21 -0
- package/dist/ui/recording-chrome-react.d.mts.map +1 -0
- package/dist/ui/recording-chrome-react.mjs +105 -0
- package/dist/ui/recording-chrome-react.mjs.map +1 -0
- package/dist/ui/recording-chrome.d.mts +2 -0
- package/dist/ui/recording-chrome.mjs +2 -0
- package/dist/ui/utils.mjs +1 -1
- package/dist/ui/wrappers.d.mts +3 -3
- package/dist/ui/wrappers.mjs +2 -2
- package/dist/ui.d.mts +7 -6
- package/dist/ui.mjs +8 -7
- package/dist/{useLatest-Bg2x4bfP.d.mts → useLatest-DRDDVwjh.d.mts} +5 -25
- package/dist/useLatest-DRDDVwjh.d.mts.map +1 -0
- package/dist/{with-text-input-CRfoiFFG.d.mts → with-text-input-YeohVLeo.d.mts} +4 -55
- package/dist/with-text-input-YeohVLeo.d.mts.map +1 -0
- package/dist/wrapper-C70ATkVv.mjs +3527 -0
- package/dist/wrapper-C70ATkVv.mjs.map +1 -0
- package/dist/{wrappers-UTADQkSY.mjs → wrappers-BCUYITrY.mjs} +5 -157
- package/dist/wrappers-BCUYITrY.mjs.map +1 -0
- package/dist/{yoga-adapter-8oRGRw8V.mjs → yoga-adapter-BnZX1PAY.mjs} +28 -2
- package/dist/yoga-adapter-BnZX1PAY.mjs.map +1 -0
- package/dist/yoga-adapter-DxgsQ_gg.mjs +2 -0
- package/dist/zipBundle-3nqeDRtm.mjs +3 -0
- package/dist/zipBundle-VNAYFmqJ.mjs +2003 -0
- package/dist/zipBundle-VNAYFmqJ.mjs.map +1 -0
- package/package.json +20 -9
- package/dist/animation-Cn64yepo.mjs.map +0 -1
- package/dist/cli-BKp0YtBD.mjs +0 -4
- package/dist/devtools-9QY4teqI.mjs +0 -2
- package/dist/flexily-zero-adapter-BlQa46nr.mjs +0 -3385
- package/dist/flexily-zero-adapter-BlQa46nr.mjs.map +0 -1
- package/dist/image-CTII5QWI.mjs +0 -477
- package/dist/image-CTII5QWI.mjs.map +0 -1
- package/dist/index-BXslOebb.d.mts.map +0 -1
- package/dist/index-BnA7mNpo.d.mts +0 -175
- package/dist/index-BnA7mNpo.d.mts.map +0 -1
- package/dist/index-D3saHouR.d.mts.map +0 -1
- package/dist/layout-engine-ClUgv6jB.mjs +0 -50
- package/dist/layout-engine-ClUgv6jB.mjs.map +0 -1
- package/dist/node-BeWlnCPY.mjs.map +0 -1
- package/dist/reconciler-Cwgm8hRR.mjs +0 -8459
- package/dist/reconciler-Cwgm8hRR.mjs.map +0 -1
- package/dist/render-string-X-CxpTdZ.mjs.map +0 -1
- package/dist/spinner-CeOmcuw_.mjs.map +0 -1
- package/dist/src-B5GjfG7g.mjs +0 -4305
- package/dist/src-B5GjfG7g.mjs.map +0 -1
- package/dist/src-Bd7ezSgG.mjs.map +0 -1
- package/dist/src-CChwjk0Z.mjs +0 -738
- package/dist/src-CChwjk0Z.mjs.map +0 -1
- package/dist/src-NCKb8kE5.mjs +0 -2660
- package/dist/src-NCKb8kE5.mjs.map +0 -1
- package/dist/types-BH_v3iMT.d.mts.map +0 -1
- package/dist/types-Bk2yw9Qj.mjs.map +0 -1
- package/dist/ui/progress.d.mts.map +0 -1
- package/dist/ui/progress.mjs.map +0 -1
- package/dist/useLatest-Bg2x4bfP.d.mts.map +0 -1
- package/dist/with-text-input-CRfoiFFG.d.mts.map +0 -1
- package/dist/wrappers-UTADQkSY.mjs.map +0 -1
- package/dist/yoga-adapter-8oRGRw8V.mjs.map +0 -1
- package/dist/yoga-adapter-D_CcxSt5.mjs +0 -2
|
@@ -0,0 +1,2003 @@
|
|
|
1
|
+
import { i as __require, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
+
//#region ../../node_modules/.bun/playwright-core@1.59.1/node_modules/playwright-core/lib/zipBundleImpl.js
|
|
3
|
+
var require_zipBundleImpl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
var Et = Object.create;
|
|
5
|
+
var oe = Object.defineProperty;
|
|
6
|
+
var vt = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var wt = Object.getOwnPropertyNames;
|
|
8
|
+
var yt = Object.getPrototypeOf, gt = Object.prototype.hasOwnProperty;
|
|
9
|
+
var v = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports), Ct = (e, r) => {
|
|
10
|
+
for (var t in r) oe(e, t, {
|
|
11
|
+
get: r[t],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
}, or = (e, r, t, n) => {
|
|
15
|
+
if (r && typeof r == "object" || typeof r == "function") for (let i of wt(r)) !gt.call(e, i) && i !== t && oe(e, i, {
|
|
16
|
+
get: () => r[i],
|
|
17
|
+
enumerable: !(n = vt(r, i)) || n.enumerable
|
|
18
|
+
});
|
|
19
|
+
return e;
|
|
20
|
+
};
|
|
21
|
+
var sr = (e, r, t) => (t = e != null ? Et(yt(e)) : {}, or(r || !e || !e.__esModule ? oe(t, "default", {
|
|
22
|
+
value: e,
|
|
23
|
+
enumerable: !0
|
|
24
|
+
}) : t, e)), bt = (e) => or(oe({}, "__esModule", { value: !0 }), e);
|
|
25
|
+
var Ne = v((Mn, ar) => {
|
|
26
|
+
var U = __require("buffer").Buffer, Ae = [
|
|
27
|
+
0,
|
|
28
|
+
1996959894,
|
|
29
|
+
3993919788,
|
|
30
|
+
2567524794,
|
|
31
|
+
124634137,
|
|
32
|
+
1886057615,
|
|
33
|
+
3915621685,
|
|
34
|
+
2657392035,
|
|
35
|
+
249268274,
|
|
36
|
+
2044508324,
|
|
37
|
+
3772115230,
|
|
38
|
+
2547177864,
|
|
39
|
+
162941995,
|
|
40
|
+
2125561021,
|
|
41
|
+
3887607047,
|
|
42
|
+
2428444049,
|
|
43
|
+
498536548,
|
|
44
|
+
1789927666,
|
|
45
|
+
4089016648,
|
|
46
|
+
2227061214,
|
|
47
|
+
450548861,
|
|
48
|
+
1843258603,
|
|
49
|
+
4107580753,
|
|
50
|
+
2211677639,
|
|
51
|
+
325883990,
|
|
52
|
+
1684777152,
|
|
53
|
+
4251122042,
|
|
54
|
+
2321926636,
|
|
55
|
+
335633487,
|
|
56
|
+
1661365465,
|
|
57
|
+
4195302755,
|
|
58
|
+
2366115317,
|
|
59
|
+
997073096,
|
|
60
|
+
1281953886,
|
|
61
|
+
3579855332,
|
|
62
|
+
2724688242,
|
|
63
|
+
1006888145,
|
|
64
|
+
1258607687,
|
|
65
|
+
3524101629,
|
|
66
|
+
2768942443,
|
|
67
|
+
901097722,
|
|
68
|
+
1119000684,
|
|
69
|
+
3686517206,
|
|
70
|
+
2898065728,
|
|
71
|
+
853044451,
|
|
72
|
+
1172266101,
|
|
73
|
+
3705015759,
|
|
74
|
+
2882616665,
|
|
75
|
+
651767980,
|
|
76
|
+
1373503546,
|
|
77
|
+
3369554304,
|
|
78
|
+
3218104598,
|
|
79
|
+
565507253,
|
|
80
|
+
1454621731,
|
|
81
|
+
3485111705,
|
|
82
|
+
3099436303,
|
|
83
|
+
671266974,
|
|
84
|
+
1594198024,
|
|
85
|
+
3322730930,
|
|
86
|
+
2970347812,
|
|
87
|
+
795835527,
|
|
88
|
+
1483230225,
|
|
89
|
+
3244367275,
|
|
90
|
+
3060149565,
|
|
91
|
+
1994146192,
|
|
92
|
+
31158534,
|
|
93
|
+
2563907772,
|
|
94
|
+
4023717930,
|
|
95
|
+
1907459465,
|
|
96
|
+
112637215,
|
|
97
|
+
2680153253,
|
|
98
|
+
3904427059,
|
|
99
|
+
2013776290,
|
|
100
|
+
251722036,
|
|
101
|
+
2517215374,
|
|
102
|
+
3775830040,
|
|
103
|
+
2137656763,
|
|
104
|
+
141376813,
|
|
105
|
+
2439277719,
|
|
106
|
+
3865271297,
|
|
107
|
+
1802195444,
|
|
108
|
+
476864866,
|
|
109
|
+
2238001368,
|
|
110
|
+
4066508878,
|
|
111
|
+
1812370925,
|
|
112
|
+
453092731,
|
|
113
|
+
2181625025,
|
|
114
|
+
4111451223,
|
|
115
|
+
1706088902,
|
|
116
|
+
314042704,
|
|
117
|
+
2344532202,
|
|
118
|
+
4240017532,
|
|
119
|
+
1658658271,
|
|
120
|
+
366619977,
|
|
121
|
+
2362670323,
|
|
122
|
+
4224994405,
|
|
123
|
+
1303535960,
|
|
124
|
+
984961486,
|
|
125
|
+
2747007092,
|
|
126
|
+
3569037538,
|
|
127
|
+
1256170817,
|
|
128
|
+
1037604311,
|
|
129
|
+
2765210733,
|
|
130
|
+
3554079995,
|
|
131
|
+
1131014506,
|
|
132
|
+
879679996,
|
|
133
|
+
2909243462,
|
|
134
|
+
3663771856,
|
|
135
|
+
1141124467,
|
|
136
|
+
855842277,
|
|
137
|
+
2852801631,
|
|
138
|
+
3708648649,
|
|
139
|
+
1342533948,
|
|
140
|
+
654459306,
|
|
141
|
+
3188396048,
|
|
142
|
+
3373015174,
|
|
143
|
+
1466479909,
|
|
144
|
+
544179635,
|
|
145
|
+
3110523913,
|
|
146
|
+
3462522015,
|
|
147
|
+
1591671054,
|
|
148
|
+
702138776,
|
|
149
|
+
2966460450,
|
|
150
|
+
3352799412,
|
|
151
|
+
1504918807,
|
|
152
|
+
783551873,
|
|
153
|
+
3082640443,
|
|
154
|
+
3233442989,
|
|
155
|
+
3988292384,
|
|
156
|
+
2596254646,
|
|
157
|
+
62317068,
|
|
158
|
+
1957810842,
|
|
159
|
+
3939845945,
|
|
160
|
+
2647816111,
|
|
161
|
+
81470997,
|
|
162
|
+
1943803523,
|
|
163
|
+
3814918930,
|
|
164
|
+
2489596804,
|
|
165
|
+
225274430,
|
|
166
|
+
2053790376,
|
|
167
|
+
3826175755,
|
|
168
|
+
2466906013,
|
|
169
|
+
167816743,
|
|
170
|
+
2097651377,
|
|
171
|
+
4027552580,
|
|
172
|
+
2265490386,
|
|
173
|
+
503444072,
|
|
174
|
+
1762050814,
|
|
175
|
+
4150417245,
|
|
176
|
+
2154129355,
|
|
177
|
+
426522225,
|
|
178
|
+
1852507879,
|
|
179
|
+
4275313526,
|
|
180
|
+
2312317920,
|
|
181
|
+
282753626,
|
|
182
|
+
1742555852,
|
|
183
|
+
4189708143,
|
|
184
|
+
2394877945,
|
|
185
|
+
397917763,
|
|
186
|
+
1622183637,
|
|
187
|
+
3604390888,
|
|
188
|
+
2714866558,
|
|
189
|
+
953729732,
|
|
190
|
+
1340076626,
|
|
191
|
+
3518719985,
|
|
192
|
+
2797360999,
|
|
193
|
+
1068828381,
|
|
194
|
+
1219638859,
|
|
195
|
+
3624741850,
|
|
196
|
+
2936675148,
|
|
197
|
+
906185462,
|
|
198
|
+
1090812512,
|
|
199
|
+
3747672003,
|
|
200
|
+
2825379669,
|
|
201
|
+
829329135,
|
|
202
|
+
1181335161,
|
|
203
|
+
3412177804,
|
|
204
|
+
3160834842,
|
|
205
|
+
628085408,
|
|
206
|
+
1382605366,
|
|
207
|
+
3423369109,
|
|
208
|
+
3138078467,
|
|
209
|
+
570562233,
|
|
210
|
+
1426400815,
|
|
211
|
+
3317316542,
|
|
212
|
+
2998733608,
|
|
213
|
+
733239954,
|
|
214
|
+
1555261956,
|
|
215
|
+
3268935591,
|
|
216
|
+
3050360625,
|
|
217
|
+
752459403,
|
|
218
|
+
1541320221,
|
|
219
|
+
2607071920,
|
|
220
|
+
3965973030,
|
|
221
|
+
1969922972,
|
|
222
|
+
40735498,
|
|
223
|
+
2617837225,
|
|
224
|
+
3943577151,
|
|
225
|
+
1913087877,
|
|
226
|
+
83908371,
|
|
227
|
+
2512341634,
|
|
228
|
+
3803740692,
|
|
229
|
+
2075208622,
|
|
230
|
+
213261112,
|
|
231
|
+
2463272603,
|
|
232
|
+
3855990285,
|
|
233
|
+
2094854071,
|
|
234
|
+
198958881,
|
|
235
|
+
2262029012,
|
|
236
|
+
4057260610,
|
|
237
|
+
1759359992,
|
|
238
|
+
534414190,
|
|
239
|
+
2176718541,
|
|
240
|
+
4139329115,
|
|
241
|
+
1873836001,
|
|
242
|
+
414664567,
|
|
243
|
+
2282248934,
|
|
244
|
+
4279200368,
|
|
245
|
+
1711684554,
|
|
246
|
+
285281116,
|
|
247
|
+
2405801727,
|
|
248
|
+
4167216745,
|
|
249
|
+
1634467795,
|
|
250
|
+
376229701,
|
|
251
|
+
2685067896,
|
|
252
|
+
3608007406,
|
|
253
|
+
1308918612,
|
|
254
|
+
956543938,
|
|
255
|
+
2808555105,
|
|
256
|
+
3495958263,
|
|
257
|
+
1231636301,
|
|
258
|
+
1047427035,
|
|
259
|
+
2932959818,
|
|
260
|
+
3654703836,
|
|
261
|
+
1088359270,
|
|
262
|
+
936918e3,
|
|
263
|
+
2847714899,
|
|
264
|
+
3736837829,
|
|
265
|
+
1202900863,
|
|
266
|
+
817233897,
|
|
267
|
+
3183342108,
|
|
268
|
+
3401237130,
|
|
269
|
+
1404277552,
|
|
270
|
+
615818150,
|
|
271
|
+
3134207493,
|
|
272
|
+
3453421203,
|
|
273
|
+
1423857449,
|
|
274
|
+
601450431,
|
|
275
|
+
3009837614,
|
|
276
|
+
3294710456,
|
|
277
|
+
1567103746,
|
|
278
|
+
711928724,
|
|
279
|
+
3020668471,
|
|
280
|
+
3272380065,
|
|
281
|
+
1510334235,
|
|
282
|
+
755167117
|
|
283
|
+
];
|
|
284
|
+
typeof Int32Array != "undefined" && (Ae = new Int32Array(Ae));
|
|
285
|
+
function fr(e) {
|
|
286
|
+
if (U.isBuffer(e)) return e;
|
|
287
|
+
var r = typeof U.alloc == "function" && typeof U.from == "function";
|
|
288
|
+
if (typeof e == "number") return r ? U.alloc(e) : new U(e);
|
|
289
|
+
if (typeof e == "string") return r ? U.from(e) : new U(e);
|
|
290
|
+
throw new Error("input must be buffer, number, or string, received " + typeof e);
|
|
291
|
+
}
|
|
292
|
+
function Ft(e) {
|
|
293
|
+
var r = fr(4);
|
|
294
|
+
return r.writeInt32BE(e, 0), r;
|
|
295
|
+
}
|
|
296
|
+
function Ue(e, r) {
|
|
297
|
+
e = fr(e), U.isBuffer(r) && (r = r.readUInt32BE(0));
|
|
298
|
+
for (var t = ~~r ^ -1, n = 0; n < e.length; n++) t = Ae[(t ^ e[n]) & 255] ^ t >>> 8;
|
|
299
|
+
return t ^ -1;
|
|
300
|
+
}
|
|
301
|
+
function Te() {
|
|
302
|
+
return Ft(Ue.apply(null, arguments));
|
|
303
|
+
}
|
|
304
|
+
Te.signed = function() {
|
|
305
|
+
return Ue.apply(null, arguments);
|
|
306
|
+
};
|
|
307
|
+
Te.unsigned = function() {
|
|
308
|
+
return Ue.apply(null, arguments) >>> 0;
|
|
309
|
+
};
|
|
310
|
+
ar.exports = Te;
|
|
311
|
+
});
|
|
312
|
+
var Fr = v((We) => {
|
|
313
|
+
var ur = __require("fs"), ce = __require("stream").Transform, cr = __require("stream").PassThrough, dr = __require("zlib"), Pe = __require("util"), It = __require("events").EventEmitter, lr = Ne();
|
|
314
|
+
We.ZipFile = P;
|
|
315
|
+
We.dateToDosDateTime = br;
|
|
316
|
+
Pe.inherits(P, It);
|
|
317
|
+
function P() {
|
|
318
|
+
this.outputStream = new cr(), this.entries = [], this.outputStreamCursor = 0, this.ended = !1, this.allDone = !1, this.forceZip64Eocd = !1;
|
|
319
|
+
}
|
|
320
|
+
P.prototype.addFile = function(e, r, t) {
|
|
321
|
+
var n = this;
|
|
322
|
+
r = de(r, !1), t ??= {};
|
|
323
|
+
var i = new m(r, !1, t);
|
|
324
|
+
n.entries.push(i), ur.stat(e, function(s, o) {
|
|
325
|
+
if (s) return n.emit("error", s);
|
|
326
|
+
if (!o.isFile()) return n.emit("error", /* @__PURE__ */ new Error("not a file: " + e));
|
|
327
|
+
i.uncompressedSize = o.size, t.mtime ?? i.setLastModDate(o.mtime), t.mode ?? i.setFileAttributesMode(o.mode), i.setFileDataPumpFunction(function() {
|
|
328
|
+
var f = ur.createReadStream(e);
|
|
329
|
+
i.state = m.FILE_DATA_IN_PROGRESS, f.on("error", function(u) {
|
|
330
|
+
n.emit("error", u);
|
|
331
|
+
}), hr(n, i, f);
|
|
332
|
+
}), N(n);
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
P.prototype.addReadStream = function(e, r, t) {
|
|
336
|
+
var n = this;
|
|
337
|
+
r = de(r, !1), t ??= {};
|
|
338
|
+
var i = new m(r, !1, t);
|
|
339
|
+
n.entries.push(i), i.setFileDataPumpFunction(function() {
|
|
340
|
+
i.state = m.FILE_DATA_IN_PROGRESS, hr(n, i, e);
|
|
341
|
+
}), N(n);
|
|
342
|
+
};
|
|
343
|
+
P.prototype.addBuffer = function(e, r, t) {
|
|
344
|
+
var n = this;
|
|
345
|
+
if (r = de(r, !1), e.length > 1073741823) throw new Error("buffer too large: " + e.length + " > 1073741823");
|
|
346
|
+
if (t ??= {}, t.size != null) throw new Error("options.size not allowed");
|
|
347
|
+
var i = new m(r, !1, t);
|
|
348
|
+
i.uncompressedSize = e.length, i.crc32 = lr.unsigned(e), i.crcAndFileSizeKnown = !0, n.entries.push(i), i.compress ? dr.deflateRaw(e, function(o, f) {
|
|
349
|
+
s(f);
|
|
350
|
+
}) : s(e);
|
|
351
|
+
function s(o) {
|
|
352
|
+
i.compressedSize = o.length, i.setFileDataPumpFunction(function() {
|
|
353
|
+
q(n, o), q(n, i.getDataDescriptor()), i.state = m.FILE_DATA_DONE, setImmediate(function() {
|
|
354
|
+
N(n);
|
|
355
|
+
});
|
|
356
|
+
}), N(n);
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
P.prototype.addEmptyDirectory = function(e, r) {
|
|
360
|
+
var t = this;
|
|
361
|
+
if (e = de(e, !0), r ??= {}, r.size != null) throw new Error("options.size not allowed");
|
|
362
|
+
if (r.compress != null) throw new Error("options.compress not allowed");
|
|
363
|
+
var n = new m(e, !0, r);
|
|
364
|
+
t.entries.push(n), n.setFileDataPumpFunction(function() {
|
|
365
|
+
q(t, n.getDataDescriptor()), n.state = m.FILE_DATA_DONE, N(t);
|
|
366
|
+
}), N(t);
|
|
367
|
+
};
|
|
368
|
+
var St = T([
|
|
369
|
+
80,
|
|
370
|
+
75,
|
|
371
|
+
5,
|
|
372
|
+
6
|
|
373
|
+
]);
|
|
374
|
+
P.prototype.end = function(e, r) {
|
|
375
|
+
if (typeof e == "function" && (r = e, e = null), e ??= {}, !this.ended) {
|
|
376
|
+
if (this.ended = !0, this.finalSizeCallback = r, this.forceZip64Eocd = !!e.forceZip64Format, e.comment) {
|
|
377
|
+
if (typeof e.comment == "string" ? this.comment = zt(e.comment) : this.comment = e.comment, this.comment.length > 65535) throw new Error("comment is too large");
|
|
378
|
+
if (J(this.comment, St)) throw new Error("comment contains end of central directory record signature");
|
|
379
|
+
} else this.comment = le;
|
|
380
|
+
N(this);
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
function q(e, r) {
|
|
384
|
+
e.outputStream.write(r), e.outputStreamCursor += r.length;
|
|
385
|
+
}
|
|
386
|
+
function hr(e, r, t) {
|
|
387
|
+
var n = new Ze(), i = new ue(), s = r.compress ? new dr.DeflateRaw() : new cr(), o = new ue();
|
|
388
|
+
t.pipe(n).pipe(i).pipe(s).pipe(o).pipe(e.outputStream, { end: !1 }), o.on("end", function() {
|
|
389
|
+
if (r.crc32 = n.crc32, r.uncompressedSize == null) r.uncompressedSize = i.byteCount;
|
|
390
|
+
else if (r.uncompressedSize !== i.byteCount) return e.emit("error", /* @__PURE__ */ new Error("file data stream has unexpected number of bytes"));
|
|
391
|
+
r.compressedSize = o.byteCount, e.outputStreamCursor += r.compressedSize, q(e, r.getDataDescriptor()), r.state = m.FILE_DATA_DONE, N(e);
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
function N(e) {
|
|
395
|
+
if (e.allDone) return;
|
|
396
|
+
if (e.ended && e.finalSizeCallback != null) {
|
|
397
|
+
var r = Lt(e);
|
|
398
|
+
r != null && (e.finalSizeCallback(r), e.finalSizeCallback = null);
|
|
399
|
+
}
|
|
400
|
+
var t = n();
|
|
401
|
+
function n() {
|
|
402
|
+
for (var s = 0; s < e.entries.length; s++) {
|
|
403
|
+
var o = e.entries[s];
|
|
404
|
+
if (o.state < m.FILE_DATA_DONE) return o;
|
|
405
|
+
}
|
|
406
|
+
return null;
|
|
407
|
+
}
|
|
408
|
+
if (t != null) {
|
|
409
|
+
if (t.state < m.READY_TO_PUMP_FILE_DATA || t.state === m.FILE_DATA_IN_PROGRESS) return;
|
|
410
|
+
t.relativeOffsetOfLocalHeader = e.outputStreamCursor;
|
|
411
|
+
q(e, t.getLocalFileHeader()), t.doFileDataPump();
|
|
412
|
+
} else e.ended && (e.offsetOfStartOfCentralDirectory = e.outputStreamCursor, e.entries.forEach(function(s) {
|
|
413
|
+
q(e, s.getCentralDirectoryRecord());
|
|
414
|
+
}), q(e, Ot(e)), e.outputStream.end(), e.allDone = !0);
|
|
415
|
+
}
|
|
416
|
+
function Lt(e) {
|
|
417
|
+
for (var r = 0, t = 0, n = 0; n < e.entries.length; n++) {
|
|
418
|
+
var i = e.entries[n];
|
|
419
|
+
if (i.compress) return -1;
|
|
420
|
+
if (i.state >= m.READY_TO_PUMP_FILE_DATA) {
|
|
421
|
+
if (i.uncompressedSize == null) return -1;
|
|
422
|
+
} else if (i.uncompressedSize == null) return null;
|
|
423
|
+
i.relativeOffsetOfLocalHeader = r;
|
|
424
|
+
var s = i.useZip64Format();
|
|
425
|
+
r += mr + i.utf8FileName.length, r += i.uncompressedSize, i.crcAndFileSizeKnown || (s ? r += gr : r += yr), t += Cr + i.utf8FileName.length + i.fileComment.length, s && (t += Be);
|
|
426
|
+
}
|
|
427
|
+
var o = 0;
|
|
428
|
+
return (e.forceZip64Eocd || e.entries.length >= 65535 || t >= 65535 || r >= 4294967295) && (o += fe + Me), o += ae + e.comment.length, r + t + o;
|
|
429
|
+
}
|
|
430
|
+
var fe = 56, Me = 20, ae = 22;
|
|
431
|
+
function Ot(e, r) {
|
|
432
|
+
var t = !1, n = e.entries.length;
|
|
433
|
+
(e.forceZip64Eocd || e.entries.length >= 65535) && (n = 65535, t = !0);
|
|
434
|
+
var i = e.outputStreamCursor - e.offsetOfStartOfCentralDirectory, s = i;
|
|
435
|
+
(e.forceZip64Eocd || i >= 4294967295) && (s = 4294967295, t = !0);
|
|
436
|
+
var o = e.offsetOfStartOfCentralDirectory;
|
|
437
|
+
if ((e.forceZip64Eocd || e.offsetOfStartOfCentralDirectory >= 4294967295) && (o = 4294967295, t = !0), r) return t ? fe + Me + ae : ae;
|
|
438
|
+
var f = g(ae + e.comment.length);
|
|
439
|
+
if (f.writeUInt32LE(101010256, 0), f.writeUInt16LE(0, 4), f.writeUInt16LE(0, 6), f.writeUInt16LE(n, 8), f.writeUInt16LE(n, 10), f.writeUInt32LE(s, 12), f.writeUInt32LE(o, 16), f.writeUInt16LE(e.comment.length, 20), e.comment.copy(f, 22), !t) return f;
|
|
440
|
+
var u = g(fe);
|
|
441
|
+
u.writeUInt32LE(101075792, 0), I(u, fe - 12, 4), u.writeUInt16LE(Er, 12), u.writeUInt16LE(xr, 14), u.writeUInt32LE(0, 16), u.writeUInt32LE(0, 20), I(u, e.entries.length, 24), I(u, e.entries.length, 32), I(u, i, 40), I(u, e.offsetOfStartOfCentralDirectory, 48);
|
|
442
|
+
var l = g(Me);
|
|
443
|
+
return l.writeUInt32LE(117853008, 0), l.writeUInt32LE(0, 4), I(l, e.outputStreamCursor, 8), l.writeUInt32LE(1, 16), Buffer.concat([
|
|
444
|
+
u,
|
|
445
|
+
l,
|
|
446
|
+
f
|
|
447
|
+
]);
|
|
448
|
+
}
|
|
449
|
+
function de(e, r) {
|
|
450
|
+
if (e === "") throw new Error("empty metadataPath");
|
|
451
|
+
if (e = e.replace(/\\/g, "/"), /^[a-zA-Z]:/.test(e) || /^\//.test(e)) throw new Error("absolute path: " + e);
|
|
452
|
+
if (e.split("/").indexOf("..") !== -1) throw new Error("invalid relative path: " + e);
|
|
453
|
+
var t = /\/$/.test(e);
|
|
454
|
+
if (r) t || (e += "/");
|
|
455
|
+
else if (t) throw new Error("file path cannot end with '/': " + e);
|
|
456
|
+
return e;
|
|
457
|
+
}
|
|
458
|
+
var le = g(0);
|
|
459
|
+
function m(e, r, t) {
|
|
460
|
+
if (this.utf8FileName = T(e), this.utf8FileName.length > 65535) throw new Error("utf8 file name too long. " + utf8FileName.length + " > 65535");
|
|
461
|
+
if (this.isDirectory = r, this.state = m.WAITING_FOR_METADATA, this.setLastModDate(t.mtime != null ? t.mtime : /* @__PURE__ */ new Date()), t.mode != null ? this.setFileAttributesMode(t.mode) : this.setFileAttributesMode(r ? 16893 : 33204), r ? (this.crcAndFileSizeKnown = !0, this.crc32 = 0, this.uncompressedSize = 0, this.compressedSize = 0) : (this.crcAndFileSizeKnown = !1, this.crc32 = null, this.uncompressedSize = null, this.compressedSize = null, t.size != null && (this.uncompressedSize = t.size)), r ? this.compress = !1 : (this.compress = !0, t.compress != null && (this.compress = !!t.compress)), this.forceZip64Format = !!t.forceZip64Format, t.fileComment) {
|
|
462
|
+
if (typeof t.fileComment == "string" ? this.fileComment = T(t.fileComment, "utf-8") : this.fileComment = t.fileComment, this.fileComment.length > 65535) throw new Error("fileComment is too large");
|
|
463
|
+
} else this.fileComment = le;
|
|
464
|
+
}
|
|
465
|
+
m.WAITING_FOR_METADATA = 0;
|
|
466
|
+
m.READY_TO_PUMP_FILE_DATA = 1;
|
|
467
|
+
m.FILE_DATA_IN_PROGRESS = 2;
|
|
468
|
+
m.FILE_DATA_DONE = 3;
|
|
469
|
+
m.prototype.setLastModDate = function(e) {
|
|
470
|
+
var r = br(e);
|
|
471
|
+
this.lastModFileTime = r.time, this.lastModFileDate = r.date;
|
|
472
|
+
};
|
|
473
|
+
m.prototype.setFileAttributesMode = function(e) {
|
|
474
|
+
if ((e & 65535) !== e) throw new Error("invalid mode. expected: 0 <= " + e + " <= 65535");
|
|
475
|
+
this.externalFileAttributes = e << 16 >>> 0;
|
|
476
|
+
};
|
|
477
|
+
m.prototype.setFileDataPumpFunction = function(e) {
|
|
478
|
+
this.doFileDataPump = e, this.state = m.READY_TO_PUMP_FILE_DATA;
|
|
479
|
+
};
|
|
480
|
+
m.prototype.useZip64Format = function() {
|
|
481
|
+
return this.forceZip64Format || this.uncompressedSize != null && this.uncompressedSize > 4294967294 || this.compressedSize != null && this.compressedSize > 4294967294 || this.relativeOffsetOfLocalHeader != null && this.relativeOffsetOfLocalHeader > 4294967294;
|
|
482
|
+
};
|
|
483
|
+
var mr = 30, pr = 20, xr = 45, Er = 831, vr = 2048, wr = 8;
|
|
484
|
+
m.prototype.getLocalFileHeader = function() {
|
|
485
|
+
var e = 0, r = 0, t = 0;
|
|
486
|
+
this.crcAndFileSizeKnown && (e = this.crc32, r = this.compressedSize, t = this.uncompressedSize);
|
|
487
|
+
var n = g(mr), i = vr;
|
|
488
|
+
return this.crcAndFileSizeKnown || (i |= wr), n.writeUInt32LE(67324752, 0), n.writeUInt16LE(pr, 4), n.writeUInt16LE(i, 6), n.writeUInt16LE(this.getCompressionMethod(), 8), n.writeUInt16LE(this.lastModFileTime, 10), n.writeUInt16LE(this.lastModFileDate, 12), n.writeUInt32LE(e, 14), n.writeUInt32LE(r, 18), n.writeUInt32LE(t, 22), n.writeUInt16LE(this.utf8FileName.length, 26), n.writeUInt16LE(0, 28), Buffer.concat([n, this.utf8FileName]);
|
|
489
|
+
};
|
|
490
|
+
var yr = 16, gr = 24;
|
|
491
|
+
m.prototype.getDataDescriptor = function() {
|
|
492
|
+
if (this.crcAndFileSizeKnown) return le;
|
|
493
|
+
if (this.useZip64Format()) {
|
|
494
|
+
var e = g(gr);
|
|
495
|
+
return e.writeUInt32LE(134695760, 0), e.writeUInt32LE(this.crc32, 4), I(e, this.compressedSize, 8), I(e, this.uncompressedSize, 16), e;
|
|
496
|
+
} else {
|
|
497
|
+
var e = g(yr);
|
|
498
|
+
return e.writeUInt32LE(134695760, 0), e.writeUInt32LE(this.crc32, 4), e.writeUInt32LE(this.compressedSize, 8), e.writeUInt32LE(this.uncompressedSize, 12), e;
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
var Cr = 46, Be = 28;
|
|
502
|
+
m.prototype.getCentralDirectoryRecord = function() {
|
|
503
|
+
var e = g(Cr), r = vr;
|
|
504
|
+
this.crcAndFileSizeKnown || (r |= wr);
|
|
505
|
+
var t = this.compressedSize, n = this.uncompressedSize, i = this.relativeOffsetOfLocalHeader, s, o;
|
|
506
|
+
return this.useZip64Format() ? (t = 4294967295, n = 4294967295, i = 4294967295, s = xr, o = g(Be), o.writeUInt16LE(1, 0), o.writeUInt16LE(Be - 4, 2), I(o, this.uncompressedSize, 4), I(o, this.compressedSize, 12), I(o, this.relativeOffsetOfLocalHeader, 20)) : (s = pr, o = le), e.writeUInt32LE(33639248, 0), e.writeUInt16LE(Er, 4), e.writeUInt16LE(s, 6), e.writeUInt16LE(r, 8), e.writeUInt16LE(this.getCompressionMethod(), 10), e.writeUInt16LE(this.lastModFileTime, 12), e.writeUInt16LE(this.lastModFileDate, 14), e.writeUInt32LE(this.crc32, 16), e.writeUInt32LE(t, 20), e.writeUInt32LE(n, 24), e.writeUInt16LE(this.utf8FileName.length, 28), e.writeUInt16LE(o.length, 30), e.writeUInt16LE(this.fileComment.length, 32), e.writeUInt16LE(0, 34), e.writeUInt16LE(0, 36), e.writeUInt32LE(this.externalFileAttributes, 38), e.writeUInt32LE(i, 42), Buffer.concat([
|
|
507
|
+
e,
|
|
508
|
+
this.utf8FileName,
|
|
509
|
+
o,
|
|
510
|
+
this.fileComment
|
|
511
|
+
]);
|
|
512
|
+
};
|
|
513
|
+
m.prototype.getCompressionMethod = function() {
|
|
514
|
+
return this.compress ? 8 : 0;
|
|
515
|
+
};
|
|
516
|
+
function br(e) {
|
|
517
|
+
var r = 0;
|
|
518
|
+
r |= e.getDate() & 31, r |= (e.getMonth() + 1 & 15) << 5, r |= (e.getFullYear() - 1980 & 127) << 9;
|
|
519
|
+
var t = 0;
|
|
520
|
+
return t |= Math.floor(e.getSeconds() / 2), t |= (e.getMinutes() & 63) << 5, t |= (e.getHours() & 31) << 11, {
|
|
521
|
+
date: r,
|
|
522
|
+
time: t
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
function I(e, r, t) {
|
|
526
|
+
var n = Math.floor(r / 4294967296), i = r % 4294967296;
|
|
527
|
+
e.writeUInt32LE(i, t), e.writeUInt32LE(n, t + 4);
|
|
528
|
+
}
|
|
529
|
+
Pe.inherits(ue, ce);
|
|
530
|
+
function ue(e) {
|
|
531
|
+
ce.call(this, e), this.byteCount = 0;
|
|
532
|
+
}
|
|
533
|
+
ue.prototype._transform = function(e, r, t) {
|
|
534
|
+
this.byteCount += e.length, t(null, e);
|
|
535
|
+
};
|
|
536
|
+
Pe.inherits(Ze, ce);
|
|
537
|
+
function Ze(e) {
|
|
538
|
+
ce.call(this, e), this.crc32 = 0;
|
|
539
|
+
}
|
|
540
|
+
Ze.prototype._transform = function(e, r, t) {
|
|
541
|
+
this.crc32 = lr.unsigned(e, this.crc32), t(null, e);
|
|
542
|
+
};
|
|
543
|
+
var qe = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0";
|
|
544
|
+
if (qe.length !== 256) throw new Error("assertion failure");
|
|
545
|
+
var se = null;
|
|
546
|
+
function zt(e) {
|
|
547
|
+
if (/^[\x20-\x7e]*$/.test(e)) return T(e, "utf-8");
|
|
548
|
+
if (se == null) {
|
|
549
|
+
se = {};
|
|
550
|
+
for (var r = 0; r < qe.length; r++) se[qe[r]] = r;
|
|
551
|
+
}
|
|
552
|
+
for (var t = g(e.length), r = 0; r < e.length; r++) {
|
|
553
|
+
var n = se[e[r]];
|
|
554
|
+
if (n == null) throw new Error("character not encodable in CP437: " + JSON.stringify(e[r]));
|
|
555
|
+
t[r] = n;
|
|
556
|
+
}
|
|
557
|
+
return t;
|
|
558
|
+
}
|
|
559
|
+
function g(e) {
|
|
560
|
+
g = r;
|
|
561
|
+
try {
|
|
562
|
+
return g(e);
|
|
563
|
+
} catch {
|
|
564
|
+
return g = t, g(e);
|
|
565
|
+
}
|
|
566
|
+
function r(n) {
|
|
567
|
+
return Buffer.allocUnsafe(n);
|
|
568
|
+
}
|
|
569
|
+
function t(n) {
|
|
570
|
+
return new Buffer(n);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
function T(e, r) {
|
|
574
|
+
T = t;
|
|
575
|
+
try {
|
|
576
|
+
return T(e, r);
|
|
577
|
+
} catch {
|
|
578
|
+
return T = n, T(e, r);
|
|
579
|
+
}
|
|
580
|
+
function t(i, s) {
|
|
581
|
+
return Buffer.from(i, s);
|
|
582
|
+
}
|
|
583
|
+
function n(i, s) {
|
|
584
|
+
return new Buffer(i, s);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
function J(e, r) {
|
|
588
|
+
J = t;
|
|
589
|
+
try {
|
|
590
|
+
return J(e, r);
|
|
591
|
+
} catch {
|
|
592
|
+
return J = n, J(e, r);
|
|
593
|
+
}
|
|
594
|
+
function t(i, s) {
|
|
595
|
+
return i.includes(s);
|
|
596
|
+
}
|
|
597
|
+
function n(i, s) {
|
|
598
|
+
for (var o = 0; o <= i.length - s.length; o++) for (var f = 0;; f++) {
|
|
599
|
+
if (f === s.length) return !0;
|
|
600
|
+
if (i[o + f] !== s[f]) break;
|
|
601
|
+
}
|
|
602
|
+
return !1;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
var Or = v((qn, Lr) => {
|
|
607
|
+
Lr.exports = he;
|
|
608
|
+
function he() {
|
|
609
|
+
this.pending = 0, this.max = Infinity, this.listeners = [], this.waiting = [], this.error = null;
|
|
610
|
+
}
|
|
611
|
+
he.prototype.go = function(e) {
|
|
612
|
+
this.pending < this.max ? Sr(this, e) : this.waiting.push(e);
|
|
613
|
+
};
|
|
614
|
+
he.prototype.wait = function(e) {
|
|
615
|
+
this.pending === 0 ? e(this.error) : this.listeners.push(e);
|
|
616
|
+
};
|
|
617
|
+
he.prototype.hold = function() {
|
|
618
|
+
return Ir(this);
|
|
619
|
+
};
|
|
620
|
+
function Ir(e) {
|
|
621
|
+
e.pending += 1;
|
|
622
|
+
var r = !1;
|
|
623
|
+
return t;
|
|
624
|
+
function t(i) {
|
|
625
|
+
if (r) throw new Error("callback called twice");
|
|
626
|
+
if (r = !0, e.error = e.error || i, e.pending -= 1, e.waiting.length > 0 && e.pending < e.max) Sr(e, e.waiting.shift());
|
|
627
|
+
else if (e.pending === 0) {
|
|
628
|
+
var s = e.listeners;
|
|
629
|
+
e.listeners = [], s.forEach(n);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function n(i) {
|
|
633
|
+
i(e.error);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
function Sr(e, r) {
|
|
637
|
+
r(Ir(e));
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
var _r = v((k) => {
|
|
641
|
+
var Q = __require("fs"), me = __require("util"), Ge = __require("stream"), zr = Ge.Readable, Ye = Ge.Writable, _t = Ge.PassThrough, Rt = Or(), pe = __require("events").EventEmitter;
|
|
642
|
+
k.createFromBuffer = Dt;
|
|
643
|
+
k.createFromFd = At;
|
|
644
|
+
k.BufferSlicer = D;
|
|
645
|
+
k.FdSlicer = R;
|
|
646
|
+
me.inherits(R, pe);
|
|
647
|
+
function R(e, r) {
|
|
648
|
+
r = r || {}, pe.call(this), this.fd = e, this.pend = new Rt(), this.pend.max = 1, this.refCount = 0, this.autoClose = !!r.autoClose;
|
|
649
|
+
}
|
|
650
|
+
R.prototype.read = function(e, r, t, n, i) {
|
|
651
|
+
var s = this;
|
|
652
|
+
s.pend.go(function(o) {
|
|
653
|
+
Q.read(s.fd, e, r, t, n, function(f, u, l) {
|
|
654
|
+
o(), i(f, u, l);
|
|
655
|
+
});
|
|
656
|
+
});
|
|
657
|
+
};
|
|
658
|
+
R.prototype.write = function(e, r, t, n, i) {
|
|
659
|
+
var s = this;
|
|
660
|
+
s.pend.go(function(o) {
|
|
661
|
+
Q.write(s.fd, e, r, t, n, function(f, u, l) {
|
|
662
|
+
o(), i(f, u, l);
|
|
663
|
+
});
|
|
664
|
+
});
|
|
665
|
+
};
|
|
666
|
+
R.prototype.createReadStream = function(e) {
|
|
667
|
+
return new xe(this, e);
|
|
668
|
+
};
|
|
669
|
+
R.prototype.createWriteStream = function(e) {
|
|
670
|
+
return new Ee(this, e);
|
|
671
|
+
};
|
|
672
|
+
R.prototype.ref = function() {
|
|
673
|
+
this.refCount += 1;
|
|
674
|
+
};
|
|
675
|
+
R.prototype.unref = function() {
|
|
676
|
+
var e = this;
|
|
677
|
+
if (e.refCount -= 1, e.refCount > 0) return;
|
|
678
|
+
if (e.refCount < 0) throw new Error("invalid unref");
|
|
679
|
+
e.autoClose && Q.close(e.fd, r);
|
|
680
|
+
function r(t) {
|
|
681
|
+
t ? e.emit("error", t) : e.emit("close");
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
me.inherits(xe, zr);
|
|
685
|
+
function xe(e, r) {
|
|
686
|
+
r = r || {}, zr.call(this, r), this.context = e, this.context.ref(), this.start = r.start || 0, this.endOffset = r.end, this.pos = this.start, this.destroyed = !1;
|
|
687
|
+
}
|
|
688
|
+
xe.prototype._read = function(e) {
|
|
689
|
+
var r = this;
|
|
690
|
+
if (!r.destroyed) {
|
|
691
|
+
var t = Math.min(r._readableState.highWaterMark, e);
|
|
692
|
+
if (r.endOffset != null && (t = Math.min(t, r.endOffset - r.pos)), t <= 0) {
|
|
693
|
+
r.destroyed = !0, r.push(null), r.context.unref();
|
|
694
|
+
return;
|
|
695
|
+
}
|
|
696
|
+
r.context.pend.go(function(n) {
|
|
697
|
+
if (r.destroyed) return n();
|
|
698
|
+
var i = Buffer.allocUnsafe(t);
|
|
699
|
+
Q.read(r.context.fd, i, 0, t, r.pos, function(s, o) {
|
|
700
|
+
s ? r.destroy(s) : o === 0 ? (r.destroyed = !0, r.push(null), r.context.unref()) : (r.pos += o, r.push(i.slice(0, o))), n();
|
|
701
|
+
});
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
xe.prototype.destroy = function(e) {
|
|
706
|
+
this.destroyed || (e = e || /* @__PURE__ */ new Error("stream destroyed"), this.destroyed = !0, this.emit("error", e), this.context.unref());
|
|
707
|
+
};
|
|
708
|
+
me.inherits(Ee, Ye);
|
|
709
|
+
function Ee(e, r) {
|
|
710
|
+
r = r || {}, Ye.call(this, r), this.context = e, this.context.ref(), this.start = r.start || 0, this.endOffset = r.end == null ? Infinity : +r.end, this.bytesWritten = 0, this.pos = this.start, this.destroyed = !1, this.on("finish", this.destroy.bind(this));
|
|
711
|
+
}
|
|
712
|
+
Ee.prototype._write = function(e, r, t) {
|
|
713
|
+
var n = this;
|
|
714
|
+
if (!n.destroyed) {
|
|
715
|
+
if (n.pos + e.length > n.endOffset) {
|
|
716
|
+
var i = /* @__PURE__ */ new Error("maximum file length exceeded");
|
|
717
|
+
i.code = "ETOOBIG", n.destroy(), t(i);
|
|
718
|
+
return;
|
|
719
|
+
}
|
|
720
|
+
n.context.pend.go(function(s) {
|
|
721
|
+
if (n.destroyed) return s();
|
|
722
|
+
Q.write(n.context.fd, e, 0, e.length, n.pos, function(o, f) {
|
|
723
|
+
o ? (n.destroy(), s(), t(o)) : (n.bytesWritten += f, n.pos += f, n.emit("progress"), s(), t());
|
|
724
|
+
});
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
Ee.prototype.destroy = function() {
|
|
729
|
+
this.destroyed || (this.destroyed = !0, this.context.unref());
|
|
730
|
+
};
|
|
731
|
+
me.inherits(D, pe);
|
|
732
|
+
function D(e, r) {
|
|
733
|
+
pe.call(this), r = r || {}, this.refCount = 0, this.buffer = e, this.maxChunkSize = r.maxChunkSize || Number.MAX_SAFE_INTEGER;
|
|
734
|
+
}
|
|
735
|
+
D.prototype.read = function(e, r, t, n, i) {
|
|
736
|
+
if (!(0 <= r && r <= e.length)) throw new RangeError("offset outside buffer: 0 <= " + r + " <= " + e.length);
|
|
737
|
+
if (n < 0) throw new RangeError("position is negative: " + n);
|
|
738
|
+
if (r + t > e.length && (t = e.length - r), n + t > this.buffer.length && (t = this.buffer.length - n), t <= 0) {
|
|
739
|
+
setImmediate(function() {
|
|
740
|
+
i(null, 0);
|
|
741
|
+
});
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
this.buffer.copy(e, r, n, n + t), setImmediate(function() {
|
|
745
|
+
i(null, t);
|
|
746
|
+
});
|
|
747
|
+
};
|
|
748
|
+
D.prototype.write = function(e, r, t, n, i) {
|
|
749
|
+
e.copy(this.buffer, n, r, r + t), setImmediate(function() {
|
|
750
|
+
i(null, t, e);
|
|
751
|
+
});
|
|
752
|
+
};
|
|
753
|
+
D.prototype.createReadStream = function(e) {
|
|
754
|
+
e = e || {};
|
|
755
|
+
var r = new _t(e);
|
|
756
|
+
r.destroyed = !1, r.start = e.start || 0, r.endOffset = e.end, r.pos = r.endOffset || this.buffer.length;
|
|
757
|
+
for (var t = this.buffer.slice(r.start, r.pos), n = 0;;) {
|
|
758
|
+
var i = n + this.maxChunkSize;
|
|
759
|
+
if (i >= t.length) {
|
|
760
|
+
n < t.length && r.write(t.slice(n, t.length));
|
|
761
|
+
break;
|
|
762
|
+
}
|
|
763
|
+
r.write(t.slice(n, i)), n = i;
|
|
764
|
+
}
|
|
765
|
+
return r.end(), r.destroy = function() {
|
|
766
|
+
r.destroyed = !0;
|
|
767
|
+
}, r;
|
|
768
|
+
};
|
|
769
|
+
D.prototype.createWriteStream = function(e) {
|
|
770
|
+
var r = this;
|
|
771
|
+
e = e || {};
|
|
772
|
+
var t = new Ye(e);
|
|
773
|
+
return t.start = e.start || 0, t.endOffset = e.end == null ? this.buffer.length : +e.end, t.bytesWritten = 0, t.pos = t.start, t.destroyed = !1, t._write = function(n, i, s) {
|
|
774
|
+
if (!t.destroyed) {
|
|
775
|
+
var o = t.pos + n.length;
|
|
776
|
+
if (o > t.endOffset) {
|
|
777
|
+
var f = /* @__PURE__ */ new Error("maximum file length exceeded");
|
|
778
|
+
f.code = "ETOOBIG", t.destroyed = !0, s(f);
|
|
779
|
+
return;
|
|
780
|
+
}
|
|
781
|
+
n.copy(r.buffer, t.pos, 0, n.length), t.bytesWritten += n.length, t.pos = o, t.emit("progress"), s();
|
|
782
|
+
}
|
|
783
|
+
}, t.destroy = function() {
|
|
784
|
+
t.destroyed = !0;
|
|
785
|
+
}, t;
|
|
786
|
+
};
|
|
787
|
+
D.prototype.ref = function() {
|
|
788
|
+
this.refCount += 1;
|
|
789
|
+
};
|
|
790
|
+
D.prototype.unref = function() {
|
|
791
|
+
if (this.refCount -= 1, this.refCount < 0) throw new Error("invalid unref");
|
|
792
|
+
};
|
|
793
|
+
function Dt(e, r) {
|
|
794
|
+
return new D(e, r);
|
|
795
|
+
}
|
|
796
|
+
function At(e, r) {
|
|
797
|
+
return new R(e, r);
|
|
798
|
+
}
|
|
799
|
+
});
|
|
800
|
+
var Xe = v((C) => {
|
|
801
|
+
var je = __require("fs"), Ut = __require("zlib"), Rr = _r(), Tt = Ne(), ye = __require("util"), ge = __require("events").EventEmitter, Dr = __require("stream").Transform, Ke = __require("stream").PassThrough, Nt = __require("stream").Writable;
|
|
802
|
+
C.open = Mt;
|
|
803
|
+
C.fromFd = Ar;
|
|
804
|
+
C.fromBuffer = Bt;
|
|
805
|
+
C.fromRandomAccessReader = Ve;
|
|
806
|
+
C.dosDateTimeToDate = Nr;
|
|
807
|
+
C.getFileNameLowLevel = Mr;
|
|
808
|
+
C.validateFileName = Br;
|
|
809
|
+
C.parseExtraFields = qr;
|
|
810
|
+
C.ZipFile = _;
|
|
811
|
+
C.Entry = ee;
|
|
812
|
+
C.LocalFileHeader = Tr;
|
|
813
|
+
C.RandomAccessReader = M;
|
|
814
|
+
function Mt(e, r, t) {
|
|
815
|
+
typeof r == "function" && (t = r, r = null), r ??= {}, r.autoClose ?? (r.autoClose = !0), r.lazyEntries ?? (r.lazyEntries = !1), r.decodeStrings ?? (r.decodeStrings = !0), r.validateEntrySizes ?? (r.validateEntrySizes = !0), r.strictFileNames ?? (r.strictFileNames = !1), t ??= we, je.open(e, "r", function(n, i) {
|
|
816
|
+
if (n) return t(n);
|
|
817
|
+
Ar(i, r, function(s, o) {
|
|
818
|
+
s && je.close(i, we), t(s, o);
|
|
819
|
+
});
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
function Ar(e, r, t) {
|
|
823
|
+
typeof r == "function" && (t = r, r = null), r ??= {}, r.autoClose ?? (r.autoClose = !1), r.lazyEntries ?? (r.lazyEntries = !1), r.decodeStrings ?? (r.decodeStrings = !0), r.validateEntrySizes ?? (r.validateEntrySizes = !0), r.strictFileNames ?? (r.strictFileNames = !1), t ??= we, je.fstat(e, function(n, i) {
|
|
824
|
+
if (n) return t(n);
|
|
825
|
+
Ve(Rr.createFromFd(e, { autoClose: !0 }), i.size, r, t);
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
function Bt(e, r, t) {
|
|
829
|
+
typeof r == "function" && (t = r, r = null), r ??= {}, r.autoClose = !1, r.lazyEntries ?? (r.lazyEntries = !1), r.decodeStrings ?? (r.decodeStrings = !0), r.validateEntrySizes ?? (r.validateEntrySizes = !0), r.strictFileNames ?? (r.strictFileNames = !1);
|
|
830
|
+
Ve(Rr.createFromBuffer(e, { maxChunkSize: 65536 }), e.length, r, t);
|
|
831
|
+
}
|
|
832
|
+
function Ve(e, r, t, n) {
|
|
833
|
+
typeof t == "function" && (n = t, t = null), t ??= {}, t.autoClose ?? (t.autoClose = !0), t.lazyEntries ?? (t.lazyEntries = !1), t.decodeStrings ?? (t.decodeStrings = !0);
|
|
834
|
+
var i = !!t.decodeStrings;
|
|
835
|
+
if (t.validateEntrySizes ?? (t.validateEntrySizes = !0), t.strictFileNames ?? (t.strictFileNames = !1), n ??= we, typeof r != "number") throw new Error("expected totalSize parameter to be a number");
|
|
836
|
+
if (r > Number.MAX_SAFE_INTEGER) throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");
|
|
837
|
+
e.ref();
|
|
838
|
+
var s = 22, o = 20, u = Math.min(o + s + 65535, r), l = A(u);
|
|
839
|
+
j(e, l, 0, u, r - l.length, function(d) {
|
|
840
|
+
if (d) return n(d);
|
|
841
|
+
for (var c = u - s; c >= 0; c -= 1) if (l.readUInt32LE(c) === 101010256) {
|
|
842
|
+
var h = l.subarray(c), E = h.readUInt16LE(4), p = h.readUInt16LE(10), x = h.readUInt32LE(16), L = h.readUInt16LE(20), B = h.length - s;
|
|
843
|
+
if (L !== B) return n(/* @__PURE__ */ new Error("Invalid comment length. Expected: " + B + ". Found: " + L + ". Are there extra bytes at the end of the file? Or is the end of central dir signature `PK☺☻` in the comment?"));
|
|
844
|
+
var ne = i ? ve(h.subarray(22), !1) : h.subarray(22);
|
|
845
|
+
if (c - o >= 0 && l.readUInt32LE(c - o) === 117853008) {
|
|
846
|
+
var nr = Y(l.subarray(c - o, c - o + o), 8), O = A(56);
|
|
847
|
+
return j(e, O, 0, O.length, nr, function(ie) {
|
|
848
|
+
return ie ? n(ie) : O.readUInt32LE(0) !== 101075792 ? n(/* @__PURE__ */ new Error("invalid zip64 end of central directory record signature")) : (E = O.readUInt32LE(16), E !== 0 ? n(/* @__PURE__ */ new Error("multi-disk zip files are not supported: found disk number: " + E)) : (p = Y(O, 32), x = Y(O, 48), n(null, new _(e, x, r, p, ne, t.autoClose, t.lazyEntries, i, t.validateEntrySizes, t.strictFileNames))));
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
return E !== 0 ? n(/* @__PURE__ */ new Error("multi-disk zip files are not supported: found disk number: " + E)) : n(null, new _(e, x, r, p, ne, t.autoClose, t.lazyEntries, i, t.validateEntrySizes, t.strictFileNames));
|
|
852
|
+
}
|
|
853
|
+
n(/* @__PURE__ */ new Error("End of central directory record signature not found. Either not a zip file, or file is truncated."));
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
ye.inherits(_, ge);
|
|
857
|
+
function _(e, r, t, n, i, s, o, f, u, l) {
|
|
858
|
+
var a = this;
|
|
859
|
+
ge.call(a), a.reader = e, a.reader.on("error", function(d) {
|
|
860
|
+
Ur(a, d);
|
|
861
|
+
}), a.reader.once("close", function() {
|
|
862
|
+
a.emit("close");
|
|
863
|
+
}), a.readEntryCursor = r, a.fileSize = t, a.entryCount = n, a.comment = i, a.entriesRead = 0, a.autoClose = !!s, a.lazyEntries = !!o, a.decodeStrings = !!f, a.validateEntrySizes = !!u, a.strictFileNames = !!l, a.isOpen = !0, a.emittedError = !1, a.lazyEntries || a._readEntry();
|
|
864
|
+
}
|
|
865
|
+
_.prototype.close = function() {
|
|
866
|
+
this.isOpen && (this.isOpen = !1, this.reader.unref());
|
|
867
|
+
};
|
|
868
|
+
function z(e, r) {
|
|
869
|
+
e.autoClose && e.close(), Ur(e, r);
|
|
870
|
+
}
|
|
871
|
+
function Ur(e, r) {
|
|
872
|
+
e.emittedError || (e.emittedError = !0, e.emit("error", r));
|
|
873
|
+
}
|
|
874
|
+
_.prototype.readEntry = function() {
|
|
875
|
+
if (!this.lazyEntries) throw new Error("readEntry() called without lazyEntries:true");
|
|
876
|
+
this._readEntry();
|
|
877
|
+
};
|
|
878
|
+
_.prototype._readEntry = function() {
|
|
879
|
+
var e = this;
|
|
880
|
+
if (e.entryCount === e.entriesRead) {
|
|
881
|
+
setImmediate(function() {
|
|
882
|
+
e.autoClose && e.close(), !e.emittedError && e.emit("end");
|
|
883
|
+
});
|
|
884
|
+
return;
|
|
885
|
+
}
|
|
886
|
+
if (!e.emittedError) {
|
|
887
|
+
var r = A(46);
|
|
888
|
+
j(e.reader, r, 0, r.length, e.readEntryCursor, function(t) {
|
|
889
|
+
if (t) return z(e, t);
|
|
890
|
+
if (!e.emittedError) {
|
|
891
|
+
var n = new ee(), i = r.readUInt32LE(0);
|
|
892
|
+
if (i !== 33639248) return z(e, /* @__PURE__ */ new Error("invalid central directory file header signature: 0x" + i.toString(16)));
|
|
893
|
+
if (n.versionMadeBy = r.readUInt16LE(4), n.versionNeededToExtract = r.readUInt16LE(6), n.generalPurposeBitFlag = r.readUInt16LE(8), n.compressionMethod = r.readUInt16LE(10), n.lastModFileTime = r.readUInt16LE(12), n.lastModFileDate = r.readUInt16LE(14), n.crc32 = r.readUInt32LE(16), n.compressedSize = r.readUInt32LE(20), n.uncompressedSize = r.readUInt32LE(24), n.fileNameLength = r.readUInt16LE(28), n.extraFieldLength = r.readUInt16LE(30), n.fileCommentLength = r.readUInt16LE(32), n.internalFileAttributes = r.readUInt16LE(36), n.externalFileAttributes = r.readUInt32LE(38), n.relativeOffsetOfLocalHeader = r.readUInt32LE(42), n.generalPurposeBitFlag & 64) return z(e, /* @__PURE__ */ new Error("strong encryption is not supported"));
|
|
894
|
+
e.readEntryCursor += 46, r = A(n.fileNameLength + n.extraFieldLength + n.fileCommentLength), j(e.reader, r, 0, r.length, e.readEntryCursor, function(s) {
|
|
895
|
+
if (s) return z(e, s);
|
|
896
|
+
if (!e.emittedError) {
|
|
897
|
+
n.fileNameRaw = r.subarray(0, n.fileNameLength);
|
|
898
|
+
var o = n.fileNameLength + n.extraFieldLength;
|
|
899
|
+
n.extraFieldRaw = r.subarray(n.fileNameLength, o), n.fileCommentRaw = r.subarray(o, o + n.fileCommentLength);
|
|
900
|
+
try {
|
|
901
|
+
n.extraFields = qr(n.extraFieldRaw);
|
|
902
|
+
} catch (p) {
|
|
903
|
+
return z(e, p);
|
|
904
|
+
}
|
|
905
|
+
if (e.decodeStrings) {
|
|
906
|
+
var f = (n.generalPurposeBitFlag & 2048) !== 0;
|
|
907
|
+
n.fileComment = ve(n.fileCommentRaw, f), n.fileName = Mr(n.generalPurposeBitFlag, n.fileNameRaw, n.extraFields, e.strictFileNames);
|
|
908
|
+
var u = Br(n.fileName);
|
|
909
|
+
if (u != null) return z(e, new Error(u));
|
|
910
|
+
} else n.fileComment = n.fileCommentRaw, n.fileName = n.fileNameRaw;
|
|
911
|
+
n.comment = n.fileComment, e.readEntryCursor += r.length, e.entriesRead += 1;
|
|
912
|
+
for (var l = 0; l < n.extraFields.length; l++) {
|
|
913
|
+
var a = n.extraFields[l];
|
|
914
|
+
if (a.id === 1) {
|
|
915
|
+
var d = a.data, c = 0;
|
|
916
|
+
if (n.uncompressedSize === 4294967295) {
|
|
917
|
+
if (c + 8 > d.length) return z(e, /* @__PURE__ */ new Error("zip64 extended information extra field does not include uncompressed size"));
|
|
918
|
+
n.uncompressedSize = Y(d, c), c += 8;
|
|
919
|
+
}
|
|
920
|
+
if (n.compressedSize === 4294967295) {
|
|
921
|
+
if (c + 8 > d.length) return z(e, /* @__PURE__ */ new Error("zip64 extended information extra field does not include compressed size"));
|
|
922
|
+
n.compressedSize = Y(d, c), c += 8;
|
|
923
|
+
}
|
|
924
|
+
if (n.relativeOffsetOfLocalHeader === 4294967295) {
|
|
925
|
+
if (c + 8 > d.length) return z(e, /* @__PURE__ */ new Error("zip64 extended information extra field does not include relative header offset"));
|
|
926
|
+
n.relativeOffsetOfLocalHeader = Y(d, c), c += 8;
|
|
927
|
+
}
|
|
928
|
+
break;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
if (e.validateEntrySizes && n.compressionMethod === 0) {
|
|
932
|
+
var h = n.uncompressedSize;
|
|
933
|
+
if (n.isEncrypted() && (h += 12), n.compressedSize !== h) {
|
|
934
|
+
var E = "compressed/uncompressed size mismatch for stored file: " + n.compressedSize + " != " + n.uncompressedSize;
|
|
935
|
+
return z(e, new Error(E));
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
e.emit("entry", n), e.lazyEntries || e._readEntry();
|
|
939
|
+
}
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
};
|
|
945
|
+
_.prototype.openReadStream = function(e, r, t) {
|
|
946
|
+
var n = this, i = 0, s = e.compressedSize;
|
|
947
|
+
if (t ?? (t = r, r = null), r == null) r = {};
|
|
948
|
+
else {
|
|
949
|
+
if (r.decrypt != null) {
|
|
950
|
+
if (!e.isEncrypted()) throw new Error("options.decrypt can only be specified for encrypted entries");
|
|
951
|
+
if (r.decrypt !== !1) throw new Error("invalid options.decrypt value: " + r.decrypt);
|
|
952
|
+
if (e.isCompressed() && r.decompress !== !1) throw new Error("entry is encrypted and compressed, and options.decompress !== false");
|
|
953
|
+
}
|
|
954
|
+
if (r.decompress != null) {
|
|
955
|
+
if (!e.isCompressed()) throw new Error("options.decompress can only be specified for compressed entries");
|
|
956
|
+
if (!(r.decompress === !1 || r.decompress === !0)) throw new Error("invalid options.decompress value: " + r.decompress);
|
|
957
|
+
}
|
|
958
|
+
if (r.start != null || r.end != null) {
|
|
959
|
+
if (e.isCompressed() && r.decompress !== !1) throw new Error("start/end range not allowed for compressed entry without options.decompress === false");
|
|
960
|
+
if (e.isEncrypted() && r.decrypt !== !1) throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false");
|
|
961
|
+
}
|
|
962
|
+
if (r.start != null) {
|
|
963
|
+
if (i = r.start, i < 0) throw new Error("options.start < 0");
|
|
964
|
+
if (i > e.compressedSize) throw new Error("options.start > entry.compressedSize");
|
|
965
|
+
}
|
|
966
|
+
if (r.end != null) {
|
|
967
|
+
if (s = r.end, s < 0) throw new Error("options.end < 0");
|
|
968
|
+
if (s > e.compressedSize) throw new Error("options.end > entry.compressedSize");
|
|
969
|
+
if (s < i) throw new Error("options.end < options.start");
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
if (!n.isOpen) return t(/* @__PURE__ */ new Error("closed"));
|
|
973
|
+
if (e.isEncrypted() && r.decrypt !== !1) return t(/* @__PURE__ */ new Error("entry is encrypted, and options.decrypt !== false"));
|
|
974
|
+
var o;
|
|
975
|
+
if (e.compressionMethod === 0) o = !1;
|
|
976
|
+
else if (e.compressionMethod === 8) o = r.decompress != null ? r.decompress : !0;
|
|
977
|
+
else return t(/* @__PURE__ */ new Error("unsupported compression method: " + e.compressionMethod));
|
|
978
|
+
n.readLocalFileHeader(e, { minimal: !0 }, function(f, u) {
|
|
979
|
+
if (f) return t(f);
|
|
980
|
+
n.openReadStreamLowLevel(u.fileDataStart, e.compressedSize, i, s, o, e.uncompressedSize, t);
|
|
981
|
+
});
|
|
982
|
+
};
|
|
983
|
+
_.prototype.openReadStreamLowLevel = function(e, r, t, n, i, s, o) {
|
|
984
|
+
var f = this;
|
|
985
|
+
e + r;
|
|
986
|
+
var l = f.reader.createReadStream({
|
|
987
|
+
start: e + t,
|
|
988
|
+
end: e + n
|
|
989
|
+
}), a = l;
|
|
990
|
+
if (i) {
|
|
991
|
+
var d = !1, c = Ut.createInflateRaw();
|
|
992
|
+
l.on("error", function(h) {
|
|
993
|
+
setImmediate(function() {
|
|
994
|
+
d || c.emit("error", h);
|
|
995
|
+
});
|
|
996
|
+
}), l.pipe(c), f.validateEntrySizes ? (a = new re(s), c.on("error", function(h) {
|
|
997
|
+
setImmediate(function() {
|
|
998
|
+
d || a.emit("error", h);
|
|
999
|
+
});
|
|
1000
|
+
}), c.pipe(a)) : a = c, He(a, function() {
|
|
1001
|
+
d = !0, c !== a && c.unpipe(a), l.unpipe(c), l.destroy();
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
o(null, a);
|
|
1005
|
+
};
|
|
1006
|
+
_.prototype.readLocalFileHeader = function(e, r, t) {
|
|
1007
|
+
var n = this;
|
|
1008
|
+
t ?? (t = r, r = null), r ??= {}, n.reader.ref();
|
|
1009
|
+
var i = A(30);
|
|
1010
|
+
j(n.reader, i, 0, i.length, e.relativeOffsetOfLocalHeader, function(s) {
|
|
1011
|
+
try {
|
|
1012
|
+
if (s) return t(s);
|
|
1013
|
+
var o = i.readUInt32LE(0);
|
|
1014
|
+
if (o !== 67324752) return t(/* @__PURE__ */ new Error("invalid local file header signature: 0x" + o.toString(16)));
|
|
1015
|
+
var f = i.readUInt16LE(26), u = i.readUInt16LE(28), l = e.relativeOffsetOfLocalHeader + 30 + f + u;
|
|
1016
|
+
if (l + e.compressedSize > n.fileSize) return t(/* @__PURE__ */ new Error("file data overflows file bounds: " + l + " + " + e.compressedSize + " > " + n.fileSize));
|
|
1017
|
+
if (r.minimal) return t(null, { fileDataStart: l });
|
|
1018
|
+
var a = new Tr();
|
|
1019
|
+
a.fileDataStart = l, a.versionNeededToExtract = i.readUInt16LE(4), a.generalPurposeBitFlag = i.readUInt16LE(6), a.compressionMethod = i.readUInt16LE(8), a.lastModFileTime = i.readUInt16LE(10), a.lastModFileDate = i.readUInt16LE(12), a.crc32 = i.readUInt32LE(14), a.compressedSize = i.readUInt32LE(18), a.uncompressedSize = i.readUInt32LE(22), a.fileNameLength = f, a.extraFieldLength = u, i = A(f + u), n.reader.ref(), j(n.reader, i, 0, i.length, e.relativeOffsetOfLocalHeader + 30, function(d) {
|
|
1020
|
+
try {
|
|
1021
|
+
return d ? t(d) : (a.fileName = i.subarray(0, f), a.extraField = i.subarray(f), t(null, a));
|
|
1022
|
+
} finally {
|
|
1023
|
+
n.reader.unref();
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
} finally {
|
|
1027
|
+
n.reader.unref();
|
|
1028
|
+
}
|
|
1029
|
+
});
|
|
1030
|
+
};
|
|
1031
|
+
function ee() {}
|
|
1032
|
+
ee.prototype.getLastModDate = function(e) {
|
|
1033
|
+
if (e ??= {}, !e.forceDosFormat) for (var r = 0; r < this.extraFields.length; r++) {
|
|
1034
|
+
var t = this.extraFields[r];
|
|
1035
|
+
if (t.id === 21589) {
|
|
1036
|
+
var n = t.data;
|
|
1037
|
+
if (n.length < 5) continue;
|
|
1038
|
+
if (!(n[0] & 1)) continue;
|
|
1039
|
+
var o = n.readInt32LE(1);
|
|
1040
|
+
return /* @__PURE__ */ new Date(o * 1e3);
|
|
1041
|
+
} else if (t.id === 10) {
|
|
1042
|
+
var n = t.data;
|
|
1043
|
+
if (n.length !== 32 || n.readUInt16LE(4) !== 1 || n.readUInt16LE(6) !== 24) continue;
|
|
1044
|
+
var u = (n.readUInt32LE(8) + 4294967296 * n.readInt32LE(12)) / 1e4 - 0xa9730b66800;
|
|
1045
|
+
return new Date(u);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
return Nr(this.lastModFileDate, this.lastModFileTime, e.timezone);
|
|
1049
|
+
};
|
|
1050
|
+
ee.prototype.isEncrypted = function() {
|
|
1051
|
+
return (this.generalPurposeBitFlag & 1) !== 0;
|
|
1052
|
+
};
|
|
1053
|
+
ee.prototype.isCompressed = function() {
|
|
1054
|
+
return this.compressionMethod === 8;
|
|
1055
|
+
};
|
|
1056
|
+
function Tr() {}
|
|
1057
|
+
function Nr(e, r, t) {
|
|
1058
|
+
var n = e & 31, i = (e >> 5 & 15) - 1, s = (e >> 9 & 127) + 1980, o = 0, f = (r & 31) * 2, u = r >> 5 & 63, l = r >> 11 & 31;
|
|
1059
|
+
if (t == null || t === "local") return new Date(s, i, n, l, u, f, o);
|
|
1060
|
+
if (t === "UTC") return new Date(Date.UTC(s, i, n, l, u, f, o));
|
|
1061
|
+
throw new Error("unrecognized options.timezone: " + options.timezone);
|
|
1062
|
+
}
|
|
1063
|
+
function Mr(e, r, t, n) {
|
|
1064
|
+
for (var i = null, s = 0; s < t.length; s++) {
|
|
1065
|
+
var o = t[s];
|
|
1066
|
+
if (o.id === 28789) {
|
|
1067
|
+
if (o.data.length < 6 || o.data.readUInt8(0) !== 1) continue;
|
|
1068
|
+
var f = o.data.readUInt32LE(1);
|
|
1069
|
+
if (Tt.unsigned(r) !== f) continue;
|
|
1070
|
+
i = ve(o.data.subarray(5), !0);
|
|
1071
|
+
break;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
if (i == null) i = ve(r, (e & 2048) !== 0);
|
|
1075
|
+
return n || (i = i.replace(/\\/g, "/")), i;
|
|
1076
|
+
}
|
|
1077
|
+
function Br(e) {
|
|
1078
|
+
return e.indexOf("\\") !== -1 ? "invalid characters in fileName: " + e : /^[a-zA-Z]:/.test(e) || /^\//.test(e) ? "absolute path: " + e : e.split("/").indexOf("..") !== -1 ? "invalid relative path: " + e : null;
|
|
1079
|
+
}
|
|
1080
|
+
function qr(e) {
|
|
1081
|
+
for (var r = [], t = 0; t < e.length - 3;) {
|
|
1082
|
+
var n = e.readUInt16LE(t + 0), i = e.readUInt16LE(t + 2), s = t + 4, o = s + i;
|
|
1083
|
+
if (o > e.length) throw new Error("extra field length exceeds extra field buffer size");
|
|
1084
|
+
var f = e.subarray(s, o);
|
|
1085
|
+
r.push({
|
|
1086
|
+
id: n,
|
|
1087
|
+
data: f
|
|
1088
|
+
}), t = o;
|
|
1089
|
+
}
|
|
1090
|
+
return r;
|
|
1091
|
+
}
|
|
1092
|
+
function j(e, r, t, n, i, s) {
|
|
1093
|
+
if (n === 0) return setImmediate(function() {
|
|
1094
|
+
s(null, A(0));
|
|
1095
|
+
});
|
|
1096
|
+
e.read(r, t, n, i, function(o, f) {
|
|
1097
|
+
if (o) return s(o);
|
|
1098
|
+
if (f < n) return s(/* @__PURE__ */ new Error("unexpected EOF"));
|
|
1099
|
+
s();
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
ye.inherits(re, Dr);
|
|
1103
|
+
function re(e) {
|
|
1104
|
+
Dr.call(this), this.actualByteCount = 0, this.expectedByteCount = e;
|
|
1105
|
+
}
|
|
1106
|
+
re.prototype._transform = function(e, r, t) {
|
|
1107
|
+
if (this.actualByteCount += e.length, this.actualByteCount > this.expectedByteCount) {
|
|
1108
|
+
var n = "too many bytes in the stream. expected " + this.expectedByteCount + ". got at least " + this.actualByteCount;
|
|
1109
|
+
return t(new Error(n));
|
|
1110
|
+
}
|
|
1111
|
+
t(null, e);
|
|
1112
|
+
};
|
|
1113
|
+
re.prototype._flush = function(e) {
|
|
1114
|
+
if (this.actualByteCount < this.expectedByteCount) {
|
|
1115
|
+
var r = "not enough bytes in the stream. expected " + this.expectedByteCount + ". got only " + this.actualByteCount;
|
|
1116
|
+
return e(new Error(r));
|
|
1117
|
+
}
|
|
1118
|
+
e();
|
|
1119
|
+
};
|
|
1120
|
+
ye.inherits(M, ge);
|
|
1121
|
+
function M() {
|
|
1122
|
+
ge.call(this), this.refCount = 0;
|
|
1123
|
+
}
|
|
1124
|
+
M.prototype.ref = function() {
|
|
1125
|
+
this.refCount += 1;
|
|
1126
|
+
};
|
|
1127
|
+
M.prototype.unref = function() {
|
|
1128
|
+
var e = this;
|
|
1129
|
+
if (e.refCount -= 1, e.refCount > 0) return;
|
|
1130
|
+
if (e.refCount < 0) throw new Error("invalid unref");
|
|
1131
|
+
e.close(r);
|
|
1132
|
+
function r(t) {
|
|
1133
|
+
if (t) return e.emit("error", t);
|
|
1134
|
+
e.emit("close");
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
M.prototype.createReadStream = function(e) {
|
|
1138
|
+
e ??= {};
|
|
1139
|
+
var r = e.start, t = e.end;
|
|
1140
|
+
if (r === t) {
|
|
1141
|
+
var n = new Ke();
|
|
1142
|
+
return setImmediate(function() {
|
|
1143
|
+
n.end();
|
|
1144
|
+
}), n;
|
|
1145
|
+
}
|
|
1146
|
+
var i = this._readStreamForRange(r, t), s = !1, o = new Ce(this);
|
|
1147
|
+
i.on("error", function(u) {
|
|
1148
|
+
setImmediate(function() {
|
|
1149
|
+
s || o.emit("error", u);
|
|
1150
|
+
});
|
|
1151
|
+
}), He(o, function() {
|
|
1152
|
+
i.unpipe(o), o.unref(), i.destroy();
|
|
1153
|
+
});
|
|
1154
|
+
var f = new re(t - r);
|
|
1155
|
+
return o.on("error", function(u) {
|
|
1156
|
+
setImmediate(function() {
|
|
1157
|
+
s || f.emit("error", u);
|
|
1158
|
+
});
|
|
1159
|
+
}), He(f, function() {
|
|
1160
|
+
s = !0, o.unpipe(f), o.destroy();
|
|
1161
|
+
}), i.pipe(o).pipe(f);
|
|
1162
|
+
};
|
|
1163
|
+
M.prototype._readStreamForRange = function(e, r) {
|
|
1164
|
+
throw new Error("not implemented");
|
|
1165
|
+
};
|
|
1166
|
+
M.prototype.read = function(e, r, t, n, i) {
|
|
1167
|
+
var s = this.createReadStream({
|
|
1168
|
+
start: n,
|
|
1169
|
+
end: n + t
|
|
1170
|
+
}), o = new Nt(), f = 0;
|
|
1171
|
+
o._write = function(u, l, a) {
|
|
1172
|
+
u.copy(e, r + f, 0, u.length), f += u.length, a();
|
|
1173
|
+
}, o.on("finish", i), s.on("error", function(u) {
|
|
1174
|
+
i(u);
|
|
1175
|
+
}), s.pipe(o);
|
|
1176
|
+
};
|
|
1177
|
+
M.prototype.close = function(e) {
|
|
1178
|
+
setImmediate(e);
|
|
1179
|
+
};
|
|
1180
|
+
ye.inherits(Ce, Ke);
|
|
1181
|
+
function Ce(e) {
|
|
1182
|
+
Ke.call(this), this.context = e, this.context.ref(), this.unreffedYet = !1;
|
|
1183
|
+
}
|
|
1184
|
+
Ce.prototype._flush = function(e) {
|
|
1185
|
+
this.unref(), e();
|
|
1186
|
+
};
|
|
1187
|
+
Ce.prototype.unref = function(e) {
|
|
1188
|
+
this.unreffedYet || (this.unreffedYet = !0, this.context.unref());
|
|
1189
|
+
};
|
|
1190
|
+
var qt = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0";
|
|
1191
|
+
function ve(e, r) {
|
|
1192
|
+
if (r) return e.toString("utf8");
|
|
1193
|
+
for (var t = "", n = 0; n < e.length; n++) t += qt[e[n]];
|
|
1194
|
+
return t;
|
|
1195
|
+
}
|
|
1196
|
+
function Y(e, r) {
|
|
1197
|
+
var t = e.readUInt32LE(r);
|
|
1198
|
+
return e.readUInt32LE(r + 4) * 4294967296 + t;
|
|
1199
|
+
}
|
|
1200
|
+
var A;
|
|
1201
|
+
typeof Buffer.allocUnsafe == "function" ? A = function(e) {
|
|
1202
|
+
return Buffer.allocUnsafe(e);
|
|
1203
|
+
} : A = function(e) {
|
|
1204
|
+
return new Buffer(e);
|
|
1205
|
+
};
|
|
1206
|
+
function He(e, r) {
|
|
1207
|
+
typeof e.destroy == "function" ? e._destroy = function(t, n) {
|
|
1208
|
+
r(), n?.(t);
|
|
1209
|
+
} : e.destroy = r;
|
|
1210
|
+
}
|
|
1211
|
+
function we(e) {
|
|
1212
|
+
if (e) throw e;
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
var Zr = v((Wn, Pr) => {
|
|
1216
|
+
var H = 1e3, K = H * 60, V = K * 60, Z = V * 24, Pt = Z * 7, Zt = Z * 365.25;
|
|
1217
|
+
Pr.exports = function(e, r) {
|
|
1218
|
+
r = r || {};
|
|
1219
|
+
var t = typeof e;
|
|
1220
|
+
if (t === "string" && e.length > 0) return Wt(e);
|
|
1221
|
+
if (t === "number" && isFinite(e)) return r.long ? Yt(e) : Gt(e);
|
|
1222
|
+
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(e));
|
|
1223
|
+
};
|
|
1224
|
+
function Wt(e) {
|
|
1225
|
+
if (e = String(e), !(e.length > 100)) {
|
|
1226
|
+
var r = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);
|
|
1227
|
+
if (r) {
|
|
1228
|
+
var t = parseFloat(r[1]);
|
|
1229
|
+
switch ((r[2] || "ms").toLowerCase()) {
|
|
1230
|
+
case "years":
|
|
1231
|
+
case "year":
|
|
1232
|
+
case "yrs":
|
|
1233
|
+
case "yr":
|
|
1234
|
+
case "y": return t * Zt;
|
|
1235
|
+
case "weeks":
|
|
1236
|
+
case "week":
|
|
1237
|
+
case "w": return t * Pt;
|
|
1238
|
+
case "days":
|
|
1239
|
+
case "day":
|
|
1240
|
+
case "d": return t * Z;
|
|
1241
|
+
case "hours":
|
|
1242
|
+
case "hour":
|
|
1243
|
+
case "hrs":
|
|
1244
|
+
case "hr":
|
|
1245
|
+
case "h": return t * V;
|
|
1246
|
+
case "minutes":
|
|
1247
|
+
case "minute":
|
|
1248
|
+
case "mins":
|
|
1249
|
+
case "min":
|
|
1250
|
+
case "m": return t * K;
|
|
1251
|
+
case "seconds":
|
|
1252
|
+
case "second":
|
|
1253
|
+
case "secs":
|
|
1254
|
+
case "sec":
|
|
1255
|
+
case "s": return t * H;
|
|
1256
|
+
case "milliseconds":
|
|
1257
|
+
case "millisecond":
|
|
1258
|
+
case "msecs":
|
|
1259
|
+
case "msec":
|
|
1260
|
+
case "ms": return t;
|
|
1261
|
+
default: return;
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
function Gt(e) {
|
|
1267
|
+
var r = Math.abs(e);
|
|
1268
|
+
return r >= Z ? Math.round(e / Z) + "d" : r >= V ? Math.round(e / V) + "h" : r >= K ? Math.round(e / K) + "m" : r >= H ? Math.round(e / H) + "s" : e + "ms";
|
|
1269
|
+
}
|
|
1270
|
+
function Yt(e) {
|
|
1271
|
+
var r = Math.abs(e);
|
|
1272
|
+
return r >= Z ? be(e, r, Z, "day") : r >= V ? be(e, r, V, "hour") : r >= K ? be(e, r, K, "minute") : r >= H ? be(e, r, H, "second") : e + " ms";
|
|
1273
|
+
}
|
|
1274
|
+
function be(e, r, t, n) {
|
|
1275
|
+
var i = r >= t * 1.5;
|
|
1276
|
+
return Math.round(e / t) + " " + n + (i ? "s" : "");
|
|
1277
|
+
}
|
|
1278
|
+
});
|
|
1279
|
+
var $e = v((Gn, Wr) => {
|
|
1280
|
+
function jt(e) {
|
|
1281
|
+
t.debug = t, t.default = t, t.coerce = u, t.disable = o, t.enable = i, t.enabled = f, t.humanize = Zr(), t.destroy = l, Object.keys(e).forEach((a) => {
|
|
1282
|
+
t[a] = e[a];
|
|
1283
|
+
}), t.names = [], t.skips = [], t.formatters = {};
|
|
1284
|
+
function r(a) {
|
|
1285
|
+
let d = 0;
|
|
1286
|
+
for (let c = 0; c < a.length; c++) d = (d << 5) - d + a.charCodeAt(c), d |= 0;
|
|
1287
|
+
return t.colors[Math.abs(d) % t.colors.length];
|
|
1288
|
+
}
|
|
1289
|
+
t.selectColor = r;
|
|
1290
|
+
function t(a) {
|
|
1291
|
+
let d, c = null, h, E;
|
|
1292
|
+
function p(...x) {
|
|
1293
|
+
if (!p.enabled) return;
|
|
1294
|
+
let L = p, B = Number(/* @__PURE__ */ new Date());
|
|
1295
|
+
L.diff = B - (d || B), L.prev = d, L.curr = B, d = B, x[0] = t.coerce(x[0]), typeof x[0] != "string" && x.unshift("%O");
|
|
1296
|
+
let G = 0;
|
|
1297
|
+
x[0] = x[0].replace(/%([a-zA-Z%])/g, (O, ie) => {
|
|
1298
|
+
if (O === "%%") return "%";
|
|
1299
|
+
G++;
|
|
1300
|
+
let ir = t.formatters[ie];
|
|
1301
|
+
if (typeof ir == "function") {
|
|
1302
|
+
let xt = x[G];
|
|
1303
|
+
O = ir.call(L, xt), x.splice(G, 1), G--;
|
|
1304
|
+
}
|
|
1305
|
+
return O;
|
|
1306
|
+
}), t.formatArgs.call(L, x), (L.log || t.log).apply(L, x);
|
|
1307
|
+
}
|
|
1308
|
+
return p.namespace = a, p.useColors = t.useColors(), p.color = t.selectColor(a), p.extend = n, p.destroy = t.destroy, Object.defineProperty(p, "enabled", {
|
|
1309
|
+
enumerable: !0,
|
|
1310
|
+
configurable: !1,
|
|
1311
|
+
get: () => c !== null ? c : (h !== t.namespaces && (h = t.namespaces, E = t.enabled(a)), E),
|
|
1312
|
+
set: (x) => {
|
|
1313
|
+
c = x;
|
|
1314
|
+
}
|
|
1315
|
+
}), typeof t.init == "function" && t.init(p), p;
|
|
1316
|
+
}
|
|
1317
|
+
function n(a, d) {
|
|
1318
|
+
let c = t(this.namespace + (typeof d == "undefined" ? ":" : d) + a);
|
|
1319
|
+
return c.log = this.log, c;
|
|
1320
|
+
}
|
|
1321
|
+
function i(a) {
|
|
1322
|
+
t.save(a), t.namespaces = a, t.names = [], t.skips = [];
|
|
1323
|
+
let d = (typeof a == "string" ? a : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
|
1324
|
+
for (let c of d) c[0] === "-" ? t.skips.push(c.slice(1)) : t.names.push(c);
|
|
1325
|
+
}
|
|
1326
|
+
function s(a, d) {
|
|
1327
|
+
let c = 0, h = 0, E = -1, p = 0;
|
|
1328
|
+
for (; c < a.length;) if (h < d.length && (d[h] === a[c] || d[h] === "*")) d[h] === "*" ? (E = h, p = c, h++) : (c++, h++);
|
|
1329
|
+
else if (E !== -1) h = E + 1, p++, c = p;
|
|
1330
|
+
else return !1;
|
|
1331
|
+
for (; h < d.length && d[h] === "*";) h++;
|
|
1332
|
+
return h === d.length;
|
|
1333
|
+
}
|
|
1334
|
+
function o() {
|
|
1335
|
+
let a = [...t.names, ...t.skips.map((d) => "-" + d)].join(",");
|
|
1336
|
+
return t.enable(""), a;
|
|
1337
|
+
}
|
|
1338
|
+
function f(a) {
|
|
1339
|
+
for (let d of t.skips) if (s(a, d)) return !1;
|
|
1340
|
+
for (let d of t.names) if (s(a, d)) return !0;
|
|
1341
|
+
return !1;
|
|
1342
|
+
}
|
|
1343
|
+
function u(a) {
|
|
1344
|
+
return a instanceof Error ? a.stack || a.message : a;
|
|
1345
|
+
}
|
|
1346
|
+
function l() {
|
|
1347
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1348
|
+
}
|
|
1349
|
+
return t.enable(t.load()), t;
|
|
1350
|
+
}
|
|
1351
|
+
Wr.exports = jt;
|
|
1352
|
+
});
|
|
1353
|
+
var Gr = v((b, Fe) => {
|
|
1354
|
+
b.formatArgs = Kt;
|
|
1355
|
+
b.save = Vt;
|
|
1356
|
+
b.load = Xt;
|
|
1357
|
+
b.useColors = Ht;
|
|
1358
|
+
b.storage = $t();
|
|
1359
|
+
b.destroy = (() => {
|
|
1360
|
+
let e = !1;
|
|
1361
|
+
return () => {
|
|
1362
|
+
e || (e = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
|
1363
|
+
};
|
|
1364
|
+
})();
|
|
1365
|
+
b.colors = [
|
|
1366
|
+
"#0000CC",
|
|
1367
|
+
"#0000FF",
|
|
1368
|
+
"#0033CC",
|
|
1369
|
+
"#0033FF",
|
|
1370
|
+
"#0066CC",
|
|
1371
|
+
"#0066FF",
|
|
1372
|
+
"#0099CC",
|
|
1373
|
+
"#0099FF",
|
|
1374
|
+
"#00CC00",
|
|
1375
|
+
"#00CC33",
|
|
1376
|
+
"#00CC66",
|
|
1377
|
+
"#00CC99",
|
|
1378
|
+
"#00CCCC",
|
|
1379
|
+
"#00CCFF",
|
|
1380
|
+
"#3300CC",
|
|
1381
|
+
"#3300FF",
|
|
1382
|
+
"#3333CC",
|
|
1383
|
+
"#3333FF",
|
|
1384
|
+
"#3366CC",
|
|
1385
|
+
"#3366FF",
|
|
1386
|
+
"#3399CC",
|
|
1387
|
+
"#3399FF",
|
|
1388
|
+
"#33CC00",
|
|
1389
|
+
"#33CC33",
|
|
1390
|
+
"#33CC66",
|
|
1391
|
+
"#33CC99",
|
|
1392
|
+
"#33CCCC",
|
|
1393
|
+
"#33CCFF",
|
|
1394
|
+
"#6600CC",
|
|
1395
|
+
"#6600FF",
|
|
1396
|
+
"#6633CC",
|
|
1397
|
+
"#6633FF",
|
|
1398
|
+
"#66CC00",
|
|
1399
|
+
"#66CC33",
|
|
1400
|
+
"#9900CC",
|
|
1401
|
+
"#9900FF",
|
|
1402
|
+
"#9933CC",
|
|
1403
|
+
"#9933FF",
|
|
1404
|
+
"#99CC00",
|
|
1405
|
+
"#99CC33",
|
|
1406
|
+
"#CC0000",
|
|
1407
|
+
"#CC0033",
|
|
1408
|
+
"#CC0066",
|
|
1409
|
+
"#CC0099",
|
|
1410
|
+
"#CC00CC",
|
|
1411
|
+
"#CC00FF",
|
|
1412
|
+
"#CC3300",
|
|
1413
|
+
"#CC3333",
|
|
1414
|
+
"#CC3366",
|
|
1415
|
+
"#CC3399",
|
|
1416
|
+
"#CC33CC",
|
|
1417
|
+
"#CC33FF",
|
|
1418
|
+
"#CC6600",
|
|
1419
|
+
"#CC6633",
|
|
1420
|
+
"#CC9900",
|
|
1421
|
+
"#CC9933",
|
|
1422
|
+
"#CCCC00",
|
|
1423
|
+
"#CCCC33",
|
|
1424
|
+
"#FF0000",
|
|
1425
|
+
"#FF0033",
|
|
1426
|
+
"#FF0066",
|
|
1427
|
+
"#FF0099",
|
|
1428
|
+
"#FF00CC",
|
|
1429
|
+
"#FF00FF",
|
|
1430
|
+
"#FF3300",
|
|
1431
|
+
"#FF3333",
|
|
1432
|
+
"#FF3366",
|
|
1433
|
+
"#FF3399",
|
|
1434
|
+
"#FF33CC",
|
|
1435
|
+
"#FF33FF",
|
|
1436
|
+
"#FF6600",
|
|
1437
|
+
"#FF6633",
|
|
1438
|
+
"#FF9900",
|
|
1439
|
+
"#FF9933",
|
|
1440
|
+
"#FFCC00",
|
|
1441
|
+
"#FFCC33"
|
|
1442
|
+
];
|
|
1443
|
+
function Ht() {
|
|
1444
|
+
if (typeof window != "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return !0;
|
|
1445
|
+
if (typeof navigator != "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return !1;
|
|
1446
|
+
let e;
|
|
1447
|
+
return typeof document != "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window != "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator != "undefined" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >= 31 || typeof navigator != "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
1448
|
+
}
|
|
1449
|
+
function Kt(e) {
|
|
1450
|
+
if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" + Fe.exports.humanize(this.diff), !this.useColors) return;
|
|
1451
|
+
let r = "color: " + this.color;
|
|
1452
|
+
e.splice(1, 0, r, "color: inherit");
|
|
1453
|
+
let t = 0, n = 0;
|
|
1454
|
+
e[0].replace(/%[a-zA-Z%]/g, (i) => {
|
|
1455
|
+
i !== "%%" && (t++, i === "%c" && (n = t));
|
|
1456
|
+
}), e.splice(n, 0, r);
|
|
1457
|
+
}
|
|
1458
|
+
b.log = console.debug || console.log || (() => {});
|
|
1459
|
+
function Vt(e) {
|
|
1460
|
+
try {
|
|
1461
|
+
e ? b.storage.setItem("debug", e) : b.storage.removeItem("debug");
|
|
1462
|
+
} catch {}
|
|
1463
|
+
}
|
|
1464
|
+
function Xt() {
|
|
1465
|
+
let e;
|
|
1466
|
+
try {
|
|
1467
|
+
e = b.storage.getItem("debug");
|
|
1468
|
+
} catch {}
|
|
1469
|
+
return !e && typeof process != "undefined" && "env" in process && (e = process.env.DEBUG), e;
|
|
1470
|
+
}
|
|
1471
|
+
function $t() {
|
|
1472
|
+
try {
|
|
1473
|
+
return localStorage;
|
|
1474
|
+
} catch {}
|
|
1475
|
+
}
|
|
1476
|
+
Fe.exports = $e()(b);
|
|
1477
|
+
var { formatters: Jt } = Fe.exports;
|
|
1478
|
+
Jt.j = function(e) {
|
|
1479
|
+
try {
|
|
1480
|
+
return JSON.stringify(e);
|
|
1481
|
+
} catch (r) {
|
|
1482
|
+
return "[UnexpectedJSONParseError]: " + r.message;
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
});
|
|
1486
|
+
var jr = v((Yn, Yr) => {
|
|
1487
|
+
"use strict";
|
|
1488
|
+
Yr.exports = (e, r = process.argv) => {
|
|
1489
|
+
let t = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", n = r.indexOf(t + e), i = r.indexOf("--");
|
|
1490
|
+
return n !== -1 && (i === -1 || n < i);
|
|
1491
|
+
};
|
|
1492
|
+
});
|
|
1493
|
+
var Vr = v((jn, Kr) => {
|
|
1494
|
+
"use strict";
|
|
1495
|
+
var Qt = __require("os"), Hr = __require("tty"), F = jr(), { env: w } = process, Ie;
|
|
1496
|
+
F("no-color") || F("no-colors") || F("color=false") || F("color=never") ? Ie = 0 : (F("color") || F("colors") || F("color=true") || F("color=always")) && (Ie = 1);
|
|
1497
|
+
function kt() {
|
|
1498
|
+
if ("FORCE_COLOR" in w) return w.FORCE_COLOR === "true" ? 1 : w.FORCE_COLOR === "false" ? 0 : w.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(w.FORCE_COLOR, 10), 3);
|
|
1499
|
+
}
|
|
1500
|
+
function en(e) {
|
|
1501
|
+
return e === 0 ? !1 : {
|
|
1502
|
+
level: e,
|
|
1503
|
+
hasBasic: !0,
|
|
1504
|
+
has256: e >= 2,
|
|
1505
|
+
has16m: e >= 3
|
|
1506
|
+
};
|
|
1507
|
+
}
|
|
1508
|
+
function rn(e, { streamIsTTY: r, sniffFlags: t = !0 } = {}) {
|
|
1509
|
+
let n = kt();
|
|
1510
|
+
n !== void 0 && (Ie = n);
|
|
1511
|
+
let i = t ? Ie : n;
|
|
1512
|
+
if (i === 0) return 0;
|
|
1513
|
+
if (t) {
|
|
1514
|
+
if (F("color=16m") || F("color=full") || F("color=truecolor")) return 3;
|
|
1515
|
+
if (F("color=256")) return 2;
|
|
1516
|
+
}
|
|
1517
|
+
if (e && !r && i === void 0) return 0;
|
|
1518
|
+
let s = i || 0;
|
|
1519
|
+
if (w.TERM === "dumb") return s;
|
|
1520
|
+
if (process.platform === "win32") {
|
|
1521
|
+
let o = Qt.release().split(".");
|
|
1522
|
+
return Number(o[0]) >= 10 && Number(o[2]) >= 10586 ? Number(o[2]) >= 14931 ? 3 : 2 : 1;
|
|
1523
|
+
}
|
|
1524
|
+
if ("CI" in w) return [
|
|
1525
|
+
"TRAVIS",
|
|
1526
|
+
"CIRCLECI",
|
|
1527
|
+
"APPVEYOR",
|
|
1528
|
+
"GITLAB_CI",
|
|
1529
|
+
"GITHUB_ACTIONS",
|
|
1530
|
+
"BUILDKITE",
|
|
1531
|
+
"DRONE"
|
|
1532
|
+
].some((o) => o in w) || w.CI_NAME === "codeship" ? 1 : s;
|
|
1533
|
+
if ("TEAMCITY_VERSION" in w) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(w.TEAMCITY_VERSION) ? 1 : 0;
|
|
1534
|
+
if (w.COLORTERM === "truecolor") return 3;
|
|
1535
|
+
if ("TERM_PROGRAM" in w) {
|
|
1536
|
+
let o = Number.parseInt((w.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
1537
|
+
switch (w.TERM_PROGRAM) {
|
|
1538
|
+
case "iTerm.app": return o >= 3 ? 3 : 2;
|
|
1539
|
+
case "Apple_Terminal": return 2;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
return /-256(color)?$/i.test(w.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(w.TERM) || "COLORTERM" in w ? 1 : s;
|
|
1543
|
+
}
|
|
1544
|
+
function Je(e, r = {}) {
|
|
1545
|
+
return en(rn(e, {
|
|
1546
|
+
streamIsTTY: e && e.isTTY,
|
|
1547
|
+
...r
|
|
1548
|
+
}));
|
|
1549
|
+
}
|
|
1550
|
+
Kr.exports = {
|
|
1551
|
+
supportsColor: Je,
|
|
1552
|
+
stdout: Je({ isTTY: Hr.isatty(1) }),
|
|
1553
|
+
stderr: Je({ isTTY: Hr.isatty(2) })
|
|
1554
|
+
};
|
|
1555
|
+
});
|
|
1556
|
+
var $r = v((y, Le) => {
|
|
1557
|
+
var tn = __require("tty"), Se = __require("util");
|
|
1558
|
+
y.init = cn;
|
|
1559
|
+
y.log = fn;
|
|
1560
|
+
y.formatArgs = on;
|
|
1561
|
+
y.save = an;
|
|
1562
|
+
y.load = un;
|
|
1563
|
+
y.useColors = nn;
|
|
1564
|
+
y.destroy = Se.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1565
|
+
y.colors = [
|
|
1566
|
+
6,
|
|
1567
|
+
2,
|
|
1568
|
+
3,
|
|
1569
|
+
4,
|
|
1570
|
+
5,
|
|
1571
|
+
1
|
|
1572
|
+
];
|
|
1573
|
+
try {
|
|
1574
|
+
let e = Vr();
|
|
1575
|
+
e && (e.stderr || e).level >= 2 && (y.colors = [
|
|
1576
|
+
20,
|
|
1577
|
+
21,
|
|
1578
|
+
26,
|
|
1579
|
+
27,
|
|
1580
|
+
32,
|
|
1581
|
+
33,
|
|
1582
|
+
38,
|
|
1583
|
+
39,
|
|
1584
|
+
40,
|
|
1585
|
+
41,
|
|
1586
|
+
42,
|
|
1587
|
+
43,
|
|
1588
|
+
44,
|
|
1589
|
+
45,
|
|
1590
|
+
56,
|
|
1591
|
+
57,
|
|
1592
|
+
62,
|
|
1593
|
+
63,
|
|
1594
|
+
68,
|
|
1595
|
+
69,
|
|
1596
|
+
74,
|
|
1597
|
+
75,
|
|
1598
|
+
76,
|
|
1599
|
+
77,
|
|
1600
|
+
78,
|
|
1601
|
+
79,
|
|
1602
|
+
80,
|
|
1603
|
+
81,
|
|
1604
|
+
92,
|
|
1605
|
+
93,
|
|
1606
|
+
98,
|
|
1607
|
+
99,
|
|
1608
|
+
112,
|
|
1609
|
+
113,
|
|
1610
|
+
128,
|
|
1611
|
+
129,
|
|
1612
|
+
134,
|
|
1613
|
+
135,
|
|
1614
|
+
148,
|
|
1615
|
+
149,
|
|
1616
|
+
160,
|
|
1617
|
+
161,
|
|
1618
|
+
162,
|
|
1619
|
+
163,
|
|
1620
|
+
164,
|
|
1621
|
+
165,
|
|
1622
|
+
166,
|
|
1623
|
+
167,
|
|
1624
|
+
168,
|
|
1625
|
+
169,
|
|
1626
|
+
170,
|
|
1627
|
+
171,
|
|
1628
|
+
172,
|
|
1629
|
+
173,
|
|
1630
|
+
178,
|
|
1631
|
+
179,
|
|
1632
|
+
184,
|
|
1633
|
+
185,
|
|
1634
|
+
196,
|
|
1635
|
+
197,
|
|
1636
|
+
198,
|
|
1637
|
+
199,
|
|
1638
|
+
200,
|
|
1639
|
+
201,
|
|
1640
|
+
202,
|
|
1641
|
+
203,
|
|
1642
|
+
204,
|
|
1643
|
+
205,
|
|
1644
|
+
206,
|
|
1645
|
+
207,
|
|
1646
|
+
208,
|
|
1647
|
+
209,
|
|
1648
|
+
214,
|
|
1649
|
+
215,
|
|
1650
|
+
220,
|
|
1651
|
+
221
|
|
1652
|
+
]);
|
|
1653
|
+
} catch {}
|
|
1654
|
+
y.inspectOpts = Object.keys(process.env).filter((e) => /^debug_/i.test(e)).reduce((e, r) => {
|
|
1655
|
+
let t = r.substring(6).toLowerCase().replace(/_([a-z])/g, (i, s) => s.toUpperCase()), n = process.env[r];
|
|
1656
|
+
return /^(yes|on|true|enabled)$/i.test(n) ? n = !0 : /^(no|off|false|disabled)$/i.test(n) ? n = !1 : n === "null" ? n = null : n = Number(n), e[t] = n, e;
|
|
1657
|
+
}, {});
|
|
1658
|
+
function nn() {
|
|
1659
|
+
return "colors" in y.inspectOpts ? !!y.inspectOpts.colors : tn.isatty(process.stderr.fd);
|
|
1660
|
+
}
|
|
1661
|
+
function on(e) {
|
|
1662
|
+
let { namespace: r, useColors: t } = this;
|
|
1663
|
+
if (t) {
|
|
1664
|
+
let n = this.color, i = "\x1B[3" + (n < 8 ? n : "8;5;" + n), s = ` ${i};1m${r} \x1B[0m`;
|
|
1665
|
+
e[0] = s + e[0].split(`
|
|
1666
|
+
`).join(`
|
|
1667
|
+
` + s), e.push(i + "m+" + Le.exports.humanize(this.diff) + "\x1B[0m");
|
|
1668
|
+
} else e[0] = sn() + r + " " + e[0];
|
|
1669
|
+
}
|
|
1670
|
+
function sn() {
|
|
1671
|
+
return y.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
1672
|
+
}
|
|
1673
|
+
function fn(...e) {
|
|
1674
|
+
return process.stderr.write(Se.formatWithOptions(y.inspectOpts, ...e) + `
|
|
1675
|
+
`);
|
|
1676
|
+
}
|
|
1677
|
+
function an(e) {
|
|
1678
|
+
e ? process.env.DEBUG = e : delete process.env.DEBUG;
|
|
1679
|
+
}
|
|
1680
|
+
function un() {
|
|
1681
|
+
return process.env.DEBUG;
|
|
1682
|
+
}
|
|
1683
|
+
function cn(e) {
|
|
1684
|
+
e.inspectOpts = {};
|
|
1685
|
+
let r = Object.keys(y.inspectOpts);
|
|
1686
|
+
for (let t = 0; t < r.length; t++) e.inspectOpts[r[t]] = y.inspectOpts[r[t]];
|
|
1687
|
+
}
|
|
1688
|
+
Le.exports = $e()(y);
|
|
1689
|
+
var { formatters: Xr } = Le.exports;
|
|
1690
|
+
Xr.o = function(e) {
|
|
1691
|
+
return this.inspectOpts.colors = this.useColors, Se.inspect(e, this.inspectOpts).split(`
|
|
1692
|
+
`).map((r) => r.trim()).join(" ");
|
|
1693
|
+
};
|
|
1694
|
+
Xr.O = function(e) {
|
|
1695
|
+
return this.inspectOpts.colors = this.useColors, Se.inspect(e, this.inspectOpts);
|
|
1696
|
+
};
|
|
1697
|
+
});
|
|
1698
|
+
var Jr = v((Hn, Qe) => {
|
|
1699
|
+
typeof process == "undefined" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? Qe.exports = Gr() : Qe.exports = $r();
|
|
1700
|
+
});
|
|
1701
|
+
var et = v((Kn, kr) => {
|
|
1702
|
+
kr.exports = Qr;
|
|
1703
|
+
function Qr(e, r) {
|
|
1704
|
+
if (e && r) return Qr(e)(r);
|
|
1705
|
+
if (typeof e != "function") throw new TypeError("need wrapper function");
|
|
1706
|
+
return Object.keys(e).forEach(function(n) {
|
|
1707
|
+
t[n] = e[n];
|
|
1708
|
+
}), t;
|
|
1709
|
+
function t() {
|
|
1710
|
+
for (var n = new Array(arguments.length), i = 0; i < n.length; i++) n[i] = arguments[i];
|
|
1711
|
+
var s = e.apply(this, n), o = n[n.length - 1];
|
|
1712
|
+
return typeof s == "function" && s !== o && Object.keys(o).forEach(function(f) {
|
|
1713
|
+
s[f] = o[f];
|
|
1714
|
+
}), s;
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
});
|
|
1718
|
+
var er = v((Vn, ke) => {
|
|
1719
|
+
var rt = et();
|
|
1720
|
+
ke.exports = rt(Oe);
|
|
1721
|
+
ke.exports.strict = rt(tt);
|
|
1722
|
+
Oe.proto = Oe(function() {
|
|
1723
|
+
Object.defineProperty(Function.prototype, "once", {
|
|
1724
|
+
value: function() {
|
|
1725
|
+
return Oe(this);
|
|
1726
|
+
},
|
|
1727
|
+
configurable: !0
|
|
1728
|
+
}), Object.defineProperty(Function.prototype, "onceStrict", {
|
|
1729
|
+
value: function() {
|
|
1730
|
+
return tt(this);
|
|
1731
|
+
},
|
|
1732
|
+
configurable: !0
|
|
1733
|
+
});
|
|
1734
|
+
});
|
|
1735
|
+
function Oe(e) {
|
|
1736
|
+
var r = function() {
|
|
1737
|
+
return r.called ? r.value : (r.called = !0, r.value = e.apply(this, arguments));
|
|
1738
|
+
};
|
|
1739
|
+
return r.called = !1, r;
|
|
1740
|
+
}
|
|
1741
|
+
function tt(e) {
|
|
1742
|
+
var r = function() {
|
|
1743
|
+
if (r.called) throw new Error(r.onceError);
|
|
1744
|
+
return r.called = !0, r.value = e.apply(this, arguments);
|
|
1745
|
+
};
|
|
1746
|
+
return r.onceError = (e.name || "Function wrapped with `once`") + " shouldn't be called more than once", r.called = !1, r;
|
|
1747
|
+
}
|
|
1748
|
+
});
|
|
1749
|
+
var ot = v((Xn, it) => {
|
|
1750
|
+
var dn = er(), ln = function() {}, hn = function(e) {
|
|
1751
|
+
return e.setHeader && typeof e.abort == "function";
|
|
1752
|
+
}, mn = function(e) {
|
|
1753
|
+
return e.stdio && Array.isArray(e.stdio) && e.stdio.length === 3;
|
|
1754
|
+
}, nt = function(e, r, t) {
|
|
1755
|
+
if (typeof r == "function") return nt(e, null, r);
|
|
1756
|
+
r || (r = {}), t = dn(t || ln);
|
|
1757
|
+
var n = e._writableState, i = e._readableState, s = r.readable || r.readable !== !1 && e.readable, o = r.writable || r.writable !== !1 && e.writable, f = !1, u = function() {
|
|
1758
|
+
e.writable || l();
|
|
1759
|
+
}, l = function() {
|
|
1760
|
+
o = !1, s || t.call(e);
|
|
1761
|
+
}, a = function() {
|
|
1762
|
+
s = !1, o || t.call(e);
|
|
1763
|
+
}, d = function(x) {
|
|
1764
|
+
t.call(e, x ? /* @__PURE__ */ new Error("exited with error code: " + x) : null);
|
|
1765
|
+
}, c = function(x) {
|
|
1766
|
+
t.call(e, x);
|
|
1767
|
+
}, h = function() {
|
|
1768
|
+
process.nextTick(E);
|
|
1769
|
+
}, E = function() {
|
|
1770
|
+
if (!f) {
|
|
1771
|
+
if (s && !(i && i.ended && !i.destroyed)) return t.call(e, /* @__PURE__ */ new Error("premature close"));
|
|
1772
|
+
if (o && !(n && n.ended && !n.destroyed)) return t.call(e, /* @__PURE__ */ new Error("premature close"));
|
|
1773
|
+
}
|
|
1774
|
+
}, p = function() {
|
|
1775
|
+
e.req.on("finish", l);
|
|
1776
|
+
};
|
|
1777
|
+
return hn(e) ? (e.on("complete", l), e.on("abort", h), e.req ? p() : e.on("request", p)) : o && !n && (e.on("end", u), e.on("close", u)), mn(e) && e.on("exit", d), e.on("end", a), e.on("finish", l), r.error !== !1 && e.on("error", c), e.on("close", h), function() {
|
|
1778
|
+
f = !0, e.removeListener("complete", l), e.removeListener("abort", h), e.removeListener("request", p), e.req && e.req.removeListener("finish", l), e.removeListener("end", u), e.removeListener("close", u), e.removeListener("finish", l), e.removeListener("exit", d), e.removeListener("end", a), e.removeListener("error", c), e.removeListener("close", h);
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1781
|
+
it.exports = nt;
|
|
1782
|
+
});
|
|
1783
|
+
var at = v(($n, ft) => {
|
|
1784
|
+
var pn = er(), xn = ot(), ze;
|
|
1785
|
+
try {
|
|
1786
|
+
ze = __require("fs");
|
|
1787
|
+
} catch {}
|
|
1788
|
+
var te = function() {}, En = /^v?\.0/.test(process.version), _e = function(e) {
|
|
1789
|
+
return typeof e == "function";
|
|
1790
|
+
}, vn = function(e) {
|
|
1791
|
+
return !En || !ze ? !1 : (e instanceof (ze.ReadStream || te) || e instanceof (ze.WriteStream || te)) && _e(e.close);
|
|
1792
|
+
}, wn = function(e) {
|
|
1793
|
+
return e.setHeader && _e(e.abort);
|
|
1794
|
+
}, yn = function(e, r, t, n) {
|
|
1795
|
+
n = pn(n);
|
|
1796
|
+
var i = !1;
|
|
1797
|
+
e.on("close", function() {
|
|
1798
|
+
i = !0;
|
|
1799
|
+
}), xn(e, {
|
|
1800
|
+
readable: r,
|
|
1801
|
+
writable: t
|
|
1802
|
+
}, function(o) {
|
|
1803
|
+
if (o) return n(o);
|
|
1804
|
+
i = !0, n();
|
|
1805
|
+
});
|
|
1806
|
+
var s = !1;
|
|
1807
|
+
return function(o) {
|
|
1808
|
+
if (!i && !s) {
|
|
1809
|
+
if (s = !0, vn(e)) return e.close(te);
|
|
1810
|
+
if (wn(e)) return e.abort();
|
|
1811
|
+
if (_e(e.destroy)) return e.destroy();
|
|
1812
|
+
n(o || /* @__PURE__ */ new Error("stream was destroyed"));
|
|
1813
|
+
}
|
|
1814
|
+
};
|
|
1815
|
+
}, st = function(e) {
|
|
1816
|
+
e();
|
|
1817
|
+
}, gn = function(e, r) {
|
|
1818
|
+
return e.pipe(r);
|
|
1819
|
+
}, Cn = function() {
|
|
1820
|
+
var e = Array.prototype.slice.call(arguments), r = _e(e[e.length - 1] || te) && e.pop() || te;
|
|
1821
|
+
if (Array.isArray(e[0]) && (e = e[0]), e.length < 2) throw new Error("pump requires two streams per minimum");
|
|
1822
|
+
var t, n = e.map(function(i, s) {
|
|
1823
|
+
var o = s < e.length - 1;
|
|
1824
|
+
return yn(i, o, s > 0, function(u) {
|
|
1825
|
+
t || (t = u), u && n.forEach(st), !o && (n.forEach(st), r(t));
|
|
1826
|
+
});
|
|
1827
|
+
});
|
|
1828
|
+
return e.reduce(gn);
|
|
1829
|
+
};
|
|
1830
|
+
ft.exports = Cn;
|
|
1831
|
+
});
|
|
1832
|
+
var ct = v((Jn, ut) => {
|
|
1833
|
+
"use strict";
|
|
1834
|
+
var { PassThrough: bn } = __require("stream");
|
|
1835
|
+
ut.exports = (e) => {
|
|
1836
|
+
e = { ...e };
|
|
1837
|
+
let { array: r } = e, { encoding: t } = e, n = t === "buffer", i = !1;
|
|
1838
|
+
r ? i = !(t || n) : t = t || "utf8", n && (t = null);
|
|
1839
|
+
let s = new bn({ objectMode: i });
|
|
1840
|
+
t && s.setEncoding(t);
|
|
1841
|
+
let o = 0, f = [];
|
|
1842
|
+
return s.on("data", (u) => {
|
|
1843
|
+
f.push(u), i ? o = f.length : o += u.length;
|
|
1844
|
+
}), s.getBufferedValue = () => r ? f : n ? Buffer.concat(f, o) : f.join(""), s.getBufferedLength = () => o, s;
|
|
1845
|
+
};
|
|
1846
|
+
});
|
|
1847
|
+
var dt = v((Qn, X) => {
|
|
1848
|
+
"use strict";
|
|
1849
|
+
var { constants: Fn } = __require("buffer"), In = at(), Sn = ct(), Re = class extends Error {
|
|
1850
|
+
constructor() {
|
|
1851
|
+
super("maxBuffer exceeded"), this.name = "MaxBufferError";
|
|
1852
|
+
}
|
|
1853
|
+
};
|
|
1854
|
+
async function De(e, r) {
|
|
1855
|
+
if (!e) return Promise.reject(/* @__PURE__ */ new Error("Expected a stream"));
|
|
1856
|
+
r = {
|
|
1857
|
+
maxBuffer: Infinity,
|
|
1858
|
+
...r
|
|
1859
|
+
};
|
|
1860
|
+
let { maxBuffer: t } = r, n;
|
|
1861
|
+
return await new Promise((i, s) => {
|
|
1862
|
+
let o = (f) => {
|
|
1863
|
+
f && n.getBufferedLength() <= Fn.MAX_LENGTH && (f.bufferedData = n.getBufferedValue()), s(f);
|
|
1864
|
+
};
|
|
1865
|
+
n = In(e, Sn(r), (f) => {
|
|
1866
|
+
if (f) {
|
|
1867
|
+
o(f);
|
|
1868
|
+
return;
|
|
1869
|
+
}
|
|
1870
|
+
i();
|
|
1871
|
+
}), n.on("data", () => {
|
|
1872
|
+
n.getBufferedLength() > t && o(new Re());
|
|
1873
|
+
});
|
|
1874
|
+
}), n.getBufferedValue();
|
|
1875
|
+
}
|
|
1876
|
+
X.exports = De;
|
|
1877
|
+
X.exports.default = De;
|
|
1878
|
+
X.exports.buffer = (e, r) => De(e, {
|
|
1879
|
+
...r,
|
|
1880
|
+
encoding: "buffer"
|
|
1881
|
+
});
|
|
1882
|
+
X.exports.array = (e, r) => De(e, {
|
|
1883
|
+
...r,
|
|
1884
|
+
array: !0
|
|
1885
|
+
});
|
|
1886
|
+
X.exports.MaxBufferError = Re;
|
|
1887
|
+
});
|
|
1888
|
+
var ht = v((kn, lt) => {
|
|
1889
|
+
"use strict";
|
|
1890
|
+
var S = Jr()("extract-zip"), { createWriteStream: Ln, promises: $ } = __require("fs"), On = dt(), W = __require("path"), { promisify: tr } = __require("util"), zn = __require("stream"), Rn = tr(Xe().open), Dn = tr(zn.pipeline), rr = class {
|
|
1891
|
+
constructor(r, t) {
|
|
1892
|
+
this.zipPath = r, this.opts = t;
|
|
1893
|
+
}
|
|
1894
|
+
async extract() {
|
|
1895
|
+
return S("opening", this.zipPath, "with opts", this.opts), this.zipfile = await Rn(this.zipPath, { lazyEntries: !0 }), this.canceled = !1, new Promise((r, t) => {
|
|
1896
|
+
this.zipfile.on("error", (n) => {
|
|
1897
|
+
this.canceled = !0, t(n);
|
|
1898
|
+
}), this.zipfile.readEntry(), this.zipfile.on("close", () => {
|
|
1899
|
+
this.canceled || (S("zip extraction complete"), r());
|
|
1900
|
+
}), this.zipfile.on("entry", async (n) => {
|
|
1901
|
+
if (this.canceled) {
|
|
1902
|
+
S("skipping entry", n.fileName, { cancelled: this.canceled });
|
|
1903
|
+
return;
|
|
1904
|
+
}
|
|
1905
|
+
if (S("zipfile entry", n.fileName), n.fileName.startsWith("__MACOSX/")) {
|
|
1906
|
+
this.zipfile.readEntry();
|
|
1907
|
+
return;
|
|
1908
|
+
}
|
|
1909
|
+
let i = W.dirname(W.join(this.opts.dir, n.fileName));
|
|
1910
|
+
try {
|
|
1911
|
+
await $.mkdir(i, { recursive: !0 });
|
|
1912
|
+
let s = await $.realpath(i);
|
|
1913
|
+
if (W.relative(this.opts.dir, s).split(W.sep).includes("..")) throw new Error(`Out of bound path "${s}" found while processing file ${n.fileName}`);
|
|
1914
|
+
await this.extractEntry(n), S("finished processing", n.fileName), this.zipfile.readEntry();
|
|
1915
|
+
} catch (s) {
|
|
1916
|
+
this.canceled = !0, this.zipfile.close(), t(s);
|
|
1917
|
+
}
|
|
1918
|
+
});
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
async extractEntry(r) {
|
|
1922
|
+
if (this.canceled) {
|
|
1923
|
+
S("skipping entry extraction", r.fileName, { cancelled: this.canceled });
|
|
1924
|
+
return;
|
|
1925
|
+
}
|
|
1926
|
+
this.opts.onEntry && this.opts.onEntry(r, this.zipfile);
|
|
1927
|
+
let t = W.join(this.opts.dir, r.fileName), n = r.externalFileAttributes >> 16 & 65535, i = 61440, s = 16384, f = (n & i) === 40960, u = (n & i) === s;
|
|
1928
|
+
!u && r.fileName.endsWith("/") && (u = !0);
|
|
1929
|
+
let l = r.versionMadeBy >> 8;
|
|
1930
|
+
u || (u = l === 0 && r.externalFileAttributes === 16), S("extracting entry", {
|
|
1931
|
+
filename: r.fileName,
|
|
1932
|
+
isDir: u,
|
|
1933
|
+
isSymlink: f
|
|
1934
|
+
});
|
|
1935
|
+
let a = this.getExtractedMode(n, u) & 511, d = u ? t : W.dirname(t), c = { recursive: !0 };
|
|
1936
|
+
if (u && (c.mode = a), S("mkdir", {
|
|
1937
|
+
dir: d,
|
|
1938
|
+
...c
|
|
1939
|
+
}), await $.mkdir(d, c), u) return;
|
|
1940
|
+
S("opening read stream", t);
|
|
1941
|
+
let h = await tr(this.zipfile.openReadStream.bind(this.zipfile))(r);
|
|
1942
|
+
if (f) {
|
|
1943
|
+
let E = await On(h);
|
|
1944
|
+
S("creating symlink", E, t), await $.symlink(E, t);
|
|
1945
|
+
} else await Dn(h, Ln(t, { mode: a }));
|
|
1946
|
+
}
|
|
1947
|
+
getExtractedMode(r, t) {
|
|
1948
|
+
let n = r;
|
|
1949
|
+
return n === 0 && (t ? (this.opts.defaultDirMode && (n = parseInt(this.opts.defaultDirMode, 10)), n || (n = 493)) : (this.opts.defaultFileMode && (n = parseInt(this.opts.defaultFileMode, 10)), n || (n = 420))), n;
|
|
1950
|
+
}
|
|
1951
|
+
};
|
|
1952
|
+
lt.exports = async function(e, r) {
|
|
1953
|
+
if (S("creating target directory", r.dir), !W.isAbsolute(r.dir)) throw new Error("Target directory is expected to be absolute");
|
|
1954
|
+
return await $.mkdir(r.dir, { recursive: !0 }), r.dir = await $.realpath(r.dir), new rr(e, r).extract();
|
|
1955
|
+
};
|
|
1956
|
+
});
|
|
1957
|
+
var Tn = {};
|
|
1958
|
+
Ct(Tn, {
|
|
1959
|
+
extract: () => Un,
|
|
1960
|
+
yauzl: () => pt,
|
|
1961
|
+
yazl: () => mt
|
|
1962
|
+
});
|
|
1963
|
+
module.exports = bt(Tn);
|
|
1964
|
+
var mt = sr(Fr()), pt = sr(Xe()), Un = ht();
|
|
1965
|
+
}));
|
|
1966
|
+
//#endregion
|
|
1967
|
+
//#region ../../node_modules/.bun/playwright-core@1.59.1/node_modules/playwright-core/lib/zipBundle.js
|
|
1968
|
+
var require_zipBundle = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1969
|
+
var __defProp = Object.defineProperty;
|
|
1970
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1971
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1972
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1973
|
+
var __export = (target, all) => {
|
|
1974
|
+
for (var name in all) __defProp(target, name, {
|
|
1975
|
+
get: all[name],
|
|
1976
|
+
enumerable: true
|
|
1977
|
+
});
|
|
1978
|
+
};
|
|
1979
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1980
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1981
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
1982
|
+
get: () => from[key],
|
|
1983
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
1984
|
+
});
|
|
1985
|
+
}
|
|
1986
|
+
return to;
|
|
1987
|
+
};
|
|
1988
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1989
|
+
var zipBundle_exports = {};
|
|
1990
|
+
__export(zipBundle_exports, {
|
|
1991
|
+
extract: () => extract,
|
|
1992
|
+
yauzl: () => yauzl,
|
|
1993
|
+
yazl: () => yazl
|
|
1994
|
+
});
|
|
1995
|
+
module.exports = __toCommonJS(zipBundle_exports);
|
|
1996
|
+
const yazl = require_zipBundleImpl().yazl;
|
|
1997
|
+
const yauzl = require_zipBundleImpl().yauzl;
|
|
1998
|
+
const extract = require_zipBundleImpl().extract;
|
|
1999
|
+
}));
|
|
2000
|
+
//#endregion
|
|
2001
|
+
export { require_zipBundle as t };
|
|
2002
|
+
|
|
2003
|
+
//# sourceMappingURL=zipBundle-VNAYFmqJ.mjs.map
|