@graphrefly/graphrefly 0.44.0 → 0.46.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 (720) hide show
  1. package/README.md +22 -19
  2. package/dist/_internal-B23BagFd.d.cts +33 -0
  3. package/dist/_internal-B23BagFd.d.ts +33 -0
  4. package/dist/adaptive-rate-limiter-Dch_xYIi.d.cts +111 -0
  5. package/dist/adaptive-rate-limiter-Dch_xYIi.d.ts +111 -0
  6. package/dist/agents-C0Ji9ldU.d.cts +629 -0
  7. package/dist/agents-C9zexT7I.d.ts +629 -0
  8. package/dist/audit-BAXb3VOg.d.ts +246 -0
  9. package/dist/audit-C_bPfkqS.d.cts +246 -0
  10. package/dist/backoff-7KIK3WQW.js +24 -0
  11. package/dist/backoff-7KIK3WQW.js.map +1 -0
  12. package/dist/backoff-Bnb9OoPh.d.cts +6 -0
  13. package/dist/backoff-Bnb9OoPh.d.ts +6 -0
  14. package/dist/base/composition/index.cjs +811 -0
  15. package/dist/base/composition/index.cjs.map +1 -0
  16. package/dist/base/composition/index.d.cts +469 -0
  17. package/dist/base/composition/index.d.ts +469 -0
  18. package/dist/base/composition/index.js +40 -0
  19. package/dist/base/composition/index.js.map +1 -0
  20. package/dist/base/index.cjs +6336 -0
  21. package/dist/base/index.cjs.map +1 -0
  22. package/dist/base/index.d.cts +22 -0
  23. package/dist/base/index.d.ts +22 -0
  24. package/dist/base/index.js +259 -0
  25. package/dist/base/index.js.map +1 -0
  26. package/dist/base/io/index.cjs +3270 -0
  27. package/dist/base/io/index.cjs.map +1 -0
  28. package/dist/base/io/index.d.cts +2245 -0
  29. package/dist/base/io/index.d.ts +2245 -0
  30. package/dist/base/io/index.js +117 -0
  31. package/dist/base/io/index.js.map +1 -0
  32. package/dist/base/meta/index.cjs +43 -0
  33. package/dist/base/meta/index.cjs.map +1 -0
  34. package/dist/base/meta/index.d.cts +45 -0
  35. package/dist/base/meta/index.d.ts +45 -0
  36. package/dist/base/meta/index.js +13 -0
  37. package/dist/base/meta/index.js.map +1 -0
  38. package/dist/base/mutation/index.cjs +200 -0
  39. package/dist/base/mutation/index.cjs.map +1 -0
  40. package/dist/base/mutation/index.d.cts +177 -0
  41. package/dist/base/mutation/index.d.ts +177 -0
  42. package/dist/base/mutation/index.js +22 -0
  43. package/dist/base/mutation/index.js.map +1 -0
  44. package/dist/base/render/index.cjs +1120 -0
  45. package/dist/base/render/index.cjs.map +1 -0
  46. package/dist/{extra/render/index.d.ts → base/render/index.d.cts} +75 -31
  47. package/dist/{extra/render/index.d.cts → base/render/index.d.ts} +75 -31
  48. package/dist/base/render/index.js +24 -0
  49. package/dist/base/render/index.js.map +1 -0
  50. package/dist/base/sources/browser/index.cjs +172 -0
  51. package/dist/base/sources/browser/index.cjs.map +1 -0
  52. package/dist/base/sources/browser/index.d.cts +84 -0
  53. package/dist/base/sources/browser/index.d.ts +84 -0
  54. package/dist/base/sources/browser/index.js +151 -0
  55. package/dist/base/sources/browser/index.js.map +1 -0
  56. package/dist/base/sources/event/index.cjs +98 -0
  57. package/dist/base/sources/event/index.cjs.map +1 -0
  58. package/dist/base/sources/event/index.d.cts +91 -0
  59. package/dist/base/sources/event/index.d.ts +91 -0
  60. package/dist/base/sources/event/index.js +13 -0
  61. package/dist/base/sources/event/index.js.map +1 -0
  62. package/dist/base/sources/index.cjs +755 -0
  63. package/dist/base/sources/index.cjs.map +1 -0
  64. package/dist/{extra/sources.d.ts → base/sources/index.d.cts} +74 -301
  65. package/dist/{extra/sources.d.cts → base/sources/index.d.ts} +74 -301
  66. package/dist/base/sources/index.js +42 -0
  67. package/dist/base/sources/index.js.map +1 -0
  68. package/dist/base/sources/node/index.cjs +320 -0
  69. package/dist/base/sources/node/index.cjs.map +1 -0
  70. package/dist/{extra/node.d.ts → base/sources/node/index.d.cts} +35 -37
  71. package/dist/{extra/node.d.cts → base/sources/node/index.d.ts} +35 -37
  72. package/dist/base/sources/node/index.js +306 -0
  73. package/dist/base/sources/node/index.js.map +1 -0
  74. package/dist/base/utils/index.cjs +37 -0
  75. package/dist/base/utils/index.cjs.map +1 -0
  76. package/dist/base/utils/index.d.cts +37 -0
  77. package/dist/base/utils/index.d.ts +37 -0
  78. package/dist/base/utils/index.js +11 -0
  79. package/dist/base/utils/index.js.map +1 -0
  80. package/dist/base/worker/index.cjs +548 -0
  81. package/dist/base/worker/index.cjs.map +1 -0
  82. package/dist/base/worker/index.d.cts +207 -0
  83. package/dist/base/worker/index.d.ts +207 -0
  84. package/dist/base/worker/index.js +20 -0
  85. package/dist/base/worker/index.js.map +1 -0
  86. package/dist/breaker-C9skL3d8.d.ts +175 -0
  87. package/dist/breaker-ugSdq54q.d.cts +175 -0
  88. package/dist/{cascading-BglDkMdX.d.cts → cascading-CSSbKGrJ.d.ts} +3 -3
  89. package/dist/{cascading-MFgxu7Yo.d.ts → cascading-baGkiihI.d.cts} +3 -3
  90. package/dist/chunk-255UCBG4.js +58 -0
  91. package/dist/chunk-255UCBG4.js.map +1 -0
  92. package/dist/chunk-2LO3EL4W.js +1 -0
  93. package/dist/chunk-2LO3EL4W.js.map +1 -0
  94. package/dist/chunk-2OB3CEJS.js +1065 -0
  95. package/dist/chunk-2OB3CEJS.js.map +1 -0
  96. package/dist/chunk-36NMM65U.js +144 -0
  97. package/dist/chunk-36NMM65U.js.map +1 -0
  98. package/dist/chunk-3CEXCBN6.js +1 -0
  99. package/dist/chunk-3CEXCBN6.js.map +1 -0
  100. package/dist/chunk-3MUSLI6E.js +105 -0
  101. package/dist/chunk-3MUSLI6E.js.map +1 -0
  102. package/dist/chunk-3PSLNJDU.js +884 -0
  103. package/dist/chunk-3PSLNJDU.js.map +1 -0
  104. package/dist/chunk-3QZY5BI7.js +92 -0
  105. package/dist/chunk-3QZY5BI7.js.map +1 -0
  106. package/dist/chunk-42FQ27MQ.js +594 -0
  107. package/dist/chunk-42FQ27MQ.js.map +1 -0
  108. package/dist/chunk-4GYMCUDZ.js +1085 -0
  109. package/dist/chunk-4GYMCUDZ.js.map +1 -0
  110. package/dist/chunk-4S53H2KR.js +382 -0
  111. package/dist/chunk-4S53H2KR.js.map +1 -0
  112. package/dist/chunk-4XCHZRUJ.js +128 -0
  113. package/dist/chunk-4XCHZRUJ.js.map +1 -0
  114. package/dist/chunk-5THCXDWY.js +725 -0
  115. package/dist/chunk-5THCXDWY.js.map +1 -0
  116. package/dist/chunk-6XZYT4SW.js +256 -0
  117. package/dist/chunk-6XZYT4SW.js.map +1 -0
  118. package/dist/chunk-7EGRP2VX.js +76 -0
  119. package/dist/chunk-7EGRP2VX.js.map +1 -0
  120. package/dist/chunk-A7KV5UK4.js +150 -0
  121. package/dist/chunk-A7KV5UK4.js.map +1 -0
  122. package/dist/chunk-APY2SS5X.js +156 -0
  123. package/dist/chunk-APY2SS5X.js.map +1 -0
  124. package/dist/chunk-AZDQPQ3V.js +66 -0
  125. package/dist/chunk-AZDQPQ3V.js.map +1 -0
  126. package/dist/chunk-BU3SEFA5.js +90 -0
  127. package/dist/chunk-BU3SEFA5.js.map +1 -0
  128. package/dist/chunk-BXGZFGZ4.js +189 -0
  129. package/dist/chunk-BXGZFGZ4.js.map +1 -0
  130. package/dist/chunk-CGHORL6G.js +579 -0
  131. package/dist/chunk-CGHORL6G.js.map +1 -0
  132. package/dist/chunk-CXANAIZU.js +530 -0
  133. package/dist/chunk-CXANAIZU.js.map +1 -0
  134. package/dist/chunk-CZQHCKKG.js +1 -0
  135. package/dist/chunk-CZQHCKKG.js.map +1 -0
  136. package/dist/chunk-DKNHAICT.js +133 -0
  137. package/dist/chunk-DKNHAICT.js.map +1 -0
  138. package/dist/chunk-DM4OMPWK.js +584 -0
  139. package/dist/chunk-DM4OMPWK.js.map +1 -0
  140. package/dist/chunk-DMSNO6ZB.js +452 -0
  141. package/dist/chunk-DMSNO6ZB.js.map +1 -0
  142. package/dist/chunk-E5OZPDIW.js +229 -0
  143. package/dist/chunk-E5OZPDIW.js.map +1 -0
  144. package/dist/chunk-EVYY4X5A.js +509 -0
  145. package/dist/chunk-EVYY4X5A.js.map +1 -0
  146. package/dist/chunk-FDFD67UO.js +1 -0
  147. package/dist/chunk-FDFD67UO.js.map +1 -0
  148. package/dist/chunk-FMPF42Q4.js +13 -0
  149. package/dist/chunk-FMPF42Q4.js.map +1 -0
  150. package/dist/chunk-FR6RGA3B.js +1277 -0
  151. package/dist/chunk-FR6RGA3B.js.map +1 -0
  152. package/dist/chunk-FW23JYNQ.js +454 -0
  153. package/dist/chunk-FW23JYNQ.js.map +1 -0
  154. package/dist/chunk-GBCENOLN.js +1575 -0
  155. package/dist/chunk-GBCENOLN.js.map +1 -0
  156. package/dist/chunk-HL7HUJIX.js +1 -0
  157. package/dist/chunk-HL7HUJIX.js.map +1 -0
  158. package/dist/chunk-HULCUY35.js +2508 -0
  159. package/dist/chunk-HULCUY35.js.map +1 -0
  160. package/dist/chunk-IHTWQEDR.js +169 -0
  161. package/dist/chunk-IHTWQEDR.js.map +1 -0
  162. package/dist/chunk-IJRR6YAI.js +128 -0
  163. package/dist/chunk-IJRR6YAI.js.map +1 -0
  164. package/dist/chunk-JGFRAFDL.js +221 -0
  165. package/dist/chunk-JGFRAFDL.js.map +1 -0
  166. package/dist/chunk-KIIXR252.js +211 -0
  167. package/dist/chunk-KIIXR252.js.map +1 -0
  168. package/dist/chunk-KN3H5CNT.js +11 -0
  169. package/dist/chunk-KN3H5CNT.js.map +1 -0
  170. package/dist/chunk-KPG3DGLA.js +1 -0
  171. package/dist/chunk-KPG3DGLA.js.map +1 -0
  172. package/dist/chunk-KRNQ6RGQ.js +1 -0
  173. package/dist/chunk-KRNQ6RGQ.js.map +1 -0
  174. package/dist/chunk-LBAJK24K.js +1071 -0
  175. package/dist/chunk-LBAJK24K.js.map +1 -0
  176. package/dist/chunk-MLTPJMH6.js +417 -0
  177. package/dist/chunk-MLTPJMH6.js.map +1 -0
  178. package/dist/chunk-N3SZ7BMH.js +95 -0
  179. package/dist/chunk-N3SZ7BMH.js.map +1 -0
  180. package/dist/chunk-NDUD3IMO.js +540 -0
  181. package/dist/chunk-NDUD3IMO.js.map +1 -0
  182. package/dist/chunk-NY2PYHNC.js +873 -0
  183. package/dist/chunk-NY2PYHNC.js.map +1 -0
  184. package/dist/chunk-O3MT7DYI.js +225 -0
  185. package/dist/chunk-O3MT7DYI.js.map +1 -0
  186. package/dist/chunk-OCUDSN63.js +2386 -0
  187. package/dist/chunk-OCUDSN63.js.map +1 -0
  188. package/dist/chunk-OIWU3NYV.js +199 -0
  189. package/dist/chunk-OIWU3NYV.js.map +1 -0
  190. package/dist/chunk-OO5BM6CJ.js +1153 -0
  191. package/dist/chunk-OO5BM6CJ.js.map +1 -0
  192. package/dist/chunk-OQUIJT7A.js +1 -0
  193. package/dist/chunk-OQUIJT7A.js.map +1 -0
  194. package/dist/chunk-P5LBT622.js +105 -0
  195. package/dist/chunk-P5LBT622.js.map +1 -0
  196. package/dist/chunk-PKGQG5QQ.js +519 -0
  197. package/dist/chunk-PKGQG5QQ.js.map +1 -0
  198. package/dist/chunk-PKPO3JTZ.js +561 -0
  199. package/dist/chunk-PKPO3JTZ.js.map +1 -0
  200. package/dist/chunk-PL5UDIQ5.js +118 -0
  201. package/dist/chunk-PL5UDIQ5.js.map +1 -0
  202. package/dist/chunk-PZWISPIQ.js +432 -0
  203. package/dist/chunk-PZWISPIQ.js.map +1 -0
  204. package/dist/chunk-Q3EYOCZB.js +510 -0
  205. package/dist/chunk-Q3EYOCZB.js.map +1 -0
  206. package/dist/chunk-QMBYUVRL.js +15 -0
  207. package/dist/chunk-QMBYUVRL.js.map +1 -0
  208. package/dist/chunk-RAGGHLCV.js +200 -0
  209. package/dist/chunk-RAGGHLCV.js.map +1 -0
  210. package/dist/chunk-RGL53X5G.js +574 -0
  211. package/dist/chunk-RGL53X5G.js.map +1 -0
  212. package/dist/chunk-RJOG4IJU.js +1039 -0
  213. package/dist/chunk-RJOG4IJU.js.map +1 -0
  214. package/dist/chunk-SOOKUYVM.js +403 -0
  215. package/dist/chunk-SOOKUYVM.js.map +1 -0
  216. package/dist/chunk-T5BN5KG7.js +1 -0
  217. package/dist/chunk-T5BN5KG7.js.map +1 -0
  218. package/dist/chunk-TP7244Y6.js +207 -0
  219. package/dist/chunk-TP7244Y6.js.map +1 -0
  220. package/dist/chunk-TSBFTJKM.js +57 -0
  221. package/dist/chunk-TSBFTJKM.js.map +1 -0
  222. package/dist/chunk-URQ2CBBF.js +143 -0
  223. package/dist/chunk-URQ2CBBF.js.map +1 -0
  224. package/dist/chunk-W2BOPXTI.js +1 -0
  225. package/dist/chunk-W2BOPXTI.js.map +1 -0
  226. package/dist/chunk-WKSWLSCX.js +207 -0
  227. package/dist/chunk-WKSWLSCX.js.map +1 -0
  228. package/dist/chunk-Y52CS6YA.js +88 -0
  229. package/dist/chunk-Y52CS6YA.js.map +1 -0
  230. package/dist/chunk-YCBUWK77.js +92 -0
  231. package/dist/chunk-YCBUWK77.js.map +1 -0
  232. package/dist/chunk-YJ4U2D2C.js +314 -0
  233. package/dist/chunk-YJ4U2D2C.js.map +1 -0
  234. package/dist/chunk-Z4YXAUDN.js +239 -0
  235. package/dist/chunk-Z4YXAUDN.js.map +1 -0
  236. package/dist/chunk-Z6EGP5D7.js +92 -0
  237. package/dist/chunk-Z6EGP5D7.js.map +1 -0
  238. package/dist/compat/index.cjs +3100 -9
  239. package/dist/compat/index.cjs.map +1 -0
  240. package/dist/compat/index.d.cts +112 -18
  241. package/dist/compat/index.d.ts +112 -18
  242. package/dist/compat/index.js +176 -1
  243. package/dist/compat/index.js.map +1 -0
  244. package/dist/compat/jotai/index.cjs +149 -1
  245. package/dist/compat/jotai/index.cjs.map +1 -0
  246. package/dist/compat/jotai/index.d.cts +2 -2
  247. package/dist/compat/jotai/index.d.ts +2 -2
  248. package/dist/compat/jotai/index.js +8 -1
  249. package/dist/compat/jotai/index.js.map +1 -0
  250. package/dist/compat/nanostores/index.cjs +205 -1
  251. package/dist/compat/nanostores/index.cjs.map +1 -0
  252. package/dist/compat/nanostores/index.d.cts +2 -2
  253. package/dist/compat/nanostores/index.d.ts +2 -2
  254. package/dist/compat/nanostores/index.js +22 -1
  255. package/dist/compat/nanostores/index.js.map +1 -0
  256. package/dist/compat/nestjs/index.cjs +2241 -9
  257. package/dist/compat/nestjs/index.cjs.map +1 -0
  258. package/dist/compat/nestjs/index.d.cts +7 -10
  259. package/dist/compat/nestjs/index.d.ts +7 -10
  260. package/dist/compat/nestjs/index.js +78 -1
  261. package/dist/compat/nestjs/index.js.map +1 -0
  262. package/dist/compat/react/index.cjs +114 -1
  263. package/dist/compat/react/index.cjs.map +1 -0
  264. package/dist/compat/react/index.d.cts +2 -2
  265. package/dist/compat/react/index.d.ts +2 -2
  266. package/dist/compat/react/index.js +12 -1
  267. package/dist/compat/react/index.js.map +1 -0
  268. package/dist/compat/solid/index.cjs +101 -1
  269. package/dist/compat/solid/index.cjs.map +1 -0
  270. package/dist/compat/solid/index.d.cts +2 -2
  271. package/dist/compat/solid/index.d.ts +2 -2
  272. package/dist/compat/solid/index.js +12 -1
  273. package/dist/compat/solid/index.js.map +1 -0
  274. package/dist/compat/svelte/index.cjs +104 -1
  275. package/dist/compat/svelte/index.cjs.map +1 -0
  276. package/dist/compat/svelte/index.d.cts +2 -2
  277. package/dist/compat/svelte/index.d.ts +2 -2
  278. package/dist/compat/svelte/index.js +12 -1
  279. package/dist/compat/svelte/index.js.map +1 -0
  280. package/dist/compat/vue/index.cjs +119 -1
  281. package/dist/compat/vue/index.cjs.map +1 -0
  282. package/dist/compat/vue/index.d.cts +2 -2
  283. package/dist/compat/vue/index.d.ts +2 -2
  284. package/dist/compat/vue/index.js +12 -1
  285. package/dist/compat/vue/index.js.map +1 -0
  286. package/dist/compat/zustand/index.cjs +69 -3
  287. package/dist/compat/zustand/index.cjs.map +1 -0
  288. package/dist/compat/zustand/index.d.cts +2 -6
  289. package/dist/compat/zustand/index.d.ts +2 -6
  290. package/dist/compat/zustand/index.js +8 -1
  291. package/dist/compat/zustand/index.js.map +1 -0
  292. package/dist/distill-De6Rnn15.d.cts +48 -0
  293. package/dist/distill-De6Rnn15.d.ts +48 -0
  294. package/dist/external-register-CWyroXb_.d.cts +138 -0
  295. package/dist/external-register-CWyroXb_.d.ts +138 -0
  296. package/dist/{fallback-74oxi34l.d.cts → fallback-Bx46zqky.d.cts} +3 -10
  297. package/dist/{fallback-DUyyBTBK.d.ts → fallback-pIWW8A2d.d.ts} +3 -10
  298. package/dist/guarded-execution-BcdtxeBk.d.ts +207 -0
  299. package/dist/guarded-execution-C-3hnP6A.d.cts +207 -0
  300. package/dist/{index-CBGUK09R.d.ts → index-5SU_O78r.d.cts} +5 -5
  301. package/dist/{index-BmZXHqkE.d.ts → index-B6pxYJzO.d.cts} +1 -1
  302. package/dist/{index-hcDJ8PSI.d.cts → index-B6pxYJzO.d.ts} +1 -1
  303. package/dist/{index-C5stwKcw.d.cts → index-BFsng6v1.d.cts} +1 -1
  304. package/dist/{index-CdAlHFEt.d.ts → index-BFsng6v1.d.ts} +1 -1
  305. package/dist/{index-_6ODbuOu.d.cts → index-Bg-LwEt-.d.cts} +1 -1
  306. package/dist/{index-CviRnE4K.d.ts → index-Bg-LwEt-.d.ts} +1 -1
  307. package/dist/{index-CBBLl_rc.d.ts → index-Brp888t0.d.cts} +1 -1
  308. package/dist/{index-BQSKmbuG.d.cts → index-Brp888t0.d.ts} +1 -1
  309. package/dist/{index-sqkqlb1p.d.ts → index-CDfk6jHN.d.cts} +1 -1
  310. package/dist/{index-ZVQhLa2i.d.cts → index-CDfk6jHN.d.ts} +1 -1
  311. package/dist/{index-Climxqsu.d.cts → index-CEXCtYYJ.d.ts} +5 -5
  312. package/dist/index-DLAxYaN5.d.cts +169 -0
  313. package/dist/index-DLAxYaN5.d.ts +169 -0
  314. package/dist/{index-CK29LV56.d.cts → index-DeWbQzMe.d.cts} +1 -1
  315. package/dist/{index-CPQlGA29.d.ts → index-DeWbQzMe.d.ts} +1 -1
  316. package/dist/{index-BrPrLl4e.d.cts → index-dX9IzPqj.d.cts} +1 -1
  317. package/dist/{index-Dgl1HpPn.d.ts → index-dX9IzPqj.d.ts} +1 -1
  318. package/dist/index.cjs +25934 -191
  319. package/dist/index.cjs.map +1 -0
  320. package/dist/index.d.cts +58 -94
  321. package/dist/index.d.ts +58 -94
  322. package/dist/index.js +852 -1
  323. package/dist/index.js.map +1 -0
  324. package/dist/layout-types-B5aiHYgk.d.cts +72 -0
  325. package/dist/layout-types-B5aiHYgk.d.ts +72 -0
  326. package/dist/memory-composers-BryDrRBX.d.cts +529 -0
  327. package/dist/memory-composers-CVQqPYEV.d.ts +529 -0
  328. package/dist/{observable-DWjNfLvC.d.ts → observable-BXQoW1P-.d.cts} +1 -1
  329. package/dist/{observable-e3eiPPFy.d.cts → observable-BXQoW1P-.d.ts} +1 -1
  330. package/dist/{pipeline-graph-Sgj0gCwn.d.ts → pipeline-graph-Ce47CB6Y.d.cts} +13 -10
  331. package/dist/{pipeline-graph-CIKhynsF.d.cts → pipeline-graph-DXCwY9vG.d.ts} +13 -10
  332. package/dist/presets/ai/index.cjs +4377 -0
  333. package/dist/presets/ai/index.cjs.map +1 -0
  334. package/dist/presets/ai/index.d.cts +98 -0
  335. package/dist/presets/ai/index.d.ts +98 -0
  336. package/dist/presets/ai/index.js +54 -0
  337. package/dist/presets/ai/index.js.map +1 -0
  338. package/dist/presets/harness/index.cjs +5929 -0
  339. package/dist/presets/harness/index.cjs.map +1 -0
  340. package/dist/presets/harness/index.d.cts +566 -0
  341. package/dist/presets/harness/index.d.ts +566 -0
  342. package/dist/presets/harness/index.js +71 -0
  343. package/dist/presets/harness/index.js.map +1 -0
  344. package/dist/presets/index.cjs +9782 -0
  345. package/dist/presets/index.cjs.map +1 -0
  346. package/dist/presets/index.d.cts +28 -0
  347. package/dist/presets/index.d.ts +28 -0
  348. package/dist/presets/index.js +129 -0
  349. package/dist/presets/index.js.map +1 -0
  350. package/dist/presets/inspect/index.cjs +1087 -0
  351. package/dist/presets/inspect/index.cjs.map +1 -0
  352. package/dist/presets/inspect/index.d.cts +172 -0
  353. package/dist/presets/inspect/index.d.ts +172 -0
  354. package/dist/presets/inspect/index.js +21 -0
  355. package/dist/presets/inspect/index.js.map +1 -0
  356. package/dist/presets/resilience/index.cjs +1593 -0
  357. package/dist/presets/resilience/index.cjs.map +1 -0
  358. package/dist/presets/resilience/index.d.cts +205 -0
  359. package/dist/presets/resilience/index.d.ts +205 -0
  360. package/dist/presets/resilience/index.js +18 -0
  361. package/dist/presets/resilience/index.js.map +1 -0
  362. package/dist/rate-limiter-CEALq4N1.d.ts +559 -0
  363. package/dist/rate-limiter-DpVbSYdH.d.cts +559 -0
  364. package/dist/{reactive-layout-DOTs9P3X.d.ts → reactive-layout-fswlBUvX.d.cts} +19 -7
  365. package/dist/{reactive-layout-DgctbqZo.d.cts → reactive-layout-fswlBUvX.d.ts} +19 -7
  366. package/dist/retry-BDbRZ_gx.d.ts +125 -0
  367. package/dist/retry-DWuhjvsA.d.cts +125 -0
  368. package/dist/solutions/index.cjs +8200 -0
  369. package/dist/solutions/index.cjs.map +1 -0
  370. package/dist/solutions/index.d.cts +23 -0
  371. package/dist/solutions/index.d.ts +23 -0
  372. package/dist/solutions/index.js +55 -0
  373. package/dist/solutions/index.js.map +1 -0
  374. package/dist/spawnable-5mDY501F.d.cts +746 -0
  375. package/dist/spawnable-D3lR0oQu.d.ts +746 -0
  376. package/dist/status-U-rUI79b.d.cts +84 -0
  377. package/dist/status-U-rUI79b.d.ts +84 -0
  378. package/dist/timeout-U5O4ESK3.js +12 -0
  379. package/dist/timeout-U5O4ESK3.js.map +1 -0
  380. package/dist/{types-CWFysE9E.d.ts → types-BB5Lw-pB.d.cts} +3 -3
  381. package/dist/{types-C0_yquda.d.cts → types-BB5Lw-pB.d.ts} +3 -3
  382. package/dist/types-CJWIMJiZ.d.ts +548 -0
  383. package/dist/types-vCq7ShIm.d.cts +548 -0
  384. package/dist/utils/ai/browser.cjs +2169 -0
  385. package/dist/utils/ai/browser.cjs.map +1 -0
  386. package/dist/{patterns → utils}/ai/browser.d.cts +7 -5
  387. package/dist/{patterns → utils}/ai/browser.d.ts +7 -5
  388. package/dist/utils/ai/browser.js +255 -0
  389. package/dist/utils/ai/browser.js.map +1 -0
  390. package/dist/utils/ai/index.cjs +8468 -0
  391. package/dist/utils/ai/index.cjs.map +1 -0
  392. package/dist/{index-CR8QpwX8.d.ts → utils/ai/index.d.cts} +73 -976
  393. package/dist/{index-UPSiS-X7.d.cts → utils/ai/index.d.ts} +73 -976
  394. package/dist/utils/ai/index.js +173 -0
  395. package/dist/utils/ai/index.js.map +1 -0
  396. package/dist/utils/ai/node.cjs +648 -0
  397. package/dist/utils/ai/node.cjs.map +1 -0
  398. package/dist/{patterns → utils}/ai/node.d.cts +5 -7
  399. package/dist/{patterns → utils}/ai/node.d.ts +5 -7
  400. package/dist/utils/ai/node.js +84 -0
  401. package/dist/utils/ai/node.js.map +1 -0
  402. package/dist/utils/cqrs/index.cjs +1036 -0
  403. package/dist/utils/cqrs/index.cjs.map +1 -0
  404. package/dist/{index-CeFiHtAg.d.ts → utils/cqrs/index.d.cts} +7 -37
  405. package/dist/{index-B-_tFaqV.d.cts → utils/cqrs/index.d.ts} +7 -37
  406. package/dist/utils/cqrs/index.js +18 -0
  407. package/dist/utils/cqrs/index.js.map +1 -0
  408. package/dist/utils/demo-shell/index.cjs +865 -0
  409. package/dist/utils/demo-shell/index.cjs.map +1 -0
  410. package/dist/{index-B8YnZpIR.d.ts → utils/demo-shell/index.d.cts} +4 -16
  411. package/dist/{index-Cwv0KWcU.d.cts → utils/demo-shell/index.d.ts} +4 -16
  412. package/dist/utils/demo-shell/index.js +13 -0
  413. package/dist/utils/demo-shell/index.js.map +1 -0
  414. package/dist/utils/domain-templates/index.cjs +732 -0
  415. package/dist/utils/domain-templates/index.cjs.map +1 -0
  416. package/dist/{index-CzLVrjxn.d.ts → utils/domain-templates/index.d.cts} +3 -20
  417. package/dist/{index-BaQaY_IQ.d.cts → utils/domain-templates/index.d.ts} +3 -20
  418. package/dist/utils/domain-templates/index.js +17 -0
  419. package/dist/utils/domain-templates/index.js.map +1 -0
  420. package/dist/utils/graphspec/index.cjs +1174 -0
  421. package/dist/utils/graphspec/index.cjs.map +1 -0
  422. package/dist/{index-CMh5Rz1y.d.ts → utils/graphspec/index.d.cts} +106 -42
  423. package/dist/{index-CS0LTlB8.d.cts → utils/graphspec/index.d.ts} +106 -42
  424. package/dist/utils/graphspec/index.js +35 -0
  425. package/dist/utils/graphspec/index.js.map +1 -0
  426. package/dist/utils/harness/index.cjs +656 -0
  427. package/dist/utils/harness/index.cjs.map +1 -0
  428. package/dist/utils/harness/index.d.cts +542 -0
  429. package/dist/utils/harness/index.d.ts +542 -0
  430. package/dist/utils/harness/index.js +56 -0
  431. package/dist/utils/harness/index.js.map +1 -0
  432. package/dist/utils/index.cjs +17609 -0
  433. package/dist/utils/index.cjs.map +1 -0
  434. package/dist/utils/index.d.cts +96 -0
  435. package/dist/utils/index.d.ts +96 -0
  436. package/dist/utils/index.js +514 -0
  437. package/dist/utils/index.js.map +1 -0
  438. package/dist/utils/inspect/index.cjs +807 -0
  439. package/dist/utils/inspect/index.cjs.map +1 -0
  440. package/dist/utils/inspect/index.d.cts +123 -0
  441. package/dist/utils/inspect/index.d.ts +123 -0
  442. package/dist/utils/inspect/index.js +30 -0
  443. package/dist/utils/inspect/index.js.map +1 -0
  444. package/dist/utils/job-queue/index.cjs +717 -0
  445. package/dist/utils/job-queue/index.cjs.map +1 -0
  446. package/dist/{index-DisjX8a-.d.ts → utils/job-queue/index.d.cts} +5 -26
  447. package/dist/{index-DV_1YuVk.d.cts → utils/job-queue/index.d.ts} +5 -26
  448. package/dist/utils/job-queue/index.js +18 -0
  449. package/dist/utils/job-queue/index.js.map +1 -0
  450. package/dist/utils/memory/index.cjs +1451 -0
  451. package/dist/utils/memory/index.cjs.map +1 -0
  452. package/dist/{index-CZ3r5Rxp.d.ts → utils/memory/index.d.cts} +242 -34
  453. package/dist/{index-B17QddL1.d.cts → utils/memory/index.d.ts} +242 -34
  454. package/dist/utils/memory/index.js +19 -0
  455. package/dist/utils/memory/index.js.map +1 -0
  456. package/dist/utils/messaging/index.cjs +666 -0
  457. package/dist/utils/messaging/index.cjs.map +1 -0
  458. package/dist/utils/messaging/index.d.cts +562 -0
  459. package/dist/utils/messaging/index.d.ts +562 -0
  460. package/dist/utils/messaging/index.js +50 -0
  461. package/dist/utils/messaging/index.js.map +1 -0
  462. package/dist/utils/orchestration/index.cjs +876 -0
  463. package/dist/utils/orchestration/index.cjs.map +1 -0
  464. package/dist/utils/orchestration/index.d.cts +233 -0
  465. package/dist/utils/orchestration/index.d.ts +233 -0
  466. package/dist/utils/orchestration/index.js +19 -0
  467. package/dist/utils/orchestration/index.js.map +1 -0
  468. package/dist/utils/process/index.cjs +743 -0
  469. package/dist/utils/process/index.cjs.map +1 -0
  470. package/dist/{index-p09KSrTN.d.ts → utils/process/index.d.cts} +97 -44
  471. package/dist/{index-CasX6Pfq.d.cts → utils/process/index.d.ts} +97 -44
  472. package/dist/utils/process/index.js +14 -0
  473. package/dist/utils/process/index.js.map +1 -0
  474. package/dist/utils/reactive-layout/index.cjs +1607 -0
  475. package/dist/utils/reactive-layout/index.cjs.map +1 -0
  476. package/dist/{index-B5S8ULbU.d.ts → utils/reactive-layout/index.d.cts} +58 -81
  477. package/dist/{index-Dc4AYqrJ.d.cts → utils/reactive-layout/index.d.ts} +58 -81
  478. package/dist/utils/reactive-layout/index.js +52 -0
  479. package/dist/utils/reactive-layout/index.js.map +1 -0
  480. package/dist/utils/reduction/index.cjs +203 -0
  481. package/dist/utils/reduction/index.cjs.map +1 -0
  482. package/dist/{index-Byu-OpX_.d.ts → utils/reduction/index.d.cts} +6 -17
  483. package/dist/{index-tRCxuAXF.d.cts → utils/reduction/index.d.ts} +6 -17
  484. package/dist/utils/reduction/index.js +14 -0
  485. package/dist/utils/reduction/index.js.map +1 -0
  486. package/dist/utils/resilience/index.cjs +1617 -0
  487. package/dist/utils/resilience/index.cjs.map +1 -0
  488. package/dist/utils/resilience/index.d.cts +9 -0
  489. package/dist/utils/resilience/index.d.ts +9 -0
  490. package/dist/utils/resilience/index.js +44 -0
  491. package/dist/utils/resilience/index.js.map +1 -0
  492. package/dist/utils/surface/index.cjs +1070 -0
  493. package/dist/utils/surface/index.cjs.map +1 -0
  494. package/dist/{index-CYq8vAyV.d.ts → utils/surface/index.d.cts} +7 -58
  495. package/dist/{index-CSOmP7xT.d.cts → utils/surface/index.d.ts} +7 -58
  496. package/dist/utils/surface/index.js +30 -0
  497. package/dist/utils/surface/index.js.map +1 -0
  498. package/dist/utils/topology-view/index.cjs +620 -0
  499. package/dist/utils/topology-view/index.cjs.map +1 -0
  500. package/dist/utils/topology-view/index.d.cts +68 -0
  501. package/dist/utils/topology-view/index.d.ts +68 -0
  502. package/dist/utils/topology-view/index.js +11 -0
  503. package/dist/utils/topology-view/index.js.map +1 -0
  504. package/package.json +664 -584
  505. package/dist/backoff-HPZMEZNF.js +0 -1
  506. package/dist/chunk-2T7U5EU6.js +0 -1
  507. package/dist/chunk-3G5U5QNE.js +0 -5
  508. package/dist/chunk-4VVTGLXJ.js +0 -1
  509. package/dist/chunk-5M4CCMMD.js +0 -45
  510. package/dist/chunk-5QDBSZBV.js +0 -1
  511. package/dist/chunk-5XJ6B66J.js +0 -1
  512. package/dist/chunk-6QZNQS5B.js +0 -1
  513. package/dist/chunk-6X7AFUJV.js +0 -9
  514. package/dist/chunk-7K6PWTDQ.js +0 -1
  515. package/dist/chunk-7LIAPXJB.js +0 -1
  516. package/dist/chunk-7WPU3UHQ.js +0 -1
  517. package/dist/chunk-A5WCQ5NO.js +0 -1
  518. package/dist/chunk-APPIWSGD.js +0 -84
  519. package/dist/chunk-BEZWM2SY.js +0 -1
  520. package/dist/chunk-C72GO4IZ.js +0 -1
  521. package/dist/chunk-CB676TKJ.js +0 -1
  522. package/dist/chunk-CE6TI2TL.js +0 -1
  523. package/dist/chunk-CE72X3WO.js +0 -1
  524. package/dist/chunk-CK2E7BTU.js +0 -1
  525. package/dist/chunk-CLVB32RD.js +0 -1
  526. package/dist/chunk-CRVT7D2P.js +0 -1
  527. package/dist/chunk-D5RFJOZ2.js +0 -1
  528. package/dist/chunk-D7GPHKFH.js +0 -1
  529. package/dist/chunk-DHRX7JX4.js +0 -2
  530. package/dist/chunk-ESMPEKEV.js +0 -1
  531. package/dist/chunk-F672GV32.js +0 -1
  532. package/dist/chunk-FZMYDOWV.js +0 -1
  533. package/dist/chunk-GHBWHMRZ.js +0 -1
  534. package/dist/chunk-GLERH466.js +0 -1
  535. package/dist/chunk-GPW2V3RE.js +0 -1
  536. package/dist/chunk-HIDYF36O.js +0 -1
  537. package/dist/chunk-HITNVN6B.js +0 -3
  538. package/dist/chunk-HY4DJBA7.js +0 -5
  539. package/dist/chunk-KZIEYVXN.js +0 -1
  540. package/dist/chunk-L6NSJVJZ.js +0 -1
  541. package/dist/chunk-N4MQX6JU.js +0 -18
  542. package/dist/chunk-N7FHEL4D.js +0 -1
  543. package/dist/chunk-NTEURFZH.js +0 -1
  544. package/dist/chunk-OIVP6KFV.js +0 -1
  545. package/dist/chunk-OPHBU3LG.js +0 -1
  546. package/dist/chunk-OYQOZP2F.js +0 -5
  547. package/dist/chunk-PTZK576G.js +0 -1
  548. package/dist/chunk-QYADASLV.js +0 -1
  549. package/dist/chunk-ST7UXLWR.js +0 -1
  550. package/dist/chunk-SVY7VUYU.js +0 -1
  551. package/dist/chunk-TK3NWWD4.js +0 -1
  552. package/dist/chunk-TSOYJ743.js +0 -1
  553. package/dist/chunk-UNGSTR4X.js +0 -61
  554. package/dist/chunk-VIMF6LGM.js +0 -1
  555. package/dist/chunk-VJLMUKOI.js +0 -1
  556. package/dist/chunk-VN6RDSK2.js +0 -1
  557. package/dist/chunk-VV4N5P64.js +0 -1
  558. package/dist/chunk-W3I423PS.js +0 -1
  559. package/dist/chunk-WJR24TAG.js +0 -1
  560. package/dist/chunk-XTGKMHSW.js +0 -1
  561. package/dist/chunk-YBB7ZGTY.js +0 -1
  562. package/dist/chunk-Z4NPUARF.js +0 -1
  563. package/dist/chunk-ZGNQRPDT.js +0 -1
  564. package/dist/chunk-ZKPSFFKU.js +0 -1
  565. package/dist/chunk-ZLV5SQSX.js +0 -1
  566. package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
  567. package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
  568. package/dist/core/index.cjs +0 -1
  569. package/dist/core/index.d.cts +0 -3
  570. package/dist/core/index.d.ts +0 -3
  571. package/dist/core/index.js +0 -1
  572. package/dist/decay-BvOWTZ00.d.ts +0 -112
  573. package/dist/decay-CFlLvXUT.d.cts +0 -112
  574. package/dist/extra/browser.cjs +0 -1
  575. package/dist/extra/browser.d.cts +0 -4
  576. package/dist/extra/browser.d.ts +0 -4
  577. package/dist/extra/browser.js +0 -1
  578. package/dist/extra/index.cjs +0 -20
  579. package/dist/extra/index.d.cts +0 -17
  580. package/dist/extra/index.d.ts +0 -17
  581. package/dist/extra/index.js +0 -1
  582. package/dist/extra/node.cjs +0 -2
  583. package/dist/extra/node.js +0 -2
  584. package/dist/extra/operators.cjs +0 -1
  585. package/dist/extra/operators.d.cts +0 -958
  586. package/dist/extra/operators.d.ts +0 -958
  587. package/dist/extra/operators.js +0 -1
  588. package/dist/extra/reactive.cjs +0 -1
  589. package/dist/extra/reactive.d.cts +0 -353
  590. package/dist/extra/reactive.d.ts +0 -353
  591. package/dist/extra/reactive.js +0 -1
  592. package/dist/extra/render/index.cjs +0 -5
  593. package/dist/extra/render/index.js +0 -1
  594. package/dist/extra/sources.cjs +0 -3
  595. package/dist/extra/sources.js +0 -1
  596. package/dist/extra/storage-browser.cjs +0 -1
  597. package/dist/extra/storage-browser.d.cts +0 -37
  598. package/dist/extra/storage-browser.d.ts +0 -37
  599. package/dist/extra/storage-browser.js +0 -1
  600. package/dist/extra/storage-core.cjs +0 -1
  601. package/dist/extra/storage-core.d.cts +0 -28
  602. package/dist/extra/storage-core.d.ts +0 -28
  603. package/dist/extra/storage-core.js +0 -1
  604. package/dist/extra/storage-node.cjs +0 -1
  605. package/dist/extra/storage-node.d.cts +0 -2
  606. package/dist/extra/storage-node.d.ts +0 -2
  607. package/dist/extra/storage-node.js +0 -0
  608. package/dist/extra/storage-tiers-browser.cjs +0 -1
  609. package/dist/extra/storage-tiers-browser.d.cts +0 -120
  610. package/dist/extra/storage-tiers-browser.d.ts +0 -120
  611. package/dist/extra/storage-tiers-browser.js +0 -1
  612. package/dist/extra/storage-tiers-node.cjs +0 -1
  613. package/dist/extra/storage-tiers-node.d.cts +0 -210
  614. package/dist/extra/storage-tiers-node.d.ts +0 -210
  615. package/dist/extra/storage-tiers-node.js +0 -1
  616. package/dist/extra/storage-tiers.cjs +0 -1
  617. package/dist/extra/storage-tiers.d.cts +0 -412
  618. package/dist/extra/storage-tiers.d.ts +0 -412
  619. package/dist/extra/storage-tiers.js +0 -1
  620. package/dist/graph/index.cjs +0 -7
  621. package/dist/graph/index.d.cts +0 -7
  622. package/dist/graph/index.d.ts +0 -7
  623. package/dist/graph/index.js +0 -1
  624. package/dist/graph-CWvEUQAq.d.cts +0 -1861
  625. package/dist/graph-D9LFnda9.d.ts +0 -1861
  626. package/dist/index-5k1T6jl0.d.cts +0 -121
  627. package/dist/index-9770hRuQ.d.cts +0 -779
  628. package/dist/index-B1F8Enjf.d.ts +0 -704
  629. package/dist/index-BHskSB8v.d.ts +0 -3413
  630. package/dist/index-BIYAkbAi.d.cts +0 -26
  631. package/dist/index-BoJ5JHxI.d.ts +0 -557
  632. package/dist/index-BocU7pqs.d.ts +0 -779
  633. package/dist/index-BxNs2HB9.d.cts +0 -1858
  634. package/dist/index-C1T3d7V-.d.cts +0 -704
  635. package/dist/index-C5ri2Axc.d.cts +0 -301
  636. package/dist/index-C9l6OEBL.d.ts +0 -26
  637. package/dist/index-CC-AvFTy.d.cts +0 -557
  638. package/dist/index-CJF1URuX.d.ts +0 -121
  639. package/dist/index-CdTelp1M.d.ts +0 -202
  640. package/dist/index-Cj3WohTd.d.cts +0 -202
  641. package/dist/index-Co7uli2l.d.cts +0 -3413
  642. package/dist/index-D0aciIex.d.cts +0 -209
  643. package/dist/index-DHen9Klo.d.ts +0 -1858
  644. package/dist/index-Yq60JP3s.d.ts +0 -209
  645. package/dist/index-nozs3fFC.d.ts +0 -301
  646. package/dist/node-kK3CvTrR.d.cts +0 -1347
  647. package/dist/node-kK3CvTrR.d.ts +0 -1347
  648. package/dist/patterns/ai/browser.cjs +0 -8
  649. package/dist/patterns/ai/browser.js +0 -3
  650. package/dist/patterns/ai/index.cjs +0 -74
  651. package/dist/patterns/ai/index.d.cts +0 -20
  652. package/dist/patterns/ai/index.d.ts +0 -20
  653. package/dist/patterns/ai/index.js +0 -1
  654. package/dist/patterns/ai/node.cjs +0 -1
  655. package/dist/patterns/ai/node.js +0 -1
  656. package/dist/patterns/cqrs/index.cjs +0 -3
  657. package/dist/patterns/cqrs/index.d.cts +0 -8
  658. package/dist/patterns/cqrs/index.d.ts +0 -8
  659. package/dist/patterns/cqrs/index.js +0 -1
  660. package/dist/patterns/demo-shell/index.cjs +0 -5
  661. package/dist/patterns/demo-shell/index.d.cts +0 -7
  662. package/dist/patterns/demo-shell/index.d.ts +0 -7
  663. package/dist/patterns/demo-shell/index.js +0 -1
  664. package/dist/patterns/domain-templates/index.cjs +0 -3
  665. package/dist/patterns/domain-templates/index.d.cts +0 -6
  666. package/dist/patterns/domain-templates/index.d.ts +0 -6
  667. package/dist/patterns/domain-templates/index.js +0 -1
  668. package/dist/patterns/graphspec/index.cjs +0 -86
  669. package/dist/patterns/graphspec/index.d.cts +0 -8
  670. package/dist/patterns/graphspec/index.d.ts +0 -8
  671. package/dist/patterns/graphspec/index.js +0 -1
  672. package/dist/patterns/harness/index.cjs +0 -48
  673. package/dist/patterns/harness/index.d.cts +0 -13
  674. package/dist/patterns/harness/index.d.ts +0 -13
  675. package/dist/patterns/harness/index.js +0 -1
  676. package/dist/patterns/inspect/index.cjs +0 -3
  677. package/dist/patterns/inspect/index.d.cts +0 -9
  678. package/dist/patterns/inspect/index.d.ts +0 -9
  679. package/dist/patterns/inspect/index.js +0 -1
  680. package/dist/patterns/job-queue/index.cjs +0 -3
  681. package/dist/patterns/job-queue/index.d.cts +0 -9
  682. package/dist/patterns/job-queue/index.d.ts +0 -9
  683. package/dist/patterns/job-queue/index.js +0 -1
  684. package/dist/patterns/memory/index.cjs +0 -3
  685. package/dist/patterns/memory/index.d.cts +0 -8
  686. package/dist/patterns/memory/index.d.ts +0 -8
  687. package/dist/patterns/memory/index.js +0 -1
  688. package/dist/patterns/messaging/index.cjs +0 -3
  689. package/dist/patterns/messaging/index.d.cts +0 -7
  690. package/dist/patterns/messaging/index.d.ts +0 -7
  691. package/dist/patterns/messaging/index.js +0 -1
  692. package/dist/patterns/orchestration/index.cjs +0 -3
  693. package/dist/patterns/orchestration/index.d.cts +0 -8
  694. package/dist/patterns/orchestration/index.d.ts +0 -8
  695. package/dist/patterns/orchestration/index.js +0 -1
  696. package/dist/patterns/process/index.cjs +0 -3
  697. package/dist/patterns/process/index.d.cts +0 -10
  698. package/dist/patterns/process/index.d.ts +0 -10
  699. package/dist/patterns/process/index.js +0 -1
  700. package/dist/patterns/reactive-layout/index.cjs +0 -4
  701. package/dist/patterns/reactive-layout/index.d.cts +0 -7
  702. package/dist/patterns/reactive-layout/index.d.ts +0 -7
  703. package/dist/patterns/reactive-layout/index.js +0 -1
  704. package/dist/patterns/reduction/index.cjs +0 -3
  705. package/dist/patterns/reduction/index.d.cts +0 -6
  706. package/dist/patterns/reduction/index.d.ts +0 -6
  707. package/dist/patterns/reduction/index.js +0 -1
  708. package/dist/patterns/surface/index.cjs +0 -13
  709. package/dist/patterns/surface/index.d.cts +0 -9
  710. package/dist/patterns/surface/index.d.ts +0 -9
  711. package/dist/patterns/surface/index.js +0 -1
  712. package/dist/reactive-log-BKALbfal.d.ts +0 -223
  713. package/dist/reactive-log-DIGdYqQ6.d.cts +0 -223
  714. package/dist/reactive-map-CEFGp8TK.d.cts +0 -296
  715. package/dist/reactive-map-DS_SIAxv.d.ts +0 -296
  716. package/dist/resilience-6LYQJAC5.js +0 -1
  717. package/dist/sugar-DQjFmVqb.d.cts +0 -399
  718. package/dist/sugar-fhLIE7TT.d.ts +0 -399
  719. package/dist/topology-tree-Bcz27hpF.d.cts +0 -25
  720. package/dist/topology-tree-xvaD0fOX.d.ts +0 -25
@@ -1 +0,0 @@
1
- import{a as jc,b as kc,c as tc,d as uc,e as Qc,f as Rc,g as Sc,h as Tc,i as Uc,j as Vc,k as Wc}from"../chunk-ST7UXLWR.js";import{a as nc,b as oc}from"../chunk-PTZK576G.js";import{b as Pc}from"../chunk-TSOYJ743.js";import{$ as hc,A as Ib,B as Jb,C as Kb,D as Lb,E as Mb,F as Nb,G as Ob,H as Pb,I as Qb,J as Rb,K as Sb,L as Tb,M as Ub,N as Vb,O as Wb,P as Xb,Q as Yb,R as Zb,S as _b,T as $b,U as ac,V as bc,W as cc,X as dc,Y as ec,Z as fc,_ as gc,a as ib,aa as ic,b as jb,ba as sc,c as kb,d as lb,e as mb,f as nb,g as ob,h as pb,i as qb,j as rb,k as sb,l as tb,m as ub,n as vb,o as wb,p as xb,q as yb,r as zb,s as Ab,t as Bb,u as Cb,v as Db,w as Eb,x as Fb,y as Gb,z as Hb}from"../chunk-N4MQX6JU.js";import{a as e,d as ka,e as la,f as ma,g as na,h as oa,i as pa,j as qa,k as ra,l as sa,m as ta,n as ua}from"../chunk-D7GPHKFH.js";import{b as pc,c as qc,d as rc,e as zc,f as Ac}from"../chunk-WJR24TAG.js";import{a as Oc}from"../chunk-N7FHEL4D.js";import{a,b as Xa}from"../chunk-5QDBSZBV.js";import{a as $a,b as ab,c as bb,d as cb,e as db,f as eb,g as fb,h as gb,i as hb}from"../chunk-W3I423PS.js";import{a as d}from"../chunk-L6NSJVJZ.js";import"../chunk-2T7U5EU6.js";import"../chunk-3G5U5QNE.js";import"../chunk-C72GO4IZ.js";import{e as f}from"../chunk-HITNVN6B.js";import{a as g}from"../chunk-ESMPEKEV.js";import{a as Dc,b as Ec,c as Fc,d as Gc,e as Hc,f as Ic,g as Jc,h as Kc,i as Lc,j as Mc,k as Nc}from"../chunk-D5RFJOZ2.js";import{a as Bc,b as Cc}from"../chunk-CE72X3WO.js";import{A as Q,B as R,C as S,D as T,E as U,F as V,G as W,I as X,J as Y,K as Z,L as _,M as $,N as aa,O as ba,P as ca,Q as da,R as ea,S as fa,T as ga,U as ha,V as ia,W as ja,a as q,b as r,c as s,d as t,e as u,f as v,g as w,h as x,i as y,j as z,k as A,l as B,m as C,n as D,o as E,p as F,q as G,r as H,s as I,t as J,u as K,v as L,w as M,x as N,y as O,z as P}from"../chunk-CLVB32RD.js";import{a as h,b as i,c as j,d as k,e as l,f as m,g as n,h as o,i as p}from"../chunk-4VVTGLXJ.js";import"../chunk-GHBWHMRZ.js";import{a as vc,b as wc}from"../chunk-A5WCQ5NO.js";import{a as xc,b as yc}from"../chunk-GLERH466.js";import{a as lc,b as mc}from"../chunk-BEZWM2SY.js";import{a as Ya,b as Za,c as _a}from"../chunk-YBB7ZGTY.js";import{A as Ta,B as Ua,C as Va,D as Wa,a as b,b as c,c as va,d as wa,e as xa,f as ya,g as za,h as Aa,i as Ba,j as Ca,k as Da,l as Ea,m as Fa,n as Ga,o as Ha,p as Ia,q as Ja,r as Ka,s as La,t as Ma,u as Na,v as Oa,w as Pa,x as Qa,y as Ra,z as Sa}from"../chunk-CRVT7D2P.js";import"../chunk-NTEURFZH.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{la as CircuitOpenError,pc as ContentAddressedMissError,ab as DEFAULT_AUDIT_GUARD,h as NS_PER_MS,i as NS_PER_SEC,vc as NativeIndexBackend,xc as NativeListBackend,Ya as NativeLogBackend,lc as NativeMapBackend,tc as NativePubSubBackend,pa as RateLimiterOverflowError,g as ResettableTimer,sa as TimeoutError,db as appendAudit,Hc as appendLogStorage,W as audit,Sa as awaitSettled,e as budgetGate,X as buffer,Y as bufferCount,_ as bufferTime,cb as bumpCursor,Pa as cached,qc as canonicalJson,kc as cascadingCache,ja as catchError,cc as checkpointToRedis,bc as checkpointToS3,ma as circuitBreaker,H as combine,ga as combineLatest,L as concat,P as concatMap,j as constant,rc as contentAddressedStorage,bb as createAuditLog,Uc as createTransport,Xa as createWatermarkController,Lb as csvRows,T as debounce,ha as debounceTime,Pc as decay,n as decorrelatedJitter,Ka as defer,S as delay,Tc as deserializeError,Mc as dictKv,Nc as dictSnapshot,oc as distill,F as distinctUntilChanged,d as domainMeta,B as elementAt,Ha as empty,va as escapeRegexChar,O as exhaustMap,l as exponential,jb as externalBundle,ib as externalProducer,ta as fallback,m as fibonacci,r as filter,A as find,y as first,Qa as firstValueFrom,Ra as firstWhere,R as flatMap,La as forEach,Fa as fromAny,Ea as fromAsyncIter,Kb as fromCSV,Ob as fromClickHouseWatch,Aa as fromCron,hc as fromDrizzle,Ba as fromEvent,nb as fromHTTP,vb as fromHTTPPoll,ub as fromHTTPStream,Ca as fromIter,Gb as fromKafka,ic as fromKysely,yb as fromMCP,Rb as fromNATS,Nb as fromNDJSON,zb as fromOTel,gc as fromPrisma,Eb as fromPrometheus,Da as fromPromise,Pb as fromPulsar,Tb as fromRabbitMQ,za as fromRaf,Ib as fromRedisStream,tb as fromSSE,dc as fromSqlite,ec as fromSqliteCursor,Cb as fromStatsD,Ab as fromSyslog,ya as fromTimer,lb as fromWebSocket,xb as fromWebSocketReconnect,mb as fromWebhook,wa as globToRegExp,ba as interval,Dc as jsonCodec,Ec as jsonCodecFor,Va as keepalive,Ic as kvStorage,z as last,eb as lightMutation,k as linear,jc as lru,sc as makeHttpError,q as map,xa as matchesAnyPattern,c as matchesCron,Kc as memoryAppendLog,Fc as memoryBackend,Lc as memoryKv,Jc as memorySnapshot,J as merge,Q as mergeMap,_a as mergeReactiveLogs,Rc as nameToSignal,Mb as ndjsonRows,Ia as never,Ta as nodeSignal,Ga as of,D as onFirstData,G as pairwise,b as parseCron,Fb as parsePrometheusText,sb as parseSSEStream,Db as parseStatsD,Bb as parseSyslog,da as pausable,uc as pubsub,M as race,qa as rateLimiter,Wa as reactiveCounter,wc as reactiveIndex,yc as reactiveList,Za as reactiveLog,mc as reactiveMap,kb as reactiveSink,t as reduce,gb as registerCursor,hb as registerCursorMap,ca as repeat,Oa as replay,ea as rescue,p as resolveBackoffPreset,ka as retry,V as sample,s as scan,Sc as serializeError,Na as share,Ua as shareReplay,Qc as signalToName,zc as singleFromAny,Ac as singleNodeFromAny,v as skip,Gc as snapshotStorage,Bc as sortJsonValue,Cc as stableJsonString,Oc as stratify,N as switchMap,u as take,x as takeUntil,w as takeWhile,C as tap,E as tapFirst,U as throttle,ia as throttleTime,Ja as throwError,ua as timeout,Ma as toArray,Wb as toCSV,Xb as toClickHouse,Vb as toFile,ob as toHTTP,Hb as toKafka,$b as toLoki,_b as toMongo,Sb as toNATS,a as toObservable,Zb as toPostgres,Qb as toPulsar,Ub as toRabbitMQ,rb as toReadableStream,Jb as toRedisStream,Yb as toS3,pb as toSSE,qb as toSSEBytes,fc as toSqlite,ac as toTempo,wb as toWebSocket,oa as tokenBucket,f as topologyDiff,$a as tryIncrementBounded,fa as valve,nc as verifiable,aa as window,Z as windowCount,$ as windowTime,na as withBreaker,I as withLatestFrom,o as withMaxAttempts,ra as withStatus,Vc as workerBridge,Wc as workerSelf,fb as wrapMutation,K as zip};
@@ -1,2 +0,0 @@
1
- "use strict";var fe=Object.defineProperty;var Nn=Object.getOwnPropertyDescriptor;var xn=Object.getOwnPropertyNames;var kn=Object.prototype.hasOwnProperty;var k=(t,e)=>()=>(t&&(e=t(t=0)),e);var En=(t,e)=>{for(var n in e)fe(t,n,{get:e[n],enumerable:!0})},On=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of xn(e))!kn.call(t,o)&&o!==n&&fe(t,o,{get:()=>e[o],enumerable:!(r=Nn(e,o))||r.enumerable});return t};var Sn=t=>On(fe({},"__esModule",{value:!0}),t);function K(){return Date.now()*1e6}var ne=k(()=>{"use strict"});var L,v,R,M,H,B,X,P,N,g,$,pe,An,he,Rn,Mn,me,De,Ce,Fe,ge,G=k(()=>{"use strict";L=Symbol.for("graphrefly/START"),v=Symbol.for("graphrefly/DATA"),R=Symbol.for("graphrefly/DIRTY"),M=Symbol.for("graphrefly/RESOLVED"),H=Symbol.for("graphrefly/INVALIDATE"),B=Symbol.for("graphrefly/PAUSE"),X=Symbol.for("graphrefly/RESUME"),P=Symbol.for("graphrefly/TEARDOWN"),N=Symbol.for("graphrefly/COMPLETE"),g=Symbol.for("graphrefly/ERROR"),$=Object.freeze([R]),pe=Object.freeze([M]),An=Object.freeze([H]),he=Object.freeze([L]),Rn=Object.freeze([N]),Mn=Object.freeze([P]),me=Object.freeze([$]),De=Object.freeze([pe]),Ce=Object.freeze([An]),Fe=Object.freeze([Rn]),ge=Object.freeze([Mn])});function Ie(t){t.registerCodec(Dn)}var Dn,Le=k(()=>{"use strict";Dn={name:"json",version:1,contentType:"application/json",encode(t){let e=JSON.stringify(t);return new TextEncoder().encode(e)},decode(t,e){let n=new TextDecoder().decode(t);return JSON.parse(n)}}});function te(t){if(t==null)return Cn;let{type:e,id:n,...r}=t;return{type:e??"system",id:n??"",...r}}var Cn,Pe=k(()=>{"use strict";Cn={type:"system",id:""}});function He(){return Te>0||Fn}function Be(){return Te>0}function We(t){Te>0?In.push(t):t()}function re(t,e,n){if(e.length===0)return;if(e.length===1){let d=n(e[0][0]);if(d<3||!He()){t(e);return}(d>=5?Ve:d===4?Ue:Ge).push(()=>t(e));return}let r=e.length,o=r,s=r,a=r,i=0;for(;i<r&&n(e[i][0])<3;)i++;for(o=i;i<r&&n(e[i][0])===3;)i++;for(s=i;i<r&&n(e[i][0])===4;)i++;a=i;let u=He();if(o>0){let d=e.slice(0,o);t(d)}if(s>o){let d=e.slice(o,s);u?Ge.push(()=>t(d)):t(d)}if(a>s){let d=e.slice(s,a);u?Ue.push(()=>t(d)):t(d)}if(r>a){let d=e.slice(a,r);u?Ve.push(()=>t(d)):t(d)}}var Te,Fn,Ge,Ue,Ve,In,je=k(()=>{"use strict";Te=0,Fn=!1,Ge=[],Ue=[],Ve=[],In=[]});function Ke(t){t.registerMessageType(L,{tier:0,wireCrossing:!1}),t.registerMessageType(R,{tier:1,wireCrossing:!1}),t.registerMessageType(H,{tier:1,wireCrossing:!1,metaPassthrough:!1}),t.registerMessageType(B,{tier:2,wireCrossing:!1}),t.registerMessageType(X,{tier:2,wireCrossing:!1}),t.registerMessageType(v,{tier:3,wireCrossing:!0}),t.registerMessageType(M,{tier:3,wireCrossing:!0}),t.registerMessageType(N,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(g,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(P,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var oe,$e=k(()=>{"use strict";G();oe=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.")}}});var z,ze=k(()=>{"use strict";z=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 be(t){if(t===void 0)return null;if(typeof t=="number"){if(!Number.isFinite(t))throw new TypeError(`Cannot hash non-finite number: ${t}`);if(Number.isInteger(t)&&!Number.isSafeInteger(t))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${t}. Cross-language cid parity is not guaranteed for unsafe integers.`);return t}if(typeof t=="string"||typeof t=="boolean"||t===null)return t;if(Array.isArray(t))return t.map(be);if(typeof t=="object"&&t!==null){let e={};for(let n of Object.keys(t).sort())e[n]=be(t[n]);return e}return null}function Gn(t){let e=Pn.encode(t),n=e.length,r=n*8,o=n+9+63&-64,s=new Uint8Array(o);s.set(e),s[n]=128;let a=new DataView(s.buffer);a.setUint32(o-4,r>>>0,!1),a.setUint32(o-8,Math.floor(r/4294967296)>>>0,!1);let i=1779033703,u=3144134277,d=1013904242,l=2773480762,c=1359893119,p=2600822924,f=528734635,h=1541459225,T=new Uint32Array(64),y=(m,x)=>m>>>x|m<<32-x;for(let m=0;m<o;m+=64){for(let _=0;_<16;_++)T[_]=a.getUint32(m+_*4,!1);for(let _=16;_<64;_++){let F=T[_-15],j=T[_-2],J=y(F,7)^y(F,18)^F>>>3,V=y(j,17)^y(j,19)^j>>>10;T[_]=T[_-16]+J+T[_-7]+V>>>0}let x=i,w=u,E=d,D=l,S=c,I=p,Y=f,C=h;for(let _=0;_<64;_++){let F=y(S,6)^y(S,11)^y(S,25),j=S&I^~S&Y,J=C+F+j+Ln[_]+T[_]>>>0,V=y(x,2)^y(x,13)^y(x,22),ce=x&w^x&E^w&E,_n=V+ce>>>0;C=Y,Y=I,I=S,S=D+J>>>0,D=E,E=w,w=x,x=J+_n>>>0}i=i+x>>>0,u=u+w>>>0,d=d+E>>>0,l=l+D>>>0,c=c+S>>>0,p=p+I>>>0,f=f+Y>>>0,h=h+C>>>0}let b=m=>m.toString(16).padStart(8,"0");return b(i)+b(u)+b(d)+b(l)+b(c)+b(p)+b(f)+b(h)}function ye(t){let e=be(t??null),n=JSON.stringify(e);return Gn(n).slice(0,16)}function Un(){let t=globalThis.crypto;if(t?.randomUUID)return t.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 ve(t,e,n){let r=n?.id??Un();if(t===0)return{id:r,version:0};let s=(n?.hash??ye)(e);return{id:r,version:0,cid:s,prev:null}}function qe(t,e,n){t.version+=1,"cid"in t&&(t.prev=t.cid,t.cid=n(e))}var Ln,Pn,Ye=k(()=>{"use strict";Ln=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]),Pn=new TextEncoder});function Ze(t){return{node:t,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function we(t){t.prevData=void 0,t.dirty=!1,t.involvedThisWave=!1,t.dataBatch.length=0,t.terminal=void 0}function se(t){return t.length===0?t:typeof t[0]=="symbol"?[t]:t}function ae(t,e,n){let r=Qe(t)?t:[],o=typeof t=="function"?t:typeof e=="function"?e:void 0,s={};return Qe(t)?s=(_e(e)?e:n)??{}:_e(t)?s=t:s=(_e(e)?e:n)??{},new ie(r,o,s)}var Je,Xe,Vn,Hn,Ne,ie,Qe,_e,xe=k(()=>{"use strict";Le();Pe();je();ne();$e();ze();G();Ye();Je=()=>{},Xe=100;Vn=(t,e,n,r)=>{n.direction==="down-in"&&t._onDepMessage(n.depIndex,e)},Hn=(t,e,n,r)=>{let o=t;if(o._status==="completed"||o._status==="errored")return;let s=o._cached,a=s===void 0?[he]:[he,[v,s]];o._status==="dirty"&&a.push($),re(e,a,o._config.tierOf)},Ne=new oe({onMessage:Vn,onSubscribe:Hn});Ke(Ne);Ie(Ne);ie=class t{_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??Ne,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??ye;let o=r.versioning??this._config.defaultVersioning;this._versioningLevel=o,this._versioning=o!=null?ve(o,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(Ze);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 t([],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([[v,i]])},down(i){a._emit(se(i))},up(i){a._emitUp(se(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 o=n?.hash??this._hashFn;o!==this._hashFn&&(this._hashFn=o);let s=this._cached===void 0?void 0:this._cached,a=this._versioning,i=a?.id??n?.id,u=a?.version??0,d=ve(e,s,{id:i,hash:o});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=te(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 o=te(e?.actor),s=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(o,s))throw new z({actor:o,action:s,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(o,s))throw new z({actor:o,action:s,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:K()}}down(e,n){let r=se(e);r.length!==0&&(this._checkGuard(n),this._emit(r))}emit(e,n){this._checkGuard(n),this._emit([[v,e]])}up(e,n){if(this._deps.length===0)return;let r=se(e);if(r.length===0)return;this._checkGuard(n);let o=n??{internal:!0};this._validateUpTiers(r);for(let s of this._deps)s.node.up?.(r,o)}_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 o=n(r[0]);if(o===3||o===4)throw new Error(`Node "${this.name}": tier-${o} 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=te(n);if(!this._guard(u,"observe"))throw new z({actor:u,action:"observe",nodeName:this.name})}let o=this._isTerminal&&this._resubscribable;if(o){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)we(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:o},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 o=r,s=this._deps[r];s.unsub=Je,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:o},this._actions);u&&this._maybeRunFnOnSettlement()}),n++}}catch(r){this._deps[n].unsub=null;for(let o=0;o<n;o++){let s=this._deps[o];if(s.unsub!=null){let a=s.unsub;s.unsub=null;try{a()}catch{}we(s)}}throw this._dirtyDepCount=0,r}}_addDep(e){for(let o=0;o<this._deps.length;o++)if(this._deps[o].node===e)return o;let n=this._deps.length,r=Ze(e);if(this._deps.push(r),this._sinks==null)return n;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(me),r.unsub=Je;try{r.unsub=e.subscribe(o=>{if(r.unsub===null)return;let s=this._config.tierOf,a=!1;for(let i of o)s(i[0])>=3&&(a=!0),this._config.onMessage(this,i,{direction:"down-in",depIndex:n},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(o){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,o}return n}_deactivate(e=!1){let n=this._cleanup;if(this._cleanup=void 0,typeof n=="function")try{n()}catch(r){this._emit([[g,this._wrapFnError("cleanup threw",r)]])}else if(n!=null&&typeof n=="object"){let r=n.deactivate;if(typeof r=="function")try{r()}catch(o){this._emit([[g,this._wrapFnError("cleanup.deactivate threw",o)]])}}for(let r of this._deps){if(r.unsub!=null){let o=r.unsub;r.unsub=null;try{o()}catch{}}we(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],o=n[0];if(this._inspectorHooks!=null){let s={kind:"dep_message",depIndex:e,message:n};for(let a of this._inspectorHooks)a(s)}if(o!==L){if(o===R){this._depDirtied(r);return}if(o===H){if(this._depInvalidated(r),this._cached===void 0)return;this._emit(Ce);return}if(o===B||o===X){this._emit([n]);return}if(o===P){this._emit(ge);return}if(o===v)this._depSettledAsData(r,n[1]);else if(o===M)this._depSettledAsResolved(r);else if(o===N)this._depSettledAsTerminal(r,!0);else if(o===g)this._depSettledAsTerminal(r,n[1]);else{this._emit([n]);return}if(!this._fn){(o===v||o===M)&&this._emit([n]),(o===N||o===g)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(me))}_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(De),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([[g,e.terminal]]);return}this._autoComplete&&this._deps.every(n=>n.terminal!==void 0)&&this._emit(Fe)}_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([[g,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([[g,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 o=this._deps.map(a=>a.terminal),s={prevData:r,terminalDeps:o,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([[g,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>Xe?(this._rerunDepth=0,this._emit([[g,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${Xe} \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"?[$,e[0]]:e;let r=!0,o=!1,s=!1,a=-1;for(let u of e){let d=n(u[0]);d<a&&(r=!1),d===3&&(o=!0),u[0]===R&&(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(o&&!s&&this._status!=="dirty"){let u=0;for(;u<i.length&&n(i[u][0])===0;)u++;return u===0?[$,...i]:[...i.slice(0,u),$,...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]===g&&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]===P||u[0]===H);if(i.length===0)return;n=i}n=this._frameBatch(n);let o=null;for(let i=0;i<n.length;i++){let u=n[i],d=u[0];if(d!==B&&d!==X){o?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${d===B?"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 c=u[1];if(d===B)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(c),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(c))l=!1;else if(this._pauseLocks.delete(c),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let p=this._pauseBuffer;this._pauseBuffer=[],this._emit(p)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}l?o?.push(u):o==null&&(o=n.slice(0,i))}if(o!=null){if(o.length===0)return;n=o}if(this._hasMeta&&n.some(i=>i[0]===P))for(let i of Object.keys(this.meta))try{this.meta[i]._emit(ge)}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([[g,a]])}_updateState(e){let n=this._config.tierOf,r,o,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]===v){u=l;break}}for(let l=0;l<e.length;l++){let c=e[l],p=c[0];if(p===v){if(c.length>=2){let f=!1;if(i&&this._cached!==void 0)try{f=this._equals(this._cached,c[1])}catch(h){o=this._wrapFnError("equals threw",h),s=l;break}if(f){r==null&&(r=e.slice(0,l)),r.push(pe),this._status="resolved";continue}this._cached=c[1],this._versioning!=null&&(u<0||l===u)&&qe(this._versioning,c[1],this._hashFn)}this._status="settled",r?.push(c)}else if(r?.push(c),p===R)this._status="dirty";else if(p===M)this._status="resolved";else if(p===N){this._status="completed";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===g){this._status="errored";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===H){if(this._cached!==void 0){let h=this._config.rigorRecorder;if(h!=null)try{h.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let f=this._cleanup;if(typeof f=="function"){this._cleanup=void 0;try{f()}catch{}}else if(f!=null&&typeof f=="object"){let h=f.invalidate;if(typeof h=="function")try{h()}catch{}}}else p===P&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let d=s>=0?r??e.slice(0,s):r??e;return o!=null?{finalMessages:d,equalsError:o}:{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(Be()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],We(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}re(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);re(this._deliverToSinks,n,this._config.tierOf)}},Qe=t=>Array.isArray(t),_e=t=>typeof t=="object"&&t!=null&&!Array.isArray(t)});function A(t,e){return ae((r,o,s)=>t(o,s)??void 0,{describeKind:"producer",...e})}var Z=k(()=>{"use strict";xe()});function en(t,e){let n={factory:t};return e!==void 0&&(n.factoryArgs=e),n}var nn=k(()=>{"use strict"});function de(t){return{describeKind:"producer",...t}}function Bn(t){return/[\\^$+?.()|[\]{}]/.test(t)?`\\${t}`:t}function q(t){let e="^";for(let n=0;n<t.length;n+=1){let r=t[n];if(r==="*"){t[n+1]==="*"?(e+=".*",n+=1):e+="[^/]*";continue}e+=Bn(r)}return e+="$",new RegExp(e)}function U(t,e){for(let n of e)if(n.test(t))return!0;return!1}function tn(t,e){let{signal:n,period:r,...o}=e??{};return A(s=>{let a=!1,i=0,u,d,l=()=>{a=!0,u!==void 0&&clearTimeout(u),d!==void 0&&clearInterval(d),n?.removeEventListener("abort",p)},c=()=>{a||(r!=null?(s.emit(i++),d=setInterval(()=>{a||s.emit(i++)},r)):(a=!0,n?.removeEventListener("abort",p),s.emit(i++),s.down([[N]])))},p=()=>{a||(l(),s.down([[g,n.reason]]))};if(n?.aborted){p();return}return u=setTimeout(c,t),n?.addEventListener("abort",p,{once:!0}),l},de(o))}function rn(t,e){return A(n=>{let r=!1;try{for(let o of t){if(r)return;n.emit(o)}r||n.down([[N]])}catch(o){r||n.down([[g,o]])}return()=>{r=!0}},de(e))}function Wn(t){return t!=null&&typeof t.then=="function"}function jn(t,e){let{signal:n,...r}=e??{};return A(o=>{let s=!1,a=()=>{s||(s=!0,o.down([[g,n.reason]]))};if(n?.aborted){a();return}return n?.addEventListener("abort",a,{once:!0}),Promise.resolve(t).then(i=>{s||(s=!0,n?.removeEventListener("abort",a),o.emit(i),o.down([[N]]))},i=>{s||(s=!0,n?.removeEventListener("abort",a),o.down([[g,i]]))}),()=>{s=!0,n?.removeEventListener("abort",a)}},de(r))}function Kn(t,e){let{signal:n,...r}=e??{};return A(o=>{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=t[Symbol.asyncIterator](),l=()=>{u||i.aborted||Promise.resolve(d.next()).then(c=>{if(!(u||i.aborted)){if(c.done){o.down([[N]]);return}o.emit(c.value),l()}},c=>{!u&&!i.aborted&&o.down([[g,c]])})};return l(),()=>{u=!0,n?.removeEventListener("abort",a),s.abort(),Promise.resolve(d.return?.()).catch(()=>{})}},de(r))}function $n(t){return t!=null&&typeof t=="object"&&"cache"in t&&typeof t.subscribe=="function"}function on(t,e){if($n(t))return t;if(Wn(t))return jn(t,e);if(t!=null){let n=t;if(typeof n[Symbol.asyncIterator]=="function")return Kn(t,e);if(typeof n[Symbol.iterator]=="function")return rn(t,e)}return zn(t)}function zn(...t){return rn(t,void 0)}var sn=k(()=>{"use strict";G();Z()});var ue=k(()=>{"use strict";sn()});function qn(t){return{describeKind:"derived",...t}}function Yn(t,e,n){let r,o=!1,s=()=>{o||(o=!0,n())};return r=t.subscribe(a=>{let i=!1,u=!1;for(let d of a)d[0]!==L&&(d[0]===v?e.emit(d[1]):d[0]===N?i=!0:d[0]===g?(u=!0,e.down([d])):(d[0]===R||d[0]===M)&&e.down([d]));u?(r?.(),r=void 0,s()):i&&s()}),()=>{r?.(),r=void 0}}function an(t,e,n){let r,o=!1;function s(){r?.(),r=void 0}return ae([t],(a,i,u)=>{if(u.terminalDeps[0]!=null&&u.terminalDeps[0]!==!0){s();return}if(u.terminalDeps[0]===!0){o=!0,r||i.down([[N]]);return}let d=a[0];if(!(d==null||d.length===0))return s(),r=Yn(on(e(d[d.length-1])),i,()=>{s(),o&&i.down([[N]])}),{deactivate:()=>{s(),o=!1}}},{...qn(n),completeWhenDepsComplete:!1,meta:{...en("switchMap"),...n?.meta??{}}})}var dn=k(()=>{"use strict";G();nn();xe();ue()});var un=k(()=>{"use strict";dn()});var et={};En(et,{fileAppendLog:()=>Tn,fileBackend:()=>Q,fileKv:()=>vn,fileSnapshot:()=>gn,fromFSWatch:()=>Xn,fromGitHook:()=>ln,fromSpawn:()=>cn,runProcess:()=>fn,sqliteAppendLog:()=>yn,sqliteBackend:()=>ee,sqliteKv:()=>wn,sqliteSnapshot:()=>bn});module.exports=Sn(et);ne();G();Z();un();ue();function ln(t,e){let{pollMs:n=5e3,include:r,exclude:o,maxConsecutiveErrors:s=1}=e??{},a=r?.map(q)??[],i=o?.map(q)??[],{execFileSync:u}=require("node:child_process"),d=p=>u("git",p,{cwd:t,encoding:"utf-8"}).trim(),l,c=0;return an(tn(0,{period:n}),()=>A(p=>{try{let f=d(["rev-parse","HEAD"]);if(!f)return c=0,()=>{};if(l===void 0)return l=f,c=0,()=>{};if(f===l)return c=0,()=>{};let h=d(["diff","--name-only",`${l}..${f}`]).split(`
2
- `).filter(Boolean);a.length>0&&(h=h.filter(b=>U(b,a))),i.length>0&&(h=h.filter(b=>!U(b,i)));let T=d(["log","-1","--format=%s",f]),y=d(["log","-1","--format=%an",f]);p.emit({hook:"post-commit",commit:f,files:h,message:T,author:y,timestamp_ns:K()}),l=f,c=0}catch(f){c+=1,c>=s&&p.down([[g,f]])}return()=>{}}))}var le=require("node:fs"),ke=require("node:path");ne();G();Z();ue();function Jn(t){return{describeKind:"producer",...t}}function Xn(t,e){let n=Array.isArray(t)?t:[t];if(n.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:r=!0,debounce:o=100,include:s,exclude:a,...i}=e??{},u=s?.map(q)??[],d=(a??["**/node_modules/**","**/.git/**","**/dist/**"]).map(q);return A(l=>{let c=new Map,p=[],f=!1,h=!1,T=0,y=()=>{for(let w of p.splice(0))w.close()},b=w=>{h||(h=!0,f=!0,m!==void 0&&clearTimeout(m),m=void 0,c.clear(),y(),l.down([[g,w]]))},m,x=w=>{if(m=void 0,f||h||c.size===0)return;let E=[];for(let D of c.values())E.push([v,D]);c.clear(),!(f||h||w!==T)&&l.down(E)};try{for(let w of n){let E=(0,le.watch)(w,{recursive:r},(D,S)=>{if(f||h||S==null)return;let I=String(S).replaceAll("\\","/"),C=(0,ke.resolve)(w,String(S)).replaceAll("\\","/"),_=(0,ke.resolve)(w).replaceAll("\\","/"),F=I.startsWith("./")?I.slice(2):I;if(!(u.length===0||U(C,u)||U(F,u))||U(C,d)||U(F,d))return;let V="change";if(D==="rename")try{V=(0,le.existsSync)(C)?"create":"delete"}catch{V="rename"}c.set(C,{type:V,path:C,root:_,relative_path:F,timestamp_ns:K()}),m!==void 0&&clearTimeout(m);let ce=T;m=setTimeout(()=>x(ce),o)});E.on("error",D=>b(D)),p.push(E)}}catch(w){b(w)}return()=>{f=!0,T+=1,m!==void 0&&clearTimeout(m),m=void 0,y(),c.clear()}},Jn(i))}var Ee=require("node:child_process");G();Z();function cn(t,e,n){return A(r=>{let o=(0,Ee.spawn)(t,e,{cwd:n?.cwd,env:n?.env,shell:n?.shell,signal:n?.signal,stdio:n?.stdio??"pipe"}),s=!0,a=null;return o.stdout?.on("data",i=>{s&&r.down([[v,{kind:"stdout",chunk:i}]])}),o.stderr?.on("data",i=>{s&&r.down([[v,{kind:"stderr",chunk:i}]])}),o.on("error",i=>{s&&(s=!1,r.down([[g,i]]))}),o.on("exit",(i,u)=>{a==null&&(a={code:i,signal:u})}),o.on("close",()=>{if(!s)return;s=!1;let i=a??{code:null,signal:null};r.down([[v,{kind:"exit",code:i.code,signal:i.signal}],[N]])}),()=>{if(s){s=!1,o.stdout?.removeAllListeners(),o.stderr?.removeAllListeners(),o.removeAllListeners("error"),o.removeAllListeners("exit"),o.removeAllListeners("close");try{o.kill("SIGTERM")}catch{}}}},{name:"from_spawn"})}function fn(t,e,n){return A(r=>{let o=(0,Ee.spawn)(t,e,{cwd:n?.cwd,env:n?.env,shell:n?.shell,signal:n?.signal,stdio:n?.stdio??"pipe"}),s=!0,a=[],i=[],u=null;return o.stdout?.on("data",d=>{s&&a.push(d)}),o.stderr?.on("data",d=>{s&&i.push(d)}),o.on("error",d=>{s&&(s=!1,r.down([[g,d]]))}),o.on("exit",(d,l)=>{u==null&&(u={code:d,signal:l})}),o.on("close",()=>{if(!s)return;s=!1;let d=u??{code:null,signal:null},l=Buffer.concat(a).toString("utf8"),c=Buffer.concat(i).toString("utf8");r.down([[v,{stdout:l,stderr:c,exitCode:d.code,signal:d.signal}],[N]])}),()=>{if(s){s=!1,o.stdout?.removeAllListeners(),o.stderr?.removeAllListeners(),o.removeAllListeners("error"),o.removeAllListeners("exit"),o.removeAllListeners("close");try{o.kill("SIGTERM")}catch{}}}},{name:"run_process"})}var hn=require("node:crypto"),O=require("node:fs"),W=require("node:path"),mn=require("node:sqlite");function Oe(t){if(t===null||typeof t!="object")return t;if(Array.isArray(t))return t.map(Oe);let e=t,n=Object.keys(e).sort(),r={};for(let o of n)r[o]=Oe(e[o]);return r}function pn(t){return JSON.stringify(Oe(t),void 0,0)}var Zn=new TextEncoder,Qn=new TextDecoder("utf-8",{fatal:!0}),Se={name:"json",version:1,encode(t){return Zn.encode(pn(t))},decode(t){return JSON.parse(Qn.decode(t))}};function Ae(t,e={}){let n=e.codec??Se,r=e.name??t.name??"snapshot",o=e.keyOf??(c=>c.name??e.name??t.name??"snapshot"),s,a=0,i=e.compactEvery,u,d={name:r,debounceMs:e.debounceMs,compactEvery:i,filter:e.filter,keyOf:o,save(c){if(!(e.filter&&!e.filter(c))&&(s={snapshot:c},a+=1,i!==void 0&&a%i===0||!e.debounceMs))return l()},load(){let c=u??r,p=t.read(c);if(p!==void 0)return p instanceof Uint8Array?p.length===0?void 0:n.decode(p):Promise.resolve(p).then(f=>f===void 0||f.length===0?void 0:n.decode(f))},async flush(){await l()},async rollback(){s=void 0}};function l(){let c=s;if(!c)return;s=void 0;let p=o(c.snapshot),f=n.encode(c.snapshot),h=t.write(p,f);if(h instanceof Promise)return h.then(()=>{u=p});u=p}return d}function Re(t,e={}){let n=e.codec??Se,r=e.name??t.name??"append-log",o=e.keyOf??(p=>r),s=e.compactEvery,a=new Map,i=0,u,d={name:r,debounceMs:e.debounceMs,compactEvery:s,keyOf:o,appendEntries(p){if(p.length!==0){for(let f of p){let h=o(f),T=a.get(h);T||(T=[],a.set(h,T)),T.push(f)}if(i+=p.length,s!==void 0&&i%s===0||!e.debounceMs)return l()}},async loadEntries(p){let f=p?.keyFilter,h=t.list===void 0?f!==void 0?[f]:[r]:await Promise.resolve(t.list(f)),T=[];for(let y of h){let b=await Promise.resolve(t.read(y));if(b===void 0||b.length===0)continue;let m=n.decode(b);Array.isArray(m)&&T.push(...m)}return{entries:T,cursor:void 0}},async flush(){await l()},async rollback(){a=new Map}};function l(){if(a.size===0)return;let p=a;a=new Map;let f=(u??Promise.resolve()).then(()=>{let h=c(p);return h instanceof Promise?h:Promise.resolve()},()=>{let h=c(p);return h instanceof Promise?h:Promise.resolve()});return u=f.finally(()=>{u===f&&(u=void 0)}),u}function c(p){let f=[];for(let[h,T]of p){let y=t.read(h),b=m=>{let w=[...m===void 0||m.length===0?[]:n.decode(m)??[],...T],E=n.encode(w);return t.write(h,E)};if(y instanceof Promise)f.push(y.then(async m=>{let x=b(m);x instanceof Promise&&await x}));else{let m=b(y);m instanceof Promise&&f.push(m)}}if(f.length>0)return Promise.all(f).then(()=>{})}return d}function Me(t,e={}){let n=e.codec??Se,r=e.name??t.name??"kv",o=e.compactEvery,s=new Map,a=0,i={name:r,debounceMs:e.debounceMs,compactEvery:o,filter:e.filter,save(d,l){if(!(e.filter&&!e.filter(d,l))&&(s.set(d,l),a+=1,o!==void 0&&a%o===0||!e.debounceMs))return u()},load(d){let l=t.read(d);if(l!==void 0)return l instanceof Uint8Array?l.length===0?void 0:n.decode(l):Promise.resolve(l).then(c=>c===void 0||c.length===0?void 0:n.decode(c))},delete(d){if(s.delete(d),!!t.delete)return t.delete(d)},list(d){return t.list?t.list(d):[]},async flush(){await u()},async rollback(){s=new Map}};function u(){if(s.size===0)return;let d=s;s=new Map;let l=[];for(let[c,p]of d){let f=n.encode(p),h=t.write(c,f);h instanceof Promise&&l.push(h)}if(l.length>0)return Promise.all(l).then(()=>{})}return i}function Q(t){let e=new TextEncoder,n=new TextDecoder("utf-8",{fatal:!0}),r=s=>{let a="";for(let i of s){if(i.length===1&&/[a-zA-Z0-9_-]/.test(i)){a+=i;continue}for(let u of e.encode(i))a+=`%${u.toString(16).padStart(2,"0")}`}return(0,W.join)(t,`${a}.bin`)},o=s=>{if(!s.endsWith(".bin"))return null;let a=s.slice(0,-4),i=[],u=l=>{for(let c=0;c<l.length;c++)i.push(l.charCodeAt(c))},d=0;for(;d<a.length;){let l=a[d];if(l==="%"&&d+2<a.length){let c=a.slice(d+1,d+3);if(/^[0-9a-f]{2}$/i.test(c)){i.push(Number.parseInt(c,16)),d+=3;continue}}u(l),d+=1}try{return n.decode(new Uint8Array(i))}catch{return null}};return{name:`file:${t}`,read(s){try{let a=(0,O.readFileSync)(r(s));return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}catch{return}},write(s,a){(0,O.mkdirSync)(t,{recursive:!0});let i=r(s),u=(0,W.basename)(i),d=(0,W.dirname)(i),l=(0,W.join)(d,`.${u}.${(0,hn.randomBytes)(8).toString("hex")}.tmp`);try{(0,O.writeFileSync)(l,a),(0,O.renameSync)(l,i)}catch(c){try{(0,O.unlinkSync)(l)}catch{}throw c}},delete(s){try{(0,O.unlinkSync)(r(s))}catch(a){if(a.code!=="ENOENT")throw a}},list(s){try{let a=(0,O.readdirSync)(t),i=[];for(let u of a){if(u.startsWith("."))continue;let d=o(u);d!==null&&(s!==void 0&&!d.startsWith(s)||i.push(d))}return i.sort()}catch(a){if(a.code==="ENOENT")return[];throw a}}}}function ee(t){let e=new mn.DatabaseSync(t);return e.exec("CREATE TABLE IF NOT EXISTS graphrefly_storage (k TEXT PRIMARY KEY, v BLOB NOT NULL)"),{name:`sqlite:${t}`,read(n){return e.prepare("SELECT v FROM graphrefly_storage WHERE k = ?").get(n)?.v},write(n,r){e.prepare("INSERT OR REPLACE INTO graphrefly_storage (k, v) VALUES (?, ?)").run(n,r)},delete(n){e.prepare("DELETE FROM graphrefly_storage WHERE k = ?").run(n)},list(n){if(n===void 0)return e.prepare("SELECT k FROM graphrefly_storage ORDER BY k").all().map(a=>a.k);let r=n.replace(/[\\%_]/g,"\\$&");return e.prepare("SELECT k FROM graphrefly_storage WHERE k LIKE ? ESCAPE '\\' ORDER BY k").all(`${r}%`).map(s=>s.k)},close(){try{e.close()}catch{}}}}function gn(t,e){return Ae(Q(t),e)}function Tn(t,e){return Re(Q(t),e)}function bn(t,e){let n=ee(t),r=Ae(n,e);return Object.assign(r,{close:()=>n.close()})}function yn(t,e){let n=ee(t),r=Re(n,e);return Object.assign(r,{close:()=>n.close()})}function vn(t,e){return Me(Q(t),e)}function wn(t,e){let n=ee(t),r=Me(n,e);return Object.assign(r,{close:()=>n.close()})}0&&(module.exports={fileAppendLog,fileBackend,fileKv,fileSnapshot,fromFSWatch,fromGitHook,fromSpawn,runProcess,sqliteAppendLog,sqliteBackend,sqliteKv,sqliteSnapshot});
@@ -1,2 +0,0 @@
1
- import{a as K,b as j,c as I,d as D,e as z,f as $,g as Q,h as U}from"../chunk-VN6RDSK2.js";import"../chunk-D5RFJOZ2.js";import"../chunk-CE72X3WO.js";import{x as L}from"../chunk-CLVB32RD.js";import"../chunk-4VVTGLXJ.js";import"../chunk-GHBWHMRZ.js";import{d as E,e as g,f as P}from"../chunk-CRVT7D2P.js";import{F as v,p as F}from"../chunk-NTEURFZH.js";import{b as y,i as B,j as x}from"../chunk-CK2E7BTU.js";import{a as q}from"../chunk-QYADASLV.js";function V(a,h){let{pollMs:o=5e3,include:c,exclude:e,maxConsecutiveErrors:t=1}=h??{},u=c?.map(E)??[],n=e?.map(E)??[],{execFileSync:d}=q("child_process"),r=S=>d("git",S,{cwd:a,encoding:"utf-8"}).trim(),l,i=0;return L(P(0,{period:o}),()=>v(S=>{try{let s=r(["rev-parse","HEAD"]);if(!s)return i=0,()=>{};if(l===void 0)return l=s,i=0,()=>{};if(s===l)return i=0,()=>{};let p=r(["diff","--name-only",`${l}..${s}`]).split(`
2
- `).filter(Boolean);u.length>0&&(p=p.filter(w=>g(w,u))),n.length>0&&(p=p.filter(w=>!g(w,n)));let k=r(["log","-1","--format=%s",s]),T=r(["log","-1","--format=%an",s]);S.emit({hook:"post-commit",commit:s,files:p,message:k,author:T,timestamp_ns:F()}),l=s,i=0}catch(s){i+=1,i>=t&&S.down([[x,s]])}return()=>{}}))}import{existsSync as X,watch as Y}from"fs";import{resolve as _}from"path";function Z(a){return{describeKind:"producer",...a}}function Se(a,h){let o=Array.isArray(a)?a:[a];if(o.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:c=!0,debounce:e=100,include:t,exclude:u,...n}=h??{},d=t?.map(E)??[],r=(u??["**/node_modules/**","**/.git/**","**/dist/**"]).map(E);return v(l=>{let i=new Map,S=[],s=!1,p=!1,k=0,T=()=>{for(let f of S.splice(0))f.close()},w=f=>{p||(p=!0,s=!0,m!==void 0&&clearTimeout(m),m=void 0,i.clear(),T(),l.down([[x,f]]))},m,H=f=>{if(m=void 0,s||p||i.size===0)return;let O=[];for(let b of i.values())O.push([y,b]);i.clear(),!(s||p||f!==k)&&l.down(O)};try{for(let f of o){let O=Y(f,{recursive:c},(b,N)=>{if(s||p||N==null)return;let M=String(N).replaceAll("\\","/"),A=_(f,String(N)).replaceAll("\\","/"),J=_(f).replaceAll("\\","/"),R=M.startsWith("./")?M.slice(2):M;if(!(d.length===0||g(A,d)||g(R,d))||g(A,r)||g(R,r))return;let G="change";if(b==="rename")try{G=X(A)?"create":"delete"}catch{G="rename"}i.set(A,{type:G,path:A,root:J,relative_path:R,timestamp_ns:F()}),m!==void 0&&clearTimeout(m);let W=k;m=setTimeout(()=>H(W),e)});O.on("error",b=>w(b)),S.push(O)}}catch(f){w(f)}return()=>{s=!0,k+=1,m!==void 0&&clearTimeout(m),m=void 0,T(),i.clear()}},Z(n))}import{spawn as C}from"child_process";function ee(a,h,o){return v(c=>{let e=C(a,h,{cwd:o?.cwd,env:o?.env,shell:o?.shell,signal:o?.signal,stdio:o?.stdio??"pipe"}),t=!0,u=null;return e.stdout?.on("data",n=>{t&&c.down([[y,{kind:"stdout",chunk:n}]])}),e.stderr?.on("data",n=>{t&&c.down([[y,{kind:"stderr",chunk:n}]])}),e.on("error",n=>{t&&(t=!1,c.down([[x,n]]))}),e.on("exit",(n,d)=>{u==null&&(u={code:n,signal:d})}),e.on("close",()=>{if(!t)return;t=!1;let n=u??{code:null,signal:null};c.down([[y,{kind:"exit",code:n.code,signal:n.signal}],[B]])}),()=>{if(t){t=!1,e.stdout?.removeAllListeners(),e.stderr?.removeAllListeners(),e.removeAllListeners("error"),e.removeAllListeners("exit"),e.removeAllListeners("close");try{e.kill("SIGTERM")}catch{}}}},{name:"from_spawn"})}function te(a,h,o){return v(c=>{let e=C(a,h,{cwd:o?.cwd,env:o?.env,shell:o?.shell,signal:o?.signal,stdio:o?.stdio??"pipe"}),t=!0,u=[],n=[],d=null;return e.stdout?.on("data",r=>{t&&u.push(r)}),e.stderr?.on("data",r=>{t&&n.push(r)}),e.on("error",r=>{t&&(t=!1,c.down([[x,r]]))}),e.on("exit",(r,l)=>{d==null&&(d={code:r,signal:l})}),e.on("close",()=>{if(!t)return;t=!1;let r=d??{code:null,signal:null},l=Buffer.concat(u).toString("utf8"),i=Buffer.concat(n).toString("utf8");c.down([[y,{stdout:l,stderr:i,exitCode:r.code,signal:r.signal}],[B]])}),()=>{if(t){t=!1,e.stdout?.removeAllListeners(),e.stderr?.removeAllListeners(),e.removeAllListeners("error"),e.removeAllListeners("exit"),e.removeAllListeners("close");try{e.kill("SIGTERM")}catch{}}}},{name:"run_process"})}export{D as fileAppendLog,K as fileBackend,Q as fileKv,I as fileSnapshot,Se as fromFSWatch,V as fromGitHook,ee as fromSpawn,te as runProcess,$ as sqliteAppendLog,j as sqliteBackend,U as sqliteKv,z as sqliteSnapshot};
@@ -1 +0,0 @@
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});