apps 0.0.1-beta.36 → 0.0.1-beta.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-KOOJUMLR.js → chunk-3MMG2H6M.js} +2 -2
  3. package/js/{chunk-XEXUHXC3.js → chunk-3V575NIW.js} +226 -18
  4. package/js/{chunk-KZFV3WCJ.js → chunk-5P2WQRRM.js} +385 -56
  5. package/js/{chunk-4U2VUDET.js → chunk-5TJA7364.js} +2 -2
  6. package/js/{chunk-BKJDZYK7.js → chunk-7CSHVXVR.js} +3 -3
  7. package/js/{chunk-ZQWDOHEO.js → chunk-BO4US6DZ.js} +9 -49
  8. package/js/{chunk-A4O72Z3A.js → chunk-DKUEYTYD.js} +167 -30
  9. package/js/{chunk-UBAKWXAJ.js → chunk-DWMEIU2L.js} +411 -94
  10. package/js/{chunk-ENJCQWVF.js → chunk-E4BWL7KQ.js} +3 -3
  11. package/js/{chunk-CZLCA2O4.js → chunk-F3TBO2U3.js} +7 -94
  12. package/js/{chunk-POOIHRPF.js → chunk-GHXRRFZA.js} +11 -34
  13. package/js/{chunk-RSNZDT4L.js → chunk-JTMDWPCH.js} +2 -2
  14. package/js/{chunk-YW333DH3.js → chunk-KANDIVIH.js} +4 -4
  15. package/js/chunk-KAQD3DTI.js +16 -0
  16. package/js/{chunk-556EWA6P.js → chunk-MLHNVYHT.js} +17 -4
  17. package/js/{chunk-IJQ5LE74.js → chunk-MXDKXAY4.js} +363 -401
  18. package/js/{chunk-A2NN45C7.js → chunk-NROBHRTG.js} +7 -7
  19. package/js/{chunk-BI6R577B.js → chunk-P7MGDPFD.js} +2 -2
  20. package/js/{chunk-SRB2WDU7.js → chunk-Q4QZDB2F.js} +3 -3
  21. package/js/{chunk-JU7F4PRK.js → chunk-RIXVGVA6.js} +2 -2
  22. package/js/{chunk-WAGGHNWH.js → chunk-RJCWJNCH.js} +9 -9
  23. package/js/{chunk-WMVTBHGK.js → chunk-U5PFZDVB.js} +2 -2
  24. package/js/{chunk-PHO7HXTC.js → chunk-VIU2XXA7.js} +294 -47
  25. package/js/{chunk-TADLIUEU.js → chunk-VJQXXOQ3.js} +2 -2
  26. package/js/{chunk-NHCFIWN5.js → chunk-W2NV54JD.js} +1 -1
  27. package/js/{chunk-BI45HZWM.js → chunk-YQ35E7KS.js} +1 -1
  28. package/js/{chunk-WDBUOIWV.js → chunk-ZUKBIHMK.js} +3 -3
  29. package/js/client.js +13 -16
  30. package/js/contracts.js +16 -20
  31. package/js/effect.js +19 -23
  32. package/js/graphql.js +21 -25
  33. package/js/host.js +19 -23
  34. package/js/index.js +13 -25
  35. package/js/mcp/effect.js +21 -25
  36. package/js/mcp/stdio.js +21 -25
  37. package/js/mcp.js +23 -27
  38. package/js/openapi.js +17 -20
  39. package/js/react.js +2 -3
  40. package/js/skills/effect.js +6 -6
  41. package/js/skills.js +15 -16
  42. package/js/storage/facet.js +1 -214
  43. package/js/ui/auth/contracts.js +2 -2
  44. package/js/ui/auth.js +5 -5
  45. package/js/ui/contracts.js +5 -6
  46. package/js/ui/serving.js +10 -10
  47. package/package.json +1 -2
  48. package/runtime.json +1 -1
  49. package/types/apps/src/contracts/app.d.ts +0 -2
  50. package/types/apps/src/contracts/context.d.ts +12 -11
  51. package/types/apps/src/contracts/host.d.ts +10 -8
  52. package/types/apps/src/contracts/live.d.ts +2 -0
  53. package/types/apps/src/contracts/operations.d.ts +3 -3
  54. package/types/apps/src/contracts/protocol-version.d.ts +2 -2
  55. package/types/apps/src/contracts/protocols/10.d.ts +1450 -0
  56. package/types/apps/src/contracts/protocols/4.d.ts +3 -3
  57. package/types/apps/src/contracts/protocols/5.d.ts +1 -1
  58. package/types/apps/src/contracts/protocols/6.d.ts +1 -1
  59. package/types/apps/src/contracts/protocols/7.d.ts +1 -1
  60. package/types/apps/src/contracts/sql.d.ts +58 -0
  61. package/types/apps/src/contracts/workflows.d.ts +6 -0
  62. package/types/apps/src/facet.d.ts +4 -5
  63. package/types/apps/src/implementation/openapi-compile.d.ts +2 -2
  64. package/types/apps/src/implementation/schema.d.ts +1 -10
  65. package/types/apps/src/implementation/sql.d.ts +66 -0
  66. package/types/apps/src/index.d.ts +1 -2
  67. package/types/telemetry/src/app-records.d.ts +42 -0
  68. package/types/telemetry/src/recorded-failure.d.ts +20 -0
  69. package/types/utils/src/api-error.d.ts +5 -0
  70. package/types/utils/src/recorded-message.d.ts +15 -0
  71. package/js/chunk-73AV3JVU.js +0 -186
  72. package/js/chunk-HDAQBRT5.js +0 -1254
  73. package/js/chunk-IU7CCCUC.js +0 -630
  74. package/js/chunk-NHUHTWAF.js +0 -0
  75. package/js/chunk-V5DWGYRK.js +0 -268
  76. package/js/chunk-Y3XN4X4Q.js +0 -19
  77. package/types/app-data/src/implementation/cursor.d.ts +0 -10
  78. package/types/app-data/src/implementation/index-key.d.ts +0 -7
  79. package/types/app-data/src/implementation/promise.d.ts +0 -68
  80. package/types/app-data/src/implementation/range.d.ts +0 -8
  81. package/types/app-data/src/implementation/schema.d.ts +0 -18
  82. package/types/app-data/src/implementation/sqlite.d.ts +0 -11
  83. package/types/app-data/src/index.d.ts +0 -4
  84. package/types/apps/src/contracts/storage.d.ts +0 -68
  85. package/types/apps/src/implementation/storage.d.ts +0 -15
@@ -2596,7 +2596,6 @@ var set = /* @__PURE__ */ dual(3, (self, key, value6) => {
2596
2596
  [key]: value6
2597
2597
  };
2598
2598
  });
2599
- var assignProperty2 = assignProperty;
2600
2599
  var isSubrecordBy = (equivalence) => dual(2, (self, that) => {
2601
2600
  for (const key of keys(self)) {
2602
2601
  if (!has(that, key) || !equivalence(self[key], that[key])) {
@@ -5187,7 +5186,6 @@ var makeScope = (finalizerStrategy = "sequential", parent) => ({
5187
5186
  var constScopeEmpty = {
5188
5187
  _tag: "Empty"
5189
5188
  };
5190
- var scopeMake = (finalizerStrategy) => sync(() => scopeMakeUnsafe(finalizerStrategy));
5191
5189
  var scope = scopeTag;
5192
5190
  var provideScope = /* @__PURE__ */ provideService(scopeTag);
5193
5191
  var scoped = (self) => withFiber((fiber3) => {
@@ -7001,7 +6999,6 @@ var TracerTimingEnabled2 = TracerTimingEnabled;
7001
6999
 
7002
7000
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/Scope.js
7003
7001
  var Scope = scopeTag;
7004
- var make9 = scopeMake;
7005
7002
  var makeUnsafe3 = scopeMakeUnsafe;
7006
7003
  var provide = provideScope;
7007
7004
  var addFinalizerExit = scopeAddFinalizerExit;
@@ -7437,7 +7434,7 @@ __export(Cron_exports, {
7437
7434
  format: () => format3,
7438
7435
  isCron: () => isCron,
7439
7436
  isCronParseError: () => isCronParseError,
7440
- make: () => make11,
7437
+ make: () => make10,
7441
7438
  match: () => match6,
7442
7439
  next: () => next,
7443
7440
  parse: () => parse2,
@@ -7632,7 +7629,7 @@ var makeZonedUnsafe = (input, options) => {
7632
7629
  return makeZonedFromAdjusted(self.epochMilliseconds, zone, options?.disambiguation ?? "compatible");
7633
7630
  };
7634
7631
  var makeZoned = /* @__PURE__ */ liftThrowable(makeZonedUnsafe);
7635
- var make10 = /* @__PURE__ */ liftThrowable(makeUnsafe4);
7632
+ var make9 = /* @__PURE__ */ liftThrowable(makeUnsafe4);
7636
7633
  var zonedStringRegExp = /^(.{17,35})\[(.+)\]$/;
7637
7634
  var makeZonedFromString = (input) => {
7638
7635
  const match10 = zonedStringRegExp.exec(input);
@@ -7998,7 +7995,7 @@ var CronProto = {
7998
7995
  }
7999
7996
  };
8000
7997
  var isCron = (u) => hasProperty(u, TypeId10);
8001
- var make11 = (values2) => {
7998
+ var make10 = (values2) => {
8002
7999
  const o = Object.create(CronProto);
8003
8000
  o.seconds = restrictions.seconds(values2.seconds ?? [0]);
8004
8001
  o.minutes = restrictions.minutes(values2.minutes);
@@ -8146,7 +8143,7 @@ var parse2 = (cron2, tz) => {
8146
8143
  days: days3,
8147
8144
  months: months2,
8148
8145
  weekdays: weekdays2
8149
- }) => make11({
8146
+ }) => make10({
8150
8147
  tz: tz2,
8151
8148
  seconds: seconds3.values,
8152
8149
  minutes: minutes3.values,
@@ -10076,7 +10073,7 @@ var fnUntracedEager2 = fnUntracedEager;
10076
10073
  var Redacted_exports = {};
10077
10074
  __export(Redacted_exports, {
10078
10075
  isRedacted: () => isRedacted,
10079
- make: () => make12,
10076
+ make: () => make11,
10080
10077
  makeEquivalence: () => makeEquivalence6,
10081
10078
  value: () => value3,
10082
10079
  wipeUnsafe: () => wipeUnsafe
@@ -10096,7 +10093,7 @@ var stringOrRedacted = (val) => typeof val === "string" ? val : value2(val);
10096
10093
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/Redacted.js
10097
10094
  var TypeId15 = "~effect/Redacted";
10098
10095
  var isRedacted = (u) => hasProperty(u, TypeId15);
10099
- var make12 = (value6, options) => {
10096
+ var make11 = (value6, options) => {
10100
10097
  const self = Object.create(Proto4);
10101
10098
  if (options?.label) {
10102
10099
  self.label = options.label;
@@ -10422,7 +10419,7 @@ __export(Schema_exports, {
10422
10419
  isUppercased: () => isUppercased,
10423
10420
  link: () => link,
10424
10421
  linkDecoding: () => linkDecoding,
10425
- make: () => make26,
10422
+ make: () => make25,
10426
10423
  makeFilter: () => makeFilter2,
10427
10424
  makeFilterGroup: () => makeFilterGroup,
10428
10425
  makeIsBetween: () => makeIsBetween,
@@ -10507,7 +10504,7 @@ var BigDecimalProto = {
10507
10504
  }
10508
10505
  };
10509
10506
  var isBigDecimal = (u) => hasProperty(u, TypeId16);
10510
- var make13 = (value6, scale) => {
10507
+ var make12 = (value6, scale) => {
10511
10508
  if (!Number.isSafeInteger(scale)) {
10512
10509
  throw new RangeError(`Scale must be a safe integer, got ${scale}`);
10513
10510
  }
@@ -10517,7 +10514,7 @@ var make13 = (value6, scale) => {
10517
10514
  return o;
10518
10515
  };
10519
10516
  var makeNormalized = (value6, scale) => {
10520
- const o = make13(value6, scale);
10517
+ const o = make12(value6, scale);
10521
10518
  o.normalized = o;
10522
10519
  return o;
10523
10520
  };
@@ -10602,7 +10599,7 @@ var fromString = (s) => {
10602
10599
  if (!Number.isSafeInteger(scale)) {
10603
10600
  return none2();
10604
10601
  }
10605
- return some3(make13(BigInt(digits), scale));
10602
+ return some3(make12(BigInt(digits), scale));
10606
10603
  };
10607
10604
  var format4 = (n) => {
10608
10605
  const normalized = normalize2(n);
@@ -10725,8 +10722,8 @@ var binaryUnits = [decimalUnits[0], {
10725
10722
  var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
10726
10723
  var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
10727
10724
  var unitsBySymbol = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.map((unit) => [unit.symbol, unit]));
10728
- var make14 = (value6) => value6;
10729
- var zero3 = /* @__PURE__ */ make14(bigint05);
10725
+ var make13 = (value6) => value6;
10726
+ var zero3 = /* @__PURE__ */ make13(bigint05);
10730
10727
  var invalid2 = (message) => {
10731
10728
  throw new Error(`Invalid ByteSize: ${message}`);
10732
10729
  };
@@ -10734,18 +10731,18 @@ var fromNumber = (input) => {
10734
10731
  if (!Number.isSafeInteger(input) || input < 0) {
10735
10732
  return invalid2(`expected a non-negative safe integer, received ${input}`);
10736
10733
  }
10737
- return make14(BigInt(input));
10734
+ return make13(BigInt(input));
10738
10735
  };
10739
10736
  var fromQuantity = (quantity, unit) => {
10740
10737
  if (typeof quantity === "bigint") {
10741
10738
  if (quantity < bigint05) return invalid2(`expected a non-negative quantity, received ${quantity}`);
10742
- return make14(quantity * unit.factor);
10739
+ return make13(quantity * unit.factor);
10743
10740
  }
10744
10741
  const value6 = quantity * Number(unit.factor);
10745
10742
  if (!Number.isSafeInteger(value6) || value6 < 0) {
10746
10743
  return invalid2(`expected an exact non-negative safe-integer byte result, received ${quantity} ${unit.symbol}`);
10747
10744
  }
10748
- return make14(BigInt(value6));
10745
+ return make13(BigInt(value6));
10749
10746
  };
10750
10747
  var fromStringUnsafe = (input) => {
10751
10748
  const match10 = /^\s*(\d+)(?:\.(\d+))?\s*([A-Za-z]+)\s*$/.exec(input);
@@ -10758,14 +10755,14 @@ var fromStringUnsafe = (input) => {
10758
10755
  if (numerator % scale !== bigint05) {
10759
10756
  return invalid2(`${JSON.stringify(input)} does not represent an integral number of bytes`);
10760
10757
  }
10761
- return make14(numerator / scale);
10758
+ return make13(numerator / scale);
10762
10759
  };
10763
10760
  var fromString2 = /* @__PURE__ */ liftThrowable(fromStringUnsafe);
10764
10761
  var fromInputUnsafe2 = (input) => {
10765
10762
  switch (typeof input) {
10766
10763
  case "bigint":
10767
10764
  if (input < bigint05) return invalid2(`expected a non-negative bigint, received ${input}`);
10768
- return make14(input);
10765
+ return make13(input);
10769
10766
  case "number":
10770
10767
  return fromNumber(input);
10771
10768
  case "string":
@@ -10955,7 +10952,7 @@ var isZoned2 = isZoned;
10955
10952
  var Equivalence5 = Equivalence2;
10956
10953
  var makeUnsafe5 = makeUnsafe4;
10957
10954
  var makeZonedUnsafe2 = makeZonedUnsafe;
10958
- var make15 = make10;
10955
+ var make14 = make9;
10959
10956
  var makeZonedFromString2 = makeZonedFromString;
10960
10957
  var toUtc2 = toUtc;
10961
10958
  var zoneMakeNamedUnsafe2 = zoneMakeNamedUnsafe;
@@ -12190,7 +12187,7 @@ var Proto6 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
12190
12187
  value: BaseProto[NodeInspectSymbol]
12191
12188
  }
12192
12189
  });
12193
- var make18 = (input) => Object.assign(Object.create(Proto6), input);
12190
+ var make17 = (input) => Object.assign(Object.create(Proto6), input);
12194
12191
  var Equivalence6 = /* @__PURE__ */ makeEquivalence4(/* @__PURE__ */ strictEqual());
12195
12192
  var empty10 = /* @__PURE__ */ Object.create(Proto6);
12196
12193
  var fromInput3 = (input) => {
@@ -12217,26 +12214,26 @@ var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto6);
12217
12214
  var has5 = /* @__PURE__ */ dual(2, (self, key) => key.toLowerCase() in self);
12218
12215
  var get3 = /* @__PURE__ */ dual(2, (self, key) => fromUndefinedOr(self[key.toLowerCase()]));
12219
12216
  var set4 = /* @__PURE__ */ dual(3, (self, key, value6) => {
12220
- const out = make18(self);
12217
+ const out = make17(self);
12221
12218
  out[key.toLowerCase()] = value6;
12222
12219
  return out;
12223
12220
  });
12224
- var setAll2 = /* @__PURE__ */ dual(2, (self, headers) => make18({
12221
+ var setAll2 = /* @__PURE__ */ dual(2, (self, headers) => make17({
12225
12222
  ...self,
12226
12223
  ...fromInput3(headers)
12227
12224
  }));
12228
12225
  var merge5 = /* @__PURE__ */ dual(2, (self, headers) => {
12229
- const out = make18(self);
12226
+ const out = make17(self);
12230
12227
  Object.assign(out, headers);
12231
12228
  return out;
12232
12229
  });
12233
12230
  var remove6 = /* @__PURE__ */ dual(2, (self, key) => {
12234
- const out = make18(self);
12231
+ const out = make17(self);
12235
12232
  delete out[key.toLowerCase()];
12236
12233
  return out;
12237
12234
  });
12238
12235
  var removeMany2 = /* @__PURE__ */ dual(2, (self, keys4) => {
12239
- const out = make18(self);
12236
+ const out = make17(self);
12240
12237
  for (const key of keys4) {
12241
12238
  delete out[key.toLowerCase()];
12242
12239
  }
@@ -12250,12 +12247,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
12250
12247
  if (typeof key2 === "string") {
12251
12248
  const k = key2.toLowerCase();
12252
12249
  if (k in self) {
12253
- out[k] = make12(self[k]);
12250
+ out[k] = make11(self[k]);
12254
12251
  }
12255
12252
  } else {
12256
12253
  for (const name in self) {
12257
12254
  if (name.search(key2) !== -1) {
12258
- out[name] = make12(self[name]);
12255
+ out[name] = make11(self[name]);
12259
12256
  }
12260
12257
  }
12261
12258
  }
@@ -12308,7 +12305,7 @@ var Proto7 = {
12308
12305
  return array(this.params.flat());
12309
12306
  }
12310
12307
  };
12311
- var make19 = (params) => {
12308
+ var make18 = (params) => {
12312
12309
  const self = Object.create(Proto7);
12313
12310
  self.params = params;
12314
12311
  return self;
@@ -12327,7 +12324,7 @@ var fromInput4 = (input) => {
12327
12324
  out.push(parsed[i]);
12328
12325
  }
12329
12326
  }
12330
- return make19(out);
12327
+ return make18(out);
12331
12328
  };
12332
12329
  var fromInputNested = (input) => {
12333
12330
  const entries3 = typeof input[Symbol.iterator] === "function" ? fromIterable2(input) : Object.entries(input);
@@ -12352,10 +12349,10 @@ var fromInputNested = (input) => {
12352
12349
  };
12353
12350
  var Equivalence7 = /* @__PURE__ */ make3((a, b) => arrayEquivalence(a.params, b.params));
12354
12351
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence5(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ strictEqual()]));
12355
- var empty11 = /* @__PURE__ */ make19([]);
12352
+ var empty11 = /* @__PURE__ */ make18([]);
12356
12353
  var getFirst = /* @__PURE__ */ dual(2, (self, key) => findFirst2(self.params, ([k]) => k === key).pipe(map(([, value6]) => value6)));
12357
- var set5 = /* @__PURE__ */ dual(3, (self, key, value6) => make19(append(filter3(self.params, ([k]) => k !== key), [key, String(value6)])));
12358
- var transform = /* @__PURE__ */ dual(2, (self, f) => make19(f(self.params)));
12354
+ var set5 = /* @__PURE__ */ dual(3, (self, key, value6) => make18(append(filter3(self.params, ([k]) => k !== key), [key, String(value6)])));
12355
+ var transform = /* @__PURE__ */ dual(2, (self, f) => make18(f(self.params)));
12359
12356
  var setAll3 = /* @__PURE__ */ dual(2, (self, input) => {
12360
12357
  const params = fromInput4(input).params.slice();
12361
12358
  const keys4 = /* @__PURE__ */ new Set();
@@ -12366,9 +12363,9 @@ var setAll3 = /* @__PURE__ */ dual(2, (self, input) => {
12366
12363
  if (keys4.has(self.params[i][0])) continue;
12367
12364
  params.push(self.params[i]);
12368
12365
  }
12369
- return make19(params);
12366
+ return make18(params);
12370
12367
  });
12371
- var append2 = /* @__PURE__ */ dual(3, (self, key, value6) => make19(append(self.params, [key, String(value6)])));
12368
+ var append2 = /* @__PURE__ */ dual(3, (self, key, value6) => make18(append(self.params, [key, String(value6)])));
12372
12369
  var appendAll2 = /* @__PURE__ */ dual(2, (self, input) => transform(self, appendAll(fromInput4(input).params)));
12373
12370
  var toString = (input) => new URLSearchParams(fromInput4(input).params).toString();
12374
12371
  var toRecord2 = (self) => {
@@ -12457,7 +12454,7 @@ var ProtoGraph = {
12457
12454
  return pipeArguments(this, arguments);
12458
12455
  }
12459
12456
  };
12460
- var make20 = (type3, mutable3) => {
12457
+ var make19 = (type3, mutable3) => {
12461
12458
  const graph = Object.create(ProtoGraph);
12462
12459
  graph.type = type3;
12463
12460
  graph.mutable = mutable3;
@@ -12488,7 +12485,7 @@ var snapshot2 = (graph) => {
12488
12485
  };
12489
12486
  };
12490
12487
  var hydrate = (snapshot3) => {
12491
- const graph = make20(snapshot3.type, false);
12488
+ const graph = make19(snapshot3.type, false);
12492
12489
  for (const node of snapshot3.nodes) {
12493
12490
  graph.nodes.set(node.index, node.data);
12494
12491
  graph.adjacency.set(node.index, []);
@@ -13132,12 +13129,6 @@ __export(SchemaGetter_exports, {
13132
13129
  });
13133
13130
 
13134
13131
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/encoding/Base64Url.js
13135
- var Base64Url_exports = {};
13136
- __export(Base64Url_exports, {
13137
- decode: () => decode3,
13138
- decodeString: () => decodeString3,
13139
- encode: () => encode3
13140
- });
13141
13132
  var encode3 = (input) => encode2(input).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
13142
13133
  var decode3 = (str) => {
13143
13134
  const stripped = str.replace(/[\n\r]/g, "");
@@ -13445,7 +13436,7 @@ function decodeUriComponent() {
13445
13436
  }
13446
13437
  function dateTimeUtcFromInput() {
13447
13438
  return transformEffect((input, options) => {
13448
- return match(make15(input), {
13439
+ return match(make14(input), {
13449
13440
  onNone: () => fail7(new InvalidValue({
13450
13441
  message: "Invalid DateTime input"
13451
13442
  }, input, options)),
@@ -15941,7 +15932,7 @@ __export(SchemaParser_exports, {
15941
15932
  encodeUnknownResult: () => encodeUnknownResult,
15942
15933
  encodeUnknownSync: () => encodeUnknownSync,
15943
15934
  is: () => is,
15944
- make: () => make21,
15935
+ make: () => make20,
15945
15936
  makeEffect: () => makeEffect,
15946
15937
  makeOption: () => makeOption,
15947
15938
  run: () => run2
@@ -16222,7 +16213,7 @@ function makeOption(schema2) {
16222
16213
  return none2();
16223
16214
  };
16224
16215
  }
16225
- function make21(schema2) {
16216
+ function make20(schema2) {
16226
16217
  return makeConstructorSync(toType(schema2.ast));
16227
16218
  }
16228
16219
  function is(schema2) {
@@ -16469,11 +16460,11 @@ function makeConstructorSync(ast) {
16469
16460
  } : {
16470
16461
  disableChecks: true
16471
16462
  } : options?.parseOptions ?? defaultParseOptions;
16472
- const make43 = entry.make;
16473
- if (make43 !== void 0 && input !== missing) {
16463
+ const make42 = entry.make;
16464
+ if (make42 !== void 0 && input !== missing) {
16474
16465
  let output;
16475
16466
  try {
16476
- output = make43(input, parseOptions);
16467
+ output = make42(input, parseOptions);
16477
16468
  } catch (error) {
16478
16469
  getSchemaIssueOrThrow(die4(error), "Constructor adapter can only throw schema issues");
16479
16470
  throw error;
@@ -16493,7 +16484,7 @@ var RebuildOptions = /* @__PURE__ */ Symbol();
16493
16484
  var SchemaProto = {
16494
16485
  [TypeId25]: TypeId25,
16495
16486
  get make() {
16496
- const value6 = make21(this);
16487
+ const value6 = make20(this);
16497
16488
  Object.defineProperty(this, "make", {
16498
16489
  value: value6,
16499
16490
  enumerable: true
@@ -16529,10 +16520,10 @@ var SchemaProto = {
16529
16520
  return this.rebuild(appendChecks(this.ast, checks));
16530
16521
  },
16531
16522
  rebuild(ast) {
16532
- return make22(ast, this[RebuildOptions]);
16523
+ return make21(ast, this[RebuildOptions]);
16533
16524
  }
16534
16525
  };
16535
- function make22(ast, options) {
16526
+ function make21(ast, options) {
16536
16527
  function Schema() {
16537
16528
  }
16538
16529
  const self = Object.setPrototypeOf(Schema, SchemaProto);
@@ -17417,7 +17408,7 @@ function convertDraft04ExclusiveBound(source, out, boundKey) {
17417
17408
 
17418
17409
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/internal/schema/toCodec.js
17419
17410
  function toCodecJson(schema2) {
17420
- return make22(toCodecJsonAST(schema2.ast), {
17411
+ return make21(toCodecJsonAST(schema2.ast), {
17421
17412
  schema: schema2
17422
17413
  });
17423
17414
  }
@@ -17462,7 +17453,7 @@ function toCodecJsonASTStep(ast, recur2) {
17462
17453
  if (!isFunction(getLink)) {
17463
17454
  return replaceEncoding(ast, [unknownToJson]);
17464
17455
  }
17465
- const typeParameters = ast.typeParameters.map((tp) => make22(toEncoded(tp)));
17456
+ const typeParameters = ast.typeParameters.map((tp) => make21(toEncoded(tp)));
17466
17457
  const link2 = getLink(typeParameters);
17467
17458
  return link2 === void 0 ? ast : replaceEncoding(ast, [mapLink(link2, recur2)]);
17468
17459
  }
@@ -17497,7 +17488,7 @@ function toCodecJsonASTStep(ast, recur2) {
17497
17488
  return ast;
17498
17489
  }
17499
17490
  function toCodecIso(schema2) {
17500
- return make22(toCodecIsoAST(toType(schema2.ast)));
17491
+ return make21(toCodecIsoAST(toType(schema2.ast)));
17501
17492
  }
17502
17493
  var toCodecIsoAST = /* @__PURE__ */ memoize((ast) => {
17503
17494
  const out = toCodecIsoASTStep(ast, toCodecIsoAST);
@@ -17508,7 +17499,7 @@ function toCodecIsoASTStep(ast, recur2) {
17508
17499
  case "Declaration": {
17509
17500
  const getLink = ast.annotations?.toCodecIso ?? ast.annotations?.toCodec;
17510
17501
  if (isFunction(getLink)) {
17511
- const link2 = getLink(ast.typeParameters.map((tp) => make22(tp)));
17502
+ const link2 = getLink(ast.typeParameters.map((tp) => make21(tp)));
17512
17503
  return replaceEncoding(ast, [mapLink(link2, recur2)]);
17513
17504
  }
17514
17505
  return ast;
@@ -17522,12 +17513,12 @@ function toCodecIsoASTStep(ast, recur2) {
17522
17513
  return ast;
17523
17514
  }
17524
17515
  function toCodecStringTree(schema2) {
17525
- return make22(toCodecStringTreeAST(schema2.ast), {
17516
+ return make21(toCodecStringTreeAST(schema2.ast), {
17526
17517
  schema: schema2
17527
17518
  });
17528
17519
  }
17529
17520
  function toCodecArrayFromSingle(schema2) {
17530
- return make22(toCodecArrayFromSingleAST(schema2.ast));
17521
+ return make21(toCodecArrayFromSingleAST(schema2.ast));
17531
17522
  }
17532
17523
  var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
17533
17524
  switch (ast._tag) {
@@ -17545,7 +17536,7 @@ var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
17545
17536
  function toCodecStringTreeASTStep(ast, recur2, onMissingAnnotation) {
17546
17537
  switch (ast._tag) {
17547
17538
  case "Declaration": {
17548
- const typeParameters = ast.typeParameters.map((tp) => make22(recur2(toEncoded(tp))));
17539
+ const typeParameters = ast.typeParameters.map((tp) => make21(recur2(toEncoded(tp))));
17549
17540
  const getStringTreeLink = ast.annotations?.toCodecStringTree;
17550
17541
  if (isFunction(getStringTreeLink)) {
17551
17542
  const link3 = getStringTreeLink(typeParameters);
@@ -19410,10 +19401,10 @@ function buildStruct(source, f) {
19410
19401
 
19411
19402
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/Optic.js
19412
19403
  function makeIso(get12, set10) {
19413
- return make23(primitiveNode("Iso", get12, set10));
19404
+ return make22(primitiveNode("Iso", get12, set10));
19414
19405
  }
19415
19406
  function makeLens(get12, replace) {
19416
- return make23(primitiveNode("Lens", get12, replace));
19407
+ return make22(primitiveNode("Lens", get12, replace));
19417
19408
  }
19418
19409
  function primitiveNode(kind, get12, set10) {
19419
19410
  return [{
@@ -19486,7 +19477,7 @@ function compose4(a, b) {
19486
19477
  return nodes;
19487
19478
  }
19488
19479
  function makeOptional(getResult, set10) {
19489
- return make23(primitiveNode("Optional", getResult, set10));
19480
+ return make22(primitiveNode("Optional", getResult, set10));
19490
19481
  }
19491
19482
  var OptionalImpl = class {
19492
19483
  /** @internal */
@@ -19505,13 +19496,13 @@ var OptionalImpl = class {
19505
19496
  return (s) => getOrElse3(flatMap2(this.getResult(s), (a) => this.replaceResult(f(a), s)), () => s);
19506
19497
  }
19507
19498
  compose(that) {
19508
- return make23(compose4(this.node, that.node));
19499
+ return make22(compose4(this.node, that.node));
19509
19500
  }
19510
19501
  key(key) {
19511
- return make23(compose4(this.node, [new PathNode([key])]));
19502
+ return make22(compose4(this.node, [new PathNode([key])]));
19512
19503
  }
19513
19504
  optionalKey(key) {
19514
- return make23(compose4(this.node, primitiveNode("Lens", (s) => s[key], (a, s) => {
19505
+ return make22(compose4(this.node, primitiveNode("Lens", (s) => s[key], (a, s) => {
19515
19506
  const copy3 = cloneShallow(s);
19516
19507
  if (a === void 0) {
19517
19508
  if (Array.isArray(copy3) && (typeof key === "number" || typeof key === "string" && isCanonicalArrayIndex(key))) {
@@ -19526,20 +19517,20 @@ var OptionalImpl = class {
19526
19517
  })));
19527
19518
  }
19528
19519
  check(...checks) {
19529
- return make23(compose4(this.node, [new CheckNode(checks)]));
19520
+ return make22(compose4(this.node, [new CheckNode(checks)]));
19530
19521
  }
19531
19522
  refine(refinement, annotations2) {
19532
- return make23(compose4(this.node, [new CheckNode([makeFilterByGuard(refinement, annotations2)])]));
19523
+ return make22(compose4(this.node, [new CheckNode([makeFilterByGuard(refinement, annotations2)])]));
19533
19524
  }
19534
19525
  tag(tag4) {
19535
19526
  const err = fail2(new InvalidValue({
19536
19527
  expected: `${JSON.stringify(tag4)} tag`
19537
19528
  }));
19538
- return make23(compose4(this.node, primitiveNode("Prism", (s) => s._tag === tag4 ? succeed2(s) : err, identity)));
19529
+ return make22(compose4(this.node, primitiveNode("Prism", (s) => s._tag === tag4 ? succeed2(s) : err, identity)));
19539
19530
  }
19540
19531
  at(key, ..._rest) {
19541
19532
  const err = fail2(new Pointer([key], new MissingKey(void 0)));
19542
- return make23(compose4(this.node, primitiveNode("Optional", (s) => Object.hasOwn(s, key) ? succeed2(s[key]) : err, (a, s) => {
19533
+ return make22(compose4(this.node, primitiveNode("Optional", (s) => Object.hasOwn(s, key) ? succeed2(s[key]) : err, (a, s) => {
19543
19534
  if (Object.hasOwn(s, key)) {
19544
19535
  const copy3 = cloneShallow(s);
19545
19536
  assignProperty(copy3, key, a);
@@ -19645,7 +19636,7 @@ var PrismImpl = class extends OptionalImpl {
19645
19636
  return (s) => getOrElse3(map2(this.getResult(s), (a) => this.set(f(a))), () => s);
19646
19637
  }
19647
19638
  };
19648
- function make23(node) {
19639
+ function make22(node) {
19649
19640
  let op = node[0] ?? identityOperation;
19650
19641
  if (node.length > 1) {
19651
19642
  const kind = node.reduce((kind2, step) => composeKind(kind2, step.kind), "Iso");
@@ -19749,7 +19740,7 @@ function composeKind(a, b) {
19749
19740
  if (b === "Iso" || a === b) return a;
19750
19741
  return "Optional";
19751
19742
  }
19752
- var identityIso = /* @__PURE__ */ make23([]);
19743
+ var identityIso = /* @__PURE__ */ make22([]);
19753
19744
  function id() {
19754
19745
  return identityIso;
19755
19746
  }
@@ -20230,7 +20221,7 @@ var interfaceError = (input, message) => fail2(new NetAddressError({
20230
20221
  input,
20231
20222
  message
20232
20223
  }));
20233
- var make24 = (address, prefixLength) => {
20224
+ var make23 = (address, prefixLength) => {
20234
20225
  const max7 = width(address);
20235
20226
  if (!Number.isInteger(prefixLength) || prefixLength < 0 || prefixLength > max7) {
20236
20227
  return interfaceError(address, `prefix length must be an integer from 0 through ${max7}`);
@@ -20261,9 +20252,9 @@ var parseAddressWithPrefix = (input, options) => {
20261
20252
  prefixLength: Number(prefix)
20262
20253
  });
20263
20254
  };
20264
- var ipv4FromString2 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipv4FromString(parts2.address), (address) => make24(address, parts2.prefixLength ?? width(address))));
20265
- var ipv6FromString2 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipv6FromString(parts2.address), (address) => make24(address, parts2.prefixLength ?? width(address))));
20266
- var fromString3 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipFromString(parts2.address), (address) => make24(address, parts2.prefixLength ?? width(address))));
20255
+ var ipv4FromString2 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipv4FromString(parts2.address), (address) => make23(address, parts2.prefixLength ?? width(address))));
20256
+ var ipv6FromString2 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipv6FromString(parts2.address), (address) => make23(address, parts2.prefixLength ?? width(address))));
20257
+ var fromString3 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipFromString(parts2.address), (address) => make23(address, parts2.prefixLength ?? width(address))));
20267
20258
  var format6 = (self) => `${formatIp(self.address)}/${self.prefixLength}`;
20268
20259
 
20269
20260
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/net/IpNetwork.js
@@ -20307,8 +20298,8 @@ var maskBytes = (bytes2, prefixLength) => {
20307
20298
  return 0;
20308
20299
  });
20309
20300
  };
20310
- var make25 = (address, prefixLength) => {
20311
- return flatMap2(make24(address, prefixLength), (value6) => {
20301
+ var make24 = (address, prefixLength) => {
20302
+ return flatMap2(make23(address, prefixLength), (value6) => {
20312
20303
  const bytes2 = toBytes(address);
20313
20304
  const masked = maskBytes(bytes2, prefixLength);
20314
20305
  if (bytes2.some((byte, index2) => byte !== masked[index2])) {
@@ -20323,17 +20314,17 @@ var make25 = (address, prefixLength) => {
20323
20314
  var ipv4FromString3 = (input) => {
20324
20315
  return flatMap2(ipv4FromString2(input, {
20325
20316
  prefix: "required"
20326
- }), (value6) => make25(value6.address, value6.prefixLength));
20317
+ }), (value6) => make24(value6.address, value6.prefixLength));
20327
20318
  };
20328
20319
  var ipv6FromString3 = (input) => {
20329
20320
  return flatMap2(ipv6FromString2(input, {
20330
20321
  prefix: "required"
20331
- }), (value6) => make25(value6.address, value6.prefixLength));
20322
+ }), (value6) => make24(value6.address, value6.prefixLength));
20332
20323
  };
20333
20324
  var fromString4 = (input) => {
20334
20325
  return flatMap2(fromString3(input, {
20335
20326
  prefix: "required"
20336
- }), (value6) => make25(value6.address, value6.prefixLength));
20327
+ }), (value6) => make24(value6.address, value6.prefixLength));
20337
20328
  };
20338
20329
  var format7 = (self) => `${formatIp(self.address)}/${self.prefixLength}`;
20339
20330
 
@@ -20341,7 +20332,7 @@ var format7 = (self) => `${formatIp(self.address)}/${self.prefixLength}`;
20341
20332
  var TypeId29 = TypeId25;
20342
20333
  function declareConstructor() {
20343
20334
  return (typeParameters, run5, annotations2) => {
20344
- return make26(new Declaration(typeParameters.map(getAST), (typeParameters2) => run5(typeParameters2.map((ast) => make26(ast))), annotations2));
20335
+ return make25(new Declaration(typeParameters.map(getAST), (typeParameters2) => run5(typeParameters2.map((ast) => make25(ast))), annotations2));
20345
20336
  };
20346
20337
  }
20347
20338
  function declare(is5, annotations2) {
@@ -20510,29 +20501,29 @@ function encodeUnknownSync2(schema2, options) {
20510
20501
  };
20511
20502
  }
20512
20503
  var encodeSync2 = encodeUnknownSync2;
20513
- var make26 = make22;
20504
+ var make25 = make21;
20514
20505
  function isSchema(u) {
20515
20506
  return hasProperty(u, TypeId29) && u[TypeId29] === TypeId29;
20516
20507
  }
20517
- var optionalKey2 = /* @__PURE__ */ lambda((schema2) => make26(optionalKey(schema2.ast), {
20508
+ var optionalKey2 = /* @__PURE__ */ lambda((schema2) => make25(optionalKey(schema2.ast), {
20518
20509
  schema: schema2
20519
20510
  }));
20520
20511
  var requiredKey = /* @__PURE__ */ lambda((self) => self.schema);
20521
20512
  var optional2 = /* @__PURE__ */ lambda((self) => {
20522
20513
  const schema2 = UndefinedOr(self);
20523
- return make26(optional(self.ast), {
20514
+ return make25(optional(self.ast), {
20524
20515
  schema: schema2
20525
20516
  });
20526
20517
  });
20527
20518
  var required2 = /* @__PURE__ */ lambda((self) => self.schema.members[0]);
20528
- var mutableKey2 = /* @__PURE__ */ lambda((schema2) => make26(mutableKey(schema2.ast), {
20519
+ var mutableKey2 = /* @__PURE__ */ lambda((schema2) => make25(mutableKey(schema2.ast), {
20529
20520
  schema: schema2
20530
20521
  }));
20531
20522
  var readonlyKey = /* @__PURE__ */ lambda((self) => self.schema);
20532
- var toType2 = /* @__PURE__ */ lambda((schema2) => make26(toType(schema2.ast), {
20523
+ var toType2 = /* @__PURE__ */ lambda((schema2) => make25(toType(schema2.ast), {
20533
20524
  schema: schema2
20534
20525
  }));
20535
- var toEncoded2 = /* @__PURE__ */ lambda((schema2) => make26(toEncoded(schema2.ast), {
20526
+ var toEncoded2 = /* @__PURE__ */ lambda((schema2) => make25(toEncoded(schema2.ast), {
20536
20527
  schema: schema2
20537
20528
  }));
20538
20529
  var FlipTypeId = "~effect/Schema/flip";
@@ -20543,13 +20534,13 @@ function flip5(schema2) {
20543
20534
  if (isFlip$(schema2)) {
20544
20535
  return schema2.schema.rebuild(flip4(schema2.ast));
20545
20536
  }
20546
- return make26(flip4(schema2.ast), {
20537
+ return make25(flip4(schema2.ast), {
20547
20538
  [FlipTypeId]: FlipTypeId,
20548
20539
  schema: schema2
20549
20540
  });
20550
20541
  }
20551
20542
  function Literal2(literal) {
20552
- const out = make26(new Literal(literal), {
20543
+ const out = make25(new Literal(literal), {
20553
20544
  literal,
20554
20545
  transform(to) {
20555
20546
  return out.pipe(decodeTo2(Literal2(to), {
@@ -20564,38 +20555,38 @@ function templateLiteralParts(parts2) {
20564
20555
  return parts2.map((part) => isSchema(part) ? part.ast : new Literal(part));
20565
20556
  }
20566
20557
  function TemplateLiteral2(parts2) {
20567
- return make26(new TemplateLiteral(templateLiteralParts(parts2)), {
20558
+ return make25(new TemplateLiteral(templateLiteralParts(parts2)), {
20568
20559
  parts: parts2
20569
20560
  });
20570
20561
  }
20571
20562
  function TemplateLiteralParser(parts2) {
20572
- return make26(templateLiteralParser(templateLiteralParts(parts2)), {
20563
+ return make25(templateLiteralParser(templateLiteralParts(parts2)), {
20573
20564
  parts: parts2
20574
20565
  });
20575
20566
  }
20576
20567
  function Enum2(enums) {
20577
- return make26(new Enum(Object.keys(enums).filter((key) => typeof enums[enums[key]] !== "number").map((key) => [key, enums[key]])), {
20568
+ return make25(new Enum(Object.keys(enums).filter((key) => typeof enums[enums[key]] !== "number").map((key) => [key, enums[key]])), {
20578
20569
  enums
20579
20570
  });
20580
20571
  }
20581
- var Never2 = /* @__PURE__ */ make26(never3);
20582
- var Any2 = /* @__PURE__ */ make26(any);
20583
- var Unknown2 = /* @__PURE__ */ make26(unknown);
20584
- var Null2 = /* @__PURE__ */ make26(null_);
20585
- var Undefined2 = /* @__PURE__ */ make26(undefined_3);
20586
- var String6 = /* @__PURE__ */ make26(string2);
20572
+ var Never2 = /* @__PURE__ */ make25(never3);
20573
+ var Any2 = /* @__PURE__ */ make25(any);
20574
+ var Unknown2 = /* @__PURE__ */ make25(unknown);
20575
+ var Null2 = /* @__PURE__ */ make25(null_);
20576
+ var Undefined2 = /* @__PURE__ */ make25(undefined_3);
20577
+ var String6 = /* @__PURE__ */ make25(string2);
20587
20578
  var StringForLiteralAutocomplete = String6;
20588
- var Number6 = /* @__PURE__ */ make26(number2);
20589
- var Boolean3 = /* @__PURE__ */ make26(boolean);
20590
- var Symbol3 = /* @__PURE__ */ make26(symbol3);
20591
- var BigInt6 = /* @__PURE__ */ make26(bigInt);
20592
- var Void2 = /* @__PURE__ */ make26(void_6);
20593
- var ObjectKeyword2 = /* @__PURE__ */ make26(objectKeyword);
20579
+ var Number6 = /* @__PURE__ */ make25(number2);
20580
+ var Boolean3 = /* @__PURE__ */ make25(boolean);
20581
+ var Symbol3 = /* @__PURE__ */ make25(symbol3);
20582
+ var BigInt6 = /* @__PURE__ */ make25(bigInt);
20583
+ var Void2 = /* @__PURE__ */ make25(void_6);
20584
+ var ObjectKeyword2 = /* @__PURE__ */ make25(objectKeyword);
20594
20585
  function UniqueSymbol2(symbol6) {
20595
- return make26(new UniqueSymbol(symbol6));
20586
+ return make25(new UniqueSymbol(symbol6));
20596
20587
  }
20597
20588
  function makeStruct(ast, fields) {
20598
- return make26(ast, {
20589
+ return make25(ast, {
20599
20590
  fields,
20600
20591
  mapFields(f, options) {
20601
20592
  const fields2 = f(this.fields);
@@ -20671,19 +20662,19 @@ function extendTo(fields, derive) {
20671
20662
  };
20672
20663
  }
20673
20664
  function Record(key, value6) {
20674
- return make26(record(key.ast, value6.ast), {
20665
+ return make25(record(key.ast, value6.ast), {
20675
20666
  key,
20676
20667
  value: value6
20677
20668
  });
20678
20669
  }
20679
20670
  function StructWithRest(schema2, records) {
20680
- return make26(structWithRest(schema2.ast, records.map(getAST)), {
20671
+ return make25(structWithRest(schema2.ast, records.map(getAST)), {
20681
20672
  schema: schema2,
20682
20673
  records
20683
20674
  });
20684
20675
  }
20685
20676
  function makeTuple(ast, elements) {
20686
- return make26(ast, {
20677
+ return make25(ast, {
20687
20678
  elements,
20688
20679
  mapElements(f, options) {
20689
20680
  const elements2 = f(this.elements);
@@ -20695,12 +20686,12 @@ function Tuple3(elements) {
20695
20686
  return makeTuple(tuple(elements), elements);
20696
20687
  }
20697
20688
  function TupleWithRest(schema2, rest) {
20698
- return make26(tupleWithRest(schema2.ast, rest.map(getAST)), {
20689
+ return make25(tupleWithRest(schema2.ast, rest.map(getAST)), {
20699
20690
  schema: schema2,
20700
20691
  rest
20701
20692
  });
20702
20693
  }
20703
- var ArraySchema = /* @__PURE__ */ lambda((schema2) => make26(new Arrays(false, [], [schema2.ast]), {
20694
+ var ArraySchema = /* @__PURE__ */ lambda((schema2) => make25(new Arrays(false, [], [schema2.ast]), {
20704
20695
  value: schema2
20705
20696
  }));
20706
20697
  function withArrayLengthConstraints(self, minimum, maximum) {
@@ -20711,7 +20702,7 @@ function withArrayLengthConstraints(self, minimum, maximum) {
20711
20702
  if (maximum !== void 0) return self.check(isMaxLength(maximum));
20712
20703
  return self;
20713
20704
  }
20714
- var NonEmptyArray = /* @__PURE__ */ lambda((schema2) => make26(new Arrays(false, [schema2.ast], [schema2.ast]), {
20705
+ var NonEmptyArray = /* @__PURE__ */ lambda((schema2) => make25(new Arrays(false, [schema2.ast], [schema2.ast]), {
20715
20706
  value: schema2
20716
20707
  }));
20717
20708
  function ArrayEnsure(schema2) {
@@ -20721,7 +20712,7 @@ function ArrayEnsure(schema2) {
20721
20712
  decode: (value6) => [value6],
20722
20713
  encode: ([value6]) => value6
20723
20714
  }))(schema2);
20724
- return make26(Union2([one, many]).pipe(decodeTo2(to)).ast, {
20715
+ return make25(Union2([one, many]).pipe(decodeTo2(to)).ast, {
20725
20716
  from: Union2([schema2, many]),
20726
20717
  to
20727
20718
  });
@@ -20729,11 +20720,11 @@ function ArrayEnsure(schema2) {
20729
20720
  function UniqueArray(item) {
20730
20721
  return ArraySchema(item).check(isUnique());
20731
20722
  }
20732
- var mutable2 = /* @__PURE__ */ lambda((schema2) => make26(mutable(schema2.ast), {
20723
+ var mutable2 = /* @__PURE__ */ lambda((schema2) => make25(mutable(schema2.ast), {
20733
20724
  schema: schema2
20734
20725
  }));
20735
20726
  function makeUnion(ast, members) {
20736
- return make26(ast, {
20727
+ return make25(ast, {
20737
20728
  members,
20738
20729
  mapMembers(f, options) {
20739
20730
  const members2 = f(this.members);
@@ -20746,7 +20737,7 @@ function Union2(members, options) {
20746
20737
  }
20747
20738
  function Literals(literals) {
20748
20739
  const members = literals.map(Literal2);
20749
- return make26(union4(members, void 0, void 0), {
20740
+ return make25(union4(members, void 0, void 0), {
20750
20741
  literals,
20751
20742
  members,
20752
20743
  mapMembers(f) {
@@ -20764,18 +20755,18 @@ var NullOr = /* @__PURE__ */ lambda((self) => Union2([self, Null2]));
20764
20755
  var UndefinedOr = /* @__PURE__ */ lambda((self) => Union2([self, Undefined2]));
20765
20756
  var NullishOr = /* @__PURE__ */ lambda((self) => Union2([self, Null2, Undefined2]));
20766
20757
  function suspend4(f) {
20767
- return make26(new Suspend(() => f().ast));
20758
+ return make25(new Suspend(() => f().ast));
20768
20759
  }
20769
20760
  function check(...checks) {
20770
20761
  return (self) => self.check(...checks);
20771
20762
  }
20772
20763
  function refine(refinement, annotations2) {
20773
- return (schema2) => make26(appendChecks(schema2.ast, [makeFilterByGuard(refinement, annotations2)]), {
20764
+ return (schema2) => make25(appendChecks(schema2.ast, [makeFilterByGuard(refinement, annotations2)]), {
20774
20765
  schema: schema2
20775
20766
  });
20776
20767
  }
20777
20768
  function brand(identifier2) {
20778
- return (schema2) => make26(schema2.ast, {
20769
+ return (schema2) => make25(schema2.ast, {
20779
20770
  schema: schema2,
20780
20771
  identifier: identifier2
20781
20772
  });
@@ -20787,12 +20778,12 @@ function fromBrand(identifier2, ctor) {
20787
20778
  );
20788
20779
  }
20789
20780
  function middlewareDecoding2(decode6) {
20790
- return (schema2) => make26(middlewareDecoding(schema2.ast, new Middleware(decode6, identity)), {
20781
+ return (schema2) => make25(middlewareDecoding(schema2.ast, new Middleware(decode6, identity)), {
20791
20782
  schema: schema2
20792
20783
  });
20793
20784
  }
20794
20785
  function middlewareEncoding2(encode5) {
20795
- return (schema2) => make26(middlewareEncoding(schema2.ast, new Middleware(identity, encode5)), {
20786
+ return (schema2) => make25(middlewareEncoding(schema2.ast, new Middleware(identity, encode5)), {
20796
20787
  schema: schema2
20797
20788
  });
20798
20789
  }
@@ -20810,7 +20801,7 @@ function catchEncodingWithContext(f) {
20810
20801
  }
20811
20802
  function decodeTo2(to, transformation) {
20812
20803
  return (from) => {
20813
- return make26(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
20804
+ return make25(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
20814
20805
  from,
20815
20806
  to
20816
20807
  });
@@ -20844,7 +20835,7 @@ function encode4(transformation) {
20844
20835
  };
20845
20836
  }
20846
20837
  function withConstructorDefault2(defaultValue) {
20847
- return (schema2) => make26(withConstructorDefault(schema2.ast, defaultValue), {
20838
+ return (schema2) => make25(withConstructorDefault(schema2.ast, defaultValue), {
20848
20839
  schema: schema2
20849
20840
  });
20850
20841
  }
@@ -20980,7 +20971,7 @@ function TaggedUnion(casesByTag) {
20980
20971
  match: match10,
20981
20972
  matchOrElse
20982
20973
  } = toTaggedUnion("_tag")(union5);
20983
- return make26(union5.ast, {
20974
+ return make25(union5.ast, {
20984
20975
  cases,
20985
20976
  isAnyOf,
20986
20977
  guards,
@@ -21337,7 +21328,7 @@ function isUncapitalized(annotations2) {
21337
21328
  ...annotations2
21338
21329
  });
21339
21330
  }
21340
- var Finite = /* @__PURE__ */ make26(finite);
21331
+ var Finite = /* @__PURE__ */ make25(finite);
21341
21332
  var isFinite3 = isFinite2;
21342
21333
  function makeIsGreaterThan(options) {
21343
21334
  const gt = isGreaterThan(options.order);
@@ -22323,7 +22314,7 @@ function ReadonlyMap(key, value6) {
22323
22314
  encode: (map18) => [...map18.entries()]
22324
22315
  }))
22325
22316
  });
22326
- return make26(schema2.ast, {
22317
+ return make25(schema2.ast, {
22327
22318
  key,
22328
22319
  value: value6
22329
22320
  });
@@ -22357,7 +22348,7 @@ function ReadonlySet(value6) {
22357
22348
  encode: (set10) => [...set10.values()]
22358
22349
  }))
22359
22350
  });
22360
- return make26(schema2.ast, {
22351
+ return make25(schema2.ast, {
22361
22352
  value: value6
22362
22353
  });
22363
22354
  }
@@ -22542,7 +22533,7 @@ var NumberFromString = /* @__PURE__ */ String6.annotate({
22542
22533
  var FiniteFromString = /* @__PURE__ */ String6.annotate({
22543
22534
  expected: "a string that will be decoded as a finite number"
22544
22535
  }).pipe(/* @__PURE__ */ decodeTo2(Finite, numberFromString));
22545
- var BigIntFromString = /* @__PURE__ */ make26(bigIntString).pipe(/* @__PURE__ */ decodeTo2(BigInt6, bigintFromString));
22536
+ var BigIntFromString = /* @__PURE__ */ make25(bigIntString).pipe(/* @__PURE__ */ decodeTo2(BigInt6, bigintFromString));
22546
22537
  var Trimmed = /* @__PURE__ */ String6.check(/* @__PURE__ */ isTrimmed());
22547
22538
  var Trim = /* @__PURE__ */ String6.annotate({
22548
22539
  expected: "a string that will be decoded as a trimmed string"
@@ -22745,7 +22736,7 @@ function CauseReason(error, defect) {
22745
22736
  }
22746
22737
  }))
22747
22738
  });
22748
- return make26(schema2.ast, {
22739
+ return make25(schema2.ast, {
22749
22740
  error,
22750
22741
  defect
22751
22742
  });
@@ -22782,7 +22773,7 @@ function Cause(error, defect) {
22782
22773
  }) => failures
22783
22774
  }))
22784
22775
  });
22785
- return make26(schema2.ast, {
22776
+ return make25(schema2.ast, {
22786
22777
  error,
22787
22778
  defect
22788
22779
  });
@@ -22824,13 +22815,13 @@ function Chunk(value6) {
22824
22815
  }) => chunkLink(withArrayLengthConstraints(ArraySchema(value7), constraint?.minLength, constraint?.maxLength)),
22825
22816
  toEquivalence: ([value7]) => makeEquivalence7(value7)
22826
22817
  });
22827
- return make26(schema2.ast, {
22818
+ return make25(schema2.ast, {
22828
22819
  value: value6
22829
22820
  });
22830
22821
  }
22831
22822
  function dateTimeUtcFromInput2() {
22832
22823
  return transformEffect((input, options) => {
22833
- return match(make15(input), {
22824
+ return match(make14(input), {
22834
22825
  onNone: () => fail7(new InvalidValue({
22835
22826
  message: "Invalid DateTime input"
22836
22827
  }, input, options)),
@@ -22866,7 +22857,7 @@ var timeZoneFromString = /* @__PURE__ */ transformEffect2({
22866
22857
  });
22867
22858
  var dateTimeUtcFromString = /* @__PURE__ */ transformEffect2({
22868
22859
  decode: (s, options) => {
22869
- return match(make15(s), {
22860
+ return match(make14(s), {
22870
22861
  onNone: () => fail7(new InvalidValue({
22871
22862
  expected: "a valid UTC DateTime string"
22872
22863
  }, s, options)),
@@ -23263,7 +23254,7 @@ function Exit(value6, error, defect) {
23263
23254
  }
23264
23255
  }))
23265
23256
  });
23266
- return make26(schema2.ast, {
23257
+ return make25(schema2.ast, {
23267
23258
  value: value6,
23268
23259
  error,
23269
23260
  defect
@@ -23401,7 +23392,7 @@ function Graph(type3, node, edge) {
23401
23392
  }) => graphToArbitrary(type3, node2, edge2),
23402
23393
  toEquivalence: ([node2, edge2]) => graphToEquivalence(node2, edge2)
23403
23394
  });
23404
- return make26(schema2.ast, {
23395
+ return make25(schema2.ast, {
23405
23396
  type: type3,
23406
23397
  node,
23407
23398
  edge
@@ -23445,7 +23436,7 @@ function HashMap(key, value6) {
23445
23436
  }) => hashMapLink(withArrayLengthConstraints(ArraySchema(Tuple3([key2, value7])).check(isUniqueKey()), constraint?.minSize, constraint?.maxSize)),
23446
23437
  toEquivalence: ([key2, value7]) => makeCompareMap(key2, value7)
23447
23438
  });
23448
- return make26(schema2.ast, {
23439
+ return make25(schema2.ast, {
23449
23440
  key,
23450
23441
  value: value6
23451
23442
  });
@@ -23487,7 +23478,7 @@ function HashSet(value6) {
23487
23478
  }) => hashSetLink(withArrayLengthConstraints(ArraySchema(value7).check(isUnique()), constraint?.minSize, constraint?.maxSize)),
23488
23479
  toEquivalence: ([value7]) => makeCompareSet(value7)
23489
23480
  });
23490
- return make26(schema2.ast, {
23481
+ return make25(schema2.ast, {
23491
23482
  value: value6
23492
23483
  });
23493
23484
  }
@@ -23531,7 +23522,7 @@ function Option(value6) {
23531
23522
  }
23532
23523
  }))
23533
23524
  });
23534
- return make26(schema2.ast, {
23525
+ return make25(schema2.ast, {
23535
23526
  value: value6
23536
23527
  });
23537
23528
  }
@@ -23612,7 +23603,7 @@ var UrlParams = /* @__PURE__ */ declare(isUrlParams, {
23612
23603
  expected: "UrlParams",
23613
23604
  toEquivalence: () => Equivalence7,
23614
23605
  toCodec: () => link()(ArraySchema(Tuple3([String6, String6])), transform3({
23615
- decode: make19,
23606
+ decode: make18,
23616
23607
  encode: (self) => self.params
23617
23608
  }))
23618
23609
  });
@@ -23621,7 +23612,7 @@ var JsonFromUrlParamsField = (field, options) => UrlParams.pipe(decodeTo2(fromJs
23621
23612
  onNone: () => fail7(new Pointer([field], new MissingKey(void 0))),
23622
23613
  onSome: succeed7
23623
23614
  }),
23624
- encode: (value6) => succeed7(make19([[field, value6]]))
23615
+ encode: (value6) => succeed7(make18([[field, value6]]))
23625
23616
  })));
23626
23617
  var RecordFromUrlParams = /* @__PURE__ */ UrlParams.pipe(/* @__PURE__ */ decodeTo2(/* @__PURE__ */ Record(String6, /* @__PURE__ */ Union2([String6, /* @__PURE__ */ NonEmptyArray(String6)])), /* @__PURE__ */ transform3({
23627
23618
  decode: toReadonlyRecord,
@@ -23657,7 +23648,7 @@ function Redacted(value6, options) {
23657
23648
  if (isRedacted(input)) {
23658
23649
  const label2 = decodeLabel !== void 0 ? mapErrorEager2(decodeLabel(input.label, poptions), (issue) => new Pointer(["label"], issue)) : void_5;
23659
23650
  return flatMapEager2(label2, () => mapBothEager2(decodeUnknownEffect(value7)(value3(input), poptions), {
23660
- onSuccess: (value8) => make12(value8, {
23651
+ onSuccess: (value8) => make11(value8, {
23661
23652
  label: input.label
23662
23653
  }),
23663
23654
  onFailure: () => {
@@ -23680,14 +23671,14 @@ function Redacted(value6, options) {
23680
23671
  }),
23681
23672
  expected: "Redacted",
23682
23673
  toCodecJson: ([value7]) => link()(value7, {
23683
- decode: transform2((e) => make12(e, {
23674
+ decode: transform2((e) => make11(e, {
23684
23675
  label
23685
23676
  })),
23686
23677
  encode: disallowJsonEncode ? forbidden((oe) => "Cannot serialize Redacted" + (isSome2(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform2(value3)
23687
23678
  }),
23688
23679
  toEquivalence: ([value7]) => makeEquivalence6(value7)
23689
23680
  });
23690
- return make26(schema2.ast, {
23681
+ return make25(schema2.ast, {
23691
23682
  value: value6
23692
23683
  });
23693
23684
  }
@@ -23696,7 +23687,7 @@ function RedactedFromValue(value6, options) {
23696
23687
  label: options?.label,
23697
23688
  disallowJsonEncode: options?.disallowEncode
23698
23689
  }), {
23699
- decode: transform2((t) => make12(t, {
23690
+ decode: transform2((t) => make11(t, {
23700
23691
  label: options?.label
23701
23692
  })),
23702
23693
  encode: options?.disallowEncode ? forbidden((oe) => "Cannot encode Redacted" + (isSome2(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform2(value3)
@@ -23749,7 +23740,7 @@ function Result(success, failure) {
23749
23740
  }
23750
23741
  }))
23751
23742
  });
23752
- return make26(schema2.ast, {
23743
+ return make25(schema2.ast, {
23753
23744
  success,
23754
23745
  failure
23755
23746
  });
@@ -23790,7 +23781,7 @@ function makeClass(Inherited, identifier2, struct2, annotations2, proto) {
23790
23781
  return getClassSchema(this).rebuild(ast);
23791
23782
  }
23792
23783
  static make(input, options) {
23793
- return make21(getClassSchema(this))(input ?? {}, options);
23784
+ return make20(getClassSchema(this))(input ?? {}, options);
23794
23785
  }
23795
23786
  static makeOption(input, options) {
23796
23787
  return makeOption(getClassSchema(this))(input ?? {}, options);
@@ -23849,7 +23840,7 @@ function getClassSchemaFactory(from, identifier2, annotations2) {
23849
23840
  const ClassTypeId = getClassTypeId(identifier2);
23850
23841
  const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
23851
23842
  const transformation = getClassTransformation(self);
23852
- const to = make26(new Declaration([from.ast], () => (input, ast, options) => {
23843
+ const to = make25(new Declaration([from.ast], () => (input, ast, options) => {
23853
23844
  return isClassValue(input) ? succeed7(input) : fail7(new InvalidType(ast, input, options));
23854
23845
  }, {
23855
23846
  identifier: identifier2,
@@ -23949,7 +23940,7 @@ function toIsoFocus2(schema2) {
23949
23940
  }
23950
23941
  function overrideToCodecIso(to, transformation) {
23951
23942
  return (schema2) => {
23952
- return make26(annotate2(schema2.ast, {
23943
+ return make25(annotate2(schema2.ast, {
23953
23944
  toCodecIso: () => new Link(to.ast, makeTransformation(transformation))
23954
23945
  }), {
23955
23946
  schema: schema2
@@ -23964,7 +23955,7 @@ function Tree(node) {
23964
23955
  const Tree2 = Union2([node, ArraySchema(Tree$ref), Record(String6, Tree$ref)]);
23965
23956
  return Tree2;
23966
23957
  }
23967
- var Json2 = /* @__PURE__ */ make26(/* @__PURE__ */ annotate2(Json, {
23958
+ var Json2 = /* @__PURE__ */ make25(/* @__PURE__ */ annotate2(Json, {
23968
23959
  toCode: () => ({
23969
23960
  runtime: "Schema.Json",
23970
23961
  Type: "Schema.Json"
@@ -23977,7 +23968,7 @@ var JsonError = /* @__PURE__ */ Struct2({
23977
23968
  stack: /* @__PURE__ */ optionalKey2(String6),
23978
23969
  cause: /* @__PURE__ */ optionalKey2(Json2)
23979
23970
  });
23980
- var MutableJson2 = /* @__PURE__ */ make26(/* @__PURE__ */ annotate2(MutableJson, {
23971
+ var MutableJson2 = /* @__PURE__ */ make25(/* @__PURE__ */ annotate2(MutableJson, {
23981
23972
  toCode: () => ({
23982
23973
  runtime: "Schema.MutableJson",
23983
23974
  Type: "Schema.MutableJson"
@@ -23990,133 +23981,6 @@ function resolveAnnotationsKey(schema2) {
23990
23981
  return schema2.ast.context?.annotations;
23991
23982
  }
23992
23983
 
23993
- // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/Semaphore.js
23994
- var Semaphore_exports = {};
23995
- __export(Semaphore_exports, {
23996
- make: () => make27,
23997
- makeUnsafe: () => makeUnsafe7,
23998
- release: () => release,
23999
- releaseAll: () => releaseAll,
24000
- resize: () => resize,
24001
- take: () => take,
24002
- takeIfAvailable: () => takeIfAvailable,
24003
- withPermit: () => withPermit,
24004
- withPermits: () => withPermits,
24005
- withPermitsIfAvailable: () => withPermitsIfAvailable
24006
- });
24007
- var makeUnsafe7 = (permits) => new SemaphoreImpl(permits);
24008
- var waitForPermits = (self, n, effect2) => callback((resume) => {
24009
- if (self.free >= n) return resume(effect2);
24010
- const observer = () => {
24011
- if (self.free < n) return;
24012
- self.waiters.delete(observer);
24013
- resume(effect2);
24014
- };
24015
- self.waiters.add(observer);
24016
- return sync(() => {
24017
- self.waiters.delete(observer);
24018
- });
24019
- });
24020
- var SemaphoreImpl = class {
24021
- waiters = /* @__PURE__ */ new Set();
24022
- taken = 0;
24023
- permits;
24024
- constructor(permits) {
24025
- this.permits = permits;
24026
- }
24027
- get free() {
24028
- return this.permits - this.taken;
24029
- }
24030
- take(n) {
24031
- const take7 = suspend(() => {
24032
- if (this.free < n) {
24033
- return waitForPermits(this, n, take7);
24034
- }
24035
- this.taken += n;
24036
- return succeed3(n);
24037
- });
24038
- return take7;
24039
- }
24040
- takeIfAvailable(n) {
24041
- return suspend(() => {
24042
- if (this.free < n) return succeed3(false);
24043
- this.taken += n;
24044
- return succeed3(true);
24045
- });
24046
- }
24047
- releaseUnsafe(fiber3, n) {
24048
- this.taken -= n;
24049
- if (this.waiters.size > 0) {
24050
- fiber3.currentDispatcher.scheduleTask(() => {
24051
- for (const observer of this.waiters) {
24052
- if (this.free <= 0) break;
24053
- observer();
24054
- }
24055
- }, 0);
24056
- }
24057
- return this.free;
24058
- }
24059
- resize(permits) {
24060
- return withFiber((fiber3) => {
24061
- this.permits = permits;
24062
- if (this.free < 0) return void_3;
24063
- this.releaseUnsafe(fiber3, 0);
24064
- return void_3;
24065
- });
24066
- }
24067
- release(n) {
24068
- return withFiber((fiber3) => succeed3(this.releaseUnsafe(fiber3, n)));
24069
- }
24070
- get releaseAll() {
24071
- return withFiber((fiber3) => succeed3(this.releaseUnsafe(fiber3, this.taken)));
24072
- }
24073
- withPermits(n) {
24074
- return (self) => uninterruptibleMask((restore) => {
24075
- const acquire = suspend(() => {
24076
- if (this.free < n) {
24077
- const wait = waitForPermits(this, n, void_3);
24078
- return flatMap3(restore(wait), () => acquire);
24079
- }
24080
- this.taken += n;
24081
- return onExitPrimitive(restore(self), () => {
24082
- this.releaseUnsafe(getCurrentFiber(), n);
24083
- return void 0;
24084
- }, true);
24085
- });
24086
- return acquire;
24087
- });
24088
- }
24089
- withPermit = /* @__PURE__ */ this.withPermits(1);
24090
- withPermitsIfAvailable(n) {
24091
- return (self) => uninterruptibleMask((restore) => {
24092
- if (this.free < n) return succeedNone2;
24093
- this.taken += n;
24094
- return onExitPrimitive(restore(asSome(self)), () => {
24095
- this.releaseUnsafe(getCurrentFiber(), n);
24096
- return void 0;
24097
- }, true);
24098
- });
24099
- }
24100
- };
24101
- var make27 = (permits) => sync(() => new SemaphoreImpl(permits));
24102
- var resize = /* @__PURE__ */ dual(2, (self, permits) => self.resize(permits));
24103
- var withPermits = (self, permits, effect2) => {
24104
- const withPermits2 = self.withPermits(permits);
24105
- return effect2 ? withPermits2(effect2) : withPermits2;
24106
- };
24107
- var withPermit = (self, effect2) => {
24108
- if (!effect2) return self.withPermit;
24109
- return self.withPermit(effect2);
24110
- };
24111
- var withPermitsIfAvailable = (self, permits, effect2) => {
24112
- const withPermits2 = self.withPermitsIfAvailable(permits);
24113
- return effect2 ? withPermits2(effect2) : withPermits2;
24114
- };
24115
- var take = /* @__PURE__ */ dual(2, (self, permits) => self.take(permits));
24116
- var takeIfAvailable = /* @__PURE__ */ dual(2, (self, permits) => self.takeIfAvailable(permits));
24117
- var release = /* @__PURE__ */ dual(2, (self, permits) => self.release(permits));
24118
- var releaseAll = (self) => self.releaseAll;
24119
-
24120
23984
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/Stream.js
24121
23985
  var Stream_exports = {};
24122
23986
  __export(Stream_exports, {
@@ -24224,7 +24088,7 @@ __export(Stream_exports, {
24224
24088
  iterate: () => iterate,
24225
24089
  let: () => let_6,
24226
24090
  limitBytes: () => limitBytes,
24227
- make: () => make36,
24091
+ make: () => make35,
24228
24092
  map: () => map14,
24229
24093
  mapAccum: () => mapAccum3,
24230
24094
  mapAccumArray: () => mapAccumArray,
@@ -24370,8 +24234,8 @@ var getCurrent = getCurrentFiber;
24370
24234
  var runIn = fiberRunIn;
24371
24235
 
24372
24236
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/Latch.js
24373
- var makeUnsafe8 = makeLatchUnsafe;
24374
- var make28 = makeLatch;
24237
+ var makeUnsafe7 = makeLatchUnsafe;
24238
+ var make26 = makeLatch;
24375
24239
 
24376
24240
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/MutableRef.js
24377
24241
  var TypeId30 = "~effect/MutableRef";
@@ -24385,7 +24249,7 @@ var MutableRefProto = {
24385
24249
  };
24386
24250
  }
24387
24251
  };
24388
- var make29 = (value6) => {
24252
+ var make27 = (value6) => {
24389
24253
  const ref = Object.create(MutableRefProto);
24390
24254
  ref.current = value6;
24391
24255
  return ref;
@@ -24398,7 +24262,7 @@ var set6 = /* @__PURE__ */ dual(2, (self, value6) => {
24398
24262
 
24399
24263
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/MutableList.js
24400
24264
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
24401
- var make30 = () => ({
24265
+ var make28 = () => ({
24402
24266
  head: void 0,
24403
24267
  tail: void 0,
24404
24268
  length: 0
@@ -24519,7 +24383,7 @@ var takeNVoid = (self, n) => {
24519
24383
  return;
24520
24384
  };
24521
24385
  var takeAll = (self) => takeN(self, self.length);
24522
- var take2 = (self) => {
24386
+ var take = (self) => {
24523
24387
  if (!self.head) return Empty;
24524
24388
  const message = self.head.array[self.head.offset];
24525
24389
  if (self.head.mutable) self.head.array[self.head.offset] = void 0;
@@ -24581,20 +24445,20 @@ var remove7 = (self, value6) => filter8(self, (v) => v !== value6);
24581
24445
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/PubSub.js
24582
24446
  var TypeId31 = "~effect/PubSub";
24583
24447
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
24584
- var make31 = (options) => sync4(() => makePubSubUnsafe(options.atomicPubSub(), /* @__PURE__ */ new Map(), makeUnsafe3(), makeUnsafe8(false), make29(false), options.strategy(), make29(none2())));
24585
- var bounded = (capacity) => make31({
24448
+ var make29 = (options) => sync4(() => makePubSubUnsafe(options.atomicPubSub(), /* @__PURE__ */ new Map(), makeUnsafe3(), makeUnsafe7(false), make27(false), options.strategy(), make27(none2())));
24449
+ var bounded = (capacity) => make29({
24586
24450
  atomicPubSub: () => makeAtomicBounded(capacity),
24587
24451
  strategy: () => new BackPressureStrategy()
24588
24452
  });
24589
- var dropping = (capacity) => make31({
24453
+ var dropping = (capacity) => make29({
24590
24454
  atomicPubSub: () => makeAtomicBounded(capacity),
24591
24455
  strategy: () => new DroppingStrategy()
24592
24456
  });
24593
- var sliding = (capacity) => make31({
24457
+ var sliding = (capacity) => make29({
24594
24458
  atomicPubSub: () => makeAtomicBounded(capacity),
24595
24459
  strategy: () => new SlidingStrategy()
24596
24460
  });
24597
- var unbounded = (options) => make31({
24461
+ var unbounded = (options) => make29({
24598
24462
  atomicPubSub: () => makeAtomicUnbounded(options),
24599
24463
  strategy: () => new DroppingStrategy()
24600
24464
  });
@@ -24636,7 +24500,7 @@ var endUnsafe = /* @__PURE__ */ dual(2, (self, value6) => {
24636
24500
  for (const pollersSet of self.subscribers.values()) {
24637
24501
  for (const pollers of pollersSet) {
24638
24502
  let poller;
24639
- while ((poller = take2(pollers)) !== Empty) {
24503
+ while ((poller = take(pollers)) !== Empty) {
24640
24504
  doneUnsafe(poller, exit3);
24641
24505
  }
24642
24506
  }
@@ -24691,7 +24555,7 @@ var unsubscribe = (self) => uninterruptible2(withFiber2((state) => {
24691
24555
  self.strategy.onPubSubEmptySpaceUnsafe(self.pubsub, self.subscribers);
24692
24556
  })), when2(self.shutdownHook.open), asVoid4);
24693
24557
  }));
24694
- var take3 = (self) => suspend3(() => {
24558
+ var take2 = (self) => suspend3(() => {
24695
24559
  if (self.shutdownFlag.current) {
24696
24560
  return interrupt5;
24697
24561
  }
@@ -24757,7 +24621,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
24757
24621
  subscribers.delete(subscription);
24758
24622
  }
24759
24623
  };
24760
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make30(), makeUnsafe8(false), make29(false), strategy, pubsub.replayWindow(), ended);
24624
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make28(), makeUnsafe7(false), make27(false), strategy, pubsub.replayWindow(), ended);
24761
24625
  var BoundedPubSubArb = class {
24762
24626
  array;
24763
24627
  replayIndices;
@@ -25450,7 +25314,7 @@ var ensureCapacity = (capacity) => {
25450
25314
  }
25451
25315
  };
25452
25316
  var BackPressureStrategy = class {
25453
- publishers = /* @__PURE__ */ make30();
25317
+ publishers = /* @__PURE__ */ make28();
25454
25318
  get shutdown() {
25455
25319
  return withFiber2((fiber3) => forEach2(takeAll(this.publishers), ([_, deferred, last]) => last ? interruptWith(deferred, fiber3.id) : void_5, {
25456
25320
  concurrency: "unbounded",
@@ -25475,7 +25339,7 @@ var BackPressureStrategy = class {
25475
25339
  onPubSubEmptySpaceUnsafe(pubsub, subscribers) {
25476
25340
  let keepPolling = true;
25477
25341
  while (keepPolling && !pubsub.isFull()) {
25478
- const publisher = take2(this.publishers);
25342
+ const publisher = take(this.publishers);
25479
25343
  if (publisher === Empty) {
25480
25344
  keepPolling = false;
25481
25345
  } else {
@@ -25571,7 +25435,7 @@ var SlidingStrategy = class {
25571
25435
  var strategyCompletePollersUnsafe = (strategy, pubsub, subscribers, subscription, pollers) => {
25572
25436
  let keepPolling = true;
25573
25437
  while (keepPolling && !subscription.isEmpty()) {
25574
- const poller = take2(pollers);
25438
+ const poller = take(pollers);
25575
25439
  if (poller === Empty) {
25576
25440
  removeSubscribers(subscribers, subscription, pollers);
25577
25441
  if (pollers.length === 0) {
@@ -25741,7 +25605,7 @@ __export(Queue_exports, {
25741
25605
  isFull: () => isFull,
25742
25606
  isFullUnsafe: () => isFullUnsafe,
25743
25607
  isQueue: () => isQueue,
25744
- make: () => make32,
25608
+ make: () => make30,
25745
25609
  offer: () => offer,
25746
25610
  offerAll: () => offerAll,
25747
25611
  offerAllUnsafe: () => offerAllUnsafe,
@@ -25753,7 +25617,7 @@ __export(Queue_exports, {
25753
25617
  size: () => size6,
25754
25618
  sizeUnsafe: () => sizeUnsafe,
25755
25619
  sliding: () => sliding2,
25756
- take: () => take4,
25620
+ take: () => take3,
25757
25621
  takeAll: () => takeAll3,
25758
25622
  takeBetween: () => takeBetween,
25759
25623
  takeN: () => takeN2,
@@ -25785,12 +25649,12 @@ var QueueProto = {
25785
25649
  };
25786
25650
  }
25787
25651
  };
25788
- var make32 = (options) => withFiber((fiber3) => {
25652
+ var make30 = (options) => withFiber((fiber3) => {
25789
25653
  const self = Object.create(QueueProto);
25790
25654
  self.dispatcher = fiber3.currentDispatcher;
25791
25655
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
25792
25656
  self.strategy = options?.strategy ?? "suspend";
25793
- self.messages = make30();
25657
+ self.messages = make28();
25794
25658
  self.scheduleRunning = false;
25795
25659
  self.state = {
25796
25660
  _tag: "Open",
@@ -25800,25 +25664,25 @@ var make32 = (options) => withFiber((fiber3) => {
25800
25664
  };
25801
25665
  return succeed3(self);
25802
25666
  });
25803
- var bounded2 = (capacity) => make32({
25667
+ var bounded2 = (capacity) => make30({
25804
25668
  capacity
25805
25669
  });
25806
- var sliding2 = (capacity) => make32({
25670
+ var sliding2 = (capacity) => make30({
25807
25671
  capacity,
25808
25672
  strategy: "sliding"
25809
25673
  });
25810
- var dropping2 = (capacity) => make32({
25674
+ var dropping2 = (capacity) => make30({
25811
25675
  capacity,
25812
25676
  strategy: "dropping"
25813
25677
  });
25814
- var unbounded2 = () => make32();
25678
+ var unbounded2 = () => make30();
25815
25679
  var offer = /* @__PURE__ */ dual(2, (self, message) => suspend(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
25816
25680
  var offerUnsafe = (self, message) => {
25817
25681
  if (self.state._tag !== "Open") {
25818
25682
  return false;
25819
25683
  } else if (self.messages.length >= self.capacity) {
25820
25684
  if (self.strategy === "sliding") {
25821
- take2(self.messages);
25685
+ take(self.messages);
25822
25686
  append3(self.messages, message);
25823
25687
  return true;
25824
25688
  } else if (self.capacity <= 0 && self.state.takers.size > 0) {
@@ -25942,7 +25806,7 @@ var takeBetween = /* @__PURE__ */ dual(3, (self, min7, max7) => {
25942
25806
  max7 = normalize(max7);
25943
25807
  return suspend(() => takeBetweenUnsafe(self, min7, max7) ?? andThen3(awaitTake(self, () => canTake(self, min7)), takeBetween(self, min7, max7)));
25944
25808
  });
25945
- var take4 = (self) => suspend(() => takeUnsafe(self) ?? andThen3(awaitTake(self, () => canTake(self, 1)), take4(self)));
25809
+ var take3 = (self) => suspend(() => takeUnsafe(self) ?? andThen3(awaitTake(self, () => canTake(self, 1)), take3(self)));
25946
25810
  var poll2 = (self) => suspend(() => {
25947
25811
  const result6 = takeUnsafe(self);
25948
25812
  if (result6 === void 0) {
@@ -25967,7 +25831,7 @@ var takeUnsafe = (self) => {
25967
25831
  return self.state.exit;
25968
25832
  }
25969
25833
  if (self.messages.length > 0) {
25970
- const message = take2(self.messages);
25834
+ const message = take(self.messages);
25971
25835
  releaseCapacity(self);
25972
25836
  return exitSucceed(message);
25973
25837
  } else if (self.capacity <= 0 && self.state.offers.size > 0) {
@@ -26143,6 +26007,133 @@ var finalize = (self, exit3) => {
26143
26007
  openState.awaiters.clear();
26144
26008
  };
26145
26009
 
26010
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/Semaphore.js
26011
+ var Semaphore_exports = {};
26012
+ __export(Semaphore_exports, {
26013
+ make: () => make31,
26014
+ makeUnsafe: () => makeUnsafe8,
26015
+ release: () => release,
26016
+ releaseAll: () => releaseAll,
26017
+ resize: () => resize,
26018
+ take: () => take4,
26019
+ takeIfAvailable: () => takeIfAvailable,
26020
+ withPermit: () => withPermit,
26021
+ withPermits: () => withPermits,
26022
+ withPermitsIfAvailable: () => withPermitsIfAvailable
26023
+ });
26024
+ var makeUnsafe8 = (permits) => new SemaphoreImpl(permits);
26025
+ var waitForPermits = (self, n, effect2) => callback((resume) => {
26026
+ if (self.free >= n) return resume(effect2);
26027
+ const observer = () => {
26028
+ if (self.free < n) return;
26029
+ self.waiters.delete(observer);
26030
+ resume(effect2);
26031
+ };
26032
+ self.waiters.add(observer);
26033
+ return sync(() => {
26034
+ self.waiters.delete(observer);
26035
+ });
26036
+ });
26037
+ var SemaphoreImpl = class {
26038
+ waiters = /* @__PURE__ */ new Set();
26039
+ taken = 0;
26040
+ permits;
26041
+ constructor(permits) {
26042
+ this.permits = permits;
26043
+ }
26044
+ get free() {
26045
+ return this.permits - this.taken;
26046
+ }
26047
+ take(n) {
26048
+ const take7 = suspend(() => {
26049
+ if (this.free < n) {
26050
+ return waitForPermits(this, n, take7);
26051
+ }
26052
+ this.taken += n;
26053
+ return succeed3(n);
26054
+ });
26055
+ return take7;
26056
+ }
26057
+ takeIfAvailable(n) {
26058
+ return suspend(() => {
26059
+ if (this.free < n) return succeed3(false);
26060
+ this.taken += n;
26061
+ return succeed3(true);
26062
+ });
26063
+ }
26064
+ releaseUnsafe(fiber3, n) {
26065
+ this.taken -= n;
26066
+ if (this.waiters.size > 0) {
26067
+ fiber3.currentDispatcher.scheduleTask(() => {
26068
+ for (const observer of this.waiters) {
26069
+ if (this.free <= 0) break;
26070
+ observer();
26071
+ }
26072
+ }, 0);
26073
+ }
26074
+ return this.free;
26075
+ }
26076
+ resize(permits) {
26077
+ return withFiber((fiber3) => {
26078
+ this.permits = permits;
26079
+ if (this.free < 0) return void_3;
26080
+ this.releaseUnsafe(fiber3, 0);
26081
+ return void_3;
26082
+ });
26083
+ }
26084
+ release(n) {
26085
+ return withFiber((fiber3) => succeed3(this.releaseUnsafe(fiber3, n)));
26086
+ }
26087
+ get releaseAll() {
26088
+ return withFiber((fiber3) => succeed3(this.releaseUnsafe(fiber3, this.taken)));
26089
+ }
26090
+ withPermits(n) {
26091
+ return (self) => uninterruptibleMask((restore) => {
26092
+ const acquire = suspend(() => {
26093
+ if (this.free < n) {
26094
+ const wait = waitForPermits(this, n, void_3);
26095
+ return flatMap3(restore(wait), () => acquire);
26096
+ }
26097
+ this.taken += n;
26098
+ return onExitPrimitive(restore(self), () => {
26099
+ this.releaseUnsafe(getCurrentFiber(), n);
26100
+ return void 0;
26101
+ }, true);
26102
+ });
26103
+ return acquire;
26104
+ });
26105
+ }
26106
+ withPermit = /* @__PURE__ */ this.withPermits(1);
26107
+ withPermitsIfAvailable(n) {
26108
+ return (self) => uninterruptibleMask((restore) => {
26109
+ if (this.free < n) return succeedNone2;
26110
+ this.taken += n;
26111
+ return onExitPrimitive(restore(asSome(self)), () => {
26112
+ this.releaseUnsafe(getCurrentFiber(), n);
26113
+ return void 0;
26114
+ }, true);
26115
+ });
26116
+ }
26117
+ };
26118
+ var make31 = (permits) => sync(() => new SemaphoreImpl(permits));
26119
+ var resize = /* @__PURE__ */ dual(2, (self, permits) => self.resize(permits));
26120
+ var withPermits = (self, permits, effect2) => {
26121
+ const withPermits2 = self.withPermits(permits);
26122
+ return effect2 ? withPermits2(effect2) : withPermits2;
26123
+ };
26124
+ var withPermit = (self, effect2) => {
26125
+ if (!effect2) return self.withPermit;
26126
+ return self.withPermit(effect2);
26127
+ };
26128
+ var withPermitsIfAvailable = (self, permits, effect2) => {
26129
+ const withPermits2 = self.withPermitsIfAvailable(permits);
26130
+ return effect2 ? withPermits2(effect2) : withPermits2;
26131
+ };
26132
+ var take4 = /* @__PURE__ */ dual(2, (self, permits) => self.take(permits));
26133
+ var takeIfAvailable = /* @__PURE__ */ dual(2, (self, permits) => self.takeIfAvailable(permits));
26134
+ var release = /* @__PURE__ */ dual(2, (self, permits) => self.release(permits));
26135
+ var releaseAll = (self) => self.releaseAll;
26136
+
26146
26137
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/Take.js
26147
26138
  var toPull = (take7) => isExit2(take7) ? isSuccess4(take7) ? done3(take7.value) : take7 : succeed7(take7);
26148
26139
 
@@ -26176,7 +26167,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced2(function* (upstream,
26176
26167
  }));
26177
26168
  var toTransform = (channel) => channel.transform;
26178
26169
  var DefaultChunkSize = 4096;
26179
- var asyncQueue = (scope3, f, options) => make32({
26170
+ var asyncQueue = (scope3, f, options) => make30({
26180
26171
  capacity: options?.bufferSize,
26181
26172
  strategy: options?.strategy
26182
26173
  }).pipe(tap6((queue) => addFinalizer2(scope3, shutdown2(queue))), tap6((queue) => forkIn2(provide(f(queue), scope3), scope3)));
@@ -26246,7 +26237,7 @@ var fromEffectTake = (effect2) => fromPull(succeed7(flatMap5(effect2, toPull)));
26246
26237
  var fromQueueArray = (queue) => fromPull(succeed7(takeAll3(queue)));
26247
26238
  var fromSubscriptionArray = (subscription) => fromPull(succeed7(onInterrupt2(takeAll2(subscription), () => done3())));
26248
26239
  var fromPubSubArray = (pubsub) => unwrap2(map9(subscribe(pubsub), fromSubscriptionArray));
26249
- var fromPubSubTake = (pubsub) => unwrap2(map9(subscribe(pubsub), (sub) => fromEffectTake(take3(sub))));
26240
+ var fromPubSubTake = (pubsub) => unwrap2(map9(subscribe(pubsub), (sub) => fromEffectTake(take2(sub))));
26250
26241
  var fromReadableStream = (options) => fromTransform((_, scope3) => readableStreamToPullUnsafe({
26251
26242
  scope: scope3,
26252
26243
  readable: options.evaluate(),
@@ -26255,7 +26246,7 @@ var fromReadableStream = (options) => fromTransform((_, scope3) => readableStrea
26255
26246
  }));
26256
26247
  var readableStreamToPullUnsafe = (options) => {
26257
26248
  const reader = options.readable.getReader();
26258
- const exit3 = options.exit ?? make29(void 0);
26249
+ const exit3 = options.exit ?? make27(void 0);
26259
26250
  const pull = suspend3(() => {
26260
26251
  if (exit3.current) return exit3.current;
26261
26252
  return matchCauseEffect2(tryPromise2({
@@ -26304,7 +26295,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced2
26304
26295
  const runFork3 = runForkWith2(yield* context2());
26305
26296
  const trackFiber = runIn(forkedScope);
26306
26297
  if (options.unordered) {
26307
- const semaphore = makeUnsafe7(concurrencyN);
26298
+ const semaphore = makeUnsafe8(concurrencyN);
26308
26299
  const release4 = constant(semaphore.release(1));
26309
26300
  const handle = matchCauseEffect2({
26310
26301
  onFailure: (cause) => flatMap5(failCause5(queue, cause), release4),
@@ -26320,7 +26311,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced2
26320
26311
  } else {
26321
26312
  const effects = yield* bounded2(concurrencyN - 2);
26322
26313
  yield* addFinalizer2(forkedScope, shutdown2(effects));
26323
- yield* take4(effects).pipe(flatten5, flatMap5((value6) => offer(queue, value6)), forever4({
26314
+ yield* take3(effects).pipe(flatten5, flatMap5((value6) => offer(queue, value6)), forever4({
26324
26315
  disableYield: true
26325
26316
  }), catchCause3((cause) => failCause5(queue, cause)), forkIn2(forkedScope));
26326
26317
  let errorCause;
@@ -26340,7 +26331,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced2
26340
26331
  disableYield: true
26341
26332
  }), catchCause3((cause) => offer(effects, failCause3(cause)).pipe(andThen4(failCause5(effects, cause)))), forkIn2(forkedScope));
26342
26333
  }
26343
- return take4(queue);
26334
+ return take3(queue);
26344
26335
  }));
26345
26336
  var flatMap7 = /* @__PURE__ */ dual((args2) => isChannel(args2[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? flatMapSequential(self, f) : flatMapConcurrent(self, f, options));
26346
26337
  var flatMapSequential = (self, f) => fromTransform((upstream, scope3) => map9(toTransform(self)(upstream, scope3), (pull) => {
@@ -26648,8 +26639,8 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
26648
26639
  switch: switch_ = false
26649
26640
  }) => fromTransformBracket(fnUntraced2(function* (upstream, scope3, forkedScope) {
26650
26641
  const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
26651
- const semaphore = switch_ ? void 0 : makeUnsafe7(concurrencyN);
26652
- const doneLatch = yield* make28(true);
26642
+ const semaphore = switch_ ? void 0 : makeUnsafe8(concurrencyN);
26643
+ const doneLatch = yield* make26(true);
26653
26644
  const fibers = /* @__PURE__ */ new Set();
26654
26645
  const queue = yield* bounded2(bufferSize);
26655
26646
  yield* addFinalizer2(forkedScope, shutdown2(queue));
@@ -26696,7 +26687,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
26696
26687
  }
26697
26688
  return failCause5(queue, cause);
26698
26689
  }), forkIn2(forkedScope));
26699
- return take4(queue);
26690
+ return take3(queue);
26700
26691
  })));
26701
26692
  var merge6 = /* @__PURE__ */ dual((args2) => isChannel(args2[0]) && isChannel(args2[1]), (left, right, options) => fromTransformBracket(fnUntraced2(function* (upstream, _scope, forkedScope) {
26702
26693
  const strategy = options?.haltStrategy ?? "both";
@@ -26724,7 +26715,7 @@ var merge6 = /* @__PURE__ */ dual((args2) => isChannel(args2[0]) && isChannel(ar
26724
26715
  const runSide = (side, channel, scope3) => toTransform(channel)(upstream, scope3).pipe(flatMap5((pull) => pull.pipe(flatMap5((value6) => offer(queue, value6)), forever4)), onError2((cause) => andThen4(close(scope3, doneExitFromCause(cause)), onExit5(side, cause))), forkIn2(forkedScope));
26725
26716
  yield* runSide("left", left, forkUnsafe2(forkedScope));
26726
26717
  yield* runSide("right", right, forkUnsafe2(forkedScope));
26727
- return take4(queue);
26718
+ return take3(queue);
26728
26719
  })));
26729
26720
  var mergeEffect = /* @__PURE__ */ dual(2, (self, effect2) => merge6(self, fromEffectDrain(effect2), {
26730
26721
  haltStrategy: "left"
@@ -26819,7 +26810,7 @@ var unwrap2 = (channel) => fromTransform((upstream, scope3) => {
26819
26810
  var scoped3 = (self) => fromTransformBracket((upstream, scope3, forkedScope) => map9(provide(toTransform(self)(upstream, scope3), forkedScope), provide(forkedScope)));
26820
26811
  var buffer = /* @__PURE__ */ dual(2, (self, options) => fromTransform(fnUntraced2(function* (upstream, scope3) {
26821
26812
  const pull = yield* toTransform(self)(upstream, scope3);
26822
- const queue = yield* make32({
26813
+ const queue = yield* make30({
26823
26814
  capacity: options.capacity === "unbounded" ? void 0 : options.capacity,
26824
26815
  strategy: options.capacity === "unbounded" ? void 0 : options.strategy
26825
26816
  });
@@ -26827,11 +26818,11 @@ var buffer = /* @__PURE__ */ dual(2, (self, options) => fromTransform(fnUntraced
26827
26818
  yield* pull.pipe(flatMap5((value6) => offer(queue, value6)), forever4({
26828
26819
  disableYield: true
26829
26820
  }), onError2((cause) => failCause5(queue, cause)), forkIn2(scope3));
26830
- return take4(queue);
26821
+ return take3(queue);
26831
26822
  })));
26832
26823
  var bufferArray = /* @__PURE__ */ dual(2, (self, options) => fromTransform(fnUntraced2(function* (upstream, scope3) {
26833
26824
  const pull = yield* toTransform(self)(upstream, scope3);
26834
- const queue = yield* make32({
26825
+ const queue = yield* make30({
26835
26826
  capacity: options.capacity === "unbounded" ? void 0 : options.capacity,
26836
26827
  strategy: options.capacity === "unbounded" ? void 0 : options.strategy
26837
26828
  });
@@ -26968,7 +26959,7 @@ var runFoldEffect = /* @__PURE__ */ dual(3, (self, initial, f) => suspend3(() =>
26968
26959
  }));
26969
26960
  var toPull2 = /* @__PURE__ */ fnUntraced2(
26970
26961
  function* (self) {
26971
- const semaphore = makeUnsafe7(1);
26962
+ const semaphore = makeUnsafe8(1);
26972
26963
  const context3 = yield* context2();
26973
26964
  const scope3 = get(context3, Scope);
26974
26965
  const pull = yield* toTransform(self)(done3(), scope3);
@@ -26988,7 +26979,7 @@ var runIntoQueueArray = /* @__PURE__ */ dual((args2) => isChannel(args2[0]), (se
26988
26979
  }))));
26989
26980
  var toQueueArray = /* @__PURE__ */ dual((args2) => isChannel(args2[0]), /* @__PURE__ */ fnUntraced2(function* (self, options) {
26990
26981
  const scope3 = yield* scope2;
26991
- const queue = yield* make32({
26982
+ const queue = yield* make30({
26992
26983
  capacity: typeof options.capacity === "number" ? options.capacity : void 0,
26993
26984
  strategy: typeof options.capacity === "number" ? options.strategy : void 0
26994
26985
  });
@@ -27155,7 +27146,7 @@ var makeUnsafe9 = (options) => ({
27155
27146
  return pipeArguments(this, arguments);
27156
27147
  }
27157
27148
  });
27158
- var make33 = (options) => withFiber2((fiber3) => {
27149
+ var make32 = (options) => withFiber2((fiber3) => {
27159
27150
  const context3 = fiber3.context;
27160
27151
  const scope3 = get(context3, Scope);
27161
27152
  const self = makeUnsafe9({
@@ -27303,7 +27294,7 @@ var RcRefImpl = class {
27303
27294
  this.idleTimeToLive = idleTimeToLive;
27304
27295
  }
27305
27296
  };
27306
- var make34 = (options) => withFiber2((fiber3) => {
27297
+ var make33 = (options) => withFiber2((fiber3) => {
27307
27298
  const context3 = fiber3.context;
27308
27299
  const scope3 = get(context3, Scope);
27309
27300
  const ref = new RcRefImpl(options.acquire, context3, scope3, options.idleTimeToLive !== void 0 ? fromInputUnsafe(options.idleTimeToLive) : void 0);
@@ -27405,7 +27396,7 @@ var release3 = (self, state) => {
27405
27396
  };
27406
27397
 
27407
27398
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/RcRef.js
27408
- var make35 = make34;
27399
+ var make34 = make33;
27409
27400
  var get9 = get8;
27410
27401
 
27411
27402
  // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/Sink.js
@@ -27506,7 +27497,7 @@ var toChannel2 = (stream) => stream.channel;
27506
27497
  var callback3 = (f, options) => fromChannel2(callbackArray(f, options));
27507
27498
  var empty14 = /* @__PURE__ */ fromChannel2(empty12);
27508
27499
  var succeed11 = (value6) => fromChannel2(succeed10(of(value6)));
27509
- var make36 = (...values2) => fromArray2(values2);
27500
+ var make35 = (...values2) => fromArray2(values2);
27510
27501
  var sync6 = (evaluate2) => fromChannel2(sync5(() => of(evaluate2())));
27511
27502
  var suspend6 = (stream) => fromChannel2(suspend5(() => stream().channel));
27512
27503
  var fail11 = (error) => fromChannel2(fail10(error));
@@ -27599,8 +27590,8 @@ var tapBoth = /* @__PURE__ */ dual(2, (self, options) => self.pipe(tapError5(opt
27599
27590
  concurrency: options.concurrency
27600
27591
  })));
27601
27592
  var tapSink = /* @__PURE__ */ dual(2, (self, sink) => transformPullBracket(self, fnUntraced2(function* (pull, _, scope3) {
27602
- const upstreamLatch = makeUnsafe8();
27603
- const sinkLatch = makeUnsafe8();
27593
+ const upstreamLatch = makeUnsafe7();
27594
+ const sinkLatch = makeUnsafe7();
27604
27595
  let chunk = void 0;
27605
27596
  let causeSink = void 0;
27606
27597
  let sinkDone = false;
@@ -27663,7 +27654,7 @@ var timeoutOrElse3 = /* @__PURE__ */ dual(2, (self, options) => {
27663
27654
  const clock = parent.getRef(Clock);
27664
27655
  const durationMs = toMillis(duration2);
27665
27656
  let deadline = void 0;
27666
- const latch = makeUnsafe8(false);
27657
+ const latch = makeUnsafe7(false);
27667
27658
  return merge7(transformPull2(self, (pull, _scope) => suspend3(() => {
27668
27659
  deadline = clock.currentTimeMillisUnsafe() + durationMs;
27669
27660
  latch.openUnsafe();
@@ -27848,7 +27839,7 @@ var zipWithPreviousAndNext = (self) => mapAccumArray(self, () => ({
27848
27839
  var zipLatestAll = (...streams) => fromChannel2(suspend5(() => {
27849
27840
  const latest = [];
27850
27841
  const emitted = /* @__PURE__ */ new Set();
27851
- const readyLatch = makeUnsafe8();
27842
+ const readyLatch = makeUnsafe7();
27852
27843
  return mergeAll3(fromArray(streams.map((s, i) => s.channel.pipe(flattenArray, mapEffect((a) => {
27853
27844
  latest[i] = a;
27854
27845
  if (!emitted.has(i)) {
@@ -27892,10 +27883,10 @@ var partitionQueue = /* @__PURE__ */ dual((args2) => isStream(args2[0]), /* @__P
27892
27883
  const scope3 = yield* scope2;
27893
27884
  const pull = yield* toPullScoped(self.channel, scope3);
27894
27885
  const capacity = options?.capacity === "unbounded" ? void 0 : options?.capacity ?? DefaultChunkSize2;
27895
- const passes = yield* make32({
27886
+ const passes = yield* make30({
27896
27887
  capacity
27897
27888
  });
27898
- const fails = yield* make32({
27889
+ const fails = yield* make30({
27899
27890
  capacity
27900
27891
  });
27901
27892
  yield* gen4(function* () {
@@ -28093,7 +28084,7 @@ var limitBytes = /* @__PURE__ */ dual(3, (self, bytes2, onLimitReached) => suspe
28093
28084
  var takeRight = /* @__PURE__ */ dual(2, (self, n) => {
28094
28085
  const count = normalize(n);
28095
28086
  if (count === 0) return empty14;
28096
- return mapAccumArray(self, make30, (list, arr) => {
28087
+ return mapAccumArray(self, make28, (list, arr) => {
28097
28088
  appendAll3(list, arr);
28098
28089
  if (list.length > count) {
28099
28090
  takeNVoid(list, list.length - count);
@@ -28227,7 +28218,7 @@ var dropRight = /* @__PURE__ */ dual(2, (self, n) => {
28227
28218
  const count = normalize(n);
28228
28219
  if (count === 0) return self;
28229
28220
  return transformPull2(self, (pull, _scope) => sync4(() => {
28230
- const list = make30();
28221
+ const list = make28();
28231
28222
  const emit = flatMap5(pull, (arr) => {
28232
28223
  appendAllUnsafe(list, arr);
28233
28224
  const toTake = list.length - count;
@@ -28287,7 +28278,7 @@ var slidingSize = /* @__PURE__ */ dual(3, (self, chunkSize, stepSize) => {
28287
28278
  const step = normalizeNonEmpty(stepSize);
28288
28279
  return transformPull2(self, (upstream, _scope) => sync4(() => {
28289
28280
  let cause = null;
28290
- const list = make30();
28281
+ const list = make28();
28291
28282
  let emitted = false;
28292
28283
  let skip = 0;
28293
28284
  const pull = matchCauseEffect2(upstream, {
@@ -28398,9 +28389,9 @@ var debounce = /* @__PURE__ */ dual(2, (self, duration2) => transformPull2(self,
28398
28389
  let lastArr;
28399
28390
  let cause;
28400
28391
  let emitAtMs = Infinity;
28401
- const pullLatch = makeUnsafe8();
28402
- const emitLatch = makeUnsafe8();
28403
- const endLatch = makeUnsafe8();
28392
+ const pullLatch = makeUnsafe7();
28393
+ const emitLatch = makeUnsafe7();
28394
+ const endLatch = makeUnsafe7();
28404
28395
  yield* pull.pipe(pullLatch.whenOpen, flatMap5((arr) => {
28405
28396
  emitLatch.openUnsafe();
28406
28397
  lastArr = arr;
@@ -28546,8 +28537,8 @@ var groupByImpl = (self, f, options) => transformPullBracket(self, fnUntraced2(f
28546
28537
  const out = yield* unbounded2();
28547
28538
  yield* addFinalizer2(scope3, shutdown2(out));
28548
28539
  const queueMap = empty13();
28549
- const queues = yield* make33({
28550
- lookup: (key) => acquireRelease2(make32({
28540
+ const queues = yield* make32({
28541
+ lookup: (key) => acquireRelease2(make30({
28551
28542
  capacity: options?.bufferSize ?? 4096
28552
28543
  }).pipe(tap6((queue) => {
28553
28544
  set7(queueMap, key, queue);
@@ -28623,9 +28614,9 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
28623
28614
  var aggregate = /* @__PURE__ */ dual(2, (self, sink) => aggregateWithin(self, sink, forever3));
28624
28615
  var aggregateWithin = /* @__PURE__ */ dual(3, (self, sink, schedule4) => fromChannel2(fromTransformBracket(fnUntraced2(function* (_upstream, _, scope3) {
28625
28616
  const pull = yield* toPullScoped(self.channel, _);
28626
- const pullLatch = makeUnsafe8(false);
28617
+ const pullLatch = makeUnsafe7(false);
28627
28618
  const scheduleStep = /* @__PURE__ */ Symbol();
28628
- const buffer3 = yield* make32({
28619
+ const buffer3 = yield* make30({
28629
28620
  capacity: 0
28630
28621
  });
28631
28622
  yield* pull.pipe(
@@ -28641,7 +28632,7 @@ var aggregateWithin = /* @__PURE__ */ dual(3, (self, sink, schedule4) => fromCha
28641
28632
  );
28642
28633
  const clock = yield* Clock;
28643
28634
  const step = yield* toStep(schedule4);
28644
- const hasInput2 = makeUnsafe8(false);
28635
+ const hasInput2 = makeUnsafe7(false);
28645
28636
  let scheduleTime = clock.currentTimeMillisUnsafe();
28646
28637
  let openedAt = 0;
28647
28638
  let lastOutput = none2();
@@ -28669,7 +28660,7 @@ var aggregateWithin = /* @__PURE__ */ dual(3, (self, sink, schedule4) => fromCha
28669
28660
  if (buffer3.state._tag === "Open") {
28670
28661
  pullLatch.openUnsafe();
28671
28662
  }
28672
- return flatMap5(take4(buffer3), (arr) => arr === scheduleStep ? done3() : onInput(arr));
28663
+ return flatMap5(take3(buffer3), (arr) => arr === scheduleStep ? done3() : onInput(arr));
28673
28664
  });
28674
28665
  const emit = flatMap5(([value6, leftover_]) => {
28675
28666
  if (hasInput2.isOpen()) {
@@ -28698,14 +28689,14 @@ var broadcastN = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced2(function* (
28698
28689
  for (let i = 0; i < n; i++) {
28699
28690
  const scope3 = forkUnsafe2(parentScope);
28700
28691
  const subscription = yield* subscribe(pubsub).pipe(provideService2(Scope, scope3));
28701
- streams[i] = fromEffectTake(take3(subscription)).pipe(onExit3((exit3) => close(scope3, exit3)), fromChannel2);
28692
+ streams[i] = fromEffectTake(take2(subscription)).pipe(onExit3((exit3) => close(scope3, exit3)), fromChannel2);
28702
28693
  }
28703
28694
  yield* runForEach(self.channel, (value6) => publish(pubsub, value6)).pipe(onExit2((exit3) => end(pubsub, exit3)), forkScoped2);
28704
28695
  return streams;
28705
28696
  }));
28706
28697
  var makePubSub2 = (options) => acquireRelease2(options.capacity === "unbounded" ? unbounded(options) : options.strategy === "dropping" ? dropping(options) : options.strategy === "sliding" ? sliding(options) : bounded(options), shutdown);
28707
28698
  var broadcast = /* @__PURE__ */ dual(2, (self, options) => map9(toPubSubTake2(self, options), fromPubSubTake2));
28708
- var share = /* @__PURE__ */ dual(2, (self, options) => map9(make35({
28699
+ var share = /* @__PURE__ */ dual(2, (self, options) => map9(make34({
28709
28700
  acquire: broadcast(self, options),
28710
28701
  idleTimeToLive: options.idleTimeToLive
28711
28702
  }), (ref) => unwrap3(get9(ref))));
@@ -28915,7 +28906,7 @@ var mkUint8Array2 = (self) => mkUint8Array(self.channel);
28915
28906
  var toReadableStreamWith = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, context3, options) => {
28916
28907
  let currentResolve = void 0;
28917
28908
  let fiber3 = void 0;
28918
- const latch = makeUnsafe8(false);
28909
+ const latch = makeUnsafe7(false);
28919
28910
  return new ReadableStream({
28920
28911
  start(controller) {
28921
28912
  fiber3 = runFork2(provideContext2(runForEachArray(self, (chunk) => latch.whenOpen(sync4(() => {
@@ -29370,7 +29361,7 @@ __export(Ref_exports, {
29370
29361
  getAndUpdate: () => getAndUpdate,
29371
29362
  getAndUpdateSome: () => getAndUpdateSome,
29372
29363
  getUnsafe: () => getUnsafe4,
29373
- make: () => make37,
29364
+ make: () => make36,
29374
29365
  makeUnsafe: () => makeUnsafe10,
29375
29366
  modify: () => modify4,
29376
29367
  modifySome: () => modifySome,
@@ -29396,10 +29387,10 @@ var RefProto = {
29396
29387
  };
29397
29388
  var makeUnsafe10 = (value6) => {
29398
29389
  const self = Object.create(RefProto);
29399
- self.ref = make29(value6);
29390
+ self.ref = make27(value6);
29400
29391
  return self;
29401
29392
  };
29402
- var make37 = (value6) => sync4(() => makeUnsafe10(value6));
29393
+ var make36 = (value6) => sync4(() => makeUnsafe10(value6));
29403
29394
  var get10 = (self) => sync4(() => self.ref.current);
29404
29395
  var set8 = /* @__PURE__ */ dual(2, (self, value6) => sync4(() => set6(self.ref, value6)));
29405
29396
  var getAndSet = /* @__PURE__ */ dual(2, (self, value6) => sync4(() => {
@@ -30013,7 +30004,7 @@ function makeProvider(load, mapInput4) {
30013
30004
  function makeSource(get12, transform4) {
30014
30005
  return makeProvider((path) => get12(transform4(path)), (f) => makeSource(get12, (path) => f(transform4(path))));
30015
30006
  }
30016
- function make38(get12) {
30007
+ function make37(get12) {
30017
30008
  return makeSource(get12, identityPath);
30018
30009
  }
30019
30010
  function emptyStringAsMissing(value6, preserveEmptyStrings) {
@@ -30022,7 +30013,7 @@ function emptyStringAsMissing(value6, preserveEmptyStrings) {
30022
30013
  function fromEnvRecord(env, options) {
30023
30014
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
30024
30015
  const trie = buildEnvTrie(env);
30025
- return make38((path) => succeed7(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
30016
+ return make37((path) => succeed7(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
30026
30017
  }
30027
30018
  function fromEnv(options) {
30028
30019
  const env = options?.env ?? {
@@ -30101,7 +30092,7 @@ var Proto9 = {
30101
30092
  };
30102
30093
  }
30103
30094
  };
30104
- function make39(evaluator) {
30095
+ function make38(evaluator) {
30105
30096
  const self = Object.create(Proto9);
30106
30097
  self.evaluator = evaluator;
30107
30098
  self.parse = (provider) => flatMapEager2(evaluator(provider, []), fromResult2);
@@ -30109,20 +30100,20 @@ function make39(evaluator) {
30109
30100
  }
30110
30101
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
30111
30102
  var map15 = /* @__PURE__ */ dual(2, (self, f) => {
30112
- return make39((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map2(f)));
30103
+ return make38((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map2(f)));
30113
30104
  });
30114
30105
  var orElse5 = /* @__PURE__ */ dual(2, (self, that) => {
30115
- return make39((provider, pathPrefix) => matchEffect3(evaluateAt(self, provider, pathPrefix), {
30106
+ return make38((provider, pathPrefix) => matchEffect3(evaluateAt(self, provider, pathPrefix), {
30116
30107
  onFailure: (error) => evaluateAt(that(error), provider, pathPrefix),
30117
30108
  onSuccess: (resolution) => isFailure2(resolution) ? evaluateAt(that(resolution.failure), provider, pathPrefix) : succeed7(resolution)
30118
30109
  }));
30119
30110
  });
30120
30111
  function all5(arg) {
30121
30112
  const configs = globalThis.Array.isArray(arg) ? arg : Symbol.iterator in arg ? [...arg] : arg;
30122
- return make39((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager2(all4(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager2(all4(map3(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
30113
+ return make38((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager2(all4(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager2(all4(map3(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
30123
30114
  }
30124
30115
  var withDefault3 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
30125
- return make39((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure2(resolution) ? succeed2(defaultValue) : resolution));
30116
+ return make38((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure2(resolution) ? succeed2(defaultValue) : resolution));
30126
30117
  });
30127
30118
  var option5 = (self) => self.pipe(map15(some3), withDefault3(none2()));
30128
30119
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -30228,9 +30219,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
30228
30219
  function schema(codec, path) {
30229
30220
  const codecStringTree = toCodecStringTree2(codec);
30230
30221
  const encodedAst = toEncoded(codecStringTree.ast);
30231
- const decodeCursor = decodeUnknownEffect(make26(toConfigCursorAST(codecStringTree.ast)));
30222
+ const decodeCursor = decodeUnknownEffect(make25(toConfigCursorAST(codecStringTree.ast)));
30232
30223
  const localPath = typeof path === "string" ? [path] : path ?? [];
30233
- return make39((provider, pathPrefix) => {
30224
+ return make38((provider, pathPrefix) => {
30234
30225
  const fullPath = [...pathPrefix, ...localPath];
30235
30226
  return loadCursor(provider, fullPath).pipe(flatMapEager2((cursor) => decodeCursor(cursor).pipe(mapEager2(succeed2), catchEager2((issue) => {
30236
30227
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -30292,7 +30283,7 @@ __export(FiberSet_exports, {
30292
30283
  clear: () => clear4,
30293
30284
  isFiberSet: () => isFiberSet,
30294
30285
  join: () => join2,
30295
- make: () => make40,
30286
+ make: () => make39,
30296
30287
  makeRuntime: () => makeRuntime,
30297
30288
  makeRuntimePromise: () => makeRuntimePromise,
30298
30289
  run: () => run4,
@@ -30327,7 +30318,7 @@ var makeUnsafe11 = (backing, deferred) => {
30327
30318
  self.deferred = deferred;
30328
30319
  return self;
30329
30320
  };
30330
- var make40 = () => acquireRelease2(sync4(() => makeUnsafe11(/* @__PURE__ */ new Set(), makeUnsafe2())), (set10) => suspend3(() => {
30321
+ var make39 = () => acquireRelease2(sync4(() => makeUnsafe11(/* @__PURE__ */ new Set(), makeUnsafe2())), (set10) => suspend3(() => {
30331
30322
  const state = set10.state;
30332
30323
  if (state._tag === "Closed") return void_5;
30333
30324
  set10.state = {
@@ -30336,8 +30327,8 @@ var make40 = () => acquireRelease2(sync4(() => makeUnsafe11(/* @__PURE__ */ new
30336
30327
  const fibers = state.backing;
30337
30328
  return interruptAll(fibers).pipe(into(set10.deferred));
30338
30329
  }));
30339
- var makeRuntime = () => flatMap5(make40(), (self) => runtime(self)());
30340
- var makeRuntimePromise = () => flatMap5(make40(), (self) => runtimePromise(self)());
30330
+ var makeRuntime = () => flatMap5(make39(), (self) => runtime(self)());
30331
+ var makeRuntimePromise = () => flatMap5(make39(), (self) => runtimePromise(self)());
30341
30332
  var internalFiberId = -1;
30342
30333
  var isInternalInterruption = /* @__PURE__ */ toPredicate(/* @__PURE__ */ compose2(filterInterruptors, /* @__PURE__ */ has2(internalFiberId)));
30343
30334
  var addUnsafe2 = /* @__PURE__ */ dual((args2) => isFiberSet(args2[0]), (self, fiber3, options) => {
@@ -30438,7 +30429,7 @@ __export(Logger_exports, {
30438
30429
  formatStructured: () => formatStructured,
30439
30430
  isLogger: () => isLogger,
30440
30431
  layer: () => layer,
30441
- make: () => make41,
30432
+ make: () => make40,
30442
30433
  map: () => map16,
30443
30434
  toFile: () => toFile,
30444
30435
  tracerLogger: () => tracerLogger2,
@@ -30515,7 +30506,7 @@ var format9 = (quoteValue, space) => ({
30515
30506
  }
30516
30507
  return out;
30517
30508
  };
30518
- var make41 = loggerMake;
30509
+ var make40 = loggerMake;
30519
30510
  var defaultLogger2 = defaultLogger;
30520
30511
  var formatSimple = /* @__PURE__ */ loggerMake(/* @__PURE__ */ format9(escapeDoubleQuotes));
30521
30512
  var formatLogFmt = /* @__PURE__ */ loggerMake(/* @__PURE__ */ format9(JSON.stringify, 0));
@@ -30594,11 +30585,11 @@ var toFile = /* @__PURE__ */ dual((args2) => isLogger(args2[0]), (self, path, op
30594
30585
  var ManagedRuntime_exports = {};
30595
30586
  __export(ManagedRuntime_exports, {
30596
30587
  isManagedRuntime: () => isManagedRuntime,
30597
- make: () => make42
30588
+ make: () => make41
30598
30589
  });
30599
30590
  var TypeId47 = "~effect/ManagedRuntime";
30600
30591
  var isManagedRuntime = (input) => hasProperty(input, TypeId47);
30601
- var make42 = (layer2, options) => {
30592
+ var make41 = (layer2, options) => {
30602
30593
  const memoMap = options?.memoMap ?? makeMemoMapUnsafe();
30603
30594
  const scope3 = makeUnsafe3("sequential");
30604
30595
  const layerScope = forkUnsafe2(scope3, "sequential");
@@ -30708,7 +30699,6 @@ export {
30708
30699
  constant,
30709
30700
  constTrue,
30710
30701
  constFalse,
30711
- constUndefined,
30712
30702
  constVoid,
30713
30703
  pipe,
30714
30704
  flow,
@@ -30733,7 +30723,6 @@ export {
30733
30723
  getStackTraceLimit,
30734
30724
  assignProperty,
30735
30725
  PipeInspectableProto,
30736
- Prototype2 as Prototype,
30737
30726
  none2 as none,
30738
30727
  some3 as some,
30739
30728
  isOption2 as isOption,
@@ -30756,13 +30745,11 @@ export {
30756
30745
  Service,
30757
30746
  makeUnsafe,
30758
30747
  empty,
30759
- make5 as make,
30760
30748
  add,
30761
30749
  getOrUndefined2,
30762
30750
  getOrUndefinedUnsafe,
30763
30751
  getUnsafe,
30764
30752
  get,
30765
- getOption,
30766
30753
  merge,
30767
30754
  Reference,
30768
30755
  Context_exports,
@@ -30773,7 +30760,6 @@ export {
30773
30760
  isSuccess2 as isSuccess,
30774
30761
  Result_exports,
30775
30762
  map3 as map2,
30776
- assignProperty2,
30777
30763
  allocate,
30778
30764
  fromIterable2 as fromIterable,
30779
30765
  ensure,
@@ -30794,21 +30780,17 @@ export {
30794
30780
  Duration_exports,
30795
30781
  Scheduler,
30796
30782
  MixedScheduler,
30797
- PreventSchedulerYield,
30798
30783
  Scheduler_exports,
30799
30784
  TaggedClass,
30800
30785
  Error3 as Error,
30801
30786
  TaggedError2 as TaggedError,
30802
30787
  Data_exports,
30803
30788
  random2 as random,
30804
- ParentSpan,
30805
- make7 as make2,
30789
+ make7 as make,
30806
30790
  externalSpan,
30807
30791
  DisablePropagation,
30808
30792
  Tracer,
30809
30793
  Tracer_exports,
30810
- makeSpanUnsafe,
30811
- endSpan,
30812
30794
  isCause2 as isCause,
30813
30795
  fail6 as fail2,
30814
30796
  interrupt4 as interrupt,
@@ -30832,16 +30814,12 @@ export {
30832
30814
  failCause3 as failCause,
30833
30815
  fail5 as fail3,
30834
30816
  void_4 as void_,
30835
- isSuccess4 as isSuccess2,
30836
- isFailure4 as isFailure2,
30837
30817
  getSuccess4 as getSuccess,
30838
30818
  Exit_exports,
30839
30819
  Deferred_exports,
30840
30820
  CurrentLogAnnotations2 as CurrentLogAnnotations,
30841
30821
  CurrentLogSpans2 as CurrentLogSpans,
30842
- TracerTimingEnabled2 as TracerTimingEnabled,
30843
30822
  Scope,
30844
- make9 as make3,
30845
30823
  makeUnsafe3 as makeUnsafe2,
30846
30824
  provide,
30847
30825
  addFinalizer2 as addFinalizer,
@@ -30877,7 +30855,6 @@ export {
30877
30855
  all4 as all,
30878
30856
  forEach2 as forEach,
30879
30857
  whileLoop2 as whileLoop,
30880
- promise2 as promise,
30881
30858
  tryPromise2 as tryPromise,
30882
30859
  succeed7 as succeed4,
30883
30860
  succeedNone3 as succeedNone,
@@ -30889,12 +30866,10 @@ export {
30889
30866
  gen4 as gen,
30890
30867
  fail7 as fail4,
30891
30868
  failCause4 as failCause2,
30892
- die5 as die,
30893
30869
  try_3 as try_2,
30894
30870
  withFiber2 as withFiber,
30895
30871
  fromResult2 as fromResult,
30896
30872
  flatMap5 as flatMap2,
30897
- flatten5 as flatten,
30898
30873
  andThen4 as andThen,
30899
30874
  tap6 as tap,
30900
30875
  map9 as map3,
@@ -30920,18 +30895,13 @@ export {
30920
30895
  matchEffect3 as matchEffect,
30921
30896
  context2 as context,
30922
30897
  contextWith2 as contextWith,
30923
- provideContext2 as provideContext,
30924
- serviceOption2 as serviceOption,
30925
30898
  updateContext2 as updateContext,
30926
30899
  provideService2 as provideService,
30927
30900
  scope2 as scope,
30928
- scoped2 as scoped,
30929
30901
  scopedWith2 as scopedWith,
30930
30902
  acquireRelease2 as acquireRelease,
30931
30903
  addFinalizer3 as addFinalizer2,
30932
30904
  ensuring2 as ensuring,
30933
- onError2 as onError,
30934
- onExitPrimitive2 as onExitPrimitive,
30935
30905
  onExit2 as onExit,
30936
30906
  cached2 as cached,
30937
30907
  interruptible2 as interruptible,
@@ -30940,7 +30910,6 @@ export {
30940
30910
  forever4 as forever2,
30941
30911
  repeat3 as repeat,
30942
30912
  withTracerEnabled2 as withTracerEnabled,
30943
- makeSpanScoped2 as makeSpanScoped,
30944
30913
  useSpan2 as useSpan,
30945
30914
  withParentSpan3 as withParentSpan,
30946
30915
  forkIn2 as forkIn,
@@ -31003,7 +30972,6 @@ export {
31003
30972
  makeCompositeAtKey,
31004
30973
  Forbidden,
31005
30974
  SchemaIssue_exports,
31006
- Base64Url_exports,
31007
30975
  passthrough2,
31008
30976
  transformOptional,
31009
30977
  withDefault,
@@ -31035,7 +31003,7 @@ export {
31035
31003
  encodeEffect2 as encodeEffect,
31036
31004
  encodeExit2 as encodeExit,
31037
31005
  encodeSync2 as encodeSync,
31038
- make26 as make4,
31006
+ make25 as make2,
31039
31007
  isSchema,
31040
31008
  optionalKey2 as optionalKey,
31041
31009
  optional2 as optional,
@@ -31094,12 +31062,10 @@ export {
31094
31062
  joinAll,
31095
31063
  getCurrent,
31096
31064
  runIn,
31097
- make32 as make5,
31065
+ make30 as make3,
31098
31066
  offerUnsafe,
31099
31067
  failCauseUnsafe,
31100
31068
  Queue_exports,
31101
- makeUnsafe7 as makeUnsafe3,
31102
- make27 as make6,
31103
31069
  Semaphore_exports,
31104
31070
  fromTransform,
31105
31071
  fromPull,
@@ -31118,26 +31084,22 @@ export {
31118
31084
  succeed11 as succeed5,
31119
31085
  suspend6 as suspend2,
31120
31086
  fail11 as fail5,
31121
- fromIteratorSucceed,
31122
31087
  fromIterable9 as fromIterable2,
31123
31088
  fromQueue,
31124
31089
  fromReadableStream2 as fromReadableStream,
31125
31090
  unwrap3,
31126
31091
  map14 as map4,
31127
- mapArray,
31128
31092
  mapEffect2 as mapEffect,
31129
31093
  flatMap8 as flatMap3,
31130
31094
  filter10 as filter2,
31131
31095
  catchIf4 as catchIf,
31132
31096
  mapError6 as mapError3,
31133
- catchCauseFilter4 as catchCauseFilter2,
31134
31097
  pipeThroughChannel,
31135
31098
  changes,
31136
31099
  decodeText,
31137
31100
  encodeText,
31138
31101
  ensuring4 as ensuring2,
31139
- provideContext4 as provideContext2,
31140
- provideService4 as provideService2,
31102
+ provideContext4 as provideContext,
31141
31103
  run3 as run,
31142
31104
  runForEach2 as runForEach,
31143
31105
  runForEachArray,
@@ -31162,13 +31124,13 @@ export {
31162
31124
  Boolean4 as Boolean2,
31163
31125
  URL3 as URL,
31164
31126
  ignore5 as ignore2,
31165
- make40 as make7,
31127
+ make39 as make4,
31166
31128
  run4 as run2,
31167
31129
  runtime,
31168
31130
  awaitEmpty,
31169
31131
  FiberSet_exports,
31170
31132
  symbol5 as symbol3,
31171
- make41 as make8,
31133
+ make40 as make5,
31172
31134
  layer,
31173
31135
  Logger_exports,
31174
31136
  ManagedRuntime_exports,