@jait/gateway 0.1.503 → 0.1.504

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/services/email/outlook.d.ts.map +1 -1
  2. package/dist/services/email/outlook.js +6 -5
  3. package/dist/services/email/outlook.js.map +1 -1
  4. package/package.json +1 -1
  5. package/web-dist/assets/{_basePickBy-BZgqkvgM.js → _basePickBy-bFoCfWix.js} +1 -1
  6. package/web-dist/assets/{_baseUniq-0aTDR6K4.js → _baseUniq-BoTWhsYM.js} +1 -1
  7. package/web-dist/assets/{arc-rZNzJqM_.js → arc-BbP3TTwp.js} +1 -1
  8. package/web-dist/assets/{architectureDiagram-2XIMDMQ5-D8aMvG5Q.js → architectureDiagram-2XIMDMQ5-Doalw_qz.js} +1 -1
  9. package/web-dist/assets/{blockDiagram-WCTKOSBZ-F1gSvgCt.js → blockDiagram-WCTKOSBZ-CNUF5-Si.js} +1 -1
  10. package/web-dist/assets/{c4Diagram-IC4MRINW-BqAWkzs-.js → c4Diagram-IC4MRINW-frUf8uKc.js} +1 -1
  11. package/web-dist/assets/channel-B9DFHRXT.js +1 -0
  12. package/web-dist/assets/{chunk-4BX2VUAB-D7J8seL1.js → chunk-4BX2VUAB-ub6VQrjc.js} +1 -1
  13. package/web-dist/assets/{chunk-55IACEB6-q89gTn4b.js → chunk-55IACEB6-DMZRwtwT.js} +1 -1
  14. package/web-dist/assets/{chunk-FMBD7UC4-5NncvxBv.js → chunk-FMBD7UC4-YI9LVuhv.js} +1 -1
  15. package/web-dist/assets/{chunk-JSJVCQXG-CJV5Rdm7.js → chunk-JSJVCQXG-Df1Db0bj.js} +1 -1
  16. package/web-dist/assets/{chunk-KX2RTZJC-DYVFLyTm.js → chunk-KX2RTZJC-CiQeL7p6.js} +1 -1
  17. package/web-dist/assets/{chunk-NQ4KR5QH-CSklzbEt.js → chunk-NQ4KR5QH-CZTf7wMp.js} +1 -1
  18. package/web-dist/assets/{chunk-QZHKN3VN-B22xyUQd.js → chunk-QZHKN3VN-UqqGjGTp.js} +1 -1
  19. package/web-dist/assets/{chunk-WL4C6EOR-Bk5wzvH5.js → chunk-WL4C6EOR-DK0a2IPm.js} +1 -1
  20. package/web-dist/assets/classDiagram-VBA2DB6C-Dthd4Voy.js +1 -0
  21. package/web-dist/assets/classDiagram-v2-RAHNMMFH-Dthd4Voy.js +1 -0
  22. package/web-dist/assets/clone-oWhMO6PX.js +1 -0
  23. package/web-dist/assets/{cose-bilkent-S5V4N54A-CGIpK789.js → cose-bilkent-S5V4N54A-DTHhAYyX.js} +1 -1
  24. package/web-dist/assets/{dagre-KLK3FWXG-CzssW3oe.js → dagre-KLK3FWXG-CvfR2PN2.js} +1 -1
  25. package/web-dist/assets/{diagram-E7M64L7V-CxyBwRM3.js → diagram-E7M64L7V-E8kQlK95.js} +1 -1
  26. package/web-dist/assets/{diagram-IFDJBPK2-CANcaN9U.js → diagram-IFDJBPK2-DYPqb_lA.js} +1 -1
  27. package/web-dist/assets/{diagram-P4PSJMXO-yKAu5mne.js → diagram-P4PSJMXO-D8oqdRM8.js} +1 -1
  28. package/web-dist/assets/{erDiagram-INFDFZHY-BXv7WM3l.js → erDiagram-INFDFZHY-Dtm6lv8r.js} +1 -1
  29. package/web-dist/assets/{flowDiagram-PKNHOUZH-DLkZqg13.js → flowDiagram-PKNHOUZH-780t3cps.js} +1 -1
  30. package/web-dist/assets/{ganttDiagram-A5KZAMGK-BGyztQsc.js → ganttDiagram-A5KZAMGK-B5LqHhpq.js} +1 -1
  31. package/web-dist/assets/{gitGraphDiagram-K3NZZRJ6-E6wbBlsP.js → gitGraphDiagram-K3NZZRJ6-D4E9DWlV.js} +1 -1
  32. package/web-dist/assets/{graph-Be2x-J1i.js → graph-DXg-Yj8b.js} +1 -1
  33. package/web-dist/assets/{index-e6Bc68Hb.js → index-BxjzCyEc.js} +1 -1
  34. package/web-dist/assets/{index-CD364I7B.js → index-H22IRMip.js} +1 -1
  35. package/web-dist/assets/{index-BW8YYsjn.js → index-UV59v-Ti.js} +5 -5
  36. package/web-dist/assets/{infoDiagram-LFFYTUFH-DzgHYpq5.js → infoDiagram-LFFYTUFH-DDUxYsyf.js} +1 -1
  37. package/web-dist/assets/{ishikawaDiagram-PHBUUO56-C6H7ypHK.js → ishikawaDiagram-PHBUUO56-BIphFO-6.js} +1 -1
  38. package/web-dist/assets/{journeyDiagram-4ABVD52K-atFaSger.js → journeyDiagram-4ABVD52K-Di0EIn7Y.js} +1 -1
  39. package/web-dist/assets/{kanban-definition-K7BYSVSG-yKfbtlJL.js → kanban-definition-K7BYSVSG-Bsook8cN.js} +1 -1
  40. package/web-dist/assets/{layout-COPMroAA.js → layout-CXksh3WV.js} +1 -1
  41. package/web-dist/assets/{linear-DujddsRo.js → linear-gfdv6i8E.js} +1 -1
  42. package/web-dist/assets/{mindmap-definition-YRQLILUH-DACmM0qB.js → mindmap-definition-YRQLILUH-dbGiW4tz.js} +1 -1
  43. package/web-dist/assets/{pieDiagram-SKSYHLDU-BkyzGxkY.js → pieDiagram-SKSYHLDU-63nBc_um.js} +1 -1
  44. package/web-dist/assets/{quadrantDiagram-337W2JSQ-BgJaEIFa.js → quadrantDiagram-337W2JSQ-q0JkNGpM.js} +1 -1
  45. package/web-dist/assets/{requirementDiagram-Z7DCOOCP-DK1P7jA_.js → requirementDiagram-Z7DCOOCP-AyMfjYmA.js} +1 -1
  46. package/web-dist/assets/{sankeyDiagram-WA2Y5GQK-DIzL8E1x.js → sankeyDiagram-WA2Y5GQK-B8Xhghtq.js} +1 -1
  47. package/web-dist/assets/{sequenceDiagram-2WXFIKYE-BLQEW8CR.js → sequenceDiagram-2WXFIKYE-DPGS9_hK.js} +1 -1
  48. package/web-dist/assets/{stateDiagram-RAJIS63D-Bv9v_rm-.js → stateDiagram-RAJIS63D-CQLMpY7Z.js} +1 -1
  49. package/web-dist/assets/stateDiagram-v2-FVOUBMTO-DpHwDYQ3.js +1 -0
  50. package/web-dist/assets/{timeline-definition-YZTLITO2-lFuI12Na.js → timeline-definition-YZTLITO2-DzUZuJQG.js} +1 -1
  51. package/web-dist/assets/{treemap-KZPCXAKY-DlAAvqRk.js → treemap-KZPCXAKY-DVWmiWhf.js} +1 -1
  52. package/web-dist/assets/{vennDiagram-LZ73GAT5-B7FbeOKl.js → vennDiagram-LZ73GAT5-B3VtqzGY.js} +1 -1
  53. package/web-dist/assets/{xychartDiagram-JWTSCODW-DW14zg7w.js → xychartDiagram-JWTSCODW-D8MGMDFb.js} +1 -1
  54. package/web-dist/index.html +1 -1
  55. package/web-dist/assets/channel-C_oWrWd2.js +0 -1
  56. package/web-dist/assets/classDiagram-VBA2DB6C-DeLk4MSw.js +0 -1
  57. package/web-dist/assets/classDiagram-v2-RAHNMMFH-DeLk4MSw.js +0 -1
  58. package/web-dist/assets/clone-BMLsPaaj.js +0 -1
  59. package/web-dist/assets/stateDiagram-v2-FVOUBMTO-BRMixW2a.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-KLK3FWXG-CzssW3oe.js","./graph-Be2x-J1i.js","./_baseUniq-0aTDR6K4.js","./layout-COPMroAA.js","./_basePickBy-BZgqkvgM.js","./clone-BMLsPaaj.js","./cose-bilkent-S5V4N54A-CGIpK789.js","./cytoscape.esm-BQaXIfA_.js","./c4Diagram-IC4MRINW-BqAWkzs-.js","./chunk-JSJVCQXG-CJV5Rdm7.js","./flowDiagram-PKNHOUZH-DLkZqg13.js","./chunk-FMBD7UC4-5NncvxBv.js","./chunk-55IACEB6-q89gTn4b.js","./chunk-KX2RTZJC-DYVFLyTm.js","./channel-C_oWrWd2.js","./erDiagram-INFDFZHY-BXv7WM3l.js","./gitGraphDiagram-K3NZZRJ6-E6wbBlsP.js","./chunk-4BX2VUAB-D7J8seL1.js","./chunk-QZHKN3VN-B22xyUQd.js","./treemap-KZPCXAKY-DlAAvqRk.js","./ganttDiagram-A5KZAMGK-BGyztQsc.js","./linear-DujddsRo.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-LFFYTUFH-DzgHYpq5.js","./pieDiagram-SKSYHLDU-BkyzGxkY.js","./arc-rZNzJqM_.js","./quadrantDiagram-337W2JSQ-BgJaEIFa.js","./xychartDiagram-JWTSCODW-DW14zg7w.js","./requirementDiagram-Z7DCOOCP-DK1P7jA_.js","./sequenceDiagram-2WXFIKYE-BLQEW8CR.js","./classDiagram-VBA2DB6C-DeLk4MSw.js","./chunk-WL4C6EOR-Bk5wzvH5.js","./classDiagram-v2-RAHNMMFH-DeLk4MSw.js","./stateDiagram-RAJIS63D-Bv9v_rm-.js","./chunk-NQ4KR5QH-CSklzbEt.js","./stateDiagram-v2-FVOUBMTO-BRMixW2a.js","./journeyDiagram-4ABVD52K-atFaSger.js","./timeline-definition-YZTLITO2-lFuI12Na.js","./mindmap-definition-YRQLILUH-DACmM0qB.js","./kanban-definition-K7BYSVSG-yKfbtlJL.js","./diagram-P4PSJMXO-yKAu5mne.js","./diagram-IFDJBPK2-CANcaN9U.js","./blockDiagram-WCTKOSBZ-F1gSvgCt.js","./architectureDiagram-2XIMDMQ5-D8aMvG5Q.js","./diagram-E7M64L7V-CxyBwRM3.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-CvfR2PN2.js","./graph-DXg-Yj8b.js","./_baseUniq-BoTWhsYM.js","./layout-CXksh3WV.js","./_basePickBy-bFoCfWix.js","./clone-oWhMO6PX.js","./cose-bilkent-S5V4N54A-DTHhAYyX.js","./cytoscape.esm-BQaXIfA_.js","./c4Diagram-IC4MRINW-frUf8uKc.js","./chunk-JSJVCQXG-Df1Db0bj.js","./flowDiagram-PKNHOUZH-780t3cps.js","./chunk-FMBD7UC4-YI9LVuhv.js","./chunk-55IACEB6-DMZRwtwT.js","./chunk-KX2RTZJC-CiQeL7p6.js","./channel-B9DFHRXT.js","./erDiagram-INFDFZHY-Dtm6lv8r.js","./gitGraphDiagram-K3NZZRJ6-D4E9DWlV.js","./chunk-4BX2VUAB-ub6VQrjc.js","./chunk-QZHKN3VN-UqqGjGTp.js","./treemap-KZPCXAKY-DVWmiWhf.js","./ganttDiagram-A5KZAMGK-B5LqHhpq.js","./linear-gfdv6i8E.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-LFFYTUFH-DDUxYsyf.js","./pieDiagram-SKSYHLDU-63nBc_um.js","./arc-BbP3TTwp.js","./quadrantDiagram-337W2JSQ-q0JkNGpM.js","./xychartDiagram-JWTSCODW-D8MGMDFb.js","./requirementDiagram-Z7DCOOCP-AyMfjYmA.js","./sequenceDiagram-2WXFIKYE-DPGS9_hK.js","./classDiagram-VBA2DB6C-Dthd4Voy.js","./chunk-WL4C6EOR-DK0a2IPm.js","./classDiagram-v2-RAHNMMFH-Dthd4Voy.js","./stateDiagram-RAJIS63D-CQLMpY7Z.js","./chunk-NQ4KR5QH-CZTf7wMp.js","./stateDiagram-v2-FVOUBMTO-DpHwDYQ3.js","./journeyDiagram-4ABVD52K-Di0EIn7Y.js","./timeline-definition-YZTLITO2-DzUZuJQG.js","./mindmap-definition-YRQLILUH-dbGiW4tz.js","./kanban-definition-K7BYSVSG-Bsook8cN.js","./diagram-P4PSJMXO-D8oqdRM8.js","./diagram-IFDJBPK2-DYPqb_lA.js","./blockDiagram-WCTKOSBZ-CNUF5-Si.js","./architectureDiagram-2XIMDMQ5-Doalw_qz.js","./diagram-E7M64L7V-E8kQlK95.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 npe=Object.defineProperty;var ipe=(e,r,n)=>r in e?npe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var Je=(e,r,n)=>ipe(e,typeof r!="symbol"?r+"":r,n);function spe(e,r){for(var n=0;n<r.length;n++){const i=r[n];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 r=document.createElement("link").relList;if(r&&r.supports&&r.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 n(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=n(s);fetch(s.href,a)}})();function A0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ubt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var n=function i(){return this instanceof i?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),n}var j6={exports:{}},Av={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -1112,8 +1112,8 @@ Please report this to https://github.com/markedjs/marked.`,r){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-n.x),o=e.width/2;let l=n.x<r.x?o-a:o+a;const u=e.height/2,d=Math.abs(r.y-n.y),h=Math.abs(r.x-n.x);if(Math.abs(s-r.y)*o>Math.abs(i-r.x)*u){let f=n.y<r.y?r.y-u-s:s-u-r.y;l=h*f/d;const m={x:n.x<r.x?n.x+l:n.x-h+l,y:n.y<r.y?n.y+d-f:n.y-d+f};return l===0&&(m.x=r.x,m.y=r.y),h===0&&(m.x=r.x),d===0&&(m.y=r.y),Ct.debug(`abc89 top/bottom calc, Q ${d}, q ${f}, R ${h}, r ${l}`,m),m}else{n.x<r.x?l=r.x-o-i:l=i-o-r.x;let f=d*l/h,m=n.x<r.x?n.x+h-l:n.x-h+l,x=n.y<r.y?n.y+f:n.y-f;return Ct.debug(`sides calc abc89, Q ${d}, q ${f}, R ${h}, r ${l}`,{_x:m,_y:x}),l===0&&(m=r.x,x=r.y),h===0&&(m=r.x),d===0&&(x=r.y),{x:m,y:x}}},"intersection"),lz=Y((e,r)=>{Ct.warn("abc88 cutPathAtIntersect",e,r);let n=[],i=e[0],s=!1;return e.forEach(a=>{if(Ct.info("abc88 checking point",a,r),!uOe(r,a)&&!s){const o=dOe(r,i,a);Ct.debug("abc88 inside",a,i,o),Ct.debug("abc88 intersection",o,r);let l=!1;n.forEach(u=>{l=l||u.x===o.x&&u.y===o.y}),n.some(u=>u.x===o.x&&u.y===o.y)?Ct.warn("abc88 no intersect",o,n):n.push(o),s=!0}else Ct.warn("abc88 outside",a,i),i=a,s||n.push(a)}),Ct.debug("returning points",n),n},"cutPathAtIntersect");function tne(e){const r=[],n=[];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)&&(r.push(a),n.push(i))}return{cornerPoints:r,cornerPointPositions:n}}Y(tne,"extractCornerPoints");var cz=Y(function(e,r,n){const i=r.x-e.x,s=r.y-e.y,a=Math.sqrt(i*i+s*s),o=n/a;return{x:r.x-o*i,y:r.y-o*s}},"findAdjacentPoint"),hOe=Y(function(e){const{cornerPointPositions:r}=tne(e),n=[];for(let i=0;i<e.length;i++)if(r.includes(i)){const s=e[i-1],a=e[i+1],o=e[i],l=cz(s,o,5),u=cz(a,o,5),d=u.x-l.x,h=u.y-l.y;n.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){Ct.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 Ct.debug("Corner point skipping fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y));n.push(m,u)}else n.push(e[i]);return n},"fixCorners"),fOe=Y((e,r,n)=>{const i=e-r-n,s=2,a=2,o=s+a,l=Math.floor(i/o),u=Array(l).fill(`${s} ${a}`).join(" ");return`0 ${r} ${u} ${n}`},"generateDashArray"),pOe=Y(function(e,r,n,i,s,a,o,l=!1){var R;const{handDrawnSeed:u}=hi();let d=r.points,h=!1;const f=s;var m=a;const x=[];for(const P in r.cssCompiledStyles)tte(P)||x.push(r.cssCompiledStyles[P]);Ct.debug("UIO intersect check",r.points,m.x,f.x),m.intersect&&f.intersect&&!l&&(d=d.slice(1,r.points.length-1),d.unshift(f.intersect(d[0])),Ct.debug("Last point UIO",r.start,"-->",r.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));r.toCluster&&(Ct.info("to cluster abc88",n.get(r.toCluster)),d=lz(r.points,n.get(r.toCluster).node),h=!0),r.fromCluster&&(Ct.debug("from cluster abc88",n.get(r.fromCluster),JSON.stringify(d,null,2)),d=lz(d.reverse(),n.get(r.fromCluster).node).reverse(),h=!0);let _=d.filter(P=>!Number.isNaN(P.y));const w=oOe(r.curve);w!=="rounded"&&(_=hOe(_));let S=f_;switch(w){case"linear":S=f_;break;case"basis":S=SA;break;case"cardinal":S=LZ;break;case"bumpX":S=AZ;break;case"bumpY":S=OZ;break;case"catmullRom":S=DZ;break;case"monotoneX":S=WZ;break;case"monotoneY":S=UZ;break;case"natural":S=qZ;break;case"step":S=GZ;break;case"stepAfter":S=YZ;break;case"stepBefore":S=KZ;break;case"rounded":S=f_;break;default:S=SA}const{x:C,y:j}=u6e(r),T=z4e().x(C).y(j).curve(S);let E;switch(r.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(r.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,M=w==="rounded"?rne(nne(_,r),5):T(_);const $=Array.isArray(r.style)?r.style:[r.style];let q=$.find(P=>P==null?void 0:P.startsWith("stroke:")),F="";r.animate&&(F="edge-animation-fast"),r.animation&&(F="edge-animation-"+r.animation);let B=!1;if(r.look==="handDrawn"){const P=wr.svg(e);Object.assign([],_);const H=P.path(M,{roughness:.3,seed:u});E+=" transition",N=Vr(H).select("path").attr("id",r.id).attr("class"," "+E+(r.classes?" "+r.classes:"")+(F?" "+F:"")).attr("style",$?$.reduce((U,V)=>U+";"+V,""):"");let G=N.attr("d");N.attr("d",G),e.node().appendChild(N.node())}else{const P=x.join(";"),H=$?$.reduce((ee,X)=>ee+X+";",""):"",G=(P?P+";"+H+";":H)+";"+($?$.reduce((ee,X)=>ee+";"+X,""):"");N=e.append("path").attr("d",M).attr("id",r.id).attr("class"," "+E+(r.classes?" "+r.classes:"")+(F?" "+F:"")).attr("style",G),q=(R=G.match(/stroke:([^;]+)/))==null?void 0:R[1],B=r.animate===!0||!!r.animation||P.includes("animation");const U=N.node(),V=typeof U.getTotalLength=="function"?U.getTotalLength():0,J=kB[r.arrowTypeStart]||0,z=kB[r.arrowTypeEnd]||0;if(r.look==="neo"&&!B){const X=`stroke-dasharray: ${r.pattern==="dotted"||r.pattern==="dashed"?fOe(V,J,z):`0 ${J} ${V-J-z} ${z}`}; stroke-dashoffset: 0;`;N.attr("style",X+N.attr("style"))}}N.attr("data-edge",!0),N.attr("data-et","edge"),N.attr("data-id",r.id),N.attr("data-points",v),r.showPoints&&_.forEach(P=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",P.x).attr("cy",P.y)});let W="";(hi().flowchart.arrowMarkerAbsolute||hi().state.arrowMarkerAbsolute)&&(W=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,W=W.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Ct.info("arrowTypeStart",r.arrowTypeStart),Ct.info("arrowTypeEnd",r.arrowTypeEnd),sOe(N,r,W,o,i,q);const D=Math.floor(d.length/2),O=d[D];cd.isLabelCoordinateInPath(O,N.attr("d"))||(h=!0);let I={};return h&&(I.updatedPath=d),I.originalPath=r.points,I},"insertEdge");function rne(e,r){if(e.length<2)return"";let n="";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)n+=`M${o.x},${o.y}`;else if(a===i-1)n+=`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){n+=`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){n+=`L${o.x},${o.y}`;continue}const N=Math.min(r/Math.sin(E/2),x/2,v/2),M=o.x-_*N,$=o.y-w*N,q=o.x+S*N,F=o.y+C*N;n+=`L${M},${$}`,n+=`Q${o.x},${o.y} ${q},${F}`}}return n}Y(rne,"generateRoundedPath");function JA(e,r){if(!e||!r)return{angle:0,deltaX:0,deltaY:0};const n=r.x-e.x,i=r.y-e.y;return{angle:Math.atan2(i,n),deltaX:n,deltaY:i}}Y(JA,"calculateDeltaAndAngle");function nne(e,r){const n=e.map(s=>({...s}));if(e.length>=2&&yo[r.arrowTypeStart]){const s=yo[r.arrowTypeStart],a=e[0],o=e[1],{angle:l}=JA(a,o),u=s*Math.cos(l),d=s*Math.sin(l);n[0].x=a.x+u,n[0].y=a.y+d}const i=e.length;if(i>=2&&yo[r.arrowTypeEnd]){const s=yo[r.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:l}=JA(o,a),u=s*Math.cos(l),d=s*Math.sin(l);n[i-1].x=a.x-u,n[i-1].y=a.y-d}return n}Y(nne,"applyMarkerOffsetsToPoints");var mOe=Y((e,r,n,i)=>{r.forEach(s=>{OOe[s](e,n,i)})},"insertMarkers"),gOe=Y((e,r,n)=>{Ct.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",n+"_"+r+"-extensionStart").attr("class","marker extension "+r).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",n+"_"+r+"-extensionEnd").attr("class","marker extension "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),yOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-compositionStart").attr("class","marker composition "+r).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",n+"_"+r+"-compositionEnd").attr("class","marker composition "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),xOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-aggregationStart").attr("class","marker aggregation "+r).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",n+"_"+r+"-aggregationEnd").attr("class","marker aggregation "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),vOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-dependencyStart").attr("class","marker dependency "+r).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",n+"_"+r+"-dependencyEnd").attr("class","marker dependency "+r).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),bOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-lollipopStart").attr("class","marker lollipop "+r).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",n+"_"+r+"-lollipopEnd").attr("class","marker lollipop "+r).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),_Oe=Y((e,r,n)=>{e.append("marker").attr("id",n+"_"+r+"-pointEnd").attr("class","marker "+r).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",n+"_"+r+"-pointStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),wOe=Y((e,r,n)=>{e.append("marker").attr("id",n+"_"+r+"-circleEnd").attr("class","marker "+r).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",n+"_"+r+"-circleStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),SOe=Y((e,r,n)=>{e.append("marker").attr("id",n+"_"+r+"-crossEnd").attr("class","marker cross "+r).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",n+"_"+r+"-crossStart").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),kOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),COe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-onlyOneStart").attr("class","marker onlyOne "+r).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",n+"_"+r+"-onlyOneEnd").attr("class","marker onlyOne "+r).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),jOe=Y((e,r,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+r+"-zeroOrOneStart").attr("class","marker zeroOrOne "+r).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",n+"_"+r+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+r).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),NOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-oneOrMoreStart").attr("class","marker oneOrMore "+r).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",n+"_"+r+"-oneOrMoreEnd").attr("class","marker oneOrMore "+r).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),TOe=Y((e,r,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+r+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+r).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",n+"_"+r+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+r).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),EOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
1113
1113
  L20,10
1114
1114
  M20,10
1115
- L0,20`)},"requirement_arrow"),AOe=Y((e,r,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+r+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),OOe={extension:gOe,composition:yOe,aggregation:xOe,dependency:vOe,lollipop:bOe,point:_Oe,circle:wOe,cross:SOe,barb:kOe,only_one:COe,zero_or_one:jOe,one_or_more:NOe,zero_or_more:TOe,requirement_arrow:EOe,requirement_contains:AOe},MOe=mOe,ROe={common:iS,getConfig:So,insertCluster:BAe,insertEdge:pOe,insertEdgeLabel:lOe,insertMarkers:MOe,insertNode:ene,interpolateToCurve:l9,labelHelper:Qr,log:Ct,positionEdgeLabel:cOe},t2={},ine=Y(e=>{for(const r of e)t2[r.name]=r},"registerLayoutLoaders"),POe=Y(()=>{ine([{name:"dagre",loader:Y(async()=>await it(()=>import("./dagre-KLK3FWXG-CzssW3oe.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-CGIpK789.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");POe();var T_t=Y(async(e,r)=>{if(!(e.layoutAlgorithm in t2))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const n=t2[e.layoutAlgorithm];return(await n.loader()).render(e,r,ROe,{algorithm:n.algorithm})},"render"),E_t=Y((e="",{fallback:r="dagre"}={})=>{if(e in t2)return e;if(r in t2)return Ct.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Both layout algorithms ${e} and ${r} are not registered.`)},"getRegisteredLayoutAlgorithm"),sne="comm",ane="rule",one="decl",LOe="@import",$Oe="@namespace",DOe="@keyframes",IOe="@layer",lne=Math.abs,E9=String.fromCharCode;function cne(e){return e.trim()}function C3(e,r,n){return e.replace(r,n)}function BOe(e,r,n){return e.indexOf(r,n)}function k1(e,r){return e.charCodeAt(r)|0}function Z1(e,r,n){return e.slice(r,n)}function ph(e){return e.length}function zOe(e){return e.length}function gC(e,r){return r.push(e),e}var z4=1,Q1=1,une=0,ju=0,Ks=0,Cx="";function A9(e,r,n,i,s,a,o,l){return{value:e,root:r,parent:n,type:i,props:s,children:a,line:z4,column:Q1,length:o,return:"",siblings:l}}function FOe(){return Ks}function HOe(){return Ks=ju>0?k1(Cx,--ju):0,Q1--,Ks===10&&(Q1=1,z4--),Ks}function vd(){return Ks=ju<une?k1(Cx,ju++):0,Q1++,Ks===10&&(Q1=1,z4++),Ks}function ym(){return k1(Cx,ju)}function j3(){return ju}function F4(e,r){return Z1(Cx,e,r)}function r2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function WOe(e){return z4=Q1=1,une=ph(Cx=e),ju=0,[]}function UOe(e){return Cx="",e}function wT(e){return cne(F4(ju-1,ZA(e===91?e+2:e===40?e+1:e)))}function VOe(e){for(;(Ks=ym())&&Ks<33;)vd();return r2(e)>2||r2(Ks)>3?"":" "}function qOe(e,r){for(;--r&&vd()&&!(Ks<48||Ks>102||Ks>57&&Ks<65||Ks>70&&Ks<97););return F4(e,j3()+(r<6&&ym()==32&&vd()==32))}function ZA(e){for(;vd();)switch(Ks){case e:return ju;case 34:case 39:e!==34&&e!==39&&ZA(Ks);break;case 40:e===41&&ZA(e);break;case 92:vd();break}return ju}function GOe(e,r){for(;vd()&&e+Ks!==57;)if(e+Ks===84&&ym()===47)break;return"/*"+F4(r,ju-1)+"*"+E9(e===47?e:vd())}function KOe(e){for(;!r2(ym());)vd();return F4(e,ju)}function YOe(e){return UOe(N3("",null,null,null,[""],e=WOe(e),0,[0],e))}function N3(e,r,n,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,M=j;w;)switch(v=C,C=vd()){case 40:if(v!=108&&k1(M,f-1)==58){BOe(M+=C3(wT(C),"&","&\f"),"&\f",lne(d?l[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:M+=wT(C);break;case 9:case 10:case 13:case 32:M+=VOe(v);break;case 92:M+=qOe(j3()-1,7);continue;case 47:switch(ym()){case 42:case 47:gC(XOe(GOe(vd(),j3()),r,n,u),u),(r2(v||1)==5||r2(ym()||1)==5)&&ph(M)&&Z1(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*_:l[d++]=ph(M)*S;case 125*_:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+h:S==-1&&(M=C3(M,/\f/g,"")),x>0&&(ph(M)-f||_===0&&v===47)&&gC(x>32?dz(M+";",i,n,f-1,u):dz(C3(M," ","")+";",i,n,f-2,u),u);break;case 59:M+=";";default:if(gC(N=uz(M,r,n,d,h,s,l,j,T=[],E=[],f,a),a),C===123)if(h===0)N3(M,r,N,N,T,a,f,l,E);else{switch(m){case 99:if(k1(M,3)===110)break;case 108:if(k1(M,2)===97)break;default:h=0;case 100:case 109:case 115:}h?N3(e,N,N,i&&gC(uz(e,N,N,0,0,s,l,j,s,T=[],f,E),E),s,E,f,l,i?T:E):N3(M,N,N,N,[""],E,0,l,E)}}d=h=x=0,_=S=1,j=M="",f=o;break;case 58:f=1+ph(M),x=v;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&HOe()==125)continue}switch(M+=E9(C),C*_){case 38:S=h>0?1:(M+="\f",-1);break;case 44:l[d++]=(ph(M)-1)*S,S=1;break;case 64:ym()===45&&(M+=wT(vd())),m=ym(),h=f=ph(j=M+=KOe(j3())),C++;break;case 45:v===45&&ph(M)==2&&(_=0)}}return a}function uz(e,r,n,i,s,a,o,l,u,d,h,f){for(var m=s-1,x=s===0?a:[""],v=zOe(x),_=0,w=0,S=0;_<i;++_)for(var C=0,j=Z1(e,m+1,m=lne(w=o[_])),T=e;C<v;++C)(T=cne(w>0?x[C]+" "+j:C3(j,/&\f/g,x[C])))&&(u[S++]=T);return A9(e,r,n,s===0?ane:l,u,d,h,f)}function XOe(e,r,n,i){return A9(e,r,n,sne,E9(FOe()),Z1(e,2,-2),0,i)}function dz(e,r,n,i,s){return A9(e,r,n,one,Z1(e,0,i),Z1(e,i+1,-1),i,s)}function QA(e,r){for(var n="",i=0;i<e.length;i++)n+=r(e[i],i,e,r)||"";return n}function JOe(e,r,n,i){switch(e.type){case IOe:if(e.children.length)break;case LOe:case $Oe:case one:return e.return=e.return||e.value;case sne:return"";case DOe:return e.return=e.value+"{"+QA(e.children,i)+"}";case ane:if(!ph(e.value=e.props.join(",")))return""}return ph(n=QA(e.children,i))?e.return=e.value+"{"+n+"}":""}var ZOe=Pee(Object.keys,Object),QOe=Object.prototype,e7e=QOe.hasOwnProperty;function t7e(e){if(!O4(e))return ZOe(e);var r=[];for(var n in Object(e))e7e.call(e,n)&&n!="constructor"&&r.push(n);return r}var eO=z0(Md,"DataView"),tO=z0(Md,"Promise"),rO=z0(Md,"Set"),nO=z0(Md,"WeakMap"),hz="[object Map]",r7e="[object Object]",fz="[object Promise]",pz="[object Set]",mz="[object WeakMap]",gz="[object DataView]",n7e=B0(eO),i7e=B0(Q_),s7e=B0(tO),a7e=B0(rO),o7e=B0(nO),$g=I0;(eO&&$g(new eO(new ArrayBuffer(1)))!=gz||Q_&&$g(new Q_)!=hz||tO&&$g(tO.resolve())!=fz||rO&&$g(new rO)!=pz||nO&&$g(new nO)!=mz)&&($g=function(e){var r=I0(e),n=r==r7e?e.constructor:void 0,i=n?B0(n):"";if(i)switch(i){case n7e:return gz;case i7e:return hz;case s7e:return fz;case a7e:return pz;case o7e:return mz}return r});var l7e="[object Map]",c7e="[object Set]",u7e=Object.prototype,d7e=u7e.hasOwnProperty;function yz(e){if(e==null)return!0;if(M4(e)&&($5(e)||typeof e=="string"||typeof e.splice=="function"||a9(e)||o9(e)||L5(e)))return!e.length;var r=$g(e);if(r==l7e||r==c7e)return!e.size;if(O4(e))return!t7e(e).length;for(var n in e)if(d7e.call(e,n))return!1;return!0}var dne="c4",h7e=Y(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),f7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./c4Diagram-IC4MRINW-BqAWkzs-.js");return{diagram:r}},__vite__mapDeps([8,9]),import.meta.url);return{id:dne,diagram:e}},"loader"),p7e={id:dne,detector:h7e,loader:f7e},m7e=p7e,hne="flowchart",g7e=Y((e,r)=>{var n,i;return((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((i=r==null?void 0:r.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),y7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-DLkZqg13.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:hne,diagram:e}},"loader"),x7e={id:hne,detector:g7e,loader:y7e},v7e=x7e,fne="flowchart-v2",b7e=Y((e,r)=>{var n,i,s;return((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"?!1:(((i=r==null?void 0:r.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(r.layout="elk"),/^\s*graph/.test(e)&&((s=r==null?void 0:r.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),_7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-DLkZqg13.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:fne,diagram:e}},"loader"),w7e={id:fne,detector:b7e,loader:_7e},S7e=w7e,pne="er",k7e=Y(e=>/^\s*erDiagram/.test(e),"detector"),C7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./erDiagram-INFDFZHY-BXv7WM3l.js");return{diagram:r}},__vite__mapDeps([15,12,13,14]),import.meta.url);return{id:pne,diagram:e}},"loader"),j7e={id:pne,detector:k7e,loader:C7e},N7e=j7e,mne="gitGraph",T7e=Y(e=>/^\s*gitGraph/.test(e),"detector"),E7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./gitGraphDiagram-K3NZZRJ6-E6wbBlsP.js");return{diagram:r}},__vite__mapDeps([16,17,18,19,2,4,5]),import.meta.url);return{id:mne,diagram:e}},"loader"),A7e={id:mne,detector:T7e,loader:E7e},O7e=A7e,gne="gantt",M7e=Y(e=>/^\s*gantt/.test(e),"detector"),R7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./ganttDiagram-A5KZAMGK-BGyztQsc.js");return{diagram:r}},__vite__mapDeps([20,21,22]),import.meta.url);return{id:gne,diagram:e}},"loader"),P7e={id:gne,detector:M7e,loader:R7e},L7e=P7e,yne="info",$7e=Y(e=>/^\s*info/.test(e),"detector"),D7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./infoDiagram-LFFYTUFH-DzgHYpq5.js");return{diagram:r}},__vite__mapDeps([23,19,2,4,5]),import.meta.url);return{id:yne,diagram:e}},"loader"),I7e={id:yne,detector:$7e,loader:D7e},xne="pie",B7e=Y(e=>/^\s*pie/.test(e),"detector"),z7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./pieDiagram-SKSYHLDU-BkyzGxkY.js");return{diagram:r}},__vite__mapDeps([24,17,19,2,4,5,25]),import.meta.url);return{id:xne,diagram:e}},"loader"),F7e={id:xne,detector:B7e,loader:z7e},vne="quadrantChart",H7e=Y(e=>/^\s*quadrantChart/.test(e),"detector"),W7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./quadrantDiagram-337W2JSQ-BgJaEIFa.js");return{diagram:r}},__vite__mapDeps([26,21,22]),import.meta.url);return{id:vne,diagram:e}},"loader"),U7e={id:vne,detector:H7e,loader:W7e},V7e=U7e,bne="xychart",q7e=Y(e=>/^\s*xychart(-beta)?/.test(e),"detector"),G7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./xychartDiagram-JWTSCODW-DW14zg7w.js");return{diagram:r}},__vite__mapDeps([27,21,22]),import.meta.url);return{id:bne,diagram:e}},"loader"),K7e={id:bne,detector:q7e,loader:G7e},Y7e=K7e,_ne="requirement",X7e=Y(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),J7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./requirementDiagram-Z7DCOOCP-DK1P7jA_.js");return{diagram:r}},__vite__mapDeps([28,12,13]),import.meta.url);return{id:_ne,diagram:e}},"loader"),Z7e={id:_ne,detector:X7e,loader:J7e},Q7e=Z7e,wne="sequence",eMe=Y(e=>/^\s*sequenceDiagram/.test(e),"detector"),tMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./sequenceDiagram-2WXFIKYE-BLQEW8CR.js");return{diagram:r}},__vite__mapDeps([29,9,18]),import.meta.url);return{id:wne,diagram:e}},"loader"),rMe={id:wne,detector:eMe,loader:tMe},nMe=rMe,Sne="class",iMe=Y((e,r)=>{var n;return((n=r==null?void 0:r.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),sMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./classDiagram-VBA2DB6C-DeLk4MSw.js");return{diagram:r}},__vite__mapDeps([30,31,11,9,12,13]),import.meta.url);return{id:Sne,diagram:e}},"loader"),aMe={id:Sne,detector:iMe,loader:sMe},oMe=aMe,kne="classDiagram",lMe=Y((e,r)=>{var n;return/^\s*classDiagram/.test(e)&&((n=r==null?void 0:r.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),cMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./classDiagram-v2-RAHNMMFH-DeLk4MSw.js");return{diagram:r}},__vite__mapDeps([32,31,11,9,12,13]),import.meta.url);return{id:kne,diagram:e}},"loader"),uMe={id:kne,detector:lMe,loader:cMe},dMe=uMe,Cne="state",hMe=Y((e,r)=>{var n;return((n=r==null?void 0:r.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),fMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./stateDiagram-RAJIS63D-Bv9v_rm-.js");return{diagram:r}},__vite__mapDeps([33,34,12,13,1,2,3,4]),import.meta.url);return{id:Cne,diagram:e}},"loader"),pMe={id:Cne,detector:hMe,loader:fMe},mMe=pMe,jne="stateDiagram",gMe=Y((e,r)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=r==null?void 0:r.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},"detector"),yMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./stateDiagram-v2-FVOUBMTO-BRMixW2a.js");return{diagram:r}},__vite__mapDeps([35,34,12,13]),import.meta.url);return{id:jne,diagram:e}},"loader"),xMe={id:jne,detector:gMe,loader:yMe},vMe=xMe,Nne="journey",bMe=Y(e=>/^\s*journey/.test(e),"detector"),_Me=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./journeyDiagram-4ABVD52K-atFaSger.js");return{diagram:r}},__vite__mapDeps([36,11,9,25]),import.meta.url);return{id:Nne,diagram:e}},"loader"),wMe={id:Nne,detector:bMe,loader:_Me},SMe=wMe,kMe=Y((e,r,n)=>{Ct.debug(`rendering svg for syntax error
1116
- `);const i=rNe(r),s=i.append("g");i.attr("viewBox","0 0 2412 512"),XJ(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw"),Tne={draw:kMe},CMe=Tne,jMe={db:{},renderer:Tne,parser:{parse:Y(()=>{},"parse")}},NMe=jMe,Ene="flowchart-elk",TMe=Y((e,r={})=>{var n;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="elk"?(r.layout="elk",!0):!1},"detector"),EMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-DLkZqg13.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:Ene,diagram:e}},"loader"),AMe={id:Ene,detector:TMe,loader:EMe},OMe=AMe,Ane="timeline",MMe=Y(e=>/^\s*timeline/.test(e),"detector"),RMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./timeline-definition-YZTLITO2-lFuI12Na.js");return{diagram:r}},__vite__mapDeps([37,25]),import.meta.url);return{id:Ane,diagram:e}},"loader"),PMe={id:Ane,detector:MMe,loader:RMe},LMe=PMe,One="mindmap",$Me=Y(e=>/^\s*mindmap/.test(e),"detector"),DMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./mindmap-definition-YRQLILUH-DACmM0qB.js");return{diagram:r}},__vite__mapDeps([38,12,13]),import.meta.url);return{id:One,diagram:e}},"loader"),IMe={id:One,detector:$Me,loader:DMe},BMe=IMe,Mne="kanban",zMe=Y(e=>/^\s*kanban/.test(e),"detector"),FMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./kanban-definition-K7BYSVSG-yKfbtlJL.js");return{diagram:r}},__vite__mapDeps([39,11]),import.meta.url);return{id:Mne,diagram:e}},"loader"),HMe={id:Mne,detector:zMe,loader:FMe},WMe=HMe,Rne="sankey",UMe=Y(e=>/^\s*sankey(-beta)?/.test(e),"detector"),VMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./sankeyDiagram-WA2Y5GQK-DIzL8E1x.js");return{diagram:r}},[],import.meta.url);return{id:Rne,diagram:e}},"loader"),qMe={id:Rne,detector:UMe,loader:VMe},GMe=qMe,Pne="packet",KMe=Y(e=>/^\s*packet(-beta)?/.test(e),"detector"),YMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-P4PSJMXO-yKAu5mne.js");return{diagram:r}},__vite__mapDeps([40,17,19,2,4,5]),import.meta.url);return{id:Pne,diagram:e}},"loader"),XMe={id:Pne,detector:KMe,loader:YMe},Lne="radar",JMe=Y(e=>/^\s*radar-beta/.test(e),"detector"),ZMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-IFDJBPK2-CANcaN9U.js");return{diagram:r}},__vite__mapDeps([41,17,19,2,4,5]),import.meta.url);return{id:Lne,diagram:e}},"loader"),QMe={id:Lne,detector:JMe,loader:ZMe},$ne="block",eRe=Y(e=>/^\s*block(-beta)?/.test(e),"detector"),tRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./blockDiagram-WCTKOSBZ-F1gSvgCt.js");return{diagram:r}},__vite__mapDeps([42,11,5,2,1,14]),import.meta.url);return{id:$ne,diagram:e}},"loader"),rRe={id:$ne,detector:eRe,loader:tRe},nRe=rRe,Dne="architecture",iRe=Y(e=>/^\s*architecture/.test(e),"detector"),sRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./architectureDiagram-2XIMDMQ5-D8aMvG5Q.js");return{diagram:r}},__vite__mapDeps([43,17,19,2,4,5,7]),import.meta.url);return{id:Dne,diagram:e}},"loader"),aRe={id:Dne,detector:iRe,loader:sRe},oRe=aRe,Ine="ishikawa",lRe=Y(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),cRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./ishikawaDiagram-PHBUUO56-C6H7ypHK.js");return{diagram:r}},[],import.meta.url);return{id:Ine,diagram:e}},"loader"),uRe={id:Ine,detector:lRe,loader:cRe},Bne="venn",dRe=Y(e=>/^\s*venn-beta/.test(e),"detector"),hRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./vennDiagram-LZ73GAT5-B7FbeOKl.js");return{diagram:r}},[],import.meta.url);return{id:Bne,diagram:e}},"loader"),fRe={id:Bne,detector:dRe,loader:hRe},pRe=fRe,zne="treemap",mRe=Y(e=>/^\s*treemap/.test(e),"detector"),gRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-E7M64L7V-CxyBwRM3.js");return{diagram:r}},__vite__mapDeps([44,13,17,19,2,4,5,22]),import.meta.url);return{id:zne,diagram:e}},"loader"),yRe={id:zne,detector:mRe,loader:gRe},xz=!1,H4=Y(()=>{xz||(xz=!0,y5("error",NMe,e=>e.toLowerCase().trim()==="error"),y5("---",{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("---")),lA(OMe,BMe,oRe),lA(m7e,WMe,dMe,oMe,N7e,L7e,I7e,F7e,Q7e,nMe,S7e,v7e,LMe,O7e,vMe,mMe,SMe,V7e,GMe,XMe,Y7e,nRe,QMe,uRe,yRe,pRe))},"addDiagrams"),xRe=Y(async()=>{Ct.debug("Loading registered diagrams");const r=(await Promise.allSettled(Object.entries(d0).map(async([n,{detector:i,loader:s}])=>{if(s)try{hA(n)}catch{try{const{diagram:a,id:o}=await s();y5(o,a,i)}catch(a){throw Ct.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete d0[n],a}}}))).filter(n=>n.status==="rejected");if(r.length>0){Ct.error(`Failed to load ${r.length} external diagrams`);for(const n of r)Ct.error(n);throw new Error(`Failed to load ${r.length} external diagrams`)}},"loadRegisteredDiagrams"),vRe="graphics-document document";function Fne(e,r){e.attr("role",vRe),r!==""&&e.attr("aria-roledescription",r)}Y(Fne,"setA11yDiagramInfo");function Hne(e,r,n,i){if(e.insert!==void 0){if(n){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(n)}if(r){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(r)}}}Y(Hne,"addSVGa11yTitleDescription");var a0,iO=(a0=class{constructor(r,n,i,s,a){this.type=r,this.text=n,this.db=i,this.parser=s,this.renderer=a}static async fromText(r,n={}){var d,h;const i=So(),s=ER(r,i);r=s8e(r)+`
1115
+ L0,20`)},"requirement_arrow"),AOe=Y((e,r,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+r+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),OOe={extension:gOe,composition:yOe,aggregation:xOe,dependency:vOe,lollipop:bOe,point:_Oe,circle:wOe,cross:SOe,barb:kOe,only_one:COe,zero_or_one:jOe,one_or_more:NOe,zero_or_more:TOe,requirement_arrow:EOe,requirement_contains:AOe},MOe=mOe,ROe={common:iS,getConfig:So,insertCluster:BAe,insertEdge:pOe,insertEdgeLabel:lOe,insertMarkers:MOe,insertNode:ene,interpolateToCurve:l9,labelHelper:Qr,log:Ct,positionEdgeLabel:cOe},t2={},ine=Y(e=>{for(const r of e)t2[r.name]=r},"registerLayoutLoaders"),POe=Y(()=>{ine([{name:"dagre",loader:Y(async()=>await it(()=>import("./dagre-KLK3FWXG-CvfR2PN2.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-DTHhAYyX.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");POe();var T_t=Y(async(e,r)=>{if(!(e.layoutAlgorithm in t2))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const n=t2[e.layoutAlgorithm];return(await n.loader()).render(e,r,ROe,{algorithm:n.algorithm})},"render"),E_t=Y((e="",{fallback:r="dagre"}={})=>{if(e in t2)return e;if(r in t2)return Ct.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Both layout algorithms ${e} and ${r} are not registered.`)},"getRegisteredLayoutAlgorithm"),sne="comm",ane="rule",one="decl",LOe="@import",$Oe="@namespace",DOe="@keyframes",IOe="@layer",lne=Math.abs,E9=String.fromCharCode;function cne(e){return e.trim()}function C3(e,r,n){return e.replace(r,n)}function BOe(e,r,n){return e.indexOf(r,n)}function k1(e,r){return e.charCodeAt(r)|0}function Z1(e,r,n){return e.slice(r,n)}function ph(e){return e.length}function zOe(e){return e.length}function gC(e,r){return r.push(e),e}var z4=1,Q1=1,une=0,ju=0,Ks=0,Cx="";function A9(e,r,n,i,s,a,o,l){return{value:e,root:r,parent:n,type:i,props:s,children:a,line:z4,column:Q1,length:o,return:"",siblings:l}}function FOe(){return Ks}function HOe(){return Ks=ju>0?k1(Cx,--ju):0,Q1--,Ks===10&&(Q1=1,z4--),Ks}function vd(){return Ks=ju<une?k1(Cx,ju++):0,Q1++,Ks===10&&(Q1=1,z4++),Ks}function ym(){return k1(Cx,ju)}function j3(){return ju}function F4(e,r){return Z1(Cx,e,r)}function r2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function WOe(e){return z4=Q1=1,une=ph(Cx=e),ju=0,[]}function UOe(e){return Cx="",e}function wT(e){return cne(F4(ju-1,ZA(e===91?e+2:e===40?e+1:e)))}function VOe(e){for(;(Ks=ym())&&Ks<33;)vd();return r2(e)>2||r2(Ks)>3?"":" "}function qOe(e,r){for(;--r&&vd()&&!(Ks<48||Ks>102||Ks>57&&Ks<65||Ks>70&&Ks<97););return F4(e,j3()+(r<6&&ym()==32&&vd()==32))}function ZA(e){for(;vd();)switch(Ks){case e:return ju;case 34:case 39:e!==34&&e!==39&&ZA(Ks);break;case 40:e===41&&ZA(e);break;case 92:vd();break}return ju}function GOe(e,r){for(;vd()&&e+Ks!==57;)if(e+Ks===84&&ym()===47)break;return"/*"+F4(r,ju-1)+"*"+E9(e===47?e:vd())}function KOe(e){for(;!r2(ym());)vd();return F4(e,ju)}function YOe(e){return UOe(N3("",null,null,null,[""],e=WOe(e),0,[0],e))}function N3(e,r,n,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,M=j;w;)switch(v=C,C=vd()){case 40:if(v!=108&&k1(M,f-1)==58){BOe(M+=C3(wT(C),"&","&\f"),"&\f",lne(d?l[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:M+=wT(C);break;case 9:case 10:case 13:case 32:M+=VOe(v);break;case 92:M+=qOe(j3()-1,7);continue;case 47:switch(ym()){case 42:case 47:gC(XOe(GOe(vd(),j3()),r,n,u),u),(r2(v||1)==5||r2(ym()||1)==5)&&ph(M)&&Z1(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*_:l[d++]=ph(M)*S;case 125*_:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+h:S==-1&&(M=C3(M,/\f/g,"")),x>0&&(ph(M)-f||_===0&&v===47)&&gC(x>32?dz(M+";",i,n,f-1,u):dz(C3(M," ","")+";",i,n,f-2,u),u);break;case 59:M+=";";default:if(gC(N=uz(M,r,n,d,h,s,l,j,T=[],E=[],f,a),a),C===123)if(h===0)N3(M,r,N,N,T,a,f,l,E);else{switch(m){case 99:if(k1(M,3)===110)break;case 108:if(k1(M,2)===97)break;default:h=0;case 100:case 109:case 115:}h?N3(e,N,N,i&&gC(uz(e,N,N,0,0,s,l,j,s,T=[],f,E),E),s,E,f,l,i?T:E):N3(M,N,N,N,[""],E,0,l,E)}}d=h=x=0,_=S=1,j=M="",f=o;break;case 58:f=1+ph(M),x=v;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&HOe()==125)continue}switch(M+=E9(C),C*_){case 38:S=h>0?1:(M+="\f",-1);break;case 44:l[d++]=(ph(M)-1)*S,S=1;break;case 64:ym()===45&&(M+=wT(vd())),m=ym(),h=f=ph(j=M+=KOe(j3())),C++;break;case 45:v===45&&ph(M)==2&&(_=0)}}return a}function uz(e,r,n,i,s,a,o,l,u,d,h,f){for(var m=s-1,x=s===0?a:[""],v=zOe(x),_=0,w=0,S=0;_<i;++_)for(var C=0,j=Z1(e,m+1,m=lne(w=o[_])),T=e;C<v;++C)(T=cne(w>0?x[C]+" "+j:C3(j,/&\f/g,x[C])))&&(u[S++]=T);return A9(e,r,n,s===0?ane:l,u,d,h,f)}function XOe(e,r,n,i){return A9(e,r,n,sne,E9(FOe()),Z1(e,2,-2),0,i)}function dz(e,r,n,i,s){return A9(e,r,n,one,Z1(e,0,i),Z1(e,i+1,-1),i,s)}function QA(e,r){for(var n="",i=0;i<e.length;i++)n+=r(e[i],i,e,r)||"";return n}function JOe(e,r,n,i){switch(e.type){case IOe:if(e.children.length)break;case LOe:case $Oe:case one:return e.return=e.return||e.value;case sne:return"";case DOe:return e.return=e.value+"{"+QA(e.children,i)+"}";case ane:if(!ph(e.value=e.props.join(",")))return""}return ph(n=QA(e.children,i))?e.return=e.value+"{"+n+"}":""}var ZOe=Pee(Object.keys,Object),QOe=Object.prototype,e7e=QOe.hasOwnProperty;function t7e(e){if(!O4(e))return ZOe(e);var r=[];for(var n in Object(e))e7e.call(e,n)&&n!="constructor"&&r.push(n);return r}var eO=z0(Md,"DataView"),tO=z0(Md,"Promise"),rO=z0(Md,"Set"),nO=z0(Md,"WeakMap"),hz="[object Map]",r7e="[object Object]",fz="[object Promise]",pz="[object Set]",mz="[object WeakMap]",gz="[object DataView]",n7e=B0(eO),i7e=B0(Q_),s7e=B0(tO),a7e=B0(rO),o7e=B0(nO),$g=I0;(eO&&$g(new eO(new ArrayBuffer(1)))!=gz||Q_&&$g(new Q_)!=hz||tO&&$g(tO.resolve())!=fz||rO&&$g(new rO)!=pz||nO&&$g(new nO)!=mz)&&($g=function(e){var r=I0(e),n=r==r7e?e.constructor:void 0,i=n?B0(n):"";if(i)switch(i){case n7e:return gz;case i7e:return hz;case s7e:return fz;case a7e:return pz;case o7e:return mz}return r});var l7e="[object Map]",c7e="[object Set]",u7e=Object.prototype,d7e=u7e.hasOwnProperty;function yz(e){if(e==null)return!0;if(M4(e)&&($5(e)||typeof e=="string"||typeof e.splice=="function"||a9(e)||o9(e)||L5(e)))return!e.length;var r=$g(e);if(r==l7e||r==c7e)return!e.size;if(O4(e))return!t7e(e).length;for(var n in e)if(d7e.call(e,n))return!1;return!0}var dne="c4",h7e=Y(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),f7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./c4Diagram-IC4MRINW-frUf8uKc.js");return{diagram:r}},__vite__mapDeps([8,9]),import.meta.url);return{id:dne,diagram:e}},"loader"),p7e={id:dne,detector:h7e,loader:f7e},m7e=p7e,hne="flowchart",g7e=Y((e,r)=>{var n,i;return((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((i=r==null?void 0:r.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),y7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-780t3cps.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:hne,diagram:e}},"loader"),x7e={id:hne,detector:g7e,loader:y7e},v7e=x7e,fne="flowchart-v2",b7e=Y((e,r)=>{var n,i,s;return((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"?!1:(((i=r==null?void 0:r.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(r.layout="elk"),/^\s*graph/.test(e)&&((s=r==null?void 0:r.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),_7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-780t3cps.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:fne,diagram:e}},"loader"),w7e={id:fne,detector:b7e,loader:_7e},S7e=w7e,pne="er",k7e=Y(e=>/^\s*erDiagram/.test(e),"detector"),C7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./erDiagram-INFDFZHY-Dtm6lv8r.js");return{diagram:r}},__vite__mapDeps([15,12,13,14]),import.meta.url);return{id:pne,diagram:e}},"loader"),j7e={id:pne,detector:k7e,loader:C7e},N7e=j7e,mne="gitGraph",T7e=Y(e=>/^\s*gitGraph/.test(e),"detector"),E7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./gitGraphDiagram-K3NZZRJ6-D4E9DWlV.js");return{diagram:r}},__vite__mapDeps([16,17,18,19,2,4,5]),import.meta.url);return{id:mne,diagram:e}},"loader"),A7e={id:mne,detector:T7e,loader:E7e},O7e=A7e,gne="gantt",M7e=Y(e=>/^\s*gantt/.test(e),"detector"),R7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./ganttDiagram-A5KZAMGK-B5LqHhpq.js");return{diagram:r}},__vite__mapDeps([20,21,22]),import.meta.url);return{id:gne,diagram:e}},"loader"),P7e={id:gne,detector:M7e,loader:R7e},L7e=P7e,yne="info",$7e=Y(e=>/^\s*info/.test(e),"detector"),D7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./infoDiagram-LFFYTUFH-DDUxYsyf.js");return{diagram:r}},__vite__mapDeps([23,19,2,4,5]),import.meta.url);return{id:yne,diagram:e}},"loader"),I7e={id:yne,detector:$7e,loader:D7e},xne="pie",B7e=Y(e=>/^\s*pie/.test(e),"detector"),z7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./pieDiagram-SKSYHLDU-63nBc_um.js");return{diagram:r}},__vite__mapDeps([24,17,19,2,4,5,25]),import.meta.url);return{id:xne,diagram:e}},"loader"),F7e={id:xne,detector:B7e,loader:z7e},vne="quadrantChart",H7e=Y(e=>/^\s*quadrantChart/.test(e),"detector"),W7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./quadrantDiagram-337W2JSQ-q0JkNGpM.js");return{diagram:r}},__vite__mapDeps([26,21,22]),import.meta.url);return{id:vne,diagram:e}},"loader"),U7e={id:vne,detector:H7e,loader:W7e},V7e=U7e,bne="xychart",q7e=Y(e=>/^\s*xychart(-beta)?/.test(e),"detector"),G7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./xychartDiagram-JWTSCODW-D8MGMDFb.js");return{diagram:r}},__vite__mapDeps([27,21,22]),import.meta.url);return{id:bne,diagram:e}},"loader"),K7e={id:bne,detector:q7e,loader:G7e},Y7e=K7e,_ne="requirement",X7e=Y(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),J7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./requirementDiagram-Z7DCOOCP-AyMfjYmA.js");return{diagram:r}},__vite__mapDeps([28,12,13]),import.meta.url);return{id:_ne,diagram:e}},"loader"),Z7e={id:_ne,detector:X7e,loader:J7e},Q7e=Z7e,wne="sequence",eMe=Y(e=>/^\s*sequenceDiagram/.test(e),"detector"),tMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./sequenceDiagram-2WXFIKYE-DPGS9_hK.js");return{diagram:r}},__vite__mapDeps([29,9,18]),import.meta.url);return{id:wne,diagram:e}},"loader"),rMe={id:wne,detector:eMe,loader:tMe},nMe=rMe,Sne="class",iMe=Y((e,r)=>{var n;return((n=r==null?void 0:r.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),sMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./classDiagram-VBA2DB6C-Dthd4Voy.js");return{diagram:r}},__vite__mapDeps([30,31,11,9,12,13]),import.meta.url);return{id:Sne,diagram:e}},"loader"),aMe={id:Sne,detector:iMe,loader:sMe},oMe=aMe,kne="classDiagram",lMe=Y((e,r)=>{var n;return/^\s*classDiagram/.test(e)&&((n=r==null?void 0:r.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),cMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./classDiagram-v2-RAHNMMFH-Dthd4Voy.js");return{diagram:r}},__vite__mapDeps([32,31,11,9,12,13]),import.meta.url);return{id:kne,diagram:e}},"loader"),uMe={id:kne,detector:lMe,loader:cMe},dMe=uMe,Cne="state",hMe=Y((e,r)=>{var n;return((n=r==null?void 0:r.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),fMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./stateDiagram-RAJIS63D-CQLMpY7Z.js");return{diagram:r}},__vite__mapDeps([33,34,12,13,1,2,3,4]),import.meta.url);return{id:Cne,diagram:e}},"loader"),pMe={id:Cne,detector:hMe,loader:fMe},mMe=pMe,jne="stateDiagram",gMe=Y((e,r)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=r==null?void 0:r.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},"detector"),yMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./stateDiagram-v2-FVOUBMTO-DpHwDYQ3.js");return{diagram:r}},__vite__mapDeps([35,34,12,13]),import.meta.url);return{id:jne,diagram:e}},"loader"),xMe={id:jne,detector:gMe,loader:yMe},vMe=xMe,Nne="journey",bMe=Y(e=>/^\s*journey/.test(e),"detector"),_Me=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./journeyDiagram-4ABVD52K-Di0EIn7Y.js");return{diagram:r}},__vite__mapDeps([36,11,9,25]),import.meta.url);return{id:Nne,diagram:e}},"loader"),wMe={id:Nne,detector:bMe,loader:_Me},SMe=wMe,kMe=Y((e,r,n)=>{Ct.debug(`rendering svg for syntax error
1116
+ `);const i=rNe(r),s=i.append("g");i.attr("viewBox","0 0 2412 512"),XJ(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw"),Tne={draw:kMe},CMe=Tne,jMe={db:{},renderer:Tne,parser:{parse:Y(()=>{},"parse")}},NMe=jMe,Ene="flowchart-elk",TMe=Y((e,r={})=>{var n;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="elk"?(r.layout="elk",!0):!1},"detector"),EMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-780t3cps.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:Ene,diagram:e}},"loader"),AMe={id:Ene,detector:TMe,loader:EMe},OMe=AMe,Ane="timeline",MMe=Y(e=>/^\s*timeline/.test(e),"detector"),RMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./timeline-definition-YZTLITO2-DzUZuJQG.js");return{diagram:r}},__vite__mapDeps([37,25]),import.meta.url);return{id:Ane,diagram:e}},"loader"),PMe={id:Ane,detector:MMe,loader:RMe},LMe=PMe,One="mindmap",$Me=Y(e=>/^\s*mindmap/.test(e),"detector"),DMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./mindmap-definition-YRQLILUH-dbGiW4tz.js");return{diagram:r}},__vite__mapDeps([38,12,13]),import.meta.url);return{id:One,diagram:e}},"loader"),IMe={id:One,detector:$Me,loader:DMe},BMe=IMe,Mne="kanban",zMe=Y(e=>/^\s*kanban/.test(e),"detector"),FMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./kanban-definition-K7BYSVSG-Bsook8cN.js");return{diagram:r}},__vite__mapDeps([39,11]),import.meta.url);return{id:Mne,diagram:e}},"loader"),HMe={id:Mne,detector:zMe,loader:FMe},WMe=HMe,Rne="sankey",UMe=Y(e=>/^\s*sankey(-beta)?/.test(e),"detector"),VMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./sankeyDiagram-WA2Y5GQK-B8Xhghtq.js");return{diagram:r}},[],import.meta.url);return{id:Rne,diagram:e}},"loader"),qMe={id:Rne,detector:UMe,loader:VMe},GMe=qMe,Pne="packet",KMe=Y(e=>/^\s*packet(-beta)?/.test(e),"detector"),YMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-P4PSJMXO-D8oqdRM8.js");return{diagram:r}},__vite__mapDeps([40,17,19,2,4,5]),import.meta.url);return{id:Pne,diagram:e}},"loader"),XMe={id:Pne,detector:KMe,loader:YMe},Lne="radar",JMe=Y(e=>/^\s*radar-beta/.test(e),"detector"),ZMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-IFDJBPK2-DYPqb_lA.js");return{diagram:r}},__vite__mapDeps([41,17,19,2,4,5]),import.meta.url);return{id:Lne,diagram:e}},"loader"),QMe={id:Lne,detector:JMe,loader:ZMe},$ne="block",eRe=Y(e=>/^\s*block(-beta)?/.test(e),"detector"),tRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./blockDiagram-WCTKOSBZ-CNUF5-Si.js");return{diagram:r}},__vite__mapDeps([42,11,5,2,1,14]),import.meta.url);return{id:$ne,diagram:e}},"loader"),rRe={id:$ne,detector:eRe,loader:tRe},nRe=rRe,Dne="architecture",iRe=Y(e=>/^\s*architecture/.test(e),"detector"),sRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./architectureDiagram-2XIMDMQ5-Doalw_qz.js");return{diagram:r}},__vite__mapDeps([43,17,19,2,4,5,7]),import.meta.url);return{id:Dne,diagram:e}},"loader"),aRe={id:Dne,detector:iRe,loader:sRe},oRe=aRe,Ine="ishikawa",lRe=Y(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),cRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./ishikawaDiagram-PHBUUO56-BIphFO-6.js");return{diagram:r}},[],import.meta.url);return{id:Ine,diagram:e}},"loader"),uRe={id:Ine,detector:lRe,loader:cRe},Bne="venn",dRe=Y(e=>/^\s*venn-beta/.test(e),"detector"),hRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./vennDiagram-LZ73GAT5-B3VtqzGY.js");return{diagram:r}},[],import.meta.url);return{id:Bne,diagram:e}},"loader"),fRe={id:Bne,detector:dRe,loader:hRe},pRe=fRe,zne="treemap",mRe=Y(e=>/^\s*treemap/.test(e),"detector"),gRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-E7M64L7V-E8kQlK95.js");return{diagram:r}},__vite__mapDeps([44,13,17,19,2,4,5,22]),import.meta.url);return{id:zne,diagram:e}},"loader"),yRe={id:zne,detector:mRe,loader:gRe},xz=!1,H4=Y(()=>{xz||(xz=!0,y5("error",NMe,e=>e.toLowerCase().trim()==="error"),y5("---",{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("---")),lA(OMe,BMe,oRe),lA(m7e,WMe,dMe,oMe,N7e,L7e,I7e,F7e,Q7e,nMe,S7e,v7e,LMe,O7e,vMe,mMe,SMe,V7e,GMe,XMe,Y7e,nRe,QMe,uRe,yRe,pRe))},"addDiagrams"),xRe=Y(async()=>{Ct.debug("Loading registered diagrams");const r=(await Promise.allSettled(Object.entries(d0).map(async([n,{detector:i,loader:s}])=>{if(s)try{hA(n)}catch{try{const{diagram:a,id:o}=await s();y5(o,a,i)}catch(a){throw Ct.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete d0[n],a}}}))).filter(n=>n.status==="rejected");if(r.length>0){Ct.error(`Failed to load ${r.length} external diagrams`);for(const n of r)Ct.error(n);throw new Error(`Failed to load ${r.length} external diagrams`)}},"loadRegisteredDiagrams"),vRe="graphics-document document";function Fne(e,r){e.attr("role",vRe),r!==""&&e.attr("aria-roledescription",r)}Y(Fne,"setA11yDiagramInfo");function Hne(e,r,n,i){if(e.insert!==void 0){if(n){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(n)}if(r){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(r)}}}Y(Hne,"addSVGa11yTitleDescription");var a0,iO=(a0=class{constructor(r,n,i,s,a){this.type=r,this.text=n,this.db=i,this.parser=s,this.renderer=a}static async fromText(r,n={}){var d,h;const i=So(),s=ER(r,i);r=s8e(r)+`
1117
1117
  `;try{hA(s)}catch{const f=Gke(s);if(!f)throw new $J(`Diagram ${s} not found.`);const{id:m,diagram:x}=await f();y5(m,x)}const{db:a,parser:o,renderer:l,init:u}=hA(s);return o.parser&&(o.parser.yy=a),(d=a.clear)==null||d.call(a),u==null||u(i),n.title&&((h=a.setDiagramTitle)==null||h.call(a,n.title)),await o.parse(r),new a0(s,r,a,o,l)}async render(r,n){await this.renderer.draw(this.text,r,n,this)}getParser(){return this.parser}getType(){return this.type}},Y(a0,"Diagram"),a0),vz=[],bRe=Y(()=>{vz.forEach(e=>{e()}),vz=[]},"attachFunctions"),_Re=Y(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Wne(e){const r=e.match(LJ);if(!r)return{text:e,metadata:{}};let n=c6e(r[1],{schema:l6e})??{};n=typeof n=="object"&&!Array.isArray(n)?n:{};const i={};return n.displayMode&&(i.displayMode=n.displayMode.toString()),n.title&&(i.title=n.title.toString()),n.config&&(i.config=n.config),{text:e.slice(r[0].length),metadata:i}}Y(Wne,"extractFrontMatter");var wRe=Y(e=>e.replace(/\r\n?/g,`
1118
1118
  `).replace(/<(\w+)([^>]*)>/g,(r,n,i)=>"<"+n+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),SRe=Y(e=>{const{text:r,metadata:n}=Wne(e),{displayMode:i,title:s,config:a={}}=n;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:s,config:a,text:r}},"processFrontmatter"),kRe=Y(e=>{const r=cd.detectInit(e)??{},n=cd.detectDirective(e,"wrap");return Array.isArray(n)?r.wrap=n.some(({type:i})=>i==="wrap"):(n==null?void 0:n.type)==="wrap"&&(r.wrap=!0),{text:qEe(e),directive:r}},"processDirectives");function O9(e){const r=wRe(e),n=SRe(r),i=kRe(n.text),s=f9(n.config,i.directive);return e=_Re(i.text),{code:e,title:n.title,config:s}}Y(O9,"preprocessDiagram");function Une(e){const r=new TextEncoder().encode(e),n=Array.from(r,i=>String.fromCodePoint(i)).join("");return btoa(n)}Y(Une,"toBase64");var CRe=5e4,jRe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",NRe="sandbox",TRe="loose",ERe="http://www.w3.org/2000/svg",ARe="http://www.w3.org/1999/xlink",ORe="http://www.w3.org/1999/xhtml",MRe="100%",RRe="100%",PRe="border:0;margin:0;",LRe="margin:0",$Re="allow-top-navigation-by-user-activation allow-popups",DRe='The "iframe" tag is not supported by your browser.',IRe=["foreignobject"],BRe=["dominant-baseline"];function M9(e){const r=O9(e);return m5(),cCe(r.config??{}),r}Y(M9,"processAndSetConfigs");async function Vne(e,r){H4();try{const{code:n,config:i}=M9(e);return{diagramType:(await Gne(n)).type,config:i}}catch(n){if(r!=null&&r.suppressErrors)return!1;throw n}}Y(Vne,"parse");var bz=Y((e,r,n=[])=>`
1119
1119
  .${e} ${r} { ${n.join(" !important; ")} !important; }`,"cssImportantStyles"),zRe=Y((e,r=new Map)=>{let n="";if(e.themeCSS!==void 0&&(n+=`
@@ -1123,7 +1123,7 @@ ${e.themeCSS}`),e.fontFamily!==void 0&&(n+=`
1123
1123
  ${DRe}
1124
1124
  </iframe>`},"putIntoIFrame"),_z=Y((e,r,n,i,s)=>{const a=e.append("div");a.attr("id",n),i&&a.attr("style",i);const o=a.append("svg").attr("id",r).attr("width","100%").attr("xmlns",ERe);return s&&o.attr("xmlns:xlink",s),o.append("g"),e},"appendDivSvgG");function sO(e,r){return e.append("iframe").attr("id",r).attr("style","width: 100%; height: 100%;").attr("sandbox","")}Y(sO,"sandboxedIframe");var URe=Y((e,r,n,i)=>{var s,a,o;(s=e.getElementById(r))==null||s.remove(),(a=e.getElementById(n))==null||a.remove(),(o=e.getElementById(i))==null||o.remove()},"removeExistingElements"),VRe=Y(async function(e,r,n){var W,D,O,I,R,P;H4();const i=M9(r);r=i.code;const s=So();Ct.debug(s),r.length>((s==null?void 0:s.maxTextSize)??CRe)&&(r=jRe);const a="#"+e,o="i"+e,l="#"+o,u="d"+e,d="#"+u,h=Y(()=>{const G=Vr(m?l:d).node();G&&"remove"in G&&G.remove()},"removeTempElements");let f=Vr("body");const m=s.securityLevel===NRe,x=s.securityLevel===TRe,v=s.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),m){const H=sO(Vr(n),o);f=Vr(H.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=Vr(n);_z(f,e,u,`font-family: ${v}`,ARe)}else{if(URe(document,e,u,o),m){const H=sO(Vr("body"),o);f=Vr(H.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=Vr("body");_z(f,e,u)}let _,w;try{_=await iO.fromText(r,{title:i.title})}catch(H){if(s.suppressErrorRendering)throw h(),H;_=await iO.fromText("error"),w=H}const S=f.select(d).node(),C=_.type,j=S.firstChild,T=j.firstChild,E=(D=(W=_.renderer).getClasses)==null?void 0:D.call(W,r,_),N=FRe(s,C,E,a),M=document.createElement("style");M.innerHTML=N,j.insertBefore(M,T);try{await _.renderer.draw(r,e,"11.13.0",_)}catch(H){throw s.suppressErrorRendering?h():CMe.draw(r,e,"11.13.0"),H}const $=f.select(`${d} svg`),q=(I=(O=_.db).getAccTitle)==null?void 0:I.call(O),F=(P=(R=_.db).getAccDescription)==null?void 0:P.call(R);Kne(C,$,q,F),f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",ORe);let B=f.select(d).node().innerHTML;if(Ct.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),B=HRe(B,m,Vm(s.arrowMarkerAbsolute)),m){const H=f.select(d+" svg").node();B=WRe(B,H)}else x||(B=q1.sanitize(B,{ADD_TAGS:IRe,ADD_ATTR:BRe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(bRe(),w)throw w;return h(),{diagramType:C,svg:B,bindFunctions:_.db.bindFunctions}},"render");function qne(e={}){var i;const r=ga({},e);r!=null&&r.fontFamily&&!((i=r.themeVariables)!=null&&i.fontFamily)&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),oCe(r),r!=null&&r.theme&&r.theme in $f?r.themeVariables=$f[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=$f.default.getThemeVariables(r.themeVariables));const n=typeof r=="object"?aCe(r):FJ();TR(n.logLevel),H4()}Y(qne,"initialize");var Gne=Y((e,r={})=>{const{code:n}=O9(e);return iO.fromText(n,r)},"getDiagramFromText");function Kne(e,r,n,i){Fne(r,e),Hne(r,n,i,r.attr("id"))}Y(Kne,"addA11yInfo");var y0=Object.freeze({render:VRe,parse:Vne,getDiagramFromText:Gne,initialize:qne,getConfig:So,setConfig:HJ,getSiteConfig:FJ,updateSiteConfig:lCe,reset:Y(()=>{m5()},"reset"),globalReset:Y(()=>{m5(G1)},"globalReset"),defaultConfig:G1});TR(So().logLevel);m5(So());var qRe=Y((e,r,n)=>{Ct.warn(e),h9(e)?(n&&n(e.str,e.hash),r.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&r.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),Yne=Y(async function(e={querySelector:".mermaid"}){try{await GRe(e)}catch(r){if(h9(r)&&Ct.error(r.str),Nc.parseError&&Nc.parseError(r),!e.suppressErrors)throw Ct.error("Use the suppressErrors option to suppress these errors"),r}},"run"),GRe=Y(async function({postRenderCallback:e,querySelector:r,nodes:n}={querySelector:".mermaid"}){const i=y0.getConfig();Ct.debug(`${e?"":"No "}Callback function found`);let s;if(n)s=n;else if(r)s=document.querySelectorAll(r);else throw new Error("Nodes and querySelector are both undefined");Ct.debug(`Found ${s.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(Ct.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),y0.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new cd.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const l=[];for(const u of Array.from(s)){if(Ct.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const d=`mermaid-${a.next()}`;o=u.innerHTML,o=pte(cd.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=cd.detectInit(o);h&&Ct.debug("Detected early reinit: ",h);try{const{svg:f,bindFunctions:m}=await Qne(d,o,u);u.innerHTML=f,e&&await e(d),m&&m(u)}catch(f){qRe(f,l,Nc.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),Xne=Y(function(e){y0.initialize(e)},"initialize"),KRe=Y(async function(e,r,n){Ct.warn("mermaid.init is deprecated. Please use run instead."),e&&Xne(e);const i={postRenderCallback:n,querySelector:".mermaid"};typeof r=="string"?i.querySelector=r:r&&(r instanceof HTMLElement?i.nodes=[r]:i.nodes=r),await Yne(i)},"init"),YRe=Y(async(e,{lazyLoad:r=!0}={})=>{H4(),lA(...e),r===!1&&await xRe()},"registerExternalDiagrams"),Jne=Y(function(){if(Nc.startOnLoad){const{startOnLoad:e}=y0.getConfig();e&&Nc.run().catch(r=>Ct.error("Mermaid failed to initialize",r))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Jne,!1);var XRe=Y(function(e){Nc.parseError=e},"setParseErrorHandler"),G5=[],ST=!1,Zne=Y(async()=>{if(!ST){for(ST=!0;G5.length>0;){const e=G5.shift();if(e)try{await e()}catch(r){Ct.error("Error executing queue",r)}}ST=!1}},"executeQueue"),JRe=Y(async(e,r)=>new Promise((n,i)=>{const s=Y(()=>new Promise((a,o)=>{y0.parse(e,r).then(l=>{a(l),n(l)},l=>{var u;Ct.error("Error parsing",l),(u=Nc.parseError)==null||u.call(Nc,l),o(l),i(l)})}),"performCall");G5.push(s),Zne().catch(i)}),"parse"),Qne=Y((e,r,n)=>new Promise((i,s)=>{const a=Y(()=>new Promise((o,l)=>{y0.render(e,r,n).then(u=>{o(u),i(u)},u=>{var d;Ct.error("Error parsing",u),(d=Nc.parseError)==null||d.call(Nc,u),l(u),s(u)})}),"performCall");G5.push(a),Zne().catch(s)}),"render"),ZRe=Y(()=>Object.keys(d0).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Nc={startOnLoad:!0,mermaidAPI:y0,parse:JRe,render:Qne,init:KRe,run:Yne,registerExternalDiagrams:YRe,registerLayoutLoaders:ine,initialize:Xne,parseError:void 0,contentLoaded:Jne,setParseErrorHandler:XRe,detectType:ER,registerIconPacks:hAe,getRegisteredDiagramsMetadata:ZRe},aO=Nc;/*! Check if previously processed *//*!
1125
1125
  * Wait for document loaded before starting the execution
1126
- */let oO=!1;const QRe=.1,e9e=20;function kT(e){return Math.min(e9e,Math.max(QRe,e))}function wz(e,r,n,i){if(e===r)return n;const s=r/e;return{x:i.x-(i.x-n.x)*s,y:i.y-(i.y-n.y)*s}}function Sz(e){aO.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"}:{}}),oO=!0}function lO({diagram:e,isGenerating:r,onRegenerate:n,onGenerate:i,theme:s="dark",onRenderResult:a}){const o=y.useRef(null),l=y.useRef(null),[u,d]=y.useState(null),[h,f]=y.useState(!1),[m,x]=y.useState(1),[v,_]=y.useState({x:0,y:0}),w=y.useRef(0),S=y.useRef(new Map),C=y.useRef(null),j=y.useRef(null),T=y.useCallback(async D=>{if(!o.current)return;const O=++w.current;try{if(oO||Sz(s),!await aO.parse(D)||O!==w.current)return;const{svg:R}=await aO.render(`arch-${O}`,D);if(O!==w.current)return;o.current.innerHTML=R;const P=o.current.querySelector("svg"),H=l.current;if(P&&H){const G=H.clientWidth,U=H.clientHeight,V=P.width.baseVal.value||P.getBoundingClientRect().width,J=P.height.baseVal.value||P.getBoundingClientRect().height;if(V>0&&J>0&&G>0&&U>0){const ee=Math.min((G-32)/V,(U-32)/J);x(kT(ee))}else x(1)}else x(1);_({x:0,y:0}),d(null),a==null||a({ok:!0})}catch(I){if(O!==w.current)return;const R=I instanceof Error?I.message:"Failed to render diagram";d(R),a==null||a({ok:!1,error:R})}},[a,s]);y.useEffect(()=>{Sz(s),oO=!0,e&&T(e)},[s,e,T]),y.useEffect(()=>{e&&T(e)},[e,T]);const E=y.useCallback(()=>{e&&navigator.clipboard.writeText(e).then(()=>{f(!0),setTimeout(()=>f(!1),2e3)})},[e]),N=y.useCallback(()=>{if(!o.current)return;const D=o.current.querySelector("svg");if(!D)return;const O=new XMLSerializer().serializeToString(D),I=new Blob([O],{type:"image/svg+xml"}),R=URL.createObjectURL(I),P=document.createElement("a");P.href=R,P.download="architecture.svg",P.click(),URL.revokeObjectURL(R)},[]),M=y.useCallback((D,O)=>{var R;const I=(R=l.current)==null?void 0:R.getBoundingClientRect();return I?{x:D-I.left-I.width/2,y:O-I.top-I.height/2}:null},[]),$=y.useCallback((D,O)=>{x(I=>{const R=kT(D);return R===I?I:(_(P=>O?wz(I,R,P,O):P),R)})},[]),q=y.useCallback(D=>{const O=M(D.clientX,D.clientY);if(!O)return;D.preventDefault();const I=D.deltaY<0?1.1:.9;$(m*I,O)},[M,$,m]),F=y.useCallback(D=>{const O={x:D.clientX,y:D.clientY};if(S.current.set(D.pointerId,O),D.currentTarget.setPointerCapture(D.pointerId),S.current.size===1){C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY},j.current=null;return}if(S.current.size===2){const[I,R]=[...S.current.values()],P=Math.hypot(R.x-I.x,R.y-I.y);j.current={distance:P,scale:m,pan:v},C.current=null}},[v,m]),B=y.useCallback(D=>{var I;if(!S.current.has(D.pointerId))return;const O=S.current.get(D.pointerId);if(S.current.set(D.pointerId,{x:D.clientX,y:D.clientY}),S.current.size===1&&((I=C.current)==null?void 0:I.pointerId)===D.pointerId){const R=D.clientX-O.x,P=D.clientY-O.y;_(H=>({x:H.x+R,y:H.y+P})),C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY};return}if(S.current.size===2&&j.current){const[R,P]=[...S.current.values()],H={x:(R.x+P.x)/2,y:(R.y+P.y)/2},G=M(H.x,H.y),U=Math.hypot(P.x-R.x,P.y-R.y);if(!G||j.current.distance<=0)return;const V=kT(j.current.scale*(U/j.current.distance)),J=wz(j.current.scale,V,j.current.pan,G);x(V),_(J)}},[M]),W=y.useCallback(D=>{var O;if(S.current.delete(D.pointerId),((O=C.current)==null?void 0:O.pointerId)===D.pointerId&&(C.current=null),S.current.size<2&&(j.current=null),S.current.size===1){const[I,R]=[...S.current.entries()][0]??[];typeof I=="number"&&R&&(C.current={pointerId:I,x:R.x,y:R.y})}},[]);return!e&&!r?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(D_,{className:"h-3.5 w-3.5"}),"Generate Architecture Diagram"]})]}):c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-1 px-2 h-8 border-b bg-muted/20 shrink-0",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground mr-auto",children:"Architecture"}),c.jsx("button",{onClick:()=>$(m-.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom out",children:c.jsx(vve,{className:"h-3 w-3"})}),c.jsxs("span",{className:"text-2xs text-muted-foreground min-w-[3ch] text-center",children:[Math.round(m*100),"%"]}),c.jsx("button",{onClick:()=>$(m+.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom in",children:c.jsx(yve,{className:"h-3 w-3"})}),c.jsx("button",{onClick:()=>{x(1),_({x:0,y:0})},className:"p-1 rounded hover:bg-muted transition-colors",title:"Reset zoom",children:c.jsx(eR,{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(ls,{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(Rf,{className:"h-3 w-3"})})]}),n&&c.jsx("button",{onClick:n,className:"p-1 rounded hover:bg-muted transition-colors",title:"Regenerate diagram",disabled:r,children:c.jsx(js,{className:`h-3 w-3 ${r?"animate-spin":""}`})})]}),c.jsxs("div",{ref:l,className:"flex-1 overflow-hidden relative touch-none",onWheel:q,onPointerDown:F,onPointerMove:B,onPointerUp:W,onPointerCancel:W,onPointerLeave:W,style:{cursor:S.current.size>0?"grabbing":"grab"},children:[r&&!e&&c.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground gap-3",children:[c.jsx(Ot,{className:"h-6 w-6 animate-spin"}),c.jsx("span",{className:"text-xs",children:"Analyzing project architecture…"})]}),r&&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(Ot,{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 vc=y.forwardRef(({className:e,children:r,...n},i)=>c.jsx("div",{ref:i,className:Ce("relative overflow-auto",e),...n,children:r}));vc.displayName="ScrollArea";const t9e=y.forwardRef(({className:e,orientation:r="vertical",...n},i)=>c.jsx("div",{ref:i,"data-orientation":r,className:Ce("hidden",e),...n}));t9e.displayName="ScrollBar";const Th=y.forwardRef(({className:e,...r},n)=>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:n,...r}));Th.displayName="Textarea";var CT={},Gv={},kz;function r9e(){return kz||(kz=1,Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.FileExtensions1ToIcon=void 0,Gv.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"}),Gv}var Kv={},Cz;function n9e(){return Cz||(Cz=1,Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.FileExtensions2ToIcon=void 0,Kv.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"}),Kv}var Yv={},jz;function i9e(){return jz||(jz=1,Object.defineProperty(Yv,"__esModule",{value:!0}),Yv.FileNamesToIcon=void 0,Yv.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"}),Yv}var Xv={},Nz;function s9e(){return Nz||(Nz=1,Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.FolderNamesToIcon=void 0,Xv.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"}),Xv}var Jv={},Tz;function a9e(){return Tz||(Tz=1,Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.LanguagesToIcon=void 0,Jv.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"}),Jv}var Ez;function o9e(){return Ez||(Ez=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getIconForOpenFolder=e.getIconForFile=e.getIconForFolder=e.DEFAULT_FILE=e.DEFAULT_ROOT_OPENED=e.DEFAULT_ROOT=e.DEFAULT_FOLDER_OPENED=e.DEFAULT_FOLDER=void 0;var r=r9e(),n=n9e(),i=i9e(),s=s9e(),a=a9e();e.DEFAULT_FOLDER="default_folder.svg",e.DEFAULT_FOLDER_OPENED="default_folder_opened.svg",e.DEFAULT_ROOT="default_root_folder.svg",e.DEFAULT_ROOT_OPENED="default_root_folder_opened.svg",e.DEFAULT_FILE="default_file.svg";function o(f){var m=s.FolderNamesToIcon[f];return m||e.DEFAULT_FOLDER}e.getIconForFolder=o;var l=void 0,u=void 0;function d(f){var m=i.FileNamesToIcon[f];if(m!==void 0)return m;var x=f.split(".");if(x.length>2){var v=x.pop(),_=x.pop(),w=n.FileExtensions2ToIcon[_+"."+v];if(w!==void 0)return w;if(!v)return e.DEFAULT_FILE;if(v===l)return u;var S=r.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=r.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})(CT)),CT}var fd=o9e();const eie="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@12.9.0/icons/";function fa({filename:e,className:r}){const n=fd.getIconForFile(e)??fd.DEFAULT_FILE;return c.jsx("img",{src:`${eie}${n}`,alt:"",className:r,loading:"lazy",decoding:"async",draggable:!1})}function W4({name:e,open:r=!1,className:n}){const i=r?fd.getIconForOpenFolder(e)??fd.DEFAULT_FOLDER_OPENED:fd.getIconForFolder(e)??fd.DEFAULT_FOLDER;return c.jsx("img",{src:`${eie}${i}`,alt:"",className:n,loading:"lazy",decoding:"async",draggable:!1})}function tie(){const[e,r]=y.useState(()=>typeof document<"u"&&document.documentElement.classList.contains("dark")?"dark":"light");return y.useEffect(()=>{const n=document.documentElement,i=()=>r(n.classList.contains("dark")?"dark":"light");i();const s=new MutationObserver(i);return s.observe(n,{attributes:!0,attributeFilter:["class"]}),()=>s.disconnect()},[]),e}const rie=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}')),l9e=Object.freeze(Object.defineProperty({__proto__:null,default:rie},Symbol.toStringTag,{value:"Module"})),c9e=["editor theme","vscode theme","monaco theme","workbench colors"],jT=new Set,n2="dark-plus",Az=new WeakSet,Oz=rie,u9e={"editor.background":"#0B0C0E","editorGutter.background":"#0B0C0E","editorStickyScroll.background":"#0B0C0E","editorStickyScrollGutter.background":"#0B0C0E","minimap.background":"#0B0C0E","editor.lineHighlightBackground":"#151922","editorWidget.background":"#16181D","editorHoverWidget.background":"#16181D","editorWidget.border":"#363B44","editorHoverWidget.border":"#363B44","editorGroupHeader.tabsBackground":"#0B0C0E"},d9e={base:"vs-dark",inherit:!1,rules:[...iie(Oz.tokenColors??[]),...x9e()],colors:{...sie(Oz.colors??{}),...u9e}};function h9e(){return c9e}function nie(e){var r,n;(n=(r=e==null?void 0:e.editor)==null?void 0:r.defineTheme)==null||n.call(r,n2,d9e)}function f9e(e){!e||typeof e!="object"||Az.has(e)||(Az.add(e),Promise.all([it(()=>import("./index-e6Bc68Hb.js"),[],import.meta.url),it(()=>import("./index-CD364I7B.js"),[],import.meta.url)]).then(async([{shikiToMonaco:r},{createHighlighter:n}])=>{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 n({themes:["dark-plus"],langs:["javascript","typescript","jsx","tsx","json","css","html","markdown","python","yaml","diff"]});r(a,e),nie(e);const o=e.editor;typeof document<"u"&&document.documentElement.dataset.monacoTheme===n2&&((d=o==null?void 0:o.setTheme)==null||d.call(o,n2))}).catch(r=>{console.error("Failed to initialize Shiki Monaco Dark Plus theme:",r)}))}function p9e(e){var o;const r=m9e(e.text),n=sie(r.colors??{}),i=b9e(r,n),s=((o=r.name)==null?void 0:o.trim())||e.sourceLabel.trim()||"Imported Theme",a=`jait-vscode-${N9e(s)}-${e.id}`;return{id:e.id,name:s,sourceLabel:e.sourceLabel,importedAt:e.importedAt??new Date().toISOString(),colorMode:i,monacoThemeName:a,monacoThemeData:{base:i==="dark"?"vs-dark":"vs",inherit:!0,rules:iie(r.tokenColors??[]),colors:n},cssVariables:v9e(n),rawColors:n,hasInclude:typeof r.include=="string"&&r.include.trim().length>0}}function m9e(e){const r=j9e(C9e(e)),n=JSON.parse(r);if(!n||typeof n!="object"||Array.isArray(n))throw new Error("Theme file must contain a JSON object.");return n}function g9e(e,r){var n;!r||!((n=e==null?void 0:e.editor)!=null&&n.defineTheme)||e.editor.defineTheme(r.monacoThemeName,r.monacoThemeData)}function y9e(e){if(typeof document>"u")return;const r=document.documentElement;r.classList.toggle("dark",e.colorMode==="dark"),r.dataset.monacoTheme=e.monacoThemeName;for(const n of jT)r.style.removeProperty(n);if(jT.clear(),!!e.theme)for(const[n,i]of Object.entries(e.theme.cssVariables))r.style.setProperty(n,i),jT.add(n)}function iie(e){var n;const r=[];for(const i of e){const s=i.settings??{},a=_9e(i.scope);if(a.length===0)continue;const o=Rz(s.foreground),l=Rz(s.background),u=((n=s.fontStyle)==null?void 0:n.trim())||void 0;for(const d of a)r.push({token:d,foreground:o,background:l,fontStyle:u})}return r}function x9e(){return[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"F44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"comment",foreground:"6A9955"},{token:"constant",foreground:"569CD6"},{token:"number",foreground:"B5CEA8"},{token:"regexp",foreground:"D16969"},{token:"string",foreground:"CE9178"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.operator",foreground:"D4D4D4"},{token:"keyword.operator.new",foreground:"C586C0"},{token:"operator",foreground:"D4D4D4"},{token:"type",foreground:"4EC9B0"},{token:"type.identifier",foreground:"4EC9B0"},{token:"class",foreground:"4EC9B0"},{token:"interface",foreground:"4EC9B0"},{token:"enum",foreground:"4EC9B0"},{token:"namespace",foreground:"4EC9B0"},{token:"identifier",foreground:"9CDCFE"},{token:"identifier.function",foreground:"DCDCAA"},{token:"function",foreground:"DCDCAA"},{token:"member",foreground:"DCDCAA"},{token:"method",foreground:"DCDCAA"},{token:"property",foreground:"9CDCFE"},{token:"variable",foreground:"9CDCFE"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"parameter",foreground:"9CDCFE"},{token:"delimiter",foreground:"D4D4D4"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"}]}function v9e(e){const r={},n=ii(e,["editor.background","sideBar.background","panel.background"]),i=ii(e,["editor.foreground","foreground"]),s=ii(e,["sideBar.background","panel.background","editorWidget.background"]),a=ii(e,["panel.background","tab.inactiveBackground","editorGroupHeader.tabsBackground"]),o=ii(e,["list.hoverBackground","tab.activeBackground","editor.lineHighlightBackground"]),l=ii(e,["button.background","focusBorder","textLink.foreground"]),u=ii(e,["widget.border","panel.border","sideBar.border","contrastBorder"]);Ci(r,"--background",n),Ci(r,"--foreground",i),Ci(r,"--card",s),Ci(r,"--card-foreground",ii(e,["sideBar.foreground","foreground"])??i),Ci(r,"--popover",ii(e,["editorWidget.background","panel.background"])??s),Ci(r,"--popover-foreground",ii(e,["editorWidget.foreground","foreground"])??i),Ci(r,"--primary",l),Ci(r,"--primary-foreground",Mz(l)),Ci(r,"--secondary",ii(e,["tab.inactiveBackground","panel.background"])??a),Ci(r,"--secondary-foreground",ii(e,["tab.inactiveForeground","foreground"])??i),Ci(r,"--muted",a),Ci(r,"--muted-foreground",ii(e,["descriptionForeground","input.placeholderForeground","disabledForeground"])),Ci(r,"--accent",o),Ci(r,"--accent-foreground",ii(e,["list.activeSelectionForeground","foreground"])??i),Ci(r,"--destructive",ii(e,["inputValidation.errorBackground","errorForeground","list.errorForeground"])),Ci(r,"--destructive-foreground",Mz(ii(e,["inputValidation.errorBackground","errorForeground"]))),Ci(r,"--border",u),Ci(r,"--input",ii(e,["input.background","editorWidget.background","dropdown.background"])??u),Ci(r,"--ring",ii(e,["focusBorder","button.background","textLink.foreground"])??l),Ci(r,"--scrollbar-track",ii(e,["editor.background","sideBar.background","panel.background"])??n),Ci(r,"--scrollbar-thumb",ii(e,["scrollbarSlider.background","scrollbar.shadow"])),Ci(r,"--scrollbar-thumb-hover",ii(e,["scrollbarSlider.hoverBackground","scrollbarSlider.activeBackground","scrollbarSlider.background"])),Ci(r,"--toast-bg",ii(e,["notifications.background","editorWidget.background","panel.background"])??s,!0),Ci(r,"--toast-border",ii(e,["notifications.border","widget.border","panel.border"])??u,!0),Ci(r,"--toast-success-accent",ii(e,["testing.iconPassed","terminal.ansiGreen"])),Ci(r,"--toast-info-accent",ii(e,["textLink.foreground","focusBorder"])??l),Ci(r,"--toast-warning-accent",ii(e,["editorWarning.foreground","terminal.ansiYellow"])),Ci(r,"--toast-error-accent",ii(e,["editorError.foreground","terminal.ansiRed"]));const d=ii(e,["editorGroupHeader.tabsBackground","tab.inactiveBackground","sideBar.background"]);d&&(r["--tab-bg"]=d);const h=ii(e,["activityBarBadge.background","button.background","focusBorder"]),f=ii(e,["textLink.foreground","terminal.ansiBlue"]),m=ii(e,["editorWarning.foreground","terminal.ansiYellow"]),x=ii(e,["terminal.ansiMagenta","badge.background"]);return h&&(r["--ctx-system"]=h),f&&(r["--ctx-history"]=f),m&&(r["--ctx-tool-results"]=m),x&&(r["--ctx-tools"]=x),r}function Ci(e,r,n,i=!1){if(!n)return;const s=w9e(n,i);s&&(e[r]=s)}function Mz(e){const r=R9(e);return r?(.2126*r.r+.7152*r.g+.0722*r.b)/255>.55?"0 0% 7%":"0 0% 100%":null}function b9e(e,r){if(e.type==="light"||e.type==="hc-light")return"light";if(e.type==="dark"||e.type==="hc-dark")return"dark";const n=R9(r["editor.background"]??r["sideBar.background"]??"");return n&&(.2126*n.r+.7152*n.g+.0722*n.b)/255>.55?"light":"dark"}function sie(e){const r={};for(const[n,i]of Object.entries(e))typeof i=="string"&&i.trim()&&(r[n]=i.trim());return r}function _9e(e){return Array.isArray(e)?e.flatMap(r=>r.split(",")).map(r=>r.trim()).filter(Boolean):typeof e!="string"?[]:e.split(",").map(r=>r.trim()).filter(Boolean)}function Rz(e){if(!e)return;const r=e.trim();if(r.startsWith("#"))return aie(r).slice(1)}function ii(e,r){for(const n of r){const i=e[n];if(typeof i=="string"&&i.trim())return i.trim()}return null}function w9e(e,r=!1){const n=R9(e);if(!n)return null;const i=n.r/255,s=n.g/255,a=n.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 r&&n.a<1?`${m} / ${Number(n.a.toFixed(3))}`:m}function R9(e){if(!e)return null;const r=e.trim();if(!r)return null;if(r.startsWith("#"))return S9e(r);const n=r.match(/^rgba?\(([^)]+)\)$/i);if(!n)return null;const i=n[1].split(",").map(u=>u.trim());if(i.length<3)return null;const s=NT(i[0]),a=NT(i[1]),o=NT(i[2]),l=i[3]==null?1:k9e(i[3]);return s==null||a==null||o==null||l==null?null:{r:s,g:a,b:o,a:l}}function S9e(e){const r=aie(e).slice(1);return r.length===6?{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16),a:1}:r.length===8?{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16),a:Number.parseInt(r.slice(6,8),16)/255}:null}function NT(e){if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,-1));return Number.isFinite(n)?Pz(Math.round(n/100*255)):null}const r=Number.parseFloat(e);return Number.isFinite(r)?Pz(Math.round(r)):null}function k9e(e){const r=Number.parseFloat(e);return Number.isFinite(r)?Math.max(0,Math.min(1,r)):null}function Pz(e){return Math.max(0,Math.min(255,e))}function aie(e){const r=e.trim().slice(1);return r.length===3||r.length===4?`#${r.split("").map(n=>`${n}${n}`).join("").toLowerCase()}`:`#${r.toLowerCase()}`}function C9e(e){let r="",n=!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 oO=!1;const QRe=.1,e9e=20;function kT(e){return Math.min(e9e,Math.max(QRe,e))}function wz(e,r,n,i){if(e===r)return n;const s=r/e;return{x:i.x-(i.x-n.x)*s,y:i.y-(i.y-n.y)*s}}function Sz(e){aO.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"}:{}}),oO=!0}function lO({diagram:e,isGenerating:r,onRegenerate:n,onGenerate:i,theme:s="dark",onRenderResult:a}){const o=y.useRef(null),l=y.useRef(null),[u,d]=y.useState(null),[h,f]=y.useState(!1),[m,x]=y.useState(1),[v,_]=y.useState({x:0,y:0}),w=y.useRef(0),S=y.useRef(new Map),C=y.useRef(null),j=y.useRef(null),T=y.useCallback(async D=>{if(!o.current)return;const O=++w.current;try{if(oO||Sz(s),!await aO.parse(D)||O!==w.current)return;const{svg:R}=await aO.render(`arch-${O}`,D);if(O!==w.current)return;o.current.innerHTML=R;const P=o.current.querySelector("svg"),H=l.current;if(P&&H){const G=H.clientWidth,U=H.clientHeight,V=P.width.baseVal.value||P.getBoundingClientRect().width,J=P.height.baseVal.value||P.getBoundingClientRect().height;if(V>0&&J>0&&G>0&&U>0){const ee=Math.min((G-32)/V,(U-32)/J);x(kT(ee))}else x(1)}else x(1);_({x:0,y:0}),d(null),a==null||a({ok:!0})}catch(I){if(O!==w.current)return;const R=I instanceof Error?I.message:"Failed to render diagram";d(R),a==null||a({ok:!1,error:R})}},[a,s]);y.useEffect(()=>{Sz(s),oO=!0,e&&T(e)},[s,e,T]),y.useEffect(()=>{e&&T(e)},[e,T]);const E=y.useCallback(()=>{e&&navigator.clipboard.writeText(e).then(()=>{f(!0),setTimeout(()=>f(!1),2e3)})},[e]),N=y.useCallback(()=>{if(!o.current)return;const D=o.current.querySelector("svg");if(!D)return;const O=new XMLSerializer().serializeToString(D),I=new Blob([O],{type:"image/svg+xml"}),R=URL.createObjectURL(I),P=document.createElement("a");P.href=R,P.download="architecture.svg",P.click(),URL.revokeObjectURL(R)},[]),M=y.useCallback((D,O)=>{var R;const I=(R=l.current)==null?void 0:R.getBoundingClientRect();return I?{x:D-I.left-I.width/2,y:O-I.top-I.height/2}:null},[]),$=y.useCallback((D,O)=>{x(I=>{const R=kT(D);return R===I?I:(_(P=>O?wz(I,R,P,O):P),R)})},[]),q=y.useCallback(D=>{const O=M(D.clientX,D.clientY);if(!O)return;D.preventDefault();const I=D.deltaY<0?1.1:.9;$(m*I,O)},[M,$,m]),F=y.useCallback(D=>{const O={x:D.clientX,y:D.clientY};if(S.current.set(D.pointerId,O),D.currentTarget.setPointerCapture(D.pointerId),S.current.size===1){C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY},j.current=null;return}if(S.current.size===2){const[I,R]=[...S.current.values()],P=Math.hypot(R.x-I.x,R.y-I.y);j.current={distance:P,scale:m,pan:v},C.current=null}},[v,m]),B=y.useCallback(D=>{var I;if(!S.current.has(D.pointerId))return;const O=S.current.get(D.pointerId);if(S.current.set(D.pointerId,{x:D.clientX,y:D.clientY}),S.current.size===1&&((I=C.current)==null?void 0:I.pointerId)===D.pointerId){const R=D.clientX-O.x,P=D.clientY-O.y;_(H=>({x:H.x+R,y:H.y+P})),C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY};return}if(S.current.size===2&&j.current){const[R,P]=[...S.current.values()],H={x:(R.x+P.x)/2,y:(R.y+P.y)/2},G=M(H.x,H.y),U=Math.hypot(P.x-R.x,P.y-R.y);if(!G||j.current.distance<=0)return;const V=kT(j.current.scale*(U/j.current.distance)),J=wz(j.current.scale,V,j.current.pan,G);x(V),_(J)}},[M]),W=y.useCallback(D=>{var O;if(S.current.delete(D.pointerId),((O=C.current)==null?void 0:O.pointerId)===D.pointerId&&(C.current=null),S.current.size<2&&(j.current=null),S.current.size===1){const[I,R]=[...S.current.entries()][0]??[];typeof I=="number"&&R&&(C.current={pointerId:I,x:R.x,y:R.y})}},[]);return!e&&!r?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(D_,{className:"h-3.5 w-3.5"}),"Generate Architecture Diagram"]})]}):c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-1 px-2 h-8 border-b bg-muted/20 shrink-0",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground mr-auto",children:"Architecture"}),c.jsx("button",{onClick:()=>$(m-.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom out",children:c.jsx(vve,{className:"h-3 w-3"})}),c.jsxs("span",{className:"text-2xs text-muted-foreground min-w-[3ch] text-center",children:[Math.round(m*100),"%"]}),c.jsx("button",{onClick:()=>$(m+.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom in",children:c.jsx(yve,{className:"h-3 w-3"})}),c.jsx("button",{onClick:()=>{x(1),_({x:0,y:0})},className:"p-1 rounded hover:bg-muted transition-colors",title:"Reset zoom",children:c.jsx(eR,{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(ls,{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(Rf,{className:"h-3 w-3"})})]}),n&&c.jsx("button",{onClick:n,className:"p-1 rounded hover:bg-muted transition-colors",title:"Regenerate diagram",disabled:r,children:c.jsx(js,{className:`h-3 w-3 ${r?"animate-spin":""}`})})]}),c.jsxs("div",{ref:l,className:"flex-1 overflow-hidden relative touch-none",onWheel:q,onPointerDown:F,onPointerMove:B,onPointerUp:W,onPointerCancel:W,onPointerLeave:W,style:{cursor:S.current.size>0?"grabbing":"grab"},children:[r&&!e&&c.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground gap-3",children:[c.jsx(Ot,{className:"h-6 w-6 animate-spin"}),c.jsx("span",{className:"text-xs",children:"Analyzing project architecture…"})]}),r&&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(Ot,{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 vc=y.forwardRef(({className:e,children:r,...n},i)=>c.jsx("div",{ref:i,className:Ce("relative overflow-auto",e),...n,children:r}));vc.displayName="ScrollArea";const t9e=y.forwardRef(({className:e,orientation:r="vertical",...n},i)=>c.jsx("div",{ref:i,"data-orientation":r,className:Ce("hidden",e),...n}));t9e.displayName="ScrollBar";const Th=y.forwardRef(({className:e,...r},n)=>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:n,...r}));Th.displayName="Textarea";var CT={},Gv={},kz;function r9e(){return kz||(kz=1,Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.FileExtensions1ToIcon=void 0,Gv.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"}),Gv}var Kv={},Cz;function n9e(){return Cz||(Cz=1,Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.FileExtensions2ToIcon=void 0,Kv.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"}),Kv}var Yv={},jz;function i9e(){return jz||(jz=1,Object.defineProperty(Yv,"__esModule",{value:!0}),Yv.FileNamesToIcon=void 0,Yv.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"}),Yv}var Xv={},Nz;function s9e(){return Nz||(Nz=1,Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.FolderNamesToIcon=void 0,Xv.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"}),Xv}var Jv={},Tz;function a9e(){return Tz||(Tz=1,Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.LanguagesToIcon=void 0,Jv.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"}),Jv}var Ez;function o9e(){return Ez||(Ez=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getIconForOpenFolder=e.getIconForFile=e.getIconForFolder=e.DEFAULT_FILE=e.DEFAULT_ROOT_OPENED=e.DEFAULT_ROOT=e.DEFAULT_FOLDER_OPENED=e.DEFAULT_FOLDER=void 0;var r=r9e(),n=n9e(),i=i9e(),s=s9e(),a=a9e();e.DEFAULT_FOLDER="default_folder.svg",e.DEFAULT_FOLDER_OPENED="default_folder_opened.svg",e.DEFAULT_ROOT="default_root_folder.svg",e.DEFAULT_ROOT_OPENED="default_root_folder_opened.svg",e.DEFAULT_FILE="default_file.svg";function o(f){var m=s.FolderNamesToIcon[f];return m||e.DEFAULT_FOLDER}e.getIconForFolder=o;var l=void 0,u=void 0;function d(f){var m=i.FileNamesToIcon[f];if(m!==void 0)return m;var x=f.split(".");if(x.length>2){var v=x.pop(),_=x.pop(),w=n.FileExtensions2ToIcon[_+"."+v];if(w!==void 0)return w;if(!v)return e.DEFAULT_FILE;if(v===l)return u;var S=r.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=r.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})(CT)),CT}var fd=o9e();const eie="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@12.9.0/icons/";function fa({filename:e,className:r}){const n=fd.getIconForFile(e)??fd.DEFAULT_FILE;return c.jsx("img",{src:`${eie}${n}`,alt:"",className:r,loading:"lazy",decoding:"async",draggable:!1})}function W4({name:e,open:r=!1,className:n}){const i=r?fd.getIconForOpenFolder(e)??fd.DEFAULT_FOLDER_OPENED:fd.getIconForFolder(e)??fd.DEFAULT_FOLDER;return c.jsx("img",{src:`${eie}${i}`,alt:"",className:n,loading:"lazy",decoding:"async",draggable:!1})}function tie(){const[e,r]=y.useState(()=>typeof document<"u"&&document.documentElement.classList.contains("dark")?"dark":"light");return y.useEffect(()=>{const n=document.documentElement,i=()=>r(n.classList.contains("dark")?"dark":"light");i();const s=new MutationObserver(i);return s.observe(n,{attributes:!0,attributeFilter:["class"]}),()=>s.disconnect()},[]),e}const rie=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}')),l9e=Object.freeze(Object.defineProperty({__proto__:null,default:rie},Symbol.toStringTag,{value:"Module"})),c9e=["editor theme","vscode theme","monaco theme","workbench colors"],jT=new Set,n2="dark-plus",Az=new WeakSet,Oz=rie,u9e={"editor.background":"#0B0C0E","editorGutter.background":"#0B0C0E","editorStickyScroll.background":"#0B0C0E","editorStickyScrollGutter.background":"#0B0C0E","minimap.background":"#0B0C0E","editor.lineHighlightBackground":"#151922","editorWidget.background":"#16181D","editorHoverWidget.background":"#16181D","editorWidget.border":"#363B44","editorHoverWidget.border":"#363B44","editorGroupHeader.tabsBackground":"#0B0C0E"},d9e={base:"vs-dark",inherit:!1,rules:[...iie(Oz.tokenColors??[]),...x9e()],colors:{...sie(Oz.colors??{}),...u9e}};function h9e(){return c9e}function nie(e){var r,n;(n=(r=e==null?void 0:e.editor)==null?void 0:r.defineTheme)==null||n.call(r,n2,d9e)}function f9e(e){!e||typeof e!="object"||Az.has(e)||(Az.add(e),Promise.all([it(()=>import("./index-BxjzCyEc.js"),[],import.meta.url),it(()=>import("./index-H22IRMip.js"),[],import.meta.url)]).then(async([{shikiToMonaco:r},{createHighlighter:n}])=>{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 n({themes:["dark-plus"],langs:["javascript","typescript","jsx","tsx","json","css","html","markdown","python","yaml","diff"]});r(a,e),nie(e);const o=e.editor;typeof document<"u"&&document.documentElement.dataset.monacoTheme===n2&&((d=o==null?void 0:o.setTheme)==null||d.call(o,n2))}).catch(r=>{console.error("Failed to initialize Shiki Monaco Dark Plus theme:",r)}))}function p9e(e){var o;const r=m9e(e.text),n=sie(r.colors??{}),i=b9e(r,n),s=((o=r.name)==null?void 0:o.trim())||e.sourceLabel.trim()||"Imported Theme",a=`jait-vscode-${N9e(s)}-${e.id}`;return{id:e.id,name:s,sourceLabel:e.sourceLabel,importedAt:e.importedAt??new Date().toISOString(),colorMode:i,monacoThemeName:a,monacoThemeData:{base:i==="dark"?"vs-dark":"vs",inherit:!0,rules:iie(r.tokenColors??[]),colors:n},cssVariables:v9e(n),rawColors:n,hasInclude:typeof r.include=="string"&&r.include.trim().length>0}}function m9e(e){const r=j9e(C9e(e)),n=JSON.parse(r);if(!n||typeof n!="object"||Array.isArray(n))throw new Error("Theme file must contain a JSON object.");return n}function g9e(e,r){var n;!r||!((n=e==null?void 0:e.editor)!=null&&n.defineTheme)||e.editor.defineTheme(r.monacoThemeName,r.monacoThemeData)}function y9e(e){if(typeof document>"u")return;const r=document.documentElement;r.classList.toggle("dark",e.colorMode==="dark"),r.dataset.monacoTheme=e.monacoThemeName;for(const n of jT)r.style.removeProperty(n);if(jT.clear(),!!e.theme)for(const[n,i]of Object.entries(e.theme.cssVariables))r.style.setProperty(n,i),jT.add(n)}function iie(e){var n;const r=[];for(const i of e){const s=i.settings??{},a=_9e(i.scope);if(a.length===0)continue;const o=Rz(s.foreground),l=Rz(s.background),u=((n=s.fontStyle)==null?void 0:n.trim())||void 0;for(const d of a)r.push({token:d,foreground:o,background:l,fontStyle:u})}return r}function x9e(){return[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"F44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"comment",foreground:"6A9955"},{token:"constant",foreground:"569CD6"},{token:"number",foreground:"B5CEA8"},{token:"regexp",foreground:"D16969"},{token:"string",foreground:"CE9178"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.operator",foreground:"D4D4D4"},{token:"keyword.operator.new",foreground:"C586C0"},{token:"operator",foreground:"D4D4D4"},{token:"type",foreground:"4EC9B0"},{token:"type.identifier",foreground:"4EC9B0"},{token:"class",foreground:"4EC9B0"},{token:"interface",foreground:"4EC9B0"},{token:"enum",foreground:"4EC9B0"},{token:"namespace",foreground:"4EC9B0"},{token:"identifier",foreground:"9CDCFE"},{token:"identifier.function",foreground:"DCDCAA"},{token:"function",foreground:"DCDCAA"},{token:"member",foreground:"DCDCAA"},{token:"method",foreground:"DCDCAA"},{token:"property",foreground:"9CDCFE"},{token:"variable",foreground:"9CDCFE"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"parameter",foreground:"9CDCFE"},{token:"delimiter",foreground:"D4D4D4"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"}]}function v9e(e){const r={},n=ii(e,["editor.background","sideBar.background","panel.background"]),i=ii(e,["editor.foreground","foreground"]),s=ii(e,["sideBar.background","panel.background","editorWidget.background"]),a=ii(e,["panel.background","tab.inactiveBackground","editorGroupHeader.tabsBackground"]),o=ii(e,["list.hoverBackground","tab.activeBackground","editor.lineHighlightBackground"]),l=ii(e,["button.background","focusBorder","textLink.foreground"]),u=ii(e,["widget.border","panel.border","sideBar.border","contrastBorder"]);Ci(r,"--background",n),Ci(r,"--foreground",i),Ci(r,"--card",s),Ci(r,"--card-foreground",ii(e,["sideBar.foreground","foreground"])??i),Ci(r,"--popover",ii(e,["editorWidget.background","panel.background"])??s),Ci(r,"--popover-foreground",ii(e,["editorWidget.foreground","foreground"])??i),Ci(r,"--primary",l),Ci(r,"--primary-foreground",Mz(l)),Ci(r,"--secondary",ii(e,["tab.inactiveBackground","panel.background"])??a),Ci(r,"--secondary-foreground",ii(e,["tab.inactiveForeground","foreground"])??i),Ci(r,"--muted",a),Ci(r,"--muted-foreground",ii(e,["descriptionForeground","input.placeholderForeground","disabledForeground"])),Ci(r,"--accent",o),Ci(r,"--accent-foreground",ii(e,["list.activeSelectionForeground","foreground"])??i),Ci(r,"--destructive",ii(e,["inputValidation.errorBackground","errorForeground","list.errorForeground"])),Ci(r,"--destructive-foreground",Mz(ii(e,["inputValidation.errorBackground","errorForeground"]))),Ci(r,"--border",u),Ci(r,"--input",ii(e,["input.background","editorWidget.background","dropdown.background"])??u),Ci(r,"--ring",ii(e,["focusBorder","button.background","textLink.foreground"])??l),Ci(r,"--scrollbar-track",ii(e,["editor.background","sideBar.background","panel.background"])??n),Ci(r,"--scrollbar-thumb",ii(e,["scrollbarSlider.background","scrollbar.shadow"])),Ci(r,"--scrollbar-thumb-hover",ii(e,["scrollbarSlider.hoverBackground","scrollbarSlider.activeBackground","scrollbarSlider.background"])),Ci(r,"--toast-bg",ii(e,["notifications.background","editorWidget.background","panel.background"])??s,!0),Ci(r,"--toast-border",ii(e,["notifications.border","widget.border","panel.border"])??u,!0),Ci(r,"--toast-success-accent",ii(e,["testing.iconPassed","terminal.ansiGreen"])),Ci(r,"--toast-info-accent",ii(e,["textLink.foreground","focusBorder"])??l),Ci(r,"--toast-warning-accent",ii(e,["editorWarning.foreground","terminal.ansiYellow"])),Ci(r,"--toast-error-accent",ii(e,["editorError.foreground","terminal.ansiRed"]));const d=ii(e,["editorGroupHeader.tabsBackground","tab.inactiveBackground","sideBar.background"]);d&&(r["--tab-bg"]=d);const h=ii(e,["activityBarBadge.background","button.background","focusBorder"]),f=ii(e,["textLink.foreground","terminal.ansiBlue"]),m=ii(e,["editorWarning.foreground","terminal.ansiYellow"]),x=ii(e,["terminal.ansiMagenta","badge.background"]);return h&&(r["--ctx-system"]=h),f&&(r["--ctx-history"]=f),m&&(r["--ctx-tool-results"]=m),x&&(r["--ctx-tools"]=x),r}function Ci(e,r,n,i=!1){if(!n)return;const s=w9e(n,i);s&&(e[r]=s)}function Mz(e){const r=R9(e);return r?(.2126*r.r+.7152*r.g+.0722*r.b)/255>.55?"0 0% 7%":"0 0% 100%":null}function b9e(e,r){if(e.type==="light"||e.type==="hc-light")return"light";if(e.type==="dark"||e.type==="hc-dark")return"dark";const n=R9(r["editor.background"]??r["sideBar.background"]??"");return n&&(.2126*n.r+.7152*n.g+.0722*n.b)/255>.55?"light":"dark"}function sie(e){const r={};for(const[n,i]of Object.entries(e))typeof i=="string"&&i.trim()&&(r[n]=i.trim());return r}function _9e(e){return Array.isArray(e)?e.flatMap(r=>r.split(",")).map(r=>r.trim()).filter(Boolean):typeof e!="string"?[]:e.split(",").map(r=>r.trim()).filter(Boolean)}function Rz(e){if(!e)return;const r=e.trim();if(r.startsWith("#"))return aie(r).slice(1)}function ii(e,r){for(const n of r){const i=e[n];if(typeof i=="string"&&i.trim())return i.trim()}return null}function w9e(e,r=!1){const n=R9(e);if(!n)return null;const i=n.r/255,s=n.g/255,a=n.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 r&&n.a<1?`${m} / ${Number(n.a.toFixed(3))}`:m}function R9(e){if(!e)return null;const r=e.trim();if(!r)return null;if(r.startsWith("#"))return S9e(r);const n=r.match(/^rgba?\(([^)]+)\)$/i);if(!n)return null;const i=n[1].split(",").map(u=>u.trim());if(i.length<3)return null;const s=NT(i[0]),a=NT(i[1]),o=NT(i[2]),l=i[3]==null?1:k9e(i[3]);return s==null||a==null||o==null||l==null?null:{r:s,g:a,b:o,a:l}}function S9e(e){const r=aie(e).slice(1);return r.length===6?{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16),a:1}:r.length===8?{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16),a:Number.parseInt(r.slice(6,8),16)/255}:null}function NT(e){if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,-1));return Number.isFinite(n)?Pz(Math.round(n/100*255)):null}const r=Number.parseFloat(e);return Number.isFinite(r)?Pz(Math.round(r)):null}function k9e(e){const r=Number.parseFloat(e);return Number.isFinite(r)?Math.max(0,Math.min(1,r)):null}function Pz(e){return Math.max(0,Math.min(255,e))}function aie(e){const r=e.trim().slice(1);return r.length===3||r.length===4?`#${r.split("").map(n=>`${n}${n}`).join("").toLowerCase()}`:`#${r.toLowerCase()}`}function C9e(e){let r="",n=!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,r+=l);continue}if(s){l==="*"&&u==="/"&&(s=!1,o+=1);continue}if(n){r+=l,a?a=!1:l==="\\"?a=!0:l==='"'&&(n=!1);continue}if(l==='"'){n=!0,r+=l;continue}if(l==="/"&&u==="/"){i=!0,o+=1;continue}if(l==="/"&&u==="*"){s=!0,o+=1;continue}r+=l}return r}function j9e(e){return e.replace(/,\s*([}\]])/g,"$1")}function N9e(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,40)||"theme"}function Lz(){if(typeof document>"u")return"vs";const e=document.documentElement;return e.dataset.monacoTheme??(e.classList.contains("dark")?n2:"vs")}function pS(){const[e,r]=y.useState(Lz);return y.useEffect(()=>{if(typeof document>"u")return;const n=document.documentElement,i=()=>r(Lz());i();const s=new MutationObserver(i);return s.observe(n,{attributes:!0,attributeFilter:["class","data-monaco-theme"]}),()=>s.disconnect()},[]),e}const P9="jait:vscode-theme-store",T3=new Set;let bd=lie(),$z=!1;function oie(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}function lie(){const e=oie();if(!e)return{importedThemes:[],activeThemeId:null};let r=null;try{r=e.getItem(P9)}catch{return{importedThemes:[],activeThemeId:null}}if(!r)return{importedThemes:[],activeThemeId:null};try{const n=JSON.parse(r),i=Array.isArray(n.importedThemes)?n.importedThemes.filter(a=>!!(a&&typeof a.id=="string"&&typeof a.monacoThemeName=="string")):[],s=typeof n.activeThemeId=="string"?n.activeThemeId:null;return{importedThemes:i,activeThemeId:i.some(a=>a.id===s)?s:null}}catch{return{importedThemes:[],activeThemeId:null}}}function L9(e){bd=e;const r=oie();if(r)try{r.setItem(P9,JSON.stringify(e))}catch{}for(const n of T3)n()}function T9e(e){return!$z&&typeof window<"u"&&($z=!0,window.addEventListener("storage",r=>{if(r.key===P9){bd=lie();for(const n of T3)n()}})),T3.add(e),()=>T3.delete(e)}function Dz(){return bd}function cie(){const e=y.useSyncExternalStore(T9e,Dz,Dz);return{...e,activeTheme:e.importedThemes.find(r=>r.id===e.activeThemeId)??null}}function uie(){return bd.importedThemes.find(e=>e.id===bd.activeThemeId)??null}function E9e(e,r){const n=`${Date.now().toString(36)}-${M9e(e+r)}`,i=p9e({id:n,sourceLabel:e,text:r});return L9({importedThemes:[...bd.importedThemes.filter(s=>s.id!==n),i],activeThemeId:n}),i}function K5(e){L9({...bd,activeThemeId:e&&bd.importedThemes.some(r=>r.id===e)?e:null})}function A9e(e){L9({importedThemes:bd.importedThemes.filter(r=>r.id!==e),activeThemeId:bd.activeThemeId===e?null:bd.activeThemeId})}function O9e(e){nie(e);const r=uie();r?g9e(e,r):f9e(e)}function Ll(e,r){var n,i;O9e(e),r&&((i=(n=e==null?void 0:e.editor)==null?void 0:n.setTheme)==null||i.call(n,r))}function M9e(e){let r=0;for(let n=0;n<e.length;n+=1)r=(r<<5)-r+e.charCodeAt(n)|0;return Math.abs(r).toString(36)}function Iz(e){return e.split(`
1128
1128
  `)}function R9e(e,r){const n=e.length+1,i=r.length+1,s=Array.from({length:n},()=>Array(i).fill(0));for(let a=e.length-1;a>=0;a-=1)for(let o=r.length-1;o>=0;o-=1)e[a]===r[o]?s[a][o]=(s[a+1][o+1]??0)+1:s[a][o]=Math.max(s[a+1][o]??0,s[a][o+1]??0);return s}function die(e,r){var u,d;const n=Iz(e),i=Iz(r),s=R9e(n,i),a=[];let o=0,l=0;for(;o<n.length||l<i.length;){if(o<n.length&&l<i.length&&n[o]===i[l]){o+=1,l+=1;continue}const h=o,f=l;for(;(o<n.length||l<i.length)&&!(o<n.length&&l<i.length&&n[o]===i[l]);){const m=o<n.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<n.length&&m>=x?o+=1:l+=1}a.push({originalStartLineNumber:h<o?h+1:o,originalEndLineNumber:h<o?o:0,modifiedStartLineNumber:f<l?f+1:l,modifiedEndLineNumber:f<l?l:0})}return a.map((h,f)=>({...h,index:f,state:"undecided"}))}function hie(e,r,n){const i=[...e];for(let s=n.length-1;s>=0;s-=1){const a=n[s];if(!a||a.state==="rejected")continue;const o=a.modifiedEndLineNumber===0?[]:r.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 Y5(e){return e.modifiedStartLineNumber>0?e.modifiedStartLineNumber:e.modifiedEndLineNumber>0?e.modifiedEndLineNumber:Math.max(1,e.originalStartLineNumber)}function Bz({filePath:e,originalContent:r,modifiedContent:n,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=pS(),S=e.split(/[/\\]/).pop()??e;y.useEffect(()=>{const P=()=>_(window.innerWidth<768);return P(),window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[]),y.useEffect(()=>{f(P=>{const H=die(r,n);return P.length===H.length?H.map((G,U)=>{var V;return{...G,state:((V=P[U])==null?void 0:V.state)??"undecided"}}):H}),x(0)},[r,n]);const C=y.useCallback(()=>{var J,z;const P=(z=(J=o.current)==null?void 0:J.getModifiedEditor)==null?void 0:z.call(J);if(!P||h.length===0){d([]);return}const H=P.getScrollTop(),G=P.getLayoutInfo(),U=P.getScrollHeight()>0?P.getScrollHeight():G.height,V=h.flatMap(ee=>{if(ee.state!=="undecided")return[];const X=Y5(ee),Q=P.getTopForLineNumber(X)-H+2;return!Number.isFinite(Q)||Q<-28||Q>U?[]:[{hunkIndex:ee.index,top:Q}]});d(V)},[h]),j=y.useRef([]),T=y.useCallback((P,H)=>{o.current=P,l.current=H,Ll(H,w);const G=P.getModifiedEditor();j.current=[G.onDidScrollChange(()=>C()),G.onDidLayoutChange(()=>C()),G.onDidContentSizeChange(()=>C()),P.onDidUpdateDiff(()=>C())],window.setTimeout(C,0)},[w,C]);y.useEffect(()=>{Ll(l.current,w)},[w]),y.useEffect(()=>()=>{var H,G;for(const U of j.current)U.dispose();j.current=[];const P=o.current;if(P)try{const U=P.getModel();P.dispose(),(H=U==null?void 0:U.original)==null||H.dispose(),(G=U==null?void 0:U.modified)==null||G.dispose()}catch{}o.current=null,l.current=null},[]),y.useEffect(()=>{if(!o.current||h.length===0)return;const P=h[m];if(!P)return;const H=Y5(P);try{o.current.getModifiedEditor().revealLineInCenter(H)}catch{}},[m,h]),y.useEffect(()=>{if(!o.current||!l.current||h.length===0)return;const P=l.current,H=o.current.getModifiedEditor(),G=[];for(const V of h){if(V.state==="undecided")continue;const J=V.modifiedEndLineNumber>0?V.modifiedStartLineNumber:V.originalStartLineNumber,z=V.modifiedEndLineNumber>0?V.modifiedEndLineNumber:V.originalStartLineNumber;G.push({range:new P.Range(J,1,z,1),options:{isWholeLine:!0,className:V.state==="accepted"?"diff-hunk-accepted":"diff-hunk-rejected",overviewRuler:{color:V.state==="accepted"?"#22c55e44":"#ef444444",position:P.editor.OverviewRulerLane.Full}}})}const U=H.deltaDecorations([],G);return()=>{try{H.deltaDecorations(U,[])}catch{}}},[h]),y.useEffect(()=>{C()},[C,m,h]),y.useEffect(()=>{if(!o.current||!l.current||h.length===0)return;const P=l.current,H=o.current.getModifiedEditor(),G=h[m];if(!G)return;const U=G.modifiedEndLineNumber>0?G.modifiedStartLineNumber:G.originalStartLineNumber,V=G.modifiedEndLineNumber>0?G.modifiedEndLineNumber:G.originalStartLineNumber,J=H.deltaDecorations([],[{range:new P.Range(U,1,V,1),options:{isWholeLine:!0,className:"diff-hunk-active"}}]);return()=>{try{H.deltaDecorations(J,[])}catch{}}},[m,h]);const E=y.useCallback((P,H)=>{f(G=>{const U=G.map((J,z)=>z===P?{...J,state:H}:J),V=U.findIndex((J,z)=>z>P&&J.state==="undecided");return V>=0&&x(V),U})},[]),N=y.useCallback(()=>E(m,"accepted"),[m,E]),M=y.useCallback(()=>E(m,"rejected"),[m,E]),$=y.useCallback(()=>{f(P=>P.map(H=>({...H,state:"accepted"})))},[]),q=y.useCallback(()=>{f(P=>P.map(H=>({...H,state:"rejected"})))},[]),F=y.useCallback(()=>{x(P=>Math.min(P+1,h.length-1))},[h.length]),B=y.useCallback(()=>{x(P=>Math.max(P-1,0))},[]),W=y.useCallback(()=>{const P=h.findIndex((G,U)=>U>m&&G.state==="undecided");if(P>=0){x(P);return}const H=h.findIndex(G=>G.state==="undecided");H>=0&&x(H)},[h,m]),D=y.useMemo(()=>h.filter(P=>P.state==="undecided").length,[h]),O=h.length>0&&D===0,I=h[m],R=y.useCallback(()=>{const P=r.split(`
@@ -1338,7 +1338,7 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
1338
1338
  float alpha = line * uMix;
1339
1339
 
1340
1340
  fragColor = vec4(color * uMix, alpha);
1341
- }`;function nle({color:e="#1FD5F9",colorShift:r=.05,lineWidth:n=2,blur:i=.5,uniformsRef:s,ref:a,className:o,...l}){const u=y.useMemo(()=>rle(e),[e]);return y.useEffect(()=>{const d=s.current;d&&(d.uLineWidth.value=n,d.uSmoothing.value=i,d.uColor.value=u??[0,.7,1],d.uColorShift.value=r)},[s,u,r,n,i]),c.jsx("div",{ref:a,className:o,...l,children:c.jsx(_Xe,{fs:PQe,devicePixelRatio:Math.min(globalThis.devicePixelRatio??1,1.5),uniforms:s.current,style:{width:"100%",height:"100%"}})})}nle.displayName="WaveShader";const LQe=Yj(["aspect-square"],{variants:{size:{icon:"h-[24px]",sm:"h-[56px]",md:"h-[112px]",lg:"h-[224px]",xl:"h-[448px]"}},defaultVariants:{size:"lg"}});function $Qe({size:e="lg",state:r="speaking",color:n,colorShift:i=.05,lineWidth:s,blur:a,className:o,ref:l,...u}){const d=y.useMemo(()=>{if(s!==void 0)return s;switch(e){case"icon":case"sm":return 2;default:return 1}},[s,e]),{speed:h,amplitude:f,frequency:m,opacity:x}=RQe({state:r}),v=y.useRef({uSpeed:{type:"1f",value:h.get()},uAmplitude:{type:"1f",value:f.get()},uFrequency:{type:"1f",value:m.get()},uMix:{type:"1f",value:x.get()},uLineWidth:{type:"1f",value:d},uSmoothing:{type:"1f",value:.5},uColor:{type:"3fv",value:[0,.7,1]},uColorShift:{type:"1f",value:i}});return y.useEffect(()=>{const _=[h.on("change",w=>{v.current.uSpeed.value=w}),f.on("change",w=>{v.current.uAmplitude.value=w}),m.on("change",w=>{v.current.uFrequency.value=w}),x.on("change",w=>{v.current.uMix.value=w})];return()=>{for(const w of _)w()}},[h,f,m,x]),c.jsx(nle,{ref:l,"data-lk-state":r,color:n,colorShift:i,lineWidth:d,blur:a,uniformsRef:v,className:Ce(LQe({size:e}),"mask-[linear-gradient(90deg,transparent_0%,black_20%,black_80%,transparent_100%)]",o),...u})}const DQe=e=>e?{WebkitAppRegion:"no-drag"}:void 0;function IQe({voiceOverlayOpen:e,setVoiceOverlayOpen:r,wakeWord:n,wakeWordEnabled:i,toggleWakeWord:s,voiceAssistant:a}){return n.isSupported?c.jsx("button",{className:`md:hidden flex items-center justify-center h-8 w-8 rounded-lg shrink-0 transition-colors ${e?"text-green-400 bg-green-500/10":i?n.isListening?"text-green-400 bg-green-500/10":"text-blue-400 bg-blue-500/10":"text-muted-foreground hover:bg-accent"}`,onClick:e?()=>{a.disconnect(),r(!1)}:s,"aria-label":e?"Disconnect voice":i?"Disable wake word":"Enable wake word",children:e?c.jsx(l0,{className:"h-4 w-4 animate-pulse"}):i?c.jsx(l0,{className:`h-4 w-4 ${n.isListening?"animate-pulse":""}`}):c.jsx(qw,{className:"h-4 w-4"})}):null}function BQe({setVoiceOverlayOpen:e,voiceAssistant:r,isMobile:n,isElectron:i}){return c.jsxs("div",{className:`absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-10 flex items-center gap-1.5 rounded-full border border-border/60 bg-background/80 backdrop-blur-sm px-1.5 py-1 ${n?"pointer-events-auto":""}`,style:DQe(i),children:[c.jsx("button",{onClick:r.toggleMic,className:`flex items-center justify-center h-7 w-7 rounded-full transition-colors ${r.micActive?"bg-muted hover:bg-muted/80 text-foreground":"bg-destructive/15 text-destructive hover:bg-destructive/25"}`,"aria-label":r.micActive?"Mute":"Unmute",children:r.micActive?c.jsx(l0,{className:"h-3.5 w-3.5"}):c.jsx(qw,{className:"h-3.5 w-3.5"})}),c.jsx($Qe,{state:r.assistantSpeaking?"speaking":r.status,size:"sm",lineWidth:2,className:"!aspect-auto !h-7 w-24 sm:w-36"}),c.jsx("button",{onClick:()=>{r.disconnect(),e(!1)},className:"flex items-center justify-center h-7 w-7 rounded-full bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors","aria-label":"End call",children:c.jsx(hxe,{className:"h-3.5 w-3.5"})})]})}function zQe({voiceOverlayOpen:e,setVoiceOverlayOpen:r,wakeWord:n,wakeWordEnabled:i,toggleWakeWord:s,voiceAssistant:a}){return n.isSupported?c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs("button",{onClick:e?()=>{a.disconnect(),r(!1)}:s,className:`ui-pill shrink-0 cursor-pointer transition-colors ${e?"text-green-400 animate-pulse":i?n.isListening?"text-green-400":"text-blue-400":"text-muted-foreground opacity-50"}`,children:[e?c.jsx(l0,{className:"h-3 w-3 animate-pulse"}):i?c.jsx(l0,{className:`h-3 w-3 ${n.isListening?"animate-pulse":""}`}):c.jsx(qw,{className:"h-3 w-3"}),c.jsx("span",{className:"hidden sm:inline text-xs",children:e?"Voice active":n.isListening?"Listening...":i?"Hey Jait":"Wake word"})]})}),c.jsx(dn,{side:"bottom",children:e?"Voice assistant active — click to disconnect":i?n.isListening?"Listening for your command...":'Say "Hey Jait" to start voice assistant — click to disable':'Click to enable always-on "Hey Jait" wake word'})]}):null}function FQe(e){const{activeManagerThreads:r,appPlatform:n,automation:i,chatProvider:s,cliModel:a,closeScreenSharePanel:o,contextUsage:l,currentView:u,desktopPlatform:d,handleApplyUpdate:h,handleLogout:f,handleThemeModeChange:m,isAuthenticated:x,isElectron:v,isMaximized:_,isMobile:w,model:S,openScreenSharePanel:C,provider:j,remainingPrompts:T,screenShare:E,setCurrentView:N,setSendTarget:M,setShowLoginDialog:$,setShowProject:q,setShowProjectEditor:F,setViewMode:B,setVoiceOverlayOpen:W,showScreenShare:D,themeMode:O,updateApplying:I,updateAwaitingRestart:R,updateInfo:P,user:H,userInitial:G,viewMode:U,voiceAssistant:V,voiceControlProps:J,voiceOverlayOpen:z}=e;return c.jsxs("header",{className:w?"fixed top-2 left-2 right-2 z-40 flex items-center gap-1 pointer-events-none h-10":`relative flex items-center gap-1 shrink-0 border-b bg-background px-2 sm:gap-2 sm:px-5 ${v?"h-10 !pl-[0.8rem]":"h-14"}`,style:v?{WebkitAppRegion:"drag",paddingLeft:d==="darwin"?70:void 0,paddingRight:d==="win32"?140:void 0}:void 0,children:[c.jsxs("div",{className:`flex items-center gap-1 shrink-0 ${w?"pointer-events-auto rounded-2xl bg-background/70 backdrop-blur-lg shadow-lg border px-2 h-10":""}`,style:v?{WebkitAppRegion:"no-drag"}:void 0,children:[c.jsx(Iae,{size:20,className:"shrink-0"}),c.jsx(IQe,{...J}),w&&u==="chat"&&r.length>0&&c.jsx(cF,{threads:r,getRepositoryForThread:i.getRepositoryForThread,threadPrStates:i.threadPrStates,ghAvailable:i.ghAvailable,onOpenThread:ee=>{N("chat"),i.setSelectedThreadId(ee),M("thread"),q(!1),F(!1)},onStopThread:ee=>i.handleStop(ee)})]}),c.jsxs("nav",{className:"hidden md:flex items-center gap-1 min-w-0 overflow-x-auto scrollbar-none",style:v?{WebkitAppRegion:"no-drag"}:void 0,children:[c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="chat"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("chat"),"aria-label":"Chat",children:[c.jsx(yd,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Chat"})]})}),c.jsx(dn,{side:"bottom",children:"Chat"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="todo"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("todo"),"aria-label":"Todo",children:[c.jsx(Sm,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Todo"})]})}),c.jsx(dn,{side:"bottom",children:"Todo"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="email"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("email"),"aria-label":"Email",children:[c.jsx(Wg,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Email"})]})}),c.jsx(dn,{side:"bottom",children:"Email"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="memory"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("memory"),"aria-label":"Memory",children:[c.jsx(vo,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Memory"})]})}),c.jsx(dn,{side:"bottom",children:"Memory"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="jobs"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("jobs"),"aria-label":"Jobs",children:[c.jsx(o_,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Jobs"})]})}),c.jsx(dn,{side:"bottom",children:"Jobs"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="network"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("network"),"aria-label":"Network",children:[c.jsx(v1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Network"})]})}),c.jsx(dn,{side:"bottom",children:"Network"})]}),U==="developer"&&!w&&c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:D?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>D?o():C(),"aria-label":"Screen sharing",children:[c.jsx(Hg,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Screen Share"})]})}),c.jsx(dn,{side:"bottom",children:"Screen sharing"})]})]}),z?c.jsx(BQe,{setVoiceOverlayOpen:W,voiceAssistant:V,isMobile:w,isElectron:v}):u==="chat"?c.jsx("div",{className:`absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-10 ${w?"pointer-events-auto rounded-2xl bg-background/70 backdrop-blur-lg shadow-lg border px-1.5 h-10 flex items-center":""}`,style:v?{WebkitAppRegion:"no-drag"}:void 0,children:c.jsx(FPe,{mode:U,onChange:B,compact:w})}):null,c.jsx("div",{className:"flex-1 min-w-0"}),c.jsxs("div",{className:`flex items-center gap-1 sm:gap-1.5 shrink-0 ${w?"pointer-events-auto rounded-2xl bg-background/70 backdrop-blur-lg shadow-lg border px-1 py-0.5 h-10":""}`,style:v?{WebkitAppRegion:"no-drag"}:void 0,children:[c.jsxs("div",{className:"hidden md:flex items-center gap-1 sm:gap-1.5",children:[E.isActive&&c.jsxs("span",{className:"ui-pill shrink-0",children:[c.jsx(Hg,{className:"h-3 w-3 text-green-500 animate-pulse"}),c.jsx("span",{className:"hidden sm:inline",children:"Sharing"})]}),c.jsx(zQe,{...J}),u==="chat"&&r.length>0&&c.jsx(cF,{threads:r,getRepositoryForThread:i.getRepositoryForThread,threadPrStates:i.threadPrStates,ghAvailable:i.ghAvailable,onOpenThread:ee=>{N("chat"),i.setSelectedThreadId(ee),M("thread"),q(!1),F(!1)},onStopThread:ee=>i.handleStop(ee)}),c.jsx(zPe,{usage:l}),(()=>{const ee=a??S,X=s==="codex"?"openai":s==="claude-code"?"anthropic":j??"ollama",Q=s==="codex"?a?rx(a):"Codex":s==="claude-code"?a?rx(a):"Claude Code":ee?eXe(ee):null,ie=s==="codex"?`OpenAI Codex CLI${a?` · ${a}`:""}`:s==="claude-code"?`Anthropic Claude Code CLI${a?` · ${a}`:""}`:ee??"";return Q?c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs("div",{className:"ui-pill cursor-default sm:mr-2",children:[c.jsx(dj,{provider:X,model:s==="codex"?"codex":s==="claude-code"?"claude-3":ee??void 0,size:16}),c.jsx("span",{className:"text-xs text-muted-foreground hidden sm:inline",children:Q})]})}),c.jsx(dn,{side:"bottom",children:ie})]}):null})(),T!==null&&T<=5&&c.jsxs("span",{className:"text-xs text-muted-foreground mr-1 sm:mr-2 hidden sm:inline",children:[T," remaining"]})]}),(P==null?void 0:P.hasUpdate)&&c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{onClick:async()=>{if(n==="web")!I&&!R&&await h();else if(n==="electron"){const ee=window.jaitDesktop;Xr.info("Downloading update...");const X=await ee.downloadUpdate();X!=null&&X.ok?(Xr.success("Update downloaded. Restarting..."),await ee.installUpdate()):Xr.error("Download failed")}else window.open("https://github.com/Widev-e-U/Jait/releases/latest","_blank")},variant:"outline",size:"sm",disabled:n==="web"&&(I||R),className:"h-8 shrink-0 border-amber-500/30 bg-amber-500/10 px-2 text-amber-700 hover:bg-amber-500/15 hover:text-amber-800 dark:text-amber-300",children:[n==="web"&&(I||R)?c.jsx(Ot,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(wY,{className:"h-3.5 w-3.5"}),c.jsx("span",{className:"hidden sm:inline",children:n==="web"&&(I||R)?"Updating...":`v${P.latestVersion}`})]})}),c.jsx(dn,{side:"bottom",children:n==="web"&&(I||R)?"Updating and refreshing...":`Update available — v${P.latestVersion}`})]}),w?c.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx(ge,{variant:"ghost",size:"sm",className:"h-9 w-9 p-0 shrink-0 rounded-lg",children:c.jsx(H1,{className:"h-4 w-4"})})}),c.jsxs(Ko,{align:"end",children:[c.jsx(Ug,{children:"Navigate"}),c.jsxs(Vn,{onSelect:()=>N("chat"),children:[c.jsx(yd,{className:"h-4 w-4 mr-2"}),"Chat"]}),c.jsxs(Vn,{onSelect:()=>N("jobs"),children:[c.jsx(o_,{className:"h-4 w-4 mr-2"}),"Jobs"]}),c.jsxs(Vn,{onSelect:()=>N("todo"),children:[c.jsx(Sm,{className:"h-4 w-4 mr-2"}),"Todo"]}),c.jsxs(Vn,{onSelect:()=>N("email"),children:[c.jsx(Wg,{className:"h-4 w-4 mr-2"}),"Email"]}),c.jsxs(Vn,{onSelect:()=>N("memory"),children:[c.jsx(vo,{className:"h-4 w-4 mr-2"}),"Memory"]}),c.jsxs(Vn,{onSelect:()=>N("network"),children:[c.jsx(v1,{className:"h-4 w-4 mr-2"}),"Network"]}),U==="developer"&&c.jsxs(Vn,{onSelect:()=>D?o():C(),children:[c.jsx(Hg,{className:"h-4 w-4 mr-2"}),D?"Hide Share":"Screen Share"]}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:()=>N("settings"),children:[c.jsx(Qk,{className:"h-4 w-4 mr-2"}),"Settings"]})]})]}),x?c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx("button",{className:"rounded-full ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:c.jsx(LO,{className:"h-8 w-8",children:c.jsx($O,{className:"text-sm font-medium",children:G})})})}),c.jsxs(Ko,{align:"end",children:[c.jsx(Ug,{children:H==null?void 0:H.username}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:()=>N("settings"),children:[c.jsx(Qk,{className:"h-4 w-4 mr-2"}),"Settings"]}),c.jsx(id,{}),c.jsxs("div",{className:"px-2 py-1.5",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Theme"}),c.jsx("div",{className:"flex items-center h-7 w-fit rounded-full border bg-muted/50 p-0.5 mt-1.5",children:[["light",rI],["system",wo],["dark",ZD]].map(([ee,X])=>c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx("button",{onClick:()=>{m(ee)},className:`relative flex items-center justify-center h-6 w-6 rounded-full transition-colors ${O===ee?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:c.jsx(X,{className:"h-3.5 w-3.5"})})}),c.jsx(dn,{side:"bottom",children:ee.charAt(0).toUpperCase()+ee.slice(1)})]},ee))})]}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:f,children:[c.jsx(X8,{className:"h-4 w-4 mr-2"}),"Logout"]})]})]}):c.jsx(ge,{variant:"ghost",size:"sm",className:"h-8 rounded-lg text-xs",onClick:()=>$(!0),children:"Sign in"})]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"md:hidden shrink-0",children:c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx(ge,{variant:"ghost",size:"sm",className:"h-9 w-9 p-0 shrink-0",children:c.jsx(H1,{className:"h-4 w-4"})})}),c.jsxs(Ko,{align:"end",children:[c.jsx(Ug,{children:"Navigate"}),c.jsxs(Vn,{onSelect:()=>N("chat"),children:[c.jsx(yd,{className:"h-4 w-4 mr-2"}),"Chat"]}),c.jsxs(Vn,{onSelect:()=>N("jobs"),children:[c.jsx(o_,{className:"h-4 w-4 mr-2"}),"Jobs"]}),c.jsxs(Vn,{onSelect:()=>N("todo"),children:[c.jsx(Sm,{className:"h-4 w-4 mr-2"}),"Todo"]}),c.jsxs(Vn,{onSelect:()=>N("email"),children:[c.jsx(Wg,{className:"h-4 w-4 mr-2"}),"Email"]}),c.jsxs(Vn,{onSelect:()=>N("memory"),children:[c.jsx(vo,{className:"h-4 w-4 mr-2"}),"Memory"]}),c.jsxs(Vn,{onSelect:()=>N("network"),children:[c.jsx(v1,{className:"h-4 w-4 mr-2"}),"Network"]}),U==="developer"&&c.jsxs(Vn,{onSelect:()=>D?o():C(),children:[c.jsx(Hg,{className:"h-4 w-4 mr-2"}),D?"Hide Share":"Screen Share"]}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:()=>N("settings"),children:[c.jsx(Qk,{className:"h-4 w-4 mr-2"}),"Settings"]})]})]})}),x?c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx("button",{className:"rounded-full ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:c.jsx(LO,{className:"h-7 w-7",children:c.jsx($O,{className:"text-xs",children:G})})})}),c.jsxs(Ko,{align:"end",children:[c.jsx(Ug,{children:H==null?void 0:H.username}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:()=>N("settings"),children:[c.jsx(Qk,{className:"h-4 w-4 mr-2"}),"Settings"]}),c.jsx(id,{}),c.jsxs("div",{className:"px-2 py-1.5",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Theme"}),c.jsx("div",{className:"flex items-center h-7 w-fit rounded-full border bg-muted/50 p-0.5 mt-1.5",children:[["light",rI],["system",wo],["dark",ZD]].map(([ee,X])=>c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx("button",{onClick:()=>{m(ee)},className:`relative flex items-center justify-center h-6 w-6 rounded-full transition-colors ${O===ee?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:c.jsx(X,{className:"h-3.5 w-3.5"})})}),c.jsx(dn,{side:"bottom",children:ee.charAt(0).toUpperCase()+ee.slice(1)})]},ee))})]}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:f,children:[c.jsx(X8,{className:"h-4 w-4 mr-2"}),"Logout"]})]})]}):c.jsx(ge,{variant:"ghost",size:"sm",className:"h-8 rounded-lg text-xs",onClick:()=>$(!0),children:"Sign in"})]}),v&&d==="linux"&&c.jsx(tXe,{isMaximized:_})]})]})}function tU(e,[r,n]){return Math.min(n,Math.max(r,e))}function HQe(e,r=[]){let n=[];function i(a,o){const l=y.createContext(o),u=n.length;n=[...n,o];const d=f=>{var S;const{scope:m,children:x,...v}=f,_=((S=m==null?void 0:m[e])==null?void 0:S[u])||l,w=y.useMemo(()=>v,Object.values(v));return c.jsx(_.Provider,{value:w,children:x})};d.displayName=a+"Provider";function h(f,m){var _;const x=((_=m==null?void 0:m[e])==null?void 0:_[u])||l,v=y.useContext(x);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,h]}const s=()=>{const a=n.map(o=>y.createContext(o));return function(l){const u=(l==null?void 0:l[e])||a;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return s.scopeName=e,[i,WQe(s,...r)]}function WQe(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((l,{useScope:u,scopeName:d})=>{const f=u(a)[`__scope${d}`];return{...l,...f}},{});return y.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}function ile(e){const r=UQe(e),n=y.forwardRef((i,s)=>{const{children:a,...o}=i,l=y.Children.toArray(a),u=l.find(qQe);if(u){const d=u.props.children,h=l.map(f=>f===u?y.Children.count(d)>1?y.Children.only(null):y.isValidElement(d)?d.props.children:null:f);return c.jsx(r,{...o,ref:s,children:y.isValidElement(d)?y.cloneElement(d,void 0,h):null})}return c.jsx(r,{...o,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function UQe(e){const r=y.forwardRef((n,i)=>{const{children:s,...a}=n;if(y.isValidElement(s)){const o=KQe(s),l=GQe(a,s.props);return s.type!==y.Fragment&&(l.ref=i?Js(i,o):o),y.cloneElement(s,l)}return y.Children.count(s)>1?y.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var VQe=Symbol("radix.slottable");function qQe(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===VQe}function GQe(e,r){const n={...r};for(const i in r){const s=e[i],a=r[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...l)=>{const u=a(...l);return s(...l),u}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function KQe(e){var i,s;let r=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=r&&"isReactWarning"in r&&r.isReactWarning;return n?e.ref:(r=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=r&&"isReactWarning"in r&&r.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var YQe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Oc=YQe.reduce((e,r)=>{const n=ile(`Primitive.${r}`),i=y.forwardRef((s,a)=>{const{asChild:o,...l}=s,u=o?n:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...l,ref:a})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{});function sle(e){const r=y.useRef({value:e,previous:e});return y.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}function XQe(e){const r=JQe(e),n=y.forwardRef((i,s)=>{const{children:a,...o}=i,l=y.Children.toArray(a),u=l.find(QQe);if(u){const d=u.props.children,h=l.map(f=>f===u?y.Children.count(d)>1?y.Children.only(null):y.isValidElement(d)?d.props.children:null:f);return c.jsx(r,{...o,ref:s,children:y.isValidElement(d)?y.cloneElement(d,void 0,h):null})}return c.jsx(r,{...o,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function JQe(e){const r=y.forwardRef((n,i)=>{const{children:s,...a}=n;if(y.isValidElement(s)){const o=tet(s),l=eet(a,s.props);return s.type!==y.Fragment&&(l.ref=i?Js(i,o):o),y.cloneElement(s,l)}return y.Children.count(s)>1?y.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var ZQe=Symbol("radix.slottable");function QQe(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ZQe}function eet(e,r){const n={...r};for(const i in r){const s=e[i],a=r[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...l)=>{const u=a(...l);return s(...l),u}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function tet(e){var i,s;let r=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=r&&"isReactWarning"in r&&r.isReactWarning;return n?e.ref:(r=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=r&&"isReactWarning"in r&&r.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ret=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],net=ret.reduce((e,r)=>{const n=XQe(`Primitive.${r}`),i=y.forwardRef((s,a)=>{const{asChild:o,...l}=s,u=o?n:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...l,ref:a})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{}),ale=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),iet="VisuallyHidden",set=y.forwardRef((e,r)=>c.jsx(net.span,{...e,ref:r,style:{...ale,...e.style}}));set.displayName=iet;var aet=[" ","Enter","ArrowUp","ArrowDown"],oet=[" ","Enter"],w0="Select",[Q4,eN,cet]=nR(w0),[$x]=HQe(w0,[cet,xx]),tN=xx(),[uet,Ym]=$x(w0),[det,het]=$x(w0),ole=e=>{const{__scopeSelect:r,children:n,open:i,defaultOpen:s,onOpenChange:a,value:o,defaultValue:l,onValueChange:u,dir:d,name:h,autoComplete:f,disabled:m,required:x,form:v}=e,_=tN(r),[w,S]=y.useState(null),[C,j]=y.useState(null),[T,E]=y.useState(!1),N=n4(d),[M,$]=Wf({prop:i,defaultProp:s??!1,onChange:a,caller:w0}),[q,F]=Wf({prop:o,defaultProp:l,onChange:u,caller:w0}),B=y.useRef(null),W=w?v||!!w.closest("form"):!0,[D,O]=y.useState(new Set),I=Array.from(D).map(R=>R.props.value).join(";");return c.jsx(pR,{..._,children:c.jsxs(uet,{required:x,scope:r,trigger:w,onTriggerChange:S,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:T,onValueNodeHasChildrenChange:E,contentId:xu(),value:q,onValueChange:F,open:M,onOpenChange:$,dir:N,triggerPointerDownPosRef:B,disabled:m,children:[c.jsx(Q4.Provider,{scope:r,children:c.jsx(det,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(R=>{O(P=>new Set(P).add(R))},[]),onNativeOptionRemove:y.useCallback(R=>{O(P=>{const H=new Set(P);return H.delete(R),H})},[]),children:n})}),W?c.jsxs(Ole,{"aria-hidden":!0,required:x,tabIndex:-1,name:h,autoComplete:f,value:q,onChange:R=>F(R.target.value),disabled:m,form:v,children:[q===void 0?c.jsx("option",{value:""}):null,Array.from(D)]},I):null]})})};ole.displayName=w0;var lle="SelectTrigger",cle=y.forwardRef((e,r)=>{const{__scopeSelect:n,disabled:i=!1,...s}=e,a=tN(n),o=Ym(lle,n),l=o.disabled||i,u=ai(r,o.onTriggerChange),d=eN(n),h=y.useRef("touch"),[f,m,x]=Rle(_=>{const w=d().filter(j=>!j.disabled),S=w.find(j=>j.value===o.value),C=Ple(w,_,S);C!==void 0&&o.onValueChange(C.value)}),v=_=>{l||(o.onOpenChange(!0),x()),_&&(o.triggerPointerDownPosRef.current={x:Math.round(_.pageX),y:Math.round(_.pageY)})};return c.jsx(d4,{asChild:!0,...a,children:c.jsx(Oc.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Mle(o.value)?"":void 0,...s,ref:u,onClick:fr(s.onClick,_=>{_.currentTarget.focus(),h.current!=="mouse"&&v(_)}),onPointerDown:fr(s.onPointerDown,_=>{h.current=_.pointerType;const w=_.target;w.hasPointerCapture(_.pointerId)&&w.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&_.pointerType==="mouse"&&(v(_),_.preventDefault())}),onKeyDown:fr(s.onKeyDown,_=>{const w=f.current!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&m(_.key),!(w&&_.key===" ")&&aet.includes(_.key)&&(v(),_.preventDefault())})})})});cle.displayName=lle;var ule="SelectValue",dle=y.forwardRef((e,r)=>{const{__scopeSelect:n,className:i,style:s,children:a,placeholder:o="",...l}=e,u=Ym(ule,n),{onValueNodeHasChildrenChange:d}=u,h=a!==void 0,f=ai(r,u.onValueNodeChange);return Xs(()=>{d(h)},[d,h]),c.jsx(Oc.span,{...l,ref:f,style:{pointerEvents:"none"},children:Mle(u.value)?c.jsx(c.Fragment,{children:o}):a})});dle.displayName=ule;var fet="SelectIcon",hle=y.forwardRef((e,r)=>{const{__scopeSelect:n,children:i,...s}=e;return c.jsx(Oc.span,{"aria-hidden":!0,...s,ref:r,children:i||"▼"})});hle.displayName=fet;var pet="SelectPortal",fle=e=>c.jsx(Ww,{asChild:!0,...e});fle.displayName=pet;var S0="SelectContent",ple=y.forwardRef((e,r)=>{const n=Ym(S0,e.__scopeSelect),[i,s]=y.useState();if(Xs(()=>{s(new DocumentFragment)},[]),!n.open){const a=i;return a?O0.createPortal(c.jsx(mle,{scope:e.__scopeSelect,children:c.jsx(Q4.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),a):null}return c.jsx(gle,{...e,ref:r})});ple.displayName=S0;var nd=10,[mle,Xm]=$x(S0),met="SelectContentImpl",get=ile("SelectContent.RemoveScroll"),gle=y.forwardRef((e,r)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:a,onPointerDownOutside:o,side:l,sideOffset:u,align:d,alignOffset:h,arrowPadding:f,collisionBoundary:m,collisionPadding:x,sticky:v,hideWhenDetached:_,avoidCollisions:w,...S}=e,C=Ym(S0,n),[j,T]=y.useState(null),[E,N]=y.useState(null),M=ai(r,ie=>T(ie)),[$,q]=y.useState(null),[F,B]=y.useState(null),W=eN(n),[D,O]=y.useState(!1),I=y.useRef(!1);y.useEffect(()=>{if(j)return Zj(j)},[j]),Xj();const R=y.useCallback(ie=>{const[re,...le]=W().map(oe=>oe.ref.current),[fe]=le.slice(-1),se=document.activeElement;for(const oe of ie)if(oe===se||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===re&&E&&(E.scrollTop=0),oe===fe&&E&&(E.scrollTop=E.scrollHeight),oe==null||oe.focus(),document.activeElement!==se))return},[W,E]),P=y.useCallback(()=>R([$,j]),[R,$,j]);y.useEffect(()=>{D&&P()},[D,P]);const{onOpenChange:H,triggerPointerDownPosRef:G}=C;y.useEffect(()=>{if(j){let ie={x:0,y:0};const re=fe=>{var se,oe;ie={x:Math.abs(Math.round(fe.pageX)-(((se=G.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((oe=G.current)==null?void 0:oe.y)??0))}},le=fe=>{ie.x<=10&&ie.y<=10?fe.preventDefault():j.contains(fe.target)||H(!1),document.removeEventListener("pointermove",re),G.current=null};return G.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",le,{capture:!0})}}},[j,H,G]),y.useEffect(()=>{const ie=()=>H(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[H]);const[U,V]=Rle(ie=>{const re=W().filter(se=>!se.disabled),le=re.find(se=>se.ref.current===document.activeElement),fe=Ple(re,ie,le);fe&&setTimeout(()=>fe.ref.current.focus())}),J=y.useCallback((ie,re,le)=>{const fe=!I.current&&!le;(C.value!==void 0&&C.value===re||fe)&&(q(ie),fe&&(I.current=!0))},[C.value]),z=y.useCallback(()=>j==null?void 0:j.focus(),[j]),ee=y.useCallback((ie,re,le)=>{const fe=!I.current&&!le;(C.value!==void 0&&C.value===re||fe)&&B(ie)},[C.value]),X=i==="popper"?QO:yle,Q=X===QO?{side:l,sideOffset:u,align:d,alignOffset:h,arrowPadding:f,collisionBoundary:m,collisionPadding:x,sticky:v,hideWhenDetached:_,avoidCollisions:w}:{};return c.jsx(mle,{scope:n,content:j,viewport:E,onViewportChange:N,itemRefCallback:J,selectedItem:$,onItemLeave:z,itemTextRefCallback:ee,focusSelectedItem:P,selectedItemText:F,position:i,isPositioned:D,searchRef:U,children:c.jsx(Vw,{as:get,allowPinchZoom:!0,children:c.jsx(Hw,{asChild:!0,trapped:C.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:fr(s,ie=>{var re;(re=C.trigger)==null||re.focus({preventScroll:!0}),ie.preventDefault()}),children:c.jsx(Fw,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:c.jsx(X,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:ie=>ie.preventDefault(),...S,...Q,onPlaced:()=>O(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:fr(S.onKeyDown,ie=>{const re=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!re&&ie.key.length===1&&V(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let fe=W().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const se=ie.target,oe=fe.indexOf(se);fe=fe.slice(oe+1)}setTimeout(()=>R(fe)),ie.preventDefault()}})})})})})})});gle.displayName=met;var yet="SelectItemAlignedPosition",yle=y.forwardRef((e,r)=>{const{__scopeSelect:n,onPlaced:i,...s}=e,a=Ym(S0,n),o=Xm(S0,n),[l,u]=y.useState(null),[d,h]=y.useState(null),f=ai(r,M=>h(M)),m=eN(n),x=y.useRef(!1),v=y.useRef(!0),{viewport:_,selectedItem:w,selectedItemText:S,focusSelectedItem:C}=o,j=y.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&_&&w&&S){const M=a.trigger.getBoundingClientRect(),$=d.getBoundingClientRect(),q=a.valueNode.getBoundingClientRect(),F=S.getBoundingClientRect();if(a.dir!=="rtl"){const se=F.left-$.left,oe=q.left-se,be=M.left-oe,je=M.width+be,He=Math.max(je,$.width),Qe=window.innerWidth-nd,ft=tU(oe,[nd,Math.max(nd,Qe-He)]);l.style.minWidth=je+"px",l.style.left=ft+"px"}else{const se=$.right-F.right,oe=window.innerWidth-q.right-se,be=window.innerWidth-M.right-oe,je=M.width+be,He=Math.max(je,$.width),Qe=window.innerWidth-nd,ft=tU(oe,[nd,Math.max(nd,Qe-He)]);l.style.minWidth=je+"px",l.style.right=ft+"px"}const B=m(),W=window.innerHeight-nd*2,D=_.scrollHeight,O=window.getComputedStyle(d),I=parseInt(O.borderTopWidth,10),R=parseInt(O.paddingTop,10),P=parseInt(O.borderBottomWidth,10),H=parseInt(O.paddingBottom,10),G=I+R+D+H+P,U=Math.min(w.offsetHeight*5,G),V=window.getComputedStyle(_),J=parseInt(V.paddingTop,10),z=parseInt(V.paddingBottom,10),ee=M.top+M.height/2-nd,X=W-ee,Q=w.offsetHeight/2,ie=w.offsetTop+Q,re=I+R+ie,le=G-re;if(re<=ee){const se=B.length>0&&w===B[B.length-1].ref.current;l.style.bottom="0px";const oe=d.clientHeight-_.offsetTop-_.offsetHeight,be=Math.max(X,Q+(se?z:0)+oe+P),je=re+be;l.style.height=je+"px"}else{const se=B.length>0&&w===B[0].ref.current;l.style.top="0px";const be=Math.max(ee,I+_.offsetTop+(se?J:0)+Q)+le;l.style.height=be+"px",_.scrollTop=re-ee+_.offsetTop}l.style.margin=`${nd}px 0`,l.style.minHeight=U+"px",l.style.maxHeight=W+"px",i==null||i(),requestAnimationFrame(()=>x.current=!0)}},[m,a.trigger,a.valueNode,l,d,_,w,S,a.dir,i]);Xs(()=>j(),[j]);const[T,E]=y.useState();Xs(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const N=y.useCallback(M=>{M&&v.current===!0&&(j(),C==null||C(),v.current=!1)},[j,C]);return c.jsx(vet,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:x,onScrollButtonChange:N,children:c.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:c.jsx(Oc.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});yle.displayName=yet;var xet="SelectPopperPosition",QO=y.forwardRef((e,r)=>{const{__scopeSelect:n,align:i="start",collisionPadding:s=nd,...a}=e,o=tN(n);return c.jsx(mR,{...o,...a,ref:r,align:i,collisionPadding:s,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});QO.displayName=xet;var[vet,LP]=$x(S0,{}),e7="SelectViewport",xle=y.forwardRef((e,r)=>{const{__scopeSelect:n,nonce:i,...s}=e,a=Xm(e7,n),o=LP(e7,n),l=ai(r,a.onViewportChange),u=y.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),c.jsx(Q4.Slot,{scope:n,children:c.jsx(Oc.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:fr(s.onScroll,d=>{const h=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=o;if(m!=null&&m.current&&f){const x=Math.abs(u.current-h.scrollTop);if(x>0){const v=window.innerHeight-nd*2,_=parseFloat(f.style.minHeight),w=parseFloat(f.style.height),S=Math.max(_,w);if(S<v){const C=S+x,j=Math.min(v,C),T=C-j;f.style.height=j+"px",f.style.bottom==="0px"&&(h.scrollTop=T>0?T:0,f.style.justifyContent="flex-end")}}}u.current=h.scrollTop})})})]})});xle.displayName=e7;var vle="SelectGroup",[bet,_et]=$x(vle),wet=y.forwardRef((e,r)=>{const{__scopeSelect:n,...i}=e,s=xu();return c.jsx(bet,{scope:n,id:s,children:c.jsx(Oc.div,{role:"group","aria-labelledby":s,...i,ref:r})})});wet.displayName=vle;var ble="SelectLabel",_le=y.forwardRef((e,r)=>{const{__scopeSelect:n,...i}=e,s=_et(ble,n);return c.jsx(Oc.div,{id:s.id,...i,ref:r})});_le.displayName=ble;var gj="SelectItem",[ket,wle]=$x(gj),Sle=y.forwardRef((e,r)=>{const{__scopeSelect:n,value:i,disabled:s=!1,textValue:a,...o}=e,l=Ym(gj,n),u=Xm(gj,n),d=l.value===i,[h,f]=y.useState(a??""),[m,x]=y.useState(!1),v=ai(r,C=>{var j;return(j=u.itemRefCallback)==null?void 0:j.call(u,C,i,s)}),_=xu(),w=y.useRef("touch"),S=()=>{s||(l.onValueChange(i),l.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(ket,{scope:n,value:i,disabled:s,textId:_,isSelected:d,onItemTextChange:y.useCallback(C=>{f(j=>j||((C==null?void 0:C.textContent)??"").trim())},[]),children:c.jsx(Q4.ItemSlot,{scope:n,value:i,disabled:s,textValue:h,children:c.jsx(Oc.div,{role:"option","aria-labelledby":_,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:v,onFocus:fr(o.onFocus,()=>x(!0)),onBlur:fr(o.onBlur,()=>x(!1)),onClick:fr(o.onClick,()=>{w.current!=="mouse"&&S()}),onPointerUp:fr(o.onPointerUp,()=>{w.current==="mouse"&&S()}),onPointerDown:fr(o.onPointerDown,C=>{w.current=C.pointerType}),onPointerMove:fr(o.onPointerMove,C=>{var j;w.current=C.pointerType,s?(j=u.onItemLeave)==null||j.call(u):w.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:fr(o.onPointerLeave,C=>{var j;C.currentTarget===document.activeElement&&((j=u.onItemLeave)==null||j.call(u))}),onKeyDown:fr(o.onKeyDown,C=>{var T;((T=u.searchRef)==null?void 0:T.current)!==""&&C.key===" "||(oet.includes(C.key)&&S(),C.key===" "&&C.preventDefault())})})})})});Sle.displayName=gj;var Wb="SelectItemText",kle=y.forwardRef((e,r)=>{const{__scopeSelect:n,className:i,style:s,...a}=e,o=Ym(Wb,n),l=Xm(Wb,n),u=wle(Wb,n),d=het(Wb,n),[h,f]=y.useState(null),m=ai(r,S=>f(S),u.onItemTextChange,S=>{var C;return(C=l.itemTextRefCallback)==null?void 0:C.call(l,S,u.value,u.disabled)}),x=h==null?void 0:h.textContent,v=y.useMemo(()=>c.jsx("option",{value:u.value,disabled:u.disabled,children:x},u.value),[u.disabled,u.value,x]),{onNativeOptionAdd:_,onNativeOptionRemove:w}=d;return Xs(()=>(_(v),()=>w(v)),[_,w,v]),c.jsxs(c.Fragment,{children:[c.jsx(Oc.span,{id:u.textId,...a,ref:m}),u.isSelected&&o.valueNode&&!o.valueNodeHasChildren?O0.createPortal(a.children,o.valueNode):null]})});kle.displayName=Wb;var Cle="SelectItemIndicator",jle=y.forwardRef((e,r)=>{const{__scopeSelect:n,...i}=e;return wle(Cle,n).isSelected?c.jsx(Oc.span,{"aria-hidden":!0,...i,ref:r}):null});jle.displayName=Cle;var t7="SelectScrollUpButton",Nle=y.forwardRef((e,r)=>{const n=Xm(t7,e.__scopeSelect),i=LP(t7,e.__scopeSelect),[s,a]=y.useState(!1),o=ai(r,i.onScrollButtonChange);return Xs(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=u.scrollTop>0;a(d)};const u=n.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?c.jsx(Ele,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=n;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null});Nle.displayName=t7;var r7="SelectScrollDownButton",Tle=y.forwardRef((e,r)=>{const n=Xm(r7,e.__scopeSelect),i=LP(r7,e.__scopeSelect),[s,a]=y.useState(!1),o=ai(r,i.onScrollButtonChange);return Xs(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=u.scrollHeight-u.clientHeight,h=Math.ceil(u.scrollTop)<d;a(h)};const u=n.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?c.jsx(Ele,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=n;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null});Tle.displayName=r7;var Ele=y.forwardRef((e,r)=>{const{__scopeSelect:n,onAutoScroll:i,...s}=e,a=Xm("SelectScrollButton",n),o=y.useRef(null),l=eN(n),u=y.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return y.useEffect(()=>()=>u(),[u]),Xs(()=>{var h;const d=l().find(f=>f.ref.current===document.activeElement);(h=d==null?void 0:d.ref.current)==null||h.scrollIntoView({block:"nearest"})},[l]),c.jsx(Oc.div,{"aria-hidden":!0,...s,ref:r,style:{flexShrink:0,...s.style},onPointerDown:fr(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(i,50))}),onPointerMove:fr(s.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),o.current===null&&(o.current=window.setInterval(i,50))}),onPointerLeave:fr(s.onPointerLeave,()=>{u()})})}),Cet="SelectSeparator",Ale=y.forwardRef((e,r)=>{const{__scopeSelect:n,...i}=e;return c.jsx(Oc.div,{"aria-hidden":!0,...i,ref:r})});Ale.displayName=Cet;var n7="SelectArrow",jet=y.forwardRef((e,r)=>{const{__scopeSelect:n,...i}=e,s=tN(n),a=Ym(n7,n),o=Xm(n7,n);return a.open&&o.position==="popper"?c.jsx(gR,{...s,...i,ref:r}):null});jet.displayName=n7;var Net="SelectBubbleInput",Ole=y.forwardRef(({__scopeSelect:e,value:r,...n},i)=>{const s=y.useRef(null),a=ai(i,s),o=sle(r);return y.useEffect(()=>{const l=s.current;if(!l)return;const u=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(o!==r&&h){const f=new Event("change",{bubbles:!0});h.call(l,r),l.dispatchEvent(f)}},[o,r]),c.jsx(Oc.select,{...n,style:{...ale,...n.style},ref:a,defaultValue:r})});Ole.displayName=Net;function Mle(e){return e===""||e===void 0}function Rle(e){const r=Cd(e),n=y.useRef(""),i=y.useRef(0),s=y.useCallback(o=>{const l=n.current+o;r(l),(function u(d){n.current=d,window.clearTimeout(i.current),d!==""&&(i.current=window.setTimeout(()=>u(""),1e3))})(l)},[r]),a=y.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,s,a]}function Ple(e,r,n){const s=r.length>1&&Array.from(r).every(d=>d===r[0])?r[0]:r,a=n?e.indexOf(n):-1;let o=Tet(e,Math.max(a,0));s.length===1&&(o=o.filter(d=>d!==n));const u=o.find(d=>d.textValue.toLowerCase().startsWith(s.toLowerCase()));return u!==n?u:void 0}function Tet(e,r){return e.map((n,i)=>e[(r+i)%e.length])}var Eet=ole,Lle=cle,Aet=dle,Oet=hle,Met=fle,$le=ple,Ret=xle,Dle=_le,Ile=Sle,Pet=kle,Let=jle,Ble=Nle,zle=Tle,Fle=Ale;const Sd=Eet,kd=Aet,_u=y.forwardRef(({className:e,children:r,...n},i)=>c.jsxs(Lle,{ref:i,className:Ce("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-lg border border-input bg-background/90 px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring/60 focus:ring-offset-2 focus:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[r,c.jsx(Oet,{asChild:!0,children:c.jsx(nl,{className:"h-4 w-4 opacity-50"})})]}));_u.displayName=Lle.displayName;const Hle=y.forwardRef(({className:e,...r},n)=>c.jsx(Ble,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...r,children:c.jsx(XM,{className:"h-4 w-4"})}));Hle.displayName=Ble.displayName;const Wle=y.forwardRef(({className:e,...r},n)=>c.jsx(zle,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...r,children:c.jsx(nl,{className:"h-4 w-4"})}));Wle.displayName=zle.displayName;const wu=y.forwardRef(({className:e,children:r,position:n="popper",...i},s)=>c.jsx(Met,{children:c.jsxs($le,{ref:s,className:Ce("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border border-border/70 bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...i,children:[c.jsx(Hle,{}),c.jsx(Ret,{className:Ce("p-1",n==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),c.jsx(Wle,{})]})}));wu.displayName=$le.displayName;const $et=y.forwardRef(({className:e,...r},n)=>c.jsx(Dle,{ref:n,className:Ce("px-2 py-1.5 text-sm font-semibold",e),...r}));$et.displayName=Dle.displayName;const Ls=y.forwardRef(({className:e,children:r,...n},i)=>c.jsxs(Ile,{ref:i,className:Ce("relative flex w-full cursor-default select-none items-center rounded-md py-2 pl-2.5 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[c.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(Let,{children:c.jsx(ls,{className:"h-4 w-4"})})}),c.jsx(Pet,{children:r})]}));Ls.displayName=Ile.displayName;const Det=y.forwardRef(({className:e,...r},n)=>c.jsx(Fle,{ref:n,className:Ce("-mx-1 my-1 h-px bg-muted",e),...r}));Det.displayName=Fle.displayName;function Iet(){return typeof window>"u"?!1:!!window.jaitDesktop||!!window.Capacitor}function Bet(){return!1}function Yu(e,r){const n=new Headers(r==null?void 0:r.headers),i={...r,headers:n};if(Iet()){const s=Nf();s&&!n.has("Authorization")&&n.set("Authorization",`Bearer ${s}`)}else Bet()&&(i.credentials="include");return fetch(e,i)}const Xu=Nn();async function Ju(e){const r=await e.json().catch(()=>({}));if(!e.ok)throw new Error(r.error||`Request failed (${e.status})`);return r}const du={async config(){const e=await Yu(`${Xu}/api/email/config`);return(await Ju(e)).providers},async saveAppCredentials(e,r,n){const i=await Yu(`${Xu}/api/email/config/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:r,clientSecret:n})});await Ju(i)},async accounts(){const e=await Yu(`${Xu}/api/email/accounts`);return(await Ju(e)).accounts},async connectUrl(e){const r=await Yu(`${Xu}/api/email/connect/${e}`);return(await Ju(r)).authUrl},async disconnect(e){const r=await Yu(`${Xu}/api/email/accounts/${e}`,{method:"DELETE"});await Ju(r)},async listMessages(e={}){const r=new URLSearchParams;e.accountId&&r.set("accountId",e.accountId),e.folder&&r.set("folder",e.folder),e.q&&r.set("q",e.q),e.limit&&r.set("limit",String(e.limit));const n=await Yu(`${Xu}/api/email/messages?${r.toString()}`);return Ju(n)},async getMessage(e,r){const n=new URLSearchParams;r&&n.set("accountId",r);const i=await Yu(`${Xu}/api/email/messages/${e}?${n.toString()}`);return(await Ju(i)).message},async send(e){const r=await Yu(`${Xu}/api/email/send`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});await Ju(r)},async tag(e,r){const n=await Yu(`${Xu}/api/email/messages/${e}/tag`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});await Ju(n)},async remove(e,r){const n=await Yu(`${Xu}/api/email/messages/${e}/delete`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accountId:r})});await Ju(n)},async folders(e){const r=new URLSearchParams;e&&r.set("accountId",e);const n=await Yu(`${Xu}/api/email/folders?${r.toString()}`);return(await Ju(n)).folders}},zet={gmail:"Gmail",outlook:"Outlook"};function rU(e){const r=e.match(/^\s*"?([^"<]+?)"?\s*<.*>$/);return(r?r[1]:e).trim()||e}function Fet(e){const r=new Date(e);if(Number.isNaN(r.getTime()))return e;const n=new Date;return r.toDateString()===n.toDateString()?r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):r.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Het({isMobile:e=!1}){const[r,n]=y.useState(null),[i,s]=y.useState({gmail:!1,outlook:!1}),[a,o]=y.useState(null),[l,u]=y.useState([]),[d,h]=y.useState("inbox"),[f,m]=y.useState([]),[x,v]=y.useState(null),[_,w]=y.useState(null),[S,C]=y.useState(""),[j,T]=y.useState(!1),[E,N]=y.useState(!1),[M,$]=y.useState(null),[q,F]=y.useState(null),[B,W]=y.useState(!1),D=y.useMemo(()=>(r==null?void 0:r.find(z=>z.id===a))??(r==null?void 0:r[0])??null,[r,a]),O=y.useCallback(async()=>{try{const[z,ee]=await Promise.all([du.accounts(),du.config()]);n(z),s(ee),z.length>0&&o(X=>X??z[0].id)}catch(z){Xr.error(z instanceof Error?z.message:"Failed to load email accounts"),n([])}},[]);y.useEffect(()=>{O()},[O]);const I=y.useCallback(async(z,ee,X)=>{T(!0);try{const Q=await du.listMessages({accountId:z,folder:ee,q:X||void 0,limit:30});m(Q.messages)}catch(Q){Xr.error(Q instanceof Error?Q.message:"Failed to load messages"),m([])}finally{T(!1)}},[]);y.useEffect(()=>{D&&du.folders(D.id).then(u).catch(()=>u([]))},[D]),y.useEffect(()=>{D&&I(D.id,d,S)},[D,d]);const R=y.useCallback(async z=>{$(z);try{const ee=await du.connectUrl(z),X=window.open(ee,"jait-email-oauth","width=520,height=680"),Q=re=>{var le;if(((le=re.data)==null?void 0:le.type)==="jait-email-oauth"){window.removeEventListener("message",Q),$(null),re.data.ok&&(Xr.success("Mailbox connected"),O());try{X==null||X.close()}catch{}}};window.addEventListener("message",Q);const ie=setInterval(()=>{X!=null&&X.closed&&(clearInterval(ie),window.removeEventListener("message",Q),$(null),O())},1e3)}catch(ee){Xr.error(ee instanceof Error?ee.message:"Failed to start connection"),$(null)}},[O]),P=y.useCallback(async(z,ee)=>{const X=ee??(D==null?void 0:D.id);if(X){v(z),N(!0);try{const Q=await du.getMessage(z,X);w(Q),m(ie=>ie.map(re=>re.id===z?{...re,unread:!1}:re))}catch(Q){Xr.error(Q instanceof Error?Q.message:"Failed to open message")}finally{N(!1)}}},[D]),H=y.useCallback(async z=>{if(!D)return;const ee=z.labels.some(X=>X.toLowerCase()==="starred");try{await du.tag(z.id,{accountId:D.id,add:ee?[]:["STARRED"],remove:ee?["STARRED"]:[]});const X=Q=>Q.id===z.id?{...Q,labels:ee?Q.labels.filter(ie=>ie.toLowerCase()!=="starred"):[...Q.labels,"STARRED"]}:Q;m(Q=>Q.map(X)),(_==null?void 0:_.id)===z.id&&w({..._,labels:X(_).labels})}catch(X){Xr.error(X instanceof Error?X.message:"Failed to update star")}},[D,_]),G=y.useCallback(async z=>{if(D)try{await du.remove(z,D.id),m(ee=>ee.filter(X=>X.id!==z)),x===z&&(v(null),w(null)),Xr.success("Moved to trash")}catch(ee){Xr.error(ee instanceof Error?ee.message:"Failed to delete")}},[D,x]),U=y.useCallback(async()=>{if(!(!D||!q)){W(!0);try{await du.send({accountId:D.id,to:q.to,subject:q.subject,body:q.body,replyToMessageId:q.replyToMessageId}),Xr.success("Email sent"),F(null)}catch(z){Xr.error(z instanceof Error?z.message:"Failed to send")}finally{W(!1)}}},[D,q]);y.useEffect(()=>{const z=ee=>{const X=ee.detail;if(!X)return;X.accountId&&X.accountId!==a&&o(X.accountId);const Q=X.accountId??(D==null?void 0:D.id);switch(X.action){case"navigate":X.folder&&(h(X.folder),v(null),w(null));break;case"open":X.messageId&&P(X.messageId,Q);break;case"compose":F({to:X.to??"",subject:X.subject??"",body:X.body??"",replyToMessageId:X.replyToMessageId});break;case"refresh":Q&&I(Q,d,S);break}};return window.addEventListener("jait:email-control",z),()=>window.removeEventListener("jait:email-control",z)},[D,a,d,S,P,I]);const V=y.useCallback(z=>{F({to:z.from,subject:z.subject.startsWith("Re:")?z.subject:`Re: ${z.subject}`,body:"",replyToMessageId:z.id})},[]);if(r===null)return c.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:c.jsx(Ot,{className:"h-5 w-5 animate-spin"})});if(r.length===0)return c.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-6 p-8 text-center",children:[c.jsx("div",{className:"rounded-full bg-muted p-5",children:c.jsx(Wg,{className:"h-10 w-10 text-muted-foreground"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-xl font-semibold",children:"Connect your email"}),c.jsx("p",{className:"mt-1 max-w-md text-sm text-muted-foreground",children:"Connect a Gmail or Outlook account to read, send, tag, and organize mail here — and let your agents do it too."})]}),c.jsx("div",{className:"flex flex-col gap-3 sm:flex-row",children:["gmail","outlook"].map(z=>c.jsxs(ge,{size:"lg",disabled:!i[z]||M!==null,onClick:()=>R(z),className:"min-w-[200px]",children:[M===z?c.jsx(Ot,{className:"mr-2 h-4 w-4 animate-spin"}):c.jsx(Wg,{className:"mr-2 h-4 w-4"}),"Connect ",zet[z]]},z))}),(!i.gmail||!i.outlook)&&c.jsx("p",{className:"max-w-md text-xs text-muted-foreground",children:!i.gmail&&!i.outlook?"No provider is configured yet. Add OAuth client credentials via the GMAIL_OAUTH_CLIENT_ID / OUTLOOK_OAUTH_CLIENT_ID env vars (and secrets), then reload.":`${i.gmail?"Outlook":"Gmail"} needs OAuth credentials before it can be connected.`})]});const J=!e||x!==null;return c.jsxs("div",{className:"flex h-full min-h-0",children:[!e&&c.jsxs("aside",{className:"flex w-52 shrink-0 flex-col border-r",children:[c.jsx("div",{className:"p-3",children:c.jsxs(ge,{className:"w-full justify-start gap-2",onClick:()=>F({to:"",subject:"",body:""}),children:[c.jsx(L_,{className:"h-4 w-4"})," Compose"]})}),c.jsx("div",{className:"px-3 pb-2",children:c.jsxs(Sd,{value:D==null?void 0:D.id,onValueChange:z=>{o(z),v(null),w(null)},children:[c.jsx(_u,{className:"h-8 text-xs",children:c.jsx(kd,{})}),c.jsx(wu,{children:r.map(z=>c.jsx(Ls,{value:z.id,className:"text-xs",children:z.email},z.id))})]})}),c.jsx("nav",{className:"flex-1 overflow-y-auto px-2",children:[{id:"inbox",name:"Inbox"},...l.filter(z=>z.name.toLowerCase()!=="inbox")].map(z=>c.jsxs("button",{onClick:()=>{h(z.id==="inbox"?"inbox":z.id),v(null),w(null)},className:Ce("flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-accent",(d===z.id||d==="inbox"&&z.id==="inbox")&&"bg-accent font-medium"),children:[z.id==="inbox"?c.jsx(_1e,{className:"h-4 w-4"}):c.jsx(Wg,{className:"h-4 w-4"}),c.jsx("span",{className:"truncate",children:z.name})]},z.id))})]}),(!e||x===null)&&c.jsxs("section",{className:Ce("flex min-h-0 flex-col border-r",e?"flex-1":"w-80 shrink-0"),children:[c.jsxs("div",{className:"flex items-center gap-2 border-b p-2",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(Ka,{className:"absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),c.jsx(jn,{value:S,onChange:z=>C(z.target.value),onKeyDown:z=>{z.key==="Enter"&&D&&I(D.id,d,S)},placeholder:"Search mail",className:"h-8 pl-7 text-sm"})]}),c.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",disabled:j,onClick:()=>D&&I(D.id,d,S),children:c.jsx(js,{className:Ce("h-4 w-4",j&&"animate-spin")})}),e&&c.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>F({to:"",subject:"",body:""}),children:c.jsx(L_,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[f.length===0&&!j&&c.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:"No messages"}),f.map(z=>c.jsxs("button",{onClick:()=>P(z.id),className:Ce("flex w-full flex-col gap-0.5 border-b px-3 py-2 text-left hover:bg-accent/50",x===z.id&&"bg-accent",z.unread&&"bg-primary/5"),children:[c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsx("span",{className:Ce("truncate text-sm",z.unread&&"font-semibold"),children:rU(z.from)}),c.jsx("span",{className:"shrink-0 text-[11px] text-muted-foreground",children:Fet(z.date)})]}),c.jsxs("div",{className:"flex items-center gap-1",children:[z.labels.some(ee=>ee.toLowerCase()==="starred")&&c.jsx(Q8,{className:"h-3 w-3 shrink-0 fill-yellow-400 text-yellow-400"}),c.jsx("span",{className:Ce("truncate text-xs",z.unread?"font-medium":"text-muted-foreground"),children:z.subject||"(no subject)"}),z.hasAttachments&&c.jsx(AY,{className:"ml-auto h-3 w-3 shrink-0 text-muted-foreground"})]}),c.jsx("span",{className:"truncate text-[11px] text-muted-foreground",children:z.snippet})]},z.id))]})]}),J&&c.jsx("section",{className:"flex min-h-0 flex-1 flex-col",children:E?c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsx(Ot,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):_?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-center gap-1 border-b p-2",children:[e&&c.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>{v(null),w(null)},children:c.jsx(K8,{className:"h-4 w-4"})}),c.jsxs(ge,{variant:"ghost",size:"sm",className:"gap-1.5",onClick:()=>V(_),children:[c.jsx(Sxe,{className:"h-4 w-4"})," Reply"]}),c.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>H(_),children:c.jsx(Q8,{className:Ce("h-4 w-4",_.labels.some(z=>z.toLowerCase()==="starred")&&"fill-yellow-400 text-yellow-400")})}),c.jsx(ge,{variant:"ghost",size:"icon",className:"ml-auto h-8 w-8 text-destructive",onClick:()=>G(_.id),children:c.jsx(Qo,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto p-4",children:[c.jsx("h1",{className:"text-lg font-semibold",children:_.subject||"(no subject)"}),c.jsxs("div",{className:"mt-2 text-sm",children:[c.jsx("div",{className:"font-medium",children:rU(_.from)}),c.jsx("div",{className:"text-xs text-muted-foreground",children:_.from}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:["To: ",_.to]}),_.cc&&c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Cc: ",_.cc]}),c.jsx("div",{className:"mt-0.5 text-xs text-muted-foreground",children:new Date(_.date).toLocaleString()})]}),_.labels.filter(z=>z.toLowerCase()!=="unread").length>0&&c.jsx("div",{className:"mt-2 flex flex-wrap gap-1",children:_.labels.filter(z=>!["unread","inbox"].includes(z.toLowerCase())).map(z=>c.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 text-[10px] uppercase tracking-wide text-muted-foreground",children:z},z))}),c.jsx("hr",{className:"my-3"}),_.bodyHtml?c.jsx("iframe",{title:"Email content",sandbox:"allow-popups allow-popups-to-escape-sandbox",className:"h-[60vh] w-full border-0 bg-white",srcDoc:`<!doctype html><html><head><meta charset="utf-8"><base target="_blank">
1341
+ }`;function nle({color:e="#1FD5F9",colorShift:r=.05,lineWidth:n=2,blur:i=.5,uniformsRef:s,ref:a,className:o,...l}){const u=y.useMemo(()=>rle(e),[e]);return y.useEffect(()=>{const d=s.current;d&&(d.uLineWidth.value=n,d.uSmoothing.value=i,d.uColor.value=u??[0,.7,1],d.uColorShift.value=r)},[s,u,r,n,i]),c.jsx("div",{ref:a,className:o,...l,children:c.jsx(_Xe,{fs:PQe,devicePixelRatio:Math.min(globalThis.devicePixelRatio??1,1.5),uniforms:s.current,style:{width:"100%",height:"100%"}})})}nle.displayName="WaveShader";const LQe=Yj(["aspect-square"],{variants:{size:{icon:"h-[24px]",sm:"h-[56px]",md:"h-[112px]",lg:"h-[224px]",xl:"h-[448px]"}},defaultVariants:{size:"lg"}});function $Qe({size:e="lg",state:r="speaking",color:n,colorShift:i=.05,lineWidth:s,blur:a,className:o,ref:l,...u}){const d=y.useMemo(()=>{if(s!==void 0)return s;switch(e){case"icon":case"sm":return 2;default:return 1}},[s,e]),{speed:h,amplitude:f,frequency:m,opacity:x}=RQe({state:r}),v=y.useRef({uSpeed:{type:"1f",value:h.get()},uAmplitude:{type:"1f",value:f.get()},uFrequency:{type:"1f",value:m.get()},uMix:{type:"1f",value:x.get()},uLineWidth:{type:"1f",value:d},uSmoothing:{type:"1f",value:.5},uColor:{type:"3fv",value:[0,.7,1]},uColorShift:{type:"1f",value:i}});return y.useEffect(()=>{const _=[h.on("change",w=>{v.current.uSpeed.value=w}),f.on("change",w=>{v.current.uAmplitude.value=w}),m.on("change",w=>{v.current.uFrequency.value=w}),x.on("change",w=>{v.current.uMix.value=w})];return()=>{for(const w of _)w()}},[h,f,m,x]),c.jsx(nle,{ref:l,"data-lk-state":r,color:n,colorShift:i,lineWidth:d,blur:a,uniformsRef:v,className:Ce(LQe({size:e}),"mask-[linear-gradient(90deg,transparent_0%,black_20%,black_80%,transparent_100%)]",o),...u})}const DQe=e=>e?{WebkitAppRegion:"no-drag"}:void 0;function IQe({voiceOverlayOpen:e,setVoiceOverlayOpen:r,wakeWord:n,wakeWordEnabled:i,toggleWakeWord:s,voiceAssistant:a}){return n.isSupported?c.jsx("button",{className:`md:hidden flex items-center justify-center h-8 w-8 rounded-lg shrink-0 transition-colors ${e?"text-green-400 bg-green-500/10":i?n.isListening?"text-green-400 bg-green-500/10":"text-blue-400 bg-blue-500/10":"text-muted-foreground hover:bg-accent"}`,onClick:e?()=>{a.disconnect(),r(!1)}:s,"aria-label":e?"Disconnect voice":i?"Disable wake word":"Enable wake word",children:e?c.jsx(l0,{className:"h-4 w-4 animate-pulse"}):i?c.jsx(l0,{className:`h-4 w-4 ${n.isListening?"animate-pulse":""}`}):c.jsx(qw,{className:"h-4 w-4"})}):null}function BQe({setVoiceOverlayOpen:e,voiceAssistant:r,isMobile:n,isElectron:i}){return c.jsxs("div",{className:`absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-10 flex items-center gap-1.5 rounded-full border border-border/60 bg-background/80 backdrop-blur-sm px-1.5 py-1 ${n?"pointer-events-auto":""}`,style:DQe(i),children:[c.jsx("button",{onClick:r.toggleMic,className:`flex items-center justify-center h-7 w-7 rounded-full transition-colors ${r.micActive?"bg-muted hover:bg-muted/80 text-foreground":"bg-destructive/15 text-destructive hover:bg-destructive/25"}`,"aria-label":r.micActive?"Mute":"Unmute",children:r.micActive?c.jsx(l0,{className:"h-3.5 w-3.5"}):c.jsx(qw,{className:"h-3.5 w-3.5"})}),c.jsx($Qe,{state:r.assistantSpeaking?"speaking":r.status,size:"sm",lineWidth:2,className:"!aspect-auto !h-7 w-24 sm:w-36"}),c.jsx("button",{onClick:()=>{r.disconnect(),e(!1)},className:"flex items-center justify-center h-7 w-7 rounded-full bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors","aria-label":"End call",children:c.jsx(hxe,{className:"h-3.5 w-3.5"})})]})}function zQe({voiceOverlayOpen:e,setVoiceOverlayOpen:r,wakeWord:n,wakeWordEnabled:i,toggleWakeWord:s,voiceAssistant:a}){return n.isSupported?c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs("button",{onClick:e?()=>{a.disconnect(),r(!1)}:s,className:`ui-pill shrink-0 cursor-pointer transition-colors ${e?"text-green-400 animate-pulse":i?n.isListening?"text-green-400":"text-blue-400":"text-muted-foreground opacity-50"}`,children:[e?c.jsx(l0,{className:"h-3 w-3 animate-pulse"}):i?c.jsx(l0,{className:`h-3 w-3 ${n.isListening?"animate-pulse":""}`}):c.jsx(qw,{className:"h-3 w-3"}),c.jsx("span",{className:"hidden sm:inline text-xs",children:e?"Voice active":n.isListening?"Listening...":i?"Hey Jait":"Wake word"})]})}),c.jsx(dn,{side:"bottom",children:e?"Voice assistant active — click to disconnect":i?n.isListening?"Listening for your command...":'Say "Hey Jait" to start voice assistant — click to disable':'Click to enable always-on "Hey Jait" wake word'})]}):null}function FQe(e){const{activeManagerThreads:r,appPlatform:n,automation:i,chatProvider:s,cliModel:a,closeScreenSharePanel:o,contextUsage:l,currentView:u,desktopPlatform:d,handleApplyUpdate:h,handleLogout:f,handleThemeModeChange:m,isAuthenticated:x,isElectron:v,isMaximized:_,isMobile:w,model:S,openScreenSharePanel:C,provider:j,remainingPrompts:T,screenShare:E,setCurrentView:N,setSendTarget:M,setShowLoginDialog:$,setShowProject:q,setShowProjectEditor:F,setViewMode:B,setVoiceOverlayOpen:W,showScreenShare:D,themeMode:O,updateApplying:I,updateAwaitingRestart:R,updateInfo:P,user:H,userInitial:G,viewMode:U,voiceAssistant:V,voiceControlProps:J,voiceOverlayOpen:z}=e;return c.jsxs("header",{className:w?"fixed top-2 left-2 right-2 z-40 flex items-center gap-1 pointer-events-none h-10":`relative flex items-center gap-1 shrink-0 border-b bg-background px-2 sm:gap-2 sm:px-5 ${v?"h-10 !pl-[0.8rem]":"h-14"}`,style:v?{WebkitAppRegion:"drag",paddingLeft:d==="darwin"?70:void 0,paddingRight:d==="win32"?140:void 0}:void 0,children:[c.jsxs("div",{className:`flex items-center gap-1 shrink-0 ${w?"pointer-events-auto rounded-2xl bg-background/70 backdrop-blur-lg shadow-lg border px-2 h-10":""}`,style:v?{WebkitAppRegion:"no-drag"}:void 0,children:[c.jsx(Iae,{size:20,className:"shrink-0"}),c.jsx(IQe,{...J}),w&&u==="chat"&&r.length>0&&c.jsx(cF,{threads:r,getRepositoryForThread:i.getRepositoryForThread,threadPrStates:i.threadPrStates,ghAvailable:i.ghAvailable,onOpenThread:ee=>{N("chat"),i.setSelectedThreadId(ee),M("thread"),q(!1),F(!1)},onStopThread:ee=>i.handleStop(ee)})]}),c.jsxs("nav",{className:"hidden md:flex items-center gap-1 min-w-0 overflow-x-auto scrollbar-none",style:v?{WebkitAppRegion:"no-drag"}:void 0,children:[c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="chat"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("chat"),"aria-label":"Chat",children:[c.jsx(yd,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Chat"})]})}),c.jsx(dn,{side:"bottom",children:"Chat"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="todo"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("todo"),"aria-label":"Todo",children:[c.jsx(Sm,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Todo"})]})}),c.jsx(dn,{side:"bottom",children:"Todo"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="email"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("email"),"aria-label":"Email",children:[c.jsx(Wg,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Email"})]})}),c.jsx(dn,{side:"bottom",children:"Email"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="memory"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("memory"),"aria-label":"Memory",children:[c.jsx(vo,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Memory"})]})}),c.jsx(dn,{side:"bottom",children:"Memory"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="jobs"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("jobs"),"aria-label":"Jobs",children:[c.jsx(o_,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Jobs"})]})}),c.jsx(dn,{side:"bottom",children:"Jobs"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:u==="network"?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>N("network"),"aria-label":"Network",children:[c.jsx(v1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Network"})]})}),c.jsx(dn,{side:"bottom",children:"Network"})]}),U==="developer"&&!w&&c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{variant:D?"secondary":"ghost",size:"sm",className:"h-8 shrink-0 rounded-lg gap-1.5 px-2 text-xs",onClick:()=>D?o():C(),"aria-label":"Screen sharing",children:[c.jsx(Hg,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Screen Share"})]})}),c.jsx(dn,{side:"bottom",children:"Screen sharing"})]})]}),z?c.jsx(BQe,{setVoiceOverlayOpen:W,voiceAssistant:V,isMobile:w,isElectron:v}):u==="chat"?c.jsx("div",{className:`absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-10 ${w?"pointer-events-auto rounded-2xl bg-background/70 backdrop-blur-lg shadow-lg border px-1.5 h-10 flex items-center":""}`,style:v?{WebkitAppRegion:"no-drag"}:void 0,children:c.jsx(FPe,{mode:U,onChange:B,compact:w})}):null,c.jsx("div",{className:"flex-1 min-w-0"}),c.jsxs("div",{className:`flex items-center gap-1 sm:gap-1.5 shrink-0 ${w?"pointer-events-auto rounded-2xl bg-background/70 backdrop-blur-lg shadow-lg border px-1 py-0.5 h-10":""}`,style:v?{WebkitAppRegion:"no-drag"}:void 0,children:[c.jsxs("div",{className:"hidden md:flex items-center gap-1 sm:gap-1.5",children:[E.isActive&&c.jsxs("span",{className:"ui-pill shrink-0",children:[c.jsx(Hg,{className:"h-3 w-3 text-green-500 animate-pulse"}),c.jsx("span",{className:"hidden sm:inline",children:"Sharing"})]}),c.jsx(zQe,{...J}),u==="chat"&&r.length>0&&c.jsx(cF,{threads:r,getRepositoryForThread:i.getRepositoryForThread,threadPrStates:i.threadPrStates,ghAvailable:i.ghAvailable,onOpenThread:ee=>{N("chat"),i.setSelectedThreadId(ee),M("thread"),q(!1),F(!1)},onStopThread:ee=>i.handleStop(ee)}),c.jsx(zPe,{usage:l}),(()=>{const ee=a??S,X=s==="codex"?"openai":s==="claude-code"?"anthropic":j??"ollama",Q=s==="codex"?a?rx(a):"Codex":s==="claude-code"?a?rx(a):"Claude Code":ee?eXe(ee):null,ie=s==="codex"?`OpenAI Codex CLI${a?` · ${a}`:""}`:s==="claude-code"?`Anthropic Claude Code CLI${a?` · ${a}`:""}`:ee??"";return Q?c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs("div",{className:"ui-pill cursor-default sm:mr-2",children:[c.jsx(dj,{provider:X,model:s==="codex"?"codex":s==="claude-code"?"claude-3":ee??void 0,size:16}),c.jsx("span",{className:"text-xs text-muted-foreground hidden sm:inline",children:Q})]})}),c.jsx(dn,{side:"bottom",children:ie})]}):null})(),T!==null&&T<=5&&c.jsxs("span",{className:"text-xs text-muted-foreground mr-1 sm:mr-2 hidden sm:inline",children:[T," remaining"]})]}),(P==null?void 0:P.hasUpdate)&&c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsxs(ge,{onClick:async()=>{if(n==="web")!I&&!R&&await h();else if(n==="electron"){const ee=window.jaitDesktop;Xr.info("Downloading update...");const X=await ee.downloadUpdate();X!=null&&X.ok?(Xr.success("Update downloaded. Restarting..."),await ee.installUpdate()):Xr.error("Download failed")}else window.open("https://github.com/Widev-e-U/Jait/releases/latest","_blank")},variant:"outline",size:"sm",disabled:n==="web"&&(I||R),className:"h-8 shrink-0 border-amber-500/30 bg-amber-500/10 px-2 text-amber-700 hover:bg-amber-500/15 hover:text-amber-800 dark:text-amber-300",children:[n==="web"&&(I||R)?c.jsx(Ot,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(wY,{className:"h-3.5 w-3.5"}),c.jsx("span",{className:"hidden sm:inline",children:n==="web"&&(I||R)?"Updating...":`v${P.latestVersion}`})]})}),c.jsx(dn,{side:"bottom",children:n==="web"&&(I||R)?"Updating and refreshing...":`Update available — v${P.latestVersion}`})]}),w?c.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx(ge,{variant:"ghost",size:"sm",className:"h-9 w-9 p-0 shrink-0 rounded-lg",children:c.jsx(H1,{className:"h-4 w-4"})})}),c.jsxs(Ko,{align:"end",children:[c.jsx(Ug,{children:"Navigate"}),c.jsxs(Vn,{onSelect:()=>N("chat"),children:[c.jsx(yd,{className:"h-4 w-4 mr-2"}),"Chat"]}),c.jsxs(Vn,{onSelect:()=>N("jobs"),children:[c.jsx(o_,{className:"h-4 w-4 mr-2"}),"Jobs"]}),c.jsxs(Vn,{onSelect:()=>N("todo"),children:[c.jsx(Sm,{className:"h-4 w-4 mr-2"}),"Todo"]}),c.jsxs(Vn,{onSelect:()=>N("email"),children:[c.jsx(Wg,{className:"h-4 w-4 mr-2"}),"Email"]}),c.jsxs(Vn,{onSelect:()=>N("memory"),children:[c.jsx(vo,{className:"h-4 w-4 mr-2"}),"Memory"]}),c.jsxs(Vn,{onSelect:()=>N("network"),children:[c.jsx(v1,{className:"h-4 w-4 mr-2"}),"Network"]}),U==="developer"&&c.jsxs(Vn,{onSelect:()=>D?o():C(),children:[c.jsx(Hg,{className:"h-4 w-4 mr-2"}),D?"Hide Share":"Screen Share"]}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:()=>N("settings"),children:[c.jsx(Qk,{className:"h-4 w-4 mr-2"}),"Settings"]})]})]}),x?c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx("button",{className:"rounded-full ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:c.jsx(LO,{className:"h-8 w-8",children:c.jsx($O,{className:"text-sm font-medium",children:G})})})}),c.jsxs(Ko,{align:"end",children:[c.jsx(Ug,{children:H==null?void 0:H.username}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:()=>N("settings"),children:[c.jsx(Qk,{className:"h-4 w-4 mr-2"}),"Settings"]}),c.jsx(id,{}),c.jsxs("div",{className:"px-2 py-1.5",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Theme"}),c.jsx("div",{className:"flex items-center h-7 w-fit rounded-full border bg-muted/50 p-0.5 mt-1.5",children:[["light",rI],["system",wo],["dark",ZD]].map(([ee,X])=>c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx("button",{onClick:()=>{m(ee)},className:`relative flex items-center justify-center h-6 w-6 rounded-full transition-colors ${O===ee?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:c.jsx(X,{className:"h-3.5 w-3.5"})})}),c.jsx(dn,{side:"bottom",children:ee.charAt(0).toUpperCase()+ee.slice(1)})]},ee))})]}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:f,children:[c.jsx(X8,{className:"h-4 w-4 mr-2"}),"Logout"]})]})]}):c.jsx(ge,{variant:"ghost",size:"sm",className:"h-8 rounded-lg text-xs",onClick:()=>$(!0),children:"Sign in"})]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"md:hidden shrink-0",children:c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx(ge,{variant:"ghost",size:"sm",className:"h-9 w-9 p-0 shrink-0",children:c.jsx(H1,{className:"h-4 w-4"})})}),c.jsxs(Ko,{align:"end",children:[c.jsx(Ug,{children:"Navigate"}),c.jsxs(Vn,{onSelect:()=>N("chat"),children:[c.jsx(yd,{className:"h-4 w-4 mr-2"}),"Chat"]}),c.jsxs(Vn,{onSelect:()=>N("jobs"),children:[c.jsx(o_,{className:"h-4 w-4 mr-2"}),"Jobs"]}),c.jsxs(Vn,{onSelect:()=>N("todo"),children:[c.jsx(Sm,{className:"h-4 w-4 mr-2"}),"Todo"]}),c.jsxs(Vn,{onSelect:()=>N("email"),children:[c.jsx(Wg,{className:"h-4 w-4 mr-2"}),"Email"]}),c.jsxs(Vn,{onSelect:()=>N("memory"),children:[c.jsx(vo,{className:"h-4 w-4 mr-2"}),"Memory"]}),c.jsxs(Vn,{onSelect:()=>N("network"),children:[c.jsx(v1,{className:"h-4 w-4 mr-2"}),"Network"]}),U==="developer"&&c.jsxs(Vn,{onSelect:()=>D?o():C(),children:[c.jsx(Hg,{className:"h-4 w-4 mr-2"}),D?"Hide Share":"Screen Share"]}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:()=>N("settings"),children:[c.jsx(Qk,{className:"h-4 w-4 mr-2"}),"Settings"]})]})]})}),x?c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx("button",{className:"rounded-full ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:c.jsx(LO,{className:"h-7 w-7",children:c.jsx($O,{className:"text-xs",children:G})})})}),c.jsxs(Ko,{align:"end",children:[c.jsx(Ug,{children:H==null?void 0:H.username}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:()=>N("settings"),children:[c.jsx(Qk,{className:"h-4 w-4 mr-2"}),"Settings"]}),c.jsx(id,{}),c.jsxs("div",{className:"px-2 py-1.5",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Theme"}),c.jsx("div",{className:"flex items-center h-7 w-fit rounded-full border bg-muted/50 p-0.5 mt-1.5",children:[["light",rI],["system",wo],["dark",ZD]].map(([ee,X])=>c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx("button",{onClick:()=>{m(ee)},className:`relative flex items-center justify-center h-6 w-6 rounded-full transition-colors ${O===ee?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:c.jsx(X,{className:"h-3.5 w-3.5"})})}),c.jsx(dn,{side:"bottom",children:ee.charAt(0).toUpperCase()+ee.slice(1)})]},ee))})]}),c.jsx(id,{}),c.jsxs(Vn,{onSelect:f,children:[c.jsx(X8,{className:"h-4 w-4 mr-2"}),"Logout"]})]})]}):c.jsx(ge,{variant:"ghost",size:"sm",className:"h-8 rounded-lg text-xs",onClick:()=>$(!0),children:"Sign in"})]}),v&&d==="linux"&&c.jsx(tXe,{isMaximized:_})]})]})}function tU(e,[r,n]){return Math.min(n,Math.max(r,e))}function HQe(e,r=[]){let n=[];function i(a,o){const l=y.createContext(o),u=n.length;n=[...n,o];const d=f=>{var S;const{scope:m,children:x,...v}=f,_=((S=m==null?void 0:m[e])==null?void 0:S[u])||l,w=y.useMemo(()=>v,Object.values(v));return c.jsx(_.Provider,{value:w,children:x})};d.displayName=a+"Provider";function h(f,m){var _;const x=((_=m==null?void 0:m[e])==null?void 0:_[u])||l,v=y.useContext(x);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,h]}const s=()=>{const a=n.map(o=>y.createContext(o));return function(l){const u=(l==null?void 0:l[e])||a;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return s.scopeName=e,[i,WQe(s,...r)]}function WQe(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((l,{useScope:u,scopeName:d})=>{const f=u(a)[`__scope${d}`];return{...l,...f}},{});return y.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}function ile(e){const r=UQe(e),n=y.forwardRef((i,s)=>{const{children:a,...o}=i,l=y.Children.toArray(a),u=l.find(qQe);if(u){const d=u.props.children,h=l.map(f=>f===u?y.Children.count(d)>1?y.Children.only(null):y.isValidElement(d)?d.props.children:null:f);return c.jsx(r,{...o,ref:s,children:y.isValidElement(d)?y.cloneElement(d,void 0,h):null})}return c.jsx(r,{...o,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function UQe(e){const r=y.forwardRef((n,i)=>{const{children:s,...a}=n;if(y.isValidElement(s)){const o=KQe(s),l=GQe(a,s.props);return s.type!==y.Fragment&&(l.ref=i?Js(i,o):o),y.cloneElement(s,l)}return y.Children.count(s)>1?y.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var VQe=Symbol("radix.slottable");function qQe(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===VQe}function GQe(e,r){const n={...r};for(const i in r){const s=e[i],a=r[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...l)=>{const u=a(...l);return s(...l),u}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function KQe(e){var i,s;let r=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=r&&"isReactWarning"in r&&r.isReactWarning;return n?e.ref:(r=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=r&&"isReactWarning"in r&&r.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var YQe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Oc=YQe.reduce((e,r)=>{const n=ile(`Primitive.${r}`),i=y.forwardRef((s,a)=>{const{asChild:o,...l}=s,u=o?n:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...l,ref:a})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{});function sle(e){const r=y.useRef({value:e,previous:e});return y.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}function XQe(e){const r=JQe(e),n=y.forwardRef((i,s)=>{const{children:a,...o}=i,l=y.Children.toArray(a),u=l.find(QQe);if(u){const d=u.props.children,h=l.map(f=>f===u?y.Children.count(d)>1?y.Children.only(null):y.isValidElement(d)?d.props.children:null:f);return c.jsx(r,{...o,ref:s,children:y.isValidElement(d)?y.cloneElement(d,void 0,h):null})}return c.jsx(r,{...o,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function JQe(e){const r=y.forwardRef((n,i)=>{const{children:s,...a}=n;if(y.isValidElement(s)){const o=tet(s),l=eet(a,s.props);return s.type!==y.Fragment&&(l.ref=i?Js(i,o):o),y.cloneElement(s,l)}return y.Children.count(s)>1?y.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var ZQe=Symbol("radix.slottable");function QQe(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ZQe}function eet(e,r){const n={...r};for(const i in r){const s=e[i],a=r[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...l)=>{const u=a(...l);return s(...l),u}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function tet(e){var i,s;let r=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=r&&"isReactWarning"in r&&r.isReactWarning;return n?e.ref:(r=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=r&&"isReactWarning"in r&&r.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ret=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],net=ret.reduce((e,r)=>{const n=XQe(`Primitive.${r}`),i=y.forwardRef((s,a)=>{const{asChild:o,...l}=s,u=o?n:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...l,ref:a})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{}),ale=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),iet="VisuallyHidden",set=y.forwardRef((e,r)=>c.jsx(net.span,{...e,ref:r,style:{...ale,...e.style}}));set.displayName=iet;var aet=[" ","Enter","ArrowUp","ArrowDown"],oet=[" ","Enter"],w0="Select",[Q4,eN,cet]=nR(w0),[$x]=HQe(w0,[cet,xx]),tN=xx(),[uet,Ym]=$x(w0),[det,het]=$x(w0),ole=e=>{const{__scopeSelect:r,children:n,open:i,defaultOpen:s,onOpenChange:a,value:o,defaultValue:l,onValueChange:u,dir:d,name:h,autoComplete:f,disabled:m,required:x,form:v}=e,_=tN(r),[w,S]=y.useState(null),[C,j]=y.useState(null),[T,E]=y.useState(!1),N=n4(d),[M,$]=Wf({prop:i,defaultProp:s??!1,onChange:a,caller:w0}),[q,F]=Wf({prop:o,defaultProp:l,onChange:u,caller:w0}),B=y.useRef(null),W=w?v||!!w.closest("form"):!0,[D,O]=y.useState(new Set),I=Array.from(D).map(R=>R.props.value).join(";");return c.jsx(pR,{..._,children:c.jsxs(uet,{required:x,scope:r,trigger:w,onTriggerChange:S,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:T,onValueNodeHasChildrenChange:E,contentId:xu(),value:q,onValueChange:F,open:M,onOpenChange:$,dir:N,triggerPointerDownPosRef:B,disabled:m,children:[c.jsx(Q4.Provider,{scope:r,children:c.jsx(det,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(R=>{O(P=>new Set(P).add(R))},[]),onNativeOptionRemove:y.useCallback(R=>{O(P=>{const H=new Set(P);return H.delete(R),H})},[]),children:n})}),W?c.jsxs(Ole,{"aria-hidden":!0,required:x,tabIndex:-1,name:h,autoComplete:f,value:q,onChange:R=>F(R.target.value),disabled:m,form:v,children:[q===void 0?c.jsx("option",{value:""}):null,Array.from(D)]},I):null]})})};ole.displayName=w0;var lle="SelectTrigger",cle=y.forwardRef((e,r)=>{const{__scopeSelect:n,disabled:i=!1,...s}=e,a=tN(n),o=Ym(lle,n),l=o.disabled||i,u=ai(r,o.onTriggerChange),d=eN(n),h=y.useRef("touch"),[f,m,x]=Rle(_=>{const w=d().filter(j=>!j.disabled),S=w.find(j=>j.value===o.value),C=Ple(w,_,S);C!==void 0&&o.onValueChange(C.value)}),v=_=>{l||(o.onOpenChange(!0),x()),_&&(o.triggerPointerDownPosRef.current={x:Math.round(_.pageX),y:Math.round(_.pageY)})};return c.jsx(d4,{asChild:!0,...a,children:c.jsx(Oc.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Mle(o.value)?"":void 0,...s,ref:u,onClick:fr(s.onClick,_=>{_.currentTarget.focus(),h.current!=="mouse"&&v(_)}),onPointerDown:fr(s.onPointerDown,_=>{h.current=_.pointerType;const w=_.target;w.hasPointerCapture(_.pointerId)&&w.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&_.pointerType==="mouse"&&(v(_),_.preventDefault())}),onKeyDown:fr(s.onKeyDown,_=>{const w=f.current!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&m(_.key),!(w&&_.key===" ")&&aet.includes(_.key)&&(v(),_.preventDefault())})})})});cle.displayName=lle;var ule="SelectValue",dle=y.forwardRef((e,r)=>{const{__scopeSelect:n,className:i,style:s,children:a,placeholder:o="",...l}=e,u=Ym(ule,n),{onValueNodeHasChildrenChange:d}=u,h=a!==void 0,f=ai(r,u.onValueNodeChange);return Xs(()=>{d(h)},[d,h]),c.jsx(Oc.span,{...l,ref:f,style:{pointerEvents:"none"},children:Mle(u.value)?c.jsx(c.Fragment,{children:o}):a})});dle.displayName=ule;var fet="SelectIcon",hle=y.forwardRef((e,r)=>{const{__scopeSelect:n,children:i,...s}=e;return c.jsx(Oc.span,{"aria-hidden":!0,...s,ref:r,children:i||"▼"})});hle.displayName=fet;var pet="SelectPortal",fle=e=>c.jsx(Ww,{asChild:!0,...e});fle.displayName=pet;var S0="SelectContent",ple=y.forwardRef((e,r)=>{const n=Ym(S0,e.__scopeSelect),[i,s]=y.useState();if(Xs(()=>{s(new DocumentFragment)},[]),!n.open){const a=i;return a?O0.createPortal(c.jsx(mle,{scope:e.__scopeSelect,children:c.jsx(Q4.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),a):null}return c.jsx(gle,{...e,ref:r})});ple.displayName=S0;var nd=10,[mle,Xm]=$x(S0),met="SelectContentImpl",get=ile("SelectContent.RemoveScroll"),gle=y.forwardRef((e,r)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:a,onPointerDownOutside:o,side:l,sideOffset:u,align:d,alignOffset:h,arrowPadding:f,collisionBoundary:m,collisionPadding:x,sticky:v,hideWhenDetached:_,avoidCollisions:w,...S}=e,C=Ym(S0,n),[j,T]=y.useState(null),[E,N]=y.useState(null),M=ai(r,ie=>T(ie)),[$,q]=y.useState(null),[F,B]=y.useState(null),W=eN(n),[D,O]=y.useState(!1),I=y.useRef(!1);y.useEffect(()=>{if(j)return Zj(j)},[j]),Xj();const R=y.useCallback(ie=>{const[re,...le]=W().map(oe=>oe.ref.current),[fe]=le.slice(-1),se=document.activeElement;for(const oe of ie)if(oe===se||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===re&&E&&(E.scrollTop=0),oe===fe&&E&&(E.scrollTop=E.scrollHeight),oe==null||oe.focus(),document.activeElement!==se))return},[W,E]),P=y.useCallback(()=>R([$,j]),[R,$,j]);y.useEffect(()=>{D&&P()},[D,P]);const{onOpenChange:H,triggerPointerDownPosRef:G}=C;y.useEffect(()=>{if(j){let ie={x:0,y:0};const re=fe=>{var se,oe;ie={x:Math.abs(Math.round(fe.pageX)-(((se=G.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((oe=G.current)==null?void 0:oe.y)??0))}},le=fe=>{ie.x<=10&&ie.y<=10?fe.preventDefault():j.contains(fe.target)||H(!1),document.removeEventListener("pointermove",re),G.current=null};return G.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",le,{capture:!0})}}},[j,H,G]),y.useEffect(()=>{const ie=()=>H(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[H]);const[U,V]=Rle(ie=>{const re=W().filter(se=>!se.disabled),le=re.find(se=>se.ref.current===document.activeElement),fe=Ple(re,ie,le);fe&&setTimeout(()=>fe.ref.current.focus())}),J=y.useCallback((ie,re,le)=>{const fe=!I.current&&!le;(C.value!==void 0&&C.value===re||fe)&&(q(ie),fe&&(I.current=!0))},[C.value]),z=y.useCallback(()=>j==null?void 0:j.focus(),[j]),ee=y.useCallback((ie,re,le)=>{const fe=!I.current&&!le;(C.value!==void 0&&C.value===re||fe)&&B(ie)},[C.value]),X=i==="popper"?QO:yle,Q=X===QO?{side:l,sideOffset:u,align:d,alignOffset:h,arrowPadding:f,collisionBoundary:m,collisionPadding:x,sticky:v,hideWhenDetached:_,avoidCollisions:w}:{};return c.jsx(mle,{scope:n,content:j,viewport:E,onViewportChange:N,itemRefCallback:J,selectedItem:$,onItemLeave:z,itemTextRefCallback:ee,focusSelectedItem:P,selectedItemText:F,position:i,isPositioned:D,searchRef:U,children:c.jsx(Vw,{as:get,allowPinchZoom:!0,children:c.jsx(Hw,{asChild:!0,trapped:C.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:fr(s,ie=>{var re;(re=C.trigger)==null||re.focus({preventScroll:!0}),ie.preventDefault()}),children:c.jsx(Fw,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:c.jsx(X,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:ie=>ie.preventDefault(),...S,...Q,onPlaced:()=>O(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:fr(S.onKeyDown,ie=>{const re=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!re&&ie.key.length===1&&V(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let fe=W().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const se=ie.target,oe=fe.indexOf(se);fe=fe.slice(oe+1)}setTimeout(()=>R(fe)),ie.preventDefault()}})})})})})})});gle.displayName=met;var yet="SelectItemAlignedPosition",yle=y.forwardRef((e,r)=>{const{__scopeSelect:n,onPlaced:i,...s}=e,a=Ym(S0,n),o=Xm(S0,n),[l,u]=y.useState(null),[d,h]=y.useState(null),f=ai(r,M=>h(M)),m=eN(n),x=y.useRef(!1),v=y.useRef(!0),{viewport:_,selectedItem:w,selectedItemText:S,focusSelectedItem:C}=o,j=y.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&_&&w&&S){const M=a.trigger.getBoundingClientRect(),$=d.getBoundingClientRect(),q=a.valueNode.getBoundingClientRect(),F=S.getBoundingClientRect();if(a.dir!=="rtl"){const se=F.left-$.left,oe=q.left-se,be=M.left-oe,je=M.width+be,He=Math.max(je,$.width),Qe=window.innerWidth-nd,ft=tU(oe,[nd,Math.max(nd,Qe-He)]);l.style.minWidth=je+"px",l.style.left=ft+"px"}else{const se=$.right-F.right,oe=window.innerWidth-q.right-se,be=window.innerWidth-M.right-oe,je=M.width+be,He=Math.max(je,$.width),Qe=window.innerWidth-nd,ft=tU(oe,[nd,Math.max(nd,Qe-He)]);l.style.minWidth=je+"px",l.style.right=ft+"px"}const B=m(),W=window.innerHeight-nd*2,D=_.scrollHeight,O=window.getComputedStyle(d),I=parseInt(O.borderTopWidth,10),R=parseInt(O.paddingTop,10),P=parseInt(O.borderBottomWidth,10),H=parseInt(O.paddingBottom,10),G=I+R+D+H+P,U=Math.min(w.offsetHeight*5,G),V=window.getComputedStyle(_),J=parseInt(V.paddingTop,10),z=parseInt(V.paddingBottom,10),ee=M.top+M.height/2-nd,X=W-ee,Q=w.offsetHeight/2,ie=w.offsetTop+Q,re=I+R+ie,le=G-re;if(re<=ee){const se=B.length>0&&w===B[B.length-1].ref.current;l.style.bottom="0px";const oe=d.clientHeight-_.offsetTop-_.offsetHeight,be=Math.max(X,Q+(se?z:0)+oe+P),je=re+be;l.style.height=je+"px"}else{const se=B.length>0&&w===B[0].ref.current;l.style.top="0px";const be=Math.max(ee,I+_.offsetTop+(se?J:0)+Q)+le;l.style.height=be+"px",_.scrollTop=re-ee+_.offsetTop}l.style.margin=`${nd}px 0`,l.style.minHeight=U+"px",l.style.maxHeight=W+"px",i==null||i(),requestAnimationFrame(()=>x.current=!0)}},[m,a.trigger,a.valueNode,l,d,_,w,S,a.dir,i]);Xs(()=>j(),[j]);const[T,E]=y.useState();Xs(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const N=y.useCallback(M=>{M&&v.current===!0&&(j(),C==null||C(),v.current=!1)},[j,C]);return c.jsx(vet,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:x,onScrollButtonChange:N,children:c.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:c.jsx(Oc.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});yle.displayName=yet;var xet="SelectPopperPosition",QO=y.forwardRef((e,r)=>{const{__scopeSelect:n,align:i="start",collisionPadding:s=nd,...a}=e,o=tN(n);return c.jsx(mR,{...o,...a,ref:r,align:i,collisionPadding:s,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});QO.displayName=xet;var[vet,LP]=$x(S0,{}),e7="SelectViewport",xle=y.forwardRef((e,r)=>{const{__scopeSelect:n,nonce:i,...s}=e,a=Xm(e7,n),o=LP(e7,n),l=ai(r,a.onViewportChange),u=y.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),c.jsx(Q4.Slot,{scope:n,children:c.jsx(Oc.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:fr(s.onScroll,d=>{const h=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=o;if(m!=null&&m.current&&f){const x=Math.abs(u.current-h.scrollTop);if(x>0){const v=window.innerHeight-nd*2,_=parseFloat(f.style.minHeight),w=parseFloat(f.style.height),S=Math.max(_,w);if(S<v){const C=S+x,j=Math.min(v,C),T=C-j;f.style.height=j+"px",f.style.bottom==="0px"&&(h.scrollTop=T>0?T:0,f.style.justifyContent="flex-end")}}}u.current=h.scrollTop})})})]})});xle.displayName=e7;var vle="SelectGroup",[bet,_et]=$x(vle),wet=y.forwardRef((e,r)=>{const{__scopeSelect:n,...i}=e,s=xu();return c.jsx(bet,{scope:n,id:s,children:c.jsx(Oc.div,{role:"group","aria-labelledby":s,...i,ref:r})})});wet.displayName=vle;var ble="SelectLabel",_le=y.forwardRef((e,r)=>{const{__scopeSelect:n,...i}=e,s=_et(ble,n);return c.jsx(Oc.div,{id:s.id,...i,ref:r})});_le.displayName=ble;var gj="SelectItem",[ket,wle]=$x(gj),Sle=y.forwardRef((e,r)=>{const{__scopeSelect:n,value:i,disabled:s=!1,textValue:a,...o}=e,l=Ym(gj,n),u=Xm(gj,n),d=l.value===i,[h,f]=y.useState(a??""),[m,x]=y.useState(!1),v=ai(r,C=>{var j;return(j=u.itemRefCallback)==null?void 0:j.call(u,C,i,s)}),_=xu(),w=y.useRef("touch"),S=()=>{s||(l.onValueChange(i),l.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(ket,{scope:n,value:i,disabled:s,textId:_,isSelected:d,onItemTextChange:y.useCallback(C=>{f(j=>j||((C==null?void 0:C.textContent)??"").trim())},[]),children:c.jsx(Q4.ItemSlot,{scope:n,value:i,disabled:s,textValue:h,children:c.jsx(Oc.div,{role:"option","aria-labelledby":_,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:v,onFocus:fr(o.onFocus,()=>x(!0)),onBlur:fr(o.onBlur,()=>x(!1)),onClick:fr(o.onClick,()=>{w.current!=="mouse"&&S()}),onPointerUp:fr(o.onPointerUp,()=>{w.current==="mouse"&&S()}),onPointerDown:fr(o.onPointerDown,C=>{w.current=C.pointerType}),onPointerMove:fr(o.onPointerMove,C=>{var j;w.current=C.pointerType,s?(j=u.onItemLeave)==null||j.call(u):w.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:fr(o.onPointerLeave,C=>{var j;C.currentTarget===document.activeElement&&((j=u.onItemLeave)==null||j.call(u))}),onKeyDown:fr(o.onKeyDown,C=>{var T;((T=u.searchRef)==null?void 0:T.current)!==""&&C.key===" "||(oet.includes(C.key)&&S(),C.key===" "&&C.preventDefault())})})})})});Sle.displayName=gj;var Wb="SelectItemText",kle=y.forwardRef((e,r)=>{const{__scopeSelect:n,className:i,style:s,...a}=e,o=Ym(Wb,n),l=Xm(Wb,n),u=wle(Wb,n),d=het(Wb,n),[h,f]=y.useState(null),m=ai(r,S=>f(S),u.onItemTextChange,S=>{var C;return(C=l.itemTextRefCallback)==null?void 0:C.call(l,S,u.value,u.disabled)}),x=h==null?void 0:h.textContent,v=y.useMemo(()=>c.jsx("option",{value:u.value,disabled:u.disabled,children:x},u.value),[u.disabled,u.value,x]),{onNativeOptionAdd:_,onNativeOptionRemove:w}=d;return Xs(()=>(_(v),()=>w(v)),[_,w,v]),c.jsxs(c.Fragment,{children:[c.jsx(Oc.span,{id:u.textId,...a,ref:m}),u.isSelected&&o.valueNode&&!o.valueNodeHasChildren?O0.createPortal(a.children,o.valueNode):null]})});kle.displayName=Wb;var Cle="SelectItemIndicator",jle=y.forwardRef((e,r)=>{const{__scopeSelect:n,...i}=e;return wle(Cle,n).isSelected?c.jsx(Oc.span,{"aria-hidden":!0,...i,ref:r}):null});jle.displayName=Cle;var t7="SelectScrollUpButton",Nle=y.forwardRef((e,r)=>{const n=Xm(t7,e.__scopeSelect),i=LP(t7,e.__scopeSelect),[s,a]=y.useState(!1),o=ai(r,i.onScrollButtonChange);return Xs(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=u.scrollTop>0;a(d)};const u=n.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?c.jsx(Ele,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=n;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null});Nle.displayName=t7;var r7="SelectScrollDownButton",Tle=y.forwardRef((e,r)=>{const n=Xm(r7,e.__scopeSelect),i=LP(r7,e.__scopeSelect),[s,a]=y.useState(!1),o=ai(r,i.onScrollButtonChange);return Xs(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=u.scrollHeight-u.clientHeight,h=Math.ceil(u.scrollTop)<d;a(h)};const u=n.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?c.jsx(Ele,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=n;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null});Tle.displayName=r7;var Ele=y.forwardRef((e,r)=>{const{__scopeSelect:n,onAutoScroll:i,...s}=e,a=Xm("SelectScrollButton",n),o=y.useRef(null),l=eN(n),u=y.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return y.useEffect(()=>()=>u(),[u]),Xs(()=>{var h;const d=l().find(f=>f.ref.current===document.activeElement);(h=d==null?void 0:d.ref.current)==null||h.scrollIntoView({block:"nearest"})},[l]),c.jsx(Oc.div,{"aria-hidden":!0,...s,ref:r,style:{flexShrink:0,...s.style},onPointerDown:fr(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(i,50))}),onPointerMove:fr(s.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),o.current===null&&(o.current=window.setInterval(i,50))}),onPointerLeave:fr(s.onPointerLeave,()=>{u()})})}),Cet="SelectSeparator",Ale=y.forwardRef((e,r)=>{const{__scopeSelect:n,...i}=e;return c.jsx(Oc.div,{"aria-hidden":!0,...i,ref:r})});Ale.displayName=Cet;var n7="SelectArrow",jet=y.forwardRef((e,r)=>{const{__scopeSelect:n,...i}=e,s=tN(n),a=Ym(n7,n),o=Xm(n7,n);return a.open&&o.position==="popper"?c.jsx(gR,{...s,...i,ref:r}):null});jet.displayName=n7;var Net="SelectBubbleInput",Ole=y.forwardRef(({__scopeSelect:e,value:r,...n},i)=>{const s=y.useRef(null),a=ai(i,s),o=sle(r);return y.useEffect(()=>{const l=s.current;if(!l)return;const u=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(o!==r&&h){const f=new Event("change",{bubbles:!0});h.call(l,r),l.dispatchEvent(f)}},[o,r]),c.jsx(Oc.select,{...n,style:{...ale,...n.style},ref:a,defaultValue:r})});Ole.displayName=Net;function Mle(e){return e===""||e===void 0}function Rle(e){const r=Cd(e),n=y.useRef(""),i=y.useRef(0),s=y.useCallback(o=>{const l=n.current+o;r(l),(function u(d){n.current=d,window.clearTimeout(i.current),d!==""&&(i.current=window.setTimeout(()=>u(""),1e3))})(l)},[r]),a=y.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,s,a]}function Ple(e,r,n){const s=r.length>1&&Array.from(r).every(d=>d===r[0])?r[0]:r,a=n?e.indexOf(n):-1;let o=Tet(e,Math.max(a,0));s.length===1&&(o=o.filter(d=>d!==n));const u=o.find(d=>d.textValue.toLowerCase().startsWith(s.toLowerCase()));return u!==n?u:void 0}function Tet(e,r){return e.map((n,i)=>e[(r+i)%e.length])}var Eet=ole,Lle=cle,Aet=dle,Oet=hle,Met=fle,$le=ple,Ret=xle,Dle=_le,Ile=Sle,Pet=kle,Let=jle,Ble=Nle,zle=Tle,Fle=Ale;const Sd=Eet,kd=Aet,_u=y.forwardRef(({className:e,children:r,...n},i)=>c.jsxs(Lle,{ref:i,className:Ce("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-lg border border-input bg-background/90 px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring/60 focus:ring-offset-2 focus:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[r,c.jsx(Oet,{asChild:!0,children:c.jsx(nl,{className:"h-4 w-4 opacity-50"})})]}));_u.displayName=Lle.displayName;const Hle=y.forwardRef(({className:e,...r},n)=>c.jsx(Ble,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...r,children:c.jsx(XM,{className:"h-4 w-4"})}));Hle.displayName=Ble.displayName;const Wle=y.forwardRef(({className:e,...r},n)=>c.jsx(zle,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...r,children:c.jsx(nl,{className:"h-4 w-4"})}));Wle.displayName=zle.displayName;const wu=y.forwardRef(({className:e,children:r,position:n="popper",...i},s)=>c.jsx(Met,{children:c.jsxs($le,{ref:s,className:Ce("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border border-border/70 bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...i,children:[c.jsx(Hle,{}),c.jsx(Ret,{className:Ce("p-1",n==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),c.jsx(Wle,{})]})}));wu.displayName=$le.displayName;const $et=y.forwardRef(({className:e,...r},n)=>c.jsx(Dle,{ref:n,className:Ce("px-2 py-1.5 text-sm font-semibold",e),...r}));$et.displayName=Dle.displayName;const Ls=y.forwardRef(({className:e,children:r,...n},i)=>c.jsxs(Ile,{ref:i,className:Ce("relative flex w-full cursor-default select-none items-center rounded-md py-2 pl-2.5 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[c.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(Let,{children:c.jsx(ls,{className:"h-4 w-4"})})}),c.jsx(Pet,{children:r})]}));Ls.displayName=Ile.displayName;const Det=y.forwardRef(({className:e,...r},n)=>c.jsx(Fle,{ref:n,className:Ce("-mx-1 my-1 h-px bg-muted",e),...r}));Det.displayName=Fle.displayName;function Iet(){return typeof window>"u"?!1:!!window.jaitDesktop||!!window.Capacitor}function Bet(){return!1}function Yu(e,r){const n=new Headers(r==null?void 0:r.headers),i={...r,headers:n};if(Iet()){const s=Nf();s&&!n.has("Authorization")&&n.set("Authorization",`Bearer ${s}`)}else Bet()&&(i.credentials="include");return fetch(e,i)}const Xu=Nn();async function Ju(e){const r=await e.json().catch(()=>({}));if(!e.ok)throw new Error(r.error||`Request failed (${e.status})`);return r}const du={async config(){const e=await Yu(`${Xu}/api/email/config`);return(await Ju(e)).providers},async saveAppCredentials(e,r,n){const i=await Yu(`${Xu}/api/email/config/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:r,clientSecret:n})});await Ju(i)},async accounts(){const e=await Yu(`${Xu}/api/email/accounts`);return(await Ju(e)).accounts},async connectUrl(e){const r=await Yu(`${Xu}/api/email/connect/${e}`);return(await Ju(r)).authUrl},async disconnect(e){const r=await Yu(`${Xu}/api/email/accounts/${e}`,{method:"DELETE"});await Ju(r)},async listMessages(e={}){const r=new URLSearchParams;e.accountId&&r.set("accountId",e.accountId),e.folder&&r.set("folder",e.folder),e.q&&r.set("q",e.q),e.limit&&r.set("limit",String(e.limit));const n=await Yu(`${Xu}/api/email/messages?${r.toString()}`);return Ju(n)},async getMessage(e,r){const n=new URLSearchParams;r&&n.set("accountId",r);const i=await Yu(`${Xu}/api/email/messages/${encodeURIComponent(e)}?${n.toString()}`);return(await Ju(i)).message},async send(e){const r=await Yu(`${Xu}/api/email/send`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});await Ju(r)},async tag(e,r){const n=await Yu(`${Xu}/api/email/messages/${encodeURIComponent(e)}/tag`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});await Ju(n)},async remove(e,r){const n=await Yu(`${Xu}/api/email/messages/${encodeURIComponent(e)}/delete`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accountId:r})});await Ju(n)},async folders(e){const r=new URLSearchParams;e&&r.set("accountId",e);const n=await Yu(`${Xu}/api/email/folders?${r.toString()}`);return(await Ju(n)).folders}},zet={gmail:"Gmail",outlook:"Outlook"};function rU(e){const r=e.match(/^\s*"?([^"<]+?)"?\s*<.*>$/);return(r?r[1]:e).trim()||e}function Fet(e){const r=new Date(e);if(Number.isNaN(r.getTime()))return e;const n=new Date;return r.toDateString()===n.toDateString()?r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):r.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Het({isMobile:e=!1}){const[r,n]=y.useState(null),[i,s]=y.useState({gmail:!1,outlook:!1}),[a,o]=y.useState(null),[l,u]=y.useState([]),[d,h]=y.useState("inbox"),[f,m]=y.useState([]),[x,v]=y.useState(null),[_,w]=y.useState(null),[S,C]=y.useState(""),[j,T]=y.useState(!1),[E,N]=y.useState(!1),[M,$]=y.useState(null),[q,F]=y.useState(null),[B,W]=y.useState(!1),D=y.useMemo(()=>(r==null?void 0:r.find(z=>z.id===a))??(r==null?void 0:r[0])??null,[r,a]),O=y.useCallback(async()=>{try{const[z,ee]=await Promise.all([du.accounts(),du.config()]);n(z),s(ee),z.length>0&&o(X=>X??z[0].id)}catch(z){Xr.error(z instanceof Error?z.message:"Failed to load email accounts"),n([])}},[]);y.useEffect(()=>{O()},[O]);const I=y.useCallback(async(z,ee,X)=>{T(!0);try{const Q=await du.listMessages({accountId:z,folder:ee,q:X||void 0,limit:30});m(Q.messages)}catch(Q){Xr.error(Q instanceof Error?Q.message:"Failed to load messages"),m([])}finally{T(!1)}},[]);y.useEffect(()=>{D&&du.folders(D.id).then(u).catch(()=>u([]))},[D]),y.useEffect(()=>{D&&I(D.id,d,S)},[D,d]);const R=y.useCallback(async z=>{$(z);try{const ee=await du.connectUrl(z),X=window.open(ee,"jait-email-oauth","width=520,height=680"),Q=re=>{var le;if(((le=re.data)==null?void 0:le.type)==="jait-email-oauth"){window.removeEventListener("message",Q),$(null),re.data.ok&&(Xr.success("Mailbox connected"),O());try{X==null||X.close()}catch{}}};window.addEventListener("message",Q);const ie=setInterval(()=>{X!=null&&X.closed&&(clearInterval(ie),window.removeEventListener("message",Q),$(null),O())},1e3)}catch(ee){Xr.error(ee instanceof Error?ee.message:"Failed to start connection"),$(null)}},[O]),P=y.useCallback(async(z,ee)=>{const X=ee??(D==null?void 0:D.id);if(X){v(z),N(!0);try{const Q=await du.getMessage(z,X);w(Q),m(ie=>ie.map(re=>re.id===z?{...re,unread:!1}:re))}catch(Q){Xr.error(Q instanceof Error?Q.message:"Failed to open message")}finally{N(!1)}}},[D]),H=y.useCallback(async z=>{if(!D)return;const ee=z.labels.some(X=>X.toLowerCase()==="starred");try{await du.tag(z.id,{accountId:D.id,add:ee?[]:["STARRED"],remove:ee?["STARRED"]:[]});const X=Q=>Q.id===z.id?{...Q,labels:ee?Q.labels.filter(ie=>ie.toLowerCase()!=="starred"):[...Q.labels,"STARRED"]}:Q;m(Q=>Q.map(X)),(_==null?void 0:_.id)===z.id&&w({..._,labels:X(_).labels})}catch(X){Xr.error(X instanceof Error?X.message:"Failed to update star")}},[D,_]),G=y.useCallback(async z=>{if(D)try{await du.remove(z,D.id),m(ee=>ee.filter(X=>X.id!==z)),x===z&&(v(null),w(null)),Xr.success("Moved to trash")}catch(ee){Xr.error(ee instanceof Error?ee.message:"Failed to delete")}},[D,x]),U=y.useCallback(async()=>{if(!(!D||!q)){W(!0);try{await du.send({accountId:D.id,to:q.to,subject:q.subject,body:q.body,replyToMessageId:q.replyToMessageId}),Xr.success("Email sent"),F(null)}catch(z){Xr.error(z instanceof Error?z.message:"Failed to send")}finally{W(!1)}}},[D,q]);y.useEffect(()=>{const z=ee=>{const X=ee.detail;if(!X)return;X.accountId&&X.accountId!==a&&o(X.accountId);const Q=X.accountId??(D==null?void 0:D.id);switch(X.action){case"navigate":X.folder&&(h(X.folder),v(null),w(null));break;case"open":X.messageId&&P(X.messageId,Q);break;case"compose":F({to:X.to??"",subject:X.subject??"",body:X.body??"",replyToMessageId:X.replyToMessageId});break;case"refresh":Q&&I(Q,d,S);break}};return window.addEventListener("jait:email-control",z),()=>window.removeEventListener("jait:email-control",z)},[D,a,d,S,P,I]);const V=y.useCallback(z=>{F({to:z.from,subject:z.subject.startsWith("Re:")?z.subject:`Re: ${z.subject}`,body:"",replyToMessageId:z.id})},[]);if(r===null)return c.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:c.jsx(Ot,{className:"h-5 w-5 animate-spin"})});if(r.length===0)return c.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-6 p-8 text-center",children:[c.jsx("div",{className:"rounded-full bg-muted p-5",children:c.jsx(Wg,{className:"h-10 w-10 text-muted-foreground"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-xl font-semibold",children:"Connect your email"}),c.jsx("p",{className:"mt-1 max-w-md text-sm text-muted-foreground",children:"Connect a Gmail or Outlook account to read, send, tag, and organize mail here — and let your agents do it too."})]}),c.jsx("div",{className:"flex flex-col gap-3 sm:flex-row",children:["gmail","outlook"].map(z=>c.jsxs(ge,{size:"lg",disabled:!i[z]||M!==null,onClick:()=>R(z),className:"min-w-[200px]",children:[M===z?c.jsx(Ot,{className:"mr-2 h-4 w-4 animate-spin"}):c.jsx(Wg,{className:"mr-2 h-4 w-4"}),"Connect ",zet[z]]},z))}),(!i.gmail||!i.outlook)&&c.jsx("p",{className:"max-w-md text-xs text-muted-foreground",children:!i.gmail&&!i.outlook?"No provider is configured yet. Add OAuth client credentials via the GMAIL_OAUTH_CLIENT_ID / OUTLOOK_OAUTH_CLIENT_ID env vars (and secrets), then reload.":`${i.gmail?"Outlook":"Gmail"} needs OAuth credentials before it can be connected.`})]});const J=!e||x!==null;return c.jsxs("div",{className:"flex h-full min-h-0",children:[!e&&c.jsxs("aside",{className:"flex w-52 shrink-0 flex-col border-r",children:[c.jsx("div",{className:"p-3",children:c.jsxs(ge,{className:"w-full justify-start gap-2",onClick:()=>F({to:"",subject:"",body:""}),children:[c.jsx(L_,{className:"h-4 w-4"})," Compose"]})}),c.jsx("div",{className:"px-3 pb-2",children:c.jsxs(Sd,{value:D==null?void 0:D.id,onValueChange:z=>{o(z),v(null),w(null)},children:[c.jsx(_u,{className:"h-8 text-xs",children:c.jsx(kd,{})}),c.jsx(wu,{children:r.map(z=>c.jsx(Ls,{value:z.id,className:"text-xs",children:z.email},z.id))})]})}),c.jsx("nav",{className:"flex-1 overflow-y-auto px-2",children:[{id:"inbox",name:"Inbox"},...l.filter(z=>z.name.toLowerCase()!=="inbox")].map(z=>c.jsxs("button",{onClick:()=>{h(z.id==="inbox"?"inbox":z.id),v(null),w(null)},className:Ce("flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-accent",(d===z.id||d==="inbox"&&z.id==="inbox")&&"bg-accent font-medium"),children:[z.id==="inbox"?c.jsx(_1e,{className:"h-4 w-4"}):c.jsx(Wg,{className:"h-4 w-4"}),c.jsx("span",{className:"truncate",children:z.name})]},z.id))})]}),(!e||x===null)&&c.jsxs("section",{className:Ce("flex min-h-0 flex-col border-r",e?"flex-1":"w-80 shrink-0"),children:[c.jsxs("div",{className:"flex items-center gap-2 border-b p-2",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(Ka,{className:"absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),c.jsx(jn,{value:S,onChange:z=>C(z.target.value),onKeyDown:z=>{z.key==="Enter"&&D&&I(D.id,d,S)},placeholder:"Search mail",className:"h-8 pl-7 text-sm"})]}),c.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",disabled:j,onClick:()=>D&&I(D.id,d,S),children:c.jsx(js,{className:Ce("h-4 w-4",j&&"animate-spin")})}),e&&c.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>F({to:"",subject:"",body:""}),children:c.jsx(L_,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[f.length===0&&!j&&c.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:"No messages"}),f.map(z=>c.jsxs("button",{onClick:()=>P(z.id),className:Ce("flex w-full flex-col gap-0.5 border-b px-3 py-2 text-left hover:bg-accent/50",x===z.id&&"bg-accent",z.unread&&"bg-primary/5"),children:[c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsx("span",{className:Ce("truncate text-sm",z.unread&&"font-semibold"),children:rU(z.from)}),c.jsx("span",{className:"shrink-0 text-[11px] text-muted-foreground",children:Fet(z.date)})]}),c.jsxs("div",{className:"flex items-center gap-1",children:[z.labels.some(ee=>ee.toLowerCase()==="starred")&&c.jsx(Q8,{className:"h-3 w-3 shrink-0 fill-yellow-400 text-yellow-400"}),c.jsx("span",{className:Ce("truncate text-xs",z.unread?"font-medium":"text-muted-foreground"),children:z.subject||"(no subject)"}),z.hasAttachments&&c.jsx(AY,{className:"ml-auto h-3 w-3 shrink-0 text-muted-foreground"})]}),c.jsx("span",{className:"truncate text-[11px] text-muted-foreground",children:z.snippet})]},z.id))]})]}),J&&c.jsx("section",{className:"flex min-h-0 flex-1 flex-col",children:E?c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsx(Ot,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):_?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-center gap-1 border-b p-2",children:[e&&c.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>{v(null),w(null)},children:c.jsx(K8,{className:"h-4 w-4"})}),c.jsxs(ge,{variant:"ghost",size:"sm",className:"gap-1.5",onClick:()=>V(_),children:[c.jsx(Sxe,{className:"h-4 w-4"})," Reply"]}),c.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>H(_),children:c.jsx(Q8,{className:Ce("h-4 w-4",_.labels.some(z=>z.toLowerCase()==="starred")&&"fill-yellow-400 text-yellow-400")})}),c.jsx(ge,{variant:"ghost",size:"icon",className:"ml-auto h-8 w-8 text-destructive",onClick:()=>G(_.id),children:c.jsx(Qo,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto p-4",children:[c.jsx("h1",{className:"text-lg font-semibold",children:_.subject||"(no subject)"}),c.jsxs("div",{className:"mt-2 text-sm",children:[c.jsx("div",{className:"font-medium",children:rU(_.from)}),c.jsx("div",{className:"text-xs text-muted-foreground",children:_.from}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:["To: ",_.to]}),_.cc&&c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Cc: ",_.cc]}),c.jsx("div",{className:"mt-0.5 text-xs text-muted-foreground",children:new Date(_.date).toLocaleString()})]}),_.labels.filter(z=>z.toLowerCase()!=="unread").length>0&&c.jsx("div",{className:"mt-2 flex flex-wrap gap-1",children:_.labels.filter(z=>!["unread","inbox"].includes(z.toLowerCase())).map(z=>c.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 text-[10px] uppercase tracking-wide text-muted-foreground",children:z},z))}),c.jsx("hr",{className:"my-3"}),_.bodyHtml?c.jsx("iframe",{title:"Email content",sandbox:"allow-popups allow-popups-to-escape-sandbox",className:"h-[60vh] w-full border-0 bg-white",srcDoc:`<!doctype html><html><head><meta charset="utf-8"><base target="_blank">
1342
1342
  <style>body{font-family:system-ui,Arial,sans-serif;margin:8px;color:#111;word-break:break-word}img{max-width:100%}</style>
1343
1343
  </head><body>${_.bodyHtml}</body></html>`}):c.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans text-sm",children:_.bodyText})]})]}):c.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 text-muted-foreground",children:[c.jsx(Wg,{className:"h-10 w-10"}),c.jsx("span",{className:"text-sm",children:"Select a message to read"})]})}),c.jsx(jo,{open:q!==null,onOpenChange:z=>{z||F(null)},children:c.jsxs(Ya,{className:"max-w-xl",children:[c.jsx(el,{children:c.jsx(Xa,{children:q!=null&&q.replyToMessageId?"Reply":"New message"})}),q&&c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsx(jn,{placeholder:"To",value:q.to,onChange:z=>F({...q,to:z.target.value})}),c.jsx(jn,{placeholder:"Subject",value:q.subject,onChange:z=>F({...q,subject:z.target.value})}),c.jsx(Th,{placeholder:"Write your message…",rows:10,value:q.body,onChange:z=>F({...q,body:z.target.value})})]}),c.jsxs(Zf,{children:[c.jsxs(ge,{variant:"ghost",onClick:()=>F(null),children:[c.jsx(Hn,{className:"mr-1.5 h-4 w-4"})," Discard"]}),c.jsxs(ge,{onClick:U,disabled:B||!(q!=null&&q.body),children:[B?c.jsx(Ot,{className:"mr-1.5 h-4 w-4 animate-spin"}):c.jsx(Oxe,{className:"mr-1.5 h-4 w-4"})," Send"]})]})]})})]})}const Fr=y.forwardRef(({className:e,...r},n)=>c.jsx("div",{ref:n,className:Ce("rounded-xl border border-border/70 bg-card text-card-foreground shadow-sm",e),...r}));Fr.displayName="Card";const Ule=y.forwardRef(({className:e,...r},n)=>c.jsx("div",{ref:n,className:Ce("flex flex-col space-y-1.5 p-6",e),...r}));Ule.displayName="CardHeader";const Vle=y.forwardRef(({className:e,...r},n)=>c.jsx("h3",{ref:n,className:Ce("font-semibold leading-none tracking-tight",e),...r}));Vle.displayName="CardTitle";const Wet=y.forwardRef(({className:e,...r},n)=>c.jsx("p",{ref:n,className:Ce("text-sm text-muted-foreground",e),...r}));Wet.displayName="CardDescription";const mc=y.forwardRef(({className:e,...r},n)=>c.jsx("div",{ref:n,className:Ce("p-6 pt-0",e),...r}));mc.displayName="CardContent";const Uet=y.forwardRef(({className:e,...r},n)=>c.jsx("div",{ref:n,className:Ce("flex items-center p-6 pt-0",e),...r}));Uet.displayName="CardFooter";function Vet(e,r=[]){let n=[];function i(a,o){const l=y.createContext(o),u=n.length;n=[...n,o];const d=f=>{var S;const{scope:m,children:x,...v}=f,_=((S=m==null?void 0:m[e])==null?void 0:S[u])||l,w=y.useMemo(()=>v,Object.values(v));return c.jsx(_.Provider,{value:w,children:x})};d.displayName=a+"Provider";function h(f,m){var _;const x=((_=m==null?void 0:m[e])==null?void 0:_[u])||l,v=y.useContext(x);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,h]}const s=()=>{const a=n.map(o=>y.createContext(o));return function(l){const u=(l==null?void 0:l[e])||a;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return s.scopeName=e,[i,qet(s,...r)]}function qet(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((l,{useScope:u,scopeName:d})=>{const f=u(a)[`__scope${d}`];return{...l,...f}},{});return y.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}function Get(e){const r=Ket(e),n=y.forwardRef((i,s)=>{const{children:a,...o}=i,l=y.Children.toArray(a),u=l.find(Xet);if(u){const d=u.props.children,h=l.map(f=>f===u?y.Children.count(d)>1?y.Children.only(null):y.isValidElement(d)?d.props.children:null:f);return c.jsx(r,{...o,ref:s,children:y.isValidElement(d)?y.cloneElement(d,void 0,h):null})}return c.jsx(r,{...o,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function Ket(e){const r=y.forwardRef((n,i)=>{const{children:s,...a}=n;if(y.isValidElement(s)){const o=Zet(s),l=Jet(a,s.props);return s.type!==y.Fragment&&(l.ref=i?Js(i,o):o),y.cloneElement(s,l)}return y.Children.count(s)>1?y.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Yet=Symbol("radix.slottable");function Xet(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yet}function Jet(e,r){const n={...r};for(const i in r){const s=e[i],a=r[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...l)=>{const u=a(...l);return s(...l),u}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function Zet(e){var i,s;let r=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=r&&"isReactWarning"in r&&r.isReactWarning;return n?e.ref:(r=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=r&&"isReactWarning"in r&&r.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qet=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qle=Qet.reduce((e,r)=>{const n=Get(`Primitive.${r}`),i=y.forwardRef((s,a)=>{const{asChild:o,...l}=s,u=o?n:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...l,ref:a})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{}),rN="Switch",[ett]=Vet(rN),[ttt,rtt]=ett(rN),Gle=y.forwardRef((e,r)=>{const{__scopeSwitch:n,name:i,checked:s,defaultChecked:a,required:o,disabled:l,value:u="on",onCheckedChange:d,form:h,...f}=e,[m,x]=y.useState(null),v=ai(r,j=>x(j)),_=y.useRef(!1),w=m?h||!!m.closest("form"):!0,[S,C]=Wf({prop:s,defaultProp:a??!1,onChange:d,caller:rN});return c.jsxs(ttt,{scope:n,checked:S,disabled:l,children:[c.jsx(qle.button,{type:"button",role:"switch","aria-checked":S,"aria-required":o,"data-state":Jle(S),"data-disabled":l?"":void 0,disabled:l,value:u,...f,ref:v,onClick:fr(e.onClick,j=>{C(T=>!T),w&&(_.current=j.isPropagationStopped(),_.current||j.stopPropagation())})}),w&&c.jsx(Xle,{control:m,bubbles:!_.current,name:i,value:u,checked:S,required:o,disabled:l,form:h,style:{transform:"translateX(-100%)"}})]})});Gle.displayName=rN;var Kle="SwitchThumb",Yle=y.forwardRef((e,r)=>{const{__scopeSwitch:n,...i}=e,s=rtt(Kle,n);return c.jsx(qle.span,{"data-state":Jle(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:r})});Yle.displayName=Kle;var ntt="SwitchBubbleInput",Xle=y.forwardRef(({__scopeSwitch:e,control:r,checked:n,bubbles:i=!0,...s},a)=>{const o=y.useRef(null),l=ai(o,a),u=sle(n),d=wX(r);return y.useEffect(()=>{const h=o.current;if(!h)return;const f=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(f,"checked").set;if(u!==n&&x){const v=new Event("click",{bubbles:i});x.call(h,n),h.dispatchEvent(v)}},[u,n,i]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:l,style:{...s.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Xle.displayName=ntt;function Jle(e){return e?"checked":"unchecked"}var Zle=Gle,itt=Yle;const Ah=y.forwardRef(({className:e,...r},n)=>c.jsx(Zle,{className:Ce("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...r,ref:n,children:c.jsx(itt,{className:Ce("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Ah.displayName=Zle.displayName;const i7=[{label:"Every minute",value:"* * * * *",description:"Runs every minute"},{label:"Every 5 minutes",value:"*/5 * * * *",description:"Runs every 5 minutes"},{label:"Every 15 minutes",value:"*/15 * * * *",description:"Runs every 15 minutes"},{label:"Every 30 minutes",value:"*/30 * * * *",description:"Runs every 30 minutes"},{label:"Hourly",value:"0 * * * *",description:"Runs at the start of every hour"},{label:"Every 2 hours",value:"0 */2 * * *",description:"Runs every 2 hours"},{label:"Daily at midnight",value:"0 0 * * *",description:"Runs at 00:00 every day"},{label:"Daily at 9am",value:"0 9 * * *",description:"Runs at 09:00 every day"},{label:"Daily at 6pm",value:"0 18 * * *",description:"Runs at 18:00 every day"},{label:"Weekly (Sunday)",value:"0 0 * * 0",description:"Runs at midnight every Sunday"},{label:"Weekly (Monday)",value:"0 9 * * 1",description:"Runs at 9am every Monday"},{label:"Monthly",value:"0 0 1 * *",description:"Runs at midnight on the 1st of each month"}];function nN(e){return e.trim().split(/\s+/).join(" ")}function bc(e){if(!/^\d+$/.test(e))return null;const r=Number.parseInt(e,10);return Number.isNaN(r)?null:r}function Qle(e){const r=nN(e),n=r.split(" ");if(n.length!==5)return r;const[i,s,a,o,l]=n,u=i7.find(h=>h.value===r);if(u)return u.description;const d=[];if(i==="*"&&s==="*"?d.push("Every minute"):i.startsWith("*/")?d.push(`Every ${i.slice(2)} minutes`):s==="*"?d.push(`At minute ${i} of every hour`):i==="0"?d.push(`At ${s}:00`):d.push(`At ${s}:${i.padStart(2,"0")}`),l!=="*"){const h=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=bc(l);f!==null&&f>=0&&f<=6&&d.push(`on ${h[f]}`)}if(a!=="*"&&d.push(`on day ${a}`),o!=="*"){const h=["","January","February","March","April","May","June","July","August","September","October","November","December"],f=bc(o);f!==null&&f>=1&&f<=12&&d.push(`in ${h[f]}`)}return d.join(" ")}function ece(e){const r=nN(e).split(" ");if(r.length!==5)return{valid:!1,error:"Cron expression must have 5 parts (minute hour day month weekday)"};const[n,i,s,a,o]=r,l=[{name:"minute",value:n,min:0,max:59},{name:"hour",value:i,min:0,max:23},{name:"day",value:s,min:1,max:31},{name:"month",value:a,min:1,max:12},{name:"weekday",value:o,min:0,max:6}];for(const u of l)if(!stt(u.value,u.min,u.max))return{valid:!1,error:`Invalid ${u.name}: ${u.value}`};return{valid:!0}}function stt(e,r,n){if(e==="*")return!0;if(e.startsWith("*/")){const s=bc(e.slice(2));return s!==null&&s>0&&s<=n}if(e.includes("-")){const s=e.split("-");if(s.length!==2)return!1;const a=bc(s[0]??""),o=bc(s[1]??"");return a!==null&&o!==null&&a>=r&&o<=n&&a<=o}if(e.includes(","))return e.split(",").every(s=>{const a=bc(s);return a!==null&&a>=r&&a<=n});const i=bc(e);return i!==null&&i>=r&&i<=n}function att(e){try{if(!ece(e).valid)return null;const r=new Date,n=nN(e).split(" "),[i,s]=n;if(i==="*"&&s==="*"){const a=new Date(r);return a.setMinutes(r.getMinutes()+1,0,0),a}if(i.startsWith("*/")){const a=bc(i.slice(2));if(a===null||a<=0)return null;const o=new Date(r),l=Math.ceil(r.getMinutes()/a)*a;return l>=60?(o.setHours(o.getHours()+1),o.setMinutes(l%60)):o.setMinutes(l),o.setSeconds(0),o.setMilliseconds(0),o<=r&&o.setMinutes(o.getMinutes()+a),o}if(i!=="*"&&s==="*"){const a=bc(i);if(a===null)return null;const o=new Date(r);return o.setMinutes(a,0,0),o<=r&&o.setHours(o.getHours()+1),o}if(i!=="*"&&s.startsWith("*/")){const a=bc(i),o=bc(s.slice(2));if(a===null||o===null||o<=0)return null;const l=new Date(r);l.setMinutes(a,0,0);const u=r.getHours(),d=u%o;let h=d===0?u:u+(o-d);return l.setHours(h),l<=r&&(h+=o,l.setHours(h)),l}if(i!=="*"&&s!=="*"){const a=bc(i),o=bc(s);if(a===null||o===null)return null;const l=new Date(r);return l.setHours(o),l.setMinutes(a),l.setSeconds(0),l.setMilliseconds(0),l<=r&&l.setDate(l.getDate()+1),l}return null}catch{return null}}function ott(e){const r=new Date,n=e.getTime()-r.getTime();if(n<6e4)return"now";const i=Math.floor(n/6e4);if(i<60)return`in ${i}m`;const s=Math.floor(n/36e5);return s<24?`in ${s}h`:`in ${Math.floor(n/864e5)}d`}function ltt({job:e,recentRun:r,onToggle:n,onTrigger:i,onDelete:s,onEdit:a,onViewHistory:o,isLoading:l=!1}){const[u,d]=y.useState(!1),[h,f]=y.useState(!1),m=async w=>{d(!0);try{await n(e.id,w)}finally{d(!1)}},x=async()=>{f(!0);try{await i(e.id)}finally{f(!1)}},v=e.enabled?att(e.cron_expression):null,_={agent_task:"Agent Task",system_job:"System Job"};return c.jsxs(Fr,{"data-testid":`job-card-${e.id}`,className:Ce("transition-opacity",l&&"opacity-50",!e.enabled&&"opacity-75"),children:[c.jsx(Ule,{className:"space-y-3 pb-3",children:c.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between",children:[c.jsxs("div",{className:"flex min-w-0 items-start gap-3",children:[e.job_type==="agent_task"&&e.model&&e.provider&&c.jsx(dj,{provider:e.provider,model:e.model,size:32}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx(Vle,{className:"truncate text-base md:text-lg",children:e.name}),c.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[c.jsx(Mr,{variant:e.job_type==="agent_task"?"default":"secondary",children:_[e.job_type]}),e.provider&&c.jsx(Mr,{variant:"outline",className:"text-xs",children:e.provider})]})]})]}),c.jsxs("div",{className:"flex items-center justify-between rounded-md border bg-muted/20 px-3 py-2 md:min-w-[92px] md:justify-end md:border-0 md:bg-transparent md:p-0",children:[c.jsx("span",{className:"text-xs text-muted-foreground md:hidden",children:e.enabled?"Enabled":"Paused"}),c.jsx(Ah,{checked:e.enabled,onCheckedChange:m,disabled:u})]})]})}),c.jsxs(mc,{className:"space-y-3 pt-0",children:[c.jsxs("div",{className:"flex flex-col gap-1 text-sm text-muted-foreground md:flex-row md:items-center md:gap-2",children:[c.jsx(Wm,{className:"h-4 w-4"}),c.jsx("span",{className:"break-all font-mono",children:e.cron_expression}),c.jsxs("span",{className:"text-xs md:text-xs",children:["(",Qle(e.cron_expression),")"]})]}),v&&c.jsxs("div",{className:"text-sm text-muted-foreground",children:["Next run: ",v.toLocaleString()," (",ott(v),")"]}),e.prompt&&c.jsxs("div",{className:"line-clamp-2 text-sm italic text-muted-foreground",children:['"',e.prompt,'"']}),r&&c.jsxs("div",{className:"flex flex-col gap-1 text-sm md:flex-row md:items-center md:gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[r.status==="completed"&&c.jsxs(c.Fragment,{children:[c.jsx(Ts,{className:"h-4 w-4 text-green-500"}),c.jsx("span",{className:"text-green-600 dark:text-green-400",children:"Last run succeeded"})]}),r.status==="failed"&&c.jsxs(c.Fragment,{children:[c.jsx(Is,{className:"h-4 w-4 text-red-500"}),c.jsx("span",{className:"text-red-600 dark:text-red-400",children:"Last run failed"})]}),r.status==="running"&&c.jsxs(c.Fragment,{children:[c.jsx(Ot,{className:"h-4 w-4 animate-spin text-blue-500"}),c.jsx("span",{className:"text-blue-600 dark:text-blue-400",children:"Running now..."})]})]}),r.started_at&&c.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(r.started_at).toLocaleString()})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 border-t pt-3 md:grid-cols-[minmax(0,1fr)_auto_auto_auto] md:items-center",children:[c.jsxs(ge,{variant:"outline",size:"sm",onClick:x,disabled:h||!e.enabled,"data-testid":`job-trigger-${e.id}`,className:"w-full md:justify-self-start",children:[h?c.jsx(Ot,{className:"h-4 w-4 mr-1 animate-spin"}):c.jsx(Gw,{className:"h-4 w-4 mr-1"}),"Run Now"]}),c.jsxs(ge,{variant:"ghost",size:"sm",onClick:()=>o(e),"data-testid":`job-history-${e.id}`,className:"w-full md:w-auto",children:[c.jsx(Q3,{className:"h-4 w-4 mr-1"}),c.jsx("span",{className:"md:hidden lg:inline",children:"History"})]}),c.jsx(ge,{variant:"ghost",size:"icon",onClick:()=>a(e),"aria-label":`Edit job ${e.name}`,"data-testid":`job-edit-${e.id}`,className:"h-8 w-full md:w-8",children:c.jsx(qxe,{className:"h-4 w-4"})}),c.jsx(ge,{variant:"ghost",size:"icon",onClick:()=>s(e.id),className:"h-8 w-full text-destructive hover:bg-destructive/10 hover:text-destructive md:w-8","aria-label":`Delete job ${e.name}`,"data-testid":`job-delete-${e.id}`,children:c.jsx(Qo,{className:"h-4 w-4"})})]})]})]})}const em=Nn();class $P{getToken(){return Nf()}getHeaders(r=!1){const n={};r&&(n["Content-Type"]="application/json");const i=this.getToken();return i&&(n.Authorization=`Bearer ${i}`),n}async listJobsPage(r=1,n=20,i=!0){const s=new URLSearchParams({page:r.toString(),size:n.toString(),include_disabled:i.toString()}),a=await fetch(`${em}/api/jobs?${s}`,{headers:this.getHeaders()});if(!a.ok)throw new Error(`Failed to list jobs: ${a.statusText}`);const o=await a.json();if(Array.isArray(o))return{items:o,total:o.length,page:1,size:o.length};const l=o&&typeof o=="object"?o:{},u=Array.isArray(l.items)?l.items:[],d=typeof l.total=="number"?l.total:u.length,h=typeof l.page=="number"?l.page:r,f=typeof l.size=="number"?l.size:n;return{items:u,total:d,page:h,size:f}}async listJobs(r=1,n=100,i=!0){return(await this.listJobsPage(r,n,i)).items}async getJob(r){const n=await fetch(`${em}/api/jobs/${r}`,{headers:this.getHeaders()});if(!n.ok)throw new Error(`Failed to get job: ${n.statusText}`);return n.json()}async createJob(r){const n=await fetch(`${em}/api/jobs`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(r)});if(!n.ok){const i=await n.json().catch(()=>({detail:n.statusText}));throw new Error(i.detail||"Failed to create job")}return n.json()}async updateJob(r,n){const i=await fetch(`${em}/api/jobs/${r}`,{method:"PATCH",headers:this.getHeaders(!0),body:JSON.stringify(n)});if(!i.ok){const s=await i.json().catch(()=>({detail:i.statusText}));throw new Error(s.detail||"Failed to update job")}return i.json()}async deleteJob(r){const n=await fetch(`${em}/api/jobs/${r}`,{method:"DELETE",headers:this.getHeaders()});if(!n.ok)throw new Error(`Failed to delete job: ${n.statusText}`)}async triggerJob(r){const n=await fetch(`${em}/api/jobs/${r}/trigger`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify({})});if(!n.ok){const i=await n.json().catch(()=>({detail:n.statusText}));throw new Error(i.detail||`Failed to trigger job: ${n.statusText}`)}return n.json()}async getJobRuns(r,n=20,i=1){const s=new URLSearchParams({page:i.toString(),size:n.toString()}),a=await fetch(`${em}/api/jobs/${r}/runs?${s}`,{headers:this.getHeaders()});if(!a.ok)throw new Error(`Failed to get job runs: ${a.statusText}`);const o=await a.json();return Array.isArray(o)?o:o.items??[]}async getAvailableProviders(){const r=await fetch(`${em}/api/jobs/providers/available`,{headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to get providers: ${r.statusText}`);const n=await r.json();return n.providers&&!Array.isArray(n.providers)?n.providers:n}}const LC=new $P;function ctt({isOpen:e,onClose:r,onCreated:n,editJob:i,onUpdated:s}){const[a,o]=y.useState(!1),[l,u]=y.useState(null),[d,h]=y.useState({}),[f,m]=y.useState(""),[x,v]=y.useState("agent_task"),[_,w]=y.useState("0 * * * *"),[S,C]=y.useState(""),[j,T]=y.useState(!1),[E,N]=y.useState(!0),[M,$]=y.useState(""),[q,F]=y.useState(""),[B,W]=y.useState(""),[D,O]=y.useState(""),[I,R]=y.useState("");y.useEffect(()=>{LC.getAvailableProviders().then(h).catch(console.error)},[]);const P=V=>{if(m(V.name),v(V.job_type),w(V.cron_expression),N(V.enabled),$(V.provider||""),F(V.model||""),W(V.prompt||""),V.job_type==="system_job"){const ee=V.payload&&typeof V.payload=="object"?V.payload:void 0,X=typeof(ee==null?void 0:ee.command)=="string"?ee.command:void 0,Q=typeof V.tool_name=="string"?V.tool_name:"";O(X||Q);const ie=ee==null?void 0:ee.args;if(ie&&typeof ie=="object")try{R(JSON.stringify(ie,null,2))}catch{R("")}else R("")}else R(""),O("");const J=(V.cron_expression||"").trim(),z=i7.some(ee=>ee.value===J);T(!z),C(z?"":J)};y.useEffect(()=>{if(i){P(i);let V=!1;return LC.getJob(i.id).then(J=>{V||P(J)}).catch(()=>{}),()=>{V=!0}}else m(""),v("agent_task"),w("0 * * * *"),C(""),T(!1),N(!0),$(""),F(""),W(""),O(""),R("")},[i,e]);const H=j?S:_,G=ece(H),U=async V=>{if(V.preventDefault(),u(null),!G.valid){u(G.error||"Invalid cron expression");return}const J=nN(H),z={name:f,job_type:x,cron_expression:J,enabled:E};if(x==="agent_task"){if(!M||!q||!B){u("Provider, model, and prompt are required for agent tasks");return}z.provider=M,z.model=q,z.prompt=B}else{if(!D){u("Command is required for system jobs");return}const ee={command:D};if(I)try{ee.args=JSON.parse(I)}catch{u("Args must be valid JSON");return}z.payload=ee}o(!0);try{if(i){const ee=await LC.updateJob(i.id,z);s==null||s(ee)}else{const ee=await LC.createJob(z);n(ee)}r()}catch(ee){u(ee instanceof Error?ee.message:"Failed to save job")}finally{o(!1)}};return e?c.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center bg-black/50 sm:items-center",children:c.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"create-job-dialog-title","data-testid":"create-job-dialog",className:"h-[92dvh] w-full overflow-y-auto border border-border bg-background text-foreground shadow-xl sm:h-auto sm:max-h-[90vh] sm:max-w-2xl sm:rounded-lg",children:[c.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3 sm:p-4",children:[c.jsx("h2",{id:"create-job-dialog-title",className:"text-lg font-semibold sm:text-xl",children:i?"Edit Job":"Create New Job"}),c.jsx(ge,{variant:"ghost",size:"sm",onClick:r,"aria-label":"Close dialog",children:c.jsx(Hn,{className:"h-5 w-5"})})]}),c.jsxs("form",{onSubmit:U,className:"space-y-5 p-4 sm:space-y-6",children:[c.jsxs(mx,{value:x,onValueChange:V=>v(V),children:[c.jsxs(R0,{className:"grid h-auto w-full grid-cols-2",children:[c.jsx(ma,{value:"agent_task",children:"Agent Task"}),c.jsx(ma,{value:"system_job",children:"System Job"})]}),c.jsxs(Gs,{value:"agent_task",className:"space-y-4 mt-4",children:[c.jsxs("div",{children:[c.jsx(wi,{htmlFor:"provider",children:"Provider"}),c.jsxs(Sd,{value:M,onValueChange:V=>{$(V),F("")},children:[c.jsx(_u,{"data-testid":"provider-select",children:c.jsx(kd,{placeholder:"Select provider"})}),c.jsx(wu,{children:Object.entries(d).map(([V,J])=>c.jsx(Ls,{value:V,children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(dj,{provider:V,size:20}),c.jsx("span",{children:J.name})]})},V))})]})]}),M&&d[M]&&c.jsxs("div",{children:[c.jsx(wi,{htmlFor:"model",children:"Model"}),c.jsxs(Sd,{value:q,onValueChange:F,children:[c.jsx(_u,{"data-testid":"model-select",children:c.jsx(kd,{placeholder:"Select model"})}),c.jsx(wu,{children:d[M].models.map(V=>c.jsx(Ls,{value:V,children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(dj,{provider:M,model:V,size:20}),c.jsx("span",{children:V})]})},V))})]})]}),c.jsxs("div",{children:[c.jsx(wi,{htmlFor:"prompt",children:"Prompt"}),c.jsx(Th,{id:"prompt",value:B,onChange:V=>W(V.target.value),placeholder:"What should the agent do?",rows:4})]})]}),c.jsxs(Gs,{value:"system_job",className:"space-y-4 mt-4",children:[c.jsxs("div",{children:[c.jsx(wi,{htmlFor:"command",children:"Command"}),c.jsx(jn,{id:"command",value:D,onChange:V=>O(V.target.value),placeholder:"e.g., cleanup_old_files"})]}),c.jsxs("div",{children:[c.jsx(wi,{htmlFor:"args",children:"Arguments (JSON)"}),c.jsx(Th,{id:"args",value:I,onChange:V=>R(V.target.value),placeholder:'{"days": 30}',rows:3})]})]})]}),c.jsxs("div",{className:"border-t pt-4 space-y-4",children:[c.jsxs("div",{children:[c.jsx(wi,{htmlFor:"name",children:"Job Name"}),c.jsx(jn,{id:"name",value:f,onChange:V=>m(V.target.value),placeholder:"My scheduled job",required:!0})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"mb-2 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[c.jsx(wi,{children:"Schedule"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(wi,{htmlFor:"custom-schedule",className:"text-sm text-muted-foreground",children:"Custom"}),c.jsx(Ah,{id:"custom-schedule",checked:j,onCheckedChange:T})]})]}),j?c.jsxs("div",{children:[c.jsx(jn,{value:S,onChange:V=>C(V.target.value),placeholder:"* * * * *",className:G.valid?"":"border-red-500"}),S&&c.jsx("p",{className:`text-sm mt-1 ${G.valid?"text-muted-foreground":"text-red-500"}`,children:G.valid?Qle(S):G.error})]}):c.jsxs(Sd,{value:_,onValueChange:w,children:[c.jsx(_u,{"data-testid":"schedule-select",children:c.jsx(kd,{})}),c.jsx(wu,{children:i7.map(V=>c.jsx(Ls,{value:V.value,children:c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{children:V.label}),c.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:V.value})]})},V.value))})]})]}),c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsxs("div",{children:[c.jsx(wi,{htmlFor:"enabled",children:"Enabled"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Job will run according to schedule"})]}),c.jsx(Ah,{id:"enabled",checked:E,onCheckedChange:N})]})]}),l&&c.jsxs("div",{className:"flex items-center gap-2 text-destructive text-sm bg-destructive/10 p-3 rounded-md",children:[c.jsx(Is,{className:"h-4 w-4"}),l]}),c.jsxs("div",{className:"grid grid-cols-1 gap-3 border-t pt-4 sm:flex sm:justify-end",children:[c.jsx(ge,{type:"button",variant:"outline",onClick:r,className:"w-full sm:w-auto",children:"Cancel"}),c.jsxs(ge,{type:"submit",disabled:a,className:"w-full sm:w-auto",children:[a&&c.jsx(Ot,{className:"h-4 w-4 mr-2 animate-spin"}),i?"Save Changes":"Create Job"]})]})]})]})}):null}const utt=new $P;function dtt({job:e,isOpen:r,onClose:n}){const[i,s]=y.useState([]),[a,o]=y.useState(!1),[l,u]=y.useState(null),d=async()=>{if(e){o(!0),u(null);try{const x=await utt.getJobRuns(e.id,50);s(x)}catch(x){u(x instanceof Error?x.message:"Failed to load history")}finally{o(!1)}}};if(y.useEffect(()=>{r&&e&&d()},[r,e==null?void 0:e.id]),!r||!e)return null;const h=x=>{switch(x){case"completed":return c.jsx(Ts,{className:"h-4 w-4 text-green-500"});case"failed":return c.jsx(Is,{className:"h-4 w-4 text-red-500"});case"running":return c.jsx(Ot,{className:"h-4 w-4 text-blue-500 animate-spin"});case"pending":return c.jsx(Wm,{className:"h-4 w-4 text-yellow-500"});default:return null}},f=x=>{const v={completed:"default",failed:"destructive",running:"secondary",pending:"outline"};return c.jsx(Mr,{variant:v[x]||"outline",children:x})},m=(x,v)=>{if(!v)return"—";const _=new Date(x),S=new Date(v).getTime()-_.getTime();return S<1e3?`${S}ms`:S<6e4?`${(S/1e3).toFixed(1)}s`:`${(S/6e4).toFixed(1)}m`};return c.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center bg-black/50 sm:items-center",children:c.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"job-history-dialog-title","data-testid":"job-history-dialog",className:"flex h-[92dvh] w-full flex-col overflow-hidden border border-border bg-background text-foreground shadow-xl sm:h-auto sm:max-h-[90vh] sm:max-w-3xl sm:rounded-lg",children:[c.jsxs("div",{className:"flex items-start justify-between gap-3 border-b px-4 py-3 sm:p-4",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("h2",{id:"job-history-dialog-title",className:"text-lg font-semibold sm:text-xl",children:"Job History"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:e.name})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ge,{variant:"outline",size:"sm",onClick:d,disabled:a,children:c.jsx(js,{className:`h-4 w-4 ${a?"animate-spin":""}`})}),c.jsx(ge,{variant:"ghost",size:"sm",onClick:n,"aria-label":"Close history dialog",children:c.jsx(Hn,{className:"h-5 w-5"})})]})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-4",children:[l&&c.jsxs("div",{className:"flex items-center gap-2 text-destructive text-sm bg-destructive/10 p-3 rounded-md mb-4",children:[c.jsx(Is,{className:"h-4 w-4"}),l]}),a&&i.length===0?c.jsx("div",{className:"flex items-center justify-center py-12",children:c.jsx(Ot,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):i.length===0?c.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No runs yet. This job hasn't been executed."}):c.jsx("div",{className:"space-y-3",children:i.map(x=>c.jsxs("div",{className:"border border-border rounded-lg p-4 hover:bg-muted/40 transition-colors",children:[c.jsxs("div",{className:"mb-2 flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h(x.status),f(x.status),x.triggered_by&&c.jsxs("span",{className:"text-xs text-muted-foreground",children:["by ",x.triggered_by]})]}),c.jsxs("div",{className:"text-sm text-muted-foreground",children:["Duration: ",m(x.started_at,x.completed_at)]})]}),c.jsxs("div",{className:"mb-2 text-sm text-muted-foreground",children:[c.jsx("span",{className:"font-medium",children:"Started:"})," ",x.started_at?new Date(x.started_at).toLocaleString():"Not started",x.completed_at&&c.jsxs(c.Fragment,{children:[" → ",c.jsx("span",{className:"font-medium",children:"Completed:"})," ",new Date(x.completed_at).toLocaleString()]})]}),x.status==="completed"&&x.result&&c.jsxs("details",{className:"mt-2",children:[c.jsx("summary",{className:"text-sm text-green-600 dark:text-green-400 cursor-pointer hover:underline",children:"View result"}),c.jsx("pre",{className:"mt-2 p-2 bg-muted rounded text-xs overflow-x-auto",children:typeof x.result=="string"?x.result:JSON.stringify(x.result,null,2)})]}),x.status==="failed"&&x.error&&c.jsxs("div",{className:"mt-2 p-2 bg-destructive/10 rounded text-sm text-destructive",children:[c.jsx("strong",{children:"Error:"})," ",x.error]})]},x.id))})]})]})})}const lb=new $P,htt=20,ftt=[10,20,50,100];function ptt(){const e=Um(),[r,n]=y.useState([]),[i,s]=y.useState({}),[a,o]=y.useState(0),[l,u]=y.useState(1),[d,h]=y.useState(htt),[f,m]=y.useState(!0),[x,v]=y.useState(null),[_,w]=y.useState(!1),[S,C]=y.useState(null),[j,T]=y.useState(null),E=y.useCallback(async(P,H)=>{m(!0),v(null);try{const G=await lb.listJobsPage(P,H,!0);n(G.items),o(G.total),u(G.page),h(G.size);const U={};await Promise.all(G.items.map(async V=>{try{const J=await lb.getJobRuns(V.id,1);U[V.id]=J[0]||null}catch{U[V.id]=null}})),s(V=>({...V,...U}))}catch(G){v(G instanceof Error?G.message:"Failed to load jobs")}finally{m(!1)}},[]);y.useEffect(()=>{E(l,d)},[E,l,d]);const N=async(P,H)=>{try{const G=await lb.updateJob(P,{enabled:H});n(U=>U.map(V=>V.id===P?G:V))}catch(G){v(G instanceof Error?G.message:"Failed to update job")}},M=async P=>{try{const H=await lb.triggerJob(P);s(G=>({...G,[P]:H}))}catch(H){v(H instanceof Error?H.message:"Failed to trigger job")}},$=async P=>{if(await e({title:"Delete job",description:"Are you sure you want to delete this job?",confirmLabel:"Delete",variant:"destructive"}))try{await lb.deleteJob(P);const G=Math.max(0,a-1),U=Math.max(1,Math.ceil(G/d)),V=Math.min(l,U);u(V),await E(V,d)}catch(G){v(G instanceof Error?G.message:"Failed to delete job")}},q=P=>{u(1),E(1,d),w(!1)},F=P=>{n(H=>H.map(G=>G.id===P.id?P:G)),C(null)},B=Math.max(1,Math.ceil(a/d)),W=a===0?0:(l-1)*d+1,D=Math.min(a,l*d),O=r.filter(P=>P.enabled).length,I=r.filter(P=>P.job_type==="agent_task").length,R=r.filter(P=>P.job_type==="system_job").length;return c.jsxs("div",{className:"container mx-auto max-w-6xl px-3 py-4 sm:px-4 sm:py-6",children:[c.jsxs("div",{className:"mb-6 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsxs("h1",{className:"flex items-center gap-2 text-xl font-bold sm:text-2xl",children:[c.jsx(o_,{className:"h-6 w-6"}),"Scheduled Jobs"]}),c.jsx("p",{className:"mt-1 text-sm text-muted-foreground sm:text-base",children:"Manage your automated tasks and agent schedules"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(ge,{variant:"outline",onClick:()=>void E(l,d),disabled:f,className:"shrink-0 px-3 sm:px-4",title:"Refresh","aria-label":"Refresh",children:[c.jsx(js,{className:`h-4 w-4 sm:mr-2 ${f?"animate-spin":""}`}),c.jsx("span",{className:"hidden sm:inline",children:"Refresh"})]}),c.jsxs(ge,{onClick:()=>w(!0),className:"shrink-0 px-3 sm:px-4",title:"New Job","aria-label":"New Job",children:[c.jsx(Ps,{className:"h-4 w-4 sm:mr-2"}),c.jsx("span",{className:"hidden sm:inline",children:"New Job"})]})]})]}),c.jsxs("div",{className:"mb-6 flex flex-wrap items-center gap-1.5 text-xs sm:gap-2",children:[c.jsxs(Mr,{variant:"outline",className:"px-2 py-0.5",children:[a," total"]}),c.jsxs(Mr,{variant:"default",className:"px-2 py-0.5",children:[O," enabled"]}),c.jsxs(Mr,{variant:"secondary",className:"px-2 py-0.5",children:[I," agent tasks"]}),c.jsxs(Mr,{variant:"secondary",className:"px-2 py-0.5",children:[R," system jobs"]})]}),x&&c.jsxs("div",{className:"flex items-center gap-2 text-destructive text-sm bg-destructive/10 p-3 rounded-md mb-4",children:[c.jsx(Is,{className:"h-4 w-4"}),x,c.jsx(ge,{variant:"ghost",size:"sm",className:"ml-auto",onClick:()=>v(null),children:"Dismiss"})]}),f&&r.length===0?c.jsx("div",{className:"flex items-center justify-center py-24",children:c.jsx(Ot,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):r.length===0?c.jsxs("div",{className:"rounded-lg border-2 border-dashed px-4 py-16 text-center sm:py-24",children:[c.jsx(o_,{className:"h-12 w-12 mx-auto text-muted-foreground mb-4"}),c.jsx("h3",{className:"text-lg font-medium mb-2",children:"No scheduled jobs yet"}),c.jsx("p",{className:"text-muted-foreground mb-4",children:"Create your first job to automate tasks or schedule agent prompts"}),c.jsxs(ge,{onClick:()=>w(!0),children:[c.jsx(Ps,{className:"h-4 w-4 mr-2"}),"Create Your First Job"]})]}):c.jsx("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:r.map(P=>c.jsx(ltt,{job:P,recentRun:i[P.id],onToggle:N,onTrigger:M,onDelete:$,onEdit:C,onViewHistory:T},P.id))}),c.jsxs("div",{className:"mt-6 flex flex-col gap-3 border-t pt-4 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between",children:[c.jsxs("div",{className:"text-sm text-muted-foreground",children:["Showing ",W,"–",D," of ",a]}),c.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[c.jsx("label",{className:"text-sm text-muted-foreground",htmlFor:"jobs-page-size",children:"Per page"}),c.jsx("select",{id:"jobs-page-size",className:"h-9 rounded-md border bg-background px-2 text-sm",value:d,onChange:P=>{const H=Number.parseInt(P.target.value,10);!Number.isFinite(H)||H<=0||(u(1),h(H))},children:ftt.map(P=>c.jsx("option",{value:P,children:P},P))}),c.jsxs("div",{className:"grid grid-cols-[1fr_auto_1fr] items-center gap-2 sm:flex sm:items-center",children:[c.jsxs(ge,{variant:"outline",size:"sm",disabled:l<=1||f,onClick:()=>u(P=>Math.max(1,P-1)),className:"w-full",children:[c.jsx(F1,{className:"h-4 w-4 mr-1"}),"Prev"]}),c.jsxs("span",{className:"text-center text-sm text-muted-foreground tabular-nums",children:["Page ",l," / ",B]}),c.jsxs(ge,{variant:"outline",size:"sm",disabled:l>=B||f,onClick:()=>u(P=>Math.min(B,P+1)),className:"w-full",children:["Next",c.jsx(gs,{className:"h-4 w-4 ml-1"})]})]})]})]}),c.jsx(ctt,{isOpen:_||!!S,onClose:()=>{w(!1),C(null)},onCreated:q,editJob:S,onUpdated:F}),c.jsx(dtt,{job:j,isOpen:!!j,onClose:()=>T(null)})]})}var mtt="Separator",nU="horizontal",gtt=["horizontal","vertical"],tce=y.forwardRef((e,r)=>{const{decorative:n,orientation:i=nU,...s}=e,a=ytt(i)?i:nU,l=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return c.jsx(Kw.div,{"data-orientation":a,...l,...s,ref:r})});tce.displayName=mtt;function ytt(e){return gtt.includes(e)}var rce=tce;const R3=y.forwardRef(({className:e,orientation:r="horizontal",decorative:n=!0,...i},s)=>c.jsx(rce,{ref:s,decorative:n,orientation:r,className:Ce("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...i}));R3.displayName=rce.displayName;function xtt(e){if(Array.isArray(e))return e;if(!e)return[];try{const r=JSON.parse(e);return Array.isArray(r)?r.filter(n=>typeof n=="string"):[]}catch{return e.split(",").map(r=>r.trim()).filter(Boolean)}}function vtt(e){return[...new Set(e.split(",").map(r=>r.trim().toLowerCase()).filter(Boolean))]}function cb(e){if(!e)return"No activity";const r=new Date(e);return Number.isNaN(r.getTime())?e:new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(r)}function btt(){const[e,r]=y.useState(null),[n,i]=y.useState("active"),[s,a]=y.useState("all"),[o,l]=y.useState(""),[u,d]=y.useState(""),[h,f]=y.useState("none"),[m,x]=y.useState([]),[v,_]=y.useState(""),[w,S]=y.useState(""),[C,j]=y.useState(""),[T,E]=y.useState(!0),[N,M]=y.useState(!1),[$,q]=y.useState(!1),[F,B]=y.useState(null),W=y.useCallback(async()=>{E(!0),B(null);try{r(await dr.getRemindersSnapshot({status:n,limit:200})),x(await dr.listUserSecrets())}catch(X){B(X instanceof Error?X.message:"Failed to load memory")}finally{E(!1)}},[n]);y.useEffect(()=>{W()},[W]);const D=(e==null?void 0:e.projects)??[],O=y.useMemo(()=>{const X=(e==null?void 0:e.reminders)??[];return s==="all"?X:X.filter(Q=>Q.projectId===s)},[e==null?void 0:e.reminders,s]),I=(e==null?void 0:e.threads)??[],R=y.useMemo(()=>new Map(D.map(X=>[X.id,X])),[D]),P=y.useMemo(()=>{const X=new Map;for(const Q of D)for(const ie of Q.sessions)X.set(ie.id,{name:ie.name,projectId:ie.projectId});return X},[D]),H=y.useMemo(()=>({reminders:(e==null?void 0:e.reminders.length)??0,projects:D.length,sessions:D.reduce((X,Q)=>X+Q.sessions.length,0),threads:I.length}),[e==null?void 0:e.reminders.length,I.length,D]),G=async()=>{const X=o.trim();if(X){M(!0),B(null);try{const Q=await dr.createReminder({content:X,projectId:h==="none"?null:h,tags:vtt(u),sourceType:"user",sourceSurface:"web"});r(ie=>ie&&{...ie,reminders:[Q,...ie.reminders]}),l(""),d("")}catch(Q){B(Q instanceof Error?Q.message:"Failed to add memory")}finally{M(!1)}}},U=async(X,Q)=>{r(ie=>ie&&{...ie,reminders:ie.reminders.map(re=>re.id===X.id?{...re,...Q,tags:Q.tags?JSON.stringify(Q.tags):re.tags}:re)});try{const ie=await dr.updateReminder(X.id,Q);r(re=>re&&{...re,reminders:re.reminders.map(le=>le.id===X.id?ie:le)})}catch(ie){B(ie instanceof Error?ie.message:"Failed to update memory"),W()}},V=async X=>{const Q=e;r(ie=>ie&&{...ie,reminders:ie.reminders.filter(re=>re.id!==X)});try{await dr.deleteReminder(X)}catch(ie){r(Q),B(ie instanceof Error?ie.message:"Failed to delete memory")}},J=async()=>{const X=v.trim(),Q=w.trim();if(!(!X||!Q||!C)){M(!0),B(null);try{const ie=await dr.createUserSecret({type:"ssh-password",key:Q,label:X,value:C});x(re=>[ie,...re.filter(le=>le.id!==ie.id)]),_(""),S(""),j("")}catch(ie){B(ie instanceof Error?ie.message:"Failed to save secret")}finally{M(!1)}}},z=async X=>{const Q=m;x(ie=>ie.filter(re=>re.id!==X));try{await dr.deleteUserSecret(X)}catch(ie){x(Q),B(ie instanceof Error?ie.message:"Failed to delete secret")}},ee=async()=>{B(null);try{const X=await dr.exportMemoryMarkdown({status:n,projectId:s,limit:500});await navigator.clipboard.writeText(X),q(!0),window.setTimeout(()=>q(!1),1400)}catch(X){B(X instanceof Error?X.message:"Failed to copy memory export")}};return c.jsxs("div",{className:"mx-auto flex max-w-7xl flex-col gap-4 px-3 py-4 sm:px-4 sm:py-6",children:[c.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsxs("h1",{className:"flex items-center gap-2 text-xl font-bold sm:text-2xl",children:[c.jsx(vo,{className:"h-6 w-6"}),"Memory"]}),c.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Agent-readable memory with project chat history and completed thread context."})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(Sd,{value:n,onValueChange:X=>i(X),children:[c.jsx(_u,{className:"h-10 min-w-0 flex-1 sm:w-40 sm:flex-none",children:c.jsx(kd,{})}),c.jsxs(wu,{children:[c.jsx(Ls,{value:"active",children:"Active"}),c.jsx(Ls,{value:"archived",children:"Archived"}),c.jsx(Ls,{value:"all",children:"All"})]})]}),c.jsxs(ge,{variant:"outline",className:"shrink-0 px-3 sm:px-4",onClick:()=>void W(),disabled:T,title:"Refresh","aria-label":"Refresh",children:[c.jsx(js,{className:Ce("h-4 w-4 sm:mr-2",T&&"animate-spin")}),c.jsx("span",{className:"hidden sm:inline",children:"Refresh"})]}),c.jsxs(ge,{variant:"outline",className:"shrink-0 px-3 sm:px-4",onClick:()=>void ee(),title:"Copy Markdown","aria-label":"Copy Markdown",children:[c.jsx(Tl,{className:"h-4 w-4 sm:mr-2"}),c.jsx("span",{className:"hidden sm:inline",children:$?"Copied":"Copy Markdown"})]})]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsxs(Mr,{variant:"outline",className:"px-2 py-0.5",children:[H.reminders," memories"]}),c.jsxs(Mr,{variant:"secondary",className:"px-2 py-0.5",children:[H.projects," projects"]}),c.jsxs(Mr,{variant:"secondary",className:"px-2 py-0.5",children:[H.sessions," chats"]}),c.jsxs(Mr,{variant:"secondary",className:"px-2 py-0.5",children:[H.threads," threads"]}),c.jsxs(Mr,{variant:"secondary",className:"px-2 py-0.5",children:[m.length," secrets"]})]}),F&&c.jsx(Fr,{className:"border-destructive/30 bg-destructive/10 shadow-none",children:c.jsxs(mc,{className:"flex items-center gap-2 p-3 text-sm text-destructive",children:[c.jsx(Is,{className:"h-4 w-4 shrink-0"}),c.jsx("span",{className:"min-w-0 flex-1",children:F}),c.jsx(ge,{variant:"ghost",size:"sm",className:"shrink-0",onClick:()=>B(null),children:"Dismiss"})]})}),c.jsx(Fr,{children:c.jsxs(mc,{className:"grid gap-3 p-3 lg:grid-cols-[minmax(0,1fr)_220px_220px_auto] lg:items-end",children:[c.jsxs("div",{className:"min-w-0 space-y-2",children:[c.jsx(wi,{htmlFor:"new-reminder-content",children:"Memory"}),c.jsx(Th,{id:"new-reminder-content",value:o,onChange:X=>l(X.target.value),placeholder:"Add agent-readable memory...",className:"min-h-20 lg:min-h-10"})]}),c.jsxs("div",{className:"min-w-0 space-y-2",children:[c.jsx(wi,{children:"Project"}),c.jsxs(Sd,{value:h,onValueChange:f,children:[c.jsx(_u,{className:"h-10",children:c.jsx(kd,{placeholder:"Project"})}),c.jsxs(wu,{children:[c.jsx(Ls,{value:"none",children:"No project"}),D.map(X=>c.jsx(Ls,{value:X.id,children:X.title||X.rootPath||"Untitled project"},X.id))]})]})]}),c.jsxs("div",{className:"min-w-0 space-y-2",children:[c.jsx(wi,{htmlFor:"new-reminder-tags",children:"Tags"}),c.jsx(jn,{id:"new-reminder-tags",value:u,onChange:X=>d(X.target.value),placeholder:"tags, comma separated"})]}),c.jsxs(ge,{onClick:()=>void G(),disabled:N||!o.trim(),className:"lg:self-end",children:[N?c.jsx(Ot,{className:"mr-2 h-4 w-4 animate-spin"}):c.jsx(Ps,{className:"mr-2 h-4 w-4"}),"Add"]})]})}),c.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,1fr)_420px]",children:[c.jsxs("div",{className:"min-w-0 space-y-3",children:[c.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[c.jsx("h2",{className:"text-sm font-semibold uppercase tracking-normal text-muted-foreground",children:"Memory List"}),c.jsxs(Sd,{value:s,onValueChange:a,children:[c.jsx(_u,{className:"h-10 w-full sm:w-64",children:c.jsx(kd,{})}),c.jsxs(wu,{children:[c.jsx(Ls,{value:"all",children:"All projects"}),D.map(X=>c.jsx(Ls,{value:X.id,children:X.title||X.rootPath||"Untitled project"},X.id))]})]})]}),T&&!e?c.jsx("div",{className:"flex items-center justify-center py-24",children:c.jsx(Ot,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):O.length===0?c.jsx(Fr,{className:"border-2 border-dashed shadow-none",children:c.jsxs(mc,{className:"px-4 py-16 text-center",children:[c.jsx(vo,{className:"mx-auto mb-4 h-10 w-10 text-muted-foreground"}),c.jsx("h3",{className:"mb-2 text-lg font-medium",children:"No memory matches"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Change filters or add the first memory entry."})]})}):O.map(X=>{const Q=X.kind==="engine",ie=X.projectId?R.get(X.projectId):null,re=X.sessionId?P.get(X.sessionId):null,le=xtt(X.tags),fe=`${X.sourceType}:${X.sourceId||"none"}@${X.sourceSurface}`;return c.jsx(Fr,{children:c.jsxs(mc,{className:"p-3",children:[c.jsx(Th,{className:"min-h-20",defaultValue:X.content,readOnly:Q,onBlur:se=>{if(Q)return;const oe=se.target.value.trim();oe&&oe!==X.content&&U(X,{content:oe})}}),c.jsxs("div",{className:"mt-3 flex flex-col gap-2 text-xs text-muted-foreground sm:flex-row sm:flex-wrap sm:items-center",children:[c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(hve,{className:"h-3.5 w-3.5"}),Q?"Engine memory":ie?ie.title||ie.rootPath||"Project":"Global memory"]}),re&&c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(yd,{className:"h-3.5 w-3.5"}),re.name||"Chat"]}),c.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1",title:fe,children:[c.jsx(yd,{className:"h-3.5 w-3.5"}),c.jsx("span",{className:"truncate",children:fe})]}),c.jsxs("span",{className:"inline-flex items-center gap-1",title:"Usage count",children:[c.jsx(K0e,{className:"h-3.5 w-3.5"}),X.usageCount??0," uses"]}),c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(KD,{className:"h-3.5 w-3.5"}),"Updated ",cb(X.updatedAt)]}),c.jsxs("span",{className:"inline-flex items-center gap-1",children:[c.jsx(KD,{className:"h-3.5 w-3.5"}),"Retrieved ",cb(X.lastRetrievedAt)]})]}),le.length>0&&c.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:le.map(se=>c.jsx(Mr,{variant:"secondary",className:"rounded-md",children:se},se))}),c.jsx(R3,{className:"my-3"}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[Q?null:c.jsxs(ge,{variant:"outline",size:"sm",onClick:()=>void U(X,{status:X.status==="active"?"archived":"active"}),children:[X.status==="active"?c.jsx(GM,{className:"mr-2 h-4 w-4"}):c.jsx(Ts,{className:"mr-2 h-4 w-4"}),X.status==="active"?"Archive":"Restore"]}),c.jsxs(ge,{variant:"outline",size:"sm",onClick:()=>void V(X.id),children:[c.jsx(Qo,{className:"mr-2 h-4 w-4"}),"Delete"]})]})]})},X.id)})]}),c.jsx("div",{className:"min-w-0",children:c.jsxs(mx,{defaultValue:"projects",className:"min-w-0",children:[c.jsxs(R0,{className:"grid w-full grid-cols-3",children:[c.jsx(ma,{value:"projects",children:"Projects"}),c.jsx(ma,{value:"threads",children:"Threads"}),c.jsx(ma,{value:"secrets",children:"Secrets"})]}),c.jsx(Gs,{value:"projects",className:"mt-3",children:c.jsx(vc,{className:"max-h-[42rem] pr-1",children:c.jsxs("div",{className:"space-y-2",children:[D.map(X=>c.jsx(Fr,{children:c.jsxs(mc,{className:"p-3",children:[c.jsxs("div",{className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-sm font-medium",children:X.title||X.rootPath||"Untitled project"}),c.jsx("div",{className:"truncate text-xs text-muted-foreground",children:X.rootPath||X.nodeId||"No path"})]}),c.jsx(Mr,{variant:"outline",className:"shrink-0",children:X.reminderCount})]}),c.jsx(R3,{className:"my-3"}),c.jsxs("div",{className:"space-y-1.5",children:[X.sessions.slice(0,6).map(Q=>c.jsxs("div",{className:"flex items-center justify-between gap-2 text-xs",children:[c.jsx("span",{className:"min-w-0 truncate",children:Q.name||"Chat"}),c.jsx("span",{className:"shrink-0 text-muted-foreground",children:cb(Q.lastActiveAt)})]},Q.id)),X.sessions.length===0&&c.jsx("div",{className:"text-xs text-muted-foreground",children:"No chats yet"})]})]})},X.id)),D.length===0&&c.jsx(Fr,{className:"border-2 border-dashed shadow-none",children:c.jsx(mc,{className:"p-6 text-center text-sm text-muted-foreground",children:"No projects yet"})})]})})}),c.jsx(Gs,{value:"threads",className:"mt-3",children:c.jsx(vc,{className:"max-h-[42rem] pr-1",children:c.jsxs("div",{className:"space-y-2",children:[I.slice(0,12).map(X=>c.jsx(Fr,{children:c.jsx(mc,{className:"p-3",children:c.jsxs("div",{className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-sm font-medium",children:X.title}),c.jsxs("div",{className:"truncate text-xs text-muted-foreground",children:[X.providerId," · ",cb(X.updatedAt)]})]}),c.jsx(Mr,{variant:X.status==="completed"?"secondary":"outline",className:"shrink-0",children:X.status})]})})},X.id)),I.length===0&&c.jsx(Fr,{className:"border-2 border-dashed shadow-none",children:c.jsx(mc,{className:"p-6 text-center text-sm text-muted-foreground",children:"No past threads yet"})})]})})}),c.jsx(Gs,{value:"secrets",className:"mt-3",children:c.jsx(Fr,{children:c.jsxs(mc,{className:"space-y-3 p-3",children:[c.jsxs("div",{className:"grid gap-2",children:[c.jsx(jn,{value:v,onChange:X=>_(X.target.value),placeholder:"Label"}),c.jsx(jn,{value:w,onChange:X=>S(X.target.value),placeholder:"SSH key, for example jakob@192.168.178.53:22"}),c.jsx(jn,{type:"password",value:C,onChange:X=>j(X.target.value),placeholder:"Password"}),c.jsxs(ge,{onClick:()=>void J(),disabled:N||!v.trim()||!w.trim()||!C,children:[N?c.jsx(Ot,{className:"mr-2 h-4 w-4 animate-spin"}):c.jsx(C1e,{className:"mr-2 h-4 w-4"}),"Save Secret"]})]}),c.jsx(R3,{}),c.jsx(vc,{className:"max-h-[30rem] pr-1",children:c.jsxs("div",{className:"space-y-2",children:[m.map(X=>c.jsx(Fr,{children:c.jsx(mc,{className:"p-3",children:c.jsxs("div",{className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-sm font-medium",children:X.label}),c.jsxs("div",{className:"truncate text-xs text-muted-foreground",children:[X.type," · ",X.key]}),c.jsxs("div",{className:"mt-1 text-xs text-muted-foreground",children:["Last used ",cb(X.lastUsedAt)]})]}),c.jsx(ge,{variant:"ghost",size:"sm",className:"shrink-0",onClick:()=>void z(X.id),children:c.jsx(Qo,{className:"h-4 w-4"})})]})})},X.id)),m.length===0&&c.jsx(Fr,{className:"border-2 border-dashed shadow-none",children:c.jsx(mc,{className:"p-6 text-center text-sm text-muted-foreground",children:"No saved secrets"})})]})})]})})})]})})]})]})}function _tt(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],u=!0,d=!1;try{if(a=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=a.call(n)).done)&&(l.push(i.value),l.length!==r);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function wtt(e,r,n){return r=Att(r),r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function iU(e,r){return Ctt(e)||_tt(e,r)||nce(e,r)||Ttt()}function Stt(e){return ktt(e)||jtt(e)||nce(e)||Ntt()}function ktt(e){if(Array.isArray(e))return s7(e)}function Ctt(e){if(Array.isArray(e))return e}function jtt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nce(e,r){if(e){if(typeof e=="string")return s7(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s7(e,r)}}function s7(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=e[n];return i}function Ntt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1344
1344
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ttt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.