lalph 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -355,6 +355,35 @@ const compose$1 = /* @__PURE__ */ dual(2, (ab, bc) => (a) => bc(ab(a)));
355
355
  function pipe(a, ...args$1) {
356
356
  return pipeArguments(a, args$1);
357
357
  }
358
+ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
359
+ switch (arguments.length) {
360
+ case 1: return ab;
361
+ case 2: return function() {
362
+ return bc(ab.apply(this, arguments));
363
+ };
364
+ case 3: return function() {
365
+ return cd(bc(ab.apply(this, arguments)));
366
+ };
367
+ case 4: return function() {
368
+ return de(cd(bc(ab.apply(this, arguments))));
369
+ };
370
+ case 5: return function() {
371
+ return ef(de(cd(bc(ab.apply(this, arguments)))));
372
+ };
373
+ case 6: return function() {
374
+ return fg(ef(de(cd(bc(ab.apply(this, arguments))))));
375
+ };
376
+ case 7: return function() {
377
+ return gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))));
378
+ };
379
+ case 8: return function() {
380
+ return hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments))))))));
381
+ };
382
+ case 9: return function() {
383
+ return ij(hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))))));
384
+ };
385
+ }
386
+ }
358
387
  /**
359
388
  * @since 4.0.0
360
389
  */
@@ -1912,7 +1941,7 @@ var Class$2 = class {
1912
1941
  * @category constructors
1913
1942
  * @since 2.0.0
1914
1943
  */
1915
- function make$49(compare) {
1944
+ function make$50(compare) {
1916
1945
  return (self$1, that) => self$1 === that ? 0 : compare(self$1, that);
1917
1946
  }
1918
1947
  /**
@@ -1946,7 +1975,7 @@ function make$49(compare) {
1946
1975
  * @category instances
1947
1976
  * @since 4.0.0
1948
1977
  */
1949
- const String$5 = /* @__PURE__ */ make$49((self$1, that) => self$1 < that ? -1 : 1);
1978
+ const String$5 = /* @__PURE__ */ make$50((self$1, that) => self$1 < that ? -1 : 1);
1950
1979
  /**
1951
1980
  * An `Order` instance for numbers that compares them numerically.
1952
1981
  *
@@ -1982,7 +2011,7 @@ const String$5 = /* @__PURE__ */ make$49((self$1, that) => self$1 < that ? -1 :
1982
2011
  * @category instances
1983
2012
  * @since 4.0.0
1984
2013
  */
1985
- const Number$4 = /* @__PURE__ */ make$49((self$1, that) => {
2014
+ const Number$4 = /* @__PURE__ */ make$50((self$1, that) => {
1986
2015
  if (globalThis.Number.isNaN(self$1) && globalThis.Number.isNaN(that)) return 0;
1987
2016
  if (globalThis.Number.isNaN(self$1)) return -1;
1988
2017
  if (globalThis.Number.isNaN(that)) return 1;
@@ -2018,7 +2047,7 @@ const Number$4 = /* @__PURE__ */ make$49((self$1, that) => {
2018
2047
  * @category instances
2019
2048
  * @since 4.0.0
2020
2049
  */
2021
- const BigInt$3 = /* @__PURE__ */ make$49((self$1, that) => self$1 < that ? -1 : 1);
2050
+ const BigInt$3 = /* @__PURE__ */ make$50((self$1, that) => self$1 < that ? -1 : 1);
2022
2051
  /**
2023
2052
  * Transforms an `Order` on type `A` into an `Order` on type `B` by providing a function that
2024
2053
  * maps values of type `B` to values of type `A`.
@@ -2053,7 +2082,7 @@ const BigInt$3 = /* @__PURE__ */ make$49((self$1, that) => self$1 < that ? -1 :
2053
2082
  * @category mapping
2054
2083
  * @since 2.0.0
2055
2084
  */
2056
- const mapInput = /* @__PURE__ */ dual(2, (self$1, f) => make$49((b1, b2) => self$1(f(b1), f(b2))));
2085
+ const mapInput = /* @__PURE__ */ dual(2, (self$1, f) => make$50((b1, b2) => self$1(f(b1), f(b2))));
2057
2086
  /**
2058
2087
  * An `Order` instance for `Date` objects that compares them chronologically by their timestamp.
2059
2088
  *
@@ -2122,7 +2151,7 @@ const Date$2 = /* @__PURE__ */ mapInput(Number$4, (date$2) => date$2.getTime());
2122
2151
  * @since 4.0.0
2123
2152
  */
2124
2153
  function Tuple$2(elements) {
2125
- return make$49((self$1, that) => {
2154
+ return make$50((self$1, that) => {
2126
2155
  const len = elements.length;
2127
2156
  for (let i = 0; i < len; i++) {
2128
2157
  const o = elements[i](self$1[i], that[i]);
@@ -2166,7 +2195,7 @@ function Tuple$2(elements) {
2166
2195
  * @since 4.0.0
2167
2196
  */
2168
2197
  function Array$4(O) {
2169
- return make$49((self$1, that) => {
2198
+ return make$50((self$1, that) => {
2170
2199
  const aLen = self$1.length;
2171
2200
  const bLen = that.length;
2172
2201
  const len = Math.min(aLen, bLen);
@@ -2220,7 +2249,7 @@ function Array$4(O) {
2220
2249
  */
2221
2250
  function Struct$2(fields) {
2222
2251
  const keys$1 = Object.keys(fields);
2223
- return make$49((self$1, that) => {
2252
+ return make$50((self$1, that) => {
2224
2253
  for (const key of keys$1) {
2225
2254
  const o = fields[key](self$1[key], that[key]);
2226
2255
  if (o !== 0) return o;
@@ -2531,7 +2560,7 @@ const liftThrowable = (f) => (...a) => {
2531
2560
 
2532
2561
  //#endregion
2533
2562
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/Duration.js
2534
- const TypeId$54 = "~effect/time/Duration";
2563
+ const TypeId$55 = "~effect/time/Duration";
2535
2564
  const bigint0$1 = /* @__PURE__ */ BigInt(0);
2536
2565
  const bigint1e3 = /* @__PURE__ */ BigInt(1e3);
2537
2566
  const DURATION_REGEXP = /^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?)$/;
@@ -2612,7 +2641,7 @@ const zeroDurationValue = {
2612
2641
  };
2613
2642
  const infinityDurationValue = { _tag: "Infinity" };
2614
2643
  const DurationProto = {
2615
- [TypeId$54]: TypeId$54,
2644
+ [TypeId$55]: TypeId$55,
2616
2645
  [symbol$3]() {
2617
2646
  return structure(this.value);
2618
2647
  },
@@ -2651,7 +2680,7 @@ const DurationProto = {
2651
2680
  return pipeArguments(this, arguments);
2652
2681
  }
2653
2682
  };
2654
- const make$48 = (input) => {
2683
+ const make$49 = (input) => {
2655
2684
  const duration = Object.create(DurationProto);
2656
2685
  if (isNumber(input)) if (isNaN(input) || input <= 0) duration.value = zeroDurationValue;
2657
2686
  else if (!Number.isFinite(input)) duration.value = infinityDurationValue;
@@ -2684,7 +2713,7 @@ const make$48 = (input) => {
2684
2713
  * @since 2.0.0
2685
2714
  * @category guards
2686
2715
  */
2687
- const isDuration = (u) => hasProperty(u, TypeId$54);
2716
+ const isDuration = (u) => hasProperty(u, TypeId$55);
2688
2717
  /**
2689
2718
  * Checks if a Duration is finite (not infinite).
2690
2719
  *
@@ -2734,7 +2763,7 @@ const isZero = (self$1) => {
2734
2763
  * @since 2.0.0
2735
2764
  * @category constructors
2736
2765
  */
2737
- const zero = /* @__PURE__ */ make$48(0);
2766
+ const zero = /* @__PURE__ */ make$49(0);
2738
2767
  /**
2739
2768
  * A Duration representing infinite time.
2740
2769
  *
@@ -2748,7 +2777,7 @@ const zero = /* @__PURE__ */ make$48(0);
2748
2777
  * @since 2.0.0
2749
2778
  * @category constructors
2750
2779
  */
2751
- const infinity = /* @__PURE__ */ make$48(Infinity);
2780
+ const infinity = /* @__PURE__ */ make$49(Infinity);
2752
2781
  /**
2753
2782
  * Creates a Duration from nanoseconds.
2754
2783
  *
@@ -2763,7 +2792,7 @@ const infinity = /* @__PURE__ */ make$48(Infinity);
2763
2792
  * @since 2.0.0
2764
2793
  * @category constructors
2765
2794
  */
2766
- const nanos = (nanos$1) => make$48(nanos$1);
2795
+ const nanos = (nanos$1) => make$49(nanos$1);
2767
2796
  /**
2768
2797
  * Creates a Duration from microseconds.
2769
2798
  *
@@ -2778,7 +2807,7 @@ const nanos = (nanos$1) => make$48(nanos$1);
2778
2807
  * @since 2.0.0
2779
2808
  * @category constructors
2780
2809
  */
2781
- const micros = (micros$1) => make$48(micros$1 * bigint1e3);
2810
+ const micros = (micros$1) => make$49(micros$1 * bigint1e3);
2782
2811
  /**
2783
2812
  * Creates a Duration from milliseconds.
2784
2813
  *
@@ -2793,7 +2822,7 @@ const micros = (micros$1) => make$48(micros$1 * bigint1e3);
2793
2822
  * @since 2.0.0
2794
2823
  * @category constructors
2795
2824
  */
2796
- const millis = (millis$1) => make$48(millis$1);
2825
+ const millis = (millis$1) => make$49(millis$1);
2797
2826
  /**
2798
2827
  * Creates a Duration from seconds.
2799
2828
  *
@@ -2808,7 +2837,7 @@ const millis = (millis$1) => make$48(millis$1);
2808
2837
  * @since 2.0.0
2809
2838
  * @category constructors
2810
2839
  */
2811
- const seconds = (seconds$1) => make$48(seconds$1 * 1e3);
2840
+ const seconds = (seconds$1) => make$49(seconds$1 * 1e3);
2812
2841
  /**
2813
2842
  * Creates a Duration from minutes.
2814
2843
  *
@@ -2823,7 +2852,7 @@ const seconds = (seconds$1) => make$48(seconds$1 * 1e3);
2823
2852
  * @since 2.0.0
2824
2853
  * @category constructors
2825
2854
  */
2826
- const minutes = (minutes$1) => make$48(minutes$1 * 6e4);
2855
+ const minutes = (minutes$1) => make$49(minutes$1 * 6e4);
2827
2856
  /**
2828
2857
  * Creates a Duration from hours.
2829
2858
  *
@@ -2838,7 +2867,7 @@ const minutes = (minutes$1) => make$48(minutes$1 * 6e4);
2838
2867
  * @since 2.0.0
2839
2868
  * @category constructors
2840
2869
  */
2841
- const hours = (hours$1) => make$48(hours$1 * 36e5);
2870
+ const hours = (hours$1) => make$49(hours$1 * 36e5);
2842
2871
  /**
2843
2872
  * Creates a Duration from days.
2844
2873
  *
@@ -2853,7 +2882,7 @@ const hours = (hours$1) => make$48(hours$1 * 36e5);
2853
2882
  * @since 2.0.0
2854
2883
  * @category constructors
2855
2884
  */
2856
- const days = (days$1) => make$48(days$1 * 864e5);
2885
+ const days = (days$1) => make$49(days$1 * 864e5);
2857
2886
  /**
2858
2887
  * Creates a Duration from weeks.
2859
2888
  *
@@ -2868,7 +2897,7 @@ const days = (days$1) => make$48(days$1 * 864e5);
2868
2897
  * @since 2.0.0
2869
2898
  * @category constructors
2870
2899
  */
2871
- const weeks = (weeks$1) => make$48(weeks$1 * 6048e5);
2900
+ const weeks = (weeks$1) => make$49(weeks$1 * 6048e5);
2872
2901
  /**
2873
2902
  * Converts a Duration to milliseconds.
2874
2903
  *
@@ -3046,11 +3075,11 @@ const Equivalence$4 = (self$1, that) => matchPair(self$1, that, {
3046
3075
  const divideUnsafe = /* @__PURE__ */ dual(2, (self$1, by) => {
3047
3076
  if (!Number.isFinite(by)) return zero;
3048
3077
  return match$8(self$1, {
3049
- onMillis: (millis$1) => make$48(millis$1 / by),
3078
+ onMillis: (millis$1) => make$49(millis$1 / by),
3050
3079
  onNanos: (nanos$1) => {
3051
3080
  if (by < 0 || Object.is(by, -0)) return zero;
3052
3081
  if (Object.is(by, 0)) return infinity;
3053
- return make$48(nanos$1 / BigInt(by));
3082
+ return make$49(nanos$1 / BigInt(by));
3054
3083
  },
3055
3084
  onInfinity: () => infinity
3056
3085
  });
@@ -3070,8 +3099,8 @@ const divideUnsafe = /* @__PURE__ */ dual(2, (self$1, by) => {
3070
3099
  * @category math
3071
3100
  */
3072
3101
  const times = /* @__PURE__ */ dual(2, (self$1, times$1) => match$8(self$1, {
3073
- onMillis: (millis$1) => make$48(millis$1 * times$1),
3074
- onNanos: (nanos$1) => make$48(nanos$1 * BigInt(times$1)),
3102
+ onMillis: (millis$1) => make$49(millis$1 * times$1),
3103
+ onNanos: (nanos$1) => make$49(nanos$1 * BigInt(times$1)),
3075
3104
  onInfinity: () => infinity
3076
3105
  }));
3077
3106
  /**
@@ -3586,7 +3615,7 @@ var NoSuchElementError$1 = class extends TaggedError$1("NoSuchElementError") {
3586
3615
  * @category constructors
3587
3616
  * @since 2.0.0
3588
3617
  */
3589
- const make$47 = (isEquivalent) => (self$1, that) => self$1 === that || isEquivalent(self$1, that);
3618
+ const make$48 = (isEquivalent) => (self$1, that) => self$1 === that || isEquivalent(self$1, that);
3590
3619
  const isStrictEquivalent = (x, y) => x === y;
3591
3620
  /**
3592
3621
  * Creates an equivalence relation that uses strict equality (`===`) to compare values.
@@ -3696,7 +3725,7 @@ const strictEqual = () => isStrictEquivalent;
3696
3725
  * @since 4.0.0
3697
3726
  */
3698
3727
  function Tuple$1(elements) {
3699
- return make$47((self$1, that) => {
3728
+ return make$48((self$1, that) => {
3700
3729
  if (self$1.length !== that.length) return false;
3701
3730
  for (let i = 0; i < self$1.length; i++) if (!elements[i](self$1[i], that[i])) return false;
3702
3731
  return true;
@@ -3753,7 +3782,7 @@ function Tuple$1(elements) {
3753
3782
  * @since 4.0.0
3754
3783
  */
3755
3784
  function Array$3(item) {
3756
- return make$47((self$1, that) => {
3785
+ return make$48((self$1, that) => {
3757
3786
  if (self$1.length !== that.length) return false;
3758
3787
  for (let i = 0; i < self$1.length; i++) if (!item(self$1[i], that[i])) return false;
3759
3788
  return true;
@@ -3829,7 +3858,7 @@ function Array$3(item) {
3829
3858
  */
3830
3859
  function Struct$1(fields) {
3831
3860
  const keys$1 = Reflect.ownKeys(fields);
3832
- return make$47((self$1, that) => {
3861
+ return make$48((self$1, that) => {
3833
3862
  for (const key of keys$1) if (!fields[key](self$1[key], that[key])) return false;
3834
3863
  return true;
3835
3864
  });
@@ -3840,9 +3869,9 @@ function Struct$1(fields) {
3840
3869
  /**
3841
3870
  * @since 2.0.0
3842
3871
  */
3843
- const TypeId$53 = "~effect/data/Option";
3872
+ const TypeId$54 = "~effect/data/Option";
3844
3873
  const CommonProto$1 = {
3845
- [TypeId$53]: { _A: (_) => _ },
3874
+ [TypeId$54]: { _A: (_) => _ },
3846
3875
  ...PipeInspectableProto,
3847
3876
  ...YieldableProto
3848
3877
  };
@@ -3893,7 +3922,7 @@ const NoneProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(Co
3893
3922
  }
3894
3923
  });
3895
3924
  /** @internal */
3896
- const isOption$1 = (input) => hasProperty(input, TypeId$53);
3925
+ const isOption$1 = (input) => hasProperty(input, TypeId$54);
3897
3926
  /** @internal */
3898
3927
  const isNone$1 = (fa) => fa._tag === "None";
3899
3928
  /** @internal */
@@ -3909,9 +3938,9 @@ const some$1 = (value) => {
3909
3938
 
3910
3939
  //#endregion
3911
3940
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/internal/result.js
3912
- const TypeId$52 = "~effect/data/Result";
3941
+ const TypeId$53 = "~effect/data/Result";
3913
3942
  const CommonProto = {
3914
- [TypeId$52]: {
3943
+ [TypeId$53]: {
3915
3944
  _A: (_) => _,
3916
3945
  _E: (_) => _
3917
3946
  },
@@ -3965,7 +3994,7 @@ const FailureProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create
3965
3994
  }
3966
3995
  });
3967
3996
  /** @internal */
3968
- const isResult$1 = (input) => hasProperty(input, TypeId$52);
3997
+ const isResult$1 = (input) => hasProperty(input, TypeId$53);
3969
3998
  /** @internal */
3970
3999
  const isFailure$5 = (result$2) => result$2._tag === "Failure";
3971
4000
  /** @internal */
@@ -4581,7 +4610,7 @@ const filter$5 = /* @__PURE__ */ dual(2, (self$1, predicate) => filterMap(self$1
4581
4610
  * @category Equivalence
4582
4611
  * @since 2.0.0
4583
4612
  */
4584
- const makeEquivalence$4 = (isEquivalent) => make$47((x, y) => isNone(x) ? isNone(y) : isNone(y) ? false : isEquivalent(x.value, y.value));
4613
+ const makeEquivalence$4 = (isEquivalent) => make$48((x, y) => isNone(x) ? isNone(y) : isNone(y) ? false : isEquivalent(x.value, y.value));
4585
4614
 
4586
4615
  //#endregion
4587
4616
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/Result.js
@@ -4947,7 +4976,7 @@ const string$2 = /* @__PURE__ */ fromPredicate(isString$1);
4947
4976
  * @since 4.0.0
4948
4977
  * @category Constructors
4949
4978
  */
4950
- const has$1 = (key) => (input) => input.has(key) ? input : fail$7(input);
4979
+ const has$2 = (key) => (input) => input.has(key) ? input : fail$7(input);
4951
4980
  /**
4952
4981
  * A predefined filter that only passes through number values.
4953
4982
  *
@@ -5355,7 +5384,7 @@ const toEntries = /* @__PURE__ */ collect((key, value) => [key, value]);
5355
5384
  * @category guards
5356
5385
  * @since 2.0.0
5357
5386
  */
5358
- const has = /* @__PURE__ */ dual(2, (self$1, key) => Object.hasOwn(self$1, key));
5387
+ const has$1 = /* @__PURE__ */ dual(2, (self$1, key) => Object.hasOwn(self$1, key));
5359
5388
  /**
5360
5389
  * Maps a record into another record by applying a transformation function to each of its values.
5361
5390
  *
@@ -5441,7 +5470,7 @@ const keys = (self$1) => Object.keys(self$1);
5441
5470
  * @since 2.0.0
5442
5471
  */
5443
5472
  const isSubrecordBy = (equivalence) => dual(2, (self$1, that) => {
5444
- for (const key of keys(self$1)) if (!has(that, key) || !equivalence(self$1[key], that[key])) return false;
5473
+ for (const key of keys(self$1)) if (!has$1(that, key) || !equivalence(self$1[key], that[key])) return false;
5445
5474
  return true;
5446
5475
  });
5447
5476
  /**
@@ -6015,23 +6044,23 @@ const ServiceProto = {
6015
6044
  };
6016
6045
  },
6017
6046
  asEffect() {
6018
- return (this.asEffect = constant(withFiber$1((fiber$2) => exitSucceed(get$6(fiber$2.services, this)))))();
6047
+ return (this.asEffect = constant(withFiber$1((fiber$2) => exitSucceed(get$7(fiber$2.services, this)))))();
6019
6048
  },
6020
6049
  of(self$1) {
6021
6050
  return self$1;
6022
6051
  },
6023
6052
  serviceMap(self$1) {
6024
- return make$46(this, self$1);
6053
+ return make$47(this, self$1);
6025
6054
  },
6026
6055
  use(f) {
6027
- return withFiber$1((fiber$2) => f(get$6(fiber$2.services, this)));
6056
+ return withFiber$1((fiber$2) => f(get$7(fiber$2.services, this)));
6028
6057
  },
6029
6058
  useSync(f) {
6030
- return withFiber$1((fiber$2) => exitSucceed(f(get$6(fiber$2.services, this))));
6059
+ return withFiber$1((fiber$2) => exitSucceed(f(get$7(fiber$2.services, this))));
6031
6060
  }
6032
6061
  };
6033
6062
  const ReferenceTypeId = "~effect/ServiceMap/Reference";
6034
- const TypeId$51 = "~effect/ServiceMap";
6063
+ const TypeId$52 = "~effect/ServiceMap";
6035
6064
  /**
6036
6065
  * @example
6037
6066
  * ```ts
@@ -6048,14 +6077,14 @@ const TypeId$51 = "~effect/ServiceMap";
6048
6077
  * @since 4.0.0
6049
6078
  * @category Constructors
6050
6079
  */
6051
- const makeUnsafe$6 = (mapUnsafe) => {
6080
+ const makeUnsafe$7 = (mapUnsafe) => {
6052
6081
  const self$1 = Object.create(Proto$18);
6053
6082
  self$1.mapUnsafe = mapUnsafe;
6054
6083
  return self$1;
6055
6084
  };
6056
6085
  const Proto$18 = {
6057
6086
  ...PipeInspectableProto,
6058
- [TypeId$51]: { _Services: (_) => _ },
6087
+ [TypeId$52]: { _Services: (_) => _ },
6059
6088
  toJSON() {
6060
6089
  return {
6061
6090
  _id: "ServiceMap",
@@ -6088,7 +6117,7 @@ const Proto$18 = {
6088
6117
  * @since 4.0.0
6089
6118
  * @category Guards
6090
6119
  */
6091
- const isServiceMap = (u) => hasProperty(u, TypeId$51);
6120
+ const isServiceMap = (u) => hasProperty(u, TypeId$52);
6092
6121
  /**
6093
6122
  * Checks if the provided argument is a `Reference`.
6094
6123
  *
@@ -6124,7 +6153,7 @@ const isReference = (u) => hasProperty(u, ReferenceTypeId);
6124
6153
  * @category Constructors
6125
6154
  */
6126
6155
  const empty$10 = () => emptyServiceMap;
6127
- const emptyServiceMap = /* @__PURE__ */ makeUnsafe$6(/* @__PURE__ */ new Map());
6156
+ const emptyServiceMap = /* @__PURE__ */ makeUnsafe$7(/* @__PURE__ */ new Map());
6128
6157
  /**
6129
6158
  * Creates a new `ServiceMap` with a single service associated to the key.
6130
6159
  *
@@ -6143,7 +6172,7 @@ const emptyServiceMap = /* @__PURE__ */ makeUnsafe$6(/* @__PURE__ */ new Map());
6143
6172
  * @since 4.0.0
6144
6173
  * @category Constructors
6145
6174
  */
6146
- const make$46 = (key, service$2) => makeUnsafe$6(new Map([[key.key, service$2]]));
6175
+ const make$47 = (key, service$2) => makeUnsafe$7(new Map([[key.key, service$2]]));
6147
6176
  /**
6148
6177
  * Adds a service to a given `ServiceMap`.
6149
6178
  *
@@ -6172,7 +6201,7 @@ const make$46 = (key, service$2) => makeUnsafe$6(new Map([[key.key, service$2]])
6172
6201
  const add$3 = /* @__PURE__ */ dual(3, (self$1, key, service$2) => {
6173
6202
  const map$12 = new Map(self$1.mapUnsafe);
6174
6203
  map$12.set(key.key, service$2);
6175
- return makeUnsafe$6(map$12);
6204
+ return makeUnsafe$7(map$12);
6176
6205
  });
6177
6206
  /**
6178
6207
  * @since 4.0.0
@@ -6182,7 +6211,7 @@ const addOrOmit = /* @__PURE__ */ dual(3, (self$1, key, service$2) => {
6182
6211
  const map$12 = new Map(self$1.mapUnsafe);
6183
6212
  if (service$2._tag === "None") map$12.delete(key.key);
6184
6213
  else map$12.set(key.key, service$2.value);
6185
- return makeUnsafe$6(map$12);
6214
+ return makeUnsafe$7(map$12);
6186
6215
  });
6187
6216
  /**
6188
6217
  * Get a service from the context that corresponds to the given key.
@@ -6244,7 +6273,7 @@ const getUnsafe = /* @__PURE__ */ dual(2, (self$1, service$2) => {
6244
6273
  * @since 4.0.0
6245
6274
  * @category Getters
6246
6275
  */
6247
- const get$6 = getUnsafe;
6276
+ const get$7 = getUnsafe;
6248
6277
  /**
6249
6278
  * @example
6250
6279
  * ```ts
@@ -6352,7 +6381,7 @@ const merge$5 = /* @__PURE__ */ dual(2, (self$1, that) => {
6352
6381
  if (that.mapUnsafe.size === 0) return self$1;
6353
6382
  const map$12 = new Map(self$1.mapUnsafe);
6354
6383
  that.mapUnsafe.forEach((value, key) => map$12.set(key, value));
6355
- return makeUnsafe$6(map$12);
6384
+ return makeUnsafe$7(map$12);
6356
6385
  });
6357
6386
  /**
6358
6387
  * Merges any number of `ServiceMap`s, returning a new `ServiceMap` containing the services of all.
@@ -6388,7 +6417,7 @@ const mergeAll$1 = (...ctxs) => {
6388
6417
  for (let i = 0; i < ctxs.length; i++) ctxs[i].mapUnsafe.forEach((value, key) => {
6389
6418
  map$12.set(key, value);
6390
6419
  });
6391
- return makeUnsafe$6(map$12);
6420
+ return makeUnsafe$7(map$12);
6392
6421
  };
6393
6422
  /**
6394
6423
  * Creates a service map key with a default value.
@@ -6687,7 +6716,7 @@ var ParentSpan = class extends Service()(ParentSpanKey) {};
6687
6716
  * })
6688
6717
  * ```
6689
6718
  */
6690
- const make$45 = (options) => options;
6719
+ const make$46 = (options) => options;
6691
6720
  /**
6692
6721
  * @since 2.0.0
6693
6722
  * @category constructors
@@ -6756,7 +6785,7 @@ const TracerKey = "effect/Tracer";
6756
6785
  * })
6757
6786
  * ```
6758
6787
  */
6759
- const Tracer = /* @__PURE__ */ Reference(TracerKey, { defaultValue: () => make$45({ span: (name, parent, services$2, links, startTime, kind) => new NativeSpan(name, parent, services$2, links.slice(), startTime, kind) }) });
6788
+ const Tracer = /* @__PURE__ */ Reference(TracerKey, { defaultValue: () => make$46({ span: (name, parent, services$2, links, startTime, kind) => new NativeSpan(name, parent, services$2, links.slice(), startTime, kind) }) });
6760
6789
  /**
6761
6790
  * @since 4.0.0
6762
6791
  * @category native tracer
@@ -7430,12 +7459,12 @@ const causeIsInterruptedOnly = (self$1) => self$1.failures.every(failureIsInterr
7430
7459
  /** @internal */
7431
7460
  const failureIsInterrupt$1 = (self$1) => isTagged(self$1, "Interrupt");
7432
7461
  /** @internal */
7433
- const failureAnnotations$1 = (self$1) => makeUnsafe$6(self$1.annotations);
7462
+ const failureAnnotations$1 = (self$1) => makeUnsafe$7(self$1.annotations);
7434
7463
  /** @internal */
7435
7464
  const causeAnnotations = (self$1) => {
7436
7465
  const map$12 = /* @__PURE__ */ new Map();
7437
7466
  for (const f of self$1.failures) if (f.annotations.size > 0) for (const [key, value] of f.annotations) map$12.set(key, value);
7438
- return makeUnsafe$6(map$12);
7467
+ return makeUnsafe$7(map$12);
7439
7468
  };
7440
7469
  /** @internal */
7441
7470
  const causeMerge = /* @__PURE__ */ dual(2, (self$1, that) => {
@@ -7656,7 +7685,7 @@ var FiberImpl = class {
7656
7685
  interruptUnsafe(fiberId$2, annotations$1) {
7657
7686
  if (this._exit) return;
7658
7687
  let cause = causeInterrupt(fiberId$2);
7659
- if (this.currentStackFrame) cause = causeAnnotate(cause, make$46(StackTraceKey, this.currentStackFrame));
7688
+ if (this.currentStackFrame) cause = causeAnnotate(cause, make$47(StackTraceKey, this.currentStackFrame));
7660
7689
  if (annotations$1) cause = causeAnnotate(cause, annotations$1);
7661
7690
  this._interruptedCause = this._interruptedCause ? causeMerge(this._interruptedCause, cause) : cause;
7662
7691
  if (this.interruptible) this.evaluate(failCause$4(this._interruptedCause));
@@ -7752,7 +7781,7 @@ const fiberStackAnnotations = (fiber$2) => {
7752
7781
  if (!fiber$2.currentStackFrame) return void 0;
7753
7782
  const annotations$1 = /* @__PURE__ */ new Map();
7754
7783
  annotations$1.set(StackTraceKey.key, fiber$2.currentStackFrame);
7755
- return makeUnsafe$6(annotations$1);
7784
+ return makeUnsafe$7(annotations$1);
7756
7785
  };
7757
7786
  const fiberInterruptChildren = (fiber$2) => {
7758
7787
  if (fiber$2._children === void 0 || fiber$2._children.size === 0) return;
@@ -8296,7 +8325,7 @@ const updateServices$1 = /* @__PURE__ */ dual(2, (self$1, f) => withFiber$1((fib
8296
8325
  if (prev.mapUnsafe.has(key)) map$12.set(key, prev.mapUnsafe.get(key));
8297
8326
  else map$12.delete(key);
8298
8327
  }
8299
- fiber$2.setServices(makeUnsafe$6(map$12));
8328
+ fiber$2.setServices(makeUnsafe$7(map$12));
8300
8329
  });
8301
8330
  }));
8302
8331
  /** @internal */
@@ -8639,7 +8668,7 @@ const scopedWith$1 = (f) => suspend$3(() => {
8639
8668
  return onExit$3(f(scope$2), (exit$2) => scopeCloseUnsafe(scope$2, exit$2));
8640
8669
  });
8641
8670
  /** @internal */
8642
- const acquireRelease$1 = (acquire, release) => uninterruptible$1(flatMap$2(scope$1, (scope$2) => tap$1(acquire, (a) => scopeAddFinalizerExit(scope$2, (exit$2) => internalCall(() => release(a, exit$2))))));
8671
+ const acquireRelease$1 = (acquire, release$1) => uninterruptible$1(flatMap$2(scope$1, (scope$2) => tap$1(acquire, (a) => scopeAddFinalizerExit(scope$2, (exit$2) => internalCall(() => release$1(a, exit$2))))));
8643
8672
  /** @internal */
8644
8673
  const addFinalizer$2 = (finalizer) => flatMap$2(scope$1, (scope$2) => servicesWith$1((services$2) => scopeAddFinalizerExit(scope$2, (exit$2) => provideServices$1(finalizer(exit$2), services$2))));
8645
8674
  const onExitPrimitive = /* @__PURE__ */ makePrimitive$1({
@@ -8684,7 +8713,7 @@ const onErrorFilter$1 = /* @__PURE__ */ dual(3, (self$1, filter$6, f) => onExitF
8684
8713
  /** @internal */
8685
8714
  const onInterrupt$1 = /* @__PURE__ */ dual(2, (self$1, finalizer) => onErrorFilter$1(self$1, causeFilterInterruptors, isEffect$1(finalizer) ? constant(finalizer) : finalizer));
8686
8715
  /** @internal */
8687
- const acquireUseRelease$1 = (acquire, use$2, release) => uninterruptibleMask$1((restore) => flatMap$2(acquire, (a) => onExitInterruptible$1(restore(use$2(a)), (exit$2) => release(a, exit$2))));
8716
+ const acquireUseRelease$1 = (acquire, use$2, release$1) => uninterruptibleMask$1((restore) => flatMap$2(acquire, (a) => onExitInterruptible$1(restore(use$2(a)), (exit$2) => release$1(a, exit$2))));
8688
8717
  /** @internal */
8689
8718
  const cachedInvalidateWithTTL$1 = /* @__PURE__ */ dual(2, (self$1, ttl) => sync$2(() => {
8690
8719
  const ttlMillis = toMillis(fromDurationInputUnsafe(ttl));
@@ -9142,11 +9171,11 @@ const NoopSpanProto = {
9142
9171
  /** @internal */
9143
9172
  const noopSpan = (options) => Object.assign(Object.create(NoopSpanProto), options);
9144
9173
  const filterDisablePropagation = (span) => {
9145
- if (span) return get$6(span.services, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(span.parent) : void 0 : span;
9174
+ if (span) return get$7(span.services, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(span.parent) : void 0 : span;
9146
9175
  };
9147
9176
  /** @internal */
9148
9177
  const makeSpanUnsafe = (fiber$2, name, options) => {
9149
- const disablePropagation = !fiber$2.getRef(TracerEnabled) || options?.services && get$6(options.services, DisablePropagation);
9178
+ const disablePropagation = !fiber$2.getRef(TracerEnabled) || options?.services && get$7(options.services, DisablePropagation);
9150
9179
  const parent = options?.parent ?? (options?.root ? void 0 : filterDisablePropagation(fiber$2.currentSpan));
9151
9180
  let span;
9152
9181
  if (disablePropagation) span = noopSpan({
@@ -9908,7 +9937,7 @@ const DeferredProto = {
9908
9937
  * @since 2.0.0
9909
9938
  * @category unsafe
9910
9939
  */
9911
- const makeUnsafe$5 = () => {
9940
+ const makeUnsafe$6 = () => {
9912
9941
  const self$1 = Object.create(DeferredProto);
9913
9942
  self$1.resumes = void 0;
9914
9943
  self$1.effect = void 0;
@@ -9932,7 +9961,7 @@ const makeUnsafe$5 = () => {
9932
9961
  * @since 2.0.0
9933
9962
  * @category constructors
9934
9963
  */
9935
- const make$44 = () => sync$2(() => makeUnsafe$5());
9964
+ const make$45 = () => sync$2(() => makeUnsafe$6());
9936
9965
  const _await = (self$1) => callback$2((resume) => {
9937
9966
  if (self$1.effect) return resume(self$1.effect);
9938
9967
  self$1.resumes ??= [];
@@ -10169,7 +10198,7 @@ const Scope = scopeTag;
10169
10198
  * @category constructors
10170
10199
  * @since 2.0.0
10171
10200
  */
10172
- const make$43 = scopeMake;
10201
+ const make$44 = scopeMake;
10173
10202
  /**
10174
10203
  * Creates a new `Scope` synchronously without wrapping it in an `Effect`.
10175
10204
  * This is useful when you need a scope immediately but should be used with caution
@@ -10192,7 +10221,7 @@ const make$43 = scopeMake;
10192
10221
  * @since 4.0.0
10193
10222
  * @category constructors
10194
10223
  */
10195
- const makeUnsafe$4 = scopeMakeUnsafe;
10224
+ const makeUnsafe$5 = scopeMakeUnsafe;
10196
10225
  /**
10197
10226
  * Provides a `Scope` to an `Effect`, removing the `Scope` requirement from its context.
10198
10227
  * This allows you to run effects that require a scope by explicitly providing one.
@@ -10379,7 +10408,7 @@ const use$1 = scopeUse;
10379
10408
 
10380
10409
  //#endregion
10381
10410
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/Layer.js
10382
- const TypeId$50 = "~effect/Layer";
10411
+ const TypeId$51 = "~effect/Layer";
10383
10412
  const MemoMapTypeId = "~effect/Layer/MemoMap";
10384
10413
  /**
10385
10414
  * Returns `true` if the specified value is a `Layer`, `false` otherwise.
@@ -10404,9 +10433,9 @@ const MemoMapTypeId = "~effect/Layer/MemoMap";
10404
10433
  * @since 2.0.0
10405
10434
  * @category getters
10406
10435
  */
10407
- const isLayer = (u) => hasProperty(u, TypeId$50);
10436
+ const isLayer = (u) => hasProperty(u, TypeId$51);
10408
10437
  const LayerProto = {
10409
- [TypeId$50]: {
10438
+ [TypeId$51]: {
10410
10439
  _ROut: identity,
10411
10440
  _E: identity,
10412
10441
  _RIn: identity
@@ -10492,8 +10521,8 @@ var MemoMapImpl = class {
10492
10521
  entry$1.observers++;
10493
10522
  return andThen$1(scopeAddFinalizerExit(scope$2, (exit$2) => entry$1.finalizer(exit$2)), entry$1.effect);
10494
10523
  }
10495
- const layerScope = makeUnsafe$4();
10496
- const deferred = makeUnsafe$5();
10524
+ const layerScope = makeUnsafe$5();
10525
+ const deferred = makeUnsafe$6();
10497
10526
  const entry = {
10498
10527
  observers: 1,
10499
10528
  effect: _await(deferred),
@@ -10722,8 +10751,8 @@ const buildWithScope = /* @__PURE__ */ dual(2, (self$1, scope$2) => suspend$3(()
10722
10751
  * @category constructors
10723
10752
  */
10724
10753
  const succeed$1 = function() {
10725
- if (arguments.length === 1) return (resource) => succeedServices(make$46(arguments[0], resource));
10726
- return succeedServices(make$46(arguments[0], arguments[1]));
10754
+ if (arguments.length === 1) return (resource) => succeedServices(make$47(arguments[0], resource));
10755
+ return succeedServices(make$47(arguments[0], arguments[1]));
10727
10756
  };
10728
10757
  /**
10729
10758
  * Constructs a layer from the specified value, which must return one or more
@@ -10783,8 +10812,8 @@ const succeedServices = (services$2) => fromBuildUnsafe(constant(succeed$4(servi
10783
10812
  * @category constructors
10784
10813
  */
10785
10814
  const sync$1 = function() {
10786
- if (arguments.length === 1) return (evaluate$1) => syncServices(() => make$46(arguments[0], evaluate$1()));
10787
- return syncServices(() => make$46(arguments[0], arguments[1]()));
10815
+ if (arguments.length === 1) return (evaluate$1) => syncServices(() => make$47(arguments[0], evaluate$1()));
10816
+ return syncServices(() => make$47(arguments[0], arguments[1]()));
10788
10817
  };
10789
10818
  /**
10790
10819
  * Lazily constructs a layer from the specified value, which must return one or more
@@ -10842,7 +10871,7 @@ const effect = function() {
10842
10871
  const effectOrFn = arguments[1];
10843
10872
  return typeof effectOrFn === "function" ? (...args$1) => effectImpl(arguments[0], suspend$3(() => effectOrFn(...args$1))) : effectImpl(arguments[0], effectOrFn);
10844
10873
  };
10845
- const effectImpl = (service$2, effect$1) => effectServices(map$7(effect$1, (value) => make$46(service$2, value)));
10874
+ const effectImpl = (service$2, effect$1) => effectServices(map$7(effect$1, (value) => make$47(service$2, value)));
10846
10875
  /**
10847
10876
  * Constructs a layer from the specified scoped effect, which must return one
10848
10877
  * or more services.
@@ -10918,7 +10947,7 @@ const effectDiscard = (effect$1) => effectServices(as$1(effect$1, empty$10()));
10918
10947
  */
10919
10948
  const unwrap$3 = (self$1) => {
10920
10949
  const service$2 = Service("effect/Layer/unwrap");
10921
- return flatMap$1(effect(service$2)(self$1), get$6(service$2));
10950
+ return flatMap$1(effect(service$2)(self$1), get$7(service$2));
10922
10951
  };
10923
10952
  const mergeAllEffect = (layers, memoMap, scope$2) => {
10924
10953
  const parentScope = forkUnsafe(scope$2, "parallel");
@@ -11227,9 +11256,9 @@ const fresh = (self$1) => fromBuildUnsafe((_, scope$2) => self$1.build(makeMemoM
11227
11256
  * @since 3.16.0
11228
11257
  * @category Type IDs
11229
11258
  */
11230
- const TypeId$49 = "~effect/ExecutionPlan";
11259
+ const TypeId$50 = "~effect/ExecutionPlan";
11231
11260
  const Proto$17 = {
11232
- [TypeId$49]: TypeId$49,
11261
+ [TypeId$50]: TypeId$50,
11233
11262
  get withRequirements() {
11234
11263
  const self$1 = this;
11235
11264
  return servicesWith$1((services$2) => succeed$4(makeProto$1(self$1.steps.map((step) => ({
@@ -11411,7 +11440,7 @@ const TaggedError = TaggedError$1;
11411
11440
  /**
11412
11441
  * @since 2.0.0
11413
11442
  */
11414
- const TypeId$48 = CauseTypeId;
11443
+ const TypeId$49 = CauseTypeId;
11415
11444
  /**
11416
11445
  * @since 2.0.0
11417
11446
  */
@@ -12020,11 +12049,11 @@ const currentTimeNanos = currentTimeNanos$1;
12020
12049
  //#endregion
12021
12050
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/internal/dateTime.js
12022
12051
  /** @internal */
12023
- const TypeId$47 = "~effect/time/DateTime";
12052
+ const TypeId$48 = "~effect/time/DateTime";
12024
12053
  /** @internal */
12025
12054
  const TimeZoneTypeId = "~effect/time/DateTime/TimeZone";
12026
12055
  const Proto$16 = {
12027
- [TypeId$47]: TypeId$47,
12056
+ [TypeId$48]: TypeId$48,
12028
12057
  pipe() {
12029
12058
  return pipeArguments(this, arguments);
12030
12059
  },
@@ -12130,7 +12159,7 @@ const makeZonedProto = (epochMillis, zone, partsUtc) => {
12130
12159
  return self$1;
12131
12160
  };
12132
12161
  /** @internal */
12133
- const isDateTime$1 = (u) => hasProperty(u, TypeId$47);
12162
+ const isDateTime$1 = (u) => hasProperty(u, TypeId$48);
12134
12163
  const isDateTimeArgs = (args$1) => isDateTime$1(args$1[0]);
12135
12164
  /** @internal */
12136
12165
  const isTimeZone$1 = (u) => hasProperty(u, TimeZoneTypeId);
@@ -12143,9 +12172,9 @@ const isUtc$1 = (self$1) => self$1._tag === "Utc";
12143
12172
  /** @internal */
12144
12173
  const isZoned$1 = (self$1) => self$1._tag === "Zoned";
12145
12174
  /** @internal */
12146
- const Equivalence$3 = /* @__PURE__ */ make$47((a, b) => a.epochMillis === b.epochMillis);
12175
+ const Equivalence$3 = /* @__PURE__ */ make$48((a, b) => a.epochMillis === b.epochMillis);
12147
12176
  /** @internal */
12148
- const Order$3 = /* @__PURE__ */ make$49((self$1, that) => self$1.epochMillis < that.epochMillis ? -1 : self$1.epochMillis > that.epochMillis ? 1 : 0);
12177
+ const Order$3 = /* @__PURE__ */ make$50((self$1, that) => self$1.epochMillis < that.epochMillis ? -1 : self$1.epochMillis > that.epochMillis ? 1 : 0);
12149
12178
  /** @internal */
12150
12179
  const clamp$1 = /* @__PURE__ */ clamp$2(Order$3);
12151
12180
  const makeUtc = (epochMillis) => {
@@ -12165,7 +12194,7 @@ const fromDateUnsafe$1 = (date$2) => {
12165
12194
  return makeUtc(epochMillis);
12166
12195
  };
12167
12196
  /** @internal */
12168
- const makeUnsafe$3 = (input) => {
12197
+ const makeUnsafe$4 = (input) => {
12169
12198
  if (isDateTime$1(input)) return input;
12170
12199
  else if (input instanceof Date) return fromDateUnsafe$1(input);
12171
12200
  else if (typeof input === "object") {
@@ -12181,7 +12210,7 @@ const maxEpochMillis = 864e13 - 840 * 60 * 1e3;
12181
12210
  /** @internal */
12182
12211
  const makeZonedUnsafe$1 = (input, options) => {
12183
12212
  if (options?.timeZone === void 0 && isDateTime$1(input) && isZoned$1(input)) return input;
12184
- const self$1 = makeUnsafe$3(input);
12213
+ const self$1 = makeUnsafe$4(input);
12185
12214
  if (self$1.epochMillis < minEpochMillis || self$1.epochMillis > maxEpochMillis) throw new RangeError(`Epoch millis out of range: ${self$1.epochMillis}`);
12186
12215
  let zone;
12187
12216
  if (options?.timeZone === void 0) zone = zoneMakeOffset$1(new Date(self$1.epochMillis).getTimezoneOffset() * -60 * 1e3);
@@ -12198,7 +12227,7 @@ const makeZonedUnsafe$1 = (input, options) => {
12198
12227
  /** @internal */
12199
12228
  const makeZoned$1 = /* @__PURE__ */ liftThrowable(makeZonedUnsafe$1);
12200
12229
  /** @internal */
12201
- const make$42 = /* @__PURE__ */ liftThrowable(makeUnsafe$3);
12230
+ const make$43 = /* @__PURE__ */ liftThrowable(makeUnsafe$4);
12202
12231
  const zonedStringRegExp = /^(.{17,35})\[(.+)\]$/;
12203
12232
  /** @internal */
12204
12233
  const makeZonedFromString$1 = (input) => {
@@ -12917,7 +12946,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self$1, options) => matchCauseEff
12917
12946
 
12918
12947
  //#endregion
12919
12948
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/Schedule.js
12920
- const TypeId$46 = "~effect/Schedule";
12949
+ const TypeId$47 = "~effect/Schedule";
12921
12950
  /**
12922
12951
  * @since 4.0.0
12923
12952
  * @category Metadata
@@ -12933,7 +12962,7 @@ const CurrentMetadata = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetada
12933
12962
  elapsedSincePrevious: 0
12934
12963
  }) });
12935
12964
  const ScheduleProto = {
12936
- [TypeId$46]: {
12965
+ [TypeId$47]: {
12937
12966
  _Out: identity,
12938
12967
  _In: identity,
12939
12968
  _Env: identity
@@ -12961,7 +12990,7 @@ const ScheduleProto = {
12961
12990
  * @since 2.0.0
12962
12991
  * @category guards
12963
12992
  */
12964
- const isSchedule = (u) => hasProperty(u, TypeId$46);
12993
+ const isSchedule = (u) => hasProperty(u, TypeId$47);
12965
12994
  /**
12966
12995
  * Creates a Schedule from a step function that returns a Pull.
12967
12996
  *
@@ -13386,7 +13415,7 @@ const scheduleOnce = /* @__PURE__ */ recurs(1);
13386
13415
 
13387
13416
  //#endregion
13388
13417
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/Request.js
13389
- const TypeId$45 = "~effect/Request";
13418
+ const TypeId$46 = "~effect/Request";
13390
13419
  const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
13391
13420
  _E: (_) => _,
13392
13421
  _A: (_) => _,
@@ -13397,7 +13426,7 @@ const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
13397
13426
  */
13398
13427
  const RequestPrototype = {
13399
13428
  ...StructuralProto,
13400
- [TypeId$45]: requestVariance
13429
+ [TypeId$46]: requestVariance
13401
13430
  };
13402
13431
  /**
13403
13432
  * @since 2.0.0
@@ -13418,7 +13447,7 @@ const request$2 = /* @__PURE__ */ dual(2, (self$1, resolver) => {
13418
13447
  const requestUnsafe$1 = (self$1, options) => {
13419
13448
  const entry = addEntry(options.resolver, self$1, options.onExit, {
13420
13449
  services: options.services,
13421
- currentScheduler: get$6(options.services, Scheduler)
13450
+ currentScheduler: get$7(options.services, Scheduler)
13422
13451
  });
13423
13452
  return () => removeEntryUnsafe(options.resolver, entry);
13424
13453
  };
@@ -13507,7 +13536,7 @@ function runBatch(batch) {
13507
13536
 
13508
13537
  //#endregion
13509
13538
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/Effect.js
13510
- const TypeId$44 = EffectTypeId;
13539
+ const TypeId$45 = EffectTypeId;
13511
13540
  /**
13512
13541
  * Tests if a value is an `Effect`.
13513
13542
  *
@@ -13522,7 +13551,7 @@ const TypeId$44 = EffectTypeId;
13522
13551
  * @since 2.0.0
13523
13552
  * @category guards
13524
13553
  */
13525
- const isEffect = (u) => typeof u === "object" && u !== null && TypeId$44 in u;
13554
+ const isEffect = (u) => typeof u === "object" && u !== null && TypeId$45 in u;
13526
13555
  /**
13527
13556
  * Combines multiple effects into one, returning results based on the input
13528
13557
  * structure.
@@ -19491,7 +19520,7 @@ const fnUntracedEager = fnUntracedEager$1;
19491
19520
 
19492
19521
  //#endregion
19493
19522
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/DateTime.js
19494
- TypeId$47;
19523
+ TypeId$48;
19495
19524
  TimeZoneTypeId;
19496
19525
  /**
19497
19526
  * @since 3.6.0
@@ -19646,7 +19675,7 @@ const fromDateUnsafe = fromDateUnsafe$1;
19646
19675
  * DateTime.makeUnsafe("2024-01-01")
19647
19676
  * ```
19648
19677
  */
19649
- const makeUnsafe$2 = makeUnsafe$3;
19678
+ const makeUnsafe$3 = makeUnsafe$4;
19650
19679
  /**
19651
19680
  * Create a `DateTime.Zoned` using `DateTime.makeUnsafe` and a time zone.
19652
19681
  *
@@ -19724,7 +19753,7 @@ const makeZoned = makeZoned$1;
19724
19753
  * DateTime.make("2024-01-01")
19725
19754
  * ```
19726
19755
  */
19727
- const make$41 = make$42;
19756
+ const make$42 = make$43;
19728
19757
  /**
19729
19758
  * Create a `DateTime.Zoned` from a string.
19730
19759
  *
@@ -21543,15 +21572,15 @@ const encoder$1 = /* @__PURE__ */ new TextEncoder();
21543
21572
 
21544
21573
  //#endregion
21545
21574
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/SchemaIssue.js
21546
- const TypeId$43 = "~effect/SchemaIssue/Issue";
21575
+ const TypeId$44 = "~effect/SchemaIssue/Issue";
21547
21576
  /**
21548
21577
  * @since 4.0.0
21549
21578
  */
21550
21579
  function isIssue(u) {
21551
- return hasProperty(u, TypeId$43);
21580
+ return hasProperty(u, TypeId$44);
21552
21581
  }
21553
21582
  var Base$1 = class {
21554
- [TypeId$43] = TypeId$43;
21583
+ [TypeId$44] = TypeId$44;
21555
21584
  toString() {
21556
21585
  return defaultFormatter$1(this);
21557
21586
  }
@@ -21824,7 +21853,7 @@ var OneOf = class extends Base$1 {
21824
21853
  }
21825
21854
  };
21826
21855
  /** @internal */
21827
- function make$40(input, out) {
21856
+ function make$41(input, out) {
21828
21857
  if (isIssue(out)) return out;
21829
21858
  if (out === void 0) return;
21830
21859
  if (typeof out === "boolean") return out ? void 0 : new InvalidValue$1(some(input));
@@ -22093,7 +22122,7 @@ function decodeBase64() {
22093
22122
  */
22094
22123
  function dateTimeUtcFromInput() {
22095
22124
  return transformOrFail$1((input) => {
22096
- const dt = make$41(input);
22125
+ const dt = make$42(input);
22097
22126
  return dt ? succeed(toUtc(dt)) : fail$3(new InvalidValue$1(some(input), { message: "Invalid DateTime input" }));
22098
22127
  });
22099
22128
  }
@@ -22128,13 +22157,13 @@ function collectBracketPathEntries(isLeaf) {
22128
22157
  /**
22129
22158
  * @since 4.0.0
22130
22159
  */
22131
- const TypeId$42 = "~effect/SchemaTransformation/Transformation";
22160
+ const TypeId$43 = "~effect/SchemaTransformation/Transformation";
22132
22161
  /**
22133
22162
  * @category model
22134
22163
  * @since 4.0.0
22135
22164
  */
22136
22165
  var Transformation = class Transformation {
22137
- [TypeId$42] = TypeId$42;
22166
+ [TypeId$43] = TypeId$43;
22138
22167
  _tag = "Transformation";
22139
22168
  decode;
22140
22169
  encode;
@@ -22153,12 +22182,12 @@ var Transformation = class Transformation {
22153
22182
  * @since 4.0.0
22154
22183
  */
22155
22184
  function isTransformation(u) {
22156
- return hasProperty(u, TypeId$42);
22185
+ return hasProperty(u, TypeId$43);
22157
22186
  }
22158
22187
  /**
22159
22188
  * @since 4.0.0
22160
22189
  */
22161
- const make$39 = (options) => {
22190
+ const make$40 = (options) => {
22162
22191
  if (isTransformation(options)) return options;
22163
22192
  return new Transformation(options.decode, options.encode);
22164
22193
  };
@@ -22248,7 +22277,7 @@ function makeGuard(tag$1) {
22248
22277
  * @since 4.0.0
22249
22278
  */
22250
22279
  function isAST(u) {
22251
- return hasProperty(u, TypeId$41) && u[TypeId$41] === TypeId$41;
22280
+ return hasProperty(u, TypeId$42) && u[TypeId$42] === TypeId$42;
22252
22281
  }
22253
22282
  /**
22254
22283
  * @category Guard
@@ -22311,13 +22340,13 @@ var Context = class {
22311
22340
  this.annotations = annotations$1;
22312
22341
  }
22313
22342
  };
22314
- const TypeId$41 = "~effect/Schema";
22343
+ const TypeId$42 = "~effect/Schema";
22315
22344
  /**
22316
22345
  * @category model
22317
22346
  * @since 4.0.0
22318
22347
  */
22319
22348
  var Base = class {
22320
- [TypeId$41] = TypeId$41;
22349
+ [TypeId$42] = TypeId$42;
22321
22350
  annotations;
22322
22351
  checks;
22323
22352
  encoding;
@@ -23290,7 +23319,7 @@ var FilterGroup = class FilterGroup extends Class$3 {
23290
23319
  };
23291
23320
  /** @internal */
23292
23321
  function makeFilter$1(filter$6, annotations$1, aborted = false) {
23293
- return new Filter((input, ast, options) => make$40(input, filter$6(input, ast, options)), annotations$1, aborted);
23322
+ return new Filter((input, ast, options) => make$41(input, filter$6(input, ast, options)), annotations$1, aborted);
23294
23323
  }
23295
23324
  /** @internal */
23296
23325
  function makeRefinedByGuard$1(is$2, annotations$1) {
@@ -23772,7 +23801,7 @@ function makeEffect(schema) {
23772
23801
  * @category Constructing
23773
23802
  * @since 4.0.0
23774
23803
  */
23775
- function makeUnsafe$1(schema) {
23804
+ function makeUnsafe$2(schema) {
23776
23805
  const parser = makeEffect(schema);
23777
23806
  return (input, options) => {
23778
23807
  return runSync(mapErrorEager(parser(input, options), (issue) => new Error(issue.toString(), { cause: issue })));
@@ -24067,9 +24096,9 @@ function escapeToken(token) {
24067
24096
  //#endregion
24068
24097
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/internal/schema/schema.js
24069
24098
  /** @internal */
24070
- const TypeId$40 = "~effect/Schema/Schema";
24099
+ const TypeId$41 = "~effect/Schema/Schema";
24071
24100
  const SchemaProto = {
24072
- [TypeId$40]: TypeId$40,
24101
+ [TypeId$41]: TypeId$41,
24073
24102
  pipe() {
24074
24103
  return pipeArguments(this, arguments);
24075
24104
  },
@@ -24084,12 +24113,12 @@ const SchemaProto = {
24084
24113
  }
24085
24114
  };
24086
24115
  /** @internal */
24087
- function make$38(ast, options) {
24116
+ function make$39(ast, options) {
24088
24117
  const self$1 = Object.create(SchemaProto);
24089
24118
  if (options) Object.assign(self$1, options);
24090
24119
  self$1.ast = ast;
24091
- self$1.rebuild = (ast$1) => make$38(ast$1, options);
24092
- self$1.makeUnsafe = makeUnsafe$1(self$1);
24120
+ self$1.rebuild = (ast$1) => make$39(ast$1, options);
24121
+ self$1.makeUnsafe = makeUnsafe$2(self$1);
24093
24122
  return self$1;
24094
24123
  }
24095
24124
 
@@ -24108,7 +24137,7 @@ function toCodecJsonBase(ast) {
24108
24137
  case "Declaration": {
24109
24138
  const getLink = ast.annotations?.toCodecJson ?? ast.annotations?.toCodec;
24110
24139
  if (isFunction(getLink)) {
24111
- const link$2 = getLink(isDeclaration(ast) ? ast.typeParameters.map((tp) => make$38(toEncoded(tp))) : []);
24140
+ const link$2 = getLink(isDeclaration(ast) ? ast.typeParameters.map((tp) => make$39(toEncoded(tp))) : []);
24112
24141
  const to = toCodecJson$1(link$2.to);
24113
24142
  return replaceEncoding(ast, to === link$2.to ? [link$2] : [new Link(to, link$2.transformation)]);
24114
24143
  }
@@ -24286,7 +24315,7 @@ function fromASTs(asts) {
24286
24315
  function getEncodedSchema(last$1) {
24287
24316
  const getLink = last$1.annotations?.toCodecJson ?? last$1.annotations?.toCodec;
24288
24317
  if (isFunction(getLink)) {
24289
- const link$2 = getLink(last$1.typeParameters.map((tp) => make$38(toEncoded(tp))));
24318
+ const link$2 = getLink(last$1.typeParameters.map((tp) => make$39(toEncoded(tp))));
24290
24319
  return replaceEncoding(last$1, [link$2]);
24291
24320
  }
24292
24321
  return null_;
@@ -24790,7 +24819,7 @@ const redactedRegistry = /* @__PURE__ */ new WeakMap();
24790
24819
  *
24791
24820
  * @since 3.3.0
24792
24821
  */
24793
- const TypeId$39 = "~effect/data/Redacted";
24822
+ const TypeId$40 = "~effect/data/Redacted";
24794
24823
  /**
24795
24824
  * @example
24796
24825
  * ```ts
@@ -24806,7 +24835,7 @@ const TypeId$39 = "~effect/data/Redacted";
24806
24835
  * @since 3.3.0
24807
24836
  * @category refinements
24808
24837
  */
24809
- const isRedacted = (u) => hasProperty(u, TypeId$39);
24838
+ const isRedacted = (u) => hasProperty(u, TypeId$40);
24810
24839
  /**
24811
24840
  * This function creates a `Redacted<A>` instance from a given value `A`,
24812
24841
  * securely hiding its content.
@@ -24821,14 +24850,14 @@ const isRedacted = (u) => hasProperty(u, TypeId$39);
24821
24850
  * @since 3.3.0
24822
24851
  * @category constructors
24823
24852
  */
24824
- const make$37 = (value, options) => {
24853
+ const make$38 = (value, options) => {
24825
24854
  const redacted = Object.create(Proto$15);
24826
24855
  if (options?.label) redacted.label = options.label;
24827
24856
  redactedRegistry.set(redacted, value);
24828
24857
  return redacted;
24829
24858
  };
24830
24859
  const Proto$15 = {
24831
- [TypeId$39]: { _A: (_) => _ },
24860
+ [TypeId$40]: { _A: (_) => _ },
24832
24861
  label: void 0,
24833
24862
  ...PipeInspectableProto,
24834
24863
  toJSON() {
@@ -24847,7 +24876,7 @@ const Proto$15 = {
24847
24876
 
24848
24877
  //#endregion
24849
24878
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/Schema.js
24850
- const TypeId$38 = TypeId$40;
24879
+ const TypeId$39 = TypeId$41;
24851
24880
  /**
24852
24881
  * An API for creating schemas for parametric types.
24853
24882
  *
@@ -24858,7 +24887,7 @@ const TypeId$38 = TypeId$40;
24858
24887
  */
24859
24888
  function declareConstructor() {
24860
24889
  return (typeParameters, run$6, annotations$1) => {
24861
- return make$36(new Declaration(typeParameters.map(getAST), (typeParameters$1) => run$6(typeParameters$1.map((ast) => make$36(ast))), annotations$1));
24890
+ return make$37(new Declaration(typeParameters.map(getAST), (typeParameters$1) => run$6(typeParameters$1.map((ast) => make$37(ast))), annotations$1));
24862
24891
  };
24863
24892
  }
24864
24893
  /**
@@ -25088,7 +25117,7 @@ const encodeSync = encodeSync$1;
25088
25117
  * @category Constructors
25089
25118
  * @since 4.0.0
25090
25119
  */
25091
- const make$36 = make$38;
25120
+ const make$37 = make$39;
25092
25121
  /**
25093
25122
  * Tests if a value is a `Schema`.
25094
25123
  *
@@ -25096,7 +25125,7 @@ const make$36 = make$38;
25096
25125
  * @since 4.0.0
25097
25126
  */
25098
25127
  function isSchema(u) {
25099
- return hasProperty(u, TypeId$38) && u[TypeId$38] === TypeId$38;
25128
+ return hasProperty(u, TypeId$39) && u[TypeId$39] === TypeId$39;
25100
25129
  }
25101
25130
  /**
25102
25131
  * Creates an exact optional key schema for struct fields. Unlike `optional`,
@@ -25119,7 +25148,7 @@ function isSchema(u) {
25119
25148
  *
25120
25149
  * @since 4.0.0
25121
25150
  */
25122
- const optionalKey = /* @__PURE__ */ lambda((schema) => make$36(optionalKey$1(schema.ast), { schema }));
25151
+ const optionalKey = /* @__PURE__ */ lambda((schema) => make$37(optionalKey$1(schema.ast), { schema }));
25123
25152
  /**
25124
25153
  * Creates an optional schema field that allows both the specified type and
25125
25154
  * `undefined`.
@@ -25154,7 +25183,7 @@ const optional$2 = /* @__PURE__ */ lambda((self$1) => optionalKey(UndefinedOr(se
25154
25183
  * @since 4.0.0
25155
25184
  */
25156
25185
  function Literal(literal) {
25157
- const out = make$36(new Literal$1(literal), {
25186
+ const out = make$37(new Literal$1(literal), {
25158
25187
  literal,
25159
25188
  transform(to) {
25160
25189
  return out.pipe(decodeTo(Literal(to), {
@@ -25168,29 +25197,29 @@ function Literal(literal) {
25168
25197
  /**
25169
25198
  * @since 4.0.0
25170
25199
  */
25171
- const Never = /* @__PURE__ */ make$36(never$3);
25200
+ const Never = /* @__PURE__ */ make$37(never$3);
25172
25201
  /**
25173
25202
  * @since 4.0.0
25174
25203
  */
25175
- const Any = /* @__PURE__ */ make$36(any);
25204
+ const Any = /* @__PURE__ */ make$37(any);
25176
25205
  /**
25177
25206
  * @since 4.0.0
25178
25207
  */
25179
- const Unknown = /* @__PURE__ */ make$36(unknown);
25208
+ const Unknown = /* @__PURE__ */ make$37(unknown);
25180
25209
  /**
25181
25210
  * @since 4.0.0
25182
25211
  */
25183
- const Null = /* @__PURE__ */ make$36(null_);
25212
+ const Null = /* @__PURE__ */ make$37(null_);
25184
25213
  /**
25185
25214
  * @since 4.0.0
25186
25215
  */
25187
- const Undefined = /* @__PURE__ */ make$36(undefined_);
25216
+ const Undefined = /* @__PURE__ */ make$37(undefined_);
25188
25217
  /**
25189
25218
  * A schema for all strings.
25190
25219
  *
25191
25220
  * @since 4.0.0
25192
25221
  */
25193
- const String$1 = /* @__PURE__ */ make$36(string$1);
25222
+ const String$1 = /* @__PURE__ */ make$37(string$1);
25194
25223
  /**
25195
25224
  * A schema for all numbers, including `NaN`, `Infinity`, and `-Infinity`.
25196
25225
  *
@@ -25201,40 +25230,40 @@ const String$1 = /* @__PURE__ */ make$36(string$1);
25201
25230
  *
25202
25231
  * @since 4.0.0
25203
25232
  */
25204
- const Number$1 = /* @__PURE__ */ make$36(number);
25233
+ const Number$1 = /* @__PURE__ */ make$37(number);
25205
25234
  /**
25206
25235
  * A schema for all booleans.
25207
25236
  *
25208
25237
  * @category Boolean
25209
25238
  * @since 4.0.0
25210
25239
  */
25211
- const Boolean$2 = /* @__PURE__ */ make$36(boolean$3);
25240
+ const Boolean$2 = /* @__PURE__ */ make$37(boolean$3);
25212
25241
  /**
25213
25242
  * A schema for all symbols.
25214
25243
  *
25215
25244
  * @since 4.0.0
25216
25245
  */
25217
- const Symbol$1 = /* @__PURE__ */ make$36(symbol);
25246
+ const Symbol$1 = /* @__PURE__ */ make$37(symbol);
25218
25247
  /**
25219
25248
  * A schema for all bigints.
25220
25249
  *
25221
25250
  * @since 4.0.0
25222
25251
  */
25223
- const BigInt$1 = /* @__PURE__ */ make$36(bigInt);
25252
+ const BigInt$1 = /* @__PURE__ */ make$37(bigInt);
25224
25253
  /**
25225
25254
  * A schema for the `void` type.
25226
25255
  *
25227
25256
  * @since 4.0.0
25228
25257
  */
25229
- const Void = /* @__PURE__ */ make$36(void_);
25258
+ const Void = /* @__PURE__ */ make$37(void_);
25230
25259
  /**
25231
25260
  * A schema for the `object` type.
25232
25261
  *
25233
25262
  * @since 4.0.0
25234
25263
  */
25235
- const ObjectKeyword = /* @__PURE__ */ make$36(objectKeyword);
25264
+ const ObjectKeyword = /* @__PURE__ */ make$37(objectKeyword);
25236
25265
  function makeStruct(ast, fields) {
25237
- return make$36(ast, {
25266
+ return make$37(ast, {
25238
25267
  fields,
25239
25268
  mapFields(f, options) {
25240
25269
  const fields$1 = f(this.fields);
@@ -25253,13 +25282,13 @@ function Struct(fields) {
25253
25282
  */
25254
25283
  function Record(key, value, options) {
25255
25284
  const keyValueCombiner = options?.keyValueCombiner?.decode || options?.keyValueCombiner?.encode ? new KeyValueCombiner(options.keyValueCombiner.decode, options.keyValueCombiner.encode) : void 0;
25256
- return make$36(record(key.ast, value.ast, keyValueCombiner), {
25285
+ return make$37(record(key.ast, value.ast, keyValueCombiner), {
25257
25286
  key,
25258
25287
  value
25259
25288
  });
25260
25289
  }
25261
25290
  function makeTuple(ast, elements) {
25262
- return make$36(ast, {
25291
+ return make$37(ast, {
25263
25292
  elements,
25264
25293
  mapElements(f, options) {
25265
25294
  const elements$1 = f(this.elements);
@@ -25278,14 +25307,14 @@ function Tuple(elements) {
25278
25307
  * @category Constructors
25279
25308
  * @since 4.0.0
25280
25309
  */
25281
- const Array$1 = /* @__PURE__ */ lambda((schema) => make$36(new Arrays(false, [], [schema.ast]), { schema }));
25310
+ const Array$1 = /* @__PURE__ */ lambda((schema) => make$37(new Arrays(false, [], [schema.ast]), { schema }));
25282
25311
  /**
25283
25312
  * @category Constructors
25284
25313
  * @since 4.0.0
25285
25314
  */
25286
- const NonEmptyArray = /* @__PURE__ */ lambda((schema) => make$36(new Arrays(false, [schema.ast], [schema.ast]), { schema }));
25315
+ const NonEmptyArray = /* @__PURE__ */ lambda((schema) => make$37(new Arrays(false, [schema.ast], [schema.ast]), { schema }));
25287
25316
  function makeUnion(ast, members) {
25288
- return make$36(ast, {
25317
+ return make$37(ast, {
25289
25318
  members,
25290
25319
  mapMembers(f, options) {
25291
25320
  const members$1 = f(this.members);
@@ -25314,7 +25343,7 @@ function Union(members, options) {
25314
25343
  */
25315
25344
  function Literals(literals) {
25316
25345
  const members = literals.map(Literal);
25317
- return make$36(union(members, "anyOf", void 0), {
25346
+ return make$37(union(members, "anyOf", void 0), {
25318
25347
  literals,
25319
25348
  members,
25320
25349
  mapMembers(f) {
@@ -25340,7 +25369,7 @@ const NullOr = /* @__PURE__ */ lambda((self$1) => Union([self$1, Null]));
25340
25369
  const UndefinedOr = /* @__PURE__ */ lambda((self$1) => Union([self$1, Undefined]));
25341
25370
  function decodeTo(to, transformation) {
25342
25371
  return (from) => {
25343
- return make$36(decodeTo$1(from.ast, to.ast, transformation ? make$39(transformation) : passthrough()), {
25372
+ return make$37(decodeTo$1(from.ast, to.ast, transformation ? make$40(transformation) : passthrough()), {
25344
25373
  from,
25345
25374
  to
25346
25375
  });
@@ -25351,7 +25380,7 @@ function decodeTo(to, transformation) {
25351
25380
  */
25352
25381
  function withConstructorDefault(defaultValue) {
25353
25382
  return (schema) => {
25354
- return make$36(withConstructorDefault$1(schema.ast, defaultValue), { schema });
25383
+ return make$37(withConstructorDefault$1(schema.ast, defaultValue), { schema });
25355
25384
  };
25356
25385
  }
25357
25386
  /**
@@ -25383,7 +25412,7 @@ function instanceOf(constructor, annotations$1) {
25383
25412
  */
25384
25413
  function link$1() {
25385
25414
  return (encodeTo, transformation) => {
25386
- return new Link(encodeTo.ast, make$39(transformation));
25415
+ return new Link(encodeTo.ast, make$40(transformation));
25387
25416
  };
25388
25417
  }
25389
25418
  /**
@@ -26071,7 +26100,7 @@ const isNotUndefined = isNotUndefined$1;
26071
26100
  * @since 4.0.0
26072
26101
  */
26073
26102
  function Option(value) {
26074
- return make$36(declareConstructor()([value], ([value$1]) => (input, ast, options) => {
26103
+ return make$37(declareConstructor()([value], ([value$1]) => (input, ast, options) => {
26075
26104
  if (isOption(input)) {
26076
26105
  if (isNone(input)) return succeedNone;
26077
26106
  return mapBothEager(decodeUnknownEffect$1(value$1)(input.value, options), {
@@ -26621,7 +26650,7 @@ const DateTimeUtcFromDate = /* @__PURE__ */ DateValid.pipe(/* @__PURE__ */ decod
26621
26650
  * @since 4.0.0
26622
26651
  */
26623
26652
  const DateTimeUtcFromString = /* @__PURE__ */ String$1.annotate({ expected: "a string that will be decoded as a DateTime.Utc" }).pipe(/* @__PURE__ */ decodeTo(DateTimeUtc, /* @__PURE__ */ transform({
26624
- decode: makeUnsafe$2,
26653
+ decode: makeUnsafe$3,
26625
26654
  encode: formatIso
26626
26655
  })));
26627
26656
  /**
@@ -26661,7 +26690,7 @@ function makeClass(Inherited, identifier$1, struct$1, annotations$1) {
26661
26690
  toString() {
26662
26691
  return `${identifier$1}(${format$2({ ...this })})`;
26663
26692
  }
26664
- static [TypeId$38] = TypeId$38;
26693
+ static [TypeId$39] = TypeId$39;
26665
26694
  get [ClassTypeId$1]() {
26666
26695
  return ClassTypeId$1;
26667
26696
  }
@@ -26714,7 +26743,7 @@ function getClassSchemaFactory(from, identifier$1, annotations$1) {
26714
26743
  return (self$1) => {
26715
26744
  if (memo === void 0) {
26716
26745
  const transformation = getClassTransformation(self$1);
26717
- const to = make$36(new Declaration([from.ast], () => (input, ast) => {
26746
+ const to = make$37(new Declaration([from.ast], () => (input, ast) => {
26718
26747
  return input instanceof self$1 || hasProperty(input, getClassTypeId(identifier$1)) ? succeed(input) : fail$3(new InvalidType(ast, some(input)));
26719
26748
  }, {
26720
26749
  identifier: identifier$1,
@@ -26777,11 +26806,11 @@ function toJsonSchemaDocument(schema, options) {
26777
26806
  * @since 4.0.0
26778
26807
  */
26779
26808
  function toCodecJson(schema) {
26780
- return make$36(toCodecJson$1(schema.ast));
26809
+ return make$37(toCodecJson$1(schema.ast));
26781
26810
  }
26782
26811
  function toCodecStringTree(schema, options) {
26783
- if (options?.keepDeclarations === true) return make$36(toCodecEnsureArray(serializerStringTreeKeepDeclarations(schema.ast)));
26784
- else return make$36(toCodecEnsureArray(serializerStringTree(schema.ast)));
26812
+ if (options?.keepDeclarations === true) return make$37(toCodecEnsureArray(serializerStringTreeKeepDeclarations(schema.ast)));
26813
+ else return make$37(toCodecEnsureArray(serializerStringTree(schema.ast)));
26785
26814
  }
26786
26815
  function getStringTreePriority(ast) {
26787
26816
  switch (ast._tag) {
@@ -26802,7 +26831,7 @@ function serializerTree(ast, recur$1, onMissingAnnotation) {
26802
26831
  case "Declaration": {
26803
26832
  const getLink = ast.annotations?.toCodecJson ?? ast.annotations?.toCodec;
26804
26833
  if (isFunction(getLink)) {
26805
- const link$2 = getLink(isDeclaration(ast) ? ast.typeParameters.map((tp) => make$36(recur$1(toEncoded(tp)))) : []);
26834
+ const link$2 = getLink(isDeclaration(ast) ? ast.typeParameters.map((tp) => make$37(recur$1(toEncoded(tp)))) : []);
26806
26835
  const to = recur$1(link$2.to);
26807
26836
  return replaceEncoding(ast, to === link$2.to ? [link$2] : [new Link(to, link$2.transformation)]);
26808
26837
  }
@@ -26872,7 +26901,7 @@ function onSerializerEnsureArray(ast) {
26872
26901
  * @since 4.0.0
26873
26902
  * @category type id
26874
26903
  */
26875
- const TypeId$37 = "~effect/cli/CliError";
26904
+ const TypeId$38 = "~effect/cli/CliError";
26876
26905
  /**
26877
26906
  * Type guard to check if a value is a CLI error.
26878
26907
  *
@@ -26902,7 +26931,7 @@ const TypeId$37 = "~effect/cli/CliError";
26902
26931
  * @since 4.0.0
26903
26932
  * @category guards
26904
26933
  */
26905
- const isCliError = (u) => hasProperty(u, TypeId$37);
26934
+ const isCliError = (u) => hasProperty(u, TypeId$38);
26906
26935
  /**
26907
26936
  * Error thrown when an unrecognized option is encountered.
26908
26937
  *
@@ -26935,7 +26964,7 @@ const isCliError = (u) => hasProperty(u, TypeId$37);
26935
26964
  * @since 4.0.0
26936
26965
  * @category models
26937
26966
  */
26938
- var UnrecognizedOption = class extends ErrorClass(`${TypeId$37}/UnrecognizedOption`)({
26967
+ var UnrecognizedOption = class extends ErrorClass(`${TypeId$38}/UnrecognizedOption`)({
26939
26968
  _tag: /* @__PURE__ */ tag("UnrecognizedOption"),
26940
26969
  option: String$1,
26941
26970
  command: /* @__PURE__ */ optional$2(/* @__PURE__ */ Array$1(String$1)),
@@ -26944,7 +26973,7 @@ var UnrecognizedOption = class extends ErrorClass(`${TypeId$37}/UnrecognizedOpti
26944
26973
  /**
26945
26974
  * @since 4.0.0
26946
26975
  */
26947
- [TypeId$37] = TypeId$37;
26976
+ [TypeId$38] = TypeId$38;
26948
26977
  /**
26949
26978
  * @since 4.0.0
26950
26979
  */
@@ -26974,7 +27003,7 @@ var UnrecognizedOption = class extends ErrorClass(`${TypeId$37}/UnrecognizedOpti
26974
27003
  * @since 4.0.0
26975
27004
  * @category models
26976
27005
  */
26977
- var DuplicateOption = class extends ErrorClass(`${TypeId$37}/DuplicateOption`)({
27006
+ var DuplicateOption = class extends ErrorClass(`${TypeId$38}/DuplicateOption`)({
26978
27007
  _tag: /* @__PURE__ */ tag("DuplicateOption"),
26979
27008
  option: String$1,
26980
27009
  parentCommand: String$1,
@@ -26983,7 +27012,7 @@ var DuplicateOption = class extends ErrorClass(`${TypeId$37}/DuplicateOption`)({
26983
27012
  /**
26984
27013
  * @since 4.0.0
26985
27014
  */
26986
- [TypeId$37] = TypeId$37;
27015
+ [TypeId$38] = TypeId$38;
26987
27016
  /**
26988
27017
  * @since 4.0.0
26989
27018
  */
@@ -27020,14 +27049,14 @@ var DuplicateOption = class extends ErrorClass(`${TypeId$37}/DuplicateOption`)({
27020
27049
  * @since 4.0.0
27021
27050
  * @category models
27022
27051
  */
27023
- var MissingOption = class extends ErrorClass(`${TypeId$37}/MissingOption`)({
27052
+ var MissingOption = class extends ErrorClass(`${TypeId$38}/MissingOption`)({
27024
27053
  _tag: /* @__PURE__ */ tag("MissingOption"),
27025
27054
  option: String$1
27026
27055
  }) {
27027
27056
  /**
27028
27057
  * @since 4.0.0
27029
27058
  */
27030
- [TypeId$37] = TypeId$37;
27059
+ [TypeId$38] = TypeId$38;
27031
27060
  /**
27032
27061
  * @since 4.0.0
27033
27062
  */
@@ -27063,14 +27092,14 @@ var MissingOption = class extends ErrorClass(`${TypeId$37}/MissingOption`)({
27063
27092
  * @since 4.0.0
27064
27093
  * @category models
27065
27094
  */
27066
- var MissingArgument = class extends ErrorClass(`${TypeId$37}/MissingArgument`)({
27095
+ var MissingArgument = class extends ErrorClass(`${TypeId$38}/MissingArgument`)({
27067
27096
  _tag: /* @__PURE__ */ tag("MissingArgument"),
27068
27097
  argument: String$1
27069
27098
  }) {
27070
27099
  /**
27071
27100
  * @since 4.0.0
27072
27101
  */
27073
- [TypeId$37] = TypeId$37;
27102
+ [TypeId$38] = TypeId$38;
27074
27103
  /**
27075
27104
  * @since 4.0.0
27076
27105
  */
@@ -27111,7 +27140,7 @@ var MissingArgument = class extends ErrorClass(`${TypeId$37}/MissingArgument`)({
27111
27140
  * @since 4.0.0
27112
27141
  * @category models
27113
27142
  */
27114
- var InvalidValue = class extends ErrorClass(`${TypeId$37}/InvalidValue`)({
27143
+ var InvalidValue = class extends ErrorClass(`${TypeId$38}/InvalidValue`)({
27115
27144
  _tag: /* @__PURE__ */ tag("InvalidValue"),
27116
27145
  option: String$1,
27117
27146
  value: String$1,
@@ -27121,7 +27150,7 @@ var InvalidValue = class extends ErrorClass(`${TypeId$37}/InvalidValue`)({
27121
27150
  /**
27122
27151
  * @since 4.0.0
27123
27152
  */
27124
- [TypeId$37] = TypeId$37;
27153
+ [TypeId$38] = TypeId$38;
27125
27154
  /**
27126
27155
  * @since 4.0.0
27127
27156
  */
@@ -27165,7 +27194,7 @@ var InvalidValue = class extends ErrorClass(`${TypeId$37}/InvalidValue`)({
27165
27194
  * @since 4.0.0
27166
27195
  * @category models
27167
27196
  */
27168
- var UnknownSubcommand = class extends ErrorClass(`${TypeId$37}/UnknownSubcommand`)({
27197
+ var UnknownSubcommand = class extends ErrorClass(`${TypeId$38}/UnknownSubcommand`)({
27169
27198
  _tag: /* @__PURE__ */ tag("UnknownSubcommand"),
27170
27199
  subcommand: String$1,
27171
27200
  parent: /* @__PURE__ */ optional$2(/* @__PURE__ */ Array$1(String$1)),
@@ -27174,7 +27203,7 @@ var UnknownSubcommand = class extends ErrorClass(`${TypeId$37}/UnknownSubcommand
27174
27203
  /**
27175
27204
  * @since 4.0.0
27176
27205
  */
27177
- [TypeId$37] = TypeId$37;
27206
+ [TypeId$38] = TypeId$38;
27178
27207
  /**
27179
27208
  * @since 4.0.0
27180
27209
  */
@@ -27221,14 +27250,14 @@ var UnknownSubcommand = class extends ErrorClass(`${TypeId$37}/UnknownSubcommand
27221
27250
  * @since 4.0.0
27222
27251
  * @category models
27223
27252
  */
27224
- var ShowHelp = class extends ErrorClass(`${TypeId$37}/ShowHelp`)({
27253
+ var ShowHelp = class extends ErrorClass(`${TypeId$38}/ShowHelp`)({
27225
27254
  _tag: /* @__PURE__ */ tag("ShowHelp"),
27226
27255
  commandPath: /* @__PURE__ */ Array$1(String$1)
27227
27256
  }) {
27228
27257
  /**
27229
27258
  * @since 4.0.0
27230
27259
  */
27231
- [TypeId$37] = TypeId$37;
27260
+ [TypeId$38] = TypeId$38;
27232
27261
  /**
27233
27262
  * @since 4.0.0
27234
27263
  */
@@ -27271,14 +27300,14 @@ var ShowHelp = class extends ErrorClass(`${TypeId$37}/ShowHelp`)({
27271
27300
  * @since 4.0.0
27272
27301
  * @category models
27273
27302
  */
27274
- var UserError = class extends ErrorClass(`${TypeId$37}/UserError`)({
27303
+ var UserError = class extends ErrorClass(`${TypeId$38}/UserError`)({
27275
27304
  _tag: /* @__PURE__ */ tag("UserError"),
27276
27305
  cause: Defect
27277
27306
  }) {
27278
27307
  /**
27279
27308
  * @since 4.0.0
27280
27309
  */
27281
- [TypeId$37] = TypeId$37;
27310
+ [TypeId$38] = TypeId$38;
27282
27311
  };
27283
27312
 
27284
27313
  //#endregion
@@ -32658,8 +32687,8 @@ var require_stringifyPair = /* @__PURE__ */ __commonJSMin$1(((exports) => {
32658
32687
  const vs0 = valueStr[0];
32659
32688
  const nl0 = valueStr.indexOf("\n");
32660
32689
  const hasNewline = nl0 !== -1;
32661
- const flow = ctx.inFlow ?? value.flow ?? value.items.length === 0;
32662
- if (hasNewline || !flow) {
32690
+ const flow$1 = ctx.inFlow ?? value.flow ?? value.items.length === 0;
32691
+ if (hasNewline || !flow$1) {
32663
32692
  let hasPropsLine = false;
32664
32693
  if (hasNewline && (vs0 === "&" || vs0 === "!")) {
32665
32694
  let sp0 = valueStr.indexOf(" ");
@@ -34244,7 +34273,7 @@ var require_Document = /* @__PURE__ */ __commonJSMin$1(((exports) => {
34244
34273
  options = replacer;
34245
34274
  replacer = void 0;
34246
34275
  }
34247
- const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag: tag$1 } = options ?? {};
34276
+ const { aliasDuplicateObjects, anchorPrefix, flow: flow$1, keepUndefined, onTagObj, tag: tag$1 } = options ?? {};
34248
34277
  const { onAnchor, setAnchors, sourceObjects } = anchors.createNodeAnchors(this, anchorPrefix || "a");
34249
34278
  const ctx = {
34250
34279
  aliasDuplicateObjects: aliasDuplicateObjects ?? true,
@@ -34256,7 +34285,7 @@ var require_Document = /* @__PURE__ */ __commonJSMin$1(((exports) => {
34256
34285
  sourceObjects
34257
34286
  };
34258
34287
  const node = createNode.createNode(value, tag$1, ctx);
34259
- if (flow && identity.isCollection(node)) node.flow = true;
34288
+ if (flow$1 && identity.isCollection(node)) node.flow = true;
34260
34289
  setAnchors();
34261
34290
  return node;
34262
34291
  }
@@ -34477,7 +34506,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin$1(((exports) => {
34477
34506
  //#endregion
34478
34507
  //#region node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-props.js
34479
34508
  var require_resolve_props = /* @__PURE__ */ __commonJSMin$1(((exports) => {
34480
- function resolveProps(tokens, { flow, indicator, next, offset, onError: onError$2, parentIndent, startOnNewline }) {
34509
+ function resolveProps(tokens, { flow: flow$1, indicator, next, offset, onError: onError$2, parentIndent, startOnNewline }) {
34481
34510
  let spaceBefore = false;
34482
34511
  let atNewline = startOnNewline;
34483
34512
  let hasSpace = startOnNewline;
@@ -34503,7 +34532,7 @@ var require_resolve_props = /* @__PURE__ */ __commonJSMin$1(((exports) => {
34503
34532
  }
34504
34533
  switch (token.type) {
34505
34534
  case "space":
34506
- if (!flow && (indicator !== "doc-start" || next?.type !== "flow-collection") && token.source.includes(" ")) tab = token;
34535
+ if (!flow$1 && (indicator !== "doc-start" || next?.type !== "flow-collection") && token.source.includes(" ")) tab = token;
34507
34536
  hasSpace = true;
34508
34537
  break;
34509
34538
  case "comment": {
@@ -34544,13 +34573,13 @@ var require_resolve_props = /* @__PURE__ */ __commonJSMin$1(((exports) => {
34544
34573
  break;
34545
34574
  case indicator:
34546
34575
  if (anchor || tag$1) onError$2(token, "BAD_PROP_ORDER", `Anchors and tags must be after the ${token.source} indicator`);
34547
- if (found) onError$2(token, "UNEXPECTED_TOKEN", `Unexpected ${token.source} in ${flow ?? "collection"}`);
34576
+ if (found) onError$2(token, "UNEXPECTED_TOKEN", `Unexpected ${token.source} in ${flow$1 ?? "collection"}`);
34548
34577
  found = token;
34549
34578
  atNewline = indicator === "seq-item-ind" || indicator === "explicit-key-ind";
34550
34579
  hasSpace = false;
34551
34580
  break;
34552
- case "comma": if (flow) {
34553
- if (comma) onError$2(token, "UNEXPECTED_TOKEN", `Unexpected , in ${flow}`);
34581
+ case "comma": if (flow$1) {
34582
+ if (comma) onError$2(token, "UNEXPECTED_TOKEN", `Unexpected , in ${flow$1}`);
34554
34583
  comma = token;
34555
34584
  atNewline = false;
34556
34585
  hasSpace = false;
@@ -37896,7 +37925,7 @@ function nominal() {
37896
37925
  /**
37897
37926
  * @since 4.0.0
37898
37927
  */
37899
- const TypeId$36 = "~effect/platform/PlatformError";
37928
+ const TypeId$37 = "~effect/platform/PlatformError";
37900
37929
  /**
37901
37930
  * @since 4.0.0
37902
37931
  * @category Models
@@ -37905,7 +37934,7 @@ var BadArgument = class extends TaggedError("PlatformError") {
37905
37934
  /**
37906
37935
  * @since 4.0.0
37907
37936
  */
37908
- [TypeId$36] = TypeId$36;
37937
+ [TypeId$37] = TypeId$37;
37909
37938
  /**
37910
37939
  * @since 4.0.0
37911
37940
  */
@@ -37925,7 +37954,7 @@ var SystemError = class extends TaggedError("PlatformError") {
37925
37954
  /**
37926
37955
  * @since 4.0.0
37927
37956
  */
37928
- [TypeId$36] = TypeId$36;
37957
+ [TypeId$37] = TypeId$37;
37929
37958
  /**
37930
37959
  * @since 4.0.0
37931
37960
  */
@@ -38242,7 +38271,7 @@ const Empty$2 = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
38242
38271
  * @since 4.0.0
38243
38272
  * @category constructors
38244
38273
  */
38245
- const make$35 = () => ({
38274
+ const make$36 = () => ({
38246
38275
  head: void 0,
38247
38276
  tail: void 0,
38248
38277
  length: 0
@@ -38412,7 +38441,7 @@ const appendAllUnsafe = (self$1, messages, mutable = false) => {
38412
38441
  * @since 4.0.0
38413
38442
  * @category mutations
38414
38443
  */
38415
- const clear = (self$1) => {
38444
+ const clear$1 = (self$1) => {
38416
38445
  self$1.head = self$1.tail = void 0;
38417
38446
  self$1.length = 0;
38418
38447
  };
@@ -38462,7 +38491,7 @@ const takeN = (self$1, n) => {
38462
38491
  n = Math.min(n, self$1.length);
38463
38492
  if (n === self$1.length && self$1.head?.offset === 0 && !self$1.head.next) {
38464
38493
  const array$2 = self$1.head.array;
38465
- clear(self$1);
38494
+ clear$1(self$1);
38466
38495
  return array$2;
38467
38496
  }
38468
38497
  const array$1 = new Array(n);
@@ -38476,13 +38505,13 @@ const takeN = (self$1, n) => {
38476
38505
  if (index === n) {
38477
38506
  self$1.head = chunk;
38478
38507
  self$1.length -= n;
38479
- if (self$1.length === 0) clear(self$1);
38508
+ if (self$1.length === 0) clear$1(self$1);
38480
38509
  return array$1;
38481
38510
  }
38482
38511
  }
38483
38512
  chunk = chunk.next;
38484
38513
  }
38485
- clear(self$1);
38514
+ clear$1(self$1);
38486
38515
  return array$1;
38487
38516
  };
38488
38517
  /**
@@ -38540,15 +38569,15 @@ const take$1 = (self$1) => {
38540
38569
  self$1.head.offset++;
38541
38570
  self$1.length--;
38542
38571
  if (self$1.head.offset === self$1.head.array.length) if (self$1.head.next) self$1.head = self$1.head.next;
38543
- else clear(self$1);
38572
+ else clear$1(self$1);
38544
38573
  return message;
38545
38574
  };
38546
38575
 
38547
38576
  //#endregion
38548
38577
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/MutableRef.js
38549
- const TypeId$35 = "~effect/MutableRef";
38578
+ const TypeId$36 = "~effect/MutableRef";
38550
38579
  const MutableRefProto = {
38551
- [TypeId$35]: TypeId$35,
38580
+ [TypeId$36]: TypeId$36,
38552
38581
  ...PipeInspectableProto,
38553
38582
  toJSON() {
38554
38583
  return {
@@ -38581,7 +38610,7 @@ const MutableRefProto = {
38581
38610
  * @since 2.0.0
38582
38611
  * @category constructors
38583
38612
  */
38584
- const make$34 = (value) => {
38613
+ const make$35 = (value) => {
38585
38614
  const ref = Object.create(MutableRefProto);
38586
38615
  ref.current = value;
38587
38616
  return ref;
@@ -38623,14 +38652,14 @@ const make$34 = (value) => {
38623
38652
  *
38624
38653
  * @since 3.8.0
38625
38654
  */
38626
- const TypeId$34 = "~effect/Queue";
38655
+ const TypeId$35 = "~effect/Queue";
38627
38656
  const DequeueTypeId = "~effect/Queue/Dequeue";
38628
38657
  const variance$1 = {
38629
38658
  _A: identity,
38630
38659
  _E: identity
38631
38660
  };
38632
38661
  const QueueProto = {
38633
- [TypeId$34]: variance$1,
38662
+ [TypeId$35]: variance$1,
38634
38663
  [DequeueTypeId]: variance$1,
38635
38664
  ...PipeInspectableProto,
38636
38665
  toJSON() {
@@ -38675,12 +38704,12 @@ const QueueProto = {
38675
38704
  * })
38676
38705
  * ```
38677
38706
  */
38678
- const make$33 = (options) => withFiber$1((fiber$2) => {
38707
+ const make$34 = (options) => withFiber$1((fiber$2) => {
38679
38708
  const self$1 = Object.create(QueueProto);
38680
38709
  self$1.scheduler = fiber$2.currentScheduler;
38681
38710
  self$1.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
38682
38711
  self$1.strategy = options?.strategy ?? "suspend";
38683
- self$1.messages = make$35();
38712
+ self$1.messages = make$36();
38684
38713
  self$1.scheduleRunning = false;
38685
38714
  self$1.state = {
38686
38715
  _tag: "Open",
@@ -38718,7 +38747,7 @@ const make$33 = (options) => withFiber$1((fiber$2) => {
38718
38747
  * @since 2.0.0
38719
38748
  * @category constructors
38720
38749
  */
38721
- const bounded = (capacity) => make$33({ capacity });
38750
+ const bounded = (capacity) => make$34({ capacity });
38722
38751
  /**
38723
38752
  * Add a message to the queue. Returns `false` if the queue is done.
38724
38753
  *
@@ -39098,7 +39127,7 @@ const doneUnsafe = (self$1, exit$2) => {
39098
39127
  */
39099
39128
  const shutdown = (self$1) => sync$2(() => {
39100
39129
  if (self$1.state._tag === "Done") return true;
39101
- clear(self$1.messages);
39130
+ clear$1(self$1.messages);
39102
39131
  const offers = self$1.state.offers;
39103
39132
  finalize(self$1, self$1.state._tag === "Open" ? exitInterrupt : self$1.state.exit);
39104
39133
  if (offers.size > 0) {
@@ -39570,7 +39599,7 @@ const finalize = (self$1, exit$2) => {
39570
39599
  *
39571
39600
  * @since 2.0.0
39572
39601
  */
39573
- const TypeId$33 = "~effect/Channel";
39602
+ const TypeId$34 = "~effect/Channel";
39574
39603
  /**
39575
39604
  * Tests if a value is a `Channel`.
39576
39605
  *
@@ -39586,9 +39615,9 @@ const TypeId$33 = "~effect/Channel";
39586
39615
  * @category guards
39587
39616
  * @since 3.5.4
39588
39617
  */
39589
- const isChannel = (u) => hasProperty(u, TypeId$33);
39618
+ const isChannel = (u) => hasProperty(u, TypeId$34);
39590
39619
  const ChannelProto = {
39591
- [TypeId$33]: {
39620
+ [TypeId$34]: {
39592
39621
  _Env: identity,
39593
39622
  _InErr: identity,
39594
39623
  _InElem: identity,
@@ -39703,7 +39732,7 @@ const toTransform = (channel) => channel.transform;
39703
39732
  * @since 2.0.0
39704
39733
  */
39705
39734
  const DefaultChunkSize$1 = 4096;
39706
- const asyncQueue = (scope$2, f, options) => make$33({
39735
+ const asyncQueue = (scope$2, f, options) => make$34({
39707
39736
  capacity: options?.bufferSize,
39708
39737
  strategy: options?.strategy
39709
39738
  }).pipe(tap((queue) => addFinalizer$1(scope$2, shutdown(queue))), tap((queue) => {
@@ -39988,10 +40017,10 @@ const mapEffectConcurrent = (self$1, f, options) => fromTransformBracket(fnUntra
39988
40017
  const trackFiber = runIn(forkedScope);
39989
40018
  if (options.unordered) {
39990
40019
  const semaphore = makeSemaphoreUnsafe(concurrencyN);
39991
- const release = constant(semaphore.release(1));
40020
+ const release$1 = constant(semaphore.release(1));
39992
40021
  const handle = matchCauseEffect({
39993
- onFailure: (cause) => flatMap(failCause$1(queue, cause), release),
39994
- onSuccess: (value) => flatMap(offer(queue, value), release)
40022
+ onFailure: (cause) => flatMap(failCause$1(queue, cause), release$1),
40023
+ onSuccess: (value) => flatMap(offer(queue, value), release$1)
39995
40024
  });
39996
40025
  yield* semaphore.take(1).pipe(flatMap(() => pull), flatMap((value) => {
39997
40026
  trackFiber(runFork$2(handle(f(value, i++))));
@@ -40319,7 +40348,7 @@ const unwrap$2 = (channel) => fromTransform$1((upstream, scope$2) => {
40319
40348
  */
40320
40349
  const bufferArray = /* @__PURE__ */ dual(2, (self$1, options) => fromTransform$1(fnUntraced(function* (upstream, scope$2) {
40321
40350
  const pull = yield* toTransform(self$1)(upstream, scope$2);
40322
- const queue = yield* make$33({
40351
+ const queue = yield* make$34({
40323
40352
  capacity: options.capacity === "unbounded" ? void 0 : options.capacity,
40324
40353
  strategy: options.capacity === "unbounded" ? void 0 : options.strategy
40325
40354
  });
@@ -40358,7 +40387,7 @@ const bufferArray = /* @__PURE__ */ dual(2, (self$1, options) => fromTransform$1
40358
40387
  */
40359
40388
  const onExit$1 = /* @__PURE__ */ dual(2, (self$1, finalizer) => fromTransformBracket((upstream, scope$2, forkedScope) => addFinalizerExit(forkedScope, finalizer).pipe(andThen(toTransform(self$1)(upstream, scope$2)))));
40360
40389
  const runWith$1 = (self$1, f, onHalt) => suspend$2(() => {
40361
- const scope$2 = makeUnsafe$4();
40390
+ const scope$2 = makeUnsafe$5();
40362
40391
  const makePull = toTransform(self$1)(haltVoid, scope$2);
40363
40392
  return catchHalt(flatMap(makePull, f), onHalt ? onHalt : succeed).pipe(onExit$2((exit$2) => close(scope$2, exit$2)));
40364
40393
  });
@@ -40451,14 +40480,14 @@ const toPullScoped = (self$1, scope$2) => toTransform(self$1)(haltVoid, scope$2)
40451
40480
 
40452
40481
  //#endregion
40453
40482
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/internal/stream.js
40454
- const TypeId$32 = "~effect/Stream";
40483
+ const TypeId$33 = "~effect/Stream";
40455
40484
  const streamVariance = {
40456
40485
  _R: identity,
40457
40486
  _E: identity,
40458
40487
  _A: identity
40459
40488
  };
40460
40489
  const StreamProto = {
40461
- [TypeId$32]: streamVariance,
40490
+ [TypeId$33]: streamVariance,
40462
40491
  pipe() {
40463
40492
  return pipeArguments(this, arguments);
40464
40493
  }
@@ -40472,7 +40501,7 @@ const fromChannel$2 = (channel) => {
40472
40501
 
40473
40502
  //#endregion
40474
40503
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/Sink.js
40475
- const TypeId$31 = "~effect/Sink";
40504
+ const TypeId$32 = "~effect/Sink";
40476
40505
  const endVoid = /* @__PURE__ */ succeed([void 0]);
40477
40506
  const sinkVariance = {
40478
40507
  _A: identity,
@@ -40482,7 +40511,7 @@ const sinkVariance = {
40482
40511
  _R: identity
40483
40512
  };
40484
40513
  const SinkProto = {
40485
- [TypeId$31]: sinkVariance,
40514
+ [TypeId$32]: sinkVariance,
40486
40515
  pipe() {
40487
40516
  return pipeArguments(this, arguments);
40488
40517
  }
@@ -40504,7 +40533,7 @@ const SinkProto = {
40504
40533
  * @since 2.0.0
40505
40534
  * @category guards
40506
40535
  */
40507
- const isSink = (u) => hasProperty(u, TypeId$31);
40536
+ const isSink = (u) => hasProperty(u, TypeId$32);
40508
40537
  /**
40509
40538
  * Creates a sink from a `Channel`.
40510
40539
  *
@@ -40678,9 +40707,9 @@ const unwrap$1 = (effect$1) => fromChannel$1(unwrap$2(map$4(effect$1, toChannel$
40678
40707
 
40679
40708
  //#endregion
40680
40709
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/MutableHashMap.js
40681
- const TypeId$30 = "~effect/collections/MutableHashMap";
40710
+ const TypeId$31 = "~effect/collections/MutableHashMap";
40682
40711
  const MutableHashMapProto = {
40683
- [TypeId$30]: TypeId$30,
40712
+ [TypeId$31]: TypeId$31,
40684
40713
  [Symbol.iterator]() {
40685
40714
  return this.backing[Symbol.iterator]();
40686
40715
  },
@@ -40745,7 +40774,7 @@ const empty$7 = () => {
40745
40774
  * @since 2.0.0
40746
40775
  * @category constructors
40747
40776
  */
40748
- const make$32 = (...entries) => fromIterable$1(entries);
40777
+ const make$33 = (...entries) => fromIterable$1(entries);
40749
40778
  /**
40750
40779
  * Creates a MutableHashMap from an iterable collection of key-value pairs.
40751
40780
  *
@@ -40797,7 +40826,7 @@ const fromIterable$1 = (entries) => {
40797
40826
  * @since 2.0.0
40798
40827
  * @category elements
40799
40828
  */
40800
- const get$5 = /* @__PURE__ */ dual(2, (self$1, key) => {
40829
+ const get$6 = /* @__PURE__ */ dual(2, (self$1, key) => {
40801
40830
  if (self$1.backing.has(key)) return some(self$1.backing.get(key));
40802
40831
  else if (isSimpleKey(key)) return none$3();
40803
40832
  const refKey = referentialKeysCache.get(self$1);
@@ -40818,6 +40847,27 @@ const getFromBucket = (self$1, bucket, key) => {
40818
40847
  return none$3();
40819
40848
  };
40820
40849
  /**
40850
+ * Checks if the MutableHashMap contains the specified key.
40851
+ *
40852
+ * @example
40853
+ * ```ts
40854
+ * import * as MutableHashMap from "effect/MutableHashMap"
40855
+ *
40856
+ * const map = MutableHashMap.make(["key1", 42], ["key2", 100])
40857
+ *
40858
+ * console.log(MutableHashMap.has(map, "key1")) // true
40859
+ * console.log(MutableHashMap.has(map, "key3")) // false
40860
+ *
40861
+ * // Pipe-able version
40862
+ * const hasKey = MutableHashMap.has("key1")
40863
+ * console.log(hasKey(map)) // true
40864
+ * ```
40865
+ *
40866
+ * @since 2.0.0
40867
+ * @category elements
40868
+ */
40869
+ const has = /* @__PURE__ */ dual(2, (self$1, key) => isSome(get$6(self$1, key)));
40870
+ /**
40821
40871
  * Sets a key-value pair in the MutableHashMap, mutating the map in place.
40822
40872
  * If the key already exists, its value is updated.
40823
40873
  *
@@ -40933,6 +40983,41 @@ const remove$2 = /* @__PURE__ */ dual(2, (self$1, key_) => {
40933
40983
  return self$1;
40934
40984
  });
40935
40985
  /**
40986
+ * Removes all key-value pairs from the MutableHashMap, mutating the map in place.
40987
+ * The map becomes empty after this operation.
40988
+ *
40989
+ * @example
40990
+ * ```ts
40991
+ * import * as MutableHashMap from "effect/MutableHashMap"
40992
+ *
40993
+ * const map = MutableHashMap.make(
40994
+ * ["key1", 42],
40995
+ * ["key2", 100],
40996
+ * ["key3", 200]
40997
+ * )
40998
+ *
40999
+ * console.log(MutableHashMap.size(map)) // 3
41000
+ *
41001
+ * // Clear all entries
41002
+ * MutableHashMap.clear(map)
41003
+ *
41004
+ * console.log(MutableHashMap.size(map)) // 0
41005
+ * console.log(MutableHashMap.has(map, "key1")) // false
41006
+ *
41007
+ * // Can still add new entries after clearing
41008
+ * MutableHashMap.set(map, "new", 999)
41009
+ * console.log(MutableHashMap.size(map)) // 1
41010
+ * ```
41011
+ *
41012
+ * @since 2.0.0
41013
+ * @category mutations
41014
+ */
41015
+ const clear = (self$1) => {
41016
+ self$1.backing.clear();
41017
+ self$1.buckets.clear();
41018
+ return self$1;
41019
+ };
41020
+ /**
40936
41021
  * Returns the number of key-value pairs in the MutableHashMap.
40937
41022
  *
40938
41023
  * @example
@@ -40958,6 +41043,206 @@ const remove$2 = /* @__PURE__ */ dual(2, (self$1, key_) => {
40958
41043
  */
40959
41044
  const size = (self$1) => self$1.backing.size;
40960
41045
 
41046
+ //#endregion
41047
+ //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/RcMap.js
41048
+ /**
41049
+ * @since 3.5.0
41050
+ */
41051
+ const TypeId$30 = "~effect/RcMap";
41052
+ const makeUnsafe$1 = (options) => ({
41053
+ [TypeId$30]: TypeId$30,
41054
+ lookup: options.lookup,
41055
+ services: options.services,
41056
+ scope: options.scope,
41057
+ idleTimeToLive: options.idleTimeToLive,
41058
+ capacity: options.capacity,
41059
+ state: {
41060
+ _tag: "Open",
41061
+ map: empty$7()
41062
+ },
41063
+ pipe() {
41064
+ return pipeArguments(this, arguments);
41065
+ }
41066
+ });
41067
+ /**
41068
+ * An `RcMap` can contain multiple reference counted resources that can be indexed
41069
+ * by a key. The resources are lazily acquired on the first call to `get` and
41070
+ * released when the last reference is released.
41071
+ *
41072
+ * Complex keys can extend `Equal` and `Hash` to allow lookups by value.
41073
+ *
41074
+ * **Options**
41075
+ *
41076
+ * - `capacity`: The maximum number of resources that can be held in the map.
41077
+ * - `idleTimeToLive`: When the reference count reaches zero, the resource will be released after this duration.
41078
+ *
41079
+ * @since 3.5.0
41080
+ * @category models
41081
+ * @example
41082
+ * ```ts
41083
+ * import { Effect, RcMap } from "effect"
41084
+ *
41085
+ * Effect.gen(function*() {
41086
+ * const map = yield* RcMap.make({
41087
+ * lookup: (key: string) =>
41088
+ * Effect.acquireRelease(
41089
+ * Effect.succeed(`acquired ${key}`),
41090
+ * () => Effect.log(`releasing ${key}`)
41091
+ * )
41092
+ * })
41093
+ *
41094
+ * // Get "foo" from the map twice, which will only acquire it once.
41095
+ * // It will then be released once the scope closes.
41096
+ * yield* RcMap.get(map, "foo").pipe(
41097
+ * Effect.andThen(RcMap.get(map, "foo")),
41098
+ * Effect.scoped
41099
+ * )
41100
+ * })
41101
+ * ```
41102
+ */
41103
+ const make$32 = (options) => withFiber((fiber$2) => {
41104
+ const services$2 = fiber$2.services;
41105
+ const scope$2 = get$7(services$2, Scope);
41106
+ const self$1 = makeUnsafe$1({
41107
+ lookup: options.lookup,
41108
+ services: services$2,
41109
+ scope: scope$2,
41110
+ idleTimeToLive: typeof options.idleTimeToLive === "function" ? flow(options.idleTimeToLive, fromDurationInputUnsafe) : constant(fromDurationInputUnsafe(options.idleTimeToLive ?? zero)),
41111
+ capacity: Math.max(options.capacity ?? Number.POSITIVE_INFINITY, 0)
41112
+ });
41113
+ return as(addFinalizerExit(scope$2, () => {
41114
+ if (self$1.state._tag === "Closed") return void_$1;
41115
+ const map$12 = self$1.state.map;
41116
+ self$1.state = { _tag: "Closed" };
41117
+ return forEach$1(map$12, ([, entry]) => exit(close(entry.scope, void_$2))).pipe(tap(() => {
41118
+ clear(map$12);
41119
+ }));
41120
+ }), self$1);
41121
+ });
41122
+ /**
41123
+ * Retrieves a value from the RcMap by key. If the resource doesn't exist, it will be
41124
+ * acquired using the lookup function. The resource is reference counted and will be
41125
+ * released when the scope closes.
41126
+ *
41127
+ * @since 3.5.0
41128
+ * @category combinators
41129
+ * @example
41130
+ * ```ts
41131
+ * import { Effect, RcMap } from "effect"
41132
+ *
41133
+ * Effect.gen(function*() {
41134
+ * const map = yield* RcMap.make({
41135
+ * lookup: (key: string) =>
41136
+ * Effect.acquireRelease(
41137
+ * Effect.succeed(`Resource: ${key}`),
41138
+ * () => Effect.log(`Released ${key}`)
41139
+ * )
41140
+ * })
41141
+ *
41142
+ * // Get a resource - it will be acquired on first access
41143
+ * const resource = yield* RcMap.get(map, "database")
41144
+ * console.log(resource) // "Resource: database"
41145
+ * }).pipe(Effect.scoped)
41146
+ * ```
41147
+ */
41148
+ const get$5 = /* @__PURE__ */ dual(2, (self$1, key) => uninterruptibleMask((restore) => {
41149
+ if (self$1.state._tag === "Closed") return interrupt$1;
41150
+ const state = self$1.state;
41151
+ const parent = getCurrent();
41152
+ const o = get$6(state.map, key);
41153
+ let entry;
41154
+ if (o._tag === "Some") {
41155
+ entry = o.value;
41156
+ entry.refCount++;
41157
+ } else if (Number.isFinite(self$1.capacity) && size(self$1.state.map) >= self$1.capacity) return fail$3(new ExceededCapacityError(`RcMap attempted to exceed capacity of ${self$1.capacity}`));
41158
+ else {
41159
+ entry = {
41160
+ deferred: makeUnsafe$6(),
41161
+ scope: makeUnsafe$5(),
41162
+ idleTimeToLive: self$1.idleTimeToLive(key),
41163
+ finalizer: void 0,
41164
+ fiber: void 0,
41165
+ expiresAt: 0,
41166
+ refCount: 1
41167
+ };
41168
+ entry.finalizer = release(self$1, key, entry);
41169
+ set$4(state.map, key, entry);
41170
+ const services$2 = new Map(self$1.services.mapUnsafe);
41171
+ parent.services.mapUnsafe.forEach((value, key$1) => {
41172
+ services$2.set(key$1, value);
41173
+ });
41174
+ services$2.set(Scope.key, entry.scope);
41175
+ self$1.lookup(key).pipe(runForkWith(makeUnsafe$7(services$2)), runIn(entry.scope)).addObserver((exit$2) => doneUnsafe$1(entry.deferred, exit$2));
41176
+ }
41177
+ const scope$2 = getUnsafe(parent.services, Scope);
41178
+ return addFinalizer$1(scope$2, entry.finalizer).pipe(andThen(restore(_await(entry.deferred))));
41179
+ }));
41180
+ const release = (self$1, key, entry) => withFiber((fiber$2) => {
41181
+ entry.refCount--;
41182
+ if (entry.refCount > 0) return void_$1;
41183
+ else if (self$1.state._tag === "Closed" || !has(self$1.state.map, key) || isZero(entry.idleTimeToLive)) {
41184
+ if (self$1.state._tag === "Open") remove$2(self$1.state.map, key);
41185
+ return close(entry.scope, void_$2);
41186
+ } else if (!isFinite$2(entry.idleTimeToLive)) return void_$1;
41187
+ const clock = fiber$2.getRef(Clock);
41188
+ entry.expiresAt = clock.currentTimeMillisUnsafe() + toMillis(entry.idleTimeToLive);
41189
+ if (entry.fiber) return void_$1;
41190
+ entry.fiber = interruptibleMask(function loop(restore) {
41191
+ const now$2 = clock.currentTimeMillisUnsafe();
41192
+ const remaining = entry.expiresAt - now$2;
41193
+ if (remaining <= 0) {
41194
+ if (self$1.state._tag === "Closed" || entry.refCount > 0) return void_$1;
41195
+ remove$2(self$1.state.map, key);
41196
+ return restore(close(entry.scope, void_$2));
41197
+ }
41198
+ return flatMap(clock.sleep(millis(remaining)), () => loop(restore));
41199
+ }).pipe(ensuring(sync(() => {
41200
+ entry.fiber = void 0;
41201
+ })), runForkWith(fiber$2.services), runIn(self$1.scope));
41202
+ return void_$1;
41203
+ });
41204
+ /**
41205
+ * Invalidates and removes a specific key from the RcMap. If the resource is not
41206
+ * currently in use (reference count is 0), it will be immediately released.
41207
+ *
41208
+ * @since 3.5.0
41209
+ * @category combinators
41210
+ * @example
41211
+ * ```ts
41212
+ * import { Effect, RcMap } from "effect"
41213
+ *
41214
+ * Effect.gen(function*() {
41215
+ * const map = yield* RcMap.make({
41216
+ * lookup: (key: string) =>
41217
+ * Effect.acquireRelease(
41218
+ * Effect.succeed(`Resource: ${key}`),
41219
+ * () => Effect.log(`Released ${key}`)
41220
+ * )
41221
+ * })
41222
+ *
41223
+ * // Get a resource
41224
+ * yield* RcMap.get(map, "cache")
41225
+ *
41226
+ * // Invalidate the resource - it will be removed from the map
41227
+ * // and released if no longer in use
41228
+ * yield* RcMap.invalidate(map, "cache")
41229
+ *
41230
+ * // Next access will create a new resource
41231
+ * yield* RcMap.get(map, "cache")
41232
+ * }).pipe(Effect.scoped)
41233
+ * ```
41234
+ */
41235
+ const invalidate$2 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function* (self$1, key) {
41236
+ if (self$1.state._tag === "Closed") return;
41237
+ const o = get$6(self$1.state.map, key);
41238
+ if (o._tag === "None") return;
41239
+ const entry = o.value;
41240
+ remove$2(self$1.state.map, key);
41241
+ if (entry.refCount > 0) return;
41242
+ if (entry.fiber) yield* interrupt(entry.fiber);
41243
+ yield* close(entry.scope, void_$2);
41244
+ }, uninterruptible));
41245
+
40961
41246
  //#endregion
40962
41247
  //#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@004c047_46460a9e85a4dd43b15f8b036d8d1a97/node_modules/effect/dist/internal/rcRef.js
40963
41248
  const TypeId$29 = "~effect/RcRef";
@@ -40985,7 +41270,7 @@ var RcRefImpl = class {
40985
41270
  /** @internal */
40986
41271
  const make$31 = (options) => withFiber((fiber$2) => {
40987
41272
  const services$2 = fiber$2.services;
40988
- const scope$2 = get$6(services$2, Scope);
41273
+ const scope$2 = get$7(services$2, Scope);
40989
41274
  const ref = new RcRefImpl(options.acquire, services$2, scope$2, options.idleTimeToLive ? fromDurationInputUnsafe(options.idleTimeToLive) : void 0);
40990
41275
  return as(addFinalizerExit(scope$2, () => {
40991
41276
  const close$1 = ref.state._tag === "Acquired" ? close(ref.state.scope, void_$2) : void_$1;
@@ -41000,7 +41285,7 @@ const getState = (self$1) => uninterruptibleMask((restore) => {
41000
41285
  self$1.state.refCount++;
41001
41286
  return self$1.state.fiber ? as(interrupt(self$1.state.fiber), self$1.state) : succeed(self$1.state);
41002
41287
  case "Empty": {
41003
- const scope$2 = makeUnsafe$4();
41288
+ const scope$2 = makeUnsafe$5();
41004
41289
  return self$1.semaphore.withPermits(1)(restore(provideServices(self$1.acquire, add$3(self$1.services, Scope, scope$2))).pipe(map$4((value) => {
41005
41290
  const state = {
41006
41291
  _tag: "Acquired",
@@ -42572,15 +42857,15 @@ const Proto$14 = {
42572
42857
  * @category Constructors
42573
42858
  * @since 4.0.0
42574
42859
  */
42575
- function make$28(get$7, mapInput$1, prefix$1) {
42860
+ function make$28(get$8, mapInput$1, prefix$1) {
42576
42861
  const self$1 = Object.create(Proto$14);
42577
- self$1.get = get$7;
42862
+ self$1.get = get$8;
42578
42863
  self$1.mapInput = mapInput$1;
42579
42864
  self$1.prefix = prefix$1;
42580
42865
  self$1.load = (path) => {
42581
42866
  if (mapInput$1) path = mapInput$1(path);
42582
42867
  if (prefix$1) path = [...prefix$1, ...path];
42583
- return get$7(path);
42868
+ return get$8(path);
42584
42869
  };
42585
42870
  return self$1;
42586
42871
  }
@@ -46300,7 +46585,7 @@ const TypeId$20 = "~effect/Cache";
46300
46585
  const makeWith$1 = (options) => servicesWith$1((services$2) => {
46301
46586
  const self$1 = Object.create(Proto$9);
46302
46587
  self$1.lookup = (key) => updateServices$1(options.lookup(key), (input) => merge$5(services$2, input));
46303
- self$1.map = make$32();
46588
+ self$1.map = make$33();
46304
46589
  self$1.capacity = options.capacity;
46305
46590
  self$1.timeToLive = options.timeToLive ? (exit$2, key) => fromDurationInputUnsafe(options.timeToLive(exit$2, key)) : defaultTimeToLive;
46306
46591
  return succeed$4(self$1);
@@ -46458,13 +46743,13 @@ const defaultTimeToLive = (_, _key) => infinity;
46458
46743
  * @category Combinators
46459
46744
  */
46460
46745
  const get$2 = /* @__PURE__ */ dual(2, (self$1, key) => withFiber$1((fiber$2) => {
46461
- const oentry = get$5(self$1.map, key);
46746
+ const oentry = get$6(self$1.map, key);
46462
46747
  if (isSome(oentry) && !hasExpired(oentry.value, fiber$2)) {
46463
46748
  remove$2(self$1.map, key);
46464
46749
  set$4(self$1.map, key, oentry.value);
46465
46750
  return _await(oentry.value.deferred);
46466
46751
  }
46467
- const deferred = makeUnsafe$5();
46752
+ const deferred = makeUnsafe$6();
46468
46753
  const entry = {
46469
46754
  expiresAt: void 0,
46470
46755
  deferred
@@ -46587,7 +46872,7 @@ const checkCapacity = (self$1) => {
46587
46872
  */
46588
46873
  const set$3 = /* @__PURE__ */ dual(3, (self$1, key, value) => withFiber$1((fiber$2) => {
46589
46874
  const exit$2 = exitSucceed(value);
46590
- const deferred = makeUnsafe$5();
46875
+ const deferred = makeUnsafe$6();
46591
46876
  doneUnsafe$1(deferred, exit$2);
46592
46877
  const ttl = self$1.timeToLive(exit$2, key);
46593
46878
  if (isZero(ttl)) {
@@ -46676,7 +46961,7 @@ const makeUnsafe = (backing, deferred) => {
46676
46961
  * @since 2.0.0
46677
46962
  * @category constructors
46678
46963
  */
46679
- const make$24 = () => acquireRelease(sync(() => makeUnsafe(/* @__PURE__ */ new Set(), makeUnsafe$5())), (set$6) => suspend$2(() => {
46964
+ const make$24 = () => acquireRelease(sync(() => makeUnsafe(/* @__PURE__ */ new Set(), makeUnsafe$6())), (set$6) => suspend$2(() => {
46680
46965
  const state = set$6.state;
46681
46966
  if (state._tag === "Closed") return void_$1;
46682
46967
  set$6.state = { _tag: "Closed" };
@@ -46684,7 +46969,7 @@ const make$24 = () => acquireRelease(sync(() => makeUnsafe(/* @__PURE__ */ new S
46684
46969
  return interruptAll(fibers).pipe(into$1(set$6.deferred));
46685
46970
  }));
46686
46971
  const internalFiberId = -1;
46687
- const isInternalInterruption = /* @__PURE__ */ toPredicate(/* @__PURE__ */ compose(filterInterruptors, /* @__PURE__ */ has$1(internalFiberId)));
46972
+ const isInternalInterruption = /* @__PURE__ */ toPredicate(/* @__PURE__ */ compose(filterInterruptors, /* @__PURE__ */ has$2(internalFiberId)));
46688
46973
  /**
46689
46974
  * Add a fiber to the FiberSet. When the fiber completes, it will be removed.
46690
46975
  * This is the unsafe version that doesn't return an Effect.
@@ -46976,19 +47261,19 @@ const toSchemaStore = (self$1, schema) => {
46976
47261
  const jsonSchema = fromJsonString(serializer);
46977
47262
  const decode$2 = decodeEffect(jsonSchema);
46978
47263
  const encode$2 = encodeEffect(jsonSchema);
46979
- const get$7 = (key) => flatMap(self$1.get(key), match$9({
47264
+ const get$8 = (key) => flatMap(self$1.get(key), match$9({
46980
47265
  onUndefined: () => succeedNone,
46981
47266
  onDefined: (value) => asSome(decode$2(value))
46982
47267
  }));
46983
47268
  const set$6 = (key, value) => flatMap(encode$2(value), (json) => self$1.set(key, json));
46984
- const modify$1 = (key, f) => flatMap(get$7(key), (o) => {
47269
+ const modify$1 = (key, f) => flatMap(get$8(key), (o) => {
46985
47270
  if (isNone(o)) return succeedNone;
46986
47271
  const newValue = f(o.value);
46987
47272
  return as(set$6(key, newValue), some(newValue));
46988
47273
  });
46989
47274
  return {
46990
47275
  [SchemaStoreTypeId]: SchemaStoreTypeId,
46991
- get: get$7,
47276
+ get: get$8,
46992
47277
  set: set$6,
46993
47278
  modify: modify$1,
46994
47279
  remove: self$1.remove,
@@ -48647,7 +48932,7 @@ const makeTemplatedCommand = (templates, expressions, options) => Object.assign(
48647
48932
  * @since 4.0.0
48648
48933
  * @category Constructors
48649
48934
  */
48650
- const make$22 = function make$50(...args$1) {
48935
+ const make$22 = function make$51(...args$1) {
48651
48936
  if (isTemplateString(args$1[0])) {
48652
48937
  const [templates, ...expressions] = args$1;
48653
48938
  return makeTemplatedCommand(templates, expressions, {});
@@ -49028,7 +49313,7 @@ const toUint8Array = (readable, options) => map$4(toArrayBuffer(readable, option
49028
49313
  const readableToPullUnsafe = (options) => {
49029
49314
  const readable = options.readable;
49030
49315
  const closeOnDone = options.closeOnDone ?? true;
49031
- const exit$2 = options.exit ?? make$34(void 0);
49316
+ const exit$2 = options.exit ?? make$35(void 0);
49032
49317
  const latch = makeLatchUnsafe(false);
49033
49318
  function onReadable() {
49034
49319
  latch.openUnsafe();
@@ -49279,7 +49564,7 @@ const make$21 = /* @__PURE__ */ gen(function* () {
49279
49564
  };
49280
49565
  };
49281
49566
  const spawn$1 = fnUntraced(function* (command, spawnOptions) {
49282
- const deferred = yield* make$44();
49567
+ const deferred = yield* make$45();
49283
49568
  return yield* callback$1((resume) => {
49284
49569
  const handle = NodeChildProcess.spawn(command.command, command.args, spawnOptions);
49285
49570
  handle.on("error", (error$1) => {
@@ -49875,7 +50160,7 @@ const TypeId$15 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
49875
50160
  const Proto$5 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), BaseProto, {
49876
50161
  [TypeId$15]: TypeId$15,
49877
50162
  [symbolRedactable](context) {
49878
- return redact(this, get$6(context, CurrentRedactedNames));
50163
+ return redact(this, get$7(context, CurrentRedactedNames));
49879
50164
  },
49880
50165
  toJSON() {
49881
50166
  return redact$1(this);
@@ -49963,8 +50248,8 @@ const redact = /* @__PURE__ */ dual(2, (self$1, key) => {
49963
50248
  const modify$1 = (key$1) => {
49964
50249
  if (typeof key$1 === "string") {
49965
50250
  const k = key$1.toLowerCase();
49966
- if (k in self$1) out[k] = make$37(self$1[k]);
49967
- } else for (const name in self$1) if (key$1.test(name)) out[name] = make$37(self$1[name]);
50251
+ if (k in self$1) out[k] = make$38(self$1[k]);
50252
+ } else for (const name in self$1) if (key$1.test(name)) out[name] = make$38(self$1[name]);
49968
50253
  };
49969
50254
  if (Array.isArray(key)) for (let i = 0; i < key.length; i++) modify$1(key[i]);
49970
50255
  else modify$1(key);
@@ -50105,7 +50390,7 @@ const fromInputNested = (input) => {
50105
50390
  * @since 4.0.0
50106
50391
  * @category Equivalence
50107
50392
  */
50108
- const Equivalence = /* @__PURE__ */ make$47((a, b) => arrayEquivalence(a.params, b.params));
50393
+ const Equivalence = /* @__PURE__ */ make$48((a, b) => arrayEquivalence(a.params, b.params));
50109
50394
  const arrayEquivalence = /* @__PURE__ */ makeEquivalence$1(/* @__PURE__ */ makeEquivalence$3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ strictEqual()]));
50110
50395
  /**
50111
50396
  * @since 4.0.0
@@ -52113,7 +52398,7 @@ const fromWebSocket = (acquire, options) => withFiber((fiber$2) => {
52113
52398
  ws.addEventListener("error", onError$2, { once: true });
52114
52399
  ws.addEventListener("message", onMessage);
52115
52400
  if (ws.readyState !== 1) {
52116
- const openDeferred = makeUnsafe$5();
52401
+ const openDeferred = makeUnsafe$6();
52117
52402
  ws.addEventListener("open", () => {
52118
52403
  open$1 = true;
52119
52404
  doneUnsafe$1(openDeferred, void_$1);
@@ -53089,7 +53374,7 @@ var MultipartError = class extends ErrorClass(MultipartErrorTypeId)({
53089
53374
  * @category Config
53090
53375
  */
53091
53376
  const makeConfig = (headers) => withFiber((fiber$2) => {
53092
- const mimeTypes = get$6(fiber$2.services, FieldMimeTypes);
53377
+ const mimeTypes = get$7(fiber$2.services, FieldMimeTypes);
53093
53378
  return succeed({
53094
53379
  headers,
53095
53380
  maxParts: fiber$2.getRef(MaxParts),
@@ -53653,7 +53938,7 @@ const toHandled = (self$1, handleResponse$1, middleware$1) => {
53653
53938
  const handledSymbol = /* @__PURE__ */ Symbol.for("effect/http/HttpEffect/handled");
53654
53939
  const scopeEjected = /* @__PURE__ */ Symbol.for("effect/http/HttpEffect/scopeEjected");
53655
53940
  const scoped = (effect$1) => withFiber((fiber$2) => {
53656
- const scope$2 = makeUnsafe$4();
53941
+ const scope$2 = makeUnsafe$5();
53657
53942
  const prev = getOption(fiber$2.services, Scope);
53658
53943
  fiber$2.setServices(add$3(fiber$2.services, Scope, scope$2));
53659
53944
  return onExitInterruptible(effect$1, (exit$2) => {
@@ -53942,7 +54227,7 @@ const make$6 = /* @__PURE__ */ gen(function* () {
53942
54227
  });
53943
54228
  const span = contextMap.get(ParentSpan.key);
53944
54229
  if (span && span._tag === "Span") span.attribute("http.route", route$1.path);
53945
- return provideServices(route$1.uninterruptible ? route$1.handler : interruptible(route$1.handler), makeUnsafe$6(contextMap));
54230
+ return provideServices(route$1.uninterruptible ? route$1.handler : interruptible(route$1.handler), makeUnsafe$7(contextMap));
53946
54231
  });
53947
54232
  if (middleware$1.size === 0) return handler$1;
53948
54233
  for (const fn$2 of reverse(middleware$1)) handler$1 = fn$2(handler$1);
@@ -54118,7 +54403,7 @@ const makeMiddleware = (middleware$1, options) => options?.global ? effectDiscar
54118
54403
  const router = yield* HttpRouter;
54119
54404
  const fn$2 = isEffect(middleware$1) ? yield* middleware$1 : middleware$1;
54120
54405
  yield* router.addGlobalMiddleware(fn$2);
54121
- })) : new MiddlewareImpl(isEffect(middleware$1) ? effectServices(map$4(middleware$1, (fn$2) => makeUnsafe$6(new Map([[fnContextKey, fn$2]])))) : succeedServices(makeUnsafe$6(new Map([[fnContextKey, middleware$1]]))));
54406
+ })) : new MiddlewareImpl(isEffect(middleware$1) ? effectServices(map$4(middleware$1, (fn$2) => makeUnsafe$7(new Map([[fnContextKey, fn$2]])))) : succeedServices(makeUnsafe$7(new Map([[fnContextKey, middleware$1]]))));
54122
54407
  let middlewareId = 0;
54123
54408
  const fnContextKey = "effect/http/HttpRouter/MiddlewareFn";
54124
54409
  var MiddlewareImpl = class MiddlewareImpl {
@@ -54134,11 +54419,11 @@ var MiddlewareImpl = class MiddlewareImpl {
54134
54419
  const stack = [context.mapUnsafe.get(fnContextKey)];
54135
54420
  if (this.dependencies) {
54136
54421
  const memoMap = yield* CurrentMemoMap;
54137
- const scope$2 = get$6(context, Scope);
54422
+ const scope$2 = get$7(context, Scope);
54138
54423
  const depsContext = yield* buildWithMemoMap(this.dependencies, memoMap, scope$2);
54139
54424
  stack.push(...getMiddleware(depsContext));
54140
54425
  }
54141
- return makeUnsafe$6(new Map([[contextKey, stack]]));
54426
+ return makeUnsafe$7(new Map([[contextKey, stack]]));
54142
54427
  })).pipe(provide$3(this.layerFn));
54143
54428
  }
54144
54429
  layer;
@@ -58556,7 +58841,7 @@ const make$3 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQ
58556
58841
  const columns = sync(() => stdout.columns ?? 0);
58557
58842
  const readInput = gen(function* () {
58558
58843
  yield* get$3(rlRef);
58559
- const queue = yield* make$33();
58844
+ const queue = yield* make$34();
58560
58845
  const handleKeypress = (s, k) => {
58561
58846
  const userInput = {
58562
58847
  input: s,
@@ -58698,7 +58983,7 @@ const makeHandler = (httpEffect, options) => {
58698
58983
  return function handler$1(nodeRequest, nodeResponse) {
58699
58984
  const map$12 = new Map(services$2.mapUnsafe);
58700
58985
  map$12.set(HttpServerRequest.key, new ServerRequestImpl(nodeRequest, nodeResponse));
58701
- const fiber$2 = runIn(runForkWith(makeUnsafe$6(map$12))(handled), options.scope);
58986
+ const fiber$2 = runIn(runForkWith(makeUnsafe$7(map$12))(handled), options.scope);
58702
58987
  nodeResponse.on("close", () => {
58703
58988
  if (!nodeResponse.writableEnded) fiber$2.interruptUnsafe(clientAbortFiberId);
58704
58989
  });
@@ -58728,7 +59013,7 @@ const makeUpgradeHandler = (lazyWss, httpEffect, options) => {
58728
59013
  })), (ws) => sync(() => ws.close()))));
58729
59014
  const map$12 = new Map(services$2.mapUnsafe);
58730
59015
  map$12.set(HttpServerRequest.key, new ServerRequestImpl(nodeRequest, nodeResponse, upgradeEffect));
58731
- const fiber$2 = runIn(runForkWith(makeUnsafe$6(map$12))(handledApp), options.scope);
59016
+ const fiber$2 = runIn(runForkWith(makeUnsafe$7(map$12))(handledApp), options.scope);
58732
59017
  socket.on("close", () => {
58733
59018
  if (!socket.writableEnded) fiber$2.interruptUnsafe(clientAbortFiberId);
58734
59019
  });
@@ -59287,7 +59572,7 @@ var Settings = class extends Service()("lalph/Settings", { make: gen(function* (
59287
59572
  },
59288
59573
  capacity: Number.MAX_SAFE_INTEGER
59289
59574
  });
59290
- const get$7 = (setting) => get$2(cache, setting);
59575
+ const get$8 = (setting) => get$2(cache, setting);
59291
59576
  const set$6 = (setting, value) => {
59292
59577
  const s = toSchemaStore(store, setting.schema);
59293
59578
  const setCache = set$3(cache, setting, value);
@@ -59298,7 +59583,7 @@ var Settings = class extends Service()("lalph/Settings", { make: gen(function* (
59298
59583
  return andThen(update, setCache);
59299
59584
  };
59300
59585
  return {
59301
- get: get$7,
59586
+ get: get$8,
59302
59587
  set: set$6
59303
59588
  };
59304
59589
  }) }) {
@@ -133458,7 +133743,7 @@ var TokenManager$1 = class extends Service()("lalph/Linear/TokenManager", { make
133458
133743
  const httpClient = (yield* HttpClient).pipe(filterStatusOk, retryTransient({ schedule: spaced(1e3) }));
133459
133744
  let currentToken = yield* orDie$2(tokenStore.get(""));
133460
133745
  const set$6 = (token) => orDie$2(tokenStore.set("", token));
133461
- const clear$1 = orDie$2(tokenStore.remove(""));
133746
+ const clear$2 = orDie$2(tokenStore.remove(""));
133462
133747
  const getNoLock = gen(function* () {
133463
133748
  if (isNone(currentToken)) {
133464
133749
  const newToken = yield* pkce;
@@ -133467,7 +133752,7 @@ var TokenManager$1 = class extends Service()("lalph/Linear/TokenManager", { make
133467
133752
  } else if (currentToken.value.isExpired()) {
133468
133753
  const newToken = yield* refresh(currentToken.value);
133469
133754
  if (isNone(newToken)) {
133470
- yield* clear$1;
133755
+ yield* clear$2;
133471
133756
  return yield* getNoLock;
133472
133757
  }
133473
133758
  yield* set$6(newToken.value);
@@ -133476,9 +133761,9 @@ var TokenManager$1 = class extends Service()("lalph/Linear/TokenManager", { make
133476
133761
  }
133477
133762
  return currentToken.value;
133478
133763
  });
133479
- const get$7 = makeSemaphoreUnsafe(1).withPermit(getNoLock);
133764
+ const get$8 = makeSemaphoreUnsafe(1).withPermit(getNoLock);
133480
133765
  const pkce = gen(function* () {
133481
- const deferred = yield* make$44();
133766
+ const deferred = yield* make$45();
133482
133767
  const CallbackRoute = add("GET", "/callback", gen(function* () {
133483
133768
  const params$1 = yield* callbackParams;
133484
133769
  yield* succeed$2(deferred, params$1);
@@ -133519,7 +133804,7 @@ var TokenManager$1 = class extends Service()("lalph/Linear/TokenManager", { make
133519
133804
  }), httpClient.execute, flatMap(schemaBodyJson(TokenResponse$1)));
133520
133805
  return AccessToken$1.fromResponse(res);
133521
133806
  }, option);
133522
- return { get: get$7 };
133807
+ return { get: get$8 };
133523
133808
  }) }) {
133524
133809
  static layer = effect(this, this.make).pipe(provide$3([layerKvs, layer$8]));
133525
133810
  };
@@ -133552,11 +133837,16 @@ const TokenResponse$1 = Struct({
133552
133837
  //#endregion
133553
133838
  //#region src/Linear.ts
133554
133839
  var Linear = class extends Service()("lalph/Linear", { make: gen(function* () {
133555
- const client = new LinearClient({ accessToken: (yield* (yield* TokenManager$1).get).token });
133556
- const use$2 = (f) => tryPromise({
133840
+ const tokens = yield* TokenManager$1;
133841
+ const clients = yield* make$32({
133842
+ lookup: (token) => succeed(new LinearClient({ accessToken: token })),
133843
+ idleTimeToLive: "1 minute"
133844
+ });
133845
+ const getClient = tokens.get.pipe(flatMap(({ token }) => get$5(clients, token)), mapError$2((cause) => new LinearError({ cause })));
133846
+ const use$2 = (f) => getClient.pipe(flatMap((client) => tryPromise({
133557
133847
  try: () => f(client),
133558
133848
  catch: (cause) => new LinearError({ cause })
133559
- });
133849
+ })), scoped$1);
133560
133850
  const stream$3 = (f) => paginate$1(null, fnUntraced(function* (prev) {
133561
133851
  const connection = yield* prev ? tryPromise({
133562
133852
  try: () => prev.fetchNext(),
@@ -133564,10 +133854,10 @@ var Linear = class extends Service()("lalph/Linear", { make: gen(function* () {
133564
133854
  }) : use$2(f);
133565
133855
  return [connection.nodes, some(connection).pipe(filter$5((c) => c.pageInfo.hasNextPage))];
133566
133856
  }));
133567
- const projects = stream$3((client$1) => client$1.projects());
133568
- const labels = stream$3((client$1) => client$1.issueLabels());
133569
- const states = yield* runFold(stream$3((client$1) => client$1.workflowStates()), () => /* @__PURE__ */ new Map(), (map$12, state) => map$12.set(state.id, state));
133570
- const viewer = yield* use$2((client$1) => client$1.viewer);
133857
+ const projects = stream$3((client) => client.projects());
133858
+ const labels = stream$3((client) => client.issueLabels());
133859
+ const states = yield* runFold(stream$3((client) => client.workflowStates()), () => /* @__PURE__ */ new Map(), (map$12, state) => map$12.set(state.id, state));
133860
+ const viewer = yield* use$2((client) => client.viewer);
133571
133861
  const blockedByRelations = (issue) => stream$3(() => issue.relations()).pipe(merge$2(stream$3(() => issue.inverseRelations())), filter((relation) => relation.type === "blocks" && relation.relatedIssueId === issue.id));
133572
133862
  const blockedBy = (issue) => blockedByRelations(issue).pipe(mapEffect$1((relation) => use$2(() => relation.issue), { concurrency: "unbounded" }), filter((issue$1) => {
133573
133863
  return states.get(issue$1.stateId).type !== "completed";
@@ -139756,7 +140046,7 @@ var TokenManager = class extends Service()("lalph/Github/TokenManager", { make:
139756
140046
  const httpClient = (yield* HttpClient).pipe(filterStatusOk, retryTransient({ schedule: spaced(1e3) }));
139757
140047
  let currentToken = yield* orDie$2(tokenStore.get(""));
139758
140048
  const set$6 = (token) => orDie$2(tokenStore.set("", token));
139759
- const clear$1 = orDie$2(tokenStore.remove(""));
140049
+ const clear$2 = orDie$2(tokenStore.remove(""));
139760
140050
  const getNoLock = gen(function* () {
139761
140051
  if (isNone(currentToken)) {
139762
140052
  const newToken = yield* deviceCode;
@@ -139765,7 +140055,7 @@ var TokenManager = class extends Service()("lalph/Github/TokenManager", { make:
139765
140055
  } else if (currentToken.value.isExpired()) {
139766
140056
  const newToken = yield* refresh(currentToken.value);
139767
140057
  if (isNone(newToken)) {
139768
- yield* clear$1;
140058
+ yield* clear$2;
139769
140059
  return yield* getNoLock;
139770
140060
  }
139771
140061
  yield* set$6(newToken.value);
@@ -139774,18 +140064,16 @@ var TokenManager = class extends Service()("lalph/Github/TokenManager", { make:
139774
140064
  }
139775
140065
  return currentToken.value;
139776
140066
  });
139777
- const get$7 = makeSemaphoreUnsafe(1).withPermit(getNoLock);
140067
+ const get$8 = makeSemaphoreUnsafe(1).withPermit(getNoLock);
139778
140068
  const deviceCode = gen(function* () {
139779
140069
  const code = yield* post("https://github.com/login/device/code").pipe(bodyUrlParams({ client_id: clientId }), httpClient.execute, flatMap(schemaBodyUrlParams(DeviceCodeResponse)));
139780
140070
  console.log("Go to:", code.verification_uri);
139781
140071
  console.log("and enter code:", code.user_code);
139782
- const pollLoop = post("https://github.com/login/oauth/access_token").pipe(bodyUrlParams({
140072
+ const tokenResponse = yield* post("https://github.com/login/oauth/access_token").pipe(bodyUrlParams({
139783
140073
  client_id: clientId,
139784
140074
  device_code: code.device_code,
139785
140075
  grant_type: "urn:ietf:params:oauth:grant-type:device_code"
139786
- }), httpClient.execute, flatMap(schemaBodyUrlParams(PollResponse))).pipe(flatMap((res) => "access_token" in res ? succeed(res) : pollLoop.pipe(delay(seconds(code.interval + 1)))));
139787
- yield* sleep(seconds(1));
139788
- const tokenResponse = yield* pollLoop;
140076
+ }), httpClient.execute, flatMap(schemaBodyUrlParams(PollResponse)), delay(seconds(code.interval)), repeat({ until: (res) => "access_token" in res }));
139789
140077
  return AccessToken.fromResponse(tokenResponse);
139790
140078
  });
139791
140079
  const refresh = fnUntraced(function* (token) {
@@ -139796,7 +140084,7 @@ var TokenManager = class extends Service()("lalph/Github/TokenManager", { make:
139796
140084
  }), httpClient.execute, flatMap(schemaBodyJson(TokenResponse)));
139797
140085
  return AccessToken.fromResponse(res);
139798
140086
  }, option);
139799
- return { get: get$7 };
140087
+ return { get: get$8 };
139800
140088
  }) }) {
139801
140089
  static layer = effect(this, this.make).pipe(provide$3([layerKvs, layer$8]));
139802
140090
  };
@@ -139837,19 +140125,24 @@ const PollResponse = Union([TokenResponse, PollErrorResponse]);
139837
140125
  //#region src/Github.ts
139838
140126
  var GithubError = class extends TaggedError("GithubError") {};
139839
140127
  var Github = class extends Service()("lalph/Github", { make: gen(function* () {
139840
- const rest = new Octokit({ auth: (yield* (yield* TokenManager).get).token }).rest;
139841
- const request$3 = (f) => withSpan(tryPromise({
140128
+ const tokens = yield* TokenManager;
140129
+ const clients = yield* make$32({
140130
+ lookup: (token) => succeed(new Octokit({ auth: token })),
140131
+ idleTimeToLive: "1 minute"
140132
+ });
140133
+ const getClient = tokens.get.pipe(flatMap(({ token }) => get$5(clients, token)), mapError$2((cause) => new GithubError({ cause })));
140134
+ const request$3 = (f) => getClient.pipe(flatMap((rest) => tryPromise({
139842
140135
  try: () => f(rest),
139843
140136
  catch: (cause) => new GithubError({ cause })
139844
- }), "Github.request");
139845
- const wrap = (f) => (...args$1) => map$4(tryPromise({
140137
+ })), scoped$1, withSpan("Github.request"));
140138
+ const wrap = (f) => (...args$1) => getClient.pipe(flatMap((rest) => tryPromise({
139846
140139
  try: () => f(rest)(...args$1),
139847
140140
  catch: (cause) => new GithubError({ cause })
139848
- }), (_) => _.data);
139849
- const stream$3 = (f) => paginate$1(0, (page) => map$4(tryPromise({
140141
+ })), scoped$1, map$4((_) => _.data), withSpan("Github.wrap"));
140142
+ const stream$3 = (f) => paginate$1(0, (page) => getClient.pipe(flatMap((rest) => tryPromise({
139850
140143
  try: () => f(rest, page),
139851
140144
  catch: (cause) => new GithubError({ cause })
139852
- }), (_) => [_.data, maybeNextPage(page, _.headers.link)]));
140145
+ })), scoped$1, map$4((_) => [_.data, maybeNextPage(page, _.headers.link)])));
139853
140146
  return {
139854
140147
  request: request$3,
139855
140148
  wrap,
@@ -140157,7 +140450,7 @@ single iteration, break it down into smaller tasks and add them to the prd.json
140157
140450
  file. Then, mark the original task as "blocked" or "deferred" by updating its
140158
140451
  \`stateId\`.
140159
140452
 
140160
- Each task should be small and take a hour or less to complete.
140453
+ Each task should be small and specific.
140161
140454
  Instead of creating tasks like "Refactor the authentication system", create
140162
140455
  smaller tasks like "Implement OAuth2 login endpoint", "Add JWT token refresh mechanism", etc.
140163
140456
 
@@ -140183,7 +140476,7 @@ Users idea / request: ${idea}
140183
140476
  2. Each task should have a id of \`null\`, a title, and a concise description that
140184
140477
  includes a short summary of the task and a brief list of steps to complete it.
140185
140478
  - The tasks should start in a "Todo" state (i.e., not started yet).
140186
- - Each task should be small and take a hour or less to complete.
140479
+ - Each task should be small and specific.
140187
140480
  Instead of creating tasks like "Refactor the authentication system", create
140188
140481
  smaller tasks like "Implement OAuth2 login endpoint", "Add JWT token refresh mechanism", etc.
140189
140482
  3. Add the new tasks to the prd.json file.
@@ -140205,7 +140498,7 @@ ${prdNotes}`;
140205
140498
  - Each task should have a id of \`null\`, a title, and a concise description that
140206
140499
  includes a short summary of the task and a brief list of steps to complete it.
140207
140500
  - The tasks should start in a "Todo" state (i.e., not started yet).
140208
- - Each task should be small and take a hour or less to complete.
140501
+ - Each task should be small and specific.
140209
140502
  Instead of creating tasks like "Refactor the authentication system", create
140210
140503
  smaller tasks like "Implement OAuth2 login endpoint", "Add JWT token refresh mechanism", etc.
140211
140504
  - Add / update the brief outline of the plan in the "lalph-plan.md" file, that will help guide future
@@ -140482,7 +140775,7 @@ const root = make$26("lalph", {
140482
140775
  const fibers = yield* make$24();
140483
140776
  yield* log$1(`Executing ${iterationsDisplay} iteration(s) with concurrency ${runConcurrency}`);
140484
140777
  let iteration = 0;
140485
- makeUnsafe$2(0);
140778
+ makeUnsafe$3(0);
140486
140779
  let inProgress = 0;
140487
140780
  let quit = false;
140488
140781
  while (true) {