@cline/cli-windows-arm64 3.0.52 → 3.0.53
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/bin/cline.exe +0 -0
- package/cline-hub/webview/assets/Chat-5-m425Jp.js +197 -0
- package/cline-hub/webview/assets/DialogTitle-jgZKJpfs.js +1 -0
- package/cline-hub/webview/assets/{abnfDiagram-VRR7QNED-BmZn7QAr.js → abnfDiagram-VRR7QNED-BLFmc_AX.js} +1 -1
- package/cline-hub/webview/assets/{arc-C6pGbJrV.js → arc-DD7eF3YX.js} +1 -1
- package/cline-hub/webview/assets/{architectureDiagram-ZJ3FMSHR-Dgv4VGlE.js → architectureDiagram-ZJ3FMSHR-DvcvwqFE.js} +2 -2
- package/cline-hub/webview/assets/badge-DJicQweE.js +1 -0
- package/cline-hub/webview/assets/{blockDiagram-677ZJIJ3-D7Rb3u2m.js → blockDiagram-677ZJIJ3-D2G4QuxG.js} +5 -5
- package/cline-hub/webview/assets/{bundle-mjs-CO994-RQ.js → bundle-mjs-CSP5ngA5.js} +1 -1
- package/cline-hub/webview/assets/{c4Diagram-LMCZKHZV-Dkvth2jj.js → c4Diagram-LMCZKHZV-C6Nuiq7M.js} +3 -3
- package/cline-hub/webview/assets/channel-CSeXS2Ai.js +1 -0
- package/cline-hub/webview/assets/{chunk-32BRIVSS-CSG4V8l0.js → chunk-32BRIVSS-BsAqn4xZ.js} +1 -1
- package/cline-hub/webview/assets/chunk-52WLFC77-BWe_4R7D.js +10 -0
- package/cline-hub/webview/assets/chunk-BO2N2NFS-DhZuH4Af.js +131 -0
- package/cline-hub/webview/assets/{chunk-C7G6YPKG-hGGgXHCs.js → chunk-C7G6YPKG-CV2Ol95R.js} +1 -1
- package/cline-hub/webview/assets/{chunk-EX3LRPZG-C3BlUnKc.js → chunk-EX3LRPZG-C7pvEKxc.js} +3 -3
- package/cline-hub/webview/assets/{chunk-FWX5IMBZ-CBBxPYoo.js → chunk-FWX5IMBZ-wv8Fkt1d.js} +2 -2
- package/cline-hub/webview/assets/{chunk-HOUHSVGY-BK-KWdyz.js → chunk-HOUHSVGY-CFjt2s0d.js} +1 -1
- package/cline-hub/webview/assets/chunk-ICXQ74PX-COcWu1Sq.js +2 -0
- package/cline-hub/webview/assets/{chunk-MOJQB5TN-CxW5bRIS.js → chunk-MOJQB5TN-D44BZz7X.js} +1 -1
- package/cline-hub/webview/assets/chunk-OGEWGWER-BVna3Z_8.js +1 -0
- package/cline-hub/webview/assets/{chunk-PUDLZKDR-7amIl78k.js → chunk-PUDLZKDR-CE01riew.js} +5 -5
- package/cline-hub/webview/assets/{chunk-Q4XR5HBZ-DyEQflKV.js → chunk-Q4XR5HBZ-CtUzoHvJ.js} +6 -6
- package/cline-hub/webview/assets/chunk-RYQCIY6F-AfEdSVyS.js +1 -0
- package/cline-hub/webview/assets/{chunk-V7JOEXUC-7L1bQwIr.js → chunk-V7JOEXUC-C4XkVjGi.js} +3 -3
- package/cline-hub/webview/assets/chunk-VAUOI2AC-BlqTQL33.js +1 -0
- package/cline-hub/webview/assets/{chunk-VR4S4FIN-Be22cetl.js → chunk-VR4S4FIN-CbCTOh7J.js} +1 -1
- package/cline-hub/webview/assets/{chunk-WYO6CB5R-BQDKJ2Op.js → chunk-WYO6CB5R-B91ryJFB.js} +3 -3
- package/cline-hub/webview/assets/{chunk-XXDRQBXY-DlK_iNGL.js → chunk-XXDRQBXY-DR-hrsFH.js} +1 -1
- package/cline-hub/webview/assets/{chunk-ZGVPDNZ5-D0HhTn0b.js → chunk-ZGVPDNZ5-D5I51kcE.js} +2 -2
- package/cline-hub/webview/assets/{chunk-ZIRB5QZD-C6fEPe3t.js → chunk-ZIRB5QZD-BpeS1aZ7.js} +3 -3
- package/cline-hub/webview/assets/classDiagram-OUVF2IWQ-BC75njhg.js +1 -0
- package/cline-hub/webview/assets/classDiagram-v2-EOCWNBFH-BC75njhg.js +1 -0
- package/cline-hub/webview/assets/{cose-bilkent-JH36ORCC-Ovgghq0g.js → cose-bilkent-JH36ORCC-Do63cWW-.js} +1 -1
- package/cline-hub/webview/assets/cynefinDiagram-TSTJHNR4-DxiC1jLj.js +62 -0
- package/cline-hub/webview/assets/{dagre-VKFMJZFB-VZxqrogn.js → dagre-VKFMJZFB-D4MnrU54.js} +2 -2
- package/cline-hub/webview/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/cline-hub/webview/assets/{desktop-client-bYADwT3y.js → desktop-client-Cc9yU7GV.js} +1 -1
- package/cline-hub/webview/assets/{diagram-FQU43EPY-ZqBQCTGG.js → diagram-FQU43EPY-D6nNqFiO.js} +1 -1
- package/cline-hub/webview/assets/{diagram-G47NLZAW-DG_j92Nl.js → diagram-G47NLZAW-C8pCvnUn.js} +13 -13
- package/cline-hub/webview/assets/{diagram-NH7WQ7WH-Bt4tNl-h.js → diagram-NH7WQ7WH-BjRb6vlK.js} +1 -1
- package/cline-hub/webview/assets/{diagram-OA4YK3LP-v40q0J0R.js → diagram-OA4YK3LP-BOaPe4YT.js} +1 -1
- package/cline-hub/webview/assets/{diagram-WEI45ONY-CZSSbGFC.js → diagram-WEI45ONY-C2gh4ORi.js} +2 -2
- package/cline-hub/webview/assets/{dist-BH9bKIvu.js → dist-BDCdLWk4.js} +1 -1
- package/cline-hub/webview/assets/{ebnfDiagram-CCIWWBDH-BQguzKyi.js → ebnfDiagram-CCIWWBDH-CjkO8TQF.js} +1 -1
- package/cline-hub/webview/assets/{erDiagram-Q63AITRT-CXNNdhob.js → erDiagram-Q63AITRT-BMK30ekD.js} +3 -3
- package/cline-hub/webview/assets/extensions-view-Cd8F5xpl.js +1 -0
- package/cline-hub/webview/assets/flowDiagram-23GEKE2U-BntOZ8ZE.js +1 -0
- package/cline-hub/webview/assets/{ganttDiagram-NO4QXBWP-BeutZoFO.js → ganttDiagram-NO4QXBWP-BiXN4AZg.js} +3 -3
- package/cline-hub/webview/assets/{gitGraphDiagram-IHSO6WYX-DwtCBJ_d.js → gitGraphDiagram-IHSO6WYX-G9vFn-Jf.js} +3 -3
- package/cline-hub/webview/assets/{highlighted-body-OFNGDK62-BOW3kov6.js → highlighted-body-OFNGDK62-CgYHG1rO.js} +1 -1
- package/cline-hub/webview/assets/index-CfNkVILD.js +10 -0
- package/cline-hub/webview/assets/{infoDiagram-FWYZ7A6U-CBIO2hmL.js → infoDiagram-FWYZ7A6U-DKv-n7tl.js} +1 -1
- package/cline-hub/webview/assets/init-C-OQMol4.js +1 -0
- package/cline-hub/webview/assets/{ishikawaDiagram-FXEZZL3T-6y2h3Opo.js → ishikawaDiagram-FXEZZL3T-CR3RSn8R.js} +2 -2
- package/cline-hub/webview/assets/{journeyDiagram-5HDEW3XC-ClvGKUe-.js → journeyDiagram-5HDEW3XC-DLH3FDEU.js} +3 -3
- package/cline-hub/webview/assets/{kanban-definition-HUTT4EX6-BqBCyQU9.js → kanban-definition-HUTT4EX6-CfNVdKZg.js} +3 -3
- package/cline-hub/webview/assets/label-CFn0VYsb.js +1 -0
- package/cline-hub/webview/assets/{line-Bw8gqOPe.js → line-CJ_JkFXf.js} +1 -1
- package/cline-hub/webview/assets/{linear-BiXMiKrI.js → linear-B87ngFcg.js} +1 -1
- package/cline-hub/webview/assets/mermaid-GHXKKRXX-DWw3cmjX.js +1 -0
- package/cline-hub/webview/assets/mermaid-layout-C3UvhD5t.js +321 -0
- package/cline-hub/webview/assets/{mermaid-layout-D67Npcks.js → mermaid-layout-C40rDmm9.js} +1 -1
- package/cline-hub/webview/assets/mermaid-layout-CKcc_JPx.js +1 -0
- package/cline-hub/webview/assets/mermaid-layout-DI4ft-3R.js +1 -0
- package/cline-hub/webview/assets/mermaid-layout-db2zCT1P.js +1 -0
- package/cline-hub/webview/assets/mermaid-markup-aLwrmF5_.js +259 -0
- package/cline-hub/webview/assets/mermaid-parser-Bjbk52nf.js +1 -0
- package/cline-hub/webview/assets/{mermaid-parser-CsKqUYKE.js → mermaid-parser-C0ihgYQ9.js} +1 -1
- package/cline-hub/webview/assets/{mermaid-parser-CUZ6GPid.js → mermaid-parser-CJzh8iAc.js} +2 -2
- package/cline-hub/webview/assets/mermaid-parser-CWbpbwPR.js +1 -0
- package/cline-hub/webview/assets/{mermaid-parser-B5HHdaKy.js → mermaid-parser-CeG4Jv6J.js} +1 -1
- package/cline-hub/webview/assets/{mermaid-parser-BDUXySIN.js → mermaid-parser-D7YKh_-X.js} +1 -1
- package/cline-hub/webview/assets/{mermaid-parser-Dj-OpFgW.js → mermaid-parser-DEvma7oi.js} +24 -24
- package/cline-hub/webview/assets/mermaid-parser-N1OWR5wr.js +1 -0
- package/cline-hub/webview/assets/{mermaid-parser-B1PyAFXY.js → mermaid-parser-vz6fNr8n.js} +1 -1
- package/cline-hub/webview/assets/mermaid.core-Be9B_pr2.js +11 -0
- package/cline-hub/webview/assets/{mindmap-definition-LN4V7U3C--xTAn35A.js → mindmap-definition-LN4V7U3C-DUQyLHrD.js} +3 -3
- package/cline-hub/webview/assets/{ordinal-CopWnP7w.js → ordinal-DtR4qwUh.js} +1 -1
- package/cline-hub/webview/assets/{path-BWPyau1x.js → path-COt_16Va.js} +1 -1
- package/cline-hub/webview/assets/{pegDiagram-2B236MQR-5kpPEH6L.js → pegDiagram-2B236MQR-DOgBowT1.js} +1 -1
- package/cline-hub/webview/assets/{pieDiagram-ENE6RG2P-BFaL_bCO.js → pieDiagram-ENE6RG2P-DRfeiass.js} +2 -2
- package/cline-hub/webview/assets/{quadrantDiagram-ABIIQ3AL-DeQgeOJA.js → quadrantDiagram-ABIIQ3AL-BgPT8pIn.js} +2 -2
- package/cline-hub/webview/assets/{railroadDiagram-RFXS5EU6-D6A3-IXZ.js → railroadDiagram-RFXS5EU6-8wt-q6c9.js} +1 -1
- package/cline-hub/webview/assets/{requirementDiagram-TGXJPOKE-D3J4J8f0.js → requirementDiagram-TGXJPOKE-DRTUm7Qo.js} +2 -2
- package/cline-hub/webview/assets/{rolldown-runtime-CNC7AqOf.js → rolldown-runtime-B0Z9INg1.js} +1 -1
- package/cline-hub/webview/assets/{rough.esm-CSKSodPl.js → rough.esm-By172zw-.js} +1 -1
- package/cline-hub/webview/assets/{sankeyDiagram-HTMAVEWB-Csrr--Ku.js → sankeyDiagram-HTMAVEWB-CeY3Y_ll.js} +2 -2
- package/cline-hub/webview/assets/sequenceDiagram-DBY2YBRQ-DSUB2OM4.js +162 -0
- package/cline-hub/webview/assets/settings-view-DS30eWav.js +76 -0
- package/cline-hub/webview/assets/src-BY_WSiz7.js +1 -0
- package/cline-hub/webview/assets/{stateDiagram-2N3HPSRC-BAGoUKsk.js → stateDiagram-2N3HPSRC-B2x_vEZe.js} +1 -1
- package/cline-hub/webview/assets/stateDiagram-v2-6OUMAXLB-BchjBw5_.js +1 -0
- package/cline-hub/webview/assets/swimlanes-5IMT3BWC-D4vQUhBS.js +2 -0
- package/cline-hub/webview/assets/swimlanesDiagram-G3AALYLV-FXn7KRqH.js +8 -0
- package/cline-hub/webview/assets/switch-1OAUgxzd.js +1 -0
- package/cline-hub/webview/assets/{timeline-definition-FHXFAJF6-CQNgmTIt.js → timeline-definition-FHXFAJF6-B-Cz6AFL.js} +3 -3
- package/cline-hub/webview/assets/{vennDiagram-L72KCM5P-CXc-iN33.js → vennDiagram-L72KCM5P-BHMfdY1b.js} +3 -3
- package/cline-hub/webview/assets/vscode-tfEHsPTc.js +1 -0
- package/cline-hub/webview/assets/{wardleyDiagram-EHGQE667-DTibNvqD.js → wardleyDiagram-EHGQE667-BgTZ-C-Z.js} +22 -22
- package/cline-hub/webview/assets/{xychartDiagram-FW5EYKEG-CO2qnUyw.js → xychartDiagram-FW5EYKEG-B9lKc__k.js} +4 -4
- package/cline-hub/webview/index.html +5 -3
- package/package.json +1 -1
- package/cline-hub/webview/assets/Chat-Byz21shc.js +0 -201
- package/cline-hub/webview/assets/badge-tZD_60cv.js +0 -1
- package/cline-hub/webview/assets/channel-BLdg_aiM.js +0 -1
- package/cline-hub/webview/assets/chunk-52WLFC77-hXd71QCM.js +0 -10
- package/cline-hub/webview/assets/chunk-BO2N2NFS-DJS94hax.js +0 -131
- package/cline-hub/webview/assets/chunk-ICXQ74PX-C1naCh7h.js +0 -2
- package/cline-hub/webview/assets/chunk-OGEWGWER-IbFWtSr3.js +0 -1
- package/cline-hub/webview/assets/chunk-RYQCIY6F-L4N6kLKj.js +0 -1
- package/cline-hub/webview/assets/chunk-VAUOI2AC-IC4V3R7w.js +0 -1
- package/cline-hub/webview/assets/classDiagram-OUVF2IWQ-Cx3KaYH1.js +0 -1
- package/cline-hub/webview/assets/classDiagram-v2-EOCWNBFH-Cx3KaYH1.js +0 -1
- package/cline-hub/webview/assets/cynefinDiagram-TSTJHNR4-ck16KLo6.js +0 -62
- package/cline-hub/webview/assets/defaultLocale-C8Fc0cco.js +0 -1
- package/cline-hub/webview/assets/extensions-view-B6Z6Tf6l.js +0 -1
- package/cline-hub/webview/assets/flowDiagram-23GEKE2U-cbrTqCtr.js +0 -1
- package/cline-hub/webview/assets/index-Cw6Kg0MD.js +0 -10
- package/cline-hub/webview/assets/init-D6jRqBbL.js +0 -1
- package/cline-hub/webview/assets/label-B4VTGFzI.js +0 -1
- package/cline-hub/webview/assets/mermaid-GHXKKRXX-CoORZYz7.js +0 -1
- package/cline-hub/webview/assets/mermaid-layout-BClsMEZU.js +0 -1
- package/cline-hub/webview/assets/mermaid-layout-CQFVGiJu.js +0 -321
- package/cline-hub/webview/assets/mermaid-layout-Gej8MFKI.js +0 -1
- package/cline-hub/webview/assets/mermaid-layout-mOwqmNjF.js +0 -1
- package/cline-hub/webview/assets/mermaid-markup-WcaG3JKD.js +0 -259
- package/cline-hub/webview/assets/mermaid-parser-0bma_2tB.js +0 -1
- package/cline-hub/webview/assets/mermaid-parser-BaBV8uvS.js +0 -1
- package/cline-hub/webview/assets/mermaid-parser-BzOFf4CL.js +0 -1
- package/cline-hub/webview/assets/mermaid.core-CnkePiBs.js +0 -11
- package/cline-hub/webview/assets/sequenceDiagram-DBY2YBRQ-DgI2RFHU.js +0 -162
- package/cline-hub/webview/assets/settings-view-DvSMyQzo.js +0 -76
- package/cline-hub/webview/assets/src-Cz8bXOH0.js +0 -1
- package/cline-hub/webview/assets/stateDiagram-v2-6OUMAXLB-_KKwgh9O.js +0 -1
- package/cline-hub/webview/assets/swimlanes-5IMT3BWC-DZ_1nFLY.js +0 -2
- package/cline-hub/webview/assets/swimlanesDiagram-G3AALYLV-BEQ5I-gs.js +0 -8
- package/cline-hub/webview/assets/switch-DeaHMo5o.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-Cz8bXOH0.js";import{R as r,h as i,p as a,r as o,s}from"./chunk-WYO6CB5R-BQDKJ2Op.js";import{t as c}from"./dist-BH9bKIvu.js";function l(e){this._context=e}l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function u(e){return new l(e)}var d=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function f(e){return new d(e,!0)}function ee(e){return new d(e,!1)}function p(){}function m(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function h(e){this._context=e}h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:m(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:m(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function te(e){return new h(e)}function ne(e){this._context=e}ne.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:m(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function re(e){return new ne(e)}function ie(e){this._context=e}ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:m(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ae(e){return new ie(e)}function oe(e,t){this._basis=new h(e),this._beta=t}oe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var se=(function e(t){function n(e){return t===1?new h(e):new oe(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function g(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function _(e,t){this._context=e,this._k=(1-t)/6}_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:g(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:g(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ce=(function e(t){function n(e){return new _(e,t)}return n.tension=function(t){return e(+t)},n})(0);function v(e,t){this._context=e,this._k=(1-t)/6}v.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:g(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var le=(function e(t){function n(e){return new v(e,t)}return n.tension=function(t){return e(+t)},n})(0);function y(e,t){this._context=e,this._k=(1-t)/6}y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:g(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ue=(function e(t){function n(e){return new y(e,t)}return n.tension=function(t){return e(+t)},n})(0);function b(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function de(e,t){this._context=e,this._alpha=t}de.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:b(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var fe=(function e(t){function n(e){return t?new de(e,t):new _(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function pe(e,t){this._context=e,this._alpha=t}pe.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:b(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var me=(function e(t){function n(e){return t?new pe(e,t):new v(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function he(e,t){this._context=e,this._alpha=t}he.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:b(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ge=(function e(t){function n(e){return t?new he(e,t):new y(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function _e(e){this._context=e}_e.prototype={areaStart:p,areaEnd:p,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ve(e){return new _e(e)}function ye(e){return e<0?-1:1}function be(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(ye(a)+ye(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function xe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function x(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function S(e){this._context=e}S.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:x(this,this._t0,xe(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,x(this,xe(this,n=be(this,e,t)),n);break;default:x(this,this._t0,n=be(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Se(e){this._context=new Ce(e)}(Se.prototype=Object.create(S.prototype)).point=function(e,t){S.prototype.point.call(this,t,e)};function Ce(e){this._context=e}Ce.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function we(e){return new S(e)}function Te(e){return new Se(e)}function Ee(e){this._context=e}Ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=De(e),i=De(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function De(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Oe(e){return new Ee(e)}function C(e,t){this._context=e,this._t=t}C.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function w(e){return new C(e,.5)}function T(e){return new C(e,0)}function ke(e){return new C(e,1)}function E(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ae(){}function je(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function D(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Me=`[object RegExp]`,O=`[object String]`,k=`[object Number]`,A=`[object Boolean]`,j=`[object Arguments]`,Ne=`[object Symbol]`,Pe=`[object Date]`,Fe=`[object Map]`,Ie=`[object Set]`,Le=`[object Array]`,Re=`[object ArrayBuffer]`,ze=`[object Object]`,M=`[object DataView]`,Be=`[object Uint8Array]`,Ve=`[object Uint8ClampedArray]`,He=`[object Uint16Array]`,Ue=`[object Uint32Array]`,We=`[object Int8Array]`,Ge=`[object Int16Array]`,Ke=`[object Int32Array]`,qe=`[object Float32Array]`,Je=`[object Float64Array]`,Ye=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function N(e){return Ye.Buffer!==void 0&&Ye.Buffer.isBuffer(e)}function Xe(e){return Number.isSafeInteger(e)&&e>=0}function Ze(e){return e!=null&&typeof e!=`function`&&Xe(e.length)}function Qe(e){return e===`__proto__`}function P(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function F(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function $e(e,t){return I(e,void 0,e,new Map,t)}function I(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(P(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=I(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,I(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(I(a,void 0,n,r,i));return t}if(N(e))return e.subarray();if(F(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=I(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),L(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),L(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),L(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,L(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),L(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),L(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),L(t,e,n,r,i),t}if(typeof e==`object`&&et(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),L(t,e,n,r,i),t}return e}function L(e,t,n=e,r,i){let a=[...Object.keys(t),...je(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=I(t[s],s,n,r,i))}}function et(e){switch(D(e)){case j:case Le:case Re:case M:case A:case Pe:case qe:case Je:case We:case Ge:case Ke:case Fe:case k:case ze:case Me:case Ie:case O:case Ne:case Be:case Ve:case He:case Ue:return!0;default:return!1}}function tt(e,t){return $e(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(D(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),L(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case k:case O:case A:{let t=new e.constructor(e?.valueOf());return L(t,e),t}case j:{let t={};return L(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function nt(e){return tt(e)}function R(e){return typeof e==`object`&&!!e&&D(e)===`[object Arguments]`}function z(e){return typeof e==`object`&&!!e}function rt(e){return z(e)&&Ze(e)}function B(e){return F(e)}function V(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(V.Cache||Map),n}V.Cache=Map;function it(e){if(P(e))return e;if(Array.isArray(e)||F(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function at(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++){let t=n[e];i=H(i,t,r,new Map)}return i}function H(e,t,n,r){if(P(e)&&(e=Object(e)),typeof t!=`object`||!t)return e;if(r.has(t))return it(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]=t[e]??void 0}let i=[...Object.keys(t),...je(t)];for(let a=0;a<i.length;a++){let o=i[a];if(Qe(o))continue;let s=t[o],c=e[o];if(R(s)&&(s={...s}),R(c)&&(c={...c}),N(s)&&(s=nt(s)),Array.isArray(s))if(Array.isArray(c)){let e=[],t=Reflect.ownKeys(c);for(let n=0;n<t.length;n++){let r=t[n];e[r]=c[r]}c=e}else if(rt(c)){let e=[];for(let t=0;t<c.length;t++)e[t]=c[t];c=e}else c=[];let l=n(c,s,o,e,t,r);l===void 0?Array.isArray(s)||z(c)&&z(s)&&(E(c)||E(s)||B(c)||B(s))?e[o]=H(c,s,n,r):c==null&&E(s)?e[o]=H({},s,n,r):c==null&&B(s)?e[o]=nt(s):(c===void 0||s!==void 0)&&(e[o]=s):e[o]=l}return e}function ot(e,...t){return at(e,...t,Ae)}var st=c(),ct={curveBasis:te,curveBasisClosed:re,curveBasisOpen:ae,curveBumpX:f,curveBumpY:ee,curveBundle:se,curveCardinalClosed:le,curveCardinalOpen:ue,curveCardinal:ce,curveCatmullRomClosed:me,curveCatmullRomOpen:ge,curveCatmullRom:fe,curveLinear:u,curveLinearClosed:ve,curveMonotoneX:we,curveMonotoneY:Te,curveNatural:Oe,curveStep:w,curveStepAfter:ke,curveStepBefore:T},lt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ut=e(function(e,t){let n=dt(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(n)){let e=n.map(e=>e.args);r(e),i=o(i,[...e])}else i=n.args;if(!i)return;let s=a(e,t),c=`config`;return i[c]!==void 0&&(s===`flowchart-v2`&&(s=`flowchart`),i[s]=i[c],delete i[c]),i},`detectInit`),dt=e(function(e,n=null){try{let r=RegExp(`[%]{2}(?![{]${lt.source})(?=[}][%]{2}).*
|
|
2
|
-
`,`ig`);e=e.trim().replace(r,``).replace(/'/gm,`"`),t.debug(`Detecting diagram directive${n===null?``:` type:`+n} based on the text:${e}`);let a,o=[];for(;(a=i.exec(e))!==null;)if(a.index===i.lastIndex&&i.lastIndex++,a&&!n||n&&a[1]?.match(n)||n&&a[2]?.match(n)){let e=a[1]?a[1]:a[2],t=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:e,args:t})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(r){return t.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),ft=e(function(e){return e.replace(i,``)},`removeDirectives`),pt=e(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`);function U(e,t){return e?ct[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}e(U,`interpolateToCurve`);function mt(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,st.sanitizeUrl)(n)}e(mt,`formatUrl`);var ht=e((e,...n)=>{let r=e.split(`.`),i=r.length-1,a=r[i],o=window;for(let n=0;n<i;n++)if(o=o[r[n]],!o){t.error(`Function name: ${e} not found in window`);return}o[a](...n)},`runFunc`);function W(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}e(W,`distance`);function gt(e){let t,n=0;return e.forEach(e=>{n+=W(e,t),t=e}),G(e,n/2)}e(gt,`traverseEdge`);function _t(e){return e.length===1?e[0]:gt(e)}e(_t,`calcLabelPosition`);var vt=e((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),G=e((e,t)=>{let n,r=t;for(let t of e){if(n){let e=W(t,n);if(e===0)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:vt((1-i)*n.x+i*t.x,5),y:vt((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),yt=e((e,n,r)=>{t.info(`our points ${JSON.stringify(n)}`),n[0]!==r&&(n=n.reverse());let i=G(n,25),a=e?10:5,o=Math.atan2(n[0].y-i.y,n[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(n[0].x+i.x)/2,s.y=-Math.cos(o)*a+(n[0].y+i.y)/2,s},`calcCardinalityPosition`);function bt(e,n,r){let i=structuredClone(r);t.info(`our points`,i),n!==`start_left`&&n!==`start_right`&&i.reverse();let a=G(i,25+e),o=10+e*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),c={x:0,y:0};return n===`start_left`?(c.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):n===`end_right`?(c.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):n===`end_left`?(c.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(c.x=Math.sin(s)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2),c}e(bt,`calcTerminalLabelPosition`);function K(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}e(K,`getStylesFromArray`);var xt=0,St=e(()=>(xt++,`id-`+Math.random().toString(36).substr(2,12)+`-`+xt),`generateId`);function Ct(e){let t=``;for(let n=0;n<e;n++)t+=`0123456789abcdef`.charAt(Math.floor(Math.random()*16));return t}e(Ct,`makeRandomHex`);var wt=e(e=>Ct(e.length),`random`),Tt=e(function(){return{x:0,y:0,fill:void 0,anchor:`start`,style:`#666`,width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:``}},`getTextObj`),Et=e(function(e,t){let n=t.text.replace(s.lineBreakRegex,` `),[,r]=Z(t.fontSize),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.style(`text-anchor`,t.anchor),i.style(`font-family`,t.fontFamily),i.style(`font-size`,r),i.style(`font-weight`,t.fontWeight),i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.attr(`fill`,t.fill),a.text(n),i},`drawSimpleText`),Dt=V((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`<br/>`},n),s.lineBreakRegex.test(e)))return e;let r=e.split(` `).filter(Boolean),i=[],a=``;return r.forEach((e,o)=>{let s=J(`${e} `,n),c=J(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=Ot(e,t,`-`,n);i.push(a,...r),a=o}else c+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(` `);o+1===r.length&&i.push(a)}),i.filter(e=>e!==``).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),Ot=V((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let c=`${o}${e}`;if(J(c,r)>=t){let e=s+1,t=i.length===e,r=`${c}${n}`;a.push(t?c:r),o=``}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function q(e,t){return Y(e,t).height}e(q,`calculateTextHeight`);function J(e,t){return Y(e,t).width}e(J,`calculateTextWidth`);var Y=V((e,t)=>{let{fontSize:r=12,fontFamily:i=`Arial`,fontWeight:a=400}=t;if(!e)return{width:0,height:0};let[,o]=Z(r),c=[`sans-serif`,i],l=e.split(s.lineBreakRegex),u=[],d=n(`body`);if(!d.remove)return{width:0,height:0,lineHeight:0};let f=d.append(`svg`);for(let e of c){let t=0,n={width:0,height:0,lineHeight:0};for(let r of l){let i=Tt();i.text=r||``;let s=Et(f,i).style(`font-size`,o).style(`font-weight`,a).style(`font-family`,e),c=(s._groups||s)[0][0].getBBox();if(c.width===0&&c.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,c.width)),t=Math.round(c.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}u.push(n)}return f.remove(),u[isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),kt=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{e(this,`InitIDGenerator`)}},X,At=e(function(e){return X||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),X.innerHTML=e,unescape(X.textContent)},`entityDecode`);function jt(e){return`str`in e}e(jt,`isDetailedError`);var Mt=e((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Z=e(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`);function Q(e,t){return ot({},e,t)}e(Q,`cleanAndMerge`);var Nt={assignWithDepth:o,wrapLabel:Dt,calculateTextHeight:q,calculateTextWidth:J,calculateTextDimensions:Y,cleanAndMerge:Q,detectInit:ut,detectDirective:dt,isSubstringInArray:pt,interpolateToCurve:U,calcLabelPosition:_t,calcCardinalityPosition:yt,calcTerminalLabelPosition:bt,formatUrl:mt,getStylesFromArray:K,generateId:St,random:wt,runFunc:ht,entityDecode:At,insertTitle:Mt,isLabelCoordinateInPath:$,parseFontSize:Z,InitIDGenerator:kt},Pt=e(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),Ft=e(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),It=e((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`);function Lt(e){return e??null}e(Lt,`handleUndefinedAttr`);function $(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}e($,`isLabelCoordinateInPath`);export{ce as $,Je as A,Ne as B,j as C,M as D,A as E,k as F,D as G,Ue as H,ze as I,w as J,ke as K,Me as L,Ke as M,We as N,Pe as O,Fe as P,fe as Q,Ie as R,N as S,Le as T,Be as U,He as V,Ve as W,we as X,Oe as Y,Te as Z,Dt as _,Ft as a,P as b,It as c,U as d,te as et,jt as f,Nt as g,ft as h,Q as i,Ge as j,qe as k,K as l,wt as m,q as n,ee as nt,Pt as o,Z as p,T as q,J as r,u as rt,St as s,Y as t,f as tt,Lt as u,B as v,Re as w,Ze as x,R as y,O as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{f as t,x as n}from"./chunk-WYO6CB5R-BQDKJ2Op.js";import{p as r}from"./chunk-ICXQ74PX-C1naCh7h.js";var i=e(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`);async function a(i,a){let o=i.getElementsByTagName(`img`);if(!o||o.length===0)return;let s=a.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...o].map(i=>new Promise(a=>{function o(){if(i.style.display=`flex`,i.style.flexDirection=`column`,s){let[e=t.fontSize]=r(n().fontSize?n().fontSize:window.getComputedStyle(document.body).fontSize),a=e*5+`px`;i.style.minWidth=a,i.style.maxWidth=a}else i.style.width=`100%`;a(i)}e(o,`setupImage`),setTimeout(()=>{i.complete&&o()}),i.addEventListener(`error`,o),i.addEventListener(`load`,o)})))}e(a,`configureLabelImages`);export{i as n,a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-Cz8bXOH0.js";import{i as n,n as r}from"./mermaid-layout-mOwqmNjF.js";var i=new Map,a=new Map,o=new Map,s=e(()=>{a.clear(),o.clear(),i.clear()},`clear`),c=e((e,n)=>{let r=a.get(n)||[];return t.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),l=e((e,n)=>{let r=a.get(n)||[];return t.info(`Descendants of `,n,` is `,r),t.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||c(e.v,n)||c(e.w,n)||r.includes(e.w):(t.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),u=e((e,n,r,i)=>{t.warn(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let o=n.children(e)||[];e!==i&&o.push(e),t.warn(`Copying (nodes) clusterId`,e,`nodes`,o),o.forEach(o=>{if(n.children(o).length>0)u(o,n,r,i);else{let s=n.node(o);t.info(`cp `,o,` to `,i,` with parent `,e),r.setNode(o,s),i!==n.parent(o)&&(t.warn(`Setting parent`,o,n.parent(o)),r.setParent(o,n.parent(o))),e!==i&&o!==e?(t.debug(`Setting parent`,o,e),r.setParent(o,e)):(t.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.debug(`Not Setting parent for node=`,o,`cluster!==rootId`,e!==i,`node!==clusterId`,o!==e));let u=n.edges(o);t.debug(`Copying Edges`,u),u.forEach(o=>{t.info(`Edge`,o);let s=n.edge(o.v,o.w,o.name);t.info(`Edge data`,s,i);try{if(l(o,i)){let e=a.get(i)||[],l=e.includes(o.v)||c(o.v,i)||o.v===i,u=e.includes(o.w)||c(o.w,i)||o.w===i;if(l&&u)t.info(`Copying as `,o.v,o.w,s,o.name),r.setEdge(o.v,o.w,s,o.name),t.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]));else{let e=l?i:o.v,r=u?i:o.w;t.info(`Rebinding cross-boundary edge as `,e,r,s,o.name),n.setEdge(e,r,s,o.name)}}else t.info(`Skipping copy of edge `,o.v,`-->`,o.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.error(e)}})}t.debug(`Removing node`,o),n.removeNode(o)})},`copy`),d=e((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)o.set(i,e),r=[...r,...d(i,t)];return r},`extractDescendants`),f=e((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),p=e((e,n,r)=>{let i=n.children(e);if(t.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=p(e,n,r),i=f(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),m=e(e=>!i.has(e)||!i.get(e).externalConnections?e:i.has(e)?i.get(e).id:e,`getAnchorId`),h=e((e,n)=>{if(!e||n>10){t.debug(`Opting out, no graph `);return}else t.debug(`Opting in, graph `);e.nodes().forEach(function(n){e.children(n).length>0&&(t.warn(`Cluster identified`,n,` Replacement id in edges: `,p(n,e,n)),a.set(n,d(n,e)),i.set(n,{id:p(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),o=e.edges();r.length>0?(t.debug(`Cluster identified`,n,a),o.forEach(e=>{c(e.v,n)^c(e.w,n)&&(t.warn(`Edge: `,e,` leaves cluster `,n),t.warn(`Descendants of XXX `,n,`: `,a.get(n)),i.get(n).externalConnections=!0)})):t.debug(`Not a cluster `,n,a)});for(let t of i.keys()){let n=i.get(t).id,r=e.parent(n);r!==t&&i.has(r)&&!i.get(r).externalConnections&&(i.get(t).id=r);let a=e.edges().some(e=>e.v===t);if(n&&i.get(t)?.externalConnections&&a&&y(e,n,t)){let r=b(e,t,e.parent(n));r&&(i.get(t).id=r)}}e.edges().forEach(function(n){let r=e.edge(n);t.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let a=n.v,o=n.w;if(t.warn(`Fix XXX`,i,`ids:`,n.v,n.w,`Translating: `,i.get(n.v),` --- `,i.get(n.w)),i.get(n.v)||i.get(n.w)){if(t.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),a=m(n.v),o=m(n.w),e.removeEdge(n.v,n.w,n.name),a!==n.v){let t=e.parent(a);i.get(t).externalConnections=!0,r.fromCluster=n.v}if(o!==n.w){let t=e.parent(o);i.get(t).externalConnections=!0,r.toCluster=n.w}t.warn(`Fix Replacing with XXX`,a,o,n.name),e.setEdge(a,o,r,n.name)}}),t.warn(`Adjusted Graph`,r(e)),g(e,0),t.trace(i)},`adjustClustersAndEdges`),g=e((e,a)=>{if(t.warn(`extractor - `,a,r(e),e.children(`D`)),a>10){t.error(`Bailing out`);return}let o=e.nodes(),s=!1;for(let t of o){let n=e.children(t);s||=n.length>0}if(!s){t.debug(`Done, no node has children`,e.nodes());return}t.debug(`Nodes = `,o,a);for(let s of o)if(t.debug(`Extracting node`,s,i,i.has(s)&&!i.get(s).externalConnections,!e.parent(s),e.node(s),e.children(`D`),` Depth `,a),!i.has(s))t.debug(`Not a cluster`,s,a);else if(i.get(s)?.clusterData?.explicitDir&&e.children(s)&&e.children(s).length>0){t.warn(`Cluster with explicit dir, creating subgraph for children`,s,a);let o=i.get(s).clusterData.dir,c=new n({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});u(s,e,c,s);let l=e.node(s)||{};e.setNode(s,{...l,clusterNode:!0,id:s,clusterData:i.get(s).clusterData,label:i.get(s).label,graph:c}),t.warn(`Subgraph for cluster with explicit dir created:`,s,r(c))}else if(!i.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){t.warn(`Cluster without external connections, without a parent and with children`,s,a);let o=e.graph().rankdir===`TB`?`LR`:`TB`;i.get(s)?.clusterData?.dir&&(o=i.get(s).clusterData.dir,t.warn(`Fixing dir`,i.get(s).clusterData.dir,o));let c=new n({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});u(s,e,c,s);let l=e.node(s)||{};e.setNode(s,{...l,clusterNode:!0,id:s,clusterData:i.get(s).clusterData,label:i.get(s).label,graph:c}),t.debug(`Old graph after copy`,r(e))}else t.warn(`Cluster ** `,s,` **not meeting the criteria !externalConnections:`,!i.get(s).externalConnections,` no parent: `,!e.parent(s),` children `,e.children(s)&&e.children(s).length>0,e.children(`D`),a),t.debug(i);o=e.nodes(),t.warn(`New list of nodes`,o);for(let n of o){let r=e.node(n);t.warn(` Now next level`,n,r),r?.clusterNode&&g(r.graph,a+1)}},`extractor`),_=e((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=_(e,e.children(t));n=[...n,...r]}),n},`sorter`),v=e(e=>_(e,e.children()),`sortNodesByHierarchy`),y=e((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=i.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),b=e((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||c(i,n))continue;let r=p(i,e,t);if(r&&!y(e,r,t))return r}return null},`findSafeAnchorNode`);export{v as a,p as i,s as n,i as r,h as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{p as t}from"./src-Cz8bXOH0.js";import{x as n}from"./chunk-WYO6CB5R-BQDKJ2Op.js";var r=e(e=>{let{securityLevel:r}=n(),i=t(`body`);return r===`sandbox`&&(i=t((t(`#i${e}`).node()?.contentDocument??document).body)),i.select(`#${e}`)},`selectSvgElement`);export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-Cz8bXOH0.js";import"./chunk-WYO6CB5R-BQDKJ2Op.js";import"./chunk-ICXQ74PX-C1naCh7h.js";import"./chunk-HOUHSVGY-BK-KWdyz.js";import"./chunk-Q4XR5HBZ-DyEQflKV.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-OGEWGWER-IbFWtSr3.js";import"./chunk-32BRIVSS-CSG4V8l0.js";import"./chunk-XXDRQBXY-DlK_iNGL.js";import"./chunk-VR4S4FIN-Be22cetl.js";import"./chunk-C7G6YPKG-hGGgXHCs.js";import"./chunk-ZGVPDNZ5-D0HhTn0b.js";import"./chunk-52WLFC77-hXd71QCM.js";import"./chunk-FWX5IMBZ-CBBxPYoo.js";import{i as t,n,r,t as i}from"./chunk-V7JOEXUC-7L1bQwIr.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-Cz8bXOH0.js";import"./chunk-WYO6CB5R-BQDKJ2Op.js";import"./chunk-ICXQ74PX-C1naCh7h.js";import"./chunk-HOUHSVGY-BK-KWdyz.js";import"./chunk-Q4XR5HBZ-DyEQflKV.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-OGEWGWER-IbFWtSr3.js";import"./chunk-32BRIVSS-CSG4V8l0.js";import"./chunk-XXDRQBXY-DlK_iNGL.js";import"./chunk-VR4S4FIN-Be22cetl.js";import"./chunk-C7G6YPKG-hGGgXHCs.js";import"./chunk-ZGVPDNZ5-D0HhTn0b.js";import"./chunk-52WLFC77-hXd71QCM.js";import"./chunk-FWX5IMBZ-CBBxPYoo.js";import{i as t,n,r,t as i}from"./chunk-V7JOEXUC-7L1bQwIr.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-Cz8bXOH0.js";import{D as n,H as r,K as i,U as a,a as o,b as s,c,f as l,v as u,w as d,y as f}from"./chunk-WYO6CB5R-BQDKJ2Op.js";import{i as p}from"./chunk-ICXQ74PX-C1naCh7h.js";import{t as m}from"./chunk-VAUOI2AC-IC4V3R7w.js";import{t as h}from"./chunk-JWPE2WC7-DVXcaiue.js";import{n as g}from"./mermaid-parser-CUZ6GPid.js";var _=e(()=>({domains:new Map,transitions:[]}),`createDefaultData`),v=_(),y={getDomains:e(()=>v.domains,`getDomains`),getTransitions:e(()=>v.transitions,`getTransitions`),setDomains:e(e=>{if(e)for(let t of e){let e=t.domain,n=(t.items??[]).map(e=>({label:e.label}));v.domains.set(e,{name:e,items:n})}},`setDomains`),setTransitions:e(e=>{e&&(v.transitions=e.filter(e=>e.from===e.to?(t.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},`setTransitions`),getConfig:e(()=>p({...l.cynefin,...s().cynefin}),`getConfig`),clear:e(()=>{o(),v=_()},`clear`),setAccTitle:a,getAccTitle:f,setDiagramTitle:i,getDiagramTitle:d,getAccDescription:u,setAccDescription:r},b=e(e=>{h(e,y),y.setDomains(e.domains),y.setTransitions(e.transitions)},`populate`),x={parse:e(async e=>{let n=await g(`cynefin`,e);t.debug(n),b(n)},`parse`)};function S(e){let t=e+1831565813|0;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}e(S,`seededRandom`);function C(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}e(C,`hashString`);function w(e,t){return typeof e==`number`&&Number.isFinite(e)&&e!==0?e:C(t)}e(w,`resolveSeed`);function T(e,t,n,r){let i=e/2,a=r??e*.015,o=t/7,s=[];for(let e=0;e<=7;e++){let t=S(n+e*17)*a*2-a;s.push({x:i+t,y:e*o})}let c=`M${s[0].x},${s[0].y}`;for(let e=0;e<s.length-1;e++){let t=s[e],r=s[e+1],i=(t.y+r.y)/2,o=e%2==0?1:-1,l=a*1.5*o*S(n+e*31+7),u=t.x+l,d=i,f=r.x-l;c+=` C${u},${d} ${f},${i} ${r.x},${r.y}`}return c}e(T,`generateFoldPath`);function E(e,t,n,r){let i=t/2,a=r??t*.015,o=e/7,s=[];for(let e=0;e<=7;e++){let t=S(n+e*23)*a*2-a;s.push({x:e*o,y:i+t})}let c=`M${s[0].x},${s[0].y}`;for(let e=0;e<s.length-1;e++){let t=s[e],r=s[e+1],i=(t.x+r.x)/2,o=e%2==0?1:-1,l=a*1.5*o*S(n+e*37+11),u=i,d=t.y+l,f=i,p=r.y-l;c+=` C${u},${d} ${f},${p} ${r.x},${r.y}`}return c}e(E,`generateHorizontalBoundary`);function D(e,t){let n=e/2,r=t*.5,i=t,a=e*.03;return[`M${n},${r}`,`C${n+a},${r+(i-r)*.2}`,`${n-a*1.5},${r+(i-r)*.55}`,`${n+a*.5},${r+(i-r)*.75}`,`C${n-a},${r+(i-r)*.85}`,`${n+a*.3},${r+(i-r)*.95}`,`${n},${i}`].join(` `)}e(D,`generateCliffPath`);function O(e,t,n,r){return[`M${e-n},${t}`,`A${n},${r} 0 1,1 ${e+n},${t}`,`A${n},${r} 0 1,1 ${e-n},${t}`,`Z`].join(` `)}e(O,`generateConfusionPath`);var k={complex:{model:`Probe → Sense → Respond`,practice:`Emergent Practices`},complicated:{model:`Sense → Analyse → Respond`,practice:`Good Practices`},clear:{model:`Sense → Categorise → Respond`,practice:`Best Practices`},chaotic:{model:`Act → Sense → Respond`,practice:`Novel Practices`},confusion:{model:``,practice:`Disorder`}},A=e((e,t)=>{let n=e/2,r=t/2;return{complex:{cx:n/2,cy:r/2,x:0,y:0,w:n,h:r},complicated:{cx:n+n/2,cy:r/2,x:n,y:0,w:n,h:r},chaotic:{cx:n/2,cy:r+r/2,x:0,y:r,w:n,h:r},clear:{cx:n+n/2,cy:r+r/2,x:n,y:r,w:n,h:r},confusion:{cx:n,cy:r,x:n*.7,y:r*.7,w:n*.6,h:r*.6}}},`getDomainLayouts`),j=e(()=>p(n(),s().themeVariables).cynefin,`getCynefinDomainColors`),M=3,N={draw:e((e,n,r,i)=>{let a=i.db,o=a.getDomains(),s=a.getTransitions(),l=a.getDiagramTitle(),u=a.getAccTitle(),d=a.getAccDescription(),f=a.getConfig(),p=j();t.debug(`Rendering Cynefin diagram`);let h=f.width,g=f.height,_=f.padding,v=f.showDomainDescriptions,y=f.boundaryAmplitude,b=h+_*2,x=g+_*2,S={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},C=m(n);c(C,x,b,f.useMaxWidth??!0),C.attr(`viewBox`,`0 0 ${b} ${x}`),u&&C.append(`title`).text(u),d&&C.append(`desc`).text(d);let N=C.append(`g`).attr(`transform`,`translate(${_}, ${_})`),P=A(h,g),F=w(f.seed,n),I=N.append(`g`).attr(`class`,`cynefin-backgrounds`),L=[`complex`,`complicated`,`chaotic`,`clear`];for(let e of L){let t=P[e];I.append(`rect`).attr(`class`,`cynefinDomain`).attr(`x`,t.x).attr(`y`,t.y).attr(`width`,t.w).attr(`height`,t.h).attr(`fill`,S[e]).attr(`fill-opacity`,.4).attr(`stroke`,`none`)}let R=N.append(`g`).attr(`class`,`cynefin-boundaries`);R.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,T(h,g,F,y)).attr(`fill`,`none`),R.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,E(h,g,F+100,y)).attr(`fill`,`none`),R.append(`path`).attr(`class`,`cynefinCliff`).attr(`d`,D(h,g)).attr(`fill`,`none`);let z=h*.15,B=g*.15;N.append(`path`).attr(`class`,`cynefinConfusion`).attr(`d`,O(h/2,g/2,z,B)).attr(`fill`,S.confusion).attr(`fill-opacity`,.5);let V=N.append(`g`).attr(`class`,`cynefin-labels`);for(let e of L){let t=P[e];V.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,t.cx).attr(`y`,v?t.cy-30:t.cy).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(e.charAt(0).toUpperCase()+e.slice(1))}if(V.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,h/2).attr(`y`,v?g/2-10:g/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(`Confusion`),v){let e=N.append(`g`).attr(`class`,`cynefin-subtitles`);for(let t of L){let n=P[t],r=k[t];e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy-10).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.model),e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy+5).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.practice)}e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,h/2).attr(`y`,g/2+8).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(k.confusion.practice)}let H=N.append(`g`).attr(`class`,`cynefin-items`);for(let e of[`complex`,`complicated`,`chaotic`,`clear`,`confusion`]){let t=o.get(e);if(!t||t.items.length===0)continue;let n=P[e],r=e===`confusion`,i=t.items,a=0;r&&t.items.length>M&&(a=t.items.length-M,i=t.items.slice(0,M));let s;if(r){let e=v?22:14;s=n.cy+e}else s=n.cy+(v?25:15);if([...i].forEach((t,r)=>{let i=s+r*30,a=H.append(`g`),o=a.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,26/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(t.label),c=t.label.length*7,l=o.node();if(l&&typeof l.getBBox==`function`){let e=l.getBBox();e.width>0&&(c=e.width)}let u=c+20,d=n.cx-u/2;a.attr(`transform`,`translate(${d}, ${i})`),a.insert(`rect`,`text`).attr(`class`,`cynefinItem`).attr(`x`,0).attr(`y`,0).attr(`width`,u).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,S[e]).attr(`fill-opacity`,.95),o.attr(`x`,u/2).attr(`y`,26/2)}),a>0){let t=s+i.length*30,r=`+${a} more`,o=H.append(`g`),c=o.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,26/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(r),l=r.length*7,u=c.node();if(u&&typeof u.getBBox==`function`){let e=u.getBBox();e.width>0&&(l=e.width)}let d=l+20,f=n.cx-d/2;o.attr(`transform`,`translate(${f}, ${t})`),o.insert(`rect`,`text`).attr(`class`,`cynefinItemOverflow`).attr(`x`,0).attr(`y`,0).attr(`width`,d).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,S[e]).attr(`fill-opacity`,.6),c.attr(`x`,d/2).attr(`y`,26/2)}}if(s.length>0){let e=C.select(`defs`).empty()?C.append(`defs`):C.select(`defs`),r=`cynefin-arrow-${n}`;e.append(`marker`).attr(`id`,r).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`cynefinArrowHead`);let i=N.append(`g`).attr(`class`,`cynefin-arrows`);s.forEach(e=>{let n=P[e.from],a=P[e.to];if(!n||!a)return;if(e.from===e.to){t.warn(`Cynefin renderer: skipping self-loop on domain "${e.from}"`);return}let o=n.cx,s=n.cy,c=a.cx,l=a.cy,u=(o+c)/2,d=(s+l)/2,f=c-o,p=l-s,m=Math.sqrt(f*f+p*p),h=m*.15,g=-p/m,_=f/m,v=u+g*h,y=d+_*h;i.append(`path`).attr(`class`,`cynefinArrowLine`).attr(`d`,`M${o},${s} Q${v},${y} ${c},${l}`).attr(`fill`,`none`).attr(`marker-end`,`url(#${r})`),e.label&&i.append(`text`).attr(`class`,`cynefinArrowLabel`).attr(`x`,v).attr(`y`,y-6).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`auto`).text(e.label)})}l&&N.append(`text`).attr(`class`,`cynefinTitle`).attr(`x`,h/2).attr(`y`,-_/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(l)},`draw`)},P=e(()=>p(n(),s().themeVariables).cynefin,`getCynefinTheme`),F={parser:x,db:y,renderer:N,styles:e(()=>{let e=P();return`
|
|
2
|
-
.cynefinDomain {
|
|
3
|
-
stroke: none;
|
|
4
|
-
}
|
|
5
|
-
.cynefinDomainLabel {
|
|
6
|
-
font-size: ${e.domainFontSize}px;
|
|
7
|
-
font-weight: bold;
|
|
8
|
-
fill: ${e.labelColor};
|
|
9
|
-
}
|
|
10
|
-
.cynefinSubtitle {
|
|
11
|
-
font-size: ${e.itemFontSize-1}px;
|
|
12
|
-
fill: ${e.textColor};
|
|
13
|
-
font-style: italic;
|
|
14
|
-
}
|
|
15
|
-
.cynefinItem {
|
|
16
|
-
fill-opacity: 0.95;
|
|
17
|
-
stroke: ${e.boundaryColor};
|
|
18
|
-
stroke-width: 1;
|
|
19
|
-
}
|
|
20
|
-
.cynefinItemText {
|
|
21
|
-
font-size: ${e.itemFontSize}px;
|
|
22
|
-
fill: ${e.textColor};
|
|
23
|
-
}
|
|
24
|
-
.cynefinItemOverflow {
|
|
25
|
-
fill-opacity: 0.6;
|
|
26
|
-
stroke: ${e.boundaryColor};
|
|
27
|
-
stroke-width: 1;
|
|
28
|
-
stroke-dasharray: 3 2;
|
|
29
|
-
}
|
|
30
|
-
.cynefinBoundary {
|
|
31
|
-
stroke: ${e.boundaryColor};
|
|
32
|
-
stroke-width: ${e.boundaryWidth};
|
|
33
|
-
stroke-dasharray: 6 3;
|
|
34
|
-
}
|
|
35
|
-
.cynefinCliff {
|
|
36
|
-
stroke: ${e.cliffColor};
|
|
37
|
-
stroke-width: ${e.cliffWidth};
|
|
38
|
-
}
|
|
39
|
-
.cynefinConfusion {
|
|
40
|
-
stroke: ${e.boundaryColor};
|
|
41
|
-
stroke-width: 1.5;
|
|
42
|
-
stroke-dasharray: 4 2;
|
|
43
|
-
}
|
|
44
|
-
.cynefinArrowLine {
|
|
45
|
-
stroke: ${e.arrowColor};
|
|
46
|
-
stroke-width: ${e.arrowWidth};
|
|
47
|
-
fill: none;
|
|
48
|
-
}
|
|
49
|
-
.cynefinArrowHead {
|
|
50
|
-
fill: ${e.arrowColor};
|
|
51
|
-
stroke: none;
|
|
52
|
-
}
|
|
53
|
-
.cynefinArrowLabel {
|
|
54
|
-
font-size: ${e.itemFontSize-1}px;
|
|
55
|
-
fill: ${e.textColor};
|
|
56
|
-
}
|
|
57
|
-
.cynefinTitle {
|
|
58
|
-
font-size: ${e.domainFontSize+2}px;
|
|
59
|
-
font-weight: bold;
|
|
60
|
-
fill: ${e.labelColor};
|
|
61
|
-
}
|
|
62
|
-
`},`styles`)};export{F as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function t(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return e=t(Math.abs(e)),e?e[1]:NaN}function r(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function i(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=a.exec(e)))throw Error(`invalid format: `+e);var t;return new s({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}o.prototype=s.prototype;function s(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function c(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var l;function u(e,n){var r=t(e,n);if(!r)return l=void 0,e.toPrecision(n);var i=r[0],a=r[1],o=a-(l=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=i.length;return o===s?i:o>s?i+Array(o-s+1).join(`0`):o>0?i.slice(0,o)+`.`+i.slice(o):`0.`+Array(1-o).join(`0`)+t(e,Math.max(0,n+o-1))[0]}function d(e,n){var r=t(e,n);if(!r)return e+``;var i=r[0],a=r[1];return a<0?`0.`+Array(-a).join(`0`)+i:i.length>a+1?i.slice(0,a+1)+`.`+i.slice(a+1):i+Array(a-i.length+2).join(`0`)}var f={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>d(e*100,t),r:d,s:u,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function p(e){return e}var m=Array.prototype.map,h=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function g(e){var t=e.grouping===void 0||e.thousands===void 0?p:r(m.call(e.grouping,Number),e.thousands+``),a=e.currency===void 0?``:e.currency[0]+``,s=e.currency===void 0?``:e.currency[1]+``,u=e.decimal===void 0?`.`:e.decimal+``,d=e.numerals===void 0?p:i(m.call(e.numerals,String)),g=e.percent===void 0?`%`:e.percent+``,_=e.minus===void 0?`−`:e.minus+``,v=e.nan===void 0?`NaN`:e.nan+``;function y(e,n){e=o(e);var r=e.fill,i=e.align,p=e.sign,m=e.symbol,y=e.zero,b=e.width,x=e.comma,S=e.precision,C=e.trim,w=e.type;w===`n`?(x=!0,w=`g`):f[w]||(S===void 0&&(S=12),C=!0,w=`g`),(y||r===`0`&&i===`=`)&&(y=!0,r=`0`,i=`=`);var T=(n&&n.prefix!==void 0?n.prefix:``)+(m===`$`?a:m===`#`&&/[boxX]/.test(w)?`0`+w.toLowerCase():``),E=(m===`$`?s:/[%p]/.test(w)?g:``)+(n&&n.suffix!==void 0?n.suffix:``),D=f[w],O=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function k(e){var n=T,a=E,o,s,f;if(w===`c`)a=D(e)+a,e=``;else{e=+e;var m=e<0||1/e<0;if(e=isNaN(e)?v:D(Math.abs(e),S),C&&(e=c(e)),m&&+e==0&&p!==`+`&&(m=!1),n=(m?p===`(`?p:_:p===`-`||p===`(`?``:p)+n,a=(w===`s`&&!isNaN(e)&&l!==void 0?h[8+l/3]:``)+a+(m&&p===`(`?`)`:``),O){for(o=-1,s=e.length;++o<s;)if(f=e.charCodeAt(o),48>f||f>57){a=(f===46?u+e.slice(o+1):e.slice(o))+a,e=e.slice(0,o);break}}}x&&!y&&(e=t(e,1/0));var g=n.length+e.length+a.length,k=g<b?Array(b-g+1).join(r):``;switch(x&&y&&(e=t(k+e,k.length?b-a.length:1/0),k=``),i){case`<`:e=n+e+a+k;break;case`=`:e=n+k+e+a;break;case`^`:e=k.slice(0,g=k.length>>1)+n+e+a+k.slice(g);break;default:e=k+n+e+a;break}return d(e)}return k.toString=function(){return e+``},k}function b(e,t){var r=Math.max(-8,Math.min(8,Math.floor(n(t)/3)))*3,i=10**-r,a=y((e=o(e),e.type=`f`,e),{suffix:h[8+r/3]});return function(e){return a(i*e)}}return{format:y,formatPrefix:b}}var _,v,y;b({thousands:`,`,grouping:[3],currency:[`$`,``]});function b(e){return _=g(e),v=_.format,y=_.formatPrefix,_}export{n as i,y as n,o as r,v as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{a as t,r as n}from"./bundle-mjs-CO994-RQ.js";import{i as r,o as i,r as a,t as o}from"./switch-DeaHMo5o.js";import{a as s,i as c,n as l,r as u,t as d}from"./desktop-client-bYADwT3y.js";import{D as f,E as p,K as m,O as h,bt as g,c as _,dt as v,g as y,ht as b,k as x,l as ee,lt as te,mt as ne,o as re,ut as S,wt as C,yt as ie}from"./index-Cw6Kg0MD.js";import{n as w,t as T}from"./badge-tZD_60cv.js";var E=g(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),D=g(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),ae=g(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),O=e(t(),1),k=`/api/marketplace/catalog`,A={version:1,counts:{total:0,plugins:0,skills:0,mcps:0},tags:[],entries:[]};function oe(e){return e===`mcp`||e===`skill`||e===`plugin`}function j(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function M(e){return typeof e==`number`&&Number.isFinite(e)?e:0}function N(e){if(!Array.isArray(e))return;let t=e.map(e=>{if(!e||typeof e!=`object`)return null;let t=e;if(typeof t.name!=`string`)return null;let n={name:t.name};return typeof t.required==`boolean`&&(n.required=t.required),typeof t.description==`string`&&(n.description=t.description),typeof t.url==`string`&&(n.url=t.url),n}).filter(e=>e!==null);return t.length>0?t:void 0}async function se(){let e=await fetch(k,{headers:{Accept:`application/json`}});if(!e.ok)throw Error(`Failed to fetch marketplace: ${e.status}`);let t=await e.json(),n=typeof t?.baseUrl==`string`?t.baseUrl:void 0,r=typeof t?.counts==`object`&&t.counts!==null?t.counts:{},i=Array.isArray(t?.tags)?t.tags.map(e=>{if(!e||typeof e!=`object`)return null;let t=e;return typeof t.id!=`string`||typeof t.label!=`string`?null:{id:t.id,label:t.label,count:M(t.count)}}).filter(e=>e!==null):[],a=Array.isArray(t?.entries)?t.entries.map(e=>{if(!e||typeof e!=`object`)return null;let t=e,n=typeof t.install==`object`&&t.install!==null?t.install:{};return typeof t.id!=`string`||!oe(t.type)||typeof t.name!=`string`||typeof t.tagline!=`string`||typeof t.description!=`string`||typeof n.command!=`string`?null:{id:t.id,type:t.type,name:t.name,featured:typeof t.featured==`boolean`?t.featured:void 0,tagline:t.tagline,description:t.description,tags:j(t.tags),install:{args:j(n.args),command:n.command,env:N(n.env),notes:typeof n.notes==`string`?n.notes:void 0}}}).filter(e=>e!==null&&e.install.args.length>0):[];return{version:M(t?.version)||A.version,generatedAt:typeof t?.generatedAt==`string`?t.generatedAt:void 0,baseUrl:n,counts:{total:M(r.total)||a.length,plugins:M(r.plugins),skills:M(r.skills),mcps:M(r.mcps)},tags:i,entries:a}}var P=n(),F=3e5,ce={fontFamily:`ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace`},I={mcp:{title:`MCP Servers`,description:`Install Model Context Protocol servers into this CLI environment.`,emptyInstalled:`No MCP servers installed.`,emptyCatalog:`No MCP servers match the current filters.`,icon:v},skill:{title:`Skills`,description:`Install skills globally for Cline.`,emptyInstalled:`No skills installed.`,emptyCatalog:`No skills match the current filters.`,icon:l},plugin:{title:`Plugins`,description:`Install plugins into this CLI environment.`,emptyInstalled:`No plugins installed.`,emptyCatalog:`No plugins match the current filters.`,icon:D}},le={mcp:`cline mcp install`,plugin:`cline plugin install`,skill:`cline skill add`};function L(e){return`${e.type}:${e.id}`}function R(e,t){return Number(!!t.featured)-Number(!!e.featured)}function z(e){return e.trim().toLowerCase()}function B(e){return new Set([e.id,e.name,...e.install.args].map(z).filter(Boolean))}function V(e,t){let n=B(e);return t.matchValues.map(z).filter(Boolean).some(e=>n.has(e))}function H(e,t){return[e.name,e.tagline,e.description,e.type,...e.tags.map(e=>t.get(e)??e)].join(` `).toLowerCase()}function U(e){if(e?.status===`installed`||e?.status===`uninstalled`||e?.status===`failed`)return e.message}function W({actionState:e,entry:t}){let n=t.install.env?.filter(e=>e.required!==!1)??[],r=t.install.env?.filter(e=>e.required===!1)??[];return n.length>0||r.length>0||t.install.notes||e?.status===`failed`?(0,P.jsxs)(`div`,{className:`grid gap-3 border-t pt-3`,"data-marketplace-entry-details":!0,children:[n.length>0||r.length>0?(0,P.jsxs)(`div`,{className:`rounded-lg border border-amber-500/30 bg-amber-500/10 p-3`,children:[(0,P.jsx)(`p`,{className:`text-sm font-medium text-amber-800 dark:text-amber-200`,children:`Environment setup needed`}),(0,P.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-amber-800/80 dark:text-amber-100/80`,children:`Add these values to your Cline/plugin environment after install.`}),(0,P.jsx)(`div`,{className:`mt-3 grid gap-2`,children:[...n,...r].map(e=>(0,P.jsxs)(`div`,{className:`rounded-md border border-amber-500/20 bg-background/60 p-2`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,P.jsx)(`code`,{className:`font-mono text-xs font-semibold`,children:(0,P.jsx)(`span`,{style:ce,children:e.name})}),(0,P.jsx)(T,{variant:`outline`,children:e.required===!1?`Optional`:`Required`})]}),e.description?(0,P.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:e.description}):null,e.url?(0,P.jsxs)(`a`,{className:`mt-1 inline-flex items-center gap-1 text-xs text-primary hover:underline`,href:e.url,rel:`noreferrer`,target:`_blank`,children:[`Get value`,(0,P.jsx)(s,{className:`size-3`})]}):null]},e.name))})]}):null,t.install.notes?(0,P.jsx)(`p`,{className:`rounded-lg border bg-muted/30 p-3 text-xs leading-5 text-muted-foreground`,children:t.install.notes}):null,e?.status===`failed`?(0,P.jsx)(`div`,{className:`max-h-44 overflow-auto rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive`,children:e.message}):null]}):null}function G({actionState:e,entry:t,expanded:n,installed:r,installedStatusReady:i,onInstall:a,onToggleExpanded:o,onUninstall:s,matchedLocalItems:c=[],showFeatured:l=!0,showTags:d=!0,sourceLabel:f,tagLabels:p}){let h=I[t.type].icon,g=e?.status===`installing`||e?.status===`uninstalling`,_=!!t.install.env?.length,v=_||!!t.install.notes||e?.status===`failed`,y=U(e),b=e=>{if(e.stopPropagation(),r){s(t);return}a(t)},x=i?e?.status===`installing`?`Installing...`:e?.status===`uninstalling`?`Uninstalling...`:r?`Uninstall`:`Install`:`Checking...`,ee=y?(0,P.jsx)(`output`,{className:C(`text-xs`,e?.status===`failed`?`text-destructive`:`text-muted-foreground`),children:y}):_?(0,P.jsx)(`span`,{className:`text-xs text-amber-700 dark:text-amber-300`,children:`Requires setup after install`}):null,te=(0,P.jsxs)(m,{disabled:!i||g,onClick:b,size:`sm`,type:`button`,variant:r?`destructive`:`default`,children:[g||!i?(0,P.jsx)(w,{}):null,r&&!g?(0,P.jsx)(S,{className:`size-4`}):null,x]}),ne=(0,P.jsxs)(P.Fragment,{children:[r?null:(0,P.jsx)(`div`,{className:`absolute top-4 right-4`,"data-marketplace-entry-interactive":!0,children:te}),(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsxs)(`div`,{className:`flex min-w-0 items-start justify-between gap-2`,children:[(0,P.jsxs)(`div`,{className:C(`flex min-w-0 flex-1 items-center gap-2`,!r&&`pr-24`),children:[(0,P.jsx)(h,{className:`h-4 w-4 shrink-0 text-primary`}),(0,P.jsx)(`h2`,{className:`min-w-0 truncate text-sm font-semibold text-foreground`,children:t.name}),l&&t.featured?(0,P.jsxs)(T,{className:`border border-violet-500/20 bg-violet-500/10 text-violet-700 dark:text-violet-300`,children:[(0,P.jsx)(u,{className:`fill-current`}),`Featured`]}):null]}),(0,P.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center justify-end gap-2`,children:[f?(0,P.jsx)(T,{variant:`outline`,className:`shrink-0 text-muted-foreground`,children:f}):null,c.map(e=>e.renderMatchedBadges?(0,P.jsx)(`span`,{className:`contents`,children:e.renderMatchedBadges()},`${e.key}:badges`):null),c.map(e=>e.renderMatchedControls?(0,P.jsx)(`span`,{className:`contents`,"data-marketplace-entry-interactive":!0,children:e.renderMatchedControls()},`${e.key}:controls`):null)]})]}),c.some(e=>e.renderMatchedMeta)?(0,P.jsx)(`div`,{className:`mt-1 grid gap-1`,children:c.map(e=>e.renderMatchedMeta?(0,P.jsx)(`div`,{children:e.renderMatchedMeta()},`${e.key}:meta`):null)}):null]}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-stretch sm:justify-between`,children:[(0,P.jsxs)(`div`,{className:`grid min-w-0 flex-1 gap-2`,children:[d&&t.tags.length>0?(0,P.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:t.tags.slice(0,5).map(e=>(0,P.jsx)(T,{variant:`outline`,className:`max-w-full text-muted-foreground`,children:(0,P.jsx)(`span`,{className:`truncate`,children:p.get(e)??e})},e))}):null,(0,P.jsx)(`p`,{className:`line-clamp-2 text-xs leading-5 text-muted-foreground`,children:t.description}),ee]}),r?(0,P.jsx)(`div`,{className:`flex shrink-0 flex-col items-start gap-1 sm:items-end sm:justify-end`,children:te}):null]}),c.some(e=>e.renderMatchedDetails)?(0,P.jsx)(`div`,{className:`grid gap-2`,"data-marketplace-entry-details":!0,children:c.map(e=>e.renderMatchedDetails?(0,P.jsx)(`div`,{children:e.renderMatchedDetails()},e.key):null)}):null,n&&v?(0,P.jsx)(W,{actionState:e,entry:t}):null]});return v?(0,P.jsx)(`div`,{"aria-expanded":n,"aria-label":`${n?`Collapse`:`Expand`} ${t.name}`,className:`relative grid cursor-pointer gap-2 rounded-lg border bg-card p-4 text-left transition-colors hover:bg-accent/20 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none`,onClick:e=>{e.target instanceof HTMLElement&&e.target.closest(`[data-marketplace-entry-details], [data-marketplace-entry-interactive]`)||o(t)},onKeyDown:e=>{e.target===e.currentTarget&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o(t))},role:`button`,tabIndex:0,children:ne}):(0,P.jsx)(`div`,{className:`relative grid gap-2 rounded-lg border bg-card p-4 text-left transition-colors hover:bg-accent/20`,children:ne})}function ue({active:e,count:t,onClick:n,tag:r}){return(0,P.jsxs)(m,{"aria-pressed":e,onClick:n,size:`sm`,type:`button`,variant:e?`default`:`outline`,children:[(0,P.jsx)(`span`,{className:`truncate`,children:r.label}),(0,P.jsx)(`span`,{className:`rounded bg-background/30 px-1.5 py-0.5 text-xs`,children:t})]})}function K({actionStates:e,emptyMessage:t,entries:n,expandedEntryKey:r,headerContent:i,installedEntryKeys:a,installedStatusReady:o,localOnlyInstalledItems:s=[],matchedLocalItemsByEntryKey:c,onInstall:l,onToggleExpanded:u,onUninstall:d,showFeaturedBadges:f=!0,showEntryTags:p=!0,sourceLabel:m,tagLabels:h,title:g}){let _=n.length+s.length;return(0,P.jsxs)(`section`,{className:`grid gap-3`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,P.jsx)(`h2`,{className:`text-base font-semibold text-foreground`,children:g}),(0,P.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:_})]}),i,_>0?(0,P.jsxs)(`div`,{className:`grid gap-3`,children:[s.map(e=>e.render()),n.map(t=>{let n=L(t);return(0,P.jsx)(G,{actionState:e.get(n),entry:t,expanded:r===n,installed:a.has(n),installedStatusReady:o,onInstall:l,onToggleExpanded:u,onUninstall:d,matchedLocalItems:c?.get(n)??[],showFeatured:f,showTags:p,sourceLabel:m,tagLabels:h},n)})]}):(0,P.jsx)(`div`,{className:`rounded-lg border border-dashed bg-card p-6 text-center text-sm text-muted-foreground`,children:t})]})}function de({chrome:e=`page`,installedItems:t,onInstalledItemsChanged:n,primitive:r}){let[i,o]=(0,O.useState)(null),[s,c]=(0,O.useState)(null),[l,u]=(0,O.useState)(``),[f,p]=(0,O.useState)(null),[h,g]=(0,O.useState)(null),[v,b]=(0,O.useState)(()=>new Set),[x,te]=(0,O.useState)(()=>new Map),[ne,S]=(0,O.useState)(`loading`);(0,O.useEffect)(()=>{let e=!1;return(async()=>{try{e||S(`loading`);let t=await se();e||(o(t),c(null));try{let n=await d.invoke(`list_marketplace_installed_entries`,{entries:t.entries});e||(b(new Set(n.installedKeys)),S(`ready`))}catch{e||S(`ready`)}}catch(t){e||(c(t instanceof Error?t.message:String(t)),S(`ready`))}})(),()=>{e=!0}},[]);let C=I[r],ie=C.icon,T=(0,O.useMemo)(()=>new Map(i?.tags.map(e=>[e.id,e.label])??[]),[i?.tags]),E=(0,O.useMemo)(()=>(i?.entries.filter(e=>e.type===r)??[]).sort(R),[i?.entries,r]),D=(0,O.useMemo)(()=>{let e=l.trim().toLowerCase();return E.filter(t=>e.length===0||H(t,T).includes(e))},[E,l,T]),ae=(0,O.useMemo)(()=>D.filter(e=>v.has(L(e))),[D,v]),k=(0,O.useMemo)(()=>D.filter(e=>!v.has(L(e))),[D,v]),A=(0,O.useMemo)(()=>{let e=new Map;for(let t of k)for(let n of t.tags)e.set(n,(e.get(n)??0)+1);return e},[k]),oe=(0,O.useMemo)(()=>(i?.tags??[]).filter(e=>(A.get(e.id)??0)>0),[i?.tags,A]),j=(0,O.useMemo)(()=>k.filter(e=>!f||e.tags.includes(f)),[k,f]),M=(0,O.useMemo)(()=>{let e=new Map;for(let n of t??[])for(let t of ae){let r=L(t);if(!V(t,n))continue;let i=e.get(r)??[];i.push(n),e.set(r,i)}return e},[ae,t]),N=(0,O.useMemo)(()=>{let e=new Set,n=E.filter(e=>v.has(L(e)));for(let r of t??[])n.some(e=>V(e,r))&&e.add(r.key);return e},[v,t,E]),ce=(0,O.useMemo)(()=>{let e=l.trim().toLowerCase();return(t??[]).filter(t=>N.has(t.key)?!1:e.length===0||t.matchValues.map(z).some(t=>t.includes(e)))},[t,N,l]),B=ne===`ready`,U=oe.length>0?(0,P.jsxs)(`div`,{className:`flex flex-col gap-2 md:flex-row md:items-center md:justify-between`,children:[(0,P.jsx)(`div`,{className:`flex gap-2 overflow-x-auto pb-1`,children:oe.map(e=>(0,P.jsx)(ue,{active:f===e.id,count:A.get(e.id)??0,onClick:()=>p(t=>t===e.id?null:e.id),tag:e},e.id))}),(0,P.jsxs)(`div`,{className:`flex min-h-8 shrink-0 items-center gap-2 text-sm text-muted-foreground`,children:[(0,P.jsx)(`span`,{className:`font-medium text-foreground`,children:j.length}),(0,P.jsx)(`span`,{children:j.length===1?`result`:`results`}),f?(0,P.jsx)(m,{onClick:()=>p(null),size:`sm`,type:`button`,variant:`ghost`,children:`Clear filters`}):null]})]}):null,W=(e,t)=>{let n=L(e);te(e=>{let r=new Map(e);return r.set(n,t),r})},G=e=>{b(t=>new Set(t).add(L(e)))},de=e=>{b(t=>{let n=new Set(t);return n.delete(L(e)),n})},fe=e=>{let t=L(e);g(e=>e===t?null:t)},pe=async e=>{let t=L(e),r=x.get(t);if(!(r?.status===`installing`||r?.status===`uninstalling`)){g(t),W(e,{status:`installing`});try{let t=await d.invoke(`install_marketplace_entry`,{entry:e},{timeoutMs:F});W(e,{status:`installed`,message:t.message}),G(e),await n?.()}catch(t){W(e,{status:`failed`,message:t instanceof Error?t.message:String(t)})}}},me=async e=>{let t=L(e),r=x.get(t);if(!(r?.status===`installing`||r?.status===`uninstalling`)){g(t),W(e,{status:`uninstalling`});try{let t=await d.invoke(`uninstall_marketplace_entry`,{entry:e},{timeoutMs:F});W(e,{status:`uninstalled`,message:t.message}),de(e),await n?.()}catch(t){W(e,{status:`failed`,message:t instanceof Error?t.message:String(t)})}}},q=(0,P.jsxs)(`div`,{className:`grid gap-6`,children:[e===`page`?(0,P.jsx)(ee,{description:C.description,icon:ie,title:C.title,meta:(0,P.jsx)(re,{children:le[r]}),actions:i?.generatedAt?(0,P.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Updated`,` `,new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`,year:`numeric`}).format(new Date(i.generatedAt))]}):null}):null,!i&&!s?(0,P.jsxs)(`div`,{className:`flex min-h-80 items-center justify-center rounded-lg border bg-card text-sm text-muted-foreground`,children:[(0,P.jsx)(w,{className:`mr-2`}),`Loading marketplace...`]}):null,i&&!B?(0,P.jsxs)(`div`,{className:`flex min-h-80 items-center justify-center rounded-lg border bg-card text-sm text-muted-foreground`,children:[(0,P.jsx)(w,{className:`mr-2`}),`Checking installed status...`]}):null,s?(0,P.jsx)(`div`,{className:`rounded-lg border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive`,children:s}):null,i&&B?(0,P.jsxs)(`div`,{className:`grid gap-6`,children:[(0,P.jsx)(`div`,{className:`grid gap-3`,children:(0,P.jsx)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-center`,children:(0,P.jsxs)(`div`,{className:`relative block flex-1`,children:[(0,P.jsx)(a,{className:`pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`}),(0,P.jsx)(y,{"aria-label":`Search ${C.title}`,className:`h-10 pl-8`,onChange:e=>u(e.target.value),placeholder:`Search ${C.title.toLowerCase()}`,value:l})]})})}),(0,P.jsx)(K,{actionStates:x,emptyMessage:C.emptyInstalled,entries:ae,expandedEntryKey:h,installedEntryKeys:v,installedStatusReady:B,localOnlyInstalledItems:ce,matchedLocalItemsByEntryKey:M,onInstall:pe,onToggleExpanded:fe,onUninstall:me,showFeaturedBadges:!1,showEntryTags:!1,sourceLabel:`Marketplace`,tagLabels:T,title:`Installed`}),(0,P.jsx)(K,{actionStates:x,emptyMessage:C.emptyCatalog,entries:j,expandedEntryKey:h,headerContent:U,installedEntryKeys:v,installedStatusReady:B,onInstall:pe,onToggleExpanded:fe,onUninstall:me,tagLabels:T,title:`Marketplace`})]}):null]});return e===`embedded`?q:(0,P.jsx)(_,{children:q})}var fe={Rules:`Review project and global rule files that shape Cline behavior.`,Hooks:`Inspect hook configuration and recent execution status.`,MCP:`Manage installed MCP servers and add new servers from the marketplace.`,Skills:`Manage installed skills and add new skills from the marketplace.`,Agents:`Review configured agents discovered from local settings.`,Plugins:`Manage installed plugins and add new plugins from the marketplace.`,Tools:`Inspect built-in tools and tools contributed by plugins.`},pe={Rules:`cline config rules`,Hooks:`cline config hooks`,MCP:`cline mcp install`,Skills:`cline skill`,Agents:`cline config agents`,Plugins:`cline plugin`,Tools:`cline config tools`},me={settingsPath:``,hasSettingsFile:!1,servers:[]};function q(e){return Array.isArray(e)?e:[]}function he(e){return{workspaceRoot:typeof e?.workspaceRoot==`string`?e.workspaceRoot:``,rules:q(e?.rules),workflows:q(e?.workflows),skills:q(e?.skills),agents:q(e?.agents),plugins:q(e?.plugins),tools:q(e?.tools),hooks:q(e?.hooks),mcp:e?.mcp&&typeof e.mcp==`object`?{settingsPath:typeof e.mcp.settingsPath==`string`?e.mcp.settingsPath:``,hasSettingsFile:!!e.mcp.hasSettingsFile,servers:q(e.mcp.servers)}:{...me},warnings:q(e?.warnings)}}var ge=6e4,_e=3e4,J=null,Y=null;function ve(e,t){return!!(e&&t-e.fetchedAt<ge&&Array.isArray(e.tools)&&e.tools.length>0)}function ye(e,t=150){let n=e.replace(/\s+/g,` `).trim();return n.length<=t?n:`${n.slice(0,t).trimEnd()}...`}function X(e){return e.replaceAll(`\\`,`/`)}function be(e,t){let n=X(t),r=X(e);return n&&r.startsWith(`${n}/`)?`Project`:`Global`}function Z({scope:e}){return(0,P.jsx)(T,{variant:`outline`,className:`shrink-0 text-muted-foreground`,children:e})}function xe(...e){let t=new Set;for(let n of e){let e=n?.trim().replaceAll(`\\`,`/`);if(!e)continue;t.add(e);let r=e.split(`/`).filter(Boolean);for(let e of r)t.add(e.replace(/\.[^.]+$/,``));for(let e=0;e<r.length-1;e+=1)t.add(`${r[e]}/${r[e+1]}`)}return[...t]}async function Se(){return he(await d.invoke(`list_user_instruction_configs`))}function Ce(e,t){return(e instanceof Error?e.message:String(e)).includes(`unsupported desktop command: ${t}`)}function we({catalogPrimitive:e,section:t=`Rules`,showTabs:n=!1}){let[a,s]=(0,O.useState)(t),[u,g]=(0,O.useState)(()=>!ve(J,Date.now())),[y,D]=(0,O.useState)(null),[k,A]=(0,O.useState)(()=>J?.workspaceRoot??``),[oe,j]=(0,O.useState)(()=>J?.rules??[]),[M,N]=(0,O.useState)(()=>J?.workflows??[]),[se,F]=(0,O.useState)(()=>J?.skills??[]),[ce,I]=(0,O.useState)(()=>J?.agents??[]),[le,L]=(0,O.useState)(()=>J?.plugins??[]),[R,z]=(0,O.useState)(()=>J?.tools??[]),[B,V]=(0,O.useState)(()=>J?.hooks??[]),[H,U]=(0,O.useState)(()=>J?.mcp??me),[W,G]=(0,O.useState)(()=>J?.warnings??[]),[ue,K]=(0,O.useState)(()=>Y?.hookExecutionByEvent??{}),[q,ge]=(0,O.useState)(()=>Y?.hookExecutionSessionId??null),[we,Te]=(0,O.useState)(!1),[Ee,De]=(0,O.useState)(()=>new Set),[Oe,ke]=(0,O.useState)(()=>new Set),[Ae,je]=(0,O.useState)(()=>new Set),[Me,Ne]=(0,O.useState)(()=>new Map);(0,O.useEffect)(()=>{s(t)},[t]);let Q=(0,O.useCallback)(async(e=!1)=>{if(!e&&ve(J,Date.now())){A(J.workspaceRoot),j(J.rules),N(J.workflows),F(J.skills),I(J.agents),L(J.plugins),z(J.tools),V(J.hooks),U(J.mcp),G(J.warnings),D(null),g(!1);return}g(!0),D(null);try{let e=await Se();A(e.workspaceRoot),j(e.rules),N(e.workflows),F(e.skills),I(e.agents),L(e.plugins),z(e.tools),V(e.hooks),U(e.mcp),G(e.warnings),J={...e,fetchedAt:Date.now()}}catch(e){let t=e instanceof Error?e.message:String(e);D(t)}finally{g(!1)}},[]),Pe=(0,O.useCallback)(async(e=!1)=>{if(!e&&Y&&Date.now()-Y.fetchedAt<_e){K(Y.hookExecutionByEvent),ge(Y.hookExecutionSessionId);return}Te(!0);try{let e=(await d.invoke(`list_cli_sessions`,{limit:300})??[]).filter(e=>typeof e.sessionId==`string`&&e.sessionId.trim().length>0).sort((e,t)=>(t.startedAt??``).localeCompare(e.startedAt??``))[0];if(!e?.sessionId){K({}),ge(null),Y={hookExecutionByEvent:{},hookExecutionSessionId:null,fetchedAt:Date.now()};return}let t=await d.invoke(`read_session_hooks`,{sessionId:e.sessionId,limit:5e3}),n={};for(let e of t??[]){let t=e.hookEventName?.trim();if(!t)continue;let r=n[t]??{count:0,lastTs:null};r.count+=1,e.ts&&(!r.lastTs||e.ts>r.lastTs)&&(r.lastTs=e.ts),n[t]=r}K(n),ge(e.sessionId),Y={hookExecutionByEvent:n,hookExecutionSessionId:e.sessionId,fetchedAt:Date.now()}}catch{}finally{Te(!1)}},[]),Fe=(0,O.useCallback)(e=>{let t=he(e);A(t.workspaceRoot),j(t.rules),N(t.workflows),F(t.skills),I(t.agents),L(t.plugins),z(t.tools),V(t.hooks),U(t.mcp),G(t.warnings),J={...t,fetchedAt:Date.now()}},[]),Ie=(0,O.useCallback)(async e=>{De(t=>new Set(t).add(e.id)),D(null);try{let t=[e.name,...e.headlessToolNames??[]].filter(Boolean);if(t.length===0)throw Error(`tool name is required`);let n;try{n=await d.invoke(`set_tool_disabled`,{names:t,disabled:e.enabled})}catch(e){if(!Ce(e,`set_tool_disabled`))throw e;for(let e of t)n=await d.invoke(`toggle_disabled_plugin_tool`,{name:e})}if(!n)throw Error(`tool toggle did not return an updated extension list`);Fe(n)}catch(e){let t=e instanceof Error?e.message:String(e);D(t)}finally{De(t=>{let n=new Set(t);return n.delete(e.id),n})}},[Fe]),Le=(0,O.useCallback)(async e=>{ke(t=>new Set(t).add(e.path)),D(null);try{let t=await d.invoke(`set_plugin_disabled`,{path:e.path,disabled:e.enabled});Fe(t)}catch(e){let t=e instanceof Error?e.message:String(e);D(t)}finally{ke(t=>{let n=new Set(t);return n.delete(e.path),n})}},[Fe]),Re=(0,O.useCallback)(async e=>{if(!Ae.has(e.key)){je(t=>new Set(t).add(e.key)),Ne(t=>{let n=new Map(t);return n.delete(e.key),n}),D(null);try{let t=await d.invoke(`uninstall_local_primitive`,{type:e.type,id:e.id,name:e.name,path:e.path});Ne(n=>{let r=new Map(n);return r.set(e.key,{status:`success`,message:t.message??`Uninstalled ${e.name??e.id??e.path}.`}),r}),await Q(!0)}catch(t){let n=t instanceof Error?t.message:String(t);Ne(t=>{let r=new Map(t);return r.set(e.key,{status:`failed`,message:n}),r}),D(n)}finally{je(t=>{let n=new Set(t);return n.delete(e.key),n})}}},[Ae,Q]),ze=(0,O.useCallback)(e=>{if(!e)return`never`;let t=Number(e),n=Number.isFinite(t)?new Date(t):new Date(e);return Number.isNaN(n.getTime())?e:n.toLocaleString()},[]);(0,O.useEffect)(()=>{let e=window.setTimeout(()=>{Q(!1)},0);return()=>window.clearTimeout(e)},[Q]),(0,O.useEffect)(()=>{if(a!==`Hooks`)return;let e=window.setTimeout(()=>{Pe(!1)},0);return()=>window.clearTimeout(e)},[a,Pe]);let Be=[`Rules`,`Hooks`,`Skills`,`Agents`,`Plugins`,`Tools`],Ve=(0,O.useMemo)(()=>{let e=M.map(e=>({id:e.id,type:`workflow`,name:e.name,instructions:e.instructions,path:e.path,scope:be(e.path,k)})),t=se.map(e=>({id:X(e.path).toLowerCase(),type:`skill`,name:e.name,description:e.description,instructions:e.instructions,path:e.path,scope:be(e.path,k)}));return[...e,...t].sort((e,t)=>e.name.localeCompare(t.name))},[se,M,k]),{projectRules:He,globalRules:Ue}=(0,O.useMemo)(()=>{let e=X(k),t=[],n=[];for(let r of oe){let i=X(r.path);e&&i.startsWith(`${e}/`)&&i.includes(`/.clinerules/`)?t.push(r):n.push(r)}return{projectRules:t,globalRules:n}},[oe,k]),{projectHooks:We,globalHooks:Ge}=(0,O.useMemo)(()=>{let e=X(k),t=[],n=[];for(let r of B){let i=X(r.path);e&&i.startsWith(`${e}/`)&&i.includes(`/.clinerules/hooks`)?t.push(r):n.push(r)}return{projectHooks:t,globalHooks:n}},[B,k]),{projectPlugins:Ke,globalPlugins:qe}=(0,O.useMemo)(()=>{let e=X(k),t=[],n=[];for(let r of le){let i=X(r.path);e&&i.startsWith(`${e}/`)&&i.includes(`/.cline/plugins`)?t.push(r):n.push(r)}return{projectPlugins:t,globalPlugins:n}},[le,k]),Je=(0,O.useMemo)(()=>R.filter(e=>e.source===`builtin`),[R]),Ye=(0,O.useMemo)(()=>R.filter(e=>e.source!==`builtin`),[R]),$=(0,O.useMemo)(()=>{let e=new Map;for(let t of Ye){let n=t.path??``,r=e.get(n)??[];r.push(t),e.set(n,r)}for(let t of e.values())t.sort((e,t)=>e.name.localeCompare(t.name));return e},[Ye]),Xe=(0,O.useMemo)(()=>[...qe.map(e=>({plugin:e,scope:`Global`})),...Ke.map(e=>({plugin:e,scope:`Project`}))],[qe,Ke]),Ze=(0,O.useMemo)(()=>[...Ue.map(e=>({rule:e,scope:`Global`})),...He.map(e=>({rule:e,scope:`Project`}))],[Ue,He]),Qe=(0,O.useMemo)(()=>[...Ge.map(e=>({hook:e,scope:`Global`})),...We.map(e=>({hook:e,scope:`Project`}))],[Ge,We]),$e=e=>{let t=Me.get(e);return t?(0,P.jsx)(`output`,{className:C(`text-xs`,t.status===`failed`?`text-destructive`:`text-muted-foreground`),children:t.message}):null},et=e=>{let t=Ae.has(e.key);return(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,P.jsx)(`div`,{className:`min-h-5 text-xs text-muted-foreground`,children:$e(e.key)}),(0,P.jsxs)(m,{disabled:t,onClick:()=>{Re(e)},type:`button`,variant:`destructive`,children:[t?(0,P.jsx)(w,{}):(0,P.jsx)(S,{className:`size-4`}),t?`Uninstalling...`:`Uninstall`]})]})},tt=e=>{let t=Ae.has(e.key);return(0,P.jsxs)(p,{children:[(0,P.jsx)(x,{render:(0,P.jsx)(m,{"aria-label":`More actions for ${e.name??`plugin`}`,className:`m-0 size-auto shrink-0 p-0 text-muted-foreground`,onClick:e=>e.stopPropagation(),size:`icon`,type:`button`,variant:`ghost`}),children:(0,P.jsx)(E,{className:`size-4`})}),(0,P.jsxs)(f,{align:`end`,children:[(0,P.jsxs)(h,{onClick:()=>void navigator.clipboard.writeText(e.path??``),children:[(0,P.jsx)(i,{className:`size-4`}),`Copy path`]}),(0,P.jsxs)(h,{className:`text-destructive focus:text-destructive`,disabled:t,onClick:()=>void Re(e),children:[t?(0,P.jsx)(w,{}):(0,P.jsx)(S,{className:`size-4`}),t?`Uninstalling...`:`Uninstall`]})]})]})},nt=e=>{let t=`${e.type}:${e.path}`;return(0,P.jsxs)(`div`,{className:`rounded-lg border border-border px-5 py-4`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[e.type===`workflow`?(0,P.jsx)(r,{className:`h-4 w-4 shrink-0 text-primary`}):(0,P.jsx)(l,{className:`h-4 w-4 shrink-0 text-primary`}),(0,P.jsx)(`h3`,{className:`min-w-0 flex-1 text-sm font-semibold text-foreground`,children:e.name}),(0,P.jsx)(Z,{scope:e.scope}),(0,P.jsx)(T,{variant:`outline`,className:`shrink-0 text-muted-foreground`,children:e.type})]}),(0,P.jsx)(`p`,{className:`mt-2 ml-7 text-xs text-muted-foreground`,children:e.description?.trim()||ye(e.instructions)}),(0,P.jsx)(`p`,{className:`mt-1 ml-7 text-xs font-mono text-muted-foreground`,children:e.path}),(0,P.jsx)(`div`,{className:`mt-3`,children:et({key:t,type:e.type,id:e.id,name:e.name,path:e.path})})]},t)},rt=e=>(0,P.jsxs)(`div`,{className:`grid gap-1`,children:[(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.description?.trim()||ye(e.instructions)}),(0,P.jsx)(`p`,{className:`text-xs font-mono text-muted-foreground`,children:e.path})]}),it=({plugin:e,scope:t})=>{let n=e.path,r=[{label:`Tools`,items:e.contributions?.tools??($.get(e.path)??[]).map(e=>e.name)},{label:`Skills`,items:e.contributions?.skills??[]},{label:`Rules`,items:e.contributions?.rules??[]},{label:`Hooks`,items:e.contributions?.hooks??[]},{label:`Commands`,items:e.contributions?.commands??[]},{label:`MCP servers`,items:e.contributions?.mcpServers??[]},{label:`Providers`,items:e.contributions?.providers??[]},{label:`Capabilities`,items:e.contributions?.capabilities??[]}].filter(e=>e.items.length>0);return(0,P.jsxs)(`details`,{className:`rounded-lg border border-border px-5 py-4`,children:[(0,P.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-3`,children:[(0,P.jsx)(`h3`,{className:`min-w-0 flex-1 text-sm font-semibold text-foreground`,children:e.name}),(0,P.jsx)(Z,{scope:t}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.enabled?`Enabled`:`Disabled`}),(0,P.jsx)(o,{checked:e.enabled,onCheckedChange:()=>{Le(e)},onClick:e=>e.stopPropagation(),disabled:Oe.has(e.path),"aria-label":`Toggle ${e.name}`}),tt({key:n,type:`plugin`,id:e.name,name:e.name,path:e.path})]}),(0,P.jsxs)(`div`,{className:`mt-3`,children:[e.contributions?.inspectionStatus===`disabled`?(0,P.jsx)(`p`,{className:`mb-2 text-xs text-muted-foreground`,children:`Enable this plugin to inspect its dynamic contributions.`}):null,r.length>0?(0,P.jsxs)(`div`,{children:[(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 py-2 text-xs font-medium text-foreground`,children:[(0,P.jsx)(`span`,{className:`mr-1`,children:`Contributions`}),r.map(e=>(0,P.jsxs)(T,{variant:`outline`,children:[e.label,` `,e.items.length]},e.label))]}),(0,P.jsx)(`div`,{className:`grid max-h-56 gap-3 overflow-y-auto pt-2 sm:grid-cols-2`,children:r.map(e=>(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.label}),(0,P.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.items.map(e=>(0,P.jsx)(T,{variant:`secondary`,children:e},e))})]},e.label))})]}):(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No plugin contributions found.`})]}),$e(n)?(0,P.jsx)(`div`,{className:`mt-3`,children:$e(n)}):null]},e.path)},at=e=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.enabled?`Enabled`:`Disabled`}),(0,P.jsx)(o,{checked:e.enabled,onCheckedChange:()=>{Le(e)},disabled:Oe.has(e.path),"aria-label":`Toggle ${e.name}`}),tt({key:e.path,type:`plugin`,id:e.name,name:e.name,path:e.path})]}),ot=e=>{let t=[{label:`Tools`,items:e.contributions?.tools??($.get(e.path)??[]).map(e=>e.name)},{label:`Skills`,items:e.contributions?.skills??[]},{label:`Rules`,items:e.contributions?.rules??[]},{label:`Hooks`,items:e.contributions?.hooks??[]},{label:`Commands`,items:e.contributions?.commands??[]},{label:`MCP servers`,items:e.contributions?.mcpServers??[]},{label:`Providers`,items:e.contributions?.providers??[]},{label:`Capabilities`,items:e.contributions?.capabilities??[]}].filter(e=>e.items.length>0);return t.length===0?null:(0,P.jsx)(`div`,{className:`grid max-h-56 gap-3 overflow-y-auto sm:grid-cols-2`,children:t.map(e=>(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.label}),(0,P.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.items.map(e=>(0,P.jsx)(T,{variant:`secondary`,children:e},e))})]},e.label))})},st=e=>{let t=e.name;return(0,P.jsxs)(`div`,{className:`rounded-lg border border-border px-5 py-4`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,P.jsx)(v,{className:`h-4 w-4 shrink-0 text-primary`}),(0,P.jsx)(`h3`,{className:`min-w-0 flex-1 text-sm font-semibold text-foreground`,children:e.name}),(0,P.jsx)(Z,{scope:`Global`}),(0,P.jsx)(T,{variant:`outline`,className:`shrink-0 text-muted-foreground`,children:e.transportType}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.disabled?`Disabled`:`Enabled`})]}),(0,P.jsx)(`p`,{className:`mt-2 ml-7 text-xs text-muted-foreground`,children:e.url??([e.command,...e.args??[]].filter(Boolean).join(` `)||`No launch command configured.`)}),H.settingsPath?(0,P.jsx)(`p`,{className:`mt-1 ml-7 text-xs font-mono text-muted-foreground`,children:H.settingsPath}):null,(0,P.jsx)(`div`,{className:`mt-3`,children:et({key:t,type:`mcp`,id:e.name,name:e.name})})]},e.name)},ct=e=>(0,P.jsxs)(`div`,{className:`grid gap-1`,children:[(0,P.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[e.disabled?`Disabled`:`Enabled`,` locally`,e.transportType?` via ${e.transportType}`:``]}),H.settingsPath?(0,P.jsx)(`p`,{className:`text-xs font-mono text-muted-foreground`,children:H.settingsPath}):null]}),lt=e===`skill`?Ve.map(e=>({key:`${e.type}:${e.path}`,matchValues:xe(e.id,e.name,e.path),render:()=>nt(e),renderMatchedBadges:()=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z,{scope:e.scope}),(0,P.jsx)(T,{variant:`outline`,className:`shrink-0 text-muted-foreground`,children:e.type})]}),renderMatchedDetails:()=>rt(e)})):e===`plugin`?Xe.map(e=>({key:e.plugin.path,matchValues:xe(e.plugin.name,e.plugin.path),render:()=>it(e),renderMatchedBadges:()=>(0,P.jsx)(Z,{scope:e.scope}),renderMatchedControls:()=>at(e.plugin),renderMatchedDetails:Object.values(e.plugin.contributions??{}).some(e=>e.length>0)||($.get(e.plugin.path)??[]).length>0?()=>ot(e.plugin):void 0})):e===`mcp`?H.servers.map(e=>({key:e.name,matchValues:xe(e.name),render:()=>st(e),renderMatchedBadges:()=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z,{scope:`Global`}),(0,P.jsx)(T,{variant:`outline`,className:`shrink-0 text-muted-foreground`,children:e.transportType})]}),renderMatchedDetails:()=>ct(e)})):null;return(0,P.jsxs)(_,{children:[(0,P.jsx)(ee,{description:fe[a],title:a,meta:(0,P.jsx)(re,{children:pe[a]}),actions:(0,P.jsx)(m,{variant:`outline`,size:`sm`,onClick:()=>{Q(!0),a===`Hooks`&&Pe(!0)},disabled:u,children:(0,P.jsx)(c,{className:C(`h-4 w-4`,u&&`animate-spin`)})})}),n?(0,P.jsx)(`div`,{className:`mb-6 flex items-center gap-0 border-b border-border`,children:Be.map(e=>(0,P.jsxs)(m,{variant:`ghost`,onClick:()=>s(e),className:C(`relative px-4 py-2.5 text-sm font-medium transition-colors`,a===e?`text-foreground`:`text-muted-foreground hover:text-foreground`),children:[e,a===e&&(0,P.jsx)(`span`,{className:`absolute inset-x-0 -bottom-px h-0.5 bg-foreground`})]},e))}):null,y&&(0,P.jsxs)(`div`,{className:`mb-4 rounded-lg border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive`,children:[`Failed to load configuration lists: `,y]}),W.length>0&&(0,P.jsxs)(`div`,{className:`mb-4 rounded-lg border border-yellow-500/40 bg-yellow-500/10 px-4 py-3 text-sm text-yellow-700 dark:text-yellow-300`,children:[(0,P.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 font-medium`,children:[(0,P.jsx)(ae,{className:`h-4 w-4`}),`Partial results`]}),(0,P.jsx)(`ul`,{className:`list-disc space-y-1 pl-5`,children:W.map(e=>(0,P.jsx)(`li`,{children:e},e))})]}),e?(0,P.jsx)(de,{chrome:`embedded`,installedItems:lt??void 0,onInstalledItemsChanged:()=>Q(!0),primitive:e}):null,a===`Rules`&&(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`mb-6 text-sm leading-relaxed text-muted-foreground`,children:`Enabled rules discovered from configured workspace/global directories.`}),(0,P.jsxs)(`div`,{className:`grid gap-3`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,P.jsx)(`h3`,{className:`text-base font-semibold text-foreground`,children:`Installed`}),(0,P.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:Ze.length})]}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[Ze.map(({rule:e,scope:t})=>(0,P.jsxs)(`div`,{className:`rounded-lg border border-border px-4 py-3`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,P.jsx)(ne,{className:`h-4 w-4 shrink-0 text-muted-foreground`}),(0,P.jsx)(`span`,{className:`flex-1 text-sm font-medium text-foreground`,children:e.name}),(0,P.jsx)(Z,{scope:t})]}),(0,P.jsx)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:ye(e.instructions)}),(0,P.jsx)(`p`,{className:`mt-1 text-xs font-mono text-muted-foreground`,children:e.path})]},e.path)),Ze.length===0&&(0,P.jsx)(`p`,{className:`rounded-lg border border-dashed border-border px-4 py-3 text-sm text-muted-foreground`,children:`No rules found.`})]})]})]}),a===`Hooks`&&(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`mb-6 text-sm leading-relaxed text-muted-foreground`,children:`Hook config files from workspace and global hook directories.`}),we&&q&&(0,P.jsxs)(`p`,{className:`mb-4 text-xs text-muted-foreground`,children:[`Execution status is based on hook events in session`,` `,(0,P.jsx)(`span`,{className:`font-mono`,children:q}),`.`]}),(0,P.jsxs)(`div`,{className:`grid gap-3`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,P.jsx)(`h3`,{className:`text-base font-semibold text-foreground`,children:`Installed`}),(0,P.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:Qe.length})]}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[Qe.map(({hook:e,scope:t})=>(0,P.jsxs)(`div`,{className:`rounded-lg border border-border px-4 py-3`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,P.jsx)(b,{className:`h-4 w-4 shrink-0 text-muted-foreground`}),(0,P.jsx)(`span`,{className:`flex-1 text-sm font-mono text-foreground`,children:e.fileName}),(0,P.jsx)(Z,{scope:t}),e.hookEventName&&(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsx)(`span`,{className:`rounded border border-border px-2 py-0.5 text-xs text-muted-foreground`,children:e.hookEventName}),(()=>{let t=ue[e.hookEventName],n=(t?.count??0)>0;return(0,P.jsx)(`span`,{className:C(`rounded border px-2 py-0.5 text-xs`,n?`border-emerald-400/50 text-emerald-600 dark:text-emerald-400`:`border-border text-muted-foreground`),children:n?`${t?.count??0} executed`:`never executed`})})()]})]}),e.hookEventName?(0,P.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[`Last run:`,` `,ze(ue[e.hookEventName]?.lastTs??null)]}):null,(0,P.jsx)(`p`,{className:`mt-1 text-xs font-mono text-muted-foreground`,children:e.path})]},e.path)),Qe.length===0&&(0,P.jsx)(`p`,{className:`rounded-lg border border-dashed border-border px-4 py-3 text-sm text-muted-foreground`,children:`No hooks found.`})]})]})]}),a===`Skills`&&!e&&(0,P.jsxs)(`div`,{children:[(0,P.jsxs)(`p`,{className:`mb-6 text-sm leading-relaxed text-muted-foreground`,children:[`Skills can be invoked in chat with`,` `,(0,P.jsx)(`code`,{className:`rounded bg-secondary px-1.5 py-0.5 text-xs font-mono text-foreground`,children:`/SKILL`}),`.`]}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[Ve.map(e=>(0,P.jsxs)(`div`,{className:`rounded-lg border border-border px-5 py-4`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[e.type===`workflow`?(0,P.jsx)(r,{className:`h-4 w-4 shrink-0 text-primary`}):(0,P.jsx)(l,{className:`h-4 w-4 shrink-0 text-primary`}),(0,P.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:e.name}),(0,P.jsx)(`span`,{className:`rounded border border-border px-2 py-0.5 text-xs text-muted-foreground`,children:e.type})]}),(0,P.jsx)(`p`,{className:`mt-2 ml-7 text-xs text-muted-foreground`,children:e.description?.trim()||ye(e.instructions)}),(0,P.jsx)(`p`,{className:`mt-1 ml-7 text-xs font-mono text-muted-foreground`,children:e.path})]},`${e.type}:${e.path}`)),Ve.length===0&&(0,P.jsx)(`p`,{className:`rounded-lg border border-dashed border-border px-4 py-3 text-sm text-muted-foreground`,children:`No enabled skills or workflows found.`})]})]}),a===`Agents`&&(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`mb-6 text-sm leading-relaxed text-muted-foreground`,children:`Configured agents discovered from Documents and settings directories.`}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[ce.map(e=>(0,P.jsxs)(`div`,{className:`rounded-lg border border-border px-5 py-4`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,P.jsx)(ie,{className:`h-4 w-4 shrink-0 text-primary`}),(0,P.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:e.name})]}),(0,P.jsx)(`p`,{className:`mt-1 ml-7 text-xs font-mono text-muted-foreground`,children:e.path})]},e.path)),ce.length===0&&(0,P.jsx)(`p`,{className:`rounded-lg border border-dashed border-border px-4 py-3 text-sm text-muted-foreground`,children:`No configured agents found.`})]})]}),a===`Plugins`&&!e&&(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`mb-6 text-sm leading-relaxed text-muted-foreground`,children:`Plugins discovered from workspace and global plugin directories.`}),(0,P.jsxs)(`div`,{className:`mb-6`,children:[(0,P.jsx)(`h3`,{className:`mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground`,children:`Global Plugins`}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[qe.map(e=>(0,P.jsxs)(`div`,{className:`rounded-lg border border-border px-5 py-4`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,P.jsx)(`h3`,{className:`min-w-0 flex-1 text-sm font-semibold text-foreground`,children:e.name}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.enabled?`Enabled`:`Disabled`}),(0,P.jsx)(o,{checked:e.enabled,onCheckedChange:()=>{Le(e)},disabled:Oe.has(e.path),"aria-label":`Toggle ${e.name}`})]}),(0,P.jsxs)(`div`,{className:`mt-3 ml-7 flex max-h-56 flex-col gap-2 overflow-y-auto`,children:[($.get(e.path)??[]).map(e=>(0,P.jsx)(`div`,{className:`flex items-center justify-between gap-4 rounded-md border border-border/70 px-3 py-2`,children:(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`p`,{className:`text-xs font-medium text-foreground`,children:e.name}),(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.description?.trim()||`No description available.`})]})},e.id)),($.get(e.path)?.length??0)===0&&(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No plugin tools found.`})]})]},e.path)),qe.length===0&&(0,P.jsx)(`p`,{className:`rounded-lg border border-dashed border-border px-4 py-3 text-sm text-muted-foreground`,children:`No global plugins found.`})]})]}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h3`,{className:`mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground`,children:`Project Plugins`}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[Ke.map(e=>(0,P.jsxs)(`div`,{className:`rounded-lg border border-border px-5 py-4`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,P.jsx)(`h3`,{className:`min-w-0 flex-1 text-sm font-semibold text-foreground`,children:e.name}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.enabled?`Enabled`:`Disabled`}),(0,P.jsx)(o,{checked:e.enabled,onCheckedChange:()=>{Le(e)},disabled:Oe.has(e.path),"aria-label":`Toggle ${e.name}`})]}),(0,P.jsxs)(`div`,{className:`mt-3 ml-7 flex max-h-56 flex-col gap-2 overflow-y-auto`,children:[($.get(e.path)??[]).map(e=>(0,P.jsx)(`div`,{className:`flex items-center justify-between gap-4 rounded-md border border-border/70 px-3 py-2`,children:(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`p`,{className:`text-xs font-medium text-foreground`,children:e.name}),(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.description?.trim()||`No description available.`})]})},e.id)),($.get(e.path)?.length??0)===0&&(0,P.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No plugin tools found.`})]})]},e.path)),Ke.length===0&&(0,P.jsx)(`p`,{className:`rounded-lg border border-dashed border-border px-4 py-3 text-sm text-muted-foreground`,children:`No project plugins found.`})]})]})]}),a===`Tools`&&(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`mb-6 text-sm leading-relaxed text-muted-foreground`,children:`Builtin tool groups and plugin-contributed tools available to the runtime.`}),(0,P.jsxs)(`div`,{className:`mb-6`,children:[(0,P.jsx)(`h3`,{className:`mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground`,children:`Builtin Tools`}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[Je.map(e=>(()=>{let t=Ee.has(e.id);return(0,P.jsxs)(`div`,{className:`rounded-lg border border-border px-5 py-4`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,P.jsx)(te,{className:`h-4 w-4 shrink-0 text-primary`}),(0,P.jsx)(`h3`,{className:`min-w-0 flex-1 text-sm font-semibold text-foreground`,children:e.name}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.enabled?`Enabled`:`Disabled`}),(0,P.jsx)(o,{checked:e.enabled,onCheckedChange:()=>{Ie(e)},disabled:t,"aria-label":`Toggle ${e.name}`})]}),(0,P.jsx)(`p`,{className:`mt-2 ml-7 text-xs text-muted-foreground`,children:e.description?.trim()||`No description available.`}),!!e.headlessToolNames?.length&&(0,P.jsx)(`p`,{className:`mt-1 ml-7 text-xs font-mono text-muted-foreground`,children:e.headlessToolNames.join(`, `)})]},e.id)})()),Je.length===0&&(0,P.jsx)(`p`,{className:`rounded-lg border border-dashed border-border px-4 py-3 text-sm text-muted-foreground`,children:`No builtin tools found.`})]})]}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h3`,{className:`mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground`,children:`Plugin Tools`}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[Ye.map(e=>(()=>{let t=Ee.has(e.id);return(0,P.jsxs)(`div`,{className:`rounded-lg border border-border px-5 py-4`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,P.jsx)(te,{className:`h-4 w-4 shrink-0 text-primary`}),(0,P.jsx)(`h3`,{className:`min-w-0 flex-1 text-sm font-semibold text-foreground`,children:e.name}),e.pluginName&&(0,P.jsxs)(`span`,{className:`rounded border border-border px-2 py-0.5 text-xs text-muted-foreground`,children:[`plugin: `,e.pluginName]}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.enabled?`Enabled`:`Disabled`}),(0,P.jsx)(o,{checked:e.enabled,onCheckedChange:()=>{Ie(e)},disabled:t,"aria-label":`Toggle ${e.name}`})]}),(0,P.jsx)(`p`,{className:`mt-2 ml-7 text-xs text-muted-foreground`,children:e.description?.trim()||`No description available.`}),e.path&&(0,P.jsx)(`p`,{className:`mt-1 ml-7 text-xs font-mono text-muted-foreground`,children:e.path})]},e.id)})()),Ye.length===0&&(0,P.jsx)(`p`,{className:`rounded-lg border border-dashed border-border px-4 py-3 text-sm text-muted-foreground`,children:`No plugin tools found.`})]})]})]})]})}export{we as CustomizationSectionView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./src-Cz8bXOH0.js";import"./chunk-WYO6CB5R-BQDKJ2Op.js";import"./chunk-ICXQ74PX-C1naCh7h.js";import"./chunk-HOUHSVGY-BK-KWdyz.js";import"./chunk-Q4XR5HBZ-DyEQflKV.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-OGEWGWER-IbFWtSr3.js";import"./chunk-32BRIVSS-CSG4V8l0.js";import"./chunk-XXDRQBXY-DlK_iNGL.js";import"./chunk-VR4S4FIN-Be22cetl.js";import"./chunk-C7G6YPKG-hGGgXHCs.js";import"./chunk-ZGVPDNZ5-D0HhTn0b.js";import"./chunk-52WLFC77-hXd71QCM.js";import"./chunk-FWX5IMBZ-CBBxPYoo.js";import"./chunk-ZIRB5QZD-C6fEPe3t.js";import{n as e}from"./chunk-PUDLZKDR-7amIl78k.js";export{e as diagram};
|