zframes 0.7.0 → 0.8.1

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 (268) hide show
  1. package/dist/index.js +1787 -217
  2. package/package.json +6 -6
  3. package/runtime/assets/bar-chart-DCMbxUJx.js +1 -0
  4. package/runtime/assets/{bitcoin-dominance-rskkp4h2.js → bitcoin-dominance-BqoH90r5.js} +1 -1
  5. package/runtime/assets/{breakeven-DyCA3ya5.js → breakeven-1Kr-v9pE.js} +1 -1
  6. package/runtime/assets/{breathing-C8Y-Izs8.js → breathing-NOTeAM6N.js} +1 -1
  7. package/runtime/assets/btc-block-size-bars-BgwX4eu_.js +1 -0
  8. package/runtime/assets/{btc-blocks-BxS4aEAB.js → btc-blocks-D6TscPNp.js} +1 -1
  9. package/runtime/assets/{btc-difficulty-CNFxEiPh.js → btc-difficulty-BhSve3vk.js} +1 -1
  10. package/runtime/assets/btc-difficulty-chart-Yqxof0b6.js +1 -0
  11. package/runtime/assets/{btc-fees-Db-5JKh9.js → btc-fees-C-Za_OxK.js} +1 -1
  12. package/runtime/assets/btc-hashrate-5xnTYpft.js +1 -0
  13. package/runtime/assets/{btc-mempool-DFgUVk8y.js → btc-mempool-0WFrtuQR.js} +1 -1
  14. package/runtime/assets/{btc-shared-DeqDaCze.js → btc-shared-yOWoU9Im.js} +1 -1
  15. package/runtime/assets/bubbles-shared-DlmjtiIA.js +1 -0
  16. package/runtime/assets/{calculator-v01_FkZv.js → calculator-CcLe2vqJ.js} +1 -1
  17. package/runtime/assets/capital-structure-bars-SEyFIReK.js +1 -0
  18. package/runtime/assets/{chain-activity-CuA1eiPY.js → chain-activity-CCO3t0hA.js} +1 -1
  19. package/runtime/assets/chain-activity-bars-DHYCDKWT.js +1 -0
  20. package/runtime/assets/chain-activity-scatter-DeusbLku.js +1 -0
  21. package/runtime/assets/chain-price-movers-SeTwhqsM.js +1 -0
  22. package/runtime/assets/chart-utils-DGogNvJT.js +1 -0
  23. package/runtime/assets/checklist-orMUS_qt.js +1 -0
  24. package/runtime/assets/{clock-BWFux5om.js → clock-9PqJvMgi.js} +1 -1
  25. package/runtime/assets/coin-momentum-heatmap-DvfWWzSD.js +1 -0
  26. package/runtime/assets/coin-momentum-scatter-Cf4Y29lp.js +1 -0
  27. package/runtime/assets/{coin-movers-BcXfoFc6.js → coin-movers-D3cmI-tT.js} +1 -1
  28. package/runtime/assets/{countdown-CXSOeUWD.js → countdown-tMz3FsXT.js} +1 -1
  29. package/runtime/assets/custom-data-DPPNQ2QQ.js +1 -0
  30. package/runtime/assets/{cycle-shared-pyXzkgt1.js → cycle-shared-XoGVsOjC.js} +1 -1
  31. package/runtime/assets/{cycle-signals-BrKJX2c6.js → cycle-signals-DJYUIjas.js} +1 -1
  32. package/runtime/assets/cycle-valuation-composite-DO_Pda0n.js +1 -0
  33. package/runtime/assets/d3-ibrLIlQc.js +1 -0
  34. package/runtime/assets/{daily-analysis-CWluVygw.js → daily-analysis-BVEvATPa.js} +1 -1
  35. package/runtime/assets/{day-meter-Bi5OZCC4.js → day-meter-DmbSq9YK.js} +1 -1
  36. package/runtime/assets/{defi-revenue-CFNSNfG7.js → defi-revenue-DPazGCl4.js} +1 -1
  37. package/runtime/assets/dex-hot-pools-BeuuV2Cj.js +1 -0
  38. package/runtime/assets/dex-pool-bubbles-BLUbqZ4v.js +1 -0
  39. package/runtime/assets/dex-pool-liquidity-scatter-Civ63yej.js +1 -0
  40. package/runtime/assets/{dex-pool-treemap-DqvlN1Jo.js → dex-pool-treemap-ecoWHB8O.js} +1 -1
  41. package/runtime/assets/dex-volume-bubbles-CX9SfXmZ.js +1 -0
  42. package/runtime/assets/dex-volume-chart-Bgdepem0.js +1 -0
  43. package/runtime/assets/dex-volume-share-area-uDfe8wQZ.js +1 -0
  44. package/runtime/assets/{dex-volume-treemap-qyEBx4ll.js → dex-volume-treemap-BlrxYmk-.js} +1 -1
  45. package/runtime/assets/{dice-CuzcQipj.js → dice-BOUHMLs6.js} +1 -1
  46. package/runtime/assets/dino-game-BBIAIplk.js +1 -0
  47. package/runtime/assets/divider-B-nMbdhH.js +1 -0
  48. package/runtime/assets/dominance-bars-BjKMZR8V.js +1 -0
  49. package/runtime/assets/dominance-gauge-DVITO-Eg.js +1 -0
  50. package/runtime/assets/{drawdy-Bxr7eJ-7.js → drawdy-gpdcuxey.js} +1 -1
  51. package/runtime/assets/{dxy-CVbZmRsT.js → dxy-DfHaYZsj.js} +1 -1
  52. package/runtime/assets/dxy-chart-CidtFThk.js +1 -0
  53. package/runtime/assets/editor-C9dj6xX0.css +1 -0
  54. package/runtime/assets/editor-yifYG0tI.js +68 -0
  55. package/runtime/assets/etf-flow-bars-NYq3d_-U.js +1 -0
  56. package/runtime/assets/etf-flow-calendar-BI18BrWM.js +1 -0
  57. package/runtime/assets/{etf-flows-chart-B4Im9TVy.js → etf-flows-chart-BzKKqHh4.js} +1 -1
  58. package/runtime/assets/{etf-flows-Cl1WliDl.js → etf-flows-cufmZrd_.js} +1 -1
  59. package/runtime/assets/etf-issuer-bars-Dl9H_CZC.js +1 -0
  60. package/runtime/assets/etf-issuer-treemap-IhYjIP-y.js +1 -0
  61. package/runtime/assets/eth-issuance-impact-BLHuDvGQ.js +1 -0
  62. package/runtime/assets/{eth-staking-_q2b8DEx.js → eth-staking-CzidwFMK.js} +1 -1
  63. package/runtime/assets/{eth-supply-55OpYYBL.js → eth-supply-C7KDK-97.js} +1 -1
  64. package/runtime/assets/{fear-greed-CywOCckQ.js → fear-greed-DTLHRhif.js} +1 -1
  65. package/runtime/assets/fear-greed-chart-N1vM_QJ7.js +1 -0
  66. package/runtime/assets/{filings-feed-CosEi4NL.js → filings-feed-Dpz6nWMU.js} +1 -1
  67. package/runtime/assets/filings-mix-7ykY8NsE.js +1 -0
  68. package/runtime/assets/{financial-stress-DBCae4TA.js → financial-stress-BcnDhPO4.js} +1 -1
  69. package/runtime/assets/{flappy-bird-CBVgwfgX.js → flappy-bird-Vp7j7ceN.js} +1 -1
  70. package/runtime/assets/format-DxkEZcwQ.js +1 -0
  71. package/runtime/assets/fundamentals-BIesVoJt.js +1 -0
  72. package/runtime/assets/funding-bars-BNVCUVqC.js +1 -0
  73. package/runtime/assets/funding-carry-area-BqCrQOi5.js +1 -0
  74. package/runtime/assets/funding-comparison-BynnnDDf.js +1 -0
  75. package/runtime/assets/funding-crowding-scatter-BTzQUtFn.js +1 -0
  76. package/runtime/assets/funding-heatmap-DUOcDAeX.js +1 -0
  77. package/runtime/assets/funding-leaderboard-bars-CpYvO_Cs.js +1 -0
  78. package/runtime/assets/{funding-rate-chart-Da9WMKyJ.js → funding-rate-chart-CANXPS3a.js} +1 -1
  79. package/runtime/assets/funding-spread-bars-BgA-vSh-.js +1 -0
  80. package/runtime/assets/funding-venue-heatmap-jKiQGgLb.js +1 -0
  81. package/runtime/assets/{fx-board-CxhwDBHO.js → fx-board-CTnlbWGJ.js} +1 -1
  82. package/runtime/assets/fx-cross-heatmap-CDORG9Cx.js +1 -0
  83. package/runtime/assets/fx-movers-bars-WKvSm3Ry.js +1 -0
  84. package/runtime/assets/fx-trend-chart-uITTwyv8.js +1 -0
  85. package/runtime/assets/{game-ui-Dy_QYsPr.js → game-ui-BiMS2KJf.js} +1 -1
  86. package/runtime/assets/heading-Cidi7R-_.js +1 -0
  87. package/runtime/assets/hero-number-p8eaQmkA.js +1 -0
  88. package/runtime/assets/{holiday-calendar-C77t3m6c.js → holiday-calendar-ErapPWhY.js} +1 -1
  89. package/runtime/assets/image-BQQ0gSaW.js +1 -0
  90. package/runtime/assets/image-gallery-CNa-8BAA.js +1 -0
  91. package/runtime/assets/index-BHlJHScr.js +1108 -0
  92. package/runtime/assets/{index-DKixdHYB.js → index-BpPIfN5S.js} +1 -1
  93. package/runtime/assets/index-Bw1aFtyx.js +1 -0
  94. package/runtime/assets/index-DuNO-RcB.js +1 -0
  95. package/runtime/assets/index-yv-SCb9g.css +1 -0
  96. package/runtime/assets/indicators-Cw7CVPn4.js +1 -0
  97. package/runtime/assets/inflation-pulse-B54HwpAO.js +1 -0
  98. package/runtime/assets/{journal-log-BDu39CBE.js → journal-log-0CruSC_H.js} +1 -1
  99. package/runtime/assets/{journal-open-FejLOzlA.js → journal-open-DIwxMMCH.js} +1 -1
  100. package/runtime/assets/{journal-results-CtKy6MZM.js → journal-results-BM_i_JJ3.js} +1 -1
  101. package/runtime/assets/{journal-score-Bd7IDYl4.js → journal-score-He6DdYtU.js} +1 -1
  102. package/runtime/assets/{journal-store-KCRoPnI_.js → journal-store-DVDSxNMj.js} +1 -1
  103. package/runtime/assets/{journal-ui-C_htu3aM.js → journal-ui-CP9YblNJ.js} +1 -1
  104. package/runtime/assets/labor-force-flow-8HLQsbKV.js +1 -0
  105. package/runtime/assets/labor-market-If23zBQK.js +1 -0
  106. package/runtime/assets/{lightning-stats-botYMCIX.js → lightning-stats-DhrfBtX6.js} +1 -1
  107. package/runtime/assets/{link-grid-DFuD6XVK.js → link-grid-CsnxpE4z.js} +1 -1
  108. package/runtime/assets/liquidity-basis-bars-CaU5YtBA.js +1 -0
  109. package/runtime/assets/{ma-multiplier-s6ix-kL8.js → ma-multiplier-BBN7qsdV.js} +1 -1
  110. package/runtime/assets/{macro-calendar-Dhnx2n5Q.js → macro-calendar-cKBRneX9.js} +1 -1
  111. package/runtime/assets/market-bubbles-BKNkvOTg.js +1 -0
  112. package/runtime/assets/{market-cap-treemap-BWtivvac.js → market-cap-treemap-BSBU8mjq.js} +1 -1
  113. package/runtime/assets/market-hours-B10lWec_.js +1 -0
  114. package/runtime/assets/market-scatter-CVUa4ZQ_.js +1 -0
  115. package/runtime/assets/{marquee-NHBiLJUk.js → marquee-BS_quB4S.js} +1 -1
  116. package/runtime/assets/mayer-multiple-iiKonfXX.js +1 -0
  117. package/runtime/assets/mempool-fee-curve-CQ4nzab8.js +1 -0
  118. package/runtime/assets/{mini-line-chart-QWeuTPfP.js → mini-line-chart-DyG55cVW.js} +1 -1
  119. package/runtime/assets/{mining-pools-BxipfJmv.js → mining-pools-DROnvkZS.js} +1 -1
  120. package/runtime/assets/mining-pools-share-BhHh0hUJ.js +1 -0
  121. package/runtime/assets/misery-index-DpG7yLgX.js +1 -0
  122. package/runtime/assets/mover-row-Bz-YpFL3.js +1 -0
  123. package/runtime/assets/movers-bars-CEFjsHnv.js +1 -0
  124. package/runtime/assets/movers-bubbles-C-SriZvR.js +1 -0
  125. package/runtime/assets/{mvrv-BIwCiyRN.js → mvrv-Cg0t6U5X.js} +1 -1
  126. package/runtime/assets/mvrv-zscore-chart-qyOkheJb.js +1 -0
  127. package/runtime/assets/national-debt-BRX09_U_.js +1 -0
  128. package/runtime/assets/news-feed-DQHSPzk5.js +1 -0
  129. package/runtime/assets/nft-activity-bars-BmNs4RMC.js +1 -0
  130. package/runtime/assets/nft-bubbles-0f9wAld0.js +1 -0
  131. package/runtime/assets/{nft-collections-sD-yDfKU.js → nft-collections-Czp0t7ZU.js} +1 -1
  132. package/runtime/assets/nft-scatter-BHULn6_-.js +1 -0
  133. package/runtime/assets/{nft-treemap-Bqhk41Of.js → nft-treemap-D2Kj3AuL.js} +1 -1
  134. package/runtime/assets/note-BdVtsqXo.js +3 -0
  135. package/runtime/assets/{nupl-U-WHVDJ0.js → nupl-BrK2rcgi.js} +1 -1
  136. package/runtime/assets/nupl-cycle-chart-BlXOLj4A.js +1 -0
  137. package/runtime/assets/nyfed-fed-funds-band-gauge-DnzVhh9I.js +1 -0
  138. package/runtime/assets/nyfed-reference-rate-bars-CxLwUFUY.js +1 -0
  139. package/runtime/assets/nyfed-sofr-term-averages-bars-DxzLVO9o.js +1 -0
  140. package/runtime/assets/ofr-stress-category-area-TXpXiMP-.js +1 -0
  141. package/runtime/assets/ohlcv-volume-bars-BQZiJJ3u.js +1 -0
  142. package/runtime/assets/oi-treemap-BEusAMZU.js +1 -0
  143. package/runtime/assets/onchain-oscillator-overlay-BPa_jULR.js +1 -0
  144. package/runtime/assets/{open-interest-C0_M6MkH.js → open-interest-BqO1-ZYo.js} +1 -1
  145. package/runtime/assets/options-flow-skew-Cy0SUhs0.js +1 -0
  146. package/runtime/assets/{options-iv-CIHzBULM.js → options-iv-RsCKjmmC.js} +1 -1
  147. package/runtime/assets/options-max-pain-B2pA7KJP.js +1 -0
  148. package/runtime/assets/options-max-pain-multi-BLfX8Qe6.js +1 -0
  149. package/runtime/assets/options-oi-ladder-heatmap-Do8eYI3h.js +1 -0
  150. package/runtime/assets/options-oi-skew-D869gcp7.js +1 -0
  151. package/runtime/assets/{options-oi-strike-Db8lP27S.js → options-oi-strike-CKWXk22Q.js} +1 -1
  152. package/runtime/assets/{options-put-call-5ex7Ablt.js → options-put-call-DcSwyIIX.js} +1 -1
  153. package/runtime/assets/options-vol-smile-CqP0-CSw.js +1 -0
  154. package/runtime/assets/options-vol-spread-DMXdphxM.js +1 -0
  155. package/runtime/assets/payrolls-bars-15U_DxmS.js +1 -0
  156. package/runtime/assets/{pi-cycle-eACZGQhd.js → pi-cycle-tqHUEYSe.js} +1 -1
  157. package/runtime/assets/pie-chart-BIxKuHm-.js +1 -0
  158. package/runtime/assets/{pomodoro-CaS6y-eQ.js → pomodoro-DSswMPuv.js} +1 -1
  159. package/runtime/assets/portfolio-allocation-DHN6r6fl.js +1 -0
  160. package/runtime/assets/portfolio-common-e3o9U7qd.js +1 -0
  161. package/runtime/assets/{portfolio-holdings-D-SG9B5X.js → portfolio-holdings-Bf6vOm0e.js} +1 -1
  162. package/runtime/assets/portfolio-movers-DmaGwFtS.js +1 -0
  163. package/runtime/assets/{portfolio-value-DPKyirHc.js → portfolio-value-DLQHtwCl.js} +1 -1
  164. package/runtime/assets/portfolio-value-bars-B8XP7r22.js +1 -0
  165. package/runtime/assets/prediction-market-bars-Du1RxZc_.js +1 -0
  166. package/runtime/assets/prediction-market-scatter-bdlr6r_V.js +1 -0
  167. package/runtime/assets/{prediction-markets-Cnf0KZba.js → prediction-markets-DNDg43g9.js} +1 -1
  168. package/runtime/assets/prediction-markets-bubble-ccP01yj3.js +1 -0
  169. package/runtime/assets/{price-chart-BEnpZLyb.js → price-chart-Cw8OXmKH.js} +1 -1
  170. package/runtime/assets/{price-compare-8LvkF-xq.js → price-compare-txGWDCHD.js} +1 -1
  171. package/runtime/assets/{price-liveline-DkTeXuC2.js → price-liveline-F7uJKuTS.js} +1 -1
  172. package/runtime/assets/price-ticker-DQFyiHmW.js +1 -0
  173. package/runtime/assets/protocol-fees-bubbles-oV66t8AJ.js +1 -0
  174. package/runtime/assets/{protocol-fees-treemap-fvVOfUFt.js → protocol-fees-treemap-CsZhFjxB.js} +1 -1
  175. package/runtime/assets/protocol-fees-vs-tvl-scatter-CtLKoDeh.js +1 -0
  176. package/runtime/assets/protocol-tvl-bubbles-CuULi2KY.js +1 -0
  177. package/runtime/assets/protocol-tvl-by-category-BV2yIdZ_.js +1 -0
  178. package/runtime/assets/{protocol-tvl-chart-BfrszRqq.js → protocol-tvl-chart-BRPlR_kj.js} +1 -1
  179. package/runtime/assets/protocol-tvl-share-area-BeWSgocA.js +1 -0
  180. package/runtime/assets/{protocol-tvl-treemap-v5kaQdP4.js → protocol-tvl-treemap-BYECslhG.js} +1 -1
  181. package/runtime/assets/{puell-multiple-BdOLF9Wh.js → puell-multiple-akyTNZyp.js} +1 -1
  182. package/runtime/assets/put-call-gauge-CwrHYfdq.js +1 -0
  183. package/runtime/assets/{quote-slpulzHo.js → quote-6JmbHxfg.js} +1 -1
  184. package/runtime/assets/radial-gauge-0BzRQ6fO.js +1 -0
  185. package/runtime/assets/{rates-board-B6hHyiDM.js → rates-board-CiY6mWMz.js} +1 -1
  186. package/runtime/assets/real-wages-BTBOxvjP.js +1 -0
  187. package/runtime/assets/realized-price-CbjZ3Sqj.js +1 -0
  188. package/runtime/assets/{reserve-risk-_07r_h5w.js → reserve-risk-UlEv8oS1.js} +1 -1
  189. package/runtime/assets/returns-projector-qPZeZ-n9.js +1 -0
  190. package/runtime/assets/{risk-reward-Baq_TRho.js → risk-reward-DWcu9j4_.js} +1 -1
  191. package/runtime/assets/{rsi-momentum-B6oTu5W6.js → rsi-momentum-BuasFcVH.js} +1 -1
  192. package/runtime/assets/{rules-card-D98hKEwY.js → rules-card-DkjHPbht.js} +1 -1
  193. package/runtime/assets/scatter-chart-B78EA7lD.js +1 -0
  194. package/runtime/assets/sector-bars-JKmedArM.js +1 -0
  195. package/runtime/assets/sector-bubbles-DLXckuua.js +1 -0
  196. package/runtime/assets/{sector-performance-DlnYIM-L.js → sector-performance-C_2-xbIq.js} +1 -1
  197. package/runtime/assets/{sector-treemap-C3sX3Q9o.js → sector-treemap-DquBCyc3.js} +1 -1
  198. package/runtime/assets/sentiment-gauge-CuNvuk1q.js +1 -0
  199. package/runtime/assets/{session-progress-BYwNuuP-.js → session-progress-BDhJHQEn.js} +1 -1
  200. package/runtime/assets/{short-volume-CxBDSjP6.js → short-volume-Deb7fra_.js} +1 -1
  201. package/runtime/assets/short-volume-bars-DRjpg7RS.js +1 -0
  202. package/runtime/assets/{snake-CGV0Kg4z.js → snake-B9EEDroM.js} +1 -1
  203. package/runtime/assets/{sopr-DAn99w9D.js → sopr-DM_gpDem.js} +1 -1
  204. package/runtime/assets/{spotify-embed-BBfim9vk.js → spotify-embed-Dxt1RnUX.js} +1 -1
  205. package/runtime/assets/{stablecoin-chains-D4EKi_YR.js → stablecoin-chains-LzYMilQE.js} +1 -1
  206. package/runtime/assets/{stablecoin-supply-1m6FGR7-.js → stablecoin-supply-69kqOBoU.js} +1 -1
  207. package/runtime/assets/stopwatch-ClPrrveo.js +1 -0
  208. package/runtime/assets/{top-movers-CAqBZOUL.js → top-movers-BRiiYOPQ.js} +1 -1
  209. package/runtime/assets/treasury-auction-demand-scatter-yYNPz1VC.js +1 -0
  210. package/runtime/assets/treasury-auction-size-bars-CGD6MeAz.js +1 -0
  211. package/runtime/assets/{treasury-auctions-Bl19yaM_.js → treasury-auctions-Z_4MtXmL.js} +1 -1
  212. package/runtime/assets/treasury-avg-rate-bars-FXGz1a7e.js +1 -0
  213. package/runtime/assets/treasury-debt-composition-area-5yRh0K6a.js +1 -0
  214. package/runtime/assets/{treemap-leaf-A45Ge4-e.js → treemap-leaf-QG-L-SIG.js} +1 -1
  215. package/runtime/assets/trending-bars-z_cjmEXN.js +1 -0
  216. package/runtime/assets/trending-bubbles-nwoxKQEW.js +1 -0
  217. package/runtime/assets/{trending-coins-Dm9R9zGQ.js → trending-coins-9vrbEbBm.js} +1 -1
  218. package/runtime/assets/tvl-bars-BkJcttcu.js +1 -0
  219. package/runtime/assets/tvl-bubbles-D4tahOC6.js +1 -0
  220. package/runtime/assets/tvl-treemap-B7kWI7o0.js +1 -0
  221. package/runtime/assets/{video-CkvIGlHg.js → video-Dsc13Zja.js} +1 -1
  222. package/runtime/assets/volume-movers-scatter-BA8Wmoil.js +1 -0
  223. package/runtime/assets/volume-profile-DcSNvDqP.js +1 -0
  224. package/runtime/assets/volume-share-donut-3MenMO-V.js +1 -0
  225. package/runtime/assets/yield-composition-scatter-rfxC16n2.js +1 -0
  226. package/runtime/assets/{yield-curve-DlXQg4sl.js → yield-curve-DXsfXy4P.js} +1 -1
  227. package/runtime/assets/yield-momentum-bars-B9nKuItO.js +1 -0
  228. package/runtime/assets/yield-risk-pie-DUxkXYIQ.js +1 -0
  229. package/runtime/assets/yield-scanner-sCBXpQTV.js +1 -0
  230. package/runtime/assets/yield-scatter-BZHOhFcm.js +1 -0
  231. package/runtime/index.html +2 -2
  232. package/runtime/widget-icons/custom-data.png +0 -0
  233. package/runtime/assets/btc-hashrate-Dy2c30Gb.js +0 -1
  234. package/runtime/assets/chart-utils-Ct7WziT9.js +0 -1
  235. package/runtime/assets/checklist-Be_y1aTE.js +0 -1
  236. package/runtime/assets/d3-Dr3MHXm3.js +0 -1
  237. package/runtime/assets/dex-hot-pools-C4TrRB17.js +0 -1
  238. package/runtime/assets/dex-volume-chart-BLR-L_B0.js +0 -1
  239. package/runtime/assets/dino-game-CiGWzsag.js +0 -1
  240. package/runtime/assets/divider-DvK5oM9v.js +0 -1
  241. package/runtime/assets/editor-CQM8mtD8.css +0 -1
  242. package/runtime/assets/editor-EOEtB4_n.js +0 -68
  243. package/runtime/assets/format-CfAcS4D8.js +0 -1
  244. package/runtime/assets/fundamentals-zRwGUcmb.js +0 -1
  245. package/runtime/assets/funding-comparison-wCNoCb1H.js +0 -1
  246. package/runtime/assets/funding-heatmap-a4zdnKi9.js +0 -1
  247. package/runtime/assets/heading-b5H33lig.js +0 -1
  248. package/runtime/assets/image-C8ZSUHEx.js +0 -1
  249. package/runtime/assets/index-C-VdMqKb.css +0 -1
  250. package/runtime/assets/index-kB-TyxKi.js +0 -1073
  251. package/runtime/assets/indicators-CogwjDn9.js +0 -1
  252. package/runtime/assets/inflation-pulse-CoXcuabd.js +0 -1
  253. package/runtime/assets/labor-market-DR0j05Gy.js +0 -1
  254. package/runtime/assets/market-hours-wSrW5Elv.js +0 -1
  255. package/runtime/assets/mayer-multiple-CZC5q6ra.js +0 -1
  256. package/runtime/assets/mover-row-CUd1i2yt.js +0 -1
  257. package/runtime/assets/national-debt-DwC5azy3.js +0 -1
  258. package/runtime/assets/news-feed-BhAsJ6gt.js +0 -1
  259. package/runtime/assets/note-C1-RPOvR.js +0 -1
  260. package/runtime/assets/portfolio-allocation-NR-4wbGL.js +0 -1
  261. package/runtime/assets/portfolio-common-Cfpnudvk.js +0 -1
  262. package/runtime/assets/price-ticker-DgDJ3k4b.js +0 -1
  263. package/runtime/assets/realized-price-dn6bApj-.js +0 -1
  264. package/runtime/assets/returns-projector-NBs7iGAV.js +0 -1
  265. package/runtime/assets/stopwatch-CCqsSaII.js +0 -1
  266. package/runtime/assets/tvl-treemap-CSM9ioUr.js +0 -1
  267. package/runtime/assets/volume-profile-UJPTgNwV.js +0 -1
  268. package/runtime/assets/yield-scanner-Qm88hZuv.js +0 -1
@@ -0,0 +1 @@
1
+ import{j as t}from"./react-qoZPGuNy.js";import{A as n}from"./index-BHlJHScr.js";import{e as r,a as d,c as l}from"./format-DxkEZcwQ.js";function c({symbol:i,label:a,price:s,changePct:o,logoSize:e=16,gap:m="gap-2"}){return t.jsxs("div",{className:`grid grid-cols-[auto_minmax(0,1fr)_auto_auto] items-center ${m}`,title:s!==void 0?`${a} · ${r(s)}`:a,children:[t.jsx(n,{symbol:i,size:e}),t.jsx("span",{className:"body-sm truncate font-bold text-strong",children:a}),t.jsx("span",{className:"caption text-soft text-right tabular-nums",children:s!==void 0?r(s):"—"}),t.jsx("span",{className:`caption text-right font-bold tabular-nums${o===void 0?" text-disabled":""}`,style:o!==void 0?{color:l(o)}:void 0,children:o!==void 0?d(o):"…"})]})}export{c as M};
@@ -0,0 +1 @@
1
+ import{r as d,j as r}from"./react-qoZPGuNy.js";import{a as p,D as f,U as u}from"./format-DxkEZcwQ.js";import{f as x,cp as l,bg as g}from"./index-BHlJHScr.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{B as v}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function j({config:a}){const{entries:i,isLoading:h}=g(),e=a.window,n=d.useMemo(()=>{const o=i.filter(t=>{var s;return Number.isFinite((s=t.changePct)==null?void 0:s[e])&&t.volume24hUsd>0}).sort((t,s)=>s.changePct[e]-t.changePct[e]),m=Math.floor(a.limit/2);return(o.length<=a.limit?o:[...o.slice(0,m),...o.slice(-m)]).map(t=>({label:t.symbol,value:t.changePct[e]}))},[i,e,a.limit]);return h?r.jsx(c,{loading:!0,children:"loading movers…"}):n.length===0?r.jsx(c,{children:"no mover data yet"}):r.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[r.jsx(v,{data:n,orientation:"horizontal",color:u,negativeColor:f,height:Math.max(n.length*22,96),formatValue:p}),r.jsxs("div",{className:"caption text-soft text-center",children:["top movers · ",e," change"]})]})}const N=x({...l,component:j});export{N as moversBarsFrame};
@@ -0,0 +1 @@
1
+ import{r as b,j as h}from"./react-qoZPGuNy.js";import{f as g,cn as m,bg as d,af as p}from"./index-BHlJHScr.js";import{B as u}from"./bubbles-shared-DlmjtiIA.js";import{c,a as f}from"./format-DxkEZcwQ.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;function P({config:a}){const{entries:s,isLoading:i}=d(),o=a.window,l=b.useMemo(()=>{const t=s.filter(e=>{var r;return Number.isFinite((r=e.changePct)==null?void 0:r[o])&&e.volume24hUsd>0}).sort((e,r)=>r.changePct[o]-e.changePct[o]),n=Math.floor(a.limit/2);return(t.length<=a.limit?t:[...t.slice(0,n),...t.slice(-n)]).map(e=>({id:e.symbol,label:e.symbol,value:Math.max(Math.abs(e.changePct[o]),.05),imageUrl:p(e.symbol),color:c(e.changePct[o]),borderColor:c(e.changePct[o]),changePct:e.changePct[o]}))},[s,o,a.limit]);return h.jsx(u,{nodes:l,isLoading:i,loadingText:"loading movers…",emptyText:"no mover data yet",caption:`area by ${o} move · green gainers / red losers`,formatTitle:t=>`${t.label} · ${f(t.changePct)} ${o}`})}const j=g({...m,component:P});export{j as moversBubblesFrame};
@@ -1 +1 @@
1
- import{j as a}from"./react-qoZPGuNy.js";import{z as l,M as s,Z as m,a as c}from"./cycle-shared-pyXzkgt1.js";import{d as v,D as d,U as p}from"./format-CfAcS4D8.js";import{t as u,w as f}from"./indicators-CogwjDn9.js";import{f as O,b7 as i,b8 as R}from"./index-kB-TyxKi.js";import{F as e}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-QWeuTPfP.js";import"./d3-Dr3MHXm3.js";import"./utils-DxneYyA_.js";i.schema;function h({config:t}){const{valuation:o,isLoading:n}=R();if(n)return a.jsx(e,{loading:!0,children:"loading MVRV…"});if(!o)return a.jsx(e,{children:"no on-chain data yet"});const r=l(o.mvrv,[{upTo:1,zone:{label:"Undervalued",color:p}},{upTo:2,zone:{label:"Fair value",color:m}},{upTo:3,zone:{label:"Elevated",color:c}}],{label:"Overvalued",color:d});return a.jsx(s,{caption:"MVRV Ratio",headline:o.mvrv.toFixed(2),headlineColor:r.color,zone:r,sub:`Z ${o.mvrvZScore.toFixed(2)} · RP ${v(o.realizedPrice)}`,sparkline:u(o.history.mvrv,f(t.window)),sparkColor:r.color})}const V=O({...i,component:h});export{V as mvrvFrame};
1
+ import{j as a}from"./react-qoZPGuNy.js";import{z as l,M as s,Z as m,a as c}from"./cycle-shared-XoGVsOjC.js";import{e as v,D as d,U as p}from"./format-DxkEZcwQ.js";import{t as u,w as f}from"./indicators-Cw7CVPn4.js";import{f as O,bh as i,bi as h}from"./index-BHlJHScr.js";import{F as e}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function R({config:t}){const{valuation:o,isLoading:n}=h();if(n)return a.jsx(e,{loading:!0,children:"loading MVRV…"});if(!o)return a.jsx(e,{children:"no on-chain data yet"});const r=l(o.mvrv,[{upTo:1,zone:{label:"Undervalued",color:p}},{upTo:2,zone:{label:"Fair value",color:m}},{upTo:3,zone:{label:"Elevated",color:c}}],{label:"Overvalued",color:d});return a.jsx(s,{caption:"MVRV Ratio",headline:o.mvrv.toFixed(2),headlineColor:r.color,zone:r,sub:`Z ${o.mvrvZScore.toFixed(2)} · RP ${v(o.realizedPrice)}`,sparkline:u(o.history.mvrv,f(t.window)),sparkColor:r.color})}const V=O({...i,component:R});export{V as mvrvFrame};
@@ -0,0 +1 @@
1
+ import{r as m,j as t}from"./react-qoZPGuNy.js";import{w as c,a as d,t as u}from"./indicators-Cw7CVPn4.js";import{f,d4 as s,bi as h}from"./index-BHlJHScr.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{C as p,a as l}from"./chart-utils-DGogNvJT.js";import{M as v}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function S({config:e}){const{valuation:a,isLoading:n}=h(),o=m.useMemo(()=>{if(!a)return[];const r=c(e.window);return[{id:"mvrv-zscore",name:"MVRV Z-Score",color:p[0],data:d(u(a.history.mvrvZScore,r))}]},[a,e.window]);return n?t.jsx(i,{loading:!0,children:"loading MVRV Z-Score…"}):!a||o.every(r=>r.data.length===0)?t.jsx(i,{children:"no on-chain data yet"}):t.jsx(v,{series:o,timeframe:l.YTD,height:220,formatValue:r=>r.toFixed(2)})}const F=f({...s,component:S});export{F as mvrvZscoreChartFrame};
@@ -0,0 +1 @@
1
+ import{r as m,j as t}from"./react-qoZPGuNy.js";import{f as a}from"./format-DxkEZcwQ.js";import{f as x,U as o,V as h}from"./index-BHlJHScr.js";import{F as l}from"./ui-Bq3RQsdJ.js";import{M as p}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";o.schema;function u({config:n}){const{debt:e,isLoading:d}=h(n.trendDays),c=m.useMemo(()=>((e==null?void 0:e.trend)??[]).map(r=>({date:new Date(r.time).toISOString(),value:r.total})),[e==null?void 0:e.trend]);if(d)return t.jsx(l,{loading:!0,children:"loading national debt…"});if(!e)return t.jsx(l,{children:"no debt data yet"});const s=e.trend[0],i=s?e.total-s.total:null;return t.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("div",{className:"caption text-soft uppercase",children:"total public debt"}),t.jsxs("div",{className:"body-sm text-normal",children:["as of ",e.date]})]}),t.jsx("div",{className:"caption text-soft text-right",children:"daily"})]}),t.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-x-3 gap-y-1",children:[t.jsx("div",{className:"metric-xl text-strong leading-none",children:a(e.total)}),i!==null&&s&&t.jsxs("div",{className:"min-w-0 text-right",children:[t.jsxs("div",{className:"body-md text-normal font-bold tabular-nums",children:[i>=0?"+":"",a(i)]}),t.jsxs("div",{className:"caption text-soft truncate",children:["since ",s.date]})]})]}),t.jsx(p,{data:c,width:210,height:42,color:"hsl(var(--zf-accent-hue, 242) 85% 72%)"}),n.showSplit&&t.jsxs("div",{className:"grid grid-cols-2 gap-1.5 border-t border-white/[0.08] pt-2",children:[t.jsxs("div",{className:"rounded bg-white/[0.04] px-2 py-1.5",children:[t.jsx("div",{className:"caption text-soft truncate",children:"Held by public"}),t.jsx("div",{className:"body-sm text-strong font-bold tabular-nums",children:a(e.heldByPublic)})]}),t.jsxs("div",{className:"rounded bg-white/[0.04] px-2 py-1.5",children:[t.jsx("div",{className:"caption text-soft truncate",children:"Intragovernmental"}),t.jsx("div",{className:"body-sm text-strong font-bold tabular-nums",children:a(e.intragovernmental)})]})]})]})}const w=x({...o,component:u});export{w as nationalDebtFrame};
@@ -0,0 +1 @@
1
+ import{j as s,r as h}from"./react-qoZPGuNy.js";import{F as f}from"./feed-row-mVg1d5Zj.js";import{t as p}from"./format-DxkEZcwQ.js";import{f as x,a5 as i,a6 as b}from"./index-BHlJHScr.js";import{F as t,s as j}from"./ui-Bq3RQsdJ.js";i.schema;const g={coindesk:"CoinDesk",cointelegraph:"Cointelegraph",decrypt:"Decrypt",cnbc:"CNBC Markets",nasdaq:"Nasdaq",stocks:"Google News"};function y({src:e}){const[r,a]=h.useState(!1);return r?null:s.jsx("img",{src:e,alt:"",loading:"lazy",decoding:"async",referrerPolicy:"no-referrer",onError:()=>a(!0),className:"size-12 shrink-0 rounded-md bg-white/[0.04] object-cover ring-1 ring-white/10"})}function w({item:e}){return s.jsx(f,{href:e.url,leading:e.imageUrl?s.jsx(y,{src:e.imageUrl}):void 0,title:e.title,subtitle:e.summary||void 0,meta:e.publishedAt!==void 0?p(e.publishedAt):void 0})}function N({config:e}){var n;const r=e.source==="stocks",a=r&&e.symbols.length===0,c=a?"":e.source,{items:o,isLoading:d}=b(c,r?e.symbols:void 0,e.count);if(a)return s.jsx(t,{children:"add stock symbols to show company headlines"});if(d)return s.jsx(t,{loading:!0,children:"loading headlines…"});const m=((n=o[0])==null?void 0:n.source)??g[e.source]??"news";return s.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[s.jsx("span",{className:"caption text-soft truncate",children:m}),s.jsx("span",{className:"caption text-soft shrink-0",children:"headlines"})]}),s.jsx("div",{className:j,children:o.length>0?o.map((l,u)=>s.jsx(w,{item:l},`${l.url}-${u}`)):s.jsxs(t,{children:["no headlines ",r?"for these symbols":"available"," — the runtime proxy may be offline"]})})]})}const A=x({...i,component:N});export{A as newsFeedFrame};
@@ -0,0 +1 @@
1
+ import{r as m,j as t}from"./react-qoZPGuNy.js";import{d as c}from"./format-DxkEZcwQ.js";import{f,cI as o,c3 as h}from"./index-BHlJHScr.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{B as p}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";o.schema;function x({config:s}){const{collections:r,isLoading:n}=h(),e=m.useMemo(()=>[...r].sort((a,l)=>l.sales24h-a.sales24h).slice(0,s.limit).map(a=>({label:a.name,value:a.sales24h})),[r,s.limit]);return n?t.jsx(i,{loading:!0,children:"loading NFT activity…"}):e.length===0?t.jsx(i,{children:"no NFT data yet"}):t.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[t.jsx(p,{data:e,orientation:"horizontal",height:Math.max(e.length*26,96),formatValue:c}),t.jsx("div",{className:"caption text-soft text-center",children:"NFT sales · last 24h"})]})}const y=f({...o,component:x});export{y as nftActivityBarsFrame};
@@ -0,0 +1 @@
1
+ import{r as m,j as f}from"./react-qoZPGuNy.js";import{B as i}from"./bubbles-shared-DlmjtiIA.js";import{c as l,e as c,a as p}from"./format-DxkEZcwQ.js";import{f as h,cl as s,c3 as d}from"./index-BHlJHScr.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function b({config:e}){const{collections:r,isLoading:n}=d(),a=m.useMemo(()=>r.filter(o=>o.marketCapUsd>0).slice(0,e.topN).map(o=>({id:o.name,label:o.name,value:o.marketCapUsd,color:l(o.floorChangePct24h),borderColor:l(o.floorChangePct24h),floorUsd:o.floorUsd,floorChangePct24h:o.floorChangePct24h})),[r,e.topN]);return f.jsx(i,{nodes:a,isLoading:n,loadingText:"loading NFT floors…",emptyText:"no NFT data",caption:`area by mcap · ring by 24h floor change · top ${a.length}`,formatTitle:o=>{const t=o;return`${t.label} · ${c(t.floorUsd)} floor · ${p(t.floorChangePct24h)}`}})}const T=h({...s,component:b});export{T as nftBubblesFrame};
@@ -1 +1 @@
1
- import{j as s}from"./react-qoZPGuNy.js";import{d as l,f as i,a as m,c}from"./format-CfAcS4D8.js";import{M as f}from"./metric-row-BVVhjsjK.js";import{f as d,bU as r,bV as h}from"./index-kB-TyxKi.js";import{F as e,s as p}from"./ui-Bq3RQsdJ.js";r.schema;function u({config:t}){const{collections:a,isLoading:n}=h();return n?s.jsx(e,{loading:!0,children:"loading NFT floors…"}):a.length===0?s.jsx(e,{children:"no NFT data"}):s.jsx("div",{className:p,children:a.slice(0,t.topN).map(o=>s.jsx(f,{label:o.name,meta:s.jsxs("span",{children:[i(o.volume24hUsd)," vol"," · ",s.jsx("span",{style:{color:c(o.floorChangePct24h)},children:m(o.floorChangePct24h)})]}),value:l(o.floorUsd)},o.id))})}const N=d({...r,component:u});export{N as nftCollectionsFrame};
1
+ import{j as s}from"./react-qoZPGuNy.js";import{e as l,f as i,a as m,c}from"./format-DxkEZcwQ.js";import{M as f}from"./metric-row-BVVhjsjK.js";import{f as d,c2 as r,c3 as h}from"./index-BHlJHScr.js";import{F as e,s as p}from"./ui-Bq3RQsdJ.js";r.schema;function u({config:t}){const{collections:a,isLoading:n}=h();return n?s.jsx(e,{loading:!0,children:"loading NFT floors…"}):a.length===0?s.jsx(e,{children:"no NFT data"}):s.jsx("div",{className:p,children:a.slice(0,t.topN).map(o=>s.jsx(f,{label:o.name,meta:s.jsxs("span",{children:[i(o.volume24hUsd)," vol"," · ",s.jsx("span",{style:{color:c(o.floorChangePct24h)},children:m(o.floorChangePct24h)})]}),value:l(o.floorUsd)},o.id))})}const N=d({...r,component:u});export{N as nftCollectionsFrame};
@@ -0,0 +1 @@
1
+ import{r as n,j as r}from"./react-qoZPGuNy.js";import{c,f,a as h}from"./format-DxkEZcwQ.js";import{f as d,cs as i,c3 as p}from"./index-BHlJHScr.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{S as u}from"./scatter-chart-B78EA7lD.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function x(e){return e.length>12?`${e.slice(0,11)}…`:e}function g({config:e}){const{collections:a,isLoading:l}=p(),o=n.useMemo(()=>a.filter(t=>Number.isFinite(t.floorChangePct24h)&&t.volume24hUsd>0).sort((t,m)=>m.marketCapUsd-t.marketCapUsd).slice(0,e.limit).map(t=>({id:t.id,label:x(t.name),x:t.floorChangePct24h,y:t.volume24hUsd,weight:t.marketCapUsd,color:c(t.floorChangePct24h)})),[a,e.limit]);return l?r.jsx(s,{loading:!0,children:"loading NFTs…"}):o.length===0?r.jsx(s,{children:"no NFT data yet"}):r.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[r.jsx(u,{data:o,yScale:"log",height:210,zeroXLine:!0,formatX:h,formatY:f,maxLabels:10}),r.jsx("div",{className:"caption text-soft text-center",children:"24h floor change (x) vs 24h volume (y, log)"})]})}const y=d({...i,component:g});export{y as nftScatterFrame};
@@ -1 +1 @@
1
- import{r as f,j as s}from"./react-qoZPGuNy.js";import{d as i,a as l}from"./format-CfAcS4D8.js";import{f as p,b_ as m,bV as c}from"./index-kB-TyxKi.js";import{T as d,a as h}from"./treemap-leaf-A45Ge4-e.js";import{F as n}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-Dr3MHXm3.js";m.schema;function u({width:t,height:a,data:e}){const r=i(e.floorUsd);return s.jsx(h,{width:t,height:a,label:e.id,secondary:r,title:`${e.id} · ${r} floor · ${l(e.floorChangePct24h)}`})}function C({config:t}){const{collections:a,isLoading:e}=c(),r=f.useMemo(()=>a.filter(o=>o.marketCapUsd>0).slice(0,t.topN).map(o=>({id:o.name,value:o.marketCapUsd,floorUsd:o.floorUsd,floorChangePct24h:o.floorChangePct24h})),[a,t.topN]);return e?s.jsx(n,{loading:!0,children:"loading NFT floors…"}):r.length===0?s.jsx(n,{children:"no NFT data"}):s.jsx(d,{data:r,LeafComponent:u,getColorValue:o=>o.floorChangePct24h})}const U=p({...m,component:C});export{U as nftTreemapFrame};
1
+ import{r as f,j as s}from"./react-qoZPGuNy.js";import{e as i,a as l}from"./format-DxkEZcwQ.js";import{f as p,c8 as m,c3 as c}from"./index-BHlJHScr.js";import{T as d,a as h}from"./treemap-leaf-QG-L-SIG.js";import{F as n}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";m.schema;function u({width:t,height:a,data:e}){const r=i(e.floorUsd);return s.jsx(h,{width:t,height:a,label:e.id,secondary:r,title:`${e.id} · ${r} floor · ${l(e.floorChangePct24h)}`})}function C({config:t}){const{collections:a,isLoading:e}=c(),r=f.useMemo(()=>a.filter(o=>o.marketCapUsd>0).slice(0,t.topN).map(o=>({id:o.name,value:o.marketCapUsd,floorUsd:o.floorUsd,floorChangePct24h:o.floorChangePct24h})),[a,t.topN]);return e?s.jsx(n,{loading:!0,children:"loading NFT floors…"}):r.length===0?s.jsx(n,{children:"no NFT data"}):s.jsx(d,{data:r,LeafComponent:u,getColorValue:o=>o.floorChangePct24h})}const U=p({...m,component:C});export{U as nftTreemapFrame};
@@ -0,0 +1,3 @@
1
+ import{j as c,r as d}from"./react-qoZPGuNy.js";import{f as y,a7 as k,a8 as N}from"./index-BHlJHScr.js";import{s as w}from"./ui-Bq3RQsdJ.js";const u={code:"rounded px-1 py-px font-mono text-[0.85em] text-strong",link:"text-highlight underline underline-offset-2 hover:opacity-80",strong:"text-strong font-bold",em:"italic",h1:"body-lg text-strong font-bold",h2:"body-md text-strong font-bold",h3:"body-sm text-strong font-semibold uppercase tracking-wide",list:"space-y-0.5 pl-5"};function E(s){return/^https?:\/\//i.test(s.trim())}function f(s){const e=[];let r="",o=0;const n=()=>{r&&(e.push(r),r="")};let t=0;for(;t<s.length;){const a=s[t],h=s.slice(t);if(a==="`"){const l=s.indexOf("`",t+1);if(l>t){n(),e.push(c.jsx("code",{className:u.code,style:{background:"hsl(0 0% var(--zf-ink-l, 100%) / 0.1)"},children:s.slice(t+1,l)},o++)),t=l+1;continue}}if(a==="["){const l=/^\[([^\]]+)\]\(([^)\s]+)\)/.exec(h);if(l){const[i,m,x]=l;n(),E(x)?e.push(c.jsx("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:u.link,onClick:p=>p.stopPropagation(),children:f(m)},o++)):e.push(c.jsx(d.Fragment,{children:f(m)},o++)),t+=i.length;continue}}if(a==="*"&&s[t+1]==="*"){const l=s.indexOf("**",t+2);if(l>t+1){n(),e.push(c.jsx("strong",{className:u.strong,children:f(s.slice(t+2,l))},o++)),t=l+2;continue}}if(a==="*"){const l=s.indexOf("*",t+1);if(l>t+1){n(),e.push(c.jsx("em",{className:u.em,children:f(s.slice(t+1,l))},o++)),t=l+1;continue}}r+=a,t++}return n(),e}function $(s,e){return c.jsx("p",{className:"leading-snug",children:s.map((r,o)=>c.jsxs(d.Fragment,{children:[o>0&&c.jsx("br",{}),f(r)]},o))},e)}const j=/^(#{1,3})\s+(.*)$/,g=/^\s*[-*]\s+(.*)$/,b=/^\s*\d+\.\s+(.*)$/;function v(s){const e=s.replace(/\r\n?/g,`
2
+ `).split(`
3
+ `),r=[];let o=0,n=0;for(;n<e.length;){const t=e[n];if(t.trim()===""){n++;continue}const a=j.exec(t);if(a){const l=a[1].length,i=l===1?u.h1:l===2?u.h2:u.h3;r.push(c.jsx("div",{className:i,children:f(a[2].trim())},o++)),n++;continue}if(g.test(t)||b.test(t)){const l=!g.test(t),i=l?b:g,m=[];for(;n<e.length&&i.test(e[n]);){const p=i.exec(e[n]);m.push(c.jsx("li",{children:f(p?p[1]:"")},m.length)),n++}const x=l?"ol":"ul";r.push(c.jsx(x,{className:`${u.list} ${l?"list-decimal":"list-disc"}`,children:m},o++));continue}const h=[];for(;n<e.length&&e[n].trim()!==""&&!j.test(e[n])&&!g.test(e[n])&&!b.test(e[n]);)h.push(e[n]),n++;r.push($(h,o++))}return r}k.schema;function C({config:s}){const e=N(),[r,o]=d.useState(!1),[n,t]=d.useState(s.text),a=d.useRef(null);d.useEffect(()=>{t(s.text)},[s.text]),d.useEffect(()=>{var i;r&&((i=a.current)==null||i.focus())},[r]);const h=d.useCallback(()=>{n!==s.text&&(e==null||e({text:n})),o(!1)},[e,n,s.text]),l=s.align==="center";return r?c.jsx("textarea",{ref:a,className:`body-sm text-normal h-full w-full resize-none bg-transparent outline-none placeholder:text-disabled ${l?"text-center":""}`,value:n,onChange:i=>t(i.target.value),onBlur:h,onKeyDown:i=>{i.key==="Escape"&&(t(s.text),o(!1))},placeholder:"Write a note… (Markdown supported)"}):c.jsx("div",{className:`body-sm text-normal ${w} ${l?"flex items-center justify-center text-center":""} ${e?"cursor-text":""}`,onClick:()=>e&&o(!0),title:e?"Click to edit":void 0,children:s.text?c.jsx("div",{className:`flex flex-col gap-2 break-words ${l?"items-center text-center":""}`,children:v(s.text)}):c.jsx("span",{className:"text-soft italic",children:e?"Click to add a note…":"New note"})})}const _=y({...k,component:C});export{_ as noteFrame};
@@ -1 +1 @@
1
- import{j as e}from"./react-qoZPGuNy.js";import{z as s,Z as r,a as p,M as m}from"./cycle-shared-pyXzkgt1.js";import{D as u,U as c}from"./format-CfAcS4D8.js";import{t as d,w as f}from"./indicators-CogwjDn9.js";import{f as O,b9 as i,b8 as h}from"./index-kB-TyxKi.js";import{F as n}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-QWeuTPfP.js";import"./d3-Dr3MHXm3.js";import"./utils-DxneYyA_.js";i.schema;function z({config:l}){const{valuation:o,isLoading:t}=h();if(t)return e.jsx(n,{loading:!0,children:"loading NUPL…"});if(!o)return e.jsx(n,{children:"no on-chain data yet"});const a=s(o.nupl,[{upTo:0,zone:{label:"Capitulation",color:c}},{upTo:.25,zone:{label:"Hope / Fear",color:r}},{upTo:.5,zone:{label:"Optimism",color:r}},{upTo:.75,zone:{label:"Belief",color:p}}],{label:"Euphoria / Greed",color:u});return e.jsx(m,{caption:"Net Unrealized P/L",headline:`${(o.nupl*100).toFixed(1)}%`,headlineColor:a.color,zone:a,sparkline:d(o.history.nupl,f(l.window)),sparkColor:a.color})}const R=O({...i,component:z});export{R as nuplFrame};
1
+ import{j as e}from"./react-qoZPGuNy.js";import{z as s,Z as r,a as p,M as m}from"./cycle-shared-XoGVsOjC.js";import{D as u,U as c}from"./format-DxkEZcwQ.js";import{t as d,w as f}from"./indicators-Cw7CVPn4.js";import{f as O,bj as i,bi as h}from"./index-BHlJHScr.js";import{F as n}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function z({config:l}){const{valuation:o,isLoading:t}=h();if(t)return e.jsx(n,{loading:!0,children:"loading NUPL…"});if(!o)return e.jsx(n,{children:"no on-chain data yet"});const a=s(o.nupl,[{upTo:0,zone:{label:"Capitulation",color:c}},{upTo:.25,zone:{label:"Hope / Fear",color:r}},{upTo:.5,zone:{label:"Optimism",color:r}},{upTo:.75,zone:{label:"Belief",color:p}}],{label:"Euphoria / Greed",color:u});return e.jsx(m,{caption:"Net Unrealized P/L",headline:`${(o.nupl*100).toFixed(1)}%`,headlineColor:a.color,zone:a,sparkline:d(o.history.nupl,f(l.window)),sparkColor:a.color})}const R=O({...i,component:z});export{R as nuplFrame};
@@ -0,0 +1 @@
1
+ import{r as u,j as r}from"./react-qoZPGuNy.js";import{b as l}from"./format-DxkEZcwQ.js";import{w as p,t as c}from"./indicators-Cw7CVPn4.js";import{f,d5 as m,bi as d}from"./index-BHlJHScr.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{C as h,a as C}from"./chart-utils-DGogNvJT.js";import{M as w}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;function x({config:e}){const{valuation:a,isLoading:s}=d(),o=u.useMemo(()=>{if(!a)return[];const t=p(e.window);return[{id:"nupl",name:"NUPL",color:h[0],data:c(a.history.nupl,t).map(i=>({date:new Date(i.time).toISOString(),value:i.value*100}))}]},[a,e.window]);return s?r.jsx(n,{loading:!0,children:"loading NUPL…"}):!a||o.every(t=>t.data.length===0)?r.jsx(n,{children:"no on-chain data yet"}):r.jsx(w,{series:o,timeframe:C.YTD,height:220,formatValue:t=>l(t,1)})}const O=f({...m,component:x});export{O as nuplCycleChartFrame};
@@ -0,0 +1 @@
1
+ import{j as t}from"./react-qoZPGuNy.js";import{b as a}from"./format-DxkEZcwQ.js";import{f,de as o,al as m}from"./index-BHlJHScr.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{R as l}from"./radial-gauge-0BzRQ6fO.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";o.schema;const r=(s=1)=>`hsl(var(--zf-accent-hue, 242) 85% 72% / ${s})`;function u(s){const{rates:d,isLoading:i}=m(),e=d.find(c=>c.code==="EFFR");return i?t.jsx(n,{loading:!0,children:"loading fed funds rate…"}):!e||e.targetRateFrom===void 0||e.targetRateTo===void 0?t.jsx(n,{children:"no fed-funds target data yet"}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-1",children:[t.jsxs(l,{value:e.rate,min:e.targetRateFrom,max:e.targetRateTo,color:r(),size:170,children:[t.jsx("div",{className:"metric-xl leading-none",style:{color:r(),textShadow:`0 0 28px ${r(.35)}`},children:a(e.rate)}),t.jsx("div",{className:"caption text-soft mt-1 uppercase tracking-wide",children:"effective fed funds"})]}),t.jsxs("div",{className:"caption text-soft",children:["target ",a(e.targetRateFrom),"–",a(e.targetRateTo)]})]})}const v=f({...o,component:u});export{v as nyfedFedFundsBandGaugeFrame};
@@ -0,0 +1 @@
1
+ import{r as i,j as r}from"./react-qoZPGuNy.js";import{f,b as c}from"./format-DxkEZcwQ.js";import{f as u,dc as n,al as d}from"./index-BHlJHScr.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{B as p}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";n.schema;function h({config:t}){const{rates:o,isLoading:m}=d(),a=i.useMemo(()=>{const l=o.slice(0,t.limit);return t.metric==="volume"?l.filter(e=>e.volumeInBillions!==void 0).map(e=>({label:e.label,value:e.volumeInBillions*1e9})):l.map(e=>({label:e.label,value:e.rate}))},[o,t.limit,t.metric]);return m?r.jsx(s,{loading:!0,children:"loading reference rates…"}):a.length===0?r.jsx(s,{children:"no reference-rate data yet"}):r.jsx("div",{className:"flex h-full flex-col justify-center text-normal",children:r.jsx(p,{data:a,orientation:"horizontal",height:Math.max(a.length*26,96),formatValue:t.metric==="volume"?f:c})})}const F=u({...n,component:h});export{F as nyfedReferenceRateBarsFrame};
@@ -0,0 +1 @@
1
+ import{r as m,j as a}from"./react-qoZPGuNy.js";import{b as f}from"./format-DxkEZcwQ.js";import{f as l,dd as o,al as c}from"./index-BHlJHScr.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{B as d}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";o.schema;function u(p){const{rates:n,isLoading:i}=c(),e=n.find(r=>r.code==="SOFRAI"),t=m.useMemo(()=>e?[{label:"30D",value:e.average30Day},{label:"90D",value:e.average90Day},{label:"180D",value:e.average180Day}].filter(r=>r.value!==void 0):[],[e]);return i?a.jsx(s,{loading:!0,children:"loading SOFR averages…"}):t.length===0?a.jsx(s,{children:"no SOFR term-average data yet"}):a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(d,{data:t,height:160,formatValue:f}),a.jsx("div",{className:"caption text-soft text-center",children:"SOFR compounded averages"})]})}const S=l({...o,component:u});export{S as nyfedSofrTermAveragesBarsFrame};
@@ -0,0 +1 @@
1
+ import{r as x,j as t}from"./react-qoZPGuNy.js";import{f as g,dg as c,Q as p}from"./index-BHlJHScr.js";import{F as o}from"./ui-Bq3RQsdJ.js";import{C as l}from"./chart-utils-DGogNvJT.js";import{S as h}from"./index-DuNO-RcB.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;const y=[["credit","Credit"],["equityValuation","Equity valuation"],["safeAssets","Safe assets"],["funding","Funding"],["volatility","Volatility"]];function j(e){return`${e.getMonth()+1}/${e.getDate()}`}function d(e){return e>0?`+${e.toFixed(1)}`:e.toFixed(1)}function S({series:e}){return t.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-3 gap-y-1",children:e.map(s=>t.jsxs("span",{className:"caption text-soft flex items-center gap-1",children:[t.jsx("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{background:s.color}}),s.name]},s.id))})}function v({config:e}){const{stress:s,isLoading:m}=p(),r=x.useMemo(()=>{const i=((s==null?void 0:s.trend)??[]).slice(-e.trendDays).filter(a=>a.credit!==void 0&&a.equityValuation!==void 0&&a.safeAssets!==void 0&&a.funding!==void 0&&a.volatility!==void 0);return i.length<2?[]:y.map(([a,f],u)=>({id:a,name:f,color:l[u%l.length],data:i.map(n=>({date:new Date(n.time),value:n[a]}))}))},[s,e.trendDays]);return m?t.jsx(o,{loading:!0,children:"loading stress categories…"}):r.length===0?t.jsx(o,{children:"no stress-category data yet"}):t.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[t.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[t.jsx("div",{className:"caption text-soft uppercase",children:"OFR FSI by category"}),t.jsx("div",{className:"caption text-soft text-right",children:s?s.date:""})]}),t.jsx(h,{series:r,height:210,formatXAxis:j,formatYAxis:d,formatValue:d}),t.jsx(S,{series:r})]})}const b=g({...c,component:v});export{b as ofrStressCategoryAreaFrame};
@@ -0,0 +1 @@
1
+ import{r as m,j as r}from"./react-qoZPGuNy.js";import{f as h,cw as c,ac as d,h as f}from"./index-BHlJHScr.js";import{U as p,D as x,d as v}from"./format-DxkEZcwQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{B as g}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const n={"1m":6e4,"5m":5*6e4,"15m":15*6e4,"1h":60*6e4,"4h":240*6e4,"1d":1440*6e4},L=48;c.schema;function j(t,e){const a=new Date(t);return e>=n["1d"]?a.toLocaleDateString("en-US",{month:"short",day:"numeric"}):e>=n["1h"]?`${a.getMonth()+1}/${a.getDate()} ${String(a.getHours()).padStart(2,"0")}h`:a.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}function O({config:t}){const e=n[t.interval],a=m.useMemo(()=>Date.now()-e*L,[e]),{candles:s,isLoading:u}=d(t.symbol,t.interval,a,Math.min(e,6e4)),l=m.useMemo(()=>s.map(o=>({label:j(o.time,e),value:o.volume??0,color:o.close>=o.open?p:x})),[s,e]);return u&&s.length===0?r.jsx(i,{loading:!0,children:"loading volume…"}):l.length===0?r.jsx(i,{children:"no candle data yet"}):r.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[r.jsx(g,{data:l,height:200,formatValue:v,showValues:!1,maxTickLabels:6}),r.jsxs("div",{className:"caption text-soft text-center",children:[f(t.symbol)," volume · ",t.interval," candles"]})]})}const V=h({...c,component:O});export{V as ohlcvVolumeBarsFrame};
@@ -0,0 +1 @@
1
+ import{r as l,j as i}from"./react-qoZPGuNy.js";import{f as u,cv as c,aJ as f,h as U}from"./index-BHlJHScr.js";import{f as h}from"./format-DxkEZcwQ.js";import{T as x,a as I}from"./treemap-leaf-QG-L-SIG.js";import{F as d}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";c.schema;function j({width:t,height:o,data:s}){const r=h(s.oiUsd);return i.jsx(I,{width:t,height:o,label:s.id,secondary:r,title:`${s.id} · ${r} open interest`})}function T({config:t}){const{entries:o,isLoading:s}=f(),r=l.useMemo(()=>{const n=[...o].filter(e=>e.openInterestUsd>0).sort((e,m)=>m.openInterestUsd-e.openInterestUsd),p=n.slice(0,t.limit).map(e=>({id:U(e.symbol),value:e.openInterestUsd,oiUsd:e.openInterestUsd})),a=n.slice(t.limit).reduce((e,m)=>e+m.openInterestUsd,0);return a>0&&p.push({id:"Other",value:a,oiUsd:a}),p},[o,t.limit]);return s?i.jsx(d,{loading:!0,children:"loading open interest…"}):r.length===0?i.jsx(d,{children:"no open-interest data"}):i.jsx(x,{data:r,LeafComponent:j,getColorValue:n=>n.oiUsd})}const E=u({...c,component:T});export{E as oiTreemapFrame};
@@ -0,0 +1 @@
1
+ import{r as p,j as o}from"./react-qoZPGuNy.js";import{b as d}from"./format-DxkEZcwQ.js";import{w as h,a as u,n as f,t as O}from"./indicators-Cw7CVPn4.js";import{f as x,d7 as l,bl as y}from"./index-BHlJHScr.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{C as i,a as R}from"./chart-utils-DGogNvJT.js";import{M as v}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function w({config:s}){const{extras:r,isLoading:m}=y(),e=p.useMemo(()=>{if(!r)return[];const a=h(s.window),t=c=>u(f(O(c,a)));return[{id:"sopr",name:"SOPR",color:i[0],data:t(r.history.sopr)},{id:"puell",name:"Puell Multiple",color:i[1],data:t(r.history.puell)},{id:"reserve-risk",name:"Reserve Risk",color:i[2],data:t(r.history.reserveRisk)}]},[r,s.window]);return m&&e.length===0?o.jsx(n,{loading:!0,children:"loading on-chain oscillators…"}):e.every(a=>a.data.length===0)?o.jsx(n,{children:"no on-chain data yet"}):o.jsx(v,{series:e,timeframe:R.YTD,height:260,formatValue:a=>d(a*100,0)})}const T=x({...l,component:w});export{T as onchainOscillatorOverlayFrame};
@@ -1 +1 @@
1
- import{r as n,j as e}from"./react-qoZPGuNy.js";import{f as p,ay as l,az as f,A as u,h as x}from"./index-kB-TyxKi.js";import{f as r}from"./format-CfAcS4D8.js";import{F as i,s as h}from"./ui-Bq3RQsdJ.js";l.schema;const b=25;function g({config:m}){const{entries:a,isLoading:c}=f(m.symbols),t=n.useMemo(()=>a.slice(0,b),[a]),o=n.useMemo(()=>t.reduce((s,d)=>Math.max(s,d.openInterestUsd),0),[t]);return c?e.jsx(i,{loading:!0,children:"loading open interest…"}):t.length===0?e.jsx(i,{children:"no open-interest data"}):e.jsx("div",{className:`flex flex-col gap-1.5 ${h}`,children:t.map(s=>e.jsxs("div",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-2",title:`${s.symbol} · ${r(s.openInterestUsd)} open interest`,children:[e.jsx(u,{symbol:s.symbol,size:16}),e.jsxs("div",{className:"relative h-4 w-full overflow-hidden rounded-sm bg-white/[0.06]",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 rounded-sm",style:{width:`${o>0?s.openInterestUsd/o*100:0}%`,background:"hsl(var(--zf-accent-hue, 242) 85% 72% / 0.5)"}}),e.jsx("span",{className:"absolute inset-y-0 left-1.5 flex items-center",children:e.jsx("span",{className:"body-sm truncate font-bold text-strong",children:x(s.symbol)})})]}),e.jsx("span",{className:"caption text-soft text-right tabular-nums",children:r(s.openInterestUsd)})]},s.symbol))})}const w=p({...l,component:g});export{w as openInterestFrame};
1
+ import{r as n,j as e}from"./react-qoZPGuNy.js";import{f as p,aI as l,aJ as f,A as u,h as x}from"./index-BHlJHScr.js";import{f as r}from"./format-DxkEZcwQ.js";import{F as i,s as h}from"./ui-Bq3RQsdJ.js";l.schema;const b=25;function g({config:m}){const{entries:a,isLoading:c}=f(m.symbols),t=n.useMemo(()=>a.slice(0,b),[a]),o=n.useMemo(()=>t.reduce((s,d)=>Math.max(s,d.openInterestUsd),0),[t]);return c?e.jsx(i,{loading:!0,children:"loading open interest…"}):t.length===0?e.jsx(i,{children:"no open-interest data"}):e.jsx("div",{className:`flex flex-col gap-1.5 ${h}`,children:t.map(s=>e.jsxs("div",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-2",title:`${s.symbol} · ${r(s.openInterestUsd)} open interest`,children:[e.jsx(u,{symbol:s.symbol,size:16}),e.jsxs("div",{className:"relative h-4 w-full overflow-hidden rounded-sm bg-white/[0.06]",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 rounded-sm",style:{width:`${o>0?s.openInterestUsd/o*100:0}%`,background:"hsl(var(--zf-accent-hue, 242) 85% 72% / 0.5)"}}),e.jsx("span",{className:"absolute inset-y-0 left-1.5 flex items-center",children:e.jsx("span",{className:"body-sm truncate font-bold text-strong",children:x(s.symbol)})})]}),e.jsx("span",{className:"caption text-soft text-right tabular-nums",children:r(s.openInterestUsd)})]},s.symbol))})}const w=p({...l,component:g});export{w as openInterestFrame};
@@ -0,0 +1 @@
1
+ import{r as m,j as e}from"./react-qoZPGuNy.js";import{a as u,D as a,U as n}from"./format-DxkEZcwQ.js";import{f as p,d0 as c,bb as f}from"./index-BHlJHScr.js";import{F as l}from"./ui-Bq3RQsdJ.js";import{B as d}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function i(o,t){const r=o+t;return r>0?(o-t)/r*100:0}function x({config:o}){const{summary:t,isLoading:r}=f(o.currency),s=m.useMemo(()=>t?[{label:"OI",value:i(t.callOi,t.putOi)},{label:"Volume",value:i(t.callVolume,t.putVolume)}]:[],[t]);return r?e.jsx(l,{loading:!0,children:"loading options…"}):t?e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(d,{data:s,orientation:"horizontal",color:n,negativeColor:a,height:Math.max(s.length*28,84),formatValue:u}),e.jsxs("div",{className:"caption text-soft flex justify-between",children:[e.jsx("span",{style:{color:n},children:"call-skewed"}),e.jsxs("span",{children:[o.currency," positioning vs flow"]}),e.jsx("span",{style:{color:a},children:"put-skewed"})]})]}):e.jsx(l,{children:"no options data yet"})}const k=p({...c,component:x});export{k as optionsFlowSkewFrame};
@@ -1 +1 @@
1
- import{r as l,j as e}from"./react-qoZPGuNy.js";import{c as x}from"./format-CfAcS4D8.js";import{f as p,b2 as m,b3 as v}from"./index-kB-TyxKi.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{M as f}from"./mini-line-chart-QWeuTPfP.js";import"./d3-Dr3MHXm3.js";import"./utils-DxneYyA_.js";m.schema;const j={"7D":{ms:7*864e5,res:3600},"1M":{ms:30*864e5,res:43200},"3M":{ms:90*864e5,res:86400}};function g({config:a}){const{ms:i,res:o}=j[a.lookback],d=l.useMemo(()=>{const t=o*1e3;return Math.floor((Date.now()-i)/t)*t},[i,o]),{points:s,isLoading:h}=v(a.currency,d,o),u=l.useMemo(()=>s.map(t=>({date:new Date(t.time).toISOString(),value:t.value})),[s]);if(h)return e.jsx(c,{loading:!0,children:"loading volatility…"});if(s.length===0)return e.jsx(c,{children:"no volatility data yet"});const n=s[s.length-1].value,r=n-s[0].value;return e.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[e.jsxs("div",{className:"flex items-end justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"caption text-soft uppercase",children:[a.currency," DVOL · implied vol"]}),e.jsx("div",{className:"metric-lg text-strong leading-none",children:n.toFixed(1)})]}),e.jsxs("div",{className:"text-right",children:[e.jsxs("div",{className:"body-md font-bold tabular-nums",style:{color:x(r)},children:[r>=0?"+":"",r.toFixed(1)]}),e.jsxs("div",{className:"caption text-soft",children:["past ",a.lookback]})]})]}),e.jsx(f,{data:u,width:320,height:54,color:"hsl(var(--zf-accent-hue, 242) 85% 72%)"})]})}const O=p({...m,component:g});export{O as optionsIvFrame};
1
+ import{r as l,j as e}from"./react-qoZPGuNy.js";import{c as x}from"./format-DxkEZcwQ.js";import{f as p,bc as m,bd as v}from"./index-BHlJHScr.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{M as f}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;const j={"7D":{ms:7*864e5,res:3600},"1M":{ms:30*864e5,res:43200},"3M":{ms:90*864e5,res:86400}};function g({config:a}){const{ms:i,res:o}=j[a.lookback],d=l.useMemo(()=>{const t=o*1e3;return Math.floor((Date.now()-i)/t)*t},[i,o]),{points:s,isLoading:h}=v(a.currency,d,o),u=l.useMemo(()=>s.map(t=>({date:new Date(t.time).toISOString(),value:t.value})),[s]);if(h)return e.jsx(c,{loading:!0,children:"loading volatility…"});if(s.length===0)return e.jsx(c,{children:"no volatility data yet"});const n=s[s.length-1].value,r=n-s[0].value;return e.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[e.jsxs("div",{className:"flex items-end justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"caption text-soft uppercase",children:[a.currency," DVOL · implied vol"]}),e.jsx("div",{className:"metric-lg text-strong leading-none",children:n.toFixed(1)})]}),e.jsxs("div",{className:"text-right",children:[e.jsxs("div",{className:"body-md font-bold tabular-nums",style:{color:x(r)},children:[r>=0?"+":"",r.toFixed(1)]}),e.jsxs("div",{className:"caption text-soft",children:["past ",a.lookback]})]})]}),e.jsx(f,{data:u,width:320,height:54,color:"hsl(var(--zf-accent-hue, 242) 85% 72%)"})]})}const O=p({...m,component:g});export{O as optionsIvFrame};
@@ -0,0 +1 @@
1
+ import{r as d,j as t}from"./react-qoZPGuNy.js";import{d as h,e as m,f as j}from"./format-DxkEZcwQ.js";import{f as k,cZ as c,bb as y}from"./index-BHlJHScr.js";import{F as p}from"./ui-Bq3RQsdJ.js";import{B as g}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function b({config:f}){const{summary:i,isLoading:x}=y(f.currency),a=d.useMemo(()=>{if(!i)return null;const n=i.nearestExpiry.strikes;if(n.length===0)return null;let o=n[0].strike,l=1/0;const u=n.map(r=>{let s=0;for(const e of n)r.strike>e.strike?s+=e.callOi*(r.strike-e.strike):r.strike<e.strike&&(s+=e.putOi*(e.strike-r.strike));return s<l&&(l=s,o=r.strike),s});return{bars:n.map((r,s)=>({label:h(r.strike),value:u[s],color:r.strike===o?"var(--color-highlight)":void 0})),maxPainStrike:o,spot:i.underlyingPrice,expiry:i.nearestExpiry.expiry}},[i]);return x?t.jsx(p,{loading:!0,children:"loading options…"}):a?t.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-1 text-normal",children:[t.jsxs("div",{className:"caption text-soft flex justify-between",children:[t.jsxs("span",{children:["max pain · ",a.expiry]}),t.jsxs("span",{children:[t.jsx("span",{className:"text-strong font-bold",children:m(a.maxPainStrike)})," ",t.jsxs("span",{className:"text-soft",children:["vs spot ",m(a.spot)]})]})]}),t.jsx(g,{data:a.bars,color:"var(--color-disabled)",height:200,formatValue:j})]}):t.jsx(p,{children:"no options data yet"})}const C=k({...c,component:b});export{C as optionsMaxPainFrame};
@@ -0,0 +1 @@
1
+ import{r as u,j as o}from"./react-qoZPGuNy.js";import{a as f,D as x,U as m}from"./format-DxkEZcwQ.js";import{f as d,d3 as c,bb as h}from"./index-BHlJHScr.js";import{F as p}from"./ui-Bq3RQsdJ.js";import{B as k}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function M(e){if(e.length===0)return null;let t=e[0].strike,a=1/0;for(const r of e){let s=0;for(const i of e)r.strike>i.strike?s+=i.callOi*(r.strike-i.strike):r.strike<i.strike&&(s+=i.putOi*(i.strike-r.strike));s<a&&(a=s,t=r.strike)}return t}function O({config:e}){const{summary:t,isLoading:a}=h(e.currency),r=u.useMemo(()=>{const s=t==null?void 0:t.allExpiries,i=t==null?void 0:t.underlyingPrice;return!s||s.length===0||!i?[]:[...s].sort((n,l)=>n.expiryMs-l.expiryMs).slice(0,e.expiries).map(n=>{const l=M(n.strikes);return l===null?null:{label:n.expiry,value:(l/i-1)*100}}).filter(n=>n!==null)},[t,e.expiries]);return a?o.jsx(p,{loading:!0,children:"loading options…"}):r.length===0?o.jsx(p,{children:"no options data yet"}):o.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[o.jsx(k,{data:r,color:m,negativeColor:x,height:200,formatValue:f}),o.jsxs("div",{className:"caption text-soft text-center",children:["max pain vs spot, by expiry · ",e.currency]})]})}const F=d({...c,component:O});export{F as optionsMaxPainMultiFrame};
@@ -0,0 +1 @@
1
+ import{r as j,j as n}from"./react-qoZPGuNy.js";import{d as x}from"./format-DxkEZcwQ.js";import{f as y,d2 as h,bb as L}from"./index-BHlJHScr.js";import{F as d}from"./ui-Bq3RQsdJ.js";import{H}from"./index-Bw1aFtyx.js";import"./utils-DxneYyA_.js";h.schema;function w({data:r,width:a}){return a<44?null:n.jsx("div",{className:"flex h-full w-full items-center justify-center",children:n.jsx("span",{className:"caption text-normal tabular-nums",children:x(r.oi)})})}function C({config:r}){const{summary:a,isLoading:b}=L(r.currency),c=j.useMemo(()=>{const i=a==null?void 0:a.allExpiries;if(!i||i.length===0)return[];const p=[...i].sort((t,s)=>t.expiryMs-s.expiryMs).slice(0,r.expiries),l=p.flatMap(t=>t.strikes.map(s=>s.strike));if(l.length===0)return[];const m=Math.min(...l),M=Math.max(...l),u=Math.max(M-m,1e-6),o=r.buckets,k=t=>Math.min(o-1,Math.floor((t-m)/u*o)),O=t=>x(m+(t+.5)/o*u),f=[];for(const t of p){const s=new Array(o).fill(0);for(const e of t.strikes)s[k(e.strike)]+=e.callOi+e.putOi;for(let e=0;e<o;e++)f.push({id:`${t.expiry}-${e}`,row:t.expiry,column:O(e),value:s[e],oi:s[e]})}return f},[a,r.expiries,r.buckets]);return b?n.jsx(d,{loading:!0,children:"loading OI ladder…"}):c.length===0?n.jsx(d,{children:"no options data yet"}):n.jsx(H,{data:c,CellComponent:w,gap:3,showLabels:!0,rowLabelWidth:64,columnLabelHeight:20})}const $=y({...h,component:C});export{$ as optionsOiLadderHeatmapFrame};
@@ -0,0 +1 @@
1
+ import{r as d,j as t}from"./react-qoZPGuNy.js";import{d as l,D as p,U as c}from"./format-DxkEZcwQ.js";import{f,c_ as u,bb as h}from"./index-BHlJHScr.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{B as y}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";u.schema;function O({config:s}){const{summary:r,isLoading:x}=h(s.currency),a=d.useMemo(()=>{if(!r)return null;const o=r.underlyingPrice,n=r.nearestExpiry.strikes;return n.length===0?null:{data:[...n].sort((e,i)=>Math.abs(e.strike-o)-Math.abs(i.strike-o)).slice(0,s.strikes).sort((e,i)=>e.strike-i.strike).map(e=>({label:l(e.strike),value:e.callOi-e.putOi})),expiry:r.nearestExpiry.expiry}},[r,s.strikes]);return x?t.jsx(m,{loading:!0,children:"loading options…"}):a?t.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[t.jsx(y,{data:a.data,color:c,negativeColor:p,height:200,formatValue:l}),t.jsxs("div",{className:"caption text-soft flex justify-between",children:[t.jsx("span",{style:{color:c},children:"call-heavy"}),t.jsxs("span",{children:["net OI by strike · ",a.expiry]}),t.jsx("span",{style:{color:p},children:"put-heavy"})]})]}):t.jsx(m,{children:"no options data yet"})}const E=f({...u,component:O});export{E as optionsOiSkewFrame};
@@ -1 +1 @@
1
- import{r as L,j as t}from"./react-qoZPGuNy.js";import{U as S,D as E,e as v,d as F}from"./format-CfAcS4D8.js";import{f as P,b4 as N,b1 as R}from"./index-kB-TyxKi.js";import{F as g}from"./ui-Bq3RQsdJ.js";N.schema;const w=S,M=E;function B({config:h}){const{summary:p,isLoading:W}=R(h.currency),j=L.useMemo(()=>{if(!p)return null;const s=p.underlyingPrice,x=p.nearestExpiry.strikes;if(x.length===0)return null;const n=[...x].sort((r,y)=>Math.abs(r.strike-s)-Math.abs(y.strike-s)).slice(0,h.strikes).sort((r,y)=>r.strike-y.strike),d=Math.max(1,...n.map(r=>Math.max(r.callOi,r.putOi)));return{near:n,maxOi:d,spot:s,expiry:p.nearestExpiry.expiry}},[p,h.strikes]);if(W)return t.jsx(g,{loading:!0,children:"loading strikes…"});if(!j)return t.jsx(g,{children:"no options data yet"});const{near:e,maxOi:C,spot:a,expiry:H}=j,f=600,O=200,i=6,o=O-i-4,m=e.length,u=f/m,k=Math.max(2,u*.34),l=s=>s*u+u/2,b=s=>s/C*o;let c=null;if(a<=e[0].strike)c=l(0);else if(a>=e[m-1].strike)c=l(m-1);else for(let s=0;s<m-1;s++)if(a>=e[s].strike&&a<=e[s+1].strike){const x=e[s+1].strike-e[s].strike||1,n=(a-e[s].strike)/x;c=l(s)+n*(l(s+1)-l(s));break}return t.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[t.jsxs("div",{className:"caption text-soft mb-1 flex justify-between",children:[t.jsxs("span",{children:["OI by strike · ",H]}),t.jsxs("span",{children:[t.jsx("span",{style:{color:w},children:"calls"})," ·"," ",t.jsx("span",{style:{color:M},children:"puts"})]})]}),t.jsxs("svg",{viewBox:`0 0 ${f} ${O}`,preserveAspectRatio:"none",className:"min-h-0 w-full flex-1",children:[t.jsx("line",{x1:0,y1:i+o,x2:f,y2:i+o,style:{stroke:"var(--color-disabled)"},strokeWidth:1}),e.map((s,x)=>{const n=l(x),d=b(s.callOi),r=b(s.putOi);return t.jsxs("g",{children:[t.jsx("rect",{x:n-k-1,y:i+o-d,width:k,height:d,fill:w}),t.jsx("rect",{x:n+1,y:i+o-r,width:k,height:r,fill:M})]},s.strike)}),c!==null&&t.jsx("line",{x1:c,y1:i,x2:c,y2:i+o,style:{stroke:"var(--color-soft)"},strokeWidth:1,strokeDasharray:"4 3"})]}),t.jsxs("div",{className:"caption text-soft mt-1 flex justify-between tabular-nums",children:[t.jsx("span",{children:v(e[0].strike)}),t.jsxs("span",{className:"text-normal",children:["spot ",F(a)]}),t.jsx("span",{children:v(e[m-1].strike)})]})]})}const $=P({...N,component:B});export{$ as optionsOiStrikeFrame};
1
+ import{r as L,j as t}from"./react-qoZPGuNy.js";import{U as S,D as E,d as v,e as F}from"./format-DxkEZcwQ.js";import{f as P,be as N,bb as R}from"./index-BHlJHScr.js";import{F as g}from"./ui-Bq3RQsdJ.js";N.schema;const w=S,M=E;function B({config:h}){const{summary:p,isLoading:W}=R(h.currency),j=L.useMemo(()=>{if(!p)return null;const s=p.underlyingPrice,x=p.nearestExpiry.strikes;if(x.length===0)return null;const n=[...x].sort((r,y)=>Math.abs(r.strike-s)-Math.abs(y.strike-s)).slice(0,h.strikes).sort((r,y)=>r.strike-y.strike),d=Math.max(1,...n.map(r=>Math.max(r.callOi,r.putOi)));return{near:n,maxOi:d,spot:s,expiry:p.nearestExpiry.expiry}},[p,h.strikes]);if(W)return t.jsx(g,{loading:!0,children:"loading strikes…"});if(!j)return t.jsx(g,{children:"no options data yet"});const{near:e,maxOi:C,spot:a,expiry:H}=j,f=600,O=200,i=6,o=O-i-4,m=e.length,u=f/m,k=Math.max(2,u*.34),l=s=>s*u+u/2,b=s=>s/C*o;let c=null;if(a<=e[0].strike)c=l(0);else if(a>=e[m-1].strike)c=l(m-1);else for(let s=0;s<m-1;s++)if(a>=e[s].strike&&a<=e[s+1].strike){const x=e[s+1].strike-e[s].strike||1,n=(a-e[s].strike)/x;c=l(s)+n*(l(s+1)-l(s));break}return t.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[t.jsxs("div",{className:"caption text-soft mb-1 flex justify-between",children:[t.jsxs("span",{children:["OI by strike · ",H]}),t.jsxs("span",{children:[t.jsx("span",{style:{color:w},children:"calls"})," ·"," ",t.jsx("span",{style:{color:M},children:"puts"})]})]}),t.jsxs("svg",{viewBox:`0 0 ${f} ${O}`,preserveAspectRatio:"none",className:"min-h-0 w-full flex-1",children:[t.jsx("line",{x1:0,y1:i+o,x2:f,y2:i+o,style:{stroke:"var(--color-disabled)"},strokeWidth:1}),e.map((s,x)=>{const n=l(x),d=b(s.callOi),r=b(s.putOi);return t.jsxs("g",{children:[t.jsx("rect",{x:n-k-1,y:i+o-d,width:k,height:d,fill:w}),t.jsx("rect",{x:n+1,y:i+o-r,width:k,height:r,fill:M})]},s.strike)}),c!==null&&t.jsx("line",{x1:c,y1:i,x2:c,y2:i+o,style:{stroke:"var(--color-soft)"},strokeWidth:1,strokeDasharray:"4 3"})]}),t.jsxs("div",{className:"caption text-soft mt-1 flex justify-between tabular-nums",children:[t.jsx("span",{children:v(e[0].strike)}),t.jsxs("span",{className:"text-normal",children:["spot ",F(a)]}),t.jsx("span",{children:v(e[m-1].strike)})]})]})}const $=P({...N,component:B});export{$ as optionsOiStrikeFrame};
@@ -1 +1 @@
1
- import{j as s}from"./react-qoZPGuNy.js";import{U as h,D as f,b as e}from"./format-CfAcS4D8.js";import{f as j,b0 as u,b1 as v}from"./index-kB-TyxKi.js";import{F as d}from"./ui-Bq3RQsdJ.js";u.schema;const i=h,o=f;function y(t){return t>1?o:i}function b({config:t}){const{summary:l,isLoading:m}=v(t.currency);if(m)return s.jsx(d,{loading:!0,children:"loading options…"});if(!l)return s.jsx(d,{children:"no options data yet"});const n=t.basis==="oi"?l.putCallRatioOi:l.putCallRatioVolume,x=t.basis==="oi"?l.putCallRatioVolume:l.putCallRatioOi,r=l.callOi+l.putOi,a=r>0?l.callOi/r*100:50,c=100-a,p=y(n);return s.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[s.jsxs("div",{className:"flex items-end justify-between gap-3",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"caption text-soft uppercase",children:[t.currency," put/call · ",t.basis==="oi"?"OI":"vol"]}),s.jsx("div",{className:"metric-xl leading-none",style:{color:p},children:n.toFixed(2)})]}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"body-md text-normal font-bold tabular-nums",children:x.toFixed(2)}),s.jsxs("div",{className:"caption text-soft",children:["by ",t.basis==="oi"?"volume":"OI"]})]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex h-3 w-full gap-1 overflow-hidden rounded-full",children:[s.jsx("div",{className:"h-full rounded-l-full",style:{width:`${a}%`,background:i}}),s.jsx("div",{className:"h-full rounded-r-full",style:{width:`${c}%`,background:o}})]}),s.jsxs("div",{className:"caption text-soft mt-1 flex justify-between tabular-nums",children:[s.jsxs("span",{children:[s.jsx("span",{style:{color:i},children:"calls"})," ",e(a,0)]}),s.jsxs("span",{children:[e(c,0)," ",s.jsx("span",{style:{color:o},children:"puts"})]})]})]}),s.jsxs("div",{className:"caption text-soft",children:["avg implied vol ",e(l.avgIv,1)]})]})}const g=j({...u,component:b});export{g as optionsPutCallFrame};
1
+ import{j as s}from"./react-qoZPGuNy.js";import{U as h,D as f,b as e}from"./format-DxkEZcwQ.js";import{f as j,ba as u,bb as v}from"./index-BHlJHScr.js";import{F as d}from"./ui-Bq3RQsdJ.js";u.schema;const i=h,o=f;function b(t){return t>1?o:i}function y({config:t}){const{summary:l,isLoading:m}=v(t.currency);if(m)return s.jsx(d,{loading:!0,children:"loading options…"});if(!l)return s.jsx(d,{children:"no options data yet"});const n=t.basis==="oi"?l.putCallRatioOi:l.putCallRatioVolume,x=t.basis==="oi"?l.putCallRatioVolume:l.putCallRatioOi,r=l.callOi+l.putOi,a=r>0?l.callOi/r*100:50,c=100-a,p=b(n);return s.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[s.jsxs("div",{className:"flex items-end justify-between gap-3",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"caption text-soft uppercase",children:[t.currency," put/call · ",t.basis==="oi"?"OI":"vol"]}),s.jsx("div",{className:"metric-xl leading-none",style:{color:p},children:n.toFixed(2)})]}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"body-md text-normal font-bold tabular-nums",children:x.toFixed(2)}),s.jsxs("div",{className:"caption text-soft",children:["by ",t.basis==="oi"?"volume":"OI"]})]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex h-3 w-full gap-1 overflow-hidden rounded-full",children:[s.jsx("div",{className:"h-full rounded-l-full",style:{width:`${a}%`,background:i}}),s.jsx("div",{className:"h-full rounded-r-full",style:{width:`${c}%`,background:o}})]}),s.jsxs("div",{className:"caption text-soft mt-1 flex justify-between tabular-nums",children:[s.jsxs("span",{children:[s.jsx("span",{style:{color:i},children:"calls"})," ",e(a,0)]}),s.jsxs("span",{children:[e(c,0)," ",s.jsx("span",{style:{color:o},children:"puts"})]})]})]}),s.jsxs("div",{className:"caption text-soft",children:["avg implied vol ",e(l.avgIv,1)]})]})}const g=j({...u,component:y});export{g as optionsPutCallFrame};
@@ -0,0 +1 @@
1
+ import{r as L,j as s}from"./react-qoZPGuNy.js";import{b as v,U as R,D as W,d as h,e as A}from"./format-DxkEZcwQ.js";import{f as C,d1 as I,bb as E}from"./index-BHlJHScr.js";import{F as j}from"./ui-Bq3RQsdJ.js";I.schema;const y=R,k=W;function F({config:g}){const{summary:i,isLoading:b}=E(g.currency),m=L.useMemo(()=>{if(!i)return null;const t=[...i.nearestExpiry.strikes].filter(e=>e.callIv!==void 0||e.putIv!==void 0).sort((e,w)=>e.strike-w.strike);if(t.length<2)return null;const n=t.flatMap(e=>[e.callIv,e.putIv]).filter(e=>e!==void 0);return n.length===0?null:{strikes:t,minIv:Math.min(...n),maxIv:Math.max(...n),spot:i.underlyingPrice,expiry:i.nearestExpiry.expiry}},[i]);if(b)return s.jsx(j,{loading:!0,children:"loading vol smile…"});if(!m)return s.jsx(j,{children:"no options data yet"});const{strikes:o,minIv:a,maxIv:x,spot:O,expiry:M}=m,c=600,d=200,r=6,l=d-r-4,p=o[0].strike,f=o[o.length-1].strike,N=f-p||1,P=t=>(t-p)/N*c,S=Math.max(x-a,1e-6),V=t=>r+l-(t-a)/S*l,u=t=>o.filter(n=>n[t]!==void 0).map(n=>`${P(n.strike)},${V(n[t])}`).join(" "),$=`${v(a,0)}–${v(x,0)}`;return s.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[s.jsxs("div",{className:"caption text-soft mb-1 flex justify-between",children:[s.jsxs("span",{children:["vol smile · ",M]}),s.jsxs("span",{children:[s.jsx("span",{style:{color:y},children:"call IV"})," ·"," ",s.jsx("span",{style:{color:k},children:"put IV"})]})]}),s.jsxs("svg",{viewBox:`0 0 ${c} ${d}`,preserveAspectRatio:"none",className:"min-h-0 w-full flex-1",children:[s.jsx("line",{x1:0,y1:r+l,x2:c,y2:r+l,style:{stroke:"var(--color-disabled)"},strokeWidth:1}),s.jsx("polyline",{points:u("callIv"),fill:"none",stroke:y,strokeWidth:1.5}),s.jsx("polyline",{points:u("putIv"),fill:"none",stroke:k,strokeWidth:1.5})]}),s.jsxs("div",{className:"caption text-soft mt-1 flex justify-between tabular-nums",children:[s.jsx("span",{children:h(p)}),s.jsxs("span",{className:"text-normal",children:["spot ",A(O)," · ",$," IV"]}),s.jsx("span",{children:h(f)})]})]})}const _=C({...I,component:F});export{_ as optionsVolSmileFrame};
@@ -0,0 +1 @@
1
+ import{r as d,j as i}from"./react-qoZPGuNy.js";import{f as g,c$ as u,bd as l}from"./index-BHlJHScr.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{a as s,C as f}from"./chart-utils-DGogNvJT.js";import{M as L}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";u.schema;const x={"7D":{ms:7*864e5,res:3600,timeframe:s["7D"]},"1M":{ms:30*864e5,res:43200,timeframe:s["1M"]},"3M":{ms:90*864e5,res:86400,timeframe:s["3M"]}};function C({config:M}){const{ms:r,res:e,timeframe:h}=x[M.lookback],n=d.useMemo(()=>{const t=e*1e3;return Math.floor((Date.now()-r)/t)*t},[r,e]),o=l("BTC",n,e),a=l("ETH",n,e),m=d.useMemo(()=>[{id:"BTC",name:"BTC DVOL",points:o.points},{id:"ETH",name:"ETH DVOL",points:a.points}].map((t,S)=>({id:t.id,name:t.name,color:f[S%f.length],data:t.points.map(p=>({date:new Date(p.time).toISOString(),value:p.value}))})),[o.points,a.points]);return o.isLoading||a.isLoading?i.jsx(c,{loading:!0,children:"loading volatility…"}):m.every(t=>t.data.length===0)?i.jsx(c,{children:"no volatility data yet"}):i.jsx(L,{series:m,timeframe:h,height:250,formatValue:t=>t.toFixed(1)})}const F=g({...u,component:C});export{F as optionsVolSpreadFrame};
@@ -0,0 +1 @@
1
+ import{r as d,j as a}from"./react-qoZPGuNy.js";import{D as h,U as x,d as m}from"./format-DxkEZcwQ.js";import{f as y,dk as i,S as g}from"./index-BHlJHScr.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{B as j}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;const v="CES0000000001";function C({config:o}){const r=new Date().getUTCFullYear(),p=r-3,{series:t,isLoading:u}=g(v,p,r),s=d.useMemo(()=>{const e=(t==null?void 0:t.points)??[];return e.slice(1).map((n,f)=>({label:n.date,value:n.value-e[f].value})).slice(-o.months)},[t,o.months]);if(u)return a.jsx(c,{loading:!0,children:"loading payrolls…"});if(s.length===0)return a.jsx(c,{children:"no payrolls data yet"});const l=s.at(-1);return a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(j,{data:s,color:x,negativeColor:h,height:200,formatValue:e=>m(e*1e3),showValues:!1,maxTickLabels:6}),a.jsxs("div",{className:"caption text-soft text-center",children:["nonfarm payrolls · monthly net change · latest"," ",l.value>=0?"+":"",m(l.value*1e3)]})]})}const D=y({...i,component:C});export{D as payrollsBarsFrame};
@@ -1 +1 @@
1
- import{r as g,j as a}from"./react-qoZPGuNy.js";import{z as C,Z as b,a as x,M as N}from"./cycle-shared-pyXzkgt1.js";import{D as O}from"./format-CfAcS4D8.js";import{s as m,t as A,w as D}from"./indicators-CogwjDn9.js";import{f as M,bf as u,be as j}from"./index-kB-TyxKi.js";import{F as p}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-QWeuTPfP.js";import"./d3-Dr3MHXm3.js";import"./utils-DxneYyA_.js";u.schema;function w({config:f}){const{history:e,isLoading:h}=j("btc"),t=g.useMemo(()=>{const n=e.map(o=>o.value),y=m(n,111),d=m(n,350),l=[];for(let o=0;o<e.length;o++){const c=y[o],r=d[o];c!==null&&r!==null&&r>0&&l.push({time:e[o].time,value:c/(2*r)})}return l},[e]);if(h)return a.jsx(p,{loading:!0,children:"loading Pi Cycle…"});if(t.length===0)return a.jsx(p,{children:"not enough price history yet"});const i=t[t.length-1].value,s=C(i,[{upTo:.85,zone:{label:"Normal",color:b}},{upTo:1,zone:{label:"Approaching top",color:x}}],{label:"TOP SIGNAL",color:O});return a.jsx(N,{caption:"Pi Cycle · 111DMA ÷ 2×350DMA",headline:i.toFixed(2),headlineColor:s.color,zone:s,sub:"crosses 1 at cycle tops",sparkline:A(t,D(f.window)),sparkColor:s.color})}const _=M({...u,component:w});export{_ as piCycleFrame};
1
+ import{r as g,j as a}from"./react-qoZPGuNy.js";import{z as C,Z as b,a as x,M as N}from"./cycle-shared-XoGVsOjC.js";import{D as O}from"./format-DxkEZcwQ.js";import{s as m,t as A,w as D}from"./indicators-Cw7CVPn4.js";import{f as M,bp as u,bo as j}from"./index-BHlJHScr.js";import{F as p}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";u.schema;function w({config:f}){const{history:e,isLoading:h}=j("btc"),t=g.useMemo(()=>{const n=e.map(o=>o.value),y=m(n,111),d=m(n,350),l=[];for(let o=0;o<e.length;o++){const c=y[o],r=d[o];c!==null&&r!==null&&r>0&&l.push({time:e[o].time,value:c/(2*r)})}return l},[e]);if(h)return a.jsx(p,{loading:!0,children:"loading Pi Cycle…"});if(t.length===0)return a.jsx(p,{children:"not enough price history yet"});const i=t[t.length-1].value,s=C(i,[{upTo:.85,zone:{label:"Normal",color:b}},{upTo:1,zone:{label:"Approaching top",color:x}}],{label:"TOP SIGNAL",color:O});return a.jsx(N,{caption:"Pi Cycle · 111DMA ÷ 2×350DMA",headline:i.toFixed(2),headlineColor:s.color,zone:s,sub:"crosses 1 at cycle tops",sparkline:A(t,D(f.window)),sparkColor:s.color})}const _=M({...u,component:w});export{_ as piCycleFrame};
@@ -0,0 +1 @@
1
+ import{r as u,j as r}from"./react-qoZPGuNy.js";import{s as o,p as M,b as v,o as N}from"./d3-ibrLIlQc.js";import{p as y}from"./utils-DxneYyA_.js";const R=["#FF1F5F","#81FE90"],G=({data:a,width:l=270,height:i=270,innerRadius:c=90,outerRadius:d=100,colors:g=R,children:x})=>{const s=u.useRef(null);return u.useEffect(()=>{if(!s.current||!a.length)return;o(s.current).selectAll("*").remove();const f=o(s.current),b=l/2,k=i/2,n=f.append("defs");n.append("filter").attr("id","glow").append("feGaussianBlur").attr("stdDeviation","3").attr("result","coloredBlur"),n.select("#glow").append("feMerge").selectAll("feMergeNode").data(["coloredBlur","SourceGraphic"]).enter().append("feMergeNode").attr("in",e=>e),n.append("filter").attr("id","glow-layer").append("feGaussianBlur").attr("stdDeviation","6").attr("result","glowBlur"),n.select("#glow-layer").append("feColorMatrix").attr("type","matrix").attr("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0").attr("result","glowColor");const j=M().value(e=>e.value).padAngle(.02),w=v().innerRadius(c).outerRadius(d).cornerRadius(100),C=v().innerRadius(c).outerRadius(d).cornerRadius(100),m=N().domain(a.map((e,t)=>t.toString())).range(g),p=f.append("g").attr("transform",`translate(${b}, ${k})`).selectAll("g").data(j(a)).enter().append("g");p.append("path").attr("class","glow-layer").attr("d",C).attr("fill",(e,t)=>m(t.toString())).attr("filter","url(#glow-layer)").style("opacity",0).style("pointer-events","none"),p.append("path").attr("class","main-slice").attr("d",w).attr("fill",(e,t)=>m(t.toString())).attr("stroke","none"),p.on("mouseenter",function(){o(this).select(".glow-layer").transition().duration(y()?0:300).style("opacity",1)}).on("mouseleave",function(){o(this).select(".glow-layer").transition().duration(y()?0:300).style("opacity",0)})},[a,l,i,c,d,g]),r.jsxs("div",{className:"relative flex flex-col items-center justify-center rounded-full",style:{background:"linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%)"},children:[r.jsx("svg",{ref:s,width:l,height:i,className:"relative z-10"}),r.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:x}),r.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-full",style:{background:"linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%)",maskImage:"radial-gradient(farthest-side, transparent calc(100% - 1px),#fff 0)",WebkitMaskComposite:"destination-out",maskComposite:"exclude"}}),r.jsx("div",{className:"pointer-events-none absolute inset-[10%] rounded-full",style:{background:"linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%)",maskImage:"radial-gradient(farthest-side, transparent calc(100% - 1px),#fff 0)",WebkitMaskComposite:"destination-out",maskComposite:"exclude"}})]})},F=u.memo(G);export{F as P};
@@ -1 +1 @@
1
- import{r,j as s}from"./react-qoZPGuNy.js";import{i as k}from"./content-shared-BZ1XzrJx.js";import{f as w,bQ as y}from"./index-kB-TyxKi.js";y.schema;function M(e){const t=Math.floor(e/60),n=e%60;return`${t}:${String(n).padStart(2,"0")}`}function R({config:e}){const t=Math.max(1,Math.round(e.workMin*60)),n=Math.max(1,Math.round(e.breakMin*60)),[a,c]=r.useState("work"),[b,o]=r.useState(t),[l,i]=r.useState(!1),[u,m]=r.useState(1);r.useEffect(()=>{c("work"),o(t),i(!1),m(1)},[t,n]);const p=r.useRef(a);p.current=a;const x=r.useRef(u);x.current=u,r.useEffect(()=>{if(!l)return;const f=setInterval(()=>{o(h=>h>1?h-1:p.current==="work"?(c("break"),n):(c("work"),m(S=>x.current>=e.cycles?1:S+1),t))},1e3);return()=>clearInterval(f)},[l,t,n,e.cycles]);const j=()=>{i(!1),c("work"),o(t),m(1)},d=e.label.trim(),v=a==="work"?"var(--color-highlight)":void 0;return s.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1",children:[d&&s.jsx("div",{className:"caption text-soft uppercase tracking-[0.12em]",children:d}),s.jsxs("div",{className:"caption text-soft uppercase tracking-[0.18em]",children:[a," · ",u,"/",e.cycles]}),s.jsx("div",{className:"metric-xl text-strong",style:{color:v},children:M(b)}),s.jsxs("div",{className:"mt-1 flex gap-1",children:[s.jsx("button",{type:"button",onClick:()=>i(f=>!f),className:`caption text-normal px-3 py-1 ${k}`,children:l?"Pause":"Start"}),s.jsx("button",{type:"button",onClick:j,className:`caption text-soft px-3 py-1 ${k}`,children:"Reset"})]})]})}const $=w({...y,component:R});export{$ as pomodoroFrame};
1
+ import{r,j as s}from"./react-qoZPGuNy.js";import{i as k}from"./content-shared-BZ1XzrJx.js";import{f as w,b_ as y}from"./index-BHlJHScr.js";y.schema;function M(e){const t=Math.floor(e/60),n=e%60;return`${t}:${String(n).padStart(2,"0")}`}function R({config:e}){const t=Math.max(1,Math.round(e.workMin*60)),n=Math.max(1,Math.round(e.breakMin*60)),[a,c]=r.useState("work"),[b,o]=r.useState(t),[l,i]=r.useState(!1),[u,m]=r.useState(1);r.useEffect(()=>{c("work"),o(t),i(!1),m(1)},[t,n]);const p=r.useRef(a);p.current=a;const x=r.useRef(u);x.current=u,r.useEffect(()=>{if(!l)return;const f=setInterval(()=>{o(h=>h>1?h-1:p.current==="work"?(c("break"),n):(c("work"),m(S=>x.current>=e.cycles?1:S+1),t))},1e3);return()=>clearInterval(f)},[l,t,n,e.cycles]);const j=()=>{i(!1),c("work"),o(t),m(1)},d=e.label.trim(),v=a==="work"?"var(--color-highlight)":void 0;return s.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1",children:[d&&s.jsx("div",{className:"caption text-soft uppercase tracking-[0.12em]",children:d}),s.jsxs("div",{className:"caption text-soft uppercase tracking-[0.18em]",children:[a," · ",u,"/",e.cycles]}),s.jsx("div",{className:"metric-xl text-strong",style:{color:v},children:M(b)}),s.jsxs("div",{className:"mt-1 flex gap-1",children:[s.jsx("button",{type:"button",onClick:()=>i(f=>!f),className:`caption text-normal px-3 py-1 ${k}`,children:l?"Pause":"Start"}),s.jsx("button",{type:"button",onClick:j,className:`caption text-soft px-3 py-1 ${k}`,children:"Reset"})]})]})}const $=w({...y,component:R});export{$ as pomodoroFrame};
@@ -0,0 +1 @@
1
+ import{j as e,r as f}from"./react-qoZPGuNy.js";import{f as u,g as m,h as x}from"./index-BHlJHScr.js";import{f as i,b as d}from"./format-DxkEZcwQ.js";import{P as p,u as h,a as j}from"./portfolio-common-e3o9U7qd.js";import{F as g}from"./ui-Bq3RQsdJ.js";import{C as c}from"./chart-utils-DGogNvJT.js";import{P as v}from"./pie-chart-BIxKuHm-.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;function b({portfolio:s,config:l}){const{priced:r}=h(s.holdings),t=f.useMemo(()=>r.map((a,o)=>({name:x(a.symbol),value:a.value??0,color:c[o%c.length]})).filter(a=>a.value>0).sort((a,o)=>o.value-a.value),[r]),n=t.reduce((a,o)=>a+o.value,0);return t.length===0?e.jsx(g,{children:"no live prices yet"}):e.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-4",children:[e.jsx(v,{data:t,width:200,height:200,innerRadius:58,outerRadius:92,colors:t.map(a=>a.color),children:e.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[e.jsx(j,{portfolio:s,config:l,className:"caption text-soft"}),e.jsx("span",{className:"metric-lg text-strong",children:i(n)})]})}),e.jsx("div",{className:"flex w-full max-w-xs flex-wrap justify-center gap-x-5 gap-y-1.5",children:t.map(a=>e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full",style:{background:a.color}}),e.jsx("span",{className:"body-sm text-soft",children:a.name}),e.jsx("span",{className:"body-sm text-normal font-bold tabular-nums",children:d(a.value/n*100,1)}),e.jsx("span",{className:"caption text-soft tabular-nums",children:i(a.value)})]},a.name))})]})}function N({config:s}){return e.jsx(p,{config:s,loadingLabel:"loading allocation…",children:l=>e.jsx(b,{portfolio:l,config:s})})}const S=u({...m,component:N});export{S as portfolioAllocationFrame};
@@ -0,0 +1 @@
1
+ import{j as s,r as d}from"./react-qoZPGuNy.js";import{a9 as k,z as w,aa as g,A as y,a8 as j}from"./index-BHlJHScr.js";import{F as h}from"./ui-Bq3RQsdJ.js";function P(n){if(n.source==="wallet"){const o=(n.address??"").trim();return o?{kind:"wallet",address:o}:null}return{kind:"binance"}}const C={WETH:"ETH",WBTC:"BTC"};function x(n){return C[n.toUpperCase()]??n}function D(n){const o=n??[],r=o.map(e=>x(e.symbol)),l=w(r);return d.useMemo(()=>{const e=o.map(a=>{const u=l[x(a.symbol)],c=u!==void 0?a.amount*u:a.valueUsd;return{...a,value:c}}),i=e.reduce((a,u)=>a+(u.value??0),0);return{priced:e,total:i}},[n,l])}function _({portfolio:n,config:o,className:r=""}){var i;const l=n.label??(o.source==="wallet"?"wallet":"portfolio"),e=(i=o.address)==null?void 0:i.trim();return o.source==="wallet"&&e?s.jsx("a",{href:`https://etherscan.io/address/${encodeURIComponent(e)}`,target:"_blank",rel:"noopener noreferrer",title:"View on Etherscan",className:`hover:text-white hover:underline ${r}`,onClick:a=>a.stopPropagation(),onPointerDown:a=>a.stopPropagation(),children:l}):s.jsx("span",{className:r,children:l})}function v(n,o){const r=(n==null?void 0:n.kind)==="binance",[l,e]=d.useState({loading:r,connected:!1,keyMasked:null});return d.useEffect(()=>{if(!r||!n){e({loading:!1,connected:!1,keyMasked:null});return}let i=!1;return e(a=>({...a,loading:!0})),fetch(`${g}?source=${n.kind}`,{headers:{accept:"application/json"}}).then(a=>a.ok?a.json():{connected:!1,keyMasked:null}).then(a=>{i||e({loading:!1,connected:!!a.connected,keyMasked:a.keyMasked??null})}).catch(()=>{i||e({loading:!1,connected:!1,keyMasked:null})}),()=>{i=!0}},[r,n==null?void 0:n.kind,o]),l}function N(n){const[o,r]=d.useState(0),l=d.useCallback(()=>r(p=>p+1),[]),e=P(n),i=v(e,o),a=(e==null?void 0:e.kind)==="binance",u=!!e&&(!a||i.connected),{portfolio:c,isLoading:f}=k(u?e:null);let t;return e?a&&i.loading?t={state:"checking"}:a&&!i.connected?t={state:"needs-connect",source:e}:f&&!c?t={state:"loading"}:c?c.holdings.length===0?t={state:"empty",portfolio:c}:t={state:"live",portfolio:c}:t={state:"error"}:t={state:"needs-address"},{view:t,refresh:l}}const m="w-full rounded-md border border-white/10 bg-white/[0.04] px-2 py-1.5 text-xs text-white/90 outline-none focus:border-white/25 placeholder:text-white/30",b="rounded-md bg-[hsl(var(--zf-accent-hue,242)_90%_60%)] px-3 py-1.5 text-xs font-semibold text-white disabled:opacity-50";function S({onConnected:n}){const[o,r]=d.useState(""),[l,e]=d.useState(""),[i,a]=d.useState(!1),[u,c]=d.useState(null),f=async()=>{a(!0),c(null);try{const t=await fetch(g,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({source:"binance",key:o.trim(),secret:l.trim()})}),p=await t.json().catch(()=>({}));if(!t.ok||!p.ok)throw new Error(p.error??`HTTP ${t.status}`);r(""),e(""),n()}catch(t){c(t instanceof Error?t.message:String(t))}finally{a(!1)}};return s.jsxs("div",{className:"flex h-full w-full flex-col justify-center gap-2 px-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(y,{symbol:"BNB",size:18}),s.jsx("span",{className:"text-strong text-sm font-bold",children:"Connect Binance"})]}),s.jsxs("p",{className:"caption text-soft",children:["Use a ",s.jsx("strong",{children:"read-only"})," key + secret — create them in Binance"," ",s.jsx("a",{href:"https://www.binance.com/en/my/settings/api-management",target:"_blank",rel:"noopener noreferrer",className:"text-[hsl(var(--zf-accent-hue,242)_90%_72%)] underline underline-offset-2 hover:text-white",onClick:t=>t.stopPropagation(),onPointerDown:t=>t.stopPropagation(),children:"API Management"})," ","(enable Reading only). Both stay on your machine, never shared."]}),s.jsx("input",{className:m,placeholder:"API key",value:o,autoComplete:"off",onChange:t=>r(t.target.value),onPointerDown:t=>t.stopPropagation()}),s.jsx("input",{className:m,placeholder:"API secret",type:"password",value:l,autoComplete:"off",onChange:t=>e(t.target.value),onPointerDown:t=>t.stopPropagation()}),u?s.jsx("p",{className:"caption text-[#ff6b81]",children:u}):null,s.jsx("button",{type:"button",className:b,disabled:i||!o.trim()||!l.trim(),onClick:t=>{t.stopPropagation(),f()},onPointerDown:t=>t.stopPropagation(),children:i?"Verifying…":"Connect"})]})}function E({current:n}){const o=j(),[r,l]=d.useState(n??"");return s.jsxs("div",{className:"flex h-full w-full flex-col justify-center gap-2 px-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(y,{symbol:"ETH",size:18}),s.jsx("span",{className:"text-strong text-sm font-bold",children:"Track a wallet"})]}),s.jsx("p",{className:"caption text-soft",children:"Enter a public Ethereum address or ENS name. No keys — it’s public on-chain data. Sharing this dashboard reveals the holdings."}),s.jsx("input",{className:m,placeholder:"0x… or name.eth",value:r,autoComplete:"off",onChange:e=>l(e.target.value),onPointerDown:e=>e.stopPropagation()}),o?s.jsx("button",{type:"button",className:b,disabled:!r.trim(),onClick:e=>{e.stopPropagation(),o({address:r.trim()})},onPointerDown:e=>e.stopPropagation(),children:"Track"}):s.jsx("p",{className:"caption text-soft",children:"Set the address in the frame’s config to start tracking."})]})}function I({config:n,loadingLabel:o="loading portfolio…",children:r}){const{view:l,refresh:e}=N(n);switch(l.state){case"needs-address":case"needs-connect":return s.jsx(T,{view:l,config:n,onConnected:e});case"checking":case"loading":return s.jsx(h,{loading:!0,children:o});case"error":return s.jsx(h,{children:"couldn’t load — check the address or try again"});case"empty":return s.jsx(h,{children:"no holdings to show"});case"live":return s.jsx(s.Fragment,{children:r(l.portfolio)})}}function T({view:n,config:o,onConnected:r}){return n.state==="needs-connect"&&n.source.kind==="binance"?s.jsx(S,{onConnected:r}):s.jsx(E,{current:o.address})}export{I as P,_ as a,D as u};
@@ -1 +1 @@
1
- import{j as s,r as m}from"./react-qoZPGuNy.js";import{f as d,i as n,A as x,h as f}from"./index-kB-TyxKi.js";import{f as i,b as h,a as p,c as u}from"./format-CfAcS4D8.js";import{P as b,u as g,a as j}from"./portfolio-common-Cfpnudvk.js";import{s as N}from"./ui-Bq3RQsdJ.js";n.schema;function y(t){return t>=1e3?t.toLocaleString("en-US",{maximumFractionDigits:2}):t>=1?t.toFixed(4).replace(/\.?0+$/,""):t.toPrecision(4)}function v({portfolio:t,config:a}){const{priced:l,total:r}=g(t.holdings),c=m.useMemo(()=>[...l].sort((e,o)=>(o.value??0)-(e.value??0)),[l]);return s.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[s.jsxs("div",{className:"flex items-baseline justify-between border-b border-white/[0.06] pb-1.5",children:[s.jsx(j,{portfolio:t,config:a,className:"caption text-soft"}),s.jsx("span",{className:"metric-sm text-strong",children:i(r)})]}),s.jsx("div",{className:N,children:s.jsx("table",{className:"w-full text-xs",children:s.jsx("tbody",{children:c.map(e=>{const o=r>0?(e.value??0)/r*100:0;return s.jsxs("tr",{className:"border-b border-white/[0.04]",children:[s.jsx("td",{className:"py-1.5",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(x,{symbol:e.symbol,size:16}),s.jsx("span",{className:"text-normal font-semibold",children:f(e.symbol)})]})}),s.jsx("td",{className:"text-soft py-1.5 text-right tabular-nums",children:y(e.amount)}),s.jsx("td",{className:"text-normal py-1.5 text-right font-semibold tabular-nums",children:e.value!==void 0?i(e.value):"—"}),s.jsx("td",{className:"text-soft py-1.5 text-right tabular-nums",children:h(o,1)}),s.jsx("td",{className:"py-1.5 text-right tabular-nums",children:e.changePct24h!==void 0?s.jsx("span",{style:{color:u(e.changePct24h)},children:p(e.changePct24h)}):s.jsx("span",{className:"text-soft",children:"·"})})]},e.symbol)})})})})]})}function P({config:t}){return s.jsx(b,{config:t,loadingLabel:"loading holdings…",children:a=>s.jsx(v,{portfolio:a,config:t})})}const L=d({...n,component:P});export{L as portfolioHoldingsFrame};
1
+ import{j as s,r as m}from"./react-qoZPGuNy.js";import{f as d,i as n,A as x,h as f}from"./index-BHlJHScr.js";import{f as i,b as h,a as p,c as u}from"./format-DxkEZcwQ.js";import{P as b,u as g,a as j}from"./portfolio-common-e3o9U7qd.js";import{s as N}from"./ui-Bq3RQsdJ.js";n.schema;function y(t){return t>=1e3?t.toLocaleString("en-US",{maximumFractionDigits:2}):t>=1?t.toFixed(4).replace(/\.?0+$/,""):t.toPrecision(4)}function v({portfolio:t,config:a}){const{priced:l,total:r}=g(t.holdings),c=m.useMemo(()=>[...l].sort((e,o)=>(o.value??0)-(e.value??0)),[l]);return s.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[s.jsxs("div",{className:"flex items-baseline justify-between border-b border-white/[0.06] pb-1.5",children:[s.jsx(j,{portfolio:t,config:a,className:"caption text-soft"}),s.jsx("span",{className:"metric-sm text-strong",children:i(r)})]}),s.jsx("div",{className:N,children:s.jsx("table",{className:"w-full text-xs",children:s.jsx("tbody",{children:c.map(e=>{const o=r>0?(e.value??0)/r*100:0;return s.jsxs("tr",{className:"border-b border-white/[0.04]",children:[s.jsx("td",{className:"py-1.5",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(x,{symbol:e.symbol,size:16}),s.jsx("span",{className:"text-normal font-semibold",children:f(e.symbol)})]})}),s.jsx("td",{className:"text-soft py-1.5 text-right tabular-nums",children:y(e.amount)}),s.jsx("td",{className:"text-normal py-1.5 text-right font-semibold tabular-nums",children:e.value!==void 0?i(e.value):"—"}),s.jsx("td",{className:"text-soft py-1.5 text-right tabular-nums",children:h(o,1)}),s.jsx("td",{className:"py-1.5 text-right tabular-nums",children:e.changePct24h!==void 0?s.jsx("span",{style:{color:u(e.changePct24h)},children:p(e.changePct24h)}):s.jsx("span",{className:"text-soft",children:"·"})})]},e.symbol)})})})})]})}function P({config:t}){return s.jsx(b,{config:t,loadingLabel:"loading holdings…",children:a=>s.jsx(v,{portfolio:a,config:t})})}const L=d({...n,component:P});export{L as portfolioHoldingsFrame};
@@ -0,0 +1 @@
1
+ import{j as e,r as n}from"./react-qoZPGuNy.js";import{f as l,dy as i,h}from"./index-BHlJHScr.js";import{a as m,D as c,U as f}from"./format-DxkEZcwQ.js";import{P as g,a as p}from"./portfolio-common-e3o9U7qd.js";import{F as x}from"./ui-Bq3RQsdJ.js";import{B as d}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function u({portfolio:a,config:o}){const r=n.useMemo(()=>[...a.holdings].filter(t=>Number.isFinite(t.changePct24h)).sort((t,s)=>Math.abs(s.changePct24h)-Math.abs(t.changePct24h)).slice(0,o.limit).sort((t,s)=>s.changePct24h-t.changePct24h).map(t=>({label:h(t.symbol),value:t.changePct24h})),[a.holdings,o.limit]);return r.length===0?e.jsx(x,{children:"no 24h change reported for these holdings"}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(p,{portfolio:a,config:o,className:"caption text-soft"}),e.jsx(d,{data:r,orientation:"horizontal",color:f,negativeColor:c,height:Math.max(r.length*22,96),formatValue:m})]})}function P({config:a}){return e.jsx(g,{config:a,loadingLabel:"loading holdings…",children:o=>e.jsx(u,{portfolio:o,config:a})})}const N=l({...i,component:P});export{N as portfolioMoversFrame};
@@ -1 +1 @@
1
- import{j as e,r as o}from"./react-qoZPGuNy.js";import{L as V}from"./liveline-bcaEuskN.js";import{f as N,a as L,c as D}from"./format-CfAcS4D8.js";import{u as I,o as F}from"./live-tick-9Q3ubPF9.js";import{P as H,u as W,a as _}from"./portfolio-common-Cfpnudvk.js";import{f as k,p as y}from"./index-kB-TyxKi.js";import"./ui-Bq3RQsdJ.js";const w=720,d=3,q={top:12,right:66,bottom:28,left:8};y.schema;function A(){return typeof document>"u"?"hsl(242 90% 66%)":`hsl(${getComputedStyle(document.documentElement).getPropertyValue("--zf-accent-hue").trim()||"242"} 90% 66%)`}function G({portfolio:a,config:c,windowSec:h}){var v;const{total:t}=W(a.holdings),p=o.useMemo(()=>A(),[]),{ref:P,visibleRef:x}=I(),u=o.useRef(!1),[s,M]=o.useState([]),b=o.useRef(t);o.useEffect(()=>{b.current=t},[t]);const i=o.useCallback(()=>{if(!x.current){u.current=!0;return}const n=b.current;if(!Number.isFinite(n)||n<=0)return;const l=Date.now()/1e3,S=u.current;u.current=!1,M(C=>{const r=S?[]:C,f=r[r.length-1];if(f&&Math.abs(l-f.time)<.5&&f.value===n)return r;const m=r.length===0?[{time:l-d,value:n},{time:l,value:n}]:[...r,{time:l,value:n}];return m.length>w?m.slice(-w):m})},[x]);o.useEffect(()=>{i()},[i,t]),o.useEffect(()=>F(i),[i]);const g=(v=s[0])==null?void 0:v.value,j=g&&t?(t/g-1)*100:0,E=o.useMemo(()=>s.length===0?[]:[{id:"equity",label:"Portfolio",color:p,data:s,value:t}],[s,t,p]),R=o.useMemo(()=>{if(s.length===0)return d;const n=s[s.length-1].time-s[0].time;return Math.min(h,Math.max(d,Math.ceil(n)))},[s,h]);return e.jsxs("div",{ref:P,className:"flex h-full min-h-0 flex-col",children:[e.jsxs("div",{className:"flex flex-none items-baseline justify-between border-b border-white/[0.06] pb-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(_,{portfolio:a,config:c,className:"caption text-soft"}),e.jsx("span",{className:"metric-md text-strong",children:N(t)})]}),e.jsxs("span",{className:"body-sm font-semibold tabular-nums",style:{color:D(j)},children:[L(j)," ",e.jsx("span",{className:"caption text-soft",children:"session"})]})]}),e.jsx("div",{className:"min-h-0 flex-1 [&>div[style*='align-items']]:!hidden",children:e.jsx(V,{data:[],value:t,series:E,theme:"dark",window:R,grid:!0,loading:s.length<=1,scrub:!1,badge:!1,formatValue:N,padding:q,style:{width:"100%",height:"100%"}})})]})}function O({config:a}){return e.jsx(H,{config:a,loadingLabel:"loading portfolio…",children:c=>e.jsx(G,{portfolio:c,config:a,windowSec:a.windowSec})})}const K=k({...y,component:O});export{K as portfolioValueFrame};
1
+ import{j as e,r as o}from"./react-qoZPGuNy.js";import{L as V}from"./liveline-bcaEuskN.js";import{f as N,a as L,c as D}from"./format-DxkEZcwQ.js";import{u as I,o as F}from"./live-tick-9Q3ubPF9.js";import{P as H,u as W,a as _}from"./portfolio-common-e3o9U7qd.js";import{f as k,p as y}from"./index-BHlJHScr.js";import"./ui-Bq3RQsdJ.js";const w=720,d=3,q={top:12,right:66,bottom:28,left:8};y.schema;function A(){return typeof document>"u"?"hsl(242 90% 66%)":`hsl(${getComputedStyle(document.documentElement).getPropertyValue("--zf-accent-hue").trim()||"242"} 90% 66%)`}function G({portfolio:a,config:c,windowSec:h}){var v;const{total:t}=W(a.holdings),p=o.useMemo(()=>A(),[]),{ref:P,visibleRef:x}=I(),u=o.useRef(!1),[s,M]=o.useState([]),b=o.useRef(t);o.useEffect(()=>{b.current=t},[t]);const i=o.useCallback(()=>{if(!x.current){u.current=!0;return}const n=b.current;if(!Number.isFinite(n)||n<=0)return;const l=Date.now()/1e3,S=u.current;u.current=!1,M(C=>{const r=S?[]:C,f=r[r.length-1];if(f&&Math.abs(l-f.time)<.5&&f.value===n)return r;const m=r.length===0?[{time:l-d,value:n},{time:l,value:n}]:[...r,{time:l,value:n}];return m.length>w?m.slice(-w):m})},[x]);o.useEffect(()=>{i()},[i,t]),o.useEffect(()=>F(i),[i]);const g=(v=s[0])==null?void 0:v.value,j=g&&t?(t/g-1)*100:0,E=o.useMemo(()=>s.length===0?[]:[{id:"equity",label:"Portfolio",color:p,data:s,value:t}],[s,t,p]),R=o.useMemo(()=>{if(s.length===0)return d;const n=s[s.length-1].time-s[0].time;return Math.min(h,Math.max(d,Math.ceil(n)))},[s,h]);return e.jsxs("div",{ref:P,className:"flex h-full min-h-0 flex-col",children:[e.jsxs("div",{className:"flex flex-none items-baseline justify-between border-b border-white/[0.06] pb-2",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(_,{portfolio:a,config:c,className:"caption text-soft"}),e.jsx("span",{className:"metric-md text-strong",children:N(t)})]}),e.jsxs("span",{className:"body-sm font-semibold tabular-nums",style:{color:D(j)},children:[L(j)," ",e.jsx("span",{className:"caption text-soft",children:"session"})]})]}),e.jsx("div",{className:"min-h-0 flex-1 [&>div[style*='align-items']]:!hidden",children:e.jsx(V,{data:[],value:t,series:E,theme:"dark",window:R,grid:!0,loading:s.length<=1,scrub:!1,badge:!1,formatValue:N,padding:q,style:{width:"100%",height:"100%"}})})]})}function O({config:a}){return e.jsx(H,{config:a,loadingLabel:"loading portfolio…",children:c=>e.jsx(G,{portfolio:c,config:a,windowSec:a.windowSec})})}const K=k({...y,component:O});export{K as portfolioValueFrame};
@@ -0,0 +1 @@
1
+ import{j as e,r as c}from"./react-qoZPGuNy.js";import{f,dz as i,h as u}from"./index-BHlJHScr.js";import{f as l}from"./format-DxkEZcwQ.js";import{P as p,u as x,a as d}from"./portfolio-common-e3o9U7qd.js";import{F as h}from"./ui-Bq3RQsdJ.js";import{B as j}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function v({portfolio:t,config:s}){const{priced:o,total:m}=x(t.holdings),r=c.useMemo(()=>o.filter(a=>(a.value??0)>0).sort((a,n)=>(n.value??0)-(a.value??0)).slice(0,s.limit).map(a=>({label:u(a.symbol),value:a.value??0})),[o,s.limit]);return r.length===0?e.jsx(h,{children:"no live prices yet"}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsxs("div",{className:"flex items-baseline justify-between px-0.5",children:[e.jsx(d,{portfolio:t,config:s,className:"caption text-soft"}),e.jsx("span",{className:"metric-sm text-strong",children:l(m)})]}),e.jsx(j,{data:r,orientation:"horizontal",height:Math.max(r.length*24,96),formatValue:l})]})}function g({config:t}){return e.jsx(p,{config:t,loadingLabel:"loading holdings…",children:s=>e.jsx(v,{portfolio:s,config:t})})}const z=f({...i,component:g});export{z as portfolioValueBarsFrame};
@@ -0,0 +1 @@
1
+ import{r as m,j as r}from"./react-qoZPGuNy.js";import{f as l}from"./format-DxkEZcwQ.js";import{f as c,dt as s,bI as f}from"./index-BHlJHScr.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{B as u}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function d(t,e=28){return t.length>e?`${t.slice(0,e-1)}…`:t}function p({config:t}){const{markets:e,isLoading:n}=f(t.limit),a=m.useMemo(()=>e.map(o=>({label:d(o.question),value:o.volume24h})),[e]);return n?r.jsx(i,{loading:!0,children:"loading markets…"}):a.length===0?r.jsx(i,{children:"no markets yet"}):r.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[r.jsx(u,{data:a,orientation:"horizontal",height:Math.max(a.length*26,96),formatValue:l}),r.jsx("div",{className:"caption text-soft text-center",children:"prediction markets · 24h volume"})]})}const B=c({...s,component:p});export{B as predictionMarketBarsFrame};
@@ -0,0 +1 @@
1
+ import{r as p,j as o}from"./react-qoZPGuNy.js";import{f as u,b as f}from"./format-DxkEZcwQ.js";import{f as d,dw as i,bI as h}from"./index-BHlJHScr.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{S as x}from"./scatter-chart-B78EA7lD.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function g(e,r=20){return e.length>r?`${e.slice(0,r-1)}…`:e}const b=e=>f(e,0);function j({config:e}){const{markets:r,isLoading:n}=h(e.limit),a=p.useMemo(()=>r.filter(t=>t.outcomes.length>0&&t.volume24h>0).map(t=>{const c=[...t.outcomes].sort((m,l)=>l.prob-m.prob)[0];return{id:t.question,label:g(t.question),x:c.prob*100,y:t.volume24h,weight:t.volume24h}}),[r]);return n?o.jsx(s,{loading:!0,children:"loading markets…"}):a.length===0?o.jsx(s,{children:"no markets yet"}):o.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[o.jsx(x,{data:a,yScale:"log",height:210,formatX:b,formatY:u,maxLabels:10}),o.jsxs("div",{className:"caption text-soft text-center",children:["top-outcome probability (x) vs 24h volume (y, log) · top ",a.length]})]})}const L=d({...i,component:j});export{L as predictionMarketScatterFrame};
@@ -1 +1 @@
1
- import{j as r}from"./react-qoZPGuNy.js";import{U as p,b as f,f as d}from"./format-CfAcS4D8.js";import{M as u}from"./metric-row-BVVhjsjK.js";import{f as x,bx as a,by as b}from"./index-kB-TyxKi.js";import{F as s,s as h}from"./ui-Bq3RQsdJ.js";a.schema;function j({config:i}){const{markets:t,isLoading:n}=b(i.limit);return n?r.jsx(s,{loading:!0,children:"loading markets…"}):t.length===0?r.jsx(s,{children:"no markets yet"}):r.jsx("div",{className:`${h} flex flex-col`,children:t.map((e,m)=>{const o=[...e.outcomes].sort((l,c)=>c.prob-l.prob)[0];return r.jsx(u,{label:e.question,meta:`${o.label} · vol ${d(e.volume24h)}`,value:r.jsx("span",{style:{color:p},children:f(o.prob*100,0)})},m)})})}const P=x({...a,component:j});export{P as predictionMarketsFrame};
1
+ import{j as r}from"./react-qoZPGuNy.js";import{U as p,b as f,f as d}from"./format-DxkEZcwQ.js";import{M as u}from"./metric-row-BVVhjsjK.js";import{f as x,bH as a,bI as b}from"./index-BHlJHScr.js";import{F as s,s as h}from"./ui-Bq3RQsdJ.js";a.schema;function j({config:i}){const{markets:t,isLoading:n}=b(i.limit);return n?r.jsx(s,{loading:!0,children:"loading markets…"}):t.length===0?r.jsx(s,{children:"no markets yet"}):r.jsx("div",{className:`${h} flex flex-col`,children:t.map((e,m)=>{const o=[...e.outcomes].sort((l,c)=>c.prob-l.prob)[0];return r.jsx(u,{label:e.question,meta:`${o.label} · vol ${d(e.volume24h)}`,value:r.jsx("span",{style:{color:p},children:f(o.prob*100,0)})},m)})})}const P=x({...a,component:j});export{P as predictionMarketsFrame};
@@ -0,0 +1 @@
1
+ import{r as m,j as p}from"./react-qoZPGuNy.js";import{B as b}from"./bubbles-shared-DlmjtiIA.js";import{b as d,f}from"./format-DxkEZcwQ.js";import{f as h,dB as l,bI as M}from"./index-BHlJHScr.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function $(s,o=18){const e=s.trim();if(e.length<=o)return e;const r=e.slice(0,o),t=r.lastIndexOf(" ");return`${t>o*.5?r.slice(0,t):r}…`}function v(s){const o=Math.max(0,Math.min(1,(s-.5)/.5)),e=Math.round(64-o*22);return`hsl(152 ${Math.round(30+o*50)}% ${e}%)`}function g({config:s}){const{markets:o,isLoading:e}=M(s.limit),r=m.useMemo(()=>o.filter(t=>t.volume24h>0).map((t,n)=>{const a=[...t.outcomes].sort((c,u)=>u.prob-c.prob)[0],i=v(a.prob);return{id:`${n}-${t.question}`,label:$(t.question),value:t.volume24h,color:i,borderColor:i,question:t.question,topLabel:a.label,topProb:a.prob,volume24h:t.volume24h}}),[o]);return p.jsx(b,{nodes:r,isLoading:e,loadingText:"loading markets…",emptyText:"no markets yet",caption:`area by 24h volume · tint by leading-outcome confidence · top ${r.length}`,formatTitle:t=>{const n=t;return`${n.question} — ${n.topLabel} ${d(n.topProb*100,0)} · vol ${f(n.volume24h)}`}})}const L=h({...l,component:g});export{L as predictionMarketsBubbleFrame};
@@ -1 +1 @@
1
- import{j as i,r as o}from"./react-qoZPGuNy.js";import{L as T}from"./liveline-bcaEuskN.js";import{f as j,a1 as v,A as E,k as y,h as P,a2 as k}from"./index-kB-TyxKi.js";import{d as x}from"./format-CfAcS4D8.js";import{u as A}from"./live-tick-9Q3ubPF9.js";import{F as N}from"./ui-Bq3RQsdJ.js";const f={"1m":6e4,"5m":5*6e4,"15m":15*6e4,"1h":60*6e4,"4h":240*6e4,"1d":1440*6e4},w=60,F={top:12,right:56,bottom:28,left:12};v.schema;function I({config:t}){const s=f[t.interval],c=o.useMemo(()=>Date.now()-s*w,[s]),{candles:n,isLoading:p}=k(t.symbol,t.interval,c,Math.min(s,6e4)),a=y([t.symbol])[t.symbol],{ref:M,visibleRef:b}=A(),h=o.useRef(!1),[u,g]=o.useState([]);o.useEffect(()=>{if(a===void 0)return;if(!b.current){h.current=!0;return}const e=h.current;h.current=!1,g(m=>{const d=[...e?[]:m,{time:Date.now()/1e3,value:a}];return d.length>900?d.slice(-600):d})},[a,b]),o.useEffect(()=>g([]),[t.symbol]);const S=o.useMemo(()=>n.slice(0,-1).map(e=>({time:e.time/1e3,open:e.open,high:e.high,low:e.low,close:e.close})),[n]),r=n[n.length-1],C=o.useMemo(()=>{if(!r)return;const e=a??r.close;return{time:r.time/1e3,open:r.open,high:Math.max(r.high,e),low:Math.min(r.low,e),close:e}},[r,a]),D=a??(r==null?void 0:r.close)??0,L=o.useMemo(()=>s>=f["1d"]?e=>new Date(e*1e3).toLocaleDateString("en-US",{month:"short",day:"numeric"}):s>=f["1h"]?e=>{const m=new Date(e*1e3);return`${m.toLocaleDateString("en-US",{month:"short",day:"numeric"})} ${String(m.getHours()).padStart(2,"0")}h`}:e=>new Date(e*1e3).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),[s]),R=o.useMemo(()=>{const e=n.map(l=>({time:l.time/1e3,value:l.close}));if(u.length===0)return e;const m=u[0].time;return[...e.filter(l=>l.time<m),...u]},[n,u]);return p&&n.length===0?i.jsx(N,{loading:!0,children:"loading chart…"}):i.jsx("div",{ref:M,className:"h-full min-h-0",children:i.jsx(T,{mode:t.mode,data:R,value:D,candles:S,candleWidth:s/1e3,liveCandle:C,window:s/1e3*w,color:t.color,theme:"dark",loading:p,formatValue:x,formatTime:L,padding:F,showValue:!0,fill:!0,pulse:!0})})}function V({config:t}){const s=t.mode==="candle",c=y(s?[t.symbol]:[])[t.symbol];return i.jsxs(i.Fragment,{children:[P(t.symbol),s&&c!==void 0&&i.jsx("span",{style:{marginInlineStart:"0.5em",color:"rgba(255, 255, 255, 0.82)",fontVariantNumeric:"tabular-nums"},children:x(c)})]})}const W=j({...v,component:I,titleIcon:({config:t})=>i.jsx(E,{symbol:t.symbol,size:14}),titleContent:V});export{W as priceChartFrame};
1
+ import{j as i,r as o}from"./react-qoZPGuNy.js";import{L as T}from"./liveline-bcaEuskN.js";import{f as j,ab as v,A as E,z as y,h as P,ac as A}from"./index-BHlJHScr.js";import{e as x}from"./format-DxkEZcwQ.js";import{u as N}from"./live-tick-9Q3ubPF9.js";import{F as k}from"./ui-Bq3RQsdJ.js";const f={"1m":6e4,"5m":5*6e4,"15m":15*6e4,"1h":60*6e4,"4h":240*6e4,"1d":1440*6e4},w=60,F={top:12,right:56,bottom:28,left:12};v.schema;function I({config:t}){const s=f[t.interval],c=o.useMemo(()=>Date.now()-s*w,[s]),{candles:n,isLoading:p}=A(t.symbol,t.interval,c,Math.min(s,6e4)),a=y([t.symbol])[t.symbol],{ref:M,visibleRef:b}=N(),h=o.useRef(!1),[u,g]=o.useState([]);o.useEffect(()=>{if(a===void 0)return;if(!b.current){h.current=!0;return}const e=h.current;h.current=!1,g(m=>{const d=[...e?[]:m,{time:Date.now()/1e3,value:a}];return d.length>900?d.slice(-600):d})},[a,b]),o.useEffect(()=>g([]),[t.symbol]);const S=o.useMemo(()=>n.slice(0,-1).map(e=>({time:e.time/1e3,open:e.open,high:e.high,low:e.low,close:e.close})),[n]),r=n[n.length-1],C=o.useMemo(()=>{if(!r)return;const e=a??r.close;return{time:r.time/1e3,open:r.open,high:Math.max(r.high,e),low:Math.min(r.low,e),close:e}},[r,a]),D=a??(r==null?void 0:r.close)??0,L=o.useMemo(()=>s>=f["1d"]?e=>new Date(e*1e3).toLocaleDateString("en-US",{month:"short",day:"numeric"}):s>=f["1h"]?e=>{const m=new Date(e*1e3);return`${m.toLocaleDateString("en-US",{month:"short",day:"numeric"})} ${String(m.getHours()).padStart(2,"0")}h`}:e=>new Date(e*1e3).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),[s]),R=o.useMemo(()=>{const e=n.map(l=>({time:l.time/1e3,value:l.close}));if(u.length===0)return e;const m=u[0].time;return[...e.filter(l=>l.time<m),...u]},[n,u]);return p&&n.length===0?i.jsx(k,{loading:!0,children:"loading chart…"}):i.jsx("div",{ref:M,className:"h-full min-h-0",children:i.jsx(T,{mode:t.mode,data:R,value:D,candles:S,candleWidth:s/1e3,liveCandle:C,window:s/1e3*w,color:t.color,theme:"dark",loading:p,formatValue:x,formatTime:L,padding:F,showValue:!0,fill:!0,pulse:!0})})}function V({config:t}){const s=t.mode==="candle",c=y(s?[t.symbol]:[])[t.symbol];return i.jsxs(i.Fragment,{children:[P(t.symbol),s&&c!==void 0&&i.jsx("span",{style:{marginInlineStart:"0.5em",color:"rgba(255, 255, 255, 0.82)",fontVariantNumeric:"tabular-nums"},children:x(c)})]})}const W=j({...v,component:I,titleIcon:({config:t})=>i.jsx(E,{symbol:t.symbol,size:14}),titleContent:V});export{W as priceChartFrame};
@@ -1 +1 @@
1
- import{j as t,r as p}from"./react-qoZPGuNy.js";import{f as v,a3 as f,h as d,a4 as L,a5 as O}from"./index-kB-TyxKi.js";import{a as g,d as F}from"./format-CfAcS4D8.js";import{F as u}from"./ui-Bq3RQsdJ.js";import{a as s,C as h}from"./chart-utils-Ct7WziT9.js";import{M as T}from"./index-DKixdHYB.js";import"./d3-Dr3MHXm3.js";import"./utils-DxneYyA_.js";const D={"24h":{ms:1440*60*1e3,interval:"15m",timeframe:s["24h"]},"7D":{ms:10080*60*1e3,interval:"1h",timeframe:s["7D"]},"1M":{ms:720*60*60*1e3,interval:"4h",timeframe:s["1M"]}};f.schema;function E({config:e}){const{ms:m,interval:C,timeframe:M}=D[e.lookback],x=p.useMemo(()=>Date.now()-m,[m]),{candles:o,isLoading:S}=L(e.symbols,C,x),i=p.useMemo(()=>e.symbols.map((r,j)=>{var c;const n=o[r]??[],l=(c=n[0])==null?void 0:c.close;return{id:r,name:d(r),iconImageUrl:O(r),color:h[j%h.length],data:n.map(a=>({date:new Date(a.time).toISOString(),value:e.normalize&&l?(a.close/l-1)*100:a.close}))}}),[e.symbols,e.normalize,o]);return S?t.jsx(u,{loading:!0,children:"loading prices…"}):i.every(r=>r.data.length===0)?t.jsx(u,{children:"no price data yet"}):t.jsx(T,{series:i,timeframe:M,height:250,formatValue:e.normalize?g:F})}function I({config:e}){return t.jsx(t.Fragment,{children:e.symbols.map(d).join(" vs ")})}const w=v({...f,component:E,titleContent:I});export{w as priceCompareFrame};
1
+ import{j as t,r as p}from"./react-qoZPGuNy.js";import{f as v,ad as h,h as d,ae as L,af as O}from"./index-BHlJHScr.js";import{a as g,e as F}from"./format-DxkEZcwQ.js";import{F as u}from"./ui-Bq3RQsdJ.js";import{a as s,C as f}from"./chart-utils-DGogNvJT.js";import{M as T}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const D={"24h":{ms:1440*60*1e3,interval:"15m",timeframe:s["24h"]},"7D":{ms:10080*60*1e3,interval:"1h",timeframe:s["7D"]},"1M":{ms:720*60*60*1e3,interval:"4h",timeframe:s["1M"]}};h.schema;function E({config:e}){const{ms:m,interval:C,timeframe:M}=D[e.lookback],x=p.useMemo(()=>Date.now()-m,[m]),{candles:o,isLoading:S}=L(e.symbols,C,x),i=p.useMemo(()=>e.symbols.map((r,j)=>{var c;const n=o[r]??[],l=(c=n[0])==null?void 0:c.close;return{id:r,name:d(r),iconImageUrl:O(r),color:f[j%f.length],data:n.map(a=>({date:new Date(a.time).toISOString(),value:e.normalize&&l?(a.close/l-1)*100:a.close}))}}),[e.symbols,e.normalize,o]);return S?t.jsx(u,{loading:!0,children:"loading prices…"}):i.every(r=>r.data.length===0)?t.jsx(u,{children:"no price data yet"}):t.jsx(T,{series:i,timeframe:M,height:250,formatValue:e.normalize?g:F})}function I({config:e}){return t.jsx(t.Fragment,{children:e.symbols.map(d).join(" vs ")})}const w=v({...h,component:E,titleContent:I});export{w as priceCompareFrame};
@@ -1 +1 @@
1
- import{r as o,j as u}from"./react-qoZPGuNy.js";import{L as T}from"./liveline-bcaEuskN.js";import{f as V,a6 as L,k as W,v as $,h as N,A as B}from"./index-kB-TyxKi.js";import{d as k,a as E,c as G}from"./format-CfAcS4D8.js";import{u as K,o as U}from"./live-tick-9Q3ubPF9.js";import{C as j}from"./chart-utils-Ct7WziT9.js";import"./d3-Dr3MHXm3.js";const _=720,D=3,X={top:12,right:58,bottom:28,left:8};L.schema;function O(i){return i!==void 0&&Number.isFinite(i)}function q(i,s,S,m){let x=!1;const b={...i};for(const p of s){const d=S[p];if(!O(d))continue;const l=b[p]??[],g=l[l.length-1];if(g&&Math.abs(m-g.time)<.5&&g.value===d)continue;const h=l.length===0?[{time:m-D,value:d},{time:m,value:d}]:[...l,{time:m,value:d}];b[p]=h.length>_?h.slice(-_):h,x=!0}return x?b:i}function z(i,s){return s===0?0:(i/s-1)*100}function J({config:i}){const s=i.symbols,S=s.join("|"),m=W(s),x=$(s),{ref:b,visibleRef:p}=K(),d=o.useRef(!1),[l,g]=o.useState({}),[h,C]=o.useState(()=>new Set),v=o.useMemo(()=>{var n;const e={};for(const t of s){const a=m[t]??((n=x[t])==null?void 0:n.markPx);O(a)&&(e[t]=a)}return e},[m,x,s]),P=o.useRef(v);o.useEffect(()=>{P.current=v},[v]),o.useEffect(()=>{const e=new Set(s);g(n=>{let t=!1;const a={};for(const[r,f]of Object.entries(n)){if(!e.has(r)){t=!0;continue}a[r]=f}return t?a:n}),C(n=>{const t=new Set([...n].filter(a=>e.has(a)));return t.size===n.size?n:t})},[S,s]);const F=o.useCallback(e=>{C(n=>{const t=new Set(n);return t.has(e)?(t.delete(e),t):s.length-t.size<=1?n:(t.add(e),t)})},[s]),y=o.useCallback(()=>{if(!p.current){d.current=!0;return}const e=P.current;if(Object.keys(e).length===0)return;const n=Date.now()/1e3,t=d.current;d.current=!1,g(a=>q(t?{}:a,s,e,n))},[S,s,p]);o.useEffect(()=>{y()},[y,v]),o.useEffect(()=>U(y),[y]);const R=o.useMemo(()=>s.flatMap((e,n)=>{var f,c;if(h.has(e))return[];const t=l[e]??[],a=(f=t[0])==null?void 0:f.value;if(!a||t.length===0)return[];const r=i.normalize?t.map(w=>({time:w.time,value:z(w.value,a)})):t;return[{id:e,label:N(e),color:j[n%j.length],data:r,value:((c=r[r.length-1])==null?void 0:c.value)??0}]}),[l,h,s,i.normalize]),H=o.useMemo(()=>{var a,r;let e=1/0,n=-1/0;for(const f of s){const c=l[f]??[];c.length!==0&&(e=Math.min(e,((a=c[0])==null?void 0:a.time)??1/0),n=Math.max(n,((r=c[c.length-1])==null?void 0:r.time)??-1/0))}const t=Number.isFinite(e)&&Number.isFinite(n)?n-e:0;return Math.min(i.windowSec,Math.max(D,Math.ceil(t)))},[l,s,i.windowSec]),A=R.some(e=>e.data.length>1);return u.jsxs("div",{ref:b,className:"flex h-full min-h-0 flex-col",children:[u.jsx("div",{className:"grid flex-none grid-cols-1 gap-x-3 gap-y-1.5 border-b border-white/[0.06] pb-2 sm:grid-cols-2",children:s.map((e,n)=>{var w,I;const t=v[e],a=(I=(w=l[e])==null?void 0:w[0])==null?void 0:I.value,r=t!==void 0&&a?z(t,a):void 0,f=j[n%j.length],c=h.has(e);return u.jsxs("button",{type:"button","aria-pressed":!c,title:`${c?"Show":"Hide"} ${N(e)}`,className:`caption grid min-w-0 grid-cols-[auto_auto_minmax(0,1fr)_auto] items-center gap-1.5 rounded-md px-1.5 py-0.5 text-left transition ${c?"opacity-40 hover:opacity-70":"bg-white/[0.035] opacity-100 hover:bg-white/[0.06]"}`,onClick:M=>{M.stopPropagation(),F(e)},onPointerDown:M=>M.stopPropagation(),children:[u.jsx("span",{className:"h-1.5 w-1.5 rounded-full",style:{backgroundColor:f}}),u.jsx(B,{symbol:e,size:14}),u.jsx("span",{className:"truncate font-bold text-strong",children:N(e)}),u.jsxs("span",{className:"text-normal tabular-nums",children:[t!==void 0?k(t):"…",r!==void 0?u.jsx("span",{className:"ml-1 tabular-nums",style:{color:G(r)},children:E(r)}):null]})]},e)})}),u.jsx("div",{className:"min-h-0 flex-1 [&>div[style*='align-items']]:!hidden",children:u.jsx(T,{data:[],value:0,series:R,theme:"dark",window:H,grid:!0,loading:!A,scrub:!1,badge:!1,formatValue:i.normalize?E:k,padding:X,seriesToggleCompact:s.length>4,style:{width:"100%",height:"100%"}})})]})}const ae=V({...L,component:J});export{ae as priceLivelineFrame};
1
+ import{r as o,j as u}from"./react-qoZPGuNy.js";import{L as T}from"./liveline-bcaEuskN.js";import{f as V,ag as L,z as W,y as $,h as N,A as B}from"./index-BHlJHScr.js";import{e as z,a as E,c as G}from"./format-DxkEZcwQ.js";import{u as K,o as U}from"./live-tick-9Q3ubPF9.js";import{C as j}from"./chart-utils-DGogNvJT.js";import"./d3-ibrLIlQc.js";const _=720,D=3,X={top:12,right:58,bottom:28,left:8};L.schema;function O(i){return i!==void 0&&Number.isFinite(i)}function q(i,s,S,m){let x=!1;const b={...i};for(const p of s){const d=S[p];if(!O(d))continue;const l=b[p]??[],g=l[l.length-1];if(g&&Math.abs(m-g.time)<.5&&g.value===d)continue;const h=l.length===0?[{time:m-D,value:d},{time:m,value:d}]:[...l,{time:m,value:d}];b[p]=h.length>_?h.slice(-_):h,x=!0}return x?b:i}function k(i,s){return s===0?0:(i/s-1)*100}function J({config:i}){const s=i.symbols,S=s.join("|"),m=W(s),x=$(s),{ref:b,visibleRef:p}=K(),d=o.useRef(!1),[l,g]=o.useState({}),[h,C]=o.useState(()=>new Set),v=o.useMemo(()=>{var n;const e={};for(const t of s){const a=m[t]??((n=x[t])==null?void 0:n.markPx);O(a)&&(e[t]=a)}return e},[m,x,s]),P=o.useRef(v);o.useEffect(()=>{P.current=v},[v]),o.useEffect(()=>{const e=new Set(s);g(n=>{let t=!1;const a={};for(const[r,f]of Object.entries(n)){if(!e.has(r)){t=!0;continue}a[r]=f}return t?a:n}),C(n=>{const t=new Set([...n].filter(a=>e.has(a)));return t.size===n.size?n:t})},[S,s]);const F=o.useCallback(e=>{C(n=>{const t=new Set(n);return t.has(e)?(t.delete(e),t):s.length-t.size<=1?n:(t.add(e),t)})},[s]),y=o.useCallback(()=>{if(!p.current){d.current=!0;return}const e=P.current;if(Object.keys(e).length===0)return;const n=Date.now()/1e3,t=d.current;d.current=!1,g(a=>q(t?{}:a,s,e,n))},[S,s,p]);o.useEffect(()=>{y()},[y,v]),o.useEffect(()=>U(y),[y]);const R=o.useMemo(()=>s.flatMap((e,n)=>{var f,c;if(h.has(e))return[];const t=l[e]??[],a=(f=t[0])==null?void 0:f.value;if(!a||t.length===0)return[];const r=i.normalize?t.map(w=>({time:w.time,value:k(w.value,a)})):t;return[{id:e,label:N(e),color:j[n%j.length],data:r,value:((c=r[r.length-1])==null?void 0:c.value)??0}]}),[l,h,s,i.normalize]),H=o.useMemo(()=>{var a,r;let e=1/0,n=-1/0;for(const f of s){const c=l[f]??[];c.length!==0&&(e=Math.min(e,((a=c[0])==null?void 0:a.time)??1/0),n=Math.max(n,((r=c[c.length-1])==null?void 0:r.time)??-1/0))}const t=Number.isFinite(e)&&Number.isFinite(n)?n-e:0;return Math.min(i.windowSec,Math.max(D,Math.ceil(t)))},[l,s,i.windowSec]),A=R.some(e=>e.data.length>1);return u.jsxs("div",{ref:b,className:"flex h-full min-h-0 flex-col",children:[u.jsx("div",{className:"grid flex-none grid-cols-1 gap-x-3 gap-y-1.5 border-b border-white/[0.06] pb-2 sm:grid-cols-2",children:s.map((e,n)=>{var w,I;const t=v[e],a=(I=(w=l[e])==null?void 0:w[0])==null?void 0:I.value,r=t!==void 0&&a?k(t,a):void 0,f=j[n%j.length],c=h.has(e);return u.jsxs("button",{type:"button","aria-pressed":!c,title:`${c?"Show":"Hide"} ${N(e)}`,className:`caption grid min-w-0 grid-cols-[auto_auto_minmax(0,1fr)_auto] items-center gap-1.5 rounded-md px-1.5 py-0.5 text-left transition ${c?"opacity-40 hover:opacity-70":"bg-white/[0.035] opacity-100 hover:bg-white/[0.06]"}`,onClick:M=>{M.stopPropagation(),F(e)},onPointerDown:M=>M.stopPropagation(),children:[u.jsx("span",{className:"h-1.5 w-1.5 rounded-full",style:{backgroundColor:f}}),u.jsx(B,{symbol:e,size:14}),u.jsx("span",{className:"truncate font-bold text-strong",children:N(e)}),u.jsxs("span",{className:"text-normal tabular-nums",children:[t!==void 0?z(t):"…",r!==void 0?u.jsx("span",{className:"ml-1 tabular-nums",style:{color:G(r)},children:E(r)}):null]})]},e)})}),u.jsx("div",{className:"min-h-0 flex-1 [&>div[style*='align-items']]:!hidden",children:u.jsx(T,{data:[],value:0,series:R,theme:"dark",window:H,grid:!0,loading:!A,scrub:!1,badge:!1,formatValue:i.normalize?E:z,padding:X,seriesToggleCompact:s.length>4,style:{width:"100%",height:"100%"}})})]})}const ae=V({...L,component:J});export{ae as priceLivelineFrame};
@@ -0,0 +1 @@
1
+ import{j as i}from"./react-qoZPGuNy.js";import{f as d,ah as c,ai as l,aj as x,h as g}from"./index-BHlJHScr.js";import{M as f}from"./mover-row-Bz-YpFL3.js";import{F as h,s as u}from"./ui-Bq3RQsdJ.js";import"./format-DxkEZcwQ.js";c.schema;function j({config:e}){const{mids:t,isLoading:m}=l(e.symbols),{stats:r,isLoading:n}=x(e.symbols),p=e.symbols.some(a=>{var s;return t[a]!==void 0||((s=r[a])==null?void 0:s.markPx)!==void 0});return(m||n)&&!p?i.jsx(h,{loading:!0,children:"loading prices…"}):i.jsx("div",{className:`flex flex-col gap-1.5 ${u}`,children:e.symbols.map(a=>{var s,o;return i.jsx(f,{symbol:a,label:g(a),price:t[a]??((s=r[a])==null?void 0:s.markPx),changePct:(o=r[a])==null?void 0:o.changePct,logoSize:18,gap:"gap-3"},a)})})}const L=d({...c,component:j});export{L as priceTickerFrame};
@@ -0,0 +1 @@
1
+ import{r as l,j as n}from"./react-qoZPGuNy.js";import{B as m}from"./bubbles-shared-DlmjtiIA.js";import{c as r,f as p,a as i}from"./format-DxkEZcwQ.js";import{f,cj as s,aF as b}from"./index-BHlJHScr.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function h({config:o}){const{entries:t,isLoading:c}=b(),a=l.useMemo(()=>t.filter(e=>e.fees24h>0).slice(0,o.topN).map(e=>({id:e.name,label:e.name,value:e.fees24h,color:r(e.changePct??0),borderColor:r(e.changePct??0),changePct:e.changePct??0})),[t,o.topN]);return n.jsx(m,{nodes:a,isLoading:c,loadingText:"loading protocol fees…",emptyText:"no protocol fee data",caption:`area by 24h fees · ring by 1d change · top ${a.length}`,formatTitle:e=>`${e.label} · ${p(e.value)} fees · ${i(e.changePct)}`})}const C=f({...s,component:h});export{C as protocolFeesBubblesFrame};
@@ -1 +1 @@
1
- import{r as c,j as s}from"./react-qoZPGuNy.js";import{f as i}from"./format-CfAcS4D8.js";import{f as p,au as n,av as f}from"./index-kB-TyxKi.js";import{T as l,a as u}from"./treemap-leaf-A45Ge4-e.js";import{F as m}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-Dr3MHXm3.js";n.schema;function h({width:t,height:a,data:o}){const r=i(o.fees24h);return s.jsx(u,{width:t,height:a,label:o.id,secondary:r,title:`${o.id} · ${r} 24h fees`})}function d({config:t}){const{entries:a,isLoading:o}=f(),r=c.useMemo(()=>a.slice(0,t.topN).map(e=>({id:e.name,value:e.fees24h,fees24h:e.fees24h,changePct:e.changePct??0})),[a,t.topN]);return o?s.jsx(m,{loading:!0,children:"loading protocol fees…"}):r.length===0?s.jsx(m,{children:"no protocol fee data"}):s.jsx(l,{data:r,LeafComponent:h,getColorValue:e=>e.changePct})}const L=p({...n,component:d});export{L as protocolFeesTreemapFrame};
1
+ import{r as c,j as s}from"./react-qoZPGuNy.js";import{f as i}from"./format-DxkEZcwQ.js";import{f as p,aE as n,aF as f}from"./index-BHlJHScr.js";import{T as l,a as u}from"./treemap-leaf-QG-L-SIG.js";import{F as m}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";n.schema;function h({width:t,height:a,data:o}){const r=i(o.fees24h);return s.jsx(u,{width:t,height:a,label:o.id,secondary:r,title:`${o.id} · ${r} 24h fees`})}function d({config:t}){const{entries:a,isLoading:o}=f(),r=c.useMemo(()=>a.slice(0,t.topN).map(e=>({id:e.name,value:e.fees24h,fees24h:e.fees24h,changePct:e.changePct??0})),[a,t.topN]);return o?s.jsx(m,{loading:!0,children:"loading protocol fees…"}):r.length===0?s.jsx(m,{children:"no protocol fee data"}):s.jsx(l,{data:r,LeafComponent:h,getColorValue:e=>e.changePct})}const L=p({...n,component:d});export{L as protocolFeesTreemapFrame};
@@ -0,0 +1 @@
1
+ import{r as p,j as o}from"./react-qoZPGuNy.js";import{f as i}from"./format-DxkEZcwQ.js";import{f as g,cN as c,aB as x,aF as d}from"./index-BHlJHScr.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{S as u}from"./scatter-chart-B78EA7lD.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function v({config:r}){const{entries:n,isLoading:f}=x(),{entries:l,isLoading:h}=d(),a=p.useMemo(()=>{const s=new Map;for(const e of n)s.set(e.name,e.tvl);return l.flatMap(e=>{const t=s.get(e.name);return t&&t>0&&e.fees24h>0?[{name:e.name,tvl:t,fees24h:e.fees24h}]:[]}).sort((e,t)=>t.fees24h-e.fees24h).slice(0,r.limit).map(e=>({id:e.name,label:e.name,x:Math.log10(e.tvl),y:e.fees24h,weight:e.fees24h}))},[n,l,r.limit]);return f||h?o.jsx(m,{loading:!0,children:"loading protocols…"}):a.length===0?o.jsx(m,{children:"no matching protocol data yet"}):o.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[o.jsx(u,{data:a,yScale:"log",height:210,formatX:s=>i(10**s),formatY:i,maxLabels:10}),o.jsxs("div",{className:"caption text-soft text-center",children:["TVL (x, log) vs 24h fees (y, log) · top ",a.length," by fees"]})]})}const N=g({...c,component:v});export{N as protocolFeesVsTvlScatterFrame};
@@ -0,0 +1 @@
1
+ import{r as s,j as n}from"./react-qoZPGuNy.js";import{B as m}from"./bubbles-shared-DlmjtiIA.js";import{c as r,f as p,a as i}from"./format-DxkEZcwQ.js";import{f as b,ch as l,aB as g}from"./index-BHlJHScr.js";import"./ui-Bq3RQsdJ.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function u({config:t}){const{entries:a,isLoading:c}=g(),e=s.useMemo(()=>a.filter(o=>o.tvl>0).slice(0,t.topN).map(o=>({id:o.name,label:o.name,value:o.tvl,color:r(o.changePct??0),borderColor:r(o.changePct??0),changePct:o.changePct??0})),[a,t.topN]);return n.jsx(m,{nodes:e,isLoading:c,loadingText:"loading protocol TVL…",emptyText:"no protocol TVL data",caption:`area by TVL · ring by 1d change · top ${e.length}`,formatTitle:o=>`${o.label} · ${p(o.value)} TVL · ${i(o.changePct)}`})}const B=b({...l,component:u});export{B as protocolTvlBubblesFrame};
@@ -0,0 +1 @@
1
+ import{r as m,j as e}from"./react-qoZPGuNy.js";import{f as p}from"./format-DxkEZcwQ.js";import{f,cP as l,aB as u}from"./index-BHlJHScr.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{B as x}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function h({config:s}){const{entries:i,isLoading:c}=u(),r=m.useMemo(()=>{const a=new Map;for(const t of i){const o=t.category??"Other";a.set(o,(a.get(o)??0)+t.tvl)}return[...a.entries()].map(([t,o])=>({label:t,value:o})).sort((t,o)=>o.value-t.value).slice(0,s.limit)},[i,s.limit]);return c?e.jsx(n,{loading:!0,children:"loading protocol TVL…"}):r.length===0?e.jsx(n,{children:"no protocol TVL data yet"}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(x,{data:r,orientation:"horizontal",height:Math.max(r.length*26,96),formatValue:p}),e.jsx("div",{className:"caption text-soft text-center",children:"DeFi TVL · by category"})]})}const C=f({...l,component:h});export{C as protocolTvlByCategoryFrame};
@@ -1 +1 @@
1
- import{r as n,j as e}from"./react-qoZPGuNy.js";import{p as C,f as M}from"./format-CfAcS4D8.js";import{f as S,as as f,at as T}from"./index-kB-TyxKi.js";import{F as p}from"./ui-Bq3RQsdJ.js";import{a,C as c}from"./chart-utils-Ct7WziT9.js";import{M as v}from"./index-DKixdHYB.js";import"./d3-Dr3MHXm3.js";import"./utils-DxneYyA_.js";const x={"7D":{ms:10080*60*1e3,timeframe:a["7D"]},"1M":{ms:720*60*60*1e3,timeframe:a["1M"]},"3M":{ms:2160*60*60*1e3,timeframe:a["3M"]}};f.schema;function L({config:o}){const{ms:m,timeframe:u}=x[o.lookback],s=n.useMemo(()=>Date.now()-m,[m]),{history:i,isLoading:h}=T(o.protocols),l=n.useMemo(()=>o.protocols.map((t,d)=>({id:t,name:C(t),color:c[d%c.length],data:(i[t]??[]).filter(r=>r.time>=s).map(r=>({date:new Date(r.time).toISOString(),value:r.value}))})),[o.protocols,i,s]);return h?e.jsx(p,{loading:!0,children:"loading protocol TVL…"}):l.every(t=>t.data.length===0)?e.jsx(p,{children:"no protocol TVL data yet"}):e.jsx(v,{series:l,timeframe:u,height:250,formatValue:M})}const I=S({...f,component:L});export{I as protocolTvlChartFrame};
1
+ import{r as n,j as e}from"./react-qoZPGuNy.js";import{p as C,f as M}from"./format-DxkEZcwQ.js";import{f as S,aC as f,aD as T}from"./index-BHlJHScr.js";import{F as p}from"./ui-Bq3RQsdJ.js";import{a,C as c}from"./chart-utils-DGogNvJT.js";import{M as v}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const x={"7D":{ms:10080*60*1e3,timeframe:a["7D"]},"1M":{ms:720*60*60*1e3,timeframe:a["1M"]},"3M":{ms:2160*60*60*1e3,timeframe:a["3M"]}};f.schema;function L({config:o}){const{ms:m,timeframe:u}=x[o.lookback],s=n.useMemo(()=>Date.now()-m,[m]),{history:i,isLoading:h}=T(o.protocols),l=n.useMemo(()=>o.protocols.map((t,d)=>({id:t,name:C(t),color:c[d%c.length],data:(i[t]??[]).filter(r=>r.time>=s).map(r=>({date:new Date(r.time).toISOString(),value:r.value}))})),[o.protocols,i,s]);return h?e.jsx(p,{loading:!0,children:"loading protocol TVL…"}):l.every(t=>t.data.length===0)?e.jsx(p,{children:"no protocol TVL data yet"}):e.jsx(v,{series:l,timeframe:u,height:250,formatValue:M})}const I=S({...f,component:L});export{I as protocolTvlChartFrame};
@@ -0,0 +1 @@
1
+ import{r as n,j as e}from"./react-qoZPGuNy.js";import{p as h,f as i}from"./format-DxkEZcwQ.js";import{f as d,cQ as p,aD as S}from"./index-BHlJHScr.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{C as l}from"./chart-utils-DGogNvJT.js";import{S as x}from"./index-DuNO-RcB.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const A={"7D":10080*60*1e3,"1M":720*60*60*1e3,"3M":2160*60*60*1e3};p.schema;function M(o){return o.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function T({config:o}){const a=n.useMemo(()=>Date.now()-A[o.lookback],[o.lookback]),{history:m,isLoading:f}=S(o.protocols),s=n.useMemo(()=>o.protocols.map((t,u)=>({id:t,name:h(t),color:l[u%l.length],data:(m[t]??[]).filter(r=>r.time>=a).map(r=>({date:new Date(r.time),value:r.value}))})),[o.protocols,m,a]);return f?e.jsx(c,{loading:!0,children:"loading protocol TVL…"}):s.every(t=>t.data.length===0)?e.jsx(c,{children:"no protocol TVL data yet"}):e.jsx(x,{series:s,height:240,formatXAxis:M,formatYAxis:i,formatValue:i})}const F=d({...p,component:T});export{F as protocolTvlShareAreaFrame};
@@ -1 +1 @@
1
- import{r as n,j as m}from"./react-qoZPGuNy.js";import{f as c}from"./format-CfAcS4D8.js";import{f as i,aq as l,ar as p}from"./index-kB-TyxKi.js";import{T as f,a as u}from"./treemap-leaf-A45Ge4-e.js";import{F as s}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-Dr3MHXm3.js";l.schema;function T({width:r,height:a,data:e}){const t=c(e.tvl);return m.jsx(u,{width:r,height:a,label:e.id,secondary:t,title:`${e.id} · ${t} TVL`})}function d({config:r}){const{entries:a,isLoading:e}=p(),t=n.useMemo(()=>a.slice(0,r.topN).map(o=>({id:o.name,value:o.tvl,tvl:o.tvl,changePct:o.changePct??0})),[a,r.topN]);return e?m.jsx(s,{loading:!0,children:"loading protocol TVL…"}):t.length===0?m.jsx(s,{children:"no protocol TVL data"}):m.jsx(f,{data:t,LeafComponent:T,getColorValue:o=>o.changePct})}const C=i({...l,component:d});export{C as protocolTvlTreemapFrame};
1
+ import{r as n,j as m}from"./react-qoZPGuNy.js";import{f as c}from"./format-DxkEZcwQ.js";import{f as i,aA as l,aB as p}from"./index-BHlJHScr.js";import{T as f,a as u}from"./treemap-leaf-QG-L-SIG.js";import{F as s}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";l.schema;function T({width:r,height:a,data:e}){const t=c(e.tvl);return m.jsx(u,{width:r,height:a,label:e.id,secondary:t,title:`${e.id} · ${t} TVL`})}function d({config:r}){const{entries:a,isLoading:e}=p(),t=n.useMemo(()=>a.slice(0,r.topN).map(o=>({id:o.name,value:o.tvl,tvl:o.tvl,changePct:o.changePct??0})),[a,r.topN]);return e?m.jsx(s,{loading:!0,children:"loading protocol TVL…"}):t.length===0?m.jsx(s,{children:"no protocol TVL data"}):m.jsx(f,{data:t,LeafComponent:T,getColorValue:o=>o.changePct})}const C=i({...l,component:d});export{C as protocolTvlTreemapFrame};
@@ -1 +1 @@
1
- import{j as e}from"./react-qoZPGuNy.js";import{z as n,Z as p,a as s,M as u}from"./cycle-shared-pyXzkgt1.js";import{D as m,U as c}from"./format-CfAcS4D8.js";import{t as d,w as f}from"./indicators-CogwjDn9.js";import{f as x,bc as r,bb as M}from"./index-kB-TyxKi.js";import{F as a}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-QWeuTPfP.js";import"./d3-Dr3MHXm3.js";import"./utils-DxneYyA_.js";r.schema;function O({config:t}){const{extras:l,isLoading:i}=M();if(i)return e.jsx(a,{loading:!0,children:"loading Puell…"});if(!l||l.puell===null)return e.jsx(a,{children:"Puell Multiple unavailable"});const o=n(l.puell,[{upTo:.5,zone:{label:"Miner capitulation",color:c}},{upTo:2,zone:{label:"Normal",color:p}},{upTo:4,zone:{label:"Elevated",color:s}}],{label:"Cycle-top zone",color:m});return e.jsx(u,{caption:"Puell Multiple",headline:l.puell.toFixed(2),headlineColor:o.color,zone:o,sparkline:d(l.history.puell,f(t.window)),sparkColor:o.color})}const P=x({...r,component:O});export{P as puellMultipleFrame};
1
+ import{j as e}from"./react-qoZPGuNy.js";import{z as n,Z as p,a as s,M as u}from"./cycle-shared-XoGVsOjC.js";import{D as m,U as c}from"./format-DxkEZcwQ.js";import{t as d,w as f}from"./indicators-Cw7CVPn4.js";import{f as x,bm as r,bl as M}from"./index-BHlJHScr.js";import{F as a}from"./ui-Bq3RQsdJ.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";r.schema;function O({config:t}){const{extras:l,isLoading:i}=M();if(i)return e.jsx(a,{loading:!0,children:"loading Puell…"});if(!l||l.puell===null)return e.jsx(a,{children:"Puell Multiple unavailable"});const o=n(l.puell,[{upTo:.5,zone:{label:"Miner capitulation",color:c}},{upTo:2,zone:{label:"Normal",color:p}},{upTo:4,zone:{label:"Elevated",color:s}}],{label:"Cycle-top zone",color:m});return e.jsx(u,{caption:"Puell Multiple",headline:l.puell.toFixed(2),headlineColor:o.color,zone:o,sparkline:d(l.history.puell,f(t.window)),sparkColor:o.color})}const P=x({...r,component:O});export{P as puellMultipleFrame};
@@ -0,0 +1 @@
1
+ import{j as e}from"./react-qoZPGuNy.js";import{D as n,U as m}from"./format-DxkEZcwQ.js";import{f as c,cu as o,bb as u}from"./index-BHlJHScr.js";import{F as r}from"./ui-Bq3RQsdJ.js";import{R as p}from"./radial-gauge-0BzRQ6fO.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";o.schema;function d({config:t}){const{summary:a,isLoading:l}=u(t.currency);if(l)return e.jsx(r,{loading:!0,children:"loading options…"});if(!a)return e.jsx(r,{children:"no options data yet"});const s=t.basis==="oi"?a.putCallRatioOi:a.putCallRatioVolume,i=s>1?n:m;return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-1",children:[e.jsxs(p,{value:s,min:0,max:2,color:i,size:170,children:[e.jsx("div",{className:"metric-xl leading-none",style:{color:i},children:s.toFixed(2)}),e.jsx("div",{className:"caption text-soft mt-1 uppercase tracking-wide",children:"put / call"})]}),e.jsxs("div",{className:"caption text-soft",children:[t.currency," · by ",t.basis==="oi"?"open interest":"volume"]})]})}const O=c({...o,component:d});export{O as putCallGaugeFrame};
@@ -1 +1 @@
1
- import{r as s,j as t}from"./react-qoZPGuNy.js";import{f as u,aH as i}from"./index-kB-TyxKi.js";i.schema;const c="var(--color-highlight)";function d({config:a}){const e=a.quotes,[r,l]=s.useState(0);s.useEffect(()=>l(0),[a.quotes]),s.useEffect(()=>{if(a.intervalSec<=0||e.length<=1)return;const o=window.setInterval(()=>l(n=>(n+1)%e.length),a.intervalSec*1e3);return()=>window.clearInterval(o)},[a.intervalSec,e.length]);const m=e[Math.min(r,e.length-1)]??"";return t.jsx("div",{className:"flex h-full w-full items-center justify-center [container-type:size]",children:t.jsxs("figure",{className:"relative max-h-full overflow-auto px-3 text-center",children:[t.jsx("span",{"aria-hidden":!0,className:"block font-dmsans font-black leading-none",style:{fontSize:"clamp(1.5rem, 14cqmin, 3rem)",color:c},children:"“"}),t.jsx("blockquote",{className:"body-md text-normal -mt-[0.3em] whitespace-pre-wrap italic leading-snug",style:{fontSize:"clamp(0.85rem, 8cqmin, 1.25rem)"},children:m}),e.length>1&&t.jsx("figcaption",{className:"mt-2 flex justify-center gap-1.5","aria-hidden":!0,children:e.map((o,n)=>t.jsx("span",{className:"h-1 w-1 rounded-full transition-colors",style:{background:n===Math.min(r,e.length-1)?c:"var(--color-disabled)"}},n))})]})})}const x=u({...i,component:d});export{x as quoteFrame};
1
+ import{r as s,j as t}from"./react-qoZPGuNy.js";import{f as u,aR as i}from"./index-BHlJHScr.js";i.schema;const c="var(--color-highlight)";function d({config:a}){const e=a.quotes,[r,l]=s.useState(0);s.useEffect(()=>l(0),[a.quotes]),s.useEffect(()=>{if(a.intervalSec<=0||e.length<=1)return;const o=window.setInterval(()=>l(n=>(n+1)%e.length),a.intervalSec*1e3);return()=>window.clearInterval(o)},[a.intervalSec,e.length]);const m=e[Math.min(r,e.length-1)]??"";return t.jsx("div",{className:"flex h-full w-full items-center justify-center [container-type:size]",children:t.jsxs("figure",{className:"relative max-h-full overflow-auto px-3 text-center",children:[t.jsx("span",{"aria-hidden":!0,className:"block font-dmsans font-black leading-none",style:{fontSize:"clamp(1.5rem, 14cqmin, 3rem)",color:c},children:"“"}),t.jsx("blockquote",{className:"body-md text-normal -mt-[0.3em] whitespace-pre-wrap italic leading-snug",style:{fontSize:"clamp(0.85rem, 8cqmin, 1.25rem)"},children:m}),e.length>1&&t.jsx("figcaption",{className:"mt-2 flex justify-center gap-1.5","aria-hidden":!0,children:e.map((o,n)=>t.jsx("span",{className:"h-1 w-1 rounded-full transition-colors",style:{background:n===Math.min(r,e.length-1)?c:"var(--color-disabled)"}},n))})]})})}const x=u({...i,component:d});export{x as quoteFrame};
@@ -0,0 +1 @@
1
+ import{r as g,j as p}from"./react-qoZPGuNy.js";import{s as v,b as x,H as G}from"./d3-ibrLIlQc.js";import{p as T}from"./utils-DxneYyA_.js";const r=-3*Math.PI/4,E=3*Math.PI/4,$=({value:h,min:a=0,max:o=100,color:l="var(--color-highlight, #8b8bff)",trackColor:c,size:t=180,thickness:e=12,children:M})=>{const R=g.useRef(null);return g.useEffect(()=>{const i=R.current;if(!i)return;v(i).selectAll("*").remove();const j=v(i),n=t/2-2,d=n-e,N=o>a?Math.min(Math.max((h-a)/(o-a),0),1):0,s=r+N*(E-r),u=j.append("g").attr("transform",`translate(${t/2},${t/2})`),b=x().innerRadius(d).outerRadius(n).cornerRadius(e).startAngle(r).endAngle(E);u.append("path").attr("d",b).attr("fill",c??"currentColor").attr("fill-opacity",c?1:.12);const f=x().innerRadius(d).outerRadius(n).cornerRadius(e).startAngle(r),A=u.append("path").attr("fill",l).attr("d",f({endAngle:r})??"");T()?A.attr("d",f({endAngle:s})??""):A.transition().duration(600).attrTween("d",()=>{const w=G(r,s);return y=>f({endAngle:w(y)})??""});const m=(d+n)/2;u.append("circle").attr("cx",Math.sin(s)*m).attr("cy",-Math.cos(s)*m).attr("r",e/2+2).attr("fill",l).attr("stroke","var(--color-card, #101014)").attr("stroke-width",2)},[h,a,o,l,c,t,e]),p.jsxs("div",{className:"relative",style:{width:t,height:t},children:[p.jsx("svg",{ref:R,width:t,height:t}),p.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:M})]})},_=g.memo($);export{_ as R};