@intent-hq/web 2.340.1 → 2.340.2
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/{mGAn30DI.js → 02iZ0o97.js} +1 -1
- package/web/app/immutable/chunks/{DaMaUIGp.js → 3Kvdo65f.js} +1 -1
- package/web/app/immutable/chunks/{CUbDjN6V.js → 6Kd5nT2h.js} +2 -2
- package/web/app/immutable/chunks/{BKpkQXOc.js → B0Eojz7f.js} +1 -1
- package/web/app/immutable/chunks/{CNa7ysF4.js → B4DnbNdK.js} +1 -1
- package/web/app/immutable/chunks/{2zJzFf0n.js → B4H49Lvz.js} +1 -1
- package/web/app/immutable/chunks/{D0plQxho.js → B7QWTWb8.js} +1 -1
- package/web/app/immutable/chunks/{BOGwjwyV.js → BA0YX2GW.js} +4 -4
- package/web/app/immutable/chunks/{Cdt3Os_E.js → BBWcFFhG.js} +1 -1
- package/web/app/immutable/chunks/{umdNWcd2.js → BCdX_ryS.js} +1 -1
- package/web/app/immutable/chunks/{Clh-uN2S.js → BDRppcbA.js} +1 -1
- package/web/app/immutable/chunks/{DrsfHmYl.js → BHiY3_g4.js} +1 -1
- package/web/app/immutable/chunks/{SMiFFPlc.js → BKynbS2h.js} +1 -1
- package/web/app/immutable/chunks/{BrvQxJce.js → BNE6nViq.js} +1 -1
- package/web/app/immutable/chunks/{BYs9_cNF.js → BPVaItqU.js} +1 -1
- package/web/app/immutable/chunks/{BP8RauO6.js → BQWgsTNd.js} +1 -1
- package/web/app/immutable/chunks/{DLtPx11_.js → BQYfutOx.js} +1 -1
- package/web/app/immutable/chunks/{DnHmskem.js → BSsRbsMB.js} +1 -1
- package/web/app/immutable/chunks/{D69jpRoN.js → BUwalWZU.js} +1 -1
- package/web/app/immutable/chunks/{Bd_6HBKD.js → BWLPyzgM.js} +1 -1
- package/web/app/immutable/chunks/{CJ1Z6bNT.js → BZfXXcXu.js} +1 -1
- package/web/app/immutable/chunks/{DfaM9xoo.js → Bb67WdXZ.js} +1 -1
- package/web/app/immutable/chunks/{uC2D9YWv.js → BcLuNWDd.js} +2 -2
- package/web/app/immutable/chunks/{v5cJrXPV.js → BkZVTNCE.js} +2 -2
- package/web/app/immutable/chunks/{ua4ooXEO.js → BkwB2mol.js} +1 -1
- package/web/app/immutable/chunks/{DFea2F8i.js → BmB0yVlr.js} +1 -1
- package/web/app/immutable/chunks/{BVFbqz97.js → Bn40lmOa.js} +1 -1
- package/web/app/immutable/chunks/{meW_HLSI.js → BuE6Eygz.js} +4 -4
- package/web/app/immutable/chunks/{urnpr2FU.js → BwD161C4.js} +1 -1
- package/web/app/immutable/chunks/{LwRH1eka.js → BwDa9T5n.js} +1 -1
- package/web/app/immutable/chunks/{C4hcrWw4.js → BxDUZwkN.js} +1 -1
- package/web/app/immutable/chunks/{BV-BZKII.js → ByIZkzDE.js} +5 -5
- package/web/app/immutable/chunks/{3ihzYB3B.js → C1IBY-rp.js} +1 -1
- package/web/app/immutable/chunks/{axQU0SjH.js → C3MR6-2f.js} +1 -1
- package/web/app/immutable/chunks/{CyZEXqMD.js → C3yAChji.js} +1 -1
- package/web/app/immutable/chunks/{CvCi5Zre.js → C45GhO0_.js} +1 -1
- package/web/app/immutable/chunks/{apmshPCT.js → C5uug34F.js} +1 -1
- package/web/app/immutable/chunks/{tADzjMIa.js → C6SVbm9t.js} +1 -1
- package/web/app/immutable/chunks/{D3TakY94.js → C7iv3Nal.js} +1 -1
- package/web/app/immutable/chunks/{DhnV1b3I.js → CAonbHvL.js} +1 -1
- package/web/app/immutable/chunks/{D-FQTs8G.js → CE65gWfP.js} +1 -1
- package/web/app/immutable/chunks/{BSUYxR6-.js → CEg0De9G.js} +1 -1
- package/web/app/immutable/chunks/{BHCa2aqv.js → CJr2LVMP.js} +1 -1
- package/web/app/immutable/chunks/{DIRmnyX1.js → CKP3sxGm.js} +2 -2
- package/web/app/immutable/chunks/{Bm0Jd9kY.js → CNHveuNx.js} +3 -3
- package/web/app/immutable/chunks/{DXl8wdfL.js → COU9OETp.js} +1 -1
- package/web/app/immutable/chunks/{DCnpOMJV.js → CT3GEI9u.js} +1 -1
- package/web/app/immutable/chunks/{BT0AWaPh.js → CToL3WbV.js} +3 -3
- package/web/app/immutable/chunks/{CBjTuKEK.js → CUc7hChd.js} +1 -1
- package/web/app/immutable/chunks/{DTm9Cl9J.js → CYK-PIHY.js} +1 -1
- package/web/app/immutable/chunks/{DTO4GWEs.js → CZVWvMur.js} +1 -1
- package/web/app/immutable/chunks/{Cdee4hLo.js → CaPLF-pt.js} +1 -1
- package/web/app/immutable/chunks/{BTJSEmEn.js → CdOpBzi0.js} +1 -1
- package/web/app/immutable/chunks/{C1r7a25c.js → Cfmqg7ex.js} +4 -4
- package/web/app/immutable/chunks/{DIkhRMRo.js → Cgp7P5r8.js} +3 -3
- package/web/app/immutable/chunks/{ljddUkNt.js → Cgzzb3l-.js} +1 -1
- package/web/app/immutable/chunks/{B6uczKwF.js → CiBmz_K_.js} +1 -1
- package/web/app/immutable/chunks/{Ct_wErwu.js → CkG5rsz4.js} +1 -1
- package/web/app/immutable/chunks/{DV1cJQP-.js → Cl9IfZkl.js} +1 -1
- package/web/app/immutable/chunks/{MZ-Z8Ci1.js → CnGYs2Fc.js} +1 -1
- package/web/app/immutable/chunks/{B6HDg_5J.js → Cn_PcKYx.js} +1 -1
- package/web/app/immutable/chunks/{CoN6faAY.js → CrdehDxu.js} +1 -1
- package/web/app/immutable/chunks/{BV3g1ev7.js → CtDWwfc1.js} +1 -1
- package/web/app/immutable/chunks/{DTx3XIeO.js → CzHM4mac.js} +1 -1
- package/web/app/immutable/chunks/{Cb7uUz2R.js → D0VQJT8L.js} +12 -12
- package/web/app/immutable/chunks/{Dl2U1Wya.js → D0tip71V.js} +1 -1
- package/web/app/immutable/chunks/{B2skdn5r.js → D18Ecv4L.js} +1 -1
- package/web/app/immutable/chunks/{h3Utj-6O.js → D4RbLG5y.js} +1 -1
- package/web/app/immutable/chunks/{Yfz2ipIe.js → D7sczzuC.js} +1 -1
- package/web/app/immutable/chunks/{wruYJWvu.js → D8_nOzWn.js} +1 -1
- package/web/app/immutable/chunks/{CEUkKgnH.js → D9LBHruj.js} +1 -1
- package/web/app/immutable/chunks/{Cu9Chmho.js → D9oE6G0t.js} +1 -1
- package/web/app/immutable/chunks/{zHOhpzbP.js → D9s4CP1c.js} +1 -1
- package/web/app/immutable/chunks/{CFLRL0EB.js → DBCGdyvL.js} +1 -1
- package/web/app/immutable/chunks/{BOmiP_-J.js → DEsaK2_s.js} +1 -1
- package/web/app/immutable/chunks/{CJXwbq2U.js → DM9zs99A.js} +1 -1
- package/web/app/immutable/chunks/{B629omcp.js → DNk8Z47H.js} +1 -1
- package/web/app/immutable/chunks/{pfpEUetK.js → DQ1yJ2LL.js} +1 -1
- package/web/app/immutable/chunks/{lS2ZzWyn.js → DV-Q2Imq.js} +2 -2
- package/web/app/immutable/chunks/{_Le3pPaT.js → DY0QTg0i.js} +1 -1
- package/web/app/immutable/chunks/{BKUbnlfv.js → DZpBinKD.js} +1 -1
- package/web/app/immutable/chunks/{BRiNStAc.js → D_LOsbpY.js} +1 -1
- package/web/app/immutable/chunks/{CSUwzpGH.js → D_lSSx1S.js} +2 -2
- package/web/app/immutable/chunks/{D6o1s9ud.js → D_t0KxWu.js} +1 -1
- package/web/app/immutable/chunks/{CN8OUXe_.js → DaqJTZ9F.js} +1 -1
- package/web/app/immutable/chunks/{MI6b3I4g.js → DcgSIDjr.js} +1 -1
- package/web/app/immutable/chunks/{6ttgZXCo.js → Dd4j-WEC.js} +1 -1
- package/web/app/immutable/chunks/{DlfmDS1W.js → DdoxAb5E.js} +1 -1
- package/web/app/immutable/chunks/{BkpX4I_T.js → DfzSmPSB.js} +1 -1
- package/web/app/immutable/chunks/{CDOqg_hD.js → DjASvlKb.js} +1 -1
- package/web/app/immutable/chunks/{CnsvCPbt.js → DnVZFag3.js} +1 -1
- package/web/app/immutable/chunks/{CxflQmTv.js → DqU8XEOB.js} +1 -1
- package/web/app/immutable/chunks/{Dd16ARRa.js → DwtYwoux.js} +1 -1
- package/web/app/immutable/chunks/{RcUVizw0.js → DyTa38UW.js} +1 -1
- package/web/app/immutable/chunks/{DFWX4KUv.js → EP26VtYX.js} +1 -1
- package/web/app/immutable/chunks/{BKKe6SMA.js → EXDnM3_s.js} +1 -1
- package/web/app/immutable/chunks/{DR9Al9U6.js → IdfHcBrb.js} +2 -2
- package/web/app/immutable/chunks/{DgbXpArF.js → KsmYk2yz.js} +1 -1
- package/web/app/immutable/chunks/{CoJ-IYbA.js → LPMF1MUO.js} +1 -1
- package/web/app/immutable/chunks/{B12_oQah.js → LQKJN9ho.js} +1 -1
- package/web/app/immutable/chunks/{DvkwbTMH.js → M_IeUJIa.js} +3 -3
- package/web/app/immutable/chunks/{DhdMmVFs.js → ODHkP_kN.js} +1 -1
- package/web/app/immutable/chunks/{Wl6R_9KY.js → P26fbC8x.js} +2 -2
- package/web/app/immutable/chunks/{CpVL4p4g.js → P7uHTJ09.js} +1 -1
- package/web/app/immutable/chunks/{B0JwRbGv.js → QGyJLAMm.js} +1 -1
- package/web/app/immutable/chunks/{CzQ1bq5z.js → Y-TAA21J.js} +1 -1
- package/web/app/immutable/chunks/{Cu6cQ3bz.js → ZO-rsGOh.js} +1 -1
- package/web/app/immutable/chunks/{Ce-M4Yet.js → _-wR8Y_9.js} +1 -1
- package/web/app/immutable/chunks/{Ct_jn4oi.js → aVPYoucJ.js} +4 -4
- package/web/app/immutable/chunks/{CDW-i6Fv.js → cFmB6NjI.js} +1 -1
- package/web/app/immutable/chunks/{CclH1YIh.js → dxURPdJf.js} +1 -1
- package/web/app/immutable/chunks/{ChqVaW7F.js → e0XMdR1L.js} +1 -1
- package/web/app/immutable/chunks/{DkCfIFHY.js → e4lO2pBq.js} +1 -1
- package/web/app/immutable/chunks/{DhU8Eiqq.js → f8MDHasY.js} +1 -1
- package/web/app/immutable/chunks/{CTZWroek.js → f_AEjkk5.js} +1 -1
- package/web/app/immutable/chunks/{D_FmcpdP.js → kE32CEyB.js} +3 -3
- package/web/app/immutable/chunks/{BQs4fy4w.js → lCsiS-lR.js} +1 -1
- package/web/app/immutable/chunks/{kniKaj8l.js → m6_pcI91.js} +1 -1
- package/web/app/immutable/chunks/{BpBwsbt_.js → nvafrjsr.js} +1 -1
- package/web/app/immutable/chunks/{Co_CDc_C.js → oE3wvz3F.js} +1 -1
- package/web/app/immutable/chunks/{JJppOn81.js → oKXDW-Y-.js} +1 -1
- package/web/app/immutable/chunks/{BOtVBIUd.js → sgLbXPKZ.js} +1 -1
- package/web/app/immutable/entry/{app.BUbsETEC.js → app.EWTkCOdn.js} +2 -2
- package/web/app/immutable/entry/start.2ZXczmm3.js +1 -0
- package/web/app/immutable/nodes/{0.BsmvutDZ.js → 0.DyKuFiaz.js} +1 -1
- package/web/app/immutable/nodes/{1.BrUX48T8.js → 1._KMbmbtj.js} +1 -1
- package/web/app/immutable/nodes/{10.7J5qVFyy.js → 10.DEze-Uuw.js} +1 -1
- package/web/app/immutable/nodes/{14.L6XtNmcg.js → 14.CnjKRxBb.js} +1 -1
- package/web/app/immutable/nodes/{17.l75hM3Fb.js → 17.CfSXp9j1.js} +2 -2
- package/web/app/immutable/nodes/{2.D42i0GRA.js → 2.v4rI2Mh_.js} +4 -4
- package/web/app/immutable/nodes/{3.BGRV9LT6.js → 3.j4IrW3is.js} +1 -1
- package/web/app/immutable/nodes/{4.BexAoHjn.js → 4.DKmVwIen.js} +1 -1
- package/web/app/immutable/nodes/{5.Bbv5x2qJ.js → 5.BuZfMSu4.js} +1 -1
- package/web/app/immutable/nodes/{6.BzVHiMKE.js → 6.D-oyFAVb.js} +1 -1
- package/web/app/immutable/nodes/{7.rwtSWtjx.js → 7.CpRE1Bsk.js} +1 -1
- package/web/app/immutable/nodes/{8.D6d_r0Eu.js → 8.DMf0uQQL.js} +4 -4
- package/web/app/immutable/nodes/{9.aquGW3ae.js → 9.BPiHS8kG.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.BsxeZxKz.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aB as v,b as y}from"./
|
|
1
|
+
import{aB as v,b as y}from"./aVPYoucJ.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ao as s}from"./DYhIMPy1.js";import{d as r}from"./
|
|
1
|
+
import{ao as s}from"./DYhIMPy1.js";import{d as r}from"./ByIZkzDE.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ir as g,rm as b,I4 as S}from"./DBkMUdAo.js";import{V as A,bk as _}from"./CUrYTyIw.js";import{bv as k}from"./B10dK85Q.js";import{bM as y,bI as w}from"./
|
|
1
|
+
import{Ir as g,rm as b,I4 as S}from"./DBkMUdAo.js";import{V as A,bk as _}from"./CUrYTyIw.js";import{bv as k}from"./B10dK85Q.js";import{bM as y,bI as w}from"./C3yAChji.js";import{bp as n}from"./Cv-W__h8.js";import{t as I}from"./j0KL2ItM.js";const z=g.createSelector(e=>e.backgroundAgentSettings.defaultModel),B=g.createSelector(e=>e.backgroundAgentSettings.typeOverrides),G=g.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),W=g.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),j=g.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["plugins","Plugins","App-wide Agent Plugins.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["labs","Labs","Experimental feature switches.","advanced"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function P(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(P).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function F(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const U=g.createSelector(e=>{const t=new Map,i=(s,c)=>{const d=t.get(s)??new Set;d.add(c),t.set(s,d)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),d=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>d&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:d,path:c}):d?n.settings_providers_inUseSource_label({reason:l,source:d}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:I(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
|
|
2
2
|
`)]))});g.createSelector((e,t)=>U.select(e)[t]??null);const O=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],q=O.map(({id:e})=>e);export{q as T,O as a,G as b,j as c,B as d,W as e,U as f,F as i,R as r,z as s};
|