@graphrefly/graphrefly 0.35.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/{chunk-EUE7ELFQ.js → chunk-2C4NESZE.js} +1 -1
  2. package/dist/{chunk-PIIUJIF7.js → chunk-4EATTNAE.js} +1 -1
  3. package/dist/chunk-B4L5X2QO.js +7 -0
  4. package/dist/{chunk-YV2A2VWG.js → chunk-C5CBVOCB.js} +1 -1
  5. package/dist/{chunk-J6TGRQUP.js → chunk-CZIQ6JCE.js} +1 -1
  6. package/dist/chunk-FJ6IEMOS.js +1 -0
  7. package/dist/{chunk-T7GWBGOO.js → chunk-FMI4CWFL.js} +1 -1
  8. package/dist/{chunk-RRFOCAH6.js → chunk-G6Q3DUMJ.js} +1 -1
  9. package/dist/{chunk-CD4CB6S7.js → chunk-GDDPCDLG.js} +1 -1
  10. package/dist/{chunk-3OT7K33Q.js → chunk-GFOT6UBB.js} +1 -1
  11. package/dist/{chunk-53XJ2S6D.js → chunk-K2WYIVHM.js} +1 -1
  12. package/dist/{chunk-5XZRCS2M.js → chunk-K6ZFJ473.js} +1 -1
  13. package/dist/{chunk-E5YSBQSF.js → chunk-KTWBUJO5.js} +1 -1
  14. package/dist/{chunk-RLMYS3XZ.js → chunk-KUVDFOJH.js} +1 -1
  15. package/dist/{chunk-XMDNNSMK.js → chunk-LOQRPP4Y.js} +1 -1
  16. package/dist/{chunk-2Y3DKIZL.js → chunk-MC5LZG3U.js} +1 -1
  17. package/dist/{chunk-M5UC63ZI.js → chunk-NKKUUKPD.js} +1 -1
  18. package/dist/{chunk-GWOKTENT.js → chunk-QKBCTKH7.js} +1 -1
  19. package/dist/{chunk-YOUAVGHJ.js → chunk-QP5TH523.js} +1 -1
  20. package/dist/{chunk-T6RPUERH.js → chunk-QWVQIL3T.js} +1 -1
  21. package/dist/{chunk-6G5YD37E.js → chunk-T4U24DXX.js} +1 -1
  22. package/dist/{chunk-W2ZU226Q.js → chunk-TFK4P4CX.js} +1 -1
  23. package/dist/{chunk-PVUTRA5K.js → chunk-TLS7M7H4.js} +1 -1
  24. package/dist/{chunk-BGEY3PXH.js → chunk-U3COB5WU.js} +1 -1
  25. package/dist/{chunk-UAMWD4GG.js → chunk-UODQF4EY.js} +1 -1
  26. package/dist/{chunk-U347KVM4.js → chunk-WGST56ZH.js} +1 -1
  27. package/dist/{chunk-XINLP35X.js → chunk-WSLN4JFO.js} +1 -1
  28. package/dist/{chunk-ZGVA2SR5.js → chunk-XIJKEXWR.js} +1 -1
  29. package/dist/{chunk-JUJEPZOI.js → chunk-YVYSO5CW.js} +1 -1
  30. package/dist/compat/index.cjs +9 -9
  31. package/dist/compat/index.d.cts +6 -6
  32. package/dist/compat/index.d.ts +6 -6
  33. package/dist/compat/index.js +1 -1
  34. package/dist/compat/nestjs/index.cjs +11 -11
  35. package/dist/compat/nestjs/index.d.cts +4 -4
  36. package/dist/compat/nestjs/index.d.ts +4 -4
  37. package/dist/compat/nestjs/index.js +1 -1
  38. package/dist/compat/zustand/index.cjs +7 -7
  39. package/dist/compat/zustand/index.d.cts +2 -2
  40. package/dist/compat/zustand/index.d.ts +2 -2
  41. package/dist/compat/zustand/index.js +1 -1
  42. package/dist/extra/index.cjs +17 -17
  43. package/dist/extra/index.d.cts +3 -3
  44. package/dist/extra/index.d.ts +3 -3
  45. package/dist/extra/index.js +1 -1
  46. package/dist/extra/reactive.cjs +1 -1
  47. package/dist/extra/reactive.d.cts +1 -1
  48. package/dist/extra/reactive.d.ts +1 -1
  49. package/dist/extra/reactive.js +1 -1
  50. package/dist/graph/index.cjs +7 -7
  51. package/dist/graph/index.d.cts +3 -3
  52. package/dist/graph/index.d.ts +3 -3
  53. package/dist/graph/index.js +1 -1
  54. package/dist/{graph-kTltt95s.d.cts → graph-CaNXUc3c.d.cts} +26 -1
  55. package/dist/{graph-Cv-8x0ZI.d.ts → graph-YQXDndFy.d.ts} +26 -1
  56. package/dist/{index-KNAMYngu.d.ts → index-0qOD-421.d.ts} +2 -2
  57. package/dist/{index-CfOSES72.d.cts → index-4IwO4mH2.d.cts} +5 -5
  58. package/dist/{index-CAIhFfws.d.ts → index-9mbs_PIG.d.ts} +2 -2
  59. package/dist/{index-Bilohojo.d.ts → index-Ae6L8liv.d.ts} +2 -2
  60. package/dist/{index-BhkPzu-Z.d.cts → index-B1IcU--K.d.cts} +2 -2
  61. package/dist/{index-DzgS5uYi.d.ts → index-B46GWgk3.d.ts} +1 -1
  62. package/dist/{index-BpFwRAf9.d.cts → index-B9qJmmv3.d.cts} +1 -1
  63. package/dist/{index-CI_yjtua.d.ts → index-BCq12BqB.d.ts} +1 -1
  64. package/dist/{index-zK_mN1D-.d.cts → index-BECJ8M0T.d.cts} +2 -2
  65. package/dist/{index-DFe2Pk2u.d.ts → index-BOfHwQc1.d.ts} +1 -1
  66. package/dist/{index-hXKhbfh-.d.ts → index-BhLA9feT.d.ts} +12 -7
  67. package/dist/{index-Dp69u0ym.d.ts → index-BmLkcDlj.d.ts} +6 -6
  68. package/dist/{index-XxSeddWP.d.cts → index-BokynmA4.d.cts} +1 -1
  69. package/dist/{index-BEvsFlfH.d.ts → index-Bpzw8hx3.d.ts} +2 -2
  70. package/dist/{index-PluovH45.d.cts → index-BwtIbzSV.d.cts} +2 -2
  71. package/dist/{index-BZ1V5GzX.d.ts → index-C-pFD_FV.d.ts} +2 -2
  72. package/dist/{index-Cot94_82.d.ts → index-C0tga1_x.d.ts} +2 -2
  73. package/dist/{index-BlRVj-7Q.d.cts → index-C4N-dg5U.d.cts} +2 -2
  74. package/dist/{index-B4s70vYf.d.ts → index-CKcnuQ2c.d.ts} +2 -2
  75. package/dist/{index-D7r_vd0b.d.cts → index-CLPQyYY5.d.cts} +3 -3
  76. package/dist/{index-BuMzxRO2.d.ts → index-CRycrNfn.d.ts} +1 -1
  77. package/dist/{index-DeyzuqAi.d.cts → index-CU3z8Cel.d.cts} +2 -2
  78. package/dist/{index-DwNNufVa.d.ts → index-CUTHDZ7Q.d.ts} +3 -3
  79. package/dist/{index-CGKs5ixV.d.cts → index-C_qi0WlF.d.cts} +12 -7
  80. package/dist/{index-BBdwz2BW.d.ts → index-CajEOoAN.d.ts} +2 -2
  81. package/dist/{index-CzC0G0C3.d.cts → index-Ci358GSC.d.cts} +2 -2
  82. package/dist/{index-BkbawFkI.d.cts → index-CkN8CZlT.d.cts} +6 -6
  83. package/dist/{index-ZhKyR8co.d.cts → index-CrpjECS6.d.cts} +2 -2
  84. package/dist/{index-C40wA8zt.d.ts → index-CzIWlnPp.d.ts} +5 -5
  85. package/dist/{index-C9xF16gc.d.ts → index-D0ZxFXYl.d.ts} +2 -2
  86. package/dist/{index-BtY2QVDf.d.cts → index-D11pGlaI.d.cts} +2 -2
  87. package/dist/{index-DlccEIi3.d.ts → index-D1E1tqHT.d.ts} +1 -1
  88. package/dist/{index-Qq-G9B6g.d.cts → index-D6pwWiOc.d.cts} +2 -2
  89. package/dist/{index-BsZlbHM5.d.cts → index-D6tRNEKz.d.cts} +1 -1
  90. package/dist/{index-B3Dfl5sS.d.cts → index-DAKm44My.d.cts} +2 -2
  91. package/dist/{index-BWH17rK_.d.cts → index-DCAuN9u5.d.cts} +1 -1
  92. package/dist/{index-BF-ssbJB.d.ts → index-DPqR3wdW.d.ts} +2 -2
  93. package/dist/{index-GaW6Welt.d.cts → index-DTYIRT_v.d.cts} +2 -2
  94. package/dist/{index-DXSLMoma.d.ts → index-DXz9uwcs.d.ts} +1 -1
  95. package/dist/{index-DmtWMP0X.d.cts → index-D_DThl_J.d.cts} +1 -1
  96. package/dist/{index-BwYGLgmI.d.ts → index-D_d1erkR.d.ts} +2 -2
  97. package/dist/{index-D9qoEOj_.d.cts → index-DbWwMWiB.d.cts} +1 -1
  98. package/dist/{index-D6JRP-1_.d.cts → index-DcWbx58m.d.cts} +2 -2
  99. package/dist/{index-DzYTXMBz.d.ts → index-DfAo9WKr.d.ts} +1 -1
  100. package/dist/{index-DXZsXxtU.d.cts → index-DqtXA3yX.d.cts} +2 -2
  101. package/dist/{index-DBmBtqAN.d.ts → index-DuhOdNyg.d.ts} +2 -2
  102. package/dist/{index-DKp1CIbG.d.cts → index-e1m3ZHgc.d.cts} +1 -1
  103. package/dist/{index-DSD6xnbT.d.ts → index-fHKHdAso.d.ts} +2 -2
  104. package/dist/index.cjs +41 -41
  105. package/dist/index.d.cts +29 -29
  106. package/dist/index.d.ts +29 -29
  107. package/dist/index.js +1 -1
  108. package/dist/patterns/ai/index.cjs +19 -19
  109. package/dist/patterns/ai/index.d.cts +7 -7
  110. package/dist/patterns/ai/index.d.ts +7 -7
  111. package/dist/patterns/ai/index.js +1 -1
  112. package/dist/patterns/audit/index.cjs +7 -7
  113. package/dist/patterns/audit/index.d.cts +4 -4
  114. package/dist/patterns/audit/index.d.ts +4 -4
  115. package/dist/patterns/audit/index.js +1 -1
  116. package/dist/patterns/cqrs/index.cjs +7 -7
  117. package/dist/patterns/cqrs/index.d.cts +3 -3
  118. package/dist/patterns/cqrs/index.d.ts +3 -3
  119. package/dist/patterns/cqrs/index.js +1 -1
  120. package/dist/patterns/demo-shell/index.cjs +8 -8
  121. package/dist/patterns/demo-shell/index.d.cts +3 -3
  122. package/dist/patterns/demo-shell/index.d.ts +3 -3
  123. package/dist/patterns/demo-shell/index.js +1 -1
  124. package/dist/patterns/domain-templates/index.cjs +7 -7
  125. package/dist/patterns/domain-templates/index.d.cts +2 -2
  126. package/dist/patterns/domain-templates/index.d.ts +2 -2
  127. package/dist/patterns/domain-templates/index.js +1 -1
  128. package/dist/patterns/graphspec/index.cjs +17 -17
  129. package/dist/patterns/graphspec/index.d.cts +2 -2
  130. package/dist/patterns/graphspec/index.d.ts +2 -2
  131. package/dist/patterns/graphspec/index.js +1 -1
  132. package/dist/patterns/guarded-execution/index.cjs +7 -7
  133. package/dist/patterns/guarded-execution/index.d.cts +5 -5
  134. package/dist/patterns/guarded-execution/index.d.ts +5 -5
  135. package/dist/patterns/guarded-execution/index.js +1 -1
  136. package/dist/patterns/harness/index.cjs +10 -10
  137. package/dist/patterns/harness/index.d.cts +7 -7
  138. package/dist/patterns/harness/index.d.ts +7 -7
  139. package/dist/patterns/harness/index.js +1 -1
  140. package/dist/patterns/job-queue/index.cjs +7 -7
  141. package/dist/patterns/job-queue/index.d.cts +3 -3
  142. package/dist/patterns/job-queue/index.d.ts +3 -3
  143. package/dist/patterns/job-queue/index.js +1 -1
  144. package/dist/patterns/lens/index.cjs +7 -7
  145. package/dist/patterns/lens/index.d.cts +3 -3
  146. package/dist/patterns/lens/index.d.ts +3 -3
  147. package/dist/patterns/lens/index.js +1 -1
  148. package/dist/patterns/memory/index.cjs +7 -7
  149. package/dist/patterns/memory/index.d.cts +2 -2
  150. package/dist/patterns/memory/index.d.ts +2 -2
  151. package/dist/patterns/memory/index.js +1 -1
  152. package/dist/patterns/messaging/index.cjs +7 -7
  153. package/dist/patterns/messaging/index.d.cts +3 -3
  154. package/dist/patterns/messaging/index.d.ts +3 -3
  155. package/dist/patterns/messaging/index.js +1 -1
  156. package/dist/patterns/orchestration/index.cjs +7 -7
  157. package/dist/patterns/orchestration/index.d.cts +3 -3
  158. package/dist/patterns/orchestration/index.d.ts +3 -3
  159. package/dist/patterns/orchestration/index.js +1 -1
  160. package/dist/patterns/process/index.cjs +1 -1
  161. package/dist/patterns/process/index.d.cts +4 -4
  162. package/dist/patterns/process/index.d.ts +4 -4
  163. package/dist/patterns/process/index.js +1 -1
  164. package/dist/patterns/reactive-layout/index.cjs +8 -8
  165. package/dist/patterns/reactive-layout/index.d.cts +3 -3
  166. package/dist/patterns/reactive-layout/index.d.ts +3 -3
  167. package/dist/patterns/reactive-layout/index.js +1 -1
  168. package/dist/patterns/reduction/index.cjs +7 -7
  169. package/dist/patterns/reduction/index.d.cts +2 -2
  170. package/dist/patterns/reduction/index.d.ts +2 -2
  171. package/dist/patterns/reduction/index.js +1 -1
  172. package/dist/patterns/refine-loop/index.cjs +8 -8
  173. package/dist/patterns/refine-loop/index.d.cts +4 -4
  174. package/dist/patterns/refine-loop/index.d.ts +4 -4
  175. package/dist/patterns/refine-loop/index.js +1 -1
  176. package/dist/patterns/resilient-pipeline/index.d.cts +3 -3
  177. package/dist/patterns/resilient-pipeline/index.d.ts +3 -3
  178. package/dist/patterns/resilient-pipeline/index.js +1 -1
  179. package/dist/patterns/surface/index.cjs +10 -10
  180. package/dist/patterns/surface/index.d.cts +3 -3
  181. package/dist/patterns/surface/index.d.ts +3 -3
  182. package/dist/patterns/surface/index.js +1 -1
  183. package/dist/{pipeline-graph-B85HUrWg.d.cts → pipeline-graph-BrrYGjuZ.d.cts} +2 -2
  184. package/dist/{pipeline-graph-HOTU4UG0.d.ts → pipeline-graph-DX2Twdj-.d.ts} +2 -2
  185. package/dist/{reactive-layout-Btv0-efV.d.ts → reactive-layout-BDdngW56.d.ts} +1 -1
  186. package/dist/{reactive-layout-D9zqqaqK.d.cts → reactive-layout-DrGjuwyC.d.cts} +1 -1
  187. package/dist/{reactive-log-CgbNqksB.d.cts → reactive-log-ScpWyqny.d.cts} +11 -3
  188. package/dist/{reactive-log-ByBb8g6A.d.ts → reactive-log-jirQsxMY.d.ts} +11 -3
  189. package/dist/{topology-tree-CJsT24DP.d.ts → topology-tree-BI665P0L.d.ts} +1 -1
  190. package/dist/{topology-tree-C50l9ARE.d.cts → topology-tree-BkhmMg2a.d.cts} +1 -1
  191. package/package.json +1 -1
  192. package/dist/chunk-5KPIYVCC.js +0 -7
  193. package/dist/chunk-CUQFO6MT.js +0 -1
@@ -1,16 +1,16 @@
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 ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as externalBundle, bk as externalProducer, bm as fromCSV, bn as fromClickHouseWatch, bo as fromDrizzle, bp as fromHTTP, bq as fromHTTPPoll, br as fromHTTPStream, bs as fromKafka, bt as fromKysely, bu as fromMCP, bv as fromNATS, bw as fromNDJSON, bx as fromOTel, by as fromPrisma, bz as fromPrometheus, bA as fromPulsar, bB as fromRabbitMQ, bC as fromRedisStream, bD as fromSSE, bE as fromSqlite, bF as fromSqliteCursor, bG as fromStatsD, bH as fromSyslog, bI as fromWebSocket, bJ as fromWebSocketReconnect, bK as fromWebhook, bL as lru, bM as makeHttpError, bN as matchesCron, bO as nameToSignal, bP as ndjsonRows, bQ as parseCron, bR as parsePrometheusText, bS as parseSSEStream, bT as parseStatsD, bU as parseSyslog, bV as pubsub, bW as reactiveSink, bX as serializeError, bY as signalToName, bZ as singleFromAny, b_ as singleNodeFromAny, b$ as stratify, c0 as toCSV, c1 as toClickHouse, c2 as toFile, c3 as toHTTP, c4 as toKafka, c5 as toLoki, c6 as toMongo, c7 as toNATS, c8 as toPostgres, c9 as toPulsar, ca as toRabbitMQ, cb as toReadableStream, cc as toRedisStream, cd as toS3, ce as toSSE, cf as toSSEBytes, cg as toSqlite, ch as toTempo, ci as toWebSocket, cj as workerBridge, ck as workerSelf } from '../index-DXZsXxtU.cjs';
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 ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as externalBundle, bk as externalProducer, bm as fromCSV, bn as fromClickHouseWatch, bo as fromDrizzle, bp as fromHTTP, bq as fromHTTPPoll, br as fromHTTPStream, bs as fromKafka, bt as fromKysely, bu as fromMCP, bv as fromNATS, bw as fromNDJSON, bx as fromOTel, by as fromPrisma, bz as fromPrometheus, bA as fromPulsar, bB as fromRabbitMQ, bC as fromRedisStream, bD as fromSSE, bE as fromSqlite, bF as fromSqliteCursor, bG as fromStatsD, bH as fromSyslog, bI as fromWebSocket, bJ as fromWebSocketReconnect, bK as fromWebhook, bL as lru, bM as makeHttpError, bN as matchesCron, bO as nameToSignal, bP as ndjsonRows, bQ as parseCron, bR as parsePrometheusText, bS as parseSSEStream, bT as parseStatsD, bU as parseSyslog, bV as pubsub, bW as reactiveSink, bX as serializeError, bY as signalToName, bZ as singleFromAny, b_ as singleNodeFromAny, b$ as stratify, c0 as toCSV, c1 as toClickHouse, c2 as toFile, c3 as toHTTP, c4 as toKafka, c5 as toLoki, c6 as toMongo, c7 as toNATS, c8 as toPostgres, c9 as toPulsar, ca as toRabbitMQ, cb as toReadableStream, cc as toRedisStream, cd as toS3, ce as toSSE, cf as toSSEBytes, cg as toSqlite, ch as toTempo, ci as toWebSocket, cj as workerBridge, ck as workerSelf } from '../index-DqtXA3yX.cjs';
2
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, S as StatusValue, T as TimeoutError, i as TokenBucket, W as WithBreakerBundle, j as WithStatusBundle, k as circuitBreaker, l as constant, m as decorrelatedJitter, n as exponential, o as fallback, p as fibonacci, q as linear, r as rateLimiter, s as resolveBackoffPreset, t as retry, u as timeout, v as tokenBucket, w as withBreaker, x as withMaxAttempts, y as withStatus } from '../resilience-BWP2c7Af.cjs';
3
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-_XckYx2e.cjs';
4
4
  export { C as ContentAddressedMissError, a as ContentAddressedMode, b as ContentAddressedStorage, c as ContentAddressedStorageOptions, d as canonicalJson, e as contentAddressedStorage } from '../content-addressed-storage-4-ST1tYk.cjs';
5
5
  export { T as ToObservableOptions, t as toObservable } from '../observable-Cqty11jG.cjs';
6
6
  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, onFirstData, pairwise, pausable, race, reduce, repeat, rescue, sample, scan, skip, switchMap, take, takeUntil, takeWhile, tap, tapFirst, throttle, throttleTime, valve, window, windowCount, windowTime, withLatestFrom, zip } from './operators.cjs';
7
7
  export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.cjs';
8
- export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-CgbNqksB.cjs';
8
+ export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-ScpWyqny.cjs';
9
9
  export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-DmgeADH8.cjs';
10
10
  export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, defer, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, nodeSignal, of, reactiveCounter, replay, share, shareReplay, throwError, toArray } from './sources.cjs';
11
11
  export { StorageHandle, sortJsonValue, stableJsonString } from './storage-core.cjs';
12
12
  export { AppendCursor, AppendLoadResult, AppendLogStorageOptions, AppendLogStorageTier, BaseStorageTier, Codec, KvStorageOptions, KvStorageTier, SnapshotStorageOptions, SnapshotStorageTier, StorageBackend, appendLogStorage, dictKv, dictSnapshot, jsonCodec, jsonCodecFor, kvStorage, memoryAppendLog, memoryBackend, memoryKv, memorySnapshot, snapshotStorage } from './storage-tiers.cjs';
13
13
  import '../node-fSc-hCv8.cjs';
14
- import '../graph-kTltt95s.cjs';
14
+ import '../graph-CaNXUc3c.cjs';
15
15
  import '../meta-BGO6C7K9.cjs';
16
16
  import 'rxjs';
@@ -1,16 +1,16 @@
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 ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as externalBundle, bk as externalProducer, bm as fromCSV, bn as fromClickHouseWatch, bo as fromDrizzle, bp as fromHTTP, bq as fromHTTPPoll, br as fromHTTPStream, bs as fromKafka, bt as fromKysely, bu as fromMCP, bv as fromNATS, bw as fromNDJSON, bx as fromOTel, by as fromPrisma, bz as fromPrometheus, bA as fromPulsar, bB as fromRabbitMQ, bC as fromRedisStream, bD as fromSSE, bE as fromSqlite, bF as fromSqliteCursor, bG as fromStatsD, bH as fromSyslog, bI as fromWebSocket, bJ as fromWebSocketReconnect, bK as fromWebhook, bL as lru, bM as makeHttpError, bN as matchesCron, bO as nameToSignal, bP as ndjsonRows, bQ as parseCron, bR as parsePrometheusText, bS as parseSSEStream, bT as parseStatsD, bU as parseSyslog, bV as pubsub, bW as reactiveSink, bX as serializeError, bY as signalToName, bZ as singleFromAny, b_ as singleNodeFromAny, b$ as stratify, c0 as toCSV, c1 as toClickHouse, c2 as toFile, c3 as toHTTP, c4 as toKafka, c5 as toLoki, c6 as toMongo, c7 as toNATS, c8 as toPostgres, c9 as toPulsar, ca as toRabbitMQ, cb as toReadableStream, cc as toRedisStream, cd as toS3, ce as toSSE, cf as toSSEBytes, cg as toSqlite, ch as toTempo, ci as toWebSocket, cj as workerBridge, ck as workerSelf } from '../index-BEvsFlfH.js';
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 ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as externalBundle, bk as externalProducer, bm as fromCSV, bn as fromClickHouseWatch, bo as fromDrizzle, bp as fromHTTP, bq as fromHTTPPoll, br as fromHTTPStream, bs as fromKafka, bt as fromKysely, bu as fromMCP, bv as fromNATS, bw as fromNDJSON, bx as fromOTel, by as fromPrisma, bz as fromPrometheus, bA as fromPulsar, bB as fromRabbitMQ, bC as fromRedisStream, bD as fromSSE, bE as fromSqlite, bF as fromSqliteCursor, bG as fromStatsD, bH as fromSyslog, bI as fromWebSocket, bJ as fromWebSocketReconnect, bK as fromWebhook, bL as lru, bM as makeHttpError, bN as matchesCron, bO as nameToSignal, bP as ndjsonRows, bQ as parseCron, bR as parsePrometheusText, bS as parseSSEStream, bT as parseStatsD, bU as parseSyslog, bV as pubsub, bW as reactiveSink, bX as serializeError, bY as signalToName, bZ as singleFromAny, b_ as singleNodeFromAny, b$ as stratify, c0 as toCSV, c1 as toClickHouse, c2 as toFile, c3 as toHTTP, c4 as toKafka, c5 as toLoki, c6 as toMongo, c7 as toNATS, c8 as toPostgres, c9 as toPulsar, ca as toRabbitMQ, cb as toReadableStream, cc as toRedisStream, cd as toS3, ce as toSSE, cf as toSSEBytes, cg as toSqlite, ch as toTempo, ci as toWebSocket, cj as workerBridge, ck as workerSelf } from '../index-Bpzw8hx3.js';
2
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, S as StatusValue, T as TimeoutError, i as TokenBucket, W as WithBreakerBundle, j as WithStatusBundle, k as circuitBreaker, l as constant, m as decorrelatedJitter, n as exponential, o as fallback, p as fibonacci, q as linear, r as rateLimiter, s as resolveBackoffPreset, t as retry, u as timeout, v as tokenBucket, w as withBreaker, x as withMaxAttempts, y as withStatus } from '../resilience-Bys63Cpd.js';
3
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-CT_mApQD.js';
4
4
  export { C as ContentAddressedMissError, a as ContentAddressedMode, b as ContentAddressedStorage, c as ContentAddressedStorageOptions, d as canonicalJson, e as contentAddressedStorage } from '../content-addressed-storage-DuYMjV7o.js';
5
5
  export { T as ToObservableOptions, t as toObservable } from '../observable-EAV_rNfM.js';
6
6
  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, onFirstData, pairwise, pausable, race, reduce, repeat, rescue, sample, scan, skip, switchMap, take, takeUntil, takeWhile, tap, tapFirst, throttle, throttleTime, valve, window, windowCount, windowTime, withLatestFrom, zip } from './operators.js';
7
7
  export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.js';
8
- export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-ByBb8g6A.js';
8
+ export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-jirQsxMY.js';
9
9
  export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-CHyeCf4D.js';
10
10
  export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, defer, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, nodeSignal, of, reactiveCounter, replay, share, shareReplay, throwError, toArray } from './sources.js';
11
11
  export { StorageHandle, sortJsonValue, stableJsonString } from './storage-core.js';
12
12
  export { AppendCursor, AppendLoadResult, AppendLogStorageOptions, AppendLogStorageTier, BaseStorageTier, Codec, KvStorageOptions, KvStorageTier, SnapshotStorageOptions, SnapshotStorageTier, StorageBackend, appendLogStorage, dictKv, dictSnapshot, jsonCodec, jsonCodecFor, kvStorage, memoryAppendLog, memoryBackend, memoryKv, memorySnapshot, snapshotStorage } from './storage-tiers.js';
13
13
  import '../node-fSc-hCv8.js';
14
- import '../graph-Cv-8x0ZI.js';
14
+ import '../graph-YQXDndFy.js';
15
15
  import '../meta-CC6EPdpK.js';
16
16
  import 'rxjs';
@@ -1 +1 @@
1
- import{a as Zb,b as _b,c as hc,d as ic,e as Dc,f as Ec,g as Fc,h as Gc,i as Hc,j as Ic,k as Jc}from"../chunk-RRFOCAH6.js";import{a as bc,b as cc}from"../chunk-6SVKZ7VI.js";import{$ as Xb,A as wb,B as xb,C as yb,D as zb,E as Ab,F as Bb,G as Cb,H as Db,I as Eb,J as Fb,K as Gb,L as Hb,M as Ib,N as Jb,O as Kb,P as Lb,Q as Mb,R as Nb,S as Ob,T as Pb,U as Qb,V as Rb,W as Sb,X as Tb,Y as Ub,Z as Vb,_ as Wb,a as ca,aa as Yb,b as da,ba as gc,c as _a,d as $a,e as ab,f as bb,g as cb,h as db,i as eb,j as fb,k as gb,l as hb,m as ib,n as jb,o as kb,p as lb,q as mb,r as nb,s as ob,t as pb,u as qb,v as rb,w as sb,x as tb,y as ub,z as vb}from"../chunk-MYFR67PY.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}from"../chunk-A5HZZYRK.js";import{b as dc,c as ec,d as fc,e as nc,f as oc}from"../chunk-Q7EUZ6NN.js";import{a as Cc}from"../chunk-JUJEPZOI.js";import{a,b as _}from"../chunk-5QDBSZBV.js";import"../chunk-5KPIYVCC.js";import"../chunk-SGS4OJGS.js";import{a as m}from"../chunk-ESMPEKEV.js";import"../chunk-533RQFF6.js";import{a as rc,b as sc,c as tc,d as uc,e as vc,f as wc,g as xc,h as yc,i as zc,j as Ac,k as Bc}from"../chunk-D5RFJOZ2.js";import{a as pc,b as qc}from"../chunk-CE72X3WO.js";import{A as Ea,B as Fa,C as Ga,D as Ha,E as Ia,F as Ja,G as Ka,I as La,J as Ma,K as Na,L as Oa,M as Pa,N as Qa,O as Ra,P as Sa,Q as Ta,R as Ua,S as Va,T as Wa,U as Xa,V as Ya,W as Za,a as ea,b as fa,c as ga,d as ha,e as ia,f as ja,g as ka,h as la,i as ma,j as na,k as oa,l as pa,m as qa,n as ra,o as sa,p as ta,q as ua,r as va,s as wa,t as xa,u as ya,v as za,w as Aa,x as Ba,y as Ca,z as Da}from"../chunk-JJTF75VS.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 jc,b as kc}from"../chunk-NNKJUORL.js";import{a as lc,b as mc}from"../chunk-KGKJCHEK.js";import{a as $b,b as ac}from"../chunk-TZQPPQEQ.js";import{a as $,b as aa,c as ba}from"../chunk-RLMYS3XZ.js";import{A as W,B as X,C as Y,D as Z,a as b,b as c,c as y,d as z,e as A,f as B,g as C,h as D,i as E,j as F,k as G,l as H,m as I,n as J,o as K,p as L,q as M,r as N,s as O,t as P,u as Q,v as R,w as S,x as T,y as U,z as V}from"../chunk-MQZWA3DF.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{o as CircuitOpenError,dc as ContentAddressedMissError,d as NS_PER_MS,e as NS_PER_SEC,jc as NativeIndexBackend,lc as NativeListBackend,$ as NativeLogBackend,$b as NativeMapBackend,hc as NativePubSubBackend,s as RateLimiterOverflowError,m as ResettableTimer,v as TimeoutError,vc as appendLogStorage,Ka as audit,V as awaitSettled,La as buffer,Ma as bufferCount,Oa as bufferTime,S as cached,ec as canonicalJson,_b as cascadingCache,Za as catchError,Sb as checkpointToRedis,Rb as checkpointToS3,p as circuitBreaker,va as combine,Wa as combineLatest,za as concat,Da as concatMap,f as constant,fc as contentAddressedStorage,Hc as createTransport,_ as createWatermarkController,zb as csvRows,Ha as debounce,Xa as debounceTime,j as decorrelatedJitter,N as defer,Ga as delay,Gc as deserializeError,Ac as dictKv,Bc as dictSnapshot,cc as distill,ta as distinctUntilChanged,pa as elementAt,K as empty,y as escapeRegexChar,Ca as exhaustMap,h as exponential,da as externalBundle,ca as externalProducer,w as fallback,i as fibonacci,fa as filter,oa as find,ma as first,T as firstValueFrom,U as firstWhere,Fa as flatMap,O as forEach,I as fromAny,H as fromAsyncIter,yb as fromCSV,Cb as fromClickHouseWatch,D as fromCron,Xb as fromDrizzle,E as fromEvent,bb as fromHTTP,jb as fromHTTPPoll,ib as fromHTTPStream,F as fromIter,ub as fromKafka,Yb as fromKysely,mb as fromMCP,Fb as fromNATS,Bb as fromNDJSON,nb as fromOTel,Wb as fromPrisma,sb as fromPrometheus,G as fromPromise,Db as fromPulsar,Hb as fromRabbitMQ,C as fromRaf,wb as fromRedisStream,hb as fromSSE,Tb as fromSqlite,Ub as fromSqliteCursor,qb as fromStatsD,ob as fromSyslog,B as fromTimer,$a as fromWebSocket,lb as fromWebSocketReconnect,ab as fromWebhook,z as globToRegExp,Ra as interval,rc as jsonCodec,sc as jsonCodecFor,Y as keepalive,wc as kvStorage,na as last,g as linear,Zb as lru,gc as makeHttpError,ea as map,A as matchesAnyPattern,c as matchesCron,yc as memoryAppendLog,tc as memoryBackend,zc as memoryKv,xc as memorySnapshot,xa as merge,Ea as mergeMap,ba as mergeReactiveLogs,Ec as nameToSignal,Ab as ndjsonRows,L as never,W as nodeSignal,J as of,ra as onFirstData,ua as pairwise,b as parseCron,tb as parsePrometheusText,gb as parseSSEStream,rb as parseStatsD,pb as parseSyslog,Ta as pausable,ic as pubsub,Aa as race,t as rateLimiter,Z as reactiveCounter,kc as reactiveIndex,mc as reactiveList,aa as reactiveLog,ac as reactiveMap,_a as reactiveSink,ha as reduce,Sa as repeat,R as replay,Ua as rescue,l as resolveBackoffPreset,n as retry,Ja as sample,ga as scan,Fc as serializeError,Q as share,X as shareReplay,Dc as signalToName,nc as singleFromAny,oc as singleNodeFromAny,ja as skip,uc as snapshotStorage,pc as sortJsonValue,qc as stableJsonString,Cc as stratify,Ba as switchMap,ia as take,la as takeUntil,ka as takeWhile,qa as tap,sa as tapFirst,Ia as throttle,Ya as throttleTime,M as throwError,x as timeout,P as toArray,Kb as toCSV,Lb as toClickHouse,Jb as toFile,cb as toHTTP,vb as toKafka,Pb as toLoki,Ob as toMongo,Gb as toNATS,a as toObservable,Nb as toPostgres,Eb as toPulsar,Ib as toRabbitMQ,fb as toReadableStream,xb as toRedisStream,Mb as toS3,db as toSSE,eb as toSSEBytes,Vb as toSqlite,Qb as toTempo,kb as toWebSocket,r as tokenBucket,Va as valve,bc as verifiable,Qa as window,Na as windowCount,Pa as windowTime,q as withBreaker,wa as withLatestFrom,k as withMaxAttempts,u as withStatus,Ic as workerBridge,Jc as workerSelf,ya as zip};
1
+ import{a as Zb,b as _b,c as hc,d as ic,e as Dc,f as Ec,g as Fc,h as Gc,i as Hc,j as Ic,k as Jc}from"../chunk-G6Q3DUMJ.js";import{a as bc,b as cc}from"../chunk-6SVKZ7VI.js";import{$ as Xb,A as wb,B as xb,C as yb,D as zb,E as Ab,F as Bb,G as Cb,H as Db,I as Eb,J as Fb,K as Gb,L as Hb,M as Ib,N as Jb,O as Kb,P as Lb,Q as Mb,R as Nb,S as Ob,T as Pb,U as Qb,V as Rb,W as Sb,X as Tb,Y as Ub,Z as Vb,_ as Wb,a as ca,aa as Yb,b as da,ba as gc,c as _a,d as $a,e as ab,f as bb,g as cb,h as db,i as eb,j as fb,k as gb,l as hb,m as ib,n as jb,o as kb,p as lb,q as mb,r as nb,s as ob,t as pb,u as qb,v as rb,w as sb,x as tb,y as ub,z as vb}from"../chunk-MYFR67PY.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}from"../chunk-A5HZZYRK.js";import{b as dc,c as ec,d as fc,e as nc,f as oc}from"../chunk-Q7EUZ6NN.js";import{a as Cc}from"../chunk-YVYSO5CW.js";import{a,b as _}from"../chunk-5QDBSZBV.js";import"../chunk-B4L5X2QO.js";import"../chunk-SGS4OJGS.js";import{a as m}from"../chunk-ESMPEKEV.js";import"../chunk-533RQFF6.js";import{a as rc,b as sc,c as tc,d as uc,e as vc,f as wc,g as xc,h as yc,i as zc,j as Ac,k as Bc}from"../chunk-D5RFJOZ2.js";import{a as pc,b as qc}from"../chunk-CE72X3WO.js";import{A as Ea,B as Fa,C as Ga,D as Ha,E as Ia,F as Ja,G as Ka,I as La,J as Ma,K as Na,L as Oa,M as Pa,N as Qa,O as Ra,P as Sa,Q as Ta,R as Ua,S as Va,T as Wa,U as Xa,V as Ya,W as Za,a as ea,b as fa,c as ga,d as ha,e as ia,f as ja,g as ka,h as la,i as ma,j as na,k as oa,l as pa,m as qa,n as ra,o as sa,p as ta,q as ua,r as va,s as wa,t as xa,u as ya,v as za,w as Aa,x as Ba,y as Ca,z as Da}from"../chunk-JJTF75VS.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 jc,b as kc}from"../chunk-NNKJUORL.js";import{a as lc,b as mc}from"../chunk-KGKJCHEK.js";import{a as $b,b as ac}from"../chunk-TZQPPQEQ.js";import{a as $,b as aa,c as ba}from"../chunk-KUVDFOJH.js";import{A as W,B as X,C as Y,D as Z,a as b,b as c,c as y,d as z,e as A,f as B,g as C,h as D,i as E,j as F,k as G,l as H,m as I,n as J,o as K,p as L,q as M,r as N,s as O,t as P,u as Q,v as R,w as S,x as T,y as U,z as V}from"../chunk-MQZWA3DF.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{o as CircuitOpenError,dc as ContentAddressedMissError,d as NS_PER_MS,e as NS_PER_SEC,jc as NativeIndexBackend,lc as NativeListBackend,$ as NativeLogBackend,$b as NativeMapBackend,hc as NativePubSubBackend,s as RateLimiterOverflowError,m as ResettableTimer,v as TimeoutError,vc as appendLogStorage,Ka as audit,V as awaitSettled,La as buffer,Ma as bufferCount,Oa as bufferTime,S as cached,ec as canonicalJson,_b as cascadingCache,Za as catchError,Sb as checkpointToRedis,Rb as checkpointToS3,p as circuitBreaker,va as combine,Wa as combineLatest,za as concat,Da as concatMap,f as constant,fc as contentAddressedStorage,Hc as createTransport,_ as createWatermarkController,zb as csvRows,Ha as debounce,Xa as debounceTime,j as decorrelatedJitter,N as defer,Ga as delay,Gc as deserializeError,Ac as dictKv,Bc as dictSnapshot,cc as distill,ta as distinctUntilChanged,pa as elementAt,K as empty,y as escapeRegexChar,Ca as exhaustMap,h as exponential,da as externalBundle,ca as externalProducer,w as fallback,i as fibonacci,fa as filter,oa as find,ma as first,T as firstValueFrom,U as firstWhere,Fa as flatMap,O as forEach,I as fromAny,H as fromAsyncIter,yb as fromCSV,Cb as fromClickHouseWatch,D as fromCron,Xb as fromDrizzle,E as fromEvent,bb as fromHTTP,jb as fromHTTPPoll,ib as fromHTTPStream,F as fromIter,ub as fromKafka,Yb as fromKysely,mb as fromMCP,Fb as fromNATS,Bb as fromNDJSON,nb as fromOTel,Wb as fromPrisma,sb as fromPrometheus,G as fromPromise,Db as fromPulsar,Hb as fromRabbitMQ,C as fromRaf,wb as fromRedisStream,hb as fromSSE,Tb as fromSqlite,Ub as fromSqliteCursor,qb as fromStatsD,ob as fromSyslog,B as fromTimer,$a as fromWebSocket,lb as fromWebSocketReconnect,ab as fromWebhook,z as globToRegExp,Ra as interval,rc as jsonCodec,sc as jsonCodecFor,Y as keepalive,wc as kvStorage,na as last,g as linear,Zb as lru,gc as makeHttpError,ea as map,A as matchesAnyPattern,c as matchesCron,yc as memoryAppendLog,tc as memoryBackend,zc as memoryKv,xc as memorySnapshot,xa as merge,Ea as mergeMap,ba as mergeReactiveLogs,Ec as nameToSignal,Ab as ndjsonRows,L as never,W as nodeSignal,J as of,ra as onFirstData,ua as pairwise,b as parseCron,tb as parsePrometheusText,gb as parseSSEStream,rb as parseStatsD,pb as parseSyslog,Ta as pausable,ic as pubsub,Aa as race,t as rateLimiter,Z as reactiveCounter,kc as reactiveIndex,mc as reactiveList,aa as reactiveLog,ac as reactiveMap,_a as reactiveSink,ha as reduce,Sa as repeat,R as replay,Ua as rescue,l as resolveBackoffPreset,n as retry,Ja as sample,ga as scan,Fc as serializeError,Q as share,X as shareReplay,Dc as signalToName,nc as singleFromAny,oc as singleNodeFromAny,ja as skip,uc as snapshotStorage,pc as sortJsonValue,qc as stableJsonString,Cc as stratify,Ba as switchMap,ia as take,la as takeUntil,ka as takeWhile,qa as tap,sa as tapFirst,Ia as throttle,Ya as throttleTime,M as throwError,x as timeout,P as toArray,Kb as toCSV,Lb as toClickHouse,Jb as toFile,cb as toHTTP,vb as toKafka,Pb as toLoki,Ob as toMongo,Gb as toNATS,a as toObservable,Nb as toPostgres,Eb as toPulsar,Ib as toRabbitMQ,fb as toReadableStream,xb as toRedisStream,Mb as toS3,db as toSSE,eb as toSSEBytes,Vb as toSqlite,Qb as toTempo,kb as toWebSocket,r as tokenBucket,Va as valve,bc as verifiable,Qa as window,Na as windowCount,Pa as windowTime,q as withBreaker,wa as withLatestFrom,k as withMaxAttempts,u as withStatus,Ic as workerBridge,Jc as workerSelf,ya as zip};
@@ -1 +1 @@
1
- "use strict";var ge=Object.defineProperty;var nn=Object.getOwnPropertyDescriptor;var tn=Object.getOwnPropertyNames;var rn=Object.prototype.hasOwnProperty;var O=(r,e)=>()=>(r&&(e=r(r=0)),e);var on=(r,e)=>{for(var n in e)ge(r,n,{get:e[n],enumerable:!0})},sn=(r,e,n,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of tn(e))!rn.call(r,i)&&i!==n&&ge(r,i,{get:()=>e[i],enumerable:!(t=nn(e,i))||t.enumerable});return r};var an=r=>sn(ge({},"__esModule",{value:!0}),r);function Oe(){return j>0||ee}function Ve(){return j>0}function Ce(r){j>0?ne.push(r):r()}function K(r){j+=1;let e=!1;try{r()}catch(n){throw e=!0,n}finally{if(j-=1,j===0)if(e){if(!ee){let n=ne.splice(0);for(let t of n)try{t()}catch{}P.length=0,G.length=0,q.length=0}}else dn()}}function dn(){let r=!ee;r&&(ee=!0);let e=[],n=0;try{for(;P.length>0||G.length>0||q.length>0||r&&ne.length>0;){if(r&&ne.length>0){let o=ne.splice(0);for(let a of o)try{a()}catch(s){e.push(s)}continue}if(n+=1,n>1e3)throw P.length=0,G.length=0,q.length=0,new Error("batch drain exceeded 1000 iterations \u2014 likely a reactive cycle");let i=(P.length>0?P:G.length>0?G:q).splice(0);for(let o of i)try{o()}catch(a){e.push(a)}}}finally{r&&(ee=!1)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"batch drain: multiple callbacks threw")}function de(r,e,n){if(e.length===0)return;if(e.length===1){let u=n(e[0][0]);if(u<3||!Oe()){r(e);return}(u>=5?q:u===4?G:P).push(()=>r(e));return}let t=e.length,i=t,o=t,a=t,s=0;for(;s<t&&n(e[s][0])<3;)s++;for(i=s;s<t&&n(e[s][0])===3;)s++;for(o=s;s<t&&n(e[s][0])===4;)s++;a=s;let d=Oe();if(i>0){let u=e.slice(0,i);r(u)}if(o>i){let u=e.slice(i,o);d?P.push(()=>r(u)):r(u)}if(a>o){let u=e.slice(o,a);d?G.push(()=>r(u)):r(u)}if(t>a){let u=e.slice(a,t);d?q.push(()=>r(u)):r(u)}}var j,ee,P,G,q,ne,Y=O(()=>{"use strict";j=0,ee=!1,P=[],G=[],q=[],ne=[]});var te,k,R,I,H,B,re,z,D,N,J,ye,un,_e,ln,cn,ve,Ie,De,Le,Te,U=O(()=>{"use strict";te=Symbol.for("graphrefly/START"),k=Symbol.for("graphrefly/DATA"),R=Symbol.for("graphrefly/DIRTY"),I=Symbol.for("graphrefly/RESOLVED"),H=Symbol.for("graphrefly/INVALIDATE"),B=Symbol.for("graphrefly/PAUSE"),re=Symbol.for("graphrefly/RESUME"),z=Symbol.for("graphrefly/TEARDOWN"),D=Symbol.for("graphrefly/COMPLETE"),N=Symbol.for("graphrefly/ERROR"),J=Object.freeze([R]),ye=Object.freeze([I]),un=Object.freeze([H]),_e=Object.freeze([te]),ln=Object.freeze([D]),cn=Object.freeze([z]),ve=Object.freeze([J]),Ie=Object.freeze([ye]),De=Object.freeze([un]),Le=Object.freeze([ln]),Te=Object.freeze([cn])});function Ke(r){r.registerCodec(fn)}var fn,ze=O(()=>{"use strict";fn={name:"json",version:1,contentType:"application/json",encode(r){let e=JSON.stringify(r);return new TextEncoder().encode(e)},decode(r,e){let n=new TextDecoder().decode(r);return JSON.parse(n)}}});function ue(r){if(r==null)return hn;let{type:e,id:n,...t}=r;return{type:e??"system",id:n??"",...t}}var hn,Fe=O(()=>{"use strict";hn={type:"system",id:""}});function ie(){return Math.trunc(performance.now()*1e6)}function Pe(){return Date.now()*1e6}var we=O(()=>{"use strict"});function Ge(r){r.registerMessageType(te,{tier:0,wireCrossing:!1}),r.registerMessageType(R,{tier:1,wireCrossing:!1}),r.registerMessageType(H,{tier:1,wireCrossing:!1,metaPassthrough:!1}),r.registerMessageType(B,{tier:2,wireCrossing:!1}),r.registerMessageType(re,{tier:2,wireCrossing:!1}),r.registerMessageType(k,{tier:3,wireCrossing:!0}),r.registerMessageType(I,{tier:3,wireCrossing:!0}),r.registerMessageType(D,{tier:4,wireCrossing:!0,metaPassthrough:!1}),r.registerMessageType(N,{tier:4,wireCrossing:!0,metaPassthrough:!1}),r.registerMessageType(z,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var le,He=O(()=>{"use strict";U();le=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_rigorRecorder;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=n=>{let t=this._messageTypes.get(n);return t!=null?t.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}get rigorRecorder(){return this._rigorRecorder}set rigorRecorder(e){this._rigorRecorder=e}registerMessageType(e,n){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:n.tier,wireCrossing:n.wireCrossing??n.tier>=3,metaPassthrough:n.metaPassthrough??!0}),this}messageTier(e){let n=this._messageTypes.get(e);return n!=null?n.tier:1}isWireCrossing(e){let n=this._messageTypes.get(e);return n!=null?n.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let n=this._messageTypes.get(e);return n!=null?n.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var X,Be=O(()=>{"use strict";X=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 xe(r){if(r===void 0)return null;if(typeof r=="number"){if(!Number.isFinite(r))throw new TypeError(`Cannot hash non-finite number: ${r}`);if(Number.isInteger(r)&&!Number.isSafeInteger(r))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${r}. Cross-language cid parity is not guaranteed for unsafe integers.`);return r}if(typeof r=="string"||typeof r=="boolean"||r===null)return r;if(Array.isArray(r))return r.map(xe);if(typeof r=="object"&&r!==null){let e={};for(let n of Object.keys(r).sort())e[n]=xe(r[n]);return e}return null}function bn(r){let e=mn.encode(r),n=e.length,t=n*8,i=n+9+63&-64,o=new Uint8Array(i);o.set(e),o[n]=128;let a=new DataView(o.buffer);a.setUint32(i-4,t>>>0,!1),a.setUint32(i-8,Math.floor(t/4294967296)>>>0,!1);let s=1779033703,d=3144134277,u=1013904242,c=2773480762,p=1359893119,h=2600822924,f=528734635,m=1541459225,y=new Uint32Array(64),w=(E,M)=>E>>>M|E<<32-M;for(let E=0;E<i;E+=64){for(let g=0;g<16;g++)y[g]=a.getUint32(E+g*4,!1);for(let g=16;g<64;g++){let x=y[g-15],A=y[g-2],S=w(x,7)^w(x,18)^x>>>3,Q=w(A,17)^w(A,19)^A>>>10;y[g]=y[g-16]+S+y[g-7]+Q>>>0}let M=s,V=d,C=u,W=c,l=p,b=h,v=f,T=m;for(let g=0;g<64;g++){let x=w(l,6)^w(l,11)^w(l,25),A=l&b^~l&v,S=T+x+A+pn[g]+y[g]>>>0,Q=w(M,2)^w(M,13)^w(M,22),F=M&V^M&C^V&C,en=Q+F>>>0;T=v,v=b,b=l,l=W+S>>>0,W=C,C=V,V=M,M=S+en>>>0}s=s+M>>>0,d=d+V>>>0,u=u+C>>>0,c=c+W>>>0,p=p+l>>>0,h=h+b>>>0,f=f+v>>>0,m=m+T>>>0}let _=E=>E.toString(16).padStart(8,"0");return _(s)+_(d)+_(u)+_(c)+_(p)+_(h)+_(f)+_(m)}function ke(r){let e=xe(r??null),n=JSON.stringify(e);return bn(n).slice(0,16)}function gn(){let r=globalThis.crypto;if(r?.randomUUID)return r.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 Ne(r,e,n){let t=n?.id??gn();if(r===0)return{id:t,version:0};let o=(n?.hash??ke)(e);return{id:t,version:0,cid:o,prev:null}}function Ue(r,e,n){r.version+=1,"cid"in r&&(r.prev=r.cid,r.cid=n(e))}var pn,mn,$e=O(()=>{"use strict";pn=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]),mn=new TextEncoder});function qe(r){return{node:r,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function Me(r){r.prevData=void 0,r.dirty=!1,r.involvedThisWave=!1,r.dataBatch.length=0,r.terminal=void 0}function ce(r){return r.length===0?r:typeof r[0]=="symbol"?[r]:r}function oe(r,e,n){let t=Ye(r)?r:[],i=typeof r=="function"?r:typeof e=="function"?e:void 0,o={};return Ye(r)?o=(Ee(e)?e:n)??{}:Ee(r)?o=r:o=(Ee(e)?e:n)??{},new fe(t,i,o)}var We,je,yn,_n,Ae,fe,Ye,Ee,Re=O(()=>{"use strict";ze();Fe();Y();we();He();Be();U();$e();We=()=>{},je=100;yn=(r,e,n,t)=>{n.direction==="down-in"&&r._onDepMessage(n.depIndex,e)},_n=(r,e,n,t)=>{let i=r;if(i._status==="completed"||i._status==="errored")return;let o=i._cached,a=o===void 0?[_e]:[_e,[k,o]];i._status==="dirty"&&a.push(J),de(e,a,i._config.tierOf)},Ae=new le({onMessage:yn,onSubscribe:_n});Ge(Ae);Ke(Ae);fe=class r{_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,t){this._config=t.config??Ae,this._config.onMessage,this._optsName=t.name,this._describeKind=t.describeKind,this._equals=t.equals??Object.is,this._resubscribable=t.resubscribable??!1,this._resetOnTeardown=t.resetOnTeardown??!1,this._autoComplete=t.completeWhenDepsComplete??!0,this._autoError=t.errorWhenDepsError??!0,this._pausable=t.pausable??!0,this._guard=t.guard,this._fn=n,this._partial=t.partial??!1,this._cached=t.initial!==void 0?t.initial:void 0,this._status=e.length===0&&n==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=t.versioningHash??this._config.defaultHashFn??ke;let i=t.versioning??this._config.defaultVersioning;this._versioningLevel=i,this._versioning=i!=null?Ne(i,this._cached===void 0?void 0:this._cached,{id:t.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(qe);let o={};for(let[s,d]of Object.entries(t.meta??{})){let u={initial:d,name:`${t.name??"node"}:meta:${s}`,describeKind:"state",config:this._config};t.guard!=null&&(u.guard=t.guard),o[s]=new r([],void 0,u)}Object.freeze(o),this.meta=o,this._hasMeta=Object.keys(o).length>0;let a=this;this._actions={emit(s){a._emit([[k,s]])},down(s){a._emit(ce(s))},up(s){a._emitUp(ce(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,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 t=this._versioningLevel;if(t!=null&&e<=t)return;let i=n?.hash??this._hashFn;i!==this._hashFn&&(this._hashFn=i);let o=this._cached===void 0?void 0:this._cached,a=this._versioning,s=a?.id??n?.id,d=a?.version??0,u=Ne(e,o,{id:s,hash:i});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=ue(e);if(this._guard!=null&&!this._guard(n,"observe"))return!1;if(this._extraGuards!=null){for(let t of this._extraGuards)if(!t(n,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let n=this._guard!=null||this._extraGuards!=null,t=e?.actor!=null;if(!n&&!t)return;let i=ue(e?.actor),o=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(i,o))throw new X({actor:i,action:o,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(i,o))throw new X({actor:i,action:o,nodeName:this.name})}this._lastMutation={actor:i,timestamp_ns:Pe()}}down(e,n){let t=ce(e);t.length!==0&&(this._checkGuard(n),this._emit(t))}emit(e,n){this._checkGuard(n),this._emit([[k,e]])}up(e,n){if(this._deps.length===0)return;let t=ce(e);if(t.length===0)return;this._checkGuard(n);let i=n??{internal:!0};this._validateUpTiers(t);for(let o of this._deps)o.node.up?.(t,i)}_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 t of e){let i=n(t[0]);if(i===3||i===4)throw new Error(`Node "${this.name}": tier-${i} 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=ue(n);if(!this._guard(d,"observe"))throw new X({actor:d,action:"observe",nodeName:this.name})}let i=this._isTerminal&&this._resubscribable;if(i){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)Me(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 o;try{o=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:i},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 o=="function")try{o()}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 o=="function"&&o(),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 t=0;t<e;t++){let i=t,o=this._deps[t];o.unsub=We,o.unsub=o.node.subscribe(a=>{if(o.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:i},this._actions);d&&this._maybeRunFnOnSettlement()}),n++}}catch(t){this._deps[n].unsub=null;for(let i=0;i<n;i++){let o=this._deps[i];if(o.unsub!=null){let a=o.unsub;o.unsub=null;try{a()}catch{}Me(o)}}throw this._dirtyDepCount=0,t}}_addDep(e){for(let i=0;i<this._deps.length;i++)if(this._deps[i].node===e)return i;let n=this._deps.length,t=qe(e);if(this._deps.push(t),this._sinks==null)return n;t.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(ve),t.unsub=We;try{t.unsub=e.subscribe(i=>{if(t.unsub===null)return;let o=this._config.tierOf,a=!1;for(let s of i)o(s[0])>=3&&(a=!0),this._config.onMessage(this,s,{direction:"down-in",depIndex:n},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(i){throw t.unsub=null,this._deps.pop(),this._dirtyDepCount--,i}return n}_deactivate(e=!1){let n=this._cleanup;if(this._cleanup=void 0,typeof n=="function")try{n()}catch(t){this._emit([[N,this._wrapFnError("cleanup threw",t)]])}else if(n!=null&&typeof n=="object"){let t=n.deactivate;if(typeof t=="function")try{t()}catch(i){this._emit([[N,this._wrapFnError("cleanup.deactivate threw",i)]])}}for(let t of this._deps){if(t.unsub!=null){let i=t.unsub;t.unsub=null;try{i()}catch{}}Me(t)}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 t=this._deps[e],i=n[0];if(this._inspectorHooks!=null){let o={kind:"dep_message",depIndex:e,message:n};for(let a of this._inspectorHooks)a(o)}if(i!==te){if(i===R){this._depDirtied(t);return}if(i===H){if(this._depInvalidated(t),this._cached===void 0)return;this._emit(De);return}if(i===B||i===re){this._emit([n]);return}if(i===z){this._emit(Te);return}if(i===k)this._depSettledAsData(t,n[1]);else if(i===I)this._depSettledAsResolved(t);else if(i===D)this._depSettledAsTerminal(t,!0);else if(i===N)this._depSettledAsTerminal(t,n[1]);else{this._emit([n]);return}if(!this._fn){(i===k||i===I)&&this._emit([n]),(i===D||i===N)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(ve))}_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(Ie),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([[N,e.terminal]]);return}this._autoComplete&&this._deps.every(n=>n.terminal!==void 0)&&this._emit(Le)}_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([[N,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([[N,this._wrapFnError("cleanup.beforeRun threw",s)]]);return}}}let n=this._deps.map(a=>a.involvedThisWave?a.dataBatch.length>0?[...a.dataBatch]:[]:void 0),t=this._deps.map(a=>a.prevData);for(let a=0;a<this._deps.length;a++){let s=n[a];s!=null&&s.length>0&&(this._deps[a].prevData=s[s.length-1])}let i=this._deps.map(a=>a.terminal),o={prevData:t,terminalDeps:i,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let a={kind:"run",batchData:n,prevData:t};for(let s of this._inspectorHooks)s(a)}this._isExecutingFn=!0;try{let a=this._fn(n,this._actions,o);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([[N,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>je?(this._rerunDepth=0,this._emit([[N,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${je} \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 t=n instanceof Error?n.message:String(n);return new Error(`Node "${this.name}": ${e}: ${t}`,{cause:n})}_frameBatch(e){let n=this._config.tierOf;if(e.length===1)return n(e[0][0])===3&&this._status!=="dirty"?[J,e[0]]:e;let t=!0,i=!1,o=!1,a=-1;for(let d of e){let u=n(d[0]);u<a&&(t=!1),u===3&&(i=!0),d[0]===R&&(o=!0),a=u}let s=e;if(!t){let d=e.map((u,c)=>({m:u,i:c,tier:n(u[0])}));d.sort((u,c)=>u.tier-c.tier||u.i-c.i),s=d.map(u=>u.m)}if(i&&!o&&this._status!=="dirty"){let d=0;for(;d<s.length&&n(s[d][0])===0;)d++;return d===0?[J,...s]:[...s.slice(0,d),J,...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]===N&&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 s=e.filter(d=>d[0]===z||d[0]===H);if(s.length===0)return;n=s}n=this._frameBatch(n);let i=null;for(let s=0;s<n.length;s++){let d=n[s],u=d[0];if(u!==B&&u!==re){i?.push(d);continue}if(d.length<2)throw new Error(`Node "${this.name}": [[${u===B?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let c=!0;if(this._pausable!==!1){let p=d[1];if(u===B)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(p),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(p))c=!1;else if(this._pauseLocks.delete(p),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let h=this._pauseBuffer;this._pauseBuffer=[],this._emit(h)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}c?i?.push(d):i==null&&(i=n.slice(0,s))}if(i!=null){if(i.length===0)return;n=i}if(this._hasMeta&&n.some(s=>s[0]===z))for(let s of Object.keys(this.meta))try{this.meta[s]._emit(Te)}catch{}let{finalMessages:o,equalsError:a}=this._updateState(n);if(o.length>0&&this._config.inspectorEnabled){let s=this._config.globalInspector;if(s!=null)try{s({kind:"emit",node:this,messages:o})}catch{}}if(o.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let s=this._config.tierOf,d=[];for(let u of o)s(u[0])===3?this._pauseBuffer.push(u):d.push(u);d.length>0&&this._dispatchOrAccumulate(d)}else this._dispatchOrAccumulate(o);a!=null&&this._emit([[N,a]])}_updateState(e){let n=this._config.tierOf,t,i,o=-1,a=0;for(let c of e)n(c[0])===3&&a++;let s=a<=1,d=-1;if(this._versioning!=null&&a>1){for(let c=e.length-1;c>=0;c--)if(e[c][0]===k){d=c;break}}for(let c=0;c<e.length;c++){let p=e[c],h=p[0];if(h===k){if(p.length>=2){let f=!1;if(s&&this._cached!==void 0)try{f=this._equals(this._cached,p[1])}catch(m){i=this._wrapFnError("equals threw",m),o=c;break}if(f){t==null&&(t=e.slice(0,c)),t.push(ye),this._status="resolved";continue}this._cached=p[1],this._versioning!=null&&(d<0||c===d)&&Ue(this._versioning,p[1],this._hashFn)}this._status="settled",t?.push(p)}else if(t?.push(p),h===R)this._status="dirty";else if(h===I)this._status="resolved";else if(h===D){this._status="completed";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(h===N){this._status="errored";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(h===H){if(this._cached!==void 0){let m=this._config.rigorRecorder;if(m!=null)try{m.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let f=this._cleanup;if(typeof f=="function"){this._cleanup=void 0;try{f()}catch{}}else if(f!=null&&typeof f=="object"){let m=f.invalidate;if(typeof m=="function")try{m()}catch{}}}else h===z&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let u=o>=0?t??e.slice(0,o):t??e;return i!=null?{finalMessages:u,equalsError:i}:{finalMessages:u}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let n=[...this._sinks];for(let t of n)t(e)};_dispatchOrAccumulate(e){if(Ve()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Ce(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}de(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);de(this._deliverToSinks,n,this._config.tierOf)}},Ye=r=>Array.isArray(r),Ee=r=>typeof r=="object"&&r!=null&&!Array.isArray(r)});function L(r,e){return oe([],{...e,initial:r})}function $(r,e,n){return oe(r,(i,o,a)=>{let s=i.map((d,u)=>d!=null&&d.length>0?d.at(-1):a.prevData[u]);o.emit(e(s,a))},{describeKind:"derived",...n})}var se=O(()=>{"use strict";Re()});function Ze(r){return r.subscribe(()=>{})}var Qe=O(()=>{"use strict"});var An={};on(An,{NativeIndexBackend:()=>he,NativeListBackend:()=>pe,NativeLogBackend:()=>me,NativeMapBackend:()=>be,mergeReactiveLogs:()=>Mn,reactiveIndex:()=>wn,reactiveList:()=>xn,reactiveLog:()=>Nn,reactiveMap:()=>En});module.exports=an(An);Y();U();se();function Je(r,e){if(r===e)return 0;let n=typeof r;if(n===typeof e&&(n==="number"||n==="string"||n==="boolean"||n==="bigint")){let i=r,o=e;return i<o?-1:i>o?1:0}return String(r).localeCompare(String(e))}function vn(r,e){let n=Je(r[0],e[0]);return n!==0?n:Je(r[1],e[1])}function Xe(r){return[r.secondary,r.primary]}function Z(r,e){let n=Xe(e),t=0,i=r.length;for(;t<i;){let o=t+i>>1;vn(n,Xe(r[o]))>0?t=o+1:i=o}return t}var he=class{_version=0;_buf=[];_byPrimary=new Map;get version(){return this._version}get size(){return this._buf.length}has(e){return this._byPrimary.has(e)}get(e){return this._byPrimary.get(e)?.value}upsert(e,n,t,i){let o=this._byPrimary.get(e),a={primary:e,secondary:n,value:t};if(o!==void 0&&i?.equals?.(o,a))return!1;if(o!==void 0){let d=Z(this._buf,o);this._buf.splice(d,1)}let s=Z(this._buf,a);return this._buf.splice(s,0,a),this._byPrimary.set(e,a),this._version+=1,o===void 0}upsertMany(e,n){let t=0;try{for(let i of e){let o=this._byPrimary.get(i.primary),a={primary:i.primary,secondary:i.secondary,value:i.value};if(o!==void 0&&n?.equals?.(o,a))continue;if(o!==void 0){let d=Z(this._buf,o);this._buf.splice(d,1)}let s=Z(this._buf,a);this._buf.splice(s,0,a),this._byPrimary.set(i.primary,a),t+=1}}finally{t>0&&(this._version+=1)}return t}delete(e){let n=this._byPrimary.get(e);if(n===void 0)return!1;let t=Z(this._buf,n);return this._buf.splice(t,1),this._byPrimary.delete(e),this._version+=1,!0}deleteMany(e){let n=0;try{for(let t of e){let i=this._byPrimary.get(t);if(i===void 0)continue;let o=Z(this._buf,i);this._buf.splice(o,1),this._byPrimary.delete(t),n+=1}}finally{n>0&&(this._version+=1)}return n}clear(){let e=this._buf.length;return e===0?0:(this._buf.length=0,this._byPrimary.clear(),this._version+=1,e)}toArray(){return[...this._buf]}toPrimaryMap(){let e=new Map;for(let n of this._buf)e.set(n.primary,n.value);return e}};function Tn(r){return r.subscribe(()=>{})}function wn(r={}){let{name:e,versioning:n,equals:t,backend:i}=r,o=i??new he;function a(f){return f?.equals!==void 0||t===void 0?f:{...f,equals:t}}let s=L([],{name:e,describeKind:"state",equals:(f,m)=>f===m,...n!=null?{versioning:n}:{}}),d=$([s],([f])=>{let m=f,y=new Map;for(let w of m)y.set(w.primary,w.value);return y},{initial:o.toPrimaryMap(),describeKind:"derived"}),u=Tn(d),c=!1;function p(){let f=o.toArray();K(()=>{s.down([[R]]),s.down([[k,f]])})}function h(f){let m=o.version;try{return f()}finally{o.version!==m&&p()}}return{ordered:s,byPrimary:d,has(f){return o.has(f)},get(f){return o.get(f)},get size(){return o.size},upsert(f,m,y,w){return h(()=>o.upsert(f,m,y,a(w)))},upsertMany(f,m){let y=[...f];y.length!==0&&h(()=>o.upsertMany(y,a(m)))},delete(f){h(()=>o.delete(f))},deleteMany(f){let m=[...f];m.length!==0&&h(()=>o.deleteMany(m))},clear(){h(()=>o.clear())},dispose(){c||(c=!0,u())}}}Y();U();se();var pe=class{_version=0;_buf;constructor(e){this._buf=e?[...e]:[]}get version(){return this._version}get size(){return this._buf.length}at(e){if(!Number.isInteger(e))return;let n=e>=0?e:this._buf.length+e;if(!(n<0||n>=this._buf.length))return this._buf[n]}append(e){this._buf.push(e),this._version+=1}appendMany(e){if(e.length===0)return;let n=this._buf.length;this._buf.length=n+e.length;for(let t=0;t<e.length;t++)this._buf[n+t]=e[t];this._version+=1}insert(e,n){if(!Number.isInteger(e)||e<0||e>this._buf.length)throw new RangeError(`insert: index ${e} out of range [0, ${this._buf.length}]`);this._buf.splice(e,0,n),this._version+=1}insertMany(e,n){if(!Number.isInteger(e)||e<0||e>this._buf.length)throw new RangeError(`insertMany: index ${e} out of range [0, ${this._buf.length}]`);n.length!==0&&(this._buf.splice(e,0,...n),this._version+=1)}pop(e){if(this._buf.length===0)throw new RangeError("pop from empty list");if(!Number.isInteger(e))throw new RangeError(`pop: index ${e} must be an integer`);let n=e>=0?e:this._buf.length+e;if(n<0||n>=this._buf.length)throw new RangeError(`pop: index ${e} out of range`);let[t]=this._buf.splice(n,1);return this._version+=1,t}clear(){let e=this._buf.length;return e===0?0:(this._buf.length=0,this._version+=1,e)}toArray(){return[...this._buf]}};function xn(r,e={}){let{name:n,versioning:t,backend:i}=e,o=i??new pe(r),a=L(o.toArray(),{name:n,describeKind:"state",equals:(u,c)=>u===c,...t!=null?{versioning:t}:{}});function s(){let u=o.toArray();K(()=>{a.down([[R]]),a.down([[k,u]])})}function d(u){let c=o.version;try{return u()}finally{o.version!==c&&s()}}return{items:a,get size(){return o.size},at(u){return o.at(u)},append(u){d(()=>o.append(u))},appendMany(u){d(()=>o.appendMany(u))},insert(u,c){d(()=>o.insert(u,c))},insertMany(u,c){d(()=>o.insertMany(u,c))},pop(u=-1){return d(()=>o.pop(u))},clear(){d(()=>o.clear())},dispose(){}}}Y();U();Re();se();Qe();var me=class{_version=0;_maxSize;_buf;_head=0;_size=0;constructor(e,n){if(n!==void 0&&n<1)throw new RangeError("maxSize must be >= 1");if(this._maxSize=n,n!==void 0){if(this._buf=new Array(n),e&&e.length>0){let t=Math.min(e.length,n),i=e.length-t;for(let o=0;o<t;o++)this._buf[o]=e[i+o];this._size=t}}else this._buf=e?[...e]:[],this._size=this._buf.length}get version(){return this._version}get size(){return this._size}at(e){if(!Number.isInteger(e))return;let n=e>=0?e:this._size+e;if(!(n<0||n>=this._size))return this._maxSize!==void 0?this._buf[(this._head+n)%this._maxSize]:this._buf[n]}append(e){this._rawAppend(e),this._version+=1}appendMany(e){if(e.length===0)return;let n=this._maxSize!==void 0&&e.length>this._maxSize?e.length-this._maxSize:0;for(let t=n;t<e.length;t++)this._rawAppend(e[t]);this._version+=1}clear(){if(this._size===0)return 0;let e=this._size;if(this._maxSize===void 0)this._buf.length=0;else for(let n=0;n<e;n++)this._buf[(this._head+n)%this._maxSize]=void 0;return this._head=0,this._size=0,this._version+=1,e}trimHead(e){if(!Number.isInteger(e)||e<0)throw new RangeError(`trimHead: n must be a non-negative integer (got ${e})`);if(e===0||this._size===0)return 0;let n=Math.min(e,this._size);if(this._maxSize===void 0)this._buf.splice(0,n);else{for(let t=0;t<n;t++)this._buf[(this._head+t)%this._maxSize]=void 0;this._head=(this._head+n)%this._maxSize}return this._size-=n,this._version+=1,n}slice(e,n){if(!Number.isInteger(e)||e<0)throw new RangeError(`slice: start must be a non-negative integer (got ${e})`);if(n!==void 0&&(!Number.isInteger(n)||n<0))throw new RangeError(`slice: stop must be a non-negative integer or undefined (got ${n})`);let t=n===void 0?this._size:Math.min(Math.max(n,0),this._size),i=Math.min(e,this._size);if(i>=t)return[];let o=t-i;if(this._maxSize===void 0)return this._buf.slice(i,t);let a=new Array(o);for(let s=0;s<o;s++)a[s]=this._buf[(this._head+i+s)%this._maxSize];return a}tail(e){if(!Number.isInteger(e)||e<0)throw new RangeError(`tail: n must be a non-negative integer (got ${e})`);if(e===0||this._size===0)return[];let n=Math.min(e,this._size);return this.slice(this._size-n,this._size)}toArray(){if(this._maxSize===void 0)return[...this._buf];let e=new Array(this._size);for(let n=0;n<this._size;n++)e[n]=this._buf[(this._head+n)%this._maxSize];return e}snapshot(){return this.toArray()}restore(e){if(this._maxSize===void 0){this._buf.length=0;for(let n=0;n<e.length;n++)this._buf.push(e[n]);this._size=this._buf.length}else{let n=this._maxSize;for(let o=0;o<n;o++)this._buf[o]=void 0;this._head=0;let t=Math.min(e.length,n),i=e.length-t;for(let o=0;o<t;o++)this._buf[o]=e[i+o];this._size=t}this._version+=1}_rawAppend(e){if(this._maxSize===void 0){this._buf.push(e),this._size=this._buf.length;return}this._size<this._maxSize?(this._buf[(this._head+this._size)%this._maxSize]=e,this._size+=1):(this._buf[this._head]=e,this._head=(this._head+1)%this._maxSize)}};function ae(r){return r.subscribe(()=>{})}var kn=64;function Nn(r,e={}){let{name:n,maxSize:t,versioning:i,guard:o,backend:a}=e,s=a??new me(r,t),d=L(s.toArray(),{name:n,describeKind:"state",equals:(l,b)=>l===b,...i!=null?{versioning:i}:{},...o!=null?{guard:o}:{}});function u(){let l=s.toArray();K(()=>{d.down([[R]],{internal:!0}),d.down([[k,l]],{internal:!0})})}let c=new Map,p=new Map,h=new Map;function f(l,b){return`${l}:${b===void 0?"END":b}`}function m(l){if(l.size<kn)return;let b=l.keys().next();if(b.done)return;let v=l.get(b.value);v!==void 0&&v.dispose(),l.delete(b.value)}function y(l){let b=s.version;try{return l()}finally{s.version!==b&&u()}}function w(l){if(!Number.isInteger(l)||l<0)throw new RangeError(`tail: n must be a non-negative integer (got ${l})`);let b=c.get(l);if(b!==void 0)return c.delete(l),c.set(l,b),b.node;m(c);let v=$([d],([g])=>{let x=g;return l===0||x.length===0?[]:x.slice(Math.max(0,x.length-l))},{initial:s.tail(l),describeKind:"derived"}),T=ae(v);return c.set(l,{node:v,dispose:T}),v}function _(l,b){if(!Number.isInteger(l)||l<0)throw new RangeError(`slice: start must be a non-negative integer (got ${l})`);if(b!==void 0&&(!Number.isInteger(b)||b<0))throw new RangeError(`slice: stop must be a non-negative integer or undefined (got ${b})`);let v=f(l,b),T=p.get(v);if(T!==void 0)return p.delete(v),p.set(v,T),T.node;m(p);let g=$([d],([A])=>{let S=A;return b===void 0?S.slice(l):S.slice(l,b)},{initial:s.slice(l,b),describeKind:"derived"}),x=ae(g);return p.set(v,{node:g,dispose:x}),g}function E(l){let b=h.get(l);if(b!==void 0)return b.node;let v=$([d,l],([g,x])=>{let A=g,S=Math.max(0,Math.trunc(x??0));return A.slice(S)},{initial:[],describeKind:"derived"}),T=ae(v);return h.set(l,{node:v,dispose:T}),v}let M,V;function C(){M===void 0&&(M=oe([d],(l,b,v)=>{let T=l[0],x=T!=null&&T.length>0?T.at(-1):v.prevData[0];if(x==null||x.length===0){b.down([[I]]);return}b.emit(x[x.length-1])},{name:n!=null?`${n}::lastValue`:"lastValue",describeKind:"derived",initial:s.size===0?void 0:s.at(s.size-1)}),V=$([d],([l])=>l.length>0,{name:n!=null?`${n}::hasLatest`:"hasLatest",describeKind:"derived",initial:s.size>0}),ae(M),ae(V))}let W={entries:d,get size(){return s.size},at(l){return s.at(l)},append(l){y(()=>s.append(l))},appendMany(l){l.length!==0&&y(()=>s.appendMany(l))},clear(){y(()=>s.clear())},trimHead(l){y(()=>s.trimHead(l))},withLatest(){return C(),d},get lastValue(){return C(),M},get hasLatest(){return C(),V},view(l){switch(l.kind){case"tail":return w(l.n);case"slice":return _(l.start,l.stop);case"fromCursor":return E(l.cursor)}},attach(l){let b=l.subscribe(v=>{for(let T of v)T[0]===k&&W.append(T[1])});return()=>b()},attachStorage(l){if(l.length===0)return()=>{};let b=new Map;for(let T of l)b.set(T,s.size);(async()=>{for(let T of l)if(typeof T.loadEntries=="function")try{let g=await Promise.resolve(T.loadEntries());g.entries.length>0&&s.size===0&&(s.restore(g.entries),b.set(T,g.entries.length),u());break}catch{}})();let v=d.subscribe(T=>{for(let g of T){if(g[0]!==k)continue;let x=g[1];for(let A of l){let S=b.get(A)??0;if(x.length<S){try{let F=A.appendEntries(x);F instanceof Promise&&F.catch(()=>{})}catch{}b.set(A,x.length);continue}if(x.length===S)continue;let Q=x.slice(S);b.set(A,x.length);try{let F=A.appendEntries(Q);F instanceof Promise&&F.catch(()=>{})}catch{}}}});return()=>v()},disposeAllViews(){for(let l of c.values())l.dispose();c.clear();for(let l of p.values())l.dispose();p.clear();for(let l of h.values())l.dispose();h.clear()},dispose(){for(let l of c.values())l.dispose();c.clear();for(let l of p.values())l.dispose();p.clear();for(let l of h.values())l.dispose();h.clear()}};return W}var Se=new WeakMap;function Mn(r){let e=Se.get(r);if(e)return e;let n=r.map(c=>c.cache??[]),t=n.flat(),i=L(t,{name:"mergeReactiveLogs",describeKind:"state",equals:(c,p)=>c===p}),o=r.map((c,p)=>[...n[p]??[]]),a=[];for(let c=0;c<r.length;c++){let p=c,h=r[p].subscribe(f=>{for(let m of f)m[0]===k?(o[p]=[...m[1]],i.emit(o.flat())):m[0]===D?o[p]=[]:m[0]===N&&i.down([[N,m[1]]])});a.push(h)}let s=Ze(i),d=!1,u={node:i,dispose(){if(!d){d=!0;for(let c of a)c();a.length=0,s(),Se.delete(r)}}};return Se.set(r,u),u}Y();we();U();se();var be=class{_version=0;_store=new Map;_maxSize;_defaultTtl;constructor(e={}){let{maxSize:n,defaultTtl:t}=e;if(n!==void 0&&n<1)throw new RangeError("maxSize must be >= 1");if(t!==void 0&&t<=0)throw new RangeError("defaultTtl must be positive");this._maxSize=n,this._defaultTtl=t}get version(){return this._version}get size(){return this._store.size}has(e){let n=this._store.get(e);return n===void 0?!1:this._isExpired(n)?(this._store.delete(e),this._version+=1,!1):(this._touchLru(e,n),!0)}get(e){let n=this._store.get(e);if(n!==void 0){if(this._isExpired(n)){this._store.delete(e),this._version+=1;return}return this._touchLru(e,n),n.value}}set(e,n,t){let i=this._resolveExpiresAt(t);this._store.has(e)&&this._store.delete(e),this._store.set(e,{value:n,expiresAt:i}),this._evictLruWhileOver(),this._version+=1}setMany(e,n){let t=this._resolveExpiresAt(n),i=0;try{for(let[o,a]of e)this._store.has(o)&&this._store.delete(o),this._store.set(o,{value:a,expiresAt:t}),i+=1}finally{i>0&&(this._evictLruWhileOver(),this._version+=1)}}delete(e){let n=this._store.delete(e);return n&&(this._version+=1),n}deleteMany(e){let n=0;try{for(let t of e)this._store.delete(t)&&(n+=1)}finally{n>0&&(this._version+=1)}return n}clear(){let e=this._store.size;return e===0?0:(this._store.clear(),this._version+=1,e)}pruneExpired(){let e=ie(),n=0;for(let[t,i]of this._store)this._isExpired(i,e)&&(this._store.delete(t),n+=1);return n>0&&(this._version+=1),n}toMap(){let e=ie(),n=new Map;for(let[t,i]of this._store)this._isExpired(i,e)||n.set(t,i.value);return n}_resolveExpiresAt(e){let n=e??this._defaultTtl;if(n!==void 0){if(!Number.isFinite(n)||n<=0)throw new RangeError(`MapBackend: ttl must be a positive finite number (got ${n})`);return ie()+n*1e9}}_isExpired(e,n){return e.expiresAt===void 0?!1:(n??ie())>=e.expiresAt}_touchLru(e,n){this._store.delete(e),this._store.set(e,n)}_evictLruWhileOver(){if(this._maxSize!==void 0)for(;this._store.size>this._maxSize;){let e=this._store.keys().next().value;if(e===void 0)break;this._store.delete(e)}}};function En(r={}){let{name:e,maxSize:n,defaultTtl:t,versioning:i,backend:o,retention:a}=r;if(a&&n!==void 0)throw new RangeError("reactiveMap: `maxSize` (LRU) and `retention` (score-based) are mutually exclusive. Pick one eviction policy.");if(a&&a.archiveThreshold===void 0&&a.maxSize===void 0)throw new RangeError("reactiveMap: `retention` requires at least one of `archiveThreshold` or `maxSize` to trigger archival.");let s=o??new be({maxSize:n,defaultTtl:t}),d=L(s.toMap(),{name:e,describeKind:"state",equals:(h,f)=>h===f,...i!=null?{versioning:i}:{}});function u(){let h=s.toMap();K(()=>{d.down([[R]]),d.down([[k,h]])})}function c(){if(!a)return;let h=s.toMap(),f=a.archiveThreshold,m=a.maxSize,y=[];for(let[_,E]of h)y.push({key:_,value:E,score:a.score(_,E)});y.sort((_,E)=>_.score-E.score);let w=new Set;if(f!==void 0)for(let _ of y)if(_.score<f)w.add(_.key);else break;if(m!==void 0&&y.length-w.size>m)for(let _ of y){if(y.length-w.size<=m)break;w.has(_.key)||w.add(_.key)}if(w.size!==0)for(let _ of y)w.has(_.key)&&(a.onArchive?.(_.key,_.value,_.score),s.delete(_.key))}function p(h,f="mutation"){let m=s.version;try{return h()}finally{s.version!==m&&(f==="mutation"&&c(),u())}}return{entries:d,has(h){return p(()=>s.has(h),"read")},get(h){return p(()=>s.get(h),"read")},set(h,f,m){p(()=>s.set(h,f,m?.ttl))},setMany(h,f){p(()=>s.setMany(h,f?.ttl))},delete(h){p(()=>s.delete(h))},deleteMany(h){p(()=>s.deleteMany(h))},clear(){p(()=>s.clear())},pruneExpired(){p(()=>s.pruneExpired())},get size(){return s.size},dispose(){}}}0&&(module.exports={NativeIndexBackend,NativeListBackend,NativeLogBackend,NativeMapBackend,mergeReactiveLogs,reactiveIndex,reactiveList,reactiveLog,reactiveMap});
1
+ "use strict";var ge=Object.defineProperty;var nn=Object.getOwnPropertyDescriptor;var tn=Object.getOwnPropertyNames;var rn=Object.prototype.hasOwnProperty;var O=(r,e)=>()=>(r&&(e=r(r=0)),e);var on=(r,e)=>{for(var n in e)ge(r,n,{get:e[n],enumerable:!0})},sn=(r,e,n,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of tn(e))!rn.call(r,i)&&i!==n&&ge(r,i,{get:()=>e[i],enumerable:!(t=nn(e,i))||t.enumerable});return r};var an=r=>sn(ge({},"__esModule",{value:!0}),r);function Oe(){return j>0||ee}function Ve(){return j>0}function Ce(r){j>0?ne.push(r):r()}function K(r){j+=1;let e=!1;try{r()}catch(n){throw e=!0,n}finally{if(j-=1,j===0)if(e){if(!ee){let n=ne.splice(0);for(let t of n)try{t()}catch{}P.length=0,G.length=0,q.length=0}}else dn()}}function dn(){let r=!ee;r&&(ee=!0);let e=[],n=0;try{for(;P.length>0||G.length>0||q.length>0||r&&ne.length>0;){if(r&&ne.length>0){let o=ne.splice(0);for(let a of o)try{a()}catch(s){e.push(s)}continue}if(n+=1,n>1e3)throw P.length=0,G.length=0,q.length=0,new Error("batch drain exceeded 1000 iterations \u2014 likely a reactive cycle");let i=(P.length>0?P:G.length>0?G:q).splice(0);for(let o of i)try{o()}catch(a){e.push(a)}}}finally{r&&(ee=!1)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"batch drain: multiple callbacks threw")}function de(r,e,n){if(e.length===0)return;if(e.length===1){let u=n(e[0][0]);if(u<3||!Oe()){r(e);return}(u>=5?q:u===4?G:P).push(()=>r(e));return}let t=e.length,i=t,o=t,a=t,s=0;for(;s<t&&n(e[s][0])<3;)s++;for(i=s;s<t&&n(e[s][0])===3;)s++;for(o=s;s<t&&n(e[s][0])===4;)s++;a=s;let d=Oe();if(i>0){let u=e.slice(0,i);r(u)}if(o>i){let u=e.slice(i,o);d?P.push(()=>r(u)):r(u)}if(a>o){let u=e.slice(o,a);d?G.push(()=>r(u)):r(u)}if(t>a){let u=e.slice(a,t);d?q.push(()=>r(u)):r(u)}}var j,ee,P,G,q,ne,Y=O(()=>{"use strict";j=0,ee=!1,P=[],G=[],q=[],ne=[]});var te,k,R,I,H,B,re,z,D,N,J,ye,un,_e,ln,cn,ve,Ie,De,Le,Te,U=O(()=>{"use strict";te=Symbol.for("graphrefly/START"),k=Symbol.for("graphrefly/DATA"),R=Symbol.for("graphrefly/DIRTY"),I=Symbol.for("graphrefly/RESOLVED"),H=Symbol.for("graphrefly/INVALIDATE"),B=Symbol.for("graphrefly/PAUSE"),re=Symbol.for("graphrefly/RESUME"),z=Symbol.for("graphrefly/TEARDOWN"),D=Symbol.for("graphrefly/COMPLETE"),N=Symbol.for("graphrefly/ERROR"),J=Object.freeze([R]),ye=Object.freeze([I]),un=Object.freeze([H]),_e=Object.freeze([te]),ln=Object.freeze([D]),cn=Object.freeze([z]),ve=Object.freeze([J]),Ie=Object.freeze([ye]),De=Object.freeze([un]),Le=Object.freeze([ln]),Te=Object.freeze([cn])});function Ke(r){r.registerCodec(fn)}var fn,ze=O(()=>{"use strict";fn={name:"json",version:1,contentType:"application/json",encode(r){let e=JSON.stringify(r);return new TextEncoder().encode(e)},decode(r,e){let n=new TextDecoder().decode(r);return JSON.parse(n)}}});function ue(r){if(r==null)return hn;let{type:e,id:n,...t}=r;return{type:e??"system",id:n??"",...t}}var hn,Fe=O(()=>{"use strict";hn={type:"system",id:""}});function ie(){return Math.trunc(performance.now()*1e6)}function Pe(){return Date.now()*1e6}var we=O(()=>{"use strict"});function Ge(r){r.registerMessageType(te,{tier:0,wireCrossing:!1}),r.registerMessageType(R,{tier:1,wireCrossing:!1}),r.registerMessageType(H,{tier:1,wireCrossing:!1,metaPassthrough:!1}),r.registerMessageType(B,{tier:2,wireCrossing:!1}),r.registerMessageType(re,{tier:2,wireCrossing:!1}),r.registerMessageType(k,{tier:3,wireCrossing:!0}),r.registerMessageType(I,{tier:3,wireCrossing:!0}),r.registerMessageType(D,{tier:4,wireCrossing:!0,metaPassthrough:!1}),r.registerMessageType(N,{tier:4,wireCrossing:!0,metaPassthrough:!1}),r.registerMessageType(z,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var le,He=O(()=>{"use strict";U();le=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_rigorRecorder;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=n=>{let t=this._messageTypes.get(n);return t!=null?t.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}get rigorRecorder(){return this._rigorRecorder}set rigorRecorder(e){this._rigorRecorder=e}registerMessageType(e,n){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:n.tier,wireCrossing:n.wireCrossing??n.tier>=3,metaPassthrough:n.metaPassthrough??!0}),this}messageTier(e){let n=this._messageTypes.get(e);return n!=null?n.tier:1}isWireCrossing(e){let n=this._messageTypes.get(e);return n!=null?n.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let n=this._messageTypes.get(e);return n!=null?n.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var X,Be=O(()=>{"use strict";X=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 xe(r){if(r===void 0)return null;if(typeof r=="number"){if(!Number.isFinite(r))throw new TypeError(`Cannot hash non-finite number: ${r}`);if(Number.isInteger(r)&&!Number.isSafeInteger(r))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${r}. Cross-language cid parity is not guaranteed for unsafe integers.`);return r}if(typeof r=="string"||typeof r=="boolean"||r===null)return r;if(Array.isArray(r))return r.map(xe);if(typeof r=="object"&&r!==null){let e={};for(let n of Object.keys(r).sort())e[n]=xe(r[n]);return e}return null}function bn(r){let e=mn.encode(r),n=e.length,t=n*8,i=n+9+63&-64,o=new Uint8Array(i);o.set(e),o[n]=128;let a=new DataView(o.buffer);a.setUint32(i-4,t>>>0,!1),a.setUint32(i-8,Math.floor(t/4294967296)>>>0,!1);let s=1779033703,d=3144134277,u=1013904242,c=2773480762,p=1359893119,h=2600822924,f=528734635,m=1541459225,y=new Uint32Array(64),w=(E,M)=>E>>>M|E<<32-M;for(let E=0;E<i;E+=64){for(let g=0;g<16;g++)y[g]=a.getUint32(E+g*4,!1);for(let g=16;g<64;g++){let x=y[g-15],A=y[g-2],S=w(x,7)^w(x,18)^x>>>3,Q=w(A,17)^w(A,19)^A>>>10;y[g]=y[g-16]+S+y[g-7]+Q>>>0}let M=s,V=d,C=u,W=c,l=p,b=h,v=f,T=m;for(let g=0;g<64;g++){let x=w(l,6)^w(l,11)^w(l,25),A=l&b^~l&v,S=T+x+A+pn[g]+y[g]>>>0,Q=w(M,2)^w(M,13)^w(M,22),F=M&V^M&C^V&C,en=Q+F>>>0;T=v,v=b,b=l,l=W+S>>>0,W=C,C=V,V=M,M=S+en>>>0}s=s+M>>>0,d=d+V>>>0,u=u+C>>>0,c=c+W>>>0,p=p+l>>>0,h=h+b>>>0,f=f+v>>>0,m=m+T>>>0}let _=E=>E.toString(16).padStart(8,"0");return _(s)+_(d)+_(u)+_(c)+_(p)+_(h)+_(f)+_(m)}function ke(r){let e=xe(r??null),n=JSON.stringify(e);return bn(n).slice(0,16)}function gn(){let r=globalThis.crypto;if(r?.randomUUID)return r.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 Ne(r,e,n){let t=n?.id??gn();if(r===0)return{id:t,version:0};let o=(n?.hash??ke)(e);return{id:t,version:0,cid:o,prev:null}}function Ue(r,e,n){r.version+=1,"cid"in r&&(r.prev=r.cid,r.cid=n(e))}var pn,mn,$e=O(()=>{"use strict";pn=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]),mn=new TextEncoder});function qe(r){return{node:r,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function Me(r){r.prevData=void 0,r.dirty=!1,r.involvedThisWave=!1,r.dataBatch.length=0,r.terminal=void 0}function ce(r){return r.length===0?r:typeof r[0]=="symbol"?[r]:r}function oe(r,e,n){let t=Ye(r)?r:[],i=typeof r=="function"?r:typeof e=="function"?e:void 0,o={};return Ye(r)?o=(Ee(e)?e:n)??{}:Ee(r)?o=r:o=(Ee(e)?e:n)??{},new fe(t,i,o)}var We,je,yn,_n,Ae,fe,Ye,Ee,Re=O(()=>{"use strict";ze();Fe();Y();we();He();Be();U();$e();We=()=>{},je=100;yn=(r,e,n,t)=>{n.direction==="down-in"&&r._onDepMessage(n.depIndex,e)},_n=(r,e,n,t)=>{let i=r;if(i._status==="completed"||i._status==="errored")return;let o=i._cached,a=o===void 0?[_e]:[_e,[k,o]];i._status==="dirty"&&a.push(J),de(e,a,i._config.tierOf)},Ae=new le({onMessage:yn,onSubscribe:_n});Ge(Ae);Ke(Ae);fe=class r{_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,t){this._config=t.config??Ae,this._config.onMessage,this._optsName=t.name,this._describeKind=t.describeKind,this._equals=t.equals??Object.is,this._resubscribable=t.resubscribable??!1,this._resetOnTeardown=t.resetOnTeardown??!1,this._autoComplete=t.completeWhenDepsComplete??!0,this._autoError=t.errorWhenDepsError??!0,this._pausable=t.pausable??!0,this._guard=t.guard,this._fn=n,this._partial=t.partial??!1,this._cached=t.initial!==void 0?t.initial:void 0,this._status=e.length===0&&n==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=t.versioningHash??this._config.defaultHashFn??ke;let i=t.versioning??this._config.defaultVersioning;this._versioningLevel=i,this._versioning=i!=null?Ne(i,this._cached===void 0?void 0:this._cached,{id:t.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(qe);let o={};for(let[s,d]of Object.entries(t.meta??{})){let u={initial:d,name:`${t.name??"node"}:meta:${s}`,describeKind:"state",config:this._config};t.guard!=null&&(u.guard=t.guard),o[s]=new r([],void 0,u)}Object.freeze(o),this.meta=o,this._hasMeta=Object.keys(o).length>0;let a=this;this._actions={emit(s){a._emit([[k,s]])},down(s){a._emit(ce(s))},up(s){a._emitUp(ce(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,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 t=this._versioningLevel;if(t!=null&&e<=t)return;let i=n?.hash??this._hashFn;i!==this._hashFn&&(this._hashFn=i);let o=this._cached===void 0?void 0:this._cached,a=this._versioning,s=a?.id??n?.id,d=a?.version??0,u=Ne(e,o,{id:s,hash:i});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=ue(e);if(this._guard!=null&&!this._guard(n,"observe"))return!1;if(this._extraGuards!=null){for(let t of this._extraGuards)if(!t(n,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let n=this._guard!=null||this._extraGuards!=null,t=e?.actor!=null;if(!n&&!t)return;let i=ue(e?.actor),o=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(i,o))throw new X({actor:i,action:o,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(i,o))throw new X({actor:i,action:o,nodeName:this.name})}this._lastMutation={actor:i,timestamp_ns:Pe()}}down(e,n){let t=ce(e);t.length!==0&&(this._checkGuard(n),this._emit(t))}emit(e,n){this._checkGuard(n),this._emit([[k,e]])}up(e,n){if(this._deps.length===0)return;let t=ce(e);if(t.length===0)return;this._checkGuard(n);let i=n??{internal:!0};this._validateUpTiers(t);for(let o of this._deps)o.node.up?.(t,i)}_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 t of e){let i=n(t[0]);if(i===3||i===4)throw new Error(`Node "${this.name}": tier-${i} 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=ue(n);if(!this._guard(d,"observe"))throw new X({actor:d,action:"observe",nodeName:this.name})}let i=this._isTerminal&&this._resubscribable;if(i){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)Me(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 o;try{o=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:i},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 o=="function")try{o()}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 o=="function"&&o(),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 t=0;t<e;t++){let i=t,o=this._deps[t];o.unsub=We,o.unsub=o.node.subscribe(a=>{if(o.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:i},this._actions);d&&this._maybeRunFnOnSettlement()}),n++}}catch(t){this._deps[n].unsub=null;for(let i=0;i<n;i++){let o=this._deps[i];if(o.unsub!=null){let a=o.unsub;o.unsub=null;try{a()}catch{}Me(o)}}throw this._dirtyDepCount=0,t}}_addDep(e){for(let i=0;i<this._deps.length;i++)if(this._deps[i].node===e)return i;let n=this._deps.length,t=qe(e);if(this._deps.push(t),this._sinks==null)return n;t.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(ve),t.unsub=We;try{t.unsub=e.subscribe(i=>{if(t.unsub===null)return;let o=this._config.tierOf,a=!1;for(let s of i)o(s[0])>=3&&(a=!0),this._config.onMessage(this,s,{direction:"down-in",depIndex:n},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(i){throw t.unsub=null,this._deps.pop(),this._dirtyDepCount--,i}return n}_deactivate(e=!1){let n=this._cleanup;if(this._cleanup=void 0,typeof n=="function")try{n()}catch(t){this._emit([[N,this._wrapFnError("cleanup threw",t)]])}else if(n!=null&&typeof n=="object"){let t=n.deactivate;if(typeof t=="function")try{t()}catch(i){this._emit([[N,this._wrapFnError("cleanup.deactivate threw",i)]])}}for(let t of this._deps){if(t.unsub!=null){let i=t.unsub;t.unsub=null;try{i()}catch{}}Me(t)}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 t=this._deps[e],i=n[0];if(this._inspectorHooks!=null){let o={kind:"dep_message",depIndex:e,message:n};for(let a of this._inspectorHooks)a(o)}if(i!==te){if(i===R){this._depDirtied(t);return}if(i===H){if(this._depInvalidated(t),this._cached===void 0)return;this._emit(De);return}if(i===B||i===re){this._emit([n]);return}if(i===z){this._emit(Te);return}if(i===k)this._depSettledAsData(t,n[1]);else if(i===I)this._depSettledAsResolved(t);else if(i===D)this._depSettledAsTerminal(t,!0);else if(i===N)this._depSettledAsTerminal(t,n[1]);else{this._emit([n]);return}if(!this._fn){(i===k||i===I)&&this._emit([n]),(i===D||i===N)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(ve))}_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(Ie),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([[N,e.terminal]]);return}this._autoComplete&&this._deps.every(n=>n.terminal!==void 0)&&this._emit(Le)}_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([[N,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([[N,this._wrapFnError("cleanup.beforeRun threw",s)]]);return}}}let n=this._deps.map(a=>a.involvedThisWave?a.dataBatch.length>0?[...a.dataBatch]:[]:void 0),t=this._deps.map(a=>a.prevData);for(let a=0;a<this._deps.length;a++){let s=n[a];s!=null&&s.length>0&&(this._deps[a].prevData=s[s.length-1])}let i=this._deps.map(a=>a.terminal),o={prevData:t,terminalDeps:i,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let a={kind:"run",batchData:n,prevData:t};for(let s of this._inspectorHooks)s(a)}this._isExecutingFn=!0;try{let a=this._fn(n,this._actions,o);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([[N,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>je?(this._rerunDepth=0,this._emit([[N,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${je} \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 t=n instanceof Error?n.message:String(n);return new Error(`Node "${this.name}": ${e}: ${t}`,{cause:n})}_frameBatch(e){let n=this._config.tierOf;if(e.length===1)return n(e[0][0])===3&&this._status!=="dirty"?[J,e[0]]:e;let t=!0,i=!1,o=!1,a=-1;for(let d of e){let u=n(d[0]);u<a&&(t=!1),u===3&&(i=!0),d[0]===R&&(o=!0),a=u}let s=e;if(!t){let d=e.map((u,c)=>({m:u,i:c,tier:n(u[0])}));d.sort((u,c)=>u.tier-c.tier||u.i-c.i),s=d.map(u=>u.m)}if(i&&!o&&this._status!=="dirty"){let d=0;for(;d<s.length&&n(s[d][0])===0;)d++;return d===0?[J,...s]:[...s.slice(0,d),J,...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]===N&&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 s=e.filter(d=>d[0]===z||d[0]===H);if(s.length===0)return;n=s}n=this._frameBatch(n);let i=null;for(let s=0;s<n.length;s++){let d=n[s],u=d[0];if(u!==B&&u!==re){i?.push(d);continue}if(d.length<2)throw new Error(`Node "${this.name}": [[${u===B?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let c=!0;if(this._pausable!==!1){let p=d[1];if(u===B)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(p),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(p))c=!1;else if(this._pauseLocks.delete(p),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let h=this._pauseBuffer;this._pauseBuffer=[],this._emit(h)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}c?i?.push(d):i==null&&(i=n.slice(0,s))}if(i!=null){if(i.length===0)return;n=i}if(this._hasMeta&&n.some(s=>s[0]===z))for(let s of Object.keys(this.meta))try{this.meta[s]._emit(Te)}catch{}let{finalMessages:o,equalsError:a}=this._updateState(n);if(o.length>0&&this._config.inspectorEnabled){let s=this._config.globalInspector;if(s!=null)try{s({kind:"emit",node:this,messages:o})}catch{}}if(o.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let s=this._config.tierOf,d=[];for(let u of o)s(u[0])===3?this._pauseBuffer.push(u):d.push(u);d.length>0&&this._dispatchOrAccumulate(d)}else this._dispatchOrAccumulate(o);a!=null&&this._emit([[N,a]])}_updateState(e){let n=this._config.tierOf,t,i,o=-1,a=0;for(let c of e)n(c[0])===3&&a++;let s=a<=1,d=-1;if(this._versioning!=null&&a>1){for(let c=e.length-1;c>=0;c--)if(e[c][0]===k){d=c;break}}for(let c=0;c<e.length;c++){let p=e[c],h=p[0];if(h===k){if(p.length>=2){let f=!1;if(s&&this._cached!==void 0)try{f=this._equals(this._cached,p[1])}catch(m){i=this._wrapFnError("equals threw",m),o=c;break}if(f){t==null&&(t=e.slice(0,c)),t.push(ye),this._status="resolved";continue}this._cached=p[1],this._versioning!=null&&(d<0||c===d)&&Ue(this._versioning,p[1],this._hashFn)}this._status="settled",t?.push(p)}else if(t?.push(p),h===R)this._status="dirty";else if(h===I)this._status="resolved";else if(h===D){this._status="completed";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(h===N){this._status="errored";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(h===H){if(this._cached!==void 0){let m=this._config.rigorRecorder;if(m!=null)try{m.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let f=this._cleanup;if(typeof f=="function"){this._cleanup=void 0;try{f()}catch{}}else if(f!=null&&typeof f=="object"){let m=f.invalidate;if(typeof m=="function")try{m()}catch{}}}else h===z&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let u=o>=0?t??e.slice(0,o):t??e;return i!=null?{finalMessages:u,equalsError:i}:{finalMessages:u}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let n=[...this._sinks];for(let t of n)t(e)};_dispatchOrAccumulate(e){if(Ve()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Ce(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}de(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);de(this._deliverToSinks,n,this._config.tierOf)}},Ye=r=>Array.isArray(r),Ee=r=>typeof r=="object"&&r!=null&&!Array.isArray(r)});function L(r,e){return oe([],{...e,initial:r})}function $(r,e,n){return oe(r,(i,o,a)=>{let s=i.map((d,u)=>d!=null&&d.length>0?d.at(-1):a.prevData[u]);o.emit(e(s,a))},{describeKind:"derived",...n})}var se=O(()=>{"use strict";Re()});function Ze(r){return r.subscribe(()=>{})}var Qe=O(()=>{"use strict"});var An={};on(An,{NativeIndexBackend:()=>he,NativeListBackend:()=>pe,NativeLogBackend:()=>me,NativeMapBackend:()=>be,mergeReactiveLogs:()=>Mn,reactiveIndex:()=>wn,reactiveList:()=>xn,reactiveLog:()=>Nn,reactiveMap:()=>En});module.exports=an(An);Y();U();se();function Je(r,e){if(r===e)return 0;let n=typeof r;if(n===typeof e&&(n==="number"||n==="string"||n==="boolean"||n==="bigint")){let i=r,o=e;return i<o?-1:i>o?1:0}return String(r).localeCompare(String(e))}function vn(r,e){let n=Je(r[0],e[0]);return n!==0?n:Je(r[1],e[1])}function Xe(r){return[r.secondary,r.primary]}function Z(r,e){let n=Xe(e),t=0,i=r.length;for(;t<i;){let o=t+i>>1;vn(n,Xe(r[o]))>0?t=o+1:i=o}return t}var he=class{_version=0;_buf=[];_byPrimary=new Map;get version(){return this._version}get size(){return this._buf.length}has(e){return this._byPrimary.has(e)}get(e){return this._byPrimary.get(e)?.value}upsert(e,n,t,i){let o=this._byPrimary.get(e),a={primary:e,secondary:n,value:t};if(o!==void 0&&i?.equals?.(o,a))return!1;if(o!==void 0){let d=Z(this._buf,o);this._buf.splice(d,1)}let s=Z(this._buf,a);return this._buf.splice(s,0,a),this._byPrimary.set(e,a),this._version+=1,o===void 0}upsertMany(e,n){let t=0;try{for(let i of e){let o=this._byPrimary.get(i.primary),a={primary:i.primary,secondary:i.secondary,value:i.value};if(o!==void 0&&n?.equals?.(o,a))continue;if(o!==void 0){let d=Z(this._buf,o);this._buf.splice(d,1)}let s=Z(this._buf,a);this._buf.splice(s,0,a),this._byPrimary.set(i.primary,a),t+=1}}finally{t>0&&(this._version+=1)}return t}delete(e){let n=this._byPrimary.get(e);if(n===void 0)return!1;let t=Z(this._buf,n);return this._buf.splice(t,1),this._byPrimary.delete(e),this._version+=1,!0}deleteMany(e){let n=0;try{for(let t of e){let i=this._byPrimary.get(t);if(i===void 0)continue;let o=Z(this._buf,i);this._buf.splice(o,1),this._byPrimary.delete(t),n+=1}}finally{n>0&&(this._version+=1)}return n}clear(){let e=this._buf.length;return e===0?0:(this._buf.length=0,this._byPrimary.clear(),this._version+=1,e)}toArray(){return[...this._buf]}toPrimaryMap(){let e=new Map;for(let n of this._buf)e.set(n.primary,n.value);return e}};function Tn(r){return r.subscribe(()=>{})}function wn(r={}){let{name:e,versioning:n,equals:t,backend:i}=r,o=i??new he;function a(f){return f?.equals!==void 0||t===void 0?f:{...f,equals:t}}let s=L([],{name:e,describeKind:"state",equals:(f,m)=>f===m,...n!=null?{versioning:n}:{}}),d=$([s],([f])=>{let m=f,y=new Map;for(let w of m)y.set(w.primary,w.value);return y},{initial:o.toPrimaryMap(),describeKind:"derived"}),u=Tn(d),c=!1;function p(){let f=o.toArray();K(()=>{s.down([[R]]),s.down([[k,f]])})}function h(f){let m=o.version;try{return f()}finally{o.version!==m&&p()}}return{ordered:s,byPrimary:d,has(f){return o.has(f)},get(f){return o.get(f)},get size(){return o.size},upsert(f,m,y,w){return h(()=>o.upsert(f,m,y,a(w)))},upsertMany(f,m){let y=[...f];y.length!==0&&h(()=>o.upsertMany(y,a(m)))},delete(f){h(()=>o.delete(f))},deleteMany(f){let m=[...f];m.length!==0&&h(()=>o.deleteMany(m))},clear(){h(()=>o.clear())},dispose(){c||(c=!0,u())}}}Y();U();se();var pe=class{_version=0;_buf;constructor(e){this._buf=e?[...e]:[]}get version(){return this._version}get size(){return this._buf.length}at(e){if(!Number.isInteger(e))return;let n=e>=0?e:this._buf.length+e;if(!(n<0||n>=this._buf.length))return this._buf[n]}append(e){this._buf.push(e),this._version+=1}appendMany(e){if(e.length===0)return;let n=this._buf.length;this._buf.length=n+e.length;for(let t=0;t<e.length;t++)this._buf[n+t]=e[t];this._version+=1}insert(e,n){if(!Number.isInteger(e)||e<0||e>this._buf.length)throw new RangeError(`insert: index ${e} out of range [0, ${this._buf.length}]`);this._buf.splice(e,0,n),this._version+=1}insertMany(e,n){if(!Number.isInteger(e)||e<0||e>this._buf.length)throw new RangeError(`insertMany: index ${e} out of range [0, ${this._buf.length}]`);n.length!==0&&(this._buf.splice(e,0,...n),this._version+=1)}pop(e){if(this._buf.length===0)throw new RangeError("pop from empty list");if(!Number.isInteger(e))throw new RangeError(`pop: index ${e} must be an integer`);let n=e>=0?e:this._buf.length+e;if(n<0||n>=this._buf.length)throw new RangeError(`pop: index ${e} out of range`);let[t]=this._buf.splice(n,1);return this._version+=1,t}clear(){let e=this._buf.length;return e===0?0:(this._buf.length=0,this._version+=1,e)}toArray(){return[...this._buf]}};function xn(r,e={}){let{name:n,versioning:t,backend:i}=e,o=i??new pe(r),a=L(o.toArray(),{name:n,describeKind:"state",equals:(u,c)=>u===c,...t!=null?{versioning:t}:{}});function s(){let u=o.toArray();K(()=>{a.down([[R]]),a.down([[k,u]])})}function d(u){let c=o.version;try{return u()}finally{o.version!==c&&s()}}return{items:a,get size(){return o.size},at(u){return o.at(u)},append(u){d(()=>o.append(u))},appendMany(u){d(()=>o.appendMany(u))},insert(u,c){d(()=>o.insert(u,c))},insertMany(u,c){d(()=>o.insertMany(u,c))},pop(u=-1){return d(()=>o.pop(u))},clear(){d(()=>o.clear())},dispose(){}}}Y();U();Re();se();Qe();var me=class{_version=0;_maxSize;_buf;_head=0;_size=0;constructor(e,n){if(n!==void 0&&n<1)throw new RangeError("maxSize must be >= 1");if(this._maxSize=n,n!==void 0){if(this._buf=new Array(n),e&&e.length>0){let t=Math.min(e.length,n),i=e.length-t;for(let o=0;o<t;o++)this._buf[o]=e[i+o];this._size=t}}else this._buf=e?[...e]:[],this._size=this._buf.length}get version(){return this._version}get size(){return this._size}at(e){if(!Number.isInteger(e))return;let n=e>=0?e:this._size+e;if(!(n<0||n>=this._size))return this._maxSize!==void 0?this._buf[(this._head+n)%this._maxSize]:this._buf[n]}append(e){this._rawAppend(e),this._version+=1}appendMany(e){if(e.length===0)return;let n=this._maxSize!==void 0&&e.length>this._maxSize?e.length-this._maxSize:0;for(let t=n;t<e.length;t++)this._rawAppend(e[t]);this._version+=1}clear(){if(this._size===0)return 0;let e=this._size;if(this._maxSize===void 0)this._buf.length=0;else for(let n=0;n<e;n++)this._buf[(this._head+n)%this._maxSize]=void 0;return this._head=0,this._size=0,this._version+=1,e}trimHead(e){if(!Number.isInteger(e)||e<0)throw new RangeError(`trimHead: n must be a non-negative integer (got ${e})`);if(e===0||this._size===0)return 0;let n=Math.min(e,this._size);if(this._maxSize===void 0)this._buf.splice(0,n);else{for(let t=0;t<n;t++)this._buf[(this._head+t)%this._maxSize]=void 0;this._head=(this._head+n)%this._maxSize}return this._size-=n,this._version+=1,n}slice(e,n){if(!Number.isInteger(e)||e<0)throw new RangeError(`slice: start must be a non-negative integer (got ${e})`);if(n!==void 0&&(!Number.isInteger(n)||n<0))throw new RangeError(`slice: stop must be a non-negative integer or undefined (got ${n})`);let t=n===void 0?this._size:Math.min(Math.max(n,0),this._size),i=Math.min(e,this._size);if(i>=t)return[];let o=t-i;if(this._maxSize===void 0)return this._buf.slice(i,t);let a=new Array(o);for(let s=0;s<o;s++)a[s]=this._buf[(this._head+i+s)%this._maxSize];return a}tail(e){if(!Number.isInteger(e)||e<0)throw new RangeError(`tail: n must be a non-negative integer (got ${e})`);if(e===0||this._size===0)return[];let n=Math.min(e,this._size);return this.slice(this._size-n,this._size)}toArray(){if(this._maxSize===void 0)return[...this._buf];let e=new Array(this._size);for(let n=0;n<this._size;n++)e[n]=this._buf[(this._head+n)%this._maxSize];return e}snapshot(){return this.toArray()}restore(e){if(this._maxSize===void 0){this._buf.length=0;for(let n=0;n<e.length;n++)this._buf.push(e[n]);this._size=this._buf.length}else{let n=this._maxSize;for(let o=0;o<n;o++)this._buf[o]=void 0;this._head=0;let t=Math.min(e.length,n),i=e.length-t;for(let o=0;o<t;o++)this._buf[o]=e[i+o];this._size=t}this._version+=1}_rawAppend(e){if(this._maxSize===void 0){this._buf.push(e),this._size=this._buf.length;return}this._size<this._maxSize?(this._buf[(this._head+this._size)%this._maxSize]=e,this._size+=1):(this._buf[this._head]=e,this._head=(this._head+1)%this._maxSize)}};function ae(r){return r.subscribe(()=>{})}var kn=64;function Nn(r,e={}){let{name:n,maxSize:t,versioning:i,guard:o,backend:a}=e,s=a??new me(r,t),d=L(s.toArray(),{name:n,describeKind:"state",equals:(l,b)=>l===b,...i!=null?{versioning:i}:{},...o!=null?{guard:o}:{}});function u(){let l=s.toArray();K(()=>{d.down([[R]],{internal:!0}),d.down([[k,l]],{internal:!0})})}let c=new Map,p=new Map,h=new Map;function f(l,b){return`${l}:${b===void 0?"END":b}`}function m(l){if(l.size<kn)return;let b=l.keys().next();if(b.done)return;let v=l.get(b.value);v!==void 0&&v.dispose(),l.delete(b.value)}function y(l){let b=s.version;try{return l()}finally{s.version!==b&&u()}}function w(l){if(!Number.isInteger(l)||l<0)throw new RangeError(`tail: n must be a non-negative integer (got ${l})`);let b=c.get(l);if(b!==void 0)return c.delete(l),c.set(l,b),b.node;m(c);let v=$([d],([g])=>{let x=g;return l===0||x.length===0?[]:x.slice(Math.max(0,x.length-l))},{initial:s.tail(l),describeKind:"derived"}),T=ae(v);return c.set(l,{node:v,dispose:T}),v}function _(l,b){if(!Number.isInteger(l)||l<0)throw new RangeError(`slice: start must be a non-negative integer (got ${l})`);if(b!==void 0&&(!Number.isInteger(b)||b<0))throw new RangeError(`slice: stop must be a non-negative integer or undefined (got ${b})`);let v=f(l,b),T=p.get(v);if(T!==void 0)return p.delete(v),p.set(v,T),T.node;m(p);let g=$([d],([A])=>{let S=A;return b===void 0?S.slice(l):S.slice(l,b)},{initial:s.slice(l,b),describeKind:"derived"}),x=ae(g);return p.set(v,{node:g,dispose:x}),g}function E(l){let b=h.get(l);if(b!==void 0)return b.node;let v=$([d,l],([g,x])=>{let A=g,S=Math.max(0,Math.trunc(x??0));return A.slice(S)},{initial:[],describeKind:"derived"}),T=ae(v);return h.set(l,{node:v,dispose:T}),v}let M,V;function C(){M===void 0&&(M=oe([d],(l,b,v)=>{let T=l[0],x=T!=null&&T.length>0?T.at(-1):v.prevData[0];if(x==null||x.length===0){b.down([[I]]);return}b.emit(x[x.length-1])},{name:n!=null?`${n}::lastValue`:"lastValue",describeKind:"derived",initial:s.size===0?void 0:s.at(s.size-1)}),V=$([d],([l])=>l.length>0,{name:n!=null?`${n}::hasLatest`:"hasLatest",describeKind:"derived",initial:s.size>0}),ae(M),ae(V))}let W={entries:d,get size(){return s.size},at(l){return s.at(l)},append(l){y(()=>s.append(l))},appendMany(l){l.length!==0&&y(()=>s.appendMany(l))},clear(){y(()=>s.clear())},trimHead(l){y(()=>s.trimHead(l))},withLatest(){return C(),d},get lastValue(){return C(),M},get hasLatest(){return C(),V},view(l){switch(l.kind){case"tail":return w(l.n);case"slice":return _(l.start,l.stop);case"fromCursor":return E(l.cursor)}},attach(l){let b=l.subscribe(v=>{for(let T of v)T[0]===k&&W.append(T[1])});return()=>b()},attachStorage(l){if(l.length===0)return()=>{};let b=new Map;for(let T of l)b.set(T,s.size);(async()=>{for(let T of l)if(typeof T.loadEntries=="function")try{let g=await Promise.resolve(T.loadEntries());g.entries.length>0&&s.size===0&&(s.restore(g.entries),b.set(T,g.entries.length),u());break}catch{}})();let v=d.subscribe(T=>{for(let g of T){if(g[0]!==k)continue;let x=g[1];for(let A of l){let S=b.get(A)??0;if(x.length<S){try{let F=A.appendEntries(x);F instanceof Promise&&F.catch(()=>{})}catch{}b.set(A,x.length);continue}if(x.length===S)continue;let Q=x.slice(S);b.set(A,x.length);try{let F=A.appendEntries(Q);F instanceof Promise&&F.catch(()=>{})}catch{}}}});return()=>v()},disposeAllViews(){for(let l of c.values())l.dispose();c.clear();for(let l of p.values())l.dispose();p.clear();for(let l of h.values())l.dispose();h.clear()},dispose(){for(let l of c.values())l.dispose();c.clear();for(let l of p.values())l.dispose();p.clear();for(let l of h.values())l.dispose();h.clear()}};return W}var Se=new WeakMap;function Mn(r){let e=Se.get(r);if(e)return e;let n=r.map(c=>c.cache??[]),t=n.flat(),i=L(t,{name:"mergeReactiveLogs",describeKind:"state",equals:(c,p)=>c===p}),o=r.map((c,p)=>[...n[p]??[]]),a=[];for(let c=0;c<r.length;c++){let p=c,h=r[p].subscribe(f=>{for(let m of f)if(m[0]===k)o[p]=[...m[1]],i.emit(o.flat());else if(m[0]===D){o[p]=[];let y=a[p];y!==void 0&&(a[p]=void 0,y())}else m[0]===N&&i.down([[N,m[1]]])});a.push(h)}let s=Ze(i),d=!1,u={node:i,dispose(){if(!d){d=!0;for(let c of a)c?.();a.length=0,s(),Se.delete(r)}}};return Se.set(r,u),u}Y();we();U();se();var be=class{_version=0;_store=new Map;_maxSize;_defaultTtl;constructor(e={}){let{maxSize:n,defaultTtl:t}=e;if(n!==void 0&&n<1)throw new RangeError("maxSize must be >= 1");if(t!==void 0&&t<=0)throw new RangeError("defaultTtl must be positive");this._maxSize=n,this._defaultTtl=t}get version(){return this._version}get size(){return this._store.size}has(e){let n=this._store.get(e);return n===void 0?!1:this._isExpired(n)?(this._store.delete(e),this._version+=1,!1):(this._touchLru(e,n),!0)}get(e){let n=this._store.get(e);if(n!==void 0){if(this._isExpired(n)){this._store.delete(e),this._version+=1;return}return this._touchLru(e,n),n.value}}set(e,n,t){let i=this._resolveExpiresAt(t);this._store.has(e)&&this._store.delete(e),this._store.set(e,{value:n,expiresAt:i}),this._evictLruWhileOver(),this._version+=1}setMany(e,n){let t=this._resolveExpiresAt(n),i=0;try{for(let[o,a]of e)this._store.has(o)&&this._store.delete(o),this._store.set(o,{value:a,expiresAt:t}),i+=1}finally{i>0&&(this._evictLruWhileOver(),this._version+=1)}}delete(e){let n=this._store.delete(e);return n&&(this._version+=1),n}deleteMany(e){let n=0;try{for(let t of e)this._store.delete(t)&&(n+=1)}finally{n>0&&(this._version+=1)}return n}clear(){let e=this._store.size;return e===0?0:(this._store.clear(),this._version+=1,e)}pruneExpired(){let e=ie(),n=0;for(let[t,i]of this._store)this._isExpired(i,e)&&(this._store.delete(t),n+=1);return n>0&&(this._version+=1),n}toMap(){let e=ie(),n=new Map;for(let[t,i]of this._store)this._isExpired(i,e)||n.set(t,i.value);return n}_resolveExpiresAt(e){let n=e??this._defaultTtl;if(n!==void 0){if(!Number.isFinite(n)||n<=0)throw new RangeError(`MapBackend: ttl must be a positive finite number (got ${n})`);return ie()+n*1e9}}_isExpired(e,n){return e.expiresAt===void 0?!1:(n??ie())>=e.expiresAt}_touchLru(e,n){this._store.delete(e),this._store.set(e,n)}_evictLruWhileOver(){if(this._maxSize!==void 0)for(;this._store.size>this._maxSize;){let e=this._store.keys().next().value;if(e===void 0)break;this._store.delete(e)}}};function En(r={}){let{name:e,maxSize:n,defaultTtl:t,versioning:i,backend:o,retention:a}=r;if(a&&n!==void 0)throw new RangeError("reactiveMap: `maxSize` (LRU) and `retention` (score-based) are mutually exclusive. Pick one eviction policy.");if(a&&a.archiveThreshold===void 0&&a.maxSize===void 0)throw new RangeError("reactiveMap: `retention` requires at least one of `archiveThreshold` or `maxSize` to trigger archival.");let s=o??new be({maxSize:n,defaultTtl:t}),d=L(s.toMap(),{name:e,describeKind:"state",equals:(h,f)=>h===f,...i!=null?{versioning:i}:{}});function u(){let h=s.toMap();K(()=>{d.down([[R]]),d.down([[k,h]])})}function c(){if(!a)return;let h=s.toMap(),f=a.archiveThreshold,m=a.maxSize,y=[];for(let[_,E]of h)y.push({key:_,value:E,score:a.score(_,E)});y.sort((_,E)=>_.score-E.score);let w=new Set;if(f!==void 0)for(let _ of y)if(_.score<f)w.add(_.key);else break;if(m!==void 0&&y.length-w.size>m)for(let _ of y){if(y.length-w.size<=m)break;w.has(_.key)||w.add(_.key)}if(w.size!==0)for(let _ of y)w.has(_.key)&&(a.onArchive?.(_.key,_.value,_.score),s.delete(_.key))}function p(h,f="mutation"){let m=s.version;try{return h()}finally{s.version!==m&&(f==="mutation"&&c(),u())}}return{entries:d,has(h){return p(()=>s.has(h),"read")},get(h){return p(()=>s.get(h),"read")},set(h,f,m){p(()=>s.set(h,f,m?.ttl))},setMany(h,f){p(()=>s.setMany(h,f?.ttl))},delete(h){p(()=>s.delete(h))},deleteMany(h){p(()=>s.deleteMany(h))},clear(){p(()=>s.clear())},pruneExpired(){p(()=>s.pruneExpired())},get size(){return s.size},dispose(){}}}0&&(module.exports={NativeIndexBackend,NativeListBackend,NativeLogBackend,NativeMapBackend,mergeReactiveLogs,reactiveIndex,reactiveList,reactiveLog,reactiveMap});
@@ -1,5 +1,5 @@
1
1
  import { a as Node, V as VersioningLevel } from '../node-fSc-hCv8.cjs';
2
- export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-CgbNqksB.cjs';
2
+ export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-ScpWyqny.cjs';
3
3
  export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-DmgeADH8.cjs';
4
4
  import './storage-tiers.cjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { a as Node, V as VersioningLevel } from '../node-fSc-hCv8.js';
2
- export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-ByBb8g6A.js';
2
+ export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, R as ReactiveLogBundle, a as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-jirQsxMY.js';
3
3
  export { M as MapBackend, N as NativeMapBackend, b as NativeMapBackendOptions, R as ReactiveMapBundle, a as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-CHyeCf4D.js';
4
4
  import './storage-tiers.js';
5
5
 
@@ -1 +1 @@
1
- import{a as p,b as t}from"../chunk-NNKJUORL.js";import{a as x,b as a}from"../chunk-KGKJCHEK.js";import{a as f,b as m}from"../chunk-TZQPPQEQ.js";import{a as o,b as r,c as e}from"../chunk-RLMYS3XZ.js";import"../chunk-MQZWA3DF.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{p as NativeIndexBackend,x as NativeListBackend,o as NativeLogBackend,f as NativeMapBackend,e as mergeReactiveLogs,t as reactiveIndex,a as reactiveList,r as reactiveLog,m as reactiveMap};
1
+ import{a as p,b as t}from"../chunk-NNKJUORL.js";import{a as x,b as a}from"../chunk-KGKJCHEK.js";import{a as f,b as m}from"../chunk-TZQPPQEQ.js";import{a as o,b as r,c as e}from"../chunk-KUVDFOJH.js";import"../chunk-MQZWA3DF.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{p as NativeIndexBackend,x as NativeListBackend,o as NativeLogBackend,f as NativeMapBackend,e as mergeReactiveLogs,t as reactiveIndex,a as reactiveList,r as reactiveLog,m as reactiveMap};