bumpp 7.1.1 → 8.1.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.
@@ -0,0 +1,2281 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
26
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
27
+ }) : x)(function(x) {
28
+ if (typeof require !== "undefined")
29
+ return require.apply(this, arguments);
30
+ throw new Error('Dynamic require of "' + x + '" is not supported');
31
+ });
32
+ var __objRest = (source, exclude) => {
33
+ var target = {};
34
+ for (var prop in source)
35
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
36
+ target[prop] = source[prop];
37
+ if (source != null && __getOwnPropSymbols)
38
+ for (var prop of __getOwnPropSymbols(source)) {
39
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
40
+ target[prop] = source[prop];
41
+ }
42
+ return target;
43
+ };
44
+ var __esm = (fn, res) => function __init() {
45
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
46
+ };
47
+ var __commonJS = (cb, mod) => function __require2() {
48
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
49
+ };
50
+ var __reExport = (target, module, copyDefault, desc) => {
51
+ if (module && typeof module === "object" || typeof module === "function") {
52
+ for (let key of __getOwnPropNames(module))
53
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
54
+ __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
55
+ }
56
+ return target;
57
+ };
58
+ var __toESM = (module, isNodeMode) => {
59
+ return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
60
+ };
61
+
62
+ // node_modules/.pnpm/tsup@5.11.9_typescript@4.5.4/node_modules/tsup/assets/esm_shims.js
63
+ var init_esm_shims = __esm({
64
+ "node_modules/.pnpm/tsup@5.11.9_typescript@4.5.4/node_modules/tsup/assets/esm_shims.js"() {
65
+ }
66
+ });
67
+
68
+ // node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
69
+ var require_color_name = __commonJS({
70
+ "node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports, module) {
71
+ "use strict";
72
+ init_esm_shims();
73
+ module.exports = {
74
+ "aliceblue": [240, 248, 255],
75
+ "antiquewhite": [250, 235, 215],
76
+ "aqua": [0, 255, 255],
77
+ "aquamarine": [127, 255, 212],
78
+ "azure": [240, 255, 255],
79
+ "beige": [245, 245, 220],
80
+ "bisque": [255, 228, 196],
81
+ "black": [0, 0, 0],
82
+ "blanchedalmond": [255, 235, 205],
83
+ "blue": [0, 0, 255],
84
+ "blueviolet": [138, 43, 226],
85
+ "brown": [165, 42, 42],
86
+ "burlywood": [222, 184, 135],
87
+ "cadetblue": [95, 158, 160],
88
+ "chartreuse": [127, 255, 0],
89
+ "chocolate": [210, 105, 30],
90
+ "coral": [255, 127, 80],
91
+ "cornflowerblue": [100, 149, 237],
92
+ "cornsilk": [255, 248, 220],
93
+ "crimson": [220, 20, 60],
94
+ "cyan": [0, 255, 255],
95
+ "darkblue": [0, 0, 139],
96
+ "darkcyan": [0, 139, 139],
97
+ "darkgoldenrod": [184, 134, 11],
98
+ "darkgray": [169, 169, 169],
99
+ "darkgreen": [0, 100, 0],
100
+ "darkgrey": [169, 169, 169],
101
+ "darkkhaki": [189, 183, 107],
102
+ "darkmagenta": [139, 0, 139],
103
+ "darkolivegreen": [85, 107, 47],
104
+ "darkorange": [255, 140, 0],
105
+ "darkorchid": [153, 50, 204],
106
+ "darkred": [139, 0, 0],
107
+ "darksalmon": [233, 150, 122],
108
+ "darkseagreen": [143, 188, 143],
109
+ "darkslateblue": [72, 61, 139],
110
+ "darkslategray": [47, 79, 79],
111
+ "darkslategrey": [47, 79, 79],
112
+ "darkturquoise": [0, 206, 209],
113
+ "darkviolet": [148, 0, 211],
114
+ "deeppink": [255, 20, 147],
115
+ "deepskyblue": [0, 191, 255],
116
+ "dimgray": [105, 105, 105],
117
+ "dimgrey": [105, 105, 105],
118
+ "dodgerblue": [30, 144, 255],
119
+ "firebrick": [178, 34, 34],
120
+ "floralwhite": [255, 250, 240],
121
+ "forestgreen": [34, 139, 34],
122
+ "fuchsia": [255, 0, 255],
123
+ "gainsboro": [220, 220, 220],
124
+ "ghostwhite": [248, 248, 255],
125
+ "gold": [255, 215, 0],
126
+ "goldenrod": [218, 165, 32],
127
+ "gray": [128, 128, 128],
128
+ "green": [0, 128, 0],
129
+ "greenyellow": [173, 255, 47],
130
+ "grey": [128, 128, 128],
131
+ "honeydew": [240, 255, 240],
132
+ "hotpink": [255, 105, 180],
133
+ "indianred": [205, 92, 92],
134
+ "indigo": [75, 0, 130],
135
+ "ivory": [255, 255, 240],
136
+ "khaki": [240, 230, 140],
137
+ "lavender": [230, 230, 250],
138
+ "lavenderblush": [255, 240, 245],
139
+ "lawngreen": [124, 252, 0],
140
+ "lemonchiffon": [255, 250, 205],
141
+ "lightblue": [173, 216, 230],
142
+ "lightcoral": [240, 128, 128],
143
+ "lightcyan": [224, 255, 255],
144
+ "lightgoldenrodyellow": [250, 250, 210],
145
+ "lightgray": [211, 211, 211],
146
+ "lightgreen": [144, 238, 144],
147
+ "lightgrey": [211, 211, 211],
148
+ "lightpink": [255, 182, 193],
149
+ "lightsalmon": [255, 160, 122],
150
+ "lightseagreen": [32, 178, 170],
151
+ "lightskyblue": [135, 206, 250],
152
+ "lightslategray": [119, 136, 153],
153
+ "lightslategrey": [119, 136, 153],
154
+ "lightsteelblue": [176, 196, 222],
155
+ "lightyellow": [255, 255, 224],
156
+ "lime": [0, 255, 0],
157
+ "limegreen": [50, 205, 50],
158
+ "linen": [250, 240, 230],
159
+ "magenta": [255, 0, 255],
160
+ "maroon": [128, 0, 0],
161
+ "mediumaquamarine": [102, 205, 170],
162
+ "mediumblue": [0, 0, 205],
163
+ "mediumorchid": [186, 85, 211],
164
+ "mediumpurple": [147, 112, 219],
165
+ "mediumseagreen": [60, 179, 113],
166
+ "mediumslateblue": [123, 104, 238],
167
+ "mediumspringgreen": [0, 250, 154],
168
+ "mediumturquoise": [72, 209, 204],
169
+ "mediumvioletred": [199, 21, 133],
170
+ "midnightblue": [25, 25, 112],
171
+ "mintcream": [245, 255, 250],
172
+ "mistyrose": [255, 228, 225],
173
+ "moccasin": [255, 228, 181],
174
+ "navajowhite": [255, 222, 173],
175
+ "navy": [0, 0, 128],
176
+ "oldlace": [253, 245, 230],
177
+ "olive": [128, 128, 0],
178
+ "olivedrab": [107, 142, 35],
179
+ "orange": [255, 165, 0],
180
+ "orangered": [255, 69, 0],
181
+ "orchid": [218, 112, 214],
182
+ "palegoldenrod": [238, 232, 170],
183
+ "palegreen": [152, 251, 152],
184
+ "paleturquoise": [175, 238, 238],
185
+ "palevioletred": [219, 112, 147],
186
+ "papayawhip": [255, 239, 213],
187
+ "peachpuff": [255, 218, 185],
188
+ "peru": [205, 133, 63],
189
+ "pink": [255, 192, 203],
190
+ "plum": [221, 160, 221],
191
+ "powderblue": [176, 224, 230],
192
+ "purple": [128, 0, 128],
193
+ "rebeccapurple": [102, 51, 153],
194
+ "red": [255, 0, 0],
195
+ "rosybrown": [188, 143, 143],
196
+ "royalblue": [65, 105, 225],
197
+ "saddlebrown": [139, 69, 19],
198
+ "salmon": [250, 128, 114],
199
+ "sandybrown": [244, 164, 96],
200
+ "seagreen": [46, 139, 87],
201
+ "seashell": [255, 245, 238],
202
+ "sienna": [160, 82, 45],
203
+ "silver": [192, 192, 192],
204
+ "skyblue": [135, 206, 235],
205
+ "slateblue": [106, 90, 205],
206
+ "slategray": [112, 128, 144],
207
+ "slategrey": [112, 128, 144],
208
+ "snow": [255, 250, 250],
209
+ "springgreen": [0, 255, 127],
210
+ "steelblue": [70, 130, 180],
211
+ "tan": [210, 180, 140],
212
+ "teal": [0, 128, 128],
213
+ "thistle": [216, 191, 216],
214
+ "tomato": [255, 99, 71],
215
+ "turquoise": [64, 224, 208],
216
+ "violet": [238, 130, 238],
217
+ "wheat": [245, 222, 179],
218
+ "white": [255, 255, 255],
219
+ "whitesmoke": [245, 245, 245],
220
+ "yellow": [255, 255, 0],
221
+ "yellowgreen": [154, 205, 50]
222
+ };
223
+ }
224
+ });
225
+
226
+ // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js
227
+ var require_conversions = __commonJS({
228
+ "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js"(exports, module) {
229
+ init_esm_shims();
230
+ var cssKeywords = require_color_name();
231
+ var reverseKeywords = {};
232
+ for (const key of Object.keys(cssKeywords)) {
233
+ reverseKeywords[cssKeywords[key]] = key;
234
+ }
235
+ var convert = {
236
+ rgb: { channels: 3, labels: "rgb" },
237
+ hsl: { channels: 3, labels: "hsl" },
238
+ hsv: { channels: 3, labels: "hsv" },
239
+ hwb: { channels: 3, labels: "hwb" },
240
+ cmyk: { channels: 4, labels: "cmyk" },
241
+ xyz: { channels: 3, labels: "xyz" },
242
+ lab: { channels: 3, labels: "lab" },
243
+ lch: { channels: 3, labels: "lch" },
244
+ hex: { channels: 1, labels: ["hex"] },
245
+ keyword: { channels: 1, labels: ["keyword"] },
246
+ ansi16: { channels: 1, labels: ["ansi16"] },
247
+ ansi256: { channels: 1, labels: ["ansi256"] },
248
+ hcg: { channels: 3, labels: ["h", "c", "g"] },
249
+ apple: { channels: 3, labels: ["r16", "g16", "b16"] },
250
+ gray: { channels: 1, labels: ["gray"] }
251
+ };
252
+ module.exports = convert;
253
+ for (const model of Object.keys(convert)) {
254
+ if (!("channels" in convert[model])) {
255
+ throw new Error("missing channels property: " + model);
256
+ }
257
+ if (!("labels" in convert[model])) {
258
+ throw new Error("missing channel labels property: " + model);
259
+ }
260
+ if (convert[model].labels.length !== convert[model].channels) {
261
+ throw new Error("channel and label counts mismatch: " + model);
262
+ }
263
+ const { channels, labels } = convert[model];
264
+ delete convert[model].channels;
265
+ delete convert[model].labels;
266
+ Object.defineProperty(convert[model], "channels", { value: channels });
267
+ Object.defineProperty(convert[model], "labels", { value: labels });
268
+ }
269
+ convert.rgb.hsl = function(rgb) {
270
+ const r = rgb[0] / 255;
271
+ const g = rgb[1] / 255;
272
+ const b = rgb[2] / 255;
273
+ const min = Math.min(r, g, b);
274
+ const max = Math.max(r, g, b);
275
+ const delta = max - min;
276
+ let h;
277
+ let s;
278
+ if (max === min) {
279
+ h = 0;
280
+ } else if (r === max) {
281
+ h = (g - b) / delta;
282
+ } else if (g === max) {
283
+ h = 2 + (b - r) / delta;
284
+ } else if (b === max) {
285
+ h = 4 + (r - g) / delta;
286
+ }
287
+ h = Math.min(h * 60, 360);
288
+ if (h < 0) {
289
+ h += 360;
290
+ }
291
+ const l = (min + max) / 2;
292
+ if (max === min) {
293
+ s = 0;
294
+ } else if (l <= 0.5) {
295
+ s = delta / (max + min);
296
+ } else {
297
+ s = delta / (2 - max - min);
298
+ }
299
+ return [h, s * 100, l * 100];
300
+ };
301
+ convert.rgb.hsv = function(rgb) {
302
+ let rdif;
303
+ let gdif;
304
+ let bdif;
305
+ let h;
306
+ let s;
307
+ const r = rgb[0] / 255;
308
+ const g = rgb[1] / 255;
309
+ const b = rgb[2] / 255;
310
+ const v = Math.max(r, g, b);
311
+ const diff = v - Math.min(r, g, b);
312
+ const diffc = function(c) {
313
+ return (v - c) / 6 / diff + 1 / 2;
314
+ };
315
+ if (diff === 0) {
316
+ h = 0;
317
+ s = 0;
318
+ } else {
319
+ s = diff / v;
320
+ rdif = diffc(r);
321
+ gdif = diffc(g);
322
+ bdif = diffc(b);
323
+ if (r === v) {
324
+ h = bdif - gdif;
325
+ } else if (g === v) {
326
+ h = 1 / 3 + rdif - bdif;
327
+ } else if (b === v) {
328
+ h = 2 / 3 + gdif - rdif;
329
+ }
330
+ if (h < 0) {
331
+ h += 1;
332
+ } else if (h > 1) {
333
+ h -= 1;
334
+ }
335
+ }
336
+ return [
337
+ h * 360,
338
+ s * 100,
339
+ v * 100
340
+ ];
341
+ };
342
+ convert.rgb.hwb = function(rgb) {
343
+ const r = rgb[0];
344
+ const g = rgb[1];
345
+ let b = rgb[2];
346
+ const h = convert.rgb.hsl(rgb)[0];
347
+ const w = 1 / 255 * Math.min(r, Math.min(g, b));
348
+ b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
349
+ return [h, w * 100, b * 100];
350
+ };
351
+ convert.rgb.cmyk = function(rgb) {
352
+ const r = rgb[0] / 255;
353
+ const g = rgb[1] / 255;
354
+ const b = rgb[2] / 255;
355
+ const k = Math.min(1 - r, 1 - g, 1 - b);
356
+ const c = (1 - r - k) / (1 - k) || 0;
357
+ const m = (1 - g - k) / (1 - k) || 0;
358
+ const y = (1 - b - k) / (1 - k) || 0;
359
+ return [c * 100, m * 100, y * 100, k * 100];
360
+ };
361
+ function comparativeDistance(x, y) {
362
+ return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
363
+ }
364
+ convert.rgb.keyword = function(rgb) {
365
+ const reversed = reverseKeywords[rgb];
366
+ if (reversed) {
367
+ return reversed;
368
+ }
369
+ let currentClosestDistance = Infinity;
370
+ let currentClosestKeyword;
371
+ for (const keyword of Object.keys(cssKeywords)) {
372
+ const value = cssKeywords[keyword];
373
+ const distance = comparativeDistance(rgb, value);
374
+ if (distance < currentClosestDistance) {
375
+ currentClosestDistance = distance;
376
+ currentClosestKeyword = keyword;
377
+ }
378
+ }
379
+ return currentClosestKeyword;
380
+ };
381
+ convert.keyword.rgb = function(keyword) {
382
+ return cssKeywords[keyword];
383
+ };
384
+ convert.rgb.xyz = function(rgb) {
385
+ let r = rgb[0] / 255;
386
+ let g = rgb[1] / 255;
387
+ let b = rgb[2] / 255;
388
+ r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
389
+ g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
390
+ b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
391
+ const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
392
+ const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
393
+ const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
394
+ return [x * 100, y * 100, z * 100];
395
+ };
396
+ convert.rgb.lab = function(rgb) {
397
+ const xyz = convert.rgb.xyz(rgb);
398
+ let x = xyz[0];
399
+ let y = xyz[1];
400
+ let z = xyz[2];
401
+ x /= 95.047;
402
+ y /= 100;
403
+ z /= 108.883;
404
+ x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
405
+ y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
406
+ z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
407
+ const l = 116 * y - 16;
408
+ const a = 500 * (x - y);
409
+ const b = 200 * (y - z);
410
+ return [l, a, b];
411
+ };
412
+ convert.hsl.rgb = function(hsl) {
413
+ const h = hsl[0] / 360;
414
+ const s = hsl[1] / 100;
415
+ const l = hsl[2] / 100;
416
+ let t2;
417
+ let t3;
418
+ let val;
419
+ if (s === 0) {
420
+ val = l * 255;
421
+ return [val, val, val];
422
+ }
423
+ if (l < 0.5) {
424
+ t2 = l * (1 + s);
425
+ } else {
426
+ t2 = l + s - l * s;
427
+ }
428
+ const t1 = 2 * l - t2;
429
+ const rgb = [0, 0, 0];
430
+ for (let i = 0; i < 3; i++) {
431
+ t3 = h + 1 / 3 * -(i - 1);
432
+ if (t3 < 0) {
433
+ t3++;
434
+ }
435
+ if (t3 > 1) {
436
+ t3--;
437
+ }
438
+ if (6 * t3 < 1) {
439
+ val = t1 + (t2 - t1) * 6 * t3;
440
+ } else if (2 * t3 < 1) {
441
+ val = t2;
442
+ } else if (3 * t3 < 2) {
443
+ val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
444
+ } else {
445
+ val = t1;
446
+ }
447
+ rgb[i] = val * 255;
448
+ }
449
+ return rgb;
450
+ };
451
+ convert.hsl.hsv = function(hsl) {
452
+ const h = hsl[0];
453
+ let s = hsl[1] / 100;
454
+ let l = hsl[2] / 100;
455
+ let smin = s;
456
+ const lmin = Math.max(l, 0.01);
457
+ l *= 2;
458
+ s *= l <= 1 ? l : 2 - l;
459
+ smin *= lmin <= 1 ? lmin : 2 - lmin;
460
+ const v = (l + s) / 2;
461
+ const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
462
+ return [h, sv * 100, v * 100];
463
+ };
464
+ convert.hsv.rgb = function(hsv) {
465
+ const h = hsv[0] / 60;
466
+ const s = hsv[1] / 100;
467
+ let v = hsv[2] / 100;
468
+ const hi = Math.floor(h) % 6;
469
+ const f = h - Math.floor(h);
470
+ const p = 255 * v * (1 - s);
471
+ const q = 255 * v * (1 - s * f);
472
+ const t = 255 * v * (1 - s * (1 - f));
473
+ v *= 255;
474
+ switch (hi) {
475
+ case 0:
476
+ return [v, t, p];
477
+ case 1:
478
+ return [q, v, p];
479
+ case 2:
480
+ return [p, v, t];
481
+ case 3:
482
+ return [p, q, v];
483
+ case 4:
484
+ return [t, p, v];
485
+ case 5:
486
+ return [v, p, q];
487
+ }
488
+ };
489
+ convert.hsv.hsl = function(hsv) {
490
+ const h = hsv[0];
491
+ const s = hsv[1] / 100;
492
+ const v = hsv[2] / 100;
493
+ const vmin = Math.max(v, 0.01);
494
+ let sl;
495
+ let l;
496
+ l = (2 - s) * v;
497
+ const lmin = (2 - s) * vmin;
498
+ sl = s * vmin;
499
+ sl /= lmin <= 1 ? lmin : 2 - lmin;
500
+ sl = sl || 0;
501
+ l /= 2;
502
+ return [h, sl * 100, l * 100];
503
+ };
504
+ convert.hwb.rgb = function(hwb) {
505
+ const h = hwb[0] / 360;
506
+ let wh = hwb[1] / 100;
507
+ let bl = hwb[2] / 100;
508
+ const ratio = wh + bl;
509
+ let f;
510
+ if (ratio > 1) {
511
+ wh /= ratio;
512
+ bl /= ratio;
513
+ }
514
+ const i = Math.floor(6 * h);
515
+ const v = 1 - bl;
516
+ f = 6 * h - i;
517
+ if ((i & 1) !== 0) {
518
+ f = 1 - f;
519
+ }
520
+ const n = wh + f * (v - wh);
521
+ let r;
522
+ let g;
523
+ let b;
524
+ switch (i) {
525
+ default:
526
+ case 6:
527
+ case 0:
528
+ r = v;
529
+ g = n;
530
+ b = wh;
531
+ break;
532
+ case 1:
533
+ r = n;
534
+ g = v;
535
+ b = wh;
536
+ break;
537
+ case 2:
538
+ r = wh;
539
+ g = v;
540
+ b = n;
541
+ break;
542
+ case 3:
543
+ r = wh;
544
+ g = n;
545
+ b = v;
546
+ break;
547
+ case 4:
548
+ r = n;
549
+ g = wh;
550
+ b = v;
551
+ break;
552
+ case 5:
553
+ r = v;
554
+ g = wh;
555
+ b = n;
556
+ break;
557
+ }
558
+ return [r * 255, g * 255, b * 255];
559
+ };
560
+ convert.cmyk.rgb = function(cmyk) {
561
+ const c = cmyk[0] / 100;
562
+ const m = cmyk[1] / 100;
563
+ const y = cmyk[2] / 100;
564
+ const k = cmyk[3] / 100;
565
+ const r = 1 - Math.min(1, c * (1 - k) + k);
566
+ const g = 1 - Math.min(1, m * (1 - k) + k);
567
+ const b = 1 - Math.min(1, y * (1 - k) + k);
568
+ return [r * 255, g * 255, b * 255];
569
+ };
570
+ convert.xyz.rgb = function(xyz) {
571
+ const x = xyz[0] / 100;
572
+ const y = xyz[1] / 100;
573
+ const z = xyz[2] / 100;
574
+ let r;
575
+ let g;
576
+ let b;
577
+ r = x * 3.2406 + y * -1.5372 + z * -0.4986;
578
+ g = x * -0.9689 + y * 1.8758 + z * 0.0415;
579
+ b = x * 0.0557 + y * -0.204 + z * 1.057;
580
+ r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
581
+ g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
582
+ b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
583
+ r = Math.min(Math.max(0, r), 1);
584
+ g = Math.min(Math.max(0, g), 1);
585
+ b = Math.min(Math.max(0, b), 1);
586
+ return [r * 255, g * 255, b * 255];
587
+ };
588
+ convert.xyz.lab = function(xyz) {
589
+ let x = xyz[0];
590
+ let y = xyz[1];
591
+ let z = xyz[2];
592
+ x /= 95.047;
593
+ y /= 100;
594
+ z /= 108.883;
595
+ x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
596
+ y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
597
+ z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
598
+ const l = 116 * y - 16;
599
+ const a = 500 * (x - y);
600
+ const b = 200 * (y - z);
601
+ return [l, a, b];
602
+ };
603
+ convert.lab.xyz = function(lab) {
604
+ const l = lab[0];
605
+ const a = lab[1];
606
+ const b = lab[2];
607
+ let x;
608
+ let y;
609
+ let z;
610
+ y = (l + 16) / 116;
611
+ x = a / 500 + y;
612
+ z = y - b / 200;
613
+ const y2 = y ** 3;
614
+ const x2 = x ** 3;
615
+ const z2 = z ** 3;
616
+ y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
617
+ x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
618
+ z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
619
+ x *= 95.047;
620
+ y *= 100;
621
+ z *= 108.883;
622
+ return [x, y, z];
623
+ };
624
+ convert.lab.lch = function(lab) {
625
+ const l = lab[0];
626
+ const a = lab[1];
627
+ const b = lab[2];
628
+ let h;
629
+ const hr = Math.atan2(b, a);
630
+ h = hr * 360 / 2 / Math.PI;
631
+ if (h < 0) {
632
+ h += 360;
633
+ }
634
+ const c = Math.sqrt(a * a + b * b);
635
+ return [l, c, h];
636
+ };
637
+ convert.lch.lab = function(lch) {
638
+ const l = lch[0];
639
+ const c = lch[1];
640
+ const h = lch[2];
641
+ const hr = h / 360 * 2 * Math.PI;
642
+ const a = c * Math.cos(hr);
643
+ const b = c * Math.sin(hr);
644
+ return [l, a, b];
645
+ };
646
+ convert.rgb.ansi16 = function(args, saturation = null) {
647
+ const [r, g, b] = args;
648
+ let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
649
+ value = Math.round(value / 50);
650
+ if (value === 0) {
651
+ return 30;
652
+ }
653
+ let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
654
+ if (value === 2) {
655
+ ansi += 60;
656
+ }
657
+ return ansi;
658
+ };
659
+ convert.hsv.ansi16 = function(args) {
660
+ return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
661
+ };
662
+ convert.rgb.ansi256 = function(args) {
663
+ const r = args[0];
664
+ const g = args[1];
665
+ const b = args[2];
666
+ if (r === g && g === b) {
667
+ if (r < 8) {
668
+ return 16;
669
+ }
670
+ if (r > 248) {
671
+ return 231;
672
+ }
673
+ return Math.round((r - 8) / 247 * 24) + 232;
674
+ }
675
+ const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
676
+ return ansi;
677
+ };
678
+ convert.ansi16.rgb = function(args) {
679
+ let color = args % 10;
680
+ if (color === 0 || color === 7) {
681
+ if (args > 50) {
682
+ color += 3.5;
683
+ }
684
+ color = color / 10.5 * 255;
685
+ return [color, color, color];
686
+ }
687
+ const mult = (~~(args > 50) + 1) * 0.5;
688
+ const r = (color & 1) * mult * 255;
689
+ const g = (color >> 1 & 1) * mult * 255;
690
+ const b = (color >> 2 & 1) * mult * 255;
691
+ return [r, g, b];
692
+ };
693
+ convert.ansi256.rgb = function(args) {
694
+ if (args >= 232) {
695
+ const c = (args - 232) * 10 + 8;
696
+ return [c, c, c];
697
+ }
698
+ args -= 16;
699
+ let rem;
700
+ const r = Math.floor(args / 36) / 5 * 255;
701
+ const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
702
+ const b = rem % 6 / 5 * 255;
703
+ return [r, g, b];
704
+ };
705
+ convert.rgb.hex = function(args) {
706
+ const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
707
+ const string = integer.toString(16).toUpperCase();
708
+ return "000000".substring(string.length) + string;
709
+ };
710
+ convert.hex.rgb = function(args) {
711
+ const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
712
+ if (!match) {
713
+ return [0, 0, 0];
714
+ }
715
+ let colorString = match[0];
716
+ if (match[0].length === 3) {
717
+ colorString = colorString.split("").map((char) => {
718
+ return char + char;
719
+ }).join("");
720
+ }
721
+ const integer = parseInt(colorString, 16);
722
+ const r = integer >> 16 & 255;
723
+ const g = integer >> 8 & 255;
724
+ const b = integer & 255;
725
+ return [r, g, b];
726
+ };
727
+ convert.rgb.hcg = function(rgb) {
728
+ const r = rgb[0] / 255;
729
+ const g = rgb[1] / 255;
730
+ const b = rgb[2] / 255;
731
+ const max = Math.max(Math.max(r, g), b);
732
+ const min = Math.min(Math.min(r, g), b);
733
+ const chroma = max - min;
734
+ let grayscale;
735
+ let hue;
736
+ if (chroma < 1) {
737
+ grayscale = min / (1 - chroma);
738
+ } else {
739
+ grayscale = 0;
740
+ }
741
+ if (chroma <= 0) {
742
+ hue = 0;
743
+ } else if (max === r) {
744
+ hue = (g - b) / chroma % 6;
745
+ } else if (max === g) {
746
+ hue = 2 + (b - r) / chroma;
747
+ } else {
748
+ hue = 4 + (r - g) / chroma;
749
+ }
750
+ hue /= 6;
751
+ hue %= 1;
752
+ return [hue * 360, chroma * 100, grayscale * 100];
753
+ };
754
+ convert.hsl.hcg = function(hsl) {
755
+ const s = hsl[1] / 100;
756
+ const l = hsl[2] / 100;
757
+ const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
758
+ let f = 0;
759
+ if (c < 1) {
760
+ f = (l - 0.5 * c) / (1 - c);
761
+ }
762
+ return [hsl[0], c * 100, f * 100];
763
+ };
764
+ convert.hsv.hcg = function(hsv) {
765
+ const s = hsv[1] / 100;
766
+ const v = hsv[2] / 100;
767
+ const c = s * v;
768
+ let f = 0;
769
+ if (c < 1) {
770
+ f = (v - c) / (1 - c);
771
+ }
772
+ return [hsv[0], c * 100, f * 100];
773
+ };
774
+ convert.hcg.rgb = function(hcg) {
775
+ const h = hcg[0] / 360;
776
+ const c = hcg[1] / 100;
777
+ const g = hcg[2] / 100;
778
+ if (c === 0) {
779
+ return [g * 255, g * 255, g * 255];
780
+ }
781
+ const pure = [0, 0, 0];
782
+ const hi = h % 1 * 6;
783
+ const v = hi % 1;
784
+ const w = 1 - v;
785
+ let mg = 0;
786
+ switch (Math.floor(hi)) {
787
+ case 0:
788
+ pure[0] = 1;
789
+ pure[1] = v;
790
+ pure[2] = 0;
791
+ break;
792
+ case 1:
793
+ pure[0] = w;
794
+ pure[1] = 1;
795
+ pure[2] = 0;
796
+ break;
797
+ case 2:
798
+ pure[0] = 0;
799
+ pure[1] = 1;
800
+ pure[2] = v;
801
+ break;
802
+ case 3:
803
+ pure[0] = 0;
804
+ pure[1] = w;
805
+ pure[2] = 1;
806
+ break;
807
+ case 4:
808
+ pure[0] = v;
809
+ pure[1] = 0;
810
+ pure[2] = 1;
811
+ break;
812
+ default:
813
+ pure[0] = 1;
814
+ pure[1] = 0;
815
+ pure[2] = w;
816
+ }
817
+ mg = (1 - c) * g;
818
+ return [
819
+ (c * pure[0] + mg) * 255,
820
+ (c * pure[1] + mg) * 255,
821
+ (c * pure[2] + mg) * 255
822
+ ];
823
+ };
824
+ convert.hcg.hsv = function(hcg) {
825
+ const c = hcg[1] / 100;
826
+ const g = hcg[2] / 100;
827
+ const v = c + g * (1 - c);
828
+ let f = 0;
829
+ if (v > 0) {
830
+ f = c / v;
831
+ }
832
+ return [hcg[0], f * 100, v * 100];
833
+ };
834
+ convert.hcg.hsl = function(hcg) {
835
+ const c = hcg[1] / 100;
836
+ const g = hcg[2] / 100;
837
+ const l = g * (1 - c) + 0.5 * c;
838
+ let s = 0;
839
+ if (l > 0 && l < 0.5) {
840
+ s = c / (2 * l);
841
+ } else if (l >= 0.5 && l < 1) {
842
+ s = c / (2 * (1 - l));
843
+ }
844
+ return [hcg[0], s * 100, l * 100];
845
+ };
846
+ convert.hcg.hwb = function(hcg) {
847
+ const c = hcg[1] / 100;
848
+ const g = hcg[2] / 100;
849
+ const v = c + g * (1 - c);
850
+ return [hcg[0], (v - c) * 100, (1 - v) * 100];
851
+ };
852
+ convert.hwb.hcg = function(hwb) {
853
+ const w = hwb[1] / 100;
854
+ const b = hwb[2] / 100;
855
+ const v = 1 - b;
856
+ const c = v - w;
857
+ let g = 0;
858
+ if (c < 1) {
859
+ g = (v - c) / (1 - c);
860
+ }
861
+ return [hwb[0], c * 100, g * 100];
862
+ };
863
+ convert.apple.rgb = function(apple) {
864
+ return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
865
+ };
866
+ convert.rgb.apple = function(rgb) {
867
+ return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
868
+ };
869
+ convert.gray.rgb = function(args) {
870
+ return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
871
+ };
872
+ convert.gray.hsl = function(args) {
873
+ return [0, 0, args[0]];
874
+ };
875
+ convert.gray.hsv = convert.gray.hsl;
876
+ convert.gray.hwb = function(gray) {
877
+ return [0, 100, gray[0]];
878
+ };
879
+ convert.gray.cmyk = function(gray) {
880
+ return [0, 0, 0, gray[0]];
881
+ };
882
+ convert.gray.lab = function(gray) {
883
+ return [gray[0], 0, 0];
884
+ };
885
+ convert.gray.hex = function(gray) {
886
+ const val = Math.round(gray[0] / 100 * 255) & 255;
887
+ const integer = (val << 16) + (val << 8) + val;
888
+ const string = integer.toString(16).toUpperCase();
889
+ return "000000".substring(string.length) + string;
890
+ };
891
+ convert.rgb.gray = function(rgb) {
892
+ const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
893
+ return [val / 255 * 100];
894
+ };
895
+ }
896
+ });
897
+
898
+ // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js
899
+ var require_route = __commonJS({
900
+ "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"(exports, module) {
901
+ init_esm_shims();
902
+ var conversions = require_conversions();
903
+ function buildGraph() {
904
+ const graph = {};
905
+ const models = Object.keys(conversions);
906
+ for (let len = models.length, i = 0; i < len; i++) {
907
+ graph[models[i]] = {
908
+ distance: -1,
909
+ parent: null
910
+ };
911
+ }
912
+ return graph;
913
+ }
914
+ function deriveBFS(fromModel) {
915
+ const graph = buildGraph();
916
+ const queue = [fromModel];
917
+ graph[fromModel].distance = 0;
918
+ while (queue.length) {
919
+ const current = queue.pop();
920
+ const adjacents = Object.keys(conversions[current]);
921
+ for (let len = adjacents.length, i = 0; i < len; i++) {
922
+ const adjacent = adjacents[i];
923
+ const node = graph[adjacent];
924
+ if (node.distance === -1) {
925
+ node.distance = graph[current].distance + 1;
926
+ node.parent = current;
927
+ queue.unshift(adjacent);
928
+ }
929
+ }
930
+ }
931
+ return graph;
932
+ }
933
+ function link(from, to) {
934
+ return function(args) {
935
+ return to(from(args));
936
+ };
937
+ }
938
+ function wrapConversion(toModel, graph) {
939
+ const path3 = [graph[toModel].parent, toModel];
940
+ let fn = conversions[graph[toModel].parent][toModel];
941
+ let cur = graph[toModel].parent;
942
+ while (graph[cur].parent) {
943
+ path3.unshift(graph[cur].parent);
944
+ fn = link(conversions[graph[cur].parent][cur], fn);
945
+ cur = graph[cur].parent;
946
+ }
947
+ fn.conversion = path3;
948
+ return fn;
949
+ }
950
+ module.exports = function(fromModel) {
951
+ const graph = deriveBFS(fromModel);
952
+ const conversion = {};
953
+ const models = Object.keys(graph);
954
+ for (let len = models.length, i = 0; i < len; i++) {
955
+ const toModel = models[i];
956
+ const node = graph[toModel];
957
+ if (node.parent === null) {
958
+ continue;
959
+ }
960
+ conversion[toModel] = wrapConversion(toModel, graph);
961
+ }
962
+ return conversion;
963
+ };
964
+ }
965
+ });
966
+
967
+ // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js
968
+ var require_color_convert = __commonJS({
969
+ "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"(exports, module) {
970
+ init_esm_shims();
971
+ var conversions = require_conversions();
972
+ var route = require_route();
973
+ var convert = {};
974
+ var models = Object.keys(conversions);
975
+ function wrapRaw(fn) {
976
+ const wrappedFn = function(...args) {
977
+ const arg0 = args[0];
978
+ if (arg0 === void 0 || arg0 === null) {
979
+ return arg0;
980
+ }
981
+ if (arg0.length > 1) {
982
+ args = arg0;
983
+ }
984
+ return fn(args);
985
+ };
986
+ if ("conversion" in fn) {
987
+ wrappedFn.conversion = fn.conversion;
988
+ }
989
+ return wrappedFn;
990
+ }
991
+ function wrapRounded(fn) {
992
+ const wrappedFn = function(...args) {
993
+ const arg0 = args[0];
994
+ if (arg0 === void 0 || arg0 === null) {
995
+ return arg0;
996
+ }
997
+ if (arg0.length > 1) {
998
+ args = arg0;
999
+ }
1000
+ const result = fn(args);
1001
+ if (typeof result === "object") {
1002
+ for (let len = result.length, i = 0; i < len; i++) {
1003
+ result[i] = Math.round(result[i]);
1004
+ }
1005
+ }
1006
+ return result;
1007
+ };
1008
+ if ("conversion" in fn) {
1009
+ wrappedFn.conversion = fn.conversion;
1010
+ }
1011
+ return wrappedFn;
1012
+ }
1013
+ models.forEach((fromModel) => {
1014
+ convert[fromModel] = {};
1015
+ Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
1016
+ Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
1017
+ const routes = route(fromModel);
1018
+ const routeModels = Object.keys(routes);
1019
+ routeModels.forEach((toModel) => {
1020
+ const fn = routes[toModel];
1021
+ convert[fromModel][toModel] = wrapRounded(fn);
1022
+ convert[fromModel][toModel].raw = wrapRaw(fn);
1023
+ });
1024
+ });
1025
+ module.exports = convert;
1026
+ }
1027
+ });
1028
+
1029
+ // node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js
1030
+ var require_ansi_styles = __commonJS({
1031
+ "node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports, module) {
1032
+ "use strict";
1033
+ init_esm_shims();
1034
+ var wrapAnsi16 = (fn, offset) => (...args) => {
1035
+ const code = fn(...args);
1036
+ return `[${code + offset}m`;
1037
+ };
1038
+ var wrapAnsi256 = (fn, offset) => (...args) => {
1039
+ const code = fn(...args);
1040
+ return `[${38 + offset};5;${code}m`;
1041
+ };
1042
+ var wrapAnsi16m = (fn, offset) => (...args) => {
1043
+ const rgb = fn(...args);
1044
+ return `[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
1045
+ };
1046
+ var ansi2ansi = (n) => n;
1047
+ var rgb2rgb = (r, g, b) => [r, g, b];
1048
+ var setLazyProperty = (object, property, get) => {
1049
+ Object.defineProperty(object, property, {
1050
+ get: () => {
1051
+ const value = get();
1052
+ Object.defineProperty(object, property, {
1053
+ value,
1054
+ enumerable: true,
1055
+ configurable: true
1056
+ });
1057
+ return value;
1058
+ },
1059
+ enumerable: true,
1060
+ configurable: true
1061
+ });
1062
+ };
1063
+ var colorConvert;
1064
+ var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
1065
+ if (colorConvert === void 0) {
1066
+ colorConvert = require_color_convert();
1067
+ }
1068
+ const offset = isBackground ? 10 : 0;
1069
+ const styles = {};
1070
+ for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
1071
+ const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
1072
+ if (sourceSpace === targetSpace) {
1073
+ styles[name] = wrap(identity, offset);
1074
+ } else if (typeof suite === "object") {
1075
+ styles[name] = wrap(suite[targetSpace], offset);
1076
+ }
1077
+ }
1078
+ return styles;
1079
+ };
1080
+ function assembleStyles() {
1081
+ const codes = /* @__PURE__ */ new Map();
1082
+ const styles = {
1083
+ modifier: {
1084
+ reset: [0, 0],
1085
+ bold: [1, 22],
1086
+ dim: [2, 22],
1087
+ italic: [3, 23],
1088
+ underline: [4, 24],
1089
+ inverse: [7, 27],
1090
+ hidden: [8, 28],
1091
+ strikethrough: [9, 29]
1092
+ },
1093
+ color: {
1094
+ black: [30, 39],
1095
+ red: [31, 39],
1096
+ green: [32, 39],
1097
+ yellow: [33, 39],
1098
+ blue: [34, 39],
1099
+ magenta: [35, 39],
1100
+ cyan: [36, 39],
1101
+ white: [37, 39],
1102
+ blackBright: [90, 39],
1103
+ redBright: [91, 39],
1104
+ greenBright: [92, 39],
1105
+ yellowBright: [93, 39],
1106
+ blueBright: [94, 39],
1107
+ magentaBright: [95, 39],
1108
+ cyanBright: [96, 39],
1109
+ whiteBright: [97, 39]
1110
+ },
1111
+ bgColor: {
1112
+ bgBlack: [40, 49],
1113
+ bgRed: [41, 49],
1114
+ bgGreen: [42, 49],
1115
+ bgYellow: [43, 49],
1116
+ bgBlue: [44, 49],
1117
+ bgMagenta: [45, 49],
1118
+ bgCyan: [46, 49],
1119
+ bgWhite: [47, 49],
1120
+ bgBlackBright: [100, 49],
1121
+ bgRedBright: [101, 49],
1122
+ bgGreenBright: [102, 49],
1123
+ bgYellowBright: [103, 49],
1124
+ bgBlueBright: [104, 49],
1125
+ bgMagentaBright: [105, 49],
1126
+ bgCyanBright: [106, 49],
1127
+ bgWhiteBright: [107, 49]
1128
+ }
1129
+ };
1130
+ styles.color.gray = styles.color.blackBright;
1131
+ styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
1132
+ styles.color.grey = styles.color.blackBright;
1133
+ styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
1134
+ for (const [groupName, group] of Object.entries(styles)) {
1135
+ for (const [styleName, style] of Object.entries(group)) {
1136
+ styles[styleName] = {
1137
+ open: `[${style[0]}m`,
1138
+ close: `[${style[1]}m`
1139
+ };
1140
+ group[styleName] = styles[styleName];
1141
+ codes.set(style[0], style[1]);
1142
+ }
1143
+ Object.defineProperty(styles, groupName, {
1144
+ value: group,
1145
+ enumerable: false
1146
+ });
1147
+ }
1148
+ Object.defineProperty(styles, "codes", {
1149
+ value: codes,
1150
+ enumerable: false
1151
+ });
1152
+ styles.color.close = "";
1153
+ styles.bgColor.close = "";
1154
+ setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
1155
+ setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
1156
+ setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
1157
+ setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
1158
+ setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
1159
+ setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
1160
+ return styles;
1161
+ }
1162
+ Object.defineProperty(module, "exports", {
1163
+ enumerable: true,
1164
+ get: assembleStyles
1165
+ });
1166
+ }
1167
+ });
1168
+
1169
+ // node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
1170
+ var require_has_flag = __commonJS({
1171
+ "node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
1172
+ "use strict";
1173
+ init_esm_shims();
1174
+ module.exports = (flag, argv = process.argv) => {
1175
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
1176
+ const position = argv.indexOf(prefix + flag);
1177
+ const terminatorPosition = argv.indexOf("--");
1178
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
1179
+ };
1180
+ }
1181
+ });
1182
+
1183
+ // node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
1184
+ var require_supports_color = __commonJS({
1185
+ "node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module) {
1186
+ "use strict";
1187
+ init_esm_shims();
1188
+ var os = __require("os");
1189
+ var tty = __require("tty");
1190
+ var hasFlag = require_has_flag();
1191
+ var { env } = process;
1192
+ var forceColor;
1193
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
1194
+ forceColor = 0;
1195
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
1196
+ forceColor = 1;
1197
+ }
1198
+ if ("FORCE_COLOR" in env) {
1199
+ if (env.FORCE_COLOR === "true") {
1200
+ forceColor = 1;
1201
+ } else if (env.FORCE_COLOR === "false") {
1202
+ forceColor = 0;
1203
+ } else {
1204
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
1205
+ }
1206
+ }
1207
+ function translateLevel(level) {
1208
+ if (level === 0) {
1209
+ return false;
1210
+ }
1211
+ return {
1212
+ level,
1213
+ hasBasic: true,
1214
+ has256: level >= 2,
1215
+ has16m: level >= 3
1216
+ };
1217
+ }
1218
+ function supportsColor(haveStream, streamIsTTY) {
1219
+ if (forceColor === 0) {
1220
+ return 0;
1221
+ }
1222
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
1223
+ return 3;
1224
+ }
1225
+ if (hasFlag("color=256")) {
1226
+ return 2;
1227
+ }
1228
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
1229
+ return 0;
1230
+ }
1231
+ const min = forceColor || 0;
1232
+ if (env.TERM === "dumb") {
1233
+ return min;
1234
+ }
1235
+ if (process.platform === "win32") {
1236
+ const osRelease = os.release().split(".");
1237
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1238
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
1239
+ }
1240
+ return 1;
1241
+ }
1242
+ if ("CI" in env) {
1243
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
1244
+ return 1;
1245
+ }
1246
+ return min;
1247
+ }
1248
+ if ("TEAMCITY_VERSION" in env) {
1249
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
1250
+ }
1251
+ if (env.COLORTERM === "truecolor") {
1252
+ return 3;
1253
+ }
1254
+ if ("TERM_PROGRAM" in env) {
1255
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1256
+ switch (env.TERM_PROGRAM) {
1257
+ case "iTerm.app":
1258
+ return version >= 3 ? 3 : 2;
1259
+ case "Apple_Terminal":
1260
+ return 2;
1261
+ }
1262
+ }
1263
+ if (/-256(color)?$/i.test(env.TERM)) {
1264
+ return 2;
1265
+ }
1266
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
1267
+ return 1;
1268
+ }
1269
+ if ("COLORTERM" in env) {
1270
+ return 1;
1271
+ }
1272
+ return min;
1273
+ }
1274
+ function getSupportLevel(stream) {
1275
+ const level = supportsColor(stream, stream && stream.isTTY);
1276
+ return translateLevel(level);
1277
+ }
1278
+ module.exports = {
1279
+ supportsColor: getSupportLevel,
1280
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
1281
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
1282
+ };
1283
+ }
1284
+ });
1285
+
1286
+ // node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
1287
+ var require_util = __commonJS({
1288
+ "node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module) {
1289
+ "use strict";
1290
+ init_esm_shims();
1291
+ var stringReplaceAll = (string, substring, replacer) => {
1292
+ let index = string.indexOf(substring);
1293
+ if (index === -1) {
1294
+ return string;
1295
+ }
1296
+ const substringLength = substring.length;
1297
+ let endIndex = 0;
1298
+ let returnValue = "";
1299
+ do {
1300
+ returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
1301
+ endIndex = index + substringLength;
1302
+ index = string.indexOf(substring, endIndex);
1303
+ } while (index !== -1);
1304
+ returnValue += string.substr(endIndex);
1305
+ return returnValue;
1306
+ };
1307
+ var stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
1308
+ let endIndex = 0;
1309
+ let returnValue = "";
1310
+ do {
1311
+ const gotCR = string[index - 1] === "\r";
1312
+ returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
1313
+ endIndex = index + 1;
1314
+ index = string.indexOf("\n", endIndex);
1315
+ } while (index !== -1);
1316
+ returnValue += string.substr(endIndex);
1317
+ return returnValue;
1318
+ };
1319
+ module.exports = {
1320
+ stringReplaceAll,
1321
+ stringEncaseCRLFWithFirstIndex
1322
+ };
1323
+ }
1324
+ });
1325
+
1326
+ // node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js
1327
+ var require_templates = __commonJS({
1328
+ "node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js"(exports, module) {
1329
+ "use strict";
1330
+ init_esm_shims();
1331
+ var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
1332
+ var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
1333
+ var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
1334
+ var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
1335
+ var ESCAPES = /* @__PURE__ */ new Map([
1336
+ ["n", "\n"],
1337
+ ["r", "\r"],
1338
+ ["t", " "],
1339
+ ["b", "\b"],
1340
+ ["f", "\f"],
1341
+ ["v", "\v"],
1342
+ ["0", "\0"],
1343
+ ["\\", "\\"],
1344
+ ["e", ""],
1345
+ ["a", "\x07"]
1346
+ ]);
1347
+ function unescape(c) {
1348
+ const u = c[0] === "u";
1349
+ const bracket = c[1] === "{";
1350
+ if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
1351
+ return String.fromCharCode(parseInt(c.slice(1), 16));
1352
+ }
1353
+ if (u && bracket) {
1354
+ return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
1355
+ }
1356
+ return ESCAPES.get(c) || c;
1357
+ }
1358
+ function parseArguments(name, arguments_) {
1359
+ const results = [];
1360
+ const chunks = arguments_.trim().split(/\s*,\s*/g);
1361
+ let matches;
1362
+ for (const chunk of chunks) {
1363
+ const number = Number(chunk);
1364
+ if (!Number.isNaN(number)) {
1365
+ results.push(number);
1366
+ } else if (matches = chunk.match(STRING_REGEX)) {
1367
+ results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
1368
+ } else {
1369
+ throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
1370
+ }
1371
+ }
1372
+ return results;
1373
+ }
1374
+ function parseStyle(style) {
1375
+ STYLE_REGEX.lastIndex = 0;
1376
+ const results = [];
1377
+ let matches;
1378
+ while ((matches = STYLE_REGEX.exec(style)) !== null) {
1379
+ const name = matches[1];
1380
+ if (matches[2]) {
1381
+ const args = parseArguments(name, matches[2]);
1382
+ results.push([name].concat(args));
1383
+ } else {
1384
+ results.push([name]);
1385
+ }
1386
+ }
1387
+ return results;
1388
+ }
1389
+ function buildStyle(chalk, styles) {
1390
+ const enabled = {};
1391
+ for (const layer of styles) {
1392
+ for (const style of layer.styles) {
1393
+ enabled[style[0]] = layer.inverse ? null : style.slice(1);
1394
+ }
1395
+ }
1396
+ let current = chalk;
1397
+ for (const [styleName, styles2] of Object.entries(enabled)) {
1398
+ if (!Array.isArray(styles2)) {
1399
+ continue;
1400
+ }
1401
+ if (!(styleName in current)) {
1402
+ throw new Error(`Unknown Chalk style: ${styleName}`);
1403
+ }
1404
+ current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
1405
+ }
1406
+ return current;
1407
+ }
1408
+ module.exports = (chalk, temporary) => {
1409
+ const styles = [];
1410
+ const chunks = [];
1411
+ let chunk = [];
1412
+ temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
1413
+ if (escapeCharacter) {
1414
+ chunk.push(unescape(escapeCharacter));
1415
+ } else if (style) {
1416
+ const string = chunk.join("");
1417
+ chunk = [];
1418
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
1419
+ styles.push({ inverse, styles: parseStyle(style) });
1420
+ } else if (close) {
1421
+ if (styles.length === 0) {
1422
+ throw new Error("Found extraneous } in Chalk template literal");
1423
+ }
1424
+ chunks.push(buildStyle(chalk, styles)(chunk.join("")));
1425
+ chunk = [];
1426
+ styles.pop();
1427
+ } else {
1428
+ chunk.push(character);
1429
+ }
1430
+ });
1431
+ chunks.push(chunk.join(""));
1432
+ if (styles.length > 0) {
1433
+ const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
1434
+ throw new Error(errMessage);
1435
+ }
1436
+ return chunks.join("");
1437
+ };
1438
+ }
1439
+ });
1440
+
1441
+ // node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js
1442
+ var require_source = __commonJS({
1443
+ "node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module) {
1444
+ "use strict";
1445
+ init_esm_shims();
1446
+ var ansiStyles = require_ansi_styles();
1447
+ var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
1448
+ var {
1449
+ stringReplaceAll,
1450
+ stringEncaseCRLFWithFirstIndex
1451
+ } = require_util();
1452
+ var { isArray } = Array;
1453
+ var levelMapping = [
1454
+ "ansi",
1455
+ "ansi",
1456
+ "ansi256",
1457
+ "ansi16m"
1458
+ ];
1459
+ var styles = Object.create(null);
1460
+ var applyOptions = (object, options = {}) => {
1461
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
1462
+ throw new Error("The `level` option should be an integer from 0 to 3");
1463
+ }
1464
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
1465
+ object.level = options.level === void 0 ? colorLevel : options.level;
1466
+ };
1467
+ var ChalkClass = class {
1468
+ constructor(options) {
1469
+ return chalkFactory(options);
1470
+ }
1471
+ };
1472
+ var chalkFactory = (options) => {
1473
+ const chalk2 = {};
1474
+ applyOptions(chalk2, options);
1475
+ chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
1476
+ Object.setPrototypeOf(chalk2, Chalk.prototype);
1477
+ Object.setPrototypeOf(chalk2.template, chalk2);
1478
+ chalk2.template.constructor = () => {
1479
+ throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
1480
+ };
1481
+ chalk2.template.Instance = ChalkClass;
1482
+ return chalk2.template;
1483
+ };
1484
+ function Chalk(options) {
1485
+ return chalkFactory(options);
1486
+ }
1487
+ for (const [styleName, style] of Object.entries(ansiStyles)) {
1488
+ styles[styleName] = {
1489
+ get() {
1490
+ const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
1491
+ Object.defineProperty(this, styleName, { value: builder });
1492
+ return builder;
1493
+ }
1494
+ };
1495
+ }
1496
+ styles.visible = {
1497
+ get() {
1498
+ const builder = createBuilder(this, this._styler, true);
1499
+ Object.defineProperty(this, "visible", { value: builder });
1500
+ return builder;
1501
+ }
1502
+ };
1503
+ var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
1504
+ for (const model of usedModels) {
1505
+ styles[model] = {
1506
+ get() {
1507
+ const { level } = this;
1508
+ return function(...arguments_) {
1509
+ const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
1510
+ return createBuilder(this, styler, this._isEmpty);
1511
+ };
1512
+ }
1513
+ };
1514
+ }
1515
+ for (const model of usedModels) {
1516
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1517
+ styles[bgModel] = {
1518
+ get() {
1519
+ const { level } = this;
1520
+ return function(...arguments_) {
1521
+ const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
1522
+ return createBuilder(this, styler, this._isEmpty);
1523
+ };
1524
+ }
1525
+ };
1526
+ }
1527
+ var proto = Object.defineProperties(() => {
1528
+ }, __spreadProps(__spreadValues({}, styles), {
1529
+ level: {
1530
+ enumerable: true,
1531
+ get() {
1532
+ return this._generator.level;
1533
+ },
1534
+ set(level) {
1535
+ this._generator.level = level;
1536
+ }
1537
+ }
1538
+ }));
1539
+ var createStyler = (open, close, parent) => {
1540
+ let openAll;
1541
+ let closeAll;
1542
+ if (parent === void 0) {
1543
+ openAll = open;
1544
+ closeAll = close;
1545
+ } else {
1546
+ openAll = parent.openAll + open;
1547
+ closeAll = close + parent.closeAll;
1548
+ }
1549
+ return {
1550
+ open,
1551
+ close,
1552
+ openAll,
1553
+ closeAll,
1554
+ parent
1555
+ };
1556
+ };
1557
+ var createBuilder = (self, _styler, _isEmpty) => {
1558
+ const builder = (...arguments_) => {
1559
+ if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
1560
+ return applyStyle(builder, chalkTag(builder, ...arguments_));
1561
+ }
1562
+ return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1563
+ };
1564
+ Object.setPrototypeOf(builder, proto);
1565
+ builder._generator = self;
1566
+ builder._styler = _styler;
1567
+ builder._isEmpty = _isEmpty;
1568
+ return builder;
1569
+ };
1570
+ var applyStyle = (self, string) => {
1571
+ if (self.level <= 0 || !string) {
1572
+ return self._isEmpty ? "" : string;
1573
+ }
1574
+ let styler = self._styler;
1575
+ if (styler === void 0) {
1576
+ return string;
1577
+ }
1578
+ const { openAll, closeAll } = styler;
1579
+ if (string.indexOf("") !== -1) {
1580
+ while (styler !== void 0) {
1581
+ string = stringReplaceAll(string, styler.close, styler.open);
1582
+ styler = styler.parent;
1583
+ }
1584
+ }
1585
+ const lfIndex = string.indexOf("\n");
1586
+ if (lfIndex !== -1) {
1587
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
1588
+ }
1589
+ return openAll + string + closeAll;
1590
+ };
1591
+ var template;
1592
+ var chalkTag = (chalk2, ...strings) => {
1593
+ const [firstString] = strings;
1594
+ if (!isArray(firstString) || !isArray(firstString.raw)) {
1595
+ return strings.join(" ");
1596
+ }
1597
+ const arguments_ = strings.slice(1);
1598
+ const parts = [firstString.raw[0]];
1599
+ for (let i = 1; i < firstString.length; i++) {
1600
+ parts.push(String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"), String(firstString.raw[i]));
1601
+ }
1602
+ if (template === void 0) {
1603
+ template = require_templates();
1604
+ }
1605
+ return template(chalk2, parts.join(""));
1606
+ };
1607
+ Object.defineProperties(Chalk.prototype, styles);
1608
+ var chalk = Chalk();
1609
+ chalk.supportsColor = stdoutColor;
1610
+ chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
1611
+ chalk.stderr.supportsColor = stderrColor;
1612
+ module.exports = chalk;
1613
+ }
1614
+ });
1615
+
1616
+ // node_modules/.pnpm/is-unicode-supported@0.1.0/node_modules/is-unicode-supported/index.js
1617
+ var require_is_unicode_supported = __commonJS({
1618
+ "node_modules/.pnpm/is-unicode-supported@0.1.0/node_modules/is-unicode-supported/index.js"(exports, module) {
1619
+ "use strict";
1620
+ init_esm_shims();
1621
+ module.exports = () => {
1622
+ if (process.platform !== "win32") {
1623
+ return true;
1624
+ }
1625
+ return Boolean(process.env.CI) || Boolean(process.env.WT_SESSION) || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty";
1626
+ };
1627
+ }
1628
+ });
1629
+
1630
+ // node_modules/.pnpm/log-symbols@4.1.0/node_modules/log-symbols/index.js
1631
+ var require_log_symbols = __commonJS({
1632
+ "node_modules/.pnpm/log-symbols@4.1.0/node_modules/log-symbols/index.js"(exports, module) {
1633
+ "use strict";
1634
+ init_esm_shims();
1635
+ var chalk = require_source();
1636
+ var isUnicodeSupported = require_is_unicode_supported();
1637
+ var main = {
1638
+ info: chalk.blue("\u2139"),
1639
+ success: chalk.green("\u2714"),
1640
+ warning: chalk.yellow("\u26A0"),
1641
+ error: chalk.red("\u2716")
1642
+ };
1643
+ var fallback = {
1644
+ info: chalk.blue("i"),
1645
+ success: chalk.green("\u221A"),
1646
+ warning: chalk.yellow("\u203C"),
1647
+ error: chalk.red("\xD7")
1648
+ };
1649
+ module.exports = isUnicodeSupported() ? main : fallback;
1650
+ }
1651
+ });
1652
+
1653
+ // node_modules/.pnpm/detect-newline@3.1.0/node_modules/detect-newline/index.js
1654
+ var require_detect_newline = __commonJS({
1655
+ "node_modules/.pnpm/detect-newline@3.1.0/node_modules/detect-newline/index.js"(exports, module) {
1656
+ "use strict";
1657
+ init_esm_shims();
1658
+ var detectNewline2 = (string) => {
1659
+ if (typeof string !== "string") {
1660
+ throw new TypeError("Expected a string");
1661
+ }
1662
+ const newlines = string.match(/(?:\r?\n)/g) || [];
1663
+ if (newlines.length === 0) {
1664
+ return;
1665
+ }
1666
+ const crlf = newlines.filter((newline) => newline === "\r\n").length;
1667
+ const lf = newlines.length - crlf;
1668
+ return crlf > lf ? "\r\n" : "\n";
1669
+ };
1670
+ module.exports = detectNewline2;
1671
+ module.exports.graceful = (string) => typeof string === "string" && detectNewline2(string) || "\n";
1672
+ }
1673
+ });
1674
+
1675
+ // src/release-type.ts
1676
+ init_esm_shims();
1677
+ import { ReleaseType } from "semver";
1678
+ var prereleaseTypes = ["premajor", "preminor", "prepatch", "prerelease"];
1679
+ var releaseTypes = prereleaseTypes.concat(["major", "minor", "patch"]);
1680
+ function isPrerelease(value) {
1681
+ return prereleaseTypes.includes(value);
1682
+ }
1683
+ function isReleaseType(value) {
1684
+ return releaseTypes.includes(value);
1685
+ }
1686
+
1687
+ // src/types/version-bump-progress.ts
1688
+ init_esm_shims();
1689
+ var ProgressEvent = /* @__PURE__ */ ((ProgressEvent2) => {
1690
+ ProgressEvent2["FileUpdated"] = "file updated";
1691
+ ProgressEvent2["FileSkipped"] = "file skipped";
1692
+ ProgressEvent2["GitCommit"] = "git commit";
1693
+ ProgressEvent2["GitTag"] = "git tag";
1694
+ ProgressEvent2["GitPush"] = "git push";
1695
+ ProgressEvent2["NpmScript"] = "npm script";
1696
+ return ProgressEvent2;
1697
+ })(ProgressEvent || {});
1698
+ var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
1699
+ NpmScript2["PreVersion"] = "preversion";
1700
+ NpmScript2["Version"] = "version";
1701
+ NpmScript2["PostVersion"] = "postversion";
1702
+ return NpmScript2;
1703
+ })(NpmScript || {});
1704
+
1705
+ // src/version-bump.ts
1706
+ init_esm_shims();
1707
+ var import_log_symbols = __toESM(require_log_symbols());
1708
+ import * as ezSpawn3 from "@jsdevtools/ez-spawn";
1709
+ import { bold as bold2, cyan, green as green2 } from "kleur";
1710
+ import prompts2 from "prompts";
1711
+
1712
+ // src/get-new-version.ts
1713
+ init_esm_shims();
1714
+ import { bold, green } from "kleur";
1715
+ import prompts from "prompts";
1716
+ import semver, { SemVer, clean as cleanVersion, valid as isValidVersion } from "semver";
1717
+ async function getNewVersion(operation) {
1718
+ const { release } = operation.options;
1719
+ const { oldVersion } = operation.state;
1720
+ switch (release.type) {
1721
+ case "prompt":
1722
+ return promptForNewVersion(operation);
1723
+ case "version":
1724
+ return operation.update({
1725
+ newVersion: new SemVer(release.version, true).version
1726
+ });
1727
+ default:
1728
+ return operation.update({
1729
+ release: release.type,
1730
+ newVersion: getNextVersion(oldVersion, release)
1731
+ });
1732
+ }
1733
+ }
1734
+ function getNextVersion(oldVersion, bump) {
1735
+ const oldSemVer = new SemVer(oldVersion);
1736
+ const newSemVer = oldSemVer.inc(bump.type, bump.preid);
1737
+ if (isPrerelease(bump.type) && newSemVer.prerelease.length === 2 && newSemVer.prerelease[0] === bump.preid && String(newSemVer.prerelease[1]) === "0") {
1738
+ newSemVer.prerelease[1] = "1";
1739
+ newSemVer.format();
1740
+ }
1741
+ return newSemVer.version;
1742
+ }
1743
+ function getNextVersions(oldVersion, preid) {
1744
+ var _a;
1745
+ const next = {};
1746
+ const parse = semver.parse(oldVersion);
1747
+ if (typeof (parse == null ? void 0 : parse.prerelease[0]) === "string")
1748
+ preid = (parse == null ? void 0 : parse.prerelease[0]) || "preid";
1749
+ for (const type of releaseTypes)
1750
+ next[type] = semver.inc(oldVersion, type, preid);
1751
+ next.next = ((_a = parse == null ? void 0 : parse.prerelease) == null ? void 0 : _a.length) ? semver.inc(oldVersion, "prerelease", preid) : semver.inc(oldVersion, "patch");
1752
+ return next;
1753
+ }
1754
+ async function promptForNewVersion(operation) {
1755
+ const { oldVersion } = operation.state;
1756
+ const release = operation.options.release;
1757
+ const next = getNextVersions(oldVersion, release.preid);
1758
+ const PADDING = 13;
1759
+ const answers = await prompts([
1760
+ {
1761
+ type: "autocomplete",
1762
+ name: "release",
1763
+ message: `Current version ${green(oldVersion)}`,
1764
+ initial: "next",
1765
+ choices: [
1766
+ { value: "major", title: `${"major".padStart(PADDING, " ")} ${bold(next.major)}` },
1767
+ { value: "minor", title: `${"minor".padStart(PADDING, " ")} ${bold(next.minor)}` },
1768
+ { value: "patch", title: `${"patch".padStart(PADDING, " ")} ${bold(next.patch)}` },
1769
+ { value: "next", title: `${"next".padStart(PADDING, " ")} ${bold(next.next)}` },
1770
+ { value: "prepatch", title: `${"pre-patch".padStart(PADDING, " ")} ${bold(next.prepatch)}` },
1771
+ { value: "preminor", title: `${"pre-minor".padStart(PADDING, " ")} ${bold(next.preminor)}` },
1772
+ { value: "premajor", title: `${"pre-major".padStart(PADDING, " ")} ${bold(next.premajor)}` },
1773
+ { value: "none", title: `${"as-is".padStart(PADDING, " ")} ${bold(oldVersion)}` },
1774
+ { value: "custom", title: "custom ...".padStart(PADDING + 4, " ") }
1775
+ ]
1776
+ },
1777
+ {
1778
+ type: (prev) => prev === "custom" ? "text" : null,
1779
+ name: "custom",
1780
+ message: "Enter the new version number:",
1781
+ initial: oldVersion,
1782
+ validate: (custom) => {
1783
+ return isValidVersion(custom) ? true : "That's not a valid version number";
1784
+ }
1785
+ }
1786
+ ]);
1787
+ const newVersion = answers.release === "none" ? oldVersion : answers.release === "custom" ? cleanVersion(answers.custom) : next[answers.release];
1788
+ if (!newVersion)
1789
+ process.exit(1);
1790
+ switch (answers.release) {
1791
+ case "custom":
1792
+ case "next":
1793
+ case "none":
1794
+ return operation.update({ newVersion });
1795
+ default:
1796
+ return operation.update({ release: answers.release, newVersion });
1797
+ }
1798
+ }
1799
+
1800
+ // src/get-old-version.ts
1801
+ init_esm_shims();
1802
+ import { valid as isValidVersion2 } from "semver";
1803
+
1804
+ // src/fs.ts
1805
+ init_esm_shims();
1806
+ import fs from "fs";
1807
+ import path from "path";
1808
+
1809
+ // node_modules/.pnpm/detect-indent@7.0.0/node_modules/detect-indent/index.js
1810
+ init_esm_shims();
1811
+ var INDENT_REGEX = /^(?:( )+|\t+)/;
1812
+ var INDENT_TYPE_SPACE = "space";
1813
+ var INDENT_TYPE_TAB = "tab";
1814
+ function makeIndentsMap(string, ignoreSingleSpaces) {
1815
+ const indents = /* @__PURE__ */ new Map();
1816
+ let previousSize = 0;
1817
+ let previousIndentType;
1818
+ let key;
1819
+ for (const line of string.split(/\n/g)) {
1820
+ if (!line) {
1821
+ continue;
1822
+ }
1823
+ let indent;
1824
+ let indentType;
1825
+ let weight;
1826
+ let entry;
1827
+ const matches = line.match(INDENT_REGEX);
1828
+ if (matches === null) {
1829
+ previousSize = 0;
1830
+ previousIndentType = "";
1831
+ } else {
1832
+ indent = matches[0].length;
1833
+ indentType = matches[1] ? INDENT_TYPE_SPACE : INDENT_TYPE_TAB;
1834
+ if (ignoreSingleSpaces && indentType === INDENT_TYPE_SPACE && indent === 1) {
1835
+ continue;
1836
+ }
1837
+ if (indentType !== previousIndentType) {
1838
+ previousSize = 0;
1839
+ }
1840
+ previousIndentType = indentType;
1841
+ weight = 0;
1842
+ const indentDifference = indent - previousSize;
1843
+ previousSize = indent;
1844
+ if (indentDifference === 0) {
1845
+ weight++;
1846
+ } else {
1847
+ const absoluteIndentDifference = indentDifference > 0 ? indentDifference : -indentDifference;
1848
+ key = encodeIndentsKey(indentType, absoluteIndentDifference);
1849
+ }
1850
+ entry = indents.get(key);
1851
+ entry = entry === void 0 ? [1, 0] : [++entry[0], entry[1] + weight];
1852
+ indents.set(key, entry);
1853
+ }
1854
+ }
1855
+ return indents;
1856
+ }
1857
+ function encodeIndentsKey(indentType, indentAmount) {
1858
+ const typeCharacter = indentType === INDENT_TYPE_SPACE ? "s" : "t";
1859
+ return typeCharacter + String(indentAmount);
1860
+ }
1861
+ function decodeIndentsKey(indentsKey) {
1862
+ const keyHasTypeSpace = indentsKey[0] === "s";
1863
+ const type = keyHasTypeSpace ? INDENT_TYPE_SPACE : INDENT_TYPE_TAB;
1864
+ const amount = Number(indentsKey.slice(1));
1865
+ return { type, amount };
1866
+ }
1867
+ function getMostUsedKey(indents) {
1868
+ let result;
1869
+ let maxUsed = 0;
1870
+ let maxWeight = 0;
1871
+ for (const [key, [usedCount, weight]] of indents) {
1872
+ if (usedCount > maxUsed || usedCount === maxUsed && weight > maxWeight) {
1873
+ maxUsed = usedCount;
1874
+ maxWeight = weight;
1875
+ result = key;
1876
+ }
1877
+ }
1878
+ return result;
1879
+ }
1880
+ function makeIndentString(type, amount) {
1881
+ const indentCharacter = type === INDENT_TYPE_SPACE ? " " : " ";
1882
+ return indentCharacter.repeat(amount);
1883
+ }
1884
+ function detectIndent(string) {
1885
+ if (typeof string !== "string") {
1886
+ throw new TypeError("Expected a string");
1887
+ }
1888
+ let indents = makeIndentsMap(string, true);
1889
+ if (indents.size === 0) {
1890
+ indents = makeIndentsMap(string, false);
1891
+ }
1892
+ const keyOfMostUsedIndent = getMostUsedKey(indents);
1893
+ let type;
1894
+ let amount = 0;
1895
+ let indent = "";
1896
+ if (keyOfMostUsedIndent !== void 0) {
1897
+ ({ type, amount } = decodeIndentsKey(keyOfMostUsedIndent));
1898
+ indent = makeIndentString(type, amount);
1899
+ }
1900
+ return {
1901
+ amount,
1902
+ type,
1903
+ indent
1904
+ };
1905
+ }
1906
+
1907
+ // src/fs.ts
1908
+ var import_detect_newline = __toESM(require_detect_newline());
1909
+ async function readJsonFile(name, cwd) {
1910
+ const file = await readTextFile(name, cwd);
1911
+ const data = JSON.parse(file.data);
1912
+ const indent = detectIndent(file.data).indent;
1913
+ const newline = (0, import_detect_newline.default)(file.data);
1914
+ return __spreadProps(__spreadValues({}, file), { data, indent, newline });
1915
+ }
1916
+ async function writeJsonFile(file) {
1917
+ let json = JSON.stringify(file.data, void 0, file.indent);
1918
+ if (file.newline)
1919
+ json += file.newline;
1920
+ return writeTextFile(__spreadProps(__spreadValues({}, file), { data: json }));
1921
+ }
1922
+ function readTextFile(name, cwd) {
1923
+ return new Promise((resolve, reject) => {
1924
+ const filePath = path.join(cwd, name);
1925
+ fs.readFile(filePath, "utf8", (err, text) => {
1926
+ if (err) {
1927
+ reject(err);
1928
+ } else {
1929
+ resolve({
1930
+ path: filePath,
1931
+ data: text
1932
+ });
1933
+ }
1934
+ });
1935
+ });
1936
+ }
1937
+ function writeTextFile(file) {
1938
+ return new Promise((resolve, reject) => {
1939
+ fs.writeFile(file.path, file.data, (err) => {
1940
+ if (err)
1941
+ reject(err);
1942
+ else
1943
+ resolve();
1944
+ });
1945
+ });
1946
+ }
1947
+
1948
+ // src/manifest.ts
1949
+ init_esm_shims();
1950
+ function isManifest(obj) {
1951
+ return obj && typeof obj === "object" && isOptionalString(obj.name) && isOptionalString(obj.version) && isOptionalString(obj.description);
1952
+ }
1953
+ function isOptionalString(value) {
1954
+ const type = typeof value;
1955
+ return value === null || type === "undefined" || type === "string";
1956
+ }
1957
+
1958
+ // src/get-old-version.ts
1959
+ async function getOldVersion(operation) {
1960
+ const { cwd, files } = operation.options;
1961
+ const filesToCheck = files.filter((file) => file.endsWith(".json"));
1962
+ if (!filesToCheck.includes("package.json"))
1963
+ filesToCheck.push("package.json");
1964
+ for (const file of filesToCheck) {
1965
+ const version = await readVersion(file, cwd);
1966
+ if (version) {
1967
+ return operation.update({
1968
+ oldVersionSource: file,
1969
+ oldVersion: version
1970
+ });
1971
+ }
1972
+ }
1973
+ throw new Error(`Unable to determine the current version number. Checked ${filesToCheck.join(", ")}.`);
1974
+ }
1975
+ async function readVersion(file, cwd) {
1976
+ try {
1977
+ const { data: manifest } = await readJsonFile(file, cwd);
1978
+ if (isManifest(manifest)) {
1979
+ if (isValidVersion2(manifest.version))
1980
+ return manifest.version;
1981
+ }
1982
+ } catch (error) {
1983
+ return void 0;
1984
+ }
1985
+ }
1986
+
1987
+ // src/git.ts
1988
+ init_esm_shims();
1989
+ import * as ezSpawn from "@jsdevtools/ez-spawn";
1990
+ async function gitCommit(operation) {
1991
+ if (!operation.options.commit)
1992
+ return operation;
1993
+ const { all, noVerify, message } = operation.options.commit;
1994
+ const { updatedFiles, newVersion } = operation.state;
1995
+ let args = [];
1996
+ if (all) {
1997
+ args.push("--all");
1998
+ }
1999
+ if (noVerify) {
2000
+ args.push("--no-verify");
2001
+ }
2002
+ const commitMessage = formatVersionString(message, newVersion);
2003
+ args.push("--message", commitMessage);
2004
+ if (!all)
2005
+ args = args.concat(updatedFiles);
2006
+ await ezSpawn.async("git", ["commit", ...args]);
2007
+ return operation.update({ event: "git commit" /* GitCommit */, commitMessage });
2008
+ }
2009
+ async function gitTag(operation) {
2010
+ if (!operation.options.tag)
2011
+ return operation;
2012
+ const { commit, tag } = operation.options;
2013
+ const { newVersion } = operation.state;
2014
+ const args = [
2015
+ "--annotate",
2016
+ "--message",
2017
+ formatVersionString(commit.message, newVersion)
2018
+ ];
2019
+ const tagName = formatVersionString(tag.name, newVersion);
2020
+ args.push(tagName);
2021
+ await ezSpawn.async("git", ["tag", ...args]);
2022
+ return operation.update({ event: "git tag" /* GitTag */, tagName });
2023
+ }
2024
+ async function gitPush(operation) {
2025
+ if (!operation.options.push)
2026
+ return operation;
2027
+ await ezSpawn.async("git", "push");
2028
+ if (operation.options.tag) {
2029
+ await ezSpawn.async("git", ["push", "--tags"]);
2030
+ }
2031
+ return operation.update({ event: "git push" /* GitPush */ });
2032
+ }
2033
+ function formatVersionString(template, newVersion) {
2034
+ if (template.includes("%s"))
2035
+ return template.replace(/%s/g, newVersion);
2036
+ else
2037
+ return template + newVersion;
2038
+ }
2039
+
2040
+ // src/operation.ts
2041
+ init_esm_shims();
2042
+
2043
+ // src/normalize-options.ts
2044
+ init_esm_shims();
2045
+ import fg from "fast-glob";
2046
+ async function normalizeOptions(raw) {
2047
+ var _a;
2048
+ const preid = typeof raw.preid === "string" ? raw.preid : "beta";
2049
+ const push = Boolean(raw.push);
2050
+ const all = Boolean(raw.all);
2051
+ const noVerify = Boolean(raw.noVerify);
2052
+ const cwd = raw.cwd || process.cwd();
2053
+ const ignoreScripts = Boolean(raw.ignoreScripts);
2054
+ const execute = raw.execute;
2055
+ let release;
2056
+ if (!raw.release || raw.release === "prompt")
2057
+ release = { type: "prompt", preid };
2058
+ else if (isReleaseType(raw.release))
2059
+ release = { type: raw.release, preid };
2060
+ else
2061
+ release = { type: "version", version: raw.release };
2062
+ let tag;
2063
+ if (typeof raw.tag === "string")
2064
+ tag = { name: raw.tag };
2065
+ else if (raw.tag)
2066
+ tag = { name: "v" };
2067
+ let commit;
2068
+ if (typeof raw.commit === "string")
2069
+ commit = { all, noVerify, message: raw.commit };
2070
+ else if (raw.commit || tag || push)
2071
+ commit = { all, noVerify, message: "chore: release v" };
2072
+ const files = await fg(((_a = raw.files) == null ? void 0 : _a.length) ? raw.files : ["package.json", "package-lock.json"], { cwd, onlyFiles: true });
2073
+ let ui;
2074
+ if (raw.interface === false) {
2075
+ ui = { input: false, output: false };
2076
+ } else if (raw.interface === true || !raw.interface) {
2077
+ ui = { input: process.stdin, output: process.stdout };
2078
+ } else {
2079
+ let _b = raw.interface, { input, output } = _b, other = __objRest(_b, ["input", "output"]);
2080
+ if (input === true || input !== false && !input)
2081
+ input = process.stdin;
2082
+ if (output === true || output !== false && !output)
2083
+ output = process.stdout;
2084
+ ui = __spreadValues({ input, output }, other);
2085
+ }
2086
+ if (release.type === "prompt" && !(ui.input && ui.output))
2087
+ throw new Error("Cannot prompt for the version number because input or output has been disabled.");
2088
+ return { release, commit, tag, push, files, cwd, interface: ui, ignoreScripts, execute };
2089
+ }
2090
+
2091
+ // src/operation.ts
2092
+ var Operation = class {
2093
+ constructor(options, progress) {
2094
+ this.state = {
2095
+ release: void 0,
2096
+ oldVersion: "",
2097
+ oldVersionSource: "",
2098
+ newVersion: "",
2099
+ commitMessage: "",
2100
+ tagName: "",
2101
+ updatedFiles: [],
2102
+ skippedFiles: []
2103
+ };
2104
+ this.options = options;
2105
+ this._progress = progress;
2106
+ }
2107
+ get results() {
2108
+ const options = this.options;
2109
+ const state = this.state;
2110
+ return {
2111
+ release: state.release,
2112
+ oldVersion: state.oldVersion,
2113
+ newVersion: state.newVersion,
2114
+ commit: options.commit ? state.commitMessage : false,
2115
+ tag: options.tag ? state.tagName : false,
2116
+ updatedFiles: state.updatedFiles.slice(),
2117
+ skippedFiles: state.skippedFiles.slice()
2118
+ };
2119
+ }
2120
+ static async start(input) {
2121
+ const options = await normalizeOptions(input);
2122
+ return new Operation(options, input.progress);
2123
+ }
2124
+ update(_a) {
2125
+ var _b = _a, { event, script } = _b, newState = __objRest(_b, ["event", "script"]);
2126
+ Object.assign(this.state, newState);
2127
+ if (event && this._progress) {
2128
+ this._progress(__spreadValues({ event, script }, this.results));
2129
+ }
2130
+ return this;
2131
+ }
2132
+ };
2133
+
2134
+ // src/run-npm-script.ts
2135
+ init_esm_shims();
2136
+ import * as ezSpawn2 from "@jsdevtools/ez-spawn";
2137
+ async function runNpmScript(script, operation) {
2138
+ const { cwd, ignoreScripts } = operation.options;
2139
+ if (!ignoreScripts) {
2140
+ const { data: manifest } = await readJsonFile("package.json", cwd);
2141
+ if (isManifest(manifest) && hasScript(manifest, script)) {
2142
+ await ezSpawn2.async("npm", ["run", script, "--silent"], { stdio: "inherit" });
2143
+ operation.update({ event: "npm script" /* NpmScript */, script });
2144
+ }
2145
+ }
2146
+ return operation;
2147
+ }
2148
+ function hasScript(manifest, script) {
2149
+ const scripts = manifest.scripts;
2150
+ if (scripts && typeof scripts === "object")
2151
+ return Boolean(scripts[script]);
2152
+ return false;
2153
+ }
2154
+
2155
+ // src/update-files.ts
2156
+ init_esm_shims();
2157
+ import * as path2 from "path";
2158
+ async function updateFiles(operation) {
2159
+ const { files } = operation.options;
2160
+ for (const relPath of files) {
2161
+ const modified = await updateFile(relPath, operation);
2162
+ if (modified) {
2163
+ operation.update({
2164
+ event: "file updated" /* FileUpdated */,
2165
+ updatedFiles: operation.state.updatedFiles.concat(relPath)
2166
+ });
2167
+ } else {
2168
+ operation.update({
2169
+ event: "file skipped" /* FileSkipped */,
2170
+ skippedFiles: operation.state.skippedFiles.concat(relPath)
2171
+ });
2172
+ }
2173
+ }
2174
+ return operation;
2175
+ }
2176
+ async function updateFile(relPath, operation) {
2177
+ const name = path2.basename(relPath).trim().toLowerCase();
2178
+ switch (name) {
2179
+ case "package.json":
2180
+ case "package-lock.json":
2181
+ case "bower.json":
2182
+ case "component.json":
2183
+ return updateManifestFile(relPath, operation);
2184
+ default:
2185
+ return updateTextFile(relPath, operation);
2186
+ }
2187
+ }
2188
+ async function updateManifestFile(relPath, operation) {
2189
+ const { cwd } = operation.options;
2190
+ const { newVersion } = operation.state;
2191
+ let modified = false;
2192
+ const file = await readJsonFile(relPath, cwd);
2193
+ if (isManifest(file.data) && file.data.version !== newVersion) {
2194
+ file.data.version = newVersion;
2195
+ await writeJsonFile(file);
2196
+ modified = true;
2197
+ }
2198
+ return modified;
2199
+ }
2200
+ async function updateTextFile(relPath, operation) {
2201
+ const { cwd } = operation.options;
2202
+ const { oldVersion, newVersion } = operation.state;
2203
+ const modified = false;
2204
+ const file = await readTextFile(relPath, cwd);
2205
+ if (file.data.includes(oldVersion)) {
2206
+ const sanitizedVersion = oldVersion.replace(/(\W)/g, "\\$1");
2207
+ const replacePattern = new RegExp(`(\\b|v)${sanitizedVersion}\\b`, "g");
2208
+ file.data = file.data.replace(replacePattern, `$1${newVersion}`);
2209
+ await writeTextFile(file);
2210
+ return true;
2211
+ }
2212
+ return modified;
2213
+ }
2214
+
2215
+ // src/version-bump.ts
2216
+ async function versionBump(arg = {}) {
2217
+ if (typeof arg === "string")
2218
+ arg = { release: arg };
2219
+ const operation = await Operation.start(arg);
2220
+ await getOldVersion(operation);
2221
+ await getNewVersion(operation);
2222
+ if (arg.confirm) {
2223
+ printSummary(operation);
2224
+ if (!await prompts2({
2225
+ name: "yes",
2226
+ type: "confirm",
2227
+ message: "Bump?",
2228
+ initial: true
2229
+ }).then((r) => r.yes))
2230
+ process.exit(1);
2231
+ }
2232
+ await runNpmScript("preversion" /* PreVersion */, operation);
2233
+ await updateFiles(operation);
2234
+ if (operation.options.execute) {
2235
+ console.log(import_log_symbols.info, "Executing script", operation.options.execute);
2236
+ await ezSpawn3.async(operation.options.execute, { stdio: "inherit" });
2237
+ console.log(import_log_symbols.success, "Script finished");
2238
+ }
2239
+ await runNpmScript("version" /* Version */, operation);
2240
+ await gitCommit(operation);
2241
+ await gitTag(operation);
2242
+ await runNpmScript("postversion" /* PostVersion */, operation);
2243
+ await gitPush(operation);
2244
+ return operation.results;
2245
+ }
2246
+ function printSummary(operation) {
2247
+ console.log();
2248
+ console.log(` files ${operation.options.files.map((i) => bold2(i)).join(", ")}`);
2249
+ if (operation.options.commit)
2250
+ console.log(` commit ${bold2(formatVersionString(operation.options.commit.message, operation.state.newVersion))}`);
2251
+ if (operation.options.tag)
2252
+ console.log(` tag ${bold2(formatVersionString(operation.options.tag.name, operation.state.newVersion))}`);
2253
+ if (operation.options.execute)
2254
+ console.log(` execute ${bold2(operation.options.execute)}`);
2255
+ if (operation.options.push)
2256
+ console.log(` push ${cyan(bold2("yes"))}`);
2257
+ console.log();
2258
+ console.log(` from ${bold2(operation.state.oldVersion)}`);
2259
+ console.log(` to ${green2(bold2(operation.state.newVersion))}`);
2260
+ console.log();
2261
+ }
2262
+ async function versionBumpInfo(arg = {}) {
2263
+ if (typeof arg === "string")
2264
+ arg = { release: arg };
2265
+ const operation = await Operation.start(arg);
2266
+ await getOldVersion(operation);
2267
+ await getNewVersion(operation);
2268
+ return operation;
2269
+ }
2270
+
2271
+ export {
2272
+ __toESM,
2273
+ init_esm_shims,
2274
+ require_log_symbols,
2275
+ ReleaseType,
2276
+ isReleaseType,
2277
+ ProgressEvent,
2278
+ NpmScript,
2279
+ versionBump,
2280
+ versionBumpInfo
2281
+ };