@yamada-ui/cli 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command/tokens/create-theme-typings.js +29 -6
- package/dist/command/tokens/index.js +210 -398
- package/dist/index.js +7335 -5184
- package/dist/utils/cli.js +4264 -1836
- package/dist/utils/index.js +4264 -1836
- package/package.json +5 -5
|
@@ -33,9 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.74_ts-node@10.9.1_typescript@5.1.6/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@
|
|
38
|
+
"../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.74_ts-node@10.9.1_typescript@5.1.6/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
|
+
"use strict";
|
|
39
40
|
}
|
|
40
41
|
});
|
|
41
42
|
|
|
@@ -97,6 +98,7 @@ var require_onetime = __commonJS({
|
|
|
97
98
|
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
|
|
98
99
|
var require_signals = __commonJS({
|
|
99
100
|
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module2) {
|
|
101
|
+
"use strict";
|
|
100
102
|
init_cjs_shims();
|
|
101
103
|
module2.exports = [
|
|
102
104
|
"SIGABRT",
|
|
@@ -135,6 +137,7 @@ var require_signals = __commonJS({
|
|
|
135
137
|
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
136
138
|
var require_signal_exit = __commonJS({
|
|
137
139
|
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
|
|
140
|
+
"use strict";
|
|
138
141
|
init_cjs_shims();
|
|
139
142
|
var process8 = global.process;
|
|
140
143
|
var processOk = function(process9) {
|
|
@@ -1937,371 +1940,97 @@ var require_cli_spinners = __commonJS({
|
|
|
1937
1940
|
}
|
|
1938
1941
|
});
|
|
1939
1942
|
|
|
1940
|
-
// ../../node_modules/.pnpm/
|
|
1941
|
-
var
|
|
1942
|
-
"../../node_modules/.pnpm/
|
|
1943
|
-
init_cjs_shims();
|
|
1944
|
-
var clone = function() {
|
|
1945
|
-
"use strict";
|
|
1946
|
-
function clone2(parent, circular, depth, prototype) {
|
|
1947
|
-
var filter;
|
|
1948
|
-
if (typeof circular === "object") {
|
|
1949
|
-
depth = circular.depth;
|
|
1950
|
-
prototype = circular.prototype;
|
|
1951
|
-
filter = circular.filter;
|
|
1952
|
-
circular = circular.circular;
|
|
1953
|
-
}
|
|
1954
|
-
var allParents = [];
|
|
1955
|
-
var allChildren = [];
|
|
1956
|
-
var useBuffer = typeof Buffer != "undefined";
|
|
1957
|
-
if (typeof circular == "undefined")
|
|
1958
|
-
circular = true;
|
|
1959
|
-
if (typeof depth == "undefined")
|
|
1960
|
-
depth = Infinity;
|
|
1961
|
-
function _clone(parent2, depth2) {
|
|
1962
|
-
if (parent2 === null)
|
|
1963
|
-
return null;
|
|
1964
|
-
if (depth2 == 0)
|
|
1965
|
-
return parent2;
|
|
1966
|
-
var child;
|
|
1967
|
-
var proto2;
|
|
1968
|
-
if (typeof parent2 != "object") {
|
|
1969
|
-
return parent2;
|
|
1970
|
-
}
|
|
1971
|
-
if (clone2.__isArray(parent2)) {
|
|
1972
|
-
child = [];
|
|
1973
|
-
} else if (clone2.__isRegExp(parent2)) {
|
|
1974
|
-
child = new RegExp(parent2.source, __getRegExpFlags(parent2));
|
|
1975
|
-
if (parent2.lastIndex)
|
|
1976
|
-
child.lastIndex = parent2.lastIndex;
|
|
1977
|
-
} else if (clone2.__isDate(parent2)) {
|
|
1978
|
-
child = new Date(parent2.getTime());
|
|
1979
|
-
} else if (useBuffer && Buffer.isBuffer(parent2)) {
|
|
1980
|
-
if (Buffer.allocUnsafe) {
|
|
1981
|
-
child = Buffer.allocUnsafe(parent2.length);
|
|
1982
|
-
} else {
|
|
1983
|
-
child = new Buffer(parent2.length);
|
|
1984
|
-
}
|
|
1985
|
-
parent2.copy(child);
|
|
1986
|
-
return child;
|
|
1987
|
-
} else {
|
|
1988
|
-
if (typeof prototype == "undefined") {
|
|
1989
|
-
proto2 = Object.getPrototypeOf(parent2);
|
|
1990
|
-
child = Object.create(proto2);
|
|
1991
|
-
} else {
|
|
1992
|
-
child = Object.create(prototype);
|
|
1993
|
-
proto2 = prototype;
|
|
1994
|
-
}
|
|
1995
|
-
}
|
|
1996
|
-
if (circular) {
|
|
1997
|
-
var index = allParents.indexOf(parent2);
|
|
1998
|
-
if (index != -1) {
|
|
1999
|
-
return allChildren[index];
|
|
2000
|
-
}
|
|
2001
|
-
allParents.push(parent2);
|
|
2002
|
-
allChildren.push(child);
|
|
2003
|
-
}
|
|
2004
|
-
for (var i in parent2) {
|
|
2005
|
-
var attrs;
|
|
2006
|
-
if (proto2) {
|
|
2007
|
-
attrs = Object.getOwnPropertyDescriptor(proto2, i);
|
|
2008
|
-
}
|
|
2009
|
-
if (attrs && attrs.set == null) {
|
|
2010
|
-
continue;
|
|
2011
|
-
}
|
|
2012
|
-
child[i] = _clone(parent2[i], depth2 - 1);
|
|
2013
|
-
}
|
|
2014
|
-
return child;
|
|
2015
|
-
}
|
|
2016
|
-
return _clone(parent, depth);
|
|
2017
|
-
}
|
|
2018
|
-
clone2.clonePrototype = function clonePrototype(parent) {
|
|
2019
|
-
if (parent === null)
|
|
2020
|
-
return null;
|
|
2021
|
-
var c = function() {
|
|
2022
|
-
};
|
|
2023
|
-
c.prototype = parent;
|
|
2024
|
-
return new c();
|
|
2025
|
-
};
|
|
2026
|
-
function __objToStr(o) {
|
|
2027
|
-
return Object.prototype.toString.call(o);
|
|
2028
|
-
}
|
|
2029
|
-
;
|
|
2030
|
-
clone2.__objToStr = __objToStr;
|
|
2031
|
-
function __isDate(o) {
|
|
2032
|
-
return typeof o === "object" && __objToStr(o) === "[object Date]";
|
|
2033
|
-
}
|
|
2034
|
-
;
|
|
2035
|
-
clone2.__isDate = __isDate;
|
|
2036
|
-
function __isArray(o) {
|
|
2037
|
-
return typeof o === "object" && __objToStr(o) === "[object Array]";
|
|
2038
|
-
}
|
|
2039
|
-
;
|
|
2040
|
-
clone2.__isArray = __isArray;
|
|
2041
|
-
function __isRegExp(o) {
|
|
2042
|
-
return typeof o === "object" && __objToStr(o) === "[object RegExp]";
|
|
2043
|
-
}
|
|
2044
|
-
;
|
|
2045
|
-
clone2.__isRegExp = __isRegExp;
|
|
2046
|
-
function __getRegExpFlags(re) {
|
|
2047
|
-
var flags = "";
|
|
2048
|
-
if (re.global)
|
|
2049
|
-
flags += "g";
|
|
2050
|
-
if (re.ignoreCase)
|
|
2051
|
-
flags += "i";
|
|
2052
|
-
if (re.multiline)
|
|
2053
|
-
flags += "m";
|
|
2054
|
-
return flags;
|
|
2055
|
-
}
|
|
2056
|
-
;
|
|
2057
|
-
clone2.__getRegExpFlags = __getRegExpFlags;
|
|
2058
|
-
return clone2;
|
|
2059
|
-
}();
|
|
2060
|
-
if (typeof module2 === "object" && module2.exports) {
|
|
2061
|
-
module2.exports = clone;
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2064
|
-
});
|
|
2065
|
-
|
|
2066
|
-
// ../../node_modules/.pnpm/defaults@1.0.4/node_modules/defaults/index.js
|
|
2067
|
-
var require_defaults = __commonJS({
|
|
2068
|
-
"../../node_modules/.pnpm/defaults@1.0.4/node_modules/defaults/index.js"(exports, module2) {
|
|
2069
|
-
init_cjs_shims();
|
|
2070
|
-
var clone = require_clone();
|
|
2071
|
-
module2.exports = function(options, defaults) {
|
|
2072
|
-
options = options || {};
|
|
2073
|
-
Object.keys(defaults).forEach(function(key) {
|
|
2074
|
-
if (typeof options[key] === "undefined") {
|
|
2075
|
-
options[key] = clone(defaults[key]);
|
|
2076
|
-
}
|
|
2077
|
-
});
|
|
2078
|
-
return options;
|
|
2079
|
-
};
|
|
2080
|
-
}
|
|
2081
|
-
});
|
|
2082
|
-
|
|
2083
|
-
// ../../node_modules/.pnpm/wcwidth@1.0.1/node_modules/wcwidth/combining.js
|
|
2084
|
-
var require_combining = __commonJS({
|
|
2085
|
-
"../../node_modules/.pnpm/wcwidth@1.0.1/node_modules/wcwidth/combining.js"(exports, module2) {
|
|
2086
|
-
init_cjs_shims();
|
|
2087
|
-
module2.exports = [
|
|
2088
|
-
[768, 879],
|
|
2089
|
-
[1155, 1158],
|
|
2090
|
-
[1160, 1161],
|
|
2091
|
-
[1425, 1469],
|
|
2092
|
-
[1471, 1471],
|
|
2093
|
-
[1473, 1474],
|
|
2094
|
-
[1476, 1477],
|
|
2095
|
-
[1479, 1479],
|
|
2096
|
-
[1536, 1539],
|
|
2097
|
-
[1552, 1557],
|
|
2098
|
-
[1611, 1630],
|
|
2099
|
-
[1648, 1648],
|
|
2100
|
-
[1750, 1764],
|
|
2101
|
-
[1767, 1768],
|
|
2102
|
-
[1770, 1773],
|
|
2103
|
-
[1807, 1807],
|
|
2104
|
-
[1809, 1809],
|
|
2105
|
-
[1840, 1866],
|
|
2106
|
-
[1958, 1968],
|
|
2107
|
-
[2027, 2035],
|
|
2108
|
-
[2305, 2306],
|
|
2109
|
-
[2364, 2364],
|
|
2110
|
-
[2369, 2376],
|
|
2111
|
-
[2381, 2381],
|
|
2112
|
-
[2385, 2388],
|
|
2113
|
-
[2402, 2403],
|
|
2114
|
-
[2433, 2433],
|
|
2115
|
-
[2492, 2492],
|
|
2116
|
-
[2497, 2500],
|
|
2117
|
-
[2509, 2509],
|
|
2118
|
-
[2530, 2531],
|
|
2119
|
-
[2561, 2562],
|
|
2120
|
-
[2620, 2620],
|
|
2121
|
-
[2625, 2626],
|
|
2122
|
-
[2631, 2632],
|
|
2123
|
-
[2635, 2637],
|
|
2124
|
-
[2672, 2673],
|
|
2125
|
-
[2689, 2690],
|
|
2126
|
-
[2748, 2748],
|
|
2127
|
-
[2753, 2757],
|
|
2128
|
-
[2759, 2760],
|
|
2129
|
-
[2765, 2765],
|
|
2130
|
-
[2786, 2787],
|
|
2131
|
-
[2817, 2817],
|
|
2132
|
-
[2876, 2876],
|
|
2133
|
-
[2879, 2879],
|
|
2134
|
-
[2881, 2883],
|
|
2135
|
-
[2893, 2893],
|
|
2136
|
-
[2902, 2902],
|
|
2137
|
-
[2946, 2946],
|
|
2138
|
-
[3008, 3008],
|
|
2139
|
-
[3021, 3021],
|
|
2140
|
-
[3134, 3136],
|
|
2141
|
-
[3142, 3144],
|
|
2142
|
-
[3146, 3149],
|
|
2143
|
-
[3157, 3158],
|
|
2144
|
-
[3260, 3260],
|
|
2145
|
-
[3263, 3263],
|
|
2146
|
-
[3270, 3270],
|
|
2147
|
-
[3276, 3277],
|
|
2148
|
-
[3298, 3299],
|
|
2149
|
-
[3393, 3395],
|
|
2150
|
-
[3405, 3405],
|
|
2151
|
-
[3530, 3530],
|
|
2152
|
-
[3538, 3540],
|
|
2153
|
-
[3542, 3542],
|
|
2154
|
-
[3633, 3633],
|
|
2155
|
-
[3636, 3642],
|
|
2156
|
-
[3655, 3662],
|
|
2157
|
-
[3761, 3761],
|
|
2158
|
-
[3764, 3769],
|
|
2159
|
-
[3771, 3772],
|
|
2160
|
-
[3784, 3789],
|
|
2161
|
-
[3864, 3865],
|
|
2162
|
-
[3893, 3893],
|
|
2163
|
-
[3895, 3895],
|
|
2164
|
-
[3897, 3897],
|
|
2165
|
-
[3953, 3966],
|
|
2166
|
-
[3968, 3972],
|
|
2167
|
-
[3974, 3975],
|
|
2168
|
-
[3984, 3991],
|
|
2169
|
-
[3993, 4028],
|
|
2170
|
-
[4038, 4038],
|
|
2171
|
-
[4141, 4144],
|
|
2172
|
-
[4146, 4146],
|
|
2173
|
-
[4150, 4151],
|
|
2174
|
-
[4153, 4153],
|
|
2175
|
-
[4184, 4185],
|
|
2176
|
-
[4448, 4607],
|
|
2177
|
-
[4959, 4959],
|
|
2178
|
-
[5906, 5908],
|
|
2179
|
-
[5938, 5940],
|
|
2180
|
-
[5970, 5971],
|
|
2181
|
-
[6002, 6003],
|
|
2182
|
-
[6068, 6069],
|
|
2183
|
-
[6071, 6077],
|
|
2184
|
-
[6086, 6086],
|
|
2185
|
-
[6089, 6099],
|
|
2186
|
-
[6109, 6109],
|
|
2187
|
-
[6155, 6157],
|
|
2188
|
-
[6313, 6313],
|
|
2189
|
-
[6432, 6434],
|
|
2190
|
-
[6439, 6440],
|
|
2191
|
-
[6450, 6450],
|
|
2192
|
-
[6457, 6459],
|
|
2193
|
-
[6679, 6680],
|
|
2194
|
-
[6912, 6915],
|
|
2195
|
-
[6964, 6964],
|
|
2196
|
-
[6966, 6970],
|
|
2197
|
-
[6972, 6972],
|
|
2198
|
-
[6978, 6978],
|
|
2199
|
-
[7019, 7027],
|
|
2200
|
-
[7616, 7626],
|
|
2201
|
-
[7678, 7679],
|
|
2202
|
-
[8203, 8207],
|
|
2203
|
-
[8234, 8238],
|
|
2204
|
-
[8288, 8291],
|
|
2205
|
-
[8298, 8303],
|
|
2206
|
-
[8400, 8431],
|
|
2207
|
-
[12330, 12335],
|
|
2208
|
-
[12441, 12442],
|
|
2209
|
-
[43014, 43014],
|
|
2210
|
-
[43019, 43019],
|
|
2211
|
-
[43045, 43046],
|
|
2212
|
-
[64286, 64286],
|
|
2213
|
-
[65024, 65039],
|
|
2214
|
-
[65056, 65059],
|
|
2215
|
-
[65279, 65279],
|
|
2216
|
-
[65529, 65531],
|
|
2217
|
-
[68097, 68099],
|
|
2218
|
-
[68101, 68102],
|
|
2219
|
-
[68108, 68111],
|
|
2220
|
-
[68152, 68154],
|
|
2221
|
-
[68159, 68159],
|
|
2222
|
-
[119143, 119145],
|
|
2223
|
-
[119155, 119170],
|
|
2224
|
-
[119173, 119179],
|
|
2225
|
-
[119210, 119213],
|
|
2226
|
-
[119362, 119364],
|
|
2227
|
-
[917505, 917505],
|
|
2228
|
-
[917536, 917631],
|
|
2229
|
-
[917760, 917999]
|
|
2230
|
-
];
|
|
2231
|
-
}
|
|
2232
|
-
});
|
|
2233
|
-
|
|
2234
|
-
// ../../node_modules/.pnpm/wcwidth@1.0.1/node_modules/wcwidth/index.js
|
|
2235
|
-
var require_wcwidth = __commonJS({
|
|
2236
|
-
"../../node_modules/.pnpm/wcwidth@1.0.1/node_modules/wcwidth/index.js"(exports, module2) {
|
|
1943
|
+
// ../../node_modules/.pnpm/eastasianwidth@0.2.0/node_modules/eastasianwidth/eastasianwidth.js
|
|
1944
|
+
var require_eastasianwidth = __commonJS({
|
|
1945
|
+
"../../node_modules/.pnpm/eastasianwidth@0.2.0/node_modules/eastasianwidth/eastasianwidth.js"(exports, module2) {
|
|
2237
1946
|
"use strict";
|
|
2238
1947
|
init_cjs_shims();
|
|
2239
|
-
var
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
1948
|
+
var eaw = {};
|
|
1949
|
+
if ("undefined" == typeof module2) {
|
|
1950
|
+
window.eastasianwidth = eaw;
|
|
1951
|
+
} else {
|
|
1952
|
+
module2.exports = eaw;
|
|
1953
|
+
}
|
|
1954
|
+
eaw.eastAsianWidth = function(character) {
|
|
1955
|
+
var x = character.charCodeAt(0);
|
|
1956
|
+
var y = character.length == 2 ? character.charCodeAt(1) : 0;
|
|
1957
|
+
var codePoint = x;
|
|
1958
|
+
if (55296 <= x && x <= 56319 && (56320 <= y && y <= 57343)) {
|
|
1959
|
+
x &= 1023;
|
|
1960
|
+
y &= 1023;
|
|
1961
|
+
codePoint = x << 10 | y;
|
|
1962
|
+
codePoint += 65536;
|
|
1963
|
+
}
|
|
1964
|
+
if (12288 == codePoint || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
|
|
1965
|
+
return "F";
|
|
1966
|
+
}
|
|
1967
|
+
if (8361 == codePoint || 65377 <= codePoint && codePoint <= 65470 || 65474 <= codePoint && codePoint <= 65479 || 65482 <= codePoint && codePoint <= 65487 || 65490 <= codePoint && codePoint <= 65495 || 65498 <= codePoint && codePoint <= 65500 || 65512 <= codePoint && codePoint <= 65518) {
|
|
1968
|
+
return "H";
|
|
1969
|
+
}
|
|
1970
|
+
if (4352 <= codePoint && codePoint <= 4447 || 4515 <= codePoint && codePoint <= 4519 || 4602 <= codePoint && codePoint <= 4607 || 9001 <= codePoint && codePoint <= 9002 || 11904 <= codePoint && codePoint <= 11929 || 11931 <= codePoint && codePoint <= 12019 || 12032 <= codePoint && codePoint <= 12245 || 12272 <= codePoint && codePoint <= 12283 || 12289 <= codePoint && codePoint <= 12350 || 12353 <= codePoint && codePoint <= 12438 || 12441 <= codePoint && codePoint <= 12543 || 12549 <= codePoint && codePoint <= 12589 || 12593 <= codePoint && codePoint <= 12686 || 12688 <= codePoint && codePoint <= 12730 || 12736 <= codePoint && codePoint <= 12771 || 12784 <= codePoint && codePoint <= 12830 || 12832 <= codePoint && codePoint <= 12871 || 12880 <= codePoint && codePoint <= 13054 || 13056 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42124 || 42128 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 55216 <= codePoint && codePoint <= 55238 || 55243 <= codePoint && codePoint <= 55291 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65106 || 65108 <= codePoint && codePoint <= 65126 || 65128 <= codePoint && codePoint <= 65131 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127490 || 127504 <= codePoint && codePoint <= 127546 || 127552 <= codePoint && codePoint <= 127560 || 127568 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 194367 || 177984 <= codePoint && codePoint <= 196605 || 196608 <= codePoint && codePoint <= 262141) {
|
|
1971
|
+
return "W";
|
|
1972
|
+
}
|
|
1973
|
+
if (32 <= codePoint && codePoint <= 126 || 162 <= codePoint && codePoint <= 163 || 165 <= codePoint && codePoint <= 166 || 172 == codePoint || 175 == codePoint || 10214 <= codePoint && codePoint <= 10221 || 10629 <= codePoint && codePoint <= 10630) {
|
|
1974
|
+
return "Na";
|
|
1975
|
+
}
|
|
1976
|
+
if (161 == codePoint || 164 == codePoint || 167 <= codePoint && codePoint <= 168 || 170 == codePoint || 173 <= codePoint && codePoint <= 174 || 176 <= codePoint && codePoint <= 180 || 182 <= codePoint && codePoint <= 186 || 188 <= codePoint && codePoint <= 191 || 198 == codePoint || 208 == codePoint || 215 <= codePoint && codePoint <= 216 || 222 <= codePoint && codePoint <= 225 || 230 == codePoint || 232 <= codePoint && codePoint <= 234 || 236 <= codePoint && codePoint <= 237 || 240 == codePoint || 242 <= codePoint && codePoint <= 243 || 247 <= codePoint && codePoint <= 250 || 252 == codePoint || 254 == codePoint || 257 == codePoint || 273 == codePoint || 275 == codePoint || 283 == codePoint || 294 <= codePoint && codePoint <= 295 || 299 == codePoint || 305 <= codePoint && codePoint <= 307 || 312 == codePoint || 319 <= codePoint && codePoint <= 322 || 324 == codePoint || 328 <= codePoint && codePoint <= 331 || 333 == codePoint || 338 <= codePoint && codePoint <= 339 || 358 <= codePoint && codePoint <= 359 || 363 == codePoint || 462 == codePoint || 464 == codePoint || 466 == codePoint || 468 == codePoint || 470 == codePoint || 472 == codePoint || 474 == codePoint || 476 == codePoint || 593 == codePoint || 609 == codePoint || 708 == codePoint || 711 == codePoint || 713 <= codePoint && codePoint <= 715 || 717 == codePoint || 720 == codePoint || 728 <= codePoint && codePoint <= 731 || 733 == codePoint || 735 == codePoint || 768 <= codePoint && codePoint <= 879 || 913 <= codePoint && codePoint <= 929 || 931 <= codePoint && codePoint <= 937 || 945 <= codePoint && codePoint <= 961 || 963 <= codePoint && codePoint <= 969 || 1025 == codePoint || 1040 <= codePoint && codePoint <= 1103 || 1105 == codePoint || 8208 == codePoint || 8211 <= codePoint && codePoint <= 8214 || 8216 <= codePoint && codePoint <= 8217 || 8220 <= codePoint && codePoint <= 8221 || 8224 <= codePoint && codePoint <= 8226 || 8228 <= codePoint && codePoint <= 8231 || 8240 == codePoint || 8242 <= codePoint && codePoint <= 8243 || 8245 == codePoint || 8251 == codePoint || 8254 == codePoint || 8308 == codePoint || 8319 == codePoint || 8321 <= codePoint && codePoint <= 8324 || 8364 == codePoint || 8451 == codePoint || 8453 == codePoint || 8457 == codePoint || 8467 == codePoint || 8470 == codePoint || 8481 <= codePoint && codePoint <= 8482 || 8486 == codePoint || 8491 == codePoint || 8531 <= codePoint && codePoint <= 8532 || 8539 <= codePoint && codePoint <= 8542 || 8544 <= codePoint && codePoint <= 8555 || 8560 <= codePoint && codePoint <= 8569 || 8585 == codePoint || 8592 <= codePoint && codePoint <= 8601 || 8632 <= codePoint && codePoint <= 8633 || 8658 == codePoint || 8660 == codePoint || 8679 == codePoint || 8704 == codePoint || 8706 <= codePoint && codePoint <= 8707 || 8711 <= codePoint && codePoint <= 8712 || 8715 == codePoint || 8719 == codePoint || 8721 == codePoint || 8725 == codePoint || 8730 == codePoint || 8733 <= codePoint && codePoint <= 8736 || 8739 == codePoint || 8741 == codePoint || 8743 <= codePoint && codePoint <= 8748 || 8750 == codePoint || 8756 <= codePoint && codePoint <= 8759 || 8764 <= codePoint && codePoint <= 8765 || 8776 == codePoint || 8780 == codePoint || 8786 == codePoint || 8800 <= codePoint && codePoint <= 8801 || 8804 <= codePoint && codePoint <= 8807 || 8810 <= codePoint && codePoint <= 8811 || 8814 <= codePoint && codePoint <= 8815 || 8834 <= codePoint && codePoint <= 8835 || 8838 <= codePoint && codePoint <= 8839 || 8853 == codePoint || 8857 == codePoint || 8869 == codePoint || 8895 == codePoint || 8978 == codePoint || 9312 <= codePoint && codePoint <= 9449 || 9451 <= codePoint && codePoint <= 9547 || 9552 <= codePoint && codePoint <= 9587 || 9600 <= codePoint && codePoint <= 9615 || 9618 <= codePoint && codePoint <= 9621 || 9632 <= codePoint && codePoint <= 9633 || 9635 <= codePoint && codePoint <= 9641 || 9650 <= codePoint && codePoint <= 9651 || 9654 <= codePoint && codePoint <= 9655 || 9660 <= codePoint && codePoint <= 9661 || 9664 <= codePoint && codePoint <= 9665 || 9670 <= codePoint && codePoint <= 9672 || 9675 == codePoint || 9678 <= codePoint && codePoint <= 9681 || 9698 <= codePoint && codePoint <= 9701 || 9711 == codePoint || 9733 <= codePoint && codePoint <= 9734 || 9737 == codePoint || 9742 <= codePoint && codePoint <= 9743 || 9748 <= codePoint && codePoint <= 9749 || 9756 == codePoint || 9758 == codePoint || 9792 == codePoint || 9794 == codePoint || 9824 <= codePoint && codePoint <= 9825 || 9827 <= codePoint && codePoint <= 9829 || 9831 <= codePoint && codePoint <= 9834 || 9836 <= codePoint && codePoint <= 9837 || 9839 == codePoint || 9886 <= codePoint && codePoint <= 9887 || 9918 <= codePoint && codePoint <= 9919 || 9924 <= codePoint && codePoint <= 9933 || 9935 <= codePoint && codePoint <= 9953 || 9955 == codePoint || 9960 <= codePoint && codePoint <= 9983 || 10045 == codePoint || 10071 == codePoint || 10102 <= codePoint && codePoint <= 10111 || 11093 <= codePoint && codePoint <= 11097 || 12872 <= codePoint && codePoint <= 12879 || 57344 <= codePoint && codePoint <= 63743 || 65024 <= codePoint && codePoint <= 65039 || 65533 == codePoint || 127232 <= codePoint && codePoint <= 127242 || 127248 <= codePoint && codePoint <= 127277 || 127280 <= codePoint && codePoint <= 127337 || 127344 <= codePoint && codePoint <= 127386 || 917760 <= codePoint && codePoint <= 917999 || 983040 <= codePoint && codePoint <= 1048573 || 1048576 <= codePoint && codePoint <= 1114109) {
|
|
1977
|
+
return "A";
|
|
1978
|
+
}
|
|
1979
|
+
return "N";
|
|
2244
1980
|
};
|
|
2245
|
-
|
|
2246
|
-
|
|
1981
|
+
eaw.characterLength = function(character) {
|
|
1982
|
+
var code = this.eastAsianWidth(character);
|
|
1983
|
+
if (code == "F" || code == "W" || code == "A") {
|
|
1984
|
+
return 2;
|
|
1985
|
+
} else {
|
|
1986
|
+
return 1;
|
|
1987
|
+
}
|
|
2247
1988
|
};
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
1989
|
+
function stringToArray(string) {
|
|
1990
|
+
return string.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
|
|
1991
|
+
}
|
|
1992
|
+
eaw.length = function(string) {
|
|
1993
|
+
var characters = stringToArray(string);
|
|
1994
|
+
var len = 0;
|
|
1995
|
+
for (var i = 0; i < characters.length; i++) {
|
|
1996
|
+
len = len + this.characterLength(characters[i]);
|
|
1997
|
+
}
|
|
1998
|
+
return len;
|
|
2253
1999
|
};
|
|
2254
|
-
function
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
if (n < 0)
|
|
2261
|
-
return -1;
|
|
2262
|
-
s += n;
|
|
2263
|
-
}
|
|
2264
|
-
return s;
|
|
2265
|
-
}
|
|
2266
|
-
function wcwidth2(ucs, opts) {
|
|
2267
|
-
if (ucs === 0)
|
|
2268
|
-
return opts.nul;
|
|
2269
|
-
if (ucs < 32 || ucs >= 127 && ucs < 160)
|
|
2270
|
-
return opts.control;
|
|
2271
|
-
if (bisearch(ucs))
|
|
2272
|
-
return 0;
|
|
2273
|
-
return 1 + (ucs >= 4352 && (ucs <= 4447 || // Hangul Jamo init. consonants
|
|
2274
|
-
ucs == 9001 || ucs == 9002 || ucs >= 11904 && ucs <= 42191 && ucs != 12351 || // CJK ... Yi
|
|
2275
|
-
ucs >= 44032 && ucs <= 55203 || // Hangul Syllables
|
|
2276
|
-
ucs >= 63744 && ucs <= 64255 || // CJK Compatibility Ideographs
|
|
2277
|
-
ucs >= 65040 && ucs <= 65049 || // Vertical forms
|
|
2278
|
-
ucs >= 65072 && ucs <= 65135 || // CJK Compatibility Forms
|
|
2279
|
-
ucs >= 65280 && ucs <= 65376 || // Fullwidth Forms
|
|
2280
|
-
ucs >= 65504 && ucs <= 65510 || ucs >= 131072 && ucs <= 196605 || ucs >= 196608 && ucs <= 262141));
|
|
2281
|
-
}
|
|
2282
|
-
function bisearch(ucs) {
|
|
2283
|
-
var min = 0;
|
|
2284
|
-
var max = combining.length - 1;
|
|
2285
|
-
var mid;
|
|
2286
|
-
if (ucs < combining[0][0] || ucs > combining[max][1])
|
|
2287
|
-
return false;
|
|
2288
|
-
while (max >= min) {
|
|
2289
|
-
mid = Math.floor((min + max) / 2);
|
|
2290
|
-
if (ucs > combining[mid][1])
|
|
2291
|
-
min = mid + 1;
|
|
2292
|
-
else if (ucs < combining[mid][0])
|
|
2293
|
-
max = mid - 1;
|
|
2294
|
-
else
|
|
2295
|
-
return true;
|
|
2000
|
+
eaw.slice = function(text, start, end) {
|
|
2001
|
+
textLen = eaw.length(text);
|
|
2002
|
+
start = start ? start : 0;
|
|
2003
|
+
end = end ? end : 1;
|
|
2004
|
+
if (start < 0) {
|
|
2005
|
+
start = textLen + start;
|
|
2296
2006
|
}
|
|
2297
|
-
|
|
2298
|
-
|
|
2007
|
+
if (end < 0) {
|
|
2008
|
+
end = textLen + end;
|
|
2009
|
+
}
|
|
2010
|
+
var result = "";
|
|
2011
|
+
var eawLen = 0;
|
|
2012
|
+
var chars = stringToArray(text);
|
|
2013
|
+
for (var i = 0; i < chars.length; i++) {
|
|
2014
|
+
var char = chars[i];
|
|
2015
|
+
var charLen = eaw.length(char);
|
|
2016
|
+
if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
|
|
2017
|
+
if (eawLen + charLen <= end) {
|
|
2018
|
+
result += char;
|
|
2019
|
+
} else {
|
|
2020
|
+
break;
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
eawLen += charLen;
|
|
2024
|
+
}
|
|
2025
|
+
return result;
|
|
2026
|
+
};
|
|
2299
2027
|
}
|
|
2300
2028
|
});
|
|
2301
2029
|
|
|
2302
2030
|
// ../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream.js
|
|
2303
2031
|
var require_stream = __commonJS({
|
|
2304
2032
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream.js"(exports, module2) {
|
|
2033
|
+
"use strict";
|
|
2305
2034
|
init_cjs_shims();
|
|
2306
2035
|
module2.exports = require("stream");
|
|
2307
2036
|
}
|
|
@@ -2794,6 +2523,7 @@ var require_state = __commonJS({
|
|
|
2794
2523
|
// ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js
|
|
2795
2524
|
var require_inherits_browser = __commonJS({
|
|
2796
2525
|
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports, module2) {
|
|
2526
|
+
"use strict";
|
|
2797
2527
|
init_cjs_shims();
|
|
2798
2528
|
if (typeof Object.create === "function") {
|
|
2799
2529
|
module2.exports = function inherits(ctor, superCtor) {
|
|
@@ -2827,6 +2557,7 @@ var require_inherits_browser = __commonJS({
|
|
|
2827
2557
|
// ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js
|
|
2828
2558
|
var require_inherits = __commonJS({
|
|
2829
2559
|
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports, module2) {
|
|
2560
|
+
"use strict";
|
|
2830
2561
|
init_cjs_shims();
|
|
2831
2562
|
try {
|
|
2832
2563
|
util = require("util");
|
|
@@ -2843,6 +2574,7 @@ var require_inherits = __commonJS({
|
|
|
2843
2574
|
// ../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js
|
|
2844
2575
|
var require_node = __commonJS({
|
|
2845
2576
|
"../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js"(exports, module2) {
|
|
2577
|
+
"use strict";
|
|
2846
2578
|
init_cjs_shims();
|
|
2847
2579
|
module2.exports = require("util").deprecate;
|
|
2848
2580
|
}
|
|
@@ -3452,6 +3184,7 @@ var require_stream_duplex = __commonJS({
|
|
|
3452
3184
|
// ../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js
|
|
3453
3185
|
var require_safe_buffer = __commonJS({
|
|
3454
3186
|
"../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js"(exports, module2) {
|
|
3187
|
+
"use strict";
|
|
3455
3188
|
init_cjs_shims();
|
|
3456
3189
|
var buffer = require("buffer");
|
|
3457
3190
|
var Buffer2 = buffer.Buffer;
|
|
@@ -5212,6 +4945,7 @@ var require_pipeline = __commonJS({
|
|
|
5212
4945
|
// ../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable.js
|
|
5213
4946
|
var require_readable = __commonJS({
|
|
5214
4947
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable.js"(exports, module2) {
|
|
4948
|
+
"use strict";
|
|
5215
4949
|
init_cjs_shims();
|
|
5216
4950
|
var Stream = require("stream");
|
|
5217
4951
|
if (process.env.READABLE_STREAM === "disable" && Stream) {
|
|
@@ -5620,14 +5354,14 @@ init_cjs_shims();
|
|
|
5620
5354
|
var import_fs2 = require("fs");
|
|
5621
5355
|
var import_util2 = require("util");
|
|
5622
5356
|
|
|
5623
|
-
// ../../node_modules/.pnpm/ora@
|
|
5357
|
+
// ../../node_modules/.pnpm/ora@7.0.1/node_modules/ora/index.js
|
|
5624
5358
|
init_cjs_shims();
|
|
5625
5359
|
var import_node_process6 = __toESM(require("process"), 1);
|
|
5626
5360
|
|
|
5627
|
-
// ../../node_modules/.pnpm/chalk@5.
|
|
5361
|
+
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
|
|
5628
5362
|
init_cjs_shims();
|
|
5629
5363
|
|
|
5630
|
-
// ../../node_modules/.pnpm/chalk@5.
|
|
5364
|
+
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
5631
5365
|
init_cjs_shims();
|
|
5632
5366
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
5633
5367
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
@@ -5814,7 +5548,7 @@ function assembleStyles() {
|
|
|
5814
5548
|
var ansiStyles = assembleStyles();
|
|
5815
5549
|
var ansi_styles_default = ansiStyles;
|
|
5816
5550
|
|
|
5817
|
-
// ../../node_modules/.pnpm/chalk@5.
|
|
5551
|
+
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
5818
5552
|
init_cjs_shims();
|
|
5819
5553
|
var import_node_process = __toESM(require("process"), 1);
|
|
5820
5554
|
var import_node_os = __toESM(require("os"), 1);
|
|
@@ -5889,7 +5623,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
5889
5623
|
return 1;
|
|
5890
5624
|
}
|
|
5891
5625
|
if ("CI" in env) {
|
|
5892
|
-
if ("GITHUB_ACTIONS" in env) {
|
|
5626
|
+
if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
|
|
5893
5627
|
return 3;
|
|
5894
5628
|
}
|
|
5895
5629
|
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
@@ -5941,7 +5675,7 @@ var supportsColor = {
|
|
|
5941
5675
|
};
|
|
5942
5676
|
var supports_color_default = supportsColor;
|
|
5943
5677
|
|
|
5944
|
-
// ../../node_modules/.pnpm/chalk@5.
|
|
5678
|
+
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
|
|
5945
5679
|
init_cjs_shims();
|
|
5946
5680
|
function stringReplaceAll(string, substring, replacer) {
|
|
5947
5681
|
let index = string.indexOf(substring);
|
|
@@ -5972,7 +5706,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
5972
5706
|
return returnValue;
|
|
5973
5707
|
}
|
|
5974
5708
|
|
|
5975
|
-
// ../../node_modules/.pnpm/chalk@5.
|
|
5709
|
+
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
|
|
5976
5710
|
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
5977
5711
|
var GENERATOR = Symbol("GENERATOR");
|
|
5978
5712
|
var STYLER = Symbol("STYLER");
|
|
@@ -6165,7 +5899,7 @@ cliCursor.toggle = (force, writableStream) => {
|
|
|
6165
5899
|
};
|
|
6166
5900
|
var cli_cursor_default = cliCursor;
|
|
6167
5901
|
|
|
6168
|
-
// ../../node_modules/.pnpm/ora@
|
|
5902
|
+
// ../../node_modules/.pnpm/ora@7.0.1/node_modules/ora/index.js
|
|
6169
5903
|
var import_cli_spinners = __toESM(require_cli_spinners(), 1);
|
|
6170
5904
|
|
|
6171
5905
|
// ../../node_modules/.pnpm/log-symbols@5.1.0/node_modules/log-symbols/index.js
|
|
@@ -6197,7 +5931,7 @@ var fallback = {
|
|
|
6197
5931
|
var logSymbols = isUnicodeSupported() ? main : fallback;
|
|
6198
5932
|
var log_symbols_default = logSymbols;
|
|
6199
5933
|
|
|
6200
|
-
// ../../node_modules/.pnpm/strip-ansi@7.0
|
|
5934
|
+
// ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
|
|
6201
5935
|
init_cjs_shims();
|
|
6202
5936
|
|
|
6203
5937
|
// ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
|
|
@@ -6210,16 +5944,73 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
|
|
6210
5944
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
6211
5945
|
}
|
|
6212
5946
|
|
|
6213
|
-
// ../../node_modules/.pnpm/strip-ansi@7.0
|
|
5947
|
+
// ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
|
|
5948
|
+
var regex = ansiRegex();
|
|
6214
5949
|
function stripAnsi(string) {
|
|
6215
5950
|
if (typeof string !== "string") {
|
|
6216
5951
|
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
6217
5952
|
}
|
|
6218
|
-
return string.replace(
|
|
5953
|
+
return string.replace(regex, "");
|
|
6219
5954
|
}
|
|
6220
5955
|
|
|
6221
|
-
// ../../node_modules/.pnpm/
|
|
6222
|
-
|
|
5956
|
+
// ../../node_modules/.pnpm/string-width@6.1.0/node_modules/string-width/index.js
|
|
5957
|
+
init_cjs_shims();
|
|
5958
|
+
var import_eastasianwidth = __toESM(require_eastasianwidth(), 1);
|
|
5959
|
+
|
|
5960
|
+
// ../../node_modules/.pnpm/emoji-regex@10.2.1/node_modules/emoji-regex/index.mjs
|
|
5961
|
+
init_cjs_shims();
|
|
5962
|
+
var emoji_regex_default = () => {
|
|
5963
|
+
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
5964
|
+
};
|
|
5965
|
+
|
|
5966
|
+
// ../../node_modules/.pnpm/string-width@6.1.0/node_modules/string-width/index.js
|
|
5967
|
+
function stringWidth(string, options) {
|
|
5968
|
+
if (typeof string !== "string" || string.length === 0) {
|
|
5969
|
+
return 0;
|
|
5970
|
+
}
|
|
5971
|
+
options = {
|
|
5972
|
+
ambiguousIsNarrow: true,
|
|
5973
|
+
countAnsiEscapeCodes: false,
|
|
5974
|
+
...options
|
|
5975
|
+
};
|
|
5976
|
+
if (!options.countAnsiEscapeCodes) {
|
|
5977
|
+
string = stripAnsi(string);
|
|
5978
|
+
}
|
|
5979
|
+
if (string.length === 0) {
|
|
5980
|
+
return 0;
|
|
5981
|
+
}
|
|
5982
|
+
const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
|
|
5983
|
+
let width = 0;
|
|
5984
|
+
for (const { segment: character } of new Intl.Segmenter().segment(string)) {
|
|
5985
|
+
const codePoint = character.codePointAt(0);
|
|
5986
|
+
if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
|
|
5987
|
+
continue;
|
|
5988
|
+
}
|
|
5989
|
+
if (codePoint >= 768 && codePoint <= 879) {
|
|
5990
|
+
continue;
|
|
5991
|
+
}
|
|
5992
|
+
if (emoji_regex_default().test(character)) {
|
|
5993
|
+
width += 2;
|
|
5994
|
+
continue;
|
|
5995
|
+
}
|
|
5996
|
+
const code = import_eastasianwidth.default.eastAsianWidth(character);
|
|
5997
|
+
switch (code) {
|
|
5998
|
+
case "F":
|
|
5999
|
+
case "W": {
|
|
6000
|
+
width += 2;
|
|
6001
|
+
break;
|
|
6002
|
+
}
|
|
6003
|
+
case "A": {
|
|
6004
|
+
width += ambiguousCharacterWidth;
|
|
6005
|
+
break;
|
|
6006
|
+
}
|
|
6007
|
+
default: {
|
|
6008
|
+
width += 1;
|
|
6009
|
+
}
|
|
6010
|
+
}
|
|
6011
|
+
}
|
|
6012
|
+
return width;
|
|
6013
|
+
}
|
|
6223
6014
|
|
|
6224
6015
|
// ../../node_modules/.pnpm/is-interactive@2.0.0/node_modules/is-interactive/index.js
|
|
6225
6016
|
init_cjs_shims();
|
|
@@ -6302,7 +6093,7 @@ var StdinDiscarder = class {
|
|
|
6302
6093
|
var stdinDiscarder = new StdinDiscarder();
|
|
6303
6094
|
var stdin_discarder_default = stdinDiscarder;
|
|
6304
6095
|
|
|
6305
|
-
// ../../node_modules/.pnpm/ora@
|
|
6096
|
+
// ../../node_modules/.pnpm/ora@7.0.1/node_modules/ora/index.js
|
|
6306
6097
|
var import_cli_spinners2 = __toESM(require_cli_spinners(), 1);
|
|
6307
6098
|
var Ora = class {
|
|
6308
6099
|
#linesToClear = 0;
|
|
@@ -6375,10 +6166,10 @@ var Ora = class {
|
|
|
6375
6166
|
throw new Error("The `indent` option must be an integer from 0 and up");
|
|
6376
6167
|
}
|
|
6377
6168
|
this.#indent = indent;
|
|
6378
|
-
this
|
|
6169
|
+
this.#updateLineCount();
|
|
6379
6170
|
}
|
|
6380
6171
|
get interval() {
|
|
6381
|
-
return this.#initialInterval
|
|
6172
|
+
return this.#initialInterval ?? this.#spinner.interval ?? 100;
|
|
6382
6173
|
}
|
|
6383
6174
|
get spinner() {
|
|
6384
6175
|
return this.#spinner;
|
|
@@ -6404,29 +6195,28 @@ var Ora = class {
|
|
|
6404
6195
|
get text() {
|
|
6405
6196
|
return this.#text;
|
|
6406
6197
|
}
|
|
6407
|
-
set text(value) {
|
|
6408
|
-
this.#text = value
|
|
6409
|
-
this
|
|
6198
|
+
set text(value = "") {
|
|
6199
|
+
this.#text = value;
|
|
6200
|
+
this.#updateLineCount();
|
|
6410
6201
|
}
|
|
6411
6202
|
get prefixText() {
|
|
6412
6203
|
return this.#prefixText;
|
|
6413
6204
|
}
|
|
6414
|
-
set prefixText(value) {
|
|
6415
|
-
this.#prefixText = value
|
|
6416
|
-
this
|
|
6205
|
+
set prefixText(value = "") {
|
|
6206
|
+
this.#prefixText = value;
|
|
6207
|
+
this.#updateLineCount();
|
|
6417
6208
|
}
|
|
6418
6209
|
get suffixText() {
|
|
6419
6210
|
return this.#suffixText;
|
|
6420
6211
|
}
|
|
6421
|
-
set suffixText(value) {
|
|
6422
|
-
this.#suffixText = value
|
|
6423
|
-
this
|
|
6212
|
+
set suffixText(value = "") {
|
|
6213
|
+
this.#suffixText = value;
|
|
6214
|
+
this.#updateLineCount();
|
|
6424
6215
|
}
|
|
6425
6216
|
get isSpinning() {
|
|
6426
6217
|
return this.#id !== void 0;
|
|
6427
6218
|
}
|
|
6428
|
-
|
|
6429
|
-
getFullPrefixText(prefixText = this.#prefixText, postfix = " ") {
|
|
6219
|
+
#getFullPrefixText(prefixText = this.#prefixText, postfix = " ") {
|
|
6430
6220
|
if (typeof prefixText === "string" && prefixText !== "") {
|
|
6431
6221
|
return prefixText + postfix;
|
|
6432
6222
|
}
|
|
@@ -6435,7 +6225,7 @@ var Ora = class {
|
|
|
6435
6225
|
}
|
|
6436
6226
|
return "";
|
|
6437
6227
|
}
|
|
6438
|
-
getFullSuffixText(suffixText = this.#suffixText, prefix = " ") {
|
|
6228
|
+
#getFullSuffixText(suffixText = this.#suffixText, prefix = " ") {
|
|
6439
6229
|
if (typeof suffixText === "string" && suffixText !== "") {
|
|
6440
6230
|
return prefix + suffixText;
|
|
6441
6231
|
}
|
|
@@ -6444,14 +6234,14 @@ var Ora = class {
|
|
|
6444
6234
|
}
|
|
6445
6235
|
return "";
|
|
6446
6236
|
}
|
|
6447
|
-
updateLineCount() {
|
|
6448
|
-
const columns = this.#stream.columns
|
|
6449
|
-
const fullPrefixText = this
|
|
6450
|
-
const fullSuffixText = this
|
|
6237
|
+
#updateLineCount() {
|
|
6238
|
+
const columns = this.#stream.columns ?? 80;
|
|
6239
|
+
const fullPrefixText = this.#getFullPrefixText(this.#prefixText, "-");
|
|
6240
|
+
const fullSuffixText = this.#getFullSuffixText(this.#suffixText, "-");
|
|
6451
6241
|
const fullText = " ".repeat(this.#indent) + fullPrefixText + "--" + this.#text + "--" + fullSuffixText;
|
|
6452
6242
|
this.#lineCount = 0;
|
|
6453
6243
|
for (const line of stripAnsi(fullText).split("\n")) {
|
|
6454
|
-
this.#lineCount += Math.max(1, Math.ceil((
|
|
6244
|
+
this.#lineCount += Math.max(1, Math.ceil(stringWidth(line, { countAnsiEscapeCodes: true }) / columns));
|
|
6455
6245
|
}
|
|
6456
6246
|
}
|
|
6457
6247
|
get isEnabled() {
|
|
@@ -6572,13 +6362,13 @@ var Ora = class {
|
|
|
6572
6362
|
if (this.#isSilent) {
|
|
6573
6363
|
return this;
|
|
6574
6364
|
}
|
|
6575
|
-
const prefixText = options.prefixText
|
|
6576
|
-
const fullPrefixText = this
|
|
6577
|
-
const symbolText = options.symbol
|
|
6578
|
-
const text = options.text
|
|
6365
|
+
const prefixText = options.prefixText ?? this.#prefixText;
|
|
6366
|
+
const fullPrefixText = this.#getFullPrefixText(prefixText, " ");
|
|
6367
|
+
const symbolText = options.symbol ?? " ";
|
|
6368
|
+
const text = options.text ?? this.text;
|
|
6579
6369
|
const fullText = typeof text === "string" ? " " + text : "";
|
|
6580
|
-
const suffixText = options.suffixText
|
|
6581
|
-
const fullSuffixText = this
|
|
6370
|
+
const suffixText = options.suffixText ?? this.#suffixText;
|
|
6371
|
+
const fullSuffixText = this.#getFullSuffixText(suffixText, " ");
|
|
6582
6372
|
const textToWrite = fullPrefixText + symbolText + fullText + fullSuffixText + "\n";
|
|
6583
6373
|
this.stop();
|
|
6584
6374
|
this.#stream.write(textToWrite);
|
|
@@ -6676,10 +6466,30 @@ var config = [
|
|
|
6676
6466
|
];
|
|
6677
6467
|
|
|
6678
6468
|
// src/command/tokens/create-theme-typings.ts
|
|
6679
|
-
var defaultColors = [
|
|
6680
|
-
|
|
6469
|
+
var defaultColors = [
|
|
6470
|
+
"brand",
|
|
6471
|
+
"primary",
|
|
6472
|
+
"secondary",
|
|
6473
|
+
"warning",
|
|
6474
|
+
"danger",
|
|
6475
|
+
"link"
|
|
6476
|
+
];
|
|
6477
|
+
var hues = [
|
|
6478
|
+
"50",
|
|
6479
|
+
"100",
|
|
6480
|
+
"200",
|
|
6481
|
+
"300",
|
|
6482
|
+
"400",
|
|
6483
|
+
"500",
|
|
6484
|
+
"600",
|
|
6485
|
+
"700",
|
|
6486
|
+
"800",
|
|
6487
|
+
"900"
|
|
6488
|
+
];
|
|
6681
6489
|
var printComponent = (components) => `components: { ${Object.entries(components).map(
|
|
6682
|
-
([key, unions]) => `${key.match(/^[a-zA-Z0-9\-_]+$/) ? key : `"${key}"`}: { ${print(
|
|
6490
|
+
([key, unions]) => `${key.match(/^[a-zA-Z0-9\-_]+$/) ? key : `"${key}"`}: { ${print(
|
|
6491
|
+
unions
|
|
6492
|
+
)}}`
|
|
6683
6493
|
).join(`
|
|
6684
6494
|
`)} }`;
|
|
6685
6495
|
var print = (unions) => Object.entries(unions).sort(([a], [b]) => a.localeCompare(b)).map(
|
|
@@ -6745,7 +6555,9 @@ var extractPaths = (target, maxDepth = 3) => {
|
|
|
6745
6555
|
return [];
|
|
6746
6556
|
return Object.entries(target).reduce((array, [key, value]) => {
|
|
6747
6557
|
if (isObject(value)) {
|
|
6748
|
-
extractPaths(value, maxDepth - 1).forEach(
|
|
6558
|
+
extractPaths(value, maxDepth - 1).forEach(
|
|
6559
|
+
(nestedKey) => array.push(`${key}.${nestedKey}`)
|
|
6560
|
+
);
|
|
6749
6561
|
} else {
|
|
6750
6562
|
array.push(key);
|
|
6751
6563
|
}
|