@intent-hq/web 2.364.0 → 2.364.1
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/package.json +1 -1
- package/web/app/immutable/chunks/{mqQotRJc.js → -5c15-eL.js} +1 -1
- package/web/app/immutable/chunks/{DEpemsrt.js → -cgVf6p5.js} +1 -1
- package/web/app/immutable/chunks/{VRkOAck5.js → 1rUouahZ.js} +14 -14
- package/web/app/immutable/chunks/{C5BxUEY3.js → 29BR2jNs.js} +1 -1
- package/web/app/immutable/chunks/2aOnW-4O.js +8 -0
- package/web/app/immutable/chunks/{BSH9hEiM.js → 5KYoqZab.js} +1 -1
- package/web/app/immutable/chunks/{JYGux4ol.js → 5OTCXuAE.js} +1 -1
- package/web/app/immutable/chunks/{C_OJiJwX.js → 5S2X8Cqu.js} +1 -1
- package/web/app/immutable/chunks/{CAYnSUTm.js → 5fOtBsk1.js} +1 -1
- package/web/app/immutable/chunks/{DqRQMsVa.js → 5x1QjrMw.js} +1 -1
- package/web/app/immutable/chunks/Ae4NLLo7.js +5 -0
- package/web/app/immutable/chunks/{DVuRD5Ts.js → AyNPL8hA.js} +2 -2
- package/web/app/immutable/chunks/{Cj221eij.js → B0AIN2Bd.js} +2 -2
- package/web/app/immutable/chunks/{BmzlwbPY.js → B6KgHQwC.js} +2 -2
- package/web/app/immutable/chunks/{DdLmt8cE.js → B94nn_J1.js} +1 -1
- package/web/app/immutable/chunks/{BYiNzddZ.js → B9CrrjC-.js} +1 -1
- package/web/app/immutable/chunks/{BqmFcDk_.js → B9wBi5AY.js} +2 -2
- package/web/app/immutable/chunks/BAMy3zRo.js +1 -0
- package/web/app/immutable/chunks/{NlYAToKM.js → BE3-5jz7.js} +1 -1
- package/web/app/immutable/chunks/{Cx-QCPs8.js → BNAMRMVT.js} +3 -3
- package/web/app/immutable/chunks/{DkLqnpG_.js → BNDiUjt6.js} +1 -1
- package/web/app/immutable/chunks/{5whVpQ1T.js → BOQsgaO1.js} +1 -1
- package/web/app/immutable/chunks/{CMycmgOT.js → BOznkADd.js} +1 -1
- package/web/app/immutable/chunks/{DgFR5XAS.js → BPwnX40x.js} +1 -1
- package/web/app/immutable/chunks/{DFki5ik9.js → BR7bsAqd.js} +3 -3
- package/web/app/immutable/chunks/{DbO5SFoI.js → BRNFjIOs.js} +1 -1
- package/web/app/immutable/chunks/{Dj2Np84B.js → BTHkr-Pv.js} +1 -1
- package/web/app/immutable/chunks/{BrjNzF-s.js → BV4u77vc.js} +2 -2
- package/web/app/immutable/chunks/BV_D1-BM.js +1 -0
- package/web/app/immutable/chunks/{DvkLliQ2.js → BY77Nm-Z.js} +1 -1
- package/web/app/immutable/chunks/{CN14fp-q.js → BYDdz4Ge.js} +1 -1
- package/web/app/immutable/chunks/BYR1LxfZ.js +1 -0
- package/web/app/immutable/chunks/{BAXp8CdK.js → B__qxspK.js} +1 -1
- package/web/app/immutable/chunks/{DvDwZZxh.js → Bc--form.js} +22 -22
- package/web/app/immutable/chunks/{H6y0h2mr.js → BdHMV0Ti.js} +1 -1
- package/web/app/immutable/chunks/{CjFuF_md.js → BdSXWXEZ.js} +1 -1
- package/web/app/immutable/chunks/{mTpKup-n.js → BdmRyKCf.js} +1 -1
- package/web/app/immutable/chunks/{B-Xd7Iia.js → Bhq_T8D6.js} +6 -6
- package/web/app/immutable/chunks/{DQSfr_ea.js → BiCt4TBj.js} +1 -1
- package/web/app/immutable/chunks/{Cpi4ssvk.js → Bj1i6i6_.js} +1 -1
- package/web/app/immutable/chunks/{Ds-n24vW.js → BoLx4-aT.js} +1 -1
- package/web/app/immutable/chunks/{CohLOzmV.js → Bpuhugma.js} +3 -3
- package/web/app/immutable/chunks/{DJr7zMRE.js → BuOmiQbE.js} +6 -6
- package/web/app/immutable/chunks/BwEAQU2l.js +1 -0
- package/web/app/immutable/chunks/{D0s73M3N.js → C0VLOUoY.js} +1 -1
- package/web/app/immutable/chunks/{C4IxG4Wb.js → C1TCPb-1.js} +1 -1
- package/web/app/immutable/chunks/C2E3XD1o.js +1 -0
- package/web/app/immutable/chunks/{C3PPHFEU.js → C31SD8_g.js} +1 -1
- package/web/app/immutable/chunks/{BxXaf5o1.js → C8zMMCnQ.js} +1 -1
- package/web/app/immutable/chunks/{Bvlr1E1Y.js → CAbdPsFF.js} +1 -1
- package/web/app/immutable/chunks/{CL8gKbrl.js → CAjI8-Gb.js} +3 -3
- package/web/app/immutable/chunks/{D_baEUtX.js → CDvfrZi7.js} +1 -1
- package/web/app/immutable/chunks/{dWnFDoxX.js → CEEAQIdx.js} +1 -1
- package/web/app/immutable/chunks/{YPO7uOte.js → CHAuC75S.js} +1 -1
- package/web/app/immutable/chunks/{CtdVHw_g.js → CHrWfKbR.js} +1 -1
- package/web/app/immutable/chunks/{Bjn36dw0.js → CNuVRrwB.js} +1 -1
- package/web/app/immutable/chunks/{D5Qd4J-d.js → CPhS8cGP.js} +1 -1
- package/web/app/immutable/chunks/{PIV69RBI.js → CQSI5ASZ.js} +1 -1
- package/web/app/immutable/chunks/CQejBdMj.js +1 -0
- package/web/app/immutable/chunks/{ig6utCTb.js → CSM7ZxS7.js} +3 -3
- package/web/app/immutable/chunks/{BRU94MJX.js → CUNh5j03.js} +1 -1
- package/web/app/immutable/chunks/CXNFHS6a.js +1 -0
- package/web/app/immutable/chunks/{BaDKWIdd.js → CXOOFUlR.js} +1 -1
- package/web/app/immutable/chunks/{BTTV7TCH.js → CYkqpOjL.js} +2 -2
- package/web/app/immutable/chunks/{OtD6re_S.js → CZUggW-r.js} +1 -1
- package/web/app/immutable/chunks/{CKyCqjPF.js → Cbl8RojE.js} +1 -1
- package/web/app/immutable/chunks/{DZ6LWDQd.js → CciOj3su.js} +1 -1
- package/web/app/immutable/chunks/{BSYMJefb.js → CdYmqkhV.js} +1 -1
- package/web/app/immutable/chunks/{CzkNbc1D.js → CdtD_Pls.js} +13 -13
- package/web/app/immutable/chunks/{hryztIjn.js → CgMOv0N3.js} +12 -12
- package/web/app/immutable/chunks/{BE8VMwpc.js → Ch9x8EwV.js} +1 -1
- package/web/app/immutable/chunks/Cj-LzC0F.js +1 -0
- package/web/app/immutable/chunks/{BQSAkcqY.js → CkJ9fl03.js} +1 -1
- package/web/app/immutable/chunks/{AVoh4VTC.js → ClTDucyC.js} +1 -1
- package/web/app/immutable/chunks/{Cy3NIKSC.js → CmMChym_.js} +1 -1
- package/web/app/immutable/chunks/{BqPORjnM.js → Co4JTGKs.js} +9 -9
- package/web/app/immutable/chunks/{CnmNapGz.js → CofCBGqz.js} +1 -1
- package/web/app/immutable/chunks/{87lVsicR.js → CqAj2web.js} +1 -1
- package/web/app/immutable/chunks/{CeUIG-AJ.js → Cqvl3_cz.js} +1 -1
- package/web/app/immutable/chunks/{D3mO5vU_.js → Cr2m0lJA.js} +1 -1
- package/web/app/immutable/chunks/{Ck_xb83V.js → CrH6Qn0l.js} +1 -1
- package/web/app/immutable/chunks/{DWGb9pxm.js → Cv_kydag.js} +1 -1
- package/web/app/immutable/chunks/{DFDdR2U9.js → CwTiQx8t.js} +1 -1
- package/web/app/immutable/chunks/{POHABHCK.js → CxY2WRK_.js} +1 -1
- package/web/app/immutable/chunks/{DmuliVKW.js → Cyka4KjZ.js} +1 -1
- package/web/app/immutable/chunks/{0QA5VGU4.js → D3pwkbOk.js} +1 -1
- package/web/app/immutable/chunks/{nztcgo8P.js → D4t_4btJ.js} +1 -1
- package/web/app/immutable/chunks/{Dgn8ZpRu.js → D6xMv_kl.js} +1 -1
- package/web/app/immutable/chunks/{BNfARN_F.js → D8EQ_NzN.js} +1 -1
- package/web/app/immutable/chunks/D8r4O1jq.js +1 -0
- package/web/app/immutable/chunks/{CykEdx-W.js → D9QQZoyW.js} +1 -1
- package/web/app/immutable/chunks/{CqBptZ8X.js → DAJx524I.js} +1 -1
- package/web/app/immutable/chunks/{HqSElE-c.js → DAfmeVOj.js} +1 -1
- package/web/app/immutable/chunks/{D7MT3yD-.js → DDnGZw3Y.js} +1 -1
- package/web/app/immutable/chunks/{BNAZ2Rt6.js → DEM3rYWD.js} +1 -1
- package/web/app/immutable/chunks/{DyyYJol2.js → DI9n2SbN.js} +1 -1
- package/web/app/immutable/chunks/DIVxwKug.js +1 -0
- package/web/app/immutable/chunks/{rR8QPumw.js → DJLdmlzr.js} +1 -1
- package/web/app/immutable/chunks/{DfhHfqhL.js → DKPxGiW8.js} +1 -1
- package/web/app/immutable/chunks/{B0rliDN3.js → DLsi41pQ.js} +1 -1
- package/web/app/immutable/chunks/{6jr3VdyK.js → DN0IZvlS.js} +1 -1
- package/web/app/immutable/chunks/{C5PnDdXL.js → DNLHkust.js} +1 -1
- package/web/app/immutable/chunks/{BbEAZfsy.js → DPdvl6GX.js} +3 -3
- package/web/app/immutable/chunks/DQOW95_s.js +1 -0
- package/web/app/immutable/chunks/{ZKkDq-P-.js → DQbiqwlg.js} +1 -1
- package/web/app/immutable/chunks/DQe63BYb.js +1 -0
- package/web/app/immutable/chunks/{Dq9OF9pM.js → DQkakWIg.js} +1 -1
- package/web/app/immutable/chunks/{3ZtIgkap.js → DQxndXal.js} +1 -1
- package/web/app/immutable/chunks/{iNwdZbUg.js → DSsilqwx.js} +1 -1
- package/web/app/immutable/chunks/DUe1LhB5.js +1 -0
- package/web/app/immutable/chunks/{BC1D5GEA.js → DWtd5nsa.js} +1 -1
- package/web/app/immutable/chunks/DXgzYfi5.js +3 -0
- package/web/app/immutable/chunks/{Nm2FoBJH.js → DZ7XU-pR.js} +2 -2
- package/web/app/immutable/chunks/{B3fyFrOb.js → D_hew37e.js} +1 -1
- package/web/app/immutable/chunks/DdY5bfKP.js +2 -0
- package/web/app/immutable/chunks/{D_QJjGCV.js → DesjI55h.js} +1 -1
- package/web/app/immutable/chunks/Dh5K_PAi.js +19 -0
- package/web/app/immutable/chunks/{DxCx5XQm.js → Diytskg0.js} +2 -2
- package/web/app/immutable/chunks/{BdsGrZ4p.js → DjlCXPOX.js} +1 -1
- package/web/app/immutable/chunks/{yEDshBdX.js → DkC9ufwp.js} +2 -2
- package/web/app/immutable/chunks/{Dw_aK2j4.js → DlaT5FCI.js} +1 -1
- package/web/app/immutable/chunks/Dm52nWQl.js +2 -0
- package/web/app/immutable/chunks/Dnq0RttT.js +1 -0
- package/web/app/immutable/chunks/DqJhO4fJ.js +1 -0
- package/web/app/immutable/chunks/Dvne-Ir2.js +2 -0
- package/web/app/immutable/chunks/{D4X04avC.js → DvpMokIP.js} +1 -1
- package/web/app/immutable/chunks/{CNDBXBk-.js → Fmnom-WY.js} +1 -1
- package/web/app/immutable/chunks/{pX3ccDfB.js → Fn6ahMKB.js} +1 -1
- package/web/app/immutable/chunks/{DjG8KKys.js → GBgYT_ZX.js} +1 -1
- package/web/app/immutable/chunks/{DIItTOwX.js → IrpNn5wU.js} +3 -3
- package/web/app/immutable/chunks/{CpnOQhdi.js → KNCDDVpM.js} +1 -1
- package/web/app/immutable/chunks/{wk7oHW77.js → L1CVuhoA.js} +1 -1
- package/web/app/immutable/chunks/L2rlqKcj.js +2 -0
- package/web/app/immutable/chunks/{D-knecCH.js → LCA3JZcm.js} +1 -1
- package/web/app/immutable/chunks/{CL65_thQ.js → P4d4jObP.js} +4 -4
- package/web/app/immutable/chunks/{C5McJHje.js → QOnR7uhL.js} +1 -1
- package/web/app/immutable/chunks/{CXDGznW-.js → RxXbQ6vw.js} +1 -1
- package/web/app/immutable/chunks/{DI490Bmi.js → TUps9RpP.js} +1 -1
- package/web/app/immutable/chunks/{z6JLSmfj.js → VoYmOMPQ.js} +1 -1
- package/web/app/immutable/chunks/{DlJLDJJk.js → W4AmvBtV.js} +1 -1
- package/web/app/immutable/chunks/{BelBIFFw.js → X8rZbYSf.js} +1 -1
- package/web/app/immutable/chunks/{BklVytxZ.js → XBL2PUH3.js} +1 -1
- package/web/app/immutable/chunks/{Ay4jwPDw.js → Yg15Fv79.js} +1 -1
- package/web/app/immutable/chunks/{CPwBA0nW.js → b4HmlJRj.js} +1 -1
- package/web/app/immutable/chunks/{CRVH_KqP.js → cW-FS3Hn.js} +1 -1
- package/web/app/immutable/chunks/{DZ5zwyOA.js → dI5geiaR.js} +1 -1
- package/web/app/immutable/chunks/{C5tNj-Jh.js → dPtMfkm0.js} +1 -1
- package/web/app/immutable/chunks/{CmG2ox2r.js → ljWjPDYU.js} +1 -1
- package/web/app/immutable/chunks/{sRJ09sjC.js → mFjej5z1.js} +1 -1
- package/web/app/immutable/chunks/mQ4MH-tV.js +1 -0
- package/web/app/immutable/chunks/{CT_o8OHz.js → n8Ge9yma.js} +1 -1
- package/web/app/immutable/chunks/{CsExfDOB.js → nSREvQTr.js} +1 -1
- package/web/app/immutable/chunks/{BVY6rM-6.js → rxpX-lzF.js} +1 -1
- package/web/app/immutable/chunks/{Bzqjim1v.js → sw8cXEEZ.js} +1 -1
- package/web/app/immutable/chunks/{CAdDuqvN.js → tUh5DIgC.js} +1 -1
- package/web/app/immutable/entry/app.CKUvXYjF.js +4 -0
- package/web/app/immutable/entry/start.Duym94rE.js +1 -0
- package/web/app/immutable/nodes/{0.Djeu0Ip5.js → 0.CvO-mxHr.js} +1 -1
- package/web/app/immutable/nodes/{1.HrNCoXRZ.js → 1.BtWqHfI3.js} +1 -1
- package/web/app/immutable/nodes/{10.DNXZHrOy.js → 10.Nju4TcJi.js} +16 -16
- package/web/app/immutable/nodes/11.CgfONc28.js +41 -0
- package/web/app/immutable/nodes/{14.BbAQHg9a.js → 14.ZYJrREbk.js} +1 -1
- package/web/app/immutable/nodes/15.D-Bp6Ntm.js +3 -0
- package/web/app/immutable/nodes/{17.j1ivQdm8.js → 17.BkSzuVJm.js} +1 -1
- package/web/app/immutable/nodes/{19.BvmHWXqZ.js → 19.BKl-3eGA.js} +2 -2
- package/web/app/immutable/nodes/2.Dm8vrux7.js +13 -0
- package/web/app/immutable/nodes/{3.DKraOS36.js → 3.C2D88Bxw.js} +1 -1
- package/web/app/immutable/nodes/{4.X4jAWXKh.js → 4.rK9rlcpX.js} +1 -1
- package/web/app/immutable/nodes/5.B_0c1Txa.js +1 -0
- package/web/app/immutable/nodes/{6.CRKhGbIu.js → 6.VlU3nsvH.js} +2 -2
- package/web/app/immutable/nodes/{7.JP33qT6J.js → 7.Cl8Ow18g.js} +1 -1
- package/web/app/immutable/nodes/{8.ha2l89uZ.js → 8.o6a_9hX2.js} +1 -1
- package/web/app/immutable/nodes/{9.xEw44K6Y.js → 9.DJAscTto.js} +7 -7
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/5yRFpTfe.js +0 -1
- package/web/app/immutable/chunks/8gFeUK_j.js +0 -1
- package/web/app/immutable/chunks/B79XDXv3.js +0 -1
- package/web/app/immutable/chunks/BHIQzxKp.js +0 -1
- package/web/app/immutable/chunks/BIlpFO9I.js +0 -1
- package/web/app/immutable/chunks/BPrTYnJY.js +0 -1
- package/web/app/immutable/chunks/BYQ9dA2L.js +0 -1
- package/web/app/immutable/chunks/BZgmGdmB.js +0 -2
- package/web/app/immutable/chunks/Bf0CE2Dp.js +0 -3
- package/web/app/immutable/chunks/BpMs8swj.js +0 -1
- package/web/app/immutable/chunks/C2cNFCLG.js +0 -8
- package/web/app/immutable/chunks/C3B9kB5Y.js +0 -5
- package/web/app/immutable/chunks/CROhcjdD.js +0 -1
- package/web/app/immutable/chunks/CVGDR84i.js +0 -1
- package/web/app/immutable/chunks/CZSYR5E4.js +0 -1
- package/web/app/immutable/chunks/C_bzTU5z.js +0 -2
- package/web/app/immutable/chunks/CbMvnQ1O.js +0 -1
- package/web/app/immutable/chunks/Cc2R8pz2.js +0 -1
- package/web/app/immutable/chunks/CckT345F.js +0 -1
- package/web/app/immutable/chunks/Ch6f6WdI.js +0 -1
- package/web/app/immutable/chunks/Cn4uSlRl.js +0 -1
- package/web/app/immutable/chunks/Cq181fzK.js +0 -1
- package/web/app/immutable/chunks/CsSwkVtG.js +0 -1
- package/web/app/immutable/chunks/D6HTpHv8.js +0 -1
- package/web/app/immutable/chunks/D6XYtHit.js +0 -1
- package/web/app/immutable/chunks/DZkRidEi.js +0 -1
- package/web/app/immutable/chunks/DbZW1-v_.js +0 -1
- package/web/app/immutable/chunks/DgZQ2BGb.js +0 -1
- package/web/app/immutable/chunks/Dgd792da.js +0 -1
- package/web/app/immutable/chunks/Di0efO8O.js +0 -1
- package/web/app/immutable/chunks/DpqAXGKG.js +0 -1
- package/web/app/immutable/chunks/DtTEznMa.js +0 -1
- package/web/app/immutable/chunks/DxFa1LF2.js +0 -1
- package/web/app/immutable/chunks/Nkei2qsP.js +0 -1
- package/web/app/immutable/chunks/V3BQ1JVB.js +0 -2
- package/web/app/immutable/chunks/g35usiE6.js +0 -1
- package/web/app/immutable/chunks/i6wj5gsf.js +0 -1
- package/web/app/immutable/chunks/lTy7LZ6T.js +0 -1
- package/web/app/immutable/chunks/qYMhD4I9.js +0 -19
- package/web/app/immutable/chunks/zxaYX3sa.js +0 -2
- package/web/app/immutable/entry/app.DYkCJ91A.js +0 -4
- package/web/app/immutable/entry/start.D-Nj7dg6.js +0 -1
- package/web/app/immutable/nodes/11.CXsVCwU5.js +0 -41
- package/web/app/immutable/nodes/15.B-QShExj.js +0 -3
- package/web/app/immutable/nodes/2.CxHJUQ0N.js +0 -13
- package/web/app/immutable/nodes/5.B2O8zZr6.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as C}from"./
|
|
1
|
+
import{D as C}from"./DNLHkust.js";import{t as re,bo as y,bw as se,b as ae,bm as I}from"./CP7YuMeh.js";import{bs as ne,cb as oe,c5 as ie,bH as k,aD as b,a5 as G,bA as W,b_ as R,W as E,bn as le,bV as q,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as ce,aB as P}from"./CJxGDkBm.js";import{i as de}from"./D-7NlBP9.js";import{k as me}from"./BNCbX7ks.js";import{s as D}from"./CPIQ_KTl.js";import{a as ue}from"./1rUouahZ.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,m=t[e];if(m===void 0)return{complete:!1};if(m==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(m==="{"||m==="["){const r=m==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:u})=>u)),g=n.filter(u=>u.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:u})=>u)),_=a.filter(u=>u.group===void 0||v.has(u.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),m=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,m,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),m=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!m.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,m))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Oe(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});ne(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),m=q(null),r=q(0),c="",h,i=!1;oe(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();ie(()=>{i&&(w!==h||!p.startsWith(c))&&(k(m,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(m,null):o&&k(m,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(m):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:se,$on:(o,p)=>ae(e,o,p)},u=Se(),A=G(u);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);W(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=ce(),w=H(p);me(w,()=>b(r),S=>{ue(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};de(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return W(u),R(()=>{D(u,"aria-busy",a()),D(u,"data-diagram-streaming",a())}),E(t,u),le(_)}export{_e as S,Oe as p};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var It=Object.defineProperty;var gt=s=>{throw TypeError(s)};var Ft=(s,e,o)=>e in s?It(s,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[e]=o;var se=(s,e,o)=>Ft(s,typeof e!="symbol"?e+"":e,o),ht=(s,e,o)=>e.has(s)||gt("Cannot "+o);var M=(s,e,o)=>(ht(s,e,"read from private field"),o?o.call(s):e.get(s)),re=(s,e,o)=>e.has(s)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,o);var Ve=(s,e,o)=>(ht(s,e,"access private method"),o);import{t as le,bo as t,bw as ue,b as ce,bp as ke,br as tt,bm as Ne}from"./CP7YuMeh.js";import{c9 as l,aD as n,bH as ae,bo as rt,bs as ge,a7 as j,ay as B,W as _,bn as he,aA as r,a5 as X,bf as We,bA as Y,aB as W,bS as de,bV as vt,br as Lt,bj as Dt,c5 as Rt,ca as Ht,b_ as Q,be as Xe,b$ as Te,bO as oe,bl as Ue,ai as Et,bk as Mt,aj as At}from"./CJxGDkBm.js";import{c as Ye}from"./BlMDLo1p.js";import{b as Ge,e as J,c as pe,s as T,f as ye,p as Bt}from"./CPIQ_KTl.js";import{p as Ot,o as jt,e as Nt}from"./D37abooi.js";import{S as Ut}from"./DtPBfWzI.js";import{i as O}from"./D-7NlBP9.js";import{s as Z}from"./o_xwUHUt.js";import{an as at,ay as bt,az as we,av as K,aQ as nt,h as Wt,l as Gt,a6 as Qt,aq as ft,aE as Vt,ar as Xt,aD as Yt,at as Jt,aS as mt,a_ as pt,f as yt}from"./EHSwEMpb.js";import"./BoIfXiRv.js";import{i as Kt}from"./D-g0wh54.js";import{H as Zt}from"./Ch9x8EwV.js";import{z as $t}from"./D-6tK-mW.js";import"./BxW5KyMH.js";import"./DbQSyYm9.js";import{d as er,n as tr,m as rr,a as ar}from"./Dnq0RttT.js";import{b as nr}from"./NtFyWdpR.js";import{t as ir}from"./DAsc1V4f.js";import"./Cgx7ahJR.js";import{e as sr}from"./DiXG4Nm1.js";const dr=bt({component:"label",parts:["root"]});var Ie;const st=class st{constructor(e){se(this,"opts");se(this,"attachment");re(this,Ie,l(()=>({id:this.opts.id.current,[dr.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=at(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new st(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return n(M(this,Ie))}set props(e){ae(M(this,Ie),e)}};Ie=new WeakMap;let Je=st;var or=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),lr=W("<label><!></label>");function xt(s,e){const o=rt();if(new.target)return le({component:xt,...s});ge(e,!0);let c=t(e,"children",7),h=t(e,"child",7),y=t(e,"id",23,()=>we(o)),x=t(e,"ref",15,null),v=t(e,"for",7),C=ke(e,or);const z=Je.create({id:K(()=>y()),ref:K(()=>x(),d=>x(d))}),w=l(()=>nt(C,z.props,{for:v()}));var b={get children(){return c()},set children(d){c(d),r()},get child(){return h()},set child(d){h(d),r()},get id(){return y()},set id(d=we(o)){y(d),r()},get ref(){return x()},set ref(d=null){x(d),r()},get for(){return v()},set for(d){v(d),r()},$set:ue,$on:(d,g)=>ce(e,d,g)},f=j(),k=B(f);{var q=d=>{var g=j(),P=B(g);Z(P,h,()=>({props:n(w)})),_(d,g)},m=d=>{var g=lr();Ge(g,()=>({...n(w),for:v()}));var P=X(g);Z(P,()=>c()??We),Y(g),_(d,g)};O(k,d=>{h()?d(q):d(m,-1)})}return _(s,f),he(b)}const _t=bt({component:"switch",parts:["root","thumb"]}),it=new Wt("Switch.Root");var Fe,Ze,Le,De,Re;const dt=class dt{constructor(e){re(this,Fe);se(this,"opts");se(this,"attachment");re(this,Le,l(()=>({"data-disabled":ft(this.opts.disabled.current),"data-state":Vt(this.opts.checked.current),"data-required":ft(this.opts.required.current)})));re(this,De,l(()=>({checked:this.opts.checked.current})));re(this,Re,l(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Jt(this.opts.disabled.current),"aria-checked":Yt(this.opts.checked.current,!1),"aria-required":Xt(this.opts.required.current),[_t.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.attachment=at(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return it.set(new dt(e))}onkeydown(e){!(e.key===Gt||e.key===Qt)||this.opts.disabled.current||(e.preventDefault(),Ve(this,Fe,Ze).call(this))}onclick(e){this.opts.disabled.current||Ve(this,Fe,Ze).call(this)}get sharedProps(){return n(M(this,Le))}set sharedProps(e){ae(M(this,Le),e)}get snippetProps(){return n(M(this,De))}set snippetProps(e){ae(M(this,De),e)}get props(){return n(M(this,Re))}set props(e){ae(M(this,Re),e)}};Fe=new WeakSet,Ze=function(){this.opts.checked.current=!this.opts.checked.current},Le=new WeakMap,De=new WeakMap,Re=new WeakMap;let Ke=dt;var He,Ee;const ot=class ot{constructor(e){se(this,"root");re(this,He,l(()=>this.root.opts.name.current!==void 0));re(this,Ee,l(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=e}static create(){return new ot(it.get())}get shouldRender(){return n(M(this,He))}set shouldRender(e){ae(M(this,He),e)}get props(){return n(M(this,Ee))}set props(e){ae(M(this,Ee),e)}};He=new WeakMap,Ee=new WeakMap;let $e=ot;var Me,Ae;const lt=class lt{constructor(e,o){se(this,"opts");se(this,"root");se(this,"attachment");re(this,Me,l(()=>({checked:this.root.opts.checked.current})));re(this,Ae,l(()=>({...this.root.sharedProps,id:this.opts.id.current,[_t.thumb]:"",...this.attachment})));this.opts=e,this.root=o,this.attachment=at(e.ref)}static create(e){return new lt(e,it.get())}get snippetProps(){return n(M(this,Me))}set snippetProps(e){ae(M(this,Me),e)}get props(){return n(M(this,Ae))}set props(e){ae(M(this,Ae),e)}};Me=new WeakMap,Ae=new WeakMap;let et=lt;function wt(s,e){if(new.target)return le({component:wt,...s});ge(e,!1);const o=$e.create();var c={$set:ue,$on:(v,C)=>ce(e,v,C)};Kt();var h=j(),y=B(h);{var x=v=>{Zt(v,tt(()=>o.props))};O(y,v=>{o.shouldRender&&v(x)})}return _(s,h),he(c)}var ur=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]),cr=W("<button><!></button>"),gr=W("<!> <!>",1);function kt(s,e){const o=rt();if(new.target)return le({component:kt,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=t(e,"disabled",7,!1),C=t(e,"required",7,!1),z=t(e,"checked",15,!1),w=t(e,"value",7,"on"),b=t(e,"name",7,void 0),f=t(e,"type",7,"button"),k=t(e,"onCheckedChange",7,mt),q=ke(e,ur);const m=Ke.create({checked:K(()=>z(),u=>{z(u),k()?.(u)}),disabled:K(()=>v()??!1),required:K(()=>C()),value:K(()=>w()),name:K(()=>b()),id:K(()=>x()),ref:K(()=>y(),u=>y(u))}),d=l(()=>nt(q,m.props,{type:f()}));var g={get child(){return c()},set child(u){c(u),r()},get children(){return h()},set children(u){h(u),r()},get ref(){return y()},set ref(u=null){y(u),r()},get id(){return x()},set id(u=we(o)){x(u),r()},get disabled(){return v()},set disabled(u=!1){v(u),r()},get required(){return C()},set required(u=!1){C(u),r()},get checked(){return z()},set checked(u=!1){z(u),r()},get value(){return w()},set value(u="on"){w(u),r()},get name(){return b()},set name(u=void 0){b(u),r()},get type(){return f()},set type(u="button"){f(u),r()},get onCheckedChange(){return k()},set onCheckedChange(u=mt){k(u),r()},$set:ue,$on:(u,R)=>ce(e,u,R)},P=gr(),D=B(P);{var E=u=>{var R=j(),V=B(R);{let $=l(()=>({props:n(d),...m.snippetProps}));Z(V,c,()=>n($))}_(u,R)},A=u=>{var R=cr();Ge(R,()=>({...n(d)}));var V=X(R);Z(V,()=>h()??We,()=>m.snippetProps),Y(R),_(u,R)};O(D,u=>{c()?u(E):u(A,-1)})}var G=de(D,2);return wt(G,{}),_(s,P),he(g)}var hr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id"]),fr=W("<span><!></span>");function Ct(s,e){const o=rt();if(new.target)return le({component:Ct,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=ke(e,hr);const C=et.create({id:K(()=>x()),ref:K(()=>y(),m=>y(m))}),z=l(()=>nt(v,C.props));var w={get child(){return c()},set child(m){c(m),r()},get children(){return h()},set children(m){h(m),r()},get ref(){return y()},set ref(m=null){y(m),r()},get id(){return x()},set id(m=we(o)){x(m),r()},$set:ue,$on:(m,d)=>ce(e,m,d)},b=j(),f=B(b);{var k=m=>{var d=j(),g=B(d);{let P=l(()=>({props:n(z),...C.snippetProps}));Z(g,c,()=>n(P))}_(m,d)},q=m=>{var d=fr();Ge(d,()=>({...n(z)}));var g=X(d);Z(g,()=>h()??We,()=>C.snippetProps),Y(d),_(m,d)};O(f,m=>{c()?m(k):m(q,-1)})}return _(s,b),he(w)}var mr=new Set(["$$slots","$$events","$$legacy","ref","size","invalid","class"]);function Pt(s,e){if(new.target)return le({component:Pt,...s});ge(e,!0);const o=pt();let c=t(e,"ref",15,null),h=t(e,"size",7),y=t(e,"invalid",7,!1),x=t(e,"class",7),v=ke(e,mr);const C=l(()=>h()??o);var z={get ref(){return c()},set ref(f=null){c(f),r()},get size(){return h()},set size(f){h(f),r()},get invalid(){return y()},set invalid(f=!1){y(f),r()},get class(){return x()},set class(f){x(f),r()},$set:ue,$on:(f,k)=>ce(e,f,k)},w=j(),b=B(w);{let f=l(()=>y()||void 0),k=l(()=>J("type-caption flex min-w-0 select-none items-center font-medium tracking-normal text-muted-foreground transition-[color] duration-(--spring-fast) group-hover:text-foreground group-focus-within:text-foreground data-[state=hover]:text-foreground data-[state=focus]:text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-60 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-60 group-data-[invalid=true]:text-danger data-[invalid=true]:text-danger motion-reduce:transition-none",n(C)==="compact"?"gap-1.5":"gap-2",x()));Ye(b,()=>xt,(q,m)=>{m(q,tt({"data-slot":"label",get"data-size"(){return n(C)},get"data-invalid"(){return n(f)},get class(){return n(k)}},()=>v,{get ref(){return c()},set ref(d){c(d)}}))})}return _(s,w),he(z)}function vr(){let s=vt(Lt(Ot()));const e=jt(o=>{ae(s,o,!0)});return{get current(){return n(s)},cleanup:e}}function br(s){return new Ut(s,"fast")}function pr(s,e,o=!1){return s.set(e,{instant:o}),s}var yr=new Set(["$$slots","$$events","$$legacy","ref","id","checked","disabled","required","invalid","class","onCheckedChange","size","name","value","ariaLabel","ariaLabelledby","ariaDescribedby"]);function xr(s,e){if(new.target)return le({component:xr,...s});ge(e,!0);let o=t(e,"ref",15,null),c=t(e,"id",7,""),h=t(e,"checked",15,!1),y=t(e,"disabled",7,!1),x=t(e,"required",7,!1),v=t(e,"invalid",7,!1),C=t(e,"class",7,""),z=t(e,"onCheckedChange",7),w=t(e,"size",7,"md"),b=t(e,"name",7),f=t(e,"value",7,"on"),k=t(e,"ariaLabel",7),q=t(e,"ariaLabelledby",7),m=t(e,"ariaDescribedby",7),d=ke(e,yr);const g={xs:{width:24,height:14,padding:2,thumb:10},sm:{width:28,height:16,padding:2,thumb:12},compact:{width:28,height:16,padding:2,thumb:12},md:{width:34,height:20,padding:2,thumb:16},default:{width:34,height:20,padding:2,thumb:16},lg:{width:38,height:22,padding:2,thumb:18}};let P=l(()=>g[w()].width),D=l(()=>g[w()].height),E=l(()=>g[w()].padding),A=l(()=>g[w()].thumb),G=l(()=>n(A));const u=vr();Dt(u.cleanup);const R=br(Rt(()=>n(E))),V=l(()=>h()?n(P)-n(A)-n(E):n(E));Ht(()=>{pr(R,n(V),u.current)});var $={get ref(){return o()},set ref(p=null){o(p),r()},get id(){return c()},set id(p=""){c(p),r()},get checked(){return h()},set checked(p=!1){h(p),r()},get disabled(){return y()},set disabled(p=!1){y(p),r()},get required(){return x()},set required(p=!1){x(p),r()},get invalid(){return v()},set invalid(p=!1){v(p),r()},get class(){return C()},set class(p=""){C(p),r()},get onCheckedChange(){return z()},set onCheckedChange(p){z(p),r()},get size(){return w()},set size(p="md"){w(p),r()},get name(){return b()},set name(p){b(p),r()},get value(){return f()},set value(p="on"){f(p),r()},get ariaLabel(){return k()},set ariaLabel(p){k(p),r()},get ariaLabelledby(){return q()},set ariaLabelledby(p){q(p),r()},get ariaDescribedby(){return m()},set ariaDescribedby(p){m(p),r()},$set:ue,$on:(p,ve)=>ce(e,p,ve)},ne=j(),me=B(ne);{let p=l(()=>v()||void 0),ve=l(()=>J("border-border peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-muted shadow-(--elevation-raised) transition-[background-color,box-shadow,opacity] duration-spring-fast ease-spring-fast after:absolute after:-inset-y-2 after:-inset-x-1 after:content-[''] motion-reduce:transition-none","hover:bg-hover active:bg-active","disabled:cursor-not-allowed disabled:opacity-60","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary data-[state=checked]:active:bg-primary",v()&&"border-danger ring-1 ring-danger/25",C())),H=l(()=>`
|
|
2
|
+
width: ${n(P)}px;
|
|
3
|
+
height: ${n(D)}px;
|
|
4
|
+
`);Ye(me,()=>kt,(xe,N)=>{N(xe,tt({get id(){return c()},get name(){return b()},get value(){return f()},get disabled(){return y()},get required(){return x()},get onCheckedChange(){return z()},type:"button",get"aria-label"(){return k()},get"aria-labelledby"(){return q()},get"aria-describedby"(){return m()},get"aria-invalid"(){return n(p)},get class(){return n(ve)},get style(){return n(H)}},()=>d,{get ref(){return o()},set ref(F){o(F)},get checked(){return h()},set checked(F){h(F)},children:(F,Ce)=>{var _e=j(),Pe=B(_e);{let i=l(()=>J("bg-card pointer-events-none absolute top-1/2 left-0 block rounded-full shadow-(--elevation-raised) ring-0 data-[state=checked]:bg-primary-foreground")),a=l(()=>`
|
|
5
|
+
width: ${n(A)}px;
|
|
6
|
+
height: ${n(G)}px;
|
|
7
|
+
transform: translateX(${R.current}px) translateY(-50%);
|
|
8
|
+
`);Ye(Pe,()=>Ct,(L,fe)=>{fe(L,{get class(){return n(i)},get style(){return n(a)}})})}_(F,_e)},$$slots:{default:!0}}))})}return _(s,ne),he($)}var _r=W('<div data-field-leading="" aria-hidden="true"><!></div>'),wr=W('<div data-field-label=""> </div>'),kr=W('<p class="type-body text-muted-foreground"><!> <!></p>'),Cr=W('<p class="type-body text-muted-foreground"><!></p>'),Pr=W('<p class="type-body text-danger" role="alert"> </p>'),zr=W('<p role="status"> </p>'),Sr=W('<div class="flex min-w-0 items-start gap-3"><!> <div class="min-w-0 flex-1 space-y-1 break-words"><!> <!> <!></div></div>'),qr=W('<div data-slot="settings-field-row"><!> <div data-field-control=""><!></div></div>');function Tr(s,e){if(new.target)return le({component:Tr,...s});ge(e,!0);const o=i=>{yt(i,{variant:"ghost-light",size:"icon-compact",class:"ml-0.5 inline-flex size-5 align-text-bottom text-muted-foreground",get tooltip(){return x()},get"aria-label"(){return x()},"data-field-info":!0,children:(a,L)=>{$t(a,{size:14,"aria-hidden":"true"})},$$slots:{default:!0}})};let c=t(e,"id",7),h=t(e,"label",7),y=t(e,"description",7),x=t(e,"info",7),v=t(e,"htmlFor",7),C=t(e,"activateLabel",7,!1),z=t(e,"error",7),w=t(e,"status",7),b=t(e,"statusTone",7,"info"),f=t(e,"disabled",7,!1),k=t(e,"busy",7,!1),q=t(e,"compact",7,!1),m=t(e,"searchText",23,h),d=t(e,"danger",7,!1),g=t(e,"experimental",7,!1),P=t(e,"featureCode",7),D=t(e,"controlOnly",7,!1),E=t(e,"leading",7),A=t(e,"descriptionContent",7),G=t(e,"control",7),u=t(e,"children",7),R=t(e,"class",7);const V=l(()=>`${c()}-label`),$=l(()=>y()||A()?`${c()}-description`:void 0),ne=l(()=>z()?`${c()}-error`:void 0),me=l(()=>D()?"full-width":q()?"stacked":"responsive");function p(i){if(!C()||!v()||(i.preventDefault(),f()||k()))return;const L=i.currentTarget.ownerDocument.getElementById(v());L?.focus(),L?.click()}var ve={get id(){return c()},set id(i){c(i),r()},get label(){return h()},set label(i){h(i),r()},get description(){return y()},set description(i){y(i),r()},get info(){return x()},set info(i){x(i),r()},get htmlFor(){return v()},set htmlFor(i){v(i),r()},get activateLabel(){return C()},set activateLabel(i=!1){C(i),r()},get error(){return z()},set error(i){z(i),r()},get status(){return w()},set status(i){w(i),r()},get statusTone(){return b()},set statusTone(i="info"){b(i),r()},get disabled(){return f()},set disabled(i=!1){f(i),r()},get busy(){return k()},set busy(i=!1){k(i),r()},get compact(){return q()},set compact(i=!1){q(i),r()},get searchText(){return m()},set searchText(i=h){m(i),r()},get danger(){return d()},set danger(i=!1){d(i),r()},get experimental(){return g()},set experimental(i=!1){g(i),r()},get featureCode(){return P()},set featureCode(i){P(i),r()},get controlOnly(){return D()},set controlOnly(i=!1){D(i),r()},get leading(){return E()},set leading(i){E(i),r()},get descriptionContent(){return A()},set descriptionContent(i){A(i),r()},get control(){return G()},set control(i){G(i),r()},get children(){return u()},set children(i){u(i),r()},get class(){return R()},set class(i){R(i),r()},$set:ue,$on:(i,a)=>ce(e,i,a)},H=qr(),xe=X(H);{var N=i=>{var a=Sr(),L=X(a);{var fe=I=>{var S=_r(),U=X(S);Z(U,E),Y(S),Q(ie=>ye(S,1,ie),[()=>pe(J("type-body first-line-icon",!q()&&"md:mt-[max(0px,calc((var(--control-height-medium)-1lh)/2))]"))]),_(I,S)};O(L,I=>{E()&&I(fe)})}var be=de(L,2),ze=X(be);{var ee=I=>{{let S=l(()=>C()?p:void 0),U=l(()=>J("type-body block font-medium text-foreground",C()&&!f()&&!k()&&"cursor-pointer",!q()&&"md:py-[max(0px,calc((var(--control-height-medium)-1lh)/2))]"));Pt(I,{get id(){return n(V)},"data-field-label":!0,get for(){return v()},get onclick(){return n(S)},get class(){return n(U)},children:(ie,ct)=>{Xe();var je=Te();Q(()=>oe(je,h())),_(ie,je)},$$slots:{default:!0}})}},Se=I=>{var S=wr(),U=Ue(S,!0);Q(ie=>{T(S,"id",n(V)),ye(S,1,ie),oe(U,h())},[()=>pe(J("type-body font-medium text-foreground",!q()&&"md:py-[max(0px,calc((var(--control-height-medium)-1lh)/2))]"))]),_(I,S)};O(ze,I=>{v()?I(ee):I(Se,-1)})}var Be=de(ze,2);{var Qe=I=>{var S=kr(),U=X(S);{var ie=te=>{var qe=j(),Tt=B(qe);Z(Tt,A),_(te,qe)},ct=te=>{var qe=Te();Q(()=>oe(qe,y())),_(te,qe)};O(U,te=>{A()?te(ie):te(ct,-1)})}var je=de(U,2);{var qt=te=>{o(te)};O(je,te=>{x()&&te(qt)})}Y(S),Q(()=>T(S,"id",n($))),_(I,S)},ut=I=>{var S=Cr(),U=X(S);o(U),Y(S),_(I,S)};O(Be,I=>{y()||A()?I(Qe):x()&&I(ut,1)})}var Oe=de(Be,2);{var zt=I=>{var S=Pr(),U=Ue(S,!0);Q(()=>{T(S,"id",n(ne)),oe(U,z())}),_(I,S)},St=I=>{var S=zr(),U=Ue(S,!0);Q(ie=>{ye(S,1,ie),oe(U,w())},[()=>pe(J("type-body",b()==="subtle"?"text-ghost":"text-info"))]),_(I,S)};O(Oe,I=>{z()?I(zt):w()&&I(St,1)})}Y(be),Y(a),_(i,a)};O(xe,i=>{D()||i(N)})}var F=de(xe,2),Ce=X(F);{var _e=i=>{var a=j(),L=B(a);Z(L,G,()=>({labelId:n(V),descriptionId:n($),errorId:n(ne),disabled:f(),busy:k()})),_(i,a)},Pe=i=>{var a=j(),L=B(a);Z(L,()=>u()??We),_(i,a)};O(Ce,i=>{G()?i(_e):i(Pe,-1)})}return Y(F),Y(H),Q((i,a)=>{T(H,"id",c()),T(H,"data-highlight-id",c()),T(H,"data-settings-search-text",m()),T(H,"data-settings-feature-code",P()),T(H,"data-danger",d()||void 0),T(H,"data-experimental",g()||void 0),T(H,"data-disabled",f()||void 0),T(H,"data-orientation",n(me)),T(H,"aria-busy",k()||void 0),ye(H,1,i,"svelte-nmlnpx"),ye(F,1,a,"svelte-nmlnpx"),T(F,"data-orientation",n(me))},[()=>pe(J("grid min-w-0 gap-3 py-3 first:pt-3 last:pb-3",D()||q()?"grid-cols-1":"md:grid-cols-[minmax(0,1fr)_minmax(12rem,auto)] md:items-start md:gap-8",R())),()=>pe(J("w-full min-w-0 max-w-full",!D()&&!q()&&"md:grid md:min-h-(--control-height-medium) md:content-center md:justify-items-end",D()||q()?"md:justify-self-stretch":"md:w-auto md:justify-self-end",f()&&"opacity-60"))]),_(s,H),he(ve)}const Ir=[{id:"copy-input-state-matrix",title:"Copy input states",states:["rest","hover","focus","copied","error-feedback","disabled","button-variant","left-aligned","compact","default-size","light","dark","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];Bt({id:"copy-input",source:"src/lib/components/ui/copy-input/copy-input.svelte",publicImport:"$lib/components/ui/copy-input",legacyImports:[],exports:["CopyInput","copyInputMetadata"],category:"primitive",owner:"design-system",callers:["src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/copy-input/copy-input.test.ts",removalGate:"Retain while value rendering, clipboard feedback, and size behavior tests pass.",dynamicImports:[],fixtures:Ir});var Fr=W('<div data-slot="file-input-surface"><!> <span class="type-caption min-w-0 flex-1 truncate text-muted-foreground" role="status" aria-live="polite"> </span></div>'),Lr=W('<div data-slot="file-input"><input type="file" aria-hidden="true" class="sr-only" tabindex="-1"/> <!> <!></div>');function Dr(s,e){if(new.target)return le({component:Dr,...s});ge(e,!0);const o=pt();let c=t(e,"id",7),h=t(e,"label",23,()=>Ne.ui_fileInput_chooseFile_label()),y=t(e,"emptyText",23,()=>Ne.ui_fileInput_noFileSelected_label()),x=t(e,"accept",7),v=t(e,"multiple",7,!1),C=t(e,"required",7,!1),z=t(e,"name",7),w=t(e,"disabled",7,!1),b=t(e,"busy",7,!1),f=t(e,"invalid",7,!1),k=t(e,"variant",7,"default"),q=t(e,"state",7),m=t(e,"size",7),d=t(e,"message",7),g=t(e,"error",7),P=t(e,"files",15),D=t(e,"onFilesChange",7),E=t(e,"hiddenHost",7,!1),A=t(e,"class",7),G=vt(null);const u=l(()=>g()?`${c()}-error`:void 0),R=l(()=>!g()&&d()?`${c()}-message`:void 0),V=l(()=>n(u)??n(R)),$=l(()=>m()??o),ne=l(()=>f()||!!g()),me=l(()=>P()?.length?Array.from(P(),a=>a.name).join(", "):y());function p(){n(G)?.click()}function ve(a){P(a.currentTarget.files??void 0),D()?.(P())}function H(a){queueMicrotask(()=>{a.defaultPrevented||(P(void 0),D()?.(void 0))})}Mt(()=>{const a=n(G)?.form;return a?.addEventListener("reset",H),()=>a?.removeEventListener("reset",H)});var xe={openPicker:p,get id(){return c()},set id(a){c(a),r()},get label(){return h()},set label(a=Ne.ui_fileInput_chooseFile_label()){h(a),r()},get emptyText(){return y()},set emptyText(a=Ne.ui_fileInput_noFileSelected_label()){y(a),r()},get accept(){return x()},set accept(a){x(a),r()},get multiple(){return v()},set multiple(a=!1){v(a),r()},get required(){return C()},set required(a=!1){C(a),r()},get name(){return z()},set name(a){z(a),r()},get disabled(){return w()},set disabled(a=!1){w(a),r()},get busy(){return b()},set busy(a=!1){b(a),r()},get invalid(){return f()},set invalid(a=!1){f(a),r()},get variant(){return k()},set variant(a="default"){k(a),r()},get state(){return q()},set state(a){q(a),r()},get size(){return m()},set size(a){m(a),r()},get message(){return d()},set message(a){d(a),r()},get error(){return g()},set error(a){g(a),r()},get files(){return P()},set files(a){P(a),r()},get onFilesChange(){return D()},set onFilesChange(a){D(a),r()},get hiddenHost(){return E()},set hiddenHost(a=!1){E(a),r()},get class(){return A()},set class(a){A(a),r()},$set:ue,$on:(a,L)=>ce(e,a,L)},N=Lr(),F=X(N);nr(F,a=>ae(G,a),()=>n(G));var Ce=de(F,2);{var _e=a=>{var L=Fr(),fe=X(L);{let ee=l(()=>k()==="flat"?"ghost":"outline"),Se=l(()=>n($)==="compact"?"xs":"default"),Be=l(()=>n(ne)||void 0);yt(fe,{type:"button",get variant(){return n(ee)},get size(){return n(Se)},class:"h-full shrink-0 aria-invalid:ring-0",get disabled(){return w()},get loading(){return b()},get"aria-controls"(){return c()},get"aria-invalid"(){return n(Be)},get"aria-describedby"(){return n(V)},onclick:p,children:(Qe,ut)=>{Xe();var Oe=Te();Q(()=>oe(Oe,h())),_(Qe,Oe)},$$slots:{default:!0}})}var be=de(fe,2),ze=Ue(be,!0);Nt(be,(ee,Se)=>ir?.(ee,Se),()=>n(me)),Y(L),Q(ee=>{T(L,"data-state",q()),T(L,"data-size",n($)),ye(L,1,ee),oe(ze,n(me))},[()=>pe(J("flex min-w-0 items-center gap-2 rounded-(--radius-medium) p-1",rr,tr(n($)),k()==="default"?"border-0 bg-hover hover:bg-card":"border-0 bg-transparent shadow-none",(w()||b())&&"pointer-events-none opacity-60"))]),_(a,L)};O(Ce,a=>{E()||a(_e)})}var Pe=de(Ce,2);{var i=a=>{{let L=l(()=>n(u)??n(R)),fe=l(()=>g()?"error":"helper");ar(a,{get id(){return n(L)},get tone(){return n(fe)},children:(be,ze)=>{Xe();var ee=Te();Q(()=>oe(ee,g()??d())),_(be,ee)},$$slots:{default:!0}})}};O(Pe,a=>{!E()&&(g()||d())&&a(i)})}return Y(N),Q(a=>{ye(N,1,a),T(N,"aria-busy",b()||void 0),T(N,"aria-disabled",w()||b()||void 0),T(N,"data-invalid",n(ne)||void 0),T(N,"data-variant",k()),T(N,"data-host-mode",E()?"hidden":"surface"),T(N,"hidden",E()),T(F,"id",c()),T(F,"accept",x()),F.multiple=v(),F.required=C(),T(F,"name",z()),F.disabled=w()||b(),T(F,"aria-invalid",n(ne)||void 0),T(F,"aria-describedby",n(V))},[()=>pe(J("min-w-0",A()))]),At("change",F,ve),er(F,P),_(s,N),he(xe)}Et(["change"]);var Rr=new Set(["$$slots","$$events","$$legacy","class","size","children"]);function Hr(s,e){if(new.target)return le({component:Hr,...s});ge(e,!0);let o=t(e,"class",7,""),c=t(e,"size",7,1),h=t(e,"children",7),y=ke(e,Rr);const x=l(()=>["h1","h2","h3","h4","h5","h6"][c()-1]),v=l(()=>({1:"text-2xl font-semibold leading-tight tracking-tight antialiased",2:"text-xl font-semibold leading-tight tracking-tight antialiased",3:"text-xs font-medium text-muted-foreground antialiased",4:"text-xs font-medium text-subtle antialiased",5:"text-sm font-medium leading-normal antialiased",6:"text-[0.66rem] font-medium text-muted-foreground antialiased"})[c()]||"text-base antialiased");var C={get class(){return o()},set class(b=""){o(b),r()},get size(){return c()},set size(b=1){c(b),r()},get children(){return h()},set children(b){h(b),r()},$set:ue,$on:(b,f)=>ce(e,b,f)},z=j(),w=B(z);return sr(w,()=>n(x),!1,(b,f)=>{Ge(b,g=>({class:g,...y}),[()=>J(n(v),o())]);var k=j(),q=B(k);{var m=g=>{var P=j(),D=B(P);Z(D,h),_(g,P)},d=g=>{var P=Te();Q(()=>oe(P,e.title)),_(g,P)};O(q,g=>{h()?g(m):e.title&&g(d,1)})}_(f,k)}),_(s,z),he(C)}export{Dr as F,Hr as H,Pt as L,Tr as S,xr as a,vr as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as Xt,bo as v,bm as F,bw as Zt,bs as Ye,bq as Jt,b as Qt}from"./CP7YuMeh.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./CJxGDkBm.js";import{i as me}from"./D-7NlBP9.js";import{g as on,i as rn}from"./D37abooi.js";import{f as ln}from"./CPIQ_KTl.js";import{f as cn}from"./j0LslCAy.js";import{k as dn}from"./ByjIYjlL.js";import{I_ as Se,o7 as fn,zM as un,sp as bt,o9 as hn,a8 as kt}from"./R0MaWbXb.js";import{bY as gn,dD as vn}from"./XVOmAVkm.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./
|
|
1
|
+
import{t as Xt,bo as v,bm as F,bw as Zt,bs as Ye,bq as Jt,b as Qt}from"./CP7YuMeh.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./CJxGDkBm.js";import{i as me}from"./D-7NlBP9.js";import{g as on,i as rn}from"./D37abooi.js";import{f as ln}from"./CPIQ_KTl.js";import{f as cn}from"./j0LslCAy.js";import{k as dn}from"./ByjIYjlL.js";import{I_ as Se,o7 as fn,zM as un,sp as bt,o9 as hn,a8 as kt}from"./R0MaWbXb.js";import{bY as gn,dD as vn}from"./XVOmAVkm.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./LCA3JZcm.js";import{F as _t,ba as wt}from"./D-6tK-mW.js";import{f as Qe}from"./EHSwEMpb.js";import"./BxW5KyMH.js";import{S as Re}from"./mQ4MH-tV.js";import{l as bn}from"./DoKfR2tM.js";import{g as kn}from"./CAsv6xFW.js";function _n(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,Z=wn(Ie)-1,De=We.split(`
|
|
2
2
|
`);let s=0,I=0,le=!1;for(const B of De)if(B.startsWith("@@")){le=!0;const J=B.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);J&&(I=parseInt(J[1],10),s=parseInt(J[2],10))}else le&&(B.startsWith("+")?(re.add(s+Z),s++):B.startsWith("-")?(pe.add(I+Z),I++):B.startsWith(" ")&&(s++,I++));return{additions:re,deletions:pe}}function wn(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),Cn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),yn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),Rn=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),In=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Xt({component:Dn,...q});en(c,!0);const oe=()=>Ye(yt,"$read$",re),Ie=()=>Ye(Rt,"$workspace$",re),We=()=>Ye(It,"$workingTreeFileContentStore",re),[re,pe]=Jt(),Z=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),I=v(c,"active",7,!0),le=v(c,"workspaceId",7),B=v(c,"viewMode",7,"unified"),J=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Me=v(c,"lineWrapping",7,!1),U=v(c,"onStageHunk",7),A=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Ue=v(c,"refreshKey",7),Ae=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),Be=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Xe(()=>le())??kn()?.workspaceId??"",Ct=Math.random().toString(36).substring(2,8),$e=`tracked-diff:${crypto.randomUUID()}`,yt=gn(de,$e),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),$=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?At(t(Q).chunk,t(ee)):""),xt=d(()=>!t($)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
|
|
3
3
|
`.repeat(W()-1):""),St=d(()=>t(st)+t($)),Ht=d(()=>t(st)+t(V));let _=ae(null),Ke=ae(null),_e=null,we=ae(!1);const Rt=vn(de),at=pt(void 0),ot=pt(""),It=dn(ot,at),rt=d(Ie),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Ut(t(Le)));let Ce=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t($))}:off${W()}`:void 0),Mt=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Ut(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function At(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
|
|
4
4
|
`)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
|