@ensocode/server 0.2.12 → 0.2.13
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/out/node_modules/@earendil-works/pi-coding-agent/node_modules/.bin/jiti +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/node_modules/.bin/pi-ai +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/node_modules/.bin/semver +2 -2
- package/out/node_modules/@earendil-works/pi-coding-agent/node_modules/.bin/yaml +2 -2
- package/out/node_modules/@rahularya01/pi-cursor/node_modules/.bin/pi +2 -2
- package/out/node_modules/@rahularya01/pi-cursor/node_modules/.bin/pi-ai +2 -2
- package/out/renderer/assets/{abnfDiagram-VCTEODGH-DSknDX4E.js → abnfDiagram-VCTEODGH-BDMrRlBj.js} +1 -1
- package/out/renderer/assets/{arc-zTFUKTRJ.js → arc-BHxAM6vy.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-C3ozR2n4.js → architectureDiagram-5GKGNRK7-DQrws1sS.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-CP8IPcaX.js → blockDiagram-I7D4REHJ-DNVn9Vt7.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-Dg7E4owk.js → c4Diagram-7LVT6UL2--LtDB-qV.js} +1 -1
- package/out/renderer/assets/channel-DIfxeADv.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-DJGGTYcL.js → chunk-2Q5K7J3B-t33NDV5v.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-BtSsuqjz.js → chunk-5VM5RSS4-aCGmL6_s.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-BWV_yV1h.js → chunk-F27PBJKO-DQvndxlp.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-Ck5oy1zk.js → chunk-IMKFNOWR-rH1b7xzl.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-B-S2-0Sm.js → chunk-JWPE2WC7-B7-2fQn6.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-R_8Vekxl.js → chunk-POPQ4Y6H-CVYzlJTE.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-tsjEM3PC.js → chunk-SVP7TREG-v3eUqihT.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-DUvlZ-eV.js → chunk-TICWLB2K-Dq2BsFU4.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-Dyxh1s1Z.js → chunk-XXDRQBXY-DjMnIDLm.js} +1 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-D8Q2hInV.js +1 -0
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-D8Q2hInV.js +1 -0
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-BtT54hjs.js → cose-bilkent-JH36ORCC-DAUPCDab.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-Cs8squh2.js → cynefin-OW5HDTMX-DBni0eSw.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-fbUAGuvo.js → cynefinDiagram-5FMLGOSQ-n0u0erlW.js} +1 -1
- package/out/renderer/assets/{cytoscape-fcose-Bz_Tpcw2.js → cytoscape-fcose-DVQaQP2R.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-Fhu5QOEm.js → dagre-GXQ25YYZ-B-0jlzO1.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-DK47UH_g.js → diagram-S7CK7UJ4-BxXw3viF.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-DtVjeJ2g.js → diagram-UQ7AKVKN-BCCjG-ot.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-q-yK0nOP.js → diagram-VSXAHHWV-BK0zhBZp.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-A7YCLSM9.js → diagram-VX7I27RA-DylHuw1A.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-C8JKpOpD.js → diagram-Z3DM3KII-biplaxsX.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-BB8uppX2.js → ebnfDiagram-PWID7BFC-DzoKjl97.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-bsoIoJ_o.js → erDiagram-RLTQ6QDP-CxhgKPs-.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-D1-YOWb-.js → flowDiagram-HODETNUW-DCi3FHwP.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-BfLmFDZ-.js → ganttDiagram-EL5Y4UJY-BCmOcEsS.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-Cm8h40L_.js → gitGraphDiagram-WWUBYQGX-CWwjuui-.js} +1 -1
- package/out/renderer/assets/{globals-BKWml662.js → globals-BwNQF72D.js} +1 -1
- package/out/renderer/assets/{index-EZ5OaOIy.js → index-CzysFMwH.js} +3 -3
- package/out/renderer/assets/{infoDiagram-27XIBGKW-yWJunXz9.js → infoDiagram-27XIBGKW-C2vV0S3R.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-DxwTsrS1.js → ishikawaDiagram-5VMMS53U-BSWVe4Qr.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-CuB5mhXa.js → journeyDiagram-3NMN7TZE-D_D_AgW8.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-Cmva56gL.js → kanban-definition-UXKFOSKX-Dp-tJLJV.js} +1 -1
- package/out/renderer/assets/{layout-DoAgDBEn.js → layout-BGyL6Nz9.js} +1 -1
- package/out/renderer/assets/{linear-CZwdsMB7.js → linear-NiGqkXcf.js} +1 -1
- package/out/renderer/assets/{mermaid.core-DU532gMP.js → mermaid.core-CAbX6U-E.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-DK3MTfhw.js → mindmap-definition-YA3MSWOX-C_KTsCSk.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-D6n-lh1R.js → pegDiagram-XKGWAZYB-BlEf-4SS.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-CxpB_WP9.js → pieDiagram-E7YTZNPT-C2l9VhhT.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-eGxakEz6.js → quadrantDiagram-AXDQQJYC-Bkm2D1II.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-Bn8WVtzF.js → railroadDiagram-O6MQD6OU-Cy9AsJch.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-k1J6FH4-.js → requirementDiagram-BXWQKSXE-DaqpZJ20.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-zs75kBxO.js → sankeyDiagram-P5KCCOFB-DShER0Cl.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-l16uPywk.js → sequenceDiagram-WJ2MYXX4-fA8_5PiI.js} +1 -1
- package/out/renderer/assets/{settings-PBZusE8m.js → settings-BwM2TgQ9.js} +2 -2
- package/out/renderer/assets/{sizeCapture-INFHLROL-qNGUa7l4.js → sizeCapture-INFHLROL-CpzQOV5k.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-XunN8EqP.js → stateDiagram-D77RDMKH-CIEGNnJO.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-DYbIahny.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-BFbz49DP.js → swimlanes-42K2YHIH-CAeLgkB1.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-BLHkQmpd.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-BZe7g-xh.js → timeline-definition-24CTP7MA-CkWIsYs6.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-HhmToh-J.js → vennDiagram-4TSXK5OY-Cus6U3uz.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-C7Xrbo9d.js → wardleyDiagram-VM6X3IG4-BJg1coTW.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-CzFFFEO6.js → xychartDiagram-S5SC5T6Z-DjRPfyub.js} +1 -1
- package/out/renderer/index.html +2 -2
- package/out/renderer/settings.html +3 -3
- package/out/server/agent.js +1 -1
- package/out/server/index.js +4 -4
- package/package.json +1 -1
- package/out/renderer/assets/channel-CwD8Sdta.js +0 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-C_zVt_Ll.js +0 -1
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-C_zVt_Ll.js +0 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-DtHEdXeq.js +0 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-DyNtRiPo.js +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mermaid.core-
|
|
2
|
-
import{r as v,e9 as Le,ea as Xs,j as a,c as ot,eb as bS,ec as _S,ed as ED,cy as hw,ee as yB,ef as SB,eg as CB,cY as he,eh as kB,p as Te,ei as u0,ej as fx,ek as EB,q as re,as as vh,X as yn,e as te,el as TB,em as IB,en as NB,cJ as TD,c0 as Uo,aF as pc,eo as DB,c3 as AB,ep as ID,c4 as Pc,c_ as Ea,eq as PB,er as jB,es as RB,aB as fw,bw as Ym,ch as Ei,et as MB,eu as LB,ev as OB,ew as BB,ex as Rd,ey as jc,ez as Ho,eA as FB,eB as HB,eC as zB,eD as ss,eE as sp,eF as GB,eG as $B,eH as Md,eI as Ld,eJ as Hr,eK as d0,eL as WB,eM as rp,eN as Pl,eO as VB,eP as UB,eQ as qB,eR as KB,eS as YB,eT as XB,eU as h0,eV as Xl,eW as wS,eX as ND,eY as yS,eZ as QB,e_ as JB,e$ as lc,f0 as ZB,f1 as dr,f2 as eF,f3 as Ja,f4 as DD,f5 as SS,f6 as mc,f7 as tF,f8 as Xh,f9 as nF,fa as iF,fb as sF,fc as rF,fd as CS,fe as AD,ff as px,fg as oF,fh as aF,fi as PD,fj as lF,fk as kS,fl as jD,fm as cF,fn as uF,fo as mx,fp as dF,fq as RD,fr as hF,fs as fF,ft as pF,fu as mF,fv as gF,fw as ES,fx as vF,fy as xF,fz as bF,fA as TS,fB as f0,fC as _F,fD as wF,fE as yF,fF as MD,fG as Vl,fH as Lu,fI as Qa,fJ as LD,fK as p0,fL as gx,fM as SF,fN as Xm,fO as CF,fP as kF,fQ as EF,fR as iu,fS as TF,fT as IF,fU as NF,fV as OD,fW as DF,fX as AF,fY as PF,fZ as jF,f_ as RF,f$ as BD,g0 as FD,g1 as Po,g2 as MF,g3 as LF,g4 as IS,g5 as OF,cB as gc,cz as xh,cA as Rc,g as HD,g6 as Ta,g7 as bh,g8 as BF,g9 as Qm,ga as zD,gb as GD,gc as NS,gd as FF,ge as HF,gf as zF,gg as GF,gh as $F,gi as WF,gj as vx,gk as DS,gl as VF,b as Mc,gm as AS,aq as Qh,gn as UF,go as qF,gp as KF,af as xx,gq as YF,gr as XF,gs as $D,gt as QF,gu as WD,gv as VD,gw as UD,gx as JF,gy as qD,gz as KD,gA as ZF,gB as e8,z as Yn,au as Nn,av as Dn,aw as An,ax as Pn,ay as Is,az as Xn,aH as Bi,B as ye,gC as pw,gD as t8,Z as Rn,bc as es,gE as bx,bz as mw,dM as n8,N as qi,aQ as Ze,bd as vc,dY as Fs,Y as _h,gF as i8,gG as s8,gH as r8,gI as o8,gJ as a8,gK as l8,gL as c8,gM as u8,gN as d8,gO as h8,gP as f8,gQ as p8,a3 as gw,gR as m8,gS as g8,gT as v8,gU as x8,gV as b8,gW as _8,gX as w8,a4 as YD,gY as y8,gZ as S8,g_ as C8,g$ as k8,h0 as E8,h1 as T8,h2 as I8,h3 as N8,h4 as D8,h5 as A8,d as P8,h6 as j8,h7 as R8,h8 as M8,h9 as L8,cZ as O8,dZ as Jm,cE as XD,ha as Cs,d9 as ps,hb as Vi,hc as B8,x as Zm,w as F8,c5 as QD,bJ as vi,aG as pl,R as Ia,b$ as H8,ar as nn,c9 as z8,dX as xc,hd as PS,he as JD,hf as ZD,hg as G8,hh as $8,hi as W8,hj as eA,hk as V8,hl as U8,hm as q8,hn as K8,ho as Y8,hp as X8,hq as Q8,hr as Jh,hs as Xr,ht as Qr,hu as Jr,b7 as Zi,hv as J8,hw as Z8,hx as eH,co as uo,c1 as Ms,bv as Hs,c2 as Zr,c8 as eg,c6 as vw,hy as tH,hz as nH,d$ as tA,hA as iH,hB as sH,hC as rH,dU as Ur,T as _x,dQ as jS,bs as xw,hD as nA,hE as iA,dO as tg,dP as oH,hF as ve,hG as aH,hH as zp,hI as sA,hJ as Gp,dK as lH,hK as cH,hL as ng,dW as rA,cU as al,cv as eo,cw as Od,hM as uH,hN as oA,hO as RS,cq as qr,hP as dH,hQ as hH,hR as fH,hS as aA,br as dn,hT as lA,hU as pH,hV as mH,hW as zo,hX as gH,hY as cA,hZ as Bd,h_ as vH,h$ as wx,i0 as xH,i1 as bH,i2 as _H,i3 as wH,i4 as yH,i5 as SH,i6 as CH,i7 as kH,i8 as EH,i9 as TH,P as IH,ia as NH,bG as tn,bH as bw,bO as uA,L as zr,I as an,ib as MS,ic as LS,id as OS,K as wh,ie as Fd,bZ as m0,dD as g0,bP as ar,be as xr,ig as DH,ih as dA,ii as AH,ij as us,ik as PH,dN as _w,D as rs,F as os,G as as,H as ls,J as Li,bF as ww,il as yx,im as Sx,io as Cx,bn as ig,bo as sg,bp as ks,bq as Ro,bN as hA,ip as fA,iq as pA,ir as Qu,is as $p,it as mA,iu as jH,iv as RH,iw as MH,ix as yw,iy as LH,iz as OH,iA as gA,ds as ho,dt as fo,dv as po,dz as In,iB as vA,iC as xA,iD as bA,dx as Lc,iE as _A,iF as rg,iG as ms,bK as wA,bC as BH,bD as FH,bQ as HH,iH as zH,bS as GH,iI as $H,iJ as yA,iK as WH,iL as VH,iM as UH,iN as qH,iO as KH,iP as YH,iQ as ml,iR as Sw,iS as Ou,iT as Cw,iU as kw,cO as og,cQ as ag,cP as lg,dL as SA,iV as XH,iW as CA,iX as kA,iY as QH,iZ as Ju,i_ as JH,at as Ew,i$ as EA,j0 as TA,j1 as IA,cc as Oc,j2 as NA,j3 as ZH,cS as ez,cR as tz,j4 as nz,A as iz,j5 as sz,j6 as rz,n as oz,j7 as az,j8 as lz,m as cz,j9 as uz,ja as dz,C as hz,f as DA,h as fz,i as pz,k as mz,S as gz,l as vz,o as xz,jb as bz,jc as _z,jd as wz,je as yz,jf as Sz,jg as Cz,jh as AA,cu as hr,ji as kz,c7 as bc,e1 as kx,jj as Ez,jk as Tz,jl as Tw,jm as Iz,jn as Nz,jo as Dz,bm as PA,bu as $a,bl as Az,jp as Pz,jq as jA,jr as jl,bt as BS,bB as jz,js as Rz,bL as FS,jt as HS,ci as Mi,ju as Mz,e0 as Lz,jv as RA,jw as Oz,jx as Bz,jy as Fz,dq as Hz,jz as MA,jA as LA,jB as zz,jC as Gz,jD as $z,dV as Wz,dT as yh,jE as zS,jF as Vz,jG as Uz,jH as Iw,dR as qz,cl as Qs,cm as Js,jI as OA,jJ as Kz,jK as Yz,jL as Xz,jM as Qz,jN as BA,jO as Jz,jP as Zz,ce as e9,jQ as t9,jR as FA,jS as Nw,jT as n9,jU as i9,jV as GS,jW as s9,jX as r9,cM as o9,cL as a9,d_ as l9,jY as HA,jZ as Ex,aI as zA,aJ as GA,aK as $A,aL as WA,aM as VA,aN as UA,j_ as op,j$ as qA,aW as Dw,k0 as Wp,k1 as Hd,k2 as _c,k3 as Tx,k4 as c9,db as wc,k5 as u9,a_ as cg,k6 as d9,k7 as KA,dC as $S,dB as h9,k8 as Yi,k9 as ei,ka as ll,kb as YA,a$ as f9,kc as Vp,kd as _a,b_ as p9,ke as XA,kf as Zu,kg as Ul,kh as m9,ki as QA,kj as g9,kk as v9,kl as x9,cg as WS,km as JA,kn as b9,ko as VS,kp as US,du as Aw,kq as _9,cn as w9,kr as y9,ks as S9,kt as Ix,ku as C9,M as k9,ck as E9,kv as T9,dS as I9,d0 as N9,kw as D9,dl as A9,dm as P9,cp as j9,kx as R9,ky as ZA,kz as eP,kA as Pw,kB as qS,kC as KS,kD as YS,kE as tP,kF as M9,kG as L9,cC as O9,y as B9,bx as F9,cD as H9,cF as z9,kH as G9,kI as Nx,kJ as nP,kK as $9,kL as Za,kM as W9,kN as V9,kO as U9,kP as q9,kQ as K9,kR as Y9,kS as X9,d1 as Q9,kT as J9,kU as XS,kV as Z9,kW as e7,kX as iP,dA as t7,kY as n7,kZ as i7,e8 as s7,e5 as r7,e6 as o7,aO as a7,k_ as l7,k$ as c7,l0 as u7,l1 as d7,e4 as h7}from"./globals-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mermaid.core-CAbX6U-E.js","./globals-BwNQF72D.js","./globals-CAQ0yet9.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as v,e9 as Le,ea as Xs,j as a,c as ot,eb as bS,ec as _S,ed as ED,cy as hw,ee as yB,ef as SB,eg as CB,cY as he,eh as kB,p as Te,ei as u0,ej as fx,ek as EB,q as re,as as vh,X as yn,e as te,el as TB,em as IB,en as NB,cJ as TD,c0 as Uo,aF as pc,eo as DB,c3 as AB,ep as ID,c4 as Pc,c_ as Ea,eq as PB,er as jB,es as RB,aB as fw,bw as Ym,ch as Ei,et as MB,eu as LB,ev as OB,ew as BB,ex as Rd,ey as jc,ez as Ho,eA as FB,eB as HB,eC as zB,eD as ss,eE as sp,eF as GB,eG as $B,eH as Md,eI as Ld,eJ as Hr,eK as d0,eL as WB,eM as rp,eN as Pl,eO as VB,eP as UB,eQ as qB,eR as KB,eS as YB,eT as XB,eU as h0,eV as Xl,eW as wS,eX as ND,eY as yS,eZ as QB,e_ as JB,e$ as lc,f0 as ZB,f1 as dr,f2 as eF,f3 as Ja,f4 as DD,f5 as SS,f6 as mc,f7 as tF,f8 as Xh,f9 as nF,fa as iF,fb as sF,fc as rF,fd as CS,fe as AD,ff as px,fg as oF,fh as aF,fi as PD,fj as lF,fk as kS,fl as jD,fm as cF,fn as uF,fo as mx,fp as dF,fq as RD,fr as hF,fs as fF,ft as pF,fu as mF,fv as gF,fw as ES,fx as vF,fy as xF,fz as bF,fA as TS,fB as f0,fC as _F,fD as wF,fE as yF,fF as MD,fG as Vl,fH as Lu,fI as Qa,fJ as LD,fK as p0,fL as gx,fM as SF,fN as Xm,fO as CF,fP as kF,fQ as EF,fR as iu,fS as TF,fT as IF,fU as NF,fV as OD,fW as DF,fX as AF,fY as PF,fZ as jF,f_ as RF,f$ as BD,g0 as FD,g1 as Po,g2 as MF,g3 as LF,g4 as IS,g5 as OF,cB as gc,cz as xh,cA as Rc,g as HD,g6 as Ta,g7 as bh,g8 as BF,g9 as Qm,ga as zD,gb as GD,gc as NS,gd as FF,ge as HF,gf as zF,gg as GF,gh as $F,gi as WF,gj as vx,gk as DS,gl as VF,b as Mc,gm as AS,aq as Qh,gn as UF,go as qF,gp as KF,af as xx,gq as YF,gr as XF,gs as $D,gt as QF,gu as WD,gv as VD,gw as UD,gx as JF,gy as qD,gz as KD,gA as ZF,gB as e8,z as Yn,au as Nn,av as Dn,aw as An,ax as Pn,ay as Is,az as Xn,aH as Bi,B as ye,gC as pw,gD as t8,Z as Rn,bc as es,gE as bx,bz as mw,dM as n8,N as qi,aQ as Ze,bd as vc,dY as Fs,Y as _h,gF as i8,gG as s8,gH as r8,gI as o8,gJ as a8,gK as l8,gL as c8,gM as u8,gN as d8,gO as h8,gP as f8,gQ as p8,a3 as gw,gR as m8,gS as g8,gT as v8,gU as x8,gV as b8,gW as _8,gX as w8,a4 as YD,gY as y8,gZ as S8,g_ as C8,g$ as k8,h0 as E8,h1 as T8,h2 as I8,h3 as N8,h4 as D8,h5 as A8,d as P8,h6 as j8,h7 as R8,h8 as M8,h9 as L8,cZ as O8,dZ as Jm,cE as XD,ha as Cs,d9 as ps,hb as Vi,hc as B8,x as Zm,w as F8,c5 as QD,bJ as vi,aG as pl,R as Ia,b$ as H8,ar as nn,c9 as z8,dX as xc,hd as PS,he as JD,hf as ZD,hg as G8,hh as $8,hi as W8,hj as eA,hk as V8,hl as U8,hm as q8,hn as K8,ho as Y8,hp as X8,hq as Q8,hr as Jh,hs as Xr,ht as Qr,hu as Jr,b7 as Zi,hv as J8,hw as Z8,hx as eH,co as uo,c1 as Ms,bv as Hs,c2 as Zr,c8 as eg,c6 as vw,hy as tH,hz as nH,d$ as tA,hA as iH,hB as sH,hC as rH,dU as Ur,T as _x,dQ as jS,bs as xw,hD as nA,hE as iA,dO as tg,dP as oH,hF as ve,hG as aH,hH as zp,hI as sA,hJ as Gp,dK as lH,hK as cH,hL as ng,dW as rA,cU as al,cv as eo,cw as Od,hM as uH,hN as oA,hO as RS,cq as qr,hP as dH,hQ as hH,hR as fH,hS as aA,br as dn,hT as lA,hU as pH,hV as mH,hW as zo,hX as gH,hY as cA,hZ as Bd,h_ as vH,h$ as wx,i0 as xH,i1 as bH,i2 as _H,i3 as wH,i4 as yH,i5 as SH,i6 as CH,i7 as kH,i8 as EH,i9 as TH,P as IH,ia as NH,bG as tn,bH as bw,bO as uA,L as zr,I as an,ib as MS,ic as LS,id as OS,K as wh,ie as Fd,bZ as m0,dD as g0,bP as ar,be as xr,ig as DH,ih as dA,ii as AH,ij as us,ik as PH,dN as _w,D as rs,F as os,G as as,H as ls,J as Li,bF as ww,il as yx,im as Sx,io as Cx,bn as ig,bo as sg,bp as ks,bq as Ro,bN as hA,ip as fA,iq as pA,ir as Qu,is as $p,it as mA,iu as jH,iv as RH,iw as MH,ix as yw,iy as LH,iz as OH,iA as gA,ds as ho,dt as fo,dv as po,dz as In,iB as vA,iC as xA,iD as bA,dx as Lc,iE as _A,iF as rg,iG as ms,bK as wA,bC as BH,bD as FH,bQ as HH,iH as zH,bS as GH,iI as $H,iJ as yA,iK as WH,iL as VH,iM as UH,iN as qH,iO as KH,iP as YH,iQ as ml,iR as Sw,iS as Ou,iT as Cw,iU as kw,cO as og,cQ as ag,cP as lg,dL as SA,iV as XH,iW as CA,iX as kA,iY as QH,iZ as Ju,i_ as JH,at as Ew,i$ as EA,j0 as TA,j1 as IA,cc as Oc,j2 as NA,j3 as ZH,cS as ez,cR as tz,j4 as nz,A as iz,j5 as sz,j6 as rz,n as oz,j7 as az,j8 as lz,m as cz,j9 as uz,ja as dz,C as hz,f as DA,h as fz,i as pz,k as mz,S as gz,l as vz,o as xz,jb as bz,jc as _z,jd as wz,je as yz,jf as Sz,jg as Cz,jh as AA,cu as hr,ji as kz,c7 as bc,e1 as kx,jj as Ez,jk as Tz,jl as Tw,jm as Iz,jn as Nz,jo as Dz,bm as PA,bu as $a,bl as Az,jp as Pz,jq as jA,jr as jl,bt as BS,bB as jz,js as Rz,bL as FS,jt as HS,ci as Mi,ju as Mz,e0 as Lz,jv as RA,jw as Oz,jx as Bz,jy as Fz,dq as Hz,jz as MA,jA as LA,jB as zz,jC as Gz,jD as $z,dV as Wz,dT as yh,jE as zS,jF as Vz,jG as Uz,jH as Iw,dR as qz,cl as Qs,cm as Js,jI as OA,jJ as Kz,jK as Yz,jL as Xz,jM as Qz,jN as BA,jO as Jz,jP as Zz,ce as e9,jQ as t9,jR as FA,jS as Nw,jT as n9,jU as i9,jV as GS,jW as s9,jX as r9,cM as o9,cL as a9,d_ as l9,jY as HA,jZ as Ex,aI as zA,aJ as GA,aK as $A,aL as WA,aM as VA,aN as UA,j_ as op,j$ as qA,aW as Dw,k0 as Wp,k1 as Hd,k2 as _c,k3 as Tx,k4 as c9,db as wc,k5 as u9,a_ as cg,k6 as d9,k7 as KA,dC as $S,dB as h9,k8 as Yi,k9 as ei,ka as ll,kb as YA,a$ as f9,kc as Vp,kd as _a,b_ as p9,ke as XA,kf as Zu,kg as Ul,kh as m9,ki as QA,kj as g9,kk as v9,kl as x9,cg as WS,km as JA,kn as b9,ko as VS,kp as US,du as Aw,kq as _9,cn as w9,kr as y9,ks as S9,kt as Ix,ku as C9,M as k9,ck as E9,kv as T9,dS as I9,d0 as N9,kw as D9,dl as A9,dm as P9,cp as j9,kx as R9,ky as ZA,kz as eP,kA as Pw,kB as qS,kC as KS,kD as YS,kE as tP,kF as M9,kG as L9,cC as O9,y as B9,bx as F9,cD as H9,cF as z9,kH as G9,kI as Nx,kJ as nP,kK as $9,kL as Za,kM as W9,kN as V9,kO as U9,kP as q9,kQ as K9,kR as Y9,kS as X9,d1 as Q9,kT as J9,kU as XS,kV as Z9,kW as e7,kX as iP,dA as t7,kY as n7,kZ as i7,e8 as s7,e5 as r7,e6 as o7,aO as a7,k_ as l7,k$ as c7,l0 as u7,l1 as d7,e4 as h7}from"./globals-BwNQF72D.js";function f7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>i=>{t.forEach(s=>s(i))},t)}const ug=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Bc(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function jw(e){return"nodeType"in e}function gs(e){var t,n;return e?Bc(e)?e:jw(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Rw(e){const{Document:t}=gs(e);return e instanceof t}function Sh(e){return Bc(e)?!1:e instanceof gs(e).HTMLElement}function sP(e){return e instanceof gs(e).SVGElement}function Fc(e){return e?Bc(e)?e.document:jw(e)?Rw(e)?e:Sh(e)||sP(e)?e.ownerDocument:document:document:document}const br=ug?v.useLayoutEffect:v.useEffect;function dg(e){const t=v.useRef(e);return br(()=>{t.current=e}),v.useCallback(function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return t.current==null?void 0:t.current(...i)},[])}function p7(){const e=v.useRef(null),t=v.useCallback((i,s)=>{e.current=setInterval(i,s)},[]),n=v.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function zd(e,t){t===void 0&&(t=[e]);const n=v.useRef(e);return br(()=>{n.current!==e&&(n.current=e)},t),n}function Ch(e,t){const n=v.useRef();return v.useMemo(()=>{const i=e(n.current);return n.current=i,i},[...t])}function Up(e){const t=dg(e),n=v.useRef(null),i=v.useCallback(s=>{s!==n.current&&t?.(s,n.current),n.current=s},[]);return[n,i]}function qp(e){const t=v.useRef();return v.useEffect(()=>{t.current=e},[e]),t.current}let v0={};function kh(e,t){return v.useMemo(()=>{if(t)return t;const n=v0[e]==null?0:v0[e]+1;return v0[e]=n,e+"-"+n},[e,t])}function rP(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return i.reduce((r,o)=>{const l=Object.entries(o);for(const[c,u]of l){const d=r[c];d!=null&&(r[c]=d+e*u)}return r},{...t})}}const cc=rP(1),Kp=rP(-1);function m7(e){return"clientX"in e&&"clientY"in e}function hg(e){if(!e)return!1;const{KeyboardEvent:t}=gs(e.target);return t&&e instanceof t}function g7(e){if(!e)return!1;const{TouchEvent:t}=gs(e.target);return t&&e instanceof t}function Yp(e){if(g7(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return m7(e)?{x:e.clientX,y:e.clientY}:null}const to=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[to.Translate.toString(e),to.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),QS="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function v7(e){return e.matches(QS)?e:e.querySelector(QS)}const x7={display:"none"};function b7(e){let{id:t,value:n}=e;return Le.createElement("div",{id:t,style:x7},n)}function _7(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Le.createElement("div",{id:t,style:s,role:"status","aria-live":i,"aria-atomic":!0},n)}function w7(){const[e,t]=v.useState("");return{announce:v.useCallback(i=>{i!=null&&t(i)},[]),announcement:e}}const oP=v.createContext(null);function aP(e){const t=v.useContext(oP);v.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function y7(){const[e]=v.useState(()=>new Set),t=v.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[v.useCallback(i=>{let{type:s,event:r}=i;e.forEach(o=>{var l;return(l=o[s])==null?void 0:l.call(o,r)})},[e]),t]}const S7={draggable:`
|
|
3
3
|
To pick up a draggable item, press the space bar.
|
|
4
4
|
While dragging, use the arrow keys to move the item.
|
|
5
5
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
@@ -110,7 +110,7 @@ ${t}`,i=e.startsWith(t)?0:dT(e,n,0);if(i===-1)return[e];const s=[];i>0&&s.push(e
|
|
|
110
110
|
`))+1))}const o="#".repeat(s),l=n.enter("headingAtx"),c=n.enter("phrasing");r.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
111
111
|
`,...r.current()});return/^[\t ]/.test(u)&&(u=ah(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),c(),l(),u}ML.peek=Zue;function ML(e){return e.value||""}function Zue(){return"<"}LL.peek=ede;function LL(e,t,n,i){const s=d1(n),r=s==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const c=n.createTracker(i);let u=c.move("![");return u+=c.move(n.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${r}`),u+=c.move(" "+s),u+=c.move(n.safe(e.title,{before:u,after:s,...c.current()})),u+=c.move(s),l()),u+=c.move(")"),o(),u}function ede(){return"!"}OL.peek=tde;function OL(e,t,n,i){const s=e.referenceType,r=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(i);let c=l.move("![");const u=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=d,r(),s==="full"||!u||u!==h?c+=l.move(h+"]"):s==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function tde(){return"!"}BL.peek=nde;function BL(e,t,n){let i=e.value||"",s="`",r=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++r<n.unsafe.length;){const o=n.unsafe[r],l=n.compilePattern(o);let c;if(o.atBreak)for(;c=l.exec(i);){let u=c.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(c.index+1)}}return s+i+s}function nde(){return"`"}function FL(e,t){const n=i1(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}HL.peek=ide;function HL(e,t,n,i){const s=d1(n),r=s==='"'?"Quote":"Apostrophe",o=n.createTracker(i);let l,c;if(FL(e,n)){const d=n.stack;n.stack=[],l=n.enter("autolink");let h=o.move("<");return h+=o.move(n.containerPhrasing(e,{before:h,after:">",...o.current()})),h+=o.move(">"),l(),n.stack=d,h}l=n.enter("link"),c=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(c=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=n.enter(`title${r}`),u+=o.move(" "+s),u+=o.move(n.safe(e.title,{before:u,after:s,...o.current()})),u+=o.move(s),c()),u+=o.move(")"),l(),u}function ide(e,t,n){return FL(e,n)?"<":"["}zL.peek=sde;function zL(e,t,n,i){const s=e.referenceType,r=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(i);let c=l.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=d,r(),s==="full"||!u||u!==h?c+=l.move(h+"]"):s==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function sde(){return"["}function h1(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function rde(e){const t=h1(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function ode(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function GL(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ade(e,t,n,i){const s=n.enter("list"),r=n.bulletCurrent;let o=e.ordered?ode(n):h1(n);const l=e.ordered?o==="."?")":".":rde(n);let c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),GL(n)===o&&d){let h=-1;for(;++h<e.children.length;){const f=e.children[h];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=l),n.bulletCurrent=o;const u=n.containerFlow(e,i);return n.bulletLastUsed=o,n.bulletCurrent=r,s(),u}function lde(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function cde(e,t,n,i){const s=lde(n);let r=n.bulletCurrent||h1(n);t&&t.type==="list"&&t.ordered&&(r=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+r);let o=r.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(i);l.move(r+" ".repeat(o-r.length)),l.shift(o);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),d);return c(),u;function d(h,f,p){return f?(p?"":" ".repeat(o))+h:(p?r:r+" ".repeat(o-r.length))+h}}function ude(e,t,n,i){const s=n.enter("paragraph"),r=n.enter("phrasing"),o=n.containerPhrasing(e,i);return r(),s(),o}const dde=Hg(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function hde(e,t,n,i){return(e.children.some(function(o){return dde(o)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function fde(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}$L.peek=pde;function $L(e,t,n,i){const s=fde(n),r=n.enter("strong"),o=n.createTracker(i),l=o.move(s+s);let c=o.move(n.containerPhrasing(e,{after:s,before:l,...o.current()}));const u=c.charCodeAt(0),d=Am(i.before.charCodeAt(i.before.length-1),u,s);d.inside&&(c=ah(u)+c.slice(1));const h=c.charCodeAt(c.length-1),f=Am(i.after.charCodeAt(0),h,s);f.inside&&(c=c.slice(0,-1)+ah(h));const p=o.move(s+s);return r(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},l+c+p}function pde(e,t,n){return n.options.strong||"*"}function mde(e,t,n,i){return n.safe(e.value,i)}function gde(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function vde(e,t,n){const i=(GL(n)+(n.options.ruleSpaces?" ":"")).repeat(gde(n));return n.options.ruleSpaces?i.slice(0,-1):i}const WL={blockquote:Hue,break:T2,code:Uue,definition:Kue,emphasis:RL,hardBreak:T2,heading:Jue,html:ML,image:LL,imageReference:OL,inlineCode:BL,link:HL,linkReference:zL,list:ade,listItem:cde,paragraph:ude,root:hde,strong:$L,text:mde,thematicBreak:vde};function xde(){return{enter:{table:bde,tableData:I2,tableHeader:I2,tableRow:wde},exit:{codeText:yde,table:_de,tableData:Rv,tableHeader:Rv,tableRow:Rv}}}function bde(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function _de(e){this.exit(e),this.data.inTable=void 0}function wde(e){this.enter({type:"tableRow",children:[]},e)}function Rv(e){this.exit(e)}function I2(e){this.enter({type:"tableCell",children:[]},e)}function yde(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Sde));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Sde(e,t){return t==="|"?t:e}function Cde(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,s=t.stringLength,r=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
112
112
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:l}};function o(p,m,g,x){return u(d(p,g,x),p.align)}function l(p,m,g,x){const b=h(p,g,x),w=u([b]);return w.slice(0,w.indexOf(`
|
|
113
|
-
`))}function c(p,m,g,x){const b=g.enter("tableCell"),w=g.enter("phrasing"),_=g.containerPhrasing(p,{...x,before:r,after:r});return w(),b(),_}function u(p,m){return Bue(p,{align:m,alignDelimiters:i,padding:n,stringLength:s})}function d(p,m,g){const x=p.children;let b=-1;const w=[],_=m.enter("table");for(;++b<x.length;)w[b]=h(x[b],m,g);return _(),w}function h(p,m,g){const x=p.children;let b=-1;const w=[],_=m.enter("tableRow");for(;++b<x.length;)w[b]=c(x[b],p,m,g);return _(),w}function f(p,m,g){let x=WL.inlineCode(p,m,g);return g.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function kde(){return{exit:{taskListCheckValueChecked:N2,taskListCheckValueUnchecked:N2,paragraph:Tde}}}function Ede(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ide}}}function N2(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Tde(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const s=t.children;let r=-1,o;for(;++r<s.length;){const l=s[r];if(l.type==="paragraph"){o=l;break}}o===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function Ide(e,t,n,i){const s=e.children[0],r=typeof e.checked=="boolean"&&s&&s.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(i);r&&l.move(o);let c=WL.listItem(e,t,n,{...i,...l.current()});return r&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(d){return d+o}}function Nde(){return[aue(),Iue(),Pue(),xde(),kde()]}function Dde(e){return{extensions:[lue(),Nue(e),jue(),Cde(e),Ede()]}}const Ade={tokenize:Ode,partial:!0},VL={tokenize:Bde,partial:!0},UL={tokenize:Fde,partial:!0},qL={tokenize:Hde,partial:!0},Pde={tokenize:zde,partial:!0},KL={name:"wwwAutolink",tokenize:Mde,previous:XL},YL={name:"protocolAutolink",tokenize:Lde,previous:QL},Xo={name:"emailAutolink",tokenize:Rde,previous:JL},vo={};function jde(){return{text:vo}}let Oa=48;for(;Oa<123;)vo[Oa]=Xo,Oa++,Oa===58?Oa=65:Oa===91&&(Oa=97);vo[43]=Xo;vo[45]=Xo;vo[46]=Xo;vo[95]=Xo;vo[72]=[Xo,YL];vo[104]=[Xo,YL];vo[87]=[Xo,KL];vo[119]=[Xo,KL];function Rde(e,t,n){const i=this;let s,r;return o;function o(h){return!S_(h)||!JL.call(i,i.previous)||f1(i.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return S_(h)?(e.consume(h),l):h===64?(e.consume(h),c):n(h)}function c(h){return h===46?e.check(Pde,d,u)(h):h===45||h===95||Ji(h)?(r=!0,e.consume(h),c):d(h)}function u(h){return e.consume(h),s=!0,c}function d(h){return r&&s&&cs(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function Mde(e,t,n){const i=this;return s;function s(o){return o!==87&&o!==119||!XL.call(i,i.previous)||f1(i.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ade,e.attempt(VL,e.attempt(UL,r),n),n)(o))}function r(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Lde(e,t,n){const i=this;let s="",r=!1;return o;function o(h){return(h===72||h===104)&&QL.call(i,i.previous)&&!f1(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(cs(h)&&s.length<5)return s+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const f=s.toLowerCase();if(f==="http"||f==="https")return e.consume(h),c}return n(h)}function c(h){return h===47?(e.consume(h),r?u:(r=!0,c)):n(h)}function u(h){return h===null||Nm(h)||zn(h)||yl(h)||Og(h)?n(h):e.attempt(VL,e.attempt(UL,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function Ode(e,t,n){let i=0;return s;function s(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),s):o===46&&i===3?(e.consume(o),r):n(o)}function r(o){return o===null?n(o):t(o)}}function Bde(e,t,n){let i,s,r;return o;function o(u){return u===46||u===95?e.check(qL,c,l)(u):u===null||zn(u)||yl(u)||u!==45&&Og(u)?c(u):(r=!0,e.consume(u),o)}function l(u){return u===95?i=!0:(s=i,i=void 0),e.consume(u),o}function c(u){return s||i||!r?n(u):t(u)}}function Fde(e,t){let n=0,i=0;return s;function s(o){return o===40?(n++,e.consume(o),s):o===41&&i<n?r(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(qL,t,r)(o):o===null||zn(o)||yl(o)?t(o):(e.consume(o),s)}function r(o){return o===41&&i++,e.consume(o),s}}function Hde(e,t,n){return i;function i(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),i):l===38?(e.consume(l),r):l===93?(e.consume(l),s):l===60||l===null||zn(l)||yl(l)?t(l):n(l)}function s(l){return l===null||l===40||l===91||zn(l)||yl(l)?t(l):i(l)}function r(l){return cs(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),i):cs(l)?(e.consume(l),o):n(l)}}function zde(e,t,n){return i;function i(r){return e.consume(r),s}function s(r){return Ji(r)?n(r):t(r)}}function XL(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||zn(e)}function QL(e){return!cs(e)}function JL(e){return!(e===47||S_(e))}function S_(e){return e===43||e===45||e===46||e===95||Ji(e)}function f1(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Gde={tokenize:Xde,partial:!0};function $de(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:qde,continuation:{tokenize:Kde},exit:Yde}},text:{91:{name:"gfmFootnoteCall",tokenize:Ude},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Wde,resolveTo:Vde}}}}function Wde(e,t,n){const i=this;let s=i.events.length;const r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;s--;){const c=i.events[s][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!o||!o._balanced)return n(c);const u=vr(i.sliceSerialize({start:o.end,end:i.now()}));return u.codePointAt(0)!==94||!r.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Vde(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const r={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},r.start),end:Object.assign({},r.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function Ude(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r=0,o;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(r>999||h===93&&!o||h===null||h===91||zn(h))return n(h);if(h===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return s.includes(vr(i.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return zn(h)||(o=!0),r++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),r++,u):u(h)}}function qde(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r,o=0,l;return c;function c(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(m)}function d(m){if(o>999||m===93&&!l||m===null||m===91||zn(m))return n(m);if(m===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return r=vr(i.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return zn(m)||(l=!0),o++,e.consume(m),m===92?h:d}function h(m){return m===91||m===92||m===93?(e.consume(m),o++,d):d(m)}function f(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),s.includes(r)||s.push(r),_n(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function Kde(e,t,n){return e.check(zh,t,e.attempt(Gde,t,n))}function Yde(e){e.exit("gfmFootnoteDefinition")}function Xde(e,t,n){const i=this;return _n(e,s,"gfmFootnoteDefinitionIndent",5);function s(r){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(r):n(r)}}function Qde(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:r,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(o,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let u=c;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[c][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[c][1].end)},h={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[c][1].start)},f=[["enter",d,l],["enter",o[u][1],l],["exit",o[u][1],l],["enter",h,l]],p=l.parser.constructs.insideSpan.null;p&&Bs(f,f.length,0,Bg(p,o.slice(u+1,c),l)),Bs(f,f.length,0,[["exit",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",d,l]]),Bs(o,u-1,c-u+3,f),c=u+f.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function r(o,l,c){const u=this.previous,d=this.events;let h=0;return f;function f(m){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(m):(o.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const g=Ic(u);if(m===126)return h>1?c(m):(o.consume(m),h++,p);if(h<2&&!n)return c(m);const x=o.exit("strikethroughSequenceTemporary"),b=Ic(m);return x._open=!b||b===2&&!!g,x._close=!g||g===2&&!!b,l(m)}}}class Jde{constructor(){this.map=[]}add(t,n,i){Zde(this,t,n,i)}consume(t){if(this.map.sort(function(r,o){return r[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const r of s)t.push(r);s=i.pop()}this.map.length=0}}function Zde(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function ehe(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const r=i.length-1;i[r]=i[r]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function the(){return{flow:{null:{name:"table",tokenize:nhe,resolveAll:ihe}}}}function nhe(e,t,n){const i=this;let s=0,r=0,o;return l;function l(A){let P=i.events.length-1;for(;P>-1;){const L=i.events[P][1].type;if(L==="lineEnding"||L==="linePrefix")P--;else break}const I=P>-1?i.events[P][1].type:null,E=I==="tableHead"||I==="tableRow"?C:c;return E===C&&i.parser.lazy[i.now().line]?n(A):E(A)}function c(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(o=!0,r+=1),d(A)}function d(A){return A===null?n(A):Ot(A)?r>1?(r=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),p):n(A):fn(A)?_n(e,d,"whitespace")(A):(r+=1,o&&(o=!1,s+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),h(A)))}function h(A){return A===null||A===124||zn(A)?(e.exit("data"),d(A)):(e.consume(A),A===92?f:h)}function f(A){return A===92||A===124?(e.consume(A),h):h(A)}function p(A){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(A):(e.enter("tableDelimiterRow"),o=!1,fn(A)?_n(e,m,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):m(A))}function m(A){return A===45||A===58?x(A):A===124?(o=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),g):k(A)}function g(A){return fn(A)?_n(e,x,"whitespace")(A):x(A)}function x(A){return A===58?(r+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):A===45?(r+=1,b(A)):A===null||Ot(A)?y(A):k(A)}function b(A){return A===45?(e.enter("tableDelimiterFiller"),w(A)):k(A)}function w(A){return A===45?(e.consume(A),w):A===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(A))}function _(A){return fn(A)?_n(e,y,"whitespace")(A):y(A)}function y(A){return A===124?m(A):A===null||Ot(A)?!o||s!==r?k(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):k(A)}function k(A){return n(A)}function C(A){return e.enter("tableRow"),T(A)}function T(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),T):A===null||Ot(A)?(e.exit("tableRow"),t(A)):fn(A)?_n(e,T,"whitespace")(A):(e.enter("data"),N(A))}function N(A){return A===null||A===124||zn(A)?(e.exit("data"),T(A)):(e.consume(A),A===92?R:N)}function R(A){return A===92||A===124?(e.consume(A),N):N(A)}}function ihe(e,t){let n=-1,i=!0,s=0,r=[0,0,0,0],o=[0,0,0,0],l=!1,c=0,u,d,h;const f=new Jde;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(l=!1,c!==0&&(D2(f,t,c,u,d),d=void 0,c=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(i=!0,h=void 0,r=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",d,t]])),s=m.type==="tableDelimiterRow"?2:d?3:1):s&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(r[1]!==0&&(o[0]=o[1],h=Tf(f,t,r,s,void 0,h),r=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(i?i=!1:(r[1]!==0&&(o[0]=o[1],h=Tf(f,t,r,s,void 0,h)),r=o,o=[r[1],n,0,0])):m.type==="tableHead"?(l=!0,c=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(c=n,r[1]!==0?(o[0]=o[1],h=Tf(f,t,r,s,n,h)):o[1]!==0&&(h=Tf(f,t,o,s,n,h)),s=0):s&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&D2(f,t,c,u,d),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=ehe(t.events,n))}return e}function Tf(e,t,n,i,s,r){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(r.end=Object.assign({},Kl(t.events,n[0])),e.add(n[0],0,[["exit",r,t]]));const c=Kl(t.events,n[1]);if(r={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",r,t]]),n[2]!==0){const u=Kl(t.events,n[2]),d=Kl(t.events,n[3]),h={type:l,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",h,t]]),i!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;e.add(m,g,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return s!==void 0&&(r.end=Object.assign({},Kl(t.events,s)),e.add(s,0,[["exit",r,t]]),r=void 0),r}function D2(e,t,n,i,s){const r=[],o=Kl(t.events,n);s&&(s.end=Object.assign({},o),r.push(["exit",s,t])),i.end=Object.assign({},o),r.push(["exit",i,t]),e.add(n+1,0,r)}function Kl(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const she={name:"tasklistCheck",tokenize:ohe};function rhe(){return{text:{91:she}}}function ohe(e,t,n){const i=this;return s;function s(c){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),r)}function r(c){return zn(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return Ot(c)?t(c):fn(c)?e.check({tokenize:ahe},t,n)(c):n(c)}}function ahe(e,t,n){return _n(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function lhe(e){return oL([jde(),$de(),Qde(e),the(),rhe()])}const che={};function ZL(e){const t=this,n=e||che,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),r=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(lhe(n)),r.push(Nde()),o.push(Dde(n))}function uhe(e){const[t,n]=v.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),i=v.useRef(null),s=v.useRef(null),r=v.useRef(null),o=v.useRef(null),l=v.useRef(!0),c=v.useRef(null),u=FF(),d=v.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:r,backdropRef:i,internalBackdropRef:s,positionerRef:o,allowMouseUpTriggerRef:l,initialCursorPointRef:c,rootId:u}),[t,u]);return a.jsx(HF.Provider,{value:d,children:a.jsx(zF.Provider,{value:void 0,children:a.jsx(GF,{...e})})})}const A2=500,dhe=v.forwardRef(function(t,n){const{render:i,className:s,style:r,...o}=t,{setAnchor:l,actionsRef:c,internalBackdropRef:u,backdropRef:d,positionerRef:h,allowMouseUpTriggerRef:f,initialCursorPointRef:p,rootId:m}=$F(!1),{store:g}=WF(!1),x=g.useState("open"),b=g.useState("disabled"),w=v.useRef(null),_=v.useRef(null),y=vx(),k=vx(),C=v.useRef(!1),T=v.useRef(null);function N(M,j,H){const F=H.type.startsWith("touch");p.current={x:M,y:j},l({getBoundingClientRect(){return DOMRect.fromRect({width:F?10:0,height:F?10:0,x:M,y:j})}}),C.current=!1,c.current?.setOpen(!0,xx(XF,H)),k.start(A2,()=>{C.current=!0})}function R(M){if(b)return;f.current=!0,qF(M),N(M.clientX,M.clientY,M.nativeEvent);const j=DS(w.current);T.current?.abort();const H=new AbortController;T.current=H,j.addEventListener("mouseup",F=>{if(f.current=!1,!C.current)return;k.clear(),C.current=!1;const X=AS(F);Qh(h.current,X)||m&&X&&KF(X)===m||c.current?.setOpen(!1,xx(YF,F))},{once:!0,signal:H.signal})}function A(){y.clear(),_.current=null}function P(M){if(b){A();return}if(f.current=!1,M.touches.length!==1){A();return}M.stopPropagation();const j=M.touches[0],H={x:j.clientX,y:j.clientY};_.current=H,y.start(A2,()=>{N(H.x,H.y,M.nativeEvent)})}function I(M){if(M.touches.length!==1){A();return}if(y.isStarted()&&_.current){const j=M.touches[0],H=10,F=Math.abs(j.clientX-_.current.x),X=Math.abs(j.clientY-_.current.y);(F>H||X>H)&&A()}}return v.useEffect(()=>()=>{T.current?.abort()},[]),v.useEffect(()=>{function M(H){if(b)return;const X=AS(H);(Qh(w.current,X)||Qh(u.current,X)||Qh(d.current,X))&&H.preventDefault()}const j=DS(w.current);return VF(j,"contextmenu",M)},[d,b,u]),Mc("div",t,{state:{open:x},ref:[w,n],props:[{onContextMenu:R,onTouchStart:P,onTouchMove:I,onTouchEnd:A,onTouchCancel:A,style:{WebkitTouchCallout:"none"}},o],stateAttributesMapping:UF})}),ao=uhe;function lo(e){return a.jsx(dhe,{"data-slot":"context-menu-trigger",...e})}function co({children:e,className:t,zIndex:n,...i}){return a.jsxs($D,{children:[a.jsx(QF,{className:"fixed inset-0 z-40","data-enso-float":"",style:n===void 0?void 0:{zIndex:n-1}}),a.jsx(WD,{className:"z-50","data-slot":"context-menu-positioner",style:n===void 0?void 0:{zIndex:n},children:a.jsx(VD,{className:te(UD,t),"data-slot":"context-menu-popup",...i,children:a.jsx("div",{className:"max-h-(--available-height) w-full overflow-y-auto p-1.5",children:e})})})]})}function Mt({className:e,variant:t="default",...n}){return a.jsx(JF,{className:te(qD,e),"data-slot":"context-menu-item","data-variant":t,...n})}function lh(e){return a.jsx(KD,{className:"mx-2 my-1 h-px bg-border","data-slot":"context-menu-separator",...e})}function e5(e){return a.jsx(ZF,{"data-slot":"context-menu-sub",...e,closeParentOnEsc:!1})}function t5({className:e,children:t,...n}){return a.jsxs(e8,{className:te(qD,"data-popup-open:bg-accent data-popup-open:text-accent-foreground",e),"data-slot":"context-menu-sub-trigger",...n,children:[t,a.jsx(Yn,{className:"-me-0.5 ms-auto opacity-80"})]})}function n5({children:e,className:t,...n}){return a.jsx($D,{children:a.jsx(WD,{align:"start",alignOffset:-5,className:"z-50","data-slot":"context-menu-sub-positioner",side:"inline-end",sideOffset:0,children:a.jsx(VD,{className:te(UD,t),"data-slot":"context-menu-sub-popup",...n,children:a.jsx("div",{className:"max-h-(--available-height) w-full overflow-y-auto p-1.5",children:e})})})})}function hhe(e){const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)}function C_(e){return/\.(md|markdown|mdx)$/i.test(e)}function sc(){const e=navigator.userAgent;return e.includes("Mac")?"Reveal in Finder":e.includes("Linux")?"Open Containing Folder":"Reveal in File Explorer"}function Gg({target:e,local:t,children:n,onNewFile:i,onNewFolder:s,onView:r,onPreview:o,onBrowser:l,onCopyPath:c,onCopyRel:u,onCopyFile:d,onReveal:h,onRename:f,onDelete:p,onSend:m}){const{t:g}=re(),x=e.kind==="file"?hhe(e.rel):e.kind==="dir"?e.rel:"",b=e.kind==="blank"?"":e.rel,w=e.kind==="file",_=e.kind!=="blank",y=e.kind!=="blank";return a.jsxs(ao,{children:[a.jsx(lo,{render:n}),a.jsxs(co,{className:"min-w-52",children:[a.jsx(Mt,{onClick:()=>i(x),children:g("New File")}),a.jsx(Mt,{onClick:()=>s(x),children:g("New Folder")}),_&&a.jsxs(a.Fragment,{children:[a.jsx(lh,{}),a.jsx(Mt,{onClick:()=>c(b),children:g("Copy Path")}),a.jsx(Mt,{onClick:()=>u(b),children:g("Copy Relative Path")}),w&&t&&d&&a.jsx(Mt,{onClick:()=>d(b),children:g("Copy")})]}),w&&a.jsxs(a.Fragment,{children:[r&&a.jsx(Mt,{onClick:()=>r(b),children:g("View File")}),t&&l&&a.jsx(Mt,{onClick:()=>l(b),children:g("Open in Browser")}),C_(b)&&o&&a.jsx(Mt,{onClick:()=>o(b),children:g("Open Markdown Preview")})]}),_&&t&&h&&a.jsx(Mt,{onClick:()=>h(b),children:g(sc())}),y&&f&&p&&(e.kind==="file"||e.kind==="dir")&&a.jsxs(a.Fragment,{children:[a.jsx(lh,{}),a.jsx(Mt,{onClick:()=>f(e.rel,e.name),children:g("Rename")}),a.jsx(Mt,{variant:"destructive",onClick:()=>p(e.rel,e.name),children:g("Delete")})]}),w&&m&&a.jsx(Mt,{onClick:()=>m(b,e.kind==="file"?e.name:""),children:g("Send to conversation")})]})]})}function P2({image:e,onClose:t}){const{t:n}=re();return a.jsx(Nn,{open:e!==null,onOpenChange:i=>{i||t()},children:a.jsxs(Dn,{className:"max-w-4xl",children:[a.jsxs(An,{children:[a.jsx(Pn,{children:n("Image preview")}),a.jsx(Is,{className:"break-all",children:e?.rel})]}),a.jsx(Xn,{className:"max-h-[70vh]",children:e&&a.jsx("img",{src:e.dataUrl,alt:e.rel,className:"mx-auto max-h-[65vh] max-w-full object-contain"})}),a.jsx(Bi,{children:a.jsx(ye,{variant:"outline",onClick:t,children:n("Close")})})]})})}const fhe="position:fixed;left:0;top:0;width:800px;height:600px;overflow:hidden;opacity:0;pointer-events:none;visibility:hidden;contain:strict;";function phe(e){return!e.includes("<svg")||/\bfocusable=/.test(e)?e:e.replace("<svg",'<svg focusable="false" tabindex="-1"')}let If=null,Nf=null,j2=Promise.resolve(),mhe=0;async function ghe(){return Nf||(If||(If=n8(()=>import("./mermaid.core-DU532gMP.js").then(e=>e.cb),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>(Nf=e.default,Nf)).catch(e=>{throw If=null,e})),If)}function vhe(e){const t=j2.then(e,e);return j2=t.then(()=>{},()=>{}),t}async function xhe(e,t){return vhe(async()=>{const n=await ghe();n.initialize({startOnLoad:!1,theme:t,securityLevel:"loose",fontFamily:"inherit",suppressErrorRendering:!0,flowchart:{htmlLabels:!1,useMaxWidth:!0}});const i=`ensoMermaid${++mhe}`,s=document.createElement("div");s.setAttribute("aria-hidden","true"),s.style.cssText=fhe,document.body.appendChild(s);try{const{svg:r}=await n.render(i,e,s);return phe(r)}finally{s.remove(),document.getElementById(i)?.remove(),document.getElementById(`d${i}`)?.remove()}})}const Df=.1,Af=.1;function bhe({code:e,streaming:t=!1,className:n}){const{t:i}=re(),s=v.useRef(null),[r,o]=v.useState(null),[l,c]=v.useState(null),[u,d]=v.useState(1),[h,f]=v.useState({x:0,y:0}),[p,m]=v.useState(!1),[g,x]=v.useState(!1);pw(g);const b=v.useRef({x:0,y:0}),w=v.useRef({x:0,y:0}),_=v.useRef(null),y=v.useRef(!1),C=t8()==="dark"?"dark":"default";v.useEffect(()=>{if(t){o(null),c(null);return}let X=!1;return(async()=>{if(!e.trim()){o(null),c(null);return}try{const $=await xhe(e,C);X||(o($),c(null),d(1),f({x:0,y:0}))}catch($){X||(c($ instanceof Error?$.message:"Mermaid render failed"),o(null))}})(),()=>{X=!0}},[e,C,t]);const T=v.useCallback(()=>d(X=>X+Df),[]),N=v.useCallback(()=>d(X=>Math.max(X-Df,Af)),[]),R=v.useCallback(()=>{d(1),f({x:0,y:0})},[]),A=v.useCallback(()=>{x(!1),d(1),f({x:0,y:0})},[]),P=v.useCallback(()=>{x(!0),requestAnimationFrame(()=>{const X=_.current?.querySelector("svg"),B=_.current?.getBoundingClientRect();if(!X||!B?.width||!B.height)return;const $=X.getBoundingClientRect(),W=24,z=Math.min((B.width-W*2)/$.width,(B.height-W*2)/$.height);d(Math.round(z*100)/100),f({x:0,y:0})})},[]),I=v.useCallback(X=>{if(!g)return;X.preventDefault();const B=X.deltaY>0?-Df:Df;d($=>Math.round(Math.max($+B,Af)*100)/100)},[g]),E=v.useCallback(X=>{!g||X.button!==0||(m(!0),y.current=!1,b.current={x:X.clientX,y:X.clientY},w.current={...h})},[g,h]),L=v.useCallback(X=>{if(!p)return;const B=X.clientX-b.current.x,$=X.clientY-b.current.y;(Math.abs(B)>2||Math.abs($)>2)&&(y.current=!0),f({x:w.current.x+B,y:w.current.y+$})},[p]),M=v.useCallback(()=>m(!1),[]),j=v.useCallback(X=>{X.stopPropagation()},[]),H=v.useCallback(()=>{y.current||A()},[A]),F=X=>{const B=X==="sm"?"h-6 w-6":"h-7 w-7",$=X==="sm"?"h-3.5 w-3.5":"h-4 w-4",W=X==="sm"?"h-6 min-w-[2.5rem]":"h-7 min-w-[3rem]";return a.jsxs("div",{className:"flex items-center gap-1 rounded-md border border-border bg-background/95 p-1 shadow-sm",children:[a.jsx("button",{type:"button",onClick:T,className:te("flex items-center justify-center rounded text-sm transition-colors hover:bg-accent hover:text-accent-foreground",B),title:i("Zoom in"),children:a.jsx(es,{className:$})}),a.jsxs("button",{type:"button",onClick:R,className:te("flex items-center justify-center rounded text-xs transition-colors hover:bg-accent hover:text-accent-foreground",W),title:i("Reset zoom"),children:[Math.round(u*100),"%"]}),a.jsx("button",{type:"button",onClick:N,disabled:u<=Af,className:te("flex items-center justify-center rounded text-sm transition-colors hover:bg-accent hover:text-accent-foreground",B,u<=Af&&"cursor-not-allowed opacity-50"),title:i("Zoom out"),children:a.jsx(bx,{className:$})}),u!==1&&a.jsx("button",{type:"button",onClick:R,className:te("flex items-center justify-center rounded text-sm transition-colors hover:bg-accent hover:text-accent-foreground",B),title:i("Fit to original size"),children:a.jsx(mw,{className:$})}),a.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),g?a.jsx("button",{type:"button",onClick:A,className:te("flex items-center justify-center rounded text-sm transition-colors hover:bg-accent hover:text-accent-foreground",B),title:i("Exit fullscreen"),children:a.jsx(gR,{className:$})}):a.jsx("button",{type:"button",onClick:P,className:te("flex items-center justify-center rounded text-sm transition-colors hover:bg-accent hover:text-accent-foreground",B),title:i("View fullscreen"),children:a.jsx(mR,{className:$})})]})};return l?a.jsxs("div",{className:te("overflow-x-auto rounded-lg border border-destructive/50",n),children:[a.jsx("div",{className:"flex items-center gap-2 border-b border-destructive/30 bg-destructive/10 px-3 py-2 text-xs text-destructive",children:a.jsx("span",{children:i("Mermaid render error")})}),a.jsx("pre",{className:"p-4 text-sm",children:a.jsx("code",{className:"block font-mono leading-relaxed text-muted-foreground",children:e})}),a.jsx("div",{className:"border-t border-border bg-muted/30 px-3 py-2 text-xs text-muted-foreground",children:l})]}):r?a.jsxs("div",{className:te("relative rounded-lg border border-border bg-muted/30",n),style:{userSelect:"none",WebkitUserSelect:"none"},children:[a.jsx("div",{ref:s,className:te("max-h-[min(50vh,20rem)] overflow-hidden [overflow-anchor:none]",g&&(p?"cursor-grabbing":"cursor-grab")),onWheel:I,onMouseDown:E,onMouseMove:L,onMouseUp:M,onMouseLeave:M,onDoubleClick:g?void 0:P,children:a.jsx("div",{className:"origin-center transition-transform duration-100 ease-out",style:{transform:`translate(${h.x}px, ${h.y}px) scale(${u})`},children:a.jsx("div",{className:"p-4",dangerouslySetInnerHTML:{__html:r}})})}),a.jsx("div",{className:"absolute right-2 bottom-2",children:F("sm")}),g&&a.jsxs("div",{className:"fixed inset-0 flex select-none flex-col bg-background",style:{zIndex:Rn.TOAST},"data-enso-float":"",onClick:H,onKeyDown:X=>{X.key==="Escape"&&A()},children:[a.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-border bg-muted/30 px-4 py-2",onClick:X=>X.stopPropagation(),onKeyDown:X=>X.stopPropagation(),children:[a.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:i("Mermaid preview")}),a.jsx("button",{type:"button",onClick:A,className:"flex h-7 w-7 items-center justify-center rounded-md border border-border bg-background/95 text-sm transition-colors hover:bg-accent hover:text-accent-foreground",title:i("Exit fullscreen"),children:a.jsx(yn,{className:"h-4 w-4"})})]}),a.jsxs("div",{className:"relative min-h-0 flex-1",children:[a.jsx("div",{ref:_,className:te("absolute inset-0 flex select-none items-center justify-center overflow-hidden",p?"cursor-grabbing":"cursor-grab"),onWheel:I,onMouseDown:E,onMouseMove:L,onMouseUp:M,onMouseLeave:M,onClick:j,onKeyDown:j,children:a.jsx("div",{className:"origin-center transition-transform duration-100 ease-out",style:{transform:`translate(${h.x}px, ${h.y}px) scale(${u})`},children:a.jsx("div",{className:"p-4",dangerouslySetInnerHTML:{__html:r}})})}),a.jsx("div",{className:"absolute right-4 bottom-4",children:F("md")})]})]})]}):a.jsx("div",{className:te("flex items-center justify-center rounded-lg border border-border bg-muted/30 p-8",n),children:a.jsx("div",{className:"text-sm text-muted-foreground",children:i("Loading Mermaid diagram...")})})}const _he=/^[a-z][a-z\d+.-]*:/i,whe=/^(?:https?|ircs?|mailto|xmpp):/i,yhe=/^(?:[a-z]:[\\/]|\\\\)/i;function i5(e){const t=/^(.*?):(\d+)(?:-\d+)?$/.exec(e);if(!t)return{path:e};const n=Number(t[2]);return n>0?{path:t[1],line:n}:{path:t[1]}}function She(e){try{return decodeURIComponent(e)}catch{return null}}function Che(e){const t=e.search(/[?#]/);return t<0?e:e.slice(0,t)}function khe(e){try{const t=new URL(e);if(t.protocol!=="file:")return null;let n=decodeURIComponent(t.pathname);return n?(t.hostname&&t.hostname.toLowerCase()!=="localhost"?n=`//${t.hostname}${n}`:/^\/[a-z]:[\\/]/i.test(n)&&(n=n.slice(1)),n):null}catch{return null}}function R2(e){const t=e.trim();if(!t||t.startsWith("#")||t.startsWith("?"))return{kind:"external"};if(/^file:/i.test(t)){const i=khe(t);return i?{kind:"local",path:i}:{kind:"blocked"}}if(whe.test(t)||t.startsWith("//"))return{kind:"external"};const n=She(Che(t));return n==null||n.includes("\0")?{kind:"blocked"}:_he.test(n)&&!yhe.test(n)?{kind:"blocked"}:{kind:"local",path:n}}function Mv(e){const t=e.replace(/\\/g,"/"),n=/^[a-z]:\//i.test(t)||t.startsWith("//");if(!n&&!t.startsWith("/"))return null;const i=/^[a-z]:\//i.test(t)?t.slice(0,2).toLowerCase():null,r=(i||n?t.slice(2):t.slice(1)).split("/"),o=[];for(const l of r)if(!(!l||l==="."))if(l===".."){if(o.length===0)return null;o.pop()}else o.push(l);return i?{value:`${i}/${o.join("/")}`.replace(/\/$/,""),windows:!0}:n?{value:`//${o.join("/")}`,windows:!0}:{value:`/${o.join("/")}`.replace(/\/$/,"")||"/",windows:!1}}function Lv(e){const t=e.replace(/\\/g,"/"),n=[];for(const i of t.split("/"))if(!(!i||i==="."))if(i===".."){if(n.length===0)return null;n.pop()}else{if(i.includes("\0"))return null;n.push(i)}return n.join("/")}function p1(e,t){if(!t)return Mv(e)?null:Lv(e);const n=Mv(t);if(!n)return null;const i=n.windows&&/^\/[a-z]:[\\/]/i.test(e)?e.slice(1):e,s=Mv(i);if(!s)return i===e?Lv(e):null;if(s.windows!==n.windows)return null;const r=n.value.toLowerCase(),o=s.value.toLowerCase();if(o===r)return"";const l=n.value.endsWith("/")?n.value:`${n.value}/`;return o.startsWith(l.toLowerCase())?Lv(s.value.slice(l.length)):null}function Ehe(e){if(!e)return;const t=e.split(":").at(-1)??e,n=/\.(\w+)$/.exec(t)?.[1];return n||(/^[\w-]+$/.test(e)?e:void 0)}const The={note:{label:"Note",border:"border-blue-500",text:"text-blue-600 dark:text-blue-400"},tip:{label:"Tip",border:"border-green-500",text:"text-green-600 dark:text-green-400"},important:{label:"Important",border:"border-purple-500",text:"text-purple-600 dark:text-purple-400"},warning:{label:"Warning",border:"border-amber-500",text:"text-amber-600 dark:text-amber-400"},caution:{label:"Caution",border:"border-red-500",text:"text-red-600 dark:text-red-400"}};function Ihe(){return e=>{Qc(e,"blockquote",t=>{const n=t.children[0];if(n?.type!=="paragraph")return;const i=n.children[0];if(i?.type!=="text")return;const s=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*/i.exec(i.value);if(!s)return;i.value=i.value.slice(s[0].length),i.value||n.children.shift();const r=s[1].toLowerCase();t.data={...t.data,hProperties:{...t.data?.hProperties,"data-alert":r,dataAlert:r}}})}}const Nhe=/^(?:[\w.@-]+\/)+[\w.@-]+\.\w{1,8}(?::\d+(?:-\d+)?)?$|^[\w.-]+\.\w{1,8}:\d+(?:-\d+)?$/,Dhe=[ZL,Ihe],gd=v.createContext({text:"",streaming:!1,searchQuery:"",activeNth:-1}),Jc=v.createContext(null);function s5(e,t){switch(e){case"invalid-path":return t("The link is outside the current workspace.");case"unsupported":return t("This link is not available on the local computer.");case"unavailable":return t("The linked file or folder is unavailable.");case"unsupported-viewer":return t("This file format cannot be previewed inside EnsoCode.");case"too-large":return t("The image is too large to preview.");case"invalid-application":return t("The selected application path is invalid.");case"application-unavailable":return t("VS Code is unavailable. Install it or select another application.");default:return e}}async function Ahe(e,t,n,i){try{const s=p1(t,e.cwd);if(s===null)throw new Error("invalid-path");const r=await window.electronAPI.workspaceFiles.openContext({conversationId:e.conversationId,projectId:e.projectId,rel:s,itemId:n});if(!r.ok)throw new Error(r.error)}catch(s){Ze({type:"error",title:i("Could not open local file link"),description:s5(s instanceof Error?s.message:String(s),i)})}}function r5({context:e,file:t,children:n}){const{t:i}=re(),r=Te(o=>o.contextMenuOpen).filter(o=>o.enabled);return r.length===0?n:a.jsxs(ao,{children:[a.jsx(lo,{render:n,onContextMenu:o=>o.stopPropagation()}),a.jsx(co,{className:"min-w-48",children:r.map(o=>{const l=o.target==="application"?(o.applicationPath.split(/[/\\]/).at(-1)??o.applicationPath).replace(/\.(?:exe|app)$/i,""):"VS Code";return a.jsx(Mt,{closeOnClick:!0,onClick:()=>{Ahe(e,t,o.id,i)},children:o.target==="reveal"?i(sc()):i("Open in {{app}}",{app:l})},o.id)})})]})}function o5(e){const t=R2(e);if(t.kind==="external")return{classification:t,line:void 0};const n=i5(t.kind==="local"?t.path:e);return n.line&&/\.[\w]+$/.test(n.path)?{classification:R2(n.path),line:n.line}:{classification:t,line:void 0}}function Phe(e){const t=e?.children;if(t?.length!==1)return null;const n=t[0],i=n.tagName==="code"&&n.children?.length===1?n.children[0]:null;return i?.type==="text"&&typeof i.value=="string"?i.value:null}function jhe({children:e,href:t,node:n}){const{t:i}=re(),s=v.useContext(Jc),[r,o]=v.useState(null),{classification:l,line:c}=o5(t??""),u=l.kind==="local"&&s!==null,d=u?Phe(n):null,h=x=>{Ze({type:"error",title:i("Could not open local file link"),description:s5(x,i)})},f=async x=>{if(!s||l.kind!=="local")return;const b=p1(l.path,s.cwd);if(b==null){h("invalid-path");return}if(!x&&c){Np(s.conversationId,b,c);return}const w={conversationId:s.conversationId,projectId:s.projectId,rel:b};try{if(x){const y=await window.electronAPI.workspaceFiles.reveal(w);y.ok||h(y.error);return}const _=await window.electronAPI.workspaceFiles.open(w);if(!_.ok){h(_.error);return}if(_.target==="handled")return;if(_.viewer==="image"){const y=ioe(_.rel);if(!y){h("unsupported-viewer");return}const k=await window.electronAPI.workspaceFiles.readImage({...w,rel:_.rel});if(!k.ok){h(k.error);return}const C=`data:${y};base64,`;if(!k.dataUrl.startsWith(C)||!/^[A-Za-z0-9+/=]+$/.test(k.dataUrl.slice(C.length))){h("unsupported-viewer");return}o({rel:_.rel,dataUrl:k.dataUrl})}else _.viewer==="markdown"?Np(s.conversationId,_.rel,void 0,"markdown"):Np(s.conversationId,_.rel)}catch(_){h(_ instanceof Error?_.message:String(_))}},p=x=>{l.kind!=="external"&&(x.preventDefault(),u&&f(!1))},m=a.jsx("a",{href:l.kind==="external"&&t||void 0,className:te("text-brand underline decoration-brand/40 underline-offset-2 transition-colors hover:decoration-brand",u&&"cursor-pointer break-all"),role:u?"link":void 0,tabIndex:u?0:void 0,...l.kind==="external"?{target:"_blank",rel:"noreferrer"}:{},onClick:p,onKeyDown:x=>{u&&x.key==="Enter"&&(x.preventDefault(),f(!1))},children:d??e});if(!u||l.kind!=="local"||!s)return m;const g=a.jsx(r5,{context:s,file:l.path,children:m});return d!==null?a.jsxs("span",{className:"inline-flex max-w-full items-center gap-0.5 rounded-[5px] border border-border/70 bg-muted/70 py-px pr-0.5 pl-1 align-baseline font-mono text-xs",children:[g,a.jsx("button",{type:"button",className:"inline-flex shrink-0 rounded-[3px] p-0.5 text-muted-foreground hover:bg-background hover:text-foreground","aria-label":i(sc()),title:i(sc()),onClick:()=>{f(!0)},children:a.jsx(qi,{className:"h-3 w-3"})}),a.jsx(P2,{image:r,onClose:()=>o(null)})]}):a.jsxs("span",{className:"inline",children:[g,a.jsx("button",{type:"button",className:"ml-1 inline-flex rounded p-0.5 align-middle text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":i(sc()),title:i(sc()),onClick:()=>{f(!0)},children:a.jsx(qi,{className:"h-3.5 w-3.5"})}),a.jsx(P2,{image:r,onClose:()=>o(null)})]})}function Rhe(e,t,n=!0){const i=NL(e);return i||t!=="href"?i:n&&o5(e).classification.kind==="local"?e:""}const a5={p:({children:e})=>{const{searchQuery:t,activeNth:n}=v.useContext(gd);return a.jsx("p",{className:"my-2 leading-[1.7] first:mt-0 last:mb-0",children:t.trim()?_3(e,t,n,{n:0}):e})},a:jhe,ul:({children:e})=>a.jsx("ul",{className:"my-2 list-disc pl-5 space-y-1 marker:text-muted-foreground",children:e}),ol:({children:e})=>a.jsx("ol",{className:"my-2 list-decimal pl-5 space-y-1 marker:text-muted-foreground",children:e}),h1:({children:e})=>a.jsx("h1",{className:"mt-3 mb-1.5 text-base font-semibold",children:e}),h2:({children:e})=>a.jsx("h2",{className:"mt-3 mb-1.5 text-base font-semibold",children:e}),h3:({children:e})=>a.jsx("h3",{className:"mt-2 mb-1 text-sm font-semibold",children:e}),blockquote:({children:e,node:t})=>{const{t:n}=re(),i=t?.properties,s=String(i?.dataAlert??i?.["data-alert"]??""),r=The[s];return r?a.jsxs("blockquote",{className:te("my-1.5 border-l-2 pl-3",r.border),children:[a.jsx("p",{className:te("mt-1.5 mb-0.5 text-xs font-semibold",r.text),children:n(r.label)}),e]}):a.jsx("blockquote",{className:"my-2 border-l-2 border-brand/30 pl-3 text-muted-foreground",children:e})},code:({children:e})=>{const{t}=re(),n=v.useContext(Jc),i=typeof e=="string"?e:"";if(i&&Nhe.test(i)){const{path:s,line:r}=i5(i),o=()=>{if(!n){navigator.clipboard.writeText(s);return}const c=p1(s,n.cwd);if(!c){Ze({type:"error",title:t("Could not open local file link"),description:t("The link is outside the current workspace.")});return}Np(n.conversationId,c,r)},l=a.jsx("button",{type:"button",onClick:o,title:i,className:"inline-flex max-w-full items-center rounded-[5px] border border-border/70 bg-muted/70 px-1 py-px align-baseline font-mono text-xs text-brand transition-colors hover:bg-muted",children:a.jsx("span",{className:"truncate",children:i})});return n?a.jsx(r5,{context:n,file:s,children:l}):l}return a.jsx("code",{className:"rounded-[5px] border border-border/70 bg-muted/70 px-1 py-px font-mono text-xs",children:e})},pre:({node:e})=>{const{streaming:t}=v.useContext(gd),n=e?.children?.[0],i=n&&"properties"in n?n.properties:void 0,s=/language-(\S+)/.exec(i?.className?.join(" ")??"")?.[1],r=n&&"children"in n?n.children?.[0]:void 0,l=(r&&"value"in r?String(r.value):"").replace(/\n$/,""),c=Ehe(s);return c?.toLowerCase()==="mermaid"?a.jsx(bhe,{code:l,streaming:t}):a.jsx(i_,{code:l,language:c,streaming:t})},table:({children:e,node:t})=>{const{text:n,streaming:i}=v.useContext(gd),s=t?.position?.start?.offset,r=t?.position?.end?.offset,o=s!==void 0&&r!==void 0?n.slice(s,r):null;return a.jsxs("div",{className:"group/table relative my-2 min-w-0 max-w-full overflow-x-auto overscroll-x-contain [-webkit-overflow-scrolling:touch]",children:[a.jsx("table",{className:"w-max min-w-full border-collapse text-xs [overflow-wrap:normal]",children:e}),o&&!i&&a.jsx(Xy,{text:o,className:"absolute top-0.5 right-0.5 rounded-md border bg-background/80 p-1.5 text-muted-foreground opacity-0 backdrop-blur transition-opacity group-hover/table:opacity-100"})]})},th:({children:e})=>a.jsx("th",{className:"whitespace-nowrap border-b border-border px-2 py-1 text-left font-medium",children:e}),td:({children:e})=>a.jsx("td",{className:"whitespace-nowrap border-b border-border/50 px-2 py-1",children:e}),hr:()=>a.jsx("hr",{className:"my-3 border-border"})};function Ts({text:e,streaming:t=!1,searchQuery:n="",activeNth:i=-1}){const r=v.useContext(Jc)!==null,o=v.useMemo(()=>({text:e,streaming:t,searchQuery:n,activeNth:i}),[e,t,n,i]),l=v.useMemo(()=>(c,u)=>Rhe(c,u,r),[r]);return a.jsx(gd.Provider,{value:o,children:a.jsx("div",{className:t?"t-stream-live":void 0,children:a.jsx(IL,{remarkPlugins:Dhe,components:a5,urlTransform:l,children:e})})})}function k_({hits:e,defaultOpen:t=!1}){const{t:n}=re();return e.length===0?a.jsx("p",{className:"px-3 py-2 text-xs text-muted-foreground",children:n("No results")}):a.jsx("ul",{className:"divide-y divide-border/60",children:e.map(i=>a.jsx(Lhe,{hit:i,defaultOpen:t},i.id))})}function Mhe({view:e}){const{t}=re(),n=e.written?e.deduplicated&&t("Identical memory already exists, nothing new was written"):t("Similar memories already exist, nothing was written");return a.jsxs(a.Fragment,{children:[n&&a.jsx("p",{className:"px-3 pt-2 text-xs text-muted-foreground",children:n}),e.written?a.jsx(k_,{hits:[e.memory],defaultOpen:!0}):a.jsx(k_,{hits:e.candidates})]})}function Lhe({hit:e,defaultOpen:t}){const{t:n}=re(),[i,s]=v.useState(t);return a.jsx("li",{children:a.jsxs("button",{type:"button","aria-expanded":i,onClick:r=>{const o=window.getSelection();o?.toString()&&r.currentTarget.contains(o.anchorNode)||s(l=>!l)},className:"block w-full cursor-pointer px-3 py-2 text-left transition-colors hover:bg-muted/40",children:[a.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[a.jsx("span",{className:te("min-w-0 flex-1 font-medium text-foreground text-xs",i?"break-words":"truncate"),children:e.title}),e.unitType&&a.jsx(vc,{variant:"secondary",size:"sm",children:e.unitType}),e.space&&a.jsx(vc,{variant:"outline",size:"sm",children:n(e.space==="global"?"Global":"Project")}),e.score!==null&&a.jsx("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/70 tabular-nums",children:e.score.toFixed(2)})]}),a.jsx("span",{className:te("mt-0.5 whitespace-pre-wrap break-words text-muted-foreground text-xs leading-relaxed",i?"block":"line-clamp-2"),children:e.content})]})})}const Ohe={"agent-type":"bg-purple-500/15 text-purple-600 dark:text-purple-400",file:"bg-success/15 text-success",chat:"bg-warning/25 text-warning-foreground dark:bg-warning/15 dark:text-warning","ui-element":"bg-purple-500/15 text-purple-600 dark:text-purple-400"};function m1(e){return te("inline-flex max-w-52 items-center gap-1 rounded-md px-1.5 py-0.5 align-middle text-xs font-medium",Ohe[e])}function Bhe({label:e,onRemove:t}){return a.jsx("button",{type:"button",onClick:t,className:"rounded-sm opacity-70 transition-opacity hover:opacity-100","aria-label":e,children:a.jsx(yn,{className:"h-3 w-3"})})}function Fhe({recipient:e,onRemove:t}){const{t:n}=re();return a.jsxs("span",{className:te(m1("agent-type"),"mt-0.5 shrink-0"),children:[a.jsx(Fs,{className:"h-3 w-3 shrink-0"}),a.jsx("span",{className:"truncate",children:e.label}),a.jsx(Bhe,{label:n("Remove Agent recipient"),onRemove:t}),a.jsx("span",{className:"sr-only",children:e.typeKey})]})}const g1=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function l5(e){if(!e)return null;try{const t=JSON.parse(e);return g1(t)?t:null}catch{return null}}function E_(e,t){if(!Array.isArray(e))return null;const n=[];for(const i of e){if(!g1(i)||typeof i.id!="string"||!i.id||typeof i.title!="string"||typeof i.content!="string")return null;const{spaceId:s,[t]:r}=i;n.push({id:i.id,title:i.title,content:i.content,unitType:typeof i.unitType=="string"&&i.unitType?i.unitType:null,space:s==="global"?"global":typeof s=="string"&&s.startsWith("proj:")?"project":null,score:typeof r=="number"&&Number.isFinite(r)?r:null})}return n}function Hhe(e){const t=l5(e);return t?E_(t.results,"score"):null}function zhe(e,t){const n=l5(e);if(n?.status==="candidates_found"){const s=E_(n.candidates,"similarity");return s?{written:!1,candidates:s}:null}if(n?.status!=="inserted"||!g1(n.memory)||!t)return null;const i=E_([{...n.memory,content:t}],"score")?.[0];return i?{written:!0,deduplicated:n.deduplicated===!0,memory:i}:null}const c5=v.createContext(void 0);function $h(e){const t=v.useContext(c5);if(t===void 0&&!e)throw new Error(_h(50));return t}const Ghe=600,u5=300,$he={...s8,instantType:e=>e.instantType,adaptiveOrigin:e=>e.adaptiveOrigin,closeDelay:e=>e.closeDelay};class Whe extends i8{constructor(t,n,i){const s=new l8;super(Vhe(t,s,n,i),Uhe(s),$he)}setOpen=(t,n)=>{const{inlineRectCoordsRef:i}=this.context;r8(this,t,n,{onBeforeDispatch(){const s=n.event;t&&n.reason===c8&&n.trigger&&"clientX"in s&&"clientY"in s&&i.current?.element!==n.trigger&&NR(i,n.trigger,s.clientX,s.clientY)}})}}function Vhe(e,t,n,i=!1){const s={...o8(),instantType:void 0,adaptiveOrigin:void 0,closeDelay:u5,...e};return s.floatingRootContext=a8(t,n,i),s}function Uhe(e){return{popupRef:v.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e,inlineRectCoordsRef:{current:void 0}}}function M2(e){const{open:t,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:s,actionsRef:r,handle:o,triggerId:l,defaultTriggerId:c=null,children:u}=e,d=h8((b,w)=>new Whe({open:n,openProp:t,activeTriggerId:c,triggerIdProp:l},b,w));d.useControlledProp("openProp",t),d.useControlledProp("triggerIdProp",l),d.useContextCallback("onOpenChange",i),d.useContextCallback("onOpenChangeComplete",s);const h=d.useState("open"),f=d.useState("activeTriggerId"),p=d.useState("mounted"),m=d.useState("payload");f8(d,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:g}=p8(h,d,()=>{d.context.inlineRectCoordsRef.current=void 0});gw(()=>{h&&f==null&&d.set("payload",void 0)},[d,f,h]),v.useImperativeHandle(r,()=>({unmount:g,close:()=>d.setOpen(!1,xx(m8))}),[g,d]);const x=h||p;return a.jsxs(c5.Provider,{value:d,children:[o&&a.jsx(g8,{handle:o,store:d}),x&&a.jsx(qhe,{store:d}),typeof u=="function"?u({payload:m}):u]})}function qhe({store:e}){const t=e.useState("floatingRootContext"),n=v8(t);return x8(e,{activeTriggerProps:n.reference,inactiveTriggerProps:n.trigger,popupProps:n.floating}),null}const Khe=u8(function(t){return $h(!0)?a.jsx(M2,{...t}):a.jsx(d8,{children:a.jsx(M2,{...t})})}),d5=v.createContext(void 0);function Yhe(){const e=v.useContext(d5);if(e===void 0)throw new Error(_h(48));return e}const Xhe=v.forwardRef(function(t,n){const{keepMounted:i=!1,...s}=t;return $h().useState("mounted")||i?a.jsx(d5.Provider,{value:i,children:a.jsx(b8,{ref:n,...s})}):null}),Qhe=_8(function(t,n){const{render:i,className:s,delay:r,closeDelay:o,id:l,payload:c,handle:u,style:d,...h}=t,f=$h(!0),m=w8(u)??f;if(!m)throw new Error(_h(89));const g=YD(l),x=m.useState("isTriggerActive",g),b=m.useState("isOpenedByTrigger",g),w=m.useState("floatingRootContext"),_=m.context.inlineRectCoordsRef,y=v.useRef(null),k=r??Ghe,C=o??u5,{registerTrigger:T,isMountedByThisTrigger:N}=y8(g,y,m,{payload:c,closeDelay:C}),R=S8(w,{mouseOnly:!0,move:!1,handleClose:C8(),delay:()=>({open:k,close:C}),triggerElementRef:y,isActiveTrigger:x,isClosing:()=>m.select("transitionStatus")==="ending"}),A=k8(w,{delay:k}),P={open:b},I=m.useState("triggerProps",N),E=GX(_,b);return Mc("a",t,{state:P,ref:[n,T,y],props:[R,A.reference,I,E,{id:g},h],stateAttributesMapping:E8})}),h5=v.createContext(void 0);function Jhe(){const e=v.useContext(h5);if(e===void 0)throw new Error(_h(49));return e}const Zhe=v.forwardRef(function(t,n){const{render:i,className:s,anchor:r,positionMethod:o="absolute",side:l="bottom",align:c="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:h="clipping-ancestors",collisionPadding:f=5,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:x=T8,style:b,...w}=t,_=$h(),y=Yhe(),k=I8(),C=_.useState("open"),T=_.useState("mounted"),N=_.useState("floatingRootContext"),R=_.useState("instantType"),A=_.useState("transitionStatus"),P=_.useState("adaptiveOrigin"),I=_.context.inlineRectCoordsRef,E=N8({anchor:r,floatingRootContext:N,positionMethod:o,mounted:T,side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:p,collisionBoundary:h,collisionPadding:f,sticky:m,disableAnchorTracking:g,keepMounted:y,nodeId:k,collisionAvoidance:x,adaptiveOrigin:P,inline:$X(I)}),L=E.update;gw(()=>{C&&T&&L()},[C,T,L]);const M={open:C,side:E.side,align:E.align,anchorHidden:E.anchorHidden,instant:R},j=D8(t,M,{styles:E.positionerStyles,transitionStatus:A,props:w,refs:[n,_.useStateSetter("positionerElement")],hidden:!T,inert:!C});return a.jsx(h5.Provider,{value:E,children:a.jsx(A8,{id:k,children:j})})}),efe=v.forwardRef(function(t,n){const{className:i,render:s,style:r,...o}=t,l=$h(),{side:c,align:u}=Jhe(),d=l.useState("open"),h=l.useState("instantType"),f=l.useState("transitionStatus"),p=l.useState("popupProps"),m=l.useState("floatingRootContext"),g=l.useState("closeDelay");return P8({open:d,ref:l.context.popupRef,onComplete(){d&&l.context.onOpenChangeComplete?.(!0)}}),j8(m,{closeDelay:g}),Mc("div",t,{state:{open:d,side:c,align:u,instant:h,transitionStatus:f},ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[R8,p,L8(f),o],stateAttributesMapping:M8})}),v1=Khe;function x1({...e}){return a.jsx(Qhe,{"data-slot":"preview-card-trigger",...e})}function f5({className:e,children:t,align:n="center",sideOffset:i=4,...s}){return a.jsx(Xhe,{children:a.jsx(Zhe,{align:n,className:"z-50","data-slot":"preview-card-positioner",sideOffset:i,children:a.jsx(efe,{className:te("relative flex w-64 origin-(--transform-origin) text-balance rounded-lg border bg-popover bg-clip-padding p-4 text-popover-foreground text-sm shadow-lg transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]",e),"data-slot":"preview-card-content",...s,children:t})})})}const L2={mask:"text-sky-600 dark:text-sky-400",warn:"text-amber-600 dark:text-amber-400",block:"text-red-600 dark:text-red-400"},tfe={mask:Jm,warn:pc,block:wR},nfe={mask:"Mask",warn:"Warn only",block:"Block"},ife={system:"System prompt",user:"Your message",tool_result:"Tool output",tool_args:"Tool arguments",assistant:"Earlier replies",tools:"Tool descriptions"};function sfe({report:e}){const{t}=re(),n=O8(e);if(!n)return null;const i=tfe[n],s=new Set(e.hits.map(r=>r.token)).size;return a.jsxs(v1,{children:[a.jsxs(x1,{render:a.jsx("span",{className:te("inline-flex shrink-0 items-center gap-0.5 text-[11px]",L2[n]),"data-privacy-mask":n}),children:[a.jsx(i,{className:"size-3.5"}),a.jsx("span",{className:"tabular-nums",children:s})]}),a.jsxs(f5,{className:"w-72 text-xs",children:[a.jsx("p",{className:"mb-1.5 font-medium",children:t("Privacy masking")}),a.jsx("ul",{className:"space-y-1",children:e.hits.map(r=>a.jsxs("li",{className:"flex flex-wrap gap-x-2",children:[a.jsx("span",{className:L2[r.action],children:t(nfe[r.action])}),a.jsx("span",{children:r.kind}),a.jsx("span",{className:"text-muted-foreground",children:t(ife[r.where]??r.where)}),a.jsx("span",{className:"text-muted-foreground",children:r.preview}),r.count>1&&a.jsxs("span",{className:"text-muted-foreground",children:["×",r.count]})]},`${r.token}-${r.action}-${r.where}`))}),e.restored>0&&a.jsx("p",{className:"mt-1.5 text-muted-foreground",children:t("Restored {{count}} in the reply",{count:e.restored})})]})]})}const rfe=/^\[.+#[0-9A-Fa-f]{4}\]$/;function ofe(e){const t=e.indexOf(`
|
|
113
|
+
`))}function c(p,m,g,x){const b=g.enter("tableCell"),w=g.enter("phrasing"),_=g.containerPhrasing(p,{...x,before:r,after:r});return w(),b(),_}function u(p,m){return Bue(p,{align:m,alignDelimiters:i,padding:n,stringLength:s})}function d(p,m,g){const x=p.children;let b=-1;const w=[],_=m.enter("table");for(;++b<x.length;)w[b]=h(x[b],m,g);return _(),w}function h(p,m,g){const x=p.children;let b=-1;const w=[],_=m.enter("tableRow");for(;++b<x.length;)w[b]=c(x[b],p,m,g);return _(),w}function f(p,m,g){let x=WL.inlineCode(p,m,g);return g.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function kde(){return{exit:{taskListCheckValueChecked:N2,taskListCheckValueUnchecked:N2,paragraph:Tde}}}function Ede(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ide}}}function N2(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Tde(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const s=t.children;let r=-1,o;for(;++r<s.length;){const l=s[r];if(l.type==="paragraph"){o=l;break}}o===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function Ide(e,t,n,i){const s=e.children[0],r=typeof e.checked=="boolean"&&s&&s.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(i);r&&l.move(o);let c=WL.listItem(e,t,n,{...i,...l.current()});return r&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(d){return d+o}}function Nde(){return[aue(),Iue(),Pue(),xde(),kde()]}function Dde(e){return{extensions:[lue(),Nue(e),jue(),Cde(e),Ede()]}}const Ade={tokenize:Ode,partial:!0},VL={tokenize:Bde,partial:!0},UL={tokenize:Fde,partial:!0},qL={tokenize:Hde,partial:!0},Pde={tokenize:zde,partial:!0},KL={name:"wwwAutolink",tokenize:Mde,previous:XL},YL={name:"protocolAutolink",tokenize:Lde,previous:QL},Xo={name:"emailAutolink",tokenize:Rde,previous:JL},vo={};function jde(){return{text:vo}}let Oa=48;for(;Oa<123;)vo[Oa]=Xo,Oa++,Oa===58?Oa=65:Oa===91&&(Oa=97);vo[43]=Xo;vo[45]=Xo;vo[46]=Xo;vo[95]=Xo;vo[72]=[Xo,YL];vo[104]=[Xo,YL];vo[87]=[Xo,KL];vo[119]=[Xo,KL];function Rde(e,t,n){const i=this;let s,r;return o;function o(h){return!S_(h)||!JL.call(i,i.previous)||f1(i.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return S_(h)?(e.consume(h),l):h===64?(e.consume(h),c):n(h)}function c(h){return h===46?e.check(Pde,d,u)(h):h===45||h===95||Ji(h)?(r=!0,e.consume(h),c):d(h)}function u(h){return e.consume(h),s=!0,c}function d(h){return r&&s&&cs(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function Mde(e,t,n){const i=this;return s;function s(o){return o!==87&&o!==119||!XL.call(i,i.previous)||f1(i.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ade,e.attempt(VL,e.attempt(UL,r),n),n)(o))}function r(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Lde(e,t,n){const i=this;let s="",r=!1;return o;function o(h){return(h===72||h===104)&&QL.call(i,i.previous)&&!f1(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(cs(h)&&s.length<5)return s+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const f=s.toLowerCase();if(f==="http"||f==="https")return e.consume(h),c}return n(h)}function c(h){return h===47?(e.consume(h),r?u:(r=!0,c)):n(h)}function u(h){return h===null||Nm(h)||zn(h)||yl(h)||Og(h)?n(h):e.attempt(VL,e.attempt(UL,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function Ode(e,t,n){let i=0;return s;function s(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),s):o===46&&i===3?(e.consume(o),r):n(o)}function r(o){return o===null?n(o):t(o)}}function Bde(e,t,n){let i,s,r;return o;function o(u){return u===46||u===95?e.check(qL,c,l)(u):u===null||zn(u)||yl(u)||u!==45&&Og(u)?c(u):(r=!0,e.consume(u),o)}function l(u){return u===95?i=!0:(s=i,i=void 0),e.consume(u),o}function c(u){return s||i||!r?n(u):t(u)}}function Fde(e,t){let n=0,i=0;return s;function s(o){return o===40?(n++,e.consume(o),s):o===41&&i<n?r(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(qL,t,r)(o):o===null||zn(o)||yl(o)?t(o):(e.consume(o),s)}function r(o){return o===41&&i++,e.consume(o),s}}function Hde(e,t,n){return i;function i(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),i):l===38?(e.consume(l),r):l===93?(e.consume(l),s):l===60||l===null||zn(l)||yl(l)?t(l):n(l)}function s(l){return l===null||l===40||l===91||zn(l)||yl(l)?t(l):i(l)}function r(l){return cs(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),i):cs(l)?(e.consume(l),o):n(l)}}function zde(e,t,n){return i;function i(r){return e.consume(r),s}function s(r){return Ji(r)?n(r):t(r)}}function XL(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||zn(e)}function QL(e){return!cs(e)}function JL(e){return!(e===47||S_(e))}function S_(e){return e===43||e===45||e===46||e===95||Ji(e)}function f1(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Gde={tokenize:Xde,partial:!0};function $de(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:qde,continuation:{tokenize:Kde},exit:Yde}},text:{91:{name:"gfmFootnoteCall",tokenize:Ude},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Wde,resolveTo:Vde}}}}function Wde(e,t,n){const i=this;let s=i.events.length;const r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;s--;){const c=i.events[s][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!o||!o._balanced)return n(c);const u=vr(i.sliceSerialize({start:o.end,end:i.now()}));return u.codePointAt(0)!==94||!r.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Vde(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const r={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},r.start),end:Object.assign({},r.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function Ude(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r=0,o;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(r>999||h===93&&!o||h===null||h===91||zn(h))return n(h);if(h===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return s.includes(vr(i.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return zn(h)||(o=!0),r++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),r++,u):u(h)}}function qde(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r,o=0,l;return c;function c(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(m)}function d(m){if(o>999||m===93&&!l||m===null||m===91||zn(m))return n(m);if(m===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return r=vr(i.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return zn(m)||(l=!0),o++,e.consume(m),m===92?h:d}function h(m){return m===91||m===92||m===93?(e.consume(m),o++,d):d(m)}function f(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),s.includes(r)||s.push(r),_n(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function Kde(e,t,n){return e.check(zh,t,e.attempt(Gde,t,n))}function Yde(e){e.exit("gfmFootnoteDefinition")}function Xde(e,t,n){const i=this;return _n(e,s,"gfmFootnoteDefinitionIndent",5);function s(r){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(r):n(r)}}function Qde(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:r,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(o,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let u=c;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[c][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[c][1].end)},h={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[c][1].start)},f=[["enter",d,l],["enter",o[u][1],l],["exit",o[u][1],l],["enter",h,l]],p=l.parser.constructs.insideSpan.null;p&&Bs(f,f.length,0,Bg(p,o.slice(u+1,c),l)),Bs(f,f.length,0,[["exit",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",d,l]]),Bs(o,u-1,c-u+3,f),c=u+f.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function r(o,l,c){const u=this.previous,d=this.events;let h=0;return f;function f(m){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(m):(o.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const g=Ic(u);if(m===126)return h>1?c(m):(o.consume(m),h++,p);if(h<2&&!n)return c(m);const x=o.exit("strikethroughSequenceTemporary"),b=Ic(m);return x._open=!b||b===2&&!!g,x._close=!g||g===2&&!!b,l(m)}}}class Jde{constructor(){this.map=[]}add(t,n,i){Zde(this,t,n,i)}consume(t){if(this.map.sort(function(r,o){return r[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const r of s)t.push(r);s=i.pop()}this.map.length=0}}function Zde(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function ehe(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const r=i.length-1;i[r]=i[r]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function the(){return{flow:{null:{name:"table",tokenize:nhe,resolveAll:ihe}}}}function nhe(e,t,n){const i=this;let s=0,r=0,o;return l;function l(A){let P=i.events.length-1;for(;P>-1;){const L=i.events[P][1].type;if(L==="lineEnding"||L==="linePrefix")P--;else break}const I=P>-1?i.events[P][1].type:null,E=I==="tableHead"||I==="tableRow"?C:c;return E===C&&i.parser.lazy[i.now().line]?n(A):E(A)}function c(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(o=!0,r+=1),d(A)}function d(A){return A===null?n(A):Ot(A)?r>1?(r=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),p):n(A):fn(A)?_n(e,d,"whitespace")(A):(r+=1,o&&(o=!1,s+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),h(A)))}function h(A){return A===null||A===124||zn(A)?(e.exit("data"),d(A)):(e.consume(A),A===92?f:h)}function f(A){return A===92||A===124?(e.consume(A),h):h(A)}function p(A){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(A):(e.enter("tableDelimiterRow"),o=!1,fn(A)?_n(e,m,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):m(A))}function m(A){return A===45||A===58?x(A):A===124?(o=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),g):k(A)}function g(A){return fn(A)?_n(e,x,"whitespace")(A):x(A)}function x(A){return A===58?(r+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):A===45?(r+=1,b(A)):A===null||Ot(A)?y(A):k(A)}function b(A){return A===45?(e.enter("tableDelimiterFiller"),w(A)):k(A)}function w(A){return A===45?(e.consume(A),w):A===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(A))}function _(A){return fn(A)?_n(e,y,"whitespace")(A):y(A)}function y(A){return A===124?m(A):A===null||Ot(A)?!o||s!==r?k(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):k(A)}function k(A){return n(A)}function C(A){return e.enter("tableRow"),T(A)}function T(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),T):A===null||Ot(A)?(e.exit("tableRow"),t(A)):fn(A)?_n(e,T,"whitespace")(A):(e.enter("data"),N(A))}function N(A){return A===null||A===124||zn(A)?(e.exit("data"),T(A)):(e.consume(A),A===92?R:N)}function R(A){return A===92||A===124?(e.consume(A),N):N(A)}}function ihe(e,t){let n=-1,i=!0,s=0,r=[0,0,0,0],o=[0,0,0,0],l=!1,c=0,u,d,h;const f=new Jde;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(l=!1,c!==0&&(D2(f,t,c,u,d),d=void 0,c=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(i=!0,h=void 0,r=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",d,t]])),s=m.type==="tableDelimiterRow"?2:d?3:1):s&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(r[1]!==0&&(o[0]=o[1],h=Tf(f,t,r,s,void 0,h),r=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(i?i=!1:(r[1]!==0&&(o[0]=o[1],h=Tf(f,t,r,s,void 0,h)),r=o,o=[r[1],n,0,0])):m.type==="tableHead"?(l=!0,c=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(c=n,r[1]!==0?(o[0]=o[1],h=Tf(f,t,r,s,n,h)):o[1]!==0&&(h=Tf(f,t,o,s,n,h)),s=0):s&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&D2(f,t,c,u,d),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=ehe(t.events,n))}return e}function Tf(e,t,n,i,s,r){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(r.end=Object.assign({},Kl(t.events,n[0])),e.add(n[0],0,[["exit",r,t]]));const c=Kl(t.events,n[1]);if(r={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",r,t]]),n[2]!==0){const u=Kl(t.events,n[2]),d=Kl(t.events,n[3]),h={type:l,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",h,t]]),i!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;e.add(m,g,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return s!==void 0&&(r.end=Object.assign({},Kl(t.events,s)),e.add(s,0,[["exit",r,t]]),r=void 0),r}function D2(e,t,n,i,s){const r=[],o=Kl(t.events,n);s&&(s.end=Object.assign({},o),r.push(["exit",s,t])),i.end=Object.assign({},o),r.push(["exit",i,t]),e.add(n+1,0,r)}function Kl(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const she={name:"tasklistCheck",tokenize:ohe};function rhe(){return{text:{91:she}}}function ohe(e,t,n){const i=this;return s;function s(c){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),r)}function r(c){return zn(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return Ot(c)?t(c):fn(c)?e.check({tokenize:ahe},t,n)(c):n(c)}}function ahe(e,t,n){return _n(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function lhe(e){return oL([jde(),$de(),Qde(e),the(),rhe()])}const che={};function ZL(e){const t=this,n=e||che,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),r=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(lhe(n)),r.push(Nde()),o.push(Dde(n))}function uhe(e){const[t,n]=v.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),i=v.useRef(null),s=v.useRef(null),r=v.useRef(null),o=v.useRef(null),l=v.useRef(!0),c=v.useRef(null),u=FF(),d=v.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:r,backdropRef:i,internalBackdropRef:s,positionerRef:o,allowMouseUpTriggerRef:l,initialCursorPointRef:c,rootId:u}),[t,u]);return a.jsx(HF.Provider,{value:d,children:a.jsx(zF.Provider,{value:void 0,children:a.jsx(GF,{...e})})})}const A2=500,dhe=v.forwardRef(function(t,n){const{render:i,className:s,style:r,...o}=t,{setAnchor:l,actionsRef:c,internalBackdropRef:u,backdropRef:d,positionerRef:h,allowMouseUpTriggerRef:f,initialCursorPointRef:p,rootId:m}=$F(!1),{store:g}=WF(!1),x=g.useState("open"),b=g.useState("disabled"),w=v.useRef(null),_=v.useRef(null),y=vx(),k=vx(),C=v.useRef(!1),T=v.useRef(null);function N(M,j,H){const F=H.type.startsWith("touch");p.current={x:M,y:j},l({getBoundingClientRect(){return DOMRect.fromRect({width:F?10:0,height:F?10:0,x:M,y:j})}}),C.current=!1,c.current?.setOpen(!0,xx(XF,H)),k.start(A2,()=>{C.current=!0})}function R(M){if(b)return;f.current=!0,qF(M),N(M.clientX,M.clientY,M.nativeEvent);const j=DS(w.current);T.current?.abort();const H=new AbortController;T.current=H,j.addEventListener("mouseup",F=>{if(f.current=!1,!C.current)return;k.clear(),C.current=!1;const X=AS(F);Qh(h.current,X)||m&&X&&KF(X)===m||c.current?.setOpen(!1,xx(YF,F))},{once:!0,signal:H.signal})}function A(){y.clear(),_.current=null}function P(M){if(b){A();return}if(f.current=!1,M.touches.length!==1){A();return}M.stopPropagation();const j=M.touches[0],H={x:j.clientX,y:j.clientY};_.current=H,y.start(A2,()=>{N(H.x,H.y,M.nativeEvent)})}function I(M){if(M.touches.length!==1){A();return}if(y.isStarted()&&_.current){const j=M.touches[0],H=10,F=Math.abs(j.clientX-_.current.x),X=Math.abs(j.clientY-_.current.y);(F>H||X>H)&&A()}}return v.useEffect(()=>()=>{T.current?.abort()},[]),v.useEffect(()=>{function M(H){if(b)return;const X=AS(H);(Qh(w.current,X)||Qh(u.current,X)||Qh(d.current,X))&&H.preventDefault()}const j=DS(w.current);return VF(j,"contextmenu",M)},[d,b,u]),Mc("div",t,{state:{open:x},ref:[w,n],props:[{onContextMenu:R,onTouchStart:P,onTouchMove:I,onTouchEnd:A,onTouchCancel:A,style:{WebkitTouchCallout:"none"}},o],stateAttributesMapping:UF})}),ao=uhe;function lo(e){return a.jsx(dhe,{"data-slot":"context-menu-trigger",...e})}function co({children:e,className:t,zIndex:n,...i}){return a.jsxs($D,{children:[a.jsx(QF,{className:"fixed inset-0 z-40","data-enso-float":"",style:n===void 0?void 0:{zIndex:n-1}}),a.jsx(WD,{className:"z-50","data-slot":"context-menu-positioner",style:n===void 0?void 0:{zIndex:n},children:a.jsx(VD,{className:te(UD,t),"data-slot":"context-menu-popup",...i,children:a.jsx("div",{className:"max-h-(--available-height) w-full overflow-y-auto p-1.5",children:e})})})]})}function Mt({className:e,variant:t="default",...n}){return a.jsx(JF,{className:te(qD,e),"data-slot":"context-menu-item","data-variant":t,...n})}function lh(e){return a.jsx(KD,{className:"mx-2 my-1 h-px bg-border","data-slot":"context-menu-separator",...e})}function e5(e){return a.jsx(ZF,{"data-slot":"context-menu-sub",...e,closeParentOnEsc:!1})}function t5({className:e,children:t,...n}){return a.jsxs(e8,{className:te(qD,"data-popup-open:bg-accent data-popup-open:text-accent-foreground",e),"data-slot":"context-menu-sub-trigger",...n,children:[t,a.jsx(Yn,{className:"-me-0.5 ms-auto opacity-80"})]})}function n5({children:e,className:t,...n}){return a.jsx($D,{children:a.jsx(WD,{align:"start",alignOffset:-5,className:"z-50","data-slot":"context-menu-sub-positioner",side:"inline-end",sideOffset:0,children:a.jsx(VD,{className:te(UD,t),"data-slot":"context-menu-sub-popup",...n,children:a.jsx("div",{className:"max-h-(--available-height) w-full overflow-y-auto p-1.5",children:e})})})})}function hhe(e){const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)}function C_(e){return/\.(md|markdown|mdx)$/i.test(e)}function sc(){const e=navigator.userAgent;return e.includes("Mac")?"Reveal in Finder":e.includes("Linux")?"Open Containing Folder":"Reveal in File Explorer"}function Gg({target:e,local:t,children:n,onNewFile:i,onNewFolder:s,onView:r,onPreview:o,onBrowser:l,onCopyPath:c,onCopyRel:u,onCopyFile:d,onReveal:h,onRename:f,onDelete:p,onSend:m}){const{t:g}=re(),x=e.kind==="file"?hhe(e.rel):e.kind==="dir"?e.rel:"",b=e.kind==="blank"?"":e.rel,w=e.kind==="file",_=e.kind!=="blank",y=e.kind!=="blank";return a.jsxs(ao,{children:[a.jsx(lo,{render:n}),a.jsxs(co,{className:"min-w-52",children:[a.jsx(Mt,{onClick:()=>i(x),children:g("New File")}),a.jsx(Mt,{onClick:()=>s(x),children:g("New Folder")}),_&&a.jsxs(a.Fragment,{children:[a.jsx(lh,{}),a.jsx(Mt,{onClick:()=>c(b),children:g("Copy Path")}),a.jsx(Mt,{onClick:()=>u(b),children:g("Copy Relative Path")}),w&&t&&d&&a.jsx(Mt,{onClick:()=>d(b),children:g("Copy")})]}),w&&a.jsxs(a.Fragment,{children:[r&&a.jsx(Mt,{onClick:()=>r(b),children:g("View File")}),t&&l&&a.jsx(Mt,{onClick:()=>l(b),children:g("Open in Browser")}),C_(b)&&o&&a.jsx(Mt,{onClick:()=>o(b),children:g("Open Markdown Preview")})]}),_&&t&&h&&a.jsx(Mt,{onClick:()=>h(b),children:g(sc())}),y&&f&&p&&(e.kind==="file"||e.kind==="dir")&&a.jsxs(a.Fragment,{children:[a.jsx(lh,{}),a.jsx(Mt,{onClick:()=>f(e.rel,e.name),children:g("Rename")}),a.jsx(Mt,{variant:"destructive",onClick:()=>p(e.rel,e.name),children:g("Delete")})]}),w&&m&&a.jsx(Mt,{onClick:()=>m(b,e.kind==="file"?e.name:""),children:g("Send to conversation")})]})]})}function P2({image:e,onClose:t}){const{t:n}=re();return a.jsx(Nn,{open:e!==null,onOpenChange:i=>{i||t()},children:a.jsxs(Dn,{className:"max-w-4xl",children:[a.jsxs(An,{children:[a.jsx(Pn,{children:n("Image preview")}),a.jsx(Is,{className:"break-all",children:e?.rel})]}),a.jsx(Xn,{className:"max-h-[70vh]",children:e&&a.jsx("img",{src:e.dataUrl,alt:e.rel,className:"mx-auto max-h-[65vh] max-w-full object-contain"})}),a.jsx(Bi,{children:a.jsx(ye,{variant:"outline",onClick:t,children:n("Close")})})]})})}const fhe="position:fixed;left:0;top:0;width:800px;height:600px;overflow:hidden;opacity:0;pointer-events:none;visibility:hidden;contain:strict;";function phe(e){return!e.includes("<svg")||/\bfocusable=/.test(e)?e:e.replace("<svg",'<svg focusable="false" tabindex="-1"')}let If=null,Nf=null,j2=Promise.resolve(),mhe=0;async function ghe(){return Nf||(If||(If=n8(()=>import("./mermaid.core-CAbX6U-E.js").then(e=>e.cb),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>(Nf=e.default,Nf)).catch(e=>{throw If=null,e})),If)}function vhe(e){const t=j2.then(e,e);return j2=t.then(()=>{},()=>{}),t}async function xhe(e,t){return vhe(async()=>{const n=await ghe();n.initialize({startOnLoad:!1,theme:t,securityLevel:"loose",fontFamily:"inherit",suppressErrorRendering:!0,flowchart:{htmlLabels:!1,useMaxWidth:!0}});const i=`ensoMermaid${++mhe}`,s=document.createElement("div");s.setAttribute("aria-hidden","true"),s.style.cssText=fhe,document.body.appendChild(s);try{const{svg:r}=await n.render(i,e,s);return phe(r)}finally{s.remove(),document.getElementById(i)?.remove(),document.getElementById(`d${i}`)?.remove()}})}const Df=.1,Af=.1;function bhe({code:e,streaming:t=!1,className:n}){const{t:i}=re(),s=v.useRef(null),[r,o]=v.useState(null),[l,c]=v.useState(null),[u,d]=v.useState(1),[h,f]=v.useState({x:0,y:0}),[p,m]=v.useState(!1),[g,x]=v.useState(!1);pw(g);const b=v.useRef({x:0,y:0}),w=v.useRef({x:0,y:0}),_=v.useRef(null),y=v.useRef(!1),C=t8()==="dark"?"dark":"default";v.useEffect(()=>{if(t){o(null),c(null);return}let X=!1;return(async()=>{if(!e.trim()){o(null),c(null);return}try{const $=await xhe(e,C);X||(o($),c(null),d(1),f({x:0,y:0}))}catch($){X||(c($ instanceof Error?$.message:"Mermaid render failed"),o(null))}})(),()=>{X=!0}},[e,C,t]);const T=v.useCallback(()=>d(X=>X+Df),[]),N=v.useCallback(()=>d(X=>Math.max(X-Df,Af)),[]),R=v.useCallback(()=>{d(1),f({x:0,y:0})},[]),A=v.useCallback(()=>{x(!1),d(1),f({x:0,y:0})},[]),P=v.useCallback(()=>{x(!0),requestAnimationFrame(()=>{const X=_.current?.querySelector("svg"),B=_.current?.getBoundingClientRect();if(!X||!B?.width||!B.height)return;const $=X.getBoundingClientRect(),W=24,z=Math.min((B.width-W*2)/$.width,(B.height-W*2)/$.height);d(Math.round(z*100)/100),f({x:0,y:0})})},[]),I=v.useCallback(X=>{if(!g)return;X.preventDefault();const B=X.deltaY>0?-Df:Df;d($=>Math.round(Math.max($+B,Af)*100)/100)},[g]),E=v.useCallback(X=>{!g||X.button!==0||(m(!0),y.current=!1,b.current={x:X.clientX,y:X.clientY},w.current={...h})},[g,h]),L=v.useCallback(X=>{if(!p)return;const B=X.clientX-b.current.x,$=X.clientY-b.current.y;(Math.abs(B)>2||Math.abs($)>2)&&(y.current=!0),f({x:w.current.x+B,y:w.current.y+$})},[p]),M=v.useCallback(()=>m(!1),[]),j=v.useCallback(X=>{X.stopPropagation()},[]),H=v.useCallback(()=>{y.current||A()},[A]),F=X=>{const B=X==="sm"?"h-6 w-6":"h-7 w-7",$=X==="sm"?"h-3.5 w-3.5":"h-4 w-4",W=X==="sm"?"h-6 min-w-[2.5rem]":"h-7 min-w-[3rem]";return a.jsxs("div",{className:"flex items-center gap-1 rounded-md border border-border bg-background/95 p-1 shadow-sm",children:[a.jsx("button",{type:"button",onClick:T,className:te("flex items-center justify-center rounded text-sm transition-colors hover:bg-accent hover:text-accent-foreground",B),title:i("Zoom in"),children:a.jsx(es,{className:$})}),a.jsxs("button",{type:"button",onClick:R,className:te("flex items-center justify-center rounded text-xs transition-colors hover:bg-accent hover:text-accent-foreground",W),title:i("Reset zoom"),children:[Math.round(u*100),"%"]}),a.jsx("button",{type:"button",onClick:N,disabled:u<=Af,className:te("flex items-center justify-center rounded text-sm transition-colors hover:bg-accent hover:text-accent-foreground",B,u<=Af&&"cursor-not-allowed opacity-50"),title:i("Zoom out"),children:a.jsx(bx,{className:$})}),u!==1&&a.jsx("button",{type:"button",onClick:R,className:te("flex items-center justify-center rounded text-sm transition-colors hover:bg-accent hover:text-accent-foreground",B),title:i("Fit to original size"),children:a.jsx(mw,{className:$})}),a.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),g?a.jsx("button",{type:"button",onClick:A,className:te("flex items-center justify-center rounded text-sm transition-colors hover:bg-accent hover:text-accent-foreground",B),title:i("Exit fullscreen"),children:a.jsx(gR,{className:$})}):a.jsx("button",{type:"button",onClick:P,className:te("flex items-center justify-center rounded text-sm transition-colors hover:bg-accent hover:text-accent-foreground",B),title:i("View fullscreen"),children:a.jsx(mR,{className:$})})]})};return l?a.jsxs("div",{className:te("overflow-x-auto rounded-lg border border-destructive/50",n),children:[a.jsx("div",{className:"flex items-center gap-2 border-b border-destructive/30 bg-destructive/10 px-3 py-2 text-xs text-destructive",children:a.jsx("span",{children:i("Mermaid render error")})}),a.jsx("pre",{className:"p-4 text-sm",children:a.jsx("code",{className:"block font-mono leading-relaxed text-muted-foreground",children:e})}),a.jsx("div",{className:"border-t border-border bg-muted/30 px-3 py-2 text-xs text-muted-foreground",children:l})]}):r?a.jsxs("div",{className:te("relative rounded-lg border border-border bg-muted/30",n),style:{userSelect:"none",WebkitUserSelect:"none"},children:[a.jsx("div",{ref:s,className:te("max-h-[min(50vh,20rem)] overflow-hidden [overflow-anchor:none]",g&&(p?"cursor-grabbing":"cursor-grab")),onWheel:I,onMouseDown:E,onMouseMove:L,onMouseUp:M,onMouseLeave:M,onDoubleClick:g?void 0:P,children:a.jsx("div",{className:"origin-center transition-transform duration-100 ease-out",style:{transform:`translate(${h.x}px, ${h.y}px) scale(${u})`},children:a.jsx("div",{className:"p-4",dangerouslySetInnerHTML:{__html:r}})})}),a.jsx("div",{className:"absolute right-2 bottom-2",children:F("sm")}),g&&a.jsxs("div",{className:"fixed inset-0 flex select-none flex-col bg-background",style:{zIndex:Rn.TOAST},"data-enso-float":"",onClick:H,onKeyDown:X=>{X.key==="Escape"&&A()},children:[a.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-border bg-muted/30 px-4 py-2",onClick:X=>X.stopPropagation(),onKeyDown:X=>X.stopPropagation(),children:[a.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:i("Mermaid preview")}),a.jsx("button",{type:"button",onClick:A,className:"flex h-7 w-7 items-center justify-center rounded-md border border-border bg-background/95 text-sm transition-colors hover:bg-accent hover:text-accent-foreground",title:i("Exit fullscreen"),children:a.jsx(yn,{className:"h-4 w-4"})})]}),a.jsxs("div",{className:"relative min-h-0 flex-1",children:[a.jsx("div",{ref:_,className:te("absolute inset-0 flex select-none items-center justify-center overflow-hidden",p?"cursor-grabbing":"cursor-grab"),onWheel:I,onMouseDown:E,onMouseMove:L,onMouseUp:M,onMouseLeave:M,onClick:j,onKeyDown:j,children:a.jsx("div",{className:"origin-center transition-transform duration-100 ease-out",style:{transform:`translate(${h.x}px, ${h.y}px) scale(${u})`},children:a.jsx("div",{className:"p-4",dangerouslySetInnerHTML:{__html:r}})})}),a.jsx("div",{className:"absolute right-4 bottom-4",children:F("md")})]})]})]}):a.jsx("div",{className:te("flex items-center justify-center rounded-lg border border-border bg-muted/30 p-8",n),children:a.jsx("div",{className:"text-sm text-muted-foreground",children:i("Loading Mermaid diagram...")})})}const _he=/^[a-z][a-z\d+.-]*:/i,whe=/^(?:https?|ircs?|mailto|xmpp):/i,yhe=/^(?:[a-z]:[\\/]|\\\\)/i;function i5(e){const t=/^(.*?):(\d+)(?:-\d+)?$/.exec(e);if(!t)return{path:e};const n=Number(t[2]);return n>0?{path:t[1],line:n}:{path:t[1]}}function She(e){try{return decodeURIComponent(e)}catch{return null}}function Che(e){const t=e.search(/[?#]/);return t<0?e:e.slice(0,t)}function khe(e){try{const t=new URL(e);if(t.protocol!=="file:")return null;let n=decodeURIComponent(t.pathname);return n?(t.hostname&&t.hostname.toLowerCase()!=="localhost"?n=`//${t.hostname}${n}`:/^\/[a-z]:[\\/]/i.test(n)&&(n=n.slice(1)),n):null}catch{return null}}function R2(e){const t=e.trim();if(!t||t.startsWith("#")||t.startsWith("?"))return{kind:"external"};if(/^file:/i.test(t)){const i=khe(t);return i?{kind:"local",path:i}:{kind:"blocked"}}if(whe.test(t)||t.startsWith("//"))return{kind:"external"};const n=She(Che(t));return n==null||n.includes("\0")?{kind:"blocked"}:_he.test(n)&&!yhe.test(n)?{kind:"blocked"}:{kind:"local",path:n}}function Mv(e){const t=e.replace(/\\/g,"/"),n=/^[a-z]:\//i.test(t)||t.startsWith("//");if(!n&&!t.startsWith("/"))return null;const i=/^[a-z]:\//i.test(t)?t.slice(0,2).toLowerCase():null,r=(i||n?t.slice(2):t.slice(1)).split("/"),o=[];for(const l of r)if(!(!l||l==="."))if(l===".."){if(o.length===0)return null;o.pop()}else o.push(l);return i?{value:`${i}/${o.join("/")}`.replace(/\/$/,""),windows:!0}:n?{value:`//${o.join("/")}`,windows:!0}:{value:`/${o.join("/")}`.replace(/\/$/,"")||"/",windows:!1}}function Lv(e){const t=e.replace(/\\/g,"/"),n=[];for(const i of t.split("/"))if(!(!i||i==="."))if(i===".."){if(n.length===0)return null;n.pop()}else{if(i.includes("\0"))return null;n.push(i)}return n.join("/")}function p1(e,t){if(!t)return Mv(e)?null:Lv(e);const n=Mv(t);if(!n)return null;const i=n.windows&&/^\/[a-z]:[\\/]/i.test(e)?e.slice(1):e,s=Mv(i);if(!s)return i===e?Lv(e):null;if(s.windows!==n.windows)return null;const r=n.value.toLowerCase(),o=s.value.toLowerCase();if(o===r)return"";const l=n.value.endsWith("/")?n.value:`${n.value}/`;return o.startsWith(l.toLowerCase())?Lv(s.value.slice(l.length)):null}function Ehe(e){if(!e)return;const t=e.split(":").at(-1)??e,n=/\.(\w+)$/.exec(t)?.[1];return n||(/^[\w-]+$/.test(e)?e:void 0)}const The={note:{label:"Note",border:"border-blue-500",text:"text-blue-600 dark:text-blue-400"},tip:{label:"Tip",border:"border-green-500",text:"text-green-600 dark:text-green-400"},important:{label:"Important",border:"border-purple-500",text:"text-purple-600 dark:text-purple-400"},warning:{label:"Warning",border:"border-amber-500",text:"text-amber-600 dark:text-amber-400"},caution:{label:"Caution",border:"border-red-500",text:"text-red-600 dark:text-red-400"}};function Ihe(){return e=>{Qc(e,"blockquote",t=>{const n=t.children[0];if(n?.type!=="paragraph")return;const i=n.children[0];if(i?.type!=="text")return;const s=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*/i.exec(i.value);if(!s)return;i.value=i.value.slice(s[0].length),i.value||n.children.shift();const r=s[1].toLowerCase();t.data={...t.data,hProperties:{...t.data?.hProperties,"data-alert":r,dataAlert:r}}})}}const Nhe=/^(?:[\w.@-]+\/)+[\w.@-]+\.\w{1,8}(?::\d+(?:-\d+)?)?$|^[\w.-]+\.\w{1,8}:\d+(?:-\d+)?$/,Dhe=[ZL,Ihe],gd=v.createContext({text:"",streaming:!1,searchQuery:"",activeNth:-1}),Jc=v.createContext(null);function s5(e,t){switch(e){case"invalid-path":return t("The link is outside the current workspace.");case"unsupported":return t("This link is not available on the local computer.");case"unavailable":return t("The linked file or folder is unavailable.");case"unsupported-viewer":return t("This file format cannot be previewed inside EnsoCode.");case"too-large":return t("The image is too large to preview.");case"invalid-application":return t("The selected application path is invalid.");case"application-unavailable":return t("VS Code is unavailable. Install it or select another application.");default:return e}}async function Ahe(e,t,n,i){try{const s=p1(t,e.cwd);if(s===null)throw new Error("invalid-path");const r=await window.electronAPI.workspaceFiles.openContext({conversationId:e.conversationId,projectId:e.projectId,rel:s,itemId:n});if(!r.ok)throw new Error(r.error)}catch(s){Ze({type:"error",title:i("Could not open local file link"),description:s5(s instanceof Error?s.message:String(s),i)})}}function r5({context:e,file:t,children:n}){const{t:i}=re(),r=Te(o=>o.contextMenuOpen).filter(o=>o.enabled);return r.length===0?n:a.jsxs(ao,{children:[a.jsx(lo,{render:n,onContextMenu:o=>o.stopPropagation()}),a.jsx(co,{className:"min-w-48",children:r.map(o=>{const l=o.target==="application"?(o.applicationPath.split(/[/\\]/).at(-1)??o.applicationPath).replace(/\.(?:exe|app)$/i,""):"VS Code";return a.jsx(Mt,{closeOnClick:!0,onClick:()=>{Ahe(e,t,o.id,i)},children:o.target==="reveal"?i(sc()):i("Open in {{app}}",{app:l})},o.id)})})]})}function o5(e){const t=R2(e);if(t.kind==="external")return{classification:t,line:void 0};const n=i5(t.kind==="local"?t.path:e);return n.line&&/\.[\w]+$/.test(n.path)?{classification:R2(n.path),line:n.line}:{classification:t,line:void 0}}function Phe(e){const t=e?.children;if(t?.length!==1)return null;const n=t[0],i=n.tagName==="code"&&n.children?.length===1?n.children[0]:null;return i?.type==="text"&&typeof i.value=="string"?i.value:null}function jhe({children:e,href:t,node:n}){const{t:i}=re(),s=v.useContext(Jc),[r,o]=v.useState(null),{classification:l,line:c}=o5(t??""),u=l.kind==="local"&&s!==null,d=u?Phe(n):null,h=x=>{Ze({type:"error",title:i("Could not open local file link"),description:s5(x,i)})},f=async x=>{if(!s||l.kind!=="local")return;const b=p1(l.path,s.cwd);if(b==null){h("invalid-path");return}if(!x&&c){Np(s.conversationId,b,c);return}const w={conversationId:s.conversationId,projectId:s.projectId,rel:b};try{if(x){const y=await window.electronAPI.workspaceFiles.reveal(w);y.ok||h(y.error);return}const _=await window.electronAPI.workspaceFiles.open(w);if(!_.ok){h(_.error);return}if(_.target==="handled")return;if(_.viewer==="image"){const y=ioe(_.rel);if(!y){h("unsupported-viewer");return}const k=await window.electronAPI.workspaceFiles.readImage({...w,rel:_.rel});if(!k.ok){h(k.error);return}const C=`data:${y};base64,`;if(!k.dataUrl.startsWith(C)||!/^[A-Za-z0-9+/=]+$/.test(k.dataUrl.slice(C.length))){h("unsupported-viewer");return}o({rel:_.rel,dataUrl:k.dataUrl})}else _.viewer==="markdown"?Np(s.conversationId,_.rel,void 0,"markdown"):Np(s.conversationId,_.rel)}catch(_){h(_ instanceof Error?_.message:String(_))}},p=x=>{l.kind!=="external"&&(x.preventDefault(),u&&f(!1))},m=a.jsx("a",{href:l.kind==="external"&&t||void 0,className:te("text-brand underline decoration-brand/40 underline-offset-2 transition-colors hover:decoration-brand",u&&"cursor-pointer break-all"),role:u?"link":void 0,tabIndex:u?0:void 0,...l.kind==="external"?{target:"_blank",rel:"noreferrer"}:{},onClick:p,onKeyDown:x=>{u&&x.key==="Enter"&&(x.preventDefault(),f(!1))},children:d??e});if(!u||l.kind!=="local"||!s)return m;const g=a.jsx(r5,{context:s,file:l.path,children:m});return d!==null?a.jsxs("span",{className:"inline-flex max-w-full items-center gap-0.5 rounded-[5px] border border-border/70 bg-muted/70 py-px pr-0.5 pl-1 align-baseline font-mono text-xs",children:[g,a.jsx("button",{type:"button",className:"inline-flex shrink-0 rounded-[3px] p-0.5 text-muted-foreground hover:bg-background hover:text-foreground","aria-label":i(sc()),title:i(sc()),onClick:()=>{f(!0)},children:a.jsx(qi,{className:"h-3 w-3"})}),a.jsx(P2,{image:r,onClose:()=>o(null)})]}):a.jsxs("span",{className:"inline",children:[g,a.jsx("button",{type:"button",className:"ml-1 inline-flex rounded p-0.5 align-middle text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":i(sc()),title:i(sc()),onClick:()=>{f(!0)},children:a.jsx(qi,{className:"h-3.5 w-3.5"})}),a.jsx(P2,{image:r,onClose:()=>o(null)})]})}function Rhe(e,t,n=!0){const i=NL(e);return i||t!=="href"?i:n&&o5(e).classification.kind==="local"?e:""}const a5={p:({children:e})=>{const{searchQuery:t,activeNth:n}=v.useContext(gd);return a.jsx("p",{className:"my-2 leading-[1.7] first:mt-0 last:mb-0",children:t.trim()?_3(e,t,n,{n:0}):e})},a:jhe,ul:({children:e})=>a.jsx("ul",{className:"my-2 list-disc pl-5 space-y-1 marker:text-muted-foreground",children:e}),ol:({children:e})=>a.jsx("ol",{className:"my-2 list-decimal pl-5 space-y-1 marker:text-muted-foreground",children:e}),h1:({children:e})=>a.jsx("h1",{className:"mt-3 mb-1.5 text-base font-semibold",children:e}),h2:({children:e})=>a.jsx("h2",{className:"mt-3 mb-1.5 text-base font-semibold",children:e}),h3:({children:e})=>a.jsx("h3",{className:"mt-2 mb-1 text-sm font-semibold",children:e}),blockquote:({children:e,node:t})=>{const{t:n}=re(),i=t?.properties,s=String(i?.dataAlert??i?.["data-alert"]??""),r=The[s];return r?a.jsxs("blockquote",{className:te("my-1.5 border-l-2 pl-3",r.border),children:[a.jsx("p",{className:te("mt-1.5 mb-0.5 text-xs font-semibold",r.text),children:n(r.label)}),e]}):a.jsx("blockquote",{className:"my-2 border-l-2 border-brand/30 pl-3 text-muted-foreground",children:e})},code:({children:e})=>{const{t}=re(),n=v.useContext(Jc),i=typeof e=="string"?e:"";if(i&&Nhe.test(i)){const{path:s,line:r}=i5(i),o=()=>{if(!n){navigator.clipboard.writeText(s);return}const c=p1(s,n.cwd);if(!c){Ze({type:"error",title:t("Could not open local file link"),description:t("The link is outside the current workspace.")});return}Np(n.conversationId,c,r)},l=a.jsx("button",{type:"button",onClick:o,title:i,className:"inline-flex max-w-full items-center rounded-[5px] border border-border/70 bg-muted/70 px-1 py-px align-baseline font-mono text-xs text-brand transition-colors hover:bg-muted",children:a.jsx("span",{className:"truncate",children:i})});return n?a.jsx(r5,{context:n,file:s,children:l}):l}return a.jsx("code",{className:"rounded-[5px] border border-border/70 bg-muted/70 px-1 py-px font-mono text-xs",children:e})},pre:({node:e})=>{const{streaming:t}=v.useContext(gd),n=e?.children?.[0],i=n&&"properties"in n?n.properties:void 0,s=/language-(\S+)/.exec(i?.className?.join(" ")??"")?.[1],r=n&&"children"in n?n.children?.[0]:void 0,l=(r&&"value"in r?String(r.value):"").replace(/\n$/,""),c=Ehe(s);return c?.toLowerCase()==="mermaid"?a.jsx(bhe,{code:l,streaming:t}):a.jsx(i_,{code:l,language:c,streaming:t})},table:({children:e,node:t})=>{const{text:n,streaming:i}=v.useContext(gd),s=t?.position?.start?.offset,r=t?.position?.end?.offset,o=s!==void 0&&r!==void 0?n.slice(s,r):null;return a.jsxs("div",{className:"group/table relative my-2 min-w-0 max-w-full overflow-x-auto overscroll-x-contain [-webkit-overflow-scrolling:touch]",children:[a.jsx("table",{className:"w-max min-w-full border-collapse text-xs [overflow-wrap:normal]",children:e}),o&&!i&&a.jsx(Xy,{text:o,className:"absolute top-0.5 right-0.5 rounded-md border bg-background/80 p-1.5 text-muted-foreground opacity-0 backdrop-blur transition-opacity group-hover/table:opacity-100"})]})},th:({children:e})=>a.jsx("th",{className:"whitespace-nowrap border-b border-border px-2 py-1 text-left font-medium",children:e}),td:({children:e})=>a.jsx("td",{className:"whitespace-nowrap border-b border-border/50 px-2 py-1",children:e}),hr:()=>a.jsx("hr",{className:"my-3 border-border"})};function Ts({text:e,streaming:t=!1,searchQuery:n="",activeNth:i=-1}){const r=v.useContext(Jc)!==null,o=v.useMemo(()=>({text:e,streaming:t,searchQuery:n,activeNth:i}),[e,t,n,i]),l=v.useMemo(()=>(c,u)=>Rhe(c,u,r),[r]);return a.jsx(gd.Provider,{value:o,children:a.jsx("div",{className:t?"t-stream-live":void 0,children:a.jsx(IL,{remarkPlugins:Dhe,components:a5,urlTransform:l,children:e})})})}function k_({hits:e,defaultOpen:t=!1}){const{t:n}=re();return e.length===0?a.jsx("p",{className:"px-3 py-2 text-xs text-muted-foreground",children:n("No results")}):a.jsx("ul",{className:"divide-y divide-border/60",children:e.map(i=>a.jsx(Lhe,{hit:i,defaultOpen:t},i.id))})}function Mhe({view:e}){const{t}=re(),n=e.written?e.deduplicated&&t("Identical memory already exists, nothing new was written"):t("Similar memories already exist, nothing was written");return a.jsxs(a.Fragment,{children:[n&&a.jsx("p",{className:"px-3 pt-2 text-xs text-muted-foreground",children:n}),e.written?a.jsx(k_,{hits:[e.memory],defaultOpen:!0}):a.jsx(k_,{hits:e.candidates})]})}function Lhe({hit:e,defaultOpen:t}){const{t:n}=re(),[i,s]=v.useState(t);return a.jsx("li",{children:a.jsxs("button",{type:"button","aria-expanded":i,onClick:r=>{const o=window.getSelection();o?.toString()&&r.currentTarget.contains(o.anchorNode)||s(l=>!l)},className:"block w-full cursor-pointer px-3 py-2 text-left transition-colors hover:bg-muted/40",children:[a.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[a.jsx("span",{className:te("min-w-0 flex-1 font-medium text-foreground text-xs",i?"break-words":"truncate"),children:e.title}),e.unitType&&a.jsx(vc,{variant:"secondary",size:"sm",children:e.unitType}),e.space&&a.jsx(vc,{variant:"outline",size:"sm",children:n(e.space==="global"?"Global":"Project")}),e.score!==null&&a.jsx("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/70 tabular-nums",children:e.score.toFixed(2)})]}),a.jsx("span",{className:te("mt-0.5 whitespace-pre-wrap break-words text-muted-foreground text-xs leading-relaxed",i?"block":"line-clamp-2"),children:e.content})]})})}const Ohe={"agent-type":"bg-purple-500/15 text-purple-600 dark:text-purple-400",file:"bg-success/15 text-success",chat:"bg-warning/25 text-warning-foreground dark:bg-warning/15 dark:text-warning","ui-element":"bg-purple-500/15 text-purple-600 dark:text-purple-400"};function m1(e){return te("inline-flex max-w-52 items-center gap-1 rounded-md px-1.5 py-0.5 align-middle text-xs font-medium",Ohe[e])}function Bhe({label:e,onRemove:t}){return a.jsx("button",{type:"button",onClick:t,className:"rounded-sm opacity-70 transition-opacity hover:opacity-100","aria-label":e,children:a.jsx(yn,{className:"h-3 w-3"})})}function Fhe({recipient:e,onRemove:t}){const{t:n}=re();return a.jsxs("span",{className:te(m1("agent-type"),"mt-0.5 shrink-0"),children:[a.jsx(Fs,{className:"h-3 w-3 shrink-0"}),a.jsx("span",{className:"truncate",children:e.label}),a.jsx(Bhe,{label:n("Remove Agent recipient"),onRemove:t}),a.jsx("span",{className:"sr-only",children:e.typeKey})]})}const g1=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function l5(e){if(!e)return null;try{const t=JSON.parse(e);return g1(t)?t:null}catch{return null}}function E_(e,t){if(!Array.isArray(e))return null;const n=[];for(const i of e){if(!g1(i)||typeof i.id!="string"||!i.id||typeof i.title!="string"||typeof i.content!="string")return null;const{spaceId:s,[t]:r}=i;n.push({id:i.id,title:i.title,content:i.content,unitType:typeof i.unitType=="string"&&i.unitType?i.unitType:null,space:s==="global"?"global":typeof s=="string"&&s.startsWith("proj:")?"project":null,score:typeof r=="number"&&Number.isFinite(r)?r:null})}return n}function Hhe(e){const t=l5(e);return t?E_(t.results,"score"):null}function zhe(e,t){const n=l5(e);if(n?.status==="candidates_found"){const s=E_(n.candidates,"similarity");return s?{written:!1,candidates:s}:null}if(n?.status!=="inserted"||!g1(n.memory)||!t)return null;const i=E_([{...n.memory,content:t}],"score")?.[0];return i?{written:!0,deduplicated:n.deduplicated===!0,memory:i}:null}const c5=v.createContext(void 0);function $h(e){const t=v.useContext(c5);if(t===void 0&&!e)throw new Error(_h(50));return t}const Ghe=600,u5=300,$he={...s8,instantType:e=>e.instantType,adaptiveOrigin:e=>e.adaptiveOrigin,closeDelay:e=>e.closeDelay};class Whe extends i8{constructor(t,n,i){const s=new l8;super(Vhe(t,s,n,i),Uhe(s),$he)}setOpen=(t,n)=>{const{inlineRectCoordsRef:i}=this.context;r8(this,t,n,{onBeforeDispatch(){const s=n.event;t&&n.reason===c8&&n.trigger&&"clientX"in s&&"clientY"in s&&i.current?.element!==n.trigger&&NR(i,n.trigger,s.clientX,s.clientY)}})}}function Vhe(e,t,n,i=!1){const s={...o8(),instantType:void 0,adaptiveOrigin:void 0,closeDelay:u5,...e};return s.floatingRootContext=a8(t,n,i),s}function Uhe(e){return{popupRef:v.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e,inlineRectCoordsRef:{current:void 0}}}function M2(e){const{open:t,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:s,actionsRef:r,handle:o,triggerId:l,defaultTriggerId:c=null,children:u}=e,d=h8((b,w)=>new Whe({open:n,openProp:t,activeTriggerId:c,triggerIdProp:l},b,w));d.useControlledProp("openProp",t),d.useControlledProp("triggerIdProp",l),d.useContextCallback("onOpenChange",i),d.useContextCallback("onOpenChangeComplete",s);const h=d.useState("open"),f=d.useState("activeTriggerId"),p=d.useState("mounted"),m=d.useState("payload");f8(d,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:g}=p8(h,d,()=>{d.context.inlineRectCoordsRef.current=void 0});gw(()=>{h&&f==null&&d.set("payload",void 0)},[d,f,h]),v.useImperativeHandle(r,()=>({unmount:g,close:()=>d.setOpen(!1,xx(m8))}),[g,d]);const x=h||p;return a.jsxs(c5.Provider,{value:d,children:[o&&a.jsx(g8,{handle:o,store:d}),x&&a.jsx(qhe,{store:d}),typeof u=="function"?u({payload:m}):u]})}function qhe({store:e}){const t=e.useState("floatingRootContext"),n=v8(t);return x8(e,{activeTriggerProps:n.reference,inactiveTriggerProps:n.trigger,popupProps:n.floating}),null}const Khe=u8(function(t){return $h(!0)?a.jsx(M2,{...t}):a.jsx(d8,{children:a.jsx(M2,{...t})})}),d5=v.createContext(void 0);function Yhe(){const e=v.useContext(d5);if(e===void 0)throw new Error(_h(48));return e}const Xhe=v.forwardRef(function(t,n){const{keepMounted:i=!1,...s}=t;return $h().useState("mounted")||i?a.jsx(d5.Provider,{value:i,children:a.jsx(b8,{ref:n,...s})}):null}),Qhe=_8(function(t,n){const{render:i,className:s,delay:r,closeDelay:o,id:l,payload:c,handle:u,style:d,...h}=t,f=$h(!0),m=w8(u)??f;if(!m)throw new Error(_h(89));const g=YD(l),x=m.useState("isTriggerActive",g),b=m.useState("isOpenedByTrigger",g),w=m.useState("floatingRootContext"),_=m.context.inlineRectCoordsRef,y=v.useRef(null),k=r??Ghe,C=o??u5,{registerTrigger:T,isMountedByThisTrigger:N}=y8(g,y,m,{payload:c,closeDelay:C}),R=S8(w,{mouseOnly:!0,move:!1,handleClose:C8(),delay:()=>({open:k,close:C}),triggerElementRef:y,isActiveTrigger:x,isClosing:()=>m.select("transitionStatus")==="ending"}),A=k8(w,{delay:k}),P={open:b},I=m.useState("triggerProps",N),E=GX(_,b);return Mc("a",t,{state:P,ref:[n,T,y],props:[R,A.reference,I,E,{id:g},h],stateAttributesMapping:E8})}),h5=v.createContext(void 0);function Jhe(){const e=v.useContext(h5);if(e===void 0)throw new Error(_h(49));return e}const Zhe=v.forwardRef(function(t,n){const{render:i,className:s,anchor:r,positionMethod:o="absolute",side:l="bottom",align:c="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:h="clipping-ancestors",collisionPadding:f=5,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:x=T8,style:b,...w}=t,_=$h(),y=Yhe(),k=I8(),C=_.useState("open"),T=_.useState("mounted"),N=_.useState("floatingRootContext"),R=_.useState("instantType"),A=_.useState("transitionStatus"),P=_.useState("adaptiveOrigin"),I=_.context.inlineRectCoordsRef,E=N8({anchor:r,floatingRootContext:N,positionMethod:o,mounted:T,side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:p,collisionBoundary:h,collisionPadding:f,sticky:m,disableAnchorTracking:g,keepMounted:y,nodeId:k,collisionAvoidance:x,adaptiveOrigin:P,inline:$X(I)}),L=E.update;gw(()=>{C&&T&&L()},[C,T,L]);const M={open:C,side:E.side,align:E.align,anchorHidden:E.anchorHidden,instant:R},j=D8(t,M,{styles:E.positionerStyles,transitionStatus:A,props:w,refs:[n,_.useStateSetter("positionerElement")],hidden:!T,inert:!C});return a.jsx(h5.Provider,{value:E,children:a.jsx(A8,{id:k,children:j})})}),efe=v.forwardRef(function(t,n){const{className:i,render:s,style:r,...o}=t,l=$h(),{side:c,align:u}=Jhe(),d=l.useState("open"),h=l.useState("instantType"),f=l.useState("transitionStatus"),p=l.useState("popupProps"),m=l.useState("floatingRootContext"),g=l.useState("closeDelay");return P8({open:d,ref:l.context.popupRef,onComplete(){d&&l.context.onOpenChangeComplete?.(!0)}}),j8(m,{closeDelay:g}),Mc("div",t,{state:{open:d,side:c,align:u,instant:h,transitionStatus:f},ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[R8,p,L8(f),o],stateAttributesMapping:M8})}),v1=Khe;function x1({...e}){return a.jsx(Qhe,{"data-slot":"preview-card-trigger",...e})}function f5({className:e,children:t,align:n="center",sideOffset:i=4,...s}){return a.jsx(Xhe,{children:a.jsx(Zhe,{align:n,className:"z-50","data-slot":"preview-card-positioner",sideOffset:i,children:a.jsx(efe,{className:te("relative flex w-64 origin-(--transform-origin) text-balance rounded-lg border bg-popover bg-clip-padding p-4 text-popover-foreground text-sm shadow-lg transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]",e),"data-slot":"preview-card-content",...s,children:t})})})}const L2={mask:"text-sky-600 dark:text-sky-400",warn:"text-amber-600 dark:text-amber-400",block:"text-red-600 dark:text-red-400"},tfe={mask:Jm,warn:pc,block:wR},nfe={mask:"Mask",warn:"Warn only",block:"Block"},ife={system:"System prompt",user:"Your message",tool_result:"Tool output",tool_args:"Tool arguments",assistant:"Earlier replies",tools:"Tool descriptions"};function sfe({report:e}){const{t}=re(),n=O8(e);if(!n)return null;const i=tfe[n],s=new Set(e.hits.map(r=>r.token)).size;return a.jsxs(v1,{children:[a.jsxs(x1,{render:a.jsx("span",{className:te("inline-flex shrink-0 items-center gap-0.5 text-[11px]",L2[n]),"data-privacy-mask":n}),children:[a.jsx(i,{className:"size-3.5"}),a.jsx("span",{className:"tabular-nums",children:s})]}),a.jsxs(f5,{className:"w-72 text-xs",children:[a.jsx("p",{className:"mb-1.5 font-medium",children:t("Privacy masking")}),a.jsx("ul",{className:"space-y-1",children:e.hits.map(r=>a.jsxs("li",{className:"flex flex-wrap gap-x-2",children:[a.jsx("span",{className:L2[r.action],children:t(nfe[r.action])}),a.jsx("span",{children:r.kind}),a.jsx("span",{className:"text-muted-foreground",children:t(ife[r.where]??r.where)}),a.jsx("span",{className:"text-muted-foreground",children:r.preview}),r.count>1&&a.jsxs("span",{className:"text-muted-foreground",children:["×",r.count]})]},`${r.token}-${r.action}-${r.where}`))}),e.restored>0&&a.jsx("p",{className:"mt-1.5 text-muted-foreground",children:t("Restored {{count}} in the reply",{count:e.restored})})]})]})}const rfe=/^\[.+#[0-9A-Fa-f]{4}\]$/;function ofe(e){const t=e.indexOf(`
|
|
114
114
|
`),n=t===-1?e:e.slice(0,t);return rfe.test(n)?t===-1?"":e.slice(t+1).split(`
|
|
115
115
|
`).map(i=>i.replace(/^\d+:/,"")).join(`
|
|
116
116
|
`):e}const afe={theme:Rc,disableFileHeader:!0,overflow:"wrap",preferredHighlighter:"shiki-js"};function Pp({path:e,contents:t}){const{t:n}=re(),[i,s]=v.useState(!1),r=xh(afe);v.useEffect(()=>{let l=!0;return gc().then(()=>{l&&s(!0)}),()=>{l=!1}},[]);const o=v.useMemo(()=>({name:e.split("/").pop()||"file",contents:ofe(t)}),[e,t]);return i?a.jsx(XD,{file:o,disableWorkerPool:!0,options:r}):a.jsx("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:n("Loading...")})}function lfe(e){const{inputTokens:t,outputTokens:n}=e;if(typeof t!="number"||!Number.isFinite(t)||t<0||typeof n!="number"||!Number.isFinite(n)||n<0)return null;const i=Math.max(0,t-n);return{tokens:i,percent:t>0?Math.round(i/t*100):null}}const cfe={compressed:"Compressed",unchanged:"Unchanged",pending:"Background task started",bypassed:"Bypassed",unavailable:"Unavailable"};function ufe({value:e}){const t=oX(e),{t:n}=re();if(!t)return null;const i=lfe(t);return a.jsxs("div",{className:"border-border/60 border-t text-[10px] text-muted-foreground","data-rtk-status":t.status,children:[a.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5 px-3 py-1",children:[a.jsx("span",{className:"font-semibold tracking-wide text-foreground/75",children:"RTK"}),a.jsx("span",{"aria-hidden":"true",children:"·"}),a.jsx("span",{children:n(cfe[t.status])}),i&&a.jsxs(a.Fragment,{children:[a.jsx("span",{"aria-hidden":"true",children:"·"}),a.jsx("span",{children:n("~{{count}} tokens saved",{count:Cs(i.tokens)})}),i.percent!==null&&a.jsxs("span",{children:["(",i.percent,"%)"]})]})]}),a.jsxs("div",{className:"space-y-2 px-3 pb-2",children:[t.status==="pending"&&a.jsx("p",{className:"rounded bg-muted/40 px-2 py-1 text-foreground/80",children:n("This is the startup receipt; see the task_output result for final statistics.")}),(t.inputTokens!==void 0||t.reason)&&a.jsxs("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1",children:[t.inputTokens!==void 0&&t.outputTokens!==void 0&&a.jsxs(a.Fragment,{children:[a.jsx("dt",{children:n("Input estimate")}),a.jsx("dd",{className:"font-mono text-foreground/80",children:n("{{count}} tokens",{count:Cs(t.inputTokens)})}),a.jsx("dt",{children:n("Output estimate")}),a.jsx("dd",{className:"font-mono text-foreground/80",children:n("{{count}} tokens",{count:Cs(t.outputTokens)})})]}),t.reason&&a.jsxs(a.Fragment,{children:[a.jsx("dt",{children:n("Reason")}),a.jsx("dd",{className:"min-w-0 whitespace-pre-wrap text-foreground/80",children:t.reason})]})]})]})]})}function dfe(e){return e.startsWith("/skill:")?"skill":e==="/goal"?"goal":"command"}function hfe(e){return e.startsWith("/skill:")?e.slice(7):e.replace(/^\//,"")}function Pm(e){const t=/^\/skill:(\S+)(?:\s+([\s\S]*))?$/.exec(e);if(t)return{slash:`/skill:${t[1]}`,rest:t[2]??""};const n=/^\/([A-Za-z][\w:-]*)(?:\s+([\s\S]*))?$/.exec(e);return n?{slash:`/${n[1]}`,rest:n[2]??""}:{slash:null,rest:e}}const ffe={skill:ps,goal:Wc,command:yR},pfe={skill:"bg-info/15 text-info",goal:"bg-warning/25 text-warning-foreground dark:bg-warning/15 dark:text-warning",command:"bg-foreground/10 text-foreground"};function p5(e,t=!1){return te("inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 align-middle text-xs font-medium",pfe[e],t&&e==="skill"&&"hover:bg-info/25",t&&e==="goal"&&"hover:bg-warning/35 dark:hover:bg-warning/25",t&&e==="command"&&"hover:bg-foreground/15")}function b1({name:e,className:t,interactive:n=!1,trailing:i}){const s=dfe(e),r=ffe[s];return a.jsxs("span",{className:te(p5(s,n),t),children:[a.jsx(r,{className:"h-3 w-3"}),hfe(e),i]})}function _1({icon:e,state:t}){const n=t==="running"||t==="reviewing";return a.jsxs("span",{className:te("relative flex size-[22px] shrink-0 items-center justify-center rounded-full border text-muted-foreground",n&&"border-transparent text-brand",t==="error"&&"border-destructive/40 text-destructive"),children:[a.jsx(e,{className:"size-3"}),n&&a.jsx("span",{className:"absolute -inset-px animate-spin rounded-full border-[1.5px] border-brand/20 border-t-brand"})]})}const mfe={queued:["Queued","bg-muted-foreground"],running:["running","bg-amber-500"],awaiting_input:["awaiting input","bg-amber-500"],validating:["validating","bg-amber-500"],succeeded:["succeeded","bg-emerald-500"],failed:["failed","bg-destructive"],cancelled:["cancelled","bg-muted-foreground"],interrupted:["interrupted","bg-muted-foreground"],creating:["creating","bg-amber-500"],ready:["idle","bg-muted-foreground"],active:["running","bg-amber-500"],parked:["parked","bg-muted-foreground"],closed:["closed","bg-muted-foreground"]};function gfe({view:e,titles:t}){const{t:n}=re();return a.jsxs("div",{className:"space-y-2 px-3 py-2 text-sm",children:[e.kind==="report"&&e.text&&a.jsx(Ts,{text:e.text}),e.kind==="report"&&e.value&&a.jsx(Ts,{text:`\`\`\`json
|
package/out/renderer/assets/{infoDiagram-27XIBGKW-yWJunXz9.js → infoDiagram-27XIBGKW-C2vV0S3R.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,l as s,G as o,d as i}from"./mermaid.core-
|
|
1
|
+
import{_ as e,l as s,G as o,d as i}from"./mermaid.core-CAbX6U-E.js";import{p as g}from"./cynefin-OW5HDTMX-DBni0eSw.js";import"./globals-BwNQF72D.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},d={version:"11.17.2"},v=e(()=>d.version,"getVersion"),m={getVersion:v},c=e((r,a,n)=>{s.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=o(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),l={draw:c},b={parser:p,db:m,renderer:l};export{b as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as l,c as lt,a2 as ct,G as ut,ap as dt,r as yt,k as ft,p as et,a as pt,b as gt,g as kt,s as mt,q as wt,d as _t}from"./mermaid.core-
|
|
1
|
+
import{_ as l,c as lt,a2 as ct,G as ut,ap as dt,r as yt,k as ft,p as et,a as pt,b as gt,g as kt,s as mt,q as wt,d as _t}from"./mermaid.core-CAbX6U-E.js";import"./globals-BwNQF72D.js";var Q=(function(){var t=l(function(T,e,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=e);return s},"o"),d=[1,4],n=[1,14],a=[1,12],o=[1,13],y=[6,7,8],p=[1,20],u=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:l(function(e,s,i,h,f,r,v){var w=r.length-1;switch(f){case 6:case 7:return h;case 15:h.addNode(r[w-1].length,r[w].trim());break;case 16:h.addNode(0,r[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:n,7:[1,10],9:9,12:11,13:a,14:o},t(y,[2,3]),{1:[2,2]},t(y,[2,4]),t(y,[2,5]),{1:[2,6],6:n,12:15,13:a,14:o},{6:n,9:16,12:11,13:a,14:o},{6:p,7:u,10:17,11:m},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:p,7:u,10:22,11:m},{1:[2,7],6:n,12:15,13:a,14:o},t(k,[2,14],{7:g,11:_}),t(x,[2,8]),t(x,[2,9]),t(x,[2,10]),t(c,[2,15]),t(k,[2,13],{7:g,11:_}),t(x,[2,11]),t(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(e,s){if(s.recoverable)this.trace(e);else{var i=new Error(e);throw i.hash=s,i}},"parseError"),parse:l(function(e){var s=this,i=[0],h=[],f=[null],r=[],v=this.table,w="",I=0,$=0,L=2,A=1,C=r.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(e,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;r.push(R);var H=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(B){i.length=i.length-2*B,f.length=f.length-B,r.length=r.length-B}l(X,"popStack");function J(){var B;return B=h.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(h=B,B=h.pop()),B=s.symbols_[B]||B),B}l(J,"lex");for(var M,W,N,Y,F={},G,V,tt,U;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=J()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";U=[];for(G in v[W])this.terminals_[G]&&G>L&&U.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+U.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:U})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),f.push(b.yytext),r.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(V=this.productions_[N[1]][1],F.$=f[f.length-V],F._$={first_line:r[r.length-(V||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(V||1)].first_column,last_column:r[r.length-1].last_column},H&&(F._$.range=[r[r.length-(V||1)].range[0],r[r.length-1].range[1]]),Y=this.performAction.apply(F,[w,$,I,S.yy,N[1],f,r].concat(C)),typeof Y<"u")return Y;V&&(i=i.slice(0,-1*V*2),f=f.slice(0,-1*V),r=r.slice(0,-1*V)),i.push(this.productions_[N[1]][0]),f.push(F.$),r.push(F._$),tt=v[i[i.length-2]][i[i.length-1]],i.push(tt);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:l(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:l(function(e,s){return this.yy=s||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var s=e.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:l(function(e){var s=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===h.length?this.yylloc.first_column:0)+h[h.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(e){this.unput(this.match.slice(e))},"less"),pastInput:l(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var e=this.pastInput(),s=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as gt}from"./chunk-5VM5RSS4-
|
|
1
|
+
import{g as gt}from"./chunk-5VM5RSS4-aCGmL6_s.js";import{a as mt,b as lt,h as xt,d as kt}from"./chunk-F27PBJKO-DQvndxlp.js";import{g as _t,s as vt,a as bt,b as wt,q as Tt,p as St,_ as s,c as R,j as X,d as $t,r as Mt}from"./mermaid.core-CAbX6U-E.js";import{d as it}from"./arc-BHxAM6vy.js";import"./globals-BwNQF72D.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as o,l as te,c as H,G as fe,ah as ye,ai as be,aj as me,af as Ee,E as K,i as G,Z as _e,$ as ke,ac as Se,ad as ce,ae as le}from"./mermaid.core-
|
|
1
|
+
import{_ as o,l as te,c as H,G as fe,ah as ye,ai as be,aj as me,af as Ee,E as K,i as G,Z as _e,$ as ke,ac as Se,ad as ce,ae as le}from"./mermaid.core-CAbX6U-E.js";import{g as Ne}from"./chunk-5VM5RSS4-aCGmL6_s.js";import"./globals-BwNQF72D.js";var $=(function(){var e=o(function(O,i,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=i);return n},"o"),h=[1,4],p=[1,13],s=[1,12],d=[1,15],E=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],_=[6,7,11],F=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(i,n,r,a,u,t,U){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:E,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:E,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:s,14:14,16:d,17:E,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(_,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(_,[2,19]),e(_,[2,21],{15:30,24:F}),e(_,[2,22]),e(_,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:E,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(_,[2,16],{15:37,24:F}),e(_,[2,17]),e(_,[2,18]),e(_,[2,20],{24:M}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(_,[2,15],{24:M}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var r=new Error(i);throw r.hash=n,r}},"parseError"),parse:o(function(i){var n=this,r=[0],a=[],u=[null],t=[],U=this.table,c="",W=0,se=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(i,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Z=b.yylloc;t.push(Z);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var k,P,x,q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((k===null||typeof k>"u")&&(k=ae()),x=U[P]&&U[P][k]),typeof x>"u"||!x.length||!x[0]){var Q="";X=[];for(z in U[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Q="Parse error on line "+(W+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Q="Parse error on line "+(W+1)+": Unexpected "+(k==re?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Q,{text:b.match,token:this.terminals_[k]||k,line:b.yylineno,loc:Z,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+k);switch(x[0]){case 1:r.push(k),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),k=null,se=b.yyleng,c=b.yytext,W=b.yylineno,Z=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),q=this.performAction.apply(j,[c,se,W,R.yy,x[1],u,t].concat(ge)),typeof q<"u")return q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=U[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var n=i.length,r=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|