@jucie.io/cli 1.0.9 → 1.0.20

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 (629) hide show
  1. package/dist/jucie.js +223 -163
  2. package/dist/stage/chunks/addAction-3QC2Z4ZR.js +1 -0
  3. package/dist/stage/chunks/addAnimationBinding-N3UW27JM.js +1 -0
  4. package/dist/stage/chunks/addAttribute-MEJIGMHV.js +1 -0
  5. package/dist/stage/chunks/addComponent-AQQI46C3.js +1 -0
  6. package/dist/stage/chunks/addComputed-2JNIUCEP.js +1 -0
  7. package/dist/stage/chunks/addEvent-PN6P6KR5.js +1 -0
  8. package/dist/stage/chunks/addLifecycleHook-D2UKKFVW.js +1 -0
  9. package/dist/stage/chunks/addNode-UXIXDXSD.js +1 -0
  10. package/dist/stage/chunks/addOption-AFCUFOT7.js +1 -0
  11. package/dist/stage/chunks/addParamToRoute-6LOHCID7.js +1 -0
  12. package/dist/stage/chunks/addState-RSEYKWQO.js +1 -0
  13. package/dist/stage/chunks/addStore-AK2FTEON.js +1 -0
  14. package/dist/stage/chunks/addToken-35LUBJPE.js +1 -0
  15. package/dist/stage/chunks/addTree-CU7MJAKT.js +1 -0
  16. package/dist/stage/chunks/addValue-LIQSHZFR.js +1 -0
  17. package/dist/stage/chunks/{aiAttachmentContracts-4GX7AD4P.js → aiAttachmentContracts-KGD3EHZQ.js} +1 -1
  18. package/dist/stage/chunks/{aiMessagesContracts-3IZEU24J.js → aiMessagesContracts-QWUORKI3.js} +1 -1
  19. package/dist/stage/chunks/aiRelay-LW2UZKRR.js +1 -0
  20. package/dist/stage/chunks/{aiSessionContracts-SCDHZZA3.js → aiSessionContracts-RQKGQY4N.js} +1 -1
  21. package/dist/stage/chunks/assets-5J5INILR.js +1 -0
  22. package/dist/stage/chunks/capture-VQE5664P.js +1 -0
  23. package/dist/stage/chunks/{chunk-GG4NWMR6.js → chunk-2JXGTRSC.js} +1 -1
  24. package/dist/stage/chunks/{chunk-BS35FNXF.js → chunk-3GPQ3HYG.js} +1 -1
  25. package/dist/stage/chunks/chunk-3KR3JD5T.js +1 -0
  26. package/dist/stage/chunks/chunk-457GNGEV.js +1 -0
  27. package/dist/stage/chunks/chunk-4KXBOJIC.js +1 -0
  28. package/dist/stage/chunks/chunk-4UJAZNZX.js +1 -0
  29. package/dist/stage/chunks/{chunk-TS6FANUG.js → chunk-5N7NET6A.js} +1 -1
  30. package/dist/stage/chunks/chunk-5RVLCYPU.js +1 -0
  31. package/dist/stage/chunks/chunk-6JNM2JPA.js +1 -0
  32. package/dist/stage/chunks/{chunk-SRRJXNKG.js → chunk-7C53OCBB.js} +1 -1
  33. package/dist/stage/chunks/chunk-7DIGILX7.js +1 -0
  34. package/dist/stage/chunks/{chunk-LOMYBRPE.js → chunk-7H7BUWZP.js} +1 -1
  35. package/dist/stage/chunks/chunk-7SM7WG53.js +1 -0
  36. package/dist/stage/chunks/{chunk-6ZZBJPN5.js → chunk-A7T3U7OZ.js} +1 -1
  37. package/dist/stage/chunks/chunk-AOLXVYBO.js +1 -0
  38. package/dist/stage/chunks/{chunk-OB6WEYNB.js → chunk-ATDHO5ME.js} +1 -1
  39. package/dist/stage/chunks/{chunk-V4F2T2VR.js → chunk-BCDDG7CW.js} +1 -1
  40. package/dist/stage/chunks/chunk-CB4COXKW.js +1 -0
  41. package/dist/stage/chunks/{chunk-4XNQRZ5E.js → chunk-CM6UENYI.js} +1 -1
  42. package/dist/stage/chunks/{chunk-K6PCHHH7.js → chunk-CVWMERPH.js} +1 -1
  43. package/dist/stage/chunks/{chunk-XKEDVW6X.js → chunk-DDCGP5GM.js} +1 -1
  44. package/dist/stage/chunks/chunk-DOGIABU3.js +1 -0
  45. package/dist/stage/chunks/{chunk-SMO45CB3.js → chunk-DUMMXI6I.js} +1 -1
  46. package/dist/stage/chunks/{chunk-HI7ALMQD.js → chunk-E3LBHSMZ.js} +1 -1
  47. package/dist/stage/chunks/chunk-E7JXTPFA.js +1 -0
  48. package/dist/stage/chunks/chunk-GBE5QYRO.js +1 -0
  49. package/dist/stage/chunks/{chunk-BEYPHEBR.js → chunk-GFV4SJGI.js} +1 -1
  50. package/dist/stage/chunks/{chunk-NYG3CJEJ.js → chunk-GILBTTLF.js} +1 -1
  51. package/dist/stage/chunks/chunk-GPV2ZFME.js +1 -0
  52. package/dist/stage/chunks/chunk-HBNF34QX.js +1 -0
  53. package/dist/stage/chunks/{chunk-GIVV5ZCM.js → chunk-HREW6EFQ.js} +1 -1
  54. package/dist/stage/chunks/chunk-HZ7KMV42.js +1 -0
  55. package/dist/stage/chunks/{chunk-U2OFNNHI.js → chunk-HZXJUIIX.js} +1 -1
  56. package/dist/stage/chunks/{chunk-5SOTDESD.js → chunk-IE6IKN6P.js} +1 -1
  57. package/dist/stage/chunks/chunk-IWO4MU2F.js +1 -0
  58. package/dist/stage/chunks/chunk-J7XIIFXF.js +1 -0
  59. package/dist/stage/chunks/chunk-JG62FTV2.js +1 -0
  60. package/dist/stage/chunks/{chunk-L7VQYHXR.js → chunk-JGELXWD3.js} +1 -1
  61. package/dist/stage/chunks/chunk-JKJRK7ER.js +1 -0
  62. package/dist/stage/chunks/{chunk-PU3DZ3MV.js → chunk-JPPPL527.js} +1 -1
  63. package/dist/stage/chunks/chunk-JRCZXEL2.js +1 -0
  64. package/dist/stage/chunks/{chunk-ODSNVDNS.js → chunk-K33QXMAS.js} +1 -1
  65. package/dist/stage/chunks/{chunk-EPBR3BES.js → chunk-K4R2DLAT.js} +1 -1
  66. package/dist/stage/chunks/{chunk-C3DY5XVP.js → chunk-MA3WBBC6.js} +1 -1
  67. package/dist/stage/chunks/chunk-MHU6JTZC.js +1 -0
  68. package/dist/stage/chunks/{chunk-D6NZE747.js → chunk-MO2MHTOQ.js} +1 -1
  69. package/dist/stage/chunks/chunk-MQKISAKO.js +1 -0
  70. package/dist/stage/chunks/{chunk-ARGFDBBK.js → chunk-ND3BSJOS.js} +1 -1
  71. package/dist/stage/chunks/chunk-NGQ7GQSH.js +1 -0
  72. package/dist/stage/chunks/{chunk-VQ7C6EUZ.js → chunk-NM4FV6YK.js} +1 -1
  73. package/dist/stage/chunks/chunk-NOHQVE3L.js +1 -0
  74. package/dist/stage/chunks/{chunk-MLL2ANA6.js → chunk-O6ZKHW5L.js} +1 -1
  75. package/dist/stage/chunks/{chunk-GDGHGTYN.js → chunk-PBDA5G7U.js} +1 -1
  76. package/dist/stage/chunks/{chunk-RZ74UWF3.js → chunk-PBDSKQIQ.js} +1 -1
  77. package/dist/stage/chunks/chunk-PJFVW637.js +1 -0
  78. package/dist/stage/chunks/{chunk-AJVQKPCQ.js → chunk-PRXT2NXZ.js} +1 -1
  79. package/dist/stage/chunks/chunk-QAUB5H3S.js +1 -0
  80. package/dist/stage/chunks/{chunk-BVAPODQ7.js → chunk-QDH6OIAL.js} +1 -1
  81. package/dist/stage/chunks/{chunk-TEUB5MUS.js → chunk-QM4IVTLC.js} +1 -1
  82. package/dist/stage/chunks/chunk-QUWCLSNF.js +1 -0
  83. package/dist/stage/chunks/{chunk-P3WBUN2B.js → chunk-QVOXRLEG.js} +1 -1
  84. package/dist/stage/chunks/chunk-RAHM76FI.js +1 -0
  85. package/dist/stage/chunks/chunk-RONEQF2M.js +1 -0
  86. package/dist/stage/chunks/{chunk-V7BNWQS6.js → chunk-RPTOBIKP.js} +1 -1
  87. package/dist/stage/chunks/{chunk-LR6DSVPP.js → chunk-RSWDPV5U.js} +1 -1
  88. package/dist/stage/chunks/chunk-SSSTBYOF.js +1 -0
  89. package/dist/stage/chunks/{chunk-OPVVANFS.js → chunk-SV2PSWLZ.js} +1 -1
  90. package/dist/stage/chunks/{chunk-LKQDYABR.js → chunk-TDXJNI7H.js} +1 -1
  91. package/dist/stage/chunks/chunk-TFGNKPAQ.js +1 -0
  92. package/dist/stage/chunks/chunk-TYA35RCB.js +1 -0
  93. package/dist/stage/chunks/{chunk-TBDEUSP4.js → chunk-UJZNQZVK.js} +1 -1
  94. package/dist/stage/chunks/{chunk-5PUPZLDN.js → chunk-UN7EZPD7.js} +1 -1
  95. package/dist/stage/chunks/chunk-UOBNXO4G.js +1 -0
  96. package/dist/stage/chunks/chunk-UVV4NANW.js +97 -0
  97. package/dist/stage/chunks/{chunk-5OOKGI32.js → chunk-V5TNO5LS.js} +1 -1
  98. package/dist/stage/chunks/chunk-VHRU6H4C.js +1 -0
  99. package/dist/stage/chunks/chunk-VP2XJ5UI.js +1 -0
  100. package/dist/stage/chunks/{chunk-ZCAGAEP2.js → chunk-VQDQA3ID.js} +1 -1
  101. package/dist/stage/chunks/chunk-VZJTFJZN.js +1 -0
  102. package/dist/stage/chunks/chunk-WCL6XNDN.js +1 -0
  103. package/dist/stage/chunks/chunk-WKUYNMPE.js +1 -0
  104. package/dist/stage/chunks/chunk-WWWIZ7VG.js +1 -0
  105. package/dist/stage/chunks/{chunk-QG2BGE2O.js → chunk-X2R3VYWI.js} +1 -1
  106. package/dist/stage/chunks/{chunk-CVDUFBBG.js → chunk-X5HHNNED.js} +1 -1
  107. package/dist/stage/chunks/{chunk-ZEWKYCOX.js → chunk-X5INDUEQ.js} +1 -1
  108. package/dist/stage/chunks/chunk-XBUV5F3F.js +1 -0
  109. package/dist/stage/chunks/{chunk-HBEWYDHO.js → chunk-XPWU54SD.js} +1 -1
  110. package/dist/stage/chunks/chunk-YFURTAAV.js +1 -0
  111. package/dist/stage/chunks/chunk-YRI4I37X.js +1 -0
  112. package/dist/stage/chunks/chunk-ZCUNR3XN.js +1 -0
  113. package/dist/stage/chunks/clearDestination-TFFJZYZU.js +1 -0
  114. package/dist/stage/chunks/clearName-LAT5C4G3.js +1 -0
  115. package/dist/stage/chunks/clearOptionsExpression-QHE4GD2Y.js +1 -0
  116. package/dist/stage/chunks/clearRender-XEMKLRCM.js +1 -0
  117. package/dist/stage/chunks/clearRepeat-OJXLCGGV.js +1 -0
  118. package/dist/stage/chunks/contentEditor-H4QUMYKV.js +1 -0
  119. package/dist/stage/chunks/createAction-X7WWJ6BN.js +1 -0
  120. package/dist/stage/chunks/createAnimation-TYRSVQNL.js +1 -0
  121. package/dist/stage/chunks/createComputed-NVI2BGGF.js +1 -0
  122. package/dist/stage/chunks/createTextContent-R4ZOE6SM.js +1 -0
  123. package/dist/stage/chunks/createValue-GRZQQ5RR.js +1 -0
  124. package/dist/stage/chunks/design-2S7QAGYM.js +15 -0
  125. package/dist/stage/chunks/dev-PZI3DDXQ.js +1 -0
  126. package/dist/stage/chunks/disconnectNode-RRO6QPMX.js +1 -0
  127. package/dist/stage/chunks/{history-BNHS2T3X.js → history-5FAKKGJY.js} +1 -1
  128. package/dist/stage/chunks/{id-T5EU463K.js → id-G47WSCWG.js} +1 -1
  129. package/dist/stage/chunks/main-GPY4VWAB.js +1 -0
  130. package/dist/stage/chunks/{main-TUNP7F4N.js → main-OLXPOBOM.js} +1 -1
  131. package/dist/stage/chunks/{main-DDWQFH23.js → main-QADVRVCC.js} +1 -1
  132. package/dist/stage/chunks/main-RMI3HY2B.js +1 -0
  133. package/dist/stage/chunks/moveNodeToLastChildOf-SGHEMUMS.js +1 -0
  134. package/dist/stage/chunks/{nodeGraph-ZXVLUHBH.js → nodeGraph-UGMYCUUO.js} +1 -1
  135. package/dist/stage/chunks/{normalizeEventName-6HVMB5GN.js → normalizeEventName-Y34QRO25.js} +1 -1
  136. package/dist/stage/chunks/preview-UBVA3QQU.js +1 -0
  137. package/dist/stage/chunks/removeAction-UIZVYC4K.js +1 -0
  138. package/dist/stage/chunks/removeAnimationBinding-PD2IRVQZ.js +1 -0
  139. package/dist/stage/chunks/removeAttribute-HCDVVDSZ.js +1 -0
  140. package/dist/stage/chunks/removeComputed-2UWAXEAM.js +1 -0
  141. package/dist/stage/chunks/removeEvent-GBW7REQV.js +1 -0
  142. package/dist/stage/chunks/removeLifecycleHook-V4BK7NPV.js +1 -0
  143. package/dist/stage/chunks/removeNode-H7TWCLTZ.js +1 -0
  144. package/dist/stage/chunks/removeOption-4SMMGXLO.js +1 -0
  145. package/dist/stage/chunks/removeParamFromRoute-2Q2PYYP5.js +1 -0
  146. package/dist/stage/chunks/removeState-X4UQTIPT.js +1 -0
  147. package/dist/stage/chunks/removeStore-B3WQQP3D.js +1 -0
  148. package/dist/stage/chunks/removeToken-3QTFHQF6.js +1 -0
  149. package/dist/stage/chunks/removeValue-QIQBSOHR.js +1 -0
  150. package/dist/stage/chunks/setDestination-26OTLIOX.js +1 -0
  151. package/dist/stage/chunks/setHomePage-GBSAVDQC.js +1 -0
  152. package/dist/stage/chunks/setHtmlId-PZQQWCXU.js +1 -0
  153. package/dist/stage/chunks/setName-C26SXODP.js +1 -0
  154. package/dist/stage/chunks/setNodeLayout-PZMYT6M2.js +1 -0
  155. package/dist/stage/chunks/setOptionsExpression-PQ3JOVEW.js +1 -0
  156. package/dist/stage/chunks/setRender-MNCOTE35.js +1 -0
  157. package/dist/stage/chunks/setRepeat-GIOC7YT4.js +1 -0
  158. package/dist/stage/chunks/setTagName-FA7BMEUS.js +1 -0
  159. package/dist/stage/chunks/updateAction-TUQLHSJE.js +1 -0
  160. package/dist/stage/chunks/updateAnimationBinding-I3AQNLO2.js +1 -0
  161. package/dist/stage/chunks/updateAttribute-TLLDGUPR.js +1 -0
  162. package/dist/stage/chunks/updateBounds-KL4N7VYO.js +1 -0
  163. package/dist/stage/chunks/updateComputed-JGJIIC4A.js +1 -0
  164. package/dist/stage/chunks/updateEvent-YOKH67TX.js +1 -0
  165. package/dist/stage/chunks/updateHtml-Z4XI7SYU.js +1 -0
  166. package/dist/stage/chunks/updateLifecycleHook-4555YGGM.js +1 -0
  167. package/dist/stage/chunks/updateOption-YUFQYF43.js +1 -0
  168. package/dist/stage/chunks/updateRoute-42OSDVLS.js +1 -0
  169. package/dist/stage/chunks/updateState-3RQX5YED.js +1 -0
  170. package/dist/stage/chunks/updateStyle-I5NO4TOV.js +1 -0
  171. package/dist/stage/chunks/updateToken-AFJYTJ7R.js +1 -0
  172. package/dist/stage/chunks/updateValue-XGRBUCOT.js +1 -0
  173. package/dist/stage/chunks/{user-LKHAFHX4.js → user-CK5IAVFH.js} +1 -1
  174. package/dist/stage/chunks/{validateStorePayload-PJ5AD64S.js → validateStorePayload-3HAVFGVL.js} +1 -1
  175. package/dist/stage/chunks/{viewport-ANZ3RTUP.js → viewport-CQRIOXC6.js} +1 -1
  176. package/dist/stage/chunks/window-7JZPBAP7.js +1 -0
  177. package/dist/stage/design.js +1 -1
  178. package/dist/stage/dev.js +1 -1
  179. package/dist/stage/preview.js +1 -1
  180. package/dist/stage/prod.js +1 -1
  181. package/dist/stage-bundles/preact/chunks/addComponent-3JC5NC3Y.js +1 -0
  182. package/dist/stage-bundles/preact/chunks/addNode-QXU2P4AE.js +1 -0
  183. package/dist/stage-bundles/preact/chunks/addTree-S73GXWZP.js +1 -0
  184. package/dist/stage-bundles/{vue/chunks/aiAttachmentContracts-V3EW4BHI.js → preact/chunks/aiAttachmentContracts-7LLE57FI.js} +1 -1
  185. package/dist/stage-bundles/{vue/chunks/aiMessagesContracts-ZGHZJ7EU.js → preact/chunks/aiMessagesContracts-RAR7ENH4.js} +1 -1
  186. package/dist/stage-bundles/preact/chunks/aiRelay-C6ZJ3PUF.js +1 -0
  187. package/dist/stage-bundles/preact/chunks/{aiSessionContracts-WAMOGHSG.js → aiSessionContracts-NHU57TUZ.js} +1 -1
  188. package/dist/stage-bundles/preact/chunks/assets-6LM3GVQU.js +1 -0
  189. package/dist/stage-bundles/preact/chunks/capture-ON3BO6WE.js +1 -0
  190. package/dist/stage-bundles/preact/chunks/chunk-2Z2RXHNK.js +1 -0
  191. package/dist/stage-bundles/preact/chunks/chunk-3WCN6R5H.js +1 -0
  192. package/dist/stage-bundles/preact/chunks/chunk-45YNKT2X.js +1 -0
  193. package/dist/stage-bundles/preact/chunks/chunk-4Q5R44ZZ.js +1 -0
  194. package/dist/stage-bundles/preact/chunks/chunk-7I5TQOE2.js +1 -0
  195. package/dist/stage-bundles/preact/chunks/chunk-7YVQSQRP.js +1 -0
  196. package/dist/stage-bundles/preact/chunks/chunk-AOGIMUZ2.js +103 -0
  197. package/dist/stage-bundles/preact/chunks/chunk-BGQJ5B3Q.js +1 -0
  198. package/dist/stage-bundles/preact/chunks/chunk-CGCD6S33.js +6 -0
  199. package/dist/stage-bundles/preact/chunks/chunk-DWW3567Q.js +1 -0
  200. package/dist/stage-bundles/preact/chunks/chunk-G3PYA3EU.js +1 -0
  201. package/dist/stage-bundles/preact/chunks/chunk-H5NHEM4C.js +1 -0
  202. package/dist/stage-bundles/preact/chunks/chunk-IG2Y3H6O.js +1 -0
  203. package/dist/stage-bundles/preact/chunks/chunk-IWTWZA3T.js +1 -0
  204. package/dist/stage-bundles/preact/chunks/chunk-LXD22ETU.js +1 -0
  205. package/dist/stage-bundles/preact/chunks/chunk-M577WNTV.js +1 -0
  206. package/dist/stage-bundles/preact/chunks/chunk-NFKUJQZH.js +1 -0
  207. package/dist/stage-bundles/preact/chunks/chunk-NKDO4J6J.js +1 -0
  208. package/dist/stage-bundles/preact/chunks/chunk-SCJKRPIZ.js +1 -0
  209. package/dist/stage-bundles/preact/chunks/{chunk-O24ISLGT.js → chunk-ULVFWUAU.js} +1 -1
  210. package/dist/stage-bundles/preact/chunks/contentEditor-7BYCT3TH.js +1 -0
  211. package/dist/stage-bundles/preact/chunks/design-3DHGUCPX.js +15 -0
  212. package/dist/stage-bundles/preact/chunks/{history-VAAFKC4E.js → history-CMF3VYTT.js} +1 -1
  213. package/dist/stage-bundles/preact/chunks/main-3VRCGPRY.js +1 -0
  214. package/dist/stage-bundles/preact/chunks/{main-KFGWT6OT.js → main-DH4JOS22.js} +1 -1
  215. package/dist/stage-bundles/preact/chunks/{main-MVCLW2IY.js → main-FAFZABOS.js} +1 -1
  216. package/dist/stage-bundles/preact/chunks/main-S7RT75O6.js +1 -0
  217. package/dist/stage-bundles/preact/chunks/moveNodeToLastChildOf-CWSWITHI.js +1 -0
  218. package/dist/stage-bundles/preact/chunks/{nodeGraph-JS64VAAQ.js → nodeGraph-UNI2HUNX.js} +1 -1
  219. package/dist/stage-bundles/preact/chunks/preview-YOYSHYJF.js +1 -0
  220. package/dist/stage-bundles/preact/chunks/setNodeLayout-KQVZJBYW.js +1 -0
  221. package/dist/stage-bundles/preact/chunks/{user-FCPIGR7X.js → user-H5DKMGWA.js} +1 -1
  222. package/dist/stage-bundles/preact/chunks/{viewport-LLBH2LJW.js → viewport-ZRWTVYC3.js} +1 -1
  223. package/dist/stage-bundles/preact/chunks/window-IMPT5I3D.js +1 -0
  224. package/dist/stage-bundles/preact/entry.js +1 -1
  225. package/dist/stage-bundles/preact/framework-compat.js +1 -1
  226. package/dist/stage-bundles/preact/framework-hooks.js +1 -1
  227. package/dist/stage-bundles/preact/framework-jsx-runtime.js +1 -1
  228. package/dist/stage-bundles/preact/framework.js +1 -1
  229. package/dist/stage-bundles/preact/sdk.js +1 -1
  230. package/dist/stage-bundles/react/chunks/{addAction-BMIMOFKC.js → addAction-EGLGEGTS.js} +1 -1
  231. package/dist/stage-bundles/react/chunks/addAnimationBinding-WCB5VZLU.js +1 -0
  232. package/dist/stage-bundles/react/chunks/{addAttribute-2WJG6MQQ.js → addAttribute-2MZ3OFUE.js} +1 -1
  233. package/dist/stage-bundles/react/chunks/addComponent-3JC5NC3Y.js +1 -0
  234. package/dist/stage-bundles/react/chunks/{addComputed-WNYOBBU3.js → addComputed-7JLBFD6I.js} +1 -1
  235. package/dist/stage-bundles/react/chunks/{addEvent-KKSUEWJZ.js → addEvent-HOBNKM2F.js} +1 -1
  236. package/dist/stage-bundles/react/chunks/{addLifecycleHook-KXJ6HEKQ.js → addLifecycleHook-GHYL7FRH.js} +1 -1
  237. package/dist/stage-bundles/react/chunks/addNode-QXU2P4AE.js +1 -0
  238. package/dist/stage-bundles/react/chunks/{addOption-6OBUAJDH.js → addOption-PVXGN7AJ.js} +1 -1
  239. package/dist/stage-bundles/react/chunks/addParamToRoute-VL2VOFZS.js +1 -0
  240. package/dist/stage-bundles/react/chunks/{addState-BH7Q5V6N.js → addState-U2NWEGWV.js} +1 -1
  241. package/dist/stage-bundles/react/chunks/addStore-AQMFKH33.js +1 -0
  242. package/dist/stage-bundles/react/chunks/{addToken-DFONVP3M.js → addToken-XF2FFA52.js} +1 -1
  243. package/dist/stage-bundles/react/chunks/addTree-S73GXWZP.js +1 -0
  244. package/dist/stage-bundles/react/chunks/{addValue-6SJ7KR7G.js → addValue-O7YXXMST.js} +1 -1
  245. package/dist/stage-bundles/{preact/chunks/aiAttachmentContracts-V3EW4BHI.js → react/chunks/aiAttachmentContracts-7LLE57FI.js} +1 -1
  246. package/dist/stage-bundles/{preact/chunks/aiMessagesContracts-ZGHZJ7EU.js → react/chunks/aiMessagesContracts-RAR7ENH4.js} +1 -1
  247. package/dist/stage-bundles/react/chunks/aiRelay-C6ZJ3PUF.js +1 -0
  248. package/dist/stage-bundles/{vue/chunks/aiSessionContracts-WAMOGHSG.js → react/chunks/aiSessionContracts-NHU57TUZ.js} +1 -1
  249. package/dist/stage-bundles/react/chunks/assets-6LM3GVQU.js +1 -0
  250. package/dist/stage-bundles/react/chunks/capture-6GFKGXIT.js +1 -0
  251. package/dist/stage-bundles/react/chunks/chunk-2Z2RXHNK.js +1 -0
  252. package/dist/stage-bundles/react/chunks/chunk-3WCN6R5H.js +1 -0
  253. package/dist/stage-bundles/react/chunks/chunk-45YNKT2X.js +1 -0
  254. package/dist/stage-bundles/react/chunks/chunk-4Q5R44ZZ.js +1 -0
  255. package/dist/stage-bundles/react/chunks/chunk-7I5TQOE2.js +1 -0
  256. package/dist/stage-bundles/react/chunks/chunk-7YVQSQRP.js +1 -0
  257. package/dist/stage-bundles/react/chunks/chunk-BGQJ5B3Q.js +1 -0
  258. package/dist/stage-bundles/react/chunks/chunk-CGCD6S33.js +6 -0
  259. package/dist/stage-bundles/react/chunks/chunk-G3PYA3EU.js +1 -0
  260. package/dist/stage-bundles/react/chunks/{chunk-5HITMZZP.js → chunk-G5RN6RXS.js} +1 -1
  261. package/dist/stage-bundles/react/chunks/chunk-HJOMUN4M.js +49 -0
  262. package/dist/stage-bundles/react/chunks/chunk-IG2Y3H6O.js +1 -0
  263. package/dist/stage-bundles/react/chunks/chunk-IWTWZA3T.js +1 -0
  264. package/dist/stage-bundles/react/chunks/{chunk-FCMIFWSU.js → chunk-KLPU3QNW.js} +1 -1
  265. package/dist/stage-bundles/react/chunks/chunk-LXD22ETU.js +1 -0
  266. package/dist/stage-bundles/react/chunks/chunk-M577WNTV.js +1 -0
  267. package/dist/stage-bundles/react/chunks/chunk-NFKUJQZH.js +1 -0
  268. package/dist/stage-bundles/react/chunks/chunk-NKDO4J6J.js +1 -0
  269. package/dist/stage-bundles/react/chunks/{chunk-76SRFCJO.js → chunk-P3ZDKQWG.js} +1 -1
  270. package/dist/stage-bundles/react/chunks/chunk-SCJKRPIZ.js +1 -0
  271. package/dist/stage-bundles/react/chunks/chunk-U66LRTNF.js +1 -0
  272. package/dist/stage-bundles/react/chunks/chunk-UCLSDDOL.js +1 -0
  273. package/dist/stage-bundles/{vue/chunks/chunk-O24ISLGT.js → react/chunks/chunk-ULVFWUAU.js} +1 -1
  274. package/dist/stage-bundles/react/chunks/clearDestination-IGKNL7FN.js +1 -0
  275. package/dist/stage-bundles/react/chunks/clearName-HJ7ZTHBU.js +1 -0
  276. package/dist/stage-bundles/react/chunks/clearOptionsExpression-NZQFL64E.js +1 -0
  277. package/dist/stage-bundles/react/chunks/clearRender-NPVDTNFA.js +1 -0
  278. package/dist/stage-bundles/react/chunks/clearRepeat-7YFYZODP.js +1 -0
  279. package/dist/stage-bundles/react/chunks/contentEditor-7BYCT3TH.js +1 -0
  280. package/dist/stage-bundles/react/chunks/{createAction-ITB7SY4A.js → createAction-73YUTK3T.js} +1 -1
  281. package/dist/stage-bundles/react/chunks/createAnimation-2WQSMYT5.js +1 -0
  282. package/dist/stage-bundles/react/chunks/{createComputed-BMWO4U4T.js → createComputed-DMX7CJA3.js} +1 -1
  283. package/dist/stage-bundles/react/chunks/{createTextContent-ZVU57TXU.js → createTextContent-4Z4YATBO.js} +1 -1
  284. package/dist/stage-bundles/react/chunks/createValue-DXQSLOBG.js +1 -0
  285. package/dist/stage-bundles/react/chunks/design-6KSNU4OK.js +15 -0
  286. package/dist/stage-bundles/react/chunks/{disconnectNode-PNUX55O2.js → disconnectNode-2CLWVIQP.js} +1 -1
  287. package/dist/stage-bundles/{vue/chunks/history-VAAFKC4E.js → react/chunks/history-CMF3VYTT.js} +1 -1
  288. package/dist/stage-bundles/react/chunks/{id-UUBDNSND.js → id-ZIAZZ5AS.js} +1 -1
  289. package/dist/stage-bundles/react/chunks/main-3VRCGPRY.js +1 -0
  290. package/dist/stage-bundles/{vue/chunks/main-KFGWT6OT.js → react/chunks/main-DH4JOS22.js} +1 -1
  291. package/dist/stage-bundles/react/chunks/{main-XBZULJGK.js → main-FAFZABOS.js} +1 -1
  292. package/dist/stage-bundles/react/chunks/main-S7RT75O6.js +1 -0
  293. package/dist/stage-bundles/react/chunks/moveNodeToLastChildOf-CWSWITHI.js +1 -0
  294. package/dist/stage-bundles/{vue/chunks/nodeGraph-JS64VAAQ.js → react/chunks/nodeGraph-UNI2HUNX.js} +1 -1
  295. package/dist/stage-bundles/react/chunks/{normalizeEventName-3CSULWE4.js → normalizeEventName-SNBYJDUY.js} +1 -1
  296. package/dist/stage-bundles/react/chunks/preview-KOCHK3AH.js +1 -0
  297. package/dist/stage-bundles/react/chunks/removeAction-T4M5EJN7.js +1 -0
  298. package/dist/stage-bundles/react/chunks/removeAnimationBinding-AIISPC33.js +1 -0
  299. package/dist/stage-bundles/react/chunks/removeAttribute-DCKZLM55.js +1 -0
  300. package/dist/stage-bundles/react/chunks/removeComputed-WSA5GNVZ.js +1 -0
  301. package/dist/stage-bundles/react/chunks/removeEvent-2YZ55HD6.js +1 -0
  302. package/dist/stage-bundles/react/chunks/removeLifecycleHook-SBPJNF5P.js +1 -0
  303. package/dist/stage-bundles/react/chunks/{removeNode-QSDSWHNG.js → removeNode-5HXQ63V3.js} +1 -1
  304. package/dist/stage-bundles/react/chunks/removeOption-SYIFB4XW.js +1 -0
  305. package/dist/stage-bundles/react/chunks/removeParamFromRoute-HAYP3WTT.js +1 -0
  306. package/dist/stage-bundles/react/chunks/removeState-SGJVQ66N.js +1 -0
  307. package/dist/stage-bundles/react/chunks/removeStore-YVBTGA3I.js +1 -0
  308. package/dist/stage-bundles/react/chunks/removeToken-AIDV7DUM.js +1 -0
  309. package/dist/stage-bundles/react/chunks/removeValue-UP5ZFN3U.js +1 -0
  310. package/dist/stage-bundles/react/chunks/setDestination-NCPAVIIK.js +1 -0
  311. package/dist/stage-bundles/react/chunks/setHomePage-O2JYOG6H.js +1 -0
  312. package/dist/stage-bundles/react/chunks/setHtmlId-2W7YW47O.js +1 -0
  313. package/dist/stage-bundles/react/chunks/setName-NKRZPBGG.js +1 -0
  314. package/dist/stage-bundles/react/chunks/setNodeLayout-KQVZJBYW.js +1 -0
  315. package/dist/stage-bundles/react/chunks/{setOptionsExpression-3MOFK54D.js → setOptionsExpression-K5EQXJEY.js} +1 -1
  316. package/dist/stage-bundles/react/chunks/{setRender-WJRTHRML.js → setRender-7XMGQ7ZK.js} +1 -1
  317. package/dist/stage-bundles/react/chunks/{setRepeat-JD6QROHI.js → setRepeat-WN4WZJUN.js} +1 -1
  318. package/dist/stage-bundles/react/chunks/setTagName-U6UJNJLE.js +1 -0
  319. package/dist/stage-bundles/react/chunks/{updateAction-ZW4KGOAQ.js → updateAction-3KSR6ZIJ.js} +1 -1
  320. package/dist/stage-bundles/react/chunks/updateAnimationBinding-HVVHLFBO.js +1 -0
  321. package/dist/stage-bundles/react/chunks/{updateAttribute-HFPDXXBZ.js → updateAttribute-XXZL2P43.js} +1 -1
  322. package/dist/stage-bundles/react/chunks/updateBounds-5M7YQRO3.js +1 -0
  323. package/dist/stage-bundles/react/chunks/{updateComputed-OOBDA4XY.js → updateComputed-7QA6XZIC.js} +1 -1
  324. package/dist/stage-bundles/react/chunks/{updateEvent-LCGAPMAI.js → updateEvent-R52PL2G4.js} +1 -1
  325. package/dist/stage-bundles/react/chunks/updateHtml-YBJJSWQW.js +1 -0
  326. package/dist/stage-bundles/react/chunks/{updateLifecycleHook-RCS2QC44.js → updateLifecycleHook-4RA2U4TR.js} +1 -1
  327. package/dist/stage-bundles/react/chunks/{updateOption-PPZLK4X3.js → updateOption-5U23ZUWV.js} +1 -1
  328. package/dist/stage-bundles/react/chunks/updateRoute-TFQFFFSZ.js +1 -0
  329. package/dist/stage-bundles/react/chunks/{updateState-LRZJPENX.js → updateState-JCUSBQOL.js} +1 -1
  330. package/dist/stage-bundles/react/chunks/updateStyle-JASLFXVX.js +1 -0
  331. package/dist/stage-bundles/react/chunks/updateToken-24P2P2SF.js +1 -0
  332. package/dist/stage-bundles/react/chunks/{updateValue-NTA7TSYR.js → updateValue-TSVJM3PO.js} +1 -1
  333. package/dist/stage-bundles/{vue/chunks/user-FCPIGR7X.js → react/chunks/user-H5DKMGWA.js} +1 -1
  334. package/dist/stage-bundles/react/chunks/{validateStorePayload-VVQBPX4I.js → validateStorePayload-HCBPC7HR.js} +1 -1
  335. package/dist/stage-bundles/{vue/chunks/viewport-LLBH2LJW.js → react/chunks/viewport-ZRWTVYC3.js} +1 -1
  336. package/dist/stage-bundles/react/chunks/window-IMPT5I3D.js +1 -0
  337. package/dist/stage-bundles/react/entry.js +1 -1
  338. package/dist/stage-bundles/react/framework-dom-client.js +1 -1
  339. package/dist/stage-bundles/react/framework-dom.js +1 -1
  340. package/dist/stage-bundles/react/framework-jsx-runtime.js +1 -1
  341. package/dist/stage-bundles/react/framework.js +1 -1
  342. package/dist/stage-bundles/react/sdk.js +1 -1
  343. package/dist/stage-bundles/vue/chunks/addComponent-NG2BML2S.js +1 -0
  344. package/dist/stage-bundles/vue/chunks/addNode-UNXHE5VL.js +1 -0
  345. package/dist/stage-bundles/vue/chunks/addTree-MFMYQTGN.js +1 -0
  346. package/dist/stage-bundles/{react/chunks/aiAttachmentContracts-IIM7E4TZ.js → vue/chunks/aiAttachmentContracts-7LLE57FI.js} +1 -1
  347. package/dist/stage-bundles/{react/chunks/aiMessagesContracts-LVR4HAGR.js → vue/chunks/aiMessagesContracts-RAR7ENH4.js} +1 -1
  348. package/dist/stage-bundles/vue/chunks/aiRelay-C6ZJ3PUF.js +1 -0
  349. package/dist/stage-bundles/{react/chunks/aiSessionContracts-MWOX56DC.js → vue/chunks/aiSessionContracts-NHU57TUZ.js} +1 -1
  350. package/dist/stage-bundles/vue/chunks/assets-6LM3GVQU.js +1 -0
  351. package/dist/stage-bundles/vue/chunks/capture-XURVK5HZ.js +1 -0
  352. package/dist/stage-bundles/vue/chunks/chunk-2Z2RXHNK.js +1 -0
  353. package/dist/stage-bundles/vue/chunks/chunk-4M7L75C7.js +1 -0
  354. package/dist/stage-bundles/vue/chunks/chunk-4Q5R44ZZ.js +1 -0
  355. package/dist/stage-bundles/vue/chunks/chunk-7YVQSQRP.js +1 -0
  356. package/dist/stage-bundles/vue/chunks/chunk-BJPSGTXJ.js +1 -0
  357. package/dist/stage-bundles/vue/chunks/chunk-CGCD6S33.js +6 -0
  358. package/dist/stage-bundles/vue/chunks/chunk-F7DSZRND.js +1 -0
  359. package/dist/stage-bundles/vue/chunks/chunk-GW7KMMRR.js +1 -0
  360. package/dist/stage-bundles/vue/chunks/chunk-HYSOOJLT.js +1 -0
  361. package/dist/stage-bundles/vue/chunks/chunk-IG2Y3H6O.js +1 -0
  362. package/dist/stage-bundles/vue/chunks/chunk-IWTWZA3T.js +1 -0
  363. package/dist/stage-bundles/vue/chunks/chunk-K5IR3PSI.js +1 -0
  364. package/dist/stage-bundles/vue/chunks/chunk-LXD22ETU.js +1 -0
  365. package/dist/stage-bundles/vue/chunks/chunk-NFKUJQZH.js +1 -0
  366. package/dist/stage-bundles/vue/chunks/chunk-NKDO4J6J.js +1 -0
  367. package/dist/stage-bundles/vue/chunks/chunk-QFJRB6B2.js +103 -0
  368. package/dist/stage-bundles/vue/chunks/chunk-SCJKRPIZ.js +1 -0
  369. package/dist/stage-bundles/{react/chunks/chunk-PPHD3O2M.js → vue/chunks/chunk-ULVFWUAU.js} +1 -1
  370. package/dist/stage-bundles/vue/chunks/chunk-USKXWFBI.js +1 -0
  371. package/dist/stage-bundles/vue/chunks/contentEditor-7BYCT3TH.js +1 -0
  372. package/dist/stage-bundles/vue/chunks/design-4GTDZLD2.js +15 -0
  373. package/dist/stage-bundles/{react/chunks/history-7CH6VXP4.js → vue/chunks/history-CMF3VYTT.js} +1 -1
  374. package/dist/stage-bundles/vue/chunks/main-4HW35P75.js +1 -0
  375. package/dist/stage-bundles/vue/chunks/main-BVDJS6IT.js +1 -0
  376. package/dist/stage-bundles/{react/chunks/main-D4CUN7NH.js → vue/chunks/main-DH4JOS22.js} +1 -1
  377. package/dist/stage-bundles/vue/chunks/{main-HQ4XJKUM.js → main-PALLSI3C.js} +1 -1
  378. package/dist/stage-bundles/vue/chunks/moveNodeToLastChildOf-BLKABBSO.js +1 -0
  379. package/dist/stage-bundles/{react/chunks/nodeGraph-2AX6JUZ4.js → vue/chunks/nodeGraph-UNI2HUNX.js} +1 -1
  380. package/dist/stage-bundles/vue/chunks/preview-QUDMZGVG.js +1 -0
  381. package/dist/stage-bundles/vue/chunks/setNodeLayout-KQVZJBYW.js +1 -0
  382. package/dist/stage-bundles/{react/chunks/user-3YXEQVFB.js → vue/chunks/user-H5DKMGWA.js} +1 -1
  383. package/dist/stage-bundles/vue/chunks/viewport-ZRWTVYC3.js +1 -0
  384. package/dist/stage-bundles/vue/chunks/window-IMPT5I3D.js +1 -0
  385. package/dist/stage-bundles/vue/entry.js +1 -1
  386. package/dist/stage-bundles/vue/framework-jsx-runtime.js +1 -1
  387. package/dist/stage-bundles/vue/framework.js +1 -1
  388. package/dist/stage-bundles/vue/sdk.js +1 -1
  389. package/dist/stage-src/dev/entry.js +8 -17
  390. package/dist/stage-src/dev/server.js +77 -24
  391. package/dist/stage-src/preview/bootstrap.js +0 -2
  392. package/package.json +16 -21
  393. package/dist/stage/chunks/addAction-FSI6BXB4.js +0 -1
  394. package/dist/stage/chunks/addAnimationBinding-Y4VROY4L.js +0 -1
  395. package/dist/stage/chunks/addAttribute-ZPJGNPHK.js +0 -1
  396. package/dist/stage/chunks/addComponent-VWD6O7CQ.js +0 -1
  397. package/dist/stage/chunks/addComputed-FQVHDUIE.js +0 -1
  398. package/dist/stage/chunks/addEvent-54ZE2DVJ.js +0 -1
  399. package/dist/stage/chunks/addLifecycleHook-VCCSTQ3G.js +0 -1
  400. package/dist/stage/chunks/addNode-IWTESHU3.js +0 -1
  401. package/dist/stage/chunks/addOption-ISGTUY6U.js +0 -1
  402. package/dist/stage/chunks/addParamToRoute-CRDV7MVF.js +0 -1
  403. package/dist/stage/chunks/addState-N3MBR533.js +0 -1
  404. package/dist/stage/chunks/addStore-PHY52777.js +0 -1
  405. package/dist/stage/chunks/addToken-QSTDKYFU.js +0 -1
  406. package/dist/stage/chunks/addValue-NBDF57UK.js +0 -1
  407. package/dist/stage/chunks/aiRelay-FDHMGC33.js +0 -1
  408. package/dist/stage/chunks/assets-RXVS3AKR.js +0 -1
  409. package/dist/stage/chunks/capture-XQFI2T7B.js +0 -1
  410. package/dist/stage/chunks/chunk-2YZN7IFG.js +0 -1
  411. package/dist/stage/chunks/chunk-32WBU6VH.js +0 -1
  412. package/dist/stage/chunks/chunk-33W74KNB.js +0 -37
  413. package/dist/stage/chunks/chunk-45CXRNTO.js +0 -1
  414. package/dist/stage/chunks/chunk-45LFQ7GZ.js +0 -1
  415. package/dist/stage/chunks/chunk-4MTM6BM7.js +0 -1
  416. package/dist/stage/chunks/chunk-4Y2YKFNP.js +0 -1
  417. package/dist/stage/chunks/chunk-55KIFGBN.js +0 -1
  418. package/dist/stage/chunks/chunk-5GOTVZFC.js +0 -1
  419. package/dist/stage/chunks/chunk-6EIGTDJQ.js +0 -1
  420. package/dist/stage/chunks/chunk-7L4V7JRT.js +0 -1
  421. package/dist/stage/chunks/chunk-D3V5OTLH.js +0 -1
  422. package/dist/stage/chunks/chunk-DCOWKGJI.js +0 -1
  423. package/dist/stage/chunks/chunk-DSKLC3WF.js +0 -1
  424. package/dist/stage/chunks/chunk-EO7UBT4B.js +0 -1
  425. package/dist/stage/chunks/chunk-FSECMWCM.js +0 -1
  426. package/dist/stage/chunks/chunk-FTRUORC5.js +0 -1
  427. package/dist/stage/chunks/chunk-G37FCH35.js +0 -1
  428. package/dist/stage/chunks/chunk-GURTWV7H.js +0 -1
  429. package/dist/stage/chunks/chunk-H3VC542J.js +0 -1
  430. package/dist/stage/chunks/chunk-IERYKQMJ.js +0 -1
  431. package/dist/stage/chunks/chunk-IEXI4PPB.js +0 -1
  432. package/dist/stage/chunks/chunk-K7MC6G4X.js +0 -1
  433. package/dist/stage/chunks/chunk-KCVDFPJI.js +0 -1
  434. package/dist/stage/chunks/chunk-L4CU73MS.js +0 -1
  435. package/dist/stage/chunks/chunk-LOILFK74.js +0 -55
  436. package/dist/stage/chunks/chunk-MXIF2FGR.js +0 -1
  437. package/dist/stage/chunks/chunk-OWARHUEW.js +0 -1
  438. package/dist/stage/chunks/chunk-P4ODI2G4.js +0 -1
  439. package/dist/stage/chunks/chunk-PUPSHZWC.js +0 -1
  440. package/dist/stage/chunks/chunk-QTBRJH2Q.js +0 -1
  441. package/dist/stage/chunks/chunk-SECM4LZZ.js +0 -1
  442. package/dist/stage/chunks/chunk-TAMEB64F.js +0 -1
  443. package/dist/stage/chunks/chunk-TIIQLNVN.js +0 -1
  444. package/dist/stage/chunks/chunk-U3IV5DRQ.js +0 -1
  445. package/dist/stage/chunks/chunk-X6HJCJ3C.js +0 -1
  446. package/dist/stage/chunks/chunk-YMUEID4R.js +0 -1
  447. package/dist/stage/chunks/chunk-YN5VQBDN.js +0 -1
  448. package/dist/stage/chunks/chunk-YZBMJY7E.js +0 -1
  449. package/dist/stage/chunks/clearDestination-P3FTW7VJ.js +0 -1
  450. package/dist/stage/chunks/clearName-EUYRSZED.js +0 -1
  451. package/dist/stage/chunks/clearOptionsExpression-DF4IPDKH.js +0 -1
  452. package/dist/stage/chunks/clearRender-IUKXUT2E.js +0 -1
  453. package/dist/stage/chunks/clearRepeat-HR5C5VWU.js +0 -1
  454. package/dist/stage/chunks/contentEditor-PCXXWARK.js +0 -1
  455. package/dist/stage/chunks/createAction-XVCUAVTP.js +0 -1
  456. package/dist/stage/chunks/createAnimation-YAXYGTZ2.js +0 -1
  457. package/dist/stage/chunks/createComputed-6XPJKJMP.js +0 -1
  458. package/dist/stage/chunks/createTextContent-BL7YGYP5.js +0 -1
  459. package/dist/stage/chunks/createValue-QMG7LOR4.js +0 -1
  460. package/dist/stage/chunks/design-SPZTUDPC.js +0 -15
  461. package/dist/stage/chunks/dev-24ZWZ22W.js +0 -1
  462. package/dist/stage/chunks/disconnectNode-OY65I4GB.js +0 -1
  463. package/dist/stage/chunks/main-BLNWJ3UJ.js +0 -1
  464. package/dist/stage/chunks/main-NTDWDKF7.js +0 -1
  465. package/dist/stage/chunks/moveNodeToLastChildOf-PRI4OYRB.js +0 -1
  466. package/dist/stage/chunks/normalizeLayoutContext-OIXYBNTH.js +0 -1
  467. package/dist/stage/chunks/preview-EIG4E5G5.js +0 -1
  468. package/dist/stage/chunks/react-G5SWVCZA.js +0 -1
  469. package/dist/stage/chunks/removeAction-H3EDG2CG.js +0 -1
  470. package/dist/stage/chunks/removeAnimationBinding-JRXL2AOH.js +0 -1
  471. package/dist/stage/chunks/removeAttribute-6RYM7MYC.js +0 -1
  472. package/dist/stage/chunks/removeComputed-3HL3BXKY.js +0 -1
  473. package/dist/stage/chunks/removeEvent-CP3SVSHQ.js +0 -1
  474. package/dist/stage/chunks/removeLifecycleHook-Q76BUDFU.js +0 -1
  475. package/dist/stage/chunks/removeNode-OFMYW2LY.js +0 -1
  476. package/dist/stage/chunks/removeOption-Y6QYTQ7C.js +0 -1
  477. package/dist/stage/chunks/removeParamFromRoute-MHUMB7RO.js +0 -1
  478. package/dist/stage/chunks/removeState-HEDFV7HD.js +0 -1
  479. package/dist/stage/chunks/removeStore-BQDKUY3I.js +0 -1
  480. package/dist/stage/chunks/removeToken-6K5JDRMK.js +0 -1
  481. package/dist/stage/chunks/removeValue-OTRFOOIB.js +0 -1
  482. package/dist/stage/chunks/setDestination-3H4RDE7F.js +0 -1
  483. package/dist/stage/chunks/setHomePage-UZUWIELK.js +0 -1
  484. package/dist/stage/chunks/setHtmlId-V2DQ2Z6D.js +0 -1
  485. package/dist/stage/chunks/setName-QKDRLH7I.js +0 -1
  486. package/dist/stage/chunks/setNodeLayout-O53CNHES.js +0 -1
  487. package/dist/stage/chunks/setOptionsExpression-4NFPAI24.js +0 -1
  488. package/dist/stage/chunks/setRender-XQJWRRYD.js +0 -1
  489. package/dist/stage/chunks/setRepeat-PAW7YMSY.js +0 -1
  490. package/dist/stage/chunks/setTagName-Y7O7I6SO.js +0 -1
  491. package/dist/stage/chunks/updateAction-XSXILF2R.js +0 -1
  492. package/dist/stage/chunks/updateAnimationBinding-LQTVD3O6.js +0 -1
  493. package/dist/stage/chunks/updateAttribute-5MWAVQAV.js +0 -1
  494. package/dist/stage/chunks/updateBounds-3L2AJ72O.js +0 -1
  495. package/dist/stage/chunks/updateComputed-UALAJ4RF.js +0 -1
  496. package/dist/stage/chunks/updateEvent-NXMQSGDQ.js +0 -1
  497. package/dist/stage/chunks/updateHtml-AEMCHPUQ.js +0 -1
  498. package/dist/stage/chunks/updateLifecycleHook-6MCUOVJH.js +0 -1
  499. package/dist/stage/chunks/updateOption-JCNXPYXP.js +0 -1
  500. package/dist/stage/chunks/updateRoute-CI3GOLVJ.js +0 -1
  501. package/dist/stage/chunks/updateState-QJID3WQV.js +0 -1
  502. package/dist/stage/chunks/updateStyle-FR7K7R73.js +0 -1
  503. package/dist/stage/chunks/updateToken-JX6R3YU7.js +0 -1
  504. package/dist/stage/chunks/updateValue-2B5ZNGZI.js +0 -1
  505. package/dist/stage/chunks/window-RFC7WGLM.js +0 -1
  506. package/dist/stage-bundles/preact/chunks/addComponent-Y2AQ2FGZ.js +0 -1
  507. package/dist/stage-bundles/preact/chunks/addNode-2E5QNYOA.js +0 -1
  508. package/dist/stage-bundles/preact/chunks/aiRelay-WDZAC42R.js +0 -1
  509. package/dist/stage-bundles/preact/chunks/assets-NU56BTDG.js +0 -1
  510. package/dist/stage-bundles/preact/chunks/capture-XBPXL4U7.js +0 -1
  511. package/dist/stage-bundles/preact/chunks/chunk-2BGFXNGU.js +0 -1
  512. package/dist/stage-bundles/preact/chunks/chunk-34CHXN5I.js +0 -1
  513. package/dist/stage-bundles/preact/chunks/chunk-67H474GN.js +0 -1
  514. package/dist/stage-bundles/preact/chunks/chunk-ACPGC7BJ.js +0 -1
  515. package/dist/stage-bundles/preact/chunks/chunk-E4RDZ324.js +0 -1
  516. package/dist/stage-bundles/preact/chunks/chunk-FCRFPWU3.js +0 -97
  517. package/dist/stage-bundles/preact/chunks/chunk-JHWED3SX.js +0 -1
  518. package/dist/stage-bundles/preact/chunks/chunk-JRXMDYLE.js +0 -1
  519. package/dist/stage-bundles/preact/chunks/chunk-KISNK4R4.js +0 -1
  520. package/dist/stage-bundles/preact/chunks/chunk-LEELNBJC.js +0 -1
  521. package/dist/stage-bundles/preact/chunks/chunk-LHON3DKO.js +0 -1
  522. package/dist/stage-bundles/preact/chunks/chunk-PYIGBTL4.js +0 -6
  523. package/dist/stage-bundles/preact/chunks/chunk-QKFDVU2Q.js +0 -1
  524. package/dist/stage-bundles/preact/chunks/chunk-UQFZUWFP.js +0 -1
  525. package/dist/stage-bundles/preact/chunks/contentEditor-6WQFOUKV.js +0 -1
  526. package/dist/stage-bundles/preact/chunks/design-QOLOMJCH.js +0 -15
  527. package/dist/stage-bundles/preact/chunks/main-K2WJEG5C.js +0 -1
  528. package/dist/stage-bundles/preact/chunks/main-ZXFODV6O.js +0 -1
  529. package/dist/stage-bundles/preact/chunks/moveNodeToLastChildOf-OZ6F2NPU.js +0 -1
  530. package/dist/stage-bundles/preact/chunks/normalizeLayoutContext-WRK6FVHM.js +0 -1
  531. package/dist/stage-bundles/preact/chunks/preact-NBJKI6EE.js +0 -1
  532. package/dist/stage-bundles/preact/chunks/preview-AFX7D63A.js +0 -1
  533. package/dist/stage-bundles/preact/chunks/setNodeLayout-QNVAVAMX.js +0 -1
  534. package/dist/stage-bundles/preact/chunks/window-TFWZNZUJ.js +0 -1
  535. package/dist/stage-bundles/react/chunks/addAnimationBinding-7TFETALG.js +0 -1
  536. package/dist/stage-bundles/react/chunks/addComponent-P7BXPI75.js +0 -1
  537. package/dist/stage-bundles/react/chunks/addNode-4MPFG7L5.js +0 -1
  538. package/dist/stage-bundles/react/chunks/addParamToRoute-VX2GDCCP.js +0 -1
  539. package/dist/stage-bundles/react/chunks/addStore-F3E5UJ5H.js +0 -1
  540. package/dist/stage-bundles/react/chunks/aiRelay-3CLWLKMV.js +0 -1
  541. package/dist/stage-bundles/react/chunks/assets-UN6U4NZV.js +0 -1
  542. package/dist/stage-bundles/react/chunks/capture-5GIKSRCZ.js +0 -1
  543. package/dist/stage-bundles/react/chunks/chunk-2BGFXNGU.js +0 -1
  544. package/dist/stage-bundles/react/chunks/chunk-32U4X4HZ.js +0 -6
  545. package/dist/stage-bundles/react/chunks/chunk-34CHXN5I.js +0 -1
  546. package/dist/stage-bundles/react/chunks/chunk-5OEIZ3PD.js +0 -1
  547. package/dist/stage-bundles/react/chunks/chunk-ADVOIRI5.js +0 -43
  548. package/dist/stage-bundles/react/chunks/chunk-ATUQUJRM.js +0 -1
  549. package/dist/stage-bundles/react/chunks/chunk-BXIWQYSY.js +0 -1
  550. package/dist/stage-bundles/react/chunks/chunk-GYBL4LBC.js +0 -1
  551. package/dist/stage-bundles/react/chunks/chunk-HLPDOSGP.js +0 -1
  552. package/dist/stage-bundles/react/chunks/chunk-KISNK4R4.js +0 -1
  553. package/dist/stage-bundles/react/chunks/chunk-NDUX5RLD.js +0 -1
  554. package/dist/stage-bundles/react/chunks/chunk-PSQ4TIJA.js +0 -1
  555. package/dist/stage-bundles/react/chunks/chunk-QKFDVU2Q.js +0 -1
  556. package/dist/stage-bundles/react/chunks/chunk-UQFZUWFP.js +0 -1
  557. package/dist/stage-bundles/react/chunks/clearDestination-ESJ4RTEB.js +0 -1
  558. package/dist/stage-bundles/react/chunks/clearName-XLFUSVVX.js +0 -1
  559. package/dist/stage-bundles/react/chunks/clearOptionsExpression-T5UZGD3M.js +0 -1
  560. package/dist/stage-bundles/react/chunks/clearRender-QOV6MKSA.js +0 -1
  561. package/dist/stage-bundles/react/chunks/clearRepeat-KGDHK6I5.js +0 -1
  562. package/dist/stage-bundles/react/chunks/contentEditor-VQUII3R3.js +0 -1
  563. package/dist/stage-bundles/react/chunks/createAnimation-5GYHDNS4.js +0 -1
  564. package/dist/stage-bundles/react/chunks/createValue-Q2VRKXEI.js +0 -1
  565. package/dist/stage-bundles/react/chunks/design-Z6J5JRDV.js +0 -15
  566. package/dist/stage-bundles/react/chunks/main-OAJ3EVVU.js +0 -1
  567. package/dist/stage-bundles/react/chunks/main-WER4YJAR.js +0 -1
  568. package/dist/stage-bundles/react/chunks/moveNodeToLastChildOf-DQR5GURK.js +0 -1
  569. package/dist/stage-bundles/react/chunks/normalizeLayoutContext-34DZRL3Q.js +0 -1
  570. package/dist/stage-bundles/react/chunks/preview-5V5GS6PZ.js +0 -1
  571. package/dist/stage-bundles/react/chunks/react-YDAQ4KLN.js +0 -1
  572. package/dist/stage-bundles/react/chunks/removeAction-7V4VV5SS.js +0 -1
  573. package/dist/stage-bundles/react/chunks/removeAnimationBinding-26LUMVXH.js +0 -1
  574. package/dist/stage-bundles/react/chunks/removeAttribute-AZK5TQQM.js +0 -1
  575. package/dist/stage-bundles/react/chunks/removeComputed-HIYYBG3M.js +0 -1
  576. package/dist/stage-bundles/react/chunks/removeEvent-A7AUWPIF.js +0 -1
  577. package/dist/stage-bundles/react/chunks/removeLifecycleHook-Z5ZHFYSE.js +0 -1
  578. package/dist/stage-bundles/react/chunks/removeOption-7JZTAHTB.js +0 -1
  579. package/dist/stage-bundles/react/chunks/removeParamFromRoute-JBZOXNDA.js +0 -1
  580. package/dist/stage-bundles/react/chunks/removeState-RIXJ6YEL.js +0 -1
  581. package/dist/stage-bundles/react/chunks/removeStore-PKBJRCYZ.js +0 -1
  582. package/dist/stage-bundles/react/chunks/removeToken-WRU2GN7O.js +0 -1
  583. package/dist/stage-bundles/react/chunks/removeValue-KRNKQVF5.js +0 -1
  584. package/dist/stage-bundles/react/chunks/setDestination-DUGBRV24.js +0 -1
  585. package/dist/stage-bundles/react/chunks/setHomePage-GJLGWZHJ.js +0 -1
  586. package/dist/stage-bundles/react/chunks/setHtmlId-F5SPBYD7.js +0 -1
  587. package/dist/stage-bundles/react/chunks/setName-DAQAN7JR.js +0 -1
  588. package/dist/stage-bundles/react/chunks/setNodeLayout-X4PQKKZT.js +0 -1
  589. package/dist/stage-bundles/react/chunks/setTagName-42MJSWMZ.js +0 -1
  590. package/dist/stage-bundles/react/chunks/updateAnimationBinding-QETT3JF2.js +0 -1
  591. package/dist/stage-bundles/react/chunks/updateBounds-HOTYUCG4.js +0 -1
  592. package/dist/stage-bundles/react/chunks/updateHtml-VQAIKLEG.js +0 -1
  593. package/dist/stage-bundles/react/chunks/updateRoute-FPAKZBCT.js +0 -1
  594. package/dist/stage-bundles/react/chunks/updateStyle-M7YKN6C4.js +0 -1
  595. package/dist/stage-bundles/react/chunks/updateToken-LOI6M4XH.js +0 -1
  596. package/dist/stage-bundles/react/chunks/viewport-7ICM5NZY.js +0 -1
  597. package/dist/stage-bundles/react/chunks/window-SG66BA4O.js +0 -1
  598. package/dist/stage-bundles/vue/chunks/addComponent-Y2AQ2FGZ.js +0 -1
  599. package/dist/stage-bundles/vue/chunks/addNode-5OXCF22G.js +0 -1
  600. package/dist/stage-bundles/vue/chunks/aiRelay-WDZAC42R.js +0 -1
  601. package/dist/stage-bundles/vue/chunks/assets-NU56BTDG.js +0 -1
  602. package/dist/stage-bundles/vue/chunks/capture-UZVRGVM7.js +0 -1
  603. package/dist/stage-bundles/vue/chunks/chunk-7CCYKDAJ.js +0 -97
  604. package/dist/stage-bundles/vue/chunks/chunk-ACPGC7BJ.js +0 -1
  605. package/dist/stage-bundles/vue/chunks/chunk-FYWE2MO5.js +0 -1
  606. package/dist/stage-bundles/vue/chunks/chunk-ILXSVZXQ.js +0 -1
  607. package/dist/stage-bundles/vue/chunks/chunk-IZT2KVTW.js +0 -1
  608. package/dist/stage-bundles/vue/chunks/chunk-JRXMDYLE.js +0 -1
  609. package/dist/stage-bundles/vue/chunks/chunk-PYIGBTL4.js +0 -6
  610. package/dist/stage-bundles/vue/chunks/chunk-QKFDVU2Q.js +0 -1
  611. package/dist/stage-bundles/vue/chunks/chunk-RMSX6LWP.js +0 -1
  612. package/dist/stage-bundles/vue/chunks/chunk-TSL6VG3R.js +0 -1
  613. package/dist/stage-bundles/vue/chunks/chunk-TTTOAB6J.js +0 -1
  614. package/dist/stage-bundles/vue/chunks/chunk-UDTKG2KI.js +0 -1
  615. package/dist/stage-bundles/vue/chunks/chunk-UIC3GAEE.js +0 -1
  616. package/dist/stage-bundles/vue/chunks/contentEditor-EUDU6PBV.js +0 -1
  617. package/dist/stage-bundles/vue/chunks/design-LU5XWCLC.js +0 -15
  618. package/dist/stage-bundles/vue/chunks/main-R652XLC3.js +0 -1
  619. package/dist/stage-bundles/vue/chunks/main-X6SC5JYU.js +0 -1
  620. package/dist/stage-bundles/vue/chunks/moveNodeToLastChildOf-H4TZ5UMP.js +0 -1
  621. package/dist/stage-bundles/vue/chunks/normalizeLayoutContext-KGEMYC4Y.js +0 -1
  622. package/dist/stage-bundles/vue/chunks/preview-52FXOKBF.js +0 -1
  623. package/dist/stage-bundles/vue/chunks/setNodeLayout-GY4G7UZR.js +0 -1
  624. package/dist/stage-bundles/vue/chunks/vue-62USAR6D.js +0 -1
  625. package/dist/stage-bundles/vue/chunks/window-TFWZNZUJ.js +0 -1
  626. package/dist/stage-src/preview/routes/js.js +0 -100
  627. package/dist/stage-src/preview/routes/preview.js +0 -21
  628. package/dist/stage-src/preview/server.js +0 -99
  629. package/dist/stage-src/preview/views/index.js +0 -18
@@ -1 +0,0 @@
1
- import{a as e}from"./chunk-LR6DSVPP.js";import{a as h,b as p}from"./chunk-BVAPODQ7.js";import{f as E}from"./chunk-4XNQRZ5E.js";import{a,c}from"./chunk-K7MC6G4X.js";var A={__version:1,type:"node",render:{name:null,mode:"value",value:!0,binding:null,computed:null,code:null,error:null},name:null,layout:"none",draggable:!0,resizable:!0,selectable:!0,locked:[],anchor:[],dimensions:[],expandedStyles:[],childrenType:null,repeat:null,contextName:null,attributes:[],events:[],className:[],states:[],lifecycle:[],animations:[],style:{}};var F={type:"element",ex:"node",style:{default:{}}};var P={type:"container",ex:"node",childrenType:"*",bounds:{width:0,height:0,x:0,y:0},breakpoints:[{name:"Mobile",type:"mobile",min:320,editable:!1},{name:"Tablet",type:"mobile",min:768,editable:!1},{name:"Desktop",type:"desktop",min:1280,editable:!1}]};var f={};c(f,{article:()=>G,aside:()=>W,div:()=>R,footer:()=>z,form:()=>J,header:()=>_,layout:()=>q,main:()=>U,nav:()=>$,section:()=>Y,template:()=>Q});var q={ex:"element",anchor:["top","left"],dimensions:["width","height"],childrenType:"*",children:[]},R={ex:"layout",tagName:"div"},Y={ex:"layout",tagName:"section"},_={ex:"layout",tagName:"header"},z={ex:"layout",tagName:"footer"},G={ex:"layout",tagName:"article"},U={ex:"layout",tagName:"main"},W={ex:"layout",tagName:"aside"},$={ex:"layout",tagName:"nav"},J={ex:"layout",tagName:"form"},Q={ex:"layout",tagName:"template",html:"<div>HTML template</div>",style:{default:{width:"250px",height:"100px"}}};var g={};c(g,{blockquote:()=>ce,br:()=>ge,codeElement:()=>me,em:()=>xe,h1:()=>Z,h2:()=>ee,h3:()=>te,h4:()=>ne,h5:()=>oe,h6:()=>ae,heading:()=>X,hr:()=>fe,label:()=>le,mark:()=>he,p:()=>ie,paragraph:()=>re,pre:()=>pe,small:()=>ue,span:()=>se,strong:()=>de,text:()=>V});var V={ex:"element",anchor:["top","left"],dimensions:["width"],childrenType:"text",textContent:e({value:""})},X={ex:"text",textContent:e({value:""}),style:{default:{margin:"0"}}},Z={ex:"heading",tagName:"h1",textContent:e({value:"Heading 1"})},ee={ex:"heading",tagName:"h2",textContent:e({value:"Heading 2"})},te={ex:"heading",tagName:"h3",textContent:e({value:"Heading 3"})},ne={ex:"heading",tagName:"h4",textContent:e({value:"Heading 4"})},oe={ex:"heading",tagName:"h5",textContent:e({value:"Heading 5"})},ae={ex:"heading",tagName:"h6",textContent:e({value:"Heading 6"})},re={ex:"text",textContent:e({value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}),style:{default:{margin:"0"}}},ie={ex:"paragraph",tagName:"p"},se={ex:"text",tagName:"span",textContent:e({value:"Lorem ipsum"})},le={ex:"text",tagName:"label",textContent:e({value:"Label text"})},ce={ex:"text",tagName:"blockquote",textContent:e({value:"Blockquote text"})},pe={ex:"text",tagName:"pre",textContent:e({value:"Preformatted text"})},me={ex:"text",tagName:"code",textContent:e({value:"code"})},de={ex:"text",tagName:"strong",textContent:e({value:"Bold text"})},xe={ex:"text",tagName:"em",textContent:e({value:"Emphasized text"})},ue={ex:"text",tagName:"small",textContent:e({value:"Small text"})},he={ex:"text",tagName:"mark",textContent:e({value:"Highlighted text"})},fe={ex:"element",tagName:"hr",anchor:["top","left"],dimensions:["width"],childrenType:"none"},ge={ex:"element",tagName:"br",anchor:["top","left"],dimensions:["width"],childrenType:"none"};var y={};c(y,{a:()=>ve,button:()=>be,details:()=>Ne,dialog:()=>we,interactive:()=>ye,summary:()=>Te});var ye={ex:"element",interactive:!0,childrenType:"text",anchor:["top","left"],style:{default:{width:"auto",height:"auto",cursor:"pointer"}}},be={ex:"interactive",tagName:"button",dimensions:["width","height"],textContent:e({value:"Button text"}),style:{default:{"background-color":"#e9e9e9",border:"1px solid #d5d5d5","border-radius":"4px",padding:"6px 12px",width:"120px",height:"auto"}}},ve={ex:"interactive",tagName:"a",textContent:e({value:"Link text"}),destination:{type:"page",id:null,path:null,target:null,replace:!1,params:null,query:null}},Ne={ex:"interactive",tagName:"details",childrenType:"*",dimensions:["width","height"],style:{default:{cursor:"default"}}},Te={ex:"interactive",tagName:"summary",textContent:e({value:"Summary text"})},we={ex:"interactive",tagName:"dialog",childrenType:"*",dimensions:["width","height"],style:{default:{cursor:"default",width:"300px",height:"200px"}}};var v={};c(v,{checkbox:()=>Ie,color:()=>He,date:()=>Be,email:()=>Se,file:()=>Ke,hidden:()=>Le,input:()=>ke,number:()=>Ae,password:()=>Ee,phone:()=>Pe,radio:()=>je,range:()=>De,search:()=>Fe,select:()=>Me,textInput:()=>Oe,textarea:()=>qe});var r=a(t=>p({name:"type",mode:"value",value:t,removable:!1}),"type"),Ce=a(()=>p({name:"value",mode:"value",value:"",removable:!1}),"value"),i=a(()=>p({name:"model",mode:"binding",binding:null,removable:!0}),"model"),l=a(()=>p({name:"onInput",mode:"code",code:h,removable:!1}),"onInput"),b=a(()=>p({name:"onChange",mode:"code",code:h,removable:!1}),"onChange"),ke={ex:"element",tagName:"input",anchor:["top","left"],dimensions:["width"],childrenType:"none",style:{default:{width:"auto",height:"auto"}}},Oe={ex:"input",attributes:[r("text"),i()],events:[l()]},Se={ex:"input",attributes:[r("email"),i()],events:[l()]},Ee={ex:"input",attributes:[r("password"),i()],events:[l()]},Ae={ex:"input",attributes:[r("number"),i()],events:[l()]},Fe={ex:"input",attributes:[r("search"),i()],events:[l()]},Pe={ex:"input",attributes:[r("tel"),i()],events:[l()]},De={ex:"input",attributes:[r("range"),i()],events:[l()]},He={ex:"input",attributes:[r("color"),i()],events:[l()]},Be={ex:"input",attributes:[r("date"),i()],events:[l()]},Ie={ex:"input",attributes:[r("checkbox"),i()],events:[b()]},je={ex:"input",attributes:[r("radio"),i()],events:[b()]},Ke={ex:"input",attributes:[r("file")]},Le={ex:"input",attributes:[r("hidden"),Ce()]},Me={ex:"input",tagName:"select",childrenType:"options",attributes:[i()],events:[b()]},qe={ex:"input",tagName:"textarea",childrenType:"text",dimensions:["width","height"],attributes:[i()],events:[l()]};var N={};c(N,{audio:()=>_e,figcaption:()=>Ue,figure:()=>Ge,iframe:()=>We,img:()=>Ye,media:()=>Re,video:()=>ze});var D=p({name:"controls",mode:"value",value:!0,removable:!1}),Re={ex:"element",anchor:["top","left"],dimensions:["width","height"],style:{default:{display:"block",width:"auto",height:"auto","object-fit":"contain"}}},Ye={ex:"media",tagName:"img",childrenType:"none"},_e={ex:"media",tagName:"audio",childrenType:"none",dimensions:["width"],attributes:[D],style:{default:{width:"320px"}}},ze={ex:"media",tagName:"video",childrenType:"*",attributes:[D],style:{default:{width:"320px",height:"240px"}}},Ge={ex:"media",tagName:"figure",childrenType:"*",dimensions:["width","height"],style:{default:{width:"auto",height:"auto",margin:"0"}}},Ue={ex:"media",tagName:"figcaption",childrenType:"text"},We={ex:"media",tagName:"iframe",childrenType:"none",dimensions:["width","height"]};var T={};c(T,{dd:()=>Ze,dl:()=>Ve,dt:()=>Xe,li:()=>Qe,ol:()=>$e,ul:()=>Je});var $e={ex:"element",tagName:"ol",anchor:["top","left"],dimensions:["width"],childrenType:["li"],children:[]},Je={ex:"element",tagName:"ul",anchor:["top","left"],dimensions:["width"],childrenType:["li"],children:[]},Qe={ex:"element",tagName:"li",anchor:["top","left"],dimensions:["width"],childrenType:"*"},Ve={ex:"element",tagName:"dl",anchor:["top","left"],dimensions:["width"],childrenType:["dt","dd"],children:[]},Xe={ex:"element",tagName:"dt",anchor:["top","left"],dimensions:["width"],childrenType:"text"},Ze={ex:"element",tagName:"dd",anchor:["top","left"],dimensions:["width"],childrenType:"text"};var w={};c(w,{table:()=>et,tbody:()=>nt,td:()=>it,tfoot:()=>ot,th:()=>rt,thead:()=>tt,tr:()=>at});var et={ex:"element",tagName:"table",anchor:["top","left"],dimensions:["width"],childrenType:["thead","tbody","tfoot","tr"],children:[]},tt={ex:"element",tagName:"thead",childrenType:["tr"],children:[]},nt={ex:"element",tagName:"tbody",childrenType:["tr"],children:[]},ot={ex:"element",tagName:"tfoot",childrenType:["tr"],children:[]},at={ex:"element",tagName:"tr",childrenType:["td","th"],children:[]},rt={ex:"element",tagName:"th",childrenType:"*"},it={ex:"element",tagName:"td",childrenType:"*"};var C={};c(C,{fieldset:()=>st,legend:()=>lt,meter:()=>ct,progress:()=>pt});var st={ex:"element",tagName:"fieldset",anchor:["top","left"],dimensions:["width","height"],childrenType:"children",style:{default:{border:"1px solid #cccccc",padding:"16px"}}},lt={ex:"element",tagName:"legend",childrenType:"text"},ct={ex:"element",tagName:"meter",childrenType:"none"},pt={ex:"element",tagName:"progress",childrenType:"none"};var k={};c(k,{slot:()=>mt});var mt={type:"slot",ex:"element",tagName:"slot",anchor:["top","left"],dimensions:["width","height"],childrenType:"*"};var H={type:"frame",ex:"container",tagName:"div",bounds:{top:0,left:0,width:360,height:740,x:void 0,y:void 0},style:{default:{background:"white"}},children:[],route:{path:null}};var B={type:"instance",ex:"node",component:null,library:null,props:[],childrenType:"component"};var I={type:"code",ex:"node",body:"",language:"js",params:[],returns:null};var j={type:"animation",ex:"node",scope:"node",name:null,duration:300,easing:"ease",fill:"none",direction:"normal",iterations:1,delay:0,endDelay:0,iterationStart:0,composite:"replace",keyframes:[]};var K={type:"component",ex:"container",name:"",library:"local",props:[],emits:[],data:[],children:[]};var L={type:"graphic",ex:"node",tagName:"div",props:{},template:[],style:{default:{margin:"0",width:"100px",height:"100px"}}};function u(t){let s=[],n=t;for(;n&&x[n];)s.push(n),n=x[n].ex;return s}a(u,"chainOf");function O(t){return!!x[t]}a(O,"isKnownType");var dt=new Set(["element","container","frame","instance","component","slot","animation","graphic","code","node"]);function S(t){let s=t?.ex??t?.type;for(let n of u(s))if(dt.has(n))return n;return null}a(S,"categoryOf");function xt(t,s){let n=new Map(t.map(o=>[o.name,o]));for(let o of s)n.set(o.name,o);return Array.from(n.values())}a(xt,"mergeByName");function M(t,s){let n=u(t).reverse(),o=[];for(let m of n){let d=x[m];d?.[s]&&(o=xt(o,d[s]))}return o}a(M,"resolveDescriptors");function ut(t,s={}){if(!O(t))throw new Error(`createNode: unknown prototype "${t}". Did you mean to register it first?`);let n=S({type:t}),o=n===t?{type:t,...s}:{type:n,ex:t,...s};if(!o.attributes){let m=M(t,"attributes");m.length&&(o.attributes=m.map(d=>({...d})))}if(!o.events){let m=M(t,"events");m.length&&(o.events=m.map(d=>({...d})))}return[E(),o]}a(ut,"createNode");var x={node:A,element:F,container:P,...f,...g,...y,...v,...N,...T,...w,...C,...k,frame:H,instance:B,code:I,animation:j,component:K,graphic:L};export{x as a,ut as b};
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk-FTRUORC5.js";import{a as e}from"./chunk-K7MC6G4X.js";function v(r,n,o,p){return r.setWhere([n,"events"],{name:o},t(p))}e(v,"updateEvent");export{v as a};
@@ -1 +0,0 @@
1
- import{h as e}from"./chunk-4XNQRZ5E.js";import{a as t}from"./chunk-K7MC6G4X.js";var n=t(()=>({$value:null,$type:"color",$path:null}),"tokenDefaults");function f(r,l={}){let o=e();return r.set([o],{...n(),...l}),o}t(f,"addToken");export{n as a,f as b};
@@ -1 +0,0 @@
1
- import{d as g}from"./chunk-YZBMJY7E.js";import{b as c}from"./chunk-MXIF2FGR.js";import{a as i}from"./chunk-K7MC6G4X.js";var u=[{key:"iPhone 15",category:"phone",width:393,height:852},{key:"iPhone SE",category:"phone",width:375,height:667},{key:"Pixel 8",category:"phone",width:412,height:915},{key:"Galaxy S24",category:"phone",width:360,height:780},{key:"iPad Air",category:"tablet",width:820,height:1180},{key:"iPad Mini",category:"tablet",width:768,height:1024},{key:"Surface Pro",category:"tablet",width:912,height:1368},{key:"Desktop",category:"desktop",width:1280,height:800},{key:"Desktop Large",category:"desktop",width:1920,height:1080},{key:"custom",category:"custom",width:null,height:null}];function l(e){return u.find(t=>t.key===e)??null}i(l,"getFramePreset");function k(){return u.map(e=>e.key)}i(k,"getAvailableFrames");var m={width:360,height:740,x:0,y:0};function s(e,t={}){if(e==="custom")return{name:t.name||"Custom",bounds:{width:t.width??m.width,height:t.height??m.height,x:0,y:0}};let r=l(e);if(!r)throw new Error(`Unknown frame preset "${e}". Available: ${k().join(", ")}`);return{name:e,bounds:{width:r.width,height:r.height,x:0,y:0}}}i(s,"createFrameOverrides");function x(e={}){let t=e.frame??e.viewport;if(!t)return e;let{frame:r,viewport:h,width:o,height:n,name:w,bounds:a,...f}=e,{name:p,bounds:d}=s(t,{name:w,width:o,height:n});return{...f,frame:t,name:p,bounds:{x:a?.x??d.x??0,y:a?.y??d.y??0,width:a?.width??d.width,height:a?.height??d.height}}}i(x,"buildFrameNodeProps");function y(e,t,r={}){let h=t==="frame"?x(r):r,[o,n]=c(t,h);return t==="frame"&&(n.route={path:`${o}`}),e.set([o],n),o}i(y,"createNodeEntry");function A(e,t,r,h="app"){let o=y(e,t,r);return g(e,o,h),o}i(A,"addNode");export{u as a,l as b,k as c,s as d,y as e,A as f};
@@ -1 +0,0 @@
1
- import{b as n}from"./chunk-BVAPODQ7.js";import{a as e}from"./chunk-K7MC6G4X.js";function o({mode:r,...t}={}){return n({mode:r??"value",...t})}e(o,"createRender");function u(r,t,c={}){return r.set([t,"render"],o(c))}e(u,"setRender");export{o as a,u as b};
@@ -1 +0,0 @@
1
- import{a as e}from"./chunk-L4CU73MS.js";import{a as t}from"./chunk-K7MC6G4X.js";function s(r,a,o,n){return r.setWhere([a,"states"],{name:o},e(n))}t(s,"updateState");export{s as a};
@@ -1 +0,0 @@
1
- import{a,b as c}from"./chunk-VQ7C6EUZ.js";import{a as n}from"./chunk-K7MC6G4X.js";function s(r,o,t={}){let e=a(typeof t=="string"?{name:t}:t);return e.name&&c(r,o,e.name),r.unshift([o,"attributes"],e)}n(s,"addAttribute");export{s as a};
@@ -1 +0,0 @@
1
- import{a as m}from"./chunk-ZEWKYCOX.js";import{b as y}from"./chunk-GG4NWMR6.js";import{a as r}from"./chunk-K7MC6G4X.js";function h(t,o){let e=t.get([o,"layout"]);if(e&&e!=="none")return e;let n=t.get([o,"style","default","display"]);return n==="flex"||n==="grid"?n:"none"}r(h,"getLayoutContext");function u(t,o,e){let n=t.get([o,"style"]);if(!(!n||!e.length))for(let i in n){let s=n[i];if(!(!s||typeof s!="object")){for(let f of e)f in s&&t.remove([o,"style",i,f]);for(let f in s){if(!f.startsWith(":")&&!f.startsWith("&."))continue;let c=s[f];if(!(!c||typeof c!="object"))for(let l of e)l in c&&t.remove([o,"style",i,f,l])}}}}r(u,"stripStyleProperties");var k=["top","left","right","bottom"];function b(t,o){u(t,o,k)}r(b,"stripPositionalStyles");function a(){return{layout:"none",draggable:!0,resizable:!0,selectable:!0,locked:[],anchor:[],dimensions:[],expandedStyles:[],childrenType:"children"}}r(a,"defaultNodeBehavior");function g(t,o){return t?o?t.filter(e=>!o.includes(e)):t:[]}r(g,"arrayDiff");function x(t,o,e){let n=t.get([o,"anchor"]),i=g(n,e);return i.length&&u(t,o,i),t.set([o,"anchor"],e),!0}r(x,"updateAnchor");function d(t,o){return t.remove([o,".position"])}r(d,"clearPosition");function p(t,o,e,n){if(!e||typeof e!="object")return;let i=Object.keys(e).sort();for(let s of i){let f=e[s];switch(s){case"style":{let c=e?.anchor;y(t,o,f,{breakpoint:n,anchor:c}),d(t,o);break}case"bounds":m(t,o,f);break;case"anchor":x(t,o,f);break;default:t.set([o,s],f);break}}}r(p,"applyNodePatch");function I(t,o,e={}){let n={...a(),...e};for(let i of Object.keys(n))t.set([o,i],n[i])}r(I,"setNodeBehavior");function J(t,o){let e=a();for(let n of Object.keys(e))t.set([o,n],e[n]);t.set([o,"hidden"],void 0),t.set([o,"isComponentRoot"],void 0)}r(J,"resetNodeBehavior");function Z(t,o,e){if(h(t,e)!=="none"){b(t,o),p(t,o,{anchor:[],dimensions:[]});return}let i=t.get([o,"anchor"]);(!i||!i.length)&&p(t,o,{anchor:["top","left"],dimensions:["width","height"]})}r(Z,"normalizeLayoutContext");export{d as a,p as b,I as c,J as d,Z as e};
@@ -1 +0,0 @@
1
- import{a as e}from"./chunk-K7MC6G4X.js";function a(t,n,r){return t.set([n,"name"],r)}e(a,"setName");export{a};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-4Y2YKFNP.js";import{a as n}from"./chunk-K7MC6G4X.js";function i(o,m){return o.update([m,"actions"],(e=[])=>{let t=`action${e.length+1}`;return e.some(u=>u.name===t)||e.unshift(r({name:t})),e})}n(i,"addAction");export{i as a};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-5SOTDESD.js";import{a as s}from"./chunk-LR6DSVPP.js";import{a as l}from"./chunk-K7MC6G4X.js";function m(c,i,e){if(o(c,i))return;let r="",f;return typeof e=="string"?r=e:e!=null&&typeof e=="object"&&(r=e.value??"",Object.prototype.hasOwnProperty.call(e,"specificPatterns")&&(f=e.specificPatterns)),c.set([i,"textContent"],s({value:r,specificPatterns:f}))}l(m,"setTextContent");export{m as a};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-5OOKGI32.js";import{a as e}from"./chunk-K7MC6G4X.js";function m({name:t,code:o=r()}){return{name:t,code:o}}e(m,"createComputed");export{m as a};
@@ -1 +0,0 @@
1
- import{a as p}from"./chunk-5SOTDESD.js";import{a as m}from"./chunk-2YZN7IFG.js";import{e as c}from"./chunk-TIIQLNVN.js";import{a as i}from"./chunk-K7MC6G4X.js";function l(o,n){return o.has([n])?o.get(["app","children"])?.includes(n)?"root":o.get(["temp","children"])?.includes(n)?"temp":o.get(["components","children"])?.includes(n)?"components":"nested":null}i(l,"getNodeLevel");function s(o,n,r,e){let t=o.get([n]);if(!t||!t.bounds)return!0;if(e==="instance")return!1;let f=t.type==="component";if(e==="root"||e==="temp")return!f;if(e==="after"||e==="before"){let u=l(o,r);return f?u==="components":u==="root"||u==="temp"}return e==="firstChildOf"||e==="lastChildOf"?f?r==="components":r==="app"||r==="temp":!1}i(s,"canMoveFrame");function x(o,n){return o.update(["app","children"],(r=[])=>r.indexOf(n)===-1?[...r,n]:r),c(o,n,"app"),!0}i(x,"moveNodeToRoot");function F(o,n,r){if(!m(o,r)||!m(o,n))return;let e=o.get([n,"ex"])??o.get([n,"type"]);if(p(o,r,e)){if(!s(o,n,r,"lastChildOf")){x(o,n);return}return o.update([r,"children"],(t=[])=>{let f=t.indexOf(n);if(f!==-1){let u=[...t];return u.splice(f,1),[...u,n]}return[...t,n]}),c(o,n,r),!0}}i(F,"moveNodeToLastChildOf");export{l as a,s as b,x as c,F as d};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-PU3DZ3MV.js";import"./chunk-K7MC6G4X.js";export{a as clearDestination};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-IEXI4PPB.js";import"./chunk-K7MC6G4X.js";export{a as clearName};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-V4F2T2VR.js";import"./chunk-K7MC6G4X.js";export{a as clearOptionsExpression};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-GURTWV7H.js";import"./chunk-K7MC6G4X.js";export{a as clearRender};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-G37FCH35.js";import"./chunk-K7MC6G4X.js";export{a as clearRepeat};
@@ -1 +0,0 @@
1
- import{a as s}from"./chunk-YMUEID4R.js";import"./chunk-5SOTDESD.js";import"./chunk-LR6DSVPP.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";import{defineContracts as E}from"@jucie.io/engine-message";var S=E("contentEditor",l=>{let[p,o,d,i]=l("cache","channel","contentEditor","state"),c=i.ref(["nodes"]),t=null;if(!c)throw new Error("Nodes not found");return{start:{schema:["String","String"],namespace:"stage",handler:(n,a)=>{try{let e=document.querySelector(`[data-rid="${n}"]`);if(!e)throw new Error(`ContentEditor.start: $el not found for rid ${n}`);t=d.create(e,{onInput:r=>{s(c,a,{value:r})},onBlur:()=>{o.to("renderWorker").publish("contentEditor:end",n,a),t&&(t.destroy(),t=null)},onWheel:({deltaX:r,deltaY:h,ctrlKey:u,x:f,y:m})=>{o.to("renderWorker").publish("contentEditor:wheel",{deltaX:r,deltaY:h,ctrlKey:u,x:f,y:m})}})}catch(e){return console.error(e),null}}},end:{schema:["String","String"],namespace:"stage",handler:()=>{t&&(t.destroy(),t=null)}}}});export{S as contentEditorContracts};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-4Y2YKFNP.js";import"./chunk-5OOKGI32.js";import"./chunk-K7MC6G4X.js";export{a as createAction};
@@ -1 +0,0 @@
1
- import{b as a}from"./chunk-QG2BGE2O.js";import"./chunk-K7MC6G4X.js";export{a as createAnimation};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-YN5VQBDN.js";import"./chunk-5OOKGI32.js";import"./chunk-K7MC6G4X.js";export{a as createComputed};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-LR6DSVPP.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";export{a as createTextContent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-L7VQYHXR.js";import"./chunk-K7MC6G4X.js";export{a as createValue};
@@ -1,15 +0,0 @@
1
- import{a as an,c as dn}from"./chunk-LOMYBRPE.js";import"./chunk-6EIGTDJQ.js";import"./chunk-X6HJCJ3C.js";import"./chunk-DSKLC3WF.js";import"./chunk-BEYPHEBR.js";import"./chunk-55KIFGBN.js";import"./chunk-YMUEID4R.js";import"./chunk-4Y2YKFNP.js";import"./chunk-KCVDFPJI.js";import"./chunk-AJVQKPCQ.js";import"./chunk-32WBU6VH.js";import"./chunk-OPVVANFS.js";import"./chunk-MLL2ANA6.js";import"./chunk-7L4V7JRT.js";import"./chunk-HI7ALMQD.js";import"./chunk-ZCAGAEP2.js";import"./chunk-SRRJXNKG.js";import"./chunk-L7VQYHXR.js";import"./chunk-YN5VQBDN.js";import"./chunk-5OOKGI32.js";import"./chunk-5GOTVZFC.js";import"./chunk-D6NZE747.js";import"./chunk-LKQDYABR.js";import"./chunk-ARGFDBBK.js";import"./chunk-HBEWYDHO.js";import"./chunk-V4F2T2VR.js";import"./chunk-DCOWKGJI.js";import"./chunk-45CXRNTO.js";import"./chunk-RZ74UWF3.js";import"./chunk-EPBR3BES.js";import"./chunk-45LFQ7GZ.js";import"./chunk-TAMEB64F.js";import"./chunk-OB6WEYNB.js";import"./chunk-VQ7C6EUZ.js";import"./chunk-ODSNVDNS.js";import"./chunk-EO7UBT4B.js";import"./chunk-D3V5OTLH.js";import"./chunk-BS35FNXF.js";import"./chunk-GDGHGTYN.js";import"./chunk-TEUB5MUS.js";import"./chunk-PU3DZ3MV.js";import"./chunk-XKEDVW6X.js";import"./chunk-G37FCH35.js";import"./chunk-QTBRJH2Q.js";import"./chunk-GURTWV7H.js";import"./chunk-H3VC542J.js";import"./chunk-SECM4LZZ.js";import"./chunk-L4CU73MS.js";import"./chunk-U3IV5DRQ.js";import"./chunk-FSECMWCM.js";import"./chunk-4MTM6BM7.js";import"./chunk-OWARHUEW.js";import"./chunk-FTRUORC5.js";import"./chunk-TBDEUSP4.js";import"./chunk-P3WBUN2B.js";import"./chunk-C3DY5XVP.js";import{a as on,c as rn}from"./chunk-PUPSHZWC.js";import"./chunk-YZBMJY7E.js";import"./chunk-5SOTDESD.js";import"./chunk-U2OFNNHI.js";import"./chunk-K6PCHHH7.js";import"./chunk-CVDUFBBG.js";import"./chunk-2YZN7IFG.js";import"./chunk-IERYKQMJ.js";import"./chunk-TIIQLNVN.js";import"./chunk-ZEWKYCOX.js";import"./chunk-IEXI4PPB.js";import{a as pt}from"./chunk-TS6FANUG.js";import{a as nn}from"./chunk-33W74KNB.js";import{a as sn}from"./chunk-MXIF2FGR.js";import"./chunk-LOILFK74.js";import"./chunk-LR6DSVPP.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-GG4NWMR6.js";import{a as p,e as A,f as i,g as m,h,i as f}from"./chunk-K7MC6G4X.js";import{ServiceProvider as xs}from"@jucie.io/engine";var Is=60*60*1e3;import{ServiceProvider as As}from"@jucie.io/engine";import{ServiceProvider as qn}from"@jucie.io/engine";import{createDefinition as Yn}from"@jucie.io/engine";var _=Yn("AI_OPERATIONS",[Object]);function ge(a){let o=a._name,e=a();return{namespace:o,operations:Object.entries(e).map(([t,s])=>({name:t,fullName:`${o}:${t}`,alias:s.alias||null,mcpName:s.mcpName||null,description:s.description||"",schema:s.schema||[],examples:s.examples||[],returns:s.returns||"Object"}))}}p(ge,"extractOperationsMetadata");function Ut(a,o,e){if(!Array.isArray(o)||o.length===0)return!0;let t=o[0];if(typeof t!="object"||Array.isArray(t))return console.warn(`Schema for ${e} should be an object with named parameters`),!0;for(let[s,n]of Object.entries(t)){let r=typeof n=="string"&&n.endsWith("?"),d=r?n.slice(0,-1):n,c=a[s];if(!(s in a)||c===void 0){if(r)continue;throw new Error(`Missing required parameter "${s}" in ${e}`)}let l=Array.isArray(c)?"Array":c===null?"Null":typeof c=="object"?"Object":c.constructor.name;if(l!==d&&d!=="Any")throw new Error(`Parameter "${s}" in ${e} must be of type ${d}, got ${l}`)}return!0}p(Ut,"validateOperationArgs");var Xn={name:"respond",description:"Send a conversational response to the user. Use this for greetings, questions, clarifications, status updates, or when the build task is fully complete.",input_schema:{type:"object",properties:{message:{type:"string",description:"Your conversational response to the user"}},required:["message"]}};function Bt(a){let o=Gn(a);return[Xn,...o.map(Vn)]}p(Bt,"buildAnthropicTools");function Vn(a){let o=a.operations.map(e=>{let t=Array.isArray(e.schema)?e.schema[0]:null,s=t&&typeof t=="object"?Object.entries(t).map(([r,d])=>`${r}: ${d}`).join(", "):"",n=e.examples?.[0]?`
2
- Example: ${JSON.stringify(e.examples[0].args)}`:"";return` ${e.name} \u2014 ${e.description}
3
- Args: { ${s} }${n}`}).join(`
4
-
5
- `);return{name:a.namespace,description:`${a.namespace} operations. Pass "op" as the operation name and "args" matching that op's schema.
6
-
7
- ${o}`,input_schema:{type:"object",properties:{op:{type:"string",description:`Operation name within ${a.namespace}`},args:{type:"object",description:"Arguments matching the operation's schema"},ref:{type:"string",description:"Optional {{name}} reference for cross-operation use"},message:{type:"string",description:"Short explanation of what you are doing (1 sentence)"}},required:["op","args"]}}}p(Vn,"buildNamespaceTool");function Gn(a){return!Array.isArray(a)||a.length===0?[]:a[0]?.namespace&&Array.isArray(a[0]?.operations)?a:a.map(o=>ge(o))}p(Gn,"normalizeNamespaces");var q,ye,K,j,mt,cn,ut,ln,ht=class ht extends qn{constructor(){super(...arguments);m(this,mt);m(this,ut);m(this,q,new Map);m(this,ye,[]);m(this,K,new Map);m(this,j,new Map)}getters(){return{operationsMetadata:()=>this.getOperationsMetadata(),anthropicTools:()=>this.getAnthropicTools()}}actions(){return{use:(...e)=>{for(let t of e)f(this,mt,cn).call(this,t);return this},has:e=>i(this,q).has(e),resolveType:e=>this.resolveType(e),describeUnresolved:e=>this.describeUnresolved(e),executeOperation:(e,t,s)=>this.executeOperation(e,t,s),executeBatch:e=>this.executeBatch(e)}}resolveType(e){return typeof e!="string"||!e?null:e.includes(":")?i(this,q).has(e)?e:null:i(this,K).get(e)??i(this,j).get(e)??null}describeUnresolved(e){if(this.resolveType(e))return null;if(typeof e=="string"&&!e.includes(":")&&i(this,j).has(e)&&i(this,j).get(e)===null){let t=[];for(let[n,r]of i(this,q))r.name===e&&t.push(r.alias?`${n} (alias: ${r.alias})`:n);let s=t.length?t.join(" or "):e;return`Ambiguous operation: "${e}". Use ${s}.`}return`Unknown operation: ${e}`}getOperationsMetadata(){return i(this,ye).map(e=>ge(e))}getAnthropicTools(){return Bt(i(this,ye))}async executeOperation(e,t,s=null){let n=this.resolveType(e),r=i(this,q).get(n);if(!r)throw new Error(this.describeUnresolved(e));try{Ut(t,r.schema,e)}catch(d){throw console.error(`Validation failed for ${e}:`,d),d}try{return{result:await r.handler(t),ref:s}}catch(d){throw console.error(`Handler failed for ${e}:`,d),d}}async executeBatch(e){let{operations:t,description:s,expectation:n}=e;console.log("AiOperations: Executing batch",{count:t.length,description:s});let r=new Map,d=[],c=[];try{for(let l=0;l<t.length;l++){let u=t[l];console.log(`AiOperations: Executing [${l+1}/${t.length}] ${u.type}`);let g=f(this,ut,ln).call(this,u.args,r),{result:b}=await this.executeOperation(u.type,g,u.ref),w=b.id??b.rootId;if(u.ref&&w&&(r.set(u.ref,w),c.push(w)),b.treeMap)for(let[I,T]of Object.entries(b.treeMap))r.set(I,T),c.push(T);b.createdIds?.length&&c.push(...b.createdIds),d.push({operation:u.type,success:!0,result:b})}return console.log("AiOperations: Execution complete",{total:t.length,successful:d.length,createdIds:c}),{success:!0,description:s,expectation:n,results:d,createdIds:c,refMap:Object.fromEntries(r)}}catch(l){return console.error("AiOperations: Batch execution failed",l),{success:!1,description:s,error:l.message,failedAt:d.length,results:d}}}};q=new WeakMap,ye=new WeakMap,K=new WeakMap,j=new WeakMap,mt=new WeakSet,cn=p(function(e){let t=this.inject("log");if(!e||typeof e!="function")throw new Error("Operation factory must be a function");let s=e._name;if(!s)throw new Error("Operation factory must have a _name property (use defineAiOperations)");t.info(`AiOperations: Registering operations for namespace "${s}"`),i(this,ye).push(e);let n=e(this.inject);for(let[r,d]of Object.entries(n)){let{handler:c,schema:l,description:u,examples:g,returns:b,alias:w}=d,I=`${s}:${r}`;if(!c||typeof c!="function")throw new Error(`Operation ${I} must have a handler function`);u||console.warn(`Operation ${I} missing description`),i(this,q).set(I,{namespace:s,name:r,handler:c,schema:l||[],description:u||"",examples:g||[],returns:b||"Object",alias:w||null}),w&&(i(this,K).has(w)&&i(this,K).get(w)!==I&&console.warn(`AiOperations: alias "${w}" already registered for ${i(this,K).get(w)}, overriding with ${I}`),i(this,K).set(w,I)),i(this,j).has(r)&&i(this,j).get(r)!==I?i(this,j).set(r,null):i(this,j).set(r,I)}},"#setupOperations"),ut=new WeakSet,ln=p(function(e,t){return e&&JSON.parse(JSON.stringify(e),(s,n)=>s==="ref"?n:typeof n=="string"&&n.match(/^\{\{.*\}\}$/)?t.get(n)??t.get(n.replace(/\.[^}]+(?=\}\}$)/,""))??n:n)},"#resolveReferences"),p(ht,"AiOperations"),A(ht,"manifest",{name:"AiOperations",namespace:"aiOps",version:"1.0.0",description:"AI operation registry and executor",author:"",license:"MIT",homepage:""});var Ne=ht;import{Channel as us}from"@jucie.io/engine-message";import{SocketClient as hs}from"@jucie.io/engine-socket/client";import{ServiceProvider as Kn}from"@jucie.io/engine";var H,W,J,re,D,ae,Te,ft,pn,_e,jt,$,P,gt,mn,$e,Re,Me,Pe,De,ze,Ue,yt,un,Be,Ht,bt=class bt extends Kn{constructor(){super(...arguments);m(this,ft);m(this,_e);m(this,$);m(this,gt);m(this,yt);m(this,Be);m(this,H,new Map);m(this,W,!0);m(this,J,!0);m(this,re,!1);m(this,D,Date.now());m(this,ae,null);m(this,Te,null);m(this,$e,p(()=>{let e=i(this,W);h(this,W,!document.hidden),i(this,W)&&!e?(h(this,D,Date.now()),f(this,$,P).call(this,"visible")):!i(this,W)&&e&&f(this,$,P).call(this,"hidden")},"#handleVisibility"));m(this,Re,p(()=>{h(this,J,!0),h(this,D,Date.now()),f(this,$,P).call(this,"focus")},"#handleFocus"));m(this,Me,p(()=>{h(this,J,!1),f(this,$,P).call(this,"blur")},"#handleBlur"));m(this,Pe,p(()=>{h(this,re,!0),f(this,$,P).call(this,"suspend",{reason:"freeze"})},"#handleFreeze"));m(this,De,p(()=>{h(this,re,!1),h(this,D,Date.now()),f(this,$,P).call(this,"resume",{reason:"freeze"})},"#handleDocResume"));m(this,ze,p(e=>{e.persisted&&(h(this,D,Date.now()),f(this,$,P).call(this,"resume",{reason:"bfcache"}))},"#handlePageShow"));m(this,Ue,p(e=>{e.persisted&&f(this,$,P).call(this,"suspend",{reason:"bfcache"})},"#handlePageHide"))}initialize(){typeof document<"u"&&(h(this,W,!document.hidden),h(this,J,document.hasFocus())),h(this,D,Date.now())}getters(){return{visible:()=>i(this,W),focused:()=>i(this,J),frozen:()=>i(this,re)}}actions(e,t){return h(this,Te,t||{}),f(this,gt,mn).call(this,i(this,Te)),{on:(s,n)=>f(this,ft,pn).call(this,s,n),off:(s,n)=>f(this,_e,jt).call(this,s,n),isVisible:()=>i(this,W),isFocused:()=>i(this,J),isFrozen:()=>i(this,re),lastActiveTimestamp:()=>i(this,D),destroy:()=>f(this,Be,Ht).call(this)}}destroy(){f(this,Be,Ht).call(this)}};H=new WeakMap,W=new WeakMap,J=new WeakMap,re=new WeakMap,D=new WeakMap,ae=new WeakMap,Te=new WeakMap,ft=new WeakSet,pn=p(function(e,t){return i(this,H).has(e)||i(this,H).set(e,new Set),i(this,H).get(e).add(t),()=>f(this,_e,jt).call(this,e,t)},"#on"),_e=new WeakSet,jt=p(function(e,t){let s=i(this,H).get(e);s&&(s.delete(t),s.size===0&&i(this,H).delete(e))},"#off"),$=new WeakSet,P=p(function(e,t){let s=i(this,H).get(e);if(s)for(let n of s)n(t)},"#emit"),gt=new WeakSet,mn=p(function(e){if(typeof document<"u"&&(e.visibility!==!1&&document.addEventListener("visibilitychange",i(this,$e)),e.freeze!==!1&&(document.addEventListener("freeze",i(this,Pe)),document.addEventListener("resume",i(this,De)))),typeof window<"u"&&(e.focus&&(window.addEventListener("focus",i(this,Re)),window.addEventListener("blur",i(this,Me))),e.freeze!==!1&&(window.addEventListener("pageshow",i(this,ze)),window.addEventListener("pagehide",i(this,Ue)))),e.sleepDetection?.enabled!==!1){let t=e.sleepDetection?.threshold||1e4;f(this,yt,un).call(this,t)}},"#setupSources"),$e=new WeakMap,Re=new WeakMap,Me=new WeakMap,Pe=new WeakMap,De=new WeakMap,ze=new WeakMap,Ue=new WeakMap,yt=new WeakSet,un=p(function(e){let t=Math.min(e/2,5e3);h(this,ae,setInterval(()=>{let s=Date.now(),n=s-i(this,D);n>e&&(f(this,$,P).call(this,"suspend",{reason:"sleep",gap:n}),f(this,$,P).call(this,"resume",{reason:"sleep",gap:n})),h(this,D,s)},t))},"#startSleepDetection"),Be=new WeakSet,Ht=p(function(){typeof document<"u"&&(document.removeEventListener("visibilitychange",i(this,$e)),document.removeEventListener("freeze",i(this,Pe)),document.removeEventListener("resume",i(this,De))),typeof window<"u"&&(window.removeEventListener("focus",i(this,Re)),window.removeEventListener("blur",i(this,Me)),window.removeEventListener("pageshow",i(this,ze)),window.removeEventListener("pagehide",i(this,Ue))),i(this,ae)&&(clearInterval(i(this,ae)),h(this,ae,null)),i(this,H).clear()},"#teardown"),p(bt,"PageLifecycle"),A(bt,"manifest",{name:"PageLifecycle",namespace:"pageLifecycle",version:"1.0.0",description:"Browser lifecycle detection for tab visibility, focus, and sleep/wake"});var Le=bt;import{ServiceProvider as Zn}from"@jucie.io/engine";function Wt(a){let o=window.getSelection();if(o.rangeCount===0)return{start:0,end:0};let e=o.getRangeAt(0),t=e.cloneRange();t.selectNodeContents(a),t.setEnd(e.startContainer,e.startOffset);let s=t.toString().length,n=e.cloneRange();n.selectNodeContents(a),n.setEnd(e.endContainer,e.endOffset);let r=n.toString().length;return{start:Math.min(s,r),end:Math.max(s,r)}}p(Wt,"getCaretCharacterOffset");function hn(a,o){if(!a?.isConnected||o<0)return;let e=document.createTreeWalker(a,NodeFilter.SHOW_TEXT),t=0,s=null;for(let n=e.nextNode();n;n=e.nextNode()){if(s=n,o<=t+n.length){let r=document.createRange();r.setStart(n,o-t),r.collapse(!0);let d=window.getSelection();d.removeAllRanges(),d.addRange(r);return}t+=n.length}if(s){let n=document.createRange();n.setStart(s,s.length),n.collapse(!0);let r=window.getSelection();r.removeAllRanges(),r.addRange(n)}}p(hn,"setCaretToCharacterPosition");function fn(a,o,e=0,t=""){return a.slice(0,o)+t+a.slice(o+e)}p(fn,"spliceString");function gn(a,o){let e=p(n=>/[\s\n]/.exec(n),"isSpace"),t=o-1,s=o;for(;t>=0&&!e(a[t]);)t-=1;for(t=Math.max(0,t+1);s<a.length&&!e(a[s]);)s+=1;return s=Math.max(t,s),[t,s]}p(gn,"getWordBoundsAtPosition");function St({pattern:a,word:o,match:e,regexMatch:t,triggerLen:s,start:n,end:r,cursorPos:d}){let c=d-n;return{pattern:a,word:o,match:e,regexMatch:t,start:n,end:r,query:o.slice(s,c)}}p(St,"buildMatch");function yn(a,o,e=[]){if(!a||o===0||e.length===0)return[];let[t,s]=gn(a,o),n=a.slice(t,s);if(!n)return[];let r=[];for(let d of e){if(d.regex){let u=n.match(d.trigger);u&&r.push(St({pattern:d,word:n,match:u[0],regexMatch:u,triggerLen:1,start:t,end:s,cursorPos:o}));continue}let c=d.trigger,l=c.length;d.exact&&n===c?r.push(St({pattern:d,word:n,match:c,regexMatch:null,triggerLen:l,start:t,end:s,cursorPos:o})):d.startsWith&&n.startsWith(c)?r.push(St({pattern:d,word:n,match:c,regexMatch:null,triggerLen:l,start:t,end:s,cursorPos:o})):d.endsWith&&n.endsWith(c)&&r.push(St({pattern:d,word:n,match:c,regexMatch:null,triggerLen:l,start:t,end:s,cursorPos:o}))}return r}p(yn,"getTriggerMatchesAtCursor");var Jn=new Set(["insertText","insertParagraph","insertLineBreak","deleteContentBackward","deleteContentForward"]),Qn={childList:!0,characterData:!0,subtree:!0},Y,be,Q,je,O,v,L,Z,Se,we,ve,xe,ee,vt,bn,Ie,wt,He,We,Fe,xt,Ye,It,Xe,Ve,z,F,ie=class ie{constructor(o,{onInput:e,onBlur:t,onWheel:s}={},n={}){m(this,vt);m(this,Ie);m(this,z);m(this,Y,[]);m(this,be,[]);m(this,Q,[]);m(this,je,{});m(this,O,"");m(this,v,0);m(this,L,0);m(this,Z,0);m(this,Se,{content:"",start:0,end:0});m(this,we,!1);m(this,ve,null);m(this,xe,!1);m(this,ee,null);m(this,He,p(o=>{o.stopPropagation(),o.preventDefault();let e=o.clipboardData;if(!e)return;let t=e.getData("text/plain")||e.getData("text/html");if(!t)return;let s=t;if(t!==e.getData("text/plain")){let n=document.createElement("div");n.innerHTML=t,s=n.textContent||""}f(this,Ie,wt).call(this),f(this,z,F).call(this,i(this,v),i(this,L)-i(this,v),s)},"#handlePaste"));m(this,We,p(o=>{switch(console.log("beforeinput",o),o.stopPropagation(),Jn.has(o.inputType)&&o.preventDefault(),f(this,Ie,wt).call(this),o.inputType){case"insertText":f(this,z,F).call(this,i(this,v),i(this,L)-i(this,v),o.data??"");break;case"insertParagraph":case"insertLineBreak":f(this,z,F).call(this,i(this,v),i(this,L)-i(this,v),`
8
- `);break;case"deleteContentBackward":i(this,v)!==i(this,L)?f(this,z,F).call(this,i(this,v),i(this,L)-i(this,v),""):f(this,z,F).call(this,Math.max(0,i(this,v)-1),Math.min(1,i(this,v)),"");break;case"deleteContentForward":i(this,v)!==i(this,L)?f(this,z,F).call(this,i(this,v),i(this,L)-i(this,v),""):f(this,z,F).call(this,i(this,v),1,"");break}},"#handleBeforeInput"));m(this,Fe,p(()=>{this.onBlur?.(i(this,O))},"#handleBlur"));m(this,xt,p(o=>{o.preventDefault(),this.onWheel({deltaX:o.deltaX,deltaY:o.deltaY,ctrlKey:o.ctrlKey,x:o.clientX,y:o.clientY})},"#handleWheel"));m(this,Ye,p(o=>{o.key===" "&&(o.preventDefault(),f(this,Ie,wt).call(this),f(this,z,F).call(this,i(this,v),i(this,L)-i(this,v)," "))},"#handleKeyDown"));m(this,It,p(()=>{i(this,we)||i(this,xe)||hn(this.$el,i(this,Z))},"#handleMutation"));m(this,Xe,p(()=>{h(this,xe,!0)},"#handleCompositionStart"));m(this,Ve,p(()=>{h(this,xe,!1),h(this,O,this.$el.textContent||""),this.onInput?.(i(this,O))},"#handleCompositionEnd"));this.$el=o,this.onInput=e,this.onBlur=t,this.onWheel=s,h(this,be,n.inheritedPatterns??[]),h(this,je,n),f(this,vt,bn).call(this)}static create(o,e={},t={}){if(this.instances.has(o))return this.instances.get(o);let s=new ie(o,e,t);return ie.instances.set(o,s),s}get content(){return i(this,O)}get cursor(){return{start:i(this,v),end:i(this,L)}}on(o,e,t=!1){this.$el.addEventListener(o,e,t);let s={eventName:o,callback:e,options:t};return i(this,Q).push(s),()=>{this.$el.removeEventListener(o,e,t);let n=i(this,Q).indexOf(s);n!==-1&&i(this,Q).splice(n,1)}}onMatch(o,e,{exact:t=!0,startsWith:s=!1,endsWith:n=!1}={}){let r=o instanceof RegExp,d={trigger:r?o:o?.trim?.(),regex:r,exact:t,startsWith:s,endsWith:n,callback:e};return i(this,Y).push(d),()=>{let c=i(this,Y).indexOf(d);c!==-1&&i(this,Y).splice(c,1)}}reset(){h(this,O,i(this,Se).content),h(this,Z,i(this,Se).start),this.onInput?.(i(this,O))}destroy(){if(!i(this,we)){h(this,we,!0),i(this,ve)?.disconnect(),this.$el.removeEventListener("paste",i(this,He)),this.$el.removeEventListener("beforeinput",i(this,We)),this.$el.removeEventListener("blur",i(this,Fe)),this.$el.removeEventListener("compositionstart",i(this,Xe)),this.$el.removeEventListener("compositionend",i(this,Ve)),this.$el.removeEventListener("keydown",i(this,Ye)),i(this,ee)&&(document.removeEventListener("wheel",i(this,ee),{passive:!1,capture:!0}),h(this,ee,null));for(let{eventName:o,callback:e,options:t}of i(this,Q))this.$el.removeEventListener(o,e,t);h(this,Q,[]),h(this,Y,[]),ie.instances.delete(this.$el),i(this,je).onDestroy?.(this)}}};Y=new WeakMap,be=new WeakMap,Q=new WeakMap,je=new WeakMap,O=new WeakMap,v=new WeakMap,L=new WeakMap,Z=new WeakMap,Se=new WeakMap,we=new WeakMap,ve=new WeakMap,xe=new WeakMap,ee=new WeakMap,vt=new WeakSet,bn=p(function(){h(this,O,this.$el.textContent||"");let{start:o,end:e}=Wt(this.$el);h(this,v,o),h(this,L,e),h(this,Z,o),h(this,Se,{content:i(this,O),start:o,end:e}),this.$el.addEventListener("paste",i(this,He)),this.$el.addEventListener("beforeinput",i(this,We)),this.$el.addEventListener("blur",i(this,Fe)),this.$el.addEventListener("compositionstart",i(this,Xe)),this.$el.addEventListener("compositionend",i(this,Ve)),this.$el.tagName==="BUTTON"&&this.$el.addEventListener("keydown",i(this,Ye)),h(this,ve,new MutationObserver(i(this,It))),i(this,ve).observe(this.$el,Qn),this.onWheel&&(h(this,ee,i(this,xt)),document.addEventListener("wheel",i(this,ee),{passive:!1,capture:!0}))},"#init"),Ie=new WeakSet,wt=p(function(){let{start:o,end:e}=Wt(this.$el);h(this,v,o),h(this,L,e)},"#updateCaret"),He=new WeakMap,We=new WeakMap,Fe=new WeakMap,xt=new WeakMap,Ye=new WeakMap,It=new WeakMap,Xe=new WeakMap,Ve=new WeakMap,z=new WeakSet,F=p(function(o,e,t){h(this,O,fn(i(this,O),o,e,t)),h(this,Z,o+t.length);let s=i(this,be).length?[...i(this,Y),...i(this,be)]:i(this,Y),n=yn(i(this,O),i(this,Z),s);for(let r of n)r.pattern.callback({word:r.word,trigger:r.match,start:r.start,end:r.end,query:r.query,match:r.regexMatch});this.onInput?.(i(this,O))},"#applyEdit"),p(ie,"Target"),A(ie,"instances",new WeakMap);var te=ie;var de,ne,ce,kt=class kt extends Zn{constructor(){super(...arguments);m(this,de,[]);m(this,ne,[]);m(this,ce,new Set)}actions(){return{create:(e,t={})=>{try{if(!(e instanceof HTMLElement))throw new Error("ContentEditor.create: $el must be an HTMLElement");e.isContentEditable||(e.contentEditable="true");let s=te.create(e,t,{inheritedPatterns:i(this,de),onDestroy:n=>{for(let{eventName:r,callback:d,options:c}of i(this,ne))n.$el.removeEventListener(r,d,c);i(this,ce).delete(n),te.instances.delete(e)}});for(let{eventName:n,callback:r,options:d}of i(this,ne))e.addEventListener(n,r,d);return i(this,ce).add(s),s}catch(s){return console.error(s),null}},getTarget:e=>te.instances.get(e),onMatch:(e,t,s={})=>{let n=e instanceof RegExp,r={trigger:n?e:e?.trim?.(),regex:n,exact:s.exact??!0,startsWith:s.startsWith??!1,endsWith:s.endsWith??!1,callback:t};return i(this,de).push(r),()=>{let d=i(this,de).indexOf(r);d!==-1&&i(this,de).splice(d,1)}},on:(e,t,s=!1)=>{let n={eventName:e,callback:t,options:s};i(this,ne).push(n);for(let r of i(this,ce))r.$el.addEventListener(e,t,s);return()=>{let r=i(this,ne).indexOf(n);r!==-1&&i(this,ne).splice(r,1);for(let d of i(this,ce))d.$el.removeEventListener(e,t,s)}},reset:e=>te.instances.get(e)?.reset(),destroy:e=>te.instances.get(e)?.destroy()}}};de=new WeakMap,ne=new WeakMap,ce=new WeakMap,p(kt,"ContentEditor"),A(kt,"manifest",{name:"Content Editor",namespace:"contentEditor",version:"1.0.0",description:"Content editor extension"});var Ge=kt;import{State as fs}from"@jucie.io/engine-state";import{createSubscriber as Oe}from"@jucie.io/reactive";import{Reactive as gs}from"@jucie.io/state-reactive";import{HistoryManager as ys}from"@jucie.io/state-history";import{OnChange as bs}from"@jucie.io/state-on-change";import{Matcher as Ss}from"@jucie.io/state-matcher";import{GLOBAL_TAG as Ft}from"@jucie.io/state/lib/TOKENS.js";import{createChange as es}from"@jucie.io/state/lib/change.js";import{Plugin as ts}from"@jucie.io/state/Plugin";import{traverse as ns}from"@jucie.io/state/lib/tree/traverse.js";import{encodePath as Sn,decodeAddress as Yt}from"@jucie.io/state/lib/pathEncoder.js";import{createMarker as wn,dispatch as Xt}from"@jucie.io/state/lib/marker.js";var ss=typeof window<"u"&&typeof window.document<"u",os=typeof process<"u"&&process.versions?.node,qe=0,Et="entry",Vt="tombstone",x,k,R,U,X,M,le,pe,V,me,G,ue,Ot,vn,Nt,xn,Qe,Gt,Ze,qt,et,Kt,he,Ke,Lt,In,tt,Jt,Tt,kn,_t,En,$t,Cn,nt,Qt,st,Zt,Ee,Ct,Rt,An,ot,en,Ce,At,Mt,On,ke=class ke extends ts{constructor(){super(...arguments);m(this,Ot);m(this,Nt);m(this,Qe);m(this,Ze);m(this,et);m(this,he);m(this,Lt);m(this,tt);m(this,Tt);m(this,_t);m(this,$t);m(this,nt);m(this,st);m(this,Ee);m(this,Rt);m(this,ot);m(this,Ce);m(this,Mt);m(this,x,new Map);m(this,k,new Map);m(this,R,new Set);m(this,U,[]);m(this,X,!1);m(this,M,!1);m(this,le,null);m(this,pe,void 0);m(this,V,new Set);m(this,me,!1);m(this,G,new Set);m(this,ue,!1);A(this,"onTombstoneConflict",null)}initialize(e,t){h(this,X,!1),h(this,le,t.actorId??t.userId??null),h(this,pe,Date.now())}get batchSize(){return this.options.batchSize}actions(){return{addChangeListener:e=>this.addChangeListener(e),removeChangeListener:e=>this.removeChangeListener(e),addLedgerListener:e=>this.addLedgerListener(e),removeLedgerListener:e=>this.removeLedgerListener(e),kill:(...e)=>this.kill(e),resurrect:(...e)=>this.resurrect(e),snapshot:()=>this.snapshot(),hydrate:e=>this.hydrate(e),merge:e=>this.merge(e),apply:e=>this.apply(e),getStats:()=>this.getStats()}}onStateChange(e,t){i(this,M)||(Xt(e,{global:s=>i(this,U).push({marker:s,change:t}),path:s=>i(this,U).push({marker:s,change:t}),ephemeral:()=>{}}),f(this,nt,Qt).call(this))}addChangeListener(e){return i(this,V).add(e),i(this,V).size>0&&h(this,me,!0),()=>this.removeChangeListener(e)}removeChangeListener(e){i(this,V).delete(e),i(this,V).size===0&&h(this,me,!1)}addLedgerListener(e){return i(this,G).add(e),i(this,G).size>0&&h(this,ue,!0),()=>this.removeLedgerListener(e)}removeLedgerListener(e){i(this,G).delete(e),i(this,G).size===0&&h(this,ue,!1)}getEntry(e){return i(this,x).get(Sn(e))}getTombstone(e){return i(this,k).get(Sn(e))}snapshot(){return{state:this.state.get(),ledger:Object.fromEntries(i(this,x)),tombstones:Object.fromEntries(i(this,k))}}hydrate({state:e,ledger:t={},tombstones:s={}}={}){h(this,M,!0);try{h(this,U,[]),e!==void 0&&this.state.load(e),h(this,x,f(this,he,Ke).call(this,t)),h(this,k,f(this,he,Ke).call(this,s)),f(this,Tt,kn).call(this),f(this,Ee,Ct).call(this),h(this,U,[])}finally{h(this,M,!1)}return this}apply(e){if(!e?.length)return[];let t=[],s=[];h(this,M,!0);try{for(let n of e){let[r,d,c,l]=n;if(!(!d||!r)){if(r===Vt){i(this,k).set(d,l),i(this,R).add(d),f(this,et,Kt).call(this,d),c&&s.push(c),t.push(n);continue}r!==Et||!l||f(this,tt,Jt).call(this,d,l)&&(i(this,x).set(d,l),c&&s.push(c),t.push(n))}}s.length>0&&this.state.apply(s),f(this,Ee,Ct).call(this)}finally{h(this,M,!1)}return t.length>0&&f(this,Ce,At).call(this,t),t}merge({state:e,ledger:t={},tombstones:s={}}={}){if(!e&&!t&&!s)return this.state;h(this,M,!0);try{for(let[n,r]of f(this,he,Ke).call(this,t)){if(n===Ft||Yt(n)===Ft||!f(this,tt,Jt).call(this,n,r))continue;i(this,x).set(n,r);let d=Yt(n),c=e?ns(e,d):void 0;c!==void 0&&this.state.set(d,c)}for(let[n,r]of f(this,he,Ke).call(this,s)){if(!f(this,Lt,In).call(this,n,r))continue;let d=Yt(n);this.state.remove(d),i(this,k).set(n,r),i(this,R).add(n)}f(this,Ee,Ct).call(this)}finally{h(this,M,!1)}return this.state}reset(){i(this,x).clear(),i(this,k).clear(),i(this,R).clear(),h(this,U,[]),h(this,X,!1),h(this,le,null),h(this,pe,Date.now()),i(this,V).clear(),h(this,me,!1),i(this,G).clear(),h(this,ue,!1)}getStats(){return{entriesCount:i(this,x).size,tombstonesCount:i(this,k).size,tombstoneIndexCount:i(this,R).size,changeQueueCount:i(this,U).length,isProcessing:i(this,X),actorId:i(this,le),sessionEpoch:i(this,pe),globalClock:qe}}kill(e){let t=wn(e);return Xt(t,{global:()=>{throw new Error("Cannot kill global state")},path:({path:s,address:n})=>{h(this,M,!0);try{let r=this.state.remove(s),d=f(this,Ot,vn).call(this,n,r),c=es(t,"remove",void 0,r),l=[Vt,n,c,d];return f(this,ot,en).call(this,[l]),f(this,Ce,At).call(this,[l]),r}finally{h(this,M,!1)}},error:s=>console.error(s)})}resurrect(e){try{let t=wn(e),s=f(this,Nt,xn).call(this,t.address);if(!s)throw new Error(`No tombstone found for path: ${t.path.join(".")}`);let n=JSON.parse(s.data);return this.state.set(t.path,n),n}catch(t){console.error(t);return}}};x=new WeakMap,k=new WeakMap,R=new WeakMap,U=new WeakMap,X=new WeakMap,M=new WeakMap,le=new WeakMap,pe=new WeakMap,V=new WeakMap,me=new WeakMap,G=new WeakMap,ue=new WeakMap,Ot=new WeakSet,vn=p(function(e,t){let s={data:JSON.stringify(t),timestamp:Date.now()};return i(this,k).set(e,s),i(this,R).add(e),f(this,et,Kt).call(this,e),f(this,Rt,An).call(this),s},"#createTombstone"),Nt=new WeakSet,xn=p(function(e){let t=i(this,k).get(e);if(t)return i(this,k).delete(e),i(this,R).delete(e),t},"#removeTombstone"),Qe=new WeakSet,Gt=p(function(e,t){if(!e)return-1;if(!t)return 1;let[s,n,r,d]=e,[c,l,u,g]=t;return s!==c?s>c?1:-1:n!==l?n>l?1:-1:r!==u?r>u?1:-1:d!==g?String(d??"").localeCompare(String(g??"")):0},"#compareEntries"),Ze=new WeakSet,qt=p(function(e){if(i(this,R).has(e))return!0;let t=e.length;for(;t=e.lastIndexOf(".",t-1),t!==-1;)if(i(this,R).has(e.slice(0,t)))return!0;return!1},"#isPathTombstoned"),et=new WeakSet,Kt=p(function(e){let t=[];for(let[s]of i(this,x))(s===e||s.startsWith(e))&&t.push(s);for(let s of t)i(this,x).delete(s)},"#removeEntriesUnderPath"),he=new WeakSet,Ke=p(function(e){return e?e instanceof Map?new Map(e):Array.isArray(e)?new Map(e):typeof e=="object"?new Map(Object.entries(e)):new Map:new Map},"#toMap"),Lt=new WeakSet,In=p(function(e,t){let s=i(this,x).get(e),n=i(this,k).get(e);return!!(!n&&!s||n&&t.timestamp>n.timestamp||s&&!n)},"#shouldApplyTombstone"),tt=new WeakSet,Jt=p(function(e,t){if(f(this,Ze,qt).call(this,e))return!1;let s=i(this,x).get(e);return f(this,Qe,Gt).call(this,t,s)>0},"#shouldApplyRemoteEntry"),Tt=new WeakSet,kn=p(function(){i(this,R).clear();for(let[e]of i(this,k))i(this,R).add(e)},"#rebuildTombstoneIndexes"),_t=new WeakSet,En=p(function(e){ss&&"requestIdleCallback"in window?window.requestIdleCallback(e,{timeout:50}):os?setImmediate(e):setTimeout(e,0)},"#scheduleIdle"),$t=new WeakSet,Cn=p(function(e){let t=!1;Promise.resolve().then(()=>{t||(t=!0,e())}),setTimeout(()=>{t||(t=!0,e())},0)},"#scheduleNextTick"),nt=new WeakSet,Qt=p(function(){i(this,X)||(h(this,X,!0),f(this,$t,Cn).call(this,()=>{let e=i(this,U).splice(0,this.options.batchSize||ke.options.batchSize),t=[],s=[];for(let{marker:n,change:r}of e)Xt(n,{global:()=>{let d=f(this,st,Zt).call(this,n.address);t.push([Et,Ft,r,d])},path:({path:d})=>{if(f(this,Ze,qt).call(this,n.address)){s.push(d);return}let c=f(this,st,Zt).call(this,n.address);t.push([Et,n.address,r,c])}});s.length>0&&f(this,_t,En).call(this,()=>f(this,Mt,On).call(this,this.state,s)),f(this,ot,en).call(this,t),f(this,Ce,At).call(this,t),h(this,X,!1),i(this,U).length>0&&f(this,nt,Qt).call(this)}))},"#scheduleRecord"),st=new WeakSet,Zt=p(function(e){let t=i(this,x).get(e);i(this,x).delete(e);let r=[(t?t[0]:0)+1,qe++,i(this,pe),i(this,le)];if(i(this,x).set(e,r),i(this,x).size>this.options.maxSize){let d=i(this,x).size-this.options.maxSize,c=Array.from(i(this,x).entries()).sort((l,u)=>f(this,Qe,Gt).call(this,l[1],u[1]));for(let l=0;l<d;l++)i(this,x).delete(c[l][0])}return r},"#updateLedger"),Ee=new WeakSet,Ct=p(function(){let e=-1;for(let t of i(this,x).values())t&&t[1]>e&&(e=t[1]);qe=qe>e?qe+1:e+1},"#continueGlobalClock"),Rt=new WeakSet,An=p(function(){let s=Date.now();for(let[n,{timestamp:r}]of i(this,k))(i(this,k).size>1e3||s-r>2592e6)&&i(this,k).delete(n)},"#checkTombstoneSize"),ot=new WeakSet,en=p(function(e){i(this,me)&&i(this,V).forEach(t=>t(e))},"#callChangeListeners"),Ce=new WeakSet,At=p(function(e){i(this,ue)&&i(this,G).forEach(t=>t(e))},"#callLedgerListeners"),Mt=new WeakSet,On=p(function(e,t){for(let s of t)try{e.remove(s)}catch(n){console.warn(`Tombstone cleanup failed for path ${s.join(".")}:`,n.message)}},"#cleanupTombstoneConflicts"),A(ke,"name","ledger"),A(ke,"options",{actorId:null,userId:null,maxSize:1e4,batchSize:100}),A(ke,"empty",{ledger:[],tombstones:[]});var Je=ke;function Nn(){let a=window.innerWidth,o=window.innerHeight,t=document.body.style.transform||"",s={x:0,y:0},n=1;if(t){let r=t.match(/translate\(([^,]+),\s*([^)]+)\)/);r&&(s.x=parseFloat(r[1].replace("px",""))||0,s.y=parseFloat(r[2].replace("px",""))||0);let d=t.match(/scale\(([^)]+)\)/);d&&(n=parseFloat(d[1]))}return{scroll:s,scale:n,width:a,height:o}}p(Nn,"getViewport");var Ln=_("node",a=>({create:{description:'Create a new node in the scene graph. type is a prototype name (e.g. div, header, p, button, frame). Optional props (e.g. name, frame) and parent (defaults to "app").',alias:"create",mcpName:"create_node",schema:[{type:"String",props:"Object?",parent:"String?"}],examples:[{args:{type:"button",parent:"app"},description:"Create a button element"},{args:{type:"nav",parent:"app"},description:"Create a nav element"},{args:{type:"frame",props:{frame:"iPhone SE",name:"Home"}},description:"Create an iPhone SE frame named Home"}],returns:"{ id: String, type: String }",handler:async o=>{let e=a("state"),{addNode:t}=await import("./addNode-IWTESHU3.js"),s=e.ref(["nodes"]),{type:n,props:r,parent:d="app"}=o,c=t(s,n,r,d);if(c instanceof Error)throw c;if(n==="frame"){let u=(s.get(["app","children"])??[]).filter(g=>g!==c);if(u.length>0){let g=0;for(let w of u){let I=s.get([w,"bounds"]);I&&(g=Math.max(g,(I.x??0)+(I.width??0)))}let{updateBounds:b}=await import("./updateBounds-3L2AJ72O.js");b(s,c,{x:g+100,y:0})}}return{id:c,type:n}}},updateStyle:{description:'Update styles for a node. Optional breakpoint targets a variant: "@720" (responsive), ":hover" (pseudo-state), "&.is-active" (custom state).',mcpName:"update_style",schema:[{nodeId:"String",styles:"Object",breakpoint:"String?"}],examples:[{args:{nodeId:"nd_123",styles:{"background-color":"#2563eb",padding:"16px","border-radius":"8px"}},description:"Set background, padding, and border radius"},{args:{nodeId:"nd_123",styles:{"background-color":"#1d4ed8"},breakpoint:":hover"},description:"Set hover background"}],returns:"{ id: String, styles: Object }",handler:async o=>{let e=a("state"),{updateStyle:t}=await import("./updateStyle-FR7K7R73.js"),s=e.ref(["nodes"]),{nodeId:n,styles:r,breakpoint:d}=o,c=["display","position"].filter(b=>b in r),l={};d&&(d.startsWith(":")||d.startsWith("&")?l.interactionState=[d]:l.breakpoint=d);let u=t(s,n,{...r},l),g={id:n,styles:u};return c.length&&(g.warning=`Ignored ${c.join(", ")} \u2014 use node:setAutoLayout to change layout mode.`),g}},updateText:{description:"Set text content for a node. Use {{expression}} syntax for dynamic values.",mcpName:"update_text",schema:[{nodeId:"String",value:"String"}],examples:[{args:{nodeId:"nd_heading",value:"Welcome"},description:'Set static text to "Welcome"'},{args:{nodeId:"nd_label",value:"{{user.name}}"},description:"Set dynamic text with expression"}],returns:"{ id: String, textContent: Object }",handler:async o=>{let e=a("state"),{createTextContent:t}=await import("./createTextContent-BL7YGYP5.js"),s=e.ref(["nodes"]),{nodeId:n,value:r}=o,d=t({value:r});return s.set([n,"textContent"],d),{id:n,textContent:d}}},move:{description:"Move a node to be the last child of another node",mcpName:"move_node",schema:[{nodeId:"String",parentId:"String"}],examples:[{args:{nodeId:"nd_link",parentId:"nd_nav"},description:"Move link into nav"}],returns:"{ id: String, movedTo: String, success: Boolean }",handler:async o=>{let e=a("state"),{disconnectNode:t}=await import("./disconnectNode-OY65I4GB.js"),{moveNodeToLastChildOf:s}=await import("./moveNodeToLastChildOf-PRI4OYRB.js"),n=e.ref(["nodes"]),{nodeId:r,parentId:d}=o;t(n,r);let c=s(n,r,d);return{id:r,movedTo:d,success:c}}},remove:{description:"Remove a node and all its descendants from the scene graph",alias:"removeNode",mcpName:"remove_node",schema:[{nodeId:"String"}],examples:[{args:{nodeId:"nd_old_element"},description:"Remove an element"}],returns:"{ id: String, removed: Boolean, removedNodes: Object }",handler:async o=>{let e=a("state"),{removeNode:t}=await import("./removeNode-OFMYW2LY.js"),s=e.ref(["nodes"]),{nodeId:n}=o,[r,d]=t(s,n);return{id:r,removed:!0,removedNodes:d}}},setAutoLayout:{description:'Set the layout mode of a container node ("none" | "block" | "flex" | "grid"). Sets layout on the parent and the corresponding display style, and normalizes all direct children so they flow correctly. Always use this instead of setting display via updateStyle.',alias:"setLayout",mcpName:"set_layout",schema:[{nodeId:"String",layout:"String"}],examples:[{args:{nodeId:"nd_container",layout:"flex"},description:"Enable flex auto-layout on a container"},{args:{nodeId:"nd_container",layout:"none"},description:"Disable auto-layout, reverting children to absolute positioning"}],returns:"{ id: String, layout: String, childrenUpdated: Number }",handler:async o=>{let e=a("state"),{setNodeLayout:t}=await import("./setNodeLayout-O53CNHES.js"),s=e.ref(["nodes"]),{nodeId:n,layout:r}=o;return t(s,n,r)}},setName:{description:"Set a display name on a node. Names appear in get_scene output and make the tree readable. Pass an empty string to clear back to the default (tag name).",mcpName:"set_name",schema:[{nodeId:"String",name:"String"}],examples:[{args:{nodeId:"nd_123",name:"Hero Section"},description:"Name a section"}],returns:"{ id: String, name: String }",handler:async o=>{let t=a("state").ref(["nodes"]),{nodeId:s,name:n}=o;if(n===""){let{clearName:d}=await import("./clearName-EUYRSZED.js");return d(t,s),{id:s,name:""}}let{setName:r}=await import("./setName-QKDRLH7I.js");return r(t,s,n),{id:s,name:n}}},clearName:{description:"Clear the display name from a node, reverting to its tag name.",schema:[{nodeId:"String"}],examples:[{args:{nodeId:"nd_123"},description:"Clear name back to default"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{clearName:t}=await import("./clearName-EUYRSZED.js"),s=e.ref(["nodes"]),{nodeId:n}=o;return t(s,n),{id:n}}},addComponent:{description:"Convert an existing node into a reusable local component. The node is replaced in-place by an instance; the original tree becomes the component definition. Returns instanceId and componentId.",mcpName:"add_component",schema:[{nodeId:"String",name:"String?"}],examples:[{args:{nodeId:"nd_card",name:"Card"},description:"Convert a card node into a reusable component"}],returns:"{ instanceId: String, componentId: String, name: String }",handler:async o=>{let e=a("state"),{addComponent:t}=await import("./addComponent-VWD6O7CQ.js"),s=e.ref(["nodes"]),{nodeId:n,name:r=""}=o,d=t(s,n,r),c=s.get([d,"component"]);return{instanceId:d,componentId:c,name:r}}}}));var Tn=_("tree",a=>({create:{description:'Create a nested tree of nodes recursively (use for complex structures like mobile pages). For frames, parent MUST be "app".',alias:"createTree",schema:[{tree:"Object",parent:"String?"}],examples:[{args:{tree:{type:"frame",name:"Home",frame:"iPhone SE",bounds:{x:0,y:400},styles:{display:"flex","flex-direction":"column",overflow:"hidden"},children:[{type:"header",styles:{padding:"16px"},children:[{type:"h1",text:"App Name"}]},{type:"main",styles:{flex:"1"}},{type:"footer",styles:{padding:"16px"},text:"Footer"}]},parent:"app"},description:"Create mobile page with header, main, footer \u2014 frame is the flex container"}],returns:"{ rootId: String, createdIds: Array, treeMap: Object }",handler:async o=>{let e=a("state"),t=a("log"),{addNode:s}=await import("./addNode-IWTESHU3.js"),{updateStyle:n}=await import("./updateStyle-FR7K7R73.js"),{setNodeLayout:r}=await import("./setNodeLayout-O53CNHES.js"),{normalizeLayoutContext:d}=await import("./normalizeLayoutContext-OIXYBNTH.js"),{createTextContent:c}=await import("./createTextContent-BL7YGYP5.js"),l=e.ref(["nodes"]),{tree:u,parent:g="app"}=o,b=[],w={},I=p((se,Pt)=>{let{type:rt,children:fe,styles:Dt,style:zt,text:at,ref:it,bounds:dt,...y}=se,S=s(l,rt,y,Pt);if(b.push(S),it&&(w[it]=S),rt==="frame"&&dt){let{x:N,y:ct}=dt,lt=l.get([S,"bounds"])??{};l.set([S,"bounds"],{...lt,...N!=null?{x:N}:{},...ct!=null?{y:ct}:{}})}let C=y.name;C&&l.set([S,"name"],C);let E=Dt||zt;E&&Object.keys(E).length>0&&n(l,S,{...E});let B=E?.display??l.get([S,"style","default","display"]),oe=B==="flex"||B==="grid";if(oe)try{r(l,S,B)}catch(N){t.warn("setNodeLayout failed for parent",{id:S,error:N.message})}if(at&&!(fe?.length>0)){let N=c({value:at});l.set([S,"textContent"],N)}return fe&&fe.length>0&&fe.forEach(N=>{if(oe){let lt=N.styles||N.style||{};lt.position!=="absolute"&&(N={...N,styles:{width:"auto",height:"auto",top:"auto",left:"auto",...lt}})}let ct=I(N,S);oe&&d(l,ct,S)}),S},"createRecursive"),T=I(u,g);return{id:T,rootId:T,createdIds:b,treeMap:w,type:"tree"}}}}));var _n=_("behavior",a=>({addEvent:{description:'Add or replace an event handler on a node (replaces any existing handler with the same name). Event names use React-style onX format (onClick, onSubmit, onInput, onChange, onMouseEnter, etc.); lowercase names like "click" or "submit" are auto-normalized. Use binding for zero-arg store actions (e.g. "$store.myStore.doSomething"); use code when you need arguments or complex logic \u2014 code MUST be a complete function expression: function (ctx, event) { ... }. Access stores inside the handler via ctx.$store.<storeName>.',mcpName:"add_event",schema:[{nodeId:"String",name:"String",binding:"String?",code:"String?",mode:"String?"}],examples:[{args:{nodeId:"nd_btn",name:"onClick",binding:"$store.default.increment"},description:"Call store action on click"},{args:{nodeId:"nd_btn",name:"onClick",code:`function (ctx, event) {
9
- ctx.$store.todo.items.push({ text: ctx.$store.todo.newTodo, done: false })
10
- ctx.$store.todo.newTodo = ""
11
- }`},description:"Add click handler with code"},{args:{nodeId:"nd_form",name:"onSubmit",code:`function (ctx, event) {
12
- event.preventDefault()
13
- }`},description:"Prevent default on form submit"}],returns:"{ id: String, name: String }",handler:async o=>{let e=a("state"),{addEvent:t}=await import("./addEvent-54ZE2DVJ.js"),{updateEvent:s}=await import("./updateEvent-NXMQSGDQ.js"),{normalizeEventName:n}=await import("./normalizeEventName-6HVMB5GN.js"),r=e.ref(["nodes"]),{nodeId:d,name:c,binding:l,code:u,mode:g}=o,b=n(c);if((r.get([d,"events"])??[]).find(T=>T.name===b)||t(r,d,b),l!==void 0){let T=(r.get([d,"events"])??[]).find(se=>se.name===b)??{name:b};s(r,d,b,{...T,mode:"binding",binding:l.split("."),code:null})}else if(u!==void 0){let T=(r.get([d,"events"])??[]).find(se=>se.name===b)??{name:b};s(r,d,b,{...T,mode:g??"code",code:u,binding:null})}return{id:d,name:b}}},updateEvent:{description:"Update an existing event handler by name",schema:[{nodeId:"String",name:"String",event:"Object"}],examples:[{args:{nodeId:"nd_btn",name:"onClick",event:{mode:"code",code:'alert("hi")'}},description:"Update onClick handler"}],returns:"{ id: String, name: String }",handler:async o=>{let e=a("state"),{updateEvent:t}=await import("./updateEvent-NXMQSGDQ.js"),{normalizeEventName:s}=await import("./normalizeEventName-6HVMB5GN.js"),n=e.ref(["nodes"]),{nodeId:r,name:d,event:c}=o,l=s(d),u=c?.name!==void 0?{...c,name:s(c.name)}:{...c,name:l};return t(n,r,l,u),{id:r,name:l}}},removeEvent:{description:"Remove an event handler by name",schema:[{nodeId:"String",name:"String"}],examples:[{args:{nodeId:"nd_btn",name:"onClick"},description:"Remove onClick handler"}],returns:"{ id: String, name: String }",handler:async o=>{let e=a("state"),{removeEvent:t}=await import("./removeEvent-CP3SVSHQ.js"),{normalizeEventName:s}=await import("./normalizeEventName-6HVMB5GN.js"),n=e.ref(["nodes"]),{nodeId:r,name:d}=o,c=s(d);return t(n,r,c),{id:r,name:c}}},updateRoute:{description:"Set the route path on a frame node for multi-page navigation",schema:[{nodeId:"String",route:"Any"}],examples:[{args:{nodeId:"nd_frame",route:"/about"},description:"Set route path"},{args:{nodeId:"nd_frame",route:{path:"/users/:id"}},description:"Set route with params"}],returns:"{ id: String, route: Object }",handler:async o=>{let e=a("state"),{updateRoute:t}=await import("./updateRoute-CI3GOLVJ.js"),s=e.ref(["nodes"]),{nodeId:n,route:r}=o,d=typeof r=="string"?{path:r}:r;return t(s,n,d),{id:n,route:d}}},setHomePage:{description:"Mark a frame as the home page (root route)",schema:[{nodeId:"String",isHomePage:"Any"}],examples:[{args:{nodeId:"nd_frame",isHomePage:!0},description:"Set as home page"}],returns:"{ id: String, isHomePage: Any }",handler:async o=>{let e=a("state"),{setHomePage:t}=await import("./setHomePage-UZUWIELK.js"),s=e.ref(["nodes"]),{nodeId:n,isHomePage:r}=o;return t(s,n,r),{id:n,isHomePage:r}}},setDestination:{description:"Set a navigation destination on a link or button node",schema:[{nodeId:"String",destination:"Any"}],examples:[{args:{nodeId:"nd_link",destination:"/about"},description:"Navigate to /about on click"}],returns:"{ id: String, destination: Object }",handler:async o=>{let e=a("state"),{setDestination:t}=await import("./setDestination-3H4RDE7F.js"),s=e.ref(["nodes"]),{nodeId:n,destination:r}=o,d=typeof r=="string"?{path:r}:r;return t(s,n,d),{id:n,destination:d}}},clearDestination:{description:"Remove the navigation destination from a node",schema:[{nodeId:"String"}],examples:[{args:{nodeId:"nd_link"},description:"Clear navigation destination"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{clearDestination:t}=await import("./clearDestination-P3FTW7VJ.js"),s=e.ref(["nodes"]),{nodeId:n}=o;return t(s,n),{id:n}}},setRepeat:{description:'Repeat a node for each item in a data binding (loop). binding is a dot-path on ctx (e.g. "$store.todo.items").',schema:[{nodeId:"String",binding:"String",as:"String?",index:"String?",key:"Any?",keyOn:"Any?"}],examples:[{args:{nodeId:"nd_card",binding:"$store.todo.items",as:"$item"},description:"Repeat card for each item in the todo store"}],returns:"{ id: String, binding: String }",handler:async o=>{let e=a("state"),{setRepeat:t}=await import("./setRepeat-PAW7YMSY.js"),s=e.ref(["nodes"]),{nodeId:n,binding:r,as:d,index:c,key:l,keyOn:u}=o,g=r.split(".");return t(s,n,{descriptor:{mode:"binding",binding:g},as:d,index:c,key:l,keyOn:u}),{id:n,binding:r}}},clearRepeat:{description:"Remove repeat binding from a node",schema:[{nodeId:"String"}],examples:[{args:{nodeId:"nd_card"},description:"Stop repeating"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{clearRepeat:t}=await import("./clearRepeat-HR5C5VWU.js"),s=e.ref(["nodes"]),{nodeId:n}=o;return t(s,n),{id:n}}},setRender:{description:'Conditionally show/hide a node based on an expression. Pass an expression that uses ctx (e.g. "ctx.$store.user.isAdmin"); it is wrapped as a computed function automatically. Stores are at ctx.$store.<name>; loop vars at ctx.$item / ctx.$index.',schema:[{nodeId:"String",value:"String"}],examples:[{args:{nodeId:"nd_admin",value:"ctx.$store.user.isAdmin"},description:"Show only for admins"}],returns:"{ id: String, value: String }",handler:async o=>{let e=a("state"),{setRender:t}=await import("./setRender-XQJWRRYD.js"),s=e.ref(["nodes"]),{nodeId:n,value:r}=o,d=`function (ctx) {
14
- return ${r}
15
- }`;return t(s,n,{mode:"computed",computed:d}),{id:n,value:r}}},clearRender:{description:"Remove conditional rendering from a node (always show)",schema:[{nodeId:"String"}],examples:[{args:{nodeId:"nd_admin"},description:"Always render"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{clearRender:t}=await import("./clearRender-IUKXUT2E.js"),s=e.ref(["nodes"]),{nodeId:n}=o;return t(s,n),{id:n}}},addState:{description:'Register a custom state class on a node (e.g. "is-active"). Style it with updateStyle breakpoint "&.is-active".',schema:[{nodeId:"String",stateName:"String"}],examples:[{args:{nodeId:"nd_tab",stateName:"is-active"},description:"Add active state"}],returns:"{ id: String, stateName: String }",handler:async o=>{let e=a("state"),{addState:t}=await import("./addState-N3MBR533.js"),s=e.ref(["nodes"]),{nodeId:n,stateName:r}=o;return t(s,n,r),{id:n,stateName:r}}},updateState:{description:"Set the expression that controls when a state is active",schema:[{nodeId:"String",stateName:"String",expression:"String"}],examples:[{args:{nodeId:"nd_tab",stateName:"is-active",expression:'$router.currentRoute?.path === "/"'},description:"Activate on home route"}],returns:"{ id: String, stateName: String }",handler:async o=>{let e=a("state"),{updateState:t}=await import("./updateState-QJID3WQV.js"),s=e.ref(["nodes"]),{nodeId:n,stateName:r,expression:d}=o;return t(s,n,r,{name:r,mode:"computed",computed:d??null}),{id:n,stateName:r}}},removeState:{description:"Remove a custom state from a node",schema:[{nodeId:"String",stateName:"String"}],examples:[{args:{nodeId:"nd_tab",stateName:"is-active"},description:"Remove active state"}],returns:"{ id: String, stateName: String }",handler:async o=>{let e=a("state"),{removeState:t}=await import("./removeState-HEDFV7HD.js"),s=e.ref(["nodes"]),{nodeId:n,stateName:r}=o;return t(s,n,r),{id:n,stateName:r}}},updateBounds:{description:"Update the position and size of a node",schema:[{nodeId:"String",bounds:"Object"}],examples:[{args:{nodeId:"nd_frame",bounds:{x:500,y:0,width:375,height:667}},description:"Position a frame"}],returns:"{ id: String, bounds: Object }",handler:async o=>{let e=a("state"),{updateBounds:t}=await import("./updateBounds-3L2AJ72O.js"),s=e.ref(["nodes"]),{nodeId:n,bounds:r}=o;return t(s,n,r),{id:n,bounds:r}}},setHtmlId:{description:"Set the HTML id attribute on a node",schema:[{nodeId:"String",id:"String"}],examples:[{args:{nodeId:"nd_section",id:"hero-section"},description:"Set HTML id for anchor links"}],returns:"{ id: String, htmlId: String }",handler:async o=>{let e=a("state"),{setHtmlId:t}=await import("./setHtmlId-V2DQ2Z6D.js"),s=e.ref(["nodes"]),{nodeId:n,id:r}=o;return t(s,n,r),{id:n,htmlId:r}}},addAttribute:{description:"Add a custom HTML attribute to a node",schema:[{nodeId:"String",name:"String",value:"Any?",mode:"String?"}],examples:[{args:{nodeId:"nd_img",name:"src",value:"/hero.png"},description:"Set image source"},{args:{nodeId:"nd_img",name:"alt",value:"Hero image"},description:"Set alt text"}],returns:"{ id: String, name: String }",handler:async o=>{let e=a("state"),{addAttribute:t}=await import("./addAttribute-ZPJGNPHK.js"),s=e.ref(["nodes"]),{nodeId:n,name:r,value:d,mode:c}=o;return t(s,n,{name:r,value:d,mode:c}),{id:n,name:r}}},updateAttribute:{description:'Update or upsert an attribute by name. For two-way input binding use name "model", mode "binding", and binding "$store.path". model XOR value/checked \u2014 setting model clears value and checked; setting value or checked clears model.',schema:[{nodeId:"String",name:"String",mode:"String?",value:"Any?",binding:"Any?",computed:"String?",code:"String?"}],examples:[{args:{nodeId:"nd_img",name:"src",value:"/new-hero.png"},description:"Change image source"},{args:{nodeId:"nd_email",name:"model",mode:"binding",binding:"$store.form.email"},description:"Two-way bind input to store"}],returns:"{ id: String, name: String }",handler:async o=>{let e=a("state"),{updateAttribute:t}=await import("./updateAttribute-5MWAVQAV.js"),s=e.ref(["nodes"]),{nodeId:n,...r}=o;return typeof r.binding=="string"&&(r.binding=r.binding.split(".")),r.name==="model"&&r.mode==null&&(r.mode="binding"),t(s,n,r.name,r),{id:n,name:r.name}}},removeAttribute:{description:"Remove an attribute by name",schema:[{nodeId:"String",name:"String"}],examples:[{args:{nodeId:"nd_img",name:"src"},description:"Remove src attribute"}],returns:"{ id: String, name: String }",handler:async o=>{let e=a("state"),{removeAttribute:t}=await import("./removeAttribute-6RYM7MYC.js"),s=e.ref(["nodes"]),{nodeId:n,name:r}=o;return t(s,n,r),{id:n,name:r}}},addLifecycleHook:{description:'Add a lifecycle hook to a node (mount, unmount, update). mode is "code" with a code string, or "binding" with a store action binding.',schema:[{nodeId:"String",key:"String",code:"String?",binding:"String?"}],examples:[{args:{nodeId:"nd_page",key:"mount",code:'console.log("mounted")'},description:"Run code on mount"},{args:{nodeId:"nd_page",key:"mount",binding:"cart.load"},description:"Call a store action on mount"}],returns:"{ id: String, key: String }",handler:async o=>{let e=a("state"),{addLifecycleHook:t}=await import("./addLifecycleHook-VCCSTQ3G.js"),{updateLifecycleHook:s}=await import("./updateLifecycleHook-6MCUOVJH.js"),n=e.ref(["nodes"]),{nodeId:r,key:d,code:c,binding:l}=o;return t(n,r,d),(c!==void 0||l!==void 0)&&s(n,r,d,{key:d,mode:c!==void 0?"code":"binding",code:c??"",binding:l??null}),{id:r,key:d}}},updateLifecycleHook:{description:"Update a lifecycle hook by key. hook may include key, mode, code, binding.",schema:[{nodeId:"String",key:"String",hook:"Object"}],returns:"{ id: String, key: String }",handler:async o=>{let e=a("state"),{updateLifecycleHook:t}=await import("./updateLifecycleHook-6MCUOVJH.js"),s=e.ref(["nodes"]),{nodeId:n,key:r,hook:d}=o,c=(s.get([n,"lifecycle"])??[]).find(l=>l.key===r)??{key:r};return t(s,n,r,{...c,...d}),{id:n,key:r}}},removeLifecycleHook:{description:"Remove a lifecycle hook by key.",schema:[{nodeId:"String",key:"String"}],returns:"{ id: String, key: String }",handler:async o=>{let e=a("state"),{removeLifecycleHook:t}=await import("./removeLifecycleHook-Q76BUDFU.js");return t(e.ref(["nodes"]),o.nodeId,o.key),{id:o.nodeId,key:o.key}}},addOption:{description:"Add a static option to a select node.",schema:[{nodeId:"String",value:"String",label:"String?"}],examples:[{args:{nodeId:"nd_select",value:"us",label:"United States"},description:"Add a select option"}],returns:"{ id: String, value: String }",handler:async o=>{let e=a("state"),{addOption:t}=await import("./addOption-ISGTUY6U.js"),s=e.ref(["nodes"]),{nodeId:n,value:r,label:d}=o;return t(s,n,{value:r,label:d??r}),{id:n,value:r}}},updateOption:{description:"Update a select option by its current value. Pass the old value to look up, and optionally a new value/label.",schema:[{nodeId:"String",value:"String",newValue:"String?",label:"String?"}],returns:"{ id: String, value: String }",handler:async o=>{let e=a("state"),{updateOption:t}=await import("./updateOption-JCNXPYXP.js"),s=e.ref(["nodes"]),{nodeId:n,value:r,newValue:d,label:c}=o,l=d??r;return t(s,n,r,{value:l,label:c??l}),{id:n,value:l}}},removeOption:{description:"Remove a select option by value.",schema:[{nodeId:"String",value:"String"}],returns:"{ id: String, value: String }",handler:async o=>{let e=a("state"),{removeOption:t}=await import("./removeOption-Y6QYTQ7C.js");return t(e.ref(["nodes"]),o.nodeId,o.value),{id:o.nodeId,value:o.value}}},setOptionsExpression:{description:"Bind a select node's options to a data expression instead of a static list. binding is a {{expression}} returning an array; valueKey/labelKey pick fields from each item.",schema:[{nodeId:"String",binding:"String",valueKey:"String?",labelKey:"String?"}],examples:[{args:{nodeId:"nd_select",binding:"{{countries}}",valueKey:"code",labelKey:"name"},description:"Populate options from a store"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{setOptionsExpression:t}=await import("./setOptionsExpression-4NFPAI24.js"),s=e.ref(["nodes"]),{nodeId:n,binding:r,valueKey:d,labelKey:c}=o;return t(s,n,{binding:r,valueKey:d,labelKey:c}),{id:n}}},clearOptionsExpression:{description:"Switch a select node back to its static options list.",schema:[{nodeId:"String"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{clearOptionsExpression:t}=await import("./clearOptionsExpression-DF4IPDKH.js");return t(e.ref(["nodes"]),o.nodeId),{id:o.nodeId}}},setTagName:{description:"Change the HTML tag of an element node (e.g. div to section).",mcpName:"set_tag_name",schema:[{nodeId:"String",tagName:"String"}],examples:[{args:{nodeId:"nd_box",tagName:"section"},description:"Make a div semantic"}],returns:"{ id: String, tagName: String }",handler:async o=>{let e=a("state"),{setTagName:t}=await import("./setTagName-Y7O7I6SO.js"),s=e.ref(["nodes"]),{nodeId:n,tagName:r}=o;return t(s,n,r),{id:n,tagName:r}}},updateHtml:{description:"Set the inner HTML of a template node (raw HTML embed).",schema:[{nodeId:"String",html:"String"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{updateHtml:t}=await import("./updateHtml-AEMCHPUQ.js");return t(e.ref(["nodes"]),o.nodeId,o.html),{id:o.nodeId}}},addRouteParam:{description:"Add a route parameter to a frame route (e.g. an :id segment). Set key to name it; optional marks it optional.",schema:[{nodeId:"String",key:"String?",optional:"Boolean?"}],examples:[{args:{nodeId:"nd_frame",key:"id"},description:"Add an :id param to the route"}],returns:"{ id: String, index: Number }",handler:async o=>{let e=a("state"),{addParamToRoute:t}=await import("./addParamToRoute-CRDV7MVF.js"),s=e.ref(["nodes"]),{nodeId:n,key:r,optional:d}=o;t(s,n);let l=(s.get([n,"route","params"])??[]).length-1;return(r!==void 0||d!==void 0)&&s.set([n,"route","params",l],{key:r??null,optional:d??!1}),{id:n,index:l}}},removeRouteParam:{description:"Remove a route parameter from a frame route by index.",schema:[{nodeId:"String",index:"Number"}],returns:"{ id: String, index: Number }",handler:async o=>{let e=a("state"),{removeParamFromRoute:t}=await import("./removeParamFromRoute-MHUMB7RO.js");return t(e.ref(["nodes"]),o.nodeId,o.index),{id:o.nodeId,index:o.index}}}}));var $n=_("token",a=>({create:{description:'Create a design token. path is the token name (e.g. "color/primary"), type is the token kind (color, dimension, fontFamily, etc.), value is the CSS value. Reference tokens in styles via the slugged path (slashes/dots become dashes): path "color/primary" \u2192 var(--color-primary).',mcpName:"create_token",schema:[{path:"String",value:"String",type:"String?"}],examples:[{args:{path:"color/primary",value:"#3B82F6",type:"color"},description:"Create a primary color token"},{args:{path:"spacing/lg",value:"24px",type:"dimension"},description:"Create a spacing token"}],returns:"{ id: String, path: String }",handler:async o=>{let e=a("state"),{addToken:t}=await import("./addToken-QSTDKYFU.js"),s=e.ref(["tokens"]),{path:n,value:r,type:d}=o;return{id:t(s,{$path:n,$value:r,...d!==void 0?{$type:d}:{}}),path:n}}},update:{description:"Update a design token. changes may include path, value, or type.",mcpName:"update_token",schema:[{tokenId:"String",changes:"Object"}],examples:[{args:{tokenId:"tk_abc",changes:{value:"#EF4444"}},description:"Change a token value"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{updateToken:t}=await import("./updateToken-JX6R3YU7.js"),s=e.ref(["tokens"]),{tokenId:n,changes:r={}}=o,d={};return r.path!==void 0&&(d.$path=r.path),r.value!==void 0&&(d.$value=r.value),r.type!==void 0&&(d.$type=r.type),t(s,n,d),{id:n}}},delete:{description:"Delete a design token by id.",mcpName:"delete_token",schema:[{tokenId:"String"}],examples:[{args:{tokenId:"tk_abc"},description:"Delete a token"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{removeToken:t}=await import("./removeToken-6K5JDRMK.js"),s=e.ref(["tokens"]);return t(s,o.tokenId),{id:o.tokenId}}}}));function tn(a,o){if(a==null||typeof a!="string")return a;switch(o){case"number":return a===""?0:Number(a);case"boolean":return a==="true"||a==="1";case"array":case"object":if(!a||a==="")return o==="array"?[]:{};try{return JSON.parse(a)}catch{return o==="array"?[]:{}}default:return a}}p(tn,"coerceValue");function Ae(a,{key:o,name:e,index:t}){let s=o??e;return s!==void 0?a.findIndex(n=>(n.key??n.name)===s):t??-1}p(Ae,"resolveIndex");var Rn=_("store",a=>({create:{description:"Create a data store. Stores hold reactive values, computed properties, and actions that nodes can bind to (via repeat, model, render, or {{expressions}}). The store id is its name. Optionally pass state/computed/actions arrays to seed the store in one call. Store actions and computed use this for state (e.g. function () { this.items = []; }), not a context first argument.",alias:"createStore",mcpName:"create_store",schema:[{name:"String",state:"Array?",computed:"Array?",actions:"Array?"}],examples:[{args:{name:"todo",state:[{key:"newText",type:"string",value:""},{key:"items",type:"array",value:[]}],actions:[{name:"addTodo",code:'function () { const text = this.newText.trim(); if (!text) return; this.items = [...this.items, { text, done: false }]; this.newText = ""; }'}]},description:"Create a todo store with state and actions in one call"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{validateStorePayload:t}=await import("./validateStorePayload-PJ5AD64S.js"),{addStore:s}=await import("./addStore-PHY52777.js"),{createValue:n}=await import("./createValue-QMG7LOR4.js"),{createComputed:r}=await import("./createComputed-6XPJKJMP.js"),{createAction:d}=await import("./createAction-XVCUAVTP.js");t(o);let c=e.ref(["stores"]),l=s(c,o.name);return o.state?.length&&c.set([l,"state"],o.state.map(u=>n({key:u.key,type:u.type,value:tn(u.value,u.type)}))),o.computed?.length&&c.set([l,"computed"],o.computed.map(u=>r({name:u.name,code:u.code}))),o.actions?.length&&c.set([l,"actions"],o.actions.map(u=>d({name:u.name,code:u.code}))),{id:l}}},remove:{description:"Remove a data store and everything in it.",alias:"removeStore",schema:[{storeId:"String"}],returns:"{ id: String }",handler:async o=>{let e=a("state"),{removeStore:t}=await import("./removeStore-BQDKUY3I.js");return t(e.ref(["stores"]),o.storeId),{id:o.storeId}}},addValue:{description:"Add a reactive value to a store. key is the value name, type is string/number/boolean/array/object, value is the initial value.",mcpName:"add_store_value",schema:[{storeId:"String",key:"String?",type:"String?",value:"String?"}],examples:[{args:{storeId:"cart",key:"items",type:"array",value:"[]"},description:"Add an items array to the cart store"}],returns:"{ storeId: String, key: String, index: Number }",handler:async o=>{let e=a("state"),{addValue:t}=await import("./addValue-NBDF57UK.js"),{updateValue:s}=await import("./updateValue-2B5ZNGZI.js"),n=e.ref(["stores"]),{storeId:r,key:d,type:c,value:l}=o;t(n,r,c);let u=n.get([r,"state"])??[],g=0,b=u[g];if(d!==void 0||l!==void 0){let w=c??b.type;s(n,r,g,{key:d??b.key,type:w,value:tn(l??b.value,w)})}return{storeId:r,key:d??b.key,index:g}}},updateValue:{description:"Update a store value by key (or index). changes may include key, type, value.",schema:[{storeId:"String",key:"String?",index:"Number?",changes:"Object"}],examples:[{args:{storeId:"cart",key:"items",changes:{value:'[{"id":1}]'}},description:"Set the items value"}],returns:"{ storeId: String, index: Number }",handler:async o=>{let e=a("state"),{updateValue:t}=await import("./updateValue-2B5ZNGZI.js"),s=e.ref(["stores"]),{storeId:n,changes:r={}}=o,d=s.get([n,"state"])??[],c=Ae(d,o);if(c<0)throw new Error(`store value not found: ${o.key??o.index} in ${n}`);let l={...d[c],...r};return r.value!==void 0&&(l.value=tn(l.value,l.type)),t(s,n,c,l),{storeId:n,index:c}}},removeValue:{description:"Remove a store value by key (or index).",schema:[{storeId:"String",key:"String?",index:"Number?"}],returns:"{ storeId: String, index: Number }",handler:async o=>{let e=a("state"),{removeValue:t}=await import("./removeValue-OTRFOOIB.js"),s=e.ref(["stores"]),n=s.get([o.storeId,"state"])??[],r=Ae(n,o);if(r<0)throw new Error(`store value not found: ${o.key??o.index} in ${o.storeId}`);return t(s,o.storeId,r),{storeId:o.storeId,index:r}}},addComputed:{description:"Add a computed property to a store. code is a function body string: function () { ... } with store state available on this (e.g. this.items).",schema:[{storeId:"String",name:"String?",code:"String?"}],examples:[{args:{storeId:"cart",name:"total",code:"function () { return this.items.reduce((s, i) => s + i.price, 0); }"},description:"Add a cart total computed"}],returns:"{ storeId: String, name: String, index: Number }",handler:async o=>{let e=a("state"),{addComputed:t}=await import("./addComputed-FQVHDUIE.js"),{updateComputed:s}=await import("./updateComputed-UALAJ4RF.js"),n=e.ref(["stores"]),{storeId:r,name:d,code:c}=o;t(n,r);let l=n.get([r,"computed"])??[],u=0,g=l[u];return(d!==void 0||c!==void 0)&&s(n,r,u,{name:d??g.name,code:c??g.code}),{storeId:r,name:d??g.name,index:u}}},updateComputed:{description:"Update a store computed property by name (or index). changes may include name, code.",schema:[{storeId:"String",name:"String?",index:"Number?",changes:"Object"}],returns:"{ storeId: String, index: Number }",handler:async o=>{let e=a("state"),{updateComputed:t}=await import("./updateComputed-UALAJ4RF.js"),s=e.ref(["stores"]),{storeId:n,changes:r={}}=o,d=s.get([n,"computed"])??[],c=Ae(d,o);if(c<0)throw new Error(`store computed not found: ${o.name??o.index} in ${n}`);return t(s,n,c,{...d[c],...r}),{storeId:n,index:c}}},removeComputed:{description:"Remove a store computed property by name (or index).",schema:[{storeId:"String",name:"String?",index:"Number?"}],returns:"{ storeId: String, index: Number }",handler:async o=>{let e=a("state"),{removeComputed:t}=await import("./removeComputed-3HL3BXKY.js"),s=e.ref(["stores"]),n=s.get([o.storeId,"computed"])??[],r=Ae(n,o);if(r<0)throw new Error(`store computed not found: ${o.name??o.index} in ${o.storeId}`);return t(s,o.storeId,r),{storeId:o.storeId,index:r}}},addAction:{description:"Add an action to a store. code is a function body string: function () { ... } that can read and mutate store values via this (e.g. this.items).",schema:[{storeId:"String",name:"String?",code:"String?"}],examples:[{args:{storeId:"cart",name:"clear",code:"function () { this.items = []; }"},description:"Add a clear-cart action"}],returns:"{ storeId: String, name: String, index: Number }",handler:async o=>{let e=a("state"),{addAction:t}=await import("./addAction-FSI6BXB4.js"),{updateAction:s}=await import("./updateAction-XSXILF2R.js"),n=e.ref(["stores"]),{storeId:r,name:d,code:c}=o;t(n,r);let l=n.get([r,"actions"])??[],u=0,g=l[u];return(d!==void 0||c!==void 0)&&s(n,r,u,{name:d??g.name,code:c??g.code}),{storeId:r,name:d??g.name,index:u}}},updateAction:{description:"Update a store action by name (or index). changes may include name, code.",schema:[{storeId:"String",name:"String?",index:"Number?",changes:"Object"}],returns:"{ storeId: String, index: Number }",handler:async o=>{let e=a("state"),{updateAction:t}=await import("./updateAction-XSXILF2R.js"),s=e.ref(["stores"]),{storeId:n,changes:r={}}=o,d=s.get([n,"actions"])??[],c=Ae(d,o);if(c<0)throw new Error(`store action not found: ${o.name??o.index} in ${n}`);return t(s,n,c,{...d[c],...r}),{storeId:n,index:c}}},removeAction:{description:"Remove a store action by name (or index).",schema:[{storeId:"String",name:"String?",index:"Number?"}],returns:"{ storeId: String, index: Number }",handler:async o=>{let e=a("state"),{removeAction:t}=await import("./removeAction-H3EDG2CG.js"),s=e.ref(["stores"]),n=s.get([o.storeId,"actions"])??[],r=Ae(n,o);if(r<0)throw new Error(`store action not found: ${o.name??o.index} in ${o.storeId}`);return t(s,o.storeId,r),{storeId:o.storeId,index:r}}}}));var Mn=_("animation",a=>({create:{description:'Create an animation asset. keyframes is a Web Animations API keyframe array (e.g. [{ opacity: 0 }, { opacity: 1 }]). scope is "project" (reusable) or "node". Bind it to nodes with animation:bind.',mcpName:"create_animation",schema:[{name:"String",keyframes:"Array",duration:"Number?",easing:"String?",iterations:"Number?",fill:"String?",scope:"String?"}],examples:[{args:{name:"Fade In",keyframes:[{opacity:0},{opacity:1}],duration:400,easing:"ease-out",scope:"project"},description:"Create a reusable fade-in animation"}],returns:"{ id: String, name: String }",handler:async o=>{let e=a("state"),{createAnimation:t}=await import("./createAnimation-YAXYGTZ2.js"),{createAnimationId:s}=await import("./id-T5EU463K.js"),n=e.ref(["animations"]),{name:r,keyframes:d,duration:c,easing:l,iterations:u,fill:g,scope:b}=o,w=s();return n.set([w],t({name:r,keyframes:d,duration:c,easing:l,iterations:u,fill:g,scope:b??"project"})),{id:w,name:r}}},update:{description:"Update an animation asset. changes may include name, keyframes, duration, easing, iterations, fill, direction, delay.",schema:[{animationId:"String",changes:"Object"}],examples:[{args:{animationId:"anim_abc",changes:{duration:600}},description:"Slow an animation down"}],returns:"{ id: String }",handler:async o=>{let t=a("state").ref(["animations"]),{animationId:s,changes:n={}}=o;if(!t.get([s]))throw new Error(`animation not found: ${s}`);for(let[d,c]of Object.entries(n))t.set([s,d],c);return{id:s}}},delete:{description:"Delete an animation asset by id. Does not remove bindings that reference it.",schema:[{animationId:"String"}],returns:"{ id: String }",handler:async o=>(a("state").ref(["animations"]).remove([o.animationId]),{id:o.animationId})},bind:{description:'Bind an animation to a node. play is the trigger: "mount", "click", "hover", etc. Set reverse to a trigger to play backwards on that event.',mcpName:"bind_animation",schema:[{nodeId:"String",animationId:"String",play:"String?",reverse:"String?"}],examples:[{args:{nodeId:"nd_hero",animationId:"anim_abc",play:"mount"},description:"Fade the hero in on mount"}],returns:"{ nodeId: String, animationId: String, index: Number }",handler:async o=>{let e=a("state"),{addAnimationBinding:t}=await import("./addAnimationBinding-Y4VROY4L.js"),s=e.ref(["nodes"]),{nodeId:n,animationId:r,play:d,reverse:c}=o,l={id:r,play:d??"mount"};return c!==void 0&&(l.reverse=c),t(s,n,l),{nodeId:n,animationId:r}}},unbind:{description:"Remove an animation binding from a node by animation id.",schema:[{nodeId:"String",animationId:"String"}],returns:"{ nodeId: String, animationId: String }",handler:async o=>{let e=a("state"),{removeAnimationBinding:t}=await import("./removeAnimationBinding-JRXL2AOH.js");return t(e.ref(["nodes"]),o.nodeId,o.animationId),{nodeId:o.nodeId,animationId:o.animationId}}},updateBinding:{description:"Update an animation binding on a node by animation id. binding may include play, reverse, or id.",schema:[{nodeId:"String",animationId:"String",binding:"Object"}],returns:"{ nodeId: String, animationId: String }",handler:async o=>{let e=a("state"),{updateAnimationBinding:t}=await import("./updateAnimationBinding-LQTVD3O6.js");return t(e.ref(["nodes"]),o.nodeId,o.animationId,o.binding),{nodeId:o.nodeId,animationId:o.animationId}}}}));var Pn=[Ln,Tn,_n,$n,Rn,Mn];var Dn={jui_fadeIn:{name:"Fade In",category:"entrance",defaultPlay:"mount",duration:600,easing:"ease",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"0"}},{offset:1,properties:{opacity:"1"}}]},jui_fadeInUp:{name:"Fade In Up",category:"entrance",defaultPlay:"mount",duration:600,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"0",transform:"translateY(30px)"}},{offset:1,properties:{opacity:"1",transform:"translateY(0)"}}]},jui_fadeInDown:{name:"Fade In Down",category:"entrance",defaultPlay:"mount",duration:600,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"0",transform:"translateY(-30px)"}},{offset:1,properties:{opacity:"1",transform:"translateY(0)"}}]},jui_slideInLeft:{name:"Slide In Left",category:"entrance",defaultPlay:"mount",duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"0",transform:"translateX(-60px)"}},{offset:1,properties:{opacity:"1",transform:"translateX(0)"}}]},jui_slideInRight:{name:"Slide In Right",category:"entrance",defaultPlay:"mount",duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"0",transform:"translateX(60px)"}},{offset:1,properties:{opacity:"1",transform:"translateX(0)"}}]},jui_slideInUp:{name:"Slide In Up",category:"entrance",defaultPlay:"mount",duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"0",transform:"translateY(60px)"}},{offset:1,properties:{opacity:"1",transform:"translateY(0)"}}]},jui_slideInDown:{name:"Slide In Down",category:"entrance",defaultPlay:"mount",duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"0",transform:"translateY(-60px)"}},{offset:1,properties:{opacity:"1",transform:"translateY(0)"}}]},jui_scaleIn:{name:"Scale In",category:"entrance",defaultPlay:"mount",duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"0",transform:"scale(0.8)"}},{offset:1,properties:{opacity:"1",transform:"scale(1)"}}]},jui_zoomIn:{name:"Zoom In",category:"entrance",defaultPlay:"mount",duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"0",transform:"scale(0.3)"}},{offset:1,properties:{opacity:"1",transform:"scale(1)"}}]}};var zn={jui_fadeOut:{name:"Fade Out",category:"exit",defaultPlay:"mount",duration:600,easing:"ease",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"1"}},{offset:1,properties:{opacity:"0"}}]},jui_fadeOutDown:{name:"Fade Out Down",category:"exit",defaultPlay:"mount",duration:600,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"1",transform:"translateY(0)"}},{offset:1,properties:{opacity:"0",transform:"translateY(30px)"}}]},jui_slideOutLeft:{name:"Slide Out Left",category:"exit",defaultPlay:"mount",duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"1",transform:"translateX(0)"}},{offset:1,properties:{opacity:"0",transform:"translateX(-60px)"}}]},jui_slideOutRight:{name:"Slide Out Right",category:"exit",defaultPlay:"mount",duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"1",transform:"translateX(0)"}},{offset:1,properties:{opacity:"0",transform:"translateX(60px)"}}]},jui_scaleOut:{name:"Scale Out",category:"exit",defaultPlay:"mount",duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards",keyframes:[{offset:0,properties:{opacity:"1",transform:"scale(1)"}},{offset:1,properties:{opacity:"0",transform:"scale(0.8)"}}]}};var Un={jui_pulse:{name:"Pulse",category:"emphasis",defaultPlay:"pointerenter",defaultReset:"pointerleave",duration:1e3,easing:"ease-in-out",fill:"none",keyframes:[{offset:0,properties:{transform:"scale(1)"}},{offset:.5,properties:{transform:"scale(1.05)"}},{offset:1,properties:{transform:"scale(1)"}}]},jui_bounce:{name:"Bounce",category:"emphasis",defaultPlay:"pointerenter",defaultReset:"pointerleave",duration:800,easing:"cubic-bezier(0.28, 0.84, 0.42, 1)",fill:"none",keyframes:[{offset:0,properties:{transform:"translateY(0)"}},{offset:.2,properties:{transform:"translateY(0)"}},{offset:.4,properties:{transform:"translateY(-20px)"}},{offset:.5,properties:{transform:"translateY(0)"}},{offset:.6,properties:{transform:"translateY(-10px)"}},{offset:.8,properties:{transform:"translateY(0)"}},{offset:1,properties:{transform:"translateY(0)"}}]},jui_shake:{name:"Shake",category:"emphasis",defaultPlay:"pointerenter",defaultReset:"pointerleave",duration:600,easing:"ease-in-out",fill:"none",keyframes:[{offset:0,properties:{transform:"translateX(0)"}},{offset:.1,properties:{transform:"translateX(-8px)"}},{offset:.2,properties:{transform:"translateX(8px)"}},{offset:.3,properties:{transform:"translateX(-8px)"}},{offset:.4,properties:{transform:"translateX(8px)"}},{offset:.5,properties:{transform:"translateX(-4px)"}},{offset:.6,properties:{transform:"translateX(4px)"}},{offset:.7,properties:{transform:"translateX(-2px)"}},{offset:.8,properties:{transform:"translateX(2px)"}},{offset:1,properties:{transform:"translateX(0)"}}]}};var Bn={jui_flash:{name:"Flash",category:"attention",defaultPlay:"pointerenter",defaultReset:"pointerleave",duration:800,easing:"ease-in-out",fill:"none",keyframes:[{offset:0,properties:{opacity:"1"}},{offset:.25,properties:{opacity:"0"}},{offset:.5,properties:{opacity:"1"}},{offset:.75,properties:{opacity:"0"}},{offset:1,properties:{opacity:"1"}}]},jui_heartbeat:{name:"Heartbeat",category:"attention",defaultPlay:"pointerenter",defaultReset:"pointerleave",duration:1200,easing:"ease-in-out",fill:"none",keyframes:[{offset:0,properties:{transform:"scale(1)"}},{offset:.14,properties:{transform:"scale(1.3)"}},{offset:.28,properties:{transform:"scale(1)"}},{offset:.42,properties:{transform:"scale(1.3)"}},{offset:.7,properties:{transform:"scale(1)"}},{offset:1,properties:{transform:"scale(1)"}}]}};var jn={...Dn,...zn,...Un,...Bn};import{defineContracts as ls}from"@jucie.io/engine-socket/client";function Hn(a,o,e){let t=o.getSelectedRids?.()??[],s=a.get(["nodes"])??{},n=t.length>0?o.getIds(t):[],r=t.length>0?as(s,n,t,o):rs(o);return{framework:e.get(["config","framework"])??"react",componentCatalog:o.getMeta(),stores:a.get(["stores"])??{},tokens:a.get(["tokens"])??{},animations:a.get(["animations"])??{},...r,availableFrames:rn(),layoutHints:is(s,t)}}p(Hn,"buildAiContext");function rs(a){return{scope:"global",jsx:a.projectPuppetJsx("app",{maxDepth:8})}}p(rs,"buildGlobalContext");function as(a,o,e,t){let s=cs(a,o[0])??"app";return{scope:"local",selectedIds:o,jsx:t.projectPuppetJsx(s)}}p(as,"buildLocalContext");function is(a,o){let e={viewportPositions:[],usedPositions:[],containerLayouts:{},suggestedViewportPosition:null},t=0;return Object.entries(a).forEach(([s,n])=>{if(n.type==="frame"&&n.bounds){let{top:r,left:d,width:c,height:l}=n.bounds,u={id:s,name:n.name,top:r||0,left:d||0,width:c||375,height:l||667};e.viewportPositions.push(u);let g=u.left+u.width;g>t&&(t=g)}if(n.type!=="frame"&&n.style?.default?.position==="absolute"){let{top:r,left:d,width:c,height:l}=n.style.default;e.usedPositions.push({id:s,top:parseInt(r)||0,left:parseInt(d)||0,width:parseInt(c)||100,height:parseInt(l)||50})}(n.layout==="flex"||n.style?.default?.display==="flex")&&(e.containerLayouts[s]="flex"),(n.layout==="grid"||n.style?.default?.display==="grid")&&(e.containerLayouts[s]="grid")}),e.suggestedViewportPosition={top:0,left:t+50},e}p(is,"buildLayoutHints");function ds(a,o){for(let[e,t]of Object.entries(a))if(t.children?.includes(o))return e;return null}p(ds,"findParent");function cs(a,o){let e=o;for(;e;){let t=a[e];if(!t)return null;if(t.type==="frame")return e;e=ds(a,e)}return null}p(cs,"findFrameAncestor");var ps=5e3,Wn=ls("ai:stage",a=>{let[o,e,t,s,n]=a("state","sceneCompiler","cache","log","aiOps");function r(d=ps){return new Promise(c=>{let l=setTimeout(()=>{u(),c(null)},d),u=e.addNodeGraphListener((g,b)=>{clearTimeout(l),u(),c({updated:g,removed:b})})})}return p(r,"waitForRender"),{"context:capture":{timeoutMs:15e3,handler:async({awaitRender:d}={})=>{try{return d&&await r(),Hn(o,e,t)}catch(c){throw s.error("ai context capture failed",{error:c.message}),c}}},"operations:execute":{timeoutMs:6e4,handler:async({batch:d}={})=>{try{o.history.group();try{return await n.executeBatch(d??{operations:[]})}finally{o.history.commit(d?.description||d?.message||"AI changes")}}catch(c){throw s.error("ai operations execute failed",{error:c.message}),c}}}}});import{defineContracts as ms}from"@jucie.io/engine-socket/client";var Fn=ms("screenshot",a=>{let[o,e,t]=a("state","cache","channel");return{capture:{timeoutMs:12e4,handler:async()=>{let s=o.get(["nodes"]),r=(s?.app?.children??[]).filter(l=>s[l]?.type==="frame").map(l=>({id:l,name:s[l].name||l,bounds:s[l].bounds})),d=e.get(["config"]),c=[];for(let l of r){let u={config:{basePath:d.basePath??`http://localhost:${d.port}`,view:"screen-capture",env:"dev",nodeId:l.id},width:l.bounds?.width??1440,height:l.bounds?.height??900,result:"base64"},g=await t.to("electronMain").request("screenCapture:capture",u);c.push({id:l.id,name:l.name,imageData:`data:image/png;base64,${g.base64}`})}return{frames:c}}}}});function ws(a){if(typeof window<"u"){let e=window.location.protocol==="https:"?"wss:":"ws:",t=window.location.host;if(a.basePath)try{let n=(a.basePath.startsWith("http")?new URL(a.basePath).pathname:a.basePath).replace(/\/$/,"");if(n)return`${e}//${t}${n}/socket`}catch{}return a.projectId?`${e}//${t}/p/${a.projectId}/socket`:`${e}//${t}/socket`}return`ws://localhost:${a.port??3e3}/socket`}p(ws,"designSocketUrl");var Vr=p(async(a,o,e,t)=>{try{let{loadProjectMain:s}=await import("./react-G5SWVCZA.js");await s();let n=(await import("@components"))?.default??{},r=pt(e.$el||"app"),d=pt("temp"),c=pt("components"),l=Nn();a.install(fs.configure({plugins:[gs,Je.configure({actorId:crypto.randomUUID()}),ys,Ss,bs]}),nn.configure(e),Ne,us,hs.configure({url:ws(e),auth:t??null,reconnect:{enabled:!0}}),Le.configure({visibility:!0,focus:!1,freeze:!0,sleepDetection:{enabled:!0,threshold:1e4}}),Ge),a.cache.load({config:e,token:t,$app:r,$temp:d,$components:c,viewport:l}),a.sceneCompiler.loadPrototypes(sn),a.sceneCompiler.loadSources(n),a.aiOps.use(...Pn),a.socket.use(Wn,Fn),a.socket.subscribe("design:load",async g=>{a.state.ledger.hydrate(g),await a.sceneCompiler.create("app","app"),await a.sceneCompiler.create("temp","temp",{mode:"temp"}),await a.sceneCompiler.create("components","components",{mode:"components"})}),a.socket.subscribe("ai:sessions:list",g=>{a.cache.set(["ai","sessions"],g),a.channel.to("editor").publish("ai:sessions:set",g)}),a.socket.subscribe("ledger:apply",g=>a.state.ledger.apply(g)),a.channel.portProvider(async()=>await a.windowBridge.to("parent").request("jucie:port:request",e.id)),a.state.ledger.addChangeListener(g=>{g.length&&a.socket.publish("ledger:sync",g)});let u=await a.channel.connect();if(u){let{nodeGraphContracts:g}=await import("./nodeGraph-ZXVLUHBH.js"),{historyContracts:b}=await import("./history-BNHS2T3X.js"),{userContracts:w}=await import("./user-LKHAFHX4.js"),{assetsContracts:I}=await import("./assets-RXVS3AKR.js"),{aiContracts:T}=await import("./aiRelay-FDHMGC33.js"),{aiSessionContracts:se}=await import("./aiSessionContracts-SCDHZZA3.js"),{aiMessagesContracts:Pt}=await import("./aiMessagesContracts-3IZEU24J.js"),{aiAttachmentContracts:rt}=await import("./aiAttachmentContracts-4GX7AD4P.js"),{contentEditorContracts:fe}=await import("./contentEditor-PCXXWARK.js"),{viewportContracts:Dt}=await import("./viewport-ANZ3RTUP.js"),{contracts:zt}=await import("./main-NTDWDKF7.js"),{contracts:at}=await import("./main-TUNP7F4N.js"),{contracts:it}=await import("./main-DDWQFH23.js"),{contracts:dt}=await import("./main-BLNWJ3UJ.js");return u.use(Dt,g,b,w,I,T,se,Pt,rt,fe,...zt,...at,...it,...dt),Oe(()=>a.state.get(["nodes"]),y=>{if(!y)return;let S=Object.keys(y).filter(E=>y[E]?.type==="component"),C=[...a.sceneCompiler.getMeta()];for(let E of S){let B=y[E];C.push({displayName:B.name||E,category:"local",keywords:[B.name,"component"],library:null,tagName:E})}a.channel.to("editor").publish("components:set",C)}),Oe(()=>a.state.get(["tokens"]),y=>{a.channel.to("editor").publish("tokens:set",y??{}),a.channel.to("panel-tokens").publish("token:set",y??{})}),Oe(()=>a.state.get(["stores"]),y=>{a.channel.to("editor").publish("stores:set",y??{})}),Oe(()=>a.state.get(["assets"]),y=>{a.channel.to("editor").publish("assets:set",y??{})}),Oe(()=>a.state.get(["libraryClassNames"]),y=>{a.channel.to("editor").publish("libraryClassNames:set",y??[])}),Oe(()=>{let y=a.state.get(["animations"])??{};return Object.entries(y).map(([S,C])=>({id:S,...C}))},y=>{a.channel.to("editor").publish("animations:set",y??[])}),a.sceneCompiler.addNodeGraphListener((y,S,C)=>{C?u.to("renderWorker","editor").publish("nodeGraph:set",y):u.to("renderWorker","editor").publish("nodeGraph:update",y,S),a.sceneCompiler.projectPuppetJsx(["app"])}),a.channel.to("editor").publish("elements:set",dn),a.channel.to("editor").publish("frames:set",on),a.channel.to("editor").publish("graphics:set",an),a.channel.to("editor").publish("globalAnimations:set",jn),a.channel.to("editor").publish("components:set",a.sceneCompiler.getMeta()),a.channel.to("editor").publish("assets:set",a.state.get(["assets"])??{}),a.sceneCompiler.startNodeGraph(),a.pageLifecycle.on("hidden",()=>{a.sceneCompiler.pauseNodeGraph()}),a.pageLifecycle.on("visible",()=>{a.sceneCompiler.forceNodeGraph()}),a.pageLifecycle.on("resume",()=>{a.socket.ready()||a.socket.connect(),a.sceneCompiler.forceNodeGraph()}),a.channel.onEnable(()=>{u.to("renderWorker").publish("nodeGraph:remove");let y=a.sceneCompiler.getNodeGraph();u.to("renderWorker","editor").publish("nodeGraph:set",y);let S=a.sceneCompiler.getViewport(),C=a.sceneCompiler.getSelectedRids(),E=a.sceneCompiler.getFocalRid();u.to("renderWorker").publish("viewport:set",S),u.to("renderWorker").publish("selection:rids:set",C),u.to("renderWorker").publish("selection:focalRid:set",E),a.channel.to("editor").publish("stores:set",a.state.get(["stores"])??{}),a.channel.to("editor").publish("tokens:set",a.state.get(["tokens"])??{});let B=a.state.get(["animations"])??{};a.channel.to("editor").publish("animations:set",Object.entries(B).map(([oe,N])=>({id:oe,...N}))),a.channel.to("editor").publish("assets:set",a.state.get(["assets"])??{}),a.channel.to("editor").publish("libraryClassNames:set",a.state.get(["libraryClassNames"])??[]),a.channel.to("editor").publish("components:set",a.sceneCompiler.getMeta()),a.channel.to("editor").publish("ai:sessions:set",a.cache.get(["ai","sessions"])??[])}),u.subscribe("selection:rids:set",y=>{a.sceneCompiler.setSelectedRids(y)}),u.subscribe("selection:focalRid:set",y=>{a.sceneCompiler.setFocalRid(y||null)}),u.subscribe("animation:preview:play",(y,S)=>{for(let C of S){let E=a.sceneCompiler.animate(C,y,{fill:"none"}),B=Array.isArray(E)?E:E?[E]:[];for(let oe of B)oe.addEventListener("finish",()=>{u.to("editor").publish("animation:preview:finished",y)},{once:!0})}}),u.subscribe("animation:preview:stop",(y,S)=>{for(let C of S)a.sceneCompiler.cancelAnimation(C,y)}),u.subscribe("animation:preview:seek",(y,S)=>{a.sceneCompiler.seekAnimation(y,S)}),a.socket.subscribe("presence:join",(y,S)=>u.to("renderWorker").publish("user:connect",y,S)),a.socket.subscribe("presence:leave",y=>u.to("renderWorker").publish("user:disconnect",y)),a.socket.subscribe("presence:update",(y,S)=>u.to("renderWorker").publish("user:update",y,S)),a.socket.subscribe("presence:snapshot",y=>u.to("renderWorker").publish("user:setAll",y)),e}else throw new Error("Stage channel failed to connect")}catch(s){return{error:s.message}}},"createDesignBootstrap");export{Vr as createDesignBootstrap};
@@ -1 +0,0 @@
1
- import{b as m}from"./chunk-LOMYBRPE.js";import"./chunk-6EIGTDJQ.js";import"./chunk-X6HJCJ3C.js";import"./chunk-DSKLC3WF.js";import"./chunk-BEYPHEBR.js";import"./chunk-55KIFGBN.js";import"./chunk-YMUEID4R.js";import"./chunk-4Y2YKFNP.js";import"./chunk-KCVDFPJI.js";import"./chunk-AJVQKPCQ.js";import"./chunk-32WBU6VH.js";import"./chunk-OPVVANFS.js";import"./chunk-MLL2ANA6.js";import"./chunk-7L4V7JRT.js";import"./chunk-HI7ALMQD.js";import"./chunk-ZCAGAEP2.js";import"./chunk-SRRJXNKG.js";import"./chunk-L7VQYHXR.js";import"./chunk-YN5VQBDN.js";import"./chunk-5OOKGI32.js";import"./chunk-5GOTVZFC.js";import"./chunk-D6NZE747.js";import"./chunk-LKQDYABR.js";import"./chunk-ARGFDBBK.js";import"./chunk-HBEWYDHO.js";import"./chunk-V4F2T2VR.js";import"./chunk-DCOWKGJI.js";import"./chunk-45CXRNTO.js";import"./chunk-RZ74UWF3.js";import"./chunk-EPBR3BES.js";import"./chunk-45LFQ7GZ.js";import"./chunk-TAMEB64F.js";import"./chunk-OB6WEYNB.js";import"./chunk-VQ7C6EUZ.js";import"./chunk-ODSNVDNS.js";import"./chunk-EO7UBT4B.js";import"./chunk-D3V5OTLH.js";import"./chunk-BS35FNXF.js";import"./chunk-GDGHGTYN.js";import"./chunk-TEUB5MUS.js";import"./chunk-PU3DZ3MV.js";import"./chunk-XKEDVW6X.js";import"./chunk-G37FCH35.js";import"./chunk-QTBRJH2Q.js";import"./chunk-GURTWV7H.js";import"./chunk-H3VC542J.js";import"./chunk-SECM4LZZ.js";import"./chunk-L4CU73MS.js";import"./chunk-U3IV5DRQ.js";import"./chunk-FSECMWCM.js";import"./chunk-4MTM6BM7.js";import"./chunk-OWARHUEW.js";import"./chunk-FTRUORC5.js";import"./chunk-TBDEUSP4.js";import"./chunk-P3WBUN2B.js";import"./chunk-C3DY5XVP.js";import"./chunk-PUPSHZWC.js";import"./chunk-YZBMJY7E.js";import"./chunk-5SOTDESD.js";import"./chunk-U2OFNNHI.js";import"./chunk-K6PCHHH7.js";import"./chunk-CVDUFBBG.js";import"./chunk-2YZN7IFG.js";import"./chunk-IERYKQMJ.js";import"./chunk-TIIQLNVN.js";import"./chunk-ZEWKYCOX.js";import"./chunk-IEXI4PPB.js";import{a as c}from"./chunk-TS6FANUG.js";import{a as i}from"./chunk-33W74KNB.js";import{a as p}from"./chunk-MXIF2FGR.js";import"./chunk-LOILFK74.js";import"./chunk-LR6DSVPP.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-GG4NWMR6.js";import{a as e}from"./chunk-K7MC6G4X.js";import{Channel as f}from"@jucie.io/engine-message";import{State as u}from"@jucie.io/engine-state";import{Reactive as C}from"@jucie.io/state-reactive";import{Matcher as S}from"@jucie.io/state-matcher";var T=e(async(o,a,t)=>{let{loadProjectMain:s}=await import("./react-G5SWVCZA.js");await s();let{scene:r}=await import("jucie:scene"),l=(await import("@components"))?.default??{},n=c(t.$el||"app");return o.install(u.configure({plugins:[C,S]}),f.configure(),i.configure(t)),o.cache.load({config:t,$app:n}),o.sceneCompiler.loadPrototypes(p),o.sceneCompiler.loadSources(l),m(r),o.state.load(r),await o.sceneCompiler.create("app",t.nodeId),a&&await o.channel.connect(a,async d=>{let{windowContracts:w}=await import("./window-RFC7WGLM.js");d.use(w)}),t},"createDevBootstrap");export{T as createDevBootstrap};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-CVDUFBBG.js";import"./chunk-2YZN7IFG.js";import"./chunk-K7MC6G4X.js";export{a as disconnectNode};
@@ -1 +0,0 @@
1
- import{a,b,c,d,e}from"./chunk-6EIGTDJQ.js";import"./chunk-X6HJCJ3C.js";import"./chunk-DSKLC3WF.js";import"./chunk-BEYPHEBR.js";import"./chunk-4Y2YKFNP.js";import"./chunk-KCVDFPJI.js";import"./chunk-AJVQKPCQ.js";import"./chunk-32WBU6VH.js";import"./chunk-OPVVANFS.js";import"./chunk-MLL2ANA6.js";import"./chunk-7L4V7JRT.js";import"./chunk-HI7ALMQD.js";import"./chunk-SRRJXNKG.js";import"./chunk-L7VQYHXR.js";import"./chunk-YN5VQBDN.js";import"./chunk-5OOKGI32.js";import"./chunk-K7MC6G4X.js";export{a as actionsContract,b as computedContract,e as contracts,c as stateContract,d as storeContract};
@@ -1 +0,0 @@
1
- import{A as F,B as G,C as H,D as I,E as J,F as K,G as L,H as M,I as N,J as O,K as P,L as Q,M as R,a as f,b as g,c as h,d as i,e as j,f as k,g as l,h as m,i as n,j as o,k as p,l as q,m as r,n as s,o as t,p as u,q as v,r as w,s as x,t as y,u as z,v as A,w as B,x as C,y as D,z as E}from"./chunk-55KIFGBN.js";import"./chunk-YMUEID4R.js";import"./chunk-ZCAGAEP2.js";import"./chunk-5GOTVZFC.js";import"./chunk-D6NZE747.js";import{a as e}from"./chunk-LKQDYABR.js";import"./chunk-ARGFDBBK.js";import"./chunk-HBEWYDHO.js";import"./chunk-V4F2T2VR.js";import"./chunk-DCOWKGJI.js";import"./chunk-45CXRNTO.js";import"./chunk-RZ74UWF3.js";import"./chunk-EPBR3BES.js";import"./chunk-45LFQ7GZ.js";import"./chunk-TAMEB64F.js";import"./chunk-OB6WEYNB.js";import"./chunk-VQ7C6EUZ.js";import"./chunk-ODSNVDNS.js";import"./chunk-EO7UBT4B.js";import"./chunk-D3V5OTLH.js";import"./chunk-BS35FNXF.js";import"./chunk-GDGHGTYN.js";import"./chunk-TEUB5MUS.js";import"./chunk-PU3DZ3MV.js";import"./chunk-XKEDVW6X.js";import"./chunk-G37FCH35.js";import"./chunk-QTBRJH2Q.js";import"./chunk-GURTWV7H.js";import"./chunk-H3VC542J.js";import"./chunk-SECM4LZZ.js";import"./chunk-L4CU73MS.js";import"./chunk-U3IV5DRQ.js";import{c as d}from"./chunk-FSECMWCM.js";import"./chunk-4MTM6BM7.js";import"./chunk-OWARHUEW.js";import"./chunk-FTRUORC5.js";import"./chunk-TBDEUSP4.js";import"./chunk-P3WBUN2B.js";import"./chunk-C3DY5XVP.js";import{a,b,c}from"./chunk-PUPSHZWC.js";import"./chunk-YZBMJY7E.js";import"./chunk-5SOTDESD.js";import"./chunk-U2OFNNHI.js";import"./chunk-K6PCHHH7.js";import"./chunk-CVDUFBBG.js";import"./chunk-2YZN7IFG.js";import"./chunk-IERYKQMJ.js";import"./chunk-TIIQLNVN.js";import"./chunk-ZEWKYCOX.js";import"./chunk-IEXI4PPB.js";import"./chunk-MXIF2FGR.js";import"./chunk-LR6DSVPP.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-GG4NWMR6.js";import"./chunk-K7MC6G4X.js";export{k as addContracts,m as attributeContracts,y as behaviorContracts,f as breakpointContracts,p as buildSlotsFromMeta,g as classNameContracts,h as clipboardContracts,d as cloneNodes,i as contextNameContracts,R as contracts,O as createNode,e as createOption,n as createProp,t as destinationContracts,u as dragContracts,P as elements,l as eventsContracts,a as frames,c as getAvailableFrames,b as getFramePreset,Q as graphics,s as htmlContracts,N as htmlIdContracts,w as interactionStateContracts,z as layoutContracts,v as lifecycleContracts,q as mergeMissingSlotsFromMeta,A as moveContracts,B as nameContracts,C as optionsContracts,D as orderContracts,x as patchContracts,o as propContracts,E as removeContracts,F as renderContracts,G as repeatContracts,H as routeContracts,r as slotContracts,j as statesContracts,I as styleContracts,J as tagNameContracts,K as textContentContracts,L as typeContracts,M as viewportContracts};
@@ -1 +0,0 @@
1
- import{d as a}from"./chunk-YZBMJY7E.js";import"./chunk-5SOTDESD.js";import"./chunk-2YZN7IFG.js";import"./chunk-TIIQLNVN.js";import"./chunk-ZEWKYCOX.js";import"./chunk-GG4NWMR6.js";import"./chunk-K7MC6G4X.js";export{a as moveNodeToLastChildOf};
@@ -1 +0,0 @@
1
- import{e as a}from"./chunk-TIIQLNVN.js";import"./chunk-ZEWKYCOX.js";import"./chunk-GG4NWMR6.js";import"./chunk-K7MC6G4X.js";export{a as normalizeLayoutContext};
@@ -1 +0,0 @@
1
- import{a as p}from"./chunk-TS6FANUG.js";import{a as s}from"./chunk-33W74KNB.js";import{a as i}from"./chunk-MXIF2FGR.js";import"./chunk-LOILFK74.js";import"./chunk-LR6DSVPP.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import{a}from"./chunk-K7MC6G4X.js";import{SocketClient as w}from"@jucie.io/engine-socket/client";import{Channel as u}from"@jucie.io/engine-message";import{State as f}from"@jucie.io/engine-state";import{Reactive as h}from"@jucie.io/state-reactive";import{Matcher as y}from"@jucie.io/state-matcher";var O=a(async(t,r,o)=>{if(!r)throw new Error("[stage/preview] MessagePort is required");let{loadProjectMain:c}=await import("./react-G5SWVCZA.js");await c();let l=(await import("@components"))?.default??{},{socketPath:m="/socket.io"}=o,d=p(o.$el||"app");return t.install(f.configure({plugins:[h,y]}),u.configure(),s.configure(o),w.configure({url:typeof window<"u"?window.location.origin:`http://localhost:${o.port}`,options:{path:m,transports:["websocket","polling"]}})),t.cache.load({config:o,$app:d}),t.sceneCompiler.loadPrototypes(i),t.sceneCompiler.loadSources(l),t.socket.create(),t.socket.get().on("studio:load",async e=>{t.state.ledger.hydrate(e),await t.sceneCompiler.create("app",o.nodeId)}),t.socket.get().on("stage:ledger:apply",e=>t.state.ledger.apply(e)),await t.channel.connect(r,async e=>{let{windowContracts:n}=await import("./window-RFC7WGLM.js");e.use(n)}),o},"createDesignPreviewBootstrap");export{O as createDesignPreviewBootstrap};
@@ -1 +0,0 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"./chunk-LOILFK74.js";import"./chunk-K7MC6G4X.js";var export_createElement=p.createElement;var export_createRoot=q.createRoot;export{m as Jucie,j as JucieInstance,l as JucieRoot,export_createElement as createElement,i as createHost,g as createRef,export_createRoot as createRoot,h as createTrigger,n as defineJucieComponent,f as hostRootProps,c as loadProjectMain,k as mergeInjected,d as provideJucie,o as renderSource,b as setup,a as splitInstanceOverrides,e as useJucie};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-BEYPHEBR.js";import"./chunk-K7MC6G4X.js";export{a as removeAction};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-SMO45CB3.js";import"./chunk-K7MC6G4X.js";export{a as removeAnimationBinding};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-ODSNVDNS.js";import"./chunk-K7MC6G4X.js";export{a as removeAttribute};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-HI7ALMQD.js";import"./chunk-K7MC6G4X.js";export{a as removeComputed};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-TBDEUSP4.js";import"./chunk-K7MC6G4X.js";export{a as removeEvent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-GDGHGTYN.js";import"./chunk-K7MC6G4X.js";export{a as removeLifecycleHook};
@@ -1 +0,0 @@
1
- import{b as a}from"./chunk-U2OFNNHI.js";import"./chunk-K6PCHHH7.js";import"./chunk-CVDUFBBG.js";import"./chunk-2YZN7IFG.js";import"./chunk-K7MC6G4X.js";export{a as removeNode};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-ARGFDBBK.js";import"./chunk-K7MC6G4X.js";export{a as removeOption};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-ZCAGAEP2.js";import"./chunk-K7MC6G4X.js";export{a as removeParamFromRoute};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-EPBR3BES.js";import"./chunk-K7MC6G4X.js";export{a as removeState};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-KCVDFPJI.js";import"./chunk-K7MC6G4X.js";export{a as removeStore};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-NYG3CJEJ.js";import"./chunk-K7MC6G4X.js";export{a as removeToken};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-OPVVANFS.js";import"./chunk-K7MC6G4X.js";export{a as removeValue};
@@ -1 +0,0 @@
1
- import{b as a}from"./chunk-TEUB5MUS.js";import"./chunk-K7MC6G4X.js";export{a as setDestination};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-C3DY5XVP.js";import"./chunk-K7MC6G4X.js";export{a as setHomePage};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-45LFQ7GZ.js";import"./chunk-K7MC6G4X.js";export{a as setHtmlId};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-U3IV5DRQ.js";import"./chunk-K7MC6G4X.js";export{a as setName};
@@ -1 +0,0 @@
1
- import{b as a}from"./chunk-IERYKQMJ.js";import"./chunk-TIIQLNVN.js";import"./chunk-ZEWKYCOX.js";import"./chunk-GG4NWMR6.js";import"./chunk-K7MC6G4X.js";export{a as setNodeLayout};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-HBEWYDHO.js";import"./chunk-5PUPZLDN.js";import"./chunk-K7MC6G4X.js";export{a as setOptionsExpression};
@@ -1 +0,0 @@
1
- import{b as a}from"./chunk-QTBRJH2Q.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";export{a as setRender};
@@ -1 +0,0 @@
1
- import{b as a}from"./chunk-XKEDVW6X.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";export{a as setRepeat};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-DCOWKGJI.js";import"./chunk-K7MC6G4X.js";export{a as setTagName};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-DSKLC3WF.js";import"./chunk-4Y2YKFNP.js";import"./chunk-5OOKGI32.js";import"./chunk-K7MC6G4X.js";export{a as updateAction};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-GIVV5ZCM.js";import"./chunk-K7MC6G4X.js";export{a as updateAnimationBinding};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-OB6WEYNB.js";import"./chunk-VQ7C6EUZ.js";import"./chunk-ODSNVDNS.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";export{a as updateAttribute};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-ZEWKYCOX.js";import"./chunk-K7MC6G4X.js";export{a as updateBounds};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-7L4V7JRT.js";import"./chunk-YN5VQBDN.js";import"./chunk-5OOKGI32.js";import"./chunk-K7MC6G4X.js";export{a as updateComputed};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-OWARHUEW.js";import"./chunk-FTRUORC5.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";export{a as updateEvent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-45CXRNTO.js";import"./chunk-K7MC6G4X.js";export{a as updateHtml};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-D3V5OTLH.js";import"./chunk-BS35FNXF.js";import"./chunk-K7MC6G4X.js";export{a as updateLifecycleHook};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-D6NZE747.js";import"./chunk-LKQDYABR.js";import"./chunk-K7MC6G4X.js";export{a as updateOption};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-P3WBUN2B.js";import"./chunk-K7MC6G4X.js";export{a as updateRoute};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-SECM4LZZ.js";import"./chunk-L4CU73MS.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";export{a as updateState};
@@ -1 +0,0 @@
1
- import{b as a}from"./chunk-GG4NWMR6.js";import"./chunk-K7MC6G4X.js";export{a as updateStyle};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-6ZZBJPN5.js";import"./chunk-K7MC6G4X.js";export{a as updateToken};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-32WBU6VH.js";import"./chunk-L7VQYHXR.js";import"./chunk-K7MC6G4X.js";export{a as updateValue};
@@ -1 +0,0 @@
1
- import"./chunk-K7MC6G4X.js";import{defineContracts as o}from"@jucie.io/engine-message";var a=o("window",r=>({back:{schema:null,namespace:"stage",handler:()=>{r("router").back()}},forward:{schema:null,namespace:"stage",handler:()=>{r("router").forward()}}}));export{a as windowContracts};
@@ -1 +0,0 @@
1
- import{d as a}from"./chunk-JRXMDYLE.js";import"./chunk-ACPGC7BJ.js";import"./chunk-DLHF7QB4.js";import"./chunk-7UENQJSC.js";import"./chunk-RFFN4NF4.js";import"./chunk-A25WFH3U.js";import"./chunk-TPCJQIUG.js";import"./chunk-EXXAK3BP.js";import"./chunk-UCLSDDOL.js";export{a as addComponent};
@@ -1 +0,0 @@
1
- import{f as a}from"./chunk-JHWED3SX.js";import"./chunk-ACPGC7BJ.js";import"./chunk-DLHF7QB4.js";import"./chunk-7UENQJSC.js";import"./chunk-RFFN4NF4.js";import"./chunk-34CHXN5I.js";import"./chunk-J5QMLA3Z.js";import"./chunk-2BGFXNGU.js";import"./chunk-HE7IQLGK.js";import"./chunk-Z3M6DQKZ.js";import"./chunk-TPCJQIUG.js";import"./chunk-EXXAK3BP.js";import"./chunk-UCLSDDOL.js";export{a as addNode};