@putout/bundle 4.5.3 → 4.5.4

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/bundle/putout.js CHANGED
@@ -3020,83 +3020,6 @@ var _polyfillNode_util$1 = /*#__PURE__*/Object.freeze({
3020
3020
 
3021
3021
  var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_util$1);
3022
3022
 
3023
- var _polyfillNode_module = {};
3024
-
3025
- var _polyfillNode_module$1 = /*#__PURE__*/Object.freeze({
3026
- __proto__: null,
3027
- default: _polyfillNode_module
3028
- });
3029
-
3030
- var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_module$1);
3031
-
3032
- var require$$4 = [
3033
- "decodeURI",
3034
- "decodeURIComponent",
3035
- "encodeURI",
3036
- "encodeURIComponent",
3037
- "escape",
3038
- "eval",
3039
- "globalThis",
3040
- "isFinite",
3041
- "isNaN",
3042
- "parseFloat",
3043
- "parseInt",
3044
- "undefined",
3045
- "unescape"
3046
- ];
3047
-
3048
- var require$$5 = [
3049
- "AggregateError",
3050
- "Array",
3051
- "ArrayBuffer",
3052
- "Atomics",
3053
- "BigInt",
3054
- "BigInt64Array",
3055
- "BigUint64Array",
3056
- "Boolean",
3057
- "DataView",
3058
- "Date",
3059
- "Error",
3060
- "EvalError",
3061
- "FinalizationRegistry",
3062
- "Float16Array",
3063
- "Float32Array",
3064
- "Float64Array",
3065
- "Function",
3066
- "Infinity",
3067
- "Int16Array",
3068
- "Int32Array",
3069
- "Int8Array",
3070
- "Intl",
3071
- "Iterator",
3072
- "JSON",
3073
- "Map",
3074
- "Math",
3075
- "NaN",
3076
- "Number",
3077
- "Object",
3078
- "Promise",
3079
- "Proxy",
3080
- "RangeError",
3081
- "ReferenceError",
3082
- "Reflect",
3083
- "RegExp",
3084
- "Set",
3085
- "SharedArrayBuffer",
3086
- "String",
3087
- "Symbol",
3088
- "SyntaxError",
3089
- "TypeError",
3090
- "Uint16Array",
3091
- "Uint32Array",
3092
- "Uint8Array",
3093
- "Uint8ClampedArray",
3094
- "URIError",
3095
- "WeakMap",
3096
- "WeakRef",
3097
- "WeakSet"
3098
- ];
3099
-
3100
3023
  var __create$1 = Object.create;
3101
3024
  var __defProp$1 = Object.defineProperty;
3102
3025
  var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
@@ -4580,16 +4503,14 @@ typeof window !== 'undefined'
4580
4503
  // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
4581
4504
  typeof navigator !== 'undefined'
4582
4505
  && navigator.userAgent
4583
- && (m = navigator
4584
- .userAgent
4506
+ && (m = navigator.userAgent
4585
4507
  .toLowerCase()
4586
4508
  .match(/firefox\/(\d+)/))
4587
4509
  && parseInt(m[1], 10) >= 31
4588
4510
  || // Double check webkit in userAgent just in case we are in a worker
4589
4511
  typeof navigator !== 'undefined'
4590
4512
  && navigator.userAgent
4591
- && navigator
4592
- .userAgent
4513
+ && navigator.userAgent
4593
4514
  .toLowerCase()
4594
4515
  .match(/applewebkit\/(\d+)/);
4595
4516
  }
@@ -10989,7 +10910,6 @@ function isLVal$1(node, opts) {
10989
10910
  case 'MemberExpression':
10990
10911
  case 'ArrayPattern':
10991
10912
  case 'ObjectPattern':
10992
- case 'OptionalMemberExpression':
10993
10913
  case 'TSAsExpression':
10994
10914
  case 'TSSatisfiesExpression':
10995
10915
  case 'TSTypeAssertion':
@@ -12436,7 +12356,7 @@ defineType$4$1('ArrayExpression', {
12436
12356
  defineType$4$1('AssignmentExpression', {
12437
12357
  fields: {
12438
12358
  operator: {
12439
- validate: Object.assign(function() {
12359
+ validate: Object.assign((function() {
12440
12360
  const identifier4 = assertOneOf$1(...ASSIGNMENT_OPERATORS$1);
12441
12361
  const pattern = assertOneOf$1('=');
12442
12362
 
@@ -12444,7 +12364,7 @@ defineType$4$1('AssignmentExpression', {
12444
12364
  const validator = is$5('Pattern', node.left) ? pattern : identifier4;
12445
12365
  validator(node, key, val);
12446
12366
  };
12447
- }(), {
12367
+ })(), {
12448
12368
  oneOf: ASSIGNMENT_OPERATORS$1,
12449
12369
  }),
12450
12370
  },
@@ -12474,7 +12394,7 @@ defineType$4$1('BinaryExpression', {
12474
12394
  validate: assertOneOf$1(...BINARY_OPERATORS$1),
12475
12395
  },
12476
12396
  left: {
12477
- validate: function() {
12397
+ validate: (function() {
12478
12398
  const expression2 = assertNodeType$1('Expression');
12479
12399
  const inOp = assertNodeType$1('Expression', 'PrivateName');
12480
12400
  const validator = Object.assign(function(node, key, val) {
@@ -12485,7 +12405,7 @@ defineType$4$1('BinaryExpression', {
12485
12405
  });
12486
12406
 
12487
12407
  return validator;
12488
- }(),
12408
+ })(),
12489
12409
  },
12490
12410
  right: {
12491
12411
  validate: assertNodeType$1('Expression'),
@@ -12795,7 +12715,7 @@ defineType$4$1('FunctionDeclaration', {
12795
12715
  'Pureish',
12796
12716
  'Declaration',
12797
12717
  ],
12798
- validate: function() {
12718
+ validate: (function() {
12799
12719
  const identifier4 = assertNodeType$1('Identifier');
12800
12720
 
12801
12721
  return function(parent, key, node) {
@@ -12803,7 +12723,7 @@ defineType$4$1('FunctionDeclaration', {
12803
12723
  identifier4(node, 'id', node.id);
12804
12724
  }
12805
12725
  };
12806
- }(),
12726
+ })(),
12807
12727
  });
12808
12728
  defineType$4$1('FunctionExpression', {
12809
12729
  inherits: 'FunctionDeclaration',
@@ -13018,7 +12938,7 @@ defineType$4$1('RegExpLiteral', {
13018
12938
  },
13019
12939
  flags: {
13020
12940
  validate: chain$5(assertValueType$1('string'), Object.assign(function(node, key, val) {
13021
- const invalid = /[^gimsuy]/.exec(val);
12941
+ const invalid = /[^dgimsuvy]/.exec(val);
13022
12942
 
13023
12943
  if (invalid) {
13024
12944
  throw new TypeError(`"${invalid[0]}" is not a valid RegExp flag`);
@@ -13068,7 +12988,7 @@ defineType$4$1('MemberExpression', {
13068
12988
  validate: assertNodeType$1('Expression', 'Super'),
13069
12989
  },
13070
12990
  property: {
13071
- validate: function() {
12991
+ validate: (function() {
13072
12992
  const normal = assertNodeType$1('Identifier', 'PrivateName');
13073
12993
  const computed = assertNodeType$1('Expression');
13074
12994
  const validator = function(node, key, val) {
@@ -13082,7 +13002,7 @@ defineType$4$1('MemberExpression', {
13082
13002
  'PrivateName',
13083
13003
  ];
13084
13004
  return validator;
13085
- }(),
13005
+ })(),
13086
13006
  },
13087
13007
  computed: {
13088
13008
  default: false,
@@ -13155,7 +13075,7 @@ defineType$4$1('ObjectMethod', {
13155
13075
  default: false,
13156
13076
  },
13157
13077
  key: {
13158
- validate: function() {
13078
+ validate: (function() {
13159
13079
  const normal = assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral');
13160
13080
  const computed = assertNodeType$1('Expression');
13161
13081
  const validator = function(node, key, val) {
@@ -13171,7 +13091,7 @@ defineType$4$1('ObjectMethod', {
13171
13091
  'BigIntLiteral',
13172
13092
  ];
13173
13093
  return validator;
13174
- }(),
13094
+ })(),
13175
13095
  },
13176
13096
  decorators: {
13177
13097
  validate: arrayOfType$1('Decorator'),
@@ -13204,7 +13124,7 @@ defineType$4$1('ObjectProperty', {
13204
13124
  default: false,
13205
13125
  },
13206
13126
  key: {
13207
- validate: function() {
13127
+ validate: (function() {
13208
13128
  const normal = assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'PrivateName');
13209
13129
  const computed = assertNodeType$1('Expression');
13210
13130
  const validator = Object.assign(function(node, key, val) {
@@ -13222,7 +13142,7 @@ defineType$4$1('ObjectProperty', {
13222
13142
  });
13223
13143
 
13224
13144
  return validator;
13225
- }(),
13145
+ })(),
13226
13146
  },
13227
13147
  value: {
13228
13148
  validate: assertNodeType$1('Expression', 'PatternLike'),
@@ -13259,7 +13179,7 @@ defineType$4$1('ObjectProperty', {
13259
13179
  'Property',
13260
13180
  'ObjectMember',
13261
13181
  ],
13262
- validate: function() {
13182
+ validate: (function() {
13263
13183
  const pattern = assertNodeType$1('Identifier', 'Pattern', 'TSAsExpression', 'TSSatisfiesExpression', 'TSNonNullExpression', 'TSTypeAssertion');
13264
13184
  const expression2 = assertNodeType$1('Expression');
13265
13185
 
@@ -13267,7 +13187,7 @@ defineType$4$1('ObjectProperty', {
13267
13187
  const validator = is$5('ObjectPattern', parent) ? pattern : expression2;
13268
13188
  validator(node, 'value', node.value);
13269
13189
  };
13270
- }(),
13190
+ })(),
13271
13191
  });
13272
13192
  defineType$4$1('RestElement', {
13273
13193
  visitor: ['argument', 'typeAnnotation'],
@@ -13706,7 +13626,7 @@ defineType$4$1('ClassDeclaration', {
13706
13626
  optional: true,
13707
13627
  },
13708
13628
  },
13709
- validate: function() {
13629
+ validate: (function() {
13710
13630
  const identifier4 = assertNodeType$1('Identifier');
13711
13631
 
13712
13632
  return function(parent, key, node) {
@@ -13714,7 +13634,7 @@ defineType$4$1('ClassDeclaration', {
13714
13634
  identifier4(node, 'id', node.id);
13715
13635
  }
13716
13636
  };
13717
- }(),
13637
+ })(),
13718
13638
  });
13719
13639
  var importAttributes$1 = {
13720
13640
  attributes: {
@@ -13797,7 +13717,7 @@ defineType$4$1('ExportNamedDeclaration', {
13797
13717
  }, importAttributes$1, {
13798
13718
  specifiers: {
13799
13719
  default: [],
13800
- validate: arrayOf$1(function() {
13720
+ validate: arrayOf$1((function() {
13801
13721
  const sourced = assertNodeType$1('ExportSpecifier', 'ExportDefaultSpecifier', 'ExportNamespaceSpecifier');
13802
13722
  const sourceless = assertNodeType$1('ExportSpecifier');
13803
13723
 
@@ -13811,7 +13731,7 @@ defineType$4$1('ExportNamedDeclaration', {
13811
13731
  'ExportNamespaceSpecifier',
13812
13732
  ],
13813
13733
  });
13814
- }()),
13734
+ })()),
13815
13735
  },
13816
13736
  source: {
13817
13737
  validate: assertNodeType$1('StringLiteral'),
@@ -13858,7 +13778,7 @@ defineType$4$1('ForOfStatement', {
13858
13778
  ],
13859
13779
  fields: {
13860
13780
  left: {
13861
- validate: function() {
13781
+ validate: (function() {
13862
13782
  const declaration = assertNodeType$1('VariableDeclaration');
13863
13783
  const lval = assertNodeType$1('Identifier', 'MemberExpression', 'ArrayPattern', 'ObjectPattern', 'TSAsExpression', 'TSSatisfiesExpression', 'TSTypeAssertion', 'TSNonNullExpression');
13864
13784
 
@@ -13881,7 +13801,7 @@ defineType$4$1('ForOfStatement', {
13881
13801
  'TSNonNullExpression',
13882
13802
  ],
13883
13803
  });
13884
- }(),
13804
+ })(),
13885
13805
  },
13886
13806
  right: {
13887
13807
  validate: assertNodeType$1('Expression'),
@@ -14034,7 +13954,7 @@ var classMethodOrPropertyCommon$1 = () => ({
14034
13954
  optional: true,
14035
13955
  },
14036
13956
  key: {
14037
- validate: chain$5(function() {
13957
+ validate: chain$5((function() {
14038
13958
  const normal = assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral');
14039
13959
  const computed = assertNodeType$1('Expression');
14040
13960
 
@@ -14042,7 +13962,7 @@ var classMethodOrPropertyCommon$1 = () => ({
14042
13962
  const validator = node.computed ? computed : normal;
14043
13963
  validator(node, key, val);
14044
13964
  };
14045
- }(), assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'Expression')),
13965
+ })(), assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'Expression')),
14046
13966
  },
14047
13967
  });
14048
13968
 
@@ -14268,13 +14188,13 @@ defineType$4$1('OptionalMemberExpression', {
14268
14188
  'optional',
14269
14189
  ],
14270
14190
  visitor: ['object', 'property'],
14271
- aliases: ['Expression', 'LVal'],
14191
+ aliases: ['Expression'],
14272
14192
  fields: {
14273
14193
  object: {
14274
14194
  validate: assertNodeType$1('Expression'),
14275
14195
  },
14276
14196
  property: {
14277
- validate: function() {
14197
+ validate: (function() {
14278
14198
  const normal = assertNodeType$1('Identifier');
14279
14199
  const computed = assertNodeType$1('Expression');
14280
14200
  const validator = Object.assign(function(node, key, val) {
@@ -14285,7 +14205,7 @@ defineType$4$1('OptionalMemberExpression', {
14285
14205
  });
14286
14206
 
14287
14207
  return validator;
14288
- }(),
14208
+ })(),
14289
14209
  },
14290
14210
  computed: {
14291
14211
  default: false,
@@ -14387,7 +14307,7 @@ defineType$4$1('ClassAccessorProperty', {
14387
14307
  aliases: ['Property', 'Accessor'],
14388
14308
  fields: Object.assign({}, classMethodOrPropertyCommon$1(), {
14389
14309
  key: {
14390
- validate: chain$5(function() {
14310
+ validate: chain$5((function() {
14391
14311
  const normal = assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'PrivateName');
14392
14312
  const computed = assertNodeType$1('Expression');
14393
14313
 
@@ -14395,7 +14315,7 @@ defineType$4$1('ClassAccessorProperty', {
14395
14315
  const validator = node.computed ? computed : normal;
14396
14316
  validator(node, key, val);
14397
14317
  };
14398
- }(), assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'Expression', 'PrivateName')),
14318
+ })(), assertNodeType$1('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'Expression', 'PrivateName')),
14399
14319
  },
14400
14320
  value: {
14401
14321
  validate: assertNodeType$1('Expression'),
@@ -15801,6 +15721,7 @@ defineType$6('TSTypeOperator', {
15801
15721
  fields: {
15802
15722
  operator: {
15803
15723
  validate: assertOneOf$1('keyof', 'readonly', 'unique'),
15724
+ default: void 0,
15804
15725
  },
15805
15726
  typeAnnotation: validateType$1('TSType'),
15806
15727
  },
@@ -15857,7 +15778,7 @@ defineType$6('TSLiteralType', {
15857
15778
  visitor: ['literal'],
15858
15779
  fields: {
15859
15780
  literal: {
15860
- validate: function() {
15781
+ validate: (function() {
15861
15782
  const unaryExpression3 = assertNodeType$1('NumericLiteral', 'BigIntLiteral');
15862
15783
  const unaryOperator = assertOneOf$1('-');
15863
15784
  const literal = assertNodeType$1('NumericLiteral', 'StringLiteral', 'BooleanLiteral', 'BigIntLiteral', 'TemplateLiteral');
@@ -15880,7 +15801,7 @@ defineType$6('TSLiteralType', {
15880
15801
  'UnaryExpression',
15881
15802
  ];
15882
15803
  return validator;
15883
- }(),
15804
+ })(),
15884
15805
  },
15885
15806
  },
15886
15807
  });
@@ -22164,8 +22085,7 @@ function getNameFromLiteralId$1(id) {
22164
22085
  }
22165
22086
 
22166
22087
  if (isTemplateLiteral$5(id)) {
22167
- return id
22168
- .quasis
22088
+ return id.quasis
22169
22089
  .map((quasi) => quasi.value.raw)
22170
22090
  .join('');
22171
22091
  }
@@ -23364,7 +23284,6 @@ var estree$1 = (superClass) => class ESTreeParserMixin extends superClass {
23364
23284
  this.castNodeTo(node, 'ImportExpression');
23365
23285
  node.source = node.arguments[0];
23366
23286
  node.options = node.arguments[1] ?? null;
23367
- node.attributes = node.arguments[1] ?? null;
23368
23287
  delete node.arguments;
23369
23288
  delete node.callee;
23370
23289
  } else if (node.type === 'OptionalCallExpression') {
@@ -25575,7 +25494,8 @@ var flow$1 = (superClass) => class FlowParserMixin extends superClass {
25575
25494
  if (this.flowPragma === void 0) {
25576
25495
  const matches = FLOW_PRAGMA_REGEX$1.exec(comment.value);
25577
25496
 
25578
- if (!matches); else if (matches[1] === 'flow') {
25497
+ if (!matches);
25498
+ else if (matches[1] === 'flow') {
25579
25499
  this.flowPragma = 'flow';
25580
25500
  } else if (matches[1] === 'noflow') {
25581
25501
  this.flowPragma = 'noflow';
@@ -33155,6 +33075,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
33155
33075
  node.properties = [
33156
33076
  this.finishObjectProperty(withProperty),
33157
33077
  ];
33078
+ this.eat(12);
33158
33079
  this.expect(8);
33159
33080
  return this.finishNode(node, 'ObjectExpression');
33160
33081
  }
@@ -34866,6 +34787,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
34866
34787
  const asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startLoc);
34867
34788
 
34868
34789
  if (asyncArrowFn) {
34790
+ state.stop = true;
34869
34791
  return asyncArrowFn;
34870
34792
  }
34871
34793
  }
@@ -36216,6 +36138,11 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
36216
36138
  node.extends ?? (node.extends = []);
36217
36139
  return;
36218
36140
 
36141
+ case 'TSMappedType':
36142
+ node.optional ?? (node.optional = false);
36143
+ node.readonly ?? (node.readonly = void 0);
36144
+ return;
36145
+
36219
36146
  case 'TSModuleDeclaration':
36220
36147
  node.declare ?? (node.declare = false);
36221
36148
  node.global ?? (node.global = node.kind === 'global');
@@ -42103,8 +42030,7 @@ function populatePlaceholders$1(metadata, replacements) {
42103
42030
  });
42104
42031
  }
42105
42032
 
42106
- metadata
42107
- .placeholders
42033
+ metadata.placeholders
42108
42034
  .slice()
42109
42035
  .reverse()
42110
42036
  .forEach((placeholder2) => {
@@ -42376,8 +42302,7 @@ function extendedTrace$1(fn) {
42376
42302
  throw new Error();
42377
42303
  } catch(error) {
42378
42304
  if (error.stack) {
42379
- rootStack = error
42380
- .stack
42305
+ rootStack = error.stack
42381
42306
  .split('\n')
42382
42307
  .slice(3)
42383
42308
  .join('\n');
@@ -44993,10 +44918,6 @@ function NewExpression2$1(node, parent) {
44993
44918
 
44994
44919
  this.print(node.typeArguments);
44995
44920
 
44996
- if (node.optional) {
44997
- this.token('?.');
44998
- }
44999
-
45000
44921
  if (node.arguments.length === 0 && this.tokenMap && !this.tokenMap.endMatches(node, ')')) {
45001
44922
  return;
45002
44923
  }
@@ -49580,7 +49501,7 @@ function normalizeOptions$1(code2, opts, ast) {
49580
49501
  }
49581
49502
 
49582
49503
  if (!Array.isArray(ast.tokens)) {
49583
- throw new Error('`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.');
49504
+ throw new Error('`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.');
49584
49505
  }
49585
49506
  }
49586
49507
 
@@ -49654,6 +49575,78 @@ function generate$7(ast, opts = {}, code2) {
49654
49575
 
49655
49576
  // node_modules/@babel/traverse/lib/index.js
49656
49577
  var import_debug$1 = __toESM$1(require_src$1());
49578
+
49579
+ // node_modules/@babel/helper-globals/data/builtin-lower.json
49580
+ var builtin_lower_default = [
49581
+ 'decodeURI',
49582
+ 'decodeURIComponent',
49583
+ 'encodeURI',
49584
+ 'encodeURIComponent',
49585
+ 'escape',
49586
+ 'eval',
49587
+ 'globalThis',
49588
+ 'isFinite',
49589
+ 'isNaN',
49590
+ 'parseFloat',
49591
+ 'parseInt',
49592
+ 'undefined',
49593
+ 'unescape',
49594
+ ];
49595
+
49596
+ // node_modules/@babel/helper-globals/data/builtin-upper.json
49597
+ var builtin_upper_default = [
49598
+ 'AggregateError',
49599
+ 'Array',
49600
+ 'ArrayBuffer',
49601
+ 'Atomics',
49602
+ 'BigInt',
49603
+ 'BigInt64Array',
49604
+ 'BigUint64Array',
49605
+ 'Boolean',
49606
+ 'DataView',
49607
+ 'Date',
49608
+ 'Error',
49609
+ 'EvalError',
49610
+ 'FinalizationRegistry',
49611
+ 'Float16Array',
49612
+ 'Float32Array',
49613
+ 'Float64Array',
49614
+ 'Function',
49615
+ 'Infinity',
49616
+ 'Int16Array',
49617
+ 'Int32Array',
49618
+ 'Int8Array',
49619
+ 'Intl',
49620
+ 'Iterator',
49621
+ 'JSON',
49622
+ 'Map',
49623
+ 'Math',
49624
+ 'NaN',
49625
+ 'Number',
49626
+ 'Object',
49627
+ 'Promise',
49628
+ 'Proxy',
49629
+ 'RangeError',
49630
+ 'ReferenceError',
49631
+ 'Reflect',
49632
+ 'RegExp',
49633
+ 'Set',
49634
+ 'SharedArrayBuffer',
49635
+ 'String',
49636
+ 'Symbol',
49637
+ 'SyntaxError',
49638
+ 'TypeError',
49639
+ 'Uint16Array',
49640
+ 'Uint32Array',
49641
+ 'Uint8Array',
49642
+ 'Uint8ClampedArray',
49643
+ 'URIError',
49644
+ 'WeakMap',
49645
+ 'WeakRef',
49646
+ 'WeakSet',
49647
+ ];
49648
+
49649
+ // node_modules/@babel/traverse/lib/index.js
49657
49650
  var ReferencedIdentifier$1 = [
49658
49651
  'Identifier',
49659
49652
  'JSXIdentifier',
@@ -50011,7 +50004,7 @@ function verify$1$1(visitor) {
50011
50004
  continue;
50012
50005
 
50013
50006
  if (!TYPES2$1.includes(nodeType)) {
50014
- throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${'8.0.0-beta.1'}`);
50007
+ throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${'8.0.0-beta.2'}`);
50015
50008
  }
50016
50009
 
50017
50010
  const visitors2 = visitor[nodeType];
@@ -50464,9 +50457,6 @@ var cache$1 = /* @__PURE__ */Object.freeze({
50464
50457
  },
50465
50458
  });
50466
50459
 
50467
- var globalsBuiltinLower = require$$4;
50468
- var globalsBuiltinUpper = require$$5;
50469
-
50470
50460
  var {
50471
50461
  assignmentExpression: assignmentExpression$3$1,
50472
50462
  callExpression: callExpression$3$1,
@@ -50755,8 +50745,7 @@ var collectorVisitor$1 = {
50755
50745
  },
50756
50746
  },
50757
50747
  LabeledStatement(path) {
50758
- path
50759
- .scope
50748
+ path.scope
50760
50749
  .getBlockParent()
50761
50750
  .registerDeclaration(path);
50762
50751
  },
@@ -51509,7 +51498,8 @@ collectorVisitor$1]));
51509
51498
  const binding = scope2.getOwnBinding(name);
51510
51499
 
51511
51500
  if (binding) {
51512
- if (previousPath?.isPattern() && binding.kind !== 'param' && binding.kind !== 'local'); else {
51501
+ if (previousPath?.isPattern() && binding.kind !== 'param' && binding.kind !== 'local');
51502
+ else {
51513
51503
  return binding;
51514
51504
  }
51515
51505
  } else if (!binding && name === 'arguments' && scope2.path.isFunction() && !scope2.path.isArrowFunctionExpression()) {
@@ -51661,7 +51651,7 @@ collectorVisitor$1]));
51661
51651
  }
51662
51652
  };
51663
51653
 
51664
- __publicField$1(_Scope$1, 'globals', [...globalsBuiltinLower, ...globalsBuiltinUpper]);
51654
+ __publicField$1(_Scope$1, 'globals', [...builtin_lower_default, ...builtin_upper_default]);
51665
51655
  __publicField$1(_Scope$1, 'contextVariables', [
51666
51656
  'arguments',
51667
51657
  'undefined',
@@ -51875,6 +51865,7 @@ function infererReference$1(node) {
51875
51865
  } else if (node.name === 'NaN' || node.name === 'Infinity') {
51876
51866
  return numberTypeAnnotation$1$1();
51877
51867
  } else if (node.name === 'arguments');
51868
+
51878
51869
  }
51879
51870
 
51880
51871
  function getTypeAnnotationBindingConstantViolations$1(binding, path, name) {
@@ -52256,6 +52247,7 @@ function resolveCall$1(callee) {
52256
52247
  return callee.node.returnType;
52257
52248
  } else
52258
52249
  ;
52250
+
52259
52251
  }
52260
52252
  }
52261
52253
  }
@@ -52607,8 +52599,9 @@ function insertBefore$1(nodes_) {
52607
52599
  } else if (this.isStatementOrBlock()) {
52608
52600
  const node = this.node;
52609
52601
  const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null);
52610
- this.replaceWith(blockStatement$2$1(shouldInsertCurrentNode ? [node] : []));
52611
- return this.unshiftContainer('body', nodes2);
52602
+ const [blockPath] = this.replaceWith(blockStatement$2$1(shouldInsertCurrentNode ? [node] : []));
52603
+
52604
+ return blockPath.unshiftContainer('body', nodes2);
52612
52605
  } else {
52613
52606
  throw new Error('We don\'t know what to do with this node type. We were previously a Statement but we can\'t fit in here?');
52614
52607
  }
@@ -52726,8 +52719,9 @@ function insertAfter$2(nodes_) {
52726
52719
  } else if (this.isStatementOrBlock()) {
52727
52720
  const node = this.node;
52728
52721
  const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null);
52729
- this.replaceWith(blockStatement$2$1(shouldInsertCurrentNode ? [node] : []));
52730
- return this.pushContainer('body', nodes2);
52722
+ const [blockPath] = this.replaceWith(blockStatement$2$1(shouldInsertCurrentNode ? [node] : []));
52723
+
52724
+ return blockPath.pushContainer('body', nodes2);
52731
52725
  } else {
52732
52726
  throw new Error('We don\'t know what to do with this node type. We were previously a Statement but we can\'t fit in here?');
52733
52727
  }
@@ -52786,16 +52780,18 @@ function _verifyNodeList$1(nodes2) {
52786
52780
 
52787
52781
  function unshiftContainer$1(listKey, nodes2) {
52788
52782
  _assertUnremoved$1.call(this);
52789
- nodes2 = _verifyNodeList$1.call(this, nodes2);
52783
+ const verifiedNodes = _verifyNodeList$1.call(this, nodes2);
52784
+ const container = this.node[listKey];
52785
+
52790
52786
  const path = NodePath_Final$1.get({
52791
52787
  parentPath: this,
52792
52788
  parent: this.node,
52793
- container: this.node[listKey],
52789
+ container,
52794
52790
  listKey,
52795
52791
  key: 0,
52796
52792
  }).setContext(this.context);
52797
52793
 
52798
- return _containerInsertBefore$1.call(path, nodes2);
52794
+ return _containerInsertBefore$1.call(path, verifiedNodes);
52799
52795
  }
52800
52796
 
52801
52797
  function pushContainer$1(listKey, nodes2) {
@@ -52847,9 +52843,9 @@ var {
52847
52843
 
52848
52844
  function replaceWithMultiple$4(nodes2) {
52849
52845
  resync$1.call(this);
52850
- nodes2 = _verifyNodeList$1.call(this, nodes2);
52851
- inheritLeadingComments2$1(nodes2[0], this.node);
52852
- inheritTrailingComments2$1(nodes2[nodes2.length - 1], this.node);
52846
+ const verifiedNodes = _verifyNodeList$1.call(this, nodes2);
52847
+ inheritLeadingComments2$1(verifiedNodes[0], this.node);
52848
+ inheritTrailingComments2$1(verifiedNodes[verifiedNodes.length - 1], this.node);
52853
52849
  getCachedPaths$1(this)?.delete(this.node);
52854
52850
  this.node =
52855
52851
  this.container[this.key] = null;
@@ -117043,10 +117039,10 @@ var esprima$1 = /*#__PURE__*/Object.freeze({
117043
117039
  default: noop$3
117044
117040
  });
117045
117041
 
117046
- var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(esprima$1);
117042
+ var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(esprima$1);
117047
117043
 
117048
117044
  const once$4 = onceExports;
117049
- const initEsprima = once$4(() => require$$1$1);
117045
+ const initEsprima = once$4(() => require$$1$2);
117050
117046
 
117051
117047
  esprima$2.parse = function esprimaParse(source) {
117052
117048
  const {parse} = initEsprima();
@@ -125681,10 +125677,10 @@ var tenko_prod = /*#__PURE__*/Object.freeze({
125681
125677
  toktypeToString: toktypeToString
125682
125678
  });
125683
125679
 
125684
- var require$$1 = /*@__PURE__*/getAugmentedNamespace(tenko_prod);
125680
+ var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(tenko_prod);
125685
125681
 
125686
125682
  const once$3 = onceExports;
125687
- const initTenko = once$3(() => require$$1);
125683
+ const initTenko = once$3(() => require$$1$1);
125688
125684
 
125689
125685
  tenko$1.parse = (source) => {
125690
125686
  const {Tenko} = initTenko();
@@ -136285,6 +136281,15 @@ var loadPlugins$2 = {};
136285
136281
 
136286
136282
  var load = {};
136287
136283
 
136284
+ var _polyfillNode_module = {};
136285
+
136286
+ var _polyfillNode_module$1 = /*#__PURE__*/Object.freeze({
136287
+ __proto__: null,
136288
+ default: _polyfillNode_module
136289
+ });
136290
+
136291
+ var require$$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_module$1);
136292
+
136288
136293
  var hasRequiredLoad;
136289
136294
 
136290
136295
  function requireLoad () {
@@ -136292,7 +136297,7 @@ function requireLoad () {
136292
136297
  hasRequiredLoad = 1;
136293
136298
 
136294
136299
  const process = require$$0$3;
136295
- const {createRequire} = require$$1$2;
136300
+ const {createRequire} = require$$1;
136296
136301
  const {join} = require$$0$1;
136297
136302
  const tryCatch = tryCatch$7;
136298
136303
  const once = onceExports;