effect 2.0.0-next.37 → 2.0.0-next.39

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 (1696) hide show
  1. package/Bigint/dist/effect-Bigint.cjs.dev.js +5 -5
  2. package/Bigint/dist/effect-Bigint.cjs.prod.js +5 -5
  3. package/Bigint/dist/effect-Bigint.esm.js +346 -5
  4. package/Boolean/dist/effect-Boolean.cjs.dev.js +5 -5
  5. package/Boolean/dist/effect-Boolean.cjs.prod.js +5 -5
  6. package/Boolean/dist/effect-Boolean.esm.js +230 -5
  7. package/Brand/dist/effect-Brand.cjs.dev.js +20 -20
  8. package/Brand/dist/effect-Brand.cjs.prod.js +20 -20
  9. package/Brand/dist/effect-Brand.esm.js +204 -20
  10. package/Cache/dist/effect-Cache.cjs.dev.js +72 -72
  11. package/Cache/dist/effect-Cache.cjs.prod.js +72 -72
  12. package/Cache/dist/effect-Cache.esm.js +111 -74
  13. package/Cause/dist/effect-Cause.cjs.dev.js +32 -32
  14. package/Cause/dist/effect-Cause.cjs.prod.js +32 -32
  15. package/Cause/dist/effect-Cause.esm.js +668 -33
  16. package/Channel/dist/effect-Channel.cjs.dev.js +105 -105
  17. package/Channel/dist/effect-Channel.cjs.prod.js +105 -105
  18. package/Channel/dist/effect-Channel.esm.js +1001 -107
  19. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.dev.js +3 -3
  20. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.prod.js +3 -3
  21. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.esm.js +112 -3
  22. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.dev.js +3 -3
  23. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.prod.js +3 -3
  24. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.esm.js +60 -3
  25. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.dev.js +3 -3
  26. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.prod.js +3 -3
  27. package/ChannelMergeState/dist/effect-ChannelMergeState.esm.js +101 -3
  28. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.dev.js +3 -3
  29. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.prod.js +3 -3
  30. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.esm.js +84 -3
  31. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.dev.js +89 -89
  32. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.prod.js +89 -89
  33. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.esm.js +47 -91
  34. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.dev.js +3 -3
  35. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.prod.js +3 -3
  36. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.esm.js +84 -3
  37. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.dev.js +3 -3
  38. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.prod.js +3 -3
  39. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.esm.js +83 -3
  40. package/Chunk/dist/effect-Chunk.cjs.dev.js +20 -20
  41. package/Chunk/dist/effect-Chunk.cjs.prod.js +20 -20
  42. package/Chunk/dist/effect-Chunk.esm.js +1084 -20
  43. package/Clock/dist/effect-Clock.cjs.dev.js +40 -40
  44. package/Clock/dist/effect-Clock.cjs.prod.js +40 -40
  45. package/Clock/dist/effect-Clock.esm.js +78 -42
  46. package/Config/dist/effect-Config.cjs.dev.js +36 -36
  47. package/Config/dist/effect-Config.cjs.prod.js +36 -36
  48. package/Config/dist/effect-Config.esm.js +321 -37
  49. package/ConfigError/dist/effect-ConfigError.cjs.dev.js +21 -21
  50. package/ConfigError/dist/effect-ConfigError.cjs.prod.js +21 -21
  51. package/ConfigError/dist/effect-ConfigError.esm.js +185 -21
  52. package/ConfigProvider/dist/effect-ConfigProvider.cjs.dev.js +38 -38
  53. package/ConfigProvider/dist/effect-ConfigProvider.cjs.prod.js +38 -38
  54. package/ConfigProvider/dist/effect-ConfigProvider.esm.js +198 -39
  55. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.dev.js +24 -24
  56. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.prod.js +24 -24
  57. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.esm.js +70 -24
  58. package/ConfigSecret/dist/effect-ConfigSecret.cjs.dev.js +22 -22
  59. package/ConfigSecret/dist/effect-ConfigSecret.cjs.prod.js +22 -22
  60. package/ConfigSecret/dist/effect-ConfigSecret.esm.js +63 -22
  61. package/Console/dist/effect-Console.cjs.dev.js +81 -81
  62. package/Console/dist/effect-Console.cjs.prod.js +81 -81
  63. package/Console/dist/effect-Console.esm.js +154 -83
  64. package/Context/dist/effect-Context.cjs.dev.js +17 -17
  65. package/Context/dist/effect-Context.cjs.prod.js +17 -17
  66. package/Context/dist/effect-Context.esm.js +295 -17
  67. package/Data/dist/effect-Data.cjs.dev.js +7 -7
  68. package/Data/dist/effect-Data.cjs.prod.js +7 -7
  69. package/Data/dist/effect-Data.esm.js +163 -7
  70. package/DefaultServices/dist/effect-DefaultServices.cjs.dev.js +40 -40
  71. package/DefaultServices/dist/effect-DefaultServices.cjs.prod.js +40 -40
  72. package/DefaultServices/dist/effect-DefaultServices.esm.js +24 -42
  73. package/Deferred/dist/effect-Deferred.cjs.dev.js +32 -32
  74. package/Deferred/dist/effect-Deferred.cjs.prod.js +32 -32
  75. package/Deferred/dist/effect-Deferred.esm.js +206 -33
  76. package/Differ/dist/effect-Differ.cjs.dev.js +25 -25
  77. package/Differ/dist/effect-Differ.cjs.prod.js +25 -25
  78. package/Differ/dist/effect-Differ.esm.js +137 -26
  79. package/Duration/dist/effect-Duration.cjs.dev.js +17 -16
  80. package/Duration/dist/effect-Duration.cjs.mjs +1 -0
  81. package/Duration/dist/effect-Duration.cjs.prod.js +17 -16
  82. package/Duration/dist/effect-Duration.esm.js +438 -16
  83. package/Effect/dist/effect-Effect.cjs.dev.js +87 -87
  84. package/Effect/dist/effect-Effect.cjs.prod.js +87 -87
  85. package/Effect/dist/effect-Effect.esm.js +3093 -89
  86. package/Effectable/dist/effect-Effectable.cjs.dev.js +10 -10
  87. package/Effectable/dist/effect-Effectable.cjs.prod.js +10 -10
  88. package/Effectable/dist/effect-Effectable.esm.js +77 -10
  89. package/Either/dist/effect-Either.cjs.dev.js +13 -13
  90. package/Either/dist/effect-Either.cjs.prod.js +13 -13
  91. package/Either/dist/effect-Either.esm.js +442 -13
  92. package/Encoding/dist/effect-Encoding.cjs.dev.js +14 -14
  93. package/Encoding/dist/effect-Encoding.cjs.prod.js +14 -14
  94. package/Encoding/dist/effect-Encoding.esm.js +123 -14
  95. package/Equal/dist/effect-Equal.cjs.dev.js +6 -6
  96. package/Equal/dist/effect-Equal.cjs.prod.js +6 -6
  97. package/Equal/dist/effect-Equal.esm.js +57 -6
  98. package/Equivalence/dist/effect-Equivalence.cjs.dev.js +2 -2
  99. package/Equivalence/dist/effect-Equivalence.cjs.prod.js +2 -2
  100. package/Equivalence/dist/effect-Equivalence.esm.js +196 -2
  101. package/Error/dist/effect-Error.cjs.dev.js +89 -89
  102. package/Error/dist/effect-Error.cjs.prod.js +89 -89
  103. package/Error/dist/effect-Error.esm.js +47 -91
  104. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.dev.js +2 -2
  105. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.prod.js +2 -2
  106. package/ExecutionStrategy/dist/effect-ExecutionStrategy.esm.js +99 -2
  107. package/Exit/dist/effect-Exit.cjs.dev.js +32 -32
  108. package/Exit/dist/effect-Exit.cjs.prod.js +32 -32
  109. package/Exit/dist/effect-Exit.esm.js +332 -33
  110. package/Fiber/dist/effect-Fiber.cjs.dev.js +75 -75
  111. package/Fiber/dist/effect-Fiber.cjs.prod.js +75 -75
  112. package/Fiber/dist/effect-Fiber.esm.js +423 -77
  113. package/FiberId/dist/effect-FiberId.cjs.dev.js +19 -19
  114. package/FiberId/dist/effect-FiberId.cjs.prod.js +19 -19
  115. package/FiberId/dist/effect-FiberId.esm.js +161 -20
  116. package/FiberRef/dist/effect-FiberRef.cjs.dev.js +73 -73
  117. package/FiberRef/dist/effect-FiberRef.cjs.prod.js +73 -73
  118. package/FiberRef/dist/effect-FiberRef.esm.js +289 -75
  119. package/FiberRefs/dist/effect-FiberRefs.cjs.dev.js +33 -33
  120. package/FiberRefs/dist/effect-FiberRefs.cjs.prod.js +33 -33
  121. package/FiberRefs/dist/effect-FiberRefs.esm.js +107 -34
  122. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.dev.js +34 -34
  123. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js +34 -34
  124. package/FiberRefsPatch/dist/effect-FiberRefsPatch.esm.js +76 -35
  125. package/FiberStatus/dist/effect-FiberStatus.cjs.dev.js +7 -7
  126. package/FiberStatus/dist/effect-FiberStatus.cjs.prod.js +7 -7
  127. package/FiberStatus/dist/effect-FiberStatus.esm.js +89 -7
  128. package/Function/dist/effect-Function.cjs.dev.js +1 -1
  129. package/Function/dist/effect-Function.cjs.prod.js +1 -1
  130. package/Function/dist/effect-Function.esm.js +492 -1
  131. package/GlobalValue/dist/effect-GlobalValue.cjs.dev.js +1 -1
  132. package/GlobalValue/dist/effect-GlobalValue.cjs.prod.js +1 -1
  133. package/GlobalValue/dist/effect-GlobalValue.esm.js +20 -1
  134. package/GroupBy/dist/effect-GroupBy.cjs.dev.js +106 -106
  135. package/GroupBy/dist/effect-GroupBy.cjs.prod.js +106 -106
  136. package/GroupBy/dist/effect-GroupBy.esm.js +63 -108
  137. package/Hash/dist/effect-Hash.cjs.dev.js +5 -5
  138. package/Hash/dist/effect-Hash.cjs.prod.js +5 -5
  139. package/Hash/dist/effect-Hash.esm.js +164 -5
  140. package/HashMap/dist/effect-HashMap.cjs.dev.js +17 -17
  141. package/HashMap/dist/effect-HashMap.cjs.prod.js +17 -17
  142. package/HashMap/dist/effect-HashMap.esm.js +287 -18
  143. package/HashSet/dist/effect-HashSet.cjs.dev.js +17 -17
  144. package/HashSet/dist/effect-HashSet.cjs.prod.js +17 -17
  145. package/HashSet/dist/effect-HashSet.esm.js +227 -18
  146. package/Hub/dist/effect-Hub.cjs.dev.js +72 -72
  147. package/Hub/dist/effect-Hub.cjs.prod.js +72 -72
  148. package/Hub/dist/effect-Hub.esm.js +148 -74
  149. package/Inspectable/dist/effect-Inspectable.cjs.dev.js +1 -1
  150. package/Inspectable/dist/effect-Inspectable.cjs.prod.js +1 -1
  151. package/Inspectable/dist/effect-Inspectable.esm.js +38 -1
  152. package/KeyedPool/dist/effect-KeyedPool.cjs.dev.js +73 -73
  153. package/KeyedPool/dist/effect-KeyedPool.cjs.prod.js +73 -73
  154. package/KeyedPool/dist/effect-KeyedPool.esm.js +104 -75
  155. package/Layer/dist/effect-Layer.cjs.dev.js +81 -81
  156. package/Layer/dist/effect-Layer.cjs.prod.js +81 -81
  157. package/Layer/dist/effect-Layer.esm.js +557 -83
  158. package/List/dist/effect-List.cjs.dev.js +21 -21
  159. package/List/dist/effect-List.cjs.prod.js +21 -21
  160. package/List/dist/effect-List.esm.js +816 -21
  161. package/LogLevel/dist/effect-LogLevel.cjs.dev.js +32 -32
  162. package/LogLevel/dist/effect-LogLevel.cjs.prod.js +32 -32
  163. package/LogLevel/dist/effect-LogLevel.esm.js +202 -33
  164. package/LogSpan/dist/effect-LogSpan.cjs.dev.js +1 -1
  165. package/LogSpan/dist/effect-LogSpan.cjs.prod.js +1 -1
  166. package/LogSpan/dist/effect-LogSpan.esm.js +24 -1
  167. package/Logger/dist/effect-Logger.cjs.dev.js +83 -83
  168. package/Logger/dist/effect-Logger.cjs.prod.js +83 -83
  169. package/Logger/dist/effect-Logger.esm.js +198 -85
  170. package/Metric/dist/effect-Metric.cjs.dev.js +69 -69
  171. package/Metric/dist/effect-Metric.cjs.prod.js +69 -69
  172. package/Metric/dist/effect-Metric.esm.js +395 -71
  173. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.dev.js +22 -22
  174. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.prod.js +22 -22
  175. package/MetricBoundaries/dist/effect-MetricBoundaries.esm.js +52 -22
  176. package/MetricHook/dist/effect-MetricHook.cjs.dev.js +26 -26
  177. package/MetricHook/dist/effect-MetricHook.cjs.prod.js +26 -26
  178. package/MetricHook/dist/effect-MetricHook.esm.js +68 -27
  179. package/MetricKey/dist/effect-MetricKey.cjs.dev.js +22 -22
  180. package/MetricKey/dist/effect-MetricKey.cjs.prod.js +22 -22
  181. package/MetricKey/dist/effect-MetricKey.esm.js +104 -23
  182. package/MetricKeyType/dist/effect-MetricKeyType.cjs.dev.js +18 -18
  183. package/MetricKeyType/dist/effect-MetricKeyType.cjs.prod.js +18 -18
  184. package/MetricKeyType/dist/effect-MetricKeyType.esm.js +147 -18
  185. package/MetricLabel/dist/effect-MetricLabel.cjs.dev.js +9 -9
  186. package/MetricLabel/dist/effect-MetricLabel.cjs.prod.js +9 -9
  187. package/MetricLabel/dist/effect-MetricLabel.esm.js +41 -9
  188. package/MetricPair/dist/effect-MetricPair.cjs.dev.js +3 -3
  189. package/MetricPair/dist/effect-MetricPair.cjs.prod.js +3 -3
  190. package/MetricPair/dist/effect-MetricPair.esm.js +38 -3
  191. package/MetricPolling/dist/effect-MetricPolling.cjs.dev.js +75 -75
  192. package/MetricPolling/dist/effect-MetricPolling.cjs.prod.js +75 -75
  193. package/MetricPolling/dist/effect-MetricPolling.esm.js +84 -77
  194. package/MetricRegistry/dist/effect-MetricRegistry.cjs.dev.js +32 -32
  195. package/MetricRegistry/dist/effect-MetricRegistry.cjs.prod.js +32 -32
  196. package/MetricRegistry/dist/effect-MetricRegistry.esm.js +28 -33
  197. package/MetricState/dist/effect-MetricState.cjs.dev.js +9 -9
  198. package/MetricState/dist/effect-MetricState.cjs.prod.js +9 -9
  199. package/MetricState/dist/effect-MetricState.esm.js +151 -9
  200. package/MutableHashMap/dist/effect-MutableHashMap.cjs.dev.js +19 -19
  201. package/MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js +19 -19
  202. package/MutableHashMap/dist/effect-MutableHashMap.esm.js +128 -20
  203. package/MutableHashSet/dist/effect-MutableHashSet.cjs.dev.js +20 -20
  204. package/MutableHashSet/dist/effect-MutableHashSet.cjs.prod.js +20 -20
  205. package/MutableHashSet/dist/effect-MutableHashSet.esm.js +90 -21
  206. package/MutableList/dist/effect-MutableList.cjs.dev.js +4 -4
  207. package/MutableList/dist/effect-MutableList.cjs.prod.js +4 -4
  208. package/MutableList/dist/effect-MutableList.esm.js +264 -4
  209. package/MutableQueue/dist/effect-MutableQueue.cjs.dev.js +22 -22
  210. package/MutableQueue/dist/effect-MutableQueue.cjs.prod.js +22 -22
  211. package/MutableQueue/dist/effect-MutableQueue.esm.js +187 -22
  212. package/MutableRef/dist/effect-MutableRef.cjs.dev.js +9 -9
  213. package/MutableRef/dist/effect-MutableRef.cjs.prod.js +9 -9
  214. package/MutableRef/dist/effect-MutableRef.esm.js +156 -9
  215. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.dev.js +1 -1
  216. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.prod.js +1 -1
  217. package/NonEmptyIterable/dist/effect-NonEmptyIterable.esm.js +28 -1
  218. package/Number/dist/effect-Number.cjs.dev.js +5 -5
  219. package/Number/dist/effect-Number.cjs.prod.js +5 -5
  220. package/Number/dist/effect-Number.esm.js +369 -5
  221. package/Option/dist/effect-Option.cjs.dev.js +15 -15
  222. package/Option/dist/effect-Option.cjs.prod.js +15 -15
  223. package/Option/dist/effect-Option.esm.js +1071 -15
  224. package/Order/dist/effect-Order.cjs.dev.js +2 -2
  225. package/Order/dist/effect-Order.cjs.prod.js +2 -2
  226. package/Order/dist/effect-Order.esm.js +263 -2
  227. package/Ordering/dist/effect-Ordering.cjs.dev.js +2 -2
  228. package/Ordering/dist/effect-Ordering.cjs.prod.js +2 -2
  229. package/Ordering/dist/effect-Ordering.esm.js +88 -2
  230. package/Pipeable/dist/effect-Pipeable.cjs.dev.js +1 -1
  231. package/Pipeable/dist/effect-Pipeable.cjs.prod.js +1 -1
  232. package/Pipeable/dist/effect-Pipeable.esm.js +44 -1
  233. package/Pool/dist/effect-Pool.cjs.dev.js +73 -73
  234. package/Pool/dist/effect-Pool.cjs.prod.js +73 -73
  235. package/Pool/dist/effect-Pool.esm.js +104 -75
  236. package/Predicate/dist/effect-Predicate.cjs.dev.js +2 -2
  237. package/Predicate/dist/effect-Predicate.cjs.prod.js +2 -2
  238. package/Predicate/dist/effect-Predicate.esm.js +634 -2
  239. package/Queue/dist/effect-Queue.cjs.dev.js +72 -72
  240. package/Queue/dist/effect-Queue.cjs.prod.js +72 -72
  241. package/Queue/dist/effect-Queue.esm.js +328 -74
  242. package/Random/dist/effect-Random.cjs.dev.js +40 -40
  243. package/Random/dist/effect-Random.cjs.prod.js +40 -40
  244. package/Random/dist/effect-Random.esm.js +83 -42
  245. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.dev.js +19 -19
  246. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js +19 -19
  247. package/ReadonlyArray/dist/effect-ReadonlyArray.esm.js +1445 -19
  248. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.dev.js +17 -17
  249. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.prod.js +17 -17
  250. package/ReadonlyRecord/dist/effect-ReadonlyRecord.esm.js +518 -17
  251. package/RedBlackTree/dist/effect-RedBlackTree.cjs.dev.js +21 -21
  252. package/RedBlackTree/dist/effect-RedBlackTree.cjs.prod.js +21 -21
  253. package/RedBlackTree/dist/effect-RedBlackTree.esm.js +314 -22
  254. package/Ref/dist/effect-Ref.cjs.dev.js +32 -32
  255. package/Ref/dist/effect-Ref.cjs.prod.js +32 -32
  256. package/Ref/dist/effect-Ref.esm.js +111 -33
  257. package/Reloadable/dist/effect-Reloadable.cjs.dev.js +82 -82
  258. package/Reloadable/dist/effect-Reloadable.cjs.prod.js +82 -82
  259. package/Reloadable/dist/effect-Reloadable.esm.js +88 -84
  260. package/Request/dist/effect-Request.cjs.dev.js +72 -72
  261. package/Request/dist/effect-Request.cjs.prod.js +72 -72
  262. package/Request/dist/effect-Request.esm.js +160 -74
  263. package/RequestBlock/dist/effect-RequestBlock.cjs.dev.js +89 -89
  264. package/RequestBlock/dist/effect-RequestBlock.cjs.prod.js +89 -89
  265. package/RequestBlock/dist/effect-RequestBlock.esm.js +103 -91
  266. package/RequestResolver/dist/effect-RequestResolver.cjs.dev.js +89 -89
  267. package/RequestResolver/dist/effect-RequestResolver.cjs.prod.js +89 -89
  268. package/RequestResolver/dist/effect-RequestResolver.esm.js +191 -91
  269. package/Resource/dist/effect-Resource.cjs.dev.js +77 -77
  270. package/Resource/dist/effect-Resource.cjs.prod.js +77 -77
  271. package/Resource/dist/effect-Resource.esm.js +70 -79
  272. package/Runtime/dist/effect-Runtime.cjs.dev.js +77 -77
  273. package/Runtime/dist/effect-Runtime.cjs.prod.js +77 -77
  274. package/Runtime/dist/effect-Runtime.esm.js +157 -79
  275. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.dev.js +83 -83
  276. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.prod.js +83 -83
  277. package/RuntimeFlags/dist/effect-RuntimeFlags.esm.js +305 -85
  278. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.dev.js +26 -26
  279. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.prod.js +26 -26
  280. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.esm.js +158 -27
  281. package/STM/dist/effect-STM.cjs.dev.js +110 -110
  282. package/STM/dist/effect-STM.cjs.prod.js +110 -110
  283. package/STM/dist/effect-STM.esm.js +1193 -112
  284. package/Schedule/dist/effect-Schedule.cjs.dev.js +55 -55
  285. package/Schedule/dist/effect-Schedule.cjs.prod.js +55 -55
  286. package/Schedule/dist/effect-Schedule.esm.js +957 -57
  287. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.dev.js +24 -24
  288. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js +24 -24
  289. package/ScheduleDecision/dist/effect-ScheduleDecision.esm.js +48 -24
  290. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.dev.js +17 -17
  291. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js +17 -17
  292. package/ScheduleInterval/dist/effect-ScheduleInterval.esm.js +130 -17
  293. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.dev.js +23 -23
  294. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js +23 -23
  295. package/ScheduleIntervals/dist/effect-ScheduleIntervals.esm.js +105 -23
  296. package/Scheduler/dist/effect-Scheduler.cjs.dev.js +32 -32
  297. package/Scheduler/dist/effect-Scheduler.cjs.prod.js +32 -32
  298. package/Scheduler/dist/effect-Scheduler.esm.js +326 -34
  299. package/Scope/dist/effect-Scope.cjs.dev.js +69 -69
  300. package/Scope/dist/effect-Scope.cjs.prod.js +69 -69
  301. package/Scope/dist/effect-Scope.esm.js +117 -71
  302. package/ScopedCache/dist/effect-ScopedCache.cjs.dev.js +73 -73
  303. package/ScopedCache/dist/effect-ScopedCache.cjs.prod.js +73 -73
  304. package/ScopedCache/dist/effect-ScopedCache.esm.js +52 -75
  305. package/ScopedRef/dist/effect-ScopedRef.cjs.dev.js +77 -77
  306. package/ScopedRef/dist/effect-ScopedRef.cjs.prod.js +77 -77
  307. package/ScopedRef/dist/effect-ScopedRef.esm.js +71 -79
  308. package/Sink/dist/effect-Sink.cjs.dev.js +99 -99
  309. package/Sink/dist/effect-Sink.cjs.prod.js +99 -99
  310. package/Sink/dist/effect-Sink.esm.js +997 -101
  311. package/SortedMap/dist/effect-SortedMap.cjs.dev.js +22 -22
  312. package/SortedMap/dist/effect-SortedMap.cjs.prod.js +22 -22
  313. package/SortedMap/dist/effect-SortedMap.esm.js +168 -23
  314. package/SortedSet/dist/effect-SortedSet.cjs.dev.js +22 -22
  315. package/SortedSet/dist/effect-SortedSet.cjs.prod.js +22 -22
  316. package/SortedSet/dist/effect-SortedSet.esm.js +263 -23
  317. package/Stream/dist/effect-Stream.cjs.dev.js +106 -106
  318. package/Stream/dist/effect-Stream.cjs.prod.js +106 -106
  319. package/Stream/dist/effect-Stream.esm.js +2879 -108
  320. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.dev.js +2 -2
  321. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.prod.js +2 -2
  322. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.esm.js +97 -2
  323. package/String/dist/effect-String.cjs.dev.js +17 -17
  324. package/String/dist/effect-String.cjs.prod.js +17 -17
  325. package/String/dist/effect-String.esm.js +600 -17
  326. package/Struct/dist/effect-Struct.cjs.dev.js +4 -4
  327. package/Struct/dist/effect-Struct.cjs.prod.js +4 -4
  328. package/Struct/dist/effect-Struct.esm.js +125 -4
  329. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.dev.js +106 -106
  330. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.prod.js +106 -106
  331. package/SubscriptionRef/dist/effect-SubscriptionRef.esm.js +160 -108
  332. package/Supervisor/dist/effect-Supervisor.cjs.dev.js +83 -83
  333. package/Supervisor/dist/effect-Supervisor.cjs.prod.js +83 -83
  334. package/Supervisor/dist/effect-Supervisor.esm.js +148 -85
  335. package/Symbol/dist/effect-Symbol.cjs.dev.js +4 -4
  336. package/Symbol/dist/effect-Symbol.cjs.prod.js +4 -4
  337. package/Symbol/dist/effect-Symbol.esm.js +30 -4
  338. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.dev.js +76 -76
  339. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.prod.js +76 -76
  340. package/SynchronizedRef/dist/effect-SynchronizedRef.esm.js +160 -78
  341. package/TArray/dist/effect-TArray.cjs.dev.js +112 -112
  342. package/TArray/dist/effect-TArray.cjs.prod.js +112 -112
  343. package/TArray/dist/effect-TArray.esm.js +367 -114
  344. package/TDeferred/dist/effect-TDeferred.cjs.dev.js +111 -111
  345. package/TDeferred/dist/effect-TDeferred.cjs.prod.js +111 -111
  346. package/TDeferred/dist/effect-TDeferred.esm.js +63 -113
  347. package/THub/dist/effect-THub.cjs.dev.js +113 -113
  348. package/THub/dist/effect-THub.cjs.prod.js +113 -113
  349. package/THub/dist/effect-THub.esm.js +157 -115
  350. package/TMap/dist/effect-TMap.cjs.dev.js +114 -114
  351. package/TMap/dist/effect-TMap.cjs.prod.js +114 -114
  352. package/TMap/dist/effect-TMap.esm.js +373 -116
  353. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.dev.js +111 -111
  354. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.prod.js +111 -111
  355. package/TPriorityQueue/dist/effect-TPriorityQueue.esm.js +184 -113
  356. package/TQueue/dist/effect-TQueue.cjs.dev.js +113 -113
  357. package/TQueue/dist/effect-TQueue.cjs.prod.js +113 -113
  358. package/TQueue/dist/effect-TQueue.esm.js +293 -115
  359. package/TRandom/dist/effect-TRandom.cjs.dev.js +112 -112
  360. package/TRandom/dist/effect-TRandom.cjs.prod.js +112 -112
  361. package/TRandom/dist/effect-TRandom.esm.js +93 -114
  362. package/TReentrantLock/dist/effect-TReentrantLock.cjs.dev.js +110 -110
  363. package/TReentrantLock/dist/effect-TReentrantLock.cjs.prod.js +110 -110
  364. package/TReentrantLock/dist/effect-TReentrantLock.esm.js +199 -112
  365. package/TRef/dist/effect-TRef.cjs.dev.js +110 -110
  366. package/TRef/dist/effect-TRef.cjs.prod.js +110 -110
  367. package/TRef/dist/effect-TRef.esm.js +116 -112
  368. package/TSemaphore/dist/effect-TSemaphore.cjs.dev.js +112 -112
  369. package/TSemaphore/dist/effect-TSemaphore.cjs.prod.js +112 -112
  370. package/TSemaphore/dist/effect-TSemaphore.esm.js +97 -114
  371. package/TSet/dist/effect-TSet.cjs.dev.js +114 -114
  372. package/TSet/dist/effect-TSet.cjs.prod.js +114 -114
  373. package/TSet/dist/effect-TSet.esm.js +268 -116
  374. package/Take/dist/effect-Take.cjs.dev.js +89 -89
  375. package/Take/dist/effect-Take.cjs.prod.js +89 -89
  376. package/Take/dist/effect-Take.esm.js +190 -91
  377. package/TestAnnotation/dist/effect-TestAnnotation.cjs.dev.js +25 -25
  378. package/TestAnnotation/dist/effect-TestAnnotation.cjs.prod.js +25 -25
  379. package/TestAnnotation/dist/effect-TestAnnotation.esm.js +111 -26
  380. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.dev.js +2 -2
  381. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.prod.js +2 -2
  382. package/TestAnnotationMap/dist/effect-TestAnnotationMap.esm.js +101 -2
  383. package/TestAnnotations/dist/effect-TestAnnotations.cjs.dev.js +57 -57
  384. package/TestAnnotations/dist/effect-TestAnnotations.cjs.prod.js +57 -57
  385. package/TestAnnotations/dist/effect-TestAnnotations.esm.js +83 -59
  386. package/TestClock/dist/effect-TestClock.cjs.dev.js +85 -85
  387. package/TestClock/dist/effect-TestClock.cjs.prod.js +85 -85
  388. package/TestClock/dist/effect-TestClock.esm.js +411 -87
  389. package/TestConfig/dist/effect-TestConfig.cjs.dev.js +18 -18
  390. package/TestConfig/dist/effect-TestConfig.cjs.prod.js +18 -18
  391. package/TestConfig/dist/effect-TestConfig.esm.js +27 -18
  392. package/TestContext/dist/effect-TestContext.cjs.dev.js +96 -96
  393. package/TestContext/dist/effect-TestContext.cjs.prod.js +96 -96
  394. package/TestContext/dist/effect-TestContext.esm.js +29 -98
  395. package/TestLive/dist/effect-TestLive.cjs.dev.js +40 -40
  396. package/TestLive/dist/effect-TestLive.cjs.prod.js +40 -40
  397. package/TestLive/dist/effect-TestLive.esm.js +48 -42
  398. package/TestServices/dist/effect-TestServices.cjs.dev.js +94 -94
  399. package/TestServices/dist/effect-TestServices.cjs.prod.js +94 -94
  400. package/TestServices/dist/effect-TestServices.esm.js +269 -96
  401. package/TestSized/dist/effect-TestSized.cjs.dev.js +32 -32
  402. package/TestSized/dist/effect-TestSized.cjs.prod.js +32 -32
  403. package/TestSized/dist/effect-TestSized.esm.js +50 -33
  404. package/Tracer/dist/effect-Tracer.cjs.dev.js +40 -40
  405. package/Tracer/dist/effect-Tracer.cjs.prod.js +40 -40
  406. package/Tracer/dist/effect-Tracer.esm.js +68 -42
  407. package/Tuple/dist/effect-Tuple.cjs.dev.js +4 -4
  408. package/Tuple/dist/effect-Tuple.cjs.prod.js +4 -4
  409. package/Tuple/dist/effect-Tuple.esm.js +173 -4
  410. package/Unify/dist/effect-Unify.cjs.dev.js +2 -2
  411. package/Unify/dist/effect-Unify.cjs.prod.js +2 -2
  412. package/Unify/dist/effect-Unify.esm.js +40 -2
  413. package/Utils/dist/effect-Utils.cjs.dev.js +3 -3
  414. package/Utils/dist/effect-Utils.cjs.prod.js +3 -3
  415. package/Utils/dist/effect-Utils.esm.js +352 -3
  416. package/dist/Bigint-0ebd807c.cjs.dev.js +392 -0
  417. package/dist/Bigint-912c77f3.cjs.prod.js +392 -0
  418. package/dist/Boolean-97839b78.cjs.prod.js +264 -0
  419. package/dist/Boolean-f0bc3abf.cjs.dev.js +264 -0
  420. package/dist/Brand-93578f43.cjs.prod.js +224 -0
  421. package/dist/Brand-b238487d.cjs.dev.js +224 -0
  422. package/dist/Cache-1688e584.cjs.dev.js +127 -0
  423. package/dist/Cache-8f2f2b55.cjs.prod.js +127 -0
  424. package/dist/Cause-384e2165.cjs.prod.js +791 -0
  425. package/dist/Cause-96c29074.cjs.dev.js +791 -0
  426. package/dist/Channel-2ce019f1.cjs.prod.js +1217 -0
  427. package/dist/Channel-544108d2.cjs.dev.js +1217 -0
  428. package/dist/ChannelChildExecutorDecision-168278f6.cjs.prod.js +136 -0
  429. package/dist/ChannelChildExecutorDecision-b0e715de.cjs.dev.js +136 -0
  430. package/dist/ChannelMergeDecision-9c266aeb.cjs.prod.js +78 -0
  431. package/dist/ChannelMergeDecision-eeaf4779.cjs.dev.js +78 -0
  432. package/dist/ChannelMergeState-4366d090.cjs.prod.js +125 -0
  433. package/dist/ChannelMergeState-abce1d88.cjs.dev.js +125 -0
  434. package/dist/ChannelMergeStrategy-6193b8e0.cjs.prod.js +104 -0
  435. package/dist/ChannelMergeStrategy-e7ddbb7a.cjs.dev.js +104 -0
  436. package/dist/ChannelSingleProducerAsyncInput-62f4749c.cjs.dev.js +55 -0
  437. package/dist/ChannelSingleProducerAsyncInput-6e0084c3.cjs.prod.js +55 -0
  438. package/dist/ChannelUpstreamPullRequest-1ca7d2bd.cjs.dev.js +104 -0
  439. package/dist/ChannelUpstreamPullRequest-208751c3.cjs.prod.js +104 -0
  440. package/dist/ChannelUpstreamPullStrategy-266b5a77.cjs.prod.js +103 -0
  441. package/dist/ChannelUpstreamPullStrategy-ec57dc70.cjs.dev.js +103 -0
  442. package/dist/Chunk-6cf5a8e6.cjs.prod.js +1248 -0
  443. package/dist/Chunk-bd290b8e.cjs.dev.js +1248 -0
  444. package/dist/Clock-09ecce0a.cjs.prod.js +97 -0
  445. package/dist/Clock-bec722c1.cjs.dev.js +97 -0
  446. package/dist/Config-85ae6286.cjs.prod.js +393 -0
  447. package/dist/Config-dc58cf69.cjs.dev.js +393 -0
  448. package/dist/ConfigError-c1f762d2.cjs.dev.js +225 -0
  449. package/dist/ConfigError-cee682fa.cjs.prod.js +225 -0
  450. package/dist/ConfigProvider-8341a5f5.cjs.prod.js +240 -0
  451. package/dist/ConfigProvider-de45b085.cjs.dev.js +240 -0
  452. package/dist/ConfigProviderPathPatch-52422b32.cjs.prod.js +86 -0
  453. package/dist/ConfigProviderPathPatch-d22442e3.cjs.dev.js +86 -0
  454. package/dist/ConfigSecret-c76717e8.cjs.dev.js +83 -0
  455. package/dist/ConfigSecret-ebab2ae7.cjs.prod.js +83 -0
  456. package/dist/Console-150b7b40.cjs.prod.js +271 -0
  457. package/dist/Console-4825ee9f.cjs.dev.js +271 -0
  458. package/dist/Context-25a49952.cjs.prod.js +327 -0
  459. package/dist/Context-3c9e986b.cjs.dev.js +327 -0
  460. package/dist/Context-96739709.cjs.dev.js +222 -0
  461. package/dist/Context-f958cabc.cjs.prod.js +222 -0
  462. package/dist/Data-07dc27f1.cjs.prod.js +237 -0
  463. package/dist/Data-85559fb3.cjs.dev.js +237 -0
  464. package/dist/DefaultServices-d5740d37.cjs.dev.js +34 -0
  465. package/dist/DefaultServices-df7495bb.cjs.prod.js +34 -0
  466. package/dist/Deferred-5d5c886c.cjs.dev.js +253 -0
  467. package/dist/Deferred-9d825b3b.cjs.prod.js +253 -0
  468. package/dist/Differ-0122f60e.cjs.dev.js +992 -0
  469. package/dist/Differ-0bd34066.cjs.prod.js +992 -0
  470. package/dist/Duration-0bc08d03.cjs.prod.js +508 -0
  471. package/dist/Duration-604874d1.cjs.dev.js +508 -0
  472. package/dist/Effect-1442090f.cjs.prod.js +3740 -0
  473. package/dist/Effect-6e9780e6.cjs.dev.js +3740 -0
  474. package/dist/Effectable-04f3cd30.cjs.dev.js +99 -0
  475. package/dist/Effectable-8997112d.cjs.prod.js +99 -0
  476. package/dist/Effectable-a6403e5f.cjs.dev.js +181 -0
  477. package/dist/Effectable-f867d1cb.cjs.prod.js +181 -0
  478. package/dist/Either-3fab3796.cjs.prod.js +502 -0
  479. package/dist/Either-9c349424.cjs.dev.js +178 -0
  480. package/dist/Either-a806809d.cjs.dev.js +502 -0
  481. package/dist/Either-d03d5f05.cjs.prod.js +178 -0
  482. package/dist/Encoding-0cab52d5.cjs.prod.js +309 -0
  483. package/dist/Encoding-d993b1b0.cjs.dev.js +309 -0
  484. package/dist/Equal-281b6ca8.cjs.dev.js +71 -0
  485. package/dist/Equal-ce9977a8.cjs.prod.js +71 -0
  486. package/dist/Equivalence-0bc84518.cjs.prod.js +238 -0
  487. package/dist/Equivalence-de7a0d51.cjs.dev.js +238 -0
  488. package/dist/Error-5ab157f2.cjs.dev.js +57 -0
  489. package/dist/Error-e9d25c53.cjs.prod.js +57 -0
  490. package/dist/ExecutionStrategy-89fbe735.cjs.dev.js +180 -0
  491. package/dist/ExecutionStrategy-dc778180.cjs.prod.js +180 -0
  492. package/dist/Exit-5691142c.cjs.prod.js +408 -0
  493. package/dist/Exit-a23874e1.cjs.dev.js +408 -0
  494. package/dist/Fiber-6432d5f7.cjs.dev.js +521 -0
  495. package/dist/Fiber-e61b3c65.cjs.prod.js +521 -0
  496. package/dist/FiberId-929dcce4.cjs.dev.js +443 -0
  497. package/dist/FiberId-b79e8047.cjs.prod.js +443 -0
  498. package/dist/FiberRef-1db44a9b.cjs.dev.js +385 -0
  499. package/dist/FiberRef-efb4a3ac.cjs.prod.js +385 -0
  500. package/dist/FiberRefs-43bfd8b9.cjs.dev.js +135 -0
  501. package/dist/FiberRefs-4cb171f7.cjs.prod.js +135 -0
  502. package/dist/FiberRefsPatch-5236f61e.cjs.dev.js +90 -0
  503. package/dist/FiberRefsPatch-cb847553.cjs.prod.js +90 -0
  504. package/dist/FiberStatus-b82dad24.cjs.prod.js +197 -0
  505. package/dist/FiberStatus-bac7d58d.cjs.dev.js +197 -0
  506. package/dist/Function-2e6b0cda.cjs.prod.js +538 -0
  507. package/dist/Function-41ce433d.cjs.dev.js +538 -0
  508. package/dist/GlobalValue-81ab6908.cjs.dev.js +28 -0
  509. package/dist/GlobalValue-cb645c99.cjs.prod.js +28 -0
  510. package/dist/GroupBy-8a8149b4.cjs.dev.js +79 -0
  511. package/dist/GroupBy-b74084af.cjs.prod.js +79 -0
  512. package/dist/Hash-1bd73210.cjs.prod.js +192 -0
  513. package/dist/Hash-bd154268.cjs.dev.js +192 -0
  514. package/dist/HashMap-12668911.cjs.prod.js +361 -0
  515. package/dist/HashMap-68e290b6.cjs.dev.js +361 -0
  516. package/dist/HashSet-6978c08e.cjs.dev.js +283 -0
  517. package/dist/HashSet-6fe62df2.cjs.prod.js +965 -0
  518. package/dist/HashSet-c40a52b1.cjs.prod.js +283 -0
  519. package/dist/HashSet-ece2cfe8.cjs.dev.js +965 -0
  520. package/dist/Hub-6e64debd.cjs.prod.js +1280 -0
  521. package/dist/Hub-74834668.cjs.dev.js +1280 -0
  522. package/dist/Inspectable-3c4a0f5d.cjs.prod.js +50 -0
  523. package/dist/Inspectable-ac929af4.cjs.dev.js +50 -0
  524. package/dist/KeyedPool-b05481e9.cjs.dev.js +282 -0
  525. package/dist/KeyedPool-cd8abf95.cjs.prod.js +282 -0
  526. package/dist/Layer-297269fd.cjs.prod.js +687 -0
  527. package/dist/Layer-c69f3fdc.cjs.dev.js +687 -0
  528. package/dist/List-c6ea7efe.cjs.dev.js +912 -0
  529. package/dist/List-d9775087.cjs.prod.js +912 -0
  530. package/dist/LogLevel-99f64f82.cjs.dev.js +240 -0
  531. package/dist/LogLevel-e9848e15.cjs.prod.js +240 -0
  532. package/dist/LogSpan-c905a192.cjs.prod.js +46 -0
  533. package/dist/LogSpan-e345ba58.cjs.dev.js +46 -0
  534. package/dist/Logger-680763c7.cjs.dev.js +275 -0
  535. package/dist/Logger-7a664cc3.cjs.prod.js +275 -0
  536. package/dist/Metric-09d012ff.cjs.dev.js +488 -0
  537. package/dist/Metric-b7563a68.cjs.prod.js +488 -0
  538. package/dist/MetricBoundaries-cf5df220.cjs.prod.js +68 -0
  539. package/dist/MetricBoundaries-f5f5aae1.cjs.dev.js +68 -0
  540. package/dist/MetricHook-3104e93b.cjs.dev.js +90 -0
  541. package/dist/MetricHook-efd05d72.cjs.prod.js +90 -0
  542. package/dist/MetricKey-9cfcaec8.cjs.prod.js +130 -0
  543. package/dist/MetricKey-c3ba437e.cjs.dev.js +130 -0
  544. package/dist/MetricKeyType-6d2d9036.cjs.prod.js +187 -0
  545. package/dist/MetricKeyType-c1d7ebe8.cjs.dev.js +187 -0
  546. package/dist/MetricLabel-6a1886c6.cjs.dev.js +53 -0
  547. package/dist/MetricLabel-7e1d569e.cjs.prod.js +53 -0
  548. package/dist/MetricPair-658ab13d.cjs.dev.js +50 -0
  549. package/dist/MetricPair-aec13967.cjs.prod.js +50 -0
  550. package/dist/MetricPolling-5af0ff67.cjs.dev.js +177 -0
  551. package/dist/MetricPolling-a0a4e798.cjs.prod.js +177 -0
  552. package/dist/MetricRegistry-e4af936b.cjs.dev.js +38 -0
  553. package/dist/MetricRegistry-ff6df283.cjs.prod.js +38 -0
  554. package/dist/MetricState-b65340a4.cjs.dev.js +191 -0
  555. package/dist/MetricState-bd6a5001.cjs.prod.js +191 -0
  556. package/dist/MutableHashMap-74e83e84.cjs.dev.js +154 -0
  557. package/dist/MutableHashMap-95493edb.cjs.prod.js +154 -0
  558. package/dist/MutableHashSet-780dfd63.cjs.prod.js +110 -0
  559. package/dist/MutableHashSet-ec8d7cc4.cjs.dev.js +110 -0
  560. package/dist/MutableList-58124ef2.cjs.dev.js +296 -0
  561. package/dist/MutableList-732af09a.cjs.prod.js +296 -0
  562. package/dist/MutableQueue-0e9f2466.cjs.dev.js +215 -0
  563. package/dist/MutableQueue-f8aba856.cjs.prod.js +215 -0
  564. package/dist/MutableRef-4a2f1f23.cjs.prod.js +194 -0
  565. package/dist/MutableRef-724c4082.cjs.dev.js +194 -0
  566. package/dist/NonEmptyIterable-418cef14.cjs.prod.js +36 -0
  567. package/dist/NonEmptyIterable-bb452f41.cjs.dev.js +36 -0
  568. package/dist/Number-588f6483.cjs.dev.js +417 -0
  569. package/dist/Number-cb2ba2e8.cjs.prod.js +417 -0
  570. package/dist/Option-02025c86.cjs.prod.js +1198 -0
  571. package/dist/Option-03997d77.cjs.dev.js +1198 -0
  572. package/dist/Order-28bdebd2.cjs.dev.js +321 -0
  573. package/dist/Order-8a112bfb.cjs.prod.js +321 -0
  574. package/dist/Ordering-60bf9127.cjs.prod.js +104 -0
  575. package/dist/Ordering-b955b746.cjs.dev.js +104 -0
  576. package/dist/Pipeable-4698db72.cjs.dev.js +52 -0
  577. package/dist/Pipeable-d3ec6711.cjs.prod.js +52 -0
  578. package/dist/Pool-54389592.cjs.prod.js +122 -0
  579. package/dist/Pool-fe1b506a.cjs.dev.js +122 -0
  580. package/dist/Predicate-9e859c9c.cjs.dev.js +718 -0
  581. package/dist/Predicate-daa86e61.cjs.prod.js +718 -0
  582. package/dist/Queue-5f954287.cjs.prod.js +394 -0
  583. package/dist/Queue-8d082fe4.cjs.dev.js +394 -0
  584. package/dist/Random-35304046.cjs.dev.js +104 -0
  585. package/dist/Random-b4709b6a.cjs.prod.js +104 -0
  586. package/dist/ReadonlyArray-48949ee7.cjs.dev.js +1721 -0
  587. package/dist/ReadonlyArray-8157f697.cjs.prod.js +1721 -0
  588. package/dist/ReadonlyArray-9a1474f6.cjs.dev.js +10 -0
  589. package/dist/ReadonlyArray-f9ed7a05.cjs.prod.js +10 -0
  590. package/dist/ReadonlyRecord-605a625b.cjs.dev.js +568 -0
  591. package/dist/ReadonlyRecord-8db8bada.cjs.prod.js +568 -0
  592. package/dist/RedBlackTree-e6bd147c.cjs.dev.js +1669 -0
  593. package/dist/RedBlackTree-eb41ea8a.cjs.prod.js +1669 -0
  594. package/dist/Ref-30e5ee58.cjs.prod.js +282 -0
  595. package/dist/Ref-af783b72.cjs.dev.js +282 -0
  596. package/dist/Reloadable-2b8ba75d.cjs.prod.js +169 -0
  597. package/dist/Reloadable-b01c9297.cjs.dev.js +169 -0
  598. package/dist/Request-53592fe4.cjs.prod.js +190 -0
  599. package/dist/Request-d3b63af6.cjs.dev.js +190 -0
  600. package/dist/RequestBlock-1aa4c3bd.cjs.dev.js +124 -0
  601. package/dist/RequestBlock-8c3b51d1.cjs.prod.js +124 -0
  602. package/dist/RequestResolver-133197d5.cjs.prod.js +233 -0
  603. package/dist/RequestResolver-86c21b80.cjs.dev.js +233 -0
  604. package/dist/Resource-2530fe45.cjs.prod.js +118 -0
  605. package/dist/Resource-e50b4b25.cjs.dev.js +118 -0
  606. package/dist/Runtime-0d643f0c.cjs.prod.js +191 -0
  607. package/dist/Runtime-c4b887ff.cjs.dev.js +191 -0
  608. package/dist/RuntimeFlags-9d8fac5a.cjs.prod.js +381 -0
  609. package/dist/RuntimeFlags-f67e3984.cjs.dev.js +381 -0
  610. package/dist/RuntimeFlagsPatch-130e990c.cjs.dev.js +411 -0
  611. package/dist/RuntimeFlagsPatch-5570758d.cjs.prod.js +411 -0
  612. package/dist/STM-23270be2.cjs.prod.js +1447 -0
  613. package/dist/STM-5a4c9921.cjs.dev.js +1447 -0
  614. package/dist/Schedule-0444792d.cjs.prod.js +1159 -0
  615. package/dist/Schedule-b6c7b49a.cjs.dev.js +1159 -0
  616. package/dist/ScheduleDecision-369f2d2b.cjs.prod.js +106 -0
  617. package/dist/ScheduleDecision-ba8d0e87.cjs.dev.js +106 -0
  618. package/dist/ScheduleInterval-51f42533.cjs.dev.js +244 -0
  619. package/dist/ScheduleInterval-78037484.cjs.prod.js +244 -0
  620. package/dist/ScheduleIntervals-b0bfcf3b.cjs.dev.js +265 -0
  621. package/dist/ScheduleIntervals-db13140c.cjs.prod.js +265 -0
  622. package/dist/Scheduler-819ee02a.cjs.prod.js +358 -0
  623. package/dist/Scheduler-d080442d.cjs.dev.js +358 -0
  624. package/dist/Scope-311c7eb9.cjs.prod.js +143 -0
  625. package/dist/Scope-6ba9ec6d.cjs.dev.js +143 -0
  626. package/dist/ScopedCache-3f58b125.cjs.dev.js +467 -0
  627. package/dist/ScopedCache-8f99505c.cjs.prod.js +467 -0
  628. package/dist/ScopedRef-7946d287.cjs.prod.js +87 -0
  629. package/dist/ScopedRef-b92e1633.cjs.dev.js +87 -0
  630. package/dist/Sink-9f13da17.cjs.dev.js +1215 -0
  631. package/dist/Sink-9f82fc3b.cjs.prod.js +1215 -0
  632. package/dist/SortedMap-bb3311c3.cjs.prod.js +210 -0
  633. package/dist/SortedMap-f452cc44.cjs.dev.js +210 -0
  634. package/dist/SortedSet-424670fe.cjs.prod.js +311 -0
  635. package/dist/SortedSet-f90b14a2.cjs.dev.js +311 -0
  636. package/dist/Stream-14325ecb.cjs.dev.js +3469 -0
  637. package/dist/Stream-cf262c16.cjs.prod.js +3469 -0
  638. package/dist/StreamHaltStrategy-07f544a6.cjs.prod.js +214 -0
  639. package/dist/StreamHaltStrategy-66a53f66.cjs.dev.js +214 -0
  640. package/dist/String-23b18ca9.cjs.prod.js +694 -0
  641. package/dist/String-830aaa3e.cjs.dev.js +694 -0
  642. package/dist/Struct-14648d76.cjs.dev.js +141 -0
  643. package/dist/Struct-c6b00f29.cjs.prod.js +141 -0
  644. package/dist/SubscriptionRef-aa7bdc5f.cjs.prod.js +269 -0
  645. package/dist/SubscriptionRef-d3c1aa07.cjs.dev.js +269 -0
  646. package/dist/Supervisor-21087253.cjs.prod.js +170 -0
  647. package/dist/Supervisor-40dd7ce5.cjs.dev.js +170 -0
  648. package/dist/Symbol-55d0b3d8.cjs.prod.js +40 -0
  649. package/dist/Symbol-5d74a5f2.cjs.dev.js +40 -0
  650. package/dist/SynchronizedRef-3181eb0a.cjs.dev.js +212 -0
  651. package/dist/SynchronizedRef-c6e0884b.cjs.prod.js +212 -0
  652. package/dist/TArray-6767b4bd.cjs.prod.js +455 -0
  653. package/dist/TArray-a0a4c6e6.cjs.dev.js +455 -0
  654. package/dist/TDeferred-a9839479.cjs.prod.js +129 -0
  655. package/dist/TDeferred-ac2c4025.cjs.dev.js +129 -0
  656. package/dist/THub-25b77864.cjs.prod.js +570 -0
  657. package/dist/THub-38053ae1.cjs.dev.js +570 -0
  658. package/dist/TMap-91505efa.cjs.prod.js +463 -0
  659. package/dist/TMap-de8ac080.cjs.dev.js +463 -0
  660. package/dist/TPriorityQueue-00b65d1a.cjs.prod.js +381 -0
  661. package/dist/TPriorityQueue-96ff0e15.cjs.dev.js +381 -0
  662. package/dist/TQueue-5e242ca2.cjs.prod.js +353 -0
  663. package/dist/TQueue-707762bf.cjs.dev.js +353 -0
  664. package/dist/TRandom-5eb21d23.cjs.dev.js +203 -0
  665. package/dist/TRandom-ec9c7bf7.cjs.prod.js +203 -0
  666. package/dist/TReentrantLock-1b77d76f.cjs.dev.js +456 -0
  667. package/dist/TReentrantLock-c5a8401e.cjs.prod.js +456 -0
  668. package/dist/TRef-b87580d7.cjs.prod.js +152 -0
  669. package/dist/TRef-cf2e8ad7.cjs.dev.js +152 -0
  670. package/dist/TSemaphore-29503416.cjs.prod.js +197 -0
  671. package/dist/TSemaphore-50edec08.cjs.dev.js +197 -0
  672. package/dist/TSet-3c2568e9.cjs.prod.js +444 -0
  673. package/dist/TSet-bb4775ca.cjs.dev.js +444 -0
  674. package/dist/Take-684c9901.cjs.dev.js +236 -0
  675. package/dist/Take-b4c91438.cjs.prod.js +236 -0
  676. package/dist/TestAnnotation-73be7a68.cjs.dev.js +135 -0
  677. package/dist/TestAnnotation-b9b93d03.cjs.prod.js +135 -0
  678. package/dist/TestAnnotationMap-80c87410.cjs.dev.js +125 -0
  679. package/dist/TestAnnotationMap-e946bab5.cjs.prod.js +125 -0
  680. package/dist/TestAnnotations-5db95828.cjs.prod.js +97 -0
  681. package/dist/TestAnnotations-733b39ef.cjs.dev.js +97 -0
  682. package/dist/TestClock-89a36b89.cjs.prod.js +581 -0
  683. package/dist/TestClock-e2773846.cjs.dev.js +581 -0
  684. package/dist/TestConfig-1a73e844.cjs.prod.js +37 -0
  685. package/dist/TestConfig-e5ffa946.cjs.dev.js +37 -0
  686. package/dist/TestContext-3328163e.cjs.dev.js +41 -0
  687. package/dist/TestContext-917bf305.cjs.prod.js +41 -0
  688. package/dist/TestLive-465ad3ef.cjs.dev.js +60 -0
  689. package/dist/TestLive-f3232ac4.cjs.prod.js +60 -0
  690. package/dist/TestServices-605f726e.cjs.prod.js +341 -0
  691. package/dist/TestServices-921e5c42.cjs.dev.js +341 -0
  692. package/dist/TestSized-6c1abc21.cjs.dev.js +64 -0
  693. package/dist/TestSized-a9a87d64.cjs.prod.js +64 -0
  694. package/dist/Tracer-d06d0b61.cjs.prod.js +81 -0
  695. package/dist/Tracer-da182c8c.cjs.dev.js +81 -0
  696. package/dist/Tuple-27ecf3a1.cjs.prod.js +199 -0
  697. package/dist/Tuple-75d2a389.cjs.dev.js +199 -0
  698. package/dist/Unify-99be0499.cjs.dev.js +48 -0
  699. package/dist/Unify-e86fd412.cjs.prod.js +48 -0
  700. package/dist/Utils-864e1d48.cjs.prod.js +370 -0
  701. package/dist/Utils-b0c14d1b.cjs.dev.js +370 -0
  702. package/dist/boundaries-03c7494a.cjs.dev.js +54 -0
  703. package/dist/boundaries-5d1a46e1.cjs.prod.js +54 -0
  704. package/dist/cache-6cdc31f7.cjs.dev.js +523 -0
  705. package/dist/cache-ab7bbfbd.cjs.prod.js +523 -0
  706. package/dist/childExecutorDecision-2b30946c.cjs.prod.js +98 -0
  707. package/dist/childExecutorDecision-ad3db696.cjs.dev.js +98 -0
  708. package/dist/circular-4cb0b79d.cjs.dev.js +341 -0
  709. package/dist/circular-5b3558d9.cjs.prod.js +341 -0
  710. package/dist/circular-78011d6b.cjs.dev.js +107 -0
  711. package/dist/circular-81b4c556.cjs.prod.js +107 -0
  712. package/dist/config-10f2a1d1.cjs.dev.js +474 -0
  713. package/dist/config-78feb1ac.cjs.prod.js +474 -0
  714. package/dist/configError-1686533e.cjs.dev.js +323 -0
  715. package/dist/configError-6a3652f8.cjs.prod.js +323 -0
  716. package/dist/configProvider-2b177eac.cjs.prod.js +447 -0
  717. package/dist/configProvider-e2eb112d.cjs.dev.js +447 -0
  718. package/dist/configSecret-5812fa69.cjs.dev.js +74 -0
  719. package/dist/configSecret-ecb6c5b3.cjs.prod.js +74 -0
  720. package/dist/core-4ced6e17.cjs.prod.js +1072 -0
  721. package/dist/core-ac668be0.cjs.dev.js +3502 -0
  722. package/dist/core-c2eb171a.cjs.prod.js +3502 -0
  723. package/dist/core-d9eea905.cjs.dev.js +1072 -0
  724. package/dist/core-effect-a9b8ee08.cjs.dev.js +1030 -0
  725. package/dist/core-effect-bf806dd9.cjs.prod.js +1030 -0
  726. package/dist/dataSource-abccc876.cjs.prod.js +74 -0
  727. package/dist/dataSource-d5f79f4e.cjs.dev.js +74 -0
  728. package/dist/declarations/src/Bigint.d.ts +22 -22
  729. package/dist/declarations/src/Boolean.d.ts +15 -15
  730. package/dist/declarations/src/Brand.d.ts +20 -20
  731. package/dist/declarations/src/Cache.d.ts +14 -14
  732. package/dist/declarations/src/Cause.d.ts +81 -81
  733. package/dist/declarations/src/Channel.d.ts +117 -117
  734. package/dist/declarations/src/ChannelChildExecutorDecision.d.ts +16 -16
  735. package/dist/declarations/src/ChannelMergeDecision.d.ts +11 -11
  736. package/dist/declarations/src/ChannelMergeState.d.ts +17 -17
  737. package/dist/declarations/src/ChannelMergeStrategy.d.ts +13 -13
  738. package/dist/declarations/src/ChannelSingleProducerAsyncInput.d.ts +5 -5
  739. package/dist/declarations/src/ChannelUpstreamPullRequest.d.ts +13 -13
  740. package/dist/declarations/src/ChannelUpstreamPullStrategy.d.ts +13 -13
  741. package/dist/declarations/src/Chunk.d.ts +84 -84
  742. package/dist/declarations/src/Clock.d.ts +13 -13
  743. package/dist/declarations/src/Config.d.ts +40 -40
  744. package/dist/declarations/src/ConfigError.d.ts +31 -31
  745. package/dist/declarations/src/ConfigProvider.d.ts +27 -27
  746. package/dist/declarations/src/ConfigProviderPathPatch.d.ts +11 -11
  747. package/dist/declarations/src/ConfigSecret.d.ts +12 -12
  748. package/dist/declarations/src/Console.d.ts +26 -26
  749. package/dist/declarations/src/Context.d.ts +24 -24
  750. package/dist/declarations/src/Data.d.ts +22 -22
  751. package/dist/declarations/src/DefaultServices.d.ts +4 -4
  752. package/dist/declarations/src/Deferred.d.ts +26 -26
  753. package/dist/declarations/src/Differ.d.ts +34 -34
  754. package/dist/declarations/src/Duration.d.ts +42 -37
  755. package/dist/declarations/src/Duration.d.ts.map +1 -1
  756. package/dist/declarations/src/Effect.d.ts +351 -351
  757. package/dist/declarations/src/Effectable.d.ts +16 -16
  758. package/dist/declarations/src/Either.d.ts +35 -35
  759. package/dist/declarations/src/Encoding.d.ts +15 -15
  760. package/dist/declarations/src/Equal.d.ts +6 -6
  761. package/dist/declarations/src/Equivalence.d.ts +20 -20
  762. package/dist/declarations/src/Error.d.ts +4 -4
  763. package/dist/declarations/src/ExecutionStrategy.d.ts +12 -12
  764. package/dist/declarations/src/Exit.d.ts +41 -41
  765. package/dist/declarations/src/Fiber.d.ts +57 -57
  766. package/dist/declarations/src/FiberId.d.ts +23 -23
  767. package/dist/declarations/src/FiberRef.d.ts +49 -49
  768. package/dist/declarations/src/FiberRefs.d.ts +14 -14
  769. package/dist/declarations/src/FiberRefsPatch.d.ts +11 -11
  770. package/dist/declarations/src/FiberStatus.d.ts +14 -14
  771. package/dist/declarations/src/Function.d.ts +24 -24
  772. package/dist/declarations/src/GlobalValue.d.ts +1 -1
  773. package/dist/declarations/src/GroupBy.d.ts +9 -9
  774. package/dist/declarations/src/HKT.d.ts +5 -5
  775. package/dist/declarations/src/Hash.d.ts +12 -12
  776. package/dist/declarations/src/HashMap.d.ts +37 -37
  777. package/dist/declarations/src/HashSet.d.ts +28 -28
  778. package/dist/declarations/src/Hub.d.ts +16 -16
  779. package/dist/declarations/src/Inspectable.d.ts +6 -6
  780. package/dist/declarations/src/KeyedPool.d.ts +12 -12
  781. package/dist/declarations/src/Layer.d.ts +70 -70
  782. package/dist/declarations/src/List.d.ts +50 -50
  783. package/dist/declarations/src/LogLevel.d.ts +27 -27
  784. package/dist/declarations/src/LogSpan.d.ts +3 -3
  785. package/dist/declarations/src/Logger.d.ts +33 -33
  786. package/dist/declarations/src/Metric.d.ts +55 -55
  787. package/dist/declarations/src/MetricBoundaries.d.ts +8 -8
  788. package/dist/declarations/src/MetricHook.d.ts +20 -20
  789. package/dist/declarations/src/MetricKey.d.ts +21 -21
  790. package/dist/declarations/src/MetricKeyType.d.ts +35 -35
  791. package/dist/declarations/src/MetricLabel.d.ts +6 -6
  792. package/dist/declarations/src/MetricPair.d.ts +8 -8
  793. package/dist/declarations/src/MetricPolling.d.ts +11 -11
  794. package/dist/declarations/src/MetricRegistry.d.ts +5 -5
  795. package/dist/declarations/src/MetricState.d.ts +33 -33
  796. package/dist/declarations/src/MutableHashMap.d.ts +12 -12
  797. package/dist/declarations/src/MutableHashSet.d.ts +9 -9
  798. package/dist/declarations/src/MutableList.d.ts +13 -13
  799. package/dist/declarations/src/MutableQueue.d.ts +16 -16
  800. package/dist/declarations/src/MutableRef.d.ts +18 -18
  801. package/dist/declarations/src/NonEmptyIterable.d.ts +4 -4
  802. package/dist/declarations/src/Number.d.ts +22 -22
  803. package/dist/declarations/src/Option.d.ts +69 -69
  804. package/dist/declarations/src/Order.d.ts +28 -28
  805. package/dist/declarations/src/Ordering.d.ts +7 -7
  806. package/dist/declarations/src/Pipeable.d.ts +3 -3
  807. package/dist/declarations/src/Pool.d.ts +11 -11
  808. package/dist/declarations/src/Predicate.d.ts +42 -42
  809. package/dist/declarations/src/Queue.d.ts +44 -44
  810. package/dist/declarations/src/Random.d.ts +11 -11
  811. package/dist/declarations/src/ReadonlyArray.d.ts +139 -139
  812. package/dist/declarations/src/ReadonlyRecord.d.ts +25 -25
  813. package/dist/declarations/src/RedBlackTree.d.ts +40 -40
  814. package/dist/declarations/src/Ref.d.ts +20 -20
  815. package/dist/declarations/src/Reloadable.d.ts +13 -13
  816. package/dist/declarations/src/Request.d.ts +29 -29
  817. package/dist/declarations/src/RequestBlock.d.ts +16 -16
  818. package/dist/declarations/src/RequestResolver.d.ts +23 -23
  819. package/dist/declarations/src/Resource.d.ts +10 -10
  820. package/dist/declarations/src/Runtime.d.ts +22 -22
  821. package/dist/declarations/src/RuntimeFlags.d.ts +38 -38
  822. package/dist/declarations/src/RuntimeFlagsPatch.d.ts +18 -18
  823. package/dist/declarations/src/STM.d.ts +140 -140
  824. package/dist/declarations/src/Schedule.d.ts +106 -106
  825. package/dist/declarations/src/ScheduleDecision.d.ts +8 -8
  826. package/dist/declarations/src/ScheduleInterval.d.ts +16 -16
  827. package/dist/declarations/src/ScheduleIntervals.d.ts +14 -14
  828. package/dist/declarations/src/Scheduler.d.ts +34 -34
  829. package/dist/declarations/src/Scope.d.ts +18 -18
  830. package/dist/declarations/src/ScopedCache.d.ts +9 -9
  831. package/dist/declarations/src/ScopedRef.d.ts +10 -10
  832. package/dist/declarations/src/Sink.d.ts +115 -115
  833. package/dist/declarations/src/SortedMap.d.ts +21 -21
  834. package/dist/declarations/src/SortedSet.d.ts +24 -24
  835. package/dist/declarations/src/Stream.d.ts +303 -303
  836. package/dist/declarations/src/StreamEmit.d.ts +3 -3
  837. package/dist/declarations/src/StreamHaltStrategy.d.ts +16 -16
  838. package/dist/declarations/src/String.d.ts +50 -50
  839. package/dist/declarations/src/Struct.d.ts +6 -6
  840. package/dist/declarations/src/SubscriptionRef.d.ts +27 -27
  841. package/dist/declarations/src/Supervisor.d.ts +23 -23
  842. package/dist/declarations/src/Symbol.d.ts +3 -3
  843. package/dist/declarations/src/SynchronizedRef.d.ts +28 -28
  844. package/dist/declarations/src/TArray.d.ts +46 -46
  845. package/dist/declarations/src/TDeferred.d.ts +12 -12
  846. package/dist/declarations/src/THub.d.ts +18 -18
  847. package/dist/declarations/src/TMap.d.ts +46 -46
  848. package/dist/declarations/src/TPriorityQueue.d.ts +23 -23
  849. package/dist/declarations/src/TQueue.d.ts +36 -36
  850. package/dist/declarations/src/TRandom.d.ts +12 -12
  851. package/dist/declarations/src/TReentrantLock.d.ts +24 -24
  852. package/dist/declarations/src/TRef.d.ts +19 -19
  853. package/dist/declarations/src/TSemaphore.d.ts +17 -17
  854. package/dist/declarations/src/TSet.d.ts +35 -35
  855. package/dist/declarations/src/Take.d.ts +25 -25
  856. package/dist/declarations/src/TestAnnotation.d.ts +12 -12
  857. package/dist/declarations/src/TestAnnotationMap.d.ts +11 -11
  858. package/dist/declarations/src/TestAnnotations.d.ts +7 -7
  859. package/dist/declarations/src/TestClock.d.ts +16 -16
  860. package/dist/declarations/src/TestConfig.d.ts +4 -4
  861. package/dist/declarations/src/TestContext.d.ts +3 -3
  862. package/dist/declarations/src/TestLive.d.ts +6 -6
  863. package/dist/declarations/src/TestServices.d.ts +35 -35
  864. package/dist/declarations/src/TestSized.d.ts +7 -7
  865. package/dist/declarations/src/Tracer.d.ts +13 -13
  866. package/dist/declarations/src/Tuple.d.ts +12 -12
  867. package/dist/declarations/src/Types.d.ts +10 -10
  868. package/dist/declarations/src/Unify.d.ts +9 -9
  869. package/dist/declarations/src/Utils.d.ts +29 -29
  870. package/dist/declarations/src/index.d.ts +169 -141
  871. package/dist/declarations/src/index.d.ts.map +1 -1
  872. package/dist/defaultServices-4112c0c9.cjs.prod.js +388 -0
  873. package/dist/defaultServices-60c753dc.cjs.dev.js +388 -0
  874. package/dist/effect.cjs.dev.js +199 -193
  875. package/dist/effect.cjs.mjs +7 -1
  876. package/dist/effect.cjs.prod.js +199 -193
  877. package/dist/effect.esm.js +283 -197
  878. package/dist/fiber-90ffaf8c.cjs.prod.js +411 -0
  879. package/dist/fiber-da1a207c.cjs.dev.js +411 -0
  880. package/dist/fiberRefs-64c35250.cjs.prod.js +181 -0
  881. package/dist/fiberRefs-a7e00f7e.cjs.dev.js +181 -0
  882. package/dist/fiberRuntime-1c369a47.cjs.prod.js +3012 -0
  883. package/dist/fiberRuntime-e9680313.cjs.dev.js +3012 -0
  884. package/dist/groupBy-0cc85afb.cjs.prod.js +216 -0
  885. package/dist/groupBy-b204a881.cjs.dev.js +216 -0
  886. package/dist/hook-6c7550dc.cjs.prod.js +371 -0
  887. package/dist/hook-822704ea.cjs.dev.js +371 -0
  888. package/dist/key-330b98b1.cjs.prod.js +79 -0
  889. package/dist/key-a474fc0d.cjs.dev.js +79 -0
  890. package/dist/keyType-1e916ae2.cjs.dev.js +236 -0
  891. package/dist/keyType-8460e792.cjs.prod.js +236 -0
  892. package/dist/label-246fb11d.cjs.dev.js +44 -0
  893. package/dist/label-3e143765.cjs.prod.js +44 -0
  894. package/dist/layer-ae8eefad.cjs.dev.js +658 -0
  895. package/dist/layer-ffacc2c5.cjs.prod.js +658 -0
  896. package/dist/mergeDecision-e457a76b.cjs.dev.js +86 -0
  897. package/dist/mergeDecision-e483c280.cjs.prod.js +86 -0
  898. package/dist/mergeState-83204f38.cjs.dev.js +109 -0
  899. package/dist/mergeState-dba66248.cjs.prod.js +109 -0
  900. package/dist/mergeStrategy-845a1279.cjs.prod.js +72 -0
  901. package/dist/mergeStrategy-b19dc19a.cjs.dev.js +72 -0
  902. package/dist/pair-08a8685e.cjs.dev.js +42 -0
  903. package/dist/pair-e5443c93.cjs.prod.js +42 -0
  904. package/dist/patch-4671ab7f.cjs.dev.js +132 -0
  905. package/dist/patch-f27e9f08.cjs.prod.js +132 -0
  906. package/dist/pathPatch-ded405f6.cjs.prod.js +90 -0
  907. package/dist/pathPatch-e46d4168.cjs.dev.js +90 -0
  908. package/dist/pool-3f16af61.cjs.dev.js +278 -0
  909. package/dist/pool-59a31f55.cjs.prod.js +278 -0
  910. package/dist/query-193d0a89.cjs.dev.js +104 -0
  911. package/dist/query-fe4a82d6.cjs.prod.js +104 -0
  912. package/dist/queue-04ae7ec7.cjs.dev.js +538 -0
  913. package/dist/queue-b81aee38.cjs.prod.js +538 -0
  914. package/dist/registry-29905dcc.cjs.prod.js +114 -0
  915. package/dist/registry-c883cf52.cjs.dev.js +114 -0
  916. package/dist/runtime-3ae98f19.cjs.dev.js +288 -0
  917. package/dist/runtime-8c3f1bd3.cjs.prod.js +288 -0
  918. package/dist/schedule-479d8fcc.cjs.dev.js +956 -0
  919. package/dist/schedule-7e30db2d.cjs.prod.js +956 -0
  920. package/dist/scopedRef-16d9d192.cjs.dev.js +55 -0
  921. package/dist/scopedRef-40b5bb82.cjs.prod.js +55 -0
  922. package/dist/singleProducerAsyncInput-552122e6.cjs.dev.js +193 -0
  923. package/dist/singleProducerAsyncInput-c5ff73b7.cjs.prod.js +193 -0
  924. package/dist/sink-16a1a901.cjs.dev.js +3094 -0
  925. package/dist/sink-c9ae7558.cjs.prod.js +3094 -0
  926. package/dist/state-0d29362f.cjs.prod.js +227 -0
  927. package/dist/state-8a8a647c.cjs.dev.js +227 -0
  928. package/dist/stm-44f045e5.cjs.dev.js +678 -0
  929. package/dist/stm-59af7e62.cjs.prod.js +678 -0
  930. package/dist/stream-84a13e23.cjs.dev.js +3645 -0
  931. package/dist/stream-8acbee57.cjs.prod.js +3645 -0
  932. package/dist/synchronizedRef-58a64ffe.cjs.dev.js +62 -0
  933. package/dist/synchronizedRef-6cfe9354.cjs.prod.js +62 -0
  934. package/dist/tArray-a690480d.cjs.prod.js +330 -0
  935. package/dist/tArray-c0a3d1e2.cjs.dev.js +330 -0
  936. package/dist/tMap-1c1b10c4.cjs.dev.js +535 -0
  937. package/dist/tMap-8dfc92f5.cjs.prod.js +535 -0
  938. package/dist/tQueue-48a29f8b.cjs.prod.js +367 -0
  939. package/dist/tQueue-aaec000f.cjs.dev.js +367 -0
  940. package/dist/tRef-1df89632.cjs.dev.js +133 -0
  941. package/dist/tRef-cc473a9f.cjs.prod.js +133 -0
  942. package/dist/take-906e6ef4.cjs.prod.js +152 -0
  943. package/dist/take-e1c6b82a.cjs.dev.js +152 -0
  944. package/dist/upstreamPullRequest-705e868d.cjs.prod.js +79 -0
  945. package/dist/upstreamPullRequest-c08f06a4.cjs.dev.js +79 -0
  946. package/dist/upstreamPullStrategy-0ccf2960.cjs.dev.js +81 -0
  947. package/dist/upstreamPullStrategy-34452db1.cjs.prod.js +81 -0
  948. package/internal/Context.esm.js +208 -0
  949. package/internal/Data.esm.js +49 -0
  950. package/internal/Differ/ChunkPatch.esm.js +131 -0
  951. package/internal/Differ/ContextPatch.esm.js +158 -0
  952. package/internal/Differ/HashMapPatch.esm.js +133 -0
  953. package/internal/Differ/HashSetPatch.esm.js +107 -0
  954. package/internal/Differ/OrPatch.esm.js +196 -0
  955. package/internal/Differ.esm.js +130 -0
  956. package/internal/Effectable.esm.js +89 -0
  957. package/internal/Either.esm.js +95 -0
  958. package/internal/Encoding/Base64.esm.js +74 -0
  959. package/internal/Encoding/Base64Url.esm.js +24 -0
  960. package/internal/Encoding/Common.esm.js +21 -0
  961. package/internal/Encoding/Hex.esm.js +55 -0
  962. package/internal/HashMap/array.esm.js +51 -0
  963. package/internal/HashMap/bitwise.esm.js +34 -0
  964. package/internal/HashMap/config.esm.js +16 -0
  965. package/internal/HashMap/keySet.esm.js +8 -0
  966. package/internal/HashMap/node.esm.js +253 -0
  967. package/internal/HashMap.esm.js +366 -0
  968. package/internal/HashSet.esm.js +211 -0
  969. package/internal/Option.esm.js +75 -0
  970. package/internal/ReadonlyArray.esm.js +8 -0
  971. package/internal/RedBlackTree/iterator.esm.js +204 -0
  972. package/internal/RedBlackTree/node.esm.js +43 -0
  973. package/internal/RedBlackTree.esm.js +1042 -0
  974. package/internal/Stack.esm.js +9 -0
  975. package/internal/blockedRequests.esm.js +365 -0
  976. package/internal/cache.esm.js +514 -0
  977. package/internal/cause.esm.js +1067 -0
  978. package/internal/channel/channelExecutor.esm.js +692 -0
  979. package/internal/channel/channelState.esm.js +78 -0
  980. package/internal/channel/childExecutorDecision.esm.js +71 -0
  981. package/internal/channel/continuation.esm.js +58 -0
  982. package/internal/channel/mergeDecision.esm.js +69 -0
  983. package/internal/channel/mergeState.esm.js +82 -0
  984. package/internal/channel/mergeStrategy.esm.js +55 -0
  985. package/internal/channel/singleProducerAsyncInput.esm.js +191 -0
  986. package/internal/channel/subexecutor.esm.js +153 -0
  987. package/internal/channel/upstreamPullRequest.esm.js +62 -0
  988. package/internal/channel/upstreamPullStrategy.esm.js +62 -0
  989. package/internal/channel.esm.js +648 -0
  990. package/internal/clock.esm.js +82 -0
  991. package/internal/completedRequestMap.esm.js +7 -0
  992. package/internal/concurrency.esm.js +47 -0
  993. package/internal/config.esm.js +374 -0
  994. package/internal/configError.esm.js +276 -0
  995. package/internal/configProvider/pathPatch.esm.js +83 -0
  996. package/internal/configProvider.esm.js +365 -0
  997. package/internal/configSecret.esm.js +66 -0
  998. package/internal/console.esm.js +72 -0
  999. package/internal/core-effect.esm.js +875 -0
  1000. package/internal/core-stream.esm.js +293 -0
  1001. package/internal/core.esm.js +1745 -0
  1002. package/internal/dataSource.esm.js +61 -0
  1003. package/internal/defaultServices/console.esm.js +96 -0
  1004. package/internal/defaultServices.esm.js +84 -0
  1005. package/internal/deferred.esm.js +37 -0
  1006. package/internal/effect/circular.esm.js +314 -0
  1007. package/internal/executionStrategy.esm.js +61 -0
  1008. package/internal/fiber.esm.js +257 -0
  1009. package/internal/fiberId.esm.js +243 -0
  1010. package/internal/fiberMessage.esm.js +54 -0
  1011. package/internal/fiberRefs/patch.esm.js +127 -0
  1012. package/internal/fiberRefs.esm.js +169 -0
  1013. package/internal/fiberRuntime.esm.js +2003 -0
  1014. package/internal/fiberScope.esm.js +58 -0
  1015. package/internal/fiberStatus.esm.js +89 -0
  1016. package/internal/groupBy.esm.js +208 -0
  1017. package/internal/hub.esm.js +1102 -0
  1018. package/internal/keyedPool.esm.js +161 -0
  1019. package/internal/layer/circular.esm.js +84 -0
  1020. package/internal/layer.esm.js +552 -0
  1021. package/internal/logSpan.esm.js +15 -0
  1022. package/internal/logger-circular.esm.js +21 -0
  1023. package/internal/logger.esm.js +213 -0
  1024. package/internal/metric/boundaries.esm.js +48 -0
  1025. package/internal/metric/hook.esm.js +362 -0
  1026. package/internal/metric/key.esm.js +68 -0
  1027. package/internal/metric/keyType.esm.js +218 -0
  1028. package/internal/metric/label.esm.js +40 -0
  1029. package/internal/metric/pair.esm.js +38 -0
  1030. package/internal/metric/polling.esm.js +74 -0
  1031. package/internal/metric/registry.esm.js +111 -0
  1032. package/internal/metric/state.esm.js +209 -0
  1033. package/internal/metric.esm.js +204 -0
  1034. package/internal/opCodes/cause.esm.js +31 -0
  1035. package/internal/opCodes/channel.esm.js +71 -0
  1036. package/internal/opCodes/channelChildExecutorDecision.esm.js +16 -0
  1037. package/internal/opCodes/channelMergeDecision.esm.js +11 -0
  1038. package/internal/opCodes/channelMergeState.esm.js +16 -0
  1039. package/internal/opCodes/channelMergeStrategy.esm.js +11 -0
  1040. package/internal/opCodes/channelState.esm.js +21 -0
  1041. package/internal/opCodes/channelUpstreamPullRequest.esm.js +11 -0
  1042. package/internal/opCodes/channelUpstreamPullStrategy.esm.js +11 -0
  1043. package/internal/opCodes/config.esm.js +56 -0
  1044. package/internal/opCodes/configError.esm.js +31 -0
  1045. package/internal/opCodes/continuation.esm.js +11 -0
  1046. package/internal/opCodes/deferred.esm.js +11 -0
  1047. package/internal/opCodes/effect.esm.js +71 -0
  1048. package/internal/opCodes/layer.esm.js +46 -0
  1049. package/internal/opCodes/streamHaltStrategy.esm.js +21 -0
  1050. package/internal/pool.esm.js +271 -0
  1051. package/internal/query.esm.js +100 -0
  1052. package/internal/queue.esm.js +505 -0
  1053. package/internal/random.esm.js +58 -0
  1054. package/internal/ref.esm.js +121 -0
  1055. package/internal/reloadable.esm.js +62 -0
  1056. package/internal/request.esm.js +81 -0
  1057. package/internal/resource.esm.js +35 -0
  1058. package/internal/ringBuffer.esm.js +56 -0
  1059. package/internal/runtime.esm.js +268 -0
  1060. package/internal/runtimeFlags.esm.js +137 -0
  1061. package/internal/runtimeFlagsPatch.esm.js +57 -0
  1062. package/internal/schedule/decision.esm.js +45 -0
  1063. package/internal/schedule/interval.esm.js +85 -0
  1064. package/internal/schedule/intervals.esm.js +135 -0
  1065. package/internal/schedule.esm.js +844 -0
  1066. package/internal/scopedCache.esm.js +406 -0
  1067. package/internal/scopedRef.esm.js +49 -0
  1068. package/internal/singleShotGen.esm.js +30 -0
  1069. package/internal/sink.esm.js +918 -0
  1070. package/internal/stm/core.esm.js +553 -0
  1071. package/internal/stm/opCodes/stm.esm.js +56 -0
  1072. package/internal/stm/opCodes/stmState.esm.js +16 -0
  1073. package/internal/stm/opCodes/strategy.esm.js +16 -0
  1074. package/internal/stm/opCodes/tExit.esm.js +26 -0
  1075. package/internal/stm/opCodes/tryCommit.esm.js +11 -0
  1076. package/internal/stm/stm/entry.esm.js +47 -0
  1077. package/internal/stm/stm/journal.esm.js +96 -0
  1078. package/internal/stm/stm/stmState.esm.js +104 -0
  1079. package/internal/stm/stm/tExit.esm.js +113 -0
  1080. package/internal/stm/stm/tryCommit.esm.js +25 -0
  1081. package/internal/stm/stm/txnId.esm.js +15 -0
  1082. package/internal/stm/stm/versioned.esm.js +8 -0
  1083. package/internal/stm/stm.esm.js +584 -0
  1084. package/internal/stm/tArray.esm.js +287 -0
  1085. package/internal/stm/tDeferred.esm.js +49 -0
  1086. package/internal/stm/tHub.esm.js +381 -0
  1087. package/internal/stm/tMap.esm.js +492 -0
  1088. package/internal/stm/tPriorityQueue.esm.js +156 -0
  1089. package/internal/stm/tQueue.esm.js +317 -0
  1090. package/internal/stm/tRandom.esm.js +89 -0
  1091. package/internal/stm/tReentrantLock.esm.js +216 -0
  1092. package/internal/stm/tRef.esm.js +117 -0
  1093. package/internal/stm/tSemaphore.esm.js +73 -0
  1094. package/internal/stm/tSet.esm.js +113 -0
  1095. package/internal/stream/debounceState.esm.js +39 -0
  1096. package/internal/stream/emit.esm.js +51 -0
  1097. package/internal/stream/haltStrategy.esm.js +74 -0
  1098. package/internal/stream/handoff.esm.js +79 -0
  1099. package/internal/stream/handoffSignal.esm.js +40 -0
  1100. package/internal/stream/pull.esm.js +10 -0
  1101. package/internal/stream/sinkEndReason.esm.js +27 -0
  1102. package/internal/stream/zipAllState.esm.js +65 -0
  1103. package/internal/stream/zipChunksState.esm.js +41 -0
  1104. package/internal/stream.esm.js +2984 -0
  1105. package/internal/string-utils.esm.js +66 -0
  1106. package/internal/subscriptionRef.esm.js +65 -0
  1107. package/internal/supervisor/patch.esm.js +156 -0
  1108. package/internal/supervisor.esm.js +204 -0
  1109. package/internal/synchronizedRef.esm.js +53 -0
  1110. package/internal/take.esm.js +130 -0
  1111. package/internal/testing/suspendedWarningData.esm.js +66 -0
  1112. package/internal/testing/warningData.esm.js +75 -0
  1113. package/internal/timeout.esm.js +22 -0
  1114. package/internal/tracer.esm.js +61 -0
  1115. package/package.json +700 -554
  1116. package/dist/Bigint-1c684209.esm.js +0 -370
  1117. package/dist/Bigint-504df838.cjs.dev.js +0 -392
  1118. package/dist/Bigint-d1a7e44e.cjs.prod.js +0 -392
  1119. package/dist/Boolean-7513c999.cjs.prod.js +0 -264
  1120. package/dist/Boolean-9427fc24.cjs.dev.js +0 -264
  1121. package/dist/Boolean-f564d31a.esm.js +0 -248
  1122. package/dist/Brand-c3918667.cjs.dev.js +0 -224
  1123. package/dist/Brand-fa4e9f22.esm.js +0 -215
  1124. package/dist/Brand-ff4af468.cjs.prod.js +0 -224
  1125. package/dist/Cache-447337f2.esm.js +0 -120
  1126. package/dist/Cache-4b4ea2b3.cjs.prod.js +0 -127
  1127. package/dist/Cache-62ebdae3.cjs.dev.js +0 -127
  1128. package/dist/Cause-8be0b9a6.esm.js +0 -730
  1129. package/dist/Cause-b769f517.cjs.prod.js +0 -791
  1130. package/dist/Cause-d77e20dc.cjs.dev.js +0 -791
  1131. package/dist/Channel-2039c280.cjs.dev.js +0 -1217
  1132. package/dist/Channel-806a0a5a.esm.js +0 -1109
  1133. package/dist/Channel-dcff73a4.cjs.prod.js +0 -1217
  1134. package/dist/ChannelChildExecutorDecision-2d3c20b1.esm.js +0 -125
  1135. package/dist/ChannelChildExecutorDecision-adce4b58.cjs.dev.js +0 -136
  1136. package/dist/ChannelChildExecutorDecision-fc90c987.cjs.prod.js +0 -136
  1137. package/dist/ChannelMergeDecision-39e12893.cjs.prod.js +0 -78
  1138. package/dist/ChannelMergeDecision-4488ba22.esm.js +0 -70
  1139. package/dist/ChannelMergeDecision-f05da806.cjs.dev.js +0 -78
  1140. package/dist/ChannelMergeState-65723a71.cjs.dev.js +0 -125
  1141. package/dist/ChannelMergeState-937282d2.esm.js +0 -114
  1142. package/dist/ChannelMergeState-ab626a77.cjs.prod.js +0 -125
  1143. package/dist/ChannelMergeStrategy-c2f956a9.esm.js +0 -95
  1144. package/dist/ChannelMergeStrategy-d5bdc89d.cjs.prod.js +0 -104
  1145. package/dist/ChannelMergeStrategy-d956e3fa.cjs.dev.js +0 -104
  1146. package/dist/ChannelSingleProducerAsyncInput-00708a29.esm.js +0 -52
  1147. package/dist/ChannelSingleProducerAsyncInput-90f3b171.cjs.prod.js +0 -55
  1148. package/dist/ChannelSingleProducerAsyncInput-ecc79242.cjs.dev.js +0 -55
  1149. package/dist/ChannelUpstreamPullRequest-011526e6.esm.js +0 -95
  1150. package/dist/ChannelUpstreamPullRequest-6a610523.cjs.dev.js +0 -104
  1151. package/dist/ChannelUpstreamPullRequest-d7413c53.cjs.prod.js +0 -104
  1152. package/dist/ChannelUpstreamPullStrategy-0af49b72.esm.js +0 -94
  1153. package/dist/ChannelUpstreamPullStrategy-6e0a338e.cjs.prod.js +0 -103
  1154. package/dist/ChannelUpstreamPullStrategy-90ec240c.cjs.dev.js +0 -103
  1155. package/dist/Chunk-937f4423.cjs.dev.js +0 -1248
  1156. package/dist/Chunk-98371336.esm.js +0 -1167
  1157. package/dist/Chunk-f001938d.cjs.prod.js +0 -1248
  1158. package/dist/Clock-27c1110d.cjs.prod.js +0 -97
  1159. package/dist/Clock-589e9dc5.cjs.dev.js +0 -97
  1160. package/dist/Clock-ab907687.esm.js +0 -88
  1161. package/dist/Config-50e56bbd.cjs.prod.js +0 -393
  1162. package/dist/Config-7e7f7335.cjs.dev.js +0 -393
  1163. package/dist/Config-a3a06665.esm.js +0 -358
  1164. package/dist/ConfigError-5801d561.esm.js +0 -206
  1165. package/dist/ConfigError-684b6267.cjs.dev.js +0 -225
  1166. package/dist/ConfigError-f5303a19.cjs.prod.js +0 -225
  1167. package/dist/ConfigProvider-0aeb6513.esm.js +0 -220
  1168. package/dist/ConfigProvider-b47b08f3.cjs.dev.js +0 -240
  1169. package/dist/ConfigProvider-e278c5f7.cjs.prod.js +0 -240
  1170. package/dist/ConfigProviderPathPatch-78826e8c.cjs.dev.js +0 -86
  1171. package/dist/ConfigProviderPathPatch-97b52760.esm.js +0 -79
  1172. package/dist/ConfigProviderPathPatch-bb5f5228.cjs.prod.js +0 -86
  1173. package/dist/ConfigSecret-2db4c372.cjs.prod.js +0 -83
  1174. package/dist/ConfigSecret-646df696.esm.js +0 -74
  1175. package/dist/ConfigSecret-a10a12aa.cjs.dev.js +0 -83
  1176. package/dist/Console-b92ceaf0.esm.js +0 -247
  1177. package/dist/Console-d4590f3a.cjs.prod.js +0 -271
  1178. package/dist/Console-f063615c.cjs.dev.js +0 -271
  1179. package/dist/Context-119d62eb.cjs.prod.js +0 -327
  1180. package/dist/Context-231e9c1b.cjs.prod.js +0 -222
  1181. package/dist/Context-48179faa.esm.js +0 -312
  1182. package/dist/Context-5099940c.cjs.dev.js +0 -222
  1183. package/dist/Context-fcee7bba.esm.js +0 -208
  1184. package/dist/Context-fdaa5c44.cjs.dev.js +0 -327
  1185. package/dist/Data-3389525f.cjs.dev.js +0 -237
  1186. package/dist/Data-815a1868.cjs.prod.js +0 -237
  1187. package/dist/Data-bad1ffeb.esm.js +0 -224
  1188. package/dist/DefaultServices-848d6929.cjs.dev.js +0 -34
  1189. package/dist/DefaultServices-8c298120.esm.js +0 -30
  1190. package/dist/DefaultServices-9ea98d30.cjs.prod.js +0 -34
  1191. package/dist/Deferred-143efa7b.cjs.dev.js +0 -253
  1192. package/dist/Deferred-554d3588.esm.js +0 -230
  1193. package/dist/Deferred-77579e00.cjs.prod.js +0 -253
  1194. package/dist/Differ-0069a8c0.cjs.dev.js +0 -992
  1195. package/dist/Differ-3be1df41.esm.js +0 -975
  1196. package/dist/Differ-cbfa45cb.cjs.prod.js +0 -992
  1197. package/dist/Duration-205d0b80.cjs.prod.js +0 -500
  1198. package/dist/Duration-5e9f2327.esm.js +0 -467
  1199. package/dist/Duration-8b174e0b.cjs.dev.js +0 -500
  1200. package/dist/Effect-6713972b.cjs.prod.js +0 -3740
  1201. package/dist/Effect-d362f43a.cjs.dev.js +0 -3740
  1202. package/dist/Effect-d5910dae.esm.js +0 -3417
  1203. package/dist/Effectable-2c8e8441.cjs.prod.js +0 -99
  1204. package/dist/Effectable-954172fc.cjs.prod.js +0 -181
  1205. package/dist/Effectable-a76b6aa1.esm.js +0 -158
  1206. package/dist/Effectable-bc017f96.cjs.dev.js +0 -99
  1207. package/dist/Effectable-e85a1847.cjs.dev.js +0 -181
  1208. package/dist/Effectable-ec9e4204.esm.js +0 -89
  1209. package/dist/Either-09270bbc.esm.js +0 -473
  1210. package/dist/Either-34ce9059.cjs.dev.js +0 -178
  1211. package/dist/Either-41cb7522.cjs.prod.js +0 -178
  1212. package/dist/Either-ae722a9e.cjs.dev.js +0 -502
  1213. package/dist/Either-be9c40b9.esm.js +0 -163
  1214. package/dist/Either-d995ebb4.cjs.prod.js +0 -502
  1215. package/dist/Encoding-0d990bbf.esm.js +0 -295
  1216. package/dist/Encoding-39f7d9a8.cjs.dev.js +0 -309
  1217. package/dist/Encoding-82d009b9.cjs.prod.js +0 -309
  1218. package/dist/Equal-7d4ae7e7.esm.js +0 -65
  1219. package/dist/Equal-8654b1af.cjs.dev.js +0 -71
  1220. package/dist/Equal-ed1e8c3c.cjs.prod.js +0 -71
  1221. package/dist/Equivalence-87295c78.cjs.prod.js +0 -238
  1222. package/dist/Equivalence-a4b5f56d.cjs.dev.js +0 -238
  1223. package/dist/Equivalence-e5c9cba4.esm.js +0 -218
  1224. package/dist/Error-7e84d828.esm.js +0 -53
  1225. package/dist/Error-be89adc9.cjs.prod.js +0 -57
  1226. package/dist/Error-e1ceeea7.cjs.dev.js +0 -57
  1227. package/dist/ExecutionStrategy-080f0b2b.cjs.prod.js +0 -180
  1228. package/dist/ExecutionStrategy-c6f7c490.esm.js +0 -168
  1229. package/dist/ExecutionStrategy-cd9204b4.cjs.dev.js +0 -180
  1230. package/dist/Exit-7a385294.cjs.dev.js +0 -408
  1231. package/dist/Exit-e31718e3.esm.js +0 -371
  1232. package/dist/Exit-eb04f98e.cjs.prod.js +0 -408
  1233. package/dist/Fiber-1a996e3f.cjs.dev.js +0 -521
  1234. package/dist/Fiber-38517971.esm.js +0 -473
  1235. package/dist/Fiber-a7306b77.cjs.prod.js +0 -521
  1236. package/dist/FiberId-3b23bc04.cjs.dev.js +0 -443
  1237. package/dist/FiberId-556ab9ef.esm.js +0 -422
  1238. package/dist/FiberId-95c92b7e.cjs.prod.js +0 -443
  1239. package/dist/FiberRef-6f63843b.cjs.prod.js +0 -385
  1240. package/dist/FiberRef-912b6248.cjs.dev.js +0 -385
  1241. package/dist/FiberRef-b81d5a7e.esm.js +0 -338
  1242. package/dist/FiberRefs-1a6a1b5f.cjs.prod.js +0 -135
  1243. package/dist/FiberRefs-44fda74a.cjs.dev.js +0 -135
  1244. package/dist/FiberRefs-a6ab4b8d.esm.js +0 -122
  1245. package/dist/FiberRefsPatch-549967e3.cjs.prod.js +0 -90
  1246. package/dist/FiberRefsPatch-56f10acc.cjs.dev.js +0 -90
  1247. package/dist/FiberRefsPatch-f84453c3.esm.js +0 -84
  1248. package/dist/FiberStatus-90291b8c.esm.js +0 -187
  1249. package/dist/FiberStatus-db497d70.cjs.dev.js +0 -197
  1250. package/dist/FiberStatus-ff18b445.cjs.prod.js +0 -197
  1251. package/dist/Function-52fb7d21.esm.js +0 -516
  1252. package/dist/Function-8336aeeb.cjs.prod.js +0 -538
  1253. package/dist/Function-fd10bde3.cjs.dev.js +0 -538
  1254. package/dist/GlobalValue-00457222.cjs.dev.js +0 -28
  1255. package/dist/GlobalValue-c5f1e8e5.esm.js +0 -25
  1256. package/dist/GlobalValue-f65cc41d.cjs.prod.js +0 -28
  1257. package/dist/GroupBy-cabfa667.cjs.dev.js +0 -79
  1258. package/dist/GroupBy-d0ad2148.cjs.prod.js +0 -79
  1259. package/dist/GroupBy-eef333fa.esm.js +0 -72
  1260. package/dist/HKT-1990744d.esm.js +0 -5
  1261. package/dist/Hash-039222d1.esm.js +0 -179
  1262. package/dist/Hash-2171bcec.cjs.prod.js +0 -192
  1263. package/dist/Hash-9d5502e5.cjs.dev.js +0 -192
  1264. package/dist/HashMap-2604a8b0.cjs.prod.js +0 -361
  1265. package/dist/HashMap-e644e23b.esm.js +0 -327
  1266. package/dist/HashMap-ee35ace5.cjs.dev.js +0 -361
  1267. package/dist/HashSet-206ea53b.cjs.dev.js +0 -965
  1268. package/dist/HashSet-286fb998.cjs.prod.js +0 -965
  1269. package/dist/HashSet-43b520e9.cjs.dev.js +0 -283
  1270. package/dist/HashSet-99f1529e.cjs.prod.js +0 -283
  1271. package/dist/HashSet-d051e0ea.esm.js +0 -907
  1272. package/dist/HashSet-dff2542b.esm.js +0 -256
  1273. package/dist/Hub-4223bb07.cjs.prod.js +0 -1280
  1274. package/dist/Hub-9f3d5c5d.esm.js +0 -1264
  1275. package/dist/Hub-dd9d70e7.cjs.dev.js +0 -1280
  1276. package/dist/Inspectable-46a7668e.cjs.prod.js +0 -50
  1277. package/dist/Inspectable-654412c2.cjs.dev.js +0 -50
  1278. package/dist/Inspectable-bda84223.esm.js +0 -45
  1279. package/dist/KeyedPool-0b5851a2.cjs.prod.js +0 -282
  1280. package/dist/KeyedPool-50b8f75b.esm.js +0 -273
  1281. package/dist/KeyedPool-8b979aac.cjs.dev.js +0 -282
  1282. package/dist/Layer-11122c64.cjs.dev.js +0 -687
  1283. package/dist/Layer-79fa5f4a.cjs.prod.js +0 -687
  1284. package/dist/Layer-f7be72db.esm.js +0 -623
  1285. package/dist/List-48f2b78f.cjs.prod.js +0 -912
  1286. package/dist/List-95e1e081.cjs.dev.js +0 -912
  1287. package/dist/List-c066a506.esm.js +0 -865
  1288. package/dist/LogLevel-2e6b00c7.esm.js +0 -222
  1289. package/dist/LogLevel-a609dd63.cjs.prod.js +0 -240
  1290. package/dist/LogLevel-c14e29fb.cjs.dev.js +0 -240
  1291. package/dist/LogSpan-c216a78b.cjs.prod.js +0 -46
  1292. package/dist/LogSpan-cd4b8f34.cjs.dev.js +0 -46
  1293. package/dist/LogSpan-e5cf11a5.esm.js +0 -42
  1294. package/dist/Logger-029fccab.cjs.prod.js +0 -275
  1295. package/dist/Logger-28d5e7ff.cjs.dev.js +0 -275
  1296. package/dist/Logger-52ffeafa.esm.js +0 -246
  1297. package/dist/Metric-2b4867b2.cjs.dev.js +0 -488
  1298. package/dist/Metric-cd4dfaba.cjs.prod.js +0 -488
  1299. package/dist/Metric-f2c8888b.esm.js +0 -442
  1300. package/dist/MetricBoundaries-8ef331f0.cjs.dev.js +0 -68
  1301. package/dist/MetricBoundaries-9707829f.esm.js +0 -61
  1302. package/dist/MetricBoundaries-fc377a5e.cjs.prod.js +0 -68
  1303. package/dist/MetricHook-74ebef65.esm.js +0 -80
  1304. package/dist/MetricHook-9d1ff9f5.cjs.prod.js +0 -90
  1305. package/dist/MetricHook-ebd34eea.cjs.dev.js +0 -90
  1306. package/dist/MetricKey-7536999c.cjs.dev.js +0 -130
  1307. package/dist/MetricKey-d96ef128.cjs.prod.js +0 -130
  1308. package/dist/MetricKey-fb261d1b.esm.js +0 -118
  1309. package/dist/MetricKeyType-637f6694.cjs.prod.js +0 -187
  1310. package/dist/MetricKeyType-6a10f955.esm.js +0 -168
  1311. package/dist/MetricKeyType-ed70a508.cjs.dev.js +0 -187
  1312. package/dist/MetricLabel-30df73d1.esm.js +0 -48
  1313. package/dist/MetricLabel-b6a3c628.cjs.prod.js +0 -53
  1314. package/dist/MetricLabel-e6d1cb96.cjs.dev.js +0 -53
  1315. package/dist/MetricPair-5f5f6f1b.esm.js +0 -45
  1316. package/dist/MetricPair-a1551790.cjs.prod.js +0 -50
  1317. package/dist/MetricPair-f1f0edbd.cjs.dev.js +0 -50
  1318. package/dist/MetricPolling-258af71e.esm.js +0 -167
  1319. package/dist/MetricPolling-b2accbbd.cjs.dev.js +0 -177
  1320. package/dist/MetricPolling-c6caba9d.cjs.prod.js +0 -177
  1321. package/dist/MetricRegistry-2ae45fdf.cjs.dev.js +0 -38
  1322. package/dist/MetricRegistry-44d3af51.esm.js +0 -34
  1323. package/dist/MetricRegistry-d61eb47d.cjs.prod.js +0 -38
  1324. package/dist/MetricState-a3499d98.cjs.prod.js +0 -191
  1325. package/dist/MetricState-cd7a1775.cjs.dev.js +0 -191
  1326. package/dist/MetricState-d4fcb7d0.esm.js +0 -172
  1327. package/dist/MutableHashMap-b3ab7261.esm.js +0 -142
  1328. package/dist/MutableHashMap-d6cb38d9.cjs.prod.js +0 -154
  1329. package/dist/MutableHashMap-f08d01f5.cjs.dev.js +0 -154
  1330. package/dist/MutableHashSet-9e2ea672.cjs.dev.js +0 -110
  1331. package/dist/MutableHashSet-ec9f7a0b.esm.js +0 -101
  1332. package/dist/MutableHashSet-fa860611.cjs.prod.js +0 -110
  1333. package/dist/MutableList-4ef847b7.cjs.prod.js +0 -296
  1334. package/dist/MutableList-85cf4e37.cjs.dev.js +0 -296
  1335. package/dist/MutableList-8c671944.esm.js +0 -281
  1336. package/dist/MutableQueue-3dfd5fea.cjs.dev.js +0 -215
  1337. package/dist/MutableQueue-416dfcd9.cjs.prod.js +0 -215
  1338. package/dist/MutableQueue-54a4b584.esm.js +0 -202
  1339. package/dist/MutableRef-82c6fe46.cjs.prod.js +0 -194
  1340. package/dist/MutableRef-cb4d2fc0.esm.js +0 -176
  1341. package/dist/MutableRef-ef31c15d.cjs.dev.js +0 -194
  1342. package/dist/NonEmptyIterable-26ed16e4.cjs.prod.js +0 -36
  1343. package/dist/NonEmptyIterable-7ef320e0.esm.js +0 -33
  1344. package/dist/NonEmptyIterable-b064c1af.cjs.dev.js +0 -36
  1345. package/dist/Number-d021c8f9.cjs.prod.js +0 -417
  1346. package/dist/Number-dc454336.esm.js +0 -394
  1347. package/dist/Number-dddf713e.cjs.dev.js +0 -417
  1348. package/dist/Option-1d073850.esm.js +0 -1135
  1349. package/dist/Option-837ae0da.cjs.dev.js +0 -1198
  1350. package/dist/Option-b07f2b1d.cjs.prod.js +0 -1198
  1351. package/dist/Order-2f11aa24.esm.js +0 -293
  1352. package/dist/Order-2f785421.cjs.prod.js +0 -321
  1353. package/dist/Order-cbf22e18.cjs.dev.js +0 -321
  1354. package/dist/Ordering-9892085c.esm.js +0 -97
  1355. package/dist/Ordering-e20427cc.cjs.dev.js +0 -104
  1356. package/dist/Ordering-f3e378ef.cjs.prod.js +0 -104
  1357. package/dist/Pipeable-856ddd7c.cjs.prod.js +0 -52
  1358. package/dist/Pipeable-ef202667.cjs.dev.js +0 -52
  1359. package/dist/Pipeable-fe51dc02.esm.js +0 -49
  1360. package/dist/Pool-68590a64.cjs.dev.js +0 -122
  1361. package/dist/Pool-718f79ff.cjs.prod.js +0 -122
  1362. package/dist/Pool-cdfcfabe.esm.js +0 -114
  1363. package/dist/Predicate-52271838.esm.js +0 -677
  1364. package/dist/Predicate-54d8c8de.cjs.dev.js +0 -718
  1365. package/dist/Predicate-a3fd4088.cjs.prod.js +0 -718
  1366. package/dist/Queue-48d0b9d4.cjs.dev.js +0 -394
  1367. package/dist/Queue-9f8579c0.cjs.prod.js +0 -394
  1368. package/dist/Queue-bbebbeda.esm.js +0 -362
  1369. package/dist/Random-0bdc1bcb.cjs.prod.js +0 -104
  1370. package/dist/Random-14987953.esm.js +0 -94
  1371. package/dist/Random-f495bcbc.cjs.dev.js +0 -104
  1372. package/dist/ReadonlyArray-199ff80e.esm.js +0 -1584
  1373. package/dist/ReadonlyArray-3b1a15d8.cjs.dev.js +0 -10
  1374. package/dist/ReadonlyArray-6fbc78a1.cjs.prod.js +0 -1721
  1375. package/dist/ReadonlyArray-84c71385.esm.js +0 -8
  1376. package/dist/ReadonlyArray-885e80a2.cjs.dev.js +0 -1721
  1377. package/dist/ReadonlyArray-8adb9a46.cjs.prod.js +0 -10
  1378. package/dist/ReadonlyRecord-4969b34f.cjs.prod.js +0 -568
  1379. package/dist/ReadonlyRecord-c1f5d048.esm.js +0 -544
  1380. package/dist/ReadonlyRecord-c6dc7deb.cjs.dev.js +0 -568
  1381. package/dist/RedBlackTree-22839235.esm.js +0 -1632
  1382. package/dist/RedBlackTree-59192950.cjs.prod.js +0 -1669
  1383. package/dist/RedBlackTree-98a93ec6.cjs.dev.js +0 -1669
  1384. package/dist/Ref-88c1d56d.cjs.prod.js +0 -282
  1385. package/dist/Ref-8d85fc7a.cjs.dev.js +0 -282
  1386. package/dist/Ref-9a9de951.esm.js +0 -248
  1387. package/dist/Reloadable-10cfae17.esm.js +0 -159
  1388. package/dist/Reloadable-3ca716d9.cjs.prod.js +0 -169
  1389. package/dist/Reloadable-65bf6783.cjs.dev.js +0 -169
  1390. package/dist/Request-5b794c27.cjs.dev.js +0 -190
  1391. package/dist/Request-6d646956.cjs.prod.js +0 -190
  1392. package/dist/Request-9f0b571a.esm.js +0 -175
  1393. package/dist/RequestBlock-15e7d048.cjs.prod.js +0 -124
  1394. package/dist/RequestBlock-6105623d.esm.js +0 -114
  1395. package/dist/RequestBlock-ec5299d4.cjs.dev.js +0 -124
  1396. package/dist/RequestResolver-10227a7b.esm.js +0 -213
  1397. package/dist/RequestResolver-a3fe9b72.cjs.prod.js +0 -233
  1398. package/dist/RequestResolver-bc7e6050.cjs.dev.js +0 -233
  1399. package/dist/Resource-966460b5.cjs.dev.js +0 -118
  1400. package/dist/Resource-9f1084b9.cjs.prod.js +0 -118
  1401. package/dist/Resource-afd128d6.esm.js +0 -111
  1402. package/dist/Runtime-15bf8fcd.cjs.prod.js +0 -191
  1403. package/dist/Runtime-1a63e954.cjs.dev.js +0 -191
  1404. package/dist/Runtime-4f6fc384.esm.js +0 -175
  1405. package/dist/RuntimeFlags-4d3b4ba7.esm.js +0 -344
  1406. package/dist/RuntimeFlags-a43dcce7.cjs.dev.js +0 -381
  1407. package/dist/RuntimeFlags-ef10d73a.cjs.prod.js +0 -381
  1408. package/dist/RuntimeFlagsPatch-0c131e8e.cjs.dev.js +0 -411
  1409. package/dist/RuntimeFlagsPatch-a1da6096.esm.js +0 -365
  1410. package/dist/RuntimeFlagsPatch-bfdf133d.cjs.prod.js +0 -411
  1411. package/dist/STM-2bdad2bd.cjs.dev.js +0 -1447
  1412. package/dist/STM-55e91604.esm.js +0 -1321
  1413. package/dist/STM-e6749b84.cjs.prod.js +0 -1447
  1414. package/dist/Schedule-35a9436e.cjs.prod.js +0 -1159
  1415. package/dist/Schedule-d9b0f037.cjs.dev.js +0 -1159
  1416. package/dist/Schedule-da001b13.esm.js +0 -1059
  1417. package/dist/ScheduleDecision-2ab823c2.cjs.dev.js +0 -106
  1418. package/dist/ScheduleDecision-369cf2a1.cjs.prod.js +0 -106
  1419. package/dist/ScheduleDecision-e794f66d.esm.js +0 -99
  1420. package/dist/ScheduleInterval-2db9be83.cjs.dev.js +0 -244
  1421. package/dist/ScheduleInterval-3e9b8eca.cjs.prod.js +0 -244
  1422. package/dist/ScheduleInterval-94e80ec4.esm.js +0 -229
  1423. package/dist/ScheduleIntervals-ab412802.cjs.dev.js +0 -265
  1424. package/dist/ScheduleIntervals-e6ed15fa.cjs.prod.js +0 -265
  1425. package/dist/ScheduleIntervals-ef5cd7c5.esm.js +0 -252
  1426. package/dist/Scheduler-44f252da.cjs.prod.js +0 -358
  1427. package/dist/Scheduler-6122a3ee.cjs.dev.js +0 -358
  1428. package/dist/Scheduler-d2f7e5c7.esm.js +0 -343
  1429. package/dist/Scope-0ffde3bb.esm.js +0 -131
  1430. package/dist/Scope-326194e2.cjs.prod.js +0 -143
  1431. package/dist/Scope-3cf29072.cjs.dev.js +0 -143
  1432. package/dist/ScopedCache-01a07a6d.cjs.prod.js +0 -467
  1433. package/dist/ScopedCache-77c605e8.cjs.dev.js +0 -467
  1434. package/dist/ScopedCache-9c558fd1.esm.js +0 -462
  1435. package/dist/ScopedRef-2f0e2b33.cjs.dev.js +0 -87
  1436. package/dist/ScopedRef-5c29a8a2.cjs.prod.js +0 -87
  1437. package/dist/ScopedRef-dd8a823e.esm.js +0 -80
  1438. package/dist/Sink-923b4ad8.esm.js +0 -1107
  1439. package/dist/Sink-c4ca577a.cjs.prod.js +0 -1215
  1440. package/dist/Sink-fa1f105b.cjs.dev.js +0 -1215
  1441. package/dist/SortedMap-44f47d83.esm.js +0 -190
  1442. package/dist/SortedMap-abf39a75.cjs.prod.js +0 -210
  1443. package/dist/SortedMap-b04da739.cjs.dev.js +0 -210
  1444. package/dist/SortedSet-3339ea7f.esm.js +0 -288
  1445. package/dist/SortedSet-4efa4f05.cjs.dev.js +0 -311
  1446. package/dist/SortedSet-b588ac70.cjs.prod.js +0 -311
  1447. package/dist/Stack-765c2298.esm.js +0 -9
  1448. package/dist/Stream-1d51d0be.esm.js +0 -3175
  1449. package/dist/Stream-55dd689b.cjs.prod.js +0 -3469
  1450. package/dist/Stream-b1eaedfc.cjs.dev.js +0 -3469
  1451. package/dist/StreamEmit-bd696ab0.esm.js +0 -5
  1452. package/dist/StreamHaltStrategy-292ed375.cjs.dev.js +0 -214
  1453. package/dist/StreamHaltStrategy-506d4abb.cjs.prod.js +0 -214
  1454. package/dist/StreamHaltStrategy-9864a080.esm.js +0 -201
  1455. package/dist/String-9702a941.cjs.dev.js +0 -694
  1456. package/dist/String-ba45d520.esm.js +0 -648
  1457. package/dist/String-fa7c1c88.cjs.prod.js +0 -694
  1458. package/dist/Struct-3d8b2a81.cjs.prod.js +0 -141
  1459. package/dist/Struct-62f329c0.cjs.dev.js +0 -141
  1460. package/dist/Struct-8bc142d1.esm.js +0 -134
  1461. package/dist/SubscriptionRef-1eb76544.cjs.prod.js +0 -269
  1462. package/dist/SubscriptionRef-33b302b6.esm.js +0 -245
  1463. package/dist/SubscriptionRef-faf570c5.cjs.dev.js +0 -269
  1464. package/dist/Supervisor-34de9985.cjs.dev.js +0 -170
  1465. package/dist/Supervisor-3706300f.cjs.prod.js +0 -170
  1466. package/dist/Supervisor-5b9943cf.esm.js +0 -160
  1467. package/dist/Symbol-9ad0bde8.esm.js +0 -36
  1468. package/dist/Symbol-e3ea5627.cjs.dev.js +0 -40
  1469. package/dist/Symbol-e5af99ce.cjs.prod.js +0 -40
  1470. package/dist/SynchronizedRef-01f585dc.cjs.prod.js +0 -212
  1471. package/dist/SynchronizedRef-c389137f.esm.js +0 -187
  1472. package/dist/SynchronizedRef-cda883b7.cjs.dev.js +0 -212
  1473. package/dist/TArray-1200bf6a.esm.js +0 -412
  1474. package/dist/TArray-97bc3f87.cjs.prod.js +0 -455
  1475. package/dist/TArray-9bd73c38.cjs.dev.js +0 -455
  1476. package/dist/TDeferred-875fd41c.esm.js +0 -120
  1477. package/dist/TDeferred-bf21b756.cjs.prod.js +0 -129
  1478. package/dist/TDeferred-f97247d3.cjs.dev.js +0 -129
  1479. package/dist/THub-917198c0.esm.js +0 -553
  1480. package/dist/THub-c4a3e52c.cjs.dev.js +0 -570
  1481. package/dist/THub-d9d3b223.cjs.prod.js +0 -570
  1482. package/dist/TMap-459696e5.cjs.dev.js +0 -463
  1483. package/dist/TMap-786b8508.esm.js +0 -419
  1484. package/dist/TMap-a6aab3c3.cjs.prod.js +0 -463
  1485. package/dist/TPriorityQueue-31c32afb.esm.js +0 -360
  1486. package/dist/TPriorityQueue-918056c3.cjs.prod.js +0 -381
  1487. package/dist/TPriorityQueue-e8429066.cjs.dev.js +0 -381
  1488. package/dist/TQueue-adee58b8.esm.js +0 -324
  1489. package/dist/TQueue-b9593214.cjs.prod.js +0 -353
  1490. package/dist/TQueue-d1c8153e.cjs.dev.js +0 -353
  1491. package/dist/TRandom-65721a5b.cjs.prod.js +0 -203
  1492. package/dist/TRandom-677ba64f.esm.js +0 -192
  1493. package/dist/TRandom-79057bd9.cjs.dev.js +0 -203
  1494. package/dist/TReentrantLock-0dbd6074.cjs.prod.js +0 -456
  1495. package/dist/TReentrantLock-164c0898.cjs.dev.js +0 -456
  1496. package/dist/TReentrantLock-65156c11.esm.js +0 -435
  1497. package/dist/TRef-4a45f5af.cjs.dev.js +0 -152
  1498. package/dist/TRef-edd5ff88.esm.js +0 -135
  1499. package/dist/TRef-ff8497e4.cjs.prod.js +0 -152
  1500. package/dist/TSemaphore-1f5dc074.cjs.dev.js +0 -197
  1501. package/dist/TSemaphore-bccebfec.esm.js +0 -183
  1502. package/dist/TSemaphore-d1096593.cjs.prod.js +0 -197
  1503. package/dist/TSet-0f61d448.cjs.prod.js +0 -444
  1504. package/dist/TSet-48903882.cjs.dev.js +0 -444
  1505. package/dist/TSet-bd3a1de2.esm.js +0 -412
  1506. package/dist/Take-1e6b1ba3.esm.js +0 -214
  1507. package/dist/Take-7797160f.cjs.dev.js +0 -236
  1508. package/dist/Take-d245cc08.cjs.prod.js +0 -236
  1509. package/dist/TestAnnotation-5b23b64a.cjs.prod.js +0 -135
  1510. package/dist/TestAnnotation-c2b6bb64.esm.js +0 -124
  1511. package/dist/TestAnnotation-ca7ea5d9.cjs.dev.js +0 -135
  1512. package/dist/TestAnnotationMap-5ef91d33.cjs.prod.js +0 -125
  1513. package/dist/TestAnnotationMap-83b0e761.cjs.dev.js +0 -125
  1514. package/dist/TestAnnotationMap-d180214b.esm.js +0 -114
  1515. package/dist/TestAnnotations-758011e7.cjs.prod.js +0 -97
  1516. package/dist/TestAnnotations-89733ab7.cjs.dev.js +0 -97
  1517. package/dist/TestAnnotations-cf445345.esm.js +0 -91
  1518. package/dist/TestClock-0a012f75.esm.js +0 -565
  1519. package/dist/TestClock-0abac759.cjs.prod.js +0 -581
  1520. package/dist/TestClock-3bdb0c0b.cjs.dev.js +0 -581
  1521. package/dist/TestConfig-3f48c7f2.cjs.prod.js +0 -37
  1522. package/dist/TestConfig-e52495c3.esm.js +0 -33
  1523. package/dist/TestConfig-ff283076.cjs.dev.js +0 -37
  1524. package/dist/TestContext-64f40523.esm.js +0 -36
  1525. package/dist/TestContext-7a6420d3.cjs.prod.js +0 -41
  1526. package/dist/TestContext-b44d97ae.cjs.dev.js +0 -41
  1527. package/dist/TestLive-64c62bfe.cjs.dev.js +0 -60
  1528. package/dist/TestLive-906c173d.cjs.prod.js +0 -60
  1529. package/dist/TestLive-bfab4add.esm.js +0 -55
  1530. package/dist/TestServices-844e305d.esm.js +0 -306
  1531. package/dist/TestServices-944b625c.cjs.prod.js +0 -341
  1532. package/dist/TestServices-f8c51bbd.cjs.dev.js +0 -341
  1533. package/dist/TestSized-0fa739ff.cjs.prod.js +0 -64
  1534. package/dist/TestSized-3a0fa658.esm.js +0 -58
  1535. package/dist/TestSized-955a228e.cjs.dev.js +0 -64
  1536. package/dist/Tracer-1610aba4.cjs.dev.js +0 -81
  1537. package/dist/Tracer-700da80a.cjs.prod.js +0 -81
  1538. package/dist/Tracer-b07052e2.esm.js +0 -75
  1539. package/dist/Tuple-1fa12d6e.esm.js +0 -187
  1540. package/dist/Tuple-73682170.cjs.prod.js +0 -199
  1541. package/dist/Tuple-9822259f.cjs.dev.js +0 -199
  1542. package/dist/Types-be3804ad.esm.js +0 -5
  1543. package/dist/Unify-150ebcee.cjs.dev.js +0 -48
  1544. package/dist/Unify-77f78d08.cjs.prod.js +0 -48
  1545. package/dist/Unify-9d27a1f3.esm.js +0 -45
  1546. package/dist/Utils-32587b0c.cjs.dev.js +0 -370
  1547. package/dist/Utils-6484334f.cjs.prod.js +0 -370
  1548. package/dist/Utils-657e8bfa.esm.js +0 -362
  1549. package/dist/boundaries-6bacf30a.cjs.prod.js +0 -54
  1550. package/dist/boundaries-8475a9b4.esm.js +0 -48
  1551. package/dist/boundaries-c6f4c3da.cjs.dev.js +0 -54
  1552. package/dist/cache-2fa366f0.esm.js +0 -514
  1553. package/dist/cache-7b578624.cjs.prod.js +0 -523
  1554. package/dist/cache-8db60799.cjs.dev.js +0 -523
  1555. package/dist/childExecutorDecision-49f0f19c.esm.js +0 -85
  1556. package/dist/childExecutorDecision-744cd5fb.cjs.prod.js +0 -98
  1557. package/dist/childExecutorDecision-c1c3b8b6.cjs.dev.js +0 -98
  1558. package/dist/circular-1dfea59d.cjs.prod.js +0 -107
  1559. package/dist/circular-3ebc9b78.esm.js +0 -82
  1560. package/dist/circular-604e98e5.cjs.prod.js +0 -341
  1561. package/dist/circular-8088cc19.cjs.dev.js +0 -341
  1562. package/dist/circular-cff58c30.esm.js +0 -311
  1563. package/dist/circular-e5da795a.cjs.dev.js +0 -107
  1564. package/dist/config-05de256b.cjs.dev.js +0 -474
  1565. package/dist/config-3003c43a.cjs.prod.js +0 -474
  1566. package/dist/config-64a67e36.esm.js +0 -428
  1567. package/dist/configError-84c0742e.esm.js +0 -305
  1568. package/dist/configError-a7c4fcc2.cjs.dev.js +0 -323
  1569. package/dist/configError-b3dd6ec2.cjs.prod.js +0 -323
  1570. package/dist/configProvider-35a1a3c7.cjs.prod.js +0 -447
  1571. package/dist/configProvider-56d1b842.cjs.dev.js +0 -447
  1572. package/dist/configProvider-cd15d971.esm.js +0 -428
  1573. package/dist/configSecret-18ba6f6e.cjs.dev.js +0 -74
  1574. package/dist/configSecret-3dd7ab72.cjs.prod.js +0 -74
  1575. package/dist/configSecret-793e52b4.esm.js +0 -66
  1576. package/dist/core-01c0ed9d.cjs.prod.js +0 -1072
  1577. package/dist/core-218f7617.cjs.prod.js +0 -3502
  1578. package/dist/core-5346c1e5.cjs.dev.js +0 -1072
  1579. package/dist/core-9276b625.esm.js +0 -1032
  1580. package/dist/core-9f5f0dc2.esm.js +0 -3225
  1581. package/dist/core-bedc63fe.cjs.dev.js +0 -3502
  1582. package/dist/core-effect-a839563d.cjs.dev.js +0 -1030
  1583. package/dist/core-effect-e762d50b.esm.js +0 -902
  1584. package/dist/core-effect-fea8dde9.cjs.prod.js +0 -1030
  1585. package/dist/dataSource-43c62f8e.esm.js +0 -60
  1586. package/dist/dataSource-8ab8a0ec.cjs.dev.js +0 -74
  1587. package/dist/dataSource-cc1edaa1.cjs.prod.js +0 -74
  1588. package/dist/defaultServices-1d4f144a.cjs.prod.js +0 -388
  1589. package/dist/defaultServices-1f1298e8.cjs.dev.js +0 -388
  1590. package/dist/defaultServices-86214de4.esm.js +0 -359
  1591. package/dist/fiber-1511340a.esm.js +0 -363
  1592. package/dist/fiber-18f7cf87.cjs.dev.js +0 -411
  1593. package/dist/fiber-957d5291.cjs.prod.js +0 -411
  1594. package/dist/fiberRefs-76ecbcfd.cjs.dev.js +0 -181
  1595. package/dist/fiberRefs-b32de18b.esm.js +0 -169
  1596. package/dist/fiberRefs-f0429b31.cjs.prod.js +0 -181
  1597. package/dist/fiberRuntime-233db874.cjs.dev.js +0 -3012
  1598. package/dist/fiberRuntime-5e42f85c.cjs.prod.js +0 -3012
  1599. package/dist/fiberRuntime-98f09d31.esm.js +0 -2857
  1600. package/dist/groupBy-36e6ca3f.cjs.prod.js +0 -216
  1601. package/dist/groupBy-3a32c4b6.cjs.dev.js +0 -216
  1602. package/dist/groupBy-8d753c19.esm.js +0 -206
  1603. package/dist/hook-8fc9006f.esm.js +0 -362
  1604. package/dist/hook-e169b712.cjs.prod.js +0 -371
  1605. package/dist/hook-fe9f948d.cjs.dev.js +0 -371
  1606. package/dist/key-215ea6fd.esm.js +0 -68
  1607. package/dist/key-4824d1ad.cjs.prod.js +0 -79
  1608. package/dist/key-d8dc829b.cjs.dev.js +0 -79
  1609. package/dist/keyType-c980adcc.cjs.dev.js +0 -236
  1610. package/dist/keyType-d85714ed.cjs.prod.js +0 -236
  1611. package/dist/keyType-fefd9ef8.esm.js +0 -218
  1612. package/dist/label-14b7d517.cjs.dev.js +0 -44
  1613. package/dist/label-5cb21441.esm.js +0 -40
  1614. package/dist/label-e78b2f8f.cjs.prod.js +0 -44
  1615. package/dist/layer-3da5a933.cjs.prod.js +0 -658
  1616. package/dist/layer-e1d1db03.cjs.dev.js +0 -658
  1617. package/dist/layer-f8ec8454.esm.js +0 -596
  1618. package/dist/mergeDecision-32146c34.esm.js +0 -78
  1619. package/dist/mergeDecision-75feaab3.cjs.dev.js +0 -86
  1620. package/dist/mergeDecision-a1822db2.cjs.prod.js +0 -86
  1621. package/dist/mergeState-21728f0b.esm.js +0 -96
  1622. package/dist/mergeState-2c24c562.cjs.prod.js +0 -109
  1623. package/dist/mergeState-e9aa09b9.cjs.dev.js +0 -109
  1624. package/dist/mergeStrategy-84dd9011.esm.js +0 -64
  1625. package/dist/mergeStrategy-8fe47c7e.cjs.dev.js +0 -72
  1626. package/dist/mergeStrategy-909bebb0.cjs.prod.js +0 -72
  1627. package/dist/pair-67530b23.cjs.dev.js +0 -42
  1628. package/dist/pair-cb46f77c.esm.js +0 -38
  1629. package/dist/pair-fb591d12.cjs.prod.js +0 -42
  1630. package/dist/patch-99e8591b.esm.js +0 -127
  1631. package/dist/patch-cdcb5e42.cjs.dev.js +0 -132
  1632. package/dist/patch-f440dab6.cjs.prod.js +0 -132
  1633. package/dist/pathPatch-5ac830c8.esm.js +0 -83
  1634. package/dist/pathPatch-75afe967.cjs.dev.js +0 -90
  1635. package/dist/pathPatch-775a0838.cjs.prod.js +0 -90
  1636. package/dist/pool-0da00d67.cjs.prod.js +0 -278
  1637. package/dist/pool-54820a71.esm.js +0 -271
  1638. package/dist/pool-bfa5c974.cjs.dev.js +0 -278
  1639. package/dist/query-1685a476.esm.js +0 -97
  1640. package/dist/query-3ab8cd4e.cjs.prod.js +0 -104
  1641. package/dist/query-68bb7c45.cjs.dev.js +0 -104
  1642. package/dist/queue-499cacee.cjs.prod.js +0 -538
  1643. package/dist/queue-b79c472d.esm.js +0 -505
  1644. package/dist/queue-bf262207.cjs.dev.js +0 -538
  1645. package/dist/registry-38f0ed9d.esm.js +0 -111
  1646. package/dist/registry-6f465b2f.cjs.prod.js +0 -114
  1647. package/dist/registry-dfe7ed01.cjs.dev.js +0 -114
  1648. package/dist/runtime-5b7472d5.cjs.dev.js +0 -288
  1649. package/dist/runtime-68e90981.cjs.prod.js +0 -288
  1650. package/dist/runtime-f91ca239.esm.js +0 -266
  1651. package/dist/schedule-0d31f4cc.esm.js +0 -843
  1652. package/dist/schedule-616cf1b8.cjs.prod.js +0 -956
  1653. package/dist/schedule-d3f9b258.cjs.dev.js +0 -956
  1654. package/dist/scopedRef-5e59cf54.cjs.prod.js +0 -55
  1655. package/dist/scopedRef-730d8d35.cjs.dev.js +0 -55
  1656. package/dist/scopedRef-e54a3d93.esm.js +0 -49
  1657. package/dist/singleProducerAsyncInput-6508b7f1.cjs.dev.js +0 -193
  1658. package/dist/singleProducerAsyncInput-c67ef1c6.esm.js +0 -191
  1659. package/dist/singleProducerAsyncInput-d3225b4e.cjs.prod.js +0 -193
  1660. package/dist/sink-05d54662.cjs.prod.js +0 -3094
  1661. package/dist/sink-3105a90f.cjs.dev.js +0 -3094
  1662. package/dist/sink-3f26fc31.esm.js +0 -2877
  1663. package/dist/state-38610229.esm.js +0 -209
  1664. package/dist/state-6d974829.cjs.dev.js +0 -227
  1665. package/dist/state-abef4d59.cjs.prod.js +0 -227
  1666. package/dist/stm-43c3b262.cjs.dev.js +0 -678
  1667. package/dist/stm-d01a804c.esm.js +0 -582
  1668. package/dist/stm-e1200304.cjs.prod.js +0 -678
  1669. package/dist/stream-3ebec4f3.cjs.prod.js +0 -3649
  1670. package/dist/stream-9270c6b1.esm.js +0 -3355
  1671. package/dist/stream-b819c5b3.cjs.dev.js +0 -3649
  1672. package/dist/synchronizedRef-5bbb64b2.cjs.prod.js +0 -62
  1673. package/dist/synchronizedRef-e9682c8e.cjs.dev.js +0 -62
  1674. package/dist/synchronizedRef-f7077a5f.esm.js +0 -53
  1675. package/dist/tArray-0d2e8fae.cjs.dev.js +0 -330
  1676. package/dist/tArray-442d22a4.cjs.prod.js +0 -330
  1677. package/dist/tArray-fa2759e8.esm.js +0 -287
  1678. package/dist/tMap-2a001015.cjs.prod.js +0 -535
  1679. package/dist/tMap-2a98e9a7.esm.js +0 -492
  1680. package/dist/tMap-2fd8c9e6.cjs.dev.js +0 -535
  1681. package/dist/tQueue-13f8f402.esm.js +0 -331
  1682. package/dist/tQueue-84a0d0eb.cjs.dev.js +0 -367
  1683. package/dist/tQueue-e2e96d1f.cjs.prod.js +0 -367
  1684. package/dist/tRef-4772a528.cjs.prod.js +0 -133
  1685. package/dist/tRef-b5d0cc28.esm.js +0 -115
  1686. package/dist/tRef-bbbdd134.cjs.dev.js +0 -133
  1687. package/dist/take-68ed448f.cjs.dev.js +0 -152
  1688. package/dist/take-7c168e8e.esm.js +0 -130
  1689. package/dist/take-d293f721.cjs.prod.js +0 -152
  1690. package/dist/timeout-4180303d.esm.js +0 -22
  1691. package/dist/upstreamPullRequest-be86e51c.esm.js +0 -71
  1692. package/dist/upstreamPullRequest-d2eaf7f5.cjs.prod.js +0 -79
  1693. package/dist/upstreamPullRequest-f986731f.cjs.dev.js +0 -79
  1694. package/dist/upstreamPullStrategy-08e7185f.cjs.prod.js +0 -81
  1695. package/dist/upstreamPullStrategy-29c0b698.cjs.dev.js +0 -81
  1696. package/dist/upstreamPullStrategy-d1505fa4.esm.js +0 -71
@@ -0,0 +1,2003 @@
1
+ import { not } from '../Boolean/dist/effect-Boolean.esm.js';
2
+ import { fromIterable as fromIterable$1, isNonEmpty, headNonEmpty, tailNonEmpty, unsafeFromArray, prepend } from '../Chunk/dist/effect-Chunk.esm.js';
3
+ import { get as get$1, getOption, add, Tag, merge, make as make$2, unsafeGet } from '../Context/dist/effect-Context.esm.js';
4
+ import { await as _await$1 } from '../Deferred/dist/effect-Deferred.esm.js';
5
+ import { parallel, sequential, parallelN } from '../ExecutionStrategy/dist/effect-ExecutionStrategy.esm.js';
6
+ import { threadName, combine, none as none$2, unsafeMake as unsafeMake$1 } from '../FiberId/dist/effect-FiberId.esm.js';
7
+ import { getOrDefault } from '../FiberRefs/dist/effect-FiberRefs.esm.js';
8
+ import { diff as diff$1, patch as patch$1 } from '../FiberRefsPatch/dist/effect-FiberRefsPatch.esm.js';
9
+ import { isDone, done, suspended, running } from '../FiberStatus/dist/effect-FiberStatus.esm.js';
10
+ import { dual, identity, pipe } from '../Function/dist/effect-Function.esm.js';
11
+ import { make, fromIterable as fromIterable$2, union, size } from '../HashSet/dist/effect-HashSet.esm.js';
12
+ import { par, flatten as flatten$2, sequentialCollectionToChunk } from './blockedRequests.esm.js';
13
+ import { empty, pretty, failureOrCause, parallel as parallel$1, sequential as sequential$1, interrupt, isEmpty, isInterruptedOnly, die, NoSuchElementException, stripFailures, isInterruptedException, IllegalArgumentException } from './cause.esm.js';
14
+ import { clockTag } from './clock.esm.js';
15
+ import { currentRequestMap } from './completedRequestMap.esm.js';
16
+ import { matchSimple, match as match$1 } from './concurrency.esm.js';
17
+ import { configProviderTag } from './configProvider.esm.js';
18
+ import { fiberRefUnsafeMake, currentTracerSpan, fiberRefUnsafeMakeHashSet, uninterruptible, tap, isEffect, withFiberRuntime, fiberRefLocally, currentForkScopeOverride, map as map$1, exit, exitIsSuccess, onError, failCause, partitionMap, either, flatMap as flatMap$1, unit, succeed, fail, dieSync, uninterruptibleMask, interruptible, forEachSequential, zipRight, asUnit, onInterrupt, zipLeft, interruptFiber, deferredMake, exitMatchEffect, flatten, deferredFailCause, deferredSucceed, contextWithEffect, scopeFork, currentMetricLabels, acquireUseRelease, scopeClose, exitZipWith, flip, fiberIdWith, updateRuntimeFlags, runtimeFlags, ScopeTypeId, releaseMapMake, CloseableScopeTypeId, releaseMapAdd, scopeAddFinalizerExit, as, mapInputContext, onExit, fiberRefUnsafeMakePatch, fiberRefGet, fiberRefSet, fiberRefGetWith, sync, fiberRefUpdate, fiberRefDelete, fiberRefUnsafeMakeContext, fiberRefUnsafeMakeRuntimeFlags, forEachSequentialDiscard, exitSucceed, matchCauseEffect, suspend, currentInterruptedCause, deferredUnsafeMake, deferredAwait, async, currentSchedulingPriority, whileLoop, currentUnhandledErrorLogLevel, currentLogLevel, currentLogSpan, currentLogAnnotations, exitFailCause, exitUnit, currentContext, exitFail, blocked, catchAllCause, runRequestBlock, RevertFlags, yieldNow as yieldNow$1, isEffectError, withRuntimeFlags, matchEffect, if_, zipWith, currentRequestBatching, transplant, step, deferredUnsafeDone, deferredFail, exitCollectAll, exitIsFailure, exitInterrupt, exitAsUnit, interruptAsFiber, flatMapStep } from './core.esm.js';
19
+ import { makeSpan, currentTimeNanosTracing, mapErrorCause } from './core-effect.esm.js';
20
+ import { currentServices } from './defaultServices.esm.js';
21
+ import { consoleTag } from './defaultServices/console.esm.js';
22
+ import { sequential as sequential$2, isSequential, isParallel } from './executionStrategy.esm.js';
23
+ import { _await, FiberTypeId, fiberVariance, join, RuntimeFiberTypeId, currentFiberURI, inheritAll, interruptAsFork } from './fiber.esm.js';
24
+ import { resume, stateful, interruptSignal, OP_STATEFUL, OP_RESUME, OP_INTERRUPT_SIGNAL, OP_YIELD_NOW, yieldNow } from './fiberMessage.esm.js';
25
+ import { get, joinAs, delete_, updatedAs, forkAs, getOrDefault as getOrDefault$1 } from './fiberRefs.esm.js';
26
+ import { globalScope, unsafeMake } from './fiberScope.esm.js';
27
+ import { makeLogger, stringLogger, logfmtLogger } from './logger.esm.js';
28
+ import { counter, tagged, histogram } from './metric.esm.js';
29
+ import { exponential } from './metric/boundaries.esm.js';
30
+ import { make as make$3 } from './metric/label.esm.js';
31
+ import { OP_FAILURE, OP_SUCCESS, OP_YIELD, OP_ASYNC, OP_ON_FAILURE, OP_ON_SUCCESS, OP_WHILE, OP_TAG, OP_SYNC, OP_REVERT_FLAGS, OP_ON_SUCCESS_AND_FAILURE, OP_WITH_RUNTIME, OP_UPDATE_RUNTIME_FLAGS, OP_COMMIT } from './opCodes/effect.esm.js';
32
+ import { complete } from './request.esm.js';
33
+ import { patch, diff, runtimeMetrics, WindDown, Interruption, interruptible as interruptible$1, enable, cooperativeYielding, OpSupervision, none as none$3 } from './runtimeFlags.esm.js';
34
+ import { none as none$1 } from './supervisor.esm.js';
35
+ import { differ, empty as empty$2 } from './supervisor/patch.esm.js';
36
+ import { tracerTag } from './tracer.esm.js';
37
+ import { head, prepend as prepend$1 } from '../List/dist/effect-List.esm.js';
38
+ import { fromLiteral, greaterThan } from '../LogLevel/dist/effect-LogLevel.esm.js';
39
+ import { make as make$4, compareAndSet } from '../MutableRef/dist/effect-MutableRef.esm.js';
40
+ import { flatMap, map, some, none, match, fromNullable, isSome, getOrElse } from '../Option/dist/effect-Option.esm.js';
41
+ import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
42
+ import { isIterable } from '../Predicate/dist/effect-Predicate.esm.js';
43
+ import { fromIterable, filterMap, reduce, flatten as flatten$1, reduceRight, compact } from '../ReadonlyArray/dist/effect-ReadonlyArray.esm.js';
44
+ import { make as make$1, modify, update, get as get$2 } from '../Ref/dist/effect-Ref.esm.js';
45
+ import { empty as empty$1, exclude } from '../RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.esm.js';
46
+ import { currentScheduler } from '../Scheduler/dist/effect-Scheduler.esm.js';
47
+
48
+ /** @internal */
49
+ const fiberStarted = /*#__PURE__*/counter("effect_fiber_started");
50
+ /** @internal */
51
+ const fiberActive = /*#__PURE__*/counter("effect_fiber_active");
52
+ /** @internal */
53
+ const fiberSuccesses = /*#__PURE__*/counter("effect_fiber_successes");
54
+ /** @internal */
55
+ const fiberFailures = /*#__PURE__*/counter("effect_fiber_failures");
56
+ /** @internal */
57
+ const fiberLifetimes = /*#__PURE__*/tagged( /*#__PURE__*/histogram("effect_fiber_lifetimes", /*#__PURE__*/exponential({
58
+ start: 1.0,
59
+ factor: 1.3,
60
+ count: 100
61
+ })), "time_unit", "milliseconds");
62
+
63
+ /** @internal */
64
+
65
+ /** @internal */
66
+ const EvaluationSignalContinue = "Continue";
67
+
68
+ /** @internal */
69
+
70
+ /** @internal */
71
+ const EvaluationSignalDone = "Done";
72
+
73
+ /** @internal */
74
+
75
+ /** @internal */
76
+ const EvaluationSignalYieldNow = "Yield";
77
+
78
+ /** @internal */
79
+
80
+ /** @internal */
81
+ const runtimeFiberVariance = {
82
+ _E: _ => _,
83
+ _A: _ => _
84
+ };
85
+ const absurd = _ => {
86
+ throw new Error(`BUG: FiberRuntime - ${JSON.stringify(_)} - please report an issue at https://github.com/Effect-TS/io/issues`);
87
+ };
88
+ const contOpSuccess = {
89
+ [OP_ON_SUCCESS]: (_, cont, value) => {
90
+ return cont.i1(value);
91
+ },
92
+ ["OnStep"]: (_, cont, value) => {
93
+ return cont.i1(exitSucceed(value));
94
+ },
95
+ [OP_ON_SUCCESS_AND_FAILURE]: (_, cont, value) => {
96
+ return cont.i2(value);
97
+ },
98
+ [OP_REVERT_FLAGS]: (self, cont, value) => {
99
+ self.patchRuntimeFlags(self._runtimeFlags, cont.patch);
100
+ if (interruptible$1(self._runtimeFlags) && self.isInterrupted()) {
101
+ return exitFailCause(self.getInterruptedCause());
102
+ } else {
103
+ return exitSucceed(value);
104
+ }
105
+ },
106
+ [OP_WHILE]: (self, cont, value) => {
107
+ cont.i2(value);
108
+ if (cont.i0()) {
109
+ self.pushStack(cont);
110
+ return cont.i1();
111
+ } else {
112
+ return unit;
113
+ }
114
+ }
115
+ };
116
+ const drainQueueWhileRunningTable = {
117
+ [OP_INTERRUPT_SIGNAL]: (self, runtimeFlags, cur, message) => {
118
+ self.processNewInterruptSignal(message.cause);
119
+ return interruptible$1(runtimeFlags) ? exitFailCause(message.cause) : cur;
120
+ },
121
+ [OP_RESUME]: (_self, _runtimeFlags, _cur, _message) => {
122
+ throw new Error("It is illegal to have multiple concurrent run loops in a single fiber");
123
+ },
124
+ [OP_STATEFUL]: (self, runtimeFlags, cur, message) => {
125
+ message.onFiber(self, running(runtimeFlags));
126
+ return cur;
127
+ },
128
+ [OP_YIELD_NOW]: (_self, _runtimeFlags, cur, _message) => {
129
+ return flatMap$1(yieldNow$1(), () => cur);
130
+ }
131
+ };
132
+
133
+ /**
134
+ * Executes all requests, submitting requests to each data source in parallel.
135
+ */
136
+ const runBlockedRequests = self => forEachSequentialDiscard(flatten$2(self), requestsByRequestResolver => forEachParUnboundedDiscard(sequentialCollectionToChunk(requestsByRequestResolver), ([dataSource, sequential]) => {
137
+ const map = new Map();
138
+ for (const block of sequential) {
139
+ for (const entry of block) {
140
+ map.set(entry.request, entry);
141
+ }
142
+ }
143
+ return fiberRefLocally(invokeWithInterrupt(dataSource.runAll(sequential), sequential.flat()), currentRequestMap, map);
144
+ }, false));
145
+
146
+ /** @internal */
147
+ class FiberRuntime {
148
+ [FiberTypeId] = fiberVariance;
149
+ [RuntimeFiberTypeId] = runtimeFiberVariance;
150
+ pipe() {
151
+ return pipeArguments(this, arguments);
152
+ }
153
+ _queue = new Array();
154
+ _children = null;
155
+ _observers = new Array();
156
+ _running = false;
157
+ _stack = [];
158
+ _asyncInterruptor = null;
159
+ _asyncBlockingOn = null;
160
+ _exitValue = null;
161
+ _steps = [false];
162
+ currentOpCount = 0;
163
+ constructor(fiberId, fiberRefs0, runtimeFlags0) {
164
+ this._runtimeFlags = runtimeFlags0;
165
+ this._fiberId = fiberId;
166
+ this._fiberRefs = fiberRefs0;
167
+ this._supervisor = this.getFiberRef(currentSupervisor);
168
+ this._scheduler = this.getFiberRef(currentScheduler);
169
+ if (runtimeMetrics(runtimeFlags0)) {
170
+ const tags = this.getFiberRef(currentMetricLabels);
171
+ fiberStarted.unsafeUpdate(1, tags);
172
+ fiberActive.unsafeUpdate(1, tags);
173
+ }
174
+ this._tracer = get$1(this.getFiberRef(currentServices), tracerTag);
175
+ }
176
+
177
+ /**
178
+ * The identity of the fiber.
179
+ */
180
+ id() {
181
+ return this._fiberId;
182
+ }
183
+
184
+ /**
185
+ * Begins execution of the effect associated with this fiber on in the
186
+ * background. This can be called to "kick off" execution of a fiber after
187
+ * it has been created.
188
+ */
189
+ resume(effect) {
190
+ this.tell(resume(effect));
191
+ }
192
+
193
+ /**
194
+ * The status of the fiber.
195
+ */
196
+ status() {
197
+ return this.ask((_, status) => status);
198
+ }
199
+
200
+ /**
201
+ * Gets the fiber runtime flags.
202
+ */
203
+ runtimeFlags() {
204
+ return this.ask((state, status) => {
205
+ if (isDone(status)) {
206
+ return state._runtimeFlags;
207
+ }
208
+ return status.runtimeFlags;
209
+ });
210
+ }
211
+
212
+ /**
213
+ * Returns the current `FiberScope` for the fiber.
214
+ */
215
+ scope() {
216
+ return unsafeMake(this);
217
+ }
218
+
219
+ /**
220
+ * Retrieves the immediate children of the fiber.
221
+ */
222
+ children() {
223
+ return this.ask(fiber => Array.from(fiber.getChildren()));
224
+ }
225
+
226
+ /**
227
+ * Gets the fiber's set of children.
228
+ */
229
+ getChildren() {
230
+ if (this._children === null) {
231
+ this._children = new Set();
232
+ }
233
+ return this._children;
234
+ }
235
+
236
+ /**
237
+ * Retrieves the interrupted cause of the fiber, which will be `Cause.empty`
238
+ * if the fiber has not been interrupted.
239
+ *
240
+ * **NOTE**: This method is safe to invoke on any fiber, but if not invoked
241
+ * on this fiber, then values derived from the fiber's state (including the
242
+ * log annotations and log level) may not be up-to-date.
243
+ */
244
+ getInterruptedCause() {
245
+ return this.getFiberRef(currentInterruptedCause);
246
+ }
247
+
248
+ /**
249
+ * Retrieves the whole set of fiber refs.
250
+ */
251
+ fiberRefs() {
252
+ return this.ask(fiber => fiber.getFiberRefs());
253
+ }
254
+
255
+ /**
256
+ * Returns an effect that will contain information computed from the fiber
257
+ * state and status while running on the fiber.
258
+ *
259
+ * This allows the outside world to interact safely with mutable fiber state
260
+ * without locks or immutable data.
261
+ */
262
+ ask(f) {
263
+ return suspend(() => {
264
+ const deferred = deferredUnsafeMake(this._fiberId);
265
+ this.tell(stateful((fiber, status) => {
266
+ deferredUnsafeDone(deferred, sync(() => f(fiber, status)));
267
+ }));
268
+ return deferredAwait(deferred);
269
+ });
270
+ }
271
+
272
+ /**
273
+ * Adds a message to be processed by the fiber on the fiber.
274
+ */
275
+ tell(message) {
276
+ this._queue.push(message);
277
+ if (!this._running) {
278
+ this._running = true;
279
+ this.drainQueueLaterOnExecutor();
280
+ }
281
+ }
282
+ await() {
283
+ return async(resume => {
284
+ const cb = exit => resume(succeed(exit));
285
+ this.tell(stateful((fiber, _) => {
286
+ if (fiber._exitValue !== null) {
287
+ cb(this._exitValue);
288
+ } else {
289
+ fiber.addObserver(cb);
290
+ }
291
+ }));
292
+ return sync(() => this.tell(stateful((fiber, _) => {
293
+ fiber.removeObserver(cb);
294
+ })));
295
+ }, this.id());
296
+ }
297
+ inheritAll() {
298
+ return withFiberRuntime((parentFiber, parentStatus) => {
299
+ const parentFiberId = parentFiber.id();
300
+ const parentFiberRefs = parentFiber.getFiberRefs();
301
+ const parentRuntimeFlags = parentStatus.runtimeFlags;
302
+ const childFiberRefs = this.getFiberRefs();
303
+ const updatedFiberRefs = joinAs(parentFiberRefs, parentFiberId, childFiberRefs);
304
+ parentFiber.setFiberRefs(updatedFiberRefs);
305
+ const updatedRuntimeFlags = parentFiber.getFiberRef(currentRuntimeFlags);
306
+ const patch = pipe(diff(parentRuntimeFlags, updatedRuntimeFlags),
307
+ // Do not inherit WindDown or Interruption!
308
+ exclude(Interruption), exclude(WindDown));
309
+ return updateRuntimeFlags(patch);
310
+ });
311
+ }
312
+
313
+ /**
314
+ * Tentatively observes the fiber, but returns immediately if it is not
315
+ * already done.
316
+ */
317
+ poll() {
318
+ return sync(() => fromNullable(this._exitValue));
319
+ }
320
+
321
+ /**
322
+ * Unsafely observes the fiber, but returns immediately if it is not
323
+ * already done.
324
+ */
325
+ unsafePoll() {
326
+ return this._exitValue;
327
+ }
328
+
329
+ /**
330
+ * In the background, interrupts the fiber as if interrupted from the specified fiber.
331
+ */
332
+ interruptAsFork(fiberId) {
333
+ return sync(() => this.tell(interruptSignal(interrupt(fiberId))));
334
+ }
335
+
336
+ /**
337
+ * Adds an observer to the list of observers.
338
+ *
339
+ * **NOTE**: This method must be invoked by the fiber itself.
340
+ */
341
+ addObserver(observer) {
342
+ if (this._exitValue !== null) {
343
+ observer(this._exitValue);
344
+ } else {
345
+ this._observers.push(observer);
346
+ }
347
+ }
348
+
349
+ /**
350
+ * Removes the specified observer from the list of observers that will be
351
+ * notified when the fiber exits.
352
+ *
353
+ * **NOTE**: This method must be invoked by the fiber itself.
354
+ */
355
+ removeObserver(observer) {
356
+ this._observers = this._observers.filter(o => o !== observer);
357
+ }
358
+ /**
359
+ * Retrieves all fiber refs of the fiber.
360
+ *
361
+ * **NOTE**: This method is safe to invoke on any fiber, but if not invoked
362
+ * on this fiber, then values derived from the fiber's state (including the
363
+ * log annotations and log level) may not be up-to-date.
364
+ */
365
+ getFiberRefs() {
366
+ this.setFiberRef(currentRuntimeFlags, this._runtimeFlags);
367
+ return this._fiberRefs;
368
+ }
369
+
370
+ /**
371
+ * Deletes the specified fiber ref.
372
+ *
373
+ * **NOTE**: This method must be invoked by the fiber itself.
374
+ */
375
+ unsafeDeleteFiberRef(fiberRef) {
376
+ this._fiberRefs = delete_(this._fiberRefs, fiberRef);
377
+ }
378
+
379
+ /**
380
+ * Retrieves the state of the fiber ref, or else its initial value.
381
+ *
382
+ * **NOTE**: This method is safe to invoke on any fiber, but if not invoked
383
+ * on this fiber, then values derived from the fiber's state (including the
384
+ * log annotations and log level) may not be up-to-date.
385
+ */
386
+ getFiberRef(fiberRef) {
387
+ if (this._fiberRefs.locals.has(fiberRef)) {
388
+ return this._fiberRefs.locals.get(fiberRef)[0][1];
389
+ }
390
+ return fiberRef.initial;
391
+ }
392
+
393
+ /**
394
+ * Sets the fiber ref to the specified value.
395
+ *
396
+ * **NOTE**: This method must be invoked by the fiber itself.
397
+ */
398
+ setFiberRef(fiberRef, value) {
399
+ this._fiberRefs = updatedAs(this._fiberRefs, {
400
+ fiberId: this._fiberId,
401
+ fiberRef,
402
+ value
403
+ });
404
+ this.refreshRefCache();
405
+ }
406
+ refreshRefCache() {
407
+ this._tracer = get$1(this.getFiberRef(currentServices), tracerTag);
408
+ this._supervisor = this.getFiberRef(currentSupervisor);
409
+ this._scheduler = this.getFiberRef(currentScheduler);
410
+ }
411
+
412
+ /**
413
+ * Wholesale replaces all fiber refs of this fiber.
414
+ *
415
+ * **NOTE**: This method must be invoked by the fiber itself.
416
+ */
417
+ setFiberRefs(fiberRefs) {
418
+ this._fiberRefs = fiberRefs;
419
+ this.refreshRefCache();
420
+ }
421
+
422
+ /**
423
+ * Adds a reference to the specified fiber inside the children set.
424
+ *
425
+ * **NOTE**: This method must be invoked by the fiber itself.
426
+ */
427
+ addChild(child) {
428
+ this.getChildren().add(child);
429
+ }
430
+
431
+ /**
432
+ * Removes a reference to the specified fiber inside the children set.
433
+ *
434
+ * **NOTE**: This method must be invoked by the fiber itself.
435
+ */
436
+ removeChild(child) {
437
+ this.getChildren().delete(child);
438
+ }
439
+
440
+ /**
441
+ * On the current thread, executes all messages in the fiber's inbox. This
442
+ * method may return before all work is done, in the event the fiber executes
443
+ * an asynchronous operation.
444
+ *
445
+ * **NOTE**: This method must be invoked by the fiber itself.
446
+ */
447
+ drainQueueOnCurrentThread() {
448
+ let recurse = true;
449
+ while (recurse) {
450
+ let evaluationSignal = EvaluationSignalContinue;
451
+ const prev = globalThis[currentFiberURI];
452
+ globalThis[currentFiberURI] = this;
453
+ try {
454
+ while (evaluationSignal === EvaluationSignalContinue) {
455
+ evaluationSignal = this._queue.length === 0 ? EvaluationSignalDone : this.evaluateMessageWhileSuspended(this._queue.splice(0, 1)[0]);
456
+ }
457
+ } finally {
458
+ this._running = false;
459
+ globalThis[currentFiberURI] = prev;
460
+ }
461
+ // Maybe someone added something to the queue between us checking, and us
462
+ // giving up the drain. If so, we need to restart the draining, but only
463
+ // if we beat everyone else to the restart:
464
+ if (this._queue.length > 0 && !this._running) {
465
+ this._running = true;
466
+ if (evaluationSignal === EvaluationSignalYieldNow) {
467
+ this.drainQueueLaterOnExecutor();
468
+ recurse = false;
469
+ } else {
470
+ recurse = true;
471
+ }
472
+ } else {
473
+ recurse = false;
474
+ }
475
+ }
476
+ }
477
+
478
+ /**
479
+ * Schedules the execution of all messages in the fiber's inbox.
480
+ *
481
+ * This method will return immediately after the scheduling
482
+ * operation is completed, but potentially before such messages have been
483
+ * executed.
484
+ *
485
+ * **NOTE**: This method must be invoked by the fiber itself.
486
+ */
487
+ drainQueueLaterOnExecutor() {
488
+ this._scheduler.scheduleTask(this.run, this.getFiberRef(currentSchedulingPriority));
489
+ }
490
+
491
+ /**
492
+ * Drains the fiber's message queue while the fiber is actively running,
493
+ * returning the next effect to execute, which may be the input effect if no
494
+ * additional effect needs to be executed.
495
+ *
496
+ * **NOTE**: This method must be invoked by the fiber itself.
497
+ */
498
+ drainQueueWhileRunning(runtimeFlags, cur0) {
499
+ let cur = cur0;
500
+ while (this._queue.length > 0) {
501
+ const message = this._queue.splice(0, 1)[0];
502
+ // @ts-expect-error
503
+ cur = drainQueueWhileRunningTable[message._tag](this, runtimeFlags, cur, message);
504
+ }
505
+ return cur;
506
+ }
507
+
508
+ /**
509
+ * Determines if the fiber is interrupted.
510
+ *
511
+ * **NOTE**: This method is safe to invoke on any fiber, but if not invoked
512
+ * on this fiber, then values derived from the fiber's state (including the
513
+ * log annotations and log level) may not be up-to-date.
514
+ */
515
+ isInterrupted() {
516
+ return !isEmpty(this.getFiberRef(currentInterruptedCause));
517
+ }
518
+
519
+ /**
520
+ * Adds an interruptor to the set of interruptors that are interrupting this
521
+ * fiber.
522
+ *
523
+ * **NOTE**: This method must be invoked by the fiber itself.
524
+ */
525
+ addInterruptedCause(cause) {
526
+ const oldSC = this.getFiberRef(currentInterruptedCause);
527
+ this.setFiberRef(currentInterruptedCause, sequential$1(oldSC, cause));
528
+ }
529
+
530
+ /**
531
+ * Processes a new incoming interrupt signal.
532
+ *
533
+ * **NOTE**: This method must be invoked by the fiber itself.
534
+ */
535
+ processNewInterruptSignal(cause) {
536
+ this.addInterruptedCause(cause);
537
+ this.sendInterruptSignalToAllChildren();
538
+ }
539
+
540
+ /**
541
+ * Interrupts all children of the current fiber, returning an effect that will
542
+ * await the exit of the children. This method will return null if the fiber
543
+ * has no children.
544
+ *
545
+ * **NOTE**: This method must be invoked by the fiber itself.
546
+ */
547
+ sendInterruptSignalToAllChildren() {
548
+ if (this._children === null || this._children.size === 0) {
549
+ return false;
550
+ }
551
+ let told = false;
552
+ for (const child of this._children) {
553
+ child.tell(interruptSignal(interrupt(this.id())));
554
+ told = true;
555
+ }
556
+ return told;
557
+ }
558
+
559
+ /**
560
+ * Interrupts all children of the current fiber, returning an effect that will
561
+ * await the exit of the children. This method will return null if the fiber
562
+ * has no children.
563
+ *
564
+ * **NOTE**: This method must be invoked by the fiber itself.
565
+ */
566
+ interruptAllChildren() {
567
+ if (this.sendInterruptSignalToAllChildren()) {
568
+ const it = this._children.values();
569
+ this._children = null;
570
+ let isDone = false;
571
+ const body = () => {
572
+ const next = it.next();
573
+ if (!next.done) {
574
+ return asUnit(next.value.await());
575
+ } else {
576
+ return sync(() => {
577
+ isDone = true;
578
+ });
579
+ }
580
+ };
581
+ return whileLoop({
582
+ while: () => !isDone,
583
+ body,
584
+ step: () => {
585
+ //
586
+ }
587
+ });
588
+ }
589
+ return null;
590
+ }
591
+ reportExitValue(exit) {
592
+ if (runtimeMetrics(this._runtimeFlags)) {
593
+ const tags = this.getFiberRef(currentMetricLabels);
594
+ fiberActive.unsafeUpdate(-1, tags);
595
+ switch (exit._tag) {
596
+ case OP_SUCCESS:
597
+ {
598
+ fiberSuccesses.unsafeUpdate(1, tags);
599
+ break;
600
+ }
601
+ case OP_FAILURE:
602
+ {
603
+ fiberFailures.unsafeUpdate(1, tags);
604
+ break;
605
+ }
606
+ }
607
+ }
608
+ if (exit._tag === "Failure") {
609
+ const level = this.getFiberRef(currentUnhandledErrorLogLevel);
610
+ if (!isInterruptedOnly(exit.cause) && level._tag === "Some") {
611
+ this.log("Fiber terminated with a non handled error", exit.cause, level);
612
+ }
613
+ }
614
+ }
615
+ setExitValue(exit) {
616
+ this._exitValue = exit;
617
+ if (runtimeMetrics(this._runtimeFlags)) {
618
+ const tags = this.getFiberRef(currentMetricLabels);
619
+ const startTimeMillis = this.id().startTimeMillis;
620
+ const endTimeMillis = new Date().getTime();
621
+ fiberLifetimes.unsafeUpdate(endTimeMillis - startTimeMillis, tags);
622
+ }
623
+ this.reportExitValue(exit);
624
+ for (let i = this._observers.length - 1; i >= 0; i--) {
625
+ this._observers[i](exit);
626
+ }
627
+ }
628
+ getLoggers() {
629
+ return this.getFiberRef(currentLoggers);
630
+ }
631
+ log(message, cause, overrideLogLevel) {
632
+ const logLevel = isSome(overrideLogLevel) ? overrideLogLevel.value : this.getFiberRef(currentLogLevel);
633
+ const minimumLogLevel = this.getFiberRef(currentMinimumLogLevel);
634
+ if (greaterThan(minimumLogLevel, logLevel)) {
635
+ return;
636
+ }
637
+ const spans = this.getFiberRef(currentLogSpan);
638
+ const annotations = this.getFiberRef(currentLogAnnotations);
639
+ const loggers = this.getLoggers();
640
+ const contextMap = this.getFiberRefs();
641
+ if (size(loggers) > 0) {
642
+ const clockService = get$1(this.getFiberRef(currentServices), clockTag);
643
+ const date = new Date(clockService.unsafeCurrentTimeMillis());
644
+ for (const logger of loggers) {
645
+ logger.log({
646
+ fiberId: this.id(),
647
+ logLevel,
648
+ message,
649
+ cause,
650
+ context: contextMap,
651
+ spans,
652
+ annotations,
653
+ date
654
+ });
655
+ }
656
+ }
657
+ }
658
+
659
+ /**
660
+ * Evaluates a single message on the current thread, while the fiber is
661
+ * suspended. This method should only be called while evaluation of the
662
+ * fiber's effect is suspended due to an asynchronous operation.
663
+ *
664
+ * **NOTE**: This method must be invoked by the fiber itself.
665
+ */
666
+ evaluateMessageWhileSuspended(message) {
667
+ switch (message._tag) {
668
+ case OP_YIELD_NOW:
669
+ {
670
+ return EvaluationSignalYieldNow;
671
+ }
672
+ case OP_INTERRUPT_SIGNAL:
673
+ {
674
+ this.processNewInterruptSignal(message.cause);
675
+ if (this._asyncInterruptor !== null) {
676
+ this._asyncInterruptor(exitFailCause(message.cause));
677
+ this._asyncInterruptor = null;
678
+ }
679
+ return EvaluationSignalContinue;
680
+ }
681
+ case OP_RESUME:
682
+ {
683
+ this._asyncInterruptor = null;
684
+ this._asyncBlockingOn = null;
685
+ this.evaluateEffect(message.effect);
686
+ return EvaluationSignalContinue;
687
+ }
688
+ case OP_STATEFUL:
689
+ {
690
+ message.onFiber(this, this._exitValue !== null ? done : suspended(this._runtimeFlags, this._asyncBlockingOn));
691
+ return EvaluationSignalContinue;
692
+ }
693
+ default:
694
+ {
695
+ return absurd(message);
696
+ }
697
+ }
698
+ }
699
+
700
+ /**
701
+ * Evaluates an effect until completion, potentially asynchronously.
702
+ *
703
+ * **NOTE**: This method must be invoked by the fiber itself.
704
+ */
705
+ evaluateEffect(effect0) {
706
+ this._supervisor.onResume(this);
707
+ try {
708
+ let effect = interruptible$1(this._runtimeFlags) && this.isInterrupted() ? exitFailCause(this.getInterruptedCause()) : effect0;
709
+ while (effect !== null) {
710
+ try {
711
+ const eff = effect;
712
+ const exit = this.runLoop(eff);
713
+ this._runtimeFlags = pipe(this._runtimeFlags, enable(WindDown));
714
+ const interruption = this.interruptAllChildren();
715
+ if (interruption !== null) {
716
+ effect = flatMap$1(interruption, () => exit);
717
+ } else {
718
+ if (this._queue.length === 0) {
719
+ // No more messages to process, so we will allow the fiber to end life:
720
+ this.setExitValue(exit);
721
+ } else {
722
+ // There are messages, possibly added by the final op executed by
723
+ // the fiber. To be safe, we should execute those now before we
724
+ // allow the fiber to end life:
725
+ this.tell(resume(exit));
726
+ }
727
+ effect = null;
728
+ }
729
+ } catch (e) {
730
+ if (isEffect(e)) {
731
+ if (e._op === OP_YIELD) {
732
+ if (cooperativeYielding(this._runtimeFlags)) {
733
+ this.tell(yieldNow());
734
+ this.tell(resume(exitUnit));
735
+ effect = null;
736
+ } else {
737
+ effect = exitUnit;
738
+ }
739
+ } else if (e._op === OP_ASYNC) {
740
+ // Terminate this evaluation, async resumption will continue evaluation:
741
+ effect = null;
742
+ }
743
+ } else {
744
+ throw e;
745
+ }
746
+ }
747
+ }
748
+ } finally {
749
+ this._supervisor.onSuspend(this);
750
+ }
751
+ }
752
+
753
+ /**
754
+ * Begins execution of the effect associated with this fiber on the current
755
+ * thread. This can be called to "kick off" execution of a fiber after it has
756
+ * been created, in hopes that the effect can be executed synchronously.
757
+ *
758
+ * This is not the normal way of starting a fiber, but it is useful when the
759
+ * express goal of executing the fiber is to synchronously produce its exit.
760
+ */
761
+ start(effect) {
762
+ if (!this._running) {
763
+ this._running = true;
764
+ const prev = globalThis[currentFiberURI];
765
+ globalThis[currentFiberURI] = this;
766
+ try {
767
+ this.evaluateEffect(effect);
768
+ } finally {
769
+ this._running = false;
770
+ globalThis[currentFiberURI] = prev;
771
+ // Because we're special casing `start`, we have to be responsible
772
+ // for spinning up the fiber if there were new messages added to
773
+ // the queue between the completion of the effect and the transition
774
+ // to the not running state.
775
+ if (this._queue.length > 0) {
776
+ this.drainQueueLaterOnExecutor();
777
+ }
778
+ }
779
+ } else {
780
+ this.tell(resume(effect));
781
+ }
782
+ }
783
+
784
+ /**
785
+ * Begins execution of the effect associated with this fiber on in the
786
+ * background, and on the correct thread pool. This can be called to "kick
787
+ * off" execution of a fiber after it has been created, in hopes that the
788
+ * effect can be executed synchronously.
789
+ */
790
+ startFork(effect) {
791
+ this.tell(resume(effect));
792
+ }
793
+
794
+ /**
795
+ * Takes the current runtime flags, patches them to return the new runtime
796
+ * flags, and then makes any changes necessary to fiber state based on the
797
+ * specified patch.
798
+ *
799
+ * **NOTE**: This method must be invoked by the fiber itself.
800
+ */
801
+ patchRuntimeFlags(oldRuntimeFlags, patch$1) {
802
+ const newRuntimeFlags = patch(oldRuntimeFlags, patch$1);
803
+ globalThis[currentFiberURI] = this;
804
+ this._runtimeFlags = newRuntimeFlags;
805
+ return newRuntimeFlags;
806
+ }
807
+
808
+ /**
809
+ * Initiates an asynchronous operation, by building a callback that will
810
+ * resume execution, and then feeding that callback to the registration
811
+ * function, handling error cases and repeated resumptions appropriately.
812
+ *
813
+ * **NOTE**: This method must be invoked by the fiber itself.
814
+ */
815
+ initiateAsync(runtimeFlags, asyncRegister) {
816
+ let alreadyCalled = false;
817
+ const callback = effect => {
818
+ if (!alreadyCalled) {
819
+ alreadyCalled = true;
820
+ this.tell(resume(effect));
821
+ }
822
+ };
823
+ if (interruptible$1(runtimeFlags)) {
824
+ this._asyncInterruptor = callback;
825
+ }
826
+ try {
827
+ asyncRegister(callback);
828
+ } catch (e) {
829
+ callback(failCause(die(e)));
830
+ }
831
+ }
832
+ pushStack(cont) {
833
+ this._stack.push(cont);
834
+ if (cont._op === "OnStep") {
835
+ this._steps.push(true);
836
+ }
837
+ if (cont._op === "RevertFlags") {
838
+ this._steps.push(false);
839
+ }
840
+ }
841
+ popStack() {
842
+ const item = this._stack.pop();
843
+ if (item) {
844
+ if (item._op === "OnStep" || item._op === "RevertFlags") {
845
+ this._steps.pop();
846
+ }
847
+ return item;
848
+ }
849
+ return;
850
+ }
851
+ getNextSuccessCont() {
852
+ let frame = this.popStack();
853
+ while (frame) {
854
+ if (frame._op !== OP_ON_FAILURE) {
855
+ return frame;
856
+ }
857
+ frame = this.popStack();
858
+ }
859
+ }
860
+ getNextFailCont() {
861
+ let frame = this.popStack();
862
+ while (frame) {
863
+ if (frame._op !== OP_ON_SUCCESS && frame._op !== OP_WHILE) {
864
+ return frame;
865
+ }
866
+ frame = this.popStack();
867
+ }
868
+ }
869
+ [OP_TAG](op) {
870
+ return map$1(fiberRefGet(currentContext), context => {
871
+ try {
872
+ return unsafeGet(context, op);
873
+ } catch (e) {
874
+ console.log(e);
875
+ throw e;
876
+ }
877
+ });
878
+ }
879
+ ["Left"](op) {
880
+ return exitFail(op.left);
881
+ }
882
+ ["None"](_) {
883
+ return exitFail(NoSuchElementException());
884
+ }
885
+ ["Right"](op) {
886
+ return exitSucceed(op.right);
887
+ }
888
+ ["Some"](op) {
889
+ return exitSucceed(op.value);
890
+ }
891
+ [OP_SYNC](op) {
892
+ const value = op.i0();
893
+ const cont = this.getNextSuccessCont();
894
+ if (cont !== undefined) {
895
+ if (!(cont._op in contOpSuccess)) {
896
+ // @ts-expect-error
897
+ absurd(cont);
898
+ }
899
+ // @ts-expect-error
900
+ return contOpSuccess[cont._op](this, cont, value);
901
+ } else {
902
+ throw exitSucceed(value);
903
+ }
904
+ }
905
+ [OP_SUCCESS](op) {
906
+ const oldCur = op;
907
+ const cont = this.getNextSuccessCont();
908
+ if (cont !== undefined) {
909
+ if (!(cont._op in contOpSuccess)) {
910
+ // @ts-expect-error
911
+ absurd(cont);
912
+ }
913
+ // @ts-expect-error
914
+ return contOpSuccess[cont._op](this, cont, oldCur.i0);
915
+ } else {
916
+ throw oldCur;
917
+ }
918
+ }
919
+ [OP_FAILURE](op) {
920
+ const cause = op.i0;
921
+ const cont = this.getNextFailCont();
922
+ if (cont !== undefined) {
923
+ switch (cont._op) {
924
+ case OP_ON_FAILURE:
925
+ case OP_ON_SUCCESS_AND_FAILURE:
926
+ {
927
+ if (!(interruptible$1(this._runtimeFlags) && this.isInterrupted())) {
928
+ return cont.i1(cause);
929
+ } else {
930
+ return exitFailCause(stripFailures(cause));
931
+ }
932
+ }
933
+ case "OnStep":
934
+ {
935
+ if (!(interruptible$1(this._runtimeFlags) && this.isInterrupted())) {
936
+ return cont.i1(exitFailCause(cause));
937
+ } else {
938
+ return exitFailCause(stripFailures(cause));
939
+ }
940
+ }
941
+ case OP_REVERT_FLAGS:
942
+ {
943
+ this.patchRuntimeFlags(this._runtimeFlags, cont.patch);
944
+ if (interruptible$1(this._runtimeFlags) && this.isInterrupted()) {
945
+ return exitFailCause(sequential$1(cause, this.getInterruptedCause()));
946
+ } else {
947
+ return exitFailCause(cause);
948
+ }
949
+ }
950
+ default:
951
+ {
952
+ absurd(cont);
953
+ }
954
+ }
955
+ } else {
956
+ throw exitFailCause(cause);
957
+ }
958
+ }
959
+ [OP_WITH_RUNTIME](op) {
960
+ return op.i0(this, running(this._runtimeFlags));
961
+ }
962
+ ["Blocked"](op) {
963
+ if (this._steps[this._steps.length - 1]) {
964
+ const nextOp = this.popStack();
965
+ if (nextOp) {
966
+ switch (nextOp._op) {
967
+ case "OnStep":
968
+ {
969
+ return nextOp.i1(op);
970
+ }
971
+ case "OnSuccess":
972
+ {
973
+ return blocked(op.i0, flatMap$1(op.i1, nextOp.i1));
974
+ }
975
+ case "OnSuccessAndFailure":
976
+ {
977
+ return blocked(op.i0, matchCauseEffect(op.i1, {
978
+ onFailure: nextOp.i1,
979
+ onSuccess: nextOp.i2
980
+ }));
981
+ }
982
+ case "OnFailure":
983
+ {
984
+ return blocked(op.i0, catchAllCause(op.i1, nextOp.i1));
985
+ }
986
+ case "While":
987
+ {
988
+ return blocked(op.i0, flatMap$1(op.i1, a => {
989
+ nextOp.i2(a);
990
+ if (nextOp.i0()) {
991
+ return whileLoop({
992
+ while: nextOp.i0,
993
+ body: nextOp.i1,
994
+ step: nextOp.i2
995
+ });
996
+ }
997
+ return unit;
998
+ }));
999
+ }
1000
+ case "RevertFlags":
1001
+ {
1002
+ this.pushStack(nextOp);
1003
+ break;
1004
+ }
1005
+ }
1006
+ }
1007
+ }
1008
+ return uninterruptibleMask(restore => flatMap$1(fork(runRequestBlock(op.i0)), () => restore(op.i1)));
1009
+ }
1010
+ ["RunBlocked"](op) {
1011
+ return runBlockedRequests(op.i0);
1012
+ }
1013
+ [OP_UPDATE_RUNTIME_FLAGS](op) {
1014
+ const updateFlags = op.i0;
1015
+ const oldRuntimeFlags = this._runtimeFlags;
1016
+ const newRuntimeFlags = patch(oldRuntimeFlags, updateFlags);
1017
+ // One more chance to short circuit: if we're immediately going
1018
+ // to interrupt. Interruption will cause immediate reversion of
1019
+ // the flag, so as long as we "peek ahead", there's no need to
1020
+ // set them to begin with.
1021
+ if (interruptible$1(newRuntimeFlags) && this.isInterrupted()) {
1022
+ return exitFailCause(this.getInterruptedCause());
1023
+ } else {
1024
+ // Impossible to short circuit, so record the changes
1025
+ this.patchRuntimeFlags(this._runtimeFlags, updateFlags);
1026
+ if (op.i1) {
1027
+ // Since we updated the flags, we need to revert them
1028
+ const revertFlags = diff(newRuntimeFlags, oldRuntimeFlags);
1029
+ this.pushStack(new RevertFlags(revertFlags, op));
1030
+ return op.i1(oldRuntimeFlags);
1031
+ } else {
1032
+ return exitUnit;
1033
+ }
1034
+ }
1035
+ }
1036
+ [OP_ON_SUCCESS](op) {
1037
+ this.pushStack(op);
1038
+ return op.i0;
1039
+ }
1040
+ ["OnStep"](op) {
1041
+ this.pushStack(op);
1042
+ return op.i0;
1043
+ }
1044
+ [OP_ON_FAILURE](op) {
1045
+ this.pushStack(op);
1046
+ return op.i0;
1047
+ }
1048
+ [OP_ON_SUCCESS_AND_FAILURE](op) {
1049
+ this.pushStack(op);
1050
+ return op.i0;
1051
+ }
1052
+ [OP_ASYNC](op) {
1053
+ this._asyncBlockingOn = op.i1;
1054
+ this.initiateAsync(this._runtimeFlags, op.i0);
1055
+ throw op;
1056
+ }
1057
+ [OP_YIELD](op) {
1058
+ throw op;
1059
+ }
1060
+ [OP_WHILE](op) {
1061
+ const check = op.i0;
1062
+ const body = op.i1;
1063
+ if (check()) {
1064
+ this.pushStack(op);
1065
+ return body();
1066
+ } else {
1067
+ return exitUnit;
1068
+ }
1069
+ }
1070
+ [OP_COMMIT](op) {
1071
+ return op.commit();
1072
+ }
1073
+
1074
+ /**
1075
+ * The main run-loop for evaluating effects.
1076
+ *
1077
+ * **NOTE**: This method must be invoked by the fiber itself.
1078
+ */
1079
+ runLoop(effect0) {
1080
+ let cur = effect0;
1081
+ this.currentOpCount = 0;
1082
+ // eslint-disable-next-line no-constant-condition
1083
+ while (true) {
1084
+ if ((this._runtimeFlags & OpSupervision) !== 0) {
1085
+ this._supervisor.onEffect(this, cur);
1086
+ }
1087
+ if (this._queue.length > 0) {
1088
+ cur = this.drainQueueWhileRunning(this._runtimeFlags, cur);
1089
+ }
1090
+ this.currentOpCount += 1;
1091
+ const shouldYield = this._scheduler.shouldYield(this);
1092
+ if (shouldYield !== false) {
1093
+ this.currentOpCount = 0;
1094
+ const oldCur = cur;
1095
+ cur = flatMap$1(yieldNow$1({
1096
+ priority: shouldYield
1097
+ }), () => oldCur);
1098
+ }
1099
+ try {
1100
+ if (!("_op" in cur)) {
1101
+ console.log(cur);
1102
+ }
1103
+ if (!(cur._op in this)) {
1104
+ if (typeof cur === "function") {
1105
+ console.log(cur());
1106
+ }
1107
+ // @ts-expect-error
1108
+ absurd(cur);
1109
+ }
1110
+ // @ts-expect-error
1111
+ cur = this._tracer.context(
1112
+ // @ts-expect-error
1113
+ () => this[cur._op](cur), this);
1114
+ } catch (e) {
1115
+ if (isEffect(e)) {
1116
+ if (e._op === OP_YIELD || e._op === OP_ASYNC) {
1117
+ throw e;
1118
+ }
1119
+ if (e._op === OP_SUCCESS || e._op === OP_FAILURE) {
1120
+ return e;
1121
+ }
1122
+ } else {
1123
+ if (isEffectError(e)) {
1124
+ cur = exitFailCause(e.cause);
1125
+ } else if (isInterruptedException(e)) {
1126
+ cur = exitFailCause(sequential$1(die(e), interrupt(none$2)));
1127
+ } else {
1128
+ cur = exitFailCause(die(e));
1129
+ }
1130
+ }
1131
+ }
1132
+ }
1133
+ }
1134
+ run = () => {
1135
+ this.drainQueueOnCurrentThread();
1136
+ };
1137
+ }
1138
+
1139
+ // circular with Logger
1140
+
1141
+ /** @internal */
1142
+ const currentMinimumLogLevel = /*#__PURE__*/fiberRefUnsafeMake( /*#__PURE__*/fromLiteral("Info"));
1143
+
1144
+ /** @internal */
1145
+ const getConsole = refs => {
1146
+ const defaultServicesValue = getOrDefault(refs, currentServices);
1147
+ const cnsl = get$1(defaultServicesValue, consoleTag);
1148
+ return cnsl.unsafe;
1149
+ };
1150
+
1151
+ /** @internal */
1152
+ const defaultLogger = /*#__PURE__*/makeLogger(options => {
1153
+ const formatted = stringLogger.log(options);
1154
+ getConsole(options.context).log(formatted);
1155
+ });
1156
+
1157
+ /** @internal */
1158
+ const logFmtLogger = /*#__PURE__*/makeLogger(options => {
1159
+ const formatted = logfmtLogger.log(options);
1160
+ getConsole(options.context).log(formatted);
1161
+ });
1162
+
1163
+ /** @internal */
1164
+ const tracerLogger = /*#__PURE__*/makeLogger(({
1165
+ annotations,
1166
+ cause,
1167
+ context,
1168
+ fiberId,
1169
+ logLevel,
1170
+ message
1171
+ }) => {
1172
+ const span = flatMap(get(context, currentTracerSpan), head);
1173
+ const clockService = map(get(context, currentServices), _ => get$1(_, clockTag));
1174
+ if (span._tag === "None" || span.value._tag === "ExternalSpan" || clockService._tag === "None") {
1175
+ return;
1176
+ }
1177
+ const attributes = Object.fromEntries(annotations);
1178
+ attributes["effect.fiberId"] = threadName(fiberId);
1179
+ attributes["effect.logLevel"] = logLevel.label;
1180
+ if (cause !== null && cause !== empty) {
1181
+ attributes["effect.cause"] = pretty(cause);
1182
+ }
1183
+ span.value.event(String(message), clockService.value.unsafeCurrentTimeNanos(), attributes);
1184
+ });
1185
+
1186
+ /** @internal */
1187
+ const currentLoggers = /*#__PURE__*/fiberRefUnsafeMakeHashSet( /*#__PURE__*/make(defaultLogger, tracerLogger));
1188
+
1189
+ // circular with Effect
1190
+
1191
+ /* @internal */
1192
+ const acquireRelease = /*#__PURE__*/dual(args => isEffect(args[0]), (acquire, release) => {
1193
+ return uninterruptible(tap(acquire, a => addFinalizer(exit => release(a, exit))));
1194
+ });
1195
+
1196
+ /* @internal */
1197
+ const acquireReleaseInterruptible = /*#__PURE__*/dual(args => isEffect(args[0]), (acquire, release) => {
1198
+ return ensuring(acquire, addFinalizer(exit => release(exit)));
1199
+ });
1200
+
1201
+ /* @internal */
1202
+ const addFinalizer = finalizer => withFiberRuntime(runtime => {
1203
+ const acquireRefs = runtime.getFiberRefs();
1204
+ const acquireFlags = runtime._runtimeFlags;
1205
+ return flatMap$1(scope, scope => scopeAddFinalizerExit(scope, exit => withFiberRuntime(runtimeFinalizer => {
1206
+ const preRefs = runtimeFinalizer.getFiberRefs();
1207
+ const preFlags = runtimeFinalizer._runtimeFlags;
1208
+ const patchRefs = diff$1(preRefs, acquireRefs);
1209
+ const patchFlags = diff(preFlags, acquireFlags);
1210
+ const inverseRefs = diff$1(acquireRefs, preRefs);
1211
+ runtimeFinalizer.setFiberRefs(patch$1(patchRefs, runtimeFinalizer.id(), acquireRefs));
1212
+ return ensuring(withRuntimeFlags(finalizer(exit), patchFlags), sync(() => {
1213
+ runtimeFinalizer.setFiberRefs(patch$1(inverseRefs, runtimeFinalizer.id(), runtimeFinalizer.getFiberRefs()));
1214
+ }));
1215
+ })));
1216
+ });
1217
+
1218
+ /* @internal */
1219
+ const daemonChildren = self => {
1220
+ const forkScope = fiberRefLocally(currentForkScopeOverride, some(globalScope));
1221
+ return forkScope(self);
1222
+ };
1223
+
1224
+ /** @internal */
1225
+ const _existsParFound = /*#__PURE__*/Symbol("effect/Effect/existsPar/found");
1226
+
1227
+ /* @internal */
1228
+ const exists = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, f, options) => matchSimple(options, () => suspend(() => existsLoop(elements[Symbol.iterator](), 0, f)), () => matchEffect(forEachOptions(elements, (a, i) => if_(f(a, i), {
1229
+ onTrue: fail(_existsParFound),
1230
+ onFalse: unit
1231
+ }), options), {
1232
+ onFailure: e => e === _existsParFound ? succeed(true) : fail(e),
1233
+ onSuccess: () => succeed(false)
1234
+ })));
1235
+ const existsLoop = (iterator, index, f) => {
1236
+ const next = iterator.next();
1237
+ if (next.done) {
1238
+ return succeed(false);
1239
+ }
1240
+ return pipe(flatMap$1(f(next.value, index), b => b ? succeed(b) : existsLoop(iterator, index + 1, f)));
1241
+ };
1242
+
1243
+ /* @internal */
1244
+ const filter = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, f, options) => {
1245
+ const predicate = options?.negate ? (a, i) => map$1(f(a, i), not) : f;
1246
+ return matchSimple(options, () => suspend(() => fromIterable(elements).reduceRight((effect, a, i) => zipWith(effect, suspend(() => predicate(a, i)), (list, b) => b ? [a, ...list] : list), sync(() => new Array()))), () => map$1(forEachOptions(elements, (a, i) => map$1(predicate(a, i), b => b ? some(a) : none()), options), compact));
1247
+ });
1248
+
1249
+ // === all
1250
+
1251
+ const allResolveInput = input => {
1252
+ if (Array.isArray(input) || isIterable(input)) {
1253
+ return [input, none()];
1254
+ }
1255
+ const keys = Object.keys(input);
1256
+ const size = keys.length;
1257
+ return [keys.map(k => input[k]), some(values => {
1258
+ const res = {};
1259
+ for (let i = 0; i < size; i++) {
1260
+ res[keys[i]] = values[i];
1261
+ }
1262
+ return res;
1263
+ })];
1264
+ };
1265
+ const allValidate = (effects, reconcile, options) => {
1266
+ const eitherEffects = [];
1267
+ for (const effect of effects) {
1268
+ eitherEffects.push(either(effect));
1269
+ }
1270
+ return flatMap$1(forEachOptions(eitherEffects, identity, {
1271
+ concurrency: options?.concurrency,
1272
+ batching: options?.batching
1273
+ }), eithers => {
1274
+ const none$1 = none();
1275
+ const size = eithers.length;
1276
+ const errors = new Array(size);
1277
+ const successes = new Array(size);
1278
+ let errored = false;
1279
+ for (let i = 0; i < size; i++) {
1280
+ const either = eithers[i];
1281
+ if (either._tag === "Left") {
1282
+ errors[i] = some(either.left);
1283
+ errored = true;
1284
+ } else {
1285
+ successes[i] = either.right;
1286
+ errors[i] = none$1;
1287
+ }
1288
+ }
1289
+ if (errored) {
1290
+ return reconcile._tag === "Some" ? fail(reconcile.value(errors)) : fail(errors);
1291
+ } else if (options?.discard) {
1292
+ return unit;
1293
+ }
1294
+ return reconcile._tag === "Some" ? succeed(reconcile.value(successes)) : succeed(successes);
1295
+ });
1296
+ };
1297
+ const allEither = (effects, reconcile, options) => {
1298
+ const eitherEffects = [];
1299
+ for (const effect of effects) {
1300
+ eitherEffects.push(either(effect));
1301
+ }
1302
+ if (options?.discard) {
1303
+ return forEachOptions(eitherEffects, identity, {
1304
+ concurrency: options?.concurrency,
1305
+ batching: options?.batching,
1306
+ discard: true
1307
+ });
1308
+ }
1309
+ return map$1(forEachOptions(eitherEffects, identity, {
1310
+ concurrency: options?.concurrency,
1311
+ batching: options?.batching
1312
+ }), eithers => reconcile._tag === "Some" ? reconcile.value(eithers) : eithers);
1313
+ };
1314
+
1315
+ /* @internal */
1316
+ const all = (arg, options) => {
1317
+ const [effects, reconcile] = allResolveInput(arg);
1318
+ if (options?.mode === "validate") {
1319
+ return allValidate(effects, reconcile, options);
1320
+ } else if (options?.mode === "either") {
1321
+ return allEither(effects, reconcile, options);
1322
+ }
1323
+ return reconcile._tag === "Some" ? map$1(forEachOptions(effects, identity, options), reconcile.value) : forEachOptions(effects, identity, options);
1324
+ };
1325
+
1326
+ /* @internal */
1327
+ const allWith = options => arg => all(arg, options);
1328
+
1329
+ /* @internal */
1330
+ const allSuccesses = (elements, options) => map$1(all(fromIterable(elements).map(exit), options), filterMap(exit => exitIsSuccess(exit) ? some(exit.i0) : none()));
1331
+
1332
+ /* @internal */
1333
+ const replicate = /*#__PURE__*/dual(2, (self, n) => Array.from({
1334
+ length: n
1335
+ }, () => self));
1336
+
1337
+ /* @internal */
1338
+ const replicateEffect = /*#__PURE__*/dual(args => isEffect(args[0]), (self, n, options) => all(replicate(self, n), options));
1339
+
1340
+ // @ts-expect-error
1341
+ const forEachOptions = /*#__PURE__*/dual(args => isIterable(args[0]), (self, f, options) => withFiberRuntime(r => {
1342
+ const requestBatchingEnabled = options?.batching === true || options?.batching === "inherit" && r.getFiberRef(currentRequestBatching);
1343
+ if (options?.discard) {
1344
+ return match$1(options, () => finalizersMask(sequential)(restore => requestBatchingEnabled ? forEachBatchedDiscard(self, (a, i) => restore(f(a, i))) : forEachSequentialDiscard(self, (a, i) => restore(f(a, i)))), () => finalizersMask(parallel)(restore => forEachParUnboundedDiscard(self, (a, i) => restore(f(a, i)), requestBatchingEnabled)), n => finalizersMask(parallelN(n))(restore => forEachParNDiscard(self, n, (a, i) => restore(f(a, i)), requestBatchingEnabled)));
1345
+ }
1346
+ return match$1(options, () => finalizersMask(sequential)(restore => requestBatchingEnabled ? forEachParN(self, 1, (a, i) => restore(f(a, i)), true) : forEachSequential(self, (a, i) => restore(f(a, i)))), () => finalizersMask(parallel)(restore => forEachParUnbounded(self, (a, i) => restore(f(a, i)), requestBatchingEnabled)), n => finalizersMask(parallelN(n))(restore => forEachParN(self, n, (a, i) => restore(f(a, i)), requestBatchingEnabled)));
1347
+ }));
1348
+
1349
+ /* @internal */
1350
+ const forEachParUnbounded = (self, f, batching) => suspend(() => {
1351
+ const as = fromIterable(self);
1352
+ const array = new Array(as.length);
1353
+ const fn = (a, i) => flatMap$1(f(a, i), b => sync(() => array[i] = b));
1354
+ return zipRight(forEachParUnboundedDiscard(as, fn, batching), succeed(array));
1355
+ });
1356
+ const forEachBatchedDiscard = (self, f) => suspend(() => {
1357
+ const as = fromIterable(self);
1358
+ const size = as.length;
1359
+ if (size === 0) {
1360
+ return unit;
1361
+ } else if (size === 1) {
1362
+ return asUnit(f(as[0], 0));
1363
+ }
1364
+ const effects = as.map(f);
1365
+ const blocked$1 = new Array();
1366
+ const loop = i => i === effects.length ? suspend(() => {
1367
+ if (blocked$1.length > 0) {
1368
+ const requests = blocked$1.map(b => b.i0).reduce(par);
1369
+ return blocked(requests, forEachBatchedDiscard(blocked$1.map(b => b.i1), identity));
1370
+ }
1371
+ return unit;
1372
+ }) : flatMapStep(effects[i], s => {
1373
+ if (s._op === "Blocked") {
1374
+ blocked$1.push(s);
1375
+ return loop(i + 1);
1376
+ } else if (s._op === "Failure") {
1377
+ return suspend(() => {
1378
+ if (blocked$1.length > 0) {
1379
+ const requests = blocked$1.map(b => b.i0).reduce(par);
1380
+ return blocked(requests, flatMap$1(forEachBatchedDiscard(blocked$1.map(b => b.i1), identity), () => s));
1381
+ }
1382
+ return unit;
1383
+ });
1384
+ } else {
1385
+ return loop(i + 1);
1386
+ }
1387
+ });
1388
+ return loop(0);
1389
+ });
1390
+
1391
+ /* @internal */
1392
+ const forEachParUnboundedDiscard = (self, f, batching) => suspend(() => {
1393
+ const as = fromIterable(self);
1394
+ const size = as.length;
1395
+ if (size === 0) {
1396
+ return unit;
1397
+ } else if (size === 1) {
1398
+ return asUnit(f(as[0], 0));
1399
+ }
1400
+ return uninterruptibleMask(restore => {
1401
+ const deferred = deferredUnsafeMake(none$2);
1402
+ let ref = 0;
1403
+ const residual = [];
1404
+ const joinOrder = [];
1405
+ const process = transplant(graft => forEachSequential(as, (a, i) => pipe(graft(pipe(suspend(() => restore((batching ? step : exit)(f(a, i)))), flatMap$1(exit => {
1406
+ switch (exit._op) {
1407
+ case "Failure":
1408
+ {
1409
+ if (residual.length > 0) {
1410
+ const requests = residual.map(blocked => blocked.i0).reduce(par);
1411
+ const _continue = forEachParUnboundedDiscard(residual, blocked => blocked.i1, batching);
1412
+ return blocked(requests, matchCauseEffect(_continue, {
1413
+ onFailure: cause => zipRight(deferredFail(deferred, void 0), failCause(parallel$1(cause, exit.cause))),
1414
+ onSuccess: () => zipRight(deferredFail(deferred, void 0), failCause(exit.cause))
1415
+ }));
1416
+ }
1417
+ return zipRight(deferredFail(deferred, void 0), failCause(exit.cause));
1418
+ }
1419
+ default:
1420
+ {
1421
+ if (exit._op === "Blocked") {
1422
+ residual.push(exit);
1423
+ }
1424
+ if (ref + 1 === size) {
1425
+ if (residual.length > 0) {
1426
+ const requests = residual.map(blocked => blocked.i0).reduce(par);
1427
+ const _continue = forEachParUnboundedDiscard(residual, blocked => blocked.i1, batching);
1428
+ return deferredSucceed(deferred, blocked(requests, _continue));
1429
+ } else {
1430
+ deferredUnsafeDone(deferred, exitSucceed(exitUnit));
1431
+ }
1432
+ } else {
1433
+ ref = ref + 1;
1434
+ }
1435
+ return unit;
1436
+ }
1437
+ }
1438
+ }))), forkDaemon, map$1(fiber => {
1439
+ fiber.addObserver(() => {
1440
+ joinOrder.push(fiber);
1441
+ });
1442
+ return fiber;
1443
+ }))));
1444
+ return flatMap$1(process, fibers => matchCauseEffect(restore(deferredAwait(deferred)), {
1445
+ onFailure: cause => flatMap$1(forEachParUnbounded(fibers, interruptFiber, batching), exits => {
1446
+ const exit = exitCollectAll(exits, {
1447
+ parallel: true
1448
+ });
1449
+ if (exit._tag === "Some" && exitIsFailure(exit.value)) {
1450
+ return failCause(parallel$1(stripFailures(cause), exit.value.i0));
1451
+ } else {
1452
+ return failCause(stripFailures(cause));
1453
+ }
1454
+ }),
1455
+ onSuccess: rest => flatMap$1(rest, () => forEachSequentialDiscard(joinOrder, f => f.inheritAll()))
1456
+ }));
1457
+ });
1458
+ });
1459
+
1460
+ /* @internal */
1461
+ const forEachParN = (self, n, f, batching) => suspend(() => {
1462
+ const as = fromIterable(self);
1463
+ const array = new Array(as.length);
1464
+ const fn = (a, i) => map$1(f(a, i), b => array[i] = b);
1465
+ return zipRight(forEachParNDiscard(as, n, fn, batching), succeed(array));
1466
+ });
1467
+
1468
+ /* @internal */
1469
+ const forEachParNDiscard = (self, n, f, batching) => suspend(() => {
1470
+ let i = 0;
1471
+ const iterator = self[Symbol.iterator]();
1472
+ const residual = [];
1473
+ const worker = flatMap$1(sync(() => iterator.next()), next => next.done ? unit : flatMap$1((batching ? step : exit)(asUnit(f(next.value, i++))), res => {
1474
+ switch (res._op) {
1475
+ case "Blocked":
1476
+ {
1477
+ residual.push(res);
1478
+ return worker;
1479
+ }
1480
+ case "Failure":
1481
+ {
1482
+ return res;
1483
+ }
1484
+ case "Success":
1485
+ return worker;
1486
+ }
1487
+ }));
1488
+ const effects = [];
1489
+ for (let i = 0; i < n; i++) {
1490
+ effects.push(worker);
1491
+ }
1492
+ return flatMap$1(exit(forEachParUnboundedDiscard(effects, identity, batching)), exit => {
1493
+ if (residual.length === 0) {
1494
+ return exit;
1495
+ }
1496
+ const requests = residual.map(blocked => blocked.i0).reduce(par);
1497
+ const _continue = forEachParNDiscard(residual, n, blocked => blocked.i1, batching);
1498
+ if (exit._tag === "Failure") {
1499
+ return blocked(requests, matchCauseEffect(_continue, {
1500
+ onFailure: cause => exitFailCause(parallel$1(exit.cause, cause)),
1501
+ onSuccess: () => exit
1502
+ }));
1503
+ }
1504
+ return blocked(requests, _continue);
1505
+ });
1506
+ });
1507
+
1508
+ /* @internal */
1509
+ const fork = self => withFiberRuntime((state, status) => succeed(unsafeFork(self, state, status.runtimeFlags)));
1510
+
1511
+ /* @internal */
1512
+ const forkDaemon = self => forkWithScopeOverride(self, globalScope);
1513
+
1514
+ /* @internal */
1515
+ const forkWithErrorHandler = /*#__PURE__*/dual(2, (self, handler) => fork(onError(self, cause => {
1516
+ const either = failureOrCause(cause);
1517
+ switch (either._tag) {
1518
+ case "Left":
1519
+ {
1520
+ return handler(either.left);
1521
+ }
1522
+ case "Right":
1523
+ {
1524
+ return failCause(either.right);
1525
+ }
1526
+ }
1527
+ })));
1528
+
1529
+ /** @internal */
1530
+ const unsafeFork = (effect, parentFiber, parentRuntimeFlags, overrideScope = null) => {
1531
+ const childFiber = unsafeMakeChildFiber(effect, parentFiber, parentRuntimeFlags, overrideScope);
1532
+ childFiber.resume(effect);
1533
+ return childFiber;
1534
+ };
1535
+
1536
+ /** @internal */
1537
+ const unsafeMakeChildFiber = (effect, parentFiber, parentRuntimeFlags, overrideScope = null) => {
1538
+ const childId = unsafeMake$1();
1539
+ const parentFiberRefs = parentFiber.getFiberRefs();
1540
+ const childFiberRefs = forkAs(parentFiberRefs, childId);
1541
+ const childFiber = new FiberRuntime(childId, childFiberRefs, parentRuntimeFlags);
1542
+ const childContext = getOrDefault$1(childFiberRefs, currentContext);
1543
+ const supervisor = childFiber._supervisor;
1544
+ supervisor.onStart(childContext, effect, some(parentFiber), childFiber);
1545
+ childFiber.addObserver(exit => supervisor.onEnd(exit, childFiber));
1546
+ const parentScope = overrideScope !== null ? overrideScope : pipe(parentFiber.getFiberRef(currentForkScopeOverride), getOrElse(() => parentFiber.scope()));
1547
+ parentScope.add(parentRuntimeFlags, childFiber);
1548
+ return childFiber;
1549
+ };
1550
+
1551
+ /* @internal */
1552
+ const forkWithScopeOverride = (self, scopeOverride) => withFiberRuntime((parentFiber, parentStatus) => succeed(unsafeFork(self, parentFiber, parentStatus.runtimeFlags, scopeOverride)));
1553
+
1554
+ /* @internal */
1555
+ const mergeAll = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, zero, f, options) => matchSimple(options, () => fromIterable(elements).reduce((acc, a, i) => zipWith(acc, a, (acc, a) => f(acc, a, i)), succeed(zero)), () => flatMap$1(make$1(zero), acc => flatMap$1(forEachOptions(elements, (effect, i) => flatMap$1(effect, a => update(acc, b => f(b, a, i))), options), () => get$2(acc)))));
1556
+
1557
+ /* @internal */
1558
+ const partition = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, f, options) => pipe(forEachOptions(elements, (a, i) => either(f(a, i)), options), map$1(chunk => partitionMap(chunk, identity))));
1559
+
1560
+ /* @internal */
1561
+ const validateAll = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, f, options) => flatMap$1(partition(elements, f, {
1562
+ concurrency: options?.concurrency,
1563
+ batching: options?.batching
1564
+ }), ([es, bs]) => es.length === 0 ? options?.discard ? unit : succeed(bs) : fail(es)));
1565
+
1566
+ /* @internal */
1567
+ const raceAll = all => {
1568
+ const list = fromIterable$1(all);
1569
+ if (!isNonEmpty(list)) {
1570
+ return dieSync(() => IllegalArgumentException(`Received an empty collection of effects`));
1571
+ }
1572
+ const self = headNonEmpty(list);
1573
+ const effects = tailNonEmpty(list);
1574
+ const inheritAll$1 = res => pipe(inheritAll(res[1]), as(res[0]));
1575
+ return pipe(deferredMake(), flatMap$1(done => pipe(make$1(effects.length), flatMap$1(fails => uninterruptibleMask(restore => pipe(fork(interruptible(self)), flatMap$1(head => pipe(effects, forEachSequential(effect => fork(interruptible(effect))), map$1(unsafeFromArray), map$1(tail => pipe(tail, prepend(head))), tap(fibers => pipe(fibers, reduce(unit, (effect, fiber) => pipe(effect, zipRight(pipe(_await(fiber), flatMap$1(raceAllArbiter(fibers, fiber, done, fails)), fork, asUnit)))))), flatMap$1(fibers => pipe(restore(pipe(_await$1(done), flatMap$1(inheritAll$1))), onInterrupt(() => pipe(fibers, reduce(unit, (effect, fiber) => pipe(effect, zipLeft(interruptFiber(fiber))))))))))))))));
1576
+ };
1577
+
1578
+ /* @internal */
1579
+ const raceAllArbiter = (fibers, winner, deferred, fails) => exit => exitMatchEffect(exit, {
1580
+ onFailure: cause => pipe(modify(fails, fails => [fails === 0 ? pipe(deferredFailCause(deferred, cause), asUnit) : unit, fails - 1]), flatten),
1581
+ onSuccess: value => pipe(deferredSucceed(deferred, [value, winner]), flatMap$1(set => set ? pipe(fromIterable$1(fibers), reduce(unit, (effect, fiber) => fiber === winner ? effect : pipe(effect, zipLeft(interruptFiber(fiber))))) : unit))
1582
+ });
1583
+
1584
+ /* @internal */
1585
+ const reduceEffect = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, zero, f, options) => matchSimple(options, () => fromIterable(elements).reduce((acc, a, i) => zipWith(acc, a, (acc, a) => f(acc, a, i)), zero), () => suspend(() => pipe(mergeAll([zero, ...elements], none(), (acc, elem, i) => {
1586
+ switch (acc._tag) {
1587
+ case "None":
1588
+ {
1589
+ return some(elem);
1590
+ }
1591
+ case "Some":
1592
+ {
1593
+ return some(f(acc.value, elem, i));
1594
+ }
1595
+ }
1596
+ }, options), map$1(option => {
1597
+ switch (option._tag) {
1598
+ case "None":
1599
+ {
1600
+ throw new Error("BUG: Effect.reduceEffect - please report an issue at https://github.com/Effect-TS/io/issues");
1601
+ }
1602
+ case "Some":
1603
+ {
1604
+ return option.value;
1605
+ }
1606
+ }
1607
+ })))));
1608
+
1609
+ /* @internal */
1610
+ const parallelFinalizers = self => contextWithEffect(context => match(getOption(context, scopeTag), {
1611
+ onNone: () => self,
1612
+ onSome: scope => {
1613
+ switch (scope.strategy._tag) {
1614
+ case "Parallel":
1615
+ return self;
1616
+ case "Sequential":
1617
+ case "ParallelN":
1618
+ return flatMap$1(scopeFork(scope, parallel), inner => scopeExtend(self, inner));
1619
+ }
1620
+ }
1621
+ }));
1622
+
1623
+ /* @internal */
1624
+ const parallelNFinalizers = parallelism => self => contextWithEffect(context => match(getOption(context, scopeTag), {
1625
+ onNone: () => self,
1626
+ onSome: scope => {
1627
+ if (scope.strategy._tag === "ParallelN" && scope.strategy.parallelism === parallelism) {
1628
+ return self;
1629
+ }
1630
+ return flatMap$1(scopeFork(scope, parallelN(parallelism)), inner => scopeExtend(self, inner));
1631
+ }
1632
+ }));
1633
+
1634
+ /* @internal */
1635
+ const finalizersMask = strategy => self => contextWithEffect(context => match(getOption(context, scopeTag), {
1636
+ onNone: () => self(identity),
1637
+ onSome: scope => {
1638
+ const patch = strategy._tag === "Parallel" ? parallelFinalizers : strategy._tag === "Sequential" ? sequentialFinalizers : parallelNFinalizers(strategy.parallelism);
1639
+ switch (scope.strategy._tag) {
1640
+ case "Parallel":
1641
+ return patch(self(parallelFinalizers));
1642
+ case "Sequential":
1643
+ return patch(self(sequentialFinalizers));
1644
+ case "ParallelN":
1645
+ return patch(self(parallelNFinalizers(scope.strategy.parallelism)));
1646
+ }
1647
+ }
1648
+ }));
1649
+
1650
+ /* @internal */
1651
+ const scopeWith = f => flatMap$1(scopeTag, f);
1652
+
1653
+ /* @internal */
1654
+ const scopedEffect = effect => flatMap$1(scopeMake(), scope => scopeUse(scope)(effect));
1655
+
1656
+ /* @internal */
1657
+ const sequentialFinalizers = self => contextWithEffect(context => match(getOption(context, scopeTag), {
1658
+ onNone: () => self,
1659
+ onSome: scope => {
1660
+ switch (scope.strategy._tag) {
1661
+ case "Sequential":
1662
+ return self;
1663
+ case "Parallel":
1664
+ case "ParallelN":
1665
+ return flatMap$1(scopeFork(scope, sequential), inner => scopeExtend(self, inner));
1666
+ }
1667
+ }
1668
+ }));
1669
+
1670
+ /* @internal */
1671
+ const tagMetricsScoped = (key, value) => labelMetricsScoped([make$3(key, value)]);
1672
+
1673
+ /* @internal */
1674
+ const labelMetricsScoped = labels => labelMetricsScopedSet(fromIterable$2(labels));
1675
+
1676
+ /* @internal */
1677
+ const labelMetricsScopedSet = labels => fiberRefLocallyScopedWith(currentMetricLabels, set => pipe(set, union(labels)));
1678
+
1679
+ /* @internal */
1680
+ const using = /*#__PURE__*/dual(2, (self, use) => acquireUseRelease(scopeMake(), scope => flatMap$1(scopeExtend(self, scope), use), (scope, exit) => scopeClose(scope, exit)));
1681
+
1682
+ /** @internal */
1683
+ const validate = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, options) => validateWith(self, that, (a, b) => [a, b], options));
1684
+
1685
+ /** @internal */
1686
+ const validateWith = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, f, options) => flatten(zipWithOptions(exit(self), exit(that), (ea, eb) => exitZipWith(ea, eb, {
1687
+ onSuccess: f,
1688
+ onFailure: (ca, cb) => options?.concurrent ? parallel$1(ca, cb) : sequential$1(ca, cb)
1689
+ }), options)));
1690
+
1691
+ /* @internal */
1692
+ const validateFirst = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, f, options) => flip(forEachOptions(elements, (a, i) => flip(f(a, i)), options)));
1693
+
1694
+ /* @internal */
1695
+ const withClockScoped = value => fiberRefLocallyScopedWith(currentServices, add(clockTag, value));
1696
+
1697
+ /* @internal */
1698
+ const withConfigProviderScoped = value => fiberRefLocallyScopedWith(currentServices, add(configProviderTag, value));
1699
+
1700
+ /* @internal */
1701
+ const withEarlyRelease = self => scopeWith(parent => flatMap$1(scopeFork(parent, sequential$2), child => pipe(self, scopeExtend(child), map$1(value => [fiberIdWith(fiberId => scopeClose(child, exitInterrupt(fiberId))), value]))));
1702
+
1703
+ /** @internal */
1704
+ const zipOptions = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, options) => zipWithOptions(self, that, (a, b) => [a, b], options));
1705
+
1706
+ /** @internal */
1707
+ const zipLeftOptions = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, options) => zipWithOptions(self, that, (a, _) => a, options));
1708
+
1709
+ /** @internal */
1710
+ const zipRightOptions = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, options) => zipWithOptions(self, that, (_, b) => b, options));
1711
+
1712
+ /** @internal */
1713
+ const zipWithOptions = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, f, options) => map$1(all([self, that], {
1714
+ concurrency: options?.concurrent ? 2 : 1,
1715
+ batching: options?.batching
1716
+ }), ([a, a2]) => f(a, a2)));
1717
+
1718
+ /* @internal */
1719
+ const withRuntimeFlagsScoped = update => {
1720
+ if (update === empty$1) {
1721
+ return unit;
1722
+ }
1723
+ return pipe(runtimeFlags, flatMap$1(runtimeFlags => {
1724
+ const updatedRuntimeFlags = patch(runtimeFlags, update);
1725
+ const revertRuntimeFlags = diff(updatedRuntimeFlags, runtimeFlags);
1726
+ return pipe(updateRuntimeFlags(update), zipRight(addFinalizer(() => updateRuntimeFlags(revertRuntimeFlags))), asUnit);
1727
+ }), uninterruptible);
1728
+ };
1729
+
1730
+ // circular with ReleaseMap
1731
+
1732
+ /* @internal */
1733
+ const releaseMapReleaseAll = (strategy, exit$1) => self => suspend(() => {
1734
+ switch (self.state._tag) {
1735
+ case "Exited":
1736
+ {
1737
+ return unit;
1738
+ }
1739
+ case "Running":
1740
+ {
1741
+ const finalizersMap = self.state.finalizers;
1742
+ const update = self.state.update;
1743
+ const finalizers = Array.from(finalizersMap.keys()).sort((a, b) => b - a).map(key => finalizersMap.get(key));
1744
+ self.state = {
1745
+ _tag: "Exited",
1746
+ nextKey: self.state.nextKey,
1747
+ exit: exit$1,
1748
+ update
1749
+ };
1750
+ return isSequential(strategy) ? pipe(finalizers, forEachSequential(fin => exit(update(fin)(exit$1))), flatMap$1(results => pipe(exitCollectAll(results), map(exitAsUnit), getOrElse(() => exitUnit)))) : isParallel(strategy) ? pipe(forEachParUnbounded(finalizers, fin => exit(update(fin)(exit$1)), false), flatMap$1(results => pipe(exitCollectAll(results, {
1751
+ parallel: true
1752
+ }), map(exitAsUnit), getOrElse(() => exitUnit)))) : pipe(forEachParN(finalizers, strategy.parallelism, fin => exit(update(fin)(exit$1)), false), flatMap$1(results => pipe(exitCollectAll(results, {
1753
+ parallel: true
1754
+ }), map(exitAsUnit), getOrElse(() => exitUnit))));
1755
+ }
1756
+ }
1757
+ });
1758
+
1759
+ // circular with Scope
1760
+
1761
+ /** @internal */
1762
+ const scopeTag = /*#__PURE__*/Tag(ScopeTypeId);
1763
+
1764
+ /* @internal */
1765
+ const scope = scopeTag;
1766
+
1767
+ /* @internal */
1768
+ const scopeMake = (strategy = sequential$2) => map$1(releaseMapMake, rm => ({
1769
+ [ScopeTypeId]: ScopeTypeId,
1770
+ [CloseableScopeTypeId]: CloseableScopeTypeId,
1771
+ strategy,
1772
+ pipe() {
1773
+ return pipeArguments(this, arguments);
1774
+ },
1775
+ fork: strategy => uninterruptible(pipe(scopeMake(strategy), flatMap$1(scope => pipe(releaseMapAdd(rm, exit => scopeClose(scope, exit)), tap(fin => scopeAddFinalizerExit(scope, fin)), as(scope))))),
1776
+ close: exit => asUnit(releaseMapReleaseAll(strategy, exit)(rm)),
1777
+ addFinalizer: fin => asUnit(releaseMapAdd(fin)(rm))
1778
+ }));
1779
+
1780
+ /* @internal */
1781
+ const scopeExtend = /*#__PURE__*/dual(2, (effect, scope) => mapInputContext(effect,
1782
+ // @ts-expect-error
1783
+ merge(make$2(scopeTag, scope))));
1784
+
1785
+ /* @internal */
1786
+ const scopeUse = /*#__PURE__*/dual(2, (effect, scope) => pipe(effect, scopeExtend(scope), onExit(exit => scope.close(exit))));
1787
+
1788
+ // circular with Supervisor
1789
+
1790
+ /** @internal */
1791
+ const fiberRefUnsafeMakeSupervisor = initial => fiberRefUnsafeMakePatch(initial, {
1792
+ differ: differ,
1793
+ fork: empty$2
1794
+ });
1795
+
1796
+ // circular with FiberRef
1797
+
1798
+ /* @internal */
1799
+ const fiberRefLocallyScoped = /*#__PURE__*/dual(2, (self, value) => asUnit(acquireRelease(flatMap$1(fiberRefGet(self), oldValue => as(fiberRefSet(self, value), oldValue)), oldValue => fiberRefSet(self, oldValue))));
1800
+
1801
+ /* @internal */
1802
+ const fiberRefLocallyScopedWith = /*#__PURE__*/dual(2, (self, f) => fiberRefGetWith(self, a => fiberRefLocallyScoped(self, f(a))));
1803
+
1804
+ /* @internal */
1805
+ const fiberRefMake = (initial, options) => fiberRefMakeWith(() => fiberRefUnsafeMake(initial, options));
1806
+
1807
+ /* @internal */
1808
+ const fiberRefMakeWith = ref => acquireRelease(tap(sync(ref), ref => fiberRefUpdate(ref, identity)), fiberRef => fiberRefDelete(fiberRef));
1809
+
1810
+ /* @internal */
1811
+ const fiberRefMakeContext = initial => fiberRefMakeWith(() => fiberRefUnsafeMakeContext(initial));
1812
+
1813
+ /* @internal */
1814
+ const fiberRefMakeRuntimeFlags = initial => fiberRefMakeWith(() => fiberRefUnsafeMakeRuntimeFlags(initial));
1815
+
1816
+ /** @internal */
1817
+ const currentRuntimeFlags = /*#__PURE__*/fiberRefUnsafeMakeRuntimeFlags(none$3);
1818
+
1819
+ /** @internal */
1820
+ const currentSupervisor = /*#__PURE__*/fiberRefUnsafeMakeSupervisor(none$1);
1821
+
1822
+ // circular with Fiber
1823
+
1824
+ /* @internal */
1825
+ const fiberAwaitAll = fibers => asUnit(_await(fiberAll(fibers)));
1826
+
1827
+ /** @internal */
1828
+ const fiberAll = fibers => ({
1829
+ [FiberTypeId]: fiberVariance,
1830
+ id: () => fromIterable(fibers).reduce((id, fiber) => combine(id, fiber.id()), none$2),
1831
+ await: () => exit(forEachParUnbounded(fibers, fiber => flatten(fiber.await()), false)),
1832
+ children: () => map$1(forEachParUnbounded(fibers, fiber => fiber.children(), false), flatten$1),
1833
+ inheritAll: () => forEachSequentialDiscard(fibers, fiber => fiber.inheritAll()),
1834
+ poll: () => map$1(forEachSequential(fibers, fiber => fiber.poll()), reduceRight(some(exitSucceed(new Array())), (optionB, optionA) => {
1835
+ switch (optionA._tag) {
1836
+ case "None":
1837
+ {
1838
+ return none();
1839
+ }
1840
+ case "Some":
1841
+ {
1842
+ switch (optionB._tag) {
1843
+ case "None":
1844
+ {
1845
+ return none();
1846
+ }
1847
+ case "Some":
1848
+ {
1849
+ return some(exitZipWith(optionA.value, optionB.value, {
1850
+ onSuccess: (a, chunk) => [a, ...chunk],
1851
+ onFailure: parallel$1
1852
+ }));
1853
+ }
1854
+ }
1855
+ }
1856
+ }
1857
+ })),
1858
+ interruptAsFork: fiberId => forEachSequentialDiscard(fibers, fiber => fiber.interruptAsFork(fiberId)),
1859
+ pipe() {
1860
+ return pipeArguments(this, arguments);
1861
+ }
1862
+ });
1863
+
1864
+ /* @internal */
1865
+ const fiberInterruptFork = self => asUnit(forkDaemon(interruptFiber(self)));
1866
+
1867
+ /* @internal */
1868
+ const fiberJoinAll = fibers => asUnit(join(fiberAll(fibers)));
1869
+
1870
+ /* @internal */
1871
+ const fiberScoped = self => acquireRelease(succeed(self), interruptFiber);
1872
+
1873
+ //
1874
+ // circular race
1875
+ //
1876
+
1877
+ /** @internal */
1878
+ const raceWith = /*#__PURE__*/dual(3, (self, other, options) => raceFibersWith(self, other, {
1879
+ onSelfWin: (winner, loser) => flatMap$1(winner.await(), exit => {
1880
+ switch (exit._tag) {
1881
+ case OP_SUCCESS:
1882
+ {
1883
+ return flatMap$1(winner.inheritAll(), () => options.onSelfDone(exit, loser));
1884
+ }
1885
+ case OP_FAILURE:
1886
+ {
1887
+ return options.onSelfDone(exit, loser);
1888
+ }
1889
+ }
1890
+ }),
1891
+ onOtherWin: (winner, loser) => flatMap$1(winner.await(), exit => {
1892
+ switch (exit._tag) {
1893
+ case OP_SUCCESS:
1894
+ {
1895
+ return flatMap$1(winner.inheritAll(), () => options.onOtherDone(exit, loser));
1896
+ }
1897
+ case OP_FAILURE:
1898
+ {
1899
+ return options.onOtherDone(exit, loser);
1900
+ }
1901
+ }
1902
+ })
1903
+ }));
1904
+
1905
+ /** @internal */
1906
+ const disconnect = self => uninterruptibleMask(restore => fiberIdWith(fiberId => flatMap$1(forkDaemon(restore(self)), fiber => pipe(restore(join(fiber)), onInterrupt(() => pipe(fiber, interruptAsFork(fiberId)))))));
1907
+
1908
+ /** @internal */
1909
+ const race = /*#__PURE__*/dual(2, (self, that) => fiberIdWith(parentFiberId => raceWith(self, that, {
1910
+ onSelfDone: (exit, right) => exitMatchEffect(exit, {
1911
+ onFailure: cause => pipe(join(right), mapErrorCause(cause2 => parallel$1(cause, cause2))),
1912
+ onSuccess: value => pipe(right, interruptAsFiber(parentFiberId), as(value))
1913
+ }),
1914
+ onOtherDone: (exit, left) => exitMatchEffect(exit, {
1915
+ onFailure: cause => pipe(join(left), mapErrorCause(cause2 => parallel$1(cause2, cause))),
1916
+ onSuccess: value => pipe(left, interruptAsFiber(parentFiberId), as(value))
1917
+ })
1918
+ })));
1919
+
1920
+ /** @internal */
1921
+ const raceFibersWith = /*#__PURE__*/dual(3, (self, other, options) => withFiberRuntime((parentFiber, parentStatus) => {
1922
+ const parentRuntimeFlags = parentStatus.runtimeFlags;
1923
+ const raceIndicator = make$4(true);
1924
+ const leftFiber = unsafeMakeChildFiber(self, parentFiber, parentRuntimeFlags, options.selfScope);
1925
+ const rightFiber = unsafeMakeChildFiber(other, parentFiber, parentRuntimeFlags, options.otherScope);
1926
+ return async(cb => {
1927
+ leftFiber.addObserver(() => completeRace(leftFiber, rightFiber, options.onSelfWin, raceIndicator, cb));
1928
+ rightFiber.addObserver(() => completeRace(rightFiber, leftFiber, options.onOtherWin, raceIndicator, cb));
1929
+ leftFiber.startFork(self);
1930
+ rightFiber.startFork(other);
1931
+ }, combine(leftFiber.id(), rightFiber.id()));
1932
+ }));
1933
+ const completeRace = (winner, loser, cont, ab, cb) => {
1934
+ if (compareAndSet(true, false)(ab)) {
1935
+ cb(cont(winner, loser));
1936
+ }
1937
+ };
1938
+
1939
+ /** @internal */
1940
+ const ensuring = /*#__PURE__*/dual(2, (self, finalizer) => uninterruptibleMask(restore => matchCauseEffect(restore(self), {
1941
+ onFailure: cause1 => matchCauseEffect(finalizer, {
1942
+ onFailure: cause2 => failCause(sequential$1(cause1, cause2)),
1943
+ onSuccess: () => failCause(cause1)
1944
+ }),
1945
+ onSuccess: a => as(finalizer, a)
1946
+ })));
1947
+
1948
+ /** @internal */
1949
+ const invokeWithInterrupt = (dataSource, all) => fiberIdWith(id => flatMap$1(flatMap$1(forkDaemon(interruptible(dataSource)), processing => async(cb => {
1950
+ const counts = all.map(_ => _.listeners.count);
1951
+ const checkDone = () => {
1952
+ if (counts.every(count => count === 0)) {
1953
+ cleanup.forEach(f => f());
1954
+ cb(interruptFiber(processing));
1955
+ }
1956
+ };
1957
+ processing.addObserver(exit => {
1958
+ cleanup.forEach(f => f());
1959
+ cb(exit);
1960
+ });
1961
+ const cleanup = all.map((r, i) => {
1962
+ const observer = count => {
1963
+ counts[i] = count;
1964
+ checkDone();
1965
+ };
1966
+ r.listeners.addObserver(observer);
1967
+ return () => r.listeners.removeObserver(observer);
1968
+ });
1969
+ checkDone();
1970
+ return sync(() => {
1971
+ cleanup.forEach(f => f());
1972
+ });
1973
+ })), () => suspend(() => {
1974
+ const residual = all.flatMap(entry => {
1975
+ if (!entry.state.completed) {
1976
+ return [entry];
1977
+ }
1978
+ return [];
1979
+ });
1980
+ return forEachSequentialDiscard(residual, entry => complete(entry.request, exitInterrupt(id)));
1981
+ })));
1982
+
1983
+ /** @internal */
1984
+ const interruptWhenPossible = /*#__PURE__*/dual(2, (self, all) => fiberRefGetWith(currentRequestMap, map => suspend(() => {
1985
+ const entries = fromIterable(all).flatMap(_ => map.has(_) ? [map.get(_)] : []);
1986
+ return invokeWithInterrupt(self, entries);
1987
+ })));
1988
+
1989
+ // circular Tracer
1990
+
1991
+ /** @internal */
1992
+ const useSpanScoped = (name, options) => acquireRelease(makeSpan(name, options), (span, exit) => flatMap$1(currentTimeNanosTracing, endTime => sync(() => span.end(endTime, exit))));
1993
+
1994
+ /* @internal */
1995
+ const withSpanScoped = (name, options) => flatMap$1(useSpanScoped(name, options), span => fiberRefLocallyScopedWith(currentTracerSpan, prepend$1(span)));
1996
+
1997
+ /* @internal */
1998
+ const withTracerScoped = value => fiberRefLocallyScopedWith(currentServices, add(tracerTag, value));
1999
+
2000
+ /* @internal */
2001
+ const withParentSpanScoped = span => fiberRefLocallyScopedWith(currentTracerSpan, prepend$1(span));
2002
+
2003
+ export { FiberRuntime, acquireRelease, acquireReleaseInterruptible, addFinalizer, all, allSuccesses, allWith, currentLoggers, currentMinimumLogLevel, currentRuntimeFlags, currentSupervisor, daemonChildren, defaultLogger, disconnect, ensuring, exists, fiberActive, fiberAll, fiberAwaitAll, fiberFailures, fiberInterruptFork, fiberJoinAll, fiberLifetimes, fiberRefLocallyScoped, fiberRefLocallyScopedWith, fiberRefMake, fiberRefMakeContext, fiberRefMakeRuntimeFlags, fiberRefMakeWith, fiberRefUnsafeMakeSupervisor, fiberScoped, fiberStarted, fiberSuccesses, filter, finalizersMask, forEachOptions, forEachParN, forEachParNDiscard, forEachParUnbounded, forEachParUnboundedDiscard, fork, forkDaemon, forkWithErrorHandler, getConsole, interruptWhenPossible, invokeWithInterrupt, labelMetricsScoped, labelMetricsScopedSet, logFmtLogger, mergeAll, parallelFinalizers, parallelNFinalizers, partition, race, raceAll, raceFibersWith, raceWith, reduceEffect, releaseMapReleaseAll, replicate, replicateEffect, runtimeFiberVariance, scope, scopeExtend, scopeMake, scopeTag, scopeUse, scopeWith, scopedEffect, sequentialFinalizers, tagMetricsScoped, tracerLogger, unsafeFork, unsafeMakeChildFiber, useSpanScoped, using, validate, validateAll, validateFirst, validateWith, withClockScoped, withConfigProviderScoped, withEarlyRelease, withParentSpanScoped, withRuntimeFlagsScoped, withSpanScoped, withTracerScoped, zipLeftOptions, zipOptions, zipRightOptions, zipWithOptions };