@jait/gateway 0.1.529 → 0.1.530

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 (57) hide show
  1. package/dist/tools/agent-loop.js +1 -1
  2. package/package.json +1 -1
  3. package/web-dist/assets/{_basePickBy-DmZcWCG-.js → _basePickBy-nxLv7Y1-.js} +1 -1
  4. package/web-dist/assets/{_baseUniq-CwRdJULm.js → _baseUniq-YkrK86CP.js} +1 -1
  5. package/web-dist/assets/{arc-CkI9iGuh.js → arc-C1fL2VtQ.js} +1 -1
  6. package/web-dist/assets/{architectureDiagram-2XIMDMQ5-BC1ssl2b.js → architectureDiagram-2XIMDMQ5-BPkslm9k.js} +1 -1
  7. package/web-dist/assets/{blockDiagram-WCTKOSBZ-3gRsHnzH.js → blockDiagram-WCTKOSBZ-DkCI-My5.js} +1 -1
  8. package/web-dist/assets/{c4Diagram-IC4MRINW-BfcXGNTs.js → c4Diagram-IC4MRINW-CFGdbvgT.js} +1 -1
  9. package/web-dist/assets/channel-dB9PbWQj.js +1 -0
  10. package/web-dist/assets/{chunk-4BX2VUAB-DJpHkeL4.js → chunk-4BX2VUAB-C_4ab2rz.js} +1 -1
  11. package/web-dist/assets/{chunk-55IACEB6-BNupIEMy.js → chunk-55IACEB6-CrRv4yBu.js} +1 -1
  12. package/web-dist/assets/{chunk-FMBD7UC4-C9ngtn2O.js → chunk-FMBD7UC4-CPmf2aPr.js} +1 -1
  13. package/web-dist/assets/{chunk-JSJVCQXG-D1PRvwG7.js → chunk-JSJVCQXG-C-g6tUAQ.js} +1 -1
  14. package/web-dist/assets/{chunk-KX2RTZJC-yiEaQCf9.js → chunk-KX2RTZJC-BxOV7HeN.js} +1 -1
  15. package/web-dist/assets/{chunk-NQ4KR5QH-13PXNlKH.js → chunk-NQ4KR5QH-C05JInC0.js} +1 -1
  16. package/web-dist/assets/{chunk-QZHKN3VN-B1SbuNgF.js → chunk-QZHKN3VN-Ch6UNlh9.js} +1 -1
  17. package/web-dist/assets/{chunk-WL4C6EOR-D4PWfANs.js → chunk-WL4C6EOR-C33DD2SK.js} +1 -1
  18. package/web-dist/assets/classDiagram-VBA2DB6C-CvACUS4Q.js +1 -0
  19. package/web-dist/assets/classDiagram-v2-RAHNMMFH-CvACUS4Q.js +1 -0
  20. package/web-dist/assets/clone-DoUt4JP8.js +1 -0
  21. package/web-dist/assets/{cose-bilkent-S5V4N54A-BgQYmR_e.js → cose-bilkent-S5V4N54A-CyGAM_Pf.js} +1 -1
  22. package/web-dist/assets/{dagre-KLK3FWXG-DQq4OTGc.js → dagre-KLK3FWXG-CEkjG8lb.js} +1 -1
  23. package/web-dist/assets/{diagram-E7M64L7V-Dg0QCbuR.js → diagram-E7M64L7V-oIIW942s.js} +1 -1
  24. package/web-dist/assets/{diagram-IFDJBPK2-CNv1xgxA.js → diagram-IFDJBPK2-DW583EFK.js} +1 -1
  25. package/web-dist/assets/{diagram-P4PSJMXO-D-Dca0sk.js → diagram-P4PSJMXO-DmYzBRsy.js} +1 -1
  26. package/web-dist/assets/{erDiagram-INFDFZHY-Dod2pK87.js → erDiagram-INFDFZHY-CvolWxxD.js} +1 -1
  27. package/web-dist/assets/{flowDiagram-PKNHOUZH-C-YMgFQ4.js → flowDiagram-PKNHOUZH-BA1HMvba.js} +1 -1
  28. package/web-dist/assets/{ganttDiagram-A5KZAMGK-C7AlDm2_.js → ganttDiagram-A5KZAMGK-BLiNJnFF.js} +1 -1
  29. package/web-dist/assets/{gitGraphDiagram-K3NZZRJ6-BOR4arme.js → gitGraphDiagram-K3NZZRJ6-Bol4yzh5.js} +1 -1
  30. package/web-dist/assets/{graph-CSh0XZ0Y.js → graph-AHEg6fFc.js} +1 -1
  31. package/web-dist/assets/{index-BdRNueib.js → index-3TJSoJSJ.js} +5 -5
  32. package/web-dist/assets/{index-CoNBsQ9X.js → index-CXxpuBVO.js} +1 -1
  33. package/web-dist/assets/{index-VYQxyqJS.js → index-Deo_Bmwn.js} +1 -1
  34. package/web-dist/assets/{infoDiagram-LFFYTUFH-BTBnA-wy.js → infoDiagram-LFFYTUFH-Dl8fc90-.js} +1 -1
  35. package/web-dist/assets/{ishikawaDiagram-PHBUUO56-TCNUV9q2.js → ishikawaDiagram-PHBUUO56-DjVDY7AZ.js} +1 -1
  36. package/web-dist/assets/{journeyDiagram-4ABVD52K-XPyxDGAA.js → journeyDiagram-4ABVD52K-DCtD7zwY.js} +1 -1
  37. package/web-dist/assets/{kanban-definition-K7BYSVSG-ZJKM-OoN.js → kanban-definition-K7BYSVSG-BSu9N0xb.js} +1 -1
  38. package/web-dist/assets/{layout-5z9N8PQN.js → layout-CqhlZ4hZ.js} +1 -1
  39. package/web-dist/assets/{linear-D1-6MqIt.js → linear-DweH1YO7.js} +1 -1
  40. package/web-dist/assets/{mindmap-definition-YRQLILUH-ByijwJGj.js → mindmap-definition-YRQLILUH-DLF5gFvK.js} +1 -1
  41. package/web-dist/assets/{pieDiagram-SKSYHLDU-CXS5bwEQ.js → pieDiagram-SKSYHLDU-DuBykepR.js} +1 -1
  42. package/web-dist/assets/{quadrantDiagram-337W2JSQ-BNiTM28o.js → quadrantDiagram-337W2JSQ-BoPx8dEs.js} +1 -1
  43. package/web-dist/assets/{requirementDiagram-Z7DCOOCP-muKDKUAK.js → requirementDiagram-Z7DCOOCP-CnQ7rrDh.js} +1 -1
  44. package/web-dist/assets/{sankeyDiagram-WA2Y5GQK-DgrtvNUm.js → sankeyDiagram-WA2Y5GQK-ieCNEli4.js} +1 -1
  45. package/web-dist/assets/{sequenceDiagram-2WXFIKYE-Bfl_RYF8.js → sequenceDiagram-2WXFIKYE-CcHl7g9G.js} +1 -1
  46. package/web-dist/assets/{stateDiagram-RAJIS63D-Cp7FYiSc.js → stateDiagram-RAJIS63D-C3pOsg8s.js} +1 -1
  47. package/web-dist/assets/stateDiagram-v2-FVOUBMTO-RbTXEryp.js +1 -0
  48. package/web-dist/assets/{timeline-definition-YZTLITO2-BHiQfvN6.js → timeline-definition-YZTLITO2--AWfjR0J.js} +1 -1
  49. package/web-dist/assets/{treemap-KZPCXAKY-luRVSDRQ.js → treemap-KZPCXAKY-DX6zRdhz.js} +1 -1
  50. package/web-dist/assets/{vennDiagram-LZ73GAT5-CPASq26G.js → vennDiagram-LZ73GAT5-BLCYcmJZ.js} +1 -1
  51. package/web-dist/assets/{xychartDiagram-JWTSCODW-DUreFySj.js → xychartDiagram-JWTSCODW-FpaqRFdW.js} +1 -1
  52. package/web-dist/index.html +1 -1
  53. package/web-dist/assets/channel-DoXVuwHd.js +0 -1
  54. package/web-dist/assets/classDiagram-VBA2DB6C-DhbnKCEN.js +0 -1
  55. package/web-dist/assets/classDiagram-v2-RAHNMMFH-DhbnKCEN.js +0 -1
  56. package/web-dist/assets/clone-CJ1i-Vxw.js +0 -1
  57. package/web-dist/assets/stateDiagram-v2-FVOUBMTO-S06SqBtH.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-KLK3FWXG-DQq4OTGc.js","./graph-CSh0XZ0Y.js","./_baseUniq-CwRdJULm.js","./layout-5z9N8PQN.js","./_basePickBy-DmZcWCG-.js","./clone-CJ1i-Vxw.js","./cose-bilkent-S5V4N54A-BgQYmR_e.js","./cytoscape.esm-BQaXIfA_.js","./c4Diagram-IC4MRINW-BfcXGNTs.js","./chunk-JSJVCQXG-D1PRvwG7.js","./flowDiagram-PKNHOUZH-C-YMgFQ4.js","./chunk-FMBD7UC4-C9ngtn2O.js","./chunk-55IACEB6-BNupIEMy.js","./chunk-KX2RTZJC-yiEaQCf9.js","./channel-DoXVuwHd.js","./erDiagram-INFDFZHY-Dod2pK87.js","./gitGraphDiagram-K3NZZRJ6-BOR4arme.js","./chunk-4BX2VUAB-DJpHkeL4.js","./chunk-QZHKN3VN-B1SbuNgF.js","./treemap-KZPCXAKY-luRVSDRQ.js","./ganttDiagram-A5KZAMGK-C7AlDm2_.js","./linear-D1-6MqIt.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-LFFYTUFH-BTBnA-wy.js","./pieDiagram-SKSYHLDU-CXS5bwEQ.js","./arc-CkI9iGuh.js","./quadrantDiagram-337W2JSQ-BNiTM28o.js","./xychartDiagram-JWTSCODW-DUreFySj.js","./requirementDiagram-Z7DCOOCP-muKDKUAK.js","./sequenceDiagram-2WXFIKYE-Bfl_RYF8.js","./classDiagram-VBA2DB6C-DhbnKCEN.js","./chunk-WL4C6EOR-D4PWfANs.js","./classDiagram-v2-RAHNMMFH-DhbnKCEN.js","./stateDiagram-RAJIS63D-Cp7FYiSc.js","./chunk-NQ4KR5QH-13PXNlKH.js","./stateDiagram-v2-FVOUBMTO-S06SqBtH.js","./journeyDiagram-4ABVD52K-XPyxDGAA.js","./timeline-definition-YZTLITO2-BHiQfvN6.js","./mindmap-definition-YRQLILUH-ByijwJGj.js","./kanban-definition-K7BYSVSG-ZJKM-OoN.js","./diagram-P4PSJMXO-D-Dca0sk.js","./diagram-IFDJBPK2-CNv1xgxA.js","./blockDiagram-WCTKOSBZ-3gRsHnzH.js","./architectureDiagram-2XIMDMQ5-BC1ssl2b.js","./diagram-E7M64L7V-Dg0QCbuR.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-CEkjG8lb.js","./graph-AHEg6fFc.js","./_baseUniq-YkrK86CP.js","./layout-CqhlZ4hZ.js","./_basePickBy-nxLv7Y1-.js","./clone-DoUt4JP8.js","./cose-bilkent-S5V4N54A-CyGAM_Pf.js","./cytoscape.esm-BQaXIfA_.js","./c4Diagram-IC4MRINW-CFGdbvgT.js","./chunk-JSJVCQXG-C-g6tUAQ.js","./flowDiagram-PKNHOUZH-BA1HMvba.js","./chunk-FMBD7UC4-CPmf2aPr.js","./chunk-55IACEB6-CrRv4yBu.js","./chunk-KX2RTZJC-BxOV7HeN.js","./channel-dB9PbWQj.js","./erDiagram-INFDFZHY-CvolWxxD.js","./gitGraphDiagram-K3NZZRJ6-Bol4yzh5.js","./chunk-4BX2VUAB-C_4ab2rz.js","./chunk-QZHKN3VN-Ch6UNlh9.js","./treemap-KZPCXAKY-DX6zRdhz.js","./ganttDiagram-A5KZAMGK-BLiNJnFF.js","./linear-DweH1YO7.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-LFFYTUFH-Dl8fc90-.js","./pieDiagram-SKSYHLDU-DuBykepR.js","./arc-C1fL2VtQ.js","./quadrantDiagram-337W2JSQ-BoPx8dEs.js","./xychartDiagram-JWTSCODW-FpaqRFdW.js","./requirementDiagram-Z7DCOOCP-CnQ7rrDh.js","./sequenceDiagram-2WXFIKYE-CcHl7g9G.js","./classDiagram-VBA2DB6C-CvACUS4Q.js","./chunk-WL4C6EOR-C33DD2SK.js","./classDiagram-v2-RAHNMMFH-CvACUS4Q.js","./stateDiagram-RAJIS63D-C3pOsg8s.js","./chunk-NQ4KR5QH-C05JInC0.js","./stateDiagram-v2-FVOUBMTO-RbTXEryp.js","./journeyDiagram-4ABVD52K-DCtD7zwY.js","./timeline-definition-YZTLITO2--AWfjR0J.js","./mindmap-definition-YRQLILUH-DLF5gFvK.js","./kanban-definition-K7BYSVSG-BSu9N0xb.js","./diagram-P4PSJMXO-DmYzBRsy.js","./diagram-IFDJBPK2-DW583EFK.js","./blockDiagram-WCTKOSBZ-DkCI-My5.js","./architectureDiagram-2XIMDMQ5-BPkslm9k.js","./diagram-E7M64L7V-oIIW942s.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 cpe=Object.defineProperty;var upe=(e,n,r)=>n in e?cpe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var Qe=(e,n,r)=>upe(e,typeof n!="symbol"?n+"":n,r);function dpe(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 I0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function e_t(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 E6={exports:{}},$v={};/**
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),At.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 At.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"),hz=Y((e,n)=>{At.warn("abc88 cutPathAtIntersect",e,n);let r=[],i=e[0],s=!1;return e.forEach(a=>{if(At.info("abc88 checking point",a,n),!gOe(n,a)&&!s){const o=yOe(n,i,a);At.debug("abc88 inside",a,i,o),At.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)?At.warn("abc88 no intersect",o,r):r.push(o),s=!0}else At.warn("abc88 outside",a,i),i=a,s||r.push(a)}),At.debug("returning points",r),r},"cutPathAtIntersect");function are(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(are,"extractCornerPoints");var fz=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"),xOe=Y(function(e){const{cornerPointPositions:n}=are(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=fz(s,o,5),u=fz(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){At.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 At.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"),vOe=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"),bOe=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 L in n.cssCompiledStyles)ate(L)||x.push(n.cssCompiledStyles[L]);At.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])),At.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&&(At.info("to cluster abc88",r.get(n.toCluster)),d=hz(n.points,r.get(n.toCluster).node),h=!0),n.fromCluster&&(At.debug("from cluster abc88",r.get(n.fromCluster),JSON.stringify(d,null,2)),d=hz(d.reverse(),r.get(n.fromCluster).node).reverse(),h=!0);let _=d.filter(L=>!Number.isNaN(L.y));const w=fOe(n.curve);w!=="rounded"&&(_=xOe(_));let S=b_;switch(w){case"linear":S=b_;break;case"basis":S=TA;break;case"cardinal":S=zZ;break;case"bumpX":S=LZ;break;case"bumpY":S=$Z;break;case"catmullRom":S=HZ;break;case"monotoneX":S=KZ;break;case"monotoneY":S=YZ;break;case"natural":S=JZ;break;case"step":S=ZZ;break;case"stepAfter":S=eQ;break;case"stepBefore":S=QZ;break;case"rounded":S=b_;break;default:S=TA}const{x:C,y:j}=g6e(n),T=q4e().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"?ore(lre(_,n),5):T(_);const D=Array.isArray(n.style)?n.style:[n.style];let U=D.find(L=>L==null?void 0:L.startsWith("stroke:")),H="";n.animate&&(H="edge-animation-fast"),n.animation&&(H="edge-animation-"+n.animation);let I=!1;if(n.look==="handDrawn"){const L=An.svg(e);Object.assign([],_);const B=L.path(R,{roughness:.3,seed:u});E+=" transition",N=er(B).select("path").attr("id",n.id).attr("class"," "+E+(n.classes?" "+n.classes:"")+(H?" "+H:"")).attr("style",D?D.reduce((V,F)=>V+";"+F,""):"");let G=N.attr("d");N.attr("d",G),e.node().appendChild(N.node())}else{const L=x.join(";"),B=D?D.reduce((ee,Z)=>ee+Z+";",""):"",G=(L?L+";"+B+";":B)+";"+(D?D.reduce((ee,Z)=>ee+";"+Z,""):"");N=e.append("path").attr("d",R).attr("id",n.id).attr("class"," "+E+(n.classes?" "+n.classes:"")+(H?" "+H:"")).attr("style",G),U=(M=G.match(/stroke:([^;]+)/))==null?void 0:M[1],I=n.animate===!0||!!n.animation||L.includes("animation");const V=N.node(),F=typeof V.getTotalLength=="function"?V.getTotalLength():0,X=TB[n.arrowTypeStart]||0,q=TB[n.arrowTypeEnd]||0;if(n.look==="neo"&&!I){const Z=`stroke-dasharray: ${n.pattern==="dotted"||n.pattern==="dashed"?vOe(F,X,q):`0 ${X} ${F-X-q} ${q}`}; stroke-dashoffset: 0;`;N.attr("style",Z+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(L=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",L.x).attr("cy",L.y)});let W="";(di().flowchart.arrowMarkerAbsolute||di().state.arrowMarkerAbsolute)&&(W=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,W=W.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),At.info("arrowTypeStart",n.arrowTypeStart),At.info("arrowTypeEnd",n.arrowTypeEnd),dOe(N,n,W,o,i,U);const $=Math.floor(d.length/2),O=d[$];dd.isLabelCoordinateInPath(O,N.attr("d"))||(h=!0);let z={};return h&&(z.updatedPath=d),z.originalPath=n.points,z},"insertEdge");function ore(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,D=o.y-w*N,U=o.x+S*N,H=o.y+C*N;r+=`L${R},${D}`,r+=`Q${o.x},${o.y} ${U},${H}`}}return r}Y(ore,"generateRoundedPath");function nO(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(nO,"calculateDeltaAndAngle");function lre(e,n){const r=e.map(s=>({...s}));if(e.length>=2&&Ao[n.arrowTypeStart]){const s=Ao[n.arrowTypeStart],a=e[0],o=e[1],{angle:l}=nO(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&&Ao[n.arrowTypeEnd]){const s=Ao[n.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:l}=nO(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(lre,"applyMarkerOffsetsToPoints");var _Oe=Y((e,n,r,i)=>{n.forEach(s=>{DOe[s](e,r,i)})},"insertMarkers"),wOe=Y((e,n,r)=>{At.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"),SOe=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"),kOe=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"),COe=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"),jOe=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"),NOe=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"),TOe=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"),EOe=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"),AOe=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"),OOe=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"),ROe=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"),MOe=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"),POe=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"),LOe=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"),$Oe=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"),DOe={extension:wOe,composition:SOe,aggregation:kOe,dependency:COe,lollipop:jOe,point:NOe,circle:TOe,cross:EOe,barb:AOe,only_one:OOe,zero_or_one:ROe,one_or_more:MOe,zero_or_more:POe,requirement_arrow:LOe,requirement_contains:$Oe},IOe=_Oe,BOe={common:dS,getConfig:Lo,insertCluster:VAe,insertEdge:bOe,insertEdgeLabel:pOe,insertMarkers:IOe,insertNode:sre,interpolateToCurve:f9,labelHelper:sr,log:At,positionEdgeLabel:mOe},lw={},cre=Y(e=>{for(const n of e)lw[n.name]=n},"registerLayoutLoaders"),zOe=Y(()=>{cre([{name:"dagre",loader:Y(async()=>await it(()=>import("./dagre-KLK3FWXG-DQq4OTGc.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:Y(async()=>await it(()=>import("./cose-bilkent-S5V4N54A-BgQYmR_e.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");zOe();var I_t=Y(async(e,n)=>{if(!(e.layoutAlgorithm in lw))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=lw[e.layoutAlgorithm];return(await r.loader()).render(e,n,BOe,{algorithm:r.algorithm})},"render"),B_t=Y((e="",{fallback:n="dagre"}={})=>{if(e in lw)return e;if(n in lw)return At.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"),ure="comm",dre="rule",hre="decl",FOe="@import",HOe="@namespace",WOe="@keyframes",UOe="@layer",fre=Math.abs,P9=String.fromCharCode;function pre(e){return e.trim()}function N3(e,n,r){return e.replace(n,r)}function VOe(e,n,r){return e.indexOf(n,r)}function Sx(e,n){return e.charCodeAt(n)|0}function Jx(e,n,r){return e.slice(n,r)}function bh(e){return e.length}function qOe(e){return e.length}function vC(e,n){return n.push(e),e}var W4=1,Zx=1,mre=0,ju=0,Js=0,k1="";function L9(e,n,r,i,s,a,o,l){return{value:e,root:n,parent:r,type:i,props:s,children:a,line:W4,column:Zx,length:o,return:"",siblings:l}}function GOe(){return Js}function KOe(){return Js=ju>0?Sx(k1,--ju):0,Zx--,Js===10&&(Zx=1,W4--),Js}function _d(){return Js=ju<mre?Sx(k1,ju++):0,Zx++,Js===10&&(Zx=1,W4++),Js}function _m(){return Sx(k1,ju)}function T3(){return ju}function U4(e,n){return Jx(k1,e,n)}function cw(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 YOe(e){return W4=Zx=1,mre=bh(k1=e),ju=0,[]}function XOe(e){return k1="",e}function CT(e){return pre(U4(ju-1,rO(e===91?e+2:e===40?e+1:e)))}function JOe(e){for(;(Js=_m())&&Js<33;)_d();return cw(e)>2||cw(Js)>3?"":" "}function ZOe(e,n){for(;--n&&_d()&&!(Js<48||Js>102||Js>57&&Js<65||Js>70&&Js<97););return U4(e,T3()+(n<6&&_m()==32&&_d()==32))}function rO(e){for(;_d();)switch(Js){case e:return ju;case 34:case 39:e!==34&&e!==39&&rO(Js);break;case 40:e===41&&rO(e);break;case 92:_d();break}return ju}function QOe(e,n){for(;_d()&&e+Js!==57;)if(e+Js===84&&_m()===47)break;return"/*"+U4(n,ju-1)+"*"+P9(e===47?e:_d())}function e7e(e){for(;!cw(_m());)_d();return U4(e,ju)}function t7e(e){return XOe(E3("",null,null,null,[""],e=YOe(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=_d()){case 40:if(v!=108&&Sx(R,f-1)==58){VOe(R+=N3(CT(C),"&","&\f"),"&\f",fre(d?l[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=CT(C);break;case 9:case 10:case 13:case 32:R+=JOe(v);break;case 92:R+=ZOe(T3()-1,7);continue;case 47:switch(_m()){case 42:case 47:vC(n7e(QOe(_d(),T3()),n,r,u),u),(cw(v||1)==5||cw(_m()||1)==5)&&bh(R)&&Jx(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*_:l[d++]=bh(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&&(bh(R)-f||_===0&&v===47)&&vC(x>32?mz(R+";",i,r,f-1,u):mz(N3(R," ","")+";",i,r,f-2,u),u);break;case 59:R+=";";default:if(vC(N=pz(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(Sx(R,3)===110)break;case 108:if(Sx(R,2)===97)break;default:h=0;case 100:case 109:case 115:}h?E3(e,N,N,i&&vC(pz(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+bh(R),x=v;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&KOe()==125)continue}switch(R+=P9(C),C*_){case 38:S=h>0?1:(R+="\f",-1);break;case 44:l[d++]=(bh(R)-1)*S,S=1;break;case 64:_m()===45&&(R+=CT(_d())),m=_m(),h=f=bh(j=R+=e7e(T3())),C++;break;case 45:v===45&&bh(R)==2&&(_=0)}}return a}function pz(e,n,r,i,s,a,o,l,u,d,h,f){for(var m=s-1,x=s===0?a:[""],v=qOe(x),_=0,w=0,S=0;_<i;++_)for(var C=0,j=Jx(e,m+1,m=fre(w=o[_])),T=e;C<v;++C)(T=pre(w>0?x[C]+" "+j:N3(j,/&\f/g,x[C])))&&(u[S++]=T);return L9(e,n,r,s===0?dre:l,u,d,h,f)}function n7e(e,n,r,i){return L9(e,n,r,ure,P9(GOe()),Jx(e,2,-2),0,i)}function mz(e,n,r,i,s){return L9(e,n,r,hre,Jx(e,0,i),Jx(e,i+1,-1),i,s)}function iO(e,n){for(var r="",i=0;i<e.length;i++)r+=n(e[i],i,e,n)||"";return r}function r7e(e,n,r,i){switch(e.type){case UOe:if(e.children.length)break;case FOe:case HOe:case hre:return e.return=e.return||e.value;case ure:return"";case WOe:return e.return=e.value+"{"+iO(e.children,i)+"}";case dre:if(!bh(e.value=e.props.join(",")))return""}return bh(r=iO(e.children,i))?e.return=e.value+"{"+r+"}":""}var i7e=Bee(Object.keys,Object),s7e=Object.prototype,a7e=s7e.hasOwnProperty;function o7e(e){if(!P4(e))return i7e(e);var n=[];for(var r in Object(e))a7e.call(e,r)&&r!="constructor"&&n.push(r);return n}var sO=K0(Ld,"DataView"),aO=K0(Ld,"Promise"),oO=K0(Ld,"Set"),lO=K0(Ld,"WeakMap"),gz="[object Map]",l7e="[object Object]",yz="[object Promise]",xz="[object Set]",vz="[object WeakMap]",bz="[object DataView]",c7e=G0(sO),u7e=G0(aw),d7e=G0(aO),h7e=G0(oO),f7e=G0(lO),Ug=q0;(sO&&Ug(new sO(new ArrayBuffer(1)))!=bz||aw&&Ug(new aw)!=gz||aO&&Ug(aO.resolve())!=yz||oO&&Ug(new oO)!=xz||lO&&Ug(new lO)!=vz)&&(Ug=function(e){var n=q0(e),r=n==l7e?e.constructor:void 0,i=r?G0(r):"";if(i)switch(i){case c7e:return bz;case u7e:return gz;case d7e:return yz;case h7e:return xz;case f7e:return vz}return n});var p7e="[object Map]",m7e="[object Set]",g7e=Object.prototype,y7e=g7e.hasOwnProperty;function _z(e){if(e==null)return!0;if(L4(e)&&(I5(e)||typeof e=="string"||typeof e.splice=="function"||d9(e)||h9(e)||D5(e)))return!e.length;var n=Ug(e);if(n==p7e||n==m7e)return!e.size;if(P4(e))return!o7e(e).length;for(var r in e)if(y7e.call(e,r))return!1;return!0}var gre="c4",x7e=Y(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),v7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./c4Diagram-IC4MRINW-BfcXGNTs.js");return{diagram:n}},__vite__mapDeps([8,9]),import.meta.url);return{id:gre,diagram:e}},"loader"),b7e={id:gre,detector:x7e,loader:v7e},_7e=b7e,yre="flowchart",w7e=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"),S7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-C-YMgFQ4.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:yre,diagram:e}},"loader"),k7e={id:yre,detector:w7e,loader:S7e},C7e=k7e,xre="flowchart-v2",j7e=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"),N7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-C-YMgFQ4.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:xre,diagram:e}},"loader"),T7e={id:xre,detector:j7e,loader:N7e},E7e=T7e,vre="er",A7e=Y(e=>/^\s*erDiagram/.test(e),"detector"),O7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./erDiagram-INFDFZHY-Dod2pK87.js");return{diagram:n}},__vite__mapDeps([15,12,13,14]),import.meta.url);return{id:vre,diagram:e}},"loader"),R7e={id:vre,detector:A7e,loader:O7e},M7e=R7e,bre="gitGraph",P7e=Y(e=>/^\s*gitGraph/.test(e),"detector"),L7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./gitGraphDiagram-K3NZZRJ6-BOR4arme.js");return{diagram:n}},__vite__mapDeps([16,17,18,19,2,4,5]),import.meta.url);return{id:bre,diagram:e}},"loader"),$7e={id:bre,detector:P7e,loader:L7e},D7e=$7e,_re="gantt",I7e=Y(e=>/^\s*gantt/.test(e),"detector"),B7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./ganttDiagram-A5KZAMGK-C7AlDm2_.js");return{diagram:n}},__vite__mapDeps([20,21,22]),import.meta.url);return{id:_re,diagram:e}},"loader"),z7e={id:_re,detector:I7e,loader:B7e},F7e=z7e,wre="info",H7e=Y(e=>/^\s*info/.test(e),"detector"),W7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./infoDiagram-LFFYTUFH-BTBnA-wy.js");return{diagram:n}},__vite__mapDeps([23,19,2,4,5]),import.meta.url);return{id:wre,diagram:e}},"loader"),U7e={id:wre,detector:H7e,loader:W7e},Sre="pie",V7e=Y(e=>/^\s*pie/.test(e),"detector"),q7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./pieDiagram-SKSYHLDU-CXS5bwEQ.js");return{diagram:n}},__vite__mapDeps([24,17,19,2,4,5,25]),import.meta.url);return{id:Sre,diagram:e}},"loader"),G7e={id:Sre,detector:V7e,loader:q7e},kre="quadrantChart",K7e=Y(e=>/^\s*quadrantChart/.test(e),"detector"),Y7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./quadrantDiagram-337W2JSQ-BNiTM28o.js");return{diagram:n}},__vite__mapDeps([26,21,22]),import.meta.url);return{id:kre,diagram:e}},"loader"),X7e={id:kre,detector:K7e,loader:Y7e},J7e=X7e,Cre="xychart",Z7e=Y(e=>/^\s*xychart(-beta)?/.test(e),"detector"),Q7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./xychartDiagram-JWTSCODW-DUreFySj.js");return{diagram:n}},__vite__mapDeps([27,21,22]),import.meta.url);return{id:Cre,diagram:e}},"loader"),eRe={id:Cre,detector:Z7e,loader:Q7e},tRe=eRe,jre="requirement",nRe=Y(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),rRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./requirementDiagram-Z7DCOOCP-muKDKUAK.js");return{diagram:n}},__vite__mapDeps([28,12,13]),import.meta.url);return{id:jre,diagram:e}},"loader"),iRe={id:jre,detector:nRe,loader:rRe},sRe=iRe,Nre="sequence",aRe=Y(e=>/^\s*sequenceDiagram/.test(e),"detector"),oRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./sequenceDiagram-2WXFIKYE-Bfl_RYF8.js");return{diagram:n}},__vite__mapDeps([29,9,18]),import.meta.url);return{id:Nre,diagram:e}},"loader"),lRe={id:Nre,detector:aRe,loader:oRe},cRe=lRe,Tre="class",uRe=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"),dRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./classDiagram-VBA2DB6C-DhbnKCEN.js");return{diagram:n}},__vite__mapDeps([30,31,11,9,12,13]),import.meta.url);return{id:Tre,diagram:e}},"loader"),hRe={id:Tre,detector:uRe,loader:dRe},fRe=hRe,Ere="classDiagram",pRe=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"),mRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./classDiagram-v2-RAHNMMFH-DhbnKCEN.js");return{diagram:n}},__vite__mapDeps([32,31,11,9,12,13]),import.meta.url);return{id:Ere,diagram:e}},"loader"),gRe={id:Ere,detector:pRe,loader:mRe},yRe=gRe,Are="state",xRe=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"),vRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./stateDiagram-RAJIS63D-Cp7FYiSc.js");return{diagram:n}},__vite__mapDeps([33,34,12,13,1,2,3,4]),import.meta.url);return{id:Are,diagram:e}},"loader"),bRe={id:Are,detector:xRe,loader:vRe},_Re=bRe,Ore="stateDiagram",wRe=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"),SRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./stateDiagram-v2-FVOUBMTO-S06SqBtH.js");return{diagram:n}},__vite__mapDeps([35,34,12,13]),import.meta.url);return{id:Ore,diagram:e}},"loader"),kRe={id:Ore,detector:wRe,loader:SRe},CRe=kRe,Rre="journey",jRe=Y(e=>/^\s*journey/.test(e),"detector"),NRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./journeyDiagram-4ABVD52K-XPyxDGAA.js");return{diagram:n}},__vite__mapDeps([36,11,9,25]),import.meta.url);return{id:Rre,diagram:e}},"loader"),TRe={id:Rre,detector:jRe,loader:NRe},ERe=TRe,ARe=Y((e,n,r)=>{At.debug(`rendering svg for syntax error
1116
- `);const i=lNe(n),s=i.append("g");i.attr("viewBox","0 0 2412 512"),tZ(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"),Mre={draw:ARe},ORe=Mre,RRe={db:{},renderer:Mre,parser:{parse:Y(()=>{},"parse")}},MRe=RRe,Pre="flowchart-elk",PRe=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"),LRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-C-YMgFQ4.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:Pre,diagram:e}},"loader"),$Re={id:Pre,detector:PRe,loader:LRe},DRe=$Re,Lre="timeline",IRe=Y(e=>/^\s*timeline/.test(e),"detector"),BRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./timeline-definition-YZTLITO2-BHiQfvN6.js");return{diagram:n}},__vite__mapDeps([37,25]),import.meta.url);return{id:Lre,diagram:e}},"loader"),zRe={id:Lre,detector:IRe,loader:BRe},FRe=zRe,$re="mindmap",HRe=Y(e=>/^\s*mindmap/.test(e),"detector"),WRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./mindmap-definition-YRQLILUH-ByijwJGj.js");return{diagram:n}},__vite__mapDeps([38,12,13]),import.meta.url);return{id:$re,diagram:e}},"loader"),URe={id:$re,detector:HRe,loader:WRe},VRe=URe,Dre="kanban",qRe=Y(e=>/^\s*kanban/.test(e),"detector"),GRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./kanban-definition-K7BYSVSG-ZJKM-OoN.js");return{diagram:n}},__vite__mapDeps([39,11]),import.meta.url);return{id:Dre,diagram:e}},"loader"),KRe={id:Dre,detector:qRe,loader:GRe},YRe=KRe,Ire="sankey",XRe=Y(e=>/^\s*sankey(-beta)?/.test(e),"detector"),JRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./sankeyDiagram-WA2Y5GQK-DgrtvNUm.js");return{diagram:n}},[],import.meta.url);return{id:Ire,diagram:e}},"loader"),ZRe={id:Ire,detector:XRe,loader:JRe},QRe=ZRe,Bre="packet",eMe=Y(e=>/^\s*packet(-beta)?/.test(e),"detector"),tMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./diagram-P4PSJMXO-D-Dca0sk.js");return{diagram:n}},__vite__mapDeps([40,17,19,2,4,5]),import.meta.url);return{id:Bre,diagram:e}},"loader"),nMe={id:Bre,detector:eMe,loader:tMe},zre="radar",rMe=Y(e=>/^\s*radar-beta/.test(e),"detector"),iMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./diagram-IFDJBPK2-CNv1xgxA.js");return{diagram:n}},__vite__mapDeps([41,17,19,2,4,5]),import.meta.url);return{id:zre,diagram:e}},"loader"),sMe={id:zre,detector:rMe,loader:iMe},Fre="block",aMe=Y(e=>/^\s*block(-beta)?/.test(e),"detector"),oMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./blockDiagram-WCTKOSBZ-3gRsHnzH.js");return{diagram:n}},__vite__mapDeps([42,11,5,2,1,14]),import.meta.url);return{id:Fre,diagram:e}},"loader"),lMe={id:Fre,detector:aMe,loader:oMe},cMe=lMe,Hre="architecture",uMe=Y(e=>/^\s*architecture/.test(e),"detector"),dMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./architectureDiagram-2XIMDMQ5-BC1ssl2b.js");return{diagram:n}},__vite__mapDeps([43,17,19,2,4,5,7]),import.meta.url);return{id:Hre,diagram:e}},"loader"),hMe={id:Hre,detector:uMe,loader:dMe},fMe=hMe,Wre="ishikawa",pMe=Y(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),mMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./ishikawaDiagram-PHBUUO56-TCNUV9q2.js");return{diagram:n}},[],import.meta.url);return{id:Wre,diagram:e}},"loader"),gMe={id:Wre,detector:pMe,loader:mMe},Ure="venn",yMe=Y(e=>/^\s*venn-beta/.test(e),"detector"),xMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./vennDiagram-LZ73GAT5-CPASq26G.js");return{diagram:n}},[],import.meta.url);return{id:Ure,diagram:e}},"loader"),vMe={id:Ure,detector:yMe,loader:xMe},bMe=vMe,Vre="treemap",_Me=Y(e=>/^\s*treemap/.test(e),"detector"),wMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./diagram-E7M64L7V-Dg0QCbuR.js");return{diagram:n}},__vite__mapDeps([44,13,17,19,2,4,5,22]),import.meta.url);return{id:Vre,diagram:e}},"loader"),SMe={id:Vre,detector:_Me,loader:wMe},wz=!1,V4=Y(()=>{wz||(wz=!0,v5("error",MRe,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("---")),fA(DRe,VRe,fMe),fA(_7e,YRe,yRe,fRe,M7e,F7e,U7e,G7e,sRe,cRe,E7e,C7e,FRe,D7e,CRe,_Re,ERe,J7e,QRe,nMe,tRe,cMe,sMe,gMe,SMe,bMe))},"addDiagrams"),kMe=Y(async()=>{At.debug("Loading registered diagrams");const n=(await Promise.allSettled(Object.entries(v0).map(async([r,{detector:i,loader:s}])=>{if(s)try{yA(r)}catch{try{const{diagram:a,id:o}=await s();v5(o,a,i)}catch(a){throw At.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete v0[r],a}}}))).filter(r=>r.status==="rejected");if(n.length>0){At.error(`Failed to load ${n.length} external diagrams`);for(const r of n)At.error(r);throw new Error(`Failed to load ${n.length} external diagrams`)}},"loadRegisteredDiagrams"),CMe="graphics-document document";function qre(e,n){e.attr("role",CMe),n!==""&&e.attr("aria-roledescription",n)}Y(qre,"setA11yDiagramInfo");function Gre(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(Gre,"addSVGa11yTitleDescription");var p0,cO=(p0=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=Lo(),s=PM(n,i);n=d8e(n)+`
1115
+ L0,20`)},"requirement_arrow"),$Oe=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"),DOe={extension:wOe,composition:SOe,aggregation:kOe,dependency:COe,lollipop:jOe,point:NOe,circle:TOe,cross:EOe,barb:AOe,only_one:OOe,zero_or_one:ROe,one_or_more:MOe,zero_or_more:POe,requirement_arrow:LOe,requirement_contains:$Oe},IOe=_Oe,BOe={common:dS,getConfig:Lo,insertCluster:VAe,insertEdge:bOe,insertEdgeLabel:pOe,insertMarkers:IOe,insertNode:sre,interpolateToCurve:f9,labelHelper:sr,log:At,positionEdgeLabel:mOe},lw={},cre=Y(e=>{for(const n of e)lw[n.name]=n},"registerLayoutLoaders"),zOe=Y(()=>{cre([{name:"dagre",loader:Y(async()=>await it(()=>import("./dagre-KLK3FWXG-CEkjG8lb.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:Y(async()=>await it(()=>import("./cose-bilkent-S5V4N54A-CyGAM_Pf.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");zOe();var I_t=Y(async(e,n)=>{if(!(e.layoutAlgorithm in lw))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=lw[e.layoutAlgorithm];return(await r.loader()).render(e,n,BOe,{algorithm:r.algorithm})},"render"),B_t=Y((e="",{fallback:n="dagre"}={})=>{if(e in lw)return e;if(n in lw)return At.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"),ure="comm",dre="rule",hre="decl",FOe="@import",HOe="@namespace",WOe="@keyframes",UOe="@layer",fre=Math.abs,P9=String.fromCharCode;function pre(e){return e.trim()}function N3(e,n,r){return e.replace(n,r)}function VOe(e,n,r){return e.indexOf(n,r)}function Sx(e,n){return e.charCodeAt(n)|0}function Jx(e,n,r){return e.slice(n,r)}function bh(e){return e.length}function qOe(e){return e.length}function vC(e,n){return n.push(e),e}var W4=1,Zx=1,mre=0,ju=0,Js=0,k1="";function L9(e,n,r,i,s,a,o,l){return{value:e,root:n,parent:r,type:i,props:s,children:a,line:W4,column:Zx,length:o,return:"",siblings:l}}function GOe(){return Js}function KOe(){return Js=ju>0?Sx(k1,--ju):0,Zx--,Js===10&&(Zx=1,W4--),Js}function _d(){return Js=ju<mre?Sx(k1,ju++):0,Zx++,Js===10&&(Zx=1,W4++),Js}function _m(){return Sx(k1,ju)}function T3(){return ju}function U4(e,n){return Jx(k1,e,n)}function cw(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 YOe(e){return W4=Zx=1,mre=bh(k1=e),ju=0,[]}function XOe(e){return k1="",e}function CT(e){return pre(U4(ju-1,rO(e===91?e+2:e===40?e+1:e)))}function JOe(e){for(;(Js=_m())&&Js<33;)_d();return cw(e)>2||cw(Js)>3?"":" "}function ZOe(e,n){for(;--n&&_d()&&!(Js<48||Js>102||Js>57&&Js<65||Js>70&&Js<97););return U4(e,T3()+(n<6&&_m()==32&&_d()==32))}function rO(e){for(;_d();)switch(Js){case e:return ju;case 34:case 39:e!==34&&e!==39&&rO(Js);break;case 40:e===41&&rO(e);break;case 92:_d();break}return ju}function QOe(e,n){for(;_d()&&e+Js!==57;)if(e+Js===84&&_m()===47)break;return"/*"+U4(n,ju-1)+"*"+P9(e===47?e:_d())}function e7e(e){for(;!cw(_m());)_d();return U4(e,ju)}function t7e(e){return XOe(E3("",null,null,null,[""],e=YOe(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=_d()){case 40:if(v!=108&&Sx(R,f-1)==58){VOe(R+=N3(CT(C),"&","&\f"),"&\f",fre(d?l[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=CT(C);break;case 9:case 10:case 13:case 32:R+=JOe(v);break;case 92:R+=ZOe(T3()-1,7);continue;case 47:switch(_m()){case 42:case 47:vC(n7e(QOe(_d(),T3()),n,r,u),u),(cw(v||1)==5||cw(_m()||1)==5)&&bh(R)&&Jx(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*_:l[d++]=bh(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&&(bh(R)-f||_===0&&v===47)&&vC(x>32?mz(R+";",i,r,f-1,u):mz(N3(R," ","")+";",i,r,f-2,u),u);break;case 59:R+=";";default:if(vC(N=pz(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(Sx(R,3)===110)break;case 108:if(Sx(R,2)===97)break;default:h=0;case 100:case 109:case 115:}h?E3(e,N,N,i&&vC(pz(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+bh(R),x=v;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&KOe()==125)continue}switch(R+=P9(C),C*_){case 38:S=h>0?1:(R+="\f",-1);break;case 44:l[d++]=(bh(R)-1)*S,S=1;break;case 64:_m()===45&&(R+=CT(_d())),m=_m(),h=f=bh(j=R+=e7e(T3())),C++;break;case 45:v===45&&bh(R)==2&&(_=0)}}return a}function pz(e,n,r,i,s,a,o,l,u,d,h,f){for(var m=s-1,x=s===0?a:[""],v=qOe(x),_=0,w=0,S=0;_<i;++_)for(var C=0,j=Jx(e,m+1,m=fre(w=o[_])),T=e;C<v;++C)(T=pre(w>0?x[C]+" "+j:N3(j,/&\f/g,x[C])))&&(u[S++]=T);return L9(e,n,r,s===0?dre:l,u,d,h,f)}function n7e(e,n,r,i){return L9(e,n,r,ure,P9(GOe()),Jx(e,2,-2),0,i)}function mz(e,n,r,i,s){return L9(e,n,r,hre,Jx(e,0,i),Jx(e,i+1,-1),i,s)}function iO(e,n){for(var r="",i=0;i<e.length;i++)r+=n(e[i],i,e,n)||"";return r}function r7e(e,n,r,i){switch(e.type){case UOe:if(e.children.length)break;case FOe:case HOe:case hre:return e.return=e.return||e.value;case ure:return"";case WOe:return e.return=e.value+"{"+iO(e.children,i)+"}";case dre:if(!bh(e.value=e.props.join(",")))return""}return bh(r=iO(e.children,i))?e.return=e.value+"{"+r+"}":""}var i7e=Bee(Object.keys,Object),s7e=Object.prototype,a7e=s7e.hasOwnProperty;function o7e(e){if(!P4(e))return i7e(e);var n=[];for(var r in Object(e))a7e.call(e,r)&&r!="constructor"&&n.push(r);return n}var sO=K0(Ld,"DataView"),aO=K0(Ld,"Promise"),oO=K0(Ld,"Set"),lO=K0(Ld,"WeakMap"),gz="[object Map]",l7e="[object Object]",yz="[object Promise]",xz="[object Set]",vz="[object WeakMap]",bz="[object DataView]",c7e=G0(sO),u7e=G0(aw),d7e=G0(aO),h7e=G0(oO),f7e=G0(lO),Ug=q0;(sO&&Ug(new sO(new ArrayBuffer(1)))!=bz||aw&&Ug(new aw)!=gz||aO&&Ug(aO.resolve())!=yz||oO&&Ug(new oO)!=xz||lO&&Ug(new lO)!=vz)&&(Ug=function(e){var n=q0(e),r=n==l7e?e.constructor:void 0,i=r?G0(r):"";if(i)switch(i){case c7e:return bz;case u7e:return gz;case d7e:return yz;case h7e:return xz;case f7e:return vz}return n});var p7e="[object Map]",m7e="[object Set]",g7e=Object.prototype,y7e=g7e.hasOwnProperty;function _z(e){if(e==null)return!0;if(L4(e)&&(I5(e)||typeof e=="string"||typeof e.splice=="function"||d9(e)||h9(e)||D5(e)))return!e.length;var n=Ug(e);if(n==p7e||n==m7e)return!e.size;if(P4(e))return!o7e(e).length;for(var r in e)if(y7e.call(e,r))return!1;return!0}var gre="c4",x7e=Y(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),v7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./c4Diagram-IC4MRINW-CFGdbvgT.js");return{diagram:n}},__vite__mapDeps([8,9]),import.meta.url);return{id:gre,diagram:e}},"loader"),b7e={id:gre,detector:x7e,loader:v7e},_7e=b7e,yre="flowchart",w7e=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"),S7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-BA1HMvba.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:yre,diagram:e}},"loader"),k7e={id:yre,detector:w7e,loader:S7e},C7e=k7e,xre="flowchart-v2",j7e=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"),N7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-BA1HMvba.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:xre,diagram:e}},"loader"),T7e={id:xre,detector:j7e,loader:N7e},E7e=T7e,vre="er",A7e=Y(e=>/^\s*erDiagram/.test(e),"detector"),O7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./erDiagram-INFDFZHY-CvolWxxD.js");return{diagram:n}},__vite__mapDeps([15,12,13,14]),import.meta.url);return{id:vre,diagram:e}},"loader"),R7e={id:vre,detector:A7e,loader:O7e},M7e=R7e,bre="gitGraph",P7e=Y(e=>/^\s*gitGraph/.test(e),"detector"),L7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./gitGraphDiagram-K3NZZRJ6-Bol4yzh5.js");return{diagram:n}},__vite__mapDeps([16,17,18,19,2,4,5]),import.meta.url);return{id:bre,diagram:e}},"loader"),$7e={id:bre,detector:P7e,loader:L7e},D7e=$7e,_re="gantt",I7e=Y(e=>/^\s*gantt/.test(e),"detector"),B7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./ganttDiagram-A5KZAMGK-BLiNJnFF.js");return{diagram:n}},__vite__mapDeps([20,21,22]),import.meta.url);return{id:_re,diagram:e}},"loader"),z7e={id:_re,detector:I7e,loader:B7e},F7e=z7e,wre="info",H7e=Y(e=>/^\s*info/.test(e),"detector"),W7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./infoDiagram-LFFYTUFH-Dl8fc90-.js");return{diagram:n}},__vite__mapDeps([23,19,2,4,5]),import.meta.url);return{id:wre,diagram:e}},"loader"),U7e={id:wre,detector:H7e,loader:W7e},Sre="pie",V7e=Y(e=>/^\s*pie/.test(e),"detector"),q7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./pieDiagram-SKSYHLDU-DuBykepR.js");return{diagram:n}},__vite__mapDeps([24,17,19,2,4,5,25]),import.meta.url);return{id:Sre,diagram:e}},"loader"),G7e={id:Sre,detector:V7e,loader:q7e},kre="quadrantChart",K7e=Y(e=>/^\s*quadrantChart/.test(e),"detector"),Y7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./quadrantDiagram-337W2JSQ-BoPx8dEs.js");return{diagram:n}},__vite__mapDeps([26,21,22]),import.meta.url);return{id:kre,diagram:e}},"loader"),X7e={id:kre,detector:K7e,loader:Y7e},J7e=X7e,Cre="xychart",Z7e=Y(e=>/^\s*xychart(-beta)?/.test(e),"detector"),Q7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./xychartDiagram-JWTSCODW-FpaqRFdW.js");return{diagram:n}},__vite__mapDeps([27,21,22]),import.meta.url);return{id:Cre,diagram:e}},"loader"),eRe={id:Cre,detector:Z7e,loader:Q7e},tRe=eRe,jre="requirement",nRe=Y(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),rRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./requirementDiagram-Z7DCOOCP-CnQ7rrDh.js");return{diagram:n}},__vite__mapDeps([28,12,13]),import.meta.url);return{id:jre,diagram:e}},"loader"),iRe={id:jre,detector:nRe,loader:rRe},sRe=iRe,Nre="sequence",aRe=Y(e=>/^\s*sequenceDiagram/.test(e),"detector"),oRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./sequenceDiagram-2WXFIKYE-CcHl7g9G.js");return{diagram:n}},__vite__mapDeps([29,9,18]),import.meta.url);return{id:Nre,diagram:e}},"loader"),lRe={id:Nre,detector:aRe,loader:oRe},cRe=lRe,Tre="class",uRe=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"),dRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./classDiagram-VBA2DB6C-CvACUS4Q.js");return{diagram:n}},__vite__mapDeps([30,31,11,9,12,13]),import.meta.url);return{id:Tre,diagram:e}},"loader"),hRe={id:Tre,detector:uRe,loader:dRe},fRe=hRe,Ere="classDiagram",pRe=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"),mRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./classDiagram-v2-RAHNMMFH-CvACUS4Q.js");return{diagram:n}},__vite__mapDeps([32,31,11,9,12,13]),import.meta.url);return{id:Ere,diagram:e}},"loader"),gRe={id:Ere,detector:pRe,loader:mRe},yRe=gRe,Are="state",xRe=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"),vRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./stateDiagram-RAJIS63D-C3pOsg8s.js");return{diagram:n}},__vite__mapDeps([33,34,12,13,1,2,3,4]),import.meta.url);return{id:Are,diagram:e}},"loader"),bRe={id:Are,detector:xRe,loader:vRe},_Re=bRe,Ore="stateDiagram",wRe=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"),SRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./stateDiagram-v2-FVOUBMTO-RbTXEryp.js");return{diagram:n}},__vite__mapDeps([35,34,12,13]),import.meta.url);return{id:Ore,diagram:e}},"loader"),kRe={id:Ore,detector:wRe,loader:SRe},CRe=kRe,Rre="journey",jRe=Y(e=>/^\s*journey/.test(e),"detector"),NRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./journeyDiagram-4ABVD52K-DCtD7zwY.js");return{diagram:n}},__vite__mapDeps([36,11,9,25]),import.meta.url);return{id:Rre,diagram:e}},"loader"),TRe={id:Rre,detector:jRe,loader:NRe},ERe=TRe,ARe=Y((e,n,r)=>{At.debug(`rendering svg for syntax error
1116
+ `);const i=lNe(n),s=i.append("g");i.attr("viewBox","0 0 2412 512"),tZ(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"),Mre={draw:ARe},ORe=Mre,RRe={db:{},renderer:Mre,parser:{parse:Y(()=>{},"parse")}},MRe=RRe,Pre="flowchart-elk",PRe=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"),LRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-BA1HMvba.js");return{diagram:n}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:Pre,diagram:e}},"loader"),$Re={id:Pre,detector:PRe,loader:LRe},DRe=$Re,Lre="timeline",IRe=Y(e=>/^\s*timeline/.test(e),"detector"),BRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./timeline-definition-YZTLITO2--AWfjR0J.js");return{diagram:n}},__vite__mapDeps([37,25]),import.meta.url);return{id:Lre,diagram:e}},"loader"),zRe={id:Lre,detector:IRe,loader:BRe},FRe=zRe,$re="mindmap",HRe=Y(e=>/^\s*mindmap/.test(e),"detector"),WRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./mindmap-definition-YRQLILUH-DLF5gFvK.js");return{diagram:n}},__vite__mapDeps([38,12,13]),import.meta.url);return{id:$re,diagram:e}},"loader"),URe={id:$re,detector:HRe,loader:WRe},VRe=URe,Dre="kanban",qRe=Y(e=>/^\s*kanban/.test(e),"detector"),GRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./kanban-definition-K7BYSVSG-BSu9N0xb.js");return{diagram:n}},__vite__mapDeps([39,11]),import.meta.url);return{id:Dre,diagram:e}},"loader"),KRe={id:Dre,detector:qRe,loader:GRe},YRe=KRe,Ire="sankey",XRe=Y(e=>/^\s*sankey(-beta)?/.test(e),"detector"),JRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./sankeyDiagram-WA2Y5GQK-ieCNEli4.js");return{diagram:n}},[],import.meta.url);return{id:Ire,diagram:e}},"loader"),ZRe={id:Ire,detector:XRe,loader:JRe},QRe=ZRe,Bre="packet",eMe=Y(e=>/^\s*packet(-beta)?/.test(e),"detector"),tMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./diagram-P4PSJMXO-DmYzBRsy.js");return{diagram:n}},__vite__mapDeps([40,17,19,2,4,5]),import.meta.url);return{id:Bre,diagram:e}},"loader"),nMe={id:Bre,detector:eMe,loader:tMe},zre="radar",rMe=Y(e=>/^\s*radar-beta/.test(e),"detector"),iMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./diagram-IFDJBPK2-DW583EFK.js");return{diagram:n}},__vite__mapDeps([41,17,19,2,4,5]),import.meta.url);return{id:zre,diagram:e}},"loader"),sMe={id:zre,detector:rMe,loader:iMe},Fre="block",aMe=Y(e=>/^\s*block(-beta)?/.test(e),"detector"),oMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./blockDiagram-WCTKOSBZ-DkCI-My5.js");return{diagram:n}},__vite__mapDeps([42,11,5,2,1,14]),import.meta.url);return{id:Fre,diagram:e}},"loader"),lMe={id:Fre,detector:aMe,loader:oMe},cMe=lMe,Hre="architecture",uMe=Y(e=>/^\s*architecture/.test(e),"detector"),dMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./architectureDiagram-2XIMDMQ5-BPkslm9k.js");return{diagram:n}},__vite__mapDeps([43,17,19,2,4,5,7]),import.meta.url);return{id:Hre,diagram:e}},"loader"),hMe={id:Hre,detector:uMe,loader:dMe},fMe=hMe,Wre="ishikawa",pMe=Y(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),mMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./ishikawaDiagram-PHBUUO56-DjVDY7AZ.js");return{diagram:n}},[],import.meta.url);return{id:Wre,diagram:e}},"loader"),gMe={id:Wre,detector:pMe,loader:mMe},Ure="venn",yMe=Y(e=>/^\s*venn-beta/.test(e),"detector"),xMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./vennDiagram-LZ73GAT5-BLCYcmJZ.js");return{diagram:n}},[],import.meta.url);return{id:Ure,diagram:e}},"loader"),vMe={id:Ure,detector:yMe,loader:xMe},bMe=vMe,Vre="treemap",_Me=Y(e=>/^\s*treemap/.test(e),"detector"),wMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:n}=await import("./diagram-E7M64L7V-oIIW942s.js");return{diagram:n}},__vite__mapDeps([44,13,17,19,2,4,5,22]),import.meta.url);return{id:Vre,diagram:e}},"loader"),SMe={id:Vre,detector:_Me,loader:wMe},wz=!1,V4=Y(()=>{wz||(wz=!0,v5("error",MRe,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("---")),fA(DRe,VRe,fMe),fA(_7e,YRe,yRe,fRe,M7e,F7e,U7e,G7e,sRe,cRe,E7e,C7e,FRe,D7e,CRe,_Re,ERe,J7e,QRe,nMe,tRe,cMe,sMe,gMe,SMe,bMe))},"addDiagrams"),kMe=Y(async()=>{At.debug("Loading registered diagrams");const n=(await Promise.allSettled(Object.entries(v0).map(async([r,{detector:i,loader:s}])=>{if(s)try{yA(r)}catch{try{const{diagram:a,id:o}=await s();v5(o,a,i)}catch(a){throw At.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete v0[r],a}}}))).filter(r=>r.status==="rejected");if(n.length>0){At.error(`Failed to load ${n.length} external diagrams`);for(const r of n)At.error(r);throw new Error(`Failed to load ${n.length} external diagrams`)}},"loadRegisteredDiagrams"),CMe="graphics-document document";function qre(e,n){e.attr("role",CMe),n!==""&&e.attr("aria-roledescription",n)}Y(qre,"setA11yDiagramInfo");function Gre(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(Gre,"addSVGa11yTitleDescription");var p0,cO=(p0=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=Lo(),s=PM(n,i);n=d8e(n)+`
1117
1117
  `;try{yA(s)}catch{const f=Qke(s);if(!f)throw new FJ(`Diagram ${s} not found.`);const{id:m,diagram:x}=await f();v5(m,x)}const{db:a,parser:o,renderer:l,init:u}=yA(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 p0(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(p0,"Diagram"),p0),Sz=[],jMe=Y(()=>{Sz.forEach(e=>{e()}),Sz=[]},"attachFunctions"),NMe=Y(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Kre(e){const n=e.match(zJ);if(!n)return{text:e,metadata:{}};let r=m6e(n[1],{schema:p6e})??{};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(Kre,"extractFrontMatter");var TMe=Y(e=>e.replace(/\r\n?/g,`
1118
1118
  `).replace(/<(\w+)([^>]*)>/g,(n,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),EMe=Y(e=>{const{text:n,metadata:r}=Kre(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"),AMe=Y(e=>{const n=dd.detectInit(e)??{},r=dd.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:ZEe(e),directive:n}},"processDirectives");function $9(e){const n=TMe(e),r=EMe(n),i=AMe(r.text),s=x9(r.config,i.directive);return e=NMe(i.text),{code:e,title:r.title,config:s}}Y($9,"preprocessDiagram");function Yre(e){const n=new TextEncoder().encode(e),r=Array.from(n,i=>String.fromCodePoint(i)).join("");return btoa(r)}Y(Yre,"toBase64");var OMe=5e4,RMe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",MMe="sandbox",PMe="loose",LMe="http://www.w3.org/2000/svg",$Me="http://www.w3.org/1999/xlink",DMe="http://www.w3.org/1999/xhtml",IMe="100%",BMe="100%",zMe="border:0;margin:0;",FMe="margin:0",HMe="allow-top-navigation-by-user-activation allow-popups",WMe='The "iframe" tag is not supported by your browser.',UMe=["foreignobject"],VMe=["dominant-baseline"];function D9(e){const n=$9(e);return y5(),mCe(n.config??{}),n}Y(D9,"processAndSetConfigs");async function Xre(e,n){V4();try{const{code:r,config:i}=D9(e);return{diagramType:(await Zre(r)).type,config:i}}catch(r){if(n!=null&&n.suppressErrors)return!1;throw r}}Y(Xre,"parse");var kz=Y((e,n,r=[])=>`
1119
1119
  .${e} ${n} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),qMe=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
  ${WMe}
1124
1124
  </iframe>`},"putIntoIFrame"),Cz=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",LMe);return s&&o.attr("xmlns:xlink",s),o.append("g"),e},"appendDivSvgG");function uO(e,n){return e.append("iframe").attr("id",n).attr("style","width: 100%; height: 100%;").attr("sandbox","")}Y(uO,"sandboxedIframe");var XMe=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"),JMe=Y(async function(e,n,r){var W,$,O,z,M,L;V4();const i=D9(n);n=i.code;const s=Lo();At.debug(s),n.length>((s==null?void 0:s.maxTextSize)??OMe)&&(n=RMe);const a="#"+e,o="i"+e,l="#"+o,u="d"+e,d="#"+u,h=Y(()=>{const G=er(m?l:d).node();G&&"remove"in G&&G.remove()},"removeTempElements");let f=er("body");const m=s.securityLevel===MMe,x=s.securityLevel===PMe,v=s.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),m){const B=uO(er(r),o);f=er(B.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=er(r);Cz(f,e,u,`font-family: ${v}`,$Me)}else{if(XMe(document,e,u,o),m){const B=uO(er("body"),o);f=er(B.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=er("body");Cz(f,e,u)}let _,w;try{_=await cO.fromText(n,{title:i.title})}catch(B){if(s.suppressErrorRendering)throw h(),B;_=await cO.fromText("error"),w=B}const S=f.select(d).node(),C=_.type,j=S.firstChild,T=j.firstChild,E=($=(W=_.renderer).getClasses)==null?void 0:$.call(W,n,_),N=GMe(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(B){throw s.suppressErrorRendering?h():ORe.draw(n,e,"11.13.0"),B}const D=f.select(`${d} svg`),U=(z=(O=_.db).getAccTitle)==null?void 0:z.call(O),H=(L=(M=_.db).getAccDescription)==null?void 0:L.call(M);Qre(C,D,U,H),f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",DMe);let I=f.select(d).node().innerHTML;if(At.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),I=KMe(I,m,Ym(s.arrowMarkerAbsolute)),m){const B=f.select(d+" svg").node();I=YMe(I,B)}else x||(I=Vx.sanitize(I,{ADD_TAGS:UMe,ADD_ATTR:VMe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(jMe(),w)throw w;return h(),{diagramType:C,svg:I,bindFunctions:_.db.bindFunctions}},"render");function Jre(e={}){var i;const n=ya({},e);n!=null&&n.fontFamily&&!((i=n.themeVariables)!=null&&i.fontFamily)&&(n.themeVariables||(n.themeVariables={}),n.themeVariables.fontFamily=n.fontFamily),fCe(n),n!=null&&n.theme&&n.theme in Hf?n.themeVariables=Hf[n.theme].getThemeVariables(n.themeVariables):n&&(n.themeVariables=Hf.default.getThemeVariables(n.themeVariables));const r=typeof n=="object"?hCe(n):qJ();MM(r.logLevel),V4()}Y(Jre,"initialize");var Zre=Y((e,n={})=>{const{code:r}=$9(e);return cO.fromText(r,n)},"getDiagramFromText");function Qre(e,n,r,i){qre(n,e),Gre(n,r,i,n.attr("id"))}Y(Qre,"addA11yInfo");var C0=Object.freeze({render:JMe,parse:Xre,getDiagramFromText:Zre,initialize:Jre,getConfig:Lo,setConfig:GJ,getSiteConfig:qJ,updateSiteConfig:pCe,reset:Y(()=>{y5()},"reset"),globalReset:Y(()=>{y5(qx)},"globalReset"),defaultConfig:qx});MM(Lo().logLevel);y5(Lo());var ZMe=Y((e,n,r)=>{At.warn(e),y9(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"),eie=Y(async function(e={querySelector:".mermaid"}){try{await QMe(e)}catch(n){if(y9(n)&&At.error(n.str),Mc.parseError&&Mc.parseError(n),!e.suppressErrors)throw At.error("Use the suppressErrors option to suppress these errors"),n}},"run"),QMe=Y(async function({postRenderCallback:e,querySelector:n,nodes:r}={querySelector:".mermaid"}){const i=C0.getConfig();At.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");At.debug(`Found ${s.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(At.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),C0.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new dd.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const l=[];for(const u of Array.from(s)){if(At.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const d=`mermaid-${a.next()}`;o=u.innerHTML,o=vte(dd.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=dd.detectInit(o);h&&At.debug("Detected early reinit: ",h);try{const{svg:f,bindFunctions:m}=await iie(d,o,u);u.innerHTML=f,e&&await e(d),m&&m(u)}catch(f){ZMe(f,l,Mc.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),tie=Y(function(e){C0.initialize(e)},"initialize"),e9e=Y(async function(e,n,r){At.warn("mermaid.init is deprecated. Please use run instead."),e&&tie(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof n=="string"?i.querySelector=n:n&&(n instanceof HTMLElement?i.nodes=[n]:i.nodes=n),await eie(i)},"init"),t9e=Y(async(e,{lazyLoad:n=!0}={})=>{V4(),fA(...e),n===!1&&await kMe()},"registerExternalDiagrams"),nie=Y(function(){if(Mc.startOnLoad){const{startOnLoad:e}=C0.getConfig();e&&Mc.run().catch(n=>At.error("Mermaid failed to initialize",n))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",nie,!1);var n9e=Y(function(e){Mc.parseError=e},"setParseErrorHandler"),Y5=[],jT=!1,rie=Y(async()=>{if(!jT){for(jT=!0;Y5.length>0;){const e=Y5.shift();if(e)try{await e()}catch(n){At.error("Error executing queue",n)}}jT=!1}},"executeQueue"),r9e=Y(async(e,n)=>new Promise((r,i)=>{const s=Y(()=>new Promise((a,o)=>{C0.parse(e,n).then(l=>{a(l),r(l)},l=>{var u;At.error("Error parsing",l),(u=Mc.parseError)==null||u.call(Mc,l),o(l),i(l)})}),"performCall");Y5.push(s),rie().catch(i)}),"parse"),iie=Y((e,n,r)=>new Promise((i,s)=>{const a=Y(()=>new Promise((o,l)=>{C0.render(e,n,r).then(u=>{o(u),i(u)},u=>{var d;At.error("Error parsing",u),(d=Mc.parseError)==null||d.call(Mc,u),l(u),s(u)})}),"performCall");Y5.push(a),rie().catch(s)}),"render"),i9e=Y(()=>Object.keys(v0).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Mc={startOnLoad:!0,mermaidAPI:C0,parse:r9e,render:iie,init:e9e,run:eie,registerExternalDiagrams:t9e,registerLayoutLoaders:cre,initialize:tie,parseError:void 0,contentLoaded:nie,setParseErrorHandler:n9e,detectType:PM,registerIconPacks:xAe,getRegisteredDiagramsMetadata:i9e},dO=Mc;/*! Check if previously processed *//*!
1125
1125
  * Wait for document loaded before starting the execution
1126
- */let hO=!1;const s9e=.1,a9e=20;function NT(e){return Math.min(a9e,Math.max(s9e,e))}function jz(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 Nz(e){dO.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"}:{}}),hO=!0}function fO({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 $=>{if(!o.current)return;const O=++w.current;try{if(hO||Nz(s),!await dO.parse($)||O!==w.current)return;const{svg:M}=await dO.render(`arch-${O}`,$);if(O!==w.current)return;o.current.innerHTML=M;const L=o.current.querySelector("svg"),B=l.current;if(L&&B){const G=B.clientWidth,V=B.clientHeight,F=L.width.baseVal.value||L.getBoundingClientRect().width,X=L.height.baseVal.value||L.getBoundingClientRect().height;if(F>0&&X>0&&G>0&&V>0){const ee=Math.min((G-32)/F,(V-32)/X);x(NT(ee))}else x(1)}else x(1);_({x:0,y:0}),d(null),a==null||a({ok:!0})}catch(z){if(O!==w.current)return;const M=z instanceof Error?z.message:"Failed to render diagram";d(M),a==null||a({ok:!1,error:M})}},[a,s]);y.useEffect(()=>{Nz(s),hO=!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 $=o.current.querySelector("svg");if(!$)return;const O=new XMLSerializer().serializeToString($),z=new Blob([O],{type:"image/svg+xml"}),M=URL.createObjectURL(z),L=document.createElement("a");L.href=M,L.download="architecture.svg",L.click(),URL.revokeObjectURL(M)},[]),R=y.useCallback(($,O)=>{var M;const z=(M=l.current)==null?void 0:M.getBoundingClientRect();return z?{x:$-z.left-z.width/2,y:O-z.top-z.height/2}:null},[]),D=y.useCallback(($,O)=>{x(z=>{const M=NT($);return M===z?z:(_(L=>O?jz(z,M,L,O):L),M)})},[]),U=y.useCallback($=>{const O=R($.clientX,$.clientY);if(!O)return;$.preventDefault();const z=$.deltaY<0?1.1:.9;D(m*z,O)},[R,D,m]),H=y.useCallback($=>{const O={x:$.clientX,y:$.clientY};if(S.current.set($.pointerId,O),$.currentTarget.setPointerCapture($.pointerId),S.current.size===1){C.current={pointerId:$.pointerId,x:$.clientX,y:$.clientY},j.current=null;return}if(S.current.size===2){const[z,M]=[...S.current.values()],L=Math.hypot(M.x-z.x,M.y-z.y);j.current={distance:L,scale:m,pan:v},C.current=null}},[v,m]),I=y.useCallback($=>{var z;if(!S.current.has($.pointerId))return;const O=S.current.get($.pointerId);if(S.current.set($.pointerId,{x:$.clientX,y:$.clientY}),S.current.size===1&&((z=C.current)==null?void 0:z.pointerId)===$.pointerId){const M=$.clientX-O.x,L=$.clientY-O.y;_(B=>({x:B.x+M,y:B.y+L})),C.current={pointerId:$.pointerId,x:$.clientX,y:$.clientY};return}if(S.current.size===2&&j.current){const[M,L]=[...S.current.values()],B={x:(M.x+L.x)/2,y:(M.y+L.y)/2},G=R(B.x,B.y),V=Math.hypot(L.x-M.x,L.y-M.y);if(!G||j.current.distance<=0)return;const F=NT(j.current.scale*(V/j.current.distance)),X=jz(j.current.scale,F,j.current.pan,G);x(F),_(X)}},[R]),W=y.useCallback($=>{var O;if(S.current.delete($.pointerId),((O=C.current)==null?void 0:O.pointerId)===$.pointerId&&(C.current=null),S.current.size<2&&(j.current=null),S.current.size===1){const[z,M]=[...S.current.entries()][0]??[];typeof z=="number"&&M&&(C.current={pointerId:z,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:()=>D(m-.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom out",children:c.jsx(Cve,{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:()=>D(m+.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom in",children:c.jsx(Sve,{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(sM,{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(Li,{className:"h-3 w-3 text-green-500"}):c.jsx(tl,{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(Bf,{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:U,onPointerDown:H,onPointerMove:I,onPointerUp:W,onPointerCancel:W,onPointerLeave:W,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(Lt,{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(Lt,{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 Cc=y.forwardRef(({className:e,children:n,...r},i)=>c.jsx("div",{ref:i,className:Ce("relative overflow-auto",e),...r,children:n}));Cc.displayName="ScrollArea";const o9e=y.forwardRef(({className:e,orientation:n="vertical",...r},i)=>c.jsx("div",{ref:i,"data-orientation":n,className:Ce("hidden",e),...r}));o9e.displayName="ScrollBar";const Ph=y.forwardRef(({className:e,...n},r)=>c.jsx("textarea",{className:Ce("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}));Ph.displayName="Textarea";var TT={},Qv={},Tz;function l9e(){return Tz||(Tz=1,Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.FileExtensions1ToIcon=void 0,Qv.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"}),Qv}var eb={},Ez;function c9e(){return Ez||(Ez=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.FileExtensions2ToIcon=void 0,eb.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"}),eb}var tb={},Az;function u9e(){return Az||(Az=1,Object.defineProperty(tb,"__esModule",{value:!0}),tb.FileNamesToIcon=void 0,tb.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"}),tb}var nb={},Oz;function d9e(){return Oz||(Oz=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.FolderNamesToIcon=void 0,nb.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"}),nb}var rb={},Rz;function h9e(){return Rz||(Rz=1,Object.defineProperty(rb,"__esModule",{value:!0}),rb.LanguagesToIcon=void 0,rb.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"}),rb}var Mz;function f9e(){return Mz||(Mz=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=l9e(),r=c9e(),i=u9e(),s=d9e(),a=h9e();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})(TT)),TT}var md=f9e();const sie="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@12.9.0/icons/";function pa({filename:e,className:n}){const r=md.getIconForFile(e)??md.DEFAULT_FILE;return c.jsx("img",{src:`${sie}${r}`,alt:"",className:n,loading:"lazy",decoding:"async",draggable:!1})}function q4({name:e,open:n=!1,className:r}){const i=n?md.getIconForOpenFolder(e)??md.DEFAULT_FOLDER_OPENED:md.getIconForFolder(e)??md.DEFAULT_FOLDER;return c.jsx("img",{src:`${sie}${i}`,alt:"",className:r,loading:"lazy",decoding:"async",draggable:!1})}function aie(){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 oie=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"}')),p9e=Object.freeze(Object.defineProperty({__proto__:null,default:oie},Symbol.toStringTag,{value:"Module"})),m9e=["editor theme","vscode theme","monaco theme","workbench colors"],ET=new Set,uw="dark-plus",Pz=new WeakSet,Lz=oie,g9e={"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"},y9e={base:"vs-dark",inherit:!1,rules:[...cie(Lz.tokenColors??[]),...k9e()],colors:{...uie(Lz.colors??{}),...g9e}};function x9e(){return m9e}function lie(e){var n,r;(r=(n=e==null?void 0:e.editor)==null?void 0:n.defineTheme)==null||r.call(n,uw,y9e)}function v9e(e){!e||typeof e!="object"||Pz.has(e)||(Pz.add(e),Promise.all([it(()=>import("./index-CoNBsQ9X.js"),[],import.meta.url),it(()=>import("./index-VYQxyqJS.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),lie(e);const o=e.editor;typeof document<"u"&&document.documentElement.dataset.monacoTheme===uw&&((d=o==null?void 0:o.setTheme)==null||d.call(o,uw))}).catch(n=>{console.error("Failed to initialize Shiki Monaco Dark Plus theme:",n)}))}function b9e(e){var o;const n=_9e(e.text),r=uie(n.colors??{}),i=j9e(n,r),s=((o=n.name)==null?void 0:o.trim())||e.sourceLabel.trim()||"Imported Theme",a=`jait-vscode-${M9e(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:cie(n.tokenColors??[]),colors:r},cssVariables:C9e(r),rawColors:r,hasInclude:typeof n.include=="string"&&n.include.trim().length>0}}function _9e(e){const n=R9e(O9e(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 w9e(e,n){var r;!n||!((r=e==null?void 0:e.editor)!=null&&r.defineTheme)||e.editor.defineTheme(n.monacoThemeName,n.monacoThemeData)}function S9e(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 ET)n.style.removeProperty(r);if(ET.clear(),!!e.theme)for(const[r,i]of Object.entries(e.theme.cssVariables))n.style.setProperty(r,i),ET.add(r)}function cie(e){var r;const n=[];for(const i of e){const s=i.settings??{},a=N9e(i.scope);if(a.length===0)continue;const o=Dz(s.foreground),l=Dz(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 k9e(){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 C9e(e){const n={},r=ri(e,["editor.background","sideBar.background","panel.background"]),i=ri(e,["editor.foreground","foreground"]),s=ri(e,["sideBar.background","panel.background","editorWidget.background"]),a=ri(e,["panel.background","tab.inactiveBackground","editorGroupHeader.tabsBackground"]),o=ri(e,["list.hoverBackground","tab.activeBackground","editor.lineHighlightBackground"]),l=ri(e,["button.background","focusBorder","textLink.foreground"]),u=ri(e,["widget.border","panel.border","sideBar.border","contrastBorder"]);Ni(n,"--background",r),Ni(n,"--foreground",i),Ni(n,"--card",s),Ni(n,"--card-foreground",ri(e,["sideBar.foreground","foreground"])??i),Ni(n,"--popover",ri(e,["editorWidget.background","panel.background"])??s),Ni(n,"--popover-foreground",ri(e,["editorWidget.foreground","foreground"])??i),Ni(n,"--primary",l),Ni(n,"--primary-foreground",$z(l)),Ni(n,"--secondary",ri(e,["tab.inactiveBackground","panel.background"])??a),Ni(n,"--secondary-foreground",ri(e,["tab.inactiveForeground","foreground"])??i),Ni(n,"--muted",a),Ni(n,"--muted-foreground",ri(e,["descriptionForeground","input.placeholderForeground","disabledForeground"])),Ni(n,"--accent",o),Ni(n,"--accent-foreground",ri(e,["list.activeSelectionForeground","foreground"])??i),Ni(n,"--destructive",ri(e,["inputValidation.errorBackground","errorForeground","list.errorForeground"])),Ni(n,"--destructive-foreground",$z(ri(e,["inputValidation.errorBackground","errorForeground"]))),Ni(n,"--border",u),Ni(n,"--input",ri(e,["input.background","editorWidget.background","dropdown.background"])??u),Ni(n,"--ring",ri(e,["focusBorder","button.background","textLink.foreground"])??l),Ni(n,"--scrollbar-track",ri(e,["editor.background","sideBar.background","panel.background"])??r),Ni(n,"--scrollbar-thumb",ri(e,["scrollbarSlider.background","scrollbar.shadow"])),Ni(n,"--scrollbar-thumb-hover",ri(e,["scrollbarSlider.hoverBackground","scrollbarSlider.activeBackground","scrollbarSlider.background"])),Ni(n,"--toast-bg",ri(e,["notifications.background","editorWidget.background","panel.background"])??s,!0),Ni(n,"--toast-border",ri(e,["notifications.border","widget.border","panel.border"])??u,!0),Ni(n,"--toast-success-accent",ri(e,["testing.iconPassed","terminal.ansiGreen"])),Ni(n,"--toast-info-accent",ri(e,["textLink.foreground","focusBorder"])??l),Ni(n,"--toast-warning-accent",ri(e,["editorWarning.foreground","terminal.ansiYellow"])),Ni(n,"--toast-error-accent",ri(e,["editorError.foreground","terminal.ansiRed"]));const d=ri(e,["editorGroupHeader.tabsBackground","tab.inactiveBackground","sideBar.background"]);d&&(n["--tab-bg"]=d);const h=ri(e,["activityBarBadge.background","button.background","focusBorder"]),f=ri(e,["textLink.foreground","terminal.ansiBlue"]),m=ri(e,["editorWarning.foreground","terminal.ansiYellow"]),x=ri(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 Ni(e,n,r,i=!1){if(!r)return;const s=T9e(r,i);s&&(e[n]=s)}function $z(e){const n=I9(e);return n?(.2126*n.r+.7152*n.g+.0722*n.b)/255>.55?"0 0% 7%":"0 0% 100%":null}function j9e(e,n){if(e.type==="light"||e.type==="hc-light")return"light";if(e.type==="dark"||e.type==="hc-dark")return"dark";const r=I9(n["editor.background"]??n["sideBar.background"]??"");return r&&(.2126*r.r+.7152*r.g+.0722*r.b)/255>.55?"light":"dark"}function uie(e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"&&i.trim()&&(n[r]=i.trim());return n}function N9e(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 Dz(e){if(!e)return;const n=e.trim();if(n.startsWith("#"))return die(n).slice(1)}function ri(e,n){for(const r of n){const i=e[r];if(typeof i=="string"&&i.trim())return i.trim()}return null}function T9e(e,n=!1){const r=I9(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 I9(e){if(!e)return null;const n=e.trim();if(!n)return null;if(n.startsWith("#"))return E9e(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=AT(i[0]),a=AT(i[1]),o=AT(i[2]),l=i[3]==null?1:A9e(i[3]);return s==null||a==null||o==null||l==null?null:{r:s,g:a,b:o,a:l}}function E9e(e){const n=die(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 AT(e){if(e.endsWith("%")){const r=Number.parseFloat(e.slice(0,-1));return Number.isFinite(r)?Iz(Math.round(r/100*255)):null}const n=Number.parseFloat(e);return Number.isFinite(n)?Iz(Math.round(n)):null}function A9e(e){const n=Number.parseFloat(e);return Number.isFinite(n)?Math.max(0,Math.min(1,n)):null}function Iz(e){return Math.max(0,Math.min(255,e))}function die(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 O9e(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 hO=!1;const s9e=.1,a9e=20;function NT(e){return Math.min(a9e,Math.max(s9e,e))}function jz(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 Nz(e){dO.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"}:{}}),hO=!0}function fO({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 $=>{if(!o.current)return;const O=++w.current;try{if(hO||Nz(s),!await dO.parse($)||O!==w.current)return;const{svg:M}=await dO.render(`arch-${O}`,$);if(O!==w.current)return;o.current.innerHTML=M;const L=o.current.querySelector("svg"),B=l.current;if(L&&B){const G=B.clientWidth,V=B.clientHeight,F=L.width.baseVal.value||L.getBoundingClientRect().width,X=L.height.baseVal.value||L.getBoundingClientRect().height;if(F>0&&X>0&&G>0&&V>0){const ee=Math.min((G-32)/F,(V-32)/X);x(NT(ee))}else x(1)}else x(1);_({x:0,y:0}),d(null),a==null||a({ok:!0})}catch(z){if(O!==w.current)return;const M=z instanceof Error?z.message:"Failed to render diagram";d(M),a==null||a({ok:!1,error:M})}},[a,s]);y.useEffect(()=>{Nz(s),hO=!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 $=o.current.querySelector("svg");if(!$)return;const O=new XMLSerializer().serializeToString($),z=new Blob([O],{type:"image/svg+xml"}),M=URL.createObjectURL(z),L=document.createElement("a");L.href=M,L.download="architecture.svg",L.click(),URL.revokeObjectURL(M)},[]),R=y.useCallback(($,O)=>{var M;const z=(M=l.current)==null?void 0:M.getBoundingClientRect();return z?{x:$-z.left-z.width/2,y:O-z.top-z.height/2}:null},[]),D=y.useCallback(($,O)=>{x(z=>{const M=NT($);return M===z?z:(_(L=>O?jz(z,M,L,O):L),M)})},[]),U=y.useCallback($=>{const O=R($.clientX,$.clientY);if(!O)return;$.preventDefault();const z=$.deltaY<0?1.1:.9;D(m*z,O)},[R,D,m]),H=y.useCallback($=>{const O={x:$.clientX,y:$.clientY};if(S.current.set($.pointerId,O),$.currentTarget.setPointerCapture($.pointerId),S.current.size===1){C.current={pointerId:$.pointerId,x:$.clientX,y:$.clientY},j.current=null;return}if(S.current.size===2){const[z,M]=[...S.current.values()],L=Math.hypot(M.x-z.x,M.y-z.y);j.current={distance:L,scale:m,pan:v},C.current=null}},[v,m]),I=y.useCallback($=>{var z;if(!S.current.has($.pointerId))return;const O=S.current.get($.pointerId);if(S.current.set($.pointerId,{x:$.clientX,y:$.clientY}),S.current.size===1&&((z=C.current)==null?void 0:z.pointerId)===$.pointerId){const M=$.clientX-O.x,L=$.clientY-O.y;_(B=>({x:B.x+M,y:B.y+L})),C.current={pointerId:$.pointerId,x:$.clientX,y:$.clientY};return}if(S.current.size===2&&j.current){const[M,L]=[...S.current.values()],B={x:(M.x+L.x)/2,y:(M.y+L.y)/2},G=R(B.x,B.y),V=Math.hypot(L.x-M.x,L.y-M.y);if(!G||j.current.distance<=0)return;const F=NT(j.current.scale*(V/j.current.distance)),X=jz(j.current.scale,F,j.current.pan,G);x(F),_(X)}},[R]),W=y.useCallback($=>{var O;if(S.current.delete($.pointerId),((O=C.current)==null?void 0:O.pointerId)===$.pointerId&&(C.current=null),S.current.size<2&&(j.current=null),S.current.size===1){const[z,M]=[...S.current.entries()][0]??[];typeof z=="number"&&M&&(C.current={pointerId:z,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:()=>D(m-.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom out",children:c.jsx(Cve,{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:()=>D(m+.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom in",children:c.jsx(Sve,{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(sM,{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(Li,{className:"h-3 w-3 text-green-500"}):c.jsx(tl,{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(Bf,{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:U,onPointerDown:H,onPointerMove:I,onPointerUp:W,onPointerCancel:W,onPointerLeave:W,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(Lt,{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(Lt,{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 Cc=y.forwardRef(({className:e,children:n,...r},i)=>c.jsx("div",{ref:i,className:Ce("relative overflow-auto",e),...r,children:n}));Cc.displayName="ScrollArea";const o9e=y.forwardRef(({className:e,orientation:n="vertical",...r},i)=>c.jsx("div",{ref:i,"data-orientation":n,className:Ce("hidden",e),...r}));o9e.displayName="ScrollBar";const Ph=y.forwardRef(({className:e,...n},r)=>c.jsx("textarea",{className:Ce("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}));Ph.displayName="Textarea";var TT={},Qv={},Tz;function l9e(){return Tz||(Tz=1,Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.FileExtensions1ToIcon=void 0,Qv.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"}),Qv}var eb={},Ez;function c9e(){return Ez||(Ez=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.FileExtensions2ToIcon=void 0,eb.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"}),eb}var tb={},Az;function u9e(){return Az||(Az=1,Object.defineProperty(tb,"__esModule",{value:!0}),tb.FileNamesToIcon=void 0,tb.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"}),tb}var nb={},Oz;function d9e(){return Oz||(Oz=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.FolderNamesToIcon=void 0,nb.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"}),nb}var rb={},Rz;function h9e(){return Rz||(Rz=1,Object.defineProperty(rb,"__esModule",{value:!0}),rb.LanguagesToIcon=void 0,rb.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"}),rb}var Mz;function f9e(){return Mz||(Mz=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=l9e(),r=c9e(),i=u9e(),s=d9e(),a=h9e();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})(TT)),TT}var md=f9e();const sie="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@12.9.0/icons/";function pa({filename:e,className:n}){const r=md.getIconForFile(e)??md.DEFAULT_FILE;return c.jsx("img",{src:`${sie}${r}`,alt:"",className:n,loading:"lazy",decoding:"async",draggable:!1})}function q4({name:e,open:n=!1,className:r}){const i=n?md.getIconForOpenFolder(e)??md.DEFAULT_FOLDER_OPENED:md.getIconForFolder(e)??md.DEFAULT_FOLDER;return c.jsx("img",{src:`${sie}${i}`,alt:"",className:r,loading:"lazy",decoding:"async",draggable:!1})}function aie(){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 oie=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"}')),p9e=Object.freeze(Object.defineProperty({__proto__:null,default:oie},Symbol.toStringTag,{value:"Module"})),m9e=["editor theme","vscode theme","monaco theme","workbench colors"],ET=new Set,uw="dark-plus",Pz=new WeakSet,Lz=oie,g9e={"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"},y9e={base:"vs-dark",inherit:!1,rules:[...cie(Lz.tokenColors??[]),...k9e()],colors:{...uie(Lz.colors??{}),...g9e}};function x9e(){return m9e}function lie(e){var n,r;(r=(n=e==null?void 0:e.editor)==null?void 0:n.defineTheme)==null||r.call(n,uw,y9e)}function v9e(e){!e||typeof e!="object"||Pz.has(e)||(Pz.add(e),Promise.all([it(()=>import("./index-CXxpuBVO.js"),[],import.meta.url),it(()=>import("./index-Deo_Bmwn.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),lie(e);const o=e.editor;typeof document<"u"&&document.documentElement.dataset.monacoTheme===uw&&((d=o==null?void 0:o.setTheme)==null||d.call(o,uw))}).catch(n=>{console.error("Failed to initialize Shiki Monaco Dark Plus theme:",n)}))}function b9e(e){var o;const n=_9e(e.text),r=uie(n.colors??{}),i=j9e(n,r),s=((o=n.name)==null?void 0:o.trim())||e.sourceLabel.trim()||"Imported Theme",a=`jait-vscode-${M9e(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:cie(n.tokenColors??[]),colors:r},cssVariables:C9e(r),rawColors:r,hasInclude:typeof n.include=="string"&&n.include.trim().length>0}}function _9e(e){const n=R9e(O9e(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 w9e(e,n){var r;!n||!((r=e==null?void 0:e.editor)!=null&&r.defineTheme)||e.editor.defineTheme(n.monacoThemeName,n.monacoThemeData)}function S9e(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 ET)n.style.removeProperty(r);if(ET.clear(),!!e.theme)for(const[r,i]of Object.entries(e.theme.cssVariables))n.style.setProperty(r,i),ET.add(r)}function cie(e){var r;const n=[];for(const i of e){const s=i.settings??{},a=N9e(i.scope);if(a.length===0)continue;const o=Dz(s.foreground),l=Dz(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 k9e(){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 C9e(e){const n={},r=ri(e,["editor.background","sideBar.background","panel.background"]),i=ri(e,["editor.foreground","foreground"]),s=ri(e,["sideBar.background","panel.background","editorWidget.background"]),a=ri(e,["panel.background","tab.inactiveBackground","editorGroupHeader.tabsBackground"]),o=ri(e,["list.hoverBackground","tab.activeBackground","editor.lineHighlightBackground"]),l=ri(e,["button.background","focusBorder","textLink.foreground"]),u=ri(e,["widget.border","panel.border","sideBar.border","contrastBorder"]);Ni(n,"--background",r),Ni(n,"--foreground",i),Ni(n,"--card",s),Ni(n,"--card-foreground",ri(e,["sideBar.foreground","foreground"])??i),Ni(n,"--popover",ri(e,["editorWidget.background","panel.background"])??s),Ni(n,"--popover-foreground",ri(e,["editorWidget.foreground","foreground"])??i),Ni(n,"--primary",l),Ni(n,"--primary-foreground",$z(l)),Ni(n,"--secondary",ri(e,["tab.inactiveBackground","panel.background"])??a),Ni(n,"--secondary-foreground",ri(e,["tab.inactiveForeground","foreground"])??i),Ni(n,"--muted",a),Ni(n,"--muted-foreground",ri(e,["descriptionForeground","input.placeholderForeground","disabledForeground"])),Ni(n,"--accent",o),Ni(n,"--accent-foreground",ri(e,["list.activeSelectionForeground","foreground"])??i),Ni(n,"--destructive",ri(e,["inputValidation.errorBackground","errorForeground","list.errorForeground"])),Ni(n,"--destructive-foreground",$z(ri(e,["inputValidation.errorBackground","errorForeground"]))),Ni(n,"--border",u),Ni(n,"--input",ri(e,["input.background","editorWidget.background","dropdown.background"])??u),Ni(n,"--ring",ri(e,["focusBorder","button.background","textLink.foreground"])??l),Ni(n,"--scrollbar-track",ri(e,["editor.background","sideBar.background","panel.background"])??r),Ni(n,"--scrollbar-thumb",ri(e,["scrollbarSlider.background","scrollbar.shadow"])),Ni(n,"--scrollbar-thumb-hover",ri(e,["scrollbarSlider.hoverBackground","scrollbarSlider.activeBackground","scrollbarSlider.background"])),Ni(n,"--toast-bg",ri(e,["notifications.background","editorWidget.background","panel.background"])??s,!0),Ni(n,"--toast-border",ri(e,["notifications.border","widget.border","panel.border"])??u,!0),Ni(n,"--toast-success-accent",ri(e,["testing.iconPassed","terminal.ansiGreen"])),Ni(n,"--toast-info-accent",ri(e,["textLink.foreground","focusBorder"])??l),Ni(n,"--toast-warning-accent",ri(e,["editorWarning.foreground","terminal.ansiYellow"])),Ni(n,"--toast-error-accent",ri(e,["editorError.foreground","terminal.ansiRed"]));const d=ri(e,["editorGroupHeader.tabsBackground","tab.inactiveBackground","sideBar.background"]);d&&(n["--tab-bg"]=d);const h=ri(e,["activityBarBadge.background","button.background","focusBorder"]),f=ri(e,["textLink.foreground","terminal.ansiBlue"]),m=ri(e,["editorWarning.foreground","terminal.ansiYellow"]),x=ri(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 Ni(e,n,r,i=!1){if(!r)return;const s=T9e(r,i);s&&(e[n]=s)}function $z(e){const n=I9(e);return n?(.2126*n.r+.7152*n.g+.0722*n.b)/255>.55?"0 0% 7%":"0 0% 100%":null}function j9e(e,n){if(e.type==="light"||e.type==="hc-light")return"light";if(e.type==="dark"||e.type==="hc-dark")return"dark";const r=I9(n["editor.background"]??n["sideBar.background"]??"");return r&&(.2126*r.r+.7152*r.g+.0722*r.b)/255>.55?"light":"dark"}function uie(e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"&&i.trim()&&(n[r]=i.trim());return n}function N9e(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 Dz(e){if(!e)return;const n=e.trim();if(n.startsWith("#"))return die(n).slice(1)}function ri(e,n){for(const r of n){const i=e[r];if(typeof i=="string"&&i.trim())return i.trim()}return null}function T9e(e,n=!1){const r=I9(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 I9(e){if(!e)return null;const n=e.trim();if(!n)return null;if(n.startsWith("#"))return E9e(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=AT(i[0]),a=AT(i[1]),o=AT(i[2]),l=i[3]==null?1:A9e(i[3]);return s==null||a==null||o==null||l==null?null:{r:s,g:a,b:o,a:l}}function E9e(e){const n=die(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 AT(e){if(e.endsWith("%")){const r=Number.parseFloat(e.slice(0,-1));return Number.isFinite(r)?Iz(Math.round(r/100*255)):null}const n=Number.parseFloat(e);return Number.isFinite(n)?Iz(Math.round(n)):null}function A9e(e){const n=Number.parseFloat(e);return Number.isFinite(n)?Math.max(0,Math.min(1,n)):null}function Iz(e){return Math.max(0,Math.min(255,e))}function die(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 O9e(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 R9e(e){return e.replace(/,\s*([}\]])/g,"$1")}function M9e(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,40)||"theme"}function Bz(){if(typeof document>"u")return"vs";const e=document.documentElement;return e.dataset.monacoTheme??(e.classList.contains("dark")?uw:"vs")}function _S(){const[e,n]=y.useState(Bz);return y.useEffect(()=>{if(typeof document>"u")return;const r=document.documentElement,i=()=>n(Bz());i();const s=new MutationObserver(i);return s.observe(r,{attributes:!0,attributeFilter:["class","data-monaco-theme"]}),()=>s.disconnect()},[]),e}const B9="jait:vscode-theme-store",A3=new Set;let wd=fie(),zz=!1;function hie(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}function fie(){const e=hie();if(!e)return{importedThemes:[],activeThemeId:null};let n=null;try{n=e.getItem(B9)}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 z9(e){wd=e;const n=hie();if(n)try{n.setItem(B9,JSON.stringify(e))}catch{}for(const r of A3)r()}function P9e(e){return!zz&&typeof window<"u"&&(zz=!0,window.addEventListener("storage",n=>{if(n.key===B9){wd=fie();for(const r of A3)r()}})),A3.add(e),()=>A3.delete(e)}function Fz(){return wd}function pie(){const e=y.useSyncExternalStore(P9e,Fz,Fz);return{...e,activeTheme:e.importedThemes.find(n=>n.id===e.activeThemeId)??null}}function mie(){return wd.importedThemes.find(e=>e.id===wd.activeThemeId)??null}function L9e(e,n){const r=`${Date.now().toString(36)}-${I9e(e+n)}`,i=b9e({id:r,sourceLabel:e,text:n});return z9({importedThemes:[...wd.importedThemes.filter(s=>s.id!==r),i],activeThemeId:r}),i}function X5(e){z9({...wd,activeThemeId:e&&wd.importedThemes.some(n=>n.id===e)?e:null})}function $9e(e){z9({importedThemes:wd.importedThemes.filter(n=>n.id!==e),activeThemeId:wd.activeThemeId===e?null:wd.activeThemeId})}function D9e(e){lie(e);const n=mie();n?w9e(e,n):v9e(e)}function Xl(e,n){var r,i;D9e(e),n&&((i=(r=e==null?void 0:e.editor)==null?void 0:r.setTheme)==null||i.call(r,n))}function I9e(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 Hz(e){return e.split(`
1128
1128
  `)}function B9e(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 gie(e,n){var u,d;const r=Hz(e),i=Hz(n),s=B9e(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 yie(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 Wz({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 L=()=>_(window.innerWidth<768);return L(),window.addEventListener("resize",L),()=>window.removeEventListener("resize",L)},[]),y.useEffect(()=>{f(L=>{const B=gie(n,r);return L.length===B.length?B.map((G,V)=>{var F;return{...G,state:((F=L[V])==null?void 0:F.state)??"undecided"}}):B}),x(0)},[n,r]);const C=y.useCallback(()=>{var X,q;const L=(q=(X=o.current)==null?void 0:X.getModifiedEditor)==null?void 0:q.call(X);if(!L||h.length===0){d([]);return}const B=L.getScrollTop(),G=L.getLayoutInfo(),V=L.getScrollHeight()>0?L.getScrollHeight():G.height,F=h.flatMap(ee=>{if(ee.state!=="undecided")return[];const Z=J5(ee),te=L.getTopForLineNumber(Z)-B+2;return!Number.isFinite(te)||te<-28||te>V?[]:[{hunkIndex:ee.index,top:te}]});d(F)},[h]),j=y.useRef([]),T=y.useCallback((L,B)=>{o.current=L,l.current=B,Xl(B,w);const G=L.getModifiedEditor();j.current=[G.onDidScrollChange(()=>C()),G.onDidLayoutChange(()=>C()),G.onDidContentSizeChange(()=>C()),L.onDidUpdateDiff(()=>C())],window.setTimeout(C,0)},[w,C]);y.useEffect(()=>{Xl(l.current,w)},[w]),y.useEffect(()=>()=>{var B,G;for(const V of j.current)V.dispose();j.current=[];const L=o.current;if(L)try{const V=L.getModel();L.dispose(),(B=V==null?void 0:V.original)==null||B.dispose(),(G=V==null?void 0:V.modified)==null||G.dispose()}catch{}o.current=null,l.current=null},[]),y.useEffect(()=>{if(!o.current||h.length===0)return;const L=h[m];if(!L)return;const B=J5(L);try{o.current.getModifiedEditor().revealLineInCenter(B)}catch{}},[m,h]),y.useEffect(()=>{if(!o.current||!l.current||h.length===0)return;const L=l.current,B=o.current.getModifiedEditor(),G=[];for(const F of h){if(F.state==="undecided")continue;const X=F.modifiedEndLineNumber>0?F.modifiedStartLineNumber:F.originalStartLineNumber,q=F.modifiedEndLineNumber>0?F.modifiedEndLineNumber:F.originalStartLineNumber;G.push({range:new L.Range(X,1,q,1),options:{isWholeLine:!0,className:F.state==="accepted"?"diff-hunk-accepted":"diff-hunk-rejected",overviewRuler:{color:F.state==="accepted"?"#22c55e44":"#ef444444",position:L.editor.OverviewRulerLane.Full}}})}const V=B.deltaDecorations([],G);return()=>{try{B.deltaDecorations(V,[])}catch{}}},[h]),y.useEffect(()=>{C()},[C,m,h]),y.useEffect(()=>{if(!o.current||!l.current||h.length===0)return;const L=l.current,B=o.current.getModifiedEditor(),G=h[m];if(!G)return;const V=G.modifiedEndLineNumber>0?G.modifiedStartLineNumber:G.originalStartLineNumber,F=G.modifiedEndLineNumber>0?G.modifiedEndLineNumber:G.originalStartLineNumber,X=B.deltaDecorations([],[{range:new L.Range(V,1,F,1),options:{isWholeLine:!0,className:"diff-hunk-active"}}]);return()=>{try{B.deltaDecorations(X,[])}catch{}}},[m,h]);const E=y.useCallback((L,B)=>{f(G=>{const V=G.map((X,q)=>q===L?{...X,state:B}:X),F=V.findIndex((X,q)=>q>L&&X.state==="undecided");return F>=0&&x(F),V})},[]),N=y.useCallback(()=>E(m,"accepted"),[m,E]),R=y.useCallback(()=>E(m,"rejected"),[m,E]),D=y.useCallback(()=>{f(L=>L.map(B=>({...B,state:"accepted"})))},[]),U=y.useCallback(()=>{f(L=>L.map(B=>({...B,state:"rejected"})))},[]),H=y.useCallback(()=>{x(L=>Math.min(L+1,h.length-1))},[h.length]),I=y.useCallback(()=>{x(L=>Math.max(L-1,0))},[]),W=y.useCallback(()=>{const L=h.findIndex((G,V)=>V>m&&G.state==="undecided");if(L>=0){x(L);return}const B=h.findIndex(G=>G.state==="undecided");B>=0&&x(B)},[h,m]),$=y.useMemo(()=>h.filter(L=>L.state==="undecided").length,[h]),O=h.length>0&&$===0,z=h[m],M=y.useCallback(()=>{const L=n.split(`
@@ -1474,7 +1474,7 @@ WARNING: This link could potentially be dangerous`)){let r=window.open();if(r){t
1474
1474
  */var Sxt=class{constructor(e,n,r,i={}){this._terminal=e,this._regex=n,this._handler=r,this._options=i}provideLinks(e,n){let r=Cxt.computeLink(e,this._regex,this._terminal,this._handler);n(this._addCallbacks(r))}_addCallbacks(e){return e.map(n=>(n.leave=this._options.leave,n.hover=(r,i)=>{if(this._options.hover){let{range:s}=n;this._options.hover(r,i,s)}},n))}};function kxt(e){try{let n=new URL(e),r=n.password&&n.username?`${n.protocol}//${n.username}:${n.password}@${n.host}`:n.username?`${n.protocol}//${n.username}@${n.host}`:`${n.protocol}//${n.host}`;return e.toLocaleLowerCase().startsWith(r.toLocaleLowerCase())}catch{return!1}}var Cxt=class K3{static computeLink(n,r,i,s){let a=new RegExp(r.source,(r.flags||"")+"g"),[o,l]=K3._getWindowedLineStrings(n-1,i),u=o.join(""),d,h=[];for(;d=a.exec(u);){let f=d[0];if(!kxt(f))continue;let[m,x]=K3._mapStrIdx(i,l,0,d.index),[v,_]=K3._mapStrIdx(i,m,x,f.length);if(m===-1||x===-1||v===-1||_===-1)continue;let w={start:{x:x+1,y:m+1},end:{x:_,y:v+1}};h.push({range:w,text:f,activate:s})}return h}static _getWindowedLineStrings(n,r){let i,s=n,a=n,o=0,l="",u=[];if(i=r.buffer.active.getLine(n)){let d=i.translateToString(!0);if(i.isWrapped&&d[0]!==" "){for(o=0;(i=r.buffer.active.getLine(--s))&&o<2048&&(l=i.translateToString(!0),o+=l.length,u.push(l),!(!i.isWrapped||l.indexOf(" ")!==-1)););u.reverse()}for(u.push(d),o=0;(i=r.buffer.active.getLine(++a))&&i.isWrapped&&o<2048&&(l=i.translateToString(!0),o+=l.length,u.push(l),l.indexOf(" ")===-1););}return[u,s]}static _mapStrIdx(n,r,i,s){let a=n.buffer.active,o=a.getNullCell(),l=i;for(;s;){let u=a.getLine(r);if(!u)return[-1,-1];for(let d=l;d<u.length;++d){u.getCell(d,o);let h=o.getChars();if(o.getWidth()&&(s-=h.length||1,d===u.length-1&&h==="")){let f=a.getLine(r+1);f&&f.isWrapped&&(f.getCell(0,o),o.getWidth()===2&&(s+=1))}if(s<0)return[r,d]}r++,l=0}return[r,l]}},jxt=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function Nxt(e,n){let r=window.open();if(r){try{r.opener=null}catch{}r.location.href=n}else console.warn("Opening link blocked as opener could not be cleared")}var Txt=class{constructor(e=Nxt,n={}){this._handler=e,this._options=n}activate(e){this._terminal=e;let n=this._options,r=n.urlRegex||jxt;this._linkProvider=this._terminal.registerLinkProvider(new Sxt(this._terminal,r,this._handler,n))}dispose(){var e;(e=this._linkProvider)==null||e.dispose()}};function Ext(e,n,r){if(!r||r.type!=="terminal.output"||r.terminalId!==n)return!1;if(!r.streamId||typeof r.seq!="number")return!0;const i=e.get(r.streamId)??-1;return r.seq<=i?!1:(e.set(r.streamId,r.seq),!0)}const I_=jr(),Axt=V0(),Oxt=140,Rxt=72,Fg=8,Mxt=250;function B_(e){return e?{Authorization:`Bearer ${e}`}:{}}function CG(e){var n;return{...e,projectRoot:((n=e.metadata)==null?void 0:n.cwd)??e.projectRoot??null}}function Mb(e,n,r){const i=e.getPropertyValue(n).trim();return i?`hsl(${i})`:r}function jG(){const e=getComputedStyle(document.documentElement);return{background:Mb(e,"--background","#0a0a0a"),foreground:Mb(e,"--foreground","#e4e4e7"),cursor:Mb(e,"--foreground","#e4e4e7"),cursorAccent:Mb(e,"--background","#0a0a0a"),selectionBackground:Mb(e,"--primary","#2563eb")}}function Pxt(e){var n;return typeof((n=e.metadata)==null?void 0:n.nodeId)=="string"&&e.metadata.nodeId?e.metadata.nodeId:"gateway"}function qhe(e,n,r){if(!e.projectRoot)return!1;const i=e.projectRoot.replace(/\\/g,"/").toLowerCase(),s=n.replace(/\\/g,"/").toLowerCase(),a=r&&r!=="gateway"?r:"gateway";return i===s&&Pxt(e)===a}async function NG(e,n){var i;const r=typeof window<"u"?(i=window.jaitDesktop)==null?void 0:i.readClipboardText:void 0;if(!r&&!(e!=null&&e.readText))return!1;try{const s=r?await r():await e.readText();return s?(n(s),!0):!1}catch{if(!(e!=null&&e.readText))return!1;try{const s=await e.readText();return s?(n(s),!0):!1}catch{return!1}}}function Lxt(e,n,r,i,s=Oxt,a=Rxt){const o=Math.max(Fg,r-s-Fg),l=Math.min(Math.max(e,Fg),o),d=n+a+Fg<=i?n:n-a,h=Math.max(Fg,i-a-Fg),f=Math.min(Math.max(d,Fg),h);return{left:l,top:f}}function $xt(e,n){var i,s;const r=((i=e.clipboardData)==null?void 0:i.getData("text/plain"))||((s=e.clipboardData)==null?void 0:s.getData("text"));return r?(e.preventDefault(),n(r),!0):!1}function Dxt(e){return e.type!=="keydown"||e.altKey||e.shiftKey?!1:(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()==="v"}function Ixt(e,n,r){return e===""&&r-n>=0&&r-n<=Mxt}function Bxt(e){const[n,r]=y.useState([]),[i,s]=y.useState(null),a=y.useCallback(async()=>{try{const f=(await(await fetch(`${I_}/api/terminals`,{headers:B_(e)})).json()).terminals.map(CG);return r(f),f}catch{return[]}},[e]),o=y.useRef(!1),l=y.useCallback(async(d,h,f,m)=>{if(o.current){const x=n.find(v=>v.id);if(x)return x;throw new Error("A terminal is already being created")}o.current=!0;try{const x=new AbortController,v=setTimeout(()=>x.abort(),2e4);let _;try{_=await fetch(`${I_}/api/terminals`,{method:"POST",headers:{"Content-Type":"application/json",...B_(e)},body:JSON.stringify({sessionId:d,projectRoot:h,...f?{shell:f}:{},...m&&m!=="gateway"?{nodeId:m}:{}}),signal:x.signal})}catch(C){throw x.signal.aborted?new Error("The remote node did not respond in time — it may be running an older desktop app. Update it and try again."):new Error(C instanceof Error?C.message:"Failed to create terminal")}finally{clearTimeout(v)}if(!_.ok){const C=await _.json().catch(()=>null),j=(C==null?void 0:C.details)??(C==null?void 0:C.error)??`HTTP ${_.status}`;throw new Error(j)}const w=await _.json();if(!w||typeof w.id!="string"||!w.id)throw new Error("Gateway returned an invalid terminal");const S=CG(w);return r(C=>[...C,S]),s(S.id),S}finally{o.current=!1}},[e,n]),u=y.useCallback(async d=>{await fetch(`${I_}/api/terminals/${d}`,{method:"DELETE",headers:B_(e)}),r(h=>h.filter(f=>f.id!==d)),s(h=>h===d?null:h)},[e]);return y.useEffect(()=>{a()},[a]),{terminals:n,activeTerminalId:i,setActiveTerminalId:s,createTerminal:l,killTerminal:u,refresh:a}}function zxt(e){const[n,r]=y.useState([]),i=y.useRef(!1);return y.useEffect(()=>{i.current||(i.current=!0,(async()=>{try{const a=await(await fetch(`${I_}/api/terminals/shells`,{headers:B_(e)})).json();r(a.shells??[])}catch{}})())},[e]),n}const Ghe=y.forwardRef(function({terminalId:n,className:r,token:i,projectRoot:s,onReferenceSelection:a},o){const l=y.useRef(null),u=y.useRef(null),d=y.useRef(null),h=y.useRef(null),f=y.useRef(null),m=y.useRef(""),x=aie(),[v,_]=y.useState(null);y.useImperativeHandle(o,()=>({focus(){var C;(C=u.current)==null||C.focus()}}),[]),y.useEffect(()=>{if(!l.current)return;const C=new vxt({cursorBlink:!0,fontSize:13,fontFamily:"'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace",theme:jG(),allowProposedApi:!0}),j=new wxt,T=new Txt;C.loadAddon(j),C.loadAddon(T),C.open(l.current);const E=[],N=()=>{if(!(!O||O.readyState!==WebSocket.OPEN))for(;E.length>0;){const se=E.shift();se!=null&&O.send(JSON.stringify({type:"terminal.input",terminalId:n,data:se}))}},R=se=>{if(O&&O.readyState===WebSocket.OPEN){O.send(JSON.stringify({type:"terminal.input",terminalId:n,data:se}));return}E.push(se)};let D=0,U=0,H=null;const I=()=>{H&&clearTimeout(H),H=setTimeout(()=>{H=null,!(U>=D)&&NG(navigator.clipboard,R)},30)};C.attachCustomKeyEventHandler(se=>(Dxt(se)&&(D=Date.now(),I()),!0));const W=()=>{const se=C.getSelection().trim();if(!se){f.current=null;return}const xe=`${n}:${se}`;if(f.current===xe)return;f.current=xe;const _e=C.getSelectionPosition();a==null||a(n,se,s,_e==null?void 0:_e.start.y,_e==null?void 0:_e.end.y)};requestAnimationFrame(()=>{j.fit(),C.focus()});const $=setTimeout(()=>{j.fit(),C.focus()},150);u.current=C,d.current=j;let O=null,z=null,M=!1,L=1e3,B=!1;const G=3e4,V=new Map;function F(){z&&(clearTimeout(z),z=null)}function X(){O&&(O.onclose=null,O.close(),O=null,h.current=null)}function q(){if(M||typeof document<"u"&&document.hidden)return;const se=i?`?token=${encodeURIComponent(i)}`:"";O=new WebSocket(`${Axt}${se}`),h.current=O,O.onopen=()=>{L=1e3,O.send(JSON.stringify({type:"terminal.subscribe",terminalId:n})),N()},O.onmessage=xe=>{try{const _e=JSON.parse(xe.data);Ext(V,n,_e.payload)&&C.write(_e.payload.data??"")}catch{}},O.onclose=()=>{!M&&!B&&(z=setTimeout(q,L),L=Math.min(L*1.5,G))},O.onerror=()=>{}}const ee=()=>{const se=typeof document<"u"&&document.hidden;if(B=se,se){F(),X();return}L=1e3,O||q()};q(),typeof document<"u"&&document.addEventListener("visibilitychange",ee),C.onData(se=>{Ixt(se,D,Date.now())||R(se)}),C.onResize(({cols:se,rows:xe})=>{O&&O.readyState===WebSocket.OPEN&&O.send(JSON.stringify({type:"terminal.resize",terminalId:n,cols:se,rows:xe})),fetch(`${I_}/api/terminals/${n}/resize`,{method:"POST",headers:{"Content-Type":"application/json",...B_(i)},body:JSON.stringify({cols:se,rows:xe})})});const Z=new ResizeObserver(()=>{requestAnimationFrame(()=>j.fit())});Z.observe(l.current);const te=l.current,re=()=>{window.setTimeout(W,0)},Q=()=>{window.setTimeout(W,0)},le=se=>{se.button===2&&(m.current=C.getSelection(),se.stopPropagation())},me=se=>{se.preventDefault(),se.stopPropagation();const xe=m.current||C.getSelection(),_e=Lxt(se.clientX,se.clientY,window.innerWidth,window.innerHeight);_({left:_e.left,top:_e.top,hasSelection:!!xe.trim()})},ae=se=>{$xt(se,R)&&(U=Date.now())};return te.addEventListener("mousedown",le,{capture:!0}),te.addEventListener("mouseup",re),te.addEventListener("keyup",Q),te.addEventListener("contextmenu",me,{capture:!0}),te.addEventListener("paste",ae,{capture:!0}),()=>{M=!0,clearTimeout($),H&&clearTimeout(H),F(),typeof document<"u"&&document.removeEventListener("visibilitychange",ee),Z.disconnect(),te.removeEventListener("mousedown",le,{capture:!0}),te.removeEventListener("mouseup",re),te.removeEventListener("keyup",Q),te.removeEventListener("contextmenu",me,{capture:!0}),te.removeEventListener("paste",ae,{capture:!0}),X(),C.dispose(),u.current=null,d.current=null,h.current=null}},[n,i,s,a]),y.useEffect(()=>{const C=u.current;C&&(C.options.theme=jG())},[x]);const w=y.useCallback(()=>{var T;const C=u.current;if(!C)return;const j=(m.current||C.getSelection()).trim();j&&((T=navigator.clipboard)!=null&&T.writeText)&&navigator.clipboard.writeText(j),m.current="",_(null),C.focus()},[]),S=y.useCallback(()=>{const C=u.current,j=h.current;C&&(NG(navigator.clipboard,T=>{C.focus(),j&&j.readyState===WebSocket.OPEN&&j.send(JSON.stringify({type:"terminal.input",terminalId:n,data:T}))}),m.current="",_(null),C.focus())},[n]);return c.jsxs("div",{className:`relative w-full overflow-hidden ${r??""}`,tabIndex:-1,onMouseDown:C=>{var j;v&&(m.current="",_(null)),(C.target===C.currentTarget||(j=l.current)!=null&&j.contains(C.target))&&requestAnimationFrame(()=>{var T;return(T=u.current)==null?void 0:T.focus()})},children:[c.jsx("div",{ref:l,className:"h-full w-full",style:{minHeight:0}}),v&&c.jsxs("div",{className:"fixed z-50 min-w-[140px] rounded-md border border-border bg-popover py-1 shadow-md",style:{left:v.left,top:v.top},onMouseDown:C=>C.stopPropagation(),children:[c.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm text-popover-foreground hover:bg-accent hover:text-accent-foreground disabled:opacity-40 disabled:pointer-events-none",disabled:!v.hasSelection,onClick:w,children:[c.jsx(tl,{className:"h-3.5 w-3.5"}),"Copy"]}),c.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm text-popover-foreground hover:bg-accent hover:text-accent-foreground",onClick:S,children:[c.jsx(Lye,{className:"h-3.5 w-3.5"}),"Paste"]})]})]})}),QC=16;function TG({terminals:e,activeTerminalId:n,onSelect:r,onCreate:i,onKill:s,onDetach:a,availableShells:o}){const[l,u]=y.useState(!1),d=y.useRef(null),h=y.useRef(null),[f,m]=y.useState(null);y.useEffect(()=>{if(!l)return;const v=_=>{d.current&&!d.current.contains(_.target)&&h.current&&!h.current.contains(_.target)&&u(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[l]);const x=o&&o.length>1;return c.jsxs("div",{className:"flex items-center gap-1 px-2 h-9 border-b bg-background shrink-0 overflow-x-auto",children:[e.map(v=>c.jsxs("div",{role:"tab",tabIndex:0,draggable:!0,onDragStart:_=>{_.dataTransfer.effectAllowed="copy",_.dataTransfer.setData(jue,JSON.stringify(Hct(v.id,v.id.replace(/^term-/,"").slice(0,8),v.projectRoot)))},onDragEnd:_=>{if(!a)return;const w=_.clientX<=QC||_.clientY<=QC||_.clientX>=window.innerWidth-QC||_.clientY>=window.innerHeight-QC,S=_.dataTransfer.dropEffect==="none"&&(_.clientX===0||_.clientY===0);(w||S)&&a(v.id)},onClick:()=>r(v.id),onKeyDown:_=>{(_.key==="Enter"||_.key===" ")&&r(v.id)},className:`group flex items-center gap-1.5 h-6 px-2.5 text-xs rounded-sm border cursor-pointer ${n===v.id?"bg-background text-foreground border-border shadow-sm":"text-muted-foreground border-transparent hover:text-foreground hover:bg-background/50 hover:border-border"}`,children:[c.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${v.state==="running"?"bg-green-500":"bg-zinc-500"}`}),c.jsx("span",{className:"truncate max-w-[100px]",children:v.id.replace(/^term-/,"").slice(0,8)}),c.jsx("button",{onClick:_=>{_.stopPropagation(),s(v.id)},className:"text-muted-foreground hover:text-destructive ml-0.5 text-sm leading-none","aria-label":"Close terminal",children:"×"})]},v.id)),c.jsxs("div",{className:"flex items-center",children:[c.jsx("button",{onClick:()=>i(),className:"px-2 py-1 text-sm text-muted-foreground hover:text-foreground","aria-label":"New terminal",children:"+"}),x&&c.jsx("button",{ref:h,onClick:()=>{var _;if(l){u(!1);return}const v=(_=h.current)==null?void 0:_.getBoundingClientRect();v&&m({top:v.bottom+4,left:v.left}),u(!0)},className:"px-0.5 py-1 text-muted-foreground hover:text-foreground","aria-label":"Select shell type",children:c.jsx(fl,{className:"h-3 w-3"})})]}),l&&x&&f&&c.jsx("div",{ref:d,className:"fixed z-50 min-w-[120px] rounded-md border bg-popover p-1 shadow-md",style:{top:f.top,left:f.left},children:o.map(v=>c.jsx("button",{onClick:()=>{i(v.shell),u(!1)},className:"flex w-full items-center rounded-sm px-2 py-1.5 text-xs hover:bg-accent hover:text-accent-foreground transition-colors",children:v.label},v.shell))})]})}function Fxt({activeProject:e,activeProjectFileId:n,activeProjectRoot:r,activeSessionId:i,activeTerminalId:s,architectureDiagram:a,architectureGenerating:o,architectureRequest:l,changedPaths:u,chatCollapsed:d,chatProvider:h,cliModel:f,currentView:m,devPreviewTarget:x,fsWatcherPayload:v,fsWatcherVersion:_,isMobile:w,mobileTreeTab:S,previewProjectRoot:C,projectFiles:j,projectPreviewRequest:T,projectRef:E,projectRestoreRef:N,projectStateReady:R,projectTabsState:D,projectTerminals:U,showDesktopProject:H,showMobileProjectFullscreen:I,showMobileTerminalFullscreen:W,showProjectEditor:$,showProjectTree:O,showTerminal:z,sourceControlRefreshSignal:M,terminalColumnWidth:L,terminalFullscreen:B,terminalHeight:G,terminalHeightBeforeFullscreenRef:V,terminalShells:F,terminalViewRef:X,token:q,viewMode:ee,automationSelectedThread:Z,onActiveProjectFileChange:te,onApplyDiff:re,onArchitectureOpenChange:Q,onArchitectureRenderResult:le,onAvailableFilesChange:me,onCloseTerminal:ae,onCreateTerminal:se,onDetachTerminal:xe,onFileDrop:_e,onGenerateArchitecture:Ae,onKillTerminal:Xe,onPreviewOpenChange:ht,onReferenceFile:Tt,onReferenceFileSelection:It,onReferencePreviewElement:tn,onReferenceTerminalSelection:an,onSetChatCollapsed:qt,onSetMobileTreeTab:Kt,onSetTerminalFullscreen:Je,onSetTerminalHeight:Ze,onTabsStateChange:be,onTerminalColumnDragStart:we,onTerminalDragStart:Ie,onTerminalSelect:xt,onToggleProjectEditor:ut,onToggleProjectTree:ct}){const $t=!!Z,Ft=ee==="developer"&&m==="chat"&&!w&&(H||z)||ee==="manager"&&$t&&H,Ge=(ee==="developer"||ee==="manager"&&$t)&&H,We=(ee==="developer"||ee==="manager"&&$t)&&I,mt=(He=!1)=>c.jsx(Ba,{name:"Editor project",variant:"section",className:He?"h-full min-h-0":"flex-1 min-h-0",resetKeys:[e==null?void 0:e.projectRoot,O,$,S],children:c.jsx(SPe,{ref:E,autoOpenRemotePath:(e==null?void 0:e.projectRoot)??null,surfaceId:(e==null?void 0:e.surfaceId)??null,files:j,activeFileId:n,onActiveFileChange:te,onFileDrop:_e,onReferenceFile:Tt,onReferenceSelection:It,onReferencePreviewElement:tn,onAvailableFilesChange:me,showTree:O,showEditor:$,onToggleTree:ct,onToggleEditor:ut,treeTab:He?S:void 0,onTreeTabChange:He?Kt:void 0,changedPaths:u,fsWatcherVersion:_,fsWatcherPayload:v,sourceControlRefreshSignal:M,isMobile:He||void 0,savedTabsState:D,stateReady:R,previewRequest:T,onTabsStateChange:be,onPreviewOpenChange:ht,previewSessionId:i,previewToken:q,previewProjectRoot:C,previewInitialTarget:x,architectureDiagram:a,architectureGenerating:o,architectureRequest:l,onArchitectureOpenChange:Q,onArchitectureRenderResult:le,onGenerateArchitecture:Ae,onApplyDiff:re,provider:h,cliModel:f,onMaxCollapsedChange:He?void 0:qt,restoreRef:He?void 0:N})}),tt=()=>s?c.jsx(Ba,{name:"Terminal",variant:"section",className:"flex-1 min-h-0",resetKeys:[s,r],children:c.jsx(Ghe,{ref:X,terminalId:s,className:"flex-1 min-h-0",token:q,projectRoot:r??void 0,onReferenceSelection:an})}):c.jsx("div",{className:"flex items-center justify-center flex-1 text-sm text-muted-foreground",children:c.jsx("button",{onClick:()=>se(),className:"hover:text-foreground transition-colors",children:"+ New Terminal"})});return c.jsxs(c.Fragment,{children:[Ft&&c.jsxs("div",{className:`relative flex min-h-0 flex-col ${!H&&z||d?"flex-1 min-w-0":"shrink-0"}`,style:!H&&z?{width:L,maxWidth:"70vw"}:void 0,children:[!H&&z&&c.jsx("div",{onMouseDown:we,className:"absolute inset-y-0 right-0 w-1.5 cursor-col-resize hover:bg-primary/30 transition-colors z-10"}),Ge&&c.jsx("div",{className:"flex min-h-0 flex-1",children:mt()}),ee==="developer"&&z&&!w&&m==="chat"&&c.jsxs("div",{className:`flex min-h-0 flex-col bg-background ${B?"absolute inset-0 z-20 border-r":`relative border-r border-t ${H?"shrink-0":"flex-1"}`}`,style:B||!H?void 0:{height:G},children:[!B&&c.jsx("div",{onMouseDown:Ie,className:"absolute inset-x-0 top-0 h-1.5 cursor-row-resize hover:bg-primary/30 transition-colors z-20"}),c.jsxs("div",{className:"relative shrink-0",children:[c.jsx(TG,{terminals:U,activeTerminalId:s,onSelect:xt,onCreate:He=>se(He),onKill:Xe,onDetach:xe,availableShells:F}),c.jsxs("div",{className:"absolute right-0 top-0 bottom-px flex items-center gap-1 pr-2 pl-3 bg-background z-[9]",children:[H&&c.jsx("button",{onClick:()=>{B?(Je(!1),Ze(V.current)):(V.current=G,Je(!0))},className:"p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors","aria-label":B?"Exit fullscreen":"Fullscreen terminal",children:B?c.jsx(aM,{className:"h-4 w-4"}):c.jsx(sM,{className:"h-4 w-4"})}),c.jsx("button",{onClick:()=>{s&&xe(s)},className:"p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors","aria-label":"Open terminal in new window",children:c.jsx(Xf,{className:"h-4 w-4"})}),c.jsx("button",{onClick:ae,className:"p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close terminal",children:c.jsx(Hr,{className:"h-4 w-4"})})]})]}),tt()]})]}),W&&c.jsxs("section",{className:"flex flex-1 min-h-0 flex-col overflow-hidden border-b bg-background pt-16",children:[c.jsxs("div",{className:"relative shrink-0 border-b",children:[c.jsx(TG,{terminals:U,activeTerminalId:s,onSelect:xt,onCreate:He=>se(He),onKill:Xe,availableShells:F}),c.jsx("button",{onClick:ae,className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close terminal",children:c.jsx(Hr,{className:"h-4 w-4"})})]}),tt()]}),We&&c.jsx("section",{className:`flex-1 min-h-0 overflow-hidden border-b bg-background ${ee==="manager"?"":"pt-16"}`,children:mt(!0)})]})}function Hxt({automation:e,automationMessages:n,availableFiles:r,availableSkills:i,chatProvider:s,chatProviderRuntimeMode:a,chatResponseStyle:o,cliModel:l,inputValueRef:u,inputVersion:d,isMobile:h,managerThreads:f,promptInputRef:m,selectedManagerQueue:x,selectedRepoOffline:v,selectedRepoRuntime:_,selectedThreadRepoRuntime:w,showManagerRepos:S,showProject:C,threadComposerDisabled:j,threadPlaceholder:T,voiceLevels:E,voiceRecording:N,voiceTranscribing:R,onAddRepository:D,onChangedFileClick:U,onCliModelChange:H,onDeleteThread:I,onDequeueManagerMessage:W,onHandleInputChange:$,onManagerQueue:O,onMemorySourceOpen:z,onMoveRepoToGateway:M,onOpenManagerPlan:L,onOpenManagerStrategy:B,onOpenMessagePath:G,onProviderChange:V,onProviderRuntimeModeChange:F,onRefreshThreads:X,onRemoveRepository:q,onReorderManagerQueueItem:ee,onResponseStyleChange:Z,onSearchFiles:te,onSelectRepository:re,onSelectThread:Q,onSendManagerQueueItemToParallelThread:le,onSetProjectEditorVisible:me,onSetProjectVisible:ae,onSteerManagerQueueItem:se,onStopRecording:xe,onStopThread:_e,onSubmit:Ae,onUpdateManagerQueueItem:Xe,onVoiceInput:ht,renderInlineSecretPrompt:Tt}){var Ie,xt,ut,ct,$t,Ft,Ge,We,mt,tt,He,Ne,je,Be;const It=((Ie=e.selectedThread)==null?void 0:Ie.id)??null,tn=((xt=e.selectedThread)==null?void 0:xt.status)==="running",an=(ut=e.selectedThread)==null?void 0:ut.providerId,qt=[an,f,Tt,G,U,z],Kt=y.useRef(new Map),Je=y.useRef(null);Je.current!==It&&(Kt.current.clear(),Je.current=It);const Ze=n.length>0?n[n.length-1].id:null,be=JSON.stringify(qt),we=[];{const lt=Kt.current;for(let ft=0;ft<n.length;ft++){const Ve=n[ft],jt=tn&&Ve.id===Ze,Et=lt.get(Ve.id),Nt=be+"|"+(Ve===(Et==null?void 0:Et.msg)?"s":"d")+"|"+(Ve.contextFlow===(Et==null?void 0:Et.contextFlow)?"s":"d")+"|"+(Ve.toolCalls===(Et==null?void 0:Et.toolCalls)?"s":"d")+"|"+(Ve.segments===(Et==null?void 0:Et.segments)?"s":"d")+"|"+(jt===(Et==null?void 0:Et.isStreaming)?"s":"d")+"|"+Ve.role;if(Et&&Et.key===Nt){we.push(Et.element);continue}const et=c.jsx(SL,{messageId:Ve.id,messageIndex:ft,messageFromEnd:n.length-1-ft,role:Ve.role,content:Ve.content,contextFlow:Ve.contextFlow,toolCalls:Ve.toolCalls,segments:Ve.segments,isStreaming:jt,compact:!0,preferLlmUi:!1,provider:an,threadControlThreads:f,renderInlineSecretPrompt:Tt,onOpenPath:G,onOpenDiff:U,onOpenMemorySource:z},Ve.id);lt.set(Ve.id,{key:Nt,element:et,msg:Ve,contextFlow:Ve.contextFlow,toolCalls:Ve.toolCalls,segments:Ve.segments,isStreaming:jt}),we.push(et)}if(lt.size>n.length){const ft=new Set(n.map(Ve=>Ve.id));for(const Ve of[...lt.keys()])ft.has(Ve)||lt.delete(Ve)}}return c.jsx("div",{className:`flex-1 min-w-0 flex flex-col min-h-0 ${h&&!e.selectedThread?"pt-12":""}`,children:e.selectedThread?c.jsx("div",{className:`flex flex-1 min-h-0 ${h?"flex-col":""}`,children:c.jsxs("div",{className:"flex min-w-0 flex-1 flex-col min-h-0",children:[c.jsx(Ba,{name:"Thread activity",variant:"section",className:"min-h-0 flex-1 border-b",resetKeys:[(ct=e.selectedThread)==null?void 0:ct.id,n.length],children:c.jsxs(Gue,{className:"min-h-0 flex-1 border-b",loading:e.loadingActivities,loadingLabel:"Loading activity",messageContents:n.map(lt=>lt.content),children:[n.length===0&&!e.loadingActivities&&c.jsx("div",{className:"text-center text-sm text-muted-foreground py-8",children:"No activity yet"}),we]},(($t=e.selectedThread)==null?void 0:$t.id)??"manager-empty")}),c.jsx("div",{className:"shrink-0 py-3 px-4",children:c.jsxs("div",{className:"mx-auto max-w-3xl",children:[e.error&&c.jsxs("div",{className:"flex items-center gap-2.5 rounded-lg border border-red-500/40 bg-red-500/10 px-3.5 py-2.5 text-sm text-red-400 mb-2",children:[c.jsx(Hx,{className:"h-4 w-4 shrink-0"}),c.jsx("span",{className:"min-w-0 break-words",children:e.error})]}),x.length>0&&e.selectedThread&&c.jsx(the,{items:x,onRemove:lt=>W(e.selectedThread.id,lt),onEdit:(lt,ft)=>Xe(e.selectedThread.id,lt,ft),onReorder:(lt,ft,Ve)=>ee(e.selectedThread.id,lt,ft,Ve),onSteer:e.selectedThread.status==="running"?se:void 0,onSendToParallelThread:le,className:"mb-2"}),e.selectedThreadTodos.length>0&&c.jsx(U7,{items:e.selectedThreadTodos,className:"mb-2"}),c.jsx(Ba,{name:"Thread composer",variant:"section",resetKeys:[(Ft=e.selectedThread)==null?void 0:Ft.id,d],children:c.jsx($2,{ref:m,availableSkills:i,draftStateKey:`manager:${((Ge=e.selectedThread)==null?void 0:Ge.id)??"new-thread"}`,value:u.current,syncKey:d,onChange:$,onSubmit:Ae,onQueue:O,onStop:()=>{e.selectedThread&&_e(e.selectedThread.id)},isLoading:((We=e.selectedThread)==null?void 0:We.status)==="running",disabled:e.creating,placeholder:(mt=e.selectedThread)!=null&&mt.providerSessionId||((tt=e.selectedThread)==null?void 0:tt.status)==="running"?"Send a follow-up message...":"Describe what you want to do...",onVoiceInput:ht,voiceRecording:N,voiceLevels:E,voiceTranscribing:R,onVoiceStop:xe,responseStyle:o,onResponseStyleChange:Z,provider:s,onProviderChange:V,providerRuntimeMode:a,onProviderRuntimeModeChange:F,cliModel:l,onCliModelChange:H,repoRuntime:w,onMoveToGateway:M,availableFiles:r,onSearchFiles:te,projectOpen:C,chatId:((He=e.selectedThread)==null?void 0:He.id)??void 0})}),c.jsxs("div",{className:"flex items-center gap-2 px-1 mt-1.5",children:[w&&c.jsx(nj,{runtime:w}),e.selectedThread&&e.selectedThread.status!=="running"&&!e.selectedThread.providerSessionId&&c.jsx("span",{className:"text-xs text-muted-foreground truncate",children:"Thread finished - start a new one"})]})]})})]})}):c.jsxs("div",{className:`flex flex-1 min-h-0 ${h?"flex-col":""}`,children:[S&&c.jsx("div",{className:`overflow-hidden ${h?"h-52 shrink-0 border-b":"w-56 shrink-0 border-r"}`,children:c.jsx(HPe,{repositories:e.repositories,selectedRepoId:((Ne=e.selectedRepo)==null?void 0:Ne.id)??null,isMobile:h,getRuntimeInfo:e.getRuntimeInfoForRepository,onSelect:e.setSelectedRepoId,onAddRepository:D,onRemoveRepository:q,onOpenStrategy:B,onOpenPlan:L})}),c.jsxs("div",{className:`flex-1 flex flex-col min-w-0 overflow-y-auto ${h?"pt-8":""}`,children:[c.jsx("div",{className:"relative z-10 flex flex-col items-center px-3 pb-8 pt-8 sm:px-4 sm:pb-2 sm:pt-4",children:c.jsxs("div",{className:"w-full max-w-3xl",children:[c.jsx("h1",{className:"mb-3 text-center text-xl font-semibold tracking-tight sm:mb-4 sm:text-2xl",children:"What do you want to build?"}),e.error&&c.jsxs("div",{className:"flex items-center gap-2.5 rounded-lg border border-red-500/40 bg-red-500/10 px-3.5 py-2.5 text-sm text-red-400 mb-3",children:[c.jsx(Hx,{className:"h-4 w-4 shrink-0"}),c.jsx("span",{className:"min-w-0 break-words",children:e.error})]}),c.jsx(Ba,{name:"Thread composer",variant:"section",resetKeys:[(je=e.selectedRepo)==null?void 0:je.id,d],children:c.jsx($2,{ref:m,availableSkills:i,draftStateKey:`manager:${((Be=e.selectedRepo)==null?void 0:Be.id)??"repo-draft"}`,value:u.current,syncKey:d,onChange:$,onSubmit:Ae,disabled:j,controlsDisabled:e.creating||v,placeholder:T,onVoiceInput:ht,voiceRecording:N,voiceLevels:E,voiceTranscribing:R,onVoiceStop:xe,responseStyle:o,onResponseStyleChange:Z,provider:s,onProviderChange:V,providerRuntimeMode:a,onProviderRuntimeModeChange:F,cliModel:l,onCliModelChange:H,repoRuntime:_,onMoveToGateway:M})}),c.jsx("div",{className:`${h?"overflow-hidden":"overflow-x-auto"} px-1 pt-3`,children:c.jsxs("div",{className:`${h?"flex min-w-0 items-center gap-2":"flex min-w-max items-center gap-2 whitespace-nowrap"}`,children:[c.jsx(jie,{repositories:e.repositories,selectedRepo:e.selectedRepo,disabled:e.creating,compact:h,className:h?"flex-1":"",getRuntimeInfo:e.getRuntimeInfoForRepository,onSelect:re,onAddRepository:D}),_&&c.jsx(nj,{runtime:_})]})})]})}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:c.jsxs("div",{className:"mx-auto w-full max-w-3xl",children:[c.jsxs("div",{className:"sticky top-0 z-10 flex h-[35px] items-center justify-between border-b bg-background px-2.5 sm:px-3",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:"text-sm font-medium",children:"Threads"}),c.jsx(Hn,{variant:"secondary",className:"h-5 rounded-md px-1.5 text-2xs",children:f.length})]}),c.jsx(ge,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:X,children:c.jsx(ks,{className:`h-3.5 w-3.5 ${e.loading?"animate-spin":""}`})})]}),f.length===0?c.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground sm:py-12",children:"No threads yet"}):c.jsxs("div",{className:"flex flex-col",children:[f.map(lt=>{const ft=e.getRepositoryForThread(lt),Ve=(ft==null?void 0:ft.name)??G4(lt)??"Unknown repo",jt=kie(lt,lt.id in e.threadPrStates?e.threadPrStates[lt.id]:void 0);return c.jsx(VPe,{thread:lt,repo:ft,repoName:Ve,prState:jt,ghAvailable:e.ghAvailable,onOpen:()=>{Q(lt.id),ae(!1),me(!1)},onStop:()=>_e(lt.id),onDelete:async()=>{I(lt.id)}},lt.id)}),e.hasMoreThreads&&c.jsxs("button",{className:"inline-flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground disabled:cursor-not-allowed disabled:opacity-70 sm:px-4 sm:py-2",disabled:e.loading,onClick:e.showMoreThreads,children:[e.loading?c.jsx(Lt,{className:"h-3 w-3 animate-spin"}):null,"Show more threads"]}),f.length>e.threadListLimit&&c.jsx("button",{className:"px-3 py-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground sm:px-4 sm:py-2",onClick:e.showFewerThreads,children:"Show less"})]})]})})]})]})})}function Wxt({activeProjectId:e,changedFilesCount:n,isManagerThread:r,mobileProjectControlState:i,mobileProjectMenuActive:s,showProject:a,showSidebar:o,showTerminal:l,onChatClick:u,onToggleSidebar:d,onProjectTargetAction:h}){return c.jsxs("div",{className:"flex flex-col items-center gap-1 rounded-lg border bg-background/85 px-1.5 py-1.5 shadow-lg backdrop-blur-lg",draggable:!1,onDragStart:f=>f.preventDefault(),children:[!r&&c.jsxs(c.Fragment,{children:[c.jsxs(br,{children:[c.jsx(mr,{asChild:!0,children:c.jsx(ge,{variant:!a&&!l&&!o?"secondary":"ghost",size:"sm",className:"h-10 w-10 shrink-0 rounded-lg p-0",onClick:u,"aria-label":"Chat",children:c.jsx(vd,{className:"h-5 w-5"})})}),c.jsx(gr,{side:"left",children:"Chat"})]}),c.jsxs(br,{children:[c.jsx(mr,{asChild:!0,children:c.jsx(ge,{variant:s?"secondary":"ghost",size:"sm",className:"h-9 w-9 shrink-0 rounded-lg p-0",onClick:d,"aria-label":"Projects",children:o?c.jsx(n5,{className:"h-4 w-4 rotate-90"}):c.jsx(r5,{className:"h-4 w-4 rotate-90"})})}),c.jsx(gr,{side:"left",children:"Projects"})]}),c.jsxs(br,{children:[c.jsx(mr,{asChild:!0,children:c.jsx(ge,{variant:Sm(i,"terminal")?"secondary":"ghost",size:"sm",className:"h-10 w-10 shrink-0 rounded-lg p-0",onClick:()=>h("terminal"),"aria-label":"Terminal",children:c.jsx(Rs,{className:"h-5 w-5"})})}),c.jsx(gr,{side:"left",children:"Terminal"})]})]}),e&&c.jsxs(c.Fragment,{children:[c.jsxs(br,{children:[c.jsx(mr,{asChild:!0,children:c.jsx(ge,{variant:Sm(i,"files")?"secondary":"ghost",size:"sm",className:"h-10 w-10 shrink-0 rounded-lg p-0",onClick:()=>h("files"),"aria-label":"Files",children:c.jsx(Oh,{className:"h-5 w-5"})})}),c.jsx(gr,{side:"left",children:"Files"})]}),c.jsxs(br,{children:[c.jsx(mr,{asChild:!0,children:c.jsxs(ge,{variant:Sm(i,"git")?"secondary":"ghost",size:"sm",className:"relative h-10 w-10 shrink-0 rounded-lg p-0",onClick:()=>h("git"),"aria-label":"Changes",children:[c.jsx(Ff,{className:"h-5 w-5"}),n>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:n>99?"99+":n})]})}),c.jsx(gr,{side:"left",children:"Changes"})]}),c.jsxs(br,{children:[c.jsx(mr,{asChild:!0,children:c.jsx(ge,{variant:Sm(i,"editor")?"secondary":"ghost",size:"sm",className:"h-10 w-10 shrink-0 rounded-lg p-0",onClick:()=>h("editor"),"aria-label":"Editor",children:c.jsx(F_,{className:"h-5 w-5"})})}),c.jsx(gr,{side:"left",children:"Editor"})]})]})]})}function As(){return typeof window<"u"&&window.jaitDesktop?"electron":typeof window<"u"&&"Capacitor"in window?"capacitor":"web"}let wc=null;function TR(e){return`${e}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`}function ER(e){try{return localStorage.getItem(e)}catch{return null}}function mx(e,n){try{localStorage.setItem(e,n)}catch{}}async function Uxt(){var a;if(wc)return wc;const e=As(),n=`jait-device-id-${e}`,r="deviceId";if(e==="electron"&&((a=window.jaitDesktop)!=null&&a.getSetting)){const o=window.jaitDesktop,l=o.deviceId;if(l){wc=l,mx(n,l);try{await o.setSetting(r,l)}catch{}return l}const u=await o.getSetting(r,null);if(u)return wc=u,mx(n,u),u;const d=ER(n);if(d)return wc=d,await o.setSetting(r,d),d;const h=TR(e);return wc=h,mx(n,h),await o.setSetting(r,h),h}const i=ER(n);if(i)return wc=i,i;const s=TR(e);return wc=s,mx(n,s),s}function PL(){var s;if(wc)return wc;const e=As(),n=`jait-device-id-${e}`;if(e==="electron"){const a=typeof window<"u"?(s=window.jaitDesktop)==null?void 0:s.deviceId:void 0;if(a)return wc=a,mx(n,a),a}const r=ER(n);if(r)return wc=r,r;const i=TR(e);return wc=i,mx(n,i),i}const Pb=jr(),Vxt=V0(),Khe="jait-screen-share-auto-approve";function Yhe(){try{const e=localStorage.getItem(Khe);return e?new Set(JSON.parse(e)):new Set}catch{return new Set}}function qxt(e){const n=Yhe();n.add(e),localStorage.setItem(Khe,JSON.stringify([...n]))}function Gxt(){const e=As(),n=navigator.userAgent;return e==="electron"?`Jait Desktop (${navigator.platform})`:e==="capacitor"?"Jait Mobile":n.includes("Chrome")?`Chrome (${navigator.platform})`:n.includes("Firefox")?`Firefox (${navigator.platform})`:n.includes("Safari")?`Safari (${navigator.platform})`:`Browser (${navigator.platform})`}const Kxt=[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun1.l.google.com:19302"}];function Yxt(e={}){const{token:n}=e,[r,i]=y.useState({session:null,devices:[],localDeviceId:null,isHost:!1,isViewer:!1,isActive:!1,loading:!1,error:null,connectedDeviceId:null,pendingShareRequest:null}),s=y.useRef(null),a=y.useRef(null),o=y.useRef(null),l=y.useRef(null),u=y.useRef(PL()),d=y.useRef(null),h=y.useCallback(()=>{const T={"Content-Type":"application/json"};return n&&(T.Authorization=`Bearer ${n}`),T},[n]),f=y.useCallback(async()=>{const T=u.current,E=As(),N=Gxt(),R=["screen-view"];E==="electron"&&R.push("screen-share","remote-input"),E==="web"&&R.push("screen-share");try{(await fetch(`${Pb}/api/screen-share/devices/register`,{method:"POST",headers:h(),body:JSON.stringify({id:T,name:N,platform:E,capabilities:R})})).ok&&i(U=>({...U,localDeviceId:T}))}catch(D){console.error("Failed to register screen-share device:",D)}},[h]),m=y.useCallback(async()=>{try{const T=await fetch(`${Pb}/api/screen-share/state`,{headers:h()});if(!T.ok)return;const E=await T.json();i(N=>{var R;return{...N,session:E.activeSession??N.session,devices:E.devices,isActive:((R=E.activeSession)==null?void 0:R.status)==="sharing"}})}catch(T){console.error("Failed to refresh screen-share state:",T)}},[h]),x=y.useCallback((T,E,N)=>{var D;console.log(`[screen-share] setupPeerConnection: isHost=${E} session=${N.slice(0,8)} prevPC=${!!s.current} stream=${!!T} device=${u.current}`),(D=s.current)==null||D.close();const R=new RTCPeerConnection({iceServers:Kxt});if(s.current=R,E&&T){const U=T.getTracks();console.log(`[screen-share] Adding ${U.length} track(s):`,U.map(H=>`${H.kind}:${H.label}:${H.readyState}`)),U.forEach(H=>R.addTrack(H,T))}if(R.ontrack=U=>{const[H]=U.streams;console.log(`[screen-share] ontrack: streams=${U.streams.length} tracks=${H==null?void 0:H.getTracks().map(I=>`${I.kind}:${I.readyState}`).join(",")}`),H&&(o.current=H,console.log("[screen-share] remoteStreamRef set, triggering re-render"),i(I=>({...I})))},R.onicecandidate=U=>{var H;U.candidate&&((H=l.current)==null?void 0:H.readyState)===WebSocket.OPEN&&l.current.send(JSON.stringify({type:"screen-share:ice-candidate",payload:{sessionId:N,fromDeviceId:u.current,candidate:U.candidate.candidate,sdpMid:U.candidate.sdpMid,sdpMLineIndex:U.candidate.sdpMLineIndex}}))},R.oniceconnectionstatechange=()=>{console.log("[screen-share] ICE state:",R.iceConnectionState),(R.iceConnectionState==="disconnected"||R.iceConnectionState==="failed")&&i(U=>({...U,error:`Connection ${R.iceConnectionState}`}))},E&&R.createOffer().then(U=>{var H;R.setLocalDescription(U),console.log("[screen-share] Sending offer via WS"),(H=l.current)==null||H.send(JSON.stringify({type:"screen-share:offer",payload:{sessionId:N,hostDeviceId:u.current,sdp:U.sdp}}))}),!E&&d.current){const U=d.current;d.current=null,console.log("[screen-share] Processing queued offer"),R.setRemoteDescription(new RTCSessionDescription({type:"offer",sdp:U.sdp})).then(()=>R.createAnswer()).then(H=>{var I;R.setLocalDescription(H),(I=l.current)==null||I.send(JSON.stringify({type:"screen-share:answer",payload:{sessionId:U.sessionId,viewerDeviceId:u.current,sdp:H.sdp}}))}).catch(H=>console.error("[screen-share] Failed to process queued offer:",H))}},[]),v=y.useCallback(async T=>{var E,N;i(R=>({...R,loading:!0,error:null}));try{let R;if(!((E=navigator.mediaDevices)!=null&&E.getDisplayMedia))throw new Error("Screen sharing is not supported on this device. Use a desktop browser or the Electron app.");if(console.log("[screen-share] Requesting screen capture via getDisplayMedia..."),R=await navigator.mediaDevices.getDisplayMedia({video:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:15,max:30}},audio:!1}),console.log("[screen-share] Screen capture obtained:",(N=R.getVideoTracks()[0])==null?void 0:N.label),a.current=R,!T){await f();const D=await fetch(`${Pb}/api/screen-share/start`,{method:"POST",headers:h(),body:JSON.stringify({hostDeviceId:u.current})});if(!D.ok){const H=await D.json();throw new Error(H.error)}const U=await D.json();T=U.session.id,i(H=>({...H,session:U.session}))}i(D=>({...D,isHost:!0,isViewer:!1,isActive:!0,loading:!1})),console.log("[screen-share] Host capturing — setting up peer connection for session:",T),x(R,!0,T??"")}catch(R){console.error("[screen-share] Capture failed:",R),i(D=>({...D,loading:!1,isHost:!1,error:R instanceof Error?R.message:"Failed to start screen capture"}))}},[f,h,x]),_=y.useCallback(async T=>{i(E=>({...E,loading:!0,error:null,connectedDeviceId:T}));try{await f();const E=await fetch(`${Pb}/api/screen-share/start`,{method:"POST",headers:h(),body:JSON.stringify({hostDeviceId:T,viewerDeviceIds:[u.current]})});if(!E.ok){const R=await E.json();throw new Error(R.error)}const{session:N}=await E.json();i(R=>({...R,session:N,isViewer:!0,isActive:!0,loading:!1})),console.log(`[screen-share] requestRemoteShare: HTTP done, session=${N.id.slice(0,8)} pcRef=${!!s.current}`),s.current?console.log("[screen-share] requestRemoteShare: PC already exists, skipping creation"):(console.log("[screen-share] requestRemoteShare: creating viewer PC (no WS-created PC yet)"),x(null,!1,N.id))}catch(E){i(N=>({...N,loading:!1,connectedDeviceId:null,error:E instanceof Error?E.message:"Failed to connect to remote device"}))}},[f,h,x]),w=y.useCallback(async()=>{var T,E;(T=a.current)==null||T.getTracks().forEach(N=>N.stop()),a.current=null,o.current=null,(E=s.current)==null||E.close(),s.current=null;try{await fetch(`${Pb}/api/screen-share/stop`,{method:"POST",headers:h(),body:JSON.stringify({})})}catch{}i(N=>({...N,session:null,isHost:!1,isViewer:!1,isActive:!1,connectedDeviceId:null,pendingShareRequest:null}))},[h]),S=y.useCallback(()=>{const T=r.pendingShareRequest;T&&(i(E=>({...E,pendingShareRequest:null})),v(T.sessionId))},[r.pendingShareRequest,v]),C=y.useCallback(()=>{i(T=>({...T,pendingShareRequest:null}))},[]),j=y.useCallback(async()=>{if(!window.jaitDesktop)return[];try{return await window.jaitDesktop.getDesktopSources()}catch{return[]}},[]);return y.useEffect(()=>{if(!n||!window.jaitDesktop)return;let T=!0,E=null;const N=()=>{if(!T)return;const R=`${Vxt}${n?`?token=${n}`:""}`,D=new WebSocket(R);l.current=D,D.onopen=()=>{console.log("[screen-share] WS connected"),D.send(JSON.stringify({type:"subscribe",deviceId:u.current}))},D.onmessage=U=>{var H,I,W,$,O,z,M;try{const L=JSON.parse(U.data);switch(L.type.startsWith("screen-share:")&&console.log(`[screen-share] WS recv: ${L.type}`,JSON.stringify(L.payload).slice(0,300)),L.type){case"screen-share:state-update":{const B=L.payload;B.status==="idle"?((H=a.current)==null||H.getTracks().forEach(G=>G.stop()),a.current=null,o.current=null,(I=s.current)==null||I.close(),s.current=null,i(G=>({...G,session:null,isHost:!1,isViewer:!1,isActive:!1,connectedDeviceId:null,pendingShareRequest:null}))):i(G=>({...G,session:B,isActive:B.status==="sharing"}));break}case"screen-share:start-request":{const B=L.payload;if(console.log(`[screen-share] start-request: host=${B.hostDeviceId} local=${u.current} viewers=[${(W=B.viewerDeviceIds)==null?void 0:W.join(",")}] isHostMatch=${B.hostDeviceId===u.current} pcRef=${!!s.current}`),B.hostDeviceId===u.current){const G=(($=B.viewerDeviceIds)==null?void 0:$[0])??"unknown",V=Yhe();if(V.has(G)||V.has("*")){console.log("[screen-share] Auto-approved share request from",G),v(B.sessionId);break}As()==="electron"&&((O=window.jaitDesktop)==null||O.notify({title:"Screen Share Request",body:"A remote device wants to view your screen."}).catch(()=>{}));const X=Zn("Screen share requested",{description:"A remote device wants to view your screen.",duration:1/0,action:{label:"Always Allow",onClick:()=>{console.log("[screen-share] User accepted + enabled always-approve"),qxt("*"),v(B.sessionId),Zn.dismiss(X)}},cancel:{label:"Share Once",onClick:()=>{console.log("[screen-share] User accepted share request (once)"),v(B.sessionId),Zn.dismiss(X)}}})}else if(!B.viewerDeviceIds||B.viewerDeviceIds.length===0||B.viewerDeviceIds.includes(u.current)){if(s.current){console.log("[screen-share] Viewer PC already set up, skipping duplicate start-request");break}a.current&&(a.current.getTracks().forEach(G=>G.stop()),a.current=null),console.log("[screen-share] Setting up as viewer for session:",B.sessionId,"host:",B.hostDeviceId),i(G=>({...G,isViewer:!0,isHost:!1,isActive:!0,connectedDeviceId:B.hostDeviceId})),x(null,!1,B.sessionId)}break}case"screen-share:offer":{const B=L.payload;if(B.hostDeviceId===u.current){console.log("[screen-share] Ignoring own offer (we are the host)");break}console.log(`[screen-share] Received offer from host=${B.hostDeviceId} pcRef=${!!s.current}`);const G=s.current;G?G.setRemoteDescription(new RTCSessionDescription({type:"offer",sdp:B.sdp})).then(()=>G.createAnswer()).then(V=>{var F;G.setLocalDescription(V),console.log("[screen-share] Sending answer"),(F=l.current)==null||F.send(JSON.stringify({type:"screen-share:answer",payload:{sessionId:B.sessionId,viewerDeviceId:u.current,sdp:V.sdp}}))}).catch(V=>console.error("[screen-share] Offer handling failed:",V)):(console.log("[screen-share] PC not ready, queuing offer"),d.current=B);break}case"screen-share:answer":{const B=L.payload;if(B.viewerDeviceId===u.current){console.log("[screen-share] Ignoring own answer (we are the viewer)");break}console.log(`[screen-share] Received answer from viewer=${B.viewerDeviceId}`),(z=s.current)==null||z.setRemoteDescription(new RTCSessionDescription({type:"answer",sdp:B.sdp}));break}case"screen-share:ice-candidate":{const B=L.payload;if(B.fromDeviceId===u.current)break;console.log(`[screen-share] ICE candidate from=${B.fromDeviceId} pcRef=${!!s.current}`),(M=s.current)==null||M.addIceCandidate(new RTCIceCandidate({candidate:B.candidate,sdpMid:B.sdpMid,sdpMLineIndex:B.sdpMLineIndex}));break}}}catch{}},D.onclose=()=>{l.current=null,T&&(E=setTimeout(N,3e4))},D.onerror=()=>{}};return N(),()=>{var R;T=!1,E&&clearTimeout(E),(R=l.current)==null||R.close(),l.current=null}},[n]),y.useEffect(()=>{!n||!window.jaitDesktop||(f(),m())},[n,f,m]),y.useEffect(()=>{window.jaitDesktop&&(window.jaitDesktop.onScreenShareStart(()=>v()),window.jaitDesktop.onScreenShareStop(()=>w()))},[v,w]),{...r,requestRemoteShare:_,startHosting:v,disconnect:w,acceptPendingShare:S,rejectPendingShare:C,getDesktopSources:j,refreshState:m,localStream:a.current,remoteStream:o.current}}function Xxt(){return typeof window>"u"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}function LL(e){const{activeTheme:n}=pie(),[r,i]=y.useState(Xxt);y.useEffect(()=>{if(typeof window>"u")return;const o=window.matchMedia("(prefers-color-scheme: dark)"),l=()=>i(o.matches);return l(),o.addEventListener("change",l),()=>o.removeEventListener("change",l)},[]);const s=(n==null?void 0:n.colorMode)??(e==="dark"||e==="system"&&r?"dark":"light"),a=(n==null?void 0:n.monacoThemeName)??(s==="dark"?uw:"vs");return y.useEffect(()=>{S9e({colorMode:s,monacoThemeName:a,theme:n})},[n,a,s]),{activeTheme:n,monacoThemeName:a,resolvedTheme:s}}function Jxt(e){const n=e==null?void 0:e.trim();return n?/^https?:\/\//i.test(n)?n:n.startsWith("/")?`${jr()}${n}`:n:null}async function Zxt(e,n,r){const i=await fetch(`${jr()}/api/project/write`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,content:n,surfaceId:r})});if(!i.ok){const s=await i.json().catch(()=>({}));throw new Error(s.message||`Failed to save file: ${i.statusText}`)}}function Qxt({detachedTabId:e}){const[n,r]=y.useState(()=>Kz(e)),[i,s]=y.useState((n==null?void 0:n.tab.content)??""),[a,o]=y.useState(!1),[l,u]=y.useState(null),{monacoThemeName:d}=LL((n==null?void 0:n.theme)??"dark");y.useEffect(()=>{const x=()=>r(Kz(e));return x(),window.addEventListener("storage",x),()=>window.removeEventListener("storage",x)},[e]),y.useEffect(()=>{n&&(document.title=n.title||n.tab.label||"Jait")},[n]),y.useEffect(()=>{s((n==null?void 0:n.tab.content)??"")},[n==null?void 0:n.tab.content]);const h=y.useMemo(()=>Jxt(n==null?void 0:n.tab.previewSrc),[n==null?void 0:n.tab.previewSrc]),f=y.useCallback(()=>{J9e(e),window.close()},[e]),m=y.useCallback(async()=>{if(!(!n||n.tab.type!=="file")){o(!0),u(null);try{await Zxt(n.tab.path,i,n.surfaceId??null)}catch(x){u(x instanceof Error?x.message:"Failed to save file")}finally{o(!1)}}},[i,n]);return n?c.jsxs("div",{className:"flex h-screen flex-col bg-muted/10 text-foreground",children:[c.jsxs("div",{className:"flex h-[35px] items-center gap-2 border-b bg-muted/30 px-3 shrink-0",children:[n.tab.type==="architecture"?c.jsx(z_,{className:"h-4 w-4 shrink-0"}):n.tab.type==="preview"?c.jsx(_i,{className:"h-4 w-4 shrink-0"}):null,c.jsx("span",{className:"truncate text-sm font-medium",children:n.title}),c.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[n.tab.type==="file"&&c.jsxs(ge,{type:"button",variant:"ghost",size:"sm",className:"h-8 px-2 text-xs",onClick:()=>{m()},disabled:a,children:[a?c.jsx(Lt,{className:"mr-1 h-3 w-3 animate-spin"}):c.jsx(i5,{className:"mr-1 h-3 w-3"}),"Save"]}),n.tab.type==="preview"&&h&&c.jsx("a",{href:h,target:"_blank",rel:"noreferrer",className:"inline-flex",children:c.jsxs(ge,{type:"button",variant:"ghost",size:"sm",className:"h-8 px-2 text-xs",children:[c.jsx(Xf,{className:"mr-1 h-3 w-3"}),"Open"]})}),c.jsx(ge,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8",onClick:f,children:c.jsx(Hr,{className:"h-4 w-4"})})]})]}),l?c.jsx("div",{className:"border-b px-3 py-2 text-xs text-destructive",children:l}):null,c.jsx("div",{className:"min-h-0 flex-1 bg-background",children:n.tab.type==="diff"?c.jsx(dw,{className:"h-full",editorClassName:"h-full",original:n.tab.originalContent??"",modified:n.tab.modifiedContent??"",language:n.tab.language??"plaintext",renderSideBySide:!0,options:{minimap:{enabled:!1}}}):n.tab.type==="preview"?h?c.jsx("iframe",{src:h,title:n.title,className:"h-full w-full bg-white",sandbox:"allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads"}):c.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"Preview unavailable."}):n.tab.type==="architecture"?c.jsx(fO,{diagram:n.architectureDiagram??null,isGenerating:n.architectureGenerating,theme:n.theme}):n.tab.originalContent!=null?c.jsx(pO,{path:n.tab.path,language:n.tab.language??"plaintext",value:i,originalContent:n.tab.originalContent,theme:d,onChange:x=>s(x??"")}):c.jsx(lS,{height:"100%",beforeMount:x=>Xl(x,d),theme:d,path:n.tab.path,language:n.tab.language??"plaintext",value:i,onChange:x=>s(x??""),options:{minimap:{enabled:!1},"semanticHighlighting.enabled":!0,fontSize:13,automaticLayout:!0}})})]}):c.jsx("div",{className:"flex h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Detached tab not found."})}const e1t="jait:detached-terminal:";function $L(e){return`${e1t}${e}`}function t1t(e){localStorage.setItem($L(e.id),JSON.stringify(e))}function EG(e){const n=localStorage.getItem($L(e));if(!n)return null;try{return JSON.parse(n)}catch{return null}}function n1t(e){localStorage.removeItem($L(e))}function r1t({detachedId:e}){const[n,r]=y.useState(()=>EG(e));LL((n==null?void 0:n.theme)??"dark"),y.useEffect(()=>{const s=()=>r(EG(e));return s(),window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[e]),y.useEffect(()=>{n&&(document.title=n.label||"Terminal")},[n]);const i=y.useCallback(()=>{n1t(e),window.close()},[e]);return n?c.jsxs("div",{className:"flex h-screen flex-col bg-background text-foreground",children:[c.jsxs("div",{className:"flex h-9 shrink-0 items-center justify-between border-b px-3",children:[c.jsx("span",{className:"truncate text-xs text-muted-foreground",children:n.label}),c.jsx("button",{onClick:i,className:"p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close",children:c.jsx(Hr,{className:"h-4 w-4"})})]}),c.jsx(Ghe,{terminalId:n.terminalId,className:"flex-1",token:n.token,projectRoot:n.projectRoot})]}):c.jsx("div",{className:"flex h-screen items-center justify-center bg-background text-muted-foreground",children:"Terminal session not found."})}const z8=jr();function i1t({platform:e}){switch(e){case"windows":case"macos":case"linux":return c.jsx(Po,{className:"h-3.5 w-3.5"});case"android":case"ios":return c.jsx(s4,{className:"h-3.5 w-3.5"});default:return c.jsx(_i,{className:"h-3.5 w-3.5"})}}function AG({open:e,onOpenChange:n,onSelect:r,gatewayOnly:i,initialPath:s,initialNodeId:a}){const[o,l]=y.useState(null),[u,d]=y.useState(null),[h,f]=y.useState([]),[m,x]=y.useState([]),[v,_]=y.useState(!1),[w,S]=y.useState(null),[C,j]=y.useState(""),[T,E]=y.useState(!1),[N,R]=y.useState([]),[D,U]=y.useState("gateway"),H=y.useCallback(G=>{l(G.path),d(G.parent),f(G.entries),j(G.path)},[]),I=y.useCallback(async(G,V)=>{const F=`${z8}/api/filesystem/browse?path=${encodeURIComponent(G)}&nodeId=${encodeURIComponent(V)}`,X=await fetch(F);if(!X.ok){const q=await X.json().catch(()=>({message:"Failed to browse"}));throw new Error(q.message??"Failed to browse")}return await X.json()},[]),W=y.useCallback(async(G,V)=>{try{_(!0),S(null),l(null),d(null),f([]);const F=`${z8}/api/filesystem/roots?nodeId=${encodeURIComponent(G)}`,X=await fetch(F);if(!X.ok)throw new Error("Failed to load roots");const q=await X.json();if(x(q.roots),V)try{const Z=await I(V,G);H(Z);return}catch{}const ee=q.roots.find(Z=>Z.name==="Home")??q.roots[0];if(ee){const Z=await I(ee.path,G);H(Z)}}catch(F){S(F instanceof Error?F.message:"Failed to load")}finally{_(!1)}},[H,I]),$=y.useCallback(async(G,V)=>{try{const F=await fetch(`${z8}/api/filesystem/nodes`);if(!F.ok)throw new Error("Failed to load nodes");const X=await F.json();R(X.nodes);const q=As();let ee="gateway";if(G&&X.nodes.some(Z=>Z.id===G)&&(ee=G),ee==="gateway"&&(q==="electron"||q==="capacitor")){const Z=PL(),te=X.nodes.find(re=>re.id===Z);te&&(ee=te.id)}U(ee),await W(ee,G===ee?V:null)}catch(F){S(F instanceof Error?F.message:"Failed to load nodes")}},[W]);y.useEffect(()=>{if(e){if(i){U("gateway"),W("gateway",s);return}$(a,s)}},[e,i,a,s,$,W]);const O=y.useCallback(async(G,V)=>{const F=V??D;try{_(!0),S(null);const X=await I(G,F);H(X)}catch(X){S(X instanceof Error?X.message:"Failed to browse")}finally{_(!1)}},[H,I,D]),z=y.useCallback(G=>{U(G),W(G)},[W]),M=y.useCallback(()=>{o&&(r(o,D),n(!1))},[o,D,r,n]),L=y.useCallback(()=>{C.trim()&&(O(C.trim()),E(!1))},[C,O]),B=h.filter(G=>G.type==="dir");return c.jsx(Io,{open:e,onOpenChange:n,children:c.jsxs(oo,{className:"max-w-md sm:max-w-lg p-0 gap-0 overflow-hidden",children:[c.jsx(ul,{className:"px-4 pt-4 pb-2",children:c.jsxs(lo,{className:"flex items-center gap-2 text-base",children:[c.jsx(Oh,{className:"h-4 w-4"}),"Open Project"]})}),!i&&N.length>1&&c.jsx("div",{className:"flex items-center gap-1 px-3 py-1.5 border-b bg-muted/20 overflow-x-auto",children:N.map(G=>c.jsxs("button",{onClick:()=>z(G.id),className:Ce("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs whitespace-nowrap transition-colors",D===G.id?"bg-primary text-primary-foreground":"hover:bg-accent hover:text-accent-foreground text-muted-foreground"),children:[c.jsx(i1t,{platform:G.platform}),c.jsx("span",{children:G.name})]},G.id))}),c.jsxs("div",{className:"flex items-center gap-1 px-3 py-1.5 border-b text-xs text-muted-foreground bg-muted/30",children:[m.filter(G=>G.name!=="Home").map(G=>c.jsxs("button",{onClick:()=>void O(G.path),className:"px-1.5 py-0.5 rounded hover:bg-accent hover:text-accent-foreground flex items-center gap-1",title:G.path,children:[c.jsx(Sxe,{className:"h-3 w-3"}),c.jsx("span",{children:G.name})]},G.path)),c.jsx("button",{onClick:()=>{const G=m.find(V=>V.name==="Home");G&&O(G.path)},className:"px-1.5 py-0.5 rounded hover:bg-accent hover:text-accent-foreground flex items-center gap-1",title:"Home directory",children:c.jsx(OY,{className:"h-3 w-3"})}),c.jsx("div",{className:"h-3 w-px bg-border mx-1"}),u&&c.jsx("button",{onClick:()=>void O(u),className:"px-1.5 py-0.5 rounded hover:bg-accent hover:text-accent-foreground flex items-center gap-1",title:"Go up",children:c.jsx(jY,{className:"h-3 w-3"})}),c.jsx("button",{onClick:()=>E(G=>!G),className:"ml-auto px-1.5 py-0.5 rounded hover:bg-accent hover:text-accent-foreground text-2xs",children:T?"Browse":"Enter path"})]}),T&&c.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b bg-muted/20",children:[c.jsx("input",{type:"text",value:C,onChange:G=>j(G.target.value),onKeyDown:G=>{G.key==="Enter"&&L()},className:"flex-1 h-7 px-2 text-xs border rounded bg-background focus:outline-none focus:ring-1 focus:ring-ring",placeholder:"Enter absolute path...",autoFocus:!0}),c.jsx(ge,{size:"sm",variant:"secondary",className:"h-7 text-xs",onClick:L,children:"Go"})]}),c.jsx("div",{className:"px-3 py-1.5 text-xs font-mono text-muted-foreground truncate border-b",children:o??"..."}),c.jsx("div",{className:"overflow-y-auto min-h-[120px] max-h-[50vh]",children:c.jsxs("div",{className:"p-2",children:[v&&c.jsxs("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:[c.jsx(Lt,{className:"h-4 w-4 animate-spin mr-2"}),"Loading..."]}),w&&c.jsx("div",{className:"text-destructive text-xs py-4 text-center",children:w}),!v&&!w&&B.length===0&&c.jsx("div",{className:"text-muted-foreground text-xs py-4 text-center",children:"No subdirectories"}),!v&&!w&&B.map(G=>c.jsxs("button",{onClick:()=>void O(G.path),className:Ce("w-full flex items-center gap-2 px-2 py-1.5 rounded text-xs text-left","hover:bg-accent hover:text-accent-foreground transition-colors"),children:[c.jsx(rM,{className:"h-3.5 w-3.5 text-yellow-500 shrink-0"}),c.jsx("span",{className:"truncate",children:G.name}),c.jsx(xs,{className:"h-3 w-3 ml-auto text-muted-foreground shrink-0"})]},G.path))]})}),c.jsxs(ip,{className:"px-4 py-3 border-t",children:[c.jsx(ge,{variant:"ghost",size:"sm",onClick:()=>n(!1),children:"Cancel"}),c.jsxs(ge,{size:"sm",onClick:M,disabled:!o,children:[c.jsx(Oh,{className:"h-3.5 w-3.5 mr-1.5"}),"Open this folder"]})]})]})})}function s1t({projectOpen:e,onProjectOpenChange:n,projectInitialPath:r,projectInitialNodeId:i,onProjectSelect:s,automationOpen:a,onAutomationOpenChange:o,onAutomationSelect:l}){return c.jsxs(c.Fragment,{children:[c.jsx(AG,{open:e,onOpenChange:n,initialPath:r??void 0,initialNodeId:i??void 0,onSelect:s}),c.jsx(AG,{open:a,onOpenChange:o,onSelect:l})]})}function a1t({onRetry:e}){const[n,r]=y.useState(!1),i=()=>{r(!0),e(),setTimeout(()=>r(!1),3e3)};return c.jsx("div",{className:"flex h-screen w-full items-center justify-center bg-background text-foreground",children:c.jsxs("div",{className:"flex max-w-md flex-col items-center gap-6 px-6 text-center",children:[c.jsx("div",{className:"flex h-20 w-20 items-center justify-center rounded-full bg-destructive/10",children:c.jsx(z1e,{className:"h-10 w-10 text-destructive"})}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Backend Unavailable"}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Unable to connect to the Jait gateway at"," ",c.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono",children:jr()})]}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Make sure the gateway is running and accessible, then try again."})]}),c.jsxs("button",{onClick:i,disabled:n,className:"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow hover:bg-primary/90 transition-colors disabled:opacity-50",children:[c.jsx(ks,{className:`h-4 w-4 ${n?"animate-spin":""}`}),n?"Connecting…":"Retry Connection"]})]})})}function OG(e){return{id:e.id??`evt-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,source:e.source,title:e.title,detail:e.detail,createdAt:e.createdAt??new Date().toISOString()}}function o1t({login:e,register:n,onSuccess:r}){const[i,s]=y.useState(""),[a,o]=y.useState(""),[l,u]=y.useState(""),[d,h]=y.useState(""),[f,m]=y.useState(""),[x,v]=y.useState("login"),[_,w]=y.useState(!1),[S,C]=y.useState(!1),[j,T]=y.useState(!1),[E,N]=y.useState(!1),[R,D]=y.useState(null);return{loginUsername:i,setLoginUsername:s,loginPassword:a,setLoginPassword:o,registerUsername:l,setRegisterUsername:u,registerPassword:d,setRegisterPassword:h,registerPasswordConfirm:f,setRegisterPasswordConfirm:m,authTab:x,setAuthTab:v,authSubmitting:_,showLoginPassword:S,setShowLoginPassword:C,showRegisterPassword:j,setShowRegisterPassword:T,showRegisterConfirmPassword:E,setShowRegisterConfirmPassword:N,authError:R,setAuthError:D,handleLogin:async I=>{if(I.preventDefault(),!_){D(null),w(!0);try{await e(i,a),o(""),r()}catch(W){D(W instanceof Error?W.message:"Login failed")}finally{w(!1)}}},handleRegister:async I=>{if(I.preventDefault(),!_){if(D(null),!l||!d){D("Username and password are required");return}if(d!==f){D("Passwords do not match");return}w(!0);try{await n(l,d),h(""),m(""),r()}catch(W){D(W instanceof Error?W.message:"Registration failed")}finally{w(!1)}}}}}function l1t({isStandaloneApp:e}){const[n,r]=y.useState(()=>x1()??""),[i,s]=y.useState(()=>e&&!RM()?"url":"auth"),[a,o]=y.useState(!1),[l,u]=y.useState(null),d=y.useCallback(async h=>{h.preventDefault();const f=n.trim();if(!f){u("Please enter a gateway URL");return}o(!0),u(null);try{const m=f.replace(/\/+$/,""),x=await fetch(`${m}/health`,{signal:AbortSignal.timeout(5e3)});if(!x.ok)throw new Error(`Server returned ${x.status}`);const v=jr();if(kJ(m),m!==v){window.location.reload();return}s("auth")}catch(m){u(m instanceof Error?m.name==="TimeoutError"||m.name==="AbortError"?"Connection timed out":m.message:"Failed to connect")}finally{o(!1)}},[n]);return{gatewayStep:i,setGatewayStep:s,gatewayUrlInput:n,setGatewayUrlInput:r,gatewayChecking:a,gatewayError:l,setGatewayError:u,checkGatewayHealth:d}}function Y3(e,n){return typeof e!="string"?n:e.trim()||n}function c1t({token:e,isElectron:n,appPlatform:r,apiUrl:i}){const[s,a]=y.useState(null),[o,l]=y.useState(!1),[u,d]=y.useState(!1),[h,f]=y.useState(!1),m=y.useRef(null),x=y.useRef(!1),v=y.useCallback(async()=>{var C;if(e){l(!0);try{if(n){const j=window.jaitDesktop,[T,E,N]=await Promise.all([(C=j.getInfo)==null?void 0:C.call(j),j.checkForUpdate(),fetch(`${i}/health`).then(I=>I.ok?I.json():null).catch(()=>null)]),R=(N==null?void 0:N.version)??"",D=(T==null?void 0:T.appVersion)??"",U=E.version??D??"",H=E.updateAvailable;a({currentVersion:R||D,latestVersion:U,hasUpdate:H})}else{const j=await fetch(`${i}/api/update/check`,{headers:{Authorization:`Bearer ${e}`}});j.ok&&a(await j.json())}}catch{}l(!1)}},[e,n,i]),_=y.useCallback(async()=>{if(!(!e||!(s!=null&&s.hasUpdate))){d(!0);try{const C=await fetch(`${i}/api/update/apply`,{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:JSON.stringify({version:s.latestVersion})});if(C.ok)m.current=s.latestVersion,x.current=!1,f(!0),Zn.success(`Updated to v${s.latestVersion}. Gateway is restarting...`);else{const j=await C.json().catch(()=>({}));Zn.error(Y3(j.error,"Update failed"))}}catch{Zn.error("Update request failed")}d(!1)}},[e,s,i]),w=y.useCallback(()=>{const C=new URL(window.location.href);C.searchParams.set("_jaitUpdate",Date.now().toString()),(async()=>{try{if("caches"in window){const j=await caches.keys();await Promise.all(j.map(T=>caches.delete(T)))}}catch{}window.location.replace(C.toString())})()},[]),S=y.useCallback(({connected:C,reconnected:j})=>{if(!C){m.current&&(x.current=!0);return}if(j&&m.current&&x.current){const T=m.current;if(m.current=null,x.current=!1,f(!1),r==="web"){Zn.success(`Gateway restarted on v${T}. Refreshing...`),w();return}Zn.success(`Gateway restarted on v${T}.`),v()}},[r,v,w]);return y.useEffect(()=>{e&&v()},[e,v]),{updateInfo:s,updateChecking:o,updateApplying:u,updateAwaitingRestart:h,handleCheckUpdate:v,handleApplyUpdate:_,handleConnectionRestart:S}}const Xhe=16,u1t=280,d1t=200;function Uj(e,n,r){return Math.min(Math.max(e,n),r)}function e3({size:e,viewport:n,margin:r=Xhe}){const i=Math.max(220,n.width-r*2),s=Math.max(160,n.height-r*2),a=Math.min(u1t,i),o=Math.min(d1t,s);return{w:Uj(e.w,a,i),h:Uj(e.h,o,s)}}function u_({position:e,size:n,viewport:r}){return{x:Uj(e.x,0,Math.max(0,r.width-n.w)),y:Uj(e.y,0,Math.max(0,r.height-n.h))}}function h1t({size:e,viewport:n,margin:r=Xhe}){return u_({position:{x:n.width-e.w-r,y:n.height-e.h-r},size:e,viewport:n})}function f1t({showScreenShare:e}){const[n,r]=y.useState({x:-1,y:-1}),[i,s]=y.useState({w:420,h:320}),a=y.useRef(null),o=y.useRef(null),l=y.useRef(null),u=y.useRef(null),d=y.useCallback(()=>({width:window.innerWidth,height:window.innerHeight}),[]),h=y.useCallback((x=i)=>h1t({size:x,viewport:d()}),[i,d]),f=y.useCallback(x=>{var N,R;if(x.pointerType!=="touch"&&x.button!==0)return;const v=x.target;if(v!=null&&v.closest('button, [role="button"], a, input, textarea, select'))return;x.preventDefault();const _=x.currentTarget,w=d(),S=e3({size:i,viewport:w}),C=n.x<0||n.y<0?h(S):u_({position:n,size:S,viewport:w});(S.w!==i.w||S.h!==i.h)&&s(S),(C.x!==n.x||C.y!==n.y)&&r(C),a.current={pointerId:x.pointerId,startX:x.clientX,startY:x.clientY,posX:C.x,posY:C.y};const j=D=>{!a.current||a.current.pointerId!==D.pointerId||r(u_({position:{x:a.current.posX+D.clientX-a.current.startX,y:a.current.posY+D.clientY-a.current.startY},size:S,viewport:d()}))},T=()=>{var D,U;(D=_.hasPointerCapture)!=null&&D.call(_,x.pointerId)&&((U=_.releasePointerCapture)==null||U.call(_,x.pointerId)),document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",E),document.removeEventListener("pointercancel",E),document.body.style.cursor="",document.body.style.userSelect="",l.current=null},E=D=>{!a.current||a.current.pointerId!==D.pointerId||(a.current=null,T())};x.pointerType!=="touch"&&(document.body.style.cursor="move"),document.body.style.userSelect="none",(N=l.current)==null||N.call(l),l.current=T,(R=_.setPointerCapture)==null||R.call(_,x.pointerId),document.addEventListener("pointermove",j),document.addEventListener("pointerup",E),document.addEventListener("pointercancel",E)},[n,i,h,d]),m=y.useCallback(x=>{var T,E;if(x.pointerType!=="touch"&&x.button!==0)return;x.preventDefault(),x.stopPropagation();const v=x.currentTarget,_=d(),w=e3({size:i,viewport:_});(w.w!==i.w||w.h!==i.h)&&s(w),o.current={pointerId:x.pointerId,startX:x.clientX,startY:x.clientY,w:w.w,h:w.h};const S=N=>{if(!o.current||o.current.pointerId!==N.pointerId)return;const R=e3({size:{w:o.current.w+N.clientX-o.current.startX,h:o.current.h+N.clientY-o.current.startY},viewport:d()});s(R),r(D=>D.x<0||D.y<0?D:u_({position:D,size:R,viewport:d()}))},C=()=>{var N,R;(N=v.hasPointerCapture)!=null&&N.call(v,x.pointerId)&&((R=v.releasePointerCapture)==null||R.call(v,x.pointerId)),document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",j),document.removeEventListener("pointercancel",j),document.body.style.cursor="",document.body.style.userSelect="",u.current=null},j=N=>{!o.current||o.current.pointerId!==N.pointerId||(o.current=null,C())};x.pointerType!=="touch"&&(document.body.style.cursor="nwse-resize"),document.body.style.userSelect="none",(T=u.current)==null||T.call(u),u.current=C,(E=v.setPointerCapture)==null||E.call(v,x.pointerId),document.addEventListener("pointermove",S),document.addEventListener("pointerup",j),document.addEventListener("pointercancel",j)},[i,d]);return y.useEffect(()=>{var x,v;e||(a.current=null,o.current=null,(x=l.current)==null||x.call(l),(v=u.current)==null||v.call(u),document.body.style.cursor="",document.body.style.userSelect="")},[e]),y.useEffect(()=>()=>{var x,v;(x=l.current)==null||x.call(l),(v=u.current)==null||v.call(u),document.body.style.cursor="",document.body.style.userSelect=""},[]),y.useEffect(()=>{if(!e)return;const x=()=>{const v=d();let _;s(w=>{const S=e3({size:w,viewport:v});return _=S,S.w===w.w&&S.h===w.h?w:S}),r(w=>{if(w.x<0&&w.y<0)return w;const S=u_({position:w,size:_,viewport:v});return S.x===w.x&&S.y===w.y?w:S})};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[e,d]),{floatingSSPos:n,floatingSSSize:i,onFloatingDragStart:f,onFloatingResizeStart:m}}const RG=360;function p1t(){const[e,n]=y.useState(RG),r=y.useRef(RG),[i,s]=y.useState(480),a=y.useRef(!1),o=y.useCallback(u=>{u.preventDefault(),a.current=!0;const d=u.clientY,h=e,f=window.innerHeight*.9,m=()=>{a.current=!1,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",v),window.removeEventListener("blur",_),document.body.style.cursor="",document.body.style.userSelect=""},x=w=>{if(!a.current)return;const S=d-w.clientY;n(Math.min(f,Math.max(160,h+S)))},v=()=>{m()},_=()=>{m()};document.body.style.cursor="row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",x),document.addEventListener("mouseup",v),window.addEventListener("blur",_)},[e]),l=y.useCallback(u=>{u.preventDefault();const d=u.clientX,h=i,f=window.innerWidth*.7,m=v=>{const _=v.clientX-d;s(Math.min(f,Math.max(280,h+_)))},x=()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",x),window.removeEventListener("blur",x),document.body.style.cursor="",document.body.style.userSelect=""};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",m),document.addEventListener("mouseup",x),window.addEventListener("blur",x)},[i]);return{terminalHeight:e,setTerminalHeight:n,terminalHeightBeforeFullscreenRef:r,terminalColumnWidth:i,handleTerminalDragStart:o,handleTerminalColumnDragStart:l}}function m1t(){const[e,n]=y.useState(null),r=y.useRef(null),i=y.useCallback(s=>{var l;if((l=r.current)==null||l.disconnect(),r.current=null,!s||typeof ResizeObserver>"u"){n(null);return}const a=()=>{n(Math.round(s.getBoundingClientRect().width))};a();const o=new ResizeObserver(a);o.observe(s),r.current=o},[]);return y.useEffect(()=>()=>{var s;return(s=r.current)==null?void 0:s.disconnect()},[]),{chatMeasuredWidth:e,setChatPanelElement:i}}function g1t(){const[e,n]=y.useState(null),[r,i]=y.useState(!1);return y.useEffect(()=>{var o,l,u;const s=window.jaitDesktop;if(!s)return;(o=s.getInfo)==null||o.call(s).then(d=>n(d.platform)),(l=s.windowIsMaximized)==null||l.call(s).then(d=>i(d));const a=(u=s.onMaximizedChange)==null?void 0:u.call(s,(d,h)=>i(h));return()=>{a==null||a()}},[]),{desktopPlatform:e,isMaximized:r}}function y1t(){const e=y.useRef(""),[n,r]=y.useState(0),[i,s]=y.useState(void 0),a=y.useCallback(l=>{const u=typeof l=="function"?l(e.current):l;e.current=u,r(d=>d+1)},[]),o=y.useCallback(l=>{e.current=l},[]);return{inputValueRef:e,inputVersion:n,inputSegments:i,setInputSegments:s,setInputValue:a,handleInputChange:o}}function x1t(e){y.useEffect(()=>{const n=window.launchQueue;n&&n.setConsumer(async r=>{if(r.files.length)for(const i of r.files)try{const s=await i.getFile(),a=s.type||"application/octet-stream",o=new FileReader;o.onload=()=>{var d,h;const l=o.result.split(",")[1]??"",u=a.startsWith("image/")?o.result:void 0;(d=e.current)==null||d.addAttachment({name:s.name,mimeType:a,data:l,preview:u}),(h=e.current)==null||h.focus()},s.type.startsWith("image/")?o.readAsDataURL(s):o.readAsDataURL(new Blob([await s.arrayBuffer()],{type:a}))}catch{}})},[e])}function v1t(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const n=e;return typeof n.id!="string"||typeof n.scope!="string"||n.scope!=="project"&&n.scope!=="contact"?null:{id:n.id,scope:n.scope,source:typeof n.source=="string"?n.source:"",sourceType:typeof n.sourceType=="string"?n.sourceType:void 0,sourceId:typeof n.sourceId=="string"?n.sourceId:void 0,sourceSurface:typeof n.sourceSurface=="string"?n.sourceSurface:void 0,updatedAt:typeof n.updatedAt=="string"?n.updatedAt:"",content:typeof n.content=="string"?n.content:""}}function F8(e){return Array.isArray(e)?e.filter(n=>typeof n=="string"):[]}function AR(e){const n=e.memory&&typeof e.memory=="object"&&!Array.isArray(e.memory)?e.memory:null,r=Array.isArray(n==null?void 0:n.retrieved)?n.retrieved.map(v1t).filter(s=>!!s):[],i=n?{query:typeof n.query=="string"?n.query:"",retrieved:r,injectedIds:F8(n.injectedIds),ignoredIds:F8(n.ignoredIds),savedIds:F8(n.savedIds)}:void 0;return{provider:String(e.provider??"jait"),model:typeof e.model=="string"?e.model:void 0,rounds:Array.isArray(e.rounds)?e.rounds:[],note:typeof e.note=="string"?e.note:void 0,...i?{memory:i}:{}}}function o1(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Os(e){return typeof e=="string"&&e.trim()?e:null}function Jhe(e){if(typeof e!="string")return null;try{const n=JSON.parse(e);return o1(n)}catch{return null}}function d_(...e){const n={};for(const r of e)if(r)for(const[i,s]of Object.entries(r))s!=null&&s!==""&&(n[i]=s);return n}function H8(e,n){const r=o1(e.args),i=o1(e.data),s=Jhe(e.message),a=n.replace("_","."),o=d_(i,s);return Object.keys(r??{}).length>0?d_(o,r):a==="edit"||a.startsWith("file.")?d_(o,{path:Os(e.path)??Os(e.file)??Os(e.name)??Os(i==null?void 0:i.path)??Os(i==null?void 0:i.file)??"",search:e.search??(i==null?void 0:i.search),replace:e.replace??(i==null?void 0:i.replace),content:e.content??(i==null?void 0:i.content)}):a==="web"||a.startsWith("web.")||a.startsWith("browser.")?d_(o,{url:Os(e.url)??Os(i==null?void 0:i.url)??Os(i==null?void 0:i.finalUrl)??"",query:Os(e.query)??Os(e.name)??Os(i==null?void 0:i.query)??"",content:e.content??(i==null?void 0:i.content)}):o}function b1t(e,n){const r=Os(e.message)??Os(e.output)??Os(e.content)??Os(e.text)??Os(e.summary);if(r)return r;const i=o1(e.data),s=Os(i==null?void 0:i.message)??Os(i==null?void 0:i.output)??Os(i==null?void 0:i.content)??Os(i==null?void 0:i.text)??Os(i==null?void 0:i.summary);return s||n}function _1t(e){const n=[];let r=null,i=[];const s=new Map;let a=[];function o(){a.length>0&&(i.push({type:"toolGroup",callIds:[...a]}),a=[])}function l(){r&&(o(),i.length>0&&(r.segments=[...i]),n.push(r),r=null,i=[])}function u(d){return(!r||r.role!=="assistant")&&(l(),r={id:d,role:"assistant",content:"",toolCalls:[]},i=[]),r}for(const d of e){const h=d.payload??{};switch(d.kind){case"message":{const f=h.role,m=typeof h.content=="string"?h.content:d.summary,x=Array.isArray(h.referencedFiles)?h.referencedFiles.flatMap(_=>{if(!_||typeof _!="object")return[];const w=typeof _.path=="string"?_.path:null,S=typeof _.name=="string"?_.name:null;return w&&S?[{path:w,name:S}]:[]}):void 0,v=Tj(h.displaySegments);if(f==="user")l(),n.push({id:d.id,role:"user",content:m,displayContent:v.length>0?R0(v):m,referencedFiles:x,displaySegments:v.length>0?v:void 0});else{const _=u(d.id);o();const w=m??"";w&&(_.content+=(_.content?`
1475
1475
  `:"")+w,i.push({type:"text",content:w}))}break}case"tool.start":{const f=u(d.id),m=h.callId??d.id,x=h.tool??"unknown";if(s.has(m))break;const v={callId:m,parentCallId:h.parentCallId,tool:x,args:Oc(x,H8(h,x)),status:"running",startedAt:new Date(d.createdAt).getTime()};f.toolCalls=f.toolCalls??[],f.toolCalls.push(v),s.set(m,v),a.push(m);break}case"tool.output":{const f=h.callId;if(f&&s.has(f)){const m=s.get(f);m.streamingOutput=(m.streamingOutput??"")+(h.content??"")}break}case"tool.result":case"tool.error":{const f=h.callId,m=h.tool??"unknown",x=typeof h.ok=="boolean"?h.ok:d.kind==="tool.result",v=b1t(h,d.summary),_=h.data!==void 0?h.data:Jhe(h.message);let w=f?s.get(f):void 0;if(!w){const S=u(d.id),C=f??d.id;w={callId:C,parentCallId:h.parentCallId,tool:m,args:Oc(m,H8(h,m),o1(_)??void 0),status:x?"success":"error",startedAt:new Date(d.createdAt).getTime()},S.toolCalls=S.toolCalls??[],S.toolCalls.push(w),s.set(C,w),a.push(C)}w.args=Oc(w.tool,d_(w.args,H8(h,m)),o1(_)??void 0),w.parentCallId=w.parentCallId??h.parentCallId,w.status=x?"success":"error",w.result={ok:x,message:v,..._!==void 0?{data:_}:{}},w.completedAt=new Date(d.createdAt).getTime();break}case"tool.approval":{const f=u(d.id),m=h.requestId??d.id,x={callId:m,parentCallId:h.parentCallId,tool:h.tool??"unknown",args:Oc(String(h.tool??"unknown"),h.args??{}),status:"pending",startedAt:new Date(d.createdAt).getTime()};f.toolCalls=f.toolCalls??[],f.toolCalls.push(x),s.set(m,x),a.push(m);break}case"skill.active":{const f=u(d.id),m=Array.isArray(h.names)?h.names.join(", "):"unknown",x=Array.isArray(h.skills)?h.skills:[],v=d.id,_={callId:v,parentCallId:h.parentCallId,tool:"skill",args:{skills:x.map(w=>w.name).join(", ")},status:"success",startedAt:new Date(d.createdAt).getTime(),completedAt:new Date(d.createdAt).getTime(),result:{ok:!0,message:`Using skills: ${m}`}};f.toolCalls=f.toolCalls??[],f.toolCalls.push(_),s.set(v,_),a.push(v);break}case"context_flow":{const f=AR(h),m=r;if(m&&m.role==="assistant")m.contextFlow=f;else for(let x=n.length-1;x>=0;x--){const v=n[x];if(v&&v.role==="assistant"){v.contextFlow=f;break}}break}case"session":{l();break}case"error":{const f=u(d.id);o();const m=`**Error:** ${d.summary}`;f.content+=(f.content?`
1476
1476
  `:"")+m,i.push({type:"text",content:m});break}case"thinking":{const f=typeof h.content=="string"?h.content:typeof h.text=="string"?h.text:typeof h.message=="string"?h.message:d.summary;if(f){const m=u(d.id);o(),m.thinking=(m.thinking??"")+f;const x=i[i.length-1];(x==null?void 0:x.type)==="thinking"?x.content+=f:i.push({type:"thinking",content:f})}break}default:{const m=(typeof h.content=="string"?h.content:typeof h.text=="string"?h.text:typeof h.message=="string"?h.message:null)??(d.kind==="activity"?d.summary:null);if(h.role==="user"&&m)l(),n.push({id:d.id,role:"user",content:m});else if(m){const v=u(d.id);o(),v.content+=(v.content?`
1477
- `:"")+m,i.push({type:"text",content:m})}break}}}return l(),n}function w1t(e,n){return`${e??""}::${n??""}`}function S1t({viewMode:e,sendTarget:n,projectId:r,projectRepoId:i,repositories:s,lastAppliedKey:a}){if(e!=="developer"||n!=="thread")return null;const o=w1t(r,i);return a===o?null:i?s.some(l=>l.id===i)?{nextAppliedKey:o,repoId:i}:null:{nextAppliedKey:o,repoId:null}}function k1t({activeProjectId:e,activeProjectRecord:n,automation:r,isMobile:i,managerMessageQueues:s,sendTarget:a,viewMode:o}){const l=y.useMemo(()=>Qde(n),[n]),u=y.useMemo(()=>_1t(r.activities),[r.activities]),d=y.useMemo(()=>[...r.threads].sort((D,U)=>new Date(U.updatedAt).getTime()-new Date(D.updatedAt).getTime()),[r.threads]),h=y.useMemo(()=>r.selectedRepo?r.getRuntimeInfoForRepository(r.selectedRepo):null,[r.getRuntimeInfoForRepository,r.selectedRepo]),f=y.useMemo(()=>r.selectedThread?r.getRepositoryForThread(r.selectedThread):null,[r.getRepositoryForThread,r.selectedThread]),m=y.useMemo(()=>f?r.getRuntimeInfoForRepository(f):null,[r.getRuntimeInfoForRepository,f]),x=r.selectedRepo,v=y.useMemo(()=>x?r.getRuntimeInfoForRepository(x):null,[r.getRuntimeInfoForRepository,x]),_=y.useMemo(()=>d.filter(D=>D.status==="running"),[d]),w=i&&o==="manager"&&!!r.selectedThread,S=y.useMemo(()=>r.selectedThread?s[r.selectedThread.id]??[]:[],[r.selectedThread,s]),C=x!=null,j=v!=null&&!v.online&&!v.loading,T=r.creating||!C||j,E=x?j?"Repository is offline...":r.selectedThread?"Send a follow-up to the selected thread...":"Describe what you want to do...":"Select a repository to start a thread...",N=a==="thread"?E:a==="swarm"?"Describe a multi-agent task...":"Ask anything...",R=y.useRef(null);return y.useEffect(()=>{const D=S1t({viewMode:o,sendTarget:a,projectId:e,projectRepoId:l,repositories:r.repositories,lastAppliedKey:R.current});D&&(R.current=D.nextAppliedKey,D.repoId&&r.selectedRepoId!==D.repoId&&r.setSelectedRepoId(D.repoId))},[e,l,r.repositories,r.selectedRepoId,r.setSelectedRepoId,a,o]),{activeProjectRepositoryId:l,automationMessages:u,managerThreads:d,selectedRepoRuntime:h,selectedThreadRepo:f,selectedThreadRepoRuntime:m,threadTargetRepo:x,threadTargetRepoRuntime:v,activeManagerThreads:_,compactManagerToolbar:w,selectedManagerQueue:S,canTargetThread:C,selectedRepoOffline:j,threadComposerDisabled:T,threadPlaceholder:E,developerPlaceholder:N}}function C1t(e,n){const r=n.panel?{open:n.panel.open,remotePath:n.panel.remotePath,nodeId:n.panel.nodeId}:null;return JSON.stringify({projectId:e,panel:r,tabs:n.tabs,layout:n.layout,terminal:n.terminal,preview:n.preview})}function MG(e,n){return JSON.stringify(e??null)===JSON.stringify(n??null)}function OR(e){const n=(e==null?void 0:e.trim())||"";return n&&n!=="__preview__"?n:null}function PG(e,n){return n?e.tree?{tree:!0,editor:!1}:e.editor?$0("editor"):VS():!e.tree&&!e.editor?{tree:!1,editor:!0}:e}function VS(){return{tree:!1,editor:!1}}function $0(e){return e==="tree"?{tree:!0,editor:!1}:{tree:!1,editor:!0}}function j1t(e="background"){return e==="editor"?$0("editor"):VS()}function LG(e,n){const r=n==="tree"?e.tree:e.editor,i=n==="tree"?e.editor:e.tree;return r&&!i?VS():$0(n)}function N1t({activeProject:e,activeSessionId:n,closeProjectPanelRef:r,closeProjectPreview:i,consumeSuppressedUiSync:s,devPreviewTarget:a,isMobile:o,prevProjectPanelPayloadRef:l,projectPreviewState:u,routePreviewToProject:d,savedDevPreview:h,sendUIState:f,setCurrentView:m,setDevPreviewTarget:x,setMobileTreeTab:v,setProjectPreviewRequest:_,setProjectPreviewState:w,setSavedDevPreview:S,setSavedProject:C,setSavedScreenShare:j,setSavedTerminal:T,setShowProject:E,setShowScreenShare:N,setShowTerminal:R,setTerminalFullscreen:D,showProjectEditor:U,showProjectRef:H,showProjectTree:I,suppressProjectAutoOpenRef:W,applyProjectLayout:$}){const O=y.useCallback(()=>{N(!0),j({open:!0}),!s("screen-share.panel")&&f("screen-share.panel",{open:!0},n)},[j,f,n,s,N]),z=y.useCallback(()=>{N(!1),j(null),!s("screen-share.panel")&&f("screen-share.panel",null,n)},[j,f,n,s,N]),M=y.useCallback(()=>{i(),x(null),_(null),w({open:!1,target:null,displayState:"hidden",displayTarget:null}),S(null)},[i,x,_,w,S]),L=y.useRef(""),B=y.useCallback(Q=>{const le=OR(Q.target),me=Q.open?le?"connected":"blank":"hidden",ae={open:Q.open,target:le,displayState:me,displayTarget:me==="connected"?le:null};if(w(se=>se.open===ae.open&&se.target===ae.target&&se.displayState===ae.displayState&&se.displayTarget===ae.displayTarget?se:ae),Q.open&&le){const se={open:!0,target:le??a??null,projectRoot:(e==null?void 0:e.projectRoot)??null,displayState:me,displayTarget:me==="connected"?le??a??null:null},xe=`${se.open}:${se.target??""}:${se.projectRoot??""}:${se.displayState??""}:${se.displayTarget??""}`;if(xe===L.current)return;L.current=xe,S(se);return}L.current!==""&&(L.current="",S(null))},[e==null?void 0:e.projectRoot,a,S,w]),G=(h==null?void 0:h.open)===!0||u.open,V=y.useCallback(()=>{R(!0),T({open:!0},{immediate:o}),!s("terminal.panel")&&f("terminal.panel",{open:!0},n)},[T,f,n,s,o,R]),F=y.useCallback(()=>{R(!1),D(!1),T(null,{immediate:o}),!s("terminal.panel")&&f("terminal.panel",null,n)},[T,f,n,s,o,R,D]),X=y.useCallback(()=>{W.current=!0,H.current=!1,E(!1);const Q=e?{open:!1,remotePath:e.projectRoot,surfaceId:e.surfaceId,nodeId:e.nodeId}:null;if(l.current=JSON.stringify(Q),o){const le=VS();$(le,{immediateSync:!0})}Q&&C(Q,{immediate:!0})},[e,$,o,C,E,H,W,l]);r.current=X;const q=y.useCallback(()=>{if(o){const le=LG({tree:I,editor:U},"tree");$(le,{immediateSync:!0});return}const Q=rPe({tree:I,editor:U});$(Q,{immediateSync:!0})},[$,o,I,U]),ee=y.useCallback(()=>{if(o){const Q=LG({tree:I,editor:U},"editor");$(Q,{immediateSync:!0});return}$({tree:I,editor:!U},{immediateSync:!0})},[$,o,I,U]),Z=y.useCallback(Q=>{v(Q);const le=$0("tree");$(le,{immediateSync:!0})},[$,v]),te=y.useCallback(()=>{const Q=$0("editor");$(Q,{immediateSync:!0})},[$]),re=y.useCallback(Q=>{m("chat");const le=(Q==null?void 0:Q.trim())||(a==null?void 0:a.trim())||null;x(le);const me={open:!0,target:le,projectRoot:(e==null?void 0:e.projectRoot)??null};S(me),d(le,(e==null?void 0:e.projectRoot)??null)},[S,a,d,e==null?void 0:e.projectRoot,m,x]);return{closeDevPreviewPanel:M,closeProjectPanel:X,closeScreenSharePanel:z,closeTerminalPanel:F,handleProjectPreviewOpenChange:B,openDevPreviewPanel:re,openScreenSharePanel:O,openTerminalPanel:V,previewOpen:G,showMobileProjectEditorTab:te,showMobileProjectTreeTab:Z,toggleProjectEditor:ee,toggleProjectTree:q}}const t3=jr();function T1t({acceptFile:e,activeProject:n,activeProjectRecord:r,activeSessionId:i,openRemoteProjectOnGateway:s,projectFiles:a,projectRef:o,setActiveProjectFileId:l,setProjectFiles:u,setShowProject:d,showProject:h,showProjectEditorPanel:f,showProjectRef:m,token:x}){const v=y.useCallback(E=>{E.length!==0&&(u(N=>{const R=[...N];for(const D of E){const U=R.findIndex(H=>H.path===D.path);U>=0?R[U]=D:R.push(D)}return R}),l(N=>{var R;return N??((R=E[0])==null?void 0:R.id)??null}))},[l,u]),_=y.useCallback(E=>bq(E,n==null?void 0:n.projectRoot)?(n==null?void 0:n.projectRoot)??null:r!=null&&r.rootPath&&bq(E,r.rootPath)?r.rootPath:null,[n==null?void 0:n.projectRoot,r==null?void 0:r.rootPath]),w=y.useCallback(async E=>{var N;try{const R=_(E);if(!R){Zn("File is outside the active project. Open its directory explicitly to browse it.");return}R&&(!n||n.projectRoot!==R)&&await s(R,n==null?void 0:n.nodeId,i);const D={};x&&(D.Authorization=`Bearer ${x}`);const U=n!=null&&n.surfaceId&&R===n.projectRoot?`&surfaceId=${encodeURIComponent(n.surfaceId)}`:"",H=E.split(/[/\\]/).pop()??E,I=C_(H),W=async()=>(h||(m.current=!0,d(!0)),f(),o.current?!0:(await new Promise(G=>requestAnimationFrame(()=>G())),o.current!=null)),$=async(G,V,F)=>{var q;await W()&&(await((q=o.current)==null?void 0:q.openReviewDiff({path:G,originalContent:V??"",modifiedContent:F,language:I})),f())},O=async(G,V)=>{if(!R)return!1;try{const F=await Cs.fileDiffs(R),X=G.replace(/\\/g,"/"),q=F.find(ee=>ee.path===X)??F.find(ee=>X.endsWith(`/${ee.path}`));return q?(await $(G,q.original,V||q.modified),!0):!1}catch{return!1}},z=await fetch(`${t3}/api/project/backup?path=${encodeURIComponent(E)}${U}`,{headers:D});if(z.ok){const G=await z.json();await $(G.path,G.originalContent,G.currentContent);return}const M=await((N=o.current)==null?void 0:N.readFileByPath(E));if(M){if(await O(M.path,M.content))return;await $(M.path,M.content,M.content);return}const L=await fetch(`${t3}/api/project/read?path=${encodeURIComponent(E)}${U}`,{headers:D});if(!L.ok)return;const B=await L.json();if(await O(B.path,B.content))return;await $(B.path,B.content,B.content)}catch{}},[i,n,s,_,x,h,f,o,d,m]),S=y.useCallback(async E=>{var N;try{const R=_(E);if(!R){const H=a.find(I=>I.path===E);if(H){v([H]),l(H.id),h||(m.current=!0,d(!0)),f();return}Zn("File is outside the active project. Open its directory explicitly to browse it.");return}if(R&&(!n||n.projectRoot!==R)&&await s(R,n==null?void 0:n.nodeId,i),await((N=o.current)==null?void 0:N.openFileByPath(E))){h||(m.current=!0,d(!0)),f();return}const U=a.find(H=>H.path===E);if(U)v([U]),l(U.id);else{const H={};x&&(H.Authorization=`Bearer ${x}`);const I=await fetch(`${t3}/api/project/read?path=${encodeURIComponent(E)}`,{headers:H});if(!I.ok)throw new Error(`Failed to open file: ${I.status}`);const W=await I.json(),$=E.split(/[\\/]/).pop()??E,O={id:W.path,name:$,path:W.path,content:W.content,language:C_($)};v([O]),l(O.id)}h||(m.current=!0,d(!0)),f()}catch(R){Zn(R instanceof Error?R.message:"Failed to open linked file")}},[i,n,v,s,_,h,f,x,a,o,l,d,m]),C=y.useCallback(async(E,N)=>{try{const R={"Content-Type":"application/json"};x&&(R.Authorization=`Bearer ${x}`),await fetch(`${t3}/api/project/apply-diff`,{method:"POST",headers:R,body:JSON.stringify({path:E,content:N})})}catch{}e(E)},[x,e]),j=y.useCallback(async E=>{const N=Array.from(E),R=await Promise.all(N.filter(D=>D.size<1024*1024).map(async D=>{const U=await D.text(),H=D.webkitRelativePath||D.name;return{id:`${H}-${D.lastModified}`,name:D.name,path:H,content:U,language:C_(H)}}));v(R)},[v]),T=y.useCallback(async(E,N,R)=>{var D;return((D=o.current)==null?void 0:D.searchFiles(E,N,R))??[]},[o]);return{handleApplyProjectDiff:C,handleChangedFileClick:w,handleFileDrop:j,handleOpenMessagePath:S,handleSearchFiles:T,mergeProjectFiles:v,resolveKnownProjectRootForFile:_}}function Vj(e){return Array.isArray(e)?e:[]}function E1t(e,n){const r=Vj(n);return e.length>0&&r.length===0?e:r}function A1t(e){return e.length>0?e:null}function O1t({activeSessionId:e,chatMode:n,chatResponseStyle:r,chatProviderRuntimeMode:i,consumeSuppressedUiSync:s,loadingChatMode:a,loadingChatResponseStyle:o,loadingChatView:l,loadingProviderRuntimeMode:u,managerMessageQueues:d,messageQueue:h,sendUIState:f,setOnChangedFilesSync:m,setSavedChangedFiles:x,setSavedChatMode:v,setSavedChatResponseStyle:_,setSavedChatView:w,setSavedProviderRuntimeMode:S,setSavedQueuedMessages:C,setSavedQueuedThreadMessages:j,setSavedTodoList:T,showMobileToolbar:E,todoList:N,token:R,viewMode:D,wsFullStateReceivedRef:U}){const H=y.useRef(null),I=y.useRef(null),W=y.useRef(null),$=y.useRef(null),O=y.useRef(null),z=y.useRef(null),M=y.useRef(null),L=y.useRef(null);y.useEffect(()=>{if(e&&R&&!U.current)return;const B={open:E},G=JSON.stringify(B);G!==I.current&&(I.current=G,!s("footer.menu")&&f("footer.menu",B,e))},[e,s,f,E,R,U]),y.useEffect(()=>{e&&R&&a||n!==H.current&&(H.current=n,v(n),!s("chat.mode")&&f("chat.mode",n,e))},[n,v,f,e,a,R,s]),y.useEffect(()=>{e&&R&&o||r!==W.current&&(W.current=r,_(r),!s("chat.responseStyle")&&f("chat.responseStyle",r,e))},[r,_,f,e,o,R,s]),y.useEffect(()=>{e&&R&&u||i!==$.current&&($.current=i,S(i),!s("chat.providerRuntimeMode")&&f("chat.providerRuntimeMode",i,e))},[i,S,f,e,u,R,s]),y.useEffect(()=>{e&&R&&l||D!==O.current&&(O.current=D,w(D),!s("chat.view")&&f("chat.view",D,e))},[D,w,f,e,l,R,s]),y.useEffect(()=>{const B=h.length>0?h:null,G=JSON.stringify(B);G!==z.current&&(z.current=G,C(B),!s("queued_messages")&&f("queued_messages",B,e))},[h,C,f,e,s]),y.useEffect(()=>{if(e&&R&&!U.current)return;const B=A1t(N),G=`${e??""}:${JSON.stringify(B)}`;G!==M.current&&(M.current=G,T(B),!s("todo_list")&&f("todo_list",B,e))},[N,T,f,e,s,R,U]),y.useEffect(()=>{const B=Object.keys(d).length>0?d:null,G=`${e??""}:${JSON.stringify(B)}`;G!==L.current&&(L.current=G,j(B),!s("queued_thread_messages")&&f("queued_thread_messages",B,e))},[d,j,f,e,s]),y.useEffect(()=>(m(B=>{const G=B.length>0?B:null;x(G),!s("changed_files")&&f("changed_files",G,e)}),()=>m(null)),[f,e,m,s,x])}function n3(e,n){const r=[...e??[]],i=new Set(r.flatMap(s=>s.type==="image"||s.type==="attachment"?[`${s.name}:${s.mimeType}:${s.data}`]:[]));for(const s of n??[]){const a=`${s.name}:${s.mimeType}:${s.data}`;i.has(a)||(i.add(a),s.mimeType.startsWith("image/")?r.push({type:"image",name:s.name,mimeType:s.mimeType,data:s.data}):r.push({type:"attachment",name:s.name,mimeType:s.mimeType,data:s.data}))}return r.length>0?r:void 0}function R1t(e,n,r){return[{type:"file",path:e.path,name:e.name,...e.kind?{kind:e.kind}:{},lineRange:{startLine:n,endLine:r}}]}function M1t(e,n,r,i){const s=Math.max(1,n.split(/\r?\n/).length),a=r&&i&&i>=r?{startLine:r,endLine:i}:{startLine:1,endLine:s};return[{type:"terminal",terminalId:e.terminalId,name:e.name,...e.projectRoot?{projectRoot:e.projectRoot}:{},lineRange:a,selectedText:n.trim()}]}function P1t(e){var s,a,o;const n=((s=e.name)==null?void 0:s.trim())||((a=e.text)==null?void 0:a.trim())||((o=e.placeholder)==null?void 0:o.trim())||"unnamed element";return[{type:"text",text:`${[`Selected preview element: ${e.role??e.tagName??"element"} "${n}"`,e.selector?`Selector: ${e.selector}`:null,e.placeholder?`Placeholder: ${e.placeholder}`:null,e.value?`Value: ${e.value}`:null].filter(Boolean).join(`
1477
+ `:"")+m,i.push({type:"text",content:m})}break}}}return l(),n}function w1t(e,n){return`${e??""}::${n??""}`}function S1t({viewMode:e,sendTarget:n,projectId:r,projectRepoId:i,repositories:s,lastAppliedKey:a}){if(e!=="developer"||n!=="thread")return null;const o=w1t(r,i);return a===o?null:i?s.some(l=>l.id===i)?{nextAppliedKey:o,repoId:i}:null:{nextAppliedKey:o,repoId:null}}function k1t({activeProjectId:e,activeProjectRecord:n,automation:r,isMobile:i,managerMessageQueues:s,sendTarget:a,viewMode:o}){const l=y.useMemo(()=>Qde(n),[n]),u=y.useMemo(()=>_1t(r.activities),[r.activities]),d=y.useMemo(()=>[...r.threads].sort((D,U)=>new Date(U.updatedAt).getTime()-new Date(D.updatedAt).getTime()),[r.threads]),h=y.useMemo(()=>r.selectedRepo?r.getRuntimeInfoForRepository(r.selectedRepo):null,[r.getRuntimeInfoForRepository,r.selectedRepo]),f=y.useMemo(()=>r.selectedThread?r.getRepositoryForThread(r.selectedThread):null,[r.getRepositoryForThread,r.selectedThread]),m=y.useMemo(()=>f?r.getRuntimeInfoForRepository(f):null,[r.getRuntimeInfoForRepository,f]),x=r.selectedRepo,v=y.useMemo(()=>x?r.getRuntimeInfoForRepository(x):null,[r.getRuntimeInfoForRepository,x]),_=y.useMemo(()=>d.filter(D=>D.status==="running"),[d]),w=i&&o==="manager"&&!!r.selectedThread,S=y.useMemo(()=>r.selectedThread?s[r.selectedThread.id]??[]:[],[r.selectedThread,s]),C=x!=null,j=v!=null&&!v.online&&!v.loading,T=r.creating||!C||j,E=x?j?"Repository is offline...":r.selectedThread?"Send a follow-up to the selected thread...":"Describe what you want to do...":"Select a repository to start a thread...",N=a==="thread"?E:a==="swarm"?"Describe a multi-agent task...":"Ask anything...",R=y.useRef(null);return y.useEffect(()=>{const D=S1t({viewMode:o,sendTarget:a,projectId:e,projectRepoId:l,repositories:r.repositories,lastAppliedKey:R.current});D&&(R.current=D.nextAppliedKey,D.repoId&&r.selectedRepoId!==D.repoId&&r.setSelectedRepoId(D.repoId))},[e,l,r.repositories,r.selectedRepoId,r.setSelectedRepoId,a,o]),{activeProjectRepositoryId:l,automationMessages:u,managerThreads:d,selectedRepoRuntime:h,selectedThreadRepo:f,selectedThreadRepoRuntime:m,threadTargetRepo:x,threadTargetRepoRuntime:v,activeManagerThreads:_,compactManagerToolbar:w,selectedManagerQueue:S,canTargetThread:C,selectedRepoOffline:j,threadComposerDisabled:T,threadPlaceholder:E,developerPlaceholder:N}}function C1t(e,n){const r=n.panel?{open:n.panel.open,remotePath:n.panel.remotePath,nodeId:n.panel.nodeId}:null;return JSON.stringify({projectId:e,panel:r,tabs:n.tabs,layout:n.layout,terminal:n.terminal,preview:n.preview})}function MG(e,n){return JSON.stringify(e??null)===JSON.stringify(n??null)}function OR(e){const n=(e==null?void 0:e.trim())||"";return n&&n!=="__preview__"?n:null}function PG(e,n){return n?e.tree?{tree:!0,editor:!1}:e.editor?$0("editor"):VS():!e.tree&&!e.editor?{tree:!1,editor:!0}:e}function VS(){return{tree:!1,editor:!1}}function $0(e){return e==="tree"?{tree:!0,editor:!1}:{tree:!1,editor:!0}}function j1t(e="background"){return e==="editor"?$0("editor"):VS()}function LG(e,n){const r=n==="tree"?e.tree:e.editor,i=n==="tree"?e.editor:e.tree;return r&&!i?VS():$0(n)}function N1t({activeProject:e,activeSessionId:n,closeProjectPanelRef:r,closeProjectPreview:i,consumeSuppressedUiSync:s,devPreviewTarget:a,isMobile:o,prevProjectPanelPayloadRef:l,projectPreviewState:u,routePreviewToProject:d,savedDevPreview:h,sendUIState:f,setCurrentView:m,setDevPreviewTarget:x,setMobileTreeTab:v,setProjectPreviewRequest:_,setProjectPreviewState:w,setSavedDevPreview:S,setSavedProject:C,setSavedScreenShare:j,setSavedTerminal:T,setShowProject:E,setShowScreenShare:N,setShowTerminal:R,setTerminalFullscreen:D,showProjectEditor:U,showProjectRef:H,showProjectTree:I,suppressProjectAutoOpenRef:W,applyProjectLayout:$}){const O=y.useCallback(()=>{N(!0),j({open:!0}),!s("screen-share.panel")&&f("screen-share.panel",{open:!0},n)},[j,f,n,s,N]),z=y.useCallback(()=>{N(!1),j(null),!s("screen-share.panel")&&f("screen-share.panel",null,n)},[j,f,n,s,N]),M=y.useCallback(()=>{i(),x(null),_(null),w({open:!1,target:null,displayState:"hidden",displayTarget:null}),S(null)},[i,x,_,w,S]),L=y.useRef(""),B=y.useCallback(Q=>{const le=OR(Q.target),me=Q.open?le?"connected":"blank":"hidden",ae={open:Q.open,target:le,displayState:me,displayTarget:me==="connected"?le:null};if(w(se=>se.open===ae.open&&se.target===ae.target&&se.displayState===ae.displayState&&se.displayTarget===ae.displayTarget?se:ae),Q.open&&le){const se={open:!0,target:le??a??null,projectRoot:(e==null?void 0:e.projectRoot)??null,displayState:me,displayTarget:me==="connected"?le??a??null:null},xe=`${se.open}:${se.target??""}:${se.projectRoot??""}:${se.displayState??""}:${se.displayTarget??""}`;if(xe===L.current)return;L.current=xe,S(se);return}L.current!==""&&(L.current="",S(null))},[e==null?void 0:e.projectRoot,a,S,w]),G=(h==null?void 0:h.open)===!0||u.open,V=y.useCallback(()=>{R(!0),T({open:!0},{immediate:o}),!s("terminal.panel")&&f("terminal.panel",{open:!0},n)},[T,f,n,s,o,R]),F=y.useCallback(()=>{R(!1),D(!1),T(null,{immediate:o}),!s("terminal.panel")&&f("terminal.panel",null,n)},[T,f,n,s,o,R,D]),X=y.useCallback(()=>{W.current=!0,H.current=!1,E(!1);const Q=e?{open:!1,remotePath:e.projectRoot,surfaceId:e.surfaceId,nodeId:e.nodeId}:null;if(l.current=JSON.stringify(Q),o){const le=VS();$(le,{immediateSync:!0})}Q&&C(Q,{immediate:!0})},[e,$,o,C,E,H,W,l]);r.current=X;const q=y.useCallback(()=>{if(o){const le=LG({tree:I,editor:U},"tree");$(le,{immediateSync:!0});return}const Q=rPe({tree:I,editor:U});$(Q,{immediateSync:!0})},[$,o,I,U]),ee=y.useCallback(()=>{if(o){const Q=LG({tree:I,editor:U},"editor");$(Q,{immediateSync:!0});return}$({tree:I,editor:!U},{immediateSync:!0})},[$,o,I,U]),Z=y.useCallback(Q=>{v(Q);const le=$0("tree");$(le,{immediateSync:!0})},[$,v]),te=y.useCallback(()=>{const Q=$0("editor");$(Q,{immediateSync:!0})},[$]),re=y.useCallback(Q=>{m("chat");const le=(Q==null?void 0:Q.trim())||(a==null?void 0:a.trim())||null;x(le);const me={open:!0,target:le,projectRoot:(e==null?void 0:e.projectRoot)??null};S(me),d(le,(e==null?void 0:e.projectRoot)??null)},[S,a,d,e==null?void 0:e.projectRoot,m,x]);return{closeDevPreviewPanel:M,closeProjectPanel:X,closeScreenSharePanel:z,closeTerminalPanel:F,handleProjectPreviewOpenChange:B,openDevPreviewPanel:re,openScreenSharePanel:O,openTerminalPanel:V,previewOpen:G,showMobileProjectEditorTab:te,showMobileProjectTreeTab:Z,toggleProjectEditor:ee,toggleProjectTree:q}}const t3=jr();function T1t({acceptFile:e,activeProject:n,activeProjectRecord:r,activeSessionId:i,openRemoteProjectOnGateway:s,projectFiles:a,projectRef:o,setActiveProjectFileId:l,setProjectFiles:u,setShowProject:d,showProject:h,showProjectEditorPanel:f,showProjectRef:m,token:x}){const v=y.useCallback(E=>{E.length!==0&&(u(N=>{const R=[...N];for(const D of E){const U=R.findIndex(H=>H.path===D.path);U>=0?R[U]=D:R.push(D)}return R}),l(N=>{var R;return N??((R=E[0])==null?void 0:R.id)??null}))},[l,u]),_=y.useCallback(E=>bq(E,n==null?void 0:n.projectRoot)?(n==null?void 0:n.projectRoot)??null:r!=null&&r.rootPath&&bq(E,r.rootPath)?r.rootPath:null,[n==null?void 0:n.projectRoot,r==null?void 0:r.rootPath]),w=y.useCallback(async E=>{var N;try{const R=_(E);if(!R){Zn("File is outside the active project. Open its directory explicitly to browse it.");return}R&&(!n||n.projectRoot!==R)&&await s(R,n==null?void 0:n.nodeId,i);const D={};x&&(D.Authorization=`Bearer ${x}`);const U=n!=null&&n.surfaceId&&R===n.projectRoot?`&surfaceId=${encodeURIComponent(n.surfaceId)}`:"",H=E.split(/[/\\]/).pop()??E,I=C_(H),W=async()=>(h||(m.current=!0,d(!0)),f(),o.current?!0:(await new Promise(G=>requestAnimationFrame(()=>G())),o.current!=null)),$=async(G,V,F)=>{var q;await W()&&(await((q=o.current)==null?void 0:q.openReviewDiff({path:G,originalContent:V??"",modifiedContent:F,language:I})),f())},O=async(G,V)=>{if(!R)return!1;try{const F=await Cs.fileDiffs(R),X=G.replace(/\\/g,"/"),q=F.find(ee=>ee.path===X)??F.find(ee=>X.endsWith(`/${ee.path}`));return q?(await $(G,q.original,V||q.modified),!0):!1}catch{return!1}},z=await fetch(`${t3}/api/project/backup?path=${encodeURIComponent(E)}${U}`,{headers:D});if(z.ok){const G=await z.json();await $(G.path,G.originalContent,G.currentContent);return}const M=await((N=o.current)==null?void 0:N.readFileByPath(E));if(M){if(await O(M.path,M.content))return;await $(M.path,M.content,M.content);return}const L=await fetch(`${t3}/api/project/read?path=${encodeURIComponent(E)}${U}`,{headers:D});if(!L.ok)return;const B=await L.json();if(await O(B.path,B.content))return;await $(B.path,B.content,B.content)}catch{}},[i,n,s,_,x,h,f,o,d,m]),S=y.useCallback(async E=>{var N;try{const R=_(E);if(!R){const H=a.find(I=>I.path===E);if(H){v([H]),l(H.id),h||(m.current=!0,d(!0)),f();return}Zn("File is outside the active project. Open its directory explicitly to browse it.");return}if(R&&(!n||n.projectRoot!==R)&&await s(R,n==null?void 0:n.nodeId,i),await((N=o.current)==null?void 0:N.openFileByPath(E))){h||(m.current=!0,d(!0)),f();return}const U=a.find(H=>H.path===E);if(U)v([U]),l(U.id);else{const H={};x&&(H.Authorization=`Bearer ${x}`);const I=await fetch(`${t3}/api/project/read?path=${encodeURIComponent(E)}`,{headers:H});if(!I.ok)throw new Error(`Failed to open file: ${I.status}`);const W=await I.json(),$=E.split(/[\\/]/).pop()??E,O={id:W.path,name:$,path:W.path,content:W.content,language:C_($)};v([O]),l(O.id)}h||(m.current=!0,d(!0)),f()}catch(R){Zn(R instanceof Error?R.message:"Failed to open linked file")}},[i,n,v,s,_,h,f,x,a,o,l,d,m]),C=y.useCallback(async(E,N)=>{try{const R={"Content-Type":"application/json"};x&&(R.Authorization=`Bearer ${x}`),await fetch(`${t3}/api/project/apply-diff`,{method:"POST",headers:R,body:JSON.stringify({path:E,content:N})})}catch{}e(E)},[x,e]),j=y.useCallback(async E=>{const N=Array.from(E),R=await Promise.all(N.filter(D=>D.size<1024*1024).map(async D=>{const U=await D.text(),H=D.webkitRelativePath||D.name;return{id:`${H}-${D.lastModified}`,name:D.name,path:H,content:U,language:C_(H)}}));v(R)},[v]),T=y.useCallback(async(E,N,R)=>{var D;return((D=o.current)==null?void 0:D.searchFiles(E,N,R))??[]},[o]);return{handleApplyProjectDiff:C,handleChangedFileClick:w,handleFileDrop:j,handleOpenMessagePath:S,handleSearchFiles:T,mergeProjectFiles:v,resolveKnownProjectRootForFile:_}}function Vj(e){return Array.isArray(e)?e:[]}function E1t(e,n){return Vj(n)}function A1t(e){return e.length>0?e:null}function O1t({activeSessionId:e,chatMode:n,chatResponseStyle:r,chatProviderRuntimeMode:i,consumeSuppressedUiSync:s,loadingChatMode:a,loadingChatResponseStyle:o,loadingChatView:l,loadingProviderRuntimeMode:u,managerMessageQueues:d,messageQueue:h,sendUIState:f,setOnChangedFilesSync:m,setSavedChangedFiles:x,setSavedChatMode:v,setSavedChatResponseStyle:_,setSavedChatView:w,setSavedProviderRuntimeMode:S,setSavedQueuedMessages:C,setSavedQueuedThreadMessages:j,setSavedTodoList:T,showMobileToolbar:E,todoList:N,token:R,viewMode:D,wsFullStateReceivedRef:U}){const H=y.useRef(null),I=y.useRef(null),W=y.useRef(null),$=y.useRef(null),O=y.useRef(null),z=y.useRef(null),M=y.useRef(null),L=y.useRef(null);y.useEffect(()=>{if(e&&R&&!U.current)return;const B={open:E},G=JSON.stringify(B);G!==I.current&&(I.current=G,!s("footer.menu")&&f("footer.menu",B,e))},[e,s,f,E,R,U]),y.useEffect(()=>{e&&R&&a||n!==H.current&&(H.current=n,v(n),!s("chat.mode")&&f("chat.mode",n,e))},[n,v,f,e,a,R,s]),y.useEffect(()=>{e&&R&&o||r!==W.current&&(W.current=r,_(r),!s("chat.responseStyle")&&f("chat.responseStyle",r,e))},[r,_,f,e,o,R,s]),y.useEffect(()=>{e&&R&&u||i!==$.current&&($.current=i,S(i),!s("chat.providerRuntimeMode")&&f("chat.providerRuntimeMode",i,e))},[i,S,f,e,u,R,s]),y.useEffect(()=>{e&&R&&l||D!==O.current&&(O.current=D,w(D),!s("chat.view")&&f("chat.view",D,e))},[D,w,f,e,l,R,s]),y.useEffect(()=>{const B=h.length>0?h:null,G=JSON.stringify(B);G!==z.current&&(z.current=G,C(B),!s("queued_messages")&&f("queued_messages",B,e))},[h,C,f,e,s]),y.useEffect(()=>{if(e&&R&&!U.current)return;const B=A1t(N),G=`${e??""}:${JSON.stringify(B)}`;G!==M.current&&(M.current=G,T(B),!s("todo_list")&&f("todo_list",B,e))},[N,T,f,e,s,R,U]),y.useEffect(()=>{const B=Object.keys(d).length>0?d:null,G=`${e??""}:${JSON.stringify(B)}`;G!==L.current&&(L.current=G,j(B),!s("queued_thread_messages")&&f("queued_thread_messages",B,e))},[d,j,f,e,s]),y.useEffect(()=>(m(B=>{const G=B.length>0?B:null;x(G),!s("changed_files")&&f("changed_files",G,e)}),()=>m(null)),[f,e,m,s,x])}function n3(e,n){const r=[...e??[]],i=new Set(r.flatMap(s=>s.type==="image"||s.type==="attachment"?[`${s.name}:${s.mimeType}:${s.data}`]:[]));for(const s of n??[]){const a=`${s.name}:${s.mimeType}:${s.data}`;i.has(a)||(i.add(a),s.mimeType.startsWith("image/")?r.push({type:"image",name:s.name,mimeType:s.mimeType,data:s.data}):r.push({type:"attachment",name:s.name,mimeType:s.mimeType,data:s.data}))}return r.length>0?r:void 0}function R1t(e,n,r){return[{type:"file",path:e.path,name:e.name,...e.kind?{kind:e.kind}:{},lineRange:{startLine:n,endLine:r}}]}function M1t(e,n,r,i){const s=Math.max(1,n.split(/\r?\n/).length),a=r&&i&&i>=r?{startLine:r,endLine:i}:{startLine:1,endLine:s};return[{type:"terminal",terminalId:e.terminalId,name:e.name,...e.projectRoot?{projectRoot:e.projectRoot}:{},lineRange:a,selectedText:n.trim()}]}function P1t(e){var s,a,o;const n=((s=e.name)==null?void 0:s.trim())||((a=e.text)==null?void 0:a.trim())||((o=e.placeholder)==null?void 0:o.trim())||"unnamed element";return[{type:"text",text:`${[`Selected preview element: ${e.role??e.tagName??"element"} "${n}"`,e.selector?`Selector: ${e.selector}`:null,e.placeholder?`Placeholder: ${e.placeholder}`:null,e.value?`Value: ${e.value}`:null].filter(Boolean).join(`
1478
1478
  `)}
1479
1479
  `}]}function L1t({activeProjectRoot:e,activeProjectNodeId:n,activeSessionId:r,activeTerminalId:i,appliedThemeMode:s,closeProjectPanel:a,closeTerminalPanel:o,createTerminal:l,handleToggleEditor:u,killTerminal:d,openTerminalPanel:h,projectTerminals:f,promptInputRef:m,refresh:x,setActiveTerminalId:v,setCurrentView:_,setShowSidebar:w,showMobileProjectEditorTab:S,showMobileProjectTreeTab:C,showProject:j,showSidebar:T,showTerminal:E,token:N}){const R=y.useCallback(async(L=null)=>{const B=await x(),G=e,V=G?B.filter(F=>qhe(F,G,n)):B;if(L&&V.some(X=>X.id===L))return v(L),L;if(i&&V.some(F=>F.id===i))return i;if(V.length>0){const F=V[V.length-1].id;return v(F),F}try{return(await l(r??"default",e??void 0,void 0,n)).id}catch(F){const X=F instanceof Error?F.message:"Failed to create terminal",q=n&&n!=="gateway";return Zn.error(q?"Terminal unavailable on this node":"Failed to open terminal",{description:q?`${X}. Make sure the node is connected and the project path exists on it.`:X,duration:8e3}),null}},[x,v,i,l,r,e,n]),D=y.useCallback(async L=>{_("chat"),h(),await R(L)||o()},[R,h,o,_]),U=y.useCallback(async L=>{if(T&&w(!1),L==="terminal"){_("chat"),a(),h(),await R()||o();return}if(E&&o(),L==="editor"){j||await u(),S();return}j||await u(),C(L)},[o,a,R,u,h,_,w,S,C,T,E,j]),H=y.useCallback(L=>{var B,G;(B=m.current)==null||B.insertChip(L),(G=m.current)==null||G.focus()},[m]),I=y.useCallback((L,B,G,V)=>{var X,q;B.trim()&&((X=m.current)==null||X.insertSegments(R1t(L,G,V)),(q=m.current)==null||q.focus())},[m]),W=y.useCallback((L,B,G,V,F)=>{var ee,Z;const X=B.trim();if(!X)return;const q=L.replace(/^term-/,"").slice(0,8)||L;(ee=m.current)==null||ee.insertSegments(M1t({terminalId:L,name:q,...G?{projectRoot:G}:{}},X,V,F)),(Z=m.current)==null||Z.focus()},[m]),$=y.useCallback(L=>{var B,G;L.selector&&((B=m.current)==null||B.insertSegments(P1t(L)),(G=m.current)==null||G.focus(),_("chat"))},[m,_]),O=y.useCallback(async()=>{if(E){o();return}_("chat"),h(),await R()||o()},[E,R,h,o,_]),z=y.useCallback(async L=>{var G;const B=f.length===1&&((G=f[0])==null?void 0:G.id)===L;await d(L),B&&o()},[f,d,o]),M=y.useCallback(L=>{var F,X,q;const B=f.find(ee=>ee.id===L),G=`detached-terminal-${L}-${Date.now()}`;t1t({id:G,terminalId:L,token:N??null,label:((F=B==null?void 0:B.metadata)==null?void 0:F.cwd)??`Terminal ${L.slice(0,6)}`,theme:s==="dark"?"dark":"light",projectRoot:(B==null?void 0:B.projectRoot)??e??null});const V=`${window.location.origin}${window.location.pathname}?detachedTerminal=${encodeURIComponent(G)}`;if((X=window.jaitDesktop)!=null&&X.openProjectWindow)window.jaitDesktop.openProjectWindow({url:V,title:"Terminal"});else{const ee=window.open(V,`jait-detached-terminal-${L}`,"popup=yes,width=800,height=600,resizable=yes,scrollbars=yes");(q=ee==null?void 0:ee.focus)==null||q.call(ee)}},[f,N,s,e]);return{ensureActiveTerminal:R,handleDetachTerminal:M,handleKillTerminal:z,handleMobileProjectTargetAction:U,handleOpenTerminalFromToolCall:D,handleReferenceFile:H,handleReferenceFileSelection:I,handleReferencePreviewElement:$,handleReferenceTerminalSelection:W,handleToggleTerminal:O}}function $1t({platform:e,className:n}){switch(e){case"electron":return c.jsx(Po,{className:n??"h-4 w-4"});case"react-native":return c.jsx(s4,{className:n??"h-4 w-4"});default:return c.jsx(_i,{className:n??"h-4 w-4"})}}function $G({device:e,isLocal:n,isConnected:r,isLoading:i,onConnect:s}){const a=!n&&e.capabilities.includes("screen-share");return c.jsxs("div",{className:`flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm transition-colors
1480
1480
  ${r?"bg-green-500/10 border border-green-500/30":"bg-muted/50 hover:bg-muted/80"}`,children:[c.jsx("div",{className:`h-9 w-9 rounded-lg flex items-center justify-center shrink-0