@graphrefly/graphrefly 0.27.0 → 0.28.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 (428) hide show
  1. package/dist/backoff-HPZMEZNF.js +1 -0
  2. package/dist/cascading-B-5zmAUv.d.cts +180 -0
  3. package/dist/cascading-D9WG1-9L.d.ts +180 -0
  4. package/dist/chunk-2FOAM3OR.js +1 -0
  5. package/dist/chunk-2PMCKKRK.js +1 -0
  6. package/dist/chunk-3JXNEPCD.js +2 -0
  7. package/dist/chunk-3R5HFPX7.js +78 -0
  8. package/dist/chunk-4GKB4OUJ.js +1 -0
  9. package/dist/chunk-4VVTGLXJ.js +1 -0
  10. package/dist/chunk-5QDBSZBV.js +1 -0
  11. package/dist/chunk-6QZNQS5B.js +1 -0
  12. package/dist/chunk-6V3SEX2I.js +1 -0
  13. package/dist/chunk-76A3HVQE.js +9 -0
  14. package/dist/chunk-7H6LGFUG.js +64 -0
  15. package/dist/chunk-CK2E7BTU.js +1 -0
  16. package/dist/chunk-CKCSDI7T.js +6 -0
  17. package/dist/chunk-CRXTH3SH.js +1 -0
  18. package/dist/chunk-CWLN3X3N.js +1 -0
  19. package/dist/chunk-D7A7DBE4.js +1 -0
  20. package/dist/chunk-DBGGMN3D.js +1 -0
  21. package/dist/chunk-DQA3UIQ2.js +1 -0
  22. package/dist/chunk-ERLIRFPA.js +1 -0
  23. package/dist/chunk-ESMPEKEV.js +1 -0
  24. package/dist/chunk-ETWTCCJI.js +1 -0
  25. package/dist/chunk-FNYWM6JC.js +1 -0
  26. package/dist/chunk-GHJJR5P4.js +1 -0
  27. package/dist/chunk-GPW2V3RE.js +1 -0
  28. package/dist/chunk-I6VIH3VA.js +1 -0
  29. package/dist/chunk-K2GNMCQT.js +1 -0
  30. package/dist/chunk-LBTDSCCO.js +3 -0
  31. package/dist/chunk-LQ3Y5NJS.js +1 -0
  32. package/dist/chunk-MIQTDPY4.js +5 -0
  33. package/dist/chunk-MTTAAPCK.js +1 -0
  34. package/dist/chunk-OAWLCNJJ.js +1 -0
  35. package/dist/chunk-OBKQQA5I.js +1 -0
  36. package/dist/chunk-OYHGKYQM.js +1 -0
  37. package/dist/chunk-PIOGHC63.js +1 -0
  38. package/dist/chunk-QWAPKG3O.js +2 -0
  39. package/dist/chunk-QYADASLV.js +1 -0
  40. package/dist/chunk-RHESUC3V.js +43 -0
  41. package/dist/chunk-S35VARIR.js +1 -0
  42. package/dist/chunk-SC3U7ETD.js +1 -0
  43. package/dist/chunk-U3AICJKU.js +1 -0
  44. package/dist/chunk-UMBIDLJ4.js +1 -0
  45. package/dist/chunk-UPHHLMHE.js +1 -0
  46. package/dist/chunk-UPXUCFMX.js +1 -0
  47. package/dist/chunk-UWJE5FQA.js +18 -0
  48. package/dist/chunk-V6YQICXZ.js +1 -0
  49. package/dist/chunk-VIMF6LGM.js +1 -0
  50. package/dist/chunk-VJLMUKOI.js +1 -0
  51. package/dist/chunk-VPYBOXVT.js +1 -0
  52. package/dist/chunk-VTPVOGHH.js +1 -0
  53. package/dist/chunk-WQ2BN6X6.js +1 -0
  54. package/dist/chunk-XAUNPIMX.js +1 -0
  55. package/dist/chunk-Y2EMPB3I.js +1 -0
  56. package/dist/chunk-Z4HDAS2Q.js +1 -0
  57. package/dist/chunk-ZB5EHBIO.js +1 -0
  58. package/dist/chunk-ZV2DXV5A.js +23 -0
  59. package/dist/compat/index.cjs +14 -7656
  60. package/dist/compat/index.d.cts +15 -14
  61. package/dist/compat/index.d.ts +15 -14
  62. package/dist/compat/index.js +1 -50
  63. package/dist/compat/jotai/index.cjs +1 -2048
  64. package/dist/compat/jotai/index.d.cts +2 -2
  65. package/dist/compat/jotai/index.d.ts +2 -2
  66. package/dist/compat/jotai/index.js +1 -9
  67. package/dist/compat/nanostores/index.cjs +1 -2175
  68. package/dist/compat/nanostores/index.d.cts +2 -2
  69. package/dist/compat/nanostores/index.d.ts +2 -2
  70. package/dist/compat/nanostores/index.js +1 -23
  71. package/dist/compat/nestjs/index.cjs +14 -6782
  72. package/dist/compat/nestjs/index.d.cts +7 -6
  73. package/dist/compat/nestjs/index.d.ts +7 -6
  74. package/dist/compat/nestjs/index.js +1 -83
  75. package/dist/compat/react/index.cjs +1 -141
  76. package/dist/compat/react/index.d.cts +2 -2
  77. package/dist/compat/react/index.d.ts +2 -2
  78. package/dist/compat/react/index.js +1 -12
  79. package/dist/compat/solid/index.cjs +1 -128
  80. package/dist/compat/solid/index.d.cts +2 -2
  81. package/dist/compat/solid/index.d.ts +2 -2
  82. package/dist/compat/solid/index.js +1 -12
  83. package/dist/compat/svelte/index.cjs +1 -131
  84. package/dist/compat/svelte/index.d.cts +2 -2
  85. package/dist/compat/svelte/index.d.ts +2 -2
  86. package/dist/compat/svelte/index.js +1 -12
  87. package/dist/compat/vue/index.cjs +1 -146
  88. package/dist/compat/vue/index.d.cts +2 -2
  89. package/dist/compat/vue/index.d.ts +2 -2
  90. package/dist/compat/vue/index.js +1 -12
  91. package/dist/compat/zustand/index.cjs +6 -4931
  92. package/dist/compat/zustand/index.d.cts +5 -5
  93. package/dist/compat/zustand/index.d.ts +5 -5
  94. package/dist/compat/zustand/index.js +1 -12
  95. package/dist/composite-B-xqw4Kk.d.cts +69 -0
  96. package/dist/composite-BhbKHbOS.d.ts +69 -0
  97. package/dist/core/index.cjs +1 -2271
  98. package/dist/core/index.d.cts +4 -4
  99. package/dist/core/index.d.ts +4 -4
  100. package/dist/core/index.js +1 -110
  101. package/dist/extra/browser.cjs +1 -0
  102. package/dist/extra/browser.d.cts +3 -0
  103. package/dist/extra/browser.d.ts +3 -0
  104. package/dist/extra/browser.js +1 -0
  105. package/dist/extra/index.cjs +23 -9971
  106. package/dist/extra/index.d.cts +13 -6
  107. package/dist/extra/index.d.ts +13 -6
  108. package/dist/extra/index.js +1 -381
  109. package/dist/extra/node.cjs +3 -0
  110. package/dist/extra/node.d.cts +81 -0
  111. package/dist/extra/node.d.ts +81 -0
  112. package/dist/extra/node.js +2 -0
  113. package/dist/extra/operators.cjs +1 -0
  114. package/dist/extra/operators.d.cts +910 -0
  115. package/dist/extra/operators.d.ts +910 -0
  116. package/dist/extra/operators.js +1 -0
  117. package/dist/extra/reactive.cjs +1 -0
  118. package/dist/extra/reactive.d.cts +352 -0
  119. package/dist/extra/reactive.d.ts +352 -0
  120. package/dist/extra/reactive.js +1 -0
  121. package/dist/extra/sources.cjs +1 -2486
  122. package/dist/extra/sources.d.cts +6 -2
  123. package/dist/extra/sources.d.ts +6 -2
  124. package/dist/extra/sources.js +1 -57
  125. package/dist/extra/storage-browser.cjs +1 -0
  126. package/dist/extra/storage-browser.d.cts +71 -0
  127. package/dist/extra/storage-browser.d.ts +71 -0
  128. package/dist/extra/storage-browser.js +1 -0
  129. package/dist/extra/storage-core.cjs +1 -0
  130. package/dist/extra/storage-core.d.cts +98 -0
  131. package/dist/extra/storage-core.d.ts +98 -0
  132. package/dist/extra/storage-core.js +1 -0
  133. package/dist/extra/storage-node.cjs +2 -0
  134. package/dist/extra/storage-node.d.cts +60 -0
  135. package/dist/extra/storage-node.d.ts +60 -0
  136. package/dist/extra/storage-node.js +1 -0
  137. package/dist/fallback-BaTS7vVY.d.cts +258 -0
  138. package/dist/fallback-eOm3LNxP.d.ts +258 -0
  139. package/dist/graph/index.cjs +6 -5030
  140. package/dist/graph/index.d.cts +6 -5
  141. package/dist/graph/index.d.ts +6 -5
  142. package/dist/graph/index.js +1 -50
  143. package/dist/{graph-CCwGKLCm.d.ts → graph-BZGRXwOm.d.ts} +134 -31
  144. package/dist/{graph-DNCrvZSn.d.cts → graph-D48Qw9Cg.d.cts} +134 -31
  145. package/dist/index-8FSVk4Uf.d.ts +135 -0
  146. package/dist/index-9oDeHH2u.d.cts +291 -0
  147. package/dist/{messaging-XDoYablx.d.ts → index-B0c4cmIO.d.ts} +31 -93
  148. package/dist/{index-VdHQMPy1.d.ts → index-B1AmmSlb.d.ts} +1 -1
  149. package/dist/{index-VHqptjhu.d.cts → index-B2pwesl9.d.cts} +1 -1
  150. package/dist/index-BHvIquRZ.d.ts +1957 -0
  151. package/dist/{index-Dzk2hrlR.d.ts → index-BVHOrDwO.d.ts} +1 -1
  152. package/dist/{index-CxFrXH4m.d.ts → index-BWJV63ti.d.ts} +1 -1
  153. package/dist/{index-Xi3u0HCQ.d.cts → index-B_agccPe.d.cts} +1 -1
  154. package/dist/index-BgyGlizc.d.ts +163 -0
  155. package/dist/index-BpA5c4G9.d.ts +357 -0
  156. package/dist/index-BpIFjILY.d.cts +357 -0
  157. package/dist/{index-3lsddbbS.d.ts → index-Bqachn9_.d.ts} +1 -1
  158. package/dist/index-Btib9rsU.d.ts +607 -0
  159. package/dist/{index-wEn0eFe8.d.ts → index-BwM9BEkt.d.ts} +1 -1
  160. package/dist/index-BxJ86YZZ.d.cts +105 -0
  161. package/dist/{audit-DRlSzBu9.d.ts → index-C73n7lo-.d.cts} +27 -21
  162. package/dist/index-CEXXwWVH.d.cts +192 -0
  163. package/dist/index-CHEswufn.d.cts +163 -0
  164. package/dist/{index-C0svESO4.d.ts → index-CMn8S8Hw.d.ts} +1 -1
  165. package/dist/{index-ByQxazQJ.d.cts → index-CRO83MmV.d.cts} +1 -1
  166. package/dist/{index-BuEoe-Qu.d.ts → index-CloUk1kY.d.ts} +9 -9
  167. package/dist/index-CpgYhnrG.d.ts +291 -0
  168. package/dist/{index-DO_6JN9Z.d.cts → index-Cyojz0AE.d.cts} +1 -1
  169. package/dist/{demo-shell-BDkOptd6.d.ts → index-CzobVSMr.d.ts} +14 -14
  170. package/dist/index-Czq6ynh8.d.ts +143 -0
  171. package/dist/{index-BaSM3aYt.d.ts → index-D-YB-Vl3.d.ts} +3 -3
  172. package/dist/index-DAlweici.d.ts +231 -0
  173. package/dist/index-DEwTb_fm.d.cts +1957 -0
  174. package/dist/{index-DYme44FM.d.cts → index-DL-rYJrx.d.cts} +1 -1
  175. package/dist/{memory-li6FL5RM.d.ts → index-DP4ZTkdw.d.ts} +26 -26
  176. package/dist/{index-BwfLUNw4.d.ts → index-DUqMOlKZ.d.cts} +173 -2040
  177. package/dist/{index-B1tloyhO.d.cts → index-D_NwnRYS.d.cts} +1 -1
  178. package/dist/index-DaLJvH8Z.d.ts +105 -0
  179. package/dist/index-DcXZBF5a.d.cts +135 -0
  180. package/dist/index-DfyOkTvs.d.ts +321 -0
  181. package/dist/{index-B9B7_HEY.d.ts → index-DiOXyAwt.d.ts} +1 -1
  182. package/dist/index-DpHe5e0Q.d.ts +186 -0
  183. package/dist/index-DraikLjn.d.ts +86 -0
  184. package/dist/{index-D8wS_PeY.d.cts → index-DxsnAMWD.d.cts} +9 -9
  185. package/dist/{messaging-Gt4LPbyA.d.cts → index-DyxjtScX.d.cts} +31 -93
  186. package/dist/{audit-ClmqGOCx.d.cts → index-HDpJe9hX.d.ts} +27 -21
  187. package/dist/{index-DVGiGFGT.d.cts → index-O6TgGUBV.d.cts} +3 -3
  188. package/dist/{index-B6EhDnjH.d.cts → index-Oi8d8w4R.d.cts} +1 -1
  189. package/dist/{index-C8oil6M6.d.ts → index-ROpQmGjE.d.ts} +30 -6
  190. package/dist/index-RukJ4DLS.d.cts +607 -0
  191. package/dist/{index-BHlKbUwO.d.cts → index-ZftwfxJM.d.ts} +173 -2040
  192. package/dist/{index-BPVt8kqc.d.ts → index-cByzxQIC.d.cts} +10 -195
  193. package/dist/index-dtN7YA2x.d.cts +143 -0
  194. package/dist/{index-CI3DprxP.d.cts → index-fM6y00vT.d.cts} +30 -6
  195. package/dist/{index-DlLp-2Xn.d.cts → index-m-yHof5p.d.ts} +10 -195
  196. package/dist/index-pXrDMpRO.d.cts +231 -0
  197. package/dist/index-rHJSKsU8.d.cts +186 -0
  198. package/dist/index-rX8HBM5h.d.cts +321 -0
  199. package/dist/{index-CO8uBlUh.d.cts → index-rnwQly8X.d.cts} +147 -20
  200. package/dist/index-sm373fsH.d.ts +192 -0
  201. package/dist/{memory-C6Z2tGpC.d.cts → index-tbf2gKHd.d.cts} +26 -26
  202. package/dist/{demo-shell-Crid1WdR.d.cts → index-u15meRxL.d.cts} +14 -14
  203. package/dist/{index-B6D3QNSA.d.ts → index-umtoWT8K.d.ts} +147 -20
  204. package/dist/index-vscRDkjW.d.cts +86 -0
  205. package/dist/index.cjs +150 -24142
  206. package/dist/index.d.cts +69 -2099
  207. package/dist/index.d.ts +69 -2099
  208. package/dist/index.js +1 -3868
  209. package/dist/{meta-CbznRPYJ.d.ts → meta-Cgj6zeji.d.cts} +5 -5
  210. package/dist/{meta-BxCA7rcr.d.cts → meta-CwesDrMD.d.ts} +5 -5
  211. package/dist/{node-BmerH3kS.d.cts → node-Cc1TniY8.d.cts} +36 -9
  212. package/dist/{node-BmerH3kS.d.ts → node-Cc1TniY8.d.ts} +36 -9
  213. package/dist/{observable-BgGUwcqp.d.ts → observable-Ct-gJ9jI.d.ts} +1 -1
  214. package/dist/{observable-DJt_AxzQ.d.cts → observable-glXQoGj2.d.cts} +1 -1
  215. package/dist/patterns/ai/browser.cjs +25 -0
  216. package/dist/patterns/ai/browser.d.cts +127 -0
  217. package/dist/patterns/ai/browser.d.ts +127 -0
  218. package/dist/patterns/ai/browser.js +3 -0
  219. package/dist/patterns/ai/index.cjs +91 -0
  220. package/dist/patterns/ai/index.d.cts +17 -0
  221. package/dist/patterns/ai/index.d.ts +17 -0
  222. package/dist/patterns/ai/index.js +1 -0
  223. package/dist/patterns/ai/node.cjs +2 -0
  224. package/dist/patterns/ai/node.d.cts +58 -0
  225. package/dist/patterns/ai/node.d.ts +58 -0
  226. package/dist/patterns/ai/node.js +1 -0
  227. package/dist/patterns/audit/index.cjs +6 -0
  228. package/dist/patterns/audit/index.d.cts +6 -0
  229. package/dist/patterns/audit/index.d.ts +6 -0
  230. package/dist/patterns/audit/index.js +1 -0
  231. package/dist/patterns/cqrs/index.cjs +6 -0
  232. package/dist/patterns/cqrs/index.d.cts +5 -0
  233. package/dist/patterns/cqrs/index.d.ts +5 -0
  234. package/dist/patterns/cqrs/index.js +1 -0
  235. package/dist/patterns/demo-shell/index.cjs +7 -0
  236. package/dist/patterns/demo-shell/index.d.cts +6 -0
  237. package/dist/patterns/demo-shell/index.d.ts +6 -0
  238. package/dist/patterns/demo-shell/index.js +1 -0
  239. package/dist/patterns/domain-templates/index.cjs +6 -0
  240. package/dist/patterns/domain-templates/index.d.cts +5 -0
  241. package/dist/patterns/domain-templates/index.d.ts +5 -0
  242. package/dist/patterns/domain-templates/index.js +1 -0
  243. package/dist/patterns/graphspec/index.cjs +83 -0
  244. package/dist/patterns/graphspec/index.d.cts +7 -0
  245. package/dist/patterns/graphspec/index.d.ts +7 -0
  246. package/dist/patterns/graphspec/index.js +1 -0
  247. package/dist/patterns/guarded-execution/index.cjs +6 -0
  248. package/dist/patterns/guarded-execution/index.d.cts +7 -0
  249. package/dist/patterns/guarded-execution/index.d.ts +7 -0
  250. package/dist/patterns/guarded-execution/index.js +1 -0
  251. package/dist/patterns/harness/index.cjs +48 -0
  252. package/dist/patterns/harness/index.d.cts +8 -0
  253. package/dist/patterns/harness/index.d.ts +8 -0
  254. package/dist/patterns/harness/index.js +1 -0
  255. package/dist/patterns/job-queue/index.cjs +6 -0
  256. package/dist/patterns/job-queue/index.d.cts +5 -0
  257. package/dist/patterns/job-queue/index.d.ts +5 -0
  258. package/dist/patterns/job-queue/index.js +1 -0
  259. package/dist/patterns/lens/index.cjs +6 -0
  260. package/dist/patterns/lens/index.d.cts +7 -0
  261. package/dist/patterns/lens/index.d.ts +7 -0
  262. package/dist/patterns/lens/index.js +1 -0
  263. package/dist/patterns/memory/index.cjs +6 -0
  264. package/dist/patterns/memory/index.d.cts +5 -0
  265. package/dist/patterns/memory/index.d.ts +5 -0
  266. package/dist/patterns/memory/index.js +1 -0
  267. package/dist/patterns/messaging/index.cjs +6 -0
  268. package/dist/patterns/messaging/index.d.cts +5 -0
  269. package/dist/patterns/messaging/index.d.ts +5 -0
  270. package/dist/patterns/messaging/index.js +1 -0
  271. package/dist/patterns/orchestration/index.cjs +6 -0
  272. package/dist/patterns/orchestration/index.d.cts +6 -0
  273. package/dist/patterns/orchestration/index.d.ts +6 -0
  274. package/dist/patterns/orchestration/index.js +1 -0
  275. package/dist/patterns/reactive-layout/index.cjs +7 -6444
  276. package/dist/patterns/reactive-layout/index.d.cts +6 -6
  277. package/dist/patterns/reactive-layout/index.d.ts +6 -6
  278. package/dist/patterns/reactive-layout/index.js +1 -56
  279. package/dist/patterns/reduction/index.cjs +6 -0
  280. package/dist/patterns/reduction/index.d.cts +5 -0
  281. package/dist/patterns/reduction/index.d.ts +5 -0
  282. package/dist/patterns/reduction/index.js +1 -0
  283. package/dist/patterns/refine-loop/index.cjs +8 -0
  284. package/dist/patterns/refine-loop/index.d.cts +7 -0
  285. package/dist/patterns/refine-loop/index.d.ts +7 -0
  286. package/dist/patterns/refine-loop/index.js +1 -0
  287. package/dist/patterns/resilient-pipeline/index.cjs +1 -0
  288. package/dist/patterns/resilient-pipeline/index.d.cts +7 -0
  289. package/dist/patterns/resilient-pipeline/index.d.ts +7 -0
  290. package/dist/patterns/resilient-pipeline/index.js +1 -0
  291. package/dist/patterns/surface/index.cjs +14 -0
  292. package/dist/patterns/surface/index.d.cts +8 -0
  293. package/dist/patterns/surface/index.d.ts +8 -0
  294. package/dist/patterns/surface/index.js +1 -0
  295. package/dist/{reactive-layout-MQP--J3F.d.cts → reactive-layout-CpYb5qLP.d.cts} +2 -2
  296. package/dist/{reactive-layout-u5Ulnqag.d.ts → reactive-layout-D8u4wuUR.d.ts} +2 -2
  297. package/dist/reactive-log-DPzuUDj5.d.cts +190 -0
  298. package/dist/reactive-log-YuH9VYN8.d.ts +190 -0
  299. package/dist/{composite-aUCvjZVR.d.ts → reactive-map-CdbNoSgP.d.ts} +2 -67
  300. package/dist/{composite-C7PcQvcs.d.cts → reactive-map-DUeRmb9d.d.cts} +2 -67
  301. package/dist/resilience-Ba5-b4WD.d.cts +493 -0
  302. package/dist/resilience-CGRzhnD3.d.ts +493 -0
  303. package/dist/resilience-QAHKANT5.js +1 -0
  304. package/dist/{sugar-D02n5JjF.d.cts → sugar-BV0htudb.d.cts} +8 -4
  305. package/dist/{sugar-CCOxXK1e.d.ts → sugar-Dtyrq2_q.d.ts} +8 -4
  306. package/dist/topology-tree-CYHOwQZ_.d.ts +25 -0
  307. package/dist/topology-tree-DROUdq5B.d.cts +25 -0
  308. package/dist/types-O3GzJY2U.d.cts +401 -0
  309. package/dist/types-u64Ose53.d.ts +401 -0
  310. package/package.json +252 -22
  311. package/dist/ai-CaR_912Q.d.cts +0 -1033
  312. package/dist/ai-WlRltJV7.d.ts +0 -1033
  313. package/dist/chunk-3ZWCKRHX.js +0 -117
  314. package/dist/chunk-3ZWCKRHX.js.map +0 -1
  315. package/dist/chunk-7TAQJHQV.js +0 -103
  316. package/dist/chunk-7TAQJHQV.js.map +0 -1
  317. package/dist/chunk-APFNLIRG.js +0 -62
  318. package/dist/chunk-APFNLIRG.js.map +0 -1
  319. package/dist/chunk-AT5LKYNL.js +0 -395
  320. package/dist/chunk-AT5LKYNL.js.map +0 -1
  321. package/dist/chunk-BQ6RQQFF.js +0 -5087
  322. package/dist/chunk-BQ6RQQFF.js.map +0 -1
  323. package/dist/chunk-BVZYTZ5H.js +0 -599
  324. package/dist/chunk-BVZYTZ5H.js.map +0 -1
  325. package/dist/chunk-DST5DKZS.js +0 -1371
  326. package/dist/chunk-DST5DKZS.js.map +0 -1
  327. package/dist/chunk-GTE6PWRZ.js +0 -866
  328. package/dist/chunk-GTE6PWRZ.js.map +0 -1
  329. package/dist/chunk-HXZEYDUR.js +0 -94
  330. package/dist/chunk-HXZEYDUR.js.map +0 -1
  331. package/dist/chunk-J22W6HV3.js +0 -107
  332. package/dist/chunk-J22W6HV3.js.map +0 -1
  333. package/dist/chunk-J2VBW3DZ.js +0 -302
  334. package/dist/chunk-J2VBW3DZ.js.map +0 -1
  335. package/dist/chunk-JSCT3CR4.js +0 -38
  336. package/dist/chunk-JSCT3CR4.js.map +0 -1
  337. package/dist/chunk-JWBCY4NC.js +0 -330
  338. package/dist/chunk-JWBCY4NC.js.map +0 -1
  339. package/dist/chunk-K2AUJHVP.js +0 -2251
  340. package/dist/chunk-K2AUJHVP.js.map +0 -1
  341. package/dist/chunk-MJ2NKQQL.js +0 -119
  342. package/dist/chunk-MJ2NKQQL.js.map +0 -1
  343. package/dist/chunk-N6UR7YVY.js +0 -198
  344. package/dist/chunk-N6UR7YVY.js.map +0 -1
  345. package/dist/chunk-NC6S43JJ.js +0 -456
  346. package/dist/chunk-NC6S43JJ.js.map +0 -1
  347. package/dist/chunk-OFVJBJXR.js +0 -98
  348. package/dist/chunk-OFVJBJXR.js.map +0 -1
  349. package/dist/chunk-OHISZPOJ.js +0 -97
  350. package/dist/chunk-OHISZPOJ.js.map +0 -1
  351. package/dist/chunk-OU5CQKNW.js +0 -102
  352. package/dist/chunk-OU5CQKNW.js.map +0 -1
  353. package/dist/chunk-PF7GRZMW.js +0 -2712
  354. package/dist/chunk-PF7GRZMW.js.map +0 -1
  355. package/dist/chunk-PHOUUNK7.js +0 -2291
  356. package/dist/chunk-PHOUUNK7.js.map +0 -1
  357. package/dist/chunk-RNHBMHKA.js +0 -1665
  358. package/dist/chunk-RNHBMHKA.js.map +0 -1
  359. package/dist/chunk-SX52TAR4.js +0 -110
  360. package/dist/chunk-SX52TAR4.js.map +0 -1
  361. package/dist/chunk-VYPWMZ6H.js +0 -98
  362. package/dist/chunk-VYPWMZ6H.js.map +0 -1
  363. package/dist/chunk-WBZOVTYK.js +0 -171
  364. package/dist/chunk-WBZOVTYK.js.map +0 -1
  365. package/dist/chunk-WKNUIZOY.js +0 -354
  366. package/dist/chunk-WKNUIZOY.js.map +0 -1
  367. package/dist/chunk-X3VMZYBT.js +0 -713
  368. package/dist/chunk-X3VMZYBT.js.map +0 -1
  369. package/dist/chunk-X5R3GL6H.js +0 -525
  370. package/dist/chunk-X5R3GL6H.js.map +0 -1
  371. package/dist/chunk-XGPU467M.js +0 -136
  372. package/dist/chunk-XGPU467M.js.map +0 -1
  373. package/dist/compat/index.cjs.map +0 -1
  374. package/dist/compat/index.js.map +0 -1
  375. package/dist/compat/jotai/index.cjs.map +0 -1
  376. package/dist/compat/jotai/index.js.map +0 -1
  377. package/dist/compat/nanostores/index.cjs.map +0 -1
  378. package/dist/compat/nanostores/index.js.map +0 -1
  379. package/dist/compat/nestjs/index.cjs.map +0 -1
  380. package/dist/compat/nestjs/index.js.map +0 -1
  381. package/dist/compat/react/index.cjs.map +0 -1
  382. package/dist/compat/react/index.js.map +0 -1
  383. package/dist/compat/solid/index.cjs.map +0 -1
  384. package/dist/compat/solid/index.js.map +0 -1
  385. package/dist/compat/svelte/index.cjs.map +0 -1
  386. package/dist/compat/svelte/index.js.map +0 -1
  387. package/dist/compat/vue/index.cjs.map +0 -1
  388. package/dist/compat/vue/index.js.map +0 -1
  389. package/dist/compat/zustand/index.cjs.map +0 -1
  390. package/dist/compat/zustand/index.js.map +0 -1
  391. package/dist/core/index.cjs.map +0 -1
  392. package/dist/core/index.js.map +0 -1
  393. package/dist/extra/index.cjs.map +0 -1
  394. package/dist/extra/index.js.map +0 -1
  395. package/dist/extra/sources.cjs.map +0 -1
  396. package/dist/extra/sources.js.map +0 -1
  397. package/dist/graph/index.cjs.map +0 -1
  398. package/dist/graph/index.js.map +0 -1
  399. package/dist/index.cjs.map +0 -1
  400. package/dist/index.js.map +0 -1
  401. package/dist/patterns/ai.cjs +0 -7930
  402. package/dist/patterns/ai.cjs.map +0 -1
  403. package/dist/patterns/ai.d.cts +0 -10
  404. package/dist/patterns/ai.d.ts +0 -10
  405. package/dist/patterns/ai.js +0 -71
  406. package/dist/patterns/ai.js.map +0 -1
  407. package/dist/patterns/audit.cjs +0 -5805
  408. package/dist/patterns/audit.cjs.map +0 -1
  409. package/dist/patterns/audit.d.cts +0 -6
  410. package/dist/patterns/audit.d.ts +0 -6
  411. package/dist/patterns/audit.js +0 -29
  412. package/dist/patterns/audit.js.map +0 -1
  413. package/dist/patterns/demo-shell.cjs +0 -5604
  414. package/dist/patterns/demo-shell.cjs.map +0 -1
  415. package/dist/patterns/demo-shell.d.cts +0 -6
  416. package/dist/patterns/demo-shell.d.ts +0 -6
  417. package/dist/patterns/demo-shell.js +0 -15
  418. package/dist/patterns/demo-shell.js.map +0 -1
  419. package/dist/patterns/memory.cjs +0 -5283
  420. package/dist/patterns/memory.cjs.map +0 -1
  421. package/dist/patterns/memory.d.cts +0 -5
  422. package/dist/patterns/memory.d.ts +0 -5
  423. package/dist/patterns/memory.js +0 -20
  424. package/dist/patterns/memory.js.map +0 -1
  425. package/dist/patterns/reactive-layout/index.cjs.map +0 -1
  426. package/dist/patterns/reactive-layout/index.js.map +0 -1
  427. package/dist/storage-CMjUUuxn.d.ts +0 -190
  428. package/dist/storage-DdWlZo6U.d.cts +0 -190
@@ -0,0 +1,81 @@
1
+ import { N as NodeOptions, a as Node } from '../node-Cc1TniY8.cjs';
2
+ export { fileStorage, sqliteStorage } from './storage-node.cjs';
3
+ import './storage-core.cjs';
4
+
5
+ /**
6
+ * Git hook source — Node-only reactive source that polls a repository's HEAD
7
+ * and emits structured `GitEvent`s on every new commit.
8
+ *
9
+ * Isolated from `./adapters.ts` so that the universal `extra/index` barrel
10
+ * stays browser-safe. Access via `@graphrefly/graphrefly/extra/node`, which
11
+ * re-exports this module.
12
+ *
13
+ * @module
14
+ */
15
+
16
+ type ExtraOpts$1 = Omit<NodeOptions, "describeKind">;
17
+ /** Git hook type for {@link fromGitHook}. */
18
+ type GitHookType = "post-commit" | "post-merge" | "post-checkout" | "post-rewrite";
19
+ /** Structured git event emitted by {@link fromGitHook}. */
20
+ type GitEvent = {
21
+ hook: GitHookType;
22
+ commit: string;
23
+ files: string[];
24
+ message: string;
25
+ author: string;
26
+ timestamp_ns: number;
27
+ };
28
+ /** Options for {@link fromGitHook}. */
29
+ type FromGitHookOptions = ExtraOpts$1 & {
30
+ pollMs?: number;
31
+ include?: string[];
32
+ exclude?: string[];
33
+ /**
34
+ * Maximum consecutive poll errors before terminating the source. Prevents
35
+ * error storms when the repository is unavailable (e.g. deleted, corrupt,
36
+ * permissions lost). Default: `1` (terminate on first error — preserves
37
+ * pre-switchMap back-compat). Raise it (or set `Infinity`) to keep
38
+ * retrying indefinitely (legacy behavior).
39
+ */
40
+ maxConsecutiveErrors?: number;
41
+ };
42
+ /**
43
+ * Git change detection as a reactive source.
44
+ *
45
+ * @category extra
46
+ */
47
+ declare function fromGitHook(repoPath: string, opts?: FromGitHookOptions): Node<GitEvent>;
48
+
49
+ /**
50
+ * Filesystem-watching source. Isolated from `./sources.ts` so bundlers
51
+ * targeting the browser can import browser-safe sources (`fromTimer`,
52
+ * `fromRaf`, etc.) without pulling in `node:fs`/`node:path`.
53
+ */
54
+
55
+ type ExtraOpts = Omit<NodeOptions<unknown>, "describeKind">;
56
+ type FSEventType = "change" | "rename" | "create" | "delete";
57
+ type FSEvent = {
58
+ type: FSEventType;
59
+ path: string;
60
+ root: string;
61
+ relative_path: string;
62
+ src_path?: string;
63
+ dest_path?: string;
64
+ timestamp_ns: number;
65
+ };
66
+ type FromFSWatchOptions = ExtraOpts & {
67
+ recursive?: boolean;
68
+ debounce?: number;
69
+ include?: string[];
70
+ exclude?: string[];
71
+ };
72
+ /**
73
+ * Watches filesystem paths and emits debounced change events.
74
+ *
75
+ * Uses `fs.watch` only (no polling fallback). Teardown closes all watchers.
76
+ *
77
+ * @category extra
78
+ */
79
+ declare function fromFSWatch(paths: string | string[], opts?: FromFSWatchOptions): Node<FSEvent>;
80
+
81
+ export { type FSEvent, type FSEventType, type FromFSWatchOptions, type FromGitHookOptions, type GitEvent, type GitHookType, fromFSWatch, fromGitHook };
@@ -0,0 +1,81 @@
1
+ import { N as NodeOptions, a as Node } from '../node-Cc1TniY8.js';
2
+ export { fileStorage, sqliteStorage } from './storage-node.js';
3
+ import './storage-core.js';
4
+
5
+ /**
6
+ * Git hook source — Node-only reactive source that polls a repository's HEAD
7
+ * and emits structured `GitEvent`s on every new commit.
8
+ *
9
+ * Isolated from `./adapters.ts` so that the universal `extra/index` barrel
10
+ * stays browser-safe. Access via `@graphrefly/graphrefly/extra/node`, which
11
+ * re-exports this module.
12
+ *
13
+ * @module
14
+ */
15
+
16
+ type ExtraOpts$1 = Omit<NodeOptions, "describeKind">;
17
+ /** Git hook type for {@link fromGitHook}. */
18
+ type GitHookType = "post-commit" | "post-merge" | "post-checkout" | "post-rewrite";
19
+ /** Structured git event emitted by {@link fromGitHook}. */
20
+ type GitEvent = {
21
+ hook: GitHookType;
22
+ commit: string;
23
+ files: string[];
24
+ message: string;
25
+ author: string;
26
+ timestamp_ns: number;
27
+ };
28
+ /** Options for {@link fromGitHook}. */
29
+ type FromGitHookOptions = ExtraOpts$1 & {
30
+ pollMs?: number;
31
+ include?: string[];
32
+ exclude?: string[];
33
+ /**
34
+ * Maximum consecutive poll errors before terminating the source. Prevents
35
+ * error storms when the repository is unavailable (e.g. deleted, corrupt,
36
+ * permissions lost). Default: `1` (terminate on first error — preserves
37
+ * pre-switchMap back-compat). Raise it (or set `Infinity`) to keep
38
+ * retrying indefinitely (legacy behavior).
39
+ */
40
+ maxConsecutiveErrors?: number;
41
+ };
42
+ /**
43
+ * Git change detection as a reactive source.
44
+ *
45
+ * @category extra
46
+ */
47
+ declare function fromGitHook(repoPath: string, opts?: FromGitHookOptions): Node<GitEvent>;
48
+
49
+ /**
50
+ * Filesystem-watching source. Isolated from `./sources.ts` so bundlers
51
+ * targeting the browser can import browser-safe sources (`fromTimer`,
52
+ * `fromRaf`, etc.) without pulling in `node:fs`/`node:path`.
53
+ */
54
+
55
+ type ExtraOpts = Omit<NodeOptions<unknown>, "describeKind">;
56
+ type FSEventType = "change" | "rename" | "create" | "delete";
57
+ type FSEvent = {
58
+ type: FSEventType;
59
+ path: string;
60
+ root: string;
61
+ relative_path: string;
62
+ src_path?: string;
63
+ dest_path?: string;
64
+ timestamp_ns: number;
65
+ };
66
+ type FromFSWatchOptions = ExtraOpts & {
67
+ recursive?: boolean;
68
+ debounce?: number;
69
+ include?: string[];
70
+ exclude?: string[];
71
+ };
72
+ /**
73
+ * Watches filesystem paths and emits debounced change events.
74
+ *
75
+ * Uses `fs.watch` only (no polling fallback). Teardown closes all watchers.
76
+ *
77
+ * @category extra
78
+ */
79
+ declare function fromFSWatch(paths: string | string[], opts?: FromFSWatchOptions): Node<FSEvent>;
80
+
81
+ export { type FSEvent, type FSEventType, type FromFSWatchOptions, type FromGitHookOptions, type GitEvent, type GitHookType, fromFSWatch, fromGitHook };
@@ -0,0 +1,2 @@
1
+ import{a as q,b as z}from"../chunk-3JXNEPCD.js";import"../chunk-I6VIH3VA.js";import{v as M}from"../chunk-Z4HDAS2Q.js";import"../chunk-4VVTGLXJ.js";import{d as l,e as s,f as _}from"../chunk-2PMCKKRK.js";import{F as k,p as T}from"../chunk-ZB5EHBIO.js";import{b as N,j as O}from"../chunk-CK2E7BTU.js";import{a as K}from"../chunk-QYADASLV.js";function B(c,w){let{pollMs:y=5e3,include:b,exclude:F,maxConsecutiveErrors:S=1}=w??{},x=b?.map(l)??[],E=F?.map(l)??[],{execFileSync:u}=K("child_process"),p=a=>u("git",a,{cwd:c,encoding:"utf-8"}).trim(),i,t=0;return M(_(0,{period:y}),()=>k(a=>{try{let e=p(["rev-parse","HEAD"]);if(!e)return t=0,()=>{};if(i===void 0)return i=e,t=0,()=>{};if(e===i)return t=0,()=>{};let r=p(["diff","--name-only",`${i}..${e}`]).split(`
2
+ `).filter(Boolean);x.length>0&&(r=r.filter(m=>s(m,x))),E.length>0&&(r=r.filter(m=>!s(m,E)));let d=p(["log","-1","--format=%s",e]),v=p(["log","-1","--format=%an",e]);a.emit({hook:"post-commit",commit:e,files:r,message:d,author:v,timestamp_ns:T()}),i=e,t=0}catch(e){t+=1,t>=S&&a.down([[O,e]])}return()=>{}}))}import{existsSync as D,watch as $}from"fs";import{resolve as P}from"path";function Q(c){return{describeKind:"producer",...c}}function ce(c,w){let y=Array.isArray(c)?c:[c];if(y.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:b=!0,debounce:F=100,include:S,exclude:x,...E}=w??{},u=S?.map(l)??[],p=(x??["**/node_modules/**","**/.git/**","**/dist/**"]).map(l);return k(i=>{let t=new Map,a=[],e=!1,r=!1,d=0,v=()=>{for(let o of a.splice(0))o.close()},m=o=>{r||(r=!0,e=!0,n!==void 0&&clearTimeout(n),n=void 0,t.clear(),v(),i.down([[O,o]]))},n,W=o=>{if(n=void 0,e||r||t.size===0)return;let f=[];for(let g of t.values())f.push([N,g]);t.clear(),!(e||r||o!==d)&&i.down(f)};try{for(let o of y){let f=$(o,{recursive:b},(g,G)=>{if(e||r||G==null)return;let R=String(G).replaceAll("\\","/"),h=P(o,String(G)).replaceAll("\\","/"),C=P(o).replaceAll("\\","/"),A=R.startsWith("./")?R.slice(2):R;if(!(u.length===0||s(h,u)||s(A,u))||s(h,p)||s(A,p))return;let H="change";if(g==="rename")try{H=D(h)?"create":"delete"}catch{H="rename"}t.set(h,{type:H,path:h,root:C,relative_path:A,timestamp_ns:T()}),n!==void 0&&clearTimeout(n);let j=d;n=setTimeout(()=>W(j),F)});f.on("error",g=>m(g)),a.push(f)}}catch(o){m(o)}return()=>{e=!0,d+=1,n!==void 0&&clearTimeout(n),n=void 0,v(),t.clear()}},Q(E))}export{q as fileStorage,ce as fromFSWatch,B as fromGitHook,z as sqliteStorage};
@@ -0,0 +1 @@
1
+ "use strict";var oe=Object.defineProperty;var nn=Object.getOwnPropertyDescriptor;var tn=Object.getOwnPropertyNames;var rn=Object.prototype.hasOwnProperty;var A=(o,e)=>()=>(o&&(e=o(o=0)),e);var on=(o,e)=>{for(var t in e)oe(o,t,{get:e[t],enumerable:!0})},sn=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tn(e))!rn.call(o,n)&&n!==t&&oe(o,n,{get:()=>e[n],enumerable:!(r=nn(e,n))||r.enumerable});return o};var an=o=>sn(oe({},"__esModule",{value:!0}),o);function q(){return Math.trunc(performance.now()*1e6)}function ye(){return Date.now()*1e6}var se=A(()=>{"use strict"});var C,m,M,g,I,F,W,D,c,h,L,ie,dn,ae,un,ln,de,ve,we,Ne,ue,G=A(()=>{"use strict";C=Symbol.for("graphrefly/START"),m=Symbol.for("graphrefly/DATA"),M=Symbol.for("graphrefly/DIRTY"),g=Symbol.for("graphrefly/RESOLVED"),I=Symbol.for("graphrefly/INVALIDATE"),F=Symbol.for("graphrefly/PAUSE"),W=Symbol.for("graphrefly/RESUME"),D=Symbol.for("graphrefly/TEARDOWN"),c=Symbol.for("graphrefly/COMPLETE"),h=Symbol.for("graphrefly/ERROR"),L=Object.freeze([M]),ie=Object.freeze([g]),dn=Object.freeze([I]),ae=Object.freeze([C]),un=Object.freeze([c]),ln=Object.freeze([D]),de=Object.freeze([L]),ve=Object.freeze([ie]),we=Object.freeze([dn]),Ne=Object.freeze([un]),ue=Object.freeze([ln])});function xe(o){o.registerCodec(cn)}var cn,Ee=A(()=>{"use strict";cn={name:"json",version:1,contentType:"application/json",encode(o){let e=JSON.stringify(o);return new TextEncoder().encode(e)},decode(o,e){let t=new TextDecoder().decode(o);return JSON.parse(t)}}});function K(o){if(o==null)return fn;let{type:e,id:t,...r}=o;return{type:e??"system",id:t??"",...r}}var fn,ke=A(()=>{"use strict";fn={type:"system",id:""}});function Re(){return le>0||pn}function Se(){return le>0}function De(o){le>0?hn.push(o):o()}function Y(o,e,t){if(e.length===0)return;if(e.length===1){let u=t(e[0][0]);if(u<3||!Re()){o(e);return}(u>=5?Me:u===4?Ae:Oe).push(()=>o(e));return}let r=e.length,n=r,s=r,a=r,i=0;for(;i<r&&t(e[i][0])<3;)i++;for(n=i;i<r&&t(e[i][0])===3;)i++;for(s=i;i<r&&t(e[i][0])===4;)i++;a=i;let d=Re();if(n>0){let u=e.slice(0,n);o(u)}if(s>n){let u=e.slice(n,s);d?Oe.push(()=>o(u)):o(u)}if(a>s){let u=e.slice(s,a);d?Ae.push(()=>o(u)):o(u)}if(r>a){let u=e.slice(a,r);d?Me.push(()=>o(u)):o(u)}}var le,pn,Oe,Ae,Me,hn,Ce=A(()=>{"use strict";le=0,pn=!1,Oe=[],Ae=[],Me=[],hn=[]});function Ie(o){o.registerMessageType(C,{tier:0,wireCrossing:!1}),o.registerMessageType(M,{tier:1,wireCrossing:!1}),o.registerMessageType(I,{tier:1,wireCrossing:!1,metaPassthrough:!1}),o.registerMessageType(F,{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(h,{tier:4,wireCrossing:!0,metaPassthrough:!1}),o.registerMessageType(D,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var J,Fe=A(()=>{"use strict";G();J=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=t=>{let r=this._messageTypes.get(t);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}registerMessageType(e,t){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:t.tier,wireCrossing:t.wireCrossing??t.tier>=3,metaPassthrough:t.metaPassthrough??!0}),this}messageTier(e){let t=this._messageTypes.get(e);return t!=null?t.tier:1}isWireCrossing(e){let t=this._messageTypes.get(e);return t!=null?t.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let t=this._messageTypes.get(e);return t!=null?t.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.")}}});var P,Le=A(()=>{"use strict";P=class extends Error{actor;action;nodeName;constructor(e,t){super(t??`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 ce(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(ce);if(typeof o=="object"&&o!==null){let e={};for(let t of Object.keys(o).sort())e[t]=ce(o[t]);return e}return null}function bn(o){let e=gn.encode(o),t=e.length,r=t*8,n=t+9+63&-64,s=new Uint8Array(n);s.set(e),s[t]=128;let a=new DataView(s.buffer);a.setUint32(n-4,r>>>0,!1),a.setUint32(n-8,Math.floor(r/4294967296)>>>0,!1);let i=1779033703,d=3144134277,u=1013904242,l=2773480762,f=1359893119,T=2600822924,y=528734635,N=1541459225,k=new Uint32Array(64),v=(O,x)=>O>>>x|O<<32-x;for(let O=0;O<n;O+=64){for(let E=0;E<16;E++)k[E]=a.getUint32(O+E*4,!1);for(let E=16;E<64;E++){let U=k[E-15],H=k[E-2],$=v(U,7)^v(U,18)^U>>>3,re=v(H,17)^v(H,19)^H>>>10;k[E]=k[E-16]+$+k[E-7]+re>>>0}let x=i,R=d,V=u,ne=l,S=f,j=T,z=y,te=N;for(let E=0;E<64;E++){let U=v(S,6)^v(S,11)^v(S,25),H=S&j^~S&z,$=te+U+H+mn[E]+k[E]>>>0,re=v(x,2)^v(x,13)^v(x,22),Qe=x&R^x&V^R&V,en=re+Qe>>>0;te=z,z=j,j=S,S=ne+$>>>0,ne=V,V=R,R=x,x=$+en>>>0}i=i+x>>>0,d=d+R>>>0,u=u+V>>>0,l=l+ne>>>0,f=f+S>>>0,T=T+j>>>0,y=y+z>>>0,N=N+te>>>0}let w=O=>O.toString(16).padStart(8,"0");return w(i)+w(d)+w(u)+w(l)+w(f)+w(T)+w(y)+w(N)}function fe(o){let e=ce(o??null),t=JSON.stringify(e);return bn(t).slice(0,16)}function Tn(){let o=globalThis.crypto;if(o?.randomUUID)return o.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),t=e()+e()+e()+e();return`${t.slice(0,8)}-${t.slice(8,12)}-4${t.slice(13,16)}-${(parseInt(t.slice(16,17),16)&3|8).toString(16)}${t.slice(17,20)}-${t.slice(20,32)}`}function pe(o,e,t){let r=t?.id??Tn();if(o===0)return{id:r,version:0};let s=(t?.hash??fe)(e);return{id:r,version:0,cid:s,prev:null}}function Ge(o,e,t){o.version+=1,"cid"in o&&(o.prev=o.cid,o.cid=t(e))}var mn,gn,Pe=A(()=>{"use strict";mn=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]),gn=new TextEncoder});function He(o){return{node:o,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function he(o){o.prevData=void 0,o.dirty=!1,o.involvedThisWave=!1,o.dataBatch.length=0,o.terminal=void 0}function X(o){return o.length===0?o:typeof o[0]=="symbol"?[o]:o}function _(o,e,t){let r=We(o)?o:[],n=typeof o=="function"?o:typeof e=="function"?e:void 0,s={};return We(o)?s=(me(e)?e:t)??{}:me(o)?s=o:s=(me(e)?e:t)??{},new Z(r,n,s)}var Ve,Ue,_n,yn,ge,Z,We,me,be=A(()=>{"use strict";Ee();ke();Ce();se();Fe();Le();G();Pe();Ve=()=>{},Ue=100;_n=(o,e,t,r)=>{t.direction==="down-in"&&o._onDepMessage(t.depIndex,e)},yn=(o,e,t,r)=>{let n=o;if(n._status==="completed"||n._status==="errored")return;let s=n._cached,a=s===void 0?[ae]:[ae,[m,s]];n._status==="dirty"&&a.push(L),Y(e,a,n._config.tierOf)},ge=new J({onMessage:_n,onSubscribe:yn});Ie(ge);xe(ge);Z=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;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,t,r){this._config=r.config??ge,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=t,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&t==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??fe;let n=r.versioning??this._config.defaultVersioning;this._versioningLevel=n,this._versioning=n!=null?pe(n,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(He);let s={};for(let[i,d]of Object.entries(r.meta??{})){let u={initial:d,name:`${r.name??"node"}:meta:${i}`,describeKind:"state",config:this._config};r.guard!=null&&(u.guard=r.guard),s[i]=new o([],void 0,u)}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(X(i))},up(i){a._emitUp(X(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,t){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 n=t?.hash??this._hashFn;n!==this._hashFn&&(this._hashFn=n);let s=this._cached===void 0?void 0:this._cached,a=this._versioning,i=a?.id??t?.id,d=a?.version??0,u=pe(e,s,{id:i,hash:n});u.version=d,this._versioning=u,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 t=K(e);if(this._guard!=null&&!this._guard(t,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(t,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let t=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!t&&!r)return;let n=K(e?.actor),s=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(n,s))throw new P({actor:n,action:s,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(n,s))throw new P({actor:n,action:s,nodeName:this.name})}this._lastMutation={actor:n,timestamp_ns:ye()}}down(e,t){let r=X(e);r.length!==0&&(this._checkGuard(t),this._emit(r))}emit(e,t){this._checkGuard(t),this._emit([[m,e]])}up(e,t){if(this._deps.length===0)return;let r=X(e);if(r.length===0)return;this._checkGuard(t);let n=t??{internal:!0};this._validateUpTiers(r);for(let s of this._deps)s.node.up?.(r,n)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let t of this._deps)t.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let t=this._config.tierOf;for(let r of e){let n=t(r[0]);if(n===3||n===4)throw new Error(`Node "${this.name}": tier-${n} 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,t){if(t!=null&&this._guard!=null){let d=K(t);if(!this._guard(d,"observe"))throw new P({actor:d,action:"observe",nodeName:this.name})}let n=this._isTerminal&&this._resubscribable;if(n){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 d of this._deps)he(d)}this._sinkCount+=1;let s;try{s=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:n},this._actions)}catch(d){throw this._sinkCount-=1,d}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(d){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof s=="function")try{s()}catch{}throw d}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[t]=this._sinks;this._sinks=t}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,t=0;try{for(let r=0;r<e;r++){let n=r,s=this._deps[r];s.unsub=Ve,s.unsub=s.node.subscribe(a=>{if(s.unsub===null)return;let i=this._config.tierOf,d=!1;for(let u of a)i(u[0])>=3&&(d=!0),this._config.onMessage(this,u,{direction:"down-in",depIndex:n},this._actions);d&&this._maybeRunFnOnSettlement()}),t++}}catch(r){this._deps[t].unsub=null;for(let n=0;n<t;n++){let s=this._deps[n];if(s.unsub!=null){let a=s.unsub;s.unsub=null;try{a()}catch{}he(s)}}throw this._dirtyDepCount=0,r}}_addDep(e){for(let n=0;n<this._deps.length;n++)if(this._deps[n].node===e)return n;let t=this._deps.length,r=He(e);if(this._deps.push(r),this._sinks==null)return t;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(de),r.unsub=Ve;try{r.unsub=e.subscribe(n=>{if(r.unsub===null)return;let s=this._config.tierOf,a=!1;for(let i of n)s(i[0])>=3&&(a=!0),this._config.onMessage(this,i,{direction:"down-in",depIndex:t},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(n){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,n}return t}_deactivate(e=!1){let t=this._cleanup;if(this._cleanup=void 0,typeof t=="function")try{t()}catch(r){this._emit([[h,this._wrapFnError("cleanup threw",r)]])}else if(t!=null&&typeof t=="object"){let r=t.deactivate;if(typeof r=="function")try{r()}catch(n){this._emit([[h,this._wrapFnError("cleanup.deactivate threw",n)]])}}for(let r of this._deps){if(r.unsub!=null){let n=r.unsub;r.unsub=null;try{n()}catch{}}he(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,t){let r=this._deps[e],n=t[0];if(this._inspectorHooks!=null){let s={kind:"dep_message",depIndex:e,message:t};for(let a of this._inspectorHooks)a(s)}if(n!==C){if(n===M){this._depDirtied(r);return}if(n===I){this._depInvalidated(r),this._emit(we);return}if(n===F||n===W){this._emit([t]);return}if(n===D){this._emit(ue);return}if(n===m)this._depSettledAsData(r,t[1]);else if(n===g)this._depSettledAsResolved(r);else if(n===c)this._depSettledAsTerminal(r,!0);else if(n===h)this._depSettledAsTerminal(r,t[1]);else{this._emit([t]);return}if(!this._fn){(n===m||n===g)&&this._emit([t]),(n===c||n===h)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(de))}_depSettledAsData(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(t),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=t,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._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(ve),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(t=>t.terminal!==void 0&&t.terminal!==!0);if(e!=null){this._autoError&&this._emit([[h,e.terminal]]);return}this._autoComplete&&this._deps.every(t=>t.terminal!==void 0)&&this._emit(Ne)}_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([[h,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([[h,this._wrapFnError("cleanup.beforeRun threw",i)]]);return}}}let t=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=t[a];i!=null&&i.length>0&&(this._deps[a].prevData=i[i.length-1])}let n=this._deps.map(a=>a.terminal),s={prevData:r,terminalDeps:n,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let a={kind:"run",batchData:t,prevData:r};for(let i of this._inspectorHooks)i(a)}this._isExecutingFn=!0;try{let a=this._fn(t,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([[h,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>Ue?(this._rerunDepth=0,this._emit([[h,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${Ue} \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,t){let r=t instanceof Error?t.message:String(t);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:t})}_frameBatch(e){let t=this._config.tierOf;if(e.length===1)return t(e[0][0])===3&&this._status!=="dirty"?[L,e[0]]:e;let r=!0,n=!1,s=!1,a=-1;for(let d of e){let u=t(d[0]);u<a&&(r=!1),u===3&&(n=!0),d[0]===M&&(s=!0),a=u}let i=e;if(!r){let d=e.map((u,l)=>({m:u,i:l,tier:t(u[0])}));d.sort((u,l)=>u.tier-l.tier||u.i-l.i),i=d.map(u=>u.m)}if(n&&!s&&this._status!=="dirty"){let d=0;for(;d<i.length&&t(i[d][0])===0;)d++;return d===0?[L,...i]:[...i.slice(0,d),L,...i.slice(d)]}return i}_emit(e){if(e.length===0)return;let t=e;if(this._isTerminal&&!this._resubscribable){let i=e.filter(d=>d[0]===D||d[0]===I);if(i.length===0)return;t=i}t=this._frameBatch(t);let n=null;for(let i=0;i<t.length;i++){let d=t[i],u=d[0];if(u!==F&&u!==W){n?.push(d);continue}if(d.length<2)throw new Error(`Node "${this.name}": [[${u===F?"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=d[1];if(u===F)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 T=this._pauseBuffer;this._pauseBuffer=[],this._emit(T)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}l?n?.push(d):n==null&&(n=t.slice(0,i))}if(n!=null){if(n.length===0)return;t=n}if(this._hasMeta&&t.some(i=>i[0]===D))for(let i of Object.keys(this.meta))try{this.meta[i]._emit(ue)}catch{}let{finalMessages:s,equalsError:a}=this._updateState(t);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,d=[];for(let u of s){let l=i(u[0]);l<3||l===5?d.push(u):this._pauseBuffer.push(u)}d.length>0&&this._dispatchOrAccumulate(d)}else this._dispatchOrAccumulate(s);a!=null&&this._emit([[h,a]])}_updateState(e){let t=this._config.tierOf,r,n,s=-1,a=0;for(let l of e)t(l[0])===3&&a++;let i=a<=1,d=-1;if(this._versioning!=null&&a>1){for(let l=e.length-1;l>=0;l--)if(e[l][0]===m){d=l;break}}for(let l=0;l<e.length;l++){let f=e[l],T=f[0];if(T===m){if(f.length>=2){let y=!1;if(i&&this._cached!==void 0)try{y=this._equals(this._cached,f[1])}catch(N){n=this._wrapFnError("equals threw",N),s=l;break}if(y){r==null&&(r=e.slice(0,l)),r.push(ie),this._status="resolved";continue}this._cached=f[1],this._versioning!=null&&(d<0||l===d)&&Ge(this._versioning,f[1],this._hashFn)}this._status="settled",r?.push(f)}else if(r?.push(f),T===M)this._status="dirty";else if(T===g)this._status="resolved";else if(T===c)this._status="completed";else if(T===h)this._status="errored";else if(T===I){this._cached=void 0,this._status="dirty";let y=this._cleanup;if(typeof y=="function"){this._cleanup=void 0;try{y()}catch{}}else if(y!=null&&typeof y=="object"){let N=y.invalidate;if(typeof N=="function")try{N()}catch{}}}else T===D&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let u=s>=0?r??e.slice(0,s):r??e;return n!=null?{finalMessages:u,equalsError:n}:{finalMessages:u}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let t=[...this._sinks];for(let r of t)r(e)};_dispatchOrAccumulate(e){if(Se()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],De(()=>this._flushBatchPending()));for(let t of e)this._batchPendingMessages.push(t);return}Y(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let t=this._frameBatch(e);Y(this._deliverToSinks,t,this._config.tierOf)}},We=o=>Array.isArray(o),me=o=>typeof o=="object"&&o!=null&&!Array.isArray(o)});function vn(o,e,t){return t?!1:o.some((r,n)=>!(r!=null&&r.length>0)&&e.prevData[n]===void 0)}function b(o,e){return _((r,n,s)=>o(n,s)??void 0,{describeKind:"producer",...e})}function Be(o,e,t){let r=t?.partial??!1;return _(o,(s,a,i)=>{if(vn(s,i,r)){a.down([[g]]);return}let d=s.map((u,l)=>u!=null&&u.length>0?u.at(-1):i.prevData[l]);a.emit(e(d,i))},{describeKind:"derived",...t})}var Te=A(()=>{"use strict";G();be()});function _e(o){return{describeKind:"producer",...o}}function je(o,e){return b(t=>{let r=!1;try{for(let n of o){if(r)return;t.emit(n)}r||t.down([[c]])}catch(n){r||t.down([[h,n]])}return()=>{r=!0}},_e(e))}function wn(o){return o!=null&&typeof o.then=="function"}function Nn(o,e){let{signal:t,...r}=e??{};return b(n=>{let s=!1,a=()=>{s||(s=!0,n.down([[h,t.reason]]))};if(t?.aborted){a();return}return t?.addEventListener("abort",a,{once:!0}),Promise.resolve(o).then(i=>{s||(s=!0,t?.removeEventListener("abort",a),n.emit(i),n.down([[c]]))},i=>{s||(s=!0,t?.removeEventListener("abort",a),n.down([[h,i]]))}),()=>{s=!0,t?.removeEventListener("abort",a)}},_e(r))}function xn(o,e){let{signal:t,...r}=e??{};return b(n=>{let s=new AbortController,a=()=>s.abort(t?.reason);t?.aborted?s.abort(t.reason):t?.addEventListener("abort",a,{once:!0});let i=t??s.signal,d=!1,u=o[Symbol.asyncIterator](),l=()=>{d||i.aborted||Promise.resolve(u.next()).then(f=>{if(!(d||i.aborted)){if(f.done){n.down([[c]]);return}n.emit(f.value),l()}},f=>{!d&&!i.aborted&&n.down([[h,f]])})};return l(),()=>{d=!0,t?.removeEventListener("abort",a),s.abort(),Promise.resolve(u.return?.()).catch(()=>{})}},_e(r))}function En(o){return o!=null&&typeof o=="object"&&"cache"in o&&typeof o.subscribe=="function"}function B(o,e){if(En(o))return o;if(wn(o))return Nn(o,e);if(o!=null){let t=o;if(typeof t[Symbol.asyncIterator]=="function")return xn(o,e);if(typeof t[Symbol.iterator]=="function")return je(o,e)}return kn(o)}function kn(...o){return je(o,void 0)}var ze=A(()=>{"use strict";G();Te()});var pt={};on(pt,{audit:()=>Xn,buffer:()=>Qn,bufferCount:()=>et,bufferTime:()=>tt,catchError:()=>ft,combine:()=>Ke,combineLatest:()=>ut,concat:()=>Bn,concatMap:()=>qn,debounce:()=>Je,debounceTime:()=>lt,delay:()=>Yn,distinctUntilChanged:()=>Pn,elementAt:()=>Ln,exhaustMap:()=>$n,filter:()=>$e,find:()=>Fn,first:()=>Cn,flatMap:()=>Kn,interval:()=>st,last:()=>In,map:()=>An,merge:()=>Hn,mergeMap:()=>Ye,pairwise:()=>Vn,pausable:()=>at,race:()=>jn,reduce:()=>Rn,repeat:()=>it,rescue:()=>Ze,sample:()=>Jn,scan:()=>Mn,skip:()=>qe,switchMap:()=>zn,take:()=>Q,takeUntil:()=>Dn,takeWhile:()=>Sn,tap:()=>Gn,throttle:()=>Xe,throttleTime:()=>ct,timeout:()=>Zn,valve:()=>dt,window:()=>ot,windowCount:()=>nt,windowTime:()=>rt,withLatestFrom:()=>Un,zip:()=>Wn});module.exports=an(pt);se();G();be();Te();ze();function p(o){return{describeKind:"derived",...o}}function An(o,e,t){return _([o],(r,n)=>{let s=r[0];if(s==null||s.length===0){n.down([[g]]);return}for(let a of s)n.emit(e(a))},p(t))}function $e(o,e,t){return _([o],(r,n)=>{let s=r[0];if(s==null||s.length===0){n.down([[g]]);return}let a=!1;for(let i of s)e(i)&&(n.emit(i),a=!0);a||n.down([[g]])},p(t))}function Mn(o,e,t,r){return _([o],(n,s,a)=>{"acc"in a.store||(a.store.acc=t);let i=n[0];if(i==null||i.length===0){s.down([[g]]);return}for(let d of i)a.store.acc=e(a.store.acc,d),s.emit(a.store.acc)},{...p(r),initial:t,resetOnTeardown:!0})}function Rn(o,e,t,r){return _([o],(n,s,a)=>{if("acc"in a.store||(a.store.acc=t),a.terminalDeps[0]===!0){s.emit(a.store.acc),s.down([[c]]);return}let i=n[0];if(i==null||i.length===0){s.down([[g]]);return}for(let d of i)a.store.acc=e(a.store.acc,d)},{...p(r),completeWhenDepsComplete:!1})}function Q(o,e,t){return e<=0?_([o],(r,n,s)=>{s.store.completed||(s.store.completed=!0,n.down([[c]]))},{...p(t),completeWhenDepsComplete:!1}):_([o],(r,n,s)=>{if("taken"in s.store||(s.store.taken=0),s.store.done){n.down([[g]]);return}if(s.terminalDeps[0]===!0){s.store.done=!0,n.down([[c]]);return}let a=r[0];if(a==null||a.length===0){n.down([[g]]);return}for(let i of a)if(s.store.taken++,n.emit(i),s.store.taken>=e){s.store.done=!0,n.down([[c]]);return}},{...p(t),completeWhenDepsComplete:!1})}function qe(o,e,t){return _([o],(r,n,s)=>{"skipped"in s.store||(s.store.skipped=0);let a=r[0];if(a==null||a.length===0){n.down([[g]]);return}let i=!1;for(let d of a)s.store.skipped++,s.store.skipped<=e||(n.emit(d),i=!0);i||n.down([[g]])},p(t))}function Sn(o,e,t){return _([o],(r,n,s)=>{if(s.store.done){n.down([[g]]);return}let a=r[0];if(a==null||a.length===0){n.down([[g]]);return}for(let i of a){if(!e(i)){s.store.done=!0,n.down([[c]]);return}n.emit(i)}},{...p(t),completeWhenDepsComplete:!1})}function Dn(o,e,t){let r=t?.predicate??(a=>a[0]===m),{predicate:n,...s}=t??{};return b(a=>{let i=!1,d=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]===h)&&(i=!0,a.down([f]))}}),u=e.subscribe(l=>{if(!i)for(let f of l){if(i)return;if(r(f)){i=!0,a.down([[c]]);return}}});return()=>{d(),u()}},p(s))}function Cn(o,e){return Q(o,1,e)}function In(o,e){let{defaultValue:t,...r}=e??{},n=e!=null&&Object.hasOwn(e,"defaultValue");return _([o],(s,a,i)=>{if(i.terminalDeps[0]===!0){i.store.has?a.emit(i.store.latest):n&&a.emit(t),a.down([[c]]);return}let d=s[0];if(d==null||d.length===0){a.down([[g]]);return}i.store.latest=d.at(-1),i.store.has=!0},{...p(r),completeWhenDepsComplete:!1})}function Fn(o,e,t){return Q($e(o,e,t),1,t)}function Ln(o,e,t){return Q(qe(o,e,t),1,t)}function Gn(o,e,t){if(typeof e=="function")return _([o],(n,s)=>{let a=n[0];if(a==null||a.length===0){s.down([[g]]);return}for(let i of a)e(i),s.emit(i)},p(t));let r=e;return _([o],(n,s,a)=>{if(a.terminalDeps[0]!==void 0){a.terminalDeps[0]===!0?(r.complete?.(),s.down([[c]])):(r.error?.(a.terminalDeps[0]),s.down([[h,a.terminalDeps[0]]]));return}let i=n[0];if(i==null||i.length===0){s.down([[g]]);return}for(let d of i)r.data?.(d),s.emit(d)},{...p(t),completeWhenDepsComplete:!1})}function Pn(o,e=Object.is,t){return _([o],(r,n,s)=>{let a=r[0];if(a==null||a.length===0){n.down([[g]]);return}let i=!1;for(let d of a)s.store.hasPrev&&e(s.store.prev,d)||(s.store.prev=d,s.store.hasPrev=!0,n.emit(d),i=!0);i||n.down([[g]])},p(t))}function Vn(o,e){return _([o],(t,r,n)=>{let s=t[0];if(s==null||s.length===0){r.down([[g]]);return}let a=!1;for(let i of s)if(!n.store.hasPrev)n.store.prev=i,n.store.hasPrev=!0;else{let d=[n.store.prev,i];n.store.prev=i,r.emit(d),a=!0}a||r.down([[g]])},p(e))}function Ke(...o){let e=[...o];return Be(e,t=>t,{...p(),equals:(t,r)=>{if(t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(!Object.is(t[n],r[n]))return!1;return!0}})}function Un(o,e,t){return _([o,e],(r,n,s)=>{let a=r[0],i=r[1],d=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){n.down([[g]]);return}for(let u of a)n.emit([u,d])}else n.down([[g]])},p(t))}function Hn(...o){return o.length===0?b(e=>{e.down([[c]])},p()):b(e=>{let t=o.length,r=0,n=[];for(let s of o){let a=s.subscribe(i=>{for(let d of i)d[0]===m?e.emit(d[1]):d[0]===c?(r+=1,r>=t&&e.down([[c]])):d[0]===h&&e.down([d])});n.push(a)}return()=>{for(let s of n)s()}},p())}function Wn(...o){let e=o.length;return e===0?b(t=>{t.emit([]),t.down([[c]])},p()):b(t=>{let r=Array.from({length:e},()=>[]),n=e;function s(){for(;r.every(i=>i.length>0);){let i=r.map(d=>d.shift());t.emit(i)}}let a=[];for(let i=0;i<e;i++){let d=i,u=o[i].subscribe(l=>{for(let f of l)f[0]===m?(r[d].push(f[1]),s()):f[0]===c?(n-=1,(n===0||r[d].length===0)&&t.down([[c]])):f[0]===h&&t.down([f])});a.push(u)}return()=>{for(let i of a)i()}},p())}function Bn(o,e,t){return b(r=>{let n=0,s=[],a,i;return i=e.subscribe(d=>{for(let u of d)n===0?u[0]===m?s.push(u[1]):u[0]===h&&r.down([u]):u[0]===m?r.emit(u[1]):(u[0]===c||u[0]===h)&&r.down([u])}),a=o.subscribe(d=>{for(let u of d)if(n===0)if(u[0]===m)r.emit(u[1]);else if(u[0]===c){n=1;for(let l of s)r.emit(l);s.length=0}else u[0]===h&&r.down([u])}),()=>{a?.(),i?.()}},p(t))}function jn(...o){return o.length===0?b(e=>{e.down([[c]])},p()):o.length===1?_([o[0]],(e,t)=>{let r=e[0];if(r==null||r.length===0){t.down([[g]]);return}for(let n of r)t.emit(n)},p()):b(e=>{let t=null,r=[];for(let n=0;n<o.length;n++){let s=n,a=o[n].subscribe(i=>{for(let d of i){if(t!==null&&s!==t)return;d[0]===m?(t===null&&(t=s),e.emit(d[1])):(d[0]===c||d[0]===h)&&(t===null||s===t)&&e.down([d])}});r.push(a)}return()=>{for(let n of r)n()}},p())}function ee(o,e,t){let r,n=!1,s=()=>{n||(n=!0,t())};return r=o.subscribe(a=>{let i=!1,d=!1;for(let u of a)u[0]!==C&&(u[0]===m?e.emit(u[1]):u[0]===c?i=!0:u[0]===h?(d=!0,e.down([u])):(u[0]===M||u[0]===g)&&e.down([u]));d?(r?.(),r=void 0,s()):i&&s()}),()=>{r?.(),r=void 0}}function zn(o,e,t){let r,n=!1;function s(){r?.(),r=void 0}return _([o],(a,i,d)=>{if(d.terminalDeps[0]!=null&&d.terminalDeps[0]!==!0){s();return}if(d.terminalDeps[0]===!0){n=!0,r||i.down([[c]]);return}let u=a[0];if(!(u==null||u.length===0))return s(),r=ee(B(e(u[u.length-1])),i,()=>{s(),n&&i.down([[c]])}),{deactivate:()=>{s(),n=!1}}},{...p(t),completeWhenDepsComplete:!1})}function $n(o,e,t){let r,n=!1;function s(){r?.(),r=void 0}return _([o],(a,i,d)=>{if(d.terminalDeps[0]!=null&&d.terminalDeps[0]!==!0){s();return}if(d.terminalDeps[0]===!0){n=!0,r||i.down([[c]]);return}let u=a[0];if(!(u==null||u.length===0))return r===void 0?r=ee(B(e(u[0])),i,()=>{s(),n&&i.down([[c]])}):i.down([[g]]),{deactivate:()=>{s(),n=!1}}},{...p(t),completeWhenDepsComplete:!1})}function qn(o,e,t){let{maxBuffer:r,...n}=t??{},s=[],a,i=!1,d;function u(){a?.(),a=void 0}function l(){if(!d||a!==void 0)return;if(s.length===0){i&&d.down([[c]]);return}let T=s.shift();a=ee(B(e(T)),d,()=>{u(),l()})}function f(T){r&&r>0&&s.length>=r&&s.shift(),s.push(T),l()}return _([o],(T,y,N)=>{if(d=y,N.terminalDeps[0]!=null&&N.terminalDeps[0]!==!0){u(),s.length=0;return}if(N.terminalDeps[0]===!0){i=!0,l();return}let k=T[0];if(!(k==null||k.length===0)){for(let v of k)f(v);return{deactivate:()=>{u(),s.length=0,i=!1}}}},{...p(n),completeWhenDepsComplete:!1})}function Ye(o,e,t){let{concurrent:r,...n}=t??{},s=r!=null&&r>0?r:Number.POSITIVE_INFINITY,a=0,i=!1,d=new Set,u=[],l;function f(){i&&a===0&&u.length===0&&l&&l.down([[c]])}function T(v){if(!l)return;a++;let w;w=ee(B(e(v)),l,()=>{w&&d.delete(w),a--,y(),f()}),d.add(w)}function y(){for(;u.length>0&&a<s;)T(u.shift())}function N(v){a<s?T(v):u.push(v)}function k(){for(let v of d)v();d.clear(),a=0,u.length=0}return _([o],(v,w,O)=>{if(l=w,O.terminalDeps[0]!=null&&O.terminalDeps[0]!==!0){k();return}if(O.terminalDeps[0]===!0){i=!0,f();return}let x=v[0];if(!(x==null||x.length===0)){for(let R of x)N(R);return{deactivate:()=>{k(),i=!1}}}},{...p(n),completeWhenDepsComplete:!1})}var Kn=Ye;function Yn(o,e,t){return b(r=>{let n=new Set;function s(){for(let i of n)clearTimeout(i);n.clear()}let a=o.subscribe(i=>{for(let d of i)if(d[0]===m){let u=setTimeout(()=>{n.delete(u),r.emit(d[1])},e);n.add(u)}else if(d[0]===c){let u=setTimeout(()=>{n.delete(u),r.down([[c]])},e);n.add(u)}else d[0]===h&&(s(),r.down([d]))});return()=>{a(),s()}},p(t))}function Je(o,e,t){return b(r=>{let n,s;function a(){n!==void 0&&(clearTimeout(n),n=void 0)}let i=o.subscribe(d=>{for(let u of d)u[0]===m?(a(),s=u[1],n=setTimeout(()=>{n=void 0,r.emit(s)},e)):u[0]===c?(n!==void 0&&(a(),r.emit(s)),r.down([[c]])):u[0]===h&&(a(),r.down([u]))});return()=>{i(),a()}},p(t))}function Xe(o,e,t){let{leading:r,trailing:n,...s}=t??{},a=r!==!1,i=n===!0,d=e*1e6;return b(u=>{let l,f=-1/0,T,y=!1;function N(){l!==void 0&&(clearTimeout(l),l=void 0)}let k=o.subscribe(v=>{for(let w of v)if(w[0]===m){let O=w[1],x=q();if(a&&x-f>=d)f=x,u.emit(O),N(),i&&(l=setTimeout(()=>{l=void 0,y&&(f=q(),u.emit(T),y=!1)},e));else if(i&&(T=O,y=!0,l===void 0)){let R=(x-f)/1e6;l=setTimeout(()=>{l=void 0,y&&(f=q(),u.emit(T),y=!1)},Math.max(0,e-R))}}else(w[0]===c||w[0]===h)&&(N(),u.down([w]))});return()=>{k(),N()}},p(s))}function Jn(o,e,t){return b(r=>{let n,s=!1,a=!1,i=o.subscribe(u=>{if(!s)for(let l of u){if(s)return;l[0]===m?n={v:l[1]}:l[0]===h?(s=!0,r.down([l])):l[0]===c&&(a=!0,n=void 0)}}),d=e.subscribe(u=>{if(!s)for(let l of u){if(s)return;l[0]===m?n!==void 0&&!a&&r.emit(n.v):l[0]===h?(s=!0,r.down([l])):l[0]===c&&(s=!0,r.down([[c]]))}});return()=>{i(),d()}},p(t))}function Xn(o,e,t){return b(r=>{let n,s,a=!1;function i(){n!==void 0&&(clearTimeout(n),n=void 0)}let d=o.subscribe(u=>{for(let l of u)l[0]===m?(s=l[1],a=!0,i(),n=setTimeout(()=>{n=void 0,a&&(a=!1,r.emit(s))},e)):(l[0]===c||l[0]===h)&&(i(),r.down([l]))});return()=>{d(),i()}},p(t))}function Zn(o,e,t){let{with:r,...n}=t??{},s=r??new Error("timeout");return b(a=>{let i;function d(){clearTimeout(i),i=setTimeout(()=>{i=void 0,a.down([[h,s]])},e)}d();let u=o.subscribe(l=>{for(let f of l)f[0]===m?(d(),a.emit(f[1])):(f[0]===c||f[0]===h)&&(clearTimeout(i),a.down([f]))});return()=>{u(),clearTimeout(i)}},p(n))}function Qn(o,e,t){return b(r=>{let n=[],s=o.subscribe(i=>{for(let d of i)d[0]===m?n.push(d[1]):d[0]===c?(n.length>0&&r.emit([...n]),n.length=0,r.down([[c]])):d[0]===h&&r.down([d])}),a=e.subscribe(i=>{for(let d of i)d[0]===m?n.length>0&&(r.emit([...n]),n.length=0):d[0]===c?r.down([[c]]):d[0]===h&&r.down([d])});return()=>{s(),a(),n.length=0}},p(t))}function et(o,e,t){if(e<=0)throw new RangeError("bufferCount expects count > 0");return b(r=>{let n=[],s=o.subscribe(a=>{for(let i of a)i[0]===m?(n.push(i[1]),n.length>=e&&r.emit(n.splice(0,n.length))):i[0]===c?(n.length>0&&r.emit([...n]),n.length=0,r.down([[c]])):i[0]===h&&r.down([i])});return()=>{s(),n.length=0}},p(t))}function nt(o,e,t){if(e<=0)throw new RangeError("windowCount expects count > 0");return b(r=>{let n,s=0;function a(){let d=b(u=>(n=u.down.bind(u),()=>{n=void 0}),p());s=0,r.emit(d)}let i=o.subscribe(d=>{for(let u of d)u[0]===m?(n||a(),n?.([[m,u[1]]]),s+=1,s>=e&&(n?.([[c]]),n=void 0)):u[0]===c?(n?.([[c]]),n=void 0,r.down([[c]])):u[0]===h&&(n?.([u]),n=void 0,r.down([u]))});return()=>{i(),n?.([[c]]),n=void 0}},p(t))}function tt(o,e,t){return b(r=>{let n=[],s=setInterval(()=>{n.length>0&&(r.emit([...n]),n.length=0)},e),a=o.subscribe(i=>{for(let d of i)d[0]===m?n.push(d[1]):d[0]===c?(clearInterval(s),n.length>0&&r.emit([...n]),n.length=0,r.down([[c]])):d[0]===h&&(clearInterval(s),r.down([d]))});return()=>{a(),clearInterval(s),n.length=0}},p(t))}function rt(o,e,t){return b(r=>{let n;function s(){n?.([[c]]),n=void 0}function a(){let u=b(l=>(n=l.down.bind(l),()=>{n=void 0}),p());r.emit(u)}a();let i=setInterval(()=>{s(),a()},e),d=o.subscribe(u=>{for(let l of u)l[0]===m?n?.([[m,l[1]]]):l[0]===c?(clearInterval(i),s(),r.down([[c]])):l[0]===h&&(clearInterval(i),n?.([l]),s(),r.down([l]))});return()=>{d(),clearInterval(i),s()}},p(t))}function ot(o,e,t){return b(r=>{let n;function s(){n?.([[c]]),n=void 0}function a(){let u=b(l=>(n=l.down.bind(l),()=>{n=void 0}),p());r.emit(u)}let i=o.subscribe(u=>{for(let l of u)l[0]===m?(n||a(),n?.([[m,l[1]]])):l[0]===c?(s(),r.down([[c]])):l[0]===h&&(n?.([l]),n=void 0,r.down([l]))}),d=e.subscribe(u=>{for(let l of u)l[0]===m&&(s(),a())});return()=>{i(),d(),s()}},p(t))}function st(o,e){return b((t,r)=>{"n"in r.store||(r.store.n=0);let n=setInterval(()=>{t.emit(r.store.n),r.store.n=r.store.n+1},o);return()=>clearInterval(n)},p(e))}function it(o,e,t){if(e<=0)throw new RangeError("repeat expects count > 0");return b(r=>{let n=e,s,a=()=>{s?.(),s=o.subscribe(i=>{let d=!1,u=[];for(let l of i)l[0]===c?d=!0:u.push(l);u.length>0&&r.down(u),d&&(s?.(),s=void 0,n-=1,n>0?a():r.down([[c]]))})};return a(),()=>{s?.()}},p(t))}function at(o,e){return _([o],(t,r)=>{let n=t[0];if(n==null||n.length===0){r.down([[g]]);return}for(let s of n)r.emit(s)},p(e))}function Ze(o,e,t){return b(r=>{let n=o.subscribe(s=>{for(let a of s)if(a[0]===m)r.emit(a[1]);else if(a[0]===h)try{r.emit(e(a[1]))}catch(i){r.down([[h,i]])}else a[0]===c&&r.down([[c]])});return()=>{n()}},p(t))}function dt(o,e,t){return _([o,e],(r,n,s)=>{let a=r[1];if(!(a!=null&&a.length>0?a.at(-1):s.prevData[1])){n.down([[g]]);return}let d=r[0];if(d!=null&&d.length>0){for(let u of d)n.emit(u);return}if(a!=null&&a.length>0&&s.prevData[0]!==void 0){n.emit(s.prevData[0]);return}n.down([[g]])},p(t))}var ut=Ke,lt=Je,ct=Xe,ft=Ze;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,pairwise,pausable,race,reduce,repeat,rescue,sample,scan,skip,switchMap,take,takeUntil,takeWhile,tap,throttle,throttleTime,timeout,valve,window,windowCount,windowTime,withLatestFrom,zip});