@putout/bundle 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle/putout.js CHANGED
@@ -178,15 +178,15 @@ var versions = {};
178
178
  var release = {};
179
179
  var config = {};
180
180
 
181
- function noop$6() {}
181
+ function noop$7() {}
182
182
 
183
- var on = noop$6;
184
- var addListener = noop$6;
185
- var once$a = noop$6;
186
- var off = noop$6;
187
- var removeListener = noop$6;
188
- var removeAllListeners = noop$6;
189
- var emit = noop$6;
183
+ var on = noop$7;
184
+ var addListener = noop$7;
185
+ var once$a = noop$7;
186
+ var off = noop$7;
187
+ var removeListener = noop$7;
188
+ var removeAllListeners = noop$7;
189
+ var emit = noop$7;
190
190
 
191
191
  function binding(name) {
192
192
  throw new Error('process.binding is not supported');
@@ -2346,11 +2346,11 @@ var require_picocolors$1 = __commonJS$1({
2346
2346
  return result + string.substring(cursor);
2347
2347
  };
2348
2348
 
2349
- var createColors2 = (enabled = isColorSupported2) => {
2350
- let f = enabled ? formatter : () => String;
2349
+ var createColors2 = (enabled2 = isColorSupported2) => {
2350
+ let f = enabled2 ? formatter : () => String;
2351
2351
 
2352
2352
  return {
2353
- isColorSupported: enabled,
2353
+ isColorSupported: enabled2,
2354
2354
  reset: f('\x1B[0m', '\x1B[0m'),
2355
2355
  bold: f('\x1B[1m', '\x1B[22m', '\x1B[22m\x1B[1m'),
2356
2356
  dim: f('\x1B[2m', '\x1B[22m', '\x1B[22m\x1B[2m'),
@@ -2400,9 +2400,9 @@ var require_picocolors$1 = __commonJS$1({
2400
2400
  },
2401
2401
  });
2402
2402
 
2403
- // ../babel-babel/node_modules/js-tokens-BABEL_8_BREAKING-true/index.js
2404
- var require_js_tokens_BABEL_8_BREAKING_true$1 = __commonJS$1({
2405
- '../babel-babel/node_modules/js-tokens-BABEL_8_BREAKING-true/index.js'(exports2, module2) {
2403
+ // ../babel-babel/node_modules/js-tokens/index.js
2404
+ var require_js_tokens$1 = __commonJS$1({
2405
+ '../babel-babel/node_modules/js-tokens/index.js'(exports2, module2) {
2406
2406
  var Identifier3;
2407
2407
  var JSXIdentifier3;
2408
2408
  var JSXPunctuator;
@@ -2423,7 +2423,7 @@ var require_js_tokens_BABEL_8_BREAKING_true$1 = __commonJS$1({
2423
2423
  var TokensPrecedingExpression;
2424
2424
  var WhiteSpace;
2425
2425
 
2426
- RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;
2426
+ RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;
2427
2427
  Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
2428
2428
  Identifier3 = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;
2429
2429
  StringLiteral4 = /(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y;
@@ -2902,13 +2902,6 @@ var require_js_tokens_BABEL_8_BREAKING_true$1 = __commonJS$1({
2902
2902
  },
2903
2903
  });
2904
2904
 
2905
- // ../babel-babel/node_modules/js-tokens-BABEL_8_BREAKING-false/index.js
2906
- var require_js_tokens$1 = __commonJS$1({
2907
- '../babel-babel/node_modules/js-tokens/index.js'(exports2, module2) {
2908
- module2.exports = require_js_tokens_BABEL_8_BREAKING_true$1();
2909
- },
2910
- });
2911
-
2912
2905
  // ../babel-babel/node_modules/jsesc/jsesc.js
2913
2906
  var require_jsesc$1 = __commonJS$1({
2914
2907
  '../babel-babel/node_modules/jsesc/jsesc.js'(exports2, module2) {
@@ -3257,28 +3250,6 @@ var require_jsesc$1 = __commonJS$1({
3257
3250
  },
3258
3251
  });
3259
3252
 
3260
- // ../babel-babel/node_modules/ms/index.js
3261
- // ../babel-babel/node_modules/debug/src/common.js
3262
- var require_browser$1 = () => () => ({
3263
- enabled: false,
3264
- });
3265
-
3266
- // ../babel-babel/node_modules/has-flag/index.js
3267
- var require_node$1 = () => () => ({
3268
- enabled: false,
3269
- });
3270
-
3271
- // ../babel-babel/node_modules/debug/src/index.js
3272
- var require_src$1 = __commonJS$1({
3273
- '../babel-babel/node_modules/debug/src/index.js'(exports2, module2) {
3274
- if (typeof browser$1$1 === 'undefined' || browser$1$1.type === 'renderer' || browser$1$1.browser === true || browser$1$1.__nwjs) {
3275
- module2.exports = require_browser$1();
3276
- } else {
3277
- module2.exports = require_node$1();
3278
- }
3279
- },
3280
- });
3281
-
3282
3253
  // lib/index.mjs
3283
3254
  var index_exports$1 = {};
3284
3255
 
@@ -3584,7 +3555,7 @@ __export$1(lib_exports$1, {
3584
3555
  TSTypeLiteral: () => TSTypeLiteral$2,
3585
3556
  TSTypeOperator: () => TSTypeOperator$2,
3586
3557
  TSTypeParameter: () => TSTypeParameter$2,
3587
- TSTypeParameterDeclaration: () => TSTypeParameterDeclaration$1,
3558
+ TSTypeParameterDeclaration: () => TSTypeParameterDeclaration$2,
3588
3559
  TSTypeParameterInstantiation: () => TSTypeParameterInstantiation$1,
3589
3560
  TSTypePredicate: () => TSTypePredicate$1,
3590
3561
  TSTypeQuery: () => TSTypeQuery$2,
@@ -4330,7 +4301,7 @@ __export$1(lib_exports$1, {
4330
4301
  isTSTypeQuery: () => isTSTypeQuery$1,
4331
4302
  isTSTypeReference: () => isTSTypeReference$4,
4332
4303
  isTSUndefinedKeyword: () => isTSUndefinedKeyword$1,
4333
- isTSUnionType: () => isTSUnionType$1,
4304
+ isTSUnionType: () => isTSUnionType$2,
4334
4305
  isTSUnknownKeyword: () => isTSUnknownKeyword$1,
4335
4306
  isTSVoidKeyword: () => isTSVoidKeyword$1,
4336
4307
  isTaggedTemplateExpression: () => isTaggedTemplateExpression$1,
@@ -4521,7 +4492,7 @@ __export$1(lib_exports$1, {
4521
4492
  tsTypeLiteral: () => tsTypeLiteral$2,
4522
4493
  tsTypeOperator: () => tsTypeOperator$1,
4523
4494
  tsTypeParameter: () => tsTypeParameter$2,
4524
- tsTypeParameterDeclaration: () => tsTypeParameterDeclaration$1,
4495
+ tsTypeParameterDeclaration: () => tsTypeParameterDeclaration$2,
4525
4496
  tsTypeParameterInstantiation: () => tsTypeParameterInstantiation$1,
4526
4497
  tsTypePredicate: () => tsTypePredicate$1,
4527
4498
  tsTypeQuery: () => tsTypeQuery$2,
@@ -8195,7 +8166,7 @@ function isTSNamedTupleMember$1(node, opts) {
8195
8166
  return opts == null || shallowEqual$1(node, opts);
8196
8167
  }
8197
8168
 
8198
- function isTSUnionType$1(node, opts) {
8169
+ function isTSUnionType$2(node, opts) {
8199
8170
  if (!node)
8200
8171
  return false;
8201
8172
 
@@ -10670,7 +10641,7 @@ defineType$4$1('CallExpression', {
10670
10641
  ],
10671
10642
  builder: ['callee', 'arguments'],
10672
10643
  aliases: ['Expression'],
10673
- fields: Object.assign({
10644
+ fields: {
10674
10645
  callee: {
10675
10646
  validate: assertNodeType$1('Expression', 'Super', 'V8IntrinsicIdentifier'),
10676
10647
  },
@@ -10679,7 +10650,7 @@ defineType$4$1('CallExpression', {
10679
10650
  validate: assertNodeType$1('TypeParameterInstantiation', 'TSTypeParameterInstantiation'),
10680
10651
  optional: true,
10681
10652
  },
10682
- }, {}),
10653
+ },
10683
10654
  });
10684
10655
  defineType$4$1('CatchClause', {
10685
10656
  visitor: ['param', 'body'],
@@ -11192,7 +11163,7 @@ defineType$4$1('MemberExpression', {
11192
11163
  },
11193
11164
  }],
11194
11165
  },
11195
- fields: Object.assign({
11166
+ fields: {
11196
11167
  object: {
11197
11168
  validate: assertNodeType$1('Expression', 'Super'),
11198
11169
  },
@@ -11216,7 +11187,7 @@ defineType$4$1('MemberExpression', {
11216
11187
  computed: {
11217
11188
  default: false,
11218
11189
  },
11219
- }, {}),
11190
+ },
11220
11191
  });
11221
11192
  defineType$4$1('NewExpression', {
11222
11193
  inherits: 'CallExpression',
@@ -11278,9 +11249,9 @@ defineType$4$1('ObjectMethod', Object.assign({
11278
11249
  ],
11279
11250
  }, classMethodOrPropertyUnionShapeCommon$1(), {
11280
11251
  fields: Object.assign({}, functionCommon$1(), functionTypeAnnotationCommon$1(), {
11281
- kind: Object.assign({
11252
+ kind: {
11282
11253
  validate: assertOneOf$1('method', 'get', 'set'),
11283
- }, {}),
11254
+ },
11284
11255
  computed: {
11285
11256
  default: false,
11286
11257
  },
@@ -12453,7 +12424,7 @@ defineType$4$1('OptionalCallExpression', {
12453
12424
  'optional',
12454
12425
  ],
12455
12426
  aliases: ['Expression'],
12456
- fields: Object.assign({
12427
+ fields: {
12457
12428
  callee: {
12458
12429
  validate: assertNodeType$1('Expression'),
12459
12430
  },
@@ -12465,7 +12436,7 @@ defineType$4$1('OptionalCallExpression', {
12465
12436
  validate: assertNodeType$1('TypeParameterInstantiation', 'TSTypeParameterInstantiation'),
12466
12437
  optional: true,
12467
12438
  },
12468
- }, {}),
12439
+ },
12469
12440
  });
12470
12441
  defineType$4$1('ClassProperty', Object.assign({
12471
12442
  visitor: [
@@ -13350,7 +13321,7 @@ defineType$2$1('JSXElement', {
13350
13321
  'closingElement',
13351
13322
  ],
13352
13323
  aliases: ['Immutable', 'Expression'],
13353
- fields: Object.assign({
13324
+ fields: {
13354
13325
  openingElement: {
13355
13326
  validate: assertNodeType$1('JSXOpeningElement'),
13356
13327
  },
@@ -13359,7 +13330,7 @@ defineType$2$1('JSXElement', {
13359
13330
  validate: assertNodeType$1('JSXClosingElement'),
13360
13331
  },
13361
13332
  children: validateArrayOfType$1('JSXText', 'JSXExpressionContainer', 'JSXSpreadChild', 'JSXElement', 'JSXFragment'),
13362
- }, {}),
13333
+ },
13363
13334
  });
13364
13335
  defineType$2$1('JSXEmptyExpression', {});
13365
13336
  defineType$2$1('JSXExpressionContainer', {
@@ -13422,7 +13393,7 @@ defineType$2$1('JSXOpeningElement', {
13422
13393
  'attributes',
13423
13394
  ],
13424
13395
  aliases: ['Immutable'],
13425
- fields: Object.assign({
13396
+ fields: {
13426
13397
  name: {
13427
13398
  validate: assertNodeType$1('JSXIdentifier', 'JSXMemberExpression', 'JSXNamespacedName'),
13428
13399
  },
@@ -13434,7 +13405,7 @@ defineType$2$1('JSXOpeningElement', {
13434
13405
  validate: assertNodeType$1('TypeParameterInstantiation', 'TSTypeParameterInstantiation'),
13435
13406
  optional: true,
13436
13407
  },
13437
- }, {}),
13408
+ },
13438
13409
  });
13439
13410
  defineType$2$1('JSXSpreadAttribute', {
13440
13411
  visitor: ['argument'],
@@ -13960,15 +13931,14 @@ defineType$6('TSMappedType', {
13960
13931
  'nameType',
13961
13932
  'typeAnnotation',
13962
13933
  ],
13963
- fields: Object.assign({}, {
13934
+ fields: {
13964
13935
  key: validateType$1('Identifier'),
13965
13936
  constraint: validateType$1('TSType'),
13966
- }, {
13967
13937
  readonly: validateOptional$1(assertOneOf$1(true, false, '+', '-')),
13968
13938
  optional: validateOptional$1(assertOneOf$1(true, false, '+', '-')),
13969
13939
  typeAnnotation: validateOptionalType$1('TSType'),
13970
13940
  nameType: validateOptionalType$1('TSType'),
13971
- }),
13941
+ },
13972
13942
  });
13973
13943
  defineType$6('TSTemplateLiteralType', {
13974
13944
  aliases: ['TSType', 'TSBaseType'],
@@ -14130,15 +14100,14 @@ defineType$6('TSEnumMember', {
14130
14100
  defineType$6('TSModuleDeclaration', {
14131
14101
  aliases: ['Statement', 'Declaration'],
14132
14102
  visitor: ['id', 'body'],
14133
- fields: Object.assign({
14103
+ fields: {
14134
14104
  kind: {
14135
14105
  validate: assertOneOf$1('global', 'module', 'namespace'),
14136
14106
  },
14137
14107
  declare: validateOptional$1(bool$1),
14138
- }, false, {
14139
14108
  id: validateType$1('TSEntityName', 'StringLiteral'),
14140
14109
  body: validateType$1('TSModuleBlock'),
14141
- }),
14110
+ },
14142
14111
  });
14143
14112
  defineType$6('TSModuleBlock', {
14144
14113
  aliases: [
@@ -14165,30 +14134,27 @@ defineType$6('TSImportType', {
14165
14134
  'qualifier',
14166
14135
  'typeArguments',
14167
14136
  ],
14168
- fields: Object.assign({}, {
14137
+ fields: {
14169
14138
  source: validateType$1('StringLiteral'),
14170
- }, {
14171
14139
  qualifier: validateOptionalType$1('TSEntityName'),
14172
- }, {
14173
14140
  typeArguments: validateOptionalType$1('TSTypeParameterInstantiation'),
14174
- }, {
14175
14141
  options: {
14176
14142
  validate: assertNodeType$1('ObjectExpression'),
14177
14143
  optional: true,
14178
14144
  },
14179
- }),
14145
+ },
14180
14146
  });
14181
14147
  defineType$6('TSImportEqualsDeclaration', {
14182
14148
  aliases: ['Statement', 'Declaration'],
14183
14149
  visitor: ['id', 'moduleReference'],
14184
- fields: Object.assign({}, {}, {
14150
+ fields: {
14185
14151
  id: validateType$1('Identifier'),
14186
14152
  moduleReference: validateType$1('TSEntityName', 'TSExternalModuleReference'),
14187
14153
  importKind: {
14188
14154
  validate: assertOneOf$1('type', 'value'),
14189
14155
  optional: true,
14190
14156
  },
14191
- }),
14157
+ },
14192
14158
  });
14193
14159
  defineType$6('TSExternalModuleReference', {
14194
14160
  visitor: ['expression'],
@@ -17379,7 +17345,7 @@ function tsTypeParameterInstantiation$1(params) {
17379
17345
  return node;
17380
17346
  }
17381
17347
 
17382
- function tsTypeParameterDeclaration$1(params) {
17348
+ function tsTypeParameterDeclaration$2(params) {
17383
17349
  const node = {
17384
17350
  type: 'TSTypeParameterDeclaration',
17385
17351
  params,
@@ -17652,7 +17618,7 @@ var b$1 = /* @__PURE__ */Object.freeze({
17652
17618
  tsTypeLiteral: tsTypeLiteral$2,
17653
17619
  tsTypeOperator: tsTypeOperator$1,
17654
17620
  tsTypeParameter: tsTypeParameter$2,
17655
- tsTypeParameterDeclaration: tsTypeParameterDeclaration$1,
17621
+ tsTypeParameterDeclaration: tsTypeParameterDeclaration$2,
17656
17622
  tsTypeParameterInstantiation: tsTypeParameterInstantiation$1,
17657
17623
  tsTypePredicate: tsTypePredicate$1,
17658
17624
  tsTypeQuery: tsTypeQuery$2,
@@ -17938,7 +17904,7 @@ var TSExportAssignment$2 = alias$1('tsExportAssignment');
17938
17904
  var TSNamespaceExportDeclaration$1 = alias$1('tsNamespaceExportDeclaration');
17939
17905
  var TSTypeAnnotation$1 = alias$1('tsTypeAnnotation');
17940
17906
  var TSTypeParameterInstantiation$1 = alias$1('tsTypeParameterInstantiation');
17941
- var TSTypeParameterDeclaration$1 = alias$1('tsTypeParameterDeclaration');
17907
+ var TSTypeParameterDeclaration$2 = alias$1('tsTypeParameterDeclaration');
17942
17908
  var TSTypeParameter$2 = alias$1('tsTypeParameter');
17943
17909
 
17944
17910
  function cleanJSXElementLiteralChild$1(child, args) {
@@ -19390,7 +19356,7 @@ function removeTypeDuplicates$2(nodesIn) {
19390
19356
  continue;
19391
19357
  }
19392
19358
 
19393
- if (isTSUnionType$1(node)) {
19359
+ if (isTSUnionType$2(node)) {
19394
19360
  if (!typeGroups.has(node.types)) {
19395
19361
  nodes2.push(...node.types);
19396
19362
  typeGroups.add(node.types);
@@ -20941,7 +20907,7 @@ var UnparenthesizedPipeBodyDescriptions$1 = /* @__PURE__ */new Set([
20941
20907
  'YieldExpression',
20942
20908
  ]);
20943
20909
 
20944
- var PipelineOperatorErrors$1 = Object.assign({
20910
+ var PipelineOperatorErrors$1 = {
20945
20911
  PipeBodyIsTighter: 'Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.',
20946
20912
  PipeTopicRequiresHackPipes: 'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',
20947
20913
  PipeTopicUnbound: 'Topic reference is unbound; it must be inside a pipe body.',
@@ -20950,7 +20916,7 @@ var PipelineOperatorErrors$1 = Object.assign({
20950
20916
  PipeUnparenthesizedBody: ({type}) => `Hack-style pipe body cannot be an unparenthesized ${toNodeDescription$1({
20951
20917
  type,
20952
20918
  })}; please wrap it in parentheses.`,
20953
- }, {});
20919
+ };
20954
20920
 
20955
20921
  var _excluded$1 = ['message'];
20956
20922
 
@@ -21591,22 +21557,6 @@ var estree$1 = (superClass) => class ESTreeParserMixin extends superClass {
21591
21557
  }
21592
21558
  };
21593
21559
 
21594
- var TokContext$1 = class TokContext {
21595
- constructor(token, preserveSpace) {
21596
- __publicField$1(this, 'token');
21597
- __publicField$1(this, 'preserveSpace');
21598
- this.token = token;
21599
- this.preserveSpace = !!preserveSpace;
21600
- }
21601
- };
21602
-
21603
- var types$1a = {
21604
- brace: new TokContext$1('{'),
21605
- j_oTag: new TokContext$1('<tag'),
21606
- j_cTag: new TokContext$1('</tag'),
21607
- j_expr: new TokContext$1('<tag>...</tag>', true),
21608
- };
21609
-
21610
21560
  var beforeExpr$1 = true;
21611
21561
  var startsExpr$1 = true;
21612
21562
  var isLoop2$1 = true;
@@ -22158,6 +22108,22 @@ function getExportedToken$1(token) {
22158
22108
  return tokenTypes$1[token];
22159
22109
  }
22160
22110
 
22111
+ var TokContext$1 = class TokContext {
22112
+ constructor(token, preserveSpace) {
22113
+ __publicField$1(this, 'token');
22114
+ __publicField$1(this, 'preserveSpace');
22115
+ this.token = token;
22116
+ this.preserveSpace = !!preserveSpace;
22117
+ }
22118
+ };
22119
+
22120
+ var types$1b = {
22121
+ brace: new TokContext$1('{'),
22122
+ j_oTag: new TokContext$1('<tag'),
22123
+ j_cTag: new TokContext$1('</tag'),
22124
+ j_expr: new TokContext$1('<tag>...</tag>', true),
22125
+ };
22126
+
22161
22127
  var nonASCIIidentifierStartChars2$1 = '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC';
22162
22128
  var nonASCIIidentifierChars2$1 = '\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65';
22163
22129
  var nonASCIIidentifierStart2$1 = new RegExp('[' + nonASCIIidentifierStartChars2$1 + ']');
@@ -24065,9 +24031,9 @@ var jsx$4 = (superClass) => class JSXParserMixin extends superClass {
24065
24031
  switch(this.state.type) {
24066
24032
  case 5:
24067
24033
  node = this.startNode();
24068
- this.setContext(types$1a.brace);
24034
+ this.setContext(types$1b.brace);
24069
24035
  this.next();
24070
- node = this.jsxParseExpressionContainer(node, types$1a.j_oTag);
24036
+ node = this.jsxParseExpressionContainer(node, types$1b.j_oTag);
24071
24037
 
24072
24038
  if (node.expression.type === 'JSXEmptyExpression') {
24073
24039
  this.raise(JsxErrors$1.AttributeIsEmpty, node);
@@ -24092,7 +24058,7 @@ var jsx$4 = (superClass) => class JSXParserMixin extends superClass {
24092
24058
  jsxParseSpreadChild(node) {
24093
24059
  this.next();
24094
24060
  node.expression = this.parseExpression();
24095
- this.setContext(types$1a.j_expr);
24061
+ this.setContext(types$1b.j_expr);
24096
24062
  this.state.canStartJSXElement = true;
24097
24063
  this.expect(8);
24098
24064
  return this.finishNode(node, 'JSXSpreadChild');
@@ -24121,11 +24087,11 @@ var jsx$4 = (superClass) => class JSXParserMixin extends superClass {
24121
24087
  const node = this.startNode();
24122
24088
 
24123
24089
  if (this.match(5)) {
24124
- this.setContext(types$1a.brace);
24090
+ this.setContext(types$1b.brace);
24125
24091
  this.next();
24126
24092
  this.expect(21);
24127
24093
  node.argument = this.parseMaybeAssignAllowIn();
24128
- this.setContext(types$1a.j_oTag);
24094
+ this.setContext(types$1b.j_oTag);
24129
24095
  this.state.canStartJSXElement = true;
24130
24096
  this.expect(8);
24131
24097
  return this.finishNode(node, 'JSXSpreadAttribute');
@@ -24199,13 +24165,13 @@ var jsx$4 = (superClass) => class JSXParserMixin extends superClass {
24199
24165
 
24200
24166
  case 5: {
24201
24167
  const node2 = this.startNode();
24202
- this.setContext(types$1a.brace);
24168
+ this.setContext(types$1b.brace);
24203
24169
  this.next();
24204
24170
 
24205
24171
  if (this.match(21)) {
24206
24172
  children.push(this.jsxParseSpreadChild(node2));
24207
24173
  } else {
24208
- children.push(this.jsxParseExpressionContainer(node2, types$1a.j_expr));
24174
+ children.push(this.jsxParseExpressionContainer(node2, types$1b.j_expr));
24209
24175
  }
24210
24176
 
24211
24177
  break;
@@ -24281,12 +24247,12 @@ var jsx$4 = (superClass) => class JSXParserMixin extends superClass {
24281
24247
  getTokenFromCode(code2) {
24282
24248
  const context = this.curContext();
24283
24249
 
24284
- if (context === types$1a.j_expr) {
24250
+ if (context === types$1b.j_expr) {
24285
24251
  this.jsxReadToken();
24286
24252
  return;
24287
24253
  }
24288
24254
 
24289
- if (context === types$1a.j_oTag || context === types$1a.j_cTag) {
24255
+ if (context === types$1b.j_oTag || context === types$1b.j_cTag) {
24290
24256
  if (isIdentifierStart2$1(code2)) {
24291
24257
  this.jsxReadWord();
24292
24258
  return;
@@ -24298,7 +24264,7 @@ var jsx$4 = (superClass) => class JSXParserMixin extends superClass {
24298
24264
  return;
24299
24265
  }
24300
24266
 
24301
- if ((code2 === 34 || code2 === 39) && context === types$1a.j_oTag) {
24267
+ if ((code2 === 34 || code2 === 39) && context === types$1b.j_oTag) {
24302
24268
  this.jsxReadString(code2);
24303
24269
  return;
24304
24270
  }
@@ -24317,18 +24283,18 @@ var jsx$4 = (superClass) => class JSXParserMixin extends superClass {
24317
24283
  const {context, type} = this.state;
24318
24284
 
24319
24285
  if (type === 56 && prevType === 143) {
24320
- context.splice(-2, 2, types$1a.j_cTag);
24286
+ context.splice(-2, 2, types$1b.j_cTag);
24321
24287
  this.state.canStartJSXElement = false;
24322
24288
  } else if (type === 143) {
24323
- context.push(types$1a.j_oTag);
24289
+ context.push(types$1b.j_oTag);
24324
24290
  } else if (type === 144) {
24325
24291
  const out = context[context.length - 1];
24326
24292
 
24327
- if (out === types$1a.j_oTag && prevType === 56 || out === types$1a.j_cTag) {
24293
+ if (out === types$1b.j_oTag && prevType === 56 || out === types$1b.j_cTag) {
24328
24294
  context.pop();
24329
- this.state.canStartJSXElement = context[context.length - 1] === types$1a.j_expr;
24295
+ this.state.canStartJSXElement = context[context.length - 1] === types$1b.j_expr;
24330
24296
  } else {
24331
- this.setContext(types$1a.j_expr);
24297
+ this.setContext(types$1b.j_expr);
24332
24298
  this.state.canStartJSXElement = true;
24333
24299
  }
24334
24300
  } else {
@@ -24805,7 +24771,7 @@ var State$3 = class _State {
24805
24771
  __publicField$1(this, 'end', 0);
24806
24772
  __publicField$1(this, 'lastTokEndLoc', null);
24807
24773
  __publicField$1(this, 'lastTokStartLoc', null);
24808
- __publicField$1(this, 'context', [types$1a.brace]);
24774
+ __publicField$1(this, 'context', [types$1b.brace]);
24809
24775
  __publicField$1(this, 'firstInvalidTemplateEscapePos', null);
24810
24776
  __publicField$1(this, 'strictErrors', /* @__PURE__ */new Map());
24811
24777
  __publicField$1(this, 'tokensLength', 0);
@@ -29318,7 +29284,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
29318
29284
  }
29319
29285
 
29320
29286
  tsInTopLevelContext(cb) {
29321
- if (this.curContext() !== types$1a.brace) {
29287
+ if (this.curContext() !== types$1b.brace) {
29322
29288
  const oldContext = this.state.context;
29323
29289
 
29324
29290
  this.state.context = [oldContext[0]];
@@ -29711,7 +29677,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
29711
29677
 
29712
29678
  if (node.params.length === 0) {
29713
29679
  this.raise(TSErrors$1.EmptyTypeArguments, node);
29714
- } else if (!this.state.inType && this.curContext() === types$1a.brace) {
29680
+ } else if (!this.state.inType && this.curContext() === types$1b.brace) {
29715
29681
  this.reScan_lt_gt();
29716
29682
  }
29717
29683
 
@@ -30083,7 +30049,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
30083
30049
  nodeImportEquals.importKind = 'value';
30084
30050
  }
30085
30051
 
30086
- const declaration = this.tsParseImportEqualsDeclaration(nodeImportEquals, maybeDefaultIdentifier, true);
30052
+ const declaration = this.tsParseImportEqualsDeclaration(nodeImportEquals, maybeDefaultIdentifier);
30087
30053
 
30088
30054
  node.attributes = [];
30089
30055
  node.declaration = declaration;
@@ -30621,7 +30587,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
30621
30587
 
30622
30588
  const currentContext = context[context.length - 1];
30623
30589
 
30624
- if (currentContext === types$1a.j_oTag || currentContext === types$1a.j_expr) {
30590
+ if (currentContext === types$1b.j_oTag || currentContext === types$1b.j_expr) {
30625
30591
  context.pop();
30626
30592
  }
30627
30593
  }
@@ -32091,8 +32057,6 @@ var ExpressionParser$1 = class ExpressionParser extends LValParser$1 {
32091
32057
  if (this.state.inFSharpPipelineDirectBody) {
32092
32058
  return left;
32093
32059
  }
32094
-
32095
- this.checkPipelineAtInfixOperator(left, leftStartLoc);
32096
32060
  }
32097
32061
 
32098
32062
  const node = this.startNodeAt(leftStartLoc);
@@ -32123,7 +32087,6 @@ var ExpressionParser$1 = class ExpressionParser extends LValParser$1 {
32123
32087
  }
32124
32088
 
32125
32089
  parseExprOpRightExpr(op, prec) {
32126
- this.state.startLoc;
32127
32090
  switch(op) {
32128
32091
  case 39:
32129
32092
  switch(this.getPluginOption('pipelineOperator', 'proposal')) {
@@ -33844,51 +33807,6 @@ var ExpressionParser$1 = class ExpressionParser extends LValParser$1 {
33844
33807
  return this.finishNode(node, 'ImportExpression');
33845
33808
  }
33846
33809
 
33847
- checkPipelineAtInfixOperator(left, leftStartLoc) {
33848
- if (this.hasPlugin(['pipelineOperator', {proposal: 'smart'}])) {
33849
- if (left.type === 'SequenceExpression') {
33850
- this.raise(Errors$1.PipelineHeadSequenceExpression, leftStartLoc);
33851
- }
33852
- }
33853
- }
33854
-
33855
- parseSmartPipelineBodyInStyle(childExpr, startLoc) {
33856
- if (this.isSimpleReference(childExpr)) {
33857
- const bodyNode = this.startNodeAt(startLoc);
33858
-
33859
- bodyNode.callee = childExpr;
33860
- return this.finishNode(bodyNode, 'PipelineBareFunction');
33861
- } else {
33862
- const bodyNode = this.startNodeAt(startLoc);
33863
- this.checkSmartPipeTopicBodyEarlyErrors(startLoc);
33864
- bodyNode.expression = childExpr;
33865
- return this.finishNode(bodyNode, 'PipelineTopicExpression');
33866
- }
33867
- }
33868
-
33869
- isSimpleReference(expression2) {
33870
- switch(expression2.type) {
33871
- case 'MemberExpression':
33872
- return !expression2.computed && this.isSimpleReference(expression2.object);
33873
-
33874
- case 'Identifier':
33875
- return true;
33876
-
33877
- default:
33878
- return false;
33879
- }
33880
- }
33881
-
33882
- checkSmartPipeTopicBodyEarlyErrors(startLoc) {
33883
- if (this.match(19)) {
33884
- throw this.raise(Errors$1.PipelineBodyNoArrow, this.state.startLoc);
33885
- }
33886
-
33887
- if (!this.topicReferenceWasUsedInCurrentContext()) {
33888
- this.raise(Errors$1.PipelineTopicUnused, startLoc);
33889
- }
33890
- }
33891
-
33892
33810
  withTopicBindingContext(callback) {
33893
33811
  const outerContextTopicState = this.state.topicContext;
33894
33812
 
@@ -34055,7 +33973,7 @@ var StatementParser$1 = class StatementParser extends ExpressionParser$1 {
34055
33973
  file2.comments = this.comments;
34056
33974
 
34057
33975
  if (this.optionFlags & 256) {
34058
- file2.tokens = babel7CompatTokens$1(this.tokens, this.input, this.startIndex);
33976
+ file2.tokens = babel7CompatTokens$1(this.tokens);
34059
33977
  }
34060
33978
 
34061
33979
  return this.finishNode(file2, 'File');
@@ -36524,29 +36442,29 @@ function isColorSupported$1() {
36524
36442
 
36525
36443
  var compose$1 = (f, g) => (v) => f(g(v));
36526
36444
 
36527
- function buildDefs$1(colors) {
36445
+ function buildDefs$1(colors2) {
36528
36446
  return {
36529
- keyword: colors.cyan,
36530
- capitalized: colors.yellow,
36531
- jsxIdentifier: colors.yellow,
36532
- punctuator: colors.yellow,
36533
- number: colors.magenta,
36534
- string: colors.green,
36535
- regex: colors.magenta,
36536
- comment: colors.gray,
36537
- invalid: compose$1(compose$1(colors.white, colors.bgRed), colors.bold),
36538
- gutter: colors.gray,
36539
- marker: compose$1(colors.red, colors.bold),
36540
- message: compose$1(colors.red, colors.bold),
36541
- reset: colors.reset,
36447
+ keyword: colors2.cyan,
36448
+ capitalized: colors2.yellow,
36449
+ jsxIdentifier: colors2.yellow,
36450
+ punctuator: colors2.yellow,
36451
+ number: colors2.magenta,
36452
+ string: colors2.green,
36453
+ regex: colors2.magenta,
36454
+ comment: colors2.gray,
36455
+ invalid: compose$1(compose$1(colors2.white, colors2.bgRed), colors2.bold),
36456
+ gutter: colors2.gray,
36457
+ marker: compose$1(colors2.red, colors2.bold),
36458
+ message: compose$1(colors2.red, colors2.bold),
36459
+ reset: colors2.reset,
36542
36460
  };
36543
36461
  }
36544
36462
 
36545
36463
  var defsOn$1 = buildDefs$1((0, import_picocolors$1.createColors)(true));
36546
36464
  var defsOff$1 = buildDefs$1((0, import_picocolors$1.createColors)(false));
36547
36465
 
36548
- function getDefs$1(enabled) {
36549
- return enabled ? defsOn$1 : defsOff$1;
36466
+ function getDefs$1(enabled2) {
36467
+ return enabled2 ? defsOn$1 : defsOff$1;
36550
36468
  }
36551
36469
 
36552
36470
  var sometimesKeywords$1 = /* @__PURE__ */new Set([
@@ -36559,7 +36477,6 @@ var sometimesKeywords$1 = /* @__PURE__ */new Set([
36559
36477
  ]);
36560
36478
  var NEWLINE$1$1 = /\r\n|[\n\r\u2028\u2029]/;
36561
36479
  var BRACKET$1 = /^[()[\]{}]$/;
36562
- var tokenize$3;
36563
36480
 
36564
36481
  var getTokenType$1 = function(token) {
36565
36482
  if (token.type === 'IdentifierName') {
@@ -36624,7 +36541,7 @@ var getTokenType$1 = function(token) {
36624
36541
  }
36625
36542
  };
36626
36543
 
36627
- tokenize$3 = function*(text) {
36544
+ function* tokenize$3(text) {
36628
36545
  for (const token of (0, import_js_tokens$1.default)(text, {jsx: true})) {
36629
36546
  switch(token.type) {
36630
36547
  case 'TemplateHead':
@@ -36671,7 +36588,8 @@ tokenize$3 = function*(text) {
36671
36588
  };
36672
36589
  }
36673
36590
  }
36674
- };
36591
+ }
36592
+
36675
36593
  function highlight$1(text) {
36676
36594
  if (text === '')
36677
36595
  return '';
@@ -37335,13 +37253,13 @@ function stringTemplate$1(formatter, code2, opts) {
37335
37253
  }
37336
37254
 
37337
37255
  function literalTemplate$1(formatter, tpl, opts) {
37338
- const {metadata, names} = buildLiteralData$1(formatter, tpl, opts);
37256
+ const {metadata, names: names2} = buildLiteralData$1(formatter, tpl, opts);
37339
37257
 
37340
37258
  return (arg) => {
37341
37259
  const defaultReplacements = {};
37342
37260
 
37343
37261
  arg.forEach((replacement, i) => {
37344
- defaultReplacements[names[i]] = replacement;
37262
+ defaultReplacements[names2[i]] = replacement;
37345
37263
  });
37346
37264
  return (arg2) => {
37347
37265
  const replacements = normalizeReplacements$1(arg2);
@@ -37368,11 +37286,11 @@ function buildLiteralData$1(formatter, tpl, opts) {
37368
37286
  do {
37369
37287
  prefix2 = '$$' + prefix2;
37370
37288
  } while (raw.includes(prefix2))
37371
- const {names, code: code2} = buildTemplateCode$1(tpl, prefix2);
37289
+ const {names: names2, code: code2} = buildTemplateCode$1(tpl, prefix2);
37372
37290
 
37373
37291
  const metadata = parseAndBuildMetadata$1(formatter, formatter.code(code2), {
37374
37292
  parser: opts.parser,
37375
- placeholderWhitelist: new Set(names.concat(opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [])),
37293
+ placeholderWhitelist: new Set(names2.concat(opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [])),
37376
37294
  placeholderPattern: opts.placeholderPattern,
37377
37295
  preserveComments: opts.preserveComments,
37378
37296
  syntacticPlaceholders: opts.syntacticPlaceholders,
@@ -37380,22 +37298,22 @@ function buildLiteralData$1(formatter, tpl, opts) {
37380
37298
 
37381
37299
  return {
37382
37300
  metadata,
37383
- names,
37301
+ names: names2,
37384
37302
  };
37385
37303
  }
37386
37304
 
37387
37305
  function buildTemplateCode$1(tpl, prefix2) {
37388
- const names = [];
37306
+ const names2 = [];
37389
37307
  let code2 = tpl[0];
37390
37308
 
37391
37309
  for (let i = 1; i < tpl.length; i++) {
37392
37310
  const value = `${prefix2}${i - 1}`;
37393
- names.push(value);
37311
+ names2.push(value);
37394
37312
  code2 += value + tpl[i];
37395
37313
  }
37396
37314
 
37397
37315
  return {
37398
- names,
37316
+ names: names2,
37399
37317
  code: code2,
37400
37318
  };
37401
37319
  }
@@ -38138,7 +38056,7 @@ var TraceMap$1 = class TraceMap {
38138
38056
  const {
38139
38057
  version,
38140
38058
  file: file2,
38141
- names,
38059
+ names: names2,
38142
38060
  sourceRoot,
38143
38061
  sources,
38144
38062
  sourcesContent,
@@ -38146,7 +38064,7 @@ var TraceMap$1 = class TraceMap {
38146
38064
 
38147
38065
  this.version = version;
38148
38066
  this.file = file2;
38149
- this.names = names || [];
38067
+ this.names = names2 || [];
38150
38068
  this.sourceRoot = sourceRoot;
38151
38069
  this.sources = sources;
38152
38070
  this.sourcesContent = sourcesContent;
@@ -38215,11 +38133,11 @@ function originalPositionFor$1(map, needle) {
38215
38133
  return OMapping$1(null, null, null, null);
38216
38134
 
38217
38135
  const {
38218
- names,
38136
+ names: names2,
38219
38137
  resolvedSources,
38220
38138
  } = map;
38221
38139
 
38222
- return OMapping$1(resolvedSources[segment[SOURCES_INDEX$1]], segment[SOURCE_LINE$1] + 1, segment[SOURCE_COLUMN$1], segment.length === 5 ? names[segment[NAMES_INDEX$1]] : null);
38140
+ return OMapping$1(resolvedSources[segment[SOURCES_INDEX$1]], segment[SOURCE_LINE$1] + 1, segment[SOURCE_COLUMN$1], segment.length === 5 ? names2[segment[NAMES_INDEX$1]] : null);
38223
38141
  }
38224
38142
 
38225
38143
  function OMapping$1(source, line, column, name) {
@@ -38318,7 +38236,7 @@ function toDecodedMap$1(map) {
38318
38236
  _mappings: mappings,
38319
38237
  _sources: sources,
38320
38238
  _sourcesContent: sourcesContent,
38321
- _names: names,
38239
+ _names: names2,
38322
38240
  _ignoreList: ignoreList,
38323
38241
  } = cast22$1(map);
38324
38242
 
@@ -38326,7 +38244,7 @@ function toDecodedMap$1(map) {
38326
38244
  return {
38327
38245
  version: 3,
38328
38246
  file: map.file || void 0,
38329
- names: names.array,
38247
+ names: names2.array,
38330
38248
  sourceRoot: map.sourceRoot || void 0,
38331
38249
  sources: sources.array,
38332
38250
  sourcesContent,
@@ -38353,7 +38271,7 @@ function allMappings$1(map) {
38353
38271
  const {
38354
38272
  _mappings: mappings,
38355
38273
  _sources: sources,
38356
- _names: names,
38274
+ _names: names2,
38357
38275
  } = cast22$1(map);
38358
38276
 
38359
38277
  for (let i = 0; i < mappings.length; i++) {
@@ -38377,7 +38295,7 @@ function allMappings$1(map) {
38377
38295
  };
38378
38296
 
38379
38297
  if (seg.length === 5)
38380
- name = names.array[seg[NAMES_INDEX2$1]];
38298
+ name = names2.array[seg[NAMES_INDEX2$1]];
38381
38299
  }
38382
38300
 
38383
38301
  out.push({
@@ -38397,7 +38315,7 @@ function addSegmentInternal$1(skipable, map, genLine, genColumn, source, sourceL
38397
38315
  _mappings: mappings,
38398
38316
  _sources: sources,
38399
38317
  _sourcesContent: sourcesContent,
38400
- _names: names,
38318
+ _names: names2,
38401
38319
  } = cast22$1(map);
38402
38320
 
38403
38321
  const line = getIndex$1(mappings, genLine);
@@ -38410,7 +38328,7 @@ function addSegmentInternal$1(skipable, map, genLine, genColumn, source, sourceL
38410
38328
  return insert$2(line, index2, [genColumn]);
38411
38329
  }
38412
38330
  const sourcesIndex = put$1(sources, source);
38413
- const namesIndex = name ? put$1(names, name) : NO_NAME$1;
38331
+ const namesIndex = name ? put$1(names2, name) : NO_NAME$1;
38414
38332
 
38415
38333
  if (sourcesIndex === sourcesContent.length)
38416
38334
  sourcesContent[sourcesIndex] = content != null ? content : null;
@@ -39117,14 +39035,14 @@ var nodes$1 = {
39117
39035
  VariableDeclaration(node) {
39118
39036
  for (let i = 0; i < node.declarations.length; i++) {
39119
39037
  const declar = node.declarations[i];
39120
- let enabled = isHelper$1(declar.id) && !isType2$1(declar.init);
39038
+ let enabled2 = isHelper$1(declar.id) && !isType2$1(declar.init);
39121
39039
 
39122
- if (!enabled && declar.init) {
39040
+ if (!enabled2 && declar.init) {
39123
39041
  const state = crawl$1(declar.init);
39124
- enabled = isHelper$1(declar.init) && state.hasCall || state.hasFunction;
39042
+ enabled2 = isHelper$1(declar.init) && state.hasCall || state.hasFunction;
39125
39043
  }
39126
39044
 
39127
- if (enabled) {
39045
+ if (enabled2) {
39128
39046
  return 1 | 2;
39129
39047
  }
39130
39048
  }
@@ -44644,10 +44562,107 @@ function generate$7(ast, opts = {}, code2) {
44644
44562
  return printer.generate(ast);
44645
44563
  }
44646
44564
 
44647
- // ../babel-babel/packages/babel-traverse/lib/index.js
44648
- var import_debug$1 = __toESM$1(require_src$1());
44565
+ // ../babel-babel/node_modules/obug/dist/core.js
44566
+ function selectColor$1(colors2, namespace) {
44567
+ let hash = 0;
44568
+
44569
+ for (let i = 0; i < namespace.length; i++) {
44570
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
44571
+ hash |= 0;
44572
+ }
44573
+
44574
+ return colors2[Math.abs(hash) % colors2.length];
44575
+ }
44576
+
44577
+ function humanize$1(value) {
44578
+ if (value >= 1e3)
44579
+ return `${(value / 1e3).toFixed(1)}s`;
44580
+
44581
+ return `${value}ms`;
44582
+ }
44583
+
44584
+ var globalNamespaces$1 = '';
44585
+
44586
+ function createDebug$c() {
44587
+ return {
44588
+ enabled: false,
44589
+ };
44590
+ }
44591
+
44592
+ var names$1 = [];
44593
+ var skips$1 = [];
44594
+
44595
+ function enable$2(namespaces$1) {
44596
+ globalNamespaces$1 = namespaces$1;
44597
+ names$1 = [];
44598
+ skips$1 = [];
44599
+ const split = globalNamespaces$1
44600
+ .trim()
44601
+ .replace(/\s+/g, ',')
44602
+ .split(',')
44603
+ .filter(Boolean);
44604
+
44605
+ for (const ns of split)
44606
+ if (ns[0] === '-')
44607
+ skips$1.push(ns.slice(1));
44608
+ else
44609
+ names$1.push(ns);
44610
+ }
44611
+
44612
+ // ../babel-babel/node_modules/obug/dist/node.js
44613
+ var import_node_util = {
44614
+ formatWithOptions: () => false,
44615
+ inspect: () => false,
44616
+ };
44617
+
44618
+ var colors$1 = [];
44619
+
44620
+ var inspectOpts = {};
44621
+
44622
+ function useColors() {}
44649
44623
 
44624
+ function formatArgs$1() {}
44625
+
44626
+ function log$7(...args) {
44627
+ browser$1$1.stderr.write(`${(0, import_node_util.formatWithOptions)(this.inspectOpts, ...args)}
44628
+ `);
44629
+ }
44630
+
44631
+ var defaultOptions$8 = {
44632
+ useColors: useColors(),
44633
+ formatArgs: formatArgs$1,
44634
+ formatters: {
44635
+ o(v) {
44636
+ this.inspectOpts.colors = this.useColors;
44637
+ return (0, import_node_util.inspect)(v, this
44638
+ .inspectOpts)
44639
+ .split('\n')
44640
+ .map((str) => str.trim())
44641
+ .join(' ');
44642
+ },
44643
+ O(v) {
44644
+ this.inspectOpts.colors = this.useColors;
44645
+ return (0, import_node_util.inspect)(v, this.inspectOpts);
44646
+ },
44647
+ },
44648
+ inspectOpts,
44649
+ log: log$7,
44650
+ humanize: humanize$1,
44651
+ };
44652
+
44653
+ function createDebug2(namespace, options) {
44654
+ var _ref;
44655
+ const color = (_ref = options) !== null && _ref !== void 0 ? _ref : selectColor$1(colors$1, namespace);
44656
+
44657
+ return createDebug$c(namespace, Object.assign(
44658
+ defaultOptions$8,{color},
44659
+ options,
44660
+ ));
44661
+ }
44662
+
44663
+ enable$2(browser$1$1.env.DEBUG || '');
44650
44664
  // ../babel-babel/packages/babel-helper-globals/data/builtin-lower.json
44665
+
44651
44666
  var builtin_lower_default$1 = [
44652
44667
  'decodeURI',
44653
44668
  'decodeURIComponent',
@@ -50440,7 +50455,7 @@ function addComments2$1(type, comments) {
50440
50455
 
50441
50456
  var {validate: validate3$1} = lib_exports$1;
50442
50457
 
50443
- var debug$9 = (0, import_debug$1.default)('babel');
50458
+ createDebug2('babel');
50444
50459
  var REMOVED$1 = 1 << 0;
50445
50460
  var SHOULD_STOP$1 = 1 << 1;
50446
50461
  var SHOULD_SKIP$1 = 1 << 2;
@@ -50582,10 +50597,7 @@ var NodePath_Final$1 = class NodePath {
50582
50597
  }
50583
50598
 
50584
50599
  debug(message) {
50585
- if (!debug$9.enabled)
50586
- return;
50587
-
50588
- debug$9(`${this.getPathLocation()} ${this.type}: ${message}`);
50600
+ return;
50589
50601
  }
50590
50602
 
50591
50603
  toString() {
@@ -51387,9 +51399,9 @@ var fullstore$3 = (value) => {
51387
51399
  };
51388
51400
  };
51389
51401
 
51390
- var types$19 = {};
51402
+ var types$1a = {};
51391
51403
 
51392
- types$19.TYPES = {
51404
+ types$1a.TYPES = {
51393
51405
  TOKEN: 'Token',
51394
51406
  NEWLINE: 'Newline',
51395
51407
  LINEBREAK: 'Linebreak',
@@ -51409,7 +51421,7 @@ var arrowFunctionExpression$3 = {};
51409
51421
 
51410
51422
  var is$4 = {};
51411
51423
 
51412
- const {types: types$18} = bundle$1;
51424
+ const {types: types$19} = bundle$1;
51413
51425
  const {
51414
51426
  isStringLiteral: isStringLiteral$a,
51415
51427
  isIdentifier: isIdentifier$i,
@@ -51421,7 +51433,7 @@ const {
51421
51433
  isArrayExpression: isArrayExpression$a,
51422
51434
  isObjectExpression: isObjectExpression$a,
51423
51435
  isLabeledStatement: isLabeledStatement$2,
51424
- } = types$18;
51436
+ } = types$19;
51425
51437
 
51426
51438
  const isParentProgram$1 = (path) => path.parentPath?.isProgram();
51427
51439
  const isParentBlock$3 = (path) => path.parentPath.isBlockStatement();
@@ -51724,7 +51736,7 @@ commentsPrinter.printTrailingComments = (path, printer, semantics, {currentTrave
51724
51736
  }
51725
51737
  };
51726
51738
 
51727
- const {types: types$17} = bundle$1;
51739
+ const {types: types$18} = bundle$1;
51728
51740
  const {
51729
51741
  hasTrailingComment: hasTrailingComment$5,
51730
51742
  satisfy: satisfy$3,
@@ -51750,7 +51762,7 @@ const {
51750
51762
  isBinaryExpression: isBinaryExpression$2,
51751
51763
  isClassMethod: isClassMethod$2,
51752
51764
  isDecorator: isDecorator$2,
51753
- } = types$17;
51765
+ } = types$18;
51754
51766
 
51755
51767
  const isProperty$1 = satisfy$3([
51756
51768
  isObjectProperty$3,
@@ -52002,7 +52014,7 @@ function build(path) {
52002
52014
  return prop;
52003
52015
  }
52004
52016
 
52005
- const {types: types$16} = bundle$1;
52017
+ const {types: types$17} = bundle$1;
52006
52018
  const {chain: chain$3} = chain$4;
52007
52019
  const {satisfy: satisfy$2} = is$4;
52008
52020
 
@@ -52011,7 +52023,7 @@ const {
52011
52023
  isIfStatement: isIfStatement$2,
52012
52024
  isCallExpression: isCallExpression$b,
52013
52025
  isIdentifier: isIdentifier$h,
52014
- } = types$16;
52026
+ } = types$17;
52015
52027
 
52016
52028
  const isArgOfCall = (path) => path.parentPath?.isCallExpression() && path.parentPath.get('arguments.0') === path;
52017
52029
  const isCall$1 = (a) => a.type === 'CallExpression';
@@ -52084,7 +52096,7 @@ const isIfUp = (path) => {
52084
52096
  return is;
52085
52097
  };
52086
52098
 
52087
- const {types: types$15} = bundle$1;
52099
+ const {types: types$16} = bundle$1;
52088
52100
 
52089
52101
  const {
52090
52102
  isLast: isLast$c,
@@ -52104,7 +52116,7 @@ const {
52104
52116
  isMemberExpression: isMemberExpression$a,
52105
52117
  isExpressionStatement: isExpressionStatement$8,
52106
52118
  isCallExpression: isCallExpression$a,
52107
- } = types$15;
52119
+ } = types$16;
52108
52120
 
52109
52121
  const hasBody$1 = (path) => {
52110
52122
  if (path.isTSModuleDeclaration())
@@ -52307,7 +52319,7 @@ comment.parseComments = parseComments$7;
52307
52319
 
52308
52320
  const {parseComments: parseComments$6} = comment;
52309
52321
 
52310
- const noop$5 = () => {};
52322
+ const noop$6 = () => {};
52311
52323
  const parseParams = (path) => path.get('params');
52312
52324
 
52313
52325
  params.printParams = (path, printer, semantics, customization = {}) => {
@@ -52323,8 +52335,9 @@ params.printParams = (path, printer, semantics, customization = {}) => {
52323
52335
  braceOpen = '(',
52324
52336
  braceClose = ')',
52325
52337
  printSpace = print.space,
52326
- printAfterOpen = noop$5,
52327
- printBeforeClose = noop$5,
52338
+ printAfterOpen = noop$6,
52339
+ printBeforeClose = noop$6,
52340
+ printAfterClose = noop$6,
52328
52341
  } = customization;
52329
52342
 
52330
52343
  if (typeParameters)
@@ -52359,6 +52372,7 @@ params.printParams = (path, printer, semantics, customization = {}) => {
52359
52372
  print,
52360
52373
  braceClose,
52361
52374
  }, semantics);
52375
+ printAfterClose();
52362
52376
  };
52363
52377
 
52364
52378
  function printBraceOpen(path, {print, braceOpen}, semantics) {
@@ -52425,7 +52439,7 @@ const maybeParensCondition$1 = ({print, condition, checkParens = true}) => ({
52425
52439
  });
52426
52440
 
52427
52441
  const {exists: exists$e} = is$4;
52428
- const {printParams: printParams$c} = params;
52442
+ const {printParams: printParams$d} = params;
52429
52443
  const {maybeParens: maybeParens$d} = maybeParens$e;
52430
52444
 
52431
52445
  arrowFunctionExpression$3.ArrowFunctionExpression = maybeParens$d((path, printer, semantics) => {
@@ -52439,7 +52453,7 @@ arrowFunctionExpression$3.ArrowFunctionExpression = maybeParens$d((path, printer
52439
52453
  const {async} = path.node;
52440
52454
 
52441
52455
  maybe.print(async, 'async ');
52442
- printParams$c(path, printer, semantics);
52456
+ printParams$d(path, printer, semantics);
52443
52457
 
52444
52458
  const returnType = path.get('returnType');
52445
52459
 
@@ -52463,10 +52477,10 @@ arrowFunctionExpression$3.ArrowFunctionExpression = maybeParens$d((path, printer
52463
52477
 
52464
52478
  var functionDeclaration$1 = {};
52465
52479
 
52466
- const {types: types$14} = bundle$1;
52480
+ const {types: types$15} = bundle$1;
52467
52481
  const {markAfter: markAfter$b} = mark;
52468
52482
  const {isNext: isNext$n, isNextParent: isNextParent$4} = is$4;
52469
- const {printParams: printParams$b} = params;
52483
+ const {printParams: printParams$c} = params;
52470
52484
 
52471
52485
  const not = (fn) => (...a) => !fn(...a);
52472
52486
  const notInsideExportDefaultWithBody = not(isInsideExportDefaultWithBody);
@@ -52479,7 +52493,7 @@ const {
52479
52493
  isExpressionStatement: isExpressionStatement$7,
52480
52494
  isFunctionDeclaration: isFunctionDeclaration$3,
52481
52495
  isExportDefaultDeclaration: isExportDefaultDeclaration$1,
52482
- } = types$14;
52496
+ } = types$15;
52483
52497
 
52484
52498
  const isInsideNamedExport$1 = ({parentPath}) => isExportNamedDeclaration$4(parentPath);
52485
52499
 
@@ -52506,7 +52520,7 @@ functionDeclaration$1.FunctionDeclaration = {
52506
52520
  }
52507
52521
 
52508
52522
  print('__id');
52509
- printParams$b(path, printer, semantics);
52523
+ printParams$c(path, printer, semantics);
52510
52524
 
52511
52525
  if (returnType) {
52512
52526
  print(': ');
@@ -52626,7 +52640,7 @@ kind.printKind = (path, {write}) => {
52626
52640
 
52627
52641
  var printFunctionParams$1 = {};
52628
52642
 
52629
- const {printParams: printParams$a} = params;
52643
+ const {printParams: printParams$b} = params;
52630
52644
  const {hasLeadingComment: hasLeadingComment$4} = is$4;
52631
52645
 
52632
52646
  const isAllParamsHasLeadingComments = (path) => {
@@ -52657,7 +52671,7 @@ printFunctionParams$1.printFunctionParams = (path, printer, semantics) => {
52657
52671
  const isNewline = params.filter(hasDecorators).length;
52658
52672
  const isAllHasComments = isAllParamsHasLeadingComments(path);
52659
52673
 
52660
- const printSpace = createPrintSpace({
52674
+ const printSpace = createPrintSpace$1({
52661
52675
  isNewline,
52662
52676
  printer,
52663
52677
  });
@@ -52676,7 +52690,7 @@ printFunctionParams$1.printFunctionParams = (path, printer, semantics) => {
52676
52690
  isAllHasComments,
52677
52691
  });
52678
52692
 
52679
- printParams$a(path, printer, semantics, {
52693
+ printParams$b(path, printer, semantics, {
52680
52694
  printAfterOpen,
52681
52695
  printSpace,
52682
52696
  printBeforeClose,
@@ -52707,7 +52721,7 @@ const createPrintBeforeClose = ({isNewline, printer, isAllHasComments, type}) =>
52707
52721
  print.breakline();
52708
52722
  };
52709
52723
 
52710
- const createPrintSpace = ({isNewline, printer}) => () => {
52724
+ const createPrintSpace$1 = ({isNewline, printer}) => () => {
52711
52725
  const {print} = printer;
52712
52726
 
52713
52727
  if (!isNewline)
@@ -52716,6 +52730,8 @@ const createPrintSpace = ({isNewline, printer}) => () => {
52716
52730
  print.breakline();
52717
52731
  };
52718
52732
 
52733
+ printFunctionParams$1.createPrintSpace = createPrintSpace$1;
52734
+
52719
52735
  const {
52720
52736
  isNext: isNext$m,
52721
52737
  hasTrailingComment: hasTrailingComment$3,
@@ -52784,7 +52800,7 @@ classMethod$2.ClassMethod = ClassMethod$2;
52784
52800
  var objectMethod$2 = {};
52785
52801
 
52786
52802
  const {isNewlineBetweenSiblings: isNewlineBetweenSiblings$3} = is$4;
52787
- const {printParams: printParams$9} = params;
52803
+ const {printParams: printParams$a} = params;
52788
52804
  const {printKey: printKey$5} = printKey$7;
52789
52805
  const {printKind: printKind$2} = kind;
52790
52806
 
@@ -52800,7 +52816,7 @@ objectMethod$2.ObjectMethod = {
52800
52816
 
52801
52817
  printKind$2(path, printer);
52802
52818
  printKey$5(path, printer);
52803
- printParams$9(path, printer, semantics);
52819
+ printParams$a(path, printer, semantics);
52804
52820
 
52805
52821
  print.space();
52806
52822
  print('__body');
@@ -52816,7 +52832,7 @@ objectMethod$2.ObjectMethod = {
52816
52832
  var functionExpression$1 = {};
52817
52833
 
52818
52834
  const {exists: exists$d} = is$4;
52819
- const {printParams: printParams$8} = params;
52835
+ const {printParams: printParams$9} = params;
52820
52836
  const {maybeParens: maybeParens$c} = maybeParens$e;
52821
52837
 
52822
52838
  functionExpression$1.FunctionExpression = maybeParens$c((path, printer, semantics) => {
@@ -52841,7 +52857,7 @@ functionExpression$1.FunctionExpression = maybeParens$c((path, printer, semantic
52841
52857
  traverse(id);
52842
52858
  }
52843
52859
 
52844
- printParams$8(path, printer, semantics);
52860
+ printParams$9(path, printer, semantics);
52845
52861
 
52846
52862
  print.space();
52847
52863
  print('__body');
@@ -52920,7 +52936,7 @@ function printUnary(name, {print}) {
52920
52936
 
52921
52937
  var memberExpressions$1 = {};
52922
52938
 
52923
- const {types: types$13} = bundle$1;
52939
+ const {types: types$14} = bundle$1;
52924
52940
  const {maybePrintComputed} = maybePrintComputed$2;
52925
52941
  const {maybeParens: maybeParens$a} = maybeParens$e;
52926
52942
  const {isLooksLikeChain: isLooksLikeChain$2} = isLooksLikeChain$4;
@@ -52928,7 +52944,7 @@ const {isLooksLikeChain: isLooksLikeChain$2} = isLooksLikeChain$4;
52928
52944
  const {
52929
52945
  isObjectExpression: isObjectExpression$9,
52930
52946
  isArrowFunctionExpression: isArrowFunctionExpression$2,
52931
- } = types$13;
52947
+ } = types$14;
52932
52948
 
52933
52949
  memberExpressions$1.MemberExpression = maybeParens$a({
52934
52950
  checkParens: false,
@@ -52999,7 +53015,7 @@ maybeDeclare$6.maybeDeclare = (visit) => (path, printer, semantics) => {
52999
53015
  visit(path, printer, semantics);
53000
53016
  };
53001
53017
 
53002
- const {types: types$12} = bundle$1;
53018
+ const {types: types$13} = bundle$1;
53003
53019
 
53004
53020
  const {isNext: isNext$k} = is$4;
53005
53021
  const {markAfter: markAfter$a} = mark;
@@ -53015,7 +53031,7 @@ const isInsideTSModuleBlock = (path) => {
53015
53031
  const {
53016
53032
  isFunction: isFunction$8,
53017
53033
  isTSModuleBlock: isTSModuleBlock$3,
53018
- } = types$12;
53034
+ } = types$13;
53019
53035
 
53020
53036
  const isInsideExport = ({parentPath}) => parentPath.isExportDeclaration();
53021
53037
  const isFunctionLike = (path) => isFunction$8(path.parentPath.parentPath);
@@ -53051,8 +53067,20 @@ const classVisitor = maybeDecorators$2((path, printer, semantics) => {
53051
53067
  }
53052
53068
 
53053
53069
  if (node.implements) {
53054
- print(' implements ');
53055
- path.get('implements').forEach(print);
53070
+ const {typeParameters} = node;
53071
+
53072
+ if (!typeParameters || typeParameters.params.length < 2)
53073
+ print(' ');
53074
+
53075
+ print('implements ');
53076
+
53077
+ const implementsPaths = path.get('implements');
53078
+ const n = implementsPaths.length - 1;
53079
+
53080
+ for (const [i, implement] of implementsPaths.entries()) {
53081
+ print(implement);
53082
+ maybe.print(i < n, ', ');
53083
+ }
53056
53084
  }
53057
53085
 
53058
53086
  print.space();
@@ -53180,14 +53208,14 @@ function tooLong$1(args) {
53180
53208
 
53181
53209
  var newExpression$1 = {};
53182
53210
 
53183
- const {types: types$11} = bundle$1;
53211
+ const {types: types$12} = bundle$1;
53184
53212
  const {exists: exists$b} = is$4;
53185
53213
  const {isMarkedAfter: isMarkedAfter$2} = mark;
53186
53214
 
53187
53215
  const {
53188
53216
  isExpressionStatement: isExpressionStatement$6,
53189
53217
  isMemberExpression: isMemberExpression$9,
53190
- } = types$11;
53218
+ } = types$12;
53191
53219
 
53192
53220
  const isInsideExpressionStatement = ({parentPath}) => isExpressionStatement$6(parentPath);
53193
53221
  const notFirst = ({parentPath}) => exists$b(parentPath.getPrevSibling());
@@ -53266,8 +53294,8 @@ var objectExpression$3 = {};
53266
53294
 
53267
53295
  var isInsideTuple$1 = {};
53268
53296
 
53269
- const {types: types$10} = bundle$1;
53270
- const {isArrayExpression: isArrayExpression$9} = types$10;
53297
+ const {types: types$11} = bundle$1;
53298
+ const {isArrayExpression: isArrayExpression$9} = types$11;
53271
53299
 
53272
53300
  const TYPES$4 = [
53273
53301
  'NullLiteral',
@@ -53291,12 +53319,12 @@ isInsideTuple$1.isInsideTuple = (path) => {
53291
53319
 
53292
53320
  var isThirdObjectInsideArray$1 = {};
53293
53321
 
53294
- const {types: types$$} = bundle$1;
53322
+ const {types: types$10} = bundle$1;
53295
53323
  const {
53296
53324
  isArrayExpression: isArrayExpression$8,
53297
53325
  isCallExpression: isCallExpression$9,
53298
53326
  isIdentifier: isIdentifier$g,
53299
- } = types$$;
53327
+ } = types$10;
53300
53328
 
53301
53329
  isThirdObjectInsideArray$1.isThirdObjectInsideArray = ({parentPath}) => {
53302
53330
  if (!isArrayExpression$8(parentPath))
@@ -53307,7 +53335,7 @@ isThirdObjectInsideArray$1.isThirdObjectInsideArray = ({parentPath}) => {
53307
53335
  return isCallExpression$9(second) && !!isIdentifier$g(second);
53308
53336
  };
53309
53337
 
53310
- const {types: types$_} = bundle$1;
53338
+ const {types: types$$} = bundle$1;
53311
53339
  const {
53312
53340
  isCoupleLines: isCoupleLines$7,
53313
53341
  isForOf: isForOf$3,
@@ -53327,7 +53355,7 @@ const {isThirdObjectInsideArray} = isThirdObjectInsideArray$1;
53327
53355
  const {
53328
53356
  isStringLiteral: isStringLiteral$9,
53329
53357
  isArrayExpression: isArrayExpression$7,
53330
- } = types$_;
53358
+ } = types$$;
53331
53359
 
53332
53360
  const isBodyOfArrow = (path) => path.parentPath.node.body === path.node;
53333
53361
  const isLogical = (path) => path.get('argument').isLogicalExpression();
@@ -53493,12 +53521,12 @@ var objectProperty$4 = {};
53493
53521
 
53494
53522
  var concatenate$1 = {};
53495
53523
 
53496
- const {types: types$Z} = bundle$1;
53524
+ const {types: types$_} = bundle$1;
53497
53525
  const {
53498
53526
  isStringLiteral: isStringLiteral$8,
53499
53527
  isTemplateLiteral: isTemplateLiteral$4,
53500
53528
  isBinaryExpression: isBinaryExpression$1,
53501
- } = types$Z;
53529
+ } = types$_;
53502
53530
 
53503
53531
  const isStringLike = (a) => {
53504
53532
  if (isStringLiteral$8(a))
@@ -53545,11 +53573,11 @@ concatenate$1.concatenate = (path, {print, indent}) => {
53545
53573
  indent.dec();
53546
53574
  };
53547
53575
 
53548
- const {types: types$Y} = bundle$1;
53576
+ const {types: types$Z} = bundle$1;
53549
53577
  const {isConcatenation: isConcatenation$2} = concatenate$1;
53550
53578
  const {isOneLine} = objectExpression$3;
53551
53579
  const {printKey: printKey$4} = printKey$7;
53552
- const {isTSImportType: isTSImportType$1} = types$Y;
53580
+ const {isTSImportType: isTSImportType$1} = types$Z;
53553
53581
  const isInsideTSImportType = ({parentPath}) => isTSImportType$1(parentPath.parentPath);
53554
53582
 
53555
53583
  objectProperty$4.ObjectProperty = (path, printer, semantics) => {
@@ -53603,11 +53631,11 @@ moreThenMaxPropertiesInOneLine$1.moreThenMaxPropertiesInOneLine = (path, {maxPro
53603
53631
 
53604
53632
  var maybeTypeAnnotation$4 = {};
53605
53633
 
53606
- const {types: types$X} = bundle$1;
53634
+ const {types: types$Y} = bundle$1;
53607
53635
  const {
53608
53636
  isMemberExpression: isMemberExpression$8,
53609
53637
  isSequenceExpression: isSequenceExpression$2,
53610
- } = types$X;
53638
+ } = types$Y;
53611
53639
 
53612
53640
  maybeTypeAnnotation$4.maybePrintTypeAnnotation = maybePrintTypeAnnotation$3;
53613
53641
 
@@ -53638,11 +53666,11 @@ function maybePrintTypeAnnotation$3(path, printer) {
53638
53666
 
53639
53667
  var moreThenMaxPropertiesLengthInOneLine$1 = {};
53640
53668
 
53641
- const {types: types$W} = bundle$1;
53669
+ const {types: types$X} = bundle$1;
53642
53670
  const {
53643
53671
  isAssignmentPattern: isAssignmentPattern$3,
53644
53672
  isIdentifier: isIdentifier$f,
53645
- } = types$W;
53673
+ } = types$X;
53646
53674
 
53647
53675
  function getLength(left, right) {
53648
53676
  if (isIdentifier$f(left) && isIdentifier$f(right))
@@ -53681,13 +53709,13 @@ moreThenMaxPropertiesLengthInOneLine$1.moreThenMaxPropertiesLengthInOneLine = (p
53681
53709
 
53682
53710
  var calculateLongAssignPattern = {};
53683
53711
 
53684
- const {types: types$V} = bundle$1;
53712
+ const {types: types$W} = bundle$1;
53685
53713
  const {
53686
53714
  isAssignmentPattern: isAssignmentPattern$2,
53687
53715
  isArrayExpression: isArrayExpression$6,
53688
53716
  isObjectExpression: isObjectExpression$8,
53689
53717
  isIdentifier: isIdentifier$e,
53690
- } = types$V;
53718
+ } = types$W;
53691
53719
 
53692
53720
  calculateLongAssignPattern.calculateAssigns = (property, semantics) => {
53693
53721
  const currentAssign = isLongAssignPattern$1(property, semantics);
@@ -53747,7 +53775,7 @@ comments$1.printLeadingComments = (path, {print}) => {
53747
53775
  }
53748
53776
  };
53749
53777
 
53750
- const {types: types$U} = bundle$1;
53778
+ const {types: types$V} = bundle$1;
53751
53779
 
53752
53780
  const {wrongShorthand} = wrongShorthand$1;
53753
53781
 
@@ -53779,7 +53807,7 @@ const {
53779
53807
  isObjectPattern: isObjectPattern$3,
53780
53808
  isForOfStatement: isForOfStatement$1,
53781
53809
  isVariableDeclaration: isVariableDeclaration$5,
53782
- } = types$U;
53810
+ } = types$V;
53783
53811
 
53784
53812
  const isInsideFn = (path) => {
53785
53813
  if (isFunction$7(path.parentPath))
@@ -54181,9 +54209,9 @@ maybeParensCondition.condition = (path, printer, semantics) => {
54181
54209
 
54182
54210
  var assignmentExpressionComments = {};
54183
54211
 
54184
- const {types: types$T} = bundle$1;
54212
+ const {types: types$U} = bundle$1;
54185
54213
  const {hasLeadingComment: hasLeadingComment$1} = is$4;
54186
- const {isReturnStatement: isReturnStatement$4} = types$T;
54214
+ const {isReturnStatement: isReturnStatement$4} = types$U;
54187
54215
 
54188
54216
  assignmentExpressionComments.printLeadingCommentLine = (path, printer, semantics, {printComment, isLast}) => {
54189
54217
  const {parentPath} = path;
@@ -54241,11 +54269,11 @@ assignmentExpressionComments.maybeInsideReturnWithCommentEnd = (path, {print, in
54241
54269
 
54242
54270
  var printSeparator = {};
54243
54271
 
54244
- const {types: types$S} = bundle$1;
54272
+ const {types: types$T} = bundle$1;
54245
54273
  const {
54246
54274
  isAssignmentExpression: isAssignmentExpression$2,
54247
54275
  isExpressionStatement: isExpressionStatement$5,
54248
- } = types$S;
54276
+ } = types$T;
54249
54277
 
54250
54278
  printSeparator.printSeparator = (path, {print}) => {
54251
54279
  if (isMultiline(path))
@@ -54318,11 +54346,11 @@ var operate = {};
54318
54346
 
54319
54347
  var getBinding$3 = {};
54320
54348
 
54321
- const {types: types$R} = bundle$1;
54349
+ const {types: types$S} = bundle$1;
54322
54350
  const {
54323
54351
  isIdentifier: isIdentifier$c,
54324
54352
  isMemberExpression: isMemberExpression$7,
54325
- } = types$R;
54353
+ } = types$S;
54326
54354
 
54327
54355
  const isString$e = (a) => typeof a === 'string';
54328
54356
 
@@ -54349,13 +54377,13 @@ const parseName$1 = (node) => {
54349
54377
 
54350
54378
  var isSimple$2 = {};
54351
54379
 
54352
- const {types: types$Q} = bundle$1;
54380
+ const {types: types$R} = bundle$1;
54353
54381
  const {
54354
54382
  isOptionalMemberExpression: isOptionalMemberExpression$2,
54355
54383
  isMemberExpression: isMemberExpression$6,
54356
54384
  isIdentifier: isIdentifier$b,
54357
54385
  isLiteral: isLiteral$4,
54358
- } = types$Q;
54386
+ } = types$R;
54359
54387
 
54360
54388
  isSimple$2.isSimple = (a) => {
54361
54389
  if (isLiteral$4(a))
@@ -54372,7 +54400,7 @@ isSimple$2.isSimple = (a) => {
54372
54400
 
54373
54401
  var extract$6 = {};
54374
54402
 
54375
- const {types: types$P} = bundle$1;
54403
+ const {types: types$Q} = bundle$1;
54376
54404
  const {
54377
54405
  isArrayExpression: isArrayExpression$5,
54378
54406
  isLiteral: isLiteral$3,
@@ -54388,7 +54416,7 @@ const {
54388
54416
  isTSTypeReference: isTSTypeReference$3,
54389
54417
  isTSTypeParameter: isTSTypeParameter$1,
54390
54418
  isTSAsExpression: isTSAsExpression$1,
54391
- } = types$P;
54419
+ } = types$Q;
54392
54420
 
54393
54421
  extract$6.extract = extract$5;
54394
54422
 
@@ -54809,13 +54837,13 @@ var properties = {};
54809
54837
 
54810
54838
  var traverseProperties$4 = {};
54811
54839
 
54812
- const {traverse: traverse$a, types: types$O} = bundle$1;
54840
+ const {traverse: traverse$a, types: types$P} = bundle$1;
54813
54841
  const {extract: extract$3} = extract$6;
54814
54842
 
54815
54843
  const {
54816
54844
  isCallExpression: isCallExpression$8,
54817
54845
  isObjectExpression: isObjectExpression$6,
54818
- } = types$O;
54846
+ } = types$P;
54819
54847
 
54820
54848
  const nodeOrPath = (path) => path.node || path;
54821
54849
 
@@ -54955,13 +54983,13 @@ var replaceWithMultiple$3 = {};
54955
54983
 
54956
54984
  var maybeBody$2 = {};
54957
54985
 
54958
- const {types: types$N} = bundle$1;
54986
+ const {types: types$O} = bundle$1;
54959
54987
  const {
54960
54988
  isStatement: isStatement$8,
54961
54989
  isBlockStatement: isBlockStatement$6,
54962
54990
  blockStatement: blockStatement$4,
54963
54991
  expressionStatement: expressionStatement$8,
54964
- } = types$N;
54992
+ } = types$O;
54965
54993
 
54966
54994
  maybeBody$2.maybeBody = (path, node) => {
54967
54995
  const {parentPath} = path;
@@ -54982,12 +55010,12 @@ maybeBody$2.maybeBody = (path, node) => {
54982
55010
 
54983
55011
  var toExpression$4 = {};
54984
55012
 
54985
- const {types: types$M} = bundle$1;
55013
+ const {types: types$N} = bundle$1;
54986
55014
  const {
54987
55015
  isExpression: isExpression$4,
54988
55016
  toStatement: toStatement$1,
54989
55017
  expressionStatement: expressionStatement$7,
54990
- } = types$M;
55018
+ } = types$N;
54991
55019
 
54992
55020
  toExpression$4.toExpression = (el) => {
54993
55021
  const {type} = el;
@@ -55108,7 +55136,7 @@ replaceWith$8.replaceWith = replaceWith$6;
55108
55136
  replaceWith$8.replaceWithMultiple = replaceWithMultiple$2;
55109
55137
  replaceWith$8.toExpression = toExpression$2;
55110
55138
 
55111
- const {types: types$L} = bundle$1;
55139
+ const {types: types$M} = bundle$1;
55112
55140
 
55113
55141
  const {getBinding: getBinding$1, getBindingPath} = getBinding$3;
55114
55142
  const {isSimple: isSimple$1} = isSimple$2;
@@ -55141,7 +55169,7 @@ const {
55141
55169
  isExportDeclaration: isExportDeclaration$5,
55142
55170
  isStatement: isStatement$7,
55143
55171
  expressionStatement: expressionStatement$6,
55144
- } = types$L;
55172
+ } = types$M;
55145
55173
 
55146
55174
  operate.getBinding = getBinding$1;
55147
55175
  operate.getBindingPath = getBindingPath;
@@ -55227,7 +55255,7 @@ operate.isESM = (path) => {
55227
55255
  };
55228
55256
 
55229
55257
  const {isSimple} = operate;
55230
- const {types: types$K} = bundle$1;
55258
+ const {types: types$L} = bundle$1;
55231
55259
 
55232
55260
  const {
55233
55261
  isStringAndMember,
@@ -55250,7 +55278,7 @@ const {
55250
55278
  isStringLiteral: isStringLiteral$7,
55251
55279
  isSpreadElement: isSpreadElement$2,
55252
55280
  isIdentifier: isIdentifier$9,
55253
- } = types$K;
55281
+ } = types$L;
55254
55282
 
55255
55283
  const {round: round$1} = Math;
55256
55284
 
@@ -55541,13 +55569,13 @@ newline.isCurrentNewLine = (path) => {
55541
55569
 
55542
55570
  var indent = {};
55543
55571
 
55544
- const {types: types$J} = bundle$1;
55572
+ const {types: types$K} = bundle$1;
55545
55573
  const {isIndented} = is$4;
55546
55574
 
55547
55575
  const {
55548
55576
  isStringLiteral: isStringLiteral$6,
55549
55577
  isArrayExpression: isArrayExpression$3,
55550
- } = types$J;
55578
+ } = types$K;
55551
55579
 
55552
55580
  const isInsideArray$1 = (path) => path.parentPath.isArrayExpression();
55553
55581
 
@@ -55619,7 +55647,7 @@ isObjectAfterSimple$1.isNextSimple = (a) => {
55619
55647
  return SIMPLE_TYPES.includes(type);
55620
55648
  };
55621
55649
 
55622
- const {types: types$I} = bundle$1;
55650
+ const {types: types$J} = bundle$1;
55623
55651
  const {
55624
55652
  isCoupleLines: isCoupleLines$4,
55625
55653
  isStringAndIdentifier,
@@ -55654,7 +55682,7 @@ const {
55654
55682
  isFunction: isFunction$6,
55655
55683
  isCallExpression: isCallExpression$6,
55656
55684
  isObjectProperty: isObjectProperty$1,
55657
- } = types$I;
55685
+ } = types$J;
55658
55686
 
55659
55687
  const isNextString = (path) => isStringLiteral$5(path.getNextSibling());
55660
55688
  const isPrevString = (path) => isStringLiteral$5(path.getPrevSibling());
@@ -55935,10 +55963,10 @@ maybeWriteBrace.condition = (path, printer, semantics) => {
55935
55963
  var sequenceExpressionComments = {};
55936
55964
 
55937
55965
  const {hasLeadingComment} = is$4;
55938
- const noop$4 = () => {};
55966
+ const noop$5 = () => {};
55939
55967
 
55940
- sequenceExpressionComments.printLeadingCommentLine = noop$4;
55941
- sequenceExpressionComments.printLeadingCommentBlock = noop$4;
55968
+ sequenceExpressionComments.printLeadingCommentLine = noop$5;
55969
+ sequenceExpressionComments.printLeadingCommentBlock = noop$5;
55942
55970
 
55943
55971
  sequenceExpressionComments.maybePrintComments = (path, {print}) => {
55944
55972
  if (hasLeadingComment(path)) {
@@ -56074,12 +56102,12 @@ var logicalExpression$1 = {};
56074
56102
 
56075
56103
  var chain$2 = {};
56076
56104
 
56077
- const {types: types$H} = bundle$1;
56105
+ const {types: types$I} = bundle$1;
56078
56106
  const {
56079
56107
  isLogicalExpression: isLogicalExpression$1,
56080
56108
  isReturnStatement: isReturnStatement$3,
56081
56109
  isVariableDeclarator: isVariableDeclarator$2,
56082
- } = types$H;
56110
+ } = types$I;
56083
56111
 
56084
56112
  chain$2.isRootOk = (path) => {
56085
56113
  return isReturnStatement$3(path) || isVariableDeclarator$2(path);
@@ -56225,8 +56253,8 @@ function createImportExpression$1(path, printer) {
56225
56253
 
56226
56254
  var parenthesizedExpression$3 = {};
56227
56255
 
56228
- const {types: types$G} = bundle$1;
56229
- const {isJSXElement: isJSXElement$5} = types$G;
56256
+ const {types: types$H} = bundle$1;
56257
+ const {isJSXElement: isJSXElement$5} = types$H;
56230
56258
 
56231
56259
  const condition$2 = (path) => {
56232
56260
  const {expression} = path.node;
@@ -56327,12 +56355,12 @@ var expressionStatement$5 = {exports: {}};
56327
56355
 
56328
56356
  var isInsideAssignNextAssignFunction = {};
56329
56357
 
56330
- const {types: types$F} = bundle$1;
56358
+ const {types: types$G} = bundle$1;
56331
56359
  const {
56332
56360
  isExpressionStatement: isExpressionStatement$4,
56333
56361
  isFunction: isFunction$5,
56334
56362
  isAssignmentExpression: isAssignmentExpression$1,
56335
- } = types$F;
56363
+ } = types$G;
56336
56364
 
56337
56365
  isInsideAssignNextAssignFunction.isInsideAssignNextAssignFunction = (path) => {
56338
56366
  const {expression} = path.node;
@@ -56361,14 +56389,14 @@ isInsideAssignNextAssignFunction.isInsideAssignNextAssignFunction = (path) => {
56361
56389
 
56362
56390
  var expressionStatementComments = {};
56363
56391
 
56364
- const {types: types$E} = bundle$1;
56392
+ const {types: types$F} = bundle$1;
56365
56393
  const {hasTrailingComment: hasTrailingComment$1} = is$4;
56366
56394
 
56367
56395
  const {
56368
56396
  isBlockStatement: isBlockStatement$5,
56369
56397
  isProgram: isProgram$5,
56370
56398
  isIfStatement: isIfStatement$1,
56371
- } = types$E;
56399
+ } = types$F;
56372
56400
 
56373
56401
  expressionStatementComments.printLeadingCommentLine = (path, printer, semantics, {index, isLast, printComment}) => {
56374
56402
  const {print, indent} = printer;
@@ -56624,7 +56652,7 @@ maybeSpaceAfterKeyword$3.maybeSpaceAfterKeyword = (path, {write}) => {
56624
56652
  write(' ');
56625
56653
  };
56626
56654
 
56627
- const {types: types$D} = bundle$1;
56655
+ const {types: types$E} = bundle$1;
56628
56656
  const {
56629
56657
  isNext: isNext$j,
56630
56658
  isCoupleLines: isCoupleLines$3,
@@ -56640,7 +56668,7 @@ const {isConcatenation} = concatenate$1;
56640
56668
  const {parseLeadingComments: parseLeadingComments$2} = comment;
56641
56669
  const {maybeDeclare: maybeDeclare$4} = maybeDeclare$6;
56642
56670
 
56643
- const {isExportDeclaration: isExportDeclaration$4} = types$D;
56671
+ const {isExportDeclaration: isExportDeclaration$4} = types$E;
56644
56672
 
56645
56673
  const isParentTSModuleBlock = (path) => path.parentPath.isTSModuleBlock();
56646
56674
  const isParentBlock$2 = (path) => /Program|BlockStatement|Export|LabeledStatement/.test(path.parentPath.type);
@@ -56840,7 +56868,7 @@ const isNextAssign = (path) => {
56840
56868
 
56841
56869
  var ifStatement$1 = {};
56842
56870
 
56843
- const {types: types$C} = bundle$1;
56871
+ const {types: types$D} = bundle$1;
56844
56872
 
56845
56873
  const {markAfter: markAfter$9} = mark;
56846
56874
  const {
@@ -56856,7 +56884,7 @@ const {
56856
56884
  isExpressionStatement: isExpressionStatement$3,
56857
56885
  isReturnStatement: isReturnStatement$2,
56858
56886
  isContinueStatement: isContinueStatement$1,
56859
- } = types$C;
56887
+ } = types$D;
56860
56888
 
56861
56889
  const isStatementNotExpression = (path) => {
56862
56890
  if (isBlockStatement$4(path))
@@ -57068,14 +57096,14 @@ getDirectives$2.getDirectives = (path) => !path.node.directives ? [] : path.get(
57068
57096
 
57069
57097
  var isCallInsideChain$1 = {};
57070
57098
 
57071
- const {types: types$B} = bundle$1;
57099
+ const {types: types$C} = bundle$1;
57072
57100
  const {isLooksLikeChain} = isLooksLikeChain$4;
57073
57101
  const {
57074
57102
  isReturnStatement: isReturnStatement$1,
57075
57103
  isExpressionStatement: isExpressionStatement$2,
57076
57104
  isMemberExpression: isMemberExpression$4,
57077
57105
  isCallExpression: isCallExpression$5,
57078
- } = types$B;
57106
+ } = types$C;
57079
57107
 
57080
57108
  isCallInsideChain$1.isCallInsideChain = (path) => {
57081
57109
  if (!isCallExpression$5(path.parentPath.parentPath))
@@ -57115,7 +57143,7 @@ function isTopCall(path) {
57115
57143
  return isExpressionStatement$2(parentPath);
57116
57144
  }
57117
57145
 
57118
- const {types: types$A} = bundle$1;
57146
+ const {types: types$B} = bundle$1;
57119
57147
  const {
57120
57148
  isNext: isNext$g,
57121
57149
  isParentProgram,
@@ -57138,7 +57166,7 @@ const {
57138
57166
  isDoWhileStatement: isDoWhileStatement$1,
57139
57167
  isBlockStatement: isBlockStatement$3,
57140
57168
  isArrayExpression: isArrayExpression$2,
57141
- } = types$A;
57169
+ } = types$B;
57142
57170
 
57143
57171
  const isFirstStatement = (path) => path.node.body[0];
57144
57172
  const isFirstDirective = (path) => path.node.directives?.[0];
@@ -57343,7 +57371,7 @@ maybeSpaceAfterKeyword$1.maybeSpaceAfterKeyword = (path, {print}, semantics) =>
57343
57371
  print(' ');
57344
57372
  };
57345
57373
 
57346
- const {types: types$z} = bundle$1;
57374
+ const {types: types$A} = bundle$1;
57347
57375
 
57348
57376
  const {isInsideLabel: isInsideLabel$4} = is$4;
57349
57377
  const {
@@ -57355,7 +57383,7 @@ const {
57355
57383
  const {hasPrevNewline: hasPrevNewline$1} = mark;
57356
57384
  const {maybeSpaceAfterKeyword} = maybeSpaceAfterKeyword$1;
57357
57385
 
57358
- const {isJSXElement: isJSXElement$4} = types$z;
57386
+ const {isJSXElement: isJSXElement$4} = types$A;
57359
57387
  const isBodyLength = ({parentPath}) => parentPath.node?.body?.length > 2;
57360
57388
 
57361
57389
  const isInsideIfWithElse = ({parentPath}) => parentPath.isIfStatement() && parentPath.node.alternate;
@@ -57602,8 +57630,8 @@ importAttribute$1.printAttributes = (path, keyword, {write, traverse, indent}) =
57602
57630
 
57603
57631
  var importDeclarationComments = {};
57604
57632
 
57605
- const {types: types$y} = bundle$1;
57606
- const {isExportDeclaration: isExportDeclaration$2} = types$y;
57633
+ const {types: types$z} = bundle$1;
57634
+ const {isExportDeclaration: isExportDeclaration$2} = types$z;
57607
57635
 
57608
57636
  importDeclarationComments.printTrailingCommentLine = (path, printer, semantics, {printComment}) => {
57609
57637
  const {print} = printer;
@@ -57768,7 +57796,7 @@ importDeclarationExports.default;
57768
57796
 
57769
57797
  var exportDeclaration = {};
57770
57798
 
57771
- const {types: types$x} = bundle$1;
57799
+ const {types: types$y} = bundle$1;
57772
57800
 
57773
57801
  const {isParentBlock: isParentBlock$1} = is$4;
57774
57802
  const {
@@ -57788,7 +57816,7 @@ const {
57788
57816
  isExportNamespaceSpecifier: isExportNamespaceSpecifier$1,
57789
57817
  isVariableDeclaration: isVariableDeclaration$4,
57790
57818
  isExportNamedDeclaration: isExportNamedDeclaration$3,
57791
- } = types$x;
57819
+ } = types$y;
57792
57820
 
57793
57821
  const isDeclarationNewline = (path) => isMarkedAfter(path.get('declaration'));
57794
57822
  const isInsideNamespace$1 = (path) => path.parentPath.isTSModuleBlock();
@@ -58072,13 +58100,13 @@ forInStatement$1.ForInStatement = (path, {print, indent}) => {
58072
58100
 
58073
58101
  var exportDefaultDeclaration$1 = {};
58074
58102
 
58075
- const {types: types$w} = bundle$1;
58103
+ const {types: types$x} = bundle$1;
58076
58104
  const {isNext: isNext$a} = is$4;
58077
58105
 
58078
58106
  const {
58079
58107
  isVariableDeclaration: isVariableDeclaration$3,
58080
58108
  isFunction: isFunction$4,
58081
- } = types$w;
58109
+ } = types$x;
58082
58110
 
58083
58111
  function shouldAddSemicolon(path) {
58084
58112
  if (path.isClassDeclaration())
@@ -58646,8 +58674,8 @@ tsTypeAliasDeclaration$1.TSTypeAliasDeclaration = {
58646
58674
 
58647
58675
  var tsMappedType$1 = {};
58648
58676
 
58649
- const {types: types$v} = bundle$1;
58650
- const {isTSConditionalType: isTSConditionalType$1} = types$v;
58677
+ const {types: types$w} = bundle$1;
58678
+ const {isTSConditionalType: isTSConditionalType$1} = types$w;
58651
58679
 
58652
58680
  tsMappedType$1.TSMappedType = (path, {print, indent, maybe}) => {
58653
58681
  const {
@@ -58757,7 +58785,7 @@ tsTypeParameter$1.TSTypeParameter = (path, {write, traverse}) => {
58757
58785
 
58758
58786
  var tsDeclareFunction$1 = {};
58759
58787
 
58760
- const {printParams: printParams$7} = params;
58788
+ const {printParams: printParams$8} = params;
58761
58789
  const {isNext: isNext$7} = is$4;
58762
58790
  const {maybeDeclare: maybeDeclare$2} = maybeDeclare$6;
58763
58791
 
@@ -58780,7 +58808,7 @@ tsDeclareFunction$1.TSDeclareFunction = {
58780
58808
  print('function ');
58781
58809
  print('__id');
58782
58810
 
58783
- printParams$7(path, printer, semantics);
58811
+ printParams$8(path, printer, semantics);
58784
58812
 
58785
58813
  print(':');
58786
58814
  print.space();
@@ -58797,7 +58825,7 @@ tsDeclareFunction$1.TSDeclareFunction = {
58797
58825
 
58798
58826
  var tsDeclareMethod$1 = {};
58799
58827
 
58800
- const {printParams: printParams$6} = params;
58828
+ const {printParams: printParams$7} = params;
58801
58829
 
58802
58830
  tsDeclareMethod$1.TSDeclareMethod = (path, printer, semantics) => {
58803
58831
  const {print} = printer;
@@ -58819,7 +58847,7 @@ tsDeclareMethod$1.TSDeclareMethod = (path, printer, semantics) => {
58819
58847
 
58820
58848
  print('__key');
58821
58849
 
58822
- printParams$6(path, printer, semantics);
58850
+ printParams$7(path, printer, semantics);
58823
58851
 
58824
58852
  if (returnType) {
58825
58853
  print(':');
@@ -58872,7 +58900,7 @@ tsModuleDeclaration$1.TSModuleBlock = (path, {print, traverse, indent}) => {
58872
58900
 
58873
58901
  var tsInterfaceDeclaration$1 = {};
58874
58902
 
58875
- const {types: types$u} = bundle$1;
58903
+ const {types: types$v} = bundle$1;
58876
58904
 
58877
58905
  const {isNext: isNext$5, isNextParent: isNextParent$1} = is$4;
58878
58906
  const {maybeDeclare} = maybeDeclare$6;
@@ -58882,20 +58910,26 @@ const {
58882
58910
  isTSTypeAliasDeclaration: isTSTypeAliasDeclaration$1,
58883
58911
  isExportNamedDeclaration: isExportNamedDeclaration$2,
58884
58912
  isTSModuleBlock: isTSModuleBlock$2,
58885
- } = types$u;
58913
+ } = types$v;
58886
58914
 
58887
58915
  const isInsideNamespace = (path) => isTSModuleBlock$2(path.parentPath.parentPath);
58888
58916
 
58889
58917
  tsInterfaceDeclaration$1.TSInterfaceDeclaration = {
58890
58918
  print: maybeDeclare((path, {print, maybe}) => {
58891
58919
  const {node} = path;
58920
+ const {typeParameters} = node;
58892
58921
 
58893
58922
  maybe.indent(!isExportNamedDeclaration$2(path.parentPath));
58894
58923
  print('interface ');
58895
58924
  print('__id');
58896
58925
 
58926
+ print('__typeParameters');
58927
+
58897
58928
  if (node.extends) {
58898
- print(' extends ');
58929
+ if (!typeParameters || typeParameters.length < 2)
58930
+ print(' ');
58931
+
58932
+ print('extends ');
58899
58933
 
58900
58934
  const extendsPaths = path.get('extends');
58901
58935
  const n = extendsPaths.length - 1;
@@ -58906,7 +58940,6 @@ tsInterfaceDeclaration$1.TSInterfaceDeclaration = {
58906
58940
  }
58907
58941
  }
58908
58942
 
58909
- print('__typeParameters');
58910
58943
  print('__body');
58911
58944
  }),
58912
58945
  afterSatisfy: () => [isNext$5, isNextParent$1],
@@ -58924,13 +58957,13 @@ tsInterfaceDeclaration$1.TSInterfaceDeclaration = {
58924
58957
 
58925
58958
  var tsAsExpression$1 = {};
58926
58959
 
58927
- const {types: types$t} = bundle$1;
58960
+ const {types: types$u} = bundle$1;
58928
58961
  const {maybeParens: maybeParens$4} = maybeParens$e;
58929
58962
 
58930
58963
  const {
58931
58964
  isVariableDeclarator: isVariableDeclarator$1,
58932
58965
  isObjectExpression: isObjectExpression$2,
58933
- } = types$t;
58966
+ } = types$u;
58934
58967
 
58935
58968
  tsAsExpression$1.TSAsExpression = maybeParens$4((path, {print, maybe}) => {
58936
58969
  const is = isParens(path);
@@ -59057,7 +59090,7 @@ printReturnType$5.printReturnType = (path, {traverse}) => {
59057
59090
  traverse(path.get('returnType'));
59058
59091
  };
59059
59092
 
59060
- const {printParams: printParams$5} = params;
59093
+ const {printParams: printParams$6} = params;
59061
59094
  const {printReturnType: printReturnType$4} = printReturnType$5;
59062
59095
 
59063
59096
  const {maybeParens: maybeParens$3} = maybeParens$e;
@@ -59065,7 +59098,7 @@ const {maybeParens: maybeParens$3} = maybeParens$e;
59065
59098
  tsFunctionType$1.TSFunctionType = maybeParens$3((path, printer, semantics) => {
59066
59099
  const {print} = printer;
59067
59100
 
59068
- printParams$5(path, printer, semantics);
59101
+ printParams$6(path, printer, semantics);
59069
59102
  print.space();
59070
59103
  print('=>');
59071
59104
  print.space();
@@ -59184,7 +59217,7 @@ tsNamedTupleMember$1.TSNamedTupleMember = (path, {print}) => {
59184
59217
 
59185
59218
  var tsConstructorType$1 = {};
59186
59219
 
59187
- const {printParams: printParams$4} = params;
59220
+ const {printParams: printParams$5} = params;
59188
59221
  const {printReturnType: printReturnType$3} = printReturnType$5;
59189
59222
 
59190
59223
  tsConstructorType$1.TSConstructorType = (path, printer, semantics) => {
@@ -59193,7 +59226,7 @@ tsConstructorType$1.TSConstructorType = (path, printer, semantics) => {
59193
59226
  print('new');
59194
59227
  print(' ');
59195
59228
 
59196
- printParams$4(path, printer, semantics);
59229
+ printParams$5(path, printer, semantics);
59197
59230
  print.space();
59198
59231
  print('=>');
59199
59232
  print.space();
@@ -59203,11 +59236,11 @@ tsConstructorType$1.TSConstructorType = (path, printer, semantics) => {
59203
59236
  var tsCallSignatureDeclaration$1 = {};
59204
59237
 
59205
59238
  const {printReturnType: printReturnType$2} = printReturnType$5;
59206
- const {printParams: printParams$3} = params;
59239
+ const {printParams: printParams$4} = params;
59207
59240
 
59208
59241
  tsCallSignatureDeclaration$1.TSCallSignatureDeclaration = (path, printer, semantics) => {
59209
59242
  const {print} = printer;
59210
- printParams$3(path, printer, semantics);
59243
+ printParams$4(path, printer, semantics);
59211
59244
  print(':');
59212
59245
  print.space();
59213
59246
  printReturnType$2(path, printer);
@@ -59217,7 +59250,7 @@ tsCallSignatureDeclaration$1.TSCallSignatureDeclaration = (path, printer, semant
59217
59250
 
59218
59251
  var tsConstructSignatureDeclaration$1 = {};
59219
59252
 
59220
- const {printParams: printParams$2} = params;
59253
+ const {printParams: printParams$3} = params;
59221
59254
 
59222
59255
  const {
59223
59256
  hasReturnType: hasReturnType$1,
@@ -59228,7 +59261,7 @@ tsConstructSignatureDeclaration$1.TSConstructSignatureDeclaration = (path, print
59228
59261
  const {write} = printer;
59229
59262
 
59230
59263
  write('new');
59231
- printParams$2(path, printer, semantics);
59264
+ printParams$3(path, printer, semantics);
59232
59265
 
59233
59266
  if (hasReturnType$1(path)) {
59234
59267
  write(':');
@@ -59242,7 +59275,7 @@ tsConstructSignatureDeclaration$1.TSConstructSignatureDeclaration = (path, print
59242
59275
 
59243
59276
  var tsMethodSignature$1 = {};
59244
59277
 
59245
- const {printParams: printParams$1} = params;
59278
+ const {printParams: printParams$2} = params;
59246
59279
  const {printKind} = kind;
59247
59280
  const {
59248
59281
  hasReturnType,
@@ -59256,7 +59289,7 @@ tsMethodSignature$1.TSMethodSignature = (path, printer, semantics) => {
59256
59289
 
59257
59290
  printKind(path, printer);
59258
59291
  printKey(path, printer);
59259
- printParams$1(path, printer, semantics);
59292
+ printParams$2(path, printer, semantics);
59260
59293
 
59261
59294
  if (hasReturnType(path)) {
59262
59295
  write(':');
@@ -59428,6 +59461,57 @@ var tsParameterProperty$1 = {exports: {}};
59428
59461
  var tsParameterPropertyExports = tsParameterProperty$1.exports;
59429
59462
  tsParameterPropertyExports.default;
59430
59463
 
59464
+ var tsTypeParameterDeclaration$1 = {};
59465
+
59466
+ const {types: types$t} = bundle$1;
59467
+ const {createPrintSpace} = printFunctionParams$1;
59468
+ const {printParams: printParams$1} = params;
59469
+ const {isTSUnionType: isTSUnionType$1} = types$t;
59470
+ const noop$4 = () => {};
59471
+
59472
+ tsTypeParameterDeclaration$1.TSTypeParameterDeclaration = (path, printer, semantics) => {
59473
+ const {print, indent} = printer;
59474
+ const isNewline = hasComplexParameters(path);
59475
+ const printSpace = createPrintSpace({
59476
+ isNewline,
59477
+ printer,
59478
+ });
59479
+
59480
+ const printAfterOpen = !isNewline ? noop$4 : () => {
59481
+ indent.inc();
59482
+ print.breakline();
59483
+ };
59484
+
59485
+ const printAfterClose = !isNewline ? noop$4 : () => {
59486
+ print.breakline();
59487
+ };
59488
+
59489
+ const printBeforeClose = !isNewline ? noop$4 : () => {
59490
+ indent.dec();
59491
+ print.breakline();
59492
+ };
59493
+
59494
+ printParams$1(path, printer, semantics, {
59495
+ printSpace,
59496
+ braceOpen: '<',
59497
+ braceClose: '>',
59498
+ printAfterOpen,
59499
+ printBeforeClose,
59500
+ printAfterClose,
59501
+ });
59502
+ };
59503
+
59504
+ function hasComplexParameters({node}) {
59505
+ const {params} = node;
59506
+
59507
+ for (const {constraint} of params) {
59508
+ if (isTSUnionType$1(constraint))
59509
+ return true;
59510
+ }
59511
+
59512
+ return false;
59513
+ }
59514
+
59431
59515
  var tsTypeQuery$1 = {};
59432
59516
 
59433
59517
  const {maybeParens} = maybeParens$e;
@@ -59500,6 +59584,7 @@ const {TSExportAssignment: TSExportAssignment$1} = tsExportAssignment$1;
59500
59584
  const {TSTypeReference: TSTypeReference$1} = tsTypeReference$1;
59501
59585
  const {TSInferType: TSInferType$2} = tsInferType$1;
59502
59586
  const {TSParameterProperty: TSParameterProperty$1} = tsParameterPropertyExports;
59587
+ const {TSTypeParameterDeclaration: TSTypeParameterDeclaration$1} = tsTypeParameterDeclaration$1;
59503
59588
  const {TSTypeQuery: TSTypeQuery$1} = tsTypeQuery$1;
59504
59589
  const {TSParenthesizedType: TSParenthesizedType$1} = tsParenthesizedType$3;
59505
59590
  const {TSTemplateLiteralType: TSTemplateLiteralType$1} = tsTemplateLiteralType$1;
@@ -59522,6 +59607,7 @@ var typescript$3 = {
59522
59607
  TSTypeQuery: TSTypeQuery$1,
59523
59608
  TSTemplateLiteralType: TSTemplateLiteralType$1,
59524
59609
  TSOptionalType: TSOptionalType$1,
59610
+ TSTypeParameterDeclaration: TSTypeParameterDeclaration$1,
59525
59611
  TSBigIntKeyword(path, {write}) {
59526
59612
  write('bigint');
59527
59613
  },
@@ -59549,12 +59635,6 @@ var typescript$3 = {
59549
59635
  print('...');
59550
59636
  print('__typeAnnotation');
59551
59637
  },
59552
- TSTypeParameterDeclaration(path, printer, semantics) {
59553
- printParams(path, printer, semantics, {
59554
- braceOpen: '<',
59555
- braceClose: '>',
59556
- });
59557
- },
59558
59638
  TSTypeParameterInstantiation(path, printer, semantics) {
59559
59639
  printParams(path, printer, semantics, {
59560
59640
  braceOpen: '<',
@@ -59992,7 +60072,7 @@ const constant = (a) => () => a;
59992
60072
  const {keys: keys$4} = Object;
59993
60073
 
59994
60074
  var rendy$1 = (template, values, modifiers) => {
59995
- check$h(template, values);
60075
+ check$i(template, values);
59996
60076
 
59997
60077
  let result = template;
59998
60078
 
@@ -60012,7 +60092,7 @@ var rendy$1 = (template, values, modifiers) => {
60012
60092
  return result;
60013
60093
  };
60014
60094
 
60015
- function check$h(template, values) {
60095
+ function check$i(template, values) {
60016
60096
  if (!isString$c(template))
60017
60097
  throw Error('template should be a string!');
60018
60098
 
@@ -60168,7 +60248,7 @@ function snakeCase(str) {
60168
60248
  const process$1 = require$$0$3;
60169
60249
  const toSnakeCase = justSnakeCase;
60170
60250
  const {codeFrameColumns: codeFrameColumns$2} = bundle$1;
60171
- const {TYPES: TYPES$3} = types$19;
60251
+ const {TYPES: TYPES$3} = types$1a;
60172
60252
 
60173
60253
  const {stringify: stringify$7} = JSON;
60174
60254
  const {
@@ -60355,7 +60435,7 @@ const initSemantics = (format, semantics = {}) => ({
60355
60435
  const fullstore$2 = fullstore$3;
60356
60436
 
60357
60437
  const babelTraverse$2 = bundle$1.traverse;
60358
- const {TYPES: TYPES$2} = types$19;
60438
+ const {TYPES: TYPES$2} = types$1a;
60359
60439
  const baseVisitors = visitors$2;
60360
60440
 
60361
60441
  const {
@@ -60816,7 +60896,7 @@ const {maybeVisitor} = maybe;
60816
60896
  const visitors$1 = visitors$2;
60817
60897
 
60818
60898
  printer.print = (ast, overrides = {}) => {
60819
- check$g(ast);
60899
+ check$h(ast);
60820
60900
 
60821
60901
  const options = maybeJSON(ast, overrides);
60822
60902
  const tokens = tokenize$1(ast, options);
@@ -60827,7 +60907,7 @@ printer.print = (ast, overrides = {}) => {
60827
60907
  printer.visitors = visitors$1;
60828
60908
  printer.maybeVisitor = maybeVisitor;
60829
60909
 
60830
- function check$g(ast) {
60910
+ function check$h(ast) {
60831
60911
  if (typeof ast !== 'object')
60832
60912
  throw Error('☝️Looks like ast not an object');
60833
60913
  }
@@ -60837,7 +60917,7 @@ var babel$2 = {};
60837
60917
  const isString$a = (a) => typeof a === 'string';
60838
60918
 
60839
60919
  var alignSpaces = (str) => {
60840
- check$f(str);
60920
+ check$g(str);
60841
60921
 
60842
60922
  const array = str.split('\n');
60843
60923
  const n = array.length - 1;
@@ -60881,7 +60961,7 @@ function getSpaces(s) {
60881
60961
  return spaces;
60882
60962
  }
60883
60963
 
60884
- function check$f(str) {
60964
+ function check$g(str) {
60885
60965
  if (!isString$a(str))
60886
60966
  throw Error('str should be a string!');
60887
60967
  }
@@ -111053,7 +111133,7 @@ const {assign: assign$4} = Object;
111053
111133
  const isString$8 = (a) => typeof a === 'string';
111054
111134
 
111055
111135
  var parse$5 = (source, options) => {
111056
- check$e(source);
111136
+ check$f(source);
111057
111137
 
111058
111138
  const {
111059
111139
  parser,
@@ -111091,7 +111171,7 @@ const getParser = ({parser = 'babel', isTS, isJSX, printer}) => ({
111091
111171
  },
111092
111172
  });
111093
111173
 
111094
- function check$e(source) {
111174
+ function check$f(source) {
111095
111175
  if (!isString$8(source))
111096
111176
  throw Error(`☝️ Looks like type of 'source' is not 'string', but '${typeof source}'`);
111097
111177
  }
@@ -111597,7 +111677,7 @@ var _polyfillNode_path$1 = /*#__PURE__*/Object.freeze({
111597
111677
  var require$$0$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_path$1);
111598
111678
 
111599
111679
  var tryToCatch$1 = async (fn, ...args) => {
111600
- check$d(fn);
111680
+ check$e(fn);
111601
111681
 
111602
111682
  try {
111603
111683
  return [null, await fn(...args)];
@@ -111606,7 +111686,7 @@ var tryToCatch$1 = async (fn, ...args) => {
111606
111686
  }
111607
111687
  };
111608
111688
 
111609
- function check$d(fn) {
111689
+ function check$e(fn) {
111610
111690
  if (typeof fn !== 'function')
111611
111691
  throw Error('fn should be a function!');
111612
111692
  }
@@ -111768,7 +111848,7 @@ parseRules$2.parseRules = (rules) => {
111768
111848
  const plugin = null;
111769
111849
  const msg = '';
111770
111850
 
111771
- check$c(rules);
111851
+ check$d(rules);
111772
111852
 
111773
111853
  for (const [rule, value] of entries$8(rules)) {
111774
111854
  if (isStr$3(value)) {
@@ -111870,7 +111950,7 @@ parseRules$2.enableNestedRules = (rules) => {
111870
111950
  return newRules;
111871
111951
  };
111872
111952
 
111873
- function check$c(rules) {
111953
+ function check$d(rules) {
111874
111954
  if (isArray$b(rules))
111875
111955
  throw Error(`☝️Looks like type of 'rules' passed to @putout/engine-loader is 'array', expected: 'object'.`);
111876
111956
  }
@@ -111998,26 +112078,26 @@ var rules = {
111998
112078
  getLoadedRules: getLoadedRules$1,
111999
112079
  };
112000
112080
 
112001
- var check$b = {};
112081
+ var check$c = {};
112002
112082
 
112003
112083
  const isString$7 = (a) => typeof a === 'string';
112004
112084
 
112005
- check$b.check = (options) => {
112085
+ check$c.check = (options) => {
112006
112086
  if (!options || typeof options !== 'object')
112007
112087
  throw Error('options should be an object!');
112008
112088
  };
112009
112089
 
112010
- check$b.checkRule = (rule) => {
112090
+ check$c.checkRule = (rule) => {
112011
112091
  if (!isString$7(rule))
112012
112092
  throw Error(`☝️ Looks like plugin name type is not 'string', but: '${typeof rule}'`);
112013
112093
  };
112014
112094
 
112015
112095
  const {parsePluginNames: parsePluginNames$1} = parsePluginNames$2;
112016
112096
  const {validateRules} = rules;
112017
- const {check: check$a} = check$b;
112097
+ const {check: check$b} = check$c;
112018
112098
 
112019
112099
  validateRulesRelations$2.validateRulesRelations = (options) => {
112020
- check$a(options);
112100
+ check$b(options);
112021
112101
 
112022
112102
  const {pluginNames = [], rules = {}} = options;
112023
112103
  const items = parsePluginNames$1(pluginNames);
@@ -112128,12 +112208,12 @@ const validatePlugin$1 = validatePlugin$2;
112128
112208
  const {filterEnabledPlugins: filterEnabledPlugins$1} = filterEnabledPlugins$2;
112129
112209
 
112130
112210
  const {createAsyncLoader: createAsyncLoader$2} = asyncLoader;
112131
- const {check: check$9, checkRule: checkRule$1} = check$b;
112211
+ const {check: check$a, checkRule: checkRule$1} = check$c;
112132
112212
 
112133
112213
  const loadPluginAsync = createAsyncLoader$2('plugin');
112134
112214
 
112135
112215
  loadPluginsAsync$1.loadPluginsAsync = async (options) => {
112136
- check$9(options);
112216
+ check$a(options);
112137
112217
 
112138
112218
  const {pluginNames = [], rules = {}} = options;
112139
112219
  const {
@@ -112342,12 +112422,12 @@ const {prepareRules} = prepareRules$2;
112342
112422
  const {isEnabled} = rules;
112343
112423
 
112344
112424
  const {filterEnabledPlugins} = filterEnabledPlugins$2;
112345
- const {check: check$8, checkRule} = check$b;
112425
+ const {check: check$9, checkRule} = check$c;
112346
112426
 
112347
112427
  const {isArray: isArray$9} = Array;
112348
112428
 
112349
112429
  loadPlugins$2.loadPlugins = (options) => {
112350
- check$8(options);
112430
+ check$9(options);
112351
112431
 
112352
112432
  const {pluginNames = [], rules = {}} = options;
112353
112433
  const {
@@ -112474,10 +112554,10 @@ const {createAsyncLoader: createAsyncLoader$1} = asyncLoader;
112474
112554
 
112475
112555
  const parseProcessorNames = parseProcessorNames$1;
112476
112556
 
112477
- const {check: check$7} = check$b;
112557
+ const {check: check$8} = check$c;
112478
112558
 
112479
112559
  loadProcessorsAsync$1.loadProcessorsAsync = async (options, load) => {
112480
- check$7(options);
112560
+ check$8(options);
112481
112561
 
112482
112562
  const {processors = []} = options;
112483
112563
  const parsedProcessors = parseProcessorNames(processors);
@@ -113216,7 +113296,7 @@ var jessy$1 = (selector, divider, value) => {
113216
113296
  divider = '.';
113217
113297
  }
113218
113298
 
113219
- check$6(selector, value);
113299
+ check$7(selector, value);
113220
113300
 
113221
113301
  if (!selector)
113222
113302
  return value;
@@ -113249,7 +113329,7 @@ var jessy$1 = (selector, divider, value) => {
113249
113329
  return value;
113250
113330
  };
113251
113331
 
113252
- function check$6(selector, obj) {
113332
+ function check$7(selector, obj) {
113253
113333
  if (!isString$6(selector))
113254
113334
  throw Error('selector should be string!');
113255
113335
 
@@ -113270,7 +113350,7 @@ var nessy$1 = (selector, value, divider, obj) => {
113270
113350
 
113271
113351
  const result = obj;
113272
113352
 
113273
- check$5(selector);
113353
+ check$6(selector);
113274
113354
 
113275
113355
  const array = selector
113276
113356
  .split(divider)
@@ -113296,7 +113376,7 @@ var nessy$1 = (selector, value, divider, obj) => {
113296
113376
  return result;
113297
113377
  };
113298
113378
 
113299
- function check$5(selector) {
113379
+ function check$6(selector) {
113300
113380
  if (!isString$5(selector))
113301
113381
  throw Error('selector should be string!');
113302
113382
  }
@@ -113380,14 +113460,14 @@ is$2.isTemplate = (a) => /[(;={.\s]/.test(a) || !/^[A-Z]/.test(a);
113380
113460
 
113381
113461
  is$2.is = (str, array = ALL) => {
113382
113462
  for (const item of array) {
113383
- if (check$4(str, item))
113463
+ if (check$5(str, item))
113384
113464
  return true;
113385
113465
  }
113386
113466
 
113387
113467
  return false;
113388
113468
  };
113389
113469
 
113390
- function check$4(str, item) {
113470
+ function check$5(str, item) {
113391
113471
  if (isStr$1(item))
113392
113472
  return str === item;
113393
113473
 
@@ -115140,7 +115220,7 @@ var watermark$1 = {exports: {}};
115140
115220
  const wrap = (fn) => (...a) => (...b) => fn(...a, ...b);
115141
115221
 
115142
115222
  var wraptile$1 = (fn, ...a) => {
115143
- check$3(fn);
115223
+ check$4(fn);
115144
115224
 
115145
115225
  if (a.length)
115146
115226
  return wrap(fn)(...a);
@@ -115148,7 +115228,7 @@ var wraptile$1 = (fn, ...a) => {
115148
115228
  return wrap(fn);
115149
115229
  };
115150
115230
 
115151
- function check$3(fn) {
115231
+ function check$4(fn) {
115152
115232
  if (typeof fn !== 'function')
115153
115233
  throw Error('fn should be a function!');
115154
115234
  }
@@ -116406,7 +116486,7 @@ function buildTree(path, list) {
116406
116486
  for (const filePath of files) {
116407
116487
  const filename = getFilename$3(filePath);
116408
116488
 
116409
- check$2(filename);
116489
+ check$3(filename);
116410
116490
 
116411
116491
  const type = getFileType$1(filePath);
116412
116492
  const dir = dirname(filename);
@@ -116428,7 +116508,7 @@ function buildTree(path, list) {
116428
116508
  replaceWith$1(path, root);
116429
116509
  }
116430
116510
 
116431
- function check$2(filename) {
116511
+ function check$3(filename) {
116432
116512
  if (!filename.includes('/'))
116433
116513
  throw Error(`☝️ Looks like directory path is missing: '${filename}'`);
116434
116514
  }
@@ -124420,12 +124500,20 @@ var transformRegexp = {};
124420
124500
 
124421
124501
  const regexpTree = regexpTree$2;
124422
124502
 
124423
- transformRegexp.transformRegExp = (str, {report, traverse, fix}) => {
124503
+ transformRegexp.transformRegExp = (str, regExpTransformer) => {
124504
+ check$2(regExpTransformer);
124505
+
124506
+ const {
124507
+ report,
124508
+ traverse,
124509
+ fix,
124510
+ } = regExpTransformer;
124424
124511
  const ast = regexpTree.parse(str, {
124425
124512
  captureLocations: true,
124426
124513
  });
124427
124514
 
124428
124515
  const places = [];
124516
+
124429
124517
  const push = (path) => {
124430
124518
  const {start} = (path.path || path).node.loc;
124431
124519
 
@@ -124447,6 +124535,11 @@ transformRegexp.transformRegExp = (str, {report, traverse, fix}) => {
124447
124535
  ];
124448
124536
  };
124449
124537
 
124538
+ function check$2(regExpTransformer) {
124539
+ if (!regExpTransformer)
124540
+ throw Error('☝️ Looks like RegExpTransformer is missing');
124541
+ }
124542
+
124450
124543
  const isSimpleRegExp = isSimpleRegexp;
124451
124544
  const {transformRegExp} = transformRegexp;
124452
124545