@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,3 +1,3 @@
1
- import{a as t}from"./chunk-K7MC6G4X.js";function e(){return`function () {
1
+ import{a as t}from"./chunk-RONEQF2M.js";function e(){return`function () {
2
2
  // Store state, computed, and actions are available on this
3
3
  }`}t(e,"createCode");export{e as a};
@@ -0,0 +1 @@
1
+ import{a as i,e as te,f as e,g as s,h as n,j as o}from"./chunk-RONEQF2M.js";import{ServiceProvider as ae}from"@jucie.io/engine";var p,m,E,y,g,v,I,w,z,D,k,C,O,P,H,se,$,Q,h,l,J,ie,x,A,T,M,B,F,j,L,_,U,Y,V,K,ne,N,oe,q,Z,R=class R extends ae{constructor(){super(...arguments);s(this,H);s(this,$);s(this,h);s(this,J);s(this,K);s(this,N);s(this,q);s(this,p,new Map);s(this,m,!0);s(this,E,!0);s(this,y,!1);s(this,g,typeof navigator<"u"&&navigator.onLine!==void 0?navigator.onLine:!0);s(this,v,!1);s(this,I,!1);s(this,w,Date.now());s(this,z,Date.now());s(this,D,null);s(this,k,null);s(this,C,6e4);s(this,O,["mousemove","mousedown","keydown","touchstart","scroll"]);s(this,P,null);s(this,x,i(()=>{let t=e(this,m);n(this,m,!document.hidden),e(this,m)&&!t?(n(this,w,Date.now()),o(this,h,l).call(this,"visible")):!e(this,m)&&t&&o(this,h,l).call(this,"hidden")},"#handleVisibility"));s(this,A,i(()=>{n(this,E,!0),n(this,w,Date.now()),o(this,h,l).call(this,"focus")},"#handleFocus"));s(this,T,i(()=>{n(this,E,!1),o(this,h,l).call(this,"blur")},"#handleBlur"));s(this,M,i(()=>{n(this,y,!0),o(this,h,l).call(this,"suspend",{reason:"freeze"})},"#handleFreeze"));s(this,B,i(()=>{n(this,y,!1),n(this,w,Date.now()),o(this,h,l).call(this,"resume",{reason:"freeze"})},"#handleDocResume"));s(this,F,i(t=>{t.persisted&&(n(this,w,Date.now()),o(this,h,l).call(this,"resume",{reason:"bfcache"}))},"#handlePageShow"));s(this,j,i(t=>{t.persisted&&o(this,h,l).call(this,"suspend",{reason:"bfcache"})},"#handlePageHide"));s(this,L,i(()=>{e(this,I)||(n(this,I,!0),o(this,h,l).call(this,"beforeclose"))},"#handleBeforeUnload"));s(this,_,i(t=>{t.persisted||e(this,L).call(this)},"#handleClosePageHide"));s(this,U,i(()=>{n(this,g,!0),o(this,h,l).call(this,"online")},"#handleOnline"));s(this,Y,i(()=>{n(this,g,!1),o(this,h,l).call(this,"offline")},"#handleOffline"));s(this,V,i(()=>{n(this,z,Date.now()),e(this,v)&&(n(this,v,!1),o(this,h,l).call(this,"active"))},"#handleInteraction"))}initialize(){typeof document<"u"&&(n(this,m,!document.hidden),n(this,E,document.hasFocus())),n(this,w,Date.now())}getters(){return{visible:()=>e(this,m),focused:()=>e(this,E),frozen:()=>e(this,y),online:()=>e(this,g),idle:()=>e(this,v)}}actions(t,r){return n(this,P,r||{}),o(this,J,ie).call(this,e(this,P)),{on:(a,f)=>o(this,H,se).call(this,a,f),off:(a,f)=>o(this,$,Q).call(this,a,f),isVisible:()=>e(this,m),isFocused:()=>e(this,E),isFrozen:()=>e(this,y),isOnline:()=>e(this,g),isIdle:()=>e(this,v),lastActiveTimestamp:()=>e(this,w),destroy:()=>o(this,q,Z).call(this)}}destroy(){o(this,q,Z).call(this)}};p=new WeakMap,m=new WeakMap,E=new WeakMap,y=new WeakMap,g=new WeakMap,v=new WeakMap,I=new WeakMap,w=new WeakMap,z=new WeakMap,D=new WeakMap,k=new WeakMap,C=new WeakMap,O=new WeakMap,P=new WeakMap,H=new WeakSet,se=i(function(t,r){return e(this,p).has(t)||e(this,p).set(t,new Set),e(this,p).get(t).add(r),()=>o(this,$,Q).call(this,t,r)},"#on"),$=new WeakSet,Q=i(function(t,r){let a=e(this,p).get(t);a&&(a.delete(r),a.size===0&&e(this,p).delete(t))},"#off"),h=new WeakSet,l=i(function(t,r){let a=e(this,p).get(t);if(a)for(let f of a)f(r)},"#emit"),J=new WeakSet,ie=i(function(t){if(typeof document<"u"&&(t.visibility!==!1&&document.addEventListener("visibilitychange",e(this,x)),t.freeze!==!1&&(document.addEventListener("freeze",e(this,M)),document.addEventListener("resume",e(this,B)))),typeof window<"u"&&(t.focus&&(window.addEventListener("focus",e(this,A)),window.addEventListener("blur",e(this,T))),t.freeze!==!1&&(window.addEventListener("pageshow",e(this,F)),window.addEventListener("pagehide",e(this,j))),t.close!==!1&&(window.addEventListener("beforeunload",e(this,L)),window.addEventListener("pagehide",e(this,_)),window.addEventListener("unload",e(this,L))),t.network&&(window.addEventListener("online",e(this,U)),window.addEventListener("offline",e(this,Y)))),t.sleepDetection?.enabled!==!1){let r=t.sleepDetection?.threshold||1e4;o(this,N,oe).call(this,r)}t.idle?.enabled&&o(this,K,ne).call(this,t.idle.threshold||6e4)},"#setupSources"),x=new WeakMap,A=new WeakMap,T=new WeakMap,M=new WeakMap,B=new WeakMap,F=new WeakMap,j=new WeakMap,L=new WeakMap,_=new WeakMap,U=new WeakMap,Y=new WeakMap,V=new WeakMap,K=new WeakSet,ne=i(function(t){if(n(this,C,t),typeof document<"u")for(let a of e(this,O))document.addEventListener(a,e(this,V),{passive:!0,capture:!0});let r=Math.min(t/2,5e3);n(this,k,setInterval(()=>{if(e(this,v))return;Date.now()-e(this,z)>=e(this,C)&&(n(this,v,!0),o(this,h,l).call(this,"idle"))},r))},"#startIdleDetection"),N=new WeakSet,oe=i(function(t){let r=Math.min(t/2,5e3);n(this,D,setInterval(()=>{let a=Date.now(),f=a-e(this,w);f>t&&(o(this,h,l).call(this,"suspend",{reason:"sleep",gap:f}),o(this,h,l).call(this,"resume",{reason:"sleep",gap:f})),n(this,w,a)},r))},"#startSleepDetection"),q=new WeakSet,Z=i(function(){if(typeof document<"u"){document.removeEventListener("visibilitychange",e(this,x)),document.removeEventListener("freeze",e(this,M)),document.removeEventListener("resume",e(this,B));for(let t of e(this,O))document.removeEventListener(t,e(this,V),{capture:!0})}typeof window<"u"&&(window.removeEventListener("focus",e(this,A)),window.removeEventListener("blur",e(this,T)),window.removeEventListener("pageshow",e(this,F)),window.removeEventListener("pagehide",e(this,j)),window.removeEventListener("beforeunload",e(this,L)),window.removeEventListener("pagehide",e(this,_)),window.removeEventListener("unload",e(this,L)),window.removeEventListener("online",e(this,U)),window.removeEventListener("offline",e(this,Y))),e(this,D)&&(clearInterval(e(this,D)),n(this,D,null)),e(this,k)&&(clearInterval(e(this,k)),n(this,k,null)),e(this,p).clear()},"#teardown"),i(R,"PageLifecycle"),te(R,"manifest",{name:"PageLifecycle",namespace:"pageLifecycle",version:"1.0.0",description:"Browser lifecycle detection for tab visibility, focus, and sleep/wake"});var G=R;function re(u){if(typeof window<"u"){let t=window.location.protocol==="https:"?"wss:":"ws:",r=window.location.host;if(u.basePath)try{let f=(u.basePath.startsWith("http")?new URL(u.basePath).pathname:u.basePath).replace(/\/$/,"");if(f)return`${t}//${r}${f}/socket`}catch{}return u.projectId?`${t}//${r}/p/${u.projectId}/socket`:`${t}//${r}/socket`}return`ws://localhost:${u.port??3e3}/socket`}i(re,"designSocketUrl");function Le(u,{auth:b=null,reconnect:t={enabled:!0}}={}){return{url:re(u),auth:b,reconnect:t,maxPayloadBytes:5e7}}i(Le,"designSocketClientConfig");import{defineContracts as de}from"@jucie.io/engine-socket/client";var ke=de("stores",u=>{let[b,t]=u("state","socket"),r=new Map,a=i((c,d)=>{d==null?r.delete(c):r.set(c,JSON.stringify(d))},"remember"),f=i((c,d)=>d==null?!r.has(c):r.get(c)===JSON.stringify(d),"isEcho");for(let[c,d]of Object.entries(b.get([".stores"])??{}))a(c,d);let ee=i(c=>{if(c)for(let[d,S]of Object.entries(c))a(d,S),S?b.set([".stores",d],S):b.remove([".stores",d])},"apply");return b.matcher.createMatcher([".stores"],c=>{if(!c)return;let d={},S=!1;for(let[X,W]of Object.entries(c))f(X,W)||(a(X,W),d[X]=W,S=!0);S&&t.publish("stores:sync",d)}),t.onConnect(async()=>{try{ee(await t.request("stores:requestSnapshot")??{})}catch{}}),{set:{handler:c=>ee(c)}}});export{G as a,Le as b,ke as c};
@@ -0,0 +1 @@
1
+ import{a,b as p}from"./chunk-6JNM2JPA.js";import{b as l}from"./chunk-2JXGTRSC.js";import{a as m}from"./chunk-X5INDUEQ.js";import{a as r}from"./chunk-RONEQF2M.js";function c(){return{layout:"none",draggable:!0,resizable:!0,selectable:!0,locked:[],anchor:[],dimensions:[],expandedStyles:[],childrenType:"children"}}r(c,"defaultNodeBehavior");function y(e,o){return e?o?e.filter(t=>!o.includes(t)):e:[]}r(y,"arrayDiff");function h(e,o,t){let n=e.get([o,"anchor"]),i=y(n,t);return i.length&&a(e,o,i),e.set([o,"anchor"],t),!0}r(h,"updateAnchor");function d(e,o){return e.remove([o,".position"])}r(d,"clearPosition");function s(e,o,t,n){if(!t||typeof t!="object")return;let i=Object.keys(t).sort();for(let u of i){let f=t[u];switch(u){case"style":{let g=t?.anchor;l(e,o,f,{breakpoint:n,anchor:g}),d(e,o);break}case"bounds":m(e,o,f);break;case"anchor":h(e,o,f);break;default:e.set([o,u],f);break}}}r(s,"applyNodePatch");function R(e,o,t={}){let n={...c(),...t};for(let i of Object.keys(n))e.set([o,i],n[i])}r(R,"setNodeBehavior");function E(e,o){let t=c();for(let n of Object.keys(t))e.set([o,n],t[n]);e.set([o,"hidden"],void 0)}r(E,"resetNodeBehavior");function x(e,o){let t=e.get([o,"layout"]);if(t&&t!=="none")return t;let n=e.get([o,"style","default","display"]);return n==="flex"||n==="grid"?n:"none"}r(x,"getLayoutContext");var k=new Set(["app","temp","components"]);function b(e){return k.has(e)}r(b,"shouldHaveBounds");function X(e,o,t){if(b(t)||e.remove([o,"bounds"]),x(e,t)!=="none"){p(e,o),s(e,o,{anchor:[],dimensions:[]});return}let i=e.get([o,"anchor"]);(!i||!i.length)&&s(e,o,{anchor:["top","left"],dimensions:["width","height"]})}r(X,"normalizeLayoutContext");export{d as a,s as b,R as c,E as d,X as e};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-K7MC6G4X.js";function a(e,o,t){return e.splice([o,"route","params"],t,1)}r(a,"removeParamFromRoute");export{a};
1
+ import{a as r}from"./chunk-RONEQF2M.js";function a(e,o,t){return e.splice([o,"route","params"],t,1)}r(a,"removeParamFromRoute");export{a};
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-JGELXWD3.js";import{a as e}from"./chunk-RONEQF2M.js";function f(n,o,u,p){return n.update([o,"state"],(r=[])=>(r[u]&&(r[u]=t(p)),r))}e(f,"updateValue");export{f as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-RONEQF2M.js";function a(r,t){return r.remove([t,"repeat"])}e(a,"clearRepeat");export{a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-IE6IKN6P.js";import{a as s}from"./chunk-RSWDPV5U.js";import{a as c}from"./chunk-RONEQF2M.js";function p(r,i,e){if(o(r,i))return;let f="",t;return typeof e=="string"?f=e:e!=null&&typeof e=="object"&&(f=e.value??"",Object.prototype.hasOwnProperty.call(e,"specificPatterns")&&(t=e.specificPatterns)),r.set([i,"textContent"],s({value:f,specificPatterns:t}))}c(p,"setTextContent");function n(r,i,e){if(Array.isArray(e))return r.set([i,"textSegments"],e)}c(n,"setTextSegments");export{p as a,n as b};
@@ -0,0 +1 @@
1
+ import{a as c}from"./chunk-3GPQ3HYG.js";import{a as e}from"./chunk-RONEQF2M.js";function t(o,f,i){return o.unshift([f,"lifecycle"],c({key:i}))}e(t,"addLifecycleHook");export{t as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-K7MC6G4X.js";var t=e(()=>({__version:1,type:"animation",scope:"node",name:null,duration:300,easing:"ease",fill:"none",direction:"normal",iterations:1,delay:0,endDelay:0,iterationStart:0,composite:"replace",keyframes:[]}),"animationDefaults");function l(n={}){return{...t(),...Object.fromEntries(Object.entries(n).filter(([,i])=>i!==void 0))}}e(l,"createAnimation");export{t as a,l as b};
1
+ import{a as e}from"./chunk-RONEQF2M.js";var t=e(()=>({__version:1,type:"animation",scope:"node",name:null,duration:300,easing:"ease",fill:"none",direction:"normal",iterations:1,delay:0,endDelay:0,iterationStart:0,composite:"replace",keyframes:[]}),"animationDefaults");function l(n={}){return{...t(),...Object.fromEntries(Object.entries(n).filter(([,i])=>i!==void 0))}}e(l,"createAnimation");export{t as a,l as b};
@@ -1 +1 @@
1
- import{a as p}from"./chunk-2YZN7IFG.js";import{a as i}from"./chunk-K7MC6G4X.js";function l(n,e){if(!e||!p(n,e))return!1;n.update(["app","children"],(r=[])=>r.filter(t=>t!==e)),n.update(["temp","children"],(r=[])=>r.filter(t=>t!==e));let f=n.findWhen("children","includes",e);return f&&n.update(f,(r=[])=>r.filter(t=>t!==e)),!0}i(l,"disconnectNode");export{l as a};
1
+ import{a as p}from"./chunk-IWO4MU2F.js";import{a as i}from"./chunk-RONEQF2M.js";function l(n,e){if(!e||!p(n,e))return!1;n.update(["app","children"],(r=[])=>r.filter(t=>t!==e)),n.update(["temp","children"],(r=[])=>r.filter(t=>t!==e));let f=n.findWhen("children","includes",e);return f&&n.update(f,(r=[])=>r.filter(t=>t!==e)),!0}i(l,"disconnectNode");export{l as a};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-K7MC6G4X.js";function r(n,u,t){let e=n.get([u,"bounds"])??{};return n.set([u,"bounds"],{...e,...t})}o(r,"updateBounds");export{r as a};
1
+ import{a as o}from"./chunk-RONEQF2M.js";function r(n,u,t){let e=n.get([u,"bounds"])??{};return n.set([u,"bounds"],{...e,...t})}o(r,"updateBounds");export{r as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-7SM7WG53.js";import{a as t}from"./chunk-RONEQF2M.js";function i(n,r,o){return n.unshift([r,"events"],e({name:o}))}t(i,"addEvent");export{i as a};
@@ -1 +1 @@
1
- import{a as l,b as u,c as t}from"./chunk-5PUPZLDN.js";import{a as p}from"./chunk-K7MC6G4X.js";function i(n){let s=l(n)?u(n):null;return{value:(n??"").trim(),expression:s,dependencies:s?t(s):[]}}p(i,"parseField");function o(n,s,{binding:r,valueKey:a,labelKey:c}){let d=l(r)?u(r):null;return n.update([s,"options"],(e={})=>({...e,type:"binding",binding:r??e.binding,expression:d??e.expression,dependencies:d?t(d):e.dependencies??[],valueKey:a!==void 0?i(a):e.valueKey??i("value"),labelKey:c!==void 0?i(c):e.labelKey??i("label")}))}p(o,"setOptionsExpression");export{o as a};
1
+ import{a as l,b as u,c as t}from"./chunk-UN7EZPD7.js";import{a as p}from"./chunk-RONEQF2M.js";function i(n){let s=l(n)?u(n):null;return{value:(n??"").trim(),expression:s,dependencies:s?t(s):[]}}p(i,"parseField");function o(n,s,{binding:r,valueKey:a,labelKey:c}){let d=l(r)?u(r):null;return n.update([s,"options"],(e={})=>({...e,type:"binding",binding:r??e.binding,expression:d??e.expression,dependencies:d?t(d):e.dependencies??[],valueKey:a!==void 0?i(a):e.valueKey??i("value"),labelKey:c!==void 0?i(c):e.labelKey??i("label")}))}p(o,"setOptionsExpression");export{o as a};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-V5TNO5LS.js";import{a as e}from"./chunk-RONEQF2M.js";function n({name:t,code:o=r()}){return{name:t,code:o}}e(n,"createAction");export{n as a};
@@ -0,0 +1 @@
1
+ import{a as E}from"./chunk-NOHQVE3L.js";import{a as O}from"./chunk-CVWMERPH.js";import{a as D}from"./chunk-X5HHNNED.js";import{a as P}from"./chunk-IWO4MU2F.js";import{b as j}from"./chunk-6JNM2JPA.js";import{b as S}from"./chunk-TFGNKPAQ.js";import{f as A}from"./chunk-CM6UENYI.js";import{b as C}from"./chunk-2JXGTRSC.js";import{a as c}from"./chunk-RONEQF2M.js";function F(o,n,i){if(!P(o,n)||!P(o,i))return!1;let r=o.findWhen("children","includes",n);return r?(o.update(r,(p=[])=>p.map(d=>d===n?i:d)),!0):!1}c(F,"replaceNode");var M=c(o=>structuredClone?structuredClone(o):JSON.parse(JSON.stringify(o)),"clone");function k(o,n){let i=O(o,n),r=[n,...i],p={};for(let d of r){let l=o.get([d]);l&&(p[d]=l)}return M(p)}c(k,"copyNode");function J(o){let n=Object.keys(o),i={},r=new Map;n.forEach(t=>{let s=A();r.set(t,s)}),n.forEach(t=>{let s=r.get(t),e={...o[t]};e.children&&Array.isArray(e.children)&&(e.children=e.children.map(f=>r.get(f)||null).filter(f=>f!==null)),e.slots&&Array.isArray(e.slots)&&(e.slots=e.slots.map(f=>({...f,id:r.get(f.id)??f.id,children:(f.children||[]).map(u=>r.get(u)??u)}))),e.type==="frame"&&(e.route=e.route?{...e.route,path:`${s}`}:{path:`${s}`}),i[s]=e});let p=Object.keys(i),d=new Set;return Object.values(i).forEach(t=>{t.children&&Array.isArray(t.children)&&t.children.forEach(s=>{s&&d.add(s)})}),[p.filter(t=>!d.has(t)),i]}c(J,"cloneNodes");function L(o,n){let r=o.get([n])?.type;return r==="frame"||r==="viewport"}c(L,"isFrameNode");var B=["top","left","right","bottom"],K=[...B];function W(o,n,i,r){let p=o.get([n,"style"]);if(!p)return;let d=new Set(r??[]);for(let l in p){let t=p[l];if(!t||typeof t!="object")continue;let s={},h=!1;for(let e of B)e in t&&d.has(e)&&(s[e]=t[e],h=!0);h&&(o.update([i,"style",l],(e={})=>({...e,...s})),o.update([n,"style",l],(e={})=>{let f={...e};for(let u of K)delete f[u];return f}))}}c(W,"migratePositionalStyles");function T(o,n){j(o,n),o.remove([n,".position"]),o.remove([n,"bounds"]),o.set([n,"anchor"],[]),C(o,n,{width:"100%",height:"100%"})}c(T,"fitClonedRoot");function $(o,n){let i=O(o,n);for(let r of i)o.remove([r]);o.remove([n])}c($,"removeOriginalTree");function uo(o,n,i,r=null){let p=E(o,n),d=p==="root"||p==="temp",l=L(o,n),t=o.get([n,".position"]),s=o.get([n,"anchor"]),h=o.get([n,"dimensions"]),e=k(o,n),[f,u]=J(e),v=f[0],b,y=null;if(l){b=[...u[v]?.children??[]];for(let[m,N]of Object.entries(u))m!==v&&o.set([m],N)}else{y=f[0];for(let[m,N]of Object.entries(u))o.set([m],N);b=[y]}let w=r??o.get([n,"bounds"])??null,x={children:b,name:i};w&&(x.bounds=w);let[g,G]=S("component",x);o.set([g],G),o.update(["components","children"],(m=[])=>m.indexOf(g)===-1?[...m,g]:m);let a=null;if(d)D(o,n),$(o,n),y&&T(o,y);else{let[m,N]=S("instance",{component:g});a=m,o.set([a],N),F(o,n,a),$(o,n),t&&o.set([a,".position"],t),s&&o.set([a,"anchor"],s),h&&o.set([a,"dimensions"],h),y&&(W(o,y,a,s),T(o,y))}return{componentId:g,instanceId:a}}c(uo,"addComponent");export{F as a,M as b,k as c,J as d,uo as e};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-RONEQF2M.js";function a(r,n){return r.remove([n,"name"])}e(a,"clearName");export{a};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-JPPPL527.js";import"./chunk-RONEQF2M.js";export{a as clearDestination};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-ZCUNR3XN.js";import"./chunk-RONEQF2M.js";export{a as clearName};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-BCDDG7CW.js";import"./chunk-RONEQF2M.js";export{a as clearOptionsExpression};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-J7XIIFXF.js";import"./chunk-RONEQF2M.js";export{a as clearRender};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-WCL6XNDN.js";import"./chunk-RONEQF2M.js";export{a as clearRepeat};
@@ -0,0 +1 @@
1
+ import{a as D,b as g}from"./chunk-WKUYNMPE.js";import"./chunk-IE6IKN6P.js";import{a as k,b as v,c as A,d as E,e as W,f as P,g as N}from"./chunk-4UJAZNZX.js";import"./chunk-RSWDPV5U.js";import"./chunk-QDH6OIAL.js";import"./chunk-UN7EZPD7.js";import"./chunk-CM6UENYI.js";import{a as u}from"./chunk-RONEQF2M.js";import{defineContracts as _}from"@jucie.io/engine-message";var K=_("contentEditor",$=>{let[j,m,C,S]=$("cache","channel","contentEditor","state"),f=S.ref(["nodes"]),e=null,l=null,x=null,d=[];if(!f)throw new Error("Nodes not found");function w(t){l&&(e.segments=t,g(f,l,t))}u(w,"persistSegments");function p(){if(!e||!l)return;let{start:t,end:n}=e.getSelection(),o=e.segments,i=o?N(o,t,n):{};m.to("editor").publish("textFormat:selection",{formats:i,start:t,end:n})}u(p,"reportSelection");function L(t){if(!e||!l)return;e.segments||(e.segments=v(e.content));let n=C.applyFormat(e,t,W);n&&(g(f,l,n),p())}u(L,"handleApplyFormat");function q(t){if(!e||!l||!e.segments)return;let n=C.removeFormat(e,t,P);n&&(g(f,l,n),p())}u(q,"handleRemoveFormat");function B(){if(!e||!l)return;e.segments||(e.segments=v(e.content));let{start:t,end:n}=e.getSelection(),o=e.segments;n>t&&(o=E(o,t,n-t,""));let i={mode:"value",value:null,binding:null,computed:null,code:null,error:null};o=E(o,t,0,k);let r=0,s=[],a=t;for(let c of o){let F=r+c.text.length,h=a-r;!c.descriptor&&h>=0&&h<c.text.length&&c.text[h]===k?(h>0&&s.push({text:c.text.slice(0,h),formats:{...c.formats}}),s.push(A(i)),h+1<c.text.length&&s.push({text:c.text.slice(h+1),formats:{...c.formats}}),a=-1):s.push(c),r=F}let b=t+1;e.setPendingSelection(b,b),w(s)}u(B,"handleInsertDescriptor");function H(t){return t?!(t.mode==="binding"&&t.binding?.length||t.mode==="computed"&&t.computed||t.mode==="code"&&t.code||t.mode==="value"&&t.value!=null):!0}u(H,"isDescriptorEmpty");function O({segIndex:t,descriptor:n}){if(!e||!l||!e.segments)return;let o=[...e.segments];if(!o[t]?.descriptor)return;let i=H(n),r=0;for(let s=0;s<t;s++)r+=o[s].text.length;i?o.splice(t,1):(r+=1,o[t]={...o[t],descriptor:{...n}}),e.setPendingSelection(r,r),w(o)}u(O,"handleUpdateDescriptor");function R(t){let n=t.target.closest(".descriptor-pill");if(!n||!e?.segments)return;let o=Number(n.dataset.segIndex),i=e.segments[o];if(!i?.descriptor)return;let r=n.getBoundingClientRect();m.to("editor").publish("textFormat:descriptorClick",{descriptor:i.descriptor,segIndex:o,rect:{left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:r.width,height:r.height}})}u(R,"handleDescriptorClick");function T(t){let n=t.target.closest("[data-rid]");if(n&&n.isContentEditable){let o=n.dataset.rid;if(o===x)return;let i=n.dataset.nodeId;if(!i)return;U(o,i,n);return}m.to("renderWorker").publish("contentEditor:end",x,l),y()}u(T,"handleDocumentClick");function U(t,n,o){let i=x;e&&(e.destroy(),e=null),l=n,x=t;let r=S.get(["nodes",n,"textSegments"])??null;if(!r){let s=S.get(["nodes",n,"textContent"]),a=typeof s=="string"?s:s?.value??o.textContent??"";r=v(a),g(f,n,r)}e=C.create(o,{segments:r,shiftSegments:E,onInput:(s,a)=>{D(f,n,{value:s}),a&&g(f,n,a),p()},onWheel:({deltaX:s,deltaY:a,ctrlKey:b,x:c,y:F})=>{m.to("renderWorker").publish("contentEditor:wheel",{deltaX:s,deltaY:a,ctrlKey:b,x:c,y:F})}}),e.on("mouseup",()=>setTimeout(p,0)),e.on("keyup",()=>p()),e.on("click",R),m.to("renderWorker").publish("contentEditor:switch",{oldRid:i,newRid:t,newId:n})}u(U,"switchTarget");function y(){document.removeEventListener("mousedown",T,!0);for(let t of d)t&&typeof t=="function"&&t();d.length=0,e&&(e.destroy(),e=null),window.getSelection()?.removeAllRanges(),l=null,x=null}return u(y,"cleanup"),{start:{schema:["String","String"],namespace:"stage",handler:(t,n)=>{try{y();let o=document.querySelector(`[data-rid="${t}"]`);if(!o)throw new Error(`ContentEditor.start: $el not found for rid ${t}`);l=n,x=t;let i=S.get(["nodes",n,"textSegments"])??null;if(!i){let r=S.get(["nodes",n,"textContent"]),s=typeof r=="string"?r:r?.value??o.textContent??"";i=v(s),g(f,n,i)}e=C.create(o,{segments:i,shiftSegments:E,onInput:(r,s)=>{D(f,n,{value:r}),s&&g(f,n,s),p()},onWheel:({deltaX:r,deltaY:s,ctrlKey:a,x:b,y:c})=>{m.to("renderWorker").publish("contentEditor:wheel",{deltaX:r,deltaY:s,ctrlKey:a,x:b,y:c})}}),d.push(e.on("mouseup",()=>setTimeout(p,0))),d.push(e.on("keyup",()=>p())),d.push(e.on("click",R)),d.push(m.namespace("stage").subscribe("textFormat:apply",L)),d.push(m.namespace("stage").subscribe("textFormat:remove",q)),d.push(m.namespace("stage").subscribe("textFormat:insertDescriptor",B)),d.push(m.namespace("stage").subscribe("textFormat:updateDescriptor",O)),document.addEventListener("mousedown",T,!0)}catch(o){return console.error(o),null}}},end:{schema:["String","String"],namespace:"stage",handler:()=>{y()}}}});export{K as contentEditorContracts};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-YFURTAAV.js";import"./chunk-V5TNO5LS.js";import"./chunk-RONEQF2M.js";export{a as createAction};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-X2R3VYWI.js";import"./chunk-RONEQF2M.js";export{a as createAnimation};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-457GNGEV.js";import"./chunk-V5TNO5LS.js";import"./chunk-RONEQF2M.js";export{a as createComputed};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-RSWDPV5U.js";import"./chunk-QDH6OIAL.js";import"./chunk-UN7EZPD7.js";import"./chunk-CM6UENYI.js";import"./chunk-RONEQF2M.js";export{a as createTextContent};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-JGELXWD3.js";import"./chunk-RONEQF2M.js";export{a as createValue};
@@ -0,0 +1,15 @@
1
+ import{a as He,c as ze}from"./chunk-7H7BUWZP.js";import{a as De,b as We,c as qe}from"./chunk-VHRU6H4C.js";import{a as Le}from"./chunk-RAHM76FI.js";import"./chunk-UOBNXO4G.js";import"./chunk-WKUYNMPE.js";import"./chunk-JG62FTV2.js";import"./chunk-NGQ7GQSH.js";import"./chunk-GFV4SJGI.js";import"./chunk-5RVLCYPU.js";import"./chunk-PRXT2NXZ.js";import"./chunk-VZJTFJZN.js";import"./chunk-SV2PSWLZ.js";import"./chunk-O6ZKHW5L.js";import"./chunk-JRCZXEL2.js";import"./chunk-E3LBHSMZ.js";import"./chunk-QAUB5H3S.js";import"./chunk-7C53OCBB.js";import"./chunk-JGELXWD3.js";import"./chunk-457GNGEV.js";import"./chunk-YFURTAAV.js";import"./chunk-V5TNO5LS.js";import"./chunk-MO2MHTOQ.js";import"./chunk-ND3BSJOS.js";import"./chunk-XPWU54SD.js";import"./chunk-BCDDG7CW.js";import"./chunk-MHU6JTZC.js";import"./chunk-HZ7KMV42.js";import"./chunk-PBDSKQIQ.js";import"./chunk-VQDQA3ID.js";import"./chunk-GBE5QYRO.js";import"./chunk-K4R2DLAT.js";import"./chunk-TYA35RCB.js";import"./chunk-PJFVW637.js";import"./chunk-WWWIZ7VG.js";import"./chunk-JKJRK7ER.js";import"./chunk-3GPQ3HYG.js";import"./chunk-PBDA5G7U.js";import"./chunk-AOLXVYBO.js";import"./chunk-TDXJNI7H.js";import"./chunk-MA3WBBC6.js";import"./chunk-QM4IVTLC.js";import"./chunk-JPPPL527.js";import"./chunk-DDCGP5GM.js";import"./chunk-WCL6XNDN.js";import"./chunk-QUWCLSNF.js";import"./chunk-J7XIIFXF.js";import"./chunk-E7JXTPFA.js";import"./chunk-CB4COXKW.js";import"./chunk-4KXBOJIC.js";import"./chunk-ATDHO5ME.js";import"./chunk-NM4FV6YK.js";import"./chunk-K33QXMAS.js";import"./chunk-XBUV5F3F.js";import"./chunk-HBNF34QX.js";import"./chunk-7SM7WG53.js";import"./chunk-UJZNQZVK.js";import"./chunk-QVOXRLEG.js";import{a as je,c as Fe}from"./chunk-3KR3JD5T.js";import"./chunk-DOGIABU3.js";import"./chunk-IE6IKN6P.js";import"./chunk-HZXJUIIX.js";import"./chunk-MQKISAKO.js";import"./chunk-VP2XJ5UI.js";import"./chunk-ZCUNR3XN.js";import"./chunk-7DIGILX7.js";import"./chunk-YRI4I37X.js";import"./chunk-NOHQVE3L.js";import"./chunk-CVWMERPH.js";import"./chunk-X5HHNNED.js";import"./chunk-IWO4MU2F.js";import"./chunk-6JNM2JPA.js";import{a as Se}from"./chunk-5N7NET6A.js";import{a as Pe}from"./chunk-UVV4NANW.js";import"./chunk-4UJAZNZX.js";import"./chunk-SSSTBYOF.js";import{a as Be}from"./chunk-TFGNKPAQ.js";import"./chunk-RSWDPV5U.js";import"./chunk-QDH6OIAL.js";import"./chunk-UN7EZPD7.js";import"./chunk-CM6UENYI.js";import"./chunk-2JXGTRSC.js";import"./chunk-X5INDUEQ.js";import{a as u,e as L,f as d,g as f,h as y,j as v}from"./chunk-RONEQF2M.js";import{Engine as nn}from"@jucie.io/engine";import{ServiceProvider as An}from"@jucie.io/engine";var kt={"claude-sonnet-4-6":{input:3,output:15},"claude-sonnet-5":{input:2,output:10},"claude-opus-5":{input:5,output:25}},mn=kt["claude-sonnet-4-6"];import{ServiceProvider as Rn}from"@jucie.io/engine";import{ServiceProvider as Rt}from"@jucie.io/engine";import{createDefinition as Ct}from"@jucie.io/engine";var A=Ct("AI_OPERATIONS",[Object]);function K(i){let t=i._name,e=i();return{namespace:t,operations:Object.entries(e).map(([o,r])=>({name:o,fullName:`${t}:${o}`,alias:r.alias||null,mcpName:r.mcpName||null,description:r.description||"",schema:r.schema||[],examples:r.examples||[],returns:r.returns||"Object"}))}}u(K,"extractOperationsMetadata");function Ne(i,t,e){if(!Array.isArray(t)||t.length===0)return!0;let o=t[0];if(typeof o!="object"||Array.isArray(o))return console.warn(`Schema for ${e} should be an object with named parameters`),!0;for(let[r,n]of Object.entries(o)){let s=typeof n=="string"&&n.endsWith("?"),c=s?n.slice(0,-1):n,a=i[r];if(!(r in i)||a===void 0){if(s)continue;throw new Error(`Missing required parameter "${r}" in ${e}`)}let l=Array.isArray(a)?"Array":a===null?"Null":typeof a=="object"?"Object":a.constructor.name;if(l!==c&&c!=="Any")throw new Error(`Parameter "${r}" in ${e} must be of type ${c}, got ${l}`)}return!0}u(Ne,"validateOperationArgs");var At=2,Ot={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"]}},_t={name:"screenshot",description:"Render the current scene and look at it. Captures the full scrollable page, scaled to fit one review image when content is very tall. The JSX returned after each edit shows structure; a screenshot shows what the user will actually see. Use it to check your own work \u2014 after building a section, whenever layout could be wrong (overlapping elements, content overflowing its container, text the same colour as its background, collapsed or stretched spacing), and before you finish. Cheap relative to rebuilding something that turned out broken.",input_schema:{type:"object",properties:{reason:{type:"string",description:"What you are checking for (one short sentence)"},frameIds:{type:"array",items:{type:"string"},description:"Frame node ids to capture. Omit to capture every frame \u2014 prefer naming the frame you just changed."},fullPage:{type:"boolean",description:"Include all scroll-hidden content (default true). Set false for a viewport-only shot when checking a small visible region."}}}};function Re(i){let t=Nt(i);return[Ot,_t,...t.map(Et)]}u(Re,"buildAnthropicTools");function Et(i){let t=i.operations.map(e=>{let o=Array.isArray(e.schema)?e.schema[0]:null,r=o&&typeof o=="object"?Object.entries(o).map(([s,c])=>`${s}: ${c}`).join(", "):"",n=(e.examples??[]).slice(0,At).map(s=>{let c=s.description?` \u2014 ${s.description}`:"";return`
2
+ Example: ${JSON.stringify(s.args)}${c}`}).join("");return` ${e.name} \u2014 ${e.description}
3
+ Args: { ${r} }${n}`}).join(`
4
+
5
+ `);return{name:i.namespace,description:`${i.namespace} operations. Put every operation for the current step in "ops" \u2014 they run in order, and {{ref}} values set by one are resolved for later ones. Batch aggressively: one call with ten operations costs a fraction of ten calls with one. You still see the re-rendered scene after each call.
6
+
7
+ ${t}`,input_schema:{type:"object",properties:{ops:{type:"array",description:"Operations to run, in order. Preferred over the single-operation form below.",items:{type:"object",properties:{op:{type:"string",description:`Operation name within ${i.namespace}`},args:{type:"object",description:"Arguments matching the operation's schema. A JSON object, not a string containing JSON."},ref:{type:"string",description:"Optional {{name}} reference for cross-operation use"}},required:["op","args"]}},op:{type:"string",description:`Single operation name within ${i.namespace}. Use "ops" instead when running more than one.`},args:{type:"object",description:"Arguments matching the operation's schema (single-operation form). A JSON object, not a string containing JSON."},ref:{type:"string",description:"Optional {{name}} reference for cross-operation use (single-operation form)"},message:{type:"string",description:"Short explanation of what you are doing (1 sentence)"}}}}}u(Et,"buildNamespaceTool");function Nt(i){return!Array.isArray(i)||i.length===0?[]:i[0]?.namespace&&Array.isArray(i[0]?.operations)?i:i.map(t=>K(t))}u(Nt,"normalizeNamespaces");var Tt=new Set(["parent","parentId","nodeId"]),W,Z,B,$,be,Ye,we,Xe,xe=class xe extends Rt{constructor(){super(...arguments);f(this,be);f(this,we);f(this,W,new Map);f(this,Z,[]);f(this,B,new Map);f(this,$,new Map)}getters(){return{operationsMetadata:()=>this.getOperationsMetadata(),anthropicTools:()=>this.getAnthropicTools()}}actions(){return{use:(...e)=>{for(let o of e)v(this,be,Ye).call(this,o);return this},has:e=>d(this,W).has(e),resolveType:e=>this.resolveType(e),describeUnresolved:e=>this.describeUnresolved(e),executeOperation:(e,o,r)=>this.executeOperation(e,o,r),executeBatch:e=>this.executeBatch(e)}}resolveType(e){return typeof e!="string"||!e?null:e.includes(":")?d(this,W).has(e)?e:null:d(this,B).get(e)??d(this,$).get(e)??null}describeUnresolved(e){if(this.resolveType(e))return null;if(typeof e=="string"&&!e.includes(":")&&d(this,$).has(e)&&d(this,$).get(e)===null){let o=[];for(let[n,s]of d(this,W))s.name===e&&o.push(s.alias?`${n} (alias: ${s.alias})`:n);let r=o.length?o.join(" or "):e;return`Ambiguous operation: "${e}". Use ${r}.`}return`Unknown operation: ${e}`}getOperationsMetadata(){return d(this,Z).map(e=>K(e))}getAnthropicTools(){return Re(d(this,Z))}async executeOperation(e,o,r=null){let n=this.resolveType(e),s=d(this,W).get(n);if(!s)throw new Error(this.describeUnresolved(e));try{Ne(o,s.schema,e)}catch(c){throw console.error(`Validation failed for ${e}:`,c),c}try{return{result:await s.handler(o),ref:r}}catch(c){throw console.error(`Handler failed for ${e}:`,c),c}}async executeBatch(e){let{operations:o,description:r,expectation:n}=e;console.log("AiOperations: Executing batch",{count:o.length,description:r});let s=new Map,c=[],a=[];try{for(let l=0;l<o.length;l++){let p=o[l];console.log(`AiOperations: Executing [${l+1}/${o.length}] ${p.type}`);let m=v(this,we,Xe).call(this,p.args,s),{result:h}=await this.executeOperation(p.type,m,p.ref),g=h.id??h.rootId;if(p.ref&&g&&(s.set(p.ref,g),a.push(g)),h.treeMap)for(let[w,I]of Object.entries(h.treeMap))s.set(w,I),a.push(I);h.createdIds?.length&&a.push(...h.createdIds),c.push({operation:p.type,success:!0,result:h})}return console.log("AiOperations: Execution complete",{total:o.length,successful:c.length,createdIds:a}),{success:!0,description:r,expectation:n,results:c,createdIds:a,refMap:Object.fromEntries(s)}}catch(l){return console.error("AiOperations: Batch execution failed",l),{success:!1,description:r,error:l.message,failedAt:c.length,results:c}}}};W=new WeakMap,Z=new WeakMap,B=new WeakMap,$=new WeakMap,be=new WeakSet,Ye=u(function(e){let o=this.inject("log");if(!e||typeof e!="function")throw new Error("Operation factory must be a function");let r=e._name;if(!r)throw new Error("Operation factory must have a _name property (use defineAiOperations)");o.info(`AiOperations: Registering operations for namespace "${r}"`),d(this,Z).push(e);let n=e(this.inject);for(let[s,c]of Object.entries(n)){let{handler:a,schema:l,description:p,examples:m,returns:h,alias:g}=c,w=`${r}:${s}`;if(!a||typeof a!="function")throw new Error(`Operation ${w} must have a handler function`);p||console.warn(`Operation ${w} missing description`),d(this,W).set(w,{namespace:r,name:s,handler:a,schema:l||[],description:p||"",examples:m||[],returns:h||"Object",alias:g||null}),g&&(d(this,B).has(g)&&d(this,B).get(g)!==w&&console.warn(`AiOperations: alias "${g}" already registered for ${d(this,B).get(g)}, overriding with ${w}`),d(this,B).set(g,w)),d(this,$).has(s)&&d(this,$).get(s)!==w?d(this,$).set(s,null):d(this,$).set(s,w)}},"#setupOperations"),we=new WeakSet,Xe=u(function(e,o){return e&&JSON.parse(JSON.stringify(e),(r,n)=>{if(r==="ref")return n;if(typeof n=="string"&&n.match(/^\{\{.*\}\}$/)){let s=o.get(n)??o.get(n.replace(/\.[^}]+(?=\}\}$)/,""));if(s)return s;if(Tt.has(r))throw new Error(`Unresolved reference "${n}" in "${r}". {{refs}} only resolve within the same tool call \u2014 use the real node id reported by the previous operation.`);return n}return n})},"#resolveReferences"),u(xe,"AiOperations"),L(xe,"manifest",{name:"AiOperations",namespace:"aiOps",version:"1.0.0",description:"AI operation registry and executor",author:"",license:"MIT",homepage:""});var ae=xe;import{Channel as on}from"@jucie.io/engine-message";import{SocketClient as sn}from"@jucie.io/engine-socket/client";import{ServiceProvider as Pt}from"@jucie.io/engine";function Te(i){let t=window.getSelection();if(t.rangeCount===0)return{start:0,end:0};let e=t.getRangeAt(0),o=e.cloneRange();o.selectNodeContents(i),o.setEnd(e.startContainer,e.startOffset);let r=o.toString().length,n=e.cloneRange();n.selectNodeContents(i),n.setEnd(e.endContainer,e.endOffset);let s=n.toString().length;return{start:Math.min(r,s),end:Math.max(r,s)}}u(Te,"getCaretCharacterOffset");function $t(i,t){let e=i.parentElement;for(;e&&e!==t;){if(e.contentEditable==="false")return!0;e=e.parentElement}return!1}u($t,"isInsideNonEditable");function $e(i,t){let e=document.createTreeWalker(i,NodeFilter.SHOW_TEXT),o=0,r=null;for(let n=e.nextNode();n;n=e.nextNode()){if(r=n,t<=o+n.length){if($t(n,i)){o+=n.length;continue}return{node:n,offset:t-o}}o+=n.length}return r?{node:r,offset:r.length}:null}u($e,"findTextPoint");function Ue(i,t){if(!i?.isConnected||t<0)return;let e=$e(i,t);if(!e)return;let o=document.createRange();o.setStart(e.node,e.offset),o.collapse(!0);let r=window.getSelection();r.removeAllRanges(),r.addRange(o)}u(Ue,"setCaretToCharacterPosition");function Ge(i,t,e){if(!i?.isConnected||t<0)return;if(t===e){Ue(i,t);return}let o=$e(i,t),r=$e(i,e);if(!o||!r)return;let n=document.createRange();n.setStart(o.node,o.offset),n.setEnd(r.node,r.offset);let s=window.getSelection();s.removeAllRanges(),s.addRange(n)}u(Ge,"setSelectionRange");function Ve(i,t,e=0,o=""){return i.slice(0,t)+o+i.slice(t+e)}u(Ve,"spliceString");function Je(i,t){let e=u(n=>/[\s\n]/.exec(n),"isSpace"),o=t-1,r=t;for(;o>=0&&!e(i[o]);)o-=1;for(o=Math.max(0,o+1);r<i.length&&!e(i[r]);)r+=1;return r=Math.max(o,r),[o,r]}u(Je,"getWordBoundsAtPosition");function ve({pattern:i,word:t,match:e,regexMatch:o,triggerLen:r,start:n,end:s,cursorPos:c}){let a=c-n;return{pattern:i,word:t,match:e,regexMatch:o,start:n,end:s,query:t.slice(r,a)}}u(ve,"buildMatch");function Ke(i,t,e=[]){if(!i||t===0||e.length===0)return[];let[o,r]=Je(i,t),n=i.slice(o,r);if(!n)return[];let s=[];for(let c of e){if(c.regex){let p=n.match(c.trigger);p&&s.push(ve({pattern:c,word:n,match:p[0],regexMatch:p,triggerLen:1,start:o,end:r,cursorPos:t}));continue}let a=c.trigger,l=a.length;c.exact&&n===a?s.push(ve({pattern:c,word:n,match:a,regexMatch:null,triggerLen:l,start:o,end:r,cursorPos:t})):c.startsWith&&n.startsWith(a)?s.push(ve({pattern:c,word:n,match:a,regexMatch:null,triggerLen:l,start:o,end:r,cursorPos:t})):c.endsWith&&n.endsWith(a)&&s.push(ve({pattern:c,word:n,match:a,regexMatch:null,triggerLen:l,start:o,end:r,cursorPos:t}))}return s}u(Ke,"getTriggerMatchesAtCursor");var Ut=new Set(["insertText","insertParagraph","insertLineBreak","deleteContentBackward","deleteContentForward"]),Mt={childList:!0,characterData:!0,subtree:!0},D,Q,j,ce,C,E,b,k,F,ee,te,ne,oe,H,se,X,Ie,Ze,G,ie,de,le,pe,ke,ue,Ce,me,he,N,P,Y=class Y{constructor(t,{onInput:e,onBlur:o,onWheel:r,segments:n,shiftSegments:s}={},c={}){f(this,Ie);f(this,G);f(this,N);f(this,D,[]);f(this,Q,[]);f(this,j,[]);f(this,ce,{});f(this,C,"");f(this,E,null);f(this,b,0);f(this,k,0);f(this,F,0);f(this,ee,{content:"",start:0,end:0});f(this,te,!1);f(this,ne,null);f(this,oe,!1);f(this,H,null);f(this,se,null);f(this,X,null);f(this,de,u(t=>{t.stopPropagation(),t.preventDefault();let e=t.clipboardData;if(!e)return;let o=e.getData("text/plain")||e.getData("text/html");if(!o)return;let r=o;if(o!==e.getData("text/plain")){let n=document.createElement("div");n.innerHTML=o,r=n.textContent||""}v(this,G,ie).call(this),v(this,N,P).call(this,d(this,b),d(this,k)-d(this,b),r)},"#handlePaste"));f(this,le,u(t=>{switch(console.log("beforeinput",t),t.stopPropagation(),Ut.has(t.inputType)&&t.preventDefault(),v(this,G,ie).call(this),t.inputType){case"insertText":v(this,N,P).call(this,d(this,b),d(this,k)-d(this,b),t.data??"");break;case"insertParagraph":case"insertLineBreak":v(this,N,P).call(this,d(this,b),d(this,k)-d(this,b),`
8
+ `);break;case"deleteContentBackward":d(this,b)!==d(this,k)?v(this,N,P).call(this,d(this,b),d(this,k)-d(this,b),""):v(this,N,P).call(this,Math.max(0,d(this,b)-1),Math.min(1,d(this,b)),"");break;case"deleteContentForward":d(this,b)!==d(this,k)?v(this,N,P).call(this,d(this,b),d(this,k)-d(this,b),""):v(this,N,P).call(this,d(this,b),1,"");break}},"#handleBeforeInput"));f(this,pe,u(()=>{this.onBlur?.(d(this,C))},"#handleBlur"));f(this,ke,u(t=>{t.preventDefault(),this.onWheel({deltaX:t.deltaX,deltaY:t.deltaY,ctrlKey:t.ctrlKey,x:t.clientX,y:t.clientY})},"#handleWheel"));f(this,ue,u(t=>{t.key===" "&&(t.preventDefault(),v(this,G,ie).call(this),v(this,N,P).call(this,d(this,b),d(this,k)-d(this,b)," "))},"#handleKeyDown"));f(this,Ce,u(()=>{if(!(d(this,te)||d(this,oe))){if(d(this,X)){let{start:t,end:e}=d(this,X);y(this,X,null),Ge(this.$el,t,e),y(this,b,t),y(this,k,e);return}Ue(this.$el,d(this,F))}},"#handleMutation"));f(this,me,u(()=>{y(this,oe,!0)},"#handleCompositionStart"));f(this,he,u(()=>{y(this,oe,!1),y(this,C,this.$el.textContent||""),this.onInput?.(d(this,C),d(this,E))},"#handleCompositionEnd"));this.$el=t,this.onInput=e,this.onBlur=o,this.onWheel=r,y(this,E,n??null),y(this,se,s??null),y(this,Q,c.inheritedPatterns??[]),y(this,ce,c),v(this,Ie,Ze).call(this)}static create(t,e={},o={}){if(this.instances.has(t))return this.instances.get(t);let r=new Y(t,e,o);return Y.instances.set(t,r),r}get content(){return d(this,C)}get segments(){return d(this,E)}set segments(t){y(this,E,t)}get cursor(){return{start:d(this,b),end:d(this,k)}}getSelection(){return v(this,G,ie).call(this),{start:d(this,b),end:d(this,k)}}setPendingSelection(t,e){y(this,X,{start:t,end:e})}on(t,e,o=!1){this.$el.addEventListener(t,e,o);let r={eventName:t,callback:e,options:o};return d(this,j).push(r),()=>{this.$el.removeEventListener(t,e,o);let n=d(this,j).indexOf(r);n!==-1&&d(this,j).splice(n,1)}}onMatch(t,e,{exact:o=!0,startsWith:r=!1,endsWith:n=!1}={}){let s=t instanceof RegExp,c={trigger:s?t:t?.trim?.(),regex:s,exact:o,startsWith:r,endsWith:n,callback:e};return d(this,D).push(c),()=>{let a=d(this,D).indexOf(c);a!==-1&&d(this,D).splice(a,1)}}reset(){y(this,C,d(this,ee).content),y(this,F,d(this,ee).start),this.onInput?.(d(this,C))}destroy(){if(!d(this,te)){y(this,te,!0),d(this,ne)?.disconnect(),this.$el.removeEventListener("paste",d(this,de)),this.$el.removeEventListener("beforeinput",d(this,le)),this.$el.removeEventListener("blur",d(this,pe)),this.$el.removeEventListener("compositionstart",d(this,me)),this.$el.removeEventListener("compositionend",d(this,he)),this.$el.removeEventListener("keydown",d(this,ue)),d(this,H)&&(document.removeEventListener("wheel",d(this,H),{passive:!1,capture:!0}),y(this,H,null));for(let{eventName:t,callback:e,options:o}of d(this,j))this.$el.removeEventListener(t,e,o);y(this,j,[]),y(this,D,[]),Y.instances.delete(this.$el),d(this,ce).onDestroy?.(this)}}};D=new WeakMap,Q=new WeakMap,j=new WeakMap,ce=new WeakMap,C=new WeakMap,E=new WeakMap,b=new WeakMap,k=new WeakMap,F=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,oe=new WeakMap,H=new WeakMap,se=new WeakMap,X=new WeakMap,Ie=new WeakSet,Ze=u(function(){y(this,C,this.$el.textContent||"");let{start:t,end:e}=Te(this.$el);y(this,b,t),y(this,k,e),y(this,F,t),y(this,ee,{content:d(this,C),start:t,end:e}),this.$el.addEventListener("paste",d(this,de)),this.$el.addEventListener("beforeinput",d(this,le)),this.$el.addEventListener("blur",d(this,pe)),this.$el.addEventListener("compositionstart",d(this,me)),this.$el.addEventListener("compositionend",d(this,he)),this.$el.tagName==="BUTTON"&&this.$el.addEventListener("keydown",d(this,ue)),y(this,ne,new MutationObserver(d(this,Ce))),d(this,ne).observe(this.$el,Mt),this.onWheel&&(y(this,H,d(this,ke)),document.addEventListener("wheel",d(this,H),{passive:!1,capture:!0}))},"#init"),G=new WeakSet,ie=u(function(){let{start:t,end:e}=Te(this.$el);y(this,b,t),y(this,k,e)},"#updateCaret"),de=new WeakMap,le=new WeakMap,pe=new WeakMap,ke=new WeakMap,ue=new WeakMap,Ce=new WeakMap,me=new WeakMap,he=new WeakMap,N=new WeakSet,P=u(function(t,e,o){y(this,C,Ve(d(this,C),t,e,o)),y(this,F,t+o.length),d(this,E)&&d(this,se)&&y(this,E,d(this,se).call(this,d(this,E),t,e,o));let r=d(this,Q).length?[...d(this,D),...d(this,Q)]:d(this,D),n=Ke(d(this,C),d(this,F),r);for(let s of n)s.pattern.callback({word:s.word,trigger:s.match,start:s.start,end:s.end,query:s.query,match:s.regexMatch});this.onInput?.(d(this,C),d(this,E))},"#applyEdit"),u(Y,"Target"),L(Y,"instances",new WeakMap);var z=Y;var V,q,J,Ae=class Ae extends Pt{constructor(){super(...arguments);f(this,V,[]);f(this,q,[]);f(this,J,new Set)}actions(){return{create:(e,o={})=>{try{if(!(e instanceof HTMLElement))throw new Error("ContentEditor.create: $el must be an HTMLElement");e.isContentEditable||(e.contentEditable="true");let r=z.create(e,o,{inheritedPatterns:d(this,V),onDestroy:n=>{for(let{eventName:s,callback:c,options:a}of d(this,q))n.$el.removeEventListener(s,c,a);d(this,J).delete(n),z.instances.delete(e)}});for(let{eventName:n,callback:s,options:c}of d(this,q))e.addEventListener(n,s,c);return d(this,J).add(r),r}catch(r){return console.error(r),null}},getTarget:e=>z.instances.get(e),onMatch:(e,o,r={})=>{let n=e instanceof RegExp,s={trigger:n?e:e?.trim?.(),regex:n,exact:r.exact??!0,startsWith:r.startsWith??!1,endsWith:r.endsWith??!1,callback:o};return d(this,V).push(s),()=>{let c=d(this,V).indexOf(s);c!==-1&&d(this,V).splice(c,1)}},on:(e,o,r=!1)=>{let n={eventName:e,callback:o,options:r};d(this,q).push(n);for(let s of d(this,J))s.$el.addEventListener(e,o,r);return()=>{let s=d(this,q).indexOf(n);s!==-1&&d(this,q).splice(s,1);for(let c of d(this,J))c.$el.removeEventListener(e,o,r)}},applyFormat:(e,o,r)=>{if(!e)return null;let{start:n,end:s}=e.getSelection();if(n===s)return null;let c=e.segments;if(!c)return null;let a=r(c,n,s,o);return e.segments=a,e.setPendingSelection(n,s),a},removeFormat:(e,o,r)=>{if(!e)return null;let{start:n,end:s}=e.getSelection();if(n===s)return null;let c=e.segments;if(!c)return null;let a=r(c,n,s,o);return e.segments=a,e.setPendingSelection(n,s),a},reset:e=>z.instances.get(e)?.reset(),destroy:e=>z.instances.get(e)?.destroy()}}};V=new WeakMap,q=new WeakMap,J=new WeakMap,u(Ae,"ContentEditor"),L(Ae,"manifest",{name:"Content Editor",namespace:"contentEditor",version:"1.0.0",description:"Content editor extension"});var fe=Ae;import{State as rn}from"@jucie.io/engine-state";import{WindowBridge as an}from"@jucie.io/engine-window-bridge";import{createSubscriber as ge}from"@jucie.io/reactive";import{Reactive as cn}from"@jucie.io/state-reactive";import{HistoryManager as dn}from"@jucie.io/state-history";import{OnChange as ln}from"@jucie.io/state-on-change";import{Matcher as pn}from"@jucie.io/state-matcher";function Qe(){let i=window.innerWidth,t=window.innerHeight,o=document.body.style.transform||"",r={x:0,y:0},n=1;if(o){let s=o.match(/translate\(([^,]+),\s*([^)]+)\)/);s&&(r.x=parseFloat(s[1].replace("px",""))||0,r.y=parseFloat(s[2].replace("px",""))||0);let c=o.match(/scale\(([^)]+)\)/);c&&(n=parseFloat(c[1]))}return{scroll:r,scale:n,width:i,height:t}}u(Qe,"getViewport");var et=A("node",i=>({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). parent is the id of the container to create the node INSIDE \u2014 always pass it when a container exists. It falls back to "app" (the canvas root), which is only correct for frames; creating at the root and moving the node afterwards costs two operations instead of one and re-renders the scene twice.',alias:"create",mcpName:"create_node",schema:[{type:"String",props:"Object?",parent:"String?"}],examples:[{args:{type:"button",parent:"nd_hero"},description:"Create a button inside an existing container \u2014 pass that container id as parent"},{args:{type:"frame",props:{frame:"iPhone SE",name:"Home"},parent:"app"},description:"Frames are the exception \u2014 they belong at the canvas root"},{args:{type:"nav",parent:"nd_header"},description:"Create a nav inside an existing header"}],returns:"{ id: String, type: String }",handler:async t=>{let e=i("state"),{addNode:o}=await import("./addNode-UXIXDXSD.js"),r=e.ref(["nodes"]),{type:n,props:s,parent:c="app"}=t,a=o(r,n,s,c);if(a instanceof Error)throw a;if(n==="frame"){let p=(r.get(["app","children"])??[]).filter(m=>m!==a);if(p.length>0){let m=0;for(let g of p){let w=r.get([g,"bounds"]);w&&(m=Math.max(m,(w.x??0)+(w.width??0)))}let{updateBounds:h}=await import("./updateBounds-KL4N7VYO.js");h(r,a,{x:m+100,y:0})}}return{id:a,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 t=>{let e=i("state"),{updateStyle:o}=await import("./updateStyle-I5NO4TOV.js"),r=e.ref(["nodes"]),{nodeId:n,styles:s,breakpoint:c}=t,a=["display","position"].filter(h=>h in s),l={};c&&(c.startsWith(":")||c.startsWith("&")?l.interactionState=[c]:l.breakpoint=c);let p=o(r,n,{...s},l),m={id:n,styles:p};return a.length&&(m.warning=`Ignored ${a.join(", ")} \u2014 use node:setAutoLayout to change layout mode.`),m}},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 t=>{let e=i("state"),{createTextContent:o}=await import("./createTextContent-R4ZOE6SM.js"),r=e.ref(["nodes"]),{nodeId:n,value:s}=t,c=o({value:s});return r.set([n,"textContent"],c),{id:n,textContent:c}}},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 t=>{let e=i("state"),{disconnectNode:o}=await import("./disconnectNode-RRO6QPMX.js"),{moveNodeToLastChildOf:r}=await import("./moveNodeToLastChildOf-SGHEMUMS.js"),n=e.ref(["nodes"]),{nodeId:s,parentId:c}=t;o(n,s);let a=r(n,s,c);return{id:s,movedTo:c,success:a}}},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 t=>{let e=i("state"),{removeNode:o}=await import("./removeNode-H7TWCLTZ.js"),r=e.ref(["nodes"]),{nodeId:n}=t,[s,c]=o(r,n);return{id:s,removed:!0,removedNodes:c}}},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 t=>{let e=i("state"),{setNodeLayout:o}=await import("./setNodeLayout-PZMYT6M2.js"),r=e.ref(["nodes"]),{nodeId:n,layout:s}=t;return o(r,n,s)}},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 t=>{let o=i("state").ref(["nodes"]),{nodeId:r,name:n}=t;if(n===""){let{clearName:c}=await import("./clearName-LAT5C4G3.js");return c(o,r),{id:r,name:""}}let{setName:s}=await import("./setName-C26SXODP.js");return s(o,r,n),{id:r,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 t=>{let e=i("state"),{clearName:o}=await import("./clearName-LAT5C4G3.js"),r=e.ref(["nodes"]),{nodeId:n}=t;return o(r,n),{id:n}}},addComponent:{description:"Convert an existing node into a reusable local component. Nested nodes are replaced in-place by an instance; direct children of app/temp become the component artboard only (no instance). Returns componentId and instanceId (null when promoted from app/temp).",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 | null, componentId: String, name: String }",handler:async t=>{let e=i("state"),{addComponent:o}=await import("./addComponent-AQQI46C3.js"),r=e.ref(["nodes"]),{nodeId:n,name:s=""}=t,{componentId:c,instanceId:a}=o(r,n,s);return{instanceId:a,componentId:c,name:s}}}}));var tt=A("tree",i=>({create:{description:'Create a nested tree of nodes recursively (use for complex structures like page sections). FRAMES are the only tree that belongs at the root \u2014 they MUST have parent "app". Every other tree must be created directly into its container by passing that container id as parent. Never create at the root and move afterwards: that costs two operations per node and re-renders the scene twice.',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:'A FRAME goes at the canvas root \u2014 parent "app"'},{args:{tree:{type:"section",name:"Hero Section",styles:{display:"flex","flex-direction":"column",gap:"24px",padding:"64px"},children:[{type:"h1",name:"Headline",text:"Build faster"},{type:"p",name:"Subheadline",text:"Ship in minutes, not weeks."},{type:"button",name:"CTA Button",text:"Get started"}]},parent:"nd_home_frame"},description:"Everything that is NOT a frame is created directly inside its container \u2014 pass the container id, do not create at the root and move it"}],returns:"{ rootId: String, createdIds: Array, treeMap: Object }",handler:async t=>{let e=i("state"),o=i("log"),{addTree:r}=await import("./addTree-CU7MJAKT.js"),n=e.ref(["nodes"]),{tree:s,parent:c="app"}=t,{rootId:a,createdIds:l,treeMap:p}=r(n,s,c,{onWarn:(m,h)=>o.warn(m,h)});return{id:a,rootId:a,createdIds:l,treeMap:p,type:"tree"}}}}));var nt=A("behavior",i=>({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 t=>{let e=i("state"),{addEvent:o}=await import("./addEvent-PN6P6KR5.js"),{updateEvent:r}=await import("./updateEvent-YOKH67TX.js"),{normalizeEventName:n}=await import("./normalizeEventName-Y34QRO25.js"),s=e.ref(["nodes"]),{nodeId:c,name:a,binding:l,code:p,mode:m}=t,h=n(a);if((s.get([c,"events"])??[]).find(I=>I.name===h)||o(s,c,h),l!==void 0){let I=(s.get([c,"events"])??[]).find(O=>O.name===h)??{name:h};r(s,c,h,{...I,mode:"binding",binding:l.split("."),code:null})}else if(p!==void 0){let I=(s.get([c,"events"])??[]).find(O=>O.name===h)??{name:h};r(s,c,h,{...I,mode:m??"code",code:p,binding:null})}return{id:c,name:h}}},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 t=>{let e=i("state"),{updateEvent:o}=await import("./updateEvent-YOKH67TX.js"),{normalizeEventName:r}=await import("./normalizeEventName-Y34QRO25.js"),n=e.ref(["nodes"]),{nodeId:s,name:c,event:a}=t,l=r(c),p=a?.name!==void 0?{...a,name:r(a.name)}:{...a,name:l};return o(n,s,l,p),{id:s,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 t=>{let e=i("state"),{removeEvent:o}=await import("./removeEvent-GBW7REQV.js"),{normalizeEventName:r}=await import("./normalizeEventName-Y34QRO25.js"),n=e.ref(["nodes"]),{nodeId:s,name:c}=t,a=r(c);return o(n,s,a),{id:s,name:a}}},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 t=>{let e=i("state"),{updateRoute:o}=await import("./updateRoute-42OSDVLS.js"),r=e.ref(["nodes"]),{nodeId:n,route:s}=t,c=typeof s=="string"?{path:s}:s;return o(r,n,c),{id:n,route:c}}},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 t=>{let e=i("state"),{setHomePage:o}=await import("./setHomePage-GBSAVDQC.js"),r=e.ref(["nodes"]),{nodeId:n,isHomePage:s}=t;return o(r,n,s),{id:n,isHomePage:s}}},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 t=>{let e=i("state"),{setDestination:o}=await import("./setDestination-26OTLIOX.js"),r=e.ref(["nodes"]),{nodeId:n,destination:s}=t,c=typeof s=="string"?{path:s}:s;return o(r,n,c),{id:n,destination:c}}},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 t=>{let e=i("state"),{clearDestination:o}=await import("./clearDestination-TFFJZYZU.js"),r=e.ref(["nodes"]),{nodeId:n}=t;return o(r,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 t=>{let e=i("state"),{setRepeat:o}=await import("./setRepeat-GIOC7YT4.js"),r=e.ref(["nodes"]),{nodeId:n,binding:s,as:c,index:a,key:l,keyOn:p}=t,m=s.split(".");return o(r,n,{descriptor:{mode:"binding",binding:m},as:c,index:a,key:l,keyOn:p}),{id:n,binding:s}}},clearRepeat:{description:"Remove repeat binding from a node",schema:[{nodeId:"String"}],examples:[{args:{nodeId:"nd_card"},description:"Stop repeating"}],returns:"{ id: String }",handler:async t=>{let e=i("state"),{clearRepeat:o}=await import("./clearRepeat-OJXLCGGV.js"),r=e.ref(["nodes"]),{nodeId:n}=t;return o(r,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 t=>{let e=i("state"),{setRender:o}=await import("./setRender-MNCOTE35.js"),r=e.ref(["nodes"]),{nodeId:n,value:s}=t,c=`function (ctx) {
14
+ return ${s}
15
+ }`;return o(r,n,{mode:"computed",computed:c}),{id:n,value:s}}},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 t=>{let e=i("state"),{clearRender:o}=await import("./clearRender-XEMKLRCM.js"),r=e.ref(["nodes"]),{nodeId:n}=t;return o(r,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 t=>{let e=i("state"),{addState:o}=await import("./addState-RSEYKWQO.js"),r=e.ref(["nodes"]),{nodeId:n,stateName:s}=t;return o(r,n,s),{id:n,stateName:s}}},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 t=>{let e=i("state"),{updateState:o}=await import("./updateState-3RQX5YED.js"),r=e.ref(["nodes"]),{nodeId:n,stateName:s,expression:c}=t;return o(r,n,s,{name:s,mode:"computed",computed:c??null}),{id:n,stateName:s}}},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 t=>{let e=i("state"),{removeState:o}=await import("./removeState-X4UQTIPT.js"),r=e.ref(["nodes"]),{nodeId:n,stateName:s}=t;return o(r,n,s),{id:n,stateName:s}}},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 t=>{let e=i("state"),{updateBounds:o}=await import("./updateBounds-KL4N7VYO.js"),r=e.ref(["nodes"]),{nodeId:n,bounds:s}=t;return o(r,n,s),{id:n,bounds:s}}},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 t=>{let e=i("state"),{setHtmlId:o}=await import("./setHtmlId-PZQQWCXU.js"),r=e.ref(["nodes"]),{nodeId:n,id:s}=t;return o(r,n,s),{id:n,htmlId:s}}},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 t=>{let e=i("state"),{addAttribute:o}=await import("./addAttribute-MEJIGMHV.js"),r=e.ref(["nodes"]),{nodeId:n,name:s,value:c,mode:a}=t;return o(r,n,{name:s,value:c,mode:a}),{id:n,name:s}}},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 t=>{let e=i("state"),{updateAttribute:o}=await import("./updateAttribute-TLLDGUPR.js"),r=e.ref(["nodes"]),{nodeId:n,...s}=t;return typeof s.binding=="string"&&(s.binding=s.binding.split(".")),s.name==="model"&&s.mode==null&&(s.mode="binding"),o(r,n,s.name,s),{id:n,name:s.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 t=>{let e=i("state"),{removeAttribute:o}=await import("./removeAttribute-HCDVVDSZ.js"),r=e.ref(["nodes"]),{nodeId:n,name:s}=t;return o(r,n,s),{id:n,name:s}}},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 t=>{let e=i("state"),{addLifecycleHook:o}=await import("./addLifecycleHook-D2UKKFVW.js"),{updateLifecycleHook:r}=await import("./updateLifecycleHook-4555YGGM.js"),n=e.ref(["nodes"]),{nodeId:s,key:c,code:a,binding:l}=t;return o(n,s,c),(a!==void 0||l!==void 0)&&r(n,s,c,{key:c,mode:a!==void 0?"code":"binding",code:a??"",binding:l??null}),{id:s,key:c}}},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 t=>{let e=i("state"),{updateLifecycleHook:o}=await import("./updateLifecycleHook-4555YGGM.js"),r=e.ref(["nodes"]),{nodeId:n,key:s,hook:c}=t,a=(r.get([n,"lifecycle"])??[]).find(l=>l.key===s)??{key:s};return o(r,n,s,{...a,...c}),{id:n,key:s}}},removeLifecycleHook:{description:"Remove a lifecycle hook by key.",schema:[{nodeId:"String",key:"String"}],returns:"{ id: String, key: String }",handler:async t=>{let e=i("state"),{removeLifecycleHook:o}=await import("./removeLifecycleHook-V4BK7NPV.js");return o(e.ref(["nodes"]),t.nodeId,t.key),{id:t.nodeId,key:t.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 t=>{let e=i("state"),{addOption:o}=await import("./addOption-AFCUFOT7.js"),r=e.ref(["nodes"]),{nodeId:n,value:s,label:c}=t;return o(r,n,{value:s,label:c??s}),{id:n,value:s}}},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 t=>{let e=i("state"),{updateOption:o}=await import("./updateOption-YUFQYF43.js"),r=e.ref(["nodes"]),{nodeId:n,value:s,newValue:c,label:a}=t,l=c??s;return o(r,n,s,{value:l,label:a??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 t=>{let e=i("state"),{removeOption:o}=await import("./removeOption-4SMMGXLO.js");return o(e.ref(["nodes"]),t.nodeId,t.value),{id:t.nodeId,value:t.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 t=>{let e=i("state"),{setOptionsExpression:o}=await import("./setOptionsExpression-PQ3JOVEW.js"),r=e.ref(["nodes"]),{nodeId:n,binding:s,valueKey:c,labelKey:a}=t;return o(r,n,{binding:s,valueKey:c,labelKey:a}),{id:n}}},clearOptionsExpression:{description:"Switch a select node back to its static options list.",schema:[{nodeId:"String"}],returns:"{ id: String }",handler:async t=>{let e=i("state"),{clearOptionsExpression:o}=await import("./clearOptionsExpression-QHE4GD2Y.js");return o(e.ref(["nodes"]),t.nodeId),{id:t.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 t=>{let e=i("state"),{setTagName:o}=await import("./setTagName-FA7BMEUS.js"),r=e.ref(["nodes"]),{nodeId:n,tagName:s}=t;return o(r,n,s),{id:n,tagName:s}}},updateHtml:{description:"Set the inner HTML of a template node (raw HTML embed).",schema:[{nodeId:"String",html:"String"}],returns:"{ id: String }",handler:async t=>{let e=i("state"),{updateHtml:o}=await import("./updateHtml-Z4XI7SYU.js");return o(e.ref(["nodes"]),t.nodeId,t.html),{id:t.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 t=>{let e=i("state"),{addParamToRoute:o}=await import("./addParamToRoute-6LOHCID7.js"),r=e.ref(["nodes"]),{nodeId:n,key:s,optional:c}=t;o(r,n);let l=(r.get([n,"route","params"])??[]).length-1;return(s!==void 0||c!==void 0)&&r.set([n,"route","params",l],{key:s??null,optional:c??!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 t=>{let e=i("state"),{removeParamFromRoute:o}=await import("./removeParamFromRoute-2Q2PYYP5.js");return o(e.ref(["nodes"]),t.nodeId,t.index),{id:t.nodeId,index:t.index}}}}));var ot=A("token",i=>({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 t=>{let e=i("state"),{addToken:o}=await import("./addToken-35LUBJPE.js"),r=e.ref(["tokens"]),{path:n,value:s,type:c}=t;return{id:o(r,{$path:n,$value:s,...c!==void 0?{$type:c}:{}}),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 t=>{let e=i("state"),{updateToken:o}=await import("./updateToken-AFJYTJ7R.js"),r=e.ref(["tokens"]),{tokenId:n,changes:s={}}=t,c={};return s.path!==void 0&&(c.$path=s.path),s.value!==void 0&&(c.$value=s.value),s.type!==void 0&&(c.$type=s.type),o(r,n,c),{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 t=>{let e=i("state"),{removeToken:o}=await import("./removeToken-3QTFHQF6.js"),r=e.ref(["tokens"]);return o(r,t.tokenId),{id:t.tokenId}}}}));function Me(i,t){if(i==null||typeof i!="string")return i;switch(t){case"number":return i===""?0:Number(i);case"boolean":return i==="true"||i==="1";case"array":case"object":if(!i||i==="")return t==="array"?[]:{};try{return JSON.parse(i)}catch{return t==="array"?[]:{}}default:return i}}u(Me,"coerceValue");function re(i,{key:t,name:e,index:o}){let r=t??e;return r!==void 0?i.findIndex(n=>(n.key??n.name)===r):o??-1}u(re,"resolveIndex");var st=A("store",i=>({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 t=>{let e=i("state"),{validateStorePayload:o}=await import("./validateStorePayload-3HAVFGVL.js"),{addStore:r}=await import("./addStore-AK2FTEON.js"),{createValue:n}=await import("./createValue-GRZQQ5RR.js"),{createComputed:s}=await import("./createComputed-NVI2BGGF.js"),{createAction:c}=await import("./createAction-X7WWJ6BN.js");o(t);let a=e.ref([".stores"]),l=r(a,t.name);return t.state?.length&&a.set([l,"state"],t.state.map(p=>n({key:p.key,type:p.type,value:Me(p.value,p.type)}))),t.computed?.length&&a.set([l,"computed"],t.computed.map(p=>s({name:p.name,code:p.code}))),t.actions?.length&&a.set([l,"actions"],t.actions.map(p=>c({name:p.name,code:p.code}))),{id:l}}},remove:{description:"Remove a data store and everything in it.",alias:"removeStore",schema:[{storeId:"String"}],returns:"{ id: String }",handler:async t=>{let e=i("state"),{removeStore:o}=await import("./removeStore-B3WQQP3D.js");return o(e.ref([".stores"]),t.storeId),{id:t.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 t=>{let e=i("state"),{addValue:o}=await import("./addValue-LIQSHZFR.js"),{updateValue:r}=await import("./updateValue-XGRBUCOT.js"),n=e.ref([".stores"]),{storeId:s,key:c,type:a,value:l}=t;o(n,s,a);let p=n.get([s,"state"])??[],m=0,h=p[m];if(c!==void 0||l!==void 0){let g=a??h.type;r(n,s,m,{key:c??h.key,type:g,value:Me(l??h.value,g)})}return{storeId:s,key:c??h.key,index:m}}},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 t=>{let e=i("state"),{updateValue:o}=await import("./updateValue-XGRBUCOT.js"),r=e.ref([".stores"]),{storeId:n,changes:s={}}=t,c=r.get([n,"state"])??[],a=re(c,t);if(a<0)throw new Error(`store value not found: ${t.key??t.index} in ${n}`);let l={...c[a],...s};return s.value!==void 0&&(l.value=Me(l.value,l.type)),o(r,n,a,l),{storeId:n,index:a}}},removeValue:{description:"Remove a store value by key (or index).",schema:[{storeId:"String",key:"String?",index:"Number?"}],returns:"{ storeId: String, index: Number }",handler:async t=>{let e=i("state"),{removeValue:o}=await import("./removeValue-QIQBSOHR.js"),r=e.ref([".stores"]),n=r.get([t.storeId,"state"])??[],s=re(n,t);if(s<0)throw new Error(`store value not found: ${t.key??t.index} in ${t.storeId}`);return o(r,t.storeId,s),{storeId:t.storeId,index:s}}},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 t=>{let e=i("state"),{addComputed:o}=await import("./addComputed-2JNIUCEP.js"),{updateComputed:r}=await import("./updateComputed-JGJIIC4A.js"),n=e.ref([".stores"]),{storeId:s,name:c,code:a}=t;o(n,s);let l=n.get([s,"computed"])??[],p=0,m=l[p];return(c!==void 0||a!==void 0)&&r(n,s,p,{name:c??m.name,code:a??m.code}),{storeId:s,name:c??m.name,index:p}}},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 t=>{let e=i("state"),{updateComputed:o}=await import("./updateComputed-JGJIIC4A.js"),r=e.ref([".stores"]),{storeId:n,changes:s={}}=t,c=r.get([n,"computed"])??[],a=re(c,t);if(a<0)throw new Error(`store computed not found: ${t.name??t.index} in ${n}`);return o(r,n,a,{...c[a],...s}),{storeId:n,index:a}}},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 t=>{let e=i("state"),{removeComputed:o}=await import("./removeComputed-2UWAXEAM.js"),r=e.ref([".stores"]),n=r.get([t.storeId,"computed"])??[],s=re(n,t);if(s<0)throw new Error(`store computed not found: ${t.name??t.index} in ${t.storeId}`);return o(r,t.storeId,s),{storeId:t.storeId,index:s}}},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 t=>{let e=i("state"),{addAction:o}=await import("./addAction-3QC2Z4ZR.js"),{updateAction:r}=await import("./updateAction-TUQLHSJE.js"),n=e.ref([".stores"]),{storeId:s,name:c,code:a}=t;o(n,s);let l=n.get([s,"actions"])??[],p=0,m=l[p];return(c!==void 0||a!==void 0)&&r(n,s,p,{name:c??m.name,code:a??m.code}),{storeId:s,name:c??m.name,index:p}}},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 t=>{let e=i("state"),{updateAction:o}=await import("./updateAction-TUQLHSJE.js"),r=e.ref([".stores"]),{storeId:n,changes:s={}}=t,c=r.get([n,"actions"])??[],a=re(c,t);if(a<0)throw new Error(`store action not found: ${t.name??t.index} in ${n}`);return o(r,n,a,{...c[a],...s}),{storeId:n,index:a}}},removeAction:{description:"Remove a store action by name (or index).",schema:[{storeId:"String",name:"String?",index:"Number?"}],returns:"{ storeId: String, index: Number }",handler:async t=>{let e=i("state"),{removeAction:o}=await import("./removeAction-UIZVYC4K.js"),r=e.ref([".stores"]),n=r.get([t.storeId,"actions"])??[],s=re(n,t);if(s<0)throw new Error(`store action not found: ${t.name??t.index} in ${t.storeId}`);return o(r,t.storeId,s),{storeId:t.storeId,index:s}}}}));var rt=A("animation",i=>({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 t=>{let e=i("state"),{createAnimation:o}=await import("./createAnimation-TYRSVQNL.js"),{createAnimationId:r}=await import("./id-G47WSCWG.js"),n=e.ref(["animations"]),{name:s,keyframes:c,duration:a,easing:l,iterations:p,fill:m,scope:h}=t,g=r();return n.set([g],o({name:s,keyframes:c,duration:a,easing:l,iterations:p,fill:m,scope:h??"project"})),{id:g,name:s}}},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 t=>{let o=i("state").ref(["animations"]),{animationId:r,changes:n={}}=t;if(!o.get([r]))throw new Error(`animation not found: ${r}`);for(let[c,a]of Object.entries(n))o.set([r,c],a);return{id:r}}},delete:{description:"Delete an animation asset by id. Does not remove bindings that reference it.",schema:[{animationId:"String"}],returns:"{ id: String }",handler:async t=>(i("state").ref(["animations"]).remove([t.animationId]),{id:t.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 t=>{let e=i("state"),{addAnimationBinding:o}=await import("./addAnimationBinding-N3UW27JM.js"),r=e.ref(["nodes"]),{nodeId:n,animationId:s,play:c,reverse:a}=t,l={id:s,play:c??"mount"};return a!==void 0&&(l.reverse=a),o(r,n,l),{nodeId:n,animationId:s}}},unbind:{description:"Remove an animation binding from a node by animation id.",schema:[{nodeId:"String",animationId:"String"}],returns:"{ nodeId: String, animationId: String }",handler:async t=>{let e=i("state"),{removeAnimationBinding:o}=await import("./removeAnimationBinding-PD2IRVQZ.js");return o(e.ref(["nodes"]),t.nodeId,t.animationId),{nodeId:t.nodeId,animationId:t.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 t=>{let e=i("state"),{updateAnimationBinding:o}=await import("./updateAnimationBinding-I3AQNLO2.js");return o(e.ref(["nodes"]),t.nodeId,t.animationId,t.binding),{nodeId:t.nodeId,animationId:t.animationId}}}}));var at=[et,tt,nt,ot,st,rt];var it={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 ct={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 dt={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 lt={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 pt={...it,...ct,...dt,...lt};import{defineContracts as Dt}from"@jucie.io/engine-socket/client";var ut=Dt("ledger",i=>{let[t,e]=i("state","socket");return t.ledger.addChangeListener(o=>{o.length&&e.publish("ledger:sync",o)}),{apply:{handler:o=>{t.ledger.apply(o)}}}});import{defineContracts as Lt}from"@jucie.io/engine-socket/client";var mt=Lt("presence",i=>{let t=i("channel");return{join:{handler:(e,o)=>{t.to("renderWorker").publish("user:connect",e,o)}},leave:{handler:e=>{t.to("renderWorker").publish("user:disconnect",e)}},update:{handler:(e,o)=>{t.to("renderWorker").publish("user:update",e,o)}},snapshot:{handler:e=>{t.to("renderWorker").publish("user:setAll",e)}}}});import{defineContracts as Wt}from"@jucie.io/engine-socket/client";var ht=Wt("assets",i=>{let[t,e,o]=i("cache","channel","socket"),r=u(n=>{t.set(["assets"],n),e.to("editor").publish("assets:set",n)},"publish");return o.onConnect(async()=>{try{r(await o.request("assets:requestSnapshot")??{})}catch{}}),{set:{handler:n=>r(n??{})},update:{handler:n=>r({...t.get(["assets"])??{},...n})},remove:{handler:n=>{let s={...t.get(["assets"])??{}};delete s[n],r(s)}}}});import{defineContracts as qt}from"@jucie.io/engine-socket/client";function ft(i,t,e){let o=t.getSelectedRids?.()??[],r=i.get(["nodes"])??{},n=o.length>0?t.getIds(o):[],s=o.length>0?jt(r,n,o,t):Bt(t);return{framework:e.get(["config","framework"])??"react",componentCatalog:t.getMeta(),stores:i.get([".stores"])??{},tokens:i.get(["tokens"])??{},animations:i.get(["animations"])??{},...s,availableFrames:Fe(),layoutHints:Ft(r,o)}}u(ft,"buildAiContext");function Bt(i){return{scope:"global",jsx:i.projectPuppetJsx("app",{maxDepth:8})}}u(Bt,"buildGlobalContext");function jt(i,t,e,o){let r=zt(i,t[0])??"app";return{scope:"local",selectedIds:t,jsx:o.projectPuppetJsx(r)}}u(jt,"buildLocalContext");function Ft(i,t){let e={viewportPositions:[],usedPositions:[],containerLayouts:{},suggestedViewportPosition:null},o=0;return Object.entries(i).forEach(([r,n])=>{if(n.type==="frame"&&n.bounds){let{top:s,left:c,width:a,height:l}=n.bounds,p={id:r,name:n.name,top:s||0,left:c||0,width:a||375,height:l||667};e.viewportPositions.push(p);let m=p.left+p.width;m>o&&(o=m)}if(n.type!=="frame"&&n.style?.default?.position==="absolute"){let{top:s,left:c,width:a,height:l}=n.style.default;e.usedPositions.push({id:r,top:parseInt(s)||0,left:parseInt(c)||0,width:parseInt(a)||100,height:parseInt(l)||50})}(n.layout==="flex"||n.style?.default?.display==="flex")&&(e.containerLayouts[r]="flex"),(n.layout==="grid"||n.style?.default?.display==="grid")&&(e.containerLayouts[r]="grid")}),e.suggestedViewportPosition={top:0,left:o+50},e}u(Ft,"buildLayoutHints");function Ht(i,t){for(let[e,o]of Object.entries(i))if(o.children?.includes(t))return e;return null}u(Ht,"findParent");function zt(i,t){let e=t;for(;e;){let o=i[e];if(!o)return null;if(o.type==="frame")return e;e=Ht(i,e)}return null}u(zt,"findFrameAncestor");var Yt=5e3,Xt=50,Gt=40,Vt=2e3;function Jt(i){let t=Object.keys(i),e=new Set(t);return t.filter(o=>{let r=new Set([o]),n=i[o]?.parentRid;for(;n&&!r.has(n);){if(e.has(n))return!1;r.add(n),n=i[n]?.parentRid}return!0})}u(Jt,"pruneToRoots");function Kt(i,t=[],e=Vt){let o=Jt(i.updated??{});return o.length===0&&i.fullSync?t.length?t:null:o.length>e?null:o}u(Kt,"selectDeltaRoots");function Zt(i,t){return t.length<i.length}u(Zt,"fullSceneIsSmaller");var gt=qt("ai:stage",i=>{let[t,e,o,r,n]=i("state","sceneCompiler","cache","log","aiOps");function s(l=Yt){return new Promise(p=>{let m={},h=new Set,g=null,w=!1,I=!1,O=u(()=>{clearTimeout(x),clearTimeout(g),U(),p(w?{updated:m,removed:[...h],fullSync:I}:null)},"finish"),x=setTimeout(O,l),U=e.addNodeGraphListener((M,Oe,_e)=>{w=!0,_e?I=!0:Object.assign(m,M??{}),(Oe??[]).forEach(Ee=>h.add(Ee)),clearTimeout(g),g=setTimeout(O,Xt)})})}u(s,"waitForRender");function c(l){if(!l?.length)return[];try{return e.getIds(l)??[]}catch{return l}}u(c,"resolveIds");function a(l,p=[]){if(!l)return{delta:!0,settled:!1,changedJsx:"",removedIds:[]};let m=Kt(l,p);if(m===null)return null;let h=m.length?e.projectPuppetJsx(m):"";if(m.length>Gt){let g=e.projectPuppetJsx("app",{maxDepth:8});if(Zt(h,g))return null}return{delta:!0,settled:!0,changedJsx:h,removedIds:c(l.removed)}}return u(a,"buildDelta"),{"context:capture":{timeoutMs:15e3,handler:async({awaitRender:l,delta:p,focusIds:m=[]}={})=>{try{let h=l?await s():null;if(p){let g=a(h,m);if(g)return g}return ft(t,e,o)}catch(h){throw r.error("ai context capture failed",{error:h.message}),h}}},"operations:execute":{timeoutMs:6e4,handler:async({batch:l}={})=>{try{t.history.group();try{return await n.executeBatch(l??{operations:[]})}finally{t.history.commit(l?.description||l?.message||"AI changes")}}catch(p){throw r.error("ai operations execute failed",{error:p.message}),p}}}}});import{defineContracts as Qt}from"@jucie.io/engine-socket/client";var yt=Qt("ai:sessions",i=>{let[t,e]=i("cache","channel");return{set:{handler:o=>{t.set(["ai","sessions"],o),e.to("editor").publish("ai:sessions:set",o)}}}});import{defineContracts as en}from"@jucie.io/engine-socket/client";var St=en("screenshot",i=>{let[t,e,o]=i("state","cache","channel");return{capture:{timeoutMs:12e4,handler:async({frameIds:r=null,limit:n=null,fullPage:s=!0,maxWidth:c=null,maxHeight:a=null}={})=>{let l=t.get(["nodes"]),p=l?.app?.children??[],m=r?.length?new Set(r):null,h=p.filter(x=>l[x]?.type==="frame").filter(x=>!m||m.has(x)).map(x=>({id:x,name:l[x].name||x,bounds:l[x].bounds})),g=m?[...m].filter(x=>!h.some(U=>U.id===x)):[],w=h.length;n&&h.length>n&&(h=h.slice(0,n));let I=e.get(["config"]),O=[];for(let x of h){let U={config:{basePath:I.basePath??`http://localhost:${I.port}`,view:"screen-capture",type:I.type||"local",nodeId:x.id},width:x.bounds?.width??1440,height:x.bounds?.height??900,result:"base64",fullPage:s};c!=null&&(U.maxWidth=c),a!=null&&(U.maxHeight=a);let M=await o.to("electronMain").request("screenCapture:capture",U);O.push({id:x.id,name:x.name,imageData:`data:image/jpeg;base64,${M.base64}`,scale:M.scale??1,naturalSize:M.naturalSize??null,outputSize:M.outputSize??null,scaled:M.scaled??!1})}return{frames:O,dropped:Math.max(0,w-O.length),...g.length?{missing:g}:{}}}}}});import{defineActions as tn}from"@jucie.io/engine";var bt=tn("sync",i=>{let[t,e,o,r]=i("channel","sceneCompiler","state","cache");return{push:()=>{t.to("renderWorker").publish("sync:set",{graph:e.getNodeGraph()??{},viewport:e.getViewport(),selectedRids:e.getSelectedRids(),focalRid:e.getFocalRid()}),t.to("editor").publish("sync:set",{graph:e.getNodeGraph()??{},stores:o.get([".stores"])??{},tokens:o.get(["tokens"])??{},animations:o.get(["animations"])??{},assets:r.get(["assets"])??{},libraryClassNames:o.get(["libraryClassNames"])??[],components:e.getMeta(),aiSessions:r.get(["ai","sessions"])??[]})}}});import{jucieConfig as un}from"jucie:config";var or=u(async(i,t)=>{try{let e={...un,...i},o=(await import("@components"))?.default??{},r=Se(e.$el||"app"),n=Se("temp"),s=Se("components"),c=Qe(),a=nn.create().install(an,rn.configure({plugins:[cn,Le.configure({actorId:crypto.randomUUID()}),dn,pn,ln]}),Pe.configure(e),ae,on,sn.configure(We(e,{auth:t??null})),De.configure({visibility:!0,focus:!1,freeze:!0,sleepDetection:{enabled:!0,threshold:1e4}}),fe);a.cache.load({config:e,token:t,$app:r,$temp:n,$components:s,viewport:c}),a.aiOps.use(...at);let[l,p]=await Promise.all([fetch(new URL("scene/snapshot",e.basePath)).then(h=>h.json()),fetch(new URL("ai/chats",e.basePath)).then(h=>h.ok?h.json():null).catch(()=>null)]);a.use(bt),a.state.ledger.hydrate(l),a.state.history.start(),a.sceneCompiler.loadPrototypes(Be),a.sceneCompiler.loadSources(o),await a.sceneCompiler.create("app","app"),await a.sceneCompiler.create("temp","temp",{mode:"temp"}),await a.sceneCompiler.create("components","components",{mode:"components"}),p?.sessions&&a.cache.set(["ai","sessions"],p.sessions),a.socket.use(ut,mt,ht,qe,gt,yt,St),a.windowBridge.register("parent",window.parent,"*"),a.windowBridge.subscribe("jucie:channel:close",()=>{try{a.channel.disconnect()}catch(h){console.warn("[stage] channel disconnect failed",h)}return!0}),a.channel.portProvider(async()=>await a.windowBridge.to("parent").request("jucie:port:request",e.id));let m=await a.channel.connect();if(m){let{nodeGraphContracts:h}=await import("./nodeGraph-UGMYCUUO.js"),{historyContracts:g}=await import("./history-5FAKKGJY.js"),{userContracts:w}=await import("./user-CK5IAVFH.js"),{assetsContracts:I}=await import("./assets-5J5INILR.js"),{aiContracts:O}=await import("./aiRelay-LW2UZKRR.js"),{aiSessionContracts:x}=await import("./aiSessionContracts-RQKGQY4N.js"),{aiMessagesContracts:U}=await import("./aiMessagesContracts-QWUORKI3.js"),{aiAttachmentContracts:M}=await import("./aiAttachmentContracts-KGD3EHZQ.js"),{contentEditorContracts:Oe}=await import("./contentEditor-H4QUMYKV.js"),{viewportContracts:_e}=await import("./viewport-CQRIOXC6.js"),{contracts:Ee}=await import("./main-RMI3HY2B.js"),{contracts:wt}=await import("./main-OLXPOBOM.js"),{contracts:xt}=await import("./main-QADVRVCC.js"),{contracts:vt}=await import("./main-GPY4VWAB.js");return m.use(_e,h,g,w,I,O,x,U,M,Oe,...Ee,...wt,...xt,...vt),a.channel.to("editor").publish("elements:set",ze),a.channel.to("editor").publish("frames:set",je),a.channel.to("editor").publish("graphics:set",He),a.channel.to("editor").publish("globalAnimations:set",pt),a.channel.to("editor").publish("components:set",a.sceneCompiler.getMeta()),a.channel.to("editor").publish("assets:set",a.cache.get(["assets"])??{}),a.channel.to("editor").publish("ai:sessions:set",a.cache.get(["ai","sessions"])??[]),ge(()=>a.state.get(["nodes"]),S=>{if(!S)return;let _=Object.keys(S).filter(T=>S[T]?.type==="component"),R=[...a.sceneCompiler.getMeta()];for(let T of _){let ye=S[T];R.push({displayName:ye.name||T,category:"local",keywords:[ye.name,"component"],library:null,tagName:T})}a.channel.to("editor").publish("components:set",R)}),ge(()=>a.state.get(["tokens"]),S=>{a.channel.to("editor").publish("tokens:set",S??{}),a.channel.to("panel-tokens").publish("token:set",S??{})}),ge(()=>a.state.get([".stores"]),S=>{a.channel.to("editor").publish("stores:set",S??{})}),ge(()=>a.state.get(["libraryClassNames"]),S=>{a.channel.to("editor").publish("libraryClassNames:set",S??[])}),ge(()=>{let S=a.state.get(["animations"])??{};return Object.entries(S).map(([_,R])=>({id:_,...R}))},S=>{a.channel.to("editor").publish("animations:set",S??[])}),a.sceneCompiler.addNodeGraphListener((S,_,R)=>{R?m.to("renderWorker","editor").publish("nodeGraph:set",S):m.to("renderWorker","editor").publish("nodeGraph:update",S,_),a.sceneCompiler.projectPuppetJsx(["app"])}),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.pageLifecycle.on("beforeclose",()=>{a.channel.disconnect()}),m.subscribe("selection:rids:set",S=>{a.sceneCompiler.setSelectedRids(S)}),m.subscribe("selection:focalRid:set",S=>{a.sceneCompiler.setFocalRid(S||null)}),m.subscribe("animation:preview:play",(S,_)=>{for(let R of _){let T=a.sceneCompiler.animate(R,S,{fill:"none"}),ye=Array.isArray(T)?T:T?[T]:[];for(let It of ye)It.addEventListener("finish",()=>{m.to("editor").publish("animation:preview:finished",S)},{once:!0})}}),m.subscribe("animation:preview:stop",(S,_)=>{for(let R of _)a.sceneCompiler.cancelAnimation(R,S)}),m.subscribe("animation:preview:seek",(S,_)=>{a.sceneCompiler.seekAnimation(S,_)}),a.channel.onEnable(a.sync.push),a.sync.push(),e}else throw new Error("Stage channel failed to connect")}catch(e){return{error:e.message}}},"createDesignBootstrap");export{or as createDesignBootstrap};
@@ -0,0 +1 @@
1
+ import{b as p}from"./chunk-7H7BUWZP.js";import"./chunk-UOBNXO4G.js";import"./chunk-WKUYNMPE.js";import"./chunk-JG62FTV2.js";import"./chunk-NGQ7GQSH.js";import"./chunk-GFV4SJGI.js";import"./chunk-5RVLCYPU.js";import"./chunk-PRXT2NXZ.js";import"./chunk-VZJTFJZN.js";import"./chunk-SV2PSWLZ.js";import"./chunk-O6ZKHW5L.js";import"./chunk-JRCZXEL2.js";import"./chunk-E3LBHSMZ.js";import"./chunk-QAUB5H3S.js";import"./chunk-7C53OCBB.js";import"./chunk-JGELXWD3.js";import"./chunk-457GNGEV.js";import"./chunk-YFURTAAV.js";import"./chunk-V5TNO5LS.js";import"./chunk-MO2MHTOQ.js";import"./chunk-ND3BSJOS.js";import"./chunk-XPWU54SD.js";import"./chunk-BCDDG7CW.js";import"./chunk-MHU6JTZC.js";import"./chunk-HZ7KMV42.js";import"./chunk-PBDSKQIQ.js";import"./chunk-VQDQA3ID.js";import"./chunk-GBE5QYRO.js";import"./chunk-K4R2DLAT.js";import"./chunk-TYA35RCB.js";import"./chunk-PJFVW637.js";import"./chunk-WWWIZ7VG.js";import"./chunk-JKJRK7ER.js";import"./chunk-3GPQ3HYG.js";import"./chunk-PBDA5G7U.js";import"./chunk-AOLXVYBO.js";import"./chunk-TDXJNI7H.js";import"./chunk-MA3WBBC6.js";import"./chunk-QM4IVTLC.js";import"./chunk-JPPPL527.js";import"./chunk-DDCGP5GM.js";import"./chunk-WCL6XNDN.js";import"./chunk-QUWCLSNF.js";import"./chunk-J7XIIFXF.js";import"./chunk-E7JXTPFA.js";import"./chunk-CB4COXKW.js";import"./chunk-4KXBOJIC.js";import"./chunk-ATDHO5ME.js";import"./chunk-NM4FV6YK.js";import"./chunk-K33QXMAS.js";import"./chunk-XBUV5F3F.js";import"./chunk-HBNF34QX.js";import"./chunk-7SM7WG53.js";import"./chunk-UJZNQZVK.js";import"./chunk-QVOXRLEG.js";import"./chunk-3KR3JD5T.js";import"./chunk-DOGIABU3.js";import"./chunk-IE6IKN6P.js";import"./chunk-HZXJUIIX.js";import"./chunk-MQKISAKO.js";import"./chunk-VP2XJ5UI.js";import"./chunk-ZCUNR3XN.js";import"./chunk-7DIGILX7.js";import"./chunk-YRI4I37X.js";import"./chunk-NOHQVE3L.js";import"./chunk-CVWMERPH.js";import"./chunk-X5HHNNED.js";import"./chunk-IWO4MU2F.js";import"./chunk-6JNM2JPA.js";import{a as c}from"./chunk-5N7NET6A.js";import{a}from"./chunk-UVV4NANW.js";import"./chunk-4UJAZNZX.js";import"./chunk-SSSTBYOF.js";import{a as s}from"./chunk-TFGNKPAQ.js";import"./chunk-RSWDPV5U.js";import"./chunk-QDH6OIAL.js";import"./chunk-UN7EZPD7.js";import"./chunk-CM6UENYI.js";import"./chunk-2JXGTRSC.js";import"./chunk-X5INDUEQ.js";import{a as i}from"./chunk-RONEQF2M.js";import{Engine as f}from"@jucie.io/engine";import{Channel as u}from"@jucie.io/engine-message";import{WindowBridge as g}from"@jucie.io/engine-window-bridge";import{State as h}from"@jucie.io/engine-state";import{Reactive as C}from"@jucie.io/state-reactive";import{Matcher as B}from"@jucie.io/state-matcher";import{jucieConfig as S}from"jucie:config";var $=i(async(m,l)=>{let o={...S,...m},{scene:t}=await import("jucie:scene"),d=(await import("@components"))?.default??{},w=c(o.$el||"app"),e=f.create().install(g,h.configure({plugins:[C,B]}),u,a.configure(o));e.cache.load({config:o,$app:w,token:l}),e.sceneCompiler.loadPrototypes(s),e.sceneCompiler.loadSources(d),e.windowBridge.register("parent",window.parent,"*"),p(t),e.state.load(t),await e.sceneCompiler.create("app",o.nodeId),e.windowBridge.subscribe("jucie:channel:close",()=>{try{e.channel.disconnect()}catch(r){console.warn("[stage] channel disconnect failed",r)}return!0}),e.channel.portProvider(async()=>await e.windowBridge.to("parent").request("jucie:port:request",o.id));let n=await e.channel.connect();if(n){let{windowContracts:r}=await import("./window-7JZPBAP7.js");n.use(r)}return o},"createDevBootstrap");export{$ as createDevBootstrap};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-X5HHNNED.js";import"./chunk-IWO4MU2F.js";import"./chunk-RONEQF2M.js";export{a as disconnectNode};
@@ -1 +1 @@
1
- import"./chunk-K7MC6G4X.js";import{defineContracts as e}from"@jucie.io/engine-message";var o=e("history",s=>({group:{schema:null,namespace:"stage",handler:()=>{s("state")?.history?.group()}},commit:{schema:null,namespace:"stage",handler:()=>{s("state")?.history?.commit()}},undo:{schema:null,namespace:"stage",handler:()=>{let t=s("state");t?.history?.canUndo()&&t?.history?.undo()}},redo:{schema:null,namespace:"stage",handler:()=>{let t=s("state");t?.history?.canRedo()&&t?.history?.redo()}}}));export{o as historyContracts};
1
+ import"./chunk-RONEQF2M.js";import{defineContracts as e}from"@jucie.io/engine-message";var o=e("history",s=>({group:{schema:null,namespace:"stage",handler:()=>{s("state")?.history?.group()}},commit:{schema:null,namespace:"stage",handler:()=>{s("state")?.history?.commit()}},undo:{schema:null,namespace:"stage",handler:()=>{let t=s("state");t?.history?.canUndo()&&t?.history?.undo()}},redo:{schema:null,namespace:"stage",handler:()=>{let t=s("state");t?.history?.canRedo()&&t?.history?.redo()}}}));export{o as historyContracts};
@@ -1 +1 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";export{t as clearGeneratedIds,i as createActorId,g as createAnimationId,d as createAssetId,e as createChannelId,n as createDescriptorId,j as createDocumentId,a as createId,o as createLongId,l as createMessageRequestId,f as createNodeId,k as createPortId,b as createSceneId,q as createSecureId,c as createSpaceId,m as createStoreId,h as createTokenId,p as createUuid,u as getGeneratedIds,v as isIdGenerated,s as isValidId,x as loadExistingIds,r as parseId,w as removeGeneratedId};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"./chunk-CM6UENYI.js";import"./chunk-RONEQF2M.js";export{t as clearGeneratedIds,i as createActorId,g as createAnimationId,d as createAssetId,e as createChannelId,n as createDescriptorId,j as createDocumentId,a as createId,o as createLongId,l as createMessageRequestId,f as createNodeId,k as createPortId,b as createSceneId,q as createSecureId,c as createSpaceId,m as createStoreId,h as createTokenId,p as createUuid,u as getGeneratedIds,v as isIdGenerated,s as isValidId,x as loadExistingIds,r as parseId,w as removeGeneratedId};
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e}from"./chunk-JG62FTV2.js";import"./chunk-NGQ7GQSH.js";import"./chunk-GFV4SJGI.js";import"./chunk-5RVLCYPU.js";import"./chunk-PRXT2NXZ.js";import"./chunk-VZJTFJZN.js";import"./chunk-SV2PSWLZ.js";import"./chunk-O6ZKHW5L.js";import"./chunk-JRCZXEL2.js";import"./chunk-E3LBHSMZ.js";import"./chunk-QAUB5H3S.js";import"./chunk-7C53OCBB.js";import"./chunk-JGELXWD3.js";import"./chunk-457GNGEV.js";import"./chunk-YFURTAAV.js";import"./chunk-V5TNO5LS.js";import"./chunk-RONEQF2M.js";export{a as actionsContract,b as computedContract,e as contracts,c as stateContract,d as storeContract};
@@ -1 +1 @@
1
- import{a as l,b as o}from"./chunk-QG2BGE2O.js";import{a as p}from"./chunk-V7BNWQS6.js";import{a as g}from"./chunk-SMO45CB3.js";import{a as d}from"./chunk-GIVV5ZCM.js";import"./chunk-K7MC6G4X.js";import{defineContracts as S}from"@jucie.io/engine-message";var h=S("node:animation",u=>{let c=u("state"),t=c?.ref(["animations"])??null,r=c?.ref(["nodes"])??null;if(!t)throw new Error("Animations state not found");return{create:{namespace:"scene-graph",schema:["String","Object"],handler:(e,n={})=>{t.set([e],o(n))}},update:{namespace:"scene-graph",schema:["String","Object"],handler:(e,n)=>{if(t.get([e]))for(let[i,m]of Object.entries(n))t.set([e,i],m)}},delete:{namespace:"scene-graph",schema:["String"],handler:e=>{t.remove([e])}},bind:{namespace:"scene-graph",schema:["String","Object"],handler:(e,n)=>{r&&p(r,e,n)}},unbind:{namespace:"scene-graph",schema:["String","String"],handler:(e,n)=>{r&&g(r,e,n)}},updateBinding:{namespace:"scene-graph",schema:["String","String","Object"],handler:(e,n,a)=>{r&&d(r,e,n,a)}},promote:{namespace:"scene-graph",schema:["String"],handler:e=>{t.get([e])&&t.set([e,"scope"],"project")}},customize:{namespace:"scene-graph",schema:["String","String","String"],handler:(e,n,a)=>{if(!r)return;let i=t.get([n]);if(!i)return;t.set([a],o({...i,scope:"node"}));let f=(r.get([e,"animations"])??[]).map(s=>s.id===n?{...s,id:a}:s);r.set([e,"animations"],f)}}}});var C=[h];export{h as animationContracts,l as animationDefaults,C as contracts,o as createAnimation};
1
+ import{a as l,b as o}from"./chunk-X2R3VYWI.js";import{a as p}from"./chunk-RPTOBIKP.js";import{a as g}from"./chunk-DUMMXI6I.js";import{a as d}from"./chunk-HREW6EFQ.js";import"./chunk-RONEQF2M.js";import{defineContracts as S}from"@jucie.io/engine-message";var h=S("node:animation",u=>{let c=u("state"),t=c?.ref(["animations"])??null,r=c?.ref(["nodes"])??null;if(!t)throw new Error("Animations state not found");return{create:{namespace:"scene-graph",schema:["String","Object"],handler:(e,n={})=>{t.set([e],o(n))}},update:{namespace:"scene-graph",schema:["String","Object"],handler:(e,n)=>{if(t.get([e]))for(let[i,m]of Object.entries(n))t.set([e,i],m)}},delete:{namespace:"scene-graph",schema:["String"],handler:e=>{t.remove([e])}},bind:{namespace:"scene-graph",schema:["String","Object"],handler:(e,n)=>{r&&p(r,e,n)}},unbind:{namespace:"scene-graph",schema:["String","String"],handler:(e,n)=>{r&&g(r,e,n)}},updateBinding:{namespace:"scene-graph",schema:["String","String","Object"],handler:(e,n,a)=>{r&&d(r,e,n,a)}},promote:{namespace:"scene-graph",schema:["String"],handler:e=>{t.get([e])&&t.set([e,"scope"],"project")}},customize:{namespace:"scene-graph",schema:["String","String","String"],handler:(e,n,a)=>{if(!r)return;let i=t.get([n]);if(!i)return;t.set([a],o({...i,scope:"node"}));let f=(r.get([e,"animations"])??[]).map(s=>s.id===n?{...s,id:a}:s);r.set([e,"animations"],f)}}}});var C=[h];export{h as animationContracts,l as animationDefaults,C as contracts,o as createAnimation};
@@ -1 +1 @@
1
- import{a as m,b as p}from"./chunk-P4ODI2G4.js";import{a}from"./chunk-6ZZBJPN5.js";import{a as c}from"./chunk-NYG3CJEJ.js";import"./chunk-4XNQRZ5E.js";import{a as n}from"./chunk-K7MC6G4X.js";import{defineContracts as i}from"@jucie.io/engine-message";var f=i("token",e=>{let[r,t]=e("channel","state"),s=t?.ref(["tokens"])??null;if(!s)throw new Error("Tokens state not found");return{get:{namespace:"scene-graph",handler:o=>o?s.get([o]):s.get()??{}},create:{namespace:"scene-graph",schema:["Object"],handler:(o={})=>p(s,o)},update:{namespace:"scene-graph",schema:["String","Object"],handler:(o,u)=>{a(s,o,u)}},delete:{namespace:"scene-graph",schema:["String"],handler:o=>{c(s,o)}}}});function d(e,r,t){return e.set([r,"$value"],t)}n(d,"setValue");function h(e,r,t){return e.set([r,"$type"],t)}n(h,"setType");function l(e,r,t){return e.set([r,"$path"],t)}n(l,"setPath");function x(e,r,t){return t==null?e.set([r,"$description"],void 0):e.set([r,"$description"],t)}n(x,"setDescription");function k(e,r,t){return t==null?e.set([r,"$deprecated"],void 0):e.set([r,"$deprecated"],t)}n(k,"setDeprecated");var z=[f];export{p as addToken,z as contracts,c as removeToken,k as setDeprecated,x as setDescription,l as setPath,h as setType,d as setValue,f as tokenContracts,m as tokenDefaults,a as updateToken};
1
+ import{a as m,b as p}from"./chunk-GPV2ZFME.js";import{a}from"./chunk-A7T3U7OZ.js";import{a as c}from"./chunk-GILBTTLF.js";import"./chunk-CM6UENYI.js";import{a as n}from"./chunk-RONEQF2M.js";import{defineContracts as i}from"@jucie.io/engine-message";var f=i("token",e=>{let[r,t]=e("channel","state"),s=t?.ref(["tokens"])??null;if(!s)throw new Error("Tokens state not found");return{get:{namespace:"scene-graph",handler:o=>o?s.get([o]):s.get()??{}},create:{namespace:"scene-graph",schema:["Object"],handler:(o={})=>p(s,o)},update:{namespace:"scene-graph",schema:["String","Object"],handler:(o,u)=>{a(s,o,u)}},delete:{namespace:"scene-graph",schema:["String"],handler:o=>{c(s,o)}}}});function d(e,r,t){return e.set([r,"$value"],t)}n(d,"setValue");function h(e,r,t){return e.set([r,"$type"],t)}n(h,"setType");function l(e,r,t){return e.set([r,"$path"],t)}n(l,"setPath");function x(e,r,t){return t==null?e.set([r,"$description"],void 0):e.set([r,"$description"],t)}n(x,"setDescription");function k(e,r,t){return t==null?e.set([r,"$deprecated"],void 0):e.set([r,"$deprecated"],t)}n(k,"setDeprecated");var z=[f];export{p as addToken,z as contracts,c as removeToken,k as setDeprecated,x as setDescription,l as setPath,h as setType,d as setValue,f as tokenContracts,m as tokenDefaults,a as updateToken};
@@ -0,0 +1 @@
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,N as S,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-UOBNXO4G.js";import"./chunk-WKUYNMPE.js";import"./chunk-MO2MHTOQ.js";import"./chunk-ND3BSJOS.js";import"./chunk-XPWU54SD.js";import"./chunk-BCDDG7CW.js";import"./chunk-MHU6JTZC.js";import"./chunk-HZ7KMV42.js";import"./chunk-PBDSKQIQ.js";import"./chunk-VQDQA3ID.js";import"./chunk-GBE5QYRO.js";import"./chunk-K4R2DLAT.js";import"./chunk-TYA35RCB.js";import"./chunk-PJFVW637.js";import"./chunk-WWWIZ7VG.js";import"./chunk-JKJRK7ER.js";import"./chunk-3GPQ3HYG.js";import"./chunk-PBDA5G7U.js";import"./chunk-AOLXVYBO.js";import{a as e}from"./chunk-TDXJNI7H.js";import"./chunk-MA3WBBC6.js";import"./chunk-QM4IVTLC.js";import"./chunk-JPPPL527.js";import"./chunk-DDCGP5GM.js";import"./chunk-WCL6XNDN.js";import"./chunk-QUWCLSNF.js";import"./chunk-J7XIIFXF.js";import"./chunk-E7JXTPFA.js";import"./chunk-CB4COXKW.js";import"./chunk-4KXBOJIC.js";import"./chunk-ATDHO5ME.js";import"./chunk-NM4FV6YK.js";import"./chunk-K33QXMAS.js";import"./chunk-XBUV5F3F.js";import"./chunk-HBNF34QX.js";import"./chunk-7SM7WG53.js";import"./chunk-UJZNQZVK.js";import"./chunk-QVOXRLEG.js";import{a,b,c}from"./chunk-3KR3JD5T.js";import"./chunk-DOGIABU3.js";import"./chunk-IE6IKN6P.js";import"./chunk-HZXJUIIX.js";import"./chunk-MQKISAKO.js";import"./chunk-VP2XJ5UI.js";import"./chunk-ZCUNR3XN.js";import"./chunk-7DIGILX7.js";import{d}from"./chunk-YRI4I37X.js";import"./chunk-NOHQVE3L.js";import"./chunk-CVWMERPH.js";import"./chunk-X5HHNNED.js";import"./chunk-IWO4MU2F.js";import"./chunk-6JNM2JPA.js";import"./chunk-SSSTBYOF.js";import"./chunk-TFGNKPAQ.js";import"./chunk-RSWDPV5U.js";import"./chunk-QDH6OIAL.js";import"./chunk-UN7EZPD7.js";import"./chunk-CM6UENYI.js";import"./chunk-2JXGTRSC.js";import"./chunk-X5INDUEQ.js";import"./chunk-RONEQF2M.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,S as contracts,P as createNode,e as createOption,n as createProp,t as destinationContracts,u as dragContracts,Q as elements,l as eventsContracts,a as frames,c as getAvailableFrames,b as getFramePreset,R as graphics,s as htmlContracts,O 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 textSegmentsContracts,M as typeContracts,N as viewportContracts};
@@ -0,0 +1 @@
1
+ import{c as a}from"./chunk-DOGIABU3.js";import"./chunk-IE6IKN6P.js";import"./chunk-VP2XJ5UI.js";import"./chunk-NOHQVE3L.js";import"./chunk-IWO4MU2F.js";import"./chunk-6JNM2JPA.js";import"./chunk-2JXGTRSC.js";import"./chunk-X5INDUEQ.js";import"./chunk-RONEQF2M.js";export{a as moveNodeToLastChildOf};
@@ -1 +1 @@
1
- import"./chunk-K7MC6G4X.js";import{defineContracts as o}from"@jucie.io/engine-message";var a=o("nodeGraph",r=>{let n=r("log");return{pause:{schema:null,namespace:"stage",handler:()=>{let e=r("sceneCompiler");return e?(e.pauseNodeGraph(),!0):(n.warn("scene compiler not found"),!1)}},resume:{schema:null,namespace:"stage",handler:()=>{let e=r("sceneCompiler");return e?(e.resumeNodeGraph(),!0):(n.warn("scene compiler not found"),!1)}},force:{schema:null,namespace:"stage",handler:()=>{let e=r("sceneCompiler");return e?(e.forceNodeGraph(),!0):(n.warn("scene compiler not found"),!1)}}}});export{a as nodeGraphContracts};
1
+ import"./chunk-RONEQF2M.js";import{defineContracts as o}from"@jucie.io/engine-message";var a=o("nodeGraph",r=>{let n=r("log");return{pause:{schema:null,namespace:"stage",handler:()=>{let e=r("sceneCompiler");return e?(e.pauseNodeGraph(),!0):(n.warn("scene compiler not found"),!1)}},resume:{schema:null,namespace:"stage",handler:()=>{let e=r("sceneCompiler");return e?(e.resumeNodeGraph(),!0):(n.warn("scene compiler not found"),!1)}},force:{schema:null,namespace:"stage",handler:()=>{let e=r("sceneCompiler");return e?(e.forceNodeGraph(),!0):(n.warn("scene compiler not found"),!1)}}}});export{a as nodeGraphContracts};
@@ -1 +1 @@
1
- import{a as t}from"./chunk-K7MC6G4X.js";var n={click:"onClick",dblclick:"onDoubleClick",doubleclick:"onDoubleClick",contextmenu:"onContextMenu",mousedown:"onMouseDown",mouseup:"onMouseUp",mousemove:"onMouseMove",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseover:"onMouseOver",mouseout:"onMouseOut",drag:"onDrag",dragstart:"onDragStart",dragend:"onDragEnd",dragenter:"onDragEnter",dragleave:"onDragLeave",dragover:"onDragOver",drop:"onDrop",keydown:"onKeyDown",keyup:"onKeyUp",keypress:"onKeyPress",change:"onChange",input:"onInput",submit:"onSubmit",reset:"onReset",focus:"onFocus",blur:"onBlur",invalid:"onInvalid",formdata:"onFormData",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",touchcancel:"onTouchCancel",wheel:"onWheel",copy:"onCopy",cut:"onCut",paste:"onPaste",abort:"onAbort",canplay:"onCanPlay",canplaythrough:"onCanPlayThrough",durationchange:"onDurationChange",emptied:"onEmptied",ended:"onEnded",loadeddata:"onLoadedData",loadedmetadata:"onLoadedMetadata",loadstart:"onLoadStart",pause:"onPause",play:"onPlay",playing:"onPlaying",progress:"onProgress",ratechange:"onRateChange",seeked:"onSeeked",seeking:"onSeeking",stalled:"onStalled",suspend:"onSuspend",timeupdate:"onTimeUpdate",volumechange:"onVolumeChange",waiting:"onWaiting",animationstart:"onAnimationStart",animationend:"onAnimationEnd",animationiteration:"onAnimationIteration",transitionend:"onTransitionEnd",load:"onLoad",error:"onError",scroll:"onScroll",scrollend:"onScrollEnd",resize:"onResize",select:"onSelect",toggle:"onToggle",afterprint:"onAfterPrint",beforeprint:"onBeforePrint",beforeunload:"onBeforeUnload",hashchange:"onHashChange",languagechange:"onLanguageChange",message:"onMessage",messageerror:"onMessageError",offline:"onOffline",online:"onOnline",pagehide:"onPageHide",pageshow:"onPageShow",popstate:"onPopState",rejectionhandled:"onRejectionHandled",storage:"onStorage",unhandledrejection:"onUnhandledRejection",unload:"onUnload",auxclick:"onAuxClick",beforematch:"onBeforeMatch",beforetoggle:"onBeforeToggle",cancel:"onCancel",close:"onClose",contextlost:"onContextLost",contextrestored:"onContextRestored",cuechange:"onCueChange",securitypolicyviolation:"onSecurityPolicyViolation",slotchange:"onSlotChange"},l=new Set(Object.values(n));function s(o){if(typeof o!="string"||o.length===0)throw new Error('Event name must be a non-empty string. Use React-style names like "onClick" or "onSubmit".');if(l.has(o))return o;let e=o.toLowerCase(),r=e.startsWith("on")?e.slice(2):e,a=n[r]??n[e];if(a)return a;throw new Error(`Unknown event name: "${o}". Use React-style names like "onClick", "onSubmit", or "onMouseEnter".`)}t(s,"normalizeEventName");export{s as normalizeEventName};
1
+ import{a as t}from"./chunk-RONEQF2M.js";var n={click:"onClick",dblclick:"onDoubleClick",doubleclick:"onDoubleClick",contextmenu:"onContextMenu",mousedown:"onMouseDown",mouseup:"onMouseUp",mousemove:"onMouseMove",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseover:"onMouseOver",mouseout:"onMouseOut",drag:"onDrag",dragstart:"onDragStart",dragend:"onDragEnd",dragenter:"onDragEnter",dragleave:"onDragLeave",dragover:"onDragOver",drop:"onDrop",keydown:"onKeyDown",keyup:"onKeyUp",keypress:"onKeyPress",change:"onChange",input:"onInput",submit:"onSubmit",reset:"onReset",focus:"onFocus",blur:"onBlur",invalid:"onInvalid",formdata:"onFormData",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",touchcancel:"onTouchCancel",wheel:"onWheel",copy:"onCopy",cut:"onCut",paste:"onPaste",abort:"onAbort",canplay:"onCanPlay",canplaythrough:"onCanPlayThrough",durationchange:"onDurationChange",emptied:"onEmptied",ended:"onEnded",loadeddata:"onLoadedData",loadedmetadata:"onLoadedMetadata",loadstart:"onLoadStart",pause:"onPause",play:"onPlay",playing:"onPlaying",progress:"onProgress",ratechange:"onRateChange",seeked:"onSeeked",seeking:"onSeeking",stalled:"onStalled",suspend:"onSuspend",timeupdate:"onTimeUpdate",volumechange:"onVolumeChange",waiting:"onWaiting",animationstart:"onAnimationStart",animationend:"onAnimationEnd",animationiteration:"onAnimationIteration",transitionend:"onTransitionEnd",load:"onLoad",error:"onError",scroll:"onScroll",scrollend:"onScrollEnd",resize:"onResize",select:"onSelect",toggle:"onToggle",afterprint:"onAfterPrint",beforeprint:"onBeforePrint",beforeunload:"onBeforeUnload",hashchange:"onHashChange",languagechange:"onLanguageChange",message:"onMessage",messageerror:"onMessageError",offline:"onOffline",online:"onOnline",pagehide:"onPageHide",pageshow:"onPageShow",popstate:"onPopState",rejectionhandled:"onRejectionHandled",storage:"onStorage",unhandledrejection:"onUnhandledRejection",unload:"onUnload",auxclick:"onAuxClick",beforematch:"onBeforeMatch",beforetoggle:"onBeforeToggle",cancel:"onCancel",close:"onClose",contextlost:"onContextLost",contextrestored:"onContextRestored",cuechange:"onCueChange",securitypolicyviolation:"onSecurityPolicyViolation",slotchange:"onSlotChange"},l=new Set(Object.values(n));function s(o){if(typeof o!="string"||o.length===0)throw new Error('Event name must be a non-empty string. Use React-style names like "onClick" or "onSubmit".');if(l.has(o))return o;let e=o.toLowerCase(),r=e.startsWith("on")?e.slice(2):e,a=n[r]??n[e];if(a)return a;throw new Error(`Unknown event name: "${o}". Use React-style names like "onClick", "onSubmit", or "onMouseEnter".`)}t(s,"normalizeEventName");export{s as normalizeEventName};
@@ -0,0 +1 @@
1
+ import{a as c,b as l,c as f}from"./chunk-VHRU6H4C.js";import{a as s}from"./chunk-RAHM76FI.js";import{a as p}from"./chunk-5N7NET6A.js";import{a}from"./chunk-UVV4NANW.js";import"./chunk-4UJAZNZX.js";import"./chunk-SSSTBYOF.js";import{a as d}from"./chunk-TFGNKPAQ.js";import"./chunk-RSWDPV5U.js";import"./chunk-QDH6OIAL.js";import"./chunk-UN7EZPD7.js";import"./chunk-CM6UENYI.js";import{a as i}from"./chunk-RONEQF2M.js";import{Engine as y}from"@jucie.io/engine";import{Channel as P}from"@jucie.io/engine-message";import{SocketClient as b,defineContracts as S}from"@jucie.io/engine-socket/client";import{WindowBridge as v}from"@jucie.io/engine-window-bridge";import{State as B}from"@jucie.io/engine-state";import{Reactive as j}from"@jucie.io/state-reactive";import{Matcher as k}from"@jucie.io/state-matcher";import{jucieConfig as L}from"jucie:config";var Y=i(async(m,r)=>{let t={...L,...m},u=(await import("@components"))?.default??{},g=p(t.$el||"app"),e=y.create().install(v,B.configure({plugins:[j,s.configure({actorId:"preview"}),k]}),P,b.configure(l({...t,basePath:void 0},{auth:r??null})),a.configure(t),c.configure({close:!0,visibility:!1,focus:!1,freeze:!1,sleepDetection:{enabled:!1}}));e.cache.load({config:t,$app:g,token:r}),e.sceneCompiler.loadPrototypes(d),e.sceneCompiler.loadSources(u),e.windowBridge.register("parent",window.parent,"*");let w=await fetch(new URL("scene/snapshot",window.location.origin)).then(o=>{if(!o.ok)throw new Error(`Failed to load ledger snapshot (${o.status})`);return o.json()});e.state.ledger.hydrate(w),e.socket.use(f),e.socket.use(S("ledger",o=>{let h=o("state");return{apply:{handler:C=>h.ledger.apply(C)}}})),await e.sceneCompiler.create("app",t.nodeId),e.windowBridge.subscribe("jucie:channel:close",()=>{try{e.channel.disconnect()}catch(o){console.warn("[stage] channel disconnect failed",o)}return!0}),e.channel.portProvider(async()=>await e.windowBridge.to("parent").request("jucie:port:request",t.id)),e.pageLifecycle.on("beforeclose",()=>{e.channel.disconnect()});let n=await e.channel.connect();if(n){let{windowContracts:o}=await import("./window-7JZPBAP7.js");n.use(o)}return t},"createDesignPreviewBootstrap");export{Y as createDesignPreviewBootstrap};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-GFV4SJGI.js";import"./chunk-RONEQF2M.js";export{a as removeAction};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-DUMMXI6I.js";import"./chunk-RONEQF2M.js";export{a as removeAnimationBinding};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-K33QXMAS.js";import"./chunk-RONEQF2M.js";export{a as removeAttribute};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-E3LBHSMZ.js";import"./chunk-RONEQF2M.js";export{a as removeComputed};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-UJZNQZVK.js";import"./chunk-RONEQF2M.js";export{a as removeEvent};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-PBDA5G7U.js";import"./chunk-RONEQF2M.js";export{a as removeLifecycleHook};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-HZXJUIIX.js";import"./chunk-CVWMERPH.js";import"./chunk-X5HHNNED.js";import"./chunk-IWO4MU2F.js";import"./chunk-RONEQF2M.js";export{a as removeNode};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-ND3BSJOS.js";import"./chunk-RONEQF2M.js";export{a as removeOption};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-VQDQA3ID.js";import"./chunk-RONEQF2M.js";export{a as removeParamFromRoute};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-K4R2DLAT.js";import"./chunk-RONEQF2M.js";export{a as removeState};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-5RVLCYPU.js";import"./chunk-RONEQF2M.js";export{a as removeStore};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-GILBTTLF.js";import"./chunk-RONEQF2M.js";export{a as removeToken};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-SV2PSWLZ.js";import"./chunk-RONEQF2M.js";export{a as removeValue};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-QM4IVTLC.js";import"./chunk-RONEQF2M.js";export{a as setDestination};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-MA3WBBC6.js";import"./chunk-RONEQF2M.js";export{a as setHomePage};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-TYA35RCB.js";import"./chunk-RONEQF2M.js";export{a as setHtmlId};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-7DIGILX7.js";import"./chunk-RONEQF2M.js";export{a as setName};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-MQKISAKO.js";import"./chunk-VP2XJ5UI.js";import"./chunk-6JNM2JPA.js";import"./chunk-2JXGTRSC.js";import"./chunk-X5INDUEQ.js";import"./chunk-RONEQF2M.js";export{a as setNodeLayout};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-XPWU54SD.js";import"./chunk-UN7EZPD7.js";import"./chunk-RONEQF2M.js";export{a as setOptionsExpression};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-QUWCLSNF.js";import"./chunk-QDH6OIAL.js";import"./chunk-UN7EZPD7.js";import"./chunk-CM6UENYI.js";import"./chunk-RONEQF2M.js";export{a as setRender};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-DDCGP5GM.js";import"./chunk-QDH6OIAL.js";import"./chunk-UN7EZPD7.js";import"./chunk-CM6UENYI.js";import"./chunk-RONEQF2M.js";export{a as setRepeat};