@jucie.io/cli 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jucie.js +322 -0
- package/dist/stage/chunks/addAction-FSI6BXB4.js +1 -0
- package/dist/stage/chunks/addAnimationBinding-Y4VROY4L.js +1 -0
- package/dist/stage/chunks/addAttribute-CNJGHQSS.js +1 -0
- package/dist/stage/chunks/addComponent-VWD6O7CQ.js +1 -0
- package/dist/stage/chunks/addComputed-FQVHDUIE.js +1 -0
- package/dist/stage/chunks/addEvent-54ZE2DVJ.js +1 -0
- package/dist/stage/chunks/addLifecycleHook-VCCSTQ3G.js +1 -0
- package/dist/stage/chunks/addNode-AOA2MS25.js +1 -0
- package/dist/stage/chunks/addOption-ISGTUY6U.js +1 -0
- package/dist/stage/chunks/addParamToRoute-CRDV7MVF.js +1 -0
- package/dist/stage/chunks/addState-N3MBR533.js +1 -0
- package/dist/stage/chunks/addStore-PHY52777.js +1 -0
- package/dist/stage/chunks/addToken-QSTDKYFU.js +1 -0
- package/dist/stage/chunks/addValue-NBDF57UK.js +1 -0
- package/dist/stage/chunks/aiRelay-FSM6HGF7.js +1 -0
- package/dist/stage/chunks/assets-OAQXQVKM.js +1 -0
- package/dist/stage/chunks/bootstrap-LFMD2YRN.js +15 -0
- package/dist/stage/chunks/chunk-2SXGPNIX.js +1 -0
- package/dist/stage/chunks/chunk-2YZN7IFG.js +1 -0
- package/dist/stage/chunks/chunk-32FG2JVJ.js +1 -0
- package/dist/stage/chunks/chunk-32WBU6VH.js +1 -0
- package/dist/stage/chunks/chunk-45CXRNTO.js +1 -0
- package/dist/stage/chunks/chunk-45LFQ7GZ.js +1 -0
- package/dist/stage/chunks/chunk-4FPLUVEY.js +1 -0
- package/dist/stage/chunks/chunk-4MTM6BM7.js +1 -0
- package/dist/stage/chunks/chunk-4VALYMSL.js +1 -0
- package/dist/stage/chunks/chunk-4XNQRZ5E.js +1 -0
- package/dist/stage/chunks/chunk-4Y2YKFNP.js +1 -0
- package/dist/stage/chunks/chunk-5GOTVZFC.js +1 -0
- package/dist/stage/chunks/chunk-5OOKGI32.js +3 -0
- package/dist/stage/chunks/chunk-5PUPZLDN.js +1 -0
- package/dist/stage/chunks/chunk-5SOTDESD.js +1 -0
- package/dist/stage/chunks/chunk-5YRZZCXL.js +1 -0
- package/dist/stage/chunks/chunk-6EIGTDJQ.js +1 -0
- package/dist/stage/chunks/chunk-6GMURG26.js +1 -0
- package/dist/stage/chunks/chunk-6ZZBJPN5.js +1 -0
- package/dist/stage/chunks/chunk-73MAM44D.js +1 -0
- package/dist/stage/chunks/chunk-7L4V7JRT.js +1 -0
- package/dist/stage/chunks/chunk-AJVQKPCQ.js +1 -0
- package/dist/stage/chunks/chunk-AMAA7VJU.js +1 -0
- package/dist/stage/chunks/chunk-ARGFDBBK.js +1 -0
- package/dist/stage/chunks/chunk-BEYPHEBR.js +1 -0
- package/dist/stage/chunks/chunk-BS35FNXF.js +1 -0
- package/dist/stage/chunks/chunk-BVAPODQ7.js +5 -0
- package/dist/stage/chunks/chunk-C3DY5XVP.js +1 -0
- package/dist/stage/chunks/chunk-CUIKYKRZ.js +1 -0
- package/dist/stage/chunks/chunk-CVDUFBBG.js +1 -0
- package/dist/stage/chunks/chunk-D3V5OTLH.js +1 -0
- package/dist/stage/chunks/chunk-D6NZE747.js +1 -0
- package/dist/stage/chunks/chunk-DCOWKGJI.js +1 -0
- package/dist/stage/chunks/chunk-DSKLC3WF.js +1 -0
- package/dist/stage/chunks/chunk-EO7UBT4B.js +1 -0
- package/dist/stage/chunks/chunk-EPBR3BES.js +1 -0
- package/dist/stage/chunks/chunk-FSECMWCM.js +1 -0
- package/dist/stage/chunks/chunk-FTRUORC5.js +1 -0
- package/dist/stage/chunks/chunk-GDGHGTYN.js +1 -0
- package/dist/stage/chunks/chunk-GG4NWMR6.js +1 -0
- package/dist/stage/chunks/chunk-GIVV5ZCM.js +1 -0
- package/dist/stage/chunks/chunk-H3VC542J.js +1 -0
- package/dist/stage/chunks/chunk-HBEU7BDR.js +1 -0
- package/dist/stage/chunks/chunk-HBEWYDHO.js +1 -0
- package/dist/stage/chunks/chunk-HI7ALMQD.js +1 -0
- package/dist/stage/chunks/chunk-JKMOVSI4.js +1 -0
- package/dist/stage/chunks/chunk-K6PCHHH7.js +1 -0
- package/dist/stage/chunks/chunk-K7MC6G4X.js +1 -0
- package/dist/stage/chunks/chunk-KCVDFPJI.js +1 -0
- package/dist/stage/chunks/chunk-L4CU73MS.js +1 -0
- package/dist/stage/chunks/chunk-L7VQYHXR.js +1 -0
- package/dist/stage/chunks/chunk-LKQDYABR.js +1 -0
- package/dist/stage/chunks/chunk-LOILFK74.js +55 -0
- package/dist/stage/chunks/chunk-LR6DSVPP.js +1 -0
- package/dist/stage/chunks/chunk-MLL2ANA6.js +1 -0
- package/dist/stage/chunks/chunk-MXIF2FGR.js +1 -0
- package/dist/stage/chunks/chunk-N4AFW5M3.js +1 -0
- package/dist/stage/chunks/chunk-ODSNVDNS.js +1 -0
- package/dist/stage/chunks/chunk-OPVVANFS.js +1 -0
- package/dist/stage/chunks/chunk-OQ52NUNN.js +1 -0
- package/dist/stage/chunks/chunk-OWARHUEW.js +1 -0
- package/dist/stage/chunks/chunk-P3WBUN2B.js +1 -0
- package/dist/stage/chunks/chunk-P4ODI2G4.js +1 -0
- package/dist/stage/chunks/chunk-PSNKOX4A.js +37 -0
- package/dist/stage/chunks/chunk-PU3DZ3MV.js +1 -0
- package/dist/stage/chunks/chunk-QCZ4EDGZ.js +1 -0
- package/dist/stage/chunks/chunk-QG2BGE2O.js +1 -0
- package/dist/stage/chunks/chunk-QTBRJH2Q.js +1 -0
- package/dist/stage/chunks/chunk-RWJ7EPNM.js +1 -0
- package/dist/stage/chunks/chunk-RZ74UWF3.js +1 -0
- package/dist/stage/chunks/chunk-SECM4LZZ.js +1 -0
- package/dist/stage/chunks/chunk-SMO45CB3.js +1 -0
- package/dist/stage/chunks/chunk-SRRJXNKG.js +1 -0
- package/dist/stage/chunks/chunk-TBDEUSP4.js +1 -0
- package/dist/stage/chunks/chunk-TEUB5MUS.js +1 -0
- package/dist/stage/chunks/chunk-TV4PHWEG.js +1 -0
- package/dist/stage/chunks/chunk-U2OFNNHI.js +1 -0
- package/dist/stage/chunks/chunk-U3IV5DRQ.js +1 -0
- package/dist/stage/chunks/chunk-V4F2T2VR.js +1 -0
- package/dist/stage/chunks/chunk-V7BNWQS6.js +1 -0
- package/dist/stage/chunks/chunk-X2DYJVYZ.js +1 -0
- package/dist/stage/chunks/chunk-X6HJCJ3C.js +1 -0
- package/dist/stage/chunks/chunk-XKEDVW6X.js +1 -0
- package/dist/stage/chunks/chunk-YMUEID4R.js +1 -0
- package/dist/stage/chunks/chunk-YN5VQBDN.js +1 -0
- package/dist/stage/chunks/chunk-ZCAGAEP2.js +1 -0
- package/dist/stage/chunks/chunk-ZEWKYCOX.js +1 -0
- package/dist/stage/chunks/clearDestination-P3FTW7VJ.js +1 -0
- package/dist/stage/chunks/clearName-YFCAGL36.js +1 -0
- package/dist/stage/chunks/clearOptionsExpression-DF4IPDKH.js +1 -0
- package/dist/stage/chunks/clearRender-4YRSLAVX.js +1 -0
- package/dist/stage/chunks/clearRepeat-7TPSR6FL.js +1 -0
- package/dist/stage/chunks/contentEditor-VMXQHHFX.js +1 -0
- package/dist/stage/chunks/createAction-XVCUAVTP.js +1 -0
- package/dist/stage/chunks/createAnimation-YAXYGTZ2.js +1 -0
- package/dist/stage/chunks/createComputed-6XPJKJMP.js +1 -0
- package/dist/stage/chunks/createTextContent-BL7YGYP5.js +1 -0
- package/dist/stage/chunks/createValue-QMG7LOR4.js +1 -0
- package/dist/stage/chunks/disconnectNode-OY65I4GB.js +1 -0
- package/dist/stage/chunks/history-KHLKDDEZ.js +1 -0
- package/dist/stage/chunks/id-T5EU463K.js +1 -0
- package/dist/stage/chunks/main-3QLLHM43.js +1 -0
- package/dist/stage/chunks/main-7EICBMQ2.js +1 -0
- package/dist/stage/chunks/main-BLNWJ3UJ.js +1 -0
- package/dist/stage/chunks/main-NIVRMJR3.js +1 -0
- package/dist/stage/chunks/moveNodeToLastChildOf-PSU5X3UJ.js +1 -0
- package/dist/stage/chunks/nodeGraph-7M5JI3VA.js +1 -0
- package/dist/stage/chunks/normalizeEventName-6HVMB5GN.js +1 -0
- package/dist/stage/chunks/normalizeLayoutContext-NWKVWWWS.js +1 -0
- package/dist/stage/chunks/preview-bootstrap-LB3AH2CS.js +1 -0
- package/dist/stage/chunks/react-G5SWVCZA.js +1 -0
- package/dist/stage/chunks/removeAction-H3EDG2CG.js +1 -0
- package/dist/stage/chunks/removeAnimationBinding-JRXL2AOH.js +1 -0
- package/dist/stage/chunks/removeAttribute-6RYM7MYC.js +1 -0
- package/dist/stage/chunks/removeComputed-3HL3BXKY.js +1 -0
- package/dist/stage/chunks/removeEvent-CP3SVSHQ.js +1 -0
- package/dist/stage/chunks/removeLifecycleHook-Q76BUDFU.js +1 -0
- package/dist/stage/chunks/removeNode-OFMYW2LY.js +1 -0
- package/dist/stage/chunks/removeOption-Y6QYTQ7C.js +1 -0
- package/dist/stage/chunks/removeParamFromRoute-MHUMB7RO.js +1 -0
- package/dist/stage/chunks/removeState-HEDFV7HD.js +1 -0
- package/dist/stage/chunks/removeStore-BQDKUY3I.js +1 -0
- package/dist/stage/chunks/removeToken-CKODWTLX.js +1 -0
- package/dist/stage/chunks/removeValue-OTRFOOIB.js +1 -0
- package/dist/stage/chunks/screen-capture-bootstrap-BRQD4OSY.js +1 -0
- package/dist/stage/chunks/setDestination-3H4RDE7F.js +1 -0
- package/dist/stage/chunks/setHomePage-UZUWIELK.js +1 -0
- package/dist/stage/chunks/setHtmlId-V2DQ2Z6D.js +1 -0
- package/dist/stage/chunks/setName-QKDRLH7I.js +1 -0
- package/dist/stage/chunks/setNodeLayout-3LRJGZNL.js +1 -0
- package/dist/stage/chunks/setOptionsExpression-4NFPAI24.js +1 -0
- package/dist/stage/chunks/setRender-XQJWRRYD.js +1 -0
- package/dist/stage/chunks/setRepeat-PAW7YMSY.js +1 -0
- package/dist/stage/chunks/setTagName-Y7O7I6SO.js +1 -0
- package/dist/stage/chunks/updateAction-XSXILF2R.js +1 -0
- package/dist/stage/chunks/updateAnimationBinding-LQTVD3O6.js +1 -0
- package/dist/stage/chunks/updateAttribute-USA3HPEX.js +1 -0
- package/dist/stage/chunks/updateBounds-3L2AJ72O.js +1 -0
- package/dist/stage/chunks/updateComputed-UALAJ4RF.js +1 -0
- package/dist/stage/chunks/updateEvent-NXMQSGDQ.js +1 -0
- package/dist/stage/chunks/updateHtml-AEMCHPUQ.js +1 -0
- package/dist/stage/chunks/updateLifecycleHook-6MCUOVJH.js +1 -0
- package/dist/stage/chunks/updateOption-JCNXPYXP.js +1 -0
- package/dist/stage/chunks/updateRoute-CI3GOLVJ.js +1 -0
- package/dist/stage/chunks/updateState-QJID3WQV.js +1 -0
- package/dist/stage/chunks/updateStyle-FR7K7R73.js +1 -0
- package/dist/stage/chunks/updateToken-JX6R3YU7.js +1 -0
- package/dist/stage/chunks/updateValue-2B5ZNGZI.js +1 -0
- package/dist/stage/chunks/user-2EMXBDUX.js +1 -0
- package/dist/stage/chunks/validateStorePayload-PJ5AD64S.js +3 -0
- package/dist/stage/chunks/viewport-UOMSIPMH.js +1 -0
- package/dist/stage/chunks/window-KCOIKBXQ.js +1 -0
- package/dist/stage/design.js +1 -0
- package/dist/stage/dev.js +1 -0
- package/dist/stage/preview.js +1 -0
- package/dist/stage/prod.js +1 -0
- package/dist/stage-bundles/preact/chunks/addAction-5FCPHQHB.js +9 -0
- package/dist/stage-bundles/preact/chunks/addAnimationBinding-5UBXLWDB.js +7 -0
- package/dist/stage-bundles/preact/chunks/addAttribute-PWIHRX6Y.js +12 -0
- package/dist/stage-bundles/preact/chunks/addComponent-77PUZWLS.js +14 -0
- package/dist/stage-bundles/preact/chunks/addComputed-5J47SS67.js +9 -0
- package/dist/stage-bundles/preact/chunks/addEvent-P2KGVMLM.js +11 -0
- package/dist/stage-bundles/preact/chunks/addLifecycleHook-VSOAZGTG.js +8 -0
- package/dist/stage-bundles/preact/chunks/addNode-GCJR257S.js +19 -0
- package/dist/stage-bundles/preact/chunks/addOption-3U3LAV4C.js +8 -0
- package/dist/stage-bundles/preact/chunks/addParamToRoute-43UDJ4YE.js +7 -0
- package/dist/stage-bundles/preact/chunks/addState-ZWDA2CLN.js +11 -0
- package/dist/stage-bundles/preact/chunks/addStore-A4CRKMPO.js +7 -0
- package/dist/stage-bundles/preact/chunks/addToken-7P5NGEG4.js +8 -0
- package/dist/stage-bundles/preact/chunks/addValue-VQW7HQX7.js +8 -0
- package/dist/stage-bundles/preact/chunks/aiRelay-TFBJ7BF4.js +184 -0
- package/dist/stage-bundles/preact/chunks/assets-3W46CFCY.js +42 -0
- package/dist/stage-bundles/preact/chunks/bootstrap-VNVZAVV5.js +4080 -0
- package/dist/stage-bundles/preact/chunks/chunk-22J4JOPG.js +9 -0
- package/dist/stage-bundles/preact/chunks/chunk-236DY7EE.js +92 -0
- package/dist/stage-bundles/preact/chunks/chunk-2H2EQ2RG.js +24 -0
- package/dist/stage-bundles/preact/chunks/chunk-2Y25YY3N.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-3MJKS6VX.js +19 -0
- package/dist/stage-bundles/preact/chunks/chunk-3NLDBJQD.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-43L3STHY.js +172 -0
- package/dist/stage-bundles/preact/chunks/chunk-4A4WKSGY.js +66 -0
- package/dist/stage-bundles/preact/chunks/chunk-5C4ZCCYX.js +421 -0
- package/dist/stage-bundles/preact/chunks/chunk-65Q2CFW7.js +18 -0
- package/dist/stage-bundles/preact/chunks/chunk-667SIQGW.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-6B6PKOOA.js +140 -0
- package/dist/stage-bundles/preact/chunks/chunk-6BXKZHN6.js +19 -0
- package/dist/stage-bundles/preact/chunks/chunk-6E57QUN7.js +21 -0
- package/dist/stage-bundles/preact/chunks/chunk-6QYYO5LM.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-6R3QXFFF.js +47 -0
- package/dist/stage-bundles/preact/chunks/chunk-6RLI7CFQ.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-6TDZGYJG.js +13 -0
- package/dist/stage-bundles/preact/chunks/chunk-AI3MQHWR.js +51 -0
- package/dist/stage-bundles/preact/chunks/chunk-BWZPEI76.js +18 -0
- package/dist/stage-bundles/preact/chunks/chunk-CHZVDVQC.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-CJOJNMRC.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-CXATTVPL.js +24 -0
- package/dist/stage-bundles/preact/chunks/chunk-CYH47R7O.js +49 -0
- package/dist/stage-bundles/preact/chunks/chunk-DBHMBCBM.js +14 -0
- package/dist/stage-bundles/preact/chunks/chunk-DCKGUW2M.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-EB5FGFFG.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-F6JYAVEC.js +15 -0
- package/dist/stage-bundles/preact/chunks/chunk-F77HGOQB.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-FSIANI7E.js +11 -0
- package/dist/stage-bundles/preact/chunks/chunk-FZZDMYBZ.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-H75SQT4U.js +105 -0
- package/dist/stage-bundles/preact/chunks/chunk-HPCVUQI4.js +224 -0
- package/dist/stage-bundles/preact/chunks/chunk-I5OE2BAU.js +25863 -0
- package/dist/stage-bundles/preact/chunks/chunk-IDGFZWZY.js +13 -0
- package/dist/stage-bundles/preact/chunks/chunk-IIIXGKVH.js +17 -0
- package/dist/stage-bundles/preact/chunks/chunk-ILZWSEWK.js +19 -0
- package/dist/stage-bundles/preact/chunks/chunk-IO3NSIEJ.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-ISOZDDO2.js +157 -0
- package/dist/stage-bundles/preact/chunks/chunk-JDIO27MU.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-JJVRBJGQ.js +1353 -0
- package/dist/stage-bundles/preact/chunks/chunk-K7ZULZJF.js +116 -0
- package/dist/stage-bundles/preact/chunks/chunk-KF4MVCJ6.js +13 -0
- package/dist/stage-bundles/preact/chunks/chunk-KHURU62K.js +27 -0
- package/dist/stage-bundles/preact/chunks/chunk-KKLU24SB.js +33 -0
- package/dist/stage-bundles/preact/chunks/chunk-KOBPYD4N.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-LH4ZDX3T.js +58 -0
- package/dist/stage-bundles/preact/chunks/chunk-M3YT4JBL.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-MAPYANXA.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-MBN7CVNW.js +4290 -0
- package/dist/stage-bundles/preact/chunks/chunk-MMCB6GGX.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-NCUWZXVZ.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-O3KQTA3H.js +21 -0
- package/dist/stage-bundles/preact/chunks/chunk-OARTKQPG.js +153 -0
- package/dist/stage-bundles/preact/chunks/chunk-P7UUT7BU.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-PHVB7SAE.js +22 -0
- package/dist/stage-bundles/preact/chunks/chunk-PKSFATQY.js +10 -0
- package/dist/stage-bundles/preact/chunks/chunk-PU2GET2S.js +18 -0
- package/dist/stage-bundles/preact/chunks/chunk-QBXKRHK5.js +11 -0
- package/dist/stage-bundles/preact/chunks/chunk-QCQXLZJH.js +18 -0
- package/dist/stage-bundles/preact/chunks/chunk-QIOKODGT.js +14 -0
- package/dist/stage-bundles/preact/chunks/chunk-R5DUYWXP.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-RCIDQRAS.js +54 -0
- package/dist/stage-bundles/preact/chunks/chunk-RI7XWDHX.js +10 -0
- package/dist/stage-bundles/preact/chunks/chunk-RZG5LCPH.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-S4NZQRJJ.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-S5L2YBXG.js +143 -0
- package/dist/stage-bundles/preact/chunks/chunk-SF5BLQ7P.js +14 -0
- package/dist/stage-bundles/preact/chunks/chunk-SPTKNGHA.js +14 -0
- package/dist/stage-bundles/preact/chunks/chunk-TKHCH4WB.js +35 -0
- package/dist/stage-bundles/preact/chunks/chunk-TVB3GD7L.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-TVGXBOIT.js +18 -0
- package/dist/stage-bundles/preact/chunks/chunk-U7U7L7XZ.js +31 -0
- package/dist/stage-bundles/preact/chunks/chunk-UFHA3ODE.js +528 -0
- package/dist/stage-bundles/preact/chunks/chunk-UHGV762U.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-V6MKKC23.js +18 -0
- package/dist/stage-bundles/preact/chunks/chunk-VK4FEQKG.js +18 -0
- package/dist/stage-bundles/preact/chunks/chunk-VZNGMF63.js +12 -0
- package/dist/stage-bundles/preact/chunks/chunk-W5CGYUVM.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-W7QH4UII.js +54 -0
- package/dist/stage-bundles/preact/chunks/chunk-WMV5J37V.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-WXDXWNWW.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-XKFPCFZH.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-YCZNHFZA.js +15 -0
- package/dist/stage-bundles/preact/chunks/chunk-YEEGISBQ.js +23 -0
- package/dist/stage-bundles/preact/chunks/chunk-YM3NAGCN.js +8 -0
- package/dist/stage-bundles/preact/chunks/chunk-YMVTSVEM.js +26 -0
- package/dist/stage-bundles/preact/chunks/chunk-YXNMNEJV.js +329 -0
- package/dist/stage-bundles/preact/chunks/clearDestination-EMCIEDAP.js +7 -0
- package/dist/stage-bundles/preact/chunks/clearName-O7J77F77.js +7 -0
- package/dist/stage-bundles/preact/chunks/clearOptionsExpression-RGDXKYVX.js +7 -0
- package/dist/stage-bundles/preact/chunks/clearRender-DFMNHXXQ.js +7 -0
- package/dist/stage-bundles/preact/chunks/clearRepeat-436RGATR.js +7 -0
- package/dist/stage-bundles/preact/chunks/contentEditor-NLMG4U5G.js +67 -0
- package/dist/stage-bundles/preact/chunks/createAction-CKUAX4TU.js +8 -0
- package/dist/stage-bundles/preact/chunks/createAnimation-URI5366N.js +7 -0
- package/dist/stage-bundles/preact/chunks/createComputed-I23CA5NX.js +8 -0
- package/dist/stage-bundles/preact/chunks/createTextContent-K4G7KNQ5.js +10 -0
- package/dist/stage-bundles/preact/chunks/createValue-D5MP2SMM.js +7 -0
- package/dist/stage-bundles/preact/chunks/disconnectNode-GM5F3ZMB.js +8 -0
- package/dist/stage-bundles/preact/chunks/history-7PFZW7N6.js +51 -0
- package/dist/stage-bundles/preact/chunks/id-VSNJWKHU.js +53 -0
- package/dist/stage-bundles/preact/chunks/main-GQD7B74Q.js +103 -0
- package/dist/stage-bundles/preact/chunks/main-M2BBXKSW.js +154 -0
- package/dist/stage-bundles/preact/chunks/main-QDV3BMBP.js +109 -0
- package/dist/stage-bundles/preact/chunks/main-QOB4HBIK.js +31 -0
- package/dist/stage-bundles/preact/chunks/moveNodeToLastChildOf-Z6JUVLGM.js +12 -0
- package/dist/stage-bundles/preact/chunks/nodeGraph-TTOC6H4R.js +53 -0
- package/dist/stage-bundles/preact/chunks/normalizeEventName-2JPOX7Y6.js +128 -0
- package/dist/stage-bundles/preact/chunks/normalizeLayoutContext-Y44QODFX.js +9 -0
- package/dist/stage-bundles/preact/chunks/preact-FCSVXHIZ.js +39 -0
- package/dist/stage-bundles/preact/chunks/preview-bootstrap-QHWGL6NH.js +137 -0
- package/dist/stage-bundles/preact/chunks/removeAction-PPAIVTW3.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeAnimationBinding-UQ24BSXP.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeAttribute-P2IDGOQH.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeComputed-7C66NNZA.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeEvent-KTSOCV4C.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeLifecycleHook-NKXLF3QT.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeNode-A7C34C42.js +10 -0
- package/dist/stage-bundles/preact/chunks/removeOption-6HW62A5Y.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeParamFromRoute-LIKPDVU4.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeState-PO6J3JYQ.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeStore-5ZZ57NHV.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeToken-BKJE3U6Q.js +7 -0
- package/dist/stage-bundles/preact/chunks/removeValue-5FNPXWNL.js +7 -0
- package/dist/stage-bundles/preact/chunks/screen-capture-bootstrap-YWUN6QRP.js +128 -0
- package/dist/stage-bundles/preact/chunks/setDestination-DAYIYYIV.js +7 -0
- package/dist/stage-bundles/preact/chunks/setHomePage-MHCP4P24.js +7 -0
- package/dist/stage-bundles/preact/chunks/setHtmlId-3HYPFT3T.js +7 -0
- package/dist/stage-bundles/preact/chunks/setName-OQOO3URG.js +7 -0
- package/dist/stage-bundles/preact/chunks/setNodeLayout-PWQS32M2.js +10 -0
- package/dist/stage-bundles/preact/chunks/setOptionsExpression-XZZOJPCM.js +8 -0
- package/dist/stage-bundles/preact/chunks/setRender-NHXZZGME.js +10 -0
- package/dist/stage-bundles/preact/chunks/setRepeat-YZTZFDTQ.js +10 -0
- package/dist/stage-bundles/preact/chunks/setTagName-EGPQ66XI.js +7 -0
- package/dist/stage-bundles/preact/chunks/updateAction-ZSNXUEQA.js +9 -0
- package/dist/stage-bundles/preact/chunks/updateAnimationBinding-X2UXYQKJ.js +7 -0
- package/dist/stage-bundles/preact/chunks/updateAttribute-ODXM7YXA.js +12 -0
- package/dist/stage-bundles/preact/chunks/updateBounds-PEGOZ4FT.js +7 -0
- package/dist/stage-bundles/preact/chunks/updateComputed-6LNN453F.js +9 -0
- package/dist/stage-bundles/preact/chunks/updateEvent-ZHCKBJIM.js +11 -0
- package/dist/stage-bundles/preact/chunks/updateHtml-6BPU5PRY.js +7 -0
- package/dist/stage-bundles/preact/chunks/updateLifecycleHook-JEMQQYM5.js +8 -0
- package/dist/stage-bundles/preact/chunks/updateOption-SH33P5WW.js +8 -0
- package/dist/stage-bundles/preact/chunks/updateRoute-3RRPY2T5.js +7 -0
- package/dist/stage-bundles/preact/chunks/updateState-WRLF4SSC.js +11 -0
- package/dist/stage-bundles/preact/chunks/updateStyle-WAPTDAU5.js +7 -0
- package/dist/stage-bundles/preact/chunks/updateToken-CFIIILXB.js +7 -0
- package/dist/stage-bundles/preact/chunks/updateValue-JTEEC2B6.js +8 -0
- package/dist/stage-bundles/preact/chunks/user-ZLGCTRZX.js +44 -0
- package/dist/stage-bundles/preact/chunks/validateStorePayload-7A2INWJV.js +61 -0
- package/dist/stage-bundles/preact/chunks/viewport-OTNUF4XI.js +21 -0
- package/dist/stage-bundles/preact/chunks/window-73DBL24T.js +32 -0
- package/dist/stage-bundles/preact/entry.js +85 -0
- package/dist/stage-bundles/preact/framework-compat.js +103 -0
- package/dist/stage-bundles/preact/framework-hooks.js +35 -0
- package/dist/stage-bundles/preact/framework-jsx-runtime.js +102 -0
- package/dist/stage-bundles/preact/framework.js +33 -0
- package/dist/stage-bundles/preact/sdk.js +44 -0
- package/dist/stage-bundles/react/chunks/addAction-UV7MSISB.js +9 -0
- package/dist/stage-bundles/react/chunks/addAnimationBinding-M4VWTNNB.js +7 -0
- package/dist/stage-bundles/react/chunks/addAttribute-V4C3VUVK.js +12 -0
- package/dist/stage-bundles/react/chunks/addComponent-GUOHFGDG.js +14 -0
- package/dist/stage-bundles/react/chunks/addComputed-N3SUFIVQ.js +9 -0
- package/dist/stage-bundles/react/chunks/addEvent-GQCCRSGP.js +11 -0
- package/dist/stage-bundles/react/chunks/addLifecycleHook-GC5MHVSH.js +8 -0
- package/dist/stage-bundles/react/chunks/addNode-TX462HCE.js +19 -0
- package/dist/stage-bundles/react/chunks/addOption-7T3ZUC3A.js +8 -0
- package/dist/stage-bundles/react/chunks/addParamToRoute-Q6Z5A6RQ.js +7 -0
- package/dist/stage-bundles/react/chunks/addState-IKDWEJIW.js +11 -0
- package/dist/stage-bundles/react/chunks/addStore-SR7UK24M.js +7 -0
- package/dist/stage-bundles/react/chunks/addToken-2G5DPV5Z.js +8 -0
- package/dist/stage-bundles/react/chunks/addValue-UYM36PD7.js +8 -0
- package/dist/stage-bundles/react/chunks/aiRelay-RULC7GEA.js +184 -0
- package/dist/stage-bundles/react/chunks/assets-24YGC7SD.js +42 -0
- package/dist/stage-bundles/react/chunks/bootstrap-6YUSZ2AL.js +4080 -0
- package/dist/stage-bundles/react/chunks/chunk-22J4JOPG.js +9 -0
- package/dist/stage-bundles/react/chunks/chunk-236DY7EE.js +92 -0
- package/dist/stage-bundles/react/chunks/chunk-2H2EQ2RG.js +24 -0
- package/dist/stage-bundles/react/chunks/chunk-2Y25YY3N.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-3BDWFE4Q.js +1353 -0
- package/dist/stage-bundles/react/chunks/chunk-3MJKS6VX.js +19 -0
- package/dist/stage-bundles/react/chunks/chunk-3NLDBJQD.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-5C4ODH2L.js +198 -0
- package/dist/stage-bundles/react/chunks/chunk-5EXNWE4S.js +4290 -0
- package/dist/stage-bundles/react/chunks/chunk-65Q2CFW7.js +18 -0
- package/dist/stage-bundles/react/chunks/chunk-667SIQGW.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-6B6PKOOA.js +140 -0
- package/dist/stage-bundles/react/chunks/chunk-6BXKZHN6.js +19 -0
- package/dist/stage-bundles/react/chunks/chunk-6E57QUN7.js +21 -0
- package/dist/stage-bundles/react/chunks/chunk-6QYYO5LM.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-6R3QXFFF.js +47 -0
- package/dist/stage-bundles/react/chunks/chunk-6RLI7CFQ.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-6TDZGYJG.js +13 -0
- package/dist/stage-bundles/react/chunks/chunk-7MWSPEGH.js +172 -0
- package/dist/stage-bundles/react/chunks/chunk-A65NYJEZ.js +157 -0
- package/dist/stage-bundles/react/chunks/chunk-ABVPSM2D.js +278 -0
- package/dist/stage-bundles/react/chunks/chunk-AI3MQHWR.js +51 -0
- package/dist/stage-bundles/react/chunks/chunk-BWZPEI76.js +18 -0
- package/dist/stage-bundles/react/chunks/chunk-CHZVDVQC.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-CJOJNMRC.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-CXATTVPL.js +24 -0
- package/dist/stage-bundles/react/chunks/chunk-DBHMBCBM.js +14 -0
- package/dist/stage-bundles/react/chunks/chunk-DCKGUW2M.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-EB5FGFFG.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-F6JYAVEC.js +15 -0
- package/dist/stage-bundles/react/chunks/chunk-F77HGOQB.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-FSIANI7E.js +11 -0
- package/dist/stage-bundles/react/chunks/chunk-FZZDMYBZ.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-H75SQT4U.js +105 -0
- package/dist/stage-bundles/react/chunks/chunk-IDGFZWZY.js +13 -0
- package/dist/stage-bundles/react/chunks/chunk-IIIXGKVH.js +17 -0
- package/dist/stage-bundles/react/chunks/chunk-ILZWSEWK.js +19 -0
- package/dist/stage-bundles/react/chunks/chunk-IO3NSIEJ.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-JDIO27MU.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-K7ZULZJF.js +116 -0
- package/dist/stage-bundles/react/chunks/chunk-KF4MVCJ6.js +13 -0
- package/dist/stage-bundles/react/chunks/chunk-KHURU62K.js +27 -0
- package/dist/stage-bundles/react/chunks/chunk-KKLU24SB.js +33 -0
- package/dist/stage-bundles/react/chunks/chunk-KOBPYD4N.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-LH4ZDX3T.js +58 -0
- package/dist/stage-bundles/react/chunks/chunk-M3YT4JBL.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-MAPYANXA.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-MMCB6GGX.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-NCUWZXVZ.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-O3KQTA3H.js +21 -0
- package/dist/stage-bundles/react/chunks/chunk-P7UUT7BU.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-PHVB7SAE.js +22 -0
- package/dist/stage-bundles/react/chunks/chunk-PKSFATQY.js +10 -0
- package/dist/stage-bundles/react/chunks/chunk-PU2GET2S.js +18 -0
- package/dist/stage-bundles/react/chunks/chunk-QBXKRHK5.js +11 -0
- package/dist/stage-bundles/react/chunks/chunk-QCQXLZJH.js +18 -0
- package/dist/stage-bundles/react/chunks/chunk-QIOKODGT.js +14 -0
- package/dist/stage-bundles/react/chunks/chunk-QTTED7GZ.js +49 -0
- package/dist/stage-bundles/react/chunks/chunk-QVH24VHP.js +473 -0
- package/dist/stage-bundles/react/chunks/chunk-R5DUYWXP.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-RCIDQRAS.js +54 -0
- package/dist/stage-bundles/react/chunks/chunk-RI7XWDHX.js +10 -0
- package/dist/stage-bundles/react/chunks/chunk-RZDFRJVR.js +13065 -0
- package/dist/stage-bundles/react/chunks/chunk-RZG5LCPH.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-S4NZQRJJ.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-S5L2YBXG.js +143 -0
- package/dist/stage-bundles/react/chunks/chunk-SF5BLQ7P.js +14 -0
- package/dist/stage-bundles/react/chunks/chunk-SPTKNGHA.js +14 -0
- package/dist/stage-bundles/react/chunks/chunk-TKHCH4WB.js +35 -0
- package/dist/stage-bundles/react/chunks/chunk-TVB3GD7L.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-TVGXBOIT.js +18 -0
- package/dist/stage-bundles/react/chunks/chunk-U7U7L7XZ.js +31 -0
- package/dist/stage-bundles/react/chunks/chunk-UHGV762U.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-V6MKKC23.js +18 -0
- package/dist/stage-bundles/react/chunks/chunk-VK4FEQKG.js +18 -0
- package/dist/stage-bundles/react/chunks/chunk-VZNGMF63.js +12 -0
- package/dist/stage-bundles/react/chunks/chunk-W5CGYUVM.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-W7QH4UII.js +54 -0
- package/dist/stage-bundles/react/chunks/chunk-WMV5J37V.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-WXDXWNWW.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-XKFPCFZH.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-XVJJ3LG4.js +528 -0
- package/dist/stage-bundles/react/chunks/chunk-YCZNHFZA.js +15 -0
- package/dist/stage-bundles/react/chunks/chunk-YEEGISBQ.js +23 -0
- package/dist/stage-bundles/react/chunks/chunk-YM3NAGCN.js +8 -0
- package/dist/stage-bundles/react/chunks/chunk-YMVTSVEM.js +26 -0
- package/dist/stage-bundles/react/chunks/chunk-ZHZLVPR6.js +68 -0
- package/dist/stage-bundles/react/chunks/chunk-ZP3VSN3A.js +12093 -0
- package/dist/stage-bundles/react/chunks/clearDestination-KO6YHLX2.js +7 -0
- package/dist/stage-bundles/react/chunks/clearName-AAUKJ3OX.js +7 -0
- package/dist/stage-bundles/react/chunks/clearOptionsExpression-YGCMAZEE.js +7 -0
- package/dist/stage-bundles/react/chunks/clearRender-TTNIVIPG.js +7 -0
- package/dist/stage-bundles/react/chunks/clearRepeat-AZLSTBXI.js +7 -0
- package/dist/stage-bundles/react/chunks/contentEditor-HE34KY6R.js +67 -0
- package/dist/stage-bundles/react/chunks/createAction-N6UW7YDP.js +8 -0
- package/dist/stage-bundles/react/chunks/createAnimation-RIBXIT62.js +7 -0
- package/dist/stage-bundles/react/chunks/createComputed-KKULWYID.js +8 -0
- package/dist/stage-bundles/react/chunks/createTextContent-R5YRKNJL.js +10 -0
- package/dist/stage-bundles/react/chunks/createValue-SL4Y3LPI.js +7 -0
- package/dist/stage-bundles/react/chunks/disconnectNode-J6YACRLT.js +8 -0
- package/dist/stage-bundles/react/chunks/history-KTZZH7TG.js +51 -0
- package/dist/stage-bundles/react/chunks/id-WBHG2QOH.js +53 -0
- package/dist/stage-bundles/react/chunks/main-EMRULEYO.js +103 -0
- package/dist/stage-bundles/react/chunks/main-IVVVSUSO.js +109 -0
- package/dist/stage-bundles/react/chunks/main-Y7QHSAW7.js +154 -0
- package/dist/stage-bundles/react/chunks/main-YSWDZAGN.js +31 -0
- package/dist/stage-bundles/react/chunks/moveNodeToLastChildOf-IUKGA7IO.js +12 -0
- package/dist/stage-bundles/react/chunks/nodeGraph-GGV7TAPQ.js +53 -0
- package/dist/stage-bundles/react/chunks/normalizeEventName-EWVVRI6K.js +128 -0
- package/dist/stage-bundles/react/chunks/normalizeLayoutContext-TO4WKUWF.js +9 -0
- package/dist/stage-bundles/react/chunks/preview-bootstrap-FVKBRYC5.js +137 -0
- package/dist/stage-bundles/react/chunks/react-GONY7QDQ.js +44 -0
- package/dist/stage-bundles/react/chunks/removeAction-4PGYJ6CA.js +7 -0
- package/dist/stage-bundles/react/chunks/removeAnimationBinding-3SYE7FD3.js +7 -0
- package/dist/stage-bundles/react/chunks/removeAttribute-4QEKTGTP.js +7 -0
- package/dist/stage-bundles/react/chunks/removeComputed-5J772TBY.js +7 -0
- package/dist/stage-bundles/react/chunks/removeEvent-7ODGVHMT.js +7 -0
- package/dist/stage-bundles/react/chunks/removeLifecycleHook-3XIZU6TW.js +7 -0
- package/dist/stage-bundles/react/chunks/removeNode-DY2ULYNK.js +10 -0
- package/dist/stage-bundles/react/chunks/removeOption-V4NBH6EE.js +7 -0
- package/dist/stage-bundles/react/chunks/removeParamFromRoute-IMXTBRSZ.js +7 -0
- package/dist/stage-bundles/react/chunks/removeState-EBT6YGSZ.js +7 -0
- package/dist/stage-bundles/react/chunks/removeStore-UJA67G3O.js +7 -0
- package/dist/stage-bundles/react/chunks/removeToken-EDVBR3OL.js +7 -0
- package/dist/stage-bundles/react/chunks/removeValue-UPOTPB3T.js +7 -0
- package/dist/stage-bundles/react/chunks/screen-capture-bootstrap-XMTHAMIX.js +128 -0
- package/dist/stage-bundles/react/chunks/setDestination-M6MQACBQ.js +7 -0
- package/dist/stage-bundles/react/chunks/setHomePage-4U4Z3RU7.js +7 -0
- package/dist/stage-bundles/react/chunks/setHtmlId-MN7AQG5H.js +7 -0
- package/dist/stage-bundles/react/chunks/setName-W4MXGWGB.js +7 -0
- package/dist/stage-bundles/react/chunks/setNodeLayout-K2VNUD2H.js +10 -0
- package/dist/stage-bundles/react/chunks/setOptionsExpression-KQLKXH4C.js +8 -0
- package/dist/stage-bundles/react/chunks/setRender-UJAXCTRA.js +10 -0
- package/dist/stage-bundles/react/chunks/setRepeat-X5GZ4F2P.js +10 -0
- package/dist/stage-bundles/react/chunks/setTagName-5DMTFJTJ.js +7 -0
- package/dist/stage-bundles/react/chunks/updateAction-6KYOHLA3.js +9 -0
- package/dist/stage-bundles/react/chunks/updateAnimationBinding-SENX3Z5S.js +7 -0
- package/dist/stage-bundles/react/chunks/updateAttribute-VWGV37R7.js +12 -0
- package/dist/stage-bundles/react/chunks/updateBounds-WKOI6XJ3.js +7 -0
- package/dist/stage-bundles/react/chunks/updateComputed-7QBBBXFC.js +9 -0
- package/dist/stage-bundles/react/chunks/updateEvent-4PDSQ3Q4.js +11 -0
- package/dist/stage-bundles/react/chunks/updateHtml-EJFF2LPA.js +7 -0
- package/dist/stage-bundles/react/chunks/updateLifecycleHook-36JI5KSF.js +8 -0
- package/dist/stage-bundles/react/chunks/updateOption-ZEZ4TP7K.js +8 -0
- package/dist/stage-bundles/react/chunks/updateRoute-P5OTKOOG.js +7 -0
- package/dist/stage-bundles/react/chunks/updateState-B2RIQRWF.js +11 -0
- package/dist/stage-bundles/react/chunks/updateStyle-FN7CGZTJ.js +7 -0
- package/dist/stage-bundles/react/chunks/updateToken-DMJBW7ZK.js +7 -0
- package/dist/stage-bundles/react/chunks/updateValue-6FPRH4CG.js +8 -0
- package/dist/stage-bundles/react/chunks/user-MDIKS6ZN.js +44 -0
- package/dist/stage-bundles/react/chunks/validateStorePayload-HE65PPAB.js +61 -0
- package/dist/stage-bundles/react/chunks/viewport-DKL3EJOU.js +21 -0
- package/dist/stage-bundles/react/chunks/window-RCEXDLL7.js +32 -0
- package/dist/stage-bundles/react/entry.js +85 -0
- package/dist/stage-bundles/react/framework-dom-client.js +22 -0
- package/dist/stage-bundles/react/framework-dom.js +21 -0
- package/dist/stage-bundles/react/framework-jsx-runtime.js +73 -0
- package/dist/stage-bundles/react/framework.js +20 -0
- package/dist/stage-bundles/react/sdk.js +49 -0
- package/dist/stage-bundles/vue/chunks/addAction-5FCPHQHB.js +9 -0
- package/dist/stage-bundles/vue/chunks/addAnimationBinding-5UBXLWDB.js +7 -0
- package/dist/stage-bundles/vue/chunks/addAttribute-PWIHRX6Y.js +12 -0
- package/dist/stage-bundles/vue/chunks/addComponent-77PUZWLS.js +14 -0
- package/dist/stage-bundles/vue/chunks/addComputed-5J47SS67.js +9 -0
- package/dist/stage-bundles/vue/chunks/addEvent-P2KGVMLM.js +11 -0
- package/dist/stage-bundles/vue/chunks/addLifecycleHook-VSOAZGTG.js +8 -0
- package/dist/stage-bundles/vue/chunks/addNode-DMJXP7VV.js +19 -0
- package/dist/stage-bundles/vue/chunks/addOption-3U3LAV4C.js +8 -0
- package/dist/stage-bundles/vue/chunks/addParamToRoute-43UDJ4YE.js +7 -0
- package/dist/stage-bundles/vue/chunks/addState-ZWDA2CLN.js +11 -0
- package/dist/stage-bundles/vue/chunks/addStore-A4CRKMPO.js +7 -0
- package/dist/stage-bundles/vue/chunks/addToken-7P5NGEG4.js +8 -0
- package/dist/stage-bundles/vue/chunks/addValue-VQW7HQX7.js +8 -0
- package/dist/stage-bundles/vue/chunks/aiRelay-TFBJ7BF4.js +184 -0
- package/dist/stage-bundles/vue/chunks/assets-3W46CFCY.js +42 -0
- package/dist/stage-bundles/vue/chunks/bootstrap-Y4GN2FZZ.js +4078 -0
- package/dist/stage-bundles/vue/chunks/chunk-22J4JOPG.js +9 -0
- package/dist/stage-bundles/vue/chunks/chunk-2H2EQ2RG.js +24 -0
- package/dist/stage-bundles/vue/chunks/chunk-2Y25YY3N.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-3MJKS6VX.js +19 -0
- package/dist/stage-bundles/vue/chunks/chunk-3N472G56.js +4290 -0
- package/dist/stage-bundles/vue/chunks/chunk-3NLDBJQD.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-442CZ2YL.js +144 -0
- package/dist/stage-bundles/vue/chunks/chunk-44GL4NDX.js +25863 -0
- package/dist/stage-bundles/vue/chunks/chunk-4A4WKSGY.js +66 -0
- package/dist/stage-bundles/vue/chunks/chunk-4VX5AMMQ.js +54 -0
- package/dist/stage-bundles/vue/chunks/chunk-65Q2CFW7.js +18 -0
- package/dist/stage-bundles/vue/chunks/chunk-667SIQGW.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-6BXKZHN6.js +19 -0
- package/dist/stage-bundles/vue/chunks/chunk-6E57QUN7.js +21 -0
- package/dist/stage-bundles/vue/chunks/chunk-6QYYO5LM.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-6R3QXFFF.js +47 -0
- package/dist/stage-bundles/vue/chunks/chunk-6RLI7CFQ.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-6TDZGYJG.js +13 -0
- package/dist/stage-bundles/vue/chunks/chunk-AI3MQHWR.js +51 -0
- package/dist/stage-bundles/vue/chunks/chunk-BWZPEI76.js +18 -0
- package/dist/stage-bundles/vue/chunks/chunk-CHZVDVQC.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-CJOJNMRC.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-CXATTVPL.js +24 -0
- package/dist/stage-bundles/vue/chunks/chunk-DBHMBCBM.js +14 -0
- package/dist/stage-bundles/vue/chunks/chunk-DCKGUW2M.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-EB5FGFFG.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-F6JYAVEC.js +15 -0
- package/dist/stage-bundles/vue/chunks/chunk-F77HGOQB.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-FSIANI7E.js +11 -0
- package/dist/stage-bundles/vue/chunks/chunk-FZZDMYBZ.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-GI5C7GB7.js +12838 -0
- package/dist/stage-bundles/vue/chunks/chunk-H75SQT4U.js +105 -0
- package/dist/stage-bundles/vue/chunks/chunk-IDGFZWZY.js +13 -0
- package/dist/stage-bundles/vue/chunks/chunk-IIIXGKVH.js +17 -0
- package/dist/stage-bundles/vue/chunks/chunk-ILZWSEWK.js +19 -0
- package/dist/stage-bundles/vue/chunks/chunk-IO3NSIEJ.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-IRDAUQG3.js +49 -0
- package/dist/stage-bundles/vue/chunks/chunk-ISOZDDO2.js +157 -0
- package/dist/stage-bundles/vue/chunks/chunk-IVU4565D.js +26 -0
- package/dist/stage-bundles/vue/chunks/chunk-JDIO27MU.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-JJVRBJGQ.js +1353 -0
- package/dist/stage-bundles/vue/chunks/chunk-JKOWPFOY.js +172 -0
- package/dist/stage-bundles/vue/chunks/chunk-K7ZULZJF.js +116 -0
- package/dist/stage-bundles/vue/chunks/chunk-KF4MVCJ6.js +13 -0
- package/dist/stage-bundles/vue/chunks/chunk-KHURU62K.js +27 -0
- package/dist/stage-bundles/vue/chunks/chunk-KKLU24SB.js +33 -0
- package/dist/stage-bundles/vue/chunks/chunk-KOBPYD4N.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-LH4ZDX3T.js +58 -0
- package/dist/stage-bundles/vue/chunks/chunk-M3YT4JBL.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-MAPYANXA.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-MMCB6GGX.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-NCUWZXVZ.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-O3KQTA3H.js +21 -0
- package/dist/stage-bundles/vue/chunks/chunk-P7UUT7BU.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-PHVB7SAE.js +22 -0
- package/dist/stage-bundles/vue/chunks/chunk-PKSFATQY.js +10 -0
- package/dist/stage-bundles/vue/chunks/chunk-PU2GET2S.js +18 -0
- package/dist/stage-bundles/vue/chunks/chunk-QBXKRHK5.js +11 -0
- package/dist/stage-bundles/vue/chunks/chunk-QCQXLZJH.js +18 -0
- package/dist/stage-bundles/vue/chunks/chunk-QIOKODGT.js +14 -0
- package/dist/stage-bundles/vue/chunks/chunk-R5DUYWXP.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-RHAVY7VB.js +92 -0
- package/dist/stage-bundles/vue/chunks/chunk-RI7XWDHX.js +10 -0
- package/dist/stage-bundles/vue/chunks/chunk-RZG5LCPH.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-S4NZQRJJ.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-S5L2YBXG.js +143 -0
- package/dist/stage-bundles/vue/chunks/chunk-SF5BLQ7P.js +14 -0
- package/dist/stage-bundles/vue/chunks/chunk-SKOTGWTH.js +140 -0
- package/dist/stage-bundles/vue/chunks/chunk-SPTKNGHA.js +14 -0
- package/dist/stage-bundles/vue/chunks/chunk-TKHCH4WB.js +35 -0
- package/dist/stage-bundles/vue/chunks/chunk-TVB3GD7L.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-TVGXBOIT.js +18 -0
- package/dist/stage-bundles/vue/chunks/chunk-U7U7L7XZ.js +31 -0
- package/dist/stage-bundles/vue/chunks/chunk-UFHA3ODE.js +528 -0
- package/dist/stage-bundles/vue/chunks/chunk-UHGV762U.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-V6MKKC23.js +18 -0
- package/dist/stage-bundles/vue/chunks/chunk-VK4FEQKG.js +18 -0
- package/dist/stage-bundles/vue/chunks/chunk-VZNGMF63.js +12 -0
- package/dist/stage-bundles/vue/chunks/chunk-W5CGYUVM.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-W7QH4UII.js +54 -0
- package/dist/stage-bundles/vue/chunks/chunk-WMV5J37V.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-WXDXWNWW.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-XKFPCFZH.js +8 -0
- package/dist/stage-bundles/vue/chunks/chunk-YCZNHFZA.js +15 -0
- package/dist/stage-bundles/vue/chunks/chunk-YEEGISBQ.js +23 -0
- package/dist/stage-bundles/vue/chunks/chunk-YM3NAGCN.js +8 -0
- package/dist/stage-bundles/vue/chunks/clearDestination-EMCIEDAP.js +7 -0
- package/dist/stage-bundles/vue/chunks/clearName-O7J77F77.js +7 -0
- package/dist/stage-bundles/vue/chunks/clearOptionsExpression-RGDXKYVX.js +7 -0
- package/dist/stage-bundles/vue/chunks/clearRender-DFMNHXXQ.js +7 -0
- package/dist/stage-bundles/vue/chunks/clearRepeat-436RGATR.js +7 -0
- package/dist/stage-bundles/vue/chunks/contentEditor-XVLK5LYS.js +67 -0
- package/dist/stage-bundles/vue/chunks/createAction-CKUAX4TU.js +8 -0
- package/dist/stage-bundles/vue/chunks/createAnimation-URI5366N.js +7 -0
- package/dist/stage-bundles/vue/chunks/createComputed-I23CA5NX.js +8 -0
- package/dist/stage-bundles/vue/chunks/createTextContent-K4G7KNQ5.js +10 -0
- package/dist/stage-bundles/vue/chunks/createValue-D5MP2SMM.js +7 -0
- package/dist/stage-bundles/vue/chunks/disconnectNode-GM5F3ZMB.js +8 -0
- package/dist/stage-bundles/vue/chunks/history-7PFZW7N6.js +51 -0
- package/dist/stage-bundles/vue/chunks/id-VSNJWKHU.js +53 -0
- package/dist/stage-bundles/vue/chunks/main-GQD7B74Q.js +103 -0
- package/dist/stage-bundles/vue/chunks/main-L3KI7XBW.js +154 -0
- package/dist/stage-bundles/vue/chunks/main-SWZDSGE3.js +109 -0
- package/dist/stage-bundles/vue/chunks/main-ULK5YAYM.js +31 -0
- package/dist/stage-bundles/vue/chunks/moveNodeToLastChildOf-X46IGL47.js +12 -0
- package/dist/stage-bundles/vue/chunks/nodeGraph-TTOC6H4R.js +53 -0
- package/dist/stage-bundles/vue/chunks/normalizeEventName-2JPOX7Y6.js +128 -0
- package/dist/stage-bundles/vue/chunks/normalizeLayoutContext-SY3L4IB7.js +9 -0
- package/dist/stage-bundles/vue/chunks/preview-bootstrap-SIVRGDR2.js +135 -0
- package/dist/stage-bundles/vue/chunks/removeAction-PPAIVTW3.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeAnimationBinding-UQ24BSXP.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeAttribute-P2IDGOQH.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeComputed-7C66NNZA.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeEvent-KTSOCV4C.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeLifecycleHook-NKXLF3QT.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeNode-A7C34C42.js +10 -0
- package/dist/stage-bundles/vue/chunks/removeOption-6HW62A5Y.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeParamFromRoute-LIKPDVU4.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeState-PO6J3JYQ.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeStore-5ZZ57NHV.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeToken-BKJE3U6Q.js +7 -0
- package/dist/stage-bundles/vue/chunks/removeValue-5FNPXWNL.js +7 -0
- package/dist/stage-bundles/vue/chunks/screen-capture-bootstrap-GV75P6QF.js +126 -0
- package/dist/stage-bundles/vue/chunks/setDestination-DAYIYYIV.js +7 -0
- package/dist/stage-bundles/vue/chunks/setHomePage-MHCP4P24.js +7 -0
- package/dist/stage-bundles/vue/chunks/setHtmlId-3HYPFT3T.js +7 -0
- package/dist/stage-bundles/vue/chunks/setName-OQOO3URG.js +7 -0
- package/dist/stage-bundles/vue/chunks/setNodeLayout-W5QFJBKT.js +10 -0
- package/dist/stage-bundles/vue/chunks/setOptionsExpression-XZZOJPCM.js +8 -0
- package/dist/stage-bundles/vue/chunks/setRender-NHXZZGME.js +10 -0
- package/dist/stage-bundles/vue/chunks/setRepeat-YZTZFDTQ.js +10 -0
- package/dist/stage-bundles/vue/chunks/setTagName-EGPQ66XI.js +7 -0
- package/dist/stage-bundles/vue/chunks/updateAction-ZSNXUEQA.js +9 -0
- package/dist/stage-bundles/vue/chunks/updateAnimationBinding-X2UXYQKJ.js +7 -0
- package/dist/stage-bundles/vue/chunks/updateAttribute-ODXM7YXA.js +12 -0
- package/dist/stage-bundles/vue/chunks/updateBounds-PEGOZ4FT.js +7 -0
- package/dist/stage-bundles/vue/chunks/updateComputed-6LNN453F.js +9 -0
- package/dist/stage-bundles/vue/chunks/updateEvent-ZHCKBJIM.js +11 -0
- package/dist/stage-bundles/vue/chunks/updateHtml-6BPU5PRY.js +7 -0
- package/dist/stage-bundles/vue/chunks/updateLifecycleHook-JEMQQYM5.js +8 -0
- package/dist/stage-bundles/vue/chunks/updateOption-SH33P5WW.js +8 -0
- package/dist/stage-bundles/vue/chunks/updateRoute-3RRPY2T5.js +7 -0
- package/dist/stage-bundles/vue/chunks/updateState-WRLF4SSC.js +11 -0
- package/dist/stage-bundles/vue/chunks/updateStyle-WAPTDAU5.js +7 -0
- package/dist/stage-bundles/vue/chunks/updateToken-CFIIILXB.js +7 -0
- package/dist/stage-bundles/vue/chunks/updateValue-JTEEC2B6.js +8 -0
- package/dist/stage-bundles/vue/chunks/user-ZLGCTRZX.js +44 -0
- package/dist/stage-bundles/vue/chunks/validateStorePayload-7A2INWJV.js +61 -0
- package/dist/stage-bundles/vue/chunks/viewport-OTNUF4XI.js +21 -0
- package/dist/stage-bundles/vue/chunks/vue-2GZIKYJR.js +37 -0
- package/dist/stage-bundles/vue/chunks/window-73DBL24T.js +32 -0
- package/dist/stage-bundles/vue/entry.js +85 -0
- package/dist/stage-bundles/vue/framework-jsx-runtime.js +34 -0
- package/dist/stage-bundles/vue/framework.js +352 -0
- package/dist/stage-bundles/vue/sdk.js +42 -0
- package/dist/templates/.gitignore.template +29 -0
- package/dist/templates/index.html.template +17 -0
- package/dist/templates/jucie.config.js.template +15 -0
- package/dist/templates/package.json.template +14 -0
- package/dist/templates/sceneGraph/wal.log +0 -0
- package/package.json +92 -0
|
@@ -0,0 +1,1353 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__privateAdd,
|
|
3
|
+
__privateGet,
|
|
4
|
+
__privateMethod,
|
|
5
|
+
__privateSet,
|
|
6
|
+
__publicField,
|
|
7
|
+
__require
|
|
8
|
+
} from "./chunk-4A4WKSGY.js";
|
|
9
|
+
|
|
10
|
+
// ../../node_modules/@jucie.io/engine/dist/main.js
|
|
11
|
+
var p = { PRIMITIVE: 0, OBJECT: 1, ARRAY: 2, RESERVED: 3 };
|
|
12
|
+
var S = class r {
|
|
13
|
+
constructor(e) {
|
|
14
|
+
this.flags = 0, e !== void 0 && (typeof e == "function" ? this.flags |= 1 : e instanceof Set || e instanceof Map ? (this.value = e, this.originalType = p.PRIMITIVE) : typeof e == "object" && e !== null && !Array.isArray(e) ? (this._children = new Map(Object.entries(e).map(([t, n]) => [t, new r(n)])), this.flags |= 16, this.originalType = p.OBJECT) : Array.isArray(e) ? (this._children = new Map(e.map((t, n) => [n, new r(t)])), this.flags |= 16, this.originalType = p.ARRAY) : (this.value = e, this.originalType = p.PRIMITIVE));
|
|
15
|
+
}
|
|
16
|
+
get isFunction() {
|
|
17
|
+
return (this.flags & 1) !== 0;
|
|
18
|
+
}
|
|
19
|
+
set isFunction(e) {
|
|
20
|
+
this.flags = e ? this.flags | 1 : this.flags & -2;
|
|
21
|
+
}
|
|
22
|
+
get isSetOnce() {
|
|
23
|
+
return (this.flags & 2) !== 0;
|
|
24
|
+
}
|
|
25
|
+
set isSetOnce(e) {
|
|
26
|
+
this.flags = e ? this.flags | 2 : this.flags & -3;
|
|
27
|
+
}
|
|
28
|
+
get cached() {
|
|
29
|
+
return (this.flags & 4) !== 0;
|
|
30
|
+
}
|
|
31
|
+
set cached(e) {
|
|
32
|
+
this.flags = e ? this.flags | 4 : this.flags & -5;
|
|
33
|
+
}
|
|
34
|
+
get executed() {
|
|
35
|
+
return (this.flags & 8) !== 0;
|
|
36
|
+
}
|
|
37
|
+
set executed(e) {
|
|
38
|
+
this.flags = e ? this.flags | 8 : this.flags & -9;
|
|
39
|
+
}
|
|
40
|
+
get hasChildrenFlag() {
|
|
41
|
+
return (this.flags & 16) !== 0;
|
|
42
|
+
}
|
|
43
|
+
set hasChildrenFlag(e) {
|
|
44
|
+
this.flags = e ? this.flags | 16 : this.flags & -17;
|
|
45
|
+
}
|
|
46
|
+
get isFixed() {
|
|
47
|
+
return (this.flags & 32) !== 0;
|
|
48
|
+
}
|
|
49
|
+
set isFixed(e) {
|
|
50
|
+
this.flags = e ? this.flags | 32 : this.flags & -33;
|
|
51
|
+
}
|
|
52
|
+
get originalType() {
|
|
53
|
+
return this.flags >> 6 & 3;
|
|
54
|
+
}
|
|
55
|
+
set originalType(e) {
|
|
56
|
+
this.flags = this.flags & -193 | (e & 3) << 6;
|
|
57
|
+
}
|
|
58
|
+
get children() {
|
|
59
|
+
return this._children || (this._children = /* @__PURE__ */ new Map(), this.hasChildrenFlag = true), this._children;
|
|
60
|
+
}
|
|
61
|
+
hasChildren() {
|
|
62
|
+
return this.hasChildrenFlag && this._children && this._children.size > 0;
|
|
63
|
+
}
|
|
64
|
+
isEmpty() {
|
|
65
|
+
return this.value === void 0 && (!this._children || this._children.size === 0);
|
|
66
|
+
}
|
|
67
|
+
get cachedResult() {
|
|
68
|
+
return this._cachedResult;
|
|
69
|
+
}
|
|
70
|
+
set cachedResult(e) {
|
|
71
|
+
this._cachedResult = e;
|
|
72
|
+
}
|
|
73
|
+
get cachedAt() {
|
|
74
|
+
return this._cachedAt;
|
|
75
|
+
}
|
|
76
|
+
set cachedAt(e) {
|
|
77
|
+
this._cachedAt = e;
|
|
78
|
+
}
|
|
79
|
+
get(e) {
|
|
80
|
+
let t = e.shift();
|
|
81
|
+
if (t === void 0) {
|
|
82
|
+
if (this.flags & 1) {
|
|
83
|
+
if ((this.flags & 6) === 6) return this.cachedResult;
|
|
84
|
+
let n = this.value();
|
|
85
|
+
return this.flags & 2 && (this.flags |= 4, this.cachedResult = n, this.cachedAt = Date.now()), this.flags |= 8, n;
|
|
86
|
+
}
|
|
87
|
+
return this.value !== void 0 ? this.value : this.hasChildren() ? this._reconstructFromChildren() : void 0;
|
|
88
|
+
}
|
|
89
|
+
if (this._children?.has(t)) return this._children.get(t).get(e);
|
|
90
|
+
}
|
|
91
|
+
set(e, t) {
|
|
92
|
+
let n = e.shift();
|
|
93
|
+
if (n === void 0) {
|
|
94
|
+
if (this.isFixed) throw new Error("Cannot overwrite fixed value at path. Use clearFixed() first if you need to modify it.");
|
|
95
|
+
return t instanceof Set || t instanceof Map ? (this.value = t, this.flags = 0, this.originalType = p.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 = p.PRIMITIVE), this;
|
|
96
|
+
}
|
|
97
|
+
let i = this.children;
|
|
98
|
+
return i.has(n) || i.set(n, new r()), i.get(n).set(e, t), this;
|
|
99
|
+
}
|
|
100
|
+
setOnce(e, t) {
|
|
101
|
+
let n = e.shift();
|
|
102
|
+
if (n === void 0) {
|
|
103
|
+
if (this.isFixed) throw new Error("Cannot overwrite fixed value at path. Use clearFixed() first if you need to modify it.");
|
|
104
|
+
return t instanceof Set || t instanceof Map ? (this.value = t, this.flags = 2, this.originalType = p.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 = p.PRIMITIVE), this;
|
|
105
|
+
}
|
|
106
|
+
let i = this.children;
|
|
107
|
+
return i.has(n) || i.set(n, new r()), i.get(n).setOnce(e, t), this;
|
|
108
|
+
}
|
|
109
|
+
has(e) {
|
|
110
|
+
let t = e.shift();
|
|
111
|
+
return t === void 0 ? this.value !== void 0 || this.hasChildren() : this._children?.has(t) ? this._children.get(t).has(e) : false;
|
|
112
|
+
}
|
|
113
|
+
hasValue(e) {
|
|
114
|
+
let t = e.shift();
|
|
115
|
+
return t === void 0 ? this.value !== void 0 : this._children?.has(t) ? this._children.get(t).hasValue(e) : false;
|
|
116
|
+
}
|
|
117
|
+
remove(e) {
|
|
118
|
+
let t = e.shift();
|
|
119
|
+
if (t === void 0) return this.value = void 0, this._children = void 0, this.flags = this.flags & -32, this;
|
|
120
|
+
if (this._children?.has(t)) {
|
|
121
|
+
let n = this._children.get(t);
|
|
122
|
+
n.remove(e), n.isEmpty() && this._children.delete(t);
|
|
123
|
+
}
|
|
124
|
+
return this;
|
|
125
|
+
}
|
|
126
|
+
clearCache(e) {
|
|
127
|
+
let t = e.shift();
|
|
128
|
+
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);
|
|
129
|
+
}
|
|
130
|
+
fixed(e, t) {
|
|
131
|
+
let n = e.shift();
|
|
132
|
+
if (n === void 0) {
|
|
133
|
+
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.");
|
|
134
|
+
return this.value = t, this.flags = (typeof t == "function" ? 1 : 0) | 32, this;
|
|
135
|
+
}
|
|
136
|
+
let i = this.children;
|
|
137
|
+
return i.has(n) || i.set(n, new r()), i.get(n).fixed(e, t), this;
|
|
138
|
+
}
|
|
139
|
+
clearFixed(e) {
|
|
140
|
+
let t = e.shift();
|
|
141
|
+
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);
|
|
142
|
+
}
|
|
143
|
+
isFixedValue(e) {
|
|
144
|
+
let t = e.shift();
|
|
145
|
+
return t === void 0 ? this.isFixed : this._children?.has(t) ? this._children.get(t).isFixedValue(e) : false;
|
|
146
|
+
}
|
|
147
|
+
_syncObjectChildren(e) {
|
|
148
|
+
let t = new Set(Object.keys(e)), n = new Set(this.children.keys());
|
|
149
|
+
for (let i of n) t.has(i) || this.children.delete(i);
|
|
150
|
+
for (let [i, s] of Object.entries(e)) if (this.children.has(i) || this.children.set(i, new r()), typeof s == "object" && s !== null && !Array.isArray(s) && typeof s != "function") this.children.get(i)._syncObjectChildren(s);
|
|
151
|
+
else if (Array.isArray(s)) this.children.get(i)._syncArrayChildren(s);
|
|
152
|
+
else {
|
|
153
|
+
let o = this.children.get(i);
|
|
154
|
+
o.value = s, o.flags = typeof s == "function" ? 1 : 0;
|
|
155
|
+
}
|
|
156
|
+
this.value = void 0, this.flags = this.flags & -2, this.originalType = p.OBJECT;
|
|
157
|
+
}
|
|
158
|
+
_syncArrayChildren(e) {
|
|
159
|
+
let t = new Set(e.map((i, s) => s)), n = new Set(this.children.keys());
|
|
160
|
+
for (let i of n) typeof i == "number" && !t.has(i) && this.children.delete(i);
|
|
161
|
+
for (let i = 0; i < e.length; i++) {
|
|
162
|
+
let s = e[i];
|
|
163
|
+
if (this.children.has(i) || this.children.set(i, new r()), typeof s == "object" && s !== null && !Array.isArray(s) && typeof s != "function") this.children.get(i)._syncObjectChildren(s);
|
|
164
|
+
else if (Array.isArray(s)) this.children.get(i)._syncArrayChildren(s);
|
|
165
|
+
else {
|
|
166
|
+
let o = this.children.get(i);
|
|
167
|
+
o.value = s, o.flags = typeof s == "function" ? 1 : 0;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
this.value = void 0, this.flags = this.flags & -2, this.originalType = p.ARRAY;
|
|
171
|
+
}
|
|
172
|
+
_reconstructFromChildren() {
|
|
173
|
+
if (!this._children || this._children.size === 0) return;
|
|
174
|
+
if (this.originalType === p.ARRAY) {
|
|
175
|
+
let t = [];
|
|
176
|
+
for (let [n, i] of this._children) typeof n == "number" && (t[n] = i.get([]));
|
|
177
|
+
return t;
|
|
178
|
+
} else {
|
|
179
|
+
let t = {};
|
|
180
|
+
for (let [n, i] of this._children) t[n] = i.get([]);
|
|
181
|
+
return t;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
var m = class r2 {
|
|
186
|
+
static create(e) {
|
|
187
|
+
return new r2(e);
|
|
188
|
+
}
|
|
189
|
+
constructor(e = {}) {
|
|
190
|
+
return this.load(e);
|
|
191
|
+
}
|
|
192
|
+
load(e) {
|
|
193
|
+
return this.root = new S(e), this;
|
|
194
|
+
}
|
|
195
|
+
get(e) {
|
|
196
|
+
let t = Array.isArray(e) ? [...e] : [e];
|
|
197
|
+
return this.root.get(t);
|
|
198
|
+
}
|
|
199
|
+
update(e, t) {
|
|
200
|
+
let n = Array.isArray(e) ? [...e] : [e], i = this.root.get([...n]), s = t(i);
|
|
201
|
+
return this.root.set([...n], s), this;
|
|
202
|
+
}
|
|
203
|
+
set(e, t) {
|
|
204
|
+
let n = Array.isArray(e) ? [...e] : [e];
|
|
205
|
+
return this.root.set(n, t), this;
|
|
206
|
+
}
|
|
207
|
+
setOnce(e, t) {
|
|
208
|
+
let n = Array.isArray(e) ? [...e] : [e];
|
|
209
|
+
return this.root.setOnce(n, t), this;
|
|
210
|
+
}
|
|
211
|
+
fixed(e, t) {
|
|
212
|
+
let n = Array.isArray(e) ? [...e] : [e];
|
|
213
|
+
return this.root.fixed(n, t), this;
|
|
214
|
+
}
|
|
215
|
+
has(e) {
|
|
216
|
+
let t = Array.isArray(e) ? [...e] : [e];
|
|
217
|
+
return this.root.has(t);
|
|
218
|
+
}
|
|
219
|
+
hasValue(e) {
|
|
220
|
+
let t = Array.isArray(e) ? [...e] : [e];
|
|
221
|
+
return this.root.hasValue(t);
|
|
222
|
+
}
|
|
223
|
+
remove(e) {
|
|
224
|
+
let t = Array.isArray(e) ? [...e] : [e];
|
|
225
|
+
return this.root.remove(t), this;
|
|
226
|
+
}
|
|
227
|
+
clearCache(e) {
|
|
228
|
+
let t = Array.isArray(e) ? [...e] : [e];
|
|
229
|
+
return this.root.clearCache(t), this;
|
|
230
|
+
}
|
|
231
|
+
clearFixed(e) {
|
|
232
|
+
let t = Array.isArray(e) ? [...e] : [e];
|
|
233
|
+
return this.root.clearFixed(t), this;
|
|
234
|
+
}
|
|
235
|
+
isFixed(e) {
|
|
236
|
+
let t = Array.isArray(e) ? [...e] : [e];
|
|
237
|
+
return this.root.isFixedValue(t);
|
|
238
|
+
}
|
|
239
|
+
export() {
|
|
240
|
+
return this._exportNode(this.root);
|
|
241
|
+
}
|
|
242
|
+
static import(e) {
|
|
243
|
+
let t = new r2();
|
|
244
|
+
return t.root = t._importNode(e), t;
|
|
245
|
+
}
|
|
246
|
+
_exportNode(e) {
|
|
247
|
+
let t = { flags: e.flags };
|
|
248
|
+
if (e.isFunction) t.type = "function", t.skipped = true;
|
|
249
|
+
else if (e.hasChildren()) {
|
|
250
|
+
t.type = "map", t.value = [];
|
|
251
|
+
for (let [n, i] of e._children) t.value.push([n, this._exportNode(i)]);
|
|
252
|
+
e.value !== void 0 && (t.nodeValue = e.value);
|
|
253
|
+
} else e.value !== void 0 ? (t.type = "primitive", t.value = e.value) : t.type = "empty";
|
|
254
|
+
return t;
|
|
255
|
+
}
|
|
256
|
+
_importNode(e) {
|
|
257
|
+
let t = new S();
|
|
258
|
+
switch (t.flags = e.flags || 0, e.type) {
|
|
259
|
+
case "function":
|
|
260
|
+
t.value = void 0, t.flags = t.flags & -16;
|
|
261
|
+
break;
|
|
262
|
+
case "primitive":
|
|
263
|
+
t.value = e.value;
|
|
264
|
+
break;
|
|
265
|
+
case "map":
|
|
266
|
+
if (e.value && e.value.length > 0) {
|
|
267
|
+
t._children = /* @__PURE__ */ new Map();
|
|
268
|
+
for (let [n, i] of e.value) {
|
|
269
|
+
let s = typeof n == "string" && /^\d+$/.test(n) ? parseInt(n, 10) : n;
|
|
270
|
+
t._children.set(s, this._importNode(i));
|
|
271
|
+
}
|
|
272
|
+
t.hasChildrenFlag = true;
|
|
273
|
+
}
|
|
274
|
+
e.nodeValue !== void 0 && (t.value = e.nodeValue);
|
|
275
|
+
break;
|
|
276
|
+
case "empty":
|
|
277
|
+
default:
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
return t;
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
var b = Object.freeze(/* @__PURE__ */ Object.create(null));
|
|
284
|
+
function ae(r3) {
|
|
285
|
+
if (globalThis.queueMicrotask && typeof globalThis.queueMicrotask == "function") {
|
|
286
|
+
globalThis.queueMicrotask(r3);
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
setTimeout(r3, 0);
|
|
290
|
+
}
|
|
291
|
+
var _e, _t, _a;
|
|
292
|
+
var j = (_a = class {
|
|
293
|
+
constructor(e, t) {
|
|
294
|
+
__privateAdd(this, _e);
|
|
295
|
+
__privateAdd(this, _t);
|
|
296
|
+
__privateSet(this, _e, e), __privateSet(this, _t, t);
|
|
297
|
+
}
|
|
298
|
+
on(e, t) {
|
|
299
|
+
return __privateGet(this, _t).subscribe(e, b, __privateGet(this, _e), t);
|
|
300
|
+
}
|
|
301
|
+
once(e, t) {
|
|
302
|
+
return __privateGet(this, _t).once(e, b, __privateGet(this, _e), t);
|
|
303
|
+
}
|
|
304
|
+
broadcast(e, ...t) {
|
|
305
|
+
__privateGet(this, _t).publish(e, __privateGet(this, _e), b, t);
|
|
306
|
+
}
|
|
307
|
+
from(e) {
|
|
308
|
+
return { subscribe: (t, n) => __privateGet(this, _t).subscribe(t, e, __privateGet(this, _e), n), once: (t, n) => __privateGet(this, _t).once(t, e, __privateGet(this, _e), n) };
|
|
309
|
+
}
|
|
310
|
+
to(e) {
|
|
311
|
+
return { publish: (t, ...n) => __privateGet(this, _t).publish(t, __privateGet(this, _e), e, n), publishAsync: (t, ...n) => __privateGet(this, _t).publishAsync(t, __privateGet(this, _e), e, n) };
|
|
312
|
+
}
|
|
313
|
+
}, _e = new WeakMap(), _t = new WeakMap(), _a);
|
|
314
|
+
var _e2, _t2, _n, _r_instances, r_fn, _r_static, _a2, i_fn, o_fn, s_fn;
|
|
315
|
+
var w = (_a2 = class {
|
|
316
|
+
constructor({ onError: e = null } = {}) {
|
|
317
|
+
__privateAdd(this, _r_instances);
|
|
318
|
+
__privateAdd(this, _e2, /* @__PURE__ */ new WeakMap());
|
|
319
|
+
__privateAdd(this, _t2, /* @__PURE__ */ new Map());
|
|
320
|
+
__privateAdd(this, _n, null);
|
|
321
|
+
__privateSet(this, _n, e), this.createChannel(b);
|
|
322
|
+
}
|
|
323
|
+
static create(e = {}) {
|
|
324
|
+
return new _a2(e);
|
|
325
|
+
}
|
|
326
|
+
channel(e) {
|
|
327
|
+
return this.createChannel(e);
|
|
328
|
+
}
|
|
329
|
+
createChannel(e) {
|
|
330
|
+
if (__privateGet(this, _e2).has(e)) return __privateGet(this, _e2).get(e);
|
|
331
|
+
let t = new j(e, this);
|
|
332
|
+
return __privateGet(this, _e2).set(e, t), t;
|
|
333
|
+
}
|
|
334
|
+
subscribe(e, t, n, i) {
|
|
335
|
+
let s = { from: t, to: n, handler: i };
|
|
336
|
+
return __privateMethod(this, _r_instances, r_fn).call(this, e).add(s), () => {
|
|
337
|
+
let o = __privateGet(this, _t2).get(e);
|
|
338
|
+
o && o.delete(s);
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
once(e, t, n, i) {
|
|
342
|
+
let s = null, o = (c) => {
|
|
343
|
+
try {
|
|
344
|
+
i(c);
|
|
345
|
+
} finally {
|
|
346
|
+
s && s();
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
return s = this.subscribe(e, t, n, o), s;
|
|
350
|
+
}
|
|
351
|
+
offAllFor(e) {
|
|
352
|
+
for (let t of __privateGet(this, _t2).values()) for (let n of Array.from(t)) (n.from === e || n.to === e) && t.delete(n);
|
|
353
|
+
}
|
|
354
|
+
listenerCount(e) {
|
|
355
|
+
let t = __privateGet(this, _t2).get(e);
|
|
356
|
+
return t ? t.size : 0;
|
|
357
|
+
}
|
|
358
|
+
publish(e, t, n, i) {
|
|
359
|
+
__privateMethod(this, _r_instances, s_fn).call(this, e, t, n, i);
|
|
360
|
+
}
|
|
361
|
+
publishAsync(e, t, n, i) {
|
|
362
|
+
ae(() => __privateMethod(this, _r_instances, s_fn).call(this, e, t, n, i));
|
|
363
|
+
}
|
|
364
|
+
broadcast(e, t, n) {
|
|
365
|
+
this.publish(e, t, b, n);
|
|
366
|
+
}
|
|
367
|
+
}, _e2 = new WeakMap(), _t2 = new WeakMap(), _n = new WeakMap(), _r_instances = new WeakSet(), r_fn = function(e) {
|
|
368
|
+
let t = __privateGet(this, _t2).get(e);
|
|
369
|
+
return t || (t = /* @__PURE__ */ new Set(), __privateGet(this, _t2).set(e, t)), t;
|
|
370
|
+
}, _r_static = new WeakSet(), i_fn = function(e, t) {
|
|
371
|
+
return e === b || t === b || e === t;
|
|
372
|
+
}, o_fn = function(e, t, n, i) {
|
|
373
|
+
var _a11, _b;
|
|
374
|
+
return __privateMethod(_a11 = _a2, _r_static, i_fn).call(_a11, e, n) && __privateMethod(_b = _a2, _r_static, i_fn).call(_b, t, i);
|
|
375
|
+
}, s_fn = function(e, t, n, i) {
|
|
376
|
+
var _a11;
|
|
377
|
+
let s = __privateGet(this, _t2).get(e);
|
|
378
|
+
if (!(!s || s.size === 0)) {
|
|
379
|
+
for (let o of s) if (o.to !== t && __privateMethod(_a11 = _a2, _r_static, o_fn).call(_a11, t, n, o.from, o.to)) try {
|
|
380
|
+
o.handler(...i);
|
|
381
|
+
} catch (c) {
|
|
382
|
+
__privateGet(this, _n) && __privateGet(this, _n).call(this, c, { event: e, from: t, to: n, listener: o });
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}, __privateAdd(_a2, _r_static), _a2);
|
|
386
|
+
var A = { trace: 10, debug: 20, info: 30, warn: 40, error: 50, silent: 90 };
|
|
387
|
+
var _e3, _t3, _n2, _a3;
|
|
388
|
+
var E = (_a3 = class {
|
|
389
|
+
constructor({ level: e = "info", sinks: t = [], base: n = {} } = {}) {
|
|
390
|
+
__privateAdd(this, _e3);
|
|
391
|
+
__privateAdd(this, _t3);
|
|
392
|
+
__privateAdd(this, _n2);
|
|
393
|
+
__privateSet(this, _e3, A[e] ?? A.info), __privateSet(this, _t3, t), __privateSet(this, _n2, n);
|
|
394
|
+
}
|
|
395
|
+
static create(e = {}) {
|
|
396
|
+
return new _a3(e);
|
|
397
|
+
}
|
|
398
|
+
setLevel(e) {
|
|
399
|
+
__privateSet(this, _e3, A[e] ?? __privateGet(this, _e3));
|
|
400
|
+
}
|
|
401
|
+
child(e = {}, t = []) {
|
|
402
|
+
return new _a3({ level: this.level, sinks: [...__privateGet(this, _t3), ...t], base: { ...__privateGet(this, _n2), ...e } });
|
|
403
|
+
}
|
|
404
|
+
get level() {
|
|
405
|
+
return Object.entries(A).find(([e, t]) => t === __privateGet(this, _e3))?.[0] ?? "info";
|
|
406
|
+
}
|
|
407
|
+
log(e, t, n = {}) {
|
|
408
|
+
if ((A[e] ?? A.info) < __privateGet(this, _e3)) return;
|
|
409
|
+
let s = { t: Date.now(), level: e, msg: t, ...__privateGet(this, _n2), ...n };
|
|
410
|
+
for (let o of __privateGet(this, _t3)) o(s);
|
|
411
|
+
}
|
|
412
|
+
trace(e, t) {
|
|
413
|
+
this.log("trace", e, t);
|
|
414
|
+
}
|
|
415
|
+
debug(e, t) {
|
|
416
|
+
this.log("debug", e, t);
|
|
417
|
+
}
|
|
418
|
+
info(e, t) {
|
|
419
|
+
this.log("info", e, t);
|
|
420
|
+
}
|
|
421
|
+
warn(e, t) {
|
|
422
|
+
this.log("warn", e, t);
|
|
423
|
+
}
|
|
424
|
+
error(e, t) {
|
|
425
|
+
this.log("error", e, t);
|
|
426
|
+
}
|
|
427
|
+
progress(e, t, n = "", i = {}) {
|
|
428
|
+
let s = { t: Date.now(), type: "progress", level: "info", msg: n, current: e, total: t, message: n, percentage: Math.round(e / t * 100), ...__privateGet(this, _n2), ...i };
|
|
429
|
+
for (let o of __privateGet(this, _t3)) o(s);
|
|
430
|
+
}
|
|
431
|
+
metric(e, t, n = "ms", i = {}) {
|
|
432
|
+
let s = { t: Date.now(), type: "metric", level: "info", msg: `${e}: ${t}${n}`, name: e, value: t, unit: n, ...__privateGet(this, _n2), ...i };
|
|
433
|
+
for (let o of __privateGet(this, _t3)) o(s);
|
|
434
|
+
}
|
|
435
|
+
}, _e3 = new WeakMap(), _t3 = new WeakMap(), _n2 = new WeakMap(), _a3);
|
|
436
|
+
var R = (r3) => {
|
|
437
|
+
let { t: e, level: t, msg: n, ns: i, ...s } = r3, o = new Date(e).toISOString(), c = t === "error" ? console.error : t === "warn" ? console.warn : console.log, l2 = `${i ? `[${i}] ` : ""}${n}`;
|
|
438
|
+
Object.keys(s).length > 0 ? c(`[${o}] ${t.toUpperCase()} ${l2}`, s) : c(`[${o}] ${t.toUpperCase()} ${l2}`);
|
|
439
|
+
};
|
|
440
|
+
var D = (r3 = 1e3) => {
|
|
441
|
+
let e = [];
|
|
442
|
+
return { sink: (t) => {
|
|
443
|
+
e.push(t), e.length > r3 && e.shift();
|
|
444
|
+
}, read: () => e.slice(), clear: () => {
|
|
445
|
+
e.length = 0;
|
|
446
|
+
} };
|
|
447
|
+
};
|
|
448
|
+
function F(r3, e, t = "value") {
|
|
449
|
+
if (Array.isArray(e)) {
|
|
450
|
+
for (let i of e) if (X(r3, i)) return true;
|
|
451
|
+
let n = e.map($).join(" | ");
|
|
452
|
+
throw new TypeError(`${t} must be one of: ${n}. Got ${$(r3)}`);
|
|
453
|
+
}
|
|
454
|
+
if (!X(r3, e)) throw new TypeError(`${t} must be ${$(e)}. Got ${$(r3)}`);
|
|
455
|
+
return true;
|
|
456
|
+
}
|
|
457
|
+
function X(r3, e) {
|
|
458
|
+
return e === String ? typeof r3 == "string" : e === Number ? typeof r3 == "number" && !isNaN(r3) : e === Boolean ? typeof r3 == "boolean" : e === Symbol ? typeof r3 == "symbol" : e === BigInt ? typeof r3 == "bigint" : e === Function ? typeof r3 == "function" : e === Array ? Array.isArray(r3) : e === Object ? r3 !== null && typeof r3 == "object" && !Array.isArray(r3) : r3 instanceof e;
|
|
459
|
+
}
|
|
460
|
+
function $(r3) {
|
|
461
|
+
return r3 === String ? "String" : r3 === Number ? "Number" : r3 === Boolean ? "Boolean" : r3 === Array ? "Array" : r3 === Object ? "Object" : r3 === Function ? "Function" : r3 === Date ? "Date" : r3 === RegExp ? "RegExp" : r3 === Promise ? "Promise" : r3 === Map ? "Map" : r3 === Set ? "Set" : r3 === WeakMap ? "WeakMap" : r3 === WeakSet ? "WeakSet" : r3 === Symbol ? "Symbol" : r3 === BigInt ? "BigInt" : r3 === Error ? "Error" : typeof r3 == "string" ? "string" : typeof r3 == "number" ? "number" : typeof r3 == "boolean" ? "boolean" : typeof r3 == "symbol" ? "symbol" : typeof r3 == "bigint" ? "bigint" : typeof r3 == "function" ? "function" : Array.isArray(r3) ? "Array" : r3 === null ? "null" : r3 === void 0 ? "undefined" : typeof r3 == "object" ? r3.constructor?.name || "Object" : "unknown";
|
|
462
|
+
}
|
|
463
|
+
function C(r3, e = "value") {
|
|
464
|
+
return (t) => F(t, r3, e);
|
|
465
|
+
}
|
|
466
|
+
var P = /* @__PURE__ */ new Map();
|
|
467
|
+
var L = /* @__PURE__ */ new WeakMap();
|
|
468
|
+
var x = (r3) => {
|
|
469
|
+
if (L.has(r3)) return L.get(r3);
|
|
470
|
+
};
|
|
471
|
+
var g = (r3, e = [], ...t) => {
|
|
472
|
+
let n = e.length > 0 ? C(e, "return value") : null;
|
|
473
|
+
if (P.has(r3)) return console.warn(`Definition type "${r3}" already exists`), P.get(r3);
|
|
474
|
+
let i = (...s) => {
|
|
475
|
+
if (s.length === 0) throw new Error("At least one argument is required");
|
|
476
|
+
let [o, c] = s, a = typeof o == "string" ? o : void 0, l2 = typeof o == "function" ? o : c;
|
|
477
|
+
C(Function, "factory")(l2);
|
|
478
|
+
let f = (...h) => {
|
|
479
|
+
try {
|
|
480
|
+
let u = l2.apply(null, [...h, ...t]);
|
|
481
|
+
if (n && u === void 0) throw new Error(`Factory ${r3} must return a value for ${a}`);
|
|
482
|
+
return n && n(u), u;
|
|
483
|
+
} catch (u) {
|
|
484
|
+
throw console.error(`Error creating definition "${a}"`, u), u;
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
return Object.defineProperty(f, "_name", { value: a, enumerable: false, configurable: false }), L.set(f, r3), f;
|
|
488
|
+
};
|
|
489
|
+
return P.set(r3, i), i;
|
|
490
|
+
};
|
|
491
|
+
var T = (r3) => r3 && r3.constructor && r3.constructor.name === "AsyncFunction";
|
|
492
|
+
var V = (r3, e) => T(e) || r3.some(T);
|
|
493
|
+
var _ = (r3, e) => e.length === 0 ? r3 : e.length === 1 && Array.isArray(e[0]) ? e[0] : e;
|
|
494
|
+
var I = (r3) => r3 ? Array.isArray(r3) ? r3 : [r3] : [];
|
|
495
|
+
var pe = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
496
|
+
var ye = /* @__PURE__ */ new Set(["use", "install", "uninstall", "relay", "state", "debug"]);
|
|
497
|
+
var k = 64;
|
|
498
|
+
var te = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
499
|
+
function ne(r3, e = "key") {
|
|
500
|
+
if (pe.has(r3)) throw new Error(`Illegal key "${r3}" in ${e}`);
|
|
501
|
+
}
|
|
502
|
+
function y(r3) {
|
|
503
|
+
if (ne(r3, "namespace"), typeof r3 != "string") throw new Error(`Namespace must be a string, got ${typeof r3}`);
|
|
504
|
+
if (!te.test(r3)) throw new Error(`Invalid namespace "${r3}". Must be a valid JS identifier`);
|
|
505
|
+
if (r3.length > k) throw new Error(`Namespace "${r3}" too long (max ${k} chars)`);
|
|
506
|
+
if (ye.has(r3)) throw new Error(`Namespace "${r3}" is reserved`);
|
|
507
|
+
return r3;
|
|
508
|
+
}
|
|
509
|
+
function re(r3) {
|
|
510
|
+
let e = r3?.manifest, t = e?.name ?? "<unknown service>";
|
|
511
|
+
if (!e?.namespace || typeof r3.install != "function") throw new Error(`${t} must have a namespace and install method`);
|
|
512
|
+
if (y(e.namespace), Object.prototype.hasOwnProperty.call(e, "default")) throw new Error(`Manifest for "${t}" has a "default" key \u2014 did you mean "defaults"?`);
|
|
513
|
+
if (e.defaults != null && (typeof e.defaults != "object" || Array.isArray(e.defaults))) throw new Error(`Manifest "defaults" for "${t}" must be a plain object`);
|
|
514
|
+
if (e.dependencies != null) {
|
|
515
|
+
if (!Array.isArray(e.dependencies)) throw new Error(`Manifest "dependencies" for "${t}" must be an array`);
|
|
516
|
+
for (let n of e.dependencies) if (!n?.manifest?.namespace || typeof n.install != "function") throw new Error(`Dependency of "${t}" is not an installable service (needs a manifest.namespace and install method)`);
|
|
517
|
+
}
|
|
518
|
+
return e;
|
|
519
|
+
}
|
|
520
|
+
function z(r3, e, t = "member") {
|
|
521
|
+
if (ne(r3, `${t}:${e}`), typeof r3 != "string") throw new Error(`${t} name in ${e} must be a string`);
|
|
522
|
+
if (!te.test(r3)) throw new Error(`Invalid ${t} name "${r3}" in ${e}`);
|
|
523
|
+
if (r3.length > k) throw new Error(`${t} name "${r3}" in ${e} too long (max ${k})`);
|
|
524
|
+
return r3;
|
|
525
|
+
}
|
|
526
|
+
function U(r3, e) {
|
|
527
|
+
if (!e || typeof e != "object") return e || r3;
|
|
528
|
+
if (!r3 || typeof r3 != "object") return e;
|
|
529
|
+
let t = { ...r3 };
|
|
530
|
+
for (let n in e) e.hasOwnProperty(n) && (e[n] && typeof e[n] == "object" && !Array.isArray(e[n]) && r3[n] && typeof r3[n] == "object" && !Array.isArray(r3[n]) ? t[n] = U(r3[n], e[n]) : t[n] = e[n]);
|
|
531
|
+
return t;
|
|
532
|
+
}
|
|
533
|
+
var B = () => {
|
|
534
|
+
let r3 = ["DEVELOPMENT", "TEST", "DEV"];
|
|
535
|
+
return typeof process < "u" && "production" ? r3.includes("production".toUpperCase()) : typeof globalThis < "u" && globalThis.__ENV__?.NODE_ENV ? r3.includes(globalThis.__ENV__.NODE_ENV.toUpperCase()) : false;
|
|
536
|
+
};
|
|
537
|
+
var O = (r3) => r3 != null && typeof r3.then == "function";
|
|
538
|
+
var ie = /* @__PURE__ */ new Set();
|
|
539
|
+
var _a4, _e4, _t4, _n3, _r, _i, _o, _s, _u, _f, _l, _d, _r_instances2, h_fn, w_fn, A_fn, E_fn, p_fn, x_fn, I_fn, T_fn, O_fn, M_fn, g_fn, S_fn, $_fn, C_fn, __fn, m_fn, y_fn, c_fn, b_fn, a_fn;
|
|
540
|
+
var G = (_a4 = class {
|
|
541
|
+
constructor(e = {}, t = _a4.options) {
|
|
542
|
+
__privateAdd(this, _r_instances2);
|
|
543
|
+
__privateAdd(this, _e4, /* @__PURE__ */ new WeakMap());
|
|
544
|
+
__privateAdd(this, _t4, /* @__PURE__ */ new WeakMap());
|
|
545
|
+
__privateAdd(this, _n3, /* @__PURE__ */ new WeakMap());
|
|
546
|
+
__privateAdd(this, _r, /* @__PURE__ */ new WeakMap());
|
|
547
|
+
__privateAdd(this, _i, /* @__PURE__ */ new WeakMap());
|
|
548
|
+
__privateAdd(this, _o, /* @__PURE__ */ new WeakMap());
|
|
549
|
+
__privateAdd(this, _s);
|
|
550
|
+
__privateAdd(this, _u, {});
|
|
551
|
+
__privateAdd(this, _f);
|
|
552
|
+
__privateAdd(this, _l);
|
|
553
|
+
__privateAdd(this, _d);
|
|
554
|
+
__privateSet(this, _s, { ..._a4.options, ...t }), __privateSet(this, _u, { ...e });
|
|
555
|
+
for (let [n, i] of Object.entries(__privateGet(this, _u))) Object.defineProperty(this, n, { value: i, enumerable: true, configurable: false, writable: false });
|
|
556
|
+
__privateSet(this, _d, m.create()), __privateSet(this, _f, w.create()), __privateSet(this, _l, E.create({ level: B() ? "debug" : "info", sinks: [R, D(2e3).sink] }));
|
|
557
|
+
}
|
|
558
|
+
static create(e = {}) {
|
|
559
|
+
return new _a4(e, _a4.options);
|
|
560
|
+
}
|
|
561
|
+
static configure(e) {
|
|
562
|
+
return e = { ..._a4.options, ...e }, { create: (t = {}) => new _a4(t, e) };
|
|
563
|
+
}
|
|
564
|
+
get cache() {
|
|
565
|
+
return __privateGet(this, _d);
|
|
566
|
+
}
|
|
567
|
+
get relay() {
|
|
568
|
+
return __privateGet(this, _f);
|
|
569
|
+
}
|
|
570
|
+
get log() {
|
|
571
|
+
return __privateGet(this, _l);
|
|
572
|
+
}
|
|
573
|
+
use(...e) {
|
|
574
|
+
return __privateMethod(this, _r_instances2, p_fn).call(this, e, this);
|
|
575
|
+
}
|
|
576
|
+
install(...e) {
|
|
577
|
+
return __privateMethod(this, _r_instances2, h_fn).call(this, this, e, /* @__PURE__ */ new Set());
|
|
578
|
+
}
|
|
579
|
+
uninstall(...e) {
|
|
580
|
+
return __privateMethod(this, _r_instances2, E_fn).call(this, this, e);
|
|
581
|
+
}
|
|
582
|
+
}, _e4 = new WeakMap(), _t4 = new WeakMap(), _n3 = new WeakMap(), _r = new WeakMap(), _i = new WeakMap(), _o = new WeakMap(), _s = new WeakMap(), _u = new WeakMap(), _f = new WeakMap(), _l = new WeakMap(), _d = new WeakMap(), _r_instances2 = new WeakSet(), h_fn = function(e, t, n = /* @__PURE__ */ new Set()) {
|
|
583
|
+
let i = [...t], s = () => {
|
|
584
|
+
for (; i.length > 0; ) {
|
|
585
|
+
let o = __privateMethod(this, _r_instances2, w_fn).call(this, e, i.shift(), n);
|
|
586
|
+
if (O(o)) return o.then(s);
|
|
587
|
+
}
|
|
588
|
+
return __privateMethod(this, _r_instances2, A_fn).call(this, e), e;
|
|
589
|
+
};
|
|
590
|
+
return s();
|
|
591
|
+
}, w_fn = function(e, t, n) {
|
|
592
|
+
re(t);
|
|
593
|
+
let i = t.manifest.namespace;
|
|
594
|
+
if (n.has(i)) throw new Error(`Circular service dependency: ${[...n, i].join(" -> ")}`);
|
|
595
|
+
if (Object.prototype.hasOwnProperty.call(e, i)) throw new Error(`${i} already exists`);
|
|
596
|
+
let s = U(__privateGet(this, _s) || {}, t.config || t.manifest.defaults || {}), o = __privateMethod(this, _r_instances2, c_fn).call(this, e, i), c = __privateMethod(this, _r_instances2, b_fn).call(this, e, i, o, s, t.manifest);
|
|
597
|
+
n.add(i);
|
|
598
|
+
let a = () => {
|
|
599
|
+
let l2 = __privateMethod(this, _r_instances2, a_fn).call(this, e, i, o, s, t.manifest), f = t.install(l2, s);
|
|
600
|
+
if (O(f)) return f.then((h) => {
|
|
601
|
+
__privateMethod(this, _r_instances2, p_fn).call(this, h, e), n.delete(i);
|
|
602
|
+
});
|
|
603
|
+
__privateMethod(this, _r_instances2, p_fn).call(this, f, e), n.delete(i);
|
|
604
|
+
};
|
|
605
|
+
if (t.manifest.dependencies?.length) {
|
|
606
|
+
let l2 = t.manifest.dependencies.filter((u) => u.unique), f = t.manifest.dependencies.filter((u) => !u.unique && !Object.prototype.hasOwnProperty.call(e, u.manifest.namespace)), h;
|
|
607
|
+
if (l2.length > 0 && (h = __privateMethod(this, _r_instances2, h_fn).call(this, c, l2, n)), f.length > 0 && (h = O(h) ? h.then(() => __privateMethod(this, _r_instances2, h_fn).call(this, e, f, n)) : __privateMethod(this, _r_instances2, h_fn).call(this, e, f, n)), O(h)) return h.then(a);
|
|
608
|
+
}
|
|
609
|
+
return a();
|
|
610
|
+
}, A_fn = function(e) {
|
|
611
|
+
let t = __privateGet(this, _i).get(e);
|
|
612
|
+
if (t?.size) {
|
|
613
|
+
for (let [n, i] of t) try {
|
|
614
|
+
i();
|
|
615
|
+
} finally {
|
|
616
|
+
t.delete(n);
|
|
617
|
+
}
|
|
618
|
+
__privateGet(this, _i).delete(e);
|
|
619
|
+
}
|
|
620
|
+
}, E_fn = function(e, t) {
|
|
621
|
+
let n = __privateGet(this, _o).get(e), i = __privateGet(this, _e4).get(e), s = __privateGet(this, _t4).get(e), o = __privateMethod(this, _r_instances2, y_fn).call(this, e);
|
|
622
|
+
for (let c of t) {
|
|
623
|
+
n?.get(c)?.(), n?.delete(c);
|
|
624
|
+
let a = i?.get(c);
|
|
625
|
+
if (a && __privateGet(this, _f).offAllFor(a), o?.delete(c), __privateGet(this, _i).get(e)?.delete(c), __privateGet(this, _r).get(e)?.delete(c), Object.prototype.hasOwnProperty.call(e, c) && delete e[c], i?.delete(c), s?.delete(c), s) for (let l2 of s.values()) Object.prototype.hasOwnProperty.call(l2, c) && delete l2[c];
|
|
626
|
+
}
|
|
627
|
+
return n && n.size === 0 && __privateGet(this, _o).delete(e), this;
|
|
628
|
+
}, p_fn = function(e, t = this) {
|
|
629
|
+
for (let n of e) if (n) switch (x(n)) {
|
|
630
|
+
case "MIDDLEWARE":
|
|
631
|
+
__privateMethod(this, _r_instances2, T_fn).call(this, n, t);
|
|
632
|
+
break;
|
|
633
|
+
case "GETTERS":
|
|
634
|
+
__privateMethod(this, _r_instances2, I_fn).call(this, n, t);
|
|
635
|
+
break;
|
|
636
|
+
case "ACTIONS":
|
|
637
|
+
__privateMethod(this, _r_instances2, x_fn).call(this, n, t);
|
|
638
|
+
break;
|
|
639
|
+
case "INITIALIZE":
|
|
640
|
+
__privateMethod(this, _r_instances2, O_fn).call(this, n, t);
|
|
641
|
+
break;
|
|
642
|
+
case "UNINSTALL":
|
|
643
|
+
__privateMethod(this, _r_instances2, M_fn).call(this, n, t);
|
|
644
|
+
break;
|
|
645
|
+
default:
|
|
646
|
+
throw new Error(`Unknown definition type: ${x(n)}`);
|
|
647
|
+
}
|
|
648
|
+
return this;
|
|
649
|
+
}, x_fn = function(e, t = this) {
|
|
650
|
+
let n = y(e._name), i = __privateMethod(this, _r_instances2, c_fn).call(this, t, n), s = __privateMethod(this, _r_instances2, a_fn).call(this, t, n, i), o = e(s), c = __privateMethod(this, _r_instances2, y_fn).call(this, t).get(n) || [];
|
|
651
|
+
for (let [l2, f] of Object.entries(o)) {
|
|
652
|
+
if (l2 = z(l2, n, "action"), Object.prototype.hasOwnProperty.call(i, l2)) throw new Error(`Action "${n}.${l2}" already exists on this target`);
|
|
653
|
+
let h = __privateMethod(this, _r_instances2, S_fn).call(this, n, l2, f, i);
|
|
654
|
+
if (c.length === 0) {
|
|
655
|
+
i[l2] = h;
|
|
656
|
+
continue;
|
|
657
|
+
}
|
|
658
|
+
let u = __privateMethod(this, _r_instances2, $_fn).call(this, c, h);
|
|
659
|
+
i[l2] = (...d) => u(l2, { namespace: n, action: l2, args: d });
|
|
660
|
+
}
|
|
661
|
+
let a = __privateGet(this, _r).get(t);
|
|
662
|
+
return a || (a = /* @__PURE__ */ new Set(), __privateGet(this, _r).set(t, a)), a.add(n), __privateMethod(this, _r_instances2, g_fn).call(this, t, n, i);
|
|
663
|
+
}, I_fn = function(e, t = this) {
|
|
664
|
+
let n = y(e._name), i = __privateMethod(this, _r_instances2, c_fn).call(this, t, n), s = __privateMethod(this, _r_instances2, a_fn).call(this, t, n, i), o = e(s);
|
|
665
|
+
for (let [c, a] of Object.entries(o)) {
|
|
666
|
+
z(c, n, "getter");
|
|
667
|
+
let l2 = a.bind(i);
|
|
668
|
+
Object.defineProperty(i, c, { get: () => l2(), enumerable: true, configurable: false });
|
|
669
|
+
}
|
|
670
|
+
return __privateMethod(this, _r_instances2, g_fn).call(this, t, n, i);
|
|
671
|
+
}, T_fn = function(e, t = this) {
|
|
672
|
+
let n = y(e._name);
|
|
673
|
+
if (__privateGet(this, _r).get(t)?.has(n)) throw new Error(`Middleware for "${n}" must be installed before its actions (middleware does not apply retroactively)`);
|
|
674
|
+
let i = __privateMethod(this, _r_instances2, c_fn).call(this, t, n), s = __privateMethod(this, _r_instances2, a_fn).call(this, t, n, i), o = e(s), c = __privateMethod(this, _r_instances2, y_fn).call(this, t), a = c.get(n) || [], l2 = I(o).map((f) => {
|
|
675
|
+
if (typeof f != "function") throw new Error("Middleware must be a function");
|
|
676
|
+
return f;
|
|
677
|
+
});
|
|
678
|
+
return c.set(n, a.concat(l2)), this;
|
|
679
|
+
}, O_fn = function(e, t = this) {
|
|
680
|
+
let n = y(e._name), i = __privateMethod(this, _r_instances2, c_fn).call(this, t, n), s = __privateMethod(this, _r_instances2, a_fn).call(this, t, n, i), o = () => e(s), c = __privateGet(this, _i).get(t);
|
|
681
|
+
return c || (c = /* @__PURE__ */ new Map(), __privateGet(this, _i).set(t, c)), c.set(n, o), this;
|
|
682
|
+
}, M_fn = function(e, t = this) {
|
|
683
|
+
let n = y(e._name), i = __privateMethod(this, _r_instances2, c_fn).call(this, t, n), s = __privateMethod(this, _r_instances2, a_fn).call(this, t, n, i), o = () => e(s), c = __privateGet(this, _o).get(t);
|
|
684
|
+
return c || (c = /* @__PURE__ */ new Map(), __privateGet(this, _o).set(t, c)), c.set(n, o), this;
|
|
685
|
+
}, g_fn = function(e, t, n) {
|
|
686
|
+
return Object.prototype.hasOwnProperty.call(e, t) ? n = e[t] : Object.defineProperty(e, t, { value: n, enumerable: true, configurable: true, writable: false }), __privateGet(this, _e4).get(e)?.set(t, n), e;
|
|
687
|
+
}, S_fn = function(e, t, n, i) {
|
|
688
|
+
let s = n.bind(i), o = (c) => {
|
|
689
|
+
throw c.action = t, c.namespace = e, __privateGet(this, _l).error(`Error in action "${e}.${t}"`, { error: c }), c;
|
|
690
|
+
};
|
|
691
|
+
return T(s) ? async (...c) => {
|
|
692
|
+
try {
|
|
693
|
+
return await s(...c);
|
|
694
|
+
} catch (a) {
|
|
695
|
+
o(a);
|
|
696
|
+
}
|
|
697
|
+
} : (...c) => {
|
|
698
|
+
try {
|
|
699
|
+
return s(...c);
|
|
700
|
+
} catch (a) {
|
|
701
|
+
o(a);
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
}, $_fn = function(e, t) {
|
|
705
|
+
return V(I(e), t) ? __privateMethod(this, _r_instances2, __fn).call(this, e, t) : __privateMethod(this, _r_instances2, C_fn).call(this, e, t);
|
|
706
|
+
}, C_fn = function(e, t) {
|
|
707
|
+
let n = I(e);
|
|
708
|
+
return (i, s) => {
|
|
709
|
+
let o = -1, c = (a, l2) => {
|
|
710
|
+
if (a <= o) throw new Error("next() called multiple times");
|
|
711
|
+
o = a;
|
|
712
|
+
let f = n[a];
|
|
713
|
+
if (!f) {
|
|
714
|
+
let u = t(...l2);
|
|
715
|
+
if (B() && O(u)) {
|
|
716
|
+
let d = `${s.namespace}.${i}`;
|
|
717
|
+
ie.has(d) || (ie.add(d), __privateGet(this, _l).warn(`Action "${d}" 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.`));
|
|
718
|
+
}
|
|
719
|
+
return u;
|
|
720
|
+
}
|
|
721
|
+
let h = { ...s, args: l2 };
|
|
722
|
+
return __privateMethod(this, _r_instances2, m_fn).call(this, f, i, h, (...u) => {
|
|
723
|
+
let d = _(l2, u);
|
|
724
|
+
return c(a + 1, d);
|
|
725
|
+
});
|
|
726
|
+
};
|
|
727
|
+
return c(0, s.args);
|
|
728
|
+
};
|
|
729
|
+
}, __fn = function(e, t) {
|
|
730
|
+
let n = I(e);
|
|
731
|
+
return async (i, s) => {
|
|
732
|
+
let o = -1, c = async (a, l2) => {
|
|
733
|
+
if (a <= o) throw new Error("next() called multiple times");
|
|
734
|
+
o = a;
|
|
735
|
+
let f = n[a];
|
|
736
|
+
if (!f) return await t(...l2);
|
|
737
|
+
let h = { ...s, args: l2 };
|
|
738
|
+
return await __privateMethod(this, _r_instances2, m_fn).call(this, f, i, h, (...u) => {
|
|
739
|
+
let d = _(l2, u);
|
|
740
|
+
return c(a + 1, d);
|
|
741
|
+
});
|
|
742
|
+
};
|
|
743
|
+
return c(0, s.args);
|
|
744
|
+
};
|
|
745
|
+
}, m_fn = function(e, t, n, i) {
|
|
746
|
+
try {
|
|
747
|
+
return e(t, n, i);
|
|
748
|
+
} catch (s) {
|
|
749
|
+
throw s.middleware = e.name || "<anon>", s.action = t, s;
|
|
750
|
+
}
|
|
751
|
+
}, y_fn = function(e) {
|
|
752
|
+
let t = __privateGet(this, _n3).get(e);
|
|
753
|
+
return t || (t = /* @__PURE__ */ new Map(), __privateGet(this, _n3).set(e, t)), t;
|
|
754
|
+
}, c_fn = function(e, t) {
|
|
755
|
+
let n = __privateGet(this, _e4).get(e);
|
|
756
|
+
if (n || (n = /* @__PURE__ */ new Map(), __privateGet(this, _e4).set(e, n)), n.has(t)) return n.get(t);
|
|
757
|
+
let i = /* @__PURE__ */ Object.create(null);
|
|
758
|
+
return n.set(t, i), i;
|
|
759
|
+
}, b_fn = function(e, t, n, i = __privateGet(this, _s) || {}, s = {}) {
|
|
760
|
+
let o = __privateGet(this, _t4).get(e);
|
|
761
|
+
if (o || (o = /* @__PURE__ */ new Map(), __privateGet(this, _t4).set(e, o)), o.has(t)) return o.get(t);
|
|
762
|
+
let c = { ...__privateGet(this, _u), log: __privateGet(this, _l).child({ ns: t }, s.log?.sinks || []), relay: __privateGet(this, _f).createChannel(n), cache: __privateGet(this, _d), config: i }, a = new Proxy(c, { get(l2, f, h) {
|
|
763
|
+
return f in l2 ? Reflect.get(l2, f, h) : Reflect.get(e, f, h);
|
|
764
|
+
}, has(l2, f) {
|
|
765
|
+
return f in l2 || f in e;
|
|
766
|
+
} });
|
|
767
|
+
return o.set(t, a), a;
|
|
768
|
+
}, a_fn = function(e, t, n, i = __privateGet(this, _s) || {}, s = {}) {
|
|
769
|
+
return (...o) => {
|
|
770
|
+
let c = __privateMethod(this, _r_instances2, b_fn).call(this, e, t, n, i, s);
|
|
771
|
+
if (!o || o.length === 0) return c;
|
|
772
|
+
if (o.length === 1) return c[o[0]];
|
|
773
|
+
let a = new Array(o.length);
|
|
774
|
+
for (let l2 = 0; l2 < o.length; l2++) a[l2] = c[o[l2]];
|
|
775
|
+
return a;
|
|
776
|
+
};
|
|
777
|
+
}, __publicField(_a4, "options", {}), _a4);
|
|
778
|
+
var W = g("MIDDLEWARE", [Function, Array]);
|
|
779
|
+
var q = g("ACTIONS", [Object]);
|
|
780
|
+
var Y = g("UNINSTALL");
|
|
781
|
+
var Z = g("INITIALIZE");
|
|
782
|
+
var J = g("GETTERS", [Object]);
|
|
783
|
+
var _e5, _t5, _n4, _r_instances3, r_fn2, _a5;
|
|
784
|
+
var N = (_a5 = class {
|
|
785
|
+
constructor(e) {
|
|
786
|
+
__privateAdd(this, _r_instances3);
|
|
787
|
+
__privateAdd(this, _e5);
|
|
788
|
+
__privateAdd(this, _t5);
|
|
789
|
+
__privateAdd(this, _n4, { MIDDLEWARE: null, GETTERS: null, ACTIONS: null, INITIALIZE: null, UNINSTALL: null });
|
|
790
|
+
__publicField(this, "defineMiddleware", (e) => __privateMethod(this, _r_instances3, r_fn2).call(this, "MIDDLEWARE", e, W));
|
|
791
|
+
__publicField(this, "defineGetters", (e) => __privateMethod(this, _r_instances3, r_fn2).call(this, "GETTERS", e, J));
|
|
792
|
+
__publicField(this, "defineActions", (e) => __privateMethod(this, _r_instances3, r_fn2).call(this, "ACTIONS", e, q));
|
|
793
|
+
__publicField(this, "defineInitialize", (e) => __privateMethod(this, _r_instances3, r_fn2).call(this, "INITIALIZE", e, Z));
|
|
794
|
+
__publicField(this, "defineUninstall", (e) => __privateMethod(this, _r_instances3, r_fn2).call(this, "UNINSTALL", e, Y));
|
|
795
|
+
__privateSet(this, _e5, e);
|
|
796
|
+
}
|
|
797
|
+
static create(e) {
|
|
798
|
+
return new _a5(e);
|
|
799
|
+
}
|
|
800
|
+
_toArray() {
|
|
801
|
+
return [__privateGet(this, _n4).MIDDLEWARE, __privateGet(this, _n4).GETTERS, __privateGet(this, _n4).ACTIONS, __privateGet(this, _n4).INITIALIZE, __privateGet(this, _n4).UNINSTALL].filter(Boolean);
|
|
802
|
+
}
|
|
803
|
+
}, _e5 = new WeakMap(), _t5 = new WeakMap(), _n4 = new WeakMap(), _r_instances3 = new WeakSet(), r_fn2 = function(e, t, n) {
|
|
804
|
+
if (__privateGet(this, _n4)[e]) throw new Error(`${e} already defined for ${__privateGet(this, _e5)}`);
|
|
805
|
+
__privateGet(this, _n4)[e] = n(__privateGet(this, _e5), t);
|
|
806
|
+
}, _a5);
|
|
807
|
+
var _a6;
|
|
808
|
+
var v = (_a6 = class {
|
|
809
|
+
static configure(e = {}) {
|
|
810
|
+
return { install: (t, n) => this.install(t, n), manifest: this.manifest, config: { ...this.config || this.manifest.defaults || {}, ...e }, unique: true, configured: true };
|
|
811
|
+
}
|
|
812
|
+
static install(e, t) {
|
|
813
|
+
let { namespace: n } = this.manifest;
|
|
814
|
+
y(n);
|
|
815
|
+
let i = new this();
|
|
816
|
+
Object.defineProperty(i, "config", { value: Object.freeze({ ...t }), writable: false, configurable: false, enumerable: false }), Object.defineProperty(i, "inject", { value: (...o) => e(...o), writable: false, configurable: false, enumerable: false });
|
|
817
|
+
let s = N.create(n);
|
|
818
|
+
if (i.setup) {
|
|
819
|
+
let o = { defineActions: (a) => s.defineActions(() => a(e, t)), defineMiddleware: (a) => s.defineMiddleware(() => a(e, t)), defineGetters: (a) => s.defineGetters(() => a(e, t)), defineInitialize: (a) => s.defineInitialize(() => a(e, t)), defineUninstall: (a) => s.defineUninstall(() => a(e, t)) }, c = i.setup(o);
|
|
820
|
+
return c?.then ? c.then(() => s._toArray()) : s._toArray();
|
|
821
|
+
}
|
|
822
|
+
return i.middleware && s.defineMiddleware(() => i.middleware(e, t)), i.getters && s.defineGetters(() => i.getters(e, t)), i.actions && s.defineActions(() => i.actions(e, t)), i.initialize && s.defineInitialize(() => i.initialize(e, t)), i.uninstall && s.defineUninstall(() => i.uninstall(e, t)), s._toArray();
|
|
823
|
+
}
|
|
824
|
+
}, __publicField(_a6, "manifest", { name: "base", dependencies: [], version: "1.0.0", description: "Base extension template" }), __publicField(_a6, "config", null), __publicField(_a6, "unique", false), _a6);
|
|
825
|
+
var M = Symbol("jucie.engine");
|
|
826
|
+
|
|
827
|
+
// ../../node_modules/nanoid/index.browser.js
|
|
828
|
+
var nanoid = (size = 21) => crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {
|
|
829
|
+
byte &= 63;
|
|
830
|
+
if (byte < 36) {
|
|
831
|
+
id += byte.toString(36);
|
|
832
|
+
} else if (byte < 62) {
|
|
833
|
+
id += (byte - 26).toString(36).toUpperCase();
|
|
834
|
+
} else if (byte > 62) {
|
|
835
|
+
id += "-";
|
|
836
|
+
} else {
|
|
837
|
+
id += "_";
|
|
838
|
+
}
|
|
839
|
+
return id;
|
|
840
|
+
}, "");
|
|
841
|
+
|
|
842
|
+
// ../../node_modules/@jucie.io/engine-message/dist/main.js
|
|
843
|
+
var b2 = ((i) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(i, { get: (e, t) => (typeof __require < "u" ? __require : e)[t] }) : i)(function(i) {
|
|
844
|
+
if (typeof __require < "u") return __require.apply(this, arguments);
|
|
845
|
+
throw Error('Dynamic require of "' + i + '" is not supported');
|
|
846
|
+
});
|
|
847
|
+
var A2 = (i, e) => setTimeout(() => {
|
|
848
|
+
i(new Error("Timeout waiting for connect"));
|
|
849
|
+
}, e);
|
|
850
|
+
function w2(i) {
|
|
851
|
+
return i != null && typeof i.postMessage == "function";
|
|
852
|
+
}
|
|
853
|
+
function P2(i) {
|
|
854
|
+
return typeof i?.on == "function" && typeof i?.removeListener == "function" && !("onmessage" in i);
|
|
855
|
+
}
|
|
856
|
+
function v2(i) {
|
|
857
|
+
return i != null && typeof i == "object" && "data" in i ? { data: i.data } : { data: i };
|
|
858
|
+
}
|
|
859
|
+
function N2(i) {
|
|
860
|
+
if (!i || !P2(i)) return i;
|
|
861
|
+
let e = null, t = null, r3 = null, s = (n, o) => {
|
|
862
|
+
if (o) try {
|
|
863
|
+
i.removeListener(n, o);
|
|
864
|
+
} catch {
|
|
865
|
+
}
|
|
866
|
+
return null;
|
|
867
|
+
};
|
|
868
|
+
return { postMessage(...n) {
|
|
869
|
+
return i.postMessage(...n);
|
|
870
|
+
}, start() {
|
|
871
|
+
typeof i.start == "function" && i.start();
|
|
872
|
+
}, close() {
|
|
873
|
+
e = s("message", e), t = s("error", t), r3 = s("close", r3), typeof i.close == "function" && i.close();
|
|
874
|
+
}, set onmessage(n) {
|
|
875
|
+
e = s("message", e), typeof n == "function" && (e = (o) => n(v2(o)), i.on("message", e));
|
|
876
|
+
}, get onmessage() {
|
|
877
|
+
return e;
|
|
878
|
+
}, set onerror(n) {
|
|
879
|
+
t = s("error", t), typeof n == "function" && (t = n, i.on("error", t));
|
|
880
|
+
}, get onerror() {
|
|
881
|
+
return t;
|
|
882
|
+
}, set onclose(n) {
|
|
883
|
+
r3 = s("close", r3), typeof n == "function" && (r3 = n, i.on("close", r3));
|
|
884
|
+
}, get onclose() {
|
|
885
|
+
return r3;
|
|
886
|
+
} };
|
|
887
|
+
}
|
|
888
|
+
var _a7, _e6, _t6, _i2, _a8, _s2, _n5, _r2, _h, _i_instances, c_fn2, E_fn2, o_fn2, p_fn2, u_fn, l_fn, f_fn, d_fn, S_fn2, w_fn2, m_fn2, g_fn2;
|
|
889
|
+
var p2 = (_a7 = class {
|
|
890
|
+
constructor(e, t = nanoid(), r3 = {}) {
|
|
891
|
+
__privateAdd(this, _i_instances);
|
|
892
|
+
__privateAdd(this, _e6, null);
|
|
893
|
+
__privateAdd(this, _t6, false);
|
|
894
|
+
__privateAdd(this, _i2, null);
|
|
895
|
+
__privateAdd(this, _a8, false);
|
|
896
|
+
__privateAdd(this, _s2, null);
|
|
897
|
+
__privateAdd(this, _n5, /* @__PURE__ */ new Map());
|
|
898
|
+
__privateAdd(this, _r2, /* @__PURE__ */ new Map());
|
|
899
|
+
__privateAdd(this, _h, 1e3);
|
|
900
|
+
if (__privateSet(this, _h, r3.timeoutMs ?? 1e3), e = N2(e), e) {
|
|
901
|
+
if (typeof e.postMessage != "function") throw new Error("Port must be an object with postMessage");
|
|
902
|
+
__privateSet(this, _e6, e), __privateSet(this, _i2, t), __privateGet(this, _e6).onmessage = (s) => __privateMethod(this, _i_instances, f_fn).call(this, s), __privateGet(this, _e6).onerror = (s) => __privateMethod(this, _i_instances, g_fn2).call(this, s), __privateMethod(this, _i_instances, o_fn2).call(this), __privateSet(this, _t6, true), typeof __privateGet(this, _e6).start == "function" && __privateGet(this, _e6).start();
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
static get EVENTS() {
|
|
906
|
+
return { CONNECT: "CONNECT", CONFIRM_CONNECT: "CONFIRM_CONNECT", DISCONNECT: "DISCONNECT", RESPONSE: "RESPONSE", ENABLE: "ENABLE", ERROR: "ERROR", MESSAGE: "MESSAGE", GATHER: "GATHER", WARNING: "WARNING", INFO: "INFO", DEBUG: "DEBUG", TRACE: "TRACE" };
|
|
907
|
+
}
|
|
908
|
+
get enabled() {
|
|
909
|
+
return __privateGet(this, _t6);
|
|
910
|
+
}
|
|
911
|
+
static connect({ port: e, options: t = {} }) {
|
|
912
|
+
t = { ..._a7.defaultOptions, ...t }, e = N2(e);
|
|
913
|
+
let r3 = nanoid();
|
|
914
|
+
return new Promise((s, n) => {
|
|
915
|
+
let o = 0, c = null, a = false, u = () => {
|
|
916
|
+
c && clearTimeout(c);
|
|
917
|
+
try {
|
|
918
|
+
e.onmessage = null;
|
|
919
|
+
} catch {
|
|
920
|
+
}
|
|
921
|
+
try {
|
|
922
|
+
e.onerror = null;
|
|
923
|
+
} catch {
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
if (t.primary) {
|
|
927
|
+
if (e.onmessage = (h) => {
|
|
928
|
+
let d = h?.data;
|
|
929
|
+
if (!Array.isArray(d) || d.length < 2) return;
|
|
930
|
+
let [E2, f] = d;
|
|
931
|
+
if (E2 === _a7.EVENTS.CONNECT) try {
|
|
932
|
+
e.postMessage([_a7.EVENTS.CONFIRM_CONNECT, { rid: f?.rid, sid: f?.sid }]), a = true, u(), s(new _a7(e, f?.sid, { timeoutMs: t.timeoutMs }));
|
|
933
|
+
} catch (m2) {
|
|
934
|
+
u(), n(m2);
|
|
935
|
+
}
|
|
936
|
+
}, e.onerror = (h) => {
|
|
937
|
+
a || (a = true, u(), n(h));
|
|
938
|
+
}, typeof e.start == "function") try {
|
|
939
|
+
e.start();
|
|
940
|
+
} catch {
|
|
941
|
+
}
|
|
942
|
+
} else {
|
|
943
|
+
let h = () => {
|
|
944
|
+
if (o >= t.maxRetries) {
|
|
945
|
+
a || (u(), n(new Error("Max retries reached")));
|
|
946
|
+
return;
|
|
947
|
+
}
|
|
948
|
+
let E2 = Math.min(t.baseDelay * 2 ** o, t.maxDelay), f = Math.floor(E2 * t.jitter * Math.random());
|
|
949
|
+
c = setTimeout(d, E2 + f);
|
|
950
|
+
}, d = () => {
|
|
951
|
+
o += 1;
|
|
952
|
+
try {
|
|
953
|
+
e.postMessage([_a7.EVENTS.CONNECT, { rid: nanoid(), sid: r3 }]);
|
|
954
|
+
} catch (E2) {
|
|
955
|
+
u(), n(E2);
|
|
956
|
+
return;
|
|
957
|
+
}
|
|
958
|
+
h();
|
|
959
|
+
};
|
|
960
|
+
if (e.onmessage = (E2) => {
|
|
961
|
+
let f = E2?.data;
|
|
962
|
+
if (!Array.isArray(f) || f.length < 2) return;
|
|
963
|
+
let [m2, S2] = f;
|
|
964
|
+
if (!(!S2?.sid || !S2?.rid)) switch (m2) {
|
|
965
|
+
case _a7.EVENTS.CONFIRM_CONNECT: {
|
|
966
|
+
if (a) return;
|
|
967
|
+
a = true, u(), s(new _a7(e, S2?.sid, { timeoutMs: t.timeoutMs }));
|
|
968
|
+
break;
|
|
969
|
+
}
|
|
970
|
+
case _a7.EVENTS.ERROR: {
|
|
971
|
+
if (a) return;
|
|
972
|
+
a = true, u(), n(new Error("Handshake error"));
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
default:
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
}, e.onerror = (E2) => {
|
|
979
|
+
a || (a = true, u(), n(E2));
|
|
980
|
+
}, typeof e.start == "function") try {
|
|
981
|
+
e.start();
|
|
982
|
+
} catch {
|
|
983
|
+
}
|
|
984
|
+
d();
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
get sid() {
|
|
989
|
+
return __privateGet(this, _i2);
|
|
990
|
+
}
|
|
991
|
+
close() {
|
|
992
|
+
__privateGet(this, _a8) || (__privateSet(this, _a8, true), console.warn(`[Port] close() \u2014 sid: ${__privateGet(this, _i2)}, pending: ${__privateGet(this, _n5).size}, enabled: ${__privateGet(this, _t6)}`), __privateMethod(this, _i_instances, m_fn2).call(this, _a7.EVENTS.DISCONNECT, { sid: __privateGet(this, _i2) }), __privateMethod(this, _i_instances, E_fn2).call(this));
|
|
993
|
+
}
|
|
994
|
+
emit(e) {
|
|
995
|
+
return __privateGet(this, _e6) ? __privateGet(this, _t6) ? __privateMethod(this, _i_instances, u_fn).call(this, e) : Promise.resolve(null) : Promise.reject(new Error("No port available"));
|
|
996
|
+
}
|
|
997
|
+
request(e, t) {
|
|
998
|
+
return __privateGet(this, _e6) ? __privateGet(this, _t6) ? __privateMethod(this, _i_instances, l_fn).call(this, _a7.EVENTS.MESSAGE, e, t) : Promise.resolve(null) : Promise.reject(new Error("No port available"));
|
|
999
|
+
}
|
|
1000
|
+
gather(e, t) {
|
|
1001
|
+
return __privateGet(this, _e6) ? __privateGet(this, _t6) ? __privateMethod(this, _i_instances, l_fn).call(this, _a7.EVENTS.GATHER, e, t) : Promise.resolve(null) : Promise.reject(new Error("No port available"));
|
|
1002
|
+
}
|
|
1003
|
+
async enable() {
|
|
1004
|
+
return __privateGet(this, _e6) ? (__privateSet(this, _t6, await __privateMethod(this, _i_instances, l_fn).call(this, _a7.EVENTS.ENABLE, true)), __privateGet(this, _t6)) : Promise.reject(new Error("No port available"));
|
|
1005
|
+
}
|
|
1006
|
+
async disable() {
|
|
1007
|
+
return __privateGet(this, _e6) ? (__privateSet(this, _t6, await __privateMethod(this, _i_instances, l_fn).call(this, _a7.EVENTS.ENABLE, false)), __privateGet(this, _t6)) : Promise.reject(new Error("No port available"));
|
|
1008
|
+
}
|
|
1009
|
+
onMessage(e) {
|
|
1010
|
+
if (typeof e != "function") throw new Error("Listener must be a function");
|
|
1011
|
+
if (__privateGet(this, _r2).has(_a7.EVENTS.MESSAGE)) throw new Error("A listener is already registered. Remove the existing listener before adding a new one.");
|
|
1012
|
+
return __privateGet(this, _r2).set(_a7.EVENTS.MESSAGE, e), () => {
|
|
1013
|
+
__privateGet(this, _r2).get(_a7.EVENTS.MESSAGE) === e && __privateGet(this, _r2).delete(_a7.EVENTS.MESSAGE);
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
onEnable(e) {
|
|
1017
|
+
if (typeof e != "function") throw new Error("Listener must be a function");
|
|
1018
|
+
return __privateGet(this, _r2).set(_a7.EVENTS.ENABLE, e), () => __privateGet(this, _r2).delete(_a7.EVENTS.ENABLE);
|
|
1019
|
+
}
|
|
1020
|
+
onError(e) {
|
|
1021
|
+
if (typeof e != "function") throw new Error("Listener must be a function");
|
|
1022
|
+
if (__privateGet(this, _r2).has(_a7.EVENTS.ERROR)) throw new Error("A listener is already registered. Remove the existing listener before adding a new one.");
|
|
1023
|
+
return __privateGet(this, _r2).set(_a7.EVENTS.ERROR, e), () => __privateGet(this, _r2).delete(_a7.EVENTS.ERROR);
|
|
1024
|
+
}
|
|
1025
|
+
onDisconnect(e) {
|
|
1026
|
+
if (typeof e != "function") throw new Error("Listener must be a function");
|
|
1027
|
+
return __privateGet(this, _r2).set(_a7.EVENTS.DISCONNECT, e), () => __privateGet(this, _r2).delete(_a7.EVENTS.DISCONNECT);
|
|
1028
|
+
}
|
|
1029
|
+
}, _e6 = new WeakMap(), _t6 = new WeakMap(), _i2 = new WeakMap(), _a8 = new WeakMap(), _s2 = new WeakMap(), _n5 = new WeakMap(), _r2 = new WeakMap(), _h = new WeakMap(), _i_instances = new WeakSet(), c_fn2 = function(e) {
|
|
1030
|
+
if (__privateGet(this, _a8)) return;
|
|
1031
|
+
__privateSet(this, _a8, true), console.warn(`[Port] disconnect detected \u2014 sid: ${__privateGet(this, _i2)}, reason: ${e}`);
|
|
1032
|
+
let t = __privateGet(this, _r2).get(_a7.EVENTS.DISCONNECT);
|
|
1033
|
+
if (__privateMethod(this, _i_instances, E_fn2).call(this), t) try {
|
|
1034
|
+
t(e);
|
|
1035
|
+
} catch (r3) {
|
|
1036
|
+
console.error("Port onDisconnect listener error:", r3);
|
|
1037
|
+
}
|
|
1038
|
+
}, E_fn2 = function() {
|
|
1039
|
+
__privateGet(this, _e6) && (__privateMethod(this, _i_instances, p_fn2).call(this), __privateGet(this, _e6).onmessage = null, __privateGet(this, _e6).onerror = null, typeof __privateGet(this, _e6).stop == "function" && __privateGet(this, _e6).stop(), typeof __privateGet(this, _e6).close == "function" && __privateGet(this, _e6).close());
|
|
1040
|
+
for (let [e, t] of __privateGet(this, _n5)) console.warn(`[Port] rejecting pending rid=${e}`), t.timeout && clearTimeout(t.timeout), t.reject?.(new Error("Port closed"));
|
|
1041
|
+
__privateGet(this, _n5).clear(), __privateSet(this, _e6, null), __privateSet(this, _t6, false), __privateGet(this, _r2).clear();
|
|
1042
|
+
}, o_fn2 = function() {
|
|
1043
|
+
let e = __privateGet(this, _e6);
|
|
1044
|
+
if (!e) return;
|
|
1045
|
+
let t = () => __privateMethod(this, _i_instances, c_fn2).call(this, "peer-lost");
|
|
1046
|
+
try {
|
|
1047
|
+
"onclose" in e ? e.onclose = t : typeof e.addEventListener == "function" ? (e.addEventListener("close", t), __privateSet(this, _s2, t)) : typeof e.on == "function" && (e.on("close", t), __privateSet(this, _s2, t));
|
|
1048
|
+
} catch {
|
|
1049
|
+
}
|
|
1050
|
+
}, p_fn2 = function() {
|
|
1051
|
+
let e = __privateGet(this, _e6);
|
|
1052
|
+
if (e) try {
|
|
1053
|
+
__privateGet(this, _s2) ? (typeof e.removeEventListener == "function" ? e.removeEventListener("close", __privateGet(this, _s2)) : typeof e.removeListener == "function" && e.removeListener("close", __privateGet(this, _s2)), __privateSet(this, _s2, null)) : "onclose" in e && (e.onclose = null);
|
|
1054
|
+
} catch {
|
|
1055
|
+
}
|
|
1056
|
+
}, u_fn = function(e) {
|
|
1057
|
+
try {
|
|
1058
|
+
return __privateMethod(this, _i_instances, m_fn2).call(this, _a7.EVENTS.MESSAGE, { sid: __privateGet(this, _i2), rid: null, payload: e });
|
|
1059
|
+
} catch (t) {
|
|
1060
|
+
return Promise.reject(t);
|
|
1061
|
+
}
|
|
1062
|
+
}, l_fn = function(e, t, r3 = __privateGet(this, _h)) {
|
|
1063
|
+
return new Promise((s, n) => {
|
|
1064
|
+
try {
|
|
1065
|
+
let o = nanoid(), c = A2(() => {
|
|
1066
|
+
__privateGet(this, _n5).delete(o);
|
|
1067
|
+
let a = Array.isArray(t) ? t[1] : e;
|
|
1068
|
+
console.warn(`[Port] request TIMEOUT \u2014 sid: ${__privateGet(this, _i2)}, rid: ${o}, event: ${a}, ms: ${r3}`), n(new Error("Request timeout"));
|
|
1069
|
+
}, r3);
|
|
1070
|
+
__privateGet(this, _n5).set(o, { resolve: s, reject: n, timeout: c }), __privateMethod(this, _i_instances, m_fn2).call(this, e, { sid: __privateGet(this, _i2), rid: o, payload: t });
|
|
1071
|
+
} catch (o) {
|
|
1072
|
+
n(o);
|
|
1073
|
+
}
|
|
1074
|
+
});
|
|
1075
|
+
}, f_fn = function(e) {
|
|
1076
|
+
let t = e?.data;
|
|
1077
|
+
if (!Array.isArray(t) || t.length < 2) return;
|
|
1078
|
+
let [r3, s] = t || [];
|
|
1079
|
+
if (!(s?.sid && s.sid !== __privateGet(this, _i2))) switch (r3) {
|
|
1080
|
+
case _a7.EVENTS.RESPONSE:
|
|
1081
|
+
__privateMethod(this, _i_instances, S_fn2).call(this, s?.rid, s?.payload, "resolve");
|
|
1082
|
+
return;
|
|
1083
|
+
case _a7.EVENTS.ERROR:
|
|
1084
|
+
let n = s?.payload instanceof Error ? s.payload.message : String(s?.payload);
|
|
1085
|
+
__privateMethod(this, _i_instances, S_fn2).call(this, s?.rid, new Error(n), "reject");
|
|
1086
|
+
return;
|
|
1087
|
+
case _a7.EVENTS.MESSAGE:
|
|
1088
|
+
__privateMethod(this, _i_instances, d_fn).call(this, s?.rid, s?.payload, false);
|
|
1089
|
+
return;
|
|
1090
|
+
case _a7.EVENTS.GATHER:
|
|
1091
|
+
__privateMethod(this, _i_instances, d_fn).call(this, s?.rid, s?.payload, true);
|
|
1092
|
+
return;
|
|
1093
|
+
case _a7.EVENTS.ENABLE:
|
|
1094
|
+
__privateMethod(this, _i_instances, w_fn2).call(this, s?.rid, s?.payload);
|
|
1095
|
+
return;
|
|
1096
|
+
case _a7.EVENTS.DISCONNECT:
|
|
1097
|
+
__privateMethod(this, _i_instances, c_fn2).call(this, "closed");
|
|
1098
|
+
return;
|
|
1099
|
+
default:
|
|
1100
|
+
return;
|
|
1101
|
+
}
|
|
1102
|
+
}, d_fn = async function(e, t, r3 = false) {
|
|
1103
|
+
try {
|
|
1104
|
+
let s = __privateGet(this, _r2).get(_a7.EVENTS.MESSAGE), n = s ? await s(t, { isRequest: !!e, isGather: r3 }) : null;
|
|
1105
|
+
return e ? __privateMethod(this, _i_instances, m_fn2).call(this, _a7.EVENTS.RESPONSE, { rid: e, payload: n ?? null }) : void 0;
|
|
1106
|
+
} catch (s) {
|
|
1107
|
+
let n = s instanceof Error ? s.message : String(s);
|
|
1108
|
+
__privateMethod(this, _i_instances, m_fn2).call(this, _a7.EVENTS.ERROR, { rid: e, payload: n });
|
|
1109
|
+
}
|
|
1110
|
+
}, S_fn2 = function(e, t, r3) {
|
|
1111
|
+
let s = __privateGet(this, _n5).get(e);
|
|
1112
|
+
s && (s.timeout && clearTimeout(s.timeout), __privateGet(this, _n5).delete(e), r3 === "resolve" ? s.resolve(t) : s.reject(t));
|
|
1113
|
+
}, w_fn2 = function(e, t) {
|
|
1114
|
+
__privateSet(this, _t6, t);
|
|
1115
|
+
let r3 = __privateGet(this, _r2).get(_a7.EVENTS.ENABLE);
|
|
1116
|
+
return r3 && r3(t), __privateMethod(this, _i_instances, m_fn2).call(this, _a7.EVENTS.RESPONSE, { rid: e, payload: t });
|
|
1117
|
+
}, m_fn2 = function(e, t) {
|
|
1118
|
+
if (!__privateGet(this, _e6)) return console.warn(`[Port] #postMessage but port is null \u2014 type: ${e}, sid: ${__privateGet(this, _i2)}`), false;
|
|
1119
|
+
try {
|
|
1120
|
+
__privateGet(this, _e6).postMessage([e, t]);
|
|
1121
|
+
} catch (r3) {
|
|
1122
|
+
return console.error(`[Port] #postMessage FAILED \u2014 type: ${e}, sid: ${__privateGet(this, _i2)}`, r3.message), r3?.name !== "DataCloneError" && __privateMethod(this, _i_instances, c_fn2).call(this, "peer-lost"), false;
|
|
1123
|
+
}
|
|
1124
|
+
return true;
|
|
1125
|
+
}, g_fn2 = function(e) {
|
|
1126
|
+
console.error("onerror", e);
|
|
1127
|
+
}, __publicField(_a7, "defaultOptions", { primary: false, maxRetries: 10, baseDelay: 200, maxDelay: 2e3, jitter: 0.2, timeoutMs: 1e3 }), _a7);
|
|
1128
|
+
var l = { HANDSHAKE: "HANDSHAKE", MESSAGE: "MESSAGE", GATHER: "GATHER", SUBSCRIBE: "SUBSCRIBE", UNSUBSCRIBE: "UNSUBSCRIBE", SYNC: "SYNC" };
|
|
1129
|
+
var L2 = g("channelContracts", [Object]);
|
|
1130
|
+
var _e7, _t7, _i3, _a9, _s3, _n6, _r3, _h2, _c, _E, _o2, _a10, _T_instances, p_fn3, u_fn2, l_fn2, f_fn2, d_fn2, S_fn3, w_fn3, _m, _g, _y, b_fn2, N_fn, C_fn2;
|
|
1131
|
+
var T2 = (_a10 = class extends v {
|
|
1132
|
+
constructor() {
|
|
1133
|
+
super(...arguments);
|
|
1134
|
+
__privateAdd(this, _T_instances);
|
|
1135
|
+
__privateAdd(this, _e7, null);
|
|
1136
|
+
__privateAdd(this, _t7, null);
|
|
1137
|
+
__privateAdd(this, _i3, 1e3);
|
|
1138
|
+
__privateAdd(this, _a9, /* @__PURE__ */ new Map());
|
|
1139
|
+
__privateAdd(this, _s3, /* @__PURE__ */ new Map());
|
|
1140
|
+
__privateAdd(this, _n6, []);
|
|
1141
|
+
__privateAdd(this, _r3, false);
|
|
1142
|
+
__privateAdd(this, _h2, null);
|
|
1143
|
+
__privateAdd(this, _c, false);
|
|
1144
|
+
__privateAdd(this, _E, null);
|
|
1145
|
+
__privateAdd(this, _o2, { enable: /* @__PURE__ */ new Set(), disable: /* @__PURE__ */ new Set(), connect: /* @__PURE__ */ new Set(), disconnect: /* @__PURE__ */ new Set() });
|
|
1146
|
+
__privateAdd(this, _m, async ([e, t, r3, s, n]) => {
|
|
1147
|
+
let o = [];
|
|
1148
|
+
switch (e) {
|
|
1149
|
+
case l.MESSAGE:
|
|
1150
|
+
let c = __privateGet(this, _s3).get(t);
|
|
1151
|
+
if (c) for (let a of c) {
|
|
1152
|
+
if (!__privateMethod(this, _T_instances, C_fn2).call(this, t, r3, a.schema)) continue;
|
|
1153
|
+
let u = await a.subscriber(...r3);
|
|
1154
|
+
o.push(u), a.once && __privateGet(this, _s3).get(t).delete(a);
|
|
1155
|
+
}
|
|
1156
|
+
break;
|
|
1157
|
+
case l.SUBSCRIBE:
|
|
1158
|
+
case l.UNSUBSCRIBE:
|
|
1159
|
+
r3 != null ? __privateGet(this, _a9).set(t, r3) : __privateGet(this, _a9).delete(t);
|
|
1160
|
+
break;
|
|
1161
|
+
}
|
|
1162
|
+
return o.length > 0 ? o[0] : null;
|
|
1163
|
+
});
|
|
1164
|
+
__privateAdd(this, _g, (e, t, r3) => {
|
|
1165
|
+
switch (e) {
|
|
1166
|
+
case "ENABLE":
|
|
1167
|
+
t === true ? __privateGet(this, _o2).enable.forEach((s) => s(r3)) : __privateGet(this, _o2).disable.forEach((s) => s(r3));
|
|
1168
|
+
break;
|
|
1169
|
+
case "CONNECT":
|
|
1170
|
+
__privateGet(this, _o2).connect.forEach((s) => s(r3));
|
|
1171
|
+
break;
|
|
1172
|
+
}
|
|
1173
|
+
});
|
|
1174
|
+
__privateAdd(this, _y, (e) => {
|
|
1175
|
+
console.error("Channel error:", e);
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
initialize(e, t) {
|
|
1179
|
+
if (t.port != null && !w2(t.port)) throw new Error("Configured port must have postMessage");
|
|
1180
|
+
if (__privateSet(this, _t7, t.port), __privateSet(this, _i3, t.timeout ?? 1e3), t.subscriptions && t.subscriptions.length) for (let r3 of t.subscriptions) __privateGet(this, _n6).push(r3);
|
|
1181
|
+
}
|
|
1182
|
+
actions() {
|
|
1183
|
+
let e = { ready: () => __privateGet(this, _r3), portProvider: (t) => {
|
|
1184
|
+
if (typeof t != "function") throw new Error("portProvider must be a function");
|
|
1185
|
+
return __privateSet(this, _h2, t), e;
|
|
1186
|
+
}, connect: async (t, r3) => {
|
|
1187
|
+
try {
|
|
1188
|
+
if (__privateSet(this, _t7, t ?? __privateGet(this, _t7)), !w2(__privateGet(this, _t7))) throw new Error("Message port is required");
|
|
1189
|
+
if (r3 && typeof r3 == "function" && __privateGet(this, _o2).connect.add(r3), __privateGet(this, _e7)) {
|
|
1190
|
+
let n = __privateGet(this, _e7);
|
|
1191
|
+
__privateSet(this, _e7, null), __privateSet(this, _r3, false), n.close();
|
|
1192
|
+
}
|
|
1193
|
+
__privateSet(this, _e7, await p2.connect({ port: __privateGet(this, _t7), options: { timeoutMs: __privateGet(this, _i3) } }));
|
|
1194
|
+
let s = __privateGet(this, _e7);
|
|
1195
|
+
s.onMessage(async (n) => await __privateGet(this, _m).call(this, n)), s.onEnable((n) => __privateGet(this, _g).call(this, "ENABLE", n, e)), s.onError(__privateGet(this, _y)), s.onDisconnect((n) => {
|
|
1196
|
+
__privateGet(this, _e7) === s && __privateMethod(this, _T_instances, b_fn2).call(this, n);
|
|
1197
|
+
}), __privateSet(this, _r3, true);
|
|
1198
|
+
for (let [n, o] of __privateGet(this, _s3)) {
|
|
1199
|
+
let c;
|
|
1200
|
+
for (let a of o) a.timeoutMs !== void 0 && (c === void 0 || a.timeoutMs > c) && (c = a.timeoutMs);
|
|
1201
|
+
__privateGet(this, _e7).emit([l.SUBSCRIBE, n, c]);
|
|
1202
|
+
}
|
|
1203
|
+
if (__privateGet(this, _n6).length > 0) {
|
|
1204
|
+
let n = __privateGet(this, _n6);
|
|
1205
|
+
__privateSet(this, _n6, []);
|
|
1206
|
+
for (let o of n) __privateMethod(this, _T_instances, p_fn3).call(this, o);
|
|
1207
|
+
}
|
|
1208
|
+
return await __privateMethod(this, _T_instances, w_fn3).call(this), __privateGet(this, _g).call(this, "CONNECT", true, e), e;
|
|
1209
|
+
} catch (s) {
|
|
1210
|
+
return console.error("Channel error:", s), false;
|
|
1211
|
+
}
|
|
1212
|
+
}, onEnable: (t) => {
|
|
1213
|
+
if (typeof t != "function") throw new Error("Listener must be a function");
|
|
1214
|
+
return __privateGet(this, _o2).enable.add(t), () => __privateGet(this, _o2).enable.delete(t);
|
|
1215
|
+
}, onDisable: (t) => {
|
|
1216
|
+
if (typeof t != "function") throw new Error("Listener must be a function");
|
|
1217
|
+
return __privateGet(this, _o2).disable.add(t), () => __privateGet(this, _o2).disable.delete(t);
|
|
1218
|
+
}, onDisconnect: (t) => {
|
|
1219
|
+
if (typeof t != "function") throw new Error("Listener must be a function");
|
|
1220
|
+
return __privateGet(this, _o2).disconnect.add(t), () => __privateGet(this, _o2).disconnect.delete(t);
|
|
1221
|
+
}, disconnect: () => {
|
|
1222
|
+
if (__privateGet(this, _e7)) {
|
|
1223
|
+
__privateGet(this, _o2).disconnect.forEach((t) => t("closed", e));
|
|
1224
|
+
for (let t of __privateGet(this, _s3).keys()) __privateGet(this, _e7).emit([l.UNSUBSCRIBE, t]);
|
|
1225
|
+
__privateGet(this, _e7).close(), __privateSet(this, _e7, null), __privateSet(this, _r3, false), __privateGet(this, _s3).clear(), __privateGet(this, _a9).clear(), __privateSet(this, _n6, []);
|
|
1226
|
+
}
|
|
1227
|
+
}, use: (...t) => {
|
|
1228
|
+
if (__privateGet(this, _r3)) {
|
|
1229
|
+
for (let r3 of t) __privateMethod(this, _T_instances, p_fn3).call(this, r3);
|
|
1230
|
+
return e;
|
|
1231
|
+
}
|
|
1232
|
+
for (let r3 of t) __privateGet(this, _n6).push(r3);
|
|
1233
|
+
return e;
|
|
1234
|
+
}, publish: (t, ...r3) => (__privateMethod(this, _T_instances, f_fn2).call(this, l.MESSAGE, t, r3), e), request: (t, ...r3) => __privateMethod(this, _T_instances, d_fn2).call(this, l.MESSAGE, t, r3), gather: (t, ...r3) => __privateMethod(this, _T_instances, S_fn3).call(this, l.GATHER, t, r3), subscribe: (t, r3) => __privateMethod(this, _T_instances, u_fn2).call(this, t, void 0, r3, false), subscribeOnce: (t, r3) => __privateMethod(this, _T_instances, u_fn2).call(this, t, void 0, r3, true), unsubscribe: (t, r3) => __privateMethod(this, _T_instances, l_fn2).call(this, t, r3), to: (...t) => ({ publish: (r3, ...s) => {
|
|
1235
|
+
__privateMethod(this, _T_instances, f_fn2).call(this, l.MESSAGE, r3, s, t);
|
|
1236
|
+
}, request: (r3, ...s) => __privateMethod(this, _T_instances, d_fn2).call(this, l.MESSAGE, r3, s, t), gather: (r3, ...s) => __privateMethod(this, _T_instances, S_fn3).call(this, l.GATHER, r3, s, t) }), namespace: (t) => ({ publish: (r3, ...s) => {
|
|
1237
|
+
let n = t ? `${t}/${r3}` : r3;
|
|
1238
|
+
return __privateMethod(this, _T_instances, f_fn2).call(this, l.MESSAGE, n, s), e;
|
|
1239
|
+
}, request: (r3, ...s) => {
|
|
1240
|
+
let n = t ? `${t}/${r3}` : r3;
|
|
1241
|
+
return __privateMethod(this, _T_instances, d_fn2).call(this, l.MESSAGE, n, s);
|
|
1242
|
+
}, gather: (r3, ...s) => {
|
|
1243
|
+
let n = t ? `${t}/${r3}` : r3;
|
|
1244
|
+
return __privateMethod(this, _T_instances, S_fn3).call(this, l.GATHER, n, s);
|
|
1245
|
+
}, subscribe: (r3, s) => {
|
|
1246
|
+
let n = t ? `${t}/${r3}` : r3;
|
|
1247
|
+
return __privateMethod(this, _T_instances, u_fn2).call(this, n, void 0, s, false), e;
|
|
1248
|
+
}, subscribeOnce: (r3, s) => {
|
|
1249
|
+
let n = t ? `${t}/${r3}` : r3;
|
|
1250
|
+
return __privateMethod(this, _T_instances, u_fn2).call(this, n, void 0, s, true), e;
|
|
1251
|
+
}, unsubscribe: (r3, s) => {
|
|
1252
|
+
let n = t ? `${t}/${r3}` : r3;
|
|
1253
|
+
return __privateMethod(this, _T_instances, l_fn2).call(this, n, s), e;
|
|
1254
|
+
} }) };
|
|
1255
|
+
return __privateSet(this, _E, e), e;
|
|
1256
|
+
}
|
|
1257
|
+
}, _e7 = new WeakMap(), _t7 = new WeakMap(), _i3 = new WeakMap(), _a9 = new WeakMap(), _s3 = new WeakMap(), _n6 = new WeakMap(), _r3 = new WeakMap(), _h2 = new WeakMap(), _c = new WeakMap(), _E = new WeakMap(), _o2 = new WeakMap(), _T_instances = new WeakSet(), p_fn3 = function(e) {
|
|
1258
|
+
if (e && typeof e == "function") {
|
|
1259
|
+
let t = e._name, r3 = e(this.inject), s = Object.entries(r3);
|
|
1260
|
+
for (let [n, o] of s) {
|
|
1261
|
+
let { handler: c, schema: a, namespace: u, once: h, timeoutMs: d } = o, E2 = u ? `${u}/${t}:${n}` : `${t}:${n}`, f = (...m2) => {
|
|
1262
|
+
try {
|
|
1263
|
+
return c(...m2);
|
|
1264
|
+
} catch (S2) {
|
|
1265
|
+
console.error(`Errow with ${E2}:`, S2);
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
1268
|
+
__privateMethod(this, _T_instances, u_fn2).call(this, E2, a, f, h, d);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}, u_fn2 = function(e, t, r3, s = false, n = void 0) {
|
|
1272
|
+
__privateGet(this, _s3).has(e) || __privateGet(this, _s3).set(e, /* @__PURE__ */ new Set());
|
|
1273
|
+
let o = { event: e, schema: t, subscriber: r3, once: s, timeoutMs: n };
|
|
1274
|
+
return __privateGet(this, _s3).get(e).add(o), __privateGet(this, _e7) && __privateGet(this, _e7).emit([l.SUBSCRIBE, e, n]), () => __privateGet(this, _s3).get(e)?.delete(o);
|
|
1275
|
+
}, l_fn2 = function(e, t) {
|
|
1276
|
+
if (!__privateGet(this, _s3).has(e)) return;
|
|
1277
|
+
let r3 = __privateGet(this, _s3).get(e);
|
|
1278
|
+
for (let s of r3.values()) if (s.subscriber === t) return r3.delete(s), t;
|
|
1279
|
+
}, f_fn2 = function(e, t, r3, s = null) {
|
|
1280
|
+
if (!__privateGet(this, _e7)) {
|
|
1281
|
+
console.warn(`[Channel] publish "${t}" dropped \u2014 not connected`);
|
|
1282
|
+
return;
|
|
1283
|
+
}
|
|
1284
|
+
__privateGet(this, _e7).emit([e, t, r3, s]);
|
|
1285
|
+
}, d_fn2 = function(e, t, r3, s = null) {
|
|
1286
|
+
return __privateGet(this, _e7) ? __privateGet(this, _e7).request([e, t, r3, s], __privateGet(this, _a9).get(t)) : Promise.reject(new Error(`Channel not connected \u2014 request "${t}" dropped`));
|
|
1287
|
+
}, S_fn3 = function(e, t, r3, s = null) {
|
|
1288
|
+
return __privateGet(this, _e7) ? __privateGet(this, _e7).gather([e, t, r3, s], __privateGet(this, _a9).get(t)) : Promise.reject(new Error(`Channel not connected \u2014 gather "${t}" dropped`));
|
|
1289
|
+
}, w_fn3 = async function() {
|
|
1290
|
+
try {
|
|
1291
|
+
let e = await __privateGet(this, _e7).request([l.SYNC]);
|
|
1292
|
+
if (Array.isArray(e)) for (let [t, r3] of e) __privateGet(this, _a9).set(t, r3);
|
|
1293
|
+
} catch {
|
|
1294
|
+
}
|
|
1295
|
+
}, _m = new WeakMap(), _g = new WeakMap(), _y = new WeakMap(), b_fn2 = function(e) {
|
|
1296
|
+
__privateSet(this, _e7, null), __privateSet(this, _r3, false), __privateGet(this, _a9).clear(), __privateGet(this, _o2).disconnect.forEach((t) => {
|
|
1297
|
+
try {
|
|
1298
|
+
t(e, __privateGet(this, _E));
|
|
1299
|
+
} catch (r3) {
|
|
1300
|
+
console.error("Channel onDisconnect listener error:", r3);
|
|
1301
|
+
}
|
|
1302
|
+
}), e === "peer-lost" && __privateGet(this, _h2) && __privateMethod(this, _T_instances, N_fn).call(this);
|
|
1303
|
+
}, N_fn = async function() {
|
|
1304
|
+
if (__privateGet(this, _c)) return;
|
|
1305
|
+
__privateSet(this, _c, true);
|
|
1306
|
+
let e = this.config.reconnectMaxAttempts ?? 5, t = this.config.reconnectBaseDelay ?? 250;
|
|
1307
|
+
try {
|
|
1308
|
+
for (let r3 = 1; r3 <= e; r3++) try {
|
|
1309
|
+
let s = await __privateGet(this, _h2).call(this);
|
|
1310
|
+
if (!w2(s)) throw new Error("portProvider did not return a usable port");
|
|
1311
|
+
if (await __privateGet(this, _E).connect(s) === false) throw new Error("Reconnect handshake failed");
|
|
1312
|
+
console.warn(`[Channel] reconnected after ${r3} attempt(s)`);
|
|
1313
|
+
return;
|
|
1314
|
+
} catch (s) {
|
|
1315
|
+
if (console.warn(`[Channel] reconnect attempt ${r3}/${e} failed:`, s?.message ?? s), r3 < e) {
|
|
1316
|
+
let n = Math.min(t * 2 ** (r3 - 1), 4e3);
|
|
1317
|
+
await new Promise((o) => setTimeout(o, n));
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
console.error("[Channel] reconnect failed \u2014 giving up");
|
|
1321
|
+
} finally {
|
|
1322
|
+
__privateSet(this, _c, false);
|
|
1323
|
+
}
|
|
1324
|
+
}, C_fn2 = function(e, t, r3) {
|
|
1325
|
+
if (r3 === void 0 || r3 === "*" || r3 === null || t === void 0) return true;
|
|
1326
|
+
if (Array.isArray(r3)) {
|
|
1327
|
+
if (r3.length === 1 && r3[0] === "*") return true;
|
|
1328
|
+
let s = r3.length, n = t.length;
|
|
1329
|
+
if (s !== n) return console.warn(`
|
|
1330
|
+
Event:`, e, `
|
|
1331
|
+
Expected:`, r3, `
|
|
1332
|
+
Received:`, t.map((o) => typeof o)), false;
|
|
1333
|
+
for (let o = 0; o < s; o++) {
|
|
1334
|
+
let c = r3[o], a = t[o], u;
|
|
1335
|
+
if (Array.isArray(a) ? u = "Array" : a === null ? u = "null" : u = Object.prototype.toString.call(a).slice(8, -1), c === "Object" && u === "Array") return console.warn(`
|
|
1336
|
+
Event:`, e, `
|
|
1337
|
+
Value:`, a), false;
|
|
1338
|
+
if (c !== u) return console.warn(`
|
|
1339
|
+
Event:`, e, `
|
|
1340
|
+
Value:`, a), false;
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
return true;
|
|
1344
|
+
}, __publicField(_a10, "manifest", { name: "Channel", dependencies: [], version: "1.0.0", namespace: "channel", description: "Channel extension for message passing between systems", defaults: { port: null, subscriptions: [], timeout: 1e3, reconnectMaxAttempts: 5, reconnectBaseDelay: 250 } }), _a10);
|
|
1345
|
+
|
|
1346
|
+
export {
|
|
1347
|
+
g,
|
|
1348
|
+
G,
|
|
1349
|
+
v,
|
|
1350
|
+
nanoid,
|
|
1351
|
+
L2 as L,
|
|
1352
|
+
T2 as T
|
|
1353
|
+
};
|