@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.
- package/dist/interactivity.md +51 -13
- package/dist/jucie.js +676 -239
- package/dist/layout.md +83 -24
- package/dist/prerenderWorker.js +13 -0
- package/dist/stage/library/preact.js +53 -0
- package/dist/stage/library/react.js +53 -0
- package/dist/stage/library/vue.js +53 -0
- package/dist/stage/prod.js +53 -1
- package/dist/stage/sdk/chunks/chunk-6BTG63JN.js +1 -0
- package/dist/stage/sdk/chunks/chunk-7YIGPKNU.js +1 -0
- package/dist/stage/sdk/chunks/chunk-IIZ233AH.js +1 -0
- package/dist/stage/sdk/preact-server.js +1 -0
- package/dist/stage/sdk/preact.js +1 -0
- package/dist/stage/sdk/react-server.js +1 -0
- package/dist/stage/sdk/react.js +1 -0
- package/dist/stage/sdk/vue-server.js +1 -0
- package/dist/stage/sdk/vue.js +1 -0
- package/dist/stage/server.js +53 -0
- package/dist/stage/styles.js +11845 -0
- package/dist/stage-bundles/preact/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
- package/dist/stage-bundles/preact/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
- package/dist/stage-bundles/preact/chunks/aiRelay-6QWC3MID.js +1 -0
- package/dist/stage-bundles/preact/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
- package/dist/stage-bundles/preact/chunks/assets-4NXDKJMC.js +1 -0
- package/dist/stage-bundles/preact/chunks/capture-MXL3B5OM.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-3Q3DRUNQ.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-426Z5MME.js +9 -0
- package/dist/stage-bundles/preact/chunks/chunk-4WXMFOGZ.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-5H3EE23B.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-5HNN2HVX.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-6J3NV2ZA.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-BXWISJ2Z.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-CNULBMOT.js +99 -0
- package/dist/stage-bundles/preact/chunks/chunk-DLROTED3.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-DUPQKWW3.js +3 -0
- package/dist/stage-bundles/preact/chunks/chunk-FEFZSXXM.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-FGKRC2QO.js +4 -0
- package/dist/stage-bundles/preact/chunks/chunk-FWEUCYZO.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-GCPKA3IC.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-KUZTBTFR.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-P722OZCF.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-RDRAQE76.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-RQACOEIA.js +1 -0
- package/dist/stage-bundles/preact/chunks/{chunk-RYWOKFM7.js → chunk-S7MEYFKB.js} +1 -1
- package/dist/stage-bundles/preact/chunks/chunk-TKHZCD63.js +1 -0
- package/dist/stage-bundles/preact/chunks/chunk-UNPHH2YK.js +7 -0
- package/dist/stage-bundles/preact/chunks/{chunk-H5NHEM4C.js → chunk-WN5EDULP.js} +1 -1
- package/dist/stage-bundles/preact/chunks/chunk-YQ22OWEN.js +6 -0
- package/dist/stage-bundles/preact/chunks/{chunk-NRRFAMFA.js → chunk-ZDH2DALT.js} +1 -1
- package/dist/stage-bundles/preact/chunks/contentEditor-KSOW7DQ4.js +1 -0
- package/dist/stage-bundles/preact/chunks/design-5WJ7WCTU.js +70 -0
- package/dist/stage-bundles/preact/chunks/files-2IVIODQO.js +1 -0
- package/dist/stage-bundles/preact/chunks/history-AJWJFNTH.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-3EOYBBCF.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-4GJ7OQPP.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-COYGSKNQ.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-DEGR6IFX.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-QJ4F72CN.js +1 -0
- package/dist/stage-bundles/preact/chunks/main-Y73Z2R2Q.js +1 -0
- package/dist/stage-bundles/preact/chunks/nodeGraph-MIYBM2ME.js +1 -0
- package/dist/stage-bundles/preact/chunks/preview-MRYXCFFB.js +1 -0
- package/dist/stage-bundles/preact/chunks/sync-M5DHAJKK.js +1 -0
- package/dist/stage-bundles/preact/chunks/user-RPWZUUCN.js +1 -0
- package/dist/stage-bundles/preact/chunks/viewport-EE2UKHNS.js +1 -0
- package/dist/stage-bundles/preact/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
- package/dist/stage-bundles/preact/chunks/window-SHWTQPJX.js +1 -0
- package/dist/stage-bundles/preact/chunks/workbench-PI2NQ6WK.js +1 -0
- package/dist/stage-bundles/preact/entry.js +1 -1
- package/dist/stage-bundles/preact/framework-compat.js +1 -1
- package/dist/stage-bundles/preact/framework-hooks.js +1 -1
- package/dist/stage-bundles/preact/framework-jsx-runtime.js +1 -1
- package/dist/stage-bundles/preact/framework.js +1 -1
- package/dist/stage-bundles/preact/reactive.js +1 -0
- package/dist/stage-bundles/preact/sdk.js +1 -1
- package/dist/stage-bundles/react/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
- package/dist/stage-bundles/react/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
- package/dist/stage-bundles/react/chunks/aiRelay-6QWC3MID.js +1 -0
- package/dist/stage-bundles/react/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
- package/dist/stage-bundles/react/chunks/assets-4NXDKJMC.js +1 -0
- package/dist/stage-bundles/react/chunks/capture-SX5LMYTU.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-3Q3DRUNQ.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-426Z5MME.js +9 -0
- package/dist/stage-bundles/react/chunks/chunk-4WXMFOGZ.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-5FKTA2K4.js +45 -0
- package/dist/stage-bundles/react/chunks/chunk-5HNN2HVX.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-6J3NV2ZA.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-COZYLIUS.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-DLROTED3.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-DUPQKWW3.js +3 -0
- package/dist/stage-bundles/react/chunks/chunk-FEFZSXXM.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-FGKRC2QO.js +4 -0
- package/dist/stage-bundles/react/chunks/chunk-FWEUCYZO.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-GCPKA3IC.js +1 -0
- package/dist/stage-bundles/react/chunks/{chunk-G5RN6RXS.js → chunk-HBUZBWXS.js} +1 -1
- package/dist/stage-bundles/react/chunks/chunk-IN7T7JOC.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-KUZTBTFR.js +1 -0
- package/dist/stage-bundles/react/chunks/{chunk-P3ZDKQWG.js → chunk-LGKXPMSS.js} +1 -1
- package/dist/stage-bundles/react/chunks/chunk-P722OZCF.js +1 -0
- package/dist/stage-bundles/react/chunks/{chunk-KLPU3QNW.js → chunk-PWVNILVW.js} +1 -1
- package/dist/stage-bundles/react/chunks/chunk-RDRAQE76.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-TKHZCD63.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-UNPHH2YK.js +7 -0
- package/dist/stage-bundles/react/chunks/chunk-UQWACM5R.js +1 -0
- package/dist/stage-bundles/react/chunks/chunk-YQ22OWEN.js +6 -0
- package/dist/stage-bundles/react/chunks/contentEditor-KSOW7DQ4.js +1 -0
- package/dist/stage-bundles/react/chunks/design-PLV3PDV6.js +70 -0
- package/dist/stage-bundles/react/chunks/files-2IVIODQO.js +1 -0
- package/dist/stage-bundles/react/chunks/history-AJWJFNTH.js +1 -0
- package/dist/stage-bundles/react/chunks/main-3EOYBBCF.js +1 -0
- package/dist/stage-bundles/react/chunks/main-4GJ7OQPP.js +1 -0
- package/dist/stage-bundles/react/chunks/main-COYGSKNQ.js +1 -0
- package/dist/stage-bundles/react/chunks/main-DEGR6IFX.js +1 -0
- package/dist/stage-bundles/react/chunks/main-QJ4F72CN.js +1 -0
- package/dist/stage-bundles/react/chunks/main-Y73Z2R2Q.js +1 -0
- package/dist/stage-bundles/react/chunks/nodeGraph-MIYBM2ME.js +1 -0
- package/dist/stage-bundles/react/chunks/preview-GQEX7ZIJ.js +1 -0
- package/dist/stage-bundles/react/chunks/sync-M5DHAJKK.js +1 -0
- package/dist/stage-bundles/react/chunks/user-RPWZUUCN.js +1 -0
- package/dist/stage-bundles/react/chunks/viewport-EE2UKHNS.js +1 -0
- package/dist/stage-bundles/react/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
- package/dist/stage-bundles/react/chunks/window-SHWTQPJX.js +1 -0
- package/dist/stage-bundles/react/chunks/workbench-BXYMXCNQ.js +1 -0
- package/dist/stage-bundles/react/entry.js +1 -1
- package/dist/stage-bundles/react/framework-dom-client.js +1 -1
- package/dist/stage-bundles/react/framework-dom.js +1 -1
- package/dist/stage-bundles/react/framework-jsx-runtime.js +1 -1
- package/dist/stage-bundles/react/framework.js +1 -1
- package/dist/stage-bundles/react/reactive.js +1 -0
- package/dist/stage-bundles/react/sdk.js +1 -1
- package/dist/stage-bundles/vue/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
- package/dist/stage-bundles/vue/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
- package/dist/stage-bundles/vue/chunks/aiRelay-6QWC3MID.js +1 -0
- package/dist/stage-bundles/vue/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
- package/dist/stage-bundles/vue/chunks/assets-4NXDKJMC.js +1 -0
- package/dist/stage-bundles/vue/chunks/capture-BNTHDU5P.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-2CVBY2T5.js +99 -0
- package/dist/stage-bundles/vue/chunks/chunk-3Q3DRUNQ.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-4WXMFOGZ.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-5HNN2HVX.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-5Q537YU2.js +9 -0
- package/dist/stage-bundles/vue/chunks/chunk-6J3NV2ZA.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-BAARNJD7.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-DLROTED3.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-DUPQKWW3.js +3 -0
- package/dist/stage-bundles/vue/chunks/chunk-EPZVOVTF.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-FEFZSXXM.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-FGKRC2QO.js +4 -0
- package/dist/stage-bundles/vue/chunks/chunk-FWEUCYZO.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-GCPKA3IC.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-KUZTBTFR.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-P722OZCF.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-QZFBMONF.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-TKHZCD63.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-UNPHH2YK.js +7 -0
- package/dist/stage-bundles/vue/chunks/chunk-XIPQ5BT3.js +1 -0
- package/dist/stage-bundles/vue/chunks/chunk-YQ22OWEN.js +6 -0
- package/dist/stage-bundles/vue/chunks/{chunk-M3OE4LWW.js → chunk-ZNG3HSBM.js} +1 -1
- package/dist/stage-bundles/vue/chunks/contentEditor-WMYXHKRR.js +1 -0
- package/dist/stage-bundles/vue/chunks/design-N46CCFRQ.js +70 -0
- package/dist/stage-bundles/vue/chunks/files-2IVIODQO.js +1 -0
- package/dist/stage-bundles/vue/chunks/history-AJWJFNTH.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-3EOYBBCF.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-4GJ7OQPP.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-COYGSKNQ.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-DEGR6IFX.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-IDHTCWLF.js +1 -0
- package/dist/stage-bundles/vue/chunks/main-Y73Z2R2Q.js +1 -0
- package/dist/stage-bundles/vue/chunks/nodeGraph-MIYBM2ME.js +1 -0
- package/dist/stage-bundles/vue/chunks/preview-5K5EJBYM.js +1 -0
- package/dist/stage-bundles/vue/chunks/sync-M5DHAJKK.js +1 -0
- package/dist/stage-bundles/vue/chunks/user-RPWZUUCN.js +1 -0
- package/dist/stage-bundles/vue/chunks/viewport-EE2UKHNS.js +1 -0
- package/dist/stage-bundles/vue/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
- package/dist/stage-bundles/vue/chunks/window-SHWTQPJX.js +1 -0
- package/dist/stage-bundles/vue/chunks/workbench-OX4YXOA5.js +1 -0
- package/dist/stage-bundles/vue/entry.js +1 -1
- package/dist/stage-bundles/vue/framework-jsx-runtime.js +1 -1
- package/dist/stage-bundles/vue/framework.js +1 -1
- package/dist/stage-bundles/vue/reactive.js +1 -0
- package/dist/stage-bundles/vue/sdk.js +1 -1
- package/dist/stage-src/{dev/entry.js → dev.js} +1 -1
- package/dist/workflow.md +7 -0
- package/package.json +28 -21
- package/dist/stage/chunks/addAction-3QC2Z4ZR.js +0 -1
- package/dist/stage/chunks/addAnimationBinding-N3UW27JM.js +0 -1
- package/dist/stage/chunks/addAttribute-MEJIGMHV.js +0 -1
- package/dist/stage/chunks/addComponent-AQQI46C3.js +0 -1
- package/dist/stage/chunks/addComputed-2JNIUCEP.js +0 -1
- package/dist/stage/chunks/addEvent-PN6P6KR5.js +0 -1
- package/dist/stage/chunks/addLifecycleHook-D2UKKFVW.js +0 -1
- package/dist/stage/chunks/addNode-UXIXDXSD.js +0 -1
- package/dist/stage/chunks/addOption-AFCUFOT7.js +0 -1
- package/dist/stage/chunks/addParamToRoute-6LOHCID7.js +0 -1
- package/dist/stage/chunks/addState-RSEYKWQO.js +0 -1
- package/dist/stage/chunks/addStore-AK2FTEON.js +0 -1
- package/dist/stage/chunks/addToken-35LUBJPE.js +0 -1
- package/dist/stage/chunks/addTree-CU7MJAKT.js +0 -1
- package/dist/stage/chunks/addValue-LIQSHZFR.js +0 -1
- package/dist/stage/chunks/aiAttachmentContracts-KGD3EHZQ.js +0 -1
- package/dist/stage/chunks/aiMessagesContracts-QWUORKI3.js +0 -1
- package/dist/stage/chunks/aiRelay-LW2UZKRR.js +0 -1
- package/dist/stage/chunks/aiSessionContracts-RQKGQY4N.js +0 -1
- package/dist/stage/chunks/assets-5J5INILR.js +0 -1
- package/dist/stage/chunks/capture-VQE5664P.js +0 -1
- package/dist/stage/chunks/chunk-2JXGTRSC.js +0 -1
- package/dist/stage/chunks/chunk-3GPQ3HYG.js +0 -1
- package/dist/stage/chunks/chunk-3KR3JD5T.js +0 -1
- package/dist/stage/chunks/chunk-457GNGEV.js +0 -1
- package/dist/stage/chunks/chunk-4KXBOJIC.js +0 -1
- package/dist/stage/chunks/chunk-4UJAZNZX.js +0 -1
- package/dist/stage/chunks/chunk-5N7NET6A.js +0 -1
- package/dist/stage/chunks/chunk-5RVLCYPU.js +0 -1
- package/dist/stage/chunks/chunk-6JNM2JPA.js +0 -1
- package/dist/stage/chunks/chunk-7C53OCBB.js +0 -1
- package/dist/stage/chunks/chunk-7DIGILX7.js +0 -1
- package/dist/stage/chunks/chunk-7H7BUWZP.js +0 -1
- package/dist/stage/chunks/chunk-7SM7WG53.js +0 -1
- package/dist/stage/chunks/chunk-A7T3U7OZ.js +0 -1
- package/dist/stage/chunks/chunk-AOLXVYBO.js +0 -1
- package/dist/stage/chunks/chunk-ATDHO5ME.js +0 -1
- package/dist/stage/chunks/chunk-BCDDG7CW.js +0 -1
- package/dist/stage/chunks/chunk-CB4COXKW.js +0 -1
- package/dist/stage/chunks/chunk-CM6UENYI.js +0 -1
- package/dist/stage/chunks/chunk-CVWMERPH.js +0 -1
- package/dist/stage/chunks/chunk-DDCGP5GM.js +0 -1
- package/dist/stage/chunks/chunk-DOGIABU3.js +0 -1
- package/dist/stage/chunks/chunk-DUMMXI6I.js +0 -1
- package/dist/stage/chunks/chunk-E3LBHSMZ.js +0 -1
- package/dist/stage/chunks/chunk-E7JXTPFA.js +0 -1
- package/dist/stage/chunks/chunk-GBE5QYRO.js +0 -1
- package/dist/stage/chunks/chunk-GFV4SJGI.js +0 -1
- package/dist/stage/chunks/chunk-GILBTTLF.js +0 -1
- package/dist/stage/chunks/chunk-GPV2ZFME.js +0 -1
- package/dist/stage/chunks/chunk-HBNF34QX.js +0 -1
- package/dist/stage/chunks/chunk-HREW6EFQ.js +0 -1
- package/dist/stage/chunks/chunk-HZ7KMV42.js +0 -1
- package/dist/stage/chunks/chunk-HZXJUIIX.js +0 -1
- package/dist/stage/chunks/chunk-IE6IKN6P.js +0 -1
- package/dist/stage/chunks/chunk-IWO4MU2F.js +0 -1
- package/dist/stage/chunks/chunk-J7XIIFXF.js +0 -1
- package/dist/stage/chunks/chunk-JG62FTV2.js +0 -1
- package/dist/stage/chunks/chunk-JGELXWD3.js +0 -1
- package/dist/stage/chunks/chunk-JKJRK7ER.js +0 -1
- package/dist/stage/chunks/chunk-JPPPL527.js +0 -1
- package/dist/stage/chunks/chunk-JRCZXEL2.js +0 -1
- package/dist/stage/chunks/chunk-K33QXMAS.js +0 -1
- package/dist/stage/chunks/chunk-K4R2DLAT.js +0 -1
- package/dist/stage/chunks/chunk-MA3WBBC6.js +0 -1
- package/dist/stage/chunks/chunk-MHU6JTZC.js +0 -1
- package/dist/stage/chunks/chunk-MO2MHTOQ.js +0 -1
- package/dist/stage/chunks/chunk-MQKISAKO.js +0 -1
- package/dist/stage/chunks/chunk-ND3BSJOS.js +0 -1
- package/dist/stage/chunks/chunk-NGQ7GQSH.js +0 -1
- package/dist/stage/chunks/chunk-NM4FV6YK.js +0 -1
- package/dist/stage/chunks/chunk-NOHQVE3L.js +0 -1
- package/dist/stage/chunks/chunk-O6ZKHW5L.js +0 -1
- package/dist/stage/chunks/chunk-PBDA5G7U.js +0 -1
- package/dist/stage/chunks/chunk-PBDSKQIQ.js +0 -1
- package/dist/stage/chunks/chunk-PJFVW637.js +0 -1
- package/dist/stage/chunks/chunk-PRXT2NXZ.js +0 -1
- package/dist/stage/chunks/chunk-QAUB5H3S.js +0 -1
- package/dist/stage/chunks/chunk-QDH6OIAL.js +0 -5
- package/dist/stage/chunks/chunk-QM4IVTLC.js +0 -1
- package/dist/stage/chunks/chunk-QUWCLSNF.js +0 -1
- package/dist/stage/chunks/chunk-QVOXRLEG.js +0 -1
- package/dist/stage/chunks/chunk-RAHM76FI.js +0 -1
- package/dist/stage/chunks/chunk-RONEQF2M.js +0 -1
- package/dist/stage/chunks/chunk-RPTOBIKP.js +0 -1
- package/dist/stage/chunks/chunk-RSWDPV5U.js +0 -1
- package/dist/stage/chunks/chunk-SSSTBYOF.js +0 -1
- package/dist/stage/chunks/chunk-SV2PSWLZ.js +0 -1
- package/dist/stage/chunks/chunk-TDXJNI7H.js +0 -1
- package/dist/stage/chunks/chunk-TFGNKPAQ.js +0 -1
- package/dist/stage/chunks/chunk-TYA35RCB.js +0 -1
- package/dist/stage/chunks/chunk-UJZNQZVK.js +0 -1
- package/dist/stage/chunks/chunk-UN7EZPD7.js +0 -1
- package/dist/stage/chunks/chunk-UOBNXO4G.js +0 -1
- package/dist/stage/chunks/chunk-UVV4NANW.js +0 -97
- package/dist/stage/chunks/chunk-V5TNO5LS.js +0 -3
- package/dist/stage/chunks/chunk-VHRU6H4C.js +0 -1
- package/dist/stage/chunks/chunk-VP2XJ5UI.js +0 -1
- package/dist/stage/chunks/chunk-VQDQA3ID.js +0 -1
- package/dist/stage/chunks/chunk-VZJTFJZN.js +0 -1
- package/dist/stage/chunks/chunk-WCL6XNDN.js +0 -1
- package/dist/stage/chunks/chunk-WKUYNMPE.js +0 -1
- package/dist/stage/chunks/chunk-WWWIZ7VG.js +0 -1
- package/dist/stage/chunks/chunk-X2R3VYWI.js +0 -1
- package/dist/stage/chunks/chunk-X5HHNNED.js +0 -1
- package/dist/stage/chunks/chunk-X5INDUEQ.js +0 -1
- package/dist/stage/chunks/chunk-XBUV5F3F.js +0 -1
- package/dist/stage/chunks/chunk-XPWU54SD.js +0 -1
- package/dist/stage/chunks/chunk-YFURTAAV.js +0 -1
- package/dist/stage/chunks/chunk-YRI4I37X.js +0 -1
- package/dist/stage/chunks/chunk-ZCUNR3XN.js +0 -1
- package/dist/stage/chunks/clearDestination-TFFJZYZU.js +0 -1
- package/dist/stage/chunks/clearName-LAT5C4G3.js +0 -1
- package/dist/stage/chunks/clearOptionsExpression-QHE4GD2Y.js +0 -1
- package/dist/stage/chunks/clearRender-XEMKLRCM.js +0 -1
- package/dist/stage/chunks/clearRepeat-OJXLCGGV.js +0 -1
- package/dist/stage/chunks/contentEditor-H4QUMYKV.js +0 -1
- package/dist/stage/chunks/createAction-X7WWJ6BN.js +0 -1
- package/dist/stage/chunks/createAnimation-TYRSVQNL.js +0 -1
- package/dist/stage/chunks/createComputed-NVI2BGGF.js +0 -1
- package/dist/stage/chunks/createTextContent-R4ZOE6SM.js +0 -1
- package/dist/stage/chunks/createValue-GRZQQ5RR.js +0 -1
- package/dist/stage/chunks/design-2S7QAGYM.js +0 -15
- package/dist/stage/chunks/dev-PZI3DDXQ.js +0 -1
- package/dist/stage/chunks/disconnectNode-RRO6QPMX.js +0 -1
- package/dist/stage/chunks/history-5FAKKGJY.js +0 -1
- package/dist/stage/chunks/id-G47WSCWG.js +0 -1
- package/dist/stage/chunks/main-GPY4VWAB.js +0 -1
- package/dist/stage/chunks/main-OLXPOBOM.js +0 -1
- package/dist/stage/chunks/main-QADVRVCC.js +0 -1
- package/dist/stage/chunks/main-RMI3HY2B.js +0 -1
- package/dist/stage/chunks/moveNodeToLastChildOf-SGHEMUMS.js +0 -1
- package/dist/stage/chunks/nodeGraph-UGMYCUUO.js +0 -1
- package/dist/stage/chunks/normalizeEventName-Y34QRO25.js +0 -1
- package/dist/stage/chunks/preview-UBVA3QQU.js +0 -1
- package/dist/stage/chunks/removeAction-UIZVYC4K.js +0 -1
- package/dist/stage/chunks/removeAnimationBinding-PD2IRVQZ.js +0 -1
- package/dist/stage/chunks/removeAttribute-HCDVVDSZ.js +0 -1
- package/dist/stage/chunks/removeComputed-2UWAXEAM.js +0 -1
- package/dist/stage/chunks/removeEvent-GBW7REQV.js +0 -1
- package/dist/stage/chunks/removeLifecycleHook-V4BK7NPV.js +0 -1
- package/dist/stage/chunks/removeNode-H7TWCLTZ.js +0 -1
- package/dist/stage/chunks/removeOption-4SMMGXLO.js +0 -1
- package/dist/stage/chunks/removeParamFromRoute-2Q2PYYP5.js +0 -1
- package/dist/stage/chunks/removeState-X4UQTIPT.js +0 -1
- package/dist/stage/chunks/removeStore-B3WQQP3D.js +0 -1
- package/dist/stage/chunks/removeToken-3QTFHQF6.js +0 -1
- package/dist/stage/chunks/removeValue-QIQBSOHR.js +0 -1
- package/dist/stage/chunks/setDestination-26OTLIOX.js +0 -1
- package/dist/stage/chunks/setHomePage-GBSAVDQC.js +0 -1
- package/dist/stage/chunks/setHtmlId-PZQQWCXU.js +0 -1
- package/dist/stage/chunks/setName-C26SXODP.js +0 -1
- package/dist/stage/chunks/setNodeLayout-PZMYT6M2.js +0 -1
- package/dist/stage/chunks/setOptionsExpression-PQ3JOVEW.js +0 -1
- package/dist/stage/chunks/setRender-MNCOTE35.js +0 -1
- package/dist/stage/chunks/setRepeat-GIOC7YT4.js +0 -1
- package/dist/stage/chunks/setTagName-FA7BMEUS.js +0 -1
- package/dist/stage/chunks/updateAction-TUQLHSJE.js +0 -1
- package/dist/stage/chunks/updateAnimationBinding-I3AQNLO2.js +0 -1
- package/dist/stage/chunks/updateAttribute-TLLDGUPR.js +0 -1
- package/dist/stage/chunks/updateBounds-KL4N7VYO.js +0 -1
- package/dist/stage/chunks/updateComputed-JGJIIC4A.js +0 -1
- package/dist/stage/chunks/updateEvent-YOKH67TX.js +0 -1
- package/dist/stage/chunks/updateHtml-Z4XI7SYU.js +0 -1
- package/dist/stage/chunks/updateLifecycleHook-4555YGGM.js +0 -1
- package/dist/stage/chunks/updateOption-YUFQYF43.js +0 -1
- package/dist/stage/chunks/updateRoute-42OSDVLS.js +0 -1
- package/dist/stage/chunks/updateState-3RQX5YED.js +0 -1
- package/dist/stage/chunks/updateStyle-I5NO4TOV.js +0 -1
- package/dist/stage/chunks/updateToken-AFJYTJ7R.js +0 -1
- package/dist/stage/chunks/updateValue-XGRBUCOT.js +0 -1
- package/dist/stage/chunks/user-CK5IAVFH.js +0 -1
- package/dist/stage/chunks/validateStorePayload-3HAVFGVL.js +0 -3
- package/dist/stage/chunks/viewport-CQRIOXC6.js +0 -1
- package/dist/stage/chunks/window-7JZPBAP7.js +0 -1
- package/dist/stage/design.js +0 -1
- package/dist/stage/dev.js +0 -1
- package/dist/stage/preview.js +0 -1
- package/dist/stage-bundles/preact/chunks/addAction-EGLGEGTS.js +0 -1
- package/dist/stage-bundles/preact/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
- package/dist/stage-bundles/preact/chunks/addAttribute-2MZ3OFUE.js +0 -1
- package/dist/stage-bundles/preact/chunks/addComponent-3JC5NC3Y.js +0 -1
- package/dist/stage-bundles/preact/chunks/addComputed-7JLBFD6I.js +0 -1
- package/dist/stage-bundles/preact/chunks/addEvent-HOBNKM2F.js +0 -1
- package/dist/stage-bundles/preact/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
- package/dist/stage-bundles/preact/chunks/addNode-QXU2P4AE.js +0 -1
- package/dist/stage-bundles/preact/chunks/addOption-PVXGN7AJ.js +0 -1
- package/dist/stage-bundles/preact/chunks/addParamToRoute-VL2VOFZS.js +0 -1
- package/dist/stage-bundles/preact/chunks/addState-U2NWEGWV.js +0 -1
- package/dist/stage-bundles/preact/chunks/addStore-AQMFKH33.js +0 -1
- package/dist/stage-bundles/preact/chunks/addToken-XF2FFA52.js +0 -1
- package/dist/stage-bundles/preact/chunks/addTree-S73GXWZP.js +0 -1
- package/dist/stage-bundles/preact/chunks/addValue-O7YXXMST.js +0 -1
- package/dist/stage-bundles/preact/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
- package/dist/stage-bundles/preact/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
- package/dist/stage-bundles/preact/chunks/aiRelay-C6ZJ3PUF.js +0 -1
- package/dist/stage-bundles/preact/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/assets-6LM3GVQU.js +0 -1
- package/dist/stage-bundles/preact/chunks/capture-ON3BO6WE.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-2Z2RXHNK.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-3WCN6R5H.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-45YNKT2X.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-4Q5R44ZZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-5CWWFBNY.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-5GKIM3R4.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-6KW4HPGN.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-6S7QQT47.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-7I5TQOE2.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-7UENQJSC.js +0 -5
- package/dist/stage-bundles/preact/chunks/chunk-7VDUBBVE.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-7YVQSQRP.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-A25WFH3U.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-A52FDU5E.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-AMPHYXGT.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-AOGIMUZ2.js +0 -103
- package/dist/stage-bundles/preact/chunks/chunk-AS76ZLXK.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-AYZAGKHN.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-BGQJ5B3Q.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-BL6GQ6ID.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-BWJHUHDJ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-CAAW6MG4.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-CC3CCH2E.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-CGCD6S33.js +0 -6
- package/dist/stage-bundles/preact/chunks/chunk-CNZYL2VV.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-CXJ5APZF.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-CYURWEXX.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-DHPGPV5T.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-DLHF7QB4.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-DWW3567Q.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-E6KR5RXO.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-EPVRMHC2.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-EWEPEODY.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-EXXAK3BP.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-F5MJNV7Y.js +0 -3
- package/dist/stage-bundles/preact/chunks/chunk-FAYUYASQ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-G3PYA3EU.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-GEOQWCYL.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-GK5XUHQG.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-GM4D3DPT.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-GUI7FIZD.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-HAN4CMBX.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-HCRWHPFW.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-HE7IQLGK.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-I57W7UZN.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IBDKDP7T.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-ICWQHFOI.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IG2Y3H6O.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IKKRB6BS.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IV6PINVX.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IW4KEJOF.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-IWTWZA3T.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-J5QMLA3Z.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-K5BNCYT7.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-KTWXYDG7.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-LHK7LQPZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-LUY5LC7Z.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-LXD22ETU.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-M577WNTV.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-MGH62JQ4.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-MUZZUB5Y.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-N6I4COF2.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-NFKUJQZH.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-NHY2XYCH.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-NKDO4J6J.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-NOTXZB5N.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-NXBFOI3Z.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-OQM5TMCK.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-PPDOTRNT.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-PU62K33G.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-Q3IER3MW.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-Q3ZV7EKU.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-QD56IMFS.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-QFFVADTJ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-QJ33JO3T.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-QVVBKZW6.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-RFFN4NF4.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-SCJKRPIZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-TPCJQIUG.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-TX5TCU2H.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-UCLSDDOL.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-ULVFWUAU.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-XE3A5HPY.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-XFHQ45KR.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-XTAXESM6.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-YB7FA4Y3.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-YCGY2NRE.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-YCMBBPKT.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-Z3M6DQKZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/chunk-ZUPNPSUB.js +0 -1
- package/dist/stage-bundles/preact/chunks/clearDestination-IGKNL7FN.js +0 -1
- package/dist/stage-bundles/preact/chunks/clearName-HJ7ZTHBU.js +0 -1
- package/dist/stage-bundles/preact/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
- package/dist/stage-bundles/preact/chunks/clearRender-NPVDTNFA.js +0 -1
- package/dist/stage-bundles/preact/chunks/clearRepeat-7YFYZODP.js +0 -1
- package/dist/stage-bundles/preact/chunks/contentEditor-7BYCT3TH.js +0 -1
- package/dist/stage-bundles/preact/chunks/createAction-73YUTK3T.js +0 -1
- package/dist/stage-bundles/preact/chunks/createAnimation-2WQSMYT5.js +0 -1
- package/dist/stage-bundles/preact/chunks/createComputed-DMX7CJA3.js +0 -1
- package/dist/stage-bundles/preact/chunks/createTextContent-4Z4YATBO.js +0 -1
- package/dist/stage-bundles/preact/chunks/createValue-DXQSLOBG.js +0 -1
- package/dist/stage-bundles/preact/chunks/design-3DHGUCPX.js +0 -15
- package/dist/stage-bundles/preact/chunks/disconnectNode-2CLWVIQP.js +0 -1
- package/dist/stage-bundles/preact/chunks/history-CMF3VYTT.js +0 -1
- package/dist/stage-bundles/preact/chunks/id-ZIAZZ5AS.js +0 -1
- package/dist/stage-bundles/preact/chunks/main-3VRCGPRY.js +0 -1
- package/dist/stage-bundles/preact/chunks/main-DH4JOS22.js +0 -1
- package/dist/stage-bundles/preact/chunks/main-FAFZABOS.js +0 -1
- package/dist/stage-bundles/preact/chunks/main-S7RT75O6.js +0 -1
- package/dist/stage-bundles/preact/chunks/moveNodeToLastChildOf-CWSWITHI.js +0 -1
- package/dist/stage-bundles/preact/chunks/nodeGraph-UNI2HUNX.js +0 -1
- package/dist/stage-bundles/preact/chunks/normalizeEventName-SNBYJDUY.js +0 -1
- package/dist/stage-bundles/preact/chunks/preview-YOYSHYJF.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeAction-T4M5EJN7.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeAnimationBinding-AIISPC33.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeAttribute-DCKZLM55.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeComputed-WSA5GNVZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeEvent-2YZ55HD6.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeNode-5HXQ63V3.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeOption-SYIFB4XW.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeState-SGJVQ66N.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeStore-YVBTGA3I.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeToken-AIDV7DUM.js +0 -1
- package/dist/stage-bundles/preact/chunks/removeValue-UP5ZFN3U.js +0 -1
- package/dist/stage-bundles/preact/chunks/setDestination-NCPAVIIK.js +0 -1
- package/dist/stage-bundles/preact/chunks/setHomePage-O2JYOG6H.js +0 -1
- package/dist/stage-bundles/preact/chunks/setHtmlId-2W7YW47O.js +0 -1
- package/dist/stage-bundles/preact/chunks/setName-NKRZPBGG.js +0 -1
- package/dist/stage-bundles/preact/chunks/setNodeLayout-KQVZJBYW.js +0 -1
- package/dist/stage-bundles/preact/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
- package/dist/stage-bundles/preact/chunks/setRender-7XMGQ7ZK.js +0 -1
- package/dist/stage-bundles/preact/chunks/setRepeat-WN4WZJUN.js +0 -1
- package/dist/stage-bundles/preact/chunks/setTagName-U6UJNJLE.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateAction-3KSR6ZIJ.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateAttribute-XXZL2P43.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateBounds-5M7YQRO3.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateComputed-7QA6XZIC.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateEvent-R52PL2G4.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateHtml-YBJJSWQW.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateOption-5U23ZUWV.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateRoute-TFQFFFSZ.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateState-JCUSBQOL.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateStyle-JASLFXVX.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateToken-24P2P2SF.js +0 -1
- package/dist/stage-bundles/preact/chunks/updateValue-TSVJM3PO.js +0 -1
- package/dist/stage-bundles/preact/chunks/user-H5DKMGWA.js +0 -1
- package/dist/stage-bundles/preact/chunks/validateStorePayload-HCBPC7HR.js +0 -3
- package/dist/stage-bundles/preact/chunks/viewport-ZRWTVYC3.js +0 -1
- package/dist/stage-bundles/preact/chunks/window-IMPT5I3D.js +0 -1
- package/dist/stage-bundles/react/chunks/addAction-EGLGEGTS.js +0 -1
- package/dist/stage-bundles/react/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
- package/dist/stage-bundles/react/chunks/addAttribute-2MZ3OFUE.js +0 -1
- package/dist/stage-bundles/react/chunks/addComponent-3JC5NC3Y.js +0 -1
- package/dist/stage-bundles/react/chunks/addComputed-7JLBFD6I.js +0 -1
- package/dist/stage-bundles/react/chunks/addEvent-HOBNKM2F.js +0 -1
- package/dist/stage-bundles/react/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
- package/dist/stage-bundles/react/chunks/addNode-QXU2P4AE.js +0 -1
- package/dist/stage-bundles/react/chunks/addOption-PVXGN7AJ.js +0 -1
- package/dist/stage-bundles/react/chunks/addParamToRoute-VL2VOFZS.js +0 -1
- package/dist/stage-bundles/react/chunks/addState-U2NWEGWV.js +0 -1
- package/dist/stage-bundles/react/chunks/addStore-AQMFKH33.js +0 -1
- package/dist/stage-bundles/react/chunks/addToken-XF2FFA52.js +0 -1
- package/dist/stage-bundles/react/chunks/addTree-S73GXWZP.js +0 -1
- package/dist/stage-bundles/react/chunks/addValue-O7YXXMST.js +0 -1
- package/dist/stage-bundles/react/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
- package/dist/stage-bundles/react/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
- package/dist/stage-bundles/react/chunks/aiRelay-C6ZJ3PUF.js +0 -1
- package/dist/stage-bundles/react/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
- package/dist/stage-bundles/react/chunks/assets-6LM3GVQU.js +0 -1
- package/dist/stage-bundles/react/chunks/capture-6GFKGXIT.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-2Z2RXHNK.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-3WCN6R5H.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-45YNKT2X.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-4Q5R44ZZ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-5CWWFBNY.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-5GKIM3R4.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-6KW4HPGN.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-6S7QQT47.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-7I5TQOE2.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-7UENQJSC.js +0 -5
- package/dist/stage-bundles/react/chunks/chunk-7VDUBBVE.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-7YVQSQRP.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-A25WFH3U.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-A52FDU5E.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-AMPHYXGT.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-AS76ZLXK.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-AYZAGKHN.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-BGQJ5B3Q.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-BL6GQ6ID.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-BWJHUHDJ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-CAAW6MG4.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-CC3CCH2E.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-CGCD6S33.js +0 -6
- package/dist/stage-bundles/react/chunks/chunk-CNZYL2VV.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-CXJ5APZF.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-CYURWEXX.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-DHPGPV5T.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-DLHF7QB4.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-E6KR5RXO.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-EPVRMHC2.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-EWEPEODY.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-EXXAK3BP.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-F5MJNV7Y.js +0 -3
- package/dist/stage-bundles/react/chunks/chunk-FAYUYASQ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-G3PYA3EU.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-GEOQWCYL.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-GK5XUHQG.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-GM4D3DPT.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-GUI7FIZD.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-HAN4CMBX.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-HCRWHPFW.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-HE7IQLGK.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-HJOMUN4M.js +0 -49
- package/dist/stage-bundles/react/chunks/chunk-I57W7UZN.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IBDKDP7T.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-ICWQHFOI.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IG2Y3H6O.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IKKRB6BS.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IV6PINVX.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IW4KEJOF.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-IWTWZA3T.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-J5QMLA3Z.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-K5BNCYT7.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-KTWXYDG7.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-LHK7LQPZ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-LUY5LC7Z.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-LXD22ETU.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-M577WNTV.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-MGH62JQ4.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-MUZZUB5Y.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-N6I4COF2.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-NFKUJQZH.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-NHY2XYCH.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-NKDO4J6J.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-NOTXZB5N.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-NXBFOI3Z.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-OQM5TMCK.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-PPDOTRNT.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-PU62K33G.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-Q3IER3MW.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-Q3ZV7EKU.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-QD56IMFS.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-QFFVADTJ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-QJ33JO3T.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-QVVBKZW6.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-RFFN4NF4.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-SCJKRPIZ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-TPCJQIUG.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-TX5TCU2H.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-U66LRTNF.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-UCLSDDOL.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-ULVFWUAU.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-XE3A5HPY.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-XFHQ45KR.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-XTAXESM6.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-YB7FA4Y3.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-YCGY2NRE.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-YCMBBPKT.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-Z3M6DQKZ.js +0 -1
- package/dist/stage-bundles/react/chunks/chunk-ZUPNPSUB.js +0 -1
- package/dist/stage-bundles/react/chunks/clearDestination-IGKNL7FN.js +0 -1
- package/dist/stage-bundles/react/chunks/clearName-HJ7ZTHBU.js +0 -1
- package/dist/stage-bundles/react/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
- package/dist/stage-bundles/react/chunks/clearRender-NPVDTNFA.js +0 -1
- package/dist/stage-bundles/react/chunks/clearRepeat-7YFYZODP.js +0 -1
- package/dist/stage-bundles/react/chunks/contentEditor-7BYCT3TH.js +0 -1
- package/dist/stage-bundles/react/chunks/createAction-73YUTK3T.js +0 -1
- package/dist/stage-bundles/react/chunks/createAnimation-2WQSMYT5.js +0 -1
- package/dist/stage-bundles/react/chunks/createComputed-DMX7CJA3.js +0 -1
- package/dist/stage-bundles/react/chunks/createTextContent-4Z4YATBO.js +0 -1
- package/dist/stage-bundles/react/chunks/createValue-DXQSLOBG.js +0 -1
- package/dist/stage-bundles/react/chunks/design-6KSNU4OK.js +0 -15
- package/dist/stage-bundles/react/chunks/disconnectNode-2CLWVIQP.js +0 -1
- package/dist/stage-bundles/react/chunks/history-CMF3VYTT.js +0 -1
- package/dist/stage-bundles/react/chunks/id-ZIAZZ5AS.js +0 -1
- package/dist/stage-bundles/react/chunks/main-3VRCGPRY.js +0 -1
- package/dist/stage-bundles/react/chunks/main-DH4JOS22.js +0 -1
- package/dist/stage-bundles/react/chunks/main-FAFZABOS.js +0 -1
- package/dist/stage-bundles/react/chunks/main-S7RT75O6.js +0 -1
- package/dist/stage-bundles/react/chunks/moveNodeToLastChildOf-CWSWITHI.js +0 -1
- package/dist/stage-bundles/react/chunks/nodeGraph-UNI2HUNX.js +0 -1
- package/dist/stage-bundles/react/chunks/normalizeEventName-SNBYJDUY.js +0 -1
- package/dist/stage-bundles/react/chunks/preview-KOCHK3AH.js +0 -1
- package/dist/stage-bundles/react/chunks/removeAction-T4M5EJN7.js +0 -1
- package/dist/stage-bundles/react/chunks/removeAnimationBinding-AIISPC33.js +0 -1
- package/dist/stage-bundles/react/chunks/removeAttribute-DCKZLM55.js +0 -1
- package/dist/stage-bundles/react/chunks/removeComputed-WSA5GNVZ.js +0 -1
- package/dist/stage-bundles/react/chunks/removeEvent-2YZ55HD6.js +0 -1
- package/dist/stage-bundles/react/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
- package/dist/stage-bundles/react/chunks/removeNode-5HXQ63V3.js +0 -1
- package/dist/stage-bundles/react/chunks/removeOption-SYIFB4XW.js +0 -1
- package/dist/stage-bundles/react/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
- package/dist/stage-bundles/react/chunks/removeState-SGJVQ66N.js +0 -1
- package/dist/stage-bundles/react/chunks/removeStore-YVBTGA3I.js +0 -1
- package/dist/stage-bundles/react/chunks/removeToken-AIDV7DUM.js +0 -1
- package/dist/stage-bundles/react/chunks/removeValue-UP5ZFN3U.js +0 -1
- package/dist/stage-bundles/react/chunks/setDestination-NCPAVIIK.js +0 -1
- package/dist/stage-bundles/react/chunks/setHomePage-O2JYOG6H.js +0 -1
- package/dist/stage-bundles/react/chunks/setHtmlId-2W7YW47O.js +0 -1
- package/dist/stage-bundles/react/chunks/setName-NKRZPBGG.js +0 -1
- package/dist/stage-bundles/react/chunks/setNodeLayout-KQVZJBYW.js +0 -1
- package/dist/stage-bundles/react/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
- package/dist/stage-bundles/react/chunks/setRender-7XMGQ7ZK.js +0 -1
- package/dist/stage-bundles/react/chunks/setRepeat-WN4WZJUN.js +0 -1
- package/dist/stage-bundles/react/chunks/setTagName-U6UJNJLE.js +0 -1
- package/dist/stage-bundles/react/chunks/updateAction-3KSR6ZIJ.js +0 -1
- package/dist/stage-bundles/react/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
- package/dist/stage-bundles/react/chunks/updateAttribute-XXZL2P43.js +0 -1
- package/dist/stage-bundles/react/chunks/updateBounds-5M7YQRO3.js +0 -1
- package/dist/stage-bundles/react/chunks/updateComputed-7QA6XZIC.js +0 -1
- package/dist/stage-bundles/react/chunks/updateEvent-R52PL2G4.js +0 -1
- package/dist/stage-bundles/react/chunks/updateHtml-YBJJSWQW.js +0 -1
- package/dist/stage-bundles/react/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
- package/dist/stage-bundles/react/chunks/updateOption-5U23ZUWV.js +0 -1
- package/dist/stage-bundles/react/chunks/updateRoute-TFQFFFSZ.js +0 -1
- package/dist/stage-bundles/react/chunks/updateState-JCUSBQOL.js +0 -1
- package/dist/stage-bundles/react/chunks/updateStyle-JASLFXVX.js +0 -1
- package/dist/stage-bundles/react/chunks/updateToken-24P2P2SF.js +0 -1
- package/dist/stage-bundles/react/chunks/updateValue-TSVJM3PO.js +0 -1
- package/dist/stage-bundles/react/chunks/user-H5DKMGWA.js +0 -1
- package/dist/stage-bundles/react/chunks/validateStorePayload-HCBPC7HR.js +0 -3
- package/dist/stage-bundles/react/chunks/viewport-ZRWTVYC3.js +0 -1
- package/dist/stage-bundles/react/chunks/window-IMPT5I3D.js +0 -1
- package/dist/stage-bundles/vue/chunks/addAction-EGLGEGTS.js +0 -1
- package/dist/stage-bundles/vue/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
- package/dist/stage-bundles/vue/chunks/addAttribute-2MZ3OFUE.js +0 -1
- package/dist/stage-bundles/vue/chunks/addComponent-NG2BML2S.js +0 -1
- package/dist/stage-bundles/vue/chunks/addComputed-7JLBFD6I.js +0 -1
- package/dist/stage-bundles/vue/chunks/addEvent-HOBNKM2F.js +0 -1
- package/dist/stage-bundles/vue/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
- package/dist/stage-bundles/vue/chunks/addNode-UNXHE5VL.js +0 -1
- package/dist/stage-bundles/vue/chunks/addOption-PVXGN7AJ.js +0 -1
- package/dist/stage-bundles/vue/chunks/addParamToRoute-VL2VOFZS.js +0 -1
- package/dist/stage-bundles/vue/chunks/addState-U2NWEGWV.js +0 -1
- package/dist/stage-bundles/vue/chunks/addStore-AQMFKH33.js +0 -1
- package/dist/stage-bundles/vue/chunks/addToken-XF2FFA52.js +0 -1
- package/dist/stage-bundles/vue/chunks/addTree-MFMYQTGN.js +0 -1
- package/dist/stage-bundles/vue/chunks/addValue-O7YXXMST.js +0 -1
- package/dist/stage-bundles/vue/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
- package/dist/stage-bundles/vue/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
- package/dist/stage-bundles/vue/chunks/aiRelay-C6ZJ3PUF.js +0 -1
- package/dist/stage-bundles/vue/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/assets-6LM3GVQU.js +0 -1
- package/dist/stage-bundles/vue/chunks/capture-XURVK5HZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-2Z2RXHNK.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-4M7L75C7.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-4Q5R44ZZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-5CWWFBNY.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-5GKIM3R4.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-6KW4HPGN.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-6S7QQT47.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-7UENQJSC.js +0 -5
- package/dist/stage-bundles/vue/chunks/chunk-7VDUBBVE.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-7YVQSQRP.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-A25WFH3U.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-A52FDU5E.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-AMPHYXGT.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-AS76ZLXK.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-AYZAGKHN.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-BJPSGTXJ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-BL6GQ6ID.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-BWJHUHDJ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-CAAW6MG4.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-CC3CCH2E.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-CGCD6S33.js +0 -6
- package/dist/stage-bundles/vue/chunks/chunk-CNZYL2VV.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-CXJ5APZF.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-CYURWEXX.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-DHPGPV5T.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-DLHF7QB4.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-E6KR5RXO.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-EPVRMHC2.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-EWEPEODY.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-EXXAK3BP.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-F5MJNV7Y.js +0 -3
- package/dist/stage-bundles/vue/chunks/chunk-F7DSZRND.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-FAYUYASQ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-GEOQWCYL.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-GK5XUHQG.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-GM4D3DPT.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-GUI7FIZD.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-GW7KMMRR.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-HAN4CMBX.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-HCRWHPFW.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-HE7IQLGK.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-HYSOOJLT.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-I57W7UZN.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IBDKDP7T.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-ICWQHFOI.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IG2Y3H6O.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IKKRB6BS.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IV6PINVX.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IW4KEJOF.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-IWTWZA3T.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-J5QMLA3Z.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-K5BNCYT7.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-K5IR3PSI.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-KTWXYDG7.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-LHK7LQPZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-LUY5LC7Z.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-LXD22ETU.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-MGH62JQ4.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-MUZZUB5Y.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-N6I4COF2.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-NFKUJQZH.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-NHY2XYCH.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-NKDO4J6J.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-NOTXZB5N.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-NXBFOI3Z.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-OQM5TMCK.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-PPDOTRNT.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-PU62K33G.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-Q3IER3MW.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-Q3ZV7EKU.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-QD56IMFS.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-QFFVADTJ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-QFJRB6B2.js +0 -103
- package/dist/stage-bundles/vue/chunks/chunk-QJ33JO3T.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-QVVBKZW6.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-RFFN4NF4.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-SCJKRPIZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-TPCJQIUG.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-TX5TCU2H.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-UCLSDDOL.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-ULVFWUAU.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-USKXWFBI.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-XE3A5HPY.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-XFHQ45KR.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-XTAXESM6.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-YB7FA4Y3.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-YCGY2NRE.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-YCMBBPKT.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-Z3M6DQKZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/chunk-ZUPNPSUB.js +0 -1
- package/dist/stage-bundles/vue/chunks/clearDestination-IGKNL7FN.js +0 -1
- package/dist/stage-bundles/vue/chunks/clearName-HJ7ZTHBU.js +0 -1
- package/dist/stage-bundles/vue/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
- package/dist/stage-bundles/vue/chunks/clearRender-NPVDTNFA.js +0 -1
- package/dist/stage-bundles/vue/chunks/clearRepeat-7YFYZODP.js +0 -1
- package/dist/stage-bundles/vue/chunks/contentEditor-7BYCT3TH.js +0 -1
- package/dist/stage-bundles/vue/chunks/createAction-73YUTK3T.js +0 -1
- package/dist/stage-bundles/vue/chunks/createAnimation-2WQSMYT5.js +0 -1
- package/dist/stage-bundles/vue/chunks/createComputed-DMX7CJA3.js +0 -1
- package/dist/stage-bundles/vue/chunks/createTextContent-4Z4YATBO.js +0 -1
- package/dist/stage-bundles/vue/chunks/createValue-DXQSLOBG.js +0 -1
- package/dist/stage-bundles/vue/chunks/design-4GTDZLD2.js +0 -15
- package/dist/stage-bundles/vue/chunks/disconnectNode-2CLWVIQP.js +0 -1
- package/dist/stage-bundles/vue/chunks/history-CMF3VYTT.js +0 -1
- package/dist/stage-bundles/vue/chunks/id-ZIAZZ5AS.js +0 -1
- package/dist/stage-bundles/vue/chunks/main-4HW35P75.js +0 -1
- package/dist/stage-bundles/vue/chunks/main-BVDJS6IT.js +0 -1
- package/dist/stage-bundles/vue/chunks/main-DH4JOS22.js +0 -1
- package/dist/stage-bundles/vue/chunks/main-PALLSI3C.js +0 -1
- package/dist/stage-bundles/vue/chunks/moveNodeToLastChildOf-BLKABBSO.js +0 -1
- package/dist/stage-bundles/vue/chunks/nodeGraph-UNI2HUNX.js +0 -1
- package/dist/stage-bundles/vue/chunks/normalizeEventName-SNBYJDUY.js +0 -1
- package/dist/stage-bundles/vue/chunks/preview-QUDMZGVG.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeAction-T4M5EJN7.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeAnimationBinding-AIISPC33.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeAttribute-DCKZLM55.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeComputed-WSA5GNVZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeEvent-2YZ55HD6.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeNode-5HXQ63V3.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeOption-SYIFB4XW.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeState-SGJVQ66N.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeStore-YVBTGA3I.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeToken-AIDV7DUM.js +0 -1
- package/dist/stage-bundles/vue/chunks/removeValue-UP5ZFN3U.js +0 -1
- package/dist/stage-bundles/vue/chunks/setDestination-NCPAVIIK.js +0 -1
- package/dist/stage-bundles/vue/chunks/setHomePage-O2JYOG6H.js +0 -1
- package/dist/stage-bundles/vue/chunks/setHtmlId-2W7YW47O.js +0 -1
- package/dist/stage-bundles/vue/chunks/setName-NKRZPBGG.js +0 -1
- package/dist/stage-bundles/vue/chunks/setNodeLayout-KQVZJBYW.js +0 -1
- package/dist/stage-bundles/vue/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
- package/dist/stage-bundles/vue/chunks/setRender-7XMGQ7ZK.js +0 -1
- package/dist/stage-bundles/vue/chunks/setRepeat-WN4WZJUN.js +0 -1
- package/dist/stage-bundles/vue/chunks/setTagName-U6UJNJLE.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateAction-3KSR6ZIJ.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateAttribute-XXZL2P43.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateBounds-5M7YQRO3.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateComputed-7QA6XZIC.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateEvent-R52PL2G4.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateHtml-YBJJSWQW.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateOption-5U23ZUWV.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateRoute-TFQFFFSZ.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateState-JCUSBQOL.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateStyle-JASLFXVX.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateToken-24P2P2SF.js +0 -1
- package/dist/stage-bundles/vue/chunks/updateValue-TSVJM3PO.js +0 -1
- package/dist/stage-bundles/vue/chunks/user-H5DKMGWA.js +0 -1
- package/dist/stage-bundles/vue/chunks/validateStorePayload-HCBPC7HR.js +0 -3
- package/dist/stage-bundles/vue/chunks/viewport-ZRWTVYC3.js +0 -1
- package/dist/stage-bundles/vue/chunks/window-IMPT5I3D.js +0 -1
- package/dist/stage-src/dev/server.js +0 -166
- package/dist/stage-src/preview/bootstrap.js +0 -20
- package/dist/stage-src/preview/entry.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(n){return n==null?null:typeof n=="string"?{mode:"value",value:n,binding:null,computed:null}:n}export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as n}from"./chunk-DLROTED3.js";function l(e,t,o){if(e.get([t]))for(let[u,c]of Object.entries(o))e.set([t,u],c)}var r=()=>({$value:null,$type:"color",$path:null});function i(e,t={}){let o=n();return e.set([o],{...r(),...t}),o}function v(e,t){let o=e.get([t]);return e.remove([t]),o}export{l as a,r as b,i as c,v as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as A,f as o,g as m,h as b,i as c}from"./chunk-P722OZCF.js";var $={PRIMITIVE:0,OBJECT:1,ARRAY:2,RESERVED:3},Pe=class D{constructor(e){this.flags=0,e!==void 0&&(typeof e=="function"?this.flags|=1:e instanceof Set||e instanceof Map?(this.value=e,this.originalType=$.PRIMITIVE):typeof e=="object"&&e!==null&&!Array.isArray(e)?(this._children=new Map(Object.entries(e).map(([t,r])=>[t,new D(r)])),this.flags|=16,this.originalType=$.OBJECT):Array.isArray(e)?(this._children=new Map(e.map((t,r)=>[r,new D(t)])),this.flags|=16,this.originalType=$.ARRAY):(this.value=e,this.originalType=$.PRIMITIVE))}get isFunction(){return(this.flags&1)!==0}set isFunction(e){this.flags=e?this.flags|1:this.flags&-2}get isSetOnce(){return(this.flags&2)!==0}set isSetOnce(e){this.flags=e?this.flags|2:this.flags&-3}get cached(){return(this.flags&4)!==0}set cached(e){this.flags=e?this.flags|4:this.flags&-5}get executed(){return(this.flags&8)!==0}set executed(e){this.flags=e?this.flags|8:this.flags&-9}get hasChildrenFlag(){return(this.flags&16)!==0}set hasChildrenFlag(e){this.flags=e?this.flags|16:this.flags&-17}get isFixed(){return(this.flags&32)!==0}set isFixed(e){this.flags=e?this.flags|32:this.flags&-33}get originalType(){return this.flags>>6&3}set originalType(e){this.flags=this.flags&-193|(e&3)<<6}get children(){return this._children||(this._children=new Map,this.hasChildrenFlag=!0),this._children}hasChildren(){return this.hasChildrenFlag&&this._children&&this._children.size>0}isEmpty(){return this.value===void 0&&(!this._children||this._children.size===0)}get cachedResult(){return this._cachedResult}set cachedResult(e){this._cachedResult=e}get cachedAt(){return this._cachedAt}set cachedAt(e){this._cachedAt=e}get(e){let t=e.shift();if(t===void 0){if(this.flags&1){if((this.flags&6)===6)return this.cachedResult;let r=this.value();return this.flags&2&&(this.flags|=4,this.cachedResult=r,this.cachedAt=Date.now()),this.flags|=8,r}return this.value!==void 0?this.value:this.hasChildren()?this._reconstructFromChildren():void 0}if(this._children?.has(t))return this._children.get(t).get(e)}set(e,t){let r=e.shift();if(r===void 0){if(this.isFixed)throw new Error("Cannot overwrite fixed value at path. Use clearFixed() first if you need to modify it.");return t instanceof Set||t instanceof Map?(this.value=t,this.flags=0,this.originalType=$.PRIMITIVE):typeof t=="object"&&t!==null&&!Array.isArray(t)&&typeof t!="function"?this._syncObjectChildren(t):Array.isArray(t)?this._syncArrayChildren(t):(this.value=t,this.flags=typeof t=="function"?1:0,this.originalType=$.PRIMITIVE),this}let s=this.children;return s.has(r)||s.set(r,new D),s.get(r).set(e,t),this}setOnce(e,t){let r=e.shift();if(r===void 0){if(this.isFixed)throw new Error("Cannot overwrite fixed value at path. Use clearFixed() first if you need to modify it.");return t instanceof Set||t instanceof Map?(this.value=t,this.flags=2,this.originalType=$.PRIMITIVE):typeof t=="object"&&t!==null&&!Array.isArray(t)&&typeof t!="function"?(this._syncObjectChildren(t),this.flags=this.flags|2):Array.isArray(t)?(this._syncArrayChildren(t),this.flags=this.flags|2):(this.value=t,this.flags=typeof t=="function"?3:2,this.originalType=$.PRIMITIVE),this}let s=this.children;return s.has(r)||s.set(r,new D),s.get(r).setOnce(e,t),this}has(e){let t=e.shift();return t===void 0?this.value!==void 0||this.hasChildren():this._children?.has(t)?this._children.get(t).has(e):!1}hasValue(e){let t=e.shift();return t===void 0?this.value!==void 0:this._children?.has(t)?this._children.get(t).hasValue(e):!1}remove(e){let t=e.shift();if(t===void 0)return this.value=void 0,this._children=void 0,this.flags=this.flags&-32,this;if(this._children?.has(t)){let r=this._children.get(t);r.remove(e),r.isEmpty()&&this._children.delete(t)}return this}clearCache(e){let t=e.shift();return t===void 0?(this.flags=this.flags&-5,this.cachedResult=null,this.cachedAt=null,this):(this._children?.has(t)&&this._children.get(t).clearCache(e),this)}fixed(e,t){let r=e.shift();if(r===void 0){if(this.value!==void 0&&this.isFixed)throw new Error("Value at path is already fixed and cannot be changed. Use clearFixed() first if needed.");return this.value=t,this.flags=(typeof t=="function"?1:0)|32,this}let s=this.children;return s.has(r)||s.set(r,new D),s.get(r).fixed(e,t),this}clearFixed(e){let t=e.shift();return t===void 0?this.isFixed?(this.flags=this.flags&-33,this):(console.warn("Attempted to clear fixed flag on non-fixed value"),this):(this._children?.has(t)&&this._children.get(t).clearFixed(e),this)}isFixedValue(e){let t=e.shift();return t===void 0?this.isFixed:this._children?.has(t)?this._children.get(t).isFixedValue(e):!1}_syncObjectChildren(e){let t=new Set(Object.keys(e)),r=new Set(this.children.keys());for(let s of r)t.has(s)||this.children.delete(s);for(let[s,n]of Object.entries(e))if(this.children.has(s)||this.children.set(s,new D),typeof n=="object"&&n!==null&&!Array.isArray(n)&&typeof n!="function")this.children.get(s)._syncObjectChildren(n);else if(Array.isArray(n))this.children.get(s)._syncArrayChildren(n);else{let l=this.children.get(s);l.value=n,l.flags=typeof n=="function"?1:0}this.value=void 0,this.flags=this.flags&-2,this.originalType=$.OBJECT}_syncArrayChildren(e){let t=new Set(e.map((s,n)=>n)),r=new Set(this.children.keys());for(let s of r)typeof s=="number"&&!t.has(s)&&this.children.delete(s);for(let s=0;s<e.length;s++){let n=e[s];if(this.children.has(s)||this.children.set(s,new D),typeof n=="object"&&n!==null&&!Array.isArray(n)&&typeof n!="function")this.children.get(s)._syncObjectChildren(n);else if(Array.isArray(n))this.children.get(s)._syncArrayChildren(n);else{let l=this.children.get(s);l.value=n,l.flags=typeof n=="function"?1:0}}this.value=void 0,this.flags=this.flags&-2,this.originalType=$.ARRAY}_reconstructFromChildren(){if(!(!this._children||this._children.size===0))if(this.originalType===$.ARRAY){let e=[];for(let[t,r]of this._children)typeof t=="number"&&(e[t]=r.get([]));return e}else{let e={};for(let[t,r]of this._children)e[t]=r.get([]);return e}}},pt=class Se{static create(e){return new Se(e)}constructor(e={}){return this.load(e)}load(e){return this.root=new Pe(e),this}get(e){let t=Array.isArray(e)?[...e]:[e];return this.root.get(t)}update(e,t){let r=Array.isArray(e)?[...e]:[e],s=this.root.get([...r]),n=t(s);return this.root.set([...r],n),this}set(e,t){let r=Array.isArray(e)?[...e]:[e];return this.root.set(r,t),this}setOnce(e,t){let r=Array.isArray(e)?[...e]:[e];return this.root.setOnce(r,t),this}fixed(e,t){let r=Array.isArray(e)?[...e]:[e];return this.root.fixed(r,t),this}has(e){let t=Array.isArray(e)?[...e]:[e];return this.root.has(t)}hasValue(e){let t=Array.isArray(e)?[...e]:[e];return this.root.hasValue(t)}remove(e){let t=Array.isArray(e)?[...e]:[e];return this.root.remove(t),this}clearCache(e){let t=Array.isArray(e)?[...e]:[e];return this.root.clearCache(t),this}clearFixed(e){let t=Array.isArray(e)?[...e]:[e];return this.root.clearFixed(t),this}isFixed(e){let t=Array.isArray(e)?[...e]:[e];return this.root.isFixedValue(t)}export(){return this._exportNode(this.root)}static import(e){let t=new Se;return t.root=t._importNode(e),t}_exportNode(e){let t={flags:e.flags};if(e.isFunction)t.type="function",t.skipped=!0;else if(e.hasChildren()){t.type="map",t.value=[];for(let[r,s]of e._children)t.value.push([r,this._exportNode(s)]);e.value!==void 0&&(t.nodeValue=e.value)}else e.value!==void 0?(t.type="primitive",t.value=e.value):t.type="empty";return t}_importNode(e){let t=new Pe;switch(t.flags=e.flags||0,e.type){case"function":t.value=void 0,t.flags=t.flags&-16;break;case"primitive":t.value=e.value;break;case"map":if(e.value&&e.value.length>0){t._children=new Map;for(let[r,s]of e.value){let n=typeof r=="string"&&/^\d+$/.test(r)?parseInt(r,10):r;t._children.set(n,this._importNode(s))}t.hasChildrenFlag=!0}e.nodeValue!==void 0&&(t.value=e.nodeValue);break;case"empty":default:break}return t}};var J=Object.freeze(Object.create(null));function yt(i){if(globalThis.queueMicrotask&&typeof globalThis.queueMicrotask=="function"){globalThis.queueMicrotask(i);return}setTimeout(i,0)}var I,S,Ke,mt=(Ke=class{constructor(i,e){m(this,I);m(this,S);b(this,I,i),b(this,S,e)}on(i,e){return o(this,S).subscribe(i,J,o(this,I),e)}once(i,e){return o(this,S).once(i,J,o(this,I),e)}broadcast(i,...e){o(this,S).publish(i,o(this,I),J,e)}from(i){return{subscribe:(e,t)=>o(this,S).subscribe(e,i,o(this,I),t),once:(e,t)=>o(this,S).once(e,i,o(this,I),t)}}to(i){return{publish:(e,...t)=>o(this,S).publish(e,o(this,I),i,t),publishAsync:(e,...t)=>o(this,S).publishAsync(e,o(this,I),i,t)}}},I=new WeakMap,S=new WeakMap,Ke),ae,x,le,ee,Qe,te,j,_e,Xe,Me,wt=(j=class{constructor({onError:e=null}={}){m(this,ee);m(this,ae,new WeakMap);m(this,x,new Map);m(this,le,null);b(this,le,e),this.createChannel(J)}static create(e={}){return new j(e)}channel(e){return this.createChannel(e)}createChannel(e){if(o(this,ae).has(e))return o(this,ae).get(e);let t=new mt(e,this);return o(this,ae).set(e,t),t}subscribe(e,t,r,s){let n={from:t,to:r,handler:s};return c(this,ee,Qe).call(this,e).add(n),()=>{let l=o(this,x).get(e);l&&l.delete(n)}}once(e,t,r,s){let n=null,l=a=>{try{s(a)}finally{n&&n()}};return n=this.subscribe(e,t,r,l),n}offAllFor(e){for(let t of o(this,x).values())for(let r of Array.from(t))(r.from===e||r.to===e)&&t.delete(r)}listenerCount(e){let t=o(this,x).get(e);return t?t.size:0}publish(e,t,r,s){c(this,ee,Me).call(this,e,t,r,s)}publishAsync(e,t,r,s){yt(()=>c(this,ee,Me).call(this,e,t,r,s))}broadcast(e,t,r){this.publish(e,t,J,r)}},ae=new WeakMap,x=new WeakMap,le=new WeakMap,ee=new WeakSet,Qe=function(e){let t=o(this,x).get(e);return t||(t=new Set,o(this,x).set(e,t)),t},te=new WeakSet,_e=function(e,t){return e===J||t===J||e===t},Xe=function(e,t,r,s){var n,l;return c(n=j,te,_e).call(n,e,r)&&c(l=j,te,_e).call(l,t,s)},Me=function(e,t,r,s){var l;let n=o(this,x).get(e);if(!(!n||n.size===0)){for(let a of n)if(a.to!==t&&c(l=j,te,Xe).call(l,t,r,a.from,a.to))try{a.handler(...s)}catch(u){o(this,le)&&o(this,le).call(this,u,{event:e,from:t,to:r,listener:a})}}},m(j,te),j),re={trace:10,debug:20,info:30,warn:40,error:50,silent:90},P,L,q,X,bt=(X=class{constructor({level:e="info",sinks:t=[],base:r={}}={}){m(this,P);m(this,L);m(this,q);b(this,P,re[e]??re.info),b(this,L,t),b(this,q,r)}static create(e={}){return new X(e)}setLevel(e){b(this,P,re[e]??o(this,P))}child(e={},t=[]){return new X({level:this.level,sinks:[...o(this,L),...t],base:{...o(this,q),...e}})}get level(){return Object.entries(re).find(([e,t])=>t===o(this,P))?.[0]??"info"}log(e,t,r={}){if((re[e]??re.info)<o(this,P))return;let s={t:Date.now(),level:e,msg:t,...o(this,q),...r};for(let n of o(this,L))n(s)}trace(e,t){this.log("trace",e,t)}debug(e,t){this.log("debug",e,t)}info(e,t){this.log("info",e,t)}warn(e,t){this.log("warn",e,t)}error(e,t){this.log("error",e,t)}progress(e,t,r="",s={}){let n={t:Date.now(),type:"progress",level:"info",msg:r,current:e,total:t,message:r,percentage:Math.round(e/t*100),...o(this,q),...s};for(let l of o(this,L))l(n)}metric(e,t,r="ms",s={}){let n={t:Date.now(),type:"metric",level:"info",msg:`${e}: ${t}${r}`,name:e,value:t,unit:r,...o(this,q),...s};for(let l of o(this,L))l(n)}},P=new WeakMap,L=new WeakMap,q=new WeakMap,X),vt=i=>{let{t:e,level:t,msg:r,ns:s,...n}=i,l=new Date(e).toISOString(),a=t==="error"?console.error:t==="warn"?console.warn:console.log,u=`${s?`[${s}] `:""}${r}`;Object.keys(n).length>0?a(`[${l}] ${t.toUpperCase()} ${u}`,n):a(`[${l}] ${t.toUpperCase()} ${u}`)},Et=(i=1e3)=>{let e=[];return{sink:t=>{e.push(t),e.length>i&&e.shift()},read:()=>e.slice(),clear:()=>{e.length=0}}};function At(i,e,t="value"){if(Array.isArray(e)){for(let s of e)if(Le(i,s))return!0;let r=e.map(we).join(" | ");throw new TypeError(`${t} must be one of: ${r}. Got ${we(i)}`)}if(!Le(i,e))throw new TypeError(`${t} must be ${we(e)}. Got ${we(i)}`);return!0}function Le(i,e){return e===String?typeof i=="string":e===Number?typeof i=="number"&&!isNaN(i):e===Boolean?typeof i=="boolean":e===Symbol?typeof i=="symbol":e===BigInt?typeof i=="bigint":e===Function?typeof i=="function":e===Array?Array.isArray(i):e===Object?i!==null&&typeof i=="object"&&!Array.isArray(i):i instanceof e}function we(i){return i===String?"String":i===Number?"Number":i===Boolean?"Boolean":i===Array?"Array":i===Object?"Object":i===Function?"Function":i===Date?"Date":i===RegExp?"RegExp":i===Promise?"Promise":i===Map?"Map":i===Set?"Set":i===WeakMap?"WeakMap":i===WeakSet?"WeakSet":i===Symbol?"Symbol":i===BigInt?"BigInt":i===Error?"Error":typeof i=="string"?"string":typeof i=="number"?"number":typeof i=="boolean"?"boolean":typeof i=="symbol"?"symbol":typeof i=="bigint"?"bigint":typeof i=="function"?"function":Array.isArray(i)?"Array":i===null?"null":i===void 0?"undefined":typeof i=="object"?i.constructor?.name||"Object":"unknown"}function qe(i,e="value"){return t=>At(t,i,e)}var $e=new Map,Oe=new WeakMap,ze=i=>{if(Oe.has(i))return Oe.get(i)},me=(i,e=[],...t)=>{let r=e.length>0?qe(e,"return value"):null;if($e.has(i))return console.warn(`Definition type "${i}" already exists`),$e.get(i);let s=(...n)=>{if(n.length===0)throw new Error("At least one argument is required");let[l,a]=n,u=typeof l=="string"?l:void 0,f=typeof l=="function"?l:a;qe(Function,"factory")(f);let d=(...y)=>{try{let g=f.apply(null,[...y,...t]);if(r&&g===void 0)throw new Error(`Factory ${i} must return a value for ${u}`);return r&&r(g),g}catch(g){throw console.error(`Error creating definition "${u}"`,g),g}};return Object.defineProperty(d,"_name",{value:u,enumerable:!1,configurable:!1}),Oe.set(d,i),d};return $e.set(i,s),s},Ne=i=>i&&i.constructor&&i.constructor.name==="AsyncFunction",$t=(i,e)=>Ne(e)||i.some(Ne),Ue=(i,e)=>e.length===0?i:e.length===1&&Array.isArray(e[0])?e[0]:e,be=i=>i?Array.isArray(i)?i:[i]:[],E=Object.freeze({MISSING_DEP:"MISSING_DEP",CYCLE:"CYCLE",NS_TAKEN:"NS_TAKEN",RESERVED_NS:"RESERVED_NS",VERSION:"VERSION",INVALID_MANIFEST:"INVALID_MANIFEST",INHERITED:"INHERITED"}),F=class extends Error{constructor(i,e,t={}){super(i),this.name="EngineError",this.code=e,Object.assign(this,t)}},It=new Set(["__proto__","prototype","constructor"]),Be=new Set(["use","install","uninstall","createChild","destroy","cache","relay","log","debug"]),Ae=64,Fe=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Ve(i,e="key"){if(It.has(i))throw new Error(`Illegal key "${i}" in ${e}`)}function Z(i){if(Ve(i,"namespace"),typeof i!="string")throw new Error(`Namespace must be a string, got ${typeof i}`);if(!Fe.test(i))throw new Error(`Invalid namespace "${i}". Must be a valid JS identifier`);if(i.length>Ae)throw new Error(`Namespace "${i}" too long (max ${Ae} chars)`);if(Be.has(i))throw new F(`Namespace "${i}" is reserved. Reserved namespaces: [${[...Be].join(", ")}]`,E.RESERVED_NS,{namespace:i});return i}function Te(i,e,t="dependencies(config) for"){if(!Array.isArray(i))throw new Error(`${t} "${e}" must be an array`);for(let r of i)if(!r?.manifest?.namespace||typeof r.install!="function")throw new Error(`Dependency of "${e}" is not an installable service (needs a manifest.namespace and install method)`)}function We(i){let e=i?.manifest,t=e?.name??"<unknown service>";if(!e?.namespace||typeof i.install!="function")throw new Error(`${t} must have a namespace and install method`);if(Z(e.namespace),Object.prototype.hasOwnProperty.call(e,"default"))throw new Error(`Manifest for "${t}" has a "default" key \u2014 did you mean "defaults"?`);if(e.defaults!=null&&(typeof e.defaults!="object"||Array.isArray(e.defaults)))throw new Error(`Manifest "defaults" for "${t}" must be a plain object`);if(e.dependencies!=null&&Te(e.dependencies,t,'Manifest "dependencies" for'),i.dependencies!=null&&typeof i.dependencies!="function")throw new Error(`"dependencies" for "${t}" must be a function of config \u2014 use "static dependencies(config) { return [...] }", or put a fixed list in manifest.dependencies`);return e.requires!=null&&St(e.requires,t),e}function St(i,e="<unknown>"){if(typeof i!="object"||Array.isArray(i)||i===null)throw new Error(`Manifest "requires" for "${e}" must be a plain object`);for(let[t,r]of Object.entries(i)){if(Ve(t,`requires:${e}`),!Fe.test(t))throw new Error(`Invalid requires key "${t}" in "${e}". Must be a valid JS identifier`);if(typeof r!="string")throw new Error(`Requires range for "${e}" -> "${t}" must be a version string`)}}function Ge(i,e,t="member"){if(Ve(i,`${t}:${e}`),typeof i!="string")throw new Error(`${t} name in ${e} must be a string`);if(!Fe.test(i))throw new Error(`Invalid ${t} name "${i}" in ${e}`);if(i.length>Ae)throw new Error(`${t} name "${i}" in ${e} too long (max ${Ae})`);return i}var Ie=()=>{let i=["DEVELOPMENT","TEST","DEV"];return typeof process<"u"?i.includes("production".toUpperCase()):typeof globalThis<"u"&&globalThis.__ENV__?.NODE_ENV?i.includes(globalThis.__ENV__.NODE_ENV.toUpperCase()):!1},_t=/^(\d+)\.(\d+)\.(\d+)(?:-[\w.]+)?$/;function Ye(i){let e=_t.exec(i);return e?[Number(e[1]),Number(e[2]),Number(e[3])]:null}function Ze(i,e){if(e==="*")return!0;let t=e[0]==="^"||e[0]==="~"?e[0]:"",r=t?e.slice(1):e,s=Ye(i),n=Ye(r);if(!s||!n)return!0;let[l,a,u]=s,[f,d,y]=n;return t==="^"?f>0?l===f&&(a>d||a===d&&u>=y):d>0?l===0&&a===d&&u>=y:l===0&&a===0&&u===y:t==="~"?l===f&&a===d&&u>=y:l===f&&a===d&&u===y}var pe=i=>i!=null&&typeof i.then=="function",Je=new Set;function He(i,e){let t=null,r=1/0;for(let s of e){let n=Mt(i.toLowerCase(),s.toLowerCase());n<r&&n<=Math.max(2,Math.floor(i.length/2))&&(r=n,t=s)}return t}function Mt(i,e){if(i.length===0)return e.length;if(e.length===0)return i.length;let t=Array.from({length:e.length+1},(r,s)=>s);for(let r=1;r<=i.length;r++){let s=r;for(let n=1;n<=e.length;n++){let l=i[r-1]===e[n-1]?0:1,a=Math.min(t[n]+1,s+1,t[n-1]+l);t[n-1]=s,s=a}t[e.length]=s}return t[e.length]}var O,oe,he,H,z,U,K,N,k,ce,B,Q,_,ue,h,je,et,tt,xe,ye,rt,st,ie,it,ve,nt,at,lt,ot,ht,ct,V,ke,ut,ft,dt,gt,Ce,Ee,G,Re,Y,C,Dt=(C=class{constructor(e={}){m(this,h);m(this,O,new WeakMap);m(this,oe,new WeakMap);m(this,he,new WeakMap);m(this,H,new WeakMap);m(this,z,new WeakMap);m(this,U,new WeakMap);m(this,K,new WeakMap);m(this,N,new Set);m(this,k,new Map);m(this,ce,null);m(this,B);m(this,Q);m(this,_);m(this,ue);b(this,B,e),b(this,ue,pt.create(e.cache)),b(this,Q,wt.create(e.relay)),b(this,_,bt.create({level:e.log?.level??(Ie()?"debug":"info"),sinks:e.log?.sinks??[vt,Et(2e3).sink]}))}static create(){return new C}static configure(e={}){return{create:()=>new C(e)}}get cache(){return o(this,ue)}get relay(){return o(this,Q)}get log(){return o(this,_)}use(...e){return c(this,h,ve).call(this,e,this)}install(...e){return c(this,h,ye).call(this,this,e,new Set)}createChild(...e){return c(this,h,je).call(this,null,e)}destroy(){var t;for(let r of[...o(this,k).keys()])c(this,h,xe).call(this,r);let e=[...c(this,h,V).call(this,this).keys()].filter(r=>!o(this,N).has(r)).reverse();return c(this,h,ie).call(this,this,e),c(this,h,ie).call(this,this,[...o(this,N)]),(t=o(this,ce))==null||t.call(this),b(this,ce,null),this}check(...e){return C.check(...e,{_installedManifests:c(this,h,V).call(this,this)})}static check(...e){let t=e[e.length-1],r=t&&typeof t=="object"&&"_installedManifests"in t,s=r?e.slice(0,-1):e,n=r?t._installedManifests:new Map,l=[],a=[],u=new Map;for(let[d,y]of n)u.set(d,y);let f=(d,y)=>{try{We(d)}catch(w){l.push({code:E.INVALID_MANIFEST,service:d?.manifest?.name||"<unknown>",message:w.message});return}let g=d.manifest,p=g.namespace;if(y.has(p)){l.push({code:E.CYCLE,chain:[...y,p],message:`Circular dependency: ${[...y,p].join(" -> ")}`});return}if(u.has(p))return;y.add(p),u.set(p,g);let M=g.dependencies;if(typeof d.dependencies=="function"){let w=d.config||g.defaults||{};try{let v=d.dependencies(w);Te(v,g.name||p),M=[...g.dependencies??[],...v]}catch(v){l.push({code:E.INVALID_MANIFEST,service:g.name||p,message:`dependencies(config) for "${g.name||p}" failed: ${v.message}`}),M=g.dependencies}}if(M?.length)for(let w of M)f(w,new Set(y));if(g.requires){let w=g.name||p;for(let[v,R]of Object.entries(g.requires)){let ge=u.get(v);if(!ge){l.push({code:E.MISSING_DEP,service:w,requires:v,message:`Service "${w}" requires "${v}", but it is not in the service set`});continue}R!=="*"&&ge.version&&(Ze(ge.version,R)||l.push({code:E.VERSION,service:w,requires:v,expected:R,actual:ge.version,message:`Service "${w}" requires "${v}" at "${R}", but version is "${ge.version}"`}))}}y.delete(p)};for(let d of s)f(d,new Set);return{ok:l.length===0,errors:l,warnings:a}}services(){let e=o(this,z).get(this),t=o(this,O).get(this);if(!e)return[];let r=[];for(let[s,n]of e){let l=t?.get(s)??this[s],a=l?Object.keys(l):[];r.push({namespace:s,manifest:{...n},surface:a,inherited:o(this,N).has(s)})}return r}graph(){let e=o(this,z).get(this);if(!e)return[];let t=[];for(let[r,s]of e){if(s.dependencies?.length)for(let n of s.dependencies)t.push({from:r,to:n.manifest?.namespace||"<unknown>"});if(s.requires)for(let n of Object.keys(s.requires))t.some(l=>l.from===r&&l.to===n)||t.push({from:r,to:n})}return t}trace(e,t){let r=o(this,he).get(this)?.get(e)||[],s=o(this,O).get(this)?.get(e),n=s&&t in s;return{namespace:e,action:t,exists:!!n,middleware:r.map((l,a)=>({index:a,name:l.name||"<anonymous>"}))}}uninstall(...e){return c(this,h,ie).call(this,this,e)}},O=new WeakMap,oe=new WeakMap,he=new WeakMap,H=new WeakMap,z=new WeakMap,U=new WeakMap,K=new WeakMap,N=new WeakMap,k=new WeakMap,ce=new WeakMap,B=new WeakMap,Q=new WeakMap,_=new WeakMap,ue=new WeakMap,h=new WeakSet,je=function(e,t){var l;let r=c(this,h,V).call(this,this),s=t.length>0?t:[...r.keys()];for(let a of s){if(r.has(a)&&Object.prototype.hasOwnProperty.call(this,a))continue;let u=[...r.keys()],f=He(String(a),u);throw new F(`createChild() cannot share "${a}" \u2014 it is not installed on this engine. Installed namespaces: [${u.join(", ")}]`+(f?`. Did you mean "${f}"?`:""),E.MISSING_DEP,{requires:a})}let n=new C(o(this,B));return c(l=n,h,tt).call(l,{log:o(this,_).child(),shared:s.map(a=>({namespace:a,nsObj:this[a],manifest:r.get(a)})),release:c(this,h,et).call(this,e,n)}),n},et=function(e,t){let r=o(this,k).get(e);return r||(r=new Set,o(this,k).set(e,r)),r.add(t),()=>{r.delete(t),r.size===0&&o(this,k).get(e)===r&&o(this,k).delete(e)}},tt=function({log:e,shared:t,release:r}){b(this,_,e),b(this,ce,r);let s=c(this,h,V).call(this,this);for(let{namespace:n,nsObj:l,manifest:a}of t)Object.defineProperty(this,n,{value:l,enumerable:!0,configurable:!0,writable:!1}),s.set(n,a),o(this,N).add(n)},xe=function(e){let t=o(this,k).get(e);if(t)for(let r of[...t])r.destroy()},ye=function(e,t,r=new Set){let s=[...t],n=()=>{for(;s.length>0;){let l=c(this,h,rt).call(this,e,s.shift(),r);if(pe(l))return l.then(n)}return c(this,h,st).call(this,e),e};return n()},rt=function(e,t,r){We(t);let s=t.manifest,n=s.namespace;if(r.has(n))throw new F(`Circular service dependency: ${[...r,n].join(" -> ")}`,E.CYCLE,{chain:[...r,n]});if(e===this&&o(this,N).has(n)&&c(this,h,ie).call(this,this,[n]),Object.prototype.hasOwnProperty.call(e,n)){let g=c(this,h,V).call(this,e).get(n),p=g?.name?` (owned by "${g.name}" v${g.version||"?"})`:"";throw new F(`Namespace "${n}" is already installed${p}. Use .configure() to create a unique instance, or .uninstall("${n}") first.`,E.NS_TAKEN,{namespace:n})}let l=t.config||t.manifest.defaults||{},a=typeof t.dependencies=="function"?t.dependencies(l):null;a&&Te(a,s.name||n);let u=a?.length?[...s.dependencies??[],...a]:s.dependencies;c(this,h,V).call(this,e).set(n,a?.length?{...s,dependencies:u}:s);let f=c(this,h,G).call(this,e,n),d=c(this,h,Re).call(this,e,n,f,l,t.manifest);r.add(n);let y=()=>{s.requires&&c(this,h,ct).call(this,e,s);let g=c(this,h,Y).call(this,e,n,f,l,t.manifest),p=t.install(g,l);if(pe(p))return p.then(M=>{c(this,h,ve).call(this,M,e),r.delete(n)});c(this,h,ve).call(this,p,e),r.delete(n)};if(u?.length){let g=u.filter(v=>v.unique),p=new Set,M=u.filter(v=>{if(v.unique)return!1;let R=v.manifest.namespace;return p.has(R)||Object.prototype.hasOwnProperty.call(e,R)?!1:(p.add(R),!0)}),w;if(g.length>0&&(w=c(this,h,ye).call(this,d,g,r)),M.length>0&&(w=pe(w)?w.then(()=>c(this,h,ye).call(this,e,M,r)):c(this,h,ye).call(this,e,M,r)),pe(w))return w.then(y)}return y()},st=function(e){let t=o(this,U).get(e);if(t?.size){for(let[r,s]of t)try{s()}finally{t.delete(r)}o(this,U).delete(e)}},ie=function(e,t){let r=o(this,K).get(e),s=o(this,O).get(e),n=o(this,oe).get(e),l=c(this,h,Ee).call(this,e);for(let a of t){e===this&&c(this,h,xe).call(this,a),r?.get(a)?.(),r?.delete(a),c(this,h,it).call(this,n?.get(a));let u=s?.get(a);if(u&&o(this,Q).offAllFor(u),l?.delete(a),o(this,U).get(e)?.delete(a),o(this,H).get(e)?.delete(a),o(this,z).get(e)?.delete(a),e===this&&o(this,N).delete(a),Object.prototype.hasOwnProperty.call(e,a)&&delete e[a],s?.delete(a),n?.delete(a),n)for(let f of n.values())Object.prototype.hasOwnProperty.call(f,a)&&delete f[a]}return r&&r.size===0&&o(this,K).delete(e),this},it=function(e){if(!e)return;let t=o(this,O).get(e);t?.size&&c(this,h,ie).call(this,e,[...t.keys()])},ve=function(e,t=this){for(let r of e)if(r){if(t===this&&o(this,N).has(r._name))throw new F(`Namespace "${r._name}" is shared from a parent engine and cannot be extended here. Apply the definition on the parent, or install a service under "${r._name}" to shadow it.`,E.INHERITED,{namespace:r._name});switch(ze(r)){case"MIDDLEWARE":c(this,h,lt).call(this,r,t);break;case"GETTERS":c(this,h,at).call(this,r,t);break;case"ACTIONS":c(this,h,nt).call(this,r,t);break;case"INITIALIZE":c(this,h,ot).call(this,r,t);break;case"UNINSTALL":c(this,h,ht).call(this,r,t);break;default:throw new Error(`Unknown definition type: ${ze(r)}`)}}return this},nt=function(e,t=this){let r=Z(e._name),s=c(this,h,G).call(this,t,r),n=c(this,h,Y).call(this,t,r,s),l=e(n),a=c(this,h,Ee).call(this,t).get(r)||[];for(let[f,d]of Object.entries(l)){if(f=Ge(f,r,"action"),Object.prototype.hasOwnProperty.call(s,f))throw new Error(`Action "${r}.${f}" already exists on this target`);let y=c(this,h,ut).call(this,r,f,d,s);if(a.length===0){s[f]=y;continue}let g=c(this,h,ft).call(this,a,y);s[f]=(...p)=>g(f,{namespace:r,action:f,args:p})}let u=o(this,H).get(t);return u||(u=new Set,o(this,H).set(t,u)),u.add(r),c(this,h,ke).call(this,t,r,s)},at=function(e,t=this){let r=Z(e._name),s=c(this,h,G).call(this,t,r),n=c(this,h,Y).call(this,t,r,s),l=e(n);for(let[a,u]of Object.entries(l)){Ge(a,r,"getter");let f=u.bind(s);Object.defineProperty(s,a,{get:()=>f(),enumerable:!0,configurable:!1})}return c(this,h,ke).call(this,t,r,s)},lt=function(e,t=this){let r=Z(e._name);if(o(this,H).get(t)?.has(r))throw new Error(`Middleware for "${r}" must be installed before its actions (middleware does not apply retroactively)`);let s=c(this,h,G).call(this,t,r),n=c(this,h,Y).call(this,t,r,s),l=e(n),a=c(this,h,Ee).call(this,t),u=a.get(r)||[],f=be(l).map(d=>{if(typeof d!="function")throw new Error("Middleware must be a function");return d});return a.set(r,u.concat(f)),this},ot=function(e,t=this){let r=Z(e._name),s=c(this,h,G).call(this,t,r),n=c(this,h,Y).call(this,t,r,s),l=()=>e(n),a=o(this,U).get(t);return a||(a=new Map,o(this,U).set(t,a)),a.set(r,l),this},ht=function(e,t=this){let r=Z(e._name),s=c(this,h,G).call(this,t,r),n=c(this,h,Y).call(this,t,r,s),l=()=>e(n),a=o(this,K).get(t);return a||(a=new Map,o(this,K).set(t,a)),a.set(r,l),this},ct=function(e,t){let r=t.name||t.namespace,s=c(this,h,V).call(this,e);for(let[n,l]of Object.entries(t.requires)){let a=s.get(n);if(!a){let u=[...s.keys()].filter(f=>f!==t.namespace);throw new F(`Service "${r}" requires "${n}", but it is not installed. Installed namespaces: [${u.join(", ")}]`,E.MISSING_DEP,{service:r,requires:n})}if(l!=="*"&&a.version&&!Ze(a.version,l))throw new F(`Service "${r}" requires "${n}" at version "${l}", but installed version is "${a.version}"`,E.VERSION,{service:r,requires:n,expected:l,actual:a.version})}},V=function(e){let t=o(this,z).get(e);return t||(t=new Map,o(this,z).set(e,t)),t},ke=function(e,t,r){return Object.prototype.hasOwnProperty.call(e,t)?r=e[t]:Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),o(this,O).get(e)?.set(t,r),e},ut=function(e,t,r,s){let n=r.bind(s),l=a=>{throw a.action=t,a.namespace=e,o(this,_).error(`Error in action "${e}.${t}"`,{error:a}),a};return Ne(n)?async(...a)=>{try{return await n(...a)}catch(u){l(u)}}:(...a)=>{try{return n(...a)}catch(u){l(u)}}},ft=function(e,t){return $t(be(e),t)?c(this,h,gt).call(this,e,t):c(this,h,dt).call(this,e,t)},dt=function(e,t){let r=be(e);return(s,n)=>{let l=-1,a=(u,f)=>{if(u<=l)throw new Error("next() called multiple times");l=u;let d=r[u];if(!d){let g=t(...f);if(Ie()&&pe(g)){let p=`${n.namespace}.${s}`;Je.has(p)||(Je.add(p),o(this,_).warn(`Action "${p}" returned a Promise but is not declared async; its middleware composes synchronously, so code after next() runs before the action settles. Declare the action async to compose the chain asynchronously.`))}return g}let y={...n,args:f};return c(this,h,Ce).call(this,d,s,y,(...g)=>{let p=Ue(f,g);return a(u+1,p)})};return a(0,n.args)}},gt=function(e,t){let r=be(e);return async(s,n)=>{let l=-1,a=async(u,f)=>{if(u<=l)throw new Error("next() called multiple times");l=u;let d=r[u];if(!d)return await t(...f);let y={...n,args:f};return await c(this,h,Ce).call(this,d,s,y,(...g)=>{let p=Ue(f,g);return a(u+1,p)})};return a(0,n.args)}},Ce=function(e,t,r,s){try{return e(t,r,s)}catch(n){throw n.middleware=e.name||"<anon>",n.action=t,n}},Ee=function(e){let t=o(this,he).get(e);return t||(t=new Map,o(this,he).set(e,t)),t},G=function(e,t){let r=o(this,O).get(e);if(r||(r=new Map,o(this,O).set(e,r)),r.has(t))return r.get(t);let s=Object.create(null);return r.set(t,s),s},Re=function(e,t,r,s=o(this,B)||{},n={}){let l=o(this,oe).get(e);if(l||(l=new Map,o(this,oe).set(e,l)),l.has(t))return l.get(t);let a={log:o(this,_).child({ns:t},n.log?.sinks||[]),relay:o(this,Q).createChannel(r),cache:o(this,ue),config:s,createChild:(...f)=>c(this,h,je).call(this,t,f)},u=new Proxy(a,{get(f,d,y){return d in f?Reflect.get(f,d,y):Reflect.get(e,d,y)},has(f,d){return d in f||d in e}});return l.set(t,u),u},Y=function(e,t,r,s=o(this,B)||{},n={}){let l=o(this,B)?.strictInject===!0;return(...a)=>{let u=c(this,h,Re).call(this,e,t,r,s,n);if(!a||a.length===0)return u;for(let d of a)if(!(d in u)){let y=Object.keys(u),g=He(d,y),p=`inject("${d}") in "${t}" resolved to undefined \u2014 "${d}" is not an installed namespace or built-in. Available: [${y.join(", ")}]`+(g?`. Did you mean "${g}"?`:"");if(l)throw new F(p,E.MISSING_DEP,{service:t,requires:d});Ie()&&o(this,_).warn(p)}if(a.length===1)return u[a[0]];let f=new Array(a.length);for(let d=0;d<a.length;d++)f[d]=u[a[d]];return f}},C),Ot=me("MIDDLEWARE",[Function,Array]),Nt=me("ACTIONS",[Object]),Tt=me("UNINSTALL"),jt=me("INITIALIZE"),xt=me("GETTERS",[Object]),fe,De,T,W,ne,de,kt=(de=class{constructor(e){m(this,W);m(this,fe);m(this,De);m(this,T,{MIDDLEWARE:null,GETTERS:null,ACTIONS:null,INITIALIZE:null,UNINSTALL:null});A(this,"defineMiddleware",e=>c(this,W,ne).call(this,"MIDDLEWARE",e,Ot));A(this,"defineGetters",e=>c(this,W,ne).call(this,"GETTERS",e,xt));A(this,"defineActions",e=>c(this,W,ne).call(this,"ACTIONS",e,Nt));A(this,"defineInitialize",e=>c(this,W,ne).call(this,"INITIALIZE",e,jt));A(this,"defineUninstall",e=>c(this,W,ne).call(this,"UNINSTALL",e,Tt));b(this,fe,e)}static create(e){return new de(e)}_toArray(){return[o(this,T).MIDDLEWARE,o(this,T).GETTERS,o(this,T).ACTIONS,o(this,T).INITIALIZE,o(this,T).UNINSTALL].filter(Boolean)}},fe=new WeakMap,De=new WeakMap,T=new WeakMap,W=new WeakSet,ne=function(e,t,r){if(o(this,T)[e])throw new Error(`${e} already defined for ${o(this,fe)}`);o(this,T)[e]=r(o(this,fe),t)},de);function Ct({namespace:i,version:e="1.0.0",actions:t=[],overrides:r={}}={}){var n;if(!i)throw new Error("stub() requires a namespace");if(!Array.isArray(t))throw new Error('stub() "actions" must be an array of names');let s={};for(let l of[...t,...Object.keys(r)])s[l]=r[l]??(async()=>{});return n=class extends Rt{actions(){return s}},A(n,"manifest",{name:`Stub<${i}>`,namespace:i,version:e}),n}var se,Rt=(se=class{static stub(i){return Ct(i)}static configure(i={}){let e={...this.config||this.manifest.defaults||{},...i},t={install:(r,s)=>this.install(r,s),manifest:this.manifest,config:e,unique:!0,configured:!0};return typeof this.dependencies=="function"&&(t.dependencies=r=>this.dependencies(r)),t}static install(i,e){let{namespace:t}=this.manifest;Z(t);let r=new this;Object.defineProperty(r,"config",{value:Object.freeze({...e}),writable:!1,configurable:!1,enumerable:!1}),Object.defineProperty(r,"inject",{value:(...n)=>i(...n),writable:!1,configurable:!1,enumerable:!1});let s=kt.create(t);if(r.setup){let n={defineActions:a=>s.defineActions(()=>a(i,e)),defineMiddleware:a=>s.defineMiddleware(()=>a(i,e)),defineGetters:a=>s.defineGetters(()=>a(i,e)),defineInitialize:a=>s.defineInitialize(()=>a(i,e)),defineUninstall:a=>s.defineUninstall(()=>a(i,e))},l=r.setup(n,i,e);return l?.then?l.then(()=>s._toArray()):s._toArray()}return r.middleware&&s.defineMiddleware(()=>r.middleware(i,e)),r.getters&&s.defineGetters(()=>r.getters(i,e)),r.actions&&s.defineActions(()=>r.actions(i,e)),r.initialize&&s.defineInitialize(()=>r.initialize(i,e)),r.uninstall&&s.defineUninstall(()=>r.uninstall(i,e)),s._toArray()}},A(se,"manifest",{name:"base",dependencies:[],version:"1.0.0",description:"Base extension template"}),A(se,"config",null),A(se,"unique",!1),A(se,"depdendencies",null),se),Ft=Symbol("jucie.engine");export{ze as a,me as b,Dt as c,Nt as d,Rt as e};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{e as x}from"./chunk-UNPHH2YK.js";import{a as Qt}from"./chunk-DLROTED3.js";import{c as _}from"./chunk-P722OZCF.js";var tn=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 te(t){if(!t)return[];let e=t.matchAll(/(?<![.\w])([a-zA-Z_$][\w]*)/g);return[...new Set([...e].map(o=>o[1]))].filter(o=>!tn.has(o))}var wt=Object.getPrototypeOf(async function(){}).constructor,Z=t=>t.split(",").map(e=>e.trim()).filter(Boolean),ne=[[/^async\s+function\s*\(([^)]*)\)\s*{([\s\S]*)}$/,t=>[wt,Z(t[1]),t[2]]],[/^async\s*\(([^)]*)\)\s*=>\s*{([\s\S]*)}$/,t=>[wt,Z(t[1]),t[2]]],[/^async\s*\(([^)]*)\)\s*=>\s*([\s\S]+)$/,t=>[wt,Z(t[1]),`return ${t[2]};`]],[/^function\s*\(([^)]*)\)\s*{([\s\S]*)}$/,t=>[Function,Z(t[1]),t[2]]],[/^\(([^)]*)\)\s*=>\s*{([\s\S]*)}$/,t=>[Function,Z(t[1]),t[2]]],[/^\(([^)]*)\)\s*=>\s*([\s\S]+)$/,t=>[Function,Z(t[1]),`return ${t[2]};`]],[/^(\w+)\s*=>\s*([\s\S]+)$/,t=>[Function,[t[1].trim()],`return ${t[2]};`]]];function en(t){if(typeof t!="string")return!1;let e=t.trim();return ne.some(([n])=>n.test(e))}function nn(t){if(typeof t!="string"||!t.trim())throw new Error("No code");let e=t.trim();for(let[n,o]of ne){let r=e.match(n);if(!r)continue;let[s,i,a]=o(r);return new s(...i,a)}throw new Error("Must be a function \u2014 function (ctx) { \u2026 } or (ctx) => \u2026")}function oe(t){try{return nn(t),null}catch(e){return e.message}}function $t(t,e="computed"){if(typeof t!="string"||!t.trim()||en(t))return t;let n=t.trim(),o=e==="code"?"ctx, event":"ctx",r=s=>`function (${o}) {
|
|
2
|
+
${s.split(`
|
|
3
|
+
`).map(i=>` ${i}`).join(`
|
|
4
|
+
`)}
|
|
5
|
+
}`;return e==="computed"&&ee(`return (${n});`)?r(`return ${n}`):ee(n)?r(n):t}function ee(t){try{return new Function("ctx","event",t),!0}catch{return!1}}var re=`function (ctx) {
|
|
6
|
+
return true
|
|
7
|
+
}`;var et=`function (ctx, event) {
|
|
8
|
+
|
|
9
|
+
}`;function se(t){return t==null||t===""?null:oe(t)}function on(t){return t==null?null:!Array.isArray(t)||t.length===0?"binding must be a non-empty array of strings":t.every(e=>typeof e=="string"&&e.length>0)?null:"every segment in binding must be a non-empty string"}function ie(t){let e={...t,error:null};switch(e.mode){case"code":e.error=se(e.code);break;case"computed":e.error=se(e.computed);break;case"binding":e.error=on(e.binding);break;case"value":default:break}return e}var rn=new Set(["value","binding","computed","code"]),sn=()=>({name:null,mode:"value",value:null,binding:null,computed:null,code:null,error:null,removable:!0});function k(t={}){let e=sn();return t.name!=null&&(e.name=t.name),t.value!==void 0&&(e.value=t.value),t.binding!=null&&(e.binding=t.binding),t.computed!=null&&(e.computed=$t(t.computed,"computed")),t.code!=null&&(e.code=$t(t.code,"code")),t.mode&&rn.has(t.mode)&&(e.mode=t.mode),e.mode==="computed"&&!e.computed&&(e.computed=re),e.mode==="code"&&!e.code&&(e.code=et),e.mode==="computed"&&e.computed&&(e.dependencies=te(e.computed)),t.removable===!1&&(e.removable=!1),ie(e)}function Xr({name:t,mode:e,...n}={}){return k({name:t,mode:e??"value",...n})}function ae({mode:t,value:e,...n}={}){return k({mode:t??"value",value:Array.isArray(e)?e:[],...n})}var ce={__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 le={type:"element",ex:"node",style:{}};var ue={type:"container",ex:"node",childrenType:"*",bounds:{width:0,height:0,x:0,y:0}};var Ot={};_(Ot,{article:()=>pn,aside:()=>mn,div:()=>cn,footer:()=>fn,form:()=>gn,header:()=>un,layout:()=>an,main:()=>dn,nav:()=>hn,section:()=>ln,template:()=>xn});var an={ex:"element",dimensions:["width","height"],childrenType:"*",children:[]},cn={ex:"layout",tagName:"div"},ln={ex:"layout",tagName:"section"},un={ex:"layout",tagName:"header"},fn={ex:"layout",tagName:"footer"},pn={ex:"layout",tagName:"article"},dn={ex:"layout",tagName:"main"},mn={ex:"layout",tagName:"aside"},hn={ex:"layout",tagName:"nav"},gn={ex:"layout",tagName:"form"},xn={ex:"layout",tagName:"template",html:"<div>HTML template</div>",style:{width:"250px",height:"100px"}};var kt={};_(kt,{blockquote:()=>Cn,br:()=>_n,codeElement:()=>Ln,em:()=>Mn,h1:()=>vn,h2:()=>wn,h3:()=>$n,h4:()=>On,h5:()=>kn,h6:()=>jn,heading:()=>bn,hr:()=>Pn,label:()=>En,mark:()=>Rn,p:()=>Sn,paragraph:()=>Nn,pre:()=>In,richText:()=>An,small:()=>Fn,span:()=>Tn,strong:()=>Dn,text:()=>yn});var yn={ex:"element",dimensions:["width"],childrenType:"text",textContent:x("")},bn={ex:"text",textContent:x(""),style:{margin:"0"}},vn={ex:"heading",tagName:"h1",textContent:x("Heading 1")},wn={ex:"heading",tagName:"h2",textContent:x("Heading 2")},$n={ex:"heading",tagName:"h3",textContent:x("Heading 3")},On={ex:"heading",tagName:"h4",textContent:x("Heading 4")},kn={ex:"heading",tagName:"h5",textContent:x("Heading 5")},jn={ex:"heading",tagName:"h6",textContent:x("Heading 6")},Nn={ex:"text",textContent:x("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."),style:{margin:"0"}},Sn={ex:"paragraph",tagName:"p"},Tn={ex:"text",tagName:"span",textContent:x("Lorem ipsum")},En={ex:"text",tagName:"label",textContent:x("Label text")},An={ex:"text",tagName:"div",textContent:x("Rich text. Press Enter for a new paragraph.")},Cn={ex:"text",tagName:"blockquote",textContent:x("Blockquote text")},In={ex:"text",tagName:"pre",textContent:x("Preformatted text")},Ln={ex:"text",tagName:"code",textContent:x("code")},Dn={ex:"text",tagName:"strong",textContent:x("Bold text")},Mn={ex:"text",tagName:"em",textContent:x("Emphasized text")},Fn={ex:"text",tagName:"small",textContent:x("Small text")},Rn={ex:"text",tagName:"mark",textContent:x("Highlighted text")},Pn={ex:"element",tagName:"hr",dimensions:["width"],childrenType:"none"},_n={ex:"element",tagName:"br",dimensions:["width"],childrenType:"none"};var jt={};_(jt,{a:()=>Kn,button:()=>Yn,details:()=>Xn,dialog:()=>Un,interactive:()=>Bn,summary:()=>zn});var Bn={ex:"element",interactive:!0,childrenType:"text",style:{width:"auto",height:"auto",cursor:"pointer"}},Yn={ex:"interactive",tagName:"button",dimensions:["width","height"],textContent:x("Button text"),style:{"background-color":"#e9e9e9",border:"1px solid #d5d5d5","border-radius":"4px",padding:"6px 12px",width:"120px",height:"auto"}},Kn={ex:"interactive",tagName:"a",textContent:x("Link text"),destination:{type:"page",id:null,path:null,target:null,replace:!1,params:null,query:null}},Xn={ex:"interactive",tagName:"details",childrenType:"*",dimensions:["width","height"],style:{cursor:"default"}},zn={ex:"interactive",tagName:"summary",textContent:x("Summary text")},Un={ex:"interactive",tagName:"dialog",childrenType:"*",dimensions:["width","height"],style:{cursor:"default",width:"300px",height:"200px"}};var St={};_(St,{checkbox:()=>oo,color:()=>eo,date:()=>no,email:()=>Gn,file:()=>so,hidden:()=>io,input:()=>Wn,number:()=>qn,password:()=>Zn,phone:()=>Qn,radio:()=>ro,range:()=>to,search:()=>Jn,select:()=>ao,textInput:()=>Vn,textarea:()=>co});var N=t=>k({name:"type",mode:"value",value:t,removable:!1}),Hn=()=>k({name:"value",mode:"value",value:"",removable:!1}),S=()=>k({name:"model",mode:"binding",binding:null,removable:!0}),D=()=>k({name:"onInput",mode:"code",code:et,removable:!1}),Nt=()=>k({name:"onChange",mode:"code",code:et,removable:!1}),Wn={ex:"element",tagName:"input",dimensions:["width"],childrenType:"none",style:{width:"auto",height:"auto"}},Vn={ex:"input",attributes:[N("text"),S()],events:[D()]},Gn={ex:"input",attributes:[N("email"),S()],events:[D()]},Zn={ex:"input",attributes:[N("password"),S()],events:[D()]},qn={ex:"input",attributes:[N("number"),S()],events:[D()]},Jn={ex:"input",attributes:[N("search"),S()],events:[D()]},Qn={ex:"input",attributes:[N("tel"),S()],events:[D()]},to={ex:"input",attributes:[N("range"),S()],events:[D()]},eo={ex:"input",attributes:[N("color"),S()],events:[D()]},no={ex:"input",attributes:[N("date"),S()],events:[D()]},oo={ex:"input",attributes:[N("checkbox"),S()],events:[Nt()]},ro={ex:"input",attributes:[N("radio"),S()],events:[Nt()]},so={ex:"input",attributes:[N("file")]},io={ex:"input",attributes:[N("hidden"),Hn()]},ao={ex:"input",tagName:"select",childrenType:"options",options:ae(),attributes:[S()],events:[Nt()]},co={ex:"input",tagName:"textarea",childrenType:"text",dimensions:["width","height"],attributes:[S()],events:[D()]};var Tt={};_(Tt,{audio:()=>fo,figcaption:()=>ho,figure:()=>mo,iframe:()=>go,img:()=>uo,media:()=>lo,video:()=>po});var fe=k({name:"controls",mode:"value",value:!0,removable:!1}),lo={ex:"element",dimensions:["width","height"],style:{display:"block",width:"auto",height:"auto","object-fit":"contain"}},uo={ex:"media",tagName:"img",childrenType:"none"},fo={ex:"media",tagName:"audio",childrenType:"none",dimensions:["width"],attributes:[fe],style:{width:"320px"}},po={ex:"media",tagName:"video",childrenType:"*",attributes:[fe],style:{width:"320px",height:"240px"}},mo={ex:"media",tagName:"figure",childrenType:"*",dimensions:["width","height"],style:{width:"auto",height:"auto",margin:"0"}},ho={ex:"media",tagName:"figcaption",childrenType:"text"},go={ex:"media",tagName:"iframe",childrenType:"none",dimensions:["width","height"]};var Et={};_(Et,{dd:()=>$o,dl:()=>vo,dt:()=>wo,li:()=>bo,ol:()=>xo,ul:()=>yo});var xo={ex:"element",tagName:"ol",dimensions:["width"],childrenType:["li"],children:[]},yo={ex:"element",tagName:"ul",dimensions:["width"],childrenType:["li"],children:[]},bo={ex:"element",tagName:"li",dimensions:["width"],childrenType:"text"},vo={ex:"element",tagName:"dl",dimensions:["width"],childrenType:["dt","dd"],children:[]},wo={ex:"element",tagName:"dt",dimensions:["width"],childrenType:"text"},$o={ex:"element",tagName:"dd",dimensions:["width"],childrenType:"text"};var At={};_(At,{table:()=>Oo,tbody:()=>jo,td:()=>Eo,tfoot:()=>No,th:()=>To,thead:()=>ko,tr:()=>So});var Oo={ex:"element",tagName:"table",dimensions:["width"],childrenType:["thead","tbody","tfoot","tr"],children:[]},ko={ex:"element",tagName:"thead",childrenType:["tr"],children:[]},jo={ex:"element",tagName:"tbody",childrenType:["tr"],children:[]},No={ex:"element",tagName:"tfoot",childrenType:["tr"],children:[]},So={ex:"element",tagName:"tr",childrenType:["td","th"],children:[]},To={ex:"element",tagName:"th",childrenType:"*"},Eo={ex:"element",tagName:"td",childrenType:"*"};var Ct={};_(Ct,{fieldset:()=>Ao,legend:()=>Co,meter:()=>Io,progress:()=>Lo});var Ao={ex:"element",tagName:"fieldset",dimensions:["width","height"],childrenType:"children",style:{border:"1px solid #cccccc",padding:"16px"}},Co={ex:"element",tagName:"legend",childrenType:"text"},Io={ex:"element",tagName:"meter",childrenType:"none"},Lo={ex:"element",tagName:"progress",childrenType:"none"};var It={};_(It,{slot:()=>Do});var Do={type:"slot",ex:"element",tagName:"slot",dimensions:["width","height"],childrenType:"*"};var pe={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 de={type:"instance",ex:"node",component:null,library:null,props:[],childrenType:"component"};var me={type:"code",ex:"node",body:"",language:"js",params:[],returns:null};var he={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 ge={type:"component",ex:"container",name:"",library:"local",props:[],emits:[],data:[],children:[]};var xe={type:"graphic",ex:"node",tagName:"div",props:{},template:[],style:{margin:"0",width:"100px",height:"100px"}};function ct(t){let e=[],n=t;for(;n&&H[n];)e.push(n),n=H[n].ex;return e}function Mo(t){return H[t]?.ex??null}function Lt(t){return!!H[t]}var Fo=new Set(["element","container","frame","instance","component","slot","animation","graphic","code","node"]);function Dt(t){let e=t?.ex??t?.type;for(let n of ct(e))if(Fo.has(n))return n;return null}function Ro(t,e){let n=new Map(t.map(o=>[o.name,o]));for(let o of e)n.set(o.name,o);return Array.from(n.values())}function ye(t,e){let n=ct(t).reverse(),o=[];for(let r of n){let s=H[r];s?.[e]&&(o=Ro(o,s[e]))}return o}function Po(t,e={}){if(!Lt(t))throw new Error(`createNode: unknown prototype "${t}". Did you mean to register it first?`);let n=Dt({type:t}),o=n===t?{type:t,...e}:{type:n,ex:t,...e};if(!o.attributes){let r=ye(t,"attributes");r.length&&(o.attributes=r.map(s=>({...s})))}if(!o.events){let r=ye(t,"events");r.length&&(o.events=r.map(s=>({...s})))}return[Qt(),o]}var H={node:ce,element:le,container:ue,...Ot,...kt,...jt,...St,...Tt,...Et,...At,...Ct,...It,frame:pe,instance:de,code:me,animation:he,component:ge,graphic:xe};var w="default",_o=new Set(["$description","$extensions","$extends"]);function Y(t){if(typeof t!="string"||t==="")return null;if(t===w)return"condition";switch(t[0]){case"@":return"condition";case":":case"&":return"state";case"$":return _o.has(t)?"meta":"intent"}return t.startsWith("--")?"custom-property":"property"}function Bo(t,e={}){if(t===w)return 0;if(typeof t!="string"||t[0]!=="@")return null;let n=t.slice(1);return/^\d+$/.test(n)?Number(n):Object.hasOwn(e,n)&&Number.isFinite(e[n])?e[n]:null}function I(t){if(t===w)return 0;let e=/^@(\d+)$/.exec(t);return e?Number(e[1]):null}var Yo=t=>Y(t)==="state",As=t=>Y(t)==="intent",Ko=t=>{let e=Y(t);return e==="property"||e==="custom-property"},Ee=(t,e)=>I(t)-I(e),Ae=t=>Object.keys(t??{}).filter(e=>t[e]!=null&&I(e)!=null).sort(Ee),Ce=t=>t.startsWith("--")||t.startsWith("$")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),Rt=t=>t!=null&&typeof t=="object"&&!Array.isArray(t);function be(t,e,n){let o={};for(let[r,s]of Object.entries(t??{})){if(Y(r)==="condition"){n.push({condition:e,property:r,reason:"nested-condition"});continue}o[r]=s}return o}function ft(t,{breakpoints:e={}}={}){let n=[],o=new Map,r=new Map,s=(c,u,f)=>{r.has(c)?n.push({condition:f,reason:"duplicate-condition",with:r.get(c)}):r.set(c,f),o.set(c,{...o.get(c),...u})},i={};for(let[c,u]of Object.entries(t??{}))c===w||Y(c)==="condition"||(i[c]=u);let a=Rt(t?.[w])?be(t[w],w,n):null;if(a)for(let c of Object.keys(a))c in i&&n.push({condition:w,property:c,reason:"duplicate"});o.set(0,{...i,...a}),r.set(0,"base");for(let[c,u]of Object.entries(t??{})){if(c===w||Y(c)!=="condition"||!Rt(u))continue;let f=Bo(c,e);if(f==null){n.push({condition:c,reason:"unknown-breakpoint"});continue}s(f,be(u,c,n),c)}return{entries:[...o].filter(([c,u])=>c===0||Object.keys(u).length).sort(([c],[u])=>c-u).map(([c,u])=>({min:c,block:u})),dropped:n}}var nt=t=>t===0?w:`@${t}`,pt=t=>ft(t).entries[0].block;function Ie(t){if(!Rt(t?.[w]))return t;let{[w]:e,...n}=t;return{...n,...e}}var Pt={$layout:{values:["none","block","flex","grid"],states:!1,container:!0},$axis:{values:["x","y"],states:!1,container:!0},$reverse:{values:[!0,!1],states:!1,container:!0},$wrap:{values:[!0,!1],states:!1,container:!0},$distribute:{values:["packed","between","around","evenly"],states:!0,container:!0},$alignX:{values:["start","center","end","stretch","baseline"],states:!0,container:!0},$alignY:{values:["start","center","end","stretch","baseline"],states:!0,container:!0},$width:{values:["hug","fill"],length:!0,states:!0},$height:{values:["hug","fill"],length:!0,states:!0},$selfX:{values:["start","center","end"],states:!0},$selfY:{values:["start","center","end","baseline"],states:!0},$flow:{values:["auto","sticky","ignore"],states:!1},$anchorX:{values:["start","end","both","center"],states:!1},$anchorY:{values:["start","end","both","center"],states:!1}},Xo=/^(0|-?(\d+\.?\d*|\.\d+)(px|rem|em|%|vw|vh|vmin|vmax|svw|svh|dvw|dvh|lvw|lvh|cqw|cqh|cqi|cqb|ch|ex)|(calc|var|min|max|clamp)\(.*\))$/,zo=t=>typeof t=="string"&&Xo.test(t.trim()),Uo="cstyle";var Le=["top","right","bottom","left"],Ho=["position",...Le,"translate"],Wo=[["free",{$layout:"none"}],["block",{$layout:"block"}],["flow",{$layout:"flex"}]];var Vo=["width","height","min-width","min-height","flex","flex-grow","flex-shrink","flex-basis","align-self","justify-self"],Go={width:"w",height:"h",position:"p"};var Zo=(t,e,n)=>`--${t}-${Go[e]}-${n}`,De=(t,e)=>`--${t}-raw-${e}`,qo=(t,e,n)=>`--${t}-p-${e}-${n}`;function Jo(t,e){let n=e==="fill",o=e==="hug",r=!n&&!o,s=n?"100%":o?t==="width"?"fit-content":"auto":e;return{block:s,free:s,size:r?e:"auto",min:n?"0":"auto",flex:n?"1 1 0":o?"0 1 auto":"0 0 auto",self:n?"stretch":"auto","self-s":n?"stretch":o?"flex-start":"auto",grid:n?"stretch":o?"start":"auto"}}var Qo=/\$\{\s*([^{}\s]*)\s*\}/g;function tr(t,e){let n=t;for(let o of e.split(".")){if(n==null||typeof n!="object"||!Object.hasOwn(n,o))return;n=n[o]}return n}function er(t){let e=0,n=null;for(let o=0;o<t.length;o++){let r=t[o];if(r==="<")return!0;if(r==="\\"){o++;continue}if(n){r===n&&(n=null);continue}if(r==='"'||r==="'")n=r;else if(r==="(")e++;else{if(r===")"&&--e<0)return!0;if(r==="{"||r==="}"||r===";"&&e===0)return!0}}return n!==null||e!==0}function Me(t,e){let n=[];return{value:t.replace(Qo,(r,s)=>{let i=s?tr(e,s):void 0;if(typeof i!="string"&&typeof i!="number")return n.push({hole:s,reason:"missing"}),r;let a=String(i);return er(a)?(n.push({hole:s,reason:"unsafe"}),r):a}),problems:n}}var Fe=["display","flex-direction","flex-wrap","justify-content","align-items"],ve=[...Fe,"align-content"],J=["top","right","bottom","left"],nr={display:"revert","flex-direction":"row","flex-wrap":"nowrap","justify-content":"normal","align-items":"normal","align-content":"normal",width:"auto",height:"auto","min-width":"auto","min-height":"auto",flex:"0 1 auto","flex-grow":"0","flex-shrink":"1","flex-basis":"auto","align-self":"auto","justify-self":"auto",position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"},q=t=>nr[t]??"initial";function or(t,e){let n=typeof e=="number"?e:I(e),o=null,r=-1,s=Array.isArray(t)?t.map(i=>[i.min,i.intents]):Object.entries(t??{}).map(([i,a])=>[I(i),a]);for(let[i,a]of s)i!=null&&i<=n&&i>r&&(o=a,r=i);return o??{}}var Re={start:"flex-start",center:"center",end:"flex-end"},rr={start:"flex-end",center:"center",end:"flex-start"},sr={...Re,stretch:"stretch",baseline:"baseline"},ir={between:"space-between",around:"space-around",evenly:"space-evenly"},ar={start:"start",center:"center",end:"end"},dt=t=>(t.$axis??"x")==="x",cr=t=>dt(t)?t.$alignY:t.$alignX;function lr(t,e,n){let o=t.$layout;if(!o)return;if(o!=="flex"){e.push(["display",o==="grid"?"grid":"block"]),n(["display"],"$layout");let u=ar[t.$alignY];o==="block"&&u&&(e.push(["align-content",u]),n(["align-content"],"$alignY"));return}let r=dt(t),s=t.$reverse===!0,i=r?t.$alignX:t.$alignY,a=r?t.$alignY:t.$alignX,l=(r?"row":"column")+(s?"-reverse":""),c=ir[t.$distribute]??(s?rr:Re)[i]??"flex-start";e.push(["display","flex"]),l!=="row"&&e.push(["flex-direction",l]),t.$wrap===!0&&e.push(["flex-wrap","wrap"]),c!=="flex-start"&&e.push(["justify-content",c]),e.push(["align-items",sr[a??"start"]]),n(Fe,"$layout")}var Q={width:"$selfX",height:"$selfY"},lt={start:"flex-start",center:"center",end:"flex-end",baseline:"baseline"},Xt={start:"start",center:"center",end:"end",baseline:"baseline"};function ur(t,e,n,o,r,s){let i=t==="width"?"$width":"$height",a=t==="width"?"min-width":"min-height",l=e!=="hug"&&e!=="fill",c=n.$layout??"block",u=s!=null&&e!=="fill";if(c==="grid"){let f=t==="width"?"justify-self":"align-self";r([t],i),r([f],u?Q[t]:i),l&&o.push([t,e]),u?o.push([f,Xt[s]]):l||o.push([f,e==="fill"?"stretch":"start"]);return}if(c==="flex"){dt(n)===(t==="width")?(r([t,"flex","flex-grow","flex-shrink","flex-basis",a],i),l?o.push([t,e],["flex-shrink","0"]):e==="fill"&&o.push(["flex","1 1 0"],[a,"0"])):(r([t],i),r(["align-self"],u?Q[t]:i),l&&o.push([t,e]),u?o.push(["align-self",lt[s]]):e==="fill"?o.push(["align-self","stretch"]):!l&&cr(n)==="stretch"&&o.push(["align-self","flex-start"]));return}r([t],i),l?o.push([t,e]):e==="fill"?o.push([t,"100%"]):t==="width"&&o.push(["width","fit-content"])}function fr(t,e,n,o,r){let s=n.$layout??"block";if(s==="grid"){let i=t==="width"?"justify-self":"align-self";r([i],Q[t]),o.push([i,Xt[e]]);return}s==="flex"&&dt(n)!==(t==="width")&&(r(["align-self"],Q[t]),o.push(["align-self",lt[e]]))}var mt={x:{key:"$anchorX",start:"left",end:"right",size:"width"},y:{key:"$anchorY",start:"top",end:"bottom",size:"height"}},M=(t,e)=>t[e]!=null&&t[e]!=="auto";function ht(t,e,n){let{key:o,start:r,end:s}=mt[n];return t[o]?t[o]:M(e,r)&&M(e,s)?"both":M(e,s)?"end":"start"}var Pe=(t,{start:e,end:n})=>t==="end"?[n]:t==="both"?[e,n]:t==="center"?[]:[e];function pr(t,e,{rawPosition:n,sticky:o}={}){let r=t?.$layout??"block",s=e.$flow??"auto";return s==="ignore"?"placed":r==="none"?n?null:"placed":r==="block"&&(s==="sticky"||o)?"sticky":"flow"}function _e(t,{intents:e={},insets:n={},rawPosition:o,sticky:r}={},s,i,a){let l=pr(t,e,{rawPosition:o,sticky:r});if(!l)return l;if(l==="placed"){s.push(["position","absolute"]),i(["position"],"position");let c={x:"0",y:"0"},u={};for(let[f,d]of Object.entries(mt)){let m=ht(e,n,f),$=Pe(m,d),h=e[d.key]!=null;if(m==="center"){u[d.start]="50%",c[f]="-50%",i([d.start,d.end],d.key);continue}for(let y of $)M(n,y)?u[y]=n[y]:h&&(u[y]="0"),a.add(y);for(let y of[d.start,d.end])$.includes(y)||i([y],d.key)}for(let f of J)f in u&&s.push([f,u[f]]);return(c.x!=="0"||c.y!=="0")&&(s.push(["translate",`${c.x} ${c.y}`]),i(["translate"],c.x!=="0"?"$anchorX":"$anchorY")),l}if(l==="sticky"){if(s.push(["position","sticky"]),r&&e.$flow!=="sticky"){let c=r.edge==="bottom"?"bottom":"top";s.push([c,r.offset||"0px"])}else for(let[c,u]of dr(e,n))s.push([c,u]);return i(["position",...J],"position"),l}return s.push(["position","relative"]),i(["position",...J],"position"),l}function dr(t,e){let n=[];for(let[o,r]of Object.entries(mt)){if(t[r.key]==null&&!M(e,r.start)&&!M(e,r.end))continue;let s=ht(t,e,o),i=s==="center"?[r.start]:Pe(s,r);for(let a of i)n.push([a,M(e,a)?e[a]:"0px"])}return n.length?n:[["top",M(e,"top")?e.top:"0px"]]}function we(t,e={},{position:n=!1,insets:o={},rawPosition:r,sticky:s,channels:i=null}={}){let a=[],l=new Map,c=new Set,u=(m,$)=>{for(let h of m)l.set(h,$)},d=t.$flow==="ignore"?{$layout:"none"}:e??{};lr(t,a,u);for(let m of["width","height"]){let $=t[m==="width"?"$width":"$height"];if(i){a.push(...hr(i,m,$,t,o));continue}let h=t[Q[m]];$!=null?ur(m,$,d,a,u,h):h!=null&&fr(m,h,d,a,u)}if(n){if(_e(e??{},{intents:t,insets:o,rawPosition:r,sticky:s},a,u,c)==="placed"){for(let[$,h]of Object.entries(mt))if(ht(t,o,$)==="both"){for(let y=a.length-1;y>=0;y--)a[y][0]===h.size&&a.splice(y,1);a.push([h.size,"auto"]),u([h.size],h.key)}}}else i&&mr(t,o)&&a.push(...gr(i,t,o));return{declarations:a,owned:l,consumed:c}}var mr=(t,e)=>t.$flow!=null||t.$anchorX!=null||t.$anchorY!=null||J.some(n=>M(e,n)),$e=["block","free","size"];function hr(t,e,n,o,r){let i=ht(o,r,e==="width"?"x":"y")==="both",a=o.$flow==="ignore",l=o[Q[e]];if(n==null&&!i&&l==null)return[];let c=n==null?{}:Jo(e,n);if(a&&(c=n==null?{}:Object.fromEntries($e.map(u=>[u,c.free]))),i)for(let u of a?$e:["free"])c[u]="auto";return l!=null&&n!=="fill"&&!a&&(c.self=lt[l],c["self-s"]=lt[l],c.grid=Xt[l]),Object.entries(c).map(([u,f])=>[Zo(t,e,u),f])}function gr(t,e,n){let o=Object.fromEntries(J.filter(s=>M(n,s)).map(s=>[s,`var(${De(t,s)})`])),r=[];for(let[s,i]of Wo){let a=[];_e(i,{intents:e,insets:o},a,()=>{},new Set);for(let[l,c]of a)Ho.includes(l)&&r.push([qo(t,s,l),c])}return r}var Be=(t,e)=>Pt[t]?.container&&Pt[t].values.includes(e);function xr(t){let e={},n=null;for(let{min:o,block:r}of t){let s=Object.entries(r).filter(([i,a])=>Be(i,a));s.length&&(n={...n,...Object.fromEntries(s)},e[nt(o)]=n)}return e}var Ye={display:["display"],direction:["flex-direction","flexDirection"],wrap:["flex-wrap","flexWrap"],justify:["justify-content","justifyContent"],align:["align-items","alignItems"]},Ke={"flex-start":"start",start:"start","self-start":"start",left:"start",top:"start",center:"center","flex-end":"end",end:"end","self-end":"end",right:"end",bottom:"end"},yr={...Ke,normal:"stretch",stretch:"stretch",baseline:"baseline","first baseline":"baseline"},Oe={"space-between":"between","space-around":"around","space-evenly":"evenly"};function Xe(t){let e={};for(let[n,o]of Object.entries(Ye))for(let r of o){let s=t[r];if(typeof s=="string"&&s.trim()){e[n]=s.trim();break}}return e}function _t(t,e){let n=t.display?.replace(/^inline-/,""),o={$layout:n==="flex"||n==="grid"?n:e};if(o.$layout||delete o.$layout,o.$layout!=="flex")return o;let r=t.direction??"row",s=!r.startsWith("column");o.$axis=s?"x":"y",r.endsWith("-reverse")&&(o.$reverse=!0),(t.wrap==="wrap"||t.wrap==="wrap-reverse")&&(o.$wrap=!0);let i=t.justify??"normal";return Oe[i]?o.$distribute=Oe[i]:o[s?"$alignX":"$alignY"]=Ke[i]??"start",o[s?"$alignY":"$alignX"]=yr[t.align??"normal"]??"stretch",o}function br(t,e){let n={},o={};for(let{min:r,block:s}of t){let i=Xe(s);if(!Object.keys(i).length&&!(r===0&&e))continue;Object.assign(o,i);let a=_t(o,e);a.$layout&&(n[nt(r)]=a)}return e&&!n[nt(0)]&&(n[nt(0)]=_t({},e)),n}function zt(t,{layout:e,breakpoints:n}={}){let{entries:o}=ft(t,{breakpoints:n}),r=xr(o);return Object.keys(r).length?r:br(o,e)}var Cs=t=>JSON.stringify(Object.keys(t??{}).sort(Ee).map(e=>[e,Object.keys(t[e]).sort().map(n=>[n,t[e][n]])]));function Is(t){return ft(t).entries.some(({block:e})=>Object.entries(e).some(([n,o])=>Be(n,o)))}var vr=Object.values(Ye).flat(),wr={$reverse:!1,$wrap:!1,$distribute:"packed",$alignX:"start",$alignY:"start"};function Ls(t,{layout:e="none"}={}){t=t??{};let n={},o={},r={};for(let s of[w,...Ae(t).filter(i=>i!==w)]){let i=s===w?pt(t):t[s],a=Xe(i),l=vr.filter(d=>d in i);if(s!=="default"&&!Object.keys(a).length)continue;Object.assign(o,a);let c=_t(o,"flex"),u=a.display?.replace(/^inline-/,"");c.$layout=s==="default"?u==="flex"||u==="grid"?u:e:u==="flex"||u==="grid"?u:r.$layout;let f={};for(let d of new Set([...Object.keys(r),...Object.keys(c)])){let m=d in c?c[d]:wr[d];m!==void 0&&m!==r[d]&&(f[d]=m)}n[s]={set:f,remove:l},r=c}return n}var F=t=>t!=null&&typeof t=="object"&&!Array.isArray(t);function ze(t,e){let n={...t};for(let[o,r]of Object.entries(e))r===null?delete n[o]:F(r)&&F(n[o])?n[o]=ze(n[o],r):n[o]=F(r)?Ut(r):r;return n}function Ut(t){let e={};for(let[n,o]of Object.entries(t))o!==null&&(e[n]=F(o)?Ut(o):o);return e}function $r(...t){return t.reduce((e,n)=>F(n)?ze(e,Ie(n)):e,{})}var ot="$extends";function ut(t,e,n){let o={};for(let[r,s]of Object.entries(t)){if(r===ot){n.push({condition:e.condition,...e.state?{state:e.state}:{},property:ot,reason:"nested-extends"});continue}let i=Y(r);F(s)&&i==="condition"?o[r]=ut(s,{condition:r},n):F(s)&&i==="state"?o[r]=ut(s,{...e,state:e.state?`${e.state} ${r}`:r},n):o[r]=s}return o}function Or(t,e={},{dropped:n=[],chain:o=[]}={}){if(!F(t))return{layers:[],rest:t,dropped:n};let{[ot]:r,...s}=t;if(r==null)return{layers:[],rest:ut(s,{condition:"default"},n),dropped:n};let i=ut(Ie(s),{condition:"default"},n),a=[];for(let l of[].concat(r)){if(o.includes(l)){n.push({condition:"default",property:ot,reason:"extends-cycle",preset:l});continue}if(!F(e?.[l])){n.push({condition:"default",property:ot,reason:"unknown-preset",preset:l});continue}a.push(Ue(e[l],e,{dropped:n,chain:[...o,l]}).style)}return{layers:a,rest:i,dropped:n}}function Ue(t,e={},n={}){let{layers:o,rest:r,dropped:s}=Or(t,e,n);return F(r)?{style:o.length?$r(...o,r):Ut(r),dropped:s}:{style:r,dropped:s}}var kr=[...Vo,...Le,"translate"];function ke(t,e,n,o=null){let r=[];for(let[s,i]of Object.entries(t)){if(!Ko(s)||i==null)continue;let{value:a,problems:l}=Me(String(i),e);if(l.length){for(let u of l)n({property:s,...u});continue}let c=Ce(s);r.push([c,a]),o&&kr.includes(c)&&(/!important\s*$/.test(a)&&n({property:s,reason:"important-on-owned"}),r.push([De(o,c),a]))}return r}function je(t,e,n,o){let r={};for(let[s,i]of Object.entries(t)){if(Y(s)!=="intent"||i==null)continue;let a=Pt[s];if(!a){n({property:s,reason:"invalid"});continue}if(o&&!a.states){n({property:s,reason:"not-allowed"});continue}let l=i;if(typeof l=="string"&&!a.values.includes(l)){let u=Me(l,e);if(u.problems.length){for(let f of u.problems)n({property:s,...f});continue}l=u.value}if(!(a.values.includes(l)||a.length&&zo(l))){n({property:s,reason:"invalid"});continue}r[s]=l}return r}var Ne=new Set(["flex"]);function Se(t,e,n,o){let r=new Map(e),s=[];for(let[i,a]of t){if(r.has(i)||!n(i,a))continue;let l=o(i);a.value!==l&&s.push([i,l])}s.sort(([i],[a])=>Ne.has(a)-Ne.has(i));for(let[i,a]of e)t.get(i)?.value!==a&&s.push([i,a]);for(let[i,a]of s)t.set(i,{value:a,compiled:!0});return s}function jr(t){return Array.isArray(t)?t.map(e=>e.min):Object.keys(t??{}).map(I).filter(e=>e!=null)}function Nr(t,e){let n=new Map(t),o=new Map(e),r=[];for(let s of new Set([...o.keys(),...n.keys()])){let i=o.has(s)?o.get(s):q(s),a=n.has(s)?n.get(s):q(s);i!==a&&r.push([s,i])}return r}function Ds(t,{values:e={},parent:n={},breakpoints:o={},presets:r={},position:s=!1,sticky:i=null,scopeToParent:a=!1,sizing:l="resolve",prefix:c=Uo,trace:u=!1}={}){let f=l==="channels"?c:null,d=[],{style:m,dropped:$}=Ue(t,r),{entries:h,dropped:y}=ft(m,{breakpoints:o}),C=[...$,...y],K=new Map(h.map(({min:g,block:O})=>[g,O])),X=[...new Set([...K.keys(),...jr(n)])].sort((g,O)=>g-O),R=[...new Set(h.flatMap(({block:g})=>Object.keys(g).filter(O=>Yo(O)&&g[O]!=null)))],z=new Map,B=new Map(R.map(g=>[g,new Map])),Ge=new Map(R.map(g=>[g,new Map])),Ze=new Map(R.map(g=>[g,new Map])),xt=new Map(R.map(g=>[g,{}])),st={},Ht={},Wt=null,it=new Map,Vt=(g,O,T,j,W)=>{let P=(L,at={})=>{if(!L.length)return;let E={condition:g,state:O,declarations:L,...at};u&&(E.sources=L.map(V=>W(V,j.includes(V)))),d.push(E)};if(!a)return P([...T,...j]);P([...T.filter(([L])=>ve.includes(L)),...j]),P(T.filter(([L])=>!ve.includes(L)),{parentScoped:!0})},Gt=(g,O,T,j)=>{let W=g.declarations.find(([P])=>P===O);return W&&W[1]===T?{by:g.owned.get(O)??(g.consumed.has(O)?"position":"intent")}:j!=null&&j===T?{by:"raw",restored:!0}:g.owned.has(O)?{by:g.owned.get(O),reset:!0}:{by:"reset"}};for(let g of X){let O=nt(g),T=K.get(g)??null,j=p=>v=>C.push({condition:O,...p?{state:p}:{},...v}),W=(p,v,U)=>p.filter(([A])=>!U&&v.consumed.has(A)?!1:v.owned.has(A)?(j(U)({property:A,reason:"overridden",by:v.owned.get(A)}),!1):!0),P=T?ke(T,e,j(null),f):[];if(T){st={...st,...je(T,e,j(null),!1)};for(let[p,v]of P)it.set(p,v),J.includes(p)&&(Ht[p]=v),p==="position"&&(Wt=v)}let L=or(n,g),at={position:s,insets:Ht,rawPosition:Wt,sticky:i,channels:f},E=we(st,L,at),V=W(P,E,null),Zt=new Set(V.map(([p])=>p));for(let[p]of P)!Zt.has(p)&&E.owned.has(p)&&!z.has(p)&&z.set(p,{value:q(p),compiled:!0});let yt=p=>E.owned.has(p)||E.consumed.has(p),qe=Se(z,E.declarations,(p,v)=>!Zt.has(p)&&(v.compiled||yt(p)),p=>!yt(p)&&it.has(p)?it.get(p):q(p));for(let[p,v]of V)z.set(p,{value:v,compiled:!1});Vt(O,null,qe,V,([p,v],U)=>U?{by:"raw"}:Gt(E,p,v,yt(p)?void 0:it.get(p)));for(let p of R){let v=T?.[p];v&&xt.set(p,{...xt.get(p),...je(v,e,j(p),!0)});let U=xt.get(p),A=Object.keys(U).length?we({...st,...U},L,at):E,bt=new Map(E.declarations),Je=Se(B.get(p),Nr(E.declarations,A.declarations),()=>!0,b=>bt.has(b)?bt.get(b):z.get(b)?.value??q(b)),qt=[],Jt=Ge.get(p),vt=Ze.get(p);if(v)for(let[b,tt]of ke(v,e,j(p),f))Jt.set(b,tt),A.owned.has(b)&&j(p)({property:b,reason:"overridden",by:A.owned.get(b)});let Qe=new Map(A.declarations);for(let[b,tt]of Jt){let G=A.owned.has(b)?vt.has(b)?Qe.get(b)??bt.get(b)??z.get(b)?.value??q(b):void 0:tt;G===void 0||vt.get(b)===G||(vt.set(b,G),qt.push([b,G]))}Vt(O,p,Je,qt,([b,tt],G)=>G?A.owned.has(b)?{by:"reset"}:{by:"raw"}:Gt(A,b,tt))}}return{rules:d,dropped:C,context:zt(m,{breakpoints:o})}}var Ms=(t,e)=>e?e[0]==="&"?e.replaceAll("&",t):t+e:t;var Mt=["top","right","bottom","left"],Sr={padding:Mt.map(t=>`padding-${t}`),margin:Mt.map(t=>`margin-${t}`),inset:Mt,"border-radius":["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],gap:["row-gap","column-gap"]},Te={$width:"width",$height:"height"};function rt(t){let e=Ce(t);return Te[e]?[Te[e]]:Sr[e]??[e]}var Bt=(t,e)=>rt(t).some(n=>e.includes(n)),Ft=(t,e)=>rt(t).every(n=>e.includes(n)),Yt=(t,e)=>t[e]!=null&&typeof t[e]!="object",He=t=>[w,...Ae(t).filter(e=>e!==w)],Kt=(t,e,n)=>n.reduce((o,r)=>o?.[r],e===w?pt(t):t?.[e]);function Tr(t,e,n=1/0,{state:o=[]}={}){let r=rt(e);for(let s of He(t).reverse()){if(I(s)>n)continue;let i=Kt(t,s,o)??{};for(let a in i)if(Yt(i,a)&&Bt(a,r))return s}return null}function Fs(t={},e={},{width:n=1/0,tiers:o=[w],tier:r=null,state:s=[]}={}){let i={},a=f=>i[f]??(i[f]={set:{},remove:[]}),l=(f,d)=>{let m=a(f).remove;m.includes(d)||m.push(d)},c=(f,d,m)=>{a(f).set[d]=m},u=(f,d,m)=>{let $=rt(d),h=Kt(t,f,s)??{},y=Object.keys(h);for(let C of y)C!==d&&Yt(h,C)&&Ft(C,$)&&l(f,C);if(m==null){d in h&&l(f,d);return}d in h&&y.slice(y.indexOf(d)+1).some(X=>Bt(X,$)&&!Ft(X,$))&&l(f,d),c(f,d,m)};if(r==null)for(let[f,d]of Object.entries(e)){let m=Tr(t,f,n,{state:s})??(d==null?null:w);m&&u(m,f,d)}else{let f=o.indexOf(r);if(f<0)throw new Error(`planWrite: ${r} is not one of the tiers (${o.join(", ")})`);let d=I(r),m=o[f+1]?I(o[f+1]):1/0,$=He(t).filter(h=>I(h)>d&&I(h)<m);for(let[h,y]of Object.entries(e)){let C=rt(h);for(let K of $){let X=Kt(t,K,s)??{},R=Object.keys(X).filter(B=>Yt(X,B)&&Bt(B,C));if(!R.length)continue;if(R.some(B=>!Ft(B,C))&&y!=null)u(K,h,y);else for(let B of R)l(K,B)}u(r,h,y)}}for(let f in i){let d=i[f];!Object.keys(d.set).length&&!d.remove.length&&delete i[f]}return i}var Er=new Set(["none","block","flex","grid"]);function We(t){let e=pt(t?.style),n=e.$layout;if(Er.has(n))return n;let o=t?.layout;if(o&&o!=="none")return o;let r=e.display;return r==="flex"||r==="grid"?r:"none"}function Ks(t){return t?zt(t.style,{layout:We(t)}):{}}var gt=[{name:"Mobile",key:"default",min:0,width:375},{name:"Tablet",key:"@768",min:768},{name:"Desktop",key:"@1280",min:1280}];var Hs=t=>Array.isArray(t?.breakpoints)&&t.breakpoints.length?t.breakpoints:gt;var Ve=t=>t.key??(t.min?`@${t.min}`:"default");var qs=(t=gt)=>[...t].sort((e,n)=>e.min-n.min).map(Ve);function Qs(t){if(t==null)return null;if(t==="default"||String(t).startsWith("@"))return String(t);let e=parseInt(t,10);return Number.isNaN(e)?null:`@${e}`}function ni({name:t,mode:e,...n}={}){return k({name:t,mode:e??"binding",...n})}function ri(t=[]){let e=(n,o)=>t.includes(n)&&t.includes(o)?"both":t.includes(o)?"end":"start";return{$anchorX:e("left","right"),$anchorY:e("top","bottom")}}export{Y as a,I as b,Yo as c,As as d,Ko as e,ft as f,pt as g,Ie as h,Pt as i,or as j,ht as k,pr as l,Cs as m,Is as n,Ls as o,Ds as p,Ms as q,Te as r,Tr as s,Fs as t,We as u,Ks as v,nn as w,oe as x,$t as y,ri as z,gt as A,Hs as B,Ve as C,qs as D,Qs as E,k as F,Xr as G,ni as H,ae as I,pe as J,Mo as K,Lt as L,Po as M,H as N};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(t){return Array.isArray(t?.textContent)?t.textContent:null}export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as de,A as z,B as H,C as T,D as U,E as S,F as V,G as W,H as X,I as Y,J as Z,K as $,L as ee,M as re,N as te,O as ae,P as oe,Q as se,R as ne,S as ce,T as fe,U as ue,V as ie,W as p,X as me,Y as y,Z as pe,_ as le,a as c,aa as ge,b as R,ba as we,c as i,ca as Se,d as _,da as ye,e as O,f as j,g as m,h as x,i as B,j as E,k as P,l as A,m as F,n as l,o as G,p as I,q as J,r as d,s as g,t as K,u as L,v as M,w as N,x as w,y as Q,z as q}from"./chunk-FGKRC2QO.js";import{F as f,ea as h,j as k,k as v,l as b,y as D}from"./chunk-ZNG3HSBM.js";import{c as C}from"./chunk-P722OZCF.js";function ke(e){if(e.constructor.type==="computed"){let r=new b(e.compute.bind(e));r.scheduler=()=>e.markAsDirty(),e.compute=()=>r.run(),e.onDestroy(()=>r.stop())}e._ref=f((r,a)=>(e.onDirty(a),e._track=r,{get(){return r(),e.get()},set(s){if(!e.set)throw new Error("Cannot set value");return e.set(s)}}));let t=(...r)=>{if(r.length){if(!e.set)throw new Error("Cannot set value");return e.set(r[0])}return e._ref.value};for(let r of[...Object.getOwnPropertyNames(e._ref),"value"])Object.defineProperty(t,r,{get:()=>e._ref[r],set:a=>{e._ref[r]=a}});return e.update&&Object.defineProperty(t,"update",{value:r=>e.update(r)}),t}function u(e){let t,r=f((a,s)=>(t=m(e,s),{get(){return a(),e()},set(n){e(n)}}));return k()&&v(t),r}var ve=u,be=u,De=u,he=u,o="vue";c.registerGetterFactory(o,ke);var Ce=(e,t)=>g(e,{...t,framework:o}),Re=(e,t)=>l(e,{...t,framework:o}),_e=(e,t,r)=>d(e,t,{...r,framework:o}),Oe=(e,t,r,a)=>S(e,t,r,{...a,framework:o}),je=(e,t=[],r)=>{let a=w(e,t,{...r,framework:o}),s=c.from(a);for(let n of t)i(n)||!D(n)||s.onDestroy(h(n,()=>s.markAsDirty(),{flush:"sync"}));return a},xe=(e,t,r)=>typeof e=="string"?p(e,t,{...r,framework:o}):p(e,{...t,framework:o}),Be=(e,t)=>y(e,{...t,framework:o});var Ee={};C(Ee,{HttpError:()=>U,Persist:()=>ye,Plugin:()=>te,Reactive:()=>c,Scope:()=>me,Store:()=>ae,Surface:()=>$,addEffect:()=>O,createAdapter:()=>A,createBinding:()=>je,createChildScope:()=>pe,createComputed:()=>Re,createScope:()=>Be,createSignal:()=>Ce,createSource:()=>Oe,createSubscriber:()=>_e,createSurface:()=>ee,defineStore:()=>xe,destroy:()=>Se,destroyBinding:()=>Q,destroyComputed:()=>G,destroyScope:()=>le,destroySignal:()=>L,destroySource:()=>X,destroyStore:()=>oe,forceRecompute:()=>F,getterType:()=>we,hasContext:()=>P,injectStore:()=>ie,installPlugin:()=>ce,isBinding:()=>q,isComputed:()=>I,isDirty:()=>_,isDirtyBinding:()=>z,isDirtyComputed:()=>J,isDirtySignal:()=>N,isDirtySource:()=>W,isReactive:()=>i,isScope:()=>ge,isSignal:()=>M,isSource:()=>V,isStore:()=>fe,isSurface:()=>re,markAsDirty:()=>R,onDirty:()=>m,onScopeUpdate:()=>de,provideContext:()=>B,rebuildStore:()=>ne,refreshBinding:()=>T,refreshSource:()=>Z,refreshStore:()=>se,removeEffect:()=>j,removeOnDirty:()=>x,resolveBinding:()=>H,resolveSource:()=>Y,stageSignal:()=>K,useBinding:()=>he,useComputed:()=>be,useContext:()=>E,usePlugin:()=>ue,useSignal:()=>ve,useSource:()=>De});export{ve as a,be as b,De as c,he as d,Ce as e,Re as f,_e as g,Oe as h,je as i,xe as j,Be as k,Ee as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var a=(t=21)=>{let r="",c=t|0;for(;c-- >0;)r+=f[Math.random()*64|0];return r};var o=globalThis,d=Symbol.for("\u26D4\uFE0Funique-id-counter"),i=Symbol.for("\u26D4\uFE0Funique-id-session");o[d]||(o[d]=0);o[i]||(o[i]=Math.random().toString(36).slice(2,6));var h=new Set;function g(){let t=o[d]++,r=Math.random().toString(36).slice(2,4);return`${o[i]}${t}${r}`}function s(t="",r={}){let{short:c=!1,length:I=21,customLength:l=null}=r,n,u=0,p=100;do{if(c){let e=g();n=t?`${t}_${e}`:e}else if(l){let e=a(l);n=t?`${t}_${e}`:e}else{let e=a(I);n=t?`${t}_${e}`:e}if(u++,u>p)throw new Error(`Failed to generate unique ID after ${p} attempts`)}while(h.has(n));return h.add(n),n}var S=(t={})=>s("nd",{short:!0,...t}),A=(t={})=>s("anim",{short:!0,...t}),$=(t={})=>s("tok",{short:!0,...t});var b=(t={})=>s("desc",t),y=(t={})=>s("cmt",t);export{S as a,A as b,$ as c,b as d,y as e};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a}from"./chunk-YQ22OWEN.js";function u(){return`function () {
|
|
2
|
+
// Store state, computed, and actions are available on this
|
|
3
|
+
}`}function c({name:o,code:e=u()}){return{name:o,code:e}}function s(o,e){return o.update([e,"actions"],(r=[])=>{let t=`action${r.length+1}`;return r.some(n=>n.name===t)||r.unshift(c({name:t})),r})}function i(o,e,r,t){return o.update([e,"actions"],(n=[])=>(n[r]&&(n[r]=c(t)),n))}function f(o,e,r){return o.update([e,"actions"],(t=[])=>(t[r]&&t.splice(r,1),t))}var d=a("store:action",o=>{let e=o("state")?.ref([".stores"])??null;if(!e)throw new Error("Stores not found");return{add:{namespace:"scene-graph",schema:["String"],handler:r=>s(e,r)},update:{namespace:"scene-graph",schema:["String","Number","Object"],handler:(r,t,n)=>i(e,r,t,n)},remove:{namespace:"scene-graph",schema:["String","Number"],handler:(r,t)=>f(e,r,t)}}});function m({name:o,code:e=u()}){return{name:o,code:e}}function h(o,e){return o.update([e,"computed"],(r=[])=>{let t=`computed${r.length+1}`;return r.some(n=>n.name===t)||r.unshift(m({name:t})),r})}function l(o,e,r,t){return o.update([e,"computed"],(n=[])=>(n[r]&&(n[r]=m(t)),n))}function g(o,e,r){return o.update([e,"computed"],(t=[])=>(t[r]&&t.splice(r,1),t))}var C=a("store:computed",o=>{let e=o("state")?.ref([".stores"])??null;if(!e)throw new Error("Stores not found");return{add:{schema:["String"],namespace:"scene-graph",handler:r=>{h(e,r)}},update:{schema:["String","Number","Object"],namespace:"scene-graph",handler:(r,t,n)=>{l(e,r,t,n)}},remove:{schema:["String","Number"],namespace:"scene-graph",handler:(r,t)=>{g(e,r,t)}}}});function p({key:o,type:e,value:r=""}){return{key:o,type:e,value:r}}function S(o,e,r){return o.update([e,"state"],(t=[])=>{let n=`state${t.length+1}`;return t.some($=>$.key===n)||t.unshift(p({key:n,type:r||"string",value:""})),t})}function v(o,e,r,t){return o.update([e,"state"],(n=[])=>(n[r]&&(n[r]=p(t)),n))}function x(o,e,r){return o.update([e,"state"],(t=[])=>(t[r]&&t.splice(r,1),t))}var w=a("store:state",o=>{let e=o("state")?.ref([".stores"])??null;if(!e)throw new Error("Stores not found");return{add:{schema:["String","String"],namespace:"scene-graph",handler:(r,t)=>{S(e,r,t)}},update:{schema:["String","Number","Object"],namespace:"scene-graph",handler:(r,t,n)=>{v(e,r,t,n)}},remove:{schema:["String","Number"],namespace:"scene-graph",handler:(r,t)=>{x(e,r,t)}}}});function b({name:o,code:e="",state:r=[],computed:t=[],actions:n=[]}){return{name:o,code:e,state:r,computed:t,actions:n}}function A(o,e){if(e.startsWith("$"))throw new Error(`Store name "${e}" cannot start with "$" (reserved for system stores)`);let r=b({name:e});return o.set([e],r),e}function N(o,e){return o.remove([e])}var V=a("store",o=>{let e=o("state")?.ref([".stores"])??null;if(!e)throw new Error("Stores not found");return{get:{namespace:"scene-graph",handler:r=>r?e.get([r]):e.get()??{}},add:{schema:["String"],namespace:"scene-graph",handler:r=>A(e,r)},remove:{schema:["String"],namespace:"scene-graph",handler:r=>{N(e,r)}}}});var wr=[d,C,w,V];export{c as a,m as b,p as c,s as d,h as e,S as f,f as g,g as h,x as i,i as j,l as k,v as l,A as m,N as n,d as o,C as p,w as q,V as r,wr as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as l,b as w,c as h,d as C,e as k,f as q,g as L,h as D}from"./chunk-FWEUCYZO.js";import{f as d,g,i as y,k as v,l as b,m as P,n as S,o as E}from"./chunk-2CVBY2T5.js";import{N as j}from"./chunk-5Q537YU2.js";import{b as u}from"./chunk-YQ22OWEN.js";import{c as m}from"./chunk-5HNN2HVX.js";var B=l("previewData",t=>{let[s,o]=t("socket","sceneCompiler"),r=n=>{if(!n)return;let a=Object.fromEntries(Object.entries(n.values).map(([c,p])=>[c,{default:p}]));o.swapCompiledModule(n.schema.store,"store",{state:a,schema:n.schema})},e=()=>s.request("previewData:request").then(r).catch(()=>{});return e(),s.onConnect(e),{set:{handler:n=>r(n)}}});async function ee(t,s){let o={...E,...t},r=P(o.$el||"app"),e=m.create().install(C,g.configure({plugins:[y,b.configure({actorId:"preview"}),v]}),u,w.configure(k({...o,basePath:void 0},{auth:s??null})),d.configure(o),h.configure({close:!0,visibility:!1,focus:!1,freeze:!1,sleepDetection:{enabled:!1}}),S.configure({basePath:window.location.origin}));e.cache.load({config:o,$app:r,token:s}),e.sceneCompiler.loadPrototypes(j),e.windowBridge.register("parent",window.parent,"*");let n=await fetch(new URL("scene/snapshot",window.location.origin)).then(i=>{if(!i.ok)throw new Error(`Failed to load ledger snapshot (${i.status})`);return i.json()});e.state.ledger.hydrate(n),await e.moduleLoader.load(),e.socket.use(q),e.socket.use(L);let a=await D(e.socket,"toolset:request");e.cache.set(["toolset"],a),a?.stores?.length&&e.socket.use(B);let c=new Set;return e.socket.use(l("ledger",i=>{let O=i("state");return{apply:{handler:f=>{O.ledger.apply(f);for(let x of c)x(f)}}}})),{engine:e,config:o,$app:r,onApply:i=>(c.add(i),()=>c.delete(i))}}async function oe(t,s){t.windowBridge.subscribe("jucie:channel:close",()=>{try{t.channel.disconnect()}catch(r){console.warn("[stage] channel disconnect failed",r)}return!0}),t.channel.portProvider(async()=>await t.windowBridge.to("parent").request("jucie:port:request",s.id)),t.pageLifecycle.on("beforeclose",()=>{t.channel.disconnect()});let o=await t.channel.connect();if(o){let{windowContracts:r}=await import("./window-SHWTQPJX.js");o.use(r)}}export{ee as a,oe as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((t,e)=>(e&=63,e<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"");export{a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{e as v,f as B,g as O,i as u,j as Ve,k as ye}from"./chunk-P722OZCF.js";function jt(i){return typeof window<"u"&&window.requestIdleCallback?window.requestIdleCallback(i,{timeout:100}):typeof window<"u"?window.requestAnimationFrame?window.requestAnimationFrame(()=>{setTimeout(i,0)}):setTimeout(i,0):(typeof i=="function"&&i(),null)}var At=class{constructor(){this.roots=new Map,this.pending=new Set,this.onCompleteCallbacks=new Set,this.onNextIdle=new Set,this.idleScheduled=!1}markAsDirty(i){if(!i.isDirty&&(i.isDirty=!0,i.isAsync||i.immediate||i.effects&&i.effects.size>0?this.scheduleRecomputation(i):(this.onNextIdle.add(i),this.idleScheduled||(this.idleScheduled=!0,jt(()=>{for(let t of this.onNextIdle)this.pending.add(t);this.flush(null),this.onNextIdle.clear(),this.idleScheduled=!1}))),i.dependants&&i.dependants.size>0)){let t=[],e=new Set;i.dependants.forEach(r=>{let s=r.deref();s?(this.markAsDirty(s),e.add(s.id)):t.push(r)}),t.forEach(r=>i.dependants.delete(r)),i.dependantIds=e}}scheduleRecomputation(i){if(!i.debounce)return this.recompute(i);let t=Date.now(),e=i.lastComputeTime?t-i.lastComputeTime:1/0;return!i.hasPendingDebounce||e>=i.debounce?(clearTimeout(i.debounceTimer),i.hasPendingDebounce=!0,i.lastComputeTime=t,i.debounceTimer=setTimeout(()=>{i.hasPendingDebounce=!1,i.debounceTimer=null},i.debounce),this.recompute(i)):i.cachedValue}removeReactive(i){this.pending.delete(i),this.onNextIdle.delete(i)}recompute(i){return this.pending.add(i),this.flush(i)}flush(i){let t=Array.from(this.pending);this.pending.clear();let e=this.sortByDependencies(t);for(let r of e)this.onNextIdle.delete(r),r.compute();for(let r of this.onCompleteCallbacks)try{r()}catch(s){console.error("Error in batch completion callback:",s)}if(i)return e.includes(i)||i.compute(),i.cachedValue}sortByDependencies(i){let t=[],e=new Set,r=new Set,s=n=>{if(r.has(n)||e.has(n))return;r.add(n);let o=n.dependants;o&&o.size>0&&o.forEach(a=>{let h=a.deref();h&&i.includes(h)&&s(h)}),r.delete(n),e.add(n),t.unshift(n)};for(let n of i)e.has(n)||s(n);return t}};function Ot(i){let t=i.constructor.type,e=t==="signal"||t==="source",r=(...s)=>{if(s.length){if(!e)throw new Error("Cannot set value");return i.set(s[0])}return i.get()};return Object.defineProperty(r,"value",{get:()=>i.get(),set:s=>{if(!e)throw new Error("Cannot set value");return i.set(s)}}),t==="signal"&&Object.defineProperty(r,"update",{value:s=>i.update(s)}),r}var Se=Symbol.for("@jucie.io/reactive/system");globalThis[Se]||(globalThis[Se]={computationManager:new At,awaitingRecomputation:new Set,reactives:new WeakMap,keepAlive:new Set,currentlyComputing:null,computationStack:[],currentDepth:0,effectsCache:new Set,processingEffects:!1,_nextId:1,config:{maxDepth:2e3},ctx:{},getterFactories:new Map([[null,Ot]])});var c=class l{static get system(){return globalThis[Se]}static nextId(){return l.system._nextId++}static registerGetterFactory(t,e){t&&l.system.getterFactories.set(t,e)}static createGetter(t,...e){return l.system.getterFactories.get(t)?.(...e)}static from(t){let e=l.system.reactives.get(t);return e instanceof this?e:null}static addReactive(t,e){l.system.reactives.set(t,e)}static destroyReactive(t){l.system.keepAlive.has(t)&&l.system.keepAlive.delete(t);let e=l.from(t);if(e&&(e.retired=!0,l.system.computationManager.removeReactive(e),e.destroyListeners)){let r=e.destroyListeners;e.destroyListeners=null;for(let s of r)s()}l.system.reactives.delete(t)}static addKeepAlive(t){return l.system.keepAlive.has(t)||l.system.keepAlive.add(t),()=>l.removeKeepAlive(t)}static removeKeepAlive(t){l.system.keepAlive.delete(t)}static provideContext(t,e){if(!t||typeof t!="string")throw new Error("Invalid context key");if(typeof e>"u")throw new Error("Invalid context value");if(t in l.system.ctx)throw new Error("Context key already exists");l.system.ctx[t]=e}static useContext(t){if(!t||t.length===0)return l.system.ctx;if(t.length===1)return l.system.ctx[t[0]];let e=new Array(t.length);for(let r=0;r<t.length;r++)e[r]=l.system.ctx[t[r]];return e}static hasContext(t){if(!t||t.length===0)return Object.keys(l.system.ctx).length>0;if(t.length===1)return t[0]in l.system.ctx;for(let e of t)if(!(e in l.system.ctx))return!1;return!0}static clearContext(){l.system.ctx={}}static resetSystem(){l.system.awaitingRecomputation.clear(),l.system.currentlyComputing=null,l.system.computationStack=[],l.system.currentDepth=0,l.system.effectsCache.clear(),l.system.processingEffects=!1,l.system.ctx={}}static addDependant(t,e){let r=l.from(t);r&&(r.dependants.add(new WeakRef(e)),r.dependantIds.add(e.id))}static addEffect(t,e){let r=l.from(t);return r.hasRun||(r.dryRun=!0,r.compute(),r.dryRun=!1),r.effects||(r.effects=new Set),r.effects.add(e),l.system.keepAlive.add(t),()=>l.removeEffect(t,e)}static removeEffect(t,e){let r=l.from(t);r&&r.effects&&(r.effects.delete(e),r.effects.size===0&&l.system.keepAlive.delete(t))}static addOnDirtyListener(t,e){let r=l.from(t);return r?r.onDirty(e):null}static removeOnDirtyListener(t,e){let r=l.from(t);if(!r)return null;r.offDirty(e)}static processEffectsCache(){let t=new Set(l.system.effectsCache);l.system.effectsCache.clear();for(let e of t)try{(e.effects||new Set).forEach(r=>{r&&r(e.cachedValue)})}catch(r){console.error(`Error in reactive ${e.id} effect:`,r)}l.system.effectsCache.size>0&&setTimeout(()=>{l.processEffectsCache()},0)}constructor(){this.id=l.nextId(),this.isDirty=!0,this.hasRun=!1,this.dryRun=!1,this.dependants=new Set,this.dependantIds=new Set,this.retired=!1,this._get=this.get,this._set=this?.set,this._track=()=>{}}begin(){l.system.awaitingRecomputation.has(this)&&l.system.awaitingRecomputation.delete(this);let t=l.system.computationStack.indexOf(this);if(t!==-1){let e=l.system.computationStack.slice(t).concat(this),r=new Error(`Circular dependency detected: ${e.map(s=>s).join(" -> ")}`);throw r.name="CircularDependencyError",r.displayed=!1,r}if(l.system.currentDepth>=l.system.config.maxDepth)throw new Error(`Maximum reactive depth of ${l.system.config.maxDepth} exceeded`);l.system.computationStack.push(this),l.system.currentlyComputing=this,l.system.currentDepth++}end(){l.system.computationStack.pop(),l.system.currentlyComputing=l.system.computationStack[l.system.computationStack.length-1]||null,l.system.currentDepth--}recompute(){return l.system.awaitingRecomputation.has(this)||l.system.awaitingRecomputation.add(this),l.system.computationManager.scheduleRecomputation(this)}callEffects(){!this.effects||this.effects.size===0||(l.system.effectsCache.add(this),l.system.processingEffects||(l.system.processingEffects=!0,setTimeout(()=>{l.processEffectsCache(),l.system.processingEffects=!1},0)))}onDirty(t){return this.dirtyListeners||(this.dirtyListeners=new Set),this.dirtyListeners.add(t),()=>this.offDirty(t)}offDirty(t){this?.dirtyListeners&&this.dirtyListeners.delete(t)}onDestroy(t){return this.destroyListeners||(this.destroyListeners=new Set),this.destroyListeners.add(t),()=>this.offDestroy(t)}offDestroy(t){this.destroyListeners?.delete(t)}notifyDirty(){if(this.dirtyListeners?.size>0)for(let t of this.dirtyListeners)t()}markAsDirty(){if(!this.isDirty){this.isDirty=!0,(this.immediate||this.effects&&this.effects.size>0)&&l.system.computationManager.scheduleRecomputation(this),this.notifyDirty();let t=[],e=new Set;this.dependants.forEach(r=>{let s=r.deref();s?(s.markAsDirty(),e.add(s.id)):t.push(r)}),t.forEach(r=>this.dependants.delete(r)),this.dependantIds=e}}},ke=i=>c.from(i)?.markAsDirty(),D=i=>c.system.reactives.has(i),_t=i=>c.from(i)?.isDirty??!1,Ue=(i,t)=>{if(!D(i))throw new Error("Invalid effect getter");if(!t||typeof t!="function")throw new Error("Invalid effect function");return c.addEffect(i,t)},er=(i,t)=>{if(D(i))return c.removeEffect(i,t)},tr=(i,t)=>{if(!D(i))throw new Error("Invalid onDirty getter");if(!t||typeof t!="function")throw new Error("Invalid onDirty listener");return c.addOnDirtyListener(i,t)},rr=(i,t)=>{if(D(i))return c.removeOnDirtyListener(i,t)},sr=(i,t)=>c.provideContext(i,t),ir=(...i)=>i.length===0?c.system.ctx:i.length===1?c.system.ctx[i[0]]:i.map(t=>c.system.ctx[t]),nr=(...i)=>c.hasContext(i),or=i=>{if(!D(i))throw new Error("Invalid adapter getter");let t,e=null,r=new Set,s=()=>(t!==void 0||(t=c.from(i).get()),t);return[s,n=>(e||(e=Ue(i,()=>{t=void 0;for(let o of r)o(s)})),r.add(n),()=>{r.delete(n),r.size===0&&(e(),e=null)})]},ar=i=>{if(D(i))return ke(i),c.from(i).get()},K,ee=(K=class extends c{static create(t,e={}){let r=new K(t,e);return c.addReactive(r.getter,r),r.getter}constructor(t,e={}){if(e.context&&typeof e.context!="function")throw new Error("Computed context must be a function");super(),this.fn=t,this.effects=new Set(Array.isArray(e.effects)?e.effects:[]),this.cachedValue=e.initialValue||void 0,this.isDirty=e.initialValue===void 0,this.debounce=e.debounce||0,this.onAccess=e.onAccess||void 0,this.detached=e.detached||!1,this.immediate=e.immediate||!1,this.useContext=e.context||(c.hasContext()?()=>c.useContext():()=>{}),this.lastComputeTime=void 0,this.hasPendingDebounce=!1,this.debounceTimer=void 0,this.computationId=0,this.getter=c.createGetter(e?.framework||null,this),(this.immediate||this.effects.size>0)&&this.compute()}setFn(t){if(typeof t!="function")throw new Error("Computed function must be a function");this.fn=t,this.markAsDirty()}compute(){this.begin();try{let t=this.useContext?this.useContext():void 0;return this.cachedValue=this.fn(t,this.cachedValue),this.isDirty=!1,this.hasRun=!0,this.cachedValue}finally{this.end(),this.dryRun||this.callEffects()}}get(){try{return!this.detached&&c.system.currentlyComputing&&c.system.currentlyComputing!==this&&!this.dependantIds.has(c.system.currentlyComputing.id)&&(this.dependantIds.add(c.system.currentlyComputing.id),this.dependants.add(new WeakRef(c.system.currentlyComputing))),this.isDirty?this.recompute():this.cachedValue}catch(t){throw t}finally{this.onAccess&&this.onAccess(this.cachedValue)}}},v(K,"type","computed"),K),me=(i,t={})=>ee.create(i,t),Ce=i=>{We(i)&&c.destroyReactive(i)},We=i=>ee.from(i)!==null,cr=i=>ee.from(i)?.isDirty??!1,hr=(i,t,e={})=>{if(D(i)){let a=c.addEffect(i,t);return e.immediate&&t(c.from(i).get()),a}let{immediate:r,...s}=e,n=ee.create(i,s),o=c.addEffect(n,t);return r&&t(c.from(n).get()),o};function $(i){if(i===null||typeof i!="object")return!1;let t=Object.getPrototypeOf(i);return t===Object.prototype||t===null}function $t(i,t){if(Object.is(i,t))return!0;if(Array.isArray(i)){if(!Array.isArray(t)||i.length!==t.length)return!1;for(let r=0;r<i.length;r++)if(!Object.is(i[r],t[r]))return!1;return!0}if(!$(i)||!$(t))return!1;let e=Object.keys(i);if(e.length!==Object.keys(t).length)return!1;for(let r of e)if(!Object.hasOwn(t,r)||!Object.is(i[r],t[r]))return!1;return!0}var Rt=["push","pop","shift","unshift","splice","sort","reverse","fill","copyWithin"],ue=Symbol("reactiveValue"),Ie=Symbol("raw"),ge=Symbol("noChange");function It(i,t){return i[ue]?i:new Proxy(i,{get(e,r){return r===ue?!0:r===Ie?e:Rt.includes(r)?(...s)=>t._mutate(n=>n[r](...s)):Reflect.get(e,r)},set(e,r,s){return t._mutate(n=>{n[r]=s}),!0}})}function Pt(i,t){return i[ue]?i:new Proxy(i,{get(e,r){return r===ue?!0:r===Ie?e:Reflect.get(e,r)},set(e,r,s){return t._mutate(n=>{n[r]=s}),!0},deleteProperty(e,r){return t._mutate(s=>{delete s[r]}),!0}})}function we(i,t){return t.wrap?Array.isArray(i)?It(i,t):$(i)?Pt(i,t):i:i}var U,F,oe,te=(U=class extends c{constructor(e,r={}){super();O(this,F);this.cachedValue=void 0,this.roots=new Set,this.effects=new Set(Array.isArray(r.effects)?r.effects:[]),this.debounce=r.debounce||0,this.onAccess=r.onAccess||null,this.detached=r.detached||!1,this.equals=r.equals??$t,this.wrap=r.wrap??!0,this.immediate=r.immediate||!1,this.pendingChange=we(e,this),this.lastComputeTime=null,this.hasPendingDebounce=!1,this.debounceTimer=null,this.getter=c.createGetter(r?.framework||null,this)}static create(e,r={}){let s=new U(e,r);return c.addReactive(s.getter,s),s.getter}update(e){if(typeof e!="function")throw new Error("Signal update expects a function");let r=u(this,F,oe).call(this);this.drafting=!0;let s;try{s=e(r)}finally{this.drafting=!1,this.draft=null}s!==void 0&&s!==r&&this.set(s)}_mutate(e){let r=u(this,F,oe).call(this),s=r?.[Ie]??r,n=this.drafting&&this.draft===s?s:null;n||(n=Array.isArray(s)?s.slice():{...s},this.drafting&&(this.draft=n),this.pendingChange=we(n,this));let o=e(n);return this.markAsDirty(),o}compute(){this.begin();try{return this.pendingChange!==ge&&(this.cachedValue=this.pendingChange,this.pendingChange=ge),this.isDirty=!1,this.hasRun=!0,this.cachedValue}finally{this.end(),this.dryRun||this.callEffects()}}set(e){this.stage(e)&&this.markAsDirty()}stage(e){return this.equals(e,u(this,F,oe).call(this))?!1:(this.pendingChange=we(e,this),!0)}get(){try{return!this.detached&&c.system.currentlyComputing&&c.system.currentlyComputing!==this&&!this.dependantIds.has(c.system.currentlyComputing.id)&&(this.dependantIds.add(c.system.currentlyComputing.id),this.dependants.add(new WeakRef(c.system.currentlyComputing))),this.isDirty?this.recompute():this.cachedValue}catch(e){throw e}finally{this.onAccess&&this.onAccess(this.cachedValue)}}},F=new WeakSet,oe=function(){return this.pendingChange!==ge?this.pendingChange:this.cachedValue},v(U,"type","signal"),U),Ee=(i,t={})=>te.create(i,t),Vt=(i,t)=>te.from(i)?.stage(t)??!1,ae=i=>{Pe(i)&&c.destroyReactive(i)},Pe=i=>te.from(i)!==null,lr=i=>te.from(i)?.isDirty??!1,xe=i=>typeof i=="function"&&(i.constructor.name==="AsyncFunction"||i.constructor.name==="AsyncGeneratorFunction"),be=Symbol("noChange"),L,z,Ne,Fe,qe,H=(L=class extends c{constructor(e,r=[],s={}){if(s.context&&typeof s.context!="function")throw new Error("Binding context must be a function");super();O(this,z);this.fn=e,this.isAsync=xe(e),this.effects=new Set(Array.isArray(s.effects)?s.effects:[]),this.cachedValue=s.initialValue,this.isDirty=this.isAsync||s.initialValue===void 0,this.debounce=s.debounce||0,this.onAccess=s.onAccess||void 0,this.detached=s.detached||!1,this.immediate=s.immediate||!1,this.useContext=s.context||(c.hasContext()?()=>c.useContext():()=>{}),this.onError=s.onError||(n=>console.error("[Binding] failed",n)),this.lastComputeTime=void 0,this.hasPendingDebounce=!1,this.debounceTimer=void 0,this.stale=!0,this.pendingChange=be,this.running=null,this.computationId=0,this.getter=c.createGetter(s?.framework||null,this);for(let n of r)c.addDependant(n,this);this.onDestroy(()=>{this.computationId++,this.running=null}),this.immediate&&this.compute()}static create(e,r=[],s={}){let n=new L(e,r,s);return c.addReactive(n.getter,n),n.getter}setFn(e){if(typeof e!="function")throw new Error("Binding function must be a function");this.fn=e,this.isAsync=xe(e),this.markAsDirty()}markAsDirty(){this.stale=!0,super.markAsDirty()}compute(){if(!this.isAsync)try{let r=this.useContext?this.useContext():void 0;return this.cachedValue=this.fn(r,this.cachedValue),this.isDirty=!1,this.hasRun=!0,this.cachedValue}finally{this.dryRun||this.callEffects()}let e=this.pendingChange!==be;return e&&(this.cachedValue=this.pendingChange,this.pendingChange=be),this.stale&&(this.stale=!1,u(this,z,Ne).call(this)),this.isDirty=!1,this.hasRun=!0,e&&!this.dryRun&&this.callEffects(),this.cachedValue}get(){try{return!this.detached&&c.system.currentlyComputing&&c.system.currentlyComputing!==this&&!this.dependantIds.has(c.system.currentlyComputing.id)&&(this.dependantIds.add(c.system.currentlyComputing.id),this.dependants.add(new WeakRef(c.system.currentlyComputing))),this.isDirty?this.recompute():this.cachedValue}finally{this.onAccess&&this.onAccess(this.cachedValue)}}async resolve(){for(this.isDirty&&this.get();this.running;)await this.running;return this.get()}refresh(){return this.markAsDirty(),this.resolve()}},z=new WeakSet,Ne=function(){let e=++this.computationId,r=this.useContext?this.useContext():void 0,s=Promise.resolve().then(()=>this.fn(r,this.cachedValue)).then(n=>{e===this.computationId&&(this.running=null,u(this,z,Fe).call(this,n))},n=>{if(e===this.computationId)throw this.running=null,u(this,z,qe).call(this,n),n});s.catch(()=>{}),this.running=s},Fe=function(e){this.pendingChange=e,ye(L.prototype,this,"markAsDirty").call(this)},qe=function(e){try{this.onError(e)}catch(r){console.error("[Binding] onError threw",r)}},v(L,"type","binding"),L),ur=(i,t=[],e={})=>H.create(i,t,e),Tt=i=>{Ge(i)&&c.destroyReactive(i)},Ge=i=>H.from(i)!==null,fr=i=>H.from(i)?.isDirty??!1,dr=i=>{let t=H.from(i);if(!t)throw new Error("Invalid binding");return t.resolve()},pr=i=>{let t=H.from(i);if(!t)throw new Error("Invalid binding");return t.refresh()};function W(i){return typeof i=="function"?i():i}var De=/:(\w+)(\?)?/g,Lt=/^[a-z][a-z0-9+.-]*:\/\/[^/]*/i;function G(i){let t=i.match(/^(https?:\/\/)(.*)$/i);return t?t[1]+t[2].replace(/\/+/g,"/"):i.replace(/\/+/g,"/")}function Mt(i,t){let e=i?String(W(i)).replace(/\/+$/,""):"";if(/^https?:\/\//i.test(t))return G(t);let r=t.startsWith("/")?t:`/${t}`;return G(e?`${e}${r}`:r)}function He(i){let t=String(i).match(Lt);return t?{origin:t[0],path:String(i).slice(t[0].length)}:{origin:"",path:String(i)}}function Je(i){return De.lastIndex=0,De.test(He(i).path)}function zt(i,t){let{origin:e,path:r}=He(i),s=r.replace(De,(n,o,a)=>{let h=W(t[o]);if(h==null||h===""){if(a)return"";throw new Error(`Missing required URL param: ${o}`)}return encodeURIComponent(String(h))});return G(e+s)}function Bt(i,t){let e=t.map(W).filter(s=>s!=null&&s!=="").map(s=>encodeURIComponent(String(s))).join("/");if(!e)return G(i);let r=i.endsWith("/")?i.slice(0,-1):i;return G(`${r}/${e}`)}function Kt(i={}){let t=new URLSearchParams;for(let[r,s]of Object.entries(i)){let n=W(s);n==null||n===""||t.set(r,String(n))}let e=t.toString();return e?`?${e}`:""}function Ut(i,t){if(Array.isArray(t)){if(Je(i))throw new Error("Array params cannot be used with URL template tokens");return Bt(i,t)}return t&&typeof t=="object"?zt(i,t):G(i)}function Te(i,t,e={}){let r=Ut(i,t),s=Kt(e.query);return Mt(e.baseUrl,`${r}${s}`)}function Le(i={}){let t={...i.headers||{}};for(let[s,n]of Object.entries(t))t[s]=W(n);let e=W(i.auth);e&&(t.Authorization=e);let r={method:i.method||"GET",headers:t};return i.body!==void 0&&(r.body=W(i.body)),r}var Me=class extends Error{constructor(i){super(`HTTP ${i.status} ${i.statusText}`),this.name="HttpError",this.response=i}};function ze(i){return i===null?"null":Array.isArray(i)?"an array":typeof i!="object"?`a ${typeof i}`:`a ${Object.getPrototypeOf(i)?.constructor?.name??"non-plain"} instance`}var re=Symbol("noChange"),S,fe,A,Ze,Qe,Xe,Ye,_e,de,et,d,N,tt,Q,ce,rt,X,he,je,st,it,nt,ot,at,J=(S=class extends c{constructor(e,r,s=[],n={}){var o,a,h;if(Array.isArray(s)&&Je(e))throw new Error("Array params cannot be used with URL template tokens");super();O(this,d);this.url=e,this.fields=u(o=S,A,Xe).call(o,r),this.params=s,this.config={fetch:(...f)=>fetch(...f),parse:f=>f.json(),onError:f=>console.error("[Source] fetch failed",f),commitMethod:"PATCH",...n},this.cachedValue=u(a=S,A,Ye).call(a,this.fields),this.pendingChange=re,this.stale=!0,this.scheduled=null,this.inflight=null,this.settledKey=null,this.writes=new Set;for(let f of u(h=S,A,_e).call(h,s,this.config))c.addDependant(f,this);this.getter=c.createGetter(n?.framework||null,this)}static create(e,r,s=[],n={}){let o=new S(e,r,s,n);return c.addReactive(o.getter,o),o.getter}compute(){this.begin();try{return this.pendingChange!==re?(this.cachedValue=this.pendingChange,this.pendingChange=re):this.stale&&u(this,d,N).call(this),this.isDirty=!1,this.hasRun=!0,this.cachedValue}finally{this.end(),this.dryRun||this.callEffects()}}markAsDirty(){this.stale=!0,this.hasRun&&u(this,d,N).call(this)}async resolve(){for(this.hasRun?this.stale&&!this.scheduled&&!this.inflight&&u(this,d,N).call(this):this.get();this.scheduled||this.inflight||this.writes.size>0;)this.scheduled?await this.scheduled:this.inflight?await this.inflight.done:await this.writes.values().next().value;return this.get()}refresh(){return this.hasRun&&!this.scheduled&&!this.inflight&&(this.settledKey=null,u(this,d,N).call(this)),this.resolve()}destroy(){u(this,d,Q).call(this),this.writes.clear(),c.destroyReactive(this.getter)}get(){return u(this,d,at).call(this)}set(e){return u(this,d,st).call(this,e),this.getter}},fe=new WeakMap,A=new WeakSet,Ze=function(e){if(!$(e))return!1;let r=Object.keys(e);return r.length>0&&r.every(s=>B(S,fe).has(s))},Qe=function(e,r){var s;if(typeof r=="function")return{default:void 0,get:r,set:null};if(u(s=S,A,Ze).call(s,r)){let{default:n,get:o=null,set:a=null}=r;if(o!==null&&typeof o!="function")throw new Error(`Invalid shape for field "${e}": get must be a function`);if(a!==null&&typeof a!="function")throw new Error(`Invalid shape for field "${e}": set must be a function`);return{default:n,get:o,set:a}}return{default:r,get:null,set:null}},Xe=function(e){var n;if(e==null)return null;let r=typeof e=="function"?e():e;if(!$(r))throw new Error("Source shape must be a plain object of field definitions");let s=new Map;for(let[o,a]of Object.entries(r))s.set(o,u(n=S,A,Qe).call(n,o,a));return s},Ye=function(e){if(!e)return;let r={};for(let[s,n]of e)r[s]=n.default;return r},_e=function(e,r={}){let s=new Set,n=a=>a?Array.isArray(a)?a:typeof a=="object"?Object.values(a):[a]:[],o=a=>{typeof a=="function"&&D(a)&&s.add(a)};for(let a of n(e))o(a);for(let a of n(r.query))o(a);o(r.baseUrl),o(r.auth),o(r.body);for(let a of n(r.headers))o(a);return[...s]},de=new WeakMap,et=function(e,r){let s=r.body===void 0||typeof r.body=="string"?r.body:`#unmatchable-${++Ve(S,de)._}`;return JSON.stringify([r.method,e,r.headers,s])},d=new WeakSet,N=function(){this.scheduled||(this.scheduled=Promise.resolve().then(()=>{this.scheduled=null,this.stale=!1,u(this,d,tt).call(this)}),this.scheduled.catch(()=>{}))},tt=function(){var m;let e,r;try{e=Te(this.url,this.params,this.config),r=Le(this.config)}catch(p){throw u(this,d,ce).call(this,p),p}let s=u(m=S,A,et).call(m,e,r);if(this.inflight?.key===s)return;if(s===this.settledKey){u(this,d,Q).call(this);return}u(this,d,Q).call(this);let n=new AbortController,o=()=>this.inflight?.controller===n,a,h,f=new Promise((p,b)=>{a=p,h=b});f.catch(()=>{}),Promise.resolve().then(()=>this.config.fetch(e,{...r,signal:n.signal})).then(p=>{if(!p.ok)throw new Me(p);return this.config.parse(p)}).then(p=>{if(!o())return a();if(this.fields&&!$(p))throw new Error(`Source declares a shape but the response parsed to ${ze(p)}`);this.inflight=null,this.settledKey=s,u(this,d,rt).call(this,p),a()}).catch(p=>{if(!o())return a();this.inflight=null,this.stale=!0,u(this,d,ce).call(this,p),h(p)}),this.inflight={key:s,controller:n,done:f,settle:a}},Q=function(){this.inflight&&(this.inflight.controller.abort(),this.inflight.settle(),this.inflight=null)},ce=function(e,...r){try{this.config.onError(e,...r)}catch(s){console.error("[Source] onError threw",s)}},rt=function(e){u(this,d,X).call(this,this.fields?u(this,d,je).call(this,e):e)},X=function(e){this.pendingChange=e,ye(S.prototype,this,"markAsDirty").call(this)},he=function(){return this.pendingChange!==re?this.pendingChange:this.cachedValue},je=function(e,r=null){let s={};for(let[n,o]of this.fields){if(!(n in e)){s[n]=r?r[n]:o.default;continue}s[n]=o.get?o.get(e[n],e):e[n]}return s},st=function(e){let r=u(this,d,he).call(this),s=typeof e=="function"?e(r):e,n;if(this.fields){if(!$(s))throw new Error(`A shaped source is written with an object of its fields, not ${ze(s)}`);n={...r};for(let a of Object.keys(s))this.fields.has(a)&&(n[a]=s[a])}else n=$(r)&&$(s)?{...r,...s}:s;u(this,d,X).call(this,n),this.inflight&&(u(this,d,Q).call(this),this.settledKey=null,this.stale=!0);let o=u(this,d,nt).call(this,u(this,d,it).call(this,s)).then(a=>{this.fields&&$(a)&&[...this.fields.keys()].some(h=>h in a)&&u(this,d,X).call(this,u(this,d,je).call(this,a,u(this,d,he).call(this)))}).catch(a=>{throw u(this,d,X).call(this,u(this,d,ot).call(this,s,n,r)),u(this,d,ce).call(this,a,s),a}).finally(()=>{this.writes.delete(o),this.writes.size===0&&this.stale&&this.hasRun&&u(this,d,N).call(this)});o.catch(()=>{}),this.writes.add(o)},it=function(e){if(!this.fields)return e;let r={};for(let s of Object.keys(e)){let n=this.fields.get(s);n&&(r[s]=n.set?n.set(e[s],e):e[s])}return r},nt=async function(e){if(typeof this.config.commitHandler=="function")return this.config.commitHandler(e);let r=Le(this.config),s=await this.config.fetch(Te(this.url,this.params,this.config),{...r,method:this.config.commitMethod,headers:{"Content-Type":"application/json",...r.headers},body:JSON.stringify(e)});if(!s.ok)throw new Me(s);return s.json().catch(()=>null)},ot=function(e,r,s){let n=u(this,d,he).call(this);if(!$(n)||!$(r))return Object.is(n,r)?s:n;let o={...n};for(let a of Object.keys(e))a in r&&Object.is(n[a],r[a])&&(o[a]=$(s)?s[a]:void 0);return o},at=function(){let e=c.system.currentlyComputing;return e&&e!==this&&!this.dependantIds.has(e.id)&&(this.dependantIds.add(e.id),this.dependants.add(new WeakRef(e))),this.isDirty?this.recompute():this.cachedValue},O(S,A),v(S,"type","source"),O(S,fe,new Set(["default","get","set"])),O(S,de,0),S),Wt=(i,t,e=[],r={})=>J.create(i,t,e,r),Nt=i=>J.from(i)!==null,yr=i=>J.from(i)?.isDirty??!1,Ft=i=>{let t=J.from(i);if(!t)throw new Error("Invalid source");t.destroy()};function ct(i,t){let e=(Array.isArray(i)?i:[i]).map(r=>{let s=J.from(r);if(!s)throw new Error("Invalid source");return s}).map(t);return Array.isArray(i)?Promise.all(e):e[0]}var mr=i=>ct(i,t=>t.resolve()),gr=i=>ct(i,t=>t.refresh()),qt=Object.create(null),ht=new Set(["$get","$set","$dispatch","$provide"]),se=i=>({value:i,writable:!1,enumerable:!1,configurable:!1}),w,_,q,V,lt,ut,ft,dt,j,le,pt,yt,Ae,mt,pe=(w=class{constructor(t=null){O(this,j);this.parent=t instanceof w?t:w.from(t),this.provided=new Set,this.surface=u(this,j,pt).call(this),w.surfaces.set(this.surface,this)}static from(t){return t!=null&&w.surfaces.get(t)||null}static create(t){return new w(t).surface}define(t,{get:e,set:r}){u(this,j,le).call(this,t),Object.defineProperty(this.surface,t,{get:e,set:r,enumerable:!0,configurable:!0})}value(t,e,{enumerable:r=!0}={}){u(this,j,le).call(this,t),Object.defineProperty(this.surface,t,{value:e,writable:!1,enumerable:r,configurable:!0})}action(t,e){this.value(t,e.bind(this.surface))}provide(t,e){if(u(this,j,le).call(this,t),Object.hasOwn(this.surface,t))throw new Error(`"${t}" is already a key of this surface`);this.provided.add(t),Object.defineProperty(this.surface,t,{value:e,writable:!1,enumerable:!0,configurable:!1})}remove(t){if(this.provided.has(t))throw new Error(`"${t}" is provided and can't be removed`);delete this.surface[t]}has(t){return Object.hasOwn(this.surface,t)}keys(){return Object.keys(this.surface)}},_=new WeakMap,q=new WeakMap,V=new WeakSet,lt=function(t,e){var s;let r=e.length;return r===0?t:r===1?t[e[0]]:(B(w,_)[r]??u(s=w,V,ut).call(s,r))(t,e)},ut=function(t){let e=Array.from({length:t},(s,n)=>`?.[path[${n}]]`),r=new Function("obj","path",`return obj${e.join("")}`);return B(w,_)[t]=r,r},ft=function(t,e,r){var n;let s=e.length;return s===0?Object.assign(t,r):s===1?t[e[0]]=r:(B(w,q)[s]??u(n=w,V,dt).call(n,s))(t,e,r)},dt=function(t){let e=Array.from({length:t},(o,a)=>`v${a}`),r=`const [${e.join(", ")}] = path;
|
|
2
|
+
`,s="surface";for(let o=0;o<t-1;o++){let a=e[o],h=e[o+1];r+=`${s}[${a}] = (${s}[${a}] !== undefined && typeof ${s}[${a}] === 'object') ? ${s}[${a}] : createNodeType(${h});
|
|
3
|
+
`,s+=`[${a}]`}r+=`${s}[${e[t-1]}] = value;
|
|
4
|
+
return surface;`;let n=new Function("surface","path","value","createNodeType",r);return B(w,q)[t]=(o,a,h)=>n(o,a,h,g),B(w,q)[t]},j=new WeakSet,le=function(t){if(ht.has(t))throw new Error(`"${t}" is reserved on a surface`);if(this.provided.has(t))throw new Error(`"${t}" is already provided on this surface`)},pt=function(){let t=Object.create(this.parent?.surface??qt);return Object.defineProperty(t,"$get",se(e=>u(this,j,yt).call(this,e))),Object.defineProperty(t,"$set",se((e,r)=>{u(this,j,Ae).call(this,e,r)})),Object.defineProperty(t,"$dispatch",se((e,...r)=>u(this,j,mt).call(this,e,...r))),Object.defineProperty(t,"$provide",se((e,r)=>this.provide(e,r))),t},yt=function(t){var e;return u(e=w,V,lt).call(e,this.surface,t)},Ae=function(t,e){var f,m;let r=this.surface;if(t.length===0){Object.assign(r,e);return}let[s,...n]=t;if(n.length===0){r[s]=e;return}let o=r[s],a=w.from(o);if(a){u(f=a,j,Ae).call(f,n,e);return}if(o!=null&&typeof o!="object"){console.warn(`Cannot set nested path on "${s}": expected object or array, got ${typeof o}`);return}let h=o==null?g(n[0]):Array.isArray(o)?[...o]:{...o};u(m=w,V,ft).call(m,h,n,e),r[s]=h},mt=function(t,...e){let r=this.surface;try{if(!(t in r)){console.error(`Method ${t} not found on the surface object.`);return}if(typeof r[t]!="function"){console.error(`${t} is not a function on the surface object.`);return}return r[t].call(r,...e)}catch(s){console.error(`Error dispatching to ${t}:`,s);return}},O(w,V),v(w,"type","surface"),v(w,"surfaces",new WeakMap),O(w,_,[null,null,(t,e)=>t?.[e[0]]?.[e[1]],(t,e)=>t?.[e[0]]?.[e[1]]?.[e[2]],(t,e)=>t?.[e[0]]?.[e[1]]?.[e[2]]?.[e[3]],(t,e)=>t?.[e[0]]?.[e[1]]?.[e[2]]?.[e[3]]?.[e[4]],(t,e)=>t?.[e[0]]?.[e[1]]?.[e[2]]?.[e[3]]?.[e[4]]?.[e[5]],(t,e)=>t?.[e[0]]?.[e[1]]?.[e[2]]?.[e[3]]?.[e[4]]?.[e[5]]?.[e[6]],(t,e)=>t?.[e[0]]?.[e[1]]?.[e[2]]?.[e[3]]?.[e[4]]?.[e[5]]?.[e[6]]?.[e[7]]]),O(w,q,[null,null,(t,e,r)=>{let[s,n]=e;return t[s]=s in t?t[s]:g(n),t[s][n]=r,t},(t,e,r)=>{let[s,n,o]=e;return t[s]=s in t?t[s]:g(n),t[s][n]=n in t[s]?t[s][n]:g(o),t[s][n][o]=r,t},(t,e,r)=>{let[s,n,o,a]=e;return t[s]=s in t?t[s]:g(n),t[s][n]=n in t[s]?t[s][n]:g(o),t[s][n][o]=o in t[s][n]?t[s][n][o]:g(a),t[s][n][o][a]=r,t},(t,e,r)=>{let[s,n,o,a,h]=e;return t[s]=s in t?t[s]:g(n),t[s][n]=n in t[s]?t[s][n]:g(o),t[s][n][o]=o in t[s][n]?t[s][n][o]:g(a),t[s][n][o][a]=a in t[s][n][o]?t[s][n][o][a]:g(h),t[s][n][o][a][h]=r,t},(t,e,r)=>{let[s,n,o,a,h,f]=e;return t[s]=s in t?t[s]:g(n),t[s][n]=n in t[s]?t[s][n]:g(o),t[s][n][o]=o in t[s][n]?t[s][n][o]:g(a),t[s][n][o][a]=a in t[s][n][o]?t[s][n][o][a]:g(h),t[s][n][o][a][h]=h in t[s][n][o][a]?t[s][n][o][a][h]:g(f),t[s][n][o][a][h][f]=r,t},(t,e,r)=>{let[s,n,o,a,h,f,m]=e;return t[s]=s in t?t[s]:g(n),t[s][n]=n in t[s]?t[s][n]:g(o),t[s][n][o]=o in t[s][n]?t[s][n][o]:g(a),t[s][n][o][a]=a in t[s][n][o]?t[s][n][o][a]:g(h),t[s][n][o][a][h]=h in t[s][n][o][a]?t[s][n][o][a][h]:g(f),t[s][n][o][a][h][f]=f in t[s][n][o][a][h]?t[s][n][o][a][h][f]:g(m),t[s][n][o][a][h][f][m]=r,t},(t,e,r)=>{let[s,n,o,a,h,f,m,p]=e;return t[s]=s in t?t[s]:g(n),t[s][n]=n in t[s]?t[s][n]:g(o),t[s][n][o]=o in t[s][n]?t[s][n][o]:g(a),t[s][n][o][a]=a in t[s][n][o]?t[s][n][o][a]:g(h),t[s][n][o][a][h]=h in t[s][n][o][a]?t[s][n][o][a][h]:g(f),t[s][n][o][a][h][f]=f in t[s][n][o][a][h]?t[s][n][o][a][h][f]:g(m),t[s][n][o][a][h][f][m]=m in t[s][n][o][a][h][f]?t[s][n][o][a][h][f][m]:g(p),t[s][n][o][a][h][f][m][p]=r,t}]),w);function g(i){return typeof i=="number"?[]:{}}var wr=i=>pe.create(i),br=i=>pe.from(i)!==null;function Y(i){return i._track&&i._track(),i.get()}var Gt=new Set(["get","set","dispatch","provide"]),ie,gt=(ie=class{static configure(i={}){return{plugin:this,options:i}}static install(i,t={}){let e=this.name;if(typeof e!="string"||!/^[A-Za-z_][\w]*$/.test(e))throw new Error(`Plugin name must be an identifier, got ${JSON.stringify(e)}`);if(Gt.has(e))throw new Error(`Plugin name "${e}" is reserved: $${e} is a method of every surface`);t={...this.options,...t};let r=new this(i,t);return Object.defineProperty(r,"store",{value:i,writable:!1,configurable:!1}),Object.defineProperty(r,"options",{value:t,writable:!1,configurable:!1}),r}},v(ie,"name",null),v(ie,"options",{}),ie),Be=i=>typeof i=="function"&&i.prototype instanceof gt;function Ke(i){if(Be(i))return{plugin:i,options:{}};if(i&&Be(i.plugin))return{plugin:i.plugin,options:i.options??{}};throw new Error("Expected a Plugin subclass or Plugin.configure() entry")}function Ht(i){return Array.isArray(i)?"an array":i===null?"null":typeof i=="object"?"a plain object":`a ${typeof i}`}var y,C,wt,bt,Oe,vt,St,kt,Ct,I=(y=class extends c{constructor(e,r={}){super();O(this,C);this.setup=e,this.options=r,this.isAsync=typeof e=="function"&&xe(e),this.onDestroy=r.onDestroy||null,this.initialized=!1,this.extensions=new Set,this.surfaceOwner=new pe,this.surface=this.surfaceOwner.surface,this.cachedValue={},this.immediate=!0,this.plugins=new Map}static from(e){return y.stores.get(e)??null}static installPlugin(e){let r=Ke(e);return y.globalPlugins.push(r),()=>{let s=y.globalPlugins.indexOf(r);s!==-1&&y.globalPlugins.splice(s,1)}}static resolve(e){let r=y.registry.get(e);if(!r)return;let s=r.deref();if(!s){y.registry.delete(e);return}return s}static beginSetup(e){if(y.setupStack.includes(e)){let r=y.setupStack.concat(e).map(n=>n.name??n.id).join(" -> "),s=new Error(`Circular store dependency detected: ${r}`);throw s.name="CircularStoreDependencyError",s}y.setupStack.push(e)}static endSetup(e){if(y.setupStack.pop()!==e)throw new Error("Store setup stack mismatch")}static get currentlySettingUp(){return y.setupStack.length>0?y.setupStack[y.setupStack.length-1]:null}static register(e,r,s){y.stores.set(e,r),y.instancesBySurface.set(r.surface,r),r.useStore=e,r.name=s}static inject(e){let r=y.resolve(e);if(r)return r()}installPlugins(e){let r=new Set(this.options.excludePlugins??[]),s=new Map;for(let o of[...y.globalPlugins,...this.options.plugins??[]]){let a=Ke(o);s.set(a.plugin.name,a)}let n={name:e,surface:this.surface,options:this.options};for(let[o,{plugin:a,options:h}]of s){if(r.has(o))continue;let f=a.install(n,{...h,...this.options[o]});this.plugins.set(o,{instance:f,...u(this,C,wt).call(this,f),watchers:[]})}}runPlugins(e){for(let r of this.plugins.values())u(this,C,Oe).call(this,r),r.instance.setup?.(e),r.watchers=u(this,C,bt).call(this,r.instance,e)}compute(){if(!this.setup)return{};y.beginSetup(this);try{this.cachedValue=this.resolveSetup(),this.runPlugins(this.cachedValue),this.isDirty=!1,this.hasRun=!0,this.bindSurface?.();for(let e of this.retiredReactives??[])e.isDirty?e.notifyDirty():e.markAsDirty();return this.retiredReactives=[],this.cachedValue}catch(e){throw console.error("Error in setup function",e),e}finally{y.endSetup(this),this.callEffects()}}resolveSetup(){this.extensions=new Set,this.destroyCallback=null;let e={};if(typeof this.setup=="function")e=u(this,C,St).call(this,this.setup);else if(typeof this.setup=="object"&&this.setup!==null)e=u(this,C,kt).call(this,this.setup);else throw new Error("setup must be a function or object configuration");this.retiredReactives=[];for(let[r,s]of Object.entries(this.cachedValue)){if(D(s)&&s!==e[r]){let n=c.from(s);n&&this.retiredReactives.push(n),c.destroyReactive(s)}r in e||this.surfaceOwner.remove(r)}return e}trackReactive(){c.system.currentlyComputing&&c.system.currentlyComputing!==this&&!this.dependantIds.has(c.system.currentlyComputing.id)&&(this.dependantIds.add(c.system.currentlyComputing.id),this.dependants.add(new WeakRef(c.system.currentlyComputing)))}initialize(){return this.isDirty?this.recompute():this.cachedValue}destroy(){if(typeof this.destroyCallback=="function")try{this.destroyCallback(this.surface)}catch(e){console.error("Error in onDestroy callback",e)}for(let e of this.plugins.values()){try{e.instance.destroy?.()}catch(r){console.error("Error in plugin destroy",r)}u(this,C,Oe).call(this,e);for(let r of e.getters)Ce(r)}this.plugins.clear(),this.useStore&&y.stores.delete(this.useStore),this.name&&y.registry.delete(this.name)}refresh(){this.markAsDirty()}extend(e){if(typeof e!="function")throw new Error("No source store provided");let r=e();if(!r||!y.instancesBySurface.has(r))throw new Error("Cannot extend non-store");if(r===this.surface)throw new Error("Store cannot extend itself");if(u(this,C,vt).call(this,r))throw new Error("Circular store dependency detected");return this.extensions.add(r),r}},C=new WeakSet,wt=function(e){let r={},s=[];for(let[n,o]of Object.entries(e.getters?.()??{})){let a=me(o,{context:()=>this.surface,framework:this.options.framework});s.push(a),Object.defineProperty(r,n,{get:()=>Y(c.from(a)),enumerable:!0})}for(let[n,o]of Object.entries(e.actions?.()??{}))Object.defineProperty(r,n,{value:o.bind(this.surface),enumerable:!0});return{namespace:Object.freeze(r),getters:s}},bt=function(e,r){let s=[];for(let[n,o]of Object.entries(e.watch?.()??{})){let a=n==="*"?Object.keys(r).filter(b=>D(r[b])):n.split(",").map(b=>b.trim()).filter(Boolean),h=a.filter(b=>!D(r[b]));h.length&&console.warn(`[reactive] Plugin "${e.constructor.name}" watches ${h.map(b=>`"${b}"`).join(", ")}, which the store does not return as reactives.`);let f=a.filter(b=>D(r[b]));if(!f.length)continue;let m=me(()=>Object.fromEntries(f.map(b=>[b,r[b]()]))),p=Ue(m,b=>o.call(e,b));s.push({getter:m,unsubscribe:p})}return s},Oe=function(e){for(let{getter:r,unsubscribe:s}of e.watchers)s(),Ce(r);e.watchers=[]},vt=function(e){let r=new Set,s=[e];for(;s.length;){let n=s.pop();if(r.has(n))continue;r.add(n);let o=y.instancesBySurface.get(n);if(o)for(let a of o.extensions){if(a===this.surface)return!0;s.push(a)}}return!1},St=function(e){return e(r=>this.extend(r),()=>this.destroy())||{}},kt=function(e){let r={},s=this.options.mode==="development"||this.options.mode==="dev";if(e.extend&&Array.isArray(e.extend))for(let n of e.extend)this.extend(n);if(e.state&&typeof e.state=="object")for(let[n,o]of Object.entries(e.state)){let a=u(this,C,Ct).call(this,o,s,n);r[n]=Ee(a,{framework:this.options.framework})}if(e.computed&&typeof e.computed=="object")for(let[n,o]of Object.entries(e.computed))typeof o=="function"&&(r[n]=me(o,{context:()=>this.surface,framework:this.options.framework}));if(e.sources&&typeof e.sources=="object")for(let[n,o]of Object.entries(e.sources)){let{url:a,shape:h=null,params:f=[],...m}=o;if(typeof a!="string")throw new Error(`Invalid source config for "${n}"`);r[n]=Wt(a,h,f,{...m,framework:this.options.framework})}if(e.actions&&typeof e.actions=="object")for(let[n,o]of Object.entries(e.actions))typeof o=="function"&&(r[n]=o);return e.onInit&&typeof e.onInit=="function"&&Promise.resolve().then(()=>{try{e.onInit(this.surface)}catch(n){console.error("Error in onInit callback",n)}}),e.onDestroy&&typeof e.onDestroy=="function"&&(this.destroyCallback=e.onDestroy),r},Ct=function(e,r,s){if(typeof e!="object"||e===null)return typeof e=="function"?e():e;if(!("default"in e))return r&&"dummy"in e&&console.warn(`State "${s}" has dummy value but no default value`),typeof e=="function"?e():e;let n=r&&"dummy"in e?e.dummy:e.default;return typeof n=="function"?n():n},v(y,"type","store"),v(y,"stores",new Map),v(y,"globalPlugins",[]),v(y,"registry",new Map),v(y,"setupStack",[]),v(y,"instancesBySurface",new WeakMap),y),Jt=i=>I.from(i)?.destroy(),vr=i=>I.from(i)?.refresh(),Sr=(i,t)=>{let e=I.from(i);e&&(t&&(e.setup=t),e.refresh())},kr=i=>I.installPlugin(i),Cr=i=>I.from(i)!==null;function Er(i){let t=I.currentlySettingUp;if(!t)throw new Error(`usePlugin("${i}") must be called inside a store setup`);let e=t.plugins.get(i);if(!e)throw new Error(`Plugin "${i}" is not installed on this store`);return e.namespace}function xr(i){return I.inject(i)}function Dr(i,t,e){let r,s,n;if(typeof i=="string"?(r=i,s=t,n=e||{}):(s=i,n=t||{},r=n.id),typeof s!="function"&&!(typeof s=="object"&&s!==null))throw new Error("setupFn must be a function or object configuration");let o,a=m=>{let p=I.currentlySettingUp;p&&p!==m&&!m.dependantIds.has(p.id)&&(m.dependantIds.add(p.id),m.dependants.add(new WeakRef(p)))},h=()=>{if(o&&!o.isDirty)return a(o),o.surface;let m=!o;return o=o||new I(s,n),m&&o.installPlugins(r),m&&(o.bindSurface=()=>f(o.cachedValue)),o.initialize(),o.surface};function f(m){let p=o.surfaceOwner;for(let[E,{namespace:x}]of o.plugins){let k=`$${E}`;if(k in m)throw new Error(`Store setup returned "${k}", which plugin "${E}" owns`);p.value(k,x,{enumerable:!1})}let b=new Set;for(let E of o.extensions){let x=Object.getOwnPropertyDescriptors(E),k=Object.fromEntries(Object.entries(x).filter(([T])=>!T.startsWith("$")));for(let[T,Z]of Object.entries(k))b.add(T),Z.get?p.define(T,{get:Z.get,set:Z.set}):p.value(T,Z.value,{enumerable:Z.enumerable})}for(let E of o.appliedExtensionKeys??[])!b.has(E)&&!(E in m)&&p.remove(E);o.appliedExtensionKeys=b;let Dt=Object.entries(m);for(let[E,x]of Dt){if(Pe(x)){let k=c.system.reactives.get(x);p.define(E,{get:()=>Y(k),set:T=>k._set(T)});continue}if(We(x)){let k=c.system.reactives.get(x);p.define(E,{get:()=>Y(k)});continue}if(Nt(x)){let k=c.system.reactives.get(x);p.define(E,{get:()=>Y(k),set:T=>{k._set(T)}});continue}if(Ge(x)){let k=c.system.reactives.get(x);p.define(E,{get:()=>Y(k)});continue}if(typeof x=="function"){let k=x.bind(o.surface);p.define(E,{get:()=>(o.trackReactive(),k)});continue}p.remove(E),console.warn(`[reactive] Store setup returned "${E}" as ${Ht(x)}, which cannot be bound to a store surface, so it was dropped.`)}o.getter=h,I.register(h,o,r),a(o)}return r&&I.registry.set(r,new WeakRef(h)),h}function Zt(i){return()=>{throw new TypeError(`"${i}" is read-only on this scope`)}}var ve=i=>typeof i=="function"&&!D(i),R,P,$e,Re,Et,xt,M=(R=class{constructor(t={},{framework:e=null,parent:r=null}={}){O(this,P);this.parent=r,this.children=new Set,r?.children.add(this),this.surfaceOwner=new pe(r?.surfaceOwner),this.surface=this.surfaceOwner.surface,this.slots=new Map,this.framework=e,this.shape=Ee(0,{framework:e,wrap:!1}),this.updateListeners=new Set,this.bind=s=>u(this,P,$e).call(this,s),u(this,P,$e).call(this,t),R.instances.set(this.surface,this)}static from(t){return R.instances.get(t)??null}static reactivesOf(t,e){let r=[],s=R.from(t);for(;s&&(r.push(s.shape),!Object.hasOwn(s.surface,e));)s=s.parent;let n=s?.slots.get(e);if(!n)return r;r.push(n);let o=n();return D(o)&&r.push(o),r}static create(t,e){let r=new R(t,e);return[r.surface,r.bind]}onUpdate(t){return this.updateListeners.add(t),()=>this.updateListeners.delete(t)}destroy(){for(let t of[...this.children])t.destroy();this.parent?.children.delete(this);for(let t of this.slots.values())ae(t);this.slots.clear(),ae(this.shape),this.updateListeners.clear(),R.instances.delete(this.surface)}},P=new WeakSet,$e=function(t){let{provided:e}=this.surfaceOwner,r=[],s=[],n=!1;for(let o of this.surfaceOwner.keys())!Object.hasOwn(t,o)&&!e.has(o)&&(u(this,P,Re).call(this,o,s),n=!0);for(let[o,a]of Object.entries(t)){if(ht.has(o)||e.has(o))continue;let h=this.slots.get(o);if(h&&!ve(a)){Vt(h,a)&&r.push(h);continue}let f=this.surfaceOwner.has(o),m=f&&!h;f&&u(this,P,Re).call(this,o,s),ve(a)?u(this,P,Et).call(this,o,a):u(this,P,xt).call(this,o,a),m&&ve(a)||(n=!0)}for(let o of r)ke(o);n&&ke(this.shape);for(let o of s)ae(o);for(let o of this.updateListeners)o(this.surface)},Re=function(t,e){let r=this.slots.get(t);r&&(e.push(r),this.slots.delete(t)),this.surfaceOwner.remove(t)},Et=function(t,e){this.surfaceOwner.action(t,e)},xt=function(t,e){let r=Ee(e,{framework:this.framework,wrap:!1});this.slots.set(t,r);let s=this;this.surfaceOwner.define(t,{get(){for(let o=R.from(this);o&&o!==s;o=o.parent)o.shape();s.shape();let n=r();return D(n)?n():n},set:Zt(t)})},v(R,"type","scope"),v(R,"instances",new WeakMap),R),jr=(i,t)=>M.create(i,t),Ar=(i,t,e={})=>{let r=M.from(i);if(!r)throw new Error("Invalid createChildScope parent");return M.create(t,{framework:r.framework,...e,parent:r})},Qt=i=>M.from(i)?.destroy(),Or=(i,t)=>{let e=M.from(i);if(!e)throw new Error("Invalid onScopeUpdate scope");if(typeof t!="function")throw new Error("Invalid onScopeUpdate listener");return e.onUpdate(t)},$r=i=>M.from(i)!==null;function Xt(i){return(c.from(i)??I.from(i)??M.from(i))?.constructor.type??null}var Yt={[I.type]:Jt,[J.type]:Ft,[H.type]:Tt,[ee.type]:Ce,[te.type]:ae,[M.type]:Qt};function Rr(i){let t=Yt[Xt(i)];return t?(t(i),!0):!1}var ne,Ir=(ne=class extends gt{get storageKey(){return this.options.key??this.store.name??null}get storage(){return this.options.storage??globalThis.localStorage??null}setup(i){if(!this.options.keys.length)return;if(!this.storageKey){console.warn("[reactive] Persist needs a named store or a `key` option; nothing will be saved.");return}let t=this.read();for(let e of this.options.keys)e in t&&Pe(i[e])&&i[e](t[e])}watch(){return!this.options.keys.length||!this.storageKey?{}:{[this.options.keys]:i=>this.schedule(i)}}actions(){return{clear:()=>{this.cancel();try{this.storage?.removeItem(this.storageKey)}catch{}}}}destroy(){this.flush()}read(){try{let i=JSON.parse(this.storage?.getItem(this.storageKey)??"{}");return i&&typeof i=="object"?i:{}}catch{return{}}}write(i){try{this.storage?.setItem(this.storageKey,JSON.stringify(i))}catch{}}schedule(i){if(this.pending=i,!this.options.debounce)return this.flush();clearTimeout(this.timer),this.timer=setTimeout(()=>this.flush(),this.options.debounce)}flush(){if(clearTimeout(this.timer),this.pending===void 0)return;let i=this.pending;this.pending=void 0,this.write(i)}cancel(){clearTimeout(this.timer),this.pending=void 0}},v(ne,"name","persist"),v(ne,"options",{keys:[],key:null,storage:null,debounce:0}),ne);export{c as a,ke as b,D as c,_t as d,Ue as e,er as f,tr as g,rr as h,sr as i,ir as j,nr as k,or as l,ar as m,me as n,Ce as o,We as p,cr as q,hr as r,Ee as s,Vt as t,ae as u,Pe as v,lr as w,ur as x,Tt as y,Ge as z,fr as A,dr as B,pr as C,Me as D,Wt as E,Nt as F,yr as G,Ft as H,mr as I,gr as J,pe as K,wr as L,br as M,gt as N,I as O,Jt as P,vr as Q,Sr as R,kr as S,Cr as T,Er as U,xr as V,Dr as W,M as X,jr as Y,Ar as Z,Qt as _,Or as $,$r as aa,Xt as ba,Rr as ca,Ir as da};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Ot}from"./chunk-FEFZSXXM.js";import{b as bt,e as pe}from"./chunk-5HNN2HVX.js";import{e as ye,f as t,g as u,h as l,i as a}from"./chunk-P722OZCF.js";var w={HELLO:1,WELCOME:2,DENY:3,EVENT:4,REQUEST:5,REPLY:6,ERROR:7,SUBSCRIBE:8,UNSUB:9,PING:10,PONG:11},fr=Object.fromEntries(Object.entries(w).map(([r,i])=>[i,r])),qt=1,p={UNAUTHORIZED:"UNAUTHORIZED",FORBIDDEN:"FORBIDDEN",PROTOCOL_MISMATCH:"PROTOCOL_MISMATCH",HANDSHAKE_TIMEOUT:"HANDSHAKE_TIMEOUT",HANDSHAKE_REQUIRED:"HANDSHAKE_REQUIRED",PAYLOAD_TOO_LARGE:"PAYLOAD_TOO_LARGE",MALFORMED:"MALFORMED",SERVER_ERROR:"SERVER_ERROR"},R={NORMAL:1e3,GOING_AWAY:1001,UNAUTHORIZED:4001,FORBIDDEN:4003,HANDSHAKE_TIMEOUT:4008,PROTOCOL_MISMATCH:4010,PAYLOAD_TOO_LARGE:4009,BACKPRESSURE:4011,HEARTBEAT_TIMEOUT:4012},dr={[p.UNAUTHORIZED]:R.UNAUTHORIZED,[p.FORBIDDEN]:R.FORBIDDEN,[p.PROTOCOL_MISMATCH]:R.PROTOCOL_MISMATCH,[p.HANDSHAKE_TIMEOUT]:R.HANDSHAKE_TIMEOUT,[p.HANDSHAKE_REQUIRED]:R.HANDSHAKE_TIMEOUT,[p.PAYLOAD_TOO_LARGE]:R.PAYLOAD_TOO_LARGE,[p.MALFORMED]:R.PROTOCOL_MISMATCH,[p.SERVER_ERROR]:R.GOING_AWAY},ut=1e6,Gt=new Set(Object.values(w)),Rt=1,ge=typeof Buffer<"u",St=ge?null:new TextEncoder;function Wt(r){return r==null?!1:!!(ge&&Buffer.isBuffer(r)||r instanceof ArrayBuffer||ArrayBuffer.isView(r))}function Vt(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r}function Mt(r){return ge?Buffer.byteLength(r,"utf8"):St.encode(r).length}function Kt(r){return ge?Buffer.from(r.buffer,r.byteOffset,r.byteLength):r}function Jt(r,i="HANDLER_ERROR"){return r==null?{message:"Unknown error",code:i}:typeof r=="string"?{message:r,code:i}:{message:typeof r.message=="string"?r.message:String(r),code:r.code||i}}function Zt(r){if(r instanceof Error)return r;let i=r?.message??r?.reason??(typeof r=="string"?r:"Unknown error"),e=new Error(i);return r?.code&&(e.code=r.code),e}function Le(r,i=null,e=null,s=null,n=null,{maxBytes:o=ut}={}){let h=[r,i,e,s,n];for(;h.length>1&&(h[h.length-1]===null||h[h.length-1]===void 0);)h.pop();let c=[];if(Array.isArray(s))for(let f=0;f<s.length;f++)Wt(s[f])&&c.push(f);return c.length===0?Qt(h,o):Xt(h,s,c,o)}function Qt(r,i){let e;try{e=JSON.stringify(r)}catch(n){let o=new Error(`Frame payload is not JSON-serializable: ${n.message}`);throw o.code="NOT_SERIALIZABLE",o}if(e===void 0){let n=new Error("Frame payload is not JSON-serializable");throw n.code="NOT_SERIALIZABLE",n}let s=Mt(e);if(s>i){let n=new Error(`Frame of ${s} bytes exceeds the ${i} byte limit`);throw n.code=p.PAYLOAD_TOO_LARGE,n}return e}function Xt(r,i,e,s){let n=[],o=i.slice();for(let M=0;M<e.length;M++){let Ae=e[M],wt=Vt(i[Ae]);n.push(wt),o[Ae]={__bin:M,byteLength:wt.byteLength}}let h=r.slice();h[3]=o;let c;try{c=JSON.stringify(h)}catch(M){let Ae=new Error(`Frame payload is not JSON-serializable: ${M.message}`);throw Ae.code="NOT_SERIALIZABLE",Ae}let f=ge?Buffer.from(c,"utf8"):St.encode(c),y=0;for(let M of n)y+=M.byteLength;let b=5+f.byteLength+y;if(b>s){let M=new Error(`Frame of ${b} bytes exceeds the ${s} byte limit`);throw M.code=p.PAYLOAD_TOO_LARGE,M}let g=new Uint8Array(b),me=new DataView(g.buffer);g[0]=Rt,me.setUint32(1,f.byteLength,!1),g.set(f,5);let Ze=5+f.byteLength;for(let M of n)g.set(M,Ze),Ze+=M.byteLength;return g}function er(r,{maxBytes:i=ut}={}){return r==null?{ok:!1,code:p.MALFORMED,reason:"Empty frame"}:(typeof r=="string"?r.charCodeAt(0):r instanceof ArrayBuffer?new Uint8Array(r,0,1)[0]:r[0]??void 0)===Rt?rr(r,i):tr(r,i)}function tr(r,i){let e=r;if(typeof e!="string")try{e=e.toString("utf8")}catch{return{ok:!1,code:p.MALFORMED,reason:"Frame is not decodable text"}}let s=Mt(e);if(s>i)return{ok:!1,code:p.PAYLOAD_TOO_LARGE,reason:`Frame of ${s} bytes exceeds the ${i} byte limit`};let n;try{n=JSON.parse(e)}catch{return{ok:!1,code:p.MALFORMED,reason:"Frame is not valid JSON"}}return Dt(n)}function rr(r,i){let e;if(r instanceof Uint8Array)e=r;else if(r instanceof ArrayBuffer)e=new Uint8Array(r);else if(ge&&Buffer.isBuffer(r))e=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);else return{ok:!1,code:p.MALFORMED,reason:"Binary frame is not a byte source"};let s=e.byteLength;if(s>i)return{ok:!1,code:p.PAYLOAD_TOO_LARGE,reason:`Frame of ${s} bytes exceeds the ${i} byte limit`};if(s<5)return{ok:!1,code:p.MALFORMED,reason:"Binary frame too short"};let n=new DataView(e.buffer,e.byteOffset,e.byteLength).getUint32(1,!1);if(5+n>s)return{ok:!1,code:p.MALFORMED,reason:"Binary frame header length exceeds frame size"};let o;try{let f=new TextDecoder().decode(e.subarray(5,5+n));o=JSON.parse(f)}catch{return{ok:!1,code:p.MALFORMED,reason:"Binary frame header is not valid JSON"}}let h=Dt(o);if(!h.ok)return h;let c=h.frame.payload;if(Array.isArray(c)){let f=5+n;for(let y=0;y<c.length;y++){let b=c[y];if(b&&typeof b=="object"&&"__bin"in b){let g=b.byteLength;if(f+g>s)return{ok:!1,code:p.MALFORMED,reason:"Binary chunk extends past frame boundary"};c[y]=Kt(e.slice(f,f+g)),f+=g}}}return h}function Dt(r){if(!Array.isArray(r)||r.length===0)return{ok:!1,code:p.MALFORMED,reason:"Frame must be a non-empty array"};let[i,e=null,s=null,n=null,o=null]=r;return Gt.has(i)?e!==null&&typeof e!="string"?{ok:!1,code:p.MALFORMED,reason:"Frame id must be a string or null"}:s!==null&&typeof s!="string"?{ok:!1,code:p.MALFORMED,reason:"Frame event must be a string or null"}:{ok:!0,frame:{type:i,id:e,event:s,payload:n,meta:o}}:{ok:!1,code:p.MALFORMED,reason:`Unknown frame type: ${JSON.stringify(i)}`}}function ir(){let r=globalThis.crypto;if(r&&typeof r.randomUUID=="function")return r.randomUUID();if(r&&typeof r.getRandomValues=="function"){let i=r.getRandomValues(new Uint8Array(16));i[6]=i[6]&15|64,i[8]=i[8]&63|128;let e=[...i].map(s=>s.toString(16).padStart(2,"0")).join("");return`${e.slice(0,8)}-${e.slice(8,12)}-${e.slice(12,16)}-${e.slice(16,20)}-${e.slice(20)}`}return`id-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}var gt=1,sr=0,nr=new Set([w.REPLY,w.ERROR,w.WELCOME,w.DENY]),D,I,Me,De,$,Te,_,Ee,T,se,O,ie,ot,Tt,Bt,Qe,At,or=(At=class{constructor(r,{timeoutMs:i=1e3,maxBytes:e=ut,maxBufferedBytes:s=4e6}={}){u(this,O);u(this,D);u(this,I,new Map);u(this,Me,null);u(this,De,null);u(this,$,null);u(this,Te);u(this,_);u(this,Ee);u(this,T,!1);u(this,se,[]);l(this,D,r),l(this,Te,i),l(this,_,e),l(this,Ee,s)}get closed(){return t(this,T)}get socket(){return t(this,D)}get bufferedAmount(){return t(this,D)?.bufferedAmount??0}get maxBytes(){return t(this,_)}attach(){let r=t(this,D);return r?(typeof r.binaryType=="string"&&(r.binaryType="arraybuffer"),r.onmessage=i=>a(this,O,Tt).call(this,i?.data??i),r.onclose=i=>a(this,O,Qe).call(this,i?.code??R.NORMAL,i?.reason??""),r.onerror=i=>{var s;let e=i instanceof Error?i:new Error(i?.message||"Socket error");(s=t(this,$))==null||s.call(this,e)},r.onopen=()=>a(this,O,ot).call(this),r.readyState===gt&&a(this,O,ot).call(this),this):this}onFrame(r){return l(this,Me,r),this}onClose(r){return l(this,De,r),this}onError(r){return l(this,$,r),this}send(r,i=null,e=null,s=null){var o;if(t(this,T))return!1;let n;try{n=Le(r,null,i,e,s,{maxBytes:t(this,_)})}catch(h){return(o=t(this,$))==null||o.call(this,h),!1}return a(this,O,ie).call(this,n)}request(r,i=null,e=null,s=null,n=t(this,Te)){if(t(this,T))return Promise.reject(new Error("Connection is closed"));let o=ir(),h;try{h=Le(r,o,i,e,s,{maxBytes:t(this,_)})}catch(c){return Promise.reject(c)}return new Promise((c,f)=>{let y=setTimeout(()=>{t(this,I).delete(o);let b=new Error(`Request "${i}" timed out after ${n}ms`);b.code="TIMEOUT",f(b)},n);t(this,I).set(o,{resolve:c,reject:f,timer:y}),a(this,O,ie).call(this,h)||(clearTimeout(y),t(this,I).delete(o),f(new Error(`Failed to send request "${i}"`)))})}reply(r,i){if(!r||t(this,T))return!1;let e;try{e=Le(w.REPLY,r,null,i??null,null,{maxBytes:t(this,_)})}catch(s){return this.replyError(r,s)}return a(this,O,ie).call(this,e)}replyWith(r,i,e){var n;if(t(this,T))return!1;let s;try{s=Le(r,i??null,null,e??null,null,{maxBytes:t(this,_)})}catch(o){return(n=t(this,$))==null||n.call(this,o),!1}return a(this,O,ie).call(this,s)}replyError(r,i,e){if(!r||t(this,T))return!1;let s;try{s=Le(w.ERROR,r,null,Jt(i,e),null,{maxBytes:t(this,_)})}catch{return!1}return a(this,O,ie).call(this,s)}close(r=R.NORMAL,i=""){if(!t(this,T)){try{t(this,D)?.close(r,i)}catch{}a(this,O,Qe).call(this,r,i)}}terminate(r=R.GOING_AWAY,i=""){if(typeof t(this,D)?.terminate=="function"){try{t(this,D).terminate()}catch{}a(this,O,Qe).call(this,r,i);return}this.close(r,i)}},D=new WeakMap,I=new WeakMap,Me=new WeakMap,De=new WeakMap,$=new WeakMap,Te=new WeakMap,_=new WeakMap,Ee=new WeakMap,T=new WeakMap,se=new WeakMap,O=new WeakSet,ie=function(r){var e,s;let i=t(this,D);if(!i)return!1;if(i.readyState===sr)return t(this,se).push(r),!0;if(i.readyState!==gt)return!1;if(this.bufferedAmount>t(this,Ee))return(e=t(this,$))==null||e.call(this,new Error(`Send buffer exceeded ${t(this,Ee)} bytes`)),this.close(R.BACKPRESSURE,"Send buffer exceeded"),!1;try{return i.send(r),!0}catch(n){return(s=t(this,$))==null||s.call(this,n),!1}},ot=function(){if(!t(this,se).length)return;let r=t(this,se).splice(0);for(let i of r)a(this,O,ie).call(this,i)},Tt=function(r){var s,n;let i=er(r,{maxBytes:t(this,_)});if(!i.ok){(s=t(this,$))==null||s.call(this,Object.assign(new Error(i.reason),{code:i.code,malformed:!0}));return}let e=i.frame;if(nr.has(e.type)&&e.id&&t(this,I).has(e.id)){a(this,O,Bt).call(this,e);return}(n=t(this,Me))==null||n.call(this,e)},Bt=function(r){let i=t(this,I).get(r.id);if(i){if(clearTimeout(i.timer),t(this,I).delete(r.id),r.type===w.ERROR||r.type===w.DENY){i.reject(Zt(r.payload));return}i.resolve(r.payload)}},Qe=function(r,i){var s;if(t(this,T))return;l(this,T,!0);let e=t(this,D);e&&(e.onmessage=null,e.onclose=null,e.onerror=null,e.onopen=null);for(let[,n]of t(this,I))clearTimeout(n.timer),n.reject(new Error(`Connection closed (${r}${i?`: ${i}`:""})`));t(this,I).clear(),l(this,se,[]),(s=t(this,De))==null||s.call(this,{code:r,reason:i})},At),L,ne,Be,B,oe,we,Ie,at,Lt,ar=(Lt=class{constructor({inject:r=()=>{},onSubscribe:i=null,onUnsubscribe:e=null}={}){u(this,Ie);u(this,L,new Map);u(this,ne,[]);u(this,Be);u(this,B,!1);u(this,oe,null);u(this,we,null);l(this,Be,r),l(this,oe,i),l(this,we,e)}get live(){return t(this,B)}get size(){return t(this,L).size}setLive(r){var i;if(!r)return l(this,B,!1),this;if(t(this,ne).length){let e=t(this,ne).splice(0);for(let{namespace:s,factory:n}of e)a(this,Ie,at).call(this,s,n)}l(this,B,!0);for(let[e,s]of this.entries())(i=t(this,oe))==null||i.call(this,e,s);return this}use(r,...i){for(let e of i.flat()){if(typeof e!="function")throw new Error("use() expects contract factories created with defineContracts");t(this,B)?a(this,Ie,at).call(this,r,e):t(this,ne).push({namespace:r,factory:e})}return this}add(r,{schema:i,subscriber:e,once:s=!1,timeoutMs:n}={}){var h;if(typeof e!="function")throw new Error(`Subscriber for "${r}" must be a function`);t(this,L).has(r)||t(this,L).set(r,new Set);let o={event:r,schema:i,subscriber:e,once:s,timeoutMs:n};return t(this,L).get(r).add(o),t(this,B)&&((h=t(this,oe))==null||h.call(this,r,this.timeoutFor(r))),()=>this.remove(r,e)}remove(r,i){var n,o;let e=t(this,L).get(r);if(!e)return!1;let s=!1;for(let h of e)h.subscriber===i&&(e.delete(h),s=!0);return e.size===0?(t(this,L).delete(r),t(this,B)&&((n=t(this,we))==null||n.call(this,r))):s&&t(this,B)&&((o=t(this,oe))==null||o.call(this,r,this.timeoutFor(r))),s}has(r){return t(this,L).has(r)}timeoutFor(r){let i;for(let e of t(this,L).get(r)??[])e.timeoutMs!==void 0&&(i===void 0||e.timeoutMs>i)&&(i=e.timeoutMs);return i}entries(){return[...t(this,L).keys()].map(r=>[r,this.timeoutFor(r)])}events(){return[...t(this,L).keys()]}clear(){return t(this,L).clear(),l(this,ne,[]),l(this,B,!1),this}async dispatch(r,i=[],e=void 0){var c;let s=t(this,L).get(r);if(!s||s.size===0)return{handled:!1,result:null};let n=Array.isArray(i)?i:[i],o=!1,h;for(let f of[...s]){if(!lr(r,n,f.schema))continue;o=!0,f.once&&s.delete(f);let y=await f.subscriber(...n,e);h===void 0&&y!==void 0&&(h=y)}return s.size===0&&(t(this,L).delete(r),t(this,B)&&((c=t(this,we))==null||c.call(this,r))),{handled:o,result:h??null}}},L=new WeakMap,ne=new WeakMap,Be=new WeakMap,B=new WeakMap,oe=new WeakMap,we=new WeakMap,Ie=new WeakSet,at=function(r,i){let e=i._name,s=i(t(this,Be));if(!s||typeof s!="object")throw new Error(`Contract factory "${e??"anonymous"}" must return an object`);for(let[n,o]of Object.entries(s)){let{handler:h,schema:c,namespace:f,once:y,timeoutMs:b}=o??{};if(typeof h!="function")throw new Error(`Contract "${e?`${e}:`:""}${n}" is missing a handler function`);let g=[r,f].filter(Boolean).join("/"),me=e?`${e}:${n}`:n,Ze=g?`${g}/${me}`:me;this.add(Ze,{schema:c,subscriber:h,once:y,timeoutMs:b})}},Lt);function lr(r,i,e){if(e==null||e==="*"||!Array.isArray(e)||e.length===1&&e[0]==="*"||i===void 0)return!0;if(e.length!==i.length)return console.warn(`[socket] "${r}" arity mismatch \u2014 expected ${e.length} argument(s) [${e.join(", ")}], received ${i.length} [${i.map(vt).join(", ")}]`),!1;for(let s=0;s<e.length;s++){let n=e[s];if(n==="*")continue;let o=vt(i[s]);if(n!==o)return console.warn(`[socket] "${r}" argument ${s} type mismatch \u2014 expected ${n}, received ${o}`),!1}return!0}function vt(r){return Array.isArray(r)?"Array":r===null?"null":Object.prototype.toString.call(r).slice(8,-1)}function hr({baseDelay:r=500,maxDelay:i=1e4,jitter:e=.2,maxRetries:s=1/0}={}){let n=0;return{get attempt(){return n},reset(){n=0},next(){if(n>=s)return null;let o=Math.min(r*2**n,i);return n+=1,Math.round(o+o*e*Math.random())}}}var rt=bt("socketContracts",[Object]),st=4e3,E,v,W,V,k,x,K,ae,le,J,F,he,be,Oe,Z,Q,H,nt,d,Xe,It,lt,et,_t,Re,Nt,ht,Se,q,tt,G,pr=(nt=class extends pe{constructor(){super(...arguments);u(this,d);u(this,E,null);u(this,v,null);u(this,W,null);u(this,V,null);u(this,k,null);u(this,x,!1);u(this,K,!1);u(this,ae,!1);u(this,le,null);u(this,J,null);u(this,F,null);u(this,he,0);u(this,be,3e4);u(this,Oe,1e3);u(this,Z,new Map);u(this,Q,null);u(this,H,{connect:new Set,disconnect:new Set,error:new Set})}initialize(i,e={}){l(this,Oe,e.timeout??1e3),l(this,W,e.url??null),l(this,V,e.auth??null),l(this,v,new ar({inject:this.inject,onSubscribe:(s,n)=>t(this,E)?.send(w.SUBSCRIBE,s,n??null),onUnsubscribe:s=>t(this,E)?.send(w.UNSUB,s)})),e.subscriptions?.length&&t(this,v).use(null,...e.subscriptions),t(this,W)&&Promise.resolve(a(this,d,Xe).call(this)).catch(s=>a(this,d,G).call(this,s))}actions(i,e={}){let s={connect:async(n=null,o={})=>{if(a(this,d,et).call(this),l(this,ae,!1),n&&l(this,W,n),o.auth!==void 0&&l(this,V,o.auth),!t(this,W))throw new Error("A URL is required to connect");return await a(this,d,Xe).call(this),s},disconnect:()=>(l(this,ae,!0),a(this,d,et).call(this),a(this,d,Re).call(this),t(this,v).setLive(!1),t(this,E)?.close(st,"Client disconnected"),l(this,E,null),l(this,x,!1),l(this,k,null),t(this,Z).clear(),s),ready:()=>t(this,x),id:()=>t(this,k),use:(...n)=>(t(this,v).use(null,...n),s),publish:(n,...o)=>(a(this,d,Se).call(this,n,o,null),s),request:(n,...o)=>a(this,d,q).call(this,n,o,null),gather:(n,...o)=>a(this,d,q).call(this,n,o,{gather:!0}),subscribe:(n,o)=>t(this,v).add(n,{subscriber:o}),subscribeOnce:(n,o)=>t(this,v).add(n,{subscriber:o,once:!0}),unsubscribe:(n,o)=>t(this,v).remove(n,o),to:(...n)=>{let o=n.flat();return{publish:(h,...c)=>(a(this,d,Se).call(this,h,c,{to:o}),s),request:(h,...c)=>a(this,d,q).call(this,h,c,{to:o}),gather:(h,...c)=>a(this,d,q).call(this,h,c,{to:o,gather:!0})}},namespace:n=>{let o=h=>n?`${n}/${h}`:h;return{use:(...h)=>(t(this,v).use(n,...h),s),publish:(h,...c)=>(a(this,d,Se).call(this,o(h),c,null),s),request:(h,...c)=>a(this,d,q).call(this,o(h),c,null),gather:(h,...c)=>a(this,d,q).call(this,o(h),c,{gather:!0}),subscribe:(h,c)=>t(this,v).add(o(h),{subscriber:c}),subscribeOnce:(h,c)=>t(this,v).add(o(h),{subscriber:c,once:!0}),unsubscribe:(h,c)=>t(this,v).remove(o(h),c)}},onConnect:n=>a(this,d,tt).call(this,"connect",n),onDisconnect:n=>a(this,d,tt).call(this,"disconnect",n),onError:n=>a(this,d,tt).call(this,"error",n)};return l(this,Q,s),s}uninstall(){l(this,ae,!0),a(this,d,et).call(this),a(this,d,Re).call(this),t(this,E)?.close(st,"Service uninstalled"),l(this,E,null),t(this,v)?.clear()}},E=new WeakMap,v=new WeakMap,W=new WeakMap,V=new WeakMap,k=new WeakMap,x=new WeakMap,K=new WeakMap,ae=new WeakMap,le=new WeakMap,J=new WeakMap,F=new WeakMap,he=new WeakMap,be=new WeakMap,Oe=new WeakMap,Z=new WeakMap,Q=new WeakMap,H=new WeakMap,d=new WeakSet,Xe=async function(){let i=this.config;t(this,E)&&!t(this,E).closed&&t(this,E).close(st,"Reconnecting");let e=globalThis.WebSocket;if(typeof e!="function")throw new Error("No global WebSocket available in this environment");let s=new e(t(this,W)),n=new or(s,{timeoutMs:t(this,Oe),maxBytes:i.maxPayloadBytes??1e6});l(this,E,n),n.onFrame(c=>a(this,d,Nt).call(this,n,c)),n.onError(c=>a(this,d,G).call(this,c)),n.onClose(({code:c,reason:f})=>a(this,d,It).call(this,n,c,f)),n.attach();let o=typeof t(this,V)=="function"?await t(this,V).call(this):t(this,V),h=await n.request(w.HELLO,null,{version:qt,auth:o??null},null,i.handshakeTimeoutMs??1e4);if(t(this,E)===n){l(this,k,h?.id??null),l(this,be,h?.heartbeatMs??3e4),l(this,x,!0),t(this,le)?.reset(),t(this,v).setLive(!0),a(this,d,_t).call(this);for(let c of t(this,H).connect)try{c(t(this,Q),{id:t(this,k)})}catch(f){a(this,d,G).call(this,f)}return t(this,Q)}},It=function(i,e,s){if(t(this,E)!==i)return;a(this,d,Re).call(this),l(this,x,!1),l(this,k,null),t(this,Z).clear(),t(this,v).setLive(!1);for(let o of t(this,H).disconnect)try{o({code:e,reason:s},t(this,Q))}catch(h){a(this,d,G).call(this,h)}let n=e===R.UNAUTHORIZED||e===R.FORBIDDEN||e===R.PROTOCOL_MISMATCH;t(this,ae)||n||a(this,d,lt).call(this)},lt=function(){let i=this.config.reconnect??{};if(i.enabled===!1||t(this,K))return;t(this,le)??l(this,le,hr(i));let e=t(this,le).next();if(e===null){a(this,d,G).call(this,new Error("Reconnect attempts exhausted"));return}l(this,K,!0),l(this,J,setTimeout(async()=>{l(this,J,null);try{await a(this,d,Xe).call(this)}catch(s){a(this,d,G).call(this,s),l(this,K,!1),a(this,d,lt).call(this);return}l(this,K,!1)},e))},et=function(){t(this,J)&&clearTimeout(t(this,J)),l(this,J,null),l(this,K,!1),t(this,le)?.reset()},_t=function(){a(this,d,Re).call(this),t(this,be)&&(l(this,he,0),l(this,F,setInterval(()=>{if(!(!t(this,E)||t(this,E).closed)){if(t(this,he)>=2){t(this,E).terminate(R.HEARTBEAT_TIMEOUT,"Server stopped responding");return}l(this,he,t(this,he)+1),t(this,E).send(w.PING)}},t(this,be))),typeof t(this,F).unref=="function"&&t(this,F).unref())},Re=function(){t(this,F)&&clearInterval(t(this,F)),l(this,F,null)},Nt=async function(i,e){switch(e.type){case w.PING:i.send(w.PONG);return;case w.PONG:l(this,he,0);return;case w.SUBSCRIBE:e.payload==null?t(this,Z).delete(e.event):t(this,Z).set(e.event,e.payload);return;case w.DENY:a(this,d,G).call(this,Object.assign(new Error(e.payload?.reason||"Connection denied"),{code:e.payload?.code}));return;case w.EVENT:await t(this,v).dispatch(e.event,e.payload??[],a(this,d,ht).call(this,e));return;case w.REQUEST:{try{let{handled:s,result:n}=await t(this,v).dispatch(e.event,e.payload??[],a(this,d,ht).call(this,e));if(!s){i.replyError(e.id,new Error(`No handler for "${e.event}"`),"NO_HANDLER");return}i.reply(e.id,n)}catch(s){i.replyError(e.id,s)}return}default:return}},ht=function(i){return{id:t(this,k),from:i.meta?.from??null,identity:null,actions:t(this,Q),publish:(e,...s)=>a(this,d,Se).call(this,e,s,null),request:(e,...s)=>a(this,d,q).call(this,e,s,null)}},Se=function(i,e,s){return!t(this,E)||!t(this,x)?(console.warn(`[socket] publish "${i}" dropped \u2014 not connected`),!1):t(this,E).send(w.EVENT,i,e,s)},q=function(i,e,s){return!t(this,E)||!t(this,x)?Promise.reject(new Error(`Not connected \u2014 request "${i}" dropped`)):t(this,E).request(w.REQUEST,i,e,s,t(this,Z).get(i)??t(this,Oe))},tt=function(i,e){if(typeof e!="function")throw new Error("Listener must be a function");return t(this,H)[i].add(e),()=>t(this,H)[i].delete(e)},G=function(i){if(t(this,H).error.size===0){console.error("[socket] client error:",i?.message??i);return}for(let e of t(this,H).error)try{e(i)}catch{}},ye(nt,"manifest",{name:"socket-client",namespace:"socket",version:"2.0.0",description:"Contract-driven WebSocket client",defaults:{url:null,auth:null,timeout:1e3,handshakeTimeoutMs:1e4,subscriptions:[],maxPayloadBytes:1e6,reconnect:{enabled:!0,maxRetries:1/0,baseDelay:500,maxDelay:1e4,jitter:.2}}}),nt);var U,C,X,ue,ce,j,_e,N,Ne,fe,de,$e,Ue,Ce,m,$t,ct,S,Ut,Pe,ke,xe,Fe,He,je,ze,ee,Ye,qe,Ge,We,Ct,Pt,ft,it=class extends pe{constructor(){super(...arguments);u(this,m);u(this,U,new Map);u(this,C,!0);u(this,X,!0);u(this,ue,!1);u(this,ce,typeof navigator<"u"&&navigator.onLine!==void 0?navigator.onLine:!0);u(this,j,!1);u(this,_e,!1);u(this,N,Date.now());u(this,Ne,Date.now());u(this,fe,null);u(this,de,null);u(this,$e,6e4);u(this,Ue,["mousemove","mousedown","keydown","touchstart","scroll"]);u(this,Ce,null);u(this,Pe,()=>{let e=t(this,C);l(this,C,!document.hidden),t(this,C)&&!e?(l(this,N,Date.now()),a(this,m,S).call(this,"visible")):!t(this,C)&&e&&a(this,m,S).call(this,"hidden")});u(this,ke,()=>{l(this,X,!0),l(this,N,Date.now()),a(this,m,S).call(this,"focus")});u(this,xe,()=>{l(this,X,!1),a(this,m,S).call(this,"blur")});u(this,Fe,()=>{l(this,ue,!0),a(this,m,S).call(this,"suspend",{reason:"freeze"})});u(this,He,()=>{l(this,ue,!1),l(this,N,Date.now()),a(this,m,S).call(this,"resume",{reason:"freeze"})});u(this,je,e=>{e.persisted&&(l(this,N,Date.now()),a(this,m,S).call(this,"resume",{reason:"bfcache"}))});u(this,ze,e=>{e.persisted&&a(this,m,S).call(this,"suspend",{reason:"bfcache"})});u(this,ee,()=>{t(this,_e)||(l(this,_e,!0),a(this,m,S).call(this,"beforeclose"))});u(this,Ye,e=>{e.persisted||t(this,ee).call(this)});u(this,qe,()=>{l(this,ce,!0),a(this,m,S).call(this,"online")});u(this,Ge,()=>{l(this,ce,!1),a(this,m,S).call(this,"offline")});u(this,We,()=>{l(this,Ne,Date.now()),t(this,j)&&(l(this,j,!1),a(this,m,S).call(this,"active"))})}initialize(){typeof document<"u"&&(l(this,C,!document.hidden),l(this,X,document.hasFocus())),l(this,N,Date.now())}getters(){return{visible:()=>t(this,C),focused:()=>t(this,X),frozen:()=>t(this,ue),online:()=>t(this,ce),idle:()=>t(this,j)}}actions(e,s){return l(this,Ce,s||{}),a(this,m,Ut).call(this,t(this,Ce)),{on:(n,o)=>a(this,m,$t).call(this,n,o),off:(n,o)=>a(this,m,ct).call(this,n,o),isVisible:()=>t(this,C),isFocused:()=>t(this,X),isFrozen:()=>t(this,ue),isOnline:()=>t(this,ce),isIdle:()=>t(this,j),lastActiveTimestamp:()=>t(this,N),destroy:()=>a(this,m,ft).call(this)}}destroy(){a(this,m,ft).call(this)}};U=new WeakMap,C=new WeakMap,X=new WeakMap,ue=new WeakMap,ce=new WeakMap,j=new WeakMap,_e=new WeakMap,N=new WeakMap,Ne=new WeakMap,fe=new WeakMap,de=new WeakMap,$e=new WeakMap,Ue=new WeakMap,Ce=new WeakMap,m=new WeakSet,$t=function(e,s){return t(this,U).has(e)||t(this,U).set(e,new Set),t(this,U).get(e).add(s),()=>a(this,m,ct).call(this,e,s)},ct=function(e,s){let n=t(this,U).get(e);n&&(n.delete(s),n.size===0&&t(this,U).delete(e))},S=function(e,s){let n=t(this,U).get(e);if(n)for(let o of n)o(s)},Ut=function(e){if(typeof document<"u"&&(e.visibility!==!1&&document.addEventListener("visibilitychange",t(this,Pe)),e.freeze!==!1&&(document.addEventListener("freeze",t(this,Fe)),document.addEventListener("resume",t(this,He)))),typeof window<"u"&&(e.focus&&(window.addEventListener("focus",t(this,ke)),window.addEventListener("blur",t(this,xe))),e.freeze!==!1&&(window.addEventListener("pageshow",t(this,je)),window.addEventListener("pagehide",t(this,ze))),e.close!==!1&&(window.addEventListener("beforeunload",t(this,ee)),window.addEventListener("pagehide",t(this,Ye)),window.addEventListener("unload",t(this,ee))),e.network&&(window.addEventListener("online",t(this,qe)),window.addEventListener("offline",t(this,Ge)))),e.sleepDetection?.enabled!==!1){let s=e.sleepDetection?.threshold||1e4;a(this,m,Pt).call(this,s)}e.idle?.enabled&&a(this,m,Ct).call(this,e.idle.threshold||6e4)},Pe=new WeakMap,ke=new WeakMap,xe=new WeakMap,Fe=new WeakMap,He=new WeakMap,je=new WeakMap,ze=new WeakMap,ee=new WeakMap,Ye=new WeakMap,qe=new WeakMap,Ge=new WeakMap,We=new WeakMap,Ct=function(e){if(l(this,$e,e),typeof document<"u")for(let n of t(this,Ue))document.addEventListener(n,t(this,We),{passive:!0,capture:!0});let s=Math.min(e/2,5e3);l(this,de,setInterval(()=>{if(t(this,j))return;Date.now()-t(this,Ne)>=t(this,$e)&&(l(this,j,!0),a(this,m,S).call(this,"idle"))},s))},Pt=function(e){let s=Math.min(e/2,5e3);l(this,fe,setInterval(()=>{let n=Date.now(),o=n-t(this,N);o>e&&(a(this,m,S).call(this,"suspend",{reason:"sleep",gap:o}),a(this,m,S).call(this,"resume",{reason:"sleep",gap:o})),l(this,N,n)},s))},ft=function(){if(typeof document<"u"){document.removeEventListener("visibilitychange",t(this,Pe)),document.removeEventListener("freeze",t(this,Fe)),document.removeEventListener("resume",t(this,He));for(let e of t(this,Ue))document.removeEventListener(e,t(this,We),{capture:!0})}typeof window<"u"&&(window.removeEventListener("focus",t(this,ke)),window.removeEventListener("blur",t(this,xe)),window.removeEventListener("pageshow",t(this,je)),window.removeEventListener("pagehide",t(this,ze)),window.removeEventListener("beforeunload",t(this,ee)),window.removeEventListener("pagehide",t(this,Ye)),window.removeEventListener("unload",t(this,ee)),window.removeEventListener("online",t(this,qe)),window.removeEventListener("offline",t(this,Ge))),t(this,fe)&&(clearInterval(t(this,fe)),l(this,fe,null)),t(this,de)&&(clearInterval(t(this,de)),l(this,de,null)),t(this,U).clear()},ye(it,"manifest",{name:"PageLifecycle",namespace:"pageLifecycle",version:"1.0.0",description:"Browser lifecycle detection for tab visibility, focus, and sleep/wake"});function kt(r){return r instanceof ArrayBuffer||r instanceof MessagePort||typeof ImageBitmap<"u"&&r instanceof ImageBitmap||typeof OffscreenCanvas<"u"&&r instanceof OffscreenCanvas||typeof ReadableStream<"u"&&r instanceof ReadableStream||typeof WritableStream<"u"&&r instanceof WritableStream||typeof TransformStream<"u"&&r instanceof TransformStream}function Ft(r){return kt(r)?[r]:Array.isArray(r)?r.filter(kt):[]}var mt="__wc",Ve,ve,Ke,xt,ur=(xt=class{constructor(r,i,e="*"){u(this,Ve);u(this,ve);u(this,Ke);if(!i||typeof i.postMessage!="function")throw new Error(`Window "${r}" target must have postMessage`);l(this,Ve,r),l(this,ve,i),l(this,Ke,e)}get name(){return t(this,Ve)}get target(){return t(this,ve)}post(r,i,e,s){let n={[mt]:!0,type:r,topic:i,payload:e};s&&(n.rid=s);let o=Ft(e);t(this,ve).postMessage(n,t(this,Ke),o.length?o:void 0)}},Ve=new WeakMap,ve=new WeakMap,Ke=new WeakMap,xt),P,z,Y,te,re,Je,dt,A,Ht,yt,jt,zt,pt,Et,Tr=(dt=class extends pe{constructor(){super(...arguments);u(this,A);u(this,P,new Map);u(this,z,new Map);u(this,Y,new Map);u(this,te,null);u(this,re,null);u(this,Je,1e3)}initialize(i,e){l(this,Je,e.timeout??1e3);let s=e.host??globalThis.window;s?.addEventListener&&a(this,A,Ht).call(this,s)}actions(){let i={register:(e,s,n)=>{let o=new ur(e,s,n);return t(this,P).set(e,o),i},unregister:e=>(t(this,P).delete(e),i),to:e=>{let s=t(this,P).get(e);if(!s)throw new Error(`WindowBridge: no target registered as "${e}"`);return{publish:(n,...o)=>{s.post("pub",n,o)},request:(n,...o)=>a(this,A,Et).call(this,n,o,[s])}},publish:(e,...s)=>{for(let n of t(this,P).values())n.post("pub",e,s)},request:(e,...s)=>{let n=[...t(this,P).values()];return n.length===0?Promise.reject(new Error(`WindowBridge: no targets registered \u2014 request "${e}" dropped`)):a(this,A,Et).call(this,e,s,n)},subscribe:(e,s)=>a(this,A,pt).call(this,e,s,!1),subscribeOnce:(e,s)=>a(this,A,pt).call(this,e,s,!0),destroy:()=>{a(this,A,yt).call(this),t(this,P).clear(),t(this,z).clear();for(let e of t(this,Y).values())clearTimeout(e.timer),e.reject(new Error("WindowBridge destroyed"));t(this,Y).clear()}};return i}},P=new WeakMap,z=new WeakMap,Y=new WeakMap,te=new WeakMap,re=new WeakMap,Je=new WeakMap,A=new WeakSet,Ht=function(i){a(this,A,yt).call(this),l(this,te,i),l(this,re,e=>a(this,A,zt).call(this,e)),t(this,te).addEventListener("message",t(this,re))},yt=function(){t(this,te)&&t(this,re)&&t(this,te).removeEventListener("message",t(this,re)),l(this,te,null),l(this,re,null)},jt=function(i){if(!i)return!1;for(let e of t(this,P).values())if(e.target===i)return!0;return!1},zt=function(i){let e=i.data;if(!e||e[mt]!==!0||!a(this,A,jt).call(this,i.source))return;let{type:s,topic:n,payload:o,rid:h}=e;if(s==="res"){let f=t(this,Y).get(h);f&&(t(this,Y).delete(h),clearTimeout(f.timer),f.resolve(o));return}let c=t(this,z).get(n);if(!(!c||c.size===0))for(let f of c){let y=f.handler(...Array.isArray(o)?o:[]);s==="req"&&h&&i.source&&Promise.resolve(y).then(b=>{let g=Ft(b),me={[mt]:!0,type:"res",rid:h,payload:b};try{i.source.postMessage(me,i.origin||"*",g.length?g:void 0)}catch{}}),f.once&&c.delete(f)}},pt=function(i,e,s){if(typeof e!="function")throw new Error("Handler must be a function");t(this,z).has(i)||t(this,z).set(i,new Set);let n={handler:e,once:s};return t(this,z).get(i).add(n),()=>t(this,z).get(i)?.delete(n)},Et=function(i,e,s){return new Promise((n,o)=>{let h=Ot(),c=setTimeout(()=>{t(this,Y).delete(h),o(new Error(`WindowBridge: request "${i}" timed out`))},t(this,Je));t(this,Y).set(h,{resolve:n,reject:o,timer:c});for(let f of s)f.post("req",i,e,h)})},ye(dt,"manifest",{name:"WindowBridge",dependencies:[],version:"1.0.0",namespace:"windowBridge",description:"Window postMessage abstraction with pub/sub and request/response",defaults:{timeout:1e3,host:null}}),dt);function Yt(r){if(typeof window<"u"){let e=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.host;if(r.basePath)try{let o=(r.basePath.startsWith("http")?new URL(r.basePath).pathname:r.basePath).replace(/\/$/,"");if(o)return`${e}//${s}${o}/socket`}catch{}return r.projectId?`${e}//${s}/p/${r.projectId}/socket`:`${e}//${s}/socket`}return`ws://localhost:${r.port??3e3}/socket`}function kr(r,{auth:i=null,reconnect:e={enabled:!0}}={}){return{url:Yt(r),auth:i,reconnect:e,maxPayloadBytes:5e7}}var Hr=rt("stores",r=>{let[i,e]=r("state","socket"),s=new Map,n=(c,f)=>{f==null?s.delete(c):s.set(c,JSON.stringify(f))},o=(c,f)=>f==null?!s.has(c):s.get(c)===JSON.stringify(f);for(let[c,f]of Object.entries(i.get([".stores"])??{}))n(c,f);let h=c=>{if(c)for(let[f,y]of Object.entries(c))n(f,y),y?i.set([".stores",f],y):i.remove([".stores",f])};return i.matcher.createMatcher([".stores"],c=>{if(!c)return;let f={},y=!1;for(let[b,g]of Object.entries(c))o(b,g)||(n(b,g),f[b]=g,y=!0);y&&e.publish("stores:sync",f)}),e.onConnect(async()=>{try{h(await e.request("stores:requestSnapshot")??{})}catch{}}),{set:{handler:c=>h(c)}}});var Yr=rt("module",r=>{let i=r("moduleLoader");return{compiled:{handler:({name:e,type:s,hash:n})=>s==="main"?window.location.reload():i.swap(e,s,n)}}});function Gr(r,i,{fallback:e=null,timeoutMs:s=1e4}={}){let n=()=>r.request(i).catch(()=>e);return r.ready()?n():new Promise(o=>{let h=setTimeout(()=>{c?.(),o(e)},s),c=r.onConnect(()=>{clearTimeout(h),c?.(),o(n())})})}export{rt as a,pr as b,it as c,Tr as d,kr as e,Hr as f,Yr as g,Gr as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function g(r,o,n){return r.set([o,"tagName"],n)}function h(r,o){return r.has([o])}function u(r,o){if(!o||!h(r,o))return!1;r.update(["app","children"],(t=[])=>t.filter(e=>e!==o)),r.update(["temp","children"],(t=[])=>t.filter(e=>e!==o));let n=r.findWhen("children","includes",o);return n&&r.update(n,(t=[])=>t.filter(e=>e!==o)),!0}function f(r,o,n=[]){let t=r.get([o,"children"])||[];for(let c of t)n.push(c),n=f(r,c,n);let e=r.get([o,"slots"])||[];for(let c of e)for(let i of c.children||[])n.push(i),n=f(r,i,n);return n}function m(r,o){if(!o)return;let n=e=>{if(!r.has([e]))return;let c=r.get([e,"slots"]);!Array.isArray(c)||!c.length||r.update([e,"slots"],(i=[])=>{let p=!1,d=i.map(l=>{let s=l.children||[];return s.includes(o)?(p=!0,{...l,children:s.filter(x=>x!==o)}):l});return p?d:i})};n("app"),n("temp");let t=e=>{for(let c of e||[])r.has([c])&&(n(c),t(r.get([c,"children"])||[]))};t(r.get(["app","children"])),t(r.get(["temp","children"]))}function E(r,o){let n=f(r,o);for(let e of[o,...n])m(r,e);u(r,o);let t={};for(let e of n)u(r,e),t[e]=r.remove(e);return t[o]=r.remove([o]),[o,t]}function I(r,o,n){if(Array.isArray(n))return r.set([o,"textContent"],n)}export{g as a,h as b,f as c,u as d,m as e,E as f,I as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as Y}from"./chunk-5HNN2HVX.js";import{e as U,f as o,g as f,h as J,i as a,j as K}from"./chunk-P722OZCF.js";var C,k,W,I,m,v,G,z,l,u,D,T,y,Q,j,q,X,_,le=(z=class extends Y{constructor(){super(...arguments);f(this,l);f(this,C,new Map);f(this,k,new Map);f(this,W,new Map);f(this,I,new Map);f(this,m,new Map);f(this,v,1);f(this,G,!1)}initialize(r,t){if(t?.workers&&t.workers.length>0)for(let e of t.workers)this.register(e);window.addEventListener("beforeunload",async e=>{try{await this.unregisterAll()}catch(s){console.error("Design view: Error unregistering workers:",s)}})}actions(r,t){return{isSupported:e=>this.isSupported(e),setup:(e,s)=>this.setup(e,s),register:({name:e,type:s,url:i,setup:E,options:c={}})=>this.register({name:e,type:s,url:i,setup:E,options:c}),unregister:e=>this.unregister(e),unregisterAll:()=>this.unregisterAll(),to:e=>this.to(e),from:e=>this.from(e)}}async register({name:r,type:t,url:e,setup:s,options:i={}}){if(!this.isSupported(t))throw new Error(`${t} workers are not supported in this environment`);o(this,C).has(r)&&(console.warn(`WorkerManager: "${r}" already registered \u2014 replacing`),await this.unregister(r));try{let E=await this.initializeRegistration({type:t,url:e,setup:s,options:i});switch(t){case"service":E.active?(o(this,C).set(r,{type:t,registration:E}),navigator.serviceWorker.addEventListener("message",c=>a(this,l,T).call(this,r,c.data,c.source)),a(this,l,y).call(this,r,"LIFECYCLE","CONNECT")):await new Promise((c,h)=>{let d=E.installing||E.waiting;if(!d)return h(new Error("No installing service worker"));d.onstatechange=g=>{g.target.state==="activated"?(o(this,C).set(r,{type:t,registration:E}),navigator.serviceWorker.addEventListener("message",S=>a(this,l,T).call(this,r,S.data,S.source)),a(this,l,y).call(this,r,"LIFECYCLE","CONNECT"),c()):g.target.state==="redundant"&&h(new Error("Service worker became redundant"))}});break;case"web":o(this,C).set(r,{type:t,registration:E}),E.onmessage=c=>a(this,l,T).call(this,r,c.data,E),a(this,l,y).call(this,r,"LIFECYCLE","CONNECT");break;case"shared":o(this,C).set(r,{type:t,registration:E}),E.port.onmessage=c=>a(this,l,T).call(this,r,c.data,E.port),E.port.start(),a(this,l,y).call(this,r,"LIFECYCLE","CONNECT");break}return()=>this.unregister(r)}catch(E){return console.error(`WorkerManager: Failed to register ${r} (${t})`,E),null}}async initializeRegistration({type:r,url:t,setup:e,options:s={}}){let i;if(e)i=await e();else if(t){let E=t instanceof URL?t:new URL(t,window.location.origin).href;switch(r){case"service":i=await navigator.serviceWorker.register(E,s);break;case"web":i=new Worker(E,s);break;case"shared":i=new SharedWorker(E,s);break}}return i}isSupported(r){switch(r){case"service":return"serviceWorker"in navigator;case"web":return"Worker"in window;case"shared":return"SharedWorker"in window;default:return!1}}async unregister(r){let t=o(this,C).get(r);if(!t)return!1;let{type:e,registration:s}=t,i=!1;try{switch(e){case"service":i=await s.unregister();break;case"web":s.terminate(),i=!0;break;case"shared":s.port&&s.port.close(),i=!0;break}i&&(o(this,C).delete(r),o(this,k).delete(r))}catch(E){console.error(`WorkerManager: Error unregistering ${r}`,E)}return i}async unregisterAll(){let r=[];for(let[e,s]of o(this,C))console.log(`\u{1F3AF} Unregistering worker ${e} of type ${s.type}`),r.push(this.unregister(e));try{let e=await navigator.serviceWorker.getRegistrations();for(let s of e)r.push(s.unregister())}catch(e){console.error("WorkerManager: Error getting all service worker registrations:",e)}let t=await Promise.all(r);return o(this,C).clear(),o(this,k).clear(),t}to(r){return{emit:(t,...e)=>a(this,l,y).call(this,r,"MESSAGE",t,e),emitAsync:(t,...e)=>a(this,l,Q).call(this,r,"MESSAGE",t,e),transfer:(t,...e)=>a(this,l,y).call(this,r,"TRANSFER",t,e)}}from(r){return{onReady:t=>a(this,l,u).call(this,r,"LIFECYCLE","READY",t),onConnect:t=>a(this,l,u).call(this,r,"LIFECYCLE","CONNECT",t),onDisconnect:t=>a(this,l,u).call(this,r,"LIFECYCLE","DISCONNECT",t),onError:t=>a(this,l,u).call(this,r,"LOG","error",t),onWarning:t=>a(this,l,u).call(this,r,"LOG","warning",t),onInfo:t=>a(this,l,u).call(this,r,"LOG","info",t),onDebug:t=>a(this,l,u).call(this,r,"LOG","debug",t),onTrace:t=>a(this,l,u).call(this,r,"LOG","trace",t),onFatal:t=>a(this,l,u).call(this,r,"LOG","fatal",t),onCritical:t=>a(this,l,u).call(this,r,"LOG","critical",t),onEmergency:t=>a(this,l,u).call(this,r,"LOG","emergency",t),on:(t,e)=>a(this,l,u).call(this,r,"MESSAGE",t,e)}}},C=new WeakMap,k=new WeakMap,W=new WeakMap,I=new WeakMap,m=new WeakMap,v=new WeakMap,G=new WeakMap,l=new WeakSet,u=function(r,t,e,s){if(t==="LIFECYCLE"){if(e==="READY"&&o(this,G)){s();return}let i=o(this,W).get(r)||new Map;return i.set(e,s),o(this,W).set(r,i),()=>i.delete(e)}if(t==="MESSAGE"||t==="TRANSFER"){let i=o(this,k).get(r)||new Map,E=i.get(e)||new Set;return E.add(s),i.set(e,E),o(this,k).set(r,i),()=>E.delete(s)}if(t==="LOG"){let i=o(this,I).get(r)||new Map,E=i.get(e)||new Set;return E.add(s),i.set(e,E),o(this,I).set(r,i),()=>E.delete(s)}throw new Error("WorkerManager: Invalid type")},D=function(r){return r.filter(t=>t instanceof ArrayBuffer||t instanceof MessagePort||t instanceof ImageBitmap||t instanceof OffscreenCanvas||t instanceof ReadableStream||t instanceof WritableStream||t instanceof TransformStream)},T=async function(r,{type:t,event:e,payload:s,responseId:i,async:E},c){if(t==="LIFECYCLE"){e==="READY"&&J(this,G,!0);let h=o(this,W).get(r);if(!h)return;let d=h.get(e);if(d){let g={...this.to(r),...this.from(r)};d(g,...s)}return}if(t==="LOG"){a(this,l,X).call(this,r,e,...s),(o(this,I).get(r)?.get(e)||[]).forEach(h=>h(c,...s));return}if(t==="MESSAGE"||t==="TRANSFER"){let h=o(this,k).get(r);if(!h)return;let d=h.get(e)||new Set;if(d.size===0)return;if(E){let g=[];for(let ae of d){let ne=await ae(c,...s);g.push(ne)}let S=a(this,l,D).call(this,g),P={type:"CALLBACK",event:e,responseId:i,payload:g,async:E};a(this,l,_).call(this,r,P,S);return}s=i?[...s,a(this,l,j).call(this,c,i)]:s,d.forEach(g=>g(c,...s));return}if(t==="CALLBACK"){let h=o(this,m).get(i);if(!h)return;h(...s),o(this,m).delete(i);return}throw new Error("WorkerManager: Invalid type")},y=function(r,t,e,s=[]){try{let i=a(this,l,D).call(this,s),E=a(this,l,j).call(this,s),c=a(this,l,q).call(this,t,e,s,E);a(this,l,_).call(this,r,c,i)}catch(i){console.error("WorkerManager: Error emitting",r,t,e,s,i)}},Q=function(r,t,e,s=[]){return new Promise((i,E)=>{let c=setTimeout(()=>{E(new Error(`WorkerManager: Async operation timed out ${r} ${e}`))},3e3),h=o(this,v);o(this,m).set(h,(...S)=>{clearTimeout(c),S.length===1?i(S[0]):i(...S)}),K(this,v)._++;let d=a(this,l,q).call(this,t,e,s,h,!0),g=a(this,l,D).call(this,s);a(this,l,_).call(this,r,d,g)})},j=function(r){if(r.length>0&&typeof r[r.length-1]=="function"){let t=r.pop(),e=o(this,v);return o(this,m).set(e,t),K(this,v)._++,e}},q=function(r,t,e=[],s,i=!1){return{type:r,event:t,payload:e,responseId:s,async:i}},X=function(r,t,e){let s=t.toLowerCase(),i=`[${r.toUpperCase()}] ${e.message}`;switch(s){case"error":case"fatal":case"critical":case"emergency":console.error(i,e.data||"");break;case"warning":console.warn(i,e.data||"");break;case"info":console.info(i,e.data||"");break;case"debug":console.debug(i,e.data||"");break;case"trace":console.trace(i,e.data||"");break;default:console.log(i,e.data||"")}},_=function(r,t,e=[]){let s=o(this,C).get(r);if(!s)throw new Error(`WorkerManager: Worker ${r} not found`);let{type:i,registration:E}=s;switch(i){case"service":E.active.postMessage(t,e);break;case"web":E.postMessage(t,e);break;case"shared":E.port.postMessage(t,e);break}},U(z,"manifest",{name:"Worker Registrar",namespace:"worker",dependencies:[],version:"1.0.0",description:"Manages service workers, web workers, and shared workers with unified API",defaults:{id:null,workers:[]}}),z),w={SERVICE_WORKER:"SERVICE_WORKER",WEB_WORKER:"WEB_WORKER",SHARED_WORKER:"SHARED_WORKER"};function oe(){if(typeof self<"u"&&"ServiceWorkerGlobalScope"in self)return w.SERVICE_WORKER;if(typeof self<"u"&&"SharedWorkerGlobalScope"in self)return w.SHARED_WORKER;if(typeof self<"u"&&"WorkerGlobalScope"in self)return w.WEB_WORKER;throw new Error("WorkerClient: Must be used in a worker context (service worker, shared worker, or web worker)")}var A,O,M,N,L,b,F,x,n,Z,R,ee,B,$,te,re,p,V,H,se,he=(x=class extends Y{constructor(){super(...arguments);f(this,n);f(this,A,oe());f(this,O,new Set);f(this,M,new Map);f(this,N,new Map);f(this,L,new Map);f(this,b,new Map);f(this,F,1)}initialize(){switch(o(this,A)){case w.SERVICE_WORKER:a(this,n,ee).call(this),self.onmessage=r=>a(this,n,H).call(this,r.source,r.data);break;case w.WEB_WORKER:self.onmessage=r=>a(this,n,H).call(this,self,r.data);break;case w.SHARED_WORKER:self.onconnect=r=>{let t=r.ports[0];t.onmessage=e=>a(this,n,H).call(this,t,e.data),o(this,O).add(t)};break}}actions(r,t){switch(o(this,A)){case w.SERVICE_WORKER:return{onConnect:e=>a(this,n,R).call(this,"LIFECYCLE","CONNECT",e),onDisconnect:e=>a(this,n,R).call(this,"LIFECYCLE","DISCONNECT",e),on:(e,s)=>a(this,n,R).call(this,"MESSAGE",e,s),onFetch:e=>a(this,n,R).call(this,"SERVICE_WORKER","FETCH",e),onInstall:e=>a(this,n,R).call(this,"SERVICE_WORKER","INSTALL",e),onActivate:e=>a(this,n,R).call(this,"SERVICE_WORKER","ACTIVATE",e),log:(e,s,...i)=>a(this,n,B).call(this,e,s,...i),emit:(e,...s)=>a(this,n,p).call(this,"*","MESSAGE",e,s),transfer:(e,...s)=>a(this,n,p).call(this,"*","TRANSFER",e,s),to:e=>({emit:(s,...i)=>a(this,n,p).call(this,e,"MESSAGE",s,i),transfer:(s,...i)=>a(this,n,p).call(this,e,"TRANSFER",s,i)})};case w.WEB_WORKER:return{on:(e,s)=>a(this,n,R).call(this,"MESSAGE",e,s),log:(e,s,...i)=>a(this,n,B).call(this,e,s,...i),emit:(e,...s)=>a(this,n,p).call(this,self,"MESSAGE",e,s),transfer:(e,...s)=>a(this,n,p).call(this,self,"TRANSFER",e,s)};case w.SHARED_WORKER:return{onConnect:e=>a(this,n,R).call(this,"LIFECYCLE","CONNECT",e),onDisconnect:e=>a(this,n,R).call(this,"LIFECYCLE","DISCONNECT",e),on:(e,s)=>a(this,n,R).call(this,"MESSAGE",e,s),log:(e,s,...i)=>a(this,n,B).call(this,e,s,...i),emit:(e,...s)=>a(this,n,p).call(this,"*","MESSAGE",e,s),transfer:(e,...s)=>a(this,n,p).call(this,"*","TRANSFER",e,s),to:e=>({emit:(s,...i)=>a(this,n,p).call(this,e,"MESSAGE",s,i),transfer:(s,...i)=>a(this,n,p).call(this,e,"TRANSFER",s,i)})};default:return{}}}},A=new WeakMap,O=new WeakMap,M=new WeakMap,N=new WeakMap,L=new WeakMap,b=new WeakMap,F=new WeakMap,n=new WeakSet,Z=function(r,t){return(...e)=>{let s={type:"CALLBACK",responseId:t,payload:e};a(this,n,V).call(this,r,s,a(this,n,$).call(this,e))}},R=function(r,t,e){switch(r){case"LIFECYCLE":return o(this,M).set(t,e),()=>o(this,M).delete(t);case"MESSAGE":case"TRANSFER":let s=o(this,N).get(t)||new Set;return s.add(e),o(this,N).set(t,s),()=>s.delete(e);case"SERVICE_WORKER":let i=o(this,L).get(t)||new Set;return i.add(e),o(this,L).set(t,i),()=>i.delete(e);default:console.error("WorkerClient: Invalid type",r,t,e)}},ee=function(){self.addEventListener("install",r=>{self.skipWaiting();let t=o(this,L).get("INSTALL");t&&t.forEach(e=>e(r))}),self.addEventListener("activate",r=>{r.waitUntil(self.clients.claim());let t=o(this,L).get("ACTIVATE");t&&t.forEach(e=>e(r))}),self.addEventListener("fetch",r=>{let t=o(this,L).get("FETCH");t&&t.forEach(e=>e(r))}),console.log("WorkerClient #setupServiceWorkerEvents")},B=function(r,t,...e){let s={level:r,message:t,data:e.length>0?e:void 0,timestamp:Date.now(),workerType:o(this,A)};o(this,A)===w.SERVICE_WORKER||o(this,A)===w.SHARED_WORKER?a(this,n,p).call(this,"*","LOG",r,[s]):a(this,n,p).call(this,self,"LOG",r,[s]),(console[r]||console.log)(`[${r.toUpperCase()}] ${t}`,...e)},$=function(r){return r.filter(t=>t instanceof ArrayBuffer||t instanceof MessagePort||typeof ImageBitmap<"u"&&t instanceof ImageBitmap||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas||typeof ReadableStream<"u"&&t instanceof ReadableStream||typeof WritableStream<"u"&&t instanceof WritableStream||typeof TransformStream<"u"&&t instanceof TransformStream)},te=function(r){return r.length>0&&typeof r[r.length-1]=="function"},re=function(r){if(a(this,n,te).call(this,r)){let t=r.pop(),e=o(this,F);return o(this,b).set(e,t),K(this,F)._++,e}},p=function(r,t,e,s=[]){try{let i,E=a(this,n,$).call(this,s),c=a(this,n,re).call(this,s);switch(t){case"LIFECYCLE":i={type:"LIFECYCLE",event:e,payload:s,responseId:c};break;case"MESSAGE":i={type:"MESSAGE",event:e,payload:s,responseId:c};break;case"LOG":i={type:"LOG",event:e,payload:s,responseId:c};break;case"TRANSFER":i={type:"MESSAGE",event:e,payload:s,responseId:c};break;default:throw new Error("WorkerClient: Invalid type")}a(this,n,V).call(this,r,i,E)}catch(i){console.error("WorkerClient: Error emitting",i)}},V=function(r,t,e=[]){try{if(r==="*"){o(this,O).forEach(s=>{s.postMessage(t,e)});return}r.postMessage(t,e)}catch(s){console.error("WorkerClient: Error posting message",s)}},H=async function(r=null,{type:t,event:e,payload:s,responseId:i,async:E}){if(t==="LIFECYCLE"){let c=o(this,M).get(e);a(this,n,se).call(this,r,e,s),c&&c(r,...s)}if(t==="MESSAGE"||t==="TRANSFER"){let c=o(this,N).get(e);if(E){let h=[];for(let S of c){let P=await S(r,...s);h.push(P)}let d=a(this,n,$).call(this,h),g={type:"CALLBACK",event:e,responseId:i,payload:h,async:E};a(this,n,V).call(this,r,g,d);return}s=i?[...s,a(this,n,Z).call(this,r,i)]:s,c&&c.forEach(h=>h(r,...s))}if(t==="CALLBACK"){let c=o(this,b).get(i);c&&(c(...s),o(this,b).delete(i))}},se=function(r,t,e){switch(t){case"CONNECT":o(this,O).add(r),a(this,n,p).call(this,r,"LIFECYCLE","READY",[]);break}},U(x,"manifest",{name:"Worker Events",namespace:"worker",dependencies:[],version:"1.0.0",description:"Handles events in service workers and web workers",defaults:{events:{}}}),x),fe={CONNECT:"CONNECT",DISCONNECT:"DISCONNECT",MESSAGE:"MESSAGE",READY:"READY",ERROR:"ERROR",WARNING:"WARNING",INFO:"INFO",DEBUG:"DEBUG",TRACE:"TRACE",FATAL:"FATAL",CRITICAL:"CRITICAL",EMERGENCY:"EMERGENCY"};export{le as a,he as b,fe as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var j=Object.create;var f=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var n=Reflect.get;var i=a=>{throw TypeError(a)};var o=(a,b,c)=>b in a?f(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c;var s=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var t=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),u=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0})},p=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of l(b))!m.call(a,e)&&e!==c&&f(a,e,{get:()=>b[e],enumerable:!(d=k(b,e))||d.enumerable});return a};var v=(a,b,c)=>(c=a!=null?j(h(a)):{},p(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));var w=(a,b,c)=>o(a,typeof b!="symbol"?b+"":b,c),g=(a,b,c)=>b.has(a)||i("Cannot "+c);var q=(a,b,c)=>(g(a,b,"read from private field"),c?c.call(a):b.get(a)),x=(a,b,c)=>b.has(a)?i("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(a):b.set(a,c),r=(a,b,c,d)=>(g(a,b,"write to private field"),d?d.call(a,c):b.set(a,c),c),y=(a,b,c)=>(g(a,b,"access private method"),c);var z=(a,b,c,d)=>({set _(e){r(a,b,e,c)},get _(){return q(a,b,d)}}),A=(a,b,c)=>n(h(a),c,b);export{s as a,t as b,u as c,v as d,w as e,q as f,x as g,r as h,y as i,z as j,A as k};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as y}from"./chunk-BAARNJD7.js";import{A as a,fc as l,gc as h,ma as i,z as c,zb as m}from"./chunk-ZNG3HSBM.js";import{c as w}from"./chunk-P722OZCF.js";var I=new Set(["className","style","id","ref","key"]),T=new Set(["key","ref"]);function p(e,n){let u={},o={};if(!e)return{dom:u,props:o};let r=n?.props,s=r?.length?new Set(r.map(t=>typeof t=="string"?t:t?.name).filter(t=>t&&!T.has(t))):null;for(let t in e)s?.has(t)?o[t]=e[t]:I.has(t)||t.startsWith("data-")||/^on[A-Z]/.test(t)?u[t]=e[t]:o[t]=e[t];return{dom:u,props:o}}var d=[],_=null,b=()=>_?[_,...d]:d;function E(e){return e}function v(e){typeof e=="function"&&d.push(e)}function g(e){_=typeof e=="function"?e:null}async function x(){let e=await import("./virtual_empty-main-4HFN7X6Y.js");if(!(e&&"__jucieMainStub"in e&&e.__jucieMainStub)){if(typeof e?.default!="function")throw new Error("[jucie] src/main.js must default-export setup(...), e.g. export default setup((app) => { ... })");v(e.default)}}function M(e){for(let n of b())n(e)}var j=!1;async function P(){j||(j=!0,await x())}var A=Symbol("@jucie/runtime"),O=e=>{globalThis[A]=e},R=()=>globalThis[A];var k={};w(k,{createApp:()=>l,createComputed:()=>y,createElement:()=>S,createHost:()=>V,createRef:()=>C,defineComponent:()=>i,hostRootProps:()=>J,loadProjectMain:()=>x,provideJucie:()=>O,ref:()=>c,renderComputed:()=>D,renderSource:()=>N,setProjectMain:()=>g,setup:()=>E,shallowRef:()=>a,splitInstanceOverrides:()=>p,useJucie:()=>R});globalThis.__VUE_OPTIONS_API__??(globalThis.__VUE_OPTIONS_API__=!0);globalThis.__VUE_PROD_DEVTOOLS__??(globalThis.__VUE_PROD_DEVTOOLS__=!1);globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__??(globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);function S(e,n,...u){if(n&&typeof n=="object"&&!Array.isArray(n)&&"className"in n){let{className:o,...r}=n;return r.class=r.class?`${r.class} ${o}`:o,m(e,r,...u)}return m(e,n,...u)}function C(){return c(null)}function D(e){return e()}function V(e,n,{hydrate:u=!1}={}){let o=a(null),r=a(null),s=i({render:()=>o.value?n(o.value):null}),t=(u?h:l)({render:()=>r.value?S(r.value):null});return{jucie:s,async mount(f){return await P(),M(t),o.value=f,r.value=s,t.mount(e),this},navigate(f){o.value=f},unmount(){t.unmount()}}}function J(){return{}}function N(e,n,u){let{dom:o,props:r}=p(n,u),{key:s,...t}=o||{};return S(e,{...r,...t,key:s})}export{p as a,E as b,g as c,x as d,O as e,R as f,S as g,C as h,D as i,V as j,J as k,N as l,k as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-3Q3DRUNQ.js";var a=()=>({__version:1,type:"animation",scope:"node",name:null,duration:300,easing:"ease",fill:"none",direction:"normal",iterations:1,delay:0,endDelay:0,iterationStart:0,composite:"replace",keyframes:[]});function d(n={}){return{...a(),...Object.fromEntries(Object.entries(n).filter(([,e])=>e!==void 0))}}function p(n,t,e){let i={...e,play:r(e.play??e.trigger),reverse:r(e.reverse),reset:r(e.reset)};delete i.trigger,n.ref([t,"animations"]).setWhen("id","is",e.id,i)===void 0&&n.push([t,"animations"],i)}function y(n,t,e){n.removeWhere([t,"animations"],{id:e})}function v(n,t,e,i){let o=n.findWhere([t,"animations"],{id:e});if(o===void 0)return;let s={...o,...i};n.setWhere([t,"animations"],{id:e},s)}export{a,d as b,p as c,y as d,v as e};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
function M(t){if(!t)return"";let e="";for(let o of t)e+=o.text;return e}function g(t){return[{text:t??"",formats:{}}]}var k=Object.freeze({type:"paragraph"}),H=new Set(["div","section","article","aside","header","footer","main","li","td","th"]);function xt(t){return H.has(String(t??"").toLowerCase())}function d(t){return!!t?.block}function v(t=k){return{text:`
|
|
2
|
+
`,block:{...t},formats:{}}}function F(t){return!!t?.some(d)}function gt(t){let e=String(t??"").toLowerCase(),o=/^h([1-6])$/.exec(e);return o?{type:"heading",level:Number(o[1])}:e==="blockquote"?{type:"quote"}:e==="pre"?{type:"code"}:{...k}}function dt(t){switch(t?.type){case"heading":return`h${Math.min(6,Math.max(1,Number(t.level)||2))}`;case"quote":return"blockquote";case"code":return"pre";default:return"p"}}function C(t){let e=t?.length?t:[],o=e[e.length-1];return d(o)?e:[...e.filter(n=>n.text!==""),v()]}function D(t){let e=[],o=[],n=0,r=0;for(let u of t??[])d(u)?(e.push({runs:o,block:u.block,start:n,end:r}),r+=1,n=r,o=[]):(o.push(u),r+=u.text.length);return o.length&&e.push({runs:o,block:null,start:n,end:r}),e}function L(t,e){let o=D(t);return o.find(n=>e>=n.start&&e<=n.end)??o[o.length-1]??null}function z(t,e){let o=0;for(let n=0;n<t.length;n++){if(o===e&&d(t[n]))return n;if(o+=t[n].text.length,o>e)break}return-1}function N(t,e,o){let n=[],r=0,u=!1;for(let i of t){let l=r+i.text.length;!u&&e>=r&&e<l&&e>r&&!d(i)&&!i.descriptor?(n.push({...i,formats:{...i.formats},text:i.text.slice(0,e-r)}),n.push(o),n.push({...i,formats:{...i.formats},text:i.text.slice(e-r)}),u=!0):(!u&&e===r&&(n.push(o),u=!0),n.push(i)),r=l}return u||n.push(o),n}function ht(t,e){let o=C(t),n=L(o,e),r=n?.block??k,u=N(o,e,v(r));if(r.type==="heading"&&n&&e===n.end){let i=z(u,e+1);i!==-1&&(u[i]=v({...k,...U(r)}))}return u}function U(t){let e={};return t.align&&(e.align=t.align),e}function bt(t,e,o,n){let r=C(t),u=new Set(D(r).filter(l=>l.end>=e&&l.start<=o&&l.block).map(l=>l.end)),i=0;return r.map(l=>{let c=i;if(i+=l.text.length,!d(l)||!u.has(c))return l;let m={...l.block,...n};return n.type&&n.type!=="heading"&&!("level"in n)&&delete m.level,{...l,block:m}})}function kt(t){let e="";for(let o of t??[])e+=o.text;return F(t)&&e.endsWith(`
|
|
3
|
+
`)?e.slice(0,-1):e}var K=Object.freeze({mode:"value",value:null,binding:null,computed:null,code:null,error:null});function W(t){return t?!(t.mode==="binding"&&t.binding?.length||t.mode==="computed"&&t.computed||t.mode==="code"&&t.code||t.mode==="value"&&t.value!=null&&t.value!==""):!0}var E="\uFFFC";var X={sup:"sub",sub:"sup"};function R(t,e){let o={...t,...e};for(let n of Object.keys(e)){let r=X[n];r&&delete o[r]}return o}function p(t){return!!(t.descriptor||t.block)}function h(t,e){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object")return!1;let o=Object.keys(t);if(o.length!==Object.keys(e).length)return!1;for(let n of o)if(t[n]!==e[n])return!1;return!0}function S(t,e){let o=Object.keys(t);if(o.length!==Object.keys(e).length)return!1;for(let n of o)if(!h(t[n],e[n]))return!1;return!0}var Y=(t,e)=>!p(t)&&!p(e)&&S(t.formats,e.formats);function O(t){if(!t||t.length===0)return[];let e=[{...t[0],formats:{...t[0].formats}}];for(let o=1;o<t.length;o++){let n=e[e.length-1],r=t[o];Y(n,r)?n.text+=r.text:e.push({...r,formats:{...r.formats}})}return e}function b(t,e={}){return{text:E,descriptor:t,formats:{...e}}}var Z=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)*$/;function P(t){let e=typeof t=="string"?t.trim():"";return Z.test(e)?e.split("."):null}function G(t){return{name:null,mode:"binding",value:null,binding:t,computed:null,code:null,error:null,removable:!0}}function V(t){return{name:null,mode:"computed",value:null,binding:null,computed:`function (ctx) {
|
|
4
|
+
return ctx.${t}
|
|
5
|
+
}`,code:null,error:null,removable:!0}}function j(t){let e=P(t);return b(e?G(e):V(t.trim()))}var J=/\{\{([^}]+)\}\}/g;function Q(t){let e=t??"",o=[],n=0;for(let r of e.matchAll(J))r.index>n&&o.push(...g(e.slice(n,r.index))),o.push(j(r[1])),n=r.index+r[0].length;return(n<e.length||o.length===0)&&o.push(...g(e.slice(n))),o}var tt=/^function \(ctx\) \{\n {2}return ctx\.([\s\S]+)\n\}$/;function et(t){if(t?.mode==="binding"&&t.binding?.length)return`{{${Array.isArray(t.binding)?t.binding.join("."):t.binding}}}`;if(t?.mode==="computed"){let e=typeof t.computed=="string"&&t.computed.match(tt)?.[1];return e?`{{${e}}}`:"{fn}"}return t?.mode==="value"?t.value==null?"":String(t.value):""}function ot(t){let e="";for(let o of t??[])e+=o.descriptor?et(o.descriptor):o.text;return F(t)&&e.endsWith(`
|
|
6
|
+
`)?e.slice(0,-1):e}function nt(t,e){if(e<0)return-1;let o=0;for(let n=0;n<t.length;n++)if(o+=t[n].text.length,e<o)return n;return-1}function T(t,e){let o={text:e??t.text,formats:{...t.formats}};return t.descriptor&&(o.descriptor=t.descriptor),t.block&&(o.block={...t.block}),o}function A(t,e){let o=t.map(n=>T(n));for(let n of e){let r=[],u=0;for(let i of o){let l=u+i.text.length;if(p(i))r.push(i);else if(n>u&&n<l){let c=n-u;r.push(T(i,i.text.slice(0,c))),r.push(T(i,i.text.slice(c)))}else r.push(i);u=l}o=r}return o}function rt(t,e,o){let n=A(t??[],[e]),r=b(o),u=[],i=0,l=!1;for(let c of n)!l&&i===e&&(u.push(r),l=!0),u.push(c),i+=c.text.length;return l||u.push(r),u.filter(c=>c.descriptor||c.block||c.text!=="")}function y(t,e){let o=t??e;if(!o)return{};let n={...o};return n.link&&o===t&&!h(e?.link,n.link)&&delete n.link,n}function I(t){let e={text:t.ch,formats:t.formats};return t.descriptor&&(e.descriptor=t.descriptor),t.block&&(e.block=t.block),e}function it(t,e,o,n){if(!t||t.length===0)return g(n);let r=[];for(let f of t)for(let s=0;s<f.text.length;s++)r.push({ch:f.text[s],formats:f.formats,descriptor:f.descriptor,block:f.block});let u=f=>f&&!f.block?f.formats:void 0,i=y(u(r[e-1]),u(r[e])),c=r.splice(e,o,...n.split("").map(f=>({ch:f,formats:i}))).find(f=>f.block);if(c){let f=r.findIndex((s,w)=>w>=e+n.length&&s.block);f===-1?r.push({ch:`
|
|
7
|
+
`,formats:{},block:c.block}):r[f]={...r[f],block:c.block}}if(r.length===0)return g("");let m=[],a=I(r[0]);for(let f=1;f<r.length;f++){let s=r[f];!p(a)&&!p(s)&&S(a.formats,s.formats)?a.text+=s.ch:(m.push(a),a=I(s))}return m.push(a),m}function x(t,e,o,n){if(!t||t.length===0||e>=o)return t;let r=A(t,[e,o]),u=0,i=r.map(l=>{let c=u,m=u+l.text.length;if(u=m,l.block||c<e||m>o)return l;let a=n(l.formats);if(a===null)return l;let f={text:l.text,formats:a};return l.descriptor&&(f.descriptor=l.descriptor),f});return O(i)}function ut(t,e,o,n){return x(t,e,o,r=>R(r,n))}function lt(t,e,o,n){return x(t,e,o,()=>({...n}))}function ft(t,e,o){return x(t,e,o,()=>({}))}function ct(t,e,o,n){return x(t,e,o,r=>{if(r[n]===void 0)return null;let{[n]:u,...i}=r;return i})}function _(t,e){let o,n,r=0;for(let u of t){let i=r+u.text.length;e-1>=r&&e-1<i&&!u.block&&(o=u.formats),e>=r&&e<i&&!u.block&&(n=u.formats),r=i}return[o,n]}function q(t,e,o){let n=[],r=0;for(let i of t){let l=r+i.text.length;l>e&&r<o&&n.push(i),r=l}let u=n.filter(i=>!i.descriptor&&!i.block);return u.length?u:n.filter(i=>!i.block)}function B(t,e,o){if(!t||t.length===0)return{formats:{},mixed:[]};if(e===o){let[l,c]=_(t,e);return{formats:y(l,c),mixed:[]}}let n=q(t,e,o);if(n.length===0)return{formats:{},mixed:[]};let r={...n[0].formats},u=new Set(Object.keys(r));for(let l=1;l<n.length;l++){let c=n[l].formats;for(let m of Object.keys(c))u.add(m);for(let m of Object.keys(r))(!(m in c)||!h(c[m],r[m]))&&delete r[m]}let i=[...u].filter(l=>!(l in r));return{formats:r,mixed:i}}var $=(t,e=10)=>t.length>e?t.slice(0,e)+"\u2026":t;function mt(t){if(!t)return"?";if(t.mode==="binding"&&t.binding?.length){let e=Array.isArray(t.binding)?t.binding.join("."):String(t.binding);return $(e,24)}return t.mode==="computed"&&t.computed||t.mode==="code"?"\u0192n\u2026":t.mode==="value"&&t.value!=null?$(String(t.value)):"\xA0"}function st(t){return t?t.mode==="binding"&&t.binding?.length?Array.isArray(t.binding)?t.binding.join("."):String(t.binding):t.mode==="computed"?t.computed??"":t.mode==="code"?t.code??"":t.mode==="value"&&t.value!=null?String(t.value):"":""}export{E as a,R as b,O as c,M as d,g as e,b as f,P as g,Q as h,k as i,xt as j,d as k,F as l,gt as m,dt as n,C as o,ht as p,bt as q,kt as r,ot as s,K as t,W as u,nt as v,rt as w,it as x,ut as y,lt as z,ft as A,ct as B,B as C,mt as D,st as E};
|