@graphrefly/graphrefly 0.44.0 → 0.45.0

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 (420) hide show
  1. package/README.md +21 -17
  2. package/dist/compat/index.cjs +20 -10
  3. package/dist/compat/index.cjs.map +1 -0
  4. package/dist/compat/index.d.cts +1 -22
  5. package/dist/compat/index.d.ts +1 -22
  6. package/dist/compat/index.js +3 -1
  7. package/dist/compat/index.js.map +1 -0
  8. package/dist/compat/jotai/index.cjs +21 -1
  9. package/dist/compat/jotai/index.cjs.map +1 -0
  10. package/dist/compat/jotai/index.d.cts +1 -2
  11. package/dist/compat/jotai/index.d.ts +1 -2
  12. package/dist/compat/jotai/index.js +3 -1
  13. package/dist/compat/jotai/index.js.map +1 -0
  14. package/dist/compat/nanostores/index.cjs +21 -1
  15. package/dist/compat/nanostores/index.cjs.map +1 -0
  16. package/dist/compat/nanostores/index.d.cts +1 -2
  17. package/dist/compat/nanostores/index.d.ts +1 -2
  18. package/dist/compat/nanostores/index.js +3 -1
  19. package/dist/compat/nanostores/index.js.map +1 -0
  20. package/dist/compat/nestjs/index.cjs +20 -10
  21. package/dist/compat/nestjs/index.cjs.map +1 -0
  22. package/dist/compat/nestjs/index.d.cts +1 -13
  23. package/dist/compat/nestjs/index.d.ts +1 -13
  24. package/dist/compat/nestjs/index.js +3 -1
  25. package/dist/compat/nestjs/index.js.map +1 -0
  26. package/dist/compat/react/index.cjs +21 -1
  27. package/dist/compat/react/index.cjs.map +1 -0
  28. package/dist/compat/react/index.d.cts +1 -2
  29. package/dist/compat/react/index.d.ts +1 -2
  30. package/dist/compat/react/index.js +3 -1
  31. package/dist/compat/react/index.js.map +1 -0
  32. package/dist/compat/solid/index.cjs +21 -1
  33. package/dist/compat/solid/index.cjs.map +1 -0
  34. package/dist/compat/solid/index.d.cts +1 -2
  35. package/dist/compat/solid/index.d.ts +1 -2
  36. package/dist/compat/solid/index.js +3 -1
  37. package/dist/compat/solid/index.js.map +1 -0
  38. package/dist/compat/svelte/index.cjs +21 -1
  39. package/dist/compat/svelte/index.cjs.map +1 -0
  40. package/dist/compat/svelte/index.d.cts +1 -2
  41. package/dist/compat/svelte/index.d.ts +1 -2
  42. package/dist/compat/svelte/index.js +3 -1
  43. package/dist/compat/svelte/index.js.map +1 -0
  44. package/dist/compat/vue/index.cjs +21 -1
  45. package/dist/compat/vue/index.cjs.map +1 -0
  46. package/dist/compat/vue/index.d.cts +1 -3
  47. package/dist/compat/vue/index.d.ts +1 -3
  48. package/dist/compat/vue/index.js +3 -1
  49. package/dist/compat/vue/index.js.map +1 -0
  50. package/dist/compat/zustand/index.cjs +21 -3
  51. package/dist/compat/zustand/index.cjs.map +1 -0
  52. package/dist/compat/zustand/index.d.cts +1 -6
  53. package/dist/compat/zustand/index.d.ts +1 -6
  54. package/dist/compat/zustand/index.js +3 -1
  55. package/dist/compat/zustand/index.js.map +1 -0
  56. package/dist/core/index.cjs +21 -1
  57. package/dist/core/index.cjs.map +1 -0
  58. package/dist/core/index.d.cts +1 -3
  59. package/dist/core/index.d.ts +1 -3
  60. package/dist/core/index.js +3 -1
  61. package/dist/core/index.js.map +1 -0
  62. package/dist/extra/browser.cjs +21 -1
  63. package/dist/extra/browser.cjs.map +1 -0
  64. package/dist/extra/browser.d.cts +1 -4
  65. package/dist/extra/browser.d.ts +1 -4
  66. package/dist/extra/browser.js +3 -1
  67. package/dist/extra/browser.js.map +1 -0
  68. package/dist/extra/index.cjs +20 -19
  69. package/dist/extra/index.cjs.map +1 -0
  70. package/dist/extra/index.d.cts +1 -17
  71. package/dist/extra/index.d.ts +1 -17
  72. package/dist/extra/index.js +3 -1
  73. package/dist/extra/index.js.map +1 -0
  74. package/dist/extra/node.cjs +21 -2
  75. package/dist/extra/node.cjs.map +1 -0
  76. package/dist/extra/node.d.cts +1 -187
  77. package/dist/extra/node.d.ts +1 -187
  78. package/dist/extra/node.js +3 -2
  79. package/dist/extra/node.js.map +1 -0
  80. package/dist/extra/operators.cjs +21 -1
  81. package/dist/extra/operators.cjs.map +1 -0
  82. package/dist/extra/operators.d.cts +1 -958
  83. package/dist/extra/operators.d.ts +1 -958
  84. package/dist/extra/operators.js +3 -1
  85. package/dist/extra/operators.js.map +1 -0
  86. package/dist/extra/reactive.cjs +21 -1
  87. package/dist/extra/reactive.cjs.map +1 -0
  88. package/dist/extra/reactive.d.cts +1 -353
  89. package/dist/extra/reactive.d.ts +1 -353
  90. package/dist/extra/reactive.js +3 -1
  91. package/dist/extra/reactive.js.map +1 -0
  92. package/dist/extra/render/index.cjs +21 -5
  93. package/dist/extra/render/index.cjs.map +1 -0
  94. package/dist/extra/render/index.d.cts +1 -183
  95. package/dist/extra/render/index.d.ts +1 -183
  96. package/dist/extra/render/index.js +3 -1
  97. package/dist/extra/render/index.js.map +1 -0
  98. package/dist/extra/sources.cjs +21 -3
  99. package/dist/extra/sources.cjs.map +1 -0
  100. package/dist/extra/sources.d.cts +1 -584
  101. package/dist/extra/sources.d.ts +1 -584
  102. package/dist/extra/sources.js +3 -1
  103. package/dist/extra/sources.js.map +1 -0
  104. package/dist/extra/storage-browser.cjs +21 -1
  105. package/dist/extra/storage-browser.cjs.map +1 -0
  106. package/dist/extra/storage-browser.d.cts +1 -37
  107. package/dist/extra/storage-browser.d.ts +1 -37
  108. package/dist/extra/storage-browser.js +3 -1
  109. package/dist/extra/storage-browser.js.map +1 -0
  110. package/dist/extra/storage-core.cjs +21 -1
  111. package/dist/extra/storage-core.cjs.map +1 -0
  112. package/dist/extra/storage-core.d.cts +1 -28
  113. package/dist/extra/storage-core.d.ts +1 -28
  114. package/dist/extra/storage-core.js +3 -1
  115. package/dist/extra/storage-core.js.map +1 -0
  116. package/dist/extra/storage-node.cjs +20 -0
  117. package/dist/extra/storage-node.cjs.map +1 -0
  118. package/dist/extra/storage-node.d.cts +1 -2
  119. package/dist/extra/storage-node.d.ts +1 -2
  120. package/dist/extra/storage-node.js +3 -0
  121. package/dist/extra/storage-node.js.map +1 -0
  122. package/dist/extra/storage-tiers-browser.cjs +21 -1
  123. package/dist/extra/storage-tiers-browser.cjs.map +1 -0
  124. package/dist/extra/storage-tiers-browser.d.cts +1 -120
  125. package/dist/extra/storage-tiers-browser.d.ts +1 -120
  126. package/dist/extra/storage-tiers-browser.js +3 -1
  127. package/dist/extra/storage-tiers-browser.js.map +1 -0
  128. package/dist/extra/storage-tiers-node.cjs +21 -1
  129. package/dist/extra/storage-tiers-node.cjs.map +1 -0
  130. package/dist/extra/storage-tiers-node.d.cts +1 -210
  131. package/dist/extra/storage-tiers-node.d.ts +1 -210
  132. package/dist/extra/storage-tiers-node.js +3 -1
  133. package/dist/extra/storage-tiers-node.js.map +1 -0
  134. package/dist/extra/storage-tiers.cjs +21 -1
  135. package/dist/extra/storage-tiers.cjs.map +1 -0
  136. package/dist/extra/storage-tiers.d.cts +1 -412
  137. package/dist/extra/storage-tiers.d.ts +1 -412
  138. package/dist/extra/storage-tiers.js +3 -1
  139. package/dist/extra/storage-tiers.js.map +1 -0
  140. package/dist/extra/storage-wal.cjs +21 -0
  141. package/dist/extra/storage-wal.cjs.map +1 -0
  142. package/dist/extra/storage-wal.d.cts +1 -0
  143. package/dist/extra/storage-wal.d.ts +1 -0
  144. package/dist/extra/storage-wal.js +3 -0
  145. package/dist/extra/storage-wal.js.map +1 -0
  146. package/dist/graph/index.cjs +21 -7
  147. package/dist/graph/index.cjs.map +1 -0
  148. package/dist/graph/index.d.cts +1 -7
  149. package/dist/graph/index.d.ts +1 -7
  150. package/dist/graph/index.js +3 -1
  151. package/dist/graph/index.js.map +1 -0
  152. package/dist/index.cjs +20 -227
  153. package/dist/index.cjs.map +1 -0
  154. package/dist/index.d.cts +45 -95
  155. package/dist/index.d.ts +45 -95
  156. package/dist/index.js +3 -1
  157. package/dist/index.js.map +1 -0
  158. package/dist/patterns/ai/browser.cjs +20 -7
  159. package/dist/patterns/ai/browser.cjs.map +1 -0
  160. package/dist/patterns/ai/browser.d.cts +1 -127
  161. package/dist/patterns/ai/browser.d.ts +1 -127
  162. package/dist/patterns/ai/browser.js +3 -3
  163. package/dist/patterns/ai/browser.js.map +1 -0
  164. package/dist/patterns/ai/index.cjs +20 -73
  165. package/dist/patterns/ai/index.cjs.map +1 -0
  166. package/dist/patterns/ai/index.d.cts +1 -20
  167. package/dist/patterns/ai/index.d.ts +1 -20
  168. package/dist/patterns/ai/index.js +3 -1
  169. package/dist/patterns/ai/index.js.map +1 -0
  170. package/dist/patterns/ai/node.cjs +21 -1
  171. package/dist/patterns/ai/node.cjs.map +1 -0
  172. package/dist/patterns/ai/node.d.cts +1 -59
  173. package/dist/patterns/ai/node.d.ts +1 -59
  174. package/dist/patterns/ai/node.js +3 -1
  175. package/dist/patterns/ai/node.js.map +1 -0
  176. package/dist/patterns/cqrs/index.cjs +21 -3
  177. package/dist/patterns/cqrs/index.cjs.map +1 -0
  178. package/dist/patterns/cqrs/index.d.cts +1 -8
  179. package/dist/patterns/cqrs/index.d.ts +1 -8
  180. package/dist/patterns/cqrs/index.js +3 -1
  181. package/dist/patterns/cqrs/index.js.map +1 -0
  182. package/dist/patterns/demo-shell/index.cjs +21 -5
  183. package/dist/patterns/demo-shell/index.cjs.map +1 -0
  184. package/dist/patterns/demo-shell/index.d.cts +1 -7
  185. package/dist/patterns/demo-shell/index.d.ts +1 -7
  186. package/dist/patterns/demo-shell/index.js +3 -1
  187. package/dist/patterns/demo-shell/index.js.map +1 -0
  188. package/dist/patterns/domain-templates/index.cjs +21 -3
  189. package/dist/patterns/domain-templates/index.cjs.map +1 -0
  190. package/dist/patterns/domain-templates/index.d.cts +1 -6
  191. package/dist/patterns/domain-templates/index.d.ts +1 -6
  192. package/dist/patterns/domain-templates/index.js +3 -1
  193. package/dist/patterns/domain-templates/index.js.map +1 -0
  194. package/dist/patterns/graphspec/index.cjs +21 -86
  195. package/dist/patterns/graphspec/index.cjs.map +1 -0
  196. package/dist/patterns/graphspec/index.d.cts +1 -8
  197. package/dist/patterns/graphspec/index.d.ts +1 -8
  198. package/dist/patterns/graphspec/index.js +3 -1
  199. package/dist/patterns/graphspec/index.js.map +1 -0
  200. package/dist/patterns/harness/index.cjs +21 -48
  201. package/dist/patterns/harness/index.cjs.map +1 -0
  202. package/dist/patterns/harness/index.d.cts +1 -13
  203. package/dist/patterns/harness/index.d.ts +1 -13
  204. package/dist/patterns/harness/index.js +3 -1
  205. package/dist/patterns/harness/index.js.map +1 -0
  206. package/dist/patterns/inspect/index.cjs +21 -3
  207. package/dist/patterns/inspect/index.cjs.map +1 -0
  208. package/dist/patterns/inspect/index.d.cts +1 -9
  209. package/dist/patterns/inspect/index.d.ts +1 -9
  210. package/dist/patterns/inspect/index.js +3 -1
  211. package/dist/patterns/inspect/index.js.map +1 -0
  212. package/dist/patterns/job-queue/index.cjs +21 -3
  213. package/dist/patterns/job-queue/index.cjs.map +1 -0
  214. package/dist/patterns/job-queue/index.d.cts +1 -9
  215. package/dist/patterns/job-queue/index.d.ts +1 -9
  216. package/dist/patterns/job-queue/index.js +3 -1
  217. package/dist/patterns/job-queue/index.js.map +1 -0
  218. package/dist/patterns/memory/index.cjs +21 -3
  219. package/dist/patterns/memory/index.cjs.map +1 -0
  220. package/dist/patterns/memory/index.d.cts +1 -8
  221. package/dist/patterns/memory/index.d.ts +1 -8
  222. package/dist/patterns/memory/index.js +3 -1
  223. package/dist/patterns/memory/index.js.map +1 -0
  224. package/dist/patterns/messaging/index.cjs +21 -3
  225. package/dist/patterns/messaging/index.cjs.map +1 -0
  226. package/dist/patterns/messaging/index.d.cts +1 -7
  227. package/dist/patterns/messaging/index.d.ts +1 -7
  228. package/dist/patterns/messaging/index.js +3 -1
  229. package/dist/patterns/messaging/index.js.map +1 -0
  230. package/dist/patterns/orchestration/index.cjs +21 -3
  231. package/dist/patterns/orchestration/index.cjs.map +1 -0
  232. package/dist/patterns/orchestration/index.d.cts +1 -8
  233. package/dist/patterns/orchestration/index.d.ts +1 -8
  234. package/dist/patterns/orchestration/index.js +3 -1
  235. package/dist/patterns/orchestration/index.js.map +1 -0
  236. package/dist/patterns/process/index.cjs +21 -3
  237. package/dist/patterns/process/index.cjs.map +1 -0
  238. package/dist/patterns/process/index.d.cts +1 -10
  239. package/dist/patterns/process/index.d.ts +1 -10
  240. package/dist/patterns/process/index.js +3 -1
  241. package/dist/patterns/process/index.js.map +1 -0
  242. package/dist/patterns/reactive-layout/index.cjs +21 -4
  243. package/dist/patterns/reactive-layout/index.cjs.map +1 -0
  244. package/dist/patterns/reactive-layout/index.d.cts +1 -7
  245. package/dist/patterns/reactive-layout/index.d.ts +1 -7
  246. package/dist/patterns/reactive-layout/index.js +3 -1
  247. package/dist/patterns/reactive-layout/index.js.map +1 -0
  248. package/dist/patterns/reduction/index.cjs +21 -3
  249. package/dist/patterns/reduction/index.cjs.map +1 -0
  250. package/dist/patterns/reduction/index.d.cts +1 -6
  251. package/dist/patterns/reduction/index.d.ts +1 -6
  252. package/dist/patterns/reduction/index.js +3 -1
  253. package/dist/patterns/reduction/index.js.map +1 -0
  254. package/dist/patterns/surface/index.cjs +21 -13
  255. package/dist/patterns/surface/index.cjs.map +1 -0
  256. package/dist/patterns/surface/index.d.cts +1 -9
  257. package/dist/patterns/surface/index.d.ts +1 -9
  258. package/dist/patterns/surface/index.js +3 -1
  259. package/dist/patterns/surface/index.js.map +1 -0
  260. package/dist/patterns/topology-view/index.cjs +21 -0
  261. package/dist/patterns/topology-view/index.cjs.map +1 -0
  262. package/dist/patterns/topology-view/index.d.cts +1 -0
  263. package/dist/patterns/topology-view/index.d.ts +1 -0
  264. package/dist/patterns/topology-view/index.js +3 -0
  265. package/dist/patterns/topology-view/index.js.map +1 -0
  266. package/dist/testing/index.cjs +21 -0
  267. package/dist/testing/index.cjs.map +1 -0
  268. package/dist/testing/index.d.cts +1 -0
  269. package/dist/testing/index.d.ts +1 -0
  270. package/dist/testing/index.js +3 -0
  271. package/dist/testing/index.js.map +1 -0
  272. package/package.json +608 -584
  273. package/dist/backoff-HPZMEZNF.js +0 -1
  274. package/dist/cascading-BglDkMdX.d.cts +0 -199
  275. package/dist/cascading-MFgxu7Yo.d.ts +0 -199
  276. package/dist/chunk-2T7U5EU6.js +0 -1
  277. package/dist/chunk-3G5U5QNE.js +0 -5
  278. package/dist/chunk-4VVTGLXJ.js +0 -1
  279. package/dist/chunk-5M4CCMMD.js +0 -45
  280. package/dist/chunk-5QDBSZBV.js +0 -1
  281. package/dist/chunk-5XJ6B66J.js +0 -1
  282. package/dist/chunk-6QZNQS5B.js +0 -1
  283. package/dist/chunk-6X7AFUJV.js +0 -9
  284. package/dist/chunk-7K6PWTDQ.js +0 -1
  285. package/dist/chunk-7LIAPXJB.js +0 -1
  286. package/dist/chunk-7WPU3UHQ.js +0 -1
  287. package/dist/chunk-A5WCQ5NO.js +0 -1
  288. package/dist/chunk-APPIWSGD.js +0 -84
  289. package/dist/chunk-BEZWM2SY.js +0 -1
  290. package/dist/chunk-C72GO4IZ.js +0 -1
  291. package/dist/chunk-CB676TKJ.js +0 -1
  292. package/dist/chunk-CE6TI2TL.js +0 -1
  293. package/dist/chunk-CE72X3WO.js +0 -1
  294. package/dist/chunk-CK2E7BTU.js +0 -1
  295. package/dist/chunk-CLVB32RD.js +0 -1
  296. package/dist/chunk-CRVT7D2P.js +0 -1
  297. package/dist/chunk-D5RFJOZ2.js +0 -1
  298. package/dist/chunk-D7GPHKFH.js +0 -1
  299. package/dist/chunk-DHRX7JX4.js +0 -2
  300. package/dist/chunk-ESMPEKEV.js +0 -1
  301. package/dist/chunk-F672GV32.js +0 -1
  302. package/dist/chunk-FZMYDOWV.js +0 -1
  303. package/dist/chunk-GHBWHMRZ.js +0 -1
  304. package/dist/chunk-GLERH466.js +0 -1
  305. package/dist/chunk-GPW2V3RE.js +0 -1
  306. package/dist/chunk-HIDYF36O.js +0 -1
  307. package/dist/chunk-HITNVN6B.js +0 -3
  308. package/dist/chunk-HY4DJBA7.js +0 -5
  309. package/dist/chunk-KZIEYVXN.js +0 -1
  310. package/dist/chunk-L6NSJVJZ.js +0 -1
  311. package/dist/chunk-N4MQX6JU.js +0 -18
  312. package/dist/chunk-N7FHEL4D.js +0 -1
  313. package/dist/chunk-NTEURFZH.js +0 -1
  314. package/dist/chunk-OIVP6KFV.js +0 -1
  315. package/dist/chunk-OPHBU3LG.js +0 -1
  316. package/dist/chunk-OYQOZP2F.js +0 -5
  317. package/dist/chunk-PTZK576G.js +0 -1
  318. package/dist/chunk-QYADASLV.js +0 -1
  319. package/dist/chunk-ST7UXLWR.js +0 -1
  320. package/dist/chunk-SVY7VUYU.js +0 -1
  321. package/dist/chunk-TK3NWWD4.js +0 -1
  322. package/dist/chunk-TSOYJ743.js +0 -1
  323. package/dist/chunk-UNGSTR4X.js +0 -61
  324. package/dist/chunk-VIMF6LGM.js +0 -1
  325. package/dist/chunk-VJLMUKOI.js +0 -1
  326. package/dist/chunk-VN6RDSK2.js +0 -1
  327. package/dist/chunk-VV4N5P64.js +0 -1
  328. package/dist/chunk-W3I423PS.js +0 -1
  329. package/dist/chunk-WJR24TAG.js +0 -1
  330. package/dist/chunk-XTGKMHSW.js +0 -1
  331. package/dist/chunk-YBB7ZGTY.js +0 -1
  332. package/dist/chunk-Z4NPUARF.js +0 -1
  333. package/dist/chunk-ZGNQRPDT.js +0 -1
  334. package/dist/chunk-ZKPSFFKU.js +0 -1
  335. package/dist/chunk-ZLV5SQSX.js +0 -1
  336. package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
  337. package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
  338. package/dist/decay-BvOWTZ00.d.ts +0 -112
  339. package/dist/decay-CFlLvXUT.d.cts +0 -112
  340. package/dist/fallback-74oxi34l.d.cts +0 -250
  341. package/dist/fallback-DUyyBTBK.d.ts +0 -250
  342. package/dist/graph-CWvEUQAq.d.cts +0 -1861
  343. package/dist/graph-D9LFnda9.d.ts +0 -1861
  344. package/dist/index-5k1T6jl0.d.cts +0 -121
  345. package/dist/index-9770hRuQ.d.cts +0 -779
  346. package/dist/index-B-_tFaqV.d.cts +0 -468
  347. package/dist/index-B17QddL1.d.cts +0 -374
  348. package/dist/index-B1F8Enjf.d.ts +0 -704
  349. package/dist/index-B5S8ULbU.d.ts +0 -515
  350. package/dist/index-B8YnZpIR.d.ts +0 -102
  351. package/dist/index-BHskSB8v.d.ts +0 -3413
  352. package/dist/index-BIYAkbAi.d.cts +0 -26
  353. package/dist/index-BQSKmbuG.d.cts +0 -127
  354. package/dist/index-BaQaY_IQ.d.cts +0 -231
  355. package/dist/index-BmZXHqkE.d.ts +0 -36
  356. package/dist/index-BoJ5JHxI.d.ts +0 -557
  357. package/dist/index-BocU7pqs.d.ts +0 -779
  358. package/dist/index-BrPrLl4e.d.cts +0 -86
  359. package/dist/index-BxNs2HB9.d.cts +0 -1858
  360. package/dist/index-Byu-OpX_.d.ts +0 -113
  361. package/dist/index-C1T3d7V-.d.cts +0 -704
  362. package/dist/index-C5ri2Axc.d.cts +0 -301
  363. package/dist/index-C5stwKcw.d.cts +0 -44
  364. package/dist/index-C9l6OEBL.d.ts +0 -26
  365. package/dist/index-CBBLl_rc.d.ts +0 -127
  366. package/dist/index-CBGUK09R.d.ts +0 -754
  367. package/dist/index-CC-AvFTy.d.cts +0 -557
  368. package/dist/index-CJF1URuX.d.ts +0 -121
  369. package/dist/index-CK29LV56.d.cts +0 -34
  370. package/dist/index-CMh5Rz1y.d.ts +0 -385
  371. package/dist/index-CPQlGA29.d.ts +0 -34
  372. package/dist/index-CR8QpwX8.d.ts +0 -2680
  373. package/dist/index-CS0LTlB8.d.cts +0 -385
  374. package/dist/index-CSOmP7xT.d.cts +0 -291
  375. package/dist/index-CYq8vAyV.d.ts +0 -291
  376. package/dist/index-CZ3r5Rxp.d.ts +0 -374
  377. package/dist/index-CasX6Pfq.d.cts +0 -358
  378. package/dist/index-CdAlHFEt.d.ts +0 -44
  379. package/dist/index-CdTelp1M.d.ts +0 -202
  380. package/dist/index-CeFiHtAg.d.ts +0 -468
  381. package/dist/index-Cj3WohTd.d.cts +0 -202
  382. package/dist/index-Climxqsu.d.cts +0 -754
  383. package/dist/index-Co7uli2l.d.cts +0 -3413
  384. package/dist/index-CviRnE4K.d.ts +0 -45
  385. package/dist/index-Cwv0KWcU.d.cts +0 -102
  386. package/dist/index-CzLVrjxn.d.ts +0 -231
  387. package/dist/index-D0aciIex.d.cts +0 -209
  388. package/dist/index-DHen9Klo.d.ts +0 -1858
  389. package/dist/index-DV_1YuVk.d.cts +0 -221
  390. package/dist/index-Dc4AYqrJ.d.cts +0 -515
  391. package/dist/index-Dgl1HpPn.d.ts +0 -86
  392. package/dist/index-DisjX8a-.d.ts +0 -221
  393. package/dist/index-UPSiS-X7.d.cts +0 -2680
  394. package/dist/index-Yq60JP3s.d.ts +0 -209
  395. package/dist/index-ZVQhLa2i.d.cts +0 -37
  396. package/dist/index-_6ODbuOu.d.cts +0 -45
  397. package/dist/index-hcDJ8PSI.d.cts +0 -36
  398. package/dist/index-nozs3fFC.d.ts +0 -301
  399. package/dist/index-p09KSrTN.d.ts +0 -358
  400. package/dist/index-sqkqlb1p.d.ts +0 -37
  401. package/dist/index-tRCxuAXF.d.cts +0 -113
  402. package/dist/node-kK3CvTrR.d.cts +0 -1347
  403. package/dist/node-kK3CvTrR.d.ts +0 -1347
  404. package/dist/observable-DWjNfLvC.d.ts +0 -36
  405. package/dist/observable-e3eiPPFy.d.cts +0 -36
  406. package/dist/pipeline-graph-CIKhynsF.d.cts +0 -142
  407. package/dist/pipeline-graph-Sgj0gCwn.d.ts +0 -142
  408. package/dist/reactive-layout-DOTs9P3X.d.ts +0 -183
  409. package/dist/reactive-layout-DgctbqZo.d.cts +0 -183
  410. package/dist/reactive-log-BKALbfal.d.ts +0 -223
  411. package/dist/reactive-log-DIGdYqQ6.d.cts +0 -223
  412. package/dist/reactive-map-CEFGp8TK.d.cts +0 -296
  413. package/dist/reactive-map-DS_SIAxv.d.ts +0 -296
  414. package/dist/resilience-6LYQJAC5.js +0 -1
  415. package/dist/sugar-DQjFmVqb.d.cts +0 -399
  416. package/dist/sugar-fhLIE7TT.d.ts +0 -399
  417. package/dist/topology-tree-Bcz27hpF.d.cts +0 -25
  418. package/dist/topology-tree-xvaD0fOX.d.ts +0 -25
  419. package/dist/types-C0_yquda.d.cts +0 -442
  420. package/dist/types-CWFysE9E.d.ts +0 -442
@@ -1 +1,21 @@
1
- "use strict";var se=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var ut=Object.getOwnPropertyNames;var dt=Object.prototype.hasOwnProperty;var R=(o,e)=>()=>(o&&(e=o(o=0)),e);var lt=(o,e)=>{for(var n in e)se(o,n,{get:e[n],enumerable:!0})},ct=(o,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of ut(e))!dt.call(o,t)&&t!==n&&se(o,t,{get:()=>e[t],enumerable:!(r=at(e,t))||r.enumerable});return o};var ft=o=>ct(se({},"__esModule",{value:!0}),o);function q(){return Math.trunc(performance.now()*1e6)}function ve(){return Date.now()*1e6}var ie=R(()=>{"use strict"});var C,m,D,g,F,L,W,I,c,p,V,ae,pt,ue,ht,mt,de,we,Ne,xe,le,B=R(()=>{"use strict";C=Symbol.for("graphrefly/START"),m=Symbol.for("graphrefly/DATA"),D=Symbol.for("graphrefly/DIRTY"),g=Symbol.for("graphrefly/RESOLVED"),F=Symbol.for("graphrefly/INVALIDATE"),L=Symbol.for("graphrefly/PAUSE"),W=Symbol.for("graphrefly/RESUME"),I=Symbol.for("graphrefly/TEARDOWN"),c=Symbol.for("graphrefly/COMPLETE"),p=Symbol.for("graphrefly/ERROR"),V=Object.freeze([D]),ae=Object.freeze([g]),pt=Object.freeze([F]),ue=Object.freeze([C]),ht=Object.freeze([c]),mt=Object.freeze([I]),de=Object.freeze([V]),we=Object.freeze([ae]),Ne=Object.freeze([pt]),xe=Object.freeze([ht]),le=Object.freeze([mt])});var G,ke=R(()=>{"use strict";G=class extends Error{actor;action;nodeName;constructor(e,n){super(n??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function Ee(o){o.registerCodec(gt)}var gt,Oe=R(()=>{"use strict";gt={name:"json",version:1,contentType:"application/json",encode(o){let e=JSON.stringify(o);return new TextEncoder().encode(e)},decode(o,e){let n=new TextDecoder().decode(o);return JSON.parse(n)}}});function Y(o){if(o==null)return bt;let{type:e,id:n,...r}=o;return{type:e??"system",id:n??"",...r}}var bt,Ae=R(()=>{"use strict";bt={type:"system",id:""}});function Se(){return ce>0||Tt}function Ce(){return ce>0}function Ie(o){ce>0?yt.push(o):o()}function J(o,e,n){if(e.length===0)return;if(e.length===1){let d=n(e[0][0]);if(d<3||!Se()){o(e);return}(d>=5?Me:d===4?De:Re).push(()=>o(e));return}let r=e.length,t=r,s=r,a=r,i=0;for(;i<r&&n(e[i][0])<3;)i++;for(t=i;i<r&&n(e[i][0])===3;)i++;for(s=i;i<r&&n(e[i][0])===4;)i++;a=i;let u=Se();if(t>0){let d=e.slice(0,t);o(d)}if(s>t){let d=e.slice(t,s);u?Re.push(()=>o(d)):o(d)}if(a>s){let d=e.slice(s,a);u?De.push(()=>o(d)):o(d)}if(r>a){let d=e.slice(a,r);u?Me.push(()=>o(d)):o(d)}}var ce,Tt,Re,De,Me,yt,Fe=R(()=>{"use strict";ce=0,Tt=!1,Re=[],De=[],Me=[],yt=[]});function Le(o){o.registerMessageType(C,{tier:0,wireCrossing:!1}),o.registerMessageType(D,{tier:1,wireCrossing:!1}),o.registerMessageType(F,{tier:1,wireCrossing:!1,metaPassthrough:!1}),o.registerMessageType(L,{tier:2,wireCrossing:!1}),o.registerMessageType(W,{tier:2,wireCrossing:!1}),o.registerMessageType(m,{tier:3,wireCrossing:!0}),o.registerMessageType(g,{tier:3,wireCrossing:!0}),o.registerMessageType(c,{tier:4,wireCrossing:!0,metaPassthrough:!1}),o.registerMessageType(p,{tier:4,wireCrossing:!0,metaPassthrough:!1}),o.registerMessageType(I,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var X,Ve=R(()=>{"use strict";B();X=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_rigorRecorder;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=n=>{let r=this._messageTypes.get(n);return r!=null?r.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}get rigorRecorder(){return this._rigorRecorder}set rigorRecorder(e){this._rigorRecorder=e}registerMessageType(e,n){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:n.tier,wireCrossing:n.wireCrossing??n.tier>=3,metaPassthrough:n.metaPassthrough??!0}),this}messageTier(e){let n=this._messageTypes.get(e);return n!=null?n.tier:1}isWireCrossing(e){let n=this._messageTypes.get(e);return n!=null?n.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let n=this._messageTypes.get(e);return n!=null?n.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});function fe(o){if(o===void 0)return null;if(typeof o=="number"){if(!Number.isFinite(o))throw new TypeError(`Cannot hash non-finite number: ${o}`);if(Number.isInteger(o)&&!Number.isSafeInteger(o))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${o}. Cross-language cid parity is not guaranteed for unsafe integers.`);return o}if(typeof o=="string"||typeof o=="boolean"||o===null)return o;if(Array.isArray(o))return o.map(fe);if(typeof o=="object"&&o!==null){let e={};for(let n of Object.keys(o).sort())e[n]=fe(o[n]);return e}return null}function wt(o){let e=vt.encode(o),n=e.length,r=n*8,t=n+9+63&-64,s=new Uint8Array(t);s.set(e),s[n]=128;let a=new DataView(s.buffer);a.setUint32(t-4,r>>>0,!1),a.setUint32(t-8,Math.floor(r/4294967296)>>>0,!1);let i=1779033703,u=3144134277,d=1013904242,l=2773480762,f=1359893119,y=2600822924,T=528734635,w=1541459225,O=new Uint32Array(64),v=(A,x)=>A>>>x|A<<32-x;for(let A=0;A<t;A+=64){for(let k=0;k<16;k++)O[k]=a.getUint32(A+k*4,!1);for(let k=16;k<64;k++){let U=O[k-15],H=O[k-2],K=v(U,7)^v(U,18)^U>>>3,oe=v(H,17)^v(H,19)^H>>>10;O[k]=O[k-16]+K+O[k-7]+oe>>>0}let x=i,M=u,P=d,ne=l,S=f,z=y,$=T,re=w;for(let k=0;k<64;k++){let U=v(S,6)^v(S,11)^v(S,25),H=S&z^~S&$,K=re+U+H+_t[k]+O[k]>>>0,oe=v(x,2)^v(x,13)^v(x,22),st=x&M^x&P^M&P,it=oe+st>>>0;re=$,$=z,z=S,S=ne+K>>>0,ne=P,P=M,M=x,x=K+it>>>0}i=i+x>>>0,u=u+M>>>0,d=d+P>>>0,l=l+ne>>>0,f=f+S>>>0,y=y+z>>>0,T=T+$>>>0,w=w+re>>>0}let N=A=>A.toString(16).padStart(8,"0");return N(i)+N(u)+N(d)+N(l)+N(f)+N(y)+N(T)+N(w)}function pe(o){let e=fe(o??null),n=JSON.stringify(e);return wt(n).slice(0,16)}function Nt(){let o=globalThis.crypto;if(o?.randomUUID)return o.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),n=e()+e()+e()+e();return`${n.slice(0,8)}-${n.slice(8,12)}-4${n.slice(13,16)}-${(parseInt(n.slice(16,17),16)&3|8).toString(16)}${n.slice(17,20)}-${n.slice(20,32)}`}function he(o,e,n){let r=n?.id??Nt();if(o===0)return{id:r,version:0};let s=(n?.hash??pe)(e);return{id:r,version:0,cid:s,prev:null}}function Ge(o,e,n){o.version+=1,"cid"in o&&(o.prev=o.cid,o.cid=n(e))}var _t,vt,Pe=R(()=>{"use strict";_t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),vt=new TextEncoder});function We(o){return{node:o,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function me(o){o.prevData=void 0,o.dirty=!1,o.involvedThisWave=!1,o.dataBatch.length=0,o.terminal=void 0}function Z(o){return o.length===0?o:typeof o[0]=="symbol"?[o]:o}function _(o,e,n){let r=Be(o)?o:[],t=typeof o=="function"?o:typeof e=="function"?e:void 0,s={};return Be(o)?s=(ge(e)?e:n)??{}:ge(o)?s=o:s=(ge(e)?e:n)??{},new Q(r,t,s)}var Ue,He,xt,kt,be,Q,Be,ge,Te=R(()=>{"use strict";Oe();Ae();Fe();ie();Ve();ke();B();Pe();Ue=()=>{},He=100;xt=(o,e,n,r)=>{n.direction==="down-in"&&o._onDepMessage(n.depIndex,e)},kt=(o,e,n,r)=>{let t=o;if(t._status==="completed"||t._status==="errored")return;let s=t._cached,a=s===void 0?[ue]:[ue,[m,s]];t._status==="dirty"&&a.push(V),J(e,a,t._config.tierOf)},be=new X({onMessage:xt,onSubscribe:kt});Le(be);Ee(be);Q=class o{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_partial;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,n,r){this._config=r.config??be,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=n,this._partial=r.partial??!1,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&n==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??pe;let t=r.versioning??this._config.defaultVersioning;this._versioningLevel=t,this._versioning=t!=null?he(t,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(We);let s={};for(let[i,u]of Object.entries(r.meta??{})){let d={initial:u,name:`${r.name??"node"}:meta:${i}`,describeKind:"state",config:this._config};r.guard!=null&&(d.guard=r.guard),r.resubscribable===!0&&(d.resubscribable=!0),s[i]=new o([],void 0,d)}Object.freeze(s),this.meta=s,this._hasMeta=Object.keys(s).length>0;let a=this;this._actions={emit(i){a._emit([[m,i]])},down(i){a._emit(Z(i))},up(i){a._emitUp(Z(i))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,n){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let r=this._versioningLevel;if(r!=null&&e<=r)return;let t=n?.hash??this._hashFn;t!==this._hashFn&&(this._hashFn=t);let s=this._cached===void 0?void 0:this._cached,a=this._versioning,i=a?.id??n?.id,u=a?.version??0,d=he(e,s,{id:i,hash:t});d.version=u,this._versioning=d,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let n=Y(e);if(this._guard!=null&&!this._guard(n,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(n,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let n=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!n&&!r)return;let t=Y(e?.actor),s=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(t,s))throw new G({actor:t,action:s,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(t,s))throw new G({actor:t,action:s,nodeName:this.name})}this._lastMutation={actor:t,timestamp_ns:ve()}}down(e,n){let r=Z(e);r.length!==0&&(this._checkGuard(n),this._emit(r))}emit(e,n){this._checkGuard(n),this._emit([[m,e]])}up(e,n){if(this._deps.length===0)return;let r=Z(e);if(r.length===0)return;this._checkGuard(n);let t=n??{internal:!0};this._validateUpTiers(r);for(let s of this._deps)s.node.up?.(r,t)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let n of this._deps)n.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let n=this._config.tierOf;for(let r of e){let t=n(r[0]);if(t===3||t===4)throw new Error(`Node "${this.name}": tier-${t} messages cannot flow up \u2014 DATA/RESOLVED/COMPLETE/ERROR are downstream-only. Use \`down(...)\` for value delivery; \`up(...)\` is for control signals (DIRTY, INVALIDATE, PAUSE, RESUME, TEARDOWN).`)}}subscribe(e,n){if(n!=null&&this._guard!=null){let u=Y(n);if(!this._guard(u,"observe"))throw new G({actor:u,action:"observe",nodeName:this.name})}let t=this._isTerminal&&this._resubscribable;if(t){this._cached=void 0,this._status="sentinel",this._store={},this._hasCalledFnOnce=!1,this._waveHasNewData=!1,this._hasNewTerminal=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._isExecutingFn=!1,this._rerunDepth=0,this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null;for(let u of this._deps)me(u);if(this._partial===!1){for(let u of this._deps)if(u.prevData!==void 0||u.dataBatch.length!==0||u.terminal!==void 0||u.dirty)throw new Error(`resubscribable-reset invariant: DepRecord not fully reset for node ${this._optsName??"(anonymous)"}`)}}this._sinkCount+=1;let s;try{s=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:t},this._actions)}catch(u){throw this._sinkCount-=1,u}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let a=this._isTerminal;if(this._sinkCount===1&&!a)try{this._activate()}catch(u){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof s=="function")try{s()}catch{}throw u}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let i=!1;return()=>{i||(i=!0,this._sinkCount-=1,this._removeSink(e),typeof s=="function"&&s(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[n]=this._sinks;this._sinks=n}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,n=0;try{for(let r=0;r<e;r++){let t=r,s=this._deps[r];s.unsub=Ue,s.unsub=s.node.subscribe(a=>{if(s.unsub===null)return;let i=this._config.tierOf,u=!1;for(let d of a)i(d[0])>=3&&(u=!0),this._config.onMessage(this,d,{direction:"down-in",depIndex:t},this._actions);u&&this._maybeRunFnOnSettlement()}),n++}}catch(r){this._deps[n].unsub=null;for(let t=0;t<n;t++){let s=this._deps[t];if(s.unsub!=null){let a=s.unsub;s.unsub=null;try{a()}catch{}me(s)}}throw this._dirtyDepCount=0,r}}_addDep(e){for(let t=0;t<this._deps.length;t++)if(this._deps[t].node===e)return t;let n=this._deps.length,r=We(e);if(this._deps.push(r),this._sinks==null)return n;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(de),r.unsub=Ue;try{r.unsub=e.subscribe(t=>{if(r.unsub===null)return;let s=this._config.tierOf,a=!1;for(let i of t)s(i[0])>=3&&(a=!0),this._config.onMessage(this,i,{direction:"down-in",depIndex:n},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(t){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,t}return n}_deactivate(e=!1){let n=this._cleanup;if(this._cleanup=void 0,typeof n=="function")try{n()}catch(r){this._emit([[p,this._wrapFnError("cleanup threw",r)]])}else if(n!=null&&typeof n=="object"){let r=n.deactivate;if(typeof r=="function")try{r()}catch(t){this._emit([[p,this._wrapFnError("cleanup.deactivate threw",t)]])}}for(let r of this._deps){if(r.unsub!=null){let t=r.unsub;r.unsub=null;try{t()}catch{}}me(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,n){let r=this._deps[e],t=n[0];if(this._inspectorHooks!=null){let s={kind:"dep_message",depIndex:e,message:n};for(let a of this._inspectorHooks)a(s)}if(t!==C){if(t===D){this._depDirtied(r);return}if(t===F){if(this._depInvalidated(r),this._cached===void 0)return;this._emit(Ne);return}if(t===L||t===W){this._emit([n]);return}if(t===I){this._emit(le);return}if(t===m)this._depSettledAsData(r,n[1]);else if(t===g)this._depSettledAsResolved(r);else if(t===c)this._depSettledAsTerminal(r,!0);else if(t===p)this._depSettledAsTerminal(r,n[1]);else{this._emit([n]);return}if(!this._fn){(t===m||t===g)&&this._emit([n]),(t===c||t===p)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(de))}_depSettledAsData(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(n),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=n,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(!this._partial&&!this._hasCalledFnOnce)for(let e=0;e<this._deps.length;e++){let n=this._deps[e];if(n.dataBatch.length===0&&n.prevData===void 0&&n.terminal===void 0){this._maybeAutoTerminalAfterWave();return}}if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(we),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(n=>n.terminal!==void 0&&n.terminal!==!0);if(e!=null){this._autoError&&this._emit([[p,e.terminal]]);return}this._autoComplete&&this._deps.every(n=>n.terminal!==void 0)&&this._emit(xe)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(a){this._emit([[p,this._wrapFnError("cleanup threw",a)]]);return}}else if(e!=null&&typeof e=="object"){let a=e.beforeRun;if(typeof a=="function"){e.beforeRun=void 0;try{a()}catch(i){this._emit([[p,this._wrapFnError("cleanup.beforeRun threw",i)]]);return}}}let n=this._deps.map(a=>a.involvedThisWave?a.dataBatch.length>0?[...a.dataBatch]:[]:void 0),r=this._deps.map(a=>a.prevData);for(let a=0;a<this._deps.length;a++){let i=n[a];i!=null&&i.length>0&&(this._deps[a].prevData=i[i.length-1])}let t=this._deps.map(a=>a.terminal),s={prevData:r,terminalDeps:t,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let a={kind:"run",batchData:n,prevData:r};for(let i of this._inspectorHooks)i(a)}this._isExecutingFn=!0;try{let a=this._fn(n,this._actions,s);if(typeof a=="function")this._cleanup=a;else if(a!=null&&typeof a=="object"){let i=a;(typeof i.beforeRun=="function"||typeof i.deactivate=="function"||typeof i.invalidate=="function")&&(this._cleanup=a)}}catch(a){this._emit([[p,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>He?(this._rerunDepth=0,this._emit([[p,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${He} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,n){let r=n instanceof Error?n.message:String(n);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:n})}_frameBatch(e){let n=this._config.tierOf;if(e.length===1)return n(e[0][0])===3&&this._status!=="dirty"?[V,e[0]]:e;let r=!0,t=!1,s=!1,a=-1;for(let u of e){let d=n(u[0]);d<a&&(r=!1),d===3&&(t=!0),u[0]===D&&(s=!0),a=d}let i=e;if(!r){let u=e.map((d,l)=>({m:d,i:l,tier:n(d[0])}));u.sort((d,l)=>d.tier-l.tier||d.i-l.i),i=u.map(d=>d.m)}if(t&&!s&&this._status!=="dirty"){let u=0;for(;u<i.length&&n(i[u][0])===0;)u++;return u===0?[V,...i]:[...i.slice(0,u),V,...i.slice(u)]}return i}_emit(e){if(e.length===0)return;for(let i=0;i<e.length;i++){let u=e[i];if(u[0]===p&&u[1]===void 0)throw new TypeError('[ERROR, payload] requires a non-undefined payload (spec \xA71.2). Pass an Error object or domain tag instead \u2014 e.g. node.down([[ERROR, new Error("reason")]])')}let n=e;if(this._isTerminal&&!this._resubscribable){let i=e.filter(u=>u[0]===I||u[0]===F);if(i.length===0)return;n=i}n=this._frameBatch(n);let t=null;for(let i=0;i<n.length;i++){let u=n[i],d=u[0];if(d!==L&&d!==W){t?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${d===L?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let l=!0;if(this._pausable!==!1){let f=u[1];if(d===L)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(f),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(f))l=!1;else if(this._pauseLocks.delete(f),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let y=this._pauseBuffer;this._pauseBuffer=[],this._emit(y)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}l?t?.push(u):t==null&&(t=n.slice(0,i))}if(t!=null){if(t.length===0)return;n=t}if(this._hasMeta&&n.some(i=>i[0]===I))for(let i of Object.keys(this.meta))try{this.meta[i]._emit(le)}catch{}let{finalMessages:s,equalsError:a}=this._updateState(n);if(s.length>0&&this._config.inspectorEnabled){let i=this._config.globalInspector;if(i!=null)try{i({kind:"emit",node:this,messages:s})}catch{}}if(s.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let i=this._config.tierOf,u=[];for(let d of s)i(d[0])===3?this._pauseBuffer.push(d):u.push(d);u.length>0&&this._dispatchOrAccumulate(u)}else this._dispatchOrAccumulate(s);a!=null&&this._emit([[p,a]])}_updateState(e){let n=this._config.tierOf,r,t,s=-1,a=0;for(let l of e)n(l[0])===3&&a++;let i=a<=1,u=-1;if(this._versioning!=null&&a>1){for(let l=e.length-1;l>=0;l--)if(e[l][0]===m){u=l;break}}for(let l=0;l<e.length;l++){let f=e[l],y=f[0];if(y===m){if(f.length>=2){let T=!1;if(i&&this._cached!==void 0)try{T=this._equals(this._cached,f[1])}catch(w){t=this._wrapFnError("equals threw",w),s=l;break}if(T){r==null&&(r=e.slice(0,l)),r.push(ae),this._status="resolved";continue}this._cached=f[1],this._versioning!=null&&(u<0||l===u)&&Ge(this._versioning,f[1],this._hashFn)}this._status="settled",r?.push(f)}else if(r?.push(f),y===D)this._status="dirty";else if(y===g)this._status="resolved";else if(y===c){this._status="completed";{let T=this._config.rigorRecorder;if(T!=null)try{T.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(y===p){this._status="errored";{let T=this._config.rigorRecorder;if(T!=null)try{T.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(y===F){if(this._cached!==void 0){let w=this._config.rigorRecorder;if(w!=null)try{w.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let T=this._cleanup;if(typeof T=="function"){this._cleanup=void 0;try{T()}catch{}}else if(T!=null&&typeof T=="object"){let w=T.invalidate;if(typeof w=="function")try{w()}catch{}}}else y===I&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let d=s>=0?r??e.slice(0,s):r??e;return t!=null?{finalMessages:d,equalsError:t}:{finalMessages:d}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let n=[...this._sinks];for(let r of n)r(e)};_dispatchOrAccumulate(e){if(Ce()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Ie(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}J(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let n=this._frameBatch(e);J(this._deliverToSinks,n,this._config.tierOf)}},Be=o=>Array.isArray(o),ge=o=>typeof o=="object"&&o!=null&&!Array.isArray(o)});function E(o,e){let n={factory:o};return e!==void 0&&(n.factoryArgs=e),n}var je=R(()=>{"use strict"});function b(o,e){return _((r,t,s)=>o(t,s)??void 0,{describeKind:"producer",...e})}function ze(o,e,n){return _(o,(t,s,a)=>{let i=t.map((u,d)=>u!=null&&u.length>0?u.at(-1):a.prevData[d]);s.emit(e(i,a))},{describeKind:"derived",...n})}var ye=R(()=>{"use strict";Te()});function _e(o){return{describeKind:"producer",...o}}function $e(o,e){return b(n=>{let r=!1;try{for(let t of o){if(r)return;n.emit(t)}r||n.down([[c]])}catch(t){r||n.down([[p,t]])}return()=>{r=!0}},_e(e))}function Et(o){return o!=null&&typeof o.then=="function"}function Ot(o,e){let{signal:n,...r}=e??{};return b(t=>{let s=!1,a=()=>{s||(s=!0,t.down([[p,n.reason]]))};if(n?.aborted){a();return}return n?.addEventListener("abort",a,{once:!0}),Promise.resolve(o).then(i=>{s||(s=!0,n?.removeEventListener("abort",a),t.emit(i),t.down([[c]]))},i=>{s||(s=!0,n?.removeEventListener("abort",a),t.down([[p,i]]))}),()=>{s=!0,n?.removeEventListener("abort",a)}},_e(r))}function At(o,e){let{signal:n,...r}=e??{};return b(t=>{let s=new AbortController,a=()=>s.abort(n?.reason);n?.aborted?s.abort(n.reason):n?.addEventListener("abort",a,{once:!0});let i=n??s.signal,u=!1,d=o[Symbol.asyncIterator](),l=()=>{u||i.aborted||Promise.resolve(d.next()).then(f=>{if(!(u||i.aborted)){if(f.done){t.down([[c]]);return}t.emit(f.value),l()}},f=>{!u&&!i.aborted&&t.down([[p,f]])})};return l(),()=>{u=!0,n?.removeEventListener("abort",a),s.abort(),Promise.resolve(d.return?.()).catch(()=>{})}},_e(r))}function Rt(o){return o!=null&&typeof o=="object"&&"cache"in o&&typeof o.subscribe=="function"}function j(o,e){if(Rt(o))return o;if(Et(o))return Ot(o,e);if(o!=null){let n=o;if(typeof n[Symbol.asyncIterator]=="function")return At(o,e);if(typeof n[Symbol.iterator]=="function")return $e(o,e)}return Dt(o)}function Dt(...o){return $e(o,void 0)}var Ke=R(()=>{"use strict";B();ye()});var qe=R(()=>{"use strict";Ke()});function h(o){return{describeKind:"derived",...o}}function Ye(o){return{describeKind:"derived",partial:!0,...o}}function St(o,e,n){return _([o],(r,t)=>{let s=r[0];if(s==null||s.length===0){t.down([[g]]);return}for(let a of s)t.emit(e(a))},{...h(n),meta:{...E("map"),...n?.meta??{}}})}function Je(o,e,n){return _([o],(r,t)=>{let s=r[0];if(s==null||s.length===0){t.down([[g]]);return}let a=!1;for(let i of s)e(i)&&(t.emit(i),a=!0);a||t.down([[g]])},{...h(n),meta:{...E("filter"),...n?.meta??{}}})}function Ct(o,e,n,r){return _([o],(t,s,a)=>{"acc"in a.store||(a.store.acc=n);let i=t[0];if(i==null||i.length===0){s.down([[g]]);return}for(let u of i)a.store.acc=e(a.store.acc,u),s.emit(a.store.acc)},{...h(r),initial:n,resetOnTeardown:!0,meta:{...E("scan",{initial:n}),...r?.meta??{}}})}function It(o,e,n,r){return _([o],(t,s,a)=>{if("acc"in a.store||(a.store.acc=n),a.terminalDeps[0]===!0){s.emit(a.store.acc),s.down([[c]]);return}let i=t[0];if(i==null||i.length===0){s.down([[g]]);return}for(let u of i)a.store.acc=e(a.store.acc,u)},{...h(r),completeWhenDepsComplete:!1,meta:{...E("reduce",{initial:n}),...r?.meta??{}}})}function ee(o,e,n){return e<=0?_([o],(r,t,s)=>{s.store.completed||(s.store.completed=!0,t.down([[c]]))},{...h(n),completeWhenDepsComplete:!1,meta:{...E("take",{count:e}),...n?.meta??{}}}):_([o],(r,t,s)=>{if("taken"in s.store||(s.store.taken=0),s.store.done){t.down([[g]]);return}if(s.terminalDeps[0]===!0){s.store.done=!0,t.down([[c]]);return}let a=r[0];if(a==null||a.length===0){t.down([[g]]);return}for(let i of a)if(s.store.taken++,t.emit(i),s.store.taken>=e){s.store.done=!0,t.down([[c]]);return}},{...h(n),completeWhenDepsComplete:!1,meta:{...E("take",{count:e}),...n?.meta??{}}})}function Xe(o,e,n){return _([o],(r,t,s)=>{"skipped"in s.store||(s.store.skipped=0);let a=r[0];if(a==null||a.length===0){t.down([[g]]);return}let i=!1;for(let u of a)s.store.skipped++,s.store.skipped<=e||(t.emit(u),i=!0);i||t.down([[g]])},h(n))}function Ft(o,e,n){return _([o],(r,t,s)=>{if(s.store.done){t.down([[g]]);return}let a=r[0];if(a==null||a.length===0){t.down([[g]]);return}for(let i of a){if(!e(i)){s.store.done=!0,t.down([[c]]);return}t.emit(i)}},{...h(n),completeWhenDepsComplete:!1})}function Lt(o,e,n){let r=n?.predicate??(a=>a[0]===m),{predicate:t,...s}=n??{};return b(a=>{let i=!1,u=o.subscribe(l=>{if(!i)for(let f of l){if(i)return;f[0]===m?a.emit(f[1]):(f[0]===c||f[0]===p)&&(i=!0,a.down([f]))}}),d=e.subscribe(l=>{if(!i)for(let f of l){if(i)return;if(r(f)){i=!0,a.down([[c]]);return}}});return()=>{u(),d()}},h(s))}function Vt(o,e){return ee(o,1,e)}function Gt(o,e){let{defaultValue:n,...r}=e??{},t=e!=null&&Object.hasOwn(e,"defaultValue");return _([o],(s,a,i)=>{if(i.terminalDeps[0]===!0){i.store.has?a.emit(i.store.latest):t&&a.emit(n),a.down([[c]]);return}let u=s[0];if(u==null||u.length===0){a.down([[g]]);return}i.store.latest=u.at(-1),i.store.has=!0},{...h(r),completeWhenDepsComplete:!1})}function Pt(o,e,n){return ee(Je(o,e,n),1,n)}function Ut(o,e,n){return ee(Xe(o,e,n),1,n)}function Ht(o,e,n){if(typeof e=="function")return _([o],(t,s)=>{let a=t[0];if(a==null||a.length===0){s.down([[g]]);return}for(let i of a)e(i),s.emit(i)},{...h(n),meta:{...E("tap"),...n?.meta??{}}});let r=e;return _([o],(t,s,a)=>{if(a.terminalDeps[0]!==void 0){a.terminalDeps[0]===!0?(r.complete?.(),s.down([[c]])):(r.error?.(a.terminalDeps[0]),s.down([[p,a.terminalDeps[0]]]));return}let i=t[0];if(i==null||i.length===0){s.down([[g]]);return}for(let u of i)r.data?.(u),s.emit(u)},{...h(n),completeWhenDepsComplete:!1,meta:{...E("tap"),...n?.meta??{}}})}function Ze(o,e,n){let r=n?.where??(s=>s!=null),t=!1;return _([o],(s,a)=>{let i=s[0];if(i==null||i.length===0){a.down([[g]]);return}for(let u of i)!t&&r(u)&&(t=!0,e(u)),a.emit(u)},h(n))}function Bt(o,e=Object.is,n){return _([o],(r,t,s)=>{let a=r[0];if(a==null||a.length===0){t.down([[g]]);return}let i=!1;for(let u of a)s.store.hasPrev&&e(s.store.prev,u)||(s.store.prev=u,s.store.hasPrev=!0,t.emit(u),i=!0);i||t.down([[g]])},{...h(n),meta:{...E("distinctUntilChanged"),...n?.meta??{}}})}function jt(o,e){return _([o],(n,r,t)=>{let s=n[0];if(s==null||s.length===0){r.down([[g]]);return}let a=!1;for(let i of s)if(!t.store.hasPrev)t.store.prev=i,t.store.hasPrev=!0;else{let u=[t.store.prev,i];t.store.prev=i,r.emit(u),a=!0}a||r.down([[g]])},h(e))}function Qe(...o){let e=[...o];return ze(e,n=>n,{...h(),equals:(n,r)=>{if(n.length!==r.length)return!1;for(let t=0;t<n.length;t++)if(!Object.is(n[t],r[t]))return!1;return!0}})}function zt(o,e,n){return _([o,e],(r,t,s)=>{let a=r[0],i=r[1],u=i!=null&&i.length>0?i.at(-1):s.prevData[1];if(a!=null&&a.length>0){if(!(i!=null&&i.length>0)&&s.prevData[1]===void 0){t.down([[g]]);return}for(let d of a)t.emit([d,u])}else t.down([[g]])},{...Ye(n),meta:{...E("withLatestFrom"),...n?.meta??{}}})}function $t(...o){return o.length===0?b(e=>{e.down([[c]])},{...h(),meta:{...E("merge")}}):b(e=>{let n=o.length,r=0,t=[];for(let s of o){let a=s.subscribe(i=>{for(let u of i)u[0]===m?e.emit(u[1]):u[0]===c?(r+=1,r>=n&&e.down([[c]])):u[0]===p&&e.down([u])});t.push(a)}return()=>{for(let s of t)s()}},{...h(),meta:{...E("merge")}})}function Kt(...o){let e=o.length;return e===0?b(n=>{n.emit([]),n.down([[c]])},h()):b(n=>{let r=Array.from({length:e},()=>[]),t=e;function s(){for(;r.every(i=>i.length>0);){let i=r.map(u=>u.shift());n.emit(i)}}let a=[];for(let i=0;i<e;i++){let u=i,d=o[i].subscribe(l=>{for(let f of l)f[0]===m?(r[u].push(f[1]),s()):f[0]===c?(t-=1,(t===0||r[u].length===0)&&n.down([[c]])):f[0]===p&&n.down([f])});a.push(d)}return()=>{for(let i of a)i()}},h())}function qt(o,e,n){return b(r=>{let t=0,s=[],a,i;return i=e.subscribe(u=>{for(let d of u)t===0?d[0]===m?s.push(d[1]):d[0]===p&&r.down([d]):d[0]===m?r.emit(d[1]):(d[0]===c||d[0]===p)&&r.down([d])}),a=o.subscribe(u=>{for(let d of u)if(t===0)if(d[0]===m)r.emit(d[1]);else if(d[0]===c){t=1;for(let l of s)r.emit(l);s.length=0}else d[0]===p&&r.down([d])}),()=>{a?.(),i?.()}},h(n))}function Yt(...o){return o.length===0?b(e=>{e.down([[c]])},h()):o.length===1?_([o[0]],(e,n)=>{let r=e[0];if(r==null||r.length===0){n.down([[g]]);return}for(let t of r)n.emit(t)},h()):b(e=>{let n=null,r=[];for(let t=0;t<o.length;t++){let s=t,a=o[t].subscribe(i=>{for(let u of i){if(n!==null&&s!==n)return;u[0]===m?(n===null&&(n=s),e.emit(u[1])):(u[0]===c||u[0]===p)&&(n===null||s===n)&&e.down([u])}});r.push(a)}return()=>{for(let t of r)t()}},h())}function te(o,e,n){let r,t=!1,s=()=>{t||(t=!0,n())};return r=o.subscribe(a=>{let i=!1,u=!1;for(let d of a)d[0]!==C&&(d[0]===m?e.emit(d[1]):d[0]===c?i=!0:d[0]===p?(u=!0,e.down([d])):(d[0]===D||d[0]===g)&&e.down([d]));u?(r?.(),r=void 0,s()):i&&s()}),()=>{r?.(),r=void 0}}function Jt(o,e,n){let r,t=!1;function s(){r?.(),r=void 0}return _([o],(a,i,u)=>{if(u.terminalDeps[0]!=null&&u.terminalDeps[0]!==!0){s();return}if(u.terminalDeps[0]===!0){t=!0,r||i.down([[c]]);return}let d=a[0];if(!(d==null||d.length===0))return s(),r=te(j(e(d[d.length-1])),i,()=>{s(),t&&i.down([[c]])}),{deactivate:()=>{s(),t=!1}}},{...h(n),completeWhenDepsComplete:!1,meta:{...E("switchMap"),...n?.meta??{}}})}function Xt(o,e,n){let r,t=!1;function s(){r?.(),r=void 0}return _([o],(a,i,u)=>{if(u.terminalDeps[0]!=null&&u.terminalDeps[0]!==!0){s();return}if(u.terminalDeps[0]===!0){t=!0,r||i.down([[c]]);return}let d=a[0];if(!(d==null||d.length===0))return r===void 0?r=te(j(e(d[0])),i,()=>{s(),t&&i.down([[c]])}):i.down([[g]]),{deactivate:()=>{s(),t=!1}}},{...h(n),completeWhenDepsComplete:!1})}function Zt(o,e,n){let{maxBuffer:r,...t}=n??{},s=[],a,i=!1,u;function d(){a?.(),a=void 0}function l(){if(!u||a!==void 0)return;if(s.length===0){i&&u.down([[c]]);return}let y=s.shift();a=te(j(e(y)),u,()=>{d(),l()})}function f(y){r&&r>0&&s.length>=r&&s.shift(),s.push(y),l()}return _([o],(y,T,w)=>{if(u=T,w.terminalDeps[0]!=null&&w.terminalDeps[0]!==!0){d(),s.length=0;return}if(w.terminalDeps[0]===!0){i=!0,l();return}let O=y[0];if(!(O==null||O.length===0)){for(let v of O)f(v);return{deactivate:()=>{d(),s.length=0,i=!1}}}},{...h(t),completeWhenDepsComplete:!1})}function et(o,e,n){let{concurrent:r,...t}=n??{},s=r!=null&&r>0?r:Number.POSITIVE_INFINITY,a=0,i=!1,u=new Set,d=[],l;function f(){i&&a===0&&d.length===0&&l&&l.down([[c]])}function y(v){if(!l)return;a++;let N;N=te(j(e(v)),l,()=>{N&&u.delete(N),a--,T(),f()}),u.add(N)}function T(){for(;d.length>0&&a<s;)y(d.shift())}function w(v){a<s?y(v):d.push(v)}function O(){for(let v of u)v();u.clear(),a=0,d.length=0}return _([o],(v,N,A)=>{if(l=N,A.terminalDeps[0]!=null&&A.terminalDeps[0]!==!0){O();return}if(A.terminalDeps[0]===!0){i=!0,f();return}let x=v[0];if(!(x==null||x.length===0)){for(let M of x)w(M);return{deactivate:()=>{O(),i=!1}}}},{...h(t),completeWhenDepsComplete:!1})}function en(o,e,n){return b(r=>{let t=new Set;function s(){for(let i of t)clearTimeout(i);t.clear()}let a=o.subscribe(i=>{for(let u of i)if(u[0]===m){let d=setTimeout(()=>{t.delete(d),r.emit(u[1])},e);t.add(d)}else if(u[0]===c){let d=setTimeout(()=>{t.delete(d),r.down([[c]])},e);t.add(d)}else u[0]===p&&(s(),r.down([u]))});return()=>{a(),s()}},h(n))}function tt(o,e,n){return b(r=>{let t,s;function a(){t!==void 0&&(clearTimeout(t),t=void 0)}let i=o.subscribe(u=>{for(let d of u)d[0]===m?(a(),s=d[1],t=setTimeout(()=>{t=void 0,r.emit(s)},e)):d[0]===c?(t!==void 0&&(a(),r.emit(s)),r.down([[c]])):d[0]===p&&(a(),r.down([d]))});return()=>{i(),a()}},{...h(n),meta:{...E("debounce",{ms:e}),...n?.meta??{}}})}function nt(o,e,n){let{leading:r,trailing:t,...s}=n??{},a=r!==!1,i=t===!0,u=e*1e6;return b(d=>{let l,f=-1/0,y,T=!1;function w(){l!==void 0&&(clearTimeout(l),l=void 0)}let O=o.subscribe(v=>{for(let N of v)if(N[0]===m){let A=N[1],x=q();if(a&&x-f>=u)f=x,d.emit(A),w(),i&&(l=setTimeout(()=>{l=void 0,T&&(f=q(),d.emit(y),T=!1)},e));else if(i&&(y=A,T=!0,l===void 0)){let M=(x-f)/1e6;l=setTimeout(()=>{l=void 0,T&&(f=q(),d.emit(y),T=!1)},Math.max(0,e-M))}}else(N[0]===c||N[0]===p)&&(w(),d.down([N]))});return()=>{O(),w()}},{...h(s),meta:{...E("throttle",{ms:e,leading:a,trailing:i}),...s.meta??{}}})}function tn(o,e,n){return b(r=>{let t,s=!1,a=!1,i=o.subscribe(d=>{if(!s)for(let l of d){if(s)return;l[0]===m?t={v:l[1]}:l[0]===p?(s=!0,r.down([l])):l[0]===c&&(a=!0,t=void 0)}}),u=e.subscribe(d=>{if(!s)for(let l of d){if(s)return;l[0]===m?t!==void 0&&!a&&r.emit(t.v):l[0]===p?(s=!0,r.down([l])):l[0]===c&&(s=!0,r.down([[c]]))}});return()=>{i(),u()}},h(n))}function nn(o,e,n){return b(r=>{let t,s,a=!1;function i(){t!==void 0&&(clearTimeout(t),t=void 0)}let u=o.subscribe(d=>{for(let l of d)l[0]===m?(s=l[1],a=!0,i(),t=setTimeout(()=>{t=void 0,a&&(a=!1,r.emit(s))},e)):(l[0]===c||l[0]===p)&&(i(),r.down([l]))});return()=>{u(),i()}},h(n))}function rn(o,e,n){let{with:r,...t}=n??{},s=r??new Error("timeout");return b(a=>{let i;function u(){clearTimeout(i),i=setTimeout(()=>{i=void 0,a.down([[p,s]])},e)}u();let d=o.subscribe(l=>{for(let f of l)f[0]===m?(u(),a.emit(f[1])):(f[0]===c||f[0]===p)&&(clearTimeout(i),a.down([f]))});return()=>{d(),clearTimeout(i)}},h(t))}function on(o,e,n){return b(r=>{let t=[],s=o.subscribe(i=>{for(let u of i)u[0]===m?t.push(u[1]):u[0]===c?(t.length>0&&r.emit([...t]),t.length=0,r.down([[c]])):u[0]===p&&r.down([u])}),a=e.subscribe(i=>{for(let u of i)u[0]===m?t.length>0&&(r.emit([...t]),t.length=0):u[0]===c?r.down([[c]]):u[0]===p&&r.down([u])});return()=>{s(),a(),t.length=0}},h(n))}function sn(o,e,n){if(e<=0)throw new RangeError("bufferCount expects count > 0");return b(r=>{let t=[],s=o.subscribe(a=>{for(let i of a)i[0]===m?(t.push(i[1]),t.length>=e&&r.emit(t.splice(0,t.length))):i[0]===c?(t.length>0&&r.emit([...t]),t.length=0,r.down([[c]])):i[0]===p&&r.down([i])});return()=>{s(),t.length=0}},h(n))}function an(o,e,n){if(e<=0)throw new RangeError("windowCount expects count > 0");return b(r=>{let t,s=0;function a(){let u=b(d=>(t=d.down.bind(d),()=>{t=void 0}),h());s=0,r.emit(u)}let i=o.subscribe(u=>{for(let d of u)d[0]===m?(t||a(),t?.([[m,d[1]]]),s+=1,s>=e&&(t?.([[c]]),t=void 0)):d[0]===c?(t?.([[c]]),t=void 0,r.down([[c]])):d[0]===p&&(t?.([d]),t=void 0,r.down([d]))});return()=>{i(),t?.([[c]]),t=void 0}},h(n))}function un(o,e,n){return b(r=>{let t=[],s=setInterval(()=>{t.length>0&&(r.emit([...t]),t.length=0)},e),a=o.subscribe(i=>{for(let u of i)u[0]===m?t.push(u[1]):u[0]===c?(clearInterval(s),t.length>0&&r.emit([...t]),t.length=0,r.down([[c]])):u[0]===p&&(clearInterval(s),r.down([u]))});return()=>{a(),clearInterval(s),t.length=0}},{...h(n),meta:{...E("bufferTime",{ms:e}),...n?.meta??{}}})}function dn(o,e,n){return b(r=>{let t;function s(){t?.([[c]]),t=void 0}function a(){let d=b(l=>(t=l.down.bind(l),()=>{t=void 0}),h());r.emit(d)}a();let i=setInterval(()=>{s(),a()},e),u=o.subscribe(d=>{for(let l of d)l[0]===m?t?.([[m,l[1]]]):l[0]===c?(clearInterval(i),s(),r.down([[c]])):l[0]===p&&(clearInterval(i),t?.([l]),s(),r.down([l]))});return()=>{u(),clearInterval(i),s()}},h(n))}function ln(o,e,n){return b(r=>{let t;function s(){t?.([[c]]),t=void 0}function a(){let d=b(l=>(t=l.down.bind(l),()=>{t=void 0}),h());r.emit(d)}let i=o.subscribe(d=>{for(let l of d)l[0]===m?(t||a(),t?.([[m,l[1]]])):l[0]===c?(s(),r.down([[c]])):l[0]===p&&(t?.([l]),t=void 0,r.down([l]))}),u=e.subscribe(d=>{for(let l of d)l[0]===m&&(s(),a())});return()=>{i(),u(),s()}},h(n))}function cn(o,e){return b((n,r)=>{"n"in r.store||(r.store.n=0);let t=setInterval(()=>{n.emit(r.store.n),r.store.n=r.store.n+1},o);return()=>clearInterval(t)},h(e))}function fn(o,e,n){if(e<=0)throw new RangeError("repeat expects count > 0");return b(r=>{let t=e,s,a=()=>{s?.(),s=o.subscribe(i=>{let u=!1,d=[];for(let l of i)l[0]===c?u=!0:d.push(l);d.length>0&&r.down(d),u&&(s?.(),s=void 0,t-=1,t>0?a():r.down([[c]]))})};return a(),()=>{s?.()}},h(n))}function pn(o,e){return _([o],(n,r)=>{let t=n[0];if(t==null||t.length===0){r.down([[g]]);return}for(let s of t)r.emit(s)},h(e))}function rt(o,e,n){return b(r=>{let t=o.subscribe(s=>{for(let a of s)if(a[0]===m)r.emit(a[1]);else if(a[0]===p)try{r.emit(e(a[1]))}catch(i){r.down([[p,i]])}else a[0]===c&&r.down([[c]])});return()=>{t()}},h(n))}function hn(o,e,n){return _([o,e],(r,t,s)=>{let a=r[1];if(!(a!=null&&a.length>0?a.at(-1):s.prevData[1])){t.down([[g]]);return}let u=r[0];if(u!=null&&u.length>0){for(let d of u)t.emit(d);return}if(a!=null&&a.length>0&&s.prevData[0]!==void 0){t.emit(s.prevData[0]);return}t.down([[g]])},Ye(n))}var Wt,Qt,mn,gn,bn,Tn,ot=R(()=>{"use strict";ie();B();je();Te();ye();qe();Wt=Ze;Qt=et;mn=Qe,gn=tt,bn=nt,Tn=rt});var yn={};lt(yn,{audit:()=>nn,buffer:()=>on,bufferCount:()=>sn,bufferTime:()=>un,catchError:()=>Tn,combine:()=>Qe,combineLatest:()=>mn,concat:()=>qt,concatMap:()=>Zt,debounce:()=>tt,debounceTime:()=>gn,delay:()=>en,distinctUntilChanged:()=>Bt,elementAt:()=>Ut,exhaustMap:()=>Xt,filter:()=>Je,find:()=>Pt,first:()=>Vt,flatMap:()=>Qt,interval:()=>cn,last:()=>Gt,map:()=>St,merge:()=>$t,mergeMap:()=>et,onFirstData:()=>Ze,pairwise:()=>jt,pausable:()=>pn,race:()=>Yt,reduce:()=>It,repeat:()=>fn,rescue:()=>rt,sample:()=>tn,scan:()=>Ct,skip:()=>Xe,switchMap:()=>Jt,take:()=>ee,takeUntil:()=>Lt,takeWhile:()=>Ft,tap:()=>Ht,tapFirst:()=>Wt,throttle:()=>nt,throttleTime:()=>bn,timeout:()=>rn,valve:()=>hn,window:()=>ln,windowCount:()=>an,windowTime:()=>dn,withLatestFrom:()=>zt,zip:()=>Kt});module.exports=ft(yn);var _n=R(()=>{ot()});_n();0&&(module.exports={audit,buffer,bufferCount,bufferTime,catchError,combine,combineLatest,concat,concatMap,debounce,debounceTime,delay,distinctUntilChanged,elementAt,exhaustMap,filter,find,first,flatMap,interval,last,map,merge,mergeMap,onFirstData,pairwise,pausable,race,reduce,repeat,rescue,sample,scan,skip,switchMap,take,takeUntil,takeWhile,tap,tapFirst,throttle,throttleTime,timeout,valve,window,windowCount,windowTime,withLatestFrom,zip});
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/extra/operators.ts
18
+ var operators_exports = {};
19
+ module.exports = __toCommonJS(operators_exports);
20
+ __reExport(operators_exports, require("@graphrefly/pure-ts/extra/operators"), module.exports);
21
+ //# sourceMappingURL=operators.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/extra/operators.ts"],"sourcesContent":["// Phase 13.9.A shim — re-export from pure-TS sibling until\n// @graphrefly/native (napi binding) and per-milestone swap-overs land.\nexport * from \"@graphrefly/pure-ts/extra/operators\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAEA,8BAAc,gDAFd;","names":[]}