@graphrefly/graphrefly 0.28.0 → 0.30.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.
- package/dist/{cascading-D9WG1-9L.d.ts → cascading-BszPheHD.d.ts} +1 -1
- package/dist/{cascading-B-5zmAUv.d.cts → cascading-dNCtjW8j.d.cts} +1 -1
- package/dist/{chunk-OAWLCNJJ.js → chunk-2GQREQ6C.js} +1 -1
- package/dist/{chunk-DBGGMN3D.js → chunk-33FA6V4B.js} +1 -1
- package/dist/chunk-3NEPQO2E.js +43 -0
- package/dist/{chunk-UWJE5FQA.js → chunk-4C2OR2GH.js} +11 -11
- package/dist/chunk-4JJCCD5S.js +2 -0
- package/dist/{chunk-GHJJR5P4.js → chunk-4OFIQ66T.js} +1 -1
- package/dist/{chunk-PIOGHC63.js → chunk-567NWZ3T.js} +1 -1
- package/dist/chunk-5JDE5JHE.js +1 -0
- package/dist/{chunk-ETWTCCJI.js → chunk-5Z4HDCO6.js} +1 -1
- package/dist/{chunk-Y2EMPB3I.js → chunk-73Z3W2RN.js} +1 -1
- package/dist/{chunk-CRXTH3SH.js → chunk-7JDLFI6N.js} +1 -1
- package/dist/{chunk-DQA3UIQ2.js → chunk-7TDOES3L.js} +1 -1
- package/dist/{chunk-LBTDSCCO.js → chunk-AMBYCIOH.js} +1 -1
- package/dist/{chunk-D7A7DBE4.js → chunk-AUY2YKCO.js} +1 -1
- package/dist/{chunk-FNYWM6JC.js → chunk-AV3PIDFQ.js} +1 -1
- package/dist/{chunk-UMBIDLJ4.js → chunk-BA5URFYW.js} +1 -1
- package/dist/chunk-BKPLTBL5.js +1 -0
- package/dist/{chunk-UPXUCFMX.js → chunk-BZP5T4X6.js} +1 -1
- package/dist/{chunk-WQ2BN6X6.js → chunk-DDPYNMGG.js} +1 -1
- package/dist/{chunk-LQ3Y5NJS.js → chunk-GJR3P6JG.js} +1 -1
- package/dist/{chunk-3R5HFPX7.js → chunk-GLSM33ZM.js} +1 -1
- package/dist/{chunk-2FOAM3OR.js → chunk-GNCBXARM.js} +1 -1
- package/dist/{chunk-K2GNMCQT.js → chunk-ISCENNXS.js} +1 -1
- package/dist/{chunk-UPHHLMHE.js → chunk-IUK4EFCE.js} +1 -1
- package/dist/{chunk-ERLIRFPA.js → chunk-KA6MMXIY.js} +1 -1
- package/dist/{chunk-2PMCKKRK.js → chunk-KASHOCF5.js} +1 -1
- package/dist/chunk-LI3E75VE.js +64 -0
- package/dist/chunk-MGKAO4EK.js +7 -0
- package/dist/{chunk-ZV2DXV5A.js → chunk-NSG4C6BF.js} +1 -1
- package/dist/{chunk-4GKB4OUJ.js → chunk-OL33ZI6R.js} +1 -1
- package/dist/{chunk-76A3HVQE.js → chunk-P7JXGKDO.js} +1 -1
- package/dist/{chunk-U3AICJKU.js → chunk-RD52SNH2.js} +1 -1
- package/dist/{chunk-CWLN3X3N.js → chunk-SHYH5SXV.js} +1 -1
- package/dist/{chunk-VTPVOGHH.js → chunk-SLMYTGTU.js} +1 -1
- package/dist/{chunk-OYHGKYQM.js → chunk-T5SHIKJD.js} +1 -1
- package/dist/{chunk-VPYBOXVT.js → chunk-TWMEGG45.js} +1 -1
- package/dist/chunk-VIEUJSTT.js +1 -0
- package/dist/{chunk-SC3U7ETD.js → chunk-VWPRPPKR.js} +1 -1
- package/dist/chunk-W4TSQ6RJ.js +1 -0
- package/dist/{chunk-OBKQQA5I.js → chunk-WANIEEKV.js} +1 -1
- package/dist/{chunk-XAUNPIMX.js → chunk-XHVB6G6M.js} +1 -1
- package/dist/{chunk-MIQTDPY4.js → chunk-XQAXYVXX.js} +1 -1
- package/dist/{chunk-MTTAAPCK.js → chunk-Y32RJO24.js} +1 -1
- package/dist/{chunk-S35VARIR.js → chunk-Y36UZ5VS.js} +1 -1
- package/dist/compat/index.cjs +13 -12
- package/dist/compat/index.d.cts +14 -14
- package/dist/compat/index.d.ts +14 -14
- package/dist/compat/index.js +1 -1
- package/dist/compat/jotai/index.cjs +1 -1
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/jotai/index.js +1 -1
- package/dist/compat/nanostores/index.cjs +1 -1
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nanostores/index.js +1 -1
- package/dist/compat/nestjs/index.cjs +13 -12
- package/dist/compat/nestjs/index.d.cts +6 -6
- package/dist/compat/nestjs/index.d.ts +6 -6
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/zustand/index.cjs +7 -6
- package/dist/compat/zustand/index.d.cts +4 -4
- package/dist/compat/zustand/index.d.ts +4 -4
- package/dist/compat/zustand/index.js +1 -1
- package/dist/{composite-BhbKHbOS.d.ts → composite-DGspwCqk.d.ts} +2 -2
- package/dist/{composite-B-xqw4Kk.d.cts → composite-nrRumJ7l.d.cts} +2 -2
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +1 -1
- package/dist/extra/browser.cjs +1 -1
- package/dist/extra/browser.d.cts +1 -1
- package/dist/extra/browser.d.ts +1 -1
- package/dist/extra/browser.js +1 -1
- package/dist/extra/index.cjs +20 -19
- package/dist/extra/index.d.cts +9 -9
- package/dist/extra/index.d.ts +9 -9
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.cjs +3 -3
- package/dist/extra/node.d.cts +1 -1
- package/dist/extra/node.d.ts +1 -1
- package/dist/extra/node.js +1 -1
- package/dist/extra/operators.cjs +1 -1
- package/dist/extra/operators.d.cts +1 -1
- package/dist/extra/operators.d.ts +1 -1
- package/dist/extra/operators.js +1 -1
- package/dist/extra/reactive.cjs +1 -1
- package/dist/extra/reactive.d.cts +3 -3
- package/dist/extra/reactive.d.ts +3 -3
- package/dist/extra/reactive.js +1 -1
- package/dist/extra/sources.cjs +1 -1
- package/dist/extra/sources.d.cts +1 -1
- package/dist/extra/sources.d.ts +1 -1
- package/dist/extra/sources.js +1 -1
- package/dist/extra/storage-browser.cjs +1 -1
- package/dist/extra/storage-browser.d.cts +1 -1
- package/dist/extra/storage-browser.d.ts +1 -1
- package/dist/extra/storage-browser.js +1 -1
- package/dist/graph/index.cjs +7 -6
- package/dist/graph/index.d.cts +5 -5
- package/dist/graph/index.d.ts +5 -5
- package/dist/graph/index.js +1 -1
- package/dist/{graph-D48Qw9Cg.d.cts → graph-C4Uxwv0T.d.cts} +22 -6
- package/dist/{graph-BZGRXwOm.d.ts → graph-CWeI0aHd.d.ts} +22 -6
- package/dist/{index-u15meRxL.d.cts → index-9iguV3bF.d.cts} +2 -2
- package/dist/{index-DyxjtScX.d.cts → index-B-z8WaSd.d.cts} +2 -2
- package/dist/{index-BgyGlizc.d.ts → index-B2HBxvMb.d.ts} +4 -4
- package/dist/{index-CzobVSMr.d.ts → index-B5iVOD7w.d.ts} +2 -2
- package/dist/{index-rX8HBM5h.d.cts → index-B8Aj_z8S.d.cts} +2 -2
- package/dist/{index-D-YB-Vl3.d.ts → index-BANwzwBV.d.ts} +3 -3
- package/dist/{index-HDpJe9hX.d.ts → index-BBINVimG.d.ts} +3 -3
- package/dist/{index-8FSVk4Uf.d.ts → index-BEpRsvhg.d.ts} +4 -4
- package/dist/{index-CHEswufn.d.cts → index-BHu_Wba0.d.cts} +4 -4
- package/dist/{index-ZftwfxJM.d.ts → index-BJHQUCZx.d.ts} +7 -7
- package/dist/{index-DUqMOlKZ.d.cts → index-BS220yqj.d.cts} +7 -7
- package/dist/{index-BWJV63ti.d.ts → index-BX22kvjh.d.ts} +1 -1
- package/dist/{index-DfyOkTvs.d.ts → index-BXbQUn4n.d.ts} +2 -2
- package/dist/{index-O6TgGUBV.d.cts → index-BpFWP7Bq.d.cts} +3 -3
- package/dist/{index-BxJ86YZZ.d.cts → index-Bs3-LC83.d.cts} +3 -3
- package/dist/{index-DiOXyAwt.d.ts → index-Bvi5uJxX.d.ts} +1 -1
- package/dist/{index-Bqachn9_.d.ts → index-ByPnK85n.d.ts} +1 -1
- package/dist/{index-CRO83MmV.d.cts → index-BydMDMf7.d.cts} +1 -1
- package/dist/{index-ROpQmGjE.d.ts → index-C5Ghnp5B.d.ts} +3 -3
- package/dist/{index-umtoWT8K.d.ts → index-C6NBfXj-.d.ts} +6 -5
- package/dist/{index-pXrDMpRO.d.cts → index-C98oJsEs.d.cts} +2 -2
- package/dist/{index-B2pwesl9.d.cts → index-CDK5RsV5.d.cts} +1 -1
- package/dist/{index-Czq6ynh8.d.ts → index-CFW32Dy1.d.ts} +3 -3
- package/dist/{index-Cyojz0AE.d.cts → index-CIXaiYDE.d.cts} +1 -1
- package/dist/{index-Oi8d8w4R.d.cts → index-CRAkoq-y.d.cts} +1 -1
- package/dist/{index-CpgYhnrG.d.ts → index-Cc8VQIgL.d.ts} +2 -2
- package/dist/{index-vscRDkjW.d.cts → index-CcpEvuPl.d.cts} +2 -2
- package/dist/{index-BpA5c4G9.d.ts → index-CfFYyLR8.d.ts} +4 -4
- package/dist/{index-9oDeHH2u.d.cts → index-ClB7TCfL.d.cts} +2 -2
- package/dist/{index-BHvIquRZ.d.ts → index-ClgKmOHe.d.ts} +592 -492
- package/dist/{index-DpHe5e0Q.d.ts → index-CotRMjtJ.d.ts} +2 -2
- package/dist/{index-B1AmmSlb.d.ts → index-CrC7urhX.d.ts} +1 -1
- package/dist/{index-B0c4cmIO.d.ts → index-CvS9IuTG.d.ts} +2 -2
- package/dist/{index-rHJSKsU8.d.cts → index-Cy7eFeIX.d.cts} +2 -2
- package/dist/{index-BVHOrDwO.d.ts → index-D0C_USMR.d.ts} +1 -1
- package/dist/{index-DEwTb_fm.d.cts → index-D6ajK8Mh.d.cts} +592 -492
- package/dist/{index-DL-rYJrx.d.cts → index-D7XxY1Ff.d.cts} +1 -1
- package/dist/{index-DAlweici.d.ts → index-D9HrBx2J.d.ts} +2 -2
- package/dist/{index-fM6y00vT.d.cts → index-D9Y_u6BG.d.cts} +3 -3
- package/dist/{index-DcXZBF5a.d.cts → index-DBQUKh59.d.cts} +4 -4
- package/dist/{index-D_NwnRYS.d.cts → index-DDo-eqQ4.d.cts} +1 -1
- package/dist/{index-m-yHof5p.d.ts → index-DGb1awva.d.ts} +4 -4
- package/dist/{index-DxsnAMWD.d.cts → index-DR3gf_DG.d.cts} +9 -9
- package/dist/{index-dtN7YA2x.d.cts → index-DVNLe3pS.d.cts} +3 -3
- package/dist/{index-Btib9rsU.d.ts → index-Dljd76bC.d.ts} +275 -9
- package/dist/{index-DP4ZTkdw.d.ts → index-DnrZghBB.d.ts} +3 -3
- package/dist/{index-DaLJvH8Z.d.ts → index-Docdiu9a.d.ts} +3 -3
- package/dist/{index-BpIFjILY.d.cts → index-DylQCKEL.d.cts} +4 -4
- package/dist/{index-B_agccPe.d.cts → index-FBqTfL_S.d.cts} +1 -1
- package/dist/{index-DraikLjn.d.ts → index-FrYrV-Vf.d.ts} +2 -2
- package/dist/{index-sm373fsH.d.ts → index-IZ3l_vQ9.d.ts} +2 -2
- package/dist/{index-BwM9BEkt.d.ts → index-Ip3q9T9x.d.ts} +1 -1
- package/dist/{index-CloUk1kY.d.ts → index-RQg6lTrN.d.ts} +9 -9
- package/dist/{index-CEXXwWVH.d.cts → index-SSGqF8mI.d.cts} +2 -2
- package/dist/{index-rnwQly8X.d.cts → index-UZO988ox.d.cts} +6 -5
- package/dist/{index-C73n7lo-.d.cts → index-iBp74eGU.d.cts} +3 -3
- package/dist/{index-tbf2gKHd.d.cts → index-lKuLYmHO.d.cts} +3 -3
- package/dist/{index-CMn8S8Hw.d.ts → index-wIx1Jisk.d.ts} +1 -1
- package/dist/{index-cByzxQIC.d.cts → index-yIdWFo2b.d.cts} +4 -4
- package/dist/{index-RukJ4DLS.d.cts → index-ybtSyjWB.d.cts} +275 -9
- package/dist/index.cjs +53 -52
- package/dist/index.d.cts +42 -42
- package/dist/index.d.ts +42 -42
- package/dist/index.js +1 -1
- package/dist/{meta-CwesDrMD.d.ts → meta-BMwx3ExI.d.ts} +1 -1
- package/dist/{meta-Cgj6zeji.d.cts → meta-COtmHLwT.d.cts} +1 -1
- package/dist/{node-Cc1TniY8.d.ts → node-BVV7G1bq.d.cts} +59 -2
- package/dist/{node-Cc1TniY8.d.cts → node-BVV7G1bq.d.ts} +59 -2
- package/dist/{observable-glXQoGj2.d.cts → observable-BrUAPeH_.d.cts} +1 -1
- package/dist/{observable-Ct-gJ9jI.d.ts → observable-ITikPXz3.d.ts} +1 -1
- package/dist/patterns/ai/browser.d.cts +3 -3
- package/dist/patterns/ai/browser.d.ts +3 -3
- package/dist/patterns/ai/browser.js +1 -1
- package/dist/patterns/ai/index.cjs +25 -24
- package/dist/patterns/ai/index.d.cts +15 -15
- package/dist/patterns/ai/index.d.ts +15 -15
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.d.cts +1 -1
- package/dist/patterns/ai/node.d.ts +1 -1
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/audit/index.cjs +7 -6
- package/dist/patterns/audit/index.d.cts +5 -5
- package/dist/patterns/audit/index.d.ts +5 -5
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.cjs +7 -6
- package/dist/patterns/cqrs/index.d.cts +4 -4
- package/dist/patterns/cqrs/index.d.ts +4 -4
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.cjs +8 -7
- package/dist/patterns/demo-shell/index.d.cts +5 -5
- package/dist/patterns/demo-shell/index.d.ts +5 -5
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.cjs +7 -6
- package/dist/patterns/domain-templates/index.d.cts +4 -4
- package/dist/patterns/domain-templates/index.d.ts +4 -4
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.cjs +26 -25
- package/dist/patterns/graphspec/index.d.cts +4 -4
- package/dist/patterns/graphspec/index.d.ts +4 -4
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.cjs +7 -6
- package/dist/patterns/guarded-execution/index.d.cts +6 -6
- package/dist/patterns/guarded-execution/index.d.ts +6 -6
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +11 -10
- package/dist/patterns/harness/index.d.cts +10 -7
- package/dist/patterns/harness/index.d.ts +10 -7
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +7 -6
- package/dist/patterns/job-queue/index.d.cts +4 -4
- package/dist/patterns/job-queue/index.d.ts +4 -4
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.cjs +7 -6
- package/dist/patterns/lens/index.d.cts +6 -6
- package/dist/patterns/lens/index.d.ts +6 -6
- package/dist/patterns/lens/index.js +1 -1
- package/dist/patterns/memory/index.cjs +7 -6
- package/dist/patterns/memory/index.d.cts +4 -4
- package/dist/patterns/memory/index.d.ts +4 -4
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.cjs +7 -6
- package/dist/patterns/messaging/index.d.cts +4 -4
- package/dist/patterns/messaging/index.d.ts +4 -4
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.cjs +7 -6
- package/dist/patterns/orchestration/index.d.cts +5 -5
- package/dist/patterns/orchestration/index.d.ts +5 -5
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/reactive-layout/index.cjs +8 -7
- package/dist/patterns/reactive-layout/index.d.cts +5 -5
- package/dist/patterns/reactive-layout/index.d.ts +5 -5
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.cjs +7 -6
- package/dist/patterns/reduction/index.d.cts +4 -4
- package/dist/patterns/reduction/index.d.ts +4 -4
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/refine-loop/index.cjs +9 -8
- package/dist/patterns/refine-loop/index.d.cts +5 -5
- package/dist/patterns/refine-loop/index.d.ts +5 -5
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.cjs +1 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +6 -6
- package/dist/patterns/resilient-pipeline/index.d.ts +6 -6
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.cjs +14 -13
- package/dist/patterns/surface/index.d.cts +5 -5
- package/dist/patterns/surface/index.d.ts +5 -5
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{reactive-layout-CpYb5qLP.d.cts → reactive-layout-5oEn8lHM.d.cts} +2 -2
- package/dist/{reactive-layout-D8u4wuUR.d.ts → reactive-layout-BAr6-_o5.d.ts} +2 -2
- package/dist/{reactive-log-DPzuUDj5.d.cts → reactive-log-5jFeNRmd.d.cts} +1 -1
- package/dist/{reactive-log-YuH9VYN8.d.ts → reactive-log-BOJDCI5x.d.ts} +1 -1
- package/dist/{reactive-map-CdbNoSgP.d.ts → reactive-map-BvDrRuwt.d.ts} +1 -1
- package/dist/{reactive-map-DUeRmb9d.d.cts → reactive-map-CmlPPKHN.d.cts} +1 -1
- package/dist/{resilience-CGRzhnD3.d.ts → resilience-CludlzcP.d.ts} +1 -1
- package/dist/{resilience-Ba5-b4WD.d.cts → resilience-Q6Bt_7y0.d.cts} +1 -1
- package/dist/{resilience-QAHKANT5.js → resilience-XRUF267O.js} +1 -1
- package/dist/{sugar-BV0htudb.d.cts → sugar-BHbAACDG.d.ts} +10 -12
- package/dist/{sugar-Dtyrq2_q.d.ts → sugar-CqR6DJ7v.d.cts} +10 -12
- package/dist/{topology-tree-DROUdq5B.d.cts → topology-tree-CVREibAc.d.cts} +1 -1
- package/dist/{topology-tree-CYHOwQZ_.d.ts → topology-tree-CkjojcB6.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-6V3SEX2I.js +0 -1
- package/dist/chunk-7H6LGFUG.js +0 -64
- package/dist/chunk-CKCSDI7T.js +0 -6
- package/dist/chunk-QWAPKG3O.js +0 -2
- package/dist/chunk-RHESUC3V.js +0 -43
- package/dist/chunk-V6YQICXZ.js +0 -1
- package/dist/chunk-Z4HDAS2Q.js +0 -1
- package/dist/chunk-ZB5EHBIO.js +0 -1
package/dist/extra/index.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as PostgresClientLike, aa as PrismaModelLike, ab as PrometheusMetric, ac as PubSubBackend, ad as PubSubHub, ae as PubSubHubOptions, af as PulsarConsumerLike, ag as PulsarMessage, ah as PulsarProducerLike, ai as RabbitMQChannelLike, aj as RabbitMQMessage, ak as ReactiveSinkBackpressureOptions, al as ReactiveSinkConfig, am as ReactiveSinkHandle, an as ReactiveSinkOptions, ao as ReactiveSinkRetryOptions, ap as ReadyMessage, aq as RedisCheckpointClientLike, ar as RedisClientLike, as as RedisStreamEntry, at as ResettableTimer, au as S3ClientLike, av as SSEEvent, aw as SignalMessage, ax as SingleFromAnyOptions, ay as SinkFailure, az as SinkHandle, aA as SinkTransportError, aB as SqliteDbLike, aC as SqliteIterableDbLike, aD as StatsDMetric, aE as StatsDRegister, aF as StratifyOptions, aG as StratifyRule, aH as SyslogMessage, aI as SyslogRegister, aJ as TempoClientLike, aK as ToCSVOptions, aL as ToClickHouseOptions, aM as ToFileOptions, aN as ToHTTPOptions, aO as ToKafkaOptions, aP as ToLokiOptions, aQ as ToMongoOptions, aR as ToNATSOptions, aS as ToPostgresOptions, aT as ToPulsarOptions, aU as ToRabbitMQOptions, aV as ToRedisStreamOptions, aW as ToS3Options, aX as ToSSEOptions, aY as ToSqliteOptions, aZ as ToTempoOptions, a_ as ToWebSocketOptions, a$ as ValueMessage, b0 as WatermarkController, b1 as WatermarkOptions, b2 as WebSocketLike, b3 as WebSocketMessageEventLike, b4 as WebSocketRegister, b5 as WebhookRegister, b6 as WorkerBridge, b7 as WorkerBridgeOptions, b8 as WorkerSelfHandle, b9 as WorkerSelfOptions, ba as WorkerTransport, bb as cascadingCache, bc as checkpointToRedis, bd as checkpointToS3, be as createTransport, bf as createWatermarkController, bg as csvRows, bh as deserializeError, bi as externalBundle, bj as externalProducer, bl as fromCSV, bm as fromClickHouseWatch, bn as fromDrizzle, bo as fromHTTP, bp as fromHTTPPoll, bq as fromHTTPStream, br as fromKafka, bs as fromKysely, bt as fromMCP, bu as fromNATS, bv as fromNDJSON, bw as fromOTel, bx as fromPrisma, by as fromPrometheus, bz as fromPulsar, bA as fromRabbitMQ, bB as fromRedisStream, bC as fromSSE, bD as fromSqlite, bE as fromSqliteCursor, bF as fromStatsD, bG as fromSyslog, bH as fromWebSocket, bI as fromWebSocketReconnect, bJ as fromWebhook, bK as lru, bL as matchesCron, bM as nameToSignal, bN as ndjsonRows, bO as parseCron, bP as parsePrometheusText, bQ as parseStatsD, bR as parseSyslog, bS as pubsub, bT as reactiveSink, bU as serializeError, bV as signalToName, bW as singleFromAny, bX as singleNodeFromAny, bY as stratify, bZ as toCSV, b_ as toClickHouse, b$ as toFile, c0 as toHTTP, c1 as toKafka, c2 as toLoki, c3 as toMongo, c4 as toNATS, c5 as toPostgres, c6 as toPulsar, c7 as toRabbitMQ, c8 as toReadableStream, c9 as toRedisStream, ca as toS3, cb as toSSE, cc as toSSEBytes, cd as toSqlite, ce as toTempo, cf as toWebSocket, cg as workerBridge, ch as workerSelf } from '../index-
|
|
2
|
-
export { B as BackoffPreset, d as BackoffStrategy, e as CircuitBreaker, a as CircuitBreakerOptions, f as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, c as NS_PER_SEC, R as RateLimiterOptions, g as RateLimiterOverflowError, h as RateLimiterOverflowPolicy, b as RetryOptions, i as RetrySourceOptions, S as StatusValue, T as TimeoutError, j as TokenBucket, W as WithBreakerBundle, k as WithStatusBundle, l as circuitBreaker, m as constant, n as decorrelatedJitter, o as exponential, p as fallback, q as fibonacci, r as linear, s as rateLimiter, t as resolveBackoffPreset, u as retry, v as retrySource, w as timeout, x as tokenBucket, y as withBreaker, z as withMaxAttempts, A as withStatus } from '../resilience-
|
|
3
|
-
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as distill, v as verifiable } from '../composite-
|
|
4
|
-
export { T as ToObservableOptions, t as toObservable } from '../observable-
|
|
1
|
+
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as PostgresClientLike, aa as PrismaModelLike, ab as PrometheusMetric, ac as PubSubBackend, ad as PubSubHub, ae as PubSubHubOptions, af as PulsarConsumerLike, ag as PulsarMessage, ah as PulsarProducerLike, ai as RabbitMQChannelLike, aj as RabbitMQMessage, ak as ReactiveSinkBackpressureOptions, al as ReactiveSinkConfig, am as ReactiveSinkHandle, an as ReactiveSinkOptions, ao as ReactiveSinkRetryOptions, ap as ReadyMessage, aq as RedisCheckpointClientLike, ar as RedisClientLike, as as RedisStreamEntry, at as ResettableTimer, au as S3ClientLike, av as SSEEvent, aw as SignalMessage, ax as SingleFromAnyOptions, ay as SinkFailure, az as SinkHandle, aA as SinkTransportError, aB as SqliteDbLike, aC as SqliteIterableDbLike, aD as StatsDMetric, aE as StatsDRegister, aF as StratifyOptions, aG as StratifyRule, aH as SyslogMessage, aI as SyslogRegister, aJ as TempoClientLike, aK as ToCSVOptions, aL as ToClickHouseOptions, aM as ToFileOptions, aN as ToHTTPOptions, aO as ToKafkaOptions, aP as ToLokiOptions, aQ as ToMongoOptions, aR as ToNATSOptions, aS as ToPostgresOptions, aT as ToPulsarOptions, aU as ToRabbitMQOptions, aV as ToRedisStreamOptions, aW as ToS3Options, aX as ToSSEOptions, aY as ToSqliteOptions, aZ as ToTempoOptions, a_ as ToWebSocketOptions, a$ as ValueMessage, b0 as WatermarkController, b1 as WatermarkOptions, b2 as WebSocketLike, b3 as WebSocketMessageEventLike, b4 as WebSocketRegister, b5 as WebhookRegister, b6 as WorkerBridge, b7 as WorkerBridgeOptions, b8 as WorkerSelfHandle, b9 as WorkerSelfOptions, ba as WorkerTransport, bb as cascadingCache, bc as checkpointToRedis, bd as checkpointToS3, be as createTransport, bf as createWatermarkController, bg as csvRows, bh as deserializeError, bi as externalBundle, bj as externalProducer, bl as fromCSV, bm as fromClickHouseWatch, bn as fromDrizzle, bo as fromHTTP, bp as fromHTTPPoll, bq as fromHTTPStream, br as fromKafka, bs as fromKysely, bt as fromMCP, bu as fromNATS, bv as fromNDJSON, bw as fromOTel, bx as fromPrisma, by as fromPrometheus, bz as fromPulsar, bA as fromRabbitMQ, bB as fromRedisStream, bC as fromSSE, bD as fromSqlite, bE as fromSqliteCursor, bF as fromStatsD, bG as fromSyslog, bH as fromWebSocket, bI as fromWebSocketReconnect, bJ as fromWebhook, bK as lru, bL as matchesCron, bM as nameToSignal, bN as ndjsonRows, bO as parseCron, bP as parsePrometheusText, bQ as parseStatsD, bR as parseSyslog, bS as pubsub, bT as reactiveSink, bU as serializeError, bV as signalToName, bW as singleFromAny, bX as singleNodeFromAny, bY as stratify, bZ as toCSV, b_ as toClickHouse, b$ as toFile, c0 as toHTTP, c1 as toKafka, c2 as toLoki, c3 as toMongo, c4 as toNATS, c5 as toPostgres, c6 as toPulsar, c7 as toRabbitMQ, c8 as toReadableStream, c9 as toRedisStream, ca as toS3, cb as toSSE, cc as toSSEBytes, cd as toSqlite, ce as toTempo, cf as toWebSocket, cg as workerBridge, ch as workerSelf } from '../index-BS220yqj.cjs';
|
|
2
|
+
export { B as BackoffPreset, d as BackoffStrategy, e as CircuitBreaker, a as CircuitBreakerOptions, f as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, c as NS_PER_SEC, R as RateLimiterOptions, g as RateLimiterOverflowError, h as RateLimiterOverflowPolicy, b as RetryOptions, i as RetrySourceOptions, S as StatusValue, T as TimeoutError, j as TokenBucket, W as WithBreakerBundle, k as WithStatusBundle, l as circuitBreaker, m as constant, n as decorrelatedJitter, o as exponential, p as fallback, q as fibonacci, r as linear, s as rateLimiter, t as resolveBackoffPreset, u as retry, v as retrySource, w as timeout, x as tokenBucket, y as withBreaker, z as withMaxAttempts, A as withStatus } from '../resilience-Q6Bt_7y0.cjs';
|
|
3
|
+
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as distill, v as verifiable } from '../composite-nrRumJ7l.cjs';
|
|
4
|
+
export { T as ToObservableOptions, t as toObservable } from '../observable-BrUAPeH_.cjs';
|
|
5
5
|
export { MergeMapOptions, TapObserver, ThrottleOptions, audit, buffer, bufferCount, bufferTime, catchError, combine, combineLatest, concat, concatMap, debounce, debounceTime, delay, distinctUntilChanged, elementAt, exhaustMap, filter, find, first, flatMap, interval, last, map, merge, mergeMap, pairwise, pausable, race, reduce, repeat, rescue, sample, scan, skip, switchMap, take, takeUntil, takeWhile, tap, throttle, throttleTime, valve, window, windowCount, windowTime, withLatestFrom, zip } from './operators.cjs';
|
|
6
6
|
export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.cjs';
|
|
7
|
-
export { L as LogBackend, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, r as reactiveLog } from '../reactive-log-
|
|
8
|
-
export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, r as reactiveMap } from '../reactive-map-
|
|
7
|
+
export { L as LogBackend, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, r as reactiveLog } from '../reactive-log-5jFeNRmd.cjs';
|
|
8
|
+
export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, r as reactiveMap } from '../reactive-map-CmlPPKHN.cjs';
|
|
9
9
|
export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, of, reactiveCounter, replay, share, shareReplay, throwError, toArray } from './sources.cjs';
|
|
10
10
|
export { StorageHandle, StorageTier, dictStorage, memoryStorage, sortJsonValue, stableJsonString } from './storage-core.cjs';
|
|
11
|
-
import '../node-
|
|
12
|
-
import '../graph-
|
|
13
|
-
import '../meta-
|
|
11
|
+
import '../node-BVV7G1bq.cjs';
|
|
12
|
+
import '../graph-C4Uxwv0T.cjs';
|
|
13
|
+
import '../meta-COtmHLwT.cjs';
|
|
14
14
|
import 'rxjs';
|
package/dist/extra/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as PostgresClientLike, aa as PrismaModelLike, ab as PrometheusMetric, ac as PubSubBackend, ad as PubSubHub, ae as PubSubHubOptions, af as PulsarConsumerLike, ag as PulsarMessage, ah as PulsarProducerLike, ai as RabbitMQChannelLike, aj as RabbitMQMessage, ak as ReactiveSinkBackpressureOptions, al as ReactiveSinkConfig, am as ReactiveSinkHandle, an as ReactiveSinkOptions, ao as ReactiveSinkRetryOptions, ap as ReadyMessage, aq as RedisCheckpointClientLike, ar as RedisClientLike, as as RedisStreamEntry, at as ResettableTimer, au as S3ClientLike, av as SSEEvent, aw as SignalMessage, ax as SingleFromAnyOptions, ay as SinkFailure, az as SinkHandle, aA as SinkTransportError, aB as SqliteDbLike, aC as SqliteIterableDbLike, aD as StatsDMetric, aE as StatsDRegister, aF as StratifyOptions, aG as StratifyRule, aH as SyslogMessage, aI as SyslogRegister, aJ as TempoClientLike, aK as ToCSVOptions, aL as ToClickHouseOptions, aM as ToFileOptions, aN as ToHTTPOptions, aO as ToKafkaOptions, aP as ToLokiOptions, aQ as ToMongoOptions, aR as ToNATSOptions, aS as ToPostgresOptions, aT as ToPulsarOptions, aU as ToRabbitMQOptions, aV as ToRedisStreamOptions, aW as ToS3Options, aX as ToSSEOptions, aY as ToSqliteOptions, aZ as ToTempoOptions, a_ as ToWebSocketOptions, a$ as ValueMessage, b0 as WatermarkController, b1 as WatermarkOptions, b2 as WebSocketLike, b3 as WebSocketMessageEventLike, b4 as WebSocketRegister, b5 as WebhookRegister, b6 as WorkerBridge, b7 as WorkerBridgeOptions, b8 as WorkerSelfHandle, b9 as WorkerSelfOptions, ba as WorkerTransport, bb as cascadingCache, bc as checkpointToRedis, bd as checkpointToS3, be as createTransport, bf as createWatermarkController, bg as csvRows, bh as deserializeError, bi as externalBundle, bj as externalProducer, bl as fromCSV, bm as fromClickHouseWatch, bn as fromDrizzle, bo as fromHTTP, bp as fromHTTPPoll, bq as fromHTTPStream, br as fromKafka, bs as fromKysely, bt as fromMCP, bu as fromNATS, bv as fromNDJSON, bw as fromOTel, bx as fromPrisma, by as fromPrometheus, bz as fromPulsar, bA as fromRabbitMQ, bB as fromRedisStream, bC as fromSSE, bD as fromSqlite, bE as fromSqliteCursor, bF as fromStatsD, bG as fromSyslog, bH as fromWebSocket, bI as fromWebSocketReconnect, bJ as fromWebhook, bK as lru, bL as matchesCron, bM as nameToSignal, bN as ndjsonRows, bO as parseCron, bP as parsePrometheusText, bQ as parseStatsD, bR as parseSyslog, bS as pubsub, bT as reactiveSink, bU as serializeError, bV as signalToName, bW as singleFromAny, bX as singleNodeFromAny, bY as stratify, bZ as toCSV, b_ as toClickHouse, b$ as toFile, c0 as toHTTP, c1 as toKafka, c2 as toLoki, c3 as toMongo, c4 as toNATS, c5 as toPostgres, c6 as toPulsar, c7 as toRabbitMQ, c8 as toReadableStream, c9 as toRedisStream, ca as toS3, cb as toSSE, cc as toSSEBytes, cd as toSqlite, ce as toTempo, cf as toWebSocket, cg as workerBridge, ch as workerSelf } from '../index-
|
|
2
|
-
export { B as BackoffPreset, d as BackoffStrategy, e as CircuitBreaker, a as CircuitBreakerOptions, f as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, c as NS_PER_SEC, R as RateLimiterOptions, g as RateLimiterOverflowError, h as RateLimiterOverflowPolicy, b as RetryOptions, i as RetrySourceOptions, S as StatusValue, T as TimeoutError, j as TokenBucket, W as WithBreakerBundle, k as WithStatusBundle, l as circuitBreaker, m as constant, n as decorrelatedJitter, o as exponential, p as fallback, q as fibonacci, r as linear, s as rateLimiter, t as resolveBackoffPreset, u as retry, v as retrySource, w as timeout, x as tokenBucket, y as withBreaker, z as withMaxAttempts, A as withStatus } from '../resilience-
|
|
3
|
-
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as distill, v as verifiable } from '../composite-
|
|
4
|
-
export { T as ToObservableOptions, t as toObservable } from '../observable-
|
|
1
|
+
export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as PostgresClientLike, aa as PrismaModelLike, ab as PrometheusMetric, ac as PubSubBackend, ad as PubSubHub, ae as PubSubHubOptions, af as PulsarConsumerLike, ag as PulsarMessage, ah as PulsarProducerLike, ai as RabbitMQChannelLike, aj as RabbitMQMessage, ak as ReactiveSinkBackpressureOptions, al as ReactiveSinkConfig, am as ReactiveSinkHandle, an as ReactiveSinkOptions, ao as ReactiveSinkRetryOptions, ap as ReadyMessage, aq as RedisCheckpointClientLike, ar as RedisClientLike, as as RedisStreamEntry, at as ResettableTimer, au as S3ClientLike, av as SSEEvent, aw as SignalMessage, ax as SingleFromAnyOptions, ay as SinkFailure, az as SinkHandle, aA as SinkTransportError, aB as SqliteDbLike, aC as SqliteIterableDbLike, aD as StatsDMetric, aE as StatsDRegister, aF as StratifyOptions, aG as StratifyRule, aH as SyslogMessage, aI as SyslogRegister, aJ as TempoClientLike, aK as ToCSVOptions, aL as ToClickHouseOptions, aM as ToFileOptions, aN as ToHTTPOptions, aO as ToKafkaOptions, aP as ToLokiOptions, aQ as ToMongoOptions, aR as ToNATSOptions, aS as ToPostgresOptions, aT as ToPulsarOptions, aU as ToRabbitMQOptions, aV as ToRedisStreamOptions, aW as ToS3Options, aX as ToSSEOptions, aY as ToSqliteOptions, aZ as ToTempoOptions, a_ as ToWebSocketOptions, a$ as ValueMessage, b0 as WatermarkController, b1 as WatermarkOptions, b2 as WebSocketLike, b3 as WebSocketMessageEventLike, b4 as WebSocketRegister, b5 as WebhookRegister, b6 as WorkerBridge, b7 as WorkerBridgeOptions, b8 as WorkerSelfHandle, b9 as WorkerSelfOptions, ba as WorkerTransport, bb as cascadingCache, bc as checkpointToRedis, bd as checkpointToS3, be as createTransport, bf as createWatermarkController, bg as csvRows, bh as deserializeError, bi as externalBundle, bj as externalProducer, bl as fromCSV, bm as fromClickHouseWatch, bn as fromDrizzle, bo as fromHTTP, bp as fromHTTPPoll, bq as fromHTTPStream, br as fromKafka, bs as fromKysely, bt as fromMCP, bu as fromNATS, bv as fromNDJSON, bw as fromOTel, bx as fromPrisma, by as fromPrometheus, bz as fromPulsar, bA as fromRabbitMQ, bB as fromRedisStream, bC as fromSSE, bD as fromSqlite, bE as fromSqliteCursor, bF as fromStatsD, bG as fromSyslog, bH as fromWebSocket, bI as fromWebSocketReconnect, bJ as fromWebhook, bK as lru, bL as matchesCron, bM as nameToSignal, bN as ndjsonRows, bO as parseCron, bP as parsePrometheusText, bQ as parseStatsD, bR as parseSyslog, bS as pubsub, bT as reactiveSink, bU as serializeError, bV as signalToName, bW as singleFromAny, bX as singleNodeFromAny, bY as stratify, bZ as toCSV, b_ as toClickHouse, b$ as toFile, c0 as toHTTP, c1 as toKafka, c2 as toLoki, c3 as toMongo, c4 as toNATS, c5 as toPostgres, c6 as toPulsar, c7 as toRabbitMQ, c8 as toReadableStream, c9 as toRedisStream, ca as toS3, cb as toSSE, cc as toSSEBytes, cd as toSqlite, ce as toTempo, cf as toWebSocket, cg as workerBridge, ch as workerSelf } from '../index-BJHQUCZx.js';
|
|
2
|
+
export { B as BackoffPreset, d as BackoffStrategy, e as CircuitBreaker, a as CircuitBreakerOptions, f as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, c as NS_PER_SEC, R as RateLimiterOptions, g as RateLimiterOverflowError, h as RateLimiterOverflowPolicy, b as RetryOptions, i as RetrySourceOptions, S as StatusValue, T as TimeoutError, j as TokenBucket, W as WithBreakerBundle, k as WithStatusBundle, l as circuitBreaker, m as constant, n as decorrelatedJitter, o as exponential, p as fallback, q as fibonacci, r as linear, s as rateLimiter, t as resolveBackoffPreset, u as retry, v as retrySource, w as timeout, x as tokenBucket, y as withBreaker, z as withMaxAttempts, A as withStatus } from '../resilience-CludlzcP.js';
|
|
3
|
+
export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as distill, v as verifiable } from '../composite-DGspwCqk.js';
|
|
4
|
+
export { T as ToObservableOptions, t as toObservable } from '../observable-ITikPXz3.js';
|
|
5
5
|
export { MergeMapOptions, TapObserver, ThrottleOptions, audit, buffer, bufferCount, bufferTime, catchError, combine, combineLatest, concat, concatMap, debounce, debounceTime, delay, distinctUntilChanged, elementAt, exhaustMap, filter, find, first, flatMap, interval, last, map, merge, mergeMap, pairwise, pausable, race, reduce, repeat, rescue, sample, scan, skip, switchMap, take, takeUntil, takeWhile, tap, throttle, throttleTime, valve, window, windowCount, windowTime, withLatestFrom, zip } from './operators.js';
|
|
6
6
|
export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.js';
|
|
7
|
-
export { L as LogBackend, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, r as reactiveLog } from '../reactive-log-
|
|
8
|
-
export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, r as reactiveMap } from '../reactive-map-
|
|
7
|
+
export { L as LogBackend, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, r as reactiveLog } from '../reactive-log-BOJDCI5x.js';
|
|
8
|
+
export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, r as reactiveMap } from '../reactive-map-BvDrRuwt.js';
|
|
9
9
|
export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, of, reactiveCounter, replay, share, shareReplay, throwError, toArray } from './sources.js';
|
|
10
10
|
export { StorageHandle, StorageTier, dictStorage, memoryStorage, sortJsonValue, stableJsonString } from './storage-core.js';
|
|
11
|
-
import '../node-
|
|
12
|
-
import '../graph-
|
|
13
|
-
import '../meta-
|
|
11
|
+
import '../node-BVV7G1bq.js';
|
|
12
|
+
import '../graph-CWeI0aHd.js';
|
|
13
|
+
import '../meta-BMwx3ExI.js';
|
|
14
14
|
import 'rxjs';
|
package/dist/extra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as Tb,A as sb,B as tb,C as ub,D as vb,E as wb,F as xb,G as yb,H as zb,I as Ab,J as Bb,K as Cb,L as Db,M as Eb,N as Fb,O as Gb,P as Hb,Q as Ib,R as Jb,S as Kb,T as Lb,U as Mb,V as Nb,W as Ob,X as Pb,Y as Qb,Z as Rb,_ as Sb,a as aa,aa as Ub,b as ba,ba as Vb,c as Wa,ca as _b,d as Xa,da as $b,e as Ya,ea as lc,f as Za,fa as mc,g as _a,ga as nc,h as $a,ha as oc,i as ab,ia as pc,j as bb,ja as qc,k as cb,ka as rc,l as db,m as eb,n as fb,o as gb,p as hb,q as ib,r as jb,s as kb,t as lb,u as mb,v as nb,w as ob,x as pb,y as qb,z as rb}from"../chunk-
|
|
1
|
+
import{$ as Tb,A as sb,B as tb,C as ub,D as vb,E as wb,F as xb,G as yb,H as zb,I as Ab,J as Bb,K as Cb,L as Db,M as Eb,N as Fb,O as Gb,P as Hb,Q as Ib,R as Jb,S as Kb,T as Lb,U as Mb,V as Nb,W as Ob,X as Pb,Y as Qb,Z as Rb,_ as Sb,a as aa,aa as Ub,b as ba,ba as Vb,c as Wa,ca as _b,d as Xa,da as $b,e as Ya,ea as lc,f as Za,fa as mc,g as _a,ga as nc,h as $a,ha as oc,i as ab,ia as pc,j as bb,ja as qc,k as cb,ka as rc,l as db,m as eb,n as fb,o as gb,p as hb,q as ib,r as jb,s as kb,t as lb,u as mb,v as nb,w as ob,x as pb,y as qb,z as rb}from"../chunk-4C2OR2GH.js";import{a as kc}from"../chunk-GJR3P6JG.js";import{a as Yb,b as Zb}from"../chunk-IUK4EFCE.js";import{a as n,b as o,c as p,d as q,e as r,f as s,g as t,h as u,i as v,j as w,k as x,l as y}from"../chunk-OL33ZI6R.js";import{a as ec,b as fc}from"../chunk-ISCENNXS.js";import{a,b as Z}from"../chunk-5QDBSZBV.js";import"../chunk-MGKAO4EK.js";import{a as m}from"../chunk-ESMPEKEV.js";import"../chunk-TWMEGG45.js";import{a as gc,b as hc,c as ic,d as jc}from"../chunk-I6VIH3VA.js";import{A as Ca,B as Da,C as Ea,D as Fa,E as Ga,G as Ha,H as Ia,I as Ja,J as Ka,K as La,L as Ma,M as Na,N as Oa,O as Pa,P as Qa,Q as Ra,R as Sa,S as Ta,T as Ua,U as Va,a as ca,b as da,c as ea,d as fa,e as ga,f as ha,g as ia,h as ja,i as ka,j as la,k as ma,l as na,m as oa,n as pa,o as qa,p as ra,q as sa,r as ta,s as ua,t as va,u as wa,v as xa,w as ya,x as za,y as Aa,z as Ba}from"../chunk-5JDE5JHE.js";import{a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l}from"../chunk-4VVTGLXJ.js";import{a as ac,b as bc}from"../chunk-567NWZ3T.js";import{a as cc,b as dc}from"../chunk-SLMYTGTU.js";import{a as Wb,b as Xb}from"../chunk-2GQREQ6C.js";import{a as _,b as $}from"../chunk-AUY2YKCO.js";import{A as X,B as Y,a as b,b as c,c as z,d as A,e as B,f as C,g as D,h as E,i as F,j as G,k as H,l as I,m as J,n as K,o as L,p as M,q as N,r as O,s as P,t as Q,u as R,v as S,w as T,x as U,y as V,z as W}from"../chunk-KASHOCF5.js";import"../chunk-W4TSQ6RJ.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{p as CircuitOpenError,d as NS_PER_MS,e as NS_PER_SEC,ac as NativeIndexBackend,cc as NativeListBackend,_ as NativeLogBackend,Wb as NativeMapBackend,_b as NativePubSubBackend,t as RateLimiterOverflowError,m as ResettableTimer,w as TimeoutError,Ga as audit,V as awaitSettled,Ha as buffer,Ia as bufferCount,Ka as bufferTime,S as cached,Vb as cascadingCache,Va as catchError,Nb as checkpointToRedis,Mb as checkpointToS3,q as circuitBreaker,ra as combine,Sa as combineLatest,va as concat,za as concatMap,f as constant,pc as createTransport,Z as createWatermarkController,ub as csvRows,Da as debounce,Ta as debounceTime,j as decorrelatedJitter,Ca as delay,oc as deserializeError,jc as dictStorage,Zb as distill,pa as distinctUntilChanged,na as elementAt,L as empty,z as escapeRegexChar,ya as exhaustMap,h as exponential,ba as externalBundle,aa as externalProducer,x as fallback,i as fibonacci,da as filter,ma as find,ka as first,T as firstValueFrom,U as firstWhere,Ba as flatMap,O as forEach,J as fromAny,I as fromAsyncIter,tb as fromCSV,xb as fromClickHouseWatch,E as fromCron,Sb as fromDrizzle,F as fromEvent,Za as fromHTTP,eb as fromHTTPPoll,db as fromHTTPStream,G as fromIter,pb as fromKafka,Tb as fromKysely,hb as fromMCP,Ab as fromNATS,wb as fromNDJSON,ib as fromOTel,Rb as fromPrisma,nb as fromPrometheus,H as fromPromise,yb as fromPulsar,Cb as fromRabbitMQ,D as fromRaf,rb as fromRedisStream,cb as fromSSE,Ob as fromSqlite,Pb as fromSqliteCursor,lb as fromStatsD,jb as fromSyslog,C as fromTimer,Xa as fromWebSocket,gb as fromWebSocketReconnect,Ya as fromWebhook,A as globToRegExp,Na as interval,X as keepalive,la as last,g as linear,Ub as lru,ca as map,B as matchesAnyPattern,c as matchesCron,ic as memoryStorage,ta as merge,Aa as mergeMap,mc as nameToSignal,vb as ndjsonRows,M as never,K as of,qa as pairwise,b as parseCron,ob as parsePrometheusText,mb as parseStatsD,kb as parseSyslog,Pa as pausable,$b as pubsub,wa as race,u as rateLimiter,Y as reactiveCounter,bc as reactiveIndex,dc as reactiveList,$ as reactiveLog,Xb as reactiveMap,Wa as reactiveSink,fa as reduce,Oa as repeat,R as replay,Qa as rescue,l as resolveBackoffPreset,n as retry,o as retrySource,Fa as sample,ea as scan,nc as serializeError,Q as share,W as shareReplay,lc as signalToName,ec as singleFromAny,fc as singleNodeFromAny,ha as skip,gc as sortJsonValue,hc as stableJsonString,kc as stratify,xa as switchMap,ga as take,ja as takeUntil,ia as takeWhile,oa as tap,Ea as throttle,Ua as throttleTime,N as throwError,y as timeout,P as toArray,Fb as toCSV,Gb as toClickHouse,Eb as toFile,_a as toHTTP,qb as toKafka,Kb as toLoki,Jb as toMongo,Bb as toNATS,a as toObservable,Ib as toPostgres,zb as toPulsar,Db as toRabbitMQ,bb as toReadableStream,sb as toRedisStream,Hb as toS3,$a as toSSE,ab as toSSEBytes,Qb as toSqlite,Lb as toTempo,fb as toWebSocket,s as tokenBucket,Ra as valve,Yb as verifiable,Ma as window,Ja as windowCount,La as windowTime,r as withBreaker,sa as withLatestFrom,k as withMaxAttempts,v as withStatus,qc as workerBridge,rc as workerSelf,ua as zip};
|
package/dist/extra/node.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var le=Object.defineProperty;var ot=Object.getOwnPropertyDescriptor;var st=Object.getOwnPropertyNames;var it=Object.prototype.hasOwnProperty;var A=(n,e)=>()=>(n&&(e=n(n=0)),e);var at=(n,e)=>{for(var t in e)le(n,t,{get:e[t],enumerable:!0})},dt=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of st(e))!it.call(n,o)&&o!==t&&le(n,o,{get:()=>e[o],enumerable:!(r=ot(e,o))||r.enumerable});return n};var ut=n=>dt(le({},"__esModule",{value:!0}),n);function $(){return Date.now()*1e6}var Z=A(()=>{"use strict"});var H,w,S,R,U,V,X,L,y,h,z,ce,lt,fe,ct,ft,pe,ke,Oe,Ae,he,W=A(()=>{"use strict";H=Symbol.for("graphrefly/START"),w=Symbol.for("graphrefly/DATA"),S=Symbol.for("graphrefly/DIRTY"),R=Symbol.for("graphrefly/RESOLVED"),U=Symbol.for("graphrefly/INVALIDATE"),V=Symbol.for("graphrefly/PAUSE"),X=Symbol.for("graphrefly/RESUME"),L=Symbol.for("graphrefly/TEARDOWN"),y=Symbol.for("graphrefly/COMPLETE"),h=Symbol.for("graphrefly/ERROR"),z=Object.freeze([S]),ce=Object.freeze([R]),lt=Object.freeze([U]),fe=Object.freeze([H]),ct=Object.freeze([y]),ft=Object.freeze([L]),pe=Object.freeze([z]),ke=Object.freeze([ce]),Oe=Object.freeze([lt]),Ae=Object.freeze([ct]),he=Object.freeze([ft])});function Se(n){n.registerCodec(pt)}var pt,Re=A(()=>{"use strict";pt={name:"json",version:1,contentType:"application/json",encode(n){let e=JSON.stringify(n);return new TextEncoder().encode(e)},decode(n,e){let t=new TextDecoder().decode(n);return JSON.parse(t)}}});function Q(n){if(n==null)return ht;let{type:e,id:t,...r}=n;return{type:e??"system",id:t??"",...r}}var ht,Me=A(()=>{"use strict";ht={type:"system",id:""}});function Ie(){return me>0||mt}function Le(){return me>0}function Pe(n){me>0?gt.push(n):n()}function ee(n,e,t){if(e.length===0)return;if(e.length===1){let d=t(e[0][0]);if(d<3||!Ie()){n(e);return}(d>=5?Fe:d===4?Ce:De).push(()=>n(e));return}let r=e.length,o=r,s=r,a=r,i=0;for(;i<r&&t(e[i][0])<3;)i++;for(o=i;i<r&&t(e[i][0])===3;)i++;for(s=i;i<r&&t(e[i][0])===4;)i++;a=i;let u=Ie();if(o>0){let d=e.slice(0,o);n(d)}if(s>o){let d=e.slice(o,s);u?De.push(()=>n(d)):n(d)}if(a>s){let d=e.slice(s,a);u?Ce.push(()=>n(d)):n(d)}if(r>a){let d=e.slice(a,r);u?Fe.push(()=>n(d)):n(d)}}var me,mt,De,Ce,Fe,gt,Ge=A(()=>{"use strict";me=0,mt=!1,De=[],Ce=[],Fe=[],gt=[]});function He(n){n.registerMessageType(H,{tier:0,wireCrossing:!1}),n.registerMessageType(S,{tier:1,wireCrossing:!1}),n.registerMessageType(U,{tier:1,wireCrossing:!1,metaPassthrough:!1}),n.registerMessageType(V,{tier:2,wireCrossing:!1}),n.registerMessageType(X,{tier:2,wireCrossing:!1}),n.registerMessageType(w,{tier:3,wireCrossing:!0}),n.registerMessageType(R,{tier:3,wireCrossing:!0}),n.registerMessageType(y,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(h,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(L,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var te,Ue=A(()=>{"use strict";W();te=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=t=>{let r=this._messageTypes.get(t);return r!=null?r.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}registerMessageType(e,t){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:t.tier,wireCrossing:t.wireCrossing??t.tier>=3,metaPassthrough:t.metaPassthrough??!0}),this}messageTier(e){let t=this._messageTypes.get(e);return t!=null?t.tier:1}isWireCrossing(e){let t=this._messageTypes.get(e);return t!=null?t.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let t=this._messageTypes.get(e);return t!=null?t.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var q,Ve=A(()=>{"use strict";q=class extends Error{actor;action;nodeName;constructor(e,t){super(t??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function ge(n){if(n===void 0)return null;if(typeof n=="number"){if(!Number.isFinite(n))throw new TypeError(`Cannot hash non-finite number: ${n}`);if(Number.isInteger(n)&&!Number.isSafeInteger(n))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${n}. Cross-language cid parity is not guaranteed for unsafe integers.`);return n}if(typeof n=="string"||typeof n=="boolean"||n===null)return n;if(Array.isArray(n))return n.map(ge);if(typeof n=="object"&&n!==null){let e={};for(let t of Object.keys(n).sort())e[t]=ge(n[t]);return e}return null}function yt(n){let e=bt.encode(n),t=e.length,r=t*8,o=t+9+63&-64,s=new Uint8Array(o);s.set(e),s[t]=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,m=1541459225,N=new Uint32Array(64),_=(g,x)=>g>>>x|g<<32-x;for(let g=0;g<o;g+=64){for(let T=0;T<16;T++)N[T]=a.getUint32(g+T*4,!1);for(let T=16;T<64;T++){let C=N[T-15],j=N[T-2],J=_(C,7)^_(C,18)^C>>>3,G=_(j,17)^_(j,19)^j>>>10;N[T]=N[T-16]+J+N[T-7]+G>>>0}let x=i,b=u,O=d,M=l,k=c,I=p,Y=f,D=m;for(let T=0;T<64;T++){let C=_(k,6)^_(k,11)^_(k,25),j=k&I^~k&Y,J=D+C+j+Tt[T]+N[T]>>>0,G=_(x,2)^_(x,13)^_(x,22),ue=x&b^x&O^b&O,rt=G+ue>>>0;D=Y,Y=I,I=k,k=M+J>>>0,M=O,O=b,b=x,x=J+rt>>>0}i=i+x>>>0,u=u+b>>>0,d=d+O>>>0,l=l+M>>>0,c=c+k>>>0,p=p+I>>>0,f=f+Y>>>0,m=m+D>>>0}let v=g=>g.toString(16).padStart(8,"0");return v(i)+v(u)+v(d)+v(l)+v(c)+v(p)+v(f)+v(m)}function Te(n){let e=ge(n??null),t=JSON.stringify(e);return yt(t).slice(0,16)}function _t(){let n=globalThis.crypto;if(n?.randomUUID)return n.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),t=e()+e()+e()+e();return`${t.slice(0,8)}-${t.slice(8,12)}-4${t.slice(13,16)}-${(parseInt(t.slice(16,17),16)&3|8).toString(16)}${t.slice(17,20)}-${t.slice(20,32)}`}function be(n,e,t){let r=t?.id??_t();if(n===0)return{id:r,version:0};let s=(t?.hash??Te)(e);return{id:r,version:0,cid:s,prev:null}}function We(n,e,t){n.version+=1,"cid"in n&&(n.prev=n.cid,n.cid=t(e))}var Tt,bt,Be=A(()=>{"use strict";Tt=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]),bt=new TextEncoder});function ze(n){return{node:n,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function ye(n){n.prevData=void 0,n.dirty=!1,n.involvedThisWave=!1,n.dataBatch.length=0,n.terminal=void 0}function ne(n){return n.length===0?n:typeof n[0]=="symbol"?[n]:n}function oe(n,e,t){let r=qe(n)?n:[],o=typeof n=="function"?n:typeof e=="function"?e:void 0,s={};return qe(n)?s=(_e(e)?e:t)??{}:_e(n)?s=n:s=(_e(e)?e:t)??{},new re(r,o,s)}var je,$e,vt,wt,ve,re,qe,_e,we=A(()=>{"use strict";Re();Me();Ge();Z();Ue();Ve();W();Be();je=()=>{},$e=100;vt=(n,e,t,r)=>{t.direction==="down-in"&&n._onDepMessage(t.depIndex,e)},wt=(n,e,t,r)=>{let o=n;if(o._status==="completed"||o._status==="errored")return;let s=o._cached,a=s===void 0?[fe]:[fe,[w,s]];o._status==="dirty"&&a.push(z),ee(e,a,o._config.tierOf)},ve=new te({onMessage:vt,onSubscribe:wt});He(ve);Se(ve);re=class n{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,t,r){this._config=r.config??ve,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=t,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&t==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??Te;let o=r.versioning??this._config.defaultVersioning;this._versioningLevel=o,this._versioning=o!=null?be(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),s[i]=new n([],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([[w,i]])},down(i){a._emit(ne(i))},up(i){a._emitUp(ne(i))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,t){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let r=this._versioningLevel;if(r!=null&&e<=r)return;let o=t?.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??t?.id,u=a?.version??0,d=be(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 t=Q(e);if(this._guard!=null&&!this._guard(t,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(t,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let t=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!t&&!r)return;let o=Q(e?.actor),s=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(o,s))throw new q({actor:o,action:s,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(o,s))throw new q({actor:o,action:s,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:$()}}down(e,t){let r=ne(e);r.length!==0&&(this._checkGuard(t),this._emit(r))}emit(e,t){this._checkGuard(t),this._emit([[w,e]])}up(e,t){if(this._deps.length===0)return;let r=ne(e);if(r.length===0)return;this._checkGuard(t);let o=t??{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 t of this._deps)t.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let t=this._config.tierOf;for(let r of e){let o=t(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,t){if(t!=null&&this._guard!=null){let u=Q(t);if(!this._guard(u,"observe"))throw new q({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)ye(u)}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[t]=this._sinks;this._sinks=t}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,t=0;try{for(let r=0;r<e;r++){let 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()}),t++}}catch(r){this._deps[t].unsub=null;for(let o=0;o<t;o++){let s=this._deps[o];if(s.unsub!=null){let a=s.unsub;s.unsub=null;try{a()}catch{}ye(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 t=this._deps.length,r=ze(e);if(this._deps.push(r),this._sinks==null)return t;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(pe),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:t},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(o){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,o}return t}_deactivate(e=!1){let t=this._cleanup;if(this._cleanup=void 0,typeof t=="function")try{t()}catch(r){this._emit([[h,this._wrapFnError("cleanup threw",r)]])}else if(t!=null&&typeof t=="object"){let r=t.deactivate;if(typeof r=="function")try{r()}catch(o){this._emit([[h,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{}}ye(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,t){let r=this._deps[e],o=t[0];if(this._inspectorHooks!=null){let s={kind:"dep_message",depIndex:e,message:t};for(let a of this._inspectorHooks)a(s)}if(o!==H){if(o===S){this._depDirtied(r);return}if(o===U){this._depInvalidated(r),this._emit(Oe);return}if(o===V||o===X){this._emit([t]);return}if(o===L){this._emit(he);return}if(o===w)this._depSettledAsData(r,t[1]);else if(o===R)this._depSettledAsResolved(r);else if(o===y)this._depSettledAsTerminal(r,!0);else if(o===h)this._depSettledAsTerminal(r,t[1]);else{this._emit([t]);return}if(!this._fn){(o===w||o===R)&&this._emit([t]),(o===y||o===h)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(pe))}_depSettledAsData(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(t),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=t,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(ke),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(t=>t.terminal!==void 0&&t.terminal!==!0);if(e!=null){this._autoError&&this._emit([[h,e.terminal]]);return}this._autoComplete&&this._deps.every(t=>t.terminal!==void 0)&&this._emit(Ae)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(a){this._emit([[h,this._wrapFnError("cleanup threw",a)]]);return}}else if(e!=null&&typeof e=="object"){let a=e.beforeRun;if(typeof a=="function"){e.beforeRun=void 0;try{a()}catch(i){this._emit([[h,this._wrapFnError("cleanup.beforeRun threw",i)]]);return}}}let t=this._deps.map(a=>a.involvedThisWave?a.dataBatch.length>0?[...a.dataBatch]:[]:void 0),r=this._deps.map(a=>a.prevData);for(let a=0;a<this._deps.length;a++){let i=t[a];i!=null&&i.length>0&&(this._deps[a].prevData=i[i.length-1])}let 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:t,prevData:r};for(let i of this._inspectorHooks)i(a)}this._isExecutingFn=!0;try{let a=this._fn(t,this._actions,s);if(typeof a=="function")this._cleanup=a;else if(a!=null&&typeof a=="object"){let i=a;(typeof i.beforeRun=="function"||typeof i.deactivate=="function"||typeof i.invalidate=="function")&&(this._cleanup=a)}}catch(a){this._emit([[h,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>$e?(this._rerunDepth=0,this._emit([[h,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${$e} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,t){let r=t instanceof Error?t.message:String(t);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:t})}_frameBatch(e){let t=this._config.tierOf;if(e.length===1)return t(e[0][0])===3&&this._status!=="dirty"?[z,e[0]]:e;let r=!0,o=!1,s=!1,a=-1;for(let u of e){let d=t(u[0]);d<a&&(r=!1),d===3&&(o=!0),u[0]===S&&(s=!0),a=d}let i=e;if(!r){let u=e.map((d,l)=>({m:d,i:l,tier:t(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&&t(i[u][0])===0;)u++;return u===0?[z,...i]:[...i.slice(0,u),z,...i.slice(u)]}return i}_emit(e){if(e.length===0)return;let t=e;if(this._isTerminal&&!this._resubscribable){let i=e.filter(u=>u[0]===L||u[0]===U);if(i.length===0)return;t=i}t=this._frameBatch(t);let o=null;for(let i=0;i<t.length;i++){let u=t[i],d=u[0];if(d!==V&&d!==X){o?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${d===V?"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===V)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=t.slice(0,i))}if(o!=null){if(o.length===0)return;t=o}if(this._hasMeta&&t.some(i=>i[0]===L))for(let i of Object.keys(this.meta))try{this.meta[i]._emit(he)}catch{}let{finalMessages:s,equalsError:a}=this._updateState(t);if(s.length>0&&this._config.inspectorEnabled){let i=this._config.globalInspector;if(i!=null)try{i({kind:"emit",node:this,messages:s})}catch{}}if(s.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let i=this._config.tierOf,u=[];for(let d of s){let l=i(d[0]);l<3||l===5?u.push(d):this._pauseBuffer.push(d)}u.length>0&&this._dispatchOrAccumulate(u)}else this._dispatchOrAccumulate(s);a!=null&&this._emit([[h,a]])}_updateState(e){let t=this._config.tierOf,r,o,s=-1,a=0;for(let l of e)t(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]===w){u=l;break}}for(let l=0;l<e.length;l++){let c=e[l],p=c[0];if(p===w){if(c.length>=2){let f=!1;if(i&&this._cached!==void 0)try{f=this._equals(this._cached,c[1])}catch(m){o=this._wrapFnError("equals threw",m),s=l;break}if(f){r==null&&(r=e.slice(0,l)),r.push(ce),this._status="resolved";continue}this._cached=c[1],this._versioning!=null&&(u<0||l===u)&&We(this._versioning,c[1],this._hashFn)}this._status="settled",r?.push(c)}else if(r?.push(c),p===S)this._status="dirty";else if(p===R)this._status="resolved";else if(p===y)this._status="completed";else if(p===h)this._status="errored";else if(p===U){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 m=f.invalidate;if(typeof m=="function")try{m()}catch{}}}else p===L&&(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 t=[...this._sinks];for(let r of t)r(e)};_dispatchOrAccumulate(e){if(Le()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Pe(()=>this._flushBatchPending()));for(let t of e)this._batchPendingMessages.push(t);return}ee(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let t=this._frameBatch(e);ee(this._deliverToSinks,t,this._config.tierOf)}},qe=n=>Array.isArray(n),_e=n=>typeof n=="object"&&n!=null&&!Array.isArray(n)});function F(n,e){return oe((r,o,s)=>n(o,s)??void 0,{describeKind:"producer",...e})}var se=A(()=>{"use strict";we()});function ie(n){return{describeKind:"producer",...n}}function Nt(n){return/[\\^$+?.()|[\]{}]/.test(n)?`\\${n}`:n}function K(n){let e="^";for(let t=0;t<n.length;t+=1){let r=n[t];if(r==="*"){n[t+1]==="*"?(e+=".*",t+=1):e+="[^/]*";continue}e+=Nt(r)}return e+="$",new RegExp(e)}function P(n,e){for(let t of e)if(t.test(n))return!0;return!1}function Ke(n,e){let{signal:t,period:r,...o}=e??{};return F(s=>{let a=!1,i=0,u,d,l=()=>{a=!0,u!==void 0&&clearTimeout(u),d!==void 0&&clearInterval(d),t?.removeEventListener("abort",p)},c=()=>{a||(r!=null?(s.emit(i++),d=setInterval(()=>{a||s.emit(i++)},r)):(a=!0,t?.removeEventListener("abort",p),s.emit(i++),s.down([[y]])))},p=()=>{a||(l(),s.down([[h,t.reason]]))};if(t?.aborted){p();return}return u=setTimeout(c,n),t?.addEventListener("abort",p,{once:!0}),l},ie(o))}function Ye(n,e){return F(t=>{let r=!1;try{for(let o of n){if(r)return;t.emit(o)}r||t.down([[y]])}catch(o){r||t.down([[h,o]])}return()=>{r=!0}},ie(e))}function xt(n){return n!=null&&typeof n.then=="function"}function Et(n,e){let{signal:t,...r}=e??{};return F(o=>{let s=!1,a=()=>{s||(s=!0,o.down([[h,t.reason]]))};if(t?.aborted){a();return}return t?.addEventListener("abort",a,{once:!0}),Promise.resolve(n).then(i=>{s||(s=!0,t?.removeEventListener("abort",a),o.emit(i),o.down([[y]]))},i=>{s||(s=!0,t?.removeEventListener("abort",a),o.down([[h,i]]))}),()=>{s=!0,t?.removeEventListener("abort",a)}},ie(r))}function kt(n,e){let{signal:t,...r}=e??{};return F(o=>{let s=new AbortController,a=()=>s.abort(t?.reason);t?.aborted?s.abort(t.reason):t?.addEventListener("abort",a,{once:!0});let i=t??s.signal,u=!1,d=n[Symbol.asyncIterator](),l=()=>{u||i.aborted||Promise.resolve(d.next()).then(c=>{if(!(u||i.aborted)){if(c.done){o.down([[y]]);return}o.emit(c.value),l()}},c=>{!u&&!i.aborted&&o.down([[h,c]])})};return l(),()=>{u=!0,t?.removeEventListener("abort",a),s.abort(),Promise.resolve(d.return?.()).catch(()=>{})}},ie(r))}function Ot(n){return n!=null&&typeof n=="object"&&"cache"in n&&typeof n.subscribe=="function"}function Je(n,e){if(Ot(n))return n;if(xt(n))return Et(n,e);if(n!=null){let t=n;if(typeof t[Symbol.asyncIterator]=="function")return kt(n,e);if(typeof t[Symbol.iterator]=="function")return Ye(n,e)}return At(n)}function At(...n){return Ye(n,void 0)}var ae=A(()=>{"use strict";W();se()});var Ct={};at(Ct,{fileStorage:()=>tt,fromFSWatch:()=>Dt,fromGitHook:()=>Ze,sqliteStorage:()=>nt});module.exports=ut(Ct);Z();W();se();W();we();ae();function St(n){return{describeKind:"derived",...n}}function Rt(n,e,t){let r,o=!1,s=()=>{o||(o=!0,t())};return r=n.subscribe(a=>{let i=!1,u=!1;for(let d of a)d[0]!==H&&(d[0]===w?e.emit(d[1]):d[0]===y?i=!0:d[0]===h?(u=!0,e.down([d])):(d[0]===S||d[0]===R)&&e.down([d]));u?(r?.(),r=void 0,s()):i&&s()}),()=>{r?.(),r=void 0}}function Xe(n,e,t){let r,o=!1;function s(){r?.(),r=void 0}return oe([n],(a,i,u)=>{if(u.terminalDeps[0]!=null&&u.terminalDeps[0]!==!0){s();return}if(u.terminalDeps[0]===!0){o=!0,r||i.down([[y]]);return}let d=a[0];if(!(d==null||d.length===0))return s(),r=Rt(Je(e(d[d.length-1])),i,()=>{s(),o&&i.down([[y]])}),{deactivate:()=>{s(),o=!1}}},{...St(t),completeWhenDepsComplete:!1})}ae();function Ze(n,e){let{pollMs:t=5e3,include:r,exclude:o,maxConsecutiveErrors:s=1}=e??{},a=r?.map(K)??[],i=o?.map(K)??[],{execFileSync:u}=require("node:child_process"),d=p=>u("git",p,{cwd:n,encoding:"utf-8"}).trim(),l,c=0;return Xe(Ke(0,{period:t}),()=>F(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 m=d(["diff","--name-only",`${l}..${f}`]).split(`
|
|
2
|
-
`).filter(Boolean);a.length>0&&(m=m.filter(v=>
|
|
3
|
-
`,
|
|
1
|
+
"use strict";var le=Object.defineProperty;var ot=Object.getOwnPropertyDescriptor;var st=Object.getOwnPropertyNames;var it=Object.prototype.hasOwnProperty;var A=(n,e)=>()=>(n&&(e=n(n=0)),e);var at=(n,e)=>{for(var t in e)le(n,t,{get:e[t],enumerable:!0})},dt=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of st(e))!it.call(n,o)&&o!==t&&le(n,o,{get:()=>e[o],enumerable:!(r=ot(e,o))||r.enumerable});return n};var ut=n=>dt(le({},"__esModule",{value:!0}),n);function $(){return Date.now()*1e6}var Z=A(()=>{"use strict"});var H,w,S,R,U,V,X,L,y,h,z,ce,lt,fe,ct,ft,pe,ke,Oe,Ae,he,W=A(()=>{"use strict";H=Symbol.for("graphrefly/START"),w=Symbol.for("graphrefly/DATA"),S=Symbol.for("graphrefly/DIRTY"),R=Symbol.for("graphrefly/RESOLVED"),U=Symbol.for("graphrefly/INVALIDATE"),V=Symbol.for("graphrefly/PAUSE"),X=Symbol.for("graphrefly/RESUME"),L=Symbol.for("graphrefly/TEARDOWN"),y=Symbol.for("graphrefly/COMPLETE"),h=Symbol.for("graphrefly/ERROR"),z=Object.freeze([S]),ce=Object.freeze([R]),lt=Object.freeze([U]),fe=Object.freeze([H]),ct=Object.freeze([y]),ft=Object.freeze([L]),pe=Object.freeze([z]),ke=Object.freeze([ce]),Oe=Object.freeze([lt]),Ae=Object.freeze([ct]),he=Object.freeze([ft])});function Se(n){n.registerCodec(pt)}var pt,Re=A(()=>{"use strict";pt={name:"json",version:1,contentType:"application/json",encode(n){let e=JSON.stringify(n);return new TextEncoder().encode(e)},decode(n,e){let t=new TextDecoder().decode(n);return JSON.parse(t)}}});function Q(n){if(n==null)return ht;let{type:e,id:t,...r}=n;return{type:e??"system",id:t??"",...r}}var ht,Me=A(()=>{"use strict";ht={type:"system",id:""}});function Ie(){return me>0||mt}function Le(){return me>0}function Ge(n){me>0?gt.push(n):n()}function ee(n,e,t){if(e.length===0)return;if(e.length===1){let u=t(e[0][0]);if(u<3||!Ie()){n(e);return}(u>=5?Fe:u===4?Ce:De).push(()=>n(e));return}let r=e.length,o=r,i=r,a=r,s=0;for(;s<r&&t(e[s][0])<3;)s++;for(o=s;s<r&&t(e[s][0])===3;)s++;for(i=s;s<r&&t(e[s][0])===4;)s++;a=s;let d=Ie();if(o>0){let u=e.slice(0,o);n(u)}if(i>o){let u=e.slice(o,i);d?De.push(()=>n(u)):n(u)}if(a>i){let u=e.slice(i,a);d?Ce.push(()=>n(u)):n(u)}if(r>a){let u=e.slice(a,r);d?Fe.push(()=>n(u)):n(u)}}var me,mt,De,Ce,Fe,gt,Pe=A(()=>{"use strict";me=0,mt=!1,De=[],Ce=[],Fe=[],gt=[]});function He(n){n.registerMessageType(H,{tier:0,wireCrossing:!1}),n.registerMessageType(S,{tier:1,wireCrossing:!1}),n.registerMessageType(U,{tier:1,wireCrossing:!1,metaPassthrough:!1}),n.registerMessageType(V,{tier:2,wireCrossing:!1}),n.registerMessageType(X,{tier:2,wireCrossing:!1}),n.registerMessageType(w,{tier:3,wireCrossing:!0}),n.registerMessageType(R,{tier:3,wireCrossing:!0}),n.registerMessageType(y,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(h,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(L,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var te,Ue=A(()=>{"use strict";W();te=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=t=>{let r=this._messageTypes.get(t);return r!=null?r.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}registerMessageType(e,t){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:t.tier,wireCrossing:t.wireCrossing??t.tier>=3,metaPassthrough:t.metaPassthrough??!0}),this}messageTier(e){let t=this._messageTypes.get(e);return t!=null?t.tier:1}isWireCrossing(e){let t=this._messageTypes.get(e);return t!=null?t.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let t=this._messageTypes.get(e);return t!=null?t.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var q,Ve=A(()=>{"use strict";q=class extends Error{actor;action;nodeName;constructor(e,t){super(t??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function ge(n){if(n===void 0)return null;if(typeof n=="number"){if(!Number.isFinite(n))throw new TypeError(`Cannot hash non-finite number: ${n}`);if(Number.isInteger(n)&&!Number.isSafeInteger(n))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${n}. Cross-language cid parity is not guaranteed for unsafe integers.`);return n}if(typeof n=="string"||typeof n=="boolean"||n===null)return n;if(Array.isArray(n))return n.map(ge);if(typeof n=="object"&&n!==null){let e={};for(let t of Object.keys(n).sort())e[t]=ge(n[t]);return e}return null}function yt(n){let e=bt.encode(n),t=e.length,r=t*8,o=t+9+63&-64,i=new Uint8Array(o);i.set(e),i[t]=128;let a=new DataView(i.buffer);a.setUint32(o-4,r>>>0,!1),a.setUint32(o-8,Math.floor(r/4294967296)>>>0,!1);let s=1779033703,d=3144134277,u=1013904242,l=2773480762,c=1359893119,p=2600822924,f=528734635,m=1541459225,N=new Uint32Array(64),_=(g,x)=>g>>>x|g<<32-x;for(let g=0;g<o;g+=64){for(let T=0;T<16;T++)N[T]=a.getUint32(g+T*4,!1);for(let T=16;T<64;T++){let C=N[T-15],j=N[T-2],J=_(C,7)^_(C,18)^C>>>3,P=_(j,17)^_(j,19)^j>>>10;N[T]=N[T-16]+J+N[T-7]+P>>>0}let x=s,b=d,O=u,M=l,k=c,I=p,Y=f,D=m;for(let T=0;T<64;T++){let C=_(k,6)^_(k,11)^_(k,25),j=k&I^~k&Y,J=D+C+j+Tt[T]+N[T]>>>0,P=_(x,2)^_(x,13)^_(x,22),ue=x&b^x&O^b&O,rt=P+ue>>>0;D=Y,Y=I,I=k,k=M+J>>>0,M=O,O=b,b=x,x=J+rt>>>0}s=s+x>>>0,d=d+b>>>0,u=u+O>>>0,l=l+M>>>0,c=c+k>>>0,p=p+I>>>0,f=f+Y>>>0,m=m+D>>>0}let v=g=>g.toString(16).padStart(8,"0");return v(s)+v(d)+v(u)+v(l)+v(c)+v(p)+v(f)+v(m)}function Te(n){let e=ge(n??null),t=JSON.stringify(e);return yt(t).slice(0,16)}function _t(){let n=globalThis.crypto;if(n?.randomUUID)return n.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),t=e()+e()+e()+e();return`${t.slice(0,8)}-${t.slice(8,12)}-4${t.slice(13,16)}-${(parseInt(t.slice(16,17),16)&3|8).toString(16)}${t.slice(17,20)}-${t.slice(20,32)}`}function be(n,e,t){let r=t?.id??_t();if(n===0)return{id:r,version:0};let i=(t?.hash??Te)(e);return{id:r,version:0,cid:i,prev:null}}function We(n,e,t){n.version+=1,"cid"in n&&(n.prev=n.cid,n.cid=t(e))}var Tt,bt,Be=A(()=>{"use strict";Tt=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]),bt=new TextEncoder});function ze(n){return{node:n,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function ye(n){n.prevData=void 0,n.dirty=!1,n.involvedThisWave=!1,n.dataBatch.length=0,n.terminal=void 0}function ne(n){return n.length===0?n:typeof n[0]=="symbol"?[n]:n}function oe(n,e,t){let r=qe(n)?n:[],o=typeof n=="function"?n:typeof e=="function"?e:void 0,i={};return qe(n)?i=(_e(e)?e:t)??{}:_e(n)?i=n:i=(_e(e)?e:t)??{},new re(r,o,i)}var je,$e,vt,wt,ve,re,qe,_e,we=A(()=>{"use strict";Re();Me();Pe();Z();Ue();Ve();W();Be();je=()=>{},$e=100;vt=(n,e,t,r)=>{t.direction==="down-in"&&n._onDepMessage(t.depIndex,e)},wt=(n,e,t,r)=>{let o=n;if(o._status==="completed"||o._status==="errored")return;let i=o._cached,a=i===void 0?[fe]:[fe,[w,i]];o._status==="dirty"&&a.push(z),ee(e,a,o._config.tierOf)},ve=new te({onMessage:vt,onSubscribe:wt});He(ve);Se(ve);re=class n{_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,t,r){this._config=r.config??ve,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=t,this._partial=r.partial??!1,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&t==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??Te;let o=r.versioning??this._config.defaultVersioning;this._versioningLevel=o,this._versioning=o!=null?be(o,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(ze);let i={};for(let[s,d]of Object.entries(r.meta??{})){let u={initial:d,name:`${r.name??"node"}:meta:${s}`,describeKind:"state",config:this._config};r.guard!=null&&(u.guard=r.guard),i[s]=new n([],void 0,u)}Object.freeze(i),this.meta=i,this._hasMeta=Object.keys(i).length>0;let a=this;this._actions={emit(s){a._emit([[w,s]])},down(s){a._emit(ne(s))},up(s){a._emitUp(ne(s))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,t){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let r=this._versioningLevel;if(r!=null&&e<=r)return;let o=t?.hash??this._hashFn;o!==this._hashFn&&(this._hashFn=o);let i=this._cached===void 0?void 0:this._cached,a=this._versioning,s=a?.id??t?.id,d=a?.version??0,u=be(e,i,{id:s,hash:o});u.version=d,this._versioning=u,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let t=Q(e);if(this._guard!=null&&!this._guard(t,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(t,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let t=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!t&&!r)return;let o=Q(e?.actor),i=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(o,i))throw new q({actor:o,action:i,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(o,i))throw new q({actor:o,action:i,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:$()}}down(e,t){let r=ne(e);r.length!==0&&(this._checkGuard(t),this._emit(r))}emit(e,t){this._checkGuard(t),this._emit([[w,e]])}up(e,t){if(this._deps.length===0)return;let r=ne(e);if(r.length===0)return;this._checkGuard(t);let o=t??{internal:!0};this._validateUpTiers(r);for(let i of this._deps)i.node.up?.(r,o)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let t of this._deps)t.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let t=this._config.tierOf;for(let r of e){let o=t(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,t){if(t!=null&&this._guard!=null){let d=Q(t);if(!this._guard(d,"observe"))throw new q({actor:d,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 d of this._deps)ye(d);if(this._partial===!1){for(let d of this._deps)if(d.prevData!==void 0||d.dataBatch.length!==0||d.terminal!==void 0||d.dirty)throw new Error(`resubscribable-reset invariant: DepRecord not fully reset for node ${this._optsName??"(anonymous)"}`)}}this._sinkCount+=1;let i;try{i=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:o},this._actions)}catch(d){throw this._sinkCount-=1,d}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let a=this._isTerminal;if(this._sinkCount===1&&!a)try{this._activate()}catch(d){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof i=="function")try{i()}catch{}throw d}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let s=!1;return()=>{s||(s=!0,this._sinkCount-=1,this._removeSink(e),typeof i=="function"&&i(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[t]=this._sinks;this._sinks=t}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,t=0;try{for(let r=0;r<e;r++){let o=r,i=this._deps[r];i.unsub=je,i.unsub=i.node.subscribe(a=>{if(i.unsub===null)return;let s=this._config.tierOf,d=!1;for(let u of a)s(u[0])>=3&&(d=!0),this._config.onMessage(this,u,{direction:"down-in",depIndex:o},this._actions);d&&this._maybeRunFnOnSettlement()}),t++}}catch(r){this._deps[t].unsub=null;for(let o=0;o<t;o++){let i=this._deps[o];if(i.unsub!=null){let a=i.unsub;i.unsub=null;try{a()}catch{}ye(i)}}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 t=this._deps.length,r=ze(e);if(this._deps.push(r),this._sinks==null)return t;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(pe),r.unsub=je;try{r.unsub=e.subscribe(o=>{if(r.unsub===null)return;let i=this._config.tierOf,a=!1;for(let s of o)i(s[0])>=3&&(a=!0),this._config.onMessage(this,s,{direction:"down-in",depIndex:t},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(o){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,o}return t}_deactivate(e=!1){let t=this._cleanup;if(this._cleanup=void 0,typeof t=="function")try{t()}catch(r){this._emit([[h,this._wrapFnError("cleanup threw",r)]])}else if(t!=null&&typeof t=="object"){let r=t.deactivate;if(typeof r=="function")try{r()}catch(o){this._emit([[h,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{}}ye(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,t){let r=this._deps[e],o=t[0];if(this._inspectorHooks!=null){let i={kind:"dep_message",depIndex:e,message:t};for(let a of this._inspectorHooks)a(i)}if(o!==H){if(o===S){this._depDirtied(r);return}if(o===U){this._depInvalidated(r),this._emit(Oe);return}if(o===V||o===X){this._emit([t]);return}if(o===L){this._emit(he);return}if(o===w)this._depSettledAsData(r,t[1]);else if(o===R)this._depSettledAsResolved(r);else if(o===y)this._depSettledAsTerminal(r,!0);else if(o===h)this._depSettledAsTerminal(r,t[1]);else{this._emit([t]);return}if(!this._fn){(o===w||o===R)&&this._emit([t]),(o===y||o===h)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(pe))}_depSettledAsData(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(t),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=t,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(!this._partial&&!this._hasCalledFnOnce)for(let e=0;e<this._deps.length;e++){let t=this._deps[e];if(t.dataBatch.length===0&&t.prevData===void 0&&t.terminal===void 0){this._maybeAutoTerminalAfterWave();return}}if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(ke),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(t=>t.terminal!==void 0&&t.terminal!==!0);if(e!=null){this._autoError&&this._emit([[h,e.terminal]]);return}this._autoComplete&&this._deps.every(t=>t.terminal!==void 0)&&this._emit(Ae)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(a){this._emit([[h,this._wrapFnError("cleanup threw",a)]]);return}}else if(e!=null&&typeof e=="object"){let a=e.beforeRun;if(typeof a=="function"){e.beforeRun=void 0;try{a()}catch(s){this._emit([[h,this._wrapFnError("cleanup.beforeRun threw",s)]]);return}}}let t=this._deps.map(a=>a.involvedThisWave?a.dataBatch.length>0?[...a.dataBatch]:[]:void 0),r=this._deps.map(a=>a.prevData);for(let a=0;a<this._deps.length;a++){let s=t[a];s!=null&&s.length>0&&(this._deps[a].prevData=s[s.length-1])}let o=this._deps.map(a=>a.terminal),i={prevData:r,terminalDeps:o,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let a={kind:"run",batchData:t,prevData:r};for(let s of this._inspectorHooks)s(a)}this._isExecutingFn=!0;try{let a=this._fn(t,this._actions,i);if(typeof a=="function")this._cleanup=a;else if(a!=null&&typeof a=="object"){let s=a;(typeof s.beforeRun=="function"||typeof s.deactivate=="function"||typeof s.invalidate=="function")&&(this._cleanup=a)}}catch(a){this._emit([[h,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>$e?(this._rerunDepth=0,this._emit([[h,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${$e} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,t){let r=t instanceof Error?t.message:String(t);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:t})}_frameBatch(e){let t=this._config.tierOf;if(e.length===1)return t(e[0][0])===3&&this._status!=="dirty"?[z,e[0]]:e;let r=!0,o=!1,i=!1,a=-1;for(let d of e){let u=t(d[0]);u<a&&(r=!1),u===3&&(o=!0),d[0]===S&&(i=!0),a=u}let s=e;if(!r){let d=e.map((u,l)=>({m:u,i:l,tier:t(u[0])}));d.sort((u,l)=>u.tier-l.tier||u.i-l.i),s=d.map(u=>u.m)}if(o&&!i&&this._status!=="dirty"){let d=0;for(;d<s.length&&t(s[d][0])===0;)d++;return d===0?[z,...s]:[...s.slice(0,d),z,...s.slice(d)]}return s}_emit(e){if(e.length===0)return;for(let s=0;s<e.length;s++){let d=e[s];if(d[0]===h&&d[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 t=e;if(this._isTerminal&&!this._resubscribable){let s=e.filter(d=>d[0]===L||d[0]===U);if(s.length===0)return;t=s}t=this._frameBatch(t);let o=null;for(let s=0;s<t.length;s++){let d=t[s],u=d[0];if(u!==V&&u!==X){o?.push(d);continue}if(d.length<2)throw new Error(`Node "${this.name}": [[${u===V?"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=d[1];if(u===V)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(d):o==null&&(o=t.slice(0,s))}if(o!=null){if(o.length===0)return;t=o}if(this._hasMeta&&t.some(s=>s[0]===L))for(let s of Object.keys(this.meta))try{this.meta[s]._emit(he)}catch{}let{finalMessages:i,equalsError:a}=this._updateState(t);if(i.length>0&&this._config.inspectorEnabled){let s=this._config.globalInspector;if(s!=null)try{s({kind:"emit",node:this,messages:i})}catch{}}if(i.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let s=this._config.tierOf,d=[];for(let u of i)s(u[0])===3?this._pauseBuffer.push(u):d.push(u);d.length>0&&this._dispatchOrAccumulate(d)}else this._dispatchOrAccumulate(i);a!=null&&this._emit([[h,a]])}_updateState(e){let t=this._config.tierOf,r,o,i=-1,a=0;for(let l of e)t(l[0])===3&&a++;let s=a<=1,d=-1;if(this._versioning!=null&&a>1){for(let l=e.length-1;l>=0;l--)if(e[l][0]===w){d=l;break}}for(let l=0;l<e.length;l++){let c=e[l],p=c[0];if(p===w){if(c.length>=2){let f=!1;if(s&&this._cached!==void 0)try{f=this._equals(this._cached,c[1])}catch(m){o=this._wrapFnError("equals threw",m),i=l;break}if(f){r==null&&(r=e.slice(0,l)),r.push(ce),this._status="resolved";continue}this._cached=c[1],this._versioning!=null&&(d<0||l===d)&&We(this._versioning,c[1],this._hashFn)}this._status="settled",r?.push(c)}else if(r?.push(c),p===S)this._status="dirty";else if(p===R)this._status="resolved";else if(p===y)this._status="completed";else if(p===h)this._status="errored";else if(p===U){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 m=f.invalidate;if(typeof m=="function")try{m()}catch{}}}else p===L&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let u=i>=0?r??e.slice(0,i):r??e;return o!=null?{finalMessages:u,equalsError:o}:{finalMessages:u}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let t=[...this._sinks];for(let r of t)r(e)};_dispatchOrAccumulate(e){if(Le()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Ge(()=>this._flushBatchPending()));for(let t of e)this._batchPendingMessages.push(t);return}ee(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let t=this._frameBatch(e);ee(this._deliverToSinks,t,this._config.tierOf)}},qe=n=>Array.isArray(n),_e=n=>typeof n=="object"&&n!=null&&!Array.isArray(n)});function F(n,e){return oe((r,o,i)=>n(o,i)??void 0,{describeKind:"producer",...e})}var se=A(()=>{"use strict";we()});function ie(n){return{describeKind:"producer",...n}}function Nt(n){return/[\\^$+?.()|[\]{}]/.test(n)?`\\${n}`:n}function K(n){let e="^";for(let t=0;t<n.length;t+=1){let r=n[t];if(r==="*"){n[t+1]==="*"?(e+=".*",t+=1):e+="[^/]*";continue}e+=Nt(r)}return e+="$",new RegExp(e)}function G(n,e){for(let t of e)if(t.test(n))return!0;return!1}function Ke(n,e){let{signal:t,period:r,...o}=e??{};return F(i=>{let a=!1,s=0,d,u,l=()=>{a=!0,d!==void 0&&clearTimeout(d),u!==void 0&&clearInterval(u),t?.removeEventListener("abort",p)},c=()=>{a||(r!=null?(i.emit(s++),u=setInterval(()=>{a||i.emit(s++)},r)):(a=!0,t?.removeEventListener("abort",p),i.emit(s++),i.down([[y]])))},p=()=>{a||(l(),i.down([[h,t.reason]]))};if(t?.aborted){p();return}return d=setTimeout(c,n),t?.addEventListener("abort",p,{once:!0}),l},ie(o))}function Ye(n,e){return F(t=>{let r=!1;try{for(let o of n){if(r)return;t.emit(o)}r||t.down([[y]])}catch(o){r||t.down([[h,o]])}return()=>{r=!0}},ie(e))}function xt(n){return n!=null&&typeof n.then=="function"}function Et(n,e){let{signal:t,...r}=e??{};return F(o=>{let i=!1,a=()=>{i||(i=!0,o.down([[h,t.reason]]))};if(t?.aborted){a();return}return t?.addEventListener("abort",a,{once:!0}),Promise.resolve(n).then(s=>{i||(i=!0,t?.removeEventListener("abort",a),o.emit(s),o.down([[y]]))},s=>{i||(i=!0,t?.removeEventListener("abort",a),o.down([[h,s]]))}),()=>{i=!0,t?.removeEventListener("abort",a)}},ie(r))}function kt(n,e){let{signal:t,...r}=e??{};return F(o=>{let i=new AbortController,a=()=>i.abort(t?.reason);t?.aborted?i.abort(t.reason):t?.addEventListener("abort",a,{once:!0});let s=t??i.signal,d=!1,u=n[Symbol.asyncIterator](),l=()=>{d||s.aborted||Promise.resolve(u.next()).then(c=>{if(!(d||s.aborted)){if(c.done){o.down([[y]]);return}o.emit(c.value),l()}},c=>{!d&&!s.aborted&&o.down([[h,c]])})};return l(),()=>{d=!0,t?.removeEventListener("abort",a),i.abort(),Promise.resolve(u.return?.()).catch(()=>{})}},ie(r))}function Ot(n){return n!=null&&typeof n=="object"&&"cache"in n&&typeof n.subscribe=="function"}function Je(n,e){if(Ot(n))return n;if(xt(n))return Et(n,e);if(n!=null){let t=n;if(typeof t[Symbol.asyncIterator]=="function")return kt(n,e);if(typeof t[Symbol.iterator]=="function")return Ye(n,e)}return At(n)}function At(...n){return Ye(n,void 0)}var ae=A(()=>{"use strict";W();se()});var Ct={};at(Ct,{fileStorage:()=>tt,fromFSWatch:()=>Dt,fromGitHook:()=>Ze,sqliteStorage:()=>nt});module.exports=ut(Ct);Z();W();se();W();we();ae();function St(n){return{describeKind:"derived",...n}}function Rt(n,e,t){let r,o=!1,i=()=>{o||(o=!0,t())};return r=n.subscribe(a=>{let s=!1,d=!1;for(let u of a)u[0]!==H&&(u[0]===w?e.emit(u[1]):u[0]===y?s=!0:u[0]===h?(d=!0,e.down([u])):(u[0]===S||u[0]===R)&&e.down([u]));d?(r?.(),r=void 0,i()):s&&i()}),()=>{r?.(),r=void 0}}function Xe(n,e,t){let r,o=!1;function i(){r?.(),r=void 0}return oe([n],(a,s,d)=>{if(d.terminalDeps[0]!=null&&d.terminalDeps[0]!==!0){i();return}if(d.terminalDeps[0]===!0){o=!0,r||s.down([[y]]);return}let u=a[0];if(!(u==null||u.length===0))return i(),r=Rt(Je(e(u[u.length-1])),s,()=>{i(),o&&s.down([[y]])}),{deactivate:()=>{i(),o=!1}}},{...St(t),completeWhenDepsComplete:!1})}ae();function Ze(n,e){let{pollMs:t=5e3,include:r,exclude:o,maxConsecutiveErrors:i=1}=e??{},a=r?.map(K)??[],s=o?.map(K)??[],{execFileSync:d}=require("node:child_process"),u=p=>d("git",p,{cwd:n,encoding:"utf-8"}).trim(),l,c=0;return Xe(Ke(0,{period:t}),()=>F(p=>{try{let f=u(["rev-parse","HEAD"]);if(!f)return c=0,()=>{};if(l===void 0)return l=f,c=0,()=>{};if(f===l)return c=0,()=>{};let m=u(["diff","--name-only",`${l}..${f}`]).split(`
|
|
2
|
+
`).filter(Boolean);a.length>0&&(m=m.filter(v=>G(v,a))),s.length>0&&(m=m.filter(v=>!G(v,s)));let N=u(["log","-1","--format=%s",f]),_=u(["log","-1","--format=%an",f]);p.emit({hook:"post-commit",commit:f,files:m,message:N,author:_,timestamp_ns:$()}),l=f,c=0}catch(f){c+=1,c>=i&&p.down([[h,f]])}return()=>{}}))}var de=require("node:fs"),Ne=require("node:path");Z();W();se();ae();function Mt(n){return{describeKind:"producer",...n}}function Dt(n,e){let t=Array.isArray(n)?n:[n];if(t.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:r=!0,debounce:o=100,include:i,exclude:a,...s}=e??{},d=i?.map(K)??[],u=(a??["**/node_modules/**","**/.git/**","**/dist/**"]).map(K);return F(l=>{let c=new Map,p=[],f=!1,m=!1,N=0,_=()=>{for(let b of p.splice(0))b.close()},v=b=>{m||(m=!0,f=!0,g!==void 0&&clearTimeout(g),g=void 0,c.clear(),_(),l.down([[h,b]]))},g,x=b=>{if(g=void 0,f||m||c.size===0)return;let O=[];for(let M of c.values())O.push([w,M]);c.clear(),!(f||m||b!==N)&&l.down(O)};try{for(let b of t){let O=(0,de.watch)(b,{recursive:r},(M,k)=>{if(f||m||k==null)return;let I=String(k).replaceAll("\\","/"),D=(0,Ne.resolve)(b,String(k)).replaceAll("\\","/"),T=(0,Ne.resolve)(b).replaceAll("\\","/"),C=I.startsWith("./")?I.slice(2):I;if(!(d.length===0||G(D,d)||G(C,d))||G(D,u)||G(C,u))return;let P="change";if(M==="rename")try{P=(0,de.existsSync)(D)?"create":"delete"}catch{P="rename"}c.set(D,{type:P,path:D,root:T,relative_path:C,timestamp_ns:$()}),g!==void 0&&clearTimeout(g);let ue=N;g=setTimeout(()=>x(ue),o)});O.on("error",M=>v(M)),p.push(O)}}catch(b){v(b)}return()=>{f=!0,N+=1,g!==void 0&&clearTimeout(g),g=void 0,_(),c.clear()}},Mt(s))}var Qe=require("node:crypto"),E=require("node:fs"),B=require("node:path"),et=require("node:sqlite");function xe(n){if(n===null||typeof n!="object")return n;if(Array.isArray(n))return n.map(xe);let e=n,t=Object.keys(e).sort(),r={};for(let o of t)r[o]=xe(e[o]);return r}function Ee(n){return JSON.stringify(xe(n),void 0,0)}function tt(n){let e=new TextEncoder,t=new TextDecoder("utf-8",{fatal:!0}),r=i=>{let a="";for(let s of i){if(s.length===1&&/[a-zA-Z0-9_-]/.test(s)){a+=s;continue}for(let d of e.encode(s))a+=`%${d.toString(16).padStart(2,"0")}`}return(0,B.join)(n,`${a}.json`)},o=i=>{if(!i.endsWith(".json"))return null;let a=i.slice(0,-5),s=[],d=l=>{for(let c=0;c<l.length;c++)s.push(l.charCodeAt(c))},u=0;for(;u<a.length;){let l=a[u];if(l==="%"&&u+2<a.length){let c=a.slice(u+1,u+3);if(/^[0-9a-f]{2}$/i.test(c)){s.push(Number.parseInt(c,16)),u+=3;continue}}d(l),u+=1}try{return t.decode(new Uint8Array(s))}catch{return null}};return{save(i,a){(0,E.mkdirSync)(n,{recursive:!0});let s=r(i),d=`${Ee(a)}
|
|
3
|
+
`,u=(0,B.basename)(s),l=(0,B.dirname)(s),c=(0,B.join)(l,`.${u}.${(0,Qe.randomBytes)(8).toString("hex")}.tmp`);try{(0,E.writeFileSync)(c,d,"utf8"),(0,E.renameSync)(c,s)}catch(p){try{(0,E.unlinkSync)(c)}catch{}throw p}},load(i){try{let a=(0,E.readFileSync)(r(i),"utf8").trim();return a?JSON.parse(a):null}catch{return null}},clear(i){try{(0,E.unlinkSync)(r(i))}catch(a){if(a.code!=="ENOENT")throw a}},list(){try{let i=(0,E.readdirSync)(n),a=[];for(let s of i){if(s.startsWith("."))continue;let d=o(s);d!==null&&a.push(d)}return a.sort()}catch(i){if(i.code==="ENOENT")return[];throw i}}}}function nt(n){let e=new et.DatabaseSync(n);return e.exec("CREATE TABLE IF NOT EXISTS graphrefly_checkpoint (k TEXT PRIMARY KEY, v TEXT NOT NULL)"),{save(t,r){let o=Ee(r);e.prepare("INSERT OR REPLACE INTO graphrefly_checkpoint (k, v) VALUES (?, ?)").run(t,o)},load(t){let r=e.prepare("SELECT v FROM graphrefly_checkpoint WHERE k = ?").get(t);return r===void 0||typeof r.v!="string"||r.v.trim()===""?null:JSON.parse(r.v)},clear(t){e.prepare("DELETE FROM graphrefly_checkpoint WHERE k = ?").run(t)},list(){return e.prepare("SELECT k FROM graphrefly_checkpoint ORDER BY k").all().map(r=>r.k)},close(){try{e.close()}catch{}}}}0&&(module.exports={fileStorage,fromFSWatch,fromGitHook,sqliteStorage});
|
package/dist/extra/node.d.cts
CHANGED
package/dist/extra/node.d.ts
CHANGED
package/dist/extra/node.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as q,b as z}from"../chunk-3JXNEPCD.js";import"../chunk-I6VIH3VA.js";import{v as M}from"../chunk-
|
|
1
|
+
import{a as q,b as z}from"../chunk-3JXNEPCD.js";import"../chunk-I6VIH3VA.js";import{v as M}from"../chunk-5JDE5JHE.js";import"../chunk-4VVTGLXJ.js";import{d as l,e as s,f as _}from"../chunk-KASHOCF5.js";import{F as k,p as T}from"../chunk-W4TSQ6RJ.js";import{b as N,j as O}from"../chunk-CK2E7BTU.js";import{a as K}from"../chunk-QYADASLV.js";function B(c,w){let{pollMs:y=5e3,include:b,exclude:F,maxConsecutiveErrors:S=1}=w??{},x=b?.map(l)??[],E=F?.map(l)??[],{execFileSync:u}=K("child_process"),p=a=>u("git",a,{cwd:c,encoding:"utf-8"}).trim(),i,t=0;return M(_(0,{period:y}),()=>k(a=>{try{let e=p(["rev-parse","HEAD"]);if(!e)return t=0,()=>{};if(i===void 0)return i=e,t=0,()=>{};if(e===i)return t=0,()=>{};let r=p(["diff","--name-only",`${i}..${e}`]).split(`
|
|
2
2
|
`).filter(Boolean);x.length>0&&(r=r.filter(m=>s(m,x))),E.length>0&&(r=r.filter(m=>!s(m,E)));let d=p(["log","-1","--format=%s",e]),v=p(["log","-1","--format=%an",e]);a.emit({hook:"post-commit",commit:e,files:r,message:d,author:v,timestamp_ns:T()}),i=e,t=0}catch(e){t+=1,t>=S&&a.down([[O,e]])}return()=>{}}))}import{existsSync as D,watch as $}from"fs";import{resolve as P}from"path";function Q(c){return{describeKind:"producer",...c}}function ce(c,w){let y=Array.isArray(c)?c:[c];if(y.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:b=!0,debounce:F=100,include:S,exclude:x,...E}=w??{},u=S?.map(l)??[],p=(x??["**/node_modules/**","**/.git/**","**/dist/**"]).map(l);return k(i=>{let t=new Map,a=[],e=!1,r=!1,d=0,v=()=>{for(let o of a.splice(0))o.close()},m=o=>{r||(r=!0,e=!0,n!==void 0&&clearTimeout(n),n=void 0,t.clear(),v(),i.down([[O,o]]))},n,W=o=>{if(n=void 0,e||r||t.size===0)return;let f=[];for(let g of t.values())f.push([N,g]);t.clear(),!(e||r||o!==d)&&i.down(f)};try{for(let o of y){let f=$(o,{recursive:b},(g,G)=>{if(e||r||G==null)return;let R=String(G).replaceAll("\\","/"),h=P(o,String(G)).replaceAll("\\","/"),C=P(o).replaceAll("\\","/"),A=R.startsWith("./")?R.slice(2):R;if(!(u.length===0||s(h,u)||s(A,u))||s(h,p)||s(A,p))return;let H="change";if(g==="rename")try{H=D(h)?"create":"delete"}catch{H="rename"}t.set(h,{type:H,path:h,root:C,relative_path:A,timestamp_ns:T()}),n!==void 0&&clearTimeout(n);let j=d;n=setTimeout(()=>W(j),F)});f.on("error",g=>m(g)),a.push(f)}}catch(o){m(o)}return()=>{e=!0,d+=1,n!==void 0&&clearTimeout(n),n=void 0,v(),t.clear()}},Q(E))}export{q as fileStorage,ce as fromFSWatch,B as fromGitHook,z as sqliteStorage};
|
package/dist/extra/operators.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var oe=Object.defineProperty;var nn=Object.getOwnPropertyDescriptor;var tn=Object.getOwnPropertyNames;var rn=Object.prototype.hasOwnProperty;var A=(o,e)=>()=>(o&&(e=o(o=0)),e);var on=(o,e)=>{for(var t in e)oe(o,t,{get:e[t],enumerable:!0})},sn=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tn(e))!rn.call(o,n)&&n!==t&&oe(o,n,{get:()=>e[n],enumerable:!(r=nn(e,n))||r.enumerable});return o};var an=o=>sn(oe({},"__esModule",{value:!0}),o);function q(){return Math.trunc(performance.now()*1e6)}function ye(){return Date.now()*1e6}var se=A(()=>{"use strict"});var C,m,M,g,I,F,W,D,c,h,L,ie,dn,ae,un,ln,de,ve,we,Ne,ue,G=A(()=>{"use strict";C=Symbol.for("graphrefly/START"),m=Symbol.for("graphrefly/DATA"),M=Symbol.for("graphrefly/DIRTY"),g=Symbol.for("graphrefly/RESOLVED"),I=Symbol.for("graphrefly/INVALIDATE"),F=Symbol.for("graphrefly/PAUSE"),W=Symbol.for("graphrefly/RESUME"),D=Symbol.for("graphrefly/TEARDOWN"),c=Symbol.for("graphrefly/COMPLETE"),h=Symbol.for("graphrefly/ERROR"),L=Object.freeze([M]),ie=Object.freeze([g]),dn=Object.freeze([I]),ae=Object.freeze([C]),un=Object.freeze([c]),ln=Object.freeze([D]),de=Object.freeze([L]),ve=Object.freeze([ie]),we=Object.freeze([dn]),Ne=Object.freeze([un]),ue=Object.freeze([ln])});function xe(o){o.registerCodec(cn)}var cn,Ee=A(()=>{"use strict";cn={name:"json",version:1,contentType:"application/json",encode(o){let e=JSON.stringify(o);return new TextEncoder().encode(e)},decode(o,e){let t=new TextDecoder().decode(o);return JSON.parse(t)}}});function K(o){if(o==null)return fn;let{type:e,id:t,...r}=o;return{type:e??"system",id:t??"",...r}}var fn,ke=A(()=>{"use strict";fn={type:"system",id:""}});function Re(){return le>0||pn}function Se(){return le>0}function De(o){le>0?hn.push(o):o()}function Y(o,e,t){if(e.length===0)return;if(e.length===1){let u=t(e[0][0]);if(u<3||!Re()){o(e);return}(u>=5?Me:u===4?Ae:Oe).push(()=>o(e));return}let r=e.length,n=r,s=r,a=r,i=0;for(;i<r&&t(e[i][0])<3;)i++;for(n=i;i<r&&t(e[i][0])===3;)i++;for(s=i;i<r&&t(e[i][0])===4;)i++;a=i;let d=Re();if(n>0){let u=e.slice(0,n);o(u)}if(s>n){let u=e.slice(n,s);d?Oe.push(()=>o(u)):o(u)}if(a>s){let u=e.slice(s,a);d?Ae.push(()=>o(u)):o(u)}if(r>a){let u=e.slice(a,r);d?Me.push(()=>o(u)):o(u)}}var le,pn,Oe,Ae,Me,hn,Ce=A(()=>{"use strict";le=0,pn=!1,Oe=[],Ae=[],Me=[],hn=[]});function Ie(o){o.registerMessageType(C,{tier:0,wireCrossing:!1}),o.registerMessageType(M,{tier:1,wireCrossing:!1}),o.registerMessageType(I,{tier:1,wireCrossing:!1,metaPassthrough:!1}),o.registerMessageType(F,{tier:2,wireCrossing:!1}),o.registerMessageType(W,{tier:2,wireCrossing:!1}),o.registerMessageType(m,{tier:3,wireCrossing:!0}),o.registerMessageType(g,{tier:3,wireCrossing:!0}),o.registerMessageType(c,{tier:4,wireCrossing:!0,metaPassthrough:!1}),o.registerMessageType(h,{tier:4,wireCrossing:!0,metaPassthrough:!1}),o.registerMessageType(D,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var J,Fe=A(()=>{"use strict";G();J=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=t=>{let r=this._messageTypes.get(t);return r!=null?r.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}registerMessageType(e,t){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:t.tier,wireCrossing:t.wireCrossing??t.tier>=3,metaPassthrough:t.metaPassthrough??!0}),this}messageTier(e){let t=this._messageTypes.get(e);return t!=null?t.tier:1}isWireCrossing(e){let t=this._messageTypes.get(e);return t!=null?t.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let t=this._messageTypes.get(e);return t!=null?t.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var P,Le=A(()=>{"use strict";P=class extends Error{actor;action;nodeName;constructor(e,t){super(t??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function ce(o){if(o===void 0)return null;if(typeof o=="number"){if(!Number.isFinite(o))throw new TypeError(`Cannot hash non-finite number: ${o}`);if(Number.isInteger(o)&&!Number.isSafeInteger(o))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${o}. Cross-language cid parity is not guaranteed for unsafe integers.`);return o}if(typeof o=="string"||typeof o=="boolean"||o===null)return o;if(Array.isArray(o))return o.map(ce);if(typeof o=="object"&&o!==null){let e={};for(let t of Object.keys(o).sort())e[t]=ce(o[t]);return e}return null}function bn(o){let e=gn.encode(o),t=e.length,r=t*8,n=t+9+63&-64,s=new Uint8Array(n);s.set(e),s[t]=128;let a=new DataView(s.buffer);a.setUint32(n-4,r>>>0,!1),a.setUint32(n-8,Math.floor(r/4294967296)>>>0,!1);let i=1779033703,d=3144134277,u=1013904242,l=2773480762,f=1359893119,T=2600822924,y=528734635,N=1541459225,k=new Uint32Array(64),v=(O,x)=>O>>>x|O<<32-x;for(let O=0;O<n;O+=64){for(let E=0;E<16;E++)k[E]=a.getUint32(O+E*4,!1);for(let E=16;E<64;E++){let U=k[E-15],H=k[E-2],$=v(U,7)^v(U,18)^U>>>3,re=v(H,17)^v(H,19)^H>>>10;k[E]=k[E-16]+$+k[E-7]+re>>>0}let x=i,R=d,V=u,ne=l,S=f,j=T,z=y,te=N;for(let E=0;E<64;E++){let U=v(S,6)^v(S,11)^v(S,25),H=S&j^~S&z,$=te+U+H+mn[E]+k[E]>>>0,re=v(x,2)^v(x,13)^v(x,22),Qe=x&R^x&V^R&V,en=re+Qe>>>0;te=z,z=j,j=S,S=ne+$>>>0,ne=V,V=R,R=x,x=$+en>>>0}i=i+x>>>0,d=d+R>>>0,u=u+V>>>0,l=l+ne>>>0,f=f+S>>>0,T=T+j>>>0,y=y+z>>>0,N=N+te>>>0}let w=O=>O.toString(16).padStart(8,"0");return w(i)+w(d)+w(u)+w(l)+w(f)+w(T)+w(y)+w(N)}function fe(o){let e=ce(o??null),t=JSON.stringify(e);return bn(t).slice(0,16)}function Tn(){let o=globalThis.crypto;if(o?.randomUUID)return o.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),t=e()+e()+e()+e();return`${t.slice(0,8)}-${t.slice(8,12)}-4${t.slice(13,16)}-${(parseInt(t.slice(16,17),16)&3|8).toString(16)}${t.slice(17,20)}-${t.slice(20,32)}`}function pe(o,e,t){let r=t?.id??Tn();if(o===0)return{id:r,version:0};let s=(t?.hash??fe)(e);return{id:r,version:0,cid:s,prev:null}}function Ge(o,e,t){o.version+=1,"cid"in o&&(o.prev=o.cid,o.cid=t(e))}var mn,gn,Pe=A(()=>{"use strict";mn=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),gn=new TextEncoder});function He(o){return{node:o,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function he(o){o.prevData=void 0,o.dirty=!1,o.involvedThisWave=!1,o.dataBatch.length=0,o.terminal=void 0}function X(o){return o.length===0?o:typeof o[0]=="symbol"?[o]:o}function _(o,e,t){let r=We(o)?o:[],n=typeof o=="function"?o:typeof e=="function"?e:void 0,s={};return We(o)?s=(me(e)?e:t)??{}:me(o)?s=o:s=(me(e)?e:t)??{},new Z(r,n,s)}var Ve,Ue,_n,yn,ge,Z,We,me,be=A(()=>{"use strict";Ee();ke();Ce();se();Fe();Le();G();Pe();Ve=()=>{},Ue=100;_n=(o,e,t,r)=>{t.direction==="down-in"&&o._onDepMessage(t.depIndex,e)},yn=(o,e,t,r)=>{let n=o;if(n._status==="completed"||n._status==="errored")return;let s=n._cached,a=s===void 0?[ae]:[ae,[m,s]];n._status==="dirty"&&a.push(L),Y(e,a,n._config.tierOf)},ge=new J({onMessage:_n,onSubscribe:yn});Ie(ge);xe(ge);Z=class o{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,t,r){this._config=r.config??ge,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=t,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&t==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??fe;let n=r.versioning??this._config.defaultVersioning;this._versioningLevel=n,this._versioning=n!=null?pe(n,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(He);let s={};for(let[i,d]of Object.entries(r.meta??{})){let u={initial:d,name:`${r.name??"node"}:meta:${i}`,describeKind:"state",config:this._config};r.guard!=null&&(u.guard=r.guard),s[i]=new o([],void 0,u)}Object.freeze(s),this.meta=s,this._hasMeta=Object.keys(s).length>0;let a=this;this._actions={emit(i){a._emit([[m,i]])},down(i){a._emit(X(i))},up(i){a._emitUp(X(i))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,t){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let r=this._versioningLevel;if(r!=null&&e<=r)return;let n=t?.hash??this._hashFn;n!==this._hashFn&&(this._hashFn=n);let s=this._cached===void 0?void 0:this._cached,a=this._versioning,i=a?.id??t?.id,d=a?.version??0,u=pe(e,s,{id:i,hash:n});u.version=d,this._versioning=u,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let t=K(e);if(this._guard!=null&&!this._guard(t,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(t,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let t=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!t&&!r)return;let n=K(e?.actor),s=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(n,s))throw new P({actor:n,action:s,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(n,s))throw new P({actor:n,action:s,nodeName:this.name})}this._lastMutation={actor:n,timestamp_ns:ye()}}down(e,t){let r=X(e);r.length!==0&&(this._checkGuard(t),this._emit(r))}emit(e,t){this._checkGuard(t),this._emit([[m,e]])}up(e,t){if(this._deps.length===0)return;let r=X(e);if(r.length===0)return;this._checkGuard(t);let n=t??{internal:!0};this._validateUpTiers(r);for(let s of this._deps)s.node.up?.(r,n)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let t of this._deps)t.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let t=this._config.tierOf;for(let r of e){let n=t(r[0]);if(n===3||n===4)throw new Error(`Node "${this.name}": tier-${n} messages cannot flow up \u2014 DATA/RESOLVED/COMPLETE/ERROR are downstream-only. Use \`down(...)\` for value delivery; \`up(...)\` is for control signals (DIRTY, INVALIDATE, PAUSE, RESUME, TEARDOWN).`)}}subscribe(e,t){if(t!=null&&this._guard!=null){let d=K(t);if(!this._guard(d,"observe"))throw new P({actor:d,action:"observe",nodeName:this.name})}let n=this._isTerminal&&this._resubscribable;if(n){this._cached=void 0,this._status="sentinel",this._store={},this._hasCalledFnOnce=!1,this._waveHasNewData=!1,this._hasNewTerminal=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._isExecutingFn=!1,this._rerunDepth=0,this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null;for(let d of this._deps)he(d)}this._sinkCount+=1;let s;try{s=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:n},this._actions)}catch(d){throw this._sinkCount-=1,d}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let a=this._isTerminal;if(this._sinkCount===1&&!a)try{this._activate()}catch(d){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof s=="function")try{s()}catch{}throw d}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let i=!1;return()=>{i||(i=!0,this._sinkCount-=1,this._removeSink(e),typeof s=="function"&&s(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[t]=this._sinks;this._sinks=t}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,t=0;try{for(let r=0;r<e;r++){let n=r,s=this._deps[r];s.unsub=Ve,s.unsub=s.node.subscribe(a=>{if(s.unsub===null)return;let i=this._config.tierOf,d=!1;for(let u of a)i(u[0])>=3&&(d=!0),this._config.onMessage(this,u,{direction:"down-in",depIndex:n},this._actions);d&&this._maybeRunFnOnSettlement()}),t++}}catch(r){this._deps[t].unsub=null;for(let n=0;n<t;n++){let s=this._deps[n];if(s.unsub!=null){let a=s.unsub;s.unsub=null;try{a()}catch{}he(s)}}throw this._dirtyDepCount=0,r}}_addDep(e){for(let n=0;n<this._deps.length;n++)if(this._deps[n].node===e)return n;let t=this._deps.length,r=He(e);if(this._deps.push(r),this._sinks==null)return t;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(de),r.unsub=Ve;try{r.unsub=e.subscribe(n=>{if(r.unsub===null)return;let s=this._config.tierOf,a=!1;for(let i of n)s(i[0])>=3&&(a=!0),this._config.onMessage(this,i,{direction:"down-in",depIndex:t},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(n){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,n}return t}_deactivate(e=!1){let t=this._cleanup;if(this._cleanup=void 0,typeof t=="function")try{t()}catch(r){this._emit([[h,this._wrapFnError("cleanup threw",r)]])}else if(t!=null&&typeof t=="object"){let r=t.deactivate;if(typeof r=="function")try{r()}catch(n){this._emit([[h,this._wrapFnError("cleanup.deactivate threw",n)]])}}for(let r of this._deps){if(r.unsub!=null){let n=r.unsub;r.unsub=null;try{n()}catch{}}he(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,t){let r=this._deps[e],n=t[0];if(this._inspectorHooks!=null){let s={kind:"dep_message",depIndex:e,message:t};for(let a of this._inspectorHooks)a(s)}if(n!==C){if(n===M){this._depDirtied(r);return}if(n===I){this._depInvalidated(r),this._emit(we);return}if(n===F||n===W){this._emit([t]);return}if(n===D){this._emit(ue);return}if(n===m)this._depSettledAsData(r,t[1]);else if(n===g)this._depSettledAsResolved(r);else if(n===c)this._depSettledAsTerminal(r,!0);else if(n===h)this._depSettledAsTerminal(r,t[1]);else{this._emit([t]);return}if(!this._fn){(n===m||n===g)&&this._emit([t]),(n===c||n===h)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(de))}_depSettledAsData(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(t),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=t,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(ve),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(t=>t.terminal!==void 0&&t.terminal!==!0);if(e!=null){this._autoError&&this._emit([[h,e.terminal]]);return}this._autoComplete&&this._deps.every(t=>t.terminal!==void 0)&&this._emit(Ne)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(a){this._emit([[h,this._wrapFnError("cleanup threw",a)]]);return}}else if(e!=null&&typeof e=="object"){let a=e.beforeRun;if(typeof a=="function"){e.beforeRun=void 0;try{a()}catch(i){this._emit([[h,this._wrapFnError("cleanup.beforeRun threw",i)]]);return}}}let t=this._deps.map(a=>a.involvedThisWave?a.dataBatch.length>0?[...a.dataBatch]:[]:void 0),r=this._deps.map(a=>a.prevData);for(let a=0;a<this._deps.length;a++){let i=t[a];i!=null&&i.length>0&&(this._deps[a].prevData=i[i.length-1])}let n=this._deps.map(a=>a.terminal),s={prevData:r,terminalDeps:n,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let a={kind:"run",batchData:t,prevData:r};for(let i of this._inspectorHooks)i(a)}this._isExecutingFn=!0;try{let a=this._fn(t,this._actions,s);if(typeof a=="function")this._cleanup=a;else if(a!=null&&typeof a=="object"){let i=a;(typeof i.beforeRun=="function"||typeof i.deactivate=="function"||typeof i.invalidate=="function")&&(this._cleanup=a)}}catch(a){this._emit([[h,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>Ue?(this._rerunDepth=0,this._emit([[h,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${Ue} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,t){let r=t instanceof Error?t.message:String(t);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:t})}_frameBatch(e){let t=this._config.tierOf;if(e.length===1)return t(e[0][0])===3&&this._status!=="dirty"?[L,e[0]]:e;let r=!0,n=!1,s=!1,a=-1;for(let d of e){let u=t(d[0]);u<a&&(r=!1),u===3&&(n=!0),d[0]===M&&(s=!0),a=u}let i=e;if(!r){let d=e.map((u,l)=>({m:u,i:l,tier:t(u[0])}));d.sort((u,l)=>u.tier-l.tier||u.i-l.i),i=d.map(u=>u.m)}if(n&&!s&&this._status!=="dirty"){let d=0;for(;d<i.length&&t(i[d][0])===0;)d++;return d===0?[L,...i]:[...i.slice(0,d),L,...i.slice(d)]}return i}_emit(e){if(e.length===0)return;let t=e;if(this._isTerminal&&!this._resubscribable){let i=e.filter(d=>d[0]===D||d[0]===I);if(i.length===0)return;t=i}t=this._frameBatch(t);let n=null;for(let i=0;i<t.length;i++){let d=t[i],u=d[0];if(u!==F&&u!==W){n?.push(d);continue}if(d.length<2)throw new Error(`Node "${this.name}": [[${u===F?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let l=!0;if(this._pausable!==!1){let f=d[1];if(u===F)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(f),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(f))l=!1;else if(this._pauseLocks.delete(f),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let T=this._pauseBuffer;this._pauseBuffer=[],this._emit(T)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}l?n?.push(d):n==null&&(n=t.slice(0,i))}if(n!=null){if(n.length===0)return;t=n}if(this._hasMeta&&t.some(i=>i[0]===D))for(let i of Object.keys(this.meta))try{this.meta[i]._emit(ue)}catch{}let{finalMessages:s,equalsError:a}=this._updateState(t);if(s.length>0&&this._config.inspectorEnabled){let i=this._config.globalInspector;if(i!=null)try{i({kind:"emit",node:this,messages:s})}catch{}}if(s.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let i=this._config.tierOf,d=[];for(let u of s){let l=i(u[0]);l<3||l===5?d.push(u):this._pauseBuffer.push(u)}d.length>0&&this._dispatchOrAccumulate(d)}else this._dispatchOrAccumulate(s);a!=null&&this._emit([[h,a]])}_updateState(e){let t=this._config.tierOf,r,n,s=-1,a=0;for(let l of e)t(l[0])===3&&a++;let i=a<=1,d=-1;if(this._versioning!=null&&a>1){for(let l=e.length-1;l>=0;l--)if(e[l][0]===m){d=l;break}}for(let l=0;l<e.length;l++){let f=e[l],T=f[0];if(T===m){if(f.length>=2){let y=!1;if(i&&this._cached!==void 0)try{y=this._equals(this._cached,f[1])}catch(N){n=this._wrapFnError("equals threw",N),s=l;break}if(y){r==null&&(r=e.slice(0,l)),r.push(ie),this._status="resolved";continue}this._cached=f[1],this._versioning!=null&&(d<0||l===d)&&Ge(this._versioning,f[1],this._hashFn)}this._status="settled",r?.push(f)}else if(r?.push(f),T===M)this._status="dirty";else if(T===g)this._status="resolved";else if(T===c)this._status="completed";else if(T===h)this._status="errored";else if(T===I){this._cached=void 0,this._status="dirty";let y=this._cleanup;if(typeof y=="function"){this._cleanup=void 0;try{y()}catch{}}else if(y!=null&&typeof y=="object"){let N=y.invalidate;if(typeof N=="function")try{N()}catch{}}}else T===D&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let u=s>=0?r??e.slice(0,s):r??e;return n!=null?{finalMessages:u,equalsError:n}:{finalMessages:u}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let t=[...this._sinks];for(let r of t)r(e)};_dispatchOrAccumulate(e){if(Se()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],De(()=>this._flushBatchPending()));for(let t of e)this._batchPendingMessages.push(t);return}Y(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let t=this._frameBatch(e);Y(this._deliverToSinks,t,this._config.tierOf)}},We=o=>Array.isArray(o),me=o=>typeof o=="object"&&o!=null&&!Array.isArray(o)});function vn(o,e,t){return t?!1:o.some((r,n)=>!(r!=null&&r.length>0)&&e.prevData[n]===void 0)}function b(o,e){return _((r,n,s)=>o(n,s)??void 0,{describeKind:"producer",...e})}function Be(o,e,t){let r=t?.partial??!1;return _(o,(s,a,i)=>{if(vn(s,i,r)){a.down([[g]]);return}let d=s.map((u,l)=>u!=null&&u.length>0?u.at(-1):i.prevData[l]);a.emit(e(d,i))},{describeKind:"derived",...t})}var Te=A(()=>{"use strict";G();be()});function _e(o){return{describeKind:"producer",...o}}function je(o,e){return b(t=>{let r=!1;try{for(let n of o){if(r)return;t.emit(n)}r||t.down([[c]])}catch(n){r||t.down([[h,n]])}return()=>{r=!0}},_e(e))}function wn(o){return o!=null&&typeof o.then=="function"}function Nn(o,e){let{signal:t,...r}=e??{};return b(n=>{let s=!1,a=()=>{s||(s=!0,n.down([[h,t.reason]]))};if(t?.aborted){a();return}return t?.addEventListener("abort",a,{once:!0}),Promise.resolve(o).then(i=>{s||(s=!0,t?.removeEventListener("abort",a),n.emit(i),n.down([[c]]))},i=>{s||(s=!0,t?.removeEventListener("abort",a),n.down([[h,i]]))}),()=>{s=!0,t?.removeEventListener("abort",a)}},_e(r))}function xn(o,e){let{signal:t,...r}=e??{};return b(n=>{let s=new AbortController,a=()=>s.abort(t?.reason);t?.aborted?s.abort(t.reason):t?.addEventListener("abort",a,{once:!0});let i=t??s.signal,d=!1,u=o[Symbol.asyncIterator](),l=()=>{d||i.aborted||Promise.resolve(u.next()).then(f=>{if(!(d||i.aborted)){if(f.done){n.down([[c]]);return}n.emit(f.value),l()}},f=>{!d&&!i.aborted&&n.down([[h,f]])})};return l(),()=>{d=!0,t?.removeEventListener("abort",a),s.abort(),Promise.resolve(u.return?.()).catch(()=>{})}},_e(r))}function En(o){return o!=null&&typeof o=="object"&&"cache"in o&&typeof o.subscribe=="function"}function B(o,e){if(En(o))return o;if(wn(o))return Nn(o,e);if(o!=null){let t=o;if(typeof t[Symbol.asyncIterator]=="function")return xn(o,e);if(typeof t[Symbol.iterator]=="function")return je(o,e)}return kn(o)}function kn(...o){return je(o,void 0)}var ze=A(()=>{"use strict";G();Te()});var pt={};on(pt,{audit:()=>Xn,buffer:()=>Qn,bufferCount:()=>et,bufferTime:()=>tt,catchError:()=>ft,combine:()=>Ke,combineLatest:()=>ut,concat:()=>Bn,concatMap:()=>qn,debounce:()=>Je,debounceTime:()=>lt,delay:()=>Yn,distinctUntilChanged:()=>Pn,elementAt:()=>Ln,exhaustMap:()=>$n,filter:()=>$e,find:()=>Fn,first:()=>Cn,flatMap:()=>Kn,interval:()=>st,last:()=>In,map:()=>An,merge:()=>Hn,mergeMap:()=>Ye,pairwise:()=>Vn,pausable:()=>at,race:()=>jn,reduce:()=>Rn,repeat:()=>it,rescue:()=>Ze,sample:()=>Jn,scan:()=>Mn,skip:()=>qe,switchMap:()=>zn,take:()=>Q,takeUntil:()=>Dn,takeWhile:()=>Sn,tap:()=>Gn,throttle:()=>Xe,throttleTime:()=>ct,timeout:()=>Zn,valve:()=>dt,window:()=>ot,windowCount:()=>nt,windowTime:()=>rt,withLatestFrom:()=>Un,zip:()=>Wn});module.exports=an(pt);se();G();be();Te();ze();function p(o){return{describeKind:"derived",...o}}function An(o,e,t){return _([o],(r,n)=>{let s=r[0];if(s==null||s.length===0){n.down([[g]]);return}for(let a of s)n.emit(e(a))},p(t))}function $e(o,e,t){return _([o],(r,n)=>{let s=r[0];if(s==null||s.length===0){n.down([[g]]);return}let a=!1;for(let i of s)e(i)&&(n.emit(i),a=!0);a||n.down([[g]])},p(t))}function Mn(o,e,t,r){return _([o],(n,s,a)=>{"acc"in a.store||(a.store.acc=t);let i=n[0];if(i==null||i.length===0){s.down([[g]]);return}for(let d of i)a.store.acc=e(a.store.acc,d),s.emit(a.store.acc)},{...p(r),initial:t,resetOnTeardown:!0})}function Rn(o,e,t,r){return _([o],(n,s,a)=>{if("acc"in a.store||(a.store.acc=t),a.terminalDeps[0]===!0){s.emit(a.store.acc),s.down([[c]]);return}let i=n[0];if(i==null||i.length===0){s.down([[g]]);return}for(let d of i)a.store.acc=e(a.store.acc,d)},{...p(r),completeWhenDepsComplete:!1})}function Q(o,e,t){return e<=0?_([o],(r,n,s)=>{s.store.completed||(s.store.completed=!0,n.down([[c]]))},{...p(t),completeWhenDepsComplete:!1}):_([o],(r,n,s)=>{if("taken"in s.store||(s.store.taken=0),s.store.done){n.down([[g]]);return}if(s.terminalDeps[0]===!0){s.store.done=!0,n.down([[c]]);return}let a=r[0];if(a==null||a.length===0){n.down([[g]]);return}for(let i of a)if(s.store.taken++,n.emit(i),s.store.taken>=e){s.store.done=!0,n.down([[c]]);return}},{...p(t),completeWhenDepsComplete:!1})}function qe(o,e,t){return _([o],(r,n,s)=>{"skipped"in s.store||(s.store.skipped=0);let a=r[0];if(a==null||a.length===0){n.down([[g]]);return}let i=!1;for(let d of a)s.store.skipped++,s.store.skipped<=e||(n.emit(d),i=!0);i||n.down([[g]])},p(t))}function Sn(o,e,t){return _([o],(r,n,s)=>{if(s.store.done){n.down([[g]]);return}let a=r[0];if(a==null||a.length===0){n.down([[g]]);return}for(let i of a){if(!e(i)){s.store.done=!0,n.down([[c]]);return}n.emit(i)}},{...p(t),completeWhenDepsComplete:!1})}function Dn(o,e,t){let r=t?.predicate??(a=>a[0]===m),{predicate:n,...s}=t??{};return b(a=>{let i=!1,d=o.subscribe(l=>{if(!i)for(let f of l){if(i)return;f[0]===m?a.emit(f[1]):(f[0]===c||f[0]===h)&&(i=!0,a.down([f]))}}),u=e.subscribe(l=>{if(!i)for(let f of l){if(i)return;if(r(f)){i=!0,a.down([[c]]);return}}});return()=>{d(),u()}},p(s))}function Cn(o,e){return Q(o,1,e)}function In(o,e){let{defaultValue:t,...r}=e??{},n=e!=null&&Object.hasOwn(e,"defaultValue");return _([o],(s,a,i)=>{if(i.terminalDeps[0]===!0){i.store.has?a.emit(i.store.latest):n&&a.emit(t),a.down([[c]]);return}let d=s[0];if(d==null||d.length===0){a.down([[g]]);return}i.store.latest=d.at(-1),i.store.has=!0},{...p(r),completeWhenDepsComplete:!1})}function Fn(o,e,t){return Q($e(o,e,t),1,t)}function Ln(o,e,t){return Q(qe(o,e,t),1,t)}function Gn(o,e,t){if(typeof e=="function")return _([o],(n,s)=>{let a=n[0];if(a==null||a.length===0){s.down([[g]]);return}for(let i of a)e(i),s.emit(i)},p(t));let r=e;return _([o],(n,s,a)=>{if(a.terminalDeps[0]!==void 0){a.terminalDeps[0]===!0?(r.complete?.(),s.down([[c]])):(r.error?.(a.terminalDeps[0]),s.down([[h,a.terminalDeps[0]]]));return}let i=n[0];if(i==null||i.length===0){s.down([[g]]);return}for(let d of i)r.data?.(d),s.emit(d)},{...p(t),completeWhenDepsComplete:!1})}function Pn(o,e=Object.is,t){return _([o],(r,n,s)=>{let a=r[0];if(a==null||a.length===0){n.down([[g]]);return}let i=!1;for(let d of a)s.store.hasPrev&&e(s.store.prev,d)||(s.store.prev=d,s.store.hasPrev=!0,n.emit(d),i=!0);i||n.down([[g]])},p(t))}function Vn(o,e){return _([o],(t,r,n)=>{let s=t[0];if(s==null||s.length===0){r.down([[g]]);return}let a=!1;for(let i of s)if(!n.store.hasPrev)n.store.prev=i,n.store.hasPrev=!0;else{let d=[n.store.prev,i];n.store.prev=i,r.emit(d),a=!0}a||r.down([[g]])},p(e))}function Ke(...o){let e=[...o];return Be(e,t=>t,{...p(),equals:(t,r)=>{if(t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(!Object.is(t[n],r[n]))return!1;return!0}})}function Un(o,e,t){return _([o,e],(r,n,s)=>{let a=r[0],i=r[1],d=i!=null&&i.length>0?i.at(-1):s.prevData[1];if(a!=null&&a.length>0){if(!(i!=null&&i.length>0)&&s.prevData[1]===void 0){n.down([[g]]);return}for(let u of a)n.emit([u,d])}else n.down([[g]])},p(t))}function Hn(...o){return o.length===0?b(e=>{e.down([[c]])},p()):b(e=>{let t=o.length,r=0,n=[];for(let s of o){let a=s.subscribe(i=>{for(let d of i)d[0]===m?e.emit(d[1]):d[0]===c?(r+=1,r>=t&&e.down([[c]])):d[0]===h&&e.down([d])});n.push(a)}return()=>{for(let s of n)s()}},p())}function Wn(...o){let e=o.length;return e===0?b(t=>{t.emit([]),t.down([[c]])},p()):b(t=>{let r=Array.from({length:e},()=>[]),n=e;function s(){for(;r.every(i=>i.length>0);){let i=r.map(d=>d.shift());t.emit(i)}}let a=[];for(let i=0;i<e;i++){let d=i,u=o[i].subscribe(l=>{for(let f of l)f[0]===m?(r[d].push(f[1]),s()):f[0]===c?(n-=1,(n===0||r[d].length===0)&&t.down([[c]])):f[0]===h&&t.down([f])});a.push(u)}return()=>{for(let i of a)i()}},p())}function Bn(o,e,t){return b(r=>{let n=0,s=[],a,i;return i=e.subscribe(d=>{for(let u of d)n===0?u[0]===m?s.push(u[1]):u[0]===h&&r.down([u]):u[0]===m?r.emit(u[1]):(u[0]===c||u[0]===h)&&r.down([u])}),a=o.subscribe(d=>{for(let u of d)if(n===0)if(u[0]===m)r.emit(u[1]);else if(u[0]===c){n=1;for(let l of s)r.emit(l);s.length=0}else u[0]===h&&r.down([u])}),()=>{a?.(),i?.()}},p(t))}function jn(...o){return o.length===0?b(e=>{e.down([[c]])},p()):o.length===1?_([o[0]],(e,t)=>{let r=e[0];if(r==null||r.length===0){t.down([[g]]);return}for(let n of r)t.emit(n)},p()):b(e=>{let t=null,r=[];for(let n=0;n<o.length;n++){let s=n,a=o[n].subscribe(i=>{for(let d of i){if(t!==null&&s!==t)return;d[0]===m?(t===null&&(t=s),e.emit(d[1])):(d[0]===c||d[0]===h)&&(t===null||s===t)&&e.down([d])}});r.push(a)}return()=>{for(let n of r)n()}},p())}function ee(o,e,t){let r,n=!1,s=()=>{n||(n=!0,t())};return r=o.subscribe(a=>{let i=!1,d=!1;for(let u of a)u[0]!==C&&(u[0]===m?e.emit(u[1]):u[0]===c?i=!0:u[0]===h?(d=!0,e.down([u])):(u[0]===M||u[0]===g)&&e.down([u]));d?(r?.(),r=void 0,s()):i&&s()}),()=>{r?.(),r=void 0}}function zn(o,e,t){let r,n=!1;function s(){r?.(),r=void 0}return _([o],(a,i,d)=>{if(d.terminalDeps[0]!=null&&d.terminalDeps[0]!==!0){s();return}if(d.terminalDeps[0]===!0){n=!0,r||i.down([[c]]);return}let u=a[0];if(!(u==null||u.length===0))return s(),r=ee(B(e(u[u.length-1])),i,()=>{s(),n&&i.down([[c]])}),{deactivate:()=>{s(),n=!1}}},{...p(t),completeWhenDepsComplete:!1})}function $n(o,e,t){let r,n=!1;function s(){r?.(),r=void 0}return _([o],(a,i,d)=>{if(d.terminalDeps[0]!=null&&d.terminalDeps[0]!==!0){s();return}if(d.terminalDeps[0]===!0){n=!0,r||i.down([[c]]);return}let u=a[0];if(!(u==null||u.length===0))return r===void 0?r=ee(B(e(u[0])),i,()=>{s(),n&&i.down([[c]])}):i.down([[g]]),{deactivate:()=>{s(),n=!1}}},{...p(t),completeWhenDepsComplete:!1})}function qn(o,e,t){let{maxBuffer:r,...n}=t??{},s=[],a,i=!1,d;function u(){a?.(),a=void 0}function l(){if(!d||a!==void 0)return;if(s.length===0){i&&d.down([[c]]);return}let T=s.shift();a=ee(B(e(T)),d,()=>{u(),l()})}function f(T){r&&r>0&&s.length>=r&&s.shift(),s.push(T),l()}return _([o],(T,y,N)=>{if(d=y,N.terminalDeps[0]!=null&&N.terminalDeps[0]!==!0){u(),s.length=0;return}if(N.terminalDeps[0]===!0){i=!0,l();return}let k=T[0];if(!(k==null||k.length===0)){for(let v of k)f(v);return{deactivate:()=>{u(),s.length=0,i=!1}}}},{...p(n),completeWhenDepsComplete:!1})}function Ye(o,e,t){let{concurrent:r,...n}=t??{},s=r!=null&&r>0?r:Number.POSITIVE_INFINITY,a=0,i=!1,d=new Set,u=[],l;function f(){i&&a===0&&u.length===0&&l&&l.down([[c]])}function T(v){if(!l)return;a++;let w;w=ee(B(e(v)),l,()=>{w&&d.delete(w),a--,y(),f()}),d.add(w)}function y(){for(;u.length>0&&a<s;)T(u.shift())}function N(v){a<s?T(v):u.push(v)}function k(){for(let v of d)v();d.clear(),a=0,u.length=0}return _([o],(v,w,O)=>{if(l=w,O.terminalDeps[0]!=null&&O.terminalDeps[0]!==!0){k();return}if(O.terminalDeps[0]===!0){i=!0,f();return}let x=v[0];if(!(x==null||x.length===0)){for(let R of x)N(R);return{deactivate:()=>{k(),i=!1}}}},{...p(n),completeWhenDepsComplete:!1})}var Kn=Ye;function Yn(o,e,t){return b(r=>{let n=new Set;function s(){for(let i of n)clearTimeout(i);n.clear()}let a=o.subscribe(i=>{for(let d of i)if(d[0]===m){let u=setTimeout(()=>{n.delete(u),r.emit(d[1])},e);n.add(u)}else if(d[0]===c){let u=setTimeout(()=>{n.delete(u),r.down([[c]])},e);n.add(u)}else d[0]===h&&(s(),r.down([d]))});return()=>{a(),s()}},p(t))}function Je(o,e,t){return b(r=>{let n,s;function a(){n!==void 0&&(clearTimeout(n),n=void 0)}let i=o.subscribe(d=>{for(let u of d)u[0]===m?(a(),s=u[1],n=setTimeout(()=>{n=void 0,r.emit(s)},e)):u[0]===c?(n!==void 0&&(a(),r.emit(s)),r.down([[c]])):u[0]===h&&(a(),r.down([u]))});return()=>{i(),a()}},p(t))}function Xe(o,e,t){let{leading:r,trailing:n,...s}=t??{},a=r!==!1,i=n===!0,d=e*1e6;return b(u=>{let l,f=-1/0,T,y=!1;function N(){l!==void 0&&(clearTimeout(l),l=void 0)}let k=o.subscribe(v=>{for(let w of v)if(w[0]===m){let O=w[1],x=q();if(a&&x-f>=d)f=x,u.emit(O),N(),i&&(l=setTimeout(()=>{l=void 0,y&&(f=q(),u.emit(T),y=!1)},e));else if(i&&(T=O,y=!0,l===void 0)){let R=(x-f)/1e6;l=setTimeout(()=>{l=void 0,y&&(f=q(),u.emit(T),y=!1)},Math.max(0,e-R))}}else(w[0]===c||w[0]===h)&&(N(),u.down([w]))});return()=>{k(),N()}},p(s))}function Jn(o,e,t){return b(r=>{let n,s=!1,a=!1,i=o.subscribe(u=>{if(!s)for(let l of u){if(s)return;l[0]===m?n={v:l[1]}:l[0]===h?(s=!0,r.down([l])):l[0]===c&&(a=!0,n=void 0)}}),d=e.subscribe(u=>{if(!s)for(let l of u){if(s)return;l[0]===m?n!==void 0&&!a&&r.emit(n.v):l[0]===h?(s=!0,r.down([l])):l[0]===c&&(s=!0,r.down([[c]]))}});return()=>{i(),d()}},p(t))}function Xn(o,e,t){return b(r=>{let n,s,a=!1;function i(){n!==void 0&&(clearTimeout(n),n=void 0)}let d=o.subscribe(u=>{for(let l of u)l[0]===m?(s=l[1],a=!0,i(),n=setTimeout(()=>{n=void 0,a&&(a=!1,r.emit(s))},e)):(l[0]===c||l[0]===h)&&(i(),r.down([l]))});return()=>{d(),i()}},p(t))}function Zn(o,e,t){let{with:r,...n}=t??{},s=r??new Error("timeout");return b(a=>{let i;function d(){clearTimeout(i),i=setTimeout(()=>{i=void 0,a.down([[h,s]])},e)}d();let u=o.subscribe(l=>{for(let f of l)f[0]===m?(d(),a.emit(f[1])):(f[0]===c||f[0]===h)&&(clearTimeout(i),a.down([f]))});return()=>{u(),clearTimeout(i)}},p(n))}function Qn(o,e,t){return b(r=>{let n=[],s=o.subscribe(i=>{for(let d of i)d[0]===m?n.push(d[1]):d[0]===c?(n.length>0&&r.emit([...n]),n.length=0,r.down([[c]])):d[0]===h&&r.down([d])}),a=e.subscribe(i=>{for(let d of i)d[0]===m?n.length>0&&(r.emit([...n]),n.length=0):d[0]===c?r.down([[c]]):d[0]===h&&r.down([d])});return()=>{s(),a(),n.length=0}},p(t))}function et(o,e,t){if(e<=0)throw new RangeError("bufferCount expects count > 0");return b(r=>{let n=[],s=o.subscribe(a=>{for(let i of a)i[0]===m?(n.push(i[1]),n.length>=e&&r.emit(n.splice(0,n.length))):i[0]===c?(n.length>0&&r.emit([...n]),n.length=0,r.down([[c]])):i[0]===h&&r.down([i])});return()=>{s(),n.length=0}},p(t))}function nt(o,e,t){if(e<=0)throw new RangeError("windowCount expects count > 0");return b(r=>{let n,s=0;function a(){let d=b(u=>(n=u.down.bind(u),()=>{n=void 0}),p());s=0,r.emit(d)}let i=o.subscribe(d=>{for(let u of d)u[0]===m?(n||a(),n?.([[m,u[1]]]),s+=1,s>=e&&(n?.([[c]]),n=void 0)):u[0]===c?(n?.([[c]]),n=void 0,r.down([[c]])):u[0]===h&&(n?.([u]),n=void 0,r.down([u]))});return()=>{i(),n?.([[c]]),n=void 0}},p(t))}function tt(o,e,t){return b(r=>{let n=[],s=setInterval(()=>{n.length>0&&(r.emit([...n]),n.length=0)},e),a=o.subscribe(i=>{for(let d of i)d[0]===m?n.push(d[1]):d[0]===c?(clearInterval(s),n.length>0&&r.emit([...n]),n.length=0,r.down([[c]])):d[0]===h&&(clearInterval(s),r.down([d]))});return()=>{a(),clearInterval(s),n.length=0}},p(t))}function rt(o,e,t){return b(r=>{let n;function s(){n?.([[c]]),n=void 0}function a(){let u=b(l=>(n=l.down.bind(l),()=>{n=void 0}),p());r.emit(u)}a();let i=setInterval(()=>{s(),a()},e),d=o.subscribe(u=>{for(let l of u)l[0]===m?n?.([[m,l[1]]]):l[0]===c?(clearInterval(i),s(),r.down([[c]])):l[0]===h&&(clearInterval(i),n?.([l]),s(),r.down([l]))});return()=>{d(),clearInterval(i),s()}},p(t))}function ot(o,e,t){return b(r=>{let n;function s(){n?.([[c]]),n=void 0}function a(){let u=b(l=>(n=l.down.bind(l),()=>{n=void 0}),p());r.emit(u)}let i=o.subscribe(u=>{for(let l of u)l[0]===m?(n||a(),n?.([[m,l[1]]])):l[0]===c?(s(),r.down([[c]])):l[0]===h&&(n?.([l]),n=void 0,r.down([l]))}),d=e.subscribe(u=>{for(let l of u)l[0]===m&&(s(),a())});return()=>{i(),d(),s()}},p(t))}function st(o,e){return b((t,r)=>{"n"in r.store||(r.store.n=0);let n=setInterval(()=>{t.emit(r.store.n),r.store.n=r.store.n+1},o);return()=>clearInterval(n)},p(e))}function it(o,e,t){if(e<=0)throw new RangeError("repeat expects count > 0");return b(r=>{let n=e,s,a=()=>{s?.(),s=o.subscribe(i=>{let d=!1,u=[];for(let l of i)l[0]===c?d=!0:u.push(l);u.length>0&&r.down(u),d&&(s?.(),s=void 0,n-=1,n>0?a():r.down([[c]]))})};return a(),()=>{s?.()}},p(t))}function at(o,e){return _([o],(t,r)=>{let n=t[0];if(n==null||n.length===0){r.down([[g]]);return}for(let s of n)r.emit(s)},p(e))}function Ze(o,e,t){return b(r=>{let n=o.subscribe(s=>{for(let a of s)if(a[0]===m)r.emit(a[1]);else if(a[0]===h)try{r.emit(e(a[1]))}catch(i){r.down([[h,i]])}else a[0]===c&&r.down([[c]])});return()=>{n()}},p(t))}function dt(o,e,t){return _([o,e],(r,n,s)=>{let a=r[1];if(!(a!=null&&a.length>0?a.at(-1):s.prevData[1])){n.down([[g]]);return}let d=r[0];if(d!=null&&d.length>0){for(let u of d)n.emit(u);return}if(a!=null&&a.length>0&&s.prevData[0]!==void 0){n.emit(s.prevData[0]);return}n.down([[g]])},p(t))}var ut=Ke,lt=Je,ct=Xe,ft=Ze;0&&(module.exports={audit,buffer,bufferCount,bufferTime,catchError,combine,combineLatest,concat,concatMap,debounce,debounceTime,delay,distinctUntilChanged,elementAt,exhaustMap,filter,find,first,flatMap,interval,last,map,merge,mergeMap,pairwise,pausable,race,reduce,repeat,rescue,sample,scan,skip,switchMap,take,takeUntil,takeWhile,tap,throttle,throttleTime,timeout,valve,window,windowCount,windowTime,withLatestFrom,zip});
|
|
1
|
+
"use strict";var oe=Object.defineProperty;var nt=Object.getOwnPropertyDescriptor;var rt=Object.getOwnPropertyNames;var ot=Object.prototype.hasOwnProperty;var A=(o,e)=>()=>(o&&(e=o(o=0)),e);var st=(o,e)=>{for(var n in e)oe(o,n,{get:e[n],enumerable:!0})},it=(o,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of rt(e))!ot.call(o,t)&&t!==n&&oe(o,t,{get:()=>e[t],enumerable:!(r=nt(e,t))||r.enumerable});return o};var at=o=>it(oe({},"__esModule",{value:!0}),o);function q(){return Math.trunc(performance.now()*1e6)}function ye(){return Date.now()*1e6}var se=A(()=>{"use strict"});var C,m,M,g,I,F,H,S,c,p,L,ie,dt,ae,ut,lt,de,ve,we,Ne,ue,W=A(()=>{"use strict";C=Symbol.for("graphrefly/START"),m=Symbol.for("graphrefly/DATA"),M=Symbol.for("graphrefly/DIRTY"),g=Symbol.for("graphrefly/RESOLVED"),I=Symbol.for("graphrefly/INVALIDATE"),F=Symbol.for("graphrefly/PAUSE"),H=Symbol.for("graphrefly/RESUME"),S=Symbol.for("graphrefly/TEARDOWN"),c=Symbol.for("graphrefly/COMPLETE"),p=Symbol.for("graphrefly/ERROR"),L=Object.freeze([M]),ie=Object.freeze([g]),dt=Object.freeze([I]),ae=Object.freeze([C]),ut=Object.freeze([c]),lt=Object.freeze([S]),de=Object.freeze([L]),ve=Object.freeze([ie]),we=Object.freeze([dt]),Ne=Object.freeze([ut]),ue=Object.freeze([lt])});function xe(o){o.registerCodec(ct)}var ct,Ee=A(()=>{"use strict";ct={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 K(o){if(o==null)return ft;let{type:e,id:n,...r}=o;return{type:e??"system",id:n??"",...r}}var ft,ke=A(()=>{"use strict";ft={type:"system",id:""}});function Re(){return le>0||pt}function De(){return le>0}function Se(o){le>0?ht.push(o):o()}function Y(o,e,n){if(e.length===0)return;if(e.length===1){let u=n(e[0][0]);if(u<3||!Re()){o(e);return}(u>=5?Me:u===4?Ae:Oe).push(()=>o(e));return}let r=e.length,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 d=Re();if(t>0){let u=e.slice(0,t);o(u)}if(s>t){let u=e.slice(t,s);d?Oe.push(()=>o(u)):o(u)}if(a>s){let u=e.slice(s,a);d?Ae.push(()=>o(u)):o(u)}if(r>a){let u=e.slice(a,r);d?Me.push(()=>o(u)):o(u)}}var le,pt,Oe,Ae,Me,ht,Ce=A(()=>{"use strict";le=0,pt=!1,Oe=[],Ae=[],Me=[],ht=[]});function Ie(o){o.registerMessageType(C,{tier:0,wireCrossing:!1}),o.registerMessageType(M,{tier:1,wireCrossing:!1}),o.registerMessageType(I,{tier:1,wireCrossing:!1,metaPassthrough:!1}),o.registerMessageType(F,{tier:2,wireCrossing:!1}),o.registerMessageType(H,{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(S,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var J,Fe=A(()=>{"use strict";W();J=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=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}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 G,Le=A(()=>{"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 ce(o){if(o===void 0)return null;if(typeof o=="number"){if(!Number.isFinite(o))throw new TypeError(`Cannot hash non-finite number: ${o}`);if(Number.isInteger(o)&&!Number.isSafeInteger(o))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${o}. Cross-language cid parity is not guaranteed for unsafe integers.`);return o}if(typeof o=="string"||typeof o=="boolean"||o===null)return o;if(Array.isArray(o))return o.map(ce);if(typeof o=="object"&&o!==null){let e={};for(let n of Object.keys(o).sort())e[n]=ce(o[n]);return e}return null}function bt(o){let e=gt.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,d=3144134277,u=1013904242,l=2773480762,f=1359893119,T=2600822924,y=528734635,N=1541459225,k=new Uint32Array(64),v=(O,x)=>O>>>x|O<<32-x;for(let O=0;O<t;O+=64){for(let E=0;E<16;E++)k[E]=a.getUint32(O+E*4,!1);for(let E=16;E<64;E++){let U=k[E-15],V=k[E-2],z=v(U,7)^v(U,18)^U>>>3,re=v(V,17)^v(V,19)^V>>>10;k[E]=k[E-16]+z+k[E-7]+re>>>0}let x=i,R=d,P=u,te=l,D=f,j=T,$=y,ne=N;for(let E=0;E<64;E++){let U=v(D,6)^v(D,11)^v(D,25),V=D&j^~D&$,z=ne+U+V+mt[E]+k[E]>>>0,re=v(x,2)^v(x,13)^v(x,22),et=x&R^x&P^R&P,tt=re+et>>>0;ne=$,$=j,j=D,D=te+z>>>0,te=P,P=R,R=x,x=z+tt>>>0}i=i+x>>>0,d=d+R>>>0,u=u+P>>>0,l=l+te>>>0,f=f+D>>>0,T=T+j>>>0,y=y+$>>>0,N=N+ne>>>0}let w=O=>O.toString(16).padStart(8,"0");return w(i)+w(d)+w(u)+w(l)+w(f)+w(T)+w(y)+w(N)}function fe(o){let e=ce(o??null),n=JSON.stringify(e);return bt(n).slice(0,16)}function Tt(){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 pe(o,e,n){let r=n?.id??Tt();if(o===0)return{id:r,version:0};let s=(n?.hash??fe)(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 mt,gt,Pe=A(()=>{"use strict";mt=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]),gt=new TextEncoder});function He(o){return{node:o,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function he(o){o.prevData=void 0,o.dirty=!1,o.involvedThisWave=!1,o.dataBatch.length=0,o.terminal=void 0}function X(o){return o.length===0?o:typeof o[0]=="symbol"?[o]:o}function _(o,e,n){let r=We(o)?o:[],t=typeof o=="function"?o:typeof e=="function"?e:void 0,s={};return We(o)?s=(me(e)?e:n)??{}:me(o)?s=o:s=(me(e)?e:n)??{},new Z(r,t,s)}var Ue,Ve,_t,yt,ge,Z,We,me,be=A(()=>{"use strict";Ee();ke();Ce();se();Fe();Le();W();Pe();Ue=()=>{},Ve=100;_t=(o,e,n,r)=>{n.direction==="down-in"&&o._onDepMessage(n.depIndex,e)},yt=(o,e,n,r)=>{let t=o;if(t._status==="completed"||t._status==="errored")return;let s=t._cached,a=s===void 0?[ae]:[ae,[m,s]];t._status==="dirty"&&a.push(L),Y(e,a,t._config.tierOf)},ge=new J({onMessage:_t,onSubscribe:yt});Ie(ge);xe(ge);Z=class o{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_partial;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,n,r){this._config=r.config??ge,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=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??fe;let t=r.versioning??this._config.defaultVersioning;this._versioningLevel=t,this._versioning=t!=null?pe(t,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(He);let s={};for(let[i,d]of Object.entries(r.meta??{})){let u={initial:d,name:`${r.name??"node"}:meta:${i}`,describeKind:"state",config:this._config};r.guard!=null&&(u.guard=r.guard),s[i]=new o([],void 0,u)}Object.freeze(s),this.meta=s,this._hasMeta=Object.keys(s).length>0;let a=this;this._actions={emit(i){a._emit([[m,i]])},down(i){a._emit(X(i))},up(i){a._emitUp(X(i))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,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,d=a?.version??0,u=pe(e,s,{id:i,hash:t});u.version=d,this._versioning=u,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let n=K(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=K(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:ye()}}down(e,n){let r=X(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=X(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 d=K(n);if(!this._guard(d,"observe"))throw new G({actor:d,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 d of this._deps)he(d);if(this._partial===!1){for(let d of this._deps)if(d.prevData!==void 0||d.dataBatch.length!==0||d.terminal!==void 0||d.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(d){throw this._sinkCount-=1,d}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let a=this._isTerminal;if(this._sinkCount===1&&!a)try{this._activate()}catch(d){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof s=="function")try{s()}catch{}throw d}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let i=!1;return()=>{i||(i=!0,this._sinkCount-=1,this._removeSink(e),typeof s=="function"&&s(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[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,d=!1;for(let u of a)i(u[0])>=3&&(d=!0),this._config.onMessage(this,u,{direction:"down-in",depIndex:t},this._actions);d&&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{}he(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=He(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{}}he(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,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===M){this._depDirtied(r);return}if(t===I){this._depInvalidated(r),this._emit(we);return}if(t===F||t===H){this._emit([n]);return}if(t===S){this._emit(ue);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(ve),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(Ne)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(a){this._emit([[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>Ve?(this._rerunDepth=0,this._emit([[p,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${Ve} \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"?[L,e[0]]:e;let r=!0,t=!1,s=!1,a=-1;for(let d of e){let u=n(d[0]);u<a&&(r=!1),u===3&&(t=!0),d[0]===M&&(s=!0),a=u}let i=e;if(!r){let d=e.map((u,l)=>({m:u,i:l,tier:n(u[0])}));d.sort((u,l)=>u.tier-l.tier||u.i-l.i),i=d.map(u=>u.m)}if(t&&!s&&this._status!=="dirty"){let d=0;for(;d<i.length&&n(i[d][0])===0;)d++;return d===0?[L,...i]:[...i.slice(0,d),L,...i.slice(d)]}return i}_emit(e){if(e.length===0)return;for(let i=0;i<e.length;i++){let d=e[i];if(d[0]===p&&d[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(d=>d[0]===S||d[0]===I);if(i.length===0)return;n=i}n=this._frameBatch(n);let t=null;for(let i=0;i<n.length;i++){let d=n[i],u=d[0];if(u!==F&&u!==H){t?.push(d);continue}if(d.length<2)throw new Error(`Node "${this.name}": [[${u===F?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let l=!0;if(this._pausable!==!1){let f=d[1];if(u===F)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(f),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(f))l=!1;else if(this._pauseLocks.delete(f),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let T=this._pauseBuffer;this._pauseBuffer=[],this._emit(T)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}l?t?.push(d):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]===S))for(let i of Object.keys(this.meta))try{this.meta[i]._emit(ue)}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,d=[];for(let u of s)i(u[0])===3?this._pauseBuffer.push(u):d.push(u);d.length>0&&this._dispatchOrAccumulate(d)}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,d=-1;if(this._versioning!=null&&a>1){for(let l=e.length-1;l>=0;l--)if(e[l][0]===m){d=l;break}}for(let l=0;l<e.length;l++){let f=e[l],T=f[0];if(T===m){if(f.length>=2){let y=!1;if(i&&this._cached!==void 0)try{y=this._equals(this._cached,f[1])}catch(N){t=this._wrapFnError("equals threw",N),s=l;break}if(y){r==null&&(r=e.slice(0,l)),r.push(ie),this._status="resolved";continue}this._cached=f[1],this._versioning!=null&&(d<0||l===d)&&Ge(this._versioning,f[1],this._hashFn)}this._status="settled",r?.push(f)}else if(r?.push(f),T===M)this._status="dirty";else if(T===g)this._status="resolved";else if(T===c)this._status="completed";else if(T===p)this._status="errored";else if(T===I){this._cached=void 0,this._status="dirty";let y=this._cleanup;if(typeof y=="function"){this._cleanup=void 0;try{y()}catch{}}else if(y!=null&&typeof y=="object"){let N=y.invalidate;if(typeof N=="function")try{N()}catch{}}}else T===S&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let u=s>=0?r??e.slice(0,s):r??e;return t!=null?{finalMessages:u,equalsError:t}:{finalMessages:u}}_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(De()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Se(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}Y(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);Y(this._deliverToSinks,n,this._config.tierOf)}},We=o=>Array.isArray(o),me=o=>typeof o=="object"&&o!=null&&!Array.isArray(o)});function b(o,e){return _((r,t,s)=>o(t,s)??void 0,{describeKind:"producer",...e})}function Be(o,e,n){return _(o,(t,s,a)=>{let i=t.map((d,u)=>d!=null&&d.length>0?d.at(-1):a.prevData[u]);s.emit(e(i,a))},{describeKind:"derived",...n})}var Te=A(()=>{"use strict";be()});function _e(o){return{describeKind:"producer",...o}}function je(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 vt(o){return o!=null&&typeof o.then=="function"}function wt(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 Nt(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,d=!1,u=o[Symbol.asyncIterator](),l=()=>{d||i.aborted||Promise.resolve(u.next()).then(f=>{if(!(d||i.aborted)){if(f.done){t.down([[c]]);return}t.emit(f.value),l()}},f=>{!d&&!i.aborted&&t.down([[p,f]])})};return l(),()=>{d=!0,n?.removeEventListener("abort",a),s.abort(),Promise.resolve(u.return?.()).catch(()=>{})}},_e(r))}function xt(o){return o!=null&&typeof o=="object"&&"cache"in o&&typeof o.subscribe=="function"}function B(o,e){if(xt(o))return o;if(vt(o))return wt(o,e);if(o!=null){let n=o;if(typeof n[Symbol.asyncIterator]=="function")return Nt(o,e);if(typeof n[Symbol.iterator]=="function")return je(o,e)}return Et(o)}function Et(...o){return je(o,void 0)}var $e=A(()=>{"use strict";W();Te()});var pn={};st(pn,{audit:()=>Jt,buffer:()=>Zt,bufferCount:()=>Qt,bufferTime:()=>tn,catchError:()=>fn,combine:()=>Ye,combineLatest:()=>un,concat:()=>Wt,concatMap:()=>zt,debounce:()=>Xe,debounceTime:()=>ln,delay:()=>Kt,distinctUntilChanged:()=>Gt,elementAt:()=>Ft,exhaustMap:()=>$t,filter:()=>qe,find:()=>It,first:()=>St,flatMap:()=>qt,interval:()=>on,last:()=>Ct,map:()=>Ot,merge:()=>Vt,mergeMap:()=>Je,pairwise:()=>Pt,pausable:()=>an,race:()=>Bt,reduce:()=>Mt,repeat:()=>sn,rescue:()=>Qe,sample:()=>Yt,scan:()=>At,skip:()=>Ke,switchMap:()=>jt,take:()=>Q,takeUntil:()=>Dt,takeWhile:()=>Rt,tap:()=>Lt,throttle:()=>Ze,throttleTime:()=>cn,timeout:()=>Xt,valve:()=>dn,window:()=>rn,windowCount:()=>en,windowTime:()=>nn,withLatestFrom:()=>Ut,zip:()=>Ht});module.exports=at(pn);se();W();be();Te();$e();function h(o){return{describeKind:"derived",...o}}function ze(o){return{describeKind:"derived",partial:!0,...o}}function Ot(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))}function qe(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))}function At(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 d of i)a.store.acc=e(a.store.acc,d),s.emit(a.store.acc)},{...h(r),initial:n,resetOnTeardown:!0})}function Mt(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 d of i)a.store.acc=e(a.store.acc,d)},{...h(r),completeWhenDepsComplete:!1})}function Q(o,e,n){return e<=0?_([o],(r,t,s)=>{s.store.completed||(s.store.completed=!0,t.down([[c]]))},{...h(n),completeWhenDepsComplete:!1}):_([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})}function Ke(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 d of a)s.store.skipped++,s.store.skipped<=e||(t.emit(d),i=!0);i||t.down([[g]])},h(n))}function Rt(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 Dt(o,e,n){let r=n?.predicate??(a=>a[0]===m),{predicate:t,...s}=n??{};return b(a=>{let i=!1,d=o.subscribe(l=>{if(!i)for(let f of l){if(i)return;f[0]===m?a.emit(f[1]):(f[0]===c||f[0]===p)&&(i=!0,a.down([f]))}}),u=e.subscribe(l=>{if(!i)for(let f of l){if(i)return;if(r(f)){i=!0,a.down([[c]]);return}}});return()=>{d(),u()}},h(s))}function St(o,e){return Q(o,1,e)}function Ct(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 d=s[0];if(d==null||d.length===0){a.down([[g]]);return}i.store.latest=d.at(-1),i.store.has=!0},{...h(r),completeWhenDepsComplete:!1})}function It(o,e,n){return Q(qe(o,e,n),1,n)}function Ft(o,e,n){return Q(Ke(o,e,n),1,n)}function Lt(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));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 d of i)r.data?.(d),s.emit(d)},{...h(n),completeWhenDepsComplete:!1})}function Gt(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 d of a)s.store.hasPrev&&e(s.store.prev,d)||(s.store.prev=d,s.store.hasPrev=!0,t.emit(d),i=!0);i||t.down([[g]])},h(n))}function Pt(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 d=[t.store.prev,i];t.store.prev=i,r.emit(d),a=!0}a||r.down([[g]])},h(e))}function Ye(...o){let e=[...o];return Be(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 Ut(o,e,n){return _([o,e],(r,t,s)=>{let a=r[0],i=r[1],d=i!=null&&i.length>0?i.at(-1):s.prevData[1];if(a!=null&&a.length>0){if(!(i!=null&&i.length>0)&&s.prevData[1]===void 0){t.down([[g]]);return}for(let u of a)t.emit([u,d])}else t.down([[g]])},ze(n))}function Vt(...o){return o.length===0?b(e=>{e.down([[c]])},h()):b(e=>{let n=o.length,r=0,t=[];for(let s of o){let a=s.subscribe(i=>{for(let d of i)d[0]===m?e.emit(d[1]):d[0]===c?(r+=1,r>=n&&e.down([[c]])):d[0]===p&&e.down([d])});t.push(a)}return()=>{for(let s of t)s()}},h())}function Ht(...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(d=>d.shift());n.emit(i)}}let a=[];for(let i=0;i<e;i++){let d=i,u=o[i].subscribe(l=>{for(let f of l)f[0]===m?(r[d].push(f[1]),s()):f[0]===c?(t-=1,(t===0||r[d].length===0)&&n.down([[c]])):f[0]===p&&n.down([f])});a.push(u)}return()=>{for(let i of a)i()}},h())}function Wt(o,e,n){return b(r=>{let t=0,s=[],a,i;return i=e.subscribe(d=>{for(let u of d)t===0?u[0]===m?s.push(u[1]):u[0]===p&&r.down([u]):u[0]===m?r.emit(u[1]):(u[0]===c||u[0]===p)&&r.down([u])}),a=o.subscribe(d=>{for(let u of d)if(t===0)if(u[0]===m)r.emit(u[1]);else if(u[0]===c){t=1;for(let l of s)r.emit(l);s.length=0}else u[0]===p&&r.down([u])}),()=>{a?.(),i?.()}},h(n))}function Bt(...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 d of i){if(n!==null&&s!==n)return;d[0]===m?(n===null&&(n=s),e.emit(d[1])):(d[0]===c||d[0]===p)&&(n===null||s===n)&&e.down([d])}});r.push(a)}return()=>{for(let t of r)t()}},h())}function ee(o,e,n){let r,t=!1,s=()=>{t||(t=!0,n())};return r=o.subscribe(a=>{let i=!1,d=!1;for(let u of a)u[0]!==C&&(u[0]===m?e.emit(u[1]):u[0]===c?i=!0:u[0]===p?(d=!0,e.down([u])):(u[0]===M||u[0]===g)&&e.down([u]));d?(r?.(),r=void 0,s()):i&&s()}),()=>{r?.(),r=void 0}}function jt(o,e,n){let r,t=!1;function s(){r?.(),r=void 0}return _([o],(a,i,d)=>{if(d.terminalDeps[0]!=null&&d.terminalDeps[0]!==!0){s();return}if(d.terminalDeps[0]===!0){t=!0,r||i.down([[c]]);return}let u=a[0];if(!(u==null||u.length===0))return s(),r=ee(B(e(u[u.length-1])),i,()=>{s(),t&&i.down([[c]])}),{deactivate:()=>{s(),t=!1}}},{...h(n),completeWhenDepsComplete:!1})}function $t(o,e,n){let r,t=!1;function s(){r?.(),r=void 0}return _([o],(a,i,d)=>{if(d.terminalDeps[0]!=null&&d.terminalDeps[0]!==!0){s();return}if(d.terminalDeps[0]===!0){t=!0,r||i.down([[c]]);return}let u=a[0];if(!(u==null||u.length===0))return r===void 0?r=ee(B(e(u[0])),i,()=>{s(),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,d;function u(){a?.(),a=void 0}function l(){if(!d||a!==void 0)return;if(s.length===0){i&&d.down([[c]]);return}let T=s.shift();a=ee(B(e(T)),d,()=>{u(),l()})}function f(T){r&&r>0&&s.length>=r&&s.shift(),s.push(T),l()}return _([o],(T,y,N)=>{if(d=y,N.terminalDeps[0]!=null&&N.terminalDeps[0]!==!0){u(),s.length=0;return}if(N.terminalDeps[0]===!0){i=!0,l();return}let k=T[0];if(!(k==null||k.length===0)){for(let v of k)f(v);return{deactivate:()=>{u(),s.length=0,i=!1}}}},{...h(t),completeWhenDepsComplete:!1})}function Je(o,e,n){let{concurrent:r,...t}=n??{},s=r!=null&&r>0?r:Number.POSITIVE_INFINITY,a=0,i=!1,d=new Set,u=[],l;function f(){i&&a===0&&u.length===0&&l&&l.down([[c]])}function T(v){if(!l)return;a++;let w;w=ee(B(e(v)),l,()=>{w&&d.delete(w),a--,y(),f()}),d.add(w)}function y(){for(;u.length>0&&a<s;)T(u.shift())}function N(v){a<s?T(v):u.push(v)}function k(){for(let v of d)v();d.clear(),a=0,u.length=0}return _([o],(v,w,O)=>{if(l=w,O.terminalDeps[0]!=null&&O.terminalDeps[0]!==!0){k();return}if(O.terminalDeps[0]===!0){i=!0,f();return}let x=v[0];if(!(x==null||x.length===0)){for(let R of x)N(R);return{deactivate:()=>{k(),i=!1}}}},{...h(t),completeWhenDepsComplete:!1})}var qt=Je;function Kt(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 d of i)if(d[0]===m){let u=setTimeout(()=>{t.delete(u),r.emit(d[1])},e);t.add(u)}else if(d[0]===c){let u=setTimeout(()=>{t.delete(u),r.down([[c]])},e);t.add(u)}else d[0]===p&&(s(),r.down([d]))});return()=>{a(),s()}},h(n))}function Xe(o,e,n){return b(r=>{let t,s;function a(){t!==void 0&&(clearTimeout(t),t=void 0)}let i=o.subscribe(d=>{for(let u of d)u[0]===m?(a(),s=u[1],t=setTimeout(()=>{t=void 0,r.emit(s)},e)):u[0]===c?(t!==void 0&&(a(),r.emit(s)),r.down([[c]])):u[0]===p&&(a(),r.down([u]))});return()=>{i(),a()}},h(n))}function Ze(o,e,n){let{leading:r,trailing:t,...s}=n??{},a=r!==!1,i=t===!0,d=e*1e6;return b(u=>{let l,f=-1/0,T,y=!1;function N(){l!==void 0&&(clearTimeout(l),l=void 0)}let k=o.subscribe(v=>{for(let w of v)if(w[0]===m){let O=w[1],x=q();if(a&&x-f>=d)f=x,u.emit(O),N(),i&&(l=setTimeout(()=>{l=void 0,y&&(f=q(),u.emit(T),y=!1)},e));else if(i&&(T=O,y=!0,l===void 0)){let R=(x-f)/1e6;l=setTimeout(()=>{l=void 0,y&&(f=q(),u.emit(T),y=!1)},Math.max(0,e-R))}}else(w[0]===c||w[0]===p)&&(N(),u.down([w]))});return()=>{k(),N()}},h(s))}function Yt(o,e,n){return b(r=>{let t,s=!1,a=!1,i=o.subscribe(u=>{if(!s)for(let l of u){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)}}),d=e.subscribe(u=>{if(!s)for(let l of u){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(),d()}},h(n))}function Jt(o,e,n){return b(r=>{let t,s,a=!1;function i(){t!==void 0&&(clearTimeout(t),t=void 0)}let d=o.subscribe(u=>{for(let l of u)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()=>{d(),i()}},h(n))}function Xt(o,e,n){let{with:r,...t}=n??{},s=r??new Error("timeout");return b(a=>{let i;function d(){clearTimeout(i),i=setTimeout(()=>{i=void 0,a.down([[p,s]])},e)}d();let u=o.subscribe(l=>{for(let f of l)f[0]===m?(d(),a.emit(f[1])):(f[0]===c||f[0]===p)&&(clearTimeout(i),a.down([f]))});return()=>{u(),clearTimeout(i)}},h(t))}function Zt(o,e,n){return b(r=>{let t=[],s=o.subscribe(i=>{for(let d of i)d[0]===m?t.push(d[1]):d[0]===c?(t.length>0&&r.emit([...t]),t.length=0,r.down([[c]])):d[0]===p&&r.down([d])}),a=e.subscribe(i=>{for(let d of i)d[0]===m?t.length>0&&(r.emit([...t]),t.length=0):d[0]===c?r.down([[c]]):d[0]===p&&r.down([d])});return()=>{s(),a(),t.length=0}},h(n))}function Qt(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 en(o,e,n){if(e<=0)throw new RangeError("windowCount expects count > 0");return b(r=>{let t,s=0;function a(){let d=b(u=>(t=u.down.bind(u),()=>{t=void 0}),h());s=0,r.emit(d)}let i=o.subscribe(d=>{for(let u of d)u[0]===m?(t||a(),t?.([[m,u[1]]]),s+=1,s>=e&&(t?.([[c]]),t=void 0)):u[0]===c?(t?.([[c]]),t=void 0,r.down([[c]])):u[0]===p&&(t?.([u]),t=void 0,r.down([u]))});return()=>{i(),t?.([[c]]),t=void 0}},h(n))}function tn(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 d of i)d[0]===m?t.push(d[1]):d[0]===c?(clearInterval(s),t.length>0&&r.emit([...t]),t.length=0,r.down([[c]])):d[0]===p&&(clearInterval(s),r.down([d]))});return()=>{a(),clearInterval(s),t.length=0}},h(n))}function nn(o,e,n){return b(r=>{let t;function s(){t?.([[c]]),t=void 0}function a(){let u=b(l=>(t=l.down.bind(l),()=>{t=void 0}),h());r.emit(u)}a();let i=setInterval(()=>{s(),a()},e),d=o.subscribe(u=>{for(let l of u)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()=>{d(),clearInterval(i),s()}},h(n))}function rn(o,e,n){return b(r=>{let t;function s(){t?.([[c]]),t=void 0}function a(){let u=b(l=>(t=l.down.bind(l),()=>{t=void 0}),h());r.emit(u)}let i=o.subscribe(u=>{for(let l of u)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]))}),d=e.subscribe(u=>{for(let l of u)l[0]===m&&(s(),a())});return()=>{i(),d(),s()}},h(n))}function on(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 sn(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 d=!1,u=[];for(let l of i)l[0]===c?d=!0:u.push(l);u.length>0&&r.down(u),d&&(s?.(),s=void 0,t-=1,t>0?a():r.down([[c]]))})};return a(),()=>{s?.()}},h(n))}function an(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 Qe(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 dn(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 d=r[0];if(d!=null&&d.length>0){for(let u of d)t.emit(u);return}if(a!=null&&a.length>0&&s.prevData[0]!==void 0){t.emit(s.prevData[0]);return}t.down([[g]])},ze(n))}var un=Ye,ln=Xe,cn=Ze,fn=Qe;0&&(module.exports={audit,buffer,bufferCount,bufferTime,catchError,combine,combineLatest,concat,concatMap,debounce,debounceTime,delay,distinctUntilChanged,elementAt,exhaustMap,filter,find,first,flatMap,interval,last,map,merge,mergeMap,pairwise,pausable,race,reduce,repeat,rescue,sample,scan,skip,switchMap,take,takeUntil,takeWhile,tap,throttle,throttleTime,timeout,valve,window,windowCount,windowTime,withLatestFrom,zip});
|
package/dist/extra/operators.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-
|
|
1
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-5JDE5JHE.js";import"../chunk-4VVTGLXJ.js";import"../chunk-KASHOCF5.js";import"../chunk-W4TSQ6RJ.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{E as audit,G as buffer,H as bufferCount,J as bufferTime,U as catchError,p as combine,R as combineLatest,t as concat,x as concatMap,B as debounce,S as debounceTime,A as delay,n as distinctUntilChanged,l as elementAt,w as exhaustMap,b as filter,k as find,i as first,z as flatMap,M as interval,j as last,a as map,r as merge,y as mergeMap,o as pairwise,O as pausable,u as race,d as reduce,N as repeat,P as rescue,D as sample,c as scan,f as skip,v as switchMap,e as take,h as takeUntil,g as takeWhile,m as tap,C as throttle,T as throttleTime,F as timeout,Q as valve,L as window,I as windowCount,K as windowTime,q as withLatestFrom,s as zip};
|