@putout/babel 2.3.0 → 2.4.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.
Files changed (2) hide show
  1. package/bundle/index.js +225 -961
  2. package/package.json +8 -8
package/bundle/index.js CHANGED
@@ -123,45 +123,6 @@ function _non_iterable_rest() {
123
123
  function _non_iterable_spread() {
124
124
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
125
125
  }
126
- function _object_spread(target) {
127
- for(var i = 1; i < arguments.length; i++){
128
- var source = arguments[i] != null ? arguments[i] : {};
129
- var ownKeys = Object.keys(source);
130
- if (typeof Object.getOwnPropertySymbols === "function") {
131
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
132
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
133
- }));
134
- }
135
- ownKeys.forEach(function(key) {
136
- _define_property(target, key, source[key]);
137
- });
138
- }
139
- return target;
140
- }
141
- function ownKeys(object, enumerableOnly) {
142
- var keys = Object.keys(object);
143
- if (Object.getOwnPropertySymbols) {
144
- var symbols = Object.getOwnPropertySymbols(object);
145
- if (enumerableOnly) {
146
- symbols = symbols.filter(function(sym) {
147
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
148
- });
149
- }
150
- keys.push.apply(keys, symbols);
151
- }
152
- return keys;
153
- }
154
- function _object_spread_props(target, source) {
155
- source = source != null ? source : {};
156
- if (Object.getOwnPropertyDescriptors) {
157
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
158
- } else {
159
- ownKeys(Object(source)).forEach(function(key) {
160
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
161
- });
162
- }
163
- return target;
164
- }
165
126
  function _possible_constructor_return(self, call) {
166
127
  if (call && (_type_of(call) === "object" || typeof call === "function")) {
167
128
  return call;
@@ -1293,6 +1254,62 @@ var require_js_tokens = __commonJS({
1293
1254
  };
1294
1255
  }
1295
1256
  });
1257
+ // node_modules/picocolors/picocolors.js
1258
+ var require_picocolors = __commonJS({
1259
+ "node_modules/picocolors/picocolors.js": function(exports2, module2) {
1260
+ var tty = require("tty");
1261
+ var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
1262
+ var formatter = function(open, close) {
1263
+ var replace = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : open;
1264
+ return function(input) {
1265
+ var string = "" + input;
1266
+ var index3 = string.indexOf(close, open.length);
1267
+ return ~index3 ? open + replaceClose(string, close, replace, index3) + close : open + string + close;
1268
+ };
1269
+ };
1270
+ var replaceClose = function(string, close, replace, index3) {
1271
+ var start = string.substring(0, index3) + replace;
1272
+ var end = string.substring(index3 + close.length);
1273
+ var nextIndex = end.indexOf(close);
1274
+ return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
1275
+ };
1276
+ var createColors3 = function() {
1277
+ var enabled = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : isColorSupported;
1278
+ return {
1279
+ isColorSupported: enabled,
1280
+ reset: enabled ? function(s) {
1281
+ return "\x1b[0m".concat(s, "\x1b[0m");
1282
+ } : String,
1283
+ bold: enabled ? formatter("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m") : String,
1284
+ dim: enabled ? formatter("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m") : String,
1285
+ italic: enabled ? formatter("\x1b[3m", "\x1b[23m") : String,
1286
+ underline: enabled ? formatter("\x1b[4m", "\x1b[24m") : String,
1287
+ inverse: enabled ? formatter("\x1b[7m", "\x1b[27m") : String,
1288
+ hidden: enabled ? formatter("\x1b[8m", "\x1b[28m") : String,
1289
+ strikethrough: enabled ? formatter("\x1b[9m", "\x1b[29m") : String,
1290
+ black: enabled ? formatter("\x1b[30m", "\x1b[39m") : String,
1291
+ red: enabled ? formatter("\x1b[31m", "\x1b[39m") : String,
1292
+ green: enabled ? formatter("\x1b[32m", "\x1b[39m") : String,
1293
+ yellow: enabled ? formatter("\x1b[33m", "\x1b[39m") : String,
1294
+ blue: enabled ? formatter("\x1b[34m", "\x1b[39m") : String,
1295
+ magenta: enabled ? formatter("\x1b[35m", "\x1b[39m") : String,
1296
+ cyan: enabled ? formatter("\x1b[36m", "\x1b[39m") : String,
1297
+ white: enabled ? formatter("\x1b[37m", "\x1b[39m") : String,
1298
+ gray: enabled ? formatter("\x1b[90m", "\x1b[39m") : String,
1299
+ bgBlack: enabled ? formatter("\x1b[40m", "\x1b[49m") : String,
1300
+ bgRed: enabled ? formatter("\x1b[41m", "\x1b[49m") : String,
1301
+ bgGreen: enabled ? formatter("\x1b[42m", "\x1b[49m") : String,
1302
+ bgYellow: enabled ? formatter("\x1b[43m", "\x1b[49m") : String,
1303
+ bgBlue: enabled ? formatter("\x1b[44m", "\x1b[49m") : String,
1304
+ bgMagenta: enabled ? formatter("\x1b[45m", "\x1b[49m") : String,
1305
+ bgCyan: enabled ? formatter("\x1b[46m", "\x1b[49m") : String,
1306
+ bgWhite: enabled ? formatter("\x1b[47m", "\x1b[49m") : String
1307
+ };
1308
+ };
1309
+ module2.exports = createColors3();
1310
+ module2.exports.createColors = createColors3;
1311
+ }
1312
+ });
1296
1313
  // node_modules/jsesc/jsesc.js
1297
1314
  var require_jsesc = __commonJS({
1298
1315
  "node_modules/jsesc/jsesc.js": function(exports2, module2) {
@@ -1666,7 +1683,7 @@ var require_ms = __commonJS({
1666
1683
  // node_modules/debug/src/common.js
1667
1684
  var require_common = __commonJS({
1668
1685
  "node_modules/debug/src/common.js": function(exports2, module2) {
1669
- function setup2(env2) {
1686
+ function setup2(env) {
1670
1687
  createDebug.debug = createDebug;
1671
1688
  createDebug.default = createDebug;
1672
1689
  createDebug.coerce = coerce;
@@ -1675,8 +1692,8 @@ var require_common = __commonJS({
1675
1692
  createDebug.enabled = enabled;
1676
1693
  createDebug.humanize = require_ms();
1677
1694
  createDebug.destroy = destroy;
1678
- Object.keys(env2).forEach(function(key) {
1679
- createDebug[key] = env2[key];
1695
+ Object.keys(env).forEach(function(key) {
1696
+ createDebug[key] = env[key];
1680
1697
  });
1681
1698
  createDebug.names = [];
1682
1699
  createDebug.skips = [];
@@ -2008,26 +2025,26 @@ var require_has_flag = __commonJS({
2008
2025
  var require_supports_color = __commonJS({
2009
2026
  "node_modules/supports-color/index.js": function(exports2, module2) {
2010
2027
  "use strict";
2011
- var os2 = require("os");
2012
- var tty2 = require("tty");
2013
- var hasFlag2 = require_has_flag();
2014
- var env2 = process.env;
2028
+ var os = require("os");
2029
+ var tty = require("tty");
2030
+ var hasFlag = require_has_flag();
2031
+ var env = process.env;
2015
2032
  var forceColor;
2016
- if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
2033
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
2017
2034
  forceColor = 0;
2018
- } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
2035
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
2019
2036
  forceColor = 1;
2020
2037
  }
2021
- if ("FORCE_COLOR" in env2) {
2022
- if (env2.FORCE_COLOR === "true") {
2038
+ if ("FORCE_COLOR" in env) {
2039
+ if (env.FORCE_COLOR === "true") {
2023
2040
  forceColor = 1;
2024
- } else if (env2.FORCE_COLOR === "false") {
2041
+ } else if (env.FORCE_COLOR === "false") {
2025
2042
  forceColor = 0;
2026
2043
  } else {
2027
- forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
2044
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
2028
2045
  }
2029
2046
  }
2030
- function translateLevel2(level) {
2047
+ function translateLevel(level) {
2031
2048
  if (level === 0) {
2032
2049
  return false;
2033
2050
  }
@@ -2038,31 +2055,31 @@ var require_supports_color = __commonJS({
2038
2055
  has16m: level >= 3
2039
2056
  };
2040
2057
  }
2041
- function supportsColor2(haveStream, streamIsTTY) {
2058
+ function supportsColor(haveStream, streamIsTTY) {
2042
2059
  if (forceColor === 0) {
2043
2060
  return 0;
2044
2061
  }
2045
- if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
2062
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
2046
2063
  return 3;
2047
2064
  }
2048
- if (hasFlag2("color=256")) {
2065
+ if (hasFlag("color=256")) {
2049
2066
  return 2;
2050
2067
  }
2051
2068
  if (haveStream && !streamIsTTY && forceColor === void 0) {
2052
2069
  return 0;
2053
2070
  }
2054
2071
  var min = forceColor || 0;
2055
- if (env2.TERM === "dumb") {
2072
+ if (env.TERM === "dumb") {
2056
2073
  return min;
2057
2074
  }
2058
2075
  if (process.platform === "win32") {
2059
- var osRelease = os2.release().split(".");
2076
+ var osRelease = os.release().split(".");
2060
2077
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
2061
2078
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
2062
2079
  }
2063
2080
  return 1;
2064
2081
  }
2065
- if ("CI" in env2) {
2082
+ if ("CI" in env) {
2066
2083
  if ([
2067
2084
  "TRAVIS",
2068
2085
  "CIRCLECI",
@@ -2071,53 +2088,53 @@ var require_supports_color = __commonJS({
2071
2088
  "GITHUB_ACTIONS",
2072
2089
  "BUILDKITE"
2073
2090
  ].some(function(sign) {
2074
- return sign in env2;
2075
- }) || env2.CI_NAME === "codeship") {
2091
+ return sign in env;
2092
+ }) || env.CI_NAME === "codeship") {
2076
2093
  return 1;
2077
2094
  }
2078
2095
  return min;
2079
2096
  }
2080
- if ("TEAMCITY_VERSION" in env2) {
2081
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
2097
+ if ("TEAMCITY_VERSION" in env) {
2098
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
2082
2099
  }
2083
- if (env2.COLORTERM === "truecolor") {
2100
+ if (env.COLORTERM === "truecolor") {
2084
2101
  return 3;
2085
2102
  }
2086
- if ("TERM_PROGRAM" in env2) {
2087
- var version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
2088
- switch(env2.TERM_PROGRAM){
2103
+ if ("TERM_PROGRAM" in env) {
2104
+ var version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
2105
+ switch(env.TERM_PROGRAM){
2089
2106
  case "iTerm.app":
2090
2107
  return version >= 3 ? 3 : 2;
2091
2108
  case "Apple_Terminal":
2092
2109
  return 2;
2093
2110
  }
2094
2111
  }
2095
- if (/-256(color)?$/i.test(env2.TERM)) {
2112
+ if (/-256(color)?$/i.test(env.TERM)) {
2096
2113
  return 2;
2097
2114
  }
2098
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
2115
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
2099
2116
  return 1;
2100
2117
  }
2101
- if ("COLORTERM" in env2) {
2118
+ if ("COLORTERM" in env) {
2102
2119
  return 1;
2103
2120
  }
2104
2121
  return min;
2105
2122
  }
2106
2123
  function getSupportLevel(stream) {
2107
- var level = supportsColor2(stream, stream && stream.isTTY);
2108
- return translateLevel2(level);
2124
+ var level = supportsColor(stream, stream && stream.isTTY);
2125
+ return translateLevel(level);
2109
2126
  }
2110
2127
  module2.exports = {
2111
2128
  supportsColor: getSupportLevel,
2112
- stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
2113
- stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
2129
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
2130
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
2114
2131
  };
2115
2132
  }
2116
2133
  });
2117
2134
  // node_modules/debug/src/node.js
2118
2135
  var require_node = __commonJS({
2119
2136
  "node_modules/debug/src/node.js": function(exports2, module2) {
2120
- var tty2 = require("tty");
2137
+ var tty = require("tty");
2121
2138
  var util = require("util");
2122
2139
  exports2.init = init;
2123
2140
  exports2.log = log;
@@ -2135,8 +2152,8 @@ var require_node = __commonJS({
2135
2152
  1
2136
2153
  ];
2137
2154
  try {
2138
- var supportsColor2 = require_supports_color();
2139
- if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
2155
+ var supportsColor = require_supports_color();
2156
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
2140
2157
  exports2.colors = [
2141
2158
  20,
2142
2159
  21,
@@ -2237,7 +2254,7 @@ var require_node = __commonJS({
2237
2254
  return obj;
2238
2255
  }, {});
2239
2256
  function useColors() {
2240
- return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
2257
+ return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
2241
2258
  }
2242
2259
  function formatArgs(args) {
2243
2260
  var _this = this, name = _this.namespace, useColors2 = _this.useColors;
@@ -20826,8 +20843,8 @@ function isPlainObject(value1) {
20826
20843
  if (typeof value1 !== "object" || value1 === null || Object.prototype.toString.call(value1) !== "[object Object]") {
20827
20844
  return false;
20828
20845
  }
20829
- var proto2 = Object.getPrototypeOf(value1);
20830
- return proto2 === null || Object.getPrototypeOf(proto2) === null;
20846
+ var proto = Object.getPrototypeOf(value1);
20847
+ return proto === null || Object.getPrototypeOf(proto) === null;
20831
20848
  }
20832
20849
  function valueToNode(value1) {
20833
20850
  if (value1 === void 0) {
@@ -38230,9 +38247,9 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
38230
38247
  this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
38231
38248
  kind: "destructuring"
38232
38249
  });
38233
- } else if (kind === "const" && !(this.match(58) || this.isContextual(102))) {
38250
+ } else if ((kind === "const" || kind === "using" || kind === "await using") && !(this.match(58) || this.isContextual(102))) {
38234
38251
  this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
38235
- kind: "const"
38252
+ kind: kind
38236
38253
  });
38237
38254
  }
38238
38255
  }
@@ -39678,790 +39695,13 @@ function getParserClass(pluginsFromOptions) {
39678
39695
  }
39679
39696
  // node_modules/@babel/highlight/lib/index.js
39680
39697
  var import_js_tokens = __toESM(require_js_tokens(), 1);
39681
- // node_modules/chalk/source/vendor/ansi-styles/index.js
39682
- var ANSI_BACKGROUND_OFFSET = 10;
39683
- var wrapAnsi16 = function() {
39684
- var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
39685
- return function(code2) {
39686
- return "\x1b[".concat(code2 + offset, "m");
39687
- };
39688
- };
39689
- var wrapAnsi256 = function() {
39690
- var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
39691
- return function(code2) {
39692
- return "\x1b[".concat(38 + offset, ";5;").concat(code2, "m");
39693
- };
39694
- };
39695
- var wrapAnsi16m = function() {
39696
- var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
39697
- return function(red, green, blue) {
39698
- return "\x1b[".concat(38 + offset, ";2;").concat(red, ";").concat(green, ";").concat(blue, "m");
39699
- };
39700
- };
39701
- var styles = {
39702
- modifier: {
39703
- reset: [
39704
- 0,
39705
- 0
39706
- ],
39707
- // 21 isn't widely supported and 22 does the same thing
39708
- bold: [
39709
- 1,
39710
- 22
39711
- ],
39712
- dim: [
39713
- 2,
39714
- 22
39715
- ],
39716
- italic: [
39717
- 3,
39718
- 23
39719
- ],
39720
- underline: [
39721
- 4,
39722
- 24
39723
- ],
39724
- overline: [
39725
- 53,
39726
- 55
39727
- ],
39728
- inverse: [
39729
- 7,
39730
- 27
39731
- ],
39732
- hidden: [
39733
- 8,
39734
- 28
39735
- ],
39736
- strikethrough: [
39737
- 9,
39738
- 29
39739
- ]
39740
- },
39741
- color: {
39742
- black: [
39743
- 30,
39744
- 39
39745
- ],
39746
- red: [
39747
- 31,
39748
- 39
39749
- ],
39750
- green: [
39751
- 32,
39752
- 39
39753
- ],
39754
- yellow: [
39755
- 33,
39756
- 39
39757
- ],
39758
- blue: [
39759
- 34,
39760
- 39
39761
- ],
39762
- magenta: [
39763
- 35,
39764
- 39
39765
- ],
39766
- cyan: [
39767
- 36,
39768
- 39
39769
- ],
39770
- white: [
39771
- 37,
39772
- 39
39773
- ],
39774
- // Bright color
39775
- blackBright: [
39776
- 90,
39777
- 39
39778
- ],
39779
- gray: [
39780
- 90,
39781
- 39
39782
- ],
39783
- // Alias of `blackBright`
39784
- grey: [
39785
- 90,
39786
- 39
39787
- ],
39788
- // Alias of `blackBright`
39789
- redBright: [
39790
- 91,
39791
- 39
39792
- ],
39793
- greenBright: [
39794
- 92,
39795
- 39
39796
- ],
39797
- yellowBright: [
39798
- 93,
39799
- 39
39800
- ],
39801
- blueBright: [
39802
- 94,
39803
- 39
39804
- ],
39805
- magentaBright: [
39806
- 95,
39807
- 39
39808
- ],
39809
- cyanBright: [
39810
- 96,
39811
- 39
39812
- ],
39813
- whiteBright: [
39814
- 97,
39815
- 39
39816
- ]
39817
- },
39818
- bgColor: {
39819
- bgBlack: [
39820
- 40,
39821
- 49
39822
- ],
39823
- bgRed: [
39824
- 41,
39825
- 49
39826
- ],
39827
- bgGreen: [
39828
- 42,
39829
- 49
39830
- ],
39831
- bgYellow: [
39832
- 43,
39833
- 49
39834
- ],
39835
- bgBlue: [
39836
- 44,
39837
- 49
39838
- ],
39839
- bgMagenta: [
39840
- 45,
39841
- 49
39842
- ],
39843
- bgCyan: [
39844
- 46,
39845
- 49
39846
- ],
39847
- bgWhite: [
39848
- 47,
39849
- 49
39850
- ],
39851
- // Bright color
39852
- bgBlackBright: [
39853
- 100,
39854
- 49
39855
- ],
39856
- bgGray: [
39857
- 100,
39858
- 49
39859
- ],
39860
- // Alias of `bgBlackBright`
39861
- bgGrey: [
39862
- 100,
39863
- 49
39864
- ],
39865
- // Alias of `bgBlackBright`
39866
- bgRedBright: [
39867
- 101,
39868
- 49
39869
- ],
39870
- bgGreenBright: [
39871
- 102,
39872
- 49
39873
- ],
39874
- bgYellowBright: [
39875
- 103,
39876
- 49
39877
- ],
39878
- bgBlueBright: [
39879
- 104,
39880
- 49
39881
- ],
39882
- bgMagentaBright: [
39883
- 105,
39884
- 49
39885
- ],
39886
- bgCyanBright: [
39887
- 106,
39888
- 49
39889
- ],
39890
- bgWhiteBright: [
39891
- 107,
39892
- 49
39893
- ]
39894
- }
39895
- };
39896
- var modifierNames = Object.keys(styles.modifier);
39897
- var foregroundColorNames = Object.keys(styles.color);
39898
- var backgroundColorNames = Object.keys(styles.bgColor);
39899
- var colorNames = _to_consumable_array(foregroundColorNames).concat(_to_consumable_array(backgroundColorNames));
39900
- function assembleStyles() {
39901
- var _styles;
39902
- var codes = /* @__PURE__ */ new Map();
39903
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
39904
- try {
39905
- for(var _iterator = Object.entries(styles)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
39906
- var _step_value = _sliced_to_array(_step.value, 2), groupName = _step_value[0], group = _step_value[1];
39907
- var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
39908
- try {
39909
- for(var _iterator1 = Object.entries(group)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
39910
- var _step_value1 = _sliced_to_array(_step1.value, 2), styleName = _step_value1[0], style = _step_value1[1];
39911
- styles[styleName] = {
39912
- open: "\x1b[".concat(style[0], "m"),
39913
- close: "\x1b[".concat(style[1], "m")
39914
- };
39915
- group[styleName] = styles[styleName];
39916
- codes.set(style[0], style[1]);
39917
- }
39918
- } catch (err) {
39919
- _didIteratorError1 = true;
39920
- _iteratorError1 = err;
39921
- } finally{
39922
- try {
39923
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
39924
- _iterator1.return();
39925
- }
39926
- } finally{
39927
- if (_didIteratorError1) {
39928
- throw _iteratorError1;
39929
- }
39930
- }
39931
- }
39932
- Object.defineProperty(styles, groupName, {
39933
- value: group,
39934
- enumerable: false
39935
- });
39936
- }
39937
- } catch (err) {
39938
- _didIteratorError = true;
39939
- _iteratorError = err;
39940
- } finally{
39941
- try {
39942
- if (!_iteratorNormalCompletion && _iterator.return != null) {
39943
- _iterator.return();
39944
- }
39945
- } finally{
39946
- if (_didIteratorError) {
39947
- throw _iteratorError;
39948
- }
39949
- }
39950
- }
39951
- Object.defineProperty(styles, "codes", {
39952
- value: codes,
39953
- enumerable: false
39954
- });
39955
- styles.color.close = "\x1b[39m";
39956
- styles.bgColor.close = "\x1b[49m";
39957
- styles.color.ansi = wrapAnsi16();
39958
- styles.color.ansi256 = wrapAnsi256();
39959
- styles.color.ansi16m = wrapAnsi16m();
39960
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
39961
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
39962
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
39963
- Object.defineProperties(styles, {
39964
- rgbToAnsi256: {
39965
- value: function value1(red, green, blue) {
39966
- if (red === green && green === blue) {
39967
- if (red < 8) {
39968
- return 16;
39969
- }
39970
- if (red > 248) {
39971
- return 231;
39972
- }
39973
- return Math.round((red - 8) / 247 * 24) + 232;
39974
- }
39975
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
39976
- },
39977
- enumerable: false
39978
- },
39979
- hexToRgb: {
39980
- value: function value1(hex) {
39981
- var matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
39982
- if (!matches) {
39983
- return [
39984
- 0,
39985
- 0,
39986
- 0
39987
- ];
39988
- }
39989
- var _matches = _sliced_to_array(matches, 1), colorString = _matches[0];
39990
- if (colorString.length === 3) {
39991
- colorString = _to_consumable_array(colorString).map(function(character) {
39992
- return character + character;
39993
- }).join("");
39994
- }
39995
- var integer = Number.parseInt(colorString, 16);
39996
- return [
39997
- /* eslint-disable no-bitwise */ integer >> 16 & 255,
39998
- integer >> 8 & 255,
39999
- integer & 255
40000
- ];
40001
- },
40002
- enumerable: false
40003
- },
40004
- hexToAnsi256: {
40005
- value: function(hex) {
40006
- return (_styles = styles).rgbToAnsi256.apply(_styles, _to_consumable_array(styles.hexToRgb(hex)));
40007
- },
40008
- enumerable: false
40009
- },
40010
- ansi256ToAnsi: {
40011
- value: function value1(code2) {
40012
- if (code2 < 8) {
40013
- return 30 + code2;
40014
- }
40015
- if (code2 < 16) {
40016
- return 90 + (code2 - 8);
40017
- }
40018
- var red;
40019
- var green;
40020
- var blue;
40021
- if (code2 >= 232) {
40022
- red = ((code2 - 232) * 10 + 8) / 255;
40023
- green = red;
40024
- blue = red;
40025
- } else {
40026
- code2 -= 16;
40027
- var remainder = code2 % 36;
40028
- red = Math.floor(code2 / 36) / 5;
40029
- green = Math.floor(remainder / 6) / 5;
40030
- blue = remainder % 6 / 5;
40031
- }
40032
- var value1 = Math.max(red, green, blue) * 2;
40033
- if (value1 === 0) {
40034
- return 30;
40035
- }
40036
- var result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
40037
- if (value1 === 2) {
40038
- result += 60;
40039
- }
40040
- return result;
40041
- },
40042
- enumerable: false
40043
- },
40044
- rgbToAnsi: {
40045
- value: function(red, green, blue) {
40046
- return styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue));
40047
- },
40048
- enumerable: false
40049
- },
40050
- hexToAnsi: {
40051
- value: function(hex) {
40052
- return styles.ansi256ToAnsi(styles.hexToAnsi256(hex));
40053
- },
40054
- enumerable: false
40055
- }
40056
- });
40057
- return styles;
40058
- }
40059
- var ansiStyles = assembleStyles();
40060
- var ansi_styles_default = ansiStyles;
40061
- // node_modules/chalk/source/vendor/supports-color/index.js
40062
- var import_node_process = __toESM(require("process"), 1);
40063
- var import_node_os = __toESM(require("os"), 1);
40064
- var import_node_tty = __toESM(require("tty"), 1);
40065
- function hasFlag(flag) {
40066
- var argv = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv;
40067
- var prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
40068
- var position = argv.indexOf(prefix2 + flag);
40069
- var terminatorPosition = argv.indexOf("--");
40070
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
40071
- }
40072
- var env = import_node_process.default.env;
40073
- var flagForceColor;
40074
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
40075
- flagForceColor = 0;
40076
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
40077
- flagForceColor = 1;
40078
- }
40079
- function envForceColor() {
40080
- if ("FORCE_COLOR" in env) {
40081
- if (env.FORCE_COLOR === "true") {
40082
- return 1;
40083
- }
40084
- if (env.FORCE_COLOR === "false") {
40085
- return 0;
40086
- }
40087
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
40088
- }
40089
- }
40090
- function translateLevel(level) {
40091
- if (level === 0) {
40092
- return false;
40093
- }
40094
- return {
40095
- level: level,
40096
- hasBasic: true,
40097
- has256: level >= 2,
40098
- has16m: level >= 3
40099
- };
40100
- }
40101
- function _supportsColor(haveStream) {
40102
- var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, streamIsTTY = _ref.streamIsTTY, _ref_sniffFlags = _ref.sniffFlags, sniffFlags = _ref_sniffFlags === void 0 ? true : _ref_sniffFlags;
40103
- var noFlagForceColor = envForceColor();
40104
- if (noFlagForceColor !== void 0) {
40105
- flagForceColor = noFlagForceColor;
40106
- }
40107
- var forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
40108
- if (forceColor === 0) {
40109
- return 0;
40110
- }
40111
- if (sniffFlags) {
40112
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
40113
- return 3;
40114
- }
40115
- if (hasFlag("color=256")) {
40116
- return 2;
40117
- }
40118
- }
40119
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
40120
- return 1;
40121
- }
40122
- if (haveStream && !streamIsTTY && forceColor === void 0) {
40123
- return 0;
40124
- }
40125
- var min = forceColor || 0;
40126
- if (env.TERM === "dumb") {
40127
- return min;
40128
- }
40129
- if (import_node_process.default.platform === "win32") {
40130
- var osRelease = import_node_os.default.release().split(".");
40131
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
40132
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
40133
- }
40134
- return 1;
40135
- }
40136
- if ("CI" in env) {
40137
- if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
40138
- return 3;
40139
- }
40140
- if ([
40141
- "TRAVIS",
40142
- "CIRCLECI",
40143
- "APPVEYOR",
40144
- "GITLAB_CI",
40145
- "BUILDKITE",
40146
- "DRONE"
40147
- ].some(function(sign) {
40148
- return sign in env;
40149
- }) || env.CI_NAME === "codeship") {
40150
- return 1;
40151
- }
40152
- return min;
40153
- }
40154
- if ("TEAMCITY_VERSION" in env) {
40155
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
40156
- }
40157
- if (env.COLORTERM === "truecolor") {
40158
- return 3;
40159
- }
40160
- if (env.TERM === "xterm-kitty") {
40161
- return 3;
40162
- }
40163
- if ("TERM_PROGRAM" in env) {
40164
- var version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
40165
- switch(env.TERM_PROGRAM){
40166
- case "iTerm.app":
40167
- {
40168
- return version >= 3 ? 3 : 2;
40169
- }
40170
- case "Apple_Terminal":
40171
- {
40172
- return 2;
40173
- }
40174
- }
40175
- }
40176
- if (/-256(color)?$/i.test(env.TERM)) {
40177
- return 2;
40178
- }
40179
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
40180
- return 1;
40181
- }
40182
- if ("COLORTERM" in env) {
40183
- return 1;
40184
- }
40185
- return min;
40186
- }
40187
- function createSupportsColor(stream) {
40188
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
40189
- var level = _supportsColor(stream, _object_spread({
40190
- streamIsTTY: stream && stream.isTTY
40191
- }, options));
40192
- return translateLevel(level);
40193
- }
40194
- var supportsColor = {
40195
- stdout: createSupportsColor({
40196
- isTTY: import_node_tty.default.isatty(1)
40197
- }),
40198
- stderr: createSupportsColor({
40199
- isTTY: import_node_tty.default.isatty(2)
40200
- })
40201
- };
40202
- var supports_color_default = supportsColor;
40203
- // node_modules/chalk/source/utilities.js
40204
- function stringReplaceAll(string, substring, replacer) {
40205
- var index3 = string.indexOf(substring);
40206
- if (index3 === -1) {
40207
- return string;
40208
- }
40209
- var substringLength = substring.length;
40210
- var endIndex = 0;
40211
- var returnValue = "";
40212
- do {
40213
- returnValue += string.slice(endIndex, index3) + substring + replacer;
40214
- endIndex = index3 + substringLength;
40215
- index3 = string.indexOf(substring, endIndex);
40216
- }while (index3 !== -1);
40217
- returnValue += string.slice(endIndex);
40218
- return returnValue;
40219
- }
40220
- function stringEncaseCRLFWithFirstIndex(string, prefix2, postfix2, index3) {
40221
- var endIndex = 0;
40222
- var returnValue = "";
40223
- do {
40224
- var gotCR = string[index3 - 1] === "\r";
40225
- returnValue += string.slice(endIndex, gotCR ? index3 - 1 : index3) + prefix2 + (gotCR ? "\r\n" : "\n") + postfix2;
40226
- endIndex = index3 + 1;
40227
- index3 = string.indexOf("\n", endIndex);
40228
- }while (index3 !== -1);
40229
- returnValue += string.slice(endIndex);
40230
- return returnValue;
40231
- }
40232
- // node_modules/chalk/source/index.js
40233
- var stdoutColor = supports_color_default.stdout, stderrColor = supports_color_default.stderr;
40234
- var GENERATOR = Symbol("GENERATOR");
40235
- var STYLER = Symbol("STYLER");
40236
- var IS_EMPTY = Symbol("IS_EMPTY");
40237
- var levelMapping = [
40238
- "ansi",
40239
- "ansi",
40240
- "ansi256",
40241
- "ansi16m"
40242
- ];
40243
- var styles2 = /* @__PURE__ */ Object.create(null);
40244
- var applyOptions = function(object) {
40245
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
40246
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
40247
- throw new Error("The `level` option should be an integer from 0 to 3");
40248
- }
40249
- var colorLevel = stdoutColor ? stdoutColor.level : 0;
40250
- object.level = options.level === void 0 ? colorLevel : options.level;
40251
- };
40252
- var Chalk = function Chalk(options) {
40253
- "use strict";
40254
- _class_call_check(this, Chalk);
40255
- return chalkFactory(options);
40256
- };
40257
- var chalkFactory = function(options) {
40258
- var chalk2 = function() {
40259
- for(var _len = arguments.length, strings = new Array(_len), _key = 0; _key < _len; _key++){
40260
- strings[_key] = arguments[_key];
40261
- }
40262
- return strings.join(" ");
39698
+ var import_picocolors = __toESM(require_picocolors(), 1);
39699
+ var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, import_picocolors.createColors)(false) : import_picocolors.default;
39700
+ var compose = function(f, g) {
39701
+ return function(v) {
39702
+ return f(g(v));
40263
39703
  };
40264
- applyOptions(chalk2, options);
40265
- Object.setPrototypeOf(chalk2, createChalk.prototype);
40266
- return chalk2;
40267
39704
  };
40268
- function createChalk(options) {
40269
- return chalkFactory(options);
40270
- }
40271
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
40272
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
40273
- try {
40274
- var _loop = function() {
40275
- var _step_value = _sliced_to_array(_step2.value, 2), styleName = _step_value[0], style = _step_value[1];
40276
- styles2[styleName] = {
40277
- get: function get() {
40278
- var builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
40279
- Object.defineProperty(this, styleName, {
40280
- value: builder
40281
- });
40282
- return builder;
40283
- }
40284
- };
40285
- };
40286
- for(var _iterator2 = Object.entries(ansi_styles_default)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true)_loop();
40287
- } catch (err) {
40288
- _didIteratorError2 = true;
40289
- _iteratorError2 = err;
40290
- } finally{
40291
- try {
40292
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
40293
- _iterator2.return();
40294
- }
40295
- } finally{
40296
- if (_didIteratorError2) {
40297
- throw _iteratorError2;
40298
- }
40299
- }
40300
- }
40301
- styles2.visible = {
40302
- get: function get() {
40303
- var builder = createBuilder(this, this[STYLER], true);
40304
- Object.defineProperty(this, "visible", {
40305
- value: builder
40306
- });
40307
- return builder;
40308
- }
40309
- };
40310
- var getModelAnsi = function(model, level, type) {
40311
- for(var _len = arguments.length, arguments_ = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
40312
- arguments_[_key - 3] = arguments[_key];
40313
- }
40314
- var _ansi_styles_default_type;
40315
- if (model === "rgb") {
40316
- var _ansi_styles_default;
40317
- if (level === "ansi16m") {
40318
- var _ansi_styles_default_type1;
40319
- return (_ansi_styles_default_type1 = ansi_styles_default[type]).ansi16m.apply(_ansi_styles_default_type1, _to_consumable_array(arguments_));
40320
- }
40321
- if (level === "ansi256") {
40322
- var _ansi_styles_default1;
40323
- return ansi_styles_default[type].ansi256((_ansi_styles_default1 = ansi_styles_default).rgbToAnsi256.apply(_ansi_styles_default1, _to_consumable_array(arguments_)));
40324
- }
40325
- return ansi_styles_default[type].ansi((_ansi_styles_default = ansi_styles_default).rgbToAnsi.apply(_ansi_styles_default, _to_consumable_array(arguments_)));
40326
- }
40327
- if (model === "hex") {
40328
- var _ansi_styles_default2;
40329
- return getModelAnsi.apply(void 0, [
40330
- "rgb",
40331
- level,
40332
- type
40333
- ].concat(_to_consumable_array((_ansi_styles_default2 = ansi_styles_default).hexToRgb.apply(_ansi_styles_default2, _to_consumable_array(arguments_)))));
40334
- }
40335
- return (_ansi_styles_default_type = ansi_styles_default[type])[model].apply(_ansi_styles_default_type, _to_consumable_array(arguments_));
40336
- };
40337
- var usedModels = [
40338
- "rgb",
40339
- "hex",
40340
- "ansi256"
40341
- ];
40342
- var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
40343
- try {
40344
- var _loop1 = function() {
40345
- var model = _step3.value;
40346
- styles2[model] = {
40347
- get: function get() {
40348
- var level = this.level;
40349
- return function() {
40350
- for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
40351
- arguments_[_key] = arguments[_key];
40352
- }
40353
- var styler = createStyler(getModelAnsi.apply(void 0, [
40354
- model,
40355
- levelMapping[level],
40356
- "color"
40357
- ].concat(_to_consumable_array(arguments_))), ansi_styles_default.color.close, this[STYLER]);
40358
- return createBuilder(this, styler, this[IS_EMPTY]);
40359
- };
40360
- }
40361
- };
40362
- var bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
40363
- styles2[bgModel] = {
40364
- get: function get() {
40365
- var level = this.level;
40366
- return function() {
40367
- for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
40368
- arguments_[_key] = arguments[_key];
40369
- }
40370
- var styler = createStyler(getModelAnsi.apply(void 0, [
40371
- model,
40372
- levelMapping[level],
40373
- "bgColor"
40374
- ].concat(_to_consumable_array(arguments_))), ansi_styles_default.bgColor.close, this[STYLER]);
40375
- return createBuilder(this, styler, this[IS_EMPTY]);
40376
- };
40377
- }
40378
- };
40379
- };
40380
- for(var _iterator3 = usedModels[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true)_loop1();
40381
- } catch (err) {
40382
- _didIteratorError3 = true;
40383
- _iteratorError3 = err;
40384
- } finally{
40385
- try {
40386
- if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
40387
- _iterator3.return();
40388
- }
40389
- } finally{
40390
- if (_didIteratorError3) {
40391
- throw _iteratorError3;
40392
- }
40393
- }
40394
- }
40395
- var proto = Object.defineProperties(function() {}, _object_spread_props(_object_spread({}, styles2), {
40396
- level: {
40397
- enumerable: true,
40398
- get: function get() {
40399
- return this[GENERATOR].level;
40400
- },
40401
- set: function set(level) {
40402
- this[GENERATOR].level = level;
40403
- }
40404
- }
40405
- }));
40406
- var createStyler = function(open, close, parent) {
40407
- var openAll;
40408
- var closeAll;
40409
- if (parent === void 0) {
40410
- openAll = open;
40411
- closeAll = close;
40412
- } else {
40413
- openAll = parent.openAll + open;
40414
- closeAll = close + parent.closeAll;
40415
- }
40416
- return {
40417
- open: open,
40418
- close: close,
40419
- openAll: openAll,
40420
- closeAll: closeAll,
40421
- parent: parent
40422
- };
40423
- };
40424
- var createBuilder = function(self, _styler, _isEmpty) {
40425
- var builder = function() {
40426
- for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
40427
- arguments_[_key] = arguments[_key];
40428
- }
40429
- return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
40430
- };
40431
- Object.setPrototypeOf(builder, proto);
40432
- builder[GENERATOR] = self;
40433
- builder[STYLER] = _styler;
40434
- builder[IS_EMPTY] = _isEmpty;
40435
- return builder;
40436
- };
40437
- var applyStyle = function(self, string) {
40438
- if (self.level <= 0 || !string) {
40439
- return self[IS_EMPTY] ? "" : string;
40440
- }
40441
- var styler = self[STYLER];
40442
- if (styler === void 0) {
40443
- return string;
40444
- }
40445
- var openAll = styler.openAll, closeAll = styler.closeAll;
40446
- if (string.includes("\x1b")) {
40447
- while(styler !== void 0){
40448
- string = stringReplaceAll(string, styler.close, styler.open);
40449
- styler = styler.parent;
40450
- }
40451
- }
40452
- var lfIndex = string.indexOf("\n");
40453
- if (lfIndex !== -1) {
40454
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
40455
- }
40456
- return openAll + string + closeAll;
40457
- };
40458
- Object.defineProperties(createChalk.prototype, styles2);
40459
- var chalk = createChalk();
40460
- var chalkStderr = createChalk({
40461
- level: stderrColor ? stderrColor.level : 0
40462
- });
40463
- var source_default = chalk;
40464
- // node_modules/@babel/highlight/lib/index.js
40465
39705
  var sometimesKeywords = /* @__PURE__ */ new Set([
40466
39706
  "as",
40467
39707
  "async",
@@ -40470,17 +39710,17 @@ var sometimesKeywords = /* @__PURE__ */ new Set([
40470
39710
  "of",
40471
39711
  "set"
40472
39712
  ]);
40473
- function getDefs(chalk2) {
39713
+ function getDefs(colors3) {
40474
39714
  return {
40475
- keyword: chalk2.cyan,
40476
- capitalized: chalk2.yellow,
40477
- jsxIdentifier: chalk2.yellow,
40478
- punctuator: chalk2.yellow,
40479
- number: chalk2.magenta,
40480
- string: chalk2.green,
40481
- regex: chalk2.magenta,
40482
- comment: chalk2.grey,
40483
- invalid: chalk2.white.bgRed.bold
39715
+ keyword: colors3.cyan,
39716
+ capitalized: colors3.yellow,
39717
+ jsxIdentifier: colors3.yellow,
39718
+ punctuator: colors3.yellow,
39719
+ number: colors3.magenta,
39720
+ string: colors3.green,
39721
+ regex: colors3.magenta,
39722
+ comment: colors3.gray,
39723
+ invalid: compose(compose(colors3.white, colors3.bgRed), colors3.bold)
40484
39724
  };
40485
39725
  }
40486
39726
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -40733,43 +39973,46 @@ var tokenize;
40733
39973
  return highlighted;
40734
39974
  }
40735
39975
  function shouldHighlight(options) {
40736
- return source_default.level > 0 || options.forceColor;
39976
+ return colors.isColorSupported || options.forceColor;
40737
39977
  }
40738
- var chalkWithForcedColor = void 0;
40739
- function getChalk(forceColor) {
39978
+ var pcWithForcedColor = void 0;
39979
+ function getColors(forceColor) {
40740
39980
  if (forceColor) {
40741
- chalkWithForcedColor !== null && chalkWithForcedColor !== void 0 ? chalkWithForcedColor : chalkWithForcedColor = new Chalk({
40742
- level: 1
40743
- });
40744
- return chalkWithForcedColor;
39981
+ pcWithForcedColor !== null && pcWithForcedColor !== void 0 ? pcWithForcedColor : pcWithForcedColor = (0, import_picocolors.createColors)(true);
39982
+ return pcWithForcedColor;
40745
39983
  }
40746
- return source_default;
39984
+ return colors;
40747
39985
  }
40748
39986
  function highlight(code2) {
40749
39987
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
40750
39988
  if (code2 !== "" && shouldHighlight(options)) {
40751
- var defs = getDefs(getChalk(options.forceColor));
39989
+ var defs = getDefs(getColors(options.forceColor));
40752
39990
  return highlightTokens(defs, code2);
40753
39991
  } else {
40754
39992
  return code2;
40755
39993
  }
40756
39994
  }
40757
39995
  // node_modules/@babel/code-frame/lib/index.js
40758
- var chalkWithForcedColor2 = void 0;
40759
- function getChalk2(forceColor) {
39996
+ var import_picocolors2 = __toESM(require_picocolors(), 1);
39997
+ var colors2 = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, import_picocolors2.createColors)(false) : import_picocolors2.default;
39998
+ var compose2 = function(f, g) {
39999
+ return function(v) {
40000
+ return f(g(v));
40001
+ };
40002
+ };
40003
+ var pcWithForcedColor2 = void 0;
40004
+ function getColors2(forceColor) {
40760
40005
  if (forceColor) {
40761
- chalkWithForcedColor2 !== null && chalkWithForcedColor2 !== void 0 ? chalkWithForcedColor2 : chalkWithForcedColor2 = new Chalk({
40762
- level: 1
40763
- });
40764
- return chalkWithForcedColor2;
40006
+ pcWithForcedColor2 !== null && pcWithForcedColor2 !== void 0 ? pcWithForcedColor2 : pcWithForcedColor2 = (0, import_picocolors2.createColors)(true);
40007
+ return pcWithForcedColor2;
40765
40008
  }
40766
- return source_default;
40009
+ return colors2;
40767
40010
  }
40768
- function getDefs2(chalk2) {
40011
+ function getDefs2(colors3) {
40769
40012
  return {
40770
- gutter: chalk2.grey,
40771
- marker: chalk2.red.bold,
40772
- message: chalk2.red.bold
40013
+ gutter: colors3.gray,
40014
+ marker: compose2(colors3.red, colors3.bold),
40015
+ message: compose2(colors3.red, colors3.bold)
40773
40016
  };
40774
40017
  }
40775
40018
  var NEWLINE2 = /\r\n|[\n\r\u2028\u2029]/;
@@ -40844,10 +40087,10 @@ function getMarkerLines(loc, source, opts) {
40844
40087
  function codeFrameColumns(rawLines, loc) {
40845
40088
  var opts = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
40846
40089
  var highlighted = (opts.highlightCode || opts.forceColor) && shouldHighlight(opts);
40847
- var chalk2 = getChalk2(opts.forceColor);
40848
- var defs = getDefs2(chalk2);
40849
- var maybeHighlight = function(chalkFn, string) {
40850
- return highlighted ? chalkFn(string) : string;
40090
+ var colors3 = getColors2(opts.forceColor);
40091
+ var defs = getDefs2(colors3);
40092
+ var maybeHighlight = function(fmt, string) {
40093
+ return highlighted ? fmt(string) : string;
40851
40094
  };
40852
40095
  var lines = rawLines.split(NEWLINE2);
40853
40096
  var _getMarkerLines = getMarkerLines(loc, lines, opts), start = _getMarkerLines.start, end = _getMarkerLines.end, markerLines = _getMarkerLines.markerLines;
@@ -40890,7 +40133,7 @@ function codeFrameColumns(rawLines, loc) {
40890
40133
  frame = "".concat(" ".repeat(numberMaxWidth + 1)).concat(opts.message, "\n").concat(frame);
40891
40134
  }
40892
40135
  if (highlighted) {
40893
- return chalk2.reset(frame);
40136
+ return colors3.reset(frame);
40894
40137
  } else {
40895
40138
  return frame;
40896
40139
  }
@@ -41385,9 +40628,6 @@ var index = Object.assign(smart.bind(void 0), {
41385
40628
  ast: smart.ast
41386
40629
  });
41387
40630
  // node_modules/@jridgewell/set-array/dist/set-array.mjs
41388
- var get;
41389
- var put;
41390
- var pop;
41391
40631
  var SetArray = function SetArray() {
41392
40632
  "use strict";
41393
40633
  _class_call_check(this, SetArray);
@@ -41396,23 +40636,19 @@ var SetArray = function SetArray() {
41396
40636
  };
41397
40637
  this.array = [];
41398
40638
  };
41399
- (function() {
41400
- get = function(strarr, key) {
41401
- return strarr._indexes[key];
41402
- };
41403
- put = function(strarr, key) {
41404
- var index3 = get(strarr, key);
41405
- if (index3 !== void 0) return index3;
41406
- var array = strarr.array, indexes = strarr._indexes;
41407
- return indexes[key] = array.push(key) - 1;
41408
- };
41409
- pop = function(strarr) {
41410
- var array = strarr.array, indexes = strarr._indexes;
41411
- if (array.length === 0) return;
41412
- var last2 = array.pop();
41413
- indexes[last2] = void 0;
41414
- };
41415
- })();
40639
+ function cast(set) {
40640
+ return set;
40641
+ }
40642
+ function get(setarr, key) {
40643
+ return cast(setarr)._indexes[key];
40644
+ }
40645
+ function put(setarr, key) {
40646
+ var index3 = get(setarr, key);
40647
+ if (index3 !== void 0) return index3;
40648
+ var _cast = cast(setarr), array = _cast.array, indexes = _cast._indexes;
40649
+ var length = array.push(key);
40650
+ return indexes[key] = length - 1;
40651
+ }
41416
40652
  // node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
41417
40653
  var comma = ",".charCodeAt(0);
41418
40654
  var semicolon = ";".charCodeAt(0);
@@ -41845,6 +41081,7 @@ var TraceMap = function TraceMap(map, mapUrl) {
41845
41081
  this.sourceRoot = sourceRoot;
41846
41082
  this.sources = sources;
41847
41083
  this.sourcesContent = sourcesContent;
41084
+ this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
41848
41085
  var from = resolve2(sourceRoot || "", stripFilename(mapUrl));
41849
41086
  this.resolvedSources = sources.map(function(s) {
41850
41087
  return resolve2(s || "", from);
@@ -41861,12 +41098,12 @@ var TraceMap = function TraceMap(map, mapUrl) {
41861
41098
  this._bySources = void 0;
41862
41099
  this._bySourceMemos = void 0;
41863
41100
  };
41864
- function cast(map) {
41101
+ function cast2(map) {
41865
41102
  return map;
41866
41103
  }
41867
41104
  function decodedMappings(map) {
41868
41105
  var _a;
41869
- return (_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded));
41106
+ return (_a = cast2(map))._decoded || (_a._decoded = decode(cast2(map)._encoded));
41870
41107
  }
41871
41108
  function originalPositionFor(map, needle) {
41872
41109
  var line = needle.line, column = needle.column, bias = needle.bias;
@@ -41876,7 +41113,7 @@ function originalPositionFor(map, needle) {
41876
41113
  var decoded = decodedMappings(map);
41877
41114
  if (line >= decoded.length) return OMapping(null, null, null, null);
41878
41115
  var segments = decoded[line];
41879
- var index3 = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
41116
+ var index3 = traceSegmentInternal(segments, cast2(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
41880
41117
  if (index3 === -1) return OMapping(null, null, null, null);
41881
41118
  var segment = segments[index3];
41882
41119
  if (segment.length === 1) return OMapping(null, null, null, null);
@@ -41916,19 +41153,21 @@ var GenMapping = function GenMapping() {
41916
41153
  this._mappings = [];
41917
41154
  this.file = file2;
41918
41155
  this.sourceRoot = sourceRoot;
41156
+ this._ignoreList = new SetArray();
41919
41157
  };
41920
- function cast2(map) {
41158
+ function cast3(map) {
41921
41159
  return map;
41922
41160
  }
41923
41161
  var maybeAddMapping = function(map, mapping) {
41924
41162
  return addMappingInternal(true, map, mapping);
41925
41163
  };
41926
41164
  function setSourceContent(map, source, content) {
41927
- var _cast2 = cast2(map), sources = _cast2._sources, sourcesContent = _cast2._sourcesContent;
41928
- sourcesContent[put(sources, source)] = content;
41165
+ var _cast3 = cast3(map), sources = _cast3._sources, sourcesContent = _cast3._sourcesContent;
41166
+ var index3 = put(sources, source);
41167
+ sourcesContent[index3] = content;
41929
41168
  }
41930
41169
  function toDecodedMap(map) {
41931
- var _cast2 = cast2(map), mappings = _cast2._mappings, sources = _cast2._sources, sourcesContent = _cast2._sourcesContent, names = _cast2._names;
41170
+ var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, sourcesContent = _cast3._sourcesContent, names = _cast3._names, ignoreList = _cast3._ignoreList;
41932
41171
  removeEmptyFinalLines(mappings);
41933
41172
  return {
41934
41173
  version: 3,
@@ -41937,7 +41176,8 @@ function toDecodedMap(map) {
41937
41176
  sourceRoot: map.sourceRoot || void 0,
41938
41177
  sources: sources.array,
41939
41178
  sourcesContent: sourcesContent,
41940
- mappings: mappings
41179
+ mappings: mappings,
41180
+ ignoreList: ignoreList.array
41941
41181
  };
41942
41182
  }
41943
41183
  function toEncodedMap(map) {
@@ -41948,7 +41188,7 @@ function toEncodedMap(map) {
41948
41188
  }
41949
41189
  function allMappings(map) {
41950
41190
  var out = [];
41951
- var _cast2 = cast2(map), mappings = _cast2._mappings, sources = _cast2._sources, names = _cast2._names;
41191
+ var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, names = _cast3._names;
41952
41192
  for(var i = 0; i < mappings.length; i++){
41953
41193
  var line = mappings[i];
41954
41194
  for(var j = 0; j < line.length; j++){
@@ -41979,7 +41219,7 @@ function allMappings(map) {
41979
41219
  return out;
41980
41220
  }
41981
41221
  function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
41982
- var _cast2 = cast2(map), mappings = _cast2._mappings, sources = _cast2._sources, sourcesContent = _cast2._sourcesContent, names = _cast2._names;
41222
+ var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, sourcesContent = _cast3._sourcesContent, names = _cast3._names;
41983
41223
  var line = getLine(mappings, genLine);
41984
41224
  var index3 = getColumnIndex(line, genColumn);
41985
41225
  if (!source) {
@@ -45515,7 +44755,7 @@ function TSIndexedAccessType(node) {
45515
44755
  this.tokenChar(93);
45516
44756
  }
45517
44757
  function TSMappedType(node) {
45518
- var nameType = node.nameType, optional = node.optional, readonly = node.readonly, typeParameter2 = node.typeParameter;
44758
+ var nameType = node.nameType, optional = node.optional, readonly = node.readonly, typeParameter2 = node.typeParameter, typeAnnotation2 = node.typeAnnotation;
45519
44759
  this.tokenChar(123);
45520
44760
  this.space();
45521
44761
  if (readonly) {
@@ -45540,9 +44780,11 @@ function TSMappedType(node) {
45540
44780
  tokenIfPlusMinus(this, optional);
45541
44781
  this.tokenChar(63);
45542
44782
  }
45543
- this.tokenChar(58);
45544
- this.space();
45545
- this.print(node.typeAnnotation, node);
44783
+ if (typeAnnotation2) {
44784
+ this.tokenChar(58);
44785
+ this.space();
44786
+ this.print(typeAnnotation2, node);
44787
+ }
45546
44788
  this.space();
45547
44789
  this.tokenChar(125);
45548
44790
  }
@@ -47283,7 +46525,7 @@ var virtualTypes = /* @__PURE__ */ Object.freeze({
47283
46525
  User: User,
47284
46526
  Var: Var
47285
46527
  });
47286
- var isBinding2 = lib_exports.isBinding, nodeIsBlockScoped = lib_exports.isBlockScoped, isExportDeclaration$1 = lib_exports.isExportDeclaration, nodeIsExpression = lib_exports.isExpression, nodeIsFlow = lib_exports.isFlow, isForStatement3 = lib_exports.isForStatement, isForXStatement2 = lib_exports.isForXStatement, isIdentifier$6 = lib_exports.isIdentifier, isImportDeclaration$1 = lib_exports.isImportDeclaration, isImportSpecifier2 = lib_exports.isImportSpecifier, isJSXIdentifier3 = lib_exports.isJSXIdentifier, isJSXMemberExpression2 = lib_exports.isJSXMemberExpression, isMemberExpression3 = lib_exports.isMemberExpression, nodeIsRestElement = lib_exports.isRestElement, nodeIsReferenced = lib_exports.isReferenced, nodeIsScope = lib_exports.isScope, nodeIsStatement = lib_exports.isStatement, nodeIsVar = lib_exports.isVar, isVariableDeclaration$2 = lib_exports.isVariableDeclaration, react$1 = lib_exports.react, isForOfStatement3 = lib_exports.isForOfStatement;
46528
+ var isBinding2 = lib_exports.isBinding, nodeIsBlockScoped = lib_exports.isBlockScoped, isExportDeclaration$1 = lib_exports.isExportDeclaration, nodeIsExpression = lib_exports.isExpression, nodeIsFlow = lib_exports.isFlow, isForStatement3 = lib_exports.isForStatement, isForXStatement2 = lib_exports.isForXStatement, isIdentifier$6 = lib_exports.isIdentifier, isImportDeclaration$1 = lib_exports.isImportDeclaration, isImportSpecifier2 = lib_exports.isImportSpecifier, isJSXIdentifier3 = lib_exports.isJSXIdentifier, isJSXMemberExpression2 = lib_exports.isJSXMemberExpression, isMemberExpression$12 = lib_exports.isMemberExpression, nodeIsRestElement = lib_exports.isRestElement, nodeIsReferenced = lib_exports.isReferenced, nodeIsScope = lib_exports.isScope, nodeIsStatement = lib_exports.isStatement, nodeIsVar = lib_exports.isVar, isVariableDeclaration$2 = lib_exports.isVariableDeclaration, react$1 = lib_exports.react, isForOfStatement3 = lib_exports.isForOfStatement;
47287
46529
  var isCompatTag2 = react$1.isCompatTag;
47288
46530
  function isReferencedIdentifier(opts) {
47289
46531
  var _this = this, node = _this.node, parent = _this.parent;
@@ -47298,7 +46540,7 @@ function isReferencedIdentifier(opts) {
47298
46540
  }
47299
46541
  function isReferencedMemberExpression() {
47300
46542
  var _this = this, node = _this.node, parent = _this.parent;
47301
- return isMemberExpression3(node) && nodeIsReferenced(node, parent);
46543
+ return isMemberExpression$12(node) && nodeIsReferenced(node, parent);
47302
46544
  }
47303
46545
  function isBindingIdentifier() {
47304
46546
  var _this = this, node = _this.node, parent = _this.parent;
@@ -48071,7 +47313,7 @@ function isDeclaredInLoop(path) {
48071
47313
  }
48072
47314
  return false;
48073
47315
  }
48074
- var NOT_LOCAL_BINDING3 = lib_exports.NOT_LOCAL_BINDING, callExpression$3 = lib_exports.callExpression, cloneNode$3 = lib_exports.cloneNode, getBindingIdentifiers$3 = lib_exports.getBindingIdentifiers, identifier$3 = lib_exports.identifier, isArrayExpression3 = lib_exports.isArrayExpression, isBinary3 = lib_exports.isBinary, isClass2 = lib_exports.isClass, isClassBody3 = lib_exports.isClassBody, isClassDeclaration3 = lib_exports.isClassDeclaration, isExportAllDeclaration2 = lib_exports.isExportAllDeclaration, isExportDefaultDeclaration3 = lib_exports.isExportDefaultDeclaration, isExportNamedDeclaration$1 = lib_exports.isExportNamedDeclaration, isFunctionDeclaration2 = lib_exports.isFunctionDeclaration, isIdentifier$5 = lib_exports.isIdentifier, isImportDeclaration2 = lib_exports.isImportDeclaration, isLiteral$12 = lib_exports.isLiteral, isMethod2 = lib_exports.isMethod, isModuleSpecifier2 = lib_exports.isModuleSpecifier, isNullLiteral3 = lib_exports.isNullLiteral, isObjectExpression3 = lib_exports.isObjectExpression, isProperty2 = lib_exports.isProperty, isPureish2 = lib_exports.isPureish, isRegExpLiteral3 = lib_exports.isRegExpLiteral, isSuper$1 = lib_exports.isSuper, isTaggedTemplateExpression2 = lib_exports.isTaggedTemplateExpression, isTemplateLiteral3 = lib_exports.isTemplateLiteral, isThisExpression2 = lib_exports.isThisExpression, isUnaryExpression2 = lib_exports.isUnaryExpression, isVariableDeclaration$1 = lib_exports.isVariableDeclaration, matchesPattern$1 = lib_exports.matchesPattern, memberExpression$1 = lib_exports.memberExpression, numericLiteral$2 = lib_exports.numericLiteral, toIdentifier2 = lib_exports.toIdentifier, variableDeclaration$1 = lib_exports.variableDeclaration, variableDeclarator$1 = lib_exports.variableDeclarator, isRecordExpression2 = lib_exports.isRecordExpression, isTupleExpression2 = lib_exports.isTupleExpression, isObjectProperty3 = lib_exports.isObjectProperty, isTopicReference2 = lib_exports.isTopicReference, isMetaProperty2 = lib_exports.isMetaProperty, isPrivateName2 = lib_exports.isPrivateName, isExportDeclaration3 = lib_exports.isExportDeclaration, buildUndefinedNode$1 = lib_exports.buildUndefinedNode;
47316
+ var NOT_LOCAL_BINDING3 = lib_exports.NOT_LOCAL_BINDING, callExpression$3 = lib_exports.callExpression, cloneNode$3 = lib_exports.cloneNode, getBindingIdentifiers$3 = lib_exports.getBindingIdentifiers, identifier$3 = lib_exports.identifier, isArrayExpression3 = lib_exports.isArrayExpression, isBinary3 = lib_exports.isBinary, isCallExpression$12 = lib_exports.isCallExpression, isClass2 = lib_exports.isClass, isClassBody3 = lib_exports.isClassBody, isClassDeclaration3 = lib_exports.isClassDeclaration, isExportAllDeclaration2 = lib_exports.isExportAllDeclaration, isExportDefaultDeclaration3 = lib_exports.isExportDefaultDeclaration, isExportNamedDeclaration$1 = lib_exports.isExportNamedDeclaration, isFunctionDeclaration2 = lib_exports.isFunctionDeclaration, isIdentifier$5 = lib_exports.isIdentifier, isImportDeclaration2 = lib_exports.isImportDeclaration, isLiteral$12 = lib_exports.isLiteral, isMemberExpression3 = lib_exports.isMemberExpression, isMethod2 = lib_exports.isMethod, isModuleSpecifier2 = lib_exports.isModuleSpecifier, isNullLiteral3 = lib_exports.isNullLiteral, isObjectExpression3 = lib_exports.isObjectExpression, isProperty2 = lib_exports.isProperty, isPureish2 = lib_exports.isPureish, isRegExpLiteral3 = lib_exports.isRegExpLiteral, isSuper$1 = lib_exports.isSuper, isTaggedTemplateExpression2 = lib_exports.isTaggedTemplateExpression, isTemplateLiteral3 = lib_exports.isTemplateLiteral, isThisExpression2 = lib_exports.isThisExpression, isUnaryExpression2 = lib_exports.isUnaryExpression, isVariableDeclaration$1 = lib_exports.isVariableDeclaration, matchesPattern$1 = lib_exports.matchesPattern, memberExpression$1 = lib_exports.memberExpression, numericLiteral$2 = lib_exports.numericLiteral, toIdentifier2 = lib_exports.toIdentifier, variableDeclaration$1 = lib_exports.variableDeclaration, variableDeclarator$1 = lib_exports.variableDeclarator, isRecordExpression2 = lib_exports.isRecordExpression, isTupleExpression2 = lib_exports.isTupleExpression, isObjectProperty3 = lib_exports.isObjectProperty, isTopicReference2 = lib_exports.isTopicReference, isMetaProperty2 = lib_exports.isMetaProperty, isPrivateName2 = lib_exports.isPrivateName, isExportDeclaration3 = lib_exports.isExportDeclaration, buildUndefinedNode$1 = lib_exports.buildUndefinedNode;
48075
47317
  function gatherNodeParts(node, parts) {
48076
47318
  switch(node === null || node === void 0 ? void 0 : node.type){
48077
47319
  default:
@@ -48975,8 +48217,6 @@ var _Scope = /*#__PURE__*/ function() {
48975
48217
  return true;
48976
48218
  } else if (isUnaryExpression2(node)) {
48977
48219
  return this.isPure(node.argument, constantsOnly);
48978
- } else if (isTaggedTemplateExpression2(node)) {
48979
- return matchesPattern$1(node.tag, "String.raw") && !this.hasBinding("String", true) && this.isPure(node.quasi, constantsOnly);
48980
48220
  } else if (isTemplateLiteral3(node)) {
48981
48221
  var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
48982
48222
  try {
@@ -48999,6 +48239,18 @@ var _Scope = /*#__PURE__*/ function() {
48999
48239
  }
49000
48240
  }
49001
48241
  return true;
48242
+ } else if (isTaggedTemplateExpression2(node)) {
48243
+ return matchesPattern$1(node.tag, "String.raw") && !this.hasBinding("String", {
48244
+ noGlobals: true
48245
+ }) && this.isPure(node.quasi, constantsOnly);
48246
+ } else if (isMemberExpression3(node)) {
48247
+ return !node.computed && isIdentifier$5(node.object) && node.object.name === "Symbol" && isIdentifier$5(node.property) && node.property.name !== "for" && !this.hasBinding("Symbol", {
48248
+ noGlobals: true
48249
+ });
48250
+ } else if (isCallExpression$12(node)) {
48251
+ return matchesPattern$1(node.callee, "Symbol.for") && !this.hasBinding("Symbol", {
48252
+ noGlobals: true
48253
+ }) && node.arguments.length === 1 && isStringLiteral(node.arguments[0]);
49002
48254
  } else {
49003
48255
  return isPureish2(node);
49004
48256
  }
@@ -49205,9 +48457,9 @@ var _Scope = /*#__PURE__*/ function() {
49205
48457
  path = (this.getFunctionParent() || this.getProgramParent()).path;
49206
48458
  }
49207
48459
  var init = opts.init, unique = opts.unique, _opts_kind = opts.kind, kind = _opts_kind === void 0 ? "var" : _opts_kind, id = opts.id;
49208
- if (!init && !unique && (kind === "var" || kind === "let") && path.isFunction() && !path.node.name && isCallExpression(path.parent, {
48460
+ if (!init && !unique && (kind === "var" || kind === "let") && path.isFunction() && !path.node.name && isCallExpression$12(path.parent, {
49209
48461
  callee: path.node
49210
- }) && path.parent.arguments.length <= path.node.params.length && isIdentifier(id)) {
48462
+ }) && path.parent.arguments.length <= path.node.params.length && isIdentifier$5(id)) {
49211
48463
  path.pushContainer("params", id);
49212
48464
  path.scope.registerBinding("param", path.get("params")[path.node.params.length - 1]);
49213
48465
  return;
@@ -51722,6 +50974,18 @@ function isConstantExpression() {
51722
50974
  var operator = this.node.operator;
51723
50975
  return operator !== "in" && operator !== "instanceof" && this.get("left").isConstantExpression() && this.get("right").isConstantExpression();
51724
50976
  }
50977
+ if (this.isMemberExpression()) {
50978
+ return !this.node.computed && this.get("object").isIdentifier({
50979
+ name: "Symbol"
50980
+ }) && !this.scope.hasBinding("Symbol", {
50981
+ noGlobals: true
50982
+ });
50983
+ }
50984
+ if (this.isCallExpression()) {
50985
+ return this.node.arguments.length === 1 && this.get("callee").matchesPattern("Symbol.for") && !this.scope.hasBinding("Symbol", {
50986
+ noGlobals: true
50987
+ }) && this.get("arguments")[0].isStringLiteral();
50988
+ }
51725
50989
  return false;
51726
50990
  }
51727
50991
  function isInStrictMode() {
@@ -52095,7 +51359,7 @@ var hooks = [
52095
51359
  }
52096
51360
  ];
52097
51361
  var getBindingIdentifiers$1 = lib_exports.getBindingIdentifiers;
52098
- function remove() {
51362
+ function remove2() {
52099
51363
  var _this_opts;
52100
51364
  this._assertUnremoved();
52101
51365
  this.resync();
@@ -52168,7 +51432,7 @@ var NodePath_removal = /* @__PURE__ */ Object.freeze({
52168
51432
  _markRemoved: _markRemoved,
52169
51433
  _remove: _remove,
52170
51434
  _removeFromScope: _removeFromScope,
52171
- remove: remove
51435
+ remove: remove2
52172
51436
  });
52173
51437
  var react2 = lib_exports.react;
52174
51438
  var cloneNode$1 = lib_exports.cloneNode, jsxExpressionContainer2 = lib_exports.jsxExpressionContainer, variableDeclaration3 = lib_exports.variableDeclaration, variableDeclarator3 = lib_exports.variableDeclarator;
@@ -53316,10 +52580,10 @@ var NodePath = /*#__PURE__*/ function() {
53316
52580
  return _NodePath;
53317
52581
  }();
53318
52582
  Object.assign(NodePath.prototype, NodePath_ancestry, NodePath_inference, NodePath_replacement, NodePath_evaluation, NodePath_conversion, NodePath_introspection, NodePath_context, NodePath_removal, NodePath_modification, NodePath_family, NodePath_comments);
53319
- var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = undefined;
52583
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
53320
52584
  try {
53321
- var _loop2 = function() {
53322
- var type = _step4.value;
52585
+ var _loop = function() {
52586
+ var type = _step2.value;
53323
52587
  var typeKey = "is".concat(type);
53324
52588
  var fn = lib_exports[typeKey];
53325
52589
  NodePath.prototype[typeKey] = function(opts) {
@@ -53331,40 +52595,40 @@ try {
53331
52595
  }
53332
52596
  };
53333
52597
  };
53334
- for(var _iterator4 = TYPES[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true)_loop2();
52598
+ for(var _iterator2 = TYPES[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true)_loop();
53335
52599
  } catch (err) {
53336
- _didIteratorError4 = true;
53337
- _iteratorError4 = err;
52600
+ _didIteratorError2 = true;
52601
+ _iteratorError2 = err;
53338
52602
  } finally{
53339
52603
  try {
53340
- if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
53341
- _iterator4.return();
52604
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
52605
+ _iterator2.return();
53342
52606
  }
53343
52607
  } finally{
53344
- if (_didIteratorError4) {
53345
- throw _iteratorError4;
52608
+ if (_didIteratorError2) {
52609
+ throw _iteratorError2;
53346
52610
  }
53347
52611
  }
53348
52612
  }
53349
52613
  Object.assign(NodePath.prototype, NodePath_virtual_types_validator);
53350
- var _iteratorNormalCompletion5 = true, _didIteratorError5 = false, _iteratorError5 = undefined;
52614
+ var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
53351
52615
  try {
53352
- for(var _iterator5 = Object.keys(virtualTypes)[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true){
53353
- var type2 = _step5.value;
52616
+ for(var _iterator3 = Object.keys(virtualTypes)[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true){
52617
+ var type2 = _step3.value;
53354
52618
  if (type2[0] === "_") continue;
53355
52619
  if (!TYPES.includes(type2)) TYPES.push(type2);
53356
52620
  }
53357
52621
  } catch (err) {
53358
- _didIteratorError5 = true;
53359
- _iteratorError5 = err;
52622
+ _didIteratorError3 = true;
52623
+ _iteratorError3 = err;
53360
52624
  } finally{
53361
52625
  try {
53362
- if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
53363
- _iterator5.return();
52626
+ if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
52627
+ _iterator3.return();
53364
52628
  }
53365
52629
  } finally{
53366
- if (_didIteratorError5) {
53367
- throw _iteratorError5;
52630
+ if (_didIteratorError3) {
52631
+ throw _iteratorError3;
53368
52632
  }
53369
52633
  }
53370
52634
  }