@brytdesigns/shopify-ajax-predictive-search-api 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@ var __export = (target, all5) => {
4
4
  __defProp(target, name, { get: all5[name], enumerable: true });
5
5
  };
6
6
 
7
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Function.js
7
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Function.js
8
8
  var isFunction = (input) => typeof input === "function";
9
9
  var dual = function(arity, body) {
10
10
  if (typeof arity === "function") {
@@ -103,7 +103,7 @@ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
103
103
  }
104
104
  }
105
105
 
106
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Equivalence.js
106
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Equivalence.js
107
107
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
108
108
  var isStrictEquivalent = (x, y) => x === y;
109
109
  var strict = () => isStrictEquivalent;
@@ -123,7 +123,7 @@ var array = (item) => make((self, that) => {
123
123
  return true;
124
124
  });
125
125
 
126
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/GlobalValue.js
126
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/GlobalValue.js
127
127
  var globalStoreId = `effect/GlobalValue`;
128
128
  var globalStore;
129
129
  var globalValue = (id2, compute) => {
@@ -137,7 +137,7 @@ var globalValue = (id2, compute) => {
137
137
  return globalStore.get(id2);
138
138
  };
139
139
 
140
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Predicate.js
140
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Predicate.js
141
141
  var isString = (input) => typeof input === "string";
142
142
  var isNumber = (input) => typeof input === "number";
143
143
  var isBoolean = (input) => typeof input === "boolean";
@@ -155,11 +155,11 @@ var isTagged = /* @__PURE__ */ dual(2, (self, tag2) => hasProperty(self, "_tag")
155
155
  var isNullable = (input) => input === null || input === void 0;
156
156
  var isNotNullable = (input) => input !== null && input !== void 0;
157
157
  var isDate = (input) => input instanceof Date;
158
- var isIterable = (input) => hasProperty(input, Symbol.iterator);
158
+ var isIterable = (input) => typeof input === "string" || hasProperty(input, Symbol.iterator);
159
159
  var isRecord = (input) => isRecordOrArray(input) && !Array.isArray(input);
160
160
  var isPromiseLike = (input) => hasProperty(input, "then") && isFunction2(input.then);
161
161
 
162
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/errors.js
162
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/errors.js
163
163
  var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
164
164
  var SingleShotGen = class _SingleShotGen {
165
165
  self;
@@ -359,7 +359,7 @@ var forced = {
359
359
  var isNotOptimizedAway = /* @__PURE__ */ standard.effect_internal_function(() => new Error().stack)?.includes("effect_internal_function") === true;
360
360
  var internalCall = isNotOptimizedAway ? standard.effect_internal_function : forced.effect_internal_function;
361
361
 
362
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Hash.js
362
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Hash.js
363
363
  var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
364
364
  var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
365
365
  var hash = (self) => {
@@ -465,7 +465,7 @@ var cached = function() {
465
465
  return hash2;
466
466
  };
467
467
 
468
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Equal.js
468
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Equal.js
469
469
  var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
470
470
  function equals() {
471
471
  if (arguments.length === 1) {
@@ -519,7 +519,7 @@ function compareBoth(self, that) {
519
519
  var isEqual = (u) => hasProperty(u, symbol2);
520
520
  var equivalence = () => equals;
521
521
 
522
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Inspectable.js
522
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Inspectable.js
523
523
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
524
524
  var toJSON = (x) => {
525
525
  try {
@@ -533,6 +533,73 @@ var toJSON = (x) => {
533
533
  }
534
534
  return redact(x);
535
535
  };
536
+ var CIRCULAR = "[Circular]";
537
+ function formatDate(date) {
538
+ try {
539
+ return date.toISOString();
540
+ } catch {
541
+ return "Invalid Date";
542
+ }
543
+ }
544
+ function safeToString(input) {
545
+ try {
546
+ const s = input.toString();
547
+ return typeof s === "string" ? s : String(s);
548
+ } catch {
549
+ return "[toString threw]";
550
+ }
551
+ }
552
+ function formatPropertyKey(name) {
553
+ return isString(name) ? JSON.stringify(name) : String(name);
554
+ }
555
+ function formatUnknown(input, options3) {
556
+ const seen = /* @__PURE__ */ new WeakSet();
557
+ const wrap = (v, body) => {
558
+ const ctor = v?.constructor;
559
+ return ctor && ctor !== Object.prototype.constructor && ctor.name ? `${ctor.name}(${body})` : body;
560
+ };
561
+ const ownKeys = (o) => {
562
+ try {
563
+ return Reflect.ownKeys(o);
564
+ } catch {
565
+ return ["[ownKeys threw]"];
566
+ }
567
+ };
568
+ function go2(v, d = 0) {
569
+ if (Array.isArray(v)) {
570
+ if (seen.has(v)) return CIRCULAR;
571
+ seen.add(v);
572
+ return `[${v.map((x) => go2(x, d)).join(",")}]`;
573
+ }
574
+ if (isDate(v)) return formatDate(v);
575
+ if (hasProperty(v, "toString") && isFunction2(v["toString"]) && v["toString"] !== Object.prototype.toString && v["toString"] !== Array.prototype.toString) {
576
+ const s = safeToString(v);
577
+ if (v instanceof Error && v.cause) {
578
+ return `${s} (cause: ${go2(v.cause, d)})`;
579
+ }
580
+ return s;
581
+ }
582
+ if (isString(v)) return JSON.stringify(v);
583
+ if (isNumber(v) || v == null || isBoolean(v) || isSymbol(v)) return String(v);
584
+ if (isBigInt(v)) return String(v) + "n";
585
+ if (v instanceof Set || v instanceof Map) {
586
+ if (seen.has(v)) return CIRCULAR;
587
+ seen.add(v);
588
+ return `${v.constructor.name}(${go2(Array.from(v), d)})`;
589
+ }
590
+ if (isObject(v)) {
591
+ if (seen.has(v)) return CIRCULAR;
592
+ seen.add(v);
593
+ const keys6 = ownKeys(v);
594
+ {
595
+ const body2 = `{${keys6.map((k) => `${formatPropertyKey(k)}:${go2(v[k], d)}`).join(",")}}`;
596
+ return wrap(v, body2);
597
+ }
598
+ }
599
+ return String(v);
600
+ }
601
+ return go2(input, 0);
602
+ }
536
603
  var format = (x) => JSON.stringify(x, null, 2);
537
604
  var BaseProto = {
538
605
  toJSON() {
@@ -596,7 +663,7 @@ var redact = (u) => {
596
663
  return u;
597
664
  };
598
665
 
599
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Pipeable.js
666
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Pipeable.js
600
667
  var pipeArguments = (self, args2) => {
601
668
  switch (args2.length) {
602
669
  case 0:
@@ -629,7 +696,7 @@ var pipeArguments = (self, args2) => {
629
696
  }
630
697
  };
631
698
 
632
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/effect.js
699
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/effect.js
633
700
  var OP_ASYNC = "Async";
634
701
  var OP_COMMIT = "Commit";
635
702
  var OP_FAILURE = "Failure";
@@ -646,11 +713,11 @@ var OP_WITH_RUNTIME = "WithRuntime";
646
713
  var OP_YIELD = "Yield";
647
714
  var OP_REVERT_FLAGS = "RevertFlags";
648
715
 
649
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/version.js
650
- var moduleVersion = "3.17.2";
716
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/version.js
717
+ var moduleVersion = "3.19.4";
651
718
  var getCurrentVersion = () => moduleVersion;
652
719
 
653
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/effectable.js
720
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/effectable.js
654
721
  var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
655
722
  var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
656
723
  var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
@@ -743,7 +810,7 @@ var Base = /* @__PURE__ */ function() {
743
810
  return Base3;
744
811
  }();
745
812
 
746
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/option.js
813
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/option.js
747
814
  var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
748
815
  var CommonProto = {
749
816
  ...EffectPrototype,
@@ -801,7 +868,7 @@ var some = (value2) => {
801
868
  return a;
802
869
  };
803
870
 
804
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/either.js
871
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/either.js
805
872
  var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
806
873
  var CommonProto2 = {
807
874
  ...EffectPrototype,
@@ -864,7 +931,7 @@ var right = (right3) => {
864
931
  };
865
932
  var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? left(onNone()) : right(self.value));
866
933
 
867
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Either.js
934
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Either.js
868
935
  var right2 = right;
869
936
  var left2 = left;
870
937
  var fromOption2 = fromOption;
@@ -893,16 +960,16 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onLeft) => {
893
960
  });
894
961
  var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a Left"));
895
962
 
896
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/array.js
963
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/array.js
897
964
  var isNonEmptyArray = (self) => self.length > 0;
898
965
 
899
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Order.js
966
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Order.js
900
967
  var make2 = (compare2) => (self, that) => self === that ? 0 : compare2(self, that);
901
968
  var number3 = /* @__PURE__ */ make2((self, that) => self < that ? -1 : 1);
902
969
  var mapInput2 = /* @__PURE__ */ dual(2, (self, f) => make2((b1, b2) => self(f(b1), f(b2))));
903
970
  var greaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
904
971
 
905
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Option.js
972
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Option.js
906
973
  var none2 = () => none;
907
974
  var some2 = some;
908
975
  var isOption2 = isOption;
@@ -935,10 +1002,10 @@ var _equivalence = /* @__PURE__ */ equivalence();
935
1002
  var contains = /* @__PURE__ */ containsWith(_equivalence);
936
1003
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
937
1004
 
938
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Tuple.js
1005
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Tuple.js
939
1006
  var make3 = (...elements) => elements;
940
1007
 
941
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Record.js
1008
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Record.js
942
1009
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
943
1010
  const out = {
944
1011
  ...self
@@ -950,7 +1017,7 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
950
1017
  });
951
1018
  var keys = (self) => Object.keys(self);
952
1019
 
953
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Array.js
1020
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Array.js
954
1021
  var allocate = (n) => new Array(n);
955
1022
  var makeBy = /* @__PURE__ */ dual(2, (n, f) => {
956
1023
  const max5 = Math.max(1, Math.floor(n));
@@ -1125,7 +1192,7 @@ var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
1125
1192
  var dedupe = (self) => dedupeWith(self, equivalence());
1126
1193
  var join = /* @__PURE__ */ dual(2, (self, sep) => fromIterable(self).join(sep));
1127
1194
 
1128
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Chunk.js
1195
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Chunk.js
1129
1196
  var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Chunk");
1130
1197
  function copy2(src, srcPos, dest, destPos, len) {
1131
1198
  for (let i = srcPos; i < Math.min(src.length, srcPos + len); i++) {
@@ -1464,14 +1531,14 @@ var map5 = /* @__PURE__ */ dual(2, (self, f) => self.backing._tag === "ISingleto
1464
1531
  var tailNonEmpty2 = (self) => drop2(self, 1);
1465
1532
  var reduce2 = reduce;
1466
1533
 
1467
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashMap/config.js
1534
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashMap/config.js
1468
1535
  var SIZE = 5;
1469
1536
  var BUCKET_SIZE = /* @__PURE__ */ Math.pow(2, SIZE);
1470
1537
  var MASK = BUCKET_SIZE - 1;
1471
1538
  var MAX_INDEX_NODE = BUCKET_SIZE / 2;
1472
1539
  var MIN_ARRAY_NODE = BUCKET_SIZE / 4;
1473
1540
 
1474
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashMap/bitwise.js
1541
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashMap/bitwise.js
1475
1542
  function popcount(x) {
1476
1543
  x -= x >> 1 & 1431655765;
1477
1544
  x = (x & 858993459) + (x >> 2 & 858993459);
@@ -1490,13 +1557,13 @@ function fromBitmap(bitmap, bit) {
1490
1557
  return popcount(bitmap & bit - 1);
1491
1558
  }
1492
1559
 
1493
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/stack.js
1560
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/stack.js
1494
1561
  var make5 = (value2, previous) => ({
1495
1562
  value: value2,
1496
1563
  previous
1497
1564
  });
1498
1565
 
1499
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashMap/array.js
1566
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashMap/array.js
1500
1567
  function arrayUpdate(mutate4, at, v, arr) {
1501
1568
  let out = arr;
1502
1569
  if (!mutate4) {
@@ -1541,7 +1608,7 @@ function arraySpliceIn(mutate4, at, v, arr) {
1541
1608
  return out;
1542
1609
  }
1543
1610
 
1544
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashMap/node.js
1611
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashMap/node.js
1545
1612
  var EmptyNode = class _EmptyNode {
1546
1613
  _tag = "EmptyNode";
1547
1614
  modify(edit, _shift, f, hash2, key, size12) {
@@ -1776,7 +1843,7 @@ function mergeLeaves(edit, shift2, h1, n1, h2, n2) {
1776
1843
  }
1777
1844
  }
1778
1845
 
1779
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashMap.js
1846
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashMap.js
1780
1847
  var HashMapSymbolKey = "effect/HashMap";
1781
1848
  var HashMapTypeId = /* @__PURE__ */ Symbol.for(HashMapSymbolKey);
1782
1849
  var HashMapProto = {
@@ -2008,7 +2075,7 @@ var reduce3 = /* @__PURE__ */ dual(3, (self, zero2, f) => {
2008
2075
  return zero2;
2009
2076
  });
2010
2077
 
2011
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashSet.js
2078
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashSet.js
2012
2079
  var HashSetSymbolKey = "effect/HashSet";
2013
2080
  var HashSetTypeId = /* @__PURE__ */ Symbol.for(HashSetSymbolKey);
2014
2081
  var HashSetProto = {
@@ -2091,7 +2158,7 @@ var union2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(empty4(), (set10) =
2091
2158
  var forEach2 = /* @__PURE__ */ dual(2, (self, f) => forEach(self._keyMap, (_, k) => f(k)));
2092
2159
  var reduce4 = /* @__PURE__ */ dual(3, (self, zero2, f) => reduce3(self._keyMap, zero2, (z, _, a) => f(z, a)));
2093
2160
 
2094
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/HashSet.js
2161
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/HashSet.js
2095
2162
  var empty5 = empty4;
2096
2163
  var fromIterable5 = fromIterable4;
2097
2164
  var make7 = make6;
@@ -2103,7 +2170,7 @@ var difference3 = difference2;
2103
2170
  var union3 = union2;
2104
2171
  var reduce5 = reduce4;
2105
2172
 
2106
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/cause.js
2173
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/cause.js
2107
2174
  var OP_DIE = "Die";
2108
2175
  var OP_EMPTY = "Empty";
2109
2176
  var OP_FAIL = "Fail";
@@ -2111,7 +2178,7 @@ var OP_INTERRUPT = "Interrupt";
2111
2178
  var OP_PARALLEL = "Parallel";
2112
2179
  var OP_SEQUENTIAL = "Sequential";
2113
2180
 
2114
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/cause.js
2181
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/cause.js
2115
2182
  var CauseSymbolKey = "effect/Cause";
2116
2183
  var CauseTypeId = /* @__PURE__ */ Symbol.for(CauseSymbolKey);
2117
2184
  var variance = {
@@ -2666,7 +2733,7 @@ var prettyErrors = (cause2) => reduceWithContext(cause2, void 0, {
2666
2733
  sequentialCase: (_, l, r) => [...l, ...r]
2667
2734
  });
2668
2735
 
2669
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/context.js
2736
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/context.js
2670
2737
  var TagTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Tag");
2671
2738
  var ReferenceTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Reference");
2672
2739
  var STMSymbolKey = "effect/STM";
@@ -2838,8 +2905,17 @@ var merge2 = /* @__PURE__ */ dual(2, (self, that) => {
2838
2905
  }
2839
2906
  return makeContext(map22);
2840
2907
  });
2908
+ var mergeAll = (...ctxs) => {
2909
+ const map22 = /* @__PURE__ */ new Map();
2910
+ for (let i = 0; i < ctxs.length; i++) {
2911
+ ctxs[i].unsafeMap.forEach((value2, key) => {
2912
+ map22.set(key, value2);
2913
+ });
2914
+ }
2915
+ return makeContext(map22);
2916
+ };
2841
2917
 
2842
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Context.js
2918
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Context.js
2843
2919
  var GenericTag = makeGenericTag;
2844
2920
  var isContext2 = isContext;
2845
2921
  var isTag2 = isTag;
@@ -2850,9 +2926,10 @@ var get5 = get4;
2850
2926
  var unsafeGet4 = unsafeGet3;
2851
2927
  var getOption2 = getOption;
2852
2928
  var merge3 = merge2;
2929
+ var mergeAll2 = mergeAll;
2853
2930
  var Reference2 = Reference;
2854
2931
 
2855
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Duration.js
2932
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Duration.js
2856
2933
  var TypeId5 = /* @__PURE__ */ Symbol.for("effect/Duration");
2857
2934
  var bigint0 = /* @__PURE__ */ BigInt(0);
2858
2935
  var bigint24 = /* @__PURE__ */ BigInt(24);
@@ -3129,7 +3206,7 @@ var format2 = (self) => {
3129
3206
  return pieces.join(" ");
3130
3207
  };
3131
3208
 
3132
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/MutableRef.js
3209
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/MutableRef.js
3133
3210
  var TypeId6 = /* @__PURE__ */ Symbol.for("effect/MutableRef");
3134
3211
  var MutableRefProto = {
3135
3212
  [TypeId6]: TypeId6,
@@ -3167,7 +3244,7 @@ var set2 = /* @__PURE__ */ dual(2, (self, value2) => {
3167
3244
  return self;
3168
3245
  });
3169
3246
 
3170
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberId.js
3247
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberId.js
3171
3248
  var FiberIdSymbolKey = "effect/FiberId";
3172
3249
  var FiberIdTypeId = /* @__PURE__ */ Symbol.for(FiberIdSymbolKey);
3173
3250
  var OP_NONE = "None";
@@ -3297,7 +3374,7 @@ var unsafeMake = () => {
3297
3374
  return new Runtime(id2, Date.now());
3298
3375
  };
3299
3376
 
3300
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberId.js
3377
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/FiberId.js
3301
3378
  var none4 = none3;
3302
3379
  var combine3 = combine2;
3303
3380
  var combineAll2 = combineAll;
@@ -3305,7 +3382,7 @@ var ids2 = ids;
3305
3382
  var threadName2 = threadName;
3306
3383
  var unsafeMake2 = unsafeMake;
3307
3384
 
3308
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/HashMap.js
3385
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/HashMap.js
3309
3386
  var empty9 = empty3;
3310
3387
  var fromIterable6 = fromIterable3;
3311
3388
  var isEmpty4 = isEmpty2;
@@ -3319,7 +3396,7 @@ var map10 = map6;
3319
3396
  var forEach3 = forEach;
3320
3397
  var reduce7 = reduce3;
3321
3398
 
3322
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/List.js
3399
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/List.js
3323
3400
  var TypeId7 = /* @__PURE__ */ Symbol.for("effect/List");
3324
3401
  var toArray2 = (self) => fromIterable(self);
3325
3402
  var getEquivalence4 = (isEquivalent) => mapInput(getEquivalence2(isEquivalent), toArray2);
@@ -3479,7 +3556,7 @@ var Structural = /* @__PURE__ */ function() {
3479
3556
  }();
3480
3557
  var struct = (as6) => Object.assign(Object.create(StructuralPrototype), as6);
3481
3558
 
3482
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/differ/contextPatch.js
3559
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/differ/contextPatch.js
3483
3560
  var ContextPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferContextPatch");
3484
3561
  function variance2(a) {
3485
3562
  return a;
@@ -3605,7 +3682,7 @@ var patch = /* @__PURE__ */ dual(2, (self, context5) => {
3605
3682
  return makeContext(map22);
3606
3683
  });
3607
3684
 
3608
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/differ/hashSetPatch.js
3685
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/differ/hashSetPatch.js
3609
3686
  var HashSetPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferHashSetPatch");
3610
3687
  function variance3(a) {
3611
3688
  return a;
@@ -3690,7 +3767,7 @@ var patch2 = /* @__PURE__ */ dual(2, (self, oldValue) => {
3690
3767
  return set10;
3691
3768
  });
3692
3769
 
3693
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/differ/readonlyArrayPatch.js
3770
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/differ/readonlyArrayPatch.js
3694
3771
  var ReadonlyArrayPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferReadonlyArrayPatch");
3695
3772
  function variance4(a) {
3696
3773
  return a;
@@ -3804,7 +3881,7 @@ var patch3 = /* @__PURE__ */ dual(3, (self, oldValue, differ3) => {
3804
3881
  return readonlyArray2;
3805
3882
  });
3806
3883
 
3807
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/differ.js
3884
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/differ.js
3808
3885
  var DifferTypeId = /* @__PURE__ */ Symbol.for("effect/Differ");
3809
3886
  var DifferProto = {
3810
3887
  [DifferTypeId]: {
@@ -3866,7 +3943,7 @@ var updateWith = (f) => make14({
3866
3943
  patch: (patch11, oldValue) => f(oldValue, patch11(oldValue))
3867
3944
  });
3868
3945
 
3869
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/runtimeFlagsPatch.js
3946
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/runtimeFlagsPatch.js
3870
3947
  var BIT_MASK = 255;
3871
3948
  var BIT_SHIFT = 8;
3872
3949
  var active = (patch11) => patch11 & BIT_MASK;
@@ -3879,7 +3956,7 @@ var exclude = /* @__PURE__ */ dual(2, (self, flag) => make15(active(self) & ~fla
3879
3956
  var andThen = /* @__PURE__ */ dual(2, (self, that) => self | that);
3880
3957
  var invert = (n) => ~n >>> 0 & BIT_MASK;
3881
3958
 
3882
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/runtimeFlags.js
3959
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/runtimeFlags.js
3883
3960
  var None2 = 0;
3884
3961
  var Interruption = 1 << 0;
3885
3962
  var OpSupervision = 1 << 1;
@@ -3905,12 +3982,12 @@ var differ = /* @__PURE__ */ make14({
3905
3982
  patch: (_patch, oldValue) => patch4(oldValue, _patch)
3906
3983
  });
3907
3984
 
3908
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/RuntimeFlagsPatch.js
3985
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/RuntimeFlagsPatch.js
3909
3986
  var enable3 = enable;
3910
3987
  var disable3 = disable;
3911
3988
  var exclude2 = exclude;
3912
3989
 
3913
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/blockedRequests.js
3990
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/blockedRequests.js
3914
3991
  var par = (self, that) => ({
3915
3992
  _tag: "Par",
3916
3993
  left: self,
@@ -4053,11 +4130,11 @@ var sequentialCollectionCombine = (self, that) => new SequentialImpl(reduce7(tha
4053
4130
  var sequentialCollectionKeys = (self) => Array.from(keys3(self.map));
4054
4131
  var sequentialCollectionToChunk = (self) => Array.from(self.map);
4055
4132
 
4056
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/deferred.js
4133
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/deferred.js
4057
4134
  var OP_STATE_PENDING = "Pending";
4058
4135
  var OP_STATE_DONE = "Done";
4059
4136
 
4060
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/deferred.js
4137
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/deferred.js
4061
4138
  var DeferredSymbolKey = "effect/Deferred";
4062
4139
  var DeferredTypeId = /* @__PURE__ */ Symbol.for(DeferredSymbolKey);
4063
4140
  var deferredVariance = {
@@ -4079,7 +4156,7 @@ var done = (effect3) => {
4079
4156
  };
4080
4157
  };
4081
4158
 
4082
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/singleShotGen.js
4159
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/singleShotGen.js
4083
4160
  var SingleShotGen2 = class _SingleShotGen {
4084
4161
  self;
4085
4162
  called = false;
@@ -4109,7 +4186,7 @@ var SingleShotGen2 = class _SingleShotGen {
4109
4186
  }
4110
4187
  };
4111
4188
 
4112
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/core.js
4189
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/core.js
4113
4190
  var blocked = (blockedRequests, _continue3) => {
4114
4191
  const effect3 = new EffectPrimitive("Blocked");
4115
4192
  effect3.effect_instruction_i0 = blockedRequests;
@@ -4589,6 +4666,18 @@ var gen = function() {
4589
4666
  const f = arguments.length === 1 ? arguments[0] : arguments[1].bind(arguments[0]);
4590
4667
  return fromIterator(() => f(pipe));
4591
4668
  };
4669
+ var fnUntraced = (body, ...pipeables) => Object.defineProperty(pipeables.length === 0 ? function(...args2) {
4670
+ return fromIterator(() => body.apply(this, args2));
4671
+ } : function(...args2) {
4672
+ let effect3 = fromIterator(() => body.apply(this, args2));
4673
+ for (const x of pipeables) {
4674
+ effect3 = x(effect3, ...args2);
4675
+ }
4676
+ return effect3;
4677
+ }, "length", {
4678
+ value: body.length,
4679
+ configurable: true
4680
+ });
4592
4681
  var withRuntimeFlags = /* @__PURE__ */ dual(2, (self, update5) => {
4593
4682
  const effect3 = new EffectPrimitive(OP_UPDATE_RUNTIME_FLAGS);
4594
4683
  effect3.effect_instruction_i0 = update5;
@@ -4859,14 +4948,6 @@ var UnknownException = /* @__PURE__ */ function() {
4859
4948
  var exitIsExit = (u) => isEffect(u) && "_tag" in u && (u._tag === "Success" || u._tag === "Failure");
4860
4949
  var exitIsFailure = (self) => self._tag === "Failure";
4861
4950
  var exitIsSuccess = (self) => self._tag === "Success";
4862
- var exitIsInterrupted = (self) => {
4863
- switch (self._tag) {
4864
- case OP_FAILURE:
4865
- return isInterrupted(self.effect_instruction_i0);
4866
- case OP_SUCCESS:
4867
- return false;
4868
- }
4869
- };
4870
4951
  var exitAs = /* @__PURE__ */ dual(2, (self, value2) => {
4871
4952
  switch (self._tag) {
4872
4953
  case OP_FAILURE: {
@@ -5064,7 +5145,7 @@ var NoopSpanProto = {
5064
5145
  };
5065
5146
  var noopSpan = (options3) => Object.assign(Object.create(NoopSpanProto), options3);
5066
5147
 
5067
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/clock.js
5148
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/clock.js
5068
5149
  var ClockSymbolKey = "effect/Clock";
5069
5150
  var ClockTypeId = /* @__PURE__ */ Symbol.for(ClockSymbolKey);
5070
5151
  var clockTag = /* @__PURE__ */ GenericTag("effect/Clock");
@@ -5129,7 +5210,7 @@ var ClockImpl = class {
5129
5210
  };
5130
5211
  var make18 = () => new ClockImpl();
5131
5212
 
5132
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Number.js
5213
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Number.js
5133
5214
  var Order = number3;
5134
5215
  var parse = (s) => {
5135
5216
  if (s === "NaN") {
@@ -5148,10 +5229,10 @@ var parse = (s) => {
5148
5229
  return Number.isNaN(n) ? none : some(n);
5149
5230
  };
5150
5231
 
5151
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/RegExp.js
5232
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/RegExp.js
5152
5233
  var escape = (string2) => string2.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
5153
5234
 
5154
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/configError.js
5235
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/configError.js
5155
5236
  var OP_AND = "And";
5156
5237
  var OP_OR = "Or";
5157
5238
  var OP_INVALID_DATA = "InvalidData";
@@ -5159,7 +5240,7 @@ var OP_MISSING_DATA = "MissingData";
5159
5240
  var OP_SOURCE_UNAVAILABLE = "SourceUnavailable";
5160
5241
  var OP_UNSUPPORTED = "Unsupported";
5161
5242
 
5162
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/configError.js
5243
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/configError.js
5163
5244
  var ConfigErrorSymbolKey = "effect/ConfigError";
5164
5245
  var ConfigErrorTypeId = /* @__PURE__ */ Symbol.for(ConfigErrorSymbolKey);
5165
5246
  var proto2 = {
@@ -5292,7 +5373,7 @@ var prefixed = /* @__PURE__ */ dual(2, (self, prefix) => {
5292
5373
  }
5293
5374
  });
5294
5375
 
5295
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/configProvider/pathPatch.js
5376
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/configProvider/pathPatch.js
5296
5377
  var empty15 = {
5297
5378
  _tag: "Empty"
5298
5379
  };
@@ -5335,7 +5416,7 @@ var patch5 = /* @__PURE__ */ dual(2, (path, patch11) => {
5335
5416
  return right2(output);
5336
5417
  });
5337
5418
 
5338
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/config.js
5419
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/config.js
5339
5420
  var OP_CONSTANT = "Constant";
5340
5421
  var OP_FAIL2 = "Fail";
5341
5422
  var OP_FALLBACK = "Fallback";
@@ -5348,7 +5429,7 @@ var OP_SEQUENCE = "Sequence";
5348
5429
  var OP_HASHMAP = "HashMap";
5349
5430
  var OP_ZIP_WITH = "ZipWith";
5350
5431
 
5351
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/configProvider.js
5432
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/configProvider.js
5352
5433
  var concat = (l, r) => [...l, ...r];
5353
5434
  var ConfigProviderSymbolKey = "effect/ConfigProvider";
5354
5435
  var ConfigProviderTypeId = /* @__PURE__ */ Symbol.for(ConfigProviderSymbolKey);
@@ -5552,7 +5633,7 @@ var parseInteger = (str) => {
5552
5633
  return Number.isNaN(parsedIndex) ? none2() : some2(parsedIndex);
5553
5634
  };
5554
5635
 
5555
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/defaultServices/console.js
5636
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/defaultServices/console.js
5556
5637
  var TypeId8 = /* @__PURE__ */ Symbol.for("effect/Console");
5557
5638
  var consoleTag = /* @__PURE__ */ GenericTag("effect/Console");
5558
5639
  var defaultConsole = {
@@ -5640,7 +5721,7 @@ var defaultConsole = {
5640
5721
  unsafe: console
5641
5722
  };
5642
5723
 
5643
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/random.js
5724
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/random.js
5644
5725
  var RandomSymbolKey = "effect/Random";
5645
5726
  var RandomTypeId = /* @__PURE__ */ Symbol.for(RandomSymbolKey);
5646
5727
  var randomTag = /* @__PURE__ */ GenericTag("effect/Random");
@@ -5688,7 +5769,7 @@ var swap = (buffer2, index1, index2) => {
5688
5769
  };
5689
5770
  var make21 = (seed) => new RandomImpl(hash(seed));
5690
5771
 
5691
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/tracer.js
5772
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/tracer.js
5692
5773
  var TracerTypeId = /* @__PURE__ */ Symbol.for("effect/Tracer");
5693
5774
  var make22 = (options3) => ({
5694
5775
  [TracerTypeId]: TracerTypeId,
@@ -5789,7 +5870,7 @@ var DisablePropagation = /* @__PURE__ */ Reference2()("effect/Tracer/DisableProp
5789
5870
  defaultValue: constFalse
5790
5871
  });
5791
5872
 
5792
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/defaultServices.js
5873
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/defaultServices.js
5793
5874
  var liveServices = /* @__PURE__ */ pipe(/* @__PURE__ */ empty8(), /* @__PURE__ */ add4(clockTag, /* @__PURE__ */ make18()), /* @__PURE__ */ add4(consoleTag, defaultConsole), /* @__PURE__ */ add4(randomTag, /* @__PURE__ */ make21(/* @__PURE__ */ Math.random())), /* @__PURE__ */ add4(configProviderTag, /* @__PURE__ */ fromEnv()), /* @__PURE__ */ add4(tracerTag, nativeTracer));
5794
5875
  var currentServices = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/DefaultServices/currentServices"), () => fiberRefUnsafeMakeContext(liveServices));
5795
5876
  var sleep = (duration) => {
@@ -5800,20 +5881,13 @@ var defaultServicesWith = (f) => withFiberRuntime((fiber) => f(fiber.currentDefa
5800
5881
  var clockWith = (f) => defaultServicesWith((services) => f(services.unsafeMap.get(clockTag.key)));
5801
5882
  var currentTimeMillis = /* @__PURE__ */ clockWith((clock3) => clock3.currentTimeMillis);
5802
5883
 
5803
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Deferred.js
5804
- var make23 = deferredMake;
5805
- var _await = deferredAwait;
5806
- var failCause2 = deferredFailCause;
5807
- var isDone = deferredIsDone;
5808
- var succeed2 = deferredSucceed;
5809
-
5810
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Effectable.js
5884
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Effectable.js
5811
5885
  var EffectPrototype2 = EffectPrototype;
5812
5886
  var Base2 = Base;
5813
5887
  var Class2 = class extends Base2 {
5814
5888
  };
5815
5889
 
5816
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/executionStrategy.js
5890
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/executionStrategy.js
5817
5891
  var OP_SEQUENTIAL2 = "Sequential";
5818
5892
  var OP_PARALLEL2 = "Parallel";
5819
5893
  var OP_PARALLEL_N = "ParallelN";
@@ -5830,12 +5904,12 @@ var parallelN = (parallelism) => ({
5830
5904
  var isSequential = (self) => self._tag === OP_SEQUENTIAL2;
5831
5905
  var isParallel = (self) => self._tag === OP_PARALLEL2;
5832
5906
 
5833
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/ExecutionStrategy.js
5907
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/ExecutionStrategy.js
5834
5908
  var sequential3 = sequential2;
5835
5909
  var parallel3 = parallel2;
5836
5910
  var parallelN2 = parallelN;
5837
5911
 
5838
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberRefs.js
5912
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberRefs.js
5839
5913
  function unsafeMake3(fiberRefLocals) {
5840
5914
  return new FiberRefsImpl(fiberRefLocals);
5841
5915
  }
@@ -6002,13 +6076,13 @@ var updateManyAs = /* @__PURE__ */ dual(2, (self, {
6002
6076
  return new FiberRefsImpl(locals);
6003
6077
  });
6004
6078
 
6005
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberRefs.js
6079
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/FiberRefs.js
6006
6080
  var get9 = get8;
6007
6081
  var getOrDefault2 = getOrDefault;
6008
6082
  var updateManyAs2 = updateManyAs;
6009
6083
  var empty17 = empty16;
6010
6084
 
6011
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberRefs/patch.js
6085
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberRefs/patch.js
6012
6086
  var OP_EMPTY2 = "Empty";
6013
6087
  var OP_ADD = "Add";
6014
6088
  var OP_REMOVE = "Remove";
@@ -6098,11 +6172,11 @@ var patch6 = /* @__PURE__ */ dual(3, (self, fiberId2, oldValue) => {
6098
6172
  return fiberRefs3;
6099
6173
  });
6100
6174
 
6101
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberRefsPatch.js
6175
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/FiberRefsPatch.js
6102
6176
  var diff6 = diff5;
6103
6177
  var patch7 = patch6;
6104
6178
 
6105
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberStatus.js
6179
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberStatus.js
6106
6180
  var FiberStatusSymbolKey = "effect/FiberStatus";
6107
6181
  var FiberStatusTypeId = /* @__PURE__ */ Symbol.for(FiberStatusSymbolKey);
6108
6182
  var OP_DONE = "Done";
@@ -6153,15 +6227,15 @@ var done2 = /* @__PURE__ */ new Done();
6153
6227
  var running = (runtimeFlags2) => new Running(runtimeFlags2);
6154
6228
  var suspended = (runtimeFlags2, blockingOn) => new Suspended(runtimeFlags2, blockingOn);
6155
6229
  var isFiberStatus = (u) => hasProperty(u, FiberStatusTypeId);
6156
- var isDone2 = (self) => self._tag === OP_DONE;
6230
+ var isDone = (self) => self._tag === OP_DONE;
6157
6231
 
6158
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberStatus.js
6232
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/FiberStatus.js
6159
6233
  var done3 = done2;
6160
6234
  var running2 = running;
6161
6235
  var suspended2 = suspended;
6162
- var isDone3 = isDone2;
6236
+ var isDone2 = isDone;
6163
6237
 
6164
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/LogLevel.js
6238
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/LogLevel.js
6165
6239
  var All = logLevelAll;
6166
6240
  var Fatal = logLevelFatal;
6167
6241
  var Error2 = logLevelError;
@@ -6193,7 +6267,7 @@ var fromLiteral = (literal) => {
6193
6267
  }
6194
6268
  };
6195
6269
 
6196
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Micro.js
6270
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Micro.js
6197
6271
  var TypeId9 = /* @__PURE__ */ Symbol.for("effect/Micro");
6198
6272
  var MicroExitTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroExit");
6199
6273
  var MicroCauseTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroCause");
@@ -6466,7 +6540,7 @@ var makeExit = (options3) => {
6466
6540
  return self;
6467
6541
  };
6468
6542
  };
6469
- var succeed3 = /* @__PURE__ */ makeExit({
6543
+ var succeed2 = /* @__PURE__ */ makeExit({
6470
6544
  op: "Success",
6471
6545
  prop: "value",
6472
6546
  eval(fiber) {
@@ -6474,7 +6548,7 @@ var succeed3 = /* @__PURE__ */ makeExit({
6474
6548
  return cont ? cont[successCont](this[args], fiber) : fiber.yieldWith(this);
6475
6549
  }
6476
6550
  });
6477
- var failCause3 = /* @__PURE__ */ makeExit({
6551
+ var failCause2 = /* @__PURE__ */ makeExit({
6478
6552
  op: "Failure",
6479
6553
  prop: "cause",
6480
6554
  eval(fiber) {
@@ -6499,7 +6573,7 @@ var yieldNowWith = /* @__PURE__ */ makePrimitive({
6499
6573
  }
6500
6574
  });
6501
6575
  var yieldNow2 = /* @__PURE__ */ yieldNowWith(0);
6502
- var void_2 = /* @__PURE__ */ succeed3(void 0);
6576
+ var void_2 = /* @__PURE__ */ succeed2(void 0);
6503
6577
  var withMicroFiber = /* @__PURE__ */ makePrimitive({
6504
6578
  op: "WithMicroFiber",
6505
6579
  eval(fiber) {
@@ -6520,8 +6594,8 @@ var OnSuccessProto = /* @__PURE__ */ makePrimitiveProto({
6520
6594
  }
6521
6595
  });
6522
6596
  var isMicroExit = (u) => hasProperty(u, MicroExitTypeId);
6523
- var exitSucceed2 = succeed3;
6524
- var exitFailCause2 = failCause3;
6597
+ var exitSucceed2 = succeed2;
6598
+ var exitFailCause2 = failCause2;
6525
6599
  var exitInterrupt2 = /* @__PURE__ */ exitFailCause2(/* @__PURE__ */ causeInterrupt());
6526
6600
  var exitDie2 = (defect) => exitFailCause2(causeDie(defect));
6527
6601
  var exitVoid2 = /* @__PURE__ */ exitSucceed2(void 0);
@@ -6603,8 +6677,8 @@ var OnSuccessAndFailureProto = /* @__PURE__ */ makePrimitiveProto({
6603
6677
  }
6604
6678
  });
6605
6679
  var onExit2 = /* @__PURE__ */ dual(2, (self, f) => uninterruptibleMask2((restore) => matchCauseEffect2(restore(self), {
6606
- onFailure: (cause2) => flatMap8(f(exitFailCause2(cause2)), () => failCause3(cause2)),
6607
- onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () => succeed3(a))
6680
+ onFailure: (cause2) => flatMap8(f(exitFailCause2(cause2)), () => failCause2(cause2)),
6681
+ onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () => succeed2(a))
6608
6682
  })));
6609
6683
  var setInterruptible = /* @__PURE__ */ makePrimitive({
6610
6684
  op: "SetInterruptible",
@@ -6634,10 +6708,10 @@ var runFork = (effect3, options3) => {
6634
6708
  return fiber;
6635
6709
  };
6636
6710
 
6637
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Readable.js
6711
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Readable.js
6638
6712
  var TypeId10 = /* @__PURE__ */ Symbol.for("effect/Readable");
6639
6713
 
6640
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/ref.js
6714
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/ref.js
6641
6715
  var RefTypeId = /* @__PURE__ */ Symbol.for("effect/Ref");
6642
6716
  var refVariance = {
6643
6717
  /* c8 ignore next */
@@ -6668,21 +6742,21 @@ var RefImpl = class extends Class2 {
6668
6742
  }
6669
6743
  };
6670
6744
  var unsafeMake4 = (value2) => new RefImpl(make11(value2));
6671
- var make24 = (value2) => sync(() => unsafeMake4(value2));
6745
+ var make23 = (value2) => sync(() => unsafeMake4(value2));
6672
6746
  var get10 = (self) => self.get;
6673
6747
  var set4 = /* @__PURE__ */ dual(2, (self, value2) => self.modify(() => [void 0, value2]));
6674
6748
  var getAndSet = /* @__PURE__ */ dual(2, (self, value2) => self.modify((a) => [a, value2]));
6675
6749
  var modify3 = /* @__PURE__ */ dual(2, (self, f) => self.modify(f));
6676
6750
  var update2 = /* @__PURE__ */ dual(2, (self, f) => self.modify((a) => [void 0, f(a)]));
6677
6751
 
6678
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Ref.js
6679
- var make25 = make24;
6752
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Ref.js
6753
+ var make24 = make23;
6680
6754
  var get11 = get10;
6681
6755
  var getAndSet2 = getAndSet;
6682
6756
  var modify4 = modify3;
6683
6757
  var update3 = update2;
6684
6758
 
6685
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Scheduler.js
6759
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Scheduler.js
6686
6760
  var PriorityBuckets = class {
6687
6761
  /**
6688
6762
  * @since 2.0.0
@@ -6812,10 +6886,10 @@ var SyncScheduler = class {
6812
6886
  };
6813
6887
  var currentScheduler = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentScheduler"), () => fiberRefUnsafeMake(defaultScheduler));
6814
6888
 
6815
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/completedRequestMap.js
6889
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/completedRequestMap.js
6816
6890
  var currentRequestMap = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentRequestMap"), () => fiberRefUnsafeMake(/* @__PURE__ */ new Map()));
6817
6891
 
6818
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/concurrency.js
6892
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/concurrency.js
6819
6893
  var match7 = (concurrency, sequential4, unbounded4, bounded4) => {
6820
6894
  switch (concurrency) {
6821
6895
  case void 0:
@@ -6829,13 +6903,13 @@ var match7 = (concurrency, sequential4, unbounded4, bounded4) => {
6829
6903
  }
6830
6904
  };
6831
6905
 
6832
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Clock.js
6906
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Clock.js
6833
6907
  var sleep2 = sleep;
6834
6908
  var currentTimeMillis2 = currentTimeMillis;
6835
6909
  var Clock = clockTag;
6836
6910
 
6837
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/logSpan.js
6838
- var make26 = (label, startTime) => ({
6911
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/logSpan.js
6912
+ var make25 = (label, startTime) => ({
6839
6913
  label,
6840
6914
  startTime
6841
6915
  });
@@ -6845,10 +6919,10 @@ var render = (now) => (self) => {
6845
6919
  return `${label}=${now - self.startTime}ms`;
6846
6920
  };
6847
6921
 
6848
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/LogSpan.js
6849
- var make27 = make26;
6922
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/LogSpan.js
6923
+ var make26 = make25;
6850
6924
 
6851
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/label.js
6925
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/label.js
6852
6926
  var MetricLabelSymbolKey = "effect/MetricLabel";
6853
6927
  var MetricLabelTypeId = /* @__PURE__ */ Symbol.for(MetricLabelSymbolKey);
6854
6928
  var MetricLabelImpl = class {
@@ -6871,12 +6945,12 @@ var MetricLabelImpl = class {
6871
6945
  return pipeArguments(this, arguments);
6872
6946
  }
6873
6947
  };
6874
- var make28 = (key, value2) => {
6948
+ var make27 = (key, value2) => {
6875
6949
  return new MetricLabelImpl(key, value2);
6876
6950
  };
6877
6951
  var isMetricLabel = (u) => hasProperty(u, MetricLabelTypeId);
6878
6952
 
6879
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/core-effect.js
6953
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/core-effect.js
6880
6954
  var asSome = (self) => map11(self, some2);
6881
6955
  var try_ = (arg) => {
6882
6956
  let evaluate2;
@@ -6930,27 +7004,27 @@ var logWithLevel = (level) => (...message) => {
6930
7004
  });
6931
7005
  };
6932
7006
  var logInfo = /* @__PURE__ */ logWithLevel(Info);
6933
- var withLogSpan = /* @__PURE__ */ dual(2, (effect3, label) => flatMap7(currentTimeMillis2, (now) => fiberRefLocallyWith(effect3, currentLogSpan, prepend3(make27(label, now)))));
7007
+ var withLogSpan = /* @__PURE__ */ dual(2, (effect3, label) => flatMap7(currentTimeMillis2, (now) => fiberRefLocallyWith(effect3, currentLogSpan, prepend3(make26(label, now)))));
6934
7008
  var mapErrorCause = /* @__PURE__ */ dual(2, (self, f) => matchCauseEffect(self, {
6935
7009
  onFailure: (c) => failCauseSync(() => f(c)),
6936
7010
  onSuccess: succeed
6937
7011
  }));
6938
7012
  var memoize = (self) => pipe(deferredMake(), flatMap7((deferred) => pipe(diffFiberRefsAndRuntimeFlags(self), intoDeferred(deferred), once, map11((complete2) => zipRight(complete2, pipe(deferredAwait(deferred), flatMap7(([patch11, a]) => as(zip2(patchFiberRefs(patch11[0]), updateRuntimeFlags(patch11[1])), a))))))));
6939
7013
  var negate = (self) => map11(self, (b) => !b);
6940
- var once = (self) => map11(make25(true), (ref) => asVoid(whenEffect(self, getAndSet2(ref, false))));
7014
+ var once = (self) => map11(make24(true), (ref) => asVoid(whenEffect(self, getAndSet2(ref, false))));
6941
7015
  var patchFiberRefs = (patch11) => updateFiberRefs((fiberId2, fiberRefs3) => pipe(patch11, patch6(fiberId2, fiberRefs3)));
6942
7016
  var promise = (evaluate2) => evaluate2.length >= 1 ? async_((resolve, signal) => {
6943
7017
  try {
6944
- evaluate2(signal).then((a) => resolve(exitSucceed(a)), (e) => resolve(exitDie(e)));
7018
+ evaluate2(signal).then((a) => resolve(succeed(a)), (e) => resolve(die2(e)));
6945
7019
  } catch (e) {
6946
- resolve(exitDie(e));
7020
+ resolve(die2(e));
6947
7021
  }
6948
7022
  }) : async_((resolve) => {
6949
7023
  try {
6950
7024
  ;
6951
- evaluate2().then((a) => resolve(exitSucceed(a)), (e) => resolve(exitDie(e)));
7025
+ evaluate2().then((a) => resolve(succeed(a)), (e) => resolve(die2(e)));
6952
7026
  } catch (e) {
6953
- resolve(exitDie(e));
7027
+ resolve(die2(e));
6954
7028
  }
6955
7029
  });
6956
7030
  var provideService = /* @__PURE__ */ dual(3, (self, tag2, service2) => contextWithEffect((env) => provideContext(self, add4(env, tag2, service2))));
@@ -6975,7 +7049,7 @@ var tryPromise = (arg) => {
6975
7049
  if (evaluate2.length >= 1) {
6976
7050
  return async_((resolve, signal) => {
6977
7051
  try {
6978
- evaluate2(signal).then((a) => resolve(exitSucceed(a)), (e) => resolve(fail13(e)));
7052
+ evaluate2(signal).then((a) => resolve(succeed(a)), (e) => resolve(fail13(e)));
6979
7053
  } catch (e) {
6980
7054
  resolve(fail13(e));
6981
7055
  }
@@ -6983,7 +7057,7 @@ var tryPromise = (arg) => {
6983
7057
  }
6984
7058
  return async_((resolve) => {
6985
7059
  try {
6986
- evaluate2().then((a) => resolve(exitSucceed(a)), (e) => resolve(fail13(e)));
7060
+ evaluate2().then((a) => resolve(succeed(a)), (e) => resolve(fail13(e)));
6987
7061
  } catch (e) {
6988
7062
  resolve(fail13(e));
6989
7063
  }
@@ -7025,7 +7099,7 @@ var unsafeMakeSpan = (fiber, name, options3) => {
7025
7099
  const annotationsFromEnv = get9(fiberRefs3, currentTracerSpanAnnotations);
7026
7100
  const linksFromEnv = get9(fiberRefs3, currentTracerSpanLinks);
7027
7101
  const links = linksFromEnv._tag === "Some" ? options3.links !== void 0 ? [...toReadonlyArray(linksFromEnv.value), ...options3.links ?? []] : toReadonlyArray(linksFromEnv.value) : options3.links ?? empty();
7028
- span2 = tracer2.span(name, parent, options3.context ?? empty8(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal");
7102
+ span2 = tracer2.span(name, parent, options3.context ?? empty8(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal", options3);
7029
7103
  if (annotationsFromEnv._tag === "Some") {
7030
7104
  forEach3(annotationsFromEnv.value, (value2, key) => span2.attribute(key, value2));
7031
7105
  }
@@ -7059,22 +7133,21 @@ var useSpan = (name, ...args2) => {
7059
7133
  };
7060
7134
  var withParentSpan = /* @__PURE__ */ dual(2, (self, span2) => provideService(self, spanTag, span2));
7061
7135
 
7062
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Exit.js
7136
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Exit.js
7063
7137
  var isFailure = exitIsFailure;
7064
7138
  var isSuccess = exitIsSuccess;
7065
- var isInterrupted2 = exitIsInterrupted;
7066
7139
  var all2 = exitCollectAll;
7067
7140
  var die3 = exitDie;
7068
7141
  var fail3 = exitFail;
7069
- var failCause4 = exitFailCause;
7142
+ var failCause3 = exitFailCause;
7070
7143
  var map13 = exitMap;
7071
7144
  var match9 = exitMatch;
7072
- var succeed4 = exitSucceed;
7145
+ var succeed3 = exitSucceed;
7073
7146
  var void_3 = exitVoid;
7074
7147
  var zip3 = exitZip;
7075
7148
  var zipRight2 = exitZipRight;
7076
7149
 
7077
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberMessage.js
7150
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberMessage.js
7078
7151
  var OP_INTERRUPT_SIGNAL = "InterruptSignal";
7079
7152
  var OP_STATEFUL = "Stateful";
7080
7153
  var OP_RESUME = "Resume";
@@ -7095,7 +7168,7 @@ var yieldNow3 = () => ({
7095
7168
  _tag: OP_YIELD_NOW
7096
7169
  });
7097
7170
 
7098
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberScope.js
7171
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberScope.js
7099
7172
  var FiberScopeSymbolKey = "effect/FiberScope";
7100
7173
  var FiberScopeTypeId = /* @__PURE__ */ Symbol.for(FiberScopeSymbolKey);
7101
7174
  var Global = class {
@@ -7131,7 +7204,7 @@ var unsafeMake5 = (fiber) => {
7131
7204
  };
7132
7205
  var globalScope = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberScope/Global"), () => new Global());
7133
7206
 
7134
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiber.js
7207
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiber.js
7135
7208
  var FiberSymbolKey = "effect/Fiber";
7136
7209
  var FiberTypeId = /* @__PURE__ */ Symbol.for(FiberSymbolKey);
7137
7210
  var fiberVariance2 = {
@@ -7142,14 +7215,14 @@ var fiberVariance2 = {
7142
7215
  };
7143
7216
  var RuntimeFiberSymbolKey = "effect/Fiber";
7144
7217
  var RuntimeFiberTypeId = /* @__PURE__ */ Symbol.for(RuntimeFiberSymbolKey);
7145
- var _await2 = (self) => self.await;
7218
+ var _await = (self) => self.await;
7146
7219
  var inheritAll = (self) => self.inheritAll;
7147
7220
  var join2 = (self) => zipLeft(flatten3(self.await), self.inheritAll);
7148
7221
  ({
7149
7222
  ...CommitPrototype});
7150
7223
  var currentFiberURI = "effect/FiberCurrent";
7151
7224
 
7152
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/logger.js
7225
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/logger.js
7153
7226
  var LoggerSymbolKey = "effect/Logger";
7154
7227
  var LoggerTypeId = /* @__PURE__ */ Symbol.for(LoggerSymbolKey);
7155
7228
  var loggerVariance = {
@@ -7176,9 +7249,9 @@ var format3 = (quoteValue, whitespace) => ({
7176
7249
  spans
7177
7250
  }) => {
7178
7251
  const formatValue = (value2) => value2.match(textOnly) ? value2 : quoteValue(value2);
7179
- const format6 = (label, value2) => `${formatLabel(label)}=${formatValue(value2)}`;
7180
- const append5 = (label, value2) => " " + format6(label, value2);
7181
- let out = format6("timestamp", date.toISOString());
7252
+ const format5 = (label, value2) => `${formatLabel(label)}=${formatValue(value2)}`;
7253
+ const append5 = (label, value2) => " " + format5(label, value2);
7254
+ let out = format5("timestamp", date.toISOString());
7182
7255
  out += append5("level", logLevel.label);
7183
7256
  out += append5("fiber", threadName(fiberId2));
7184
7257
  const messages = ensure(message);
@@ -7271,7 +7344,6 @@ var prettyLogger = (options3) => {
7271
7344
  });
7272
7345
  };
7273
7346
  var prettyLoggerTty = (options3) => {
7274
- const processIsBun = typeof process === "object" && "isBun" in process && process.isBun === true;
7275
7347
  const color = options3.colors ? withColor : withColorNoop;
7276
7348
  return makeLogger(({
7277
7349
  annotations: annotations2,
@@ -7305,7 +7377,7 @@ var prettyLoggerTty = (options3) => {
7305
7377
  }
7306
7378
  }
7307
7379
  log2(firstLine);
7308
- if (!processIsBun) console2.group();
7380
+ console2.group();
7309
7381
  if (!isEmpty3(cause2)) {
7310
7382
  log2(pretty(cause2, {
7311
7383
  renderErrorCause: true
@@ -7321,7 +7393,7 @@ var prettyLoggerTty = (options3) => {
7321
7393
  log2(color(`${key}:`, colors.bold, colors.white), redact(value2));
7322
7394
  }
7323
7395
  }
7324
- if (!processIsBun) console2.groupEnd();
7396
+ console2.groupEnd();
7325
7397
  });
7326
7398
  };
7327
7399
  var prettyLoggerBrowser = (options3) => {
@@ -7393,7 +7465,7 @@ var prettyLoggerBrowser = (options3) => {
7393
7465
  };
7394
7466
  var prettyLoggerDefault = /* @__PURE__ */ globalValue("effect/Logger/prettyLoggerDefault", () => prettyLogger());
7395
7467
 
7396
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/boundaries.js
7468
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/boundaries.js
7397
7469
  var MetricBoundariesSymbolKey = "effect/MetricBoundaries";
7398
7470
  var MetricBoundariesTypeId = /* @__PURE__ */ Symbol.for(MetricBoundariesSymbolKey);
7399
7471
  var MetricBoundariesImpl = class {
@@ -7421,7 +7493,7 @@ var fromIterable7 = (iterable) => {
7421
7493
  };
7422
7494
  var exponential = (options3) => pipe(makeBy(options3.count - 1, (i) => options3.start * Math.pow(options3.factor, i)), unsafeFromArray, fromIterable7);
7423
7495
 
7424
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/keyType.js
7496
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/keyType.js
7425
7497
  var MetricKeyTypeSymbolKey = "effect/MetricKeyType";
7426
7498
  var MetricKeyTypeTypeId = /* @__PURE__ */ Symbol.for(MetricKeyTypeSymbolKey);
7427
7499
  var CounterKeyTypeSymbolKey = "effect/MetricKeyType/Counter";
@@ -7490,7 +7562,7 @@ var isGaugeKey = (u) => hasProperty(u, GaugeKeyTypeTypeId);
7490
7562
  var isHistogramKey = (u) => hasProperty(u, HistogramKeyTypeTypeId);
7491
7563
  var isSummaryKey = (u) => hasProperty(u, SummaryKeyTypeTypeId);
7492
7564
 
7493
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/key.js
7565
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/key.js
7494
7566
  var MetricKeySymbolKey = "effect/MetricKey";
7495
7567
  var MetricKeyTypeId = /* @__PURE__ */ Symbol.for(MetricKeySymbolKey);
7496
7568
  var metricKeyVariance = {
@@ -7527,7 +7599,7 @@ var counter2 = (name, options3) => new MetricKeyImpl(name, counter(options3), fr
7527
7599
  var histogram2 = (name, boundaries, description) => new MetricKeyImpl(name, histogram(boundaries), fromNullable(description));
7528
7600
  var taggedWithLabels = /* @__PURE__ */ dual(2, (self, extraTags) => extraTags.length === 0 ? self : new MetricKeyImpl(self.name, self.keyType, self.description, union(self.tags, extraTags)));
7529
7601
 
7530
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/MutableHashMap.js
7602
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/MutableHashMap.js
7531
7603
  var TypeId11 = /* @__PURE__ */ Symbol.for("effect/MutableHashMap");
7532
7604
  var MutableHashMapProto = {
7533
7605
  [TypeId11]: TypeId11,
@@ -7654,7 +7726,7 @@ var removeFromBucket = (self, bucket, key) => {
7654
7726
  }
7655
7727
  };
7656
7728
 
7657
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/state.js
7729
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/state.js
7658
7730
  var MetricStateSymbolKey = "effect/MetricState";
7659
7731
  var MetricStateTypeId = /* @__PURE__ */ Symbol.for(MetricStateSymbolKey);
7660
7732
  var CounterStateSymbolKey = "effect/MetricState/Counter";
@@ -7789,7 +7861,7 @@ var isGaugeState = (u) => hasProperty(u, GaugeStateTypeId);
7789
7861
  var isHistogramState = (u) => hasProperty(u, HistogramStateTypeId);
7790
7862
  var isSummaryState = (u) => hasProperty(u, SummaryStateTypeId);
7791
7863
 
7792
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/hook.js
7864
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/hook.js
7793
7865
  var MetricHookSymbolKey = "effect/MetricHook";
7794
7866
  var MetricHookTypeId = /* @__PURE__ */ Symbol.for(MetricHookSymbolKey);
7795
7867
  var metricHookVariance = {
@@ -7798,7 +7870,7 @@ var metricHookVariance = {
7798
7870
  /* c8 ignore next */
7799
7871
  _Out: (_) => _
7800
7872
  };
7801
- var make29 = (options3) => ({
7873
+ var make28 = (options3) => ({
7802
7874
  [MetricHookTypeId]: metricHookVariance,
7803
7875
  pipe() {
7804
7876
  return pipeArguments(this, arguments);
@@ -7814,7 +7886,7 @@ var counter4 = (key) => {
7814
7886
  sum3 = sum3 + value2;
7815
7887
  }
7816
7888
  };
7817
- return make29({
7889
+ return make28({
7818
7890
  get: () => counter3(sum3),
7819
7891
  update: update5,
7820
7892
  modify: update5
@@ -7829,7 +7901,7 @@ var frequency3 = (key) => {
7829
7901
  const slotCount = values3.get(word) ?? 0;
7830
7902
  values3.set(word, slotCount + 1);
7831
7903
  };
7832
- return make29({
7904
+ return make28({
7833
7905
  get: () => frequency2(values3),
7834
7906
  update: update5,
7835
7907
  modify: update5
@@ -7837,7 +7909,7 @@ var frequency3 = (key) => {
7837
7909
  };
7838
7910
  var gauge3 = (_key, startAt) => {
7839
7911
  let value2 = startAt;
7840
- return make29({
7912
+ return make28({
7841
7913
  get: () => gauge2(value2),
7842
7914
  update: (v) => {
7843
7915
  value2 = v;
@@ -7851,7 +7923,7 @@ var histogram4 = (key) => {
7851
7923
  const bounds = key.keyType.boundaries.values;
7852
7924
  const size12 = bounds.length;
7853
7925
  const values3 = new Uint32Array(size12 + 1);
7854
- const boundaries = new Float32Array(size12);
7926
+ const boundaries = new Float64Array(size12);
7855
7927
  let count2 = 0;
7856
7928
  let sum3 = 0;
7857
7929
  let min3 = Number.MAX_VALUE;
@@ -7899,7 +7971,7 @@ var histogram4 = (key) => {
7899
7971
  }
7900
7972
  return builder;
7901
7973
  };
7902
- return make29({
7974
+ return make28({
7903
7975
  get: () => histogram3({
7904
7976
  buckets: getBuckets(),
7905
7977
  count: count2,
@@ -7952,7 +8024,7 @@ var summary3 = (key) => {
7952
8024
  count2 = count2 + 1;
7953
8025
  sum3 = sum3 + value2;
7954
8026
  };
7955
- return make29({
8027
+ return make28({
7956
8028
  get: () => summary2({
7957
8029
  error,
7958
8030
  quantiles: snapshot(Date.now()),
@@ -8084,7 +8156,7 @@ var resolveQuantile = (error, sampleCount, current, consumed, quantile, rest) =>
8084
8156
  throw new Error("BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues");
8085
8157
  };
8086
8158
 
8087
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/pair.js
8159
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/pair.js
8088
8160
  var MetricPairSymbolKey = "effect/MetricPair";
8089
8161
  var MetricPairTypeId = /* @__PURE__ */ Symbol.for(MetricPairSymbolKey);
8090
8162
  var metricPairVariance = {
@@ -8102,7 +8174,7 @@ var unsafeMake6 = (metricKey, metricState) => {
8102
8174
  };
8103
8175
  };
8104
8176
 
8105
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/registry.js
8177
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/registry.js
8106
8178
  var MetricRegistrySymbolKey = "effect/MetricRegistry";
8107
8179
  var MetricRegistryTypeId = /* @__PURE__ */ Symbol.for(MetricRegistrySymbolKey);
8108
8180
  var MetricRegistryImpl = class {
@@ -8194,11 +8266,11 @@ var MetricRegistryImpl = class {
8194
8266
  return value2;
8195
8267
  }
8196
8268
  };
8197
- var make30 = () => {
8269
+ var make29 = () => {
8198
8270
  return new MetricRegistryImpl();
8199
8271
  };
8200
8272
 
8201
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric.js
8273
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric.js
8202
8274
  var MetricSymbolKey = "effect/Metric";
8203
8275
  var MetricTypeId = /* @__PURE__ */ Symbol.for(MetricSymbolKey);
8204
8276
  var metricVariance = {
@@ -8209,8 +8281,8 @@ var metricVariance = {
8209
8281
  /* c8 ignore next */
8210
8282
  _Out: (_) => _
8211
8283
  };
8212
- var globalMetricRegistry = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Metric/globalMetricRegistry"), () => make30());
8213
- var make31 = function(keyType, unsafeUpdate, unsafeValue, unsafeModify) {
8284
+ var globalMetricRegistry = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Metric/globalMetricRegistry"), () => make29());
8285
+ var make30 = function(keyType, unsafeUpdate, unsafeValue, unsafeModify) {
8214
8286
  const metric = Object.assign((effect3) => tap(effect3, (a) => update4(metric, a)), {
8215
8287
  [MetricTypeId]: metricVariance,
8216
8288
  keyType,
@@ -8247,12 +8319,12 @@ var fromMetricKey = (key) => {
8247
8319
  hookCache.set(extraTags, hook2);
8248
8320
  return hook2;
8249
8321
  };
8250
- return make31(key.keyType, (input, extraTags) => hook(extraTags).update(input), (extraTags) => hook(extraTags).get(), (input, extraTags) => hook(extraTags).modify(input));
8322
+ return make30(key.keyType, (input, extraTags) => hook(extraTags).update(input), (extraTags) => hook(extraTags).get(), (input, extraTags) => hook(extraTags).modify(input));
8251
8323
  };
8252
8324
  var histogram5 = (name, boundaries, description) => fromMetricKey(histogram2(name, boundaries, description));
8253
- var tagged = /* @__PURE__ */ dual(3, (self, key, value2) => taggedWithLabels2(self, [make28(key, value2)]));
8325
+ var tagged = /* @__PURE__ */ dual(3, (self, key, value2) => taggedWithLabels2(self, [make27(key, value2)]));
8254
8326
  var taggedWithLabels2 = /* @__PURE__ */ dual(2, (self, extraTags) => {
8255
- return make31(self.keyType, (input, extraTags1) => self.unsafeUpdate(input, union(extraTags, extraTags1)), (extraTags1) => self.unsafeValue(union(extraTags, extraTags1)), (input, extraTags1) => self.unsafeModify(input, union(extraTags, extraTags1)));
8327
+ return make30(self.keyType, (input, extraTags1) => self.unsafeUpdate(input, union(extraTags, extraTags1)), (extraTags1) => self.unsafeValue(union(extraTags, extraTags1)), (input, extraTags1) => self.unsafeModify(input, union(extraTags, extraTags1)));
8256
8328
  });
8257
8329
  var update4 = /* @__PURE__ */ dual(2, (self, input) => fiberRefGetWith(currentMetricLabels, (tags) => sync(() => self.unsafeUpdate(input, tags))));
8258
8330
  ({
@@ -8267,7 +8339,7 @@ var complete = /* @__PURE__ */ dual(2, (self, result) => fiberRefGetWith(current
8267
8339
  }
8268
8340
  })));
8269
8341
 
8270
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/supervisor.js
8342
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/supervisor.js
8271
8343
  var SupervisorSymbolKey = "effect/Supervisor";
8272
8344
  var SupervisorTypeId = /* @__PURE__ */ Symbol.for(SupervisorSymbolKey);
8273
8345
  var supervisorVariance = {
@@ -8381,10 +8453,10 @@ var fromEffect = (effect3) => {
8381
8453
  };
8382
8454
  var none7 = /* @__PURE__ */ globalValue("effect/Supervisor/none", () => fromEffect(void_));
8383
8455
 
8384
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Differ.js
8385
- var make33 = make14;
8456
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Differ.js
8457
+ var make32 = make14;
8386
8458
 
8387
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/supervisor/patch.js
8459
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/supervisor/patch.js
8388
8460
  var OP_EMPTY3 = "Empty";
8389
8461
  var OP_ADD_SUPERVISOR = "AddSupervisor";
8390
8462
  var OP_REMOVE_SUPERVISOR = "RemoveSupervisor";
@@ -8468,14 +8540,14 @@ var diff7 = (oldValue, newValue) => {
8468
8540
  })));
8469
8541
  return combine8(added, removed);
8470
8542
  };
8471
- var differ2 = /* @__PURE__ */ make33({
8543
+ var differ2 = /* @__PURE__ */ make32({
8472
8544
  empty: empty22,
8473
8545
  patch: patch8,
8474
8546
  combine: combine8,
8475
8547
  diff: diff7
8476
8548
  });
8477
8549
 
8478
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberRuntime.js
8550
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberRuntime.js
8479
8551
  var fiberStarted = /* @__PURE__ */ counter5("effect_fiber_started", {
8480
8552
  incremental: true
8481
8553
  });
@@ -8635,7 +8707,7 @@ var FiberRuntime = class extends Class2 {
8635
8707
  */
8636
8708
  get runtimeFlags() {
8637
8709
  return this.ask((state, status2) => {
8638
- if (isDone3(status2)) {
8710
+ if (isDone2(status2)) {
8639
8711
  return state.currentRuntimeFlags;
8640
8712
  }
8641
8713
  return status2.runtimeFlags;
@@ -9564,7 +9636,7 @@ var tracerLogger = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effec
9564
9636
  renderErrorCause: true
9565
9637
  });
9566
9638
  }
9567
- span2.value.event(toStringUnknown(Array.isArray(message) ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
9639
+ span2.value.event(toStringUnknown(Array.isArray(message) && message.length === 1 ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
9568
9640
  }));
9569
9641
  var currentLoggers = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLoggers"), () => fiberRefUnsafeMakeHashSet(make7(defaultLogger, tracerLogger)));
9570
9642
  var annotateLogsScoped = function() {
@@ -10125,20 +10197,20 @@ var invokeWithInterrupt = (self, entries2, onInterrupt3) => fiberIdWith((id2) =>
10125
10197
  return forEachSequentialDiscard(residual, (entry) => complete(entry.request, exitInterrupt(id2)));
10126
10198
  })));
10127
10199
 
10128
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Cause.js
10200
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Cause.js
10129
10201
  var fail4 = fail;
10130
10202
  var die4 = die;
10131
10203
  var interrupt3 = interrupt;
10132
10204
  var isFailType2 = isFailType;
10133
10205
  var isDieType2 = isDieType;
10134
- var isInterrupted3 = isInterrupted;
10206
+ var isInterrupted2 = isInterrupted;
10135
10207
  var interruptors2 = interruptors;
10136
10208
  var failureOrCause2 = failureOrCause;
10137
10209
  var map14 = map9;
10138
10210
  var squash = causeSquash;
10139
10211
  var pretty2 = pretty;
10140
10212
 
10141
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schedule/interval.js
10213
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schedule/interval.js
10142
10214
  var IntervalSymbolKey = "effect/ScheduleInterval";
10143
10215
  var IntervalTypeId = /* @__PURE__ */ Symbol.for(IntervalSymbolKey);
10144
10216
  var empty24 = {
@@ -10146,7 +10218,7 @@ var empty24 = {
10146
10218
  startMillis: 0,
10147
10219
  endMillis: 0
10148
10220
  };
10149
- var make34 = (startMillis, endMillis) => {
10221
+ var make33 = (startMillis, endMillis) => {
10150
10222
  if (startMillis > endMillis) {
10151
10223
  return empty24;
10152
10224
  }
@@ -10171,23 +10243,23 @@ var isEmpty6 = (self) => {
10171
10243
  var intersect = /* @__PURE__ */ dual(2, (self, that) => {
10172
10244
  const start3 = Math.max(self.startMillis, that.startMillis);
10173
10245
  const end3 = Math.min(self.endMillis, that.endMillis);
10174
- return make34(start3, end3);
10246
+ return make33(start3, end3);
10175
10247
  });
10176
10248
  var after = (startMilliseconds) => {
10177
- return make34(startMilliseconds, Number.POSITIVE_INFINITY);
10249
+ return make33(startMilliseconds, Number.POSITIVE_INFINITY);
10178
10250
  };
10179
10251
 
10180
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/ScheduleInterval.js
10252
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/ScheduleInterval.js
10181
10253
  var empty25 = empty24;
10182
10254
  var lessThan3 = lessThan2;
10183
10255
  var isEmpty7 = isEmpty6;
10184
10256
  var intersect2 = intersect;
10185
10257
  var after2 = after;
10186
10258
 
10187
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schedule/intervals.js
10259
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schedule/intervals.js
10188
10260
  var IntervalsSymbolKey = "effect/ScheduleIntervals";
10189
10261
  var IntervalsTypeId = /* @__PURE__ */ Symbol.for(IntervalsSymbolKey);
10190
- var make36 = (intervals) => {
10262
+ var make35 = (intervals) => {
10191
10263
  return {
10192
10264
  [IntervalsTypeId]: IntervalsTypeId,
10193
10265
  intervals
@@ -10208,7 +10280,7 @@ var intersectLoop = (_left, _right, _acc) => {
10208
10280
  }
10209
10281
  acc = intervals;
10210
10282
  }
10211
- return make36(reverse2(acc));
10283
+ return make35(reverse2(acc));
10212
10284
  };
10213
10285
  var start = (self) => {
10214
10286
  return pipe(self.intervals, head2, getOrElse(() => empty25)).startMillis;
@@ -10221,15 +10293,15 @@ var isNonEmpty3 = (self) => {
10221
10293
  return isNonEmpty(self.intervals);
10222
10294
  };
10223
10295
 
10224
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/ScheduleIntervals.js
10225
- var make37 = make36;
10296
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/ScheduleIntervals.js
10297
+ var make36 = make35;
10226
10298
  var intersect4 = intersect3;
10227
10299
  var start2 = start;
10228
10300
  var end2 = end;
10229
10301
  var lessThan5 = lessThan4;
10230
10302
  var isNonEmpty4 = isNonEmpty3;
10231
10303
 
10232
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schedule/decision.js
10304
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schedule/decision.js
10233
10305
  var OP_CONTINUE = "Continue";
10234
10306
  var OP_DONE2 = "Done";
10235
10307
  var _continue = (intervals) => {
@@ -10241,7 +10313,7 @@ var _continue = (intervals) => {
10241
10313
  var continueWith = (interval) => {
10242
10314
  return {
10243
10315
  _tag: OP_CONTINUE,
10244
- intervals: make37(of2(interval))
10316
+ intervals: make36(of2(interval))
10245
10317
  };
10246
10318
  };
10247
10319
  var done4 = {
@@ -10250,26 +10322,26 @@ var done4 = {
10250
10322
  var isContinue = (self) => {
10251
10323
  return self._tag === OP_CONTINUE;
10252
10324
  };
10253
- var isDone4 = (self) => {
10325
+ var isDone3 = (self) => {
10254
10326
  return self._tag === OP_DONE2;
10255
10327
  };
10256
10328
 
10257
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/ScheduleDecision.js
10329
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/ScheduleDecision.js
10258
10330
  var _continue2 = _continue;
10259
10331
  var continueWith2 = continueWith;
10260
10332
  var done5 = done4;
10261
10333
  var isContinue2 = isContinue;
10262
- var isDone5 = isDone4;
10334
+ var isDone4 = isDone3;
10263
10335
 
10264
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Scope.js
10336
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Scope.js
10265
10337
  var addFinalizer2 = scopeAddFinalizer;
10266
10338
  var addFinalizerExit = scopeAddFinalizerExit;
10267
10339
  var close = scopeClose;
10268
10340
  var extend2 = scopeExtend;
10269
10341
  var fork = scopeFork;
10270
- var make38 = scopeMake;
10342
+ var make37 = scopeMake;
10271
10343
 
10272
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/effect/circular.js
10344
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/effect/circular.js
10273
10345
  var Semaphore = class {
10274
10346
  permits;
10275
10347
  waiters = /* @__PURE__ */ new Set();
@@ -10298,7 +10370,7 @@ var Semaphore = class {
10298
10370
  this.taken += n;
10299
10371
  return resume2(succeed(n));
10300
10372
  });
10301
- updateTaken = (f) => withFiberRuntime((fiber) => {
10373
+ updateTakenUnsafe(fiber, f) {
10302
10374
  this.taken = f(this.taken);
10303
10375
  if (this.waiters.size > 0) {
10304
10376
  fiber.getFiberRef(currentScheduler).scheduleTask(() => {
@@ -10311,7 +10383,17 @@ var Semaphore = class {
10311
10383
  }, fiber.getFiberRef(currentSchedulingPriority));
10312
10384
  }
10313
10385
  return succeed(this.free);
10314
- });
10386
+ }
10387
+ updateTaken(f) {
10388
+ return withFiberRuntime((fiber) => this.updateTakenUnsafe(fiber, f));
10389
+ }
10390
+ resize = (permits) => asVoid(withFiberRuntime((fiber) => {
10391
+ this.permits = permits;
10392
+ if (this.free < 0) {
10393
+ return void_;
10394
+ }
10395
+ return this.updateTakenUnsafe(fiber, (taken) => taken);
10396
+ }));
10315
10397
  release = (n) => this.updateTaken((taken) => taken - n);
10316
10398
  releaseAll = /* @__PURE__ */ this.updateTaken((_) => 0);
10317
10399
  withPermits = (n) => (self) => uninterruptibleMask((restore) => flatMap7(restore(this.take(n)), (permits) => ensuring(restore(self), this.release(permits))));
@@ -10445,25 +10527,24 @@ var unsafeMakeSynchronized = (value2) => {
10445
10527
  return new SynchronizedImpl(ref, sem.withPermits(1));
10446
10528
  };
10447
10529
 
10448
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/managedRuntime/circular.js
10530
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/managedRuntime/circular.js
10449
10531
  var TypeId13 = /* @__PURE__ */ Symbol.for("effect/ManagedRuntime");
10450
10532
 
10451
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/layer.js
10533
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/layer.js
10452
10534
  var OP_FOLD = "Fold";
10453
10535
  var OP_FRESH = "Fresh";
10454
10536
  var OP_FROM_EFFECT = "FromEffect";
10455
10537
  var OP_SCOPED = "Scoped";
10456
- var OP_SUSPEND = "Suspend";
10457
- var OP_ZIP_WITH2 = "ZipWith";
10538
+ var OP_MERGE_ALL = "MergeAll";
10458
10539
 
10459
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Fiber.js
10460
- var _await3 = _await2;
10540
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Fiber.js
10541
+ var _await2 = _await;
10461
10542
  var inheritAll2 = inheritAll;
10462
10543
  var interrupt4 = interruptFiber;
10463
10544
  var interruptAs = interruptAsFiber;
10464
10545
  var join3 = join2;
10465
10546
 
10466
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/runtime.js
10547
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/runtime.js
10467
10548
  var makeDual = (f) => function() {
10468
10549
  if (arguments.length === 1) {
10469
10550
  const runtime4 = arguments[0];
@@ -10644,10 +10725,10 @@ var RuntimeImpl = class {
10644
10725
  return pipeArguments(this, arguments);
10645
10726
  }
10646
10727
  };
10647
- var make39 = (options3) => new RuntimeImpl(options3.context, options3.runtimeFlags, options3.fiberRefs);
10728
+ var make38 = (options3) => new RuntimeImpl(options3.context, options3.runtimeFlags, options3.fiberRefs);
10648
10729
  var runtime2 = () => withFiberRuntime((state, status2) => succeed(new RuntimeImpl(state.getFiberRef(currentContext), status2.runtimeFlags, state.getFiberRefs())));
10649
10730
  var defaultRuntimeFlags = /* @__PURE__ */ make16(Interruption, CooperativeYielding, RuntimeMetrics);
10650
- var defaultRuntime = /* @__PURE__ */ make39({
10731
+ var defaultRuntime = /* @__PURE__ */ make38({
10651
10732
  context: /* @__PURE__ */ empty8(),
10652
10733
  runtimeFlags: defaultRuntimeFlags,
10653
10734
  fiberRefs: /* @__PURE__ */ empty17()
@@ -10656,10 +10737,10 @@ var unsafeForkEffect = /* @__PURE__ */ unsafeFork3(defaultRuntime);
10656
10737
  var unsafeRunPromiseEffect = /* @__PURE__ */ unsafeRunPromise(defaultRuntime);
10657
10738
  var unsafeRunSyncEffect = /* @__PURE__ */ unsafeRunSync(defaultRuntime);
10658
10739
 
10659
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/synchronizedRef.js
10740
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/synchronizedRef.js
10660
10741
  var modifyEffect = /* @__PURE__ */ dual(2, (self, f) => self.modifyEffect(f));
10661
10742
 
10662
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/layer.js
10743
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/layer.js
10663
10744
  var LayerSymbolKey = "effect/Layer";
10664
10745
  var LayerTypeId = /* @__PURE__ */ Symbol.for(LayerSymbolKey);
10665
10746
  var layerVariance = {
@@ -10708,7 +10789,7 @@ var MemoMapImpl = class {
10708
10789
  })));
10709
10790
  return succeed([cached4, map22]);
10710
10791
  }
10711
- return pipe(make24(0), flatMap7((observers) => pipe(deferredMake(), flatMap7((deferred) => pipe(make24(() => void_), map11((finalizerRef) => {
10792
+ return pipe(make23(0), flatMap7((observers) => pipe(deferredMake(), flatMap7((deferred) => pipe(make23(() => void_), map11((finalizerRef) => {
10712
10793
  const resource = uninterruptibleMask((restore) => pipe(scopeMake(), flatMap7((innerScope) => pipe(restore(flatMap7(makeBuilder(layer3, innerScope, true), (f) => diffFiberRefs(f(this)))), exit, flatMap7((exit4) => {
10713
10794
  switch (exit4._tag) {
10714
10795
  case OP_FAILURE: {
@@ -10766,14 +10847,30 @@ var makeBuilder = (self, scope4, inMemoMap = false) => {
10766
10847
  return sync(() => (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, scope4), zipWith2(memoMap.getOrElseMemoize(op.second, scope4), op.zipK)));
10767
10848
  }
10768
10849
  case "ZipWith": {
10769
- return sync(() => (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, scope4), zipWithOptions(memoMap.getOrElseMemoize(op.second, scope4), op.zipK, {
10770
- concurrent: true
10771
- })));
10850
+ return gen(function* () {
10851
+ const parallelScope = yield* scopeFork(scope4, parallel2);
10852
+ const firstScope = yield* scopeFork(parallelScope, sequential2);
10853
+ const secondScope = yield* scopeFork(parallelScope, sequential2);
10854
+ return (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, firstScope), zipWithOptions(memoMap.getOrElseMemoize(op.second, secondScope), op.zipK, {
10855
+ concurrent: true
10856
+ }));
10857
+ });
10858
+ }
10859
+ case "MergeAll": {
10860
+ const layers = op.layers;
10861
+ return map11(scopeFork(scope4, parallel2), (parallelScope) => (memoMap) => {
10862
+ const contexts = new Array(layers.length);
10863
+ return map11(forEachConcurrentDiscard(layers, fnUntraced(function* (layer3, i) {
10864
+ const scope5 = yield* scopeFork(parallelScope, sequential2);
10865
+ const context5 = yield* memoMap.getOrElseMemoize(layer3, scope5);
10866
+ contexts[i] = context5;
10867
+ }), false, false), () => mergeAll2(...contexts));
10868
+ });
10772
10869
  }
10773
10870
  }
10774
10871
  };
10775
- var fail6 = (error) => failCause6(fail4(error));
10776
- var failCause6 = (cause2) => fromEffectContext(failCause(cause2));
10872
+ var fail6 = (error) => failCause5(fail4(error));
10873
+ var failCause5 = (cause2) => fromEffectContext(failCause(cause2));
10777
10874
  var flatMap9 = /* @__PURE__ */ dual(2, (self, f) => match11(self, {
10778
10875
  onFailure: fail6,
10779
10876
  onSuccess: f
@@ -10812,19 +10909,17 @@ var match11 = /* @__PURE__ */ dual(2, (self, {
10812
10909
  return onFailure(failureOrCause3.left);
10813
10910
  }
10814
10911
  case "Right": {
10815
- return failCause6(failureOrCause3.right);
10912
+ return failCause5(failureOrCause3.right);
10816
10913
  }
10817
10914
  }
10818
10915
  },
10819
10916
  onSuccess
10820
10917
  }));
10821
- var merge5 = /* @__PURE__ */ dual(2, (self, that) => zipWith3(self, that, (a, b) => merge3(a, b)));
10822
- var mergeAll2 = (...layers) => {
10823
- let final = layers[0];
10824
- for (let i = 1; i < layers.length; i++) {
10825
- final = merge5(final, layers[i]);
10826
- }
10827
- return final;
10918
+ var mergeAll3 = (...layers) => {
10919
+ const mergeAll8 = Object.create(proto3);
10920
+ mergeAll8._op_layer = OP_MERGE_ALL;
10921
+ mergeAll8.layers = layers;
10922
+ return mergeAll8;
10828
10923
  };
10829
10924
  var scopedDiscard = (effect3) => scopedContext(pipe(effect3, as(empty8())));
10830
10925
  var scopedContext = (effect3) => {
@@ -10837,20 +10932,6 @@ var succeedContext = (context5) => {
10837
10932
  return fromEffectContext(succeed(context5));
10838
10933
  };
10839
10934
  var empty27 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty8());
10840
- var suspend3 = (evaluate2) => {
10841
- const suspend8 = Object.create(proto3);
10842
- suspend8._op_layer = OP_SUSPEND;
10843
- suspend8.evaluate = evaluate2;
10844
- return suspend8;
10845
- };
10846
- var zipWith3 = /* @__PURE__ */ dual(3, (self, that, f) => suspend3(() => {
10847
- const zipWith7 = Object.create(proto3);
10848
- zipWith7._op_layer = OP_ZIP_WITH2;
10849
- zipWith7.first = self;
10850
- zipWith7.second = that;
10851
- zipWith7.zipK = f;
10852
- return zipWith7;
10853
- }));
10854
10935
  var provideSomeLayer = /* @__PURE__ */ dual(2, (self, layer3) => scopedWith((scope4) => flatMap7(buildWithScope(layer3, scope4), (context5) => provideSomeContext(self, context5))));
10855
10936
  var provideSomeRuntime = /* @__PURE__ */ dual(2, (self, rt) => {
10856
10937
  const patchRefs = diff6(defaultRuntime.fiberRefs, rt.fiberRefs);
@@ -10874,7 +10955,7 @@ var provideSomeRuntime = /* @__PURE__ */ dual(2, (self, rt) => {
10874
10955
  });
10875
10956
  var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
10876
10957
  if (Array.isArray(source)) {
10877
- return provideSomeLayer(self, mergeAll2(...source));
10958
+ return provideSomeLayer(self, mergeAll3(...source));
10878
10959
  } else if (isLayer(source)) {
10879
10960
  return provideSomeLayer(self, source);
10880
10961
  } else if (isContext2(source)) {
@@ -10886,7 +10967,7 @@ var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
10886
10967
  }
10887
10968
  });
10888
10969
 
10889
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Data.js
10970
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Data.js
10890
10971
  var struct2 = struct;
10891
10972
  var _case = () => (args2) => args2 === void 0 ? Object.create(StructuralPrototype) : struct2(args2);
10892
10973
  var Class3 = Structural;
@@ -10926,7 +11007,7 @@ var TaggedError = (tag2) => {
10926
11007
  return O.BaseEffectError;
10927
11008
  };
10928
11009
 
10929
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schedule.js
11010
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schedule.js
10930
11011
  var ScheduleSymbolKey = "effect/Schedule";
10931
11012
  var ScheduleTypeId = /* @__PURE__ */ Symbol.for(ScheduleSymbolKey);
10932
11013
  var isSchedule = (u) => hasProperty(u, ScheduleTypeId);
@@ -11019,7 +11100,7 @@ var ScheduleDriverImpl = class {
11019
11100
  next(input) {
11020
11101
  return pipe(map11(get10(this.ref), (tuple) => tuple[1]), flatMap7((state) => pipe(currentTimeMillis2, flatMap7((now) => pipe(suspend(() => this.schedule.step(now, input, state)), flatMap7(([state2, out, decision]) => {
11021
11102
  const setState = set4(this.ref, [some2(out), state2]);
11022
- if (isDone5(decision)) {
11103
+ if (isDone4(decision)) {
11023
11104
  return setState.pipe(zipRight(fail2(none2())));
11024
11105
  }
11025
11106
  const millis2 = start2(decision.intervals) - now;
@@ -11034,12 +11115,12 @@ var ScheduleDriverImpl = class {
11034
11115
  var makeWithState = (initial, step3) => new ScheduleImpl(initial, step3);
11035
11116
  var check = /* @__PURE__ */ dual(2, (self, test) => checkEffect(self, (input, out) => sync(() => test(input, out))));
11036
11117
  var checkEffect = /* @__PURE__ */ dual(2, (self, test) => makeWithState(self.initial, (now, input, state) => flatMap7(self.step(now, input, state), ([state2, out, decision]) => {
11037
- if (isDone5(decision)) {
11118
+ if (isDone4(decision)) {
11038
11119
  return succeed([state2, out, done5]);
11039
11120
  }
11040
11121
  return map11(test(input, out), (cont) => cont ? [state2, out, decision] : [state2, out, done5]);
11041
11122
  })));
11042
- var driver = (self) => pipe(make24([none2(), self.initial]), map11((ref) => new ScheduleDriverImpl(self, ref)));
11123
+ var driver = (self) => pipe(make23([none2(), self.initial]), map11((ref) => new ScheduleDriverImpl(self, ref)));
11043
11124
  var intersect5 = /* @__PURE__ */ dual(2, (self, that) => intersectWith(self, that, intersect4));
11044
11125
  var intersectWith = /* @__PURE__ */ dual(3, (self, that, f) => makeWithState([self.initial, that.initial], (now, input, state) => pipe(zipWith2(self.step(now, input, state[0]), that.step(now, input, state[1]), (a, b) => [a, b]), flatMap7(([[lState, out, lDecision], [rState, out2, rDecision]]) => {
11045
11126
  if (isContinue2(lDecision) && isContinue2(rDecision)) {
@@ -11054,14 +11135,14 @@ var intersectWithLoop = (self, that, input, lState, out, lInterval, rState, out2
11054
11135
  }
11055
11136
  if (pipe(lInterval, lessThan5(rInterval))) {
11056
11137
  return flatMap7(self.step(end2(lInterval), input, lState), ([lState2, out3, decision]) => {
11057
- if (isDone5(decision)) {
11138
+ if (isDone4(decision)) {
11058
11139
  return succeed([[lState2, rState], [out3, out2], done5]);
11059
11140
  }
11060
11141
  return intersectWithLoop(self, that, input, lState2, out3, decision.intervals, rState, out2, rInterval, f);
11061
11142
  });
11062
11143
  }
11063
11144
  return flatMap7(that.step(end2(rInterval), input, rState), ([rState2, out22, decision]) => {
11064
- if (isDone5(decision)) {
11145
+ if (isDone4(decision)) {
11065
11146
  return succeed([[lState, rState2], [out, out22], done5]);
11066
11147
  }
11067
11148
  return intersectWithLoop(self, that, input, lState, out, lInterval, rState2, out22, decision.intervals, f);
@@ -11127,7 +11208,14 @@ var repeatOrElseEffectLoop = (self, driver2, orElse9, value2) => matchEffect(dri
11127
11208
  });
11128
11209
  var forever2 = /* @__PURE__ */ unfold2(0, (n) => n + 1);
11129
11210
 
11130
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/MutableList.js
11211
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Deferred.js
11212
+ var make39 = deferredMake;
11213
+ var _await3 = deferredAwait;
11214
+ var failCause6 = deferredFailCause;
11215
+ var isDone5 = deferredIsDone;
11216
+ var succeed5 = deferredSucceed;
11217
+
11218
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/MutableList.js
11131
11219
  var TypeId14 = /* @__PURE__ */ Symbol.for("effect/MutableList");
11132
11220
  var MutableListProto = {
11133
11221
  [TypeId14]: TypeId14,
@@ -11238,7 +11326,7 @@ var remove6 = (self, node) => {
11238
11326
  }
11239
11327
  };
11240
11328
 
11241
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/MutableQueue.js
11329
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/MutableQueue.js
11242
11330
  var TypeId15 = /* @__PURE__ */ Symbol.for("effect/MutableQueue");
11243
11331
  var EmptyMutableQueue = /* @__PURE__ */ Symbol.for("effect/mutable/MutableQueue/Empty");
11244
11332
  var MutableQueueProto = {
@@ -11315,7 +11403,7 @@ var pollUpTo = /* @__PURE__ */ dual(2, (self, n) => {
11315
11403
  return reverse2(result);
11316
11404
  });
11317
11405
 
11318
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Effect.js
11406
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Effect.js
11319
11407
  var isEffect2 = isEffect;
11320
11408
  var cached3 = memoize;
11321
11409
  var all4 = all3;
@@ -11327,7 +11415,7 @@ var dieMessage2 = dieMessage;
11327
11415
  var gen2 = gen;
11328
11416
  var promise2 = promise;
11329
11417
  var succeed7 = succeed;
11330
- var suspend4 = suspend;
11418
+ var suspend3 = suspend;
11331
11419
  var sync4 = sync;
11332
11420
  var _void = void_;
11333
11421
  var catchAll2 = catchAll;
@@ -11385,27 +11473,27 @@ var runSync = unsafeRunSyncEffect;
11385
11473
  var zip5 = zipOptions;
11386
11474
  var zipLeft2 = zipLeftOptions;
11387
11475
  var zipRight3 = zipRightOptions;
11388
- var zipWith4 = zipWithOptions;
11476
+ var zipWith3 = zipWithOptions;
11389
11477
  var useSpan2 = useSpan;
11390
11478
  var withParentSpan2 = withParentSpan;
11391
11479
 
11392
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/layer/circular.js
11480
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/layer/circular.js
11393
11481
  var withMinimumLogLevel = /* @__PURE__ */ dual(2, (self, level) => fiberRefLocally(currentMinimumLogLevel, level)(self));
11394
11482
  var addLogger = (logger) => scopedDiscard(fiberRefLocallyScopedWith(currentLoggers, add2(logger)));
11395
11483
  var removeLogger = (logger) => scopedDiscard(fiberRefLocallyScopedWith(currentLoggers, remove4(logger)));
11396
11484
  var replaceLogger = /* @__PURE__ */ dual(2, (self, that) => flatMap9(removeLogger(self), () => addLogger(that)));
11397
11485
 
11398
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Logger.js
11486
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Logger.js
11399
11487
  var replace = replaceLogger;
11400
11488
  var withMinimumLogLevel2 = withMinimumLogLevel;
11401
11489
  var pretty4 = /* @__PURE__ */ replace(defaultLogger, prettyLogger2);
11402
11490
 
11403
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Layer.js
11491
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Layer.js
11404
11492
  var effect = fromEffect3;
11405
11493
  var empty29 = empty27;
11406
- var mergeAll4 = mergeAll2;
11494
+ var mergeAll5 = mergeAll3;
11407
11495
 
11408
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/redacted.js
11496
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/redacted.js
11409
11497
  var RedactedSymbolKey = "effect/Redacted";
11410
11498
  var redactedRegistry = /* @__PURE__ */ globalValue("effect/Redacted/redactedRegistry", () => /* @__PURE__ */ new WeakMap());
11411
11499
  var RedactedTypeId = /* @__PURE__ */ Symbol.for(RedactedSymbolKey);
@@ -11439,7 +11527,7 @@ var make41 = (value2) => {
11439
11527
  return redacted;
11440
11528
  };
11441
11529
 
11442
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schema/util.js
11530
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schema/util.js
11443
11531
  var getKeysForIndexSignature = (input, parameter) => {
11444
11532
  switch (parameter._tag) {
11445
11533
  case "StringKeyword":
@@ -11451,7 +11539,6 @@ var getKeysForIndexSignature = (input, parameter) => {
11451
11539
  return getKeysForIndexSignature(input, parameter.from);
11452
11540
  }
11453
11541
  };
11454
- var ownKeys = (o) => Object.keys(o).concat(Object.getOwnPropertySymbols(o));
11455
11542
  var memoizeThunk = (f) => {
11456
11543
  let done7 = false;
11457
11544
  let a;
@@ -11464,53 +11551,12 @@ var memoizeThunk = (f) => {
11464
11551
  return a;
11465
11552
  };
11466
11553
  };
11467
- var formatDate = (date) => {
11468
- try {
11469
- return date.toISOString();
11470
- } catch {
11471
- return String(date);
11472
- }
11473
- };
11474
- var formatUnknown = (u, checkCircular = true) => {
11475
- if (Array.isArray(u)) {
11476
- return `[${u.map((i) => formatUnknown(i, checkCircular)).join(",")}]`;
11477
- }
11478
- if (isDate(u)) {
11479
- return formatDate(u);
11480
- }
11481
- if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString) {
11482
- return u["toString"]();
11483
- }
11484
- if (isString(u)) {
11485
- return JSON.stringify(u);
11486
- }
11487
- if (isNumber(u) || u == null || isBoolean(u) || isSymbol(u)) {
11488
- return String(u);
11489
- }
11490
- if (isBigInt(u)) {
11491
- return String(u) + "n";
11492
- }
11493
- if (isIterable(u)) {
11494
- return `${u.constructor.name}(${formatUnknown(Array.from(u), checkCircular)})`;
11495
- }
11496
- try {
11497
- if (checkCircular) {
11498
- JSON.stringify(u);
11499
- }
11500
- const pojo = `{${ownKeys(u).map((k) => `${isString(k) ? JSON.stringify(k) : String(k)}:${formatUnknown(u[k], false)}`).join(",")}}`;
11501
- const name = u.constructor.name;
11502
- return u.constructor !== Object.prototype.constructor ? `${name}(${pojo})` : pojo;
11503
- } catch {
11504
- return "<circular structure>";
11505
- }
11506
- };
11507
- var formatPropertyKey = (name) => typeof name === "string" ? JSON.stringify(name) : String(name);
11508
11554
  var isNonEmpty5 = (x) => Array.isArray(x);
11509
11555
  var isSingle = (x) => !Array.isArray(x);
11510
11556
  var formatPathKey = (key) => `[${formatPropertyKey(key)}]`;
11511
11557
  var formatPath = (path) => isNonEmpty5(path) ? path.map(formatPathKey).join("") : formatPathKey(path);
11512
11558
 
11513
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schema/errors.js
11559
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schema/errors.js
11514
11560
  var getErrorMessage = (reason, details, path, ast) => {
11515
11561
  let out = reason;
11516
11562
  if (path && isNonEmptyReadonlyArray(path)) {
@@ -11536,11 +11582,11 @@ var getASTRequiredElementFollowinAnOptionalElementErrorMessage = /* @__PURE__ */
11536
11582
  var getASTDuplicatePropertySignatureTransformationErrorMessage = (key) => getErrorMessage("Duplicate property signature transformation", `Duplicate key ${formatUnknown(key)}`);
11537
11583
  var getASTDuplicatePropertySignatureErrorMessage = (key) => getErrorMessage("Duplicate property signature", `Duplicate key ${formatUnknown(key)}`);
11538
11584
 
11539
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schema/schemaId.js
11585
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schema/schemaId.js
11540
11586
  var DateFromSelfSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/DateFromSelf");
11541
11587
  var BetweenSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/Between");
11542
11588
 
11543
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/SchemaAST.js
11589
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/SchemaAST.js
11544
11590
  var BrandAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Brand");
11545
11591
  var SchemaIdAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/SchemaId");
11546
11592
  var MessageAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Message");
@@ -12459,8 +12505,12 @@ var TypeLiteralTransformation = class {
12459
12505
  var isTypeLiteralTransformation = /* @__PURE__ */ createTransformationGuard("TypeLiteralTransformation");
12460
12506
  var annotations = (ast, overrides) => {
12461
12507
  const d = Object.getOwnPropertyDescriptors(ast);
12508
+ const base = {
12509
+ ...ast.annotations
12510
+ };
12511
+ delete base[IdentifierAnnotationId];
12462
12512
  const value2 = {
12463
- ...ast.annotations,
12513
+ ...base,
12464
12514
  ...overrides
12465
12515
  };
12466
12516
  const surrogate = getSurrogateAnnotation(ast);
@@ -12470,7 +12520,7 @@ var annotations = (ast, overrides) => {
12470
12520
  d.annotations.value = value2;
12471
12521
  return Object.create(Object.getPrototypeOf(ast), d);
12472
12522
  };
12473
- var STRING_KEYWORD_PATTERN = "[\\s\\S]*";
12523
+ var STRING_KEYWORD_PATTERN = "[\\s\\S]*?";
12474
12524
  var NUMBER_KEYWORD_PATTERN = "[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?";
12475
12525
  var getTemplateLiteralSpanTypePattern = (type, capture2) => {
12476
12526
  switch (type._tag) {
@@ -12616,12 +12666,6 @@ var typeAST = (ast) => {
12616
12666
  }
12617
12667
  return ast;
12618
12668
  };
12619
- var createJSONIdentifierAnnotation = (annotated) => match2(getJSONIdentifier(annotated), {
12620
- onNone: () => void 0,
12621
- onSome: (identifier2) => ({
12622
- [JSONIdentifierAnnotationId]: identifier2
12623
- })
12624
- });
12625
12669
  function changeMap(as6, f) {
12626
12670
  let changed = false;
12627
12671
  const out = allocate(as6.length);
@@ -12639,7 +12683,7 @@ var encodedAST_ = (ast, isBound) => {
12639
12683
  switch (ast._tag) {
12640
12684
  case "Declaration": {
12641
12685
  const typeParameters = changeMap(ast.typeParameters, (ast2) => encodedAST_(ast2));
12642
- return typeParameters === ast.typeParameters ? ast : new Declaration(typeParameters, ast.decodeUnknown, ast.encodeUnknown, ast.annotations);
12686
+ return typeParameters === ast.typeParameters ? ast : new Declaration(typeParameters, ast.decodeUnknown, ast.encodeUnknown);
12643
12687
  }
12644
12688
  case "TupleType": {
12645
12689
  const elements = changeMap(ast.elements, (e) => {
@@ -12648,7 +12692,7 @@ var encodedAST_ = (ast, isBound) => {
12648
12692
  });
12649
12693
  const restASTs = getRestASTs(ast.rest);
12650
12694
  const rest = changeMap(restASTs, (ast2) => encodedAST_(ast2));
12651
- return elements === ast.elements && rest === restASTs ? ast : new TupleType(elements, rest.map((ast2) => new Type(ast2)), ast.isReadonly, createJSONIdentifierAnnotation(ast));
12695
+ return elements === ast.elements && rest === restASTs ? ast : new TupleType(elements, rest.map((ast2) => new Type(ast2)), ast.isReadonly);
12652
12696
  }
12653
12697
  case "TypeLiteral": {
12654
12698
  const propertySignatures = changeMap(ast.propertySignatures, (ps) => {
@@ -12659,23 +12703,31 @@ var encodedAST_ = (ast, isBound) => {
12659
12703
  const type = encodedAST_(is2.type);
12660
12704
  return type === is2.type ? is2 : new IndexSignature(is2.parameter, type, is2.isReadonly);
12661
12705
  });
12662
- return propertySignatures === ast.propertySignatures && indexSignatures === ast.indexSignatures ? ast : new TypeLiteral(propertySignatures, indexSignatures, createJSONIdentifierAnnotation(ast));
12706
+ return propertySignatures === ast.propertySignatures && indexSignatures === ast.indexSignatures ? ast : new TypeLiteral(propertySignatures, indexSignatures);
12663
12707
  }
12664
12708
  case "Union": {
12665
12709
  const types = changeMap(ast.types, (ast2) => encodedAST_(ast2));
12666
- return types === ast.types ? ast : Union.make(types, createJSONIdentifierAnnotation(ast));
12710
+ return types === ast.types ? ast : Union.make(types);
12711
+ }
12712
+ case "Suspend": {
12713
+ let borrowedAnnotations = void 0;
12714
+ const identifier2 = getJSONIdentifier(ast);
12715
+ if (isSome2(identifier2)) {
12716
+ const suffix = "";
12717
+ borrowedAnnotations = {
12718
+ [JSONIdentifierAnnotationId]: `${identifier2.value}Encoded${suffix}`
12719
+ };
12720
+ }
12721
+ return new Suspend(() => encodedAST_(ast.f()), borrowedAnnotations);
12667
12722
  }
12668
- case "Suspend":
12669
- return new Suspend(() => encodedAST_(ast.f()), createJSONIdentifierAnnotation(ast));
12670
12723
  case "Refinement": {
12671
12724
  const from = encodedAST_(ast.from);
12672
- const identifier2 = createJSONIdentifierAnnotation(ast);
12673
- return identifier2 ? annotations(from, identifier2) : from;
12674
- }
12675
- case "Transformation": {
12676
- const identifier2 = createJSONIdentifierAnnotation(ast);
12677
- return encodedAST_(identifier2 ? annotations(ast.from, identifier2) : ast.from);
12725
+ {
12726
+ return from;
12727
+ }
12678
12728
  }
12729
+ case "Transformation":
12730
+ return encodedAST_(ast.from);
12679
12731
  }
12680
12732
  return ast;
12681
12733
  };
@@ -12707,7 +12759,7 @@ function getBrands(ast) {
12707
12759
  var getOrElseExpected = (ast) => getTitleAnnotation(ast).pipe(orElse(() => getDescriptionAnnotation(ast)), orElse(() => getAutoTitleAnnotation(ast)), map2((s) => s + getBrands(ast)));
12708
12760
  var getExpected = (ast) => orElse(getIdentifierAnnotation(ast), () => getOrElseExpected(ast));
12709
12761
 
12710
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/ParseResult.js
12762
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/ParseResult.js
12711
12763
  var Pointer = class {
12712
12764
  path;
12713
12765
  actual;
@@ -13181,7 +13233,7 @@ var go = (ast, isDecoding) => {
13181
13233
  }) => isNonEmptyArray2(es2) ? left2(new Composite2(ast, input, sortByIndex(es2), sortByIndex(output2))) : right2(sortByIndex(output2));
13182
13234
  if (queue && queue.length > 0) {
13183
13235
  const cqueue = queue;
13184
- return suspend4(() => {
13236
+ return suspend3(() => {
13185
13237
  const state = {
13186
13238
  es: copy(es),
13187
13239
  output: copy(output)
@@ -13228,7 +13280,7 @@ var go = (ast, isDecoding) => {
13228
13280
  const output = {};
13229
13281
  let inputKeys;
13230
13282
  if (onExcessPropertyError || onExcessPropertyPreserve) {
13231
- inputKeys = ownKeys(input);
13283
+ inputKeys = Reflect.ownKeys(input);
13232
13284
  for (const key of inputKeys) {
13233
13285
  const te = expected(key, options3);
13234
13286
  if (isEither3(te) && isLeft2(te)) {
@@ -13362,7 +13414,7 @@ var go = (ast, isDecoding) => {
13362
13414
  return left2(new Composite2(ast, input, sortByIndex(es2), output2));
13363
13415
  }
13364
13416
  if (options3?.propertyOrder === "original") {
13365
- const keys6 = inputKeys || ownKeys(input);
13417
+ const keys6 = inputKeys || Reflect.ownKeys(input);
13366
13418
  for (const name of expectedKeys) {
13367
13419
  if (keys6.indexOf(name) === -1) {
13368
13420
  keys6.push(name);
@@ -13380,7 +13432,7 @@ var go = (ast, isDecoding) => {
13380
13432
  };
13381
13433
  if (queue && queue.length > 0) {
13382
13434
  const cqueue = queue;
13383
- return suspend4(() => {
13435
+ return suspend3(() => {
13384
13436
  const state = {
13385
13437
  es: copy(es),
13386
13438
  output: Object.assign({}, output)
@@ -13400,8 +13452,8 @@ var go = (ast, isDecoding) => {
13400
13452
  }
13401
13453
  case "Union": {
13402
13454
  const searchTree = getSearchTree(ast.types, isDecoding);
13403
- const ownKeys2 = ownKeys(searchTree.keys);
13404
- const ownKeysLen = ownKeys2.length;
13455
+ const ownKeys = Reflect.ownKeys(searchTree.keys);
13456
+ const ownKeysLen = ownKeys.length;
13405
13457
  const astTypesLen = ast.types.length;
13406
13458
  const map22 = /* @__PURE__ */ new Map();
13407
13459
  for (let i = 0; i < astTypesLen; i++) {
@@ -13416,7 +13468,7 @@ var go = (ast, isDecoding) => {
13416
13468
  if (ownKeysLen > 0) {
13417
13469
  if (isRecordOrArray(input)) {
13418
13470
  for (let i = 0; i < ownKeysLen; i++) {
13419
- const name = ownKeys2[i];
13471
+ const name = ownKeys[i];
13420
13472
  const buckets = searchTree.keys[name].buckets;
13421
13473
  if (Object.prototype.hasOwnProperty.call(input, name)) {
13422
13474
  const literal = String(input[name]);
@@ -13464,7 +13516,7 @@ var go = (ast, isDecoding) => {
13464
13516
  if (!queue) {
13465
13517
  queue = [];
13466
13518
  }
13467
- queue.push((state) => suspend4(() => {
13519
+ queue.push((state) => suspend3(() => {
13468
13520
  if ("finalResult" in state) {
13469
13521
  return _void;
13470
13522
  } else {
@@ -13486,7 +13538,7 @@ var go = (ast, isDecoding) => {
13486
13538
  );
13487
13539
  if (queue && queue.length > 0) {
13488
13540
  const cqueue = queue;
13489
- return suspend4(() => {
13541
+ return suspend3(() => {
13490
13542
  const state = {
13491
13543
  es: copy(es)
13492
13544
  };
@@ -13506,7 +13558,7 @@ var go = (ast, isDecoding) => {
13506
13558
  };
13507
13559
  }
13508
13560
  case "Suspend": {
13509
- const get19 = memoizeThunk(() => goMemo(annotations(ast.f(), ast.annotations), isDecoding));
13561
+ const get19 = memoizeThunk(() => goMemo(ast.f(), isDecoding));
13510
13562
  return (a, options3) => get19()(a, options3);
13511
13563
  }
13512
13564
  }
@@ -13795,10 +13847,10 @@ var formatTree = (issue) => {
13795
13847
  }
13796
13848
  };
13797
13849
 
13798
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Redacted.js
13850
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Redacted.js
13799
13851
  var make42 = make41;
13800
13852
 
13801
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Struct.js
13853
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Struct.js
13802
13854
  var pick2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) => {
13803
13855
  const out = {};
13804
13856
  for (const k of keys6) {
@@ -13818,7 +13870,7 @@ var omit2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) =>
13818
13870
  return out;
13819
13871
  });
13820
13872
 
13821
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Schema.js
13873
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Schema.js
13822
13874
  var TypeId16 = /* @__PURE__ */ Symbol.for("effect/Schema");
13823
13875
  function make43(ast) {
13824
13876
  return class SchemaClass {
@@ -13884,7 +13936,6 @@ var toASTAnnotations = (annotations2) => {
13884
13936
  return out;
13885
13937
  };
13886
13938
  var mergeSchemaAnnotations = (ast, annotations2) => annotations(ast, toASTAnnotations(annotations2));
13887
- var format4 = (schema) => String(schema.ast);
13888
13939
  var typeSchema = (schema) => make43(typeAST(schema.ast));
13889
13940
  var decodeUnknown2 = (schema, options3) => {
13890
13941
  const decodeUnknown3 = decodeUnknown(schema, options3);
@@ -14146,13 +14197,14 @@ var optionalPropertySignatureAST = (self, options3) => {
14146
14197
  }), defaultValue).ast;
14147
14198
  }
14148
14199
  } else if (asOption) {
14200
+ const to = OptionFromSelf_(typeSchema(self));
14149
14201
  if (isNullable2) {
14150
- return optionalToRequired(NullOr(self), OptionFromSelf(typeSchema(self)), {
14202
+ return optionalToRequired(NullOr(self), to, {
14151
14203
  decode: filter(isNotNull),
14152
14204
  encode: asOptionEncode
14153
14205
  }).ast;
14154
14206
  } else {
14155
- return optionalToRequired(self, OptionFromSelf(typeSchema(self)), {
14207
+ return optionalToRequired(self, to, {
14156
14208
  decode: identity,
14157
14209
  encode: identity
14158
14210
  }).ast;
@@ -14187,13 +14239,14 @@ var optionalPropertySignatureAST = (self, options3) => {
14187
14239
  }), defaultValue).ast;
14188
14240
  }
14189
14241
  } else if (asOption) {
14242
+ const to = OptionFromSelf_(typeSchema(self));
14190
14243
  if (isNullable2) {
14191
- return optionalToRequired(NullishOr(self), OptionFromSelf(typeSchema(self)), {
14244
+ return optionalToRequired(NullishOr(self), to, {
14192
14245
  decode: filter((a) => a != null),
14193
14246
  encode: asOptionEncode
14194
14247
  }).ast;
14195
14248
  } else {
14196
- return optionalToRequired(UndefinedOr(self), OptionFromSelf(typeSchema(self)), {
14249
+ return optionalToRequired(UndefinedOr(self), to, {
14197
14250
  decode: filter(isNotUndefined),
14198
14251
  encode: asOptionEncode
14199
14252
  }).ast;
@@ -14219,14 +14272,14 @@ var optionalWith = /* @__PURE__ */ dual((args2) => isSchema(args2[0]), (self, op
14219
14272
  });
14220
14273
  var preserveMissingMessageAnnotation = /* @__PURE__ */ pickAnnotations([MissingMessageAnnotationId]);
14221
14274
  var getDefaultTypeLiteralAST = (fields, records) => {
14222
- const ownKeys2 = ownKeys(fields);
14275
+ const ownKeys = Reflect.ownKeys(fields);
14223
14276
  const pss = [];
14224
- if (ownKeys2.length > 0) {
14277
+ if (ownKeys.length > 0) {
14225
14278
  const from = [];
14226
14279
  const to = [];
14227
14280
  const transformations = [];
14228
- for (let i = 0; i < ownKeys2.length; i++) {
14229
- const key = ownKeys2[i];
14281
+ for (let i = 0; i < ownKeys.length; i++) {
14282
+ const key = ownKeys[i];
14230
14283
  const field = fields[key];
14231
14284
  if (isPropertySignature(field)) {
14232
14285
  const ast = field.ast;
@@ -14290,8 +14343,8 @@ var getDefaultTypeLiteralAST = (fields, records) => {
14290
14343
  return new TypeLiteral(pss, iss);
14291
14344
  };
14292
14345
  var lazilyMergeDefaults = (fields, out) => {
14293
- const ownKeys2 = ownKeys(fields);
14294
- for (const key of ownKeys2) {
14346
+ const ownKeys = Reflect.ownKeys(fields);
14347
+ for (const key of ownKeys) {
14295
14348
  const field = fields[key];
14296
14349
  if (out[key] === void 0 && isPropertySignature(field)) {
14297
14350
  const ast = field.ast;
@@ -14609,12 +14662,11 @@ var optionPretty = (value2) => match2({
14609
14662
  onSome: (a) => `some(${value2(a)})`
14610
14663
  });
14611
14664
  var optionParse = (decodeUnknown3) => (u, options3, ast) => isOption2(u) ? isNone2(u) ? succeed8(none2()) : toComposite(decodeUnknown3(u.value, options3), some2, ast, u) : fail8(new Type2(ast, u));
14612
- var OptionFromSelf = (value2) => {
14665
+ var OptionFromSelf_ = (value2) => {
14613
14666
  return declare([value2], {
14614
14667
  decode: (value3) => optionParse(decodeUnknown(value3)),
14615
14668
  encode: (value3) => optionParse(encodeUnknown(value3))
14616
14669
  }, {
14617
- description: `Option<${format4(value2)}>`,
14618
14670
  pretty: optionPretty,
14619
14671
  arbitrary: optionArbitrary,
14620
14672
  equivalence: getEquivalence
@@ -14624,26 +14676,14 @@ function getDisableValidationMakeOption(options3) {
14624
14676
  return isBoolean(options3) ? options3 : options3?.disableValidation ?? false;
14625
14677
  }
14626
14678
 
14627
- // ../../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.36.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js
14628
- var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
14629
- var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
14630
- var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
14631
- var ATTR_HTTP_RESPONSE_STATUS_CODE = "http.response.status_code";
14632
- var ATTR_SERVER_ADDRESS = "server.address";
14633
- var ATTR_SERVER_PORT = "server.port";
14634
- var ATTR_URL_FULL = "url.full";
14635
- var ATTR_URL_PATH = "url.path";
14636
- var ATTR_URL_QUERY = "url.query";
14637
- var ATTR_URL_SCHEME = "url.scheme";
14638
-
14639
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberRef.js
14679
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/FiberRef.js
14640
14680
  var unsafeMake7 = fiberRefUnsafeMake;
14641
14681
  var get13 = fiberRefGet;
14642
14682
  var currentContext2 = currentContext;
14643
14683
  var currentMinimumLogLevel2 = currentMinimumLogLevel;
14644
14684
  var currentTracerEnabled2 = currentTracerEnabled;
14645
14685
 
14646
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/queue.js
14686
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/queue.js
14647
14687
  var EnqueueSymbolKey = "effect/QueueEnqueue";
14648
14688
  var EnqueueTypeId = /* @__PURE__ */ Symbol.for(EnqueueSymbolKey);
14649
14689
  var DequeueSymbolKey = "effect/QueueDequeue";
@@ -15002,7 +15042,7 @@ var unsafeCompleteTakers = (strategy, queue, takers) => {
15002
15042
  }
15003
15043
  };
15004
15044
 
15005
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Queue.js
15045
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Queue.js
15006
15046
  var bounded3 = bounded2;
15007
15047
  var unbounded3 = unbounded2;
15008
15048
  var size11 = size10;
@@ -15010,12 +15050,12 @@ var shutdown2 = shutdown;
15010
15050
  var offer3 = offer2;
15011
15051
  var take2 = take;
15012
15052
 
15013
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelChildExecutorDecision.js
15053
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelChildExecutorDecision.js
15014
15054
  var OP_CONTINUE2 = "Continue";
15015
15055
  var OP_CLOSE = "Close";
15016
15056
  var OP_YIELD2 = "Yield";
15017
15057
 
15018
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/childExecutorDecision.js
15058
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/childExecutorDecision.js
15019
15059
  var ChildExecutorDecisionSymbolKey = "effect/ChannelChildExecutorDecision";
15020
15060
  var ChildExecutorDecisionTypeId = /* @__PURE__ */ Symbol.for(ChildExecutorDecisionSymbolKey);
15021
15061
  var proto5 = {
@@ -15027,11 +15067,11 @@ var Continue = (_) => {
15027
15067
  return op;
15028
15068
  };
15029
15069
 
15030
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/continuation.js
15070
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/continuation.js
15031
15071
  var OP_CONTINUATION_K = "ContinuationK";
15032
15072
  var OP_CONTINUATION_FINALIZER = "ContinuationFinalizer";
15033
15073
 
15034
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/continuation.js
15074
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/continuation.js
15035
15075
  var ContinuationTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelContinuation");
15036
15076
  var continuationVariance = {
15037
15077
  /* c8 ignore next */
@@ -15075,11 +15115,11 @@ var ContinuationFinalizerImpl = class {
15075
15115
  }
15076
15116
  };
15077
15117
 
15078
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js
15118
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js
15079
15119
  var OP_PULL_AFTER_NEXT = "PullAfterNext";
15080
15120
  var OP_PULL_AFTER_ALL_ENQUEUED = "PullAfterAllEnqueued";
15081
15121
 
15082
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/upstreamPullStrategy.js
15122
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/upstreamPullStrategy.js
15083
15123
  var UpstreamPullStrategySymbolKey = "effect/ChannelUpstreamPullStrategy";
15084
15124
  var UpstreamPullStrategyTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullStrategySymbolKey);
15085
15125
  var upstreamPullStrategyVariance = {
@@ -15096,7 +15136,7 @@ var PullAfterNext = (emitSeparator) => {
15096
15136
  return op;
15097
15137
  };
15098
15138
 
15099
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channel.js
15139
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channel.js
15100
15140
  var OP_BRACKET_OUT = "BracketOut";
15101
15141
  var OP_BRIDGE = "Bridge";
15102
15142
  var OP_CONCAT_ALL = "ConcatAll";
@@ -15112,7 +15152,7 @@ var OP_SUCCEED = "Succeed";
15112
15152
  var OP_SUCCEED_NOW = "SucceedNow";
15113
15153
  var OP_SUSPEND2 = "Suspend";
15114
15154
 
15115
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/core-stream.js
15155
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/core-stream.js
15116
15156
  var ChannelSymbolKey = "effect/Channel";
15117
15157
  var ChannelTypeId2 = /* @__PURE__ */ Symbol.for(ChannelSymbolKey);
15118
15158
  var channelVariance2 = {
@@ -15251,13 +15291,13 @@ var write = (out) => {
15251
15291
  return op;
15252
15292
  };
15253
15293
 
15254
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelState.js
15294
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelState.js
15255
15295
  var OP_DONE3 = "Done";
15256
15296
  var OP_EMIT2 = "Emit";
15257
15297
  var OP_FROM_EFFECT3 = "FromEffect";
15258
15298
  var OP_READ2 = "Read";
15259
15299
 
15260
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/channelState.js
15300
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/channelState.js
15261
15301
  var ChannelStateTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelState");
15262
15302
  var channelStateVariance = {
15263
15303
  /* c8 ignore next */
@@ -15297,7 +15337,7 @@ var isFromEffect = (self) => self._tag === OP_FROM_EFFECT3;
15297
15337
  var effect2 = (self) => isFromEffect(self) ? self.effect : _void;
15298
15338
  var effectOrUndefinedIgnored = (self) => isFromEffect(self) ? ignore2(self.effect) : void 0;
15299
15339
 
15300
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/subexecutor.js
15340
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/subexecutor.js
15301
15341
  var OP_PULL_FROM_CHILD = "PullFromChild";
15302
15342
  var OP_PULL_FROM_UPSTREAM = "PullFromUpstream";
15303
15343
  var OP_DRAIN_CHILD_EXECUTORS = "DrainChildExecutors";
@@ -15316,7 +15356,7 @@ var PullFromChild = class {
15316
15356
  const fin1 = this.childExecutor.close(exit4);
15317
15357
  const fin2 = this.parentSubexecutor.close(exit4);
15318
15358
  if (fin1 !== void 0 && fin2 !== void 0) {
15319
- return zipWith4(exit3(fin1), exit3(fin2), (exit1, exit22) => pipe(exit1, zipRight2(exit22)));
15359
+ return zipWith3(exit3(fin1), exit3(fin2), (exit1, exit22) => pipe(exit1, zipRight2(exit22)));
15320
15360
  } else if (fin1 !== void 0) {
15321
15361
  return fin1;
15322
15362
  } else if (fin2 !== void 0) {
@@ -15354,7 +15394,7 @@ var PullFromUpstream = class _PullFromUpstream {
15354
15394
  const fins = [...this.activeChildExecutors.map((child) => child !== void 0 ? child.childExecutor.close(exit4) : void 0), fin1];
15355
15395
  const result = fins.reduce((acc, next) => {
15356
15396
  if (acc !== void 0 && next !== void 0) {
15357
- return zipWith4(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
15397
+ return zipWith3(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
15358
15398
  } else if (acc !== void 0) {
15359
15399
  return acc;
15360
15400
  } else if (next !== void 0) {
@@ -15392,7 +15432,7 @@ var DrainChildExecutors = class _DrainChildExecutors {
15392
15432
  const fins = [...this.activeChildExecutors.map((child) => child !== void 0 ? child.childExecutor.close(exit4) : void 0), fin1];
15393
15433
  const result = fins.reduce((acc, next) => {
15394
15434
  if (acc !== void 0 && next !== void 0) {
15395
- return zipWith4(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
15435
+ return zipWith3(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
15396
15436
  } else if (acc !== void 0) {
15397
15437
  return acc;
15398
15438
  } else if (next !== void 0) {
@@ -15424,11 +15464,11 @@ var Emit2 = class {
15424
15464
  }
15425
15465
  };
15426
15466
 
15427
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullRequest.js
15467
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullRequest.js
15428
15468
  var OP_PULLED = "Pulled";
15429
15469
  var OP_NO_UPSTREAM = "NoUpstream";
15430
15470
 
15431
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/upstreamPullRequest.js
15471
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/upstreamPullRequest.js
15432
15472
  var UpstreamPullRequestSymbolKey = "effect/ChannelUpstreamPullRequest";
15433
15473
  var UpstreamPullRequestTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullRequestSymbolKey);
15434
15474
  var upstreamPullRequestVariance = {
@@ -15451,7 +15491,7 @@ var NoUpstream = (activeDownstreamCount) => {
15451
15491
  return op;
15452
15492
  };
15453
15493
 
15454
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/channelExecutor.js
15494
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/channelExecutor.js
15455
15495
  var ChannelExecutor = class _ChannelExecutor {
15456
15496
  _activeSubexecutor = void 0;
15457
15497
  _cancelled = void 0;
@@ -15495,7 +15535,7 @@ var ChannelExecutor = class _ChannelExecutor {
15495
15535
  if (this._input !== void 0) {
15496
15536
  const inputExecutor = this._input;
15497
15537
  this._input = void 0;
15498
- const drainer = () => flatMap10(bridgeInput.awaitRead(), () => suspend4(() => {
15538
+ const drainer = () => flatMap10(bridgeInput.awaitRead(), () => suspend3(() => {
15499
15539
  const state = inputExecutor.run();
15500
15540
  switch (state._tag) {
15501
15541
  case OP_DONE3: {
@@ -15518,7 +15558,7 @@ var ChannelExecutor = class _ChannelExecutor {
15518
15558
  }
15519
15559
  }
15520
15560
  }));
15521
- result = fromEffect5(flatMap10(forkDaemon2(interruptible4(drainer())), (fiber) => sync4(() => this.addFinalizer((exit4) => flatMap10(interrupt4(fiber), () => suspend4(() => {
15561
+ result = fromEffect5(flatMap10(forkDaemon2(interruptible4(drainer())), (fiber) => sync4(() => this.addFinalizer((exit4) => flatMap10(interrupt4(fiber), () => suspend3(() => {
15522
15562
  const effect3 = this.restorePipe(exit4, inputExecutor);
15523
15563
  return effect3 !== void 0 ? effect3 : _void;
15524
15564
  }))))));
@@ -15701,12 +15741,12 @@ var ChannelExecutor = class _ChannelExecutor {
15701
15741
  map17(([[exit1, exit22], exit32]) => pipe(exit1, zipRight2(exit22), zipRight2(exit32))),
15702
15742
  uninterruptible2,
15703
15743
  // TODO: remove
15704
- flatMap10((exit5) => suspend4(() => exit5))
15744
+ flatMap10((exit5) => suspend3(() => exit5))
15705
15745
  );
15706
15746
  }
15707
15747
  doneSucceed(value2) {
15708
15748
  if (this._doneStack.length === 0) {
15709
- this._done = succeed4(value2);
15749
+ this._done = succeed3(value2);
15710
15750
  this._currentChannel = void 0;
15711
15751
  return Done2();
15712
15752
  }
@@ -15719,18 +15759,18 @@ var ChannelExecutor = class _ChannelExecutor {
15719
15759
  const finalizers = this.popNextFinalizers();
15720
15760
  if (this._doneStack.length === 0) {
15721
15761
  this._doneStack = finalizers.reverse();
15722
- this._done = succeed4(value2);
15762
+ this._done = succeed3(value2);
15723
15763
  this._currentChannel = void 0;
15724
15764
  return Done2();
15725
15765
  }
15726
- const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), succeed4(value2));
15766
+ const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), succeed3(value2));
15727
15767
  this.storeInProgressFinalizer(finalizerEffect);
15728
15768
  const effect3 = pipe(finalizerEffect, ensuring2(sync4(() => this.clearInProgressFinalizer())), uninterruptible2, flatMap10(() => sync4(() => this.doneSucceed(value2))));
15729
15769
  return fromEffect5(effect3);
15730
15770
  }
15731
15771
  doneHalt(cause2) {
15732
15772
  if (this._doneStack.length === 0) {
15733
- this._done = failCause4(cause2);
15773
+ this._done = failCause3(cause2);
15734
15774
  this._currentChannel = void 0;
15735
15775
  return Done2();
15736
15776
  }
@@ -15747,11 +15787,11 @@ var ChannelExecutor = class _ChannelExecutor {
15747
15787
  const finalizers = this.popNextFinalizers();
15748
15788
  if (this._doneStack.length === 0) {
15749
15789
  this._doneStack = finalizers.reverse();
15750
- this._done = failCause4(cause2);
15790
+ this._done = failCause3(cause2);
15751
15791
  this._currentChannel = void 0;
15752
15792
  return Done2();
15753
15793
  }
15754
- const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), failCause4(cause2));
15794
+ const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), failCause3(cause2));
15755
15795
  this.storeInProgressFinalizer(finalizerEffect);
15756
15796
  const effect3 = pipe(finalizerEffect, ensuring2(sync4(() => this.clearInProgressFinalizer())), uninterruptible2, flatMap10(() => sync4(() => this.doneHalt(cause2))));
15757
15797
  return fromEffect5(effect3);
@@ -15780,9 +15820,9 @@ var ChannelExecutor = class _ChannelExecutor {
15780
15820
  }
15781
15821
  return pipe(effect3, provide2(this._providedEnv));
15782
15822
  }
15783
- runEnsuring(ensuring5) {
15784
- this.addFinalizer(ensuring5.finalizer);
15785
- this._currentChannel = ensuring5.channel;
15823
+ runEnsuring(ensuring6) {
15824
+ this.addFinalizer(ensuring6.finalizer);
15825
+ this._currentChannel = ensuring6.channel;
15786
15826
  }
15787
15827
  addFinalizer(f) {
15788
15828
  this._doneStack.push(new ContinuationFinalizerImpl(f));
@@ -15876,20 +15916,20 @@ var ChannelExecutor = class _ChannelExecutor {
15876
15916
  switch (subexecutor._tag) {
15877
15917
  case OP_PULL_FROM_UPSTREAM: {
15878
15918
  const modifiedParent = new PullFromUpstream(subexecutor.upstreamExecutor, subexecutor.createChild, subexecutor.lastDone !== void 0 ? subexecutor.combineChildResults(subexecutor.lastDone, doneValue) : doneValue, subexecutor.activeChildExecutors, subexecutor.combineChildResults, subexecutor.combineWithChildResult, subexecutor.onPull, subexecutor.onEmit);
15879
- this._closeLastSubstream = childExecutor.close(succeed4(doneValue));
15919
+ this._closeLastSubstream = childExecutor.close(succeed3(doneValue));
15880
15920
  this.replaceSubexecutor(modifiedParent);
15881
15921
  break;
15882
15922
  }
15883
15923
  case OP_DRAIN_CHILD_EXECUTORS: {
15884
15924
  const modifiedParent = new DrainChildExecutors(subexecutor.upstreamExecutor, subexecutor.lastDone !== void 0 ? subexecutor.combineChildResults(subexecutor.lastDone, doneValue) : doneValue, subexecutor.activeChildExecutors, subexecutor.upstreamDone, subexecutor.combineChildResults, subexecutor.combineWithChildResult, subexecutor.onPull);
15885
- this._closeLastSubstream = childExecutor.close(succeed4(doneValue));
15925
+ this._closeLastSubstream = childExecutor.close(succeed3(doneValue));
15886
15926
  this.replaceSubexecutor(modifiedParent);
15887
15927
  break;
15888
15928
  }
15889
15929
  }
15890
15930
  }
15891
15931
  handleSubexecutorFailure(childExecutor, parentSubexecutor, cause2) {
15892
- return this.finishSubexecutorWithCloseEffect(failCause4(cause2), (exit4) => parentSubexecutor.close(exit4), (exit4) => childExecutor.close(exit4));
15932
+ return this.finishSubexecutorWithCloseEffect(failCause3(cause2), (exit4) => parentSubexecutor.close(exit4), (exit4) => childExecutor.close(exit4));
15893
15933
  }
15894
15934
  pullFromUpstream(subexecutor) {
15895
15935
  if (subexecutor.activeChildExecutors.length === 0) {
@@ -15976,7 +16016,7 @@ var ChannelExecutor = class _ChannelExecutor {
15976
16016
  };
15977
16017
  var ifNotNull = (effect3) => effect3 !== void 0 ? effect3 : _void;
15978
16018
  var runFinalizers = (finalizers, exit4) => {
15979
- return pipe(forEach8(finalizers, (fin) => exit3(fin(exit4))), map17((exits) => pipe(all2(exits), getOrElse(() => void_3))), flatMap10((exit5) => suspend4(() => exit5)));
16019
+ return pipe(forEach8(finalizers, (fin) => exit3(fin(exit4))), map17((exits) => pipe(all2(exits), getOrElse(() => void_3))), flatMap10((exit5) => suspend3(() => exit5)));
15980
16020
  };
15981
16021
  var readUpstream = (r, onSuccess, onFailure) => {
15982
16022
  const readStack = [r];
@@ -15991,7 +16031,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
15991
16031
  const emitEffect = current.onEmit(current.upstream.getEmit());
15992
16032
  if (readStack.length === 0) {
15993
16033
  if (emitEffect === void 0) {
15994
- return suspend4(onSuccess);
16034
+ return suspend3(onSuccess);
15995
16035
  }
15996
16036
  return pipe(emitEffect, matchCauseEffect3({
15997
16037
  onFailure,
@@ -15999,7 +16039,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
15999
16039
  }));
16000
16040
  }
16001
16041
  if (emitEffect === void 0) {
16002
- return suspend4(() => read());
16042
+ return suspend3(() => read());
16003
16043
  }
16004
16044
  return pipe(emitEffect, matchCauseEffect3({
16005
16045
  onFailure,
@@ -16010,7 +16050,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
16010
16050
  const doneEffect = current.onDone(current.upstream.getDone());
16011
16051
  if (readStack.length === 0) {
16012
16052
  if (doneEffect === void 0) {
16013
- return suspend4(onSuccess);
16053
+ return suspend3(onSuccess);
16014
16054
  }
16015
16055
  return pipe(doneEffect, matchCauseEffect3({
16016
16056
  onFailure,
@@ -16018,7 +16058,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
16018
16058
  }));
16019
16059
  }
16020
16060
  if (doneEffect === void 0) {
16021
- return suspend4(() => read());
16061
+ return suspend3(() => read());
16022
16062
  }
16023
16063
  return pipe(doneEffect, matchCauseEffect3({
16024
16064
  onFailure,
@@ -16027,8 +16067,8 @@ var readUpstream = (r, onSuccess, onFailure) => {
16027
16067
  }
16028
16068
  case OP_FROM_EFFECT3: {
16029
16069
  readStack.push(current);
16030
- return pipe(current.onEffect(state.effect), catchAllCause2((cause2) => suspend4(() => {
16031
- const doneEffect = current.onDone(failCause4(cause2));
16070
+ return pipe(current.onEffect(state.effect), catchAllCause2((cause2) => suspend3(() => {
16071
+ const doneEffect = current.onDone(failCause3(cause2));
16032
16072
  return doneEffect === void 0 ? _void : doneEffect;
16033
16073
  })), matchCauseEffect3({
16034
16074
  onFailure,
@@ -16038,24 +16078,24 @@ var readUpstream = (r, onSuccess, onFailure) => {
16038
16078
  case OP_READ2: {
16039
16079
  readStack.push(current);
16040
16080
  readStack.push(state);
16041
- return suspend4(() => read());
16081
+ return suspend3(() => read());
16042
16082
  }
16043
16083
  }
16044
16084
  };
16045
16085
  return read();
16046
16086
  };
16047
16087
  var runIn = /* @__PURE__ */ dual(2, (self, scope4) => {
16048
- const run3 = (channelDeferred, scopeDeferred, scope5) => acquireUseRelease2(sync4(() => new ChannelExecutor(self, void 0, identity)), (exec) => suspend4(() => runScopedInterpret(exec.run(), exec).pipe(intoDeferred2(channelDeferred), zipRight3(_await(channelDeferred)), zipLeft2(_await(scopeDeferred)))), (exec, exit4) => {
16088
+ const run3 = (channelDeferred, scopeDeferred, scope5) => acquireUseRelease2(sync4(() => new ChannelExecutor(self, void 0, identity)), (exec) => suspend3(() => runScopedInterpret(exec.run(), exec).pipe(intoDeferred2(channelDeferred), zipRight3(_await3(channelDeferred)), zipLeft2(_await3(scopeDeferred)))), (exec, exit4) => {
16049
16089
  const finalize = exec.close(exit4);
16050
16090
  if (finalize === void 0) {
16051
16091
  return _void;
16052
16092
  }
16053
16093
  return tapErrorCause2(finalize, (cause2) => addFinalizer2(scope5, failCause7(cause2)));
16054
16094
  });
16055
- return uninterruptibleMask3((restore) => all4([fork(scope4, sequential3), make23(), make23()]).pipe(flatMap10(([child, channelDeferred, scopeDeferred]) => restore(run3(channelDeferred, scopeDeferred, child)).pipe(forkIn2(scope4), flatMap10((fiber) => scope4.addFinalizer((exit4) => {
16095
+ return uninterruptibleMask3((restore) => all4([fork(scope4, sequential3), make39(), make39()]).pipe(flatMap10(([child, channelDeferred, scopeDeferred]) => restore(run3(channelDeferred, scopeDeferred, child)).pipe(forkIn2(scope4), flatMap10((fiber) => scope4.addFinalizer((exit4) => {
16056
16096
  const interruptors3 = isFailure(exit4) ? interruptors2(exit4.cause) : void 0;
16057
- return isDone(channelDeferred).pipe(flatMap10((isDone6) => isDone6 ? succeed2(scopeDeferred, void 0).pipe(zipRight3(_await3(fiber)), zipRight3(inheritAll2(fiber))) : succeed2(scopeDeferred, void 0).pipe(zipRight3(interruptors3 && size3(interruptors3) > 0 ? interruptAs(fiber, combineAll2(interruptors3)) : interrupt4(fiber)), zipRight3(inheritAll2(fiber)))));
16058
- }).pipe(zipRight3(restore(_await(channelDeferred)))))))));
16097
+ return isDone5(channelDeferred).pipe(flatMap10((isDone6) => isDone6 ? succeed5(scopeDeferred, void 0).pipe(zipRight3(_await2(fiber)), zipRight3(inheritAll2(fiber))) : succeed5(scopeDeferred, void 0).pipe(zipRight3(interruptors3 && size3(interruptors3) > 0 ? interruptAs(fiber, combineAll2(interruptors3)) : interrupt4(fiber)), zipRight3(inheritAll2(fiber)))));
16098
+ }).pipe(zipRight3(restore(_await3(channelDeferred)))))))));
16059
16099
  });
16060
16100
  var runScopedInterpret = (channelState, exec) => {
16061
16101
  const op = channelState;
@@ -16067,7 +16107,7 @@ var runScopedInterpret = (channelState, exec) => {
16067
16107
  return runScopedInterpret(exec.run(), exec);
16068
16108
  }
16069
16109
  case OP_DONE3: {
16070
- return suspend4(() => exec.getDone());
16110
+ return suspend3(() => exec.getDone());
16071
16111
  }
16072
16112
  case OP_READ2: {
16073
16113
  return readUpstream(op, () => runScopedInterpret(exec.run(), exec), failCause7);
@@ -16075,11 +16115,11 @@ var runScopedInterpret = (channelState, exec) => {
16075
16115
  }
16076
16116
  };
16077
16117
 
16078
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelMergeDecision.js
16118
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelMergeDecision.js
16079
16119
  var OP_DONE4 = "Done";
16080
16120
  var OP_AWAIT = "Await";
16081
16121
 
16082
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/mergeDecision.js
16122
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/mergeDecision.js
16083
16123
  var MergeDecisionSymbolKey = "effect/ChannelMergeDecision";
16084
16124
  var MergeDecisionTypeId = /* @__PURE__ */ Symbol.for(MergeDecisionSymbolKey);
16085
16125
  var proto10 = {
@@ -16098,12 +16138,12 @@ var Await = (f) => {
16098
16138
  return op;
16099
16139
  };
16100
16140
 
16101
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelMergeState.js
16141
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelMergeState.js
16102
16142
  var OP_BOTH_RUNNING = "BothRunning";
16103
16143
  var OP_LEFT_DONE = "LeftDone";
16104
16144
  var OP_RIGHT_DONE = "RightDone";
16105
16145
 
16106
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/mergeState.js
16146
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/mergeState.js
16107
16147
  var MergeStateSymbolKey = "effect/ChannelMergeState";
16108
16148
  var MergeStateTypeId = /* @__PURE__ */ Symbol.for(MergeStateSymbolKey);
16109
16149
  var proto11 = {
@@ -16129,11 +16169,11 @@ var RightDone = (f) => {
16129
16169
  return op;
16130
16170
  };
16131
16171
 
16132
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelMergeStrategy.js
16172
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelMergeStrategy.js
16133
16173
  var OP_BACK_PRESSURE = "BackPressure";
16134
16174
  var OP_BUFFER_SLIDING = "BufferSliding";
16135
16175
 
16136
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/mergeStrategy.js
16176
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/mergeStrategy.js
16137
16177
  var MergeStrategySymbolKey = "effect/ChannelMergeStrategy";
16138
16178
  var MergeStrategyTypeId = /* @__PURE__ */ Symbol.for(MergeStrategySymbolKey);
16139
16179
  var proto12 = {
@@ -16163,7 +16203,7 @@ var match13 = /* @__PURE__ */ dual(2, (self, {
16163
16203
  }
16164
16204
  });
16165
16205
 
16166
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/singleProducerAsyncInput.js
16206
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/singleProducerAsyncInput.js
16167
16207
  var OP_STATE_EMPTY = "Empty";
16168
16208
  var OP_STATE_EMIT = "Emit";
16169
16209
  var OP_STATE_ERROR = "Error";
@@ -16190,7 +16230,7 @@ var SingleProducerAsyncInputImpl = class {
16190
16230
  this.ref = ref;
16191
16231
  }
16192
16232
  awaitRead() {
16193
- return flatten5(modify4(this.ref, (state) => state._tag === OP_STATE_EMPTY ? [_await(state.notifyProducer), state] : [_void, state]));
16233
+ return flatten5(modify4(this.ref, (state) => state._tag === OP_STATE_EMPTY ? [_await3(state.notifyProducer), state] : [_void, state]));
16194
16234
  }
16195
16235
  get close() {
16196
16236
  return fiberIdWith2((fiberId2) => this.error(interrupt3(fiberId2)));
@@ -16199,10 +16239,10 @@ var SingleProducerAsyncInputImpl = class {
16199
16239
  return flatten5(modify4(this.ref, (state) => {
16200
16240
  switch (state._tag) {
16201
16241
  case OP_STATE_EMPTY: {
16202
- return [_await(state.notifyProducer), state];
16242
+ return [_await3(state.notifyProducer), state];
16203
16243
  }
16204
16244
  case OP_STATE_EMIT: {
16205
- return [forEach8(state.notifyConsumers, (deferred) => succeed2(deferred, left2(value2)), {
16245
+ return [forEach8(state.notifyConsumers, (deferred) => succeed5(deferred, left2(value2)), {
16206
16246
  discard: true
16207
16247
  }), stateDone(value2)];
16208
16248
  }
@@ -16216,16 +16256,16 @@ var SingleProducerAsyncInputImpl = class {
16216
16256
  }));
16217
16257
  }
16218
16258
  emit(element) {
16219
- return flatMap10(make23(), (deferred) => flatten5(modify4(this.ref, (state) => {
16259
+ return flatMap10(make39(), (deferred) => flatten5(modify4(this.ref, (state) => {
16220
16260
  switch (state._tag) {
16221
16261
  case OP_STATE_EMPTY: {
16222
- return [_await(state.notifyProducer), state];
16262
+ return [_await3(state.notifyProducer), state];
16223
16263
  }
16224
16264
  case OP_STATE_EMIT: {
16225
16265
  const notifyConsumer = state.notifyConsumers[0];
16226
16266
  const notifyConsumers = state.notifyConsumers.slice(1);
16227
16267
  if (notifyConsumer !== void 0) {
16228
- return [succeed2(notifyConsumer, right2(element)), notifyConsumers.length === 0 ? stateEmpty(deferred) : stateEmit(notifyConsumers)];
16268
+ return [succeed5(notifyConsumer, right2(element)), notifyConsumers.length === 0 ? stateEmpty(deferred) : stateEmit(notifyConsumers)];
16229
16269
  }
16230
16270
  throw new Error("Bug: Channel.SingleProducerAsyncInput.emit - Queue was empty! please report an issue at https://github.com/Effect-TS/effect/issues");
16231
16271
  }
@@ -16242,10 +16282,10 @@ var SingleProducerAsyncInputImpl = class {
16242
16282
  return flatten5(modify4(this.ref, (state) => {
16243
16283
  switch (state._tag) {
16244
16284
  case OP_STATE_EMPTY: {
16245
- return [_await(state.notifyProducer), state];
16285
+ return [_await3(state.notifyProducer), state];
16246
16286
  }
16247
16287
  case OP_STATE_EMIT: {
16248
- return [forEach8(state.notifyConsumers, (deferred) => failCause2(deferred, cause2), {
16288
+ return [forEach8(state.notifyConsumers, (deferred) => failCause6(deferred, cause2), {
16249
16289
  discard: true
16250
16290
  }), stateError(cause2)];
16251
16291
  }
@@ -16259,13 +16299,13 @@ var SingleProducerAsyncInputImpl = class {
16259
16299
  }));
16260
16300
  }
16261
16301
  get take() {
16262
- return this.takeWith((cause2) => failCause4(map14(cause2, left2)), (elem) => succeed4(elem), (done7) => fail3(right2(done7)));
16302
+ return this.takeWith((cause2) => failCause3(map14(cause2, left2)), (elem) => succeed3(elem), (done7) => fail3(right2(done7)));
16263
16303
  }
16264
16304
  takeWith(onError4, onElement, onDone2) {
16265
- return flatMap10(make23(), (deferred) => flatten5(modify4(this.ref, (state) => {
16305
+ return flatMap10(make39(), (deferred) => flatten5(modify4(this.ref, (state) => {
16266
16306
  switch (state._tag) {
16267
16307
  case OP_STATE_EMPTY: {
16268
- return [zipRight3(succeed2(state.notifyProducer, void 0), matchCause4(_await(deferred), {
16308
+ return [zipRight3(succeed5(state.notifyProducer, void 0), matchCause4(_await3(deferred), {
16269
16309
  onFailure: onError4,
16270
16310
  onSuccess: match({
16271
16311
  onLeft: onDone2,
@@ -16274,7 +16314,7 @@ var SingleProducerAsyncInputImpl = class {
16274
16314
  })), stateEmit([deferred])];
16275
16315
  }
16276
16316
  case OP_STATE_EMIT: {
16277
- return [matchCause4(_await(deferred), {
16317
+ return [matchCause4(_await3(deferred), {
16278
16318
  onFailure: onError4,
16279
16319
  onSuccess: match({
16280
16320
  onLeft: onDone2,
@@ -16292,9 +16332,9 @@ var SingleProducerAsyncInputImpl = class {
16292
16332
  })));
16293
16333
  }
16294
16334
  };
16295
- var make45 = () => pipe(make23(), flatMap10((deferred) => make25(stateEmpty(deferred))), map17((ref) => new SingleProducerAsyncInputImpl(ref)));
16335
+ var make45 = () => pipe(make39(), flatMap10((deferred) => make24(stateEmpty(deferred))), map17((ref) => new SingleProducerAsyncInputImpl(ref)));
16296
16336
 
16297
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel.js
16337
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel.js
16298
16338
  var concatMap = /* @__PURE__ */ dual(2, (self, f) => concatMapWith(self, f, () => void 0, () => void 0));
16299
16339
  var drain = (self) => {
16300
16340
  const drainer = readWithCause({
@@ -16316,7 +16356,7 @@ var mapOut = /* @__PURE__ */ dual(2, (self, f) => {
16316
16356
  });
16317
16357
  return pipeTo(self, reader);
16318
16358
  });
16319
- var mergeAll5 = (options3) => {
16359
+ var mergeAll6 = (options3) => {
16320
16360
  return (channels) => mergeAllWith(options3)(channels, constVoid);
16321
16361
  };
16322
16362
  var mergeAllWith = ({
@@ -16331,8 +16371,8 @@ var mergeAllWith = ({
16331
16371
  yield* addFinalizer2(scope4, shutdown2(queue));
16332
16372
  const cancelers = yield* unbounded3();
16333
16373
  yield* addFinalizer2(scope4, shutdown2(cancelers));
16334
- const lastDone = yield* make25(none2());
16335
- const errorSignal = yield* make23();
16374
+ const lastDone = yield* make24(none2());
16375
+ const errorSignal = yield* make39();
16336
16376
  const withPermits = (yield* makeSemaphore2(concurrencyN)).withPermits;
16337
16377
  const pull = yield* toPullIn(pipeTo(queueReader, channels), scope4);
16338
16378
  function evaluatePull(pull2) {
@@ -16344,12 +16384,12 @@ var mergeAllWith = ({
16344
16384
  }), flatMap10((outDone) => update3(lastDone, match2({
16345
16385
  onNone: () => some2(outDone.value),
16346
16386
  onSome: (lastDone2) => some2(f(lastDone2, outDone.value))
16347
- }))), catchAllCause2((cause2) => isInterrupted3(cause2) ? failCause7(cause2) : offer3(queue, failCause7(cause2)).pipe(zipRight3(succeed2(errorSignal, void 0)), asVoid2)));
16387
+ }))), catchAllCause2((cause2) => isInterrupted2(cause2) ? failCause7(cause2) : offer3(queue, failCause7(cause2)).pipe(zipRight3(succeed5(errorSignal, void 0)), asVoid2)));
16348
16388
  }
16349
16389
  yield* pull.pipe(matchCauseEffect3({
16350
16390
  onFailure: (cause2) => offer3(queue, failCause7(cause2)).pipe(zipRight3(succeed7(false))),
16351
16391
  onSuccess: match({
16352
- onLeft: (outDone) => raceWith2(interruptible4(_await(errorSignal)), interruptible4(withPermits(concurrencyN)(_void)), {
16392
+ onLeft: (outDone) => raceWith2(interruptible4(_await3(errorSignal)), interruptible4(withPermits(concurrencyN)(_void)), {
16353
16393
  onSelfDone: (_, permitAcquisition) => as4(interrupt4(permitAcquisition), false),
16354
16394
  onOtherDone: (_, failureAwait) => zipRight3(interrupt4(failureAwait), get11(lastDone).pipe(flatMap10(match2({
16355
16395
  onNone: () => offer3(queue, succeed7(left2(outDone))),
@@ -16358,23 +16398,23 @@ var mergeAllWith = ({
16358
16398
  }),
16359
16399
  onRight: (channel) => match13(mergeStrategy, {
16360
16400
  onBackPressure: () => gen2(function* () {
16361
- const latch = yield* make23();
16362
- const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => race2(exit3(evaluatePull(pull2)), exit3(interruptible4(_await(errorSignal))))), flatMap10(identity)));
16363
- yield* succeed2(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
16364
- yield* _await(latch);
16365
- const errored = yield* isDone(errorSignal);
16401
+ const latch = yield* make39();
16402
+ const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => race2(exit3(evaluatePull(pull2)), exit3(interruptible4(_await3(errorSignal))))), flatMap10(identity)));
16403
+ yield* succeed5(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
16404
+ yield* _await3(latch);
16405
+ const errored = yield* isDone5(errorSignal);
16366
16406
  return !errored;
16367
16407
  }),
16368
16408
  onBufferSliding: () => gen2(function* () {
16369
- const canceler = yield* make23();
16370
- const latch = yield* make23();
16409
+ const canceler = yield* make39();
16410
+ const latch = yield* make39();
16371
16411
  const size12 = yield* size11(cancelers);
16372
- yield* take2(cancelers).pipe(flatMap10((canceler2) => succeed2(canceler2, void 0)), when2(() => size12 >= concurrencyN));
16412
+ yield* take2(cancelers).pipe(flatMap10((canceler2) => succeed5(canceler2, void 0)), when2(() => size12 >= concurrencyN));
16373
16413
  yield* offer3(cancelers, canceler);
16374
- const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => exit3(evaluatePull(pull2)).pipe(race2(exit3(interruptible4(_await(errorSignal)))), race2(exit3(interruptible4(_await(canceler)))))), flatMap10(identity)));
16375
- yield* succeed2(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
16376
- yield* _await(latch);
16377
- const errored = yield* isDone(errorSignal);
16414
+ const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => exit3(evaluatePull(pull2)).pipe(race2(exit3(interruptible4(_await3(errorSignal)))), race2(exit3(interruptible4(_await3(canceler)))))), flatMap10(identity)));
16415
+ yield* succeed5(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
16416
+ yield* _await3(latch);
16417
+ const errored = yield* isDone5(errorSignal);
16378
16418
  return !errored;
16379
16419
  })
16380
16420
  })
@@ -16391,7 +16431,7 @@ var mergeAllWith = ({
16391
16431
  }), unwrap);
16392
16432
  return embedInput(consumer, input);
16393
16433
  }));
16394
- var mergeMap = /* @__PURE__ */ dual(3, (self, f, options3) => mergeAll5(options3)(mapOut(self, f)));
16434
+ var mergeMap = /* @__PURE__ */ dual(3, (self, f, options3) => mergeAll6(options3)(mapOut(self, f)));
16395
16435
  var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
16396
16436
  function merge9(scope4) {
16397
16437
  return gen2(function* () {
@@ -16406,18 +16446,18 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
16406
16446
  if (op._tag === OP_DONE4) {
16407
16447
  return succeed7(fromEffect4(zipRight3(interrupt4(fiber), op.effect)));
16408
16448
  }
16409
- return map17(_await3(fiber), match9({
16410
- onFailure: (cause2) => fromEffect4(op.f(failCause4(cause2))),
16449
+ return map17(_await2(fiber), match9({
16450
+ onFailure: (cause2) => fromEffect4(op.f(failCause3(cause2))),
16411
16451
  onSuccess: match({
16412
- onLeft: (done8) => fromEffect4(op.f(succeed4(done8))),
16452
+ onLeft: (done8) => fromEffect4(op.f(succeed3(done8))),
16413
16453
  onRight: (elem) => zipRight4(write(elem), go2(single(op.f)))
16414
16454
  })
16415
16455
  }));
16416
16456
  }
16417
16457
  return match9(exit4, {
16418
- onFailure: (cause2) => onDecision(done7(failCause4(cause2))),
16458
+ onFailure: (cause2) => onDecision(done7(failCause3(cause2))),
16419
16459
  onSuccess: match({
16420
- onLeft: (z) => onDecision(done7(succeed4(z))),
16460
+ onLeft: (z) => onDecision(done7(succeed3(z))),
16421
16461
  onRight: (elem) => succeed7(flatMap12(write(elem), () => flatMap12(fromEffect4(forkIn2(interruptible4(pull), scope4)), (leftFiber) => go2(both2(leftFiber, fiber)))))
16422
16462
  })
16423
16463
  });
@@ -16435,18 +16475,18 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
16435
16475
  }
16436
16476
  case OP_LEFT_DONE: {
16437
16477
  return unwrap(map17(exit3(pullR), match9({
16438
- onFailure: (cause2) => fromEffect4(state.f(failCause4(cause2))),
16478
+ onFailure: (cause2) => fromEffect4(state.f(failCause3(cause2))),
16439
16479
  onSuccess: match({
16440
- onLeft: (done7) => fromEffect4(state.f(succeed4(done7))),
16480
+ onLeft: (done7) => fromEffect4(state.f(succeed3(done7))),
16441
16481
  onRight: (elem) => flatMap12(write(elem), () => go2(LeftDone(state.f)))
16442
16482
  })
16443
16483
  })));
16444
16484
  }
16445
16485
  case OP_RIGHT_DONE: {
16446
16486
  return unwrap(map17(exit3(pullL), match9({
16447
- onFailure: (cause2) => fromEffect4(state.f(failCause4(cause2))),
16487
+ onFailure: (cause2) => fromEffect4(state.f(failCause3(cause2))),
16448
16488
  onSuccess: match({
16449
- onLeft: (done7) => fromEffect4(state.f(succeed4(done7))),
16489
+ onLeft: (done7) => fromEffect4(state.f(succeed3(done7))),
16450
16490
  onRight: (elem) => flatMap12(write(elem), () => go2(RightDone(state.f)))
16451
16491
  })
16452
16492
  })));
@@ -16460,7 +16500,7 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
16460
16500
  });
16461
16501
  const leftFiber = interruptible4(pullL).pipe(ensuring2(inherit), forkIn2(scope4));
16462
16502
  const rightFiber = interruptible4(pullR).pipe(ensuring2(inherit), forkIn2(scope4));
16463
- return zipWith4(leftFiber, rightFiber, (left3, right3) => BothRunning(left3, right3));
16503
+ return zipWith3(leftFiber, rightFiber, (left3, right3) => BothRunning(left3, right3));
16464
16504
  })).pipe(flatMap12(go2), embedInput(input));
16465
16505
  });
16466
16506
  }
@@ -16485,12 +16525,12 @@ var pipeToOrFail = /* @__PURE__ */ dual(2, (self, that) => suspend5(() => {
16485
16525
  }));
16486
16526
  var run = (self) => scopedWith2((scope4) => runIn(self, scope4));
16487
16527
  var runDrain = (self) => run(drain(self));
16488
- var scoped3 = (effect3) => unwrap(uninterruptibleMask3((restore) => map17(make38(), (scope4) => acquireReleaseOut(tapErrorCause2(restore(extend2(effect3, scope4)), (cause2) => close(scope4, failCause4(cause2))), (_, exit4) => close(scope4, exit4)))));
16528
+ var scoped3 = (effect3) => unwrap(uninterruptibleMask3((restore) => map17(make37(), (scope4) => acquireReleaseOut(tapErrorCause2(restore(extend2(effect3, scope4)), (cause2) => close(scope4, failCause3(cause2))), (_, exit4) => close(scope4, exit4)))));
16489
16529
  var scopedWith3 = (f) => unwrapScoped2(map17(scope2, (scope4) => flatMap12(fromEffect4(f(scope4)), write)));
16490
16530
  var toPullIn = /* @__PURE__ */ dual(2, (self, scope4) => zip5(sync4(() => new ChannelExecutor(self, void 0, identity)), runtime3()).pipe(tap2(([executor, runtime4]) => addFinalizerExit(scope4, (exit4) => {
16491
16531
  const finalizer2 = executor.close(exit4);
16492
16532
  return finalizer2 !== void 0 ? provide2(finalizer2, runtime4) : _void;
16493
- })), uninterruptible2, map17(([executor]) => suspend4(() => interpretToPull(executor.run(), executor)))));
16533
+ })), uninterruptible2, map17(([executor]) => suspend3(() => interpretToPull(executor.run(), executor)))));
16494
16534
  var interpretToPull = (channelState, exec) => {
16495
16535
  const state = channelState;
16496
16536
  switch (state._tag) {
@@ -16520,8 +16560,8 @@ var writeChunkWriter = (idx, len, chunk2) => {
16520
16560
  };
16521
16561
  var zip6 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? mergeWith2(self, {
16522
16562
  other: that,
16523
- onSelfDone: (exit1) => Await((exit22) => suspend4(() => zip3(exit1, exit22))),
16524
- onOtherDone: (exit22) => Await((exit1) => suspend4(() => zip3(exit1, exit22)))
16563
+ onSelfDone: (exit1) => Await((exit22) => suspend3(() => zip3(exit1, exit22))),
16564
+ onOtherDone: (exit22) => Await((exit1) => suspend3(() => zip3(exit1, exit22)))
16525
16565
  }) : flatMap12(self, (a) => map20(that, (b) => [a, b])));
16526
16566
  var zipRight4 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? map20(zip6(self, that, {
16527
16567
  concurrent: true
@@ -16534,10 +16574,10 @@ var ChannelException = (error) => ({
16534
16574
  });
16535
16575
  var isChannelException = (u) => hasProperty(u, ChannelExceptionTypeId);
16536
16576
 
16537
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Runtime.js
16577
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Runtime.js
16538
16578
  var runFork3 = unsafeFork3;
16539
16579
 
16540
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/sink.js
16580
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/sink.js
16541
16581
  var SinkTypeId2 = /* @__PURE__ */ Symbol.for("effect/Sink");
16542
16582
  var sinkVariance2 = {
16543
16583
  /* c8 ignore next */
@@ -16572,7 +16612,7 @@ var forEachChunk = (f) => {
16572
16612
  var fromEffect6 = (effect3) => new SinkImpl(fromEffect4(effect3));
16573
16613
  var toChannel = (self) => isEffect2(self) ? toChannel(fromEffect6(self)) : self.channel;
16574
16614
 
16575
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/stream.js
16615
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/stream.js
16576
16616
  var StreamSymbolKey = "effect/Stream";
16577
16617
  var StreamTypeId2 = /* @__PURE__ */ Symbol.for(StreamSymbolKey);
16578
16618
  var streamVariance = {
@@ -16591,7 +16631,7 @@ var StreamImpl = class {
16591
16631
  }
16592
16632
  };
16593
16633
  var isStream = (u) => hasProperty(u, StreamTypeId2) || isEffect2(u);
16594
- var ensuringWith2 = /* @__PURE__ */ dual(2, (self, finalizer2) => new StreamImpl(ensuringWith(toChannel2(self), finalizer2)));
16634
+ var ensuring4 = /* @__PURE__ */ dual(2, (self, finalizer2) => new StreamImpl(pipe(toChannel2(self), ensuring3(finalizer2))));
16595
16635
  var fail11 = (error) => fromEffectOption(fail7(some2(error)));
16596
16636
  var flatMap14 = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, f, options3) => {
16597
16637
  const bufferSize = options3?.bufferSize ?? 16;
@@ -16705,8 +16745,8 @@ var unfoldChunkEffect = (s, f) => suspend6(() => {
16705
16745
  });
16706
16746
  var unwrapScoped3 = (effect3) => flatten10(scoped4(effect3));
16707
16747
 
16708
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Stream.js
16709
- var ensuringWith3 = ensuringWith2;
16748
+ // ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Stream.js
16749
+ var ensuring5 = ensuring4;
16710
16750
  var fail12 = fail11;
16711
16751
  var fromReadableStream2 = fromReadableStream;
16712
16752
  var suspend7 = suspend6;
@@ -16720,7 +16760,7 @@ var TypeIdError = (typeId, tag2) => {
16720
16760
  return Base3;
16721
16761
  };
16722
16762
 
16723
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/Cookies.js
16763
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/Cookies.js
16724
16764
  var TypeId18 = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies");
16725
16765
  var CookieTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies/Cookie");
16726
16766
  var Proto2 = {
@@ -16903,7 +16943,7 @@ var tryDecodeURIComponent = (str) => {
16903
16943
  }
16904
16944
  };
16905
16945
 
16906
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/Headers.js
16946
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/Headers.js
16907
16947
  var HeadersTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Headers");
16908
16948
  var Proto3 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
16909
16949
  [HeadersTypeId]: HeadersTypeId,
@@ -17002,10 +17042,10 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
17002
17042
  });
17003
17043
  var currentRedactedNames = /* @__PURE__ */ globalValue("@effect/platform/Headers/currentRedactedNames", () => unsafeMake7(["authorization", "cookie", "set-cookie", "x-api-key"]));
17004
17044
 
17005
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/httpClientError.js
17045
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/httpClientError.js
17006
17046
  var TypeId19 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientError");
17007
17047
 
17008
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/HttpClientError.js
17048
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/HttpClientError.js
17009
17049
  var TypeId20 = TypeId19;
17010
17050
  var RequestError = class extends (/* @__PURE__ */ TypeIdError(TypeId20, "RequestError")) {
17011
17051
  get methodAndUrl() {
@@ -17025,7 +17065,7 @@ var ResponseError = class extends (/* @__PURE__ */ TypeIdError(TypeId20, "Respon
17025
17065
  }
17026
17066
  };
17027
17067
 
17028
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/UrlParams.js
17068
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/UrlParams.js
17029
17069
  var fromInput3 = (input) => {
17030
17070
  const parsed = fromInputNested(input);
17031
17071
  const out = [];
@@ -17062,9 +17102,16 @@ var fromInputNested = (input) => {
17062
17102
  };
17063
17103
  var empty32 = [];
17064
17104
  var setAll4 = /* @__PURE__ */ dual(2, (self, input) => {
17065
- const toSet3 = fromInput3(input);
17066
- const keys6 = toSet3.map(([k]) => k);
17067
- return appendAll(filter2(self, ([k]) => keys6.includes(k)), toSet3);
17105
+ const out = fromInput3(input);
17106
+ const keys6 = /* @__PURE__ */ new Set();
17107
+ for (let i = 0; i < out.length; i++) {
17108
+ keys6.add(out[i][0]);
17109
+ }
17110
+ for (let i = 0; i < self.length; i++) {
17111
+ if (keys6.has(self[i][0])) continue;
17112
+ out.push(self[i]);
17113
+ }
17114
+ return out;
17068
17115
  });
17069
17116
  var makeUrl = (url, params, hash2) => {
17070
17117
  try {
@@ -17090,7 +17137,7 @@ var baseUrl = () => {
17090
17137
  return void 0;
17091
17138
  };
17092
17139
 
17093
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/HttpIncomingMessage.js
17140
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/HttpIncomingMessage.js
17094
17141
  var TypeId21 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpIncomingMessage");
17095
17142
  var schemaBodyJson = (schema, options3) => {
17096
17143
  const parse3 = decodeUnknown2(schema, options3);
@@ -17121,13 +17168,13 @@ var inspect = (self, that) => {
17121
17168
  return obj;
17122
17169
  };
17123
17170
 
17124
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/HttpTraceContext.js
17171
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/HttpTraceContext.js
17125
17172
  var toHeaders = (span2) => unsafeFromRecord({
17126
17173
  b3: `${span2.traceId}-${span2.spanId}-${span2.sampled ? "1" : "0"}${span2.parent._tag === "Some" ? `-${span2.parent.value.spanId}` : ""}`,
17127
17174
  traceparent: `00-${span2.traceId}-${span2.spanId}-${span2.sampled ? "01" : "00"}`
17128
17175
  });
17129
17176
 
17130
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/httpBody.js
17177
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/httpBody.js
17131
17178
  var TypeId22 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpBody");
17132
17179
  var BodyBase = class {
17133
17180
  [TypeId22];
@@ -17152,7 +17199,7 @@ var EmptyImpl = class extends BodyBase {
17152
17199
  };
17153
17200
  var empty33 = /* @__PURE__ */ new EmptyImpl();
17154
17201
 
17155
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/httpClientRequest.js
17202
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/httpClientRequest.js
17156
17203
  var TypeId23 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientRequest");
17157
17204
  var Proto4 = {
17158
17205
  [TypeId23]: TypeId23,
@@ -17258,7 +17305,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
17258
17305
  return makeInternal(self.method, self.url, self.urlParams, self.hash, headers, body);
17259
17306
  });
17260
17307
 
17261
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/httpClientResponse.js
17308
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/httpClientResponse.js
17262
17309
  var TypeId24 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientResponse");
17263
17310
  var fromWeb = (request, source) => new ClientResponseImpl(request, source);
17264
17311
  var ClientResponseImpl = class extends Class {
@@ -17369,7 +17416,17 @@ var ClientResponseImpl = class extends Class {
17369
17416
  }
17370
17417
  };
17371
17418
 
17372
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/httpClient.js
17419
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/httpClient.js
17420
+ var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
17421
+ var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
17422
+ var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
17423
+ var ATTR_HTTP_RESPONSE_STATUS_CODE = "http.response.status_code";
17424
+ var ATTR_SERVER_ADDRESS = "server.address";
17425
+ var ATTR_SERVER_PORT = "server.port";
17426
+ var ATTR_URL_FULL = "url.full";
17427
+ var ATTR_URL_PATH = "url.path";
17428
+ var ATTR_URL_SCHEME = "url.scheme";
17429
+ var ATTR_URL_QUERY = "url.query";
17373
17430
  var TypeId25 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClient");
17374
17431
  var tag = /* @__PURE__ */ GenericTag("@effect/platform/HttpClient");
17375
17432
  var currentTracerDisabledWhen = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpClient/tracerDisabledWhen"), () => unsafeMake7(constFalse));
@@ -17469,7 +17526,7 @@ var make49 = (f) => makeWith((effect3) => flatMap10(effect3, (request) => withFi
17469
17526
  return succeed7(new InterruptibleResponse(response, controller));
17470
17527
  },
17471
17528
  onFailure(cause2) {
17472
- if (isInterrupted3(cause2)) {
17529
+ if (isInterrupted2(cause2)) {
17473
17530
  controller.abort();
17474
17531
  }
17475
17532
  return failCause7(cause2);
@@ -17511,7 +17568,7 @@ var make49 = (f) => makeWith((effect3) => flatMap10(effect3, (request) => withFi
17511
17568
  return succeed7(new InterruptibleResponse(response, controller));
17512
17569
  },
17513
17570
  onFailure(cause2) {
17514
- if (!scopedController && isInterrupted3(cause2)) {
17571
+ if (!scopedController && isInterrupted2(cause2)) {
17515
17572
  controller.abort();
17516
17573
  }
17517
17574
  return failCause7(cause2);
@@ -17529,7 +17586,7 @@ var InterruptibleResponse = class {
17529
17586
  [TypeId24] = TypeId24;
17530
17587
  [TypeId21] = TypeId21;
17531
17588
  applyInterrupt(effect3) {
17532
- return suspend4(() => {
17589
+ return suspend3(() => {
17533
17590
  responseRegistry.unregister(this.original);
17534
17591
  return onInterrupt2(effect3, () => sync4(() => {
17535
17592
  this.controller.abort();
@@ -17569,12 +17626,9 @@ var InterruptibleResponse = class {
17569
17626
  get stream() {
17570
17627
  return suspend7(() => {
17571
17628
  responseRegistry.unregister(this.original);
17572
- return ensuringWith3(this.original.stream, (exit4) => {
17573
- if (isInterrupted2(exit4)) {
17574
- this.controller.abort();
17575
- }
17576
- return _void;
17577
- });
17629
+ return ensuring5(this.original.stream, sync4(() => {
17630
+ this.controller.abort();
17631
+ }));
17578
17632
  });
17579
17633
  }
17580
17634
  toJSON() {
@@ -17608,14 +17662,14 @@ var transformResponse = /* @__PURE__ */ dual(2, (self, f) => {
17608
17662
  });
17609
17663
  var layerMergedContext = (effect3) => effect(tag, flatMap10(context2(), (context5) => map17(effect3, (client) => transformResponse(client, mapInputContext2((input) => merge3(context5, input))))));
17610
17664
 
17611
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/HttpClient.js
17665
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/HttpClient.js
17612
17666
  var HttpClient = tag;
17613
17667
 
17614
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
17668
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
17615
17669
  var get17 = get15;
17616
17670
  var setUrlParams2 = setUrlParams;
17617
17671
 
17618
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/fetchHttpClient.js
17672
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/fetchHttpClient.js
17619
17673
  var fetchTagKey = "@effect/platform/FetchHttpClient/Fetch";
17620
17674
  var requestInitTagKey = "@effect/platform/FetchHttpClient/FetchOptions";
17621
17675
  var fetch = /* @__PURE__ */ make49((request, url, signal, fiber) => {
@@ -17651,7 +17705,7 @@ var fetch = /* @__PURE__ */ make49((request, url, signal, fiber) => {
17651
17705
  });
17652
17706
  var layer = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed7(fetch));
17653
17707
 
17654
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/FetchHttpClient.js
17708
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/FetchHttpClient.js
17655
17709
  var layer2 = layer;
17656
17710
 
17657
17711
  // ../../utils/dist/effect/Resource/index.js
@@ -17660,7 +17714,7 @@ __export(Resource_exports, {
17660
17714
  GID: () => GID,
17661
17715
  ID: () => ID,
17662
17716
  Type: () => Type3,
17663
- format: () => format5,
17717
+ format: () => format4,
17664
17718
  parse: () => parse2
17665
17719
  });
17666
17720
 
@@ -17708,7 +17762,7 @@ var ID = Union2(
17708
17762
  );
17709
17763
 
17710
17764
  // ../../utils/dist/effect/Resource/data.js
17711
- var format5 = ({
17765
+ var format4 = ({
17712
17766
  id: id2,
17713
17767
  type
17714
17768
  }) => gen2(function* () {
@@ -17875,6 +17929,9 @@ Logging_exports.filterLevelOrNever;
17875
17929
  (class extends TaggedError(
17876
17930
  "@brytdesigns/ajax-client/InvalidAjaxMethodError"
17877
17931
  ) {
17932
+ /**
17933
+ * Constructs a new instance of InvalidAjaxMethodError with a default error message.
17934
+ */
17878
17935
  constructor() {
17879
17936
  super({ message: "Invalid HTTP method | Allowed: 'get' or 'post'" });
17880
17937
  }
@@ -18161,21 +18218,22 @@ var get18 = makeFactory({
18161
18218
  });
18162
18219
 
18163
18220
  // src/index.ts
18164
- var createPredicitiveSearchApi = ({ debug = false }) => {
18221
+ var createPredictiveSearchApi = ({ debug = false }) => {
18165
18222
  let baseLayer = empty29;
18166
18223
  let minimumLogLevel2 = None3;
18167
18224
  let loggerLayer = pretty4;
18168
18225
  if (debug) {
18169
- baseLayer = mergeAll4(loggerLayer);
18226
+ baseLayer = mergeAll5(loggerLayer);
18170
18227
  minimumLogLevel2 = All;
18171
18228
  }
18172
- const ajaxLayer = mergeAll4(baseLayer, Default);
18229
+ const ajaxLayer = mergeAll5(baseLayer, Default);
18173
18230
  return {
18174
18231
  get: (input, options3) => runPromise(
18175
18232
  get18(input, {
18176
18233
  ...options3 || {},
18177
18234
  headers: {
18178
18235
  "X-SDK-Variant-Source": "shopify-ajax-predictive-search-api",
18236
+ "X-Library-Source": "brytdesigns-shopify-ajax-predictive-search-api",
18179
18237
  ...options3?.headers || {}
18180
18238
  }
18181
18239
  }).pipe(
@@ -18189,6 +18247,6 @@ var createPredicitiveSearchApi = ({ debug = false }) => {
18189
18247
  };
18190
18248
  };
18191
18249
 
18192
- export { createPredicitiveSearchApi };
18250
+ export { createPredictiveSearchApi };
18193
18251
  //# sourceMappingURL=index.js.map
18194
18252
  //# sourceMappingURL=index.js.map