@highstate/designer 0.18.0 → 0.20.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/.output/nitro.json +3 -3
- package/.output/public/_nuxt/57B6Rca8.js +1 -0
- package/.output/public/_nuxt/5X7smno1.js +1 -0
- package/.output/public/_nuxt/{Cp2bjttb.js → 83L43bj1.js} +1 -1
- package/.output/public/_nuxt/8MSfy8uY.js +1 -0
- package/.output/public/_nuxt/9I37tBe7.js +1 -0
- package/.output/public/_nuxt/Aopv2gwH.js +1 -0
- package/.output/public/_nuxt/B13uiJCv.js +1 -0
- package/.output/public/_nuxt/B7c-h3xW.js +1 -0
- package/.output/public/_nuxt/B8nw2aST.js +2 -0
- package/.output/public/_nuxt/{1DNp92w6.js → B93PlW-d.js} +1 -1
- package/.output/public/_nuxt/BA0jw7CM.js +1 -0
- package/.output/public/_nuxt/BBf5iR-q.js +1 -0
- package/.output/public/_nuxt/BCVaR2pQ.js +1 -0
- package/.output/public/_nuxt/BDAHnC4j.js +1 -0
- package/.output/public/_nuxt/BDa1f6PF.js +2 -0
- package/.output/public/_nuxt/{YB_1Ta41.js → BDs6uo3D.js} +1 -1
- package/.output/public/_nuxt/BEEt8Am7.js +1 -0
- package/.output/public/_nuxt/BE_Meo09.js +269 -0
- package/.output/public/_nuxt/BGHnOYBU.js +1 -0
- package/.output/public/_nuxt/BH7IYjvW.js +1 -0
- package/.output/public/_nuxt/BJDFO7_C.js +1 -0
- package/.output/public/_nuxt/BJK6uMxG.js +1 -0
- package/.output/public/_nuxt/BLF3u89x.js +1 -0
- package/.output/public/_nuxt/{Xi2tawMN.js → BLmx8bSh.js} +1 -1
- package/.output/public/_nuxt/{DlfHMoPT.js → BPQ3VLAy.js} +1 -1
- package/.output/public/_nuxt/BPcwi1q2.js +1 -0
- package/.output/public/_nuxt/{BBGuKPBd.js → BR5kRUq4.js} +1 -1
- package/.output/public/_nuxt/BTifaqeh.js +1 -0
- package/.output/public/_nuxt/BUNf2Yb8.js +1 -0
- package/.output/public/_nuxt/BUw7H-hv.js +1 -0
- package/.output/public/_nuxt/{DRprw4p4.js → BVQ-GDCI.js} +1 -1
- package/.output/public/_nuxt/{BbQj0Z2C.js → BYV0-3_D.js} +1 -1
- package/.output/public/_nuxt/BZvkOJ9d.js +1 -0
- package/.output/public/_nuxt/Ba13S78F.js +1 -0
- package/.output/public/_nuxt/BcVCzyr7.js +1 -0
- package/.output/public/_nuxt/BhRPY-oY.js +1 -0
- package/.output/public/_nuxt/{uMbE6_td.js → Bhrxn6JZ.js} +1 -1
- package/.output/public/_nuxt/BkNNRtnm.js +1 -0
- package/.output/public/_nuxt/BlfjmxyP.js +1 -0
- package/.output/public/_nuxt/Bmn6On1c.js +1 -0
- package/.output/public/_nuxt/Bo8jzlL1.js +18 -0
- package/.output/public/_nuxt/BpkvlDNi.js +1 -0
- package/.output/public/_nuxt/{BIAuTxu3.js → Br6cN0cg.js} +1 -1
- package/.output/public/_nuxt/{CUEJCptM.js → BrzmwbiE.js} +1 -1
- package/.output/public/_nuxt/{D32k8WzR.js → BtvRca6l.js} +1 -1
- package/.output/public/_nuxt/BuJgCY_C.js +1 -0
- package/.output/public/_nuxt/Bv_4Rxtq.js +1 -0
- package/.output/public/_nuxt/BvzEVeQv.js +1 -0
- package/.output/public/_nuxt/BxAss8Tj.js +1 -0
- package/.output/public/_nuxt/BxaP9l2T.js +1 -0
- package/.output/public/_nuxt/BxgE0vQu.js +1 -0
- package/.output/public/_nuxt/ByBNG4eo.js +1 -0
- package/.output/public/_nuxt/{COI20M4I.js → BzTr9Aqm.js} +1 -1
- package/.output/public/_nuxt/{CXu1NL6O.js → C-HG3fhB.js} +1 -1
- package/.output/public/_nuxt/C-sUppwS.js +1 -0
- package/.output/public/_nuxt/C1FLL1Qz.js +1 -0
- package/.output/public/_nuxt/C3Wv6jpd.js +1 -0
- package/.output/public/_nuxt/C47S-Tmv.js +1 -0
- package/.output/public/_nuxt/C4EeE6gA.js +1 -0
- package/.output/public/_nuxt/{C-Jbm3Hp.js → C4gqWexZ.js} +1 -1
- package/.output/public/_nuxt/{DTMYz4Jt.js → C5YyOfLZ.js} +1 -1
- package/.output/public/_nuxt/C7zT0LnQ.js +1 -0
- package/.output/public/_nuxt/C8lm7lgC.js +1 -0
- package/.output/public/_nuxt/C9dUb6Cb.js +1 -0
- package/.output/public/_nuxt/{DS1LvVMU.js → C9oPPf7i.js} +1 -1
- package/.output/public/_nuxt/{D1uDOp7C.js → CFHQjOhq.js} +1 -1
- package/.output/public/_nuxt/{Dtc2v4kS.js → CGscLIrv.js} +1 -1
- package/.output/public/_nuxt/{DKzvysjW.js → CH1njM8p.js} +1 -1
- package/.output/public/_nuxt/CJWmG4YP.js +12 -0
- package/.output/public/_nuxt/CLZrNe3w.js +1 -0
- package/.output/public/_nuxt/CMTm3GFP.js +1 -0
- package/.output/public/_nuxt/CMjwMIkn.js +1 -0
- package/.output/public/_nuxt/COcwbKMJ.js +1 -0
- package/.output/public/_nuxt/CPZSvMBB.js +1 -0
- package/.output/public/_nuxt/CPpO8vcZ.js +1 -0
- package/.output/public/_nuxt/CQ8jqdy-.js +1 -0
- package/.output/public/_nuxt/CV5MeYf9.js +1 -0
- package/.output/public/_nuxt/{CcyOm34o.js → CVdnzihN.js} +1 -1
- package/.output/public/_nuxt/CW8IKDeL.js +1 -0
- package/.output/public/_nuxt/{pkIJ47B4.js → CXZktZb0.js} +1 -1
- package/.output/public/_nuxt/CYsAdtH9.js +1 -0
- package/.output/public/_nuxt/{BUyGWigt.js → CZhp0h8q.js} +1 -1
- package/.output/public/_nuxt/CaJ-zn_Z.js +2 -0
- package/.output/public/_nuxt/CcOKGYBt.js +1 -0
- package/.output/public/_nuxt/{oTG82Wo1.js → CenWIFCC.js} +1 -1
- package/.output/public/_nuxt/ChaZkl1J.js +1 -0
- package/.output/public/_nuxt/CjoLj4QM.js +1 -0
- package/.output/public/_nuxt/{BtsDLbAf.js → Cl0AqbOI.js} +1 -1
- package/.output/public/_nuxt/Cm-2nZ05.js +1 -0
- package/.output/public/_nuxt/{DUSGQflk.js → Cm3UrAx6.js} +1 -1
- package/.output/public/_nuxt/{BGHREFWD.js → CmIQRyeF.js} +1 -1
- package/.output/public/_nuxt/{f7oK2omx.js → Cn7AkR1O.js} +1 -1
- package/.output/public/_nuxt/{JhPuU2gP.js → CnnebwVN.js} +1 -1
- package/.output/public/_nuxt/CnsnAmq5.js +1 -0
- package/.output/public/_nuxt/CoDkCxhg.js +1 -0
- package/.output/public/_nuxt/{B-hkwWGT.js → CpOuai2O.js} +1 -1
- package/.output/public/_nuxt/CudFwYib.js +1 -0
- package/.output/public/_nuxt/{BDzgwa52.js → CufHLc7y.js} +1 -1
- package/.output/public/_nuxt/CwoSXNpI.js +1 -0
- package/.output/public/_nuxt/CxEW7TG8.js +1 -0
- package/.output/public/_nuxt/CxLEBnE3.js +1 -0
- package/.output/public/_nuxt/{DNrj_gVY.js → CxbxFI8M.js} +1 -1
- package/.output/public/_nuxt/CzSiA7V6.js +1 -0
- package/.output/public/_nuxt/D-wGZMZP.js +1 -0
- package/.output/public/_nuxt/D27ZAKIj.js +1 -0
- package/.output/public/_nuxt/D2aToa54.js +1 -0
- package/.output/public/_nuxt/D2obegTF.js +1 -0
- package/.output/public/_nuxt/{NleAzG8P.js → D4_iv3hh.js} +1 -1
- package/.output/public/_nuxt/D53aC0YG.js +1 -0
- package/.output/public/_nuxt/D5z-4QVk.js +1 -0
- package/.output/public/_nuxt/D6fh7rEe.js +2 -0
- package/.output/public/_nuxt/D87Tk5Gz.js +1 -0
- package/.output/public/_nuxt/D8_7TLub.js +1 -0
- package/.output/public/_nuxt/D91rOou-.js +13 -0
- package/.output/public/_nuxt/DCBCRx0O.js +1 -0
- package/.output/public/_nuxt/DCR009rv.js +1 -0
- package/.output/public/_nuxt/DCinzvm1.js +1 -0
- package/.output/public/_nuxt/DEthMvLe.js +1 -0
- package/.output/public/_nuxt/DFWUc33u.js +1 -0
- package/.output/public/_nuxt/{5bLW0GMw.js → DGP4VlC8.js} +1 -1
- package/.output/public/_nuxt/{CnK8MTSM.js → DHQR4-dF.js} +1 -1
- package/.output/public/_nuxt/DJN0y8jO.js +1 -0
- package/.output/public/_nuxt/DJjDtW9f.js +1 -0
- package/.output/public/_nuxt/DKhcu7kD.js +1 -0
- package/.output/public/_nuxt/DMwsHuHA.js +1 -0
- package/.output/public/_nuxt/{GAB5JH5K.js → DNqd6Nek.js} +1 -1
- package/.output/public/_nuxt/DOMRsNpU.js +1 -0
- package/.output/public/_nuxt/DOPqH6_T.js +1 -0
- package/.output/public/_nuxt/DQHHT9y-.js +1 -0
- package/.output/public/_nuxt/{B5ZR69Tn.js → DQwYQDb2.js} +1 -1
- package/.output/public/_nuxt/DQyhUUbL.js +1 -0
- package/.output/public/_nuxt/DRfxs3PN.js +1 -0
- package/.output/public/_nuxt/{DPcUKYIF.js → DRw_LuNl.js} +1 -1
- package/.output/public/_nuxt/DV7GczEv.js +1 -0
- package/.output/public/_nuxt/DWQRqdcR.js +1 -0
- package/.output/public/_nuxt/DWa2aw6r.js +1 -0
- package/.output/public/_nuxt/DYoxhk2S.js +1 -0
- package/.output/public/_nuxt/DZf3V79B.js +1 -0
- package/.output/public/_nuxt/{BPzJO5Oe.js → DZu-aV2c.js} +1 -1
- package/.output/public/_nuxt/Dbwml2gB.js +1 -0
- package/.output/public/_nuxt/DfvKjH24.js +1 -0
- package/.output/public/_nuxt/{Cdx7mHEO.js → DhmSosst.js} +1 -1
- package/.output/public/_nuxt/DiTMzCP2.js +1 -0
- package/.output/public/_nuxt/{CA7CTBwS.js → Dph4kLrZ.js} +1 -1
- package/.output/public/_nuxt/DqQDbK_p.js +1 -0
- package/.output/public/_nuxt/DsS90Fp6.js +1 -0
- package/.output/public/_nuxt/Dspwwk_N.js +1 -0
- package/.output/public/_nuxt/DsumFeuD.js +1 -0
- package/.output/public/_nuxt/DxERyYWQ.js +1 -0
- package/.output/public/_nuxt/{D7ScPSBf.js → DxNHbxmM.js} +1 -1
- package/.output/public/_nuxt/{CLvts2aQ.js → DxSwrfjg.js} +1 -1
- package/.output/public/_nuxt/{DcmvOc98.js → DyMmfYiE.js} +1 -1
- package/.output/public/_nuxt/DzWdbJvx.js +1 -0
- package/.output/public/_nuxt/{COEtLSDF.js → Dzze3sRP.js} +1 -1
- package/.output/public/_nuxt/G13IRnB2.js +1 -0
- package/.output/public/_nuxt/GDxZ_Nvm.js +14 -0
- package/.output/public/_nuxt/GgtqCdye.js +1 -0
- package/.output/public/_nuxt/{DkhsQLT2.js → GsRaNv29.js} +1 -1
- package/.output/public/_nuxt/IF9eRakj.js +1 -0
- package/.output/public/_nuxt/RCBWmVHz.js +1 -0
- package/.output/public/_nuxt/{Cb0HU5_O.js → RNghxpo_.js} +1 -1
- package/.output/public/_nuxt/{SecretValueField.DcyO8gGc.css → SecretValueField.Dy80RlGP.css} +1 -1
- package/.output/public/_nuxt/{B8ROHVmM.js → TsXTqZ29.js} +1 -1
- package/.output/public/_nuxt/VCDPK7BO.js +1 -0
- package/.output/public/_nuxt/{CU27uY9n.js → W9tJ9s81.js} +1 -1
- package/.output/public/_nuxt/{CmALWFRB.js → XEA9GSJd.js} +16 -468
- package/.output/public/_nuxt/{DeWFVDHI.js → YqXBG_HV.js} +1 -1
- package/.output/public/_nuxt/ZbicA1ry.js +1 -0
- package/.output/public/_nuxt/_snapshotId_.ChuSNeNY.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/a1fec520-0c95-4ae0-af5e-964780fad341.json +1 -0
- package/.output/public/_nuxt/d-NZQb9b.js +1 -0
- package/.output/public/_nuxt/edge-router-BdPMCV6u.js +1 -0
- package/.output/public/_nuxt/{entry.BAsn-2au.css → entry.Bc0aTA0K.css} +1 -1
- package/.output/public/_nuxt/error-404.X7H_YhdC.css +1 -0
- package/.output/public/_nuxt/error-500.BOQe1fsk.css +1 -0
- package/.output/public/_nuxt/f3TOpYbw.js +1 -0
- package/.output/public/_nuxt/{DrZfEa88.js → fKv21gyL.js} +1 -1
- package/.output/public/_nuxt/graph-layout-B7wl80r3.js +1 -0
- package/.output/public/_nuxt/graph-resolver-DKNtntr2.js +180 -0
- package/.output/public/_nuxt/{CGqH5EJj.js → hJgmCMqR.js} +1 -1
- package/.output/public/_nuxt/{BoKiGodi.js → k_qm7-4y.js} +1 -1
- package/.output/public/_nuxt/{IvJ92aGK.js → m17aaUwq.js} +1 -1
- package/.output/public/_nuxt/mUFnM-_q.js +1 -0
- package/.output/public/_nuxt/mWjccvbQ.js +1 -0
- package/.output/public/_nuxt/{BXY8tDGw.js → mjskCLCv.js} +1 -1
- package/.output/public/_nuxt/n0RAZLbO.js +1 -0
- package/.output/public/_nuxt/n2N0HUVH.js +1 -0
- package/.output/public/_nuxt/o_m1mZtJ.js +6 -0
- package/.output/public/_nuxt/pxXmJ8QX.js +1 -0
- package/.output/public/_nuxt/{BHrmToEH.js → qdsjHGoJ.js} +1 -1
- package/.output/public/_nuxt/{BbcW6ACK.js → rGO070M0.js} +1 -1
- package/.output/public/_nuxt/rcFevLEP.js +2 -0
- package/.output/public/_nuxt/rgN_MdZl.js +1 -0
- package/.output/public/_nuxt/tsyQDnRt.js +5 -0
- package/.output/public/_nuxt/u5AG7uiY.js +1 -0
- package/.output/public/_nuxt/uYugtg8r.js +1 -0
- package/.output/public/_nuxt/vuetify.BzdWZaIq.css +1 -0
- package/.output/public/_nuxt/{BMMyXqK5.js → wDzz0qaB.js} +1 -1
- package/.output/public/_nuxt/xA6NntuA.js +1 -0
- package/.output/public/_nuxt/xdsXwj_J.js +1 -0
- package/.output/public/_nuxt/xp27HhqZ.js +1 -0
- package/.output/public/_nuxt/xrNU8mHG.js +3 -0
- package/.output/public/_nuxt/yaml.worker-C1Cl1y5J.js +399 -0
- package/.output/public/_nuxt/ziXKbM2N.js +1 -0
- package/.output/public/libavoid.wasm +0 -0
- package/.output/server/index.mjs +2218 -6835
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@babel/parser/lib/index.js +427 -440
- package/.output/server/node_modules/@babel/parser/package.json +6 -6
- package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +4 -4
- package/.output/server/node_modules/@trpc/server/dist/adapters/ws.mjs +10 -10
- package/.output/server/node_modules/@trpc/server/dist/{utils-CLZnJdb_.mjs → codes-DagpWZLc.mjs} +66 -66
- package/.output/server/node_modules/@trpc/server/dist/{getErrorShape-BH60iMC2.mjs → getErrorShape-vC8mUXJD.mjs} +3 -3
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +4 -4
- package/.output/server/node_modules/@trpc/server/dist/{initTRPC-CB9uBez5.mjs → initTRPC-RoZMIBeA.mjs} +4 -4
- package/.output/server/node_modules/@trpc/server/dist/{node-http-8dtdvMrE.mjs → node-http-DtA2iLK9.mjs} +7 -5
- package/.output/server/node_modules/@trpc/server/dist/{parseTRPCMessage-BlZeZ60t.mjs → parseTRPCMessage-CTow-umk.mjs} +2 -2
- package/.output/server/node_modules/@trpc/server/dist/{resolveResponse-DngSgha6.mjs → resolveResponse-BVDlNZwN.mjs} +45 -48
- package/.output/server/node_modules/@trpc/server/dist/{tracked-Blz8XOf1.mjs → tracked-Bjtgv3wJ.mjs} +11 -9
- package/.output/server/node_modules/@trpc/server/dist/{unstable-core-do-not-import-D89CaGtL.mjs → unstable-core-do-not-import-9NNw8uQM.mjs} +5 -3
- package/.output/server/node_modules/@trpc/server/dist/{ws-BR20IWki.mjs → ws-CJgZE7Hg.mjs} +60 -20
- package/.output/server/node_modules/@trpc/server/package.json +6 -6
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +128 -106
- package/.output/server/node_modules/@vue/compiler-core/package.json +5 -5
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +54 -54
- package/.output/server/node_modules/@vue/compiler-dom/package.json +3 -3
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +35 -33
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +105 -42
- package/.output/server/node_modules/@vue/reactivity/package.json +2 -2
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +2129 -2063
- package/.output/server/node_modules/@vue/runtime-core/package.json +3 -3
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +78 -31
- package/.output/server/node_modules/@vue/runtime-dom/package.json +5 -5
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +6 -6
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/shared/package.json +1 -1
- package/.output/server/node_modules/copy-anything/dist/index.js +47 -31
- package/.output/server/node_modules/copy-anything/package.json +19 -72
- package/.output/server/node_modules/devalue/index.js +1 -0
- package/.output/server/node_modules/devalue/package.json +2 -2
- package/.output/server/node_modules/devalue/src/constants.js +1 -0
- package/.output/server/node_modules/devalue/src/parse.js +55 -4
- package/.output/server/node_modules/devalue/src/stringify.js +101 -12
- package/.output/server/node_modules/devalue/src/uneval.js +100 -13
- package/.output/server/node_modules/devalue/src/utils.js +35 -1
- package/.output/server/node_modules/entities/{lib/decode_codepoint.js → dist/commonjs/decode-codepoint.js} +16 -15
- package/.output/server/node_modules/entities/{lib → dist/commonjs}/decode.js +200 -168
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +99 -69
- package/.output/server/node_modules/hookable/dist/index.mjs +244 -268
- package/.output/server/node_modules/hookable/package.json +29 -26
- package/.output/server/node_modules/is-what/dist/getType.js +4 -0
- package/.output/server/node_modules/is-what/dist/index.js +43 -171
- package/.output/server/node_modules/is-what/dist/isAnyObject.js +8 -0
- package/.output/server/node_modules/is-what/dist/isArray.js +5 -0
- package/.output/server/node_modules/is-what/dist/isBigInt.js +5 -0
- package/.output/server/node_modules/is-what/dist/isBlob.js +5 -0
- package/.output/server/node_modules/is-what/dist/isBoolean.js +5 -0
- package/.output/server/node_modules/is-what/dist/isDate.js +5 -0
- package/.output/server/node_modules/is-what/dist/isEmptyArray.js +5 -0
- package/.output/server/node_modules/is-what/dist/isEmptyObject.js +8 -0
- package/.output/server/node_modules/is-what/dist/isEmptyString.js +4 -0
- package/.output/server/node_modules/is-what/dist/isError.js +5 -0
- package/.output/server/node_modules/is-what/dist/isFile.js +5 -0
- package/.output/server/node_modules/is-what/dist/isFullArray.js +5 -0
- package/.output/server/node_modules/is-what/dist/isFullObject.js +8 -0
- package/.output/server/node_modules/is-what/dist/isFullString.js +5 -0
- package/.output/server/node_modules/is-what/dist/isFunction.js +4 -0
- package/.output/server/node_modules/is-what/dist/isHexDecimal.js +12 -0
- package/.output/server/node_modules/is-what/dist/isInstanceOf.js +19 -0
- package/.output/server/node_modules/is-what/dist/isInteger.js +5 -0
- package/.output/server/node_modules/is-what/dist/isIterable.js +16 -0
- package/.output/server/node_modules/is-what/dist/isMap.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNaNValue.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNegativeInteger.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNegativeNumber.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNull.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNullOrUndefined.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNumber.js +9 -0
- package/.output/server/node_modules/is-what/dist/isObject.js +8 -0
- package/.output/server/node_modules/is-what/dist/isObjectLike.js +11 -0
- package/.output/server/node_modules/is-what/dist/isOneOf.js +15 -0
- package/.output/server/node_modules/is-what/dist/isPlainObject.js +11 -0
- package/.output/server/node_modules/is-what/dist/isPositiveInteger.js +5 -0
- package/.output/server/node_modules/is-what/dist/isPositiveNumber.js +5 -0
- package/.output/server/node_modules/is-what/dist/isPrimitive.js +21 -0
- package/.output/server/node_modules/is-what/dist/isPromise.js +5 -0
- package/.output/server/node_modules/is-what/dist/isRegExp.js +5 -0
- package/.output/server/node_modules/is-what/dist/isSet.js +5 -0
- package/.output/server/node_modules/is-what/dist/isString.js +5 -0
- package/.output/server/node_modules/is-what/dist/isSymbol.js +5 -0
- package/.output/server/node_modules/is-what/dist/isType.js +20 -0
- package/.output/server/node_modules/is-what/dist/isUndefined.js +5 -0
- package/.output/server/node_modules/is-what/dist/isWeakMap.js +5 -0
- package/.output/server/node_modules/is-what/dist/isWeakSet.js +5 -0
- package/.output/server/node_modules/is-what/package.json +23 -88
- package/.output/server/node_modules/superjson/dist/index.js +9 -6
- package/.output/server/node_modules/superjson/dist/pathstringifier.js +13 -2
- package/.output/server/node_modules/superjson/dist/plainer.js +23 -11
- package/.output/server/node_modules/superjson/dist/transformer.js +4 -1
- package/.output/server/node_modules/superjson/package.json +5 -21
- package/.output/server/node_modules/ufo/dist/index.mjs +16 -9
- package/.output/server/node_modules/ufo/package.json +15 -14
- package/.output/server/node_modules/unhead/dist/plugins.mjs +2 -2
- package/.output/server/node_modules/unhead/dist/server.mjs +4 -6
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DH45uomy.mjs → unhead.BFfcxOoW.mjs} +3 -3
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DZbvapt-.mjs → unhead.CbpEuj3y.mjs} +3 -2
- package/.output/server/node_modules/unhead/dist/shared/{unhead.Djo8ep_Y.mjs → unhead.ckV6dpEQ.mjs} +1 -1
- package/.output/server/node_modules/unhead/dist/shared/{unhead.BpRRHAhY.mjs → unhead.eK9_7LaY.mjs} +16 -12
- package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
- package/.output/server/node_modules/unhead/package.json +2 -2
- package/.output/server/node_modules/vue/dist/vue.cjs.js +1 -1
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +1 -1
- package/.output/server/node_modules/vue/package.json +6 -6
- package/.output/server/node_modules/ws/lib/constants.js +1 -0
- package/.output/server/node_modules/ws/lib/websocket-server.js +5 -1
- package/.output/server/node_modules/ws/lib/websocket.js +13 -8
- package/.output/server/node_modules/ws/package.json +1 -1
- package/.output/server/node_modules/zod/package.json +1 -1
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -1
- package/.output/server/node_modules/zod/v4/classic/external.js +3 -1
- package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +584 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +121 -4
- package/.output/server/node_modules/zod/v4/core/api.js +157 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +8 -2
- package/.output/server/node_modules/zod/v4/core/core.js +20 -11
- package/.output/server/node_modules/zod/v4/core/index.js +2 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +605 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +8 -2
- package/.output/server/node_modules/zod/v4/core/registries.js +3 -4
- package/.output/server/node_modules/zod/v4/core/schemas.js +204 -66
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +391 -869
- package/.output/server/node_modules/zod/v4/core/util.js +58 -8
- package/.output/server/node_modules/zod/v4/core/versions.js +2 -2
- package/.output/server/node_modules/zod/v4/locales/ar.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/az.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/be.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/bg.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ca.js +14 -25
- package/.output/server/node_modules/zod/v4/locales/cs.js +18 -42
- package/.output/server/node_modules/zod/v4/locales/da.js +23 -39
- package/.output/server/node_modules/zod/v4/locales/de.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/en.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/eo.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/es.js +42 -59
- package/.output/server/node_modules/zod/v4/locales/fa.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/fi.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/fr.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/he.js +175 -78
- package/.output/server/node_modules/zod/v4/locales/hu.js +16 -25
- package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/index.js +2 -0
- package/.output/server/node_modules/zod/v4/locales/is.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/it.js +16 -25
- package/.output/server/node_modules/zod/v4/locales/ja.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ka.js +19 -32
- package/.output/server/node_modules/zod/v4/locales/km.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/ko.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/lt.js +27 -54
- package/.output/server/node_modules/zod/v4/locales/mk.js +16 -25
- package/.output/server/node_modules/zod/v4/locales/ms.js +15 -24
- package/.output/server/node_modules/zod/v4/locales/nl.js +25 -32
- package/.output/server/node_modules/zod/v4/locales/no.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ota.js +17 -25
- package/.output/server/node_modules/zod/v4/locales/pl.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ps.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/pt.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ru.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/sl.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/sv.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ta.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/th.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/tr.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/uk.js +16 -25
- package/.output/server/node_modules/zod/v4/locales/ur.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/uz.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/yo.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +14 -24
- package/.output/server/package.json +22 -22
- package/package.json +6 -6
- package/.output/public/_nuxt/-oaD50UK.js +0 -1
- package/.output/public/_nuxt/0ekw3e2V.js +0 -1
- package/.output/public/_nuxt/1f5tAgHw.js +0 -1
- package/.output/public/_nuxt/5ggY4uig.js +0 -1
- package/.output/public/_nuxt/6nHXG8SA.js +0 -1
- package/.output/public/_nuxt/9hmcqHPO.js +0 -1
- package/.output/public/_nuxt/BBxmzUt6.js +0 -1
- package/.output/public/_nuxt/BE2KfCdU.js +0 -1
- package/.output/public/_nuxt/BFNM2w_f.js +0 -1
- package/.output/public/_nuxt/BGLu70Yq.js +0 -1
- package/.output/public/_nuxt/BIuj43Wh.js +0 -1
- package/.output/public/_nuxt/BNGfscqk.js +0 -1
- package/.output/public/_nuxt/BQvybpQq.js +0 -1
- package/.output/public/_nuxt/BU7Cl-8B.js +0 -1
- package/.output/public/_nuxt/BUXOnL59.js +0 -1
- package/.output/public/_nuxt/Bbwybh3N.js +0 -2
- package/.output/public/_nuxt/BczD6j-v.js +0 -1
- package/.output/public/_nuxt/BepWV7mh.js +0 -1
- package/.output/public/_nuxt/Bh0qehhp.js +0 -1
- package/.output/public/_nuxt/Bl2oy6fF.js +0 -1
- package/.output/public/_nuxt/BmDdxTjo.js +0 -1
- package/.output/public/_nuxt/BqeRdtD4.js +0 -2
- package/.output/public/_nuxt/BvAqAH-y.js +0 -1
- package/.output/public/_nuxt/BxZD33h1.js +0 -1
- package/.output/public/_nuxt/C7Pw0Ztw.js +0 -1
- package/.output/public/_nuxt/C8-UwF3o.js +0 -1
- package/.output/public/_nuxt/CCd08HS_.js +0 -1
- package/.output/public/_nuxt/CHadp7IV.js +0 -1
- package/.output/public/_nuxt/CHh-QcGE.js +0 -1
- package/.output/public/_nuxt/CIUZ1G5V.js +0 -1
- package/.output/public/_nuxt/CJ6lOLXp.js +0 -1
- package/.output/public/_nuxt/CN9dMhDM.js +0 -1
- package/.output/public/_nuxt/CQ4fj8p0.js +0 -1
- package/.output/public/_nuxt/CTWiQX6C.js +0 -1
- package/.output/public/_nuxt/CXxzV4dz.js +0 -1
- package/.output/public/_nuxt/CZlF05X6.js +0 -1
- package/.output/public/_nuxt/CatV_12G.js +0 -1
- package/.output/public/_nuxt/CeMkeBDb.js +0 -1
- package/.output/public/_nuxt/CelvVQyk.js +0 -1
- package/.output/public/_nuxt/CfV455SO.js +0 -1
- package/.output/public/_nuxt/CfeIJUat.js +0 -1
- package/.output/public/_nuxt/CfqrF6sE.js +0 -1
- package/.output/public/_nuxt/Cfs9EX91.js +0 -1
- package/.output/public/_nuxt/ChH_ziBE.js +0 -1
- package/.output/public/_nuxt/ChM1GEGa.js +0 -1
- package/.output/public/_nuxt/CtwNW5xN.js +0 -1
- package/.output/public/_nuxt/Cu8OsqJL.js +0 -1
- package/.output/public/_nuxt/CusJppg0.js +0 -1
- package/.output/public/_nuxt/Cv9koXgw.js +0 -1
- package/.output/public/_nuxt/CvELRi2k.js +0 -5
- package/.output/public/_nuxt/Cw6nGM9K.js +0 -1
- package/.output/public/_nuxt/CwUT5n6w.js +0 -1
- package/.output/public/_nuxt/D-AHKB2i.js +0 -6
- package/.output/public/_nuxt/D-kcn2fr.js +0 -1
- package/.output/public/_nuxt/D08WgyRC.js +0 -1
- package/.output/public/_nuxt/D1Jbgd7O.js +0 -13
- package/.output/public/_nuxt/D1ibY74j.js +0 -1
- package/.output/public/_nuxt/D22FLkUw.js +0 -1
- package/.output/public/_nuxt/D2CYqzqI.js +0 -1
- package/.output/public/_nuxt/D34EmFco.js +0 -1
- package/.output/public/_nuxt/D4OhWExI.js +0 -1
- package/.output/public/_nuxt/DDHikT5j.js +0 -1
- package/.output/public/_nuxt/DDTT3lYc.js +0 -1
- package/.output/public/_nuxt/DFsBSlE_.js +0 -1
- package/.output/public/_nuxt/DHLkt8Yr.js +0 -1
- package/.output/public/_nuxt/DHuTDtaT.js +0 -12
- package/.output/public/_nuxt/DKYwYmdq.js +0 -1
- package/.output/public/_nuxt/DMDPKkZ0.js +0 -1
- package/.output/public/_nuxt/DNEoBllO.js +0 -1
- package/.output/public/_nuxt/DRzH1pOL.js +0 -1
- package/.output/public/_nuxt/DSUF3NDE.js +0 -1
- package/.output/public/_nuxt/DWmtspXK.js +0 -1
- package/.output/public/_nuxt/DXh9HyqW.js +0 -1
- package/.output/public/_nuxt/DXtl0MQI.js +0 -1
- package/.output/public/_nuxt/D_zCY0Xl.js +0 -1
- package/.output/public/_nuxt/DaZJpzOl.js +0 -1
- package/.output/public/_nuxt/Df68jz8_.js +0 -1
- package/.output/public/_nuxt/DhQfdAdO.js +0 -1
- package/.output/public/_nuxt/DiinP2Uv.js +0 -1
- package/.output/public/_nuxt/DljmTZ5-.js +0 -1
- package/.output/public/_nuxt/Dm4QKadl.js +0 -26
- package/.output/public/_nuxt/DmCK90gL.js +0 -1
- package/.output/public/_nuxt/Dn2_MT6a.js +0 -1
- package/.output/public/_nuxt/Don94nLk.js +0 -1
- package/.output/public/_nuxt/DqRHBxBn.js +0 -1
- package/.output/public/_nuxt/Dr8Zlu6v.js +0 -1
- package/.output/public/_nuxt/Drp5UXmf.js +0 -1
- package/.output/public/_nuxt/DtFoCuZo.js +0 -1
- package/.output/public/_nuxt/DxuitVdg.js +0 -2
- package/.output/public/_nuxt/DyJlTyXw.js +0 -1
- package/.output/public/_nuxt/H72r7nSc.js +0 -280
- package/.output/public/_nuxt/Jep7L2Wt.js +0 -1
- package/.output/public/_nuxt/LUl67wzp.js +0 -1
- package/.output/public/_nuxt/M2rHlmBj.js +0 -1
- package/.output/public/_nuxt/N3RVRbLb.js +0 -1
- package/.output/public/_nuxt/NBseiqgx.js +0 -1
- package/.output/public/_nuxt/PoHY5YXO.js +0 -1
- package/.output/public/_nuxt/SdwduGaY.js +0 -1
- package/.output/public/_nuxt/U3pqMjXV.js +0 -1
- package/.output/public/_nuxt/UInuXPgp.js +0 -1
- package/.output/public/_nuxt/XrMy4kkt.js +0 -1
- package/.output/public/_nuxt/YXI84j39.js +0 -2
- package/.output/public/_nuxt/ZZ6g6dXy.js +0 -2
- package/.output/public/_nuxt/builds/meta/67bdb4cb-b70e-4916-9486-0f6cd2f9704f.json +0 -1
- package/.output/public/_nuxt/dglhsJpM.js +0 -1
- package/.output/public/_nuxt/edge-router-yEORMNQw.js +0 -4
- package/.output/public/_nuxt/error-404.CttAF9VE.css +0 -1
- package/.output/public/_nuxt/error-500.DXXd6-x4.css +0 -1
- package/.output/public/_nuxt/ga9TZ2z5.js +0 -1
- package/.output/public/_nuxt/graph-layout-CFj469YF.js +0 -1
- package/.output/public/_nuxt/graph-resolver-Cs66Hj63.js +0 -166
- package/.output/public/_nuxt/ih8zLb53.js +0 -14
- package/.output/public/_nuxt/ov4D99rA.js +0 -1
- package/.output/public/_nuxt/qYU5Tabh.js +0 -1
- package/.output/public/_nuxt/qliWkHmV.js +0 -1
- package/.output/public/_nuxt/vuetify.BrkCt9t5.css +0 -5
- package/.output/public/_nuxt/yaml.worker-CQ6dFw39.js +0 -405
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +0 -9
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{av as Dt,aw as Vi,ax as Cn,ay as Ai,az as In,aA as Qt,l as Mi,_ as te,aB as Vn,aC as dt,aD as Lt,aE as An,aF as Mn,aG as Ni,aH as Ei,aI as Ri,aJ as Oi,aK as at,aL as ze,aM as zi,aN as Ti,ao as Bi,aO as Nn,aP as Hi,aQ as He,i as Mt,aR as _t,aS as Fi,aT as Pi,aU as Di,I as En,aV as Rn,aq as Li,aW as Ui,aX as qi,aY as en}from"#entry";import{E as q,g as M,K as E,W as y,a9 as P,af as oe,b4 as Xi,_ as O,aa as ve,Z as C,aE as Ut,F as g,a1 as b,X as $,ab as Q,a0 as Z,a2 as U,$ as j,ac as ke,t as Le,G as On,ae as Yi,a7 as zn,r as Ee,p as Tn,a3 as ee,i as Gi,ak as Me,a8 as Ue,a5 as Wi,H as ji,b5 as Ki,al as Fe,aT as Bn,aO as xe,av as Je,az as Hn,b6 as Ji,b7 as Zi,aK as Fn,b8 as Qi,w as Pn,a as Dn,aw as Ln,aA as Se,ay as bt,ax as _i,b as Nt,aM as Un,aC as kt,aD as qe,ai as re,n as ft,aI as eo,a$ as to,aH as no,aP as Xe,aS as io,aj as qn,aW as Xn,b9 as oo}from"./Dm4QKadl.js";import{t as tn,a as ao,C as qt,_ as ro}from"./DhQfdAdO.js";import{V as nn}from"./CwUT5n6w.js";import{I as Yn}from"./DXtl0MQI.js";import{_ as so}from"./Cw6nGM9K.js";function lo(e,t){let n=t.length-e.length;if(n===1){let[i,...o]=t;return tn(i,{lazy:e,lazyArgs:o})}if(n===0){let i={lazy:e,lazyArgs:t};return Object.assign(o=>tn(o,i),i)}throw Error("Wrong number of arguments")}function on(...e){return lo(uo,e)}function uo(){let e=new Set;return t=>e.has(t)?ao:(e.add(t),{done:!1,hasNext:!0,next:t})}function co(e,t,n){const i=Array.from({length:n},()=>[]),o=t,r=-(o*(n-1))/2,s=Array.from({length:n},(l,c)=>r+c*o),u=[];for(let l=0;l<e.length-1;l++){const c=e[l],f=e[l+1],m=f[0]-c[0],x=f[1]-c[1],A=Math.sqrt(m*m+x*x);let z=-x,I=m;A!==0&&(z/=A,I/=A),u.push({x:z,y:I})}function d(l,c,f,m){const x=l[0],A=l[1],z=c[0],I=c[1],D=f[0],H=f[1],N=m[0],R=m[1],F=(x-z)*(H-R)-(A-I)*(D-N);if(F===0)return null;const B=((x-D)*(H-R)-(A-H)*(D-N))/F;return[x+B*(z-x),A+B*(I-A)]}for(let l=0;l<n;l++)for(let c=0;c<e.length;c++){const f=e[c];let m=0,x=0;if(c===0)m=u[0].x*s[l],x=u[0].y*s[l];else if(c===e.length-1)m=u[u.length-1].x*s[l],x=u[u.length-1].y*s[l];else{const A=u[c-1],z=u[c],I=e[c-1],D=e[c+1],H=[I[0]+A.x*s[l],I[1]+A.y*s[l]],N=[f[0]+A.x*s[l],f[1]+A.y*s[l]],R=[f[0]+z.x*s[l],f[1]+z.y*s[l]],F=[D[0]+z.x*s[l],D[1]+z.y*s[l]],B=d(H,N,R,F);B?(m=B[0]-f[0],x=B[1]-f[1]):(m=(A.x+z.x)/2*s[l],x=(A.y+z.y)/2*s[l])}i[l].push(`${f[0]+m},${f[1]+x}`)}return i}const fo=["points","stroke"],ho=["points"],_e=3,mo=q({__name:"CustomEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{},inputResolverOutputs:{},components:{},entities:{}},setup(e){Xi(p=>({v0ea2f467:_e}));const t=Dt(),{inputInstance:n,outputInstance:i,inputHub:o,outputHub:a,outputKey:r,inputKey:s,inputNodeType:u}=Vi(t,{source:e.source,target:e.target,sourceHandle:e.sourceHandleId,targetHandle:e.targetHandleId}),d=M(()=>{if(u==="outputs"){const v=e.components[n.type].outputs[s];return{all:v?[v.type]:[]}}if(i&&n){const v=e.components[n.type].inputs[s];return{all:v?[v.type]:[]}}if(a&&n&&s)return{all:(Cn(e.inputResolverOutputs,n.id)[s]??[]).map(v=>v.type)};if(a&&n)return{all:In(e.inputResolverOutputs,n.id).map(p=>p.type),visible:Ai(e.inputResolverOutputs,n.id).map(p=>p.type)};if(i&&o){const v=e.components[i.type].outputs[r];return{all:v?[v.type]:[]}}if(a&&o)return{all:Qt(e.inputResolverOutputs,a.id).flat().map(p=>p.type)};throw Mi.error({msg:"unexpected connection in CustomEdge",inputInstance:n,outputInstance:i,inputHub:o,outputHub:a,outputKey:r,inputKey:s}),new Error("Invalid connection")}),l=M(()=>on(d.value.all).map(p=>e.entities[p])),c=M(()=>{if(!a)return[];const p=Qt(e.inputResolverOutputs,a.id).map(v=>v.type);return on(p).sort()}),f=M(()=>!!a&&e.data.hubReservedGhostLane),m=M(()=>!!a&&e.data.isPendingHubTyped),x=M(()=>!!a&&!!n&&!!s),A=M(()=>x.value?e.components[n.type].inputs[s]?.type:void 0),z=M(()=>{if(!a||!x.value)return!1;const p=A.value;return p?!c.value.includes(p):!1}),I=M(()=>m.value||z.value),D=M(()=>a?I.value?!0:f.value:!1),H=M(()=>D.value&&c.value.length>0),N=M(()=>a?d.value.visible?d.value.visible.length===0:d.value.all.length===0:!1),R=M(()=>{if(!a)return N.value?1:l.value.length;if(B.value)return 1;const v=c.value.length+(H.value?1:0);return Math.max(1,v)}),F=p=>a?c.value.length===0?!0:H.value&&p===R.value-1:N.value,B=M(()=>!!a&&!!n&&!!s),Y=()=>B.value?e.components[n.type].inputs[s]?.type:void 0,K=M(()=>{if(!B.value)return!1;const p=Y();return p?!c.value.includes(p):!1}),L=p=>{if(B.value){if(K.value)return"#9E9E9E";const v=Y();return(v?e.entities[v]:void 0)?.meta.color??"#607D8B"}if(F(p))return"#9E9E9E";if(a){const v=c.value[p];return e.entities[v]?.meta.color??"#607D8B"}return l.value[p%l.value.length].meta.color??"#607D8B"},ye=p=>a?B.value?p===0:N.value?F(p):d.value.visible?F(p)?!1:d.value.visible.includes(c.value[p]):!F(p):N.value?!0:d.value.visible?d.value.visible.includes(l.value[p].type):!0,Ve=(p,v)=>p[0]===v[0]&&p[1]===v[1],Ae=M(()=>{if(!e.data.points)return[];const p=[e.sourceX,e.data.routedSourceY??e.sourceY],v=[e.targetX,e.data.routedTargetY??e.targetY],S=[...e.data.points];return(!S[0]||!Ve(S[0],p))&&S.unshift(p),(!S[S.length-1]||!Ve(S[S.length-1],v))&&S.push(v),co(S,_e,R.value)}),h=p=>{const S=1/R.value;return`-${p*S}s`};return(p,v)=>(y(),E(P,null,[(y(!0),E(P,null,oe(Ae.value,(S,w)=>(y(),E(P,{key:`static-${w}`},[ye(w)?(y(),E("polyline",{key:0,points:S.join(" "),stroke:L(w),fill:"none","stroke-width":_e,style:{opacity:"0.8"}},null,8,fo)):O("",!0)],64))),128)),(y(!0),E(P,null,oe(Ae.value,(S,w)=>(y(),E(P,{key:`highlight-${w}`},[ye(w)?(y(),E("polyline",{key:0,points:S.join(" "),stroke:"white",fill:"none","stroke-width":_e,class:"highlight-polyline animated-highlight",style:ve({animationDelay:h(w)})},null,12,ho)):O("",!0)],64))),128))],64))}}),go=te(mo,[["__scopeId","data-v-755c904f"]]);function vo(e,t){const n={borderRadius:"4px",overflow:"visible"};switch(t){case"blueprint-valid":return{...n,opacity:"0.7",outline:"2px solid #4CAF50",backgroundColor:"rgba(76, 175, 80, 0.1)",boxShadow:"0 0 10px rgba(76, 175, 80, 0.3)"};case"blueprint-invalid":return{...n,opacity:"0.7",outline:"2px solid #F44336",backgroundColor:"rgba(244, 67, 54, 0.1)",boxShadow:"0 0 10px rgba(244, 67, 54, 0.3)"}}return e?{...n,outline:"2px solid #2196F3",boxShadow:"0 0 8px rgba(33, 150, 243, 0.4)"}:n}const yo=q({__name:"HubCard",props:{selected:{type:Boolean},blueprintStatus:{}},setup(e){return(t,n)=>(y(),C(Ut,{variant:"flat",style:ve(g(vo)(e.selected,e.blueprintStatus)),color:"#2d2d2d"},{default:b(()=>[$(Z,{class:"ma-2",size:74},{default:b(()=>[...n[0]||(n[0]=[U("mdi-router",-1)])]),_:1}),Q(t.$slots,"default")]),_:3},8,["style"]))}}),po=q({__name:"HubNodeHandle",props:{side:{},handleColor:{},isValidConnection:{type:Function}},setup(e){return(t,n)=>(y(),E(P,null,[$(g(Vn),{id:"",type:e.side==="left"?"target":"source",position:e.side==="left"?g(dt).Left:g(dt).Right,class:ke(["handle",[e.side==="left"?"left-handle":"right-handle"]]),"is-valid-connection":e.isValidConnection},null,8,["type","position","class","is-valid-connection"]),j("div",{class:ke(["handle-dot",[e.side==="left"?"handle-dot-left":"handle-dot-right"]]),style:ve({backgroundColor:e.handleColor})},null,6)],64))}}),an=te(po,[["__scopeId","data-v-1aff1180"]]),wo={class:"handles"},bo=q({__name:"HubNode",props:{hub:{},isValidConnection:{type:Function}},emits:["contextmenu"],setup(e,{emit:t}){const n=t,{vueFlowStore:i,selection:o}=Lt(),a=An(),r=M(()=>Mn(a.node,i));return(s,u)=>(y(),C(yo,{class:"hub-card",selected:g(o).isNodeSelected(g(a).node),"blueprint-status":g(r),onContextmenu:u[0]||(u[0]=d=>n("contextmenu",d))},{default:b(()=>[Q(s.$slots,"default",{},void 0,!0),j("div",wo,[$(an,{"handle-color":"#3F51B5",side:"left","is-valid-connection":e.isValidConnection},null,8,["is-valid-connection"]),$(an,{"handle-color":"#3F51B5",side:"right","is-valid-connection":e.isValidConnection},null,8,["is-valid-connection"])])]),_:3},8,["selected","blueprint-status"]))}}),au=te(bo,[["__scopeId","data-v-79b30d7c"]]),ko=q({__name:"SelectionRectangle",props:{selectionMode:{default:"add"},selectionArea:{}},setup(e){const t=M(()=>{if(!e.selectionArea)return;const n={left:e.selectionArea.x+"px",top:e.selectionArea.y+"px",width:e.selectionArea.width+"px",height:e.selectionArea.height+"px"};return e.selectionMode==="add"?{...n,border:"2px dashed #2196F3",background:"rgba(33, 150, 243, 0.1)"}:{...n,border:"2px dashed #F44336",background:"rgba(244, 67, 54, 0.1)"}});return(n,i)=>g(t)?(y(),E("div",{key:0,class:"selection-rectangle",style:ve(g(t))},null,4)):O("",!0)}}),xo=te(ko,[["__scopeId","data-v-6118cbbb"]]);var he=(e=>(e.Lines="lines",e.Dots="dots",e))(he||{});const Gn=function({dimensions:e,size:t,color:n}){return On("path",{stroke:n,"stroke-width":t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},Wn=function({radius:e,color:t}){return On("circle",{cx:e,cy:e,r:e,fill:t})};he.Lines+"",he.Dots+"";const So={[he.Dots]:"#81818a",[he.Lines]:"#eee"},$o=["id","x","y","width","height","patternTransform"],Co={key:2,height:"100",width:"100"},Io=["fill"],Vo=["x","y","fill"],Ao={name:"Background",compatConfig:{MODE:3}},Mo=q({...Ao,props:{id:{},variant:{default:()=>he.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:t,viewport:n}=Dt(),i=M(()=>{const r=n.value.zoom,[s,u]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],d=[s*r||1,u*r||1],l=e.size*r,[c,f]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset],m=[c*r||1+d[0]/2,f*r||1+d[1]/2];return{scaledGap:d,offset:m,size:l}}),o=Le(()=>`pattern-${t}${e.id?`-${e.id}`:""}`),a=Le(()=>e.color||e.patternColor||So[e.variant||he.Dots]);return(r,s)=>(y(),E("svg",{class:"vue-flow__background vue-flow__container",style:ve({height:`${r.height>100?100:r.height}%`,width:`${r.width>100?100:r.width}%`})},[Q(r.$slots,"pattern-container",{id:o.value},()=>[j("pattern",{id:o.value,x:g(n).x%i.value.scaledGap[0],y:g(n).y%i.value.scaledGap[1],width:i.value.scaledGap[0],height:i.value.scaledGap[1],patternTransform:`translate(-${i.value.offset[0]},-${i.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[Q(r.$slots,"pattern",{},()=>[r.variant===g(he).Lines?(y(),C(g(Gn),{key:0,size:r.lineWidth,color:a.value,dimensions:i.value.scaledGap},null,8,["size","color","dimensions"])):r.variant===g(he).Dots?(y(),C(g(Wn),{key:1,color:a.value,radius:i.value.size/2},null,8,["color","radius"])):O("",!0),r.bgColor?(y(),E("svg",Co,[j("rect",{width:"100%",height:"100%",fill:r.bgColor},null,8,Io)])):O("",!0)])],8,$o)]),j("rect",{x:r.x,y:r.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,Vo),Q(r.$slots,"default",{id:o.value})],4))}});var No={value:()=>{}};function Xt(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new rt(n)}function rt(e){this._=e}function Eo(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}rt.prototype=Xt.prototype={constructor:rt,on:function(e,t){var n=this._,i=Eo(e+"",n),o,a=-1,r=i.length;if(arguments.length<2){for(;++a<r;)if((o=(e=i[a]).type)&&(o=Ro(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<r;)if(o=(e=i[a]).type)n[o]=rn(n[o],e.name,t);else if(t==null)for(o in n)n[o]=rn(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new rt(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,a;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,o=a.length;i<o;++i)a[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(t,n)}};function Ro(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function rn(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=No,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}var Et="http://www.w3.org/1999/xhtml";const sn={svg:"http://www.w3.org/2000/svg",xhtml:Et,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xt(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),sn.hasOwnProperty(t)?{space:sn[t],local:e}:e}function Oo(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Et&&t.documentElement.namespaceURI===Et?t.createElement(e):t.createElementNS(n,e)}}function zo(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function jn(e){var t=xt(e);return(t.local?zo:Oo)(t)}function To(){}function Yt(e){return e==null?To:function(){return this.querySelector(e)}}function Bo(e){typeof e!="function"&&(e=Yt(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var a=t[o],r=a.length,s=i[o]=new Array(r),u,d,l=0;l<r;++l)(u=a[l])&&(d=e.call(u,u.__data__,l,a))&&("__data__"in u&&(d.__data__=u.__data__),s[l]=d);return new ae(i,this._parents)}function Ho(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Fo(){return[]}function Kn(e){return e==null?Fo:function(){return this.querySelectorAll(e)}}function Po(e){return function(){return Ho(e.apply(this,arguments))}}function Do(e){typeof e=="function"?e=Po(e):e=Kn(e);for(var t=this._groups,n=t.length,i=[],o=[],a=0;a<n;++a)for(var r=t[a],s=r.length,u,d=0;d<s;++d)(u=r[d])&&(i.push(e.call(u,u.__data__,d,r)),o.push(u));return new ae(i,o)}function Jn(e){return function(){return this.matches(e)}}function Zn(e){return function(t){return t.matches(e)}}var Lo=Array.prototype.find;function Uo(e){return function(){return Lo.call(this.children,e)}}function qo(){return this.firstElementChild}function Xo(e){return this.select(e==null?qo:Uo(typeof e=="function"?e:Zn(e)))}var Yo=Array.prototype.filter;function Go(){return Array.from(this.children)}function Wo(e){return function(){return Yo.call(this.children,e)}}function jo(e){return this.selectAll(e==null?Go:Wo(typeof e=="function"?e:Zn(e)))}function Ko(e){typeof e!="function"&&(e=Jn(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var a=t[o],r=a.length,s=i[o]=[],u,d=0;d<r;++d)(u=a[d])&&e.call(u,u.__data__,d,a)&&s.push(u);return new ae(i,this._parents)}function Qn(e){return new Array(e.length)}function Jo(){return new ae(this._enter||this._groups.map(Qn),this._parents)}function ht(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ht.prototype={constructor:ht,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Zo(e){return function(){return e}}function Qo(e,t,n,i,o,a){for(var r=0,s,u=t.length,d=a.length;r<d;++r)(s=t[r])?(s.__data__=a[r],i[r]=s):n[r]=new ht(e,a[r]);for(;r<u;++r)(s=t[r])&&(o[r]=s)}function _o(e,t,n,i,o,a,r){var s,u,d=new Map,l=t.length,c=a.length,f=new Array(l),m;for(s=0;s<l;++s)(u=t[s])&&(f[s]=m=r.call(u,u.__data__,s,t)+"",d.has(m)?o[s]=u:d.set(m,u));for(s=0;s<c;++s)m=r.call(e,a[s],s,a)+"",(u=d.get(m))?(i[s]=u,u.__data__=a[s],d.delete(m)):n[s]=new ht(e,a[s]);for(s=0;s<l;++s)(u=t[s])&&d.get(f[s])===u&&(o[s]=u)}function ea(e){return e.__data__}function ta(e,t){if(!arguments.length)return Array.from(this,ea);var n=t?_o:Qo,i=this._parents,o=this._groups;typeof e!="function"&&(e=Zo(e));for(var a=o.length,r=new Array(a),s=new Array(a),u=new Array(a),d=0;d<a;++d){var l=i[d],c=o[d],f=c.length,m=na(e.call(l,l&&l.__data__,d,i)),x=m.length,A=s[d]=new Array(x),z=r[d]=new Array(x),I=u[d]=new Array(f);n(l,c,A,z,I,m,t);for(var D=0,H=0,N,R;D<x;++D)if(N=A[D]){for(D>=H&&(H=D+1);!(R=z[H])&&++H<x;);N._next=R||null}}return r=new ae(r,i),r._enter=s,r._exit=u,r}function na(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ia(){return new ae(this._exit||this._groups.map(Qn),this._parents)}function oa(e,t,n){var i=this.enter(),o=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?a.remove():n(a),i&&o?i.merge(o).order():o}function aa(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,a=i.length,r=Math.min(o,a),s=new Array(o),u=0;u<r;++u)for(var d=n[u],l=i[u],c=d.length,f=s[u]=new Array(c),m,x=0;x<c;++x)(m=d[x]||l[x])&&(f[x]=m);for(;u<o;++u)s[u]=n[u];return new ae(s,this._parents)}function ra(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],o=i.length-1,a=i[o],r;--o>=0;)(r=i[o])&&(a&&r.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(r,a),a=r);return this}function sa(e){e||(e=la);function t(c,f){return c&&f?e(c.__data__,f.__data__):!c-!f}for(var n=this._groups,i=n.length,o=new Array(i),a=0;a<i;++a){for(var r=n[a],s=r.length,u=o[a]=new Array(s),d,l=0;l<s;++l)(d=r[l])&&(u[l]=d);u.sort(t)}return new ae(o,this._parents).order()}function la(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ua(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function ca(){return Array.from(this)}function da(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,a=i.length;o<a;++o){var r=i[o];if(r)return r}return null}function fa(){let e=0;for(const t of this)++e;return e}function ha(){return!this.node()}function ma(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o=t[n],a=0,r=o.length,s;a<r;++a)(s=o[a])&&e.call(s,s.__data__,a,o);return this}function ga(e){return function(){this.removeAttribute(e)}}function va(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ya(e,t){return function(){this.setAttribute(e,t)}}function pa(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function wa(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function ba(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function ka(e,t){var n=xt(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?va:ga:typeof t=="function"?n.local?ba:wa:n.local?pa:ya)(n,t))}function _n(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xa(e){return function(){this.style.removeProperty(e)}}function Sa(e,t,n){return function(){this.style.setProperty(e,t,n)}}function $a(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function Ca(e,t,n){return arguments.length>1?this.each((t==null?xa:typeof t=="function"?$a:Sa)(e,t,n??"")):Re(this.node(),e)}function Re(e,t){return e.style.getPropertyValue(t)||_n(e).getComputedStyle(e,null).getPropertyValue(t)}function Ia(e){return function(){delete this[e]}}function Va(e,t){return function(){this[e]=t}}function Aa(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Ma(e,t){return arguments.length>1?this.each((t==null?Ia:typeof t=="function"?Aa:Va)(e,t)):this.node()[e]}function ei(e){return e.trim().split(/^|\s+/)}function Gt(e){return e.classList||new ti(e)}function ti(e){this._node=e,this._names=ei(e.getAttribute("class")||"")}ti.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ni(e,t){for(var n=Gt(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function ii(e,t){for(var n=Gt(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function Na(e){return function(){ni(this,e)}}function Ea(e){return function(){ii(this,e)}}function Ra(e,t){return function(){(t.apply(this,arguments)?ni:ii)(this,e)}}function Oa(e,t){var n=ei(e+"");if(arguments.length<2){for(var i=Gt(this.node()),o=-1,a=n.length;++o<a;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?Ra:t?Na:Ea)(n,t))}function za(){this.textContent=""}function Ta(e){return function(){this.textContent=e}}function Ba(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Ha(e){return arguments.length?this.each(e==null?za:(typeof e=="function"?Ba:Ta)(e)):this.node().textContent}function Fa(){this.innerHTML=""}function Pa(e){return function(){this.innerHTML=e}}function Da(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function La(e){return arguments.length?this.each(e==null?Fa:(typeof e=="function"?Da:Pa)(e)):this.node().innerHTML}function Ua(){this.nextSibling&&this.parentNode.appendChild(this)}function qa(){return this.each(Ua)}function Xa(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ya(){return this.each(Xa)}function Ga(e){var t=typeof e=="function"?e:jn(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Wa(){return null}function ja(e,t){var n=typeof e=="function"?e:jn(e),i=t==null?Wa:typeof t=="function"?t:Yt(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Ka(){var e=this.parentNode;e&&e.removeChild(this)}function Ja(){return this.each(Ka)}function Za(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Qa(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _a(e){return this.select(e?Qa:Za)}function er(e){return arguments.length?this.property("__data__",e):this.node().__data__}function tr(e){return function(t){e.call(this,t,this.__data__)}}function nr(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function ir(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,o=t.length,a;n<o;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function or(e,t,n){return function(){var i=this.__on,o,a=tr(t);if(i){for(var r=0,s=i.length;r<s;++r)if((o=i[r]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=n),o.value=t;return}}this.addEventListener(e.type,a,n),o={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(o):this.__on=[o]}}function ar(e,t,n){var i=nr(e+""),o,a=i.length,r;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,d=s.length,l;u<d;++u)for(o=0,l=s[u];o<a;++o)if((r=i[o]).type===l.type&&r.name===l.name)return l.value}return}for(s=t?or:ir,o=0;o<a;++o)this.each(s(i[o],t,n));return this}function oi(e,t,n){var i=_n(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function rr(e,t){return function(){return oi(this,e,t)}}function sr(e,t){return function(){return oi(this,e,t.apply(this,arguments))}}function lr(e,t){return this.each((typeof t=="function"?sr:rr)(e,t))}function*ur(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,a=i.length,r;o<a;++o)(r=i[o])&&(yield r)}var ai=[null];function ae(e,t){this._groups=e,this._parents=t}function Ze(){return new ae([[document.documentElement]],ai)}function cr(){return this}ae.prototype=Ze.prototype={constructor:ae,select:Bo,selectAll:Do,selectChild:Xo,selectChildren:jo,filter:Ko,data:ta,enter:Jo,exit:ia,join:oa,merge:aa,selection:cr,order:ra,sort:sa,call:ua,nodes:ca,node:da,size:fa,empty:ha,each:ma,attr:ka,style:Ca,property:Ma,classed:Oa,text:Ha,html:La,raise:qa,lower:Ya,append:Ga,insert:ja,remove:Ja,clone:_a,datum:er,on:ar,dispatch:lr,[Symbol.iterator]:ur};function be(e){return typeof e=="string"?new ae([[document.querySelector(e)]],[document.documentElement]):new ae([[e]],ai)}function dr(e){let t;for(;t=e.sourceEvent;)e=t;return e}function pe(e,t){if(e=dr(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}const Rt={capture:!0,passive:!1};function Ot(e){e.preventDefault(),e.stopImmediatePropagation()}function fr(e){var t=e.document.documentElement,n=be(e).on("dragstart.drag",Ot,Rt);"onselectstart"in t?n.on("selectstart.drag",Ot,Rt):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function hr(e,t){var n=e.document.documentElement,i=be(e).on("dragstart.drag",null);t&&(i.on("click.drag",Ot,Rt),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Wt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ri(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Qe(){}var Ye=.7,mt=1/Ye,Ne="\\s*([+-]?\\d+)\\s*",Ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mr=/^#([0-9a-f]{3,8})$/,gr=new RegExp(`^rgb\\(${Ne},${Ne},${Ne}\\)$`),vr=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),yr=new RegExp(`^rgba\\(${Ne},${Ne},${Ne},${Ge}\\)$`),pr=new RegExp(`^rgba\\(${ce},${ce},${ce},${Ge}\\)$`),wr=new RegExp(`^hsl\\(${Ge},${ce},${ce}\\)$`),br=new RegExp(`^hsla\\(${Ge},${ce},${ce},${Ge}\\)$`),ln={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Wt(Qe,We,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:un,formatHex:un,formatHex8:kr,formatHsl:xr,formatRgb:cn,toString:cn});function un(){return this.rgb().formatHex()}function kr(){return this.rgb().formatHex8()}function xr(){return si(this).formatHsl()}function cn(){return this.rgb().formatRgb()}function We(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=mr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?dn(t):n===3?new _(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?et(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?et(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=gr.exec(e))?new _(t[1],t[2],t[3],1):(t=vr.exec(e))?new _(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yr.exec(e))?et(t[1],t[2],t[3],t[4]):(t=pr.exec(e))?et(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wr.exec(e))?mn(t[1],t[2]/100,t[3]/100,1):(t=br.exec(e))?mn(t[1],t[2]/100,t[3]/100,t[4]):ln.hasOwnProperty(e)?dn(ln[e]):e==="transparent"?new _(NaN,NaN,NaN,0):null}function dn(e){return new _(e>>16&255,e>>8&255,e&255,1)}function et(e,t,n,i){return i<=0&&(e=t=n=NaN),new _(e,t,n,i)}function Sr(e){return e instanceof Qe||(e=We(e)),e?(e=e.rgb(),new _(e.r,e.g,e.b,e.opacity)):new _}function zt(e,t,n,i){return arguments.length===1?Sr(e):new _(e,t,n,i??1)}function _(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}Wt(_,zt,ri(Qe,{brighter(e){return e=e==null?mt:Math.pow(mt,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ye:Math.pow(Ye,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _(Ce(this.r),Ce(this.g),Ce(this.b),gt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fn,formatHex:fn,formatHex8:$r,formatRgb:hn,toString:hn}));function fn(){return`#${$e(this.r)}${$e(this.g)}${$e(this.b)}`}function $r(){return`#${$e(this.r)}${$e(this.g)}${$e(this.b)}${$e((isNaN(this.opacity)?1:this.opacity)*255)}`}function hn(){const e=gt(this.opacity);return`${e===1?"rgb(":"rgba("}${Ce(this.r)}, ${Ce(this.g)}, ${Ce(this.b)}${e===1?")":`, ${e})`}`}function gt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ce(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $e(e){return e=Ce(e),(e<16?"0":"")+e.toString(16)}function mn(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new le(e,t,n,i)}function si(e){if(e instanceof le)return new le(e.h,e.s,e.l,e.opacity);if(e instanceof Qe||(e=We(e)),!e)return new le;if(e instanceof le)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),a=Math.max(t,n,i),r=NaN,s=a-o,u=(a+o)/2;return s?(t===a?r=(n-i)/s+(n<i)*6:n===a?r=(i-t)/s+2:r=(t-n)/s+4,s/=u<.5?a+o:2-a-o,r*=60):s=u>0&&u<1?0:r,new le(r,s,u,e.opacity)}function Cr(e,t,n,i){return arguments.length===1?si(e):new le(e,t,n,i??1)}function le(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Wt(le,Cr,ri(Qe,{brighter(e){return e=e==null?mt:Math.pow(mt,e),new le(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ye:Math.pow(Ye,e),new le(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new _(It(e>=240?e-240:e+120,o,i),It(e,o,i),It(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new le(gn(this.h),tt(this.s),tt(this.l),gt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=gt(this.opacity);return`${e===1?"hsl(":"hsla("}${gn(this.h)}, ${tt(this.s)*100}%, ${tt(this.l)*100}%${e===1?")":`, ${e})`}`}}));function gn(e){return e=(e||0)%360,e<0?e+360:e}function tt(e){return Math.max(0,Math.min(1,e||0))}function It(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const li=e=>()=>e;function Ir(e,t){return function(n){return e+n*t}}function Vr(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function Ar(e){return(e=+e)==1?ui:function(t,n){return n-t?Vr(t,n,e):li(isNaN(t)?n:t)}}function ui(e,t){var n=t-e;return n?Ir(e,n):li(isNaN(e)?t:e)}const vn=(function e(t){var n=Ar(t);function i(o,a){var r=n((o=zt(o)).r,(a=zt(a)).r),s=n(o.g,a.g),u=n(o.b,a.b),d=ui(o.opacity,a.opacity);return function(l){return o.r=r(l),o.g=s(l),o.b=u(l),o.opacity=d(l),o+""}}return i.gamma=e,i})(1);function we(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Tt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vt=new RegExp(Tt.source,"g");function Mr(e){return function(){return e}}function Nr(e){return function(t){return e(t)+""}}function Er(e,t){var n=Tt.lastIndex=Vt.lastIndex=0,i,o,a,r=-1,s=[],u=[];for(e=e+"",t=t+"";(i=Tt.exec(e))&&(o=Vt.exec(t));)(a=o.index)>n&&(a=t.slice(n,a),s[r]?s[r]+=a:s[++r]=a),(i=i[0])===(o=o[0])?s[r]?s[r]+=o:s[++r]=o:(s[++r]=null,u.push({i:r,x:we(i,o)})),n=Vt.lastIndex;return n<t.length&&(a=t.slice(n),s[r]?s[r]+=a:s[++r]=a),s.length<2?u[0]?Nr(u[0].x):Mr(t):(t=u.length,function(d){for(var l=0,c;l<t;++l)s[(c=u[l]).i]=c.x(d);return s.join("")})}var yn=180/Math.PI,Bt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ci(e,t,n,i,o,a){var r,s,u;return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(u=e*n+t*i)&&(n-=e*u,i-=t*u),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,u/=s),e*i<t*n&&(e=-e,t=-t,u=-u,r=-r),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*yn,skewX:Math.atan(u)*yn,scaleX:r,scaleY:s}}var nt;function Rr(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Bt:ci(t.a,t.b,t.c,t.d,t.e,t.f)}function Or(e){return e==null||(nt||(nt=document.createElementNS("http://www.w3.org/2000/svg","g")),nt.setAttribute("transform",e),!(e=nt.transform.baseVal.consolidate()))?Bt:(e=e.matrix,ci(e.a,e.b,e.c,e.d,e.e,e.f))}function di(e,t,n,i){function o(d){return d.length?d.pop()+" ":""}function a(d,l,c,f,m,x){if(d!==c||l!==f){var A=m.push("translate(",null,t,null,n);x.push({i:A-4,x:we(d,c)},{i:A-2,x:we(l,f)})}else(c||f)&&m.push("translate("+c+t+f+n)}function r(d,l,c,f){d!==l?(d-l>180?l+=360:l-d>180&&(d+=360),f.push({i:c.push(o(c)+"rotate(",null,i)-2,x:we(d,l)})):l&&c.push(o(c)+"rotate("+l+i)}function s(d,l,c,f){d!==l?f.push({i:c.push(o(c)+"skewX(",null,i)-2,x:we(d,l)}):l&&c.push(o(c)+"skewX("+l+i)}function u(d,l,c,f,m,x){if(d!==c||l!==f){var A=m.push(o(m)+"scale(",null,",",null,")");x.push({i:A-4,x:we(d,c)},{i:A-2,x:we(l,f)})}else(c!==1||f!==1)&&m.push(o(m)+"scale("+c+","+f+")")}return function(d,l){var c=[],f=[];return d=e(d),l=e(l),a(d.translateX,d.translateY,l.translateX,l.translateY,c,f),r(d.rotate,l.rotate,c,f),s(d.skewX,l.skewX,c,f),u(d.scaleX,d.scaleY,l.scaleX,l.scaleY,c,f),d=l=null,function(m){for(var x=-1,A=f.length,z;++x<A;)c[(z=f[x]).i]=z.x(m);return c.join("")}}}var zr=di(Rr,"px, ","px)","deg)"),Tr=di(Or,", ",")",")"),Br=1e-12;function pn(e){return((e=Math.exp(e))+1/e)/2}function Hr(e){return((e=Math.exp(e))-1/e)/2}function Fr(e){return((e=Math.exp(2*e))-1)/(e+1)}const Pr=(function e(t,n,i){function o(a,r){var s=a[0],u=a[1],d=a[2],l=r[0],c=r[1],f=r[2],m=l-s,x=c-u,A=m*m+x*x,z,I;if(A<Br)I=Math.log(f/d)/t,z=function(B){return[s+B*m,u+B*x,d*Math.exp(t*B*I)]};else{var D=Math.sqrt(A),H=(f*f-d*d+i*A)/(2*d*n*D),N=(f*f-d*d-i*A)/(2*f*n*D),R=Math.log(Math.sqrt(H*H+1)-H),F=Math.log(Math.sqrt(N*N+1)-N);I=(F-R)/t,z=function(B){var Y=B*I,K=pn(R),L=d/(n*D)*(K*Fr(t*Y+R)-Hr(R));return[s+L*m,u+L*x,d*K/pn(t*Y+R)]}}return z.duration=I*1e3*t/Math.SQRT2,z}return o.rho=function(a){var r=Math.max(.001,+a),s=r*r,u=s*s;return e(r,s,u)},o})(Math.SQRT2,2,4);var Oe=0,Pe=0,Te=0,fi=1e3,vt,De,yt=0,Ie=0,St=0,je=typeof performance=="object"&&performance.now?performance:Date,hi=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jt(){return Ie||(hi(Dr),Ie=je.now()+St)}function Dr(){Ie=0}function pt(){this._call=this._time=this._next=null}pt.prototype=mi.prototype={constructor:pt,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?jt():+n)+(t==null?0:+t),!this._next&&De!==this&&(De?De._next=this:vt=this,De=this),this._call=e,this._time=n,Ht()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ht())}};function mi(e,t,n){var i=new pt;return i.restart(e,t,n),i}function Lr(){jt(),++Oe;for(var e=vt,t;e;)(t=Ie-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Oe}function wn(){Ie=(yt=je.now())+St,Oe=Pe=0;try{Lr()}finally{Oe=0,qr(),Ie=0}}function Ur(){var e=je.now(),t=e-yt;t>fi&&(St-=t,yt=e)}function qr(){for(var e,t=vt,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:vt=n);De=e,Ht(i)}function Ht(e){if(!Oe){Pe&&(Pe=clearTimeout(Pe));var t=e-Ie;t>24?(e<1/0&&(Pe=setTimeout(wn,e-je.now()-St)),Te&&(Te=clearInterval(Te))):(Te||(yt=je.now(),Te=setInterval(Ur,fi)),Oe=1,hi(wn))}}function bn(e,t,n){var i=new pt;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var Xr=Xt("start","end","cancel","interrupt"),Yr=[],gi=0,kn=1,Ft=2,st=3,xn=4,Pt=5,lt=6;function $t(e,t,n,i,o,a){var r=e.__transition;if(!r)e.__transition={};else if(n in r)return;Gr(e,n,{name:t,index:i,group:o,on:Xr,tween:Yr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:gi})}function Kt(e,t){var n=ue(e,t);if(n.state>gi)throw new Error("too late; already scheduled");return n}function de(e,t){var n=ue(e,t);if(n.state>st)throw new Error("too late; already running");return n}function ue(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Gr(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=mi(a,0,n.time);function a(d){n.state=kn,n.timer.restart(r,n.delay,n.time),n.delay<=d&&r(d-n.delay)}function r(d){var l,c,f,m;if(n.state!==kn)return u();for(l in i)if(m=i[l],m.name===n.name){if(m.state===st)return bn(r);m.state===xn?(m.state=lt,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete i[l]):+l<t&&(m.state=lt,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete i[l])}if(bn(function(){n.state===st&&(n.state=xn,n.timer.restart(s,n.delay,n.time),s(d))}),n.state=Ft,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Ft){for(n.state=st,o=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(m=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(o[++c]=m);o.length=c+1}}function s(d){for(var l=d<n.duration?n.ease.call(null,d/n.duration):(n.timer.restart(u),n.state=Pt,1),c=-1,f=o.length;++c<f;)o[c].call(e,l);n.state===Pt&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=lt,n.timer.stop(),delete i[t];for(var d in i)return;delete e.__transition}}function ut(e,t){var n=e.__transition,i,o,a=!0,r;if(n){t=t==null?null:t+"";for(r in n){if((i=n[r]).name!==t){a=!1;continue}o=i.state>Ft&&i.state<Pt,i.state=lt,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[r]}a&&delete e.__transition}}function Wr(e){return this.each(function(){ut(this,e)})}function jr(e,t){var n,i;return function(){var o=de(this,e),a=o.tween;if(a!==n){i=n=a;for(var r=0,s=i.length;r<s;++r)if(i[r].name===t){i=i.slice(),i.splice(r,1);break}}o.tween=i}}function Kr(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var a=de(this,e),r=a.tween;if(r!==i){o=(i=r).slice();for(var s={name:t,value:n},u=0,d=o.length;u<d;++u)if(o[u].name===t){o[u]=s;break}u===d&&o.push(s)}a.tween=o}}function Jr(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=ue(this.node(),n).tween,o=0,a=i.length,r;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((t==null?jr:Kr)(n,e,t))}function Jt(e,t,n){var i=e._id;return e.each(function(){var o=de(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return ue(o,i).value[t]}}function vi(e,t){var n;return(typeof t=="number"?we:t instanceof We?vn:(n=We(t))?(t=n,vn):Er)(e,t)}function Zr(e){return function(){this.removeAttribute(e)}}function Qr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _r(e,t,n){var i,o=n+"",a;return function(){var r=this.getAttribute(e);return r===o?null:r===i?a:a=t(i=r,n)}}function es(e,t,n){var i,o=n+"",a;return function(){var r=this.getAttributeNS(e.space,e.local);return r===o?null:r===i?a:a=t(i=r,n)}}function ts(e,t,n){var i,o,a;return function(){var r,s=n(this),u;return s==null?void this.removeAttribute(e):(r=this.getAttribute(e),u=s+"",r===u?null:r===i&&u===o?a:(o=u,a=t(i=r,s)))}}function ns(e,t,n){var i,o,a;return function(){var r,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(r=this.getAttributeNS(e.space,e.local),u=s+"",r===u?null:r===i&&u===o?a:(o=u,a=t(i=r,s)))}}function is(e,t){var n=xt(e),i=n==="transform"?Tr:vi;return this.attrTween(e,typeof t=="function"?(n.local?ns:ts)(n,i,Jt(this,"attr."+e,t)):t==null?(n.local?Qr:Zr)(n):(n.local?es:_r)(n,i,t))}function os(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function as(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function rs(e,t){var n,i;function o(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&as(e,a)),n}return o._value=t,o}function ss(e,t){var n,i;function o(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&os(e,a)),n}return o._value=t,o}function ls(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=xt(e);return this.tween(n,(i.local?rs:ss)(i,t))}function us(e,t){return function(){Kt(this,e).delay=+t.apply(this,arguments)}}function cs(e,t){return t=+t,function(){Kt(this,e).delay=t}}function ds(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?us:cs)(t,e)):ue(this.node(),t).delay}function fs(e,t){return function(){de(this,e).duration=+t.apply(this,arguments)}}function hs(e,t){return t=+t,function(){de(this,e).duration=t}}function ms(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?fs:hs)(t,e)):ue(this.node(),t).duration}function gs(e,t){if(typeof t!="function")throw new Error;return function(){de(this,e).ease=t}}function vs(e){var t=this._id;return arguments.length?this.each(gs(t,e)):ue(this.node(),t).ease}function ys(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;de(this,e).ease=n}}function ps(e){if(typeof e!="function")throw new Error;return this.each(ys(this._id,e))}function ws(e){typeof e!="function"&&(e=Jn(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var a=t[o],r=a.length,s=i[o]=[],u,d=0;d<r;++d)(u=a[d])&&e.call(u,u.__data__,d,a)&&s.push(u);return new ge(i,this._parents,this._name,this._id)}function bs(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,o=n.length,a=Math.min(i,o),r=new Array(i),s=0;s<a;++s)for(var u=t[s],d=n[s],l=u.length,c=r[s]=new Array(l),f,m=0;m<l;++m)(f=u[m]||d[m])&&(c[m]=f);for(;s<i;++s)r[s]=t[s];return new ge(r,this._parents,this._name,this._id)}function ks(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function xs(e,t,n){var i,o,a=ks(t)?Kt:de;return function(){var r=a(this,e),s=r.on;s!==i&&(o=(i=s).copy()).on(t,n),r.on=o}}function Ss(e,t){var n=this._id;return arguments.length<2?ue(this.node(),n).on.on(e):this.each(xs(n,e,t))}function $s(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Cs(){return this.on("end.remove",$s(this._id))}function Is(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Yt(e));for(var i=this._groups,o=i.length,a=new Array(o),r=0;r<o;++r)for(var s=i[r],u=s.length,d=a[r]=new Array(u),l,c,f=0;f<u;++f)(l=s[f])&&(c=e.call(l,l.__data__,f,s))&&("__data__"in l&&(c.__data__=l.__data__),d[f]=c,$t(d[f],t,n,f,d,ue(l,n)));return new ge(a,this._parents,t,n)}function Vs(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Kn(e));for(var i=this._groups,o=i.length,a=[],r=[],s=0;s<o;++s)for(var u=i[s],d=u.length,l,c=0;c<d;++c)if(l=u[c]){for(var f=e.call(l,l.__data__,c,u),m,x=ue(l,n),A=0,z=f.length;A<z;++A)(m=f[A])&&$t(m,t,n,A,f,x);a.push(f),r.push(l)}return new ge(a,r,t,n)}var As=Ze.prototype.constructor;function Ms(){return new As(this._groups,this._parents)}function Ns(e,t){var n,i,o;return function(){var a=Re(this,e),r=(this.style.removeProperty(e),Re(this,e));return a===r?null:a===n&&r===i?o:o=t(n=a,i=r)}}function yi(e){return function(){this.style.removeProperty(e)}}function Es(e,t,n){var i,o=n+"",a;return function(){var r=Re(this,e);return r===o?null:r===i?a:a=t(i=r,n)}}function Rs(e,t,n){var i,o,a;return function(){var r=Re(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Re(this,e))),r===u?null:r===i&&u===o?a:(o=u,a=t(i=r,s))}}function Os(e,t){var n,i,o,a="style."+t,r="end."+a,s;return function(){var u=de(this,e),d=u.on,l=u.value[a]==null?s||(s=yi(t)):void 0;(d!==n||o!==l)&&(i=(n=d).copy()).on(r,o=l),u.on=i}}function zs(e,t,n){var i=(e+="")=="transform"?zr:vi;return t==null?this.styleTween(e,Ns(e,i)).on("end.style."+e,yi(e)):typeof t=="function"?this.styleTween(e,Rs(e,i,Jt(this,"style."+e,t))).each(Os(this._id,e)):this.styleTween(e,Es(e,i,t),n).on("end.style."+e,null)}function Ts(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function Bs(e,t,n){var i,o;function a(){var r=t.apply(this,arguments);return r!==o&&(i=(o=r)&&Ts(e,r,n)),i}return a._value=t,a}function Hs(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,Bs(e,t,n??""))}function Fs(e){return function(){this.textContent=e}}function Ps(e){return function(){var t=e(this);this.textContent=t??""}}function Ds(e){return this.tween("text",typeof e=="function"?Ps(Jt(this,"text",e)):Fs(e==null?"":e+""))}function Ls(e){return function(t){this.textContent=e.call(this,t)}}function Us(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&Ls(o)),t}return i._value=e,i}function qs(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Us(e))}function Xs(){for(var e=this._name,t=this._id,n=pi(),i=this._groups,o=i.length,a=0;a<o;++a)for(var r=i[a],s=r.length,u,d=0;d<s;++d)if(u=r[d]){var l=ue(u,t);$t(u,e,n,d,r,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new ge(i,this._parents,e,n)}function Ys(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(a,r){var s={value:r},u={value:function(){--o===0&&a()}};n.each(function(){var d=de(this,i),l=d.on;l!==e&&(t=(e=l).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),d.on=t}),o===0&&a()})}var Gs=0;function ge(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function pi(){return++Gs}var fe=Ze.prototype;ge.prototype={constructor:ge,select:Is,selectAll:Vs,selectChild:fe.selectChild,selectChildren:fe.selectChildren,filter:ws,merge:bs,selection:Ms,transition:Xs,call:fe.call,nodes:fe.nodes,node:fe.node,size:fe.size,empty:fe.empty,each:fe.each,on:Ss,attr:is,attrTween:ls,style:zs,styleTween:Hs,text:Ds,textTween:qs,remove:Cs,tween:Jr,delay:ds,duration:ms,ease:vs,easeVarying:ps,end:Ys,[Symbol.iterator]:fe[Symbol.iterator]};function Ws(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var js={time:null,delay:0,duration:250,ease:Ws};function Ks(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Js(e){var t,n;e instanceof ge?(t=e._id,e=e._name):(t=pi(),(n=js).time=jt(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var r=i[a],s=r.length,u,d=0;d<s;++d)(u=r[d])&&$t(u,e,t,d,r,n||Ks(u,t));return new ge(i,this._parents,e,t)}Ze.prototype.interrupt=Wr;Ze.prototype.transition=Js;const it=e=>()=>e;function Zs(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function me(e,t,n){this.k=e,this.x=t,this.y=n}me.prototype={constructor:me,scale:function(e){return e===1?this:new me(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new me(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zt=new me(1,0,0);me.prototype;function At(e){e.stopImmediatePropagation()}function Be(e){e.preventDefault(),e.stopImmediatePropagation()}function Qs(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function _s(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Sn(){return this.__zoom||Zt}function el(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function tl(){return navigator.maxTouchPoints||"ontouchstart"in this}function nl(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],r=e.invertY(t[1][1])-n[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>a?(a+r)/2:Math.min(0,a)||Math.max(0,r))}function il(){var e=Qs,t=_s,n=nl,i=el,o=tl,a=[0,1/0],r=[[-1/0,-1/0],[1/0,1/0]],s=250,u=Pr,d=Xt("start","zoom","end"),l,c,f,m=500,x=150,A=0,z=10;function I(h){h.property("__zoom",Sn).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",K).on("dblclick.zoom",L).filter(o).on("touchstart.zoom",ye).on("touchmove.zoom",Ve).on("touchend.zoom touchcancel.zoom",Ae).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}I.transform=function(h,p,v,S){var w=h.selection?h.selection():h;w.property("__zoom",Sn),h!==w?R(h,p,v,S):w.interrupt().each(function(){F(this,arguments).event(S).start().zoom(null,typeof p=="function"?p.apply(this,arguments):p).end()})},I.scaleBy=function(h,p,v,S){I.scaleTo(h,function(){var w=this.__zoom.k,V=typeof p=="function"?p.apply(this,arguments):p;return w*V},v,S)},I.scaleTo=function(h,p,v,S){I.transform(h,function(){var w=t.apply(this,arguments),V=this.__zoom,k=v==null?N(w):typeof v=="function"?v.apply(this,arguments):v,T=V.invert(k),X=typeof p=="function"?p.apply(this,arguments):p;return n(H(D(V,X),k,T),w,r)},v,S)},I.translateBy=function(h,p,v,S){I.transform(h,function(){return n(this.__zoom.translate(typeof p=="function"?p.apply(this,arguments):p,typeof v=="function"?v.apply(this,arguments):v),t.apply(this,arguments),r)},null,S)},I.translateTo=function(h,p,v,S,w){I.transform(h,function(){var V=t.apply(this,arguments),k=this.__zoom,T=S==null?N(V):typeof S=="function"?S.apply(this,arguments):S;return n(Zt.translate(T[0],T[1]).scale(k.k).translate(typeof p=="function"?-p.apply(this,arguments):-p,typeof v=="function"?-v.apply(this,arguments):-v),V,r)},S,w)};function D(h,p){return p=Math.max(a[0],Math.min(a[1],p)),p===h.k?h:new me(p,h.x,h.y)}function H(h,p,v){var S=p[0]-v[0]*h.k,w=p[1]-v[1]*h.k;return S===h.x&&w===h.y?h:new me(h.k,S,w)}function N(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function R(h,p,v,S){h.on("start.zoom",function(){F(this,arguments).event(S).start()}).on("interrupt.zoom end.zoom",function(){F(this,arguments).event(S).end()}).tween("zoom",function(){var w=this,V=arguments,k=F(w,V).event(S),T=t.apply(w,V),X=v==null?N(T):typeof v=="function"?v.apply(w,V):v,G=Math.max(T[1][0]-T[0][0],T[1][1]-T[0][1]),W=w.__zoom,J=typeof p=="function"?p.apply(w,V):p,ne=u(W.invert(X).concat(G/W.k),J.invert(X).concat(G/J.k));return function(ie){if(ie===1)ie=J;else{var se=ne(ie),Ct=G/se[2];ie=new me(Ct,X[0]-se[0]*Ct,X[1]-se[1]*Ct)}k.zoom(null,ie)}})}function F(h,p,v){return!v&&h.__zooming||new B(h,p)}function B(h,p){this.that=h,this.args=p,this.active=0,this.sourceEvent=null,this.extent=t.apply(h,p),this.taps=0}B.prototype={event:function(h){return h&&(this.sourceEvent=h),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(h,p){return this.mouse&&h!=="mouse"&&(this.mouse[1]=p.invert(this.mouse[0])),this.touch0&&h!=="touch"&&(this.touch0[1]=p.invert(this.touch0[0])),this.touch1&&h!=="touch"&&(this.touch1[1]=p.invert(this.touch1[0])),this.that.__zoom=p,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(h){var p=be(this.that).datum();d.call(h,this.that,new Zs(h,{sourceEvent:this.sourceEvent,target:I,transform:this.that.__zoom,dispatch:d}),p)}};function Y(h,...p){if(!e.apply(this,arguments))return;var v=F(this,p).event(h),S=this.__zoom,w=Math.max(a[0],Math.min(a[1],S.k*Math.pow(2,i.apply(this,arguments)))),V=pe(h);if(v.wheel)(v.mouse[0][0]!==V[0]||v.mouse[0][1]!==V[1])&&(v.mouse[1]=S.invert(v.mouse[0]=V)),clearTimeout(v.wheel);else{if(S.k===w)return;v.mouse=[V,S.invert(V)],ut(this),v.start()}Be(h),v.wheel=setTimeout(k,x),v.zoom("mouse",n(H(D(S,w),v.mouse[0],v.mouse[1]),v.extent,r));function k(){v.wheel=null,v.end()}}function K(h,...p){if(f||!e.apply(this,arguments))return;var v=h.currentTarget,S=F(this,p,!0).event(h),w=be(h.view).on("mousemove.zoom",X,!0).on("mouseup.zoom",G,!0),V=pe(h,v),k=h.clientX,T=h.clientY;fr(h.view),At(h),S.mouse=[V,this.__zoom.invert(V)],ut(this),S.start();function X(W){if(Be(W),!S.moved){var J=W.clientX-k,ne=W.clientY-T;S.moved=J*J+ne*ne>A}S.event(W).zoom("mouse",n(H(S.that.__zoom,S.mouse[0]=pe(W,v),S.mouse[1]),S.extent,r))}function G(W){w.on("mousemove.zoom mouseup.zoom",null),hr(W.view,S.moved),Be(W),S.event(W).end()}}function L(h,...p){if(e.apply(this,arguments)){var v=this.__zoom,S=pe(h.changedTouches?h.changedTouches[0]:h,this),w=v.invert(S),V=v.k*(h.shiftKey?.5:2),k=n(H(D(v,V),S,w),t.apply(this,p),r);Be(h),s>0?be(this).transition().duration(s).call(R,k,S,h):be(this).call(I.transform,k,S,h)}}function ye(h,...p){if(e.apply(this,arguments)){var v=h.touches,S=v.length,w=F(this,p,h.changedTouches.length===S).event(h),V,k,T,X;for(At(h),k=0;k<S;++k)T=v[k],X=pe(T,this),X=[X,this.__zoom.invert(X),T.identifier],w.touch0?!w.touch1&&w.touch0[2]!==X[2]&&(w.touch1=X,w.taps=0):(w.touch0=X,V=!0,w.taps=1+!!l);l&&(l=clearTimeout(l)),V&&(w.taps<2&&(c=X[0],l=setTimeout(function(){l=null},m)),ut(this),w.start())}}function Ve(h,...p){if(this.__zooming){var v=F(this,p).event(h),S=h.changedTouches,w=S.length,V,k,T,X;for(Be(h),V=0;V<w;++V)k=S[V],T=pe(k,this),v.touch0&&v.touch0[2]===k.identifier?v.touch0[0]=T:v.touch1&&v.touch1[2]===k.identifier&&(v.touch1[0]=T);if(k=v.that.__zoom,v.touch1){var G=v.touch0[0],W=v.touch0[1],J=v.touch1[0],ne=v.touch1[1],ie=(ie=J[0]-G[0])*ie+(ie=J[1]-G[1])*ie,se=(se=ne[0]-W[0])*se+(se=ne[1]-W[1])*se;k=D(k,Math.sqrt(ie/se)),T=[(G[0]+J[0])/2,(G[1]+J[1])/2],X=[(W[0]+ne[0])/2,(W[1]+ne[1])/2]}else if(v.touch0)T=v.touch0[0],X=v.touch0[1];else return;v.zoom("touch",n(H(k,T,X),v.extent,r))}}function Ae(h,...p){if(this.__zooming){var v=F(this,p).event(h),S=h.changedTouches,w=S.length,V,k;for(At(h),f&&clearTimeout(f),f=setTimeout(function(){f=null},m),V=0;V<w;++V)k=S[V],v.touch0&&v.touch0[2]===k.identifier?delete v.touch0:v.touch1&&v.touch1[2]===k.identifier&&delete v.touch1;if(v.touch1&&!v.touch0&&(v.touch0=v.touch1,delete v.touch1),v.touch0)v.touch0[1]=this.__zoom.invert(v.touch0[0]);else if(v.end(),v.taps===2&&(k=pe(k,this),Math.hypot(c[0]-k[0],c[1]-k[1])<z)){var T=be(this).on("dblclick.zoom");T&&T.apply(this,arguments)}}}return I.wheelDelta=function(h){return arguments.length?(i=typeof h=="function"?h:it(+h),I):i},I.filter=function(h){return arguments.length?(e=typeof h=="function"?h:it(!!h),I):e},I.touchable=function(h){return arguments.length?(o=typeof h=="function"?h:it(!!h),I):o},I.extent=function(h){return arguments.length?(t=typeof h=="function"?h:it([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),I):t},I.scaleExtent=function(h){return arguments.length?(a[0]=+h[0],a[1]=+h[1],I):[a[0],a[1]]},I.translateExtent=function(h){return arguments.length?(r[0][0]=+h[0][0],r[1][0]=+h[1][0],r[0][1]=+h[0][1],r[1][1]=+h[1][1],I):[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},I.constrain=function(h){return arguments.length?(n=h,I):n},I.duration=function(h){return arguments.length?(s=+h,I):s},I.interpolate=function(h){return arguments.length?(u=h,I):u},I.on=function(){var h=d.on.apply(d,arguments);return h===d?I:h},I.clickDistance=function(h){return arguments.length?(A=(h=+h)*h,I):Math.sqrt(A)},I.tapDistance=function(h){return arguments.length?(z=+h,I):z},I}const wi=Symbol("MiniMapSlots"),ol=["id","x","y","rx","ry","width","height","fill","stroke","stroke-width","shape-rendering"],al={name:"MiniMapNode",compatConfig:{MODE:3},inheritAttrs:!1},rl=q({...al,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{},hidden:{type:Boolean}},emits:["click","dblclick","mouseenter","mousemove","mouseleave"],setup(e,{emit:t}){const n=e,i=Gi(wi),o=zn(),a=Le(()=>o.style??{});function r(c){t("click",c)}function s(c){t("dblclick",c)}function u(c){t("mouseenter",c)}function d(c){t("mousemove",c)}function l(c){t("mouseleave",c)}return(c,f)=>!c.hidden&&c.dimensions.width!==0&&c.dimensions.height!==0?(y(),E(P,{key:0},[g(i)[`node-${n.type}`]?(y(),C(Wi(g(i)[`node-${n.type}`]),Me(Ue({key:0},{...n,...c.$attrs})),null,16)):(y(),E("rect",Ue({key:1,id:c.id},c.$attrs,{class:["vue-flow__minimap-node",{selected:c.selected,dragging:c.dragging}],x:c.position.x,y:c.position.y,rx:c.borderRadius,ry:c.borderRadius,width:c.dimensions.width,height:c.dimensions.height,fill:c.color||a.value.background||a.value.backgroundColor,stroke:c.strokeColor,"stroke-width":c.strokeWidth,"shape-rendering":c.shapeRendering,onClick:r,onDblclick:s,onMouseenter:u,onMousemove:d,onMouseleave:l}),null,16,ol))],64)):O("",!0)}}),sl=["width","height","viewBox","aria-labelledby"],ll=["id"],ul=["d","fill","stroke","stroke-width"],cl={name:"MiniMap",compatConfig:{MODE:3}},dl=q({...cl,props:{nodeColor:{type:[String,Function],default:"#e2e2e2"},nodeStrokeColor:{type:[String,Function],default:"transparent"},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:"rgb(240, 240, 240, 0.6)"},maskStrokeColor:{default:"none"},maskStrokeWidth:{default:1},position:{default:"bottom-right"},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:"Vue Flow mini map"},inversePan:{type:Boolean,default:!1},zoomStep:{default:1},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:["click","nodeClick","nodeDblclick","nodeMouseenter","nodeMousemove","nodeMouseleave"],setup(e,{emit:t}){const n=Yi(),i=zn(),o=200,a=150,{id:r,edges:s,viewport:u,translateExtent:d,dimensions:l,emits:c,d3Selection:f,d3Zoom:m,getNodesInitialized:x}=Dt(),A=Ee();ji(wi,n);const z=Le(()=>{var w;return e.width??((w=i.style)==null?void 0:w.width)??o}),I=Le(()=>{var w;return e.height??((w=i.style)==null?void 0:w.height)??a}),D=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision",H=M(()=>typeof e.nodeColor=="string"?()=>e.nodeColor:e.nodeColor),N=M(()=>typeof e.nodeStrokeColor=="string"?()=>e.nodeStrokeColor:e.nodeStrokeColor),R=M(()=>typeof e.nodeClassName=="string"?()=>e.nodeClassName:typeof e.nodeClassName=="function"?e.nodeClassName:()=>""),F=M(()=>Ni(x.value.filter(w=>!w.hidden))),B=M(()=>({x:-u.value.x/u.value.zoom,y:-u.value.y/u.value.zoom,width:l.value.width/u.value.zoom,height:l.value.height/u.value.zoom})),Y=M(()=>x.value&&x.value.length?Ei(F.value,B.value):B.value),K=M(()=>{const w=Y.value.width/z.value,V=Y.value.height/I.value;return Math.max(w,V)}),L=M(()=>{const w=K.value*z.value,V=K.value*I.value,k=e.offsetScale*K.value;return{offset:k,x:Y.value.x-(w-Y.value.width)/2-k,y:Y.value.y-(V-Y.value.height)/2-k,width:w+k*2,height:V+k*2}}),ye=M(()=>!L.value.x||!L.value.y?"":`
|
|
2
|
-
M${L.value.x-L.value.offset},${L.value.y-L.value.offset}
|
|
3
|
-
h${L.value.width+L.value.offset*2}
|
|
4
|
-
v${L.value.height+L.value.offset*2}
|
|
5
|
-
h${-L.value.width-L.value.offset*2}z
|
|
6
|
-
M${B.value.x+e.maskBorderRadius},${B.value.y}
|
|
7
|
-
h${B.value.width-2*e.maskBorderRadius}
|
|
8
|
-
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 ${e.maskBorderRadius},${e.maskBorderRadius}
|
|
9
|
-
v${B.value.height-2*e.maskBorderRadius}
|
|
10
|
-
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 -${e.maskBorderRadius},${e.maskBorderRadius}
|
|
11
|
-
h${-(B.value.width-2*e.maskBorderRadius)}
|
|
12
|
-
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 -${e.maskBorderRadius},-${e.maskBorderRadius}
|
|
13
|
-
v${-(B.value.height-2*e.maskBorderRadius)}
|
|
14
|
-
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 ${e.maskBorderRadius},-${e.maskBorderRadius}z`);Tn(w=>{if(A.value){const V=be(A.value),k=G=>{if(G.sourceEvent.type!=="wheel"||!f.value||!m.value)return;const W=G.sourceEvent.ctrlKey&&Oi()?10:1,J=-G.sourceEvent.deltaY*(G.sourceEvent.deltaMode===1?.05:G.sourceEvent.deltaMode?1:.002)*e.zoomStep,ne=u.value.zoom*2**(J*W);m.value.scaleTo(f.value,ne)},T=G=>{if(G.sourceEvent.type!=="mousemove"||!f.value||!m.value)return;const W=K.value*Math.max(1,u.value.zoom)*(e.inversePan?-1:1),J={x:u.value.x-G.sourceEvent.movementX*W,y:u.value.y-G.sourceEvent.movementY*W},ne=[[0,0],[l.value.width,l.value.height]],ie=Zt.translate(J.x,J.y).scale(u.value.zoom),se=m.value.constrain()(ie,ne,d.value);m.value.transform(f.value,se)},X=il().wheelDelta(G=>Ri(G)*(e.zoomStep/10)).on("zoom",e.pannable?T:()=>{}).on("zoom.wheel",e.zoomable?k:()=>{});V.call(X),w(()=>{V.on("zoom",null)})}},{flush:"post"});function Ve(w){const[V,k]=pe(w);t("click",{event:w,position:{x:V,y:k}})}function Ae(w,V){const k={event:w,node:V,connectedEdges:ze([V],s.value)};c.miniMapNodeClick(k),t("nodeClick",k)}function h(w,V){const k={event:w,node:V,connectedEdges:ze([V],s.value)};c.miniMapNodeDoubleClick(k),t("nodeDblclick",k)}function p(w,V){const k={event:w,node:V,connectedEdges:ze([V],s.value)};c.miniMapNodeMouseEnter(k),t("nodeMouseenter",k)}function v(w,V){const k={event:w,node:V,connectedEdges:ze([V],s.value)};c.miniMapNodeMouseMove(k),t("nodeMousemove",k)}function S(w,V){const k={event:w,node:V,connectedEdges:ze([V],s.value)};c.miniMapNodeMouseLeave(k),t("nodeMouseleave",k)}return(w,V)=>(y(),C(g(at),{position:w.position,class:ke(["vue-flow__minimap",{pannable:w.pannable,zoomable:w.zoomable}])},{default:b(()=>[(y(),E("svg",{ref_key:"el",ref:A,width:z.value,height:I.value,viewBox:[L.value.x,L.value.y,L.value.width,L.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${g(r)}`,onClick:Ve},[w.ariaLabel?(y(),E("title",{key:0,id:`vue-flow__minimap-${g(r)}`},ee(w.ariaLabel),9,ll)):O("",!0),(y(!0),E(P,null,oe(g(x),k=>(y(),C(rl,{id:k.id,key:k.id,f:"",position:k.computedPosition,dimensions:k.dimensions,selected:k.selected,dragging:k.dragging,style:ve(k.style),class:ke(R.value(k)),color:H.value(k),"border-radius":w.nodeBorderRadius,"stroke-color":N.value(k),"stroke-width":w.nodeStrokeWidth,"shape-rendering":g(D),type:k.type,hidden:k.hidden,onClick:T=>Ae(T,k),onDblclick:T=>h(T,k),onMouseenter:T=>p(T,k),onMousemove:T=>v(T,k),onMouseleave:T=>S(T,k)},null,8,["id","position","dimensions","selected","dragging","style","class","color","border-radius","stroke-color","stroke-width","shape-rendering","type","hidden","onClick","onDblclick","onMouseenter","onMousemove","onMouseleave"]))),128)),j("path",{class:"vue-flow__minimap-mask",d:ye.value,fill:w.maskColor,stroke:w.maskStrokeColor,"stroke-width":w.maskStrokeWidth,"fill-rule":"evenodd"},null,8,ul)],8,sl))]),_:1},8,["position","class"]))}}),fl={class:"vue-flow-container"},hl={key:0},ml={key:0},gl={key:1},vl=q({__name:"GenericCanvas",props:{canvasId:{},inputResolverOutputs:{},components:{},entities:{},interactive:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},minimap:{type:Boolean,default:!0}},emits:["dragover","init"],setup(e,{emit:t}){const n=t,i=Lt.ensureCreated(...e.canvasId);return Tn(()=>{i.edgeEndpointOffsets.setInputResolverOutputs(e.inputResolverOutputs)}),n("init",i),(o,a)=>{const r=zi;return y(),C(r,null,{default:b(()=>[j("div",fl,[$(g(Ti),{"min-zoom":.1,"max-zoom":1,"snap-to-grid":!0,onDragover:a[1]||(a[1]=s=>n("dragover",s))},{"node-instance":b(s=>[Q(o.$slots,"node-instance",Me(Fe(s)),void 0,!0)]),"node-inputs":b(s=>[Q(o.$slots,"node-inputs",Me(Fe(s)),void 0,!0)]),"node-outputs":b(s=>[Q(o.$slots,"node-outputs",Me(Fe(s)),void 0,!0)]),"node-hub":b(s=>[Q(o.$slots,"node-hub",Me(Fe(s)),void 0,!0)]),"edge-custom":b(s=>[$(g(go),Ue(s,{"input-resolver-outputs":e.inputResolverOutputs,components:e.components,entities:e.entities}),null,16,["input-resolver-outputs","components","entities"])]),default:b(()=>[$(g(Mo),{"pattern-color":"#aaa",gap:32}),e.minimap?(y(),C(g(dl),{key:0,position:"top-right"})):O("",!0),$(g(at),{position:"top-left"},{default:b(()=>[e.interactive?(y(),E("div",hl,[a[6]||(a[6]=U(" Hold Control to add nodes to selection and Alt to remove them ",-1)),a[7]||(a[7]=j("br",null,null,-1)),e.editable?(y(),E("div",ml,"Press Ctrl+V to paste blueprint from clipboard")):O("",!0),g(i).selection.selectedNodeIds.size>0?(y(),E("div",gl,[U(" Selected "+ee(g(i).selection.selectedNodeIds.size)+" nodes ",1),a[2]||(a[2]=j("br",null,null,-1)),a[3]||(a[3]=U(" Press Escape to clear selection ",-1)),a[4]||(a[4]=j("br",null,null,-1)),a[5]||(a[5]=U(" Press Ctrl+C to copy selected nodes to clipboard ",-1))])):O("",!0)])):O("",!0)]),_:1}),$(g(at),{position:"bottom-right"},{default:b(()=>[Q(o.$slots,"panel-bottom-right",{},void 0,!0)]),_:3}),$(g(at),{position:"bottom-left"},{default:b(()=>[Q(o.$slots,"panel-bottom-left",{},void 0,!0)]),_:3}),$(g(xo),{"selection-mode":g(i).selection.selectionMode,"selection-area":g(i).selection.selectionArea},null,8,["selection-mode","selection-area"]),$(Ki,{modelValue:g(i).blueprintCopied,"onUpdate:modelValue":a[0]||(a[0]=s=>g(i).blueprintCopied=s),location:"top center",color:"info"},{default:b(()=>[...a[8]||(a[8]=[U(" Blueprint copied to clipboard ",-1)])]),_:1},8,["modelValue"])]),_:3})])]),_:3})}}}),ru=te(vl,[["__scopeId","data-v-fd0cbe42"]]),yl=["innerHTML"],Ke=q({__name:"ArgumentDescription",props:{description:{}},setup(e){return(t,n)=>(y(),E("div",{class:"markdown-body pl-4 text-disabled",innerHTML:("renderMarkdown"in t?t.renderMarkdown:g(Bi))(e.description)},null,8,yl))}}),pl={class:"editor"},wl=q({__name:"CodeArgumentInput",props:{modelValue:{},argument:{},instance:{}},emits:["update:model-value"],setup(e,{emit:t}){const n=Ee("");typeof e.modelValue=="string"?n.value=e.modelValue:n.value=Nn.safeParse(e.modelValue)?.data?.value??"";const i=t,o=a=>{e.argument.kind==="code"?i("update:model-value",a):i("update:model-value",{[Hi.Yaml]:!0,value:a}),n.value=a};return(a,r)=>(y(),C(Bn,{title:e.argument.title,color:"#2d2d2d","bg-color":"#1e1e1e"},{title:b(()=>[j("div",null,ee(e.argument.title),1)]),text:b(()=>[e.argument.description?(y(),C(Ke,{key:0,description:e.argument.description,class:"mb-4"},null,8,["description"])):O("",!0),j("div",pl,[e.argument.kind==="code"?(y(),C(g(nn),{key:0,value:g(n),"onUpdate:value":o,theme:"dark-plus",class:"editor",language:e.argument.language??"text",options:{tabSize:2}},null,8,["value","language"])):(y(),C(g(nn),{key:1,value:g(n),"onUpdate:value":o,theme:"vs-dark",language:"yaml",path:`${e.instance.type}.${e.argument.name}`,options:{tabSize:2}},null,8,["value","path"]))])]),_:1},8,["title"]))}}),bi=te(wl,[["__scopeId","data-v-d566ed14"]]),wt=q({__name:"PlainArgumentInput",props:xe({argument:{},instance:{},isSecret:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Je(e,"modelValue");t.value===void 0&&e.argument.default!==void 0&&(t.value=e.argument.default);const n=Ee(!1),i=M(()=>e.isSecret?n.value?"text":"password":"text"),o=M(()=>e.argument.default!=null?String(e.argument.default):"");return(a,r)=>(y(),E("div",null,[e.argument.kind==="input"&&e.argument.type==="string"?(y(),C(Hn,{key:0,modelValue:t.value,"onUpdate:modelValue":r[1]||(r[1]=s=>t.value=s),label:e.argument.title,placeholder:g(o),type:g(i),variant:"outlined",density:"compact","hide-details":""},{"append-inner":b(()=>[e.isSecret?(y(),C(Z,{key:0,onClick:r[0]||(r[0]=s=>n.value=!g(n))},{default:b(()=>[U(ee(g(n)?"mdi-eye-off":"mdi-eye"),1)]),_:1})):O("",!0)]),_:1},8,["modelValue","label","placeholder","type"])):e.argument.kind==="input"&&(e.argument.type==="number"||e.argument.type==="integer")?(y(),C(Ji,{key:1,modelValue:t.value,"onUpdate:modelValue":r[3]||(r[3]=s=>t.value=s),label:e.argument.title,placeholder:g(o),variant:"outlined",density:"compact","hide-details":""},{"append-inner":b(()=>[e.isSecret?(y(),C(Z,{key:0,onClick:r[2]||(r[2]=s=>n.value=!g(n))},{default:b(()=>[U(ee(g(n)?"mdi-eye-off":"mdi-eye"),1)]),_:1})):O("",!0)]),_:1},8,["modelValue","label","placeholder"])):e.argument.kind==="combobox"?(y(),C(Zi,{key:2,modelValue:t.value,"onUpdate:modelValue":r[4]||(r[4]=s=>t.value=s),label:e.argument.title,placeholder:g(o),variant:"outlined",density:"compact",multiple:"",chips:"","hide-details":""},null,8,["modelValue","label","placeholder"])):e.argument.kind==="select"?(y(),C(Fn,{key:3,modelValue:t.value,"onUpdate:modelValue":r[5]||(r[5]=s=>t.value=s),label:e.argument.title,placeholder:g(o),items:e.argument.enum,variant:"outlined",density:"compact",multiple:e.argument.multiple,"hide-details":""},null,8,["modelValue","label","placeholder","items","multiple"])):(y(),C(Qi,{key:4,modelValue:t.value,"onUpdate:modelValue":r[6]||(r[6]=s=>t.value=s),label:e.argument.title,density:"compact","hide-details":""},null,8,["modelValue","label"])),e.argument.description?(y(),C(Ke,{key:5,class:"mt-2",description:e.argument.description},null,8,["description"])):O("",!0)]))}}),bl={class:"d-flex flex-column ga-4"},ki=q({__name:"GroupArgumentInput",props:xe({argument:{},instance:{},isSecret:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Je(e,"modelValue");t.value===void 0&&(t.value=e.argument.default??{});const n=(o,a)=>{t.value={...t.value,[o]:a}},i=M(()=>e.argument.discriminator?t.value[e.argument.discriminator.name]??"":"");for(const o of e.argument.fields[i.value]??[])t.value[o.name]===void 0&&o.default!==void 0&&(t.value[o.name]=o.default);return Pn(i,o=>{if(!e.argument.discriminator)return;const a=e.argument.fields[o]??[],r={[e.argument.discriminator.name]:o};for(const s of a)r[s.name]=s.default;t.value=r}),(o,a)=>(y(),C(Bn,{color:"#2d2d2d","bg-color":"#2d2d2d"},{title:b(()=>[j("div",null,ee(e.argument.title),1)]),text:b(()=>[e.argument.description?(y(),C(Ke,{key:0,description:e.argument.description,class:"mb-4"},null,8,["description"])):O("",!0),j("div",bl,[e.argument.discriminator?(y(),E(P,{key:1},[j("div",null,[$(Fn,{"model-value":t.value[e.argument.discriminator.name],items:Object.keys(e.argument.fields),label:e.argument.discriminator.title,variant:"outlined",density:"compact","hide-details":"","onUpdate:modelValue":a[0]||(a[0]=r=>n(e.argument.discriminator.name,r))},null,8,["model-value","items","label"]),e.argument.discriminator.description?(y(),C(Ke,{key:0,class:"mt-2",description:e.argument.discriminator.description},null,8,["description"])):O("",!0)]),(y(!0),E(P,null,oe(e.argument.fields[g(i)]??[],r=>(y(),C(wt,{"model-value":t.value[r.name],key:r.name,argument:r,instance:e.instance,"is-secret":e.isSecret,"onUpdate:modelValue":s=>n(r.name,s)},null,8,["model-value","argument","instance","is-secret","onUpdate:modelValue"]))),128))],64)):(y(!0),E(P,{key:0},oe(e.argument.fields[""],r=>(y(),C(wt,{"model-value":t.value[r.name],key:r.name,argument:r,instance:e.instance,"is-secret":e.isSecret,"onUpdate:modelValue":s=>n(r.name,s)},null,8,["model-value","argument","instance","is-secret","onUpdate:modelValue"]))),128))])]),_:1}))}});function xi(e,t){const n={...e};for(const i in t){const o=t[i];o.schema.default&&n[i]===void 0&&(n[i]=He(o.schema.default))}return n}function Si(e,t){if(typeof e!="object"||e===null||t.type!=="object"||!t.properties)return e;const n={};for(const i in e){const o=t.properties[i],a=e[i];$i(a,o)||(n[i]=Si(a,o))}return n}function $i(e,t){const n=Nn.safeParse(e);if(n.success)return n.data.value.trim()==="";if(t.default!==void 0){if(e==null)return!0;const i=JSON.stringify(t.default),o=JSON.stringify(Si(e,t));if(i===o)return!0}return t.type==="boolean"?!1:Array.isArray(e)?e.length===0:typeof e=="object"?e===null||Object.keys(e).length===0:typeof e=="string"?e.trim()==="":typeof e=="number"?isNaN(e)||e===0:typeof e>"u"}function Ci(e,t){const n={};for(const i in e)t[i]&&($i(e[i],t[i].schema)||(n[i]=e[i]));return n}function ct(e,t,n,i,o){if(i.type==="boolean")return{name:e,title:t,description:n,kind:"checkbox",default:o??i.default??!1};if(i.type==="array"){if(typeof i.items!="object"||Array.isArray(i.items))return null;if(i.items?.type==="string"||i.items?.type==="number"||i.items?.type==="integer")return i.items.enum?{name:e,title:t,description:n,kind:"select",type:i.items.type,enum:i.items.enum,multiple:!0,default:o??i.default}:{name:e,title:t,description:n,kind:"combobox",type:i.items.type,default:o??i.default}}return i.type!=="string"&&i.type!=="number"&&i.type!=="integer"?null:i.enum?{name:e,title:t,description:n,kind:"select",type:i.type,enum:i.enum,multiple:!1,default:o??i.default}:{name:e,title:t,description:n,kind:"input",type:i.type,default:o??i.default}}function kl(e){return e.type!=="object"?!1:!!(e.additionalProperties&&Object.keys(e.additionalProperties).length>0||e.propertyNames&&Object.keys(e.propertyNames).length>0||e.patternProperties&&Object.keys(e.patternProperties).length>0)}function xl(e){const t=new Map;for(const n of e)if(!(n.type!=="object"||!n.properties))for(const[i,o]of Object.entries(n.properties)){if(typeof o!="object"||o.const===void 0)continue;const a=t.get(i)??0;t.set(i,a+1)}for(const[n,i]of t.entries()){if(!i||i<e.length)continue;const o=e[0].properties?.[n];if(o&&typeof o=="object"&&o.const!==void 0)return ct(n,o.title??Mt(n),o.description,o)}return null}function Ii(e,t){const n=[],i=[];for(const[o,a]of Object.entries(t)){if(a.schema.anyOf){const s=xl(a.schema.anyOf);if(s){const u={};for(const d of a.schema.anyOf){if(typeof d!="object"||!d.properties)continue;const c=d.properties[s.name].const?.toString();if(c===void 0)continue;const f=[];for(const[m,x]of Object.entries(d.properties)){if(typeof x!="object"||m===s.name)continue;const A=ct(m,x.title??Mt(m),x.description,x,d.default?.[m]);A&&f.push(A)}u[c]=f}Object.keys(u).length>0&&i.push({name:o,title:a.meta.title,description:a.meta.description??a.schema.description,kind:"group",discriminator:s,fields:u,default:He(a.schema.default)});continue}}if(a.schema.type==="object"){if(a.schema.complex||kl(a.schema))_t(e,o,a.schema),i.push({name:o,title:a.meta.title,description:a.meta.description??a.schema.description,kind:"structured",default:He(a.schema.default)});else{const s=[];for(const[u,d]of Object.entries(a.schema.properties??{})){if(typeof d!="object")continue;const l=ct(u,d.title??Mt(u),d.description,d,a.schema.default?.[u]);l&&s.push(l)}s.length>0&&i.push({name:o,title:a.meta.title,description:a.meta.description??a.schema.description,kind:"group",discriminator:void 0,fields:{"":s},default:He(a.schema.default)})}continue}if(a.schema.type==="string"&&(a.schema.language||a.schema.multiline)){i.push({name:o,title:a.meta.title,description:a.meta.description??a.schema.description,kind:"code",language:Fi().optional().safeParse(a.schema.language).data,default:a.schema.default});continue}const r=ct(o,a.meta.title,a.meta.description??a.schema.description,a.schema);if(r){n.push(r);continue}_t(e,o,a.schema),i.push({name:o,title:a.meta.title,description:a.meta.description??a.schema.description,kind:"structured",default:He(a.schema.default)})}return{plainArguments:n,expandableArguments:i}}const Sl="The name of the instance. It must be unique within the same type across the project.",$l=q({__name:"InstanceArgumentEditor",props:xe({instance:{},component:{},state:{},allInstances:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:xe(["save"],["update:modelValue"]),setup(e,{emit:t}){const n=Je(e,"modelValue"),i=Ee(e.instance.name),o=Dn(xi(e.instance.args??{},e.component.args)),a=async()=>{n.value=!1,await ft(),Object.assign(o,e.instance.args)},r=t,s=async()=>{const f=Ci(o,e.component.args);r("save",e.instance.id,i.value,f),await ft(),n.value=!1},u=[f=>!!f||"Name is required",f=>f===e.instance.name||!e.allInstances.has(Pi(e.instance.type,f))||"Instance with this name and type already exists",f=>{const m=Di.safeParse(f);return m.success||m.error.issues[0].message}],{plainArguments:d,expandableArguments:l}=Ii(e.component.type,e.component.args),c=Ee(!0);return(f,m)=>(y(),C(Ln,{modelValue:n.value,"onUpdate:modelValue":m[2]||(m[2]=x=>n.value=x),class:"dialog",fullscreen:""},{default:b(()=>[$(Ut,{variant:"flat",color:e.component.meta.color??"#2d2d2d",title:e.component.meta.title,subtitle:e.component.meta.description},{prepend:b(()=>[$(g(qt),{meta:e.component.meta},null,8,["meta"])]),default:b(()=>[$(Se),$(bt,{class:"d-flex flex-column pt-4 ga-4 dialog-scroll"},{default:b(()=>[$(_i,{modelValue:g(c),"onUpdate:modelValue":m[1]||(m[1]=x=>Nt(c)?c.value=x:null)},{default:b(()=>[$(Hn,{modelValue:g(i),"onUpdate:modelValue":m[0]||(m[0]=x=>Nt(i)?i.value=x:null),label:"Name",variant:"outlined",density:"compact",rules:u},null,8,["modelValue"]),$(Ke,{class:"mt-2",description:Sl})]),_:1},8,["modelValue"]),(y(!0),E(P,null,oe(g(d),x=>(y(),C(wt,{key:x.name,modelValue:g(o)[x.name],"onUpdate:modelValue":A=>g(o)[x.name]=A,argument:x,instance:e.instance},null,8,["modelValue","onUpdate:modelValue","argument","instance"]))),128)),g(l).length>0?(y(),C(Un,{key:0,elevation:0},{default:b(()=>[(y(!0),E(P,null,oe(g(l),x=>(y(),E(P,{key:x.name},[x.kind==="group"?(y(),C(ki,{key:0,modelValue:g(o)[x.name],"onUpdate:modelValue":A=>g(o)[x.name]=A,argument:x,instance:e.instance},null,8,["modelValue","onUpdate:modelValue","argument","instance"])):(y(),C(bi,{key:1,modelValue:g(o)[x.name],"onUpdate:modelValue":A=>g(o)[x.name]=A,argument:x,instance:e.instance},null,8,["modelValue","onUpdate:modelValue","argument","instance"]))],64))),128))]),_:1})):O("",!0)]),_:1}),$(Se),$(kt,{class:"d-flex py-0"},{default:b(()=>[$(qe),$(re,{onClick:a},{default:b(()=>[...m[3]||(m[3]=[U("Cancel",-1)])]),_:1}),$(re,{onClick:s,color:"primary",disabled:!g(c)},{default:b(()=>[...m[4]||(m[4]=[U("Save",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1},8,["color","title","subtitle"])]),_:1},8,["modelValue"]))}}),Cl=te($l,[["__scopeId","data-v-9e94e3ac"]]),Il=q({__name:"InstanceSecretEditor",props:xe({instance:{},state:{},component:{},initialSecrets:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:xe(["save"],["update:modelValue"]),setup(e,{emit:t}){const n=Je(e,"modelValue"),i=Dn(xi(e.initialSecrets,e.component.secrets)),o=t,a=async()=>{n.value=!1,await ft(),Object.assign(i,e.initialSecrets)},r=async()=>{const d=Ci(i,e.component.secrets);e.state&&o("save",e.state.id,d),await ft(),n.value=!1},{plainArguments:s,expandableArguments:u}=Ii(e.component.type,e.component.secrets);return(d,l)=>(y(),C(Ln,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=c=>n.value=c),class:"dialog"},{default:b(()=>[$(Ut,{variant:"flat",color:e.component.meta.color??"#2d2d2d",title:e.component.meta.title,subtitle:e.component.meta.description},{prepend:b(()=>[$(g(qt),{meta:e.component.meta},null,8,["meta"])]),default:b(()=>[$(Se),$(bt,{class:"d-flex flex-column pt-4 ga-4",style:{"max-height":"60vh",overflow:"scroll"}},{default:b(()=>[(y(!0),E(P,null,oe(g(s),c=>(y(),C(wt,{key:c.name,modelValue:g(i)[c.name],"onUpdate:modelValue":f=>g(i)[c.name]=f,argument:c,instance:e.instance,"is-secret":""},null,8,["modelValue","onUpdate:modelValue","argument","instance"]))),128)),g(u).length>0?(y(),C(Un,{key:0,elevation:0},{default:b(()=>[(y(!0),E(P,null,oe(g(u),c=>(y(),E(P,{key:c.name},[c.kind==="group"?(y(),C(ki,{key:0,argument:c,instance:e.instance,modelValue:g(i)[c.name],"onUpdate:modelValue":f=>g(i)[c.name]=f,"is-secret":""},null,8,["argument","instance","modelValue","onUpdate:modelValue"])):(y(),C(bi,{key:1,modelValue:g(i)[c.name],"onUpdate:modelValue":f=>g(i)[c.name]=f,argument:c,instance:e.instance},null,8,["modelValue","onUpdate:modelValue","argument","instance"]))],64))),128))]),_:1})):O("",!0)]),_:1}),$(Se),$(kt,{class:"d-flex py-0"},{default:b(()=>[$(qe),$(re,{onClick:a},{default:b(()=>[...l[1]||(l[1]=[U("Cancel",-1)])]),_:1}),$(re,{onClick:r,color:"primary"},{default:b(()=>[...l[2]||(l[2]=[U("Save",-1)])]),_:1})]),_:1})]),_:1},8,["color","title","subtitle"])]),_:1},8,["modelValue"]))}}),Vl=te(Il,[["__scopeId","data-v-9b4053a7"]]);function Al(e,t){return Array.isArray(e)?e.length===0?"[]":"[...]":typeof e=="object"?"{...}":typeof e=="string"&&t.language?"...":String(e)}const Ml={class:"d-flex text-disabled text-start text-no-wrap"},Nl={key:0,class:"d-flex ml-auto text-error"},El={key:1,class:"d-flex ml-auto text-truncate pl-4"},Rl=q({__name:"InstanceNodeArgumentList",props:{instance:{},component:{}},setup(e){const t=M(()=>{const n=[];for(const[i,o]of Object.entries(e.component.args))!o.required&&(e.instance.args?.[i]==null||e.instance.args?.[i]===o.schema.default)||n.push({name:o.meta.title,value:Al(e.instance.args?.[i],o.schema),requiredAndNotSet:o.required&&e.instance.args?.[i]==null});return n});return(n,i)=>g(t).length>0?(y(),E(P,{key:0},[$(Se),$(bt,{class:"d-flex flex-column gap-2 px-2 py-2"},{default:b(()=>[(y(!0),E(P,null,oe(g(t),({name:o,value:a,requiredAndNotSet:r})=>(y(),E("div",{key:o,class:"d-flex flex-row"},[j("div",Ml,ee(o),1),r?(y(),E("div",Nl,"not set")):(y(),E("div",El,ee(a),1))]))),128))]),_:1})],64)):O("",!0)}}),Ol=q({__name:"InstanceStatusFieldItem",props:{item:{}},setup(e){return(t,n)=>(y(),C(eo,{title:e.item},{append:b(()=>[$(g(Yn),{content:e.item},null,8,["content"])]),_:1},8,["title"]))}}),zl={class:"d-flex flex-row"},Tl={class:"d-flex text-disabled text-start text-no-wrap text-secondary"},Bl=["title"],Hl=q({__name:"InstanceStatusField",props:{statusField:{}},setup(e){const t=M(()=>Array.isArray(e.statusField.value)?e.statusField.value.join(", "):String(e.statusField.value)),n=M(()=>Array.isArray(e.statusField.value)?e.statusField.value.length===0?"[]":e.statusField.value.length===1?e.statusField.value[0]:`${e.statusField.value.length} items`:String(e.statusField.value)),i=M(()=>Array.isArray(e.statusField.value)?e.statusField.value.length>1:!1);return(o,a)=>(y(),E("div",zl,[j("div",Tl,[e.statusField.meta.icon?(y(),C(g(En),{key:0,icon:e.statusField.meta.icon,color:e.statusField.meta.iconColor,width:16,class:"mr-1"},null,8,["icon","color"])):O("",!0),U(" "+ee(e.statusField.meta.title),1)]),$(to,{"open-on-hover":"","close-on-content-click":!1,location:"end",disabled:!g(i)},{activator:b(({props:r})=>[j("div",Ue(r,{class:"d-flex ml-auto text-truncate pl-4",title:g(i)?"":g(t)}),[j("span",{class:ke(["text-truncate",{underline:g(i)}])},ee(g(n)),3)],16,Bl)]),default:b(()=>[$(no,{density:"compact",variant:"text"},{default:b(()=>[(y(!0),E(P,null,oe(e.statusField.value,(r,s)=>(y(),C(Ol,{key:s,item:r},null,8,["item"]))),128))]),_:1})]),_:1},8,["disabled"]),$(g(Yn),{content:g(t)},null,8,["content"])]))}}),Fl=te(Hl,[["__scopeId","data-v-d5d4ae75"]]),Pl=q({__name:"InstanceStatusFieldList",props:{instance:{},state:{}},setup(e){const t=M(()=>e.state.statusFields?.filter(n=>n.value===void 0?!1:n.complementaryTo?!e.instance.args?.[n.complementaryTo]||JSON.stringify(e.instance.args[n.complementaryTo])!==JSON.stringify(n.value):!0)??[]);return(n,i)=>g(t).length>0?(y(),E(P,{key:0},[$(Se),$(bt,{class:"d-flex flex-column gap-2 px-2 py-2"},{default:b(()=>[(y(!0),E(P,null,oe(g(t),o=>(y(),C(Fl,{key:o.name,"status-field":o},null,8,["status-field"]))),128))]),_:1})],64)):O("",!0)}}),Dl=q({__name:"InstanceNodeActions",props:{component:{},state:{},locked:{type:Boolean},editable:{type:Boolean},hideShowComposite:{type:Boolean},loadingSecrets:{type:Boolean},loadingTerminal:{type:Boolean},loadingPage:{type:Boolean},ghost:{type:Boolean,default:!1}},emits:["open:args","open:secrets","open:terminal","open:page","open:composite","operation:launch","operation:cancel"],setup(e,{emit:t}){const n=M(()=>Rn(e.component)&&Object.keys(e.component.secrets).length>0),i=M(()=>Li(e.state?.lastOperationState?.status)),o=M(()=>e.state?.evaluationState&&e.state.evaluationState.status==="evaluating"),a=M(()=>e.state&&(o.value||e.state.lastOperationState?.status==="pending"||e.state.lastOperationState?.totalResourceCount===0||e.state.lastOperationState?.currentResourceCount===0||e.state.lastOperationState?.currentResourceCount===e.state.lastOperationState?.totalResourceCount)),r=M(()=>{if(!e.state?.lastOperationState)return 0;const{currentResourceCount:c,totalResourceCount:f}=e.state.lastOperationState;return c&&f?c/f*100:0}),s=M(()=>e.state?.terminalIds&&e.state.terminalIds.length>0),u=M(()=>e.state?.pageIds&&e.state.pageIds.length>0),d=M(()=>e.state?.lastOperationState?.status==="pending"?"":e.state?.lastOperationState?.status==="destroying"?"error":"primary"),l=t;return(c,f)=>(y(),C(kt,{class:"py-0 h-auto"},{default:b(()=>[Q(c.$slots,"status",{},()=>[$(Xe,{color:""},{default:b(()=>[$(g(so),{size:20,icon:"mdi-circle-outline"})]),_:1})],!0),$(qe),!e.ghost&&!g(Ui)(e.state)&&!g(i)?(y(),C(re,{key:0,size:"small",variant:"tonal",class:"toolbar-button",title:"Create",disabled:e.locked,onClick:f[0]||(f[0]=m=>l("operation:launch","update"))},{default:b(()=>[$(Z,null,{default:b(()=>[...f[8]||(f[8]=[U("mdi-rocket-launch",-1)])]),_:1})]),_:1},8,["disabled"])):!e.ghost&&!g(i)?(y(),C(re,{key:1,size:"small",variant:"tonal",class:"toolbar-button",title:"Update",disabled:e.locked,onClick:f[1]||(f[1]=m=>l("operation:launch","update"))},{default:b(()=>[$(Z,null,{default:b(()=>[...f[9]||(f[9]=[U("mdi-play",-1)])]),_:1})]),_:1},8,["disabled"])):O("",!0),g(i)?(y(),C(re,{key:2,size:"small",variant:"tonal",color:"error",class:"toolbar-button",title:"Cancel Operation",onClick:f[2]||(f[2]=m=>l("operation:cancel"))},{default:b(()=>[$(Z,null,{default:b(()=>[...f[10]||(f[10]=[U("mdi-cancel",-1)])]),_:1})]),_:1})):O("",!0),e.editable&&!e.ghost&&!g(i)?(y(),C(re,{key:3,size:"small",variant:"tonal",class:"toolbar-button",title:"Edit Arguments",locked:e.locked,onClick:f[3]||(f[3]=m=>l("open:args"))},{default:b(()=>[$(Z,null,{default:b(()=>[...f[11]||(f[11]=[U("mdi-pencil",-1)])]),_:1})]),_:1},8,["locked"])):O("",!0),e.editable&&!e.ghost&&!g(i)&&g(n)?(y(),C(re,{key:4,size:"small",variant:"tonal",class:"toolbar-button",loading:e.loadingSecrets,locked:e.locked,title:"Edit Secrets",onClick:f[4]||(f[4]=m=>l("open:secrets"))},{default:b(()=>[$(Z,null,{default:b(()=>[...f[12]||(f[12]=[U("mdi-key",-1)])]),_:1})]),_:1},8,["loading","locked"])):O("",!0),!e.ghost&&g(s)?(y(),C(re,{key:5,size:"small",variant:"tonal",class:"toolbar-button",loading:e.loadingTerminal,title:"Open Terminal",onClick:f[5]||(f[5]=m=>l("open:terminal"))},{default:b(()=>[$(Z,null,{default:b(()=>[...f[13]||(f[13]=[U("mdi-console",-1)])]),_:1})]),_:1},8,["loading"])):O("",!0),!e.ghost&&g(u)?(y(),C(re,{key:6,size:"small",variant:"tonal",class:"toolbar-button",title:"Open Page",loading:e.loadingPage,onClick:f[6]||(f[6]=m=>l("open:page"))},{default:b(()=>[$(Z,null,{default:b(()=>[...f[14]||(f[14]=[U("mdi-file-document",-1)])]),_:1})]),_:1},8,["loading"])):O("",!0),!e.ghost&&e.component.kind==="composite"&&!e.hideShowComposite?(y(),C(re,{key:7,size:"small",variant:"tonal",class:"toolbar-button",title:"Show Structure",onClick:f[7]||(f[7]=m=>l("open:composite"))},{default:b(()=>[$(Z,null,{default:b(()=>[...f[15]||(f[15]=[U("mdi-cube-outline",-1)])]),_:1})]),_:1})):O("",!0),g(o)||g(i)?(y(),C(io,{key:8,size:"small",color:g(d),indeterminate:g(a),"model-value":g(r),absolute:"",location:"bottom"},null,8,["color","indeterminate","model-value"])):O("",!0)]),_:3}))}}),Ll=te(Dl,[["__scopeId","data-v-fac542c3"]]),Ul={key:0,class:"text-h6"},ql={key:1},Xl=q({__name:"InstanceNodeLockBadge",props:{instanceLock:{}},setup(e){return(t,n)=>(y(),C(qn,{disabled:!e.instanceLock.meta.title&&!e.instanceLock.meta.description},{activator:b(({props:i})=>[$(Xe,Me(Fe(i)),{default:b(()=>[$(Z,null,{default:b(()=>[...n[0]||(n[0]=[U("mdi-lock",-1)])]),_:1}),e.instanceLock.meta.icon?(y(),C(g(En),{key:0,class:"ml-1",icon:e.instanceLock.meta.icon,width:18,color:e.instanceLock.meta.iconColor},null,8,["icon","color"])):O("",!0)]),_:1},16)]),default:b(()=>[e.instanceLock.meta.title?(y(),E("div",Ul,ee(e.instanceLock.meta.title),1)):O("",!0),e.instanceLock.meta.description?(y(),E("div",ql,ee(e.instanceLock.meta.description),1)):O("",!0)]),_:1},8,["disabled"]))}}),Yl=q({__name:"InstanceNodeIOSideHandle",props:{name:{},side:{},handleColor:{},isValidConnection:{type:Function}},setup(e){return(t,n)=>(y(),E(P,null,[$(g(Vn),{id:e.name,type:e.side==="left"?"target":"source",position:e.side==="left"?g(dt).Left:g(dt).Right,class:ke(["handle",[e.side==="left"?"left-handle":"right-handle"]]),"is-valid-connection":e.isValidConnection},null,8,["id","type","position","class","is-valid-connection"]),j("div",{class:ke(["handle-dot",[e.side==="left"?"handle-dot-left":"handle-dot-right"]]),style:ve({backgroundColor:e.handleColor})},null,6)],64))}}),$n=te(Yl,[["__scopeId","data-v-ae6b4385"]]);function Gl(e){const t=e.replace("#",""),n=parseInt(t.substring(0,2),16),i=parseInt(t.substring(2,2),16),o=parseInt(t.substring(4,2),16);return(n*299+i*587+o*114)/1e3>=128?"#000":"#fff"}const Wl={ref:"column",class:"d-flex flex-column gr-2 column"},jl=q({__name:"InstanceNodeIOSide",props:{instance:{},component:{},entities:{},type:{},side:{},isValidConnection:{type:Function},resolvedInputs:{},resolvedInjectionInput:{},usedOutputs:{},forceShowAllHandles:{type:Boolean},preventShowAllHandles:{type:Boolean}},setup(e){const t=(l,c)=>{const f=e.component[l][c];return e.entities[f.type]?.meta.color??"#607D8B"},n=(l,c)=>Gl(t(l,c)),i=l=>{const c=e.instance.inputs&&!!e.instance.inputs[l]&&e.instance.inputs[l].length>0,f=e.instance.hubInputs&&!!e.instance.hubInputs[l]&&e.instance.hubInputs[l].length>0;return c||f},o=l=>e.component.inputs[l].required?!e.resolvedInputs?.[l]?.length:!1,a=Xn("column"),{isOutside:r}=qi(a),s=M(()=>e.forceShowAllHandles||!r.value&&!e.preventShowAllHandles),u=M(()=>e.resolvedInjectionInput?e.resolvedInjectionInput.length===1?"1 input":`${e.resolvedInjectionInput.length} inputs`:"no inputs"),d=M(()=>e.instance.injectionInputs&&e.instance.injectionInputs.length>0);return(l,c)=>(y(),E("div",Wl,[e.type==="inputs"&&e.side==="left"&&Object.keys(e.component.inputs).length>0&&(g(d)||g(s))?(y(),C(Xe,{key:0,style:{backgroundColor:"#3F51B5",color:"white"},"text-color":"white",class:"rounded handle-chip"},{default:b(()=>[$(Z,{class:"mr-1",style:{"margin-left":"-2px"}},{default:b(()=>[...c[0]||(c[0]=[U("mdi-router",-1)])]),_:1}),U(" "+ee(g(u))+" ",1),$($n,{name:"",side:e.side,"is-valid-connection":e.isValidConnection,"handle-color":"#3F51B5"},null,8,["side","is-valid-connection"])]),_:1})):O("",!0),(y(!0),E(P,null,oe(e.component[e.type],(f,m)=>(y(),E(P,{key:m},[e.side==="right"&&e.type==="inputs"||e.type==="outputs"&&(!e.usedOutputs||e.usedOutputs.has(m))||e.type==="inputs"&&(i(m)||o(m))||g(s)?(y(),C(Xe,{key:0,style:ve({backgroundColor:t(e.type,m),color:n(e.type,m)}),"text-color":"white",class:"rounded handle-chip"},{default:b(()=>[U(ee(f.meta.title)+" ",1),$($n,{name:m,side:e.side,"is-valid-connection":e.isValidConnection,"handle-color":t(e.type,m)},null,8,["name","side","is-valid-connection","handle-color"])]),_:2},1032,["style"])):O("",!0)],64))),128))],512))}}),ot=te(jl,[["__scopeId","data-v-c3646ddb"]]),Kl=q({__name:"InstanceNodeIO",props:{instance:{},component:{},entities:{},type:{default:"both"},mirror:{type:Boolean},isValidConnection:{type:Function},usedOutputs:{},resolvedInputs:{},resolvedInjectionInput:{},forceShowAllHandles:{type:Boolean},preventShowAllHandles:{type:Boolean}},setup(e){return(t,n)=>(y(),C(kt,{class:"align-start align-stretch component-node-io"},{default:b(()=>[e.mirror?(y(),E(P,{key:1},[e.type==="both"||e.type==="outputs"?(y(),C(ot,{key:0,instance:e.instance,component:e.component,entities:e.entities,"is-valid-connection":e.isValidConnection,type:"outputs","used-outputs":e.usedOutputs,side:"left","force-show-all-handles":e.forceShowAllHandles,"prevent-show-all-handles":e.preventShowAllHandles},null,8,["instance","component","entities","is-valid-connection","used-outputs","force-show-all-handles","prevent-show-all-handles"])):O("",!0),$(qe),e.type==="both"||e.type==="inputs"?(y(),C(ot,{key:1,instance:e.instance,component:e.component,entities:e.entities,"is-valid-connection":e.isValidConnection,type:"inputs",side:"right","resolved-inputs":e.resolvedInputs,"force-show-all-handles":e.forceShowAllHandles,"prevent-show-all-handles":e.preventShowAllHandles},null,8,["instance","component","entities","is-valid-connection","resolved-inputs","force-show-all-handles","prevent-show-all-handles"])):O("",!0)],64)):(y(),E(P,{key:0},[e.type==="both"||e.type==="inputs"?(y(),C(ot,{key:0,instance:e.instance,component:e.component,entities:e.entities,"is-valid-connection":e.isValidConnection,type:"inputs","resolved-inputs":e.resolvedInputs,"resolved-injection-input":e.resolvedInjectionInput,"force-show-all-handles":e.forceShowAllHandles,"prevent-show-all-handles":e.preventShowAllHandles,side:"left"},null,8,["instance","component","entities","is-valid-connection","resolved-inputs","resolved-injection-input","force-show-all-handles","prevent-show-all-handles"])):O("",!0),$(qe),e.type==="both"||e.type==="outputs"?(y(),C(ot,{key:1,instance:e.instance,component:e.component,entities:e.entities,"is-valid-connection":e.isValidConnection,type:"outputs","used-outputs":e.usedOutputs,side:"right","force-show-all-handles":e.forceShowAllHandles,"prevent-show-all-handles":e.preventShowAllHandles},null,8,["instance","component","entities","is-valid-connection","used-outputs","force-show-all-handles","prevent-show-all-handles"])):O("",!0)],64))]),_:1}))}}),Jl=te(Kl,[["__scopeId","data-v-917ac605"]]),Zl={class:"instance-node__badges"},Ql=q({__name:"InstanceNode",props:xe({instance:{},component:{},entities:{},inputResolverOutputs:{},inputResolverDependentMap:{},allInstances:{default:()=>new Map},state:{},instanceLock:{},loadingSecrets:{type:Boolean},loadingTerminal:{type:Boolean},loadingPage:{type:Boolean},initialSecrets:{},editable:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},ioType:{default:"both"},ioMirror:{type:Boolean},hideShowComposite:{type:Boolean},isValidConnection:{type:Function}},{editingSecrets:{type:Boolean,default:!1},editingSecretsModifiers:{}}),emits:xe(["open:secrets","open:terminal","open:page","open:composite","operation:launch","operation:cancel","save:args","save:secrets","contextmenu"],["update:editingSecrets"]),setup(e,{emit:t}){const n=t,i=Je(e,"editingSecrets"),o=Ee(!1),a=M(()=>Object.keys(e.component.inputs).length>0),r=M(()=>Object.keys(e.component.outputs).length>0),s=M(()=>a.value||r.value),u=M(()=>Cn(e.inputResolverOutputs,e.instance.id)),d=M(()=>In(e.inputResolverOutputs,e.instance.id).map(H=>H.input)),l=M(()=>{const H=en(e.inputResolverOutputs,e.instance.id)??{},N=Object.values(H).flat(),R=new Set,F=e.inputResolverDependentMap.get(`instance:${e.instance.id}`)??[],B=Y=>{(Y.input.instanceId===e.instance.id||N.some(K=>K.instanceId===Y.input.instanceId))&&R.add(Y.input.output)};for(const Y of F){const K=e.inputResolverOutputs.get(Y);if(K)if(K.kind==="instance")for(const L of Object.values(K.resolvedInputs))for(const ye of L)B(ye);else for(const L of K.resolvedInputs)B(L)}if(e.instance.parentId){const Y=en(e.inputResolverOutputs,e.instance.parentId)??{};for(const K of Object.values(Y).flat())K.instanceId===e.instance.id&&R.add(K.output)}return R});Pn(l,H=>{H.size!==0&&c.updateNodeInternals([m.node.id])});const{vueFlowStore:c,selection:f}=Lt(),m=An(),x=M(()=>Mn(m.node,c)),A=M(()=>c.connectionStartHandle.value?.nodeId===m.node.id),z=Xn("componentCard"),I=M(()=>c.viewport.value.zoom<.5),D=M(()=>z.value?Math.min(z.value.$el.clientWidth,z.value.$el.clientHeight)*.7:0);return(H,N)=>(y(),E(P,null,[$(g(ro),{class:ke({"instance-card--ghost":e.ghost}),component:e.component,subtitle:e.instance.name,"blueprint-status":x.value,selected:g(f).isNodeSelected(g(m).node),style:{overflow:"visible"},onContextmenu:N[11]||(N[11]=R=>n("contextmenu",R)),ref:"componentCard"},{append:b(()=>[j("div",Zl,[e.ghost?(y(),C(qn,{key:0,location:"top"},{activator:b(({props:R})=>[$(Xe,Ue(R,{class:"instance-node__ghost-chip",color:"primary"}),{default:b(()=>[$(Z,{size:"16"},{default:b(()=>[...N[13]||(N[13]=[U("mdi-ghost",-1)])]),_:1})]),_:1},16)]),default:b(()=>[N[14]||(N[14]=j("span",null," This instance is a ghost. It is no longer a part of the project, but Highstate still tracks it. ",-1))]),_:1})):O("",!0),e.instanceLock?(y(),C(Xl,{key:1,"instance-lock":e.instanceLock},null,8,["instance-lock"])):O("",!0)])]),default:b(()=>[Q(H.$slots,"default",{},void 0,!0),g(o)?(y(),C(g(Cl),{key:0,modelValue:g(o),"onUpdate:modelValue":N[0]||(N[0]=R=>Nt(o)?o.value=R:null),instance:e.instance,component:e.component,state:e.state,"all-instances":e.allInstances,onSave:N[1]||(N[1]=(R,F,B)=>n("save:args",R,F,B))},null,8,["modelValue","instance","component","state","all-instances"])):O("",!0),g(Rn)(e.component)&&i.value?(y(),C(g(Vl),{key:1,modelValue:i.value,"onUpdate:modelValue":N[2]||(N[2]=R=>i.value=R),instance:e.instance,state:e.state,component:e.component,"initial-secrets":e.initialSecrets??{},onSave:N[3]||(N[3]=(R,F)=>n("save:secrets",R,F))},null,8,["modelValue","instance","state","component","initial-secrets"])):O("",!0),$(Rl,{instance:e.instance,component:e.component},null,8,["instance","component"]),s.value?(y(),E(P,{key:2},[$(Se),$(Jl,{component:e.component,instance:e.instance,entities:e.entities,"is-valid-connection":e.isValidConnection,type:e.ioType,mirror:e.ioMirror,"used-outputs":l.value,"resolved-inputs":u.value,"resolved-injection-input":d.value,"force-show-all-handles":A.value,"prevent-show-all-handles":g(o)||i.value||!e.editable||I.value},null,8,["component","instance","entities","is-valid-connection","type","mirror","used-outputs","resolved-inputs","resolved-injection-input","force-show-all-handles","prevent-show-all-handles"])],64)):O("",!0),e.state?(y(),C(Pl,{key:3,instance:e.instance,state:e.state},null,8,["instance","state"])):O("",!0),$(Se),$(Ll,{"loading-secrets":e.loadingSecrets,"loading-terminal":e.loadingTerminal,"loading-page":e.loadingPage,instance:e.instance,component:e.component,state:e.state,locked:!!e.instanceLock,editable:e.editable,ghost:e.ghost,"hide-show-composite":e.hideShowComposite,"onOpen:args":N[4]||(N[4]=R=>o.value=!0),"onOpen:secrets":N[5]||(N[5]=R=>e.state?n("open:secrets"):i.value=!0),"onOpen:terminal":N[6]||(N[6]=R=>n("open:terminal")),"onOpen:page":N[7]||(N[7]=R=>n("open:page")),"onOpen:composite":N[8]||(N[8]=R=>n("open:composite")),"onOperation:launch":N[9]||(N[9]=R=>n("operation:launch",R)),"onOperation:cancel":N[10]||(N[10]=R=>n("operation:cancel"))},{status:b(()=>[Q(H.$slots,"status",{},void 0,!0)]),_:3},8,["loading-secrets","loading-terminal","loading-page","instance","component","state","locked","editable","ghost","hide-show-composite"])]),_:3},8,["class","component","subtitle","blueprint-status","selected"]),$(oo,{modelValue:I.value,"onUpdate:modelValue":N[12]||(N[12]=R=>I.value=R),scrim:"#1e1e1e",opacity:1,absolute:"",class:"align-center justify-center",style:ve(`border: 3px solid ${e.component.meta.iconColor??"#3f51b5"}; border-radius: 8px`),contained:""},{default:b(()=>[$(g(qt),{meta:e.component.meta,size:D.value},null,8,["meta","size"])]),_:1},8,["modelValue","style"])],64))}}),su=te(Ql,[["__scopeId","data-v-731e9c68"]]);export{ru as G,au as H,su as I,yo as _,Jl as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as A,_ as B,f as F,u as K,l as L,n as W}from"#entry";import{E as N,K as h,W as o,X as u,a1 as r,ab as z,B as M,w as R,g as w,$ as d,a9 as y,af as C,F as s,aA as G,_ as S,aK as U,aE as X,ay as Z,Z as m,a4 as q,a5 as $,ah as H,a0 as I,a2 as V,a3 as _,ac as P,ai as x}from"./Dm4QKadl.js";import{P as J}from"./CN9dMhDM.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./D-AHKB2i.js";const O={class:"tab-wrapper"},Q=N({__name:"ProjectTabWrapper",props:{projectId:{}},setup(T){return A(T.projectId),(p,j)=>(o(),h("div",O,[u(J,{"project-id":T.projectId,"can-unlock":""},{default:r(()=>[z(p.$slots,"default",{},void 0,!0)]),_:3},8,["project-id"])]))}}),Y=B(Q,[["__scopeId","data-v-cbe63052"]]),ee={class:"data-settings-panel"},te={class:"panel-layout"},ae={class:"vertical-tabs"},se={class:"tab-section"},oe={class:"tab-label"},re={class:"tab-section"},ce={class:"tab-label"},ne={class:"tab-section"},le={class:"tab-label"},ie={class:"content-area"},de=N({__name:"settings",setup(T){const p=F(),j=K(),c=M(null);R(j.currentRoute,async t=>{t.path.startsWith("/settings/")&&(L.info({from:c.value?.path,to:t.path},"settings route changed"),c.value=t),t?.name==="settings"&&await f(l.value.beforeGlobalTabs[0])},{immediate:!0});const l=w(()=>{const b=j.getRoutes().filter(a=>a.path.startsWith("/settings/")&&a.path!=="/settings"&&a.meta?.tab),n=[],e=[];for(const a of b){const i=a.meta.tab;if(!i||!a.path.startsWith("/settings/"))continue;const k={name:a.name,icon:i.icon,label:i.label,order:i.order||50,isProjectTab:a.path.startsWith("/settings/projects/"),subpages:i.subpages??[]};k.isProjectTab?e.push(k):n.push(k)}n.sort((a,i)=>a.order-i.order),e.sort((a,i)=>a.order-i.order);const g=n.filter(a=>a.order<90),E=n.filter(a=>a.order>=90);return{beforeGlobalTabs:g,projectTabs:e,afterGlobalTabs:E}}),v=t=>c.value&&(t.name===c.value.name||t.subpages.includes(c.value.name)),D=w(()=>l.value.beforeGlobalTabs.find(v)||l.value.projectTabs.find(v)),f=async t=>{if(!t.isProjectTab){await W({name:t.name});return}await W({name:t.name,params:{projectId:p.focusedProjectId}})};return R(()=>p.focusedProjectId,async(t,b)=>{const n=j.currentRoute.value;!n||t===b&&n.path.startsWith("/settings/projects/")||!n.path.startsWith("/settings/")||(t&&l.value.projectTabs.length>0?await f(D.value??l.value.projectTabs[0]):!t&&n.path.startsWith("/settings/projects/")&&await f(l.value.beforeGlobalTabs[0]))}),(t,b)=>{const n=H("RouterView");return o(),h("div",ee,[d("div",te,[d("div",ae,[d("div",se,[(o(!0),h(y,null,C(s(l).beforeGlobalTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[u(I,{class:"tab-icon"},{default:r(()=>[V(_(e.icon),1)]),_:2},1024),d("span",oe,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))]),u(G,{class:"section-divider"}),d("div",re,[u(U,{modelValue:s(p).focusedProjectId,"onUpdate:modelValue":b[0]||(b[0]=e=>s(p).focusedProjectId=e),items:s(p).projects,label:"Project","item-title":"meta.title","item-value":"id",variant:"outlined",density:"compact",class:"project-selector","prepend-inner-icon":"mdi-folder-outline",clearable:"","hide-details":""},null,8,["modelValue","items"]),s(p).focusedProjectId?(o(!0),h(y,{key:0},C(s(l).projectTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[u(I,{class:"tab-icon"},{default:r(()=>[V(_(e.icon),1)]),_:2},1024),d("span",ce,_(e.label),1)]),_:2},1032,["class","onClick"]))),128)):S("",!0)]),u(G,{class:"section-divider"}),d("div",ne,[(o(!0),h(y,null,C(s(l).afterGlobalTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[u(I,{class:"tab-icon"},{default:r(()=>[V(_(e.icon),1)]),_:2},1024),d("span",le,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))])]),d("div",ie,[u(X,{class:"content-card",variant:"flat"},{default:r(()=>[u(Z,{class:"content-card-text"},{default:r(()=>[s(c)?(o(),m(n,{key:0,route:s(c)},{default:r(({Component:e})=>[s(c).params.projectId?(o(),m(q,{key:0},{default:r(()=>[(o(),m(s(Y),{"project-id":s(c).params.projectId,key:s(c).params.projectId},{default:r(()=>[(o(),m($(e),{params:s(c).params},null,8,["params"]))]),_:2},1032,["project-id"]))]),_:2},1024)):(o(),m($(e),{key:1}))]),_:1},8,["route"])):S("",!0)]),_:1})]),_:1})])])])}}}),ve=B(de,[["__scopeId","data-v-ee43cb94"]]);export{ve as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as n,s as m}from"#entry";import"./DXh9HyqW.js";import{S as d}from"./5ggY4uig.js";import{_ as l}from"./D4OhWExI.js";import{E as c,aL as g,Z as f,W as u,a1 as y,F as t,X as P}from"./Dm4QKadl.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./Cw6nGM9K.js";import"./DtFoCuZo.js";import"./DxuitVdg.js";import"./BmDdxTjo.js";import"./DcmvOc98.js";const V=c({__name:"index",async setup(_){let s,a;const{settingsStore:e}=n(),{projectStore:o}=n();return o.initializing?([s,a]=g(()=>m(()=>o.initialized).toBe(!0)),await s,a(),o.addLibraryRoot()):([s,a]=g(()=>o.initialize1()),await s,a(),[s,a]=g(()=>o.initialize2()),await s,a()),e.triggers.reset(),(j,r)=>(u(),f(t(d),{title:"Instance Triggers",icon:"mdi-flash-outline",description:"View and manage triggers created by project instances."},{default:y(({height:p})=>[P(t(l),{search:t(e).triggers.search,"onUpdate:search":r[0]||(r[0]=i=>t(e).triggers.search=i),"sort-by":t(e).triggers.sortBy,"onUpdate:sortBy":r[1]||(r[1]=i=>t(e).triggers.sortBy=i),page:t(e).triggers.page,"onUpdate:page":r[2]||(r[2]=i=>t(e).triggers.page=i),"items-per-page":t(e).triggers.itemsPerPage,"onUpdate:itemsPerPage":r[3]||(r[3]=i=>t(e).triggers.itemsPerPage=i),"project-id":t(o).projectId,data:t(e).triggers.data,loading:t(e).triggers.isLoading,height:p},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{V as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=Object.freeze(JSON.parse(`{"displayName":"Lean 4","fileTypes":[],"name":"lean","patterns":[{"include":"#comments"},{"match":"\\\\b(Prop|Type|Sort)\\\\b","name":"storage.type.lean4"},{"match":"\\\\battribute\\\\b\\\\s*\\\\[[^]]*]","name":"storage.modifier.lean4"},{"match":"@\\\\[[^]]*]","name":"storage.modifier.lean4"},{"match":"\\\\b(?<!\\\\.)(global|local|scoped|partial|unsafe|private|protected|noncomputable)(?!\\\\.)\\\\b","name":"storage.modifier.lean4"},{"match":"\\\\b(sorry|admit|stop)\\\\b","name":"invalid.illegal.lean4"},{"match":"#(print|eval|reduce|check|check_failure)\\\\b","name":"keyword.other.lean4"},{"match":"\\\\bderiving\\\\s+instance\\\\b","name":"keyword.other.command.lean4"},{"begin":"\\\\b(?<!\\\\.)(inductive|coinductive|structure|theorem|axiom|abbrev|lemma|def|instance|class|constant)\\\\b\\\\s+(\\\\{[^}]*})?","beginCaptures":{"1":{"name":"keyword.other.definitioncommand.lean4"}},"end":"(?=\\\\bwith\\\\b|\\\\bextends\\\\b|\\\\bwhere\\\\b|[(:<>\\\\[{|⦃])","name":"meta.definitioncommand.lean4","patterns":[{"include":"#comments"},{"include":"#definitionName"},{"match":","}]},{"match":"\\\\b(?<!\\\\.)(theorem|show|have|from|suffices|nomatch|def|class|structure|instance|set_option|initialize|builtin_initialize|example|inductive|coinductive|axiom|constant|universes??|variables??|import|open|export|theory|prelude|renaming|hiding|exposing|do|by|let|extends|mutual|mut|where|rec|syntax|macro_rules|macro|deriving|fun|section|namespace|end|infixl??|infixr|postfix|prefix|notation|abbrev|if|then|else|calc|match|with|for|in|unless|try|catch|finally|return|continue|break)(?!\\\\.)\\\\b","name":"keyword.other.lean4"},{"begin":"«","contentName":"entity.name.lean4","end":"»"},{"begin":"(s!)\\"","beginCaptures":{"1":{"name":"keyword.other.lean4"}},"end":"\\"","name":"string.interpolated.lean4","patterns":[{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"keyword.other.lean4"}},"end":"(})","endCaptures":{"1":{"name":"keyword.other.lean4"}},"patterns":[{"include":"$self"}]},{"match":"\\\\\\\\[\\"'\\\\\\\\nrt]","name":"constant.character.escape.lean4"},{"match":"\\\\\\\\x\\\\h\\\\h","name":"constant.character.escape.lean4"},{"match":"\\\\\\\\u\\\\h\\\\h\\\\h\\\\h","name":"constant.character.escape.lean4"}]},{"begin":"\\"","end":"\\"","name":"string.quoted.double.lean4","patterns":[{"match":"\\\\\\\\[\\"'\\\\\\\\nrt]","name":"constant.character.escape.lean4"},{"match":"\\\\\\\\x\\\\h\\\\h","name":"constant.character.escape.lean4"},{"match":"\\\\\\\\u\\\\h\\\\h\\\\h\\\\h","name":"constant.character.escape.lean4"}]},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.lean4"},{"match":"'[^'\\\\\\\\]'","name":"string.quoted.single.lean4"},{"captures":{"1":{"name":"constant.character.escape.lean4"}},"match":"'(\\\\\\\\(x\\\\h\\\\h|u\\\\h\\\\h\\\\h\\\\h|.))'","name":"string.quoted.single.lean4"},{"match":"\`+[^(\\\\[]\\\\S+","name":"entity.name.lean4"},{"match":"\\\\b([0-9]+|0([Xx]\\\\h+)|-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?([Ee][-+]?[0-9]+)?)\\\\b","name":"constant.numeric.lean4"}],"repository":{"blockComment":{"begin":"/-","end":"-/","name":"comment.block.lean4","patterns":[{"include":"source.lean4.markdown"},{"include":"#blockComment"}]},"comments":{"patterns":[{"include":"#dashComment"},{"include":"#docComment"},{"include":"#modDocComment"},{"include":"#blockComment"}]},"dashComment":{"begin":"--","end":"$","name":"comment.line.double-dash.lean4","patterns":[{"include":"source.lean4.markdown"}]},"definitionName":{"patterns":[{"match":"\\\\b[^():=?{}«»λ→∀\\\\s][^():{}«»\\\\s]*","name":"entity.name.function.lean4"},{"begin":"«","contentName":"entity.name.function.lean4","end":"»"}]},"docComment":{"begin":"/--","end":"-/","name":"comment.block.documentation.lean4","patterns":[{"include":"source.lean4.markdown"},{"include":"#blockComment"}]},"modDocComment":{"begin":"/-!","end":"-/","name":"comment.block.documentation.lean4","patterns":[{"include":"source.lean4.markdown"},{"include":"#blockComment"}]}},"scopeName":"source.lean4","aliases":["lean4"]}`)),n=[e];export{n as default};
|