@makaio/framework 1.0.0-dev-1783973359164 → 1.0.0-dev-1783977266352

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 (72) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{account-identity-BYfeWLe-.mjs → account-identity-CP4DC0DL.mjs} +1 -1
  3. package/dist/{adapter-nl_xz9dz.mjs → adapter-B9vVBwli.mjs} +1 -1
  4. package/dist/adapters/node.mjs +1 -1
  5. package/dist/bus/index.mjs +1 -1
  6. package/dist/{client-BkpLM8Fx.mjs → client-CzPCSeyE.mjs} +1 -1
  7. package/dist/contracts/adapter/index.mjs +1 -1
  8. package/dist/contracts/artifact/index.d.mts +1 -1
  9. package/dist/contracts/client/index.d.mts +1 -1
  10. package/dist/contracts/client/index.mjs +1 -1
  11. package/dist/contracts/extension/index.d.mts +2 -2
  12. package/dist/contracts/extension/index.mjs +1 -1
  13. package/dist/contracts/facet/index.d.mts +1 -1
  14. package/dist/contracts/harness/index.d.mts +1 -1
  15. package/dist/contracts/index.d.mts +61 -61
  16. package/dist/contracts/index.mjs +1 -1
  17. package/dist/contracts/materialization/index.d.mts +3 -3
  18. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  19. package/dist/contracts/session/index.d.mts +2 -2
  20. package/dist/contracts/session/index.mjs +1 -1
  21. package/dist/contracts/workflow/index.d.mts +2 -2
  22. package/dist/{definition-Bj9Vr16H.d.mts → definition-D7qCBmtc.d.mts} +1 -1
  23. package/dist/{extension-D4iKUUMG.mjs → extension-Cgg45Xk1.mjs} +1 -1
  24. package/dist/git/index.mjs +8 -8
  25. package/dist/{index-DHGW7dFf.d.mts → index-2PsDAhPN.d.mts} +8 -8
  26. package/dist/{index-CtjLeK1F.d.mts → index-BXWTilGs.d.mts} +1 -1
  27. package/dist/{index-DNkR5yTY.d.mts → index-BrAp9ntB.d.mts} +47 -47
  28. package/dist/{index-C2C1qH1Y.d.mts → index-CHjKP5G0.d.mts} +8 -8
  29. package/dist/{index-CVs0Qxks.d.mts → index-CSxfU0tB.d.mts} +4 -4
  30. package/dist/{index-Lp0T_V1W.d.mts → index-CidblQAY.d.mts} +6 -6
  31. package/dist/{index-BKZAAWo2.d.mts → index-Cq6rXKae.d.mts} +88 -88
  32. package/dist/{index-9g0agW_p.d.mts → index-D3Eek6kd.d.mts} +22 -22
  33. package/dist/{index-x2gFj3BK.d.mts → index-DMQlLz2W.d.mts} +9 -9
  34. package/dist/{index-COC9jCdc.d.mts → index-DmuGKvE2.d.mts} +4 -4
  35. package/dist/{index-BDr2Ba122.d.mts → index-MTvmxwiu2.d.mts} +1 -1
  36. package/dist/{index-ButbwvVY.d.mts → index-kqxUXYe7.d.mts} +6 -6
  37. package/dist/kernel/extension/index.d.mts +1 -1
  38. package/dist/kernel/index.d.mts +2 -2
  39. package/dist/kernel/observability/index.d.mts +1 -1
  40. package/dist/{lib-DymjnkAP.mjs → lib-DktBDEoY.mjs} +1 -1
  41. package/dist/{namespace-B0uZIZYT.d.mts → namespace-TLkZRkcU.d.mts} +20 -20
  42. package/dist/{namespace-CCZXyxSe.d.mts → namespace-dgNmx9g3.d.mts} +27 -27
  43. package/dist/{native-session-supervisor-CdtVGWA9.mjs → native-session-supervisor-Bgz-Q1WH.mjs} +1 -1
  44. package/dist/package.json +1 -1
  45. package/dist/{profile-D2m94ZYD.mjs → profile-BRi6K6am.mjs} +1 -1
  46. package/dist/runtime-node/index.mjs +1 -1
  47. package/dist/{schema-aOwmHxaF.d.mts → schema-CxN7d_MU.d.mts} +1 -1
  48. package/dist/{schemas-CoJCTFod2.d.mts → schemas-CIO03KSD2.d.mts} +8 -8
  49. package/dist/{schemas-BolSW7pQ.d.mts → schemas-DlCdlCEF.d.mts} +4 -4
  50. package/dist/{schemas-n9Ff6_RX.mjs → schemas-DyJHJ8Pm.mjs} +1 -1
  51. package/dist/semver-D3Y7uMEb.mjs +1 -0
  52. package/dist/services/context-rules/index.d.mts +3 -3
  53. package/dist/services/execution-target/index.d.mts +1 -1
  54. package/dist/services/filesystem/namespace.d.mts +6 -6
  55. package/dist/services/filesystem/schemas.d.mts +3 -3
  56. package/dist/services/harness/index.d.mts +3 -3
  57. package/dist/services/index.d.mts +16 -16
  58. package/dist/services/session/index.d.mts +4 -4
  59. package/dist/services/session/session-events/namespace.d.mts +1 -1
  60. package/dist/services/session/storage/namespace.d.mts +1 -1
  61. package/dist/services/session/storage/schema.d.mts +1 -1
  62. package/dist/services/settings/namespace.d.mts +8 -8
  63. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  64. package/dist/services/subagent-template/index.d.mts +1 -1
  65. package/dist/services/subagent-template/schemas.d.mts +1 -1
  66. package/dist/{session-lRd8HZNZ.mjs → session-BxWogVkD.mjs} +1 -1
  67. package/dist/{transition-CwUIm1hJ.d.mts → transition-DjipYcC3.d.mts} +1 -1
  68. package/dist/{types-BaDYigzD.d.mts → types-DQsYUZwa.d.mts} +34 -34
  69. package/dist/{version-C1-VD-XL.mjs → version-BbWrAPld.mjs} +1 -1
  70. package/dist/workflow-engine/index.d.mts +46 -46
  71. package/package.json +2 -2
  72. package/dist/semver-BccS1s9R.mjs +0 -1
@@ -1,4 +1,4 @@
1
- import { r as ArtifactProjectionPolicy$1 } from "./schemas-BolSW7pQ.mjs";
1
+ import { r as ArtifactProjectionPolicy$1 } from "./schemas-DlCdlCEF.mjs";
2
2
  import { z } from "zod";
3
3
  import * as _$_makaio_core0 from "@makaio/framework/core";
4
4
  import { MakaioBusLike } from "@makaio/framework/core";
@@ -462,9 +462,9 @@ declare const ArtifactKindRegistrationSchema: z.ZodObject<{
462
462
  lifecycle: z.ZodOptional<z.ZodObject<{
463
463
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
464
464
  active: "active";
465
+ archived: "archived";
465
466
  fading: "fading";
466
467
  retired: "retired";
467
- archived: "archived";
468
468
  }>>;
469
469
  decayPolicy: z.ZodOptional<z.ZodString>;
470
470
  }, z.core.$strip>>;
@@ -473,12 +473,12 @@ declare const ArtifactKindRegistrationSchema: z.ZodObject<{
473
473
  projection: z.ZodOptional<z.ZodObject<{
474
474
  mode: z.ZodEnum<{
475
475
  none: "none";
476
- surface: "surface";
477
476
  comment: "comment";
477
+ surface: "surface";
478
478
  }>;
479
479
  defaultRole: z.ZodOptional<z.ZodEnum<{
480
- workpiece: "workpiece";
481
480
  artifact: "artifact";
481
+ workpiece: "workpiece";
482
482
  }>>;
483
483
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
484
484
  created: "created";
@@ -1654,9 +1654,9 @@ declare const ArtifactSchemas: {
1654
1654
  lifecycle: z.ZodOptional<z.ZodObject<{
1655
1655
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
1656
1656
  active: "active";
1657
+ archived: "archived";
1657
1658
  fading: "fading";
1658
1659
  retired: "retired";
1659
- archived: "archived";
1660
1660
  }>>;
1661
1661
  decayPolicy: z.ZodOptional<z.ZodString>;
1662
1662
  }, z.core.$strip>>;
@@ -1665,12 +1665,12 @@ declare const ArtifactSchemas: {
1665
1665
  projection: z.ZodOptional<z.ZodObject<{
1666
1666
  mode: z.ZodEnum<{
1667
1667
  none: "none";
1668
- surface: "surface";
1669
1668
  comment: "comment";
1669
+ surface: "surface";
1670
1670
  }>;
1671
1671
  defaultRole: z.ZodOptional<z.ZodEnum<{
1672
- workpiece: "workpiece";
1673
1672
  artifact: "artifact";
1673
+ workpiece: "workpiece";
1674
1674
  }>>;
1675
1675
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1676
1676
  created: "created";
@@ -1718,9 +1718,9 @@ declare const ArtifactSchemas: {
1718
1718
  lifecycle: z.ZodOptional<z.ZodObject<{
1719
1719
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
1720
1720
  active: "active";
1721
+ archived: "archived";
1721
1722
  fading: "fading";
1722
1723
  retired: "retired";
1723
- archived: "archived";
1724
1724
  }>>;
1725
1725
  decayPolicy: z.ZodOptional<z.ZodString>;
1726
1726
  }, z.core.$strip>>;
@@ -1729,12 +1729,12 @@ declare const ArtifactSchemas: {
1729
1729
  projection: z.ZodOptional<z.ZodObject<{
1730
1730
  mode: z.ZodEnum<{
1731
1731
  none: "none";
1732
- surface: "surface";
1733
1732
  comment: "comment";
1733
+ surface: "surface";
1734
1734
  }>;
1735
1735
  defaultRole: z.ZodOptional<z.ZodEnum<{
1736
- workpiece: "workpiece";
1737
1736
  artifact: "artifact";
1737
+ workpiece: "workpiece";
1738
1738
  }>>;
1739
1739
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1740
1740
  created: "created";
@@ -3055,9 +3055,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3055
3055
  lifecycle: z.ZodOptional<z.ZodObject<{
3056
3056
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
3057
3057
  active: "active";
3058
+ archived: "archived";
3058
3059
  fading: "fading";
3059
3060
  retired: "retired";
3060
- archived: "archived";
3061
3061
  }>>;
3062
3062
  decayPolicy: z.ZodOptional<z.ZodString>;
3063
3063
  }, z.core.$strip>>;
@@ -3066,12 +3066,12 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3066
3066
  projection: z.ZodOptional<z.ZodObject<{
3067
3067
  mode: z.ZodEnum<{
3068
3068
  none: "none";
3069
- surface: "surface";
3070
3069
  comment: "comment";
3070
+ surface: "surface";
3071
3071
  }>;
3072
3072
  defaultRole: z.ZodOptional<z.ZodEnum<{
3073
- workpiece: "workpiece";
3074
3073
  artifact: "artifact";
3074
+ workpiece: "workpiece";
3075
3075
  }>>;
3076
3076
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3077
3077
  created: "created";
@@ -3119,9 +3119,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3119
3119
  lifecycle: z.ZodOptional<z.ZodObject<{
3120
3120
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
3121
3121
  active: "active";
3122
+ archived: "archived";
3122
3123
  fading: "fading";
3123
3124
  retired: "retired";
3124
- archived: "archived";
3125
3125
  }>>;
3126
3126
  decayPolicy: z.ZodOptional<z.ZodString>;
3127
3127
  }, z.core.$strip>>;
@@ -3130,12 +3130,12 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3130
3130
  projection: z.ZodOptional<z.ZodObject<{
3131
3131
  mode: z.ZodEnum<{
3132
3132
  none: "none";
3133
- surface: "surface";
3134
3133
  comment: "comment";
3134
+ surface: "surface";
3135
3135
  }>;
3136
3136
  defaultRole: z.ZodOptional<z.ZodEnum<{
3137
- workpiece: "workpiece";
3138
3137
  artifact: "artifact";
3138
+ workpiece: "workpiece";
3139
3139
  }>>;
3140
3140
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3141
3141
  created: "created";
@@ -4470,9 +4470,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4470
4470
  lifecycle: z.ZodOptional<z.ZodObject<{
4471
4471
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
4472
4472
  active: "active";
4473
+ archived: "archived";
4473
4474
  fading: "fading";
4474
4475
  retired: "retired";
4475
- archived: "archived";
4476
4476
  }>>;
4477
4477
  decayPolicy: z.ZodOptional<z.ZodString>;
4478
4478
  }, z.core.$strip>>;
@@ -4481,12 +4481,12 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4481
4481
  projection: z.ZodOptional<z.ZodObject<{
4482
4482
  mode: z.ZodEnum<{
4483
4483
  none: "none";
4484
- surface: "surface";
4485
4484
  comment: "comment";
4485
+ surface: "surface";
4486
4486
  }>;
4487
4487
  defaultRole: z.ZodOptional<z.ZodEnum<{
4488
- workpiece: "workpiece";
4489
4488
  artifact: "artifact";
4489
+ workpiece: "workpiece";
4490
4490
  }>>;
4491
4491
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4492
4492
  created: "created";
@@ -4534,9 +4534,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4534
4534
  lifecycle: z.ZodOptional<z.ZodObject<{
4535
4535
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
4536
4536
  active: "active";
4537
+ archived: "archived";
4537
4538
  fading: "fading";
4538
4539
  retired: "retired";
4539
- archived: "archived";
4540
4540
  }>>;
4541
4541
  decayPolicy: z.ZodOptional<z.ZodString>;
4542
4542
  }, z.core.$strip>>;
@@ -4545,12 +4545,12 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4545
4545
  projection: z.ZodOptional<z.ZodObject<{
4546
4546
  mode: z.ZodEnum<{
4547
4547
  none: "none";
4548
- surface: "surface";
4549
4548
  comment: "comment";
4549
+ surface: "surface";
4550
4550
  }>;
4551
4551
  defaultRole: z.ZodOptional<z.ZodEnum<{
4552
- workpiece: "workpiece";
4553
4552
  artifact: "artifact";
4553
+ workpiece: "workpiece";
4554
4554
  }>>;
4555
4555
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4556
4556
  created: "created";
@@ -506,9 +506,9 @@ declare const ClientSchemas: {
506
506
  cwd: z.ZodOptional<z.ZodString>;
507
507
  machineId: z.ZodOptional<z.ZodString>;
508
508
  startMode: z.ZodOptional<z.ZodEnum<{
509
- fork: "fork";
510
509
  fresh: "fresh";
511
510
  resume: "resume";
511
+ fork: "fork";
512
512
  clear: "clear";
513
513
  compact: "compact";
514
514
  }>>;
@@ -688,8 +688,8 @@ declare const ClientSchemas: {
688
688
  reason: z.ZodEnum<{
689
689
  update: "update";
690
690
  install: "install";
691
- "set-active": "set-active";
692
691
  uninstall: "uninstall";
692
+ "set-active": "set-active";
693
693
  }>;
694
694
  }, z.core.$strip>;
695
695
  resolveBinary: {
@@ -1246,8 +1246,8 @@ declare const ClientVersionChangedSchema: z.ZodObject<{
1246
1246
  reason: z.ZodEnum<{
1247
1247
  update: "update";
1248
1248
  install: "install";
1249
- "set-active": "set-active";
1250
1249
  uninstall: "uninstall";
1250
+ "set-active": "set-active";
1251
1251
  }>;
1252
1252
  }, z.core.$strip>;
1253
1253
  type ClientVersionChanged = z.infer<typeof ClientVersionChangedSchema>;
@@ -1486,9 +1486,9 @@ type ClientSessionObservedBase = z.infer<typeof ClientSessionObservedBaseSchema>
1486
1486
  declare const CLIENT_SESSION_START_MODES: readonly ["fresh", "fork", "resume", "clear", "compact"];
1487
1487
  /** Zod schema for the client-reported session start mode. */
1488
1488
  declare const ClientSessionStartModeSchema: z.ZodEnum<{
1489
- fork: "fork";
1490
1489
  fresh: "fresh";
1491
1490
  resume: "resume";
1491
+ fork: "fork";
1492
1492
  clear: "clear";
1493
1493
  compact: "compact";
1494
1494
  }>;
@@ -1505,9 +1505,9 @@ declare const ClientSessionStartedSchema: z.ZodObject<{
1505
1505
  cwd: z.ZodOptional<z.ZodString>;
1506
1506
  machineId: z.ZodOptional<z.ZodString>;
1507
1507
  startMode: z.ZodOptional<z.ZodEnum<{
1508
- fork: "fork";
1509
1508
  fresh: "fresh";
1510
1509
  resume: "resume";
1510
+ fork: "fork";
1511
1511
  clear: "clear";
1512
1512
  compact: "compact";
1513
1513
  }>>;
@@ -2076,9 +2076,9 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2076
2076
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2077
2077
  machineId: _$zod.ZodOptional<_$zod.ZodString>;
2078
2078
  startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
2079
- fork: "fork";
2080
2079
  fresh: "fresh";
2081
2080
  resume: "resume";
2081
+ fork: "fork";
2082
2082
  clear: "clear";
2083
2083
  compact: "compact";
2084
2084
  }>>;
@@ -2258,8 +2258,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2258
2258
  reason: _$zod.ZodEnum<{
2259
2259
  update: "update";
2260
2260
  install: "install";
2261
- "set-active": "set-active";
2262
2261
  uninstall: "uninstall";
2262
+ "set-active": "set-active";
2263
2263
  }>;
2264
2264
  }, _$zod_v4_core0.$strip>;
2265
2265
  resolveBinary: {
@@ -2716,9 +2716,9 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2716
2716
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2717
2717
  machineId: _$zod.ZodOptional<_$zod.ZodString>;
2718
2718
  startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
2719
- fork: "fork";
2720
2719
  fresh: "fresh";
2721
2720
  resume: "resume";
2721
+ fork: "fork";
2722
2722
  clear: "clear";
2723
2723
  compact: "compact";
2724
2724
  }>>;
@@ -2898,8 +2898,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2898
2898
  reason: _$zod.ZodEnum<{
2899
2899
  update: "update";
2900
2900
  install: "install";
2901
- "set-active": "set-active";
2902
2901
  uninstall: "uninstall";
2902
+ "set-active": "set-active";
2903
2903
  }>;
2904
2904
  }, _$zod_v4_core0.$strip>;
2905
2905
  resolveBinary: {
@@ -539,8 +539,8 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
539
539
  extensionName: z.ZodString;
540
540
  warnings: z.ZodArray<z.ZodObject<{
541
541
  severity: z.ZodEnum<{
542
- degraded: "degraded";
543
542
  info: "info";
543
+ degraded: "degraded";
544
544
  recommended: "recommended";
545
545
  }>;
546
546
  title: z.ZodString;
@@ -579,8 +579,8 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
579
579
  extensionName: z.ZodString;
580
580
  warnings: z.ZodArray<z.ZodObject<{
581
581
  severity: z.ZodEnum<{
582
- degraded: "degraded";
583
582
  info: "info";
583
+ degraded: "degraded";
584
584
  recommended: "recommended";
585
585
  }>;
586
586
  title: z.ZodString;
@@ -1045,8 +1045,8 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
1045
1045
  extensionName: z.ZodString;
1046
1046
  warnings: z.ZodArray<z.ZodObject<{
1047
1047
  severity: z.ZodEnum<{
1048
- degraded: "degraded";
1049
1048
  info: "info";
1049
+ degraded: "degraded";
1050
1050
  recommended: "recommended";
1051
1051
  }>;
1052
1052
  title: z.ZodString;
@@ -1085,8 +1085,8 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
1085
1085
  extensionName: z.ZodString;
1086
1086
  warnings: z.ZodArray<z.ZodObject<{
1087
1087
  severity: z.ZodEnum<{
1088
- degraded: "degraded";
1089
1088
  info: "info";
1089
+ degraded: "degraded";
1090
1090
  recommended: "recommended";
1091
1091
  }>;
1092
1092
  title: z.ZodString;
@@ -2071,7 +2071,7 @@ declare const sessionStorageSchema: _$_makaio_storage_drizzle0.DialectSchema<{
2071
2071
  tableName: "sessions";
2072
2072
  dataType: "string";
2073
2073
  columnType: "SQLiteText";
2074
- data: "fork" | "subagent" | "branch" | "compress" | "rewrite" | "coordinator" | "aside";
2074
+ data: "fork" | "subagent" | "compress" | "branch" | "rewrite" | "coordinator" | "aside";
2075
2075
  driverParam: string;
2076
2076
  notNull: false;
2077
2077
  hasDefault: false;
@@ -168,8 +168,8 @@ type ContainerRuntime = z.infer<typeof ContainerRuntimeSchema>;
168
168
  * Container state.
169
169
  */
170
170
  declare const ContainerStateSchema: z.ZodEnum<{
171
- running: "running";
172
171
  created: "created";
172
+ running: "running";
173
173
  stopped: "stopped";
174
174
  destroyed: "destroyed";
175
175
  }>;
@@ -381,8 +381,8 @@ type StatusRequest = z.infer<typeof StatusRequestSchema>;
381
381
  */
382
382
  declare const StatusResponseSchema: z.ZodObject<{
383
383
  state: z.ZodEnum<{
384
- running: "running";
385
384
  created: "created";
385
+ running: "running";
386
386
  stopped: "stopped";
387
387
  destroyed: "destroyed";
388
388
  }>;
@@ -587,8 +587,8 @@ declare const DockerNamespace: _$_makaio_core0.BusNamespaceDefinition<"docker",
587
587
  }, z.core.$strip>;
588
588
  response: z.ZodObject<{
589
589
  state: z.ZodEnum<{
590
- running: "running";
591
590
  created: "created";
591
+ running: "running";
592
592
  stopped: "stopped";
593
593
  destroyed: "destroyed";
594
594
  }>;
@@ -774,8 +774,8 @@ declare const DockerSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
774
774
  }, z.core.$strip>;
775
775
  response: z.ZodObject<{
776
776
  state: z.ZodEnum<{
777
- running: "running";
778
777
  created: "created";
778
+ running: "running";
779
779
  stopped: "stopped";
780
780
  destroyed: "destroyed";
781
781
  }>;
@@ -959,8 +959,8 @@ declare const ContainerSpawnNamespace: _$_makaio_core0.BusNamespaceDefinition<"d
959
959
  }, _$zod_v4_core0.$strip>;
960
960
  response: _$zod.ZodObject<{
961
961
  state: _$zod.ZodEnum<{
962
- running: "running";
963
962
  created: "created";
963
+ running: "running";
964
964
  stopped: "stopped";
965
965
  destroyed: "destroyed";
966
966
  }>;
@@ -1142,8 +1142,8 @@ declare const ContainerSpawnSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
1142
1142
  }, _$zod_v4_core0.$strip>;
1143
1143
  response: _$zod.ZodObject<{
1144
1144
  state: _$zod.ZodEnum<{
1145
- running: "running";
1146
1145
  created: "created";
1146
+ running: "running";
1147
1147
  stopped: "stopped";
1148
1148
  destroyed: "destroyed";
1149
1149
  }>;
@@ -1,2 +1,2 @@
1
- import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-CtjLeK1F.mjs";
1
+ import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-BXWTilGs.mjs";
2
2
  export { ContributionProcessor, ExtensionCoordinator, ExtensionCoordinatorOptions, ExtensionRuntimeSurface, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, RuntimeEnvironment, coalesceExtensionOverrides, filterEligibleExtensions };
@@ -1,5 +1,5 @@
1
- import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index-COC9jCdc.mjs";
2
- import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-CtjLeK1F.mjs";
1
+ import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index-DmuGKvE2.mjs";
2
+ import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-BXWTilGs.mjs";
3
3
  import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-WsWu-rcK.mjs";
4
4
  import { a as KernelSchemas, i as setWorkflowTriggerTypeRegistry, n as KernelSubjects, r as getWorkflowTriggerTypeRegistry, t as KernelNamespace } from "../index-FDyqQIt5.mjs";
5
5
  import { a as MachineIdentity, c as StorageProvider, i as IdentityProvider, n as NoTransportProvider, o as TransportProvider, r as MemoryStorageProvider, s as StorageCleanup, t as EphemeralIdentityProvider } from "../index-DoLdETfR.mjs";
@@ -1,2 +1,2 @@
1
- import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index-COC9jCdc.mjs";
1
+ import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index-DmuGKvE2.mjs";
2
2
  export { ComponentIdentitySchema, ComponentInfo, ComponentInfoSchema, ComponentState, ComponentStateSchema, ExtensionInfo, ExtensionInfoSchema, ExtensionNamespace, ExtensionSubjects, ExtensionWarningEntry, ExtensionWarningEntrySchema, ServiceInfo, ServiceInfoSchema };
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-DTipWd-i.mjs";import{a as r,i,n as a,o,r as s,s as c,t as l}from"./lib-DIVnpS8e.mjs";import{n as u,r as d,t as f}from"./lib-ClRTNIuz.mjs";var p=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseCommand=void 0;let t=o();e.BaseCommand=class extends t.Command{constructor(){super(...arguments),this.cwd=t.Option.String(`--cwd`,{hidden:!0})}validateAndExecute(){if(this.cwd!==void 0)throw new t.UsageError(`The --cwd option is ambiguous when used anywhere else than the very first parameter provided in the command line, before even the command path`);return super.validateAndExecute()}}})),m=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WorkspaceRequiredError=void 0;let t=l(),n=f(),r=o();e.WorkspaceRequiredError=class extends r.UsageError{constructor(e,r){let i=n.ppath.relative(e,r),a=n.ppath.join(e,t.Manifest.fileName);super(`This command can only be run from within a workspace of your project (${i} isn't a workspace of ${a}).`)}}})),h=n(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),g=n(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),_=n(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=h(),a=g();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},_=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};_(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),_(`NUMERICIDENTIFIERLOOSE`,`\\d+`),_(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),_(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),_(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),_(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),_(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),_(`BUILDIDENTIFIER`,`${f}+`),_(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),_(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),_(`FULL`,`^${c[u.FULLPLAIN]}$`),_(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),_(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),_(`GTLT`,`((?:<|>)?=?)`),_(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),_(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),_(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),_(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),_(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),_(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),_(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),_(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),_(`COERCERTL`,c[u.COERCE],!0),_(`COERCERTLFULL`,c[u.COERCEFULL],!0),_(`LONETILDE`,`(?:~>?)`),_(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,_(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),_(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),_(`LONECARET`,`(?:\\^)`),_(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,_(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),_(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),_(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),_(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),_(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,_(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),_(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),_(`STAR`,`(<|>)?=?\\s*\\*`),_(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),_(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),v=n(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),y=n(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),b=n(((e,t)=>{let n=g(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=h(),{safeRe:a,t:o}=_(),s=v(),{compareIdentifiers:c}=y();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),x=n(((e,t)=>{let n=b();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),S=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),C=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),w=n(((e,t)=>{let n=b();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),T=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),E=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).major})),D=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).minor})),O=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).patch})),k=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),A=n(((e,t)=>{let n=b();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),j=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(t,e,r)})),M=n(((e,t)=>{let n=A();t.exports=(e,t)=>n(e,t,!0)})),N=n(((e,t)=>{let n=b();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),P=n(((e,t)=>{let n=N();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),F=n(((e,t)=>{let n=N();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),I=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)>0})),L=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)<0})),R=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)===0})),z=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)!==0})),B=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)>=0})),V=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)<=0})),H=n(((e,t)=>{let n=R(),r=z(),i=I(),a=B(),o=L(),s=V();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),U=n(((e,t)=>{let n=b(),r=x(),{safeRe:i,t:a}=_();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),W=n(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),G=n(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&x(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,N(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let h=e.split(` `).map(e=>C(e,this.options)).join(` `).split(/\s+/).map(e=>M(e,this.options));i&&(h=h.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,h);let g=new Map,_=h.map(e=>new a(e,this.options));for(let e of _){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has(``)&&g.delete(``);let v=[...g.values()];return r.set(t,v),v}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>S(e,n)&&t.set.some(t=>S(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}};let r=new(W()),i=v(),a=K(),o=g(),s=b(),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=_(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=h(),y=e=>e.value===`<0.0.0-0`,x=e=>e.value===``,S=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},C=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=D(e,t),o(`caret`,e),e=T(e,t),o(`tildes`,e),e=k(e,t),o(`xrange`,e),e=j(e,t),o(`stars`,e),e),w=e=>!e||e.toLowerCase()===`x`||e===`*`,T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(` `),E=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return w(n)?s=``:w(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:w(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},D=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(` `),O=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return w(n)?c=``:w(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},k=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>A(e,t)).join(` `)),A=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=w(i),u=l||w(a),d=u||w(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},j=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),M=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),N=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=w(r)?``:w(i)?`>=${r}.0.0${e?`-0`:``}`:w(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=w(l)?``:w(u)?`<${+l+1}.0.0-0`:w(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),P=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),K=n(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=v(),{safeRe:i,t:a}=_(),o=H(),s=g(),c=b(),l=G()})),q=n(((e,t)=>{let n=G();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),J=n(((e,t)=>{let n=G();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),ee=n(((e,t)=>{let n=b(),r=G();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),te=n(((e,t)=>{let n=b(),r=G();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),ne=n(((e,t)=>{let n=b(),r=G(),i=I();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),re=n(((e,t)=>{let n=G();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Y=n(((e,t)=>{let n=b(),r=K(),{ANY:i}=r,a=G(),o=q(),s=I(),c=L(),l=V(),u=B();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),ie=n(((e,t)=>{let n=Y();t.exports=(e,t,r)=>n(e,t,`>`,r)})),ae=n(((e,t)=>{let n=Y();t.exports=(e,t,r)=>n(e,t,`<`,r)})),oe=n(((e,t)=>{let n=G();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),se=n(((e,t)=>{let n=q(),r=A();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),ce=n(((e,t)=>{let n=G(),r=K(),{ANY:i}=r,a=q(),o=A(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),le=n(((e,t)=>{let n=_(),r=h(),i=b(),a=y();t.exports={parse:x(),valid:S(),clean:C(),inc:w(),diff:T(),major:E(),minor:D(),patch:O(),prerelease:k(),compare:A(),rcompare:j(),compareLoose:M(),compareBuild:N(),sort:P(),rsort:F(),gt:I(),lt:L(),eq:R(),neq:z(),gte:B(),lte:V(),cmp:H(),coerce:U(),Comparator:K(),Range:G(),satisfies:q(),toComparators:J(),maxSatisfying:ee(),minSatisfying:te(),minVersion:ne(),validRange:re(),outside:Y(),gtr:ie(),ltr:ae(),intersects:oe(),simplifyRange:se(),subset:ce(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}})),X=n((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getDynamicLibs=void 0;let n=(u(),e(d)),i=n.__importStar($()),p=n.__importStar(l()),m=n.__importStar(f()),h=n.__importStar(s()),g=n.__importStar(r()),_=n.__importStar(a()),v=n.__importStar(o()),y=n.__importStar(le()),b=n.__importStar(c());t.getDynamicLibs=()=>new Map([[`@yarnpkg/cli`,i],[`@yarnpkg/core`,p],[`@yarnpkg/fslib`,m],[`@yarnpkg/libzip`,h],[`@yarnpkg/parsers`,g],[`@yarnpkg/shell`,_],[`clipanion`,v],[`semver`,y],[`typanion`,b]])})),ue=n(((e,t)=>{t.exports={name:`@yarnpkg/cli`,version:`4.16.0`,license:`BSD-2-Clause`,main:`./lib/index.js`,exports:{".":`./lib/index.js`,"./package.json":`./package.json`},dependencies:{"@yarnpkg/core":`^4.8.0`,"@yarnpkg/fslib":`^3.1.5`,"@yarnpkg/libzip":`^3.2.2`,"@yarnpkg/parsers":`^3.0.3`,"@yarnpkg/plugin-catalog":`^1.0.2`,"@yarnpkg/plugin-compat":`^4.0.12`,"@yarnpkg/plugin-constraints":`^4.0.5`,"@yarnpkg/plugin-dlx":`^4.0.2`,"@yarnpkg/plugin-essentials":`^4.6.0`,"@yarnpkg/plugin-exec":`^3.1.0`,"@yarnpkg/plugin-file":`^3.0.2`,"@yarnpkg/plugin-git":`^3.2.0`,"@yarnpkg/plugin-github":`^3.0.2`,"@yarnpkg/plugin-http":`^3.0.3`,"@yarnpkg/plugin-init":`^4.1.2`,"@yarnpkg/plugin-interactive-tools":`^4.1.0`,"@yarnpkg/plugin-jsr":`^1.1.1`,"@yarnpkg/plugin-link":`^3.0.2`,"@yarnpkg/plugin-nm":`^4.0.9`,"@yarnpkg/plugin-npm":`^3.6.0`,"@yarnpkg/plugin-npm-cli":`^4.5.0`,"@yarnpkg/plugin-pack":`^4.0.4`,"@yarnpkg/plugin-patch":`^4.0.4`,"@yarnpkg/plugin-pnp":`^4.1.7`,"@yarnpkg/plugin-pnpm":`^2.2.0`,"@yarnpkg/plugin-stage":`^4.0.2`,"@yarnpkg/plugin-typescript":`^4.1.3`,"@yarnpkg/plugin-version":`^4.2.0`,"@yarnpkg/plugin-workspace-tools":`^4.1.7`,"@yarnpkg/shell":`^4.1.3`,"ci-info":`^4.0.0`,clipanion:`^4.0.0-rc.2`,semver:`^7.1.2`,tslib:`^2.4.0`,typanion:`^3.14.0`},devDependencies:{"@types/semver":`^7.1.0`,"@yarnpkg/builder":`^4.2.3`,"@yarnpkg/monorepo":`^0.0.0`,"@yarnpkg/pnpify":`^4.1.6`},peerDependencies:{"@yarnpkg/core":`^4.8.0`},scripts:{postpack:`rm -rf lib`,prepack:`run build:compile "$(pwd)"`,"build:cli+hook":`run build:pnp:hook && builder build bundle`,"build:cli":`builder build bundle`,"run:cli":`builder run`,"update-local":`run build:cli --no-git-hash && rsync -a --delete bundles/ bin/`},publishConfig:{main:`./lib/index.js`,bin:null,exports:{".":`./lib/index.js`,"./package.json":`./package.json`}},files:[`/lib/**/*`,`!/lib/pluginConfiguration.*`,`!/lib/cli.*`],"@yarnpkg/builder":{bundles:{standard:[`@yarnpkg/plugin-essentials`,`@yarnpkg/plugin-catalog`,`@yarnpkg/plugin-compat`,`@yarnpkg/plugin-constraints`,`@yarnpkg/plugin-dlx`,`@yarnpkg/plugin-exec`,`@yarnpkg/plugin-file`,`@yarnpkg/plugin-git`,`@yarnpkg/plugin-github`,`@yarnpkg/plugin-http`,`@yarnpkg/plugin-init`,`@yarnpkg/plugin-interactive-tools`,`@yarnpkg/plugin-jsr`,`@yarnpkg/plugin-link`,`@yarnpkg/plugin-nm`,`@yarnpkg/plugin-npm`,`@yarnpkg/plugin-npm-cli`,`@yarnpkg/plugin-pack`,`@yarnpkg/plugin-patch`,`@yarnpkg/plugin-pnp`,`@yarnpkg/plugin-pnpm`,`@yarnpkg/plugin-stage`,`@yarnpkg/plugin-typescript`,`@yarnpkg/plugin-version`,`@yarnpkg/plugin-workspace-tools`]}},repository:{type:`git`,url:`git+https://github.com/yarnpkg/berry.git`,directory:`packages/yarnpkg-cli`},engines:{node:`>=18.12.0`}}})),Z=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getPluginConfiguration=a;let r=(u(),e(d)).__importDefault(ue()),i=X();function a(){let e=new Set;for(let t of r.default[`@yarnpkg/builder`].bundles.standard)e.add(t);let n=(0,i.getDynamicLibs)();for(let r of e)n.set(r,t(r).default);return{plugins:e,modules:n}}})),de=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.openWorkspace=r;let t=l(),n=m();async function r(e,r){let{project:i,workspace:a}=await t.Project.find(e,r);if(!a)throw new n.WorkspaceRequiredError(i.cwd,r);return a}})),Q=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluginCommands=void 0,e.pluginCommands=new Map([])})),fe=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getCli=x,e.runExit=S;let n=l(),r=f(),a=t(`child_process`),s=i(),c=o(),u=Q(),d=Z();function p({cwd:e,pluginConfiguration:t}){let r=new c.Cli({binaryLabel:`Yarn Package Manager`,binaryName:`yarn`,binaryVersion:n.YarnVersion??`<unknown>`});return Object.assign(r,{defaultContext:{...c.Cli.defaultContext,cwd:e,plugins:t,quiet:!1,stdin:process.stdin,stdout:process.stdout,stderr:process.stderr}})}function m(e){if(n.miscUtils.parseOptionalBoolean(process.env.YARN_IGNORE_NODE))return!0;let t=process.versions.node,r=`>=18.12.0`;if(n.semverUtils.satisfiesWithPrereleases(t,r))return!0;let i=new c.UsageError(`This tool requires a Node version compatible with ${r} (got ${t}). Upgrade Node, or set \`YARN_IGNORE_NODE=1\` in your environment.`);return c.Cli.defaultContext.stdout.write(e.error(i)),!1}async function h({selfPath:e,pluginConfiguration:t}){return await n.Configuration.find(r.npath.toPortablePath(process.cwd()),t,{strict:!1,usePathCheck:e})}function g(e,t,{yarnPath:n}){if(!r.xfs.existsSync(n))return e.error(Error(`The "yarn-path" option has been set, but the specified location doesn't exist (${n}).`)),1;process.on(`SIGINT`,()=>{});let i={stdio:`inherit`,env:{...process.env,YARN_IGNORE_PATH:`1`}};try{(0,a.execFileSync)(process.execPath,[r.npath.fromPortablePath(n),...t],i)}catch(e){return e.status??1}return 0}function _(e,t){let n=null,i=t;return t.length>=2&&t[0]===`--cwd`?(n=r.npath.toPortablePath(t[1]),i=t.slice(2)):t.length>=1&&t[0].startsWith(`--cwd=`)?(n=r.npath.toPortablePath(t[0].slice(6)),i=t.slice(1)):t[0]===`add`&&t[t.length-2]===`--cwd`&&(n=r.npath.toPortablePath(t[t.length-1]),i=t.slice(0,t.length-2)),e.defaultContext.cwd=n===null?r.ppath.cwd():r.ppath.resolve(n),i}function v(e,{configuration:t}){if(!t.get(`enableTelemetry`)||s.isCI||!process.stdout.isTTY)return;n.Configuration.telemetry=new n.TelemetryManager(t,`puba9cdc10ec5790a2cf4969dd413a47270`);let r=/^@yarnpkg\/plugin-(.*)$/;for(let e of t.plugins.keys())u.pluginCommands.has(e.match(r)?.[1]??``)&&n.Configuration.telemetry?.reportPluginName(e);e.binaryVersion&&n.Configuration.telemetry.reportVersion(e.binaryVersion)}function y(e,{configuration:t}){for(let n of t.plugins.values())for(let t of n.commands||[])e.register(t)}async function b(e,t,{selfPath:r,pluginConfiguration:i}){if(!m(e))return 1;let a=await h({selfPath:r,pluginConfiguration:i}),o=a.get(`yarnPath`),s=a.get(`ignorePath`);if(o&&!s)return g(e,t,{yarnPath:o});delete process.env.YARN_IGNORE_PATH;let c=_(e,t);v(e,{configuration:a}),y(e,{configuration:a});let l=e.process(c,e.defaultContext);return l.help||n.Configuration.telemetry?.reportCommandName(l.path.join(` `)),await e.run(l,e.defaultContext)}async function x({cwd:e=r.ppath.cwd(),pluginConfiguration:t=(0,d.getPluginConfiguration)()}={}){let n=p({cwd:e,pluginConfiguration:t});return y(n,{configuration:await h({pluginConfiguration:t,selfPath:null})}),n}async function S(e,{cwd:t=r.ppath.cwd(),selfPath:n,pluginConfiguration:i}){let a=p({cwd:t,pluginConfiguration:i});function o(){c.Cli.defaultContext.stdout.write(`ERROR: Yarn is terminating due to an unexpected empty event loop.
1
+ import{a as e,i as t,t as n}from"./chunk-DTipWd-i.mjs";import{a as r,i,n as a,o,r as s,s as c,t as l}from"./lib-DIVnpS8e.mjs";import{n as u,r as d,t as f}from"./lib-ClRTNIuz.mjs";var p=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseCommand=void 0;let t=o();e.BaseCommand=class extends t.Command{constructor(){super(...arguments),this.cwd=t.Option.String(`--cwd`,{hidden:!0})}validateAndExecute(){if(this.cwd!==void 0)throw new t.UsageError(`The --cwd option is ambiguous when used anywhere else than the very first parameter provided in the command line, before even the command path`);return super.validateAndExecute()}}})),m=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WorkspaceRequiredError=void 0;let t=l(),n=f(),r=o();e.WorkspaceRequiredError=class extends r.UsageError{constructor(e,r){let i=n.ppath.relative(e,r),a=n.ppath.join(e,t.Manifest.fileName);super(`This command can only be run from within a workspace of your project (${i} isn't a workspace of ${a}).`)}}})),h=n(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),g=n(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),_=n(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=h(),a=g();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},_=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};_(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),_(`NUMERICIDENTIFIERLOOSE`,`\\d+`),_(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),_(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),_(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),_(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),_(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),_(`BUILDIDENTIFIER`,`${f}+`),_(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),_(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),_(`FULL`,`^${c[u.FULLPLAIN]}$`),_(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),_(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),_(`GTLT`,`((?:<|>)?=?)`),_(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),_(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),_(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),_(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),_(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),_(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),_(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),_(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),_(`COERCERTL`,c[u.COERCE],!0),_(`COERCERTLFULL`,c[u.COERCEFULL],!0),_(`LONETILDE`,`(?:~>?)`),_(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,_(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),_(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),_(`LONECARET`,`(?:\\^)`),_(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,_(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),_(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),_(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),_(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),_(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,_(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),_(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),_(`STAR`,`(<|>)?=?\\s*\\*`),_(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),_(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),v=n(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),y=n(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),b=n(((e,t)=>{let n=g(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=h(),{safeRe:a,t:o}=_(),s=v(),{compareIdentifiers:c}=y();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),x=n(((e,t)=>{let n=b();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),S=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),C=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),w=n(((e,t)=>{let n=b();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),T=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),E=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).major})),D=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).minor})),O=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).patch})),k=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),A=n(((e,t)=>{let n=b();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),j=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(t,e,r)})),M=n(((e,t)=>{let n=A();t.exports=(e,t)=>n(e,t,!0)})),N=n(((e,t)=>{let n=b();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),P=n(((e,t)=>{let n=N();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),F=n(((e,t)=>{let n=N();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),I=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)>0})),L=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)<0})),R=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)===0})),z=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)!==0})),B=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)>=0})),V=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)<=0})),H=n(((e,t)=>{let n=R(),r=z(),i=I(),a=B(),o=L(),s=V();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),U=n(((e,t)=>{let n=b(),r=x(),{safeRe:i,t:a}=_();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),W=n(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),G=n(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&x(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,N(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let h=e.split(` `).map(e=>C(e,this.options)).join(` `).split(/\s+/).map(e=>M(e,this.options));i&&(h=h.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,h);let g=new Map,_=h.map(e=>new a(e,this.options));for(let e of _){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has(``)&&g.delete(``);let v=[...g.values()];return r.set(t,v),v}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>S(e,n)&&t.set.some(t=>S(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}};let r=new(W()),i=v(),a=K(),o=g(),s=b(),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=_(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=h(),y=e=>e.value===`<0.0.0-0`,x=e=>e.value===``,S=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},C=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=D(e,t),o(`caret`,e),e=T(e,t),o(`tildes`,e),e=k(e,t),o(`xrange`,e),e=j(e,t),o(`stars`,e),e),w=e=>!e||e.toLowerCase()===`x`||e===`*`,T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(` `),E=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return w(n)?s=``:w(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:w(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},D=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(` `),O=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return w(n)?c=``:w(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},k=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>A(e,t)).join(` `)),A=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=w(i),u=l||w(a),d=u||w(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},j=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),M=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),N=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=w(r)?``:w(i)?`>=${r}.0.0${e?`-0`:``}`:w(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=w(l)?``:w(u)?`<${+l+1}.0.0-0`:w(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),P=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),K=n(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=v(),{safeRe:i,t:a}=_(),o=H(),s=g(),c=b(),l=G()})),q=n(((e,t)=>{let n=G();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),J=n(((e,t)=>{let n=G();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),ee=n(((e,t)=>{let n=b(),r=G();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),te=n(((e,t)=>{let n=b(),r=G();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),ne=n(((e,t)=>{let n=b(),r=G(),i=I();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),re=n(((e,t)=>{let n=G();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Y=n(((e,t)=>{let n=b(),r=K(),{ANY:i}=r,a=G(),o=q(),s=I(),c=L(),l=V(),u=B();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),ie=n(((e,t)=>{let n=Y();t.exports=(e,t,r)=>n(e,t,`>`,r)})),ae=n(((e,t)=>{let n=Y();t.exports=(e,t,r)=>n(e,t,`<`,r)})),oe=n(((e,t)=>{let n=G();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),se=n(((e,t)=>{let n=q(),r=A();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),ce=n(((e,t)=>{let n=G(),r=K(),{ANY:i}=r,a=q(),o=A(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),le=n(((e,t)=>{let n=_(),r=h(),i=b(),a=y();t.exports={parse:x(),valid:S(),clean:C(),inc:w(),diff:T(),major:E(),minor:D(),patch:O(),prerelease:k(),compare:A(),rcompare:j(),compareLoose:M(),compareBuild:N(),sort:P(),rsort:F(),gt:I(),lt:L(),eq:R(),neq:z(),gte:B(),lte:V(),cmp:H(),coerce:U(),Comparator:K(),Range:G(),satisfies:q(),toComparators:J(),maxSatisfying:ee(),minSatisfying:te(),minVersion:ne(),validRange:re(),outside:Y(),gtr:ie(),ltr:ae(),intersects:oe(),simplifyRange:se(),subset:ce(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}})),X=n((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getDynamicLibs=void 0;let n=(u(),e(d)),i=n.__importStar($()),p=n.__importStar(l()),m=n.__importStar(f()),h=n.__importStar(s()),g=n.__importStar(r()),_=n.__importStar(a()),v=n.__importStar(o()),y=n.__importStar(le()),b=n.__importStar(c());t.getDynamicLibs=()=>new Map([[`@yarnpkg/cli`,i],[`@yarnpkg/core`,p],[`@yarnpkg/fslib`,m],[`@yarnpkg/libzip`,h],[`@yarnpkg/parsers`,g],[`@yarnpkg/shell`,_],[`clipanion`,v],[`semver`,y],[`typanion`,b]])})),ue=n(((e,t)=>{t.exports={name:`@yarnpkg/cli`,version:`4.17.1`,license:`BSD-2-Clause`,main:`./lib/index.js`,exports:{".":`./lib/index.js`,"./package.json":`./package.json`},dependencies:{"@yarnpkg/core":`^4.9.0`,"@yarnpkg/fslib":`^3.1.5`,"@yarnpkg/libzip":`^3.2.2`,"@yarnpkg/parsers":`^3.0.3`,"@yarnpkg/plugin-catalog":`^1.0.2`,"@yarnpkg/plugin-compat":`^4.0.13`,"@yarnpkg/plugin-constraints":`^4.0.5`,"@yarnpkg/plugin-dlx":`^4.0.2`,"@yarnpkg/plugin-essentials":`^4.6.1`,"@yarnpkg/plugin-exec":`^3.1.0`,"@yarnpkg/plugin-file":`^3.0.2`,"@yarnpkg/plugin-git":`^3.2.0`,"@yarnpkg/plugin-github":`^3.0.2`,"@yarnpkg/plugin-http":`^3.0.3`,"@yarnpkg/plugin-init":`^4.1.2`,"@yarnpkg/plugin-interactive-tools":`^4.1.0`,"@yarnpkg/plugin-jsr":`^1.1.1`,"@yarnpkg/plugin-link":`^3.0.2`,"@yarnpkg/plugin-nm":`^4.1.0`,"@yarnpkg/plugin-npm":`^3.7.0`,"@yarnpkg/plugin-npm-cli":`^4.5.0`,"@yarnpkg/plugin-pack":`^4.0.4`,"@yarnpkg/plugin-patch":`^4.0.5`,"@yarnpkg/plugin-pnp":`^4.2.0`,"@yarnpkg/plugin-pnpm":`^2.3.0`,"@yarnpkg/plugin-stage":`^4.0.2`,"@yarnpkg/plugin-typescript":`^4.1.3`,"@yarnpkg/plugin-version":`^4.2.0`,"@yarnpkg/plugin-workspace-tools":`^4.1.7`,"@yarnpkg/shell":`^4.1.3`,"ci-info":`^4.0.0`,clipanion:`^4.0.0-rc.2`,semver:`^7.1.2`,tslib:`^2.4.0`,typanion:`^3.14.0`},devDependencies:{"@types/semver":`^7.1.0`,"@yarnpkg/builder":`^4.2.3`,"@yarnpkg/monorepo":`^0.0.0`,"@yarnpkg/pnpify":`^4.1.6`},peerDependencies:{"@yarnpkg/core":`^4.9.0`},scripts:{postpack:`rm -rf lib`,prepack:`run build:compile "$(pwd)"`,"build:cli+hook":`run build:pnp:hook && builder build bundle`,"build:cli":`builder build bundle`,"run:cli":`builder run`,"update-local":`run build:cli --no-git-hash && rsync -a --delete bundles/ bin/`},publishConfig:{main:`./lib/index.js`,bin:null,exports:{".":`./lib/index.js`,"./package.json":`./package.json`}},files:[`/lib/**/*`,`!/lib/pluginConfiguration.*`,`!/lib/cli.*`],"@yarnpkg/builder":{bundles:{standard:[`@yarnpkg/plugin-essentials`,`@yarnpkg/plugin-catalog`,`@yarnpkg/plugin-compat`,`@yarnpkg/plugin-constraints`,`@yarnpkg/plugin-dlx`,`@yarnpkg/plugin-exec`,`@yarnpkg/plugin-file`,`@yarnpkg/plugin-git`,`@yarnpkg/plugin-github`,`@yarnpkg/plugin-http`,`@yarnpkg/plugin-init`,`@yarnpkg/plugin-interactive-tools`,`@yarnpkg/plugin-jsr`,`@yarnpkg/plugin-link`,`@yarnpkg/plugin-nm`,`@yarnpkg/plugin-npm`,`@yarnpkg/plugin-npm-cli`,`@yarnpkg/plugin-pack`,`@yarnpkg/plugin-patch`,`@yarnpkg/plugin-pnp`,`@yarnpkg/plugin-pnpm`,`@yarnpkg/plugin-stage`,`@yarnpkg/plugin-typescript`,`@yarnpkg/plugin-version`,`@yarnpkg/plugin-workspace-tools`]}},repository:{type:`git`,url:`git+https://github.com/yarnpkg/berry.git`,directory:`packages/yarnpkg-cli`},engines:{node:`>=18.12.0`}}})),Z=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getPluginConfiguration=a;let r=(u(),e(d)).__importDefault(ue()),i=X();function a(){let e=new Set;for(let t of r.default[`@yarnpkg/builder`].bundles.standard)e.add(t);let n=(0,i.getDynamicLibs)();for(let r of e)n.set(r,t(r).default);return{plugins:e,modules:n}}})),de=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.openWorkspace=r;let t=l(),n=m();async function r(e,r){let{project:i,workspace:a}=await t.Project.find(e,r);if(!a)throw new n.WorkspaceRequiredError(i.cwd,r);return a}})),Q=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluginCommands=void 0,e.pluginCommands=new Map([])})),fe=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getCli=x,e.runExit=S;let n=l(),r=f(),a=t(`child_process`),s=i(),c=o(),u=Q(),d=Z();function p({cwd:e,pluginConfiguration:t}){let r=new c.Cli({binaryLabel:`Yarn Package Manager`,binaryName:`yarn`,binaryVersion:n.YarnVersion??`<unknown>`});return Object.assign(r,{defaultContext:{...c.Cli.defaultContext,cwd:e,plugins:t,quiet:!1,stdin:process.stdin,stdout:process.stdout,stderr:process.stderr}})}function m(e){if(n.miscUtils.parseOptionalBoolean(process.env.YARN_IGNORE_NODE))return!0;let t=process.versions.node,r=`>=18.12.0`;if(n.semverUtils.satisfiesWithPrereleases(t,r))return!0;let i=new c.UsageError(`This tool requires a Node version compatible with ${r} (got ${t}). Upgrade Node, or set \`YARN_IGNORE_NODE=1\` in your environment.`);return c.Cli.defaultContext.stdout.write(e.error(i)),!1}async function h({selfPath:e,pluginConfiguration:t}){return await n.Configuration.find(r.npath.toPortablePath(process.cwd()),t,{strict:!1,usePathCheck:e})}function g(e,t,{yarnPath:n}){if(!r.xfs.existsSync(n))return e.error(Error(`The "yarn-path" option has been set, but the specified location doesn't exist (${n}).`)),1;process.on(`SIGINT`,()=>{});let i={stdio:`inherit`,env:{...process.env,YARN_IGNORE_PATH:`1`}};try{(0,a.execFileSync)(process.execPath,[r.npath.fromPortablePath(n),...t],i)}catch(e){return e.status??1}return 0}function _(e,t){let n=null,i=t;return t.length>=2&&t[0]===`--cwd`?(n=r.npath.toPortablePath(t[1]),i=t.slice(2)):t.length>=1&&t[0].startsWith(`--cwd=`)?(n=r.npath.toPortablePath(t[0].slice(6)),i=t.slice(1)):t[0]===`add`&&t[t.length-2]===`--cwd`&&(n=r.npath.toPortablePath(t[t.length-1]),i=t.slice(0,t.length-2)),e.defaultContext.cwd=n===null?r.ppath.cwd():r.ppath.resolve(n),i}function v(e,{configuration:t}){if(!t.get(`enableTelemetry`)||s.isCI||!process.stdout.isTTY)return;n.Configuration.telemetry=new n.TelemetryManager(t,`puba9cdc10ec5790a2cf4969dd413a47270`);let r=/^@yarnpkg\/plugin-(.*)$/;for(let e of t.plugins.keys())u.pluginCommands.has(e.match(r)?.[1]??``)&&n.Configuration.telemetry?.reportPluginName(e);e.binaryVersion&&n.Configuration.telemetry.reportVersion(e.binaryVersion)}function y(e,{configuration:t}){for(let n of t.plugins.values())for(let t of n.commands||[])e.register(t)}async function b(e,t,{selfPath:r,pluginConfiguration:i}){if(!m(e))return 1;let a=await h({selfPath:r,pluginConfiguration:i}),o=a.get(`yarnPath`),s=a.get(`ignorePath`);if(o&&!s)return g(e,t,{yarnPath:o});delete process.env.YARN_IGNORE_PATH;let c=_(e,t);v(e,{configuration:a}),y(e,{configuration:a});let l=e.process(c,e.defaultContext);return l.help||n.Configuration.telemetry?.reportCommandName(l.path.join(` `)),await e.run(l,e.defaultContext)}async function x({cwd:e=r.ppath.cwd(),pluginConfiguration:t=(0,d.getPluginConfiguration)()}={}){let n=p({cwd:e,pluginConfiguration:t});return y(n,{configuration:await h({pluginConfiguration:t,selfPath:null})}),n}async function S(e,{cwd:t=r.ppath.cwd(),selfPath:n,pluginConfiguration:i}){let a=p({cwd:t,pluginConfiguration:i});function o(){c.Cli.defaultContext.stdout.write(`ERROR: Yarn is terminating due to an unexpected empty event loop.
2
2
  Please report this issue at https://github.com/yarnpkg/berry/issues.`)}process.once(`beforeExit`,o);try{process.exitCode=42,process.exitCode=await b(a,e,{selfPath:n,pluginConfiguration:i})}catch(e){c.Cli.defaultContext.stdout.write(a.error(e)),process.exitCode=1}finally{process.off(`beforeExit`,o),await r.xfs.rmtempPromise()}}})),$=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluginCommands=e.runExit=e.getCli=e.openWorkspace=e.getPluginConfiguration=e.getDynamicLibs=e.WorkspaceRequiredError=e.BaseCommand=void 0;var t=p();Object.defineProperty(e,`BaseCommand`,{enumerable:!0,get:function(){return t.BaseCommand}});var n=m();Object.defineProperty(e,`WorkspaceRequiredError`,{enumerable:!0,get:function(){return n.WorkspaceRequiredError}});var r=X();Object.defineProperty(e,`getDynamicLibs`,{enumerable:!0,get:function(){return r.getDynamicLibs}});var i=Z();Object.defineProperty(e,`getPluginConfiguration`,{enumerable:!0,get:function(){return i.getPluginConfiguration}});var a=de();Object.defineProperty(e,`openWorkspace`,{enumerable:!0,get:function(){return a.openWorkspace}});var o=fe();Object.defineProperty(e,`getCli`,{enumerable:!0,get:function(){return o.getCli}}),Object.defineProperty(e,`runExit`,{enumerable:!0,get:function(){return o.runExit}});var s=Q();Object.defineProperty(e,`pluginCommands`,{enumerable:!0,get:function(){return s.pluginCommands}})}));export default $();export{};