@shware/workflow-ui 0.0.0-stage → 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +180 -2
  3. package/dist/assets/iphone-17-pro-DzaacWSl.png +0 -0
  4. package/dist/assets/pixel-10-pro-back-7MDj1_lz.webp +0 -0
  5. package/dist/assets/pixel-10-pro-mask-Bi1deQ9Y.webp +0 -0
  6. package/dist/cli.d.mts +1 -0
  7. package/dist/cli.mjs +673 -0
  8. package/dist/cli.mjs.map +1 -0
  9. package/dist/config.d.mts +247 -0
  10. package/dist/config.d.mts.map +1 -0
  11. package/dist/config.mjs +27 -0
  12. package/dist/config.mjs.map +1 -0
  13. package/dist/index.d.mts +451 -0
  14. package/dist/index.d.mts.map +1 -0
  15. package/dist/index.mjs +2722 -0
  16. package/dist/index.mjs.map +1 -0
  17. package/dist/postgres.d.mts +34 -0
  18. package/dist/postgres.d.mts.map +1 -0
  19. package/dist/postgres.mjs +313 -0
  20. package/dist/postgres.mjs.map +1 -0
  21. package/package.json +93 -3
  22. package/src/app/assets/devices/iphone-17-pro.png +0 -0
  23. package/src/app/assets/devices/pixel-10-pro-back.webp +0 -0
  24. package/src/app/assets/devices/pixel-10-pro-mask.webp +0 -0
  25. package/src/app/assets/flags/AC.svg +1 -0
  26. package/src/app/assets/flags/AD.svg +1 -0
  27. package/src/app/assets/flags/AE.svg +1 -0
  28. package/src/app/assets/flags/AF.svg +1 -0
  29. package/src/app/assets/flags/AG.svg +1 -0
  30. package/src/app/assets/flags/AI.svg +1 -0
  31. package/src/app/assets/flags/AL.svg +1 -0
  32. package/src/app/assets/flags/AM.svg +1 -0
  33. package/src/app/assets/flags/AO.svg +1 -0
  34. package/src/app/assets/flags/AQ.svg +1 -0
  35. package/src/app/assets/flags/AR.svg +1 -0
  36. package/src/app/assets/flags/AS.svg +1 -0
  37. package/src/app/assets/flags/AT.svg +1 -0
  38. package/src/app/assets/flags/AU.svg +1 -0
  39. package/src/app/assets/flags/AW.svg +1 -0
  40. package/src/app/assets/flags/AX.svg +1 -0
  41. package/src/app/assets/flags/AZ.svg +1 -0
  42. package/src/app/assets/flags/BA.svg +1 -0
  43. package/src/app/assets/flags/BB.svg +1 -0
  44. package/src/app/assets/flags/BD.svg +1 -0
  45. package/src/app/assets/flags/BE.svg +1 -0
  46. package/src/app/assets/flags/BF.svg +1 -0
  47. package/src/app/assets/flags/BG.svg +1 -0
  48. package/src/app/assets/flags/BH.svg +1 -0
  49. package/src/app/assets/flags/BI.svg +1 -0
  50. package/src/app/assets/flags/BJ.svg +1 -0
  51. package/src/app/assets/flags/BL.svg +1 -0
  52. package/src/app/assets/flags/BM.svg +1 -0
  53. package/src/app/assets/flags/BN.svg +1 -0
  54. package/src/app/assets/flags/BO.svg +1 -0
  55. package/src/app/assets/flags/BQ-BO.svg +1 -0
  56. package/src/app/assets/flags/BQ-SA.svg +1 -0
  57. package/src/app/assets/flags/BQ-SE.svg +1 -0
  58. package/src/app/assets/flags/BQ.svg +1 -0
  59. package/src/app/assets/flags/BR.svg +1 -0
  60. package/src/app/assets/flags/BS.svg +1 -0
  61. package/src/app/assets/flags/BT.svg +1 -0
  62. package/src/app/assets/flags/BV.svg +1 -0
  63. package/src/app/assets/flags/BW.svg +1 -0
  64. package/src/app/assets/flags/BY.svg +1 -0
  65. package/src/app/assets/flags/BZ.svg +1 -0
  66. package/src/app/assets/flags/CA.svg +1 -0
  67. package/src/app/assets/flags/CC.svg +1 -0
  68. package/src/app/assets/flags/CD.svg +1 -0
  69. package/src/app/assets/flags/CF.svg +1 -0
  70. package/src/app/assets/flags/CG.svg +1 -0
  71. package/src/app/assets/flags/CH.svg +1 -0
  72. package/src/app/assets/flags/CI.svg +1 -0
  73. package/src/app/assets/flags/CK.svg +1 -0
  74. package/src/app/assets/flags/CL.svg +1 -0
  75. package/src/app/assets/flags/CM.svg +1 -0
  76. package/src/app/assets/flags/CN.svg +1 -0
  77. package/src/app/assets/flags/CO.svg +1 -0
  78. package/src/app/assets/flags/CR.svg +1 -0
  79. package/src/app/assets/flags/CU.svg +1 -0
  80. package/src/app/assets/flags/CV.svg +1 -0
  81. package/src/app/assets/flags/CW.svg +1 -0
  82. package/src/app/assets/flags/CX.svg +1 -0
  83. package/src/app/assets/flags/CY.svg +1 -0
  84. package/src/app/assets/flags/CZ.svg +1 -0
  85. package/src/app/assets/flags/DE.svg +1 -0
  86. package/src/app/assets/flags/DJ.svg +1 -0
  87. package/src/app/assets/flags/DK.svg +1 -0
  88. package/src/app/assets/flags/DM.svg +1 -0
  89. package/src/app/assets/flags/DO.svg +1 -0
  90. package/src/app/assets/flags/DZ.svg +1 -0
  91. package/src/app/assets/flags/EC.svg +1 -0
  92. package/src/app/assets/flags/EE.svg +1 -0
  93. package/src/app/assets/flags/EG.svg +1 -0
  94. package/src/app/assets/flags/EH.svg +1 -0
  95. package/src/app/assets/flags/ER.svg +1 -0
  96. package/src/app/assets/flags/ES-CT.svg +1 -0
  97. package/src/app/assets/flags/ES.svg +1 -0
  98. package/src/app/assets/flags/ET.svg +1 -0
  99. package/src/app/assets/flags/EU.svg +1 -0
  100. package/src/app/assets/flags/FI.svg +1 -0
  101. package/src/app/assets/flags/FJ.svg +1 -0
  102. package/src/app/assets/flags/FK.svg +1 -0
  103. package/src/app/assets/flags/FM.svg +1 -0
  104. package/src/app/assets/flags/FO.svg +1 -0
  105. package/src/app/assets/flags/FR.svg +1 -0
  106. package/src/app/assets/flags/GA.svg +1 -0
  107. package/src/app/assets/flags/GB-ENG.svg +1 -0
  108. package/src/app/assets/flags/GB-NIR.svg +1 -0
  109. package/src/app/assets/flags/GB-SCT.svg +1 -0
  110. package/src/app/assets/flags/GB-WLS.svg +1 -0
  111. package/src/app/assets/flags/GB.svg +1 -0
  112. package/src/app/assets/flags/GD.svg +1 -0
  113. package/src/app/assets/flags/GE.svg +1 -0
  114. package/src/app/assets/flags/GF.svg +1 -0
  115. package/src/app/assets/flags/GG.svg +1 -0
  116. package/src/app/assets/flags/GH.svg +1 -0
  117. package/src/app/assets/flags/GI.svg +1 -0
  118. package/src/app/assets/flags/GL.svg +1 -0
  119. package/src/app/assets/flags/GM.svg +1 -0
  120. package/src/app/assets/flags/GN.svg +1 -0
  121. package/src/app/assets/flags/GP.svg +1 -0
  122. package/src/app/assets/flags/GQ.svg +1 -0
  123. package/src/app/assets/flags/GR.svg +1 -0
  124. package/src/app/assets/flags/GS.svg +1 -0
  125. package/src/app/assets/flags/GT.svg +1 -0
  126. package/src/app/assets/flags/GU.svg +1 -0
  127. package/src/app/assets/flags/GW.svg +1 -0
  128. package/src/app/assets/flags/GY.svg +1 -0
  129. package/src/app/assets/flags/HK.svg +1 -0
  130. package/src/app/assets/flags/HM.svg +1 -0
  131. package/src/app/assets/flags/HN.svg +1 -0
  132. package/src/app/assets/flags/HR.svg +1 -0
  133. package/src/app/assets/flags/HT.svg +1 -0
  134. package/src/app/assets/flags/HU.svg +1 -0
  135. package/src/app/assets/flags/IC.svg +1 -0
  136. package/src/app/assets/flags/ID.svg +1 -0
  137. package/src/app/assets/flags/IE.svg +1 -0
  138. package/src/app/assets/flags/IL.svg +1 -0
  139. package/src/app/assets/flags/IM.svg +1 -0
  140. package/src/app/assets/flags/IN.svg +1 -0
  141. package/src/app/assets/flags/IO.svg +1 -0
  142. package/src/app/assets/flags/IQ.svg +1 -0
  143. package/src/app/assets/flags/IR.svg +1 -0
  144. package/src/app/assets/flags/IS.svg +1 -0
  145. package/src/app/assets/flags/IT.svg +1 -0
  146. package/src/app/assets/flags/JE.svg +1 -0
  147. package/src/app/assets/flags/JM.svg +1 -0
  148. package/src/app/assets/flags/JO.svg +1 -0
  149. package/src/app/assets/flags/JP.svg +1 -0
  150. package/src/app/assets/flags/KE.svg +1 -0
  151. package/src/app/assets/flags/KG.svg +1 -0
  152. package/src/app/assets/flags/KH.svg +1 -0
  153. package/src/app/assets/flags/KI.svg +1 -0
  154. package/src/app/assets/flags/KM.svg +1 -0
  155. package/src/app/assets/flags/KN.svg +1 -0
  156. package/src/app/assets/flags/KP.svg +1 -0
  157. package/src/app/assets/flags/KR.svg +1 -0
  158. package/src/app/assets/flags/KW.svg +1 -0
  159. package/src/app/assets/flags/KY.svg +1 -0
  160. package/src/app/assets/flags/KZ.svg +1 -0
  161. package/src/app/assets/flags/LA.svg +1 -0
  162. package/src/app/assets/flags/LB.svg +1 -0
  163. package/src/app/assets/flags/LC.svg +1 -0
  164. package/src/app/assets/flags/LI.svg +1 -0
  165. package/src/app/assets/flags/LK.svg +1 -0
  166. package/src/app/assets/flags/LR.svg +1 -0
  167. package/src/app/assets/flags/LS.svg +1 -0
  168. package/src/app/assets/flags/LT.svg +1 -0
  169. package/src/app/assets/flags/LU.svg +1 -0
  170. package/src/app/assets/flags/LV.svg +1 -0
  171. package/src/app/assets/flags/LY.svg +1 -0
  172. package/src/app/assets/flags/MA.svg +1 -0
  173. package/src/app/assets/flags/MC.svg +1 -0
  174. package/src/app/assets/flags/MD.svg +1 -0
  175. package/src/app/assets/flags/ME.svg +1 -0
  176. package/src/app/assets/flags/MF.svg +1 -0
  177. package/src/app/assets/flags/MG.svg +1 -0
  178. package/src/app/assets/flags/MH.svg +1 -0
  179. package/src/app/assets/flags/MK.svg +1 -0
  180. package/src/app/assets/flags/ML.svg +1 -0
  181. package/src/app/assets/flags/MM.svg +1 -0
  182. package/src/app/assets/flags/MN.svg +1 -0
  183. package/src/app/assets/flags/MO.svg +1 -0
  184. package/src/app/assets/flags/MP.svg +1 -0
  185. package/src/app/assets/flags/MQ.svg +1 -0
  186. package/src/app/assets/flags/MR.svg +1 -0
  187. package/src/app/assets/flags/MS.svg +1 -0
  188. package/src/app/assets/flags/MT.svg +1 -0
  189. package/src/app/assets/flags/MU.svg +1 -0
  190. package/src/app/assets/flags/MV.svg +1 -0
  191. package/src/app/assets/flags/MW.svg +1 -0
  192. package/src/app/assets/flags/MX.svg +1 -0
  193. package/src/app/assets/flags/MY.svg +1 -0
  194. package/src/app/assets/flags/MZ.svg +1 -0
  195. package/src/app/assets/flags/NA.svg +1 -0
  196. package/src/app/assets/flags/NC.svg +1 -0
  197. package/src/app/assets/flags/NE.svg +1 -0
  198. package/src/app/assets/flags/NF.svg +1 -0
  199. package/src/app/assets/flags/NG.svg +1 -0
  200. package/src/app/assets/flags/NI.svg +1 -0
  201. package/src/app/assets/flags/NL.svg +1 -0
  202. package/src/app/assets/flags/NO.svg +1 -0
  203. package/src/app/assets/flags/NP.svg +1 -0
  204. package/src/app/assets/flags/NR.svg +1 -0
  205. package/src/app/assets/flags/NU.svg +1 -0
  206. package/src/app/assets/flags/NZ.svg +1 -0
  207. package/src/app/assets/flags/OM.svg +1 -0
  208. package/src/app/assets/flags/PA.svg +1 -0
  209. package/src/app/assets/flags/PE.svg +1 -0
  210. package/src/app/assets/flags/PF.svg +1 -0
  211. package/src/app/assets/flags/PG.svg +1 -0
  212. package/src/app/assets/flags/PH.svg +1 -0
  213. package/src/app/assets/flags/PK.svg +1 -0
  214. package/src/app/assets/flags/PL.svg +1 -0
  215. package/src/app/assets/flags/PM.svg +1 -0
  216. package/src/app/assets/flags/PN.svg +1 -0
  217. package/src/app/assets/flags/PR.svg +1 -0
  218. package/src/app/assets/flags/PS.svg +1 -0
  219. package/src/app/assets/flags/PT.svg +1 -0
  220. package/src/app/assets/flags/PW.svg +1 -0
  221. package/src/app/assets/flags/PY.svg +1 -0
  222. package/src/app/assets/flags/QA.svg +1 -0
  223. package/src/app/assets/flags/RE.svg +1 -0
  224. package/src/app/assets/flags/README.md +6 -0
  225. package/src/app/assets/flags/RO.svg +1 -0
  226. package/src/app/assets/flags/RS.svg +1 -0
  227. package/src/app/assets/flags/RU.svg +1 -0
  228. package/src/app/assets/flags/RW.svg +1 -0
  229. package/src/app/assets/flags/SA.svg +1 -0
  230. package/src/app/assets/flags/SB.svg +1 -0
  231. package/src/app/assets/flags/SC.svg +1 -0
  232. package/src/app/assets/flags/SD.svg +1 -0
  233. package/src/app/assets/flags/SE.svg +1 -0
  234. package/src/app/assets/flags/SG.svg +1 -0
  235. package/src/app/assets/flags/SH.svg +1 -0
  236. package/src/app/assets/flags/SI.svg +1 -0
  237. package/src/app/assets/flags/SJ.svg +1 -0
  238. package/src/app/assets/flags/SK.svg +1 -0
  239. package/src/app/assets/flags/SL.svg +1 -0
  240. package/src/app/assets/flags/SM.svg +1 -0
  241. package/src/app/assets/flags/SN.svg +1 -0
  242. package/src/app/assets/flags/SO.svg +1 -0
  243. package/src/app/assets/flags/SR.svg +1 -0
  244. package/src/app/assets/flags/SS.svg +1 -0
  245. package/src/app/assets/flags/ST.svg +1 -0
  246. package/src/app/assets/flags/SV.svg +1 -0
  247. package/src/app/assets/flags/SX.svg +1 -0
  248. package/src/app/assets/flags/SY.svg +1 -0
  249. package/src/app/assets/flags/SZ.svg +1 -0
  250. package/src/app/assets/flags/TA.svg +1 -0
  251. package/src/app/assets/flags/TC.svg +1 -0
  252. package/src/app/assets/flags/TD.svg +1 -0
  253. package/src/app/assets/flags/TF.svg +1 -0
  254. package/src/app/assets/flags/TG.svg +1 -0
  255. package/src/app/assets/flags/TH.svg +1 -0
  256. package/src/app/assets/flags/TJ.svg +1 -0
  257. package/src/app/assets/flags/TK.svg +1 -0
  258. package/src/app/assets/flags/TL.svg +1 -0
  259. package/src/app/assets/flags/TM.svg +1 -0
  260. package/src/app/assets/flags/TN.svg +1 -0
  261. package/src/app/assets/flags/TO.svg +1 -0
  262. package/src/app/assets/flags/TR.svg +1 -0
  263. package/src/app/assets/flags/TT.svg +1 -0
  264. package/src/app/assets/flags/TV.svg +1 -0
  265. package/src/app/assets/flags/TW.svg +1 -0
  266. package/src/app/assets/flags/TZ.svg +1 -0
  267. package/src/app/assets/flags/UA.svg +1 -0
  268. package/src/app/assets/flags/UG.svg +1 -0
  269. package/src/app/assets/flags/UM.svg +1 -0
  270. package/src/app/assets/flags/US.svg +1 -0
  271. package/src/app/assets/flags/UY.svg +1 -0
  272. package/src/app/assets/flags/UZ.svg +1 -0
  273. package/src/app/assets/flags/VA.svg +1 -0
  274. package/src/app/assets/flags/VC.svg +1 -0
  275. package/src/app/assets/flags/VE.svg +1 -0
  276. package/src/app/assets/flags/VG.svg +1 -0
  277. package/src/app/assets/flags/VI.svg +1 -0
  278. package/src/app/assets/flags/VN.svg +1 -0
  279. package/src/app/assets/flags/VU.svg +1 -0
  280. package/src/app/assets/flags/WF.svg +1 -0
  281. package/src/app/assets/flags/WS.svg +1 -0
  282. package/src/app/assets/flags/XA.svg +1 -0
  283. package/src/app/assets/flags/XC.svg +1 -0
  284. package/src/app/assets/flags/XK.svg +1 -0
  285. package/src/app/assets/flags/XO.svg +1 -0
  286. package/src/app/assets/flags/YE.svg +1 -0
  287. package/src/app/assets/flags/YT.svg +1 -0
  288. package/src/app/assets/flags/ZA.svg +1 -0
  289. package/src/app/assets/flags/ZM.svg +1 -0
  290. package/src/app/assets/flags/ZW.svg +1 -0
  291. package/src/app/email-preview.ts +46 -0
  292. package/src/app/index.css +203 -0
  293. package/src/app/index.html +12 -0
  294. package/src/app/integrations/i18n/react-i18next.d.ts +11 -0
  295. package/src/app/integrations/i18n/root-provider.tsx +62 -0
  296. package/src/app/integrations/tanstack-query/devtools.tsx +6 -0
  297. package/src/app/integrations/tanstack-query/root-provider.tsx +37 -0
  298. package/src/app/integrations/theme/root-provider.tsx +75 -0
  299. package/src/app/integrations/toast/toast-provider.tsx +46 -0
  300. package/src/app/locales/en-US/common.ts +268 -0
  301. package/src/app/locales/zh-CN/common.ts +263 -0
  302. package/src/app/main.tsx +40 -0
  303. package/src/app/page-chrome.tsx +79 -0
  304. package/src/app/router.tsx +40 -0
  305. package/src/app/routes/__root.tsx +293 -0
  306. package/src/app/routes/emails.tsx +199 -0
  307. package/src/app/routes/home.tsx +87 -0
  308. package/src/app/routes/index.ts +19 -0
  309. package/src/app/routes/metrics.tsx +541 -0
  310. package/src/app/routes/segment-overview.tsx +211 -0
  311. package/src/app/routes/segments.tsx +236 -0
  312. package/src/app/routes/settings.tsx +90 -0
  313. package/src/app/routes/workflows.tsx +348 -0
  314. package/src/app/studio.ts +16 -0
  315. package/src/app/svg.d.ts +17 -0
  316. package/src/app/virtual-config.d.ts +6 -0
  317. package/src/cli.ts +110 -0
  318. package/src/components/avatar.tsx +57 -0
  319. package/src/components/breadcrumb.tsx +49 -0
  320. package/src/components/button/index.tsx +86 -0
  321. package/src/components/channel-icon.ts +39 -0
  322. package/src/components/chat-markup.tsx +109 -0
  323. package/src/components/corner-shape.ts +13 -0
  324. package/src/components/date-range.tsx +181 -0
  325. package/src/components/discord-preview.tsx +165 -0
  326. package/src/components/dropdown/index.tsx +172 -0
  327. package/src/components/email-defaults.tsx +40 -0
  328. package/src/components/email-list.tsx +149 -0
  329. package/src/components/email-thumbnail.tsx +123 -0
  330. package/src/components/flag.tsx +40 -0
  331. package/src/components/input/index.tsx +40 -0
  332. package/src/components/input/search-input.tsx +24 -0
  333. package/src/components/layout.ts +403 -0
  334. package/src/components/menu/index.tsx +118 -0
  335. package/src/components/metric-card.tsx +321 -0
  336. package/src/components/modal/index.tsx +70 -0
  337. package/src/components/nav-drawer.tsx +84 -0
  338. package/src/components/node-inspector.tsx +242 -0
  339. package/src/components/profile-drawer.tsx +331 -0
  340. package/src/components/push-preview.tsx +470 -0
  341. package/src/components/push-thumbnail.tsx +78 -0
  342. package/src/components/segment-list.tsx +184 -0
  343. package/src/components/select/index.tsx +70 -0
  344. package/src/components/series-chart.tsx +120 -0
  345. package/src/components/slack-preview.tsx +223 -0
  346. package/src/components/sparkline.tsx +58 -0
  347. package/src/components/tabs/index.tsx +45 -0
  348. package/src/components/template-refs.ts +110 -0
  349. package/src/components/templates-page.tsx +601 -0
  350. package/src/components/textarea/index.tsx +37 -0
  351. package/src/components/thumbnail-window.tsx +65 -0
  352. package/src/components/workflow-canvas.tsx +503 -0
  353. package/src/components/workflow-list.tsx +231 -0
  354. package/src/config.ts +288 -0
  355. package/src/generate.ts +56 -0
  356. package/src/index.ts +35 -0
  357. package/src/postgres.ts +415 -0
  358. package/src/server/project.ts +290 -0
  359. package/src/server.ts +500 -0
  360. package/src/utils/cn.ts +6 -0
  361. package/src/utils/label.ts +12 -0
  362. package/src/utils/lookup.ts +11 -0
  363. package/src/utils/template-content.ts +213 -0
@@ -0,0 +1,451 @@
1
+ import { Granularity, LinkStat, METRIC_CHANNELS, MessageStat, MetricChannel, MetricPoint, MetricsQuery, NodeStats, Profile, ProfilePage, ProfileQuery, ResolvedStudioConfig, SegmentReport, StatsRange, StatsSource, StudioError, WorkflowReport, defineStats } from "./config.mjs";
2
+ import { LucideIcon } from "lucide-react";
3
+ import { CSSProperties, ComponentProps, ReactNode } from "react";
4
+ import { DiscordTemplate, EmailTemplate, PushTemplate, SlackTemplate, TemplateIssue, WorkflowIR } from "@shware/workflow";
5
+ //#region src/components/button/index.d.ts
6
+ /**
7
+ * Ported from the design system in the template project — same API, so the two
8
+ * stay diffable. Colours resolve through the studio's CSS variables
9
+ * (`--color-primary`, `--color-accent`, `--color-gray-*`), so a project that
10
+ * re-themes the ramp re-themes the buttons with it.
11
+ */
12
+ type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
13
+ interface Props$2 extends Omit<ComponentProps<'button'>, 'type'> {
14
+ size?: Size;
15
+ children?: ReactNode;
16
+ type?: 'submit' | 'reset' | 'button';
17
+ variant?: 'text' | 'accent' | 'default' | 'secondary' | 'destructive' | 'outline';
18
+ }
19
+ export declare function Button({ children, className, size, style, type, variant, ...props }: Props$2): import("react").JSX.Element;
20
+ //#endregion
21
+ //#region src/components/corner-shape.d.ts
22
+ /**
23
+ * Every rounded surface that is not a full pill carries this.
24
+ *
25
+ * A plain border-radius leaves a visible curvature break where the arc meets
26
+ * the straight edge; a superellipse blends the two, which is what the canvas
27
+ * cards already do. Pills (`rounded-full`) are continuous by construction, so
28
+ * they skip it.
29
+ *
30
+ * Cast because `corner-shape` is not in React's CSSProperties yet.
31
+ */
32
+ export declare const superellipse: CSSProperties;
33
+ //#endregion
34
+ //#region src/components/workflow-canvas.d.ts
35
+ /**
36
+ * Read-only workflow canvas: renders IR. Structure is code-owned, so the UI
37
+ * offers no editing.
38
+ *
39
+ * Rendering principle — HTML-first and pixel-exact: node cards and edge labels
40
+ * are always HTML (fonts and line heights on tailwind's scale, and new CSS such
41
+ * as corner-shape is available). SVG is kept only for what react-flow's
42
+ * architecture requires — the connector paths and their endpoint markers — with
43
+ * every parameter passed explicitly. SVG EdgeText is not used: its size follows
44
+ * the font's bounding box and cannot be pinned to exact pixels.
45
+ */
46
+ interface WorkflowCanvasProps {
47
+ ir: WorkflowIR;
48
+ /** Node id → users currently waiting there (from the engine's stats API); no badge without it. */
49
+ stats?: NodeStats;
50
+ /**
51
+ * Drives react-flow's own chrome (background dots, zoom controls). The card
52
+ * and connector colours come from CSS variables and follow the host's theme
53
+ * on their own; this is only for the parts react-flow paints itself. Passed
54
+ * in rather than sniffed from the DOM, so an embedding app stays in control.
55
+ */
56
+ colorMode?: 'light' | 'dark';
57
+ /** Node id to show as selected; pairs with onSelectNode for an inspector panel. */
58
+ selectedId?: string | undefined;
59
+ /** Node clicked, or undefined when the click landed on empty canvas. */
60
+ onSelectNode?: (id: string | undefined) => void;
61
+ }
62
+ export declare function WorkflowCanvas({ ir, stats, colorMode, selectedId, onSelectNode }: WorkflowCanvasProps): import("react").JSX.Element;
63
+ //#endregion
64
+ //#region src/utils/template-content.d.ts
65
+ /**
66
+ * What the studio reads out of a template definition.
67
+ *
68
+ * Every registry entry is an `emailTemplate({...})` / `pushTemplate({...})`
69
+ * (the dev server refuses anything else). Previews are validated with the
70
+ * SDK's own functions (parseTemplateProps, renderPushContent), the same ones
71
+ * the senders run, so the studio cannot accept props a send would refuse;
72
+ * everything downstream reads the parsed value.
73
+ */
74
+ type Props$1 = Record<string, unknown>;
75
+ /**
76
+ * A failed render: which phase refused, and every field path with its message.
77
+ * `json` is the studio's own: the props editor holds text that is not a JSON
78
+ * object, so nothing was validated at all.
79
+ */
80
+ interface TemplateFailure {
81
+ phase: 'json' | 'props' | 'content' | 'render';
82
+ issues: TemplateIssue[];
83
+ }
84
+ //#endregion
85
+ //#region src/components/template-refs.d.ts
86
+ /**
87
+ * Derive template references from IR — "which flows use which template" is not
88
+ * a hand-maintained list but something computed from the middle layer. It also
89
+ * surfaces templates that are referenced but have no content registered yet.
90
+ */
91
+ interface TemplateUsage {
92
+ /** Name of the workflow referencing this template. */
93
+ workflow: string;
94
+ /** Node id (structural path), pinpointing the exact node on the canvas. */
95
+ nodeId: string;
96
+ /** Props passed at this site: each value is a literal or a user-property reference. */
97
+ props: Record<string, unknown>;
98
+ }
99
+ interface TemplateRefInfo {
100
+ key: string;
101
+ channel: string;
102
+ /** Every use site — one template can be used by several flows, each passing its own props. */
103
+ usages: TemplateUsage[];
104
+ }
105
+ /**
106
+ * One entry per template — per channel and key, since one key can name an
107
+ * email and a push, and their usages must not run together.
108
+ */
109
+ export declare function collectTemplateRefs(irs: readonly WorkflowIR[]): TemplateRefInfo[];
110
+ /**
111
+ * Every template the studio can show: each registered one — referenced or
112
+ * not yet, so a template can be previewed before a flow uses it — plus each
113
+ * one the IR references without registering it (shown as missing). The IR
114
+ * only adds the use sites.
115
+ */
116
+ export declare function collectTemplates(irs: readonly WorkflowIR[], registries: {
117
+ emails?: object;
118
+ pushes?: object;
119
+ discords?: object;
120
+ slacks?: object;
121
+ }): TemplateRefInfo[];
122
+ //#endregion
123
+ //#region src/components/templates-page.d.ts
124
+ /**
125
+ * Template preview page: the list on the left comes from IR, the react-email
126
+ * component renders on the right. The email render is the caller's (it owns
127
+ * the query); exactly one of `html` and `failure` describes this render.
128
+ */
129
+ interface TemplatePreview {
130
+ html?: string;
131
+ subject?: string;
132
+ /** The template refused its props, or failed to render — field paths included. */
133
+ failure?: TemplateFailure;
134
+ /** Anything else that stopped the render. */
135
+ error?: string;
136
+ loading: boolean;
137
+ }
138
+ interface TemplatesPageProps {
139
+ refs: TemplateRefInfo[];
140
+ /** The project's email registry; keys match the DSL's template keys. */
141
+ emails: Record<string, EmailTemplate | undefined>;
142
+ /** The project's push registry, same contract as `emails` for the push channel. */
143
+ pushes?: Record<string, PushTemplate | undefined>;
144
+ /** The project's Discord and Slack webhook registries. */
145
+ discords?: Record<string, DiscordTemplate | undefined>;
146
+ slacks?: Record<string, SlackTemplate | undefined>;
147
+ /** App identity on the push mockups; defaults to the project title upstream. */
148
+ appName?: string;
149
+ selected: string | undefined;
150
+ /**
151
+ * Channel of the selected template. One key can be registered in more than
152
+ * one registry (an email and a push both called `checkout_reminder`), so the
153
+ * key alone does not say which one is meant; absent picks the first match.
154
+ */
155
+ selectedChannel?: string | undefined;
156
+ /** Rendered output for the selected template, produced by the caller. */
157
+ preview: TemplatePreview;
158
+ /** The project's envelope (`emails.from` / `replyTo`): every email is sent with it. */
159
+ emailDefaults?: {
160
+ from?: string;
161
+ replyTo?: string;
162
+ };
163
+ /**
164
+ * In-memory props override for the selected template's preview; absent
165
+ * renders the template's own `preview`. Never written anywhere.
166
+ */
167
+ previewProps?: Props$1 | undefined;
168
+ /**
169
+ * Called as the props editor changes (undefined: back to the template's
170
+ * `preview`). The editor only appears when this is provided.
171
+ */
172
+ onPreviewPropsChange?: (props: Props$1 | undefined) => void;
173
+ /**
174
+ * The preview stage's starting light/dark, normally the studio's own theme.
175
+ * The toolbar toggle overrides it for this visit only — leaving the page
176
+ * drops the override, so the stage always reopens matching the studio.
177
+ */
178
+ defaultScheme?: 'light' | 'dark';
179
+ }
180
+ export declare function TemplatesPage({ refs, emails, pushes, discords, slacks, appName, selected, selectedChannel, preview, emailDefaults, previewProps, onPreviewPropsChange, defaultScheme }: TemplatesPageProps): import("react").JSX.Element;
181
+ //#endregion
182
+ //#region src/components/push-preview.d.ts
183
+ /**
184
+ * Push-notification preview: the two platforms' lock screens, side by side.
185
+ *
186
+ * Emails render themselves — the preview is an iframe around real output. A
187
+ * push has no document of its own: what the user sees is the OS's chrome
188
+ * around two strings, so the preview must *draw* that chrome. Both platforms
189
+ * are shown at once because their layouts genuinely differ (iOS stacks
190
+ * notifications at the bottom of the lock screen, Android under the clock)
191
+ * and the copy has to survive both.
192
+ *
193
+ * The hardware is the vendors' own artwork, not ours: Apple's iPhone 17 Pro
194
+ * product bezel (developer.apple.com/design/resources, PNG with a transparent
195
+ * screen cutout the content shows through — the Dynamic Island is part of the
196
+ * bezel) and Google's Pixel 10 Pro device frame (AOSP's device-art-resources,
197
+ * the artwork behind Android Studio's screenshot framing: a `back` body layer
198
+ * under the content and a screen-sized `mask` overlay painting the corner
199
+ * bezels and the punch-hole camera over it).
200
+ *
201
+ * The software is drawn to the platforms' own design kits, at true scale:
202
+ * screen content renders at the device's logical resolution (402pt / 412dp)
203
+ * and is scaled into the frame's window, so every measurement below is the
204
+ * spec's own number. iOS notification metrics come from the iOS 26 Figma kit
205
+ * and a real device's lock screen (card 386w r28, padding 14/12, centred icon
206
+ * 38 r12, title SF 15/17 semibold −0.23,
207
+ * body 15/18 regular, time 15/17 top-right); Android lock-screen metrics
208
+ * follow Google's official Android UI Kit on Figma (leading 40dp app icon,
209
+ * bold 14sp title with an inline "• now", 14sp content line, a circled
210
+ * expander). Collapsed banners carry no rich image on either platform.
211
+ */
212
+ interface PushPreviewProps {
213
+ /** App identity on the banner; falls back to the project title upstream. */
214
+ appName: string;
215
+ /** The notification title, as `content` returned it. */
216
+ title: string;
217
+ body: string;
218
+ scheme: 'light' | 'dark';
219
+ zoom: number;
220
+ }
221
+ export declare function PushPreview({ appName, title, body, scheme, zoom }: PushPreviewProps): import("react").JSX.Element;
222
+ //#endregion
223
+ //#region src/components/workflow-list.d.ts
224
+ /**
225
+ * The workflows list: one row per definition with its shape (how many
226
+ * messages, how many waits) and the funnel from the stats source, all inside
227
+ * a single card.
228
+ *
229
+ * One card of rows rather than a card per workflow: the four funnel numbers
230
+ * are only worth showing because they can be read down a column, and a grid
231
+ * of tiles breaks exactly that. Below `md` there are no columns left to align,
232
+ * so a row folds into title-then-stats instead.
233
+ */
234
+ interface WorkflowListProps {
235
+ /** Local definitions, keyed by the id used in the URL. */
236
+ items: {
237
+ key: string;
238
+ ir: WorkflowIR;
239
+ }[];
240
+ reports?: WorkflowReport[];
241
+ onOpen: (key: string) => void;
242
+ }
243
+ export declare function WorkflowList({ items, reports, onOpen }: WorkflowListProps): import("react").JSX.Element;
244
+ //#endregion
245
+ //#region src/components/metric-card.d.ts
246
+ /**
247
+ * One metric of the delivery funnel: what it is worth right now, which way it
248
+ * moved, and its shape over the queried range.
249
+ *
250
+ * Four of these replace the single four-series line chart. That chart made the
251
+ * drop-off between the stages legible and nothing else — every series but the
252
+ * first was pinned to the floor by a shared y axis, so a 2% swing in clicks was
253
+ * invisible. Each card gets its own scale instead, which is what you want once
254
+ * the funnel's shape is a known quantity and the question becomes "is today
255
+ * normal for this stage".
256
+ *
257
+ * Hand-drawn SVG, like every other chart here — see the note in sparkline.tsx.
258
+ */
259
+ /** Which way a delta points; `flat` is an exact zero, not a rounding of one. */
260
+ type Trend = 'up' | 'down' | 'flat';
261
+ /**
262
+ * One plotted line.
263
+ *
264
+ * A card plots either one series or a total and the parts it decomposes into
265
+ * (email opens split into human and machine). The parts are not independent
266
+ * measurements, which is why they arrive as a list on one card rather than as
267
+ * cards of their own: they only mean anything read against the total.
268
+ */
269
+ interface MetricSeries {
270
+ /** Named in the hover readout, beside its colour swatch. */
271
+ label: string;
272
+ /** One value per bucket, oldest first; as long as `dates`. */
273
+ values: readonly number[];
274
+ }
275
+ interface MetricCardProps {
276
+ label: string;
277
+ /** The current bucket, already formatted ('9,280', '26.2%'). */
278
+ value: string;
279
+ /** Period-over-period change, already formatted and signed. */
280
+ delta?: {
281
+ text: string;
282
+ trend: Trend;
283
+ };
284
+ /**
285
+ * Bucket dates, oldest first, already formatted: the card has no business
286
+ * knowing the locale, and the hover readout is the only place they are read.
287
+ */
288
+ dates: readonly string[];
289
+ /**
290
+ * Head series first. It gets the strongest shade and the gradient fill; any
291
+ * that follow are its components and share its y scale — plotted against
292
+ * scales of their own, two halves would not visibly add up to the whole.
293
+ */
294
+ series: readonly MetricSeries[];
295
+ /** Formats the extremes in the plot's corners, and the values under the cursor. */
296
+ format: (value: number) => string;
297
+ }
298
+ export declare function MetricCard({ label, value, delta, dates, series, format }: MetricCardProps): import("react").JSX.Element;
299
+ //#endregion
300
+ //#region src/components/date-range.d.ts
301
+ /**
302
+ * The range every panel on the Overview reads from. Both ends are inclusive
303
+ * ISO `YYYY-MM-DD` days — the same shape the stats contract takes, so the
304
+ * picker's value can be handed straight to a query.
305
+ */
306
+ interface DateRange {
307
+ from: string;
308
+ to: string;
309
+ }
310
+ /**
311
+ * A local calendar day, not a UTC instant. `toISOString().slice(0, 10)` is the
312
+ * usual shortcut and it is wrong west of Greenwich for most of the day: it
313
+ * reports yesterday, so "last 30 days" silently ends a day early.
314
+ */
315
+ export declare function isoDay(date: Date): string;
316
+ /** Parse an ISO day back to local midnight — `new Date(iso)` would read it as UTC. */
317
+ export declare function parseIsoDay(iso: string): Date;
318
+ /** The inclusive range of the `count` days ending today. */
319
+ export declare function lastDays(count: number): DateRange;
320
+ /** 'Aug 21, 2026' — the compact form, for the toolbar trigger. */
321
+ export declare function formatDay(iso: string, locale: string): string;
322
+ interface Props {
323
+ value: DateRange;
324
+ onChange: (range: DateRange) => void;
325
+ className?: string;
326
+ }
327
+ /**
328
+ * Presets plus two date fields, rather than a drawn calendar.
329
+ *
330
+ * Reporting ranges are chosen by duration ("the last month"), not by hunting
331
+ * for a Tuesday, so the presets answer nearly every case; the two fields cover
332
+ * the rest at a fraction of a calendar widget's weight — and the native picker
333
+ * they carry is already localized and keyboard-accessible.
334
+ */
335
+ export declare function DateRangePicker({ value, onChange, className }: Props): import("react").JSX.Element;
336
+ //#endregion
337
+ //#region src/components/channel-icon.d.ts
338
+ /**
339
+ * One glyph per delivery channel, shared by the chart cards, the channel
340
+ * pickers and the message table — a channel has to read the same everywhere or
341
+ * the eye stops using the icon as an index.
342
+ *
343
+ * lucide dropped brand marks, so iOS and Android borrow the nearest generic
344
+ * pair (a handset, a robot) and a browser push a globe: what matters here is that the two platforms are
345
+ * told apart at a glance, not that the logo is right.
346
+ */
347
+ export declare const CHANNEL_ICON: Record<MetricChannel, LucideIcon>;
348
+ /** Stand-in for "every channel": still a send, just not one transport. */
349
+ export declare const ALL_CHANNELS_ICON: LucideIcon;
350
+ export declare const channelIcon: (channel: MetricChannel | undefined) => LucideIcon;
351
+ //#endregion
352
+ //#region src/components/avatar.d.ts
353
+ /**
354
+ * A person's round portrait, with an initial on a tinted circle behind it.
355
+ *
356
+ * The picture comes from a profile's `properties`, a dictionary the project
357
+ * fills — so it is typed `unknown` here and narrowed rather than asserted: an
358
+ * absent key, a null, or a number all mean the same thing to this component,
359
+ * which is "draw the initial". A URL that resolves to nothing means it too,
360
+ * once the browser says so, so a dead image degrades to the same fallback
361
+ * instead of leaving a broken-image glyph in the row.
362
+ */
363
+ interface AvatarProps {
364
+ /** Straight out of `Profile.properties`; anything but a non-empty string falls back. */
365
+ picture: unknown;
366
+ /** Whatever names the person — a name, an email, an id. Its first letter is the fallback. */
367
+ label: string;
368
+ /** `md` heads the profile drawer; `sm` sits inside a table row. */
369
+ size?: 'sm' | 'md';
370
+ }
371
+ export declare function Avatar({ picture, label, size }: AvatarProps): import("react").JSX.Element;
372
+ //#endregion
373
+ //#region src/components/sparkline.d.ts
374
+ /**
375
+ * Sparkline for the workflows list.
376
+ *
377
+ * A polyline over N points: no axes, no scales, no interaction. Same reasoning
378
+ * as the Metrics tab chart — at this size a charting dependency would only add
379
+ * weight.
380
+ */
381
+ interface SparklineProps {
382
+ values: readonly number[];
383
+ width?: number;
384
+ height?: number;
385
+ className?: string;
386
+ }
387
+ export declare function Sparkline({ values, width, height, className }: SparklineProps): import("react").JSX.Element;
388
+ //#endregion
389
+ //#region src/components/layout.d.ts
390
+ /**
391
+ * Tree layout: IR → react-flow nodes and edges.
392
+ *
393
+ * IR is a structured tree rather than an arbitrary graph, so dagre/elkjs are
394
+ * unnecessary: a vertical spine, branch columns fanning out left and right,
395
+ * and rejoin edges — customer.io's look, computed in a single recursion.
396
+ * Layout is a pure function: the same IR (plus optional stats) always yields
397
+ * the same picture.
398
+ */
399
+ type NodeCategory = 'trigger' | 'message' | 'delay' | 'control' | 'data' | 'exit';
400
+ type NodeIcon = 'trigger' | 'email' | 'sms' | 'push' | 'in_app' | 'slack' | 'discord' | 'survey' | 'delay' | 'time_window' | 'wait_until' | 'branch' | 'filter' | 'cohort' | 'exit' | 'send_event' | 'action';
401
+ interface CanvasNodeData extends Record<string, unknown> {
402
+ title: string;
403
+ subtitle?: string;
404
+ category: NodeCategory;
405
+ /** card: the regular card (icon + title + subtitle + count badge); icon: icon-only pill (exit). */
406
+ variant: 'card' | 'icon';
407
+ icon: NodeIcon;
408
+ /** How many users currently sit on this node (runtime stats, injected via `stats`). */
409
+ count?: number;
410
+ }
411
+ /** Card sizes: the single source shared by layout and renderer, all on the 16/8 grid. */
412
+ export declare const CARD_SIZE: {
413
+ readonly w: 288;
414
+ readonly h: 64;
415
+ };
416
+ /**
417
+ * The icon variant renders as an auto-width pill, so only its height is known
418
+ * here. It is laid out in a card-width box and centred inside it: guessing the
419
+ * pill's width instead put its visual centre a couple of pixels off the column
420
+ * the connectors are drawn down, which reads as a crooked line.
421
+ */
422
+ export declare const ICON_SIZE: {
423
+ readonly w: 288;
424
+ readonly h: 32;
425
+ };
426
+ interface CanvasNode {
427
+ id: string;
428
+ type: 'wf';
429
+ position: {
430
+ x: number;
431
+ y: number;
432
+ };
433
+ data: CanvasNodeData;
434
+ }
435
+ interface CanvasEdge {
436
+ id: string;
437
+ source: string;
438
+ target: string;
439
+ label?: string;
440
+ /** Label anchor: `target` = the arm's entry corner (real arm); `source` = just below the deciding node (empty pass-through arm). */
441
+ data?: {
442
+ anchor: 'source' | 'target';
443
+ };
444
+ }
445
+ export declare function layout(ir: WorkflowIR, stats?: NodeStats): {
446
+ nodes: CanvasNode[];
447
+ edges: CanvasEdge[];
448
+ };
449
+ //#endregion
450
+ export { type AvatarProps, type Size as ButtonSize, type CanvasEdge, type CanvasNode, type CanvasNodeData, type DateRange, Granularity, LinkStat, METRIC_CHANNELS, MessageStat, type MetricCardProps, MetricChannel, MetricPoint, type MetricSeries, MetricsQuery, type NodeCategory, type NodeIcon, NodeStats, Profile, ProfilePage, ProfileQuery, type PushPreviewProps, ResolvedStudioConfig, SegmentReport, type SparklineProps, StatsRange, StatsSource, StudioError, type TemplatePreview, type TemplateRefInfo, type TemplateUsage, type TemplatesPageProps, type Trend, type WorkflowCanvasProps, type WorkflowListProps, WorkflowReport, defineStats };
451
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":["Props","Props","Props"],"sources":["../src/components/button/index.tsx","../src/components/corner-shape.ts","../src/components/workflow-canvas.tsx","../src/utils/template-content.ts","../src/components/template-refs.ts","../src/components/templates-page.tsx","../src/components/push-preview.tsx","../src/components/workflow-list.tsx","../src/components/metric-card.tsx","../src/components/date-range.tsx","../src/components/channel-icon.ts","../src/components/avatar.tsx","../src/components/sparkline.tsx","../src/components/layout.ts"],"mappings":";;;;;;;;;;;KAWY;UAEFA,gBAAc,KAAK;EAC3B,OAAO;EACP,WAAW;EACX;EACA;;wBAyCc,SACd,UACA,WACA,MACA,OACA,MACA,YACG,SACFA,0BAAK,IAAA;;;;;;;;;;;;;qBCtDK,cAAuD;;;;;;;;;;;;;;UCgDnD;EACf,IAAI;;EAEJ,QAAQ;;;;;;;EAOR;;EAEA;;EAEA,gBAAgB;;wBAkXF,iBACd,IACA,OACA,WACA,YACA,gBACC,sCAAmB,IAAA;;;;;;;;;;;;KCraVC,UAAQ;;;;;;UAOH;EACf;EACA,QAAQ;;;;;;;;;UC/BO;;EAEf;;EAEA;;EAEA,OAAO;;UAGQ;EACf;EACA;;EAEA,QAAQ;;;;;;wBA8BM,oBAAoB,cAAc,eAAe;;;;;;;wBA+BjD,iBACd,cAAc,cACd;EAAc;EAAiB;EAAiB;EAAmB;IAClE;;;;;;;;UC1Dc;EACf;EACA;;EAEA,UAAU;;EAEV;EACA;;UAKe;EACf,MAAM;;EAEN,QAAQ,eAAe;;EAEvB,SAAS,eAAe;;EAExB,WAAW,eAAe;EAC1B,SAAS,eAAe;;EAExB;EACA;;;;;;EAMA;;EAEA,SAAS;;EAET;IAAkB;IAAe;;;;;;EAKjC,eAAeC;;;;;EAKf,wBAAwB,OAAOA;;;;;;EAM/B;;wBA+Jc,gBACd,MACA,QACA,QACA,UACA,QACA,SACA,UACA,iBACA,SACA,eACA,cACA,sBACA,iBACC,qCAAkB,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UCrNJ;;EAEf;;EAEA;EACA;EACA;EACA;;wBAgac,cAAc,SAAS,OAAO,MAAM,QAAQ,QAAQ,mCAAgB,IAAA;;;;;;;;;;;;;UCvbnE;;EAEf;IAAS;IAAa,IAAI;;EAC1B,UAAU;EACV,SAAS;;wBAqDK,eAAe,OAAO,SAAS,UAAU,oCAAiB,IAAA;;;;;;;;;;;;;;;;;KCxD9D;;;;;;;;;UAUK;;EAEf;;EAEA;;UAGe;EACf;;EAEA;;EAEA;IAAU;IAAc,OAAO;;;;;;EAK/B;;;;;;EAMA,iBAAiB;;EAEjB,SAAS;;wBAkEK,aAAa,OAAO,OAAO,OAAO,OAAO,QAAQ,UAAU,kCAAe,IAAA;;;;;;;;UChGzE;EACf;EACA;;;;;;;wBAQc,OAAO,MAAM;;wBAQb,YAAY,cAAc;;wBAM1B,SAAS,gBAAgB;;wBAQzB,UAAU,aAAa;UAU7B;EACR,OAAO;EACP,WAAW,OAAO;EAClB;;;;;;;;;;wBAWc,kBAAkB,OAAO,UAAU,aAAa,wBAAK,IAAA;;;;;;;;;;;;qBC1DxD,cAAc,OAAO,eAAe;;qBAYpC,mBAAmB;qBAEnB,cAAW,SAAa,8BAA4B;;;;;;;;;;;;;UCxBhD;;EAEf;;EAEA;;EAEA;;wBASc,SAAS,SAAS,OAAO,QAAe,8BAAW,IAAA;;;;;;;;;;UCrBlD;EACf;EACA;EACA;EACA;;wBAGc,YAAY,QAAQ,OAAY,QAAa,aAAa,iCAAc,IAAA;;;;;;;;;;;;KCD5E;KAEA;UAmBK,uBAAuB;EACtC;EACA;EACA,UAAU;;EAEV;EACA,MAAM;;EAEN;;;qBAIW;WAAc;WAAQ;;;;;;;;qBAOtB;WAAc;WAAgB;;UAE1B;EACf;EACA;EACA;IAAY;IAAW;;EACvB,MAAM;;UAGS;EACf;EACA;EACA;EACA;;EAEA;IAAS;;;wBAmNK,OACd,IAAI,YACJ,QAAQ;EACL,OAAO;EAAc,OAAO"}