@jait/gateway 0.1.511 → 0.1.513

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.
Files changed (59) hide show
  1. package/dist/db/migrations.d.ts.map +1 -1
  2. package/dist/db/migrations.js +33 -16
  3. package/dist/db/migrations.js.map +1 -1
  4. package/package.json +1 -1
  5. package/web-dist/assets/{_basePickBy-B6Hbmuu4.js → _basePickBy-DI3C_uT7.js} +1 -1
  6. package/web-dist/assets/{_baseUniq-BeXjS5MH.js → _baseUniq-Dyu5z65_.js} +1 -1
  7. package/web-dist/assets/{arc-BDlC49bp.js → arc-PV1radMi.js} +1 -1
  8. package/web-dist/assets/{architectureDiagram-2XIMDMQ5-De2nVCvD.js → architectureDiagram-2XIMDMQ5-GhoE1kJV.js} +1 -1
  9. package/web-dist/assets/{blockDiagram-WCTKOSBZ-Dlwzm7GQ.js → blockDiagram-WCTKOSBZ-C6jYQftU.js} +1 -1
  10. package/web-dist/assets/{c4Diagram-IC4MRINW-DLL-p43h.js → c4Diagram-IC4MRINW-DKBLF_UJ.js} +1 -1
  11. package/web-dist/assets/channel-DjbbMlY6.js +1 -0
  12. package/web-dist/assets/{chunk-4BX2VUAB-BSdD0Zrn.js → chunk-4BX2VUAB-CT8WtIqT.js} +1 -1
  13. package/web-dist/assets/{chunk-55IACEB6-BldY03Vc.js → chunk-55IACEB6-B00n-r13.js} +1 -1
  14. package/web-dist/assets/{chunk-FMBD7UC4-QE9oK34e.js → chunk-FMBD7UC4-DoEh1Mra.js} +1 -1
  15. package/web-dist/assets/{chunk-JSJVCQXG-ClVZdzh2.js → chunk-JSJVCQXG-BTrbN5Tg.js} +1 -1
  16. package/web-dist/assets/{chunk-KX2RTZJC-C3PV-Tgs.js → chunk-KX2RTZJC-DxQCLNc_.js} +1 -1
  17. package/web-dist/assets/{chunk-NQ4KR5QH-D8jldyOb.js → chunk-NQ4KR5QH-HRiWZO4L.js} +1 -1
  18. package/web-dist/assets/{chunk-QZHKN3VN-Br5nySg8.js → chunk-QZHKN3VN-CQjCVc45.js} +1 -1
  19. package/web-dist/assets/{chunk-WL4C6EOR-58HYx3UR.js → chunk-WL4C6EOR-BWPMxmV2.js} +1 -1
  20. package/web-dist/assets/classDiagram-VBA2DB6C-BDW4bnqv.js +1 -0
  21. package/web-dist/assets/classDiagram-v2-RAHNMMFH-BDW4bnqv.js +1 -0
  22. package/web-dist/assets/clone-CtmvBx2Z.js +1 -0
  23. package/web-dist/assets/{cose-bilkent-S5V4N54A-F7WmPEMI.js → cose-bilkent-S5V4N54A-BaM0bOTx.js} +1 -1
  24. package/web-dist/assets/{dagre-KLK3FWXG--aHpxKfe.js → dagre-KLK3FWXG-DW-H_C5A.js} +1 -1
  25. package/web-dist/assets/{diagram-E7M64L7V-EBcxJnXi.js → diagram-E7M64L7V-D-q39CTd.js} +1 -1
  26. package/web-dist/assets/{diagram-IFDJBPK2-BHKdOotS.js → diagram-IFDJBPK2-Ds9qX6ym.js} +1 -1
  27. package/web-dist/assets/{diagram-P4PSJMXO-yp8yax7E.js → diagram-P4PSJMXO-CtL0s4AT.js} +1 -1
  28. package/web-dist/assets/{erDiagram-INFDFZHY-D--EeN8Y.js → erDiagram-INFDFZHY-F1gb5bOn.js} +1 -1
  29. package/web-dist/assets/{flowDiagram-PKNHOUZH-L4jrDuYS.js → flowDiagram-PKNHOUZH-C6SZjF0w.js} +1 -1
  30. package/web-dist/assets/{ganttDiagram-A5KZAMGK-CH4jdVhf.js → ganttDiagram-A5KZAMGK-BNDtxX4q.js} +1 -1
  31. package/web-dist/assets/{gitGraphDiagram-K3NZZRJ6-DT6htp8b.js → gitGraphDiagram-K3NZZRJ6-BrOBVsd5.js} +1 -1
  32. package/web-dist/assets/{graph-DRbjw1LV.js → graph-Deveg6GI.js} +1 -1
  33. package/web-dist/assets/{index-CBVI2K3X.js → index-7DyEIQfy.js} +1 -1
  34. package/web-dist/assets/{index-wPtocJ7B.js → index-CQj3l2Gd.js} +5 -5
  35. package/web-dist/assets/{index-BNgL5WJH.js → index-Cgzm_mjY.js} +1 -1
  36. package/web-dist/assets/{infoDiagram-LFFYTUFH-Cc7-TZij.js → infoDiagram-LFFYTUFH-ByMld6Wa.js} +1 -1
  37. package/web-dist/assets/{ishikawaDiagram-PHBUUO56-BqTmfFJB.js → ishikawaDiagram-PHBUUO56-CtT8ZaYS.js} +1 -1
  38. package/web-dist/assets/{journeyDiagram-4ABVD52K-DCYL8q9q.js → journeyDiagram-4ABVD52K-CBnBWUgU.js} +1 -1
  39. package/web-dist/assets/{kanban-definition-K7BYSVSG-BPTCDG18.js → kanban-definition-K7BYSVSG-Bd1G7QCW.js} +1 -1
  40. package/web-dist/assets/{layout-BI7TjMQx.js → layout-DPHq24ob.js} +1 -1
  41. package/web-dist/assets/{linear-mEj8go0F.js → linear-SNrqZWZ3.js} +1 -1
  42. package/web-dist/assets/{mindmap-definition-YRQLILUH-CmcJT8og.js → mindmap-definition-YRQLILUH-3nYTknwj.js} +1 -1
  43. package/web-dist/assets/{pieDiagram-SKSYHLDU-CCHGQeQ_.js → pieDiagram-SKSYHLDU-Cr1V-rFW.js} +1 -1
  44. package/web-dist/assets/{quadrantDiagram-337W2JSQ-CCyaqTny.js → quadrantDiagram-337W2JSQ-DOe1i3wD.js} +1 -1
  45. package/web-dist/assets/{requirementDiagram-Z7DCOOCP-Cm5HCG0e.js → requirementDiagram-Z7DCOOCP-Dch_CeX4.js} +1 -1
  46. package/web-dist/assets/{sankeyDiagram-WA2Y5GQK-htaRd9sX.js → sankeyDiagram-WA2Y5GQK-JBAsKJTm.js} +1 -1
  47. package/web-dist/assets/{sequenceDiagram-2WXFIKYE-D4FsUOaD.js → sequenceDiagram-2WXFIKYE-MJqAkclV.js} +1 -1
  48. package/web-dist/assets/{stateDiagram-RAJIS63D-DIXvW7SD.js → stateDiagram-RAJIS63D-uLltWGJa.js} +1 -1
  49. package/web-dist/assets/stateDiagram-v2-FVOUBMTO-Cm--rdQI.js +1 -0
  50. package/web-dist/assets/{timeline-definition-YZTLITO2-C0TFl0FE.js → timeline-definition-YZTLITO2-D3DCVlRe.js} +1 -1
  51. package/web-dist/assets/{treemap-KZPCXAKY-BV68inyP.js → treemap-KZPCXAKY-Bw_mKn5O.js} +1 -1
  52. package/web-dist/assets/{vennDiagram-LZ73GAT5-Bhrnw8AE.js → vennDiagram-LZ73GAT5-DOBsODkb.js} +1 -1
  53. package/web-dist/assets/{xychartDiagram-JWTSCODW-1k_8HMy7.js → xychartDiagram-JWTSCODW-BCd9E4iD.js} +1 -1
  54. package/web-dist/index.html +1 -1
  55. package/web-dist/assets/channel-XvlzTEuz.js +0 -1
  56. package/web-dist/assets/classDiagram-VBA2DB6C-r88QcoG4.js +0 -1
  57. package/web-dist/assets/classDiagram-v2-RAHNMMFH-r88QcoG4.js +0 -1
  58. package/web-dist/assets/clone-DnpYNUwV.js +0 -1
  59. package/web-dist/assets/stateDiagram-v2-FVOUBMTO-DuCNziGy.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-KLK3FWXG--aHpxKfe.js","./graph-DRbjw1LV.js","./_baseUniq-BeXjS5MH.js","./layout-BI7TjMQx.js","./_basePickBy-B6Hbmuu4.js","./clone-DnpYNUwV.js","./cose-bilkent-S5V4N54A-F7WmPEMI.js","./cytoscape.esm-BQaXIfA_.js","./c4Diagram-IC4MRINW-DLL-p43h.js","./chunk-JSJVCQXG-ClVZdzh2.js","./flowDiagram-PKNHOUZH-L4jrDuYS.js","./chunk-FMBD7UC4-QE9oK34e.js","./chunk-55IACEB6-BldY03Vc.js","./chunk-KX2RTZJC-C3PV-Tgs.js","./channel-XvlzTEuz.js","./erDiagram-INFDFZHY-D--EeN8Y.js","./gitGraphDiagram-K3NZZRJ6-DT6htp8b.js","./chunk-4BX2VUAB-BSdD0Zrn.js","./chunk-QZHKN3VN-Br5nySg8.js","./treemap-KZPCXAKY-BV68inyP.js","./ganttDiagram-A5KZAMGK-CH4jdVhf.js","./linear-mEj8go0F.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-LFFYTUFH-Cc7-TZij.js","./pieDiagram-SKSYHLDU-CCHGQeQ_.js","./arc-BDlC49bp.js","./quadrantDiagram-337W2JSQ-CCyaqTny.js","./xychartDiagram-JWTSCODW-1k_8HMy7.js","./requirementDiagram-Z7DCOOCP-Cm5HCG0e.js","./sequenceDiagram-2WXFIKYE-D4FsUOaD.js","./classDiagram-VBA2DB6C-r88QcoG4.js","./chunk-WL4C6EOR-58HYx3UR.js","./classDiagram-v2-RAHNMMFH-r88QcoG4.js","./stateDiagram-RAJIS63D-DIXvW7SD.js","./chunk-NQ4KR5QH-D8jldyOb.js","./stateDiagram-v2-FVOUBMTO-DuCNziGy.js","./journeyDiagram-4ABVD52K-DCYL8q9q.js","./timeline-definition-YZTLITO2-C0TFl0FE.js","./mindmap-definition-YRQLILUH-CmcJT8og.js","./kanban-definition-K7BYSVSG-BPTCDG18.js","./diagram-P4PSJMXO-yp8yax7E.js","./diagram-IFDJBPK2-BHKdOotS.js","./blockDiagram-WCTKOSBZ-Dlwzm7GQ.js","./architectureDiagram-2XIMDMQ5-De2nVCvD.js","./diagram-E7M64L7V-EBcxJnXi.js","./angular-html-DA-rfuFy.js","./html-pp8916En.js","./javascript-wDzz0qaB.js","./css-CLj8gQPS.js","./angular-ts-BrjP3tb8.js","./scss-D5BDwBP9.js","./astro-HNnZUWAn.js","./json-Cp-IABpG.js","./typescript-BPQ3VLAy.js","./postcss-CXtECtnM.js","./tsx-COt5Ahok.js","./blade-BjGOyj-B.js","./html-derivative-DlHx6ybY.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./sql-BLtJtn59.js","./coffee-Ch7k5sss.js","./cpp-CofmeUqb.js","./regexp-CDVJQ6XC.js","./glsl-DplSGwfg.js","./c-BIGW1oBm.js","./graphql-ChdNCCLP.js","./jsx-g9-lgVsj.js","./haml-D5jkg6IW.js","./handlebars-BpdQsYii.js","./yaml-Buea-lGh.js","./http-jrhK8wxY.js","./shellscript-Yzrsuije.js","./hurl-irOxFIW8.js","./csv-fuZLfV_i.js","./jinja-f2NsQr07.js","./jison-wvAkD_A8.js","./julia-CxzCAyBv.js","./python-B6aJPvgy.js","./r-Dspwwk_N.js","./marko-DjSrsDqO.js","./less-B1dDrJ26.js","./mdc-DTYItulj.js","./markdown-Cvjx9yec.js","./php-R6g_5hLQ.js","./pug-DKIMFp6K.js","./svelte-Cy7k_4gC.js","./ts-tags-DQrlYJgV.js","./vue-D2xRrEX4.js","./vue-html-AaS7Mt5G.js","./vue-vine-BoDAl6tE.js","./stylus-BEDo0Tqx.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-KLK3FWXG-DW-H_C5A.js","./graph-Deveg6GI.js","./_baseUniq-Dyu5z65_.js","./layout-DPHq24ob.js","./_basePickBy-DI3C_uT7.js","./clone-CtmvBx2Z.js","./cose-bilkent-S5V4N54A-BaM0bOTx.js","./cytoscape.esm-BQaXIfA_.js","./c4Diagram-IC4MRINW-DKBLF_UJ.js","./chunk-JSJVCQXG-BTrbN5Tg.js","./flowDiagram-PKNHOUZH-C6SZjF0w.js","./chunk-FMBD7UC4-DoEh1Mra.js","./chunk-55IACEB6-B00n-r13.js","./chunk-KX2RTZJC-DxQCLNc_.js","./channel-DjbbMlY6.js","./erDiagram-INFDFZHY-F1gb5bOn.js","./gitGraphDiagram-K3NZZRJ6-BrOBVsd5.js","./chunk-4BX2VUAB-CT8WtIqT.js","./chunk-QZHKN3VN-CQjCVc45.js","./treemap-KZPCXAKY-Bw_mKn5O.js","./ganttDiagram-A5KZAMGK-BNDtxX4q.js","./linear-SNrqZWZ3.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-LFFYTUFH-ByMld6Wa.js","./pieDiagram-SKSYHLDU-Cr1V-rFW.js","./arc-PV1radMi.js","./quadrantDiagram-337W2JSQ-DOe1i3wD.js","./xychartDiagram-JWTSCODW-BCd9E4iD.js","./requirementDiagram-Z7DCOOCP-Dch_CeX4.js","./sequenceDiagram-2WXFIKYE-MJqAkclV.js","./classDiagram-VBA2DB6C-BDW4bnqv.js","./chunk-WL4C6EOR-BWPMxmV2.js","./classDiagram-v2-RAHNMMFH-BDW4bnqv.js","./stateDiagram-RAJIS63D-uLltWGJa.js","./chunk-NQ4KR5QH-HRiWZO4L.js","./stateDiagram-v2-FVOUBMTO-Cm--rdQI.js","./journeyDiagram-4ABVD52K-CBnBWUgU.js","./timeline-definition-YZTLITO2-D3DCVlRe.js","./mindmap-definition-YRQLILUH-3nYTknwj.js","./kanban-definition-K7BYSVSG-Bd1G7QCW.js","./diagram-P4PSJMXO-CtL0s4AT.js","./diagram-IFDJBPK2-Ds9qX6ym.js","./blockDiagram-WCTKOSBZ-C6jYQftU.js","./architectureDiagram-2XIMDMQ5-GhoE1kJV.js","./diagram-E7M64L7V-D-q39CTd.js","./angular-html-DA-rfuFy.js","./html-pp8916En.js","./javascript-wDzz0qaB.js","./css-CLj8gQPS.js","./angular-ts-BrjP3tb8.js","./scss-D5BDwBP9.js","./astro-HNnZUWAn.js","./json-Cp-IABpG.js","./typescript-BPQ3VLAy.js","./postcss-CXtECtnM.js","./tsx-COt5Ahok.js","./blade-BjGOyj-B.js","./html-derivative-DlHx6ybY.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./sql-BLtJtn59.js","./coffee-Ch7k5sss.js","./cpp-CofmeUqb.js","./regexp-CDVJQ6XC.js","./glsl-DplSGwfg.js","./c-BIGW1oBm.js","./graphql-ChdNCCLP.js","./jsx-g9-lgVsj.js","./haml-D5jkg6IW.js","./handlebars-BpdQsYii.js","./yaml-Buea-lGh.js","./http-jrhK8wxY.js","./shellscript-Yzrsuije.js","./hurl-irOxFIW8.js","./csv-fuZLfV_i.js","./jinja-f2NsQr07.js","./jison-wvAkD_A8.js","./julia-CxzCAyBv.js","./python-B6aJPvgy.js","./r-Dspwwk_N.js","./marko-DjSrsDqO.js","./less-B1dDrJ26.js","./mdc-DTYItulj.js","./markdown-Cvjx9yec.js","./php-R6g_5hLQ.js","./pug-DKIMFp6K.js","./svelte-Cy7k_4gC.js","./ts-tags-DQrlYJgV.js","./vue-D2xRrEX4.js","./vue-html-AaS7Mt5G.js","./vue-vine-BoDAl6tE.js","./stylus-BEDo0Tqx.js"])))=>i.map(i=>d[i]);
2
2
  var rpe=Object.defineProperty;var ipe=(e,n,r)=>n in e?rpe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var Ye=(e,n,r)=>ipe(e,typeof n!="symbol"?n+"":n,r);function spe(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();function A0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ubt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if(typeof n=="function"){var r=function i(){return this instanceof i?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var N6={exports:{}},Dv={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -1112,8 +1112,8 @@ Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error
1112
1112
  node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,s=e.y,a=Math.abs(i-r.x),o=e.width/2;let l=r.x<n.x?o-a:o+a;const u=e.height/2,d=Math.abs(n.y-r.y),h=Math.abs(n.x-r.x);if(Math.abs(s-n.y)*o>Math.abs(i-n.x)*u){let f=r.y<n.y?n.y-u-s:s-u-n.y;l=h*f/d;const m={x:r.x<n.x?r.x+l:r.x-h+l,y:r.y<n.y?r.y+d-f:r.y-d+f};return l===0&&(m.x=n.x,m.y=n.y),h===0&&(m.x=n.x),d===0&&(m.y=n.y),Et.debug(`abc89 top/bottom calc, Q ${d}, q ${f}, R ${h}, r ${l}`,m),m}else{r.x<n.x?l=n.x-o-i:l=i-o-n.x;let f=d*l/h,m=r.x<n.x?r.x+h-l:r.x-h+l,x=r.y<n.y?r.y+f:r.y-f;return Et.debug(`sides calc abc89, Q ${d}, q ${f}, R ${h}, r ${l}`,{_x:m,_y:x}),l===0&&(m=n.x,x=n.y),h===0&&(m=n.x),d===0&&(x=n.y),{x:m,y:x}}},"intersection"),lz=Y((e,n)=>{Et.warn("abc88 cutPathAtIntersect",e,n);let r=[],i=e[0],s=!1;return e.forEach(a=>{if(Et.info("abc88 checking point",a,n),!uOe(n,a)&&!s){const o=dOe(n,i,a);Et.debug("abc88 inside",a,i,o),Et.debug("abc88 intersection",o,n);let l=!1;r.forEach(u=>{l=l||u.x===o.x&&u.y===o.y}),r.some(u=>u.x===o.x&&u.y===o.y)?Et.warn("abc88 no intersect",o,r):r.push(o),s=!0}else Et.warn("abc88 outside",a,i),i=a,s||r.push(a)}),Et.debug("returning points",r),r},"cutPathAtIntersect");function tre(e){const n=[],r=[];for(let i=1;i<e.length-1;i++){const s=e[i-1],a=e[i],o=e[i+1];(s.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-s.y)>5||s.y===a.y&&a.x===o.x&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-o.y)>5)&&(n.push(a),r.push(i))}return{cornerPoints:n,cornerPointPositions:r}}Y(tre,"extractCornerPoints");var cz=Y(function(e,n,r){const i=n.x-e.x,s=n.y-e.y,a=Math.sqrt(i*i+s*s),o=r/a;return{x:n.x-o*i,y:n.y-o*s}},"findAdjacentPoint"),hOe=Y(function(e){const{cornerPointPositions:n}=tre(e),r=[];for(let i=0;i<e.length;i++)if(n.includes(i)){const s=e[i-1],a=e[i+1],o=e[i],l=cz(s,o,5),u=cz(a,o,5),d=u.x-l.x,h=u.y-l.y;r.push(l);const f=Math.sqrt(2)*2;let m={x:o.x,y:o.y};if(Math.abs(a.x-s.x)>10&&Math.abs(a.y-s.y)>=10){Et.debug("Corner point fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y));const x=5;o.x===l.x?m={x:d<0?l.x-x+f:l.x+x-f,y:h<0?l.y-f:l.y+f}:m={x:d<0?l.x-f:l.x+f,y:h<0?l.y-x+f:l.y+x-f}}else Et.debug("Corner point skipping fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y));r.push(m,u)}else r.push(e[i]);return r},"fixCorners"),fOe=Y((e,n,r)=>{const i=e-n-r,s=2,a=2,o=s+a,l=Math.floor(i/o),u=Array(l).fill(`${s} ${a}`).join(" ");return`0 ${n} ${u} ${r}`},"generateDashArray"),pOe=Y(function(e,n,r,i,s,a,o,l=!1){var M;const{handDrawnSeed:u}=di();let d=n.points,h=!1;const f=s;var m=a;const x=[];for(const P in n.cssCompiledStyles)tte(P)||x.push(n.cssCompiledStyles[P]);Et.debug("UIO intersect check",n.points,m.x,f.x),m.intersect&&f.intersect&&!l&&(d=d.slice(1,n.points.length-1),d.unshift(f.intersect(d[0])),Et.debug("Last point UIO",n.start,"-->",n.end,d[d.length-1],m,m.intersect(d[d.length-1])),d.push(m.intersect(d[d.length-1])));const v=btoa(JSON.stringify(d));n.toCluster&&(Et.info("to cluster abc88",r.get(n.toCluster)),d=lz(n.points,r.get(n.toCluster).node),h=!0),n.fromCluster&&(Et.debug("from cluster abc88",r.get(n.fromCluster),JSON.stringify(d,null,2)),d=lz(d.reverse(),r.get(n.fromCluster).node).reverse(),h=!0);let _=d.filter(P=>!Number.isNaN(P.y));const w=oOe(n.curve);w!=="rounded"&&(_=hOe(_));let S=b_;switch(w){case"linear":S=b_;break;case"basis":S=kA;break;case"cardinal":S=LZ;break;case"bumpX":S=AZ;break;case"bumpY":S=OZ;break;case"catmullRom":S=DZ;break;case"monotoneX":S=WZ;break;case"monotoneY":S=UZ;break;case"natural":S=qZ;break;case"step":S=GZ;break;case"stepAfter":S=YZ;break;case"stepBefore":S=KZ;break;case"rounded":S=b_;break;default:S=kA}const{x:C,y:j}=u6e(n),T=z4e().x(C).y(j).curve(S);let E;switch(n.thickness){case"normal":E="edge-thickness-normal";break;case"thick":E="edge-thickness-thick";break;case"invisible":E="edge-thickness-invisible";break;default:E="edge-thickness-normal"}switch(n.pattern){case"solid":E+=" edge-pattern-solid";break;case"dotted":E+=" edge-pattern-dotted";break;case"dashed":E+=" edge-pattern-dashed";break;default:E+=" edge-pattern-solid"}let N,R=w==="rounded"?nre(rre(_,n),5):T(_);const $=Array.isArray(n.style)?n.style:[n.style];let q=$.find(P=>P==null?void 0:P.startsWith("stroke:")),z="";n.animate&&(z="edge-animation-fast"),n.animation&&(z="edge-animation-"+n.animation);let B=!1;if(n.look==="handDrawn"){const P=jn.svg(e);Object.assign([],_);const F=P.path(R,{roughness:.3,seed:u});E+=" transition",N=Xn(F).select("path").attr("id",n.id).attr("class"," "+E+(n.classes?" "+n.classes:"")+(z?" "+z:"")).attr("style",$?$.reduce((W,V)=>W+";"+V,""):"");let G=N.attr("d");N.attr("d",G),e.node().appendChild(N.node())}else{const P=x.join(";"),F=$?$.reduce((Q,X)=>Q+X+";",""):"",G=(P?P+";"+F+";":F)+";"+($?$.reduce((Q,X)=>Q+";"+X,""):"");N=e.append("path").attr("d",R).attr("id",n.id).attr("class"," "+E+(n.classes?" "+n.classes:"")+(z?" "+z:"")).attr("style",G),q=(M=G.match(/stroke:([^;]+)/))==null?void 0:M[1],B=n.animate===!0||!!n.animation||P.includes("animation");const W=N.node(),V=typeof W.getTotalLength=="function"?W.getTotalLength():0,J=kB[n.arrowTypeStart]||0,U=kB[n.arrowTypeEnd]||0;if(n.look==="neo"&&!B){const X=`stroke-dasharray: ${n.pattern==="dotted"||n.pattern==="dashed"?fOe(V,J,U):`0 ${J} ${V-J-U} ${U}`}; stroke-dashoffset: 0;`;N.attr("style",X+N.attr("style"))}}N.attr("data-edge",!0),N.attr("data-et","edge"),N.attr("data-id",n.id),N.attr("data-points",v),n.showPoints&&_.forEach(P=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",P.x).attr("cy",P.y)});let H="";(di().flowchart.arrowMarkerAbsolute||di().state.arrowMarkerAbsolute)&&(H=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,H=H.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Et.info("arrowTypeStart",n.arrowTypeStart),Et.info("arrowTypeEnd",n.arrowTypeEnd),sOe(N,n,H,o,i,q);const D=Math.floor(d.length/2),O=d[D];ad.isLabelCoordinateInPath(O,N.attr("d"))||(h=!0);let I={};return h&&(I.updatedPath=d),I.originalPath=n.points,I},"insertEdge");function nre(e,n){if(e.length<2)return"";let r="";const i=e.length,s=1e-5;for(let a=0;a<i;a++){const o=e[a],l=e[a-1],u=e[a+1];if(a===0)r+=`M${o.x},${o.y}`;else if(a===i-1)r+=`L${o.x},${o.y}`;else{const d=o.x-l.x,h=o.y-l.y,f=u.x-o.x,m=u.y-o.y,x=Math.hypot(d,h),v=Math.hypot(f,m);if(x<s||v<s){r+=`L${o.x},${o.y}`;continue}const _=d/x,w=h/x,S=f/v,C=m/v,j=_*S+w*C,T=Math.max(-1,Math.min(1,j)),E=Math.acos(T);if(E<s||Math.abs(Math.PI-E)<s){r+=`L${o.x},${o.y}`;continue}const N=Math.min(n/Math.sin(E/2),x/2,v/2),R=o.x-_*N,$=o.y-w*N,q=o.x+S*N,z=o.y+C*N;r+=`L${R},${$}`,r+=`Q${o.x},${o.y} ${q},${z}`}}return r}Y(nre,"generateRoundedPath");function ZA(e,n){if(!e||!n)return{angle:0,deltaX:0,deltaY:0};const r=n.x-e.x,i=n.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}Y(ZA,"calculateDeltaAndAngle");function rre(e,n){const r=e.map(s=>({...s}));if(e.length>=2&&jo[n.arrowTypeStart]){const s=jo[n.arrowTypeStart],a=e[0],o=e[1],{angle:l}=ZA(a,o),u=s*Math.cos(l),d=s*Math.sin(l);r[0].x=a.x+u,r[0].y=a.y+d}const i=e.length;if(i>=2&&jo[n.arrowTypeEnd]){const s=jo[n.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:l}=ZA(o,a),u=s*Math.cos(l),d=s*Math.sin(l);r[i-1].x=a.x-u,r[i-1].y=a.y-d}return r}Y(rre,"applyMarkerOffsetsToPoints");var mOe=Y((e,n,r,i)=>{n.forEach(s=>{OOe[s](e,r,i)})},"insertMarkers"),gOe=Y((e,n,r)=>{Et.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+n+"-extensionStart").attr("class","marker extension "+n).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+n+"-extensionEnd").attr("class","marker extension "+n).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),yOe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-compositionStart").attr("class","marker composition "+n).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+n+"-compositionEnd").attr("class","marker composition "+n).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),xOe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-aggregationStart").attr("class","marker aggregation "+n).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+n+"-aggregationEnd").attr("class","marker aggregation "+n).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),vOe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-dependencyStart").attr("class","marker dependency "+n).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+n+"-dependencyEnd").attr("class","marker dependency "+n).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),bOe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-lollipopStart").attr("class","marker lollipop "+n).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+n+"-lollipopEnd").attr("class","marker lollipop "+n).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),_Oe=Y((e,n,r)=>{e.append("marker").attr("id",r+"_"+n+"-pointEnd").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+n+"-pointStart").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),wOe=Y((e,n,r)=>{e.append("marker").attr("id",r+"_"+n+"-circleEnd").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+n+"-circleStart").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),SOe=Y((e,n,r)=>{e.append("marker").attr("id",r+"_"+n+"-crossEnd").attr("class","marker cross "+n).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+n+"-crossStart").attr("class","marker cross "+n).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),kOe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),COe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-onlyOneStart").attr("class","marker onlyOne "+n).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+n+"-onlyOneEnd").attr("class","marker onlyOne "+n).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),jOe=Y((e,n,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+n+"-zeroOrOneStart").attr("class","marker zeroOrOne "+n).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const s=e.append("defs").append("marker").attr("id",r+"_"+n+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+n).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),NOe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-oneOrMoreStart").attr("class","marker oneOrMore "+n).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+n+"-oneOrMoreEnd").attr("class","marker oneOrMore "+n).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),TOe=Y((e,n,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+n+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+n).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const s=e.append("defs").append("marker").attr("id",r+"_"+n+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+n).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),EOe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
1113
1113
  L20,10
1114
1114
  M20,10
1115
- L0,20`)},"requirement_arrow"),AOe=Y((e,n,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+n+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),OOe={extension:gOe,composition:yOe,aggregation:xOe,dependency:vOe,lollipop:bOe,point:_Oe,circle:wOe,cross:SOe,barb:kOe,only_one:COe,zero_or_one:jOe,one_or_more:NOe,zero_or_more:TOe,requirement_arrow:EOe,requirement_contains:AOe},ROe=mOe,MOe={common:dS,getConfig:Ro,insertCluster:BAe,insertEdge:pOe,insertEdgeLabel:lOe,insertMarkers:ROe,insertNode:ere,interpolateToCurve:c9,labelHelper:ir,log:Et,positionEdgeLabel:cOe},l2={},ire=Y(e=>{for(const n of e)l2[n.name]=n},"registerLayoutLoaders"),POe=Y(()=>{ire([{name:"dagre",loader:Y(async()=>await nt(()=>import("./dagre-KLK3FWXG--aHpxKfe.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:Y(async()=>await nt(()=>import("./cose-bilkent-S5V4N54A-F7WmPEMI.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");POe();var T_t=Y(async(e,n)=>{if(!(e.layoutAlgorithm in l2))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=l2[e.layoutAlgorithm];return(await r.loader()).render(e,n,MOe,{algorithm:r.algorithm})},"render"),E_t=Y((e="",{fallback:n="dagre"}={})=>{if(e in l2)return e;if(n in l2)return Et.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`),n;throw new Error(`Both layout algorithms ${e} and ${n} are not registered.`)},"getRegisteredLayoutAlgorithm"),sre="comm",are="rule",ore="decl",LOe="@import",$Oe="@namespace",DOe="@keyframes",IOe="@layer",lre=Math.abs,A9=String.fromCharCode;function cre(e){return e.trim()}function N3(e,n,r){return e.replace(n,r)}function BOe(e,n,r){return e.indexOf(n,r)}function w1(e,n){return e.charCodeAt(n)|0}function X1(e,n,r){return e.slice(n,r)}function vh(e){return e.length}function zOe(e){return e.length}function xC(e,n){return n.push(e),e}var H4=1,J1=1,ure=0,Eu=0,na=0,Sx="";function O9(e,n,r,i,s,a,o,l){return{value:e,root:n,parent:r,type:i,props:s,children:a,line:H4,column:J1,length:o,return:"",siblings:l}}function FOe(){return na}function HOe(){return na=Eu>0?w1(Sx,--Eu):0,J1--,na===10&&(J1=1,H4--),na}function gd(){return na=Eu<ure?w1(Sx,Eu++):0,J1++,na===10&&(J1=1,H4++),na}function mm(){return w1(Sx,Eu)}function T3(){return Eu}function W4(e,n){return X1(Sx,e,n)}function c2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function WOe(e){return H4=J1=1,ure=vh(Sx=e),Eu=0,[]}function UOe(e){return Sx="",e}function ST(e){return cre(W4(Eu-1,QA(e===91?e+2:e===40?e+1:e)))}function VOe(e){for(;(na=mm())&&na<33;)gd();return c2(e)>2||c2(na)>3?"":" "}function qOe(e,n){for(;--n&&gd()&&!(na<48||na>102||na>57&&na<65||na>70&&na<97););return W4(e,T3()+(n<6&&mm()==32&&gd()==32))}function QA(e){for(;gd();)switch(na){case e:return Eu;case 34:case 39:e!==34&&e!==39&&QA(na);break;case 40:e===41&&QA(e);break;case 92:gd();break}return Eu}function GOe(e,n){for(;gd()&&e+na!==57;)if(e+na===84&&mm()===47)break;return"/*"+W4(n,Eu-1)+"*"+A9(e===47?e:gd())}function KOe(e){for(;!c2(mm());)gd();return W4(e,Eu)}function YOe(e){return UOe(E3("",null,null,null,[""],e=WOe(e),0,[0],e))}function E3(e,n,r,i,s,a,o,l,u){for(var d=0,h=0,f=o,m=0,x=0,v=0,_=1,w=1,S=1,C=0,j="",T=s,E=a,N=i,R=j;w;)switch(v=C,C=gd()){case 40:if(v!=108&&w1(R,f-1)==58){BOe(R+=N3(ST(C),"&","&\f"),"&\f",lre(d?l[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=ST(C);break;case 9:case 10:case 13:case 32:R+=VOe(v);break;case 92:R+=qOe(T3()-1,7);continue;case 47:switch(mm()){case 42:case 47:xC(XOe(GOe(gd(),T3()),n,r,u),u),(c2(v||1)==5||c2(mm()||1)==5)&&vh(R)&&X1(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*_:l[d++]=vh(R)*S;case 125*_:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+h:S==-1&&(R=N3(R,/\f/g,"")),x>0&&(vh(R)-f||_===0&&v===47)&&xC(x>32?dz(R+";",i,r,f-1,u):dz(N3(R," ","")+";",i,r,f-2,u),u);break;case 59:R+=";";default:if(xC(N=uz(R,n,r,d,h,s,l,j,T=[],E=[],f,a),a),C===123)if(h===0)E3(R,n,N,N,T,a,f,l,E);else{switch(m){case 99:if(w1(R,3)===110)break;case 108:if(w1(R,2)===97)break;default:h=0;case 100:case 109:case 115:}h?E3(e,N,N,i&&xC(uz(e,N,N,0,0,s,l,j,s,T=[],f,E),E),s,E,f,l,i?T:E):E3(R,N,N,N,[""],E,0,l,E)}}d=h=x=0,_=S=1,j=R="",f=o;break;case 58:f=1+vh(R),x=v;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&HOe()==125)continue}switch(R+=A9(C),C*_){case 38:S=h>0?1:(R+="\f",-1);break;case 44:l[d++]=(vh(R)-1)*S,S=1;break;case 64:mm()===45&&(R+=ST(gd())),m=mm(),h=f=vh(j=R+=KOe(T3())),C++;break;case 45:v===45&&vh(R)==2&&(_=0)}}return a}function uz(e,n,r,i,s,a,o,l,u,d,h,f){for(var m=s-1,x=s===0?a:[""],v=zOe(x),_=0,w=0,S=0;_<i;++_)for(var C=0,j=X1(e,m+1,m=lre(w=o[_])),T=e;C<v;++C)(T=cre(w>0?x[C]+" "+j:N3(j,/&\f/g,x[C])))&&(u[S++]=T);return O9(e,n,r,s===0?are:l,u,d,h,f)}function XOe(e,n,r,i){return O9(e,n,r,sre,A9(FOe()),X1(e,2,-2),0,i)}function dz(e,n,r,i,s){return O9(e,n,r,ore,X1(e,0,i),X1(e,i+1,-1),i,s)}function eO(e,n){for(var r="",i=0;i<e.length;i++)r+=n(e[i],i,e,n)||"";return r}function JOe(e,n,r,i){switch(e.type){case IOe:if(e.children.length)break;case LOe:case $Oe:case ore:return e.return=e.return||e.value;case sre:return"";case DOe:return e.return=e.value+"{"+eO(e.children,i)+"}";case are:if(!vh(e.value=e.props.join(",")))return""}return vh(r=eO(e.children,i))?e.return=e.value+"{"+r+"}":""}var ZOe=Pee(Object.keys,Object),QOe=Object.prototype,e7e=QOe.hasOwnProperty;function t7e(e){if(!M4(e))return ZOe(e);var n=[];for(var r in Object(e))e7e.call(e,r)&&r!="constructor"&&n.push(r);return n}var tO=z0(Ad,"DataView"),nO=z0(Ad,"Promise"),rO=z0(Ad,"Set"),iO=z0(Ad,"WeakMap"),hz="[object Map]",n7e="[object Object]",fz="[object Promise]",pz="[object Set]",mz="[object WeakMap]",gz="[object DataView]",r7e=B0(tO),i7e=B0(a2),s7e=B0(nO),a7e=B0(rO),o7e=B0(iO),$g=I0;(tO&&$g(new tO(new ArrayBuffer(1)))!=gz||a2&&$g(new a2)!=hz||nO&&$g(nO.resolve())!=fz||rO&&$g(new rO)!=pz||iO&&$g(new iO)!=mz)&&($g=function(e){var n=I0(e),r=n==n7e?e.constructor:void 0,i=r?B0(r):"";if(i)switch(i){case r7e:return gz;case i7e:return hz;case s7e:return fz;case a7e:return pz;case o7e:return mz}return n});var l7e="[object Map]",c7e="[object Set]",u7e=Object.prototype,d7e=u7e.hasOwnProperty;function yz(e){if(e==null)return!0;if(P4(e)&&(I5(e)||typeof e=="string"||typeof e.splice=="function"||o9(e)||l9(e)||D5(e)))return!e.length;var n=$g(e);if(n==l7e||n==c7e)return!e.size;if(M4(e))return!t7e(e).length;for(var r in e)if(d7e.call(e,r))return!1;return!0}var dre="c4",h7e=Y(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),f7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./c4Diagram-IC4MRINW-DLL-p43h.js");return{diagram:n}},__vite__mapDeps([8,9]),import.meta.url);return{id:dre,diagram:e}},"loader"),p7e={id:dre,detector:h7e,loader:f7e},m7e=p7e,hre="flowchart",g7e=Y((e,n)=>{var r,i;return((r=n==null?void 0:n.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=n==null?void 0:n.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),y7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-L4jrDuYS.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:hre,diagram:e}},"loader"),x7e={id:hre,detector:g7e,loader:y7e},v7e=x7e,fre="flowchart-v2",b7e=Y((e,n)=>{var r,i,s;return((r=n==null?void 0:n.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=n==null?void 0:n.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(n.layout="elk"),/^\s*graph/.test(e)&&((s=n==null?void 0:n.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),_7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-L4jrDuYS.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:fre,diagram:e}},"loader"),w7e={id:fre,detector:b7e,loader:_7e},S7e=w7e,pre="er",k7e=Y(e=>/^\s*erDiagram/.test(e),"detector"),C7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./erDiagram-INFDFZHY-D--EeN8Y.js");return{diagram:n}},__vite__mapDeps([15,12,13,14]),import.meta.url);return{id:pre,diagram:e}},"loader"),j7e={id:pre,detector:k7e,loader:C7e},N7e=j7e,mre="gitGraph",T7e=Y(e=>/^\s*gitGraph/.test(e),"detector"),E7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./gitGraphDiagram-K3NZZRJ6-DT6htp8b.js");return{diagram:n}},__vite__mapDeps([16,17,18,19,2,4,5]),import.meta.url);return{id:mre,diagram:e}},"loader"),A7e={id:mre,detector:T7e,loader:E7e},O7e=A7e,gre="gantt",R7e=Y(e=>/^\s*gantt/.test(e),"detector"),M7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./ganttDiagram-A5KZAMGK-CH4jdVhf.js");return{diagram:n}},__vite__mapDeps([20,21,22]),import.meta.url);return{id:gre,diagram:e}},"loader"),P7e={id:gre,detector:R7e,loader:M7e},L7e=P7e,yre="info",$7e=Y(e=>/^\s*info/.test(e),"detector"),D7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./infoDiagram-LFFYTUFH-Cc7-TZij.js");return{diagram:n}},__vite__mapDeps([23,19,2,4,5]),import.meta.url);return{id:yre,diagram:e}},"loader"),I7e={id:yre,detector:$7e,loader:D7e},xre="pie",B7e=Y(e=>/^\s*pie/.test(e),"detector"),z7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./pieDiagram-SKSYHLDU-CCHGQeQ_.js");return{diagram:n}},__vite__mapDeps([24,17,19,2,4,5,25]),import.meta.url);return{id:xre,diagram:e}},"loader"),F7e={id:xre,detector:B7e,loader:z7e},vre="quadrantChart",H7e=Y(e=>/^\s*quadrantChart/.test(e),"detector"),W7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./quadrantDiagram-337W2JSQ-CCyaqTny.js");return{diagram:n}},__vite__mapDeps([26,21,22]),import.meta.url);return{id:vre,diagram:e}},"loader"),U7e={id:vre,detector:H7e,loader:W7e},V7e=U7e,bre="xychart",q7e=Y(e=>/^\s*xychart(-beta)?/.test(e),"detector"),G7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./xychartDiagram-JWTSCODW-1k_8HMy7.js");return{diagram:n}},__vite__mapDeps([27,21,22]),import.meta.url);return{id:bre,diagram:e}},"loader"),K7e={id:bre,detector:q7e,loader:G7e},Y7e=K7e,_re="requirement",X7e=Y(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),J7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./requirementDiagram-Z7DCOOCP-Cm5HCG0e.js");return{diagram:n}},__vite__mapDeps([28,12,13]),import.meta.url);return{id:_re,diagram:e}},"loader"),Z7e={id:_re,detector:X7e,loader:J7e},Q7e=Z7e,wre="sequence",eRe=Y(e=>/^\s*sequenceDiagram/.test(e),"detector"),tRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./sequenceDiagram-2WXFIKYE-D4FsUOaD.js");return{diagram:n}},__vite__mapDeps([29,9,18]),import.meta.url);return{id:wre,diagram:e}},"loader"),nRe={id:wre,detector:eRe,loader:tRe},rRe=nRe,Sre="class",iRe=Y((e,n)=>{var r;return((r=n==null?void 0:n.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),sRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./classDiagram-VBA2DB6C-r88QcoG4.js");return{diagram:n}},__vite__mapDeps([30,31,11,9,12,13]),import.meta.url);return{id:Sre,diagram:e}},"loader"),aRe={id:Sre,detector:iRe,loader:sRe},oRe=aRe,kre="classDiagram",lRe=Y((e,n)=>{var r;return/^\s*classDiagram/.test(e)&&((r=n==null?void 0:n.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),cRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./classDiagram-v2-RAHNMMFH-r88QcoG4.js");return{diagram:n}},__vite__mapDeps([32,31,11,9,12,13]),import.meta.url);return{id:kre,diagram:e}},"loader"),uRe={id:kre,detector:lRe,loader:cRe},dRe=uRe,Cre="state",hRe=Y((e,n)=>{var r;return((r=n==null?void 0:n.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),fRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./stateDiagram-RAJIS63D-DIXvW7SD.js");return{diagram:n}},__vite__mapDeps([33,34,12,13,1,2,3,4]),import.meta.url);return{id:Cre,diagram:e}},"loader"),pRe={id:Cre,detector:hRe,loader:fRe},mRe=pRe,jre="stateDiagram",gRe=Y((e,n)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=n==null?void 0:n.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),yRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./stateDiagram-v2-FVOUBMTO-DuCNziGy.js");return{diagram:n}},__vite__mapDeps([35,34,12,13]),import.meta.url);return{id:jre,diagram:e}},"loader"),xRe={id:jre,detector:gRe,loader:yRe},vRe=xRe,Nre="journey",bRe=Y(e=>/^\s*journey/.test(e),"detector"),_Re=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./journeyDiagram-4ABVD52K-DCYL8q9q.js");return{diagram:n}},__vite__mapDeps([36,11,9,25]),import.meta.url);return{id:Nre,diagram:e}},"loader"),wRe={id:Nre,detector:bRe,loader:_Re},SRe=wRe,kRe=Y((e,n,r)=>{Et.debug(`rendering svg for syntax error
1116
- `);const i=nNe(n),s=i.append("g");i.attr("viewBox","0 0 2412 512"),XJ(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Tre={draw:kRe},CRe=Tre,jRe={db:{},renderer:Tre,parser:{parse:Y(()=>{},"parse")}},NRe=jRe,Ere="flowchart-elk",TRe=Y((e,n={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=n==null?void 0:n.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(n.layout="elk",!0):!1},"detector"),ERe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-L4jrDuYS.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:Ere,diagram:e}},"loader"),ARe={id:Ere,detector:TRe,loader:ERe},ORe=ARe,Are="timeline",RRe=Y(e=>/^\s*timeline/.test(e),"detector"),MRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./timeline-definition-YZTLITO2-C0TFl0FE.js");return{diagram:n}},__vite__mapDeps([37,25]),import.meta.url);return{id:Are,diagram:e}},"loader"),PRe={id:Are,detector:RRe,loader:MRe},LRe=PRe,Ore="mindmap",$Re=Y(e=>/^\s*mindmap/.test(e),"detector"),DRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./mindmap-definition-YRQLILUH-CmcJT8og.js");return{diagram:n}},__vite__mapDeps([38,12,13]),import.meta.url);return{id:Ore,diagram:e}},"loader"),IRe={id:Ore,detector:$Re,loader:DRe},BRe=IRe,Rre="kanban",zRe=Y(e=>/^\s*kanban/.test(e),"detector"),FRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./kanban-definition-K7BYSVSG-BPTCDG18.js");return{diagram:n}},__vite__mapDeps([39,11]),import.meta.url);return{id:Rre,diagram:e}},"loader"),HRe={id:Rre,detector:zRe,loader:FRe},WRe=HRe,Mre="sankey",URe=Y(e=>/^\s*sankey(-beta)?/.test(e),"detector"),VRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./sankeyDiagram-WA2Y5GQK-htaRd9sX.js");return{diagram:n}},[],import.meta.url);return{id:Mre,diagram:e}},"loader"),qRe={id:Mre,detector:URe,loader:VRe},GRe=qRe,Pre="packet",KRe=Y(e=>/^\s*packet(-beta)?/.test(e),"detector"),YRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./diagram-P4PSJMXO-yp8yax7E.js");return{diagram:n}},__vite__mapDeps([40,17,19,2,4,5]),import.meta.url);return{id:Pre,diagram:e}},"loader"),XRe={id:Pre,detector:KRe,loader:YRe},Lre="radar",JRe=Y(e=>/^\s*radar-beta/.test(e),"detector"),ZRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./diagram-IFDJBPK2-BHKdOotS.js");return{diagram:n}},__vite__mapDeps([41,17,19,2,4,5]),import.meta.url);return{id:Lre,diagram:e}},"loader"),QRe={id:Lre,detector:JRe,loader:ZRe},$re="block",eMe=Y(e=>/^\s*block(-beta)?/.test(e),"detector"),tMe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./blockDiagram-WCTKOSBZ-Dlwzm7GQ.js");return{diagram:n}},__vite__mapDeps([42,11,5,2,1,14]),import.meta.url);return{id:$re,diagram:e}},"loader"),nMe={id:$re,detector:eMe,loader:tMe},rMe=nMe,Dre="architecture",iMe=Y(e=>/^\s*architecture/.test(e),"detector"),sMe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./architectureDiagram-2XIMDMQ5-De2nVCvD.js");return{diagram:n}},__vite__mapDeps([43,17,19,2,4,5,7]),import.meta.url);return{id:Dre,diagram:e}},"loader"),aMe={id:Dre,detector:iMe,loader:sMe},oMe=aMe,Ire="ishikawa",lMe=Y(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),cMe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./ishikawaDiagram-PHBUUO56-BqTmfFJB.js");return{diagram:n}},[],import.meta.url);return{id:Ire,diagram:e}},"loader"),uMe={id:Ire,detector:lMe,loader:cMe},Bre="venn",dMe=Y(e=>/^\s*venn-beta/.test(e),"detector"),hMe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./vennDiagram-LZ73GAT5-Bhrnw8AE.js");return{diagram:n}},[],import.meta.url);return{id:Bre,diagram:e}},"loader"),fMe={id:Bre,detector:dMe,loader:hMe},pMe=fMe,zre="treemap",mMe=Y(e=>/^\s*treemap/.test(e),"detector"),gMe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./diagram-E7M64L7V-EBcxJnXi.js");return{diagram:n}},__vite__mapDeps([44,13,17,19,2,4,5,22]),import.meta.url);return{id:zre,diagram:e}},"loader"),yMe={id:zre,detector:mMe,loader:gMe},xz=!1,U4=Y(()=>{xz||(xz=!0,v5("error",NRe,e=>e.toLowerCase().trim()==="error"),v5("---",{db:{clear:Y(()=>{},"clear")},styles:{},renderer:{draw:Y(()=>{},"draw")},parser:{parse:Y(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:Y(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),cA(ORe,BRe,oMe),cA(m7e,WRe,dRe,oRe,N7e,L7e,I7e,F7e,Q7e,rRe,S7e,v7e,LRe,O7e,vRe,mRe,SRe,V7e,GRe,XRe,Y7e,rMe,QRe,uMe,yMe,pMe))},"addDiagrams"),xMe=Y(async()=>{Et.debug("Loading registered diagrams");const n=(await Promise.allSettled(Object.entries(d0).map(async([r,{detector:i,loader:s}])=>{if(s)try{fA(r)}catch{try{const{diagram:a,id:o}=await s();v5(o,a,i)}catch(a){throw Et.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete d0[r],a}}}))).filter(r=>r.status==="rejected");if(n.length>0){Et.error(`Failed to load ${n.length} external diagrams`);for(const r of n)Et.error(r);throw new Error(`Failed to load ${n.length} external diagrams`)}},"loadRegisteredDiagrams"),vMe="graphics-document document";function Fre(e,n){e.attr("role",vMe),n!==""&&e.attr("aria-roledescription",n)}Y(Fre,"setA11yDiagramInfo");function Hre(e,n,r,i){if(e.insert!==void 0){if(r){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(n){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(n)}}}Y(Hre,"addSVGa11yTitleDescription");var a0,sO=(a0=class{constructor(n,r,i,s,a){this.type=n,this.text=r,this.db=i,this.parser=s,this.renderer=a}static async fromText(n,r={}){var d,h;const i=Ro(),s=AM(n,i);n=s8e(n)+`
1115
+ L0,20`)},"requirement_arrow"),AOe=Y((e,n,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+n+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),OOe={extension:gOe,composition:yOe,aggregation:xOe,dependency:vOe,lollipop:bOe,point:_Oe,circle:wOe,cross:SOe,barb:kOe,only_one:COe,zero_or_one:jOe,one_or_more:NOe,zero_or_more:TOe,requirement_arrow:EOe,requirement_contains:AOe},ROe=mOe,MOe={common:dS,getConfig:Ro,insertCluster:BAe,insertEdge:pOe,insertEdgeLabel:lOe,insertMarkers:ROe,insertNode:ere,interpolateToCurve:c9,labelHelper:ir,log:Et,positionEdgeLabel:cOe},l2={},ire=Y(e=>{for(const n of e)l2[n.name]=n},"registerLayoutLoaders"),POe=Y(()=>{ire([{name:"dagre",loader:Y(async()=>await nt(()=>import("./dagre-KLK3FWXG-DW-H_C5A.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:Y(async()=>await nt(()=>import("./cose-bilkent-S5V4N54A-BaM0bOTx.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");POe();var T_t=Y(async(e,n)=>{if(!(e.layoutAlgorithm in l2))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=l2[e.layoutAlgorithm];return(await r.loader()).render(e,n,MOe,{algorithm:r.algorithm})},"render"),E_t=Y((e="",{fallback:n="dagre"}={})=>{if(e in l2)return e;if(n in l2)return Et.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`),n;throw new Error(`Both layout algorithms ${e} and ${n} are not registered.`)},"getRegisteredLayoutAlgorithm"),sre="comm",are="rule",ore="decl",LOe="@import",$Oe="@namespace",DOe="@keyframes",IOe="@layer",lre=Math.abs,A9=String.fromCharCode;function cre(e){return e.trim()}function N3(e,n,r){return e.replace(n,r)}function BOe(e,n,r){return e.indexOf(n,r)}function w1(e,n){return e.charCodeAt(n)|0}function X1(e,n,r){return e.slice(n,r)}function vh(e){return e.length}function zOe(e){return e.length}function xC(e,n){return n.push(e),e}var H4=1,J1=1,ure=0,Eu=0,na=0,Sx="";function O9(e,n,r,i,s,a,o,l){return{value:e,root:n,parent:r,type:i,props:s,children:a,line:H4,column:J1,length:o,return:"",siblings:l}}function FOe(){return na}function HOe(){return na=Eu>0?w1(Sx,--Eu):0,J1--,na===10&&(J1=1,H4--),na}function gd(){return na=Eu<ure?w1(Sx,Eu++):0,J1++,na===10&&(J1=1,H4++),na}function mm(){return w1(Sx,Eu)}function T3(){return Eu}function W4(e,n){return X1(Sx,e,n)}function c2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function WOe(e){return H4=J1=1,ure=vh(Sx=e),Eu=0,[]}function UOe(e){return Sx="",e}function ST(e){return cre(W4(Eu-1,QA(e===91?e+2:e===40?e+1:e)))}function VOe(e){for(;(na=mm())&&na<33;)gd();return c2(e)>2||c2(na)>3?"":" "}function qOe(e,n){for(;--n&&gd()&&!(na<48||na>102||na>57&&na<65||na>70&&na<97););return W4(e,T3()+(n<6&&mm()==32&&gd()==32))}function QA(e){for(;gd();)switch(na){case e:return Eu;case 34:case 39:e!==34&&e!==39&&QA(na);break;case 40:e===41&&QA(e);break;case 92:gd();break}return Eu}function GOe(e,n){for(;gd()&&e+na!==57;)if(e+na===84&&mm()===47)break;return"/*"+W4(n,Eu-1)+"*"+A9(e===47?e:gd())}function KOe(e){for(;!c2(mm());)gd();return W4(e,Eu)}function YOe(e){return UOe(E3("",null,null,null,[""],e=WOe(e),0,[0],e))}function E3(e,n,r,i,s,a,o,l,u){for(var d=0,h=0,f=o,m=0,x=0,v=0,_=1,w=1,S=1,C=0,j="",T=s,E=a,N=i,R=j;w;)switch(v=C,C=gd()){case 40:if(v!=108&&w1(R,f-1)==58){BOe(R+=N3(ST(C),"&","&\f"),"&\f",lre(d?l[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=ST(C);break;case 9:case 10:case 13:case 32:R+=VOe(v);break;case 92:R+=qOe(T3()-1,7);continue;case 47:switch(mm()){case 42:case 47:xC(XOe(GOe(gd(),T3()),n,r,u),u),(c2(v||1)==5||c2(mm()||1)==5)&&vh(R)&&X1(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*_:l[d++]=vh(R)*S;case 125*_:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+h:S==-1&&(R=N3(R,/\f/g,"")),x>0&&(vh(R)-f||_===0&&v===47)&&xC(x>32?dz(R+";",i,r,f-1,u):dz(N3(R," ","")+";",i,r,f-2,u),u);break;case 59:R+=";";default:if(xC(N=uz(R,n,r,d,h,s,l,j,T=[],E=[],f,a),a),C===123)if(h===0)E3(R,n,N,N,T,a,f,l,E);else{switch(m){case 99:if(w1(R,3)===110)break;case 108:if(w1(R,2)===97)break;default:h=0;case 100:case 109:case 115:}h?E3(e,N,N,i&&xC(uz(e,N,N,0,0,s,l,j,s,T=[],f,E),E),s,E,f,l,i?T:E):E3(R,N,N,N,[""],E,0,l,E)}}d=h=x=0,_=S=1,j=R="",f=o;break;case 58:f=1+vh(R),x=v;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&HOe()==125)continue}switch(R+=A9(C),C*_){case 38:S=h>0?1:(R+="\f",-1);break;case 44:l[d++]=(vh(R)-1)*S,S=1;break;case 64:mm()===45&&(R+=ST(gd())),m=mm(),h=f=vh(j=R+=KOe(T3())),C++;break;case 45:v===45&&vh(R)==2&&(_=0)}}return a}function uz(e,n,r,i,s,a,o,l,u,d,h,f){for(var m=s-1,x=s===0?a:[""],v=zOe(x),_=0,w=0,S=0;_<i;++_)for(var C=0,j=X1(e,m+1,m=lre(w=o[_])),T=e;C<v;++C)(T=cre(w>0?x[C]+" "+j:N3(j,/&\f/g,x[C])))&&(u[S++]=T);return O9(e,n,r,s===0?are:l,u,d,h,f)}function XOe(e,n,r,i){return O9(e,n,r,sre,A9(FOe()),X1(e,2,-2),0,i)}function dz(e,n,r,i,s){return O9(e,n,r,ore,X1(e,0,i),X1(e,i+1,-1),i,s)}function eO(e,n){for(var r="",i=0;i<e.length;i++)r+=n(e[i],i,e,n)||"";return r}function JOe(e,n,r,i){switch(e.type){case IOe:if(e.children.length)break;case LOe:case $Oe:case ore:return e.return=e.return||e.value;case sre:return"";case DOe:return e.return=e.value+"{"+eO(e.children,i)+"}";case are:if(!vh(e.value=e.props.join(",")))return""}return vh(r=eO(e.children,i))?e.return=e.value+"{"+r+"}":""}var ZOe=Pee(Object.keys,Object),QOe=Object.prototype,e7e=QOe.hasOwnProperty;function t7e(e){if(!M4(e))return ZOe(e);var n=[];for(var r in Object(e))e7e.call(e,r)&&r!="constructor"&&n.push(r);return n}var tO=z0(Ad,"DataView"),nO=z0(Ad,"Promise"),rO=z0(Ad,"Set"),iO=z0(Ad,"WeakMap"),hz="[object Map]",n7e="[object Object]",fz="[object Promise]",pz="[object Set]",mz="[object WeakMap]",gz="[object DataView]",r7e=B0(tO),i7e=B0(a2),s7e=B0(nO),a7e=B0(rO),o7e=B0(iO),$g=I0;(tO&&$g(new tO(new ArrayBuffer(1)))!=gz||a2&&$g(new a2)!=hz||nO&&$g(nO.resolve())!=fz||rO&&$g(new rO)!=pz||iO&&$g(new iO)!=mz)&&($g=function(e){var n=I0(e),r=n==n7e?e.constructor:void 0,i=r?B0(r):"";if(i)switch(i){case r7e:return gz;case i7e:return hz;case s7e:return fz;case a7e:return pz;case o7e:return mz}return n});var l7e="[object Map]",c7e="[object Set]",u7e=Object.prototype,d7e=u7e.hasOwnProperty;function yz(e){if(e==null)return!0;if(P4(e)&&(I5(e)||typeof e=="string"||typeof e.splice=="function"||o9(e)||l9(e)||D5(e)))return!e.length;var n=$g(e);if(n==l7e||n==c7e)return!e.size;if(M4(e))return!t7e(e).length;for(var r in e)if(d7e.call(e,r))return!1;return!0}var dre="c4",h7e=Y(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),f7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./c4Diagram-IC4MRINW-DKBLF_UJ.js");return{diagram:n}},__vite__mapDeps([8,9]),import.meta.url);return{id:dre,diagram:e}},"loader"),p7e={id:dre,detector:h7e,loader:f7e},m7e=p7e,hre="flowchart",g7e=Y((e,n)=>{var r,i;return((r=n==null?void 0:n.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=n==null?void 0:n.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),y7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-C6SZjF0w.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:hre,diagram:e}},"loader"),x7e={id:hre,detector:g7e,loader:y7e},v7e=x7e,fre="flowchart-v2",b7e=Y((e,n)=>{var r,i,s;return((r=n==null?void 0:n.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=n==null?void 0:n.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(n.layout="elk"),/^\s*graph/.test(e)&&((s=n==null?void 0:n.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),_7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-C6SZjF0w.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:fre,diagram:e}},"loader"),w7e={id:fre,detector:b7e,loader:_7e},S7e=w7e,pre="er",k7e=Y(e=>/^\s*erDiagram/.test(e),"detector"),C7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./erDiagram-INFDFZHY-F1gb5bOn.js");return{diagram:n}},__vite__mapDeps([15,12,13,14]),import.meta.url);return{id:pre,diagram:e}},"loader"),j7e={id:pre,detector:k7e,loader:C7e},N7e=j7e,mre="gitGraph",T7e=Y(e=>/^\s*gitGraph/.test(e),"detector"),E7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./gitGraphDiagram-K3NZZRJ6-BrOBVsd5.js");return{diagram:n}},__vite__mapDeps([16,17,18,19,2,4,5]),import.meta.url);return{id:mre,diagram:e}},"loader"),A7e={id:mre,detector:T7e,loader:E7e},O7e=A7e,gre="gantt",R7e=Y(e=>/^\s*gantt/.test(e),"detector"),M7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./ganttDiagram-A5KZAMGK-BNDtxX4q.js");return{diagram:n}},__vite__mapDeps([20,21,22]),import.meta.url);return{id:gre,diagram:e}},"loader"),P7e={id:gre,detector:R7e,loader:M7e},L7e=P7e,yre="info",$7e=Y(e=>/^\s*info/.test(e),"detector"),D7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./infoDiagram-LFFYTUFH-ByMld6Wa.js");return{diagram:n}},__vite__mapDeps([23,19,2,4,5]),import.meta.url);return{id:yre,diagram:e}},"loader"),I7e={id:yre,detector:$7e,loader:D7e},xre="pie",B7e=Y(e=>/^\s*pie/.test(e),"detector"),z7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./pieDiagram-SKSYHLDU-Cr1V-rFW.js");return{diagram:n}},__vite__mapDeps([24,17,19,2,4,5,25]),import.meta.url);return{id:xre,diagram:e}},"loader"),F7e={id:xre,detector:B7e,loader:z7e},vre="quadrantChart",H7e=Y(e=>/^\s*quadrantChart/.test(e),"detector"),W7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./quadrantDiagram-337W2JSQ-DOe1i3wD.js");return{diagram:n}},__vite__mapDeps([26,21,22]),import.meta.url);return{id:vre,diagram:e}},"loader"),U7e={id:vre,detector:H7e,loader:W7e},V7e=U7e,bre="xychart",q7e=Y(e=>/^\s*xychart(-beta)?/.test(e),"detector"),G7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./xychartDiagram-JWTSCODW-BCd9E4iD.js");return{diagram:n}},__vite__mapDeps([27,21,22]),import.meta.url);return{id:bre,diagram:e}},"loader"),K7e={id:bre,detector:q7e,loader:G7e},Y7e=K7e,_re="requirement",X7e=Y(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),J7e=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./requirementDiagram-Z7DCOOCP-Dch_CeX4.js");return{diagram:n}},__vite__mapDeps([28,12,13]),import.meta.url);return{id:_re,diagram:e}},"loader"),Z7e={id:_re,detector:X7e,loader:J7e},Q7e=Z7e,wre="sequence",eRe=Y(e=>/^\s*sequenceDiagram/.test(e),"detector"),tRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./sequenceDiagram-2WXFIKYE-MJqAkclV.js");return{diagram:n}},__vite__mapDeps([29,9,18]),import.meta.url);return{id:wre,diagram:e}},"loader"),nRe={id:wre,detector:eRe,loader:tRe},rRe=nRe,Sre="class",iRe=Y((e,n)=>{var r;return((r=n==null?void 0:n.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),sRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./classDiagram-VBA2DB6C-BDW4bnqv.js");return{diagram:n}},__vite__mapDeps([30,31,11,9,12,13]),import.meta.url);return{id:Sre,diagram:e}},"loader"),aRe={id:Sre,detector:iRe,loader:sRe},oRe=aRe,kre="classDiagram",lRe=Y((e,n)=>{var r;return/^\s*classDiagram/.test(e)&&((r=n==null?void 0:n.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),cRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./classDiagram-v2-RAHNMMFH-BDW4bnqv.js");return{diagram:n}},__vite__mapDeps([32,31,11,9,12,13]),import.meta.url);return{id:kre,diagram:e}},"loader"),uRe={id:kre,detector:lRe,loader:cRe},dRe=uRe,Cre="state",hRe=Y((e,n)=>{var r;return((r=n==null?void 0:n.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),fRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./stateDiagram-RAJIS63D-uLltWGJa.js");return{diagram:n}},__vite__mapDeps([33,34,12,13,1,2,3,4]),import.meta.url);return{id:Cre,diagram:e}},"loader"),pRe={id:Cre,detector:hRe,loader:fRe},mRe=pRe,jre="stateDiagram",gRe=Y((e,n)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=n==null?void 0:n.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),yRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./stateDiagram-v2-FVOUBMTO-Cm--rdQI.js");return{diagram:n}},__vite__mapDeps([35,34,12,13]),import.meta.url);return{id:jre,diagram:e}},"loader"),xRe={id:jre,detector:gRe,loader:yRe},vRe=xRe,Nre="journey",bRe=Y(e=>/^\s*journey/.test(e),"detector"),_Re=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./journeyDiagram-4ABVD52K-CBnBWUgU.js");return{diagram:n}},__vite__mapDeps([36,11,9,25]),import.meta.url);return{id:Nre,diagram:e}},"loader"),wRe={id:Nre,detector:bRe,loader:_Re},SRe=wRe,kRe=Y((e,n,r)=>{Et.debug(`rendering svg for syntax error
1116
+ `);const i=nNe(n),s=i.append("g");i.attr("viewBox","0 0 2412 512"),XJ(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Tre={draw:kRe},CRe=Tre,jRe={db:{},renderer:Tre,parser:{parse:Y(()=>{},"parse")}},NRe=jRe,Ere="flowchart-elk",TRe=Y((e,n={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=n==null?void 0:n.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(n.layout="elk",!0):!1},"detector"),ERe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-C6SZjF0w.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:Ere,diagram:e}},"loader"),ARe={id:Ere,detector:TRe,loader:ERe},ORe=ARe,Are="timeline",RRe=Y(e=>/^\s*timeline/.test(e),"detector"),MRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./timeline-definition-YZTLITO2-D3DCVlRe.js");return{diagram:n}},__vite__mapDeps([37,25]),import.meta.url);return{id:Are,diagram:e}},"loader"),PRe={id:Are,detector:RRe,loader:MRe},LRe=PRe,Ore="mindmap",$Re=Y(e=>/^\s*mindmap/.test(e),"detector"),DRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./mindmap-definition-YRQLILUH-3nYTknwj.js");return{diagram:n}},__vite__mapDeps([38,12,13]),import.meta.url);return{id:Ore,diagram:e}},"loader"),IRe={id:Ore,detector:$Re,loader:DRe},BRe=IRe,Rre="kanban",zRe=Y(e=>/^\s*kanban/.test(e),"detector"),FRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./kanban-definition-K7BYSVSG-Bd1G7QCW.js");return{diagram:n}},__vite__mapDeps([39,11]),import.meta.url);return{id:Rre,diagram:e}},"loader"),HRe={id:Rre,detector:zRe,loader:FRe},WRe=HRe,Mre="sankey",URe=Y(e=>/^\s*sankey(-beta)?/.test(e),"detector"),VRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./sankeyDiagram-WA2Y5GQK-JBAsKJTm.js");return{diagram:n}},[],import.meta.url);return{id:Mre,diagram:e}},"loader"),qRe={id:Mre,detector:URe,loader:VRe},GRe=qRe,Pre="packet",KRe=Y(e=>/^\s*packet(-beta)?/.test(e),"detector"),YRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./diagram-P4PSJMXO-CtL0s4AT.js");return{diagram:n}},__vite__mapDeps([40,17,19,2,4,5]),import.meta.url);return{id:Pre,diagram:e}},"loader"),XRe={id:Pre,detector:KRe,loader:YRe},Lre="radar",JRe=Y(e=>/^\s*radar-beta/.test(e),"detector"),ZRe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./diagram-IFDJBPK2-Ds9qX6ym.js");return{diagram:n}},__vite__mapDeps([41,17,19,2,4,5]),import.meta.url);return{id:Lre,diagram:e}},"loader"),QRe={id:Lre,detector:JRe,loader:ZRe},$re="block",eMe=Y(e=>/^\s*block(-beta)?/.test(e),"detector"),tMe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./blockDiagram-WCTKOSBZ-C6jYQftU.js");return{diagram:n}},__vite__mapDeps([42,11,5,2,1,14]),import.meta.url);return{id:$re,diagram:e}},"loader"),nMe={id:$re,detector:eMe,loader:tMe},rMe=nMe,Dre="architecture",iMe=Y(e=>/^\s*architecture/.test(e),"detector"),sMe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./architectureDiagram-2XIMDMQ5-GhoE1kJV.js");return{diagram:n}},__vite__mapDeps([43,17,19,2,4,5,7]),import.meta.url);return{id:Dre,diagram:e}},"loader"),aMe={id:Dre,detector:iMe,loader:sMe},oMe=aMe,Ire="ishikawa",lMe=Y(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),cMe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./ishikawaDiagram-PHBUUO56-CtT8ZaYS.js");return{diagram:n}},[],import.meta.url);return{id:Ire,diagram:e}},"loader"),uMe={id:Ire,detector:lMe,loader:cMe},Bre="venn",dMe=Y(e=>/^\s*venn-beta/.test(e),"detector"),hMe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./vennDiagram-LZ73GAT5-DOBsODkb.js");return{diagram:n}},[],import.meta.url);return{id:Bre,diagram:e}},"loader"),fMe={id:Bre,detector:dMe,loader:hMe},pMe=fMe,zre="treemap",mMe=Y(e=>/^\s*treemap/.test(e),"detector"),gMe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./diagram-E7M64L7V-D-q39CTd.js");return{diagram:n}},__vite__mapDeps([44,13,17,19,2,4,5,22]),import.meta.url);return{id:zre,diagram:e}},"loader"),yMe={id:zre,detector:mMe,loader:gMe},xz=!1,U4=Y(()=>{xz||(xz=!0,v5("error",NRe,e=>e.toLowerCase().trim()==="error"),v5("---",{db:{clear:Y(()=>{},"clear")},styles:{},renderer:{draw:Y(()=>{},"draw")},parser:{parse:Y(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:Y(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),cA(ORe,BRe,oMe),cA(m7e,WRe,dRe,oRe,N7e,L7e,I7e,F7e,Q7e,rRe,S7e,v7e,LRe,O7e,vRe,mRe,SRe,V7e,GRe,XRe,Y7e,rMe,QRe,uMe,yMe,pMe))},"addDiagrams"),xMe=Y(async()=>{Et.debug("Loading registered diagrams");const n=(await Promise.allSettled(Object.entries(d0).map(async([r,{detector:i,loader:s}])=>{if(s)try{fA(r)}catch{try{const{diagram:a,id:o}=await s();v5(o,a,i)}catch(a){throw Et.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete d0[r],a}}}))).filter(r=>r.status==="rejected");if(n.length>0){Et.error(`Failed to load ${n.length} external diagrams`);for(const r of n)Et.error(r);throw new Error(`Failed to load ${n.length} external diagrams`)}},"loadRegisteredDiagrams"),vMe="graphics-document document";function Fre(e,n){e.attr("role",vMe),n!==""&&e.attr("aria-roledescription",n)}Y(Fre,"setA11yDiagramInfo");function Hre(e,n,r,i){if(e.insert!==void 0){if(r){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(n){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(n)}}}Y(Hre,"addSVGa11yTitleDescription");var a0,sO=(a0=class{constructor(n,r,i,s,a){this.type=n,this.text=r,this.db=i,this.parser=s,this.renderer=a}static async fromText(n,r={}){var d,h;const i=Ro(),s=AM(n,i);n=s8e(n)+`
1117
1117
  `;try{fA(s)}catch{const f=Gke(s);if(!f)throw new $J(`Diagram ${s} not found.`);const{id:m,diagram:x}=await f();v5(m,x)}const{db:a,parser:o,renderer:l,init:u}=fA(s);return o.parser&&(o.parser.yy=a),(d=a.clear)==null||d.call(a),u==null||u(i),r.title&&((h=a.setDiagramTitle)==null||h.call(a,r.title)),await o.parse(n),new a0(s,n,a,o,l)}async render(n,r){await this.renderer.draw(this.text,n,r,this)}getParser(){return this.parser}getType(){return this.type}},Y(a0,"Diagram"),a0),vz=[],bMe=Y(()=>{vz.forEach(e=>{e()}),vz=[]},"attachFunctions"),_Me=Y(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Wre(e){const n=e.match(LJ);if(!n)return{text:e,metadata:{}};let r=c6e(n[1],{schema:l6e})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(n[0].length),metadata:i}}Y(Wre,"extractFrontMatter");var wMe=Y(e=>e.replace(/\r\n?/g,`
1118
1118
  `).replace(/<(\w+)([^>]*)>/g,(n,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),SMe=Y(e=>{const{text:n,metadata:r}=Wre(e),{displayMode:i,title:s,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:s,config:a,text:n}},"processFrontmatter"),kMe=Y(e=>{const n=ad.detectInit(e)??{},r=ad.detectDirective(e,"wrap");return Array.isArray(r)?n.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(n.wrap=!0),{text:qEe(e),directive:n}},"processDirectives");function R9(e){const n=wMe(e),r=SMe(n),i=kMe(r.text),s=p9(r.config,i.directive);return e=_Me(i.text),{code:e,title:r.title,config:s}}Y(R9,"preprocessDiagram");function Ure(e){const n=new TextEncoder().encode(e),r=Array.from(n,i=>String.fromCodePoint(i)).join("");return btoa(r)}Y(Ure,"toBase64");var CMe=5e4,jMe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",NMe="sandbox",TMe="loose",EMe="http://www.w3.org/2000/svg",AMe="http://www.w3.org/1999/xlink",OMe="http://www.w3.org/1999/xhtml",RMe="100%",MMe="100%",PMe="border:0;margin:0;",LMe="margin:0",$Me="allow-top-navigation-by-user-activation allow-popups",DMe='The "iframe" tag is not supported by your browser.',IMe=["foreignobject"],BMe=["dominant-baseline"];function M9(e){const n=R9(e);return y5(),cCe(n.config??{}),n}Y(M9,"processAndSetConfigs");async function Vre(e,n){U4();try{const{code:r,config:i}=M9(e);return{diagramType:(await Gre(r)).type,config:i}}catch(r){if(n!=null&&n.suppressErrors)return!1;throw r}}Y(Vre,"parse");var bz=Y((e,n,r=[])=>`
1119
1119
  .${e} ${n} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),zMe=Y((e,n=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
@@ -1123,7 +1123,7 @@ ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
1123
1123
  ${DMe}
1124
1124
  </iframe>`},"putIntoIFrame"),_z=Y((e,n,r,i,s)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const o=a.append("svg").attr("id",n).attr("width","100%").attr("xmlns",EMe);return s&&o.attr("xmlns:xlink",s),o.append("g"),e},"appendDivSvgG");function aO(e,n){return e.append("iframe").attr("id",n).attr("style","width: 100%; height: 100%;").attr("sandbox","")}Y(aO,"sandboxedIframe");var UMe=Y((e,n,r,i)=>{var s,a,o;(s=e.getElementById(n))==null||s.remove(),(a=e.getElementById(r))==null||a.remove(),(o=e.getElementById(i))==null||o.remove()},"removeExistingElements"),VMe=Y(async function(e,n,r){var H,D,O,I,M,P;U4();const i=M9(n);n=i.code;const s=Ro();Et.debug(s),n.length>((s==null?void 0:s.maxTextSize)??CMe)&&(n=jMe);const a="#"+e,o="i"+e,l="#"+o,u="d"+e,d="#"+u,h=Y(()=>{const G=Xn(m?l:d).node();G&&"remove"in G&&G.remove()},"removeTempElements");let f=Xn("body");const m=s.securityLevel===NMe,x=s.securityLevel===TMe,v=s.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),m){const F=aO(Xn(r),o);f=Xn(F.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=Xn(r);_z(f,e,u,`font-family: ${v}`,AMe)}else{if(UMe(document,e,u,o),m){const F=aO(Xn("body"),o);f=Xn(F.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=Xn("body");_z(f,e,u)}let _,w;try{_=await sO.fromText(n,{title:i.title})}catch(F){if(s.suppressErrorRendering)throw h(),F;_=await sO.fromText("error"),w=F}const S=f.select(d).node(),C=_.type,j=S.firstChild,T=j.firstChild,E=(D=(H=_.renderer).getClasses)==null?void 0:D.call(H,n,_),N=FMe(s,C,E,a),R=document.createElement("style");R.innerHTML=N,j.insertBefore(R,T);try{await _.renderer.draw(n,e,"11.13.0",_)}catch(F){throw s.suppressErrorRendering?h():CRe.draw(n,e,"11.13.0"),F}const $=f.select(`${d} svg`),q=(I=(O=_.db).getAccTitle)==null?void 0:I.call(O),z=(P=(M=_.db).getAccDescription)==null?void 0:P.call(M);Kre(C,$,q,z),f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",OMe);let B=f.select(d).node().innerHTML;if(Et.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),B=HMe(B,m,Wm(s.arrowMarkerAbsolute)),m){const F=f.select(d+" svg").node();B=WMe(B,F)}else x||(B=U1.sanitize(B,{ADD_TAGS:IMe,ADD_ATTR:BMe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(bMe(),w)throw w;return h(),{diagramType:C,svg:B,bindFunctions:_.db.bindFunctions}},"render");function qre(e={}){var i;const n=_a({},e);n!=null&&n.fontFamily&&!((i=n.themeVariables)!=null&&i.fontFamily)&&(n.themeVariables||(n.themeVariables={}),n.themeVariables.fontFamily=n.fontFamily),oCe(n),n!=null&&n.theme&&n.theme in Wf?n.themeVariables=Wf[n.theme].getThemeVariables(n.themeVariables):n&&(n.themeVariables=Wf.default.getThemeVariables(n.themeVariables));const r=typeof n=="object"?aCe(n):FJ();EM(r.logLevel),U4()}Y(qre,"initialize");var Gre=Y((e,n={})=>{const{code:r}=R9(e);return sO.fromText(r,n)},"getDiagramFromText");function Kre(e,n,r,i){Fre(n,e),Hre(n,r,i,n.attr("id"))}Y(Kre,"addA11yInfo");var y0=Object.freeze({render:VMe,parse:Vre,getDiagramFromText:Gre,initialize:qre,getConfig:Ro,setConfig:HJ,getSiteConfig:FJ,updateSiteConfig:lCe,reset:Y(()=>{y5()},"reset"),globalReset:Y(()=>{y5(V1)},"globalReset"),defaultConfig:V1});EM(Ro().logLevel);y5(Ro());var qMe=Y((e,n,r)=>{Et.warn(e),f9(e)?(r&&r(e.str,e.hash),n.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&n.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),Yre=Y(async function(e={querySelector:".mermaid"}){try{await GMe(e)}catch(n){if(f9(n)&&Et.error(n.str),Pc.parseError&&Pc.parseError(n),!e.suppressErrors)throw Et.error("Use the suppressErrors option to suppress these errors"),n}},"run"),GMe=Y(async function({postRenderCallback:e,querySelector:n,nodes:r}={querySelector:".mermaid"}){const i=y0.getConfig();Et.debug(`${e?"":"No "}Callback function found`);let s;if(r)s=r;else if(n)s=document.querySelectorAll(n);else throw new Error("Nodes and querySelector are both undefined");Et.debug(`Found ${s.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(Et.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),y0.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new ad.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const l=[];for(const u of Array.from(s)){if(Et.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const d=`mermaid-${a.next()}`;o=u.innerHTML,o=pte(ad.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=ad.detectInit(o);h&&Et.debug("Detected early reinit: ",h);try{const{svg:f,bindFunctions:m}=await Qre(d,o,u);u.innerHTML=f,e&&await e(d),m&&m(u)}catch(f){qMe(f,l,Pc.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),Xre=Y(function(e){y0.initialize(e)},"initialize"),KMe=Y(async function(e,n,r){Et.warn("mermaid.init is deprecated. Please use run instead."),e&&Xre(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof n=="string"?i.querySelector=n:n&&(n instanceof HTMLElement?i.nodes=[n]:i.nodes=n),await Yre(i)},"init"),YMe=Y(async(e,{lazyLoad:n=!0}={})=>{U4(),cA(...e),n===!1&&await xMe()},"registerExternalDiagrams"),Jre=Y(function(){if(Pc.startOnLoad){const{startOnLoad:e}=y0.getConfig();e&&Pc.run().catch(n=>Et.error("Mermaid failed to initialize",n))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Jre,!1);var XMe=Y(function(e){Pc.parseError=e},"setParseErrorHandler"),Y5=[],kT=!1,Zre=Y(async()=>{if(!kT){for(kT=!0;Y5.length>0;){const e=Y5.shift();if(e)try{await e()}catch(n){Et.error("Error executing queue",n)}}kT=!1}},"executeQueue"),JMe=Y(async(e,n)=>new Promise((r,i)=>{const s=Y(()=>new Promise((a,o)=>{y0.parse(e,n).then(l=>{a(l),r(l)},l=>{var u;Et.error("Error parsing",l),(u=Pc.parseError)==null||u.call(Pc,l),o(l),i(l)})}),"performCall");Y5.push(s),Zre().catch(i)}),"parse"),Qre=Y((e,n,r)=>new Promise((i,s)=>{const a=Y(()=>new Promise((o,l)=>{y0.render(e,n,r).then(u=>{o(u),i(u)},u=>{var d;Et.error("Error parsing",u),(d=Pc.parseError)==null||d.call(Pc,u),l(u),s(u)})}),"performCall");Y5.push(a),Zre().catch(s)}),"render"),ZMe=Y(()=>Object.keys(d0).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Pc={startOnLoad:!0,mermaidAPI:y0,parse:JMe,render:Qre,init:KMe,run:Yre,registerExternalDiagrams:YMe,registerLayoutLoaders:ire,initialize:Xre,parseError:void 0,contentLoaded:Jre,setParseErrorHandler:XMe,detectType:AM,registerIconPacks:hAe,getRegisteredDiagramsMetadata:ZMe},oO=Pc;/*! Check if previously processed *//*!
1125
1125
  * Wait for document loaded before starting the execution
1126
- */let lO=!1;const QMe=.1,e9e=20;function CT(e){return Math.min(e9e,Math.max(QMe,e))}function wz(e,n,r,i){if(e===n)return r;const s=n/e;return{x:i.x-(i.x-r.x)*s,y:i.y-(i.y-r.y)*s}}function Sz(e){oO.initialize({startOnLoad:!1,theme:e==="dark"?"dark":"default",securityLevel:"strict",fontFamily:"ui-sans-serif, system-ui, -apple-system, sans-serif",flowchart:{htmlLabels:!0,curve:"basis"},themeVariables:e==="dark"?{primaryColor:"#1e293b",primaryTextColor:"#e2e8f0",primaryBorderColor:"#475569",lineColor:"#64748b",secondaryColor:"#334155",tertiaryColor:"#1e293b",background:"#0f172a",mainBkg:"#1e293b",nodeBorder:"#475569",clusterBkg:"#1e293b",clusterBorder:"#334155",titleColor:"#e2e8f0",edgeLabelBackground:"#1e293b"}:{}}),lO=!0}function cO({diagram:e,isGenerating:n,onRegenerate:r,onGenerate:i,theme:s="dark",onRenderResult:a}){const o=y.useRef(null),l=y.useRef(null),[u,d]=y.useState(null),[h,f]=y.useState(!1),[m,x]=y.useState(1),[v,_]=y.useState({x:0,y:0}),w=y.useRef(0),S=y.useRef(new Map),C=y.useRef(null),j=y.useRef(null),T=y.useCallback(async D=>{if(!o.current)return;const O=++w.current;try{if(lO||Sz(s),!await oO.parse(D)||O!==w.current)return;const{svg:M}=await oO.render(`arch-${O}`,D);if(O!==w.current)return;o.current.innerHTML=M;const P=o.current.querySelector("svg"),F=l.current;if(P&&F){const G=F.clientWidth,W=F.clientHeight,V=P.width.baseVal.value||P.getBoundingClientRect().width,J=P.height.baseVal.value||P.getBoundingClientRect().height;if(V>0&&J>0&&G>0&&W>0){const Q=Math.min((G-32)/V,(W-32)/J);x(CT(Q))}else x(1)}else x(1);_({x:0,y:0}),d(null),a==null||a({ok:!0})}catch(I){if(O!==w.current)return;const M=I instanceof Error?I.message:"Failed to render diagram";d(M),a==null||a({ok:!1,error:M})}},[a,s]);y.useEffect(()=>{Sz(s),lO=!0,e&&T(e)},[s,e,T]),y.useEffect(()=>{e&&T(e)},[e,T]);const E=y.useCallback(()=>{e&&navigator.clipboard.writeText(e).then(()=>{f(!0),setTimeout(()=>f(!1),2e3)})},[e]),N=y.useCallback(()=>{if(!o.current)return;const D=o.current.querySelector("svg");if(!D)return;const O=new XMLSerializer().serializeToString(D),I=new Blob([O],{type:"image/svg+xml"}),M=URL.createObjectURL(I),P=document.createElement("a");P.href=M,P.download="architecture.svg",P.click(),URL.revokeObjectURL(M)},[]),R=y.useCallback((D,O)=>{var M;const I=(M=l.current)==null?void 0:M.getBoundingClientRect();return I?{x:D-I.left-I.width/2,y:O-I.top-I.height/2}:null},[]),$=y.useCallback((D,O)=>{x(I=>{const M=CT(D);return M===I?I:(_(P=>O?wz(I,M,P,O):P),M)})},[]),q=y.useCallback(D=>{const O=R(D.clientX,D.clientY);if(!O)return;D.preventDefault();const I=D.deltaY<0?1.1:.9;$(m*I,O)},[R,$,m]),z=y.useCallback(D=>{const O={x:D.clientX,y:D.clientY};if(S.current.set(D.pointerId,O),D.currentTarget.setPointerCapture(D.pointerId),S.current.size===1){C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY},j.current=null;return}if(S.current.size===2){const[I,M]=[...S.current.values()],P=Math.hypot(M.x-I.x,M.y-I.y);j.current={distance:P,scale:m,pan:v},C.current=null}},[v,m]),B=y.useCallback(D=>{var I;if(!S.current.has(D.pointerId))return;const O=S.current.get(D.pointerId);if(S.current.set(D.pointerId,{x:D.clientX,y:D.clientY}),S.current.size===1&&((I=C.current)==null?void 0:I.pointerId)===D.pointerId){const M=D.clientX-O.x,P=D.clientY-O.y;_(F=>({x:F.x+M,y:F.y+P})),C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY};return}if(S.current.size===2&&j.current){const[M,P]=[...S.current.values()],F={x:(M.x+P.x)/2,y:(M.y+P.y)/2},G=R(F.x,F.y),W=Math.hypot(P.x-M.x,P.y-M.y);if(!G||j.current.distance<=0)return;const V=CT(j.current.scale*(W/j.current.distance)),J=wz(j.current.scale,V,j.current.pan,G);x(V),_(J)}},[R]),H=y.useCallback(D=>{var O;if(S.current.delete(D.pointerId),((O=C.current)==null?void 0:O.pointerId)===D.pointerId&&(C.current=null),S.current.size<2&&(j.current=null),S.current.size===1){const[I,M]=[...S.current.entries()][0]??[];typeof I=="number"&&M&&(C.current={pointerId:I,x:M.x,y:M.y})}},[]);return!e&&!n?c.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground gap-4 px-8",children:[c.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Software Architecture"}),c.jsx("p",{className:"text-xs max-w-sm",children:"Generate a visual architecture diagram of your project. The AI will analyze your project structure, dependencies, and code organization to create a Mermaid diagram."})]}),i&&c.jsxs("button",{onClick:i,className:"flex items-center gap-2 px-4 py-2 text-sm rounded-lg border bg-background hover:bg-accent hover:text-accent-foreground transition-colors",children:[c.jsx(U_,{className:"h-3.5 w-3.5"}),"Generate Architecture Diagram"]})]}):c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-1 px-2 h-8 border-b bg-muted/20 shrink-0",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground mr-auto",children:"Architecture"}),c.jsx("button",{onClick:()=>$(m-.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom out",children:c.jsx(vve,{className:"h-3 w-3"})}),c.jsxs("span",{className:"text-2xs text-muted-foreground min-w-[3ch] text-center",children:[Math.round(m*100),"%"]}),c.jsx("button",{onClick:()=>$(m+.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom in",children:c.jsx(yve,{className:"h-3 w-3"})}),c.jsx("button",{onClick:()=>{x(1),_({x:0,y:0})},className:"p-1 rounded hover:bg-muted transition-colors",title:"Reset zoom",children:c.jsx(tM,{className:"h-3 w-3"})}),c.jsx("div",{className:"w-px h-4 bg-border mx-1"}),e&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:E,className:"p-1 rounded hover:bg-muted transition-colors",title:"Copy Mermaid source",children:h?c.jsx(Qi,{className:"h-3 w-3 text-green-500"}):c.jsx(nl,{className:"h-3 w-3"})}),c.jsx("button",{onClick:N,className:"p-1 rounded hover:bg-muted transition-colors",title:"Download SVG",children:c.jsx(zf,{className:"h-3 w-3"})})]}),r&&c.jsx("button",{onClick:r,className:"p-1 rounded hover:bg-muted transition-colors",title:"Regenerate diagram",disabled:n,children:c.jsx(ks,{className:`h-3 w-3 ${n?"animate-spin":""}`})})]}),c.jsxs("div",{ref:l,className:"flex-1 overflow-hidden relative touch-none",onWheel:q,onPointerDown:z,onPointerMove:B,onPointerUp:H,onPointerCancel:H,onPointerLeave:H,style:{cursor:S.current.size>0?"grabbing":"grab"},children:[n&&!e&&c.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground gap-3",children:[c.jsx($t,{className:"h-6 w-6 animate-spin"}),c.jsx("span",{className:"text-xs",children:"Analyzing project architecture…"})]}),n&&e&&c.jsxs("div",{className:"absolute top-2 right-2 z-10 flex items-center gap-1.5 px-2 py-1 rounded bg-background/80 border text-xs text-muted-foreground",children:[c.jsx($t,{className:"h-3 w-3 animate-spin"}),"Regenerating…"]}),u&&c.jsxs("div",{className:"p-4 text-xs text-destructive bg-destructive/10 rounded m-2",children:[c.jsx("p",{className:"font-medium mb-1",children:"Render error"}),c.jsx("pre",{className:"whitespace-pre-wrap",children:u}),e&&c.jsxs("details",{className:"mt-2",children:[c.jsx("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground",children:"View source"}),c.jsx("pre",{className:"mt-1 p-2 bg-muted rounded text-2xs whitespace-pre-wrap",children:e})]})]}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center p-4",style:{transform:`translate(${v.x}px, ${v.y}px) scale(${m})`,transformOrigin:"center center"},children:c.jsx("div",{ref:o,className:"flex items-center justify-center"})})]})]})}const jc=y.forwardRef(({className:e,children:n,...r},i)=>c.jsx("div",{ref:i,className:ke("relative overflow-auto",e),...r,children:n}));jc.displayName="ScrollArea";const t9e=y.forwardRef(({className:e,orientation:n="vertical",...r},i)=>c.jsx("div",{ref:i,"data-orientation":n,className:ke("hidden",e),...r}));t9e.displayName="ScrollBar";const Mh=y.forwardRef(({className:e,...n},r)=>c.jsx("textarea",{className:ke("flex min-h-[72px] w-full rounded-lg border border-input bg-background/90 px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Mh.displayName="Textarea";var jT={},eb={},kz;function n9e(){return kz||(kz=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.FileExtensions1ToIcon=void 0,eb.FileExtensions1ToIcon={accdb:"file_type_access.svg",accdt:"file_type_access.svg",mdb:"file_type_access.svg",accda:"file_type_access.svg",accdc:"file_type_access.svg",accde:"file_type_access.svg",accdp:"file_type_access.svg",accdr:"file_type_access.svg",accdu:"file_type_access.svg",ade:"file_type_access.svg",adp:"file_type_access.svg",laccdb:"file_type_access.svg",ldb:"file_type_access.svg",mam:"file_type_access.svg",maq:"file_type_access.svg",mdw:"file_type_access.svg",afdesign:"file_type_affinitydesigner.svg",affinitydesigner:"file_type_affinitydesigner.svg",afphoto:"file_type_affinityphoto.svg",affinityphoto:"file_type_affinityphoto.svg",afpub:"file_type_affinitypublisher.svg",affinitypublisher:"file_type_affinitypublisher.svg",ai:"file_type_ai.svg",ino:"file_type_arduino.svg",pde:"file_type_arduino.svg",aspx:"file_type_aspx.svg",ascx:"file_type_aspx.svg",astro:"file_type_astro.svg",aac:"file_type_audio.svg",act:"file_type_audio.svg",aiff:"file_type_audio.svg",amr:"file_type_audio.svg",ape:"file_type_audio.svg",au:"file_type_audio.svg",dct:"file_type_audio.svg",dss:"file_type_audio.svg",dvf:"file_type_audio.svg",flac:"file_type_audio.svg",gsm:"file_type_audio.svg",iklax:"file_type_audio.svg",ivs:"file_type_audio.svg",m4a:"file_type_audio.svg",m4b:"file_type_audio.svg",m4p:"file_type_audio.svg",mmf:"file_type_audio.svg",mogg:"file_type_audio.svg",mp3:"file_type_audio.svg",mpc:"file_type_audio.svg",msv:"file_type_audio.svg",oga:"file_type_audio.svg",ogg:"file_type_audio.svg",opus:"file_type_audio.svg",ra:"file_type_audio.svg",raw:"file_type_audio.svg",tta:"file_type_audio.svg",vox:"file_type_audio.svg",wav:"file_type_audio.svg",wma:"file_type_audio.svg",avif:"file_type_avif.svg",awk:"file_type_awk.svg",a:"file_type_binary.svg",app:"file_type_binary.svg",bin:"file_type_binary.svg",cmo:"file_type_binary.svg",cmx:"file_type_binary.svg",cma:"file_type_binary.svg",cmxa:"file_type_binary.svg",cmi:"file_type_binary.svg",dll:"file_type_binary.svg",exe:"file_type_binary.svg",hl:"file_type_binary.svg",ilk:"file_type_binary.svg",lib:"file_type_binary.svg",n:"file_type_binary.svg",ndll:"file_type_binary.svg",o:"file_type_binary.svg",obj:"file_type_binary.svg",pyc:"file_type_binary.svg",pyd:"file_type_binary.svg",pyo:"file_type_binary.svg",pdb:"file_type_binary.svg",scpt:"file_type_binary.svg",scptd:"file_type_binary.svg",so:"file_type_binary.svg",bb:"file_type_blitzbasic.svg",gemfile:"file_type_bundler.svg",cake:"file_type_cake.svg",csr:"file_type_cert.svg",crt:"file_type_cert.svg",cer:"file_type_cert.svg",der:"file_type_cert.svg",pfx:"file_type_cert.svg",p12:"file_type_cert.svg",p7b:"file_type_cert.svg",p7r:"file_type_cert.svg",src:"file_type_cert.svg",crl:"file_type_cert.svg",sst:"file_type_cert.svg",stl:"file_type_cert.svg",lucee:"file_type_cf.svg",h:"file_type_cheader.svg",class:"file_type_class.svg",cjm:"file_type_clojure.svg",cljc:"file_type_clojure.svg",cljs:"file_type_clojurescript.svg",kit:"file_type_codekit.svg",plist:"file_type_light_config.svg",hpp:"file_type_cppheader.svg",hh:"file_type_cppheader.svg",hxx:"file_type_cppheader.svg","h++":"file_type_cppheader.svg",csx:"file_type_csharp.svg",csproj:"file_type_csproj.svg",db:"file_type_light_db.svg",djt:"file_type_django.svg",eco:"file_type_light_docpad.svg",drawio:"file_type_drawio.svg",dio:"file_type_drawio.svg",ejs:"file_type_ejs.svg",el:"file_type_emacs.svg",elc:"file_type_emacs.svg",ensime:"file_type_ensime.svg",eps:"file_type_eps.svg",xls:"file_type_excel.svg",xlsx:"file_type_excel.svg",xlsm:"file_type_excel.svg",ods:"file_type_excel.svg",fods:"file_type_excel.svg",xlsb:"file_type_excel.svg",fbx:"file_type_fbx.svg",fla:"file_type_light_fla.svg",swf:"file_type_flash.svg",swc:"file_type_flash.svg",woff:"file_type_light_font.svg",woff2:"file_type_light_font.svg",ttf:"file_type_light_font.svg",otf:"file_type_light_font.svg",eot:"file_type_light_font.svg",pfa:"file_type_light_font.svg",pfb:"file_type_light_font.svg",sfd:"file_type_light_font.svg",fsproj:"file_type_fsproj.svg",gmx:"file_type_gamemaker.svg",yy:"file_type_light_gamemaker2.svg",yyp:"file_type_light_gamemaker2.svg",gradle:"file_type_light_gradle.svg",hxproj:"file_type_haxedevelop.svg",idr:"file_type_idris.svg",lidr:"file_type_idris.svg",ibc:"file_type_idrisbin.svg",ipkg:"file_type_idrispkg.svg",jpeg:"file_type_image.svg",jpg:"file_type_image.svg",gif:"file_type_image.svg",png:"file_type_image.svg",bmp:"file_type_image.svg",tiff:"file_type_image.svg",ico:"file_type_image.svg",imba:"file_type_imba.svg",imba2:"file_type_imba.svg",inc:"file_type_inc.svg",include:"file_type_inc.svg",infopathxml:"file_type_infopath.svg",xsn:"file_type_infopath.svg",xsf:"file_type_infopath.svg",xtp2:"file_type_infopath.svg",jar:"file_type_jar.svg",jbuilder:"file_type_jbuilder.svg",json5:"file_type_light_json5.svg",jsonld:"file_type_light_jsonld.svg","json-ld":"file_type_light_jsonld.svg",jsp:"file_type_jsp.svg",jss:"file_type_jss.svg",ipynb:"file_type_jupyter.svg",key:"file_type_key.svg",pem:"file_type_key.svg",master:"file_type_layout.svg",enc:"file_type_license.svg",hxp:"file_type_lime.svg",liquid:"file_type_liquid.svg",ls:"file_type_livescript.svg",lnk:"file_type_lnk.svg",log:"file_type_log.svg",tlg:"file_type_log.svg",crec:"file_type_lync.svg",ocrec:"file_type_lync.svg",makefile:"file_type_makefile.svg",map:"file_type_map.svg",mdown:"file_type_markdown.svg",markdown:"file_type_markdown.svg",fig:"file_type_matlab.svg",mex:"file_type_matlab.svg",mexn:"file_type_matlab.svg",mexrs6:"file_type_matlab.svg",mn:"file_type_matlab.svg",mum:"file_type_matlab.svg",mx:"file_type_matlab.svg",mx3:"file_type_matlab.svg",rwd:"file_type_matlab.svg",slx:"file_type_matlab.svg",slddc:"file_type_matlab.svg",smv:"file_type_matlab.svg",xvc:"file_type_matlab.svg",mustache:"file_type_light_mustache.svg",mst:"file_type_light_mustache.svg",njsproj:"file_type_njsproj.svg",nupkg:"file_type_nuget.svg",snupkg:"file_type_nuget.svg",nuspec:"file_type_nuget.svg",psmdcp:"file_type_nuget.svg",npy:"file_type_numpy.svg",npz:"file_type_numpy.svg",nunj:"file_type_nunjucks.svg",njs:"file_type_nunjucks.svg",one:"file_type_onenote.svg",onepkg:"file_type_onenote.svg",onetoc:"file_type_onenote.svg",onetoc2:"file_type_onenote.svg",sig:"file_type_onenote.svg",cl:"file_type_opencl.svg",opencl:"file_type_opencl.svg",org:"file_type_org.svg",pst:"file_type_outlook.svg",bcmx:"file_type_outlook.svg",otm:"file_type_outlook.svg",msg:"file_type_outlook.svg",oft:"file_type_outlook.svg",ovpn:"file_type_ovpn.svg",pkg:"file_type_package.svg",patch:"file_type_patch.svg",pcd:"file_type_light_pcl.svg",pdf:"file_type_pdf.svg",psd:"file_type_photoshop.svg",php1:"file_type_php.svg",php2:"file_type_php.svg",php3:"file_type_php.svg",php4:"file_type_php.svg",php5:"file_type_php.svg",php6:"file_type_php.svg",phps:"file_type_php.svg",phpsa:"file_type_php.svg",phpt:"file_type_php.svg",phtml:"file_type_php.svg",phar:"file_type_php.svg",pipeline:"file_type_pipeline.svg",pu:"file_type_plantuml.svg",plantuml:"file_type_plantuml.svg",iuml:"file_type_plantuml.svg",puml:"file_type_plantuml.svg",pck:"file_type_plsql_package.svg",pkb:"file_type_plsql_package_body.svg",pkh:"file_type_plsql_package_header.svg",pks:"file_type_plsql_package_spec.svg",po:"file_type_poedit.svg",mo:"file_type_poedit.svg",pot:"file_type_powerpoint.svg",potx:"file_type_powerpoint.svg",potm:"file_type_powerpoint.svg",pps:"file_type_powerpoint.svg",ppsx:"file_type_powerpoint.svg",ppsm:"file_type_powerpoint.svg",ppt:"file_type_powerpoint.svg",pptx:"file_type_powerpoint.svg",pptm:"file_type_powerpoint.svg",pa:"file_type_powerpoint.svg",ppa:"file_type_powerpoint.svg",ppam:"file_type_powerpoint.svg",sldm:"file_type_powerpoint.svg",sldx:"file_type_powerpoint.svg",psd1:"file_type_powershell_psd.svg",psm1:"file_type_powershell_psm.svg",pro:"file_type_prolog.svg",P:"file_type_prolog.svg",pub:"file_type_publisher.svg",puz:"file_type_publisher.svg",q:"file_type_q.svg",qbs:"file_type_qbs.svg",qvd:"file_type_qlikview.svg",qvw:"file_type_qlikview.svg",rake:"file_type_rake.svg",rt:"file_type_reacttemplate.svg",reg:"file_type_registry.svg",rego:"file_type_rego.svg",rproj:"file_type_rproj.svg",sls:"file_type_saltstack.svg",sass:"file_type_sass.svg",scssm:"file_type_scss.svg",unity:"file_type_light_shaderlab.svg",fish:"file_type_shell.svg",sketch:"file_type_sketch.svg",eskip:"file_type_skipper.svg",sln:"file_type_sln.svg",spe:"file_type_spacengine.svg",sqlite:"file_type_sqlite.svg",sqlite3:"file_type_sqlite.svg",db3:"file_type_sqlite.svg",sss:"file_type_sss.svg",dta:"file_type_stata.svg",storyboard:"file_type_storyboard.svg",svg:"file_type_svg.svg",tcl:"file_type_tcl.svg",exp:"file_type_tcl.svg",tfstate:"file_type_terraform.svg",tst:"file_type_test.svg",texi:"file_type_light_tex.svg",tikz:"file_type_light_tex.svg",csv:"file_type_text.svg",tsv:"file_type_text.svg",todo:"file_type_light_todo.svg",tt2:"file_type_tt.svg",vala:"file_type_vala.svg",vapi:"file_type_vapi.svg",vash:"file_type_light_vash.svg",vbhtml:"file_type_vbhtml.svg",vbproj:"file_type_vbproj.svg",vcxproj:"file_type_vcxproj.svg","3g2":"file_type_video.svg","3gp":"file_type_video.svg",asf:"file_type_video.svg",amv:"file_type_video.svg",avi:"file_type_video.svg",divx:"file_type_video.svg",qt:"file_type_video.svg",f4a:"file_type_video.svg",f4b:"file_type_video.svg",f4p:"file_type_video.svg",f4v:"file_type_video.svg",flv:"file_type_video.svg",m2v:"file_type_video.svg",m4v:"file_type_video.svg",mkv:"file_type_video.svg",mk3d:"file_type_video.svg",mov:"file_type_video.svg",mp2:"file_type_video.svg",mp4:"file_type_video.svg",mpe:"file_type_video.svg",mpeg:"file_type_video.svg",mpeg2:"file_type_video.svg",mpg:"file_type_video.svg",mpv:"file_type_video.svg",nsv:"file_type_video.svg",ogv:"file_type_video.svg",rm:"file_type_video.svg",rmvb:"file_type_video.svg",svi:"file_type_video.svg",vob:"file_type_video.svg",webm:"file_type_video.svg",wmv:"file_type_video.svg",vsix:"file_type_light_vsix.svg",vsixmanifest:"file_type_light_vsixmanifest.svg",wasm:"file_type_wasm.svg",webp:"file_type_webp.svg",doc:"file_type_word.svg",docx:"file_type_word.svg",docm:"file_type_word.svg",dot:"file_type_word.svg",dotx:"file_type_word.svg",dotm:"file_type_word.svg",wll:"file_type_word.svg",wxml:"file_type_wxml.svg",wxss:"file_type_wxss.svg",xcodeproj:"file_type_xcode.svg",xfl:"file_type_light_xfl.svg",xib:"file_type_xib.svg",xliff:"file_type_xliff.svg",xlf:"file_type_xliff.svg",pex:"file_type_xml.svg",tmlanguage:"file_type_xml.svg",zip:"file_type_zip.svg",rar:"file_type_zip.svg","7z":"file_type_zip.svg",tar:"file_type_zip.svg",tgz:"file_type_zip.svg",bz:"file_type_zip.svg",gz:"file_type_zip.svg",bzip2:"file_type_zip.svg",xz:"file_type_zip.svg",bz2:"file_type_zip.svg",zipx:"file_type_zip.svg"}),eb}var tb={},Cz;function r9e(){return Cz||(Cz=1,Object.defineProperty(tb,"__esModule",{value:!0}),tb.FileExtensions2ToIcon=void 0,tb.FileExtensions2ToIcon={"gemfile.lock":"file_type_bundler.svg","css.map":"file_type_cssmap.svg","drawio.png":"file_type_drawio.svg","drawio.svg":"file_type_drawio.svg","js.flow":"file_type_flow.svg","ejs.t":"file_type_hygen.svg","js.snap":"file_type_jest_snapshot.svg","jsx.snap":"file_type_jest_snapshot.svg","ts.snap":"file_type_jest_snapshot.svg","tsx.snap":"file_type_jest_snapshot.svg","js.map":"file_type_light_jsmap.svg","layout.html":"file_type_layout.svg","layout.htm":"file_type_layout.svg","marko.js":"file_type_markojs.svg","format.ps1xml":"file_type_powershell_format.svg","types.ps1xml":"file_type_powershell_types.svg","story.js":"file_type_storybook.svg","story.jsx":"file_type_storybook.svg","story.ts":"file_type_storybook.svg","story.tsx":"file_type_storybook.svg","story.mdx":"file_type_storybook.svg","stories.js":"file_type_storybook.svg","stories.jsx":"file_type_storybook.svg","stories.ts":"file_type_storybook.svg","stories.tsx":"file_type_storybook.svg","stories.mdx":"file_type_storybook.svg","test.js":"file_type_light_testjs.svg","test.jsx":"file_type_light_testjs.svg","test.mjs":"file_type_light_testjs.svg","spec.js":"file_type_light_testjs.svg","spec.jsx":"file_type_light_testjs.svg","spec.mjs":"file_type_light_testjs.svg","test.ts":"file_type_testts.svg","test.tsx":"file_type_testts.svg","spec.ts":"file_type_testts.svg","spec.tsx":"file_type_testts.svg","e2e-test.ts":"file_type_testts.svg","e2e-test.tsx":"file_type_testts.svg","e2e-spec.ts":"file_type_testts.svg","e2e-spec.tsx":"file_type_testts.svg","d.ts":"file_type_typescriptdef.svg"}),tb}var nb={},jz;function i9e(){return jz||(jz=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.FileNamesToIcon=void 0,nb.FileNamesToIcon={".angular-cli.json":"file_type_angular.svg","angular-cli.json":"file_type_angular.svg","angular.json":"file_type_angular.svg",".angular.json":"file_type_angular.svg","api-extractor.json":"file_type_api_extractor.svg","api-extractor-base.json":"file_type_api_extractor.svg",".appsemblerc.yaml":"file_type_appsemble.svg","app-definition.yaml":"file_type_appsemble.svg","appveyor.yml":"file_type_appveyor.svg",".appveyor.yml":"file_type_appveyor.svg","astro.config.js":"file_type_astroconfig.svg","astro.config.cjs":"file_type_astroconfig.svg","astro.config.mjs":"file_type_astroconfig.svg","aurelia.json":"file_type_aurelia.svg","azure-pipelines.yml":"file_type_azurepipelines.svg",".vsts-ci.yml":"file_type_azurepipelines.svg",".babelrc":"file_type_light_babel.svg",".babelignore":"file_type_light_babel.svg",".babelrc.js":"file_type_light_babel.svg",".babelrc.cjs":"file_type_light_babel.svg",".babelrc.mjs":"file_type_light_babel.svg",".babelrc.json":"file_type_light_babel.svg","babel.config.js":"file_type_light_babel.svg","babel.config.cjs":"file_type_light_babel.svg","babel.config.mjs":"file_type_light_babel.svg","babel.config.json":"file_type_light_babel.svg",".bzrignore":"file_type_bazaar.svg","BUILD.bazel":"file_type_bazel.svg",".bazelrc":"file_type_bazel.svg","bazel.rc":"file_type_bazel.svg","bazel.bazelrc":"file_type_bazel.svg","bitbucket-pipelines.yml":"file_type_bitbucketpipeline.svg",".bithoundrc":"file_type_bithound.svg",".bowerrc":"file_type_bower.svg","bower.json":"file_type_bower.svg",".browserslistrc":"file_type_browserslist.svg",browserslist:"file_type_browserslist.svg",".buckconfig":"file_type_buckbuild.svg",gemfile:"file_type_bundler.svg","gemfile.lock":"file_type_bundler.svg","capacitor.config.json":"file_type_capacitor.svg","cargo.toml":"file_type_cargo.svg","cargo.lock":"file_type_cargo.svg",chefignore:"file_type_chef.svg",berksfile:"file_type_chef.svg","berksfile.lock":"file_type_chef.svg","policyfile.rb":"file_type_chef.svg","policyfile.lock.json":"file_type_chef.svg","circle.yml":"file_type_light_circleci.svg",".cfignore":"file_type_light_cloudfoundry.svg",".codacy.yml":"file_type_light_codacy.svg",".codacy.yaml":"file_type_light_codacy.svg",".codeclimate.yml":"file_type_light_codeclimate.svg","codecov.yml":"file_type_codecov.svg",".codecov.yml":"file_type_codecov.svg","config.codekit":"file_type_codekit.svg","config.codekit2":"file_type_codekit.svg","config.codekit3":"file_type_codekit.svg",".config.codekit":"file_type_codekit.svg",".config.codekit2":"file_type_codekit.svg",".config.codekit3":"file_type_codekit.svg","coffeelint.json":"file_type_coffeelint.svg",".coffeelintignore":"file_type_coffeelint.svg","commitlint.config.js":"file_type_commitlint.svg",".commitlintrc.js":"file_type_commitlint.svg",".commitlintrc.json":"file_type_commitlint.svg",".commitlintrc.yml":"file_type_commitlint.svg","composer.json":"file_type_composer.svg","composer.lock":"file_type_composer.svg","conanfile.txt":"file_type_conan.svg","conanfile.py":"file_type_conan.svg",".condarc":"file_type_conda.svg",".coveralls.yml":"file_type_coveralls.svg","crowdin.yml":"file_type_crowdin.svg",".csscomb.json":"file_type_csscomb.svg",".csslintrc":"file_type_csslint.svg",".cvsignore":"file_type_cvs.svg","cypress.json":"file_type_cypress.svg","cypress.env.json":"file_type_cypress.svg",".boringignore":"file_type_darcs.svg","dependabot.yml":"file_type_dependabot.svg","dependencies.yml":"file_type_dependencies.svg","devcontainer.json":"file_type_devcontainer.svg",".devcontainer.json":"file_type_devcontainer.svg","compose.yaml":"file_type_docker.svg","compose.yml":"file_type_docker.svg","docker-compose.yaml":"file_type_docker.svg","docker-compose.yml":"file_type_docker.svg","docker-compose.ci-build.yaml":"file_type_docker.svg","docker-compose.ci-build.yml":"file_type_docker.svg","docker-compose.override.yaml":"file_type_docker.svg","docker-compose.override.yml":"file_type_docker.svg","docker-compose.vs.debug.yaml":"file_type_docker.svg","docker-compose.vs.debug.yml":"file_type_docker.svg","docker-compose.vs.release.yaml":"file_type_docker.svg","docker-compose.vs.release.yml":"file_type_docker.svg","docker-cloud.yaml":"file_type_docker.svg","docker-cloud.yml":"file_type_docker.svg","docker-compose.test.yml":"file_type_dockertest.svg",".doczrc":"file_type_docz.svg","docz.js":"file_type_docz.svg","docz.json":"file_type_docz.svg",".docz.js":"file_type_docz.svg",".docz.json":"file_type_docz.svg","doczrc.js":"file_type_docz.svg","doczrc.json":"file_type_docz.svg","docz.config.js":"file_type_docz.svg","docz.config.json":"file_type_docz.svg",".dojorc":"file_type_dojo.svg",".drone.yml":"file_type_light_drone.svg",".drone.yml.sig":"file_type_light_drone.svg",".dvc":"file_type_dvc.svg",".editorconfig":"file_type_editorconfig.svg","elm-package.json":"file_type_elm.svg",".ember-cli":"file_type_ember.svg",emakefile:"file_type_erlang.svg",".emakerfile":"file_type_erlang.svg",".eslintrc":"file_type_eslint.svg",".eslintignore":"file_type_eslint.svg",".eslintcache":"file_type_eslint.svg",".eslintrc.js":"file_type_eslint.svg",".eslintrc.mjs":"file_type_eslint.svg",".eslintrc.cjs":"file_type_eslint.svg",".eslintrc.json":"file_type_eslint.svg",".eslintrc.yaml":"file_type_eslint.svg",".eslintrc.yml":"file_type_eslint.svg","app.json":"file_type_light_expo.svg","app.config.js":"file_type_light_expo.svg","app.config.json":"file_type_light_expo.svg","app.config.json5":"file_type_light_expo.svg",".faunarc":"file_type_fauna.svg","favicon.ico":"file_type_favicon.svg",".firebaserc":"file_type_firebase.svg","firebase.json":"file_type_light_firebasehosting.svg","firestore.rules":"file_type_firestore.svg","firestore.indexes.json":"file_type_firestore.svg",".flooignore":"file_type_floobits.svg",".flowconfig":"file_type_flow.svg",".flutter-plugins":"file_type_flutter.svg",".metadata":"file_type_flutter.svg","pubspec.lock":"file_type_flutter_package.svg","pubspec.yaml":"file_type_flutter_package.svg",".packages":"file_type_flutter_package.svg",".fossaignore":"file_type_fossa.svg","ignore-glob":"file_type_fossil.svg","fuse.js":"file_type_fusebox.svg","gatsby-config.js":"file_type_gatsby.svg","gatsby-config.ts":"file_type_gatsby.svg","gatsby-node.js":"file_type_gatsby.svg","gatsby-node.ts":"file_type_gatsby.svg","gatsby-browser.js":"file_type_gatsby.svg","gatsby-browser.ts":"file_type_gatsby.svg","gatsby-ssr.js":"file_type_gatsby.svg","gatsby-ssr.ts":"file_type_gatsby.svg",".gitattributes":"file_type_git.svg",".gitconfig":"file_type_git.svg",".gitignore":"file_type_git.svg",".gitmodules":"file_type_git.svg",".gitkeep":"file_type_git.svg",".mailmap":"file_type_git.svg",".gitlab-ci.yml":"file_type_gitlab.svg",".gitpod.yaml":"file_type_gitpod.svg",".gitpod.yml":"file_type_gitpod.svg","gitpod.yaml":"file_type_gitpod.svg","gitpod.yml":"file_type_gitpod.svg","glide.yml":"file_type_glide.svg",".glitterrc":"file_type_glitter.svg","go.sum":"file_type_go_package.svg","go.mod":"file_type_go_package.svg",".gqlconfig":"file_type_graphql.svg",".graphqlconfig":"file_type_graphql_config.svg",".graphqlconfig.yml":"file_type_graphql_config.svg",".graphqlconfig.yaml":"file_type_graphql_config.svg","greenkeeper.json":"file_type_greenkeeper.svg","gridsome.config.js":"file_type_gridsome.svg","gridsome.config.ts":"file_type_gridsome.svg","gridsome.server.js":"file_type_gridsome.svg","gridsome.server.ts":"file_type_gridsome.svg","gridsome.client.js":"file_type_gridsome.svg","gridsome.client.ts":"file_type_gridsome.svg","gruntfile.js":"file_type_grunt.svg","gruntfile.coffee":"file_type_grunt.svg","gruntfile.ts":"file_type_grunt.svg","gruntfile.babel.js":"file_type_grunt.svg","gruntfile.babel.coffee":"file_type_grunt.svg","gruntfile.babel.ts":"file_type_grunt.svg","gulpfile.js":"file_type_gulp.svg","gulpfile.coffee":"file_type_gulp.svg","gulpfile.ts":"file_type_gulp.svg","gulpfile.mjs":"file_type_gulp.svg","gulpfile.esm.js":"file_type_gulp.svg","gulpfile.esm.coffee":"file_type_gulp.svg","gulpfile.esm.ts":"file_type_gulp.svg","gulpfile.esm.mjs":"file_type_gulp.svg","gulpfile.babel.js":"file_type_gulp.svg","gulpfile.babel.coffee":"file_type_gulp.svg","gulpfile.babel.ts":"file_type_gulp.svg","gulpfile.babel.mjs":"file_type_gulp.svg","haxelib.json":"file_type_haxe.svg","checkstyle.json":"file_type_haxecheckstyle.svg",".p4ignore":"file_type_helix.svg","chart.lock":"file_type_helm.svg","chart.yaml":"file_type_helm.svg","horusec-config.json":"file_type_horusec.svg",".htmlhintrc":"file_type_htmlhint.svg",".huskyrc":"file_type_husky.svg","husky.config.js":"file_type_husky.svg",".huskyrc.js":"file_type_husky.svg",".huskyrc.json":"file_type_husky.svg",".huskyrc.yaml":"file_type_husky.svg",".huskyrc.yml":"file_type_husky.svg","ionic.project":"file_type_ionic.svg","ionic.config.json":"file_type_ionic.svg",jakefile:"file_type_jake.svg","jakefile.js":"file_type_jake.svg","jasmine.json":"file_type_jasmine.svg","jest.config.json":"file_type_jest.svg","jest.config.base.json":"file_type_jest.svg","jest.config.common.json":"file_type_jest.svg","jest.config.ts":"file_type_jest.svg","jest.config.base.ts":"file_type_jest.svg","jest.config.common.ts":"file_type_jest.svg","jest.json":"file_type_jest.svg",".jestrc":"file_type_jest.svg",".jestrc.js":"file_type_jest.svg",".jestrc.json":"file_type_jest.svg","jest.config.js":"file_type_jest.svg","jest.config.cjs":"file_type_jest.svg","jest.config.mjs":"file_type_jest.svg","jest.config.base.js":"file_type_jest.svg","jest.config.base.cjs":"file_type_jest.svg","jest.config.base.mjs":"file_type_jest.svg","jest.config.common.js":"file_type_jest.svg","jest.config.common.cjs":"file_type_jest.svg","jest.config.common.mjs":"file_type_jest.svg","jest.config.babel.js":"file_type_jest.svg","jest.config.babel.cjs":"file_type_jest.svg","jest.config.babel.mjs":"file_type_jest.svg",".jpmignore":"file_type_jpm.svg",".jsbeautifyrc":"file_type_jsbeautify.svg",jsbeautifyrc:"file_type_jsbeautify.svg",".jsbeautify":"file_type_jsbeautify.svg",jsbeautify:"file_type_jsbeautify.svg","jsconfig.json":"file_type_light_jsconfig.svg",".jscpd.json":"file_type_jscpd.svg","jscpd-report.xml":"file_type_jscpd.svg","jscpd-report.json":"file_type_jscpd.svg","jscpd-report.html":"file_type_jscpd.svg",".jshintrc":"file_type_jshint.svg",".jshintignore":"file_type_jshint.svg","karma.conf.js":"file_type_karma.svg","karma.conf.coffee":"file_type_karma.svg","karma.conf.ts":"file_type_karma.svg",".kitchen.yml":"file_type_kitchenci.svg","kitchen.yml":"file_type_kitchenci.svg",".kiteignore":"file_type_light_kite.svg","layout.html":"file_type_layout.svg","layout.htm":"file_type_layout.svg","lerna.json":"file_type_light_lerna.svg",license:"file_type_license.svg",licence:"file_type_license.svg",copying:"file_type_license.svg","copying.lesser":"file_type_license.svg","license.md":"file_type_license.svg","license.txt":"file_type_license.svg","licence.md":"file_type_license.svg","licence.txt":"file_type_license.svg","copying.md":"file_type_license.svg","copying.txt":"file_type_license.svg","copying.lesser.md":"file_type_license.svg","copying.lesser.txt":"file_type_license.svg",".licrc":"file_type_licensebat.svg",".lighthouserc.js":"file_type_lighthouse.svg",".lighthouserc.json":"file_type_lighthouse.svg",".lighthouserc.yaml":"file_type_lighthouse.svg",".lighthouserc.yml":"file_type_lighthouse.svg","include.xml":"file_type_lime.svg",".lintstagedrc":"file_type_lintstagedrc.svg","lint-staged.config.js":"file_type_lintstagedrc.svg",".lintstagedrc.js":"file_type_lintstagedrc.svg",".lintstagedrc.json":"file_type_lintstagedrc.svg",".lintstagedrc.yaml":"file_type_lintstagedrc.svg",".lintstagedrc.yml":"file_type_lintstagedrc.svg",manifest:"file_type_manifest.svg","manifest.bak":"file_type_manifest_bak.svg","manifest.skip":"file_type_manifest_skip.svg",".markdownlint.json":"file_type_markdownlint.svg","maven.config":"file_type_maven.svg","pom.xml":"file_type_maven.svg","extensions.xml":"file_type_maven.svg","settings.xml":"file_type_maven.svg",".hgignore":"file_type_mercurial.svg","mocha.opts":"file_type_mocha.svg",".mocharc.js":"file_type_mocha.svg",".mocharc.json":"file_type_mocha.svg",".mocharc.jsonc":"file_type_mocha.svg",".mocharc.yaml":"file_type_mocha.svg",".mocharc.yml":"file_type_mocha.svg",modernizr:"file_type_modernizr.svg","modernizr.js":"file_type_modernizr.svg","modernizrrc.js":"file_type_modernizr.svg",".modernizr.js":"file_type_modernizr.svg",".modernizrrc.js":"file_type_modernizr.svg","moleculer.config.js":"file_type_moleculer.svg","moleculer.config.json":"file_type_moleculer.svg","moleculer.config.ts":"file_type_moleculer.svg",".mtn-ignore":"file_type_monotone.svg",".nest-cli.json":"file_type_nestjs.svg","nest-cli.json":"file_type_nestjs.svg","nestconfig.json":"file_type_nestjs.svg",".nestconfig.json":"file_type_nestjs.svg","netlify.toml":"file_type_netlify.svg","next.config.js":"file_type_light_next.svg","ng-tailwind.js":"file_type_ng_tailwind.svg","nginx.conf":"file_type_nginx.svg","build.ninja":"file_type_ninja.svg",".node-version":"file_type_node.svg",".nvmrc":"file_type_node.svg","nodemon.json":"file_type_nodemon.svg",".npmignore":"file_type_npm.svg",".npmrc":"file_type_npm.svg","package.json":"file_type_npm.svg","package-lock.json":"file_type_npm.svg","npm-shrinkwrap.json":"file_type_npm.svg",".nsrirc":"file_type_nsri.svg",".nsriignore":"file_type_nsri.svg","nsri.config.js":"file_type_nsri.svg",".nsrirc.js":"file_type_nsri.svg",".nsrirc.json":"file_type_nsri.svg",".nsrirc.yaml":"file_type_nsri.svg",".nsrirc.yml":"file_type_nsri.svg",".integrity.json":"file_type_nsri-integrity.svg","nuxt.config.js":"file_type_nuxt.svg","nuxt.config.ts":"file_type_nuxt.svg",".nycrc":"file_type_nyc.svg",".nycrc.json":"file_type_nyc.svg",".merlin":"file_type_ocaml.svg","paket.dependencies":"file_type_paket.svg","paket.lock":"file_type_paket.svg","paket.references":"file_type_paket.svg","paket.template":"file_type_paket.svg","paket.local":"file_type_paket.svg",".php_cs":"file_type_phpcsfixer.svg",".php_cs.dist":"file_type_phpcsfixer.svg",phpunit:"file_type_phpunit.svg","phpunit.xml":"file_type_phpunit.svg","phpunit.xml.dist":"file_type_phpunit.svg",".phraseapp.yml":"file_type_phraseapp.svg",pipfile:"file_type_pip.svg","pipfile.lock":"file_type_pip.svg","platformio.ini":"file_type_platformio.svg","pnpmfile.js":"file_type_light_pnpm.svg","pnpm-lock.yaml":"file_type_light_pnpm.svg","pnpm-workspace.yaml":"file_type_light_pnpm.svg",".postcssrc":"file_type_postcssconfig.svg",".postcssrc.json":"file_type_postcssconfig.svg",".postcssrc.yaml":"file_type_postcssconfig.svg",".postcssrc.yml":"file_type_postcssconfig.svg",".postcssrc.ts":"file_type_postcssconfig.svg",".postcssrc.js":"file_type_postcssconfig.svg",".postcssrc.cjs":"file_type_postcssconfig.svg","postcss.config.ts":"file_type_postcssconfig.svg","postcss.config.js":"file_type_postcssconfig.svg","postcss.config.cjs":"file_type_postcssconfig.svg","preact.config.js":"file_type_preact.svg",".pre-commit-config.yaml":"file_type_precommit.svg",".prettierrc":"file_type_light_prettier.svg",".prettierignore":"file_type_light_prettier.svg","prettier.config.js":"file_type_light_prettier.svg","prettier.config.cjs":"file_type_light_prettier.svg","prettier.config.ts":"file_type_light_prettier.svg","prettier.config.coffee":"file_type_light_prettier.svg",".prettierrc.js":"file_type_light_prettier.svg",".prettierrc.cjs":"file_type_light_prettier.svg",".prettierrc.json":"file_type_light_prettier.svg",".prettierrc.json5":"file_type_light_prettier.svg",".prettierrc.yml":"file_type_light_prettier.svg",".prettierrc.yaml":"file_type_light_prettier.svg",procfile:"file_type_procfile.svg","protractor.conf.js":"file_type_protractor.svg","protractor.conf.coffee":"file_type_protractor.svg","protractor.conf.ts":"file_type_protractor.svg",".jade-lintrc":"file_type_pug.svg",".pug-lintrc":"file_type_pug.svg",".jade-lint.json":"file_type_pug.svg",".pug-lintrc.js":"file_type_pug.svg",".pug-lintrc.json":"file_type_pug.svg","py.typed":"file_type_pytyped.svg",".pyup":"file_type_pyup.svg",".pyup.yml":"file_type_pyup.svg",qmldir:"file_type_qmldir.svg","quasar.conf.js":"file_type_quasar.svg",rakefile:"file_type_rake.svg","razzle.config.js":"file_type_light_razzle.svg",".rehyperc":"file_type_light_rehype.svg",".rehypeignore":"file_type_light_rehype.svg",".rehyperc.cjs":"file_type_light_rehype.svg",".rehyperc.js":"file_type_light_rehype.svg",".rehyperc.json":"file_type_light_rehype.svg",".rehyperc.mjs":"file_type_light_rehype.svg",".rehyperc.yml":"file_type_light_rehype.svg",".rehyperc.yaml":"file_type_light_rehype.svg",".remarkrc":"file_type_light_remark.svg",".remarkignore":"file_type_light_remark.svg",".remarkrc.cjs":"file_type_light_remark.svg",".remarkrc.js":"file_type_light_remark.svg",".remarkrc.json":"file_type_light_remark.svg",".remarkrc.mjs":"file_type_light_remark.svg",".remarkrc.yml":"file_type_light_remark.svg",".remarkrc.yaml":"file_type_light_remark.svg",".renovaterc":"file_type_renovate.svg","renovate.json":"file_type_renovate.svg",".renovaterc.json":"file_type_renovate.svg",".retextrc":"file_type_light_retext.svg",".retextignore":"file_type_light_retext.svg",".retextrc.cjs":"file_type_light_retext.svg",".retextrc.js":"file_type_light_retext.svg",".retextrc.json":"file_type_light_retext.svg",".retextrc.mjs":"file_type_light_retext.svg",".retextrc.yml":"file_type_light_retext.svg",".retextrc.yaml":"file_type_light_retext.svg","robots.txt":"file_type_robots.svg","rollup.config.js":"file_type_rollup.svg","rollup.config.cjs":"file_type_rollup.svg","rollup.config.mjs":"file_type_rollup.svg","rollup.config.coffee":"file_type_rollup.svg","rollup.config.ts":"file_type_rollup.svg","rollup.config.common.js":"file_type_rollup.svg","rollup.config.common.cjs":"file_type_rollup.svg","rollup.config.common.mjs":"file_type_rollup.svg","rollup.config.common.coffee":"file_type_rollup.svg","rollup.config.common.ts":"file_type_rollup.svg","rollup.config.dev.js":"file_type_rollup.svg","rollup.config.dev.cjs":"file_type_rollup.svg","rollup.config.dev.mjs":"file_type_rollup.svg","rollup.config.dev.coffee":"file_type_rollup.svg","rollup.config.dev.ts":"file_type_rollup.svg","rollup.config.prod.js":"file_type_rollup.svg","rollup.config.prod.cjs":"file_type_rollup.svg","rollup.config.prod.mjs":"file_type_rollup.svg","rollup.config.prod.coffee":"file_type_rollup.svg","rollup.config.prod.ts":"file_type_rollup.svg",".rspec":"file_type_rspec.svg",".rubocop.yml":"file_type_light_rubocop.svg",".rubocop_todo.yml":"file_type_light_rubocop.svg","rust-toolchain":"file_type_light_rust_toolchain.svg",".sailsrc":"file_type_sails.svg",".sentryclirc":"file_type_sentry.svg",".sequelizerc":"file_type_sequelize.svg",".sequelizerc.js":"file_type_sequelize.svg",".sequelizerc.json":"file_type_sequelize.svg","serverless.yml":"file_type_serverless.svg","serverless.json":"file_type_serverless.svg","serverless.js":"file_type_serverless.svg","serverless.ts":"file_type_serverless.svg","snapcraft.yaml":"file_type_snapcraft.svg",".snyk":"file_type_snyk.svg",".solidarity":"file_type_solidarity.svg",".solidarity.json":"file_type_solidarity.svg",".stylelintrc":"file_type_light_stylelint.svg",".stylelintignore":"file_type_light_stylelint.svg",".stylelintcache":"file_type_light_stylelint.svg","stylelint.config.js":"file_type_light_stylelint.svg","stylelint.config.json":"file_type_light_stylelint.svg","stylelint.config.yaml":"file_type_light_stylelint.svg","stylelint.config.yml":"file_type_light_stylelint.svg","stylelint.config.ts":"file_type_light_stylelint.svg","stylelint.config.cjs":"file_type_light_stylelint.svg",".stylelintrc.js":"file_type_light_stylelint.svg",".stylelintrc.json":"file_type_light_stylelint.svg",".stylelintrc.yaml":"file_type_light_stylelint.svg",".stylelintrc.yml":"file_type_light_stylelint.svg",".stylelintrc.ts":"file_type_light_stylelint.svg",".stylelintrc.cjs":"file_type_light_stylelint.svg",".stylish-haskell.yaml":"file_type_stylish_haskell.svg",".svnignore":"file_type_subversion.svg","package.pins":"file_type_swift.svg","symfony.lock":"file_type_light_symfony.svg","tailwind.js":"file_type_tailwind.svg","tailwind.cjs":"file_type_tailwind.svg","tailwind.coffee":"file_type_tailwind.svg","tailwind.ts":"file_type_tailwind.svg","tailwind.json":"file_type_tailwind.svg","tailwind.config.js":"file_type_tailwind.svg","tailwind.config.cjs":"file_type_tailwind.svg","tailwind.config.coffee":"file_type_tailwind.svg","tailwind.config.ts":"file_type_tailwind.svg","tailwind.config.json":"file_type_tailwind.svg",".testcaferc.json":"file_type_light_testcafe.svg",".tfignore":"file_type_tfs.svg","tox.ini":"file_type_tox.svg",".travis.yml":"file_type_travis.svg","tsconfig.json":"file_type_tsconfig.svg","tsconfig.app.json":"file_type_tsconfig.svg","tsconfig.base.json":"file_type_tsconfig.svg","tsconfig.common.json":"file_type_tsconfig.svg","tsconfig.dev.json":"file_type_tsconfig.svg","tsconfig.development.json":"file_type_tsconfig.svg","tsconfig.e2e.json":"file_type_tsconfig.svg","tsconfig.prod.json":"file_type_tsconfig.svg","tsconfig.production.json":"file_type_tsconfig.svg","tsconfig.server.json":"file_type_tsconfig.svg","tsconfig.spec.json":"file_type_tsconfig.svg","tsconfig.staging.json":"file_type_tsconfig.svg","tsconfig.test.json":"file_type_tsconfig.svg","tsconfig.lib.json":"file_type_tsconfig.svg","tsconfig.lib.prod.json":"file_type_tsconfig.svg","tslint.json":"file_type_tslint.svg","tslint.yaml":"file_type_tslint.svg","tslint.yml":"file_type_tslint.svg","typedoc.js":"file_type_typedoc.svg","typedoc.json":"file_type_typedoc.svg",".unibeautifyrc":"file_type_light_unibeautify.svg","unibeautify.config.js":"file_type_light_unibeautify.svg",".unibeautifyrc.js":"file_type_light_unibeautify.svg",".unibeautifyrc.json":"file_type_light_unibeautify.svg",".unibeautifyrc.yaml":"file_type_light_unibeautify.svg",".unibeautifyrc.yml":"file_type_light_unibeautify.svg",unlicense:"file_type_unlicense.svg",unlicence:"file_type_unlicense.svg","unlicense.md":"file_type_unlicense.svg","unlicense.txt":"file_type_unlicense.svg","unlicence.md":"file_type_unlicense.svg","unlicence.txt":"file_type_unlicense.svg",vagrantfile:"file_type_vagrant.svg","vapor.yml":"file_type_vapor.svg",".vimrc":"file_type_vim.svg",".gvimrc":"file_type_vim.svg","vite.config.js":"file_type_vite.svg","vite.config.ts":"file_type_vite.svg",".vscodeignore":"file_type_vscode.svg","launch.json":"file_type_vscode.svg","tasks.json":"file_type_vscode.svg","vscodeignore.json":"file_type_vscode.svg",".vuerc":"file_type_vueconfig.svg","vue.config.js":"file_type_vueconfig.svg","wallaby.json":"file_type_wallaby.svg","wallaby.js":"file_type_wallaby.svg","wallaby.ts":"file_type_wallaby.svg","wallaby.coffee":"file_type_wallaby.svg","wallaby.conf.json":"file_type_wallaby.svg","wallaby.conf.js":"file_type_wallaby.svg","wallaby.conf.ts":"file_type_wallaby.svg","wallaby.conf.coffee":"file_type_wallaby.svg",".wallaby.json":"file_type_wallaby.svg",".wallaby.js":"file_type_wallaby.svg",".wallaby.ts":"file_type_wallaby.svg",".wallaby.coffee":"file_type_wallaby.svg",".wallaby.conf.json":"file_type_wallaby.svg",".wallaby.conf.js":"file_type_wallaby.svg",".wallaby.conf.ts":"file_type_wallaby.svg",".wallaby.conf.coffee":"file_type_wallaby.svg",".watchmanconfig":"file_type_watchmanconfig.svg","webpack.base.conf.js":"file_type_webpack.svg","webpack.base.conf.coffee":"file_type_webpack.svg","webpack.base.conf.ts":"file_type_webpack.svg","webpack.common.js":"file_type_webpack.svg","webpack.common.coffee":"file_type_webpack.svg","webpack.common.ts":"file_type_webpack.svg","webpack.config.js":"file_type_webpack.svg","webpack.config.coffee":"file_type_webpack.svg","webpack.config.ts":"file_type_webpack.svg","webpack.config.base.js":"file_type_webpack.svg","webpack.config.base.coffee":"file_type_webpack.svg","webpack.config.base.ts":"file_type_webpack.svg","webpack.config.common.js":"file_type_webpack.svg","webpack.config.common.coffee":"file_type_webpack.svg","webpack.config.common.ts":"file_type_webpack.svg","webpack.config.dev.js":"file_type_webpack.svg","webpack.config.dev.coffee":"file_type_webpack.svg","webpack.config.dev.ts":"file_type_webpack.svg","webpack.config.development.js":"file_type_webpack.svg","webpack.config.development.coffee":"file_type_webpack.svg","webpack.config.development.ts":"file_type_webpack.svg","webpack.config.staging.js":"file_type_webpack.svg","webpack.config.staging.coffee":"file_type_webpack.svg","webpack.config.staging.ts":"file_type_webpack.svg","webpack.config.test.js":"file_type_webpack.svg","webpack.config.test.coffee":"file_type_webpack.svg","webpack.config.test.ts":"file_type_webpack.svg","webpack.config.prod.js":"file_type_webpack.svg","webpack.config.prod.coffee":"file_type_webpack.svg","webpack.config.prod.ts":"file_type_webpack.svg","webpack.config.production.js":"file_type_webpack.svg","webpack.config.production.coffee":"file_type_webpack.svg","webpack.config.production.ts":"file_type_webpack.svg","webpack.config.babel.js":"file_type_webpack.svg","webpack.config.babel.coffee":"file_type_webpack.svg","webpack.config.babel.ts":"file_type_webpack.svg","webpack.config.base.babel.js":"file_type_webpack.svg","webpack.config.base.babel.coffee":"file_type_webpack.svg","webpack.config.base.babel.ts":"file_type_webpack.svg","webpack.config.common.babel.js":"file_type_webpack.svg","webpack.config.common.babel.coffee":"file_type_webpack.svg","webpack.config.common.babel.ts":"file_type_webpack.svg","webpack.config.dev.babel.js":"file_type_webpack.svg","webpack.config.dev.babel.coffee":"file_type_webpack.svg","webpack.config.dev.babel.ts":"file_type_webpack.svg","webpack.config.development.babel.js":"file_type_webpack.svg","webpack.config.development.babel.coffee":"file_type_webpack.svg","webpack.config.development.babel.ts":"file_type_webpack.svg","webpack.config.staging.babel.js":"file_type_webpack.svg","webpack.config.staging.babel.coffee":"file_type_webpack.svg","webpack.config.staging.babel.ts":"file_type_webpack.svg","webpack.config.test.babel.js":"file_type_webpack.svg","webpack.config.test.babel.coffee":"file_type_webpack.svg","webpack.config.test.babel.ts":"file_type_webpack.svg","webpack.config.prod.babel.js":"file_type_webpack.svg","webpack.config.prod.babel.coffee":"file_type_webpack.svg","webpack.config.prod.babel.ts":"file_type_webpack.svg","webpack.config.production.babel.js":"file_type_webpack.svg","webpack.config.production.babel.coffee":"file_type_webpack.svg","webpack.config.production.babel.ts":"file_type_webpack.svg","webpack.dev.js":"file_type_webpack.svg","webpack.dev.coffee":"file_type_webpack.svg","webpack.dev.ts":"file_type_webpack.svg","webpack.dev.conf.js":"file_type_webpack.svg","webpack.dev.conf.coffee":"file_type_webpack.svg","webpack.dev.conf.ts":"file_type_webpack.svg","webpack.prod.js":"file_type_webpack.svg","webpack.prod.coffee":"file_type_webpack.svg","webpack.prod.ts":"file_type_webpack.svg","webpack.prod.conf.js":"file_type_webpack.svg","webpack.prod.conf.coffee":"file_type_webpack.svg","webpack.prod.conf.ts":"file_type_webpack.svg","webpack.main.config.js":"file_type_webpack.svg","webpack.main.config.coffee":"file_type_webpack.svg","webpack.main.config.ts":"file_type_webpack.svg","webpack.mix.js":"file_type_webpack.svg","webpack.mix.coffee":"file_type_webpack.svg","webpack.mix.ts":"file_type_webpack.svg","webpack.plugins.js":"file_type_webpack.svg","webpack.plugins.coffee":"file_type_webpack.svg","webpack.plugins.ts":"file_type_webpack.svg","webpack.renderer.config.js":"file_type_webpack.svg","webpack.renderer.config.coffee":"file_type_webpack.svg","webpack.renderer.config.ts":"file_type_webpack.svg","webpack.rules.js":"file_type_webpack.svg","webpack.rules.coffee":"file_type_webpack.svg","webpack.rules.ts":"file_type_webpack.svg","webpack.test.conf.js":"file_type_webpack.svg","webpack.test.conf.coffee":"file_type_webpack.svg","webpack.test.conf.ts":"file_type_webpack.svg","wercker.yml":"file_type_wercker.svg","wpml-config.xml":"file_type_wpml.svg",".yamllint":"file_type_yamllint.svg",".yaspellerrc":"file_type_yandex.svg",".yaspeller.json":"file_type_yandex.svg","yarn.lock":"file_type_yarn.svg",".yarnrc":"file_type_yarn.svg",".yarnrc.yml":"file_type_yarn.svg",".yarnclean":"file_type_yarn.svg",".yarn-integrity":"file_type_yarn.svg",".yarn-metadata.json":"file_type_yarn.svg",".yarnignore":"file_type_yarn.svg",".yo-rc.json":"file_type_yeoman.svg","now.json":"file_type_light_zeit.svg",".nowignore":"file_type_light_zeit.svg","vercel.json":"file_type_light_zeit.svg",".vercelignore":"file_type_light_zeit.svg",Jenkinsfile:"file_type_groovy.svg",config:"file_type_ini.svg",gitconfig:"file_type_ini.svg",guardfile:"file_type_ruby.svg",podfile:"file_type_ruby.svg",capfile:"file_type_ruby.svg"}),nb}var rb={},Nz;function s9e(){return Nz||(Nz=1,Object.defineProperty(rb,"__esModule",{value:!0}),rb.FolderNamesToIcon=void 0,rb.FolderNamesToIcon={android:"folder_type_android.svg",api:"folder_type_api.svg",".api":"folder_type_api.svg",apis:"folder_type_api.svg",".apis":"folder_type_api.svg",app:"folder_type_app.svg",".app":"folder_type_app.svg",arangodb:"folder_type_arangodb.svg",arango:"folder_type_arangodb.svg",assets:"folder_type_asset.svg",".assets":"folder_type_asset.svg",audio:"folder_type_audio.svg",".audio":"folder_type_audio.svg",audios:"folder_type_audio.svg",".audios":"folder_type_audio.svg",sound:"folder_type_audio.svg",".sound":"folder_type_audio.svg",sounds:"folder_type_audio.svg",".sounds":"folder_type_audio.svg",aurelia_project:"folder_type_aurelia.svg",aws:"folder_type_aws.svg",".aws":"folder_type_aws.svg",azure:"folder_type_azure.svg",".azure":"folder_type_azure.svg","azure-pipelines":"folder_type_azurepipelines.svg",".azure-pipelines":"folder_type_azurepipelines.svg",bin:"folder_type_binary.svg",".bin":"folder_type_binary.svg",blocs:"folder_type_bloc.svg",bloc:"folder_type_bloc.svg",blueprint:"folder_type_blueprint.svg",".blueprint":"folder_type_blueprint.svg",blueprints:"folder_type_blueprint.svg",".blueprints":"folder_type_blueprint.svg",bower_components:"folder_type_bower.svg",".buildkite":"folder_type_buildkite.svg",cake:"folder_type_cake.svg",".cake":"folder_type_cake.svg",certificates:"folder_type_certificate.svg",".certificates":"folder_type_certificate.svg",certs:"folder_type_certificate.svg","certs.":"folder_type_certificate.svg",chef:"folder_type_chef.svg",".chef":"folder_type_chef.svg",".circleci":"folder_type_circleci.svg",cli:"folder_type_cli.svg",cmd:"folder_type_cli.svg",command:"folder_type_cli.svg",commands:"folder_type_cli.svg",commandline:"folder_type_cli.svg",console:"folder_type_cli.svg",client:"folder_type_client.svg",clients:"folder_type_client.svg",".cmake":"folder_type_cmake.svg",cmake:"folder_type_cmake.svg",component:"folder_type_component.svg",components:"folder_type_component.svg",".components":"folder_type_component.svg",widgets:"folder_type_component.svg",composer:"folder_type_composer.svg",".composer":"folder_type_composer.svg",conf:"folder_type_config.svg",".conf":"folder_type_config.svg",config:"folder_type_config.svg",".config":"folder_type_config.svg",configs:"folder_type_config.svg",".configs":"folder_type_config.svg",configuration:"folder_type_config.svg",".configuration":"folder_type_config.svg",configurations:"folder_type_config.svg",".configurations":"folder_type_config.svg",setting:"folder_type_config.svg",".setting":"folder_type_config.svg",settings:"folder_type_config.svg",".settings":"folder_type_config.svg",ini:"folder_type_config.svg",".ini":"folder_type_config.svg",initializers:"folder_type_config.svg",".initializers":"folder_type_config.svg",controller:"folder_type_controller.svg",controllers:"folder_type_controller.svg",".controllers":"folder_type_controller.svg",handlers:"folder_type_controller.svg",".handlers":"folder_type_controller.svg",coverage:"folder_type_coverage.svg",css:"folder_type_css.svg",_css:"folder_type_css.svg",cubits:"folder_type_cubit.svg",cubit:"folder_type_cubit.svg",cypress:"folder_type_cypress.svg",".dapr":"folder_type_dapr.svg",dapr:"folder_type_dapr.svg",db:"folder_type_db.svg",database:"folder_type_db.svg",sql:"folder_type_db.svg",data:"folder_type_db.svg",repo:"folder_type_db.svg",repository:"folder_type_db.svg",repositories:"folder_type_db.svg",debian:"folder_type_debian.svg",deb:"folder_type_debian.svg",".dependabot":"folder_type_dependabot.svg",".devcontainer":"folder_type_devcontainer.svg",dist:"folder_type_dist.svg",".dist":"folder_type_dist.svg",dists:"folder_type_dist.svg",out:"folder_type_dist.svg",outs:"folder_type_dist.svg",export:"folder_type_dist.svg",exports:"folder_type_dist.svg",build:"folder_type_dist.svg",".build":"folder_type_dist.svg",builds:"folder_type_dist.svg",release:"folder_type_dist.svg",releases:"folder_type_dist.svg",target:"folder_type_dist.svg",targets:"folder_type_dist.svg",docker:"folder_type_docker.svg",".docker":"folder_type_docker.svg",docs:"folder_type_docs.svg",doc:"folder_type_docs.svg",e2e:"folder_type_e2e.svg",".elasticbeanstalk":"folder_type_elasticbeanstalk.svg",".ebextensions":"folder_type_elasticbeanstalk.svg",electron:"folder_type_light_electron.svg",".expo":"folder_type_light_expo.svg",".expo-shared":"folder_type_light_expo.svg",favicon:"folder_type_favicon.svg",favicons:"folder_type_favicon.svg",flow:"folder_type_flow.svg","flow-typed":"folder_type_flow.svg",fonts:"folder_type_light_fonts.svg",font:"folder_type_light_fonts.svg",fnt:"folder_type_light_fonts.svg",gcp:"folder_type_gcp.svg",".gcp":"folder_type_gcp.svg",".git":"folder_type_git.svg",submodules:"folder_type_git.svg",".submodules":"folder_type_git.svg",".github":"folder_type_github.svg",".gitlab":"folder_type_gitlab.svg",gradle:"folder_type_light_gradle.svg",".gradle":"folder_type_light_gradle.svg",graphql:"folder_type_graphql.svg",grunt:"folder_type_grunt.svg",gulp:"folder_type_gulp.svg","gulpfile.js":"folder_type_gulp.svg","gulpfile.coffee":"folder_type_gulp.svg","gulpfile.ts":"folder_type_gulp.svg","gulpfile.babel.js":"folder_type_gulp.svg","gulpfile.babel.coffee":"folder_type_gulp.svg","gulpfile.babel.ts":"folder_type_gulp.svg",".haxelib":"folder_type_haxelib.svg",haxe_libraries:"folder_type_haxelib.svg",helper:"folder_type_helper.svg",".helper":"folder_type_helper.svg",helpers:"folder_type_helper.svg",".helpers":"folder_type_helper.svg",hook:"folder_type_hook.svg",".hook":"folder_type_hook.svg",hooks:"folder_type_hook.svg",".hooks":"folder_type_hook.svg",".husky":"folder_type_husky.svg",".idea":"folder_type_idea.svg",images:"folder_type_images.svg",image:"folder_type_images.svg",img:"folder_type_images.svg",icons:"folder_type_images.svg",icon:"folder_type_images.svg",ico:"folder_type_images.svg",screenshot:"folder_type_images.svg",screenshots:"folder_type_images.svg",svg:"folder_type_images.svg",include:"folder_type_include.svg",includes:"folder_type_include.svg",incl:"folder_type_include.svg",inc:"folder_type_include.svg",".include":"folder_type_include.svg",".includes":"folder_type_include.svg",".incl":"folder_type_include.svg",".inc":"folder_type_include.svg",_include:"folder_type_include.svg",_includes:"folder_type_include.svg",_incl:"folder_type_include.svg",_inc:"folder_type_include.svg",interface:"folder_type_interfaces.svg",interfaces:"folder_type_interfaces.svg",ios:"folder_type_ios.svg",js:"folder_type_js.svg",json:"folder_type_json.svg",kubernetes:"folder_type_kubernetes.svg",k8s:"folder_type_kubernetes.svg",kube:"folder_type_kubernetes.svg",kuber:"folder_type_kubernetes.svg",".kubernetes":"folder_type_kubernetes.svg",".k8s":"folder_type_kubernetes.svg",".kube":"folder_type_kubernetes.svg",".kuber":"folder_type_kubernetes.svg",less:"folder_type_less.svg",_less:"folder_type_less.svg",lib:"folder_type_library.svg",libs:"folder_type_library.svg",".lib":"folder_type_library.svg",".libs":"folder_type_library.svg",library:"folder_type_library.svg",libraries:"folder_type_library.svg",linux:"folder_type_linux.svg",lang:"folder_type_locale.svg",language:"folder_type_locale.svg",languages:"folder_type_locale.svg",locale:"folder_type_locale.svg",locales:"folder_type_locale.svg",_locale:"folder_type_locale.svg",_locales:"folder_type_locale.svg",internationalization:"folder_type_locale.svg",globalization:"folder_type_locale.svg",localization:"folder_type_locale.svg",i18n:"folder_type_locale.svg",g11n:"folder_type_locale.svg",l10n:"folder_type_locale.svg",log:"folder_type_log.svg",logs:"folder_type_log.svg",macos:"folder_type_macos.svg",darwin:"folder_type_macos.svg",mariadb:"folder_type_mariadb.svg",maria:"folder_type_mariadb.svg",".mvn":"folder_type_maven.svg",memcached:"folder_type_memcached.svg",".memcached":"folder_type_memcached.svg",".meteor":"folder_type_light_meteor.svg",middleware:"folder_type_middleware.svg",middlewares:"folder_type_middleware.svg",minikube:"folder_type_minikube.svg",minik8s:"folder_type_minikube.svg",minikuber:"folder_type_minikube.svg",mjml:"folder_type_mjml.svg",".mjml":"folder_type_mjml.svg",mocks:"folder_type_mock.svg",".mocks":"folder_type_mock.svg",__mocks__:"folder_type_mock.svg",model:"folder_type_model.svg",".model":"folder_type_model.svg",models:"folder_type_model.svg",".models":"folder_type_model.svg",entities:"folder_type_model.svg",".entities":"folder_type_model.svg",modules:"folder_type_module.svg",mongodb:"folder_type_mongodb.svg",mongo:"folder_type_mongodb.svg",mysqldb:"folder_type_light_mysql.svg",mysql:"folder_type_light_mysql.svg",".next":"folder_type_next.svg",nginx:"folder_type_nginx.svg","conf.d":"folder_type_nginx.svg",node_modules:"folder_type_light_node.svg",notification:"folder_type_notification.svg",notifications:"folder_type_notification.svg",event:"folder_type_notification.svg",events:"folder_type_notification.svg",".nuget":"folder_type_nuget.svg",".nuxt":"folder_type_nuxt.svg",package:"folder_type_package.svg",packages:"folder_type_package.svg",".package":"folder_type_package.svg",".packages":"folder_type_package.svg",pkg:"folder_type_package.svg",".paket":"folder_type_paket.svg",php:"folder_type_php.svg",".pio":"folder_type_platformio.svg",".pioenvs":"folder_type_platformio.svg",plugin:"folder_type_plugin.svg",".plugin":"folder_type_plugin.svg",plugins:"folder_type_plugin.svg",".plugins":"folder_type_plugin.svg",extension:"folder_type_plugin.svg",".extension":"folder_type_plugin.svg",extensions:"folder_type_plugin.svg",".extensions":"folder_type_plugin.svg",private:"folder_type_private.svg",".private":"folder_type_private.svg",public:"folder_type_public.svg",".public":"folder_type_public.svg",".venv":"folder_type_python.svg",".virtualenv":"folder_type_python.svg",ravendb:"folder_type_ravendb.svg",redis:"folder_type_redis.svg",redux:"folder_type_light_redux.svg",route:"folder_type_route.svg",routes:"folder_type_route.svg",_route:"folder_type_route.svg",_routes:"folder_type_route.svg",routers:"folder_type_route.svg",sass:"folder_type_light_sass.svg",scss:"folder_type_light_sass.svg",_sass:"folder_type_light_sass.svg",_scss:"folder_type_light_sass.svg",script:"folder_type_script.svg",scripts:"folder_type_script.svg",server:"folder_type_server.svg",service:"folder_type_services.svg",services:"folder_type_services.svg",src:"folder_type_src.svg",source:"folder_type_src.svg",sources:"folder_type_src.svg",sso:"folder_type_sso.svg",story:"folder_type_story.svg",stories:"folder_type_story.svg",__stories__:"folder_type_story.svg",".storybook":"folder_type_story.svg",style:"folder_type_style.svg",styles:"folder_type_style.svg",temp:"folder_type_temp.svg",".temp":"folder_type_temp.svg",tmp:"folder_type_temp.svg",".tmp":"folder_type_temp.svg",template:"folder_type_template.svg",".template":"folder_type_template.svg",templates:"folder_type_template.svg",".templates":"folder_type_template.svg",tests:"folder_type_test.svg",".tests":"folder_type_test.svg",test:"folder_type_test.svg",".test":"folder_type_test.svg",__tests__:"folder_type_test.svg",__test__:"folder_type_test.svg",spec:"folder_type_test.svg",".spec":"folder_type_test.svg",specs:"folder_type_test.svg",".specs":"folder_type_test.svg",integration:"folder_type_test.svg",theme:"folder_type_theme.svg",themes:"folder_type_theme.svg",tool:"folder_type_tools.svg",tools:"folder_type_tools.svg",".tools":"folder_type_tools.svg",util:"folder_type_tools.svg",utils:"folder_type_tools.svg",".travis":"folder_type_travis.svg",typescript:"folder_type_typescript.svg",ts:"folder_type_typescript.svg",typings:"folder_type_typings.svg","@types":"folder_type_typings.svg",vagrant:"folder_type_vagrant.svg",".vagrant":"folder_type_vagrant.svg",video:"folder_type_video.svg",".video":"folder_type_video.svg",videos:"folder_type_video.svg",".videos":"folder_type_video.svg",html:"folder_type_view.svg",view:"folder_type_view.svg",views:"folder_type_view.svg",layout:"folder_type_view.svg",layouts:"folder_type_view.svg",page:"folder_type_view.svg",pages:"folder_type_view.svg",_view:"folder_type_view.svg",_views:"folder_type_view.svg",_layout:"folder_type_view.svg",_layouts:"folder_type_view.svg",_page:"folder_type_view.svg",_pages:"folder_type_view.svg",".vs":"folder_type_vs.svg",".vscode":"folder_type_vscode.svg",vscode:"folder_type_vscode.svg",".vscode-test":"folder_type_vscode_test.svg",webpack:"folder_type_webpack.svg",windows:"folder_type_windows.svg",win32:"folder_type_windows.svg",www:"folder_type_www.svg",wwwroot:"folder_type_www.svg"}),rb}var ib={},Tz;function a9e(){return Tz||(Tz=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.LanguagesToIcon=void 0,ib.LanguagesToIcon={as:"file_type_actionscript.svg",ada:"file_type_light_ada.svg",prw:"file_type_advpl.svg",affect:"file_type_affectscript.svg",al:"file_type_al.svg",ansible:"file_type_ansible.svg",g4:"file_type_antlr.svg",any:"file_type_anyscript.svg",cls:"file_type_apex.svg",apl:"file_type_light_apl.svg",applescript:"file_type_applescript.svg",adoc:"file_type_asciidoc.svg",asp:"file_type_asp.svg",ats:"file_type_ats.svg",au3:"file_type_autoit.svg",avcs:"file_type_avro.svg",azcli:"file_type_azure.svg",bal:"file_type_ballerina.svg",bat:"file_type_bat.svg",cmd:"file_type_bat.svg",bats:"file_type_bats.svg",bzl:"file_type_bazel.svg",bf:"file_type_befunge.svg",bicep:"file_type_bicep.svg",bib:"file_type_light_tex.svg",biml:"file_type_biml.svg","blade.php":"file_type_blade.svg",blitzbasic:"file_type_blitzbasic.svg",bolt:"file_type_bolt.svg",bsq:"file_type_bosque.svg",c:"file_type_c.svg",cabal:"file_type_cabal.svg",Caddyfile:"file_type_caddy.svg",casc:"file_type_casc.svg",cddl:"file_type_cddl.svg",ceylon:"file_type_ceylon.svg",cfc:"file_type_cfc.svg",clj:"file_type_clojure.svg",cljs:"file_type_clojure.svg",cljc:"file_type_clojure.svg",cljx:"file_type_clojure.svg",clojure:"file_type_clojure.svg",edn:"file_type_clojure.svg",clojurescript:"file_type_clojurescript.svg",cmake:"file_type_cmake.svg",cbl:"file_type_cobol.svg",coffee:"file_type_coffeescript.svg",cson:"file_type_coffeescript.svg",confluence:"file_type_confluence.svg",ckbk:"file_type_chef_cookbook.svg",cpp:"file_type_cpp.svg",cc:"file_type_cpp.svg",cxx:"file_type_cpp.svg",hpp:"file_type_cpp.svg",hh:"file_type_cpp.svg",hxx:"file_type_cpp.svg",h:"file_type_cpp.svg",ino:"file_type_cpp.svg",inl:"file_type_cpp.svg",ipp:"file_type_cpp.svg",cr:"file_type_light_crystal.svg",cs:"file_type_csharp.svg",csx:"file_type_csharp.svg",cake:"file_type_csharp.svg",css:"file_type_css.svg",cu:"file_type_cuda.svg",pyx:"file_type_cython.svg",dal:"file_type_dal.svg",dart:"file_type_dartlang.svg",diff:"file_type_diff.svg",patch:"file_type_diff.svg",rej:"file_type_diff.svg",dockerfile:"file_type_docker.svg",dtx:"file_type_light_tex.svg",env:"file_type_light_config.svg",dot:"file_type_dotjs.svg",dox:"file_type_doxygen.svg",drl:"file_type_drools.svg",dust:"file_type_dustjs.svg",edge:"file_type_edge.svg",eex:"file_type_eex.svg",ex:"file_type_elixir.svg",elm:"file_type_elm.svg",erb:"file_type_erb.svg",erl:"file_type_erlang.svg",falcon:"file_type_falcon.svg",fs:"file_type_fsharp.svg",fsi:"file_type_fsharp.svg",fsx:"file_type_fsharp.svg",fsscript:"file_type_fsharp.svg",fthtml:"file_type_fthtml.svg",gspec:"file_type_galen.svg",gcode:"file_type_gcode.svg",gen:"file_type_genstat.svg",glsl:"file_type_glsl.svg",glyphs:"file_type_glyphs.svg",gp:"file_type_gnuplot.svg",go:"file_type_go.svg",gql:"file_type_graphql.svg",groovy:"file_type_groovy.svg",gvy:"file_type_groovy.svg",gradle:"file_type_groovy.svg",haml:"file_type_haml.svg",handlebars:"file_type_handlebars.svg",hbs:"file_type_handlebars.svg",hjs:"file_type_handlebars.svg",prg:"file_type_harbour.svg",hs:"file_type_haskell.svg",haxe:"file_type_haxe.svg","helm.tpl":"file_type_helm.svg",hjson:"file_type_light_hjson.svg",hlsl:"file_type_hlsl.svg",hlsli:"file_type_hlsl.svg",fx:"file_type_hlsl.svg",fxh:"file_type_hlsl.svg",vsh:"file_type_hlsl.svg",psh:"file_type_hlsl.svg",cginc:"file_type_hlsl.svg",compute:"file_type_hlsl.svg",hosts:"file_type_host.svg",html:"file_type_html.svg",htm:"file_type_html.svg",shtml:"file_type_html.svg",xhtml:"file_type_html.svg",mdoc:"file_type_html.svg",jsp:"file_type_html.svg",aspx:"file_type_html.svg",jshtm:"file_type_html.svg",volt:"file_type_html.svg",ejs:"file_type_html.svg",rhtml:"file_type_html.svg",http:"file_type_http.svg",hy:"file_type_hy.svg",hypr:"file_type_hypr.svg",icl:"file_type_icl.svg",imba:"file_type_imba.svg",properties:"file_type_light_ini.svg",gitconfig:"file_type_light_ini.svg",cfg:"file_type_light_ini.svg",conf:"file_type_light_ini.svg",ink:"file_type_ink.svg",iss:"file_type_innosetup.svg",io:"file_type_light_io.svg",janet:"file_type_janet.svg",java:"file_type_java.svg",jav:"file_type_java.svg",js:"file_type_light_js.svg",es6:"file_type_light_js.svg",mjs:"file_type_light_js.svg",pac:"file_type_light_js.svg",jsx:"file_type_reactjs.svg",jekyll:"file_type_jekyll.svg",json:"file_type_light_json.svg",bowerrc:"file_type_light_json.svg",jshintrc:"file_type_light_json.svg",jscsrc:"file_type_light_json.svg",eslintrc:"file_type_light_json.svg",babelrc:"file_type_light_json.svg",webmanifest:"file_type_light_json.svg",jsonc:"file_type_light_json.svg",jsonnet:"file_type_jsonnet.svg",json5:"file_type_light_json5.svg",jl:"file_type_julia.svg",id:"file_type_iodine.svg",kv:"file_type_kivy.svg",ks:"file_type_kos.svg",kt:"file_type_kotlin.svg",".kusto":"file_type_kusto.svg",tex:"file_type_light_tex.svg",lat:"file_type_latino.svg",less:"file_type_less.svg",flex:"file_type_lex.svg",lisp:"file_type_lisp.svg",log:"file_type_log.svg",lol:"file_type_lolcode.svg",lsl:"file_type_lsl.svg",lua:"file_type_lua.svg",mk:"file_type_makefile.svg",md:"file_type_markdown.svg",mdown:"file_type_markdown.svg",markdown:"file_type_markdown.svg",markdn:"file_type_markdown.svg",marko:"file_type_marko.svg",mat:"file_type_matlab.svg",ms:"file_type_maxscript.svg",mdx:"file_type_light_mdx.svg",mediawiki:"file_type_mediawiki.svg",mel:"file_type_maya.svg","meson.build":"file_type_meson.svg",mjml:"file_type_mjml.svg",ep:"file_type_mojolicious.svg",mongo:"file_type_mongo.svg",mson:"file_type_mson.svg",ne:"file_type_nearly.svg",nim:"file_type_nim.svg",nimble:"file_type_nimble.svg",nix:"file_type_nix.svg",nsi:"file_type_nsi.svg",nunjucks:"file_type_nunjucks.svg",ml:"file_type_ocaml.svg",o3:"file_type_ogone.svg",pas:"file_type_delphi.svg",pddl:"file_type_pddl.svg",pl:"file_type_perl.svg",pm:"file_type_perl.svg",pod:"file_type_perl.svg",t:"file_type_perl.svg",PL:"file_type_perl.svg",psgi:"file_type_perl.svg",p6:"file_type_perl.svg",pl6:"file_type_perl.svg",pm6:"file_type_perl.svg",nqp:"file_type_perl.svg",pgsql:"file_type_pgsql.svg",php:"file_type_php.svg",php4:"file_type_php.svg",php5:"file_type_php.svg",phtml:"file_type_php.svg",ctp:"file_type_php.svg",pine:"file_type_pine.svg",txt:"file_type_text.svg",ddl:"file_type_plsql.svg",polymer:"file_type_polymer.svg",pony:"file_type_pony.svg",pcss:"file_type_postcss.svg",ps1:"file_type_powershell.svg",psm1:"file_type_powershell.svg",psd1:"file_type_powershell.svg",pssc:"file_type_powershell.svg",psrc:"file_type_powershell.svg",prisma:"file_type_light_prisma.svg",pro:"file_type_prolog.svg",rules:"file_type_prometheus.svg",pp:"file_type_puppet.svg",purs:"file_type_light_purescript.svg",arr:"file_type_pyret.svg",py:"file_type_python.svg",rpy:"file_type_python.svg",pyw:"file_type_python.svg",cpy:"file_type_python.svg",gyp:"file_type_python.svg",gypi:"file_type_python.svg",qvs:"file_type_qlikview.svg",qml:"file_type_qml.svg",qs:"file_type_qsharp.svg",r:"file_type_r.svg",rhistory:"file_type_r.svg",rprofile:"file_type_r.svg",rt:"file_type_r.svg",rkt:"file_type_racket.svg",cshtml:"file_type_razor.svg",raml:"file_type_raml.svg",re:"file_type_reason.svg",red:"file_type_red.svg",res:"file_type_rescript.svg",rst:"file_type_rest.svg",rex:"file_type_rexx.svg",tag:"file_type_riot.svg",rmd:"file_type_rmd.svg",robot:"file_type_robotframework.svg",rb:"file_type_ruby.svg",rbx:"file_type_ruby.svg",rjs:"file_type_ruby.svg",gemspec:"file_type_ruby.svg",rake:"file_type_ruby.svg",ru:"file_type_ruby.svg",rs:"file_type_light_rust.svg",san:"file_type_san.svg",sbt:"file_type_sbt.svg",scad:"file_type_openscad.svg",scala:"file_type_scala.svg",sce:"file_type_scilab.svg",scss:"file_type_scss.svg",shader:"file_type_light_shaderlab.svg",sh:"file_type_shell.svg",bash:"file_type_shell.svg",bashrc:"file_type_shell.svg",bash_aliases:"file_type_shell.svg",bash_profile:"file_type_shell.svg",bash_login:"file_type_shell.svg",ebuild:"file_type_shell.svg",install:"file_type_shell.svg",profile:"file_type_shell.svg",bash_logout:"file_type_shell.svg",zsh:"file_type_shell.svg",zshrc:"file_type_shell.svg",zprofile:"file_type_shell.svg",zlogin:"file_type_shell.svg",zlogout:"file_type_shell.svg",zshenv:"file_type_shell.svg","zsh-theme":"file_type_shell.svg",slang:"file_type_slang.svg",ice:"file_type_slice.svg",slim:"file_type_slim.svg",ss:"file_type_silverstripe.svg",tpl:"file_type_smarty.svg",snort:"file_type_snort.svg",sol:"file_type_light_solidity.svg",rq:"file_type_sparql.svg",sqf:"file_type_sqf.svg",sql:"file_type_sql.svg",dsql:"file_type_sql.svg",nut:"file_type_squirrel.svg",stan:"file_type_stan.svg",bazel:"file_type_bazel.svg",do:"file_type_stata.svg",stencil:"file_type_stencil.svg","st.css":"file_type_stylable.svg",styl:"file_type_light_stylus.svg",svelte:"file_type_svelte.svg",swagger:"file_type_swagger.svg",swift:"file_type_swift.svg",swig:"file_type_swig.svg",sv:"file_type_light_systemverilog.svg",tt:"file_type_t4tt.svg",teal:"file_type_teal.svg",tera:"file_type_tera.svg",tf:"file_type_terraform.svg",sty:"file_type_light_tex.svg",textile:"file_type_textile.svg",Tiltfile:"file_type_tiltfile.svg",toml:"file_type_light_toml.svg",ttcn3:"file_type_ttcn.svg",tuc:"file_type_tuc.svg",twig:"file_type_twig.svg",ts:"file_type_typescript.svg",tsx:"file_type_reactts.svg",vb:"file_type_vb.svg",brs:"file_type_vb.svg",vbs:"file_type_vb.svg",bas:"file_type_vb.svg",wsf:"file_type_script.svg",vm:"file_type_velocity.svg",v:"file_type_verilog.svg",vhdl:"file_type_vhdl.svg",vim:"file_type_vim.svg",vue:"file_type_vue.svg",wasm:"file_type_wasm.svg",wy:"file_type_wenyan.svg",wl:"file_type_wolfram.svg",wurst:"file_type_wurst.svg","xmake.lua":"file_type_xmake.svg",xml:"file_type_xml.svg",xsd:"file_type_xml.svg",ascx:"file_type_xml.svg",atom:"file_type_xml.svg",axml:"file_type_xml.svg",bpmn:"file_type_xml.svg",config:"file_type_xml.svg",cpt:"file_type_xml.svg",csl:"file_type_xml.svg",csproj:"file_type_xml.svg","csproj.user":"file_type_xml.svg",dita:"file_type_xml.svg",ditamap:"file_type_xml.svg",dtd:"file_type_xml.svg",dtml:"file_type_xml.svg",fsproj:"file_type_xml.svg",fxml:"file_type_xml.svg",iml:"file_type_xml.svg",isml:"file_type_xml.svg",jmx:"file_type_xml.svg",launch:"file_type_xml.svg",menu:"file_type_xml.svg",mxml:"file_type_xml.svg",nuspec:"file_type_xml.svg",opml:"file_type_xml.svg",owl:"file_type_xml.svg",proj:"file_type_xml.svg",props:"file_type_xml.svg",pt:"file_type_xml.svg",publishsettings:"file_type_xml.svg",pubxml:"file_type_xml.svg","pubxml.user":"file_type_xml.svg",rdf:"file_type_xml.svg",rng:"file_type_xml.svg",rss:"file_type_xml.svg",shproj:"file_type_xml.svg",storyboard:"file_type_xml.svg",svg:"file_type_xml.svg",targets:"file_type_xml.svg",tld:"file_type_xml.svg",tmx:"file_type_xml.svg",vbproj:"file_type_xml.svg","vbproj.user":"file_type_xml.svg",vcxproj:"file_type_xml.svg","vcxproj.filters":"file_type_xml.svg",wsdl:"file_type_xml.svg",wxi:"file_type_xml.svg",wxl:"file_type_xml.svg",wxs:"file_type_xml.svg",xaml:"file_type_xml.svg",xbl:"file_type_xml.svg",xib:"file_type_xml.svg",xlf:"file_type_xml.svg",xliff:"file_type_xml.svg",xpdl:"file_type_xml.svg",xul:"file_type_xml.svg",xoml:"file_type_xml.svg",xquery:"file_type_xquery.svg",xsl:"file_type_xsl.svg",xslt:"file_type_xsl.svg",bison:"file_type_yacc.svg",eyaml:"file_type_light_yaml.svg",eyml:"file_type_light_yaml.svg",yaml:"file_type_light_yaml.svg",yml:"file_type_light_yaml.svg",yang:"file_type_yang.svg",zig:"file_type_zig.svg"}),ib}var Ez;function o9e(){return Ez||(Ez=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getIconForOpenFolder=e.getIconForFile=e.getIconForFolder=e.DEFAULT_FILE=e.DEFAULT_ROOT_OPENED=e.DEFAULT_ROOT=e.DEFAULT_FOLDER_OPENED=e.DEFAULT_FOLDER=void 0;var n=n9e(),r=r9e(),i=i9e(),s=s9e(),a=a9e();e.DEFAULT_FOLDER="default_folder.svg",e.DEFAULT_FOLDER_OPENED="default_folder_opened.svg",e.DEFAULT_ROOT="default_root_folder.svg",e.DEFAULT_ROOT_OPENED="default_root_folder_opened.svg",e.DEFAULT_FILE="default_file.svg";function o(f){var m=s.FolderNamesToIcon[f];return m||e.DEFAULT_FOLDER}e.getIconForFolder=o;var l=void 0,u=void 0;function d(f){var m=i.FileNamesToIcon[f];if(m!==void 0)return m;var x=f.split(".");if(x.length>2){var v=x.pop(),_=x.pop(),w=r.FileExtensions2ToIcon[_+"."+v];if(w!==void 0)return w;if(!v)return e.DEFAULT_FILE;if(v===l)return u;var S=n.FileExtensions1ToIcon[v];if(S!==void 0)return l=v,u=S,S}else{var C=x.pop();if(!C)return e.DEFAULT_FILE;if(C===l)return u;var j=n.FileExtensions1ToIcon[C];if(j!==void 0)return l=C,u=j,j}var T=f.split(".").pop();if(T!==void 0){var E=a.LanguagesToIcon[T];if(E)return E}return e.DEFAULT_FILE}e.getIconForFile=d;function h(f){return o(f).split(".").shift()+"_opened.svg"}e.getIconForOpenFolder=h})(jT)),jT}var ud=o9e();const eie="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@12.9.0/icons/";function xa({filename:e,className:n}){const r=ud.getIconForFile(e)??ud.DEFAULT_FILE;return c.jsx("img",{src:`${eie}${r}`,alt:"",className:n,loading:"lazy",decoding:"async",draggable:!1})}function V4({name:e,open:n=!1,className:r}){const i=n?ud.getIconForOpenFolder(e)??ud.DEFAULT_FOLDER_OPENED:ud.getIconForFolder(e)??ud.DEFAULT_FOLDER;return c.jsx("img",{src:`${eie}${i}`,alt:"",className:r,loading:"lazy",decoding:"async",draggable:!1})}function tie(){const[e,n]=y.useState(()=>typeof document<"u"&&document.documentElement.classList.contains("dark")?"dark":"light");return y.useEffect(()=>{const r=document.documentElement,i=()=>n(r.classList.contains("dark")?"dark":"light");i();const s=new MutationObserver(i);return s.observe(r,{attributes:!0,attributeFilter:["class"]}),()=>s.disconnect()},[]),e}const nie=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}')),l9e=Object.freeze(Object.defineProperty({__proto__:null,default:nie},Symbol.toStringTag,{value:"Module"})),c9e=["editor theme","vscode theme","monaco theme","workbench colors"],NT=new Set,u2="dark-plus",Az=new WeakSet,Oz=nie,u9e={"editor.background":"#0B0C0E","editorGutter.background":"#0B0C0E","editorStickyScroll.background":"#0B0C0E","editorStickyScrollGutter.background":"#0B0C0E","minimap.background":"#0B0C0E","editor.lineHighlightBackground":"#151922","editorWidget.background":"#16181D","editorHoverWidget.background":"#16181D","editorWidget.border":"#363B44","editorHoverWidget.border":"#363B44","editorGroupHeader.tabsBackground":"#0B0C0E"},d9e={base:"vs-dark",inherit:!1,rules:[...iie(Oz.tokenColors??[]),...x9e()],colors:{...sie(Oz.colors??{}),...u9e}};function h9e(){return c9e}function rie(e){var n,r;(r=(n=e==null?void 0:e.editor)==null?void 0:n.defineTheme)==null||r.call(n,u2,d9e)}function f9e(e){!e||typeof e!="object"||Az.has(e)||(Az.add(e),Promise.all([nt(()=>import("./index-CBVI2K3X.js"),[],import.meta.url),nt(()=>import("./index-BNgL5WJH.js"),[],import.meta.url)]).then(async([{shikiToMonaco:n},{createHighlighter:r}])=>{var l,u,d;const i=e.languages,s=new Set(((l=i==null?void 0:i.getLanguages)==null?void 0:l.call(i).map(h=>h.id))??[]);for(const h of["javascript","typescript","json","css","html","markdown","python","yaml","diff"])s.has(h)||((u=i==null?void 0:i.register)==null||u.call(i,{id:h}),s.add(h));const a=await r({themes:["dark-plus"],langs:["javascript","typescript","jsx","tsx","json","css","html","markdown","python","yaml","diff"]});n(a,e),rie(e);const o=e.editor;typeof document<"u"&&document.documentElement.dataset.monacoTheme===u2&&((d=o==null?void 0:o.setTheme)==null||d.call(o,u2))}).catch(n=>{console.error("Failed to initialize Shiki Monaco Dark Plus theme:",n)}))}function p9e(e){var o;const n=m9e(e.text),r=sie(n.colors??{}),i=b9e(n,r),s=((o=n.name)==null?void 0:o.trim())||e.sourceLabel.trim()||"Imported Theme",a=`jait-vscode-${N9e(s)}-${e.id}`;return{id:e.id,name:s,sourceLabel:e.sourceLabel,importedAt:e.importedAt??new Date().toISOString(),colorMode:i,monacoThemeName:a,monacoThemeData:{base:i==="dark"?"vs-dark":"vs",inherit:!0,rules:iie(n.tokenColors??[]),colors:r},cssVariables:v9e(r),rawColors:r,hasInclude:typeof n.include=="string"&&n.include.trim().length>0}}function m9e(e){const n=j9e(C9e(e)),r=JSON.parse(n);if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Theme file must contain a JSON object.");return r}function g9e(e,n){var r;!n||!((r=e==null?void 0:e.editor)!=null&&r.defineTheme)||e.editor.defineTheme(n.monacoThemeName,n.monacoThemeData)}function y9e(e){if(typeof document>"u")return;const n=document.documentElement;n.classList.toggle("dark",e.colorMode==="dark"),n.dataset.monacoTheme=e.monacoThemeName;for(const r of NT)n.style.removeProperty(r);if(NT.clear(),!!e.theme)for(const[r,i]of Object.entries(e.theme.cssVariables))n.style.setProperty(r,i),NT.add(r)}function iie(e){var r;const n=[];for(const i of e){const s=i.settings??{},a=_9e(i.scope);if(a.length===0)continue;const o=Mz(s.foreground),l=Mz(s.background),u=((r=s.fontStyle)==null?void 0:r.trim())||void 0;for(const d of a)n.push({token:d,foreground:o,background:l,fontStyle:u})}return n}function x9e(){return[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"F44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"comment",foreground:"6A9955"},{token:"constant",foreground:"569CD6"},{token:"number",foreground:"B5CEA8"},{token:"regexp",foreground:"D16969"},{token:"string",foreground:"CE9178"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.operator",foreground:"D4D4D4"},{token:"keyword.operator.new",foreground:"C586C0"},{token:"operator",foreground:"D4D4D4"},{token:"type",foreground:"4EC9B0"},{token:"type.identifier",foreground:"4EC9B0"},{token:"class",foreground:"4EC9B0"},{token:"interface",foreground:"4EC9B0"},{token:"enum",foreground:"4EC9B0"},{token:"namespace",foreground:"4EC9B0"},{token:"identifier",foreground:"9CDCFE"},{token:"identifier.function",foreground:"DCDCAA"},{token:"function",foreground:"DCDCAA"},{token:"member",foreground:"DCDCAA"},{token:"method",foreground:"DCDCAA"},{token:"property",foreground:"9CDCFE"},{token:"variable",foreground:"9CDCFE"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"parameter",foreground:"9CDCFE"},{token:"delimiter",foreground:"D4D4D4"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"}]}function v9e(e){const n={},r=si(e,["editor.background","sideBar.background","panel.background"]),i=si(e,["editor.foreground","foreground"]),s=si(e,["sideBar.background","panel.background","editorWidget.background"]),a=si(e,["panel.background","tab.inactiveBackground","editorGroupHeader.tabsBackground"]),o=si(e,["list.hoverBackground","tab.activeBackground","editor.lineHighlightBackground"]),l=si(e,["button.background","focusBorder","textLink.foreground"]),u=si(e,["widget.border","panel.border","sideBar.border","contrastBorder"]);ji(n,"--background",r),ji(n,"--foreground",i),ji(n,"--card",s),ji(n,"--card-foreground",si(e,["sideBar.foreground","foreground"])??i),ji(n,"--popover",si(e,["editorWidget.background","panel.background"])??s),ji(n,"--popover-foreground",si(e,["editorWidget.foreground","foreground"])??i),ji(n,"--primary",l),ji(n,"--primary-foreground",Rz(l)),ji(n,"--secondary",si(e,["tab.inactiveBackground","panel.background"])??a),ji(n,"--secondary-foreground",si(e,["tab.inactiveForeground","foreground"])??i),ji(n,"--muted",a),ji(n,"--muted-foreground",si(e,["descriptionForeground","input.placeholderForeground","disabledForeground"])),ji(n,"--accent",o),ji(n,"--accent-foreground",si(e,["list.activeSelectionForeground","foreground"])??i),ji(n,"--destructive",si(e,["inputValidation.errorBackground","errorForeground","list.errorForeground"])),ji(n,"--destructive-foreground",Rz(si(e,["inputValidation.errorBackground","errorForeground"]))),ji(n,"--border",u),ji(n,"--input",si(e,["input.background","editorWidget.background","dropdown.background"])??u),ji(n,"--ring",si(e,["focusBorder","button.background","textLink.foreground"])??l),ji(n,"--scrollbar-track",si(e,["editor.background","sideBar.background","panel.background"])??r),ji(n,"--scrollbar-thumb",si(e,["scrollbarSlider.background","scrollbar.shadow"])),ji(n,"--scrollbar-thumb-hover",si(e,["scrollbarSlider.hoverBackground","scrollbarSlider.activeBackground","scrollbarSlider.background"])),ji(n,"--toast-bg",si(e,["notifications.background","editorWidget.background","panel.background"])??s,!0),ji(n,"--toast-border",si(e,["notifications.border","widget.border","panel.border"])??u,!0),ji(n,"--toast-success-accent",si(e,["testing.iconPassed","terminal.ansiGreen"])),ji(n,"--toast-info-accent",si(e,["textLink.foreground","focusBorder"])??l),ji(n,"--toast-warning-accent",si(e,["editorWarning.foreground","terminal.ansiYellow"])),ji(n,"--toast-error-accent",si(e,["editorError.foreground","terminal.ansiRed"]));const d=si(e,["editorGroupHeader.tabsBackground","tab.inactiveBackground","sideBar.background"]);d&&(n["--tab-bg"]=d);const h=si(e,["activityBarBadge.background","button.background","focusBorder"]),f=si(e,["textLink.foreground","terminal.ansiBlue"]),m=si(e,["editorWarning.foreground","terminal.ansiYellow"]),x=si(e,["terminal.ansiMagenta","badge.background"]);return h&&(n["--ctx-system"]=h),f&&(n["--ctx-history"]=f),m&&(n["--ctx-tool-results"]=m),x&&(n["--ctx-tools"]=x),n}function ji(e,n,r,i=!1){if(!r)return;const s=w9e(r,i);s&&(e[n]=s)}function Rz(e){const n=P9(e);return n?(.2126*n.r+.7152*n.g+.0722*n.b)/255>.55?"0 0% 7%":"0 0% 100%":null}function b9e(e,n){if(e.type==="light"||e.type==="hc-light")return"light";if(e.type==="dark"||e.type==="hc-dark")return"dark";const r=P9(n["editor.background"]??n["sideBar.background"]??"");return r&&(.2126*r.r+.7152*r.g+.0722*r.b)/255>.55?"light":"dark"}function sie(e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"&&i.trim()&&(n[r]=i.trim());return n}function _9e(e){return Array.isArray(e)?e.flatMap(n=>n.split(",")).map(n=>n.trim()).filter(Boolean):typeof e!="string"?[]:e.split(",").map(n=>n.trim()).filter(Boolean)}function Mz(e){if(!e)return;const n=e.trim();if(n.startsWith("#"))return aie(n).slice(1)}function si(e,n){for(const r of n){const i=e[r];if(typeof i=="string"&&i.trim())return i.trim()}return null}function w9e(e,n=!1){const r=P9(e);if(!r)return null;const i=r.r/255,s=r.g/255,a=r.b/255,o=Math.max(i,s,a),l=Math.min(i,s,a),u=o-l,d=(o+l)/2;let h=0;u!==0&&(o===i?h=(s-a)/u%6:o===s?h=(a-i)/u+2:h=(i-s)/u+4,h*=60),h<0&&(h+=360);const f=u===0?0:u/(1-Math.abs(2*d-1)),m=`${Math.round(h)} ${Math.round(f*100)}% ${Math.round(d*100)}%`;return n&&r.a<1?`${m} / ${Number(r.a.toFixed(3))}`:m}function P9(e){if(!e)return null;const n=e.trim();if(!n)return null;if(n.startsWith("#"))return S9e(n);const r=n.match(/^rgba?\(([^)]+)\)$/i);if(!r)return null;const i=r[1].split(",").map(u=>u.trim());if(i.length<3)return null;const s=TT(i[0]),a=TT(i[1]),o=TT(i[2]),l=i[3]==null?1:k9e(i[3]);return s==null||a==null||o==null||l==null?null:{r:s,g:a,b:o,a:l}}function S9e(e){const n=aie(e).slice(1);return n.length===6?{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16),a:1}:n.length===8?{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16),a:Number.parseInt(n.slice(6,8),16)/255}:null}function TT(e){if(e.endsWith("%")){const r=Number.parseFloat(e.slice(0,-1));return Number.isFinite(r)?Pz(Math.round(r/100*255)):null}const n=Number.parseFloat(e);return Number.isFinite(n)?Pz(Math.round(n)):null}function k9e(e){const n=Number.parseFloat(e);return Number.isFinite(n)?Math.max(0,Math.min(1,n)):null}function Pz(e){return Math.max(0,Math.min(255,e))}function aie(e){const n=e.trim().slice(1);return n.length===3||n.length===4?`#${n.split("").map(r=>`${r}${r}`).join("").toLowerCase()}`:`#${n.toLowerCase()}`}function C9e(e){let n="",r=!1,i=!1,s=!1,a=!1;for(let o=0;o<e.length;o+=1){const l=e[o],u=e[o+1];if(i){l===`
1126
+ */let lO=!1;const QMe=.1,e9e=20;function CT(e){return Math.min(e9e,Math.max(QMe,e))}function wz(e,n,r,i){if(e===n)return r;const s=n/e;return{x:i.x-(i.x-r.x)*s,y:i.y-(i.y-r.y)*s}}function Sz(e){oO.initialize({startOnLoad:!1,theme:e==="dark"?"dark":"default",securityLevel:"strict",fontFamily:"ui-sans-serif, system-ui, -apple-system, sans-serif",flowchart:{htmlLabels:!0,curve:"basis"},themeVariables:e==="dark"?{primaryColor:"#1e293b",primaryTextColor:"#e2e8f0",primaryBorderColor:"#475569",lineColor:"#64748b",secondaryColor:"#334155",tertiaryColor:"#1e293b",background:"#0f172a",mainBkg:"#1e293b",nodeBorder:"#475569",clusterBkg:"#1e293b",clusterBorder:"#334155",titleColor:"#e2e8f0",edgeLabelBackground:"#1e293b"}:{}}),lO=!0}function cO({diagram:e,isGenerating:n,onRegenerate:r,onGenerate:i,theme:s="dark",onRenderResult:a}){const o=y.useRef(null),l=y.useRef(null),[u,d]=y.useState(null),[h,f]=y.useState(!1),[m,x]=y.useState(1),[v,_]=y.useState({x:0,y:0}),w=y.useRef(0),S=y.useRef(new Map),C=y.useRef(null),j=y.useRef(null),T=y.useCallback(async D=>{if(!o.current)return;const O=++w.current;try{if(lO||Sz(s),!await oO.parse(D)||O!==w.current)return;const{svg:M}=await oO.render(`arch-${O}`,D);if(O!==w.current)return;o.current.innerHTML=M;const P=o.current.querySelector("svg"),F=l.current;if(P&&F){const G=F.clientWidth,W=F.clientHeight,V=P.width.baseVal.value||P.getBoundingClientRect().width,J=P.height.baseVal.value||P.getBoundingClientRect().height;if(V>0&&J>0&&G>0&&W>0){const Q=Math.min((G-32)/V,(W-32)/J);x(CT(Q))}else x(1)}else x(1);_({x:0,y:0}),d(null),a==null||a({ok:!0})}catch(I){if(O!==w.current)return;const M=I instanceof Error?I.message:"Failed to render diagram";d(M),a==null||a({ok:!1,error:M})}},[a,s]);y.useEffect(()=>{Sz(s),lO=!0,e&&T(e)},[s,e,T]),y.useEffect(()=>{e&&T(e)},[e,T]);const E=y.useCallback(()=>{e&&navigator.clipboard.writeText(e).then(()=>{f(!0),setTimeout(()=>f(!1),2e3)})},[e]),N=y.useCallback(()=>{if(!o.current)return;const D=o.current.querySelector("svg");if(!D)return;const O=new XMLSerializer().serializeToString(D),I=new Blob([O],{type:"image/svg+xml"}),M=URL.createObjectURL(I),P=document.createElement("a");P.href=M,P.download="architecture.svg",P.click(),URL.revokeObjectURL(M)},[]),R=y.useCallback((D,O)=>{var M;const I=(M=l.current)==null?void 0:M.getBoundingClientRect();return I?{x:D-I.left-I.width/2,y:O-I.top-I.height/2}:null},[]),$=y.useCallback((D,O)=>{x(I=>{const M=CT(D);return M===I?I:(_(P=>O?wz(I,M,P,O):P),M)})},[]),q=y.useCallback(D=>{const O=R(D.clientX,D.clientY);if(!O)return;D.preventDefault();const I=D.deltaY<0?1.1:.9;$(m*I,O)},[R,$,m]),z=y.useCallback(D=>{const O={x:D.clientX,y:D.clientY};if(S.current.set(D.pointerId,O),D.currentTarget.setPointerCapture(D.pointerId),S.current.size===1){C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY},j.current=null;return}if(S.current.size===2){const[I,M]=[...S.current.values()],P=Math.hypot(M.x-I.x,M.y-I.y);j.current={distance:P,scale:m,pan:v},C.current=null}},[v,m]),B=y.useCallback(D=>{var I;if(!S.current.has(D.pointerId))return;const O=S.current.get(D.pointerId);if(S.current.set(D.pointerId,{x:D.clientX,y:D.clientY}),S.current.size===1&&((I=C.current)==null?void 0:I.pointerId)===D.pointerId){const M=D.clientX-O.x,P=D.clientY-O.y;_(F=>({x:F.x+M,y:F.y+P})),C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY};return}if(S.current.size===2&&j.current){const[M,P]=[...S.current.values()],F={x:(M.x+P.x)/2,y:(M.y+P.y)/2},G=R(F.x,F.y),W=Math.hypot(P.x-M.x,P.y-M.y);if(!G||j.current.distance<=0)return;const V=CT(j.current.scale*(W/j.current.distance)),J=wz(j.current.scale,V,j.current.pan,G);x(V),_(J)}},[R]),H=y.useCallback(D=>{var O;if(S.current.delete(D.pointerId),((O=C.current)==null?void 0:O.pointerId)===D.pointerId&&(C.current=null),S.current.size<2&&(j.current=null),S.current.size===1){const[I,M]=[...S.current.entries()][0]??[];typeof I=="number"&&M&&(C.current={pointerId:I,x:M.x,y:M.y})}},[]);return!e&&!n?c.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground gap-4 px-8",children:[c.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Software Architecture"}),c.jsx("p",{className:"text-xs max-w-sm",children:"Generate a visual architecture diagram of your project. The AI will analyze your project structure, dependencies, and code organization to create a Mermaid diagram."})]}),i&&c.jsxs("button",{onClick:i,className:"flex items-center gap-2 px-4 py-2 text-sm rounded-lg border bg-background hover:bg-accent hover:text-accent-foreground transition-colors",children:[c.jsx(U_,{className:"h-3.5 w-3.5"}),"Generate Architecture Diagram"]})]}):c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-1 px-2 h-8 border-b bg-muted/20 shrink-0",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground mr-auto",children:"Architecture"}),c.jsx("button",{onClick:()=>$(m-.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom out",children:c.jsx(vve,{className:"h-3 w-3"})}),c.jsxs("span",{className:"text-2xs text-muted-foreground min-w-[3ch] text-center",children:[Math.round(m*100),"%"]}),c.jsx("button",{onClick:()=>$(m+.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom in",children:c.jsx(yve,{className:"h-3 w-3"})}),c.jsx("button",{onClick:()=>{x(1),_({x:0,y:0})},className:"p-1 rounded hover:bg-muted transition-colors",title:"Reset zoom",children:c.jsx(tM,{className:"h-3 w-3"})}),c.jsx("div",{className:"w-px h-4 bg-border mx-1"}),e&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:E,className:"p-1 rounded hover:bg-muted transition-colors",title:"Copy Mermaid source",children:h?c.jsx(Qi,{className:"h-3 w-3 text-green-500"}):c.jsx(nl,{className:"h-3 w-3"})}),c.jsx("button",{onClick:N,className:"p-1 rounded hover:bg-muted transition-colors",title:"Download SVG",children:c.jsx(zf,{className:"h-3 w-3"})})]}),r&&c.jsx("button",{onClick:r,className:"p-1 rounded hover:bg-muted transition-colors",title:"Regenerate diagram",disabled:n,children:c.jsx(ks,{className:`h-3 w-3 ${n?"animate-spin":""}`})})]}),c.jsxs("div",{ref:l,className:"flex-1 overflow-hidden relative touch-none",onWheel:q,onPointerDown:z,onPointerMove:B,onPointerUp:H,onPointerCancel:H,onPointerLeave:H,style:{cursor:S.current.size>0?"grabbing":"grab"},children:[n&&!e&&c.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground gap-3",children:[c.jsx($t,{className:"h-6 w-6 animate-spin"}),c.jsx("span",{className:"text-xs",children:"Analyzing project architecture…"})]}),n&&e&&c.jsxs("div",{className:"absolute top-2 right-2 z-10 flex items-center gap-1.5 px-2 py-1 rounded bg-background/80 border text-xs text-muted-foreground",children:[c.jsx($t,{className:"h-3 w-3 animate-spin"}),"Regenerating…"]}),u&&c.jsxs("div",{className:"p-4 text-xs text-destructive bg-destructive/10 rounded m-2",children:[c.jsx("p",{className:"font-medium mb-1",children:"Render error"}),c.jsx("pre",{className:"whitespace-pre-wrap",children:u}),e&&c.jsxs("details",{className:"mt-2",children:[c.jsx("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground",children:"View source"}),c.jsx("pre",{className:"mt-1 p-2 bg-muted rounded text-2xs whitespace-pre-wrap",children:e})]})]}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center p-4",style:{transform:`translate(${v.x}px, ${v.y}px) scale(${m})`,transformOrigin:"center center"},children:c.jsx("div",{ref:o,className:"flex items-center justify-center"})})]})]})}const jc=y.forwardRef(({className:e,children:n,...r},i)=>c.jsx("div",{ref:i,className:ke("relative overflow-auto",e),...r,children:n}));jc.displayName="ScrollArea";const t9e=y.forwardRef(({className:e,orientation:n="vertical",...r},i)=>c.jsx("div",{ref:i,"data-orientation":n,className:ke("hidden",e),...r}));t9e.displayName="ScrollBar";const Mh=y.forwardRef(({className:e,...n},r)=>c.jsx("textarea",{className:ke("flex min-h-[72px] w-full rounded-lg border border-input bg-background/90 px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Mh.displayName="Textarea";var jT={},eb={},kz;function n9e(){return kz||(kz=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.FileExtensions1ToIcon=void 0,eb.FileExtensions1ToIcon={accdb:"file_type_access.svg",accdt:"file_type_access.svg",mdb:"file_type_access.svg",accda:"file_type_access.svg",accdc:"file_type_access.svg",accde:"file_type_access.svg",accdp:"file_type_access.svg",accdr:"file_type_access.svg",accdu:"file_type_access.svg",ade:"file_type_access.svg",adp:"file_type_access.svg",laccdb:"file_type_access.svg",ldb:"file_type_access.svg",mam:"file_type_access.svg",maq:"file_type_access.svg",mdw:"file_type_access.svg",afdesign:"file_type_affinitydesigner.svg",affinitydesigner:"file_type_affinitydesigner.svg",afphoto:"file_type_affinityphoto.svg",affinityphoto:"file_type_affinityphoto.svg",afpub:"file_type_affinitypublisher.svg",affinitypublisher:"file_type_affinitypublisher.svg",ai:"file_type_ai.svg",ino:"file_type_arduino.svg",pde:"file_type_arduino.svg",aspx:"file_type_aspx.svg",ascx:"file_type_aspx.svg",astro:"file_type_astro.svg",aac:"file_type_audio.svg",act:"file_type_audio.svg",aiff:"file_type_audio.svg",amr:"file_type_audio.svg",ape:"file_type_audio.svg",au:"file_type_audio.svg",dct:"file_type_audio.svg",dss:"file_type_audio.svg",dvf:"file_type_audio.svg",flac:"file_type_audio.svg",gsm:"file_type_audio.svg",iklax:"file_type_audio.svg",ivs:"file_type_audio.svg",m4a:"file_type_audio.svg",m4b:"file_type_audio.svg",m4p:"file_type_audio.svg",mmf:"file_type_audio.svg",mogg:"file_type_audio.svg",mp3:"file_type_audio.svg",mpc:"file_type_audio.svg",msv:"file_type_audio.svg",oga:"file_type_audio.svg",ogg:"file_type_audio.svg",opus:"file_type_audio.svg",ra:"file_type_audio.svg",raw:"file_type_audio.svg",tta:"file_type_audio.svg",vox:"file_type_audio.svg",wav:"file_type_audio.svg",wma:"file_type_audio.svg",avif:"file_type_avif.svg",awk:"file_type_awk.svg",a:"file_type_binary.svg",app:"file_type_binary.svg",bin:"file_type_binary.svg",cmo:"file_type_binary.svg",cmx:"file_type_binary.svg",cma:"file_type_binary.svg",cmxa:"file_type_binary.svg",cmi:"file_type_binary.svg",dll:"file_type_binary.svg",exe:"file_type_binary.svg",hl:"file_type_binary.svg",ilk:"file_type_binary.svg",lib:"file_type_binary.svg",n:"file_type_binary.svg",ndll:"file_type_binary.svg",o:"file_type_binary.svg",obj:"file_type_binary.svg",pyc:"file_type_binary.svg",pyd:"file_type_binary.svg",pyo:"file_type_binary.svg",pdb:"file_type_binary.svg",scpt:"file_type_binary.svg",scptd:"file_type_binary.svg",so:"file_type_binary.svg",bb:"file_type_blitzbasic.svg",gemfile:"file_type_bundler.svg",cake:"file_type_cake.svg",csr:"file_type_cert.svg",crt:"file_type_cert.svg",cer:"file_type_cert.svg",der:"file_type_cert.svg",pfx:"file_type_cert.svg",p12:"file_type_cert.svg",p7b:"file_type_cert.svg",p7r:"file_type_cert.svg",src:"file_type_cert.svg",crl:"file_type_cert.svg",sst:"file_type_cert.svg",stl:"file_type_cert.svg",lucee:"file_type_cf.svg",h:"file_type_cheader.svg",class:"file_type_class.svg",cjm:"file_type_clojure.svg",cljc:"file_type_clojure.svg",cljs:"file_type_clojurescript.svg",kit:"file_type_codekit.svg",plist:"file_type_light_config.svg",hpp:"file_type_cppheader.svg",hh:"file_type_cppheader.svg",hxx:"file_type_cppheader.svg","h++":"file_type_cppheader.svg",csx:"file_type_csharp.svg",csproj:"file_type_csproj.svg",db:"file_type_light_db.svg",djt:"file_type_django.svg",eco:"file_type_light_docpad.svg",drawio:"file_type_drawio.svg",dio:"file_type_drawio.svg",ejs:"file_type_ejs.svg",el:"file_type_emacs.svg",elc:"file_type_emacs.svg",ensime:"file_type_ensime.svg",eps:"file_type_eps.svg",xls:"file_type_excel.svg",xlsx:"file_type_excel.svg",xlsm:"file_type_excel.svg",ods:"file_type_excel.svg",fods:"file_type_excel.svg",xlsb:"file_type_excel.svg",fbx:"file_type_fbx.svg",fla:"file_type_light_fla.svg",swf:"file_type_flash.svg",swc:"file_type_flash.svg",woff:"file_type_light_font.svg",woff2:"file_type_light_font.svg",ttf:"file_type_light_font.svg",otf:"file_type_light_font.svg",eot:"file_type_light_font.svg",pfa:"file_type_light_font.svg",pfb:"file_type_light_font.svg",sfd:"file_type_light_font.svg",fsproj:"file_type_fsproj.svg",gmx:"file_type_gamemaker.svg",yy:"file_type_light_gamemaker2.svg",yyp:"file_type_light_gamemaker2.svg",gradle:"file_type_light_gradle.svg",hxproj:"file_type_haxedevelop.svg",idr:"file_type_idris.svg",lidr:"file_type_idris.svg",ibc:"file_type_idrisbin.svg",ipkg:"file_type_idrispkg.svg",jpeg:"file_type_image.svg",jpg:"file_type_image.svg",gif:"file_type_image.svg",png:"file_type_image.svg",bmp:"file_type_image.svg",tiff:"file_type_image.svg",ico:"file_type_image.svg",imba:"file_type_imba.svg",imba2:"file_type_imba.svg",inc:"file_type_inc.svg",include:"file_type_inc.svg",infopathxml:"file_type_infopath.svg",xsn:"file_type_infopath.svg",xsf:"file_type_infopath.svg",xtp2:"file_type_infopath.svg",jar:"file_type_jar.svg",jbuilder:"file_type_jbuilder.svg",json5:"file_type_light_json5.svg",jsonld:"file_type_light_jsonld.svg","json-ld":"file_type_light_jsonld.svg",jsp:"file_type_jsp.svg",jss:"file_type_jss.svg",ipynb:"file_type_jupyter.svg",key:"file_type_key.svg",pem:"file_type_key.svg",master:"file_type_layout.svg",enc:"file_type_license.svg",hxp:"file_type_lime.svg",liquid:"file_type_liquid.svg",ls:"file_type_livescript.svg",lnk:"file_type_lnk.svg",log:"file_type_log.svg",tlg:"file_type_log.svg",crec:"file_type_lync.svg",ocrec:"file_type_lync.svg",makefile:"file_type_makefile.svg",map:"file_type_map.svg",mdown:"file_type_markdown.svg",markdown:"file_type_markdown.svg",fig:"file_type_matlab.svg",mex:"file_type_matlab.svg",mexn:"file_type_matlab.svg",mexrs6:"file_type_matlab.svg",mn:"file_type_matlab.svg",mum:"file_type_matlab.svg",mx:"file_type_matlab.svg",mx3:"file_type_matlab.svg",rwd:"file_type_matlab.svg",slx:"file_type_matlab.svg",slddc:"file_type_matlab.svg",smv:"file_type_matlab.svg",xvc:"file_type_matlab.svg",mustache:"file_type_light_mustache.svg",mst:"file_type_light_mustache.svg",njsproj:"file_type_njsproj.svg",nupkg:"file_type_nuget.svg",snupkg:"file_type_nuget.svg",nuspec:"file_type_nuget.svg",psmdcp:"file_type_nuget.svg",npy:"file_type_numpy.svg",npz:"file_type_numpy.svg",nunj:"file_type_nunjucks.svg",njs:"file_type_nunjucks.svg",one:"file_type_onenote.svg",onepkg:"file_type_onenote.svg",onetoc:"file_type_onenote.svg",onetoc2:"file_type_onenote.svg",sig:"file_type_onenote.svg",cl:"file_type_opencl.svg",opencl:"file_type_opencl.svg",org:"file_type_org.svg",pst:"file_type_outlook.svg",bcmx:"file_type_outlook.svg",otm:"file_type_outlook.svg",msg:"file_type_outlook.svg",oft:"file_type_outlook.svg",ovpn:"file_type_ovpn.svg",pkg:"file_type_package.svg",patch:"file_type_patch.svg",pcd:"file_type_light_pcl.svg",pdf:"file_type_pdf.svg",psd:"file_type_photoshop.svg",php1:"file_type_php.svg",php2:"file_type_php.svg",php3:"file_type_php.svg",php4:"file_type_php.svg",php5:"file_type_php.svg",php6:"file_type_php.svg",phps:"file_type_php.svg",phpsa:"file_type_php.svg",phpt:"file_type_php.svg",phtml:"file_type_php.svg",phar:"file_type_php.svg",pipeline:"file_type_pipeline.svg",pu:"file_type_plantuml.svg",plantuml:"file_type_plantuml.svg",iuml:"file_type_plantuml.svg",puml:"file_type_plantuml.svg",pck:"file_type_plsql_package.svg",pkb:"file_type_plsql_package_body.svg",pkh:"file_type_plsql_package_header.svg",pks:"file_type_plsql_package_spec.svg",po:"file_type_poedit.svg",mo:"file_type_poedit.svg",pot:"file_type_powerpoint.svg",potx:"file_type_powerpoint.svg",potm:"file_type_powerpoint.svg",pps:"file_type_powerpoint.svg",ppsx:"file_type_powerpoint.svg",ppsm:"file_type_powerpoint.svg",ppt:"file_type_powerpoint.svg",pptx:"file_type_powerpoint.svg",pptm:"file_type_powerpoint.svg",pa:"file_type_powerpoint.svg",ppa:"file_type_powerpoint.svg",ppam:"file_type_powerpoint.svg",sldm:"file_type_powerpoint.svg",sldx:"file_type_powerpoint.svg",psd1:"file_type_powershell_psd.svg",psm1:"file_type_powershell_psm.svg",pro:"file_type_prolog.svg",P:"file_type_prolog.svg",pub:"file_type_publisher.svg",puz:"file_type_publisher.svg",q:"file_type_q.svg",qbs:"file_type_qbs.svg",qvd:"file_type_qlikview.svg",qvw:"file_type_qlikview.svg",rake:"file_type_rake.svg",rt:"file_type_reacttemplate.svg",reg:"file_type_registry.svg",rego:"file_type_rego.svg",rproj:"file_type_rproj.svg",sls:"file_type_saltstack.svg",sass:"file_type_sass.svg",scssm:"file_type_scss.svg",unity:"file_type_light_shaderlab.svg",fish:"file_type_shell.svg",sketch:"file_type_sketch.svg",eskip:"file_type_skipper.svg",sln:"file_type_sln.svg",spe:"file_type_spacengine.svg",sqlite:"file_type_sqlite.svg",sqlite3:"file_type_sqlite.svg",db3:"file_type_sqlite.svg",sss:"file_type_sss.svg",dta:"file_type_stata.svg",storyboard:"file_type_storyboard.svg",svg:"file_type_svg.svg",tcl:"file_type_tcl.svg",exp:"file_type_tcl.svg",tfstate:"file_type_terraform.svg",tst:"file_type_test.svg",texi:"file_type_light_tex.svg",tikz:"file_type_light_tex.svg",csv:"file_type_text.svg",tsv:"file_type_text.svg",todo:"file_type_light_todo.svg",tt2:"file_type_tt.svg",vala:"file_type_vala.svg",vapi:"file_type_vapi.svg",vash:"file_type_light_vash.svg",vbhtml:"file_type_vbhtml.svg",vbproj:"file_type_vbproj.svg",vcxproj:"file_type_vcxproj.svg","3g2":"file_type_video.svg","3gp":"file_type_video.svg",asf:"file_type_video.svg",amv:"file_type_video.svg",avi:"file_type_video.svg",divx:"file_type_video.svg",qt:"file_type_video.svg",f4a:"file_type_video.svg",f4b:"file_type_video.svg",f4p:"file_type_video.svg",f4v:"file_type_video.svg",flv:"file_type_video.svg",m2v:"file_type_video.svg",m4v:"file_type_video.svg",mkv:"file_type_video.svg",mk3d:"file_type_video.svg",mov:"file_type_video.svg",mp2:"file_type_video.svg",mp4:"file_type_video.svg",mpe:"file_type_video.svg",mpeg:"file_type_video.svg",mpeg2:"file_type_video.svg",mpg:"file_type_video.svg",mpv:"file_type_video.svg",nsv:"file_type_video.svg",ogv:"file_type_video.svg",rm:"file_type_video.svg",rmvb:"file_type_video.svg",svi:"file_type_video.svg",vob:"file_type_video.svg",webm:"file_type_video.svg",wmv:"file_type_video.svg",vsix:"file_type_light_vsix.svg",vsixmanifest:"file_type_light_vsixmanifest.svg",wasm:"file_type_wasm.svg",webp:"file_type_webp.svg",doc:"file_type_word.svg",docx:"file_type_word.svg",docm:"file_type_word.svg",dot:"file_type_word.svg",dotx:"file_type_word.svg",dotm:"file_type_word.svg",wll:"file_type_word.svg",wxml:"file_type_wxml.svg",wxss:"file_type_wxss.svg",xcodeproj:"file_type_xcode.svg",xfl:"file_type_light_xfl.svg",xib:"file_type_xib.svg",xliff:"file_type_xliff.svg",xlf:"file_type_xliff.svg",pex:"file_type_xml.svg",tmlanguage:"file_type_xml.svg",zip:"file_type_zip.svg",rar:"file_type_zip.svg","7z":"file_type_zip.svg",tar:"file_type_zip.svg",tgz:"file_type_zip.svg",bz:"file_type_zip.svg",gz:"file_type_zip.svg",bzip2:"file_type_zip.svg",xz:"file_type_zip.svg",bz2:"file_type_zip.svg",zipx:"file_type_zip.svg"}),eb}var tb={},Cz;function r9e(){return Cz||(Cz=1,Object.defineProperty(tb,"__esModule",{value:!0}),tb.FileExtensions2ToIcon=void 0,tb.FileExtensions2ToIcon={"gemfile.lock":"file_type_bundler.svg","css.map":"file_type_cssmap.svg","drawio.png":"file_type_drawio.svg","drawio.svg":"file_type_drawio.svg","js.flow":"file_type_flow.svg","ejs.t":"file_type_hygen.svg","js.snap":"file_type_jest_snapshot.svg","jsx.snap":"file_type_jest_snapshot.svg","ts.snap":"file_type_jest_snapshot.svg","tsx.snap":"file_type_jest_snapshot.svg","js.map":"file_type_light_jsmap.svg","layout.html":"file_type_layout.svg","layout.htm":"file_type_layout.svg","marko.js":"file_type_markojs.svg","format.ps1xml":"file_type_powershell_format.svg","types.ps1xml":"file_type_powershell_types.svg","story.js":"file_type_storybook.svg","story.jsx":"file_type_storybook.svg","story.ts":"file_type_storybook.svg","story.tsx":"file_type_storybook.svg","story.mdx":"file_type_storybook.svg","stories.js":"file_type_storybook.svg","stories.jsx":"file_type_storybook.svg","stories.ts":"file_type_storybook.svg","stories.tsx":"file_type_storybook.svg","stories.mdx":"file_type_storybook.svg","test.js":"file_type_light_testjs.svg","test.jsx":"file_type_light_testjs.svg","test.mjs":"file_type_light_testjs.svg","spec.js":"file_type_light_testjs.svg","spec.jsx":"file_type_light_testjs.svg","spec.mjs":"file_type_light_testjs.svg","test.ts":"file_type_testts.svg","test.tsx":"file_type_testts.svg","spec.ts":"file_type_testts.svg","spec.tsx":"file_type_testts.svg","e2e-test.ts":"file_type_testts.svg","e2e-test.tsx":"file_type_testts.svg","e2e-spec.ts":"file_type_testts.svg","e2e-spec.tsx":"file_type_testts.svg","d.ts":"file_type_typescriptdef.svg"}),tb}var nb={},jz;function i9e(){return jz||(jz=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.FileNamesToIcon=void 0,nb.FileNamesToIcon={".angular-cli.json":"file_type_angular.svg","angular-cli.json":"file_type_angular.svg","angular.json":"file_type_angular.svg",".angular.json":"file_type_angular.svg","api-extractor.json":"file_type_api_extractor.svg","api-extractor-base.json":"file_type_api_extractor.svg",".appsemblerc.yaml":"file_type_appsemble.svg","app-definition.yaml":"file_type_appsemble.svg","appveyor.yml":"file_type_appveyor.svg",".appveyor.yml":"file_type_appveyor.svg","astro.config.js":"file_type_astroconfig.svg","astro.config.cjs":"file_type_astroconfig.svg","astro.config.mjs":"file_type_astroconfig.svg","aurelia.json":"file_type_aurelia.svg","azure-pipelines.yml":"file_type_azurepipelines.svg",".vsts-ci.yml":"file_type_azurepipelines.svg",".babelrc":"file_type_light_babel.svg",".babelignore":"file_type_light_babel.svg",".babelrc.js":"file_type_light_babel.svg",".babelrc.cjs":"file_type_light_babel.svg",".babelrc.mjs":"file_type_light_babel.svg",".babelrc.json":"file_type_light_babel.svg","babel.config.js":"file_type_light_babel.svg","babel.config.cjs":"file_type_light_babel.svg","babel.config.mjs":"file_type_light_babel.svg","babel.config.json":"file_type_light_babel.svg",".bzrignore":"file_type_bazaar.svg","BUILD.bazel":"file_type_bazel.svg",".bazelrc":"file_type_bazel.svg","bazel.rc":"file_type_bazel.svg","bazel.bazelrc":"file_type_bazel.svg","bitbucket-pipelines.yml":"file_type_bitbucketpipeline.svg",".bithoundrc":"file_type_bithound.svg",".bowerrc":"file_type_bower.svg","bower.json":"file_type_bower.svg",".browserslistrc":"file_type_browserslist.svg",browserslist:"file_type_browserslist.svg",".buckconfig":"file_type_buckbuild.svg",gemfile:"file_type_bundler.svg","gemfile.lock":"file_type_bundler.svg","capacitor.config.json":"file_type_capacitor.svg","cargo.toml":"file_type_cargo.svg","cargo.lock":"file_type_cargo.svg",chefignore:"file_type_chef.svg",berksfile:"file_type_chef.svg","berksfile.lock":"file_type_chef.svg","policyfile.rb":"file_type_chef.svg","policyfile.lock.json":"file_type_chef.svg","circle.yml":"file_type_light_circleci.svg",".cfignore":"file_type_light_cloudfoundry.svg",".codacy.yml":"file_type_light_codacy.svg",".codacy.yaml":"file_type_light_codacy.svg",".codeclimate.yml":"file_type_light_codeclimate.svg","codecov.yml":"file_type_codecov.svg",".codecov.yml":"file_type_codecov.svg","config.codekit":"file_type_codekit.svg","config.codekit2":"file_type_codekit.svg","config.codekit3":"file_type_codekit.svg",".config.codekit":"file_type_codekit.svg",".config.codekit2":"file_type_codekit.svg",".config.codekit3":"file_type_codekit.svg","coffeelint.json":"file_type_coffeelint.svg",".coffeelintignore":"file_type_coffeelint.svg","commitlint.config.js":"file_type_commitlint.svg",".commitlintrc.js":"file_type_commitlint.svg",".commitlintrc.json":"file_type_commitlint.svg",".commitlintrc.yml":"file_type_commitlint.svg","composer.json":"file_type_composer.svg","composer.lock":"file_type_composer.svg","conanfile.txt":"file_type_conan.svg","conanfile.py":"file_type_conan.svg",".condarc":"file_type_conda.svg",".coveralls.yml":"file_type_coveralls.svg","crowdin.yml":"file_type_crowdin.svg",".csscomb.json":"file_type_csscomb.svg",".csslintrc":"file_type_csslint.svg",".cvsignore":"file_type_cvs.svg","cypress.json":"file_type_cypress.svg","cypress.env.json":"file_type_cypress.svg",".boringignore":"file_type_darcs.svg","dependabot.yml":"file_type_dependabot.svg","dependencies.yml":"file_type_dependencies.svg","devcontainer.json":"file_type_devcontainer.svg",".devcontainer.json":"file_type_devcontainer.svg","compose.yaml":"file_type_docker.svg","compose.yml":"file_type_docker.svg","docker-compose.yaml":"file_type_docker.svg","docker-compose.yml":"file_type_docker.svg","docker-compose.ci-build.yaml":"file_type_docker.svg","docker-compose.ci-build.yml":"file_type_docker.svg","docker-compose.override.yaml":"file_type_docker.svg","docker-compose.override.yml":"file_type_docker.svg","docker-compose.vs.debug.yaml":"file_type_docker.svg","docker-compose.vs.debug.yml":"file_type_docker.svg","docker-compose.vs.release.yaml":"file_type_docker.svg","docker-compose.vs.release.yml":"file_type_docker.svg","docker-cloud.yaml":"file_type_docker.svg","docker-cloud.yml":"file_type_docker.svg","docker-compose.test.yml":"file_type_dockertest.svg",".doczrc":"file_type_docz.svg","docz.js":"file_type_docz.svg","docz.json":"file_type_docz.svg",".docz.js":"file_type_docz.svg",".docz.json":"file_type_docz.svg","doczrc.js":"file_type_docz.svg","doczrc.json":"file_type_docz.svg","docz.config.js":"file_type_docz.svg","docz.config.json":"file_type_docz.svg",".dojorc":"file_type_dojo.svg",".drone.yml":"file_type_light_drone.svg",".drone.yml.sig":"file_type_light_drone.svg",".dvc":"file_type_dvc.svg",".editorconfig":"file_type_editorconfig.svg","elm-package.json":"file_type_elm.svg",".ember-cli":"file_type_ember.svg",emakefile:"file_type_erlang.svg",".emakerfile":"file_type_erlang.svg",".eslintrc":"file_type_eslint.svg",".eslintignore":"file_type_eslint.svg",".eslintcache":"file_type_eslint.svg",".eslintrc.js":"file_type_eslint.svg",".eslintrc.mjs":"file_type_eslint.svg",".eslintrc.cjs":"file_type_eslint.svg",".eslintrc.json":"file_type_eslint.svg",".eslintrc.yaml":"file_type_eslint.svg",".eslintrc.yml":"file_type_eslint.svg","app.json":"file_type_light_expo.svg","app.config.js":"file_type_light_expo.svg","app.config.json":"file_type_light_expo.svg","app.config.json5":"file_type_light_expo.svg",".faunarc":"file_type_fauna.svg","favicon.ico":"file_type_favicon.svg",".firebaserc":"file_type_firebase.svg","firebase.json":"file_type_light_firebasehosting.svg","firestore.rules":"file_type_firestore.svg","firestore.indexes.json":"file_type_firestore.svg",".flooignore":"file_type_floobits.svg",".flowconfig":"file_type_flow.svg",".flutter-plugins":"file_type_flutter.svg",".metadata":"file_type_flutter.svg","pubspec.lock":"file_type_flutter_package.svg","pubspec.yaml":"file_type_flutter_package.svg",".packages":"file_type_flutter_package.svg",".fossaignore":"file_type_fossa.svg","ignore-glob":"file_type_fossil.svg","fuse.js":"file_type_fusebox.svg","gatsby-config.js":"file_type_gatsby.svg","gatsby-config.ts":"file_type_gatsby.svg","gatsby-node.js":"file_type_gatsby.svg","gatsby-node.ts":"file_type_gatsby.svg","gatsby-browser.js":"file_type_gatsby.svg","gatsby-browser.ts":"file_type_gatsby.svg","gatsby-ssr.js":"file_type_gatsby.svg","gatsby-ssr.ts":"file_type_gatsby.svg",".gitattributes":"file_type_git.svg",".gitconfig":"file_type_git.svg",".gitignore":"file_type_git.svg",".gitmodules":"file_type_git.svg",".gitkeep":"file_type_git.svg",".mailmap":"file_type_git.svg",".gitlab-ci.yml":"file_type_gitlab.svg",".gitpod.yaml":"file_type_gitpod.svg",".gitpod.yml":"file_type_gitpod.svg","gitpod.yaml":"file_type_gitpod.svg","gitpod.yml":"file_type_gitpod.svg","glide.yml":"file_type_glide.svg",".glitterrc":"file_type_glitter.svg","go.sum":"file_type_go_package.svg","go.mod":"file_type_go_package.svg",".gqlconfig":"file_type_graphql.svg",".graphqlconfig":"file_type_graphql_config.svg",".graphqlconfig.yml":"file_type_graphql_config.svg",".graphqlconfig.yaml":"file_type_graphql_config.svg","greenkeeper.json":"file_type_greenkeeper.svg","gridsome.config.js":"file_type_gridsome.svg","gridsome.config.ts":"file_type_gridsome.svg","gridsome.server.js":"file_type_gridsome.svg","gridsome.server.ts":"file_type_gridsome.svg","gridsome.client.js":"file_type_gridsome.svg","gridsome.client.ts":"file_type_gridsome.svg","gruntfile.js":"file_type_grunt.svg","gruntfile.coffee":"file_type_grunt.svg","gruntfile.ts":"file_type_grunt.svg","gruntfile.babel.js":"file_type_grunt.svg","gruntfile.babel.coffee":"file_type_grunt.svg","gruntfile.babel.ts":"file_type_grunt.svg","gulpfile.js":"file_type_gulp.svg","gulpfile.coffee":"file_type_gulp.svg","gulpfile.ts":"file_type_gulp.svg","gulpfile.mjs":"file_type_gulp.svg","gulpfile.esm.js":"file_type_gulp.svg","gulpfile.esm.coffee":"file_type_gulp.svg","gulpfile.esm.ts":"file_type_gulp.svg","gulpfile.esm.mjs":"file_type_gulp.svg","gulpfile.babel.js":"file_type_gulp.svg","gulpfile.babel.coffee":"file_type_gulp.svg","gulpfile.babel.ts":"file_type_gulp.svg","gulpfile.babel.mjs":"file_type_gulp.svg","haxelib.json":"file_type_haxe.svg","checkstyle.json":"file_type_haxecheckstyle.svg",".p4ignore":"file_type_helix.svg","chart.lock":"file_type_helm.svg","chart.yaml":"file_type_helm.svg","horusec-config.json":"file_type_horusec.svg",".htmlhintrc":"file_type_htmlhint.svg",".huskyrc":"file_type_husky.svg","husky.config.js":"file_type_husky.svg",".huskyrc.js":"file_type_husky.svg",".huskyrc.json":"file_type_husky.svg",".huskyrc.yaml":"file_type_husky.svg",".huskyrc.yml":"file_type_husky.svg","ionic.project":"file_type_ionic.svg","ionic.config.json":"file_type_ionic.svg",jakefile:"file_type_jake.svg","jakefile.js":"file_type_jake.svg","jasmine.json":"file_type_jasmine.svg","jest.config.json":"file_type_jest.svg","jest.config.base.json":"file_type_jest.svg","jest.config.common.json":"file_type_jest.svg","jest.config.ts":"file_type_jest.svg","jest.config.base.ts":"file_type_jest.svg","jest.config.common.ts":"file_type_jest.svg","jest.json":"file_type_jest.svg",".jestrc":"file_type_jest.svg",".jestrc.js":"file_type_jest.svg",".jestrc.json":"file_type_jest.svg","jest.config.js":"file_type_jest.svg","jest.config.cjs":"file_type_jest.svg","jest.config.mjs":"file_type_jest.svg","jest.config.base.js":"file_type_jest.svg","jest.config.base.cjs":"file_type_jest.svg","jest.config.base.mjs":"file_type_jest.svg","jest.config.common.js":"file_type_jest.svg","jest.config.common.cjs":"file_type_jest.svg","jest.config.common.mjs":"file_type_jest.svg","jest.config.babel.js":"file_type_jest.svg","jest.config.babel.cjs":"file_type_jest.svg","jest.config.babel.mjs":"file_type_jest.svg",".jpmignore":"file_type_jpm.svg",".jsbeautifyrc":"file_type_jsbeautify.svg",jsbeautifyrc:"file_type_jsbeautify.svg",".jsbeautify":"file_type_jsbeautify.svg",jsbeautify:"file_type_jsbeautify.svg","jsconfig.json":"file_type_light_jsconfig.svg",".jscpd.json":"file_type_jscpd.svg","jscpd-report.xml":"file_type_jscpd.svg","jscpd-report.json":"file_type_jscpd.svg","jscpd-report.html":"file_type_jscpd.svg",".jshintrc":"file_type_jshint.svg",".jshintignore":"file_type_jshint.svg","karma.conf.js":"file_type_karma.svg","karma.conf.coffee":"file_type_karma.svg","karma.conf.ts":"file_type_karma.svg",".kitchen.yml":"file_type_kitchenci.svg","kitchen.yml":"file_type_kitchenci.svg",".kiteignore":"file_type_light_kite.svg","layout.html":"file_type_layout.svg","layout.htm":"file_type_layout.svg","lerna.json":"file_type_light_lerna.svg",license:"file_type_license.svg",licence:"file_type_license.svg",copying:"file_type_license.svg","copying.lesser":"file_type_license.svg","license.md":"file_type_license.svg","license.txt":"file_type_license.svg","licence.md":"file_type_license.svg","licence.txt":"file_type_license.svg","copying.md":"file_type_license.svg","copying.txt":"file_type_license.svg","copying.lesser.md":"file_type_license.svg","copying.lesser.txt":"file_type_license.svg",".licrc":"file_type_licensebat.svg",".lighthouserc.js":"file_type_lighthouse.svg",".lighthouserc.json":"file_type_lighthouse.svg",".lighthouserc.yaml":"file_type_lighthouse.svg",".lighthouserc.yml":"file_type_lighthouse.svg","include.xml":"file_type_lime.svg",".lintstagedrc":"file_type_lintstagedrc.svg","lint-staged.config.js":"file_type_lintstagedrc.svg",".lintstagedrc.js":"file_type_lintstagedrc.svg",".lintstagedrc.json":"file_type_lintstagedrc.svg",".lintstagedrc.yaml":"file_type_lintstagedrc.svg",".lintstagedrc.yml":"file_type_lintstagedrc.svg",manifest:"file_type_manifest.svg","manifest.bak":"file_type_manifest_bak.svg","manifest.skip":"file_type_manifest_skip.svg",".markdownlint.json":"file_type_markdownlint.svg","maven.config":"file_type_maven.svg","pom.xml":"file_type_maven.svg","extensions.xml":"file_type_maven.svg","settings.xml":"file_type_maven.svg",".hgignore":"file_type_mercurial.svg","mocha.opts":"file_type_mocha.svg",".mocharc.js":"file_type_mocha.svg",".mocharc.json":"file_type_mocha.svg",".mocharc.jsonc":"file_type_mocha.svg",".mocharc.yaml":"file_type_mocha.svg",".mocharc.yml":"file_type_mocha.svg",modernizr:"file_type_modernizr.svg","modernizr.js":"file_type_modernizr.svg","modernizrrc.js":"file_type_modernizr.svg",".modernizr.js":"file_type_modernizr.svg",".modernizrrc.js":"file_type_modernizr.svg","moleculer.config.js":"file_type_moleculer.svg","moleculer.config.json":"file_type_moleculer.svg","moleculer.config.ts":"file_type_moleculer.svg",".mtn-ignore":"file_type_monotone.svg",".nest-cli.json":"file_type_nestjs.svg","nest-cli.json":"file_type_nestjs.svg","nestconfig.json":"file_type_nestjs.svg",".nestconfig.json":"file_type_nestjs.svg","netlify.toml":"file_type_netlify.svg","next.config.js":"file_type_light_next.svg","ng-tailwind.js":"file_type_ng_tailwind.svg","nginx.conf":"file_type_nginx.svg","build.ninja":"file_type_ninja.svg",".node-version":"file_type_node.svg",".nvmrc":"file_type_node.svg","nodemon.json":"file_type_nodemon.svg",".npmignore":"file_type_npm.svg",".npmrc":"file_type_npm.svg","package.json":"file_type_npm.svg","package-lock.json":"file_type_npm.svg","npm-shrinkwrap.json":"file_type_npm.svg",".nsrirc":"file_type_nsri.svg",".nsriignore":"file_type_nsri.svg","nsri.config.js":"file_type_nsri.svg",".nsrirc.js":"file_type_nsri.svg",".nsrirc.json":"file_type_nsri.svg",".nsrirc.yaml":"file_type_nsri.svg",".nsrirc.yml":"file_type_nsri.svg",".integrity.json":"file_type_nsri-integrity.svg","nuxt.config.js":"file_type_nuxt.svg","nuxt.config.ts":"file_type_nuxt.svg",".nycrc":"file_type_nyc.svg",".nycrc.json":"file_type_nyc.svg",".merlin":"file_type_ocaml.svg","paket.dependencies":"file_type_paket.svg","paket.lock":"file_type_paket.svg","paket.references":"file_type_paket.svg","paket.template":"file_type_paket.svg","paket.local":"file_type_paket.svg",".php_cs":"file_type_phpcsfixer.svg",".php_cs.dist":"file_type_phpcsfixer.svg",phpunit:"file_type_phpunit.svg","phpunit.xml":"file_type_phpunit.svg","phpunit.xml.dist":"file_type_phpunit.svg",".phraseapp.yml":"file_type_phraseapp.svg",pipfile:"file_type_pip.svg","pipfile.lock":"file_type_pip.svg","platformio.ini":"file_type_platformio.svg","pnpmfile.js":"file_type_light_pnpm.svg","pnpm-lock.yaml":"file_type_light_pnpm.svg","pnpm-workspace.yaml":"file_type_light_pnpm.svg",".postcssrc":"file_type_postcssconfig.svg",".postcssrc.json":"file_type_postcssconfig.svg",".postcssrc.yaml":"file_type_postcssconfig.svg",".postcssrc.yml":"file_type_postcssconfig.svg",".postcssrc.ts":"file_type_postcssconfig.svg",".postcssrc.js":"file_type_postcssconfig.svg",".postcssrc.cjs":"file_type_postcssconfig.svg","postcss.config.ts":"file_type_postcssconfig.svg","postcss.config.js":"file_type_postcssconfig.svg","postcss.config.cjs":"file_type_postcssconfig.svg","preact.config.js":"file_type_preact.svg",".pre-commit-config.yaml":"file_type_precommit.svg",".prettierrc":"file_type_light_prettier.svg",".prettierignore":"file_type_light_prettier.svg","prettier.config.js":"file_type_light_prettier.svg","prettier.config.cjs":"file_type_light_prettier.svg","prettier.config.ts":"file_type_light_prettier.svg","prettier.config.coffee":"file_type_light_prettier.svg",".prettierrc.js":"file_type_light_prettier.svg",".prettierrc.cjs":"file_type_light_prettier.svg",".prettierrc.json":"file_type_light_prettier.svg",".prettierrc.json5":"file_type_light_prettier.svg",".prettierrc.yml":"file_type_light_prettier.svg",".prettierrc.yaml":"file_type_light_prettier.svg",procfile:"file_type_procfile.svg","protractor.conf.js":"file_type_protractor.svg","protractor.conf.coffee":"file_type_protractor.svg","protractor.conf.ts":"file_type_protractor.svg",".jade-lintrc":"file_type_pug.svg",".pug-lintrc":"file_type_pug.svg",".jade-lint.json":"file_type_pug.svg",".pug-lintrc.js":"file_type_pug.svg",".pug-lintrc.json":"file_type_pug.svg","py.typed":"file_type_pytyped.svg",".pyup":"file_type_pyup.svg",".pyup.yml":"file_type_pyup.svg",qmldir:"file_type_qmldir.svg","quasar.conf.js":"file_type_quasar.svg",rakefile:"file_type_rake.svg","razzle.config.js":"file_type_light_razzle.svg",".rehyperc":"file_type_light_rehype.svg",".rehypeignore":"file_type_light_rehype.svg",".rehyperc.cjs":"file_type_light_rehype.svg",".rehyperc.js":"file_type_light_rehype.svg",".rehyperc.json":"file_type_light_rehype.svg",".rehyperc.mjs":"file_type_light_rehype.svg",".rehyperc.yml":"file_type_light_rehype.svg",".rehyperc.yaml":"file_type_light_rehype.svg",".remarkrc":"file_type_light_remark.svg",".remarkignore":"file_type_light_remark.svg",".remarkrc.cjs":"file_type_light_remark.svg",".remarkrc.js":"file_type_light_remark.svg",".remarkrc.json":"file_type_light_remark.svg",".remarkrc.mjs":"file_type_light_remark.svg",".remarkrc.yml":"file_type_light_remark.svg",".remarkrc.yaml":"file_type_light_remark.svg",".renovaterc":"file_type_renovate.svg","renovate.json":"file_type_renovate.svg",".renovaterc.json":"file_type_renovate.svg",".retextrc":"file_type_light_retext.svg",".retextignore":"file_type_light_retext.svg",".retextrc.cjs":"file_type_light_retext.svg",".retextrc.js":"file_type_light_retext.svg",".retextrc.json":"file_type_light_retext.svg",".retextrc.mjs":"file_type_light_retext.svg",".retextrc.yml":"file_type_light_retext.svg",".retextrc.yaml":"file_type_light_retext.svg","robots.txt":"file_type_robots.svg","rollup.config.js":"file_type_rollup.svg","rollup.config.cjs":"file_type_rollup.svg","rollup.config.mjs":"file_type_rollup.svg","rollup.config.coffee":"file_type_rollup.svg","rollup.config.ts":"file_type_rollup.svg","rollup.config.common.js":"file_type_rollup.svg","rollup.config.common.cjs":"file_type_rollup.svg","rollup.config.common.mjs":"file_type_rollup.svg","rollup.config.common.coffee":"file_type_rollup.svg","rollup.config.common.ts":"file_type_rollup.svg","rollup.config.dev.js":"file_type_rollup.svg","rollup.config.dev.cjs":"file_type_rollup.svg","rollup.config.dev.mjs":"file_type_rollup.svg","rollup.config.dev.coffee":"file_type_rollup.svg","rollup.config.dev.ts":"file_type_rollup.svg","rollup.config.prod.js":"file_type_rollup.svg","rollup.config.prod.cjs":"file_type_rollup.svg","rollup.config.prod.mjs":"file_type_rollup.svg","rollup.config.prod.coffee":"file_type_rollup.svg","rollup.config.prod.ts":"file_type_rollup.svg",".rspec":"file_type_rspec.svg",".rubocop.yml":"file_type_light_rubocop.svg",".rubocop_todo.yml":"file_type_light_rubocop.svg","rust-toolchain":"file_type_light_rust_toolchain.svg",".sailsrc":"file_type_sails.svg",".sentryclirc":"file_type_sentry.svg",".sequelizerc":"file_type_sequelize.svg",".sequelizerc.js":"file_type_sequelize.svg",".sequelizerc.json":"file_type_sequelize.svg","serverless.yml":"file_type_serverless.svg","serverless.json":"file_type_serverless.svg","serverless.js":"file_type_serverless.svg","serverless.ts":"file_type_serverless.svg","snapcraft.yaml":"file_type_snapcraft.svg",".snyk":"file_type_snyk.svg",".solidarity":"file_type_solidarity.svg",".solidarity.json":"file_type_solidarity.svg",".stylelintrc":"file_type_light_stylelint.svg",".stylelintignore":"file_type_light_stylelint.svg",".stylelintcache":"file_type_light_stylelint.svg","stylelint.config.js":"file_type_light_stylelint.svg","stylelint.config.json":"file_type_light_stylelint.svg","stylelint.config.yaml":"file_type_light_stylelint.svg","stylelint.config.yml":"file_type_light_stylelint.svg","stylelint.config.ts":"file_type_light_stylelint.svg","stylelint.config.cjs":"file_type_light_stylelint.svg",".stylelintrc.js":"file_type_light_stylelint.svg",".stylelintrc.json":"file_type_light_stylelint.svg",".stylelintrc.yaml":"file_type_light_stylelint.svg",".stylelintrc.yml":"file_type_light_stylelint.svg",".stylelintrc.ts":"file_type_light_stylelint.svg",".stylelintrc.cjs":"file_type_light_stylelint.svg",".stylish-haskell.yaml":"file_type_stylish_haskell.svg",".svnignore":"file_type_subversion.svg","package.pins":"file_type_swift.svg","symfony.lock":"file_type_light_symfony.svg","tailwind.js":"file_type_tailwind.svg","tailwind.cjs":"file_type_tailwind.svg","tailwind.coffee":"file_type_tailwind.svg","tailwind.ts":"file_type_tailwind.svg","tailwind.json":"file_type_tailwind.svg","tailwind.config.js":"file_type_tailwind.svg","tailwind.config.cjs":"file_type_tailwind.svg","tailwind.config.coffee":"file_type_tailwind.svg","tailwind.config.ts":"file_type_tailwind.svg","tailwind.config.json":"file_type_tailwind.svg",".testcaferc.json":"file_type_light_testcafe.svg",".tfignore":"file_type_tfs.svg","tox.ini":"file_type_tox.svg",".travis.yml":"file_type_travis.svg","tsconfig.json":"file_type_tsconfig.svg","tsconfig.app.json":"file_type_tsconfig.svg","tsconfig.base.json":"file_type_tsconfig.svg","tsconfig.common.json":"file_type_tsconfig.svg","tsconfig.dev.json":"file_type_tsconfig.svg","tsconfig.development.json":"file_type_tsconfig.svg","tsconfig.e2e.json":"file_type_tsconfig.svg","tsconfig.prod.json":"file_type_tsconfig.svg","tsconfig.production.json":"file_type_tsconfig.svg","tsconfig.server.json":"file_type_tsconfig.svg","tsconfig.spec.json":"file_type_tsconfig.svg","tsconfig.staging.json":"file_type_tsconfig.svg","tsconfig.test.json":"file_type_tsconfig.svg","tsconfig.lib.json":"file_type_tsconfig.svg","tsconfig.lib.prod.json":"file_type_tsconfig.svg","tslint.json":"file_type_tslint.svg","tslint.yaml":"file_type_tslint.svg","tslint.yml":"file_type_tslint.svg","typedoc.js":"file_type_typedoc.svg","typedoc.json":"file_type_typedoc.svg",".unibeautifyrc":"file_type_light_unibeautify.svg","unibeautify.config.js":"file_type_light_unibeautify.svg",".unibeautifyrc.js":"file_type_light_unibeautify.svg",".unibeautifyrc.json":"file_type_light_unibeautify.svg",".unibeautifyrc.yaml":"file_type_light_unibeautify.svg",".unibeautifyrc.yml":"file_type_light_unibeautify.svg",unlicense:"file_type_unlicense.svg",unlicence:"file_type_unlicense.svg","unlicense.md":"file_type_unlicense.svg","unlicense.txt":"file_type_unlicense.svg","unlicence.md":"file_type_unlicense.svg","unlicence.txt":"file_type_unlicense.svg",vagrantfile:"file_type_vagrant.svg","vapor.yml":"file_type_vapor.svg",".vimrc":"file_type_vim.svg",".gvimrc":"file_type_vim.svg","vite.config.js":"file_type_vite.svg","vite.config.ts":"file_type_vite.svg",".vscodeignore":"file_type_vscode.svg","launch.json":"file_type_vscode.svg","tasks.json":"file_type_vscode.svg","vscodeignore.json":"file_type_vscode.svg",".vuerc":"file_type_vueconfig.svg","vue.config.js":"file_type_vueconfig.svg","wallaby.json":"file_type_wallaby.svg","wallaby.js":"file_type_wallaby.svg","wallaby.ts":"file_type_wallaby.svg","wallaby.coffee":"file_type_wallaby.svg","wallaby.conf.json":"file_type_wallaby.svg","wallaby.conf.js":"file_type_wallaby.svg","wallaby.conf.ts":"file_type_wallaby.svg","wallaby.conf.coffee":"file_type_wallaby.svg",".wallaby.json":"file_type_wallaby.svg",".wallaby.js":"file_type_wallaby.svg",".wallaby.ts":"file_type_wallaby.svg",".wallaby.coffee":"file_type_wallaby.svg",".wallaby.conf.json":"file_type_wallaby.svg",".wallaby.conf.js":"file_type_wallaby.svg",".wallaby.conf.ts":"file_type_wallaby.svg",".wallaby.conf.coffee":"file_type_wallaby.svg",".watchmanconfig":"file_type_watchmanconfig.svg","webpack.base.conf.js":"file_type_webpack.svg","webpack.base.conf.coffee":"file_type_webpack.svg","webpack.base.conf.ts":"file_type_webpack.svg","webpack.common.js":"file_type_webpack.svg","webpack.common.coffee":"file_type_webpack.svg","webpack.common.ts":"file_type_webpack.svg","webpack.config.js":"file_type_webpack.svg","webpack.config.coffee":"file_type_webpack.svg","webpack.config.ts":"file_type_webpack.svg","webpack.config.base.js":"file_type_webpack.svg","webpack.config.base.coffee":"file_type_webpack.svg","webpack.config.base.ts":"file_type_webpack.svg","webpack.config.common.js":"file_type_webpack.svg","webpack.config.common.coffee":"file_type_webpack.svg","webpack.config.common.ts":"file_type_webpack.svg","webpack.config.dev.js":"file_type_webpack.svg","webpack.config.dev.coffee":"file_type_webpack.svg","webpack.config.dev.ts":"file_type_webpack.svg","webpack.config.development.js":"file_type_webpack.svg","webpack.config.development.coffee":"file_type_webpack.svg","webpack.config.development.ts":"file_type_webpack.svg","webpack.config.staging.js":"file_type_webpack.svg","webpack.config.staging.coffee":"file_type_webpack.svg","webpack.config.staging.ts":"file_type_webpack.svg","webpack.config.test.js":"file_type_webpack.svg","webpack.config.test.coffee":"file_type_webpack.svg","webpack.config.test.ts":"file_type_webpack.svg","webpack.config.prod.js":"file_type_webpack.svg","webpack.config.prod.coffee":"file_type_webpack.svg","webpack.config.prod.ts":"file_type_webpack.svg","webpack.config.production.js":"file_type_webpack.svg","webpack.config.production.coffee":"file_type_webpack.svg","webpack.config.production.ts":"file_type_webpack.svg","webpack.config.babel.js":"file_type_webpack.svg","webpack.config.babel.coffee":"file_type_webpack.svg","webpack.config.babel.ts":"file_type_webpack.svg","webpack.config.base.babel.js":"file_type_webpack.svg","webpack.config.base.babel.coffee":"file_type_webpack.svg","webpack.config.base.babel.ts":"file_type_webpack.svg","webpack.config.common.babel.js":"file_type_webpack.svg","webpack.config.common.babel.coffee":"file_type_webpack.svg","webpack.config.common.babel.ts":"file_type_webpack.svg","webpack.config.dev.babel.js":"file_type_webpack.svg","webpack.config.dev.babel.coffee":"file_type_webpack.svg","webpack.config.dev.babel.ts":"file_type_webpack.svg","webpack.config.development.babel.js":"file_type_webpack.svg","webpack.config.development.babel.coffee":"file_type_webpack.svg","webpack.config.development.babel.ts":"file_type_webpack.svg","webpack.config.staging.babel.js":"file_type_webpack.svg","webpack.config.staging.babel.coffee":"file_type_webpack.svg","webpack.config.staging.babel.ts":"file_type_webpack.svg","webpack.config.test.babel.js":"file_type_webpack.svg","webpack.config.test.babel.coffee":"file_type_webpack.svg","webpack.config.test.babel.ts":"file_type_webpack.svg","webpack.config.prod.babel.js":"file_type_webpack.svg","webpack.config.prod.babel.coffee":"file_type_webpack.svg","webpack.config.prod.babel.ts":"file_type_webpack.svg","webpack.config.production.babel.js":"file_type_webpack.svg","webpack.config.production.babel.coffee":"file_type_webpack.svg","webpack.config.production.babel.ts":"file_type_webpack.svg","webpack.dev.js":"file_type_webpack.svg","webpack.dev.coffee":"file_type_webpack.svg","webpack.dev.ts":"file_type_webpack.svg","webpack.dev.conf.js":"file_type_webpack.svg","webpack.dev.conf.coffee":"file_type_webpack.svg","webpack.dev.conf.ts":"file_type_webpack.svg","webpack.prod.js":"file_type_webpack.svg","webpack.prod.coffee":"file_type_webpack.svg","webpack.prod.ts":"file_type_webpack.svg","webpack.prod.conf.js":"file_type_webpack.svg","webpack.prod.conf.coffee":"file_type_webpack.svg","webpack.prod.conf.ts":"file_type_webpack.svg","webpack.main.config.js":"file_type_webpack.svg","webpack.main.config.coffee":"file_type_webpack.svg","webpack.main.config.ts":"file_type_webpack.svg","webpack.mix.js":"file_type_webpack.svg","webpack.mix.coffee":"file_type_webpack.svg","webpack.mix.ts":"file_type_webpack.svg","webpack.plugins.js":"file_type_webpack.svg","webpack.plugins.coffee":"file_type_webpack.svg","webpack.plugins.ts":"file_type_webpack.svg","webpack.renderer.config.js":"file_type_webpack.svg","webpack.renderer.config.coffee":"file_type_webpack.svg","webpack.renderer.config.ts":"file_type_webpack.svg","webpack.rules.js":"file_type_webpack.svg","webpack.rules.coffee":"file_type_webpack.svg","webpack.rules.ts":"file_type_webpack.svg","webpack.test.conf.js":"file_type_webpack.svg","webpack.test.conf.coffee":"file_type_webpack.svg","webpack.test.conf.ts":"file_type_webpack.svg","wercker.yml":"file_type_wercker.svg","wpml-config.xml":"file_type_wpml.svg",".yamllint":"file_type_yamllint.svg",".yaspellerrc":"file_type_yandex.svg",".yaspeller.json":"file_type_yandex.svg","yarn.lock":"file_type_yarn.svg",".yarnrc":"file_type_yarn.svg",".yarnrc.yml":"file_type_yarn.svg",".yarnclean":"file_type_yarn.svg",".yarn-integrity":"file_type_yarn.svg",".yarn-metadata.json":"file_type_yarn.svg",".yarnignore":"file_type_yarn.svg",".yo-rc.json":"file_type_yeoman.svg","now.json":"file_type_light_zeit.svg",".nowignore":"file_type_light_zeit.svg","vercel.json":"file_type_light_zeit.svg",".vercelignore":"file_type_light_zeit.svg",Jenkinsfile:"file_type_groovy.svg",config:"file_type_ini.svg",gitconfig:"file_type_ini.svg",guardfile:"file_type_ruby.svg",podfile:"file_type_ruby.svg",capfile:"file_type_ruby.svg"}),nb}var rb={},Nz;function s9e(){return Nz||(Nz=1,Object.defineProperty(rb,"__esModule",{value:!0}),rb.FolderNamesToIcon=void 0,rb.FolderNamesToIcon={android:"folder_type_android.svg",api:"folder_type_api.svg",".api":"folder_type_api.svg",apis:"folder_type_api.svg",".apis":"folder_type_api.svg",app:"folder_type_app.svg",".app":"folder_type_app.svg",arangodb:"folder_type_arangodb.svg",arango:"folder_type_arangodb.svg",assets:"folder_type_asset.svg",".assets":"folder_type_asset.svg",audio:"folder_type_audio.svg",".audio":"folder_type_audio.svg",audios:"folder_type_audio.svg",".audios":"folder_type_audio.svg",sound:"folder_type_audio.svg",".sound":"folder_type_audio.svg",sounds:"folder_type_audio.svg",".sounds":"folder_type_audio.svg",aurelia_project:"folder_type_aurelia.svg",aws:"folder_type_aws.svg",".aws":"folder_type_aws.svg",azure:"folder_type_azure.svg",".azure":"folder_type_azure.svg","azure-pipelines":"folder_type_azurepipelines.svg",".azure-pipelines":"folder_type_azurepipelines.svg",bin:"folder_type_binary.svg",".bin":"folder_type_binary.svg",blocs:"folder_type_bloc.svg",bloc:"folder_type_bloc.svg",blueprint:"folder_type_blueprint.svg",".blueprint":"folder_type_blueprint.svg",blueprints:"folder_type_blueprint.svg",".blueprints":"folder_type_blueprint.svg",bower_components:"folder_type_bower.svg",".buildkite":"folder_type_buildkite.svg",cake:"folder_type_cake.svg",".cake":"folder_type_cake.svg",certificates:"folder_type_certificate.svg",".certificates":"folder_type_certificate.svg",certs:"folder_type_certificate.svg","certs.":"folder_type_certificate.svg",chef:"folder_type_chef.svg",".chef":"folder_type_chef.svg",".circleci":"folder_type_circleci.svg",cli:"folder_type_cli.svg",cmd:"folder_type_cli.svg",command:"folder_type_cli.svg",commands:"folder_type_cli.svg",commandline:"folder_type_cli.svg",console:"folder_type_cli.svg",client:"folder_type_client.svg",clients:"folder_type_client.svg",".cmake":"folder_type_cmake.svg",cmake:"folder_type_cmake.svg",component:"folder_type_component.svg",components:"folder_type_component.svg",".components":"folder_type_component.svg",widgets:"folder_type_component.svg",composer:"folder_type_composer.svg",".composer":"folder_type_composer.svg",conf:"folder_type_config.svg",".conf":"folder_type_config.svg",config:"folder_type_config.svg",".config":"folder_type_config.svg",configs:"folder_type_config.svg",".configs":"folder_type_config.svg",configuration:"folder_type_config.svg",".configuration":"folder_type_config.svg",configurations:"folder_type_config.svg",".configurations":"folder_type_config.svg",setting:"folder_type_config.svg",".setting":"folder_type_config.svg",settings:"folder_type_config.svg",".settings":"folder_type_config.svg",ini:"folder_type_config.svg",".ini":"folder_type_config.svg",initializers:"folder_type_config.svg",".initializers":"folder_type_config.svg",controller:"folder_type_controller.svg",controllers:"folder_type_controller.svg",".controllers":"folder_type_controller.svg",handlers:"folder_type_controller.svg",".handlers":"folder_type_controller.svg",coverage:"folder_type_coverage.svg",css:"folder_type_css.svg",_css:"folder_type_css.svg",cubits:"folder_type_cubit.svg",cubit:"folder_type_cubit.svg",cypress:"folder_type_cypress.svg",".dapr":"folder_type_dapr.svg",dapr:"folder_type_dapr.svg",db:"folder_type_db.svg",database:"folder_type_db.svg",sql:"folder_type_db.svg",data:"folder_type_db.svg",repo:"folder_type_db.svg",repository:"folder_type_db.svg",repositories:"folder_type_db.svg",debian:"folder_type_debian.svg",deb:"folder_type_debian.svg",".dependabot":"folder_type_dependabot.svg",".devcontainer":"folder_type_devcontainer.svg",dist:"folder_type_dist.svg",".dist":"folder_type_dist.svg",dists:"folder_type_dist.svg",out:"folder_type_dist.svg",outs:"folder_type_dist.svg",export:"folder_type_dist.svg",exports:"folder_type_dist.svg",build:"folder_type_dist.svg",".build":"folder_type_dist.svg",builds:"folder_type_dist.svg",release:"folder_type_dist.svg",releases:"folder_type_dist.svg",target:"folder_type_dist.svg",targets:"folder_type_dist.svg",docker:"folder_type_docker.svg",".docker":"folder_type_docker.svg",docs:"folder_type_docs.svg",doc:"folder_type_docs.svg",e2e:"folder_type_e2e.svg",".elasticbeanstalk":"folder_type_elasticbeanstalk.svg",".ebextensions":"folder_type_elasticbeanstalk.svg",electron:"folder_type_light_electron.svg",".expo":"folder_type_light_expo.svg",".expo-shared":"folder_type_light_expo.svg",favicon:"folder_type_favicon.svg",favicons:"folder_type_favicon.svg",flow:"folder_type_flow.svg","flow-typed":"folder_type_flow.svg",fonts:"folder_type_light_fonts.svg",font:"folder_type_light_fonts.svg",fnt:"folder_type_light_fonts.svg",gcp:"folder_type_gcp.svg",".gcp":"folder_type_gcp.svg",".git":"folder_type_git.svg",submodules:"folder_type_git.svg",".submodules":"folder_type_git.svg",".github":"folder_type_github.svg",".gitlab":"folder_type_gitlab.svg",gradle:"folder_type_light_gradle.svg",".gradle":"folder_type_light_gradle.svg",graphql:"folder_type_graphql.svg",grunt:"folder_type_grunt.svg",gulp:"folder_type_gulp.svg","gulpfile.js":"folder_type_gulp.svg","gulpfile.coffee":"folder_type_gulp.svg","gulpfile.ts":"folder_type_gulp.svg","gulpfile.babel.js":"folder_type_gulp.svg","gulpfile.babel.coffee":"folder_type_gulp.svg","gulpfile.babel.ts":"folder_type_gulp.svg",".haxelib":"folder_type_haxelib.svg",haxe_libraries:"folder_type_haxelib.svg",helper:"folder_type_helper.svg",".helper":"folder_type_helper.svg",helpers:"folder_type_helper.svg",".helpers":"folder_type_helper.svg",hook:"folder_type_hook.svg",".hook":"folder_type_hook.svg",hooks:"folder_type_hook.svg",".hooks":"folder_type_hook.svg",".husky":"folder_type_husky.svg",".idea":"folder_type_idea.svg",images:"folder_type_images.svg",image:"folder_type_images.svg",img:"folder_type_images.svg",icons:"folder_type_images.svg",icon:"folder_type_images.svg",ico:"folder_type_images.svg",screenshot:"folder_type_images.svg",screenshots:"folder_type_images.svg",svg:"folder_type_images.svg",include:"folder_type_include.svg",includes:"folder_type_include.svg",incl:"folder_type_include.svg",inc:"folder_type_include.svg",".include":"folder_type_include.svg",".includes":"folder_type_include.svg",".incl":"folder_type_include.svg",".inc":"folder_type_include.svg",_include:"folder_type_include.svg",_includes:"folder_type_include.svg",_incl:"folder_type_include.svg",_inc:"folder_type_include.svg",interface:"folder_type_interfaces.svg",interfaces:"folder_type_interfaces.svg",ios:"folder_type_ios.svg",js:"folder_type_js.svg",json:"folder_type_json.svg",kubernetes:"folder_type_kubernetes.svg",k8s:"folder_type_kubernetes.svg",kube:"folder_type_kubernetes.svg",kuber:"folder_type_kubernetes.svg",".kubernetes":"folder_type_kubernetes.svg",".k8s":"folder_type_kubernetes.svg",".kube":"folder_type_kubernetes.svg",".kuber":"folder_type_kubernetes.svg",less:"folder_type_less.svg",_less:"folder_type_less.svg",lib:"folder_type_library.svg",libs:"folder_type_library.svg",".lib":"folder_type_library.svg",".libs":"folder_type_library.svg",library:"folder_type_library.svg",libraries:"folder_type_library.svg",linux:"folder_type_linux.svg",lang:"folder_type_locale.svg",language:"folder_type_locale.svg",languages:"folder_type_locale.svg",locale:"folder_type_locale.svg",locales:"folder_type_locale.svg",_locale:"folder_type_locale.svg",_locales:"folder_type_locale.svg",internationalization:"folder_type_locale.svg",globalization:"folder_type_locale.svg",localization:"folder_type_locale.svg",i18n:"folder_type_locale.svg",g11n:"folder_type_locale.svg",l10n:"folder_type_locale.svg",log:"folder_type_log.svg",logs:"folder_type_log.svg",macos:"folder_type_macos.svg",darwin:"folder_type_macos.svg",mariadb:"folder_type_mariadb.svg",maria:"folder_type_mariadb.svg",".mvn":"folder_type_maven.svg",memcached:"folder_type_memcached.svg",".memcached":"folder_type_memcached.svg",".meteor":"folder_type_light_meteor.svg",middleware:"folder_type_middleware.svg",middlewares:"folder_type_middleware.svg",minikube:"folder_type_minikube.svg",minik8s:"folder_type_minikube.svg",minikuber:"folder_type_minikube.svg",mjml:"folder_type_mjml.svg",".mjml":"folder_type_mjml.svg",mocks:"folder_type_mock.svg",".mocks":"folder_type_mock.svg",__mocks__:"folder_type_mock.svg",model:"folder_type_model.svg",".model":"folder_type_model.svg",models:"folder_type_model.svg",".models":"folder_type_model.svg",entities:"folder_type_model.svg",".entities":"folder_type_model.svg",modules:"folder_type_module.svg",mongodb:"folder_type_mongodb.svg",mongo:"folder_type_mongodb.svg",mysqldb:"folder_type_light_mysql.svg",mysql:"folder_type_light_mysql.svg",".next":"folder_type_next.svg",nginx:"folder_type_nginx.svg","conf.d":"folder_type_nginx.svg",node_modules:"folder_type_light_node.svg",notification:"folder_type_notification.svg",notifications:"folder_type_notification.svg",event:"folder_type_notification.svg",events:"folder_type_notification.svg",".nuget":"folder_type_nuget.svg",".nuxt":"folder_type_nuxt.svg",package:"folder_type_package.svg",packages:"folder_type_package.svg",".package":"folder_type_package.svg",".packages":"folder_type_package.svg",pkg:"folder_type_package.svg",".paket":"folder_type_paket.svg",php:"folder_type_php.svg",".pio":"folder_type_platformio.svg",".pioenvs":"folder_type_platformio.svg",plugin:"folder_type_plugin.svg",".plugin":"folder_type_plugin.svg",plugins:"folder_type_plugin.svg",".plugins":"folder_type_plugin.svg",extension:"folder_type_plugin.svg",".extension":"folder_type_plugin.svg",extensions:"folder_type_plugin.svg",".extensions":"folder_type_plugin.svg",private:"folder_type_private.svg",".private":"folder_type_private.svg",public:"folder_type_public.svg",".public":"folder_type_public.svg",".venv":"folder_type_python.svg",".virtualenv":"folder_type_python.svg",ravendb:"folder_type_ravendb.svg",redis:"folder_type_redis.svg",redux:"folder_type_light_redux.svg",route:"folder_type_route.svg",routes:"folder_type_route.svg",_route:"folder_type_route.svg",_routes:"folder_type_route.svg",routers:"folder_type_route.svg",sass:"folder_type_light_sass.svg",scss:"folder_type_light_sass.svg",_sass:"folder_type_light_sass.svg",_scss:"folder_type_light_sass.svg",script:"folder_type_script.svg",scripts:"folder_type_script.svg",server:"folder_type_server.svg",service:"folder_type_services.svg",services:"folder_type_services.svg",src:"folder_type_src.svg",source:"folder_type_src.svg",sources:"folder_type_src.svg",sso:"folder_type_sso.svg",story:"folder_type_story.svg",stories:"folder_type_story.svg",__stories__:"folder_type_story.svg",".storybook":"folder_type_story.svg",style:"folder_type_style.svg",styles:"folder_type_style.svg",temp:"folder_type_temp.svg",".temp":"folder_type_temp.svg",tmp:"folder_type_temp.svg",".tmp":"folder_type_temp.svg",template:"folder_type_template.svg",".template":"folder_type_template.svg",templates:"folder_type_template.svg",".templates":"folder_type_template.svg",tests:"folder_type_test.svg",".tests":"folder_type_test.svg",test:"folder_type_test.svg",".test":"folder_type_test.svg",__tests__:"folder_type_test.svg",__test__:"folder_type_test.svg",spec:"folder_type_test.svg",".spec":"folder_type_test.svg",specs:"folder_type_test.svg",".specs":"folder_type_test.svg",integration:"folder_type_test.svg",theme:"folder_type_theme.svg",themes:"folder_type_theme.svg",tool:"folder_type_tools.svg",tools:"folder_type_tools.svg",".tools":"folder_type_tools.svg",util:"folder_type_tools.svg",utils:"folder_type_tools.svg",".travis":"folder_type_travis.svg",typescript:"folder_type_typescript.svg",ts:"folder_type_typescript.svg",typings:"folder_type_typings.svg","@types":"folder_type_typings.svg",vagrant:"folder_type_vagrant.svg",".vagrant":"folder_type_vagrant.svg",video:"folder_type_video.svg",".video":"folder_type_video.svg",videos:"folder_type_video.svg",".videos":"folder_type_video.svg",html:"folder_type_view.svg",view:"folder_type_view.svg",views:"folder_type_view.svg",layout:"folder_type_view.svg",layouts:"folder_type_view.svg",page:"folder_type_view.svg",pages:"folder_type_view.svg",_view:"folder_type_view.svg",_views:"folder_type_view.svg",_layout:"folder_type_view.svg",_layouts:"folder_type_view.svg",_page:"folder_type_view.svg",_pages:"folder_type_view.svg",".vs":"folder_type_vs.svg",".vscode":"folder_type_vscode.svg",vscode:"folder_type_vscode.svg",".vscode-test":"folder_type_vscode_test.svg",webpack:"folder_type_webpack.svg",windows:"folder_type_windows.svg",win32:"folder_type_windows.svg",www:"folder_type_www.svg",wwwroot:"folder_type_www.svg"}),rb}var ib={},Tz;function a9e(){return Tz||(Tz=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.LanguagesToIcon=void 0,ib.LanguagesToIcon={as:"file_type_actionscript.svg",ada:"file_type_light_ada.svg",prw:"file_type_advpl.svg",affect:"file_type_affectscript.svg",al:"file_type_al.svg",ansible:"file_type_ansible.svg",g4:"file_type_antlr.svg",any:"file_type_anyscript.svg",cls:"file_type_apex.svg",apl:"file_type_light_apl.svg",applescript:"file_type_applescript.svg",adoc:"file_type_asciidoc.svg",asp:"file_type_asp.svg",ats:"file_type_ats.svg",au3:"file_type_autoit.svg",avcs:"file_type_avro.svg",azcli:"file_type_azure.svg",bal:"file_type_ballerina.svg",bat:"file_type_bat.svg",cmd:"file_type_bat.svg",bats:"file_type_bats.svg",bzl:"file_type_bazel.svg",bf:"file_type_befunge.svg",bicep:"file_type_bicep.svg",bib:"file_type_light_tex.svg",biml:"file_type_biml.svg","blade.php":"file_type_blade.svg",blitzbasic:"file_type_blitzbasic.svg",bolt:"file_type_bolt.svg",bsq:"file_type_bosque.svg",c:"file_type_c.svg",cabal:"file_type_cabal.svg",Caddyfile:"file_type_caddy.svg",casc:"file_type_casc.svg",cddl:"file_type_cddl.svg",ceylon:"file_type_ceylon.svg",cfc:"file_type_cfc.svg",clj:"file_type_clojure.svg",cljs:"file_type_clojure.svg",cljc:"file_type_clojure.svg",cljx:"file_type_clojure.svg",clojure:"file_type_clojure.svg",edn:"file_type_clojure.svg",clojurescript:"file_type_clojurescript.svg",cmake:"file_type_cmake.svg",cbl:"file_type_cobol.svg",coffee:"file_type_coffeescript.svg",cson:"file_type_coffeescript.svg",confluence:"file_type_confluence.svg",ckbk:"file_type_chef_cookbook.svg",cpp:"file_type_cpp.svg",cc:"file_type_cpp.svg",cxx:"file_type_cpp.svg",hpp:"file_type_cpp.svg",hh:"file_type_cpp.svg",hxx:"file_type_cpp.svg",h:"file_type_cpp.svg",ino:"file_type_cpp.svg",inl:"file_type_cpp.svg",ipp:"file_type_cpp.svg",cr:"file_type_light_crystal.svg",cs:"file_type_csharp.svg",csx:"file_type_csharp.svg",cake:"file_type_csharp.svg",css:"file_type_css.svg",cu:"file_type_cuda.svg",pyx:"file_type_cython.svg",dal:"file_type_dal.svg",dart:"file_type_dartlang.svg",diff:"file_type_diff.svg",patch:"file_type_diff.svg",rej:"file_type_diff.svg",dockerfile:"file_type_docker.svg",dtx:"file_type_light_tex.svg",env:"file_type_light_config.svg",dot:"file_type_dotjs.svg",dox:"file_type_doxygen.svg",drl:"file_type_drools.svg",dust:"file_type_dustjs.svg",edge:"file_type_edge.svg",eex:"file_type_eex.svg",ex:"file_type_elixir.svg",elm:"file_type_elm.svg",erb:"file_type_erb.svg",erl:"file_type_erlang.svg",falcon:"file_type_falcon.svg",fs:"file_type_fsharp.svg",fsi:"file_type_fsharp.svg",fsx:"file_type_fsharp.svg",fsscript:"file_type_fsharp.svg",fthtml:"file_type_fthtml.svg",gspec:"file_type_galen.svg",gcode:"file_type_gcode.svg",gen:"file_type_genstat.svg",glsl:"file_type_glsl.svg",glyphs:"file_type_glyphs.svg",gp:"file_type_gnuplot.svg",go:"file_type_go.svg",gql:"file_type_graphql.svg",groovy:"file_type_groovy.svg",gvy:"file_type_groovy.svg",gradle:"file_type_groovy.svg",haml:"file_type_haml.svg",handlebars:"file_type_handlebars.svg",hbs:"file_type_handlebars.svg",hjs:"file_type_handlebars.svg",prg:"file_type_harbour.svg",hs:"file_type_haskell.svg",haxe:"file_type_haxe.svg","helm.tpl":"file_type_helm.svg",hjson:"file_type_light_hjson.svg",hlsl:"file_type_hlsl.svg",hlsli:"file_type_hlsl.svg",fx:"file_type_hlsl.svg",fxh:"file_type_hlsl.svg",vsh:"file_type_hlsl.svg",psh:"file_type_hlsl.svg",cginc:"file_type_hlsl.svg",compute:"file_type_hlsl.svg",hosts:"file_type_host.svg",html:"file_type_html.svg",htm:"file_type_html.svg",shtml:"file_type_html.svg",xhtml:"file_type_html.svg",mdoc:"file_type_html.svg",jsp:"file_type_html.svg",aspx:"file_type_html.svg",jshtm:"file_type_html.svg",volt:"file_type_html.svg",ejs:"file_type_html.svg",rhtml:"file_type_html.svg",http:"file_type_http.svg",hy:"file_type_hy.svg",hypr:"file_type_hypr.svg",icl:"file_type_icl.svg",imba:"file_type_imba.svg",properties:"file_type_light_ini.svg",gitconfig:"file_type_light_ini.svg",cfg:"file_type_light_ini.svg",conf:"file_type_light_ini.svg",ink:"file_type_ink.svg",iss:"file_type_innosetup.svg",io:"file_type_light_io.svg",janet:"file_type_janet.svg",java:"file_type_java.svg",jav:"file_type_java.svg",js:"file_type_light_js.svg",es6:"file_type_light_js.svg",mjs:"file_type_light_js.svg",pac:"file_type_light_js.svg",jsx:"file_type_reactjs.svg",jekyll:"file_type_jekyll.svg",json:"file_type_light_json.svg",bowerrc:"file_type_light_json.svg",jshintrc:"file_type_light_json.svg",jscsrc:"file_type_light_json.svg",eslintrc:"file_type_light_json.svg",babelrc:"file_type_light_json.svg",webmanifest:"file_type_light_json.svg",jsonc:"file_type_light_json.svg",jsonnet:"file_type_jsonnet.svg",json5:"file_type_light_json5.svg",jl:"file_type_julia.svg",id:"file_type_iodine.svg",kv:"file_type_kivy.svg",ks:"file_type_kos.svg",kt:"file_type_kotlin.svg",".kusto":"file_type_kusto.svg",tex:"file_type_light_tex.svg",lat:"file_type_latino.svg",less:"file_type_less.svg",flex:"file_type_lex.svg",lisp:"file_type_lisp.svg",log:"file_type_log.svg",lol:"file_type_lolcode.svg",lsl:"file_type_lsl.svg",lua:"file_type_lua.svg",mk:"file_type_makefile.svg",md:"file_type_markdown.svg",mdown:"file_type_markdown.svg",markdown:"file_type_markdown.svg",markdn:"file_type_markdown.svg",marko:"file_type_marko.svg",mat:"file_type_matlab.svg",ms:"file_type_maxscript.svg",mdx:"file_type_light_mdx.svg",mediawiki:"file_type_mediawiki.svg",mel:"file_type_maya.svg","meson.build":"file_type_meson.svg",mjml:"file_type_mjml.svg",ep:"file_type_mojolicious.svg",mongo:"file_type_mongo.svg",mson:"file_type_mson.svg",ne:"file_type_nearly.svg",nim:"file_type_nim.svg",nimble:"file_type_nimble.svg",nix:"file_type_nix.svg",nsi:"file_type_nsi.svg",nunjucks:"file_type_nunjucks.svg",ml:"file_type_ocaml.svg",o3:"file_type_ogone.svg",pas:"file_type_delphi.svg",pddl:"file_type_pddl.svg",pl:"file_type_perl.svg",pm:"file_type_perl.svg",pod:"file_type_perl.svg",t:"file_type_perl.svg",PL:"file_type_perl.svg",psgi:"file_type_perl.svg",p6:"file_type_perl.svg",pl6:"file_type_perl.svg",pm6:"file_type_perl.svg",nqp:"file_type_perl.svg",pgsql:"file_type_pgsql.svg",php:"file_type_php.svg",php4:"file_type_php.svg",php5:"file_type_php.svg",phtml:"file_type_php.svg",ctp:"file_type_php.svg",pine:"file_type_pine.svg",txt:"file_type_text.svg",ddl:"file_type_plsql.svg",polymer:"file_type_polymer.svg",pony:"file_type_pony.svg",pcss:"file_type_postcss.svg",ps1:"file_type_powershell.svg",psm1:"file_type_powershell.svg",psd1:"file_type_powershell.svg",pssc:"file_type_powershell.svg",psrc:"file_type_powershell.svg",prisma:"file_type_light_prisma.svg",pro:"file_type_prolog.svg",rules:"file_type_prometheus.svg",pp:"file_type_puppet.svg",purs:"file_type_light_purescript.svg",arr:"file_type_pyret.svg",py:"file_type_python.svg",rpy:"file_type_python.svg",pyw:"file_type_python.svg",cpy:"file_type_python.svg",gyp:"file_type_python.svg",gypi:"file_type_python.svg",qvs:"file_type_qlikview.svg",qml:"file_type_qml.svg",qs:"file_type_qsharp.svg",r:"file_type_r.svg",rhistory:"file_type_r.svg",rprofile:"file_type_r.svg",rt:"file_type_r.svg",rkt:"file_type_racket.svg",cshtml:"file_type_razor.svg",raml:"file_type_raml.svg",re:"file_type_reason.svg",red:"file_type_red.svg",res:"file_type_rescript.svg",rst:"file_type_rest.svg",rex:"file_type_rexx.svg",tag:"file_type_riot.svg",rmd:"file_type_rmd.svg",robot:"file_type_robotframework.svg",rb:"file_type_ruby.svg",rbx:"file_type_ruby.svg",rjs:"file_type_ruby.svg",gemspec:"file_type_ruby.svg",rake:"file_type_ruby.svg",ru:"file_type_ruby.svg",rs:"file_type_light_rust.svg",san:"file_type_san.svg",sbt:"file_type_sbt.svg",scad:"file_type_openscad.svg",scala:"file_type_scala.svg",sce:"file_type_scilab.svg",scss:"file_type_scss.svg",shader:"file_type_light_shaderlab.svg",sh:"file_type_shell.svg",bash:"file_type_shell.svg",bashrc:"file_type_shell.svg",bash_aliases:"file_type_shell.svg",bash_profile:"file_type_shell.svg",bash_login:"file_type_shell.svg",ebuild:"file_type_shell.svg",install:"file_type_shell.svg",profile:"file_type_shell.svg",bash_logout:"file_type_shell.svg",zsh:"file_type_shell.svg",zshrc:"file_type_shell.svg",zprofile:"file_type_shell.svg",zlogin:"file_type_shell.svg",zlogout:"file_type_shell.svg",zshenv:"file_type_shell.svg","zsh-theme":"file_type_shell.svg",slang:"file_type_slang.svg",ice:"file_type_slice.svg",slim:"file_type_slim.svg",ss:"file_type_silverstripe.svg",tpl:"file_type_smarty.svg",snort:"file_type_snort.svg",sol:"file_type_light_solidity.svg",rq:"file_type_sparql.svg",sqf:"file_type_sqf.svg",sql:"file_type_sql.svg",dsql:"file_type_sql.svg",nut:"file_type_squirrel.svg",stan:"file_type_stan.svg",bazel:"file_type_bazel.svg",do:"file_type_stata.svg",stencil:"file_type_stencil.svg","st.css":"file_type_stylable.svg",styl:"file_type_light_stylus.svg",svelte:"file_type_svelte.svg",swagger:"file_type_swagger.svg",swift:"file_type_swift.svg",swig:"file_type_swig.svg",sv:"file_type_light_systemverilog.svg",tt:"file_type_t4tt.svg",teal:"file_type_teal.svg",tera:"file_type_tera.svg",tf:"file_type_terraform.svg",sty:"file_type_light_tex.svg",textile:"file_type_textile.svg",Tiltfile:"file_type_tiltfile.svg",toml:"file_type_light_toml.svg",ttcn3:"file_type_ttcn.svg",tuc:"file_type_tuc.svg",twig:"file_type_twig.svg",ts:"file_type_typescript.svg",tsx:"file_type_reactts.svg",vb:"file_type_vb.svg",brs:"file_type_vb.svg",vbs:"file_type_vb.svg",bas:"file_type_vb.svg",wsf:"file_type_script.svg",vm:"file_type_velocity.svg",v:"file_type_verilog.svg",vhdl:"file_type_vhdl.svg",vim:"file_type_vim.svg",vue:"file_type_vue.svg",wasm:"file_type_wasm.svg",wy:"file_type_wenyan.svg",wl:"file_type_wolfram.svg",wurst:"file_type_wurst.svg","xmake.lua":"file_type_xmake.svg",xml:"file_type_xml.svg",xsd:"file_type_xml.svg",ascx:"file_type_xml.svg",atom:"file_type_xml.svg",axml:"file_type_xml.svg",bpmn:"file_type_xml.svg",config:"file_type_xml.svg",cpt:"file_type_xml.svg",csl:"file_type_xml.svg",csproj:"file_type_xml.svg","csproj.user":"file_type_xml.svg",dita:"file_type_xml.svg",ditamap:"file_type_xml.svg",dtd:"file_type_xml.svg",dtml:"file_type_xml.svg",fsproj:"file_type_xml.svg",fxml:"file_type_xml.svg",iml:"file_type_xml.svg",isml:"file_type_xml.svg",jmx:"file_type_xml.svg",launch:"file_type_xml.svg",menu:"file_type_xml.svg",mxml:"file_type_xml.svg",nuspec:"file_type_xml.svg",opml:"file_type_xml.svg",owl:"file_type_xml.svg",proj:"file_type_xml.svg",props:"file_type_xml.svg",pt:"file_type_xml.svg",publishsettings:"file_type_xml.svg",pubxml:"file_type_xml.svg","pubxml.user":"file_type_xml.svg",rdf:"file_type_xml.svg",rng:"file_type_xml.svg",rss:"file_type_xml.svg",shproj:"file_type_xml.svg",storyboard:"file_type_xml.svg",svg:"file_type_xml.svg",targets:"file_type_xml.svg",tld:"file_type_xml.svg",tmx:"file_type_xml.svg",vbproj:"file_type_xml.svg","vbproj.user":"file_type_xml.svg",vcxproj:"file_type_xml.svg","vcxproj.filters":"file_type_xml.svg",wsdl:"file_type_xml.svg",wxi:"file_type_xml.svg",wxl:"file_type_xml.svg",wxs:"file_type_xml.svg",xaml:"file_type_xml.svg",xbl:"file_type_xml.svg",xib:"file_type_xml.svg",xlf:"file_type_xml.svg",xliff:"file_type_xml.svg",xpdl:"file_type_xml.svg",xul:"file_type_xml.svg",xoml:"file_type_xml.svg",xquery:"file_type_xquery.svg",xsl:"file_type_xsl.svg",xslt:"file_type_xsl.svg",bison:"file_type_yacc.svg",eyaml:"file_type_light_yaml.svg",eyml:"file_type_light_yaml.svg",yaml:"file_type_light_yaml.svg",yml:"file_type_light_yaml.svg",yang:"file_type_yang.svg",zig:"file_type_zig.svg"}),ib}var Ez;function o9e(){return Ez||(Ez=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getIconForOpenFolder=e.getIconForFile=e.getIconForFolder=e.DEFAULT_FILE=e.DEFAULT_ROOT_OPENED=e.DEFAULT_ROOT=e.DEFAULT_FOLDER_OPENED=e.DEFAULT_FOLDER=void 0;var n=n9e(),r=r9e(),i=i9e(),s=s9e(),a=a9e();e.DEFAULT_FOLDER="default_folder.svg",e.DEFAULT_FOLDER_OPENED="default_folder_opened.svg",e.DEFAULT_ROOT="default_root_folder.svg",e.DEFAULT_ROOT_OPENED="default_root_folder_opened.svg",e.DEFAULT_FILE="default_file.svg";function o(f){var m=s.FolderNamesToIcon[f];return m||e.DEFAULT_FOLDER}e.getIconForFolder=o;var l=void 0,u=void 0;function d(f){var m=i.FileNamesToIcon[f];if(m!==void 0)return m;var x=f.split(".");if(x.length>2){var v=x.pop(),_=x.pop(),w=r.FileExtensions2ToIcon[_+"."+v];if(w!==void 0)return w;if(!v)return e.DEFAULT_FILE;if(v===l)return u;var S=n.FileExtensions1ToIcon[v];if(S!==void 0)return l=v,u=S,S}else{var C=x.pop();if(!C)return e.DEFAULT_FILE;if(C===l)return u;var j=n.FileExtensions1ToIcon[C];if(j!==void 0)return l=C,u=j,j}var T=f.split(".").pop();if(T!==void 0){var E=a.LanguagesToIcon[T];if(E)return E}return e.DEFAULT_FILE}e.getIconForFile=d;function h(f){return o(f).split(".").shift()+"_opened.svg"}e.getIconForOpenFolder=h})(jT)),jT}var ud=o9e();const eie="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@12.9.0/icons/";function xa({filename:e,className:n}){const r=ud.getIconForFile(e)??ud.DEFAULT_FILE;return c.jsx("img",{src:`${eie}${r}`,alt:"",className:n,loading:"lazy",decoding:"async",draggable:!1})}function V4({name:e,open:n=!1,className:r}){const i=n?ud.getIconForOpenFolder(e)??ud.DEFAULT_FOLDER_OPENED:ud.getIconForFolder(e)??ud.DEFAULT_FOLDER;return c.jsx("img",{src:`${eie}${i}`,alt:"",className:r,loading:"lazy",decoding:"async",draggable:!1})}function tie(){const[e,n]=y.useState(()=>typeof document<"u"&&document.documentElement.classList.contains("dark")?"dark":"light");return y.useEffect(()=>{const r=document.documentElement,i=()=>n(r.classList.contains("dark")?"dark":"light");i();const s=new MutationObserver(i);return s.observe(r,{attributes:!0,attributeFilter:["class"]}),()=>s.disconnect()},[]),e}const nie=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}')),l9e=Object.freeze(Object.defineProperty({__proto__:null,default:nie},Symbol.toStringTag,{value:"Module"})),c9e=["editor theme","vscode theme","monaco theme","workbench colors"],NT=new Set,u2="dark-plus",Az=new WeakSet,Oz=nie,u9e={"editor.background":"#0B0C0E","editorGutter.background":"#0B0C0E","editorStickyScroll.background":"#0B0C0E","editorStickyScrollGutter.background":"#0B0C0E","minimap.background":"#0B0C0E","editor.lineHighlightBackground":"#151922","editorWidget.background":"#16181D","editorHoverWidget.background":"#16181D","editorWidget.border":"#363B44","editorHoverWidget.border":"#363B44","editorGroupHeader.tabsBackground":"#0B0C0E"},d9e={base:"vs-dark",inherit:!1,rules:[...iie(Oz.tokenColors??[]),...x9e()],colors:{...sie(Oz.colors??{}),...u9e}};function h9e(){return c9e}function rie(e){var n,r;(r=(n=e==null?void 0:e.editor)==null?void 0:n.defineTheme)==null||r.call(n,u2,d9e)}function f9e(e){!e||typeof e!="object"||Az.has(e)||(Az.add(e),Promise.all([nt(()=>import("./index-7DyEIQfy.js"),[],import.meta.url),nt(()=>import("./index-Cgzm_mjY.js"),[],import.meta.url)]).then(async([{shikiToMonaco:n},{createHighlighter:r}])=>{var l,u,d;const i=e.languages,s=new Set(((l=i==null?void 0:i.getLanguages)==null?void 0:l.call(i).map(h=>h.id))??[]);for(const h of["javascript","typescript","json","css","html","markdown","python","yaml","diff"])s.has(h)||((u=i==null?void 0:i.register)==null||u.call(i,{id:h}),s.add(h));const a=await r({themes:["dark-plus"],langs:["javascript","typescript","jsx","tsx","json","css","html","markdown","python","yaml","diff"]});n(a,e),rie(e);const o=e.editor;typeof document<"u"&&document.documentElement.dataset.monacoTheme===u2&&((d=o==null?void 0:o.setTheme)==null||d.call(o,u2))}).catch(n=>{console.error("Failed to initialize Shiki Monaco Dark Plus theme:",n)}))}function p9e(e){var o;const n=m9e(e.text),r=sie(n.colors??{}),i=b9e(n,r),s=((o=n.name)==null?void 0:o.trim())||e.sourceLabel.trim()||"Imported Theme",a=`jait-vscode-${N9e(s)}-${e.id}`;return{id:e.id,name:s,sourceLabel:e.sourceLabel,importedAt:e.importedAt??new Date().toISOString(),colorMode:i,monacoThemeName:a,monacoThemeData:{base:i==="dark"?"vs-dark":"vs",inherit:!0,rules:iie(n.tokenColors??[]),colors:r},cssVariables:v9e(r),rawColors:r,hasInclude:typeof n.include=="string"&&n.include.trim().length>0}}function m9e(e){const n=j9e(C9e(e)),r=JSON.parse(n);if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Theme file must contain a JSON object.");return r}function g9e(e,n){var r;!n||!((r=e==null?void 0:e.editor)!=null&&r.defineTheme)||e.editor.defineTheme(n.monacoThemeName,n.monacoThemeData)}function y9e(e){if(typeof document>"u")return;const n=document.documentElement;n.classList.toggle("dark",e.colorMode==="dark"),n.dataset.monacoTheme=e.monacoThemeName;for(const r of NT)n.style.removeProperty(r);if(NT.clear(),!!e.theme)for(const[r,i]of Object.entries(e.theme.cssVariables))n.style.setProperty(r,i),NT.add(r)}function iie(e){var r;const n=[];for(const i of e){const s=i.settings??{},a=_9e(i.scope);if(a.length===0)continue;const o=Mz(s.foreground),l=Mz(s.background),u=((r=s.fontStyle)==null?void 0:r.trim())||void 0;for(const d of a)n.push({token:d,foreground:o,background:l,fontStyle:u})}return n}function x9e(){return[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"F44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"comment",foreground:"6A9955"},{token:"constant",foreground:"569CD6"},{token:"number",foreground:"B5CEA8"},{token:"regexp",foreground:"D16969"},{token:"string",foreground:"CE9178"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.operator",foreground:"D4D4D4"},{token:"keyword.operator.new",foreground:"C586C0"},{token:"operator",foreground:"D4D4D4"},{token:"type",foreground:"4EC9B0"},{token:"type.identifier",foreground:"4EC9B0"},{token:"class",foreground:"4EC9B0"},{token:"interface",foreground:"4EC9B0"},{token:"enum",foreground:"4EC9B0"},{token:"namespace",foreground:"4EC9B0"},{token:"identifier",foreground:"9CDCFE"},{token:"identifier.function",foreground:"DCDCAA"},{token:"function",foreground:"DCDCAA"},{token:"member",foreground:"DCDCAA"},{token:"method",foreground:"DCDCAA"},{token:"property",foreground:"9CDCFE"},{token:"variable",foreground:"9CDCFE"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"parameter",foreground:"9CDCFE"},{token:"delimiter",foreground:"D4D4D4"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"}]}function v9e(e){const n={},r=si(e,["editor.background","sideBar.background","panel.background"]),i=si(e,["editor.foreground","foreground"]),s=si(e,["sideBar.background","panel.background","editorWidget.background"]),a=si(e,["panel.background","tab.inactiveBackground","editorGroupHeader.tabsBackground"]),o=si(e,["list.hoverBackground","tab.activeBackground","editor.lineHighlightBackground"]),l=si(e,["button.background","focusBorder","textLink.foreground"]),u=si(e,["widget.border","panel.border","sideBar.border","contrastBorder"]);ji(n,"--background",r),ji(n,"--foreground",i),ji(n,"--card",s),ji(n,"--card-foreground",si(e,["sideBar.foreground","foreground"])??i),ji(n,"--popover",si(e,["editorWidget.background","panel.background"])??s),ji(n,"--popover-foreground",si(e,["editorWidget.foreground","foreground"])??i),ji(n,"--primary",l),ji(n,"--primary-foreground",Rz(l)),ji(n,"--secondary",si(e,["tab.inactiveBackground","panel.background"])??a),ji(n,"--secondary-foreground",si(e,["tab.inactiveForeground","foreground"])??i),ji(n,"--muted",a),ji(n,"--muted-foreground",si(e,["descriptionForeground","input.placeholderForeground","disabledForeground"])),ji(n,"--accent",o),ji(n,"--accent-foreground",si(e,["list.activeSelectionForeground","foreground"])??i),ji(n,"--destructive",si(e,["inputValidation.errorBackground","errorForeground","list.errorForeground"])),ji(n,"--destructive-foreground",Rz(si(e,["inputValidation.errorBackground","errorForeground"]))),ji(n,"--border",u),ji(n,"--input",si(e,["input.background","editorWidget.background","dropdown.background"])??u),ji(n,"--ring",si(e,["focusBorder","button.background","textLink.foreground"])??l),ji(n,"--scrollbar-track",si(e,["editor.background","sideBar.background","panel.background"])??r),ji(n,"--scrollbar-thumb",si(e,["scrollbarSlider.background","scrollbar.shadow"])),ji(n,"--scrollbar-thumb-hover",si(e,["scrollbarSlider.hoverBackground","scrollbarSlider.activeBackground","scrollbarSlider.background"])),ji(n,"--toast-bg",si(e,["notifications.background","editorWidget.background","panel.background"])??s,!0),ji(n,"--toast-border",si(e,["notifications.border","widget.border","panel.border"])??u,!0),ji(n,"--toast-success-accent",si(e,["testing.iconPassed","terminal.ansiGreen"])),ji(n,"--toast-info-accent",si(e,["textLink.foreground","focusBorder"])??l),ji(n,"--toast-warning-accent",si(e,["editorWarning.foreground","terminal.ansiYellow"])),ji(n,"--toast-error-accent",si(e,["editorError.foreground","terminal.ansiRed"]));const d=si(e,["editorGroupHeader.tabsBackground","tab.inactiveBackground","sideBar.background"]);d&&(n["--tab-bg"]=d);const h=si(e,["activityBarBadge.background","button.background","focusBorder"]),f=si(e,["textLink.foreground","terminal.ansiBlue"]),m=si(e,["editorWarning.foreground","terminal.ansiYellow"]),x=si(e,["terminal.ansiMagenta","badge.background"]);return h&&(n["--ctx-system"]=h),f&&(n["--ctx-history"]=f),m&&(n["--ctx-tool-results"]=m),x&&(n["--ctx-tools"]=x),n}function ji(e,n,r,i=!1){if(!r)return;const s=w9e(r,i);s&&(e[n]=s)}function Rz(e){const n=P9(e);return n?(.2126*n.r+.7152*n.g+.0722*n.b)/255>.55?"0 0% 7%":"0 0% 100%":null}function b9e(e,n){if(e.type==="light"||e.type==="hc-light")return"light";if(e.type==="dark"||e.type==="hc-dark")return"dark";const r=P9(n["editor.background"]??n["sideBar.background"]??"");return r&&(.2126*r.r+.7152*r.g+.0722*r.b)/255>.55?"light":"dark"}function sie(e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"&&i.trim()&&(n[r]=i.trim());return n}function _9e(e){return Array.isArray(e)?e.flatMap(n=>n.split(",")).map(n=>n.trim()).filter(Boolean):typeof e!="string"?[]:e.split(",").map(n=>n.trim()).filter(Boolean)}function Mz(e){if(!e)return;const n=e.trim();if(n.startsWith("#"))return aie(n).slice(1)}function si(e,n){for(const r of n){const i=e[r];if(typeof i=="string"&&i.trim())return i.trim()}return null}function w9e(e,n=!1){const r=P9(e);if(!r)return null;const i=r.r/255,s=r.g/255,a=r.b/255,o=Math.max(i,s,a),l=Math.min(i,s,a),u=o-l,d=(o+l)/2;let h=0;u!==0&&(o===i?h=(s-a)/u%6:o===s?h=(a-i)/u+2:h=(i-s)/u+4,h*=60),h<0&&(h+=360);const f=u===0?0:u/(1-Math.abs(2*d-1)),m=`${Math.round(h)} ${Math.round(f*100)}% ${Math.round(d*100)}%`;return n&&r.a<1?`${m} / ${Number(r.a.toFixed(3))}`:m}function P9(e){if(!e)return null;const n=e.trim();if(!n)return null;if(n.startsWith("#"))return S9e(n);const r=n.match(/^rgba?\(([^)]+)\)$/i);if(!r)return null;const i=r[1].split(",").map(u=>u.trim());if(i.length<3)return null;const s=TT(i[0]),a=TT(i[1]),o=TT(i[2]),l=i[3]==null?1:k9e(i[3]);return s==null||a==null||o==null||l==null?null:{r:s,g:a,b:o,a:l}}function S9e(e){const n=aie(e).slice(1);return n.length===6?{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16),a:1}:n.length===8?{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16),a:Number.parseInt(n.slice(6,8),16)/255}:null}function TT(e){if(e.endsWith("%")){const r=Number.parseFloat(e.slice(0,-1));return Number.isFinite(r)?Pz(Math.round(r/100*255)):null}const n=Number.parseFloat(e);return Number.isFinite(n)?Pz(Math.round(n)):null}function k9e(e){const n=Number.parseFloat(e);return Number.isFinite(n)?Math.max(0,Math.min(1,n)):null}function Pz(e){return Math.max(0,Math.min(255,e))}function aie(e){const n=e.trim().slice(1);return n.length===3||n.length===4?`#${n.split("").map(r=>`${r}${r}`).join("").toLowerCase()}`:`#${n.toLowerCase()}`}function C9e(e){let n="",r=!1,i=!1,s=!1,a=!1;for(let o=0;o<e.length;o+=1){const l=e[o],u=e[o+1];if(i){l===`
1127
1127
  `&&(i=!1,n+=l);continue}if(s){l==="*"&&u==="/"&&(s=!1,o+=1);continue}if(r){n+=l,a?a=!1:l==="\\"?a=!0:l==='"'&&(r=!1);continue}if(l==='"'){r=!0,n+=l;continue}if(l==="/"&&u==="/"){i=!0,o+=1;continue}if(l==="/"&&u==="*"){s=!0,o+=1;continue}n+=l}return n}function j9e(e){return e.replace(/,\s*([}\]])/g,"$1")}function N9e(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,40)||"theme"}function Lz(){if(typeof document>"u")return"vs";const e=document.documentElement;return e.dataset.monacoTheme??(e.classList.contains("dark")?u2:"vs")}function _S(){const[e,n]=y.useState(Lz);return y.useEffect(()=>{if(typeof document>"u")return;const r=document.documentElement,i=()=>n(Lz());i();const s=new MutationObserver(i);return s.observe(r,{attributes:!0,attributeFilter:["class","data-monaco-theme"]}),()=>s.disconnect()},[]),e}const L9="jait:vscode-theme-store",A3=new Set;let yd=lie(),$z=!1;function oie(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}function lie(){const e=oie();if(!e)return{importedThemes:[],activeThemeId:null};let n=null;try{n=e.getItem(L9)}catch{return{importedThemes:[],activeThemeId:null}}if(!n)return{importedThemes:[],activeThemeId:null};try{const r=JSON.parse(n),i=Array.isArray(r.importedThemes)?r.importedThemes.filter(a=>!!(a&&typeof a.id=="string"&&typeof a.monacoThemeName=="string")):[],s=typeof r.activeThemeId=="string"?r.activeThemeId:null;return{importedThemes:i,activeThemeId:i.some(a=>a.id===s)?s:null}}catch{return{importedThemes:[],activeThemeId:null}}}function $9(e){yd=e;const n=oie();if(n)try{n.setItem(L9,JSON.stringify(e))}catch{}for(const r of A3)r()}function T9e(e){return!$z&&typeof window<"u"&&($z=!0,window.addEventListener("storage",n=>{if(n.key===L9){yd=lie();for(const r of A3)r()}})),A3.add(e),()=>A3.delete(e)}function Dz(){return yd}function cie(){const e=y.useSyncExternalStore(T9e,Dz,Dz);return{...e,activeTheme:e.importedThemes.find(n=>n.id===e.activeThemeId)??null}}function uie(){return yd.importedThemes.find(e=>e.id===yd.activeThemeId)??null}function E9e(e,n){const r=`${Date.now().toString(36)}-${R9e(e+n)}`,i=p9e({id:r,sourceLabel:e,text:n});return $9({importedThemes:[...yd.importedThemes.filter(s=>s.id!==r),i],activeThemeId:r}),i}function X5(e){$9({...yd,activeThemeId:e&&yd.importedThemes.some(n=>n.id===e)?e:null})}function A9e(e){$9({importedThemes:yd.importedThemes.filter(n=>n.id!==e),activeThemeId:yd.activeThemeId===e?null:yd.activeThemeId})}function O9e(e){rie(e);const n=uie();n?g9e(e,n):f9e(e)}function Kl(e,n){var r,i;O9e(e),n&&((i=(r=e==null?void 0:e.editor)==null?void 0:r.setTheme)==null||i.call(r,n))}function R9e(e){let n=0;for(let r=0;r<e.length;r+=1)n=(n<<5)-n+e.charCodeAt(r)|0;return Math.abs(n).toString(36)}function Iz(e){return e.split(`
1128
1128
  `)}function M9e(e,n){const r=e.length+1,i=n.length+1,s=Array.from({length:r},()=>Array(i).fill(0));for(let a=e.length-1;a>=0;a-=1)for(let o=n.length-1;o>=0;o-=1)e[a]===n[o]?s[a][o]=(s[a+1][o+1]??0)+1:s[a][o]=Math.max(s[a+1][o]??0,s[a][o+1]??0);return s}function die(e,n){var u,d;const r=Iz(e),i=Iz(n),s=M9e(r,i),a=[];let o=0,l=0;for(;o<r.length||l<i.length;){if(o<r.length&&l<i.length&&r[o]===i[l]){o+=1,l+=1;continue}const h=o,f=l;for(;(o<r.length||l<i.length)&&!(o<r.length&&l<i.length&&r[o]===i[l]);){const m=o<r.length?((u=s[o+1])==null?void 0:u[l])??0:-1,x=l<i.length?((d=s[o])==null?void 0:d[l+1])??0:-1;l>=i.length||o<r.length&&m>=x?o+=1:l+=1}a.push({originalStartLineNumber:h<o?h+1:o,originalEndLineNumber:h<o?o:0,modifiedStartLineNumber:f<l?f+1:l,modifiedEndLineNumber:f<l?l:0})}return a.map((h,f)=>({...h,index:f,state:"undecided"}))}function hie(e,n,r){const i=[...e];for(let s=r.length-1;s>=0;s-=1){const a=r[s];if(!a||a.state==="rejected")continue;const o=a.modifiedEndLineNumber===0?[]:n.slice(a.modifiedStartLineNumber-1,a.modifiedEndLineNumber);if(a.originalEndLineNumber===0)i.splice(a.originalStartLineNumber,0,...o);else{const l=a.originalStartLineNumber-1,u=a.originalEndLineNumber-a.originalStartLineNumber+1;i.splice(l,u,...o)}}return i.join(`
1129
1129
  `)}function J5(e){return e.modifiedStartLineNumber>0?e.modifiedStartLineNumber:e.modifiedEndLineNumber>0?e.modifiedEndLineNumber:Math.max(1,e.originalStartLineNumber)}function Bz({filePath:e,originalContent:n,modifiedContent:r,language:i,onClose:s,onApply:a}){const o=y.useRef(null),l=y.useRef(null),[u,d]=y.useState([]),[h,f]=y.useState([]),[m,x]=y.useState(0),[v,_]=y.useState(()=>typeof window<"u"&&window.innerWidth<768),w=_S(),S=e.split(/[/\\]/).pop()??e;y.useEffect(()=>{const P=()=>_(window.innerWidth<768);return P(),window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[]),y.useEffect(()=>{f(P=>{const F=die(n,r);return P.length===F.length?F.map((G,W)=>{var V;return{...G,state:((V=P[W])==null?void 0:V.state)??"undecided"}}):F}),x(0)},[n,r]);const C=y.useCallback(()=>{var J,U;const P=(U=(J=o.current)==null?void 0:J.getModifiedEditor)==null?void 0:U.call(J);if(!P||h.length===0){d([]);return}const F=P.getScrollTop(),G=P.getLayoutInfo(),W=P.getScrollHeight()>0?P.getScrollHeight():G.height,V=h.flatMap(Q=>{if(Q.state!=="undecided")return[];const X=J5(Q),ee=P.getTopForLineNumber(X)-F+2;return!Number.isFinite(ee)||ee<-28||ee>W?[]:[{hunkIndex:Q.index,top:ee}]});d(V)},[h]),j=y.useRef([]),T=y.useCallback((P,F)=>{o.current=P,l.current=F,Kl(F,w);const G=P.getModifiedEditor();j.current=[G.onDidScrollChange(()=>C()),G.onDidLayoutChange(()=>C()),G.onDidContentSizeChange(()=>C()),P.onDidUpdateDiff(()=>C())],window.setTimeout(C,0)},[w,C]);y.useEffect(()=>{Kl(l.current,w)},[w]),y.useEffect(()=>()=>{var F,G;for(const W of j.current)W.dispose();j.current=[];const P=o.current;if(P)try{const W=P.getModel();P.dispose(),(F=W==null?void 0:W.original)==null||F.dispose(),(G=W==null?void 0:W.modified)==null||G.dispose()}catch{}o.current=null,l.current=null},[]),y.useEffect(()=>{if(!o.current||h.length===0)return;const P=h[m];if(!P)return;const F=J5(P);try{o.current.getModifiedEditor().revealLineInCenter(F)}catch{}},[m,h]),y.useEffect(()=>{if(!o.current||!l.current||h.length===0)return;const P=l.current,F=o.current.getModifiedEditor(),G=[];for(const V of h){if(V.state==="undecided")continue;const J=V.modifiedEndLineNumber>0?V.modifiedStartLineNumber:V.originalStartLineNumber,U=V.modifiedEndLineNumber>0?V.modifiedEndLineNumber:V.originalStartLineNumber;G.push({range:new P.Range(J,1,U,1),options:{isWholeLine:!0,className:V.state==="accepted"?"diff-hunk-accepted":"diff-hunk-rejected",overviewRuler:{color:V.state==="accepted"?"#22c55e44":"#ef444444",position:P.editor.OverviewRulerLane.Full}}})}const W=F.deltaDecorations([],G);return()=>{try{F.deltaDecorations(W,[])}catch{}}},[h]),y.useEffect(()=>{C()},[C,m,h]),y.useEffect(()=>{if(!o.current||!l.current||h.length===0)return;const P=l.current,F=o.current.getModifiedEditor(),G=h[m];if(!G)return;const W=G.modifiedEndLineNumber>0?G.modifiedStartLineNumber:G.originalStartLineNumber,V=G.modifiedEndLineNumber>0?G.modifiedEndLineNumber:G.originalStartLineNumber,J=F.deltaDecorations([],[{range:new P.Range(W,1,V,1),options:{isWholeLine:!0,className:"diff-hunk-active"}}]);return()=>{try{F.deltaDecorations(J,[])}catch{}}},[m,h]);const E=y.useCallback((P,F)=>{f(G=>{const W=G.map((J,U)=>U===P?{...J,state:F}:J),V=W.findIndex((J,U)=>U>P&&J.state==="undecided");return V>=0&&x(V),W})},[]),N=y.useCallback(()=>E(m,"accepted"),[m,E]),R=y.useCallback(()=>E(m,"rejected"),[m,E]),$=y.useCallback(()=>{f(P=>P.map(F=>({...F,state:"accepted"})))},[]),q=y.useCallback(()=>{f(P=>P.map(F=>({...F,state:"rejected"})))},[]),z=y.useCallback(()=>{x(P=>Math.min(P+1,h.length-1))},[h.length]),B=y.useCallback(()=>{x(P=>Math.max(P-1,0))},[]),H=y.useCallback(()=>{const P=h.findIndex((G,W)=>W>m&&G.state==="undecided");if(P>=0){x(P);return}const F=h.findIndex(G=>G.state==="undecided");F>=0&&x(F)},[h,m]),D=y.useMemo(()=>h.filter(P=>P.state==="undecided").length,[h]),O=h.length>0&&D===0,I=h[m],M=y.useCallback(()=>{const P=n.split(`
@@ -1395,7 +1395,7 @@ Referenced files:
1395
1395
  `||vn===" "||sn===1)&&wt.current&&(Be(""),Ie(!0))}if(St.current){const vn=Qn.lastIndexOf("/",sn-1);if(vn<0||sn<=vn)jt(!1);else{const vt=Qn.slice(vn+1,sn);vt.includes(" ")||vt.includes(`
1396
1396
  `)||vt.includes("/")?jt(!1):ft(vt)}}else if(sn>0&&Qn[sn-1]==="/"){const vn=sn>1?Qn[sn-2]:" ";(vn===" "||vn===`
1397
1397
  `||vn===" "||sn===1)&&Ee.current.length>0&&(Ie(!1),ft(""),jt(!0))}};return Me.addEventListener("input",st),()=>Me.removeEventListener("input",st)},[]);const ho=y.useCallback(Me=>{if((Me.ctrlKey||Me.metaKey)&&!Me.altKey){if(Me.key==="z"&&!Me.shiftKey){Me.preventDefault();const st=It.current;if(st.length===0)return;We.current.push([..._e.current]);const Kt=st.pop();Di(Kt);return}if(Me.key==="z"&&Me.shiftKey||Me.key==="y"){Me.preventDefault();const st=We.current;if(st.length===0)return;It.current.push([..._e.current]);const Kt=st.pop();Di(Kt);return}}if(Ht&&yn.length>0){if(Me.key==="ArrowDown"){Me.preventDefault(),_t(st=>Math.min(st+1,yn.length-1));return}if(Me.key==="ArrowUp"){Me.preventDefault(),_t(st=>Math.max(st-1,0));return}if(Me.key==="Enter"||Me.key==="Tab"){Me.preventDefault(),yn[Rt]&&Ei(yn[Rt]);return}if(Me.key==="Escape"){Me.preventDefault(),jt(!1);return}}if(ge){if(Me.key==="ArrowDown"){Me.preventDefault(),ht(st=>Math.min(st+1,Vn.length-1));return}if(Me.key==="ArrowUp"){Me.preventDefault(),ht(st=>Math.max(st-1,0));return}if(Me.key==="Enter"||Me.key==="Tab"){Me.preventDefault(),Vn[Tt]&&Bo(Vn[Tt]);return}if(Me.key==="Escape"){Me.preventDefault(),Ie(!1);return}}if(Me.key==="Backspace"){const st=se.current;if(!st)return;const Kt=window.getSelection();if(!Kt||Kt.rangeCount===0)return;const xn=Kt.getRangeAt(0);if(!xn.collapsed)return;const{startContainer:pn,startOffset:tn}=xn;if(pn===st||pn.parentNode===st){const sn=pn===st?tn:Array.from(st.childNodes).indexOf(pn);if(Uct({startContainerIsRoot:pn===st,startContainerIsText:pn.nodeType===Node.TEXT_NODE,startOffset:tn,childIndex:sn})){const mn=st.childNodes[sn-1];if(mn instanceof HTMLElement&&mn.hasAttribute("data-chip-ref")){Me.preventDefault();const yr=mn.nextSibling;mn.remove(),MV(st,yr,sn),_e.current=eo(st),Ln.current=!0,xe.current(Xs(st)),Ln.current=!1,ut(Yu(Xs(st))&&!Xu(st));return}}}if(pn.nodeType===Node.TEXT_NODE&&tn===0){const sn=pn.previousSibling;if(sn instanceof HTMLElement&&sn.hasAttribute("data-chip-ref")){Me.preventDefault();const Qn=sn.nextSibling;sn.remove(),MV(st,Qn,Array.from(st.childNodes).indexOf(pn)+1),_e.current=eo(st),Ln.current=!0,xe.current(Xs(st)),Ln.current=!1,ut(Yu(Xs(st))&&!Xu(st));return}}}if(Me.key==="Enter"&&!Me.shiftKey){Me.preventDefault();const st=se.current,Kt=st?Xs(st).trim():n.trim(),xn=st?o8(st):[],pn=st?eo(st):$s(Q),tn=pn.some(sn=>sn.type!=="text"&&sn.type!=="image");if(!(Kt||xn.length>0||tn||Oe.length>0))return;if(jV({isLoading:o,sendTarget:E,hasQueueHandler:!!a})&&a){a(xn,Oe,pn),Ct([]),ci();return}(!o||E==="thread")&&(i(xn,Oe,pn),Ct([]),ci())}},[ge,Vn,Tt,Bo,Ht,yn,Rt,Ei,n,o,E,a,i,Oe,Q,ci,Di]),Ua=y.useCallback(Me=>new Promise((st,Kt)=>{const xn=new FileReader;xn.onload=()=>{const pn=xn.result,tn=pn.split(",")[1]??"",sn=Me.type.startsWith("image/");st({name:Me.name,mimeType:Me.type||"application/octet-stream",data:tn,preview:sn?pn:void 0})},xn.onerror=Kt,xn.readAsDataURL(Me)}),[]),_i=y.useCallback(async Me=>{const st=await Promise.all(Array.from(Me).map(Ua));Ct(Kt=>{const xn=new Set(Kt.map(pn=>pn.name));return[...Kt,...st.filter(pn=>!xn.has(pn.name))]}),ut(!1)},[Ua]),Fh=y.useCallback(Me=>{Ct(st=>{const Kt=st.filter(pn=>pn.name!==Me),xn=se.current;return Kt.length===0&&xn&&Yu(Xs(xn))&&!Xu(xn)&&ut(!0),Kt})},[]),fp=y.useCallback(Me=>{if(!se.current)return;const Kt=window.getSelection();if(!Kt||Kt.rangeCount===0||Kt.isCollapsed)return;const pn=Kt.getRangeAt(0).cloneContents(),tn=document.createElement("div");tn.appendChild(pn);const sn=[],Qn=mn=>{if(mn.nodeType===Node.TEXT_NODE){const yr=mn.textContent??"";yr&&sn.push({type:"text",text:yr});return}if(mn instanceof HTMLElement){if(mn.hasAttribute("data-chip-ref")){const yr=mn.getAttribute("data-segment-type");if(yr==="project"){const bn=mn.getAttribute("data-project-path");sn.push({type:"project",path:bn,name:mn.getAttribute("data-chip-name")||bn.split("/").pop()||bn});return}if(yr==="terminal"){const bn=mn.getAttribute("data-terminal-id"),hi=mn.getAttribute("data-project-root");sn.push({type:"terminal",terminalId:bn,name:mn.getAttribute("data-chip-name")||bn,...hi?{projectRoot:hi}:{},...Lw(mn),...mn.getAttribute("data-selected-text")?{selectedText:mn.getAttribute("data-selected-text")}:{}});return}const vn=mn.getAttribute("data-file-path"),vt=mn.getAttribute("data-kind");sn.push({type:"file",path:vn,name:mn.getAttribute("data-chip-name")||vn.split(/[\\/]/).pop()||vn,...vt==="file"||vt==="dir"?{kind:vt}:{},...Lw(mn)});return}if(mn.tagName==="BR"){sn.push({type:"text",text:`
1398
- `});return}for(const yr of mn.childNodes)Qn(yr)}};for(const mn of tn.childNodes)Qn(mn);if(sn.some(mn=>mn.type==="file"||mn.type==="project"||mn.type==="terminal")){Me.preventDefault(),Me.clipboardData.setData("text/plain",wue(sn));const mn=Sue(sn);mn&&Me.clipboardData.setData(jj,mn)}},[]),hr=y.useCallback(Me=>{var mn,yr;const st=se.current,Kt=Me.clipboardData.items,xn=[];for(let vn=0;vn<Kt.length;vn++)if((mn=Kt[vn])!=null&&mn.type.startsWith("image/")){const vt=(yr=Kt[vn])==null?void 0:yr.getAsFile();vt&&xn.push(vt)}if(xn.length>0){Me.preventDefault(),_i(xn);return}if(!st)return;const pn=Hct(Me.clipboardData.getData(jj)),tn=pn.length>0?pn:Fct(Me.clipboardData.getData("text/plain"));if(tn.length>0){Me.preventDefault(),Qct(st,tn,Dr),_e.current=eo(st),Ln.current=!0,r(Xs(st)),Ln.current=!1,ut(Yu(Xs(st))&&!Xu(st)),PV(st);return}Me.preventDefault();const sn=Me.clipboardData.getData("text/plain");if(!sn)return;on(!0),eut(st,sn),_e.current=eo(st);const Qn=Xs(st);Ln.current=!0,r(Qn),Ln.current=!1,ut(Yu(Qn)&&!Xu(st)),PV(st)},[_i,Dr,r,on]),or=y.useCallback(Me=>{Me.preventDefault(),Me.stopPropagation(),Pt.current++,Pt.current===1&&Ot(!0)},[]),fr=y.useCallback(Me=>{Me.preventDefault(),Me.stopPropagation(),Pt.current--,Pt.current===0&&Ot(!1)},[]),Wi=y.useCallback(Me=>{Me.preventDefault(),Me.stopPropagation(),Me.dataTransfer.dropEffect="copy"},[]),Ne=y.useCallback(Me=>{var Qn,mn,yr,vn,vt;Me.preventDefault(),Me.stopPropagation(),Pt.current=0,Ot(!1);const st=se.current;if(!st)return;const Kt=bn=>{if(st.querySelector(`[data-chip-ref="${CSS.escape(Ej(bn))}"]`))return!1;const hi="type"in bn?bn:{type:"file",path:bn.path,name:bn.name,...bn.kind?{kind:bn.kind}:{}};return LV(st,[hi],Dr),_e.current=eo(st),hm(st),Ln.current=!0,r(Xs(st)),Ln.current=!1,ut(!1),!0},xn=Me.dataTransfer.getData("text/jait-file");if(xn){try{const bn=JSON.parse(xn);Kt(bn)}catch{}return}const pn=Me.dataTransfer.getData(bue);if(pn){try{const bn=JSON.parse(pn);Kt({type:"project",...bn})}catch{}return}const tn=Me.dataTransfer.getData(_ue);if(tn){try{const bn=JSON.parse(tn);Kt({type:"terminal",...bn})}catch{}return}const sn=(Qn=window.jaitDesktop)==null?void 0:Qn.getPathForFile;if((mn=Me.dataTransfer.files)!=null&&mn.length&&sn){const bn=Array.from(Me.dataTransfer.files),hi=Me.dataTransfer.items;let wi=!1;C7(st);for(let aa=0;aa<bn.length;aa++){const es=bn[aa];if(!es)continue;const Fr=sn(es);if(!Fr)continue;const fo=Fr.split(/[\\/]/).pop()??Fr,vl=(vn=(yr=hi==null?void 0:hi[aa])==null?void 0:yr.webkitGetAsEntry)==null?void 0:vn.call(yr),oa=vl!=null&&vl.isDirectory||es.type===""&&es.size===0?"dir":"file";wi=Kt({path:Fr,name:fo,kind:oa})||wi}wi&&Lt.current(!0)}else(vt=Me.dataTransfer.files)!=null&&vt.length&&_i(Me.dataTransfer.files)},[r,Dr,_i]);return c.jsxs("div",{ref:le,className:ke("group relative z-10 flex flex-col rounded-2xl border bg-background dark:bg-card focus-within:border-primary/50 focus-within:ring-2 focus-within:ring-primary/20",pt&&"ring-2 ring-primary/30 border-primary/40",f),onDragEnter:or,onDragLeave:fr,onDragOver:Wi,onDrop:Ne,children:[Ze&&c.jsxs("div",{className:"absolute top-2 right-3 z-10 flex items-center gap-1 text-[10px] leading-none text-muted-foreground",title:(V==null?void 0:V.trim())||Ze,children:[c.jsxs("span",{className:"block truncate max-w-[180px] pointer-events-none",children:[c.jsx("span",{className:"font-semibold text-foreground/60",children:"PROJECT"})," ",Ze]}),J&&c.jsx("button",{type:"button","aria-label":"Copy chat id",title:`Copy chat id: ${J}`,className:"pointer-events-auto shrink-0 rounded p-0.5 text-muted-foreground/40 opacity-0 transition-all hover:text-foreground hover:bg-muted/60 focus-visible:opacity-100 focus-visible:text-foreground group-hover:opacity-100 group-focus-within:opacity-100",onClick:async Me=>{Me.preventDefault();try{await navigator.clipboard.writeText(J),Qt(!0),setTimeout(()=>Qt(!1),1200)}catch{}},children:an?c.jsx(Qi,{className:"h-2.5 w-2.5 text-emerald-500"}):c.jsx(nl,{className:"h-2.5 w-2.5"})})]}),Oe.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2 px-3 pt-3",children:Oe.map(Me=>c.jsxs("div",{className:"group relative flex items-center gap-1.5 rounded-lg border bg-muted/50 px-2 py-1.5 text-xs",children:[Me.preview?c.jsx("img",{src:Me.preview,alt:Me.name,className:"h-8 w-8 rounded object-cover"}):c.jsx(xa,{filename:Me.name,className:"h-4 w-4 shrink-0"}),c.jsx("span",{className:"max-w-[120px] truncate",children:Me.name}),c.jsx("button",{type:"button",className:"ml-0.5 rounded-full p-0.5 text-muted-foreground hover:bg-destructive/10 hover:text-destructive transition-colors",onClick:()=>Fh(Me.name),children:c.jsx(qr,{className:"h-3 w-3"})})]},Me.name))}),c.jsx("input",{ref:je,type:"file",multiple:!0,accept:"image/*,.txt,.md,.ts,.tsx,.js,.jsx,.py,.json,.yaml,.yml,.toml,.css,.html,.xml,.csv,.log,.sh,.bat,.rs,.go,.java,.c,.cpp,.h,.hpp",className:"hidden",onChange:Me=>{var st;(st=Me.target.files)!=null&&st.length&&(_i(Me.target.files),Me.target.value="")}}),c.jsxs("div",{className:"relative px-3 pt-3 pb-1.5",children:[Ut&&c.jsx("div",{className:"absolute top-5 left-5 pointer-events-none text-muted-foreground leading-relaxed select-none [font-size:0.9rem]",children:h}),c.jsx("div",{ref:se,contentEditable:!Ae,role:"textbox","aria-multiline":!0,suppressContentEditableWarning:!0,onKeyDown:ho,onPaste:hr,onCopy:fp,onDrop:Me=>{Me.preventDefault()},onDragStart:Me=>{Me.preventDefault()},onBeforeInput:Me=>{const st=Me.nativeEvent.inputType;(st==="insertFromDrop"||st==="insertHTML")&&Me.preventDefault()},className:ke("min-h-[40px] max-h-[200px] overflow-y-auto leading-relaxed outline-none py-2 px-2 text-foreground [font-size:0.9rem]","whitespace-pre-wrap break-words",Ae&&"cursor-not-allowed opacity-50"),style:{wordBreak:"break-word"}})]}),ge&&(Vn.length>0||zn)&&c.jsxs("div",{ref:we,className:"absolute left-3 bottom-full mb-1 w-72 max-h-52 overflow-y-auto rounded-lg border bg-popover p-1 shadow-lg z-50",children:[Vn.map((Me,st)=>c.jsxs("button",{type:"button",className:ke("flex items-center gap-2 w-full text-left text-xs px-2 py-1.5 rounded-md transition-colors",st===Tt?"bg-accent text-accent-foreground":"hover:bg-muted"),onMouseDown:Kt=>{Kt.preventDefault(),Bo(Me)},onMouseEnter:()=>ht(st),children:[Me.kind==="dir"?c.jsx(V4,{name:Me.name,className:"h-3.5 w-3.5 shrink-0"}):c.jsx(xa,{filename:Me.name,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"truncate",children:Me.path})]},Me.path)),zn&&c.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5 text-xs text-muted-foreground",children:[c.jsx("span",{className:"h-3 w-3 animate-spin rounded-full border-2 border-current border-t-transparent"}),"Searching..."]}),!zn&&Vn.length===0&&c.jsx("div",{className:"text-xs text-muted-foreground px-2 py-1.5",children:"No matching files or folders"})]}),Ht&&c.jsxs("div",{ref:Ue,className:"absolute left-3 bottom-full mb-1 w-80 max-h-60 overflow-y-auto rounded-lg border bg-popover p-1 shadow-lg z-50",children:[c.jsx("div",{className:"px-2 py-1 text-2xs font-medium uppercase tracking-wide text-muted-foreground/70",children:"Skills"}),yn.map((Me,st)=>c.jsxs("button",{type:"button",className:ke("flex w-full flex-col items-start gap-0.5 rounded-md px-2 py-1.5 text-left transition-colors",st===Rt?"bg-accent text-accent-foreground":"hover:bg-muted"),onMouseDown:Kt=>{Kt.preventDefault(),Ei(Me)},onMouseEnter:()=>_t(st),children:[c.jsxs("span",{className:"flex w-full items-center gap-1.5 text-xs font-medium",children:[c.jsx("span",{className:"text-muted-foreground",children:"/"}),c.jsx("span",{className:"truncate",children:Me.name})]}),Me.description&&c.jsx("span",{className:"line-clamp-1 text-2xs text-muted-foreground",children:Me.description})]},Me.id)),yn.length===0&&c.jsx("div",{className:"px-2 py-1.5 text-xs text-muted-foreground",children:"No matching skills"})]}),c.jsxs("div",{className:"flex min-w-0 items-start gap-2 px-3 pb-2.5 pt-0.5",children:[Dt&&c.jsx("div",{className:"min-w-0 flex-1",children:Wt&&c.jsx("div",{className:"min-w-0 overflow-x-auto scrollbar-none",children:c.jsxs("div",{className:"flex min-w-max items-center gap-1 pr-1",children:[m,ye&&c.jsx(_7,{target:E,onChange:N,disabled:Je,compact:ze}),ot&&c.jsx(Sct,{value:z,onChange:B,disabled:Je,compact:ze}),Jt&&c.jsx(Mct,{provider:$,model:O??null,onProviderChange:q,onModelChange:I,disabled:Je,compact:ze,repoRuntime:M,onMoveToGateway:P,sessionInfo:F,projectNodeId:G}),fe&&c.jsx(Pct,{provider:$,value:H,onChange:D,disabled:Je,compact:ze}),qe&&c.jsx(wct,{mode:j,onChange:T,disabled:Je,compact:ze})]})})}),c.jsxs("div",{className:ke("flex shrink-0 items-center gap-1.5",Dt?"pl-1":"ml-auto"),children:[c.jsx(me,{type:"button",size:"icon",variant:"ghost",className:"h-8 w-8 shrink-0 rounded-lg",onClick:()=>{var Me;return(Me=je.current)==null?void 0:Me.click()},title:"Attach files",children:c.jsx(AY,{className:"h-4 w-4"})}),v&&!_&&!S&&c.jsx(me,{type:"button",size:"icon",variant:"ghost",className:"h-8 w-8 shrink-0 rounded-lg",onClick:v,title:"Voice input",children:c.jsx(l0,{className:"h-4 w-4"})}),_&&C&&c.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[c.jsxs("span",{className:"flex shrink-0 items-center gap-1.5 text-xs font-medium text-foreground/80",children:[c.jsx("span",{className:"h-2 w-2 rounded-full bg-foreground/70 animate-pulse"}),!Ce&&"Listening..."]}),c.jsx(Cue,{levels:w,compact:Ce}),c.jsxs(me,{type:"button",size:"sm",variant:"outline",className:ke("h-7 shrink-0 rounded-lg text-xs",Ce?"px-2":"px-2.5"),onClick:C,children:[c.jsx(Qw,{className:ke("h-3.5 w-3.5",!Ce&&"mr-1")}),!Ce&&"Done"]})]}),S&&c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsx($t,{className:"h-3.5 w-3.5 animate-spin"}),"Transcribing..."]}),x,o&&E!=="thread"&&c.jsx(me,{type:"button",size:"icon",variant:"outline",className:"h-8 w-8 shrink-0 rounded-lg",onClick:s,title:"Stop generating",children:c.jsx(hx,{className:"h-3.5 w-3.5 fill-current"})}),$r&&gr?c.jsx(me,{type:"button",size:"icon",className:"h-8 w-8 shrink-0 rounded-lg",disabled:!0,title:"Sending",children:c.jsx($t,{className:"h-4 w-4 animate-spin"})}):$r&&a?c.jsx(me,{type:"button",size:"icon",variant:"secondary",className:"h-8 w-8 shrink-0 rounded-lg",disabled:gr||Ae,title:"Add to queue",onClick:()=>{const Me=se.current,st=Me?o8(Me):[],Kt=Me?eo(Me):$s(Q);a(st,Oe,Kt),Ct([]),ci()},children:c.jsx(eM,{className:"h-4 w-4"})}):!o||E==="thread"?c.jsx(me,{type:"button",size:"icon",className:"h-8 w-8 shrink-0 rounded-lg",disabled:!!l||gr||Ae,title:l?"Loading chat":void 0,onClick:()=>{const Me=se.current,st=Me?o8(Me):[],Kt=Me?eo(Me):$s(Q);i(st,Oe,Kt),Ct([]),ci()},children:l?c.jsx($t,{className:"h-4 w-4 animate-spin"}):c.jsx(_Y,{className:"h-4 w-4"})}):c.jsx(me,{type:"button",size:"icon",className:"h-8 w-8 shrink-0 rounded-lg",disabled:!0,title:"Sending",children:c.jsx($t,{className:"h-4 w-4 animate-spin"})})]})]})]})}),jue="jait.todo.order.v1",Nue="jait.todo.filters.v1",WC=8,c8=[{value:"open",label:"Open"},{value:"in_progress",label:"In progress"},{value:"done",label:"Done"}],Cb=[{value:"low",label:"Low"},{value:"normal",label:"Normal"},{value:"high",label:"High"}];function Jg(e){switch(e){case"done":return{label:"Done",iconClassName:"text-emerald-500",itemClassName:"border-emerald-500/20 bg-emerald-500/[0.04]"};case"in_progress":return{label:"In progress",iconClassName:"text-sky-500",itemClassName:"border-sky-500/20 bg-sky-500/[0.035]"};case"open":default:return{label:"Open",iconClassName:"text-muted-foreground",itemClassName:"bg-card/40"}}}function Tue(e){switch(e){case"high":return"text-amber-500";case"low":return"text-muted-foreground/70";case"normal":default:return"text-primary/70"}}function n_({status:e,className:n}){const r=Jg(e);return e==="done"?c.jsx(js,{className:ke("h-5 w-5",r.iconClassName,n)}):e==="in_progress"?c.jsx(SY,{className:ke("h-5 w-5",r.iconClassName,n)}):c.jsx(ZR,{className:ke("h-5 w-5",r.iconClassName,n)})}function $V({priority:e,className:n}){return c.jsx(CY,{className:ke("h-4 w-4",Tue(e),n)})}function Eg({label:e,children:n}){return c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:n}),c.jsx(mr,{children:e})]})}function Eue(){if(typeof window>"u")return{};try{const e=JSON.parse(window.localStorage.getItem(jue)??"{}");return!e||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(n=>typeof n[0]=="string"&&Array.isArray(n[1])&&n[1].every(r=>typeof r=="string")))}catch{return{}}}function DV(e,n){if(!(typeof window>"u"||!e))try{const r=Eue();r[e]=n.map(i=>i.id),window.localStorage.setItem(jue,JSON.stringify(r))}catch{}}function rut(e,n){const r=Eue()[e];if(!(r!=null&&r.length))return n;const i=new Map(r.map((a,o)=>[a,o])),s=new Map(n.map((a,o)=>[a.id,o]));return[...n].sort((a,o)=>{const l=i.get(a.id),u=i.get(o.id);return l!=null&&u!=null?l-u:l!=null?-1:u!=null?1:(s.get(a.id)??0)-(s.get(o.id)??0)})}function iut(){return{search:""}}function Aue(){if(typeof window>"u")return{};try{const e=JSON.parse(window.localStorage.getItem(Nue)??"{}");if(!e||typeof e!="object"||Array.isArray(e))return{};const n=Object.entries(e).flatMap(([r,i])=>{if(!i||typeof i!="object"||Array.isArray(i))return[];const s=i;return[[r,{search:typeof s.search=="string"?s.search:""}]]});return Object.fromEntries(n)}catch{return{}}}function sut(e){return Aue()[e]??iut()}function aut(e,n){if(!(typeof window>"u"||!e))try{const r=Aue();r[e]={search:n.search},window.localStorage.setItem(Nue,JSON.stringify(r))}catch{}}function IV(e,n,r,i){const s=e.findIndex(u=>u.id===n);if(s<0)return e;const a=[...e],[o]=a.splice(s,1);if(!o)return e;if(r==null)return a.push(o),a;const l=a.findIndex(u=>u.id===r);return l<0?e:(a.splice(l+(i==="after"?1:0),0,o),a)}function BV(){if(!(typeof window>"u"))try{const e=window.AudioContext||window.webkitAudioContext;if(!e)return;const n=new e,r=n.currentTime,i=n.createGain();i.gain.setValueAtTime(1e-4,r),i.gain.exponentialRampToValueAtTime(.08,r+.012),i.gain.exponentialRampToValueAtTime(1e-4,r+.34),i.connect(n.destination);for(const[s,a]of[660,880].entries()){const o=n.createOscillator();o.type="sine",o.frequency.setValueAtTime(a,r+s*.08),o.connect(i),o.start(r+s*.08),o.stop(r+.22+s*.08)}window.setTimeout(()=>void n.close(),450)}catch{}}function out({todo:e}){const n=Jg(e.status);return c.jsxs("div",{className:ke("flex items-start gap-2 rounded-lg border bg-background px-3 py-2 text-sm shadow-2xl ring-1 ring-primary/10",n.itemClassName),children:[c.jsx(n4,{className:"mt-1 h-4 w-4 shrink-0 text-muted-foreground"}),c.jsx(n_,{status:e.status,className:"mt-0.5 shrink-0"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"mb-1 flex items-center gap-1.5 text-[11px] font-medium uppercase text-muted-foreground",children:[c.jsx("span",{children:n.label}),c.jsx(CY,{className:ke("h-3 w-3",Tue(e.priority))}),c.jsx("span",{children:e.priority})]}),c.jsx("span",{className:ke("whitespace-pre-wrap break-words text-foreground",e.status==="done"&&"text-muted-foreground line-through"),children:e.message})]})]})}function Oj(e){if(Array.isArray(e))return e;if(!e)return[];try{const n=JSON.parse(e);return Array.isArray(n)?n.filter(r=>typeof r=="string"):[]}catch{return e.split(",").map(n=>n.trim()).filter(Boolean)}}function lut(e){return[...new Set(e.split(",").map(n=>n.trim().toLowerCase()).filter(Boolean))]}function Zg(e){return[...new Set(e.map(n=>n.trim().toLowerCase()).filter(Boolean))]}function I3(e){const n=e.getFullYear(),r=`${e.getMonth()+1}`.padStart(2,"0"),i=`${e.getDate()}`.padStart(2,"0");return`${n}-${r}-${i}`}function Oue(e){return new Intl.DateTimeFormat(void 0,{month:"long",year:"numeric"}).format(e)}function Rue(e){if(!e)return null;const[n,r,i]=e.split("-").map(Number);return!n||!r||!i?null:new Date(n,r-1,i)}function j1(e){const n=Rue(e);return n?new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric"}).format(n):"No due date"}function Mue(e){if(!e)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(n)}function cut(e){if(!e)return[];try{const n=JSON.parse(e);return Array.isArray(n)?n.flatMap(r=>{if(!r||typeof r!="object")return[];const i=r;if(typeof i.completedAt!="string")return[];const s=i.previousStatus==="open"||i.previousStatus==="in_progress"||i.previousStatus==="done"?i.previousStatus:null;return[{completedAt:i.completedAt,previousStatus:s}]}):[]}catch{return[]}}function uut(e){const n=Jg(e.status),r=Oj(e.tags);return[e.message,n.label,e.status,e.priority,e.dueDate,j1(e.dueDate),r.join(" "),e.sourceThreadTitle,e.createdAt,e.updatedAt,e.completedAt,Mue(e.completedAt)].filter(Boolean).join(" ").toLowerCase()}function dut(e,n){const r=n.trim().toLowerCase().split(/\s+/).filter(Boolean);if(r.length===0)return!0;const i=uut(e);return r.every(s=>i.includes(s))}function hut(e){return e.flatMap(n=>{const r=Oj(n.tags),i=cut(n.completionHistory);return(i.length>0?i:n.completedAt?[{completedAt:n.completedAt,previousStatus:null}]:[]).map(a=>({...a,todoId:n.id,message:n.message,tags:r}))}).sort((n,r)=>new Date(r.completedAt).getTime()-new Date(n.completedAt).getTime())}function fut(e){return[...e].sort((n,r)=>{const i=n.status==="done",s=r.status==="done";return i!==s?i?1:-1:0})}function Pue(e){const n=new Date(e.getFullYear(),e.getMonth(),1),r=new Date(n);return r.setDate(n.getDate()-n.getDay()),Array.from({length:42},(i,s)=>{const a=new Date(r);return a.setDate(r.getDate()+s),a})}function j7({value:e,onChange:n,placeholder:r="Add date",className:i,iconOnly:s=!1}){const a=Rue(e),[o,l]=y.useState(!1),[u,d]=y.useState(()=>a??new Date),h=f=>{n(f),l(!1)};return y.useEffect(()=>{a&&d(a)},[a==null?void 0:a.getTime()]),c.jsxs(nL,{open:o,onOpenChange:l,children:[c.jsx(rL,{asChild:!0,children:c.jsxs(me,{type:"button",variant:"outline",className:ke(s?"h-8 w-8 justify-center px-0":"h-10 w-full justify-start gap-2 px-3 text-left font-normal",!e&&"text-muted-foreground",i),title:e?`Due ${j1(e)}`:r,"aria-label":e?`Due ${j1(e)}`:r,children:[c.jsx(XR,{className:"h-4 w-4 shrink-0"}),!s&&c.jsx("span",{className:"truncate",children:e?j1(e):r})]})}),c.jsxs(iL,{align:"start",className:"w-[19rem] p-3",children:[c.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[c.jsx(me,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>d(new Date(u.getFullYear(),u.getMonth()-1,1)),"aria-label":"Previous month",children:c.jsx(B1,{className:"h-4 w-4"})}),c.jsx("div",{className:"text-sm font-medium",children:Oue(u)}),c.jsx(me,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>d(new Date(u.getFullYear(),u.getMonth()+1,1)),"aria-label":"Next month",children:c.jsx(ys,{className:"h-4 w-4"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-1 text-center text-[11px] font-medium text-muted-foreground",children:["S","M","T","W","T","F","S"].map((f,m)=>c.jsx("div",{className:"py-1",children:f},`${f}-${m}`))}),c.jsx("div",{className:"grid grid-cols-7 gap-1",children:Pue(u).map(f=>{const m=I3(f),x=e===m,v=m===I3(new Date),_=f.getMonth()!==u.getMonth();return c.jsx(me,{type:"button",variant:x?"secondary":"ghost",size:"icon",className:ke("h-8 w-8 rounded-md text-xs font-normal",_&&"text-muted-foreground/55",v&&!x&&"border border-border"),onClick:()=>h(m),children:f.getDate()},m)})}),c.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2 border-t pt-3",children:[c.jsx(me,{type:"button",variant:"ghost",size:"sm",className:"h-8 px-2 text-xs",onClick:()=>h(I3(new Date)),children:"Today"}),c.jsxs(me,{type:"button",variant:"ghost",size:"sm",className:"h-8 px-2 text-xs",onClick:()=>h(null),children:[c.jsx(qr,{className:"mr-1 h-3.5 w-3.5"}),"Clear"]})]})]})]})}function put({value:e,onChange:n,className:r,iconOnly:i=!1}){const[s,a]=y.useState(!!e);return y.useEffect(()=>{e&&a(!0)},[e]),s?c.jsx(j7,{value:e,onChange:o=>{n(o),o||a(!1)},className:r,iconOnly:i}):c.jsxs(me,{type:"button",variant:"outline",className:ke(i?"h-8 w-8 justify-center px-0 text-muted-foreground":"h-10 justify-start gap-2 text-muted-foreground",r),onClick:()=>a(!0),title:"Add date","aria-label":"Add date",children:[c.jsx(XR,{className:"h-4 w-4"}),!i&&"Add date"]})}function Ky({value:e,onChange:n,options:r,placeholder:i,disabled:s,className:a,triggerLabel:o,triggerIcon:l}){var d;const u=((d=r.find(h=>h.value===e))==null?void 0:d.label)??i??e;return c.jsxs(bd,{value:e,onValueChange:h=>n(h),disabled:s,children:[c.jsx(ku,{className:a,title:o?`${o}: ${u}`:u,"aria-label":o?`${o}: ${u}`:u,children:l||c.jsx(_d,{placeholder:i})}),c.jsx(Cu,{children:r.map(h=>c.jsx(Ls,{value:h.value,children:h.label},h.value))})]})}function u8({value:e,onChange:n,placeholder:r="Add tag...",commitOnBlur:i=!1,className:s,inputClassName:a}){const[o,l]=y.useState(""),u=Zg(e),d=()=>{const f=lut(o);f.length!==0&&(n(Zg([...u,...f])),l(""))},h=f=>{n(u.filter(m=>m!==f))};return c.jsxs("div",{className:ke("flex min-h-10 w-full flex-wrap items-center gap-1.5 rounded-lg border border-input bg-background/90 px-2 py-1.5 shadow-sm focus-within:ring-2 focus-within:ring-ring/60 focus-within:ring-offset-2 focus-within:ring-offset-background",s),children:[u.map(f=>c.jsxs(Dn,{variant:"secondary",className:"h-6 gap-1 rounded-md px-2 text-xs",children:[c.jsx("span",{children:f}),c.jsx("button",{type:"button",className:"-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-sm text-muted-foreground hover:bg-foreground/10 hover:text-foreground",onClick:()=>h(f),"aria-label":`Remove ${f} tag`,children:c.jsx(qr,{className:"h-3 w-3"})})]},f)),c.jsx("input",{value:o,onChange:f=>{const m=f.target.value;if(m.includes(",")){const x=m.split(","),v=x.pop()??"",_=Zg([...u,...x]);(_.length!==u.length||_.some((w,S)=>w!==u[S]))&&n(_),l(v.trimStart());return}l(m)},onKeyDown:f=>{f.key==="Enter"||f.key===","?(f.preventDefault(),d()):f.key==="Backspace"&&!o&&u.length>0&&(f.preventDefault(),n(u.slice(0,-1)))},onBlur:()=>{i&&d()},className:ke("h-6 min-w-28 flex-1 bg-transparent px-1 text-sm outline-none placeholder:text-muted-foreground",a),placeholder:u.length===0?r:""})]})}function mut({provider:e="jait",model:n=null,runtimeMode:r="full-access",onVoiceInput:i,voiceRecording:s=!1,voiceTranscribing:a=!1,voiceLevels:o,onVoiceStop:l}){var Zr;const[u,d]=y.useState([]),[h,f]=y.useState(""),[m,x]=y.useState([]),[v,_]=y.useState("list"),[w,S]=y.useState("all"),[C,j]=y.useState(""),[T,E]=y.useState(null),[N,R]=y.useState(()=>new Date),[$,q]=y.useState(""),[z,B]=y.useState("open"),[H,D]=y.useState("normal"),[O,I]=y.useState(null),[M,P]=y.useState([]),[F,G]=y.useState(()=>new Set),[W,V]=y.useState([]),[J,U]=y.useState("normal"),[Q,X]=y.useState(null),[ee,ie]=y.useState(!0),[ne,oe]=y.useState(!1),[he,le]=y.useState(!1),[se,we]=y.useState(()=>new Set),[Ce,ze]=y.useState(null),[Xe,pt]=y.useState(!1),[Ot,Pt]=y.useState(0),an=y.useRef(null),Qt=y.useRef(null),[Ut,ut]=y.useState(null),[Oe,Ct]=y.useState(null),[je,_e]=y.useState(null),Qe=y.useCallback(async()=>{const Ae=await fn.listRepos();d(Ae),f(lt=>pct(Ae,lt)??"")},[]),gt=y.useCallback(async Ae=>{if(!Ae){x([]),ie(!1);return}ie(!0),ze(null);try{x(rut(Ae,await fn.listJaitTodos(Ae)))}catch(lt){ze(lt instanceof Error?lt.message:"Failed to load todo list")}finally{ie(!1)}},[]);y.useEffect(()=>{(async()=>{ie(!0),ze(null);try{await Qe()}catch(Ae){ze(Ae instanceof Error?Ae.message:"Failed to load repositories"),ie(!1)}})()},[Qe]),y.useEffect(()=>{gt(h)},[gt,h]),y.useEffect(()=>{if(!h){j(""),E(null),G(new Set);return}const Ae=sut(h);j(Ae.search),E(h),G(new Set)},[h]),y.useEffect(()=>{!h||T!==h||aut(h,{search:C})},[T,C,h]);const rt=y.useMemo(()=>fut(m.filter(Ae=>!(w!=="all"&&Ae.status!==w||!dut(Ae,C)))),[C,w,m]),bt=y.useMemo(()=>({open:m.filter(Ae=>Ae.status==="open").length,inProgress:m.filter(Ae=>Ae.status==="in_progress").length,done:m.filter(Ae=>Ae.status==="done").length}),[m]),It=u.find(Ae=>Ae.id===h),We=y.useMemo(()=>u.map(Ae=>({value:Ae.id,label:Ae.name})),[u]),ve=y.useMemo(()=>m.filter(Ae=>F.has(Ae.id)),[F,m]),ge=y.useMemo(()=>rt.filter(Ae=>F.has(Ae.id)).length,[rt,F]),Ie=rt.length>0&&ge===rt.length,Ge=y.useMemo(()=>hut(m),[m]),Be=Math.max(1,Math.ceil(Ge.length/WC)),Tt=Ge.slice(Ot*WC,Ot*WC+WC);y.useEffect(()=>{Pt(Ae=>Math.min(Ae,Be-1))},[Be]),y.useEffect(()=>{G(Ae=>{const lt=new Set(m.map(Jt=>Jt.id)),Je=new Set([...Ae].filter(Jt=>lt.has(Jt)));return Je.size===Ae.size?Ae:Je})},[m]);const ht=y.useCallback(Ae=>{f(Ae);const lt=u.find(Je=>Je.id===Ae);fct(Ae,(lt==null?void 0:lt.localPath)??null)},[u]);y.useEffect(()=>{if(ee||!It||v!=="list")return;const Ae=window.requestAnimationFrame(()=>{var lt,Je;(lt=an.current)==null||lt.focus(),(Je=an.current)==null||Je.select()});return()=>window.cancelAnimationFrame(Ae)},[ee,v,It==null?void 0:It.id]);const Ht=y.useCallback(async()=>{const Ae=$.trim();if(!(!h||!Ae)){oe(!0),ze(null);try{const lt=await fn.createJaitTodo(h,{message:Ae,status:z,priority:H,dueDate:O,tags:M});x(Je=>{const Jt=[lt,...Je];return DV(h,Jt),Jt}),q(""),B("open"),D("normal"),I(null),P([]),window.requestAnimationFrame(()=>{var Je;return(Je=an.current)==null?void 0:Je.focus()})}catch(lt){ze(lt instanceof Error?lt.message:"Failed to add todo")}finally{oe(!1)}}},[O,$,H,z,M,h]),jt=y.useCallback(Ae=>{Ae.key==="Enter"&&!Ae.shiftKey&&(Ae.preventDefault(),Ht())},[Ht]),At=y.useCallback(()=>{i==null||i({onTranscript:Ae=>{q(lt=>gue(lt,Ae)),window.requestAnimationFrame(()=>{const lt=an.current;lt&&(lt.focus(),lt.selectionStart=lt.value.length,lt.selectionEnd=lt.value.length,lt.scrollTop=lt.scrollHeight)})}})},[i]),ft=y.useCallback(()=>{if(s){l==null||l();return}At()},[At,l,s]),Rt=async(Ae,lt)=>{x(Je=>Je.map(Jt=>Jt.id===Ae.id?{...Jt,...lt,tags:lt.tags?JSON.stringify(lt.tags):Jt.tags}:Jt));try{const Je=await fn.updateJaitTodo(Ae.id,lt);x(Jt=>Jt.map(ot=>ot.id===Ae.id?Je:ot))}catch(Je){ze(Je instanceof Error?Je.message:"Failed to update todo"),gt(h)}},_t=async(Ae,lt)=>{Ae.status!=="done"&&lt==="done"&&BV(),await Rt(Ae,{status:lt})},Ue=async Ae=>{const lt=m;x(Je=>Je.filter(Jt=>Jt.id!==Ae)),G(Je=>{const Jt=new Set(Je);return Jt.delete(Ae),Jt});try{await fn.deleteJaitTodo(Ae)}catch(Je){x(lt),ze(Je instanceof Error?Je.message:"Failed to remove todo")}},it=y.useCallback((Ae,lt)=>{G(Je=>{const Jt=new Set(Je);return lt?Jt.add(Ae):Jt.delete(Ae),Jt})},[]),St=y.useCallback(Ae=>{G(lt=>{const Je=new Set(lt);for(const Jt of rt)Ae?Je.add(Jt.id):Je.delete(Jt.id);return Je})},[rt]),Ee=async(Ae,lt)=>{if(ve.length!==0){le(!0),ze(null);try{const Je=await Promise.all(ve.map(ot=>fn.updateJaitTodo(ot.id,Ae(ot)))),Jt=new Map(Je.map(ot=>[ot.id,ot]));x(ot=>ot.map(fe=>Jt.get(fe.id)??fe))}catch(Je){ze(Je instanceof Error?Je.message:lt),gt(h)}finally{le(!1)}}},He=async Ae=>{Ae==="done"&&ve.some(lt=>lt.status!=="done")&&BV(),await Ee(()=>({status:Ae}),"Failed to update selected todo statuses")},xe=async Ae=>{await Ee(()=>({priority:Ae}),"Failed to update selected todo priorities")},qt=async Ae=>{await Ee(()=>({dueDate:Ae}),"Failed to update selected todo due dates")},wt=async()=>{const Ae=Zg(W);Ae.length!==0&&(await Ee(lt=>({tags:Zg([...Oj(lt.tags),...Ae])}),"Failed to update selected todo tags"),V([]))},Lt=async()=>{if(ve.length===0)return;const Ae=m,lt=new Set(ve.map(Je=>Je.id));x(Je=>Je.filter(Jt=>!lt.has(Jt.id))),G(new Set),le(!0),ze(null);try{await Promise.all([...lt].map(Je=>fn.deleteJaitTodo(Je)))}catch(Je){x(Ae),ze(Je instanceof Error?Je.message:"Failed to remove selected todos")}finally{le(!1)}},yn=async Ae=>{if(!(!It||se.has(Ae.id))){we(lt=>new Set(lt).add(Ae.id)),ze(null);try{const lt=`jait/${Math.random().toString(16).slice(2,10)}`,Je=It.defaultBranch;let Jt;try{Jt=(await Cs.createWorktree(It.localPath,Je,lt)).path}catch{try{await Cs.createBranch(It.localPath,lt,Je)}catch{}}const ot=await fn.createThread(gct({repo:It,providerId:e,runtimeMode:r,model:n,workingDirectory:Jt??It.localPath,branch:lt}));await fn.startThread(ot.id,yct(It.name,Ae)),Ae.status!=="done"&&await Rt(Ae,{status:"in_progress"})}catch(lt){ze(lt instanceof Error?lt.message:"Failed to run todo as thread")}finally{we(lt=>{const Je=new Set(lt);return Je.delete(Ae.id),Je})}}},Vn=y.useMemo(()=>{const Ae=new Map;for(const lt of rt)lt.dueDate&&Ae.set(lt.dueDate,[...Ae.get(lt.dueDate)??[],lt]);return Ae},[rt]);y.useEffect(()=>{if(Ut&&!rt.some(Ae=>Ae.id===Ut)){ut(null),Ct(null),_e(null);return}Oe!=null&&Oe.targetId&&!rt.some(Ae=>Ae.id===Oe.targetId)&&Ct(Ut?{targetId:Ut,placement:"before"}:null)},[Ut,Oe,rt]),y.useEffect(()=>{var fe;if(!Ut||!je)return;document.body.style.cursor="grabbing",document.body.style.userSelect="none",document.body.style.touchAction="none";const Ae=qe=>{var Dt;const Ze=Array.from(document.querySelectorAll("[data-todo-id]")).filter(gr=>gr.dataset.todoId&&gr.dataset.todoId!==Ut);if(Ze.length===0){Ct({targetId:null,placement:"after"});return}for(const gr of Ze){const $r=gr.dataset.todoId;if(!$r)continue;const Ln=gr.getBoundingClientRect();if(qe<Ln.top+Ln.height/2){Ct({targetId:$r,placement:"before"});return}}const Wt=((Dt=Ze[Ze.length-1])==null?void 0:Dt.dataset.todoId)??null;Ct(Wt?{targetId:Wt,placement:"after"}:{targetId:null,placement:"after"})},lt=qe=>{var Ze,Wt;if(qe&&qe.pointerId!==je.pointerId)return;Oe&&Oe.targetId!==Ut&&x(Dt=>{const gr=IV(Dt,Ut,Oe.targetId,Oe.placement);return gr===Dt?Dt:(DV(h,gr),gr)});const ye=Qt.current;(Ze=ye==null?void 0:ye.hasPointerCapture)!=null&&Ze.call(ye,je.pointerId)&&((Wt=ye.releasePointerCapture)==null||Wt.call(ye,je.pointerId)),Qt.current=null,ut(null),Ct(null),_e(null)},Je=qe=>{qe.pointerId===je.pointerId&&(_e(ye=>ye&&{...ye,x:qe.clientX,y:qe.clientY}),Ae(qe.clientY))},Jt=()=>lt(),ot=()=>lt();return window.addEventListener("pointermove",Je),window.addEventListener("pointerup",lt),window.addEventListener("pointercancel",lt),window.addEventListener("blur",ot),(fe=Qt.current)==null||fe.addEventListener("lostpointercapture",Jt),()=>{var qe;document.body.style.cursor="",document.body.style.userSelect="",document.body.style.touchAction="",window.removeEventListener("pointermove",Je),window.removeEventListener("pointerup",lt),window.removeEventListener("pointercancel",lt),window.removeEventListener("blur",ot),(qe=Qt.current)==null||qe.removeEventListener("lostpointercapture",Jt)}},[je,Ut,Oe,h]);const ar=y.useCallback((Ae,lt)=>{var ot;if(lt.button!==0&&lt.pointerType!=="touch"&&lt.pointerType!=="pen")return;lt.preventDefault();const Je=lt.currentTarget.closest("[data-todo-id]");if(!Je)return;Qt.current=Je,(ot=Je.setPointerCapture)==null||ot.call(Je,lt.pointerId);const Jt=Je.getBoundingClientRect();ut(Ae),Ct({targetId:Ae,placement:"before"}),_e({id:Ae,pointerId:lt.pointerId,x:lt.clientX,y:lt.clientY,offsetX:lt.clientX-Jt.left,offsetY:lt.clientY-Jt.top,width:Jt.width,height:Jt.height})},[]),zn=Ut&&Oe&&(Oe.targetId!==Ut||Oe.placement==="after")?IV(rt,Ut,Oe.targetId,Oe.placement):rt,Zn=je?zn.find(Ae=>Ae.id===je.id):null;return c.jsxs("div",{className:"mx-auto flex max-w-7xl flex-col gap-4 px-3 py-4 sm:px-4 sm:py-6",children:[c.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsxs("h1",{className:"flex items-center gap-2 text-xl font-bold sm:text-2xl",children:[c.jsx(_m,{className:"h-6 w-6"}),"Todo"]}),c.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Global repo follow-up work, saved from agents or added directly here."})]}),c.jsxs("div",{className:"flex flex-row items-center gap-2",children:[c.jsxs(bd,{value:h||void 0,onValueChange:ht,disabled:u.length===0,children:[c.jsx(ku,{className:"h-10 min-w-0 flex-1 sm:flex-initial sm:min-w-56",children:c.jsx(_d,{placeholder:"Select repository"})}),c.jsx(Cu,{children:We.map(Ae=>c.jsx(Ls,{value:Ae.value,children:Ae.label},Ae.value))})]}),c.jsxs(me,{variant:"outline",onClick:()=>void gt(h),disabled:ee||!h,title:"Refresh","aria-label":"Refresh",className:"h-10 w-10 shrink-0 p-0 sm:w-auto sm:px-4",children:[c.jsx(ks,{className:ke("h-4 w-4 sm:mr-2",ee&&"animate-spin")}),c.jsx("span",{className:"hidden sm:inline",children:"Refresh"})]}),c.jsxs(me,{variant:"outline",onClick:()=>pt(!0),disabled:Ge.length===0,title:"History","aria-label":"History",className:"relative h-10 w-10 shrink-0 p-0 sm:w-auto sm:px-4",children:[c.jsx(t5,{className:"h-4 w-4 sm:mr-2"}),c.jsx("span",{className:"hidden sm:inline",children:"History"}),Ge.length>0&&c.jsx(Dn,{variant:"secondary",className:"ml-1 hidden px-1.5 sm:inline-flex",children:Ge.length}),Ge.length>0&&c.jsx("span",{className:"absolute -right-1 -top-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-semibold leading-none text-primary-foreground sm:hidden",children:Ge.length})]})]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(_m,{className:"h-3.5 w-3.5 text-primary/70"}),m.length," total"]}),c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(ZR,{className:"h-3.5 w-3.5 text-muted-foreground"}),bt.open," open"]}),c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(SY,{className:"h-3.5 w-3.5 text-sky-500"}),bt.inProgress," active"]}),c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(js,{className:"h-3.5 w-3.5 text-emerald-500"}),bt.done," done"]})]}),Ce&&c.jsxs("div",{className:"flex items-center gap-2 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:[c.jsx(Is,{className:"h-4 w-4"}),Ce,c.jsx(me,{variant:"ghost",size:"sm",className:"ml-auto",onClick:()=>ze(null),children:"Dismiss"})]}),c.jsx("div",{className:"rounded-lg border p-3",children:c.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-start",children:[c.jsxs("div",{className:"min-w-0 flex-1 rounded-lg border border-input bg-background/90 shadow-sm focus-within:ring-2 focus-within:ring-ring/60 focus-within:ring-offset-2 focus-within:ring-offset-background",children:[c.jsx(Mh,{ref:an,value:$,onChange:Ae=>q(Ae.target.value),onKeyDown:jt,placeholder:"Add a future agent prompt or repo task...",className:"min-h-20 resize-y border-0 bg-transparent shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"}),c.jsx(u8,{value:M,onChange:P,placeholder:"Add tags...",className:"min-h-9 rounded-none rounded-b-lg border-x-0 border-b-0 border-t bg-transparent px-2 py-1 shadow-none focus-within:ring-0 focus-within:ring-offset-0",inputClassName:"text-xs"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-1 text-xs text-muted-foreground lg:w-auto lg:flex-nowrap",children:[c.jsx(Eg,{label:`Status: ${Jg(z).label}`,children:c.jsx(Ky,{value:z,onChange:B,options:c8,triggerLabel:"Status",triggerIcon:c.jsx(n_,{status:z,className:"h-4 w-4"}),className:"h-8 w-8 justify-center rounded-md border-transparent bg-transparent px-0 text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0 [&>svg:last-child]:hidden"})}),c.jsx(Eg,{label:`Priority: ${((Zr=Cb.find(Ae=>Ae.value===H))==null?void 0:Zr.label)??H}`,children:c.jsx(Ky,{value:H,onChange:D,options:Cb,triggerLabel:"Priority",triggerIcon:c.jsx($V,{priority:H}),className:"h-8 w-8 justify-center rounded-md border-transparent bg-transparent px-0 text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0 [&>svg:last-child]:hidden"})}),c.jsx(Eg,{label:O?`Due ${j1(O)}`:"Add date",children:c.jsx(put,{value:O,onChange:I,iconOnly:!0,className:"rounded-md border-transparent bg-transparent text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0"})}),i&&(s?c.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[c.jsxs("span",{className:"flex shrink-0 items-center gap-1.5 text-xs font-medium text-foreground/80",children:[c.jsx("span",{className:"h-2 w-2 rounded-full bg-foreground/70 animate-pulse"}),"Listening..."]}),c.jsx(Cue,{levels:o,compact:!0}),c.jsxs(me,{type:"button",size:"sm",variant:"outline",className:"h-7 shrink-0 rounded-lg px-2.5 text-xs",onClick:ft,"aria-label":"Stop todo dictation",children:[c.jsx(Qw,{className:"mr-1 h-3.5 w-3.5"}),"Done"]})]}):a?c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsx($t,{className:"h-3.5 w-3.5 animate-spin"}),"Transcribing..."]}):c.jsx(Eg,{label:"Dictate todo",children:c.jsx(me,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:ft,"aria-label":"Dictate todo",children:c.jsx(l0,{className:"h-4 w-4"})})})),c.jsxs(me,{onClick:()=>void Ht(),disabled:ne||!h||!$.trim(),size:"sm",children:[ne?c.jsx($t,{className:"mr-2 h-4 w-4 animate-spin"}):c.jsx(Ps,{className:"mr-2 h-4 w-4"}),"Add"]})]})]})}),c.jsxs("div",{className:"flex items-center gap-2 rounded-lg border p-3",children:[c.jsxs("div",{className:"relative min-w-0 flex-1",children:[c.jsx(ao,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),c.jsx(Er,{value:C,onChange:Ae=>j(Ae.target.value),placeholder:"Search todos by text, tag, status, date...",className:"h-10 pl-9"})]}),c.jsx(me,{variant:v==="list"?"secondary":"outline",size:"icon",className:"h-10 w-10 shrink-0",onClick:()=>_("list"),title:"List view","aria-label":"List view",children:c.jsx(_m,{className:"h-4 w-4"})}),c.jsx(me,{variant:v==="calendar"?"secondary":"outline",size:"icon",className:"h-10 w-10 shrink-0",onClick:()=>_("calendar"),title:"Calendar view","aria-label":"Calendar view",children:c.jsx(XR,{className:"h-4 w-4"})}),c.jsx(Ky,{value:w,onChange:S,options:[{value:"all",label:"All statuses"},...c8],triggerLabel:"Status",triggerIcon:c.jsx(c1e,{className:"h-4 w-4"}),className:ke("h-10 w-auto shrink-0 gap-1 px-2.5",w!=="all"&&"border-primary text-primary")})]}),ve.length>0&&c.jsxs("div",{className:"grid gap-3 rounded-lg border p-3",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsxs(Dn,{variant:"secondary",children:[ve.length," selected"]}),c.jsx(me,{variant:"outline",size:"sm",onClick:()=>void He("open"),disabled:he,children:"Open"}),c.jsx(me,{variant:"outline",size:"sm",onClick:()=>void He("in_progress"),disabled:he,children:"In progress"}),c.jsx(me,{variant:"outline",size:"sm",onClick:()=>void He("done"),disabled:he,children:"Done"}),c.jsx(Ky,{value:J,onChange:Ae=>{U(Ae),xe(Ae)},options:Cb,className:"h-9 w-32"}),c.jsx(j7,{value:Q,onChange:Ae=>{X(Ae),qt(Ae)},placeholder:"Due date",className:"h-9 w-36"}),c.jsx(me,{variant:"outline",size:"sm",onClick:()=>void qt(null),disabled:he,children:"Clear date"})]}),c.jsxs("div",{className:"grid gap-2 md:grid-cols-[minmax(14rem,1fr)_auto_auto]",children:[c.jsx(u8,{value:W,onChange:V,placeholder:"Add tags to selected...",className:"min-h-9"}),c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>void wt(),disabled:he||W.length===0,children:[c.jsx(Ps,{className:"mr-2 h-4 w-4"}),"Add tags"]}),c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>void Lt(),disabled:he,children:[he?c.jsx($t,{className:"mr-2 h-4 w-4 animate-spin"}):c.jsx(ul,{className:"mr-2 h-4 w-4"}),"Remove"]})]})]}),c.jsx(Lo,{open:Xe,onOpenChange:pt,children:c.jsxs(oo,{className:"max-h-[85vh] max-w-2xl overflow-hidden p-0",children:[c.jsxs(dl,{className:"border-b px-4 py-3",children:[c.jsxs(lo,{className:"flex items-center gap-2 text-base",children:[c.jsx(t5,{className:"h-4 w-4 text-muted-foreground"}),"Completion history"]}),c.jsxs(Nu,{children:[Ge.length," completed event",Ge.length===1?"":"s"]})]}),c.jsx("div",{className:"grid max-h-[56vh] gap-2 overflow-y-auto px-4 py-3",children:Tt.map(Ae=>c.jsxs("div",{className:"min-w-0 rounded-md border bg-card/40 px-3 py-2",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[c.jsx(js,{className:"h-3.5 w-3.5 text-emerald-500"}),c.jsx("span",{children:Mue(Ae.completedAt)}),Ae.previousStatus&&c.jsxs("span",{children:["from ",Jg(Ae.previousStatus).label]})]}),c.jsx("div",{className:"mt-1 text-sm",children:Ae.message}),Ae.tags.length>0&&c.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Ae.tags.slice(0,6).map(lt=>c.jsx(Dn,{variant:"secondary",className:"h-5 rounded px-1.5 text-[11px]",children:lt},lt))})]},`${Ae.todoId}-${Ae.completedAt}`))}),c.jsxs(sp,{className:"flex-row items-center justify-between border-t px-4 py-3 sm:justify-between sm:space-x-0",children:[c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Page ",Ot+1," of ",Be]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>Pt(Ae=>Math.max(0,Ae-1)),disabled:Ot===0,children:[c.jsx(B1,{className:"mr-1 h-4 w-4"}),"Prev"]}),c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>Pt(Ae=>Math.min(Be-1,Ae+1)),disabled:Ot>=Be-1,children:["Next",c.jsx(ys,{className:"ml-1 h-4 w-4"})]})]})]})]})}),ee&&m.length===0?c.jsx("div",{className:"flex items-center justify-center py-24",children:c.jsx($t,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):It?v==="calendar"?c.jsxs("div",{className:"rounded-lg border",children:[c.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>R(new Date(N.getFullYear(),N.getMonth()-1,1)),children:[c.jsx(B1,{className:"mr-1 h-4 w-4"}),"Prev"]}),c.jsx("div",{className:"font-medium",children:Oue(N)}),c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>R(new Date(N.getFullYear(),N.getMonth()+1,1)),children:["Next",c.jsx(ys,{className:"ml-1 h-4 w-4"})]})]}),c.jsx("div",{className:"grid grid-cols-7 border-b text-center text-xs text-muted-foreground",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(Ae=>c.jsx("div",{className:"py-2",children:Ae},Ae))}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-7",children:Pue(N).map(Ae=>{const lt=I3(Ae),Je=Vn.get(lt)??[],Jt=Ae.getMonth()!==N.getMonth();return c.jsxs("div",{className:"min-h-32 border-b p-2 sm:border-r [&:nth-child(7n)]:border-r-0",children:[c.jsx("div",{className:ke("mb-2 text-xs font-medium",Jt&&"text-muted-foreground"),children:Ae.getDate()}),c.jsx("div",{className:"space-y-1",children:Je.map(ot=>{const fe=Jg(ot.status);return c.jsxs("button",{className:ke("flex w-full items-start gap-1.5 rounded-md border px-2 py-1 text-left text-xs hover:bg-accent",fe.itemClassName),onClick:()=>void _t(ot,ot.status==="done"?"open":"done"),children:[c.jsx(n_,{status:ot.status,className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:ot.status==="done"?"line-through text-muted-foreground":"",children:ot.message})]},ot.id)})})]},lt)})})]}):rt.length===0?c.jsxs("div",{className:"rounded-lg border-2 border-dashed px-4 py-16 text-center",children:[c.jsx(Jxe,{className:"mx-auto mb-4 h-10 w-10 text-muted-foreground"}),c.jsx("h3",{className:"mb-2 text-lg font-medium",children:"No todo items match"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Change filters or add the first repo-wide item."})]}):c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-lg border bg-card/40 px-3 py-2 text-sm text-muted-foreground",children:[c.jsxs("label",{className:"inline-flex items-center gap-2",children:[c.jsx("input",{type:"checkbox",className:"h-4 w-4 rounded border-input",checked:Ie,onChange:Ae=>St(Ae.target.checked)}),c.jsx("span",{children:ge>0?`${ge} selected in view`:"Select visible"})]}),c.jsxs("span",{children:[zn.length," item",zn.length===1?"":"s"]})]}),zn.map(Ae=>{var qe;const lt=Oj(Ae.tags),Je=Jg(Ae.status),Jt=se.has(Ae.id),ot=!!(Ut&&(Oe==null?void 0:Oe.targetId)===Ae.id&&Oe.placement==="before"&&Ut!==Ae.id),fe=!!(Ut&&(Oe==null?void 0:Oe.targetId)===Ae.id&&Oe.placement==="after"&&Ut!==Ae.id);return c.jsxs("div",{className:"space-y-3",children:[ot&&c.jsx("div",{className:"relative h-0",children:c.jsx("div",{className:"absolute inset-x-2 -top-px h-0.5 rounded-full bg-primary shadow-[0_0_0_1px_hsl(var(--background))]"})}),c.jsxs("div",{"data-todo-id":Ae.id,className:ke("group rounded-lg border p-2 transition-all duration-150 ease-out sm:p-3",Je.itemClassName,Ut&&"touch-none",Ut===Ae.id&&"border-dashed border-primary/35 bg-primary/5 opacity-0"),children:[c.jsxs("div",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-2",children:[c.jsxs("div",{className:"flex flex-col items-center gap-1",children:[c.jsx("input",{"data-no-drag":"true",type:"checkbox",className:"h-4 w-4 rounded border-input",checked:F.has(Ae.id),onChange:ye=>it(Ae.id,ye.target.checked),"aria-label":"Select todo"}),c.jsx("div",{className:"shrink-0 cursor-grab touch-none rounded p-0.5 text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground active:cursor-grabbing",title:"Drag to reorder","aria-label":"Drag to reorder",onPointerDown:ye=>ar(Ae.id,ye),children:c.jsx(n4,{className:"h-4 w-4"})}),c.jsx("button",{className:"h-6 w-6 shrink-0 rounded text-muted-foreground hover:text-foreground",onClick:()=>void _t(Ae,Ae.status==="done"?"open":"done"),"aria-label":"Toggle todo status",children:c.jsx(n_,{status:Ae.status})})]}),c.jsxs("div",{className:"min-w-0 flex-1 rounded-lg border border-input bg-background/90 shadow-sm focus-within:ring-2 focus-within:ring-ring/60 focus-within:ring-offset-2 focus-within:ring-offset-background",children:[c.jsx(Mh,{className:ke("min-h-20 resize-y border-0 bg-transparent shadow-none focus-visible:ring-0 focus-visible:ring-offset-0",Ae.status==="done"&&"text-muted-foreground line-through"),defaultValue:Ae.message,onBlur:ye=>{const Ze=ye.target.value.trim();Ze&&Ze!==Ae.message&&Rt(Ae,{message:Ze})}}),c.jsx(u8,{value:lt,onChange:ye=>{const Ze=Zg(ye);JSON.stringify(Ze)!==JSON.stringify(Zg(lt))&&Rt(Ae,{tags:Ze})},placeholder:"Add tags...",commitOnBlur:!0,className:"min-h-9 rounded-none rounded-b-lg border-x-0 border-b-0 border-t bg-transparent px-2 py-1 shadow-none focus-within:ring-0 focus-within:ring-offset-0",inputClassName:"text-xs"})]}),c.jsxs("div",{className:"grid w-[4.25rem] grid-cols-2 gap-0.5 text-xs text-muted-foreground",children:[c.jsx(Eg,{label:`Status: ${Je.label}`,children:c.jsx(Ky,{value:Ae.status,onChange:ye=>void _t(Ae,ye),options:c8,triggerLabel:"Status",triggerIcon:c.jsx(n_,{status:Ae.status,className:"h-4 w-4"}),className:"h-8 w-8 justify-center rounded-md border-transparent bg-transparent px-0 text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0 [&>svg:last-child]:hidden"})}),c.jsx(Eg,{label:`Priority: ${((qe=Cb.find(ye=>ye.value===Ae.priority))==null?void 0:qe.label)??Ae.priority}`,children:c.jsx(Ky,{value:Ae.priority,onChange:ye=>void Rt(Ae,{priority:ye}),options:Cb,triggerLabel:"Priority",triggerIcon:c.jsx($V,{priority:Ae.priority}),className:"h-8 w-8 justify-center rounded-md border-transparent bg-transparent px-0 text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0 [&>svg:last-child]:hidden"})}),c.jsx(Eg,{label:Ae.dueDate?`Due ${j1(Ae.dueDate)}`:"Date",children:c.jsx(j7,{value:Ae.dueDate??null,onChange:ye=>void Rt(Ae,{dueDate:ye}),placeholder:"Date",iconOnly:!0,className:"rounded-md border-transparent bg-transparent text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0"})}),c.jsx(me,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:()=>void yn(Ae),disabled:Jt||!It,title:"Run todo as thread","aria-label":"Run todo as thread",children:Jt?c.jsx($t,{className:"h-4 w-4 animate-spin"}):c.jsx(eS,{className:"h-4 w-4"})}),c.jsx(me,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:()=>void Ue(Ae.id),"aria-label":"Remove todo",children:c.jsx(ul,{className:"h-4 w-4"})})]})]}),c.jsx("div",{className:"mt-2 flex justify-end",children:Ae.sourceThreadTitle&&c.jsxs("span",{className:"text-xs text-muted-foreground",children:["Suggested by `",Ae.sourceThreadTitle,"`"]})})]}),fe&&c.jsx("div",{className:"relative h-0",children:c.jsx("div",{className:"absolute inset-x-2 -top-px h-0.5 rounded-full bg-primary shadow-[0_0_0_1px_hsl(var(--background))]"})})]},Ae.id)}),je&&Zn&&c.jsx("div",{className:"pointer-events-none fixed z-50",style:{left:`${je.x-je.offsetX}px`,top:`${je.y-je.offsetY}px`,width:`${je.width}px`,minHeight:`${je.height}px`},children:c.jsx("div",{className:"scale-[1.01] opacity-95",children:c.jsx(out,{todo:Zn})})})]}):c.jsx("div",{className:"rounded-lg border-2 border-dashed px-4 py-16 text-center text-sm text-muted-foreground",children:"Add a repository in manager mode before creating todo items."})]})}function Yy({children:e,isMobile:n}){return c.jsx("div",{className:`flex-1 overflow-y-auto ${n?"pt-12":""}`,children:e})}function gut({activeSessionId:e,activityEvents:n,apiKeys:r,appPlatform:i,chatProvider:s,chatProviderRuntimeMode:a,cliModel:o,currentView:l,isMobile:u,jaitBackend:d,sttProvider:h,token:f,updateApplying:m,updateChecking:x,updateInfo:v,username:_,onApplyUpdate:w,onCheckUpdate:S,onClearArchive:C,onClearArchivedProjects:j,onFetchArchivedProjects:T,onJaitBackendChange:E,onRestoreProject:N,onSaveApiKeys:R,onSttProviderChange:$,onVoiceInput:q,onVoiceStop:z,voiceLevels:B,voiceRecording:H,voiceTranscribing:D}){return l==="todo"?c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Todo",variant:"section",className:"min-h-full",resetKeys:[l,f],children:c.jsx(mut,{provider:s,model:o,runtimeMode:s!=="jait"?a:"full-access",onVoiceInput:q,voiceRecording:H,voiceTranscribing:D,voiceLevels:B,onVoiceStop:z})})}):l==="email"?c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Email",variant:"section",className:"min-h-full",resetKeys:[l,f],children:c.jsx(Het,{isMobile:u})})}):l==="memory"?c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Memory",variant:"section",className:"min-h-full",resetKeys:[l,f],children:c.jsx(btt,{})})}):l==="jobs"?c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Jobs",variant:"section",className:"min-h-full",resetKeys:[l],children:c.jsx(ptt,{})})}):l==="network"?c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Network",variant:"section",className:"min-h-full",resetKeys:[l,f,e],children:c.jsx(lst,{token:f,sessionId:e??"default"})})}):l!=="settings"?null:c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Settings",variant:"section",className:"min-h-full",resetKeys:[l,f],children:c.jsx(Flt,{username:_,token:f,apiKeys:r,onSaveApiKeys:R,sttProvider:h,onSttProviderChange:$,jaitBackend:d,onJaitBackendChange:E,onClearArchive:C,onClearArchivedProjects:j,onFetchArchivedProjects:T,onRestoreProject:N,activityEvents:n,updateInfo:v,updateChecking:x,onCheckUpdate:S,onApplyUpdate:w,updateApplying:m,platform:i})})})}const yut={bundled:"bg-sky-500/10 text-sky-600",user:"bg-amber-500/10 text-amber-600",project:"bg-emerald-500/10 text-emerald-600",plugin:"bg-fuchsia-500/10 text-fuchsia-600"},xut=[{pattern:/\b(debug|bug|troubleshoot|fix)\b/i,icon:YR},{pattern:/\b(review|audit|security|secure|vuln)\b/i,icon:D1e},{pattern:/\b(test|qa|spec)\b/i,icon:eve},{pattern:/\b(perf|performance|optimi[sz]e|latency|profil)\b/i,icon:X8},{pattern:/\b(arch|design|system|topology|diagram)\b/i,icon:Sc},{pattern:/\b(research|investigate|search|explore)\b/i,icon:ao},{pattern:/\b(data|analysis|analytics|report)\b/i,icon:X8},{pattern:/\b(code|generate|scaffold|tool|workflow)\b/i,icon:rM}];function vut(e){const n=`${e.id} ${e.name} ${e.description}`,r=xut.find(({pattern:i})=>i.test(n));return{icon:(r==null?void 0:r.icon)??iye,className:yut[e.source]}}function but(e){return e.open&&!e.attemptedLoad&&e.skillsLength===0&&!e.loading}const _ut=Ar();function wut({token:e,threadId:n,selectedSkillIds:r}){const[i,s]=y.useState(!1),[a,o]=y.useState([]),[l,u]=y.useState(!1),[d,h]=y.useState(null),[f,m]=y.useState(!1),[x,v]=y.useState(!1),_=y.useCallback(async()=>{u(!0),h(null);try{const E={};e&&(E.Authorization=`Bearer ${e}`);const N=await fetch(`${_ut}/api/skills`,{headers:E});if(!N.ok)throw new Error(`Failed to load skills (HTTP ${N.status})`);const R=await N.json();o(R)}catch(E){h(E instanceof Error?E.message:"Failed to load skills")}finally{u(!1),m(!0)}},[e]);y.useEffect(()=>{but({open:i,attemptedLoad:f,skillsLength:a.length,loading:l})&&_()},[f,_,l,i,a.length]);const w=y.useMemo(()=>a.filter(E=>E.enabled),[a]),S=r??w.map(E=>E.id),C=r===null,j=y.useCallback(async E=>{v(!0);try{await fn.updateThread(n,{skillIds:E})}finally{v(!1)}},[n]),T=y.useCallback(async(E,N)=>{const R=N?[...new Set([...S,E])]:S.filter($=>$!==E);await j(R)},[S,j]);return c.jsxs(nL,{open:i,onOpenChange:s,children:[c.jsx(rL,{asChild:!0,children:c.jsxs(me,{variant:"ghost",size:"sm",className:"h-6 gap-1 px-2 text-[10px] text-muted-foreground",children:[c.jsx(T1e,{className:"h-3 w-3"}),C?"Skills:auto":`Skills:${(r==null?void 0:r.length)??0}`]})}),c.jsxs(iL,{align:"end",className:"w-80 space-y-3 p-3",children:[c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium",children:"Thread skills"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:C?"Uses globally enabled skills.":"Uses only pinned skills for this thread."})]}),C?c.jsx(Dn,{variant:"secondary",className:"text-[10px]",children:"global"}):c.jsx(Dn,{variant:"outline",className:"text-[10px]",children:"custom"})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(me,{size:"sm",variant:C?"secondary":"outline",className:"h-7 text-xs",disabled:x,onClick:()=>void j(null),children:"Global"}),c.jsx(me,{size:"sm",variant:!C&&((r==null?void 0:r.length)??0)===0?"secondary":"outline",className:"h-7 text-xs",disabled:x,onClick:()=>void j([]),children:"None"})]}),l?c.jsxs("div",{className:"flex items-center gap-2 py-4 text-sm text-muted-foreground",children:[c.jsx($t,{className:"h-4 w-4 animate-spin"}),"Loading skills..."]}):d?c.jsxs("div",{className:"space-y-3 rounded-lg border border-destructive/50 bg-destructive/5 p-3",children:[c.jsxs("div",{className:"flex items-start gap-2 text-sm text-destructive",children:[c.jsx(Is,{className:"mt-0.5 h-4 w-4 shrink-0"}),c.jsx("span",{children:d})]}),c.jsx(me,{size:"sm",variant:"outline",className:"h-7 text-xs",onClick:()=>{m(!1),_()},children:"Retry"})]}):w.length===0?c.jsx("div",{className:"rounded-lg border border-dashed p-4 text-xs text-muted-foreground",children:"No enabled skills. Install/enable ClawHub skills in Settings."}):c.jsx("div",{className:"max-h-64 space-y-2 overflow-y-auto pr-1",children:w.map(E=>{const N=S.includes(E.id),R=vut(E),$=R.icon;return c.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-2.5",children:[c.jsx("div",{className:`mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-md ${R.className}`,children:c.jsx($,{className:"h-3.5 w-3.5"})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("p",{className:"truncate text-sm font-medium",children:E.name}),c.jsx("p",{className:"line-clamp-2 text-xs text-muted-foreground",children:E.description})]}),c.jsx(Nd,{checked:N,disabled:x||C,onCheckedChange:q=>{T(E.id,q)}})]},E.id)})})]})]})}function Lue(e){return e.showTerminal?"terminal":e.showProject?e.showProjectEditor?"editor":e.showProjectTree?e.treeTab:null:null}function ym(e,n){return Lue(e)===n}function Sut({activeProject:e,activeProjectId:n,automation:r,changedFilesCount:i,compactManagerToolbar:s,currentView:a,isMobile:o,mobileProjectControlState:l,previewOpen:u,showArchitecture:d,showDebugPanel:h,showManagerRepos:f,showProject:m,showSidebar:x,showTerminal:v,token:_,viewMode:w,onBackFromManagerThread:S,onMobileProjectTargetAction:C,onOpenPlan:j,onOpenStrategy:T,onToggleArchitecture:E,onToggleDebugPanel:N,onToggleEditor:R,onToggleManagerRepos:$,onTogglePreview:q,onToggleSidebar:z,onToggleTerminal:B}){return a!=="chat"||!o&&w!=="manager"?null:c.jsxs("div",{className:`border-b bg-muted/30 px-2 sm:px-5 shrink-0 ${o&&!s?"hidden":"flex"} ${s?"min-h-[35px] items-center gap-1.5 pt-14 py-2":"h-11 md:h-[35px] items-center gap-1 overflow-x-auto overflow-y-visible scrollbar-none"}`,children:[w==="developer"&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:x?"secondary":"ghost",size:"sm",className:o?"h-8 w-8 shrink-0 rounded-md p-0":"h-7 shrink-0 rounded-md px-2 text-xs",onClick:z,"aria-label":"Toggle projects sidebar",children:[x?c.jsx(n5,{className:`${o?"h-3.5 w-3.5 rotate-90":"h-3 w-3 mr-1"}`}):c.jsx(r5,{className:`${o?"h-3.5 w-3.5 rotate-90":"h-3 w-3 mr-1"}`}),!o&&"Projects"]})}),c.jsx(mr,{side:"bottom",children:"Toggle projects sidebar"})]}),w==="developer"&&!o&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:v?"secondary":"ghost",size:"sm",className:"h-7 shrink-0 rounded-md px-2 text-xs",onClick:B,children:[c.jsx(Ms,{className:"h-3 w-3 mr-1"}),"Terminal"]})}),c.jsx(mr,{side:"bottom",children:"Toggle terminal panel"})]}),w==="developer"&&o&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsx(me,{variant:ym(l,"terminal")?"secondary":"ghost",size:"sm",className:"h-9 w-9 shrink-0 rounded-md p-0","aria-label":"Terminal",onClick:()=>C("terminal"),children:c.jsx(Ms,{className:"h-4 w-4"})})}),c.jsx(mr,{side:"bottom",children:"Terminal"})]}),w==="manager"&&r.selectedThread&&!o&&c.jsxs(me,{variant:"ghost",size:"sm",className:"h-6 text-xs px-2 shrink-0",onClick:S,children:[c.jsx(Y8,{className:"h-3 w-3 mr-1"}),"Back"]}),n&&(w==="developer"||w==="manager"&&r.selectedThread)&&!(o&&w==="manager")&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:`flex items-center shrink-0 ${o?"gap-1":""}`,children:o?c.jsxs(c.Fragment,{children:[c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsx(me,{variant:ym(l,"files")?"secondary":"ghost",size:"sm",className:"h-9 w-9 rounded-md p-0","aria-label":"Files",onClick:()=>C("files"),children:c.jsx(Ah,{className:"h-4 w-4"})})}),c.jsx(mr,{side:"bottom",children:"Files"})]}),c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:ym(l,"git")?"secondary":"ghost",size:"sm",className:"relative h-9 w-9 rounded-md p-0","aria-label":"Changes",onClick:()=>C("git"),children:[c.jsx(Hf,{className:"h-4 w-4"}),i>0&&c.jsx("span",{className:"absolute -right-1 -top-1 z-10 min-w-[14px] rounded-full bg-primary px-1 text-2xs font-bold leading-[14px] text-primary-foreground",children:i>99?"99+":i})]})}),c.jsx(mr,{side:"bottom",children:"Changes"})]}),c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsx(me,{variant:ym(l,"editor")?"secondary":"ghost",size:"sm",className:"h-9 w-9 rounded-md p-0","aria-label":"Editor",onClick:()=>C("editor"),children:c.jsx(F_,{className:"h-4 w-4"})})}),c.jsx(mr,{side:"bottom",children:"Editor"})]})]}):c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:m?"secondary":"ghost",size:"sm",className:"h-7 rounded-md px-2 text-xs",onClick:R,children:[c.jsx(F_,{className:"h-3 w-3 mr-1"}),"Editor",m&&c.jsx(qr,{className:"h-3 w-3 ml-1"})]})}),c.jsx(mr,{side:"bottom",children:m?"Hide editor":"Show editor"})]})}),w==="developer"&&m&&e&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:u?"secondary":"ghost",size:"sm",className:o?"h-9 w-9 shrink-0 rounded-md p-0":"h-7 shrink-0 rounded-md px-2 text-xs","aria-label":u?"Close preview":"Open preview",onClick:q,children:[c.jsx(bi,{className:`h-3 w-3${o?"":" mr-1"}`}),!o&&"Preview",!o&&u&&c.jsx(qr,{className:"h-3 w-3 ml-1"})]})}),c.jsx(mr,{side:"bottom",children:u?"Close preview":"Open dev preview"})]})]}),w==="developer"&&m&&e&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:d?"secondary":"ghost",size:"sm",className:o?"h-9 w-9 shrink-0 rounded-md p-0":"h-7 shrink-0 rounded-md px-2 text-xs","aria-label":d?"Close architecture":"Open architecture",onClick:E,children:[c.jsx(z_,{className:`h-3 w-3${o?"":" mr-1"}`}),!o&&"Architecture",!o&&d&&c.jsx(qr,{className:"h-3 w-3 ml-1"})]})}),c.jsx(mr,{side:"bottom",children:"Software architecture diagram"})]}),w==="developer"&&m&&e&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsx(me,{variant:h?"secondary":"ghost",size:"sm",className:"ml-auto h-6 w-6 shrink-0 p-0",onClick:N,children:c.jsx(YR,{className:"h-3 w-3"})})}),c.jsx(mr,{side:"bottom",children:"SSE debug stream"})]}),w==="manager"&&c.jsxs(c.Fragment,{children:[r.selectedThread?null:c.jsxs(c.Fragment,{children:[c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:f?"secondary":"ghost",size:"sm",className:"h-6 text-xs px-2 shrink-0",onClick:$,children:[f?c.jsx(n5,{className:`h-3 w-3 mr-1${o?" rotate-90":""}`}):c.jsx(r5,{className:`h-3 w-3 mr-1${o?" rotate-90":""}`}),"Repositories"]})}),c.jsx(mr,{side:"bottom",children:"Toggle repositories panel"})]}),r.selectedRepo&&r.selectedRepo.source==="local"&&c.jsxs(c.Fragment,{children:[c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:"ghost",size:"sm",className:"h-6 text-xs px-2 shrink-0",onClick:()=>T(r.selectedRepo),children:[c.jsx(MY,{className:"h-3 w-3 mr-1"}),"Strategy"]})}),c.jsx(mr,{side:"bottom",children:"Open repository strategy"})]}),c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:"ghost",size:"sm",className:"h-6 text-xs px-2 shrink-0",onClick:()=>j(r.selectedRepo),children:[c.jsx(_m,{className:"h-3 w-3 mr-1"}),"Todos"]})}),c.jsx(mr,{side:"bottom",children:"Open todo plan"})]})]})]}),!(o&&r.selectedThread)&&c.jsx("div",{className:"flex-1"}),r.selectedThread?c.jsxs("div",{className:o?"flex min-w-0 flex-1 items-center gap-1.5":"flex min-w-0 items-center gap-2 shrink-0",children:[o&&c.jsx(me,{variant:"ghost",size:"sm",className:"h-7 w-7 shrink-0 p-0",onClick:S,children:c.jsx(Y8,{className:"h-3.5 w-3.5"})}),c.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-2",children:[c.jsx(z9,{status:r.selectedThread.status}),o?c.jsxs("div",{className:"min-w-0 flex-1",children:[tj(r.selectedThread.title)?c.jsx(mO,{className:"text-xs h-3.5 w-28"}):c.jsx("span",{className:"block truncate text-2xs leading-tight text-muted-foreground sm:text-xs",children:r.selectedThread.title.replace(/^\[.*?\]\s*/,"")}),c.jsxs("div",{className:"mt-0.5 flex min-w-0 items-center gap-1.5 overflow-hidden text-2xs leading-tight text-muted-foreground",children:[r.selectedRepo&&c.jsxs("span",{className:"min-w-0 truncate",children:[r.selectedRepo.name," · ",r.selectedRepo.defaultBranch]}),c.jsx(gO,{kind:r.selectedThread.kind}),r.selectedThread.branch&&c.jsx("span",{className:"shrink min-w-0 truncate font-mono",children:r.selectedThread.branch})]})]}):c.jsxs("div",{className:"min-w-0 flex items-center gap-2",children:[tj(r.selectedThread.title)?c.jsx(mO,{className:"text-xs h-3.5 w-28"}):c.jsx("span",{className:"max-w-[200px] truncate text-2xs text-muted-foreground sm:text-xs",children:r.selectedThread.title.replace(/^\[.*?\]\s*/,"")}),c.jsx(gO,{kind:r.selectedThread.kind}),r.selectedRepo&&c.jsxs("span",{className:"max-w-[160px] truncate text-2xs text-muted-foreground",children:[r.selectedRepo.name," · ",r.selectedRepo.defaultBranch]})]})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:[c.jsx(wut,{token:_,threadId:r.selectedThread.id,selectedSkillIds:r.selectedThread.skillIds}),!o&&r.selectedThread.branch&&c.jsx(Dn,{variant:"outline",className:"text-2xs px-1 py-0 font-mono",children:r.selectedThread.branch}),B9(r.selectedThread)&&c.jsx(me,{variant:"ghost",size:"icon",className:"h-[18px] w-[18px] sm:h-5 sm:w-5",onClick:()=>void r.handleStop(r.selectedThread.id),title:r.selectedThread.kind==="delegation"?"End helper thread":"Stop thread",children:c.jsx(hx,{className:"h-2.5 w-2.5"})}),r.showGitActions&&r.selectedRepo&&c.jsx("div",{className:o?"shrink-0":"ml-2 shrink-0",children:c.jsx(I9,{threadId:r.selectedThread.id,cwd:r.selectedThread.workingDirectory??r.selectedRepo.localPath,branch:r.selectedThread.branch,baseBranch:r.selectedRepo.defaultBranch,threadTitle:r.selectedThread.title,threadStatus:r.selectedThread.status,threadKind:r.selectedThread.kind,prUrl:r.selectedThread.prUrl,prState:r.selectedThread.id in r.threadPrStates?r.threadPrStates[r.selectedThread.id]:r.selectedThread.prState,ghAvailable:r.ghAvailable,showStatusBadge:!o,changeFiles:r.selectedThread.changeFiles,changeInsertions:r.selectedThread.changeInsertions,changeDeletions:r.selectedThread.changeDeletions})})]})]}):null]})]})}const kut={proposed:{label:"Proposed",color:"text-blue-600 dark:text-blue-400",bg:"bg-blue-500/10"},approved:{label:"Ready",color:"text-green-600 dark:text-green-400",bg:"bg-green-500/10"},running:{label:"Running",color:"text-amber-600 dark:text-amber-400",bg:"bg-amber-500/10"},completed:{label:"Done",color:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-500/10"},skipped:{label:"Skipped",color:"text-muted-foreground",bg:"bg-muted/50"}};function Cut({status:e}){const n=kut[e];return c.jsx("span",{className:`inline-flex items-center rounded-full px-1.5 py-0.5 text-2xs font-medium ${n.color} ${n.bg}`,children:n.label})}function jut({open:e,onOpenChange:n,repoId:r,repoName:i,defaultBranch:s,repoLocalPath:a,provider:o,model:l,onStartThread:u}){const d=Hm(),[h,f]=y.useState([]),[m,x]=y.useState(null),[v,_]=y.useState(!1),[w,S]=y.useState(!1),[C,j]=y.useState(null),[T,E]=y.useState(""),[N,R]=y.useState(new Set),[$,q]=y.useState(null),[z,B]=y.useState(""),[H,D]=y.useState(""),O=h.find(ne=>ne.id===m)??h[0]??null;y.useEffect(()=>{if(!e||!r)return;let ne=!1;return _(!0),j(null),fn.listPlans(r).then(oe=>{ne||(f(oe),oe.length>0&&!m&&x(oe[0].id))}).catch(oe=>{ne||j(oe instanceof Error?oe.message:"Failed to load plans")}).finally(()=>{ne||_(!1)}),()=>{ne=!0}},[e,r]);const I=y.useCallback(async()=>{j(null);try{const ne=await fn.createPlan(r,{title:"New Plan"});f(oe=>[ne,...oe]),x(ne.id)}catch(ne){j(ne instanceof Error?ne.message:"Failed to create plan")}},[r]),M=y.useCallback(async()=>{if(O){S(!0),j(null);try{const ne=await fn.generatePlanTasks(O.id,{prompt:T||void 0,provider:o,model:o==="jait"?null:l??null});f(oe=>oe.map(he=>he.id===ne.plan.id?ne.plan:he)),E("")}catch(ne){j(ne instanceof Error?ne.message:"Failed to generate tasks")}finally{S(!1)}}},[O,T,l,o]),P=y.useCallback(async(ne,oe)=>{if(!O)return;const he=O.tasks.map(le=>le.id===ne?{...le,status:oe}:le);try{const le=await fn.updatePlan(O.id,{tasks:he});f(se=>se.map(we=>we.id===le.id?le:we))}catch(le){j(le instanceof Error?le.message:"Failed to update task")}},[O]),F=y.useCallback(async ne=>{if(!O)return;const oe=O.tasks.filter(he=>he.id!==ne);try{const he=await fn.updatePlan(O.id,{tasks:oe});f(le=>le.map(se=>se.id===he.id?he:se))}catch(he){j(he instanceof Error?he.message:"Failed to remove task")}},[O]),G=y.useCallback(async()=>{if(!O||!$)return;const ne=O.tasks.map(oe=>oe.id===$?{...oe,title:z,description:H}:oe);try{const oe=await fn.updatePlan(O.id,{tasks:ne});f(he=>he.map(le=>le.id===oe.id?oe:le)),q(null)}catch(oe){j(oe instanceof Error?oe.message:"Failed to save task")}},[O,$,z,H]),W=y.useCallback(async ne=>{if(O){j(null);try{await fn.startPlanTask(O.id,ne.id),u(ne,O,{name:i,localPath:a,defaultBranch:s}),f(oe=>oe.map(he=>he.id===O.id?{...he,tasks:he.tasks.map(le=>le.id===ne.id?{...le,status:"running"}:le)}:he))}catch(oe){j(oe instanceof Error?oe.message:"Failed to start task")}}},[O,i,a,s,u]),V=y.useCallback(async()=>{if(!O)return;j(null);const ne=O.tasks.filter(he=>he.status==="approved"||he.status==="proposed");if(ne.length===0){j("No tasks to start. Approve some tasks first, or generate new ones.");return}const oe=O.tasks.map(he=>he.status==="proposed"?{...he,status:"approved"}:he);try{const he=await fn.updatePlan(O.id,{tasks:oe,status:"active"});f(le=>le.map(se=>se.id===he.id?he:se))}catch{}for(const he of ne)try{u(he,O,{name:i,localPath:a,defaultBranch:s}),f(le=>le.map(se=>se.id===O.id?{...se,tasks:se.tasks.map(we=>we.id===he.id?{...we,status:"running"}:we)}:se)),await new Promise(le=>setTimeout(le,500))}catch{}},[O,i,a,s,u]),J=y.useCallback(async()=>{if(!(!O||!await d({title:"Delete plan",description:`Delete plan "${O.title}"?`,confirmLabel:"Delete",variant:"destructive"})))try{await fn.deletePlan(O.id),f(oe=>oe.filter(he=>he.id!==O.id)),x(null)}catch(oe){j(oe instanceof Error?oe.message:"Failed to delete plan")}},[O,d]),U=ne=>{R(oe=>{const he=new Set(oe);return he.has(ne)?he.delete(ne):he.add(ne),he})},Q=ne=>{q(ne.id),B(ne.title),D(ne.description),R(oe=>new Set(oe).add(ne.id))},X=(O==null?void 0:O.tasks.filter(ne=>ne.status==="approved"||ne.status==="proposed").length)??0,ee=(O==null?void 0:O.tasks.filter(ne=>ne.status==="completed").length)??0,ie=(O==null?void 0:O.tasks.length)??0;return c.jsx(Lo,{open:e,onOpenChange:n,children:c.jsxs(oo,{className:"flex max-h-[85vh] w-full max-w-2xl flex-col gap-0 overflow-hidden p-0",children:[c.jsx(dl,{className:"shrink-0 border-b px-4 py-3",children:c.jsxs(lo,{className:"flex items-center gap-2 text-sm",children:[c.jsx("span",{children:"Plans"}),c.jsx("span",{className:"text-muted-foreground",children:"—"}),c.jsx("span",{className:"font-normal text-muted-foreground",children:i}),O&&ie>0&&c.jsxs("span",{className:"ml-auto text-2xs text-muted-foreground",children:[ee,"/",ie," done"]})]})}),c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[v?c.jsx("div",{className:"flex flex-1 items-center justify-center py-12",children:c.jsx($t,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):O?c.jsxs(c.Fragment,{children:[h.length>1&&c.jsxs("div",{className:"flex items-center gap-2 border-b px-4 py-2",children:[c.jsx("select",{className:"flex-1 rounded border bg-transparent px-2 py-1 text-xs",value:O.id,onChange:ne=>x(ne.target.value),children:h.map(ne=>c.jsxs("option",{value:ne.id,children:[ne.title," (",ne.tasks.length," tasks)"]},ne.id))}),c.jsx(me,{variant:"ghost",size:"sm",className:"h-6 px-2 text-2xs",onClick:I,children:c.jsx(Ps,{className:"h-3 w-3"})})]}),c.jsxs("div",{className:"flex items-center gap-2 border-b px-4 py-2",children:[c.jsx(Er,{placeholder:"Describe what you want to accomplish…",className:"h-8 flex-1 text-xs",value:T,onChange:ne=>E(ne.target.value),onKeyDown:ne=>{ne.key==="Enter"&&!ne.shiftKey&&(ne.preventDefault(),M())}}),c.jsxs(me,{variant:"outline",size:"sm",className:"h-8 gap-1.5 text-xs",disabled:w,onClick:()=>void M(),children:[w?c.jsx($t,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(U_,{className:"h-3.5 w-3.5"}),"Generate"]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:O.tasks.length===0?c.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-8",children:c.jsx("p",{className:"text-xs text-muted-foreground",children:"No tasks yet. Use the prompt above to generate tasks, or add them manually."})}):c.jsx("div",{className:"divide-y",children:O.tasks.map(ne=>{const oe=N.has(ne.id),he=$===ne.id,le=ne.status==="proposed"||ne.status==="approved",se=ne.status==="proposed"||ne.status==="approved";return c.jsxs("div",{className:"px-4 py-2.5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("button",{type:"button",className:"shrink-0 rounded p-0.5 text-muted-foreground hover:text-foreground",onClick:()=>U(ne.id),children:oe?c.jsx(pl,{className:"h-3.5 w-3.5"}):c.jsx(ys,{className:"h-3.5 w-3.5"})}),c.jsx(Cut,{status:ne.status}),he?c.jsx(Er,{className:"h-6 flex-1 text-xs",value:z,onChange:we=>B(we.target.value),onKeyDown:we=>{we.key==="Enter"&&G(),we.key==="Escape"&&q(null)},autoFocus:!0}):c.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[c.jsx("span",{className:`min-w-0 flex-1 truncate text-xs ${ne.status==="skipped"?"line-through text-muted-foreground":"font-medium"}`,children:ne.title}),ne.skillCandidate&&c.jsx("span",{className:"inline-flex shrink-0 items-center rounded-full bg-violet-500/10 px-1.5 py-0.5 text-[10px] font-medium text-violet-600 dark:text-violet-400",children:"skill"})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[le&&c.jsx("button",{type:"button",title:"Start thread",className:"rounded p-1 text-green-600 hover:bg-green-500/10 dark:text-green-400",onClick:()=>void W(ne),children:c.jsx(eS,{className:"h-3.5 w-3.5",fill:"currentColor"})}),ne.status==="proposed"&&c.jsx("button",{type:"button",title:"Approve",className:"rounded p-1 text-green-600 hover:bg-green-500/10 dark:text-green-400",onClick:()=>void P(ne.id,"approved"),children:c.jsx(Qi,{className:"h-3.5 w-3.5"})}),se&&c.jsx("button",{type:"button",title:"Skip",className:"rounded p-1 text-muted-foreground hover:bg-muted",onClick:()=>void P(ne.id,"skipped"),children:c.jsx(Hxe,{className:"h-3.5 w-3.5"})}),!he&&(ne.status==="proposed"||ne.status==="approved")&&c.jsx("button",{type:"button",title:"Edit",className:"rounded p-1 text-muted-foreground hover:bg-muted",onClick:()=>Q(ne),children:c.jsx(H_,{className:"h-3 w-3"})}),he&&c.jsx("button",{type:"button",title:"Save",className:"rounded p-1 text-green-600 hover:bg-green-500/10",onClick:()=>void G(),children:c.jsx(Qi,{className:"h-3.5 w-3.5"})}),(ne.status==="proposed"||ne.status==="approved"||ne.status==="skipped")&&c.jsx("button",{type:"button",title:"Remove",className:"rounded p-1 text-muted-foreground hover:text-destructive",onClick:()=>void F(ne.id),children:c.jsx(ul,{className:"h-3 w-3"})})]})]}),oe&&c.jsxs("div",{className:"mt-2 pl-6",children:[he?c.jsx("textarea",{className:"w-full rounded border bg-transparent px-2 py-1.5 text-xs leading-relaxed focus:outline-none focus:ring-1 focus:ring-primary",rows:4,value:H,onChange:we=>D(we.target.value)}):c.jsx("p",{className:"whitespace-pre-wrap text-xs leading-relaxed text-muted-foreground",children:ne.description||"No description."}),ne.threadId&&c.jsxs("p",{className:"mt-1 text-2xs text-muted-foreground",children:["Thread: ",c.jsx("code",{className:"rounded bg-muted px-1",children:ne.threadId.slice(-8)})]}),(ne.skillCandidate||ne.skillRationale||ne.skillTitle)&&c.jsxs("div",{className:"mt-2 rounded-md border border-violet-500/20 bg-violet-500/5 px-2 py-1.5 text-[10px] text-muted-foreground",children:[c.jsxs("p",{children:["Skill eval: ",ne.skillCandidate?"yes":"no",ne.skillTitle?` · ${ne.skillTitle}`:""]}),ne.skillRationale&&c.jsx("p",{className:"mt-1 whitespace-pre-wrap",children:ne.skillRationale})]})]})]},ne.id)})})})]}):c.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 py-12",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"No plans yet for this repository."}),c.jsxs(me,{size:"sm",className:"gap-1.5 text-xs",onClick:I,children:[c.jsx(Ps,{className:"h-3.5 w-3.5"}),"Create plan"]})]}),C&&c.jsx("div",{className:"border-t bg-destructive/5 px-4 py-2 text-xs text-destructive",children:C})]}),c.jsx(sp,{className:"shrink-0 border-t px-4 py-3",children:c.jsxs("div",{className:"flex w-full items-center justify-between",children:[c.jsxs("div",{className:"flex gap-2",children:[!O&&c.jsxs(me,{size:"sm",className:"gap-1.5 text-xs",onClick:I,children:[c.jsx(Ps,{className:"h-3.5 w-3.5"}),"New plan"]}),O&&c.jsxs(me,{variant:"ghost",size:"sm",className:"gap-1.5 text-xs text-destructive hover:text-destructive",onClick:()=>void J(),children:[c.jsx(ul,{className:"h-3.5 w-3.5"}),"Delete plan"]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(me,{variant:"ghost",size:"sm",className:"text-xs",onClick:()=>n(!1),children:"Close"}),O&&X>0&&c.jsxs(me,{size:"sm",className:"gap-1.5 text-xs",onClick:()=>void V(),children:[c.jsx(Sye,{className:"h-3.5 w-3.5"}),"Start all (",X,")"]})]})]})})]})})}function Nut({open:e,onOpenChange:n,repoId:r,repoName:i}){const s=Hm(),[a,o]=y.useState(""),[l,u]=y.useState(""),[d,h]=y.useState(!1),[f,m]=y.useState(!1),[x,v]=y.useState(!1),[_,w]=y.useState(null),S=a!==l,C=_S();y.useEffect(()=>{if(!e||!r)return;let R=!1;return h(!0),w(null),fn.getRepoStrategy(r).then($=>{R||(o($),u($))}).catch($=>{R||w($ instanceof Error?$.message:"Failed to load strategy")}).finally(()=>{R||h(!1)}),()=>{R=!0}},[e,r]);const j=y.useCallback(async()=>{m(!0),w(null);try{const R=await fn.updateRepoStrategy(r,a);u(R),o(R)}catch(R){w(R instanceof Error?R.message:"Failed to save strategy")}finally{m(!1)}},[r,a]),T=y.useCallback(async()=>{v(!0),w(null);try{const R=await fn.generateRepoStrategy(r);R&&o(R)}catch(R){w(R instanceof Error?R.message:"Failed to generate strategy")}finally{v(!1)}},[r]),E=y.useCallback(()=>{o(l)},[l]),N=y.useCallback(R=>{if(R||!S){n(R);return}(async()=>await s({title:"Discard changes",description:"You have unsaved changes. Discard them?",confirmLabel:"Discard",variant:"destructive"})&&n(!1))()},[s,S,n]);return c.jsx(Lo,{open:e,onOpenChange:N,children:c.jsxs(oo,{className:"flex max-h-[85vh] w-full max-w-3xl flex-col gap-0 overflow-hidden p-0",children:[c.jsx(dl,{className:"shrink-0 border-b px-4 py-3",children:c.jsxs(lo,{className:"flex items-center gap-2 text-sm",children:[c.jsx("span",{children:"Strategy"}),c.jsx("span",{className:"text-muted-foreground",children:"—"}),c.jsx("span",{className:"font-normal text-muted-foreground",children:i}),S&&c.jsx("span",{className:"ml-1 rounded bg-amber-500/10 px-1.5 py-0.5 text-2xs text-amber-600 dark:text-amber-400",children:"unsaved"})]})}),c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[d?c.jsx("div",{className:"flex flex-1 items-center justify-center py-12",children:c.jsx($t,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):c.jsxs("div",{className:"relative min-h-0 flex-1",children:[c.jsx(lS,{height:"55vh",language:"markdown",beforeMount:R=>Kl(R,C),theme:C,value:a,onChange:R=>o(R??""),options:{minimap:{enabled:!1},"semanticHighlighting.enabled":!0,lineNumbers:"off",wordWrap:"on",fontSize:13,padding:{top:12,bottom:12},scrollBeyondLastLine:!1,renderLineHighlight:"none",overviewRulerLanes:0,folding:!0,tabSize:2}}),!a.trim()&&c.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center px-8 text-center",children:c.jsxs("div",{className:"max-w-md space-y-2",children:[c.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Add repository guidance for your agents"}),c.jsxs("p",{className:"text-xs leading-5 text-muted-foreground/80",children:["This works like a ",c.jsx("code",{children:"CLAUDE.md"})," or ",c.jsx("code",{children:"AGENTS.md"})," file: describe build commands, test workflow, code conventions, and repo-specific rules."]})]})})]}),_&&c.jsx("div",{className:"border-t bg-destructive/5 px-4 py-2 text-xs text-destructive",children:_})]}),c.jsx(sp,{className:"shrink-0 border-t px-4 py-3",children:c.jsxs("div",{className:"flex w-full items-center justify-between",children:[c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(me,{variant:"outline",size:"sm",className:"gap-1.5 text-xs",disabled:x||d,onClick:T,children:[x?c.jsx($t,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(U_,{className:"h-3.5 w-3.5"}),"Generate template"]}),S&&c.jsxs(me,{variant:"ghost",size:"sm",className:"gap-1.5 text-xs",onClick:E,children:[c.jsx(RY,{className:"h-3.5 w-3.5"}),"Reset"]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(me,{variant:"ghost",size:"sm",className:"text-xs",onClick:()=>n(!1),children:"Cancel"}),c.jsxs(me,{size:"sm",className:"gap-1.5 text-xs",disabled:!S||f||d,onClick:j,children:[f?c.jsx($t,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(i5,{className:"h-3.5 w-3.5"}),"Save"]})]})]})})]})})}function Tut({strategyRepo:e,onStrategyRepoChange:n,planRepo:r,onPlanRepoChange:i,provider:s,runtimeMode:a,model:o}){const l=(u,d)=>{(async()=>{const h=r,f=`jait/${Math.random().toString(16).slice(2,10)}`,m=h.defaultBranch;let x;try{x=(await Cs.createWorktree(h.localPath,m,f)).path}catch{try{await Cs.createBranch(h.localPath,f,m)}catch{}}const v=await fn.createThread({title:`[${h.name}] ${u.title}`,providerId:s,runtimeMode:s!=="jait"?a:void 0,kind:"delivery",workingDirectory:x??h.localPath,branch:f,prBaseBranch:m});await fn.startThread(v.id,{message:u.description||u.title,titleTask:u.title,titlePrefix:`[${h.name}] `});const _=d.tasks.map(w=>w.id===u.id?{...w,status:"running",threadId:v.id}:w);await fn.updatePlan(d.id,{tasks:_})})()};return c.jsxs(c.Fragment,{children:[e&&c.jsx(Nut,{open:!!e,onOpenChange:u=>{u||n(null)},repoId:e.id,repoName:e.name}),r&&c.jsx(jut,{open:!!r,onOpenChange:u=>{u||i(null)},repoId:r.id,repoName:r.name,defaultBranch:r.defaultBranch,repoLocalPath:r.localPath,provider:s,model:o,onStartThread:l})]})}function Eut(e){const n=new Date(e),i=new Date().getTime()-n.getTime();return i<6e4?"just now":i<36e5?`${Math.floor(i/6e4)}m ago`:i<864e5?`${Math.floor(i/36e5)}h ago`:n.toLocaleDateString()}function Aut({sessions:e,activeSessionId:n,projectTitle:r,onSelectSession:i,onNewSession:s,onOpenChange:a,showTitle:o=!0,triggerLabel:l=null}){const[u,d]=y.useState(!1),h=e.find(m=>m.id===n)??e[0]??null,f=m=>{d(m),a==null||a(m)};return c.jsxs("div",{className:o?"flex min-w-0 flex-1 items-center justify-between gap-1.5":"flex items-center gap-1.5",children:[o?c.jsx("span",{className:"min-w-0 truncate text-sm font-semibold leading-tight",children:h!=null&&h.name&&h.name!=="New Chat"?h.name:""}):null,c.jsxs(Vl,{open:u,onOpenChange:f,children:[c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsx(ql,{asChild:!0,children:c.jsxs(me,{variant:"ghost",size:l?"sm":"icon",className:l?"h-7 shrink-0 rounded-md px-2 text-xs text-muted-foreground hover:text-foreground":"h-6 w-6 shrink-0 rounded-md text-muted-foreground hover:text-foreground",children:[c.jsx(t5,{className:"h-3.5 w-3.5"}),l?c.jsx("span",{children:l}):null]})})}),c.jsx(mr,{side:"bottom",children:l??"Sessions"})]}),c.jsxs(sl,{align:"start",className:"w-[min(28rem,calc(100vw-1rem))] p-0",children:[c.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-medium",children:"Sessions"}),c.jsx("div",{className:"text-xs text-muted-foreground",children:r||"Current project"})]}),c.jsxs(me,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>{s(),d(!1)},children:[c.jsx(q1e,{className:"mr-1 h-3 w-3"}),"New chat"]})]}),c.jsx("div",{className:"max-h-[min(28rem,70vh)] overflow-y-auto p-2",children:e.length===0?c.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"No sessions yet."}):c.jsx("div",{className:"space-y-0.5",children:e.map(m=>{const x=m.id===n;return c.jsxs("button",{type:"button",className:`flex w-full items-start gap-2 rounded-md px-3 py-2 text-left transition-colors ${x?"bg-secondary text-secondary-foreground":"hover:bg-muted/50"}`,onClick:()=>{i(m.id),d(!1)},children:[x?c.jsx(Qi,{className:"mt-0.5 h-3 w-3 shrink-0 text-primary"}):c.jsx("span",{className:"mt-1 h-2 w-2 shrink-0 rounded-full bg-muted-foreground/50"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"truncate text-xs font-medium",children:m.name||"Untitled"}),m.status==="archived"&&c.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border px-1.5 py-0 text-2xs text-muted-foreground",children:[c.jsx(KR,{className:"h-2.5 w-2.5"}),"Archived"]})]}),c.jsx("div",{className:"text-2xs text-muted-foreground",children:Eut(m.lastActiveAt)})]})]},m.id)})})})]})]})]})}function Out({activeProjectId:e,activeProjectSessions:n,activeProjectTitle:r,activeSessionId:i,approveAllInSession:s,compact:a,disableSendTargetSelector:o,remainingPrompts:l,repositories:u,selectedThreadRepo:d,sendTarget:h,threadRepoPickerDisabled:f,getRuntimeInfo:m,onAddRepository:x,onClearApproveAll:v,onCreateSession:_,onSendTargetChange:w,onSessionSwitcherOpenChange:S,onStartNewChat:C,onSelectRepo:j,onSelectSession:T}){const E=h==="thread"?c.jsx(_ie,{repositories:u,selectedRepo:d,disabled:f,compact:a,className:a?"w-full":"",getRuntimeInfo:m,onSelect:j,onAddRepository:x}):null;return c.jsx("div",{className:`${a?"overflow-hidden px-0.5":"overflow-x-auto px-1"}`,children:c.jsxs("div",{className:`${a?"flex w-full min-w-0 items-center gap-2":"grid min-w-max grid-cols-[1fr_auto_1fr] gap-3 whitespace-nowrap"} items-center`,children:[c.jsxs("div",{className:`${a?"flex min-w-0 flex-1 items-center gap-1 overflow-hidden":"flex min-w-0 flex-1 items-center gap-2"}`,children:[h==="thread"?E:c.jsx(Aut,{sessions:n,activeSessionId:i,projectTitle:r??"Personal chat",onSelectSession:N=>T(e,N),onNewSession:_,onOpenChange:S,showTitle:!1,triggerLabel:"History"}),s&&(a?c.jsx("button",{type:"button",onClick:v,className:"inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-green-500/10 text-green-600 transition-colors hover:bg-green-500/20 dark:text-green-400",title:"Auto-approved. Clear approve all","aria-label":"Auto-approved. Clear approve all",children:c.jsx(js,{className:"h-3.5 w-3.5"})}):c.jsxs("span",{className:"inline-flex shrink-0 items-center gap-1 rounded-full bg-green-500/10 px-2 py-0.5 text-xs text-green-600 dark:text-green-400",children:["Auto-approved",c.jsx("button",{type:"button",onClick:v,className:"rounded-full p-0.5 hover:bg-green-500/20 transition-colors",title:"Clear approve all",children:c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}))]}),!a&&c.jsx("div",{className:"justify-self-center",children:c.jsx(_7,{target:h,onChange:w,disabled:o})}),c.jsxs("div",{className:`${a?"ml-auto flex shrink-0 items-center gap-2":"flex shrink-0 items-center justify-self-end gap-2"}`,children:[h!=="thread"&&c.jsx("button",{type:"button",onClick:C,className:"shrink-0 text-xs text-muted-foreground transition-colors hover:text-foreground",children:"New chat"}),a&&c.jsx("div",{className:"shrink-0",children:c.jsx(_7,{target:h,onChange:w,disabled:o,compact:!0})}),l!==null&&c.jsxs("span",{className:`${a?"hidden":"shrink-0"} text-xs text-muted-foreground`,children:[l," remaining"]})]})]})})}function Rut({className:e,...n}){return c.jsx("div",{className:ke("relative flex-1 overflow-hidden bg-transparent shadow-none",e),...n})}function Mut({className:e,...n}){return c.jsx(me,{variant:"outline",size:"icon",className:ke("absolute bottom-4 left-1/2 h-9 w-9 -translate-x-1/2 rounded-full border-border/80 bg-background shadow-lg",e),...n,children:c.jsx(bY,{className:"h-4 w-4"})})}const Put=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ON","CS","ON","CS","ON","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ON","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","ON","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],Lut=["AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","AL","AL","AL","AL","AL","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL"];function $ut(e){return e<=255?Put[e]:1424<=e&&e<=1524?"R":1536<=e&&e<=1791?Lut[e&255]:1792<=e&&e<=2220?"AL":"L"}function Dut(e){const n=e.length;if(n===0)return null;const r=new Array(n);let i=0;for(let d=0;d<n;d++){const h=$ut(e.charCodeAt(d));(h==="R"||h==="AL"||h==="AN")&&i++,r[d]=h}if(i===0)return null;const s=n/i<.3?0:1,a=new Int8Array(n);for(let d=0;d<n;d++)a[d]=s;const o=s&1?"R":"L",l=o;let u=l;for(let d=0;d<n;d++)r[d]==="NSM"?r[d]=u:u=r[d];u=l;for(let d=0;d<n;d++){const h=r[d];h==="EN"?r[d]=u==="AL"?"AN":"EN":(h==="R"||h==="L"||h==="AL")&&(u=h)}for(let d=0;d<n;d++)r[d]==="AL"&&(r[d]="R");for(let d=1;d<n-1;d++)r[d]==="ES"&&r[d-1]==="EN"&&r[d+1]==="EN"&&(r[d]="EN"),r[d]==="CS"&&(r[d-1]==="EN"||r[d-1]==="AN")&&r[d+1]===r[d-1]&&(r[d]=r[d-1]);for(let d=0;d<n;d++){if(r[d]!=="EN")continue;let h;for(h=d-1;h>=0&&r[h]==="ET";h--)r[h]="EN";for(h=d+1;h<n&&r[h]==="ET";h++)r[h]="EN"}for(let d=0;d<n;d++){const h=r[d];(h==="WS"||h==="ES"||h==="ET"||h==="CS")&&(r[d]="ON")}u=l;for(let d=0;d<n;d++){const h=r[d];h==="EN"?r[d]=u==="L"?"L":"EN":(h==="R"||h==="L")&&(u=h)}for(let d=0;d<n;d++){if(r[d]!=="ON")continue;let h=d+1;for(;h<n&&r[h]==="ON";)h++;const f=d>0?r[d-1]:l,m=h<n?r[h]:l,x=f!=="L"?"R":"L";if(x===(m!=="L"?"R":"L"))for(let _=d;_<h;_++)r[_]=x;d=h-1}for(let d=0;d<n;d++)r[d]==="ON"&&(r[d]=o);for(let d=0;d<n;d++){const h=r[d];(a[d]&1)===0?h==="R"?a[d]++:(h==="AN"||h==="EN")&&(a[d]+=2):(h==="L"||h==="AN"||h==="EN")&&a[d]++}return a}function Iut(e,n){const r=Dut(e);if(r===null)return null;const i=new Int8Array(n.length);for(let s=0;s<n.length;s++)i[s]=r[n[s]];return i}const But=/[ \t\n\r\f]+/g,zut=/[\t\n\r\f]| {2,}|^ | $/;function Fut(e){const n=e??"normal";return n==="pre-wrap"?{mode:n,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:n,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Hut(e){if(!zut.test(e))return e;let n=e.replace(But," ");return n.charCodeAt(0)===32&&(n=n.slice(1)),n.length>0&&n.charCodeAt(n.length-1)===32&&(n=n.slice(0,-1)),n}function Wut(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
1398
+ `});return}for(const yr of mn.childNodes)Qn(yr)}};for(const mn of tn.childNodes)Qn(mn);if(sn.some(mn=>mn.type==="file"||mn.type==="project"||mn.type==="terminal")){Me.preventDefault(),Me.clipboardData.setData("text/plain",wue(sn));const mn=Sue(sn);mn&&Me.clipboardData.setData(jj,mn)}},[]),hr=y.useCallback(Me=>{var mn,yr;const st=se.current,Kt=Me.clipboardData.items,xn=[];for(let vn=0;vn<Kt.length;vn++)if((mn=Kt[vn])!=null&&mn.type.startsWith("image/")){const vt=(yr=Kt[vn])==null?void 0:yr.getAsFile();vt&&xn.push(vt)}if(xn.length>0){Me.preventDefault(),_i(xn);return}if(!st)return;const pn=Hct(Me.clipboardData.getData(jj)),tn=pn.length>0?pn:Fct(Me.clipboardData.getData("text/plain"));if(tn.length>0){Me.preventDefault(),Qct(st,tn,Dr),_e.current=eo(st),Ln.current=!0,r(Xs(st)),Ln.current=!1,ut(Yu(Xs(st))&&!Xu(st)),PV(st);return}Me.preventDefault();const sn=Me.clipboardData.getData("text/plain");if(!sn)return;on(!0),eut(st,sn),_e.current=eo(st);const Qn=Xs(st);Ln.current=!0,r(Qn),Ln.current=!1,ut(Yu(Qn)&&!Xu(st)),PV(st)},[_i,Dr,r,on]),or=y.useCallback(Me=>{Me.preventDefault(),Me.stopPropagation(),Pt.current++,Pt.current===1&&Ot(!0)},[]),fr=y.useCallback(Me=>{Me.preventDefault(),Me.stopPropagation(),Pt.current--,Pt.current===0&&Ot(!1)},[]),Wi=y.useCallback(Me=>{Me.preventDefault(),Me.stopPropagation(),Me.dataTransfer.dropEffect="copy"},[]),Ne=y.useCallback(Me=>{var Qn,mn,yr,vn,vt;Me.preventDefault(),Me.stopPropagation(),Pt.current=0,Ot(!1);const st=se.current;if(!st)return;const Kt=bn=>{if(st.querySelector(`[data-chip-ref="${CSS.escape(Ej(bn))}"]`))return!1;const hi="type"in bn?bn:{type:"file",path:bn.path,name:bn.name,...bn.kind?{kind:bn.kind}:{}};return LV(st,[hi],Dr),_e.current=eo(st),hm(st),Ln.current=!0,r(Xs(st)),Ln.current=!1,ut(!1),!0},xn=Me.dataTransfer.getData("text/jait-file");if(xn){try{const bn=JSON.parse(xn);Kt(bn)}catch{}return}const pn=Me.dataTransfer.getData(bue);if(pn){try{const bn=JSON.parse(pn);Kt({type:"project",...bn})}catch{}return}const tn=Me.dataTransfer.getData(_ue);if(tn){try{const bn=JSON.parse(tn);Kt({type:"terminal",...bn})}catch{}return}const sn=(Qn=window.jaitDesktop)==null?void 0:Qn.getPathForFile;if((mn=Me.dataTransfer.files)!=null&&mn.length&&sn){const bn=Array.from(Me.dataTransfer.files),hi=Me.dataTransfer.items;let wi=!1;C7(st);for(let aa=0;aa<bn.length;aa++){const es=bn[aa];if(!es)continue;const Fr=sn(es);if(!Fr)continue;const fo=Fr.split(/[\\/]/).pop()??Fr,vl=(vn=(yr=hi==null?void 0:hi[aa])==null?void 0:yr.webkitGetAsEntry)==null?void 0:vn.call(yr),oa=vl!=null&&vl.isDirectory||es.type===""&&es.size===0?"dir":"file";wi=Kt({path:Fr,name:fo,kind:oa})||wi}wi&&Lt.current(!0)}else(vt=Me.dataTransfer.files)!=null&&vt.length&&_i(Me.dataTransfer.files)},[r,Dr,_i]);return c.jsxs("div",{ref:le,className:ke("group relative z-10 flex flex-col rounded-2xl border bg-background dark:bg-card focus-within:border-primary/50 focus-within:ring-2 focus-within:ring-primary/20",pt&&"ring-2 ring-primary/30 border-primary/40",f),onDragEnter:or,onDragLeave:fr,onDragOver:Wi,onDrop:Ne,children:[Ze&&c.jsxs("div",{className:"absolute top-2 right-3 z-10 flex items-center gap-1 text-[10px] leading-none text-muted-foreground",title:(V==null?void 0:V.trim())||Ze,children:[c.jsxs("span",{className:"block truncate max-w-[180px] pointer-events-none",children:[c.jsx("span",{className:"font-semibold text-foreground/60",children:"PROJECT"})," ",Ze]}),J&&c.jsx("button",{type:"button","aria-label":"Copy chat id",title:`Copy chat id: ${J}`,className:"pointer-events-auto shrink-0 rounded p-0.5 text-muted-foreground/40 opacity-0 transition-all hover:text-foreground hover:bg-muted/60 focus-visible:opacity-100 focus-visible:text-foreground group-hover:opacity-100 group-focus-within:opacity-100",onClick:async Me=>{Me.preventDefault();try{await navigator.clipboard.writeText(J),Qt(!0),setTimeout(()=>Qt(!1),1200)}catch{}},children:an?c.jsx(Qi,{className:"h-2.5 w-2.5 text-emerald-500"}):c.jsx(nl,{className:"h-2.5 w-2.5"})})]}),Oe.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2 px-3 pt-3",children:Oe.map(Me=>c.jsxs("div",{className:"group relative flex items-center gap-1.5 rounded-lg border bg-muted/50 px-2 py-1.5 text-xs",children:[Me.preview?c.jsx("img",{src:Me.preview,alt:Me.name,className:"h-8 w-8 rounded object-cover"}):c.jsx(xa,{filename:Me.name,className:"h-4 w-4 shrink-0"}),c.jsx("span",{className:"max-w-[120px] truncate",children:Me.name}),c.jsx("button",{type:"button",className:"ml-0.5 rounded-full p-0.5 text-muted-foreground hover:bg-destructive/10 hover:text-destructive transition-colors",onClick:()=>Fh(Me.name),children:c.jsx(qr,{className:"h-3 w-3"})})]},Me.name))}),c.jsx("input",{ref:je,type:"file",multiple:!0,accept:"image/*,.txt,.md,.ts,.tsx,.js,.jsx,.py,.json,.yaml,.yml,.toml,.css,.html,.xml,.csv,.log,.sh,.bat,.rs,.go,.java,.c,.cpp,.h,.hpp",className:"hidden",onChange:Me=>{var st;(st=Me.target.files)!=null&&st.length&&(_i(Me.target.files),Me.target.value="")}}),c.jsxs("div",{className:"relative px-3 pt-3 pb-1.5",children:[Ut&&c.jsx("div",{className:"absolute top-5 left-5 pointer-events-none text-muted-foreground leading-relaxed select-none [font-size:0.9rem]",children:h}),c.jsx("div",{ref:se,contentEditable:!Ae,role:"textbox","aria-multiline":!0,suppressContentEditableWarning:!0,onKeyDown:ho,onPaste:hr,onCopy:fp,onDrop:Me=>{Me.preventDefault()},onDragStart:Me=>{Me.preventDefault()},onBeforeInput:Me=>{const st=Me.nativeEvent.inputType;(st==="insertFromDrop"||st==="insertHTML")&&Me.preventDefault()},className:ke("min-h-[40px] max-h-[200px] overflow-y-auto leading-relaxed outline-none py-2 px-2 text-foreground [font-size:0.9rem]","whitespace-pre-wrap break-words",Ae&&"cursor-not-allowed opacity-50"),style:{wordBreak:"break-word"}})]}),ge&&(Vn.length>0||zn)&&c.jsxs("div",{ref:we,className:"absolute left-3 bottom-full mb-1 w-72 max-h-52 overflow-y-auto rounded-lg border bg-popover p-1 shadow-lg z-50",children:[Vn.map((Me,st)=>c.jsxs("button",{type:"button",className:ke("flex items-center gap-2 w-full text-left text-xs px-2 py-1.5 rounded-md transition-colors",st===Tt?"bg-accent text-accent-foreground":"hover:bg-muted"),onMouseDown:Kt=>{Kt.preventDefault(),Bo(Me)},onMouseEnter:()=>ht(st),children:[Me.kind==="dir"?c.jsx(V4,{name:Me.name,className:"h-3.5 w-3.5 shrink-0"}):c.jsx(xa,{filename:Me.name,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"truncate",children:Me.path})]},Me.path)),zn&&c.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5 text-xs text-muted-foreground",children:[c.jsx("span",{className:"h-3 w-3 animate-spin rounded-full border-2 border-current border-t-transparent"}),"Searching..."]}),!zn&&Vn.length===0&&c.jsx("div",{className:"text-xs text-muted-foreground px-2 py-1.5",children:"No matching files or folders"})]}),Ht&&c.jsxs("div",{ref:Ue,className:"absolute left-3 bottom-full mb-1 w-80 max-h-60 overflow-y-auto rounded-lg border bg-popover p-1 shadow-lg z-50",children:[c.jsx("div",{className:"px-2 py-1 text-2xs font-medium uppercase tracking-wide text-muted-foreground/70",children:"Skills"}),yn.map((Me,st)=>c.jsxs("button",{type:"button",className:ke("flex w-full flex-col items-start gap-0.5 rounded-md px-2 py-1.5 text-left transition-colors",st===Rt?"bg-accent text-accent-foreground":"hover:bg-muted"),onMouseDown:Kt=>{Kt.preventDefault(),Ei(Me)},onMouseEnter:()=>_t(st),children:[c.jsxs("span",{className:"flex w-full items-center gap-1.5 text-xs font-medium",children:[c.jsx("span",{className:"text-muted-foreground",children:"/"}),c.jsx("span",{className:"truncate",children:Me.name})]}),Me.description&&c.jsx("span",{className:"line-clamp-1 text-2xs text-muted-foreground",children:Me.description})]},Me.id)),yn.length===0&&c.jsx("div",{className:"px-2 py-1.5 text-xs text-muted-foreground",children:"No matching skills"})]}),c.jsxs("div",{className:"flex min-w-0 items-start gap-2 px-3 pb-2.5 pt-0.5",children:[Dt&&c.jsx("div",{className:"min-w-0 flex-1",children:Wt&&c.jsx("div",{className:"min-w-0 overflow-x-auto scrollbar-none",children:c.jsxs("div",{className:"flex min-w-max items-center gap-1 pr-1",children:[m,ye&&c.jsx(_7,{target:E,onChange:N,disabled:Je,compact:ze}),ot&&c.jsx(Sct,{value:z,onChange:B,disabled:Je,compact:ze}),Jt&&c.jsx(Mct,{provider:$,model:O??null,onProviderChange:q,onModelChange:I,disabled:Je,compact:ze,repoRuntime:M,onMoveToGateway:P,sessionInfo:F,projectNodeId:G}),fe&&c.jsx(Pct,{provider:$,value:H,onChange:D,disabled:Je,compact:ze}),qe&&c.jsx(wct,{mode:j,onChange:T,disabled:Je,compact:ze})]})})}),c.jsxs("div",{className:ke("flex shrink-0 items-center gap-1.5",Dt?"pl-1":"ml-auto"),children:[c.jsx(me,{type:"button",size:"icon",variant:"ghost",className:"h-8 w-8 shrink-0 rounded-lg",onClick:()=>{var Me;return(Me=je.current)==null?void 0:Me.click()},title:"Attach files",children:c.jsx(AY,{className:"h-4 w-4"})}),v&&!_&&!S&&c.jsx(me,{type:"button",size:"icon",variant:"ghost",className:"h-8 w-8 shrink-0 rounded-lg",onClick:v,title:"Voice input",children:c.jsx(l0,{className:"h-4 w-4"})}),_&&C&&c.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[c.jsxs("span",{className:"flex shrink-0 items-center gap-1.5 text-xs font-medium text-foreground/80",children:[c.jsx("span",{className:"h-2 w-2 rounded-full bg-foreground/70 animate-pulse"}),!Ce&&"Listening..."]}),c.jsx(Cue,{levels:w,compact:Ce}),c.jsxs(me,{type:"button",size:"sm",variant:"outline",className:ke("h-7 shrink-0 rounded-lg text-xs",Ce?"px-2":"px-2.5"),onClick:C,children:[c.jsx(Qw,{className:ke("h-3.5 w-3.5",!Ce&&"mr-1")}),!Ce&&"Done"]})]}),S&&c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsx($t,{className:"h-3.5 w-3.5 animate-spin"}),"Transcribing..."]}),x,o&&E!=="thread"&&c.jsx(me,{type:"button",size:"icon",variant:"outline",className:"h-8 w-8 shrink-0 rounded-lg",onClick:s,title:"Stop generating",children:c.jsx(hx,{className:"h-3.5 w-3.5 fill-current"})}),$r&&gr?c.jsx(me,{type:"button",size:"icon",className:"h-8 w-8 shrink-0 rounded-lg",disabled:!0,title:"Sending",children:c.jsx($t,{className:"h-4 w-4 animate-spin"})}):$r&&a?c.jsx(me,{type:"button",size:"icon",variant:"secondary",className:"h-8 w-8 shrink-0 rounded-lg",disabled:gr||Ae,title:"Add to queue",onClick:()=>{const Me=se.current,st=Me?o8(Me):[],Kt=Me?eo(Me):$s(Q);a(st,Oe,Kt),Ct([]),ci()},children:c.jsx(eM,{className:"h-4 w-4"})}):!o||E==="thread"?c.jsx(me,{type:"button",size:"icon",className:"h-8 w-8 shrink-0 rounded-lg",disabled:!!l||gr||Ae,title:l?"Loading chat":void 0,onClick:()=>{const Me=se.current,st=Me?o8(Me):[],Kt=Me?eo(Me):$s(Q);i(st,Oe,Kt),Ct([]),ci()},children:l?c.jsx($t,{className:"h-4 w-4 animate-spin"}):c.jsx(_Y,{className:"h-4 w-4"})}):c.jsx(me,{type:"button",size:"icon",className:"h-8 w-8 shrink-0 rounded-lg",disabled:!0,title:"Sending",children:c.jsx($t,{className:"h-4 w-4 animate-spin"})})]})]})]})}),jue="jait.todo.order.v1",Nue="jait.todo.filters.v1",WC=8,c8=[{value:"open",label:"Open"},{value:"in_progress",label:"In progress"},{value:"done",label:"Done"}],Cb=[{value:"low",label:"Low"},{value:"normal",label:"Normal"},{value:"high",label:"High"}];function Jg(e){switch(e){case"done":return{label:"Done",iconClassName:"text-emerald-500",itemClassName:"border-emerald-500/20 bg-emerald-500/[0.04]"};case"in_progress":return{label:"In progress",iconClassName:"text-sky-500",itemClassName:"border-sky-500/20 bg-sky-500/[0.035]"};case"open":default:return{label:"Open",iconClassName:"text-muted-foreground",itemClassName:"bg-card/40"}}}function Tue(e){switch(e){case"high":return"text-amber-500";case"low":return"text-muted-foreground/70";case"normal":default:return"text-primary/70"}}function n_({status:e,className:n}){const r=Jg(e);return e==="done"?c.jsx(js,{className:ke("h-5 w-5",r.iconClassName,n)}):e==="in_progress"?c.jsx(SY,{className:ke("h-5 w-5",r.iconClassName,n)}):c.jsx(ZR,{className:ke("h-5 w-5",r.iconClassName,n)})}function $V({priority:e,className:n}){return c.jsx(CY,{className:ke("h-4 w-4",Tue(e),n)})}function Eg({label:e,children:n}){return c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:n}),c.jsx(mr,{children:e})]})}function Eue(){if(typeof window>"u")return{};try{const e=JSON.parse(window.localStorage.getItem(jue)??"{}");return!e||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(n=>typeof n[0]=="string"&&Array.isArray(n[1])&&n[1].every(r=>typeof r=="string")))}catch{return{}}}function DV(e,n){if(!(typeof window>"u"||!e))try{const r=Eue();r[e]=n.map(i=>i.id),window.localStorage.setItem(jue,JSON.stringify(r))}catch{}}function rut(e,n){const r=Eue()[e];if(!(r!=null&&r.length))return n;const i=new Map(r.map((a,o)=>[a,o])),s=new Map(n.map((a,o)=>[a.id,o]));return[...n].sort((a,o)=>{const l=i.get(a.id),u=i.get(o.id);return l!=null&&u!=null?l-u:l!=null?-1:u!=null?1:(s.get(a.id)??0)-(s.get(o.id)??0)})}function iut(){return{search:""}}function Aue(){if(typeof window>"u")return{};try{const e=JSON.parse(window.localStorage.getItem(Nue)??"{}");if(!e||typeof e!="object"||Array.isArray(e))return{};const n=Object.entries(e).flatMap(([r,i])=>{if(!i||typeof i!="object"||Array.isArray(i))return[];const s=i;return[[r,{search:typeof s.search=="string"?s.search:""}]]});return Object.fromEntries(n)}catch{return{}}}function sut(e){return Aue()[e]??iut()}function aut(e,n){if(!(typeof window>"u"||!e))try{const r=Aue();r[e]={search:n.search},window.localStorage.setItem(Nue,JSON.stringify(r))}catch{}}function IV(e,n,r,i){const s=e.findIndex(u=>u.id===n);if(s<0)return e;const a=[...e],[o]=a.splice(s,1);if(!o)return e;if(r==null)return a.push(o),a;const l=a.findIndex(u=>u.id===r);return l<0?e:(a.splice(l+(i==="after"?1:0),0,o),a)}function BV(){if(!(typeof window>"u"))try{const e=window.AudioContext||window.webkitAudioContext;if(!e)return;const n=new e,r=n.currentTime,i=n.createGain();i.gain.setValueAtTime(1e-4,r),i.gain.exponentialRampToValueAtTime(.08,r+.012),i.gain.exponentialRampToValueAtTime(1e-4,r+.34),i.connect(n.destination);for(const[s,a]of[660,880].entries()){const o=n.createOscillator();o.type="sine",o.frequency.setValueAtTime(a,r+s*.08),o.connect(i),o.start(r+s*.08),o.stop(r+.22+s*.08)}window.setTimeout(()=>void n.close(),450)}catch{}}function out({todo:e}){const n=Jg(e.status);return c.jsxs("div",{className:ke("flex items-start gap-2 rounded-lg border bg-background px-3 py-2 text-sm shadow-2xl ring-1 ring-primary/10",n.itemClassName),children:[c.jsx(n4,{className:"mt-1 h-4 w-4 shrink-0 text-muted-foreground"}),c.jsx(n_,{status:e.status,className:"mt-0.5 shrink-0"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"mb-1 flex items-center gap-1.5 text-[11px] font-medium uppercase text-muted-foreground",children:[c.jsx("span",{children:n.label}),c.jsx(CY,{className:ke("h-3 w-3",Tue(e.priority))}),c.jsx("span",{children:e.priority})]}),c.jsx("span",{className:ke("whitespace-pre-wrap break-words text-foreground",e.status==="done"&&"text-muted-foreground line-through"),children:e.message})]})]})}function Oj(e){if(Array.isArray(e))return e;if(!e)return[];try{const n=JSON.parse(e);return Array.isArray(n)?n.filter(r=>typeof r=="string"):[]}catch{return e.split(",").map(n=>n.trim()).filter(Boolean)}}function lut(e){return[...new Set(e.split(",").map(n=>n.trim().toLowerCase()).filter(Boolean))]}function Zg(e){return[...new Set(e.map(n=>n.trim().toLowerCase()).filter(Boolean))]}function I3(e){const n=e.getFullYear(),r=`${e.getMonth()+1}`.padStart(2,"0"),i=`${e.getDate()}`.padStart(2,"0");return`${n}-${r}-${i}`}function Oue(e){return new Intl.DateTimeFormat(void 0,{month:"long",year:"numeric"}).format(e)}function Rue(e){if(!e)return null;const[n,r,i]=e.split("-").map(Number);return!n||!r||!i?null:new Date(n,r-1,i)}function j1(e){const n=Rue(e);return n?new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric"}).format(n):"No due date"}function Mue(e){if(!e)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(n)}function cut(e){if(!e)return[];try{const n=JSON.parse(e);return Array.isArray(n)?n.flatMap(r=>{if(!r||typeof r!="object")return[];const i=r;if(typeof i.completedAt!="string")return[];const s=i.previousStatus==="open"||i.previousStatus==="in_progress"||i.previousStatus==="done"?i.previousStatus:null;return[{completedAt:i.completedAt,previousStatus:s}]}):[]}catch{return[]}}function uut(e){const n=Jg(e.status),r=Oj(e.tags);return[e.message,n.label,e.status,e.priority,e.dueDate,j1(e.dueDate),r.join(" "),e.sourceThreadTitle,e.createdAt,e.updatedAt,e.completedAt,Mue(e.completedAt)].filter(Boolean).join(" ").toLowerCase()}function dut(e,n){const r=n.trim().toLowerCase().split(/\s+/).filter(Boolean);if(r.length===0)return!0;const i=uut(e);return r.every(s=>i.includes(s))}function hut(e){return e.flatMap(n=>{const r=Oj(n.tags),i=cut(n.completionHistory);return(i.length>0?i:n.completedAt?[{completedAt:n.completedAt,previousStatus:null}]:[]).map(a=>({...a,todoId:n.id,message:n.message,tags:r}))}).sort((n,r)=>new Date(r.completedAt).getTime()-new Date(n.completedAt).getTime())}function fut(e){return[...e].sort((n,r)=>{const i=n.status==="done",s=r.status==="done";return i!==s?i?1:-1:0})}function Pue(e){const n=new Date(e.getFullYear(),e.getMonth(),1),r=new Date(n);return r.setDate(n.getDate()-n.getDay()),Array.from({length:42},(i,s)=>{const a=new Date(r);return a.setDate(r.getDate()+s),a})}function j7({value:e,onChange:n,placeholder:r="Add date",className:i,iconOnly:s=!1}){const a=Rue(e),[o,l]=y.useState(!1),[u,d]=y.useState(()=>a??new Date),h=f=>{n(f),l(!1)};return y.useEffect(()=>{a&&d(a)},[a==null?void 0:a.getTime()]),c.jsxs(nL,{open:o,onOpenChange:l,children:[c.jsx(rL,{asChild:!0,children:c.jsxs(me,{type:"button",variant:"outline",className:ke(s?"h-8 w-8 justify-center px-0":"h-10 w-full justify-start gap-2 px-3 text-left font-normal",!e&&"text-muted-foreground",i),title:e?`Due ${j1(e)}`:r,"aria-label":e?`Due ${j1(e)}`:r,children:[c.jsx(XR,{className:"h-4 w-4 shrink-0"}),!s&&c.jsx("span",{className:"truncate",children:e?j1(e):r})]})}),c.jsxs(iL,{align:"start",className:"w-[19rem] p-3",children:[c.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[c.jsx(me,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>d(new Date(u.getFullYear(),u.getMonth()-1,1)),"aria-label":"Previous month",children:c.jsx(B1,{className:"h-4 w-4"})}),c.jsx("div",{className:"text-sm font-medium",children:Oue(u)}),c.jsx(me,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>d(new Date(u.getFullYear(),u.getMonth()+1,1)),"aria-label":"Next month",children:c.jsx(ys,{className:"h-4 w-4"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-1 text-center text-[11px] font-medium text-muted-foreground",children:["S","M","T","W","T","F","S"].map((f,m)=>c.jsx("div",{className:"py-1",children:f},`${f}-${m}`))}),c.jsx("div",{className:"grid grid-cols-7 gap-1",children:Pue(u).map(f=>{const m=I3(f),x=e===m,v=m===I3(new Date),_=f.getMonth()!==u.getMonth();return c.jsx(me,{type:"button",variant:x?"secondary":"ghost",size:"icon",className:ke("h-8 w-8 rounded-md text-xs font-normal",_&&"text-muted-foreground/55",v&&!x&&"border border-border"),onClick:()=>h(m),children:f.getDate()},m)})}),c.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2 border-t pt-3",children:[c.jsx(me,{type:"button",variant:"ghost",size:"sm",className:"h-8 px-2 text-xs",onClick:()=>h(I3(new Date)),children:"Today"}),c.jsxs(me,{type:"button",variant:"ghost",size:"sm",className:"h-8 px-2 text-xs",onClick:()=>h(null),children:[c.jsx(qr,{className:"mr-1 h-3.5 w-3.5"}),"Clear"]})]})]})]})}function put({value:e,onChange:n,className:r,iconOnly:i=!1}){const[s,a]=y.useState(!!e);return y.useEffect(()=>{e&&a(!0)},[e]),s?c.jsx(j7,{value:e,onChange:o=>{n(o),o||a(!1)},className:r,iconOnly:i}):c.jsxs(me,{type:"button",variant:"outline",className:ke(i?"h-8 w-8 justify-center px-0 text-muted-foreground":"h-10 justify-start gap-2 text-muted-foreground",r),onClick:()=>a(!0),title:"Add date","aria-label":"Add date",children:[c.jsx(XR,{className:"h-4 w-4"}),!i&&"Add date"]})}function Ky({value:e,onChange:n,options:r,placeholder:i,disabled:s,className:a,triggerLabel:o,triggerIcon:l}){var d;const u=((d=r.find(h=>h.value===e))==null?void 0:d.label)??i??e;return c.jsxs(bd,{value:e,onValueChange:h=>n(h),disabled:s,children:[c.jsx(ku,{className:a,title:o?`${o}: ${u}`:u,"aria-label":o?`${o}: ${u}`:u,children:l||c.jsx(_d,{placeholder:i})}),c.jsx(Cu,{children:r.map(h=>c.jsx(Ls,{value:h.value,children:h.label},h.value))})]})}function u8({value:e,onChange:n,placeholder:r="Add tag...",commitOnBlur:i=!1,className:s,inputClassName:a}){const[o,l]=y.useState(""),u=Zg(e),d=()=>{const f=lut(o);f.length!==0&&(n(Zg([...u,...f])),l(""))},h=f=>{n(u.filter(m=>m!==f))};return c.jsxs("div",{className:ke("flex min-h-10 w-full flex-wrap items-center gap-1.5 rounded-lg border border-input bg-background/90 px-2 py-1.5 shadow-sm focus-within:ring-2 focus-within:ring-ring/60 focus-within:ring-offset-2 focus-within:ring-offset-background",s),children:[u.map(f=>c.jsxs(Dn,{variant:"secondary",className:"h-6 gap-1 rounded-md px-2 text-xs",children:[c.jsx("span",{children:f}),c.jsx("button",{type:"button",className:"-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-sm text-muted-foreground hover:bg-foreground/10 hover:text-foreground",onClick:()=>h(f),"aria-label":`Remove ${f} tag`,children:c.jsx(qr,{className:"h-3 w-3"})})]},f)),c.jsx("input",{value:o,onChange:f=>{const m=f.target.value;if(m.includes(",")){const x=m.split(","),v=x.pop()??"",_=Zg([...u,...x]);(_.length!==u.length||_.some((w,S)=>w!==u[S]))&&n(_),l(v.trimStart());return}l(m)},onKeyDown:f=>{f.key==="Enter"||f.key===","?(f.preventDefault(),d()):f.key==="Backspace"&&!o&&u.length>0&&(f.preventDefault(),n(u.slice(0,-1)))},onBlur:()=>{i&&d()},className:ke("h-6 min-w-28 flex-1 bg-transparent px-1 text-sm outline-none placeholder:text-muted-foreground",a),placeholder:u.length===0?r:""})]})}function mut({provider:e="jait",model:n=null,runtimeMode:r="full-access",onVoiceInput:i,voiceRecording:s=!1,voiceTranscribing:a=!1,voiceLevels:o,onVoiceStop:l}){var Zr;const[u,d]=y.useState([]),[h,f]=y.useState(""),[m,x]=y.useState([]),[v,_]=y.useState("list"),[w,S]=y.useState("all"),[C,j]=y.useState(""),[T,E]=y.useState(null),[N,R]=y.useState(()=>new Date),[$,q]=y.useState(""),[z,B]=y.useState("open"),[H,D]=y.useState("normal"),[O,I]=y.useState(null),[M,P]=y.useState([]),[F,G]=y.useState(()=>new Set),[W,V]=y.useState([]),[J,U]=y.useState("normal"),[Q,X]=y.useState(null),[ee,ie]=y.useState(!0),[ne,oe]=y.useState(!1),[he,le]=y.useState(!1),[se,we]=y.useState(()=>new Set),[Ce,ze]=y.useState(null),[Xe,pt]=y.useState(!1),[Ot,Pt]=y.useState(0),an=y.useRef(null),Qt=y.useRef(null),[Ut,ut]=y.useState(null),[Oe,Ct]=y.useState(null),[je,_e]=y.useState(null),Qe=y.useCallback(async()=>{const Ae=await fn.listRepos();d(Ae),f(lt=>pct(Ae,lt)??"")},[]),gt=y.useCallback(async Ae=>{if(!Ae){x([]),ie(!1);return}ie(!0),ze(null);try{x(rut(Ae,await fn.listJaitTodos(Ae)))}catch(lt){ze(lt instanceof Error?lt.message:"Failed to load todo list")}finally{ie(!1)}},[]);y.useEffect(()=>{(async()=>{ie(!0),ze(null);try{await Qe()}catch(Ae){ze(Ae instanceof Error?Ae.message:"Failed to load repositories"),ie(!1)}})()},[Qe]),y.useEffect(()=>{gt(h)},[gt,h]),y.useEffect(()=>{if(!h){j(""),E(null),G(new Set);return}const Ae=sut(h);j(Ae.search),E(h),G(new Set)},[h]),y.useEffect(()=>{!h||T!==h||aut(h,{search:C})},[T,C,h]);const rt=y.useMemo(()=>fut(m.filter(Ae=>!(w!=="all"&&Ae.status!==w||!dut(Ae,C)))),[C,w,m]),bt=y.useMemo(()=>({open:m.filter(Ae=>Ae.status==="open").length,inProgress:m.filter(Ae=>Ae.status==="in_progress").length,done:m.filter(Ae=>Ae.status==="done").length}),[m]),It=u.find(Ae=>Ae.id===h),We=y.useMemo(()=>u.map(Ae=>({value:Ae.id,label:Ae.name})),[u]),ve=y.useMemo(()=>m.filter(Ae=>F.has(Ae.id)),[F,m]),ge=y.useMemo(()=>rt.filter(Ae=>F.has(Ae.id)).length,[rt,F]),Ie=rt.length>0&&ge===rt.length,Ge=y.useMemo(()=>hut(m),[m]),Be=Math.max(1,Math.ceil(Ge.length/WC)),Tt=Ge.slice(Ot*WC,Ot*WC+WC);y.useEffect(()=>{Pt(Ae=>Math.min(Ae,Be-1))},[Be]),y.useEffect(()=>{G(Ae=>{const lt=new Set(m.map(Jt=>Jt.id)),Je=new Set([...Ae].filter(Jt=>lt.has(Jt)));return Je.size===Ae.size?Ae:Je})},[m]);const ht=y.useCallback(Ae=>{f(Ae);const lt=u.find(Je=>Je.id===Ae);fct(Ae,(lt==null?void 0:lt.localPath)??null)},[u]);y.useEffect(()=>{if(ee||!It||v!=="list")return;const Ae=window.requestAnimationFrame(()=>{var lt,Je;(lt=an.current)==null||lt.focus(),(Je=an.current)==null||Je.select()});return()=>window.cancelAnimationFrame(Ae)},[ee,v,It==null?void 0:It.id]);const Ht=y.useCallback(async()=>{const Ae=$.trim();if(!(!h||!Ae)){oe(!0),ze(null);try{const lt=await fn.createJaitTodo(h,{message:Ae,status:z,priority:H,dueDate:O,tags:M});x(Je=>{const Jt=[lt,...Je];return DV(h,Jt),Jt}),q(""),B("open"),D("normal"),I(null),P([]),window.requestAnimationFrame(()=>{var Je;return(Je=an.current)==null?void 0:Je.focus()})}catch(lt){ze(lt instanceof Error?lt.message:"Failed to add todo")}finally{oe(!1)}}},[O,$,H,z,M,h]),jt=y.useCallback(Ae=>{Ae.key==="Enter"&&!Ae.shiftKey&&(Ae.preventDefault(),Ht())},[Ht]),At=y.useCallback(()=>{i==null||i({onTranscript:Ae=>{q(lt=>gue(lt,Ae)),window.requestAnimationFrame(()=>{const lt=an.current;lt&&(lt.focus(),lt.selectionStart=lt.value.length,lt.selectionEnd=lt.value.length,lt.scrollTop=lt.scrollHeight)})}})},[i]),ft=y.useCallback(()=>{if(s){l==null||l();return}At()},[At,l,s]),Rt=async(Ae,lt)=>{x(Je=>Je.map(Jt=>Jt.id===Ae.id?{...Jt,...lt,tags:lt.tags?JSON.stringify(lt.tags):Jt.tags}:Jt));try{const Je=await fn.updateJaitTodo(Ae.id,lt);x(Jt=>Jt.map(ot=>ot.id===Ae.id?Je:ot))}catch(Je){ze(Je instanceof Error?Je.message:"Failed to update todo"),gt(h)}},_t=async(Ae,lt)=>{Ae.status!=="done"&&lt==="done"&&BV(),await Rt(Ae,{status:lt})},Ue=async Ae=>{const lt=m;x(Je=>Je.filter(Jt=>Jt.id!==Ae)),G(Je=>{const Jt=new Set(Je);return Jt.delete(Ae),Jt});try{await fn.deleteJaitTodo(Ae)}catch(Je){x(lt),ze(Je instanceof Error?Je.message:"Failed to remove todo")}},it=y.useCallback((Ae,lt)=>{G(Je=>{const Jt=new Set(Je);return lt?Jt.add(Ae):Jt.delete(Ae),Jt})},[]),St=y.useCallback(Ae=>{G(lt=>{const Je=new Set(lt);for(const Jt of rt)Ae?Je.add(Jt.id):Je.delete(Jt.id);return Je})},[rt]),Ee=async(Ae,lt)=>{if(ve.length!==0){le(!0),ze(null);try{const Je=await Promise.all(ve.map(ot=>fn.updateJaitTodo(ot.id,Ae(ot)))),Jt=new Map(Je.map(ot=>[ot.id,ot]));x(ot=>ot.map(fe=>Jt.get(fe.id)??fe))}catch(Je){ze(Je instanceof Error?Je.message:lt),gt(h)}finally{le(!1)}}},He=async Ae=>{Ae==="done"&&ve.some(lt=>lt.status!=="done")&&BV(),await Ee(()=>({status:Ae}),"Failed to update selected todo statuses")},xe=async Ae=>{await Ee(()=>({priority:Ae}),"Failed to update selected todo priorities")},qt=async Ae=>{await Ee(()=>({dueDate:Ae}),"Failed to update selected todo due dates")},wt=async()=>{const Ae=Zg(W);Ae.length!==0&&(await Ee(lt=>({tags:Zg([...Oj(lt.tags),...Ae])}),"Failed to update selected todo tags"),V([]))},Lt=async()=>{if(ve.length===0)return;const Ae=m,lt=new Set(ve.map(Je=>Je.id));x(Je=>Je.filter(Jt=>!lt.has(Jt.id))),G(new Set),le(!0),ze(null);try{await Promise.all([...lt].map(Je=>fn.deleteJaitTodo(Je)))}catch(Je){x(Ae),ze(Je instanceof Error?Je.message:"Failed to remove selected todos")}finally{le(!1)}},yn=async Ae=>{if(!(!It||se.has(Ae.id))){we(lt=>new Set(lt).add(Ae.id)),ze(null);try{const lt=`jait/${Math.random().toString(16).slice(2,10)}`,Je=It.defaultBranch;let Jt;try{Jt=(await Cs.createWorktree(It.localPath,Je,lt)).path}catch{try{await Cs.createBranch(It.localPath,lt,Je)}catch{}}const ot=await fn.createThread(gct({repo:It,providerId:e,runtimeMode:r,model:n,workingDirectory:Jt??It.localPath,branch:lt}));await fn.startThread(ot.id,yct(It.name,Ae)),Ae.status!=="done"&&await Rt(Ae,{status:"in_progress"})}catch(lt){ze(lt instanceof Error?lt.message:"Failed to run todo as thread")}finally{we(lt=>{const Je=new Set(lt);return Je.delete(Ae.id),Je})}}},Vn=y.useMemo(()=>{const Ae=new Map;for(const lt of rt)lt.dueDate&&Ae.set(lt.dueDate,[...Ae.get(lt.dueDate)??[],lt]);return Ae},[rt]);y.useEffect(()=>{if(Ut&&!rt.some(Ae=>Ae.id===Ut)){ut(null),Ct(null),_e(null);return}Oe!=null&&Oe.targetId&&!rt.some(Ae=>Ae.id===Oe.targetId)&&Ct(Ut?{targetId:Ut,placement:"before"}:null)},[Ut,Oe,rt]),y.useEffect(()=>{var fe;if(!Ut||!je)return;document.body.style.cursor="grabbing",document.body.style.userSelect="none",document.body.style.touchAction="none";const Ae=qe=>{var Dt;const Ze=Array.from(document.querySelectorAll("[data-todo-id]")).filter(gr=>gr.dataset.todoId&&gr.dataset.todoId!==Ut);if(Ze.length===0){Ct({targetId:null,placement:"after"});return}for(const gr of Ze){const $r=gr.dataset.todoId;if(!$r)continue;const Ln=gr.getBoundingClientRect();if(qe<Ln.top+Ln.height/2){Ct({targetId:$r,placement:"before"});return}}const Wt=((Dt=Ze[Ze.length-1])==null?void 0:Dt.dataset.todoId)??null;Ct(Wt?{targetId:Wt,placement:"after"}:{targetId:null,placement:"after"})},lt=qe=>{var Ze,Wt;if(qe&&qe.pointerId!==je.pointerId)return;Oe&&Oe.targetId!==Ut&&x(Dt=>{const gr=IV(Dt,Ut,Oe.targetId,Oe.placement);return gr===Dt?Dt:(DV(h,gr),gr)});const ye=Qt.current;(Ze=ye==null?void 0:ye.hasPointerCapture)!=null&&Ze.call(ye,je.pointerId)&&((Wt=ye.releasePointerCapture)==null||Wt.call(ye,je.pointerId)),Qt.current=null,ut(null),Ct(null),_e(null)},Je=qe=>{qe.pointerId===je.pointerId&&(_e(ye=>ye&&{...ye,x:qe.clientX,y:qe.clientY}),Ae(qe.clientY))},Jt=()=>lt(),ot=()=>lt();return window.addEventListener("pointermove",Je),window.addEventListener("pointerup",lt),window.addEventListener("pointercancel",lt),window.addEventListener("blur",ot),(fe=Qt.current)==null||fe.addEventListener("lostpointercapture",Jt),()=>{var qe;document.body.style.cursor="",document.body.style.userSelect="",document.body.style.touchAction="",window.removeEventListener("pointermove",Je),window.removeEventListener("pointerup",lt),window.removeEventListener("pointercancel",lt),window.removeEventListener("blur",ot),(qe=Qt.current)==null||qe.removeEventListener("lostpointercapture",Jt)}},[je,Ut,Oe,h]);const ar=y.useCallback((Ae,lt)=>{var ot;if(lt.button!==0&&lt.pointerType!=="touch"&&lt.pointerType!=="pen")return;lt.preventDefault();const Je=lt.currentTarget.closest("[data-todo-id]");if(!Je)return;Qt.current=Je,(ot=Je.setPointerCapture)==null||ot.call(Je,lt.pointerId);const Jt=Je.getBoundingClientRect();ut(Ae),Ct({targetId:Ae,placement:"before"}),_e({id:Ae,pointerId:lt.pointerId,x:lt.clientX,y:lt.clientY,offsetX:lt.clientX-Jt.left,offsetY:lt.clientY-Jt.top,width:Jt.width,height:Jt.height})},[]),zn=Ut&&Oe&&(Oe.targetId!==Ut||Oe.placement==="after")?IV(rt,Ut,Oe.targetId,Oe.placement):rt,Zn=je?zn.find(Ae=>Ae.id===je.id):null;return c.jsxs("div",{className:"mx-auto flex max-w-7xl flex-col gap-4 px-3 py-4 sm:px-4 sm:py-6",children:[c.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsxs("h1",{className:"flex items-center gap-2 text-xl font-bold sm:text-2xl",children:[c.jsx(_m,{className:"h-6 w-6"}),"Todo"]}),c.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Global repo follow-up work, saved from agents or added directly here."})]}),c.jsxs("div",{className:"flex flex-row items-center gap-2",children:[c.jsxs(bd,{value:h||void 0,onValueChange:ht,disabled:u.length===0,children:[c.jsx(ku,{className:"h-10 min-w-0 flex-1 sm:flex-initial sm:min-w-56",children:c.jsx(_d,{placeholder:"Select repository"})}),c.jsx(Cu,{children:We.map(Ae=>c.jsx(Ls,{value:Ae.value,children:Ae.label},Ae.value))})]}),c.jsxs(me,{variant:"outline",onClick:()=>void gt(h),disabled:ee||!h,title:"Refresh","aria-label":"Refresh",className:"h-10 w-10 shrink-0 p-0 sm:w-auto sm:px-4",children:[c.jsx(ks,{className:ke("h-4 w-4 sm:mr-2",ee&&"animate-spin")}),c.jsx("span",{className:"hidden sm:inline",children:"Refresh"})]}),c.jsxs(me,{variant:"outline",onClick:()=>pt(!0),disabled:Ge.length===0,title:"History","aria-label":"History",className:"relative h-10 w-10 shrink-0 p-0 sm:w-auto sm:px-4",children:[c.jsx(t5,{className:"h-4 w-4 sm:mr-2"}),c.jsx("span",{className:"hidden sm:inline",children:"History"}),Ge.length>0&&c.jsx(Dn,{variant:"secondary",className:"ml-1 hidden px-1.5 sm:inline-flex",children:Ge.length}),Ge.length>0&&c.jsx("span",{className:"absolute -right-1 -top-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-semibold leading-none text-primary-foreground sm:hidden",children:Ge.length})]})]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(_m,{className:"h-3.5 w-3.5 text-primary/70"}),m.length," total"]}),c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(ZR,{className:"h-3.5 w-3.5 text-muted-foreground"}),bt.open," open"]}),c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(SY,{className:"h-3.5 w-3.5 text-sky-500"}),bt.inProgress," active"]}),c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(js,{className:"h-3.5 w-3.5 text-emerald-500"}),bt.done," done"]})]}),Ce&&c.jsxs("div",{className:"flex items-center gap-2 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:[c.jsx(Is,{className:"h-4 w-4"}),Ce,c.jsx(me,{variant:"ghost",size:"sm",className:"ml-auto",onClick:()=>ze(null),children:"Dismiss"})]}),c.jsx("div",{className:"rounded-lg border p-3",children:c.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-start",children:[c.jsxs("div",{className:"min-w-0 flex-1 rounded-lg border border-input bg-background/90 shadow-sm focus-within:ring-2 focus-within:ring-ring/60 focus-within:ring-offset-2 focus-within:ring-offset-background",children:[c.jsx(Mh,{ref:an,value:$,onChange:Ae=>q(Ae.target.value),onKeyDown:jt,placeholder:"Add a future agent prompt or repo task...",className:"min-h-20 resize-y border-0 bg-transparent shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"}),c.jsx(u8,{value:M,onChange:P,placeholder:"Add tags...",className:"min-h-9 rounded-none rounded-b-lg border-x-0 border-b-0 border-t bg-transparent px-2 py-1 shadow-none focus-within:ring-0 focus-within:ring-offset-0",inputClassName:"text-xs"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-1 text-xs text-muted-foreground lg:w-auto lg:flex-nowrap",children:[c.jsx(Eg,{label:`Status: ${Jg(z).label}`,children:c.jsx(Ky,{value:z,onChange:B,options:c8,triggerLabel:"Status",triggerIcon:c.jsx(n_,{status:z,className:"h-4 w-4"}),className:"h-8 w-8 justify-center rounded-md border-transparent bg-transparent px-0 text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0 [&>svg:last-child]:hidden"})}),c.jsx(Eg,{label:`Priority: ${((Zr=Cb.find(Ae=>Ae.value===H))==null?void 0:Zr.label)??H}`,children:c.jsx(Ky,{value:H,onChange:D,options:Cb,triggerLabel:"Priority",triggerIcon:c.jsx($V,{priority:H}),className:"h-8 w-8 justify-center rounded-md border-transparent bg-transparent px-0 text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0 [&>svg:last-child]:hidden"})}),c.jsx(Eg,{label:O?`Due ${j1(O)}`:"Add date",children:c.jsx(put,{value:O,onChange:I,iconOnly:!0,className:"rounded-md border-transparent bg-transparent text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0"})}),i&&(s?c.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[c.jsxs("span",{className:"flex shrink-0 items-center gap-1.5 text-xs font-medium text-foreground/80",children:[c.jsx("span",{className:"h-2 w-2 rounded-full bg-foreground/70 animate-pulse"}),"Listening..."]}),c.jsx(Cue,{levels:o,compact:!0}),c.jsxs(me,{type:"button",size:"sm",variant:"outline",className:"h-7 shrink-0 rounded-lg px-2.5 text-xs",onClick:ft,"aria-label":"Stop todo dictation",children:[c.jsx(Qw,{className:"mr-1 h-3.5 w-3.5"}),"Done"]})]}):a?c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsx($t,{className:"h-3.5 w-3.5 animate-spin"}),"Transcribing..."]}):c.jsx(Eg,{label:"Dictate todo",children:c.jsx(me,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:ft,"aria-label":"Dictate todo",children:c.jsx(l0,{className:"h-4 w-4"})})})),c.jsxs(me,{onClick:()=>void Ht(),disabled:ne||!h||!$.trim(),size:"sm",children:[ne?c.jsx($t,{className:"mr-2 h-4 w-4 animate-spin"}):c.jsx(Ps,{className:"mr-2 h-4 w-4"}),"Add"]})]})]})}),c.jsxs("div",{className:"flex items-center gap-2 rounded-lg border p-3",children:[c.jsxs("div",{className:"relative min-w-0 flex-1",children:[c.jsx(ao,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),c.jsx(Er,{value:C,onChange:Ae=>j(Ae.target.value),placeholder:"Search todos by text, tag, status, date...",className:"h-10 pl-9"})]}),c.jsx(me,{variant:v==="list"?"secondary":"outline",size:"icon",className:"h-10 w-10 shrink-0",onClick:()=>_("list"),title:"List view","aria-label":"List view",children:c.jsx(_m,{className:"h-4 w-4"})}),c.jsx(me,{variant:v==="calendar"?"secondary":"outline",size:"icon",className:"h-10 w-10 shrink-0",onClick:()=>_("calendar"),title:"Calendar view","aria-label":"Calendar view",children:c.jsx(XR,{className:"h-4 w-4"})}),c.jsx(Ky,{value:w,onChange:S,options:[{value:"all",label:"All statuses"},...c8],triggerLabel:"Status",triggerIcon:c.jsx(c1e,{className:"h-4 w-4"}),className:ke("h-10 w-auto shrink-0 gap-1 px-2.5",w!=="all"&&"border-primary text-primary")})]}),ve.length>0&&c.jsxs("div",{className:"grid gap-3 rounded-lg border p-3",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsxs(Dn,{variant:"secondary",children:[ve.length," selected"]}),c.jsx(me,{variant:"outline",size:"sm",onClick:()=>void He("open"),disabled:he,children:"Open"}),c.jsx(me,{variant:"outline",size:"sm",onClick:()=>void He("in_progress"),disabled:he,children:"In progress"}),c.jsx(me,{variant:"outline",size:"sm",onClick:()=>void He("done"),disabled:he,children:"Done"}),c.jsx(Ky,{value:J,onChange:Ae=>{U(Ae),xe(Ae)},options:Cb,className:"h-9 w-32"}),c.jsx(j7,{value:Q,onChange:Ae=>{X(Ae),qt(Ae)},placeholder:"Due date",className:"h-9 w-36"}),c.jsx(me,{variant:"outline",size:"sm",onClick:()=>void qt(null),disabled:he,children:"Clear date"})]}),c.jsxs("div",{className:"grid gap-2 md:grid-cols-[minmax(14rem,1fr)_auto_auto]",children:[c.jsx(u8,{value:W,onChange:V,placeholder:"Add tags to selected...",className:"min-h-9"}),c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>void wt(),disabled:he||W.length===0,children:[c.jsx(Ps,{className:"mr-2 h-4 w-4"}),"Add tags"]}),c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>void Lt(),disabled:he,children:[he?c.jsx($t,{className:"mr-2 h-4 w-4 animate-spin"}):c.jsx(ul,{className:"mr-2 h-4 w-4"}),"Remove"]})]})]}),c.jsx(Lo,{open:Xe,onOpenChange:pt,children:c.jsxs(oo,{className:"max-h-[85vh] max-w-2xl overflow-hidden p-0",children:[c.jsxs(dl,{className:"border-b px-4 py-3",children:[c.jsxs(lo,{className:"flex items-center gap-2 text-base",children:[c.jsx(t5,{className:"h-4 w-4 text-muted-foreground"}),"Completion history"]}),c.jsxs(Nu,{children:[Ge.length," completed event",Ge.length===1?"":"s"]})]}),c.jsx("div",{className:"grid max-h-[56vh] gap-2 overflow-y-auto px-4 py-3",children:Tt.map(Ae=>c.jsxs("div",{className:"min-w-0 rounded-md border bg-card/40 px-3 py-2",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[c.jsx(js,{className:"h-3.5 w-3.5 text-emerald-500"}),c.jsx("span",{children:Mue(Ae.completedAt)}),Ae.previousStatus&&c.jsxs("span",{children:["from ",Jg(Ae.previousStatus).label]})]}),c.jsx("div",{className:"mt-1 text-sm",children:Ae.message}),Ae.tags.length>0&&c.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Ae.tags.slice(0,6).map(lt=>c.jsx(Dn,{variant:"secondary",className:"h-5 rounded px-1.5 text-[11px]",children:lt},lt))})]},`${Ae.todoId}-${Ae.completedAt}`))}),c.jsxs(sp,{className:"flex-row items-center justify-between border-t px-4 py-3 sm:justify-between sm:space-x-0",children:[c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Page ",Ot+1," of ",Be]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>Pt(Ae=>Math.max(0,Ae-1)),disabled:Ot===0,children:[c.jsx(B1,{className:"mr-1 h-4 w-4"}),"Prev"]}),c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>Pt(Ae=>Math.min(Be-1,Ae+1)),disabled:Ot>=Be-1,children:["Next",c.jsx(ys,{className:"ml-1 h-4 w-4"})]})]})]})]})}),ee&&m.length===0?c.jsx("div",{className:"flex items-center justify-center py-24",children:c.jsx($t,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):It?v==="calendar"?c.jsxs("div",{className:"rounded-lg border",children:[c.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>R(new Date(N.getFullYear(),N.getMonth()-1,1)),children:[c.jsx(B1,{className:"mr-1 h-4 w-4"}),"Prev"]}),c.jsx("div",{className:"font-medium",children:Oue(N)}),c.jsxs(me,{variant:"outline",size:"sm",onClick:()=>R(new Date(N.getFullYear(),N.getMonth()+1,1)),children:["Next",c.jsx(ys,{className:"ml-1 h-4 w-4"})]})]}),c.jsx("div",{className:"grid grid-cols-7 border-b text-center text-xs text-muted-foreground",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(Ae=>c.jsx("div",{className:"py-2",children:Ae},Ae))}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-7",children:Pue(N).map(Ae=>{const lt=I3(Ae),Je=Vn.get(lt)??[],Jt=Ae.getMonth()!==N.getMonth();return c.jsxs("div",{className:"min-h-32 border-b p-2 sm:border-r [&:nth-child(7n)]:border-r-0",children:[c.jsx("div",{className:ke("mb-2 text-xs font-medium",Jt&&"text-muted-foreground"),children:Ae.getDate()}),c.jsx("div",{className:"space-y-1",children:Je.map(ot=>{const fe=Jg(ot.status);return c.jsxs("button",{className:ke("flex w-full items-start gap-1.5 rounded-md border px-2 py-1 text-left text-xs hover:bg-accent",fe.itemClassName),onClick:()=>void _t(ot,ot.status==="done"?"open":"done"),children:[c.jsx(n_,{status:ot.status,className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:ot.status==="done"?"line-through text-muted-foreground":"",children:ot.message})]},ot.id)})})]},lt)})})]}):rt.length===0?c.jsxs("div",{className:"rounded-lg border-2 border-dashed px-4 py-16 text-center",children:[c.jsx(Jxe,{className:"mx-auto mb-4 h-10 w-10 text-muted-foreground"}),c.jsx("h3",{className:"mb-2 text-lg font-medium",children:"No todo items match"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Change filters or add the first repo-wide item."})]}):c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-lg border bg-card/40 px-3 py-2 text-sm text-muted-foreground",children:[c.jsxs("label",{className:"inline-flex items-center gap-2",children:[c.jsx("input",{type:"checkbox",className:"h-4 w-4 rounded border-input",checked:Ie,onChange:Ae=>St(Ae.target.checked)}),c.jsx("span",{children:ge>0?`${ge} selected in view`:"Select visible"})]}),c.jsxs("span",{children:[zn.length," item",zn.length===1?"":"s"]})]}),zn.map(Ae=>{var qe;const lt=Oj(Ae.tags),Je=Jg(Ae.status),Jt=se.has(Ae.id),ot=!!(Ut&&(Oe==null?void 0:Oe.targetId)===Ae.id&&Oe.placement==="before"&&Ut!==Ae.id),fe=!!(Ut&&(Oe==null?void 0:Oe.targetId)===Ae.id&&Oe.placement==="after"&&Ut!==Ae.id);return c.jsxs("div",{className:"space-y-3",children:[ot&&c.jsx("div",{className:"relative h-0",children:c.jsx("div",{className:"absolute inset-x-2 -top-px h-0.5 rounded-full bg-primary shadow-[0_0_0_1px_hsl(var(--background))]"})}),c.jsxs("div",{"data-todo-id":Ae.id,className:ke("group rounded-lg border p-2 transition-all duration-150 ease-out sm:p-3",Je.itemClassName,Ut&&"touch-none",Ut===Ae.id&&"border-dashed border-primary/35 bg-primary/5 opacity-0"),children:[c.jsxs("div",{className:"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-2",children:[c.jsxs("div",{className:"flex flex-col items-center gap-1",children:[c.jsx("input",{"data-no-drag":"true",type:"checkbox",className:"h-4 w-4 rounded border-input",checked:F.has(Ae.id),onChange:ye=>it(Ae.id,ye.target.checked),"aria-label":"Select todo"}),c.jsx("div",{className:"shrink-0 cursor-grab touch-none rounded p-0.5 text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground active:cursor-grabbing",title:"Drag to reorder","aria-label":"Drag to reorder",onPointerDown:ye=>ar(Ae.id,ye),children:c.jsx(n4,{className:"h-4 w-4"})}),c.jsx("button",{className:"h-6 w-6 shrink-0 rounded text-muted-foreground hover:text-foreground",onClick:()=>void _t(Ae,Ae.status==="done"?"open":"done"),"aria-label":"Toggle todo status",children:c.jsx(n_,{status:Ae.status})})]}),c.jsxs("div",{className:"min-w-0 flex-1 rounded-lg border border-input bg-background/90 shadow-sm focus-within:ring-2 focus-within:ring-ring/60 focus-within:ring-offset-2 focus-within:ring-offset-background",children:[c.jsx(Mh,{className:ke("min-h-20 resize-y border-0 bg-transparent shadow-none focus-visible:ring-0 focus-visible:ring-offset-0",Ae.status==="done"&&"text-muted-foreground line-through"),defaultValue:Ae.message,onBlur:ye=>{const Ze=ye.target.value.trim();Ze&&Ze!==Ae.message&&Rt(Ae,{message:Ze})}}),c.jsx(u8,{value:lt,onChange:ye=>{const Ze=Zg(ye);JSON.stringify(Ze)!==JSON.stringify(Zg(lt))&&Rt(Ae,{tags:Ze})},placeholder:"Add tags...",commitOnBlur:!0,className:"min-h-9 rounded-none rounded-b-lg border-x-0 border-b-0 border-t bg-transparent px-2 py-1 shadow-none focus-within:ring-0 focus-within:ring-offset-0",inputClassName:"text-xs"})]}),c.jsxs("div",{className:"grid w-[4.25rem] grid-cols-2 gap-0.5 text-xs text-muted-foreground",children:[c.jsx(Eg,{label:`Status: ${Je.label}`,children:c.jsx(Ky,{value:Ae.status,onChange:ye=>void _t(Ae,ye),options:c8,triggerLabel:"Status",triggerIcon:c.jsx(n_,{status:Ae.status,className:"h-4 w-4"}),className:"h-8 w-8 justify-center rounded-md border-transparent bg-transparent px-0 text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0 [&>svg:last-child]:hidden"})}),c.jsx(Eg,{label:`Priority: ${((qe=Cb.find(ye=>ye.value===Ae.priority))==null?void 0:qe.label)??Ae.priority}`,children:c.jsx(Ky,{value:Ae.priority,onChange:ye=>void Rt(Ae,{priority:ye}),options:Cb,triggerLabel:"Priority",triggerIcon:c.jsx($V,{priority:Ae.priority}),className:"h-8 w-8 justify-center rounded-md border-transparent bg-transparent px-0 text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0 [&>svg:last-child]:hidden"})}),c.jsx(Eg,{label:Ae.dueDate?`Due ${j1(Ae.dueDate)}`:"Date",children:c.jsx(j7,{value:Ae.dueDate??null,onChange:ye=>void Rt(Ae,{dueDate:ye}),placeholder:"Date",iconOnly:!0,className:"rounded-md border-transparent bg-transparent text-muted-foreground shadow-none hover:bg-accent hover:text-foreground focus:ring-1 focus:ring-ring/50 focus:ring-offset-0"})}),c.jsx(me,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:()=>void yn(Ae),disabled:Jt||!It,title:"Run todo as thread","aria-label":"Run todo as thread",children:Jt?c.jsx($t,{className:"h-4 w-4 animate-spin"}):c.jsx(eS,{className:"h-4 w-4"})}),c.jsx(me,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:()=>void Ue(Ae.id),"aria-label":"Remove todo",children:c.jsx(ul,{className:"h-4 w-4"})})]})]}),c.jsx("div",{className:"mt-2 flex justify-end",children:Ae.sourceThreadTitle&&c.jsxs("span",{className:"text-xs text-muted-foreground",children:["Suggested by `",Ae.sourceThreadTitle,"`"]})})]}),fe&&c.jsx("div",{className:"relative h-0",children:c.jsx("div",{className:"absolute inset-x-2 -top-px h-0.5 rounded-full bg-primary shadow-[0_0_0_1px_hsl(var(--background))]"})})]},Ae.id)}),je&&Zn&&c.jsx("div",{className:"pointer-events-none fixed z-50",style:{left:`${je.x-je.offsetX}px`,top:`${je.y-je.offsetY}px`,width:`${je.width}px`,minHeight:`${je.height}px`},children:c.jsx("div",{className:"scale-[1.01] opacity-95",children:c.jsx(out,{todo:Zn})})})]}):c.jsx("div",{className:"rounded-lg border-2 border-dashed px-4 py-16 text-center text-sm text-muted-foreground",children:"Add a repository in manager mode before creating todo items."})]})}function Yy({children:e,isMobile:n}){return c.jsx("div",{className:`flex-1 overflow-y-auto ${n?"pt-12":""}`,children:e})}function gut({activeSessionId:e,activityEvents:n,apiKeys:r,appPlatform:i,chatProvider:s,chatProviderRuntimeMode:a,cliModel:o,currentView:l,isMobile:u,jaitBackend:d,sttProvider:h,token:f,updateApplying:m,updateChecking:x,updateInfo:v,username:_,onApplyUpdate:w,onCheckUpdate:S,onClearArchive:C,onClearArchivedProjects:j,onFetchArchivedProjects:T,onJaitBackendChange:E,onRestoreProject:N,onSaveApiKeys:R,onSttProviderChange:$,onVoiceInput:q,onVoiceStop:z,voiceLevels:B,voiceRecording:H,voiceTranscribing:D}){return l==="todo"?c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Todo",variant:"section",className:"min-h-full",resetKeys:[l,f],children:c.jsx(mut,{provider:s,model:o,runtimeMode:s!=="jait"?a:"full-access",onVoiceInput:q,voiceRecording:H,voiceTranscribing:D,voiceLevels:B,onVoiceStop:z})})}):l==="email"?c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Email",variant:"section",className:"min-h-full",resetKeys:[l,f],children:c.jsx(Het,{isMobile:u})})}):l==="memory"?c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Memory",variant:"section",className:"min-h-full",resetKeys:[l,f],children:c.jsx(btt,{})})}):l==="jobs"?c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Jobs",variant:"section",className:"min-h-full",resetKeys:[l],children:c.jsx(ptt,{})})}):l==="network"?c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Network",variant:"section",className:"min-h-full",resetKeys:[l,f,e],children:c.jsx(lst,{token:f,sessionId:e??"default"})})}):l!=="settings"?null:c.jsx(Yy,{isMobile:u,children:c.jsx(Ha,{name:"Settings",variant:"section",className:"min-h-full",resetKeys:[l,f],children:c.jsx(Flt,{username:_,token:f,apiKeys:r,onSaveApiKeys:R,sttProvider:h,onSttProviderChange:$,jaitBackend:d,onJaitBackendChange:E,onClearArchive:C,onClearArchivedProjects:j,onFetchArchivedProjects:T,onRestoreProject:N,activityEvents:n,updateInfo:v,updateChecking:x,onCheckUpdate:S,onApplyUpdate:w,updateApplying:m,platform:i})})})}const yut={bundled:"bg-sky-500/10 text-sky-600",user:"bg-amber-500/10 text-amber-600",project:"bg-emerald-500/10 text-emerald-600",plugin:"bg-fuchsia-500/10 text-fuchsia-600"},xut=[{pattern:/\b(debug|bug|troubleshoot|fix)\b/i,icon:YR},{pattern:/\b(review|audit|security|secure|vuln)\b/i,icon:D1e},{pattern:/\b(test|qa|spec)\b/i,icon:eve},{pattern:/\b(perf|performance|optimi[sz]e|latency|profil)\b/i,icon:X8},{pattern:/\b(arch|design|system|topology|diagram)\b/i,icon:Sc},{pattern:/\b(research|investigate|search|explore)\b/i,icon:ao},{pattern:/\b(data|analysis|analytics|report)\b/i,icon:X8},{pattern:/\b(code|generate|scaffold|tool|workflow)\b/i,icon:rM}];function vut(e){const n=`${e.id} ${e.name} ${e.description}`,r=xut.find(({pattern:i})=>i.test(n));return{icon:(r==null?void 0:r.icon)??iye,className:yut[e.source]}}function but(e){return e.open&&!e.attemptedLoad&&e.skillsLength===0&&!e.loading}const _ut=Ar();function wut({token:e,threadId:n,selectedSkillIds:r}){const[i,s]=y.useState(!1),[a,o]=y.useState([]),[l,u]=y.useState(!1),[d,h]=y.useState(null),[f,m]=y.useState(!1),[x,v]=y.useState(!1),_=y.useCallback(async()=>{u(!0),h(null);try{const E={};e&&(E.Authorization=`Bearer ${e}`);const N=await fetch(`${_ut}/api/skills`,{headers:E});if(!N.ok)throw new Error(`Failed to load skills (HTTP ${N.status})`);const R=await N.json();o(R)}catch(E){h(E instanceof Error?E.message:"Failed to load skills")}finally{u(!1),m(!0)}},[e]);y.useEffect(()=>{but({open:i,attemptedLoad:f,skillsLength:a.length,loading:l})&&_()},[f,_,l,i,a.length]);const w=y.useMemo(()=>a.filter(E=>E.enabled),[a]),S=r??w.map(E=>E.id),C=r===null,j=y.useCallback(async E=>{v(!0);try{await fn.updateThread(n,{skillIds:E})}finally{v(!1)}},[n]),T=y.useCallback(async(E,N)=>{const R=N?[...new Set([...S,E])]:S.filter($=>$!==E);await j(R)},[S,j]);return c.jsxs(nL,{open:i,onOpenChange:s,children:[c.jsx(rL,{asChild:!0,children:c.jsxs(me,{variant:"ghost",size:"sm",className:"h-6 gap-1 px-2 text-[10px] text-muted-foreground",children:[c.jsx(T1e,{className:"h-3 w-3"}),C?"Skills:auto":`Skills:${(r==null?void 0:r.length)??0}`]})}),c.jsxs(iL,{align:"end",className:"w-80 space-y-3 p-3",children:[c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium",children:"Thread skills"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:C?"Uses globally enabled skills.":"Uses only pinned skills for this thread."})]}),C?c.jsx(Dn,{variant:"secondary",className:"text-[10px]",children:"global"}):c.jsx(Dn,{variant:"outline",className:"text-[10px]",children:"custom"})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(me,{size:"sm",variant:C?"secondary":"outline",className:"h-7 text-xs",disabled:x,onClick:()=>void j(null),children:"Global"}),c.jsx(me,{size:"sm",variant:!C&&((r==null?void 0:r.length)??0)===0?"secondary":"outline",className:"h-7 text-xs",disabled:x,onClick:()=>void j([]),children:"None"})]}),l?c.jsxs("div",{className:"flex items-center gap-2 py-4 text-sm text-muted-foreground",children:[c.jsx($t,{className:"h-4 w-4 animate-spin"}),"Loading skills..."]}):d?c.jsxs("div",{className:"space-y-3 rounded-lg border border-destructive/50 bg-destructive/5 p-3",children:[c.jsxs("div",{className:"flex items-start gap-2 text-sm text-destructive",children:[c.jsx(Is,{className:"mt-0.5 h-4 w-4 shrink-0"}),c.jsx("span",{children:d})]}),c.jsx(me,{size:"sm",variant:"outline",className:"h-7 text-xs",onClick:()=>{m(!1),_()},children:"Retry"})]}):w.length===0?c.jsx("div",{className:"rounded-lg border border-dashed p-4 text-xs text-muted-foreground",children:"No enabled skills. Install/enable ClawHub skills in Settings."}):c.jsx("div",{className:"max-h-64 space-y-2 overflow-y-auto pr-1",children:w.map(E=>{const N=S.includes(E.id),R=vut(E),$=R.icon;return c.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-2.5",children:[c.jsx("div",{className:`mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-md ${R.className}`,children:c.jsx($,{className:"h-3.5 w-3.5"})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("p",{className:"truncate text-sm font-medium",children:E.name}),c.jsx("p",{className:"line-clamp-2 text-xs text-muted-foreground",children:E.description})]}),c.jsx(Nd,{checked:N,disabled:x||C,onCheckedChange:q=>{T(E.id,q)}})]},E.id)})})]})]})}function Lue(e){return e.showTerminal?"terminal":e.showProject?e.showProjectEditor?"editor":e.showProjectTree?e.treeTab:null:null}function ym(e,n){return Lue(e)===n}function Sut({activeProject:e,activeProjectId:n,automation:r,changedFilesCount:i,compactManagerToolbar:s,currentView:a,isMobile:o,mobileProjectControlState:l,previewOpen:u,showArchitecture:d,showDebugPanel:h,showManagerRepos:f,showProject:m,showSidebar:x,showTerminal:v,token:_,viewMode:w,onBackFromManagerThread:S,onMobileProjectTargetAction:C,onOpenPlan:j,onOpenStrategy:T,onToggleArchitecture:E,onToggleDebugPanel:N,onToggleEditor:R,onToggleManagerRepos:$,onTogglePreview:q,onToggleSidebar:z,onToggleTerminal:B}){return a!=="chat"||!o&&w!=="manager"?null:c.jsxs("div",{className:`border-b bg-muted/30 px-2 sm:px-5 shrink-0 ${o&&!s?"hidden":"flex"} ${s?"min-h-[35px] items-center gap-1.5 pt-14 py-2":"h-11 md:h-[35px] items-center gap-1 overflow-x-auto overflow-y-visible scrollbar-none"}`,children:[w==="developer"&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:x?"secondary":"ghost",size:"sm",className:o?"h-8 w-8 shrink-0 rounded-md p-0":"h-7 shrink-0 rounded-md px-2 text-xs",onClick:z,"aria-label":"Toggle projects sidebar",children:[x?c.jsx(n5,{className:`${o?"h-3.5 w-3.5 rotate-90":"h-3 w-3 mr-1"}`}):c.jsx(r5,{className:`${o?"h-3.5 w-3.5 rotate-90":"h-3 w-3 mr-1"}`}),!o&&"Projects"]})}),c.jsx(mr,{side:"bottom",children:"Toggle projects sidebar"})]}),w==="developer"&&!o&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:v?"secondary":"ghost",size:"sm",className:"h-7 shrink-0 rounded-md px-2 text-xs",onClick:B,children:[c.jsx(Ms,{className:"h-3 w-3 mr-1"}),"Terminal"]})}),c.jsx(mr,{side:"bottom",children:"Toggle terminal panel"})]}),w==="developer"&&o&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsx(me,{variant:ym(l,"terminal")?"secondary":"ghost",size:"sm",className:"h-9 w-9 shrink-0 rounded-md p-0","aria-label":"Terminal",onClick:()=>C("terminal"),children:c.jsx(Ms,{className:"h-4 w-4"})})}),c.jsx(mr,{side:"bottom",children:"Terminal"})]}),w==="manager"&&r.selectedThread&&!o&&c.jsxs(me,{variant:"ghost",size:"sm",className:"h-6 text-xs px-2 shrink-0",onClick:S,children:[c.jsx(Y8,{className:"h-3 w-3 mr-1"}),"Back"]}),n&&(w==="developer"||w==="manager"&&r.selectedThread)&&!(o&&w==="manager")&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:`flex items-center shrink-0 ${o?"gap-1":""}`,children:o?c.jsxs(c.Fragment,{children:[c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsx(me,{variant:ym(l,"files")?"secondary":"ghost",size:"sm",className:"h-9 w-9 rounded-md p-0","aria-label":"Files",onClick:()=>C("files"),children:c.jsx(Ah,{className:"h-4 w-4"})})}),c.jsx(mr,{side:"bottom",children:"Files"})]}),c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:ym(l,"git")?"secondary":"ghost",size:"sm",className:"relative h-9 w-9 rounded-md p-0","aria-label":"Changes",onClick:()=>C("git"),children:[c.jsx(Hf,{className:"h-4 w-4"}),i>0&&c.jsx("span",{className:"absolute -right-1 -top-1 z-10 min-w-[14px] rounded-full bg-primary px-1 text-2xs font-bold leading-[14px] text-primary-foreground",children:i>99?"99+":i})]})}),c.jsx(mr,{side:"bottom",children:"Changes"})]}),c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsx(me,{variant:ym(l,"editor")?"secondary":"ghost",size:"sm",className:"h-9 w-9 rounded-md p-0","aria-label":"Editor",onClick:()=>C("editor"),children:c.jsx(F_,{className:"h-4 w-4"})})}),c.jsx(mr,{side:"bottom",children:"Editor"})]})]}):c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:m?"secondary":"ghost",size:"sm",className:"h-7 rounded-md px-2 text-xs",onClick:R,children:[c.jsx(F_,{className:"h-3 w-3 mr-1"}),"Editor",m&&c.jsx(qr,{className:"h-3 w-3 ml-1"})]})}),c.jsx(mr,{side:"bottom",children:m?"Hide editor":"Show editor"})]})}),w==="developer"&&m&&e&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:u?"secondary":"ghost",size:"sm",className:o?"h-9 w-9 shrink-0 rounded-md p-0":"h-7 shrink-0 rounded-md px-2 text-xs","aria-label":u?"Close preview":"Open preview",onClick:q,children:[c.jsx(bi,{className:`h-3 w-3${o?"":" mr-1"}`}),!o&&"Preview",!o&&u&&c.jsx(qr,{className:"h-3 w-3 ml-1"})]})}),c.jsx(mr,{side:"bottom",children:u?"Close preview":"Open dev preview"})]})]}),w==="developer"&&m&&e&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:d?"secondary":"ghost",size:"sm",className:o?"h-9 w-9 shrink-0 rounded-md p-0":"h-7 shrink-0 rounded-md px-2 text-xs","aria-label":d?"Close architecture":"Open architecture",onClick:E,children:[c.jsx(z_,{className:`h-3 w-3${o?"":" mr-1"}`}),!o&&"Architecture",!o&&d&&c.jsx(qr,{className:"h-3 w-3 ml-1"})]})}),c.jsx(mr,{side:"bottom",children:"Software architecture diagram"})]}),w==="developer"&&m&&e&&c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsx(me,{variant:h?"secondary":"ghost",size:"sm",className:"ml-auto h-6 w-6 shrink-0 p-0",onClick:N,children:c.jsx(YR,{className:"h-3 w-3"})})}),c.jsx(mr,{side:"bottom",children:"SSE debug stream"})]}),w==="manager"&&c.jsxs(c.Fragment,{children:[r.selectedThread?null:c.jsxs(c.Fragment,{children:[c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:f?"secondary":"ghost",size:"sm",className:"h-6 text-xs px-2 shrink-0",onClick:$,children:[f?c.jsx(n5,{className:`h-3 w-3 mr-1${o?" rotate-90":""}`}):c.jsx(r5,{className:`h-3 w-3 mr-1${o?" rotate-90":""}`}),"Repositories"]})}),c.jsx(mr,{side:"bottom",children:"Toggle repositories panel"})]}),r.selectedRepo&&r.selectedRepo.source==="local"&&c.jsxs(c.Fragment,{children:[c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:"ghost",size:"sm",className:"h-6 text-xs px-2 shrink-0",onClick:()=>T(r.selectedRepo),children:[c.jsx(MY,{className:"h-3 w-3 mr-1"}),"Strategy"]})}),c.jsx(mr,{side:"bottom",children:"Open repository strategy"})]}),c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsxs(me,{variant:"ghost",size:"sm",className:"h-6 text-xs px-2 shrink-0",onClick:()=>j(r.selectedRepo),children:[c.jsx(_m,{className:"h-3 w-3 mr-1"}),"Todos"]})}),c.jsx(mr,{side:"bottom",children:"Open todo plan"})]})]})]}),!(o&&r.selectedThread)&&c.jsx("div",{className:"flex-1"}),r.selectedThread?c.jsxs("div",{className:o?"flex min-w-0 flex-1 items-center gap-1.5":"flex min-w-0 items-center gap-2 shrink-0",children:[o&&c.jsx(me,{variant:"ghost",size:"sm",className:"h-7 w-7 shrink-0 p-0",onClick:S,children:c.jsx(Y8,{className:"h-3.5 w-3.5"})}),c.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-2",children:[c.jsx(z9,{status:r.selectedThread.status}),o?c.jsxs("div",{className:"min-w-0 flex-1",children:[tj(r.selectedThread.title)?c.jsx(mO,{className:"text-xs h-3.5 w-28"}):c.jsx("span",{className:"block truncate text-2xs leading-tight text-muted-foreground sm:text-xs",children:r.selectedThread.title.replace(/^\[.*?\]\s*/,"")}),c.jsxs("div",{className:"mt-0.5 flex min-w-0 items-center gap-1.5 overflow-hidden text-2xs leading-tight text-muted-foreground",children:[r.selectedRepo&&c.jsxs("span",{className:"min-w-0 truncate",children:[r.selectedRepo.name," · ",r.selectedRepo.defaultBranch]}),c.jsx(gO,{kind:r.selectedThread.kind}),r.selectedThread.branch&&c.jsx("span",{className:"shrink min-w-0 truncate font-mono",children:r.selectedThread.branch})]})]}):c.jsxs("div",{className:"min-w-0 flex items-center gap-2",children:[tj(r.selectedThread.title)?c.jsx(mO,{className:"text-xs h-3.5 w-28"}):c.jsx("span",{className:"max-w-[200px] truncate text-2xs text-muted-foreground sm:text-xs",children:r.selectedThread.title.replace(/^\[.*?\]\s*/,"")}),c.jsx(gO,{kind:r.selectedThread.kind}),r.selectedRepo&&c.jsxs("span",{className:"max-w-[160px] truncate text-2xs text-muted-foreground",children:[r.selectedRepo.name," · ",r.selectedRepo.defaultBranch]})]})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:[c.jsx(wut,{token:_,threadId:r.selectedThread.id,selectedSkillIds:r.selectedThread.skillIds}),!o&&r.selectedThread.branch&&c.jsx(Dn,{variant:"outline",className:"text-2xs px-1 py-0 font-mono",children:r.selectedThread.branch}),B9(r.selectedThread)&&c.jsx(me,{variant:"ghost",size:"icon",className:"h-[18px] w-[18px] sm:h-5 sm:w-5",onClick:()=>void r.handleStop(r.selectedThread.id),title:r.selectedThread.kind==="delegation"?"End helper thread":"Stop thread",children:c.jsx(hx,{className:"h-2.5 w-2.5"})}),r.showGitActions&&r.selectedRepo&&c.jsx("div",{className:o?"shrink-0":"ml-2 shrink-0",children:c.jsx(I9,{threadId:r.selectedThread.id,cwd:r.selectedThread.workingDirectory??r.selectedRepo.localPath,branch:r.selectedThread.branch,baseBranch:r.selectedRepo.defaultBranch,threadTitle:r.selectedThread.title,threadStatus:r.selectedThread.status,threadKind:r.selectedThread.kind,prUrl:r.selectedThread.prUrl,prState:r.selectedThread.id in r.threadPrStates?r.threadPrStates[r.selectedThread.id]:r.selectedThread.prState,ghAvailable:r.ghAvailable,showStatusBadge:!o,changeFiles:r.selectedThread.changeFiles,changeInsertions:r.selectedThread.changeInsertions,changeDeletions:r.selectedThread.changeDeletions})})]})]}):null]})]})}const kut={proposed:{label:"Proposed",color:"text-blue-600 dark:text-blue-400",bg:"bg-blue-500/10"},approved:{label:"Ready",color:"text-green-600 dark:text-green-400",bg:"bg-green-500/10"},running:{label:"Running",color:"text-amber-600 dark:text-amber-400",bg:"bg-amber-500/10"},completed:{label:"Done",color:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-500/10"},skipped:{label:"Skipped",color:"text-muted-foreground",bg:"bg-muted/50"}};function Cut({status:e}){const n=kut[e];return c.jsx("span",{className:`inline-flex items-center rounded-full px-1.5 py-0.5 text-2xs font-medium ${n.color} ${n.bg}`,children:n.label})}function jut({open:e,onOpenChange:n,repoId:r,repoName:i,defaultBranch:s,repoLocalPath:a,provider:o,model:l,onStartThread:u}){const d=Hm(),[h,f]=y.useState([]),[m,x]=y.useState(null),[v,_]=y.useState(!1),[w,S]=y.useState(!1),[C,j]=y.useState(null),[T,E]=y.useState(""),[N,R]=y.useState(new Set),[$,q]=y.useState(null),[z,B]=y.useState(""),[H,D]=y.useState(""),O=h.find(ne=>ne.id===m)??h[0]??null;y.useEffect(()=>{if(!e||!r)return;let ne=!1;return _(!0),j(null),fn.listPlans(r).then(oe=>{ne||(f(oe),oe.length>0&&!m&&x(oe[0].id))}).catch(oe=>{ne||j(oe instanceof Error?oe.message:"Failed to load plans")}).finally(()=>{ne||_(!1)}),()=>{ne=!0}},[e,r]);const I=y.useCallback(async()=>{j(null);try{const ne=await fn.createPlan(r,{title:"New Plan"});f(oe=>[ne,...oe]),x(ne.id)}catch(ne){j(ne instanceof Error?ne.message:"Failed to create plan")}},[r]),M=y.useCallback(async()=>{if(O){S(!0),j(null);try{const ne=await fn.generatePlanTasks(O.id,{prompt:T||void 0,provider:o,model:o==="jait"?null:l??null});f(oe=>oe.map(he=>he.id===ne.plan.id?ne.plan:he)),E("")}catch(ne){j(ne instanceof Error?ne.message:"Failed to generate tasks")}finally{S(!1)}}},[O,T,l,o]),P=y.useCallback(async(ne,oe)=>{if(!O)return;const he=O.tasks.map(le=>le.id===ne?{...le,status:oe}:le);try{const le=await fn.updatePlan(O.id,{tasks:he});f(se=>se.map(we=>we.id===le.id?le:we))}catch(le){j(le instanceof Error?le.message:"Failed to update task")}},[O]),F=y.useCallback(async ne=>{if(!O)return;const oe=O.tasks.filter(he=>he.id!==ne);try{const he=await fn.updatePlan(O.id,{tasks:oe});f(le=>le.map(se=>se.id===he.id?he:se))}catch(he){j(he instanceof Error?he.message:"Failed to remove task")}},[O]),G=y.useCallback(async()=>{if(!O||!$)return;const ne=O.tasks.map(oe=>oe.id===$?{...oe,title:z,description:H}:oe);try{const oe=await fn.updatePlan(O.id,{tasks:ne});f(he=>he.map(le=>le.id===oe.id?oe:le)),q(null)}catch(oe){j(oe instanceof Error?oe.message:"Failed to save task")}},[O,$,z,H]),W=y.useCallback(async ne=>{if(O){j(null);try{await fn.startPlanTask(O.id,ne.id),u(ne,O,{name:i,localPath:a,defaultBranch:s}),f(oe=>oe.map(he=>he.id===O.id?{...he,tasks:he.tasks.map(le=>le.id===ne.id?{...le,status:"running"}:le)}:he))}catch(oe){j(oe instanceof Error?oe.message:"Failed to start task")}}},[O,i,a,s,u]),V=y.useCallback(async()=>{if(!O)return;j(null);const ne=O.tasks.filter(he=>he.status==="approved"||he.status==="proposed");if(ne.length===0){j("No tasks to start. Approve some tasks first, or generate new ones.");return}const oe=O.tasks.map(he=>he.status==="proposed"?{...he,status:"approved"}:he);try{const he=await fn.updatePlan(O.id,{tasks:oe,status:"active"});f(le=>le.map(se=>se.id===he.id?he:se))}catch{}for(const he of ne)try{u(he,O,{name:i,localPath:a,defaultBranch:s}),f(le=>le.map(se=>se.id===O.id?{...se,tasks:se.tasks.map(we=>we.id===he.id?{...we,status:"running"}:we)}:se)),await new Promise(le=>setTimeout(le,500))}catch{}},[O,i,a,s,u]),J=y.useCallback(async()=>{if(!(!O||!await d({title:"Delete plan",description:`Delete plan "${O.title}"?`,confirmLabel:"Delete",variant:"destructive"})))try{await fn.deletePlan(O.id),f(oe=>oe.filter(he=>he.id!==O.id)),x(null)}catch(oe){j(oe instanceof Error?oe.message:"Failed to delete plan")}},[O,d]),U=ne=>{R(oe=>{const he=new Set(oe);return he.has(ne)?he.delete(ne):he.add(ne),he})},Q=ne=>{q(ne.id),B(ne.title),D(ne.description),R(oe=>new Set(oe).add(ne.id))},X=(O==null?void 0:O.tasks.filter(ne=>ne.status==="approved"||ne.status==="proposed").length)??0,ee=(O==null?void 0:O.tasks.filter(ne=>ne.status==="completed").length)??0,ie=(O==null?void 0:O.tasks.length)??0;return c.jsx(Lo,{open:e,onOpenChange:n,children:c.jsxs(oo,{className:"flex max-h-[85vh] w-full max-w-2xl flex-col gap-0 overflow-hidden p-0",children:[c.jsx(dl,{className:"shrink-0 border-b px-4 py-3",children:c.jsxs(lo,{className:"flex items-center gap-2 text-sm",children:[c.jsx("span",{children:"Plans"}),c.jsx("span",{className:"text-muted-foreground",children:"—"}),c.jsx("span",{className:"font-normal text-muted-foreground",children:i}),O&&ie>0&&c.jsxs("span",{className:"ml-auto text-2xs text-muted-foreground",children:[ee,"/",ie," done"]})]})}),c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[v?c.jsx("div",{className:"flex flex-1 items-center justify-center py-12",children:c.jsx($t,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):O?c.jsxs(c.Fragment,{children:[h.length>1&&c.jsxs("div",{className:"flex items-center gap-2 border-b px-4 py-2",children:[c.jsx("select",{className:"flex-1 rounded border bg-transparent px-2 py-1 text-xs",value:O.id,onChange:ne=>x(ne.target.value),children:h.map(ne=>c.jsxs("option",{value:ne.id,children:[ne.title," (",ne.tasks.length," tasks)"]},ne.id))}),c.jsx(me,{variant:"ghost",size:"sm",className:"h-6 px-2 text-2xs",onClick:I,children:c.jsx(Ps,{className:"h-3 w-3"})})]}),c.jsxs("div",{className:"flex items-center gap-2 border-b px-4 py-2",children:[c.jsx(Er,{placeholder:"Describe what you want to accomplish…",className:"h-8 flex-1 text-xs",value:T,onChange:ne=>E(ne.target.value),onKeyDown:ne=>{ne.key==="Enter"&&!ne.shiftKey&&(ne.preventDefault(),M())}}),c.jsxs(me,{variant:"outline",size:"sm",className:"h-8 gap-1.5 text-xs",disabled:w,onClick:()=>void M(),children:[w?c.jsx($t,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(U_,{className:"h-3.5 w-3.5"}),"Generate"]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:O.tasks.length===0?c.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-8",children:c.jsx("p",{className:"text-xs text-muted-foreground",children:"No tasks yet. Use the prompt above to generate tasks, or add them manually."})}):c.jsx("div",{className:"divide-y",children:O.tasks.map(ne=>{const oe=N.has(ne.id),he=$===ne.id,le=ne.status==="proposed"||ne.status==="approved",se=ne.status==="proposed"||ne.status==="approved";return c.jsxs("div",{className:"px-4 py-2.5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("button",{type:"button",className:"shrink-0 rounded p-0.5 text-muted-foreground hover:text-foreground",onClick:()=>U(ne.id),children:oe?c.jsx(pl,{className:"h-3.5 w-3.5"}):c.jsx(ys,{className:"h-3.5 w-3.5"})}),c.jsx(Cut,{status:ne.status}),he?c.jsx(Er,{className:"h-6 flex-1 text-xs",value:z,onChange:we=>B(we.target.value),onKeyDown:we=>{we.key==="Enter"&&G(),we.key==="Escape"&&q(null)},autoFocus:!0}):c.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[c.jsx("span",{className:`min-w-0 flex-1 truncate text-xs ${ne.status==="skipped"?"line-through text-muted-foreground":"font-medium"}`,children:ne.title}),ne.skillCandidate&&c.jsx("span",{className:"inline-flex shrink-0 items-center rounded-full bg-violet-500/10 px-1.5 py-0.5 text-[10px] font-medium text-violet-600 dark:text-violet-400",children:"skill"})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[le&&c.jsx("button",{type:"button",title:"Start thread",className:"rounded p-1 text-green-600 hover:bg-green-500/10 dark:text-green-400",onClick:()=>void W(ne),children:c.jsx(eS,{className:"h-3.5 w-3.5",fill:"currentColor"})}),ne.status==="proposed"&&c.jsx("button",{type:"button",title:"Approve",className:"rounded p-1 text-green-600 hover:bg-green-500/10 dark:text-green-400",onClick:()=>void P(ne.id,"approved"),children:c.jsx(Qi,{className:"h-3.5 w-3.5"})}),se&&c.jsx("button",{type:"button",title:"Skip",className:"rounded p-1 text-muted-foreground hover:bg-muted",onClick:()=>void P(ne.id,"skipped"),children:c.jsx(Hxe,{className:"h-3.5 w-3.5"})}),!he&&(ne.status==="proposed"||ne.status==="approved")&&c.jsx("button",{type:"button",title:"Edit",className:"rounded p-1 text-muted-foreground hover:bg-muted",onClick:()=>Q(ne),children:c.jsx(H_,{className:"h-3 w-3"})}),he&&c.jsx("button",{type:"button",title:"Save",className:"rounded p-1 text-green-600 hover:bg-green-500/10",onClick:()=>void G(),children:c.jsx(Qi,{className:"h-3.5 w-3.5"})}),(ne.status==="proposed"||ne.status==="approved"||ne.status==="skipped")&&c.jsx("button",{type:"button",title:"Remove",className:"rounded p-1 text-muted-foreground hover:text-destructive",onClick:()=>void F(ne.id),children:c.jsx(ul,{className:"h-3 w-3"})})]})]}),oe&&c.jsxs("div",{className:"mt-2 pl-6",children:[he?c.jsx("textarea",{className:"w-full rounded border bg-transparent px-2 py-1.5 text-xs leading-relaxed focus:outline-none focus:ring-1 focus:ring-primary",rows:4,value:H,onChange:we=>D(we.target.value)}):c.jsx("p",{className:"whitespace-pre-wrap text-xs leading-relaxed text-muted-foreground",children:ne.description||"No description."}),ne.threadId&&c.jsxs("p",{className:"mt-1 text-2xs text-muted-foreground",children:["Thread: ",c.jsx("code",{className:"rounded bg-muted px-1",children:ne.threadId.slice(-8)})]}),(ne.skillCandidate||ne.skillRationale||ne.skillTitle)&&c.jsxs("div",{className:"mt-2 rounded-md border border-violet-500/20 bg-violet-500/5 px-2 py-1.5 text-[10px] text-muted-foreground",children:[c.jsxs("p",{children:["Skill eval: ",ne.skillCandidate?"yes":"no",ne.skillTitle?` · ${ne.skillTitle}`:""]}),ne.skillRationale&&c.jsx("p",{className:"mt-1 whitespace-pre-wrap",children:ne.skillRationale})]})]})]},ne.id)})})})]}):c.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 py-12",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"No plans yet for this repository."}),c.jsxs(me,{size:"sm",className:"gap-1.5 text-xs",onClick:I,children:[c.jsx(Ps,{className:"h-3.5 w-3.5"}),"Create plan"]})]}),C&&c.jsx("div",{className:"border-t bg-destructive/5 px-4 py-2 text-xs text-destructive",children:C})]}),c.jsx(sp,{className:"shrink-0 border-t px-4 py-3",children:c.jsxs("div",{className:"flex w-full items-center justify-between",children:[c.jsxs("div",{className:"flex gap-2",children:[!O&&c.jsxs(me,{size:"sm",className:"gap-1.5 text-xs",onClick:I,children:[c.jsx(Ps,{className:"h-3.5 w-3.5"}),"New plan"]}),O&&c.jsxs(me,{variant:"ghost",size:"sm",className:"gap-1.5 text-xs text-destructive hover:text-destructive",onClick:()=>void J(),children:[c.jsx(ul,{className:"h-3.5 w-3.5"}),"Delete plan"]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(me,{variant:"ghost",size:"sm",className:"text-xs",onClick:()=>n(!1),children:"Close"}),O&&X>0&&c.jsxs(me,{size:"sm",className:"gap-1.5 text-xs",onClick:()=>void V(),children:[c.jsx(Sye,{className:"h-3.5 w-3.5"}),"Start all (",X,")"]})]})]})})]})})}function Nut({open:e,onOpenChange:n,repoId:r,repoName:i}){const s=Hm(),[a,o]=y.useState(""),[l,u]=y.useState(""),[d,h]=y.useState(!1),[f,m]=y.useState(!1),[x,v]=y.useState(!1),[_,w]=y.useState(null),S=a!==l,C=_S();y.useEffect(()=>{if(!e||!r)return;let R=!1;return h(!0),w(null),fn.getRepoStrategy(r).then($=>{R||(o($),u($))}).catch($=>{R||w($ instanceof Error?$.message:"Failed to load strategy")}).finally(()=>{R||h(!1)}),()=>{R=!0}},[e,r]);const j=y.useCallback(async()=>{m(!0),w(null);try{const R=await fn.updateRepoStrategy(r,a);u(R),o(R)}catch(R){w(R instanceof Error?R.message:"Failed to save strategy")}finally{m(!1)}},[r,a]),T=y.useCallback(async()=>{v(!0),w(null);try{const R=await fn.generateRepoStrategy(r);R&&o(R)}catch(R){w(R instanceof Error?R.message:"Failed to generate strategy")}finally{v(!1)}},[r]),E=y.useCallback(()=>{o(l)},[l]),N=y.useCallback(R=>{if(R||!S){n(R);return}(async()=>await s({title:"Discard changes",description:"You have unsaved changes. Discard them?",confirmLabel:"Discard",variant:"destructive"})&&n(!1))()},[s,S,n]);return c.jsx(Lo,{open:e,onOpenChange:N,children:c.jsxs(oo,{className:"flex max-h-[85vh] w-full max-w-3xl flex-col gap-0 overflow-hidden p-0",children:[c.jsx(dl,{className:"shrink-0 border-b px-4 py-3",children:c.jsxs(lo,{className:"flex items-center gap-2 text-sm",children:[c.jsx("span",{children:"Strategy"}),c.jsx("span",{className:"text-muted-foreground",children:"—"}),c.jsx("span",{className:"font-normal text-muted-foreground",children:i}),S&&c.jsx("span",{className:"ml-1 rounded bg-amber-500/10 px-1.5 py-0.5 text-2xs text-amber-600 dark:text-amber-400",children:"unsaved"})]})}),c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[d?c.jsx("div",{className:"flex flex-1 items-center justify-center py-12",children:c.jsx($t,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):c.jsxs("div",{className:"relative min-h-0 flex-1",children:[c.jsx(lS,{height:"55vh",language:"markdown",beforeMount:R=>Kl(R,C),theme:C,value:a,onChange:R=>o(R??""),options:{minimap:{enabled:!1},"semanticHighlighting.enabled":!0,lineNumbers:"off",wordWrap:"on",fontSize:13,padding:{top:12,bottom:12},scrollBeyondLastLine:!1,renderLineHighlight:"none",overviewRulerLanes:0,folding:!0,tabSize:2}}),!a.trim()&&c.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center px-8 text-center",children:c.jsxs("div",{className:"max-w-md space-y-2",children:[c.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Add repository guidance for your agents"}),c.jsxs("p",{className:"text-xs leading-5 text-muted-foreground/80",children:["This works like a ",c.jsx("code",{children:"CLAUDE.md"})," or ",c.jsx("code",{children:"AGENTS.md"})," file: describe build commands, test workflow, code conventions, and repo-specific rules."]})]})})]}),_&&c.jsx("div",{className:"border-t bg-destructive/5 px-4 py-2 text-xs text-destructive",children:_})]}),c.jsx(sp,{className:"shrink-0 border-t px-4 py-3",children:c.jsxs("div",{className:"flex w-full items-center justify-between",children:[c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(me,{variant:"outline",size:"sm",className:"gap-1.5 text-xs",disabled:x||d,onClick:T,children:[x?c.jsx($t,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(U_,{className:"h-3.5 w-3.5"}),"Generate template"]}),S&&c.jsxs(me,{variant:"ghost",size:"sm",className:"gap-1.5 text-xs",onClick:E,children:[c.jsx(RY,{className:"h-3.5 w-3.5"}),"Reset"]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(me,{variant:"ghost",size:"sm",className:"text-xs",onClick:()=>n(!1),children:"Cancel"}),c.jsxs(me,{size:"sm",className:"gap-1.5 text-xs",disabled:!S||f||d,onClick:j,children:[f?c.jsx($t,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(i5,{className:"h-3.5 w-3.5"}),"Save"]})]})]})})]})})}function Tut({strategyRepo:e,onStrategyRepoChange:n,planRepo:r,onPlanRepoChange:i,provider:s,runtimeMode:a,model:o}){const l=(u,d)=>{(async()=>{const h=r,f=`jait/${Math.random().toString(16).slice(2,10)}`,m=h.defaultBranch;let x;try{x=(await Cs.createWorktree(h.localPath,m,f)).path}catch{try{await Cs.createBranch(h.localPath,f,m)}catch{}}const v=await fn.createThread({title:`[${h.name}] ${u.title}`,providerId:s,runtimeMode:s!=="jait"?a:void 0,kind:"delivery",workingDirectory:x??h.localPath,branch:f,prBaseBranch:m});await fn.startThread(v.id,{message:u.description||u.title,titleTask:u.title,titlePrefix:`[${h.name}] `});const _=d.tasks.map(w=>w.id===u.id?{...w,status:"running",threadId:v.id}:w);await fn.updatePlan(d.id,{tasks:_})})()};return c.jsxs(c.Fragment,{children:[e&&c.jsx(Nut,{open:!!e,onOpenChange:u=>{u||n(null)},repoId:e.id,repoName:e.name}),r&&c.jsx(jut,{open:!!r,onOpenChange:u=>{u||i(null)},repoId:r.id,repoName:r.name,defaultBranch:r.defaultBranch,repoLocalPath:r.localPath,provider:s,model:o,onStartThread:l})]})}function Eut(e){const n=new Date(e),i=new Date().getTime()-n.getTime();return i<6e4?"just now":i<36e5?`${Math.floor(i/6e4)}m ago`:i<864e5?`${Math.floor(i/36e5)}h ago`:n.toLocaleDateString()}function Aut({sessions:e,activeSessionId:n,projectTitle:r,onSelectSession:i,onNewSession:s,onOpenChange:a,showTitle:o=!0,triggerLabel:l=null}){const[u,d]=y.useState(!1),h=e.find(m=>m.id===n)??e[0]??null,f=m=>{d(m),a==null||a(m)};return c.jsxs("div",{className:o?"flex min-w-0 flex-1 items-center justify-between gap-1.5":"flex items-center gap-1.5",children:[o?c.jsx("span",{className:"min-w-0 truncate text-sm font-semibold leading-tight",children:h!=null&&h.name&&h.name!=="New Chat"?h.name:""}):null,c.jsxs(Vl,{open:u,onOpenChange:f,children:[c.jsxs(_r,{children:[c.jsx(pr,{asChild:!0,children:c.jsx(ql,{asChild:!0,children:c.jsxs(me,{variant:"ghost",size:l?"sm":"icon",className:l?"h-7 shrink-0 rounded-md px-2 text-xs text-muted-foreground hover:text-foreground":"h-6 w-6 shrink-0 rounded-md text-muted-foreground hover:text-foreground",children:[c.jsx(t5,{className:"h-3.5 w-3.5"}),l?c.jsx("span",{children:l}):null]})})}),c.jsx(mr,{side:"bottom",children:l??"Sessions"})]}),c.jsxs(sl,{align:"start",className:"w-[min(28rem,calc(100vw-1rem))] p-0",children:[c.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-medium",children:"Sessions"}),c.jsx("div",{className:"text-xs text-muted-foreground",children:r||"Current project"})]}),c.jsxs(me,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>{s(),d(!1)},children:[c.jsx(q1e,{className:"mr-1 h-3 w-3"}),"New chat"]})]}),c.jsx("div",{className:"max-h-[min(28rem,70vh)] overflow-y-auto p-2",children:e.length===0?c.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"No sessions yet."}):c.jsx("div",{className:"space-y-0.5",children:e.map(m=>{const x=m.id===n;return c.jsxs("button",{type:"button",className:`flex w-full items-start gap-2 rounded-md px-3 py-2 text-left transition-colors ${x?"bg-secondary text-secondary-foreground":"hover:bg-muted/50"}`,onClick:()=>{i(m.id),d(!1)},children:[x?c.jsx(Qi,{className:"mt-0.5 h-3 w-3 shrink-0 text-primary"}):c.jsx("span",{className:"mt-1 h-2 w-2 shrink-0 rounded-full bg-muted-foreground/50"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"truncate text-xs font-medium",children:m.name||"Untitled"}),m.status==="archived"&&c.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border px-1.5 py-0 text-2xs text-muted-foreground",children:[c.jsx(KR,{className:"h-2.5 w-2.5"}),"Archived"]})]}),c.jsx("div",{className:"text-2xs text-muted-foreground",children:Eut(m.lastActiveAt)})]})]},m.id)})})})]})]})]})}function Out({activeProjectId:e,activeProjectSessions:n,activeProjectTitle:r,activeSessionId:i,approveAllInSession:s,compact:a,disableSendTargetSelector:o,remainingPrompts:l,repositories:u,selectedThreadRepo:d,sendTarget:h,threadRepoPickerDisabled:f,getRuntimeInfo:m,onAddRepository:x,onClearApproveAll:v,onCreateSession:_,onSendTargetChange:w,onSessionSwitcherOpenChange:S,onStartNewChat:C,onSelectRepo:j,onSelectSession:T}){const E=h==="thread"?c.jsx(_ie,{repositories:u,selectedRepo:d,disabled:f,compact:a,className:a?"w-full":"",getRuntimeInfo:m,onSelect:j,onAddRepository:x}):null;return c.jsx("div",{className:`${a?"overflow-hidden px-0.5":"overflow-x-auto px-1"}`,children:c.jsxs("div",{className:`${a?"flex w-full min-w-0 items-center gap-2":"grid min-w-max grid-cols-[1fr_auto_1fr] gap-3 whitespace-nowrap"} items-center`,children:[c.jsxs("div",{className:`${a?"flex min-w-0 flex-1 items-center gap-1 overflow-hidden":"flex min-w-0 flex-1 items-center gap-2"}`,children:[h==="thread"?E:c.jsx(Aut,{sessions:n,activeSessionId:i,projectTitle:r??"Personal chat",onSelectSession:N=>T(e,N),onNewSession:_,onOpenChange:S,showTitle:!1,triggerLabel:"History"}),s&&c.jsx("button",{type:"button",onClick:v,className:"inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-green-500/10 text-green-600 transition-colors hover:bg-green-500/20 dark:text-green-400",title:"Auto-approved. Clear approve all","aria-label":"Auto-approved. Clear approve all",children:c.jsx(js,{className:"h-3.5 w-3.5"})})]}),!a&&c.jsx("div",{className:"justify-self-center",children:c.jsx(_7,{target:h,onChange:w,disabled:o})}),c.jsxs("div",{className:`${a?"ml-auto flex shrink-0 items-center gap-2":"flex shrink-0 items-center justify-self-end gap-2"}`,children:[h!=="thread"&&c.jsx("button",{type:"button",onClick:C,className:"shrink-0 text-xs text-muted-foreground transition-colors hover:text-foreground",children:"New chat"}),a&&c.jsx("div",{className:"shrink-0",children:c.jsx(_7,{target:h,onChange:w,disabled:o,compact:!0})}),l!==null&&c.jsxs("span",{className:`${a?"hidden":"shrink-0"} text-xs text-muted-foreground`,children:[l," remaining"]})]})]})})}function Rut({className:e,...n}){return c.jsx("div",{className:ke("relative flex-1 overflow-hidden bg-transparent shadow-none",e),...n})}function Mut({className:e,...n}){return c.jsx(me,{variant:"outline",size:"icon",className:ke("absolute bottom-4 left-1/2 h-9 w-9 -translate-x-1/2 rounded-full border-border/80 bg-background shadow-lg",e),...n,children:c.jsx(bY,{className:"h-4 w-4"})})}const Put=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ON","CS","ON","CS","ON","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ON","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","ON","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],Lut=["AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","AL","AL","AL","AL","AL","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL"];function $ut(e){return e<=255?Put[e]:1424<=e&&e<=1524?"R":1536<=e&&e<=1791?Lut[e&255]:1792<=e&&e<=2220?"AL":"L"}function Dut(e){const n=e.length;if(n===0)return null;const r=new Array(n);let i=0;for(let d=0;d<n;d++){const h=$ut(e.charCodeAt(d));(h==="R"||h==="AL"||h==="AN")&&i++,r[d]=h}if(i===0)return null;const s=n/i<.3?0:1,a=new Int8Array(n);for(let d=0;d<n;d++)a[d]=s;const o=s&1?"R":"L",l=o;let u=l;for(let d=0;d<n;d++)r[d]==="NSM"?r[d]=u:u=r[d];u=l;for(let d=0;d<n;d++){const h=r[d];h==="EN"?r[d]=u==="AL"?"AN":"EN":(h==="R"||h==="L"||h==="AL")&&(u=h)}for(let d=0;d<n;d++)r[d]==="AL"&&(r[d]="R");for(let d=1;d<n-1;d++)r[d]==="ES"&&r[d-1]==="EN"&&r[d+1]==="EN"&&(r[d]="EN"),r[d]==="CS"&&(r[d-1]==="EN"||r[d-1]==="AN")&&r[d+1]===r[d-1]&&(r[d]=r[d-1]);for(let d=0;d<n;d++){if(r[d]!=="EN")continue;let h;for(h=d-1;h>=0&&r[h]==="ET";h--)r[h]="EN";for(h=d+1;h<n&&r[h]==="ET";h++)r[h]="EN"}for(let d=0;d<n;d++){const h=r[d];(h==="WS"||h==="ES"||h==="ET"||h==="CS")&&(r[d]="ON")}u=l;for(let d=0;d<n;d++){const h=r[d];h==="EN"?r[d]=u==="L"?"L":"EN":(h==="R"||h==="L")&&(u=h)}for(let d=0;d<n;d++){if(r[d]!=="ON")continue;let h=d+1;for(;h<n&&r[h]==="ON";)h++;const f=d>0?r[d-1]:l,m=h<n?r[h]:l,x=f!=="L"?"R":"L";if(x===(m!=="L"?"R":"L"))for(let _=d;_<h;_++)r[_]=x;d=h-1}for(let d=0;d<n;d++)r[d]==="ON"&&(r[d]=o);for(let d=0;d<n;d++){const h=r[d];(a[d]&1)===0?h==="R"?a[d]++:(h==="AN"||h==="EN")&&(a[d]+=2):(h==="L"||h==="AN"||h==="EN")&&a[d]++}return a}function Iut(e,n){const r=Dut(e);if(r===null)return null;const i=new Int8Array(n.length);for(let s=0;s<n.length;s++)i[s]=r[n[s]];return i}const But=/[ \t\n\r\f]+/g,zut=/[\t\n\r\f]| {2,}|^ | $/;function Fut(e){const n=e??"normal";return n==="pre-wrap"?{mode:n,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:n,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Hut(e){if(!zut.test(e))return e;let n=e.replace(But," ");return n.charCodeAt(0)===32&&(n=n.slice(1)),n.length>0&&n.charCodeAt(n.length-1)===32&&(n=n.slice(0,-1)),n}function Wut(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
1399
1399
  `).replace(/[\r\f]/g,`
1400
1400
  `):e.replace(/\r\n/g,`
1401
1401
  `)}let d8=null,Uut;function Vut(){return d8===null&&(d8=new Intl.Segmenter(Uut,{granularity:"word"})),d8}const qut=new RegExp("\\p{Script=Arabic}","u"),hN=new RegExp("\\p{M}","u"),$ue=new RegExp("\\p{Nd}","u");function N7(e){return qut.test(e)}function i0(e){for(const n of e){const r=n.codePointAt(0);if(r>=19968&&r<=40959||r>=13312&&r<=19903||r>=131072&&r<=173791||r>=173824&&r<=177983||r>=177984&&r<=178207||r>=178208&&r<=183983||r>=183984&&r<=191471||r>=196608&&r<=201551||r>=63744&&r<=64255||r>=194560&&r<=195103||r>=12288&&r<=12351||r>=12352&&r<=12447||r>=12448&&r<=12543||r>=44032&&r<=55215||r>=65280&&r<=65519)return!0}return!1}const Due=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),fN=new Set(['"',"(","[","{","“","‘","«","‹","(","〔","〈","《","「","『","【","〖","〘","〚"]),aL=new Set(["'","’"]),zS=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),Gut=new Set([":",".","،","؛"]),Kut=new Set(["၏"]),Yut=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function Xut(e){if(oL(e))return!0;let n=!1;for(const r of e){if(zS.has(r)){n=!0;continue}if(!(n&&hN.test(r)))return!1}return n}function Jut(e){for(const n of e)if(!Due.has(n)&&!zS.has(n))return!1;return e.length>0}function Zut(e){if(oL(e))return!0;for(const n of e)if(!fN.has(n)&&!aL.has(n)&&!hN.test(n))return!1;return e.length>0}function oL(e){let n=!1;for(const r of e)if(!(r==="\\"||hN.test(r))){if(fN.has(r)||zS.has(r)||aL.has(r)){n=!0;continue}return!1}return n}function Qut(e){const n=Array.from(e);let r=n.length;for(;r>0;){const i=n[r-1];if(hN.test(i)){r--;continue}if(fN.has(i)||aL.has(i)){r--;continue}break}return r<=0||r===n.length?null:{head:n.slice(0,r).join(""),tail:n.slice(r).join("")}}function edt(e,n){if(e.length===0)return!1;for(const r of e)if(r!==n)return!1;return!0}function tdt(e){return!N7(e)||e.length===0?!1:Gut.has(e[e.length-1])}function ndt(e){return e.length===0?!1:Kut.has(e[e.length-1])}function rdt(e){if(e.length<2||e[0]!==" ")return null;const n=e.slice(1);return new RegExp("^\\p{M}+$","u").test(n)?{space:" ",marks:n}:null}function Iue(e){for(let n=e.length-1;n>=0;n--){const r=e[n];if(Yut.has(r))return!0;if(!zS.has(r))return!1}return!1}function idt(e,n){if(n.preserveOrdinarySpaces||n.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(n.preserveHardBreaks&&e===`