@jucie.io/cli 1.0.20 → 1.0.23

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 (886) hide show
  1. package/dist/interactivity.md +51 -13
  2. package/dist/jucie.js +676 -239
  3. package/dist/layout.md +83 -24
  4. package/dist/prerenderWorker.js +13 -0
  5. package/dist/stage/library/preact.js +53 -0
  6. package/dist/stage/library/react.js +53 -0
  7. package/dist/stage/library/vue.js +53 -0
  8. package/dist/stage/prod.js +53 -1
  9. package/dist/stage/sdk/chunks/chunk-6BTG63JN.js +1 -0
  10. package/dist/stage/sdk/chunks/chunk-7YIGPKNU.js +1 -0
  11. package/dist/stage/sdk/chunks/chunk-IIZ233AH.js +1 -0
  12. package/dist/stage/sdk/preact-server.js +1 -0
  13. package/dist/stage/sdk/preact.js +1 -0
  14. package/dist/stage/sdk/react-server.js +1 -0
  15. package/dist/stage/sdk/react.js +1 -0
  16. package/dist/stage/sdk/vue-server.js +1 -0
  17. package/dist/stage/sdk/vue.js +1 -0
  18. package/dist/stage/server.js +53 -0
  19. package/dist/stage/styles.js +11845 -0
  20. package/dist/stage-bundles/preact/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
  21. package/dist/stage-bundles/preact/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
  22. package/dist/stage-bundles/preact/chunks/aiRelay-6QWC3MID.js +1 -0
  23. package/dist/stage-bundles/preact/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
  24. package/dist/stage-bundles/preact/chunks/assets-4NXDKJMC.js +1 -0
  25. package/dist/stage-bundles/preact/chunks/capture-MXL3B5OM.js +1 -0
  26. package/dist/stage-bundles/preact/chunks/chunk-3Q3DRUNQ.js +1 -0
  27. package/dist/stage-bundles/preact/chunks/chunk-426Z5MME.js +9 -0
  28. package/dist/stage-bundles/preact/chunks/chunk-4WXMFOGZ.js +1 -0
  29. package/dist/stage-bundles/preact/chunks/chunk-5H3EE23B.js +1 -0
  30. package/dist/stage-bundles/preact/chunks/chunk-5HNN2HVX.js +1 -0
  31. package/dist/stage-bundles/preact/chunks/chunk-6J3NV2ZA.js +1 -0
  32. package/dist/stage-bundles/preact/chunks/chunk-BXWISJ2Z.js +1 -0
  33. package/dist/stage-bundles/preact/chunks/chunk-CNULBMOT.js +99 -0
  34. package/dist/stage-bundles/preact/chunks/chunk-DLROTED3.js +1 -0
  35. package/dist/stage-bundles/preact/chunks/chunk-DUPQKWW3.js +3 -0
  36. package/dist/stage-bundles/preact/chunks/chunk-FEFZSXXM.js +1 -0
  37. package/dist/stage-bundles/preact/chunks/chunk-FGKRC2QO.js +4 -0
  38. package/dist/stage-bundles/preact/chunks/chunk-FWEUCYZO.js +1 -0
  39. package/dist/stage-bundles/preact/chunks/chunk-GCPKA3IC.js +1 -0
  40. package/dist/stage-bundles/preact/chunks/chunk-KUZTBTFR.js +1 -0
  41. package/dist/stage-bundles/preact/chunks/chunk-P722OZCF.js +1 -0
  42. package/dist/stage-bundles/preact/chunks/chunk-RDRAQE76.js +1 -0
  43. package/dist/stage-bundles/preact/chunks/chunk-RQACOEIA.js +1 -0
  44. package/dist/stage-bundles/preact/chunks/{chunk-RYWOKFM7.js → chunk-S7MEYFKB.js} +1 -1
  45. package/dist/stage-bundles/preact/chunks/chunk-TKHZCD63.js +1 -0
  46. package/dist/stage-bundles/preact/chunks/chunk-UNPHH2YK.js +7 -0
  47. package/dist/stage-bundles/preact/chunks/{chunk-H5NHEM4C.js → chunk-WN5EDULP.js} +1 -1
  48. package/dist/stage-bundles/preact/chunks/chunk-YQ22OWEN.js +6 -0
  49. package/dist/stage-bundles/preact/chunks/{chunk-NRRFAMFA.js → chunk-ZDH2DALT.js} +1 -1
  50. package/dist/stage-bundles/preact/chunks/contentEditor-KSOW7DQ4.js +1 -0
  51. package/dist/stage-bundles/preact/chunks/design-5WJ7WCTU.js +70 -0
  52. package/dist/stage-bundles/preact/chunks/files-2IVIODQO.js +1 -0
  53. package/dist/stage-bundles/preact/chunks/history-AJWJFNTH.js +1 -0
  54. package/dist/stage-bundles/preact/chunks/main-3EOYBBCF.js +1 -0
  55. package/dist/stage-bundles/preact/chunks/main-4GJ7OQPP.js +1 -0
  56. package/dist/stage-bundles/preact/chunks/main-COYGSKNQ.js +1 -0
  57. package/dist/stage-bundles/preact/chunks/main-DEGR6IFX.js +1 -0
  58. package/dist/stage-bundles/preact/chunks/main-QJ4F72CN.js +1 -0
  59. package/dist/stage-bundles/preact/chunks/main-Y73Z2R2Q.js +1 -0
  60. package/dist/stage-bundles/preact/chunks/nodeGraph-MIYBM2ME.js +1 -0
  61. package/dist/stage-bundles/preact/chunks/preview-MRYXCFFB.js +1 -0
  62. package/dist/stage-bundles/preact/chunks/sync-M5DHAJKK.js +1 -0
  63. package/dist/stage-bundles/preact/chunks/user-RPWZUUCN.js +1 -0
  64. package/dist/stage-bundles/preact/chunks/viewport-EE2UKHNS.js +1 -0
  65. package/dist/stage-bundles/preact/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
  66. package/dist/stage-bundles/preact/chunks/window-SHWTQPJX.js +1 -0
  67. package/dist/stage-bundles/preact/chunks/workbench-PI2NQ6WK.js +1 -0
  68. package/dist/stage-bundles/preact/entry.js +1 -1
  69. package/dist/stage-bundles/preact/framework-compat.js +1 -1
  70. package/dist/stage-bundles/preact/framework-hooks.js +1 -1
  71. package/dist/stage-bundles/preact/framework-jsx-runtime.js +1 -1
  72. package/dist/stage-bundles/preact/framework.js +1 -1
  73. package/dist/stage-bundles/preact/reactive.js +1 -0
  74. package/dist/stage-bundles/preact/sdk.js +1 -1
  75. package/dist/stage-bundles/react/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
  76. package/dist/stage-bundles/react/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
  77. package/dist/stage-bundles/react/chunks/aiRelay-6QWC3MID.js +1 -0
  78. package/dist/stage-bundles/react/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
  79. package/dist/stage-bundles/react/chunks/assets-4NXDKJMC.js +1 -0
  80. package/dist/stage-bundles/react/chunks/capture-SX5LMYTU.js +1 -0
  81. package/dist/stage-bundles/react/chunks/chunk-3Q3DRUNQ.js +1 -0
  82. package/dist/stage-bundles/react/chunks/chunk-426Z5MME.js +9 -0
  83. package/dist/stage-bundles/react/chunks/chunk-4WXMFOGZ.js +1 -0
  84. package/dist/stage-bundles/react/chunks/chunk-5FKTA2K4.js +45 -0
  85. package/dist/stage-bundles/react/chunks/chunk-5HNN2HVX.js +1 -0
  86. package/dist/stage-bundles/react/chunks/chunk-6J3NV2ZA.js +1 -0
  87. package/dist/stage-bundles/react/chunks/chunk-COZYLIUS.js +1 -0
  88. package/dist/stage-bundles/react/chunks/chunk-DLROTED3.js +1 -0
  89. package/dist/stage-bundles/react/chunks/chunk-DUPQKWW3.js +3 -0
  90. package/dist/stage-bundles/react/chunks/chunk-FEFZSXXM.js +1 -0
  91. package/dist/stage-bundles/react/chunks/chunk-FGKRC2QO.js +4 -0
  92. package/dist/stage-bundles/react/chunks/chunk-FWEUCYZO.js +1 -0
  93. package/dist/stage-bundles/react/chunks/chunk-GCPKA3IC.js +1 -0
  94. package/dist/stage-bundles/react/chunks/{chunk-G5RN6RXS.js → chunk-HBUZBWXS.js} +1 -1
  95. package/dist/stage-bundles/react/chunks/chunk-IN7T7JOC.js +1 -0
  96. package/dist/stage-bundles/react/chunks/chunk-KUZTBTFR.js +1 -0
  97. package/dist/stage-bundles/react/chunks/{chunk-P3ZDKQWG.js → chunk-LGKXPMSS.js} +1 -1
  98. package/dist/stage-bundles/react/chunks/chunk-P722OZCF.js +1 -0
  99. package/dist/stage-bundles/react/chunks/{chunk-KLPU3QNW.js → chunk-PWVNILVW.js} +1 -1
  100. package/dist/stage-bundles/react/chunks/chunk-RDRAQE76.js +1 -0
  101. package/dist/stage-bundles/react/chunks/chunk-TKHZCD63.js +1 -0
  102. package/dist/stage-bundles/react/chunks/chunk-UNPHH2YK.js +7 -0
  103. package/dist/stage-bundles/react/chunks/chunk-UQWACM5R.js +1 -0
  104. package/dist/stage-bundles/react/chunks/chunk-YQ22OWEN.js +6 -0
  105. package/dist/stage-bundles/react/chunks/contentEditor-KSOW7DQ4.js +1 -0
  106. package/dist/stage-bundles/react/chunks/design-PLV3PDV6.js +70 -0
  107. package/dist/stage-bundles/react/chunks/files-2IVIODQO.js +1 -0
  108. package/dist/stage-bundles/react/chunks/history-AJWJFNTH.js +1 -0
  109. package/dist/stage-bundles/react/chunks/main-3EOYBBCF.js +1 -0
  110. package/dist/stage-bundles/react/chunks/main-4GJ7OQPP.js +1 -0
  111. package/dist/stage-bundles/react/chunks/main-COYGSKNQ.js +1 -0
  112. package/dist/stage-bundles/react/chunks/main-DEGR6IFX.js +1 -0
  113. package/dist/stage-bundles/react/chunks/main-QJ4F72CN.js +1 -0
  114. package/dist/stage-bundles/react/chunks/main-Y73Z2R2Q.js +1 -0
  115. package/dist/stage-bundles/react/chunks/nodeGraph-MIYBM2ME.js +1 -0
  116. package/dist/stage-bundles/react/chunks/preview-GQEX7ZIJ.js +1 -0
  117. package/dist/stage-bundles/react/chunks/sync-M5DHAJKK.js +1 -0
  118. package/dist/stage-bundles/react/chunks/user-RPWZUUCN.js +1 -0
  119. package/dist/stage-bundles/react/chunks/viewport-EE2UKHNS.js +1 -0
  120. package/dist/stage-bundles/react/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
  121. package/dist/stage-bundles/react/chunks/window-SHWTQPJX.js +1 -0
  122. package/dist/stage-bundles/react/chunks/workbench-BXYMXCNQ.js +1 -0
  123. package/dist/stage-bundles/react/entry.js +1 -1
  124. package/dist/stage-bundles/react/framework-dom-client.js +1 -1
  125. package/dist/stage-bundles/react/framework-dom.js +1 -1
  126. package/dist/stage-bundles/react/framework-jsx-runtime.js +1 -1
  127. package/dist/stage-bundles/react/framework.js +1 -1
  128. package/dist/stage-bundles/react/reactive.js +1 -0
  129. package/dist/stage-bundles/react/sdk.js +1 -1
  130. package/dist/stage-bundles/vue/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
  131. package/dist/stage-bundles/vue/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
  132. package/dist/stage-bundles/vue/chunks/aiRelay-6QWC3MID.js +1 -0
  133. package/dist/stage-bundles/vue/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
  134. package/dist/stage-bundles/vue/chunks/assets-4NXDKJMC.js +1 -0
  135. package/dist/stage-bundles/vue/chunks/capture-BNTHDU5P.js +1 -0
  136. package/dist/stage-bundles/vue/chunks/chunk-2CVBY2T5.js +99 -0
  137. package/dist/stage-bundles/vue/chunks/chunk-3Q3DRUNQ.js +1 -0
  138. package/dist/stage-bundles/vue/chunks/chunk-4WXMFOGZ.js +1 -0
  139. package/dist/stage-bundles/vue/chunks/chunk-5HNN2HVX.js +1 -0
  140. package/dist/stage-bundles/vue/chunks/chunk-5Q537YU2.js +9 -0
  141. package/dist/stage-bundles/vue/chunks/chunk-6J3NV2ZA.js +1 -0
  142. package/dist/stage-bundles/vue/chunks/chunk-BAARNJD7.js +1 -0
  143. package/dist/stage-bundles/vue/chunks/chunk-DLROTED3.js +1 -0
  144. package/dist/stage-bundles/vue/chunks/chunk-DUPQKWW3.js +3 -0
  145. package/dist/stage-bundles/vue/chunks/chunk-EPZVOVTF.js +1 -0
  146. package/dist/stage-bundles/vue/chunks/chunk-FEFZSXXM.js +1 -0
  147. package/dist/stage-bundles/vue/chunks/chunk-FGKRC2QO.js +4 -0
  148. package/dist/stage-bundles/vue/chunks/chunk-FWEUCYZO.js +1 -0
  149. package/dist/stage-bundles/vue/chunks/chunk-GCPKA3IC.js +1 -0
  150. package/dist/stage-bundles/vue/chunks/chunk-KUZTBTFR.js +1 -0
  151. package/dist/stage-bundles/vue/chunks/chunk-P722OZCF.js +1 -0
  152. package/dist/stage-bundles/vue/chunks/chunk-QZFBMONF.js +1 -0
  153. package/dist/stage-bundles/vue/chunks/chunk-TKHZCD63.js +1 -0
  154. package/dist/stage-bundles/vue/chunks/chunk-UNPHH2YK.js +7 -0
  155. package/dist/stage-bundles/vue/chunks/chunk-XIPQ5BT3.js +1 -0
  156. package/dist/stage-bundles/vue/chunks/chunk-YQ22OWEN.js +6 -0
  157. package/dist/stage-bundles/vue/chunks/{chunk-M3OE4LWW.js → chunk-ZNG3HSBM.js} +1 -1
  158. package/dist/stage-bundles/vue/chunks/contentEditor-WMYXHKRR.js +1 -0
  159. package/dist/stage-bundles/vue/chunks/design-N46CCFRQ.js +70 -0
  160. package/dist/stage-bundles/vue/chunks/files-2IVIODQO.js +1 -0
  161. package/dist/stage-bundles/vue/chunks/history-AJWJFNTH.js +1 -0
  162. package/dist/stage-bundles/vue/chunks/main-3EOYBBCF.js +1 -0
  163. package/dist/stage-bundles/vue/chunks/main-4GJ7OQPP.js +1 -0
  164. package/dist/stage-bundles/vue/chunks/main-COYGSKNQ.js +1 -0
  165. package/dist/stage-bundles/vue/chunks/main-DEGR6IFX.js +1 -0
  166. package/dist/stage-bundles/vue/chunks/main-IDHTCWLF.js +1 -0
  167. package/dist/stage-bundles/vue/chunks/main-Y73Z2R2Q.js +1 -0
  168. package/dist/stage-bundles/vue/chunks/nodeGraph-MIYBM2ME.js +1 -0
  169. package/dist/stage-bundles/vue/chunks/preview-5K5EJBYM.js +1 -0
  170. package/dist/stage-bundles/vue/chunks/sync-M5DHAJKK.js +1 -0
  171. package/dist/stage-bundles/vue/chunks/user-RPWZUUCN.js +1 -0
  172. package/dist/stage-bundles/vue/chunks/viewport-EE2UKHNS.js +1 -0
  173. package/dist/stage-bundles/vue/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
  174. package/dist/stage-bundles/vue/chunks/window-SHWTQPJX.js +1 -0
  175. package/dist/stage-bundles/vue/chunks/workbench-OX4YXOA5.js +1 -0
  176. package/dist/stage-bundles/vue/entry.js +1 -1
  177. package/dist/stage-bundles/vue/framework-jsx-runtime.js +1 -1
  178. package/dist/stage-bundles/vue/framework.js +1 -1
  179. package/dist/stage-bundles/vue/reactive.js +1 -0
  180. package/dist/stage-bundles/vue/sdk.js +1 -1
  181. package/dist/stage-src/{dev/entry.js → dev.js} +1 -1
  182. package/dist/workflow.md +7 -0
  183. package/package.json +28 -21
  184. package/dist/stage/chunks/addAction-3QC2Z4ZR.js +0 -1
  185. package/dist/stage/chunks/addAnimationBinding-N3UW27JM.js +0 -1
  186. package/dist/stage/chunks/addAttribute-MEJIGMHV.js +0 -1
  187. package/dist/stage/chunks/addComponent-AQQI46C3.js +0 -1
  188. package/dist/stage/chunks/addComputed-2JNIUCEP.js +0 -1
  189. package/dist/stage/chunks/addEvent-PN6P6KR5.js +0 -1
  190. package/dist/stage/chunks/addLifecycleHook-D2UKKFVW.js +0 -1
  191. package/dist/stage/chunks/addNode-UXIXDXSD.js +0 -1
  192. package/dist/stage/chunks/addOption-AFCUFOT7.js +0 -1
  193. package/dist/stage/chunks/addParamToRoute-6LOHCID7.js +0 -1
  194. package/dist/stage/chunks/addState-RSEYKWQO.js +0 -1
  195. package/dist/stage/chunks/addStore-AK2FTEON.js +0 -1
  196. package/dist/stage/chunks/addToken-35LUBJPE.js +0 -1
  197. package/dist/stage/chunks/addTree-CU7MJAKT.js +0 -1
  198. package/dist/stage/chunks/addValue-LIQSHZFR.js +0 -1
  199. package/dist/stage/chunks/aiAttachmentContracts-KGD3EHZQ.js +0 -1
  200. package/dist/stage/chunks/aiMessagesContracts-QWUORKI3.js +0 -1
  201. package/dist/stage/chunks/aiRelay-LW2UZKRR.js +0 -1
  202. package/dist/stage/chunks/aiSessionContracts-RQKGQY4N.js +0 -1
  203. package/dist/stage/chunks/assets-5J5INILR.js +0 -1
  204. package/dist/stage/chunks/capture-VQE5664P.js +0 -1
  205. package/dist/stage/chunks/chunk-2JXGTRSC.js +0 -1
  206. package/dist/stage/chunks/chunk-3GPQ3HYG.js +0 -1
  207. package/dist/stage/chunks/chunk-3KR3JD5T.js +0 -1
  208. package/dist/stage/chunks/chunk-457GNGEV.js +0 -1
  209. package/dist/stage/chunks/chunk-4KXBOJIC.js +0 -1
  210. package/dist/stage/chunks/chunk-4UJAZNZX.js +0 -1
  211. package/dist/stage/chunks/chunk-5N7NET6A.js +0 -1
  212. package/dist/stage/chunks/chunk-5RVLCYPU.js +0 -1
  213. package/dist/stage/chunks/chunk-6JNM2JPA.js +0 -1
  214. package/dist/stage/chunks/chunk-7C53OCBB.js +0 -1
  215. package/dist/stage/chunks/chunk-7DIGILX7.js +0 -1
  216. package/dist/stage/chunks/chunk-7H7BUWZP.js +0 -1
  217. package/dist/stage/chunks/chunk-7SM7WG53.js +0 -1
  218. package/dist/stage/chunks/chunk-A7T3U7OZ.js +0 -1
  219. package/dist/stage/chunks/chunk-AOLXVYBO.js +0 -1
  220. package/dist/stage/chunks/chunk-ATDHO5ME.js +0 -1
  221. package/dist/stage/chunks/chunk-BCDDG7CW.js +0 -1
  222. package/dist/stage/chunks/chunk-CB4COXKW.js +0 -1
  223. package/dist/stage/chunks/chunk-CM6UENYI.js +0 -1
  224. package/dist/stage/chunks/chunk-CVWMERPH.js +0 -1
  225. package/dist/stage/chunks/chunk-DDCGP5GM.js +0 -1
  226. package/dist/stage/chunks/chunk-DOGIABU3.js +0 -1
  227. package/dist/stage/chunks/chunk-DUMMXI6I.js +0 -1
  228. package/dist/stage/chunks/chunk-E3LBHSMZ.js +0 -1
  229. package/dist/stage/chunks/chunk-E7JXTPFA.js +0 -1
  230. package/dist/stage/chunks/chunk-GBE5QYRO.js +0 -1
  231. package/dist/stage/chunks/chunk-GFV4SJGI.js +0 -1
  232. package/dist/stage/chunks/chunk-GILBTTLF.js +0 -1
  233. package/dist/stage/chunks/chunk-GPV2ZFME.js +0 -1
  234. package/dist/stage/chunks/chunk-HBNF34QX.js +0 -1
  235. package/dist/stage/chunks/chunk-HREW6EFQ.js +0 -1
  236. package/dist/stage/chunks/chunk-HZ7KMV42.js +0 -1
  237. package/dist/stage/chunks/chunk-HZXJUIIX.js +0 -1
  238. package/dist/stage/chunks/chunk-IE6IKN6P.js +0 -1
  239. package/dist/stage/chunks/chunk-IWO4MU2F.js +0 -1
  240. package/dist/stage/chunks/chunk-J7XIIFXF.js +0 -1
  241. package/dist/stage/chunks/chunk-JG62FTV2.js +0 -1
  242. package/dist/stage/chunks/chunk-JGELXWD3.js +0 -1
  243. package/dist/stage/chunks/chunk-JKJRK7ER.js +0 -1
  244. package/dist/stage/chunks/chunk-JPPPL527.js +0 -1
  245. package/dist/stage/chunks/chunk-JRCZXEL2.js +0 -1
  246. package/dist/stage/chunks/chunk-K33QXMAS.js +0 -1
  247. package/dist/stage/chunks/chunk-K4R2DLAT.js +0 -1
  248. package/dist/stage/chunks/chunk-MA3WBBC6.js +0 -1
  249. package/dist/stage/chunks/chunk-MHU6JTZC.js +0 -1
  250. package/dist/stage/chunks/chunk-MO2MHTOQ.js +0 -1
  251. package/dist/stage/chunks/chunk-MQKISAKO.js +0 -1
  252. package/dist/stage/chunks/chunk-ND3BSJOS.js +0 -1
  253. package/dist/stage/chunks/chunk-NGQ7GQSH.js +0 -1
  254. package/dist/stage/chunks/chunk-NM4FV6YK.js +0 -1
  255. package/dist/stage/chunks/chunk-NOHQVE3L.js +0 -1
  256. package/dist/stage/chunks/chunk-O6ZKHW5L.js +0 -1
  257. package/dist/stage/chunks/chunk-PBDA5G7U.js +0 -1
  258. package/dist/stage/chunks/chunk-PBDSKQIQ.js +0 -1
  259. package/dist/stage/chunks/chunk-PJFVW637.js +0 -1
  260. package/dist/stage/chunks/chunk-PRXT2NXZ.js +0 -1
  261. package/dist/stage/chunks/chunk-QAUB5H3S.js +0 -1
  262. package/dist/stage/chunks/chunk-QDH6OIAL.js +0 -5
  263. package/dist/stage/chunks/chunk-QM4IVTLC.js +0 -1
  264. package/dist/stage/chunks/chunk-QUWCLSNF.js +0 -1
  265. package/dist/stage/chunks/chunk-QVOXRLEG.js +0 -1
  266. package/dist/stage/chunks/chunk-RAHM76FI.js +0 -1
  267. package/dist/stage/chunks/chunk-RONEQF2M.js +0 -1
  268. package/dist/stage/chunks/chunk-RPTOBIKP.js +0 -1
  269. package/dist/stage/chunks/chunk-RSWDPV5U.js +0 -1
  270. package/dist/stage/chunks/chunk-SSSTBYOF.js +0 -1
  271. package/dist/stage/chunks/chunk-SV2PSWLZ.js +0 -1
  272. package/dist/stage/chunks/chunk-TDXJNI7H.js +0 -1
  273. package/dist/stage/chunks/chunk-TFGNKPAQ.js +0 -1
  274. package/dist/stage/chunks/chunk-TYA35RCB.js +0 -1
  275. package/dist/stage/chunks/chunk-UJZNQZVK.js +0 -1
  276. package/dist/stage/chunks/chunk-UN7EZPD7.js +0 -1
  277. package/dist/stage/chunks/chunk-UOBNXO4G.js +0 -1
  278. package/dist/stage/chunks/chunk-UVV4NANW.js +0 -97
  279. package/dist/stage/chunks/chunk-V5TNO5LS.js +0 -3
  280. package/dist/stage/chunks/chunk-VHRU6H4C.js +0 -1
  281. package/dist/stage/chunks/chunk-VP2XJ5UI.js +0 -1
  282. package/dist/stage/chunks/chunk-VQDQA3ID.js +0 -1
  283. package/dist/stage/chunks/chunk-VZJTFJZN.js +0 -1
  284. package/dist/stage/chunks/chunk-WCL6XNDN.js +0 -1
  285. package/dist/stage/chunks/chunk-WKUYNMPE.js +0 -1
  286. package/dist/stage/chunks/chunk-WWWIZ7VG.js +0 -1
  287. package/dist/stage/chunks/chunk-X2R3VYWI.js +0 -1
  288. package/dist/stage/chunks/chunk-X5HHNNED.js +0 -1
  289. package/dist/stage/chunks/chunk-X5INDUEQ.js +0 -1
  290. package/dist/stage/chunks/chunk-XBUV5F3F.js +0 -1
  291. package/dist/stage/chunks/chunk-XPWU54SD.js +0 -1
  292. package/dist/stage/chunks/chunk-YFURTAAV.js +0 -1
  293. package/dist/stage/chunks/chunk-YRI4I37X.js +0 -1
  294. package/dist/stage/chunks/chunk-ZCUNR3XN.js +0 -1
  295. package/dist/stage/chunks/clearDestination-TFFJZYZU.js +0 -1
  296. package/dist/stage/chunks/clearName-LAT5C4G3.js +0 -1
  297. package/dist/stage/chunks/clearOptionsExpression-QHE4GD2Y.js +0 -1
  298. package/dist/stage/chunks/clearRender-XEMKLRCM.js +0 -1
  299. package/dist/stage/chunks/clearRepeat-OJXLCGGV.js +0 -1
  300. package/dist/stage/chunks/contentEditor-H4QUMYKV.js +0 -1
  301. package/dist/stage/chunks/createAction-X7WWJ6BN.js +0 -1
  302. package/dist/stage/chunks/createAnimation-TYRSVQNL.js +0 -1
  303. package/dist/stage/chunks/createComputed-NVI2BGGF.js +0 -1
  304. package/dist/stage/chunks/createTextContent-R4ZOE6SM.js +0 -1
  305. package/dist/stage/chunks/createValue-GRZQQ5RR.js +0 -1
  306. package/dist/stage/chunks/design-2S7QAGYM.js +0 -15
  307. package/dist/stage/chunks/dev-PZI3DDXQ.js +0 -1
  308. package/dist/stage/chunks/disconnectNode-RRO6QPMX.js +0 -1
  309. package/dist/stage/chunks/history-5FAKKGJY.js +0 -1
  310. package/dist/stage/chunks/id-G47WSCWG.js +0 -1
  311. package/dist/stage/chunks/main-GPY4VWAB.js +0 -1
  312. package/dist/stage/chunks/main-OLXPOBOM.js +0 -1
  313. package/dist/stage/chunks/main-QADVRVCC.js +0 -1
  314. package/dist/stage/chunks/main-RMI3HY2B.js +0 -1
  315. package/dist/stage/chunks/moveNodeToLastChildOf-SGHEMUMS.js +0 -1
  316. package/dist/stage/chunks/nodeGraph-UGMYCUUO.js +0 -1
  317. package/dist/stage/chunks/normalizeEventName-Y34QRO25.js +0 -1
  318. package/dist/stage/chunks/preview-UBVA3QQU.js +0 -1
  319. package/dist/stage/chunks/removeAction-UIZVYC4K.js +0 -1
  320. package/dist/stage/chunks/removeAnimationBinding-PD2IRVQZ.js +0 -1
  321. package/dist/stage/chunks/removeAttribute-HCDVVDSZ.js +0 -1
  322. package/dist/stage/chunks/removeComputed-2UWAXEAM.js +0 -1
  323. package/dist/stage/chunks/removeEvent-GBW7REQV.js +0 -1
  324. package/dist/stage/chunks/removeLifecycleHook-V4BK7NPV.js +0 -1
  325. package/dist/stage/chunks/removeNode-H7TWCLTZ.js +0 -1
  326. package/dist/stage/chunks/removeOption-4SMMGXLO.js +0 -1
  327. package/dist/stage/chunks/removeParamFromRoute-2Q2PYYP5.js +0 -1
  328. package/dist/stage/chunks/removeState-X4UQTIPT.js +0 -1
  329. package/dist/stage/chunks/removeStore-B3WQQP3D.js +0 -1
  330. package/dist/stage/chunks/removeToken-3QTFHQF6.js +0 -1
  331. package/dist/stage/chunks/removeValue-QIQBSOHR.js +0 -1
  332. package/dist/stage/chunks/setDestination-26OTLIOX.js +0 -1
  333. package/dist/stage/chunks/setHomePage-GBSAVDQC.js +0 -1
  334. package/dist/stage/chunks/setHtmlId-PZQQWCXU.js +0 -1
  335. package/dist/stage/chunks/setName-C26SXODP.js +0 -1
  336. package/dist/stage/chunks/setNodeLayout-PZMYT6M2.js +0 -1
  337. package/dist/stage/chunks/setOptionsExpression-PQ3JOVEW.js +0 -1
  338. package/dist/stage/chunks/setRender-MNCOTE35.js +0 -1
  339. package/dist/stage/chunks/setRepeat-GIOC7YT4.js +0 -1
  340. package/dist/stage/chunks/setTagName-FA7BMEUS.js +0 -1
  341. package/dist/stage/chunks/updateAction-TUQLHSJE.js +0 -1
  342. package/dist/stage/chunks/updateAnimationBinding-I3AQNLO2.js +0 -1
  343. package/dist/stage/chunks/updateAttribute-TLLDGUPR.js +0 -1
  344. package/dist/stage/chunks/updateBounds-KL4N7VYO.js +0 -1
  345. package/dist/stage/chunks/updateComputed-JGJIIC4A.js +0 -1
  346. package/dist/stage/chunks/updateEvent-YOKH67TX.js +0 -1
  347. package/dist/stage/chunks/updateHtml-Z4XI7SYU.js +0 -1
  348. package/dist/stage/chunks/updateLifecycleHook-4555YGGM.js +0 -1
  349. package/dist/stage/chunks/updateOption-YUFQYF43.js +0 -1
  350. package/dist/stage/chunks/updateRoute-42OSDVLS.js +0 -1
  351. package/dist/stage/chunks/updateState-3RQX5YED.js +0 -1
  352. package/dist/stage/chunks/updateStyle-I5NO4TOV.js +0 -1
  353. package/dist/stage/chunks/updateToken-AFJYTJ7R.js +0 -1
  354. package/dist/stage/chunks/updateValue-XGRBUCOT.js +0 -1
  355. package/dist/stage/chunks/user-CK5IAVFH.js +0 -1
  356. package/dist/stage/chunks/validateStorePayload-3HAVFGVL.js +0 -3
  357. package/dist/stage/chunks/viewport-CQRIOXC6.js +0 -1
  358. package/dist/stage/chunks/window-7JZPBAP7.js +0 -1
  359. package/dist/stage/design.js +0 -1
  360. package/dist/stage/dev.js +0 -1
  361. package/dist/stage/preview.js +0 -1
  362. package/dist/stage-bundles/preact/chunks/addAction-EGLGEGTS.js +0 -1
  363. package/dist/stage-bundles/preact/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
  364. package/dist/stage-bundles/preact/chunks/addAttribute-2MZ3OFUE.js +0 -1
  365. package/dist/stage-bundles/preact/chunks/addComponent-3JC5NC3Y.js +0 -1
  366. package/dist/stage-bundles/preact/chunks/addComputed-7JLBFD6I.js +0 -1
  367. package/dist/stage-bundles/preact/chunks/addEvent-HOBNKM2F.js +0 -1
  368. package/dist/stage-bundles/preact/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
  369. package/dist/stage-bundles/preact/chunks/addNode-QXU2P4AE.js +0 -1
  370. package/dist/stage-bundles/preact/chunks/addOption-PVXGN7AJ.js +0 -1
  371. package/dist/stage-bundles/preact/chunks/addParamToRoute-VL2VOFZS.js +0 -1
  372. package/dist/stage-bundles/preact/chunks/addState-U2NWEGWV.js +0 -1
  373. package/dist/stage-bundles/preact/chunks/addStore-AQMFKH33.js +0 -1
  374. package/dist/stage-bundles/preact/chunks/addToken-XF2FFA52.js +0 -1
  375. package/dist/stage-bundles/preact/chunks/addTree-S73GXWZP.js +0 -1
  376. package/dist/stage-bundles/preact/chunks/addValue-O7YXXMST.js +0 -1
  377. package/dist/stage-bundles/preact/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
  378. package/dist/stage-bundles/preact/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
  379. package/dist/stage-bundles/preact/chunks/aiRelay-C6ZJ3PUF.js +0 -1
  380. package/dist/stage-bundles/preact/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
  381. package/dist/stage-bundles/preact/chunks/assets-6LM3GVQU.js +0 -1
  382. package/dist/stage-bundles/preact/chunks/capture-ON3BO6WE.js +0 -1
  383. package/dist/stage-bundles/preact/chunks/chunk-2Z2RXHNK.js +0 -1
  384. package/dist/stage-bundles/preact/chunks/chunk-3WCN6R5H.js +0 -1
  385. package/dist/stage-bundles/preact/chunks/chunk-45YNKT2X.js +0 -1
  386. package/dist/stage-bundles/preact/chunks/chunk-4Q5R44ZZ.js +0 -1
  387. package/dist/stage-bundles/preact/chunks/chunk-5CWWFBNY.js +0 -1
  388. package/dist/stage-bundles/preact/chunks/chunk-5GKIM3R4.js +0 -1
  389. package/dist/stage-bundles/preact/chunks/chunk-6KW4HPGN.js +0 -1
  390. package/dist/stage-bundles/preact/chunks/chunk-6S7QQT47.js +0 -1
  391. package/dist/stage-bundles/preact/chunks/chunk-7I5TQOE2.js +0 -1
  392. package/dist/stage-bundles/preact/chunks/chunk-7UENQJSC.js +0 -5
  393. package/dist/stage-bundles/preact/chunks/chunk-7VDUBBVE.js +0 -1
  394. package/dist/stage-bundles/preact/chunks/chunk-7YVQSQRP.js +0 -1
  395. package/dist/stage-bundles/preact/chunks/chunk-A25WFH3U.js +0 -1
  396. package/dist/stage-bundles/preact/chunks/chunk-A52FDU5E.js +0 -1
  397. package/dist/stage-bundles/preact/chunks/chunk-AMPHYXGT.js +0 -1
  398. package/dist/stage-bundles/preact/chunks/chunk-AOGIMUZ2.js +0 -103
  399. package/dist/stage-bundles/preact/chunks/chunk-AS76ZLXK.js +0 -1
  400. package/dist/stage-bundles/preact/chunks/chunk-AYZAGKHN.js +0 -1
  401. package/dist/stage-bundles/preact/chunks/chunk-BGQJ5B3Q.js +0 -1
  402. package/dist/stage-bundles/preact/chunks/chunk-BL6GQ6ID.js +0 -1
  403. package/dist/stage-bundles/preact/chunks/chunk-BWJHUHDJ.js +0 -1
  404. package/dist/stage-bundles/preact/chunks/chunk-CAAW6MG4.js +0 -1
  405. package/dist/stage-bundles/preact/chunks/chunk-CC3CCH2E.js +0 -1
  406. package/dist/stage-bundles/preact/chunks/chunk-CGCD6S33.js +0 -6
  407. package/dist/stage-bundles/preact/chunks/chunk-CNZYL2VV.js +0 -1
  408. package/dist/stage-bundles/preact/chunks/chunk-CXJ5APZF.js +0 -1
  409. package/dist/stage-bundles/preact/chunks/chunk-CYURWEXX.js +0 -1
  410. package/dist/stage-bundles/preact/chunks/chunk-DHPGPV5T.js +0 -1
  411. package/dist/stage-bundles/preact/chunks/chunk-DLHF7QB4.js +0 -1
  412. package/dist/stage-bundles/preact/chunks/chunk-DWW3567Q.js +0 -1
  413. package/dist/stage-bundles/preact/chunks/chunk-E6KR5RXO.js +0 -1
  414. package/dist/stage-bundles/preact/chunks/chunk-EPVRMHC2.js +0 -1
  415. package/dist/stage-bundles/preact/chunks/chunk-EWEPEODY.js +0 -1
  416. package/dist/stage-bundles/preact/chunks/chunk-EXXAK3BP.js +0 -1
  417. package/dist/stage-bundles/preact/chunks/chunk-F5MJNV7Y.js +0 -3
  418. package/dist/stage-bundles/preact/chunks/chunk-FAYUYASQ.js +0 -1
  419. package/dist/stage-bundles/preact/chunks/chunk-G3PYA3EU.js +0 -1
  420. package/dist/stage-bundles/preact/chunks/chunk-GEOQWCYL.js +0 -1
  421. package/dist/stage-bundles/preact/chunks/chunk-GK5XUHQG.js +0 -1
  422. package/dist/stage-bundles/preact/chunks/chunk-GM4D3DPT.js +0 -1
  423. package/dist/stage-bundles/preact/chunks/chunk-GUI7FIZD.js +0 -1
  424. package/dist/stage-bundles/preact/chunks/chunk-HAN4CMBX.js +0 -1
  425. package/dist/stage-bundles/preact/chunks/chunk-HCRWHPFW.js +0 -1
  426. package/dist/stage-bundles/preact/chunks/chunk-HE7IQLGK.js +0 -1
  427. package/dist/stage-bundles/preact/chunks/chunk-I57W7UZN.js +0 -1
  428. package/dist/stage-bundles/preact/chunks/chunk-IBDKDP7T.js +0 -1
  429. package/dist/stage-bundles/preact/chunks/chunk-ICWQHFOI.js +0 -1
  430. package/dist/stage-bundles/preact/chunks/chunk-IG2Y3H6O.js +0 -1
  431. package/dist/stage-bundles/preact/chunks/chunk-IKKRB6BS.js +0 -1
  432. package/dist/stage-bundles/preact/chunks/chunk-IV6PINVX.js +0 -1
  433. package/dist/stage-bundles/preact/chunks/chunk-IW4KEJOF.js +0 -1
  434. package/dist/stage-bundles/preact/chunks/chunk-IWTWZA3T.js +0 -1
  435. package/dist/stage-bundles/preact/chunks/chunk-J5QMLA3Z.js +0 -1
  436. package/dist/stage-bundles/preact/chunks/chunk-K5BNCYT7.js +0 -1
  437. package/dist/stage-bundles/preact/chunks/chunk-KTWXYDG7.js +0 -1
  438. package/dist/stage-bundles/preact/chunks/chunk-LHK7LQPZ.js +0 -1
  439. package/dist/stage-bundles/preact/chunks/chunk-LUY5LC7Z.js +0 -1
  440. package/dist/stage-bundles/preact/chunks/chunk-LXD22ETU.js +0 -1
  441. package/dist/stage-bundles/preact/chunks/chunk-M577WNTV.js +0 -1
  442. package/dist/stage-bundles/preact/chunks/chunk-MGH62JQ4.js +0 -1
  443. package/dist/stage-bundles/preact/chunks/chunk-MUZZUB5Y.js +0 -1
  444. package/dist/stage-bundles/preact/chunks/chunk-N6I4COF2.js +0 -1
  445. package/dist/stage-bundles/preact/chunks/chunk-NFKUJQZH.js +0 -1
  446. package/dist/stage-bundles/preact/chunks/chunk-NHY2XYCH.js +0 -1
  447. package/dist/stage-bundles/preact/chunks/chunk-NKDO4J6J.js +0 -1
  448. package/dist/stage-bundles/preact/chunks/chunk-NOTXZB5N.js +0 -1
  449. package/dist/stage-bundles/preact/chunks/chunk-NXBFOI3Z.js +0 -1
  450. package/dist/stage-bundles/preact/chunks/chunk-OQM5TMCK.js +0 -1
  451. package/dist/stage-bundles/preact/chunks/chunk-PPDOTRNT.js +0 -1
  452. package/dist/stage-bundles/preact/chunks/chunk-PU62K33G.js +0 -1
  453. package/dist/stage-bundles/preact/chunks/chunk-Q3IER3MW.js +0 -1
  454. package/dist/stage-bundles/preact/chunks/chunk-Q3ZV7EKU.js +0 -1
  455. package/dist/stage-bundles/preact/chunks/chunk-QD56IMFS.js +0 -1
  456. package/dist/stage-bundles/preact/chunks/chunk-QFFVADTJ.js +0 -1
  457. package/dist/stage-bundles/preact/chunks/chunk-QJ33JO3T.js +0 -1
  458. package/dist/stage-bundles/preact/chunks/chunk-QVVBKZW6.js +0 -1
  459. package/dist/stage-bundles/preact/chunks/chunk-RFFN4NF4.js +0 -1
  460. package/dist/stage-bundles/preact/chunks/chunk-SCJKRPIZ.js +0 -1
  461. package/dist/stage-bundles/preact/chunks/chunk-TPCJQIUG.js +0 -1
  462. package/dist/stage-bundles/preact/chunks/chunk-TX5TCU2H.js +0 -1
  463. package/dist/stage-bundles/preact/chunks/chunk-UCLSDDOL.js +0 -1
  464. package/dist/stage-bundles/preact/chunks/chunk-ULVFWUAU.js +0 -1
  465. package/dist/stage-bundles/preact/chunks/chunk-XE3A5HPY.js +0 -1
  466. package/dist/stage-bundles/preact/chunks/chunk-XFHQ45KR.js +0 -1
  467. package/dist/stage-bundles/preact/chunks/chunk-XTAXESM6.js +0 -1
  468. package/dist/stage-bundles/preact/chunks/chunk-YB7FA4Y3.js +0 -1
  469. package/dist/stage-bundles/preact/chunks/chunk-YCGY2NRE.js +0 -1
  470. package/dist/stage-bundles/preact/chunks/chunk-YCMBBPKT.js +0 -1
  471. package/dist/stage-bundles/preact/chunks/chunk-Z3M6DQKZ.js +0 -1
  472. package/dist/stage-bundles/preact/chunks/chunk-ZUPNPSUB.js +0 -1
  473. package/dist/stage-bundles/preact/chunks/clearDestination-IGKNL7FN.js +0 -1
  474. package/dist/stage-bundles/preact/chunks/clearName-HJ7ZTHBU.js +0 -1
  475. package/dist/stage-bundles/preact/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
  476. package/dist/stage-bundles/preact/chunks/clearRender-NPVDTNFA.js +0 -1
  477. package/dist/stage-bundles/preact/chunks/clearRepeat-7YFYZODP.js +0 -1
  478. package/dist/stage-bundles/preact/chunks/contentEditor-7BYCT3TH.js +0 -1
  479. package/dist/stage-bundles/preact/chunks/createAction-73YUTK3T.js +0 -1
  480. package/dist/stage-bundles/preact/chunks/createAnimation-2WQSMYT5.js +0 -1
  481. package/dist/stage-bundles/preact/chunks/createComputed-DMX7CJA3.js +0 -1
  482. package/dist/stage-bundles/preact/chunks/createTextContent-4Z4YATBO.js +0 -1
  483. package/dist/stage-bundles/preact/chunks/createValue-DXQSLOBG.js +0 -1
  484. package/dist/stage-bundles/preact/chunks/design-3DHGUCPX.js +0 -15
  485. package/dist/stage-bundles/preact/chunks/disconnectNode-2CLWVIQP.js +0 -1
  486. package/dist/stage-bundles/preact/chunks/history-CMF3VYTT.js +0 -1
  487. package/dist/stage-bundles/preact/chunks/id-ZIAZZ5AS.js +0 -1
  488. package/dist/stage-bundles/preact/chunks/main-3VRCGPRY.js +0 -1
  489. package/dist/stage-bundles/preact/chunks/main-DH4JOS22.js +0 -1
  490. package/dist/stage-bundles/preact/chunks/main-FAFZABOS.js +0 -1
  491. package/dist/stage-bundles/preact/chunks/main-S7RT75O6.js +0 -1
  492. package/dist/stage-bundles/preact/chunks/moveNodeToLastChildOf-CWSWITHI.js +0 -1
  493. package/dist/stage-bundles/preact/chunks/nodeGraph-UNI2HUNX.js +0 -1
  494. package/dist/stage-bundles/preact/chunks/normalizeEventName-SNBYJDUY.js +0 -1
  495. package/dist/stage-bundles/preact/chunks/preview-YOYSHYJF.js +0 -1
  496. package/dist/stage-bundles/preact/chunks/removeAction-T4M5EJN7.js +0 -1
  497. package/dist/stage-bundles/preact/chunks/removeAnimationBinding-AIISPC33.js +0 -1
  498. package/dist/stage-bundles/preact/chunks/removeAttribute-DCKZLM55.js +0 -1
  499. package/dist/stage-bundles/preact/chunks/removeComputed-WSA5GNVZ.js +0 -1
  500. package/dist/stage-bundles/preact/chunks/removeEvent-2YZ55HD6.js +0 -1
  501. package/dist/stage-bundles/preact/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
  502. package/dist/stage-bundles/preact/chunks/removeNode-5HXQ63V3.js +0 -1
  503. package/dist/stage-bundles/preact/chunks/removeOption-SYIFB4XW.js +0 -1
  504. package/dist/stage-bundles/preact/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
  505. package/dist/stage-bundles/preact/chunks/removeState-SGJVQ66N.js +0 -1
  506. package/dist/stage-bundles/preact/chunks/removeStore-YVBTGA3I.js +0 -1
  507. package/dist/stage-bundles/preact/chunks/removeToken-AIDV7DUM.js +0 -1
  508. package/dist/stage-bundles/preact/chunks/removeValue-UP5ZFN3U.js +0 -1
  509. package/dist/stage-bundles/preact/chunks/setDestination-NCPAVIIK.js +0 -1
  510. package/dist/stage-bundles/preact/chunks/setHomePage-O2JYOG6H.js +0 -1
  511. package/dist/stage-bundles/preact/chunks/setHtmlId-2W7YW47O.js +0 -1
  512. package/dist/stage-bundles/preact/chunks/setName-NKRZPBGG.js +0 -1
  513. package/dist/stage-bundles/preact/chunks/setNodeLayout-KQVZJBYW.js +0 -1
  514. package/dist/stage-bundles/preact/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
  515. package/dist/stage-bundles/preact/chunks/setRender-7XMGQ7ZK.js +0 -1
  516. package/dist/stage-bundles/preact/chunks/setRepeat-WN4WZJUN.js +0 -1
  517. package/dist/stage-bundles/preact/chunks/setTagName-U6UJNJLE.js +0 -1
  518. package/dist/stage-bundles/preact/chunks/updateAction-3KSR6ZIJ.js +0 -1
  519. package/dist/stage-bundles/preact/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
  520. package/dist/stage-bundles/preact/chunks/updateAttribute-XXZL2P43.js +0 -1
  521. package/dist/stage-bundles/preact/chunks/updateBounds-5M7YQRO3.js +0 -1
  522. package/dist/stage-bundles/preact/chunks/updateComputed-7QA6XZIC.js +0 -1
  523. package/dist/stage-bundles/preact/chunks/updateEvent-R52PL2G4.js +0 -1
  524. package/dist/stage-bundles/preact/chunks/updateHtml-YBJJSWQW.js +0 -1
  525. package/dist/stage-bundles/preact/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
  526. package/dist/stage-bundles/preact/chunks/updateOption-5U23ZUWV.js +0 -1
  527. package/dist/stage-bundles/preact/chunks/updateRoute-TFQFFFSZ.js +0 -1
  528. package/dist/stage-bundles/preact/chunks/updateState-JCUSBQOL.js +0 -1
  529. package/dist/stage-bundles/preact/chunks/updateStyle-JASLFXVX.js +0 -1
  530. package/dist/stage-bundles/preact/chunks/updateToken-24P2P2SF.js +0 -1
  531. package/dist/stage-bundles/preact/chunks/updateValue-TSVJM3PO.js +0 -1
  532. package/dist/stage-bundles/preact/chunks/user-H5DKMGWA.js +0 -1
  533. package/dist/stage-bundles/preact/chunks/validateStorePayload-HCBPC7HR.js +0 -3
  534. package/dist/stage-bundles/preact/chunks/viewport-ZRWTVYC3.js +0 -1
  535. package/dist/stage-bundles/preact/chunks/window-IMPT5I3D.js +0 -1
  536. package/dist/stage-bundles/react/chunks/addAction-EGLGEGTS.js +0 -1
  537. package/dist/stage-bundles/react/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
  538. package/dist/stage-bundles/react/chunks/addAttribute-2MZ3OFUE.js +0 -1
  539. package/dist/stage-bundles/react/chunks/addComponent-3JC5NC3Y.js +0 -1
  540. package/dist/stage-bundles/react/chunks/addComputed-7JLBFD6I.js +0 -1
  541. package/dist/stage-bundles/react/chunks/addEvent-HOBNKM2F.js +0 -1
  542. package/dist/stage-bundles/react/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
  543. package/dist/stage-bundles/react/chunks/addNode-QXU2P4AE.js +0 -1
  544. package/dist/stage-bundles/react/chunks/addOption-PVXGN7AJ.js +0 -1
  545. package/dist/stage-bundles/react/chunks/addParamToRoute-VL2VOFZS.js +0 -1
  546. package/dist/stage-bundles/react/chunks/addState-U2NWEGWV.js +0 -1
  547. package/dist/stage-bundles/react/chunks/addStore-AQMFKH33.js +0 -1
  548. package/dist/stage-bundles/react/chunks/addToken-XF2FFA52.js +0 -1
  549. package/dist/stage-bundles/react/chunks/addTree-S73GXWZP.js +0 -1
  550. package/dist/stage-bundles/react/chunks/addValue-O7YXXMST.js +0 -1
  551. package/dist/stage-bundles/react/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
  552. package/dist/stage-bundles/react/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
  553. package/dist/stage-bundles/react/chunks/aiRelay-C6ZJ3PUF.js +0 -1
  554. package/dist/stage-bundles/react/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
  555. package/dist/stage-bundles/react/chunks/assets-6LM3GVQU.js +0 -1
  556. package/dist/stage-bundles/react/chunks/capture-6GFKGXIT.js +0 -1
  557. package/dist/stage-bundles/react/chunks/chunk-2Z2RXHNK.js +0 -1
  558. package/dist/stage-bundles/react/chunks/chunk-3WCN6R5H.js +0 -1
  559. package/dist/stage-bundles/react/chunks/chunk-45YNKT2X.js +0 -1
  560. package/dist/stage-bundles/react/chunks/chunk-4Q5R44ZZ.js +0 -1
  561. package/dist/stage-bundles/react/chunks/chunk-5CWWFBNY.js +0 -1
  562. package/dist/stage-bundles/react/chunks/chunk-5GKIM3R4.js +0 -1
  563. package/dist/stage-bundles/react/chunks/chunk-6KW4HPGN.js +0 -1
  564. package/dist/stage-bundles/react/chunks/chunk-6S7QQT47.js +0 -1
  565. package/dist/stage-bundles/react/chunks/chunk-7I5TQOE2.js +0 -1
  566. package/dist/stage-bundles/react/chunks/chunk-7UENQJSC.js +0 -5
  567. package/dist/stage-bundles/react/chunks/chunk-7VDUBBVE.js +0 -1
  568. package/dist/stage-bundles/react/chunks/chunk-7YVQSQRP.js +0 -1
  569. package/dist/stage-bundles/react/chunks/chunk-A25WFH3U.js +0 -1
  570. package/dist/stage-bundles/react/chunks/chunk-A52FDU5E.js +0 -1
  571. package/dist/stage-bundles/react/chunks/chunk-AMPHYXGT.js +0 -1
  572. package/dist/stage-bundles/react/chunks/chunk-AS76ZLXK.js +0 -1
  573. package/dist/stage-bundles/react/chunks/chunk-AYZAGKHN.js +0 -1
  574. package/dist/stage-bundles/react/chunks/chunk-BGQJ5B3Q.js +0 -1
  575. package/dist/stage-bundles/react/chunks/chunk-BL6GQ6ID.js +0 -1
  576. package/dist/stage-bundles/react/chunks/chunk-BWJHUHDJ.js +0 -1
  577. package/dist/stage-bundles/react/chunks/chunk-CAAW6MG4.js +0 -1
  578. package/dist/stage-bundles/react/chunks/chunk-CC3CCH2E.js +0 -1
  579. package/dist/stage-bundles/react/chunks/chunk-CGCD6S33.js +0 -6
  580. package/dist/stage-bundles/react/chunks/chunk-CNZYL2VV.js +0 -1
  581. package/dist/stage-bundles/react/chunks/chunk-CXJ5APZF.js +0 -1
  582. package/dist/stage-bundles/react/chunks/chunk-CYURWEXX.js +0 -1
  583. package/dist/stage-bundles/react/chunks/chunk-DHPGPV5T.js +0 -1
  584. package/dist/stage-bundles/react/chunks/chunk-DLHF7QB4.js +0 -1
  585. package/dist/stage-bundles/react/chunks/chunk-E6KR5RXO.js +0 -1
  586. package/dist/stage-bundles/react/chunks/chunk-EPVRMHC2.js +0 -1
  587. package/dist/stage-bundles/react/chunks/chunk-EWEPEODY.js +0 -1
  588. package/dist/stage-bundles/react/chunks/chunk-EXXAK3BP.js +0 -1
  589. package/dist/stage-bundles/react/chunks/chunk-F5MJNV7Y.js +0 -3
  590. package/dist/stage-bundles/react/chunks/chunk-FAYUYASQ.js +0 -1
  591. package/dist/stage-bundles/react/chunks/chunk-G3PYA3EU.js +0 -1
  592. package/dist/stage-bundles/react/chunks/chunk-GEOQWCYL.js +0 -1
  593. package/dist/stage-bundles/react/chunks/chunk-GK5XUHQG.js +0 -1
  594. package/dist/stage-bundles/react/chunks/chunk-GM4D3DPT.js +0 -1
  595. package/dist/stage-bundles/react/chunks/chunk-GUI7FIZD.js +0 -1
  596. package/dist/stage-bundles/react/chunks/chunk-HAN4CMBX.js +0 -1
  597. package/dist/stage-bundles/react/chunks/chunk-HCRWHPFW.js +0 -1
  598. package/dist/stage-bundles/react/chunks/chunk-HE7IQLGK.js +0 -1
  599. package/dist/stage-bundles/react/chunks/chunk-HJOMUN4M.js +0 -49
  600. package/dist/stage-bundles/react/chunks/chunk-I57W7UZN.js +0 -1
  601. package/dist/stage-bundles/react/chunks/chunk-IBDKDP7T.js +0 -1
  602. package/dist/stage-bundles/react/chunks/chunk-ICWQHFOI.js +0 -1
  603. package/dist/stage-bundles/react/chunks/chunk-IG2Y3H6O.js +0 -1
  604. package/dist/stage-bundles/react/chunks/chunk-IKKRB6BS.js +0 -1
  605. package/dist/stage-bundles/react/chunks/chunk-IV6PINVX.js +0 -1
  606. package/dist/stage-bundles/react/chunks/chunk-IW4KEJOF.js +0 -1
  607. package/dist/stage-bundles/react/chunks/chunk-IWTWZA3T.js +0 -1
  608. package/dist/stage-bundles/react/chunks/chunk-J5QMLA3Z.js +0 -1
  609. package/dist/stage-bundles/react/chunks/chunk-K5BNCYT7.js +0 -1
  610. package/dist/stage-bundles/react/chunks/chunk-KTWXYDG7.js +0 -1
  611. package/dist/stage-bundles/react/chunks/chunk-LHK7LQPZ.js +0 -1
  612. package/dist/stage-bundles/react/chunks/chunk-LUY5LC7Z.js +0 -1
  613. package/dist/stage-bundles/react/chunks/chunk-LXD22ETU.js +0 -1
  614. package/dist/stage-bundles/react/chunks/chunk-M577WNTV.js +0 -1
  615. package/dist/stage-bundles/react/chunks/chunk-MGH62JQ4.js +0 -1
  616. package/dist/stage-bundles/react/chunks/chunk-MUZZUB5Y.js +0 -1
  617. package/dist/stage-bundles/react/chunks/chunk-N6I4COF2.js +0 -1
  618. package/dist/stage-bundles/react/chunks/chunk-NFKUJQZH.js +0 -1
  619. package/dist/stage-bundles/react/chunks/chunk-NHY2XYCH.js +0 -1
  620. package/dist/stage-bundles/react/chunks/chunk-NKDO4J6J.js +0 -1
  621. package/dist/stage-bundles/react/chunks/chunk-NOTXZB5N.js +0 -1
  622. package/dist/stage-bundles/react/chunks/chunk-NXBFOI3Z.js +0 -1
  623. package/dist/stage-bundles/react/chunks/chunk-OQM5TMCK.js +0 -1
  624. package/dist/stage-bundles/react/chunks/chunk-PPDOTRNT.js +0 -1
  625. package/dist/stage-bundles/react/chunks/chunk-PU62K33G.js +0 -1
  626. package/dist/stage-bundles/react/chunks/chunk-Q3IER3MW.js +0 -1
  627. package/dist/stage-bundles/react/chunks/chunk-Q3ZV7EKU.js +0 -1
  628. package/dist/stage-bundles/react/chunks/chunk-QD56IMFS.js +0 -1
  629. package/dist/stage-bundles/react/chunks/chunk-QFFVADTJ.js +0 -1
  630. package/dist/stage-bundles/react/chunks/chunk-QJ33JO3T.js +0 -1
  631. package/dist/stage-bundles/react/chunks/chunk-QVVBKZW6.js +0 -1
  632. package/dist/stage-bundles/react/chunks/chunk-RFFN4NF4.js +0 -1
  633. package/dist/stage-bundles/react/chunks/chunk-SCJKRPIZ.js +0 -1
  634. package/dist/stage-bundles/react/chunks/chunk-TPCJQIUG.js +0 -1
  635. package/dist/stage-bundles/react/chunks/chunk-TX5TCU2H.js +0 -1
  636. package/dist/stage-bundles/react/chunks/chunk-U66LRTNF.js +0 -1
  637. package/dist/stage-bundles/react/chunks/chunk-UCLSDDOL.js +0 -1
  638. package/dist/stage-bundles/react/chunks/chunk-ULVFWUAU.js +0 -1
  639. package/dist/stage-bundles/react/chunks/chunk-XE3A5HPY.js +0 -1
  640. package/dist/stage-bundles/react/chunks/chunk-XFHQ45KR.js +0 -1
  641. package/dist/stage-bundles/react/chunks/chunk-XTAXESM6.js +0 -1
  642. package/dist/stage-bundles/react/chunks/chunk-YB7FA4Y3.js +0 -1
  643. package/dist/stage-bundles/react/chunks/chunk-YCGY2NRE.js +0 -1
  644. package/dist/stage-bundles/react/chunks/chunk-YCMBBPKT.js +0 -1
  645. package/dist/stage-bundles/react/chunks/chunk-Z3M6DQKZ.js +0 -1
  646. package/dist/stage-bundles/react/chunks/chunk-ZUPNPSUB.js +0 -1
  647. package/dist/stage-bundles/react/chunks/clearDestination-IGKNL7FN.js +0 -1
  648. package/dist/stage-bundles/react/chunks/clearName-HJ7ZTHBU.js +0 -1
  649. package/dist/stage-bundles/react/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
  650. package/dist/stage-bundles/react/chunks/clearRender-NPVDTNFA.js +0 -1
  651. package/dist/stage-bundles/react/chunks/clearRepeat-7YFYZODP.js +0 -1
  652. package/dist/stage-bundles/react/chunks/contentEditor-7BYCT3TH.js +0 -1
  653. package/dist/stage-bundles/react/chunks/createAction-73YUTK3T.js +0 -1
  654. package/dist/stage-bundles/react/chunks/createAnimation-2WQSMYT5.js +0 -1
  655. package/dist/stage-bundles/react/chunks/createComputed-DMX7CJA3.js +0 -1
  656. package/dist/stage-bundles/react/chunks/createTextContent-4Z4YATBO.js +0 -1
  657. package/dist/stage-bundles/react/chunks/createValue-DXQSLOBG.js +0 -1
  658. package/dist/stage-bundles/react/chunks/design-6KSNU4OK.js +0 -15
  659. package/dist/stage-bundles/react/chunks/disconnectNode-2CLWVIQP.js +0 -1
  660. package/dist/stage-bundles/react/chunks/history-CMF3VYTT.js +0 -1
  661. package/dist/stage-bundles/react/chunks/id-ZIAZZ5AS.js +0 -1
  662. package/dist/stage-bundles/react/chunks/main-3VRCGPRY.js +0 -1
  663. package/dist/stage-bundles/react/chunks/main-DH4JOS22.js +0 -1
  664. package/dist/stage-bundles/react/chunks/main-FAFZABOS.js +0 -1
  665. package/dist/stage-bundles/react/chunks/main-S7RT75O6.js +0 -1
  666. package/dist/stage-bundles/react/chunks/moveNodeToLastChildOf-CWSWITHI.js +0 -1
  667. package/dist/stage-bundles/react/chunks/nodeGraph-UNI2HUNX.js +0 -1
  668. package/dist/stage-bundles/react/chunks/normalizeEventName-SNBYJDUY.js +0 -1
  669. package/dist/stage-bundles/react/chunks/preview-KOCHK3AH.js +0 -1
  670. package/dist/stage-bundles/react/chunks/removeAction-T4M5EJN7.js +0 -1
  671. package/dist/stage-bundles/react/chunks/removeAnimationBinding-AIISPC33.js +0 -1
  672. package/dist/stage-bundles/react/chunks/removeAttribute-DCKZLM55.js +0 -1
  673. package/dist/stage-bundles/react/chunks/removeComputed-WSA5GNVZ.js +0 -1
  674. package/dist/stage-bundles/react/chunks/removeEvent-2YZ55HD6.js +0 -1
  675. package/dist/stage-bundles/react/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
  676. package/dist/stage-bundles/react/chunks/removeNode-5HXQ63V3.js +0 -1
  677. package/dist/stage-bundles/react/chunks/removeOption-SYIFB4XW.js +0 -1
  678. package/dist/stage-bundles/react/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
  679. package/dist/stage-bundles/react/chunks/removeState-SGJVQ66N.js +0 -1
  680. package/dist/stage-bundles/react/chunks/removeStore-YVBTGA3I.js +0 -1
  681. package/dist/stage-bundles/react/chunks/removeToken-AIDV7DUM.js +0 -1
  682. package/dist/stage-bundles/react/chunks/removeValue-UP5ZFN3U.js +0 -1
  683. package/dist/stage-bundles/react/chunks/setDestination-NCPAVIIK.js +0 -1
  684. package/dist/stage-bundles/react/chunks/setHomePage-O2JYOG6H.js +0 -1
  685. package/dist/stage-bundles/react/chunks/setHtmlId-2W7YW47O.js +0 -1
  686. package/dist/stage-bundles/react/chunks/setName-NKRZPBGG.js +0 -1
  687. package/dist/stage-bundles/react/chunks/setNodeLayout-KQVZJBYW.js +0 -1
  688. package/dist/stage-bundles/react/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
  689. package/dist/stage-bundles/react/chunks/setRender-7XMGQ7ZK.js +0 -1
  690. package/dist/stage-bundles/react/chunks/setRepeat-WN4WZJUN.js +0 -1
  691. package/dist/stage-bundles/react/chunks/setTagName-U6UJNJLE.js +0 -1
  692. package/dist/stage-bundles/react/chunks/updateAction-3KSR6ZIJ.js +0 -1
  693. package/dist/stage-bundles/react/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
  694. package/dist/stage-bundles/react/chunks/updateAttribute-XXZL2P43.js +0 -1
  695. package/dist/stage-bundles/react/chunks/updateBounds-5M7YQRO3.js +0 -1
  696. package/dist/stage-bundles/react/chunks/updateComputed-7QA6XZIC.js +0 -1
  697. package/dist/stage-bundles/react/chunks/updateEvent-R52PL2G4.js +0 -1
  698. package/dist/stage-bundles/react/chunks/updateHtml-YBJJSWQW.js +0 -1
  699. package/dist/stage-bundles/react/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
  700. package/dist/stage-bundles/react/chunks/updateOption-5U23ZUWV.js +0 -1
  701. package/dist/stage-bundles/react/chunks/updateRoute-TFQFFFSZ.js +0 -1
  702. package/dist/stage-bundles/react/chunks/updateState-JCUSBQOL.js +0 -1
  703. package/dist/stage-bundles/react/chunks/updateStyle-JASLFXVX.js +0 -1
  704. package/dist/stage-bundles/react/chunks/updateToken-24P2P2SF.js +0 -1
  705. package/dist/stage-bundles/react/chunks/updateValue-TSVJM3PO.js +0 -1
  706. package/dist/stage-bundles/react/chunks/user-H5DKMGWA.js +0 -1
  707. package/dist/stage-bundles/react/chunks/validateStorePayload-HCBPC7HR.js +0 -3
  708. package/dist/stage-bundles/react/chunks/viewport-ZRWTVYC3.js +0 -1
  709. package/dist/stage-bundles/react/chunks/window-IMPT5I3D.js +0 -1
  710. package/dist/stage-bundles/vue/chunks/addAction-EGLGEGTS.js +0 -1
  711. package/dist/stage-bundles/vue/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
  712. package/dist/stage-bundles/vue/chunks/addAttribute-2MZ3OFUE.js +0 -1
  713. package/dist/stage-bundles/vue/chunks/addComponent-NG2BML2S.js +0 -1
  714. package/dist/stage-bundles/vue/chunks/addComputed-7JLBFD6I.js +0 -1
  715. package/dist/stage-bundles/vue/chunks/addEvent-HOBNKM2F.js +0 -1
  716. package/dist/stage-bundles/vue/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
  717. package/dist/stage-bundles/vue/chunks/addNode-UNXHE5VL.js +0 -1
  718. package/dist/stage-bundles/vue/chunks/addOption-PVXGN7AJ.js +0 -1
  719. package/dist/stage-bundles/vue/chunks/addParamToRoute-VL2VOFZS.js +0 -1
  720. package/dist/stage-bundles/vue/chunks/addState-U2NWEGWV.js +0 -1
  721. package/dist/stage-bundles/vue/chunks/addStore-AQMFKH33.js +0 -1
  722. package/dist/stage-bundles/vue/chunks/addToken-XF2FFA52.js +0 -1
  723. package/dist/stage-bundles/vue/chunks/addTree-MFMYQTGN.js +0 -1
  724. package/dist/stage-bundles/vue/chunks/addValue-O7YXXMST.js +0 -1
  725. package/dist/stage-bundles/vue/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
  726. package/dist/stage-bundles/vue/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
  727. package/dist/stage-bundles/vue/chunks/aiRelay-C6ZJ3PUF.js +0 -1
  728. package/dist/stage-bundles/vue/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
  729. package/dist/stage-bundles/vue/chunks/assets-6LM3GVQU.js +0 -1
  730. package/dist/stage-bundles/vue/chunks/capture-XURVK5HZ.js +0 -1
  731. package/dist/stage-bundles/vue/chunks/chunk-2Z2RXHNK.js +0 -1
  732. package/dist/stage-bundles/vue/chunks/chunk-4M7L75C7.js +0 -1
  733. package/dist/stage-bundles/vue/chunks/chunk-4Q5R44ZZ.js +0 -1
  734. package/dist/stage-bundles/vue/chunks/chunk-5CWWFBNY.js +0 -1
  735. package/dist/stage-bundles/vue/chunks/chunk-5GKIM3R4.js +0 -1
  736. package/dist/stage-bundles/vue/chunks/chunk-6KW4HPGN.js +0 -1
  737. package/dist/stage-bundles/vue/chunks/chunk-6S7QQT47.js +0 -1
  738. package/dist/stage-bundles/vue/chunks/chunk-7UENQJSC.js +0 -5
  739. package/dist/stage-bundles/vue/chunks/chunk-7VDUBBVE.js +0 -1
  740. package/dist/stage-bundles/vue/chunks/chunk-7YVQSQRP.js +0 -1
  741. package/dist/stage-bundles/vue/chunks/chunk-A25WFH3U.js +0 -1
  742. package/dist/stage-bundles/vue/chunks/chunk-A52FDU5E.js +0 -1
  743. package/dist/stage-bundles/vue/chunks/chunk-AMPHYXGT.js +0 -1
  744. package/dist/stage-bundles/vue/chunks/chunk-AS76ZLXK.js +0 -1
  745. package/dist/stage-bundles/vue/chunks/chunk-AYZAGKHN.js +0 -1
  746. package/dist/stage-bundles/vue/chunks/chunk-BJPSGTXJ.js +0 -1
  747. package/dist/stage-bundles/vue/chunks/chunk-BL6GQ6ID.js +0 -1
  748. package/dist/stage-bundles/vue/chunks/chunk-BWJHUHDJ.js +0 -1
  749. package/dist/stage-bundles/vue/chunks/chunk-CAAW6MG4.js +0 -1
  750. package/dist/stage-bundles/vue/chunks/chunk-CC3CCH2E.js +0 -1
  751. package/dist/stage-bundles/vue/chunks/chunk-CGCD6S33.js +0 -6
  752. package/dist/stage-bundles/vue/chunks/chunk-CNZYL2VV.js +0 -1
  753. package/dist/stage-bundles/vue/chunks/chunk-CXJ5APZF.js +0 -1
  754. package/dist/stage-bundles/vue/chunks/chunk-CYURWEXX.js +0 -1
  755. package/dist/stage-bundles/vue/chunks/chunk-DHPGPV5T.js +0 -1
  756. package/dist/stage-bundles/vue/chunks/chunk-DLHF7QB4.js +0 -1
  757. package/dist/stage-bundles/vue/chunks/chunk-E6KR5RXO.js +0 -1
  758. package/dist/stage-bundles/vue/chunks/chunk-EPVRMHC2.js +0 -1
  759. package/dist/stage-bundles/vue/chunks/chunk-EWEPEODY.js +0 -1
  760. package/dist/stage-bundles/vue/chunks/chunk-EXXAK3BP.js +0 -1
  761. package/dist/stage-bundles/vue/chunks/chunk-F5MJNV7Y.js +0 -3
  762. package/dist/stage-bundles/vue/chunks/chunk-F7DSZRND.js +0 -1
  763. package/dist/stage-bundles/vue/chunks/chunk-FAYUYASQ.js +0 -1
  764. package/dist/stage-bundles/vue/chunks/chunk-GEOQWCYL.js +0 -1
  765. package/dist/stage-bundles/vue/chunks/chunk-GK5XUHQG.js +0 -1
  766. package/dist/stage-bundles/vue/chunks/chunk-GM4D3DPT.js +0 -1
  767. package/dist/stage-bundles/vue/chunks/chunk-GUI7FIZD.js +0 -1
  768. package/dist/stage-bundles/vue/chunks/chunk-GW7KMMRR.js +0 -1
  769. package/dist/stage-bundles/vue/chunks/chunk-HAN4CMBX.js +0 -1
  770. package/dist/stage-bundles/vue/chunks/chunk-HCRWHPFW.js +0 -1
  771. package/dist/stage-bundles/vue/chunks/chunk-HE7IQLGK.js +0 -1
  772. package/dist/stage-bundles/vue/chunks/chunk-HYSOOJLT.js +0 -1
  773. package/dist/stage-bundles/vue/chunks/chunk-I57W7UZN.js +0 -1
  774. package/dist/stage-bundles/vue/chunks/chunk-IBDKDP7T.js +0 -1
  775. package/dist/stage-bundles/vue/chunks/chunk-ICWQHFOI.js +0 -1
  776. package/dist/stage-bundles/vue/chunks/chunk-IG2Y3H6O.js +0 -1
  777. package/dist/stage-bundles/vue/chunks/chunk-IKKRB6BS.js +0 -1
  778. package/dist/stage-bundles/vue/chunks/chunk-IV6PINVX.js +0 -1
  779. package/dist/stage-bundles/vue/chunks/chunk-IW4KEJOF.js +0 -1
  780. package/dist/stage-bundles/vue/chunks/chunk-IWTWZA3T.js +0 -1
  781. package/dist/stage-bundles/vue/chunks/chunk-J5QMLA3Z.js +0 -1
  782. package/dist/stage-bundles/vue/chunks/chunk-K5BNCYT7.js +0 -1
  783. package/dist/stage-bundles/vue/chunks/chunk-K5IR3PSI.js +0 -1
  784. package/dist/stage-bundles/vue/chunks/chunk-KTWXYDG7.js +0 -1
  785. package/dist/stage-bundles/vue/chunks/chunk-LHK7LQPZ.js +0 -1
  786. package/dist/stage-bundles/vue/chunks/chunk-LUY5LC7Z.js +0 -1
  787. package/dist/stage-bundles/vue/chunks/chunk-LXD22ETU.js +0 -1
  788. package/dist/stage-bundles/vue/chunks/chunk-MGH62JQ4.js +0 -1
  789. package/dist/stage-bundles/vue/chunks/chunk-MUZZUB5Y.js +0 -1
  790. package/dist/stage-bundles/vue/chunks/chunk-N6I4COF2.js +0 -1
  791. package/dist/stage-bundles/vue/chunks/chunk-NFKUJQZH.js +0 -1
  792. package/dist/stage-bundles/vue/chunks/chunk-NHY2XYCH.js +0 -1
  793. package/dist/stage-bundles/vue/chunks/chunk-NKDO4J6J.js +0 -1
  794. package/dist/stage-bundles/vue/chunks/chunk-NOTXZB5N.js +0 -1
  795. package/dist/stage-bundles/vue/chunks/chunk-NXBFOI3Z.js +0 -1
  796. package/dist/stage-bundles/vue/chunks/chunk-OQM5TMCK.js +0 -1
  797. package/dist/stage-bundles/vue/chunks/chunk-PPDOTRNT.js +0 -1
  798. package/dist/stage-bundles/vue/chunks/chunk-PU62K33G.js +0 -1
  799. package/dist/stage-bundles/vue/chunks/chunk-Q3IER3MW.js +0 -1
  800. package/dist/stage-bundles/vue/chunks/chunk-Q3ZV7EKU.js +0 -1
  801. package/dist/stage-bundles/vue/chunks/chunk-QD56IMFS.js +0 -1
  802. package/dist/stage-bundles/vue/chunks/chunk-QFFVADTJ.js +0 -1
  803. package/dist/stage-bundles/vue/chunks/chunk-QFJRB6B2.js +0 -103
  804. package/dist/stage-bundles/vue/chunks/chunk-QJ33JO3T.js +0 -1
  805. package/dist/stage-bundles/vue/chunks/chunk-QVVBKZW6.js +0 -1
  806. package/dist/stage-bundles/vue/chunks/chunk-RFFN4NF4.js +0 -1
  807. package/dist/stage-bundles/vue/chunks/chunk-SCJKRPIZ.js +0 -1
  808. package/dist/stage-bundles/vue/chunks/chunk-TPCJQIUG.js +0 -1
  809. package/dist/stage-bundles/vue/chunks/chunk-TX5TCU2H.js +0 -1
  810. package/dist/stage-bundles/vue/chunks/chunk-UCLSDDOL.js +0 -1
  811. package/dist/stage-bundles/vue/chunks/chunk-ULVFWUAU.js +0 -1
  812. package/dist/stage-bundles/vue/chunks/chunk-USKXWFBI.js +0 -1
  813. package/dist/stage-bundles/vue/chunks/chunk-XE3A5HPY.js +0 -1
  814. package/dist/stage-bundles/vue/chunks/chunk-XFHQ45KR.js +0 -1
  815. package/dist/stage-bundles/vue/chunks/chunk-XTAXESM6.js +0 -1
  816. package/dist/stage-bundles/vue/chunks/chunk-YB7FA4Y3.js +0 -1
  817. package/dist/stage-bundles/vue/chunks/chunk-YCGY2NRE.js +0 -1
  818. package/dist/stage-bundles/vue/chunks/chunk-YCMBBPKT.js +0 -1
  819. package/dist/stage-bundles/vue/chunks/chunk-Z3M6DQKZ.js +0 -1
  820. package/dist/stage-bundles/vue/chunks/chunk-ZUPNPSUB.js +0 -1
  821. package/dist/stage-bundles/vue/chunks/clearDestination-IGKNL7FN.js +0 -1
  822. package/dist/stage-bundles/vue/chunks/clearName-HJ7ZTHBU.js +0 -1
  823. package/dist/stage-bundles/vue/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
  824. package/dist/stage-bundles/vue/chunks/clearRender-NPVDTNFA.js +0 -1
  825. package/dist/stage-bundles/vue/chunks/clearRepeat-7YFYZODP.js +0 -1
  826. package/dist/stage-bundles/vue/chunks/contentEditor-7BYCT3TH.js +0 -1
  827. package/dist/stage-bundles/vue/chunks/createAction-73YUTK3T.js +0 -1
  828. package/dist/stage-bundles/vue/chunks/createAnimation-2WQSMYT5.js +0 -1
  829. package/dist/stage-bundles/vue/chunks/createComputed-DMX7CJA3.js +0 -1
  830. package/dist/stage-bundles/vue/chunks/createTextContent-4Z4YATBO.js +0 -1
  831. package/dist/stage-bundles/vue/chunks/createValue-DXQSLOBG.js +0 -1
  832. package/dist/stage-bundles/vue/chunks/design-4GTDZLD2.js +0 -15
  833. package/dist/stage-bundles/vue/chunks/disconnectNode-2CLWVIQP.js +0 -1
  834. package/dist/stage-bundles/vue/chunks/history-CMF3VYTT.js +0 -1
  835. package/dist/stage-bundles/vue/chunks/id-ZIAZZ5AS.js +0 -1
  836. package/dist/stage-bundles/vue/chunks/main-4HW35P75.js +0 -1
  837. package/dist/stage-bundles/vue/chunks/main-BVDJS6IT.js +0 -1
  838. package/dist/stage-bundles/vue/chunks/main-DH4JOS22.js +0 -1
  839. package/dist/stage-bundles/vue/chunks/main-PALLSI3C.js +0 -1
  840. package/dist/stage-bundles/vue/chunks/moveNodeToLastChildOf-BLKABBSO.js +0 -1
  841. package/dist/stage-bundles/vue/chunks/nodeGraph-UNI2HUNX.js +0 -1
  842. package/dist/stage-bundles/vue/chunks/normalizeEventName-SNBYJDUY.js +0 -1
  843. package/dist/stage-bundles/vue/chunks/preview-QUDMZGVG.js +0 -1
  844. package/dist/stage-bundles/vue/chunks/removeAction-T4M5EJN7.js +0 -1
  845. package/dist/stage-bundles/vue/chunks/removeAnimationBinding-AIISPC33.js +0 -1
  846. package/dist/stage-bundles/vue/chunks/removeAttribute-DCKZLM55.js +0 -1
  847. package/dist/stage-bundles/vue/chunks/removeComputed-WSA5GNVZ.js +0 -1
  848. package/dist/stage-bundles/vue/chunks/removeEvent-2YZ55HD6.js +0 -1
  849. package/dist/stage-bundles/vue/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
  850. package/dist/stage-bundles/vue/chunks/removeNode-5HXQ63V3.js +0 -1
  851. package/dist/stage-bundles/vue/chunks/removeOption-SYIFB4XW.js +0 -1
  852. package/dist/stage-bundles/vue/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
  853. package/dist/stage-bundles/vue/chunks/removeState-SGJVQ66N.js +0 -1
  854. package/dist/stage-bundles/vue/chunks/removeStore-YVBTGA3I.js +0 -1
  855. package/dist/stage-bundles/vue/chunks/removeToken-AIDV7DUM.js +0 -1
  856. package/dist/stage-bundles/vue/chunks/removeValue-UP5ZFN3U.js +0 -1
  857. package/dist/stage-bundles/vue/chunks/setDestination-NCPAVIIK.js +0 -1
  858. package/dist/stage-bundles/vue/chunks/setHomePage-O2JYOG6H.js +0 -1
  859. package/dist/stage-bundles/vue/chunks/setHtmlId-2W7YW47O.js +0 -1
  860. package/dist/stage-bundles/vue/chunks/setName-NKRZPBGG.js +0 -1
  861. package/dist/stage-bundles/vue/chunks/setNodeLayout-KQVZJBYW.js +0 -1
  862. package/dist/stage-bundles/vue/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
  863. package/dist/stage-bundles/vue/chunks/setRender-7XMGQ7ZK.js +0 -1
  864. package/dist/stage-bundles/vue/chunks/setRepeat-WN4WZJUN.js +0 -1
  865. package/dist/stage-bundles/vue/chunks/setTagName-U6UJNJLE.js +0 -1
  866. package/dist/stage-bundles/vue/chunks/updateAction-3KSR6ZIJ.js +0 -1
  867. package/dist/stage-bundles/vue/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
  868. package/dist/stage-bundles/vue/chunks/updateAttribute-XXZL2P43.js +0 -1
  869. package/dist/stage-bundles/vue/chunks/updateBounds-5M7YQRO3.js +0 -1
  870. package/dist/stage-bundles/vue/chunks/updateComputed-7QA6XZIC.js +0 -1
  871. package/dist/stage-bundles/vue/chunks/updateEvent-R52PL2G4.js +0 -1
  872. package/dist/stage-bundles/vue/chunks/updateHtml-YBJJSWQW.js +0 -1
  873. package/dist/stage-bundles/vue/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
  874. package/dist/stage-bundles/vue/chunks/updateOption-5U23ZUWV.js +0 -1
  875. package/dist/stage-bundles/vue/chunks/updateRoute-TFQFFFSZ.js +0 -1
  876. package/dist/stage-bundles/vue/chunks/updateState-JCUSBQOL.js +0 -1
  877. package/dist/stage-bundles/vue/chunks/updateStyle-JASLFXVX.js +0 -1
  878. package/dist/stage-bundles/vue/chunks/updateToken-24P2P2SF.js +0 -1
  879. package/dist/stage-bundles/vue/chunks/updateValue-TSVJM3PO.js +0 -1
  880. package/dist/stage-bundles/vue/chunks/user-H5DKMGWA.js +0 -1
  881. package/dist/stage-bundles/vue/chunks/validateStorePayload-HCBPC7HR.js +0 -3
  882. package/dist/stage-bundles/vue/chunks/viewport-ZRWTVYC3.js +0 -1
  883. package/dist/stage-bundles/vue/chunks/window-IMPT5I3D.js +0 -1
  884. package/dist/stage-src/dev/server.js +0 -166
  885. package/dist/stage-src/preview/bootstrap.js +0 -20
  886. package/dist/stage-src/preview/entry.js +0 -5
@@ -0,0 +1 @@
1
+ import{a,b as E,c as I}from"./chunks/chunk-IIZ233AH.js";import{a as i,b as w,c as J,d as h,f as d,g as l}from"./chunks/chunk-6BTG63JN.js";import{createContext as N,useContext as $,forwardRef as x,createElement as s}from"react";import{createRoot as P,hydrateRoot as b}from"react-dom/client";import{useComputed as M}from"@jucie.io/reactive/react";import{createElement as G}from"react";import{createRoot as X}from"react-dom/client";import{createComputed as te}from"@jucie.io/reactive";function K(e){return{ref:e}}i(K,"hostRootProps");function L(){return{current:null}}i(L,"createRef");function T(e){return M(e)}i(T,"renderComputed");function U(e,r,{hydrate:t=!1}={}){let o=t?null:P(e),n=null,c=i(()=>r(n),"jucie"),u=i(()=>{let f=d(s(c));if(o)return o.render(f);o=b(e,f,{onRecoverableError:R=>console.warn("[jucie] hydration mismatch, re-rendered on the client:",R)})},"paint");return{jucie:c,async mount(f){return await l(),n=f,u(),this},navigate(f){n=f,u()},unmount(){o.unmount()}}}i(U,"createHost");var y=N(null);function O(...e){return r=>{for(let t of e)t&&(typeof t=="function"?t(r):t.current=r)}}i(O,"composeRefs");function j(e,r){let t={...e||{}};if(!r)return t;for(let o in r){let n=t[o],c=r[o];o==="className"?t.className=[n,c].filter(Boolean).join(" "):o==="style"?t.style=n||c?{...c,...n}:void 0:/^on[A-Z]/.test(o)&&typeof n=="function"&&typeof c=="function"?t[o]=(...u)=>{n(...u),c(...u)}:o==="ref"?t.ref=n?O(c,n):c:t[o]=c}return t}i(j,"mergeInjected");var v=x(i(function({as:r="div",children:t,...o},n){let c=$(y),u=n?{...o,ref:n}:o;return c?s(r,j(u,c),t):s(r,u,t)},"JucieRoot"));v.$jucieRoot=!0;var p=new Map,Z=new Proxy({},{get(e,r){if(typeof r=="string"){if(!p.has(r)){let t=x((o,n)=>s(v,{as:r,...o,ref:n}));t.displayName=`Jucie.${r}`,t.$jucieRoot=!0,p.set(r,t)}return p.get(r)}}});function q(e){return e.$jucie=!0,e}i(q,"defineJucieComponent");var S=typeof process<"u"&&!1,m=new WeakSet;function g(e,r){!S||!e||m.has(e)||(m.add(e),console.warn(r))}i(g,"warnOnce");function k(e){return e.displayName||e.name||"Component"}i(k,"componentLabel");function W({Component:e,props:r,dom:t}){return e.$jucie?s(e,r):(g(e,`[jucie] <${k(e)}> does not forward props to its root; styling and canvas selection cannot attach. Use <Jucie.div> as its root element.`),s(e,j(r,t)))}i(W,"SourceInstance");function z(e,r,t){let{dom:o,props:n}=a(r,t),{key:c,...u}=o||{};return s(y.Provider,{value:u,key:c},s(W,{Component:e,props:n,dom:u}))}i(z,"renderSource");export{Z as Jucie,y as JucieInstance,v as JucieRoot,te as createComputed,G as createElement,U as createHost,L as createRef,X as createRoot,q as defineJucieComponent,K as hostRootProps,h as loadProjectMain,j as mergeInjected,E as provideJucie,T as renderComputed,z as renderSource,J as setProjectMain,w as setup,a as splitInstanceOverrides,I as useJucie};
@@ -0,0 +1 @@
1
+ import{a as i}from"./chunks/chunk-7YIGPKNU.js";import"./chunks/chunk-IIZ233AH.js";import{a as o,e as u,g as a}from"./chunks/chunk-6BTG63JN.js";import{shallowRef as m,createSSRApp as p,defineComponent as c}from"vue";import{renderToString as s}from"vue/server-renderer";function h(f,l){let e=m(null),n=c({render:()=>e.value?l(e.value):null}),t=p({render:()=>i(n)});return{jucie:n,async mount(r){return await a(),u(t),e.value=r,this},navigate(r){e.value=r},unmount(){},renderToString(){return s(t)}}}o(h,"createServerHost");export{h as createServerHost};
@@ -0,0 +1 @@
1
+ import{a as g,b as h,c as i,d as j,e as k,f as l,g as m,h as n,i as o,j as p,k as q}from"./chunks/chunk-7YIGPKNU.js";import{a,b as e,c as f}from"./chunks/chunk-IIZ233AH.js";import{b,c,d}from"./chunks/chunk-6BTG63JN.js";export{m as createApp,q as createComputed,g as createElement,j as createHost,h as createRef,p as defineComponent,k as hostRootProps,d as loadProjectMain,e as provideJucie,n as ref,i as renderComputed,l as renderSource,c as setProjectMain,b as setup,o as shallowRef,a as splitInstanceOverrides,f as useJucie};
@@ -0,0 +1,53 @@
1
+ var Na=Object.defineProperty;var Up=(o,s,t)=>s in o?Na(o,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[s]=t;var a=(o,s)=>Na(o,"name",{value:s,configurable:!0});var Rt=(o,s)=>{for(var t in s)Na(o,t,{get:s[t],enumerable:!0})};var w=(o,s,t)=>(Up(o,typeof s!="symbol"?s+"":s,t),t),Ta=(o,s,t)=>{if(!s.has(o))throw TypeError("Cannot "+t)};var c=(o,s,t)=>(Ta(o,s,"read from private field"),t?t.call(o):s.get(o)),d=(o,s,t)=>{if(s.has(o))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(o):s.set(o,t)},y=(o,s,t,e)=>(Ta(o,s,"write to private field"),e?e.call(o,t):s.set(o,t),t);var et=(o,s,t,e)=>({set _(n){y(o,s,n,t)},get _(){return c(o,s,e)}}),h=(o,s,t)=>(Ta(o,s,"access private method"),t);import{jucieConfig as db}from"jucie:config";import{createServerHost as pb}from"jucie:sdk-server";import{Engine as hb}from"@jucie.io/engine";import{Engine as Ry,ServiceProvider as Ny}from"@jucie.io/engine";import{ServiceProvider as Wp}from"@jucie.io/engine";var tn,en,nn,rn,on,ue,sn,vs,Bu,xr,Pa,cn,ms,fe,yr,an,gs,ln,ys,un,xs,Ss,_u,ws,Gu,ks,Hu,$s=class $s extends Wp{constructor(){super(...arguments);d(this,vs);d(this,xr);d(this,cn);d(this,fe);d(this,an);d(this,ln);d(this,un);d(this,Ss);d(this,ws);d(this,ks);d(this,tn,new Set);d(this,en,new Set);d(this,nn,new Set);d(this,rn,new Map);d(this,on,!1);d(this,ue,new Set);d(this,sn,!1)}actions(t,e){return{registerHook:(n,r,i)=>{h(this,xr,Pa).call(this,n,r,i)},registerHooks:(n,r,i)=>{h(this,vs,Bu).call(this,n,r,i)},notifyMount:n=>{e.server||(c(this,tn).add(n),h(this,un,xs).call(this))},notifyUpdate:n=>{e.server||(c(this,en).add(n),h(this,un,xs).call(this))},notifyUnmount:n=>{e.server||(c(this,nn).add(n),h(this,un,xs).call(this))},scheduleTeardown:n=>{e.view==="design"||e.server||(c(this,ue).add(n),h(this,Ss,_u).call(this))},cancelTeardown:n=>{c(this,ue).delete(n)},invokeBeforeMount:(n,r)=>{if(e.view==="design")return;let i=this.inject("registry").getHooks(r?.rid),l=h(this,an,gs).call(this,i,"beforeMount");if(l)return h(this,fe,yr).call(this,l,h(this,cn,ms).call(this,r),void 0,"beforeMount",r?.rid)},invokeBeforeUnmount:(n,r)=>{if(e.view==="design"||!r)return;let i=this.inject("registry").getHooks(r.rid),l=h(this,an,gs).call(this,i,"beforeUnmount");l&&h(this,fe,yr).call(this,l,h(this,cn,ms).call(this,r),r.$el,"beforeUnmount",r.rid)},invokeAppHook:(n,r,i)=>{if(e.view==="design")return;let f=this.inject("registry").getNode("app")?.lifecycle?.find(m=>m.key===n);if(!f)return;let p=this.inject("resolve").dispatch("descriptor",f);if(p)return h(this,fe,yr).call(this,p,r,i,n)},cleanupApp:()=>{}}}};tn=new WeakMap,en=new WeakMap,nn=new WeakMap,rn=new WeakMap,on=new WeakMap,ue=new WeakMap,sn=new WeakMap,vs=new WeakSet,Bu=a(function(t,e,n){if(!e?.length)return null;for(let r of e)h(this,xr,Pa).call(this,t,r,n);return this.inject("registry").getHooks(t)},"#registerHooks"),xr=new WeakSet,Pa=a(function(t,e,n){let r=this.inject("registry"),i=this.inject("resolve").dispatch("descriptor",e);i&&(e.key==="setup"?i(n):r.setHook(t,e.key,i))},"#registerHook"),cn=new WeakSet,ms=a(function(t){return t.ctx??t.actor?.runtime?.context?.ctx??null},"#getContext"),fe=new WeakSet,yr=a(function(t,e,n,r,i){if(typeof t=="function")try{let l=t(e);if(typeof l=="function")return l(e,n)}catch(l){console.error(`Error invoking lifecycle hook "${r}"${i?` on rid "${i}"`:""}`,l)}},"#invokeHook"),an=new WeakSet,gs=a(function(t,e){return t?t[e]??t[e.replace(/^(on|before)/,"").toLowerCase()]??null:null},"#resolveHookKey"),ln=new WeakSet,ys=a(function(t,e){let n=this.inject("registry"),r=n.getPuppet(t);if(!r||r.actor?.app?.config?.view==="design")return;if(e==="onUnmount"){let m=c(this,rn).get(t);if(typeof m=="function"){try{m()}catch(g){console.error("Error in mount cleanup",g)}c(this,rn).delete(t)}}let i=n.getHooks(t),l=h(this,an,gs).call(this,i,e);if(!l)return;let u=h(this,cn,ms).call(this,r),f=e==="onUnmount"?void 0:r.$el,p=h(this,fe,yr).call(this,l,u,f,e,t);e==="onMount"&&typeof p=="function"&&c(this,rn).set(t,p),e==="onUnmount"&&n.deleteHooks(t)},"#resolveAndInvokeHook"),un=new WeakSet,xs=a(function(){c(this,on)||(y(this,on,!0),setTimeout(()=>{h(this,ks,Hu).call(this),y(this,on,!1)},0))},"#scheduleFlush"),Ss=new WeakSet,_u=a(function(){c(this,sn)||(y(this,sn,!0),requestAnimationFrame(()=>{h(this,ws,Gu).call(this),y(this,sn,!1)}))},"#scheduleDestroyFlush"),ws=new WeakSet,Gu=a(function(){let t=this.inject("registry"),e=Array.from(c(this,ue));c(this,ue).clear();for(let n of e){let r=t.getActor(n);r&&r.destroy()}},"#flushDestroys"),ks=new WeakSet,Hu=a(function(){let t=this.inject("relay"),e=Array.from(c(this,tn)),n=Array.from(c(this,en)),r=Array.from(c(this,nn));c(this,tn).clear(),c(this,en).clear(),c(this,nn).clear();let i=new Set(e),l=n.filter(u=>!i.has(u));t.broadcast("scene:change",e,l,r),t.broadcast("scene:unmount",r),t.broadcast("scene:mount",e),t.broadcast("scene:update",l);for(let u of e)h(this,ln,ys).call(this,u,"onMount");for(let u of l)h(this,ln,ys).call(this,u,"onUpdate");for(let u of r)h(this,ln,ys).call(this,u,"onUnmount")},"#flush"),a($s,"Lifecycle"),w($s,"manifest",{name:"Lifecycle",namespace:"lifecycle"});var bs=$s;import Wu from"crypto";var Uu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Kp=128,Lt,fn,qp=a(o=>{if(o<0)throw new RangeError("Wrong ID size");try{!Lt||Lt.length<o?(Lt=Buffer.allocUnsafe(o*Kp),Wu.randomFillSync(Lt),fn=0):fn+o>Lt.length&&(Wu.randomFillSync(Lt),fn=0)}catch(s){throw Lt=void 0,s}fn+=o},"fillPool");var Ku=a((o=21)=>{qp(o|=0);let s="";for(let t=fn-o;t<fn;t++)s+=Uu[Lt[t]&63];return s},"nanoid");import{ServiceProvider as im}from"@jucie.io/engine";import{addEffect as cm,createSignal as am}from"@jucie.io/reactive";import{createElement as zu,createHost as nm,renderSource as rm,hostRootProps as om,provideJucie as sm}from"jucie:sdk";import"@jucie.io/reactive";import{contextKey as Yp}from"@jucie.io/composed-style";import{contextOf as Jp}from"@jucie.io/composed-style";import{baseOf as zp}from"@jucie.io/composed-style";var Vp=new Set(["none","block","flex","grid"]);function hn(o){let s=zp(o?.style),t=s.$layout;if(Vp.has(t))return t;let e=o?.layout;if(e&&e!=="none")return e;let n=s.display;return n==="flex"||n==="grid"?n:"none"}a(hn,"layoutOf");function Nt(o){return o?Jp(o.style,{layout:hn(o)}):{}}a(Nt,"getNodeContext");var yt,it,dn,br,ja,vr,Oa,Ma=class Ma{constructor(s,t,{node:e,styleScope:n,parentId:r=null}={}){d(this,br);d(this,vr);d(this,yt,new Set);d(this,it,new Set);d(this,dn,"");w(this,"context",{});w(this,"cleanupFns",new Set);w(this,"ref",null);w(this,"dependants",new Set);w(this,"app",null);w(this,"runtime",null);w(this,"parentId",null);if(this.app=s,this.runtime=s.runtime,this.id=t,this.node=e,this.parentId=r,this.isInstance=e?.type==="instance",this.children=e?.children?.slice()??[],h(this,br,ja).call(this,e),e?.bounds){let i=s.$el?.ownerDocument??(typeof document<"u"?document:null);this.addStyleScope(s.runtime.styleContext.createScope(this.id,i))}else this.addStyleScope(n??s.styleScope)}static create(s,t,e={}){return new this(s,t,e)}get puppetRids(){return c(this,yt)}get firstPuppetRid(){return c(this,yt).values().next().value??null}get styleScope(){let s=null;for(let t of c(this,it))t.destroyed?c(this,it).delete(t):s=t;return s}addStyleScope(s){if(!s)return;let t=c(this,it).has(s);c(this,it).delete(s),c(this,it).add(s),t||s.register(this)}updateStyles(){for(let s of c(this,it))s.destroyed||s.update(this.id,this.node,this.isInstance,this.parentId)}get puppets(){let s=[];for(let t of c(this,yt))s.push(this.runtime.registry.getPuppet(t));return s}addPuppet(s){c(this,yt).add(s)}removePuppet(s){c(this,yt).delete(s)}render(){throw new Error("render not implemented")}addDependant(s){this.dependants.add(s);let t=a(()=>this.removeDependant(s),"cleanup");return this.addCleanupFn(t),t}removeDependant(s){this.dependants.delete(s)}update(s){this.node=s,this.children=s?.children?.slice()??[];let t=h(this,br,ja).call(this,s);this.runtime.styleContext.batch(()=>{this.updateStyles(),t&&h(this,vr,Oa).call(this,this.id)});for(let e of c(this,yt))this.runtime.registry.getPuppet(e)?.markAsDirty?.()}destroy(){for(let s of c(this,it))s.unregister(this.id);c(this,it).clear(),this.node?.bounds&&this.runtime.styleContext.destroyScope(this.id);for(let s of[...c(this,yt)]){let t=this.runtime.registry.getPuppet(s);t&&t.destroy()}this.children.forEach(s=>{let t=this.runtime.registry.getActor(s);t?.parentId===this.id&&t.destroy()}),this.runtime.registry.deleteActor(this.id),this.cleanupFns.forEach(s=>s()),this.cleanupFns.clear()}addCleanupFn(s){return this.cleanupFns.add(s),this}removeCleanupFn(s){return this.cleanupFns.delete(s),this}};yt=new WeakMap,it=new WeakMap,dn=new WeakMap,br=new WeakSet,ja=a(function(s){let t=c(this,dn);return this.context=Nt(s),y(this,dn,Yp(this.context)),c(this,dn)!==t},"#setContext"),vr=new WeakSet,Oa=a(function(s){let{registry:t,styleContext:e}=this.runtime;for(let n of t.getChildActors(s))n.updateStyles?.(),e.passesThrough(n)&&h(this,vr,Oa).call(this,n.id)},"#restyleChildren"),a(Ma,"Actor");var pn=Ma;var Y,he,X,Sr,Tt,mn,Ia=class Ia{constructor(){d(this,Y,new Map);d(this,he,new Map);d(this,X,new Map);d(this,Sr,new Map);d(this,Tt,new Map);d(this,mn,!0)}getShouldRender(){return c(this,mn)}reconcileShouldRender(s,t){c(this,mn)!==s&&(y(this,mn,s),t?.())}getChild(s){return c(this,Y).get(s)??null}setChild(s,t){c(this,Y).set(s,t)}clearChildren(){let s=[...c(this,Y).values()];return y(this,Y,new Map),s}reconcileChildren(s){let t=new Map,e=new Set(s),n=[];for(let r of s){let i=c(this,Y).get(r);i!==void 0&&t.set(r,i)}for(let r of c(this,Y).keys())e.has(r)||n.push(r);return y(this,Y,t),n}getSlot(s){return c(this,he).get(s)??null}setSlot(s,t){c(this,he).set(s,t)}getSlotRids(){return[...c(this,he).values()]}hasSlots(){return c(this,he).size>0}getSlotChild(s,t){return c(this,X).get(s)?.get(t)??null}setSlotChild(s,t,e){c(this,X).has(s)||c(this,X).set(s,new Map),c(this,X).get(s).set(t,e)}getSlotChildren(s){return[...c(this,X).get(s)?.values()??[]]}clearSlotContent(){let s=[];for(let t of c(this,X).values())s.push(...t.values());return y(this,X,new Map),s}reconcileSlotChildren(s,t){let e=c(this,X).get(s);if(!e)return[];let n=new Set(t),r=[];for(let i of e.keys())n.has(i)||(r.push(i),e.delete(i));return r}setSlotThunk(s,t){c(this,Sr).set(s,t)}getSlotThunks(){return Object.fromEntries(c(this,Sr).entries())}getClone(s){return c(this,Tt).get(s)??null}setClone(s,t){c(this,Tt).set(s,t)}reconcileClones(s){let t=[];for(let[e,n]of c(this,Tt).entries())s.has(e)||(t.push(n),c(this,Tt).delete(e));return t}getChildrenRids(){return[...c(this,Y).values()]}getChildEntries(){return[...c(this,Y).entries()]}getSlotEntries(){return[...c(this,X).entries()]}getCloneEntries(){return[...c(this,Tt).entries()]}tracks(s){for(let t of c(this,Y).values())if(t===s)return!0;for(let t of c(this,X).values())for(let e of t.values())if(e===s)return!0;for(let t of c(this,Tt).values())if(t===s)return!0;return!1}};Y=new WeakMap,he=new WeakMap,X=new WeakMap,Sr=new WeakMap,Tt=new WeakMap,mn=new WeakMap,a(Ia,"Tracker");var Cs=Ia;import{onDirty as Xp,markAsDirty as Zp,isDirty as Qp}from"@jucie.io/reactive";import{createComputed as tm,createRef as qu,renderComputed as em}from"jucie:sdk";var Es,wr,kr,Fa,Da=class Da extends Cs{constructor(t,e,n={}){super();d(this,kr);w(this,"actor",null);w(this,"runtime",null);w(this,"rid",null);w(this,"ref",null);w(this,"mounted",!1);d(this,Es,!0);d(this,wr,null);this.actor=t,this.runtime=t.runtime,this.rid=e??this.runtime.registry.createActorRid(t.id),this.ctx=n.ctx??null,this.instanceRid=n.instanceRid??null,this.cloneOf=n.cloneOf??null,this.rootOf=n.rootOf??null,this.ref=h(this,kr,Fa).call(this)??qu(),this.repeats||t.runtime.lifecycle.registerHooks(this.rid,this.actor.node?.lifecycle,this.ctx),this.view=tm(()=>{let r=this.ctx??this.actor.runtime.context.ctx;try{return this.repeats?this.runtime.resolve.dispatch("nodeRepeat",this,{ctx:r,instanceRid:this.instanceRid}):(this.runtime.lifecycle.registerHooks(this.rid,this.actor.node?.lifecycle,this.ctx),this.runtime.resolve.dispatch("node",this,{ctx:r,instanceRid:this.instanceRid}))}finally{this.markAsClean()}},{detached:!0}),this.render=()=>em(this.view),this.unsubscribe=Xp(this.view,()=>{this.markAsDirty?.()})}static create(t,e,n={}){return new this(t,e,n)}get $el(){return this.actor.node?.type==="root"?typeof document<"u"?document.getElementById(this.actor.id):null:this.ref?.value??this.ref?.current}get repeats(){return!!this.actor?.node?.repeat&&!this.cloneOf&&this.actor.app?.config?.view!=="design"}getSetup(){return c(this,wr)}setSetup(t){y(this,wr,t)}notifyMount(){this.mounted||this.repeats||(this.runtime.lifecycle.notifyMount(this.rid),this.mounted=!0)}update(t={}){let e=t.ctx??this.ctx,n=t.instanceRid??this.instanceRid,r=t.rootOf??null,i=e!==this.ctx||n!==this.instanceRid||r!==this.rootOf;this.ctx=e,this.instanceRid=n,r!==this.rootOf&&(this.rootOf=r,this.ref=h(this,kr,Fa).call(this)??qu()),i&&this.markAsDirty()}markAsDirty(){if(this.hasSlots())for(let t of this.getSlotRids()){let e=this.runtime.registry.getPuppet(t);e&&e.markAsDirty()}if(this.actor.node?.type==="instance")for(let t of this.getChildrenRids()){let e=this.runtime.registry.getPuppet(t);e?.rootOf===this.rid&&e.markAsDirty()}Qp(this.view)||Zp(this.view)}markAsClean(){this.repeats||this.runtime.lifecycle.notifyUpdate(this.rid),y(this,Es,!1)}destroyDescendants(){let t=[];for(let e of[...this.clearChildren(),...this.clearSlotContent()]){let n=this.runtime.registry.getPuppet(e);n&&(t.push(...n.destroyDescendants(),e),n.destroy())}return t}destroy(){for(let[,t]of this.getCloneEntries()){let e=this.runtime.registry.getPuppet(t);e&&e.destroy()}this.repeats||(this.runtime.lifecycle.invokeBeforeUnmount(this.actor,this),this.runtime.lifecycle.notifyUnmount(this.rid)),this.actor.removePuppet(this.rid),this.runtime.registry.deletePuppet(this.rid),this.unsubscribe?.(),this.runtime.context?.releaseContexts(this.rid)}};Es=new WeakMap,wr=new WeakMap,kr=new WeakSet,Fa=a(function(){return this.rootOf?this.runtime.registry.getPuppet(this.rootOf)?.ref??null:null},"#instanceRef"),a(Da,"Puppet");var As=Da;var de,La=class La{constructor(s,t,e){w(this,"config",null);w(this,"runtime",null);w(this,"styleScope",null);w(this,"$el",null);w(this,"host",null);d(this,de,null);this.config=s,this.runtime=t,this.$el=e;let n=e?.ownerDocument??(typeof document<"u"?document:null);this.styleScope=t.styleContext.createScope("app",n),t.registry.setActorClass(pn),t.registry.setPuppetClass(As),t.registry.setCreateElement(zu),t.registry.setRenderSource(rm)}static create(s,t,e){return new this(s,t,e)}async create(s){try{if(!s)throw new Error("App create error: ID not defined");let t=this.runtime.registry;return this.host=(this.config.createHost??nm)(this.$el,e=>{c(this,de)&&c(this,de)!==e&&this.runtime.lifecycle.scheduleTeardown(c(this,de));let n=t.resolveActor(this,e),r=this.runtime.context.ctx,i=n&&t.resolvePuppet(n,e,{ctx:r});return y(this,de,e),zu(i?.render,om(e))},{hydrate:!!this.config.hydrate}),await Promise.resolve(this.host.mount(s)),sm(this.host.jucie),this}catch(t){return console.error("App create error",t),null}}navigate(s){this.host?.navigate(s)}render(){throw new Error("render not implemented")}jucie(){return null}};de=new WeakMap,a(La,"App");var Rs=La;var Ns=a(o=>`${o}:setup`,"setupContextId");var Vu=5e3,Ju=a(()=>new Promise(o=>setTimeout(o,0)),"nextTask");function Yu(o,s){return!o||typeof o.then!="function"?Promise.resolve():new Promise(t=>{let e=setTimeout(t,s);Promise.resolve(o).catch(()=>{}).finally(()=>{clearTimeout(e),t()})})}a(Yu,"settleWithin");var Bt,pe,yn,_t,Er,me,L,Gt,U,Ht,Ut,W,xt,ge,Rr,Ms,xn,bn,vn,Nr,Ba,Tr,_a,Sn,Ts,Is,Xu,Pr,Ga,Fs,Zu,Ds,Qu,jr,Ha,Wt,gn,ye,$r,Or,Ua,Mr,Wa,Ir,Ka,Ls,tf,xe,Cr,be,Ar,wn,Ps,Bs,ef,Fr,qa,Dr,za,Lr,Va,_s,nf,Br,Ja,kn,js,Gs=class Gs extends im{constructor(){super(...arguments);d(this,Nr);d(this,Tr);d(this,Sn);d(this,Is);d(this,Pr);d(this,Fs);d(this,Ds);d(this,jr);d(this,Wt);d(this,ye);d(this,Or);d(this,Mr);d(this,Ir);d(this,Ls);d(this,xe);d(this,be);d(this,wn);d(this,Bs);d(this,Fr);d(this,Dr);d(this,Lr);d(this,_s);d(this,Br);d(this,kn);d(this,Bt,null);d(this,pe,null);d(this,yn,null);d(this,_t,new Map);d(this,Er,new Map);d(this,me,new Map);d(this,L,new Map);d(this,Gt,new Map);d(this,U,new Map);d(this,Ht,new Map);d(this,Ut,new Map);d(this,W,new Map);d(this,xt,new Map);d(this,ge,new Map);d(this,Rr,new Map);d(this,Ms,0);d(this,xn,[]);d(this,bn,null);d(this,vn,am(0))}actions(t,e){return{registerLibrary:(n,{source:r=null,manifest:i=null}={})=>{let l=h(this,Sn,Ts).call(this,n);return r!==null&&(l.source=r),i!==null&&(l.manifest=i),l},getLibrary:n=>c(this,W).get(n)??null,hasLibrary:n=>c(this,W).has(n),getLibraries:()=>Array.from(c(this,W).keys()),loadSources:n=>h(this,Ds,Qu).call(this,n),loadPrototypes:n=>{for(let[r,i]of Object.entries(n??{}))c(this,ge).set(r,i)},registerComponent:(n,r,i,l)=>{let u=h(this,ye,$r).call(this,n,r)!=null,f=h(this,Wt,gn).call(this,n,r,i,l);if(u)for(let p of c(this,L).values())p.node?.component===r&&p.update(p.node);return f},registerComponents:(n,r)=>{if(!r)return;let i=r instanceof Map?r.entries():Object.entries(r);for(let[l,u]of i)u&&typeof u=="object"&&"component"in u?h(this,Wt,gn).call(this,n,l,u.component,u.meta??{}):h(this,Wt,gn).call(this,n,l,u)},unregisterComponent:(n,r)=>{let i=c(this,W).get(n);i&&(i.components.delete(r),i.meta?.delete(r),c(this,vn).update(l=>l+1))},getComponentEntry:(n,r)=>h(this,ye,$r).call(this,n,r),getComponent:(n,r)=>h(this,ye,$r).call(this,n,r)?.component??null,getComponentMeta:(n,r)=>h(this,Or,Ua).call(this,n,r),describeComponent:(n,r)=>h(this,Ls,tf).call(this,n,r),definitionIdOf:(n,r)=>h(this,Ir,Ka).call(this,n,r),hasComponent:(n,r)=>c(this,W).get(n)?.components.has(r)??!1,getComponentsByLibrary:n=>{let r=c(this,W).get(n);return r?Array.from(r.components.values()):[]},getAllComponents:()=>{c(this,vn).call(this);let n=[];for(let[r,i]of c(this,W)){let l=new Set([...i.meta?.keys()??[],...i.components?.keys()??[]]);for(let u of l){let f=i.components.get(u),p=i.meta?.get(u)??f?.meta??null;p&&n.push({library:r,name:u,component:f?.component??null,meta:p})}}return n},hasNode:n=>h(this,_s,nf).call(this,n),getNode:n=>h(this,Br,Ja).call(this,n),getNodeType:n=>this.inject("resolve").dispatch("computedNode",n)()?.type??null,getNodeChildren:n=>this.inject("resolve").dispatch("computedNode",n)()?.children??null,addActor:n=>{c(this,L).set(n.id,n),h(this,be,Ar).call(this,n.id,n.parentId)},getChildActors:n=>h(this,Bs,ef).call(this,n),getActor:n=>h(this,xe,Cr).call(this,n),hasActor:n=>h(this,Fr,qa).call(this,n),deleteActor:n=>{h(this,wn,Ps).call(this,n),c(this,L).delete(n)},getActors:(n=[])=>!n||n.length===0?Array.from(c(this,L).values()):n.map(r=>c(this,L).get(r)),resolveActorRid:n=>{if(h(this,Fr,qa).call(this,n)){let i=h(this,xe,Cr).call(this,n).firstPuppetRid;if(i!=null)return i}return h(this,Tr,_a).call(this,n)},createActorRid:n=>h(this,Tr,_a).call(this,n),getActorId:n=>c(this,_t).get(n),getActorByRid:n=>{let r=c(this,_t).get(n);return r?c(this,L).get(r):null},syncActorChildren:(n,r=[])=>{if(!n||n.length===0)return r.slice();let i=new Set(r),l=n.filter(u=>!i.has(u));for(let u of l){let f=h(this,xe,Cr).call(this,u);f&&f.destroy()}return r.slice()},resolveActor:(n,r,{styleScope:i,parentId:l}={})=>h(this,Dr,za).call(this,n,r,{styleScope:i,parentId:l}),addPuppet:n=>{c(this,U).set(n.rid,n)},getPuppet:n=>c(this,U).get(n),hasPuppet:n=>c(this,U).has(n),deletePuppet:n=>{c(this,U).delete(n)},getPuppets:(n=[])=>!n||n.length===0?Array.from(c(this,U).values()):n.map(r=>c(this,U).get(r)),setContext:(n,r)=>{c(this,Ht).set(n,r);let i=c(this,Ut).get(r.owner);i||c(this,Ut).set(r.owner,i=new Set),i.add(n)},getContext:n=>c(this,Ht).get(n)??null,deleteContext:n=>{let r=c(this,Ht).get(n);if(!r)return;c(this,Ht).delete(n);let i=c(this,Ut).get(r.owner);i?.delete(n),i&&!i.size&&c(this,Ut).delete(r.owner)},getContexts:()=>[...c(this,Ht).entries()],getContextIds:n=>[...c(this,Ut).get(n)??[]],resolvePuppet:(n,r,{ctx:i,instanceRid:l,cloneOf:u,rootOf:f})=>h(this,Lr,Va).call(this,n,r,{ctx:i,instanceRid:l,cloneOf:u,rootOf:f}),resolveSlotPuppet:(n,r)=>this.resolveSlotPuppet(n,r),getSlotChildren:(n,r)=>this.getSlotChildren(n,r),setSetup:(n,r)=>h(this,jr,Ha).call(this,n,r),getSetup:n=>c(this,Rr).get(n)??null,createApp:async(n,r,i={})=>{let l=t(),u=e.server??null,f=i.$el??(typeof document<"u"?document.getElementById(n):null),p={...e,mode:"app",...i};this.inject("modules").initialize(p.view==="design"||p.view==="preview"||p.view==="screen-capture");let m=Rs.create(p,l,f),g=h(this,Br,Ja).call(this,"app"),v=l.context.ctx;if(l.lifecycle.registerHooks("app",g?.lifecycle,v),p.isolated)l.router.setMemoryMode(!0),await l.router.navigate("/",{replace:!0});else if(p.view!=="design"){let S=l.router;S.setCallback(E=>m.navigate(E));let k=!r&&S.getCurrentUrl();k?(await S.navigate(k,{replace:!0}),r=S.getCurrentRoute()?.pageId||p.nodeId):(r=r||p.nodeId,await S.navigate(r,{replace:!0}))}let b=l.lifecycle.invokeAppHook("beforeReady",v,m);u&&await Yu(b,u.timeout??Vu);let x=p.hydrate;return x&&(await Yu(b,Vu),await Ju(),await Ju(),l.context.restore(x.state)),await Promise.resolve(m.create(r)),u||(l.lifecycle.invokeAppHook("onReady",v,m),p.view!=="design"&&!p.isolated&&h(this,Is,Xu).call(this,g?.events,v)),c(this,me).set(n,m),m},getApp:n=>c(this,me).get(n),deleteApp:n=>{let r=c(this,me).get(n);return r&&(this.inject("lifecycle").cleanupApp(),r.destroy(),c(this,me).delete(n),this.inject("resolve").reset("descriptor","compiledBinding"),h(this,Pr,Ga).call(this)),r},registerPrototype:(n,r)=>{c(this,ge).set(n,r)},getPrototype:n=>c(this,ge).get(n)??null,hasPrototype:n=>c(this,ge).has(n),createId:()=>h(this,Nr,Ba).call(this),getRids:()=>Array.from(c(this,_t).keys()),setActorClass:n=>{y(this,Bt,n)},getActorClass:()=>c(this,Bt),setPuppetClass:n=>{y(this,pe,n)},getPuppetClass:()=>c(this,pe),setCreateElement:n=>{y(this,yn,n)},getCreateElement:()=>c(this,yn),createElement:(...n)=>c(this,yn).call(this,...n),setRenderSource:n=>{y(this,bn,n)},getRenderSource:()=>c(this,bn),renderSource:(...n)=>c(this,bn).call(this,...n),setHook:(n,r,i)=>{let l=c(this,xt).get(n)??{};l[r]=i,c(this,xt).set(n,l)},getHook:(n,r)=>c(this,xt).get(n)?.[r]??null,hasHook:(n,r)=>c(this,xt).get(n)?.[r],deleteHook:(n,r)=>{let i=c(this,xt).get(n);i&&delete i[r]},getHooks:n=>c(this,xt).get(n),deleteHooks:n=>{c(this,xt).delete(n)}}}setSlot(t,e){c(this,Er).set(t,e)}getSlot(t){return c(this,Er).get(t)}resolveSlotPuppet(t,e){let n=c(this,U).get(t);if(!n)return null;try{let r=n.ctx||{},i=n.actor.app,l=n.actor.styleScope,u=n.actor.id,f=h(this,Dr,za).call(this,i,e,{styleScope:l,parentId:u});if(!f)return null;let p=n.getSlot(e),m=h(this,Lr,Va).call(this,f,p,{ctx:r,parentId:u,instanceRid:t});return m?(n.setSlot(e,m.rid),m):null}catch(r){return console.warn("Error resolving slot",e,r),null}}getSlotChildren(t,e){let n=c(this,U).get(t);if(!n)return null;let r=n.actor.node.slots?.find(i=>i.id===e);return r?r.children:null}};Bt=new WeakMap,pe=new WeakMap,yn=new WeakMap,_t=new WeakMap,Er=new WeakMap,me=new WeakMap,L=new WeakMap,Gt=new WeakMap,U=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,W=new WeakMap,xt=new WeakMap,ge=new WeakMap,Rr=new WeakMap,Ms=new WeakMap,xn=new WeakMap,bn=new WeakMap,vn=new WeakMap,Nr=new WeakSet,Ba=a(function(){let t="a",n,r=0,i=100;do if(n=`${t}${Ku(10)}`,r++,r>i)throw new Error(`Failed to generate unique ID after ${i} attempts`);while(c(this,_t).has(n));return n},"#createId"),Tr=new WeakSet,_a=a(function(t){let e=h(this,Nr,Ba).call(this);return c(this,_t).set(e,t),e},"#createActorRid"),Sn=new WeakSet,Ts=a(function(t){c(this,W).has(t)||c(this,W).set(t,{source:null,manifest:null,meta:new Map,components:new Map});let e=c(this,W).get(t);return e.meta||(e.meta=new Map),e.components||(e.components=new Map),e},"#ensureLibrary"),Is=new WeakSet,Xu=a(function(t,e){if(h(this,Pr,Ga).call(this),!!t?.length)for(let n of t){let r=this.inject("resolve").dispatch("descriptor",n)?.(e);if(typeof r!="function")continue;let i=n.name.replace(/^on/,"").toLowerCase(),l=a(u=>{try{r(u)}catch(f){console.error("Global event error",n.name,f)}},"handler");window.addEventListener(i,l),c(this,xn).push(()=>window.removeEventListener(i,l))}},"#bindGlobalEvents"),Pr=new WeakSet,Ga=a(function(){for(let t of c(this,xn))t();y(this,xn,[])},"#cleanupGlobalEvents"),Fs=new WeakSet,Zu=a(function(t,e,n={}){let{displayName:r=e,description:i="",category:l="components",keywords:u=[e,t],props:f=[],slots:p=[],tagName:m=e,...g}=n;return{...g,displayName:r,description:i,category:l,keywords:u,props:f,slots:p,tagName:m,library:t}},"#normalizeMeta"),Ds=new WeakSet,Qu=a(function(t={}){for(let[e,n]of Object.entries(t??{})){let r=h(this,Sn,Ts).call(this,e);n!=null&&(r.source=n),n?.manifest!==void 0&&(r.manifest=n.manifest??null);let i=n?.components??{};for(let[l,u]of Object.entries(i)){let f=n?.manifest?.[l];if(u?.__jux===!0){h(this,jr,Ha).call(this,l,u),h(this,Wt,gn).call(this,e,l,null,{displayName:f?.displayName??l,description:f?.description??"",category:f?.category??"components",keywords:f?.keywords??[l,"jux","component"],props:f?.props??[],slots:f?.slots??[],tagName:l,origin:"jux"});continue}h(this,Wt,gn).call(this,e,l,u,{displayName:f?.displayName??l,description:f?.description??"",category:f?.category??"components",keywords:f?.keywords??[l,e],props:f?.props??[],slots:f?.slots??[],tagName:l,origin:"source"})}}},"#loadSources"),jr=new WeakSet,Ha=a(function(t,e){c(this,Rr).set(t,{fn:e,version:++et(this,Ms)._});for(let n of c(this,L).values()){let r=n.node?.component;if(!(!r||r!==t&&r!==e.template)){for(let i of n.puppetRids)c(this,U).get(i)?.destroyDescendants(),this.inject("context").releaseContext(Ns(i));n.update(n.node)}}},"#setSetup"),Wt=new WeakSet,gn=a(function(t,e,n,r={}){let i=h(this,Sn,Ts).call(this,t),l=h(this,Fs,Zu).call(this,t,e,r);i.meta.set(e,l);let u={library:t,name:e,component:n,meta:l};return i.components.set(e,u),c(this,vn).update(f=>f+1),u},"#registerComponent"),ye=new WeakSet,$r=a(function(t,e){return c(this,W).get(t)?.components.get(e)??null},"#getComponentEntry"),Or=new WeakSet,Ua=a(function(t,e){let n=c(this,W).get(t);return n?n.meta?.get(e)??h(this,ye,$r).call(this,t,e)?.meta??null:null},"#getComponentMeta"),Mr=new WeakSet,Wa=a(function(t){let e=a(n=>n.map(r=>typeof r=="string"?r:r?.name).filter(Boolean),"namesOf");return{...t,propNames:e(t.props),eventNames:e(t.emits)}},"#withDeclaredNames"),Ir=new WeakSet,Ka=a(function(t,e){return e?!t||t==="local"?e:h(this,kn,js).call(this,[".libraries",t,"components",e,"definitionId"])??null:null},"#definitionIdOf"),Ls=new WeakSet,tf=a(function(t,e){if(!e)return null;let n=h(this,Or,Ua).call(this,t||"local",e);if(n&&n.origin!=="local"&&n.origin!=="jucie-library")return h(this,Mr,Wa).call(this,{displayName:n.displayName??e,props:n.props??[],emits:n.emits??[],slots:n.slots??[],origin:n.origin??null,library:n.library??t??null,tagName:n.tagName??e});let r=h(this,Ir,Ka).call(this,t,e);if(!r)return null;let i=h(this,xe,Cr).call(this,r)?.node??this.inject("resolve").dispatch("computedNode",r)();if(i?.type==="component"){let l=!!t&&t!=="local";return h(this,Mr,Wa).call(this,{displayName:i.name||e,props:Array.isArray(i.props)?i.props:[],emits:Array.isArray(i.emits)?i.emits:[],slots:[],origin:l?"jucie-library":"scene",library:l?t:null,tagName:e})}return null},"#describeComponent"),xe=new WeakSet,Cr=a(function(t){return c(this,L).get(t)},"#getActor"),be=new WeakSet,Ar=a(function(t,e){h(this,wn,Ps).call(this,t),e!=null&&(c(this,Gt).has(e)||c(this,Gt).set(e,new Set),c(this,Gt).get(e).add(t))},"#indexChild"),wn=new WeakSet,Ps=a(function(t){let e=c(this,L).get(t)?.parentId;e!=null&&c(this,Gt).get(e)?.delete(t)},"#unindexChild"),Bs=new WeakSet,ef=a(function(t){let e=[];for(let n of c(this,Gt).get(t)??[]){let r=c(this,L).get(n);r?.parentId===t&&e.push(r)}return e},"#childActors"),Fr=new WeakSet,qa=a(function(t){return c(this,L).has(t)},"#hasActor"),Dr=new WeakSet,za=a(function(t,e,{styleScope:n=null,parentId:r=null}={}){let i=this.inject("log");if(!e)throw new Error("Registry.resolveActor: id is required");if(c(this,L).has(e)){let p=c(this,L).get(e);this.inject("lifecycle").cancelTeardown(e);let m=r!=null&&p.parentId!==r;return m&&(h(this,wn,Ps).call(this,e),p.parentId=r,h(this,be,Ar).call(this,e,r)),n&&p.addStyleScope(n),m&&p.updateStyles(),p}if(!c(this,Bt))throw new Error("Registry.resolveActor: no actor class registered (call setActorClass)");if(!this.config?.scene&&(["design","preview","screen-capture"].includes(t.config?.view)||t.config?.embedded)){let p=this.inject("resolve").dispatch("computedNode",e),m=p();if(!m)return i.warn("resolveActor: node not found",{message:"node not found",id:e,parentId:r}),null;let g=c(this,Bt).create(t,e,{node:m,styleScope:n,parentId:r});c(this,L).set(g.id,g),h(this,be,Ar).call(this,g.id,r);let v=cm(p,b=>{if(g&&b){g.update?.(b);return}if(!b){g.destroy?.();return}});return g.addCleanupFn?.(v),g}let u=this.inject("resolve").dispatch("nodeData",e);if(!u)return i.warn("resolveActor: node not found",{message:"node not found",id:e,parentId:r}),null;let f=c(this,Bt).create(t,e,{node:u,styleScope:n,parentId:r});return c(this,L).set(f.id,f),h(this,be,Ar).call(this,f.id,r),f},"#resolveActor"),Lr=new WeakSet,Va=a(function(t,e,n={}){if(e&&c(this,U).has(e)){let i=c(this,U).get(e);return i.update(n),i}if(!c(this,pe))throw new Error("Registry.resolvePuppet: no puppet class registered (call setPuppetClass)");let r=c(this,pe).create(t,e,n);return t.addPuppet(r.rid),c(this,U).set(r.rid,r),r.repeats||this.inject("lifecycle").invokeBeforeMount(r),r},"#resolvePuppet"),_s=new WeakSet,nf=a(function(t){return h(this,kn,js).call(this,["nodes",t])!=null},"#hasNode"),Br=new WeakSet,Ja=a(function(t){return h(this,kn,js).call(this,["nodes",t])},"#getNode"),kn=new WeakSet,js=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),a(Gs,"Registry"),w(Gs,"manifest",{name:"Registry",namespace:"registry"});var Os=Gs;import{ServiceProvider as _m,definitionType as Gm}from"@jucie.io/engine";import{createDefinition as lm}from"@jucie.io/engine";var Ya="RESOLVER",$=lm(Ya,[Function]);var Xa=Object.getPrototypeOf(async function(){}).constructor,$n=a(o=>o.split(",").map(s=>s.trim()).filter(Boolean),"parseArgs"),of=[[/^async\s+function\s*\(([^)]*)\)\s*{([\s\S]*)}$/,o=>[Xa,$n(o[1]),o[2]]],[/^async\s*\(([^)]*)\)\s*=>\s*{([\s\S]*)}$/,o=>[Xa,$n(o[1]),o[2]]],[/^async\s*\(([^)]*)\)\s*=>\s*([\s\S]+)$/,o=>[Xa,$n(o[1]),`return ${o[2]};`]],[/^function\s*\(([^)]*)\)\s*{([\s\S]*)}$/,o=>[Function,$n(o[1]),o[2]]],[/^\(([^)]*)\)\s*=>\s*{([\s\S]*)}$/,o=>[Function,$n(o[1]),o[2]]],[/^\(([^)]*)\)\s*=>\s*([\s\S]+)$/,o=>[Function,$n(o[1]),`return ${o[2]};`]],[/^(\w+)\s*=>\s*([\s\S]+)$/,o=>[Function,[o[1].trim()],`return ${o[2]};`]]];function um(o){if(typeof o!="string")return!1;let s=o.trim();return of.some(([t])=>t.test(s))}a(um,"isFunctionString");function Za(o){if(typeof o!="string"||!o.trim())throw new Error("No code");let s=o.trim();for(let[t,e]of of){let n=s.match(t);if(!n)continue;let[r,i,l]=e(n);return new r(...i,l)}throw new Error("Must be a function \u2014 function (ctx) { \u2026 } or (ctx) => \u2026")}a(Za,"compileFunctionString");function sf(o){try{return Za(o),null}catch(s){return s.message}}a(sf,"functionStringError");function Kt(o,s="computed"){if(typeof o!="string"||!o.trim()||um(o))return o;let t=o.trim(),e=s==="code"?"ctx, event":"ctx",n=a(r=>`function (${e}) {
2
+ ${r.split(`
3
+ `).map(i=>` ${i}`).join(`
4
+ `)}
5
+ }`,"asFunction");return s==="computed"&&rf(`return (${t});`)?n(`return ${t}`):rf(t)?n(t):o}a(Kt,"toFunctionString");function rf(o){try{return new Function("ctx","event",o),!0}catch{return!1}}a(rf,"parses");var Qa=new Map;function tl(o){try{if(!o||typeof o!="string")return null;if(Qa.has(o))return Qa.get(o);let s=Za(o);return Qa.set(o,s),s}catch(s){return console.error("Error creating function from:",o),console.error("Error:",s.message),null}}a(tl,"convertStringToFunction");var _r=new Map,fm=500;function hm(o,s){let t=`${o}\0${s.join(",")}`,e=_r.get(t);if(e)return e;let n=new Function(...s,`"use strict"; return (${o});`);if(_r.size>=fm){let r=_r.keys().next().value;_r.delete(r)}return _r.set(t,n),n}a(hm,"compileExpression");function cf(o,s={}){if(!o||!s)return;let t=[],e=[];for(let n in s)t.push(n),e.push(s[n]);try{return hm(o,t)(...e)}catch(n){console.warn("[Expression Error]",n.message),console.warn("[Expression]",o),console.warn("[Scope]",t);return}}a(cf,"evaluateExpression");function el(o,s){return t=>{try{return o(t)}catch(e){return console.error("Descriptor error:",e),s}}}a(el,"safe");var af=$("descriptor",(o,s,t)=>{let e=new Map,n=a(r=>{let{mode:i,value:l,binding:u,computed:f,code:p,expression:m}=r;switch(i){case"binding":{let g=t("compiledBinding",u);return el(v=>g(v),l)}case"computed":{let g=tl(Kt(f,"computed"));return g?el(v=>g.call(v,v),l):()=>l}case"code":{let g=tl(Kt(p,"code"));return g?v=>g.bind(v,v):()=>l}case"expression":return el(g=>cf(m,g),l);case"value":default:return()=>l}},"compile");return r=>{if(e.has(r))return e.get(r);let i=n(r);return e.set(r,i),i}});var dm=/^[A-Za-z_$][\w$]*$/,Hs=a(()=>{},"noop"),lf=$("compiledBinding",()=>{let o=new Map;return s=>{if(Array.isArray(s)&&!s.every(e=>typeof e=="string"&&dm.test(e))){let e=JSON.stringify(s);return o.has(e)||(console.warn("Binding refused: not a path of identifiers",s),o.set(e,Hs)),Hs}let t=Array.isArray(s)?s.join("."):s;if(o.has(t))return o.get(t);try{let e=new Function("ctx",`
6
+ try { return ctx.${t} }
7
+ catch (e) { console.error('Error resolving binding:', '${t}', e.message); return undefined; }
8
+ `);return o.set(t,e),e}catch(e){return console.error("Error compiling binding:",t,e.message),o.set(t,Hs),Hs}}}),uf=$("binding",(o,s,t)=>(e,n)=>{if(!e)return"";try{return t("compiledBinding",e)(n)}catch(r){console.error("Error resolving binding:",e,r.message);return}});var nl=new Set(["id","type","ex","children","text"]),ff=a(o=>o!==null&&typeof o=="object"&&!Array.isArray(o),"isPlainObject");function rl(o=[],s=[]){let t=new Map(o.filter(Boolean).map(e=>[e.name,e]));for(let e of s)e&&t.set(e.name,e);return Array.from(t.values())}a(rl,"mergeByName");function qt(o,s){if(s===void 0)return o;if(o===void 0)return s;if(ff(o)&&ff(s)){let t={...o};for(let e of Object.keys(s)){let n=s[e];n===void 0?delete t[e]:t[e]=qt(o[e],n)}return t}return s}a(qt,"cascadeMerge");function hf(o){let{ex:s,type:t,...e}=o;return e}a(hf,"stripChainKeys");function df(o){let s={};for(let t of Object.keys(o))!nl.has(t)&&t!=="ex"&&(s[t]=o[t]);return s}a(df,"stripInstanceKeys");function pf(o,s){let t=[],e=o;for(;e&&s.has(e);)t.push(e),e=s.get(e).ex;return t}a(pf,"chainOf");var mf=$("prototype",o=>{let s=o("registry"),t={has:e=>s.hasPrototype(e),get:e=>s.getPrototype(e)};return e=>{let n=pf(e.ex??e.type,t).reverse(),r={};for(let u of n){let f=t.get(u);f&&(r=qt(r,hf(f)))}let i=e.attributes,l=e.events;r=qt(r,df(e)),i!=null&&(r.attributes=rl(r.attributes,i)),l!=null&&(r.events=rl(r.events,l));for(let u of nl)u in e&&(r[u]=e[u]);return r}});var gf=$("sceneValue",o=>{let s=null;return t=>(s??(s=o("state")),s.get(t))});var yf=$("nodeData",(o,s,t)=>{let e=a(n=>{let r=t("sceneValue",["nodes",n]);return r?r.ex&&t("sceneValue",["nodes",r.ex])!=null?qt(e(r.ex),r):t("prototype",r):null},"nodeData");return e});import{createComputed as pm,onDirty as mm,markAsDirty as gm}from"@jucie.io/reactive";var xf=$("computedNode",(o,s,t)=>{let e=new Map,n=a(r=>{if(e.has(r))return e.get(r);let i=null,l=null,u=pm(()=>{let f=t("sceneValue",["nodes",r]);if(!f)return null;if(f.ex&&t("sceneValue",["nodes",f.ex])!=null){let m=n(f.ex);return i!==f.ex&&(l?.(),l=mm(m,()=>gm(u)),i=f.ex),qt(m(),f)}return t("prototype",f)},{detached:!0});return e.set(r,u),u},"computedNode");return n});var ym=a(o=>/^on[A-Z]/.test(o),"isHandler");function bf(o,s){let t={...o};if(!s)return t;for(let[e,n]of Object.entries(s))if(n!==void 0)if(e==="className")t.className=t.className?`${t.className} ${n}`:n;else if(e==="style"){if(n&&typeof n=="object"){let r=t.style&&typeof t.style=="object"?t.style:null;t.style={...r,...n}}}else if(ym(e)&&typeof n=="function"&&typeof t[e]=="function"){let r=t[e];t[e]=i=>(r(i),n(i))}else t[e]=n;return t}a(bf,"resolveOverrides");var Us={outline:"2px solid #e6a700",outlineOffset:"-2px",color:"#b45309",backgroundColor:"rgba(230, 167, 0, 0.08)",fontFamily:"ui-sans-serif, system-ui, sans-serif",fontSize:"12px",fontWeight:600,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",padding:"4px 8px"};function vf(o,{name:s,...t}={}){let e=s?`Missing: ${s}`:"Missing component",n=[t.className,"jucie-missing"].filter(Boolean).join(" "),r=t.style&&typeof t.style=="object"?t.style:{},i={...Us,...r,outline:r.outline??Us.outline,outlineOffset:r.outlineOffset??Us.outlineOffset,color:r.color??Us.color};return i.width==null&&i.minWidth==null&&(i.minWidth=80),i.height==null&&i.minHeight==null&&(i.minHeight=32),o("div",{...t,className:n,style:i,"data-missing-name":s??""},e)}a(vf,"missing");function Ws(o,s){return o&&typeof o=="object"?{...o,...s}:s}a(Ws,"withRenderStyle");var Sf=$("node",(o,s,t)=>{let e=o("registry"),n=s.view==="design",r=a((i,l,u)=>{let f=t("attributes",i,l);return u&&(f.style=Ws(f.style,u)),f},"instanceAttributes");return(i,{ctx:l,instanceRid:u})=>{let f=i.actor?.node;if(!f)return null;let p=t("render",i,l);try{if(p===!1)return null;switch(f.type){case void 0:case"root":return f.children?.length?t("children",i,f.children,{ctx:l}):null;case"element":{let m=t("attributes",i,l),g=i.rootOf&&e.getPuppet(i.rootOf);if(g){let v=g.ctx??g.runtime.context.ctx,b=t("renderStyle",g,v);m=bf(m,r(g,v,b))}return p&&(m.style=Ws(m.style,p)),e.createElement(f.tagName,m,t("elementContent",i,f,{ctx:l,instanceRid:u}))}case"frame":{let m=t("attributes",i,l);return p&&(m.style=Ws(m.style,p)),e.createElement(f.tagName,m,t("children",i,f.children,{ctx:l}))}case"instance":{let m=t("component",f);if(!m)return n?vf(e.createElement,{name:f.component,...r(i,l,p)}):null;let g=e.getComponentMeta(f.library||"local",f.component),v=g?.origin==="jucie-library"||(!f.library||f.library==="local")&&g?.origin!=="source",b=t("slots",i,f.slots,{ctx:l,instanceRid:u});if(v)return e.createElement(m,{puppet:i,ctx:l});let x=r(i,l,p),S={};for(let[k,E]of Object.entries(b))S[k]=E(null);return!f.library||f.library==="local"?e.renderSource(m,{...x,...S},g):e.createElement(m,{...x,...S})}case"component":{if(i.actor.app.config?.mode==="components"){let{ctx:m}=o("context").componentContext(i,{name:i.actor.id});return e.createElement("div",t("attributes",i,l),t("children",i,f.children,{ctx:m}))}return null}case"slot":{let m=t("attributes",i,l);if(p&&(m.style=Ws(m.style,p)),!u)return e.createElement("div",m,null);let g=e.getPuppet(u),v=g.actor.node?.slots?.find(S=>S.id===i.actor.id),b=v?t("slotChildren",g,i,v,{ctx:g.ctx??o("context").ctx,instanceRid:g.instanceRid}):null,x=b?.length>0;return!x&&!n?null:e.createElement("div",m,x?b:t("children",i,f.children,{ctx:l}))}default:return console.warn("Unknown node type",f),null}}catch(m){return console.warn("Error resolving node",m),null}finally{i.notifyMount()}}});var wf=$("nodeRepeat",(o,s,t)=>{let e=o("registry"),n=s.view==="design";return(r,{ctx:i,instanceRid:l})=>{try{let u=t("repeatData",r.actor.node.repeat,i);if(u.length===0)return n?t("node",r,{ctx:i,instanceRid:l}):null;let f=o("context"),p=a(b=>`${r.rid}:clone:${b}`,"cloneContextId"),m=new Set(u.map(([b])=>b)),g=r.getCloneEntries().map(([b])=>b),v=r.reconcileClones(m);for(let b of v)e.getPuppet(b)?.destroy();for(let b of g)m.has(b)||f.releaseContext(p(b));return u.map(([b,x])=>{let S=f.childContext(p(b),r.rid,i,x),k=r.getClone(b),E=e.resolvePuppet(r.actor,k,{ctx:S,instanceRid:l,cloneOf:r.rid});return r.setClone(b,E.rid),e.createElement(E.render,{key:E.rid})})}catch(u){return console.error("Error resolving node repeat",u),null}}});var kf=$("repeatData",(o,s,t)=>(e,n)=>{let{as:r,key:i,index:l,keyOn:u,descriptor:f}=e,p=t("descriptor",f)?.(n);return p?(Array.isArray(p)?p.map((v,b)=>[u&&v[u]!==void 0?String(v[u]):String(b),v,b]):Object.entries(p).map(([v,b])=>[u&&b[u]!==void 0?String(b[u]):v,b,v])).map(([v,b,x],S)=>[v,{[r]:b,[l]:S,[i]:x}]):[]});var $f=$("render",(o,s,t)=>{let e=o("lifecycle");return(n,r)=>{let i=t("renderStyle",n,r);return n.reconcileShouldRender(i===null,()=>e.notifyUpdate(n.rid)),i}});var xm={opacity:.2},Cf=$("renderStyle",(o,s,t)=>{let e=s.view==="design"?xm:!1,n=a((r,i)=>{if(!r)return!0;try{return!!t("descriptor",r)(i)}catch(l){return console.error("Error resolving render condition:",l),!!r.value}},"isVisible");return(r,i)=>n(r.actor.node.render,i)?null:e});var bm=new Set(["disabled","readonly","hidden","aria-disabled"]);function Af(o){return bm.has(o)}a(Af,"isBehavioralAttribute");function Ef(o,s){return o?t=>{o(t),s(t)}:s}a(Ef,"composeHandler");var Rf=$("attributes",(o,s,t)=>{let e=o("registry"),n=s.view==="design",r=s.view!=="production",i=s.framework,l=a(f=>t("descriptor",f),"resolve"),u=a(f=>{if(f.type!=="instance")return null;let p=!f.library||f.library==="local",m=e.getComponentMeta(f.library||"local",f.component)?.origin;if(p&&m==="source"||!p&&m!=="jucie-library")return null;let b=e.describeComponent(f.library,f.component);return b?new Set([...b.propNames,...b.eventNames]):null},"declaredBy");return(f,p)=>{let m={},g=u(f.actor.node);try{if(f.actor.node.events&&!n)for(let x of f.actor.node.events){if(!x.name||g?.has(x.name))continue;let S=l(x)(p);if(S){let k=x.name;i==="react"&&k==="onInput"&&(k="onChange"),m[k]=E=>{try{return S(E)}catch(I){console.error("Error in event handler",k,I)}}}}}catch(x){console.error("Error resolving events",x)}let v=null;try{if(f.actor.node.attributes){for(let x of f.actor.node.attributes)if(x.name&&!(n&&Af(x.name))){if(x.name==="model"){v=x;continue}m[x.name]=l(x)(p)}}}catch(x){console.error("Error resolving attributes",x)}try{let x=f.actor.node.tagName?.toLowerCase();if(x==="input"||x==="textarea"||x==="select"){let k=v?.binding??f.actor.node.model?.binding;if(k){let E=(m.type??"").toLowerCase(),I=`${x}:${E}`,j,C,R,T;switch(I){case"input:checkbox":j="checked",C="onChange",R=!!t("binding",k,p),T=a(_=>{try{p.$set(k,_.target.checked)}catch(D){console.error("Error in model binding (checkbox)",D)}},"writeHandler");break;case"input:radio":j="checked",C="onChange",R=t("binding",k,p)===m.value,T=a(_=>{try{p.$set(k,_.target.value)}catch(D){console.error("Error in model binding (radio)",D)}},"writeHandler");break;default:j="value",C=i==="react"?"onChange":"onInput",R=t("binding",k,p)??"",T=a(_=>{try{p.$set(k,_.target.value)}catch(D){console.error("Error in model binding",D)}},"writeHandler")}m[j]=R,m[C]=Ef(m[C],T)}else i==="react"&&("value"in m||"checked"in m)&&("value"in m&&m.value==null&&(m.value=""),m.onChange||(m.onChange=()=>{}))}}catch(x){console.error("Error resolving form controls",x)}try{if(f.actor.node.props&&f.actor.node.props.length>0)for(let x of f.actor.node.props){if(!x.name||g)continue;let S=l(x)(p);S!=null&&(m[x.name]=S)}}catch(x){console.error("Error resolving props",x)}try{let x=[f.actor.id];if(f.actor.node.className&&f.actor.node.className.length>0)for(let S of f.actor.node.className){let k=l(S)(p);k&&x.push(k)}m.className=x.join(" ")}catch(x){console.error("Error resolving className",x)}try{if(f.actor.node.destination){let x=f.actor.node.destination;switch(x.type){case"url":{let S=x.path;m.href=S&&typeof S=="object"&&"mode"in S?l(S)(p):S,x.target&&(m.target=x.target),x.target==="_blank"&&(m.rel="noopener noreferrer");break}case"page":{let S={};for(let[E,I]of Object.entries(x.params??{}))S[E]=I&&typeof I=="object"&&"mode"in I?l(I)(p):I;let k=o("router")?.hrefFor(x.id,{params:S,query:x.query})??null;m.href=k??x.id,n||(m.onClick=Ef(m.onClick,E=>{E.preventDefault(),p?.$router?.navigate(k??x.id,{replace:x.replace})}));break}}}}catch(x){console.error("Error resolving destination",x)}let b=f.actor.node[".interactionState"];if(n&&b&&b.length>0){let x=b[b.length-1];if(x.startsWith("&.")){let S=x.slice(2);m.className=m.className?`${m.className} ${S}`:S}else if(x.startsWith(".")){let S=x.slice(1);m.className=m.className?`${m.className} ${S}`:S}else if(x.startsWith(":")){let S=`force-${x.slice(1)}`;m.className=m.className?`${m.className} ${S}`:S}}try{if(f.actor.node.states&&!n)for(let x of f.actor.node.states){if(!x.name)continue;!!l(x)(p)&&(m.className=m.className?`${m.className} ${x.name}`:x.name)}}catch(x){console.error("Error resolving states",x)}return f.ref&&(m.ref=f.ref),f.rid&&(r&&(m["data-rid"]=f.rid),m["data-node-id"]=f.actor.id,m.key=f.rid,f.actor.node.name&&(m["data-name"]=f.actor.node.name),f.actor.node.id&&(m.id=f.actor.node.id)),n&&f.actor.node.childrenType==="text"&&(m.contentEditable="true",m.suppressContentEditableWarning=!0),".editingTextContent"in f.actor.node&&f.actor.node[".editingTextContent"]&&(m.contentEditable="true",m.suppressContentEditableWarning=!0,m.onClick=x=>{x.preventDefault(),x.stopPropagation()},m["data-editing-text"]="true"),m["data-type"]=f.actor.node.type,m}});function Nf({context:o,registry:s,puppet:t,name:e,ctx:n,props:r}){let i=s.getSetup(e);if(!i)return n;let l=t.getSetup();return(!l||l.version!==i.version)&&(l={result:i.fn(r??{},n),version:i.version},t.setSetup(l)),o.childContext(Ns(t.rid),t.rid,n,l.result.locals??{})}a(Nf,"runSetup");var Tf=$("component",(o,s,t)=>{let e=o("registry");return n=>{let r=n.library||"local",i=n.component,l=e.getComponent(r,i);if(l)return l;let u=!n.library||n.library==="local",f,p;if(u?(f=e.getSetup(i)?.fn.template??i,p=e.getNode(f)?.component??i):(f=e.definitionIdOf(r,i),p=null),f&&e.hasNode(f)){let m=a(({puppet:g,ctx:v})=>{let b=e.getNodeChildren(f),x=o("context"),{ctx:S,props:k}=x.componentContext(g,{library:n.library,name:i,instanceId:g.actor.id,ctx:v}),E=Nf({context:x,registry:e,puppet:g,name:p,ctx:S,props:k});return b?.length?b.length===1?t("child",g,b[0],{ctx:E,instanceRid:g.rid,rootOf:g.rid}):t("children",g,b,{ctx:E,instanceRid:g.rid}):null},"Host");return e.registerComponent(r,i,m,{origin:u?"local":"jucie-library",tagName:i,library:r,displayName:i}),m}return null}});var Pf=$("child",o=>{let s=o("registry");return(t,e,{ctx:n,instanceRid:r,rootOf:i}={})=>{let l=t.actor.id,u=t.getChild(e),f=s.resolveActor(t.actor.app,e,{styleScope:t.actor.styleScope,parentId:l}),p=f&&s.resolvePuppet(f,u,{ctx:n,instanceRid:r,rootOf:i});return p?.render?(s.getNodeType(e)==="slot"&&r&&s.getPuppet(r)?.setSlot(e,p.rid),t.setChild(e,p.rid),s.createElement(p.render,{key:p.rid})):null}});var jf=$("children",(o,s,t)=>{let e=o("lifecycle");return(n,r=null,{ctx:i,instanceRid:l}={})=>{if(r=r??n.actor.node.children,typeof r=="string")return r;let u=Array.isArray(r)?r:[],f=n.reconcileChildren(u);if(f.length)for(let m of f)e.scheduleTeardown(m);if(!u.length)return[];let p=[];for(let m of u){let g=t("child",n,m,{ctx:i,instanceRid:l});g&&p.push(g)}return p}});var Of=$("elementContent",(o,s,t)=>(e,n,{ctx:r,instanceRid:i})=>{let{childrenType:l,options:u,children:f}=n;switch(l){case null:case"none":return null;case"text":return t("textContent",e,n,{ctx:r});case"options":return t("selectOptions",e,u,{ctx:r});case"*":case"children":default:return t("children",e,f,{ctx:r,instanceRid:i})}});function zt(o){return Array.isArray(o?.textContent)?o.textContent:null}a(zt,"textSegmentsOf");var Gr="\uFFFC";function Hr(o){return!!(o.descriptor||o.block)}a(Hr,"isAtomicSegment");function Ks(o,s){if(o===s)return!0;if(!o||!s||typeof o!="object"||typeof s!="object")return!1;let t=Object.keys(o);if(t.length!==Object.keys(s).length)return!1;for(let e of t)if(o[e]!==s[e])return!1;return!0}a(Ks,"valueEqual");function ol(o,s){let t=Object.keys(o);if(t.length!==Object.keys(s).length)return!1;for(let e of t)if(!Ks(o[e],s[e]))return!1;return!0}a(ol,"formatsEqual");var vm=a((o,s)=>!Hr(o)&&!Hr(s)&&ol(o.formats,s.formats),"canMerge");function qs(o){if(!o||o.length===0)return[];let s=[{...o[0],formats:{...o[0].formats}}];for(let t=1;t<o.length;t++){let e=s[s.length-1],n=o[t];vm(e,n)?e.text+=n.text:s.push({...n,formats:{...n.formats}})}return s}a(qs,"mergeAdjacentSegments");function A(o){return[{text:o??"",formats:{}}]}a(A,"plainTextToSegments");function Vt(o,s={}){return{text:Gr,descriptor:o,formats:{...s}}}a(Vt,"createDescriptorSegment");var Sm=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)*$/;function Ur(o){let s=typeof o=="string"?o.trim():"";return Sm.test(s)?s.split("."):null}a(Ur,"toBindingPath");function wm(o){return{name:null,mode:"binding",value:null,binding:o,computed:null,code:null,error:null,removable:!0}}a(wm,"boundTo");function km(o){return{name:null,mode:"computed",value:null,binding:null,computed:`function (ctx) {
9
+ return ctx.${o}
10
+ }`,code:null,error:null,removable:!0}}a(km,"computing");function sl(o){let s=Ur(o);return Vt(s?wm(s):km(o.trim()))}a(sl,"expressionToSegment");var $m=/\{\{([^}]+)\}\}/g;function Cn(o){let s=o??"",t=[],e=0;for(let n of s.matchAll($m))n.index>e&&t.push(...A(s.slice(e,n.index))),t.push(sl(n[1])),e=n.index+n[0].length;return(e<s.length||t.length===0)&&t.push(...A(s.slice(e))),t}a(Cn,"templateToSegments");var Mf=Object.freeze({type:"paragraph"}),Cm=new Set(["div","section","article","aside","header","footer","main","li","td","th"]);function If(o){return Cm.has(String(o??"").toLowerCase())}a(If,"canHoldBlocks");function il(o){return!!o?.block}a(il,"isTerminator");function zs(o){return!!o?.some(il)}a(zs,"hasBlocks");function Ff(o){switch(o?.type){case"heading":return`h${Math.min(6,Math.max(1,Number(o.level)||2))}`;case"quote":return"blockquote";case"code":return"pre";default:return"p"}}a(Ff,"tagForBlock");var Am=/^function \(ctx\) \{\n {2}return ctx\.([\s\S]+)\n\}$/;function Em(o){if(o?.mode==="binding"&&o.binding?.length)return`{{${Array.isArray(o.binding)?o.binding.join("."):o.binding}}}`;if(o?.mode==="computed"){let s=typeof o.computed=="string"&&o.computed.match(Am)?.[1];return s?`{{${s}}}`:"{fn}"}return o?.mode==="value"?o.value==null?"":String(o.value):""}a(Em,"pillText");function cl(o){let s="";for(let t of o??[])s+=t.descriptor?Em(t.descriptor):t.text;return zs(o)&&s.endsWith(`
11
+ `)?s.slice(0,-1):s}a(cl,"segmentsToTemplate");var Rm=Object.freeze({mode:"value",value:null,binding:null,computed:null,code:null,error:null});var Df=a((o,s=10)=>o.length>s?o.slice(0,s)+"\u2026":o,"truncate");function ll(o){if(!o)return"?";if(o.mode==="binding"&&o.binding?.length){let s=Array.isArray(o.binding)?o.binding.join("."):String(o.binding);return Df(s,24)}return o.mode==="computed"&&o.computed||o.mode==="code"?"\u0192n\u2026":o.mode==="value"&&o.value!=null?Df(String(o.value)):"\xA0"}a(ll,"descriptorLabel");function ul(o){return o?o.mode==="binding"&&o.binding?.length?Array.isArray(o.binding)?o.binding.join("."):String(o.binding):o.mode==="computed"?o.computed??"":o.mode==="code"?o.code??"":o.mode==="value"&&o.value!=null?String(o.value):"":""}a(ul,"descriptorTitle");function Wr(o){return!o||typeof o!="string"||!o.includes("@")?o:o.split(",").map(s=>{let t=s.trim().replace(/^['"]|['"]$/g,""),e=t.indexOf("@"),n=e===-1?t:t.slice(0,e).trim();return n.includes(" ")?`"${n}"`:n}).join(", ")}a(Wr,"stripFontSource");function Lf(o,s,t){if(!o.includes(`
12
+ `))return o;let e=[];return o.split(`
13
+ `).forEach((n,r)=>{r>0&&e.push(s("br",{key:`${t}-br${r}`})),n&&e.push(n)}),e}a(Lf,"withBreaks");var Om=/^(https?:|mailto:|tel:|[/#?.]|[^:]*$)/i;function Mm(o){if(typeof o!="string")return null;let s=o.trim();return Om.test(s)?s:null}a(Mm,"safeHref");var Im={fontFamily:"fontFamily",fontSize:"fontSize",fontWeight:"fontWeight",color:"color",letterSpacing:"letterSpacing"};function Bf(o,s,t,e){let n=[];s.code&&n.push(["code",null]),s.sup?n.push(["sup",null]):s.sub&&n.push(["sub",null]),s.strike&&n.push(["s",null]),s.underline&&n.push(["u",null]),s.italic&&n.push(["em",null]),s.bold&&n.push(["strong",null]),s.backgroundColor&&n.push(["mark",{style:{backgroundColor:s.backgroundColor,color:"inherit"}}]);let r={};for(let[l,u]of Object.entries(Im))s[l]==null||s[l]===""||(r[u]=l==="fontFamily"?Wr(s[l]):s[l]);if(Object.keys(r).length&&n.push(["span",{style:r}]),s.link){let u={href:Mm(s.link.href)??void 0};s.link.target&&(u.target=s.link.target,s.link.target==="_blank"&&(u.rel="noopener noreferrer")),n.push(["a",u])}if(n.length===0)return o;let i=o;return n.forEach(([l,u],f)=>{let p=f===n.length-1;i=t(l,p?{...u,key:e}:u,i)}),i}a(Bf,"wrapFormats");function Fm(o){return o==null||typeof o=="function"?"":typeof o=="object"?JSON.stringify(o):String(o)}a(Fm,"descriptorText");function Gf(o,s,{design:t=!0,evaluate:e,statusOf:n,pillProps:r,editingIndex:i}={}){let l=o.flatMap(([f,p])=>{if(f.block)return[s("br",{key:`seg-${p}`})];if(f.descriptor&&!t){let v=Fm(e?.(f.descriptor));if(!v)return[];let b=Lf(v,s,`seg-${p}`),x=f.formats;return x&&Object.keys(x).length?Bf(b,x,s,`seg-${p}`):b}if(f.descriptor){let v=ll(f.descriptor),b=n?.(f.descriptor),x=[ul(f.descriptor),b?.reason].filter(Boolean).join(" \u2014 ");return s("span",{...r,key:`seg-${p}`,contentEditable:"false",class:"descriptor-pill","data-seg-index":p,"data-label":v,"data-state":b?.state,"data-editing":p===i?"true":void 0,title:x||void 0},Gr)}let m=Lf(f.text,s,`seg-${p}`),g=f.formats;return!g||Object.keys(g).length===0?m:Bf(m,g,s,`seg-${p}`)}),u=o[o.length-1]?.[0];return u&&!u.descriptor&&!u.block&&u.text.endsWith(`
14
+ `)&&l.push(s("br",{key:"filler","data-filler":"true"})),l}a(Gf,"renderRuns");function _f(o,s,t,e,n){let r={key:`b${t}`};n.design&&(r["data-block"]="true");let i={};o.align&&(i.textAlign=o.align),o.lineHeight&&(i.lineHeight=o.lineHeight),Object.keys(i).length&&(r.style=i);let l=Gf(s,e,n);return l.length===0&&l.push(e("br",{key:"filler","data-filler":"true"})),e(Ff(o),r,l)}a(_f,"renderBlock");function Dm(o,s,t){let e=[],n=[];return o.forEach((r,i)=>{if(!il(r)){n.push([r,i]);return}e.push(_f(r.block,n,e.length,s,t)),n=[]}),n.length&&e.push(_f(Mf,n,e.length,s,t)),e}a(Dm,"renderBlocks");function fl(o,s,{blocks:t=!1,...e}={}){return t&&zs(o)?Dm(o,s,e):Gf(o.map((n,r)=>[n,r]),s,e)}a(fl,"renderSegments");var Lm={suppressContentEditableWarning:!0};function Bm(o,s){for(let t of s){let e=t.formats,n=e?.fontFamily;!n||n.includes("var(")||o.resolve(n,String(e.fontWeight??(e.bold?"700":"400")),e.italic?"italic":"normal")}}a(Bm,"requestSegmentFonts");var Hf=$("textContent",(o,s,t)=>{let e=o("registry"),n=s?.view==="design",r,i=a(()=>(r===void 0&&(r=o("fontResolver")??null),r),"getFontResolver"),l,u=a(()=>(l===void 0&&(l=o("nodeGraph")??null),l),"getNodeGraph"),f=a(p=>m=>{if(m?.mode!=="binding")return null;let g=m.binding,v=Array.isArray(g)?g:Ur(g);return v?u()?.bindingStatus(p,v)??null:null},"statusFor");return(p,m,{ctx:g}={})=>{try{let v=zt(m);if(!v)return null;let b=e.getCreateElement();if(!b)return v.map(k=>k.descriptor?"":k.text).join("");let x=i();x&&Bm(x,v);let S=fl(v,b,{blocks:If(p.actor.node?.tagName),design:n,evaluate:k=>t("descriptor",k)(g),statusOf:n?f(p):void 0,editingIndex:n?m?.[".editingDescriptor"]:void 0,pillProps:Lm});return S.length===1&&typeof S[0]=="string"?S[0]:S}catch(v){console.error("Error resolving textContent",v)}}});var Uf=$("selectOptions",(o,s,t)=>{let e=o("registry");return(n,r=null,{ctx:i}={})=>{let l=r?t("descriptor",r)?.(i):null;return Array.isArray(l)?l.map((u,f)=>e.createElement("option",{value:u?.value,key:f},u?.label??u?.value)):[]}});var Wf=$("slots",(o,s,t)=>(e,n,{ctx:r,instanceRid:i})=>{if(!n||n.length===0)return{};for(let l of n)e.setSlotThunk(l.id,u=>t("slotChildren",e,u,l,{ctx:r,instanceRid:i}));return e.getSlotThunks()});var Kf=$("slotChildren",(o,s,t)=>{let e=o("lifecycle");return(n,r,i,{ctx:l,instanceRid:u}={})=>{let{id:f,children:p,childrenType:m}=i;if(!f)return[];if(m==="text")return t("textContent",n,i,{ctx:l});if(typeof p=="string")return p;let g=Array.isArray(p)?p:[],v=n.reconcileSlotChildren(f,g);if(v.length)for(let x of v)e.scheduleTeardown(x);if(g.length===0)return[];let b=[];for(let x of g){let S=t("slotChild",n,r,f,x,{ctx:l,instanceRid:u});S&&b.push(S)}return b}});var qf=$("slotChild",o=>{let s=o("registry");return(t,e,n,r,{ctx:i,instanceRid:l}={})=>{let u=e?.actor?.id??t.actor.id,f=t.getSlotChild(n,r),p=s.resolveActor(t.actor.app,r,{styleScope:t.actor.styleScope,parentId:u}),m=p&&s.resolvePuppet(p,f,{ctx:i,instanceRid:l});return m?.render?(t.setSlotChild(n,r,m.rid),s.createElement(m.render,{key:m.rid})):null}});var zf=[af,lf,uf,mf,gf,yf,xf,Sf,wf,kf,$f,Cf,Rf,Tf,Pf,jf,Of,Hf,Uf,Wf,Kf,qf];var Vf=$("sceneValue",(o,s)=>{let t=s.scene,e=s.sceneOverlay??null,n=a((r,i)=>i.reduce((l,u)=>l?.[u],r),"walk");return r=>e&&r[0]==="nodes"&&r.length>1&&e.has(r[1])?n(e.get(r[1]),r.slice(2)):n(t,r)});var An,ve,qr,Se,Kr,zr,hl,Js=class Js extends _m{constructor(){super(...arguments);d(this,Se);d(this,zr);d(this,An,new Map);d(this,ve,new Map);d(this,qr,a((t,...e)=>{let n=c(this,ve).get(t);if(!n){let r=Array.from(c(this,ve).keys()).join(", ");throw new Error(`Resolve.dispatch: no resolver "${t}" (registered: ${r})`)}return n(...e)},"#dispatch"))}actions(t,e){return h(this,Se,Kr).call(this,zf),e.scene&&h(this,Se,Kr).call(this,[Vf]),h(this,Se,Kr).call(this,e.resolvers??[]),{use:(...n)=>{h(this,Se,Kr).call(this,n.flat())},has:n=>c(this,ve).has(n),dispatch:(n,...r)=>c(this,qr).call(this,n,...r),reset:(...n)=>{let r=n.length?n:Array.from(c(this,An).keys());for(let i of r){let l=c(this,An).get(i);l&&h(this,zr,hl).call(this,l)}}}}};An=new WeakMap,ve=new WeakMap,qr=new WeakMap,Se=new WeakSet,Kr=a(function(t){for(let e of t){if(Gm(e)!==Ya)throw new Error("Resolve.use: expected a defineResolver() definition");c(this,An).set(e._name,e),h(this,zr,hl).call(this,e)}},"#use"),zr=new WeakSet,hl=a(function(t){c(this,ve).set(t._name,t(this.inject,this.config,c(this,qr)))},"#build"),a(Js,"Resolve"),w(Js,"manifest",{name:"Resolve",namespace:"resolve"});var Vs=Js;import{ServiceProvider as Um}from"@jucie.io/engine";import{defineStore as Wm,rebuildStore as Km,destroyStore as qm}from"@jucie.io/reactive";import{setProjectMain as zm}from"jucie:sdk";function Jf(o){return Array.isArray(o)?`List of ${Jf(o[0])}`:o&&typeof o=="object"?"Map":String(o)}a(Jf,"describe");function Ys(o,s,t,e,n="state"){let r=[],i=a((l,u,f)=>{if(r.push({path:l,type:n,dot:l.join("."),hint:Jf(u)}),l.length-1>=4||Array.isArray(u))return;if(u&&typeof u=="object"&&u["*"]!==void 0){for(let m of Object.keys(f??{}))i([...l,m],u["*"],f[m]);return}let p=t.types?.[u];if(p)for(let[m,g]of Object.entries(p))i([...l,m],g,f?.[m])},"visit");return i(o,s,e),r}a(Ys,"typeSchemaPaths");function Yf(o,s,t={}){return Object.entries(s.fields??{}).flatMap(([e,n])=>Ys([`$${o}`,e],n,s,t?.[e]))}a(Yf,"storeSchemaPaths");var Xf=new Set(["string","number","boolean","enum"]);function Hm(o,s={},t={}){for(let n of Object.keys(t))if(!Object.hasOwn(s,n))throw new Error(`${o} has no option "${n}" (it has: ${Object.keys(s).join(", ")||"none"})`);let e={};for(let[n,r]of Object.entries(s)){if(!Xf.has(r?.type))throw new Error(`${o}'s option "${n}" has type ${JSON.stringify(r?.type)} (one of ${[...Xf].join(", ")})`);let i=t[n]===void 0?r.default:t[n];if(r.type==="enum"&&!r.options?.includes(i))throw new Error(`${o}'s option "${n}" is ${JSON.stringify(i)} (one of ${(r.options??[]).map(l=>JSON.stringify(l)).join(", ")})`);if(r.type!=="enum"&&i!==void 0&&(typeof i!==r.type||Number.isNaN(i)))throw new Error(`${o}'s option "${n}" must be a ${r.type} (got ${JSON.stringify(i)})`);e[n]=i}return e}a(Hm,"resolveOptionValues");function Zf({name:o,options:s,setup:t=null},e,n=globalThis.document){let r=Hm(o,s??{},e??{}),i=[];t?.(r,{stylesheet:u=>i.push(String(u))});let l=i.join(`
15
+ `);if(n){let u=[...n.head.querySelectorAll("style[data-jucie-library]")].find(f=>f.dataset.jucieLibrary===o);u||(u=n.createElement("style"),u.dataset.jucieLibrary=o,n.head.appendChild(u)),u.textContent=l}return{values:r,css:l}}a(Zf,"runLibrarySetup");var B,En,Vr,Jr,Yr,dl,Zs,Qf,Xr,pl,Qs,th,Zr,ml,ti,eh,ei,nh,ni,rh,ri,oh,oi=class oi extends Um{constructor(){super(...arguments);d(this,Yr);d(this,Zs);d(this,Xr);d(this,Qs);d(this,Zr);d(this,ti);d(this,ei);d(this,ni);d(this,ri);d(this,B,new Map);d(this,En,new Set);d(this,Vr,!1);d(this,Jr,new Map)}getters(){return{libraryStylesheets:()=>Object.fromEntries(c(this,Jr))}}actions(t,e){return{addStore:(n,r)=>{c(this,B).set(n,{store:r,paths:[]})},getStore:n=>c(this,B).get(n)?.store,getSchema:n=>c(this,B).get(n)?.schema??null,hasStore:n=>c(this,B).has(n),removeStore:n=>{c(this,B).delete(n)},getCurrentStoreNames:()=>Array.from(c(this,B).keys()),onStoresChange:n=>(c(this,En).add(n),()=>c(this,En).delete(n)),swapCompiledModule:(n,r,i)=>h(this,ei,nh).call(this,n,r,i),getContextPaths:()=>{let n=[];for(let{paths:r}of c(this,B).values())r&&n.push(...r);return n.push(...t("router")?.contextPaths??[]),n.push(...t("animator")?.contextPaths??[]),n},initialize:n=>h(this,Zs,Qf).call(this,n)}}};B=new WeakMap,En=new WeakMap,Vr=new WeakMap,Jr=new WeakMap,Yr=new WeakSet,dl=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),Zs=new WeakSet,Qf=a(function(t=!0){if(c(this,Vr))return;y(this,Vr,!0),h(this,Xr,pl).call(this,h(this,Yr,dl).call(this,[".stores"])??{});let e=this.config?.scene?null:this.inject("state")?.matcher;t&&e&&e.createMatcher([".stores"],n=>{h(this,Xr,pl).call(this,n??{})})},"#initializeStores"),Xr=new WeakSet,pl=a(function(t){for(let[e,n]of Object.entries(t)){let r=h(this,ti,eh).call(this,e,n),i=c(this,B).get(e);i?i.paths=r:c(this,B).set(e,{store:null,paths:r})}for(let[e,{store:n}]of c(this,B))!t[e]&&!n&&h(this,Qs,th).call(this,e)},"#syncStoreContextPaths"),Qs=new WeakSet,th=a(function(t){let e=c(this,B).get(t)?.store;e&&qm(e),c(this,B).delete(t),e&&h(this,Zr,ml).call(this)},"#teardownStore"),Zr=new WeakSet,ml=a(function(){for(let t of c(this,En))t()},"#notifyStoresChange"),ti=new WeakSet,eh=a(function(t,e){let n=[];if(e?.state)for(let{key:r}of e.state)n.push({path:[`$${t}`,r],type:"state",dot:`$${t}.${r}`,hint:"Reactive state value"});if(e?.computed)for(let{name:r}of e.computed)n.push({path:[`$${t}`,r],type:"computed",dot:`$${t}.${r}`,hint:"Computed value"});if(e?.actions)for(let{name:r}of e.actions)n.push({path:[`$${t}`,r],type:"action",dot:`$${t}.${r}`,hint:"Store action"});return n},"#buildStorePaths"),ei=new WeakSet,nh=a(function(t,e,n){let r=this.inject("log");if(e==="store"){let i=h(this,ni,rh).call(this,t,n??{}),l=h(this,ri,oh).call(this,t,n??{}),u=n?.schema??null,f=c(this,B).get(t),p=u!==(f?.schema??null);if(f?.store)Km(f.store,i),f.paths=l,f.schema=u;else{let m=Wm(t,i);m(),c(this,B).set(t,{store:m,paths:l,schema:u}),h(this,Zr,ml).call(this)}p&&this.inject("relay").broadcast("schema:change",t),r.debug(`[ModuleManager] hot-swapped store module: ${t}`)}else if(e==="component"){let i=typeof n=="function"?n:n?.default;if(!i)return;let l=this.inject("registry");i.__jux===!0?l.setSetup(t,i):this.inject("components").register(t,i),r.debug(`[ModuleManager] hot-swapped component module: ${t}`)}else if(e==="library"){if(!n?.components)return;this.inject("registry").loadSources({[t]:n}),r.debug(`[ModuleManager] registered component library: ${t}`)}else if(e==="main"){if(typeof n!="function"){r.warn("[ModuleManager] src/main.js must default-export setup(...), e.g. export default setup((app) => { ... })");return}zm(n),r.debug("[ModuleManager] registered project main")}else if(e==="librarySetup"||e==="usedLibrarySetup"){let i=n?.name,l={};if(e==="usedLibrarySetup"){let u=h(this,Yr,dl).call(this,[".libraries",i]);if(!u){r.debug(`[ModuleManager] ${i} isn't loaded, so its setup doesn't run`);return}l=u.values}try{let{css:u}=Zf(n,l);c(this,Jr).set(i,u),r.debug(`[ModuleManager] ran ${i}'s setup`)}catch(u){r.error(`[ModuleManager] ${i}'s setup failed: ${u.message}`)}}},"#swapCompiledModule"),ni=new WeakSet,rh=a(function(t,e){let n=this.inject("log"),r={state:e.state??{},computed:{},actions:{}};for(let[i,l]of Object.entries(e.computed??{}))typeof l=="function"&&(r.computed[i]=a(function(f,p){try{return l.call(f,f,p)}catch(m){n.warn(`[Store:${t}] computed "${i}" threw: ${m.message}`);return}},"safeComputed"));for(let[i,l]of Object.entries(e.actions??{}))typeof l=="function"&&(r.actions[i]=a(function(...f){try{return l.apply(this,f)}catch(p){n.warn(`[Store:${t}] action "${i}" threw: ${p.message}`)}},"safeAction"));return r},"#toStoreConfig"),ri=new WeakSet,oh=a(function(t,e){let n=[];if(e.schema){let r=Object.fromEntries(Object.entries(e.state??{}).map(([i,l])=>[i,l?.default]));n.push(...Yf(t,e.schema,r))}else if(e.state)for(let r of Object.keys(e.state))n.push({path:[`$${t}`,r],type:"state",dot:`$${t}.${r}`,hint:"Reactive state value"});if(e.computed)for(let r of Object.keys(e.computed))n.push({path:[`$${t}`,r],type:"computed",dot:`$${t}.${r}`,hint:"Computed value"});if(e.actions)for(let r of Object.keys(e.actions))n.push({path:[`$${t}`,r],type:"action",dot:`$${t}.${r}`,hint:"Store action"});return n},"#buildStorePathsFromModule"),a(oi,"ModuleManager"),w(oi,"manifest",{name:"ModuleManager",namespace:"modules"});var Xs=oi;import{ServiceProvider as Vm}from"@jucie.io/engine";import{createComputed as Jm,createSubscriber as Ym}from"@jucie.io/reactive";function Xm(o){return{displayName:o.name,category:"components",keywords:[o.name,"jux","component"],library:"local",tagName:o.component,origin:"jux"}}a(Xm,"juxEntry");var Rn,Qr,gl,ii,sh,ci,ih,ai=class ai extends Vm{constructor(){super(...arguments);d(this,Qr);d(this,ii);d(this,ci);d(this,Rn,null)}actions(t){return{list:()=>h(this,Qr,gl).call(this)(),onChange:e=>Ym(h(this,Qr,gl).call(this),e),register:(e,n,r={})=>t("registry").registerComponent("local",e,n,{displayName:e.replace(/([A-Z])/g," $1").trim()||e,category:"components",keywords:[e,"component"],tagName:e,origin:"source",...r}),unregister:(e,n)=>t("registry").unregisterComponent(e,n)}}};Rn=new WeakMap,Qr=new WeakSet,gl=a(function(){return c(this,Rn)||y(this,Rn,Jm(()=>[...h(this,ii,sh).call(this),...h(this,ci,ih).call(this)])),c(this,Rn)},"#getCatalog"),ii=new WeakSet,sh=a(function(){return this.inject("registry").getAllComponents().filter(t=>t.library!=="local"||t.meta?.origin==="source").map(t=>t.meta)},"#codedComponents"),ci=new WeakSet,ih=a(function(){let t=this.inject("resolve").dispatch("sceneValue",["nodes"])??{},e=[];for(let[n,r]of Object.entries(t))r?.type==="component"&&(n.startsWith(".")&&!r.component||e.push(r.component?Xm(r):{displayName:r.name||n,category:"local",keywords:[r.name,"component"],library:null,tagName:n}));return e},"#sceneGraphComponents"),a(ai,"ComponentManager"),w(ai,"manifest",{name:"ComponentManager",namespace:"components"});var si=ai;import{createComputed as yl,addEffect as xl}from"@jucie.io/reactive";import{ServiceProvider as Zm}from"@jucie.io/engine";function li(o){return o==null?null:typeof o=="string"?{mode:"value",value:o,binding:null,computed:null}:o}a(li,"normalizeActionDescriptor");var K,Nn,Tn,to,G,Jt,eo,bl,mi,ch,no,vl,gi,ah,yi,lh,ro,Sl,oo,wl,xi,uh,Pn,ui,bi,fh,jn,fi,vi,hh,so,kl,On,hi,Si,dh,Mn,di,wi=class wi extends Zm{constructor(){super(...arguments);d(this,eo);d(this,mi);d(this,no);d(this,gi);d(this,yi);d(this,ro);d(this,oo);d(this,xi);d(this,Pn);d(this,bi);d(this,jn);d(this,vi);d(this,so);d(this,On);d(this,Si);d(this,Mn);d(this,K,new Map);d(this,Nn,new Map);d(this,Tn,null);d(this,to,[]);d(this,G,new Map);d(this,Jt,new Map)}initialize(){let t=this.config,e=this.inject("relay");h(this,mi,ch).call(this),e.on("scene:unmount",n=>{for(let r of n)this.unbindPuppet(r)}),t?.view!=="design"&&(e.on("scene:mount",n=>{for(let r of n)this.bindPuppet(r)}),e.on("scene:update",n=>{for(let r of n)this.rebindPuppet(r)}))}getters(){return{contextPaths:()=>[{path:["$animator","play"],type:"action",dot:"$animator.play",hint:"Play an animation on a target"},{path:["$animator","cancel"],type:"action",dot:"$animator.cancel",hint:"Cancel an animation on a target"}]}}actions(){return{play:(t,e,n)=>this.play(t,e,n),cancel:(t,e)=>this.cancel(t,e),pauseAll:t=>this.pauseAll(t),resumeAll:t=>this.resumeAll(t),getAnimationAsset:t=>this.getAnimationAsset(t),bindPuppet:t=>this.bindPuppet(t),rebindPuppet:t=>this.rebindPuppet(t),unbindPuppet:t=>this.unbindPuppet(t),getLoadedAnimations:()=>{let t=new Set,e={};for(let[n,r]of c(this,K))t.has(r)||(t.add(r),e[n]=r);return e},getActiveAnimation:t=>{for(let e of c(this,G).values()){let n=e.get(t);if(n?.size)return[...n][0]}return null},seekAnimation:(t,e)=>{let n=!1;for(let l of c(this,G).values()){let u=l.get(t);if(u?.size){n=!0;for(let f of u)f.pause(),f.currentTime=e}}if(n)return;let r=c(this,K).get(t);if(!r)return;let i=this.inject("registry");for(let l of i.getPuppets()){if(!l)continue;let u=l.rid;if(!(l?.actor?.node?.animations??[]).some(m=>m.id===t))continue;let p=l.$el;if(p)try{let m=(r.keyframes??[]).map(b=>{let{offset:x,...S}=b;return{offset:x,...S}}),g=new KeyframeEffect(p,m,{duration:r.duration??300,fill:"both"}),v=new Animation(g,document.timeline);v.pause(),v.currentTime=e,h(this,On,hi).call(this,u,t,v)}catch{}}}}}getAnimationAsset(t){return c(this,K).get(t)??null}resolveTargets(t){if(t instanceof HTMLElement)return[t];if(t instanceof NodeList||Array.isArray(t))return Array.from(t);if(typeof t!="string")return[];let e=typeof document<"u"?document:null;if(!e)return[];let n=e.getElementById(t);if(n)return[n];let r=e.querySelectorAll(`[data-name="${t}"]`);if(r.length)return Array.from(r);let i=e.querySelector(`[data-node-id="${t}"]`);if(i)return[i];try{let l=e.querySelectorAll(t);return Array.from(l)}catch{return[]}}play(t,e,n={}){let r=c(this,K).get(e);if(!r)return console.warn(`Animator: animation "${e}" not found`),null;let i=this.resolveTargets(t);if(i.length===0)return null;let l=n.stagger??0,u=[];for(let f=0;f<i.length;f++){let p=i[f],m=r.keyframes.map(S=>({offset:S.offset,...S.properties})),g={duration:n.duration??r.duration??300,easing:n.easing??r.easing??"ease",fill:n.fill??r.fill??"none",direction:n.direction??r.direction??"normal",iterations:n.iterations??r.iterations??1,delay:(n.delay??r.delay??0)+l*f,endDelay:n.endDelay??r.endDelay??0},v=new KeyframeEffect(p,m,g),b=new Animation(v,p.ownerDocument.timeline);b.play();let x=p.dataset?.rid;x&&h(this,On,hi).call(this,x,e,b),u.push(b)}return u.length===1?u[0]:u}cancel(t,e){let n=this.resolveTargets(t);for(let r of n){let i=r.dataset?.rid;if(!i)continue;let l=c(this,G).get(i);if(l)if(e){let u=l.get(e);if(u){for(let f of u)f.cancel();l.delete(e)}}else{for(let u of l.values())for(let f of u)f.cancel();l.clear()}}}pauseAll(t){let e=this.resolveTargets(t);for(let n of e){let r=n.dataset?.rid;if(!r)continue;let i=c(this,G).get(r);if(i)for(let l of i.values())for(let u of l)u.pause()}}resumeAll(t){let e=this.resolveTargets(t);for(let n of e){let r=n.dataset?.rid;if(!r)continue;let i=c(this,G).get(r);if(i)for(let l of i.values())for(let u of l)u.play()}}bindPuppet(t){let n=this.inject("registry").getPuppet(t),r=n?.actor;if(r?.node?.animations?.length)for(let i of r.node.animations)h(this,xi,uh).call(this,n,i)}rebindPuppet(t){this.unbindPuppet(t),this.bindPuppet(t)}unbindPuppet(t){let e=c(this,Jt).get(t);if(e){for(let n of e)n();c(this,Jt).delete(t)}h(this,Si,dh).call(this,t)}};K=new WeakMap,Nn=new WeakMap,Tn=new WeakMap,to=new WeakMap,G=new WeakMap,Jt=new WeakMap,eo=new WeakSet,bl=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),mi=new WeakSet,ch=a(function(){y(this,Tn,yl(()=>h(this,eo,bl).call(this,["animations"]))),xl(c(this,Tn),t=>h(this,no,vl).call(this,t)),h(this,no,vl).call(this,c(this,Tn).call(this))},"#initReactiveAnimations"),no=new WeakSet,vl=a(function(t){let e=t?Object.keys(t):[],n=c(this,to),r=new Set(e),i=new Set(n);for(let l of e)i.has(l)||h(this,gi,ah).call(this,l);for(let l of n)r.has(l)||h(this,yi,lh).call(this,l);y(this,to,e.slice())},"#processAnimations"),gi=new WeakSet,ah=a(function(t){if(c(this,Nn).has(t))return;let e=yl(()=>h(this,eo,bl).call(this,["animations",t]));c(this,Nn).set(t,e);let n=xl(e,i=>{if(!i){h(this,oo,wl).call(this,t),n();return}h(this,ro,Sl).call(this,t,i)}),r=e();r&&h(this,ro,Sl).call(this,t,r)},"#watchAnimation"),yi=new WeakSet,lh=a(function(t){c(this,Nn).delete(t),h(this,oo,wl).call(this,t)},"#unwatchAnimation"),ro=new WeakSet,Sl=a(function(t,e){let n=c(this,K).get(t);n?.name&&n.name!==e.name&&c(this,K).delete(n.name),c(this,K).set(t,e),e.name&&c(this,K).set(e.name,e)},"#indexAnimation"),oo=new WeakSet,wl=a(function(t){let e=c(this,K).get(t);e?.name&&c(this,K).delete(e.name),c(this,K).delete(t)},"#removeAnimationFromIndex"),xi=new WeakSet,uh=a(function(t,e){let n=t.rid,r=li(e.play??e.trigger),i=li(e.reverse??null),l=li(e.reset??null);r&&h(this,Pn,ui).call(this,t,n,r,e,"play"),i&&h(this,Pn,ui).call(this,t,n,i,e,"reverse"),l&&h(this,Pn,ui).call(this,t,n,l,e,"reset")},"#bindActions"),Pn=new WeakSet,ui=a(function(t,e,n,r,i){if(n.mode==="value"||!n.mode){h(this,bi,fh).call(this,t,e,n.value,r,i);return}if(n.mode==="binding"||n.mode==="computed"){let l=this.inject("context").ctx;if(!l)return;let u=this.inject("resolve").dispatch("descriptor",n),f=yl(()=>u(l)),p=f(),m=xl(f,g=>{let v=g;v&&!p&&h(this,jn,fi).call(this,t,r,i),p=v});h(this,Mn,di).call(this,e,m);return}},"#bindActionDescriptor"),bi=new WeakSet,fh=a(function(t,e,n,r,i){if(n==="mount"){i==="play"&&h(this,so,kl).call(this,t,r);return}if(n==="manual")return;if(n==="visible"){let p=t.$el;if(!p)return;let m=!1,g=new IntersectionObserver(v=>{for(let b of v)b.isIntersecting&&!m&&(m=!0,h(this,jn,fi).call(this,t,r,i),g.disconnect())},{threshold:.1});g.observe(p),h(this,Mn,di).call(this,e,()=>g.disconnect());return}let l=t.$el;if(!l)return;let u=n==="focus"?"focusin":n==="focusout"?"focusout":n,f=a(()=>h(this,jn,fi).call(this,t,r,i),"handler");l.addEventListener(u,f),h(this,Mn,di).call(this,e,()=>l.removeEventListener(u,f))},"#bindEvent"),jn=new WeakSet,fi=a(function(t,e,n){let r=t.rid;if(n==="play"){h(this,so,kl).call(this,t,e);return}if(n==="reverse"){let i=c(this,G).get(r);if(!i)return;let l=i.get(e.id);if(!l)return;for(let u of l)(u.playState==="running"||u.playState==="paused")&&u.reverse();return}if(n==="reset"){let i=c(this,G).get(r);if(!i)return;let l=i.get(e.id);if(!l)return;for(let u of l)try{u.cancel()}catch{}l.clear();return}},"#executeAction"),vi=new WeakSet,hh=a(function(t,e){let n=c(this,G).get(t);if(!n)return!1;let r=n.get(e);if(!r||r.size===0)return!1;for(let i of r)if(i.playState==="running"||i.playState==="pending")return!0;return!1},"#isPlayingBinding"),so=new WeakSet,kl=a(function(t,e){if(h(this,vi,hh).call(this,t.rid,e.id))return;let n=e.target?this.resolveTargets(e.target):[t.$el];if(!n.length)return;let r=c(this,K).get(e.id);if(!r)return;let i=e.stagger??0;for(let l=0;l<n.length;l++){let u=n[l];if(!u)continue;let f=r.keyframes.map(b=>({offset:b.offset,...b.properties})),p={duration:e.duration??r.duration??300,easing:e.easing??r.easing??"ease",fill:e.fill??r.fill??"none",direction:e.direction??r.direction??"normal",iterations:e.iterations??r.iterations??1,delay:(e.delay??r.delay??0)+i*l,endDelay:e.endDelay??r.endDelay??0},m=new KeyframeEffect(u,f,p),g=new Animation(m,u.ownerDocument.timeline);g.play();let v=u.dataset?.rid??t.rid;h(this,On,hi).call(this,v,e.id,g)}},"#playOnPuppet"),On=new WeakSet,hi=a(function(t,e,n){c(this,G).has(t)||c(this,G).set(t,new Map);let r=c(this,G).get(t);r.has(e)||r.set(e,new Set),r.get(e).add(n),n.addEventListener("finish",()=>{r.get(e)?.delete(n)},{once:!0}),n.addEventListener("cancel",()=>{r.get(e)?.delete(n)},{once:!0})},"#trackAnimation"),Si=new WeakSet,dh=a(function(t){let e=c(this,G).get(t);if(e){for(let n of e.values())for(let r of n)try{r.cancel()}catch{}c(this,G).delete(t)}},"#cancelAllForRid"),Mn=new WeakSet,di=a(function(t,e){c(this,Jt).has(t)||c(this,Jt).set(t,new Set),c(this,Jt).get(t).add(e)},"#addCleanup"),a(wi,"Animator"),w(wi,"manifest",{name:"Animator",namespace:"animator"});var pi=wi;import{ServiceProvider as eg}from"@jucie.io/engine";import{createSignal as ng,createComputed as ph,createSubscriber as rg,defineStore as og}from"@jucie.io/reactive";function ki(o){return(o("app")?.children??[]).map(t=>{let e=o(t),n=e?.route;if(!n?.path)return null;let r=n.path.startsWith("/")?n.path:`/${n.path}`;return{id:t,name:e.name||null,path:r,dynamic:/(^|\/):[^/]/.test(r),home:n.home===!0,notFound:n.notFound===!0,title:n.title||null,seo:Array.isArray(n.seo)?n.seo:[],staticParams:n.staticParams||[]}}).filter(Boolean)}a(ki,"listRoutes");function $i(o,s={}){return o.replace(/:([^/]+)/g,(t,e)=>s[e]!=null?encodeURIComponent(s[e]):t)}a($i,"buildRoutePath");var Qm=/^[a-z][a-z0-9+.-]*:\/\//i;function Ci(o,s){return o?Qm.test(o)||!s?o:s+(o.startsWith("/")?o:`/${o}`):null}a(Ci,"absoluteUrl");var tg=a(o=>o.siteUrl?o.siteUrl.replace(/\/+$/,""):null,"siteBase");function $l(o,s,t={}){let e=o.seo??{},n=tg(t),r=e.title||o.title||null,i=e.noindex===!0||o.notFound===!0;return{title:r&&t.titleTemplate?t.titleTemplate.replace("%s",r):r,siteTitle:t.title||null,description:e.description||t.description||null,canonical:o.notFound?null:e.canonical?Ci(e.canonical,n):n&&n+s,image:Ci(e.image||t.image,n),robots:i?"noindex":null}}a($l,"resolvePageMeta");var Cl=a(o=>o.mode==="value"?o.value:void 0,"staticDescriptorValue");function Ai(o,s){let t={};for(let e of Array.isArray(o)?o:[]){if(!e?.name)continue;let n=s(e);n!=null&&n!==""&&(t[e.name]=n)}return t}a(Ai,"readSeo");var sg=[["meta","name","description","content",o=>o.description],["link","rel","canonical","href",o=>o.canonical],["meta","name","robots","content",o=>o.robots],["meta","property","og:title","content",o=>o.title],["meta","property","og:description","content",o=>o.description],["meta","property","og:url","content",o=>o.canonical],["meta","property","og:image","content",o=>o.image],["meta","name","twitter:card","content",o=>o.image?"summary_large_image":"summary"]],ct,we,In,ke,Yt,Fn,$e,Ce,Dn,Xt,Ae,Ee,Pi,Ln,uo,Pt,Bn,ji,mh,Re,io,Ne,co,_n,Ei,Te,ao,Oi,gh,Mi,yh,Ii,xh,Fi,bh,Di,vh,Li,Sh,Bi,wh,fo,Al,Pe,lo,_i,kh,Gn,Ri,ho,El,po,Rl,Hn,Ni,Gi=class Gi extends eg{constructor(){super(...arguments);d(this,ji);d(this,Re);d(this,Ne);d(this,_n);d(this,Te);d(this,Oi);d(this,Mi);d(this,Ii);d(this,Fi);d(this,Di);d(this,Li);d(this,Bi);d(this,fo);d(this,Pe);d(this,_i);d(this,Gn);d(this,ho);d(this,po);d(this,Hn);w(this,"routes",[]);d(this,ct,ng(null));d(this,we,null);d(this,In,{});d(this,ke,!1);d(this,Yt,!1);d(this,Fn,new Map);d(this,$e,[]);d(this,Ce,[]);d(this,Dn,new Map);d(this,Xt,!1);d(this,Ae,[]);d(this,Ee,[]);d(this,Pi,null);d(this,Ln,null);d(this,uo,null);d(this,Pt,null);d(this,Bn,null)}initialize(t,e){if(h(this,ji,mh).call(this),e.view!=="design"){if(e.embedded){y(this,Yt,!0);return}y(this,In,{basePath:e.basePath||""}),y(this,Pt,e.server??null),y(this,Ln,e.site??null),y(this,ke,!0),h(this,_n,Ei).call(this),c(this,Pt)||h(this,Li,Sh).call(this)}}getters(){return{currentRoute:()=>this.getCurrentRoute(),pageHead:()=>c(this,Bn),contextPaths:()=>[{path:["$router","currentRoute"],type:"getter",dot:"$router.currentRoute",hint:"Current route (path, params, query, meta)"},{path:["$router","currentRoute","path"],type:"getter",dot:"$router.currentRoute.path",hint:"Current URL path"},{path:["$router","currentRoute","name"],type:"getter",dot:"$router.currentRoute.name",hint:"Current page name"},{path:["$router","currentRoute","params"],type:"getter",dot:"$router.currentRoute.params",hint:"Route parameters object"},{path:["$router","push"],type:"action",dot:"$router.push",hint:"Navigate to a path or location object (adds history entry)"},{path:["$router","replace"],type:"action",dot:"$router.replace",hint:"Navigate replacing the current history entry"},{path:["$router","go"],type:"action",dot:"$router.go",hint:"Move through history by delta (-1 = back, 1 = forward)"},{path:["$router","back"],type:"action",dot:"$router.back",hint:"Go back one history entry"},{path:["$router","forward"],type:"action",dot:"$router.forward",hint:"Go forward one history entry"},{path:["$router","navigate"],type:"action",dot:"$router.navigate",hint:"Navigate to a path or page id (legacy)"}]}}actions(){return{push:t=>this.push(t),replace:t=>this.replace(t),go:t=>this.go(t),back:()=>this.back(),forward:()=>this.forward(),navigate:(t,e)=>this.navigate(t,e),getCurrentUrl:()=>this.getCurrentUrl(),hrefFor:(t,e)=>this.hrefFor(t,e),setCallback:t=>this.setCallback(t),setMemoryMode:t=>this.setMemoryMode(t),getCurrentRoute:()=>this.getCurrentRoute()??null,beforeEach:t=>this.beforeEach(t),afterEach:t=>this.afterEach(t)}}beforeEach(t){return c(this,Ae).push(t),()=>{y(this,Ae,c(this,Ae).filter(e=>e!==t))}}afterEach(t){return c(this,Ee).push(t),()=>{y(this,Ee,c(this,Ee).filter(e=>e!==t))}}async push(t){let e=h(this,Re,io).call(this,t);return this.navigate(e.path,{query:e.query})}async replace(t){let e=h(this,Re,io).call(this,t);return this.navigate(e.path,{replace:!0,query:e.query})}async go(t){if(t===0)return!1;if(t<0)for(let e=0;e<Math.abs(t);e++){if(c(this,$e).length===0)return!1;let n=c(this,ct).call(this),r=c(this,$e).pop();if(n&&c(this,Ce).push(n),e===Math.abs(t)-1){y(this,Xt,!0);let i=await this.navigate(r.path,{replace:!0});return y(this,Xt,!1),i}c(this,ct).call(this,r)}else for(let e=0;e<t;e++){if(c(this,Ce).length===0)return!1;let n=c(this,ct).call(this),r=c(this,Ce).pop();if(n&&c(this,$e).push(n),e===t-1){y(this,Xt,!0);let i=await this.navigate(r.path,{replace:!0});return y(this,Xt,!1),i}c(this,ct).call(this,r)}return!1}setCallback(t){return y(this,we,t),()=>{y(this,we,null)}}setMemoryMode(t=!0){y(this,Yt,!!t)}async navigate(t,e={}){let n=this.inject("log");typeof t=="string"&&(t=t.replace(/\/{2,}/g,"/")),this.routes.length===0&&h(this,_n,Ei).call(this),n.debug(`[Router] navigate("${t}") routes=${this.routes.length}`);let r=c(this,ct).call(this),i=h(this,fo,Al).call(this,t);if(n.debug(`[Router] from=${r?.path??"null"} \u2192 to=${i?.path??"null"}`),!i&&(n?.warn(`Router: No route found for: ${t}`),i=h(this,Di,vh).call(this,t),!i))return!1;let l=r?h(this,Pe,lo).call(this,r.pageId):null,u=h(this,Pe,lo).call(this,i.pageId);for(let f of c(this,Ae))try{let p=await f(i,r);if(p===!1)return!1;if(typeof p=="string")return this.navigate(p,e);if(p!=null&&typeof p=="object"){let m=h(this,Re,io).call(this,p);return this.navigate(m.path,e)}}catch(p){return n?.error("Router: global guard error:",p),!1}if(l?.beforeLeave)try{if(await l.beforeLeave(i,r)===!1)return!1}catch(f){return n?.error("Router: beforeLeave guard error:",f),!1}if(u?.beforeEnter)try{let f=await u.beforeEnter(i,r);if(f===!1)return!1;if(typeof f=="string")return this.navigate(f,e);if(f!=null&&typeof f=="object"){let p=h(this,Re,io).call(this,f);return this.navigate(p.path,e)}}catch(f){return n?.error("Router: beforeEnter guard error:",f),!1}if(!c(this,Xt)&&!e.replace&&r&&(c(this,$e).push(r),c(this,Ce).length=0),c(this,ke)&&!c(this,Pt)&&!c(this,Yt)){let f=h(this,po,Rl).call(this,i.path)+h(this,Ne,co).call(this,i.query);e.replace?window.history.replaceState({},"",f):window.history.pushState({},"",f)}c(this,ct).call(this,i),c(this,ke)&&!c(this,Yt)&&c(this,Ln)&&u&&h(this,Mi,yh).call(this,i,u),n?.log("[Router] signal set \u2192",i.path,i),c(this,we)&&c(this,we).call(this,i.pageId),l?.afterLeave&&Promise.resolve().then(()=>l.afterLeave(i,r)),u?.afterEnter&&Promise.resolve().then(()=>u.afterEnter(i,r));for(let f of c(this,Ee))try{f(i,r)}catch(p){n?.error("Router: afterEach error:",p)}return!0}getCurrentRoute(){return c(this,ct).call(this)}async back(){return this.go(-1)}async forward(){return this.go(1)}getCurrentUrl(){return c(this,ke)?c(this,Pt)?c(this,Pt).url??"/":window.location.pathname+window.location.search:null}hrefFor(t,{params:e,query:n}={}){if(!t)return null;let r=h(this,Te,ao).call(this,["nodes",t,"route","path"]);return r?h(this,po,Rl).call(this,$i(r,e||{}))+h(this,Ne,co).call(this,n):null}};ct=new WeakMap,we=new WeakMap,In=new WeakMap,ke=new WeakMap,Yt=new WeakMap,Fn=new WeakMap,$e=new WeakMap,Ce=new WeakMap,Dn=new WeakMap,Xt=new WeakMap,Ae=new WeakMap,Ee=new WeakMap,Pi=new WeakMap,Ln=new WeakMap,uo=new WeakMap,Pt=new WeakMap,Bn=new WeakMap,ji=new WeakSet,mh=a(function(){y(this,Pi,og(()=>({currentRoute:ph(()=>c(this,ct).call(this)),push:t=>this.push(t),replace:t=>this.replace(t),go:t=>this.go(t),back:()=>this.back(),forward:()=>this.forward(),navigate:(t,e)=>this.navigate(t,e)}),{id:"$router"}))},"#createStoreFacade"),Re=new WeakSet,io=a(function(t){if(typeof t=="string")return{path:t,query:{}};if(t.path){let e=t.query||{},n=h(this,Ne,co).call(this,e);return{path:t.path+n,query:e}}if(t.name){this.routes.length===0&&h(this,_n,Ei).call(this);let e=c(this,Dn).get(t.name);if(!e)return this.inject("log")?.warn(`Router: No route with name "${t.name}"`),{path:"/",query:{}};let n=$i(e.path,t.params||{}),r=t.query||{},i=h(this,Ne,co).call(this,r);return{path:n+i,query:r}}return{path:"/",query:{}}},"#resolveLocation"),Ne=new WeakSet,co=a(function(t){if(!t||Object.keys(t).length===0)return"";let e=new URLSearchParams;for(let[n,r]of Object.entries(t))r!=null&&e.set(n,r);return"?"+e.toString()},"#buildQueryString"),_n=new WeakSet,Ei=a(function(){this.routes=h(this,Oi,gh).call(this),y(this,Fn,new Map),y(this,Dn,new Map);for(let t of this.routes)c(this,Fn).set(t.id,t),t.name&&c(this,Dn).set(t.name,t)},"#loadRoutes"),Te=new WeakSet,ao=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),Oi=new WeakSet,gh=a(function(){return ki(t=>h(this,Te,ao).call(this,["nodes",t])).map(t=>({...t,displayTitle:t.title||t.name||t.id}))},"#parseRoutes"),Mi=new WeakSet,yh=a(function(t,e){var u;(u=c(this,uo))==null||u.call(this);let n=e.notFound||t.notFound===!0,r=a(f=>h(this,Fi,bh).call(this,f),"read"),i=ph(()=>{let f={...c(this,Ln),...Ai(h(this,Te,ao).call(this,["nodes","app","seo"]),r)},p=Ai(h(this,Te,ao).call(this,["nodes",e.id,"route","seo"]),r);return $l({...e,notFound:n,seo:p},t.path,f)});if(c(this,Pt)){y(this,Bn,i());return}let l=a(f=>{y(this,Bn,f),h(this,Ii,xh).call(this,document,f)},"apply");l(i()),y(this,uo,rg(i,l))},"#applyHead"),Ii=new WeakSet,xh=a(function(t,e){let n=e.title||e.siteTitle||null;n&&(t.title=n);let r={...e,title:n};for(let[i,l,u,f,p]of sg){let m=t.head.querySelector(`${i}[${l}="${u}"]`),g=p(r);if(!g){m?.remove();continue}m||(m=t.createElement(i),m.setAttribute(l,u),t.head.appendChild(m)),m.setAttribute(f,g)}},"#writeHead"),Fi=new WeakSet,bh=a(function(t){let e=this.inject("resolve"),n=this.inject("context")?.ctx;return!e||!n?Cl(t):e.dispatch("descriptor",t)(n)},"#readDescriptor"),Di=new WeakSet,vh=a(function(t){let e=this.routes.find(l=>l.notFound)??this.routes.find(l=>l.home||l.path==="/")??null;if(!e||typeof t!="string")return null;let[n,r=""]=t.split("?"),i=h(this,Hn,Ni).call(this,n.startsWith("/")?n:"/"+n);return{pageId:e.id,name:e.name,path:i,params:{},query:h(this,ho,El).call(this,r),meta:e.meta||{},title:e.displayTitle,notFound:!0}},"#notFoundRoute"),Li=new WeakSet,Sh=a(function(){document.addEventListener("click",t=>{if(t.defaultPrevented)return;let e=t.target.closest("a");if(e&&h(this,Bi,wh).call(this,e,t)){t.preventDefault();let n=new URL(e.href);this.navigate(n.pathname+n.search)}}),window.addEventListener("popstate",()=>{c(this,Yt)||this.navigate(window.location.pathname+window.location.search)})},"#setupBrowserIntegration"),Bi=new WeakSet,wh=a(function(t,e){if(e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||t.target&&t.target!=="_self"||t.hasAttribute("download")||t.origin!==window.location.origin||t.hasAttribute("data-external")||t.pathname===window.location.pathname&&t.hash)return!1;let n=h(this,Hn,Ni).call(this,t.pathname);return h(this,fo,Al).call(this,n)!==null},"#shouldHandleLink"),fo=new WeakSet,Al=a(function(t){if(!t)return null;let e=h(this,Pe,lo).call(this,t);if(e)return{pageId:e.id,name:e.name,path:e.path,params:{},query:h(this,Gn,Ri).call(this,t),meta:e.meta||{},title:e.displayTitle};let n=h(this,Hn,Ni).call(this,t.split("?")[0]),r=n.startsWith("/")?n.slice(1):n,i=h(this,Pe,lo).call(this,r);if(i)return{pageId:i.id,name:i.name,path:i.path,params:{},query:h(this,Gn,Ri).call(this,t),meta:i.meta||{},title:i.displayTitle};for(let l of this.routes){let u=h(this,_i,kh).call(this,l.path,n);if(u)return{pageId:l.id,name:l.name,path:n,params:u.params,query:h(this,Gn,Ri).call(this,t),meta:l.meta||{},title:l.displayTitle}}return null},"#matchRoute"),Pe=new WeakSet,lo=a(function(t){return c(this,Fn).get(t)??null},"#findRouteById"),_i=new WeakSet,kh=a(function(t,e){let n=a(f=>(f.startsWith("/")?f.slice(1):f).split("/").filter(m=>m),"normalizePath"),r=n(t),i=n(e);if(r.length!==i.length)return null;let l={};return r.every((f,p)=>{let m=i[p];return f.startsWith(":")?(l[f.slice(1)]=decodeURIComponent(m),!0):f===m})?{params:l}:null},"#matchPath"),Gn=new WeakSet,Ri=a(function(t){let e=t.indexOf("?");return e===-1?{}:h(this,ho,El).call(this,t.slice(e+1))},"#queryOf"),ho=new WeakSet,El=a(function(t){if(!t||t==="?")return{};let e={},n=new URLSearchParams(t.startsWith("?")?t.slice(1):t);for(let[r,i]of n.entries())e[r]=i;return e},"#parseQuery"),po=new WeakSet,Rl=a(function(t){let e=c(this,In).basePath||"",n=t.startsWith("/")?t:"/"+t;return e?e+n:n},"#buildURL"),Hn=new WeakSet,Ni=a(function(t){let e=c(this,In).basePath||"";return e&&t.startsWith(e)?t.slice(e.length)||"/":t},"#stripBasePath"),a(Gi,"Router"),w(Gi,"manifest",{name:"Router",namespace:"router"});var Ti=Gi;import{ServiceProvider as ig}from"@jucie.io/engine";import{injectStore as Nl,createScope as Eh,createChildScope as cg,destroyScope as Rh,createComputed as ag,destroy as lg,onDirty as ug,Surface as fg}from"@jucie.io/reactive";var $h=new Set;function Ch(o,s,{component:t="A component"}={}){return s??Ah(a(()=>{let n=`${t}\0${o}`;$h.has(n)||($h.add(n),console.warn(`[jucie] ${t} uses ${o}, which isn't available here \u2014 pass what it needs in as a prop.`))},"warn"),{})}a(Ch,"guardRuntime");function Ah(o,s=function(){}){let t=null,e=new Proxy(s,{get(n,r){if(r===Symbol.toPrimitive)return i=>i==="number"?NaN:"";if(r==="toString"||r==="valueOf")return()=>"";if(typeof r!="symbol")return o(),typeof s=="function"?e:t??(t=Ah(o))},apply(){o()},has:()=>!1,set:()=>!0});return e}a(Ah,"hollow");var Nh=new Set(["$env","$isolated"]),jt,go,je,Ui,Oh,Wi,Mh,Oe,mo,Zt,Un,Ki,Ih,yo,Pl,qi=class qi extends ig{constructor(){super(...arguments);d(this,Ui);d(this,Wi);d(this,Oe);d(this,Zt);d(this,Ki);d(this,yo);d(this,jt,null);d(this,go,null);d(this,je,new Map)}getters(t){return{ctx:()=>h(this,Oe,mo).call(this,t),snapshot:()=>({stores:h(this,Ui,Oh).call(this,t),provided:h(this,Wi,Mh).call(this)}),contexts:()=>t("registry").getContexts().map(([e,{kind:n,owner:r}])=>({id:e,kind:n,owner:r}))}}actions(t){return{componentContext:(e,{library:n=null,name:r,instanceId:i=null,ctx:l=null})=>{let u=t("registry"),f=`${n??""}:${r}`,p=u.getContext(e.rid);if(p&&p.parent===l&&p.component===f)return p;p&&h(this,Zt,Un).call(this,u,e.rid);let m=h(this,Ki,Ih).call(this,t,e,{library:n,name:r,instanceId:i,ctx:l,component:f});return u.setContext(e.rid,m),m},childContext:(e,n,r,i)=>{let l=t("registry"),u=l.getContext(e);if(u&&u.parent===r)return u.bind(i),u.ctx;u&&h(this,Zt,Un).call(this,l,e);let[f,p]=cg(r,i);return l.setContext(e,{kind:"child",ctx:f,owner:n,parent:r,bind:p,dispose:()=>Rh(f)}),f},onIsolatedEmit:(e,n)=>{let r=h(this,Oe,mo).call(this,t);return"$isolated"in r||r.$provide("$isolated",{emit:(i,l,u)=>c(this,je).get(u)?.(i,l)}),c(this,je).set(e,n),()=>{c(this,je).get(e)===n&&c(this,je).delete(e)}},releaseContext:e=>h(this,Zt,Un).call(this,t("registry"),e),releaseContexts:e=>{let n=t("registry");for(let r of n.getContextIds(e))h(this,Zt,Un).call(this,n,r)},restore:e=>{for(let[r,i]of Object.entries(e?.stores??{})){let l=Nl(r);if(l)for(let[u,f]of Object.entries(i))Ph(l,u)&&(l[u]=f)}let n=h(this,Oe,mo).call(this,t);for(let[r,i]of Object.entries(e?.provided??{}))r in n||n.$provide(r,i)}}}};jt=new WeakMap,go=new WeakMap,je=new WeakMap,Ui=new WeakSet,Oh=a(function(t){let e={};for(let n of t("modules")?.getCurrentStoreNames?.()??[]){let r=Nl(n);if(!r)continue;let i={};for(let l of Object.keys(r)){if(!Ph(r,l))continue;let u=jh(r[l]);u!==void 0&&(i[l]=u)}e[n]=i}return e},"#snapshotStores"),Wi=new WeakSet,Mh=a(function(){let t={};for(let e of fg.from(c(this,jt))?.provided??[]){if(Nh.has(e))continue;let n=jh(c(this,jt)[e]);n!==void 0&&(t[e]=n)}return t},"#snapshotProvided"),Oe=new WeakSet,mo=a(function(t){return c(this,jt)||([et(this,jt)._,et(this,go)._]=Eh(h(this,yo,Pl).call(this,t)),c(this,jt).$provide("$env",{isServer:!!this.config?.server}),t("modules")?.onStoresChange?.(()=>c(this,go).call(this,h(this,yo,Pl).call(this,t)))),c(this,jt)},"#ensureCtx"),Zt=new WeakSet,Un=a(function(t,e){let n=t.getContext(e);if(n){t.deleteContext(e);for(let[r,i]of t.getContexts())i.parent===n.ctx&&h(this,Zt,Un).call(this,t,r);n.dispose()}},"#release"),Ki=new WeakSet,Ih=a(function(t,e,{library:n,name:r,instanceId:i,ctx:l,component:u}){let f=t("registry"),p=a((...O)=>t("resolve").dispatch(...O),"dispatch"),m=a((O,ce)=>this.config?.trace?.(O,ce),"trace"),g=a(()=>f.describeComponent(n,r),"contract"),v=a(()=>i?p("computedNode",i)():null,"instanceNode"),b=g()?.displayName??r,x=h(this,Oe,mo).call(this,t),S={};for(let O of dg)S[O]=Ch(O,x[O],{component:b});let k=new Map,E=a(()=>{let O=g(),ce=v(),At={...S},ae=new Map;for(let st of O?.propNames??[]){let Et=Tl(ce?.props,st),le=Tl(O?.props,st)?.default??null,mr=JSON.stringify([Et,le]),gr=k.get(st);if(!gr||gr.signature!==mr){let Du=Et?p("descriptor",Et):null;gr={signature:mr,computed:ag(()=>{let Lu=Du?Du(l):void 0;return Lu!==void 0?Lu:le})}}ae.set(st,gr),At[st]=gr.computed}for(let st of O?.eventNames??[])At[st]=(...Et)=>{let le=Tl(v()?.events,st);if(!le)return;let mr=p("descriptor",le)(l);return typeof mr=="function"?mr(...Et):void 0};return{values:At,next:ae}},"valuesFor"),I=a((O,ce)=>{for(let[At,ae]of O)ce.get(At)!==ae&&lg(ae.computed)},"retire"),j=E();k=j.next;let[C,R]=Eh(j.values);m("scope:build",{instance:i??r});let T=a(()=>{let O=Object.keys(C).join("|"),{values:ce,next:At}=E(),ae=[...At].filter(([Et,le])=>k.get(Et)!==le).map(([Et])=>Et);R(ce),I(k,At),k=At;let st=Object.keys(C).join("|")!==O;m("scope:rebind",{instance:i??r,changed:ae,reshaped:st}),st&&e.markAsDirty()},"rebind"),_=f.definitionIdOf(n,r),D=[i,_].filter(Boolean).map(O=>ug(p("computedNode",O),T)),ps={};for(let O of g()?.propNames??[])Object.defineProperty(ps,O,{get:()=>C[O],enumerable:!0});let Hp=a(()=>{D.forEach(O=>O()),I(k,new Map),k=new Map,Rh(C)},"dispose");return{kind:"component",ctx:C,props:ps,owner:e.rid,parent:l,component:u,dispose:Hp}},"#buildComponent"),yo=new WeakSet,Pl=a(function(t){let e=t("modules"),n={$router:Nl("$router"),$animator:t("animator")};for(let r of e?.getCurrentStoreNames?.()??[]){let i=`$${r}`;if(i in n||Nh.has(i)){hg(r,i);continue}let l=e.getStore(r);l&&(n[i]=l())}return n},"#rootValues"),a(qi,"Context"),w(qi,"manifest",{name:"Context",namespace:"context"});var Hi=qi,Th=new Set;function hg(o,s){Th.has(o)||(Th.add(o),console.warn(`[Context] Store "${o}" is skipped: ${s} is reserved on the root ctx. Rename the store.`))}a(hg,"warnStoreName");var dg=["$router","$animator"];function Tl(o,s){return Array.isArray(o)?o.find(t=>t?.name===s)??null:null}a(Tl,"findNamed");function Ph(o,s){return typeof Object.getOwnPropertyDescriptor(o,s)?.set=="function"}a(Ph,"isWritable");function jh(o){if(!(o===void 0||typeof o=="function"))try{return JSON.parse(JSON.stringify(o))}catch{return}}a(jh,"jsonValue");import{isStateKey as pg,isCssKey as mg,isIntentKey as gg,normalizeStyle as yg}from"@jucie.io/composed-style";function Fh(o,s,t,e){let n={};for(let{min:r,block:i}of yg(o.style).entries){if(r>0&&!(r<=s))break;for(let l in i)e(l)&&(n[l]=i[l]);for(let l of t){let u=pg(l)?l:`:${l}`;for(let[f,p]of Object.entries(i[u]??{}))e(f)&&(n[f]=p)}}return n}a(Fh,"cascade");function Dh(o,s,t=[]){return Fh(o,s,t,mg)}a(Dh,"resolveAuthoredStyles");function Lh(o,s,t=[]){return Fh(o,s,t,gg)}a(Lh,"resolveAuthoredIntents");import{isStateKey as xg,isCssKey as bg,isIntentKey as vg,baseOf as Sg}from"@jucie.io/composed-style";var Bh="default";function jl(o){if(o===Bh||o==null)return Bh;let s=String(o);return s.startsWith("@")?s:`@${s}`}a(jl,"toBpKey");function wg(o){return typeof o!="string"||xg(o)?o:`:${o}`}a(wg,"normalizeStateKey");function _h(o,s,t){let e=jl(s),n=e==="default"?Sg(o?.style):o?.style?.[e];if(!n||typeof n!="object")return null;for(let r of t??[])if(n=n?.[wg(r)]??n?.[r],!n||typeof n!="object")return null;return n}a(_h,"exactBucket");function Gh(o,s="default",t=[]){let e=_h(o,s,t),n={};for(let r in e??{})vg(r)&&(n[r]=e[r]);return n}a(Gh,"resolveExactAuthoredIntents");function Hh(o,s="default",t=[]){let e=_h(o,s,t),n={};for(let r in e??{})bg(r)&&(n[r]=e[r]);return n}a(Hh,"resolveExactAuthoredStyles");import{contextAt as Vh,contextKey as Jh,sourceOf as Eg,anchorOf as Yh,placementOf as Rg}from"@jucie.io/composed-style";function Ol(o=[]){let s=a((t,e)=>o.includes(t)&&o.includes(e)?"both":o.includes(e)?"end":"start","axis");return{$anchorX:s("left","right"),$anchorY:s("top","bottom")}}a(Ol,"anchorIntents");function Uh(o){if(typeof Element>"u")return null;let s=o?.$el;if(s instanceof Element)return s;let t=s?.$el;return t instanceof Element?t:null}a(Uh,"resolvePuppetEl");function Ml(o){let s=2166136261;for(let t=0;t<o.length;t++)s^=o.charCodeAt(t),s=Math.imul(s,16777619);return s>>>0}a(Ml,"hashRid");var kg=new Set(["rect","offset","parentRid","nextRid","children"]),Wh=a((o,s)=>o.length?o[Math.min(o.length-1,Math.floor(o.length*s))]:0,"percentile"),at=a((o,s=2)=>Number(o.toFixed(s)),"fixed");function Kh(o){let s,t,e=!1,n=a(()=>{t=new Float32Array(512),s={since:o(),wakes:0,heartbeats:0,fullPasses:0,fastPasses:0,slices:0,sliceTotalMs:0,sliceMaxMs:0,slicesOverBudget:0,visited:0,dataBuilds:0,dataMs:0,noopRebuilds:0,geometryPatches:0,dataPatches:0,wholePatches:0,removed:0,messages:0,bytes:0,bytesMax:0,listenerMs:0}},"reset");return n(),{reset:n,count:(r,i=1)=>{s[r]+=i},get profiling(){return e},set profiling(r){e=!!r},slice(r,i){t[s.slices%512]=r,s.slices++,s.sliceTotalMs+=r,r>s.sliceMaxMs&&(s.sliceMaxMs=r),i&&s.slicesOverBudget++},message(r,i,l){s.messages++,s.removed+=i.length,s.listenerMs+=l;for(let u in r){let f=r[u];if(f.id!==void 0){s.wholePatches++;continue}let p=!1;for(let m in f)if(!kg.has(m)){p=!0;break}p?s.dataPatches++:s.geometryPatches++}if(e){let u=JSON.stringify(r).length;s.bytes+=u,u>s.bytesMax&&(s.bytesMax=u)}},snapshot(r){let i=o()-s.since,l=Array.from(t.subarray(0,Math.min(s.slices,512))).sort((p,m)=>p-m),u=s.fullPasses+s.fastPasses,f=i/1e3||1;return{"window (s)":at(f,1),"nodes in graph":r,"passes (full / fast)":`${s.fullPasses} / ${s.fastPasses}`,"passes per second":at(u/f,1),"wakes / heartbeats":`${s.wakes} / ${s.heartbeats}`,"slices (frames worked)":s.slices,"slice ms avg":at(s.slices?s.sliceTotalMs/s.slices:0),"slice ms p50":at(Wh(l,.5)),"slice ms p95":at(Wh(l,.95)),"slice ms max":at(s.sliceMaxMs),"slices that hit the budget":s.slicesOverBudget,"main-thread share (%)":at(s.sliceTotalMs/(i||1)*100,3),"nodes measured":s.visited,"\xB5s per node measured":at(s.visited?(s.sliceTotalMs-s.dataMs-s.listenerMs)/s.visited*1e3:0,1),"data rebuilds":s.dataBuilds,"ms per data rebuild":at(s.dataBuilds?s.dataMs/s.dataBuilds:0,3),"rebuilds that changed nothing":s.noopRebuilds,"messages sent":s.messages,"messages per second":at(s.messages/f,2),"patches (geometry / data / whole)":`${s.geometryPatches} / ${s.dataPatches} / ${s.wholePatches}`,"rids removed":s.removed,"listener ms total (postMessage)":at(s.listenerMs),"bytes total":e?s.bytes:"profiling off","bytes per message avg":e?Math.round(s.messages?s.bytes/s.messages:0):"profiling off","bytes largest message":e?s.bytesMax:"profiling off"}}}}a(Kh,"createNodeGraphStats");import{ServiceProvider as Ng}from"@jucie.io/engine";import{Scope as Xh}from"@jucie.io/reactive";var Il=["flex-direction","flex-wrap","justify-content","align-items","align-content","gap","top","right","bottom","left","inset","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","border-radius","position","display","width","height","max-width","max-height","min-width","min-height","border-style","border-width","border-color","border-top-style","border-top-width","border-top-color","border-right-style","border-right-width","border-right-color","border-bottom-style","border-bottom-width","border-bottom-color","border-left-style","border-left-width","border-left-color","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","background-color","background-image","background-repeat","background-size","background-attachment","color","font-family","font-size","font-weight","font-style","font-variant","line-height","text-align","text-decoration","text-transform","text-overflow","letter-spacing","white-space","overflow","overflow-x","overflow-y","scroll-behavior","cursor","pointer-events","z-index","opacity","transform","transition","filter","box-shadow","grid","object-fit","align-self","flex-grow","flex-shrink","flex-basis","order","grid-column","grid-row"],ZA=new Set(Il);function Wn(o,s,t){let e=s;for(let n of t)if(Array.isArray(e)?e=/^\d+$/.test(n)?e[0]:void 0:typeof e=="string"?e=o.types?.[e]?.[n]:e&&typeof e=="object"?e=e["*"]??e[n]:e=void 0,e===void 0)return;return e}a(Wn,"schemaTypeAt");function $g(o,s){let t=Array.from({length:o.length+1},(e,n)=>[n,...Array(s.length).fill(0)]);for(let e=1;e<=s.length;e++)t[0][e]=e;for(let e=1;e<=o.length;e++)for(let n=1;n<=s.length;n++){let r=o[e-1]===s[n-1]?0:1;t[e][n]=Math.min(t[e-1][n]+1,t[e][n-1]+1,t[e-1][n-1]+r),e>1&&n>1&&o[e-1]===s[n-2]&&o[e-2]===s[n-1]&&(t[e][n]=Math.min(t[e][n],t[e-2][n-2]+1))}return t[o.length][s.length]}a($g,"editDistance");function Cg(o,s){let t=Math.max(1,Math.floor(o.length/3)),e=null,n=1/0;for(let r of s){if(r===o)continue;let i=$g(o.toLowerCase(),r.toLowerCase());i<=t&&i<n&&(e=r,n=i)}return e}a(Cg,"closestName");var qh=a((o,s)=>s.every((t,e)=>o[e]===t),"startsWith");function Ag(o,s){return typeof s=="string"?Object.keys(o.types?.[s]??{}):s&&typeof s=="object"&&!Array.isArray(s)&&s["*"]===void 0?Object.keys(s):[]}a(Ag,"fieldNames");function zh(o,{rootTypes:s,listed:t}){if(!o?.length)return{state:"unverified",reason:"No path chosen"};let[e,...n]=o,r=a(g=>{let v=s.get(g[0]);if(v&&Wn(v.schema,v.type,g.slice(1))!==void 0)return!0;let b=g.join(".");return t.some(x=>x.dot===b)},"isKnown");if(r(o))return{state:"known"};let i=a((g,v)=>{if(g>=o.length)return;let b=Cg(o[g],v);if(!b)return;let x=[...o.slice(0,g),b,...o.slice(g+1)];return r(x)?x:void 0},"suggest"),l=s.get(e);if(l)for(let g=0;g<n.length;g++){if(Wn(l.schema,l.type,n.slice(0,g+1))!==void 0)continue;let v=Wn(l.schema,l.type,n.slice(0,g));return{state:"unverified",reason:`The data shape of ${[e,...n.slice(0,g)].join(".")} doesn\u2019t list \u201C${n[g]}\u201D`,suggestion:i(g+1,Ag(l.schema,v))}}let u=new Set([...s.keys(),...t.map(g=>g.path[0])]);if(!u.has(e))return{state:"unverified",reason:`${e} isn\u2019t defined here; it may come from where this is used`,suggestion:i(0,[...u])};let f=a(g=>t.some(v=>qh(v.path,o.slice(0,g))),"reaches"),p=1;for(;p<o.length&&f(p+1);)p+=1;let m=t.filter(g=>g.path.length===p+1&&qh(g.path,o.slice(0,p))).map(g=>g.path[p]);return{state:"unverified",reason:"Nothing describes this path",suggestion:i(p,m)}}a(zh,"checkBindingPath");function Tg(o){let s=o.descriptor,t=s?s.mode==="binding"?s.binding:null:o.binding;return t?.length?Array.isArray(t)?t:String(t).split("."):null}a(Tg,"repeatBinding");function Pg(o){if(Array.isArray(o))return o[0];if(o&&typeof o=="object"&&o["*"]!==void 0)return o["*"]}a(Pg,"itemType");var jg=1,Zh=1,Og=2,Fl=3,Qh=500,Mg=4,Ig=2,Fg=3,Dg=Object.freeze({x:0,y:0,left:0,top:0,right:0,bottom:0,width:0,height:0}),Lg=["width","height","left","top","right","bottom"],Bg=["node","name","tagName","containerRid","instanceRid","targetable","readOnly","editable","root","temp"],_g=["styles","authoredStyles","inheritedStyles","authoredIntents","inheritedIntents","layoutIntent","parentLayoutIntent","sources","placement"],lt=a(()=>typeof performance<"u"?performance.now():Date.now(),"now"),Kn=a(o=>Math.round(o*100)/100,"round"),F,Me,Ie,Fe,De,Vn,bt,Ot,Jn,Qt,M,z,vt,Le,P,bo,Mt,ft,ht,Be,te,vo,H,So,Yn,ee,tc,td,ec,ed,nc,nd,Z,ut,ne,qn,wo,Dl,rc,rd,oc,od,sc,sd,ko,Ll,$o,Bl,Co,_l,ic,id,cc,cd,ac,ad,lc,ld,uc,ud,_e,xo,fc,fd,hc,hd,dc,dd,pc,pd,mc,md,Ao,Gl,gc,gd,yc,yd,Xn,zi,Zn,Vi,xc,xd,Qn,Ji,Eo,Hl,bc,bd,vc,vd,Sc,Sd,wc,wd,tr,Yi,er,Xi,kc,kd,$c,$d,Cc,Cd,Ac,Ad,Ro,Ul,Ec,Ed,Rc,Rd,nr,Zi,re,zn,Nc,Nd,Tc,Td,Pc,Pd,jc,jd,No,Wl,Oc,Od,To,Kl,Po,ql,jo,zl,Mc,Md,Ic,Id,Oo,Vl,Fc=class Fc extends Ng{constructor(){super(...arguments);d(this,tc);d(this,ec);d(this,nc);d(this,Z);d(this,ne);d(this,wo);d(this,rc);d(this,oc);d(this,sc);d(this,ko);d(this,$o);d(this,Co);d(this,ic);d(this,cc);d(this,ac);d(this,lc);d(this,uc);d(this,_e);d(this,fc);d(this,hc);d(this,dc);d(this,pc);d(this,mc);d(this,Ao);d(this,gc);d(this,yc);d(this,Xn);d(this,Zn);d(this,xc);d(this,Qn);d(this,Eo);d(this,bc);d(this,vc);d(this,Sc);d(this,wc);d(this,tr);d(this,er);d(this,kc);d(this,$c);d(this,Cc);d(this,Ac);d(this,Ro);d(this,Ec);d(this,Rc);d(this,nr);d(this,re);d(this,Nc);d(this,Tc);d(this,Pc);d(this,jc);d(this,No);d(this,Oc);d(this,To);d(this,Po);d(this,jo);d(this,Mc);d(this,Ic);d(this,Oo);d(this,F,{});d(this,Me,!1);d(this,Ie,!1);d(this,Fe,!1);d(this,De,new Set);d(this,Vn,new Set);d(this,bt,new Set);d(this,Ot,null);d(this,Jn,null);d(this,Qt,null);d(this,M,new Set);d(this,z,new Map);d(this,vt,new Map);d(this,Le,!1);d(this,P,null);d(this,bo,null);d(this,Mt,new Set);d(this,ft,null);d(this,ht,null);d(this,Be,0);d(this,te,!0);d(this,vo,0);d(this,H,Kh(lt));d(this,So,0);d(this,Yn,0);d(this,ee,0)}initialize(){let t=this.inject("relay");t.on("scene:change",(e,n,r)=>h(this,nc,nd).call(this,e,n,r)),t.on("schema:change",()=>h(this,tc,td).call(this))}actions(t){let e=t("registry");return{addListener:n=>(c(this,De).add(n),()=>c(this,De).delete(n)),removeListener:n=>{c(this,De).delete(n)},addRenderListener:n=>(c(this,Vn).add(n),()=>c(this,Vn).delete(n)),bindingStatus:(n,r)=>h(this,Oc,Od).call(this,n,r),pauseNodeGraph:()=>{y(this,Ie,!0),h(this,wo,Dl).call(this),y(this,P,null)},resumeNodeGraph:()=>{y(this,Ie,!1),h(this,Z,ut).call(this)},pauseMeasuring:()=>{y(this,Fe,!0),y(this,P,null),h(this,Z,ut).call(this)},resumeMeasuring:()=>{y(this,Fe,!1),y(this,P,null),h(this,Z,ut).call(this)},startNodeGraph:()=>{y(this,Me,!0),y(this,te,!0),h(this,Z,ut).call(this)},disableNodeGraph:()=>{y(this,Me,!1),h(this,wo,Dl).call(this),y(this,P,null)},forceNodeGraph:()=>{y(this,Le,!0),y(this,P,null),h(this,Z,ut).call(this)},requestRids:(n=[],{geometryOnly:r=!1}={})=>{for(let i of n)r&&c(this,z).get(i)==="whole"||c(this,z).set(i,r?"geometry":"whole");h(this,Z,ut).call(this)},isBusy:()=>c(this,ft)!==null||c(this,P)!==null,getManifest:()=>({rids:Object.keys(c(this,F)),digest:h(this,Zn,Vi).call(this)}),getDigest:()=>h(this,Zn,Vi).call(this),getStats:()=>c(this,H).snapshot(Object.keys(c(this,F)).length),resetStats:()=>c(this,H).reset(),setProfiling:n=>{c(this,H).profiling=n},setSelectedRids:n=>{if(c(this,bt).forEach(r=>c(this,M).add(r)),y(this,bt,new Set(n)),n.forEach(r=>c(this,M).add(r)),n.length>0){let r=e.getPuppet(n[0]);y(this,Qt,r?h(this,er,Xi).call(this,r.actor):null)}else y(this,Qt,null);h(this,Z,ut).call(this)},getSelectedRids:()=>[...c(this,bt)],setFocalRid:n=>{let r=c(this,Ot);if(y(this,Ot,n??null),r&&c(this,M).add(r),n){c(this,M).add(n);let i=e.getPuppet(n);i&&y(this,Qt,h(this,er,Xi).call(this,i.actor))}h(this,Z,ut).call(this)},getFocalRid:()=>c(this,Ot),setEditingRid:n=>{let r=c(this,Jn);y(this,Jn,n??null),r&&c(this,M).add(r),n&&c(this,M).add(n),h(this,Z,ut).call(this)},getEditTarget:n=>{let r=h(this,tr,Yi).call(this,e.getActor(n));return{tier:r?.node[".activeBreakpoint"]??null,width:r?.node.bounds.width??0}},getNodeGraph:()=>c(this,F),measureContentHeights:(n={})=>{let r={};for(let[i,l]of Object.entries(n)){let u=h(this,re,zn).call(this,e.getPuppet(i));u&&(r[i]=h(this,ec,ed).call(this,u,l))}return r}}}};F=new WeakMap,Me=new WeakMap,Ie=new WeakMap,Fe=new WeakMap,De=new WeakMap,Vn=new WeakMap,bt=new WeakMap,Ot=new WeakMap,Jn=new WeakMap,Qt=new WeakMap,M=new WeakMap,z=new WeakMap,vt=new WeakMap,Le=new WeakMap,P=new WeakMap,bo=new WeakMap,Mt=new WeakMap,ft=new WeakMap,ht=new WeakMap,Be=new WeakMap,te=new WeakMap,vo=new WeakMap,H=new WeakMap,So=new WeakMap,Yn=new WeakMap,ee=new WeakMap,tc=new WeakSet,td=a(function(){let t=a(e=>e?.some(n=>n.descriptor?.mode==="binding"),"hasBindingPill");for(let e of this.inject("registry").getPuppets()){let n=e.actor?.node,r=Array.isArray(n?.slots)?n.slots:[];(t(zt(n))||r.some(i=>t(zt(i))))&&e.markAsDirty?.()}},"#rerenderPills"),ec=new WeakSet,ed=a(function(t,e){let{style:n}=t,r=["width","height"].map(u=>[u,n.getPropertyValue(u),n.getPropertyPriority(u)]);e>0&&n.setProperty("width",`${e}px`,"important"),n.setProperty("height","auto","important");let i=h(this,Qn,Ji).call(this,t).top,l=i+t.offsetHeight;for(let u of t.querySelectorAll("*")){let f=h(this,Qn,Ji).call(this,u);(f.width>0||f.height>0)&&(l=Math.max(l,f.bottom))}for(let[u,f,p]of r)f?n.setProperty(u,f,p):n.removeProperty(u);return Math.ceil(l-i)},"#contentHeight"),nc=new WeakSet,nd=a(function(t,e,n){t.forEach(r=>c(this,M).add(r)),e.forEach(r=>c(this,M).add(r)),n.forEach(r=>c(this,vt).set(r,Fg)),n.length>0&&y(this,te,!0),c(this,Vn).forEach(r=>{try{r(t,e,n)}catch(i){console.error("Error in node graph render listener:",i)}}),h(this,Z,ut).call(this)},"#onChange"),Z=new WeakSet,ut=a(function(){!c(this,Me)||c(this,Ie)||(c(this,ft)===null&&c(this,H).count("wakes"),y(this,Be,0),c(this,ht)!==null&&(clearTimeout(c(this,ht)),y(this,ht,null)),h(this,ne,qn).call(this))},"#wake"),ne=new WeakSet,qn=a(function(){c(this,ft)!==null||typeof requestAnimationFrame>"u"||y(this,ft,requestAnimationFrame(()=>{y(this,ft,null),h(this,rc,rd).call(this)}))},"#schedule"),wo=new WeakSet,Dl=a(function(){c(this,ft)!==null&&typeof cancelAnimationFrame<"u"&&cancelAnimationFrame(c(this,ft)),y(this,ft,null),c(this,ht)!==null&&clearTimeout(c(this,ht)),y(this,ht,null)},"#cancelLoop"),rc=new WeakSet,rd=a(function(){if(!c(this,Me)||c(this,Ie)||typeof document>"u")return;let t={},e=[],n=!0,r=lt();try{n=c(this,Fe)?h(this,sc,sd).call(this,t,e):h(this,oc,od).call(this,t,e)}catch(u){console.error("Error measuring node graph:",u)}if(h(this,yc,yd).call(this,t,e),c(this,H).slice(lt()-r,!n),c(this,Fe)){y(this,P,null),c(this,vt).size>0&&h(this,ne,qn).call(this);return}if(!n){h(this,ne,qn).call(this);return}let i=c(this,P)?.changed??!1;if(y(this,P,null),y(this,Be,i||c(this,vt).size>0?0:c(this,Be)+1),c(this,Be)<Ig){h(this,ne,qn).call(this);return}let l=this.config?.nodeGraph?.heartbeatMs??Qh;y(this,ht,setTimeout(()=>{y(this,ht,null),y(this,te,!0),c(this,H).count("heartbeats"),h(this,ne,qn).call(this)},l))},"#tick"),oc=new WeakSet,od=a(function(t,e){let n=this.inject("registry"),r=this.config?.nodeGraph?.budgetMs??Mg,i=this.config?.nodeGraph?.maxNodesPerSlice??1/0,l=lt();c(this,P)||h(this,ic,id).call(this);let u=c(this,P);h(this,ko,Ll).call(this,n,e),h(this,$o,Bl).call(this,n,e);for(let p of h(this,uc,ud).call(this)){if(!(p in c(this,F))||t[p])continue;let m=n.getPuppet(p),g=m?h(this,re,zn).call(this,m):null;g?.isConnected&&h(this,_e,xo).call(this,m,g,t)}let f=0;for(;;){let p=c(this,bo).nextNode();if(!p)break;let m=n.getPuppet(p.dataset.rid);if(c(this,Mt).has(m.rid)||(c(this,Mt).add(m.rid),t[m.rid]))continue;let g=h(this,re,zn).call(this,m);if(h(this,_e,xo).call(this,m,g?.isConnected?g:p,t),f++,f>=i||lt()-l>=r)return c(this,H).count("visited",f),!1}return c(this,H).count("visited",f),c(this,H).count(u.full?"fullPasses":"fastPasses"),u.full&&h(this,cc,cd).call(this,t,e),!0},"#runSlice"),sc=new WeakSet,sd=a(function(t,e){let n=this.inject("registry");y(this,P,{full:!1,forceAll:!1,keep:new Set,changed:!1,tolerance:h(this,Co,_l).call(this)}),h(this,ko,Ll).call(this,n,e),h(this,$o,Bl).call(this,n,e);let r=[...c(this,z).keys()];for(let i of c(this,M))i in c(this,F)||r.push(i);for(let i of r){if(t[i])continue;let l=n.getPuppet(i);if(!l||h(this,nr,Zi).call(this,l))continue;let u=h(this,re,zn).call(this,l);u?.isConnected&&h(this,_e,xo).call(this,l,u,t)}return!0},"#runStructureSlice"),ko=new WeakSet,Ll=a(function(t,e){for(let[n,r]of c(this,vt))t.getPuppet(n)?r<=1?(c(this,M).add(n),c(this,vt).delete(n)):c(this,vt).set(n,r-1):(h(this,Xn,zi).call(this,n,e),c(this,vt).delete(n))},"#sweepUnmounted"),$o=new WeakSet,Bl=a(function(t,e){for(let n of c(this,z).keys())t.getPuppet(n)||(c(this,z).delete(n),e.includes(n)||(n in c(this,F)?h(this,Xn,zi).call(this,n,e):e.push(n)))},"#answerRequestsForGoneRids"),Co=new WeakSet,_l=a(function(){let t=this.inject("viewport")?.get?.();return Math.max(.02,.1/(t?.scale||1))},"#measureTolerance"),ic=new WeakSet,id=a(function(){let t=this.inject("registry"),e=c(this,te)||c(this,Le)||lt()-c(this,vo)>=(this.config?.nodeGraph?.heartbeatMs??Qh),n=new Set;if(!e){c(this,Qt)&&n.add(c(this,Qt));for(let u of[c(this,M),c(this,z).keys()])for(let f of u){let p=t.getPuppet(f),m=p?h(this,er,Xi).call(this,p.actor):null;m&&n.add(m)}}let r=this.inject("viewport")?.get?.(),i=h(this,Co,_l).call(this);y(this,P,{full:e,forceAll:c(this,Le),keep:n,changed:!1,tolerance:i}),y(this,te,!1),y(this,Le,!1),c(this,Mt).clear();let l=e?null:h(this,ac,ad).call(this,r);y(this,bo,document.createTreeWalker(document.body,jg,{acceptNode:u=>{let f=u.dataset?.rid;if(!f)return Fl;let p=t.getPuppet(f);if(!p)return Fl;let m=p.actor?.node;return m?.type==="root"?Zh:h(this,nr,Zi).call(this,p)?Fl:l&&m?.bounds&&!n.has(f)&&!h(this,lc,ld).call(this,m.bounds,l)?Og:Zh}}))},"#beginPass"),cc=new WeakSet,cd=a(function(t,e){let n=this.inject("registry");for(let r of n.getPuppets()){if(c(this,Mt).has(r.rid))continue;let i=r.actor?.node?.type==="root";if(!i&&h(this,nr,Zi).call(this,r))continue;let l=h(this,re,zn).call(this,r);!l?.isConnected&&!i||(c(this,Mt).add(r.rid),h(this,_e,xo).call(this,r,l?.isConnected?l:null,t))}for(let r of Object.keys(c(this,F)))c(this,Mt).has(r)||h(this,Xn,zi).call(this,r,e);c(this,M).clear();for(let r of c(this,z).keys())e.includes(r)||e.push(r);c(this,z).clear(),y(this,vo,lt())},"#finishFullPass"),ac=new WeakSet,ad=a(function(t){if(typeof window>"u"||!window.innerWidth||!window.innerHeight)return null;let e=t?.scale||1,n=t?.scroll?.x??0,r=t?.scroll?.y??0,i=window.innerWidth/e,l=window.innerHeight/e,u=-n/e-i/2,f=-r/e-l/2;return{left:u,top:f,right:u+i*2,bottom:f+l*2}},"#visibleDocumentRect"),lc=new WeakSet,ld=a(function(t,e){return t.x+t.width>e.left&&t.x<e.right&&t.y+t.height>e.top&&t.y<e.bottom},"#intersects"),uc=new WeakSet,ud=a(function(){return!c(this,Ot)||c(this,bt).has(c(this,Ot))?c(this,bt):[...c(this,bt),c(this,Ot)]},"#priorityRids"),_e=new WeakSet,xo=a(function(t,e,n){let{rid:r,actor:i}=t,l=c(this,F)[r],u=h(this,xc,xd).call(this,t,e,l),f=c(this,z).get(r);c(this,z).delete(r);let p=!l||c(this,P).forceAll||c(this,M).has(r)||f==="whole"||l.node!==i.node,m=f?u:l?h(this,bc,bd).call(this,l,u):u;if(!p){m&&(n[r]={...n[r],...m});return}let g=lt(),v=h(this,Tc,Td).call(this,t,e,u.parentRid);if(c(this,H).count("dataBuilds"),c(this,H).count("dataMs",lt()-g),l&&h(this,gc,gd).call(this,l,v),c(this,M).delete(r),!l||f==="whole"){n[r]={...v,...u};return}let b=h(this,fc,fd).call(this,l,v);b||m?n[r]={...n[r],...b,...m}:c(this,H).count("noopRebuilds")},"#process"),fc=new WeakSet,fd=a(function(t,e){let n=null;for(let r of Bg)t[r]!==e[r]&&((n??(n={}))[r]=e[r]);for(let r of _g)h(this,hc,hd).call(this,t[r],e[r])||((n??(n={}))[r]=e[r]);return h(this,dc,dd).call(this,t.contextPaths,e.contextPaths)||((n??(n={})).contextPaths=e.contextPaths),h(this,pc,pd).call(this,t.componentMeta,e.componentMeta)||((n??(n={})).componentMeta=e.componentMeta),n},"#dataPatch"),hc=new WeakSet,hd=a(function(t,e){if(t===e)return!0;if(!t||!e)return!1;let n=0;for(let r in t){if(t[r]!==e[r])return!1;n++}for(let r in e)n--;return n===0},"#sameMap"),dc=new WeakSet,dd=a(function(t,e){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n]&&(t[n]?.dot!==e[n]?.dot||t[n]?.hint!==e[n]?.hint))return!1;return!0},"#samePaths"),pc=new WeakSet,pd=a(function(t,e){return t===e?!0:!t||!e?!1:t.displayName===e.displayName&&t.library===e.library&&t.tagName===e.tagName&&h(this,mc,md).call(this,t.props,e.props)&&h(this,Ao,Gl).call(this,t.emits,e.emits)&&h(this,Ao,Gl).call(this,t.slots,e.slots)},"#sameMeta"),mc=new WeakSet,md=a(function(t=[],e=[]){if(t===e)return!0;if(t.length!==e.length)return!1;let n=a(r=>JSON.stringify([r?.name,r?.type,r?.default,r?.options]),"shape");return t.every((r,i)=>n(r)===n(e[i]))},"#sameProps"),Ao=new WeakSet,Gl=a(function(t=[],e=[]){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n]&&(t[n]?.name??t[n])!==(e[n]?.name??e[n]))return!1;return!0},"#sameNamed"),gc=new WeakSet,gd=a(function(t,e){let n=t.node??{},r=e.node??{};if(Jh(Nt(n))!==Jh(Nt(r))){let i=[...t.children??[]];for(;i.length>0;){let l=i.pop();c(this,M).add(l),c(this,F)[l]?.node?.type==="slot"&&i.push(...c(this,F)[l].children??[])}}if(r.bounds&&(n[".activeBreakpoint"]!==r[".activeBreakpoint"]||n.bounds?.width!==r.bounds.width)){let i=[...t.children??[]];for(;i.length>0;){let l=i.pop();c(this,M).add(l);let u=c(this,F)[l]?.children;u&&i.push(...u)}}},"#invalidateDependants"),yc=new WeakSet,yd=a(function(t,e){let n=Object.keys(t);if(n.length===0&&e.length===0)return;for(let l of n)l in c(this,F)||(et(this,Yn)._++,y(this,ee,(c(this,ee)^Ml(l))>>>0)),c(this,F)[l]={...c(this,F)[l],...t[l]};c(this,P)&&(c(this,P).changed=!0),et(this,So)._++;let r=h(this,Zn,Vi).call(this),i=lt();c(this,De).forEach(l=>{try{l(t,e,!1,r)}catch(u){console.error("Error in node graph listener:",u)}}),c(this,H).message(t,e,lt()-i)},"#emit"),Xn=new WeakSet,zi=a(function(t,e){t in c(this,F)&&(delete c(this,F)[t],et(this,Yn)._--,y(this,ee,(c(this,ee)^Ml(t))>>>0),c(this,M).delete(t),e.push(t),c(this,P)&&(c(this,P).changed=!0))},"#remove"),Zn=new WeakSet,Vi=a(function(){return{seq:c(this,So),count:c(this,Yn),hash:c(this,ee)}},"#digest"),xc=new WeakSet,xd=a(function(t,e,n){let r=t.actor.node,i=r?.type==="root",l=i?Dg:h(this,Qn,Ji).call(this,e),u=!n?.offset||!h(this,Eo,Hl).call(this,n.rect,l)||c(this,M).has(t.rid)||c(this,z).has(t.rid)||c(this,P).forceAll,f=i?null:r.type==="slot"&&t.instanceRid?t.instanceRid:e?.parentElement?.dataset?.rid;return{rect:l,offset:!e||i?null:u?h(this,wc,wd).call(this,e):n.offset,parentRid:f,nextRid:e?.nextElementSibling?.dataset?.rid??null,children:h(this,Nc,Nd).call(this,t)}},"#measure"),Qn=new WeakSet,Ji=a(function(t){let e=t.getBoundingClientRect(),n=this.inject("viewport")?.get?.(),r=n?.scale||1,i=n?.scroll?.x??0,l=n?.scroll?.y??0,u=Kn((e.left-i)/r),f=Kn((e.top-l)/r),p=Kn(e.width/r),m=Kn(e.height/r);return{x:u,y:f,left:u,top:f,right:Kn(u+p),bottom:Kn(f+m),width:p,height:m}},"#documentRect"),Eo=new WeakSet,Hl=a(function(t,e){if(t===e)return!0;if(!t||!e)return!1;let n=c(this,P).tolerance;return Math.abs(t.left-e.left)<=n&&Math.abs(t.top-e.top)<=n&&Math.abs(t.width-e.width)<=n&&Math.abs(t.height-e.height)<=n},"#sameRect"),bc=new WeakSet,bd=a(function(t,e){let n=null;return h(this,Eo,Hl).call(this,t.rect,e.rect)?h(this,vc,vd).call(this,t.offset,e.offset)||(n={offset:e.offset}):n={rect:e.rect,offset:e.offset},t.parentRid!==e.parentRid&&((n??(n={})).parentRid=e.parentRid),t.nextRid!==e.nextRid&&((n??(n={})).nextRid=e.nextRid),h(this,Sc,Sd).call(this,t.children,e.children)||((n??(n={})).children=e.children),n},"#geometryPatch"),vc=new WeakSet,vd=a(function(t,e){if(t===e)return!0;if(!t||!e)return!1;for(let n of Lg)if(t[n]!==e[n])return!1;return!0},"#sameOffset"),Sc=new WeakSet,Sd=a(function(t=[],e=[]){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},"#sameList"),wc=new WeakSet,wd=a(function(t){let e={};e.width=t.offsetWidth,e.height=t.offsetHeight,e.left=t.offsetLeft,e.top=t.offsetTop;let n=t.parentElement;return n?(e.right=n.offsetWidth-(e.left+e.width),e.bottom=n.offsetHeight-(e.top+e.height)):(e.right=0,e.bottom=0),e},"#parseOffset"),tr=new WeakSet,Yi=a(function(t){let e=this.inject("registry"),n=t;for(;n;){if(n.node?.bounds)return n;if(n.parentId==null)return null;n=e.getActor(n.parentId)}return null},"#findBoundsAncestor"),er=new WeakSet,Xi=a(function(t){return h(this,tr,Yi).call(this,t)?.firstPuppetRid??null},"#findContainerRid"),kc=new WeakSet,kd=a(function(t,e,n,r){let i={},u=r&&n&&typeof window<"u"?window.getComputedStyle(n):null;for(let f of Il)f in t||(f in e?i[f]=e[f]:u&&(i[f]=u.getPropertyValue(f)));return i},"#resolveInherited"),$c=new WeakSet,$d=a(function(t,e,n){let r={};for(let i in e){let l=Eg(t.style,i,n);l&&(r[i]=l)}return r},"#sourcesOf"),Cc=new WeakSet,Cd=a(function(t,e,n,r){let i=Array.isArray(t.anchor)&&t.anchor.length?Ol(t.anchor):{},l=e.$anchorX??i.$anchorX??Yh({},n,"x"),u=e.$anchorY??i.$anchorY??Yh({},n,"y"),f=e.$flow??(t.sticky?"sticky":"auto"),p=Rg(r,{$flow:f},{rawPosition:n.position??null,sticky:t.sticky??null});return{flow:f,mode:p,anchorX:l,anchorY:u}},"#placementOf"),Ac=new WeakSet,Ad=a(function(t,e){let n={};for(let r in t)r in e||(n[r]=t[r]);return n},"#withoutKeys"),Ro=new WeakSet,Ul=a(function(t){return t?.type!=="instance"||!t.component?null:this.inject("registry").describeComponent(t.library,t.component)},"#resolveComponentMeta"),Ec=new WeakSet,Ed=a(function(t,e){let n=t.node;if(n.type==="instance"){let r=this.inject("registry"),i=n?.component;if(!i)return null;let u=r.getActor(r.definitionIdOf(n.library,i))?.node?.name;return u||h(this,Ro,Ul).call(this,n)?.displayName||i}return n.type==="frame"||n.type==="component"?n.name||null:n.name||n.tagName||e?.tagName?.toLowerCase()||null},"#resolveName"),Rc=new WeakSet,Rd=a(function(t){return c(this,bt).has(t)},"#isSelected"),nr=new WeakSet,Zi=a(function(t){return!!t.instanceRid&&t.actor?.node?.type!=="slot"},"#isInstanceInternal"),re=new WeakSet,zn=a(function(t){return Uh(t)},"#resolveEl"),Nc=new WeakSet,Nd=a(function(t){return t.actor?.node?.type==="instance"?t.getSlotRids():t.actor?.node?.type==="slot"?t.instanceRid?t.runtime.registry.getPuppet(t.instanceRid).getSlotChildren(t.actor.id):[]:[...t.getChildrenRids()]},"#childRids"),Tc=new WeakSet,Td=a(function(t,e,n){let r=this.inject("registry"),{rid:i,actor:l}=t,{id:u,node:f}=l,p=e?h(this,tr,Yi).call(this,l):null,m=p?.node.bounds.width??1/0,g=p?.node[".activeBreakpoint"]??null,v=f[".interactionState"]??[],b=e?Dh(f,m,v):{},x=e?g==null?b:Hh(f,g,v):{},S=h(this,Rc,Rd).call(this,i),k=e?h(this,kc,kd).call(this,x,b,e,S):{},E={...k,...x},I=n?r.getActorId(n):null,j=e?Lh(f,m,v):{},C=e?g==null?j:Gh(f,g,v):{},R=Number.isFinite(m)?`@${Math.floor(m)}`:"default",T=this.inject("styleContext"),_=I?Vh(T.childContextOf(I),R):{},D={id:u,node:f,styles:E,authoredStyles:x,inheritedStyles:k,authoredIntents:C,inheritedIntents:h(this,Ac,Ad).call(this,j,C),sources:e?h(this,$c,$d).call(this,f,{...b,...j},m):{},layoutIntent:Vh(l.context??Nt(f),R),parentLayoutIntent:_,placement:e?h(this,Cc,Cd).call(this,f,j,b,_):{},name:h(this,Ec,Ed).call(this,l,e),containerRid:p?.firstPuppetRid??null,tagName:f.type==="slot"?"slot":f.tagName||e?.tagName?.toLowerCase(),instanceRid:t.instanceRid,targetable:h(this,Pc,Pd).call(this,f,t),readOnly:h(this,jc,jd).call(this,f,t),editable:f.childrenType==="text",root:n==="app",temp:n==="temp",contextPaths:void 0,componentMeta:void 0};return(S||i===c(this,Jn)||f.type==="root")&&(D.contextPaths=h(this,No,Wl).call(this,t),f.type==="instance"&&(D.componentMeta=h(this,Ro,Ul).call(this,f))),D},"#buildData"),Pc=new WeakSet,Pd=a(function(t,e){let n=t.type;if(n==="slot"&&e.instanceRid)return!0;if(n==="instance"||n==="slot"||e.instanceRid)return!1;let r=t.childrenType;return r==="*"||r==="children"||Array.isArray(r)},"#resolveTargetable"),jc=new WeakSet,jd=a(function(t,e){return t.type==="slot"&&!!e.instanceRid},"#resolveReadOnly"),No=new WeakSet,Wl=a(function(t){let e=this.inject("modules")?.getContextPaths?.()??[],n=h(this,To,Kl).call(this,t.rid),r=h(this,jo,zl).call(this,n),i=h(this,Ic,Id).call(this,t?.ctx);if(i){let u=new Set(i.paths.map(({dot:m})=>m)),f=h(this,Oo,Vl).call(this,n).filter(({dot:m})=>!u.has(m)),p=h(this,Po,ql).call(this,[...i.paths,...f],r);return i.reachesRoot?[...e,...p]:p}let l=h(this,Po,ql).call(this,h(this,Oo,Vl).call(this,n),r);return l.length>0?[...e,...l]:e},"#resolveContextPaths"),Oc=new WeakSet,Od=a(function(t,e){let n=this.inject("modules"),r=new Map;for(let i of n?.getCurrentStoreNames?.()??[]){let l=n.getSchema(i);l&&r.set(`$${i}`,{schema:l,type:l.fields})}for(let[i,l]of h(this,jo,zl).call(this,h(this,To,Kl).call(this,t.rid)))r.set(i,l);return zh(e,{rootTypes:r,listed:h(this,No,Wl).call(this,t)})},"#bindingStatus"),To=new WeakSet,Kl=a(function(t){let e=this.inject("registry"),n=[],r=new Set,i=e.getActor(e.getActorId(t));for(;i&&!r.has(i.id);)r.add(i.id),i.node?.repeat&&n.push(i.node.repeat),i=i.parentId!=null?e.getActor(i.parentId):null;return n},"#enclosingRepeats"),Po=new WeakSet,ql=a(function(t,e){return t.flatMap(n=>{let r=n.path.length===1?e.get(n.dot):null;return r?Ys(n.path,r.type,r.schema,void 0,"local"):[n]})},"#typedLocals"),jo=new WeakSet,zl=a(function(t){let e=new Map;for(let n of[...t].reverse()){if(!n.as)continue;e.delete(n.as);let r=Tg(n);if(!r)continue;let[i,...l]=r,u=e.get(i)??h(this,Mc,Md).call(this,i);if(!u)continue;let f=Pg(Wn(u.schema,u.type,l));f!==void 0&&e.set(n.as,{schema:u.schema,type:f})}return e},"#repeatLocalTypes"),Mc=new WeakSet,Md=a(function(t){if(!t?.startsWith("$"))return null;let e=this.inject("modules")?.getSchema?.(t.slice(1));return e?{schema:e,type:e.fields}:null},"#storeRootType"),Ic=new WeakSet,Id=a(function(t){let e=t?Xh.from(t):null,n=Xh.from(this.inject("context")?.ctx);if(!e||e===n)return null;let r=[],i=new Set,l=!1;for(;e;e=e.parent){if(e===n){l=!0;break}for(let u of Object.keys(e.surface))i.has(u)||(i.add(u),r.push({path:[u],type:"local",dot:u}))}return{paths:r.reverse(),reachesRoot:l}},"#scopePaths"),Oo=new WeakSet,Vl=a(function(t){let e=[],n=new Set;for(let r of t)for(let i of[r.as,r.index,r.key])!i||n.has(i)||(n.add(i),e.push({path:[i],type:"local",dot:i}));return e},"#repeatLocalPaths"),a(Fc,"NodeGraph"),w(Fc,"manifest",{name:"NodeGraph",namespace:"nodeGraph"});var Qi=Fc;import{ServiceProvider as Gg}from"@jucie.io/engine";var nt,rt,Ge,He,St,Io,Fo,Jl,Ue,Mo,Lc=class Lc extends Gg{constructor(){super(...arguments);d(this,Fo);d(this,Ue);d(this,nt,1);d(this,rt,{x:0,y:0});d(this,Ge,0);d(this,He,0);d(this,St,{size:12,color:"rgba(139, 139, 139, 0.15)",dotSize:1,visible:!0});d(this,Io,"#1E1E25")}initialize(){h(this,Fo,Jl).call(this),h(this,Ue,Mo).call(this)}actions(t,e){return{set:({scale:n,scroll:r,width:i,height:l})=>{y(this,nt,n??c(this,nt)),y(this,rt,r??c(this,rt)),y(this,Ge,i??c(this,Ge)),y(this,He,l??c(this,He)),h(this,Fo,Jl).call(this),h(this,Ue,Mo).call(this)},get:()=>({scale:c(this,nt),scroll:c(this,rt),width:c(this,Ge),height:c(this,He)}),setGrid:n=>{Object.assign(c(this,St),n),h(this,Ue,Mo).call(this)},setBackground:n=>{y(this,Io,n),h(this,Ue,Mo).call(this)},isFrameVisible:n=>{if(!n)return!0;let r=c(this,Ge)/c(this,nt),i=c(this,He)/c(this,nt),l=-c(this,rt).x/c(this,nt)-r/2,u=-c(this,rt).y/c(this,nt)-i/2,f=l+r*2,p=u+i*2;return n.x+n.width>l&&n.x<f&&n.y+n.height>u&&n.y<p}}}};nt=new WeakMap,rt=new WeakMap,Ge=new WeakMap,He=new WeakMap,St=new WeakMap,Io=new WeakMap,Fo=new WeakSet,Jl=a(function(){typeof document>"u"||(document.body.style.transform=`translate(${c(this,rt).x}px, ${c(this,rt).y}px) scale(${c(this,nt)})`)},"#applyTransform"),Ue=new WeakSet,Mo=a(function(){if(typeof document>"u")return;let t=document.documentElement,e=c(this,St).size*c(this,nt);for(;e<c(this,St).size;)e*=2;t.style.backgroundColor=c(this,Io),c(this,St).visible?(t.style.backgroundImage=`radial-gradient(circle, ${c(this,St).color} ${c(this,St).dotSize}px, transparent ${c(this,St).dotSize}px)`,t.style.backgroundSize=`${e}px ${e}px`,t.style.backgroundPosition=`${c(this,rt).x}px ${c(this,rt).y}px`):t.style.backgroundImage="none"},"#applyGrid"),a(Lc,"Viewport"),w(Lc,"manifest",{name:"Viewport",namespace:"viewport"});var Dc=Lc;import{ServiceProvider as Hg}from"@jucie.io/engine";function Fd(o,s=()=>{}){let t=[];for(let e of o){if(typeof e!="function"||!e._name)throw new Error("Conversions must be made with defineConversions");for(let[n,{summary:r,convert:i}]of Object.entries(e(s))){let l=`${e._name}:${n}`;if(typeof i!="function")throw new Error(`Conversion ${l} has no convert function`);t.push({name:l,summary:r??l,convert:i})}}return t}a(Fd,"listConversions");function Dd(o,s,t){let e=[],n=s;for(let r of o){let i=r.convert(n,t);if(!i)continue;e.push({conversion:r,changes:i});let l={...n};for(let[u,f]of Object.entries(i))f===void 0?delete l[u]:l[u]=f;n=l}return{node:n,steps:e}}a(Dd,"convertNode");var Do,rr,Lo,Bo,Yl,or,Bc,Gc=class Gc extends Hg{constructor(){super(...arguments);d(this,Bo);d(this,or);d(this,Do,[]);d(this,rr,null);d(this,Lo,!1)}actions(t,e){let n=t("state");for(let r of e.conversions)h(this,Bo,Yl).call(this,t,r);return{use:(...r)=>r.flatMap(i=>h(this,Bo,Yl).call(this,t,i)),convert:()=>(y(this,Lo,!0),h(this,or,Bc).call(this,n,Object.keys(n.get(["nodes"])??{})))}}initialize(t){let e=t("state");y(this,rr,e.onChange?.addListener(n=>{if(!c(this,Lo))return;let r=new Set,i=!1;for(let{path:l}of n)l?.[0]==="nodes"&&(l.length===1?i=!0:r.add(l[1]));i?h(this,or,Bc).call(this,e,Object.keys(e.get(["nodes"])??{})):r.size&&h(this,or,Bc).call(this,e,[...r])})??null)}uninstall(){var t;(t=c(this,rr))==null||t.call(this),y(this,rr,null)}};Do=new WeakMap,rr=new WeakMap,Lo=new WeakMap,Bo=new WeakSet,Yl=a(function(t,e){let n=Fd([e],t);return c(this,Do).push(...n),n.map(({name:r})=>r)},"#use"),or=new WeakSet,Bc=a(function(t,e){let n=[];for(let l of e){if(l.startsWith("."))continue;let u=t.get(["nodes",l]);if(u)for(let{conversion:f,changes:p}of Dd(c(this,Do),u,l).steps)n.push({id:l,conversion:f,changes:p})}if(!n.length)return[];let r=a(()=>{for(let{id:l,changes:u}of n)for(let[f,p]of Object.entries(u))p===void 0?t.remove(["nodes",l,f]):t.set(["nodes",l,f],p)},"write");t.history?t.history.untracked(r):r();let i=new Map;for(let{id:l,conversion:u}of n)i.has(u.name)||i.set(u.name,{name:u.name,summary:u.summary,ids:[]}),i.get(u.name).ids.push(l);return[...i.values()]},"#apply"),a(Gc,"Converter"),w(Gc,"manifest",{name:"Converter",namespace:"converter",defaults:{conversions:[]}});var _c=Gc;import{createDefinition as Ug}from"@jucie.io/engine";var Ld=Ug("nodeConversions",[Object]);var Xl=a(o=>o.replace(/\\([\\`*_[\]])/g,"$1"),"unescape"),Wg=[[/^\{\{[^}]+\}\}/,o=>[o[0],{}]],[/^\\([\\`*_[\]])/,o=>[o[1],{}]],[/^\[((?:\\.|[^\]\n])*)\]\(([^)\s]*)\)/,o=>[Xl(o[1]),{link:{href:o[2]}}]],[/^\*\*((?:\\.|[^*\n])+)\*\*/,o=>[Xl(o[1]),{bold:!0}]],[/^_((?:\\.|[^_\n])+)_/,o=>[Xl(o[1]),{italic:!0}]],[/^`([^`\n]+)`/,o=>[o[1],{code:!0}]]];function Kg(o){let s=[],t=0;for(;t<o.length;){let e=o.slice(t),n=null,r=1;for(let[u,f]of Wg){let p=e.match(u);if(p){n=f(p),r=p[0].length;break}}let[i,l]=n??[o[t],{}];s.push({text:i,formats:l}),t+=r}return qs(s)}a(Kg,"markdownRuns");function qg(o){let s=Kg(o).flatMap(({text:t,formats:e})=>Cn(t).map(n=>({...n,formats:{...e}})));return s.length?s:A("")}a(qg,"markdownToSegments");function zg(o){return o.flatMap(s=>s.descriptor||s.block||!s.text?.includes("{{")?[s]:Cn(s.text).map(t=>({...t,formats:{...s.formats}})))}a(zg,"pillsInRuns");function Bd(o){if(typeof o=="string")return Cn(o);switch(o.mode??"value"){case"value":{let s=o.value==null?"":String(o.value);return o.specificPatterns?.includes("markdown")?qg(s):Cn(s)}case"binding":{let{binding:s}=o;if(!s?.length)return A("");let t=typeof s=="string"?s.split("."):s;return[Vt({...o,binding:t})]}case"computed":return[Vt({...o})];case"code":{let s=Kt(o.code,"code");return s?[Vt({...o,mode:"computed",computed:s,code:null})]:A("")}default:return null}}a(Bd,"segmentsFor");var _d=Ld("text",()=>({textContentToSegments:{summary:"text \u2192 rich text",convert(o,s){if(s.startsWith("."))return null;if(Array.isArray(o.textSegments))return{textContent:zg(o.textSegments),textSegments:void 0};let{textContent:t}=o;if(t==null||Array.isArray(t))return null;let e=Bd(t);return e?{textContent:e}:null}},slotFillsToSegments:{summary:"slot text \u2192 rich text",convert(o,s){if(s.startsWith(".")||!Array.isArray(o.slots))return null;let t=!1,e=o.slots.map(n=>{let r=n?.textContent;if(r==null||Array.isArray(r))return n;let i=Bd(r);return i?(t=!0,{...n,textContent:i}):n});return t?{slots:e}:null}}}));var Gd=[_d];import{ServiceProvider as Vg}from"@jucie.io/engine";function Hd(o){return o.replace(/[/.]/g,"-").replace(/[^a-zA-Z0-9_-]/g,"")}a(Hd,"pathToSlug");var Jg=/^\{(.+)\}$/,dt,We,_o,sr,Hc,Go,Zl,Ho,Ql,Wc,Ud,Uo,tu,Kc=class Kc extends Vg{constructor(){super(...arguments);d(this,We);d(this,sr);d(this,Go);d(this,Ho);d(this,Wc);d(this,Uo);d(this,dt,null)}initialize(){if(this.config?.staticStyles?.tokens)return;let t=this.config?.scene?null:this.inject("state")?.matcher;t?(t.createMatcher(["tokens"],()=>h(this,sr,Hc).call(this)),t.createMatcher([".libraries"],()=>h(this,sr,Hc).call(this))):h(this,sr,Hc).call(this)}actions(){return{toCssVar:t=>`var(--${t})`,resolveToken:t=>h(this,We,_o).call(this,["tokens",t])??null,resolveByPath:t=>{let e=h(this,We,_o).call(this,["tokens"])??{};for(let[n,r]of Object.entries(e))if(r?.$path===t)return{id:n,token:r,cssValue:h(this,Uo,tu).call(this,r.$value,r.$type)};return null}}}getters(){return{contextPaths:()=>[],cssText:()=>h(this,Go,Zl).call(this)}}};dt=new WeakMap,We=new WeakSet,_o=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),sr=new WeakSet,Hc=a(function(){if(typeof document>"u")return;let t=h(this,Go,Zl).call(this);!t&&!c(this,dt)&&!document.getElementById("jucie-tokens")||(c(this,dt)||(y(this,dt,document.getElementById("jucie-tokens")),c(this,dt)||(y(this,dt,document.createElement("style")),c(this,dt).id="jucie-tokens",document.head.appendChild(c(this,dt)))),c(this,dt).textContent=t,t&&this.inject("sceneCompiler")?.forceNodeGraph?.())},"#injectCSS"),Go=new WeakSet,Zl=a(function(){let t=h(this,We,_o).call(this,["tokens"])??{},e=[],n=new Set(Object.keys(t));for(let r of Object.values(h(this,We,_o).call(this,[".libraries"])??{})){let i=r?.tokens??{},l=Object.fromEntries(Object.entries(i).filter(([u])=>!n.has(u)));for(let u of Object.keys(l))n.add(u);e.push(...h(this,Ho,Ql).call(this,l,i))}return e.push(...h(this,Ho,Ql).call(this,t,t)),e.length?(this.config?.embedded||e.push(...h(this,Wc,Ud).call(this,t)),`:root {
16
+ ${e.join(`
17
+ `)}
18
+ }`):""},"#buildCss"),Ho=new WeakSet,Ql=a(function(t,e){let n=new Map;for(let[r,i]of Object.entries(e))i?.$path&&n.set(i.$path,r);return Object.entries(t).filter(([,r])=>r!=null).map(([r,i])=>{let l=typeof i.$value=="string"&&i.$value.match(Jg);if(l){let f=l[1].replace(/\./g,"/"),p=n.get(f),m=p?`var(--${p})`:"";return` --${r}: ${m};`}let u=h(this,Uo,tu).call(this,i.$value,i.$type);return` --${r}: ${u};`})},"#idDeclarations"),Wc=new WeakSet,Ud=a(function(t){let e=new Set,n=[];for(let[r,i]of Object.entries(t)){if(!i?.$path)continue;let l=Hd(i.$path);!l||e.has(l)||(e.add(l),n.push(` --${l}: var(--${r});`))}return n},"#readableNames"),Uo=new WeakSet,tu=a(function(t,e){return t==null?"":typeof t=="string"?t:typeof t=="number"?String(t):typeof t=="object"?Array.isArray(t)?e==="cubicBezier"?`cubic-bezier(${t.join(", ")})`:t.join(", "):"value"in t&&"unit"in t?`${t.value}${t.unit}`:"hex"in t?t.hex:"":String(t)},"#toCSSValue"),a(Kc,"TokenResolver"),w(Kc,"manifest",{name:"TokenResolver",namespace:"tokenResolver"});var Uc=Kc;import{ServiceProvider as sy}from"@jucie.io/engine";function N(o){return String(o).replace(/"/g,"&quot;")}a(N,"escapeAttribute");import{baseOf as Yg,classifyKey as Xg}from"@jucie.io/composed-style";function Wd(o){let s=a(e=>Object.entries(e??{}).map(([n,r])=>{if(r&&typeof r=="object"){let i=s(r);return i?`${n}: { ${i} }`:null}return`${n}: ${r}`}).filter(Boolean).join("; "),"decls"),t=[s(Yg(o))];for(let e of Object.keys(o)){if(e==="default"||Xg(e)!=="condition")continue;let n=s(o[e]);n&&t.push(`${e}: { ${n} }`)}return t.filter(Boolean).join(" | ")}a(Wd,"formatStyle");function eu(o){let s=String(o??"").trim(),t=s.match(/^function\s*\([^)]*\)\s*\{\s*return\s+([\s\S]*?);?\s*\}$/),e=(t&&!t[1].includes(`
19
+ `)?t[1]:s).replace(/\s+/g," ");return e.length>120?`${e.slice(0,119)}\u2026`:e}a(eu,"previewCode");function Zg(o){let s=a(t=>Math.round(t??0),"round");return`${s(o.x)},${s(o.y)},${s(o.width)}x${s(o.height)}`}a(Zg,"formatBounds");function nu(o){return Array.isArray(o)?o.join("."):o??""}a(nu,"formatBinding");function qc(o){return!o||typeof o!="object"?null:o.mode==="binding"&&o.binding?`{{${nu(o.binding)}}}`:o.mode==="computed"&&o.computed?`{fn: ${eu(o.computed)}}`:o.mode==="code"&&o.code?`{fn: ${eu(o.code)}}`:o.expression?`{{${o.expression}}}`:null}a(qc,"formatDescriptor");function Qg(o){return o.map(s=>{let t=s.key??s.name??s.event;if(!t)return null;if(s.mode==="binding"||s.binding){let n=nu(s.binding);return n?`${t}=${n}`:t}let e=s.code??s.expression??s.value??s.handler??"";return e?`${t}=${e}`:t}).filter(Boolean).join(", ")}a(Qg,"formatEvents");function ty(o){return o.map(s=>{let t=s.key??s.name;if(!t)return null;if(s.mode==="binding"||s.binding){let r=nu(s.binding);return r?`${t}=${r}`:t}let e=qc(s);if(e)return`${t}=${e}`;let n=s.value??"";return n!==""?`${t}=${n}`:t}).filter(Boolean).join(", ")}a(ty,"formatAttrs");function ey(o){return o.map(s=>{if(!s?.name)return null;let t=qc(s);return t?`${s.name}=${t}`:s.name}).filter(Boolean).join(", ")}a(ey,"formatStates");function ny(o){let s=qc(o);if(s)return s;let t=Array.isArray(o?.value)?o.value:[];return t.length===0?null:t.map(e=>e.label===e.value||e.label==null?`${e.value}`:`${e.label}=${e.value}`).join(", ")}a(ny,"formatOptions");function ry(o,s){let t=[],e=o.id??s;return e&&t.push(`id="${N(e)}"`),o.name&&t.push(`name="${N(o.name)}"`),o.component&&t.push(`component="${N(o.component)}"`),o.library&&t.push(`library="${N(o.library)}"`),o.route?.path&&t.push(`route="${N(o.route.path)}"`),o.repeat&&t.push("repeat"),o.destination?.path&&t.push(`dest="${N(o.destination.path)}"`),t.length?" "+t.join(" "):""}a(ry,"buildOutlineAttrString");function ru(o,s,t=null,{outline:e=!1}={}){if(e)return ry(o,s);let n=[],r=o.id??s;if(r&&n.push(`id="${N(r)}"`),t&&n.push(`rid="${N(t)}"`),o.name&&n.push(`name="${N(o.name)}"`),o.bounds&&n.push(`bounds="${Zg(o.bounds)}"`),o.style&&Object.keys(o.style).length){let l=Wd(o.style);l&&n.push(`style="${N(l)}"`)}if(o.events?.length&&n.push(`events="${N(Qg(o.events))}"`),o.attributes?.length&&n.push(`attrs="${N(ty(o.attributes))}"`),o.states?.length){let l=ey(o.states);l&&n.push(`states="${N(l)}"`)}if(o.options){let l=ny(o.options);l&&n.push(`options="${N(l)}"`)}o.className?.length&&n.push(`class="${o.className.join(" ")}"`),o.repeat&&n.push(`repeat="${N(JSON.stringify(o.repeat))}"`),o.component&&n.push(`component="${N(o.component)}"`),o.library&&n.push(`library="${N(o.library)}"`),o.props&&Object.keys(o.props).length&&n.push(`props="${N(JSON.stringify(o.props))}"`),o.route?.path&&n.push(`route="${N(o.route.path)}"`);let i=qc(o.render)??(o.render?.value!=null&&o.render.value!==!0?`{{${o.render.value}}}`:null);return i&&n.push(`render="${N(i)}"`),o.destination?.path&&n.push(`dest="${N(o.destination.path)}"`),n.length?" "+n.join(" "):""}a(ru,"buildAttrString");var oy=" ";function ir(o,s){let t=oy.repeat(s);return o.split(`
20
+ `).map(e=>t+e).join(`
21
+ `)}a(ir,"indent");function zc(o){return String(o).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}a(zc,"escapeText");function Kd(o){let s=String(o).replace(/\s+/g," ").trim();return s.length>60?`${s.slice(0,59)}\u2026`:s}a(Kd,"outlineText");function ou(o){let s=zt(o);return s&&cl(s)||null}a(ou,"nodeText");var Ko,su,Jc,qd,qo,iu,Yc,zd,Xc,Vd,Ke,Wo,Zc=class Zc extends sy{constructor(){super(...arguments);d(this,Ko);d(this,Jc);d(this,qo);d(this,Yc);d(this,Xc);d(this,Ke)}actions(){return{projectJsx:(t,e)=>h(this,Jc,qd).call(this,t,e),projectPuppetJsx:(t,e)=>h(this,Yc,zd).call(this,t,e)}}};Ko=new WeakSet,su=a(function(t,e){let n=this.inject("registry"),r,i;return t.type==="element"&&t.tagName?(r=t.tagName,i=n.getPrototype(t.tagName)?.ex??null):t.type?(r=t.type,i=n.getPrototype(t.ex??t.type)?.ex??null):(r=e,i=null),i?`${r}:${i}`:r},"#resolveTag"),Jc=new WeakSet,qd=a(function(t,{maxDepth:e=1/0}={}){return h(this,qo,iu).call(this,t,0,e)},"#projectJsx"),qo=new WeakSet,iu=a(function(t,e,n){let r=this.inject("resolve").dispatch("computedNode",t)();if(!r)return`<!-- missing: ${t} -->`;let i=h(this,Ko,su).call(this,r,t),l=ru(r,t),u=ou(r),f=Array.isArray(r.children)?r.children:[];if(!(f.length>0||u!=null&&u!==""))return`<${i}${l} />`;if(e>=n){let g=f.length?`<\u22EF${f.length} children>`:"<\u22EFtext>";return`<${i}${l}>${g}</${i}>`}if(u!=null&&u!==""&&f.length===0)return`<${i}${l}>${zc(u)}</${i}>`;let m=f.map(g=>ir(h(this,qo,iu).call(this,g,e+1,n),1)).join(`
22
+ `);return`<${i}${l}>
23
+ ${m}
24
+ </${i}>`},"#renderNode"),Yc=new WeakSet,zd=a(function(t,{maxDepth:e=1/0,outline:n=!1}={}){return Array.isArray(t)||(t=[t]),t.map(r=>{let i=h(this,Xc,Vd).call(this,r);return typeof i=="string"&&i.startsWith("<!--")?i:h(this,Ke,Wo).call(this,i,0,e,n)}).join(`
25
+ `)},"#projectPuppetJsx"),Xc=new WeakSet,Vd=a(function(t){let e=this.inject("registry");if(e.hasPuppet(t))return t;let n=e.getActor(t)??e.getActor(e.getActorId(t));if(!n)return`<!-- no actor for: ${t} -->`;let r=n.firstPuppetRid;return r||`<!-- no puppet for: ${t} -->`},"#resolvePuppetRid"),Ke=new WeakSet,Wo=a(function(t,e,n,r=!1){let l=this.inject("registry").getPuppet(t);if(!l)return`<!-- missing puppet: ${t} -->`;let u=l.actor,f=u.node;if(!f)return`<!-- missing node for puppet: ${t} -->`;let p=u.id,m=h(this,Ko,su).call(this,f,p),g=ru(f,p,t,{outline:r}),v=ou(f),b=v!=null&&r?Kd(v):v,x=l.getChildEntries(),S=l.getCloneEntries(),k=l.getSlotEntries(),E=x.length>0||S.length>0||k.length>0;if(!(E||b!=null&&b!==""))return`<${m}${g} />`;if(e>=n){let C=x.length+S.length,R=C>0?`<\u22EF${C} children>`:"<\u22EFtext>";return`<${m}${g}>${R}</${m}>`}if(b!=null&&b!==""&&!E)return`<${m}${g}>${zc(b)}</${m}>`;let j=[];for(let[,C]of x)j.push(ir(h(this,Ke,Wo).call(this,C,e+1,n,r),1));for(let[,C]of S)j.push(ir(h(this,Ke,Wo).call(this,C,e+1,n,r),1));for(let[C,R]of k){let T=[];for(let[,_]of R.entries())T.push(ir(h(this,Ke,Wo).call(this,_,e+2,n,r),1));T.length&&j.push(ir(`<slot name="${N(C)}">
26
+ ${T.join(`
27
+ `)}
28
+ </slot>`,1))}return j.length===0&&b!=null&&b!==""?`<${m}${g}>${zc(b)}</${m}>`:`<${m}${g}>
29
+ ${j.join(`
30
+ `)}
31
+ </${m}>`},"#renderPuppet"),a(Zc,"JSX"),w(Zc,"manifest",{name:"JSX",namespace:"jsx",version:"1.0.0"});var Vc=Zc;import{ServiceProvider as iy}from"@jucie.io/engine";var pt,wt,qe,ze,oe,se,Ve,It,ta,Jd,Vo,cu,Jo,au,Je,zo,Yo,lu,uu=class uu{constructor(s=null,t){d(this,ta);d(this,Vo);d(this,Jo);d(this,Je);d(this,Yo);d(this,pt,null);d(this,wt,null);d(this,qe,null);d(this,ze,!1);d(this,oe,new Map);d(this,se,new Map);d(this,Ve,new Set);d(this,It,null);w(this,"destroyed",!1);y(this,pt,s??(typeof document<"u"?document:null)),y(this,wt,t)}register(s){let t=c(this,pt)??s.app?.$el?.ownerDocument??(typeof document<"u"?document:null);y(this,pt,t),this.update(s.id,s.node,s.isInstance,s.parentId)}unregister(s){c(this,Ve).delete(s);let t=c(this,oe).delete(s),e=c(this,se).delete(s);(t||e)&&h(this,Jo,au).call(this)}update(s,t,e=!1,n=null){if(!t||c(this,wt).isStatic(s,n))return;let r=c(this,wt).resolvePosition(t,n),i=c(this,wt).resolveInheritedFont(t,n),l=c(this,wt).buildStyles(s,t,e,r,i,n);(e?c(this,se):c(this,oe)).set(s,l),c(this,Ve).add(s),h(this,Jo,au).call(this)}cssText(){return[...c(this,oe).values(),...c(this,se).values()].some(s=>s.length)?h(this,Yo,lu).call(this):""}destroy(){this.destroyed=!0,h(this,Vo,cu).call(this),c(this,pt)&&c(this,ze)&&(c(this,pt).adoptedStyleSheets=c(this,pt).adoptedStyleSheets.filter(s=>s!==c(this,qe))),y(this,ze,!1),c(this,oe).clear(),c(this,se).clear(),c(this,Ve).clear()}flush(){this.destroyed||h(this,Je,zo).call(this)}};pt=new WeakMap,wt=new WeakMap,qe=new WeakMap,ze=new WeakMap,oe=new WeakMap,se=new WeakMap,Ve=new WeakMap,It=new WeakMap,ta=new WeakSet,Jd=a(function(){if(c(this,ze))return;let s=c(this,pt);s&&(c(this,qe)??y(this,qe,new CSSStyleSheet),s.adoptedStyleSheets=[...s.adoptedStyleSheets,c(this,qe)],y(this,ze,!0))},"#ensureAttached"),Vo=new WeakSet,cu=a(function(){c(this,It)&&(cancelAnimationFrame(c(this,It)),y(this,It,null))},"#cancelScheduledFlush"),Jo=new WeakSet,au=a(function(){if(c(this,wt).view==="design"){if(h(this,Vo,cu).call(this),c(this,wt).defer(this))return;h(this,Je,zo).call(this);return}if(!c(this,It)){if(typeof requestAnimationFrame>"u"){h(this,Je,zo).call(this);return}y(this,It,requestAnimationFrame(()=>{y(this,It,null),h(this,Je,zo).call(this)}))}},"#scheduleFlush"),Je=new WeakSet,zo=a(function(){h(this,ta,Jd).call(this);let s=c(this,qe);if(!s)return;let t=h(this,Yo,lu).call(this);if(s.replaceSync)s.replaceSync(t);else{for(;s.cssRules.length>0;)s.deleteRule(0);let e=t.split(`
32
+ `);for(let n of e)if(n)try{s.insertRule(n,s.cssRules.length)}catch{}}c(this,Ve).clear(),c(this,pt)?.getElementById?.("jucie-ssr-css")?.remove()},"#flush"),Yo=new WeakSet,lu=a(function(){let s=`@layer base, instances;
33
+ `;s+=`@layer base {
34
+ `;for(let t of c(this,oe).values())for(let e of t)s+=e,s+=`
35
+ `;s+=`}
36
+ `,s+=`@layer instances {
37
+ `;for(let t of c(this,se).values())for(let e of t)s+=e,s+=`
38
+ `;return s+=`}
39
+ `,s},"#buildCss"),a(uu,"StyleScope");var Qc=uu;function Yd(o,s,t){return`${t?`${t} `:""}translate(${o}px, ${s}px)`}a(Yd,"resolveTransform");function fu(o){return`.${String(o).replace(/[^a-zA-Z0-9_-]/g,s=>`\\${s}`)}`}a(fu,"classSelector");import{compileNode as cy,stateSelector as ay,breakpointOf as ly,baseOf as Xo}from"@jucie.io/composed-style";var cr=[{name:"Mobile",key:"default",min:0,width:375},{name:"Tablet",key:"@768",min:768},{name:"Desktop",key:"@1280",min:1280}];var hu=a(o=>Array.isArray(o?.breakpoints)&&o.breakpoints.length?o.breakpoints:cr,"appBreakpoints");var Xd=a(o=>String(o).trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),"slug");function du(o=cr){return Object.fromEntries(o.filter(s=>s.name&&s.min>0&&Xd(s.name)).map(s=>[Xd(s.name),s.min]))}a(du,"breakpointNames");var uy=a(o=>{if(o.$flow!=="sticky")return null;let s=o.$anchorY==="end"?"bottom":"top";return{edge:s,offset:o[s]&&o[s]!=="auto"?o[s]:"0px"}},"stickyOf"),fy=new Set(["position","top","left","right","bottom"]),hy={default:{$layout:"none"}},dy={default:{$layout:"block"}};function py(o,s){let t=new Map(o);for(let[e,n]of s)t.set(e,n);return[...t]}a(py,"mergeDeclarations");var kt,Xe,ar,lr,ur,fr,Zo,Qo,ts,es,ns,rs,hr,os,pu,ra,Qd,Ft,Ye,dr,ea,oa,tp,sa,ep,ss,mu,is,gu,ia,np,ca,rp,aa,op,la=class la extends iy{constructor(){super(...arguments);d(this,os);d(this,ra);d(this,Ft);d(this,dr);d(this,oa);d(this,sa);d(this,ss);d(this,is);d(this,ia);d(this,ca);d(this,aa);d(this,kt,new Map);d(this,Xe,"design");d(this,ar,void 0);d(this,lr,void 0);d(this,ur,0);d(this,fr,new Set);d(this,Zo,void 0);d(this,Qo,void 0);d(this,ts,{tokens:{}});d(this,es,void 0);d(this,ns,{});d(this,rs,null);d(this,hr,!1)}initialize(){y(this,Xe,this.config?.view??"design"),y(this,rs,this.config?.staticStyles?.actors??null),y(this,hr,!!this.config?.embedded)}isStatic(t,e=null){let n=c(this,rs);return!!n&&Object.hasOwn(n,t)&&n[t]===(e??null)}get view(){return c(this,Xe)}batch(t){et(this,ur)._++;try{return t()}finally{if(--et(this,ur)._===0){let e=[...c(this,fr)];c(this,fr).clear();for(let n of e)n.flush()}}}defer(t){return c(this,ur)===0?!1:(c(this,fr).add(t),!0)}getters(){return{cssText:()=>h(this,is,gu).call(this)}}actions(){return{createScope:(t,e=null)=>h(this,ss,mu).call(this,t,e),getScope:t=>c(this,kt).get(t)??null,destroyScope:t=>{let e=c(this,kt).get(t);e&&(e.destroy(),c(this,kt).delete(t))},buildStyles:(t,e,n,r,i,l)=>this.buildStyles(t,e,n,r,i,l),batch:t=>this.batch(t),compileAll:()=>this.compileAll(),childContextOf:t=>this.childContextOf(t),passesThrough:t=>this.passesThrough(t)}}compileAll(){let t=c(this,Ft,Ye),e=this.inject("resolve"),n=a(u=>e.dispatch("nodeData",u),"nodeData");t.setActorClass(pn);let r={config:{view:c(this,Xe)},runtime:this.inject(),$el:null,styleScope:h(this,ss,mu).call(this,"app")},i={},l=a((u,f,p)=>{if(u in i)return;let m=t.resolveActor(r,u,{styleScope:p,parentId:f});if(!m)return;i[u]=f;let{node:g}=m,v=a((b,x)=>{if(Array.isArray(b))for(let S of b)l(S,x,m.styleScope)},"each");if(g.type==="instance"){let b=t.definitionIdOf(g.library,g.component),x=b?n(b):null;x?.type==="component"&&v(x.children,u);for(let S of g.slots??[])v(S.children,S.id);return}v(g.children,u)},"visit");for(let u of n("app")?.children??[])n(u)?.type!=="component"&&l(u,null,void 0);return{css:h(this,is,gu).call(this),tokensCss:this.inject("tokenResolver")?.cssText??"",actors:i}}resolvePosition(t,e){if(t?.bounds)return null;if(e==null)return c(this,hr)?null:"absolute";let n=c(this,Ft,Ye)?.getActor(e);return n&&hn(n.node)!=="none"?"relative":"absolute"}resolveInheritedFont(t,e){let n=c(this,Ft,Ye),r=t,i=e;for(;r;){let l=Xo(r.style),u=l?.["font-family"]||l?.fontFamily;if(u){let p=l?.["font-style"]||l?.fontStyle||"normal";return{family:u,style:p}}let f=i!=null?n?.getActor(i):null;r=f?.node??null,i=f?.parentId}return null}actorContext(t){return t?.context??Nt(t?.node)}passesThrough(t){return t?.node?.type!=="slot"?!1:!Object.values(this.actorContext(t)).some(e=>e.$layout&&e.$layout!=="none")}childContextOf(t){let e=t!=null?c(this,Ft,Ye)?.getActor(t):null;for(;e&&this.passesThrough(e);)e=e.parentId!=null?c(this,Ft,Ye).getActor(e.parentId):null;return e?this.actorContext(e):{}}buildStyles(t,e,n=!1,r=null,i=null,l=null){let u=[],f=fu(t),p=l!=null?c(this,Ft,Ye)?.getActor(l):null,m=c(this,Xe),g=h(this,os,pu).call(this,n,l),v=!!p&&h(this,os,pu).call(this,p.isInstance,p.parentId),b=hy;v?b=dy:p&&(b=this.childContextOf(l));let x=e.bounds?"frame":n?"instance":"perBreakpoint",S=x==="perBreakpoint",k=x==="instance"&&p?hn(p.node):null,E=x==="instance"&&!!k&&k!=="none";E&&r&&u.push(`${f} { position: ${r}; }`);let I=cy(e.style,{values:c(this,oa,tp),breakpoints:c(this,sa,ep),parent:b,position:S&&!v,sticky:S&&!v?e.sticky??null:null,scopeToParent:p?.node?.type==="slot"}).rules;if(x==="instance"&&r&&!E&&!Xo(e.style).position){let C=e.style?[["position",r],["top","auto"],["left","auto"],["right","auto"],["bottom","auto"]]:[["position",r]],R=I.find(T=>T.condition==="default"&&!T.state&&!T.parentScoped);R||(R={condition:"default",state:null,declarations:[]},I.unshift(R)),R.declarations=py(C,R.declarations)}for(let C of I){let R=E?C.declarations.filter(([D])=>!fy.has(D)):C.declarations,T=h(this,aa,op).call(this,R,i);if(!T)continue;let _=C.parentScoped?`${fu(l)} > ${f}`:f;for(let D of h(this,ia,np).call(this,_,C.state))u.push(h(this,ca,rp).call(this,D,ly(C.condition),T))}if(x==="instance"&&!g){let C=r??"relative";u.push(`${f} { position: ${C}; top: auto; left: auto; right: auto; bottom: auto; }`)}let j=x==="instance"?e.sticky??uy(Xo(e.style)):null;if(j&&k==="block"){let C=j.edge==="bottom"?"bottom":"top",R=j.offset||"0px";u.push(`${f} { position: sticky; ${C}: ${R}; }`)}if(m==="design"&&!e.bounds){let C=e[".position"];if(C){let R=Xo(e.style).transform,T=Yd(C.x,C.y,R);u.push(`${f} { transform: ${T}; }`)}}if(e.bounds){let C=e.bounds;if(m==="design"){let R=e[".position"],T=(C.x||0)+(R?.x||0),_=(C.y||0)+(R?.y||0),D=Xo(e.style).transform,ps=`translate(${T}px, ${_}px)${D?` ${D}`:""}`;u.push(`${f} { container-type: inline-size; position: absolute; top: 0 !important; left: 0 !important; transform: ${ps} !important; width: ${C.width||0}px !important; height: ${C.height||0}px !important; }`)}else u.push(`${f} { container-type: inline-size; position: relative; width: 100vw; height: 100vh; }`)}return u}};kt=new WeakMap,Xe=new WeakMap,ar=new WeakMap,lr=new WeakMap,ur=new WeakMap,fr=new WeakMap,Zo=new WeakMap,Qo=new WeakMap,ts=new WeakMap,es=new WeakMap,ns=new WeakMap,rs=new WeakMap,hr=new WeakMap,os=new WeakSet,pu=a(function(t,e){return c(this,hr)&&t&&e==null},"#isPlacedByHost"),ra=new WeakSet,Qd=a(function(){return c(this,ar)===void 0&&y(this,ar,this.inject("fontResolver")??null),c(this,ar)},"#resolver"),Ft=new WeakSet,Ye=a(function(){return c(this,lr)===void 0&&y(this,lr,this.inject("registry")??null),c(this,lr)},"#registry"),dr=new WeakSet,ea=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),oa=new WeakSet,tp=a(function(){let t=h(this,dr,ea).call(this,["tokens"])??null,e=h(this,dr,ea).call(this,[".libraries"])??null;if(t!==c(this,Zo)||e!==c(this,Qo)){y(this,Zo,t),y(this,Qo,e);let n=[...Object.values(e??{}).flatMap(r=>Object.keys(r?.tokens??{})),...Object.keys(t??{})];y(this,ts,{tokens:Object.fromEntries(n.map(r=>[r,`var(--${r})`]))})}return c(this,ts)},"#holeValues"),sa=new WeakSet,ep=a(function(){let t=hu(h(this,dr,ea).call(this,["nodes","app"]));return t!==c(this,es)&&(y(this,es,t),y(this,ns,du(t))),c(this,ns)},"#breakpointConfig"),ss=new WeakSet,mu=a(function(t,e=null){return c(this,kt).has(t)||c(this,kt).set(t,new Qc(e,this)),c(this,kt).get(t)},"#createScope"),is=new WeakSet,gu=a(function(){return[...c(this,kt).values()].map(t=>t.cssText()).filter(Boolean).join(`
40
+ `)},"#cssText"),ia=new WeakSet,np=a(function(t,e){return e?e[0]==="&"?[ay(t,e)]:[`${t}${e}`,`${t}.force-${e.slice(1)}`]:[t]},"#stateSelectors"),ca=new WeakSet,rp=a(function(t,e,n){return e?`@container (min-width: ${e}px) { ${t} { ${n} } }`:`${t} { ${n} }`},"#wrap"),aa=new WeakSet,op=a(function(t,e=null){let n=c(this,ra,Qd);if(n){let r=a(f=>t.find(([p])=>p===f)?.[1],"get"),i=r("font-family"),l=r("font-weight")||"400",u=r("font-style")||"normal";i?n.resolve(i,l,u):e&&(r("font-weight")||r("font-style"))&&n.resolve(e.family,l,r("font-style")?u:e.style)}return t.map(([r,i])=>`${r}: ${r==="font-family"?Wr(i):i}`).join("; ")},"#toCSS"),a(la,"StyleContext"),w(la,"manifest",{name:"StyleContext",namespace:"styleContext"});var na=la;import{ServiceProvider as my}from"@jucie.io/engine";var gy=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong","Helvetica","Arial","Arial Black","Verdana","Tahoma","Trebuchet MS","Impact","Gill Sans","Times New Roman","Georgia","Palatino","Baskerville","Andal\xE9 Mono","Courier","Courier New","Lucida","Lucida Console","Lucida Sans","Monaco","Bradley Hand","Brush Script MT","Luminari","Comic Sans MS","Segoe UI","Roboto","Helvetica Neue","-apple-system","BlinkMacSystemFont","SF Pro","SF Mono","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"]),yy=new Set([...gy].map(o=>o.toLowerCase()));function Dt(o){return yy.has(o.toLowerCase().trim())}a(Dt,"isSystemFont");function Ze(o){return!o||typeof o!="string"?[]:o.includes("var(")?[]:o.split(",").map(s=>s.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean).map(xy)}a(Ze,"parseFontFamily");function xy(o){let s=o.indexOf("@");if(s===-1){let n=o.trim();return{name:n,source:Dt(n)?"system":null}}let t=o.slice(0,s).trim(),e=o.slice(s+1).trim();return e==="google"?{name:t,source:"google"}:e==="local"?{name:t,source:"local"}:e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?{name:t,source:"url",url:e}:{name:t,source:e}}a(xy,"parseSourceDescriptor");function by(o){return!o||typeof o!="string"||o.includes("var(")?o:o.split(",").map(s=>{let t=s.trim().replace(/^['"]|['"]$/g,""),e=t.indexOf("@"),n=e===-1?t:t.slice(0,e).trim();return n.includes(" ")?`"${n}"`:n}).join(", ")}a(by,"cleanFontFamily");var vy={thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",normal:"400",regular:"400",medium:"500","semi-bold":"600","demi-bold":"600",bold:"700","extra-bold":"800","ultra-bold":"800",black:"900",heavy:"900"};function Sy(o){if(!o)return"400";let s=String(o).toLowerCase().trim();return vy[s]??s}a(Sy,"normalizeWeight");function wy(o){if(!o)return"0";let s=String(o).toLowerCase().trim();return s==="italic"||s==="oblique"?"1":"0"}a(wy,"normalizeStyle");function ua(o,s){return`${wy(s)},${Sy(o)}`}a(ua,"toVariant");function ky(o){if(!o||o.size===0)return"";let s=[],t=sp(o);t&&s.push('<link rel="preconnect" href="https://fonts.googleapis.com">','<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>',`<link href="${t}" rel="stylesheet">`);let e=ip(o);return e&&s.push(`<style>
41
+ ${e}</style>`),s.join(`
42
+ `)}a(ky,"buildFontLinks");function sp(o){let s=[];for(let[t,e]of o){if(e.source!=="google")continue;let n=[...e.variants].sort();if(n.some(i=>i.startsWith("1,")))s.push(`family=${t.replace(/ /g,"+")}:ital,wght@${n.join(";")}`);else{let i=n.map(l=>l.split(",")[1]).sort((l,u)=>Number(l)-Number(u));s.push(`family=${t.replace(/ /g,"+")}:wght@${i.join(";")}`)}}return s.length===0?null:`https://fonts.googleapis.com/css2?${s.join("&")}&display=swap`}a(sp,"buildGoogleUrl");function ip(o){let s=[];for(let[t,e]of o){if(e.source==="google"||!e.url)continue;let n=e.url.split(".").pop()?.toLowerCase(),r={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"}[n]||"woff2";for(let i of e.variants){let[l,u]=i.split(","),f=l==="1"?"italic":"normal";s.push(` @font-face {
43
+ font-family: "${t}";
44
+ src: url("${e.url}") format("${r}");
45
+ font-weight: ${u};
46
+ font-style: ${f};
47
+ font-display: swap;
48
+ }`)}}return s.length>0?s.join(`
49
+ `):""}a(ip,"buildFontFaceBlock");function yu(o){return o["font-family"]||o.fontFamily||null}a(yu,"getFamily");function fa(o){return o["font-weight"]||o.fontWeight||null}a(fa,"getWeight");function ha(o){return o["font-style"]||o.fontStyle||null}a(ha,"getStyle");function xu(o){if(!o||typeof o!="object")return[];let{default:s,...t}=o,e=[{...t,...s&&typeof s=="object"?s:null}];for(let[n,r]of Object.entries(t))n.startsWith("@")&&r&&typeof r=="object"&&e.push(r);return e}a(xu,"styleBlocks");var q,V,mt,gt,ot,da,cp,pa,ap,ma,lp,ga,up,as,bu,ya,fp,xa,hp,ba,dp,va,pp,$t,ie,Sa,mp,wa,gp,ls,vu,us,Su,ka=class ka extends my{constructor(){super(...arguments);d(this,da);d(this,pa);d(this,ma);d(this,ga);d(this,as);d(this,ya);d(this,xa);d(this,ba);d(this,va);d(this,$t);d(this,Sa);d(this,wa);d(this,ls);d(this,us);d(this,q,new Map);d(this,V,null);d(this,mt,null);d(this,gt,null);d(this,ot,null)}initialize(){y(this,q,new Map),h(this,ls,vu).call(this)}actions(){return{resolve:(t,e,n)=>h(this,da,cp).call(this,t,e,n),requestFont:(t,e,n)=>h(this,Sa,mp).call(this,t,e,n),hasFont:t=>h(this,wa,gp).call(this,t),getFonts:()=>c(this,q),buildLinks:()=>h(this,pa,ap).call(this)}}getters(){return{contextPaths:()=>[]}}};q=new WeakMap,V=new WeakMap,mt=new WeakMap,gt=new WeakMap,ot=new WeakMap,da=new WeakSet,cp=a(function(t,e="400",n="normal"){if(!t||typeof t!="string")return t;let r=Ze(t),i=!1;for(let{name:l,source:u,url:f}of r)u==="system"||Dt(l)||h(this,$t,ie).call(this,l,e,n,u||"google",f)&&(i=!0);return i&&h(this,us,Su).call(this),by(t)},"#resolve"),pa=new WeakSet,ap=a(function(){return ky(h(this,ma,lp).call(this))},"#buildLinks"),ma=new WeakSet,lp=a(function(){y(this,q,new Map);let t=this.inject("state");h(this,ga,up).call(this,t);let e=t.get(["nodes"]);return e?.app&&h(this,as,bu).call(this,"app",e,null),c(this,q)},"#scanFonts"),ga=new WeakSet,up=a(function(t){let e=t.get(["tokens"]);if(e){for(let[,n]of Object.entries(e))if(!(!n||n.$type!=="fontFamily"))for(let{name:r,source:i,url:l}of Ze(n.$value))i==="system"||Dt(r)||h(this,$t,ie).call(this,r,"400","normal",i||"google",l)}},"#scanTokens"),as=new WeakSet,bu=a(function(t,e,n){let r=e[t];if(!r)return;let{families:i}=h(this,va,pp).call(this,r),l=n;if(h(this,ba,dp).call(this,r),i.size>0){for(let[f,p]of i)if(p.variants.size>0)for(let m of p.variants){let[,g]=m.split(","),v=m.startsWith("1,")?"italic":"normal";h(this,$t,ie).call(this,f,g,v,p.source,p.url)}else h(this,$t,ie).call(this,f,"400","normal",p.source,p.url);l=h(this,ya,fp).call(this,r)||[...i.keys()][0]}else if(l)for(let u of h(this,xa,hp).call(this,r)){let f=c(this,q).get(l),[,p]=u.split(","),m=u.startsWith("1,")?"italic":"normal";h(this,$t,ie).call(this,l,p,m,f?.source||"google",f?.url)}if(Array.isArray(r.children))for(let u of r.children)h(this,as,bu).call(this,u,e,l)},"#walkNode"),ya=new WeakSet,fp=a(function(t){let e=xu(t?.style)[0];if(!e)return null;let n=yu(e);return n&&Ze(n).find(i=>i.source!=="system"&&!Dt(i.name))?.name||null},"#getDefaultFamily"),xa=new WeakSet,hp=a(function(t){if(!t?.style)return[];let e=new Set;for(let n of xu(t.style)){let r=fa(n),i=ha(n);(r||i)&&e.add(ua(r||"400",i||"normal"));for(let[l,u]of Object.entries(n))if((l.startsWith(":")||l.startsWith("&"))&&u&&typeof u=="object"){let f=fa(u),p=ha(u);(f||p)&&e.add(ua(f||"400",p||"normal"))}}return[...e]},"#extractVariantsOnly"),ba=new WeakSet,dp=a(function(t){if(Array.isArray(t?.textContent))for(let e of t.textContent){let n=e?.formats;if(!n?.fontFamily)continue;let r=Ze(n.fontFamily).find(l=>l.source!=="system"&&!Dt(l.name));if(!r)continue;let i=String(n.fontWeight??(n.bold?"700":"400"));h(this,$t,ie).call(this,r.name,i,n.italic?"italic":"normal",r.source||"google",r.url)}},"#registerSegmentFonts"),va=new WeakSet,pp=a(function(t){let e=new Map;if(!t?.style)return{families:e};function n(r,i,l){if(!r)return;let u=Ze(r).find(f=>f.source!=="system"&&!Dt(f.name));u&&(e.has(u.name)||e.set(u.name,{source:u.source||"google",url:u.url,variants:new Set}),(i||l)&&e.get(u.name).variants.add(ua(i||"400",l||"normal")))}a(n,"record");for(let r of xu(t.style)){n(yu(r),fa(r),ha(r));for(let[i,l]of Object.entries(r))(i.startsWith(":")||i.startsWith("&"))&&l&&typeof l=="object"&&n(yu(l),fa(l),ha(l))}return{families:e}},"#extractNodeFonts"),$t=new WeakSet,ie=a(function(t,e="400",n="normal",r="google",i){if(!t||Dt(t))return!1;let l=ua(e,n),u=!1;c(this,q).has(t)||(c(this,q).set(t,{source:r||"google",url:i,variants:new Set}),u=!0,console.log("[FontResolver] registered new font:",t,"@"+r));let f=c(this,q).get(t);return f.variants.has(l)||(f.variants.add(l),u=!0),u},"#registerFont"),Sa=new WeakSet,mp=a(function(t,e="400",n="normal"){if(!t||typeof t!="string")return;let r=!1;for(let{name:i,source:l,url:u}of Ze(t))l==="system"||Dt(i)||h(this,$t,ie).call(this,i,e,n,l||"google",u)&&(r=!0);r&&h(this,us,Su).call(this)},"#requestFont"),wa=new WeakSet,gp=a(function(t){if(!t||typeof t!="string")return!1;let e=Ze(t);return e.length===0?c(this,q).has(t):e.some(({name:n,source:r})=>r!=="system"&&!Dt(n)&&c(this,q).has(n))},"#hasFont"),ls=new WeakSet,vu=a(function(){typeof document>"u"||(c(this,gt)||(y(this,gt,document.getElementById("jucie-fonts-preconnect-googleapis")),c(this,gt)||(y(this,gt,document.createElement("link")),c(this,gt).id="jucie-fonts-preconnect-googleapis",c(this,gt).rel="preconnect",c(this,gt).href="https://fonts.googleapis.com",document.head.appendChild(c(this,gt)))),c(this,ot)||(y(this,ot,document.getElementById("jucie-fonts-preconnect-gstatic")),c(this,ot)||(y(this,ot,document.createElement("link")),c(this,ot).id="jucie-fonts-preconnect-gstatic",c(this,ot).rel="preconnect",c(this,ot).href="https://fonts.gstatic.com",c(this,ot).crossOrigin="",document.head.appendChild(c(this,ot)))),c(this,V)||(y(this,V,document.getElementById("jucie-fonts")),c(this,V)||(y(this,V,document.createElement("link")),c(this,V).id="jucie-fonts",c(this,V).rel="stylesheet",document.head.appendChild(c(this,V)))),c(this,mt)||(y(this,mt,document.getElementById("jucie-fonts-custom")),c(this,mt)||(y(this,mt,document.createElement("style")),c(this,mt).id="jucie-fonts-custom",document.head.appendChild(c(this,mt)))))},"#ensureLinkElements"),us=new WeakSet,Su=a(function(){if(typeof document>"u")return;h(this,ls,vu).call(this);let t=sp(c(this,q));t?c(this,V).href!==t&&(c(this,V).href=t):c(this,V)&&c(this,V).removeAttribute("href");let e=ip(c(this,q));c(this,mt)&&(c(this,mt).textContent=e)},"#updateFontLinks"),a(ka,"FontResolver"),w(ka,"manifest",{name:"FontResolver",namespace:"fontResolver"});var cs=ka;var yp=a((o,s={})=>{try{let t=[Os.configure(s),Xs.configure(s),si.configure(s),bs.configure(s),na.configure(s),pi.configure(s),Hi.configure(s),Uc.configure(s),Vc.configure(s),Vs.configure(s),Ti.configure(s)];return s.embedded||t.push(cs.configure(s)),s.view==="design"&&(t.push(Dc.configure(s)),t.push(Qi.configure(s)),t.push(_c.configure({...s,conversions:Gd}))),o.install(...t)}catch(t){return console.error("createRuntime error",t),null}},"createRuntime");var $y=new Set(["true","false","null","undefined","this","return","if","else","for","while","function","var","let","const","new","typeof","instanceof","Array","Object","String","Number","Boolean","Date","Math","JSON","console","window","document"]);function xp(o){if(!o)return[];let s=o.matchAll(/(?<![.\w])([a-zA-Z_$][\w]*)/g);return[...new Set([...s].map(e=>e[1]))].filter(e=>!$y.has(e))}a(xp,"parseDependencies");var bp=`function (ctx) {
50
+ return true
51
+ }`;var fs=`function (ctx, event) {
52
+
53
+ }`;function vp(o){return o==null||o===""?null:sf(o)}a(vp,"validateCode");function Cy(o){return o==null?null:!Array.isArray(o)||o.length===0?"binding must be a non-empty array of strings":o.every(s=>typeof s=="string"&&s.length>0)?null:"every segment in binding must be a non-empty string"}a(Cy,"validateBinding");function Sp(o){let s={...o,error:null};switch(s.mode){case"code":s.error=vp(s.code);break;case"computed":s.error=vp(s.computed);break;case"binding":s.error=Cy(s.binding);break;case"value":default:break}return s}a(Sp,"validateDescriptor");var Ay=new Set(["value","binding","computed","code"]),Ey=a(()=>({name:null,mode:"value",value:null,binding:null,computed:null,code:null,error:null,removable:!0}),"DEFAULTS");function J(o={}){let s=Ey();return o.name!=null&&(s.name=o.name),o.value!==void 0&&(s.value=o.value),o.binding!=null&&(s.binding=o.binding),o.computed!=null&&(s.computed=Kt(o.computed,"computed")),o.code!=null&&(s.code=Kt(o.code,"code")),o.mode&&Ay.has(o.mode)&&(s.mode=o.mode),s.mode==="computed"&&!s.computed&&(s.computed=bp),s.mode==="code"&&!s.code&&(s.code=fs),s.mode==="computed"&&s.computed&&(s.dependencies=xp(s.computed)),o.removable===!1&&(s.removable=!1),Sp(s)}a(J,"createDescriptor");function wu({name:o,mode:s,...t}={}){return J({name:o,mode:s??"value",...t})}a(wu,"createProp");function wp({name:o,mode:s,...t}={}){return J({name:o,mode:s??"binding",...t})}a(wp,"createEvent");var Qe="nd_isolated";function kp({library:o=null,name:s},t={},e=[],{id:n=Qe,classBinding:r,bindings:i={}}={}){let l=[...Object.entries(t).filter(([p,m])=>m!==void 0&&!(p in i)).map(([p,m])=>wu({name:p,mode:"value",value:m})),...Object.entries(i).map(([p,m])=>wu({name:p,mode:"binding",binding:m}))],u=e.map(p=>wp({name:p,mode:"code",code:`function (ctx, ...args) { return ctx.$isolated?.emit(${JSON.stringify(p)}, args, ${JSON.stringify(n)}) }`})),f={type:"instance",component:s,library:o,id:n,props:l,events:u};return r&&(f.className=[{mode:"binding",binding:r}]),f}a(kp,"isolatedInstance");var pr,$a,ds,ku,Ca,$p,Aa=class Aa extends Ny{constructor(){super(...arguments);d(this,ds);d(this,Ca);w(this,"runtime",null);w(this,"apps",new Map);d(this,pr,"__jucieDesignConsoleFilterOrig");d(this,$a,[/changing the uncontrolled .+ state .+ to be controlled/i,/changing from uncontrolled to controlled/i,/A component is changing an uncontrolled input to be controlled/i,/A component is changing a controlled input to be uncontrolled/i,/MUI: /])}initialize(t,e){h(this,Ca,$p).call(this,e?.view==="design");let n=e?.scene?Ry.create():t("createChild")("state");if(this.runtime=yp(n,e),!this.runtime)throw new Error("SceneCompiler: runtime construction failed")}getters(){return{currentRoute:()=>this.runtime.router.currentRoute,pageHead:()=>this.runtime.router.pageHead,pageCss:()=>this.runtime.styleContext.cssText,tokensCss:()=>this.runtime.tokenResolver.cssText,libraryCss:()=>this.runtime.modules.libraryStylesheets,snapshot:()=>this.runtime.context.snapshot}}actions(t,e){return{create:async(n,r,i={})=>this.runtime.registry.createApp(n,r,i),compileStyles:()=>this.runtime.styleContext.compileAll(),isolate:async(n,r,i,{onEmit:l,...u}={})=>(this.runtime.context.onIsolatedEmit(Qe,(f,p)=>l?.(f,p)),t("state").set(["nodes",Qe],h(this,ds,ku).call(this,r,i)),this.runtime.registry.createApp(n,Qe,{...u,isolated:!0})),setIsolated:(n,r)=>{t("state").set(["nodes",Qe],h(this,ds,ku).call(this,n,r))},describeComponent:n=>this.runtime.registry.describeComponent(n?.library,n?.name),loadSources:n=>this.runtime.registry.loadSources(n),loadPrototypes:n=>this.runtime.registry.loadPrototypes(n),swapCompiledModule:(n,r,i)=>this.runtime.modules.swapCompiledModule(n,r,i),getMeta:()=>this.runtime.components.list(),onComponentsChange:n=>this.runtime.components.onChange(n),getId:n=>this.runtime.registry.getActorId(n),getIds:n=>n.map(r=>this.runtime.registry.getActorId(r)),projectJsx:(n,r)=>this.runtime.jsx.projectJsx(n,r),projectPuppetJsx:(n,r)=>this.runtime.jsx.projectPuppetJsx(n,r),getEditTarget:n=>this.runtime.nodeGraph?.getEditTarget(n),addNodeGraphListener:n=>this.runtime.nodeGraph?.addListener(n),removeNodeGraphListener:n=>this.runtime.nodeGraph?.removeListener(n),addRenderListener:n=>this.runtime.nodeGraph?.addRenderListener(n),isNodeGraphBusy:()=>this.runtime.nodeGraph?.isBusy()??!1,startNodeGraph:()=>this.runtime.nodeGraph?.startNodeGraph(),disableNodeGraph:()=>this.runtime.nodeGraph?.disableNodeGraph(),pauseNodeGraph:()=>this.runtime.nodeGraph?.pauseNodeGraph(),resumeNodeGraph:()=>this.runtime.nodeGraph?.resumeNodeGraph(),pauseNodeGraphMeasuring:()=>this.runtime.nodeGraph?.pauseMeasuring(),resumeNodeGraphMeasuring:()=>this.runtime.nodeGraph?.resumeMeasuring(),forceNodeGraph:()=>this.runtime.nodeGraph?.forceNodeGraph(),requestNodeGraphRids:(n,r)=>this.runtime.nodeGraph?.requestRids(n,r),getNodeGraphManifest:()=>this.runtime.nodeGraph?.getManifest()??{rids:[],digest:null},getNodeGraphDigest:()=>this.runtime.nodeGraph?.getDigest()??null,getNodeGraphStats:()=>this.runtime.nodeGraph?.getStats()??null,resetNodeGraphStats:()=>this.runtime.nodeGraph?.resetStats(),setNodeGraphProfiling:n=>this.runtime.nodeGraph?.setProfiling(n),getNodeGraph:()=>this.runtime.nodeGraph?.getNodeGraph()??{},measureContentHeights:n=>this.runtime.nodeGraph?.measureContentHeights(n)??{},getFocalRid:()=>this.runtime.nodeGraph?.getFocalRid()??null,setSelectedRids:n=>this.runtime.nodeGraph?.setSelectedRids(n),getSelectedRids:()=>this.runtime.nodeGraph?.getSelectedRids()??[],setFocalRid:n=>this.runtime.nodeGraph?.setFocalRid(n),setEditingRid:n=>this.runtime.nodeGraph?.setEditingRid(n),convertNodes:()=>this.runtime.converter?.convert()??[],setViewport:n=>this.runtime.viewport?.set(n),getViewport:()=>this.runtime.viewport?.get()??null,setGrid:n=>this.runtime.viewport?.setGrid(n),setBackground:n=>this.runtime.viewport?.setBackground(n),animate:(n,r,i)=>this.runtime.animator.play(n,r,i),cancelAnimation:(n,r)=>this.runtime.animator.cancel(n,r),getAnimations:()=>this.runtime.animator.getLoadedAnimations(),seekAnimation:(n,r)=>this.runtime.animator.seekAnimation(n,r),navigate:n=>this.runtime?.router?.navigate(n),back:()=>this.runtime?.router?.back(),forward:()=>this.runtime?.router?.forward()}}};pr=new WeakMap,$a=new WeakMap,ds=new WeakSet,ku=a(function(t,e){let n=this.runtime.registry.describeComponent(t?.library,t?.name)?.eventNames??[];return kp(t,e,n)},"#isolatedInstance"),Ca=new WeakSet,$p=a(function(t){if(typeof globalThis>"u"||typeof console>"u")return;if(!t){if(!globalThis.__jucieDesignConsoleFilter)return;let n=globalThis[c(this,pr)];if(n)for(let r of["warn","error"])typeof n[r]=="function"&&(console[r]=n[r]);delete globalThis[c(this,pr)],globalThis.__jucieDesignConsoleFilter=!1;return}if(globalThis.__jucieDesignConsoleFilter)return;globalThis.__jucieDesignConsoleFilter=!0;let e={};for(let n of["warn","error"])e[n]=console[n].bind(console),console[n]=(...r)=>{let i=r.map(l=>{if(typeof l=="string")return l;if(l instanceof Error)return l.message??String(l);try{return String(l)}catch{return""}}).join(" ");c(this,$a).some(l=>l.test(i))||e[n](...r)};globalThis[c(this,pr)]=e},"#setDesignConsoleFilter"),a(Aa,"SceneCompiler"),w(Aa,"manifest",{name:"Scene Compiler",namespace:"sceneCompiler",version:"1.0.0",description:"Scene compiler extension",author:"",license:"MIT",homepage:""});var hs=Aa;import{createContext as Py,useContext as jy,forwardRef as Cp,createElement as Cu}from"react";import{createRoot as IN,hydrateRoot as FN}from"react-dom/client";var kN=Symbol("@jucie/runtime");import{useComputed as GN}from"@jucie.io/reactive/react";import{createElement as KN}from"react";import{createRoot as zN}from"react-dom/client";import{createComputed as YN}from"@jucie.io/reactive";var Ap=Py(null);function Oy(...o){return s=>{for(let t of o)t&&(typeof t=="function"?t(s):t.current=s)}}a(Oy,"composeRefs");function My(o,s){let t={...o||{}};if(!s)return t;for(let e in s){let n=t[e],r=s[e];e==="className"?t.className=[n,r].filter(Boolean).join(" "):e==="style"?t.style=n||r?{...r,...n}:void 0:/^on[A-Z]/.test(e)&&typeof n=="function"&&typeof r=="function"?t[e]=(...i)=>{n(...i),r(...i)}:e==="ref"?t.ref=n?Oy(r,n):r:t[e]=r}return t}a(My,"mergeInjected");var Au=Cp(a(function({as:s="div",children:t,...e},n){let r=jy(Ap),i=n?{...e,ref:n}:e;return r?Cu(s,My(i,r),t):Cu(s,i,t)},"JucieRoot"));Au.$jucieRoot=!0;var $u=new Map,Iy=new Proxy({},{get(o,s){if(typeof s=="string"){if(!$u.has(s)){let t=Cp((e,n)=>Cu(Au,{as:s,...e,ref:n}));t.displayName=`Jucie.${s}`,t.$jucieRoot=!0,$u.set(s,t)}return $u.get(s)}}});var HN=typeof process<"u"&&process.env?.NODE_ENV!=="production";var Ep={__version:1,type:"node",render:{name:null,mode:"value",value:!0,binding:null,computed:null,code:null,error:null},name:null,draggable:!0,resizable:!0,selectable:!0,locked:[],dimensions:[],expandedStyles:[],childrenType:null,repeat:null,contextName:null,attributes:[],events:[],className:[],states:[],lifecycle:[],animations:[],style:{}};var Rp={type:"element",ex:"node",style:{}};var Np={type:"container",ex:"node",childrenType:"*",bounds:{width:0,height:0,x:0,y:0}};var Eu={};Rt(Eu,{article:()=>Gy,aside:()=>Uy,div:()=>Dy,footer:()=>_y,form:()=>Ky,header:()=>By,layout:()=>Fy,main:()=>Hy,nav:()=>Wy,section:()=>Ly,template:()=>qy});var Fy={ex:"element",dimensions:["width","height"],childrenType:"*",children:[]},Dy={ex:"layout",tagName:"div"},Ly={ex:"layout",tagName:"section"},By={ex:"layout",tagName:"header"},_y={ex:"layout",tagName:"footer"},Gy={ex:"layout",tagName:"article"},Hy={ex:"layout",tagName:"main"},Uy={ex:"layout",tagName:"aside"},Wy={ex:"layout",tagName:"nav"},Ky={ex:"layout",tagName:"form"},qy={ex:"layout",tagName:"template",html:"<div>HTML template</div>",style:{width:"250px",height:"100px"}};var Ru={};Rt(Ru,{blockquote:()=>ix,br:()=>px,codeElement:()=>ax,em:()=>ux,h1:()=>Jy,h2:()=>Yy,h3:()=>Xy,h4:()=>Zy,h5:()=>Qy,h6:()=>tx,heading:()=>Vy,hr:()=>dx,label:()=>ox,mark:()=>hx,p:()=>nx,paragraph:()=>ex,pre:()=>cx,richText:()=>sx,small:()=>fx,span:()=>rx,strong:()=>lx,text:()=>zy});var zy={ex:"element",dimensions:["width"],childrenType:"text",textContent:A("")},Vy={ex:"text",textContent:A(""),style:{margin:"0"}},Jy={ex:"heading",tagName:"h1",textContent:A("Heading 1")},Yy={ex:"heading",tagName:"h2",textContent:A("Heading 2")},Xy={ex:"heading",tagName:"h3",textContent:A("Heading 3")},Zy={ex:"heading",tagName:"h4",textContent:A("Heading 4")},Qy={ex:"heading",tagName:"h5",textContent:A("Heading 5")},tx={ex:"heading",tagName:"h6",textContent:A("Heading 6")},ex={ex:"text",textContent:A("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."),style:{margin:"0"}},nx={ex:"paragraph",tagName:"p"},rx={ex:"text",tagName:"span",textContent:A("Lorem ipsum")},ox={ex:"text",tagName:"label",textContent:A("Label text")},sx={ex:"text",tagName:"div",textContent:A("Rich text. Press Enter for a new paragraph.")},ix={ex:"text",tagName:"blockquote",textContent:A("Blockquote text")},cx={ex:"text",tagName:"pre",textContent:A("Preformatted text")},ax={ex:"text",tagName:"code",textContent:A("code")},lx={ex:"text",tagName:"strong",textContent:A("Bold text")},ux={ex:"text",tagName:"em",textContent:A("Emphasized text")},fx={ex:"text",tagName:"small",textContent:A("Small text")},hx={ex:"text",tagName:"mark",textContent:A("Highlighted text")},dx={ex:"element",tagName:"hr",dimensions:["width"],childrenType:"none"},px={ex:"element",tagName:"br",dimensions:["width"],childrenType:"none"};var Nu={};Rt(Nu,{a:()=>yx,button:()=>gx,details:()=>xx,dialog:()=>vx,interactive:()=>mx,summary:()=>bx});var mx={ex:"element",interactive:!0,childrenType:"text",style:{width:"auto",height:"auto",cursor:"pointer"}},gx={ex:"interactive",tagName:"button",dimensions:["width","height"],textContent:A("Button text"),style:{"background-color":"#e9e9e9",border:"1px solid #d5d5d5","border-radius":"4px",padding:"6px 12px",width:"120px",height:"auto"}},yx={ex:"interactive",tagName:"a",textContent:A("Link text"),destination:{type:"page",id:null,path:null,target:null,replace:!1,params:null,query:null}},xx={ex:"interactive",tagName:"details",childrenType:"*",dimensions:["width","height"],style:{cursor:"default"}},bx={ex:"interactive",tagName:"summary",textContent:A("Summary text")},vx={ex:"interactive",tagName:"dialog",childrenType:"*",dimensions:["width","height"],style:{cursor:"default",width:"300px",height:"200px"}};var Pu={};Rt(Pu,{checkbox:()=>jx,color:()=>Tx,date:()=>Px,email:()=>$x,file:()=>Mx,hidden:()=>Ix,input:()=>wx,number:()=>Ax,password:()=>Cx,phone:()=>Rx,radio:()=>Ox,range:()=>Nx,search:()=>Ex,select:()=>Fx,textInput:()=>kx,textarea:()=>Dx});function Tp({mode:o,value:s,...t}={}){return J({mode:o??"value",value:Array.isArray(s)?s:[],...t})}a(Tp,"createOptions");var Q=a(o=>J({name:"type",mode:"value",value:o,removable:!1}),"type"),Sx=a(()=>J({name:"value",mode:"value",value:"",removable:!1}),"value"),tt=a(()=>J({name:"model",mode:"binding",binding:null,removable:!0}),"model"),Ct=a(()=>J({name:"onInput",mode:"code",code:fs,removable:!1}),"onInput"),Tu=a(()=>J({name:"onChange",mode:"code",code:fs,removable:!1}),"onChange"),wx={ex:"element",tagName:"input",dimensions:["width"],childrenType:"none",style:{width:"auto",height:"auto"}},kx={ex:"input",attributes:[Q("text"),tt()],events:[Ct()]},$x={ex:"input",attributes:[Q("email"),tt()],events:[Ct()]},Cx={ex:"input",attributes:[Q("password"),tt()],events:[Ct()]},Ax={ex:"input",attributes:[Q("number"),tt()],events:[Ct()]},Ex={ex:"input",attributes:[Q("search"),tt()],events:[Ct()]},Rx={ex:"input",attributes:[Q("tel"),tt()],events:[Ct()]},Nx={ex:"input",attributes:[Q("range"),tt()],events:[Ct()]},Tx={ex:"input",attributes:[Q("color"),tt()],events:[Ct()]},Px={ex:"input",attributes:[Q("date"),tt()],events:[Ct()]},jx={ex:"input",attributes:[Q("checkbox"),tt()],events:[Tu()]},Ox={ex:"input",attributes:[Q("radio"),tt()],events:[Tu()]},Mx={ex:"input",attributes:[Q("file")]},Ix={ex:"input",attributes:[Q("hidden"),Sx()]},Fx={ex:"input",tagName:"select",childrenType:"options",options:Tp(),attributes:[tt()],events:[Tu()]},Dx={ex:"input",tagName:"textarea",childrenType:"text",dimensions:["width","height"],attributes:[tt()],events:[Ct()]};var ju={};Rt(ju,{audio:()=>_x,figcaption:()=>Ux,figure:()=>Hx,iframe:()=>Wx,img:()=>Bx,media:()=>Lx,video:()=>Gx});var Pp=J({name:"controls",mode:"value",value:!0,removable:!1}),Lx={ex:"element",dimensions:["width","height"],style:{display:"block",width:"auto",height:"auto","object-fit":"contain"}},Bx={ex:"media",tagName:"img",childrenType:"none"},_x={ex:"media",tagName:"audio",childrenType:"none",dimensions:["width"],attributes:[Pp],style:{width:"320px"}},Gx={ex:"media",tagName:"video",childrenType:"*",attributes:[Pp],style:{width:"320px",height:"240px"}},Hx={ex:"media",tagName:"figure",childrenType:"*",dimensions:["width","height"],style:{width:"auto",height:"auto",margin:"0"}},Ux={ex:"media",tagName:"figcaption",childrenType:"text"},Wx={ex:"media",tagName:"iframe",childrenType:"none",dimensions:["width","height"]};var Ou={};Rt(Ou,{dd:()=>Yx,dl:()=>Vx,dt:()=>Jx,li:()=>zx,ol:()=>Kx,ul:()=>qx});var Kx={ex:"element",tagName:"ol",dimensions:["width"],childrenType:["li"],children:[]},qx={ex:"element",tagName:"ul",dimensions:["width"],childrenType:["li"],children:[]},zx={ex:"element",tagName:"li",dimensions:["width"],childrenType:"text"},Vx={ex:"element",tagName:"dl",dimensions:["width"],childrenType:["dt","dd"],children:[]},Jx={ex:"element",tagName:"dt",dimensions:["width"],childrenType:"text"},Yx={ex:"element",tagName:"dd",dimensions:["width"],childrenType:"text"};var Mu={};Rt(Mu,{table:()=>Xx,tbody:()=>Qx,td:()=>rb,tfoot:()=>tb,th:()=>nb,thead:()=>Zx,tr:()=>eb});var Xx={ex:"element",tagName:"table",dimensions:["width"],childrenType:["thead","tbody","tfoot","tr"],children:[]},Zx={ex:"element",tagName:"thead",childrenType:["tr"],children:[]},Qx={ex:"element",tagName:"tbody",childrenType:["tr"],children:[]},tb={ex:"element",tagName:"tfoot",childrenType:["tr"],children:[]},eb={ex:"element",tagName:"tr",childrenType:["td","th"],children:[]},nb={ex:"element",tagName:"th",childrenType:"*"},rb={ex:"element",tagName:"td",childrenType:"*"};var Iu={};Rt(Iu,{fieldset:()=>ob,legend:()=>sb,meter:()=>ib,progress:()=>cb});var ob={ex:"element",tagName:"fieldset",dimensions:["width","height"],childrenType:"children",style:{border:"1px solid #cccccc",padding:"16px"}},sb={ex:"element",tagName:"legend",childrenType:"text"},ib={ex:"element",tagName:"meter",childrenType:"none"},cb={ex:"element",tagName:"progress",childrenType:"none"};var Fu={};Rt(Fu,{slot:()=>ab});var ab={type:"slot",ex:"element",tagName:"slot",dimensions:["width","height"],childrenType:"*"};var jp={type:"frame",ex:"container",tagName:"div",bounds:{top:0,left:0,width:360,height:740,x:void 0,y:void 0},style:{background:"white"},children:[],route:{path:null}};var Op={type:"instance",ex:"node",component:null,library:null,props:[],childrenType:"component"};var Mp={type:"code",ex:"node",body:"",language:"js",params:[],returns:null};var Ip={type:"animation",ex:"node",scope:"node",name:null,duration:300,easing:"ease",fill:"none",direction:"normal",iterations:1,delay:0,endDelay:0,iterationStart:0,composite:"replace",keyframes:[]};var Fp={type:"component",ex:"container",name:"",library:"local",props:[],emits:[],data:[],children:[]};var Dp={type:"graphic",ex:"node",tagName:"div",props:{},template:[],style:{margin:"0",width:"100px",height:"100px"}};var Ra=globalThis,Lp=Symbol.for("\u26D4\uFE0Funique-id-counter"),Bp=Symbol.for("\u26D4\uFE0Funique-id-session");Ra[Lp]||(Ra[Lp]=0);Ra[Bp]||(Ra[Bp]=Math.random().toString(36).slice(2,6));var Ea={node:Ep,element:Rp,container:Np,...Eu,...Ru,...Nu,...Pu,...ju,...Ou,...Mu,...Iu,...Fu,frame:jp,instance:Op,code:Mp,animation:Ip,component:Fp,graphic:Dp};var _p=a(()=>new Promise(o=>setTimeout(o,0)),"nextTask");async function Gp(o,{config:s,scene:t,modules:e,createHost:n,timeout:r=5e3}){let i=hb.create();i.install(hs.configure({...s,view:"production",server:{url:o,timeout:r},scene:t})),i.sceneCompiler.loadPrototypes(Ea);for(let{name:u,type:f,module:p}of e)i.sceneCompiler.swapCompiledModule(u,f,p);let l=await i.sceneCompiler.create("app",void 0,{createHost:n});if(!l?.host?.renderToString)throw new Error(`Server render failed for ${o}`);return await _p(),await _p(),{html:await l.host.renderToString(),css:i.sceneCompiler.pageCss,tokensCss:s.staticStyles?.tokens?"":i.sceneCompiler.tokensCss,libraryCss:i.sceneCompiler.libraryCss,head:i.sceneCompiler.pageHead,state:i.sceneCompiler.snapshot,notFound:i.sceneCompiler.currentRoute?.notFound===!0}}a(Gp,"renderServerPage");async function fP(o,s={}){let{scene:t}=await import("jucie:scene"),e=(await import("jucie:modules"))?.default??[];return Gp(o,{config:db,scene:t,modules:e,createHost:pb,...s})}a(fP,"renderPage");export{fP as renderPage};