n8n-editor-ui 1.83.1 → 1.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-Cu5o7-TL.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-78eP7HIe.js} +1 -1
  2. package/dist/assets/{AuthView-mP34ZmnC.js → AuthView-Bn_LB3Kw.js} +2 -2
  3. package/dist/assets/{CanvasChat-CSLR5tKe.css → CanvasChat-CGGQcCRA.css} +45 -30
  4. package/dist/assets/{CanvasChat-cto4xkVD.js → CanvasChat-tuKMnT6J.js} +230 -143
  5. package/dist/assets/{ChangePasswordView-DkwRz1u6.js → ChangePasswordView-aXYIR8zr.js} +3 -3
  6. package/dist/assets/CollectionParameter-DR9e0MGf.js +4 -0
  7. package/dist/assets/{CredentialsView-UBVro_dv.js → CredentialsView-k8CeiyMJ.js} +5 -6
  8. package/dist/assets/{ErrorView-EWPmvugu.js → ErrorView-e-cpk6J7.js} +1 -1
  9. package/dist/assets/{ConcurrentExecutionsHeader-CEBmSYNK.css → ExecutionsTime-BOPJEomw.css} +63 -63
  10. package/dist/assets/{ConcurrentExecutionsHeader-Ul9ROpk0.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-BYacEmlc.js} +114 -114
  11. package/dist/assets/ExecutionsView-CQi8A4ps.js +926 -0
  12. package/dist/assets/{ExecutionsView-CB1tvZfo.css → ExecutionsView-CRTcP3sx.css} +60 -188
  13. package/dist/assets/{FileSaver.min-D6Iix6V9.js → FileSaver.min-DmMmlWYQ.js} +1 -1
  14. package/dist/assets/{FixedCollectionParameter-DBIBAKMF.js → FixedCollectionParameter-BfUPtP5M.js} +1 -1
  15. package/dist/assets/{ForgotMyPasswordView-DOMjwy3H.js → ForgotMyPasswordView-Dzao5PZ9.js} +3 -3
  16. package/dist/assets/{ProjectHeader-BZ6b6lat.css → Logo-DLBj1gMw.css} +23 -17
  17. package/dist/assets/{Logo-CidMx5L1.js → Logo-DVRZ2qRx.js} +8 -19
  18. package/dist/assets/{MainHeader-CpYwrGHe.js → MainHeader-BUw_JG4S.js} +10 -10
  19. package/dist/assets/{MainSidebar-u0kzXS10.js → MainSidebar-C6aXqICd.js} +75 -42
  20. package/dist/assets/{MainSidebar-BRAjTL7J.css → MainSidebar-CKMiDGvH.css} +13 -12
  21. package/dist/assets/{NodeCreation-C3kgMOiP.js → NodeCreation-B9-99kNr.js} +4 -4
  22. package/dist/assets/{NodeCreator-C3jOJmI0.js → NodeCreator-DH90304h.js} +4 -4
  23. package/dist/assets/{NodeDetailsView-CVVfk-zW.css → NodeDetailsView-0RXvy-0D.css} +2 -2
  24. package/dist/assets/{NodeDetailsView-BuAX7b_S.js → NodeDetailsView-Ci-9Cz_w.js} +69 -61
  25. package/dist/assets/{NodeView-CsrK5ExP.js → NodeView-CFUO-Q9X.js} +57 -19
  26. package/dist/assets/{ProjectCardBadge-BYZ4CZ8h.js → ProjectCardBadge-CGqr1_BG.js} +1 -1
  27. package/dist/assets/{ProjectHeader-AVHuknTg.js → ProjectHeader-C8hRwBFC.js} +60 -7
  28. package/dist/assets/ProjectHeader-CQjB5wC7.css +285 -0
  29. package/dist/assets/{ProjectSettings-BBgNR6v0.js → ProjectSettings-motYfWGR.js} +2 -3
  30. package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-oVU1CjGg.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-DzkWenq4.js} +2 -2
  31. package/dist/assets/{ResourcesListLayout-C9w15Q23.js → ResourcesListLayout-BYVhS2j5.js} +14 -13
  32. package/dist/assets/{ResourcesListLayout-Brs7VKUf.css → ResourcesListLayout-BqQI0lCG.css} +29 -22
  33. package/dist/assets/{RunDataAi-DvJKJNYm.js → RunDataAi-pfKF0Nfm.js} +3 -3
  34. package/dist/assets/{RunDataJson-T-tjG8mj.js → RunDataJson-CNT_rM-i.js} +12 -12
  35. package/dist/assets/{RunDataJsonActions-zKxT1j4k.js → RunDataJsonActions-BTLAUv9R.js} +2 -2
  36. package/dist/assets/{RunDataSearch-CYKk6_W2.js → RunDataSearch-BpcbBojC.js} +1 -1
  37. package/dist/assets/{RunDataTable-rs93_vdQ.js → RunDataTable-ZnG9QEzJ.js} +2 -2
  38. package/dist/assets/{SamlOnboarding-gWhQJPLd.js → SamlOnboarding-DjhCWFIr.js} +3 -3
  39. package/dist/assets/{SettingsApiView-QxAEXccw.js → SettingsApiView-C1ClqjeG.js} +1 -1
  40. package/dist/assets/{SettingsCommunityNodesView-BpwvEtUI.js → SettingsCommunityNodesView-D5eLIpQC.js} +5 -5
  41. package/dist/assets/{SettingsExternalSecrets-DXrPZ93O.js → SettingsExternalSecrets-ubf6jijA.js} +1 -1
  42. package/dist/assets/{SettingsLdapView-nAm7w9WO.js → SettingsLdapView-BezV6JLr.js} +1 -1
  43. package/dist/assets/{SettingsLogStreamingView-Dr4ArIl_.js → SettingsLogStreamingView-ETOxA5Tw.js} +1 -1
  44. package/dist/assets/{SettingsPersonalView-DWFlvGTn.js → SettingsPersonalView-DGxUC8Q4.js} +1 -1
  45. package/dist/assets/{SettingsSourceControl-DKLeROzN.js → SettingsSourceControl-1vHHG6W9.js} +1 -1
  46. package/dist/assets/{SettingsSso-BVmlQW_R.js → SettingsSso-CdI26YPF.js} +1 -1
  47. package/dist/assets/{SettingsUsageAndPlan-I5n8xGLd.js → SettingsUsageAndPlan-BmI8cSiq.js} +1 -1
  48. package/dist/assets/{SettingsUsersView-D8uY5rsT.js → SettingsUsersView-90JmT1qM.js} +1 -1
  49. package/dist/assets/{SettingsView-e7XAFpfc.js → SettingsView-i7rE7s3I.js} +1 -1
  50. package/dist/assets/{SetupView-DQq_7fpU.js → SetupView-Lp4ullGE.js} +3 -3
  51. package/dist/assets/{SetupWorkflowCredentialsButton-frwFWfGJ.js → SetupWorkflowCredentialsButton-CoXXUd3B.js} +1 -1
  52. package/dist/assets/{SetupWorkflowFromTemplateView-C3ENxhAx.js → SetupWorkflowFromTemplateView-TVU0-Zq4.js} +3 -3
  53. package/dist/assets/{SigninView-Bq3o_KYj.js → SigninView-BqF8j6-h.js} +3 -3
  54. package/dist/assets/{SignoutView-BYQXAHDT.js → SignoutView-DrYJ9Qe3.js} +1 -1
  55. package/dist/assets/{SignupView-xqJgShbm.js → SignupView-_EKPhYKN.js} +3 -3
  56. package/dist/assets/{TemplateDetails-COPYl_Ch.js → TemplateDetails-DAalg9G2.js} +3 -3
  57. package/dist/assets/{TemplateList-DWGAiMoN.js → TemplateList-BEYMeJMu.js} +1 -1
  58. package/dist/assets/{TemplatesCollectionView-D7C-dsc7.js → TemplatesCollectionView-fMELXCRX.js} +5 -5
  59. package/dist/assets/{TemplatesSearchView-CUFKLHbU.js → TemplatesSearchView-BO-e3IH7.js} +3 -3
  60. package/dist/assets/{TemplatesView-BjZHhHGF.js → TemplatesView-p57nARMp.js} +1 -1
  61. package/dist/assets/{TemplatesWorkflowView-C2OFQoFQ.js → TemplatesWorkflowView-DAbL5S1-.js} +5 -5
  62. package/dist/assets/{TestDefinitionEditView-DjR3gJvA.js → TestDefinitionEditView-BTo9LlAU.js} +244 -252
  63. package/dist/assets/{TestDefinitionEditView-JONL00pA.css → TestDefinitionEditView-BXhOuJrU.css} +128 -116
  64. package/dist/assets/{TestDefinitionListView-BLzGSiMz.js → TestDefinitionListView-D_-DyZDv.js} +1 -1
  65. package/dist/assets/{TestDefinitionNewView-DBs9WSAD.js → TestDefinitionNewView-Crk5OePO.js} +13 -4
  66. package/dist/assets/{TestDefinitionRootView-vaMPai85.js → TestDefinitionRootView-BtiqAWW1.js} +1 -1
  67. package/dist/assets/{VariablesView-B2A18wmf.js → VariablesView-Bg3GI1iE.js} +5 -5
  68. package/dist/assets/{VariablesView-CbTLdNwU.css → VariablesView-BvDpOTm3.css} +7 -11
  69. package/dist/assets/{WorkerView-CfmL9mV2.js → WorkerView-CaTyr1ci.js} +7 -7
  70. package/dist/assets/{WorkflowActivator-Bk7lYyKD.js → WorkflowActivator-BvmRhIkt.js} +2 -2
  71. package/dist/assets/{WorkflowExecutionsInfoAccordion-BJUV_abc.js → WorkflowExecutionsInfoAccordion-BuIbG1kZ.js} +1 -1
  72. package/dist/assets/{WorkflowExecutionsLandingPage-BGJsZkAj.js → WorkflowExecutionsLandingPage-BirtsKx4.js} +2 -2
  73. package/dist/assets/{WorkflowExecutionsPreview-BDVLuC1z.css → WorkflowExecutionsPreview-CPGOOAq2.css} +48 -16
  74. package/dist/assets/{WorkflowExecutionsPreview-C1dnDirp.js → WorkflowExecutionsPreview-DFyHWF9H.js} +253 -119
  75. package/dist/assets/{WorkflowExecutionsView-CeyHBNCa.js → WorkflowExecutionsView-IUjVjxU9.js} +7 -7
  76. package/dist/assets/{WorkflowHistory-BjD7fWBc.js → WorkflowHistory-BqKSxr_5.js} +3 -3
  77. package/dist/assets/{WorkflowOnboardingView-C9XnQ0XZ.js → WorkflowOnboardingView-Bs0Rmm6I.js} +1 -1
  78. package/dist/assets/{WorkflowPreview-DzPoQOB4.js → WorkflowPreview-1jsK9hpV.js} +1 -1
  79. package/dist/assets/{WorkflowsView-DG5J9u8v.js → WorkflowsView-MzPw02jI.js} +482 -347
  80. package/dist/assets/{WorkflowsView-JN0Hvhvt.css → WorkflowsView-Sg6GR5kC.css} +53 -39
  81. package/dist/assets/{easyAiWorkflowUtils-CHIZUcBZ.js → easyAiWorkflowUtils-DlyLBhIZ.js} +1 -1
  82. package/dist/assets/{global-link-actions-DJx6dXwY.js → global-link-actions-DvwtxSrW.js} +1 -1
  83. package/dist/assets/{import-curl-BQvYdAxP.js → import-curl-CbxpR02g.js} +1 -1
  84. package/dist/assets/{index-CFLVCCgm.css → index-74EeM2i2.css} +751 -103
  85. package/dist/assets/{index-BloiTH5y.js → index-CyVlLoqB.js} +3216 -2198
  86. package/dist/assets/{index-Cvcpg6Dy.js → index-tzkIB4Tg.js} +1 -1
  87. package/dist/assets/{pickBy-fjQgBd6D.js → pickBy-DI3cF803.js} +1 -1
  88. package/dist/assets/{polyfills-C7eMRNFe.js → polyfills-CLZ4X0Ad.js} +2342 -1944
  89. package/dist/assets/{pushConnection.store-D5RQY4RP.js → pushConnection.store-BhUCpqAg.js} +1 -1
  90. package/dist/assets/{templateActions-DfmqYUYJ.js → templateActions-BnGO7zdc.js} +1 -1
  91. package/dist/assets/{typescript.worker-DP34mIHW.js → typescript.worker-Bt3bByTc.js} +1158 -695
  92. package/dist/assets/{useBeforeUnload-BTvPg0aq.js → useBeforeUnload-DtKxjKeS.js} +1 -1
  93. package/dist/assets/{useCanvasMapping-CGHW3BxZ.js → useCanvasMapping-BCP7UO9p.js} +10410 -10398
  94. package/dist/assets/{useCanvasMapping-CkNBF2SE.css → useCanvasMapping-CI4ehFWu.css} +579 -579
  95. package/dist/assets/{useCanvasOperations-Cr_vZCiR.js → useCanvasOperations-Ctquo5LL.js} +23 -6
  96. package/dist/assets/{useExecutionDebugging-CTmjDF_B.js → useExecutionDebugging-C0TAc9fj.js} +1 -1
  97. package/dist/assets/{useExecutionHelpers-C8isDFPE.js → useExecutionHelpers-BQHL3OpL.js} +1 -1
  98. package/dist/assets/{useImportCurlCommand-uH3ThHFG.js → useImportCurlCommand-IE8oJ9bp.js} +13 -20
  99. package/dist/assets/{usePinnedData-C5x08fuF.js → usePinnedData-CtRDhd6k.js} +2 -2
  100. package/dist/assets/{usePushConnection-DUixULqA.js → usePushConnection-DXozzPWi.js} +5 -4
  101. package/dist/assets/{useRunWorkflow-CnFMyZFO.js → useRunWorkflow-D9JIEr1s.js} +3 -3
  102. package/dist/assets/{useTestDefinitionForm-DxJcvrhw.js → useTestDefinitionForm-8dJH3v29.js} +1 -1
  103. package/dist/assets/{useWorkflowActivate-Cn5TIR2c.js → useWorkflowActivate-CI3X35ZJ.js} +1 -1
  104. package/dist/index.html +3 -3
  105. package/package.json +1 -1
  106. package/dist/assets/CollectionParameter-DzUDyeJC.js +0 -4
  107. package/dist/assets/ExecutionsView-DCeodQ1s.js +0 -983
  108. package/dist/assets/Logo-DJLTXpXC.css +0 -165
  109. package/dist/assets/ProjectCreateResource-cJSSCcoG.js +0 -56
  110. package/dist/assets/ProjectCreateResource-eYdTamXR.css +0 -139
@@ -2497,7 +2497,7 @@ class ReactiveEffect {
2497
2497
  }
2498
2498
  resume() {
2499
2499
  if (this.flags & 64) {
2500
- this.flags &= ~64;
2500
+ this.flags &= -65;
2501
2501
  if (pausedQueueEffects.has(this)) {
2502
2502
  pausedQueueEffects.delete(this);
2503
2503
  this.trigger();
@@ -2532,7 +2532,7 @@ class ReactiveEffect {
2532
2532
  cleanupDeps(this);
2533
2533
  activeSub = prevEffect;
2534
2534
  shouldTrack = prevShouldTrack;
2535
- this.flags &= ~2;
2535
+ this.flags &= -3;
2536
2536
  }
2537
2537
  }
2538
2538
  stop() {
@@ -2543,7 +2543,7 @@ class ReactiveEffect {
2543
2543
  this.deps = this.depsTail = void 0;
2544
2544
  cleanupEffect(this);
2545
2545
  this.onStop && this.onStop();
2546
- this.flags &= ~1;
2546
+ this.flags &= -2;
2547
2547
  }
2548
2548
  }
2549
2549
  trigger() {
@@ -2593,7 +2593,7 @@ function endBatch() {
2593
2593
  while (e) {
2594
2594
  const next = e.next;
2595
2595
  e.next = void 0;
2596
- e.flags &= ~8;
2596
+ e.flags &= -9;
2597
2597
  e = next;
2598
2598
  }
2599
2599
  }
@@ -2604,7 +2604,7 @@ function endBatch() {
2604
2604
  while (e) {
2605
2605
  const next = e.next;
2606
2606
  e.next = void 0;
2607
- e.flags &= ~8;
2607
+ e.flags &= -9;
2608
2608
  if (e.flags & 1) {
2609
2609
  try {
2610
2610
  ;
@@ -2660,7 +2660,7 @@ function refreshComputed(computed2) {
2660
2660
  if (computed2.flags & 4 && !(computed2.flags & 16)) {
2661
2661
  return;
2662
2662
  }
2663
- computed2.flags &= ~16;
2663
+ computed2.flags &= -17;
2664
2664
  if (computed2.globalVersion === globalVersion) {
2665
2665
  return;
2666
2666
  }
@@ -2668,7 +2668,7 @@ function refreshComputed(computed2) {
2668
2668
  const dep = computed2.dep;
2669
2669
  computed2.flags |= 2;
2670
2670
  if (dep.version > 0 && !computed2.isSSR && computed2.deps && !isDirty(computed2)) {
2671
- computed2.flags &= ~2;
2671
+ computed2.flags &= -3;
2672
2672
  return;
2673
2673
  }
2674
2674
  const prevSub = activeSub;
@@ -2689,7 +2689,7 @@ function refreshComputed(computed2) {
2689
2689
  activeSub = prevSub;
2690
2690
  shouldTrack = prevShouldTrack;
2691
2691
  cleanupDeps(computed2);
2692
- computed2.flags &= ~2;
2692
+ computed2.flags &= -3;
2693
2693
  }
2694
2694
  }
2695
2695
  function removeSub(link, soft = false) {
@@ -2705,7 +2705,7 @@ function removeSub(link, soft = false) {
2705
2705
  if (dep.subs === link) {
2706
2706
  dep.subs = prevSub;
2707
2707
  if (!prevSub && dep.computed) {
2708
- dep.computed.flags &= ~4;
2708
+ dep.computed.flags &= -5;
2709
2709
  for (let l = dep.computed.deps; l; l = l.nextDep) {
2710
2710
  removeSub(l, true);
2711
2711
  }
@@ -3937,10 +3937,10 @@ function flushPostFlushCbs(seen) {
3937
3937
  for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
3938
3938
  const cb = activePostFlushCbs[postFlushIndex];
3939
3939
  if (cb.flags & 4) {
3940
- cb.flags &= ~1;
3940
+ cb.flags &= -2;
3941
3941
  }
3942
3942
  if (!(cb.flags & 8)) cb();
3943
- cb.flags &= ~1;
3943
+ cb.flags &= -2;
3944
3944
  }
3945
3945
  activePostFlushCbs = null;
3946
3946
  postFlushIndex = 0;
@@ -3970,7 +3970,7 @@ function flushJobs(seen) {
3970
3970
  for (; flushIndex < queue.length; flushIndex++) {
3971
3971
  const job = queue[flushIndex];
3972
3972
  if (job) {
3973
- job.flags &= ~1;
3973
+ job.flags &= -2;
3974
3974
  }
3975
3975
  }
3976
3976
  flushIndex = -1;
@@ -4570,6 +4570,7 @@ function requireTypescript() {
4570
4570
  createPrinterWithRemoveCommentsNeverAsciiEscape: () => createPrinterWithRemoveCommentsNeverAsciiEscape,
4571
4571
  createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => createPrinterWithRemoveCommentsOmitTrailingSemicolon,
4572
4572
  createProgram: () => createProgram,
4573
+ createProgramDiagnostics: () => createProgramDiagnostics,
4573
4574
  createProgramHost: () => createProgramHost,
4574
4575
  createPropertyNameNodeForIdentifierOrLiteral: () => createPropertyNameNodeForIdentifierOrLiteral,
4575
4576
  createQueue: () => createQueue,
@@ -4739,6 +4740,8 @@ function requireTypescript() {
4739
4740
  forEachLeadingCommentRange: () => forEachLeadingCommentRange,
4740
4741
  forEachNameInAccessChainWalkingLeft: () => forEachNameInAccessChainWalkingLeft,
4741
4742
  forEachNameOfDefaultExport: () => forEachNameOfDefaultExport,
4743
+ forEachOptionsSyntaxByName: () => forEachOptionsSyntaxByName,
4744
+ forEachProjectReference: () => forEachProjectReference,
4742
4745
  forEachPropertyAssignment: () => forEachPropertyAssignment,
4743
4746
  forEachResolvedProjectReference: () => forEachResolvedProjectReference,
4744
4747
  forEachReturnStatement: () => forEachReturnStatement,
@@ -4978,6 +4981,8 @@ function requireTypescript() {
4978
4981
  getLeadingCommentRangesOfNode: () => getLeadingCommentRangesOfNode,
4979
4982
  getLeftmostAccessExpression: () => getLeftmostAccessExpression,
4980
4983
  getLeftmostExpression: () => getLeftmostExpression,
4984
+ getLibFileNameFromLibReference: () => getLibFileNameFromLibReference,
4985
+ getLibNameFromLibReference: () => getLibNameFromLibReference,
4981
4986
  getLibraryNameFromLibFileName: () => getLibraryNameFromLibFileName,
4982
4987
  getLineAndCharacterOfPosition: () => getLineAndCharacterOfPosition,
4983
4988
  getLineInfo: () => getLineInfo,
@@ -5050,6 +5055,8 @@ function requireTypescript() {
5050
5055
  getOptionFromName: () => getOptionFromName,
5051
5056
  getOptionsForLibraryResolution: () => getOptionsForLibraryResolution,
5052
5057
  getOptionsNameMap: () => getOptionsNameMap,
5058
+ getOptionsSyntaxByArrayElementValue: () => getOptionsSyntaxByArrayElementValue,
5059
+ getOptionsSyntaxByValue: () => getOptionsSyntaxByValue,
5053
5060
  getOrCreateEmitNode: () => getOrCreateEmitNode,
5054
5061
  getOrUpdate: () => getOrUpdate,
5055
5062
  getOriginalNode: () => getOriginalNode,
@@ -5086,7 +5093,6 @@ function requireTypescript() {
5086
5093
  getPrivateIdentifier: () => getPrivateIdentifier,
5087
5094
  getProperties: () => getProperties,
5088
5095
  getProperty: () => getProperty,
5089
- getPropertyArrayElementValue: () => getPropertyArrayElementValue,
5090
5096
  getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression,
5091
5097
  getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode,
5092
5098
  getPropertyNameFromType: () => getPropertyNameFromType,
@@ -5997,6 +6003,7 @@ function requireTypescript() {
5997
6003
  moduleResolutionUsesNodeModules: () => moduleResolutionUsesNodeModules,
5998
6004
  moduleSpecifierToValidIdentifier: () => moduleSpecifierToValidIdentifier,
5999
6005
  moduleSpecifiers: () => ts_moduleSpecifiers_exports,
6006
+ moduleSupportsImportAttributes: () => moduleSupportsImportAttributes,
6000
6007
  moduleSymbolToValidIdentifier: () => moduleSymbolToValidIdentifier,
6001
6008
  moveEmitHelpers: () => moveEmitHelpers,
6002
6009
  moveRangeEnd: () => moveRangeEnd,
@@ -6409,8 +6416,8 @@ function requireTypescript() {
6409
6416
  zipWith: () => zipWith
6410
6417
  });
6411
6418
  module2.exports = __toCommonJS(typescript_exports);
6412
- var versionMajorMinor = "5.7";
6413
- var version = "5.7.2";
6419
+ var versionMajorMinor = "5.8";
6420
+ var version = "5.8.2";
6414
6421
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
6415
6422
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
6416
6423
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -8347,7 +8354,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
8347
8354
  __tsDebuggerDisplay: {
8348
8355
  value() {
8349
8356
  const flowHeader = this.flags & 2 ? "FlowStart" : this.flags & 4 ? "FlowBranchLabel" : this.flags & 8 ? "FlowLoopLabel" : this.flags & 16 ? "FlowAssignment" : this.flags & 32 ? "FlowTrueCondition" : this.flags & 64 ? "FlowFalseCondition" : this.flags & 128 ? "FlowSwitchClause" : this.flags & 256 ? "FlowArrayMutation" : this.flags & 512 ? "FlowCall" : this.flags & 1024 ? "FlowReduceLabel" : this.flags & 1 ? "FlowUnreachable" : "UnknownFlow";
8350
- const remainingFlags = this.flags & ~(2048 - 1);
8357
+ const remainingFlags = this.flags & -2048;
8351
8358
  return `${flowHeader}${remainingFlags ? ` (${formatFlowFlags(remainingFlags)})` : ""}`;
8352
8359
  }
8353
8360
  },
@@ -8420,7 +8427,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
8420
8427
  __tsDebuggerDisplay: {
8421
8428
  value() {
8422
8429
  const symbolHeader = this.flags & 33554432 ? "TransientSymbol" : "Symbol";
8423
- const remainingSymbolFlags = this.flags & ~33554432;
8430
+ const remainingSymbolFlags = this.flags & -33554433;
8424
8431
  return `${symbolHeader} '${symbolName(this)}'${remainingSymbolFlags ? ` (${formatSymbolFlags(remainingSymbolFlags)})` : ""}`;
8425
8432
  }
8426
8433
  },
@@ -8435,7 +8442,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
8435
8442
  __tsDebuggerDisplay: {
8436
8443
  value() {
8437
8444
  const typeHeader = this.flags & 67359327 ? `IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName ? ` (${this.debugIntrinsicName})` : ""}` : this.flags & 98304 ? "NullableType" : this.flags & 384 ? `LiteralType ${JSON.stringify(this.value)}` : this.flags & 2048 ? `LiteralType ${this.value.negative ? "-" : ""}${this.value.base10Value}n` : this.flags & 8192 ? "UniqueESSymbolType" : this.flags & 32 ? "EnumType" : this.flags & 1048576 ? "UnionType" : this.flags & 2097152 ? "IntersectionType" : this.flags & 4194304 ? "IndexType" : this.flags & 8388608 ? "IndexedAccessType" : this.flags & 16777216 ? "ConditionalType" : this.flags & 33554432 ? "SubstitutionType" : this.flags & 262144 ? "TypeParameter" : this.flags & 524288 ? this.objectFlags & 3 ? "InterfaceType" : this.objectFlags & 4 ? "TypeReference" : this.objectFlags & 8 ? "TupleType" : this.objectFlags & 16 ? "AnonymousType" : this.objectFlags & 32 ? "MappedType" : this.objectFlags & 1024 ? "ReverseMappedType" : this.objectFlags & 256 ? "EvolvingArrayType" : "ObjectType" : "Type";
8438
- const remainingObjectFlags = this.flags & 524288 ? this.objectFlags & ~1343 : 0;
8445
+ const remainingObjectFlags = this.flags & 524288 ? this.objectFlags & -1344 : 0;
8439
8446
  return `${typeHeader}${this.symbol ? ` '${symbolName(this.symbol)}'` : ""}${remainingObjectFlags ? ` (${formatObjectFlags(remainingObjectFlags)})` : ""}`;
8440
8447
  }
8441
8448
  },
@@ -11003,6 +11010,7 @@ ${lanes.join("\n")}
11003
11010
  ModuleKind3[ModuleKind3["ES2022"] = 7] = "ES2022";
11004
11011
  ModuleKind3[ModuleKind3["ESNext"] = 99] = "ESNext";
11005
11012
  ModuleKind3[ModuleKind3["Node16"] = 100] = "Node16";
11013
+ ModuleKind3[ModuleKind3["Node18"] = 101] = "Node18";
11006
11014
  ModuleKind3[ModuleKind3["NodeNext"] = 199] = "NodeNext";
11007
11015
  ModuleKind3[ModuleKind3["Preserve"] = 200] = "Preserve";
11008
11016
  return ModuleKind3;
@@ -11487,8 +11495,9 @@ ${lanes.join("\n")}
11487
11495
  OuterExpressionKinds2[OuterExpressionKinds2["NonNullAssertions"] = 4] = "NonNullAssertions";
11488
11496
  OuterExpressionKinds2[OuterExpressionKinds2["PartiallyEmittedExpressions"] = 8] = "PartiallyEmittedExpressions";
11489
11497
  OuterExpressionKinds2[OuterExpressionKinds2["ExpressionsWithTypeArguments"] = 16] = "ExpressionsWithTypeArguments";
11490
- OuterExpressionKinds2[OuterExpressionKinds2["Assertions"] = 6] = "Assertions";
11491
- OuterExpressionKinds2[OuterExpressionKinds2["All"] = 31] = "All";
11498
+ OuterExpressionKinds2[OuterExpressionKinds2["Satisfies"] = 32] = "Satisfies";
11499
+ OuterExpressionKinds2[OuterExpressionKinds2["Assertions"] = 38] = "Assertions";
11500
+ OuterExpressionKinds2[OuterExpressionKinds2["All"] = 63] = "All";
11492
11501
  OuterExpressionKinds2[OuterExpressionKinds2["ExcludeJSDocTypeAssertion"] = -2147483648] = "ExcludeJSDocTypeAssertion";
11493
11502
  return OuterExpressionKinds2;
11494
11503
  })(OuterExpressionKinds || {});
@@ -12943,7 +12952,7 @@ ${lanes.join("\n")}
12943
12952
  }
12944
12953
  let len = buffer.length;
12945
12954
  if (len >= 2 && buffer[0] === 254 && buffer[1] === 255) {
12946
- len &= ~1;
12955
+ len &= -2;
12947
12956
  for (let i = 0; i < len; i += 2) {
12948
12957
  const temp = buffer[i];
12949
12958
  buffer[i] = buffer[i + 1];
@@ -13301,23 +13310,105 @@ ${lanes.join("\n")}
13301
13310
  function getNormalizedPathComponents(path, currentDirectory) {
13302
13311
  return reducePathComponents(getPathComponents(path, currentDirectory));
13303
13312
  }
13304
- function getNormalizedAbsolutePath(fileName, currentDirectory) {
13305
- return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));
13313
+ function getNormalizedAbsolutePath(path, currentDirectory) {
13314
+ let rootLength = getRootLength(path);
13315
+ if (rootLength === 0 && currentDirectory) {
13316
+ path = combinePaths(currentDirectory, path);
13317
+ rootLength = getRootLength(path);
13318
+ } else {
13319
+ path = normalizeSlashes(path);
13320
+ }
13321
+ const simpleNormalized = simpleNormalizePath(path);
13322
+ if (simpleNormalized !== void 0) {
13323
+ return simpleNormalized.length > rootLength ? removeTrailingDirectorySeparator(simpleNormalized) : simpleNormalized;
13324
+ }
13325
+ const length2 = path.length;
13326
+ const root = path.substring(0, rootLength);
13327
+ let normalized;
13328
+ let index = rootLength;
13329
+ let segmentStart = index;
13330
+ let normalizedUpTo = index;
13331
+ let seenNonDotDotSegment = rootLength !== 0;
13332
+ while (index < length2) {
13333
+ segmentStart = index;
13334
+ let ch = path.charCodeAt(index);
13335
+ while (ch === 47 && index + 1 < length2) {
13336
+ index++;
13337
+ ch = path.charCodeAt(index);
13338
+ }
13339
+ if (index > segmentStart) {
13340
+ normalized ?? (normalized = path.substring(0, segmentStart - 1));
13341
+ segmentStart = index;
13342
+ }
13343
+ let segmentEnd = path.indexOf(directorySeparator, index + 1);
13344
+ if (segmentEnd === -1) {
13345
+ segmentEnd = length2;
13346
+ }
13347
+ const segmentLength = segmentEnd - segmentStart;
13348
+ if (segmentLength === 1 && path.charCodeAt(index) === 46) {
13349
+ normalized ?? (normalized = path.substring(0, normalizedUpTo));
13350
+ } else if (segmentLength === 2 && path.charCodeAt(index) === 46 && path.charCodeAt(index + 1) === 46) {
13351
+ if (!seenNonDotDotSegment) {
13352
+ if (normalized !== void 0) {
13353
+ normalized += normalized.length === rootLength ? ".." : "/..";
13354
+ } else {
13355
+ normalizedUpTo = index + 2;
13356
+ }
13357
+ } else if (normalized === void 0) {
13358
+ if (normalizedUpTo - 2 >= 0) {
13359
+ normalized = path.substring(0, Math.max(rootLength, path.lastIndexOf(directorySeparator, normalizedUpTo - 2)));
13360
+ } else {
13361
+ normalized = path.substring(0, normalizedUpTo);
13362
+ }
13363
+ } else {
13364
+ const lastSlash = normalized.lastIndexOf(directorySeparator);
13365
+ if (lastSlash !== -1) {
13366
+ normalized = normalized.substring(0, Math.max(rootLength, lastSlash));
13367
+ } else {
13368
+ normalized = root;
13369
+ }
13370
+ if (normalized.length === rootLength) {
13371
+ seenNonDotDotSegment = rootLength !== 0;
13372
+ }
13373
+ }
13374
+ } else if (normalized !== void 0) {
13375
+ if (normalized.length !== rootLength) {
13376
+ normalized += directorySeparator;
13377
+ }
13378
+ seenNonDotDotSegment = true;
13379
+ normalized += path.substring(segmentStart, segmentEnd);
13380
+ } else {
13381
+ seenNonDotDotSegment = true;
13382
+ normalizedUpTo = segmentEnd;
13383
+ }
13384
+ index = segmentEnd + 1;
13385
+ }
13386
+ return normalized ?? (length2 > rootLength ? removeTrailingDirectorySeparator(path) : path);
13306
13387
  }
13307
13388
  function normalizePath(path) {
13308
13389
  path = normalizeSlashes(path);
13390
+ let normalized = simpleNormalizePath(path);
13391
+ if (normalized !== void 0) {
13392
+ return normalized;
13393
+ }
13394
+ normalized = getNormalizedAbsolutePath(path, "");
13395
+ return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized;
13396
+ }
13397
+ function simpleNormalizePath(path) {
13309
13398
  if (!relativePathSegmentRegExp.test(path)) {
13310
13399
  return path;
13311
13400
  }
13312
- const simplified = path.replace(/\/\.\//g, "/").replace(/^\.\//, "");
13401
+ let simplified = path.replace(/\/\.\//g, "/");
13402
+ if (simplified.startsWith("./")) {
13403
+ simplified = simplified.slice(2);
13404
+ }
13313
13405
  if (simplified !== path) {
13314
13406
  path = simplified;
13315
13407
  if (!relativePathSegmentRegExp.test(path)) {
13316
13408
  return path;
13317
13409
  }
13318
13410
  }
13319
- const normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));
13320
- return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized;
13411
+ return void 0;
13321
13412
  }
13322
13413
  function getPathWithoutRoot(pathComponents2) {
13323
13414
  if (pathComponents2.length === 0) return "";
@@ -13743,6 +13834,7 @@ ${lanes.join("\n")}
13743
13834
  _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported: diag(1291, 1, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),
13744
13835
  _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default: diag(1292, 1, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),
13745
13836
  ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve: diag(1293, 1, "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293", "ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),
13837
+ This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled: diag(1294, 1, "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294", "This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),
13746
13838
  with_statements_are_not_allowed_in_an_async_function_block: diag(1300, 1, "with_statements_are_not_allowed_in_an_async_function_block_1300", "'with' statements are not allowed in an async function block."),
13747
13839
  await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1308, 1, "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308", "'await' expressions are only allowed within async functions and at the top levels of modules."),
13748
13840
  The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level: diag(1309, 1, "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309", "The current file is a CommonJS module and cannot use 'await' at the top level."),
@@ -13757,8 +13849,8 @@ ${lanes.join("\n")}
13757
13849
  Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1320, 1, "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320", "Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),
13758
13850
  Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, 1, "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321", "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),
13759
13851
  Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, 1, "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322", "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),
13760
- Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext: diag(1323, 1, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),
13761
- Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve: diag(1324, 1, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),
13852
+ Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext: diag(1323, 1, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', or 'nodenext'."),
13853
+ Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve: diag(1324, 1, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'nodenext', or 'preserve'."),
13762
13854
  Argument_of_dynamic_import_cannot_be_spread_element: diag(1325, 1, "Argument_of_dynamic_import_cannot_be_spread_element_1325", "Argument of dynamic import cannot be spread element."),
13763
13855
  This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments: diag(1326, 1, "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326", "This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),
13764
13856
  String_literal_with_double_quotes_expected: diag(1327, 1, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."),
@@ -13775,7 +13867,7 @@ ${lanes.join("\n")}
13775
13867
  Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, 1, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
13776
13868
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, 1, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
13777
13869
  Class_constructor_may_not_be_an_accessor: diag(1341, 1, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
13778
- The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, 1, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
13870
+ The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext: diag(1343, 1, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', or 'nodenext'."),
13779
13871
  A_label_is_not_allowed_here: diag(1344, 1, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
13780
13872
  An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, 1, "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345", "An expression of type 'void' cannot be tested for truthiness."),
13781
13873
  This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, 1, "This_parameter_is_not_allowed_with_use_strict_directive_1346", "This parameter is not allowed with 'use strict' directive."),
@@ -13805,7 +13897,7 @@ ${lanes.join("\n")}
13805
13897
  await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
13806
13898
  _0_was_imported_here: diag(1376, 3, "_0_was_imported_here_1376", "'{0}' was imported here."),
13807
13899
  _0_was_exported_here: diag(1377, 3, "_0_was_exported_here_1377", "'{0}' was exported here."),
13808
- Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1, "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378", "Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
13900
+ Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1, "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378", "Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
13809
13901
  An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: diag(1379, 1, "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379", "An import alias cannot reference a declaration that was exported using 'export type'."),
13810
13902
  An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type: diag(1380, 1, "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380", "An import alias cannot reference a declaration that was imported using 'import type'."),
13811
13903
  Unexpected_token_Did_you_mean_or_rbrace: diag(1381, 1, "Unexpected_token_Did_you_mean_or_rbrace_1381", "Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),
@@ -13856,7 +13948,7 @@ ${lanes.join("\n")}
13856
13948
  File_redirects_to_file_0: diag(1429, 3, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"),
13857
13949
  The_file_is_in_the_program_because_Colon: diag(1430, 3, "The_file_is_in_the_program_because_Colon_1430", "The file is in the program because:"),
13858
13950
  for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1431, 1, "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431", "'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
13859
- Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, 1, "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432", "Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
13951
+ Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, 1, "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432", "Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
13860
13952
  Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters: diag(1433, 1, "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433", "Neither decorators nor modifiers may be applied to 'this' parameters."),
13861
13953
  Unexpected_keyword_or_identifier: diag(1434, 1, "Unexpected_keyword_or_identifier_1434", "Unexpected keyword or identifier."),
13862
13954
  Unknown_keyword_or_identifier_Did_you_mean_0: diag(1435, 1, "Unknown_keyword_or_identifier_Did_you_mean_0_1435", "Unknown keyword or identifier. Did you mean '{0}'?"),
@@ -14498,9 +14590,9 @@ ${lanes.join("\n")}
14498
14590
  Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers: diag(2818, 1, "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818", "Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),
14499
14591
  Namespace_name_cannot_be_0: diag(2819, 1, "Namespace_name_cannot_be_0_2819", "Namespace name cannot be '{0}'."),
14500
14592
  Type_0_is_not_assignable_to_type_1_Did_you_mean_2: diag(2820, 1, "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820", "Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),
14501
- Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve: diag(2821, 1, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821", "Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),
14593
+ Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve: diag(2821, 1, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821", "Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),
14502
14594
  Import_assertions_cannot_be_used_with_type_only_imports_or_exports: diag(2822, 1, "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822", "Import assertions cannot be used with type-only imports or exports."),
14503
- Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve: diag(2823, 1, "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823", "Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),
14595
+ Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve: diag(2823, 1, "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823", "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),
14504
14596
  Cannot_find_namespace_0_Did_you_mean_1: diag(2833, 1, "Cannot_find_namespace_0_Did_you_mean_1_2833", "Cannot find namespace '{0}'. Did you mean '{1}'?"),
14505
14597
  Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path: diag(2834, 1, "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834", "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),
14506
14598
  Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0: diag(2835, 1, "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835", "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),
@@ -14520,7 +14612,7 @@ ${lanes.join("\n")}
14520
14612
  The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined: diag(2851, 1, "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851", "The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),
14521
14613
  await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."),
14522
14614
  await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(2853, 1, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
14523
- Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
14615
+ Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
14524
14616
  Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super: diag(2855, 1, "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855", "Class field '{0}' defined by the parent class is not accessible in the child class via super."),
14525
14617
  Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls: diag(2856, 1, "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856", "Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),
14526
14618
  Import_attributes_cannot_be_used_with_type_only_imports_or_exports: diag(2857, 1, "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857", "Import attributes cannot be used with type-only imports or exports."),
@@ -14546,6 +14638,7 @@ ${lanes.join("\n")}
14546
14638
  This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path: diag(2877, 1, "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877", "This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),
14547
14639
  This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files: diag(2878, 1, "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878", "This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),
14548
14640
  Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found: diag(2879, 1, "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879", "Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),
14641
+ Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),
14549
14642
  Import_declaration_0_is_using_private_name_1: diag(4e3, 1, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
14550
14643
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
14551
14644
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -14655,6 +14748,8 @@ ${lanes.join("\n")}
14655
14748
  Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
14656
14749
  Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given: diag(4125, 1, "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125", "Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),
14657
14750
  One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value: diag(4126, 1, "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126", "One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),
14751
+ This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic: diag(4127, 1, "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127", "This member cannot have an 'override' modifier because its name is dynamic."),
14752
+ This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic: diag(4128, 1, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128", "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),
14658
14753
  The_current_host_does_not_support_the_0_option: diag(5001, 1, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
14659
14754
  Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
14660
14755
  File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
@@ -15227,11 +15322,13 @@ ${lanes.join("\n")}
15227
15322
  Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
15228
15323
  Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files: diag(6719, 3, "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719", "Require sufficient annotation on exports so other tools can trivially generate declaration files."),
15229
15324
  Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any: diag(6720, 3, "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720", "Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),
15325
+ Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript: diag(6721, 3, "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721", "Do not allow runtime constructs that are not part of ECMAScript."),
15230
15326
  Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
15231
15327
  Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
15232
15328
  Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported: diag(6805, 3, "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805", "Disable full type checking (only critical parse and emit errors will be reported)."),
15233
15329
  Check_side_effect_imports: diag(6806, 3, "Check_side_effect_imports_6806", "Check side effect imports."),
15234
15330
  This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2: diag(6807, 1, "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807", "This operation can be simplified. This shift is identical to `{0} {1} {2}`."),
15331
+ Enable_lib_replacement: diag(6808, 3, "Enable_lib_replacement_6808", "Enable lib replacement."),
15235
15332
  one_of_Colon: diag(6900, 3, "one_of_Colon_6900", "one of:"),
15236
15333
  one_or_more_Colon: diag(6901, 3, "one_or_more_Colon_6901", "one or more:"),
15237
15334
  type_Colon: diag(6902, 3, "type_Colon_6902", "type:"),
@@ -17775,7 +17872,7 @@ ${lanes.join("\n")}
17775
17872
  function scanRegularExpressionWorker(regExpFlags, annexB, namedCaptureGroups) {
17776
17873
  var unicodeSetsMode = !!(regExpFlags & 64);
17777
17874
  var anyUnicodeMode = !!(regExpFlags & 96);
17778
- var anyUnicodeModeOrNonAnnexB = anyUnicodeMode || !annexB;
17875
+ var anyUnicodeModeOrNonAnnexB = anyUnicodeMode || false;
17779
17876
  var mayContainStrings = false;
17780
17877
  var numberOfCapturingGroups = 0;
17781
17878
  var groupSpecifiers;
@@ -19081,6 +19178,7 @@ ${lanes.join("\n")}
19081
19178
  }
19082
19179
  var targetToLibMap = /* @__PURE__ */ new Map([
19083
19180
  [99, "lib.esnext.full.d.ts"],
19181
+ [11, "lib.es2024.full.d.ts"],
19084
19182
  [10, "lib.es2023.full.d.ts"],
19085
19183
  [9, "lib.es2022.full.d.ts"],
19086
19184
  [8, "lib.es2021.full.d.ts"],
@@ -19096,6 +19194,7 @@ ${lanes.join("\n")}
19096
19194
  const target = getEmitScriptTarget(options);
19097
19195
  switch (target) {
19098
19196
  case 99:
19197
+ case 11:
19099
19198
  case 10:
19100
19199
  case 9:
19101
19200
  case 8:
@@ -21324,6 +21423,9 @@ ${lanes.join("\n")}
21324
21423
  "trunc",
21325
21424
  "fround",
21326
21425
  "cbrt"
21426
+ ],
21427
+ esnext: [
21428
+ "f16round"
21327
21429
  ]
21328
21430
  })),
21329
21431
  Map: new Map(Object.entries({
@@ -21493,6 +21595,10 @@ ${lanes.join("\n")}
21493
21595
  "setBigUint64",
21494
21596
  "getBigInt64",
21495
21597
  "getBigUint64"
21598
+ ],
21599
+ esnext: [
21600
+ "setFloat16",
21601
+ "getFloat16"
21496
21602
  ]
21497
21603
  })),
21498
21604
  BigInt: new Map(Object.entries({
@@ -21596,6 +21702,9 @@ ${lanes.join("\n")}
21596
21702
  "with"
21597
21703
  ]
21598
21704
  })),
21705
+ Float16Array: new Map(Object.entries({
21706
+ esnext: emptyArray
21707
+ })),
21599
21708
  Float32Array: new Map(Object.entries({
21600
21709
  es2022: [
21601
21710
  "at"
@@ -21787,7 +21896,7 @@ ${lanes.join("\n")}
21787
21896
  return (_a = symbol.declarations) == null ? void 0 : _a.find((d) => !isExternalModuleAugmentation(d) && !(isModuleDeclaration(d) && isGlobalScopeAugmentation(d)));
21788
21897
  }
21789
21898
  function isCommonJSContainingModuleKind(kind) {
21790
- return kind === 1 || kind === 100 || kind === 199;
21899
+ return kind === 1 || 100 <= kind && kind <= 199;
21791
21900
  }
21792
21901
  function isEffectiveExternalModule(node, compilerOptions) {
21793
21902
  return isExternalModule(node) || isCommonJSContainingModuleKind(getEmitModuleKind(compilerOptions)) && !!node.commonJsModuleIndicator;
@@ -22507,9 +22616,6 @@ ${lanes.join("\n")}
22507
22616
  return key === propName || key2 && key2 === propName ? callback(property) : void 0;
22508
22617
  });
22509
22618
  }
22510
- function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {
22511
- return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0);
22512
- }
22513
22619
  function getTsConfigObjectLiteralExpression(tsConfigSourceFile) {
22514
22620
  if (tsConfigSourceFile && tsConfigSourceFile.statements.length) {
22515
22621
  const expression = tsConfigSourceFile.statements[0].expression;
@@ -25811,7 +25917,7 @@ ${lanes.join("\n")}
25811
25917
  if (s.valueDeclaration) {
25812
25918
  const declaration = isWrite && s.declarations && find(s.declarations, isSetAccessorDeclaration) || s.flags & 32768 && find(s.declarations, isGetAccessorDeclaration) || s.valueDeclaration;
25813
25919
  const flags = getCombinedModifierFlags(declaration);
25814
- return s.parent && s.parent.flags & 32 ? flags : flags & ~7;
25920
+ return s.parent && s.parent.flags & 32 ? flags : flags & -8;
25815
25921
  }
25816
25922
  if (getCheckFlags(s) & 6) {
25817
25923
  const checkFlags = s.links.checkFlags;
@@ -26462,7 +26568,7 @@ ${lanes.join("\n")}
26462
26568
  dependencies: ["module"],
26463
26569
  computeValue: (compilerOptions) => {
26464
26570
  const target = compilerOptions.target === 0 ? void 0 : compilerOptions.target;
26465
- return target ?? (compilerOptions.module === 100 && 9 || compilerOptions.module === 199 && 99 || 1);
26571
+ return target ?? (compilerOptions.module === 100 && 9 || compilerOptions.module === 101 && 9 || compilerOptions.module === 199 && 99 || 1);
26466
26572
  }
26467
26573
  },
26468
26574
  module: {
@@ -26481,6 +26587,7 @@ ${lanes.join("\n")}
26481
26587
  moduleResolution = 2;
26482
26588
  break;
26483
26589
  case 100:
26590
+ case 101:
26484
26591
  moduleResolution = 3;
26485
26592
  break;
26486
26593
  case 199:
@@ -26500,7 +26607,11 @@ ${lanes.join("\n")}
26500
26607
  moduleDetection: {
26501
26608
  dependencies: ["module", "target"],
26502
26609
  computeValue: (compilerOptions) => {
26503
- return compilerOptions.moduleDetection || (_computedOptions.module.computeValue(compilerOptions) === 100 || _computedOptions.module.computeValue(compilerOptions) === 199 ? 3 : 2);
26610
+ if (compilerOptions.moduleDetection !== void 0) {
26611
+ return compilerOptions.moduleDetection;
26612
+ }
26613
+ const moduleKind = _computedOptions.module.computeValue(compilerOptions);
26614
+ return 100 <= moduleKind && moduleKind <= 199 ? 3 : 2;
26504
26615
  }
26505
26616
  },
26506
26617
  isolatedModules: {
@@ -26517,6 +26628,7 @@ ${lanes.join("\n")}
26517
26628
  }
26518
26629
  switch (_computedOptions.module.computeValue(compilerOptions)) {
26519
26630
  case 100:
26631
+ case 101:
26520
26632
  case 199:
26521
26633
  case 200:
26522
26634
  return true;
@@ -26710,6 +26822,9 @@ ${lanes.join("\n")}
26710
26822
  function moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution) {
26711
26823
  return moduleResolution >= 3 && moduleResolution <= 99 || moduleResolution === 100;
26712
26824
  }
26825
+ function moduleSupportsImportAttributes(moduleKind) {
26826
+ return 101 <= moduleKind && moduleKind <= 199 || moduleKind === 200 || moduleKind === 99;
26827
+ }
26713
26828
  function getStrictOptionValue(compilerOptions, flag) {
26714
26829
  return compilerOptions[flag] === void 0 ? !!compilerOptions.strict : !!compilerOptions[flag];
26715
26830
  }
@@ -27555,7 +27670,7 @@ ${lanes.join("\n")}
27555
27670
  return success && result === 10 && scanner2.getTokenEnd() === s.length + 1 && !(flags & 512) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) }));
27556
27671
  }
27557
27672
  function isValidTypeOnlyAliasUseSite(useSite) {
27558
- return !!(useSite.flags & 33554432) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
27673
+ return !!(useSite.flags & 33554432) || isInJSDoc(useSite) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
27559
27674
  }
27560
27675
  function isShorthandPropertyNameUseSite(useSite) {
27561
27676
  return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite;
@@ -28774,6 +28889,64 @@ ${lanes.join("\n")}
28774
28889
  function isNewScopeNode(node) {
28775
28890
  return isFunctionLike(node) || isJSDocSignature(node) || isMappedTypeNode(node);
28776
28891
  }
28892
+ function getLibNameFromLibReference(libReference) {
28893
+ return toFileNameLowerCase(libReference.fileName);
28894
+ }
28895
+ function getLibFileNameFromLibReference(libReference) {
28896
+ const libName = getLibNameFromLibReference(libReference);
28897
+ return libMap.get(libName);
28898
+ }
28899
+ function forEachResolvedProjectReference(resolvedProjectReferences, cb) {
28900
+ return forEachProjectReference(
28901
+ /*projectReferences*/
28902
+ void 0,
28903
+ resolvedProjectReferences,
28904
+ (resolvedRef, parent2) => resolvedRef && cb(resolvedRef, parent2)
28905
+ );
28906
+ }
28907
+ function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {
28908
+ let seenResolvedRefs;
28909
+ return worker2(
28910
+ projectReferences,
28911
+ resolvedProjectReferences,
28912
+ /*parent*/
28913
+ void 0
28914
+ );
28915
+ function worker2(projectReferences2, resolvedProjectReferences2, parent2) {
28916
+ if (cbRef) {
28917
+ const result = cbRef(projectReferences2, parent2);
28918
+ if (result) return result;
28919
+ }
28920
+ let skipChildren;
28921
+ return forEach(
28922
+ resolvedProjectReferences2,
28923
+ (resolvedRef, index) => {
28924
+ if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) {
28925
+ (skipChildren ?? (skipChildren = /* @__PURE__ */ new Set())).add(resolvedRef);
28926
+ return void 0;
28927
+ }
28928
+ const result = cbResolvedRef(resolvedRef, parent2, index);
28929
+ if (result || !resolvedRef) return result;
28930
+ (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
28931
+ }
28932
+ ) || forEach(
28933
+ resolvedProjectReferences2,
28934
+ (resolvedRef) => resolvedRef && !(skipChildren == null ? void 0 : skipChildren.has(resolvedRef)) ? worker2(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef) : void 0
28935
+ );
28936
+ }
28937
+ }
28938
+ function getOptionsSyntaxByArrayElementValue(optionsObject, name, value) {
28939
+ return optionsObject && getPropertyArrayElementValue(optionsObject, name, value);
28940
+ }
28941
+ function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {
28942
+ return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0);
28943
+ }
28944
+ function getOptionsSyntaxByValue(optionsObject, name, value) {
28945
+ return forEachOptionsSyntaxByName(optionsObject, name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0);
28946
+ }
28947
+ function forEachOptionsSyntaxByName(optionsObject, name, callback) {
28948
+ return forEachPropertyAssignment(optionsObject, name, callback);
28949
+ }
28777
28950
  function createBaseNodeFactory() {
28778
28951
  let NodeConstructor2;
28779
28952
  let TokenConstructor2;
@@ -30834,7 +31007,7 @@ ${lanes.join("\n")}
30834
31007
  const isAsync = modifiersToFlags(node.modifiers) & 1024;
30835
31008
  const isGenerator = !!node.asteriskToken;
30836
31009
  const isAsyncGenerator = isAsync && isGenerator;
30837
- node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildFlags(node.questionToken) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 | (isAsyncGenerator ? 128 : isAsync ? 256 : isGenerator ? 2048 : 0) | (node.questionToken || node.typeParameters || node.type ? 1 : 0) | 1024;
31010
+ node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildFlags(node.questionToken) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & -67108865 | (isAsyncGenerator ? 128 : isAsync ? 256 : isGenerator ? 2048 : 0) | (node.questionToken || node.typeParameters || node.type ? 1 : 0) | 1024;
30838
31011
  }
30839
31012
  node.typeArguments = void 0;
30840
31013
  node.jsDoc = void 0;
@@ -30889,7 +31062,7 @@ ${lanes.join("\n")}
30889
31062
  if (!node.body) {
30890
31063
  node.transformFlags = 1;
30891
31064
  } else {
30892
- node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 | 1024;
31065
+ node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & -67108865 | 1024;
30893
31066
  }
30894
31067
  node.typeParameters = void 0;
30895
31068
  node.type = void 0;
@@ -30924,7 +31097,7 @@ ${lanes.join("\n")}
30924
31097
  if (!node.body) {
30925
31098
  node.transformFlags = 1;
30926
31099
  } else {
30927
- node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 | (node.type ? 1 : 0);
31100
+ node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & -67108865 | (node.type ? 1 : 0);
30928
31101
  }
30929
31102
  node.typeArguments = void 0;
30930
31103
  node.typeParameters = void 0;
@@ -30957,7 +31130,7 @@ ${lanes.join("\n")}
30957
31130
  if (!node.body) {
30958
31131
  node.transformFlags = 1;
30959
31132
  } else {
30960
- node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 | (node.type ? 1 : 0);
31133
+ node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & -67108865 | (node.type ? 1 : 0);
30961
31134
  }
30962
31135
  node.typeArguments = void 0;
30963
31136
  node.typeParameters = void 0;
@@ -31707,7 +31880,7 @@ ${lanes.join("\n")}
31707
31880
  const isAsync = modifiersToFlags(node.modifiers) & 1024;
31708
31881
  const isGenerator = !!node.asteriskToken;
31709
31882
  const isAsyncGenerator = isAsync && isGenerator;
31710
- node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 | (isAsyncGenerator ? 128 : isAsync ? 256 : isGenerator ? 2048 : 0) | (node.typeParameters || node.type ? 1 : 0) | 4194304;
31883
+ node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & -67108865 | (isAsyncGenerator ? 128 : isAsync ? 256 : isGenerator ? 2048 : 0) | (node.typeParameters || node.type ? 1 : 0) | 4194304;
31711
31884
  node.typeArguments = void 0;
31712
31885
  node.jsDoc = void 0;
31713
31886
  node.locals = void 0;
@@ -31735,7 +31908,7 @@ ${lanes.join("\n")}
31735
31908
  );
31736
31909
  node.body = parenthesizerRules().parenthesizeConciseBodyOfArrowFunction(body);
31737
31910
  const isAsync = modifiersToFlags(node.modifiers) & 1024;
31738
- node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.equalsGreaterThanToken) | propagateChildFlags(node.body) & ~67108864 | (node.typeParameters || node.type ? 1 : 0) | (isAsync ? 256 | 16384 : 0) | 1024;
31911
+ node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.equalsGreaterThanToken) | propagateChildFlags(node.body) & -67108865 | (node.typeParameters || node.type ? 1 : 0) | (isAsync ? 256 | 16384 : 0) | 1024;
31739
31912
  node.typeArguments = void 0;
31740
31913
  node.jsDoc = void 0;
31741
31914
  node.locals = void 0;
@@ -31881,6 +32054,8 @@ ${lanes.join("\n")}
31881
32054
  );
31882
32055
  node.whenFalse = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenFalse);
31883
32056
  node.transformFlags |= propagateChildFlags(node.condition) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.whenTrue) | propagateChildFlags(node.colonToken) | propagateChildFlags(node.whenFalse);
32057
+ node.flowNodeWhenFalse = void 0;
32058
+ node.flowNodeWhenTrue = void 0;
31884
32059
  return node;
31885
32060
  }
31886
32061
  function updateConditionalExpression(node, condition, questionToken, whenTrue, colonToken, whenFalse) {
@@ -31900,7 +32075,7 @@ ${lanes.join("\n")}
31900
32075
  return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateExpression(head, templateSpans), node) : node;
31901
32076
  }
31902
32077
  function checkTemplateLiteralLikeNode(kind, text, rawText, templateFlags = 0) {
31903
- Debug.assert(!(templateFlags & ~7176), "Unsupported template flags.");
32078
+ Debug.assert(!(templateFlags & -7177), "Unsupported template flags.");
31904
32079
  let cooked = void 0;
31905
32080
  if (rawText !== void 0 && rawText !== text) {
31906
32081
  cooked = getCookedText(kind, rawText);
@@ -32476,7 +32651,7 @@ ${lanes.join("\n")}
32476
32651
  const isAsync = modifiersToFlags(node.modifiers) & 1024;
32477
32652
  const isGenerator = !!node.asteriskToken;
32478
32653
  const isAsyncGenerator = isAsync && isGenerator;
32479
- node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 | (isAsyncGenerator ? 128 : isAsync ? 256 : isGenerator ? 2048 : 0) | (node.typeParameters || node.type ? 1 : 0) | 4194304;
32654
+ node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & -67108865 | (isAsyncGenerator ? 128 : isAsync ? 256 : isGenerator ? 2048 : 0) | (node.typeParameters || node.type ? 1 : 0) | 4194304;
32480
32655
  }
32481
32656
  node.typeArguments = void 0;
32482
32657
  node.jsDoc = void 0;
@@ -32565,7 +32740,7 @@ ${lanes.join("\n")}
32565
32740
  node.name = asName(name);
32566
32741
  node.members = createNodeArray(members);
32567
32742
  node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.name) | propagateChildrenFlags(node.members) | 1;
32568
- node.transformFlags &= ~67108864;
32743
+ node.transformFlags &= -67108865;
32569
32744
  node.jsDoc = void 0;
32570
32745
  return node;
32571
32746
  }
@@ -32586,7 +32761,7 @@ ${lanes.join("\n")}
32586
32761
  } else {
32587
32762
  node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.name) | propagateChildFlags(node.body) | 1;
32588
32763
  }
32589
- node.transformFlags &= ~67108864;
32764
+ node.transformFlags &= -67108865;
32590
32765
  node.jsDoc = void 0;
32591
32766
  node.locals = void 0;
32592
32767
  node.nextContainer = void 0;
@@ -32655,7 +32830,7 @@ ${lanes.join("\n")}
32655
32830
  if (!isExternalModuleReference(node.moduleReference)) {
32656
32831
  node.transformFlags |= 1;
32657
32832
  }
32658
- node.transformFlags &= ~67108864;
32833
+ node.transformFlags &= -67108865;
32659
32834
  node.jsDoc = void 0;
32660
32835
  return node;
32661
32836
  }
@@ -32672,7 +32847,7 @@ ${lanes.join("\n")}
32672
32847
  node.moduleSpecifier = moduleSpecifier;
32673
32848
  node.attributes = node.assertClause = attributes;
32674
32849
  node.transformFlags |= propagateChildFlags(node.importClause) | propagateChildFlags(node.moduleSpecifier);
32675
- node.transformFlags &= ~67108864;
32850
+ node.transformFlags &= -67108865;
32676
32851
  node.jsDoc = void 0;
32677
32852
  return node;
32678
32853
  }
@@ -32691,7 +32866,7 @@ ${lanes.join("\n")}
32691
32866
  if (isTypeOnly) {
32692
32867
  node.transformFlags |= 1;
32693
32868
  }
32694
- node.transformFlags &= ~67108864;
32869
+ node.transformFlags &= -67108865;
32695
32870
  return node;
32696
32871
  }
32697
32872
  function updateImportClause(node, isTypeOnly, name, namedBindings) {
@@ -32770,7 +32945,7 @@ ${lanes.join("\n")}
32770
32945
  );
32771
32946
  node.name = name;
32772
32947
  node.transformFlags |= propagateChildFlags(node.name);
32773
- node.transformFlags &= ~67108864;
32948
+ node.transformFlags &= -67108865;
32774
32949
  return node;
32775
32950
  }
32776
32951
  function updateNamespaceImport(node, name) {
@@ -32783,7 +32958,7 @@ ${lanes.join("\n")}
32783
32958
  );
32784
32959
  node.name = name;
32785
32960
  node.transformFlags |= propagateChildFlags(node.name) | 32;
32786
- node.transformFlags &= ~67108864;
32961
+ node.transformFlags &= -67108865;
32787
32962
  return node;
32788
32963
  }
32789
32964
  function updateNamespaceExport(node, name) {
@@ -32796,7 +32971,7 @@ ${lanes.join("\n")}
32796
32971
  );
32797
32972
  node.elements = createNodeArray(elements);
32798
32973
  node.transformFlags |= propagateChildrenFlags(node.elements);
32799
- node.transformFlags &= ~67108864;
32974
+ node.transformFlags &= -67108865;
32800
32975
  return node;
32801
32976
  }
32802
32977
  function updateNamedImports(node, elements) {
@@ -32811,7 +32986,7 @@ ${lanes.join("\n")}
32811
32986
  node.propertyName = propertyName;
32812
32987
  node.name = name;
32813
32988
  node.transformFlags |= propagateChildFlags(node.propertyName) | propagateChildFlags(node.name);
32814
- node.transformFlags &= ~67108864;
32989
+ node.transformFlags &= -67108865;
32815
32990
  return node;
32816
32991
  }
32817
32992
  function updateImportSpecifier(node, isTypeOnly, propertyName, name) {
@@ -32831,7 +33006,7 @@ ${lanes.join("\n")}
32831
33006
  expression
32832
33007
  ) : parenthesizerRules().parenthesizeExpressionOfExportDefault(expression);
32833
33008
  node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.expression);
32834
- node.transformFlags &= ~67108864;
33009
+ node.transformFlags &= -67108865;
32835
33010
  node.jsDoc = void 0;
32836
33011
  return node;
32837
33012
  }
@@ -32849,7 +33024,7 @@ ${lanes.join("\n")}
32849
33024
  node.moduleSpecifier = moduleSpecifier;
32850
33025
  node.attributes = node.assertClause = attributes;
32851
33026
  node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.exportClause) | propagateChildFlags(node.moduleSpecifier);
32852
- node.transformFlags &= ~67108864;
33027
+ node.transformFlags &= -67108865;
32853
33028
  node.jsDoc = void 0;
32854
33029
  return node;
32855
33030
  }
@@ -32871,7 +33046,7 @@ ${lanes.join("\n")}
32871
33046
  );
32872
33047
  node.elements = createNodeArray(elements);
32873
33048
  node.transformFlags |= propagateChildrenFlags(node.elements);
32874
- node.transformFlags &= ~67108864;
33049
+ node.transformFlags &= -67108865;
32875
33050
  return node;
32876
33051
  }
32877
33052
  function updateNamedExports(node, elements) {
@@ -32886,7 +33061,7 @@ ${lanes.join("\n")}
32886
33061
  node.propertyName = asName(propertyName);
32887
33062
  node.name = asName(name);
32888
33063
  node.transformFlags |= propagateChildFlags(node.propertyName) | propagateChildFlags(node.name);
32889
- node.transformFlags &= ~67108864;
33064
+ node.transformFlags &= -67108865;
32890
33065
  node.jsDoc = void 0;
32891
33066
  return node;
32892
33067
  }
@@ -32908,7 +33083,7 @@ ${lanes.join("\n")}
32908
33083
  );
32909
33084
  node.expression = expression;
32910
33085
  node.transformFlags |= propagateChildFlags(node.expression);
32911
- node.transformFlags &= ~67108864;
33086
+ node.transformFlags &= -67108865;
32912
33087
  return node;
32913
33088
  }
32914
33089
  function updateExternalModuleReference(node, expression) {
@@ -33606,7 +33781,7 @@ ${lanes.join("\n")}
33606
33781
  }
33607
33782
  function cloneRedirectedSourceFile(source) {
33608
33783
  const node = createRedirectedSourceFile(source.redirectInfo);
33609
- node.flags |= source.flags & ~16;
33784
+ node.flags |= source.flags & -17;
33610
33785
  node.fileName = source.fileName;
33611
33786
  node.path = source.path;
33612
33787
  node.resolvedPath = source.resolvedPath;
@@ -33621,7 +33796,7 @@ ${lanes.join("\n")}
33621
33796
  307
33622
33797
  /* SourceFile */
33623
33798
  );
33624
- node.flags |= source.flags & ~16;
33799
+ node.flags |= source.flags & -17;
33625
33800
  for (const p in source) {
33626
33801
  if (hasProperty(node, p) || !hasProperty(source, p)) {
33627
33802
  continue;
@@ -33753,7 +33928,7 @@ ${lanes.join("\n")}
33753
33928
  }
33754
33929
  function cloneGeneratedIdentifier(node) {
33755
33930
  const clone2 = createBaseIdentifier(node.escapedText);
33756
- clone2.flags |= node.flags & ~16;
33931
+ clone2.flags |= node.flags & -17;
33757
33932
  clone2.transformFlags = node.transformFlags;
33758
33933
  setOriginal(clone2, node);
33759
33934
  setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate });
@@ -33761,7 +33936,7 @@ ${lanes.join("\n")}
33761
33936
  }
33762
33937
  function cloneIdentifier(node) {
33763
33938
  const clone2 = createBaseIdentifier(node.escapedText);
33764
- clone2.flags |= node.flags & ~16;
33939
+ clone2.flags |= node.flags & -17;
33765
33940
  clone2.jsDoc = node.jsDoc;
33766
33941
  clone2.flowNode = node.flowNode;
33767
33942
  clone2.symbol = node.symbol;
@@ -33773,7 +33948,7 @@ ${lanes.join("\n")}
33773
33948
  }
33774
33949
  function cloneGeneratedPrivateIdentifier(node) {
33775
33950
  const clone2 = createBasePrivateIdentifier(node.escapedText);
33776
- clone2.flags |= node.flags & ~16;
33951
+ clone2.flags |= node.flags & -17;
33777
33952
  clone2.transformFlags = node.transformFlags;
33778
33953
  setOriginal(clone2, node);
33779
33954
  setIdentifierAutoGenerate(clone2, { ...node.emitNode.autoGenerate });
@@ -33781,7 +33956,7 @@ ${lanes.join("\n")}
33781
33956
  }
33782
33957
  function clonePrivateIdentifier(node) {
33783
33958
  const clone2 = createBasePrivateIdentifier(node.escapedText);
33784
- clone2.flags |= node.flags & ~16;
33959
+ clone2.flags |= node.flags & -17;
33785
33960
  clone2.transformFlags = node.transformFlags;
33786
33961
  setOriginal(clone2, node);
33787
33962
  return clone2;
@@ -33806,7 +33981,7 @@ ${lanes.join("\n")}
33806
33981
  return clonePrivateIdentifier(node);
33807
33982
  }
33808
33983
  const clone2 = !isNodeKind(node.kind) ? baseFactory2.createBaseTokenNode(node.kind) : baseFactory2.createBaseNode(node.kind);
33809
- clone2.flags |= node.flags & ~16;
33984
+ clone2.flags |= node.flags & -17;
33810
33985
  clone2.transformFlags = node.transformFlags;
33811
33986
  setOriginal(clone2, node);
33812
33987
  for (const key in node) {
@@ -33996,7 +34171,7 @@ ${lanes.join("\n")}
33996
34171
  function isIgnorableParen(node) {
33997
34172
  return isParenthesizedExpression(node) && nodeIsSynthesized(node) && nodeIsSynthesized(getSourceMapRange(node)) && nodeIsSynthesized(getCommentRange(node)) && !some(getSyntheticLeadingComments(node)) && !some(getSyntheticTrailingComments(node));
33998
34173
  }
33999
- function restoreOuterExpressions(outerExpression, innerExpression, kinds = 31) {
34174
+ function restoreOuterExpressions(outerExpression, innerExpression, kinds = 63) {
34000
34175
  if (outerExpression && isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) {
34001
34176
  return updateOuterExpression(
34002
34177
  outerExpression,
@@ -34044,7 +34219,7 @@ ${lanes.join("\n")}
34044
34219
  function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers = false) {
34045
34220
  const callee = skipOuterExpressions(
34046
34221
  expression,
34047
- 31
34222
+ 63
34048
34223
  /* All */
34049
34224
  );
34050
34225
  let thisArg;
@@ -34476,7 +34651,7 @@ ${lanes.join("\n")}
34476
34651
  return node && isIdentifier(node) ? propagateIdentifierNameFlags(node) : propagateChildFlags(node);
34477
34652
  }
34478
34653
  function propagateIdentifierNameFlags(node) {
34479
- return propagateChildFlags(node) & ~67108864;
34654
+ return propagateChildFlags(node) & -67108865;
34480
34655
  }
34481
34656
  function propagatePropertyNameFlagsOfChild(node, transformFlags) {
34482
34657
  return transformFlags | node.transformFlags & 134234112;
@@ -34614,7 +34789,7 @@ ${lanes.join("\n")}
34614
34789
  destEmitNode.flags = flags;
34615
34790
  }
34616
34791
  if (internalFlags) {
34617
- destEmitNode.internalFlags = internalFlags & ~8;
34792
+ destEmitNode.internalFlags = internalFlags & -9;
34618
34793
  }
34619
34794
  if (leadingComments) {
34620
34795
  destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments);
@@ -37079,7 +37254,7 @@ ${lanes.join("\n")}
37079
37254
  Debug.assertIsDefined(type);
37080
37255
  return type;
37081
37256
  }
37082
- function isOuterExpression(node, kinds = 31) {
37257
+ function isOuterExpression(node, kinds = 63) {
37083
37258
  switch (node.kind) {
37084
37259
  case 217:
37085
37260
  if (kinds & -2147483648 && isJSDocTypeAssertion(node)) {
@@ -37088,8 +37263,9 @@ ${lanes.join("\n")}
37088
37263
  return (kinds & 1) !== 0;
37089
37264
  case 216:
37090
37265
  case 234:
37091
- case 238:
37092
37266
  return (kinds & 2) !== 0;
37267
+ case 238:
37268
+ return (kinds & (2 | 32)) !== 0;
37093
37269
  case 233:
37094
37270
  return (kinds & 16) !== 0;
37095
37271
  case 235:
@@ -37099,13 +37275,13 @@ ${lanes.join("\n")}
37099
37275
  }
37100
37276
  return false;
37101
37277
  }
37102
- function skipOuterExpressions(node, kinds = 31) {
37278
+ function skipOuterExpressions(node, kinds = 63) {
37103
37279
  while (isOuterExpression(node, kinds)) {
37104
37280
  node = node.expression;
37105
37281
  }
37106
37282
  return node;
37107
37283
  }
37108
- function walkUpOuterExpressions(node, kinds = 31) {
37284
+ function walkUpOuterExpressions(node, kinds = 63) {
37109
37285
  let parent2 = node.parent;
37110
37286
  while (isOuterExpression(parent2, kinds)) {
37111
37287
  parent2 = parent2.parent;
@@ -46468,6 +46644,7 @@ ${lanes.join("\n")}
46468
46644
  const node = factory2.createExpressionWithTypeArguments(expression, typeArguments);
46469
46645
  const res = finishNode(node, pos);
46470
46646
  if (usedBrace) {
46647
+ skipWhitespace();
46471
46648
  parseExpected(
46472
46649
  20
46473
46650
  /* CloseBraceToken */
@@ -47564,6 +47741,8 @@ ${lanes.join("\n")}
47564
47741
  ["esnext.regexp", "lib.es2024.regexp.d.ts"],
47565
47742
  ["esnext.string", "lib.es2024.string.d.ts"],
47566
47743
  ["esnext.iterator", "lib.esnext.iterator.d.ts"],
47744
+ ["esnext.promise", "lib.esnext.promise.d.ts"],
47745
+ ["esnext.float16", "lib.esnext.float16.d.ts"],
47567
47746
  ["decorators", "lib.decorators.d.ts"],
47568
47747
  ["decorators.legacy", "lib.decorators.legacy.d.ts"]
47569
47748
  ];
@@ -47898,6 +48077,7 @@ ${lanes.join("\n")}
47898
48077
  es2022: 7,
47899
48078
  esnext: 99,
47900
48079
  node16: 100,
48080
+ node18: 101,
47901
48081
  nodenext: 199,
47902
48082
  preserve: 200
47903
48083
  /* Preserve */
@@ -48153,6 +48333,23 @@ ${lanes.join("\n")}
48153
48333
  affectsBuildInfo: true,
48154
48334
  affectsSemanticDiagnostics: true
48155
48335
  },
48336
+ {
48337
+ name: "erasableSyntaxOnly",
48338
+ type: "boolean",
48339
+ category: Diagnostics.Interop_Constraints,
48340
+ description: Diagnostics.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,
48341
+ defaultValueDescription: false,
48342
+ affectsBuildInfo: true,
48343
+ affectsSemanticDiagnostics: true
48344
+ },
48345
+ {
48346
+ name: "libReplacement",
48347
+ type: "boolean",
48348
+ affectsProgramStructure: true,
48349
+ category: Diagnostics.Language_and_Environment,
48350
+ description: Diagnostics.Enable_lib_replacement,
48351
+ defaultValueDescription: true
48352
+ },
48156
48353
  // Strict Type Checks
48157
48354
  {
48158
48355
  name: "strict",
@@ -51324,12 +51521,12 @@ ${lanes.join("\n")}
51324
51521
  if (options.resolvePackageJsonExports) {
51325
51522
  features |= 8;
51326
51523
  } else if (options.resolvePackageJsonExports === false) {
51327
- features &= ~8;
51524
+ features &= -9;
51328
51525
  }
51329
51526
  if (options.resolvePackageJsonImports) {
51330
51527
  features |= 2;
51331
51528
  } else if (options.resolvePackageJsonImports === false) {
51332
- features &= ~2;
51529
+ features &= -3;
51333
51530
  }
51334
51531
  return features;
51335
51532
  }
@@ -52077,7 +52274,7 @@ ${lanes.join("\n")}
52077
52274
  let result;
52078
52275
  if (moduleResolution === 2) {
52079
52276
  const priorityExtensions = extensions & (1 | 4);
52080
- const secondaryExtensions = extensions & ~(1 | 4);
52277
+ const secondaryExtensions = extensions & -6;
52081
52278
  result = priorityExtensions && tryResolve(priorityExtensions, state) || secondaryExtensions && tryResolve(secondaryExtensions, state) || void 0;
52082
52279
  } else {
52083
52280
  result = tryResolve(extensions, state);
@@ -52089,7 +52286,7 @@ ${lanes.join("\n")}
52089
52286
  traceIfEnabled(state, Diagnostics.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);
52090
52287
  const diagnosticState = {
52091
52288
  ...state,
52092
- features: state.features & ~8,
52289
+ features: state.features & -9,
52093
52290
  reportDiagnostic: noop
52094
52291
  };
52095
52292
  const diagnosticResult = tryResolve(extensions & (1 | 4), diagnosticState);
@@ -52432,9 +52629,7 @@ ${lanes.join("\n")}
52432
52629
  }
52433
52630
  function loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson = true) {
52434
52631
  const packageInfo = considerPackageJson ? getPackageJsonInfo(candidate, onlyRecordFailures, state) : void 0;
52435
- const packageJsonContent = packageInfo && packageInfo.contents.packageJsonContent;
52436
- const versionPaths = packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state);
52437
- return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJsonContent, versionPaths), state);
52632
+ return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo), state);
52438
52633
  }
52439
52634
  function getEntrypointsFromPackageJsonInfo(packageJsonInfo, options, host, cache, resolveJs) {
52440
52635
  if (!resolveJs && packageJsonInfo.contents.resolvedEntrypoints !== void 0) {
@@ -52452,8 +52647,7 @@ ${lanes.join("\n")}
52452
52647
  /*onlyRecordFailures*/
52453
52648
  false,
52454
52649
  loadPackageJsonMainState,
52455
- packageJsonInfo.contents.packageJsonContent,
52456
- getVersionPathsOfPackageJsonInfo(packageJsonInfo, loadPackageJsonMainState)
52650
+ packageJsonInfo
52457
52651
  );
52458
52652
  entrypoints = append(entrypoints, mainResolution == null ? void 0 : mainResolution.path);
52459
52653
  if (features & 8 && packageJsonInfo.contents.packageJsonContent.exports) {
@@ -52664,13 +52858,14 @@ ${lanes.join("\n")}
52664
52858
  (_f = state.failedLookupLocations) == null ? void 0 : _f.push(packageJsonPath);
52665
52859
  }
52666
52860
  }
52667
- function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
52861
+ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJson) {
52862
+ const versionPaths = packageJson && getVersionPathsOfPackageJsonInfo(packageJson, state);
52668
52863
  let packageFile;
52669
- if (jsonContent) {
52864
+ if (packageJson && arePathsEqual(packageJson == null ? void 0 : packageJson.packageDirectory, candidate, state.host)) {
52670
52865
  if (state.isConfigLookup) {
52671
- packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
52866
+ packageFile = readPackageJsonTSConfigField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state);
52672
52867
  } else {
52673
- packageFile = extensions & 4 && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 | 4) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
52868
+ packageFile = extensions & 4 && readPackageJsonTypesFields(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || extensions & (3 | 4) && readPackageJsonMainField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || void 0;
52674
52869
  }
52675
52870
  }
52676
52871
  const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
@@ -52689,8 +52884,8 @@ ${lanes.join("\n")}
52689
52884
  const features = state2.features;
52690
52885
  const candidateIsFromPackageJsonField = state2.candidateIsFromPackageJsonField;
52691
52886
  state2.candidateIsFromPackageJsonField = true;
52692
- if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
52693
- state2.features &= ~32;
52887
+ if ((packageJson == null ? void 0 : packageJson.contents.packageJsonContent.type) !== "module") {
52888
+ state2.features &= -33;
52694
52889
  }
52695
52890
  const result = nodeLoadModuleByRelativeName(
52696
52891
  expandedExtensions,
@@ -52766,7 +52961,7 @@ ${lanes.join("\n")}
52766
52961
  return loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference);
52767
52962
  }
52768
52963
  const priorityExtensions = extensions & (1 | 4);
52769
- const secondaryExtensions = extensions & ~(1 | 4);
52964
+ const secondaryExtensions = extensions & -6;
52770
52965
  return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference);
52771
52966
  }
52772
52967
  function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) {
@@ -52960,6 +53155,7 @@ ${lanes.join("\n")}
52960
53155
  function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) {
52961
53156
  return loadModuleFromTargetExportOrImport;
52962
53157
  function loadModuleFromTargetExportOrImport(target, subpath, pattern, key) {
53158
+ var _a, _b;
52963
53159
  if (typeof target === "string") {
52964
53160
  if (!pattern && subpath.length > 0 && !endsWith(target, "/")) {
52965
53161
  if (state.traceEnabled) {
@@ -52988,6 +53184,8 @@ ${lanes.join("\n")}
52988
53184
  redirectedReference,
52989
53185
  state.conditions
52990
53186
  );
53187
+ (_a = state.failedLookupLocations) == null ? void 0 : _a.push(...result.failedLookupLocations ?? emptyArray);
53188
+ (_b = state.affectingLocations) == null ? void 0 : _b.push(...result.affectingLocations ?? emptyArray);
52991
53189
  return toSearchResult(
52992
53190
  result.resolvedModule ? {
52993
53191
  path: result.resolvedModule.resolvedFileName,
@@ -53097,20 +53295,20 @@ ${lanes.join("\n")}
53097
53295
  void 0
53098
53296
  );
53099
53297
  function toAbsolutePath(path) {
53100
- var _a, _b;
53298
+ var _a2, _b2;
53101
53299
  if (path === void 0) return path;
53102
- return getNormalizedAbsolutePath(path, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a));
53300
+ return getNormalizedAbsolutePath(path, (_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2));
53103
53301
  }
53104
53302
  function combineDirectoryPath(root, dir) {
53105
53303
  return ensureTrailingDirectorySeparator(combinePaths(root, dir));
53106
53304
  }
53107
53305
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
53108
- var _a, _b, _c, _d;
53306
+ var _a2, _b2, _c, _d;
53109
53307
  if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
53110
53308
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
53111
53309
  const commonSourceDirGuesses = [];
53112
53310
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
53113
- const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName));
53311
+ const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "", getCanonicalFileName));
53114
53312
  commonSourceDirGuesses.push(commonDir);
53115
53313
  } else if (state.requestContainingDirectory) {
53116
53314
  const requestingFile = toAbsolutePath(combinePaths(state.requestContainingDirectory, "index.ts"));
@@ -53175,8 +53373,8 @@ ${lanes.join("\n")}
53175
53373
  }
53176
53374
  return void 0;
53177
53375
  function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) {
53178
- var _a2, _b2;
53179
- const currentDir = state.compilerOptions.configFile ? ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "" : commonSourceDirGuess;
53376
+ var _a3, _b3;
53377
+ const currentDir = state.compilerOptions.configFile ? ((_b3 = (_a3 = state.host).getCurrentDirectory) == null ? void 0 : _b3.call(_a3)) || "" : commonSourceDirGuess;
53180
53378
  const candidateDirectories = [];
53181
53379
  if (state.compilerOptions.declarationDir) {
53182
53380
  candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir)));
@@ -53223,9 +53421,9 @@ ${lanes.join("\n")}
53223
53421
  );
53224
53422
  }
53225
53423
  function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
53226
- const mode = state.features === 0 ? void 0 : state.features & 32 ? 99 : 1;
53424
+ const mode = state.features === 0 ? void 0 : state.features & 32 || state.conditions.includes("import") ? 99 : 1;
53227
53425
  const priorityExtensions = extensions & (1 | 4);
53228
- const secondaryExtensions = extensions & ~(1 | 4);
53426
+ const secondaryExtensions = extensions & -6;
53229
53427
  if (priorityExtensions) {
53230
53428
  traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0, formatExtensions(priorityExtensions));
53231
53429
  const result = lookup(priorityExtensions);
@@ -53301,8 +53499,7 @@ ${lanes.join("\n")}
53301
53499
  candidate,
53302
53500
  !nodeModulesDirectoryExists,
53303
53501
  state,
53304
- packageInfo.contents.packageJsonContent,
53305
- getVersionPathsOfPackageJsonInfo(packageInfo, state)
53502
+ packageInfo
53306
53503
  );
53307
53504
  return withPackageId(packageInfo, fromDirectory, state);
53308
53505
  }
@@ -53312,10 +53509,9 @@ ${lanes.join("\n")}
53312
53509
  candidate2,
53313
53510
  onlyRecordFailures,
53314
53511
  state2,
53315
- packageInfo && packageInfo.contents.packageJsonContent,
53316
- packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state2)
53512
+ packageInfo
53317
53513
  );
53318
- if (!pathAndExtension && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32) {
53514
+ if (!pathAndExtension && !rest && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32) {
53319
53515
  pathAndExtension = loadModuleFromFile(extensions2, combinePaths(candidate2, "index.js"), onlyRecordFailures, state2);
53320
53516
  }
53321
53517
  return withPackageId(packageInfo, pathAndExtension, state2);
@@ -53766,6 +53962,7 @@ ${lanes.join("\n")}
53766
53962
  var preSwitchCaseFlow;
53767
53963
  var activeLabelList;
53768
53964
  var hasExplicitReturn;
53965
+ var inReturnPosition;
53769
53966
  var hasFlowEffects;
53770
53967
  var emitFlags;
53771
53968
  var inStrictMode;
@@ -53838,6 +54035,7 @@ ${lanes.join("\n")}
53838
54035
  currentExceptionTarget = void 0;
53839
54036
  activeLabelList = void 0;
53840
54037
  hasExplicitReturn = false;
54038
+ inReturnPosition = false;
53841
54039
  hasFlowEffects = false;
53842
54040
  inAssignmentPattern = false;
53843
54041
  emitFlags = 0;
@@ -54090,6 +54288,8 @@ ${lanes.join("\n")}
54090
54288
  const saveContainer = container;
54091
54289
  const saveThisParentContainer = thisParentContainer;
54092
54290
  const savedBlockScopeContainer = blockScopeContainer;
54291
+ const savedInReturnPosition = inReturnPosition;
54292
+ if (node.kind === 219 && node.body.kind !== 241) inReturnPosition = true;
54093
54293
  if (containerFlags & 1) {
54094
54294
  if (node.kind !== 219) {
54095
54295
  thisParentContainer = container;
@@ -54137,7 +54337,7 @@ ${lanes.join("\n")}
54137
54337
  activeLabelList = void 0;
54138
54338
  hasExplicitReturn = false;
54139
54339
  bindChildren(node);
54140
- node.flags &= ~5632;
54340
+ node.flags &= -5633;
54141
54341
  if (!(currentFlow.flags & 1) && containerFlags & 8 && nodeIsPresent(node.body)) {
54142
54342
  node.flags |= 512;
54143
54343
  if (hasExplicitReturn) node.flags |= 1024;
@@ -54167,10 +54367,11 @@ ${lanes.join("\n")}
54167
54367
  seenThisKeyword = false;
54168
54368
  bindChildren(node);
54169
54369
  Debug.assertNotNode(node, isIdentifier);
54170
- node.flags = seenThisKeyword ? node.flags | 256 : node.flags & ~256;
54370
+ node.flags = seenThisKeyword ? node.flags | 256 : node.flags & -257;
54171
54371
  } else {
54172
54372
  bindChildren(node);
54173
54373
  }
54374
+ inReturnPosition = savedInReturnPosition;
54174
54375
  container = saveContainer;
54175
54376
  thisParentContainer = saveThisParentContainer;
54176
54377
  blockScopeContainer = savedBlockScopeContainer;
@@ -54192,6 +54393,9 @@ ${lanes.join("\n")}
54192
54393
  const saveInAssignmentPattern = inAssignmentPattern;
54193
54394
  inAssignmentPattern = false;
54194
54395
  if (checkUnreachable(node)) {
54396
+ if (canHaveFlowNode(node) && node.flowNode) {
54397
+ node.flowNode = void 0;
54398
+ }
54195
54399
  bindEachChild(node);
54196
54400
  bindJSDoc(node);
54197
54401
  inAssignmentPattern = saveInAssignmentPattern;
@@ -54387,7 +54591,9 @@ ${lanes.join("\n")}
54387
54591
  case 36:
54388
54592
  case 37:
54389
54593
  case 38:
54390
- return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right) || (isBooleanLiteral(expr.right) && isNarrowingExpression(expr.left) || isBooleanLiteral(expr.left) && isNarrowingExpression(expr.right));
54594
+ const left = skipParentheses(expr.left);
54595
+ const right = skipParentheses(expr.right);
54596
+ return isNarrowableOperand(left) || isNarrowableOperand(right) || isNarrowingTypeofOperands(right, left) || isNarrowingTypeofOperands(left, right) || (isBooleanLiteral(right) && isNarrowingExpression(left) || isBooleanLiteral(left) && isNarrowingExpression(right));
54391
54597
  case 104:
54392
54598
  return isNarrowableOperand(expr.left);
54393
54599
  case 103:
@@ -54579,13 +54785,16 @@ ${lanes.join("\n")}
54579
54785
  function bindForStatement(node) {
54580
54786
  const preLoopLabel = setContinueTarget(node, createLoopLabel());
54581
54787
  const preBodyLabel = createBranchLabel();
54788
+ const preIncrementorLabel = createBranchLabel();
54582
54789
  const postLoopLabel = createBranchLabel();
54583
54790
  bind(node.initializer);
54584
54791
  addAntecedent(preLoopLabel, currentFlow);
54585
54792
  currentFlow = preLoopLabel;
54586
54793
  bindCondition(node.condition, preBodyLabel, postLoopLabel);
54587
54794
  currentFlow = finishFlowLabel(preBodyLabel);
54588
- bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel);
54795
+ bindIterativeStatement(node.statement, postLoopLabel, preIncrementorLabel);
54796
+ addAntecedent(preIncrementorLabel, currentFlow);
54797
+ currentFlow = finishFlowLabel(preIncrementorLabel);
54589
54798
  bind(node.incrementor);
54590
54799
  addAntecedent(preLoopLabel, currentFlow);
54591
54800
  currentFlow = finishFlowLabel(postLoopLabel);
@@ -54622,7 +54831,10 @@ ${lanes.join("\n")}
54622
54831
  currentFlow = finishFlowLabel(postIfLabel);
54623
54832
  }
54624
54833
  function bindReturnOrThrow(node) {
54834
+ const savedInReturnPosition = inReturnPosition;
54835
+ inReturnPosition = true;
54625
54836
  bind(node.expression);
54837
+ inReturnPosition = savedInReturnPosition;
54626
54838
  if (node.kind === 253) {
54627
54839
  hasExplicitReturn = true;
54628
54840
  if (currentReturnTarget) {
@@ -54987,10 +55199,16 @@ ${lanes.join("\n")}
54987
55199
  hasFlowEffects = false;
54988
55200
  bindCondition(node.condition, trueLabel, falseLabel);
54989
55201
  currentFlow = finishFlowLabel(trueLabel);
55202
+ if (inReturnPosition) {
55203
+ node.flowNodeWhenTrue = currentFlow;
55204
+ }
54990
55205
  bind(node.questionToken);
54991
55206
  bind(node.whenTrue);
54992
55207
  addAntecedent(postExpressionLabel, currentFlow);
54993
55208
  currentFlow = finishFlowLabel(falseLabel);
55209
+ if (inReturnPosition) {
55210
+ node.flowNodeWhenFalse = currentFlow;
55211
+ }
54994
55212
  bind(node.colonToken);
54995
55213
  bind(node.whenFalse);
54996
55214
  addAntecedent(postExpressionLabel, currentFlow);
@@ -55237,7 +55455,7 @@ ${lanes.join("\n")}
55237
55455
  if (node.flags & 33554432 && !hasExportDeclarations(node)) {
55238
55456
  node.flags |= 128;
55239
55457
  } else {
55240
- node.flags &= ~128;
55458
+ node.flags &= -129;
55241
55459
  }
55242
55460
  }
55243
55461
  function bindModuleDeclaration(node) {
@@ -56230,7 +56448,7 @@ ${lanes.join("\n")}
56230
56448
  constructorSymbol,
56231
56449
  node,
56232
56450
  4 | 67108864,
56233
- 0 & ~4
56451
+ 0 & -5
56234
56452
  /* Property */
56235
56453
  );
56236
56454
  }
@@ -56438,7 +56656,7 @@ ${lanes.join("\n")}
56438
56656
  }
56439
56657
  if (isToplevel && !isPrototypeProperty) {
56440
56658
  const flags = 1536 | 67108864;
56441
- const excludeFlags = 110735 & ~67108864;
56659
+ const excludeFlags = 110735 & -67108865;
56442
56660
  namespaceSymbol = forEachIdentifierInEntityName(entityName, namespaceSymbol, (id, symbol, parent3) => {
56443
56661
  if (symbol) {
56444
56662
  addDeclarationToSymbol(symbol, id, flags);
@@ -56494,7 +56712,7 @@ ${lanes.join("\n")}
56494
56712
  namespaceSymbol,
56495
56713
  declaration,
56496
56714
  includes | 67108864,
56497
- excludes & ~67108864
56715
+ excludes & -67108865
56498
56716
  /* Assignment */
56499
56717
  );
56500
56718
  }
@@ -58712,6 +58930,7 @@ ${lanes.join("\n")}
58712
58930
  getNumberLiteralType,
58713
58931
  getBigIntType: () => bigintType,
58714
58932
  getBigIntLiteralType,
58933
+ getUnknownType: () => unknownType,
58715
58934
  createPromiseType,
58716
58935
  createArrayType,
58717
58936
  getElementTypeOfArrayType,
@@ -58832,8 +59051,13 @@ ${lanes.join("\n")}
58832
59051
  getMemberOverrideModifierStatus,
58833
59052
  isTypeParameterPossiblyReferenced,
58834
59053
  typeHasCallOrConstructSignatures,
58835
- getSymbolFlags
59054
+ getSymbolFlags,
59055
+ getTypeArgumentsForResolvedSignature
58836
59056
  };
59057
+ function getTypeArgumentsForResolvedSignature(signature) {
59058
+ if (signature.mapper === void 0) return void 0;
59059
+ return instantiateTypes((signature.target || signature).typeParameters, signature.mapper);
59060
+ }
58837
59061
  function getCandidateSignaturesForStringLiteralCompletions(call, editingArgument) {
58838
59062
  const candidatesSet = /* @__PURE__ */ new Set();
58839
59063
  const candidates = [];
@@ -59224,6 +59448,12 @@ ${lanes.join("\n")}
59224
59448
  /*isReadonly*/
59225
59449
  true
59226
59450
  );
59451
+ var anyBaseTypeIndexInfo = createIndexInfo(
59452
+ stringType,
59453
+ anyType,
59454
+ /*isReadonly*/
59455
+ false
59456
+ );
59227
59457
  var iterationTypesCache = /* @__PURE__ */ new Map();
59228
59458
  var noIterationTypes = {
59229
59459
  get yieldType() {
@@ -60146,7 +60376,7 @@ ${lanes.join("\n")}
60146
60376
  const nonValueSymbol = isGlobal && isSourceFile(lastLocation) && lastLocation.locals && getSymbol2(
60147
60377
  lastLocation.locals,
60148
60378
  name,
60149
- ~111551
60379
+ -111552
60150
60380
  /* Value */
60151
60381
  );
60152
60382
  if (nonValueSymbol) {
@@ -60272,11 +60502,11 @@ ${lanes.join("\n")}
60272
60502
  return false;
60273
60503
  }
60274
60504
  function checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning) {
60275
- if (meaning & (788968 & ~1920)) {
60505
+ if (meaning & (788968 & -1921)) {
60276
60506
  const symbol = resolveSymbol(resolveName(
60277
60507
  errorLocation,
60278
60508
  name,
60279
- ~788968 & 111551,
60509
+ -788969 & 111551,
60280
60510
  /*nameNotFoundMessage*/
60281
60511
  void 0,
60282
60512
  /*isUse*/
@@ -60308,9 +60538,9 @@ ${lanes.join("\n")}
60308
60538
  const containerKind = grandparent.parent.kind;
60309
60539
  if (containerKind === 264 && heritageKind === 96) {
60310
60540
  error2(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types, unescapeLeadingUnderscores(name));
60311
- } else if (containerKind === 263 && heritageKind === 96) {
60541
+ } else if (isClassLike(grandparent.parent) && heritageKind === 96) {
60312
60542
  error2(errorLocation, Diagnostics.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values, unescapeLeadingUnderscores(name));
60313
- } else if (containerKind === 263 && heritageKind === 119) {
60543
+ } else if (isClassLike(grandparent.parent) && heritageKind === 119) {
60314
60544
  error2(errorLocation, Diagnostics.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types, unescapeLeadingUnderscores(name));
60315
60545
  }
60316
60546
  } else {
@@ -60321,7 +60551,7 @@ ${lanes.join("\n")}
60321
60551
  const symbol = resolveSymbol(resolveName(
60322
60552
  errorLocation,
60323
60553
  name,
60324
- 788968 & ~111551,
60554
+ 788968 & -111552,
60325
60555
  /*nameNotFoundMessage*/
60326
60556
  void 0,
60327
60557
  /*isUse*/
@@ -60368,7 +60598,7 @@ ${lanes.join("\n")}
60368
60598
  return false;
60369
60599
  }
60370
60600
  function checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) {
60371
- if (meaning & (111551 & ~788968)) {
60601
+ if (meaning & (111551 & -788969)) {
60372
60602
  const symbol = resolveSymbol(resolveName(
60373
60603
  errorLocation,
60374
60604
  name,
@@ -60386,7 +60616,7 @@ ${lanes.join("\n")}
60386
60616
  );
60387
60617
  return true;
60388
60618
  }
60389
- } else if (meaning & (788968 & ~111551)) {
60619
+ } else if (meaning & (788968 & -111552)) {
60390
60620
  const symbol = resolveSymbol(resolveName(
60391
60621
  errorLocation,
60392
60622
  name,
@@ -61524,7 +61754,7 @@ ${lanes.join("\n")}
61524
61754
  moduleReference
61525
61755
  );
61526
61756
  }
61527
- if (errorNode && (moduleResolutionKind === 3 || moduleResolutionKind === 99)) {
61757
+ if (errorNode && (moduleKind === 100 || moduleKind === 101)) {
61528
61758
  const isSyncImport = currentSourceFile.impliedNodeFormat === 1 && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);
61529
61759
  const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l));
61530
61760
  if (isSyncImport && sourceFile.impliedNodeFormat === 99 && !hasResolutionModeOverride(overrideHost)) {
@@ -62221,7 +62451,7 @@ ${lanes.join("\n")}
62221
62451
  case 264:
62222
62452
  let table;
62223
62453
  (getSymbolOfDeclaration(location).members || emptySymbols).forEach((memberSymbol, key) => {
62224
- if (memberSymbol.flags & (788968 & ~67108864)) {
62454
+ if (memberSymbol.flags & (788968 & -67108865)) {
62225
62455
  (table || (table = createSymbolTable())).set(key, memberSymbol);
62226
62456
  }
62227
62457
  });
@@ -62860,12 +63090,7 @@ ${lanes.join("\n")}
62860
63090
  enterNewScope(context, node) {
62861
63091
  if (isFunctionLike(node) || isJSDocSignature(node)) {
62862
63092
  const signature = getSignatureFromDeclaration(node);
62863
- const expandedParams = getExpandedParameters(
62864
- signature,
62865
- /*skipUnionExpanding*/
62866
- true
62867
- )[0];
62868
- return enterNewScope(context, node, expandedParams, signature.typeParameters);
63093
+ return enterNewScope(context, node, signature.parameters, signature.typeParameters);
62869
63094
  } else {
62870
63095
  const typeParameters = isConditionalTypeNode(node) ? getInferTypeParameters(node) : [getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))];
62871
63096
  return enterNewScope(
@@ -62945,7 +63170,7 @@ ${lanes.join("\n")}
62945
63170
  return true;
62946
63171
  }
62947
63172
  if (requiresAddingUndefined && annotationType) {
62948
- annotationType = getOptionalType(annotationType, !isParameter(node));
63173
+ annotationType = addOptionality(annotationType, !isParameter(node));
62949
63174
  }
62950
63175
  return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type);
62951
63176
  }
@@ -63094,7 +63319,7 @@ ${lanes.join("\n")}
63094
63319
  cancellationToken.throwIfCancellationRequested();
63095
63320
  }
63096
63321
  const inTypeAlias = context.flags & 8388608;
63097
- context.flags &= ~8388608;
63322
+ context.flags &= -8388609;
63098
63323
  if (!type) {
63099
63324
  if (!(context.flags & 262144)) {
63100
63325
  context.encounteredError = true;
@@ -63609,7 +63834,7 @@ ${lanes.join("\n")}
63609
63834
  function shouldWriteTypeOfFunctionSymbol() {
63610
63835
  var _a3;
63611
63836
  const isStaticMethodSymbol = !!(symbol.flags & 8192) && // typeof static method
63612
- some(symbol.declarations, (declaration) => isStatic(declaration));
63837
+ some(symbol.declarations, (declaration) => isStatic(declaration) && !isLateBindableIndexSignature(getNameOfDeclaration(declaration)));
63613
63838
  const isNonLocalFunctionSymbol = !!(symbol.flags & 16) && (symbol.parent || // is exported function symbol
63614
63839
  forEach(
63615
63840
  symbol.declarations,
@@ -63938,6 +64163,44 @@ ${lanes.join("\n")}
63938
64163
  ids.unshift(state);
63939
64164
  return ids;
63940
64165
  }
64166
+ function indexInfoToObjectComputedNamesOrSignatureDeclaration(indexInfo, context2, typeNode) {
64167
+ if (indexInfo.components) {
64168
+ const allComponentComputedNamesSerializable = every(indexInfo.components, (e) => {
64169
+ var _a2;
64170
+ return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && context2.enclosingDeclaration && ((_a2 = isEntityNameVisible(
64171
+ e.name.expression,
64172
+ context2.enclosingDeclaration,
64173
+ /*shouldComputeAliasToMakeVisible*/
64174
+ false
64175
+ )) == null ? void 0 : _a2.accessibility) === 0);
64176
+ });
64177
+ if (allComponentComputedNamesSerializable) {
64178
+ const newComponents = filter(indexInfo.components, (e) => {
64179
+ return !hasLateBindableName(e);
64180
+ });
64181
+ return map(newComponents, (e) => {
64182
+ trackComputedName(e.name.expression, context2.enclosingDeclaration, context2);
64183
+ return setTextRange2(
64184
+ context2,
64185
+ factory.createPropertySignature(
64186
+ indexInfo.isReadonly ? [factory.createModifier(
64187
+ 148
64188
+ /* ReadonlyKeyword */
64189
+ )] : void 0,
64190
+ e.name,
64191
+ (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(
64192
+ 58
64193
+ /* QuestionToken */
64194
+ ) : void 0,
64195
+ typeNode || typeToTypeNodeHelper(getTypeOfSymbol(e.symbol), context2)
64196
+ ),
64197
+ e
64198
+ );
64199
+ });
64200
+ }
64201
+ }
64202
+ return [indexInfoToIndexSignatureDeclarationHelper(indexInfo, context2, typeNode)];
64203
+ }
63941
64204
  function createTypeNodesFromResolvedType(resolvedType) {
63942
64205
  if (checkTruncationLength(context)) {
63943
64206
  if (context.flags & 1) {
@@ -63962,7 +64225,7 @@ ${lanes.join("\n")}
63962
64225
  typeElements.push(signatureToSignatureDeclarationHelper(signature, 180, context));
63963
64226
  }
63964
64227
  for (const info of resolvedType.indexInfos) {
63965
- typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 ? createElidedInformationPlaceholder(context) : void 0));
64228
+ typeElements.push(...indexInfoToObjectComputedNamesOrSignatureDeclaration(info, context, resolvedType.objectFlags & 1024 ? createElidedInformationPlaceholder(context) : void 0));
63966
64229
  }
63967
64230
  const properties = resolvedType.properties;
63968
64231
  if (!properties) {
@@ -64297,7 +64560,7 @@ ${lanes.join("\n")}
64297
64560
  typeParameters = signature.typeParameters && signature.typeParameters.map((parameter) => typeParameterToDeclaration(parameter, context));
64298
64561
  }
64299
64562
  const restoreFlags = saveRestoreFlags(context);
64300
- context.flags &= ~256;
64563
+ context.flags &= -257;
64301
64564
  const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(
64302
64565
  parameter,
64303
64566
  context,
@@ -64607,7 +64870,7 @@ ${lanes.join("\n")}
64607
64870
  }
64608
64871
  function typeParameterToDeclarationWithConstraint(type, context, constraintNode) {
64609
64872
  const restoreFlags = saveRestoreFlags(context);
64610
- context.flags &= ~512;
64873
+ context.flags &= -513;
64611
64874
  const modifiers = factory.createModifiersFromModifierFlags(getTypeParameterModifiers(type));
64612
64875
  const name = typeParameterToName(type, context);
64613
64876
  const defaultParameter = getDefaultFromTypeParameter(type);
@@ -64730,7 +64993,7 @@ ${lanes.join("\n")}
64730
64993
  if (!context.tracker.canTrackSymbol) return;
64731
64994
  const firstIdentifier = getFirstIdentifier(accessExpression);
64732
64995
  const name = resolveName(
64733
- firstIdentifier,
64996
+ enclosingDeclaration,
64734
64997
  firstIdentifier.escapedText,
64735
64998
  111551 | 1048576,
64736
64999
  /*nameNotFoundMessage*/
@@ -64745,6 +65008,24 @@ ${lanes.join("\n")}
64745
65008
  111551
64746
65009
  /* Value */
64747
65010
  );
65011
+ } else {
65012
+ const fallback = resolveName(
65013
+ firstIdentifier,
65014
+ firstIdentifier.escapedText,
65015
+ 111551 | 1048576,
65016
+ /*nameNotFoundMessage*/
65017
+ void 0,
65018
+ /*isUse*/
65019
+ true
65020
+ );
65021
+ if (fallback) {
65022
+ context.tracker.trackSymbol(
65023
+ fallback,
65024
+ enclosingDeclaration,
65025
+ 111551
65026
+ /* Value */
65027
+ );
65028
+ }
64748
65029
  }
64749
65030
  }
64750
65031
  function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) {
@@ -65378,7 +65659,7 @@ ${lanes.join("\n")}
65378
65659
  function serializeReturnTypeForSignature(context, signature) {
65379
65660
  const suppressAny = context.flags & 256;
65380
65661
  const restoreFlags = saveRestoreFlags(context);
65381
- if (suppressAny) context.flags &= ~256;
65662
+ if (suppressAny) context.flags &= -257;
65382
65663
  let returnTypeNode;
65383
65664
  const returnType = getReturnTypeOfSignature(signature);
65384
65665
  if (!(suppressAny && isTypeAny(returnType))) {
@@ -65806,11 +66087,11 @@ ${lanes.join("\n")}
65806
66087
  return statements;
65807
66088
  }
65808
66089
  function addExportModifier(node) {
65809
- const flags = (getEffectiveModifierFlags(node) | 32) & ~128;
66090
+ const flags = (getEffectiveModifierFlags(node) | 32) & -129;
65810
66091
  return factory.replaceModifiers(node, flags);
65811
66092
  }
65812
66093
  function removeExportModifier(node) {
65813
- const flags = getEffectiveModifierFlags(node) & ~32;
66094
+ const flags = getEffectiveModifierFlags(node) & -33;
65814
66095
  return factory.replaceModifiers(node, flags);
65815
66096
  }
65816
66097
  function visitSymbolTable(symbolTable2, suppressNewPrivateContext, propertyAsAlias) {
@@ -65949,7 +66230,7 @@ ${lanes.join("\n")}
65949
66230
  ),
65950
66231
  textRange
65951
66232
  );
65952
- addResult(statement, name !== localName ? modifierFlags & ~32 : modifierFlags);
66233
+ addResult(statement, name !== localName ? modifierFlags & -33 : modifierFlags);
65953
66234
  if (name !== localName && !isPrivate) {
65954
66235
  addResult(
65955
66236
  factory.createExportDeclaration(
@@ -66901,7 +67182,7 @@ ${lanes.join("\n")}
66901
67182
  if (p.flags & 4194304 || p.escapedName === "constructor" || baseType && getPropertyOfType(baseType, p.escapedName) && isReadonlySymbol(getPropertyOfType(baseType, p.escapedName)) === isReadonlySymbol(p) && (p.flags & 16777216) === (getPropertyOfType(baseType, p.escapedName).flags & 16777216) && isTypeIdenticalTo(getTypeOfSymbol(p), getTypeOfPropertyOfType(baseType, p.escapedName))) {
66902
67183
  return [];
66903
67184
  }
66904
- const flag = modifierFlags & ~1024 | (isStatic2 ? 256 : 0);
67185
+ const flag = modifierFlags & -1025 | (isStatic2 ? 256 : 0);
66905
67186
  const name = getPropertyNameNodeForSymbol(p, context);
66906
67187
  const firstPropertyLikeDecl = (_a2 = p.declarations) == null ? void 0 : _a2.find(or(isPropertyDeclaration, isAccessor, isVariableDeclaration, isPropertySignature, isBinaryExpression, isPropertyAccessExpression));
66907
67188
  if (p.flags & 98304 && useAccessors) {
@@ -68132,7 +68413,7 @@ ${lanes.join("\n")}
68132
68413
  definedInConstructor = true;
68133
68414
  }
68134
68415
  }
68135
- const sourceTypes = some(constructorTypes, (t) => !!(t.flags & ~98304)) ? constructorTypes : types;
68416
+ const sourceTypes = some(constructorTypes, (t) => !!(t.flags & -98305)) ? constructorTypes : types;
68136
68417
  type = getUnionType(sourceTypes);
68137
68418
  }
68138
68419
  }
@@ -68142,7 +68423,7 @@ ${lanes.join("\n")}
68142
68423
  false,
68143
68424
  definedInMethod && !definedInConstructor
68144
68425
  ));
68145
- if (symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && filterType(widened, (t) => !!(t.flags & ~98304)) === neverType) {
68426
+ if (symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && filterType(widened, (t) => !!(t.flags & -98305)) === neverType) {
68146
68427
  reportImplicitAny(symbol.valueDeclaration, anyType);
68147
68428
  return anyType;
68148
68429
  }
@@ -69817,12 +70098,7 @@ ${lanes.join("\n")}
69817
70098
  1
69818
70099
  /* Construct */
69819
70100
  ));
69820
- const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [createIndexInfo(
69821
- stringType,
69822
- anyType,
69823
- /*isReadonly*/
69824
- false
69825
- )];
70101
+ const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [anyBaseTypeIndexInfo];
69826
70102
  indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType)));
69827
70103
  }
69828
70104
  }
@@ -69989,7 +70265,7 @@ ${lanes.join("\n")}
69989
70265
  const sig = typeParamCount ? createSignatureInstantiation(baseSig, fillMissingTypeArguments(typeArguments, baseSig.typeParameters, minTypeArgumentCount, isJavaScript)) : cloneSignature(baseSig);
69990
70266
  sig.typeParameters = classType.localTypeParameters;
69991
70267
  sig.resolvedReturnType = classType;
69992
- sig.flags = isAbstract ? sig.flags | 4 : sig.flags & ~4;
70268
+ sig.flags = isAbstract ? sig.flags | 4 : sig.flags & -5;
69993
70269
  result.push(sig);
69994
70270
  }
69995
70271
  }
@@ -70181,7 +70457,7 @@ ${lanes.join("\n")}
70181
70457
  if (left.typeParameters && right.typeParameters) {
70182
70458
  paramMapper = createTypeMapper(right.typeParameters, left.typeParameters);
70183
70459
  }
70184
- let flags = (left.flags | right.flags) & (167 & ~1);
70460
+ let flags = (left.flags | right.flags) & (167 & -2);
70185
70461
  const declaration = left.declaration;
70186
70462
  const params = combineUnionParameters(left, right, paramMapper);
70187
70463
  const lastParam = lastOrUndefined(params);
@@ -70401,12 +70677,7 @@ ${lanes.join("\n")}
70401
70677
  members = createSymbolTable(getNamedOrIndexSignatureMembers(members));
70402
70678
  addInheritedMembers(members, getPropertiesOfType(baseConstructorType));
70403
70679
  } else if (baseConstructorType === anyType) {
70404
- baseConstructorIndexInfo = createIndexInfo(
70405
- stringType,
70406
- anyType,
70407
- /*isReadonly*/
70408
- false
70409
- );
70680
+ baseConstructorIndexInfo = anyBaseTypeIndexInfo;
70410
70681
  }
70411
70682
  }
70412
70683
  const indexSymbol = getIndexSymbolFromSymbolTable(members);
@@ -71216,7 +71487,7 @@ ${lanes.join("\n")}
71216
71487
  if (isUnion && isReadonlySymbol(prop)) {
71217
71488
  checkFlags |= 8;
71218
71489
  } else if (!isUnion && !isReadonlySymbol(prop)) {
71219
- checkFlags &= ~8;
71490
+ checkFlags &= -9;
71220
71491
  }
71221
71492
  checkFlags |= (!(modifiers & 6) ? 256 : 0) | (modifiers & 4 ? 512 : 0) | (modifiers & 2 ? 1024 : 0) | (modifiers & 256 ? 2048 : 0);
71222
71493
  if (!isPrototypeProperty(prop)) {
@@ -72120,8 +72391,8 @@ ${lanes.join("\n")}
72120
72391
  /* Index */
72121
72392
  );
72122
72393
  }
72123
- function createIndexInfo(keyType, type, isReadonly2, declaration) {
72124
- return { keyType, type, isReadonly: isReadonly2, declaration };
72394
+ function createIndexInfo(keyType, type, isReadonly2, declaration, components) {
72395
+ return { keyType, type, isReadonly: isReadonly2, declaration, components };
72125
72396
  }
72126
72397
  function getIndexInfosOfSymbol(symbol) {
72127
72398
  const indexSymbol = getIndexSymbol(symbol);
@@ -72578,7 +72849,7 @@ ${lanes.join("\n")}
72578
72849
  return isNoInferTargetType(type) ? getOrCreateSubstitutionType(type, unknownType) : type;
72579
72850
  }
72580
72851
  function isNoInferTargetType(type) {
72581
- return !!(type.flags & 3145728 && some(type.types, isNoInferTargetType) || type.flags & 33554432 && !isNoInferType(type) && isNoInferTargetType(type.baseType) || type.flags & 524288 && !isEmptyAnonymousObjectType(type) || type.flags & (465829888 & ~33554432) && !isPatternLiteralType(type));
72852
+ return !!(type.flags & 3145728 && some(type.types, isNoInferTargetType) || type.flags & 33554432 && !isNoInferType(type) && isNoInferTargetType(type.baseType) || type.flags & 524288 && !isEmptyAnonymousObjectType(type) || type.flags & (465829888 & -33554433) && !isPatternLiteralType(type));
72582
72853
  }
72583
72854
  function isNoInferType(type) {
72584
72855
  return !!(type.flags & 33554432 && type.constraint.flags & 2);
@@ -72659,6 +72930,9 @@ ${lanes.join("\n")}
72659
72930
  case "Number":
72660
72931
  checkNoTypeArguments(node);
72661
72932
  return numberType;
72933
+ case "BigInt":
72934
+ checkNoTypeArguments(node);
72935
+ return bigintType;
72662
72936
  case "Boolean":
72663
72937
  checkNoTypeArguments(node);
72664
72938
  return booleanType;
@@ -73990,7 +74264,7 @@ ${lanes.join("\n")}
73990
74264
  if (includes & 131072) {
73991
74265
  return contains(typeSet, silentNeverType) ? silentNeverType : neverType;
73992
74266
  }
73993
- if (strictNullChecks && includes & 98304 && includes & (524288 | 67108864 | 16777216) || includes & 67108864 && includes & (469892092 & ~67108864) || includes & 402653316 && includes & (469892092 & ~402653316) || includes & 296 && includes & (469892092 & ~296) || includes & 2112 && includes & (469892092 & ~2112) || includes & 12288 && includes & (469892092 & ~12288) || includes & 49152 && includes & (469892092 & ~49152)) {
74267
+ if (strictNullChecks && includes & 98304 && includes & (524288 | 67108864 | 16777216) || includes & 67108864 && includes & (469892092 & -67108865) || includes & 402653316 && includes & (469892092 & -402653317) || includes & 296 && includes & (469892092 & -297) || includes & 2112 && includes & (469892092 & -2113) || includes & 12288 && includes & (469892092 & -12289) || includes & 49152 && includes & (469892092 & -49153)) {
73994
74268
  return neverType;
73995
74269
  }
73996
74270
  if (includes & (134217728 | 268435456) && includes & 128 && extractRedundantTemplateLiterals(typeSet)) {
@@ -75330,7 +75604,7 @@ ${lanes.join("\n")}
75330
75604
  return result;
75331
75605
  }
75332
75606
  function getIndexInfoWithReadonly(info, readonly2) {
75333
- return info.isReadonly !== readonly2 ? createIndexInfo(info.keyType, info.type, readonly2, info.declaration) : info;
75607
+ return info.isReadonly !== readonly2 ? createIndexInfo(info.keyType, info.type, readonly2, info.declaration, info.components) : info;
75334
75608
  }
75335
75609
  function createLiteralType(flags, value, symbol, regularType) {
75336
75610
  const type = createTypeWithSymbol(flags, symbol);
@@ -75923,7 +76197,7 @@ ${lanes.join("\n")}
75923
76197
  }
75924
76198
  function instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments) {
75925
76199
  Debug.assert(type.symbol, "anonymous type must have symbol to be instantiated");
75926
- const result = createObjectType(type.objectFlags & ~(524288 | 1048576) | 64, type.symbol);
76200
+ const result = createObjectType(type.objectFlags & -1572865 | 64, type.symbol);
75927
76201
  if (type.objectFlags & 32) {
75928
76202
  result.declaration = type.declaration;
75929
76203
  const origTypeParameter = getTypeParameterFromMappedType(type);
@@ -76102,7 +76376,7 @@ ${lanes.join("\n")}
76102
76376
  return type.restrictiveInstantiation;
76103
76377
  }
76104
76378
  function instantiateIndexInfo(info, mapper) {
76105
- return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration);
76379
+ return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration, info.components);
76106
76380
  }
76107
76381
  function isContextSensitive(node) {
76108
76382
  Debug.assert(node.kind !== 174 || isObjectLiteralMethod(node));
@@ -77929,7 +78203,7 @@ ${lanes.join("\n")}
77929
78203
  if (source2.flags & 1048576 && target2.flags & 1048576 && !(source2.types[0].flags & 32768) && target2.types[0].flags & 32768) {
77930
78204
  return extractTypesOfKind(
77931
78205
  target2,
77932
- ~32768
78206
+ -32769
77933
78207
  /* Undefined */
77934
78208
  );
77935
78209
  }
@@ -78564,7 +78838,7 @@ ${lanes.join("\n")}
78564
78838
  const typeParameter = getTypeParameterFromMappedType(target2);
78565
78839
  const nonNullComponent = extractTypesOfKind(
78566
78840
  templateType2,
78567
- ~98304
78841
+ -98305
78568
78842
  /* Nullable */
78569
78843
  );
78570
78844
  if (!keysRemapped && nonNullComponent.flags & 8388608 && nonNullComponent.indexType === typeParameter) {
@@ -80387,7 +80661,7 @@ ${lanes.join("\n")}
80387
80661
  const members = transformTypeOfMembers(type, getRegularTypeOfObjectLiteral);
80388
80662
  const regularNew = createAnonymousType(resolved.symbol, members, resolved.callSignatures, resolved.constructSignatures, resolved.indexInfos);
80389
80663
  regularNew.flags = resolved.flags;
80390
- regularNew.objectFlags |= resolved.objectFlags & ~8192;
80664
+ regularNew.objectFlags |= resolved.objectFlags & -8193;
80391
80665
  type.regularType = regularNew;
80392
80666
  return regularNew;
80393
80667
  }
@@ -80461,7 +80735,7 @@ ${lanes.join("\n")}
80461
80735
  }
80462
80736
  }
80463
80737
  }
80464
- const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly)));
80738
+ const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly, info.declaration, info.components)));
80465
80739
  result.objectFlags |= getObjectFlags(type) & (4096 | 262144);
80466
80740
  return result;
80467
80741
  }
@@ -81556,14 +81830,14 @@ ${lanes.join("\n")}
81556
81830
  /*roundTripOnly*/
81557
81831
  true
81558
81832
  )) {
81559
- allTypeFlags &= ~296;
81833
+ allTypeFlags &= -297;
81560
81834
  }
81561
81835
  if (allTypeFlags & 2112 && !isValidBigIntString(
81562
81836
  str,
81563
81837
  /*roundTripOnly*/
81564
81838
  true
81565
81839
  )) {
81566
- allTypeFlags &= ~2112;
81840
+ allTypeFlags &= -2113;
81567
81841
  }
81568
81842
  const matchingType = reduceLeft(constraintTypes, (left, right) => !(right.flags & allTypeFlags) ? left : left.flags & 4 ? left : right.flags & 4 ? source2 : left.flags & 134217728 ? left : right.flags & 134217728 && isTypeMatchedByTemplateLiteralType(source2, right) ? source2 : left.flags & 268435456 ? left : right.flags & 268435456 && str === applyStringMapping(right.symbol, str) ? source2 : left.flags & 128 ? left : right.flags & 128 && right.value === str ? right : left.flags & 8 ? left : right.flags & 8 ? getNumberLiteralType(+str) : left.flags & 32 ? left : right.flags & 32 ? getNumberLiteralType(+str) : left.flags & 256 ? left : right.flags & 256 && right.value === +str ? right : left.flags & 64 ? left : right.flags & 64 ? parseBigIntLiteralType(str) : left.flags & 2048 ? left : right.flags & 2048 && pseudoBigIntToString(right.value) === str ? right : left.flags & 16 ? left : right.flags & 16 ? str === "true" ? trueType : str === "false" ? falseType : booleanType : left.flags & 512 ? left : right.flags & 512 && right.intrinsicName === str ? right : left.flags & 32768 ? left : right.flags & 32768 && right.intrinsicName === str ? right : left.flags & 65536 ? left : right.flags & 65536 && right.intrinsicName === str ? right : left, neverType);
81569
81843
  if (!(matchingType.flags & 131072)) {
@@ -81997,6 +82271,7 @@ ${lanes.join("\n")}
81997
82271
  return target.kind === 108;
81998
82272
  case 235:
81999
82273
  case 217:
82274
+ case 238:
82000
82275
  return isMatchingReference(source.expression, target);
82001
82276
  case 211:
82002
82277
  case 212:
@@ -84037,6 +84312,7 @@ ${lanes.join("\n")}
84037
84312
  if (checkDerived) {
84038
84313
  return filterType(type, (t) => !isTypeDerivedFrom(t, candidate));
84039
84314
  }
84315
+ type = type.flags & 2 ? unknownUnionType : type;
84040
84316
  const trueType2 = getNarrowedType(
84041
84317
  type,
84042
84318
  candidate,
@@ -84045,7 +84321,7 @@ ${lanes.join("\n")}
84045
84321
  /*checkDerived*/
84046
84322
  false
84047
84323
  );
84048
- return filterType(type, (t) => !isTypeSubsetOf(t, trueType2));
84324
+ return recombineUnknownType(filterType(type, (t) => !isTypeSubsetOf(t, trueType2)));
84049
84325
  }
84050
84326
  if (type.flags & 3) {
84051
84327
  return candidate;
@@ -84159,6 +84435,7 @@ ${lanes.join("\n")}
84159
84435
  return narrowTypeByCallExpression(type, expr, assumeTrue);
84160
84436
  case 217:
84161
84437
  case 235:
84438
+ case 238:
84162
84439
  return narrowType(type, expr.expression, assumeTrue);
84163
84440
  case 226:
84164
84441
  return narrowTypeByBinaryExpression(type, expr, assumeTrue);
@@ -84562,12 +84839,13 @@ ${lanes.join("\n")}
84562
84839
  const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 ? Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found : void 0;
84563
84840
  const jsxFactoryNamespace = getJsxNamespace(node);
84564
84841
  const jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node;
84842
+ const shouldFactoryRefErr = compilerOptions.jsx !== 1 && compilerOptions.jsx !== 3;
84565
84843
  let jsxFactorySym;
84566
84844
  if (!(isJsxOpeningFragment(node) && jsxFactoryNamespace === "null")) {
84567
84845
  jsxFactorySym = resolveName(
84568
84846
  jsxFactoryLocation,
84569
84847
  jsxFactoryNamespace,
84570
- compilerOptions.jsx === 1 ? 111551 & ~384 : 111551,
84848
+ shouldFactoryRefErr ? 111551 : 111551 & -385,
84571
84849
  jsxFactoryRefErr,
84572
84850
  /*isUse*/
84573
84851
  true
@@ -84581,12 +84859,13 @@ ${lanes.join("\n")}
84581
84859
  }
84582
84860
  if (isJsxOpeningFragment(node)) {
84583
84861
  const file = getSourceFileOfNode(node);
84584
- const localJsxNamespace = getLocalJsxNamespace(file);
84585
- if (localJsxNamespace) {
84862
+ const entity = getJsxFactoryEntity(file);
84863
+ if (entity) {
84864
+ const localJsxNamespace = getFirstIdentifier(entity).escapedText;
84586
84865
  resolveName(
84587
84866
  jsxFactoryLocation,
84588
84867
  localJsxNamespace,
84589
- compilerOptions.jsx === 1 ? 111551 & ~384 : 111551,
84868
+ shouldFactoryRefErr ? 111551 : 111551 & -385,
84590
84869
  jsxFactoryRefErr,
84591
84870
  /*isUse*/
84592
84871
  true
@@ -84796,7 +85075,7 @@ ${lanes.join("\n")}
84796
85075
  /* Normal */
84797
85076
  );
84798
85077
  const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
84799
- links.flags &= ~4194304;
85078
+ links.flags &= -4194305;
84800
85079
  if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 && !(rootDeclaration.kind === 169 && isSomeSymbolAssigned(rootDeclaration))) {
84801
85080
  const pattern = declaration.parent;
84802
85081
  const narrowedType = getFlowTypeOfReference(
@@ -86604,7 +86883,7 @@ ${lanes.join("\n")}
86604
86883
  if (left.typeParameters && right.typeParameters) {
86605
86884
  paramMapper = createTypeMapper(right.typeParameters, left.typeParameters);
86606
86885
  }
86607
- let flags = (left.flags | right.flags) & (167 & ~1);
86886
+ let flags = (left.flags | right.flags) & (167 & -2);
86608
86887
  const declaration = left.declaration;
86609
86888
  const params = combineIntersectionParameters(left, right, paramMapper);
86610
86889
  const lastParam = lastOrUndefined(params);
@@ -86942,12 +87221,22 @@ ${lanes.join("\n")}
86942
87221
  /* ESSymbol */
86943
87222
  );
86944
87223
  }
87224
+ function isSymbolWithComputedName(symbol) {
87225
+ var _a;
87226
+ const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0];
87227
+ return firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name);
87228
+ }
86945
87229
  function getObjectLiteralIndexInfo(isReadonly2, offset, properties, keyType) {
87230
+ var _a;
86946
87231
  const propTypes = [];
87232
+ let components;
86947
87233
  for (let i = offset; i < properties.length; i++) {
86948
87234
  const prop = properties[i];
86949
87235
  if (keyType === stringType && !isSymbolWithSymbolName(prop) || keyType === numberType && isSymbolWithNumericName(prop) || keyType === esSymbolType && isSymbolWithSymbolName(prop)) {
86950
87236
  propTypes.push(getTypeOfSymbol(properties[i]));
87237
+ if (isSymbolWithComputedName(properties[i])) {
87238
+ components = append(components, (_a = properties[i].declarations) == null ? void 0 : _a[0]);
87239
+ }
86951
87240
  }
86952
87241
  }
86953
87242
  const unionType = propTypes.length ? getUnionType(
@@ -86955,7 +87244,14 @@ ${lanes.join("\n")}
86955
87244
  2
86956
87245
  /* Subtype */
86957
87246
  ) : undefinedType;
86958
- return createIndexInfo(keyType, unionType, isReadonly2);
87247
+ return createIndexInfo(
87248
+ keyType,
87249
+ unionType,
87250
+ isReadonly2,
87251
+ /*declaration*/
87252
+ void 0,
87253
+ components
87254
+ );
86959
87255
  }
86960
87256
  function getImmediateAliasedSymbol(symbol) {
86961
87257
  Debug.assert((symbol.flags & 2097152) !== 0, "Should only get Alias here.");
@@ -87542,6 +87838,9 @@ ${lanes.join("\n")}
87542
87838
  return getNameFromJsxElementAttributesContainer(JsxNames.ElementAttributesPropertyNameContainer, jsxNamespace);
87543
87839
  }
87544
87840
  function getJsxElementChildrenPropertyName(jsxNamespace) {
87841
+ if (compilerOptions.jsx === 4 || compilerOptions.jsx === 5) {
87842
+ return "children";
87843
+ }
87545
87844
  return getNameFromJsxElementAttributesContainer(JsxNames.ElementChildrenAttributeNameContainer, jsxNamespace);
87546
87845
  }
87547
87846
  function getUninstantiatedJsxSignaturesOfType(elementType, caller) {
@@ -88350,6 +88649,13 @@ ${lanes.join("\n")}
88350
88649
  return getIntersectionType(x);
88351
88650
  }
88352
88651
  function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {
88652
+ const links = getNodeLinks(propNode);
88653
+ const cache = links.nonExistentPropCheckCache || (links.nonExistentPropCheckCache = /* @__PURE__ */ new Set());
88654
+ const key = `${getTypeId(containingType)}|${isUncheckedJS}`;
88655
+ if (cache.has(key)) {
88656
+ return;
88657
+ }
88658
+ cache.add(key);
88353
88659
  let errorInfo;
88354
88660
  let relatedInfo;
88355
88661
  if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 && !(containingType.flags & 402784252)) {
@@ -89213,8 +89519,8 @@ ${lanes.join("\n")}
89213
89519
  }
89214
89520
  }
89215
89521
  function getEffectiveCheckNode(argument) {
89216
- argument = skipParentheses(argument);
89217
- return isSatisfiesExpression(argument) ? skipParentheses(argument.expression) : argument;
89522
+ const flags = isInJSFile(argument) ? 1 | 32 | -2147483648 : 1 | 32;
89523
+ return skipOuterExpressions(argument, flags);
89218
89524
  }
89219
89525
  function getSignatureApplicabilityError(node, args, signature, relation, checkMode, reportErrors2, containingMessageChain, inferenceContext) {
89220
89526
  const errorOutputContainer = { errors: void 0, skipLogging: true };
@@ -89639,11 +89945,16 @@ ${lanes.join("\n")}
89639
89945
  if (!result) {
89640
89946
  result = chooseOverload(candidates, assignableRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma);
89641
89947
  }
89948
+ const links = getNodeLinks(node);
89949
+ if (links.resolvedSignature !== resolvingSignature && !candidatesOutArray) {
89950
+ Debug.assert(links.resolvedSignature);
89951
+ return links.resolvedSignature;
89952
+ }
89642
89953
  if (result) {
89643
89954
  return result;
89644
89955
  }
89645
89956
  result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);
89646
- getNodeLinks(node).resolvedSignature = result;
89957
+ links.resolvedSignature = result;
89647
89958
  if (reportErrors2) {
89648
89959
  if (!headMessage && isInstanceof) {
89649
89960
  headMessage = Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method;
@@ -90505,12 +90816,14 @@ ${lanes.join("\n")}
90505
90816
  const sourceFileLinks = getNodeLinks(getSourceFileOfNode(node));
90506
90817
  if (sourceFileLinks.jsxFragmentType !== void 0) return sourceFileLinks.jsxFragmentType;
90507
90818
  const jsxFragmentFactoryName = getJsxNamespace(node);
90508
- if (jsxFragmentFactoryName === "null") return sourceFileLinks.jsxFragmentType = anyType;
90819
+ const shouldResolveFactoryReference = (compilerOptions.jsx === 2 || compilerOptions.jsxFragmentFactory !== void 0) && jsxFragmentFactoryName !== "null";
90820
+ if (!shouldResolveFactoryReference) return sourceFileLinks.jsxFragmentType = anyType;
90821
+ const shouldModuleRefErr = compilerOptions.jsx !== 1 && compilerOptions.jsx !== 3;
90509
90822
  const jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0;
90510
90823
  const jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName(
90511
90824
  node,
90512
90825
  jsxFragmentFactoryName,
90513
- compilerOptions.jsx === 1 ? 111551 & ~384 : 111551,
90826
+ shouldModuleRefErr ? 111551 : 111551 & -385,
90514
90827
  /*nameNotFoundMessage*/
90515
90828
  jsxFactoryRefErr,
90516
90829
  /*isUse*/
@@ -90657,7 +90970,7 @@ ${lanes.join("\n")}
90657
90970
  resolutionStart = resolutionTargets.length;
90658
90971
  }
90659
90972
  links.resolvedSignature = resolvingSignature;
90660
- let result = resolveSignature(
90973
+ const result = resolveSignature(
90661
90974
  node,
90662
90975
  candidatesOutArray,
90663
90976
  checkMode || 0
@@ -90665,9 +90978,6 @@ ${lanes.join("\n")}
90665
90978
  );
90666
90979
  resolutionStart = saveResolutionStart;
90667
90980
  if (result !== resolvingSignature) {
90668
- if (links.resolvedSignature !== resolvingSignature) {
90669
- result = links.resolvedSignature;
90670
- }
90671
90981
  links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached;
90672
90982
  }
90673
90983
  return result;
@@ -91274,12 +91584,12 @@ ${lanes.join("\n")}
91274
91584
  }
91275
91585
  }
91276
91586
  function checkImportMetaProperty(node) {
91277
- if (moduleKind === 100 || moduleKind === 199) {
91587
+ if (100 <= moduleKind && moduleKind <= 199) {
91278
91588
  if (getSourceFileOfNode(node).impliedNodeFormat !== 99) {
91279
91589
  error2(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output);
91280
91590
  }
91281
91591
  } else if (moduleKind < 6 && moduleKind !== 4) {
91282
- error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);
91592
+ error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext);
91283
91593
  }
91284
91594
  const file = getSourceFileOfNode(node);
91285
91595
  Debug.assert(!!(file.flags & 8388608), "Containing file is missing import meta node flag.");
@@ -91949,7 +92259,7 @@ ${lanes.join("\n")}
91949
92259
  if (func.body.kind !== 241) {
91950
92260
  returnType = checkExpressionCached(
91951
92261
  func.body,
91952
- checkMode && checkMode & ~8
92262
+ checkMode && checkMode & -9
91953
92263
  /* SkipGenericFunctions */
91954
92264
  );
91955
92265
  if (isAsync) {
@@ -92154,7 +92464,7 @@ ${lanes.join("\n")}
92154
92464
  }
92155
92465
  return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts);
92156
92466
  }
92157
- const type = checkExpressionCached(node.expression);
92467
+ const type = getBaseConstraintOrType(checkExpressionCached(node.expression));
92158
92468
  if (!isLiteralType(type)) {
92159
92469
  return false;
92160
92470
  }
@@ -92193,7 +92503,7 @@ ${lanes.join("\n")}
92193
92503
  }
92194
92504
  let type = checkExpressionCached(
92195
92505
  expr,
92196
- checkMode && checkMode & ~8
92506
+ checkMode && checkMode & -9
92197
92507
  /* SkipGenericFunctions */
92198
92508
  );
92199
92509
  if (functionFlags & 2) {
@@ -92430,19 +92740,7 @@ ${lanes.join("\n")}
92430
92740
  const exprType = checkExpression(node.body);
92431
92741
  const returnOrPromisedType = returnType && unwrapReturnType(returnType, functionFlags);
92432
92742
  if (returnOrPromisedType) {
92433
- const effectiveCheckNode = getEffectiveCheckNode(node.body);
92434
- if ((functionFlags & 3) === 2) {
92435
- const awaitedType = checkAwaitedType(
92436
- exprType,
92437
- /*withAlias*/
92438
- false,
92439
- effectiveCheckNode,
92440
- Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
92441
- );
92442
- checkTypeAssignableToAndOptionallyElaborate(awaitedType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode);
92443
- } else {
92444
- checkTypeAssignableToAndOptionallyElaborate(exprType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode);
92445
- }
92743
+ checkReturnExpression(node, returnOrPromisedType, node.body, node.body, exprType);
92446
92744
  }
92447
92745
  }
92448
92746
  }
@@ -92496,7 +92794,7 @@ ${lanes.join("\n")}
92496
92794
  }
92497
92795
  if (isReadonlySymbol(symbol)) {
92498
92796
  if (symbol.flags & 4 && isAccessExpression(expr) && expr.expression.kind === 110) {
92499
- const ctor = getContainingFunction(expr);
92797
+ const ctor = getControlFlowContainer(expr);
92500
92798
  if (!(ctor && (ctor.kind === 176 || isJSConstructor(ctor)))) {
92501
92799
  return true;
92502
92800
  }
@@ -92527,7 +92825,7 @@ ${lanes.join("\n")}
92527
92825
  function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) {
92528
92826
  const node = skipOuterExpressions(
92529
92827
  expr,
92530
- 6 | 1
92828
+ 38 | 1
92531
92829
  /* Parentheses */
92532
92830
  );
92533
92831
  if (node.kind !== 80 && !isAccessExpression(node)) {
@@ -92600,6 +92898,7 @@ ${lanes.join("\n")}
92600
92898
  }
92601
92899
  switch (moduleKind) {
92602
92900
  case 100:
92901
+ case 101:
92603
92902
  case 199:
92604
92903
  if (sourceFile.impliedNodeFormat === 1) {
92605
92904
  span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos));
@@ -92620,7 +92919,7 @@ ${lanes.join("\n")}
92620
92919
  // fallthrough
92621
92920
  default:
92622
92921
  span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos));
92623
- const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;
92922
+ const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;
92624
92923
  diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message));
92625
92924
  hasError = true;
92626
92925
  break;
@@ -93260,7 +93559,7 @@ ${lanes.join("\n")}
93260
93559
  }
93261
93560
  const leftTarget = skipOuterExpressions(
93262
93561
  left,
93263
- 31
93562
+ 63
93264
93563
  /* All */
93265
93564
  );
93266
93565
  const nullishSemantics = getSyntacticNullishnessSemantics(leftTarget);
@@ -93282,7 +93581,9 @@ ${lanes.join("\n")}
93282
93581
  switch (node.kind) {
93283
93582
  case 223:
93284
93583
  case 213:
93584
+ case 215:
93285
93585
  case 212:
93586
+ case 236:
93286
93587
  case 214:
93287
93588
  case 211:
93288
93589
  case 229:
@@ -93298,6 +93599,8 @@ ${lanes.join("\n")}
93298
93599
  case 56:
93299
93600
  case 77:
93300
93601
  return 3;
93602
+ case 28:
93603
+ return getSyntacticNullishnessSemantics(node.right);
93301
93604
  }
93302
93605
  return 2;
93303
93606
  case 227:
@@ -94655,6 +94958,9 @@ ${lanes.join("\n")}
94655
94958
  31
94656
94959
  /* ParameterPropertyModifier */
94657
94960
  )) {
94961
+ if (compilerOptions.erasableSyntaxOnly) {
94962
+ error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
94963
+ }
94658
94964
  if (!(func.kind === 176 && nodeIsPresent(func.body))) {
94659
94965
  error2(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation);
94660
94966
  }
@@ -94909,7 +95215,7 @@ ${lanes.join("\n")}
94909
95215
  if (prevIsMethod !== isMethod) {
94910
95216
  error2(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location));
94911
95217
  }
94912
- } else if (prev & meaning & ~16) {
95218
+ } else if (prev & meaning & -17) {
94913
95219
  error2(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location));
94914
95220
  } else {
94915
95221
  names.set(name, prev | meaning);
@@ -98154,7 +98460,6 @@ ${lanes.join("\n")}
98154
98460
  }
98155
98461
  const signature = getSignatureFromDeclaration(container);
98156
98462
  const returnType = getReturnTypeOfSignature(signature);
98157
- const functionFlags = getFunctionFlags(container);
98158
98463
  if (strictNullChecks || node.expression || returnType.flags & 131072) {
98159
98464
  const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType;
98160
98465
  if (container.kind === 178) {
@@ -98162,26 +98467,57 @@ ${lanes.join("\n")}
98162
98467
  error2(node, Diagnostics.Setters_cannot_return_a_value);
98163
98468
  }
98164
98469
  } else if (container.kind === 176) {
98165
- if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) {
98470
+ const exprType2 = node.expression ? checkExpressionCached(node.expression) : undefinedType;
98471
+ if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType2, returnType, node, node.expression)) {
98166
98472
  error2(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);
98167
98473
  }
98168
98474
  } else if (getReturnTypeFromAnnotation(container)) {
98169
- const unwrappedReturnType = unwrapReturnType(returnType, functionFlags) ?? returnType;
98170
- const unwrappedExprType = functionFlags & 2 ? checkAwaitedType(
98171
- exprType,
98172
- /*withAlias*/
98173
- false,
98174
- node,
98175
- Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
98176
- ) : exprType;
98177
- if (unwrappedReturnType) {
98178
- checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression);
98179
- }
98475
+ const unwrappedReturnType = unwrapReturnType(returnType, getFunctionFlags(container)) ?? returnType;
98476
+ checkReturnExpression(container, unwrappedReturnType, node, node.expression, exprType);
98180
98477
  }
98181
98478
  } else if (container.kind !== 176 && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) {
98182
98479
  error2(node, Diagnostics.Not_all_code_paths_return_a_value);
98183
98480
  }
98184
98481
  }
98482
+ function checkReturnExpression(container, unwrappedReturnType, node, expr, exprType, inConditionalExpression = false) {
98483
+ const excludeJSDocTypeAssertions = isInJSFile(node);
98484
+ const functionFlags = getFunctionFlags(container);
98485
+ if (expr) {
98486
+ const unwrappedExpr = skipParentheses(expr, excludeJSDocTypeAssertions);
98487
+ if (isConditionalExpression(unwrappedExpr)) {
98488
+ checkReturnExpression(
98489
+ container,
98490
+ unwrappedReturnType,
98491
+ node,
98492
+ unwrappedExpr.whenTrue,
98493
+ checkExpression(unwrappedExpr.whenTrue),
98494
+ /*inConditionalExpression*/
98495
+ true
98496
+ );
98497
+ checkReturnExpression(
98498
+ container,
98499
+ unwrappedReturnType,
98500
+ node,
98501
+ unwrappedExpr.whenFalse,
98502
+ checkExpression(unwrappedExpr.whenFalse),
98503
+ /*inConditionalExpression*/
98504
+ true
98505
+ );
98506
+ return;
98507
+ }
98508
+ }
98509
+ const inReturnStatement = node.kind === 253;
98510
+ const unwrappedExprType = functionFlags & 2 ? checkAwaitedType(
98511
+ exprType,
98512
+ /*withAlias*/
98513
+ false,
98514
+ node,
98515
+ Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
98516
+ ) : exprType;
98517
+ const effectiveExpr = expr && getEffectiveCheckNode(expr);
98518
+ const errorNode = inReturnStatement && !inConditionalExpression ? node : effectiveExpr;
98519
+ checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, errorNode, effectiveExpr);
98520
+ }
98185
98521
  function checkWithStatement(node) {
98186
98522
  if (!checkGrammarStatementInAmbientContext(node)) {
98187
98523
  if (node.flags & 65536) {
@@ -98313,7 +98649,7 @@ ${lanes.join("\n")}
98313
98649
  const typeDeclaration = symbol.valueDeclaration;
98314
98650
  if (typeDeclaration && isClassLike(typeDeclaration)) {
98315
98651
  for (const member of typeDeclaration.members) {
98316
- if (!isStatic(member) && !hasBindableName(member)) {
98652
+ if ((!isStaticIndex && !isStatic(member) || isStaticIndex && isStatic(member)) && !hasBindableName(member)) {
98317
98653
  const symbol2 = getSymbolOfDeclaration(member);
98318
98654
  checkIndexConstraintForProperty(type, symbol2, getTypeOfExpression(member.name.expression), getNonMissingTypeOfSymbol(symbol2));
98319
98655
  }
@@ -98799,6 +99135,13 @@ ${lanes.join("\n")}
98799
99135
  function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, member, errorNode) {
98800
99136
  const isJs = isInJSFile(node);
98801
99137
  const nodeInAmbientContext = !!(node.flags & 33554432);
99138
+ if (memberHasOverrideModifier && (member == null ? void 0 : member.valueDeclaration) && isClassElement(member.valueDeclaration) && member.valueDeclaration.name && isNonBindableDynamicName(member.valueDeclaration.name)) {
99139
+ error2(
99140
+ errorNode,
99141
+ isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic
99142
+ );
99143
+ return 2;
99144
+ }
98802
99145
  if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) {
98803
99146
  const thisType = memberIsStatic ? staticType : typeWithThis;
98804
99147
  const baseType = memberIsStatic ? baseStaticType : baseWithThis;
@@ -99415,6 +99758,9 @@ ${lanes.join("\n")}
99415
99758
  checkCollisionsForDeclarationName(node, node.name);
99416
99759
  checkExportsOnMergedDeclarations(node);
99417
99760
  node.members.forEach(checkEnumMember);
99761
+ if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432)) {
99762
+ error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
99763
+ }
99418
99764
  computeEnumMemberValues(node);
99419
99765
  const enumSymbol = getSymbolOfDeclaration(node);
99420
99766
  const firstDeclaration = getDeclarationOfKind(enumSymbol, node.kind);
@@ -99516,6 +99862,9 @@ ${lanes.join("\n")}
99516
99862
  checkExportsOnMergedDeclarations(node);
99517
99863
  const symbol = getSymbolOfDeclaration(node);
99518
99864
  if (symbol.flags & 512 && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) {
99865
+ if (compilerOptions.erasableSyntaxOnly) {
99866
+ error2(node.name, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
99867
+ }
99519
99868
  if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) {
99520
99869
  error2(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName);
99521
99870
  }
@@ -99854,10 +100203,20 @@ ${lanes.join("\n")}
99854
100203
  if (validForTypeAttributes && override) {
99855
100204
  return;
99856
100205
  }
99857
- const mode = moduleKind === 199 && declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier);
99858
- if (mode !== 99 && moduleKind !== 99 && moduleKind !== 200) {
99859
- const message = isImportAttributes2 ? moduleKind === 199 ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve : moduleKind === 199 ? Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;
99860
- return grammarErrorOnNode(node, message);
100206
+ if (!moduleSupportsImportAttributes(moduleKind)) {
100207
+ return grammarErrorOnNode(
100208
+ node,
100209
+ isImportAttributes2 ? Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve
100210
+ );
100211
+ }
100212
+ if (moduleKind === 199 && !isImportAttributes2) {
100213
+ return grammarErrorOnFirstToken(node, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
100214
+ }
100215
+ if (declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier) === 1) {
100216
+ return grammarErrorOnNode(
100217
+ node,
100218
+ isImportAttributes2 ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls
100219
+ );
99861
100220
  }
99862
100221
  const isTypeOnly = isJSDocImportTag(declaration) || (isImportDeclaration(declaration) ? (_a = declaration.importClause) == null ? void 0 : _a.isTypeOnly : declaration.isTypeOnly);
99863
100222
  if (isTypeOnly) {
@@ -99902,7 +100261,7 @@ ${lanes.join("\n")}
99902
100261
  }
99903
100262
  }
99904
100263
  }
99905
- if (isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
100264
+ if (!importClause.isTypeOnly && 101 <= moduleKind && moduleKind <= 199 && isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
99906
100265
  error2(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]);
99907
100266
  }
99908
100267
  } else if (noUncheckedSideEffectImports && !importClause) {
@@ -99922,6 +100281,9 @@ ${lanes.join("\n")}
99922
100281
  return;
99923
100282
  }
99924
100283
  checkGrammarModifiers(node);
100284
+ if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432)) {
100285
+ error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
100286
+ }
99925
100287
  if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
99926
100288
  checkImportBinding(node);
99927
100289
  markLinkedReferences(
@@ -100066,6 +100428,9 @@ ${lanes.join("\n")}
100066
100428
  if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
100067
100429
  return;
100068
100430
  }
100431
+ if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432)) {
100432
+ error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
100433
+ }
100069
100434
  const container = node.parent.kind === 307 ? node.parent : node.parent.parent;
100070
100435
  if (container.kind === 267 && !isAmbientModule(container)) {
100071
100436
  if (node.isExportEquals) {
@@ -101109,7 +101474,7 @@ ${lanes.join("\n")}
101109
101474
  name,
101110
101475
  meaning,
101111
101476
  /*ignoreErrors*/
101112
- false,
101477
+ true,
101113
101478
  /*dontResolveAlias*/
101114
101479
  true
101115
101480
  );
@@ -101119,8 +101484,9 @@ ${lanes.join("\n")}
101119
101484
  return resolveEntityName(
101120
101485
  name,
101121
101486
  /*meaning*/
101122
- 1
101123
- /* FunctionScopedVariable */
101487
+ 1,
101488
+ /*ignoreErrors*/
101489
+ true
101124
101490
  );
101125
101491
  }
101126
101492
  return void 0;
@@ -101311,8 +101677,9 @@ ${lanes.join("\n")}
101311
101677
  if (location && location.kind === 304) {
101312
101678
  return resolveEntityName(
101313
101679
  location.name,
101314
- 111551 | 2097152
101315
- /* Alias */
101680
+ 111551 | 2097152,
101681
+ /*ignoreErrors*/
101682
+ true
101316
101683
  );
101317
101684
  }
101318
101685
  return void 0;
@@ -101324,15 +101691,17 @@ ${lanes.join("\n")}
101324
101691
  // Skip for invalid syntax like this: export { "x" }
101325
101692
  resolveEntityName(
101326
101693
  name,
101327
- 111551 | 788968 | 1920 | 2097152
101328
- /* Alias */
101694
+ 111551 | 788968 | 1920 | 2097152,
101695
+ /*ignoreErrors*/
101696
+ true
101329
101697
  )
101330
101698
  );
101331
101699
  } else {
101332
101700
  return resolveEntityName(
101333
101701
  node,
101334
- 111551 | 788968 | 1920 | 2097152
101335
- /* Alias */
101702
+ 111551 | 788968 | 1920 | 2097152,
101703
+ /*ignoreErrors*/
101704
+ true
101336
101705
  );
101337
101706
  }
101338
101707
  }
@@ -102368,6 +102737,45 @@ ${lanes.join("\n")}
102368
102737
  result || (result = []);
102369
102738
  for (const info of infoList) {
102370
102739
  if (info.declaration) continue;
102740
+ if (info === anyBaseTypeIndexInfo) continue;
102741
+ if (info.components) {
102742
+ const allComponentComputedNamesSerializable = every(info.components, (e) => {
102743
+ var _a;
102744
+ return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && enclosing && ((_a = isEntityNameVisible(
102745
+ e.name.expression,
102746
+ enclosing,
102747
+ /*shouldComputeAliasToMakeVisible*/
102748
+ false
102749
+ )) == null ? void 0 : _a.accessibility) === 0);
102750
+ });
102751
+ if (allComponentComputedNamesSerializable) {
102752
+ const newComponents = filter(info.components, (e) => {
102753
+ return !hasLateBindableName(e);
102754
+ });
102755
+ result.push(...map(newComponents, (e) => {
102756
+ trackComputedName(e.name.expression);
102757
+ const mods = infoList === staticInfos ? [factory.createModifier(
102758
+ 126
102759
+ /* StaticKeyword */
102760
+ )] : void 0;
102761
+ return factory.createPropertyDeclaration(
102762
+ append(mods, info.isReadonly ? factory.createModifier(
102763
+ 148
102764
+ /* ReadonlyKeyword */
102765
+ ) : void 0),
102766
+ e.name,
102767
+ (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(
102768
+ 58
102769
+ /* QuestionToken */
102770
+ ) : void 0,
102771
+ nodeBuilder.typeToTypeNode(getTypeOfSymbol(e.symbol), enclosing, flags, internalFlags, tracker),
102772
+ /*initializer*/
102773
+ void 0
102774
+ );
102775
+ }));
102776
+ continue;
102777
+ }
102778
+ }
102371
102779
  const node = nodeBuilder.indexInfoToIndexSignatureDeclaration(info, enclosing, flags, internalFlags, tracker);
102372
102780
  if (node && infoList === staticInfos) {
102373
102781
  (node.modifiers || (node.modifiers = factory.createNodeArray())).unshift(factory.createModifier(
@@ -102381,6 +102789,27 @@ ${lanes.join("\n")}
102381
102789
  }
102382
102790
  }
102383
102791
  return result;
102792
+ function trackComputedName(accessExpression) {
102793
+ if (!tracker.trackSymbol) return;
102794
+ const firstIdentifier = getFirstIdentifier(accessExpression);
102795
+ const name = resolveName(
102796
+ firstIdentifier,
102797
+ firstIdentifier.escapedText,
102798
+ 111551 | 1048576,
102799
+ /*nameNotFoundMessage*/
102800
+ void 0,
102801
+ /*isUse*/
102802
+ true
102803
+ );
102804
+ if (name) {
102805
+ tracker.trackSymbol(
102806
+ name,
102807
+ enclosing,
102808
+ 111551
102809
+ /* Value */
102810
+ );
102811
+ }
102812
+ }
102384
102813
  }
102385
102814
  };
102386
102815
  function isImportRequiredByAugmentation(node) {
@@ -102734,7 +103163,7 @@ ${lanes.join("\n")}
102734
103163
  return grammarErrorOnFirstToken(node, Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name);
102735
103164
  }
102736
103165
  }
102737
- if (flags & ~(2080 | 32768)) {
103166
+ if (flags & -34849) {
102738
103167
  return grammarErrorOnNode(modifier, Diagnostics.Decorators_are_not_valid_here);
102739
103168
  }
102740
103169
  if (hasLeadingDecorators && flags & 98303) {
@@ -103505,6 +103934,7 @@ ${lanes.join("\n")}
103505
103934
  }
103506
103935
  switch (moduleKind) {
103507
103936
  case 100:
103937
+ case 101:
103508
103938
  case 199:
103509
103939
  if (sourceFile.impliedNodeFormat === 1) {
103510
103940
  diagnostics.add(
@@ -103523,7 +103953,7 @@ ${lanes.join("\n")}
103523
103953
  // fallthrough
103524
103954
  default:
103525
103955
  diagnostics.add(
103526
- createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher)
103956
+ createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher)
103527
103957
  );
103528
103958
  break;
103529
103959
  }
@@ -103685,7 +104115,7 @@ ${lanes.join("\n")}
103685
104115
  }
103686
104116
  }
103687
104117
  function checkGrammarForInvalidDynamicName(node, message) {
103688
- if (isNonBindableDynamicName(node)) {
104118
+ if (isNonBindableDynamicName(node) && !isEntityNameExpression(isElementAccessExpression(node) ? skipParentheses(node.argumentExpression) : node.expression)) {
103689
104119
  return grammarErrorOnNode(node, message);
103690
104120
  }
103691
104121
  }
@@ -104151,17 +104581,17 @@ ${lanes.join("\n")}
104151
104581
  return grammarErrorOnNode(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);
104152
104582
  }
104153
104583
  if (moduleKind === 5) {
104154
- return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);
104584
+ return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext);
104155
104585
  }
104156
104586
  if (node.typeArguments) {
104157
104587
  return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
104158
104588
  }
104159
104589
  const nodeArguments = node.arguments;
104160
- if (moduleKind !== 99 && moduleKind !== 199 && moduleKind !== 100 && moduleKind !== 200) {
104590
+ if (!(100 <= moduleKind && moduleKind <= 199) && moduleKind !== 99 && moduleKind !== 200) {
104161
104591
  checkGrammarForDisallowedTrailingComma(nodeArguments);
104162
104592
  if (nodeArguments.length > 1) {
104163
104593
  const importAttributesArgument = nodeArguments[1];
104164
- return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve);
104594
+ return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve);
104165
104595
  }
104166
104596
  }
104167
104597
  if (nodeArguments.length === 0 || nodeArguments.length > 2) {
@@ -109118,7 +109548,7 @@ ${lanes.join("\n")}
109118
109548
  return updated;
109119
109549
  }
109120
109550
  function visitParenthesizedExpression(node) {
109121
- const innerExpression = skipOuterExpressions(node.expression, ~(6 | 16));
109551
+ const innerExpression = skipOuterExpressions(node.expression, -55);
109122
109552
  if (isAssertionExpression(innerExpression) || isSatisfiesExpression(innerExpression)) {
109123
109553
  const expression = visitNode(node.expression, visitor, isExpression);
109124
109554
  Debug.assert(expression);
@@ -111203,7 +111633,7 @@ ${lanes.join("\n")}
111203
111633
  if (isClassWithConstructorReference) {
111204
111634
  enableSubstitutionForClassAliases();
111205
111635
  const alias = factory2.cloneNode(temp);
111206
- alias.emitNode.autoGenerate.flags &= ~8;
111636
+ alias.emitNode.autoGenerate.flags &= -9;
111207
111637
  classAliases[getOriginalNodeId(node)] = alias;
111208
111638
  }
111209
111639
  expressions.push(factory2.createAssignment(temp, classExpression));
@@ -118379,7 +118809,7 @@ ${lanes.join("\n")}
118379
118809
  let target;
118380
118810
  if (isIdentifier(node.name)) {
118381
118811
  target = factory2.cloneNode(node.name);
118382
- setEmitFlags(target, getEmitFlags(target) & ~(32768 | 16384 | 65536));
118812
+ setEmitFlags(target, getEmitFlags(target) & -114689);
118383
118813
  } else {
118384
118814
  target = factory2.converters.convertToAssignmentPattern(node.name);
118385
118815
  }
@@ -122379,7 +122809,7 @@ ${lanes.join("\n")}
122379
122809
  }
122380
122810
  function generateCallToConvertedLoop(loopFunctionExpressionName, state, outerState, containsYield) {
122381
122811
  const statements = [];
122382
- const isSimpleLoop = !(state.nonLocalJumps & ~4) && !state.labeledNonLocalBreaks && !state.labeledNonLocalContinues;
122812
+ const isSimpleLoop = !(state.nonLocalJumps & -5) && !state.labeledNonLocalBreaks && !state.labeledNonLocalContinues;
122383
122813
  const call = factory2.createCallExpression(
122384
122814
  loopFunctionExpressionName,
122385
122815
  /*typeArguments*/
@@ -128789,7 +129219,7 @@ ${lanes.join("\n")}
128789
129219
  if (node === (importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim[0])) {
128790
129220
  return visitImportOrRequireCall(importsAndRequiresToRewriteOrShim.shift());
128791
129221
  }
128792
- break;
129222
+ // fallthrough
128793
129223
  default:
128794
129224
  if ((importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim.length) && rangeContainsRange(node, importsAndRequiresToRewriteOrShim[0])) {
128795
129225
  return visitEachChild(node, visitor, context);
@@ -129640,11 +130070,7 @@ ${lanes.join("\n")}
129640
130070
  if (isSetAccessor(node.parent)) {
129641
130071
  return createAccessorTypeError(node.parent);
129642
130072
  }
129643
- const addUndefined = resolver.requiresAddingImplicitUndefined(
129644
- node,
129645
- /*enclosingDeclaration*/
129646
- void 0
129647
- );
130073
+ const addUndefined = resolver.requiresAddingImplicitUndefined(node, node.parent);
129648
130074
  if (!addUndefined && node.initializer) {
129649
130075
  return createExpressionError(node.initializer);
129650
130076
  }
@@ -130994,7 +131420,7 @@ ${lanes.join("\n")}
130994
131420
  return [clean2, namespaceDecl];
130995
131421
  }
130996
131422
  const modifiers = factory2.createModifiersFromModifierFlags(
130997
- getEffectiveModifierFlags(clean2) & ~2080 | 128
131423
+ getEffectiveModifierFlags(clean2) & -2081 | 128
130998
131424
  /* Ambient */
130999
131425
  );
131000
131426
  const cleanDeclaration = factory2.updateFunctionDeclaration(
@@ -131441,6 +131867,7 @@ ${lanes.join("\n")}
131441
131867
  case 6:
131442
131868
  case 5:
131443
131869
  case 100:
131870
+ case 101:
131444
131871
  case 199:
131445
131872
  case 1:
131446
131873
  return transformImpliedNodeFormatDependentModule;
@@ -135234,7 +135661,7 @@ ${lanes.join("\n")}
135234
135661
  if (emitAsSingleStatement) {
135235
135662
  writeToken(59, colonPos, writePunctuation, parentNode);
135236
135663
  writeSpace();
135237
- format &= ~(1 | 128);
135664
+ format &= -130;
135238
135665
  } else {
135239
135666
  emitTokenWithComment(59, colonPos, writePunctuation, parentNode);
135240
135667
  }
@@ -135783,7 +136210,7 @@ ${lanes.join("\n")}
135783
136210
  emitList(
135784
136211
  parentNode,
135785
136212
  parameters,
135786
- 2576 & ~2048
136213
+ 2576 & -2049
135787
136214
  /* Parenthesis */
135788
136215
  );
135789
136216
  } else {
@@ -138304,45 +138731,6 @@ ${lanes.join("\n")}
138304
138731
  }
138305
138732
  return resolutions;
138306
138733
  }
138307
- function forEachResolvedProjectReference(resolvedProjectReferences, cb) {
138308
- return forEachProjectReference(
138309
- /*projectReferences*/
138310
- void 0,
138311
- resolvedProjectReferences,
138312
- (resolvedRef, parent2) => resolvedRef && cb(resolvedRef, parent2)
138313
- );
138314
- }
138315
- function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {
138316
- let seenResolvedRefs;
138317
- return worker2(
138318
- projectReferences,
138319
- resolvedProjectReferences,
138320
- /*parent*/
138321
- void 0
138322
- );
138323
- function worker2(projectReferences2, resolvedProjectReferences2, parent2) {
138324
- if (cbRef) {
138325
- const result = cbRef(projectReferences2, parent2);
138326
- if (result) return result;
138327
- }
138328
- let skipChildren;
138329
- return forEach(
138330
- resolvedProjectReferences2,
138331
- (resolvedRef, index) => {
138332
- if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) {
138333
- (skipChildren ?? (skipChildren = /* @__PURE__ */ new Set())).add(resolvedRef);
138334
- return void 0;
138335
- }
138336
- const result = cbResolvedRef(resolvedRef, parent2, index);
138337
- if (result || !resolvedRef) return result;
138338
- (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
138339
- }
138340
- ) || forEach(
138341
- resolvedProjectReferences2,
138342
- (resolvedRef) => resolvedRef && !(skipChildren == null ? void 0 : skipChildren.has(resolvedRef)) ? worker2(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef) : void 0
138343
- );
138344
- }
138345
- }
138346
138734
  var inferredTypesContainingFile = "__inferred type names__.ts";
138347
138735
  function getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName) {
138348
138736
  const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory;
@@ -138358,13 +138746,6 @@ ${lanes.join("\n")}
138358
138746
  }
138359
138747
  return "@typescript/lib-" + path;
138360
138748
  }
138361
- function getLibNameFromLibReference(libReference) {
138362
- return toFileNameLowerCase(libReference.fileName);
138363
- }
138364
- function getLibFileNameFromLibReference(libReference) {
138365
- const libName = getLibNameFromLibReference(libReference);
138366
- return libMap.get(libName);
138367
- }
138368
138749
  function isReferencedFile(reason) {
138369
138750
  switch (reason == null ? void 0 : reason.kind) {
138370
138751
  case 3:
@@ -138599,11 +138980,13 @@ ${lanes.join("\n")}
138599
138980
  typeScriptVersion: typeScriptVersion3
138600
138981
  };
138601
138982
  }
138602
- function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {
138983
+ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {
138603
138984
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
138604
- const createProgramOptions = isArray2(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions;
138605
- const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion3 } = createProgramOptions;
138606
- let { oldProgram } = createProgramOptions;
138985
+ let _createProgramOptions = isArray2(_rootNamesOrOptions) ? createCreateProgramOptions(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : _rootNamesOrOptions;
138986
+ const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion3, host: createProgramOptionsHost } = _createProgramOptions;
138987
+ let { oldProgram } = _createProgramOptions;
138988
+ _createProgramOptions = void 0;
138989
+ _rootNamesOrOptions = void 0;
138607
138990
  for (const option of commandLineOptionOfCustomType) {
138608
138991
  if (hasProperty(options, option.name)) {
138609
138992
  if (typeof options[option.name] === "string") {
@@ -138616,16 +138999,12 @@ ${lanes.join("\n")}
138616
138999
  let processingOtherFiles;
138617
139000
  let files;
138618
139001
  let symlinks;
138619
- let commonSourceDirectory;
138620
139002
  let typeChecker;
138621
139003
  let classifiableNames;
138622
- let fileReasons = createMultiMap();
138623
139004
  let filesWithReferencesProcessed;
138624
- let fileReasonsToChain;
138625
- let reasonToRelatedInfo;
138626
139005
  let cachedBindAndCheckDiagnosticsForFile;
138627
139006
  let cachedDeclarationDiagnosticsForFile;
138628
- let fileProcessingDiagnostics;
139007
+ const programDiagnostics = createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax);
138629
139008
  let automaticTypeDirectiveNames;
138630
139009
  let automaticTypeDirectiveResolutions;
138631
139010
  let resolvedLibReferences;
@@ -138647,13 +139026,12 @@ ${lanes.join("\n")}
138647
139026
  true
138648
139027
  );
138649
139028
  mark("beforeProgram");
138650
- const host = createProgramOptions.host || createCompilerHost(options);
139029
+ const host = createProgramOptionsHost || createCompilerHost(options);
138651
139030
  const configParsingHost = parseConfigHostFromCompilerHostLike(host);
138652
139031
  let skipDefaultLib = options.noLib;
138653
139032
  const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
138654
139033
  const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
138655
- const programDiagnostics = createDiagnosticCollection();
138656
- let lazyProgramDiagnosticExplainingFile = [];
139034
+ let skipVerifyCompilerOptions = false;
138657
139035
  const currentDirectory = host.getCurrentDirectory();
138658
139036
  const supportedExtensions = getSupportedExtensions(options);
138659
139037
  const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
@@ -138938,7 +139316,7 @@ ${lanes.join("\n")}
138938
139316
  getTypeCount: () => getTypeChecker().getTypeCount(),
138939
139317
  getInstantiationCount: () => getTypeChecker().getInstantiationCount(),
138940
139318
  getRelationCacheSizes: () => getTypeChecker().getRelationCacheSizes(),
138941
- getFileProcessingDiagnostics: () => fileProcessingDiagnostics,
139319
+ getFileProcessingDiagnostics: () => programDiagnostics.getFileProcessingDiagnostics(),
138942
139320
  getAutomaticTypeDirectiveNames: () => automaticTypeDirectiveNames,
138943
139321
  getAutomaticTypeDirectiveResolutions: () => automaticTypeDirectiveResolutions,
138944
139322
  isSourceFileFromExternalLibrary,
@@ -138954,6 +139332,7 @@ ${lanes.join("\n")}
138954
139332
  resolvedModules,
138955
139333
  resolvedTypeReferenceDirectiveNames,
138956
139334
  resolvedLibReferences,
139335
+ getProgramDiagnosticsContainer: () => programDiagnostics,
138957
139336
  getResolvedModule,
138958
139337
  getResolvedModuleFromModuleSpecifier,
138959
139338
  getResolvedTypeReferenceDirective,
@@ -138986,70 +139365,19 @@ ${lanes.join("\n")}
138986
139365
  realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host),
138987
139366
  useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),
138988
139367
  getCanonicalFileName,
138989
- getFileIncludeReasons: () => fileReasons,
139368
+ getFileIncludeReasons: () => programDiagnostics.getFileReasons(),
138990
139369
  structureIsReused,
138991
139370
  writeFile: writeFile2,
138992
139371
  getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
138993
139372
  };
138994
139373
  onProgramCreateComplete();
138995
- verifyCompilerOptions();
139374
+ if (!skipVerifyCompilerOptions) {
139375
+ verifyCompilerOptions();
139376
+ }
138996
139377
  mark("afterProgram");
138997
139378
  measure("Program", "beforeProgram", "afterProgram");
138998
139379
  (_p = tracing) == null ? void 0 : _p.pop();
138999
139380
  return program;
139000
- function updateAndGetProgramDiagnostics() {
139001
- if (lazyProgramDiagnosticExplainingFile) {
139002
- fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
139003
- switch (diagnostic.kind) {
139004
- case 1:
139005
- return programDiagnostics.add(
139006
- createDiagnosticExplainingFile(
139007
- diagnostic.file && getSourceFileByPath(diagnostic.file),
139008
- diagnostic.fileProcessingReason,
139009
- diagnostic.diagnostic,
139010
- diagnostic.args || emptyArray
139011
- )
139012
- );
139013
- case 0:
139014
- return programDiagnostics.add(filePreprocessingLibreferenceDiagnostic(diagnostic));
139015
- case 2:
139016
- return diagnostic.diagnostics.forEach((d) => programDiagnostics.add(d));
139017
- default:
139018
- Debug.assertNever(diagnostic);
139019
- }
139020
- });
139021
- lazyProgramDiagnosticExplainingFile.forEach(
139022
- ({ file, diagnostic, args }) => programDiagnostics.add(
139023
- createDiagnosticExplainingFile(
139024
- file,
139025
- /*fileProcessingReason*/
139026
- void 0,
139027
- diagnostic,
139028
- args
139029
- )
139030
- )
139031
- );
139032
- lazyProgramDiagnosticExplainingFile = void 0;
139033
- fileReasonsToChain = void 0;
139034
- reasonToRelatedInfo = void 0;
139035
- }
139036
- return programDiagnostics;
139037
- }
139038
- function filePreprocessingLibreferenceDiagnostic({ reason }) {
139039
- const { file, pos, end } = getReferencedFileLocation(program, reason);
139040
- const libReference = file.libReferenceDirectives[reason.index];
139041
- const libName = getLibNameFromLibReference(libReference);
139042
- const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts");
139043
- const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity);
139044
- return createFileDiagnostic(
139045
- file,
139046
- Debug.checkDefined(pos),
139047
- Debug.checkDefined(end) - pos,
139048
- suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0,
139049
- libName,
139050
- suggestion
139051
- );
139052
- }
139053
139381
  function getResolvedModule(file, moduleName, mode) {
139054
139382
  var _a2;
139055
139383
  return (_a2 = resolvedModules == null ? void 0 : resolvedModules.get(file.path)) == null ? void 0 : _a2.get(moduleName, mode);
@@ -139098,7 +139426,7 @@ ${lanes.join("\n")}
139098
139426
  function addResolutionDiagnostics(resolution) {
139099
139427
  var _a2;
139100
139428
  if (!((_a2 = resolution.resolutionDiagnostics) == null ? void 0 : _a2.length)) return;
139101
- (fileProcessingDiagnostics ?? (fileProcessingDiagnostics = [])).push({
139429
+ programDiagnostics.addFileProcessingDiagnostic({
139102
139430
  kind: 2,
139103
139431
  diagnostics: resolution.resolutionDiagnostics
139104
139432
  });
@@ -139192,16 +139520,19 @@ ${lanes.join("\n")}
139192
139520
  return toPath(fileName, currentDirectory, getCanonicalFileName);
139193
139521
  }
139194
139522
  function getCommonSourceDirectory2() {
139195
- if (commonSourceDirectory === void 0) {
139196
- const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program));
139197
- commonSourceDirectory = getCommonSourceDirectory(
139198
- options,
139199
- () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName),
139200
- currentDirectory,
139201
- getCanonicalFileName,
139202
- (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2)
139203
- );
139523
+ let commonSourceDirectory = programDiagnostics.getCommonSourceDirectory();
139524
+ if (commonSourceDirectory !== void 0) {
139525
+ return commonSourceDirectory;
139204
139526
  }
139527
+ const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program));
139528
+ commonSourceDirectory = getCommonSourceDirectory(
139529
+ options,
139530
+ () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName),
139531
+ currentDirectory,
139532
+ getCanonicalFileName,
139533
+ (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2)
139534
+ );
139535
+ programDiagnostics.setCommonSourceDirectory(commonSourceDirectory);
139205
139536
  return commonSourceDirectory;
139206
139537
  }
139207
139538
  function getClassifiableNames() {
@@ -139512,9 +139843,10 @@ ${lanes.join("\n")}
139512
139843
  }
139513
139844
  filesByName.set(path, filesByName.get(oldFile.path));
139514
139845
  });
139846
+ const isConfigIdentical = oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations);
139847
+ programDiagnostics.reuseStateFromOldProgram(oldProgram.getProgramDiagnosticsContainer(), isConfigIdentical);
139848
+ skipVerifyCompilerOptions = isConfigIdentical;
139515
139849
  files = newSourceFiles;
139516
- fileReasons = oldProgram.getFileIncludeReasons();
139517
- fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();
139518
139850
  automaticTypeDirectiveNames = oldProgram.getAutomaticTypeDirectiveNames();
139519
139851
  automaticTypeDirectiveResolutions = oldProgram.getAutomaticTypeDirectiveResolutions();
139520
139852
  sourceFileToPackageName = oldProgram.sourceFileToPackageName;
@@ -139730,7 +140062,7 @@ ${lanes.join("\n")}
139730
140062
  if (skipTypeChecking(sourceFile, options, program)) {
139731
140063
  return emptyArray;
139732
140064
  }
139733
- const programDiagnosticsInFile = updateAndGetProgramDiagnostics().getDiagnostics(sourceFile.fileName);
140065
+ const programDiagnosticsInFile = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(sourceFile.fileName);
139734
140066
  if (!((_a2 = sourceFile.commentDirectives) == null ? void 0 : _a2.length)) {
139735
140067
  return programDiagnosticsInFile;
139736
140068
  }
@@ -140104,15 +140436,15 @@ ${lanes.join("\n")}
140104
140436
  }
140105
140437
  function getOptionsDiagnostics() {
140106
140438
  return sortAndDeduplicateDiagnostics(concatenate(
140107
- updateAndGetProgramDiagnostics().getGlobalDiagnostics(),
140439
+ programDiagnostics.getCombinedDiagnostics(program).getGlobalDiagnostics(),
140108
140440
  getOptionsDiagnosticsOfConfigFile()
140109
140441
  ));
140110
140442
  }
140111
140443
  function getOptionsDiagnosticsOfConfigFile() {
140112
140444
  if (!options.configFile) return emptyArray;
140113
- let diagnostics = updateAndGetProgramDiagnostics().getDiagnostics(options.configFile.fileName);
140445
+ let diagnostics = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(options.configFile.fileName);
140114
140446
  forEachResolvedProjectReference2((resolvedRef) => {
140115
- diagnostics = concatenate(diagnostics, updateAndGetProgramDiagnostics().getDiagnostics(resolvedRef.sourceFile.fileName));
140447
+ diagnostics = concatenate(diagnostics, programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(resolvedRef.sourceFile.fileName));
140116
140448
  });
140117
140449
  return diagnostics;
140118
140450
  }
@@ -140154,8 +140486,8 @@ ${lanes.join("\n")}
140154
140486
  );
140155
140487
  setParent(externalHelpersModuleReference, importDecl);
140156
140488
  setParent(importDecl, file);
140157
- externalHelpersModuleReference.flags &= ~16;
140158
- importDecl.flags &= ~16;
140489
+ externalHelpersModuleReference.flags &= -17;
140490
+ importDecl.flags &= -17;
140159
140491
  return externalHelpersModuleReference;
140160
140492
  }
140161
140493
  function collectExternalModuleReferences(file) {
@@ -140327,7 +140659,7 @@ ${lanes.join("\n")}
140327
140659
  );
140328
140660
  }
140329
140661
  function reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason) {
140330
- const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(fileReasons.get(existingFile.path), isReferencedFile);
140662
+ const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(programDiagnostics.getFileReasons().get(existingFile.path), isReferencedFile);
140331
140663
  if (hasExistingReasonToReportErrorOn) {
140332
140664
  addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [existingFile.fileName, fileName]);
140333
140665
  } else {
@@ -140514,7 +140846,7 @@ ${lanes.join("\n")}
140514
140846
  }
140515
140847
  function addFileIncludeReason(file, reason, checkExisting) {
140516
140848
  if (file && (!checkExisting || !isReferencedFile(reason) || !(filesWithReferencesProcessed == null ? void 0 : filesWithReferencesProcessed.has(reason.file)))) {
140517
- fileReasons.add(file.path, reason);
140849
+ programDiagnostics.getFileReasons().add(file.path, reason);
140518
140850
  return true;
140519
140851
  }
140520
140852
  return false;
@@ -140682,6 +141014,16 @@ ${lanes.join("\n")}
140682
141014
  var _a2, _b2, _c2, _d2, _e2;
140683
141015
  const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName);
140684
141016
  if (existing) return existing;
141017
+ if (options.libReplacement === false) {
141018
+ const result2 = {
141019
+ resolution: {
141020
+ resolvedModule: void 0
141021
+ },
141022
+ actual: combinePaths(defaultLibraryPath, libFileName)
141023
+ };
141024
+ (resolvedLibProcessing ?? (resolvedLibProcessing = /* @__PURE__ */ new Map())).set(libFileName, result2);
141025
+ return result2;
141026
+ }
140685
141027
  if (structureIsReused !== 0 && oldProgram && !hasInvalidatedLibResolutions(libFileName)) {
140686
141028
  const oldResolution = (_a2 = oldProgram.resolvedLibReferences) == null ? void 0 : _a2.get(libFileName);
140687
141029
  if (oldResolution) {
@@ -140729,7 +141071,7 @@ ${lanes.join("\n")}
140729
141071
  { kind: 7, file: file.path, index }
140730
141072
  );
140731
141073
  } else {
140732
- (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({
141074
+ programDiagnostics.addFileProcessingDiagnostic({
140733
141075
  kind: 0,
140734
141076
  reason: { kind: 7, file: file.path, index }
140735
141077
  });
@@ -140792,10 +141134,11 @@ ${lanes.join("\n")}
140792
141134
  if (!sourceFile.isDeclarationFile) {
140793
141135
  const absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory));
140794
141136
  if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) {
140795
- addLazyProgramDiagnosticExplainingFile(
141137
+ programDiagnostics.addLazyConfigDiagnostic(
140796
141138
  sourceFile,
140797
141139
  Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,
140798
- [sourceFile.fileName, rootDirectory]
141140
+ sourceFile.fileName,
141141
+ rootDirectory
140799
141142
  );
140800
141143
  allFilesBelongToPath = false;
140801
141144
  }
@@ -140914,7 +141257,7 @@ ${lanes.join("\n")}
140914
141257
  }
140915
141258
  const outputFile = options.outFile;
140916
141259
  if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
140917
- programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
141260
+ programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
140918
141261
  }
140919
141262
  verifyDeprecatedCompilerOptions();
140920
141263
  verifyProjectReferences();
@@ -140922,10 +141265,11 @@ ${lanes.join("\n")}
140922
141265
  const rootPaths = new Set(rootNames.map(toPath3));
140923
141266
  for (const file of files) {
140924
141267
  if (sourceFileMayBeEmitted(file, program) && !rootPaths.has(file.path)) {
140925
- addLazyProgramDiagnosticExplainingFile(
141268
+ programDiagnostics.addLazyConfigDiagnostic(
140926
141269
  file,
140927
141270
  Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,
140928
- [file.fileName, options.configFilePath || ""]
141271
+ file.fileName,
141272
+ options.configFilePath || ""
140929
141273
  );
140930
141274
  }
140931
141275
  }
@@ -141016,14 +141360,14 @@ ${lanes.join("\n")}
141016
141360
  }
141017
141361
  } else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 && options.module === 0) {
141018
141362
  const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
141019
- programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
141363
+ programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
141020
141364
  }
141021
141365
  if (outputFile && !options.emitDeclarationOnly) {
141022
141366
  if (options.module && !(options.module === 2 || options.module === 4)) {
141023
141367
  createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module");
141024
141368
  } else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) {
141025
141369
  const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
141026
- programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
141370
+ programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
141027
141371
  }
141028
141372
  }
141029
141373
  if (getResolveJsonModule(options)) {
@@ -141112,7 +141456,8 @@ ${lanes.join("\n")}
141112
141456
  }
141113
141457
  if (ModuleKind[moduleKind] && (100 <= moduleKind && moduleKind <= 199) && !(3 <= moduleResolution && moduleResolution <= 99)) {
141114
141458
  const moduleKindName = ModuleKind[moduleKind];
141115
- createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleKindName, moduleKindName);
141459
+ const moduleResolutionName = ModuleResolutionKind[moduleKindName] ? moduleKindName : "Node16";
141460
+ createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleResolutionName, moduleKindName);
141116
141461
  } else if (ModuleResolutionKind[moduleResolution] && (3 <= moduleResolution && moduleResolution <= 99) && !(100 <= moduleKind && moduleKind <= 199)) {
141117
141462
  const moduleResolutionName = ModuleResolutionKind[moduleResolution];
141118
141463
  createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName);
@@ -141274,90 +141619,8 @@ ${lanes.join("\n")}
141274
141619
  }
141275
141620
  });
141276
141621
  }
141277
- function createDiagnosticExplainingFile(file, fileProcessingReason, diagnostic, args) {
141278
- let seenReasons;
141279
- const reasons = file && fileReasons.get(file.path);
141280
- let fileIncludeReasons;
141281
- let relatedInfo;
141282
- let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0;
141283
- let fileIncludeReasonDetails;
141284
- let redirectInfo;
141285
- let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path));
141286
- let chain;
141287
- if (cachedChain) {
141288
- if (cachedChain.fileIncludeReasonDetails) {
141289
- seenReasons = new Set(reasons);
141290
- reasons == null ? void 0 : reasons.forEach(populateRelatedInfo);
141291
- } else {
141292
- reasons == null ? void 0 : reasons.forEach(processReason);
141293
- }
141294
- redirectInfo = cachedChain.redirectInfo;
141295
- } else {
141296
- reasons == null ? void 0 : reasons.forEach(processReason);
141297
- redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, getCompilerOptionsForFile(file));
141298
- }
141299
- if (fileProcessingReason) processReason(fileProcessingReason);
141300
- const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length);
141301
- if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1) seenReasons = void 0;
141302
- if (seenReasons && cachedChain) {
141303
- if (cachedChain.details && !processedExtraReason) {
141304
- chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args || emptyArray);
141305
- } else if (cachedChain.fileIncludeReasonDetails) {
141306
- if (!processedExtraReason) {
141307
- if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
141308
- fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails;
141309
- } else {
141310
- fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length);
141311
- }
141312
- } else {
141313
- if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
141314
- fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]];
141315
- } else {
141316
- fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]);
141317
- }
141318
- }
141319
- }
141320
- }
141321
- if (!chain) {
141322
- if (!fileIncludeReasonDetails) fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon);
141323
- chain = chainDiagnosticMessages(
141324
- redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails,
141325
- diagnostic,
141326
- ...args || emptyArray
141327
- );
141328
- }
141329
- if (file) {
141330
- if (cachedChain) {
141331
- if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) {
141332
- cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails;
141333
- }
141334
- } else {
141335
- (fileReasonsToChain ?? (fileReasonsToChain = /* @__PURE__ */ new Map())).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo });
141336
- }
141337
- if (!cachedChain.details && !processedExtraReason) cachedChain.details = chain.next;
141338
- }
141339
- const location = locationReason && getReferencedFileLocation(program, locationReason);
141340
- return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo);
141341
- function processReason(reason) {
141342
- if (seenReasons == null ? void 0 : seenReasons.has(reason)) return;
141343
- (seenReasons ?? (seenReasons = /* @__PURE__ */ new Set())).add(reason);
141344
- (fileIncludeReasons ?? (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason));
141345
- populateRelatedInfo(reason);
141346
- }
141347
- function populateRelatedInfo(reason) {
141348
- if (!locationReason && isReferencedFile(reason)) {
141349
- locationReason = reason;
141350
- } else if (locationReason !== reason) {
141351
- relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(reason));
141352
- }
141353
- }
141354
- function cachedFileIncludeDetailsHasProcessedExtraReason() {
141355
- var _a2;
141356
- return ((_a2 = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a2.length) !== (reasons == null ? void 0 : reasons.length);
141357
- }
141358
- }
141359
141622
  function addFilePreprocessingFileExplainingDiagnostic(file, fileProcessingReason, diagnostic, args) {
141360
- (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({
141623
+ programDiagnostics.addFileProcessingDiagnostic({
141361
141624
  kind: 1,
141362
141625
  file: file && file.path,
141363
141626
  fileProcessingReason,
@@ -141365,99 +141628,6 @@ ${lanes.join("\n")}
141365
141628
  args
141366
141629
  });
141367
141630
  }
141368
- function addLazyProgramDiagnosticExplainingFile(file, diagnostic, args) {
141369
- lazyProgramDiagnosticExplainingFile.push({ file, diagnostic, args });
141370
- }
141371
- function getFileIncludeReasonToRelatedInformation(reason) {
141372
- let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason);
141373
- if (relatedInfo === void 0) (reasonToRelatedInfo ?? (reasonToRelatedInfo = /* @__PURE__ */ new Map())).set(reason, relatedInfo = fileIncludeReasonToRelatedInformation(reason) ?? false);
141374
- return relatedInfo || void 0;
141375
- }
141376
- function fileIncludeReasonToRelatedInformation(reason) {
141377
- if (isReferencedFile(reason)) {
141378
- const referenceLocation = getReferencedFileLocation(program, reason);
141379
- let message2;
141380
- switch (reason.kind) {
141381
- case 3:
141382
- message2 = Diagnostics.File_is_included_via_import_here;
141383
- break;
141384
- case 4:
141385
- message2 = Diagnostics.File_is_included_via_reference_here;
141386
- break;
141387
- case 5:
141388
- message2 = Diagnostics.File_is_included_via_type_library_reference_here;
141389
- break;
141390
- case 7:
141391
- message2 = Diagnostics.File_is_included_via_library_reference_here;
141392
- break;
141393
- default:
141394
- Debug.assertNever(reason);
141395
- }
141396
- return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic(
141397
- referenceLocation.file,
141398
- referenceLocation.pos,
141399
- referenceLocation.end - referenceLocation.pos,
141400
- message2
141401
- ) : void 0;
141402
- }
141403
- if (!options.configFile) return void 0;
141404
- let configFileNode;
141405
- let message;
141406
- switch (reason.kind) {
141407
- case 0:
141408
- if (!options.configFile.configFileSpecs) return void 0;
141409
- const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory);
141410
- const matchedByFiles = getMatchedFileSpec(program, fileName);
141411
- if (matchedByFiles) {
141412
- configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles);
141413
- message = Diagnostics.File_is_matched_by_files_list_specified_here;
141414
- break;
141415
- }
141416
- const matchedByInclude = getMatchedIncludeSpec(program, fileName);
141417
- if (!matchedByInclude || !isString2(matchedByInclude)) return void 0;
141418
- configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
141419
- message = Diagnostics.File_is_matched_by_include_pattern_specified_here;
141420
- break;
141421
- case 1:
141422
- case 2:
141423
- const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]);
141424
- const referenceInfo = forEachProjectReference(
141425
- projectReferences,
141426
- resolvedProjectReferences,
141427
- (resolvedRef, parent2, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent2 == null ? void 0 : parent2.sourceFile) || options.configFile, index: index2 } : void 0
141428
- );
141429
- if (!referenceInfo) return void 0;
141430
- const { sourceFile, index } = referenceInfo;
141431
- const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
141432
- return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(
141433
- sourceFile,
141434
- referencesSyntax.elements[index],
141435
- reason.kind === 2 ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
141436
- ) : void 0;
141437
- case 8:
141438
- if (!options.types) return void 0;
141439
- configFileNode = getOptionsSyntaxByArrayElementValue("types", reason.typeReference);
141440
- message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
141441
- break;
141442
- case 6:
141443
- if (reason.index !== void 0) {
141444
- configFileNode = getOptionsSyntaxByArrayElementValue("lib", options.lib[reason.index]);
141445
- message = Diagnostics.File_is_library_specified_here;
141446
- break;
141447
- }
141448
- const target = getNameOfScriptTarget(getEmitScriptTarget(options));
141449
- configFileNode = target ? getOptionsSyntaxByValue("target", target) : void 0;
141450
- message = Diagnostics.File_is_default_library_for_target_specified_here;
141451
- break;
141452
- default:
141453
- Debug.assertNever(reason);
141454
- }
141455
- return configFileNode && createDiagnosticForNodeInSourceFile(
141456
- options.configFile,
141457
- configFileNode,
141458
- message
141459
- );
141460
- }
141461
141631
  function verifyProjectReferences() {
141462
141632
  const buildInfoPath = !options.suppressOutputPathCheck ? getTsBuildInfoEmitOutputFilePath(options) : void 0;
141463
141633
  forEachProjectReference(
@@ -141493,7 +141663,7 @@ ${lanes.join("\n")}
141493
141663
  forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => {
141494
141664
  const initializer = keyProps.initializer;
141495
141665
  if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
141496
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
141666
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
141497
141667
  needCompilerDiagnostic = false;
141498
141668
  }
141499
141669
  });
@@ -141522,18 +141692,8 @@ ${lanes.join("\n")}
141522
141692
  createCompilerOptionsDiagnostic(message, ...args);
141523
141693
  }
141524
141694
  }
141525
- function forEachOptionsSyntaxByName(name, callback) {
141526
- return forEachPropertyAssignment(getCompilerOptionsObjectLiteralSyntax(), name, callback);
141527
- }
141528
141695
  function forEachOptionPathsSyntax(callback) {
141529
- return forEachOptionsSyntaxByName("paths", callback);
141530
- }
141531
- function getOptionsSyntaxByValue(name, value) {
141532
- return forEachOptionsSyntaxByName(name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0);
141533
- }
141534
- function getOptionsSyntaxByArrayElementValue(name, value) {
141535
- const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();
141536
- return compilerOptionsObjectLiteralSyntax && getPropertyArrayElementValue(compilerOptionsObjectLiteralSyntax, name, value);
141696
+ return forEachOptionsSyntaxByName(getCompilerOptionsObjectLiteralSyntax(), "paths", callback);
141537
141697
  }
141538
141698
  function createDiagnosticForOptionName(message, option1, option2, option3) {
141539
141699
  createDiagnosticForOption(
@@ -141561,9 +141721,9 @@ ${lanes.join("\n")}
141561
141721
  function createDiagnosticForReference(sourceFile, index, message, ...args) {
141562
141722
  const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
141563
141723
  if (referencesSyntax && referencesSyntax.elements.length > index) {
141564
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
141724
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
141565
141725
  } else {
141566
- programDiagnostics.add(createCompilerDiagnostic(message, ...args));
141726
+ programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
141567
141727
  }
141568
141728
  }
141569
141729
  function createDiagnosticForOption(onKey, option1, option2, message, ...args) {
@@ -141577,14 +141737,14 @@ ${lanes.join("\n")}
141577
141737
  const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
141578
141738
  if (compilerOptionsProperty) {
141579
141739
  if ("messageText" in message) {
141580
- programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
141740
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
141581
141741
  } else {
141582
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
141742
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
141583
141743
  }
141584
141744
  } else if ("messageText" in message) {
141585
- programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message));
141745
+ programDiagnostics.addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(message));
141586
141746
  } else {
141587
- programDiagnostics.add(createCompilerDiagnostic(message, ...args));
141747
+ programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
141588
141748
  }
141589
141749
  }
141590
141750
  function getCompilerOptionsObjectLiteralSyntax() {
@@ -141608,9 +141768,9 @@ ${lanes.join("\n")}
141608
141768
  let needsCompilerDiagnostic = false;
141609
141769
  forEachPropertyAssignment(objectLiteral, key1, (prop) => {
141610
141770
  if ("messageText" in message) {
141611
- programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
141771
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
141612
141772
  } else {
141613
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
141773
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
141614
141774
  }
141615
141775
  needsCompilerDiagnostic = true;
141616
141776
  }, key2);
@@ -141618,7 +141778,7 @@ ${lanes.join("\n")}
141618
141778
  }
141619
141779
  function blockEmittingOfFile(emitFileName, diag2) {
141620
141780
  hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);
141621
- programDiagnostics.add(diag2);
141781
+ programDiagnostics.addConfigDiagnostic(diag2);
141622
141782
  }
141623
141783
  function isEmittedFile(file) {
141624
141784
  if (options.noEmit) {
@@ -141958,6 +142118,291 @@ ${lanes.join("\n")}
141958
142118
  }
141959
142119
  Debug.fail("should never ask for module name at index higher than possible module name");
141960
142120
  }
142121
+ function createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax) {
142122
+ let computedDiagnostics;
142123
+ let fileReasons = createMultiMap();
142124
+ let fileProcessingDiagnostics;
142125
+ let commonSourceDirectory;
142126
+ let configDiagnostics;
142127
+ let lazyConfigDiagnostics;
142128
+ let fileReasonsToChain;
142129
+ let reasonToRelatedInfo;
142130
+ return {
142131
+ addConfigDiagnostic(diag2) {
142132
+ Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
142133
+ (configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2);
142134
+ },
142135
+ addLazyConfigDiagnostic(file, message, ...args) {
142136
+ Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
142137
+ (lazyConfigDiagnostics ?? (lazyConfigDiagnostics = [])).push({ file, diagnostic: message, args });
142138
+ },
142139
+ addFileProcessingDiagnostic(diag2) {
142140
+ Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
142141
+ (fileProcessingDiagnostics ?? (fileProcessingDiagnostics = [])).push(diag2);
142142
+ },
142143
+ setCommonSourceDirectory(directory) {
142144
+ commonSourceDirectory = directory;
142145
+ },
142146
+ reuseStateFromOldProgram(oldProgramDiagnostics, isConfigIdentical) {
142147
+ fileReasons = oldProgramDiagnostics.getFileReasons();
142148
+ fileProcessingDiagnostics = oldProgramDiagnostics.getFileProcessingDiagnostics();
142149
+ if (isConfigIdentical) {
142150
+ commonSourceDirectory = oldProgramDiagnostics.getCommonSourceDirectory();
142151
+ configDiagnostics = oldProgramDiagnostics.getConfigDiagnostics();
142152
+ lazyConfigDiagnostics = oldProgramDiagnostics.getLazyConfigDiagnostics();
142153
+ }
142154
+ },
142155
+ getFileProcessingDiagnostics() {
142156
+ return fileProcessingDiagnostics;
142157
+ },
142158
+ getFileReasons() {
142159
+ return fileReasons;
142160
+ },
142161
+ getCommonSourceDirectory() {
142162
+ return commonSourceDirectory;
142163
+ },
142164
+ getConfigDiagnostics() {
142165
+ return configDiagnostics;
142166
+ },
142167
+ getLazyConfigDiagnostics() {
142168
+ return lazyConfigDiagnostics;
142169
+ },
142170
+ getCombinedDiagnostics(program) {
142171
+ if (computedDiagnostics) {
142172
+ return computedDiagnostics;
142173
+ }
142174
+ computedDiagnostics = createDiagnosticCollection();
142175
+ configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => computedDiagnostics.add(d));
142176
+ fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
142177
+ switch (diagnostic.kind) {
142178
+ case 1:
142179
+ return computedDiagnostics.add(
142180
+ createDiagnosticExplainingFile(
142181
+ program,
142182
+ diagnostic.file && program.getSourceFileByPath(diagnostic.file),
142183
+ diagnostic.fileProcessingReason,
142184
+ diagnostic.diagnostic,
142185
+ diagnostic.args || emptyArray
142186
+ )
142187
+ );
142188
+ case 0:
142189
+ return computedDiagnostics.add(filePreprocessingLibreferenceDiagnostic(program, diagnostic));
142190
+ case 2:
142191
+ return diagnostic.diagnostics.forEach((d) => computedDiagnostics.add(d));
142192
+ default:
142193
+ Debug.assertNever(diagnostic);
142194
+ }
142195
+ });
142196
+ lazyConfigDiagnostics == null ? void 0 : lazyConfigDiagnostics.forEach(
142197
+ ({ file, diagnostic, args }) => computedDiagnostics.add(
142198
+ createDiagnosticExplainingFile(
142199
+ program,
142200
+ file,
142201
+ /*fileProcessingReason*/
142202
+ void 0,
142203
+ diagnostic,
142204
+ args
142205
+ )
142206
+ )
142207
+ );
142208
+ fileReasonsToChain = void 0;
142209
+ reasonToRelatedInfo = void 0;
142210
+ return computedDiagnostics;
142211
+ }
142212
+ };
142213
+ function filePreprocessingLibreferenceDiagnostic(program, { reason }) {
142214
+ const { file, pos, end } = getReferencedFileLocation(program, reason);
142215
+ const libReference = file.libReferenceDirectives[reason.index];
142216
+ const libName = getLibNameFromLibReference(libReference);
142217
+ const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts");
142218
+ const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity);
142219
+ return createFileDiagnostic(
142220
+ file,
142221
+ Debug.checkDefined(pos),
142222
+ Debug.checkDefined(end) - pos,
142223
+ suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0,
142224
+ libName,
142225
+ suggestion
142226
+ );
142227
+ }
142228
+ function createDiagnosticExplainingFile(program, file, fileProcessingReason, diagnostic, args) {
142229
+ let seenReasons;
142230
+ let fileIncludeReasons;
142231
+ let relatedInfo;
142232
+ let fileIncludeReasonDetails;
142233
+ let redirectInfo;
142234
+ let chain;
142235
+ const reasons = file && fileReasons.get(file.path);
142236
+ let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0;
142237
+ let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path));
142238
+ if (cachedChain) {
142239
+ if (cachedChain.fileIncludeReasonDetails) {
142240
+ seenReasons = new Set(reasons);
142241
+ reasons == null ? void 0 : reasons.forEach(populateRelatedInfo);
142242
+ } else {
142243
+ reasons == null ? void 0 : reasons.forEach(processReason);
142244
+ }
142245
+ redirectInfo = cachedChain.redirectInfo;
142246
+ } else {
142247
+ reasons == null ? void 0 : reasons.forEach(processReason);
142248
+ redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptionsForFile(file));
142249
+ }
142250
+ if (fileProcessingReason) processReason(fileProcessingReason);
142251
+ const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length);
142252
+ if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1) seenReasons = void 0;
142253
+ if (seenReasons && cachedChain) {
142254
+ if (cachedChain.details && !processedExtraReason) {
142255
+ chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args ?? emptyArray);
142256
+ } else if (cachedChain.fileIncludeReasonDetails) {
142257
+ if (!processedExtraReason) {
142258
+ if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
142259
+ fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails;
142260
+ } else {
142261
+ fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length);
142262
+ }
142263
+ } else {
142264
+ if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
142265
+ fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]];
142266
+ } else {
142267
+ fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]);
142268
+ }
142269
+ }
142270
+ }
142271
+ }
142272
+ if (!chain) {
142273
+ if (!fileIncludeReasonDetails) fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon);
142274
+ chain = chainDiagnosticMessages(
142275
+ redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails,
142276
+ diagnostic,
142277
+ ...args || emptyArray
142278
+ );
142279
+ }
142280
+ if (file) {
142281
+ if (cachedChain) {
142282
+ if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) {
142283
+ cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails;
142284
+ }
142285
+ } else {
142286
+ (fileReasonsToChain ?? (fileReasonsToChain = /* @__PURE__ */ new Map())).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo });
142287
+ }
142288
+ if (!cachedChain.details && !processedExtraReason) cachedChain.details = chain.next;
142289
+ }
142290
+ const location = locationReason && getReferencedFileLocation(program, locationReason);
142291
+ return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo);
142292
+ function processReason(reason) {
142293
+ if (seenReasons == null ? void 0 : seenReasons.has(reason)) return;
142294
+ (seenReasons ?? (seenReasons = /* @__PURE__ */ new Set())).add(reason);
142295
+ (fileIncludeReasons ?? (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason));
142296
+ populateRelatedInfo(reason);
142297
+ }
142298
+ function populateRelatedInfo(reason) {
142299
+ if (!locationReason && isReferencedFile(reason)) {
142300
+ locationReason = reason;
142301
+ } else if (locationReason !== reason) {
142302
+ relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(program, reason));
142303
+ }
142304
+ }
142305
+ function cachedFileIncludeDetailsHasProcessedExtraReason() {
142306
+ var _a;
142307
+ return ((_a = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a.length) !== (reasons == null ? void 0 : reasons.length);
142308
+ }
142309
+ }
142310
+ function getFileIncludeReasonToRelatedInformation(program, reason) {
142311
+ let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason);
142312
+ if (relatedInfo === void 0) (reasonToRelatedInfo ?? (reasonToRelatedInfo = /* @__PURE__ */ new Map())).set(reason, relatedInfo = fileIncludeReasonToRelatedInformation(program, reason) ?? false);
142313
+ return relatedInfo || void 0;
142314
+ }
142315
+ function fileIncludeReasonToRelatedInformation(program, reason) {
142316
+ if (isReferencedFile(reason)) {
142317
+ const referenceLocation = getReferencedFileLocation(program, reason);
142318
+ let message2;
142319
+ switch (reason.kind) {
142320
+ case 3:
142321
+ message2 = Diagnostics.File_is_included_via_import_here;
142322
+ break;
142323
+ case 4:
142324
+ message2 = Diagnostics.File_is_included_via_reference_here;
142325
+ break;
142326
+ case 5:
142327
+ message2 = Diagnostics.File_is_included_via_type_library_reference_here;
142328
+ break;
142329
+ case 7:
142330
+ message2 = Diagnostics.File_is_included_via_library_reference_here;
142331
+ break;
142332
+ default:
142333
+ Debug.assertNever(reason);
142334
+ }
142335
+ return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic(
142336
+ referenceLocation.file,
142337
+ referenceLocation.pos,
142338
+ referenceLocation.end - referenceLocation.pos,
142339
+ message2
142340
+ ) : void 0;
142341
+ }
142342
+ const currentDirectory = program.getCurrentDirectory();
142343
+ const rootNames = program.getRootFileNames();
142344
+ const options = program.getCompilerOptions();
142345
+ if (!options.configFile) return void 0;
142346
+ let configFileNode;
142347
+ let message;
142348
+ switch (reason.kind) {
142349
+ case 0:
142350
+ if (!options.configFile.configFileSpecs) return void 0;
142351
+ const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory);
142352
+ const matchedByFiles = getMatchedFileSpec(program, fileName);
142353
+ if (matchedByFiles) {
142354
+ configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles);
142355
+ message = Diagnostics.File_is_matched_by_files_list_specified_here;
142356
+ break;
142357
+ }
142358
+ const matchedByInclude = getMatchedIncludeSpec(program, fileName);
142359
+ if (!matchedByInclude || !isString2(matchedByInclude)) return void 0;
142360
+ configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
142361
+ message = Diagnostics.File_is_matched_by_include_pattern_specified_here;
142362
+ break;
142363
+ case 1:
142364
+ case 2:
142365
+ const resolvedProjectReferences = program.getResolvedProjectReferences();
142366
+ const projectReferences = program.getProjectReferences();
142367
+ const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]);
142368
+ const referenceInfo = forEachProjectReference(
142369
+ projectReferences,
142370
+ resolvedProjectReferences,
142371
+ (resolvedRef, parent2, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent2 == null ? void 0 : parent2.sourceFile) || options.configFile, index: index2 } : void 0
142372
+ );
142373
+ if (!referenceInfo) return void 0;
142374
+ const { sourceFile, index } = referenceInfo;
142375
+ const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
142376
+ return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(
142377
+ sourceFile,
142378
+ referencesSyntax.elements[index],
142379
+ reason.kind === 2 ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
142380
+ ) : void 0;
142381
+ case 8:
142382
+ if (!options.types) return void 0;
142383
+ configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "types", reason.typeReference);
142384
+ message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
142385
+ break;
142386
+ case 6:
142387
+ if (reason.index !== void 0) {
142388
+ configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "lib", options.lib[reason.index]);
142389
+ message = Diagnostics.File_is_library_specified_here;
142390
+ break;
142391
+ }
142392
+ const target = getNameOfScriptTarget(getEmitScriptTarget(options));
142393
+ configFileNode = target ? getOptionsSyntaxByValue(getCompilerOptionsObjectLiteralSyntax(), "target", target) : void 0;
142394
+ message = Diagnostics.File_is_default_library_for_target_specified_here;
142395
+ break;
142396
+ default:
142397
+ Debug.assertNever(reason);
142398
+ }
142399
+ return configFileNode && createDiagnosticForNodeInSourceFile(
142400
+ options.configFile,
142401
+ configFileNode,
142402
+ message
142403
+ );
142404
+ }
142405
+ }
141961
142406
  function getFileEmitOutput(program, sourceFile, emitOnlyDtsFiles, cancellationToken, customTransformers, forceDtsEmit) {
141962
142407
  const outputFiles = [];
141963
142408
  const { emitSkipped, diagnostics } = program.emit(sourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers, forceDtsEmit);
@@ -150035,9 +150480,9 @@ ${lanes.join("\n")}
150035
150480
  }
150036
150481
  if (!result && node.kind === 303) {
150037
150482
  const initializer = node.initializer;
150038
- const type = isJSDocTypeAssertion(initializer) ? getJSDocTypeAssertionType(initializer) : initializer.kind === 234 || initializer.kind === 216 ? initializer.type : void 0;
150039
- if (type && !isConstTypeReference(type)) {
150040
- result = serializeExistingTypeNode(type, context);
150483
+ const assertionNode = isJSDocTypeAssertion(initializer) ? getJSDocTypeAssertionType(initializer) : initializer.kind === 234 || initializer.kind === 216 ? initializer.type : void 0;
150484
+ if (assertionNode && !isConstTypeReference(assertionNode) && resolver.canReuseTypeNodeAnnotation(context, node, assertionNode, symbol)) {
150485
+ result = serializeExistingTypeNode(assertionNode, context);
150041
150486
  }
150042
150487
  }
150043
150488
  return result ?? inferTypeOfDeclaration(
@@ -150354,18 +150799,21 @@ ${lanes.join("\n")}
150354
150799
  return failed;
150355
150800
  }
150356
150801
  function typeFromFunctionLikeExpression(fnNode, context) {
150357
- const oldNoInferenceFallback = context.noInferenceFallback;
150358
- context.noInferenceFallback = true;
150359
- createReturnFromSignature(
150802
+ const returnType = createReturnFromSignature(
150360
150803
  fnNode,
150361
150804
  /*symbol*/
150362
150805
  void 0,
150363
150806
  context
150364
150807
  );
150365
- reuseTypeParameters(fnNode.typeParameters, context);
150366
- fnNode.parameters.map((p) => ensureParameter(p, context));
150367
- context.noInferenceFallback = oldNoInferenceFallback;
150368
- return notImplemented22;
150808
+ const typeParameters = reuseTypeParameters(fnNode.typeParameters, context);
150809
+ const parameters = fnNode.parameters.map((p) => ensureParameter(p, context));
150810
+ return syntacticResult(
150811
+ factory.createFunctionTypeNode(
150812
+ typeParameters,
150813
+ parameters,
150814
+ returnType
150815
+ )
150816
+ );
150369
150817
  }
150370
150818
  function canGetTypeFromArrayLiteral(arrayLiteral, context, isConstContext) {
150371
150819
  if (!isConstContext) {
@@ -151976,7 +152424,7 @@ ${lanes.join("\n")}
151976
152424
  return lastTypeNode;
151977
152425
  }
151978
152426
  function getContextualTypeFromParentOrAncestorTypeNode(node, checker) {
151979
- if (node.flags & (16777216 & ~524288)) return void 0;
152427
+ if (node.flags & (16777216 & -524289)) return void 0;
151980
152428
  const contextualType = getContextualTypeFromParent(node, checker);
151981
152429
  if (contextualType) return contextualType;
151982
152430
  const ancestorTypeNode = getAncestorTypeNode(node);
@@ -154087,7 +154535,7 @@ ${lanes.join("\n")}
154087
154535
  return moduleSpecifierToValidIdentifier(removeFileExtension(stripQuotes(moduleSymbol.name)), target, forceCapitalize);
154088
154536
  }
154089
154537
  function moduleSpecifierToValidIdentifier(moduleSpecifier, target, forceCapitalize) {
154090
- const baseName = getBaseFileName(removeSuffix(moduleSpecifier, "/index"));
154538
+ const baseName = getBaseFileName(removeSuffix(removeFileExtension(moduleSpecifier), "/index"));
154091
154539
  let res = "";
154092
154540
  let lastCharWasValid = true;
154093
154541
  const firstCharCode = baseName.charCodeAt(0);
@@ -156977,7 +157425,6 @@ ${lanes.join("\n")}
156977
157425
  }
156978
157426
  function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImports = false) {
156979
157427
  const pragmaContext = {
156980
- languageVersion: 1,
156981
157428
  // controls whether the token scanner considers unicode identifiers or not - shouldn't matter, since we're only using it for trivia
156982
157429
  pragmas: void 0,
156983
157430
  checkJsDirective: void 0,
@@ -160241,7 +160688,7 @@ interface Symbol {
160241
160688
  const unusedImportsFromOldFile = /* @__PURE__ */ new Set();
160242
160689
  for (const statement of toMove) {
160243
160690
  forEachReference(statement, checker, enclosingRange, (symbol, isValidTypeOnlyUseSite) => {
160244
- if (!symbol.declarations) {
160691
+ if (!some(symbol.declarations)) {
160245
160692
  return;
160246
160693
  }
160247
160694
  if (existingTargetLocals.has(skipAlias(symbol, checker))) {
@@ -162689,7 +163136,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
162689
163136
  const savedPermittedJumps = permittedJumps;
162690
163137
  switch (node2.kind) {
162691
163138
  case 245:
162692
- permittedJumps &= ~4;
163139
+ permittedJumps &= -5;
162693
163140
  break;
162694
163141
  case 258:
162695
163142
  permittedJumps = 0;
@@ -163168,7 +163615,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
163168
163615
  for (const variableDeclaration of exposedVariableDeclarations) {
163169
163616
  let flags = variableDeclaration.parent.flags;
163170
163617
  if (flags & 2) {
163171
- flags = flags & ~2 | 1;
163618
+ flags = flags & -3 | 1;
163172
163619
  }
163173
163620
  newNodes.push(factory.createVariableStatement(
163174
163621
  /*modifiers*/
@@ -171031,6 +171478,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
171031
171478
  Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,
171032
171479
  Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,
171033
171480
  Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,
171481
+ Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code,
171034
171482
  Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code
171035
171483
  ];
171036
171484
  registerCodeFix({
@@ -171156,7 +171604,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
171156
171604
  ...addAsTypeOnly === void 0 ? {} : { addAsTypeOnly },
171157
171605
  ...propertyName === void 0 ? {} : { propertyName }
171158
171606
  };
171159
- addImport({ fix, symbolName: localName ?? symbolName2, errorIdentifierText: void 0 });
171607
+ addImport({ fix, symbolName: localName ?? symbolName2 });
171160
171608
  }
171161
171609
  }
171162
171610
  function addImportForModuleSymbol(symbolAlias, isValidTypeOnlyUseSite, referenceImport) {
@@ -171226,7 +171674,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
171226
171674
  useRequire
171227
171675
  };
171228
171676
  }
171229
- addImport({ fix, symbolName: symbolAlias.name, errorIdentifierText: void 0 });
171677
+ addImport({ fix, symbolName: symbolAlias.name });
171230
171678
  }
171231
171679
  function addImportForNonExistentExport(exportName, exportingFileName, exportKind, exportedMeanings, isImportUsageValidAsTypeOnly) {
171232
171680
  const exportingSourceFile = program.getSourceFile(exportingFileName);
@@ -171250,7 +171698,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
171250
171698
  preferences
171251
171699
  );
171252
171700
  if (fixes.length) {
171253
- addImport({ fix: fixes[0], symbolName: exportName, errorIdentifierText: exportName });
171701
+ addImport({ fix: fixes[0], symbolName: exportName });
171254
171702
  }
171255
171703
  } else {
171256
171704
  const futureExportingSourceFile = createFutureSourceFile(exportingFileName, 99, program, host);
@@ -171280,7 +171728,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
171280
171728
  addAsTypeOnly,
171281
171729
  useRequire
171282
171730
  };
171283
- addImport({ fix, symbolName: exportName, errorIdentifierText: exportName });
171731
+ addImport({ fix, symbolName: exportName });
171284
171732
  }
171285
171733
  }
171286
171734
  function removeExistingImport(declaration) {
@@ -172146,6 +172594,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
172146
172594
  case 200:
172147
172595
  return 2;
172148
172596
  case 100:
172597
+ case 101:
172149
172598
  case 199:
172150
172599
  return getImpliedNodeFormatForEmit(importingFile, program) === 99 ? 2 : 3;
172151
172600
  default:
@@ -173568,7 +174017,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
173568
174017
  Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,
173569
174018
  Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,
173570
174019
  Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,
173571
- Diagnostics.Cannot_find_name_0.code
174020
+ Diagnostics.Cannot_find_name_0.code,
174021
+ Diagnostics.Type_0_does_not_satisfy_the_expected_type_1.code
173572
174022
  ];
173573
174023
  registerCodeFix({
173574
174024
  errorCodes: errorCodes28,
@@ -173605,9 +174055,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
173605
174055
  return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
173606
174056
  eachDiagnostic(context, errorCodes28, (diag2) => {
173607
174057
  const info = getInfo10(diag2.file, diag2.start, diag2.code, checker, context.program);
173608
- if (!info || !addToSeen(seen, getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 ? info.identifier : info.token.text))) {
173609
- return;
173610
- }
174058
+ if (info === void 0) return;
174059
+ const nodeId = getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 ? info.identifier || getNodeId(info.token) : info.token.text);
174060
+ if (!addToSeen(seen, nodeId)) return;
173611
174061
  if (fixId56 === fixMissingFunctionDeclaration && (info.kind === 2 || info.kind === 5)) {
173612
174062
  addFunctionDeclaration(changes, context, info);
173613
174063
  } else if (fixId56 === fixMissingProperties && info.kind === 3) {
@@ -173659,7 +174109,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
173659
174109
  }
173660
174110
  });
173661
174111
  function getInfo10(sourceFile, tokenPos, errorCode, checker, program) {
173662
- var _a, _b, _c;
174112
+ var _a, _b;
173663
174113
  const token = getTokenAtPosition(sourceFile, tokenPos);
173664
174114
  const parent2 = token.parent;
173665
174115
  if (errorCode === Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code) {
@@ -173681,23 +174131,25 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
173681
174131
  if (!length(properties)) return void 0;
173682
174132
  return { kind: 3, token: param.name, identifier: param.name.text, properties, parentDeclaration: parent2 };
173683
174133
  }
173684
- if (token.kind === 19 && isObjectLiteralExpression(parent2)) {
173685
- const targetType = (_a = checker.getContextualType(parent2) || checker.getTypeAtLocation(parent2)) == null ? void 0 : _a.getNonNullableType();
173686
- const properties = arrayFrom(checker.getUnmatchedProperties(
173687
- checker.getTypeAtLocation(parent2),
173688
- targetType,
173689
- /*requireOptionalProperties*/
173690
- false,
173691
- /*matchDiscriminantProperties*/
173692
- false
173693
- ));
173694
- if (!length(properties)) return void 0;
173695
- const identifier = "";
173696
- return { kind: 3, token: parent2, identifier, properties, parentDeclaration: parent2 };
174134
+ if (token.kind === 19 || isSatisfiesExpression(parent2) || isReturnStatement(parent2)) {
174135
+ const expression = (isSatisfiesExpression(parent2) || isReturnStatement(parent2)) && parent2.expression ? parent2.expression : parent2;
174136
+ if (isObjectLiteralExpression(expression)) {
174137
+ const targetType = isSatisfiesExpression(parent2) ? checker.getTypeFromTypeNode(parent2.type) : checker.getContextualType(expression) || checker.getTypeAtLocation(expression);
174138
+ const properties = arrayFrom(checker.getUnmatchedProperties(
174139
+ checker.getTypeAtLocation(parent2),
174140
+ targetType.getNonNullableType(),
174141
+ /*requireOptionalProperties*/
174142
+ false,
174143
+ /*matchDiscriminantProperties*/
174144
+ false
174145
+ ));
174146
+ if (!length(properties)) return void 0;
174147
+ return { kind: 3, token: parent2, identifier: void 0, properties, parentDeclaration: expression, indentation: isReturnStatement(expression.parent) || isYieldExpression(expression.parent) ? 0 : void 0 };
174148
+ }
173697
174149
  }
173698
174150
  if (!isMemberName(token)) return void 0;
173699
174151
  if (isIdentifier(token) && hasInitializer(parent2) && parent2.initializer && isObjectLiteralExpression(parent2.initializer)) {
173700
- const targetType = (_b = checker.getContextualType(token) || checker.getTypeAtLocation(token)) == null ? void 0 : _b.getNonNullableType();
174152
+ const targetType = (_a = checker.getContextualType(token) || checker.getTypeAtLocation(token)) == null ? void 0 : _a.getNonNullableType();
173701
174153
  const properties = arrayFrom(checker.getUnmatchedProperties(
173702
174154
  checker.getTypeAtLocation(parent2.initializer),
173703
174155
  targetType,
@@ -173716,7 +174168,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
173716
174168
  return { kind: 4, token, attributes, parentDeclaration: token.parent };
173717
174169
  }
173718
174170
  if (isIdentifier(token)) {
173719
- const type = (_c = checker.getContextualType(token)) == null ? void 0 : _c.getNonNullableType();
174171
+ const type = (_b = checker.getContextualType(token)) == null ? void 0 : _b.getNonNullableType();
173720
174172
  if (type && getObjectFlags(type) & 16) {
173721
174173
  const signature = firstOrUndefined(checker.getSignaturesOfType(
173722
174174
  type,
@@ -174758,9 +175210,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
174758
175210
  }
174759
175211
  registerCodeFix({
174760
175212
  errorCodes: [
174761
- Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,
174762
- Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,
174763
- Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code
175213
+ Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,
175214
+ Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,
175215
+ Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code
174764
175216
  ],
174765
175217
  getCodeActions: function getCodeActionsToFixModuleAndTarget(context) {
174766
175218
  const compilerOptions = context.program.getCompilerOptions();
@@ -175221,6 +175673,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
175221
175673
  break;
175222
175674
  } else if (canDeleteEntireVariableStatement(sourceFile, token)) {
175223
175675
  deleteEntireVariableStatement(changes, sourceFile, token.parent);
175676
+ } else if (isIdentifier(token) && isFunctionDeclaration(token.parent)) {
175677
+ deleteFunctionLikeDeclaration(changes, sourceFile, token.parent);
175224
175678
  } else {
175225
175679
  tryDeleteDeclaration(
175226
175680
  sourceFile,
@@ -178317,12 +178771,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
178317
178771
  return typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget);
178318
178772
  }
178319
178773
  function typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget) {
178320
- if (typeNode && isImportTypeNode(typeNode)) {
178321
- const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);
178322
- if (importableReference) {
178323
- importSymbols(importAdder, importableReference.symbols);
178324
- typeNode = importableReference.typeNode;
178325
- }
178774
+ const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);
178775
+ if (importableReference) {
178776
+ importSymbols(importAdder, importableReference.symbols);
178777
+ typeNode = importableReference.typeNode;
178326
178778
  }
178327
178779
  return getSynthesizedDeepClone(typeNode);
178328
178780
  }
@@ -178702,16 +179154,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
178702
179154
  return isIdentifier(fieldName) ? factory.createPropertyAccessExpression(leftHead, fieldName) : factory.createElementAccessExpression(leftHead, factory.createStringLiteralFromNode(fieldName));
178703
179155
  }
178704
179156
  function prepareModifierFlagsForAccessor(modifierFlags) {
178705
- modifierFlags &= ~8;
178706
- modifierFlags &= ~2;
179157
+ modifierFlags &= -9;
179158
+ modifierFlags &= -3;
178707
179159
  if (!(modifierFlags & 4)) {
178708
179160
  modifierFlags |= 1;
178709
179161
  }
178710
179162
  return modifierFlags;
178711
179163
  }
178712
179164
  function prepareModifierFlagsForField(modifierFlags) {
178713
- modifierFlags &= ~1;
178714
- modifierFlags &= ~4;
179165
+ modifierFlags &= -2;
179166
+ modifierFlags &= -5;
178715
179167
  modifierFlags |= 2;
178716
179168
  return modifierFlags;
178717
179169
  }
@@ -180967,10 +181419,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
180967
181419
  return void 0;
180968
181420
  }
180969
181421
  if (modifiers & 4 && allowedAndPresent & 1) {
180970
- modifiers &= ~4;
181422
+ modifiers &= -5;
180971
181423
  }
180972
181424
  if (allowedAndPresent !== 0 && !(allowedAndPresent & 1)) {
180973
- modifiers &= ~1;
181425
+ modifiers &= -2;
180974
181426
  }
180975
181427
  modifiers |= allowedAndPresent;
180976
181428
  completionNodes = completionNodes.map((node) => factory.replaceModifiers(node, modifiers));
@@ -187138,7 +187590,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
187138
187590
  } else {
187139
187591
  addIfImplementation(body);
187140
187592
  }
187141
- } else if (isAssertionExpression(typeHavingNode)) {
187593
+ } else if (isAssertionExpression(typeHavingNode) || isSatisfiesExpression(typeHavingNode)) {
187142
187594
  addIfImplementation(typeHavingNode.expression);
187143
187595
  }
187144
187596
  }
@@ -187606,7 +188058,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
187606
188058
  const { parent: parent2 } = node;
187607
188059
  const typeChecker = program.getTypeChecker();
187608
188060
  if (node.kind === 164 || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) {
187609
- return getDefinitionFromOverriddenMember(typeChecker, node) || emptyArray;
188061
+ const def = getDefinitionFromOverriddenMember(typeChecker, node);
188062
+ if (def !== void 0 || node.kind !== 164) {
188063
+ return def || emptyArray;
188064
+ }
187610
188065
  }
187611
188066
  if (isJumpStatementTarget(node)) {
187612
188067
  const label = getTargetLabel(node.parent, node.text);
@@ -187620,9 +188075,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
187620
188075
  )] : void 0;
187621
188076
  }
187622
188077
  switch (node.kind) {
187623
- case 107:
187624
- const functionDeclaration = findAncestor(node.parent, (n) => isClassStaticBlockDeclaration(n) ? "quit" : isFunctionLikeDeclaration(n));
187625
- return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
187626
188078
  case 90:
187627
188079
  if (!isDefaultClause(node.parent)) {
187628
188080
  break;
@@ -187635,19 +188087,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
187635
188087
  }
187636
188088
  break;
187637
188089
  }
187638
- if (node.kind === 135) {
187639
- const functionDeclaration = findAncestor(node, (n) => isFunctionLikeDeclaration(n));
187640
- const isAsyncFunction2 = functionDeclaration && some(
187641
- functionDeclaration.modifiers,
187642
- (node2) => node2.kind === 134
187643
- /* AsyncKeyword */
187644
- );
187645
- return isAsyncFunction2 ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
187646
- }
187647
- if (node.kind === 127) {
187648
- const functionDeclaration = findAncestor(node, (n) => isFunctionLikeDeclaration(n));
187649
- const isGeneratorFunction = functionDeclaration && functionDeclaration.asteriskToken;
187650
- return isGeneratorFunction ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
188090
+ let findFunctionDecl;
188091
+ switch (node.kind) {
188092
+ case 107:
188093
+ case 135:
188094
+ case 127:
188095
+ findFunctionDecl = isFunctionLikeDeclaration;
188096
+ const functionDeclaration = findAncestor(node, findFunctionDecl);
188097
+ return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
187651
188098
  }
187652
188099
  if (isStaticModifier(node) && isClassStaticBlockDeclaration(node.parent)) {
187653
188100
  const classDecl = node.parent.parent;
@@ -187697,6 +188144,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
187697
188144
  }];
187698
188145
  }
187699
188146
  }
188147
+ if (isModifier(node) && (isClassElement(parent2) || isNamedDeclaration(parent2))) {
188148
+ symbol = parent2.symbol;
188149
+ }
187700
188150
  if (!symbol) {
187701
188151
  return concatenate(fileReferenceDefinition, getDefinitionInfoForIndexSignatures(node, typeChecker));
187702
188152
  }
@@ -187893,12 +188343,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
187893
188343
  false
187894
188344
  );
187895
188345
  }
187896
- const { symbol, failedAliasResolution } = getSymbol(
188346
+ let { symbol, failedAliasResolution } = getSymbol(
187897
188347
  node,
187898
188348
  typeChecker,
187899
188349
  /*stopAtAlias*/
187900
188350
  false
187901
188351
  );
188352
+ if (isModifier(node) && (isClassElement(node.parent) || isNamedDeclaration(node.parent))) {
188353
+ symbol = node.parent.symbol;
188354
+ failedAliasResolution = false;
188355
+ }
187902
188356
  if (!symbol) return void 0;
187903
188357
  const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node);
187904
188358
  const returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker);
@@ -188403,22 +188857,24 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
188403
188857
  if (!signature) {
188404
188858
  return;
188405
188859
  }
188406
- for (let i = 0; i < node.parameters.length && i < signature.parameters.length; ++i) {
188407
- const param = node.parameters[i];
188408
- if (!isHintableDeclaration(param)) {
188409
- continue;
188410
- }
188411
- const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(param);
188412
- if (effectiveTypeAnnotation) {
188413
- continue;
188860
+ let pos = 0;
188861
+ for (const param of node.parameters) {
188862
+ if (isHintableDeclaration(param)) {
188863
+ addParameterTypeHint(param, parameterIsThisKeyword(param) ? signature.thisParameter : signature.parameters[pos]);
188414
188864
  }
188415
- const typeHints = getParameterDeclarationTypeHints(signature.parameters[i]);
188416
- if (!typeHints) {
188865
+ if (parameterIsThisKeyword(param)) {
188417
188866
  continue;
188418
188867
  }
188419
- addTypeHints(typeHints, param.questionToken ? param.questionToken.end : param.name.end);
188868
+ pos++;
188420
188869
  }
188421
188870
  }
188871
+ function addParameterTypeHint(node, symbol) {
188872
+ const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(node);
188873
+ if (effectiveTypeAnnotation || symbol === void 0) return;
188874
+ const typeHints = getParameterDeclarationTypeHints(symbol);
188875
+ if (typeHints === void 0) return;
188876
+ addTypeHints(typeHints, node.questionToken ? node.questionToken.end : node.name.end);
188877
+ }
188422
188878
  function getParameterDeclarationTypeHints(symbol) {
188423
188879
  const valueDeclaration = symbol.valueDeclaration;
188424
188880
  if (!valueDeclaration || !isParameter(valueDeclaration)) {
@@ -198290,6 +198746,7 @@ ${options.prefix}` : "\n" : options.prefix
198290
198746
  createPrinterWithRemoveCommentsNeverAsciiEscape: () => createPrinterWithRemoveCommentsNeverAsciiEscape,
198291
198747
  createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => createPrinterWithRemoveCommentsOmitTrailingSemicolon,
198292
198748
  createProgram: () => createProgram,
198749
+ createProgramDiagnostics: () => createProgramDiagnostics,
198293
198750
  createProgramHost: () => createProgramHost,
198294
198751
  createPropertyNameNodeForIdentifierOrLiteral: () => createPropertyNameNodeForIdentifierOrLiteral,
198295
198752
  createQueue: () => createQueue,
@@ -198459,6 +198916,8 @@ ${options.prefix}` : "\n" : options.prefix
198459
198916
  forEachLeadingCommentRange: () => forEachLeadingCommentRange,
198460
198917
  forEachNameInAccessChainWalkingLeft: () => forEachNameInAccessChainWalkingLeft,
198461
198918
  forEachNameOfDefaultExport: () => forEachNameOfDefaultExport,
198919
+ forEachOptionsSyntaxByName: () => forEachOptionsSyntaxByName,
198920
+ forEachProjectReference: () => forEachProjectReference,
198462
198921
  forEachPropertyAssignment: () => forEachPropertyAssignment,
198463
198922
  forEachResolvedProjectReference: () => forEachResolvedProjectReference,
198464
198923
  forEachReturnStatement: () => forEachReturnStatement,
@@ -198698,6 +199157,8 @@ ${options.prefix}` : "\n" : options.prefix
198698
199157
  getLeadingCommentRangesOfNode: () => getLeadingCommentRangesOfNode,
198699
199158
  getLeftmostAccessExpression: () => getLeftmostAccessExpression,
198700
199159
  getLeftmostExpression: () => getLeftmostExpression,
199160
+ getLibFileNameFromLibReference: () => getLibFileNameFromLibReference,
199161
+ getLibNameFromLibReference: () => getLibNameFromLibReference,
198701
199162
  getLibraryNameFromLibFileName: () => getLibraryNameFromLibFileName,
198702
199163
  getLineAndCharacterOfPosition: () => getLineAndCharacterOfPosition,
198703
199164
  getLineInfo: () => getLineInfo,
@@ -198770,6 +199231,8 @@ ${options.prefix}` : "\n" : options.prefix
198770
199231
  getOptionFromName: () => getOptionFromName,
198771
199232
  getOptionsForLibraryResolution: () => getOptionsForLibraryResolution,
198772
199233
  getOptionsNameMap: () => getOptionsNameMap,
199234
+ getOptionsSyntaxByArrayElementValue: () => getOptionsSyntaxByArrayElementValue,
199235
+ getOptionsSyntaxByValue: () => getOptionsSyntaxByValue,
198773
199236
  getOrCreateEmitNode: () => getOrCreateEmitNode,
198774
199237
  getOrUpdate: () => getOrUpdate,
198775
199238
  getOriginalNode: () => getOriginalNode,
@@ -198806,7 +199269,6 @@ ${options.prefix}` : "\n" : options.prefix
198806
199269
  getPrivateIdentifier: () => getPrivateIdentifier,
198807
199270
  getProperties: () => getProperties,
198808
199271
  getProperty: () => getProperty,
198809
- getPropertyArrayElementValue: () => getPropertyArrayElementValue,
198810
199272
  getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression,
198811
199273
  getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode,
198812
199274
  getPropertyNameFromType: () => getPropertyNameFromType,
@@ -199717,6 +200179,7 @@ ${options.prefix}` : "\n" : options.prefix
199717
200179
  moduleResolutionUsesNodeModules: () => moduleResolutionUsesNodeModules,
199718
200180
  moduleSpecifierToValidIdentifier: () => moduleSpecifierToValidIdentifier,
199719
200181
  moduleSpecifiers: () => ts_moduleSpecifiers_exports,
200182
+ moduleSupportsImportAttributes: () => moduleSupportsImportAttributes,
199720
200183
  moduleSymbolToValidIdentifier: () => moduleSymbolToValidIdentifier,
199721
200184
  moveEmitHelpers: () => moveEmitHelpers,
199722
200185
  moveRangeEnd: () => moveRangeEnd,
@@ -201080,6 +201543,7 @@ ${options.prefix}` : "\n" : options.prefix
201080
201543
  ModuleKind3["ES2022"] = "es2022";
201081
201544
  ModuleKind3["ESNext"] = "esnext";
201082
201545
  ModuleKind3["Node16"] = "node16";
201546
+ ModuleKind3["Node18"] = "node18";
201083
201547
  ModuleKind3["NodeNext"] = "nodenext";
201084
201548
  ModuleKind3["Preserve"] = "preserve";
201085
201549
  return ModuleKind3;
@@ -211504,20 +211968,19 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
211504
211968
  try {
211505
211969
  codeActions = project.getLanguageService().getCodeFixesAtPosition(file, startPosition, endPosition, args.errorCodes, this.getFormatOptions(file), this.getPreferences(file));
211506
211970
  } catch (e) {
211971
+ const error2 = e instanceof Error ? e : new Error(e);
211507
211972
  const ls = project.getLanguageService();
211508
211973
  const existingDiagCodes = [
211509
211974
  ...ls.getSyntacticDiagnostics(file),
211510
211975
  ...ls.getSemanticDiagnostics(file),
211511
211976
  ...ls.getSuggestionDiagnostics(file)
211512
- ].map(
211513
- (d) => decodedTextSpanIntersectsWith(startPosition, endPosition - startPosition, d.start, d.length) && d.code
211514
- );
211977
+ ].filter((d) => decodedTextSpanIntersectsWith(startPosition, endPosition - startPosition, d.start, d.length)).map((d) => d.code);
211515
211978
  const badCode = args.errorCodes.find((c) => !existingDiagCodes.includes(c));
211516
211979
  if (badCode !== void 0) {
211517
- e.message = `BADCLIENT: Bad error code, ${badCode} not found in range ${startPosition}..${endPosition} (found: ${existingDiagCodes.join(", ")}); could have caused this error:
211518
- ${e.message}`;
211980
+ error2.message += `
211981
+ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range ${startPosition}..${endPosition} (found: ${existingDiagCodes.join(", ")})`;
211519
211982
  }
211520
- throw e;
211983
+ throw error2;
211521
211984
  }
211522
211985
  return simplifiedResult ? codeActions.map((codeAction) => this.mapCodeFixAction(codeAction)) : codeActions;
211523
211986
  }