@ng-atomic/schematics 20.76.0 → 20.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +252 -124
- package/lib/_utilities/index.js +252 -124
- package/lib/atomic-component/index.js +138 -78
- package/lib/ng-add/index.js +252 -124
- package/lib/page/index.js +252 -124
- package/lib/pages/index.js +113 -71
- package/lib/setup/index.js +252 -124
- package/package.json +1 -1
package/lib/page/index.js
CHANGED
|
@@ -2641,9 +2641,11 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2641
2641
|
decode: () => decode,
|
|
2642
2642
|
decodeGeneratedRanges: () => decodeGeneratedRanges,
|
|
2643
2643
|
decodeOriginalScopes: () => decodeOriginalScopes,
|
|
2644
|
+
decodeRangeMappings: () => decodeRangeMappings,
|
|
2644
2645
|
encode: () => encode,
|
|
2645
2646
|
encodeGeneratedRanges: () => encodeGeneratedRanges,
|
|
2646
|
-
encodeOriginalScopes: () => encodeOriginalScopes
|
|
2647
|
+
encodeOriginalScopes: () => encodeOriginalScopes,
|
|
2648
|
+
encodeRangeMappings: () => encodeRangeMappings
|
|
2647
2649
|
});
|
|
2648
2650
|
module3.exports = __toCommonJS2(sourcemap_codec_exports);
|
|
2649
2651
|
var comma = ",".charCodeAt(0);
|
|
@@ -2656,7 +2658,7 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2656
2658
|
intToChar[i] = c;
|
|
2657
2659
|
charToInt[c] = i;
|
|
2658
2660
|
}
|
|
2659
|
-
function decodeInteger(reader
|
|
2661
|
+
function decodeInteger(reader) {
|
|
2660
2662
|
let value = 0;
|
|
2661
2663
|
let shift = 0;
|
|
2662
2664
|
let integer = 0;
|
|
@@ -2666,23 +2668,21 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2666
2668
|
value |= (integer & 31) << shift;
|
|
2667
2669
|
shift += 5;
|
|
2668
2670
|
} while (integer & 32);
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
}
|
|
2674
|
-
return relative + value;
|
|
2671
|
+
return value;
|
|
2672
|
+
}
|
|
2673
|
+
function decodeSign(num) {
|
|
2674
|
+
return num & 1 ? -2147483648 | -(num >>> 1) : num >>> 1;
|
|
2675
2675
|
}
|
|
2676
|
-
function encodeInteger(builder, num
|
|
2677
|
-
let delta = num - relative;
|
|
2678
|
-
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
2676
|
+
function encodeInteger(builder, num) {
|
|
2679
2677
|
do {
|
|
2680
|
-
let clamped =
|
|
2681
|
-
|
|
2682
|
-
if (
|
|
2678
|
+
let clamped = num & 31;
|
|
2679
|
+
num >>>= 5;
|
|
2680
|
+
if (num > 0) clamped |= 32;
|
|
2683
2681
|
builder.write(intToChar[clamped]);
|
|
2684
|
-
} while (
|
|
2685
|
-
|
|
2682
|
+
} while (num > 0);
|
|
2683
|
+
}
|
|
2684
|
+
function encodeSign(num) {
|
|
2685
|
+
return num < 0 ? -num << 1 | 1 : num << 1;
|
|
2686
2686
|
}
|
|
2687
2687
|
function hasMoreVlq(reader, max) {
|
|
2688
2688
|
if (reader.pos >= max) return false;
|
|
@@ -2747,23 +2747,23 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2747
2747
|
const stack = [];
|
|
2748
2748
|
let line = 0;
|
|
2749
2749
|
for (; reader.pos < length; reader.pos++) {
|
|
2750
|
-
line
|
|
2751
|
-
const column = decodeInteger(reader
|
|
2750
|
+
line += decodeSign(decodeInteger(reader));
|
|
2751
|
+
const column = decodeSign(decodeInteger(reader));
|
|
2752
2752
|
if (!hasMoreVlq(reader, length)) {
|
|
2753
2753
|
const last = stack.pop();
|
|
2754
2754
|
last[2] = line;
|
|
2755
2755
|
last[3] = column;
|
|
2756
2756
|
continue;
|
|
2757
2757
|
}
|
|
2758
|
-
const kind = decodeInteger(reader
|
|
2759
|
-
const fields = decodeInteger(reader
|
|
2758
|
+
const kind = decodeSign(decodeInteger(reader));
|
|
2759
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
2760
2760
|
const hasName = fields & 1;
|
|
2761
|
-
const scope = hasName ? [line, column, 0, 0, kind, decodeInteger(reader
|
|
2761
|
+
const scope = hasName ? [line, column, 0, 0, kind, decodeSign(decodeInteger(reader))] : [line, column, 0, 0, kind];
|
|
2762
2762
|
let vars = EMPTY;
|
|
2763
2763
|
if (hasMoreVlq(reader, length)) {
|
|
2764
2764
|
vars = [];
|
|
2765
2765
|
do {
|
|
2766
|
-
const varsIndex = decodeInteger(reader
|
|
2766
|
+
const varsIndex = decodeSign(decodeInteger(reader));
|
|
2767
2767
|
vars.push(varsIndex);
|
|
2768
2768
|
} while (hasMoreVlq(reader, length));
|
|
2769
2769
|
}
|
|
@@ -2784,14 +2784,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2784
2784
|
const scope = scopes[index];
|
|
2785
2785
|
const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;
|
|
2786
2786
|
if (index > 0) writer.write(comma);
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
encodeInteger(writer,
|
|
2787
|
+
encodeInteger(writer, encodeSign(startLine - state[0]));
|
|
2788
|
+
state[0] = startLine;
|
|
2789
|
+
encodeInteger(writer, encodeSign(startColumn));
|
|
2790
|
+
encodeInteger(writer, encodeSign(kind));
|
|
2790
2791
|
const fields = scope.length === 6 ? 1 : 0;
|
|
2791
|
-
encodeInteger(writer, fields
|
|
2792
|
-
if (scope.length === 6) encodeInteger(writer, scope[5]
|
|
2792
|
+
encodeInteger(writer, encodeSign(fields));
|
|
2793
|
+
if (scope.length === 6) encodeInteger(writer, encodeSign(scope[5]));
|
|
2793
2794
|
for (const v of vars) {
|
|
2794
|
-
encodeInteger(writer, v
|
|
2795
|
+
encodeInteger(writer, encodeSign(v));
|
|
2795
2796
|
}
|
|
2796
2797
|
for (index++; index < scopes.length; ) {
|
|
2797
2798
|
const next = scopes[index];
|
|
@@ -2802,8 +2803,9 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2802
2803
|
index = _encodeOriginalScopes(scopes, index, writer, state);
|
|
2803
2804
|
}
|
|
2804
2805
|
writer.write(comma);
|
|
2805
|
-
|
|
2806
|
-
|
|
2806
|
+
encodeInteger(writer, encodeSign(endLine - state[0]));
|
|
2807
|
+
state[0] = endLine;
|
|
2808
|
+
encodeInteger(writer, encodeSign(endColumn));
|
|
2807
2809
|
return index;
|
|
2808
2810
|
}
|
|
2809
2811
|
function decodeGeneratedRanges(input) {
|
|
@@ -2823,14 +2825,14 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2823
2825
|
const semi = reader.indexOf(";");
|
|
2824
2826
|
let genColumn = 0;
|
|
2825
2827
|
for (; reader.pos < semi; reader.pos++) {
|
|
2826
|
-
genColumn
|
|
2828
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
2827
2829
|
if (!hasMoreVlq(reader, semi)) {
|
|
2828
2830
|
const last = stack.pop();
|
|
2829
2831
|
last[2] = genLine;
|
|
2830
2832
|
last[3] = genColumn;
|
|
2831
2833
|
continue;
|
|
2832
2834
|
}
|
|
2833
|
-
const fields = decodeInteger(reader
|
|
2835
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
2834
2836
|
const hasDefinition = fields & 1;
|
|
2835
2837
|
const hasCallsite = fields & 2;
|
|
2836
2838
|
const hasScope = fields & 4;
|
|
@@ -2838,11 +2840,8 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2838
2840
|
let bindings = EMPTY;
|
|
2839
2841
|
let range;
|
|
2840
2842
|
if (hasDefinition) {
|
|
2841
|
-
const defSourcesIndex = decodeInteger(reader
|
|
2842
|
-
definitionScopeIndex = decodeInteger(
|
|
2843
|
-
reader,
|
|
2844
|
-
definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0
|
|
2845
|
-
);
|
|
2843
|
+
const defSourcesIndex = definitionSourcesIndex + decodeSign(decodeInteger(reader));
|
|
2844
|
+
definitionScopeIndex = decodeSign(decodeInteger(reader)) + (definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0);
|
|
2846
2845
|
definitionSourcesIndex = defSourcesIndex;
|
|
2847
2846
|
range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];
|
|
2848
2847
|
} else {
|
|
@@ -2852,13 +2851,10 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2852
2851
|
if (hasCallsite) {
|
|
2853
2852
|
const prevCsi = callsiteSourcesIndex;
|
|
2854
2853
|
const prevLine = callsiteLine;
|
|
2855
|
-
callsiteSourcesIndex
|
|
2854
|
+
callsiteSourcesIndex += decodeSign(decodeInteger(reader));
|
|
2856
2855
|
const sameSource = prevCsi === callsiteSourcesIndex;
|
|
2857
|
-
callsiteLine =
|
|
2858
|
-
callsiteColumn = decodeInteger(
|
|
2859
|
-
reader,
|
|
2860
|
-
sameSource && prevLine === callsiteLine ? callsiteColumn : 0
|
|
2861
|
-
);
|
|
2856
|
+
callsiteLine = (sameSource ? callsiteLine : 0) + decodeSign(decodeInteger(reader));
|
|
2857
|
+
callsiteColumn = (sameSource && prevLine === callsiteLine ? callsiteColumn : 0) + decodeSign(decodeInteger(reader));
|
|
2862
2858
|
callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];
|
|
2863
2859
|
}
|
|
2864
2860
|
range.callsite = callsite;
|
|
@@ -2867,15 +2863,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2867
2863
|
do {
|
|
2868
2864
|
bindingLine = genLine;
|
|
2869
2865
|
bindingColumn = genColumn;
|
|
2870
|
-
const expressionsCount = decodeInteger(reader
|
|
2866
|
+
const expressionsCount = decodeSign(decodeInteger(reader));
|
|
2871
2867
|
let expressionRanges;
|
|
2872
2868
|
if (expressionsCount < -1) {
|
|
2873
|
-
expressionRanges = [[decodeInteger(reader
|
|
2869
|
+
expressionRanges = [[decodeSign(decodeInteger(reader))]];
|
|
2874
2870
|
for (let i = -1; i > expressionsCount; i--) {
|
|
2875
2871
|
const prevBl = bindingLine;
|
|
2876
|
-
bindingLine
|
|
2877
|
-
bindingColumn =
|
|
2878
|
-
const expression = decodeInteger(reader
|
|
2872
|
+
bindingLine += decodeSign(decodeInteger(reader));
|
|
2873
|
+
bindingColumn = (bindingLine === prevBl ? bindingColumn : 0) + decodeSign(decodeInteger(reader));
|
|
2874
|
+
const expression = decodeSign(decodeInteger(reader));
|
|
2879
2875
|
expressionRanges.push([expression, bindingLine, bindingColumn]);
|
|
2880
2876
|
}
|
|
2881
2877
|
} else {
|
|
@@ -2919,16 +2915,19 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2919
2915
|
} else if (index > 0) {
|
|
2920
2916
|
writer.write(comma);
|
|
2921
2917
|
}
|
|
2922
|
-
|
|
2918
|
+
encodeInteger(writer, encodeSign(range[1] - state[1]));
|
|
2919
|
+
state[1] = range[1];
|
|
2923
2920
|
const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
|
|
2924
|
-
encodeInteger(writer, fields
|
|
2921
|
+
encodeInteger(writer, encodeSign(fields));
|
|
2925
2922
|
if (range.length === 6) {
|
|
2926
2923
|
const { 4: sourcesIndex, 5: scopesIndex } = range;
|
|
2927
2924
|
if (sourcesIndex !== state[2]) {
|
|
2928
2925
|
state[3] = 0;
|
|
2929
2926
|
}
|
|
2930
|
-
|
|
2931
|
-
state[
|
|
2927
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[2]));
|
|
2928
|
+
state[2] = sourcesIndex;
|
|
2929
|
+
encodeInteger(writer, encodeSign(scopesIndex - state[3]));
|
|
2930
|
+
state[3] = scopesIndex;
|
|
2932
2931
|
}
|
|
2933
2932
|
if (callsite) {
|
|
2934
2933
|
const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;
|
|
@@ -2938,22 +2937,27 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2938
2937
|
} else if (callLine !== state[5]) {
|
|
2939
2938
|
state[6] = 0;
|
|
2940
2939
|
}
|
|
2941
|
-
|
|
2942
|
-
state[
|
|
2943
|
-
|
|
2940
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[4]));
|
|
2941
|
+
state[4] = sourcesIndex;
|
|
2942
|
+
encodeInteger(writer, encodeSign(callLine - state[5]));
|
|
2943
|
+
state[5] = callLine;
|
|
2944
|
+
encodeInteger(writer, encodeSign(callColumn - state[6]));
|
|
2945
|
+
state[6] = callColumn;
|
|
2944
2946
|
}
|
|
2945
2947
|
if (bindings) {
|
|
2946
2948
|
for (const binding of bindings) {
|
|
2947
|
-
if (binding.length > 1) encodeInteger(writer, -binding.length
|
|
2949
|
+
if (binding.length > 1) encodeInteger(writer, encodeSign(-binding.length));
|
|
2948
2950
|
const expression = binding[0][0];
|
|
2949
|
-
encodeInteger(writer, expression
|
|
2951
|
+
encodeInteger(writer, encodeSign(expression));
|
|
2950
2952
|
let bindingStartLine = startLine;
|
|
2951
2953
|
let bindingStartColumn = startColumn;
|
|
2952
2954
|
for (let i = 1; i < binding.length; i++) {
|
|
2953
2955
|
const expRange = binding[i];
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
encodeInteger(writer, expRange[
|
|
2956
|
+
encodeInteger(writer, encodeSign(expRange[1] - bindingStartLine));
|
|
2957
|
+
bindingStartLine = expRange[1];
|
|
2958
|
+
encodeInteger(writer, encodeSign(expRange[2] - bindingStartColumn));
|
|
2959
|
+
bindingStartColumn = expRange[2];
|
|
2960
|
+
encodeInteger(writer, encodeSign(expRange[0]));
|
|
2957
2961
|
}
|
|
2958
2962
|
}
|
|
2959
2963
|
}
|
|
@@ -2972,7 +2976,8 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2972
2976
|
} else {
|
|
2973
2977
|
writer.write(comma);
|
|
2974
2978
|
}
|
|
2975
|
-
|
|
2979
|
+
encodeInteger(writer, encodeSign(endColumn - state[1]));
|
|
2980
|
+
state[1] = endColumn;
|
|
2976
2981
|
return index;
|
|
2977
2982
|
}
|
|
2978
2983
|
function catchupLine(writer, lastLine, line) {
|
|
@@ -2980,6 +2985,38 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2980
2985
|
writer.write(semicolon);
|
|
2981
2986
|
} while (++lastLine < line);
|
|
2982
2987
|
}
|
|
2988
|
+
function decodeRangeMappings(input) {
|
|
2989
|
+
const { length } = input;
|
|
2990
|
+
const reader = new StringReader(input);
|
|
2991
|
+
const rangeMappings = [];
|
|
2992
|
+
do {
|
|
2993
|
+
const semi = reader.indexOf(";");
|
|
2994
|
+
const indices = [];
|
|
2995
|
+
let index = 0;
|
|
2996
|
+
while (reader.pos < semi) {
|
|
2997
|
+
index += decodeInteger(reader);
|
|
2998
|
+
indices.push(index);
|
|
2999
|
+
}
|
|
3000
|
+
rangeMappings.push(indices);
|
|
3001
|
+
reader.pos = semi + 1;
|
|
3002
|
+
} while (reader.pos <= length);
|
|
3003
|
+
return rangeMappings;
|
|
3004
|
+
}
|
|
3005
|
+
function encodeRangeMappings(decoded) {
|
|
3006
|
+
if (decoded.length === 0) return "";
|
|
3007
|
+
const writer = new StringWriter();
|
|
3008
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
3009
|
+
const indices = decoded[i];
|
|
3010
|
+
if (i > 0) writer.write(semicolon);
|
|
3011
|
+
let index = 0;
|
|
3012
|
+
for (let j = 0; j < indices.length; j++) {
|
|
3013
|
+
const offset = indices[j];
|
|
3014
|
+
encodeInteger(writer, offset - index);
|
|
3015
|
+
index = offset;
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
return writer.flush();
|
|
3019
|
+
}
|
|
2983
3020
|
function decode(mappings) {
|
|
2984
3021
|
const { length } = mappings;
|
|
2985
3022
|
const reader = new StringReader(mappings);
|
|
@@ -2997,15 +3034,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
2997
3034
|
genColumn = 0;
|
|
2998
3035
|
while (reader.pos < semi) {
|
|
2999
3036
|
let seg;
|
|
3000
|
-
genColumn
|
|
3037
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
3001
3038
|
if (genColumn < lastCol) sorted = false;
|
|
3002
3039
|
lastCol = genColumn;
|
|
3003
3040
|
if (hasMoreVlq(reader, semi)) {
|
|
3004
|
-
sourcesIndex
|
|
3005
|
-
sourceLine
|
|
3006
|
-
sourceColumn
|
|
3041
|
+
sourcesIndex += decodeSign(decodeInteger(reader));
|
|
3042
|
+
sourceLine += decodeSign(decodeInteger(reader));
|
|
3043
|
+
sourceColumn += decodeSign(decodeInteger(reader));
|
|
3007
3044
|
if (hasMoreVlq(reader, semi)) {
|
|
3008
|
-
namesIndex
|
|
3045
|
+
namesIndex += decodeSign(decodeInteger(reader));
|
|
3009
3046
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
|
3010
3047
|
} else {
|
|
3011
3048
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
|
@@ -3042,13 +3079,18 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
3042
3079
|
for (let j = 0; j < line.length; j++) {
|
|
3043
3080
|
const segment = line[j];
|
|
3044
3081
|
if (j > 0) writer.write(comma);
|
|
3045
|
-
|
|
3082
|
+
encodeInteger(writer, encodeSign(segment[0] - genColumn));
|
|
3083
|
+
genColumn = segment[0];
|
|
3046
3084
|
if (segment.length === 1) continue;
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3085
|
+
encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
|
|
3086
|
+
encodeInteger(writer, encodeSign(segment[2] - sourceLine));
|
|
3087
|
+
encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
|
|
3088
|
+
sourcesIndex = segment[1];
|
|
3089
|
+
sourceLine = segment[2];
|
|
3090
|
+
sourceColumn = segment[3];
|
|
3050
3091
|
if (segment.length === 4) continue;
|
|
3051
|
-
|
|
3092
|
+
encodeInteger(writer, encodeSign(segment[4] - namesIndex));
|
|
3093
|
+
namesIndex = segment[4];
|
|
3052
3094
|
}
|
|
3053
3095
|
}
|
|
3054
3096
|
return writer.flush();
|
|
@@ -16053,9 +16095,9 @@ var require_lodash = __commonJS({
|
|
|
16053
16095
|
"use strict";
|
|
16054
16096
|
(function() {
|
|
16055
16097
|
var undefined2;
|
|
16056
|
-
var VERSION = "4.
|
|
16098
|
+
var VERSION = "4.18.1";
|
|
16057
16099
|
var LARGE_ARRAY_SIZE = 200;
|
|
16058
|
-
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
|
|
16100
|
+
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`";
|
|
16059
16101
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
16060
16102
|
var MAX_MEMOIZE_SIZE = 500;
|
|
16061
16103
|
var PLACEHOLDER = "__lodash_placeholder__";
|
|
@@ -17981,8 +18023,21 @@ var require_lodash = __commonJS({
|
|
|
17981
18023
|
}
|
|
17982
18024
|
function baseUnset(object, path) {
|
|
17983
18025
|
path = castPath(path, object);
|
|
17984
|
-
|
|
17985
|
-
|
|
18026
|
+
var index = -1, length = path.length;
|
|
18027
|
+
if (!length) {
|
|
18028
|
+
return true;
|
|
18029
|
+
}
|
|
18030
|
+
while (++index < length) {
|
|
18031
|
+
var key = toKey(path[index]);
|
|
18032
|
+
if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
|
|
18033
|
+
return false;
|
|
18034
|
+
}
|
|
18035
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
18036
|
+
return false;
|
|
18037
|
+
}
|
|
18038
|
+
}
|
|
18039
|
+
var obj = parent(object, path);
|
|
18040
|
+
return obj == null || delete obj[toKey(last(path))];
|
|
17986
18041
|
}
|
|
17987
18042
|
function baseUpdate(object, path, updater, customizer) {
|
|
17988
18043
|
return baseSet(object, path, updater(baseGet(object, path)), customizer);
|
|
@@ -19309,7 +19364,7 @@ var require_lodash = __commonJS({
|
|
|
19309
19364
|
var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
19310
19365
|
while (++index < length) {
|
|
19311
19366
|
var pair = pairs[index];
|
|
19312
|
-
result2
|
|
19367
|
+
baseAssignValue(result2, pair[0], pair[1]);
|
|
19313
19368
|
}
|
|
19314
19369
|
return result2;
|
|
19315
19370
|
}
|
|
@@ -20693,8 +20748,13 @@ var require_lodash = __commonJS({
|
|
|
20693
20748
|
options = undefined2;
|
|
20694
20749
|
}
|
|
20695
20750
|
string = toString(string);
|
|
20696
|
-
options =
|
|
20697
|
-
var imports =
|
|
20751
|
+
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
20752
|
+
var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
20753
|
+
arrayEach(importsKeys, function(key) {
|
|
20754
|
+
if (reForbiddenIdentifierChars.test(key)) {
|
|
20755
|
+
throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
|
|
20756
|
+
}
|
|
20757
|
+
});
|
|
20698
20758
|
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
20699
20759
|
var reDelimiters = RegExp2(
|
|
20700
20760
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
@@ -454259,7 +454319,7 @@ var init_cli_spinners = __esm({
|
|
|
454259
454319
|
});
|
|
454260
454320
|
|
|
454261
454321
|
// node_modules/yoctocolors/base.js
|
|
454262
|
-
var import_node_tty2, hasColors, format, reset, bold, dim, italic, underline, overline, inverse, hidden, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright;
|
|
454322
|
+
var import_node_tty2, hasColors, format, reset, bold, dim, italic, underline, underlineDouble, underlineCurly, underlineDotted, underlineDashed, overline, inverse, hidden, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright, underlineBlack, underlineRed, underlineGreen, underlineYellow, underlineBlue, underlineMagenta, underlineCyan, underlineWhite, underlineGray, underlineRedBright, underlineGreenBright, underlineYellowBright, underlineBlueBright, underlineMagentaBright, underlineCyanBright, underlineWhiteBright;
|
|
454263
454323
|
var init_base = __esm({
|
|
454264
454324
|
"node_modules/yoctocolors/base.js"() {
|
|
454265
454325
|
"use strict";
|
|
@@ -454295,6 +454355,10 @@ var init_base = __esm({
|
|
|
454295
454355
|
dim = format(2, 22);
|
|
454296
454356
|
italic = format(3, 23);
|
|
454297
454357
|
underline = format(4, 24);
|
|
454358
|
+
underlineDouble = format("4:2", 24);
|
|
454359
|
+
underlineCurly = format("4:3", 24);
|
|
454360
|
+
underlineDotted = format("4:4", 24);
|
|
454361
|
+
underlineDashed = format("4:5", 24);
|
|
454298
454362
|
overline = format(53, 55);
|
|
454299
454363
|
inverse = format(7, 27);
|
|
454300
454364
|
hidden = format(8, 28);
|
|
@@ -454331,6 +454395,22 @@ var init_base = __esm({
|
|
|
454331
454395
|
bgMagentaBright = format(105, 49);
|
|
454332
454396
|
bgCyanBright = format(106, 49);
|
|
454333
454397
|
bgWhiteBright = format(107, 49);
|
|
454398
|
+
underlineBlack = format("58;5;0", 59);
|
|
454399
|
+
underlineRed = format("58;5;1", 59);
|
|
454400
|
+
underlineGreen = format("58;5;2", 59);
|
|
454401
|
+
underlineYellow = format("58;5;3", 59);
|
|
454402
|
+
underlineBlue = format("58;5;4", 59);
|
|
454403
|
+
underlineMagenta = format("58;5;5", 59);
|
|
454404
|
+
underlineCyan = format("58;5;6", 59);
|
|
454405
|
+
underlineWhite = format("58;5;7", 59);
|
|
454406
|
+
underlineGray = format("58;5;8", 59);
|
|
454407
|
+
underlineRedBright = format("58;5;9", 59);
|
|
454408
|
+
underlineGreenBright = format("58;5;10", 59);
|
|
454409
|
+
underlineYellowBright = format("58;5;11", 59);
|
|
454410
|
+
underlineBlueBright = format("58;5;12", 59);
|
|
454411
|
+
underlineMagentaBright = format("58;5;13", 59);
|
|
454412
|
+
underlineCyanBright = format("58;5;14", 59);
|
|
454413
|
+
underlineWhiteBright = format("58;5;15", 59);
|
|
454334
454414
|
}
|
|
454335
454415
|
});
|
|
454336
454416
|
|
|
@@ -454393,7 +454473,7 @@ var init_log_symbols = __esm({
|
|
|
454393
454473
|
// node_modules/ora/node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
|
454394
454474
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
454395
454475
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
454396
|
-
const osc = `(?:\\u001B\\][\\
|
|
454476
|
+
const osc = `(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*${ST})`;
|
|
454397
454477
|
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
454398
454478
|
const pattern = `${osc}|${csi}`;
|
|
454399
454479
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
@@ -454409,6 +454489,9 @@ function stripAnsi(string) {
|
|
|
454409
454489
|
if (typeof string !== "string") {
|
|
454410
454490
|
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
454411
454491
|
}
|
|
454492
|
+
if (!string.includes("\x1B") && !string.includes("\x9B")) {
|
|
454493
|
+
return string;
|
|
454494
|
+
}
|
|
454412
454495
|
return string.replace(regex, "");
|
|
454413
454496
|
}
|
|
454414
454497
|
var regex;
|
|
@@ -454420,23 +454503,27 @@ var init_strip_ansi = __esm({
|
|
|
454420
454503
|
}
|
|
454421
454504
|
});
|
|
454422
454505
|
|
|
454423
|
-
// node_modules/
|
|
454424
|
-
var ambiguousRanges, fullwidthRanges,
|
|
454506
|
+
// node_modules/get-east-asian-width/lookup-data.js
|
|
454507
|
+
var ambiguousMinimalCodePoint, ambiguousMaximumCodePoint, ambiguousRanges, fullwidthMinimalCodePoint, fullwidthMaximumCodePoint, fullwidthRanges, wideMinimalCodePoint, wideMaximumCodePoint, wideRanges;
|
|
454425
454508
|
var init_lookup_data = __esm({
|
|
454426
|
-
"node_modules/
|
|
454509
|
+
"node_modules/get-east-asian-width/lookup-data.js"() {
|
|
454427
454510
|
"use strict";
|
|
454511
|
+
ambiguousMinimalCodePoint = 161;
|
|
454512
|
+
ambiguousMaximumCodePoint = 1114109;
|
|
454428
454513
|
ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
454514
|
+
fullwidthMinimalCodePoint = 12288;
|
|
454515
|
+
fullwidthMaximumCodePoint = 65510;
|
|
454429
454516
|
fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
454430
|
-
|
|
454431
|
-
|
|
454432
|
-
wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208,
|
|
454517
|
+
wideMinimalCodePoint = 4352;
|
|
454518
|
+
wideMaximumCodePoint = 262141;
|
|
454519
|
+
wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101594, 101631, 101664, 101760, 101874, 101888, 102801, 102816, 102866, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110888, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110952, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127406, 127406, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128729, 128732, 128735, 128747, 128748, 128756, 128764, 128986, 128986, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129734, 129736, 129736, 129740, 129757, 129759, 129771, 129775, 129786, 131072, 196605, 196608, 262141];
|
|
454433
454520
|
}
|
|
454434
454521
|
});
|
|
454435
454522
|
|
|
454436
|
-
// node_modules/
|
|
454523
|
+
// node_modules/get-east-asian-width/utilities.js
|
|
454437
454524
|
var isInRange;
|
|
454438
454525
|
var init_utilities2 = __esm({
|
|
454439
|
-
"node_modules/
|
|
454526
|
+
"node_modules/get-east-asian-width/utilities.js"() {
|
|
454440
454527
|
"use strict";
|
|
454441
454528
|
isInRange = (ranges, codePoint) => {
|
|
454442
454529
|
let low = 0;
|
|
@@ -454457,7 +454544,7 @@ var init_utilities2 = __esm({
|
|
|
454457
454544
|
}
|
|
454458
454545
|
});
|
|
454459
454546
|
|
|
454460
|
-
// node_modules/
|
|
454547
|
+
// node_modules/get-east-asian-width/lookup.js
|
|
454461
454548
|
function findWideFastPathRange(ranges) {
|
|
454462
454549
|
let fastPathStart = ranges[0];
|
|
454463
454550
|
let fastPathEnd = ranges[1];
|
|
@@ -454474,32 +454561,22 @@ function findWideFastPathRange(ranges) {
|
|
|
454474
454561
|
}
|
|
454475
454562
|
return [fastPathStart, fastPathEnd];
|
|
454476
454563
|
}
|
|
454477
|
-
var
|
|
454564
|
+
var commonCjkCodePoint, wideFastPathStart, wideFastPathEnd, isAmbiguous, isFullwidth, isWide;
|
|
454478
454565
|
var init_lookup = __esm({
|
|
454479
|
-
"node_modules/
|
|
454566
|
+
"node_modules/get-east-asian-width/lookup.js"() {
|
|
454480
454567
|
"use strict";
|
|
454481
454568
|
init_lookup_data();
|
|
454482
454569
|
init_utilities2();
|
|
454483
|
-
minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
454484
|
-
maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
454485
|
-
minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
454486
|
-
maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
454487
|
-
minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
454488
|
-
maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
454489
|
-
minimumNarrowCodePoint = narrowRanges[0];
|
|
454490
|
-
maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
454491
|
-
minimumWideCodePoint = wideRanges[0];
|
|
454492
|
-
maximumWideCodePoint = wideRanges.at(-1);
|
|
454493
454570
|
commonCjkCodePoint = 19968;
|
|
454494
|
-
[wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
454571
|
+
[wideFastPathStart, wideFastPathEnd] = /* @__PURE__ */ findWideFastPathRange(wideRanges);
|
|
454495
454572
|
isAmbiguous = (codePoint) => {
|
|
454496
|
-
if (codePoint <
|
|
454573
|
+
if (codePoint < ambiguousMinimalCodePoint || codePoint > ambiguousMaximumCodePoint) {
|
|
454497
454574
|
return false;
|
|
454498
454575
|
}
|
|
454499
454576
|
return isInRange(ambiguousRanges, codePoint);
|
|
454500
454577
|
};
|
|
454501
|
-
|
|
454502
|
-
if (codePoint <
|
|
454578
|
+
isFullwidth = (codePoint) => {
|
|
454579
|
+
if (codePoint < fullwidthMinimalCodePoint || codePoint > fullwidthMaximumCodePoint) {
|
|
454503
454580
|
return false;
|
|
454504
454581
|
}
|
|
454505
454582
|
return isInRange(fullwidthRanges, codePoint);
|
|
@@ -454508,7 +454585,7 @@ var init_lookup = __esm({
|
|
|
454508
454585
|
if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
|
|
454509
454586
|
return true;
|
|
454510
454587
|
}
|
|
454511
|
-
if (codePoint <
|
|
454588
|
+
if (codePoint < wideMinimalCodePoint || codePoint > wideMaximumCodePoint) {
|
|
454512
454589
|
return false;
|
|
454513
454590
|
}
|
|
454514
454591
|
return isInRange(wideRanges, codePoint);
|
|
@@ -454516,7 +454593,7 @@ var init_lookup = __esm({
|
|
|
454516
454593
|
}
|
|
454517
454594
|
});
|
|
454518
454595
|
|
|
454519
|
-
// node_modules/
|
|
454596
|
+
// node_modules/get-east-asian-width/index.js
|
|
454520
454597
|
function validate(codePoint) {
|
|
454521
454598
|
if (!Number.isSafeInteger(codePoint)) {
|
|
454522
454599
|
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
@@ -454524,13 +454601,13 @@ function validate(codePoint) {
|
|
|
454524
454601
|
}
|
|
454525
454602
|
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
454526
454603
|
validate(codePoint);
|
|
454527
|
-
if (
|
|
454604
|
+
if (isFullwidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
|
|
454528
454605
|
return 2;
|
|
454529
454606
|
}
|
|
454530
454607
|
return 1;
|
|
454531
454608
|
}
|
|
454532
454609
|
var init_get_east_asian_width = __esm({
|
|
454533
|
-
"node_modules/
|
|
454610
|
+
"node_modules/get-east-asian-width/index.js"() {
|
|
454534
454611
|
"use strict";
|
|
454535
454612
|
init_lookup();
|
|
454536
454613
|
}
|
|
@@ -454551,18 +454628,63 @@ function isDoubleWidthNonRgiEmojiSequence(segment) {
|
|
|
454551
454628
|
return false;
|
|
454552
454629
|
}
|
|
454553
454630
|
function baseVisible(segment) {
|
|
454554
|
-
|
|
454631
|
+
const index = segment.search(visibleCharacterRegex);
|
|
454632
|
+
return index === -1 ? void 0 : segment.slice(index);
|
|
454555
454633
|
}
|
|
454556
|
-
function
|
|
454557
|
-
return
|
|
454634
|
+
function isHangulLeadingJamo(codePoint) {
|
|
454635
|
+
return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
|
|
454558
454636
|
}
|
|
454559
|
-
function
|
|
454560
|
-
|
|
454561
|
-
|
|
454562
|
-
|
|
454563
|
-
|
|
454564
|
-
|
|
454637
|
+
function isHangulVowelJamo(codePoint) {
|
|
454638
|
+
return codePoint >= 4448 && codePoint <= 4519 || codePoint >= 55216 && codePoint <= 55238;
|
|
454639
|
+
}
|
|
454640
|
+
function isHangulTrailingJamo(codePoint) {
|
|
454641
|
+
return codePoint >= 4520 && codePoint <= 4607 || codePoint >= 55243 && codePoint <= 55291;
|
|
454642
|
+
}
|
|
454643
|
+
function isHangulJamo(codePoint) {
|
|
454644
|
+
return isHangulLeadingJamo(codePoint) || isHangulVowelJamo(codePoint) || isHangulTrailingJamo(codePoint);
|
|
454645
|
+
}
|
|
454646
|
+
function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) {
|
|
454647
|
+
const codePoints = [];
|
|
454648
|
+
for (const character of visibleSegment) {
|
|
454649
|
+
if (!visibleCharacterRegex.test(character)) {
|
|
454650
|
+
continue;
|
|
454651
|
+
}
|
|
454652
|
+
codePoints.push(character.codePointAt(0));
|
|
454653
|
+
}
|
|
454654
|
+
if (codePoints.length === 0) {
|
|
454655
|
+
return void 0;
|
|
454656
|
+
}
|
|
454657
|
+
let width = 0;
|
|
454658
|
+
for (let index = 0; index < codePoints.length; index++) {
|
|
454659
|
+
const codePoint = codePoints[index];
|
|
454660
|
+
if (!isHangulJamo(codePoint)) {
|
|
454661
|
+
if (width === 0) {
|
|
454662
|
+
return void 0;
|
|
454663
|
+
}
|
|
454664
|
+
for (let remaining = index; remaining < codePoints.length; remaining++) {
|
|
454665
|
+
width += eastAsianWidth(codePoints[remaining], eastAsianWidthOptions);
|
|
454565
454666
|
}
|
|
454667
|
+
return width;
|
|
454668
|
+
}
|
|
454669
|
+
if (isHangulLeadingJamo(codePoint) && isHangulVowelJamo(codePoints[index + 1])) {
|
|
454670
|
+
width += 2;
|
|
454671
|
+
index += isHangulTrailingJamo(codePoints[index + 2]) ? 2 : 1;
|
|
454672
|
+
continue;
|
|
454673
|
+
}
|
|
454674
|
+
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
454675
|
+
}
|
|
454676
|
+
return width;
|
|
454677
|
+
}
|
|
454678
|
+
function trailingWidth(visibleSegment, eastAsianWidthOptions) {
|
|
454679
|
+
let extra = 0;
|
|
454680
|
+
let first = true;
|
|
454681
|
+
for (const character of visibleSegment) {
|
|
454682
|
+
if (first) {
|
|
454683
|
+
first = false;
|
|
454684
|
+
continue;
|
|
454685
|
+
}
|
|
454686
|
+
if (spacingMarkRegex.test(character) || character >= "\uFF00" && character <= "\uFFEF") {
|
|
454687
|
+
extra += eastAsianWidth(character.codePointAt(0), eastAsianWidthOptions);
|
|
454566
454688
|
}
|
|
454567
454689
|
}
|
|
454568
454690
|
return extra;
|
|
@@ -454588,28 +454710,34 @@ function stringWidth(input, options = {}) {
|
|
|
454588
454710
|
let width = 0;
|
|
454589
454711
|
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
454590
454712
|
for (const { segment } of segmenter.segment(string)) {
|
|
454591
|
-
|
|
454713
|
+
const visibleSegment = baseVisible(segment);
|
|
454714
|
+
if (visibleSegment === void 0) {
|
|
454592
454715
|
continue;
|
|
454593
454716
|
}
|
|
454594
454717
|
if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
|
|
454595
454718
|
width += 2;
|
|
454596
454719
|
continue;
|
|
454597
454720
|
}
|
|
454598
|
-
const
|
|
454721
|
+
const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions);
|
|
454722
|
+
if (hangulWidth !== void 0) {
|
|
454723
|
+
width += hangulWidth;
|
|
454724
|
+
continue;
|
|
454725
|
+
}
|
|
454726
|
+
const codePoint = visibleSegment.codePointAt(0);
|
|
454599
454727
|
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
454600
|
-
width +=
|
|
454728
|
+
width += trailingWidth(visibleSegment, eastAsianWidthOptions);
|
|
454601
454729
|
}
|
|
454602
454730
|
return width;
|
|
454603
454731
|
}
|
|
454604
|
-
var segmenter,
|
|
454732
|
+
var segmenter, visibleCharacterRegex, spacingMarkRegex, rgiEmojiRegex, unqualifiedKeycapRegex, extendedPictographicRegex;
|
|
454605
454733
|
var init_string_width = __esm({
|
|
454606
454734
|
"node_modules/ora/node_modules/string-width/index.js"() {
|
|
454607
454735
|
"use strict";
|
|
454608
454736
|
init_strip_ansi();
|
|
454609
454737
|
init_get_east_asian_width();
|
|
454610
454738
|
segmenter = new Intl.Segmenter();
|
|
454611
|
-
|
|
454612
|
-
|
|
454739
|
+
visibleCharacterRegex = /[^\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Nonspacing_Mark}\p{Enclosing_Mark}\p{Surrogate}]/v;
|
|
454740
|
+
spacingMarkRegex = /\p{Spacing_Mark}/v;
|
|
454613
454741
|
rgiEmojiRegex = /^\p{RGI_Emoji}$/v;
|
|
454614
454742
|
unqualifiedKeycapRegex = /^[\d#*]\u20E3$/;
|
|
454615
454743
|
extendedPictographicRegex = /\p{Extended_Pictographic}/gu;
|