@intent-hq/web 2.387.0 → 2.387.1

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 (147) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{C-y1uW-U.js → -hGB5JIm.js} +1 -1
  3. package/web/app/immutable/chunks/{Bm3beBRj.js → 2S2jdRaL.js} +1 -1
  4. package/web/app/immutable/chunks/{BAAQt1ZW.js → 4EMyw6Bc.js} +1 -1
  5. package/web/app/immutable/chunks/{BXlN4FOb.js → 4T0RCl9z.js} +1 -1
  6. package/web/app/immutable/chunks/{ygDvZWWC.js → 5j6plyZH.js} +1 -1
  7. package/web/app/immutable/chunks/{CxMr7p-O.js → 7lcZWflB.js} +3 -3
  8. package/web/app/immutable/chunks/{DKeBnsgS.js → 84z5wXrw.js} +1 -1
  9. package/web/app/immutable/chunks/{DlfbUU6o.js → B-9zOddN.js} +1 -1
  10. package/web/app/immutable/chunks/{CY2g-8Xo.js → B0tiGTFc.js} +1 -1
  11. package/web/app/immutable/chunks/{B6-aVrNf.js → B1lrKll_.js} +4 -4
  12. package/web/app/immutable/chunks/{Cyr0PKv3.js → B2Bshsum.js} +1 -1
  13. package/web/app/immutable/chunks/{BuiwW61u.js → B9guVudk.js} +1 -1
  14. package/web/app/immutable/chunks/{CrZlcn4Y.js → B9iclnD1.js} +1 -1
  15. package/web/app/immutable/chunks/{D24Of5Kd.js → BAVqPace.js} +1 -1
  16. package/web/app/immutable/chunks/{BuTcdZo7.js → BDSbC3H_.js} +1 -1
  17. package/web/app/immutable/chunks/{Db1BGAZN.js → BEuhalzY.js} +1 -1
  18. package/web/app/immutable/chunks/{qm1BBGRe.js → BGh7-lCM.js} +7 -7
  19. package/web/app/immutable/chunks/{ExR0UceK.js → BHqyzGtP.js} +1 -1
  20. package/web/app/immutable/chunks/{CACH34FC.js → BJfXDnA-.js} +1 -1
  21. package/web/app/immutable/chunks/{DQpDIYyw.js → BKpfaDrr.js} +1 -1
  22. package/web/app/immutable/chunks/{CAiDxi6i.js → BKqd3SpJ.js} +3 -3
  23. package/web/app/immutable/chunks/{BVmCM-pH.js → BP6IQXl5.js} +1 -1
  24. package/web/app/immutable/chunks/{D1R1FWjP.js → BQmS_6pd.js} +1 -1
  25. package/web/app/immutable/chunks/{CoOgBJzu.js → BWmQYGJo.js} +1 -1
  26. package/web/app/immutable/chunks/{_duPkHC1.js → BWq8kRZa.js} +1 -1
  27. package/web/app/immutable/chunks/{GTsIF2uA.js → B_5X6pL_.js} +1 -1
  28. package/web/app/immutable/chunks/{DtVrXGBM.js → Bd8IVx5H.js} +1 -1
  29. package/web/app/immutable/chunks/{DmWvRjk6.js → Be5fV6fq.js} +1 -1
  30. package/web/app/immutable/chunks/{CbQ8NVeY.js → BevVqXi3.js} +1 -1
  31. package/web/app/immutable/chunks/{B9GWGWit.js → Bf-yBg_f.js} +1 -1
  32. package/web/app/immutable/chunks/{DCL7QtVR.js → BfhnpOE4.js} +1 -1
  33. package/web/app/immutable/chunks/{C8Wy-uTf.js → BgKaGgl0.js} +1 -1
  34. package/web/app/immutable/chunks/{B79iAtSu.js → BgV6mURq.js} +2 -2
  35. package/web/app/immutable/chunks/{CcgSaDDB.js → BhFMyG47.js} +1 -1
  36. package/web/app/immutable/chunks/{oHUzFHtp.js → BlaJXdkI.js} +2 -2
  37. package/web/app/immutable/chunks/{CQA1q0F9.js → BoGNoNFW.js} +1 -1
  38. package/web/app/immutable/chunks/{BkcO6l5G.js → BpNCDrL-.js} +1 -1
  39. package/web/app/immutable/chunks/{Blt813S0.js → BpPZlehu.js} +1 -1
  40. package/web/app/immutable/chunks/{BlJAndP6.js → BpiO5nnh.js} +1 -1
  41. package/web/app/immutable/chunks/{BC5HDfRR.js → BsCPiCkz.js} +1 -1
  42. package/web/app/immutable/chunks/{CJ7hw6mW.js → Bt9izmhQ.js} +1 -1
  43. package/web/app/immutable/chunks/{CoCy46Yy.js → BtUFJg3H.js} +1 -1
  44. package/web/app/immutable/chunks/{Dm98YBgx.js → BteojGYq.js} +1 -1
  45. package/web/app/immutable/chunks/{BPscmH6M.js → Btsk8yXd.js} +1 -1
  46. package/web/app/immutable/chunks/{DGK5CsQK.js → C4JyfUH_.js} +1 -1
  47. package/web/app/immutable/chunks/{CNl453qs.js → C4S7j2UJ.js} +1 -1
  48. package/web/app/immutable/chunks/{CtDIyzmZ.js → C64UuXDx.js} +1 -1
  49. package/web/app/immutable/chunks/{BFi0zRRv.js → C7JeHEH2.js} +1 -1
  50. package/web/app/immutable/chunks/{B3QTKmHy.js → C7dAe4yg.js} +1 -1
  51. package/web/app/immutable/chunks/{BSu_WKe5.js → C8guha5a.js} +1 -1
  52. package/web/app/immutable/chunks/{CoAfXTHr.js → C9wBKZsV.js} +1 -1
  53. package/web/app/immutable/chunks/{XK8g38bo.js → CA_3gGLy.js} +1 -1
  54. package/web/app/immutable/chunks/{B3ziY5oo.js → CB-znH8P.js} +2 -2
  55. package/web/app/immutable/chunks/{DUFN_Pzm.js → CB2VKTMK.js} +1 -1
  56. package/web/app/immutable/chunks/{CSlvwZw1.js → CGPxDdZI.js} +1 -1
  57. package/web/app/immutable/chunks/{Bl72eYFn.js → CHKOALDI.js} +1 -1
  58. package/web/app/immutable/chunks/{CS6HVyHp.js → CLvqNeoi.js} +1 -1
  59. package/web/app/immutable/chunks/{DaMlaKH_.js → CP7zJE2f.js} +1 -1
  60. package/web/app/immutable/chunks/{aR8LYT4O.js → CQU55hIk.js} +1 -1
  61. package/web/app/immutable/chunks/{cpPIph2M.js → CSdAdmLZ.js} +1 -1
  62. package/web/app/immutable/chunks/{D-aEx3GL.js → CV7mOfKN.js} +1 -1
  63. package/web/app/immutable/chunks/{CbQYR4R2.js → CXCilPkm.js} +3 -3
  64. package/web/app/immutable/chunks/{BFMlH_mp.js → CXkLsKgj.js} +2 -2
  65. package/web/app/immutable/chunks/{C_4qh07f.js → C_-0Y1ed.js} +1 -1
  66. package/web/app/immutable/chunks/{Cuqu6DgP.js → Caqb9E2M.js} +1 -1
  67. package/web/app/immutable/chunks/{DRXgE6SQ.js → Ccr7s0GQ.js} +1 -1
  68. package/web/app/immutable/chunks/{w-7j2Qtq.js → CfK5RUHZ.js} +1 -1
  69. package/web/app/immutable/chunks/{6uD0LviT.js → CffZor2V.js} +1 -1
  70. package/web/app/immutable/chunks/{Cs-DtA5c.js → Ck3g194G.js} +1 -1
  71. package/web/app/immutable/chunks/{DoY7_Wfd.js → CkXORNl2.js} +1 -1
  72. package/web/app/immutable/chunks/{Byr10Y9u.js → Cn034oEm.js} +1 -1
  73. package/web/app/immutable/chunks/{DlwTP-AJ.js → CnqyGFOt.js} +1 -1
  74. package/web/app/immutable/chunks/{pJyYpzre.js → CwGPCWH6.js} +1 -1
  75. package/web/app/immutable/chunks/{ByBw1QkA.js → CxCmx5S0.js} +1 -1
  76. package/web/app/immutable/chunks/{DP2r4UWt.js → CzFfpwQB.js} +1 -1
  77. package/web/app/immutable/chunks/{cc1gQUub.js → CzRhnymD.js} +1 -1
  78. package/web/app/immutable/chunks/{ClSbVEed.js → D-6Jv2pD.js} +1 -1
  79. package/web/app/immutable/chunks/{DqEoTQds.js → D0hLqQX-.js} +1 -1
  80. package/web/app/immutable/chunks/{I9b9apiN.js → D55LTeKe.js} +1 -1
  81. package/web/app/immutable/chunks/{Bsru2omj.js → D57Jyp6W.js} +1 -1
  82. package/web/app/immutable/chunks/{DNnmVx8j.js → D67AA9yd.js} +1 -1
  83. package/web/app/immutable/chunks/{C4t02ICg.js → D6Q-N0-R.js} +2 -2
  84. package/web/app/immutable/chunks/{CUxtJz1o.js → D83yV23-.js} +1 -1
  85. package/web/app/immutable/chunks/{CD9WEaPg.js → D8BzOeFD.js} +1 -1
  86. package/web/app/immutable/chunks/{Bmm_g7di.js → D8bY4ERR.js} +4 -4
  87. package/web/app/immutable/chunks/{CY4ZK6xA.js → D9Hjcszu.js} +3 -3
  88. package/web/app/immutable/chunks/{ewL2yuZ8.js → D9M659lc.js} +1 -1
  89. package/web/app/immutable/chunks/{CMsGHYhn.js → D9MZU0Xg.js} +1 -1
  90. package/web/app/immutable/chunks/{D2ch709U.js → DC1CSztK.js} +1 -1
  91. package/web/app/immutable/chunks/{9fNNDfgo.js → DCkRL43S.js} +1 -1
  92. package/web/app/immutable/chunks/{Dn_aCJkC.js → DINctf8I.js} +1 -1
  93. package/web/app/immutable/chunks/{CqGq5PHb.js → DIcuhccs.js} +1 -1
  94. package/web/app/immutable/chunks/{DQ8CqY9L.js → DJKfrY8C.js} +2 -2
  95. package/web/app/immutable/chunks/{CrvtnK13.js → DL95yZo7.js} +6 -6
  96. package/web/app/immutable/chunks/{C53ouDFl.js → DLs3P_Wt.js} +1 -1
  97. package/web/app/immutable/chunks/{DcRqMoeH.js → DMlhLPB0.js} +1 -1
  98. package/web/app/immutable/chunks/{DNZCPKpq.js → DQZhKtkC.js} +1 -1
  99. package/web/app/immutable/chunks/{Bt11uxE8.js → DTtB67Qo.js} +4 -4
  100. package/web/app/immutable/chunks/{CCzan1r_.js → DW_seDlm.js} +1 -1
  101. package/web/app/immutable/chunks/{CHApvLbz.js → D_j4wRX_.js} +3 -3
  102. package/web/app/immutable/chunks/{DXI99C-u.js → Da6yJ5JS.js} +1 -1
  103. package/web/app/immutable/chunks/{T-5C1GqS.js → Dcnwzgw6.js} +1 -1
  104. package/web/app/immutable/chunks/{D_AhXAPc.js → Ddc7chXR.js} +1 -1
  105. package/web/app/immutable/chunks/{Bbae4OrB.js → Dde5tnWd.js} +2 -2
  106. package/web/app/immutable/chunks/{gJJMUdOI.js → Dgmou2n8.js} +1 -1
  107. package/web/app/immutable/chunks/{BcrN1yjB.js → DqfdHjn7.js} +1 -1
  108. package/web/app/immutable/chunks/{C6rcni5e.js → DrStWuxU.js} +1 -1
  109. package/web/app/immutable/chunks/{-2rOENSl.js → DujtjgwV.js} +1 -1
  110. package/web/app/immutable/chunks/{BJEUIKTL.js → Dx1ZiLP_.js} +1 -1
  111. package/web/app/immutable/chunks/{r2R1I-D0.js → DzI8RUwZ.js} +1 -1
  112. package/web/app/immutable/chunks/{BK0IkwFP.js → FhJRiT1S.js} +2 -2
  113. package/web/app/immutable/chunks/{DzTn7KcX.js → KlNP4OZJ.js} +1 -1
  114. package/web/app/immutable/chunks/{rlNXEIUc.js → NpwlBTfT.js} +1 -1
  115. package/web/app/immutable/chunks/{BlAMrm5X.js → WoPFTWyQ.js} +1 -1
  116. package/web/app/immutable/chunks/{Ck8ZqpbB.js → YFBzMq6w.js} +1 -1
  117. package/web/app/immutable/chunks/{CULu7FSf.js → Yz7dkp3Z.js} +1 -1
  118. package/web/app/immutable/chunks/{DGj-492Z.js → aoPstOyp.js} +2 -2
  119. package/web/app/immutable/chunks/{-hTxjwFO.js → bs-TVtqR.js} +1 -1
  120. package/web/app/immutable/chunks/{CTVz-pXS.js → cHm1EnSF.js} +3 -3
  121. package/web/app/immutable/chunks/{DhVLJG6D.js → cKeJwK9J.js} +1 -1
  122. package/web/app/immutable/chunks/{DuoQQplG.js → eJwA1uvO.js} +1 -1
  123. package/web/app/immutable/chunks/{gHZWxIPZ.js → nOvpikoA.js} +1 -1
  124. package/web/app/immutable/chunks/{ClQE9kQf.js → oVV8Q_Hb.js} +1 -1
  125. package/web/app/immutable/chunks/{C07_BcWL.js → ptqq1hqu.js} +1 -1
  126. package/web/app/immutable/chunks/{CVd7xnlx.js → tU2KtqMG.js} +1 -1
  127. package/web/app/immutable/chunks/{CW4vzFn_.js → whliLT1v.js} +1 -1
  128. package/web/app/immutable/chunks/{Chg0KuUy.js → yMNZVIZN.js} +2 -2
  129. package/web/app/immutable/entry/{app.DOLk01Bm.js → app.TFdw1N9t.js} +2 -2
  130. package/web/app/immutable/entry/start.CSPHmABT.js +1 -0
  131. package/web/app/immutable/nodes/{0.qPBEcapg.js → 0.D7LoWNFt.js} +1 -1
  132. package/web/app/immutable/nodes/{1.Bi3sNEdL.js → 1.T820Pcdi.js} +1 -1
  133. package/web/app/immutable/nodes/{10.DHyl6QAs.js → 10.TooAJmth.js} +1 -1
  134. package/web/app/immutable/nodes/{11.pqpLvrmB.js → 11.YCt8uKtA.js} +1 -1
  135. package/web/app/immutable/nodes/{15.CKbUOFrf.js → 15.BaajVSfs.js} +1 -1
  136. package/web/app/immutable/nodes/{19.3QLuvvWY.js → 19.BBw49idM.js} +2 -2
  137. package/web/app/immutable/nodes/{2.CSj73FLT.js → 2.CXHTT9vG.js} +1 -1
  138. package/web/app/immutable/nodes/{3.BUbQ5Tes.js → 3.CafUSpEU.js} +1 -1
  139. package/web/app/immutable/nodes/{4.Byn29Mul.js → 4.wtpkgmx_.js} +1 -1
  140. package/web/app/immutable/nodes/{5.CMHzkmR-.js → 5.D26Atcdx.js} +1 -1
  141. package/web/app/immutable/nodes/{6.N0CPg2uE.js → 6.uEepPxKF.js} +1 -1
  142. package/web/app/immutable/nodes/{7.4Szvqobl.js → 7.D-r8R1wS.js} +1 -1
  143. package/web/app/immutable/nodes/{8.BKw9KMbS.js → 8.ELuFvMEz.js} +1 -1
  144. package/web/app/immutable/nodes/{9.BBJWosck.js → 9.tuk9n1NJ.js} +2 -2
  145. package/web/app/version.json +1 -1
  146. package/web/index.html +9 -9
  147. package/web/app/immutable/entry/start.CIQw0TYU.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DJivXy66.js","/app/immutable/chunks/YLhFQnIu.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CTowDLQa.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BQhBnAuP.js","/app/immutable/chunks/CrpUtGFn.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DwbEs_9r.js","/app/immutable/chunks/D5wnbxHp.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BUsnh1ZW.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/BJbm_MWC.js","/app/immutable/chunks/gwv5JQYH.js","/app/immutable/chunks/DwGyIIXK.js","/app/immutable/chunks/YeOAvjnW.js","/app/immutable/chunks/oBIu7LTI.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/_3Ca9E4W.js","/app/immutable/chunks/DIEHuZ8f.js","/app/immutable/chunks/CKcb8dge.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/0Kw0mmSW.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/Bq7euxCs.js","/app/immutable/chunks/B-bGycam.js","/app/immutable/chunks/lZ7zkdkp.js","/app/immutable/chunks/BQ8hOnRo.js","/app/immutable/chunks/BpwKnO7b.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/VcnbZvDh.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/DuoQQplG.js","/app/immutable/chunks/D-aEx3GL.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/DQ8CqY9L.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/mUNs8NSR.js","/app/immutable/chunks/L3K71tUU.js","/app/immutable/chunks/COVS9Crf.js","/app/immutable/chunks/Idk978zJ.js"])))=>i.map(i=>d[i]);
2
- var F=Object.defineProperty;var $=(c,e,r)=>e in c?F(c,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[e]=r;var u=(c,e,r)=>$(c,typeof e!="symbol"?e+"":e,r);import{l as _}from"./ChTqQfQN.js";import{bm as b,_ as y}from"./YLhFQnIu.js";import{Jx as k,CF as M}from"./D5wnbxHp.js";import{h as O}from"./DJivXy66.js";import{O as W}from"./mUNs8NSR.js";import{cO as L}from"./ByBw1QkA.js";import{u as x,b6 as U,bd as j}from"./D-aEx3GL.js";import{a as z}from"./CV5qbjYN.js";const N={USE_DEFAULT_CONTEXT:{id:"use-default-context",type:"command",get label(){return b.chat_mentions_useDefaultContext_label()},get description(){return b.chat_mentions_useDefaultContext_description()},icon:"🔄",uri:"devspace://command/use-default-context"},CLEAR_CONTEXT:{id:"clear-context",type:"command",get label(){return b.chat_mentions_clearContext_label()},get description(){return b.chat_mentions_clearContext_description()},icon:"🗑️",uri:"devspace://command/clear-context"}};function ke(c){return"items"in c||"subgroups"in c}function B(c){if(!c||typeof c!="object")return!1;const e=c;return!(typeof e.id!="string"||typeof e.label!="string"||typeof e.uri!="string"||typeof e.type!="string"||e.subtitle!==void 0&&typeof e.subtitle!="string"||e.description!==void 0&&typeof e.description!="string"||e.icon!==void 0&&typeof e.icon!="string"||e.score!==void 0&&typeof e.score!="number"||e.group!==void 0&&typeof e.group!="string")}function g(c,e){if(!c||!e)return null;const r=c.toLowerCase(),s=e.toLowerCase();let t=0;for(let a=0;a<s.length&&t<r.length;a++)s[a]===r[t]&&t++;if(t!==r.length)return null;const i=K(r,s);return i?{score:V(r,s,i),matches:i}:null}function K(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;for(let a=s;a<e.length;a++)if(e[a]===i){r.push(a),s=a+1,n=!0;break}if(!n)return null}return r}function V(c,e,r){let s=0;s+=1;let t=0;for(let l=1;l<r.length;l++)r[l]===r[l-1]+1&&(t+=.1);s+=t;let i=0;for(const l of r)(l===0||J(e,l))&&(i+=.15);s+=i,r[0]===0&&(s+=.2);const a=(r[r.length-1]-r[0])/e.length*.3;return s-=a,Math.min(s/2.5,1)}function J(c,e){if(e===0)return!0;const r=c[e],s=c[e-1];return r===r.toUpperCase()&&s===s.toLowerCase()||!/[a-z0-9]/i.test(s)}function G(c,e){if(!c||!e)return null;if(!c.includes("/"))return g(c,e);const r=c.split("/").filter(n=>n.length>0),s=e.split("/").filter(n=>n.length>0);if(r.length===0||s.length===0)return null;const t=H(r,s);return t?{score:X(r,s,t),matches:[]}:null}function H(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;const a=t===c.length-1;for(let o=s;o<e.length;o++){const l=e[o];if(g(i,l)){r.push(o),s=o+1,n=!0;break}if(a){const p=l.split(".")[0],m=l.includes(".")?l.split(".").pop():"";if(m&&g(i,m)){r.push(o),s=o+1,n=!0;break}if(p&&g(i,p)){r.push(o),s=o+1,n=!0;break}}}if(!n)return null}return r}function X(c,e,r){let s=0;s+=1,s+=r.length*.2;let t=0;for(let n=1;n<r.length;n++)r[n]===r[n-1]+1&&(t+=.15);s+=t,r.length>0&&r[r.length-1]===e.length-1&&(s+=.3);for(let n=0;n<c.length&&n<r.length;n++){const a=c[n],o=e[r[n]];a.toLowerCase()===o.toLowerCase()&&(s+=.2)}return Math.min(s/3,1)}function R(c,e,r){return JSON.stringify({query:c,workspaceId:r.workspaceId,repoPath:r.repoPath,currentFile:r.currentFile,currentNote:r.currentNote,providers:e.map(s=>[s.id,s.getCacheKey?.(r)])})}const D="*",Ce=["member","note","agent","file","folder","script","terminal",D,"specialist"];function Q(c,e){if(e.length===0)return[...c].sort((t,i)=>(i.score??0)-(t.score??0));const r=new Map(e.map((t,i)=>[t,i])),s=r.get(D)??e.length;return c.map(t=>({candidate:t,rank:r.get(t.type)??s})).sort((t,i)=>t.rank-i.rank||(i.candidate.score??0)-(t.candidate.score??0)).map(({candidate:t})=>t)}function Y(c,e){const r=new Map;return c.filter(s=>{const t=r.get(s.type)??0;return r.set(s.type,t+1),t<e})}class Ie{constructor(e={}){u(this,"searchDebounceTimer",null);u(this,"currentAbortController",null);u(this,"cache",new Map);u(this,"config");u(this,"isSearching",!1);this.config={debounceMs:e.debounceMs??100,maxResults:e.maxResults??50,cacheMaxAge:e.cacheMaxAge??3e4,enableSemantic:e.enableSemantic??!1,enableLivePreview:e.enableLivePreview??!0,enableCollaboration:e.enableCollaboration??!1,typeOrder:e.typeOrder??[],maxResultsPerKind:e.maxResultsPerKind??20}}async search(e,r,s){this.cancelPendingSearch();const t=R(e,r,s),i=this.cache.get(t);if(i&&!this.isCacheExpired(i))return _.debug("[SearchService] Returning cached results for:",e),i.results;const n=new AbortController;this.currentAbortController=n;const a=n.signal;return new Promise((o,l)=>{this.isSearching=!0;let p=!1;const m=()=>{a.removeEventListener("abort",v),this.currentAbortController===n&&(this.currentAbortController=null,this.searchDebounceTimer=null,this.isSearching=!1)},w=f=>{p||(p=!0,m(),o(f))},d=f=>{p||(p=!0,m(),l(f))},v=()=>d(new DOMException("Search cancelled","AbortError"));a.addEventListener("abort",v,{once:!0});const h=async()=>{try{if(a.aborted){d(new DOMException("Search cancelled","AbortError"));return}_.debug("[SearchService] Searching with providers:",r.map(C=>C.id));const f=R(e,r,s),P=await Promise.all(r.map(C=>this.searchWithProvider(C,e,s,a)));if(a.aborted)return;if(f!==R(e,r,s)){w([]);return}const S=this.combineResults(P.flat()).filter(C=>B(C)),E=this.applyFuzzyMatching(e,S),A=Q(E,this.config.typeOrder),T=this.config.typeOrder.length>0?Y(A,this.config.maxResultsPerKind):A.slice(0,this.config.maxResults);this.cache.set(f,{results:T,timestamp:Date.now()}),_.debug(`[SearchService] Found ${T.length} results`),w(T)}catch(f){a.aborted?d(new DOMException("Search cancelled","AbortError")):(_.error("[SearchService] Search error:",f),d(f instanceof Error?f:new Error(String(f))))}};e?this.searchDebounceTimer=setTimeout(h,this.config.debounceMs):h()})}async searchWithProvider(e,r,s,t){try{const i={...s,signal:t},n=await e.search(r,i),a=e.scoreRelevance?.bind(e);return a?n.map(o=>({...o,score:a(o,s)})):n}catch(i){return t.aborted||_.error(`[SearchService] Provider ${e.id} search failed:`,i),[]}}combineResults(e){const r=new Set,s=[];for(const t of e){const i=`${t.type}:${t.uri}`;r.has(i)||(r.add(i),s.push(t))}return s}applyFuzzyMatching(e,r){if(!e||e.length===0)return r;const t=r.map(i=>{let n=0;const a=i.meta?.path||i.meta?.fullPath||(i.subtitle?`${i.subtitle}/${i.label}`:i.label);if(a){const l=G(e,a);l&&(n=Math.max(n,l.score*1.8))}const o=g(e,i.label);if(o&&(n=Math.max(n,o.score*1.5)),i.subtitle){const l=g(e,i.subtitle);l&&(n=Math.max(n,l.score))}if(i.description){const l=g(e,i.description);l&&(n=Math.max(n,l.score*.5))}return{...i,score:n>0?n:i.score??0}}).filter(i=>i.score>0);return t.length>0?t:r}cancelPendingSearch(){this.searchDebounceTimer&&(clearTimeout(this.searchDebounceTimer),this.searchDebounceTimer=null),this.currentAbortController&&(this.currentAbortController.abort(),this.currentAbortController=null)}isCacheExpired(e){return Date.now()-e.timestamp>this.config.cacheMaxAge}clearCache(){this.cache.clear()}isLoading(){return this.isSearching}destroy(){this.cancelPendingSearch(),this.clearCache()}}class Z{constructor(){u(this,"id","file");u(this,"triggers",["@file","@f"]);u(this,"default",!0);u(this,"supportsRanges",!0);u(this,"supportsLivePreview",!0);u(this,"recentFiles",new Set);u(this,"fileIconMap",{ts:"📘",tsx:"⚛️",js:"📜",jsx:"⚛️",svelte:"🔥",vue:"💚",py:"🐍",rs:"🦀",go:"🐹",java:"☕",cpp:"⚙️",c:"⚙️",h:"📎",md:"📝",json:"📋",yaml:"📋",yml:"📋",toml:"📋",xml:"📋",html:"🌐",css:"🎨",scss:"🎨",sass:"🎨",less:"🎨",sql:"🗃️",sh:"🖥️",bash:"🖥️",zsh:"🖥️",fish:"🖥️",dockerfile:"🐳",docker:"🐳",gitignore:"🚫",env:"🔐",lock:"🔒",test:"🧪",spec:"🧪"})}async search(e,r){_.debug("[FileProvider] Searching for:",{query:e,context:{workspaceId:r.workspaceId}});const s=r.workspaceId;if(!s)return[];try{const t=await O("search.fileNames",{workspaceId:s,pattern:e||"",limit:10}),n=(Array.isArray(t?.files)?t.files:[]).map(a=>{const o=a.split("/").pop()||a,l=o.split(".").pop()||"";return{id:`file-${a}`,label:o,type:"file",uri:`file:${a}`,description:a,subtitle:a,score:.5,meta:{path:a,fullPath:a,relativePath:a,extension:l,language:this.getLanguageFromExtension(l)}}});return this.deduplicateAndDistinguish(n)}catch(t){return _.error("[FileProvider] Search failed:",t),[]}}async searchRecent(e,r){if(!r.recentFiles||r.recentFiles.length===0)return[];const s=await Promise.all(r.recentFiles.filter(t=>e?g(e,t)!==null:!0).slice(0,3).map(t=>{const i=t.split("/").pop()||t,n=i.split(".").pop()||"";return this.fileToCandidate({path:t,name:i,extension:n})}));return s.forEach(t=>{this.recentFiles.add(t.uri)}),s}async searchContextual(e,r){return r.currentFile?[]:[]}async fileToCandidate(e){const r=this.getFileIcon(e.extension),s=e.path,t=this.formatPath(s);return{id:`file-${e.path}`,type:"file",label:e.name,subtitle:t,description:s,icon:r,uri:`devspace://file/${encodeURIComponent(e.path)}`,meta:{path:s,fullPath:e.path,lastModified:e.lastModified,size:e.size,language:e.language||this.getLanguageFromExtension(e.extension)}}}combineResults(...e){const r=new Set,s=[];for(const t of e)for(const i of t)r.has(i.uri)||(r.add(i.uri),s.push(i));return this.deduplicateAndDistinguish(s)}deduplicateAndDistinguish(e){const r=new Map;for(const t of e){const i=t.label;let n=r.get(i);n||(n=[],r.set(i,n)),n.push(t)}const s=[];for(const[t,i]of r.entries())if(i.length===1)s.push(i[0]);else{const n=this.distinguishDuplicates(i);s.push(...n)}return s}distinguishDuplicates(e){const r=e.map(t=>t.description||t.meta?.path||"");return e.map((t,i)=>{const n=r[i],a=r.filter((p,m)=>m!==i),o=n.split("/");let l="";for(let p=o.length;p>0;p--){const m=o.slice(-p).join("/");if(!a.some(d=>d.split("/").slice(-p).join("/")===m)||p===1){l=m;break}}return{...t,subtitle:l}})}groupResults(e){const r={recent:[],relevant:[],other:[]};for(const t of e)this.recentFiles.has(t.uri)?r.recent.push(t):(t.score??0)>.7?r.relevant.push(t):r.other.push(t);const s=[];return r.recent.length>0&&s.push(...r.recent.slice(0,3).map(t=>({...t,group:b.chat_mentions_recentFiles_group()}))),r.relevant.length>0&&s.push(...r.relevant.slice(0,5).map(t=>({...t,group:b.chat_mentions_mostRelevant_group()}))),r.other.length>0&&s.push(...r.other.slice(0,10).map(t=>({...t,group:b.chat_mentions_otherFiles_group()}))),s}scoreRelevance(e,r){let s=.5;if(this.recentFiles.has(e.uri)&&(s+=.2),r.currentFile&&e.meta?.path){const t=r.currentFile.substring(0,r.currentFile.lastIndexOf("/")),i=e.meta.path.substring(0,e.meta.path.lastIndexOf("/"));t===i&&(s+=.15)}return r.imports?.includes(e.meta?.path||"")&&(s+=.25),r.currentFile?.includes(".test.")&&e.meta?.path?.includes(".test.")&&(s+=.1),Math.min(s,1)}getGroups(){return[{id:"files-recent",label:b.chat_mentions_recentFiles_group(),icon:"🕐"},{id:"files-all",label:b.chat_mentions_allFiles_group(),icon:"📁"},{id:"files-tests",label:b.chat_mentions_testFiles_group(),icon:"🧪"}]}getFileIcon(e){return this.fileIconMap[e.toLowerCase()]||"📄"}formatPath(e){if(e.length>40){const r=e.split("/");if(r.length>2)return`.../${r.slice(-2).join("/")}`}return e}getLanguageFromExtension(e){return{ts:"typescript",tsx:"typescriptreact",js:"javascript",jsx:"javascriptreact",py:"python",rs:"rust",go:"go",java:"java",cpp:"cpp",c:"c",svelte:"svelte",vue:"vue",md:"markdown",json:"json",yaml:"yaml",yml:"yaml",html:"html",css:"css",scss:"scss",sql:"sql",sh:"shellscript"}[e.toLowerCase()]||"plaintext"}}class q{constructor(){u(this,"id","member")}getCacheKey(e){const r=k.state;return JSON.stringify({backendId:W.select(r),ownPrincipalId:r.presence.ownPrincipalId,members:e.workspaceId?L.select(r,e.workspaceId):[]})}async search(e,r){const{workspaceId:s}=r;if(!s)return[];const t=e.replace(/^@/,"").toLowerCase();return L.select(k.state,s).filter(i=>i.login.toLowerCase().includes(t)).map(i=>({id:`member-${i.principalId}`,type:"member",label:i.login,subtitle:i.identity?`${i.identity.provider==="github"?"GitHub":"GitLab"} · ${i.identity.host}`:void 0,description:i.displayName??void 0,icon:"👤",uri:`devspace://member/${encodeURIComponent(i.principalId)}?workspaceId=${encodeURIComponent(s)}`,score:.8,meta:{workspaceId:s,principalId:i.principalId,identity:i.identity,avatarUrl:i.avatarUrl??void 0}}))}}class ee{constructor(){u(this,"id","folder");u(this,"triggers",["@folder","@dir"])}async search(e,r){const s=r.workspaceId;if(!s)return[];try{const{backendRequest:t}=await y(async()=>{const{backendRequest:o}=await import("./DJivXy66.js").then(l=>l.j);return{backendRequest:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),i=await t("search.fileNames",{workspaceId:s,pattern:e||"",limit:200}),n=Array.isArray(i?.files)?i.files:[],a=new Set;for(const o of n){const l=o.split("/");for(let p=1;p<l.length;p++)a.add(l.slice(0,p).join("/"))}return[...a].filter(o=>e?g(e,o.split("/").pop()||o)!==null:!0).slice(0,10).map(o=>({id:`folder-${o}`,type:"folder",label:o.split("/").pop()||o,description:o,icon:"📁",uri:`devspace://folder/${encodeURIComponent(o)}`,meta:{path:o,fullPath:o,relativePath:o}}))}catch(t){return _.debug("[FolderProvider] Failed to get folders:",t),[]}}}const te=10,re=.3;function se(c){const e=c.toLowerCase().split(/\s+/).filter(Boolean);return(r,s)=>{const t=r?g(c,r):null;if(t)return 1+t.score;if(s){const i=s.toLowerCase();if(e.every(n=>i.includes(n)))return re}return 0}}class ie{constructor(){u(this,"id","note");u(this,"triggers",["@note","@n"]);u(this,"supportsRanges",!0);u(this,"cachedNotes",[]);u(this,"lastCacheUpdate",0);u(this,"cacheTimeout",5e3)}async getSiblingWorkspaces(e){if(!e)return[];try{const[{store:r},{selectWorkspaceItems:s}]=await Promise.all([y(()=>import("./DwbEs_9r.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./BJbm_MWC.js").then(n=>n.ee),__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,7,9,23,24,0,5,10,25,26]),import.meta.url)]),t=s.select(r.state),i=t.find(n=>n.id===e);return!i||!i.repositoryPath?[]:t.filter(n=>n.id!==e&&n.repositoryPath===i.repositoryPath)}catch(r){return _.debug("[NoteProvider] Failed to get sibling workspaces:",r),[]}}async fetchNotesFromWorkspace(e,r){try{const[{store:s},{listSlimNotesRequested:t}]=await Promise.all([y(()=>import("./DwbEs_9r.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./D5wnbxHp.js").then(n=>n.MF),__vite__mapDeps([12,13,2,14,15,4,8,1,16,6,3]),import.meta.url)]);return(await s.dispatch(t(e))).map(n=>({note:n,workspaceId:e,workspaceTitle:r}))}catch(s){_.debug(`[NoteProvider] Failed to fetch notes from workspace ${e}:`,s)}return[]}async search(e,r){if(!r.workspaceId)return[];const s=e.trim(),t=s?se(s):null;try{const i=await this.fetchNotesFromWorkspace(r.workspaceId),a=(await this.getSiblingWorkspaces(r.workspaceId)).map(d=>this.fetchNotesFromWorkspace(d.id,d.title)),l=(await Promise.all(a)).flat(),p=[...i,...l],w=(t?p.map(d=>({entry:d,score:t(d.note.title,d.note.content||d.note.contentPreview)})).filter(({score:d})=>d>0).sort((d,v)=>v.score-d.score):p.map(d=>({entry:d,score:void 0}))).slice(0,te).map(({entry:{note:d,workspaceId:v,workspaceTitle:h},score:f})=>{const P=v===r.workspaceId,I=P?void 0:b.chat_mentions_fromWorkspace_subtitle({workspace:h||v}),S=d.content||d.contentPreview;return{candidate:{id:d.id,type:"note",label:d.title||d.id||b.chat_mentions_untitledNote_label(),subtitle:I,description:S?`${S.substring(0,100)}...`:"",icon:"📝",uri:`devspace://note/${d.id}`,meta:{preview:S?.substring(0,200)||"",workspaceId:v,...P?{}:{isExternalLink:!0}}},score:f}});if(this.cachedNotes=w.map(({candidate:d})=>d),this.lastCacheUpdate=Date.now(),w.length>0)return w.map(({candidate:d,score:v})=>v!==void 0?{...d,score:v}:d)}catch(i){_.debug("[NoteProvider] Failed to fetch notes:",i)}return this.cachedNotes.length>0?t?this.cachedNotes.map(i=>({...i,score:t(i.label,i.meta?.preview)})).filter(i=>i.score>0).sort((i,n)=>n.score-i.score):this.cachedNotes:[]}getCachedNotes(){return Date.now()-this.lastCacheUpdate>this.cacheTimeout?[]:this.cachedNotes}}class ne{constructor(){u(this,"id","external");u(this,"triggers",["@docs","@external"])}async search(e,r){return[{id:"react-docs",label:"React Documentation",url:"https://react.dev",description:"Official React documentation"},{id:"mdn",label:"MDN Web Docs",url:"https://developer.mozilla.org",description:"Web technology documentation"},{id:"typescript",label:"TypeScript Handbook",url:"https://www.typescriptlang.org/docs/",description:"TypeScript documentation"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`external-${t.id}`,type:"external-source",label:t.label,description:t.description,icon:"📚",uri:`devspace://external/${t.id}`,meta:{url:t.url}}))}}class oe{constructor(){u(this,"id","rule");u(this,"triggers",["@rule","@intent"])}async search(e,r){return[{path:".intent/rules/cli.md",label:"CLI Rules"},{path:".intent/rules/frontend.md",label:"Frontend Rules"},{path:".intent/rules/python.md",label:"Python Rules"},{path:".intent/rules/sidecar.md",label:"Sidecar Rules"},{path:".intent/rules/systems.md",label:"Systems Rules"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:t.path,type:"rule",label:t.label,subtitle:t.path,icon:"📚",uri:`devspace://rule/${encodeURIComponent(t.path)}`,meta:{path:t.path}}))}}class ae{constructor(){u(this,"id","task");u(this,"triggers",["@task","@todo"])}async search(e,r){return[{id:"task-1",label:"Implement authentication",status:"in_progress",assignee:"John Doe"},{id:"task-2",label:"Write tests",status:"not_started",assignee:"Jane Smith"},{id:"task-3",label:"Deploy to production",status:"completed",assignee:"Bob Johnson"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`task-${t.id}`,type:"task",label:t.label,subtitle:`${t.status} • ${t.assignee}`,icon:"📋",uri:`devspace://task/${t.id}`,meta:{taskStatus:t.status,assignee:t.assignee}}))}}class ce{constructor(){u(this,"id","personality");u(this,"triggers",["@personality","@persona"]);u(this,"personalities",[{id:"auggie-personality-agent-default",name:"Agent Auggie",description:"Default helpful AI assistant",icon:"🤖",temperature:.7,model:"default",promptToken:"auggie-personality-agent-default"},{id:"auggie-personality-prototyper",name:"Prototyper Auggie",description:"Specialized in rapid prototyping",icon:"⚡",temperature:.7,model:"default",promptToken:"auggie-personality-prototyper"},{id:"auggie-personality-brainstorm",name:"Brainstorm Auggie",description:"Creative ideation and exploration",icon:"💡",temperature:.7,model:"default",promptToken:"auggie-personality-brainstorm"},{id:"auggie-personality-reviewer",name:"Reviewer Auggie",description:"Code review and feedback",icon:"🔍",temperature:.7,model:"default",promptToken:"auggie-personality-reviewer"}])}async search(e,r){return this.personalities.filter(s=>!e||g(e,s.name)!==null).map(s=>({id:s.id,type:"personality",label:s.name,subtitle:`${s.model}`,description:s.description,icon:s.icon,uri:`devspace://personality/${s.id}`,meta:{promptToken:s.promptToken}}))}}class le{constructor(){u(this,"id","command");u(this,"triggers",["@cmd","@command"])}async search(e,r){return[N.USE_DEFAULT_CONTEXT,N.CLEAR_CONTEXT].filter(t=>!e||t.label.toLowerCase().includes(e.toLowerCase()))}}class ue{constructor(){u(this,"id","terminal");u(this,"triggers",["@terminal","@term"])}async search(e,r){try{const{terminalManager:s}=await y(async()=>{const{terminalManager:h}=await import("./CKcb8dge.js").then(f=>f.b);return{terminalManager:h}},__vite__mapDeps([27,2,1,28,29,3,4,30,31,12,13,14,15,8,16,6,0,5,7,9,10,32,24,33,34,35,36,37,38,39,40,25,41,42]),import.meta.url),{selectTerminals:t,selectTerminalDisplayName:i}=await y(async()=>{const{selectTerminals:h,selectTerminalDisplayName:f}=await import("./VcnbZvDh.js").then(P=>P.i);return{selectTerminals:h,selectTerminalDisplayName:f}},__vite__mapDeps([41,12,13,2,14,15,4,8,1,16,6,3]),import.meta.url),a=k.state;if(!r.workspaceId)return[];const o=t.select(a,r.workspaceId),l=s.loadTerminalMetadata(r.workspaceId),p=new Set,m=[];for(const h of o)p.add(h.id),m.push({id:h.id,name:i.select(a,r.workspaceId,h.id)});for(const h of l)p.has(h.terminalId)||(p.add(h.terminalId),m.push({id:h.terminalId,name:h.title||b.terminal_quakeOverlay_terminal_fallback()}));if(m.length===0)return[];const d=e?["terminal","term"].some(h=>h.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(h)):!1;return(e&&!d?m.filter(h=>g(e,h.name)!==null):m).slice(0,10).map((h,f)=>({id:h.id,type:"terminal",label:h.name,subtitle:b.chat_mentions_terminalIndex_subtitle({index:f+1}),description:b.chat_mentions_terminalOutput_description(),icon:"💻",uri:`devspace://terminal/${encodeURIComponent(h.id)}`,meta:{workspaceId:r.workspaceId}}))}catch(s){return _.debug("[TerminalProvider] Failed to get terminals:",s),[]}}}class de{constructor(){u(this,"id","script");u(this,"triggers",["@script","@scripts"])}async search(e,r){try{const{selectScriptEntries:s}=await y(async()=>{const{selectScriptEntries:o}=await import("./DuoQQplG.js");return{selectScriptEntries:o}},__vite__mapDeps([43,12,13,2,14,15,4,8,1,16,6,3,44,19,20,21,22,7,9,23,24,0,5,10,25,26,45,29,28,46,47,48,49,33,50,51,31]),import.meta.url);if(!r.workspaceId)return[];const t=s.select(k.state,r.workspaceId);if(t.length===0)return[];const n=e?["script","scripts"].some(o=>o.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(o)):!1;return(e&&!n?t.filter(o=>g(e,o.name)!==null||g(e,M(o))!==null):t).slice(0,10).map(o=>{const l=o.runtime.status,p=x(l)?b.chat_mentions_scriptRunning_label():l==="exited"?b.chat_mentions_scriptExited_label():b.chat_mentions_scriptIdle_label();return{id:o.id,type:"script",label:o.name,subtitle:`${p} · ${M(o)}`,description:b.chat_mentions_scriptOutput_description(),icon:"▶️",uri:`devspace://script/${encodeURIComponent(o.id)}`,meta:{workspaceId:r.workspaceId,command:o.command,status:x(l)?"ok":l==="exited"?"warning":void 0}}})}catch(s){return _.debug("[ScriptProvider] Failed to get scripts:",s),[]}}}class pe{constructor(){u(this,"id","specialist");u(this,"triggers",["@specialist","@spec"])}async search(e,r){try{const s=j.select(k.state);return!s||s.length===0?[]:s.filter(t=>e?g(e,t.name)!==null||g(e,t.id)!==null||g(e,t.description)!==null||g(e,"specialist")!==null:!0).map(t=>({id:`specialist-${t.id}`,type:"specialist",label:t.name,subtitle:t.description,description:t.description,icon:"👤",uri:`devspace://specialist/${encodeURIComponent(t.id)}`,group:"Specialists",score:.8,meta:{promptToken:`specialist/${t.id}`}})).slice(0,10)}catch(s){return _.debug("[SpecialistProvider] Failed to get specialists:",s),[]}}}class he{constructor(){u(this,"id","agent");u(this,"triggers",["@agent"])}async search(e,r){try{const{selectAllWorkspaceAgents:s}=await y(async()=>{const{selectAllWorkspaceAgents:a}=await import("./BJbm_MWC.js").then(o=>o.eb);return{selectAllWorkspaceAgents:a}},__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,7,9,23,24,0,5,10,25,26]),import.meta.url),t=r.workspaceId;if(!t)return[];const i=s.select(k.state,t);if(i.length===0)return[];const n=[];for(const a of i){const o=a.id,l=a.name||o,p=a.metadata?.specialist||"";let m=a.metadata?.specialistName||"";if(p&&!m){const f=U.select(k.state,p);f&&(m=f.name)}if(e){const f=g(e,l)!==null,P=g(e,"agent")!==null,I=m&&g(e,m)!==null,S=p&&g(e,p)!==null;if(!f&&!P&&!I&&!S)continue}const w=a.isStreaming?"responding":a.status||"active",d=[];m?d.push(m):d.push("Agent"),d.push(w);const v=a.messages?.length||0;v>0&&d.push(`${v} msg${v!==1?"s":""}`);const h=a.lastActivity||a.lastModified;h&&!a.isStreaming&&d.push(z(new Date(h))),n.push({id:o,type:"agent",label:l,subtitle:d.join(" · "),description:m?b.chat_mentions_specialistAgentInWorkspace_description({specialist:m}):b.chat_mentions_agentInWorkspace_description(),icon:"🤖",uri:`devspace://agent/${encodeURIComponent(o)}`,group:b.chat_mentions_agents_group(),score:.7,meta:{workspaceId:t}})}return n.slice(0,10)}catch(s){return _.debug("[AgentProvider] Failed to get agents:",s),[]}}}class me{constructor(){u(this,"providers",new Map);u(this,"defaultProviders",[]);this.register(new Z),this.register(new ee),this.register(new ie),this.register(new ne),this.register(new oe),this.register(new ae),this.register(new ce),this.register(new le),this.register(new ue),this.register(new de),this.register(new he),this.register(new pe),this.register(new q),this.defaultProviders=["file","folder","note","terminal","script","agent","specialist","member"]}register(e){this.providers.set(e.id,e),_.debug("[ProviderRegistry] Registered provider:",e.id)}unregister(e){this.providers.delete(e)}get(e){return this.providers.get(e)}getAll(){return Array.from(this.providers.values())}getDefault(){return this.defaultProviders.map(e=>this.providers.get(e)).filter(Boolean)}getByTrigger(e){return Array.from(this.providers.values()).filter(r=>r.triggers?.includes(e))}async searchAll(e,r){const s=e.startsWith("@")?this.getByTrigger(e.split(" ")[0]):this.getDefault();return(await Promise.all(s.map(i=>i.search(e,r)))).flat()}}const Te=new me;export{Ie as D,Ce as M,Q as a,ke as i,Te as p,R as s};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DJivXy66.js","/app/immutable/chunks/YLhFQnIu.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CTowDLQa.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BQhBnAuP.js","/app/immutable/chunks/CrpUtGFn.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DwbEs_9r.js","/app/immutable/chunks/D5wnbxHp.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BUsnh1ZW.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/BJbm_MWC.js","/app/immutable/chunks/gwv5JQYH.js","/app/immutable/chunks/DwGyIIXK.js","/app/immutable/chunks/YeOAvjnW.js","/app/immutable/chunks/oBIu7LTI.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/_3Ca9E4W.js","/app/immutable/chunks/DIEHuZ8f.js","/app/immutable/chunks/CKcb8dge.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/0Kw0mmSW.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/Bq7euxCs.js","/app/immutable/chunks/B-bGycam.js","/app/immutable/chunks/lZ7zkdkp.js","/app/immutable/chunks/BQ8hOnRo.js","/app/immutable/chunks/BpwKnO7b.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/VcnbZvDh.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/eJwA1uvO.js","/app/immutable/chunks/CV7mOfKN.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/DJKfrY8C.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/mUNs8NSR.js","/app/immutable/chunks/L3K71tUU.js","/app/immutable/chunks/COVS9Crf.js","/app/immutable/chunks/Idk978zJ.js"])))=>i.map(i=>d[i]);
2
+ var F=Object.defineProperty;var $=(c,e,r)=>e in c?F(c,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[e]=r;var u=(c,e,r)=>$(c,typeof e!="symbol"?e+"":e,r);import{l as _}from"./ChTqQfQN.js";import{bm as b,_ as y}from"./YLhFQnIu.js";import{Jx as k,CF as M}from"./D5wnbxHp.js";import{h as O}from"./DJivXy66.js";import{O as W}from"./mUNs8NSR.js";import{cO as L}from"./CxCmx5S0.js";import{u as x,b6 as U,bd as j}from"./CV7mOfKN.js";import{a as z}from"./CV5qbjYN.js";const N={USE_DEFAULT_CONTEXT:{id:"use-default-context",type:"command",get label(){return b.chat_mentions_useDefaultContext_label()},get description(){return b.chat_mentions_useDefaultContext_description()},icon:"🔄",uri:"devspace://command/use-default-context"},CLEAR_CONTEXT:{id:"clear-context",type:"command",get label(){return b.chat_mentions_clearContext_label()},get description(){return b.chat_mentions_clearContext_description()},icon:"🗑️",uri:"devspace://command/clear-context"}};function ke(c){return"items"in c||"subgroups"in c}function B(c){if(!c||typeof c!="object")return!1;const e=c;return!(typeof e.id!="string"||typeof e.label!="string"||typeof e.uri!="string"||typeof e.type!="string"||e.subtitle!==void 0&&typeof e.subtitle!="string"||e.description!==void 0&&typeof e.description!="string"||e.icon!==void 0&&typeof e.icon!="string"||e.score!==void 0&&typeof e.score!="number"||e.group!==void 0&&typeof e.group!="string")}function g(c,e){if(!c||!e)return null;const r=c.toLowerCase(),s=e.toLowerCase();let t=0;for(let a=0;a<s.length&&t<r.length;a++)s[a]===r[t]&&t++;if(t!==r.length)return null;const i=K(r,s);return i?{score:V(r,s,i),matches:i}:null}function K(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;for(let a=s;a<e.length;a++)if(e[a]===i){r.push(a),s=a+1,n=!0;break}if(!n)return null}return r}function V(c,e,r){let s=0;s+=1;let t=0;for(let l=1;l<r.length;l++)r[l]===r[l-1]+1&&(t+=.1);s+=t;let i=0;for(const l of r)(l===0||J(e,l))&&(i+=.15);s+=i,r[0]===0&&(s+=.2);const a=(r[r.length-1]-r[0])/e.length*.3;return s-=a,Math.min(s/2.5,1)}function J(c,e){if(e===0)return!0;const r=c[e],s=c[e-1];return r===r.toUpperCase()&&s===s.toLowerCase()||!/[a-z0-9]/i.test(s)}function G(c,e){if(!c||!e)return null;if(!c.includes("/"))return g(c,e);const r=c.split("/").filter(n=>n.length>0),s=e.split("/").filter(n=>n.length>0);if(r.length===0||s.length===0)return null;const t=H(r,s);return t?{score:X(r,s,t),matches:[]}:null}function H(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;const a=t===c.length-1;for(let o=s;o<e.length;o++){const l=e[o];if(g(i,l)){r.push(o),s=o+1,n=!0;break}if(a){const p=l.split(".")[0],m=l.includes(".")?l.split(".").pop():"";if(m&&g(i,m)){r.push(o),s=o+1,n=!0;break}if(p&&g(i,p)){r.push(o),s=o+1,n=!0;break}}}if(!n)return null}return r}function X(c,e,r){let s=0;s+=1,s+=r.length*.2;let t=0;for(let n=1;n<r.length;n++)r[n]===r[n-1]+1&&(t+=.15);s+=t,r.length>0&&r[r.length-1]===e.length-1&&(s+=.3);for(let n=0;n<c.length&&n<r.length;n++){const a=c[n],o=e[r[n]];a.toLowerCase()===o.toLowerCase()&&(s+=.2)}return Math.min(s/3,1)}function R(c,e,r){return JSON.stringify({query:c,workspaceId:r.workspaceId,repoPath:r.repoPath,currentFile:r.currentFile,currentNote:r.currentNote,providers:e.map(s=>[s.id,s.getCacheKey?.(r)])})}const D="*",Ce=["member","note","agent","file","folder","script","terminal",D,"specialist"];function Q(c,e){if(e.length===0)return[...c].sort((t,i)=>(i.score??0)-(t.score??0));const r=new Map(e.map((t,i)=>[t,i])),s=r.get(D)??e.length;return c.map(t=>({candidate:t,rank:r.get(t.type)??s})).sort((t,i)=>t.rank-i.rank||(i.candidate.score??0)-(t.candidate.score??0)).map(({candidate:t})=>t)}function Y(c,e){const r=new Map;return c.filter(s=>{const t=r.get(s.type)??0;return r.set(s.type,t+1),t<e})}class Ie{constructor(e={}){u(this,"searchDebounceTimer",null);u(this,"currentAbortController",null);u(this,"cache",new Map);u(this,"config");u(this,"isSearching",!1);this.config={debounceMs:e.debounceMs??100,maxResults:e.maxResults??50,cacheMaxAge:e.cacheMaxAge??3e4,enableSemantic:e.enableSemantic??!1,enableLivePreview:e.enableLivePreview??!0,enableCollaboration:e.enableCollaboration??!1,typeOrder:e.typeOrder??[],maxResultsPerKind:e.maxResultsPerKind??20}}async search(e,r,s){this.cancelPendingSearch();const t=R(e,r,s),i=this.cache.get(t);if(i&&!this.isCacheExpired(i))return _.debug("[SearchService] Returning cached results for:",e),i.results;const n=new AbortController;this.currentAbortController=n;const a=n.signal;return new Promise((o,l)=>{this.isSearching=!0;let p=!1;const m=()=>{a.removeEventListener("abort",v),this.currentAbortController===n&&(this.currentAbortController=null,this.searchDebounceTimer=null,this.isSearching=!1)},w=f=>{p||(p=!0,m(),o(f))},d=f=>{p||(p=!0,m(),l(f))},v=()=>d(new DOMException("Search cancelled","AbortError"));a.addEventListener("abort",v,{once:!0});const h=async()=>{try{if(a.aborted){d(new DOMException("Search cancelled","AbortError"));return}_.debug("[SearchService] Searching with providers:",r.map(C=>C.id));const f=R(e,r,s),P=await Promise.all(r.map(C=>this.searchWithProvider(C,e,s,a)));if(a.aborted)return;if(f!==R(e,r,s)){w([]);return}const S=this.combineResults(P.flat()).filter(C=>B(C)),E=this.applyFuzzyMatching(e,S),A=Q(E,this.config.typeOrder),T=this.config.typeOrder.length>0?Y(A,this.config.maxResultsPerKind):A.slice(0,this.config.maxResults);this.cache.set(f,{results:T,timestamp:Date.now()}),_.debug(`[SearchService] Found ${T.length} results`),w(T)}catch(f){a.aborted?d(new DOMException("Search cancelled","AbortError")):(_.error("[SearchService] Search error:",f),d(f instanceof Error?f:new Error(String(f))))}};e?this.searchDebounceTimer=setTimeout(h,this.config.debounceMs):h()})}async searchWithProvider(e,r,s,t){try{const i={...s,signal:t},n=await e.search(r,i),a=e.scoreRelevance?.bind(e);return a?n.map(o=>({...o,score:a(o,s)})):n}catch(i){return t.aborted||_.error(`[SearchService] Provider ${e.id} search failed:`,i),[]}}combineResults(e){const r=new Set,s=[];for(const t of e){const i=`${t.type}:${t.uri}`;r.has(i)||(r.add(i),s.push(t))}return s}applyFuzzyMatching(e,r){if(!e||e.length===0)return r;const t=r.map(i=>{let n=0;const a=i.meta?.path||i.meta?.fullPath||(i.subtitle?`${i.subtitle}/${i.label}`:i.label);if(a){const l=G(e,a);l&&(n=Math.max(n,l.score*1.8))}const o=g(e,i.label);if(o&&(n=Math.max(n,o.score*1.5)),i.subtitle){const l=g(e,i.subtitle);l&&(n=Math.max(n,l.score))}if(i.description){const l=g(e,i.description);l&&(n=Math.max(n,l.score*.5))}return{...i,score:n>0?n:i.score??0}}).filter(i=>i.score>0);return t.length>0?t:r}cancelPendingSearch(){this.searchDebounceTimer&&(clearTimeout(this.searchDebounceTimer),this.searchDebounceTimer=null),this.currentAbortController&&(this.currentAbortController.abort(),this.currentAbortController=null)}isCacheExpired(e){return Date.now()-e.timestamp>this.config.cacheMaxAge}clearCache(){this.cache.clear()}isLoading(){return this.isSearching}destroy(){this.cancelPendingSearch(),this.clearCache()}}class Z{constructor(){u(this,"id","file");u(this,"triggers",["@file","@f"]);u(this,"default",!0);u(this,"supportsRanges",!0);u(this,"supportsLivePreview",!0);u(this,"recentFiles",new Set);u(this,"fileIconMap",{ts:"📘",tsx:"⚛️",js:"📜",jsx:"⚛️",svelte:"🔥",vue:"💚",py:"🐍",rs:"🦀",go:"🐹",java:"☕",cpp:"⚙️",c:"⚙️",h:"📎",md:"📝",json:"📋",yaml:"📋",yml:"📋",toml:"📋",xml:"📋",html:"🌐",css:"🎨",scss:"🎨",sass:"🎨",less:"🎨",sql:"🗃️",sh:"🖥️",bash:"🖥️",zsh:"🖥️",fish:"🖥️",dockerfile:"🐳",docker:"🐳",gitignore:"🚫",env:"🔐",lock:"🔒",test:"🧪",spec:"🧪"})}async search(e,r){_.debug("[FileProvider] Searching for:",{query:e,context:{workspaceId:r.workspaceId}});const s=r.workspaceId;if(!s)return[];try{const t=await O("search.fileNames",{workspaceId:s,pattern:e||"",limit:10}),n=(Array.isArray(t?.files)?t.files:[]).map(a=>{const o=a.split("/").pop()||a,l=o.split(".").pop()||"";return{id:`file-${a}`,label:o,type:"file",uri:`file:${a}`,description:a,subtitle:a,score:.5,meta:{path:a,fullPath:a,relativePath:a,extension:l,language:this.getLanguageFromExtension(l)}}});return this.deduplicateAndDistinguish(n)}catch(t){return _.error("[FileProvider] Search failed:",t),[]}}async searchRecent(e,r){if(!r.recentFiles||r.recentFiles.length===0)return[];const s=await Promise.all(r.recentFiles.filter(t=>e?g(e,t)!==null:!0).slice(0,3).map(t=>{const i=t.split("/").pop()||t,n=i.split(".").pop()||"";return this.fileToCandidate({path:t,name:i,extension:n})}));return s.forEach(t=>{this.recentFiles.add(t.uri)}),s}async searchContextual(e,r){return r.currentFile?[]:[]}async fileToCandidate(e){const r=this.getFileIcon(e.extension),s=e.path,t=this.formatPath(s);return{id:`file-${e.path}`,type:"file",label:e.name,subtitle:t,description:s,icon:r,uri:`devspace://file/${encodeURIComponent(e.path)}`,meta:{path:s,fullPath:e.path,lastModified:e.lastModified,size:e.size,language:e.language||this.getLanguageFromExtension(e.extension)}}}combineResults(...e){const r=new Set,s=[];for(const t of e)for(const i of t)r.has(i.uri)||(r.add(i.uri),s.push(i));return this.deduplicateAndDistinguish(s)}deduplicateAndDistinguish(e){const r=new Map;for(const t of e){const i=t.label;let n=r.get(i);n||(n=[],r.set(i,n)),n.push(t)}const s=[];for(const[t,i]of r.entries())if(i.length===1)s.push(i[0]);else{const n=this.distinguishDuplicates(i);s.push(...n)}return s}distinguishDuplicates(e){const r=e.map(t=>t.description||t.meta?.path||"");return e.map((t,i)=>{const n=r[i],a=r.filter((p,m)=>m!==i),o=n.split("/");let l="";for(let p=o.length;p>0;p--){const m=o.slice(-p).join("/");if(!a.some(d=>d.split("/").slice(-p).join("/")===m)||p===1){l=m;break}}return{...t,subtitle:l}})}groupResults(e){const r={recent:[],relevant:[],other:[]};for(const t of e)this.recentFiles.has(t.uri)?r.recent.push(t):(t.score??0)>.7?r.relevant.push(t):r.other.push(t);const s=[];return r.recent.length>0&&s.push(...r.recent.slice(0,3).map(t=>({...t,group:b.chat_mentions_recentFiles_group()}))),r.relevant.length>0&&s.push(...r.relevant.slice(0,5).map(t=>({...t,group:b.chat_mentions_mostRelevant_group()}))),r.other.length>0&&s.push(...r.other.slice(0,10).map(t=>({...t,group:b.chat_mentions_otherFiles_group()}))),s}scoreRelevance(e,r){let s=.5;if(this.recentFiles.has(e.uri)&&(s+=.2),r.currentFile&&e.meta?.path){const t=r.currentFile.substring(0,r.currentFile.lastIndexOf("/")),i=e.meta.path.substring(0,e.meta.path.lastIndexOf("/"));t===i&&(s+=.15)}return r.imports?.includes(e.meta?.path||"")&&(s+=.25),r.currentFile?.includes(".test.")&&e.meta?.path?.includes(".test.")&&(s+=.1),Math.min(s,1)}getGroups(){return[{id:"files-recent",label:b.chat_mentions_recentFiles_group(),icon:"🕐"},{id:"files-all",label:b.chat_mentions_allFiles_group(),icon:"📁"},{id:"files-tests",label:b.chat_mentions_testFiles_group(),icon:"🧪"}]}getFileIcon(e){return this.fileIconMap[e.toLowerCase()]||"📄"}formatPath(e){if(e.length>40){const r=e.split("/");if(r.length>2)return`.../${r.slice(-2).join("/")}`}return e}getLanguageFromExtension(e){return{ts:"typescript",tsx:"typescriptreact",js:"javascript",jsx:"javascriptreact",py:"python",rs:"rust",go:"go",java:"java",cpp:"cpp",c:"c",svelte:"svelte",vue:"vue",md:"markdown",json:"json",yaml:"yaml",yml:"yaml",html:"html",css:"css",scss:"scss",sql:"sql",sh:"shellscript"}[e.toLowerCase()]||"plaintext"}}class q{constructor(){u(this,"id","member")}getCacheKey(e){const r=k.state;return JSON.stringify({backendId:W.select(r),ownPrincipalId:r.presence.ownPrincipalId,members:e.workspaceId?L.select(r,e.workspaceId):[]})}async search(e,r){const{workspaceId:s}=r;if(!s)return[];const t=e.replace(/^@/,"").toLowerCase();return L.select(k.state,s).filter(i=>i.login.toLowerCase().includes(t)).map(i=>({id:`member-${i.principalId}`,type:"member",label:i.login,subtitle:i.identity?`${i.identity.provider==="github"?"GitHub":"GitLab"} · ${i.identity.host}`:void 0,description:i.displayName??void 0,icon:"👤",uri:`devspace://member/${encodeURIComponent(i.principalId)}?workspaceId=${encodeURIComponent(s)}`,score:.8,meta:{workspaceId:s,principalId:i.principalId,identity:i.identity,avatarUrl:i.avatarUrl??void 0}}))}}class ee{constructor(){u(this,"id","folder");u(this,"triggers",["@folder","@dir"])}async search(e,r){const s=r.workspaceId;if(!s)return[];try{const{backendRequest:t}=await y(async()=>{const{backendRequest:o}=await import("./DJivXy66.js").then(l=>l.j);return{backendRequest:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),i=await t("search.fileNames",{workspaceId:s,pattern:e||"",limit:200}),n=Array.isArray(i?.files)?i.files:[],a=new Set;for(const o of n){const l=o.split("/");for(let p=1;p<l.length;p++)a.add(l.slice(0,p).join("/"))}return[...a].filter(o=>e?g(e,o.split("/").pop()||o)!==null:!0).slice(0,10).map(o=>({id:`folder-${o}`,type:"folder",label:o.split("/").pop()||o,description:o,icon:"📁",uri:`devspace://folder/${encodeURIComponent(o)}`,meta:{path:o,fullPath:o,relativePath:o}}))}catch(t){return _.debug("[FolderProvider] Failed to get folders:",t),[]}}}const te=10,re=.3;function se(c){const e=c.toLowerCase().split(/\s+/).filter(Boolean);return(r,s)=>{const t=r?g(c,r):null;if(t)return 1+t.score;if(s){const i=s.toLowerCase();if(e.every(n=>i.includes(n)))return re}return 0}}class ie{constructor(){u(this,"id","note");u(this,"triggers",["@note","@n"]);u(this,"supportsRanges",!0);u(this,"cachedNotes",[]);u(this,"lastCacheUpdate",0);u(this,"cacheTimeout",5e3)}async getSiblingWorkspaces(e){if(!e)return[];try{const[{store:r},{selectWorkspaceItems:s}]=await Promise.all([y(()=>import("./DwbEs_9r.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./BJbm_MWC.js").then(n=>n.ee),__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,7,9,23,24,0,5,10,25,26]),import.meta.url)]),t=s.select(r.state),i=t.find(n=>n.id===e);return!i||!i.repositoryPath?[]:t.filter(n=>n.id!==e&&n.repositoryPath===i.repositoryPath)}catch(r){return _.debug("[NoteProvider] Failed to get sibling workspaces:",r),[]}}async fetchNotesFromWorkspace(e,r){try{const[{store:s},{listSlimNotesRequested:t}]=await Promise.all([y(()=>import("./DwbEs_9r.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./D5wnbxHp.js").then(n=>n.MF),__vite__mapDeps([12,13,2,14,15,4,8,1,16,6,3]),import.meta.url)]);return(await s.dispatch(t(e))).map(n=>({note:n,workspaceId:e,workspaceTitle:r}))}catch(s){_.debug(`[NoteProvider] Failed to fetch notes from workspace ${e}:`,s)}return[]}async search(e,r){if(!r.workspaceId)return[];const s=e.trim(),t=s?se(s):null;try{const i=await this.fetchNotesFromWorkspace(r.workspaceId),a=(await this.getSiblingWorkspaces(r.workspaceId)).map(d=>this.fetchNotesFromWorkspace(d.id,d.title)),l=(await Promise.all(a)).flat(),p=[...i,...l],w=(t?p.map(d=>({entry:d,score:t(d.note.title,d.note.content||d.note.contentPreview)})).filter(({score:d})=>d>0).sort((d,v)=>v.score-d.score):p.map(d=>({entry:d,score:void 0}))).slice(0,te).map(({entry:{note:d,workspaceId:v,workspaceTitle:h},score:f})=>{const P=v===r.workspaceId,I=P?void 0:b.chat_mentions_fromWorkspace_subtitle({workspace:h||v}),S=d.content||d.contentPreview;return{candidate:{id:d.id,type:"note",label:d.title||d.id||b.chat_mentions_untitledNote_label(),subtitle:I,description:S?`${S.substring(0,100)}...`:"",icon:"📝",uri:`devspace://note/${d.id}`,meta:{preview:S?.substring(0,200)||"",workspaceId:v,...P?{}:{isExternalLink:!0}}},score:f}});if(this.cachedNotes=w.map(({candidate:d})=>d),this.lastCacheUpdate=Date.now(),w.length>0)return w.map(({candidate:d,score:v})=>v!==void 0?{...d,score:v}:d)}catch(i){_.debug("[NoteProvider] Failed to fetch notes:",i)}return this.cachedNotes.length>0?t?this.cachedNotes.map(i=>({...i,score:t(i.label,i.meta?.preview)})).filter(i=>i.score>0).sort((i,n)=>n.score-i.score):this.cachedNotes:[]}getCachedNotes(){return Date.now()-this.lastCacheUpdate>this.cacheTimeout?[]:this.cachedNotes}}class ne{constructor(){u(this,"id","external");u(this,"triggers",["@docs","@external"])}async search(e,r){return[{id:"react-docs",label:"React Documentation",url:"https://react.dev",description:"Official React documentation"},{id:"mdn",label:"MDN Web Docs",url:"https://developer.mozilla.org",description:"Web technology documentation"},{id:"typescript",label:"TypeScript Handbook",url:"https://www.typescriptlang.org/docs/",description:"TypeScript documentation"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`external-${t.id}`,type:"external-source",label:t.label,description:t.description,icon:"📚",uri:`devspace://external/${t.id}`,meta:{url:t.url}}))}}class oe{constructor(){u(this,"id","rule");u(this,"triggers",["@rule","@intent"])}async search(e,r){return[{path:".intent/rules/cli.md",label:"CLI Rules"},{path:".intent/rules/frontend.md",label:"Frontend Rules"},{path:".intent/rules/python.md",label:"Python Rules"},{path:".intent/rules/sidecar.md",label:"Sidecar Rules"},{path:".intent/rules/systems.md",label:"Systems Rules"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:t.path,type:"rule",label:t.label,subtitle:t.path,icon:"📚",uri:`devspace://rule/${encodeURIComponent(t.path)}`,meta:{path:t.path}}))}}class ae{constructor(){u(this,"id","task");u(this,"triggers",["@task","@todo"])}async search(e,r){return[{id:"task-1",label:"Implement authentication",status:"in_progress",assignee:"John Doe"},{id:"task-2",label:"Write tests",status:"not_started",assignee:"Jane Smith"},{id:"task-3",label:"Deploy to production",status:"completed",assignee:"Bob Johnson"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`task-${t.id}`,type:"task",label:t.label,subtitle:`${t.status} • ${t.assignee}`,icon:"📋",uri:`devspace://task/${t.id}`,meta:{taskStatus:t.status,assignee:t.assignee}}))}}class ce{constructor(){u(this,"id","personality");u(this,"triggers",["@personality","@persona"]);u(this,"personalities",[{id:"auggie-personality-agent-default",name:"Agent Auggie",description:"Default helpful AI assistant",icon:"🤖",temperature:.7,model:"default",promptToken:"auggie-personality-agent-default"},{id:"auggie-personality-prototyper",name:"Prototyper Auggie",description:"Specialized in rapid prototyping",icon:"⚡",temperature:.7,model:"default",promptToken:"auggie-personality-prototyper"},{id:"auggie-personality-brainstorm",name:"Brainstorm Auggie",description:"Creative ideation and exploration",icon:"💡",temperature:.7,model:"default",promptToken:"auggie-personality-brainstorm"},{id:"auggie-personality-reviewer",name:"Reviewer Auggie",description:"Code review and feedback",icon:"🔍",temperature:.7,model:"default",promptToken:"auggie-personality-reviewer"}])}async search(e,r){return this.personalities.filter(s=>!e||g(e,s.name)!==null).map(s=>({id:s.id,type:"personality",label:s.name,subtitle:`${s.model}`,description:s.description,icon:s.icon,uri:`devspace://personality/${s.id}`,meta:{promptToken:s.promptToken}}))}}class le{constructor(){u(this,"id","command");u(this,"triggers",["@cmd","@command"])}async search(e,r){return[N.USE_DEFAULT_CONTEXT,N.CLEAR_CONTEXT].filter(t=>!e||t.label.toLowerCase().includes(e.toLowerCase()))}}class ue{constructor(){u(this,"id","terminal");u(this,"triggers",["@terminal","@term"])}async search(e,r){try{const{terminalManager:s}=await y(async()=>{const{terminalManager:h}=await import("./CKcb8dge.js").then(f=>f.b);return{terminalManager:h}},__vite__mapDeps([27,2,1,28,29,3,4,30,31,12,13,14,15,8,16,6,0,5,7,9,10,32,24,33,34,35,36,37,38,39,40,25,41,42]),import.meta.url),{selectTerminals:t,selectTerminalDisplayName:i}=await y(async()=>{const{selectTerminals:h,selectTerminalDisplayName:f}=await import("./VcnbZvDh.js").then(P=>P.i);return{selectTerminals:h,selectTerminalDisplayName:f}},__vite__mapDeps([41,12,13,2,14,15,4,8,1,16,6,3]),import.meta.url),a=k.state;if(!r.workspaceId)return[];const o=t.select(a,r.workspaceId),l=s.loadTerminalMetadata(r.workspaceId),p=new Set,m=[];for(const h of o)p.add(h.id),m.push({id:h.id,name:i.select(a,r.workspaceId,h.id)});for(const h of l)p.has(h.terminalId)||(p.add(h.terminalId),m.push({id:h.terminalId,name:h.title||b.terminal_quakeOverlay_terminal_fallback()}));if(m.length===0)return[];const d=e?["terminal","term"].some(h=>h.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(h)):!1;return(e&&!d?m.filter(h=>g(e,h.name)!==null):m).slice(0,10).map((h,f)=>({id:h.id,type:"terminal",label:h.name,subtitle:b.chat_mentions_terminalIndex_subtitle({index:f+1}),description:b.chat_mentions_terminalOutput_description(),icon:"💻",uri:`devspace://terminal/${encodeURIComponent(h.id)}`,meta:{workspaceId:r.workspaceId}}))}catch(s){return _.debug("[TerminalProvider] Failed to get terminals:",s),[]}}}class de{constructor(){u(this,"id","script");u(this,"triggers",["@script","@scripts"])}async search(e,r){try{const{selectScriptEntries:s}=await y(async()=>{const{selectScriptEntries:o}=await import("./eJwA1uvO.js");return{selectScriptEntries:o}},__vite__mapDeps([43,12,13,2,14,15,4,8,1,16,6,3,44,19,20,21,22,7,9,23,24,0,5,10,25,26,45,29,28,46,47,48,49,33,50,51,31]),import.meta.url);if(!r.workspaceId)return[];const t=s.select(k.state,r.workspaceId);if(t.length===0)return[];const n=e?["script","scripts"].some(o=>o.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(o)):!1;return(e&&!n?t.filter(o=>g(e,o.name)!==null||g(e,M(o))!==null):t).slice(0,10).map(o=>{const l=o.runtime.status,p=x(l)?b.chat_mentions_scriptRunning_label():l==="exited"?b.chat_mentions_scriptExited_label():b.chat_mentions_scriptIdle_label();return{id:o.id,type:"script",label:o.name,subtitle:`${p} · ${M(o)}`,description:b.chat_mentions_scriptOutput_description(),icon:"▶️",uri:`devspace://script/${encodeURIComponent(o.id)}`,meta:{workspaceId:r.workspaceId,command:o.command,status:x(l)?"ok":l==="exited"?"warning":void 0}}})}catch(s){return _.debug("[ScriptProvider] Failed to get scripts:",s),[]}}}class pe{constructor(){u(this,"id","specialist");u(this,"triggers",["@specialist","@spec"])}async search(e,r){try{const s=j.select(k.state);return!s||s.length===0?[]:s.filter(t=>e?g(e,t.name)!==null||g(e,t.id)!==null||g(e,t.description)!==null||g(e,"specialist")!==null:!0).map(t=>({id:`specialist-${t.id}`,type:"specialist",label:t.name,subtitle:t.description,description:t.description,icon:"👤",uri:`devspace://specialist/${encodeURIComponent(t.id)}`,group:"Specialists",score:.8,meta:{promptToken:`specialist/${t.id}`}})).slice(0,10)}catch(s){return _.debug("[SpecialistProvider] Failed to get specialists:",s),[]}}}class he{constructor(){u(this,"id","agent");u(this,"triggers",["@agent"])}async search(e,r){try{const{selectAllWorkspaceAgents:s}=await y(async()=>{const{selectAllWorkspaceAgents:a}=await import("./BJbm_MWC.js").then(o=>o.eb);return{selectAllWorkspaceAgents:a}},__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,7,9,23,24,0,5,10,25,26]),import.meta.url),t=r.workspaceId;if(!t)return[];const i=s.select(k.state,t);if(i.length===0)return[];const n=[];for(const a of i){const o=a.id,l=a.name||o,p=a.metadata?.specialist||"";let m=a.metadata?.specialistName||"";if(p&&!m){const f=U.select(k.state,p);f&&(m=f.name)}if(e){const f=g(e,l)!==null,P=g(e,"agent")!==null,I=m&&g(e,m)!==null,S=p&&g(e,p)!==null;if(!f&&!P&&!I&&!S)continue}const w=a.isStreaming?"responding":a.status||"active",d=[];m?d.push(m):d.push("Agent"),d.push(w);const v=a.messages?.length||0;v>0&&d.push(`${v} msg${v!==1?"s":""}`);const h=a.lastActivity||a.lastModified;h&&!a.isStreaming&&d.push(z(new Date(h))),n.push({id:o,type:"agent",label:l,subtitle:d.join(" · "),description:m?b.chat_mentions_specialistAgentInWorkspace_description({specialist:m}):b.chat_mentions_agentInWorkspace_description(),icon:"🤖",uri:`devspace://agent/${encodeURIComponent(o)}`,group:b.chat_mentions_agents_group(),score:.7,meta:{workspaceId:t}})}return n.slice(0,10)}catch(s){return _.debug("[AgentProvider] Failed to get agents:",s),[]}}}class me{constructor(){u(this,"providers",new Map);u(this,"defaultProviders",[]);this.register(new Z),this.register(new ee),this.register(new ie),this.register(new ne),this.register(new oe),this.register(new ae),this.register(new ce),this.register(new le),this.register(new ue),this.register(new de),this.register(new he),this.register(new pe),this.register(new q),this.defaultProviders=["file","folder","note","terminal","script","agent","specialist","member"]}register(e){this.providers.set(e.id,e),_.debug("[ProviderRegistry] Registered provider:",e.id)}unregister(e){this.providers.delete(e)}get(e){return this.providers.get(e)}getAll(){return Array.from(this.providers.values())}getDefault(){return this.defaultProviders.map(e=>this.providers.get(e)).filter(Boolean)}getByTrigger(e){return Array.from(this.providers.values()).filter(r=>r.triggers?.includes(e))}async searchAll(e,r){const s=e.startsWith("@")?this.getByTrigger(e.split(" ")[0]):this.getDefault();return(await Promise.all(s.map(i=>i.search(e,r)))).flat()}}const Te=new me;export{Ie as D,Ce as M,Q as a,ke as i,Te as p,R as s};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/xzksWQ-h.js","/app/immutable/chunks/CTowDLQa.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/YLhFQnIu.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/nodes/0.qPBEcapg.js","/app/immutable/chunks/CrpUtGFn.js","/app/immutable/chunks/YeOAvjnW.js","/app/immutable/chunks/CBbdbU2x.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/D5wnbxHp.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BUsnh1ZW.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DwbEs_9r.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/_3Ca9E4W.js","/app/immutable/chunks/DQ8CqY9L.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/assets/0.DSZNT9Vm.css","/app/immutable/nodes/1.Bi3sNEdL.js","/app/immutable/chunks/CrvtnK13.js","/app/immutable/chunks/CoAfXTHr.js","/app/immutable/chunks/gwv5JQYH.js","/app/immutable/chunks/DwGyIIXK.js","/app/immutable/chunks/BQhBnAuP.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/oBIu7LTI.js","/app/immutable/chunks/Cw2fqKk9.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/DJivXy66.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.CSj73FLT.js","/app/immutable/chunks/ELYZilX0.js","/app/immutable/chunks/BJbm_MWC.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DIEHuZ8f.js","/app/immutable/chunks/BlAMrm5X.js","/app/immutable/chunks/DUFN_Pzm.js","/app/immutable/chunks/CACH34FC.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Bq7euxCs.js","/app/immutable/chunks/qm1BBGRe.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/0Kw0mmSW.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/ByBw1QkA.js","/app/immutable/chunks/D-aEx3GL.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/mUNs8NSR.js","/app/immutable/chunks/L3K71tUU.js","/app/immutable/chunks/COVS9Crf.js","/app/immutable/chunks/Idk978zJ.js","/app/immutable/chunks/CAiDxi6i.js","/app/immutable/chunks/iAKTK0Nq.js","/app/immutable/chunks/cpPIph2M.js","/app/immutable/chunks/CZB2ndi9.js","/app/immutable/chunks/D48_y-cl.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/FLpsgWeB.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/CwCTYQp7.js","/app/immutable/chunks/CzjElr82.js","/app/immutable/chunks/CCzan1r_.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/BfQFKWzJ.js","/app/immutable/chunks/HLNbJ-7M.js","/app/immutable/chunks/D7AX9X0W.js","/app/immutable/chunks/DPmNtGFj.js","/app/immutable/chunks/Bmm_g7di.js","/app/immutable/chunks/DlfbUU6o.js","/app/immutable/chunks/DWqaYE81.js","/app/immutable/chunks/DuoQQplG.js","/app/immutable/chunks/Bsdq-idi.js","/app/immutable/chunks/C4t02ICg.js","/app/immutable/chunks/DLO_0egf.js","/app/immutable/chunks/D49zWKPf.js","/app/immutable/chunks/kvtKUeBe.js","/app/immutable/chunks/KtEuoG00.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/WvHbj6rB.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/zxxqPN9_.js","/app/immutable/chunks/VcnbZvDh.js","/app/immutable/chunks/Mmc_61iE.js","/app/immutable/chunks/Co9CFvqw.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/gJJMUdOI.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/BoUQWR1c.js","/app/immutable/chunks/j5ppcWWU.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/BIfjK4Wy.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/B-bGycam.js","/app/immutable/chunks/lZ7zkdkp.js","/app/immutable/chunks/BQ8hOnRo.js","/app/immutable/chunks/BpwKnO7b.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/DNZCPKpq.js","/app/immutable/chunks/DkERMj5B.js","/app/immutable/chunks/DwiE5WsI.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/CIlqcFRn.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/UsbmbYa0.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/DkJYBjJg.js","/app/immutable/chunks/CIWQMI37.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/AXzVloaq.js","/app/immutable/chunks/DPG1HUgG.js","/app/immutable/chunks/Bstq-Mm1.js","/app/immutable/chunks/DRLJuUwT.js","/app/immutable/chunks/BK0IkwFP.js","/app/immutable/chunks/ItBm4ElA.js","/app/immutable/chunks/Bj4IsLvN.js","/app/immutable/chunks/CGdXewiA.js","/app/immutable/chunks/D2kIeaeO.js","/app/immutable/chunks/Jk9a4xPx.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/B1TtNV9x.js","/app/immutable/chunks/B7esq_NU.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/CmhKJ6Ie.js","/app/immutable/chunks/CV5qbjYN.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/B9GWGWit.js","/app/immutable/chunks/T-5C1GqS.js","/app/immutable/chunks/DtkIwON_.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/BVYisuIY.js","/app/immutable/chunks/DdLy5J3P.js","/app/immutable/chunks/BxTCsbTV.js","/app/immutable/chunks/CisSEUth.js","/app/immutable/chunks/BNDTLRE1.js","/app/immutable/chunks/BH3eRhvI.js","/app/immutable/chunks/D3waRWO1.js","/app/immutable/chunks/Bm3beBRj.js","/app/immutable/chunks/cPsAlOmH.js","/app/immutable/chunks/CHApvLbz.js","/app/immutable/chunks/BoZ2kJyE.js","/app/immutable/chunks/Ci75CkmK.js","/app/immutable/chunks/BpXDXz8J.js","/app/immutable/chunks/B9BALnhr.js","/app/immutable/chunks/CTVz-pXS.js","/app/immutable/chunks/CG28d89U.js","/app/immutable/chunks/B0RPkrmZ.js","/app/immutable/chunks/Chg0KuUy.js","/app/immutable/chunks/CfaCrhAh.js","/app/immutable/chunks/DPjr22dV.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/Hi2H4bj8.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/DEQDOTA1.js","/app/immutable/chunks/scTXKJzg.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/CtDIyzmZ.js","/app/immutable/chunks/d028N8d2.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/CKcb8dge.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/CZex5Cac.js","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/Bt11uxE8.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/BLhJfI63.js","/app/immutable/chunks/CrwLq8nY.js","/app/immutable/chunks/xPYDsdm4.js","/app/immutable/assets/CompactWorkspaceInitializer.i4vCnRqW.css","/app/immutable/chunks/Dd3UnPYB.js","/app/immutable/chunks/CbQYR4R2.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/BalE-G27.js","/app/immutable/chunks/DezlVQ1h.js","/app/immutable/chunks/CggFXl4B.js","/app/immutable/chunks/DkOk28fz.js","/app/immutable/chunks/CY4ZK6xA.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/CGcJ5lqH.js","/app/immutable/chunks/DxnZvDv0.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/C2zt__Wj.js","/app/immutable/chunks/DGj-492Z.js","/app/immutable/chunks/x2AHvZeQ.js","/app/immutable/chunks/BP-cDE7g.js","/app/immutable/chunks/D_5u7gP_.js","/app/immutable/chunks/CfIVswBm.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/BaOiWDrc.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/BbIcudMY.js","/app/immutable/assets/2.DIadQLJA.css","/app/immutable/nodes/3.BUbQ5Tes.js","/app/immutable/nodes/4.Byn29Mul.js","/app/immutable/nodes/5.CMHzkmR-.js","/app/immutable/nodes/6.N0CPg2uE.js","/app/immutable/chunks/C7ajdkO4.js","/app/immutable/chunks/R5lmOJFS.js","/app/immutable/chunks/DP0K41jk.js","/app/immutable/assets/PanelContentRenderer.C1wFV-kd.css","/app/immutable/chunks/jAIXVFR4.js","/app/immutable/chunks/Blt813S0.js","/app/immutable/chunks/D1R1FWjP.js","/app/immutable/chunks/CxMr7p-O.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/DLttsd3i.js","/app/immutable/chunks/BOyRg328.js","/app/immutable/chunks/CrL2Nk6a.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/ClQE9kQf.js","/app/immutable/chunks/Lk7a_7W9.js","/app/immutable/chunks/XK8g38bo.js","/app/immutable/chunks/Bbae4OrB.js","/app/immutable/chunks/DxSE2XEK.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/9fNNDfgo.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/Y2a1lhL9.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/B6-aVrNf.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/CeeeYtIE.js","/app/immutable/chunks/B79iAtSu.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/oHUzFHtp.js","/app/immutable/chunks/RTRAqswA.js","/app/immutable/chunks/CqGq5PHb.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/CbQ8NVeY.js","/app/immutable/chunks/6uD0LviT.js","/app/immutable/chunks/CULu7FSf.js","/app/immutable/chunks/DgtVALrr.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/BvjgIPau.js","/app/immutable/chunks/BtchneSc.js","/app/immutable/chunks/6NStP9u7.js","/app/immutable/chunks/BRRnx9NG.js","/app/immutable/chunks/D_AhXAPc.js","/app/immutable/chunks/DmWvRjk6.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/BLMhg4vm.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/B3ziY5oo.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/assets/ResizablePanel.Bi3i2_fe.css","/app/immutable/assets/6.DBgC2kSL.css","/app/immutable/nodes/7.4Szvqobl.js","/app/immutable/assets/7.D6ebrVTb.css","/app/immutable/nodes/8.BKw9KMbS.js","/app/immutable/chunks/CoCy46Yy.js","/app/immutable/nodes/9.BBJWosck.js","/app/immutable/chunks/Cs-DtA5c.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/chunks/DU1ubslo.js","/app/immutable/chunks/Ii0VTY5h.js","/app/immutable/assets/9.CfWCtgHG.css","/app/immutable/nodes/10.DHyl6QAs.js","/app/immutable/chunks/DmpdpJAo.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/DaMlaKH_.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/Cq8MD_3v.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/cEIzYo-d.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/tVmNccZ-.js","/app/immutable/chunks/r2R1I-D0.js","/app/immutable/assets/10.xCAPscJx.css","/app/immutable/nodes/11.pqpLvrmB.js","/app/immutable/assets/11.BO7QC36g.css","/app/immutable/nodes/12.C5GV0W_U.js","/app/immutable/nodes/13.BpCKbOND.js","/app/immutable/assets/13.CF5xLHXq.css","/app/immutable/nodes/14.DomreN-2.js","/app/immutable/chunks/pHYq50Ny.js","/app/immutable/assets/14.BuZANxI8.css","/app/immutable/nodes/15.CKbUOFrf.js","/app/immutable/assets/15.CWppUCpM.css","/app/immutable/nodes/16.BcdRdVBS.js","/app/immutable/assets/16.DBFWhlfB.css","/app/immutable/nodes/17.C5h-oNNo.js","/app/immutable/nodes/18.vgJOUK1N.js","/app/immutable/nodes/19.3QLuvvWY.js","/app/immutable/assets/19.Cznk2DRv.css","/app/immutable/nodes/20.CuOgTm-x.js","/app/immutable/assets/20.BdP13STv.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/xzksWQ-h.js","/app/immutable/chunks/CTowDLQa.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/YLhFQnIu.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/nodes/0.D7LoWNFt.js","/app/immutable/chunks/CrpUtGFn.js","/app/immutable/chunks/YeOAvjnW.js","/app/immutable/chunks/CBbdbU2x.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/D5wnbxHp.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BUsnh1ZW.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DwbEs_9r.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/_3Ca9E4W.js","/app/immutable/chunks/DJKfrY8C.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/assets/0.DSZNT9Vm.css","/app/immutable/nodes/1.T820Pcdi.js","/app/immutable/chunks/DL95yZo7.js","/app/immutable/chunks/C9wBKZsV.js","/app/immutable/chunks/gwv5JQYH.js","/app/immutable/chunks/DwGyIIXK.js","/app/immutable/chunks/BQhBnAuP.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/oBIu7LTI.js","/app/immutable/chunks/Cw2fqKk9.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/DJivXy66.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.CXHTT9vG.js","/app/immutable/chunks/ELYZilX0.js","/app/immutable/chunks/BJbm_MWC.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DIEHuZ8f.js","/app/immutable/chunks/WoPFTWyQ.js","/app/immutable/chunks/CB2VKTMK.js","/app/immutable/chunks/BJfXDnA-.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Bq7euxCs.js","/app/immutable/chunks/BGh7-lCM.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/0Kw0mmSW.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/CxCmx5S0.js","/app/immutable/chunks/CV7mOfKN.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/mUNs8NSR.js","/app/immutable/chunks/L3K71tUU.js","/app/immutable/chunks/COVS9Crf.js","/app/immutable/chunks/Idk978zJ.js","/app/immutable/chunks/BKqd3SpJ.js","/app/immutable/chunks/iAKTK0Nq.js","/app/immutable/chunks/CSdAdmLZ.js","/app/immutable/chunks/CZB2ndi9.js","/app/immutable/chunks/D48_y-cl.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/FLpsgWeB.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/CwCTYQp7.js","/app/immutable/chunks/CzjElr82.js","/app/immutable/chunks/DW_seDlm.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/BfQFKWzJ.js","/app/immutable/chunks/HLNbJ-7M.js","/app/immutable/chunks/D7AX9X0W.js","/app/immutable/chunks/DPmNtGFj.js","/app/immutable/chunks/D8bY4ERR.js","/app/immutable/chunks/B-9zOddN.js","/app/immutable/chunks/DWqaYE81.js","/app/immutable/chunks/eJwA1uvO.js","/app/immutable/chunks/Bsdq-idi.js","/app/immutable/chunks/D6Q-N0-R.js","/app/immutable/chunks/DLO_0egf.js","/app/immutable/chunks/D49zWKPf.js","/app/immutable/chunks/kvtKUeBe.js","/app/immutable/chunks/KtEuoG00.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/WvHbj6rB.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/zxxqPN9_.js","/app/immutable/chunks/VcnbZvDh.js","/app/immutable/chunks/Mmc_61iE.js","/app/immutable/chunks/Co9CFvqw.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/Dgmou2n8.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/BoUQWR1c.js","/app/immutable/chunks/j5ppcWWU.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/BIfjK4Wy.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/B-bGycam.js","/app/immutable/chunks/lZ7zkdkp.js","/app/immutable/chunks/BQ8hOnRo.js","/app/immutable/chunks/BpwKnO7b.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/DQZhKtkC.js","/app/immutable/chunks/DkERMj5B.js","/app/immutable/chunks/DwiE5WsI.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/CIlqcFRn.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/UsbmbYa0.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/DkJYBjJg.js","/app/immutable/chunks/CIWQMI37.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/AXzVloaq.js","/app/immutable/chunks/DPG1HUgG.js","/app/immutable/chunks/Bstq-Mm1.js","/app/immutable/chunks/DRLJuUwT.js","/app/immutable/chunks/FhJRiT1S.js","/app/immutable/chunks/ItBm4ElA.js","/app/immutable/chunks/Bj4IsLvN.js","/app/immutable/chunks/CGdXewiA.js","/app/immutable/chunks/D2kIeaeO.js","/app/immutable/chunks/Jk9a4xPx.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/B1TtNV9x.js","/app/immutable/chunks/B7esq_NU.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/CmhKJ6Ie.js","/app/immutable/chunks/CV5qbjYN.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/Bf-yBg_f.js","/app/immutable/chunks/Dcnwzgw6.js","/app/immutable/chunks/DtkIwON_.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/BVYisuIY.js","/app/immutable/chunks/DdLy5J3P.js","/app/immutable/chunks/BxTCsbTV.js","/app/immutable/chunks/CisSEUth.js","/app/immutable/chunks/BNDTLRE1.js","/app/immutable/chunks/BH3eRhvI.js","/app/immutable/chunks/D3waRWO1.js","/app/immutable/chunks/2S2jdRaL.js","/app/immutable/chunks/cPsAlOmH.js","/app/immutable/chunks/D_j4wRX_.js","/app/immutable/chunks/BoZ2kJyE.js","/app/immutable/chunks/Ci75CkmK.js","/app/immutable/chunks/BpXDXz8J.js","/app/immutable/chunks/B9BALnhr.js","/app/immutable/chunks/cHm1EnSF.js","/app/immutable/chunks/CG28d89U.js","/app/immutable/chunks/B0RPkrmZ.js","/app/immutable/chunks/yMNZVIZN.js","/app/immutable/chunks/CfaCrhAh.js","/app/immutable/chunks/DPjr22dV.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/Hi2H4bj8.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/DEQDOTA1.js","/app/immutable/chunks/scTXKJzg.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/C64UuXDx.js","/app/immutable/chunks/d028N8d2.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/CKcb8dge.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/CZex5Cac.js","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/DTtB67Qo.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/BLhJfI63.js","/app/immutable/chunks/CrwLq8nY.js","/app/immutable/chunks/xPYDsdm4.js","/app/immutable/assets/CompactWorkspaceInitializer.i4vCnRqW.css","/app/immutable/chunks/Dd3UnPYB.js","/app/immutable/chunks/CXCilPkm.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/BalE-G27.js","/app/immutable/chunks/DezlVQ1h.js","/app/immutable/chunks/CggFXl4B.js","/app/immutable/chunks/DkOk28fz.js","/app/immutable/chunks/D9Hjcszu.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/CGcJ5lqH.js","/app/immutable/chunks/DxnZvDv0.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/C2zt__Wj.js","/app/immutable/chunks/aoPstOyp.js","/app/immutable/chunks/x2AHvZeQ.js","/app/immutable/chunks/BP-cDE7g.js","/app/immutable/chunks/D_5u7gP_.js","/app/immutable/chunks/CfIVswBm.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/BaOiWDrc.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/BbIcudMY.js","/app/immutable/assets/2.DIadQLJA.css","/app/immutable/nodes/3.CafUSpEU.js","/app/immutable/nodes/4.wtpkgmx_.js","/app/immutable/nodes/5.D26Atcdx.js","/app/immutable/nodes/6.uEepPxKF.js","/app/immutable/chunks/C7ajdkO4.js","/app/immutable/chunks/R5lmOJFS.js","/app/immutable/chunks/DP0K41jk.js","/app/immutable/assets/PanelContentRenderer.C1wFV-kd.css","/app/immutable/chunks/jAIXVFR4.js","/app/immutable/chunks/BpPZlehu.js","/app/immutable/chunks/BQmS_6pd.js","/app/immutable/chunks/7lcZWflB.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/DLttsd3i.js","/app/immutable/chunks/BOyRg328.js","/app/immutable/chunks/CrL2Nk6a.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/oVV8Q_Hb.js","/app/immutable/chunks/Lk7a_7W9.js","/app/immutable/chunks/CA_3gGLy.js","/app/immutable/chunks/Dde5tnWd.js","/app/immutable/chunks/DxSE2XEK.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/DCkRL43S.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/Y2a1lhL9.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/B1lrKll_.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/CeeeYtIE.js","/app/immutable/chunks/BgV6mURq.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/BlaJXdkI.js","/app/immutable/chunks/RTRAqswA.js","/app/immutable/chunks/DIcuhccs.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/BevVqXi3.js","/app/immutable/chunks/CffZor2V.js","/app/immutable/chunks/Yz7dkp3Z.js","/app/immutable/chunks/DgtVALrr.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/BvjgIPau.js","/app/immutable/chunks/BtchneSc.js","/app/immutable/chunks/6NStP9u7.js","/app/immutable/chunks/BRRnx9NG.js","/app/immutable/chunks/Ddc7chXR.js","/app/immutable/chunks/Be5fV6fq.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/BLMhg4vm.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/CB-znH8P.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/assets/ResizablePanel.Bi3i2_fe.css","/app/immutable/assets/6.DBgC2kSL.css","/app/immutable/nodes/7.D-r8R1wS.js","/app/immutable/assets/7.D6ebrVTb.css","/app/immutable/nodes/8.ELuFvMEz.js","/app/immutable/chunks/BtUFJg3H.js","/app/immutable/nodes/9.tuk9n1NJ.js","/app/immutable/chunks/Ck3g194G.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/chunks/DU1ubslo.js","/app/immutable/chunks/Ii0VTY5h.js","/app/immutable/assets/9.CfWCtgHG.css","/app/immutable/nodes/10.TooAJmth.js","/app/immutable/chunks/DmpdpJAo.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/CP7zJE2f.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/Cq8MD_3v.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/cEIzYo-d.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/tVmNccZ-.js","/app/immutable/chunks/DzI8RUwZ.js","/app/immutable/assets/10.xCAPscJx.css","/app/immutable/nodes/11.YCt8uKtA.js","/app/immutable/assets/11.BO7QC36g.css","/app/immutable/nodes/12.C5GV0W_U.js","/app/immutable/nodes/13.BpCKbOND.js","/app/immutable/assets/13.CF5xLHXq.css","/app/immutable/nodes/14.DomreN-2.js","/app/immutable/chunks/pHYq50Ny.js","/app/immutable/assets/14.BuZANxI8.css","/app/immutable/nodes/15.BaajVSfs.js","/app/immutable/assets/15.CWppUCpM.css","/app/immutable/nodes/16.BcdRdVBS.js","/app/immutable/assets/16.DBFWhlfB.css","/app/immutable/nodes/17.C5h-oNNo.js","/app/immutable/nodes/18.vgJOUK1N.js","/app/immutable/nodes/19.BBw49idM.js","/app/immutable/assets/19.Cznk2DRv.css","/app/immutable/nodes/20.CuOgTm-x.js","/app/immutable/assets/20.BdP13STv.css"])))=>i.map(i=>d[i]);
2
2
  import{_ as o,bm as X,t as lt,bo as f,bw as dt,b as pt,c as ft}from"../chunks/YLhFQnIu.js";import{l as x}from"../chunks/BdWqymET.js";import{s as gt}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as Tt,bk as bt,aD as m,bH as F,c0 as ht,ay as T,bS as It,W as c,bn as At,bV as U,aA as g,a7 as I,c9 as y,a5 as Ot,bA as Rt,aB as q,b$ as Pt,b_ as Dt,bO as Lt}from"../chunks/3SdAC2_C.js";import{i as k}from"../chunks/YeOAvjnW.js";import{c as V}from"../chunks/DwGyIIXK.js";import{b as S}from"../chunks/Dn334wJv.js";const yt=async()=>{window.location.pathname.startsWith("/sandbox")||await o(()=>import("../chunks/xzksWQ-h.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},Vt=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function St(t){return t instanceof Error&&t.name==="TypeError"&&Vt.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const K=500,wt=8,xt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,kt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=kt.exec(t)?.[0]??"",a=t.slice(0,t.length-e.length),n=a.indexOf("://"),i=a.slice(0,n),s=a.slice(n+3).split("#")[0].split("?")[0],_=s.indexOf("/"),l=_===-1?s:s.slice(0,_),d=l.slice(l.lastIndexOf("@")+1),p=_===-1?"":s.slice(_);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function w(t){const e=t.replace(xt,Ct);return e.length>K?`${e.slice(0,K)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
3
3
  `).slice(0,wt).map(w).join(`
4
- `)}function Mt(t,e){if(t instanceof Error)return{name:w(String(t.name)),message:w(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const a="message"in t?t.message:void 0;return{name:"object",message:typeof a=="string"?w(a):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:w(String(t)),stack:null,routeId:e}}let Z=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("no diff result available"))return{message:""};if(a.includes("isInHiddenArea"))return{message:""};if(a.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("Not found: /index.html")||a.includes("Not found"))return Z?(A++,A>=Ft&&(x.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{x.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),x.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(Z=!0,A=0,{message:""});A=0}return gt(t)?{message:""}:St(t)?{message:""}:(x.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Yt={};var zt=q('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=q("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let a=f(e,"stores",7),n=f(e,"page",7),i=f(e,"constructors",7),s=f(e,"components",23,()=>[]),_=f(e,"form",7),l=f(e,"data_0",7,null),d=f(e,"data_1",7,null),p=f(e,"data_2",7,null);vt(()=>a().page.set(n())),Tt(()=>{a(),n(),i(),s(),_(),l(),d(),p(),a().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=a().page.subscribe(()=>{m(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=y(()=>i()[2]);var tt={get stores(){return a()},set stores(r){a(r),g()},get page(){return n()},set page(r){n(r),g()},get constructors(){return i()},set constructors(r){i(r),g()},get components(){return s()},set components(r=[]){s(r),g()},get form(){return _()},set form(r){_(r),g()},get data_0(){return l()},set data_0(r=null){l(r),g()},get data_1(){return d()},set data_1(r=null){d(r),g()},get data_2(){return p()},set data_2(r=null){p(r),g()},$set:dt,$on:(r,u)=>pt(e,r,u)},G=Bt(),W=T(G);{var et=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params},children:(L,$t)=>{var H=I(),_t=T(H);V(_t,()=>m(Y),(ut,mt)=>{S(mt(ut,{get data(){return p()},get form(){return _()},get params(){return n().params}}),ct=>s()[2]=ct,()=>s()?.[2])}),c(L,H)},$$slots:{default:!0}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)},it=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)};k(st,h=>{i()[2]?h(nt):h(it,-1)})}c(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)},rt=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)};k(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var u=zt(),E=Ot(u);{var R=v=>{var b=Pt();Dt(()=>Lt(b,m(B))),c(v,b)};k(E,v=>{m(z)&&v(R)})}Rt(u),c(r,u)};k(ot,r=>{m(O)&&r(at)})}return c(t,G),At(tt)}const te=ft(J),ee=[()=>o(()=>import("../nodes/0.qPBEcapg.js"),__vite__mapDeps([6,4,5,7,8,9,10,11,3,12,13,14,15,16,2,17,18,19,20,21,22,23]),import.meta.url),()=>o(()=>import("../nodes/1.Bi3sNEdL.js"),__vite__mapDeps([24,4,5,8,25,26,27,28,7,29,3,30,31,32,33,34,11,1,2,35,9]),import.meta.url),()=>o(()=>import("../nodes/2.CSj73FLT.js"),__vite__mapDeps([36,4,5,7,37,8,9,29,3,30,27,28,31,33,38,2,12,13,14,15,16,11,39,34,1,35,20,40,25,41,21,22,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,32,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,19,101,102,103,10,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,18,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,26,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211]),import.meta.url),()=>o(()=>import("../nodes/3.BUbQ5Tes.js"),__vite__mapDeps([212,4,5,8,65,31,7,29,3,30,25,26,27,28,32,33,34,11,1,2,35,9,43,44,42,45,38,12,13,14,15,16,39,20,40,46,21,22,41]),import.meta.url),()=>o(()=>import("../nodes/4.Byn29Mul.js"),__vite__mapDeps([213,4,5,7,10,11,3,47,12,13,14,15,16,2,38,27,28,8,29,30,31,39,34,1,35,20,40,48,44,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,32,33,9,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107,108,109]),import.meta.url),()=>o(()=>import("../nodes/5.CMHzkmR-.js"),__vite__mapDeps([214,4,5,7,202,203,12,13,14,15,3,16,2,11,27,28,8,29,30,31,204,151,130,129,32,33,34,1,35,9,128,125,112,65,86,126,64,121,122,89,90,87,67,88,131,63,44,201,108,109,10,47,38,39,20,40,48,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,66,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107]),import.meta.url),()=>o(()=>import("../nodes/6.N0CPg2uE.js"),__vite__mapDeps([215,4,5,66,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,114,82,56,46,57,62,63,64,65,67,68,112,86,87,88,124,125,126,121,122,89,90,97,111,113,115,116,117,118,119,120,123,127,44,53,54,48,21,22,55,51,128,131,132,133,134,135,136,137,43,25,42,45,41,138,139,188,163,164,165,166,78,52,50,49,79,154,155,148,156,157,158,110,159,141,18,142,143,160,161,162,167,168,169,149,170,151,171,189,180,91,220,221,222,197,223,224,225,73,226,74,227,228,229,140,77,144,230,96,231,232,233,234,195,235,80,95,187,236,237,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,26,251,183,252,253,254,72,75,76,61,69,255,256,150,257,208,209,258,259,93,260,261,262,263,264,265,184,102,185,266,267,268,269,192,92,172,270,271,193,272,37,204,273,274,179,275]),import.meta.url),()=>o(()=>import("../nodes/7.4Szvqobl.js"),__vite__mapDeps([276,4,5,8,31,7,29,3,30,33,38,2,12,13,14,15,16,11,27,28,39,34,1,35,20,40,44,26,25,50,51,48,49,46,223,9,65,224,62,32,63,64,66,67,68,160,54,141,18,128,125,112,86,126,121,122,89,90,87,88,129,130,131,97,53,21,22,55,56,57,58,142,143,137,127,116,117,225,73,226,124,74,227,149,228,229,52,154,155,135,115,136,148,156,157,158,110,70,111,113,114,118,119,120,123,132,133,134,43,42,45,41,138,139,159,161,162,163,164,165,166,167,168,169,170,151,171,140,77,144,78,79,230,96,231,232,233,234,195,235,80,95,187,236,237,197,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,82,188,189,180,91,251,183,252,253,254,256,98,99,277]),import.meta.url),()=>o(()=>import("../nodes/8.BKw9KMbS.js"),__vite__mapDeps([278,4,5,66,114,279,21,14,22,41,13,12,15,3,7,16,2,11,62,8,29,30,32,33,31,34,1,35,28,9,40,63,64,27,65,67,68,130,220]),import.meta.url),()=>o(()=>import("../nodes/9.BBJWosck.js"),__vite__mapDeps([280,4,5,8,9,31,7,29,3,30,33,32,34,11,1,2,35,28,86,121,65,112,122,89,90,111,113,66,114,115,27,87,67,88,116,117,118,119,120,123,124,125,126,64,97,62,40,63,12,13,14,15,16,68,127,44,53,38,39,20,54,48,21,22,55,56,46,57,58,51,128,129,130,131,132,133,134,135,136,137,43,25,42,45,41,70,138,139,173,147,148,151,142,143,149,26,60,158,281,282,204,79,160,161,227,234,195,83,71,50,49,251,265,184,183,102,164,165,150,169,81,279,155,156,261,262,100,92,283,91,284,285,82,69,106,268,157,167,286,229]),import.meta.url),()=>o(()=>import("../nodes/10.DHyl6QAs.js"),__vite__mapDeps([287,4,5,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,26,25,56,46,57,181,65,44,182,59,52,53,54,48,21,22,55,51,50,49,60,61,62,63,64,66,67,68,69,96,97,132,114,115,112,86,133,155,131,121,122,89,90,135,136,148,156,157,158,128,125,126,87,88,154,110,111,113,116,117,118,119,120,123,124,127,134,137,43,42,45,41,138,139,159,141,18,142,143,160,161,162,163,164,165,166,167,168,169,149,170,151,171,183,184,140,77,144,178,185,37,186,95,260,99,197,190,82,281,282,204,93,81,272,80,102,231,273,264,232,230,233,234,195,235,227,187,236,265,266,249,274,176,205,175,105,106,107,108,109,177,206,207,288,201,289,290,94,291,153,150,100,292,293,101,294,295,296,257,297,199,298,172,262,193,299]),import.meta.url),()=>o(()=>import("../nodes/11.pqpLvrmB.js"),__vite__mapDeps([300,4,5,8,42,25,31,7,29,3,30,28,12,13,14,15,16,2,11,27,33,190,117,32,34,1,35,9,120,65,112,86,62,40,63,64,66,67,68,110,97,258,193,156,125,292,293,101,38,39,20,288,201,108,109,107,54,48,44,45,161,289,118,103,296,102,301]),import.meta.url),()=>o(()=>import("../nodes/12.C5GV0W_U.js"),__vite__mapDeps([302,4,5,66,114,27,28,8,7,29,3,30,31]),import.meta.url),()=>o(()=>import("../nodes/13.BpCKbOND.js"),__vite__mapDeps([303,4,5,8,9,32,7,29,3,30,33,31,34,11,1,2,35,28,27,130,220,304]),import.meta.url),()=>o(()=>import("../nodes/14.DomreN-2.js"),__vite__mapDeps([305,4,5,8,29,3,7,30,34,11,1,2,35,130,220,33,31,32,28,9,306,13,174,197,112,65,86,40,116,117,132,66,114,115,133,134,135,136,27,131,121,122,64,89,90,307]),import.meta.url),()=>o(()=>import("../nodes/15.CKbUOFrf.js"),__vite__mapDeps([308,4,5,8,55,12,13,14,15,3,7,16,2,11,56,46,57,38,27,28,29,30,31,39,34,1,35,20,40,58,51,130,220,33,47,48,44,49,50,52,53,54,21,22,59,60,61,62,32,9,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,10,104,105,106,107,108,109,245,195,141,18,128,125,112,126,121,122,129,131,142,143,137,127,116,117,210,118,191,246,145,113,114,115,119,123,124,164,165,178,163,166,188,154,155,135,136,148,156,157,158,110,111,120,132,133,134,138,139,159,160,161,162,167,168,169,149,170,151,171,189,285,255,225,140,144,223,224,226,227,228,229,230,231,232,233,234,235,187,236,237,197,238,239,206,240,241,242,243,244,247,248,249,194,196,250,26,180,251,183,252,253,254,256,150,257,208,209,258,259,306,309]),import.meta.url),()=>o(()=>import("../nodes/16.BcdRdVBS.js"),__vite__mapDeps([310,4,5,29,3,7,30,34,11,1,2,35,130,220,33,8,31,65,73,225,28,16,197,32,9,76,77,40,54,48,44,311,229]),import.meta.url),()=>o(()=>import("../nodes/17.C5h-oNNo.js"),__vite__mapDeps([312,4,5,8,9,29,3,7,30,34,11,1,2,35,130,220,33,267,31,97,226,15,16,32,28,86,87,67,88,124,125,112,65,126,64,121,122,89,90,27,54,48,44,49,74,73,225,227,149,228,229,123,40,268,197,75,269]),import.meta.url),()=>o(()=>import("../nodes/18.vgJOUK1N.js"),__vite__mapDeps([313,4,5,29,3,7,30,34,11,1,2,35,130,220,33]),import.meta.url),()=>o(()=>import("../nodes/19.3QLuvvWY.js"),__vite__mapDeps([314,4,5,8,54,11,3,48,44,27,28,7,29,30,31,32,33,34,1,2,35,9,12,13,14,15,16,65,187,80,38,39,20,40,55,56,46,57,58,51,180,91,63,85,113,66,114,115,112,86,87,67,88,116,117,118,119,161,128,125,126,64,121,122,89,90,129,130,131,137,146,147,134,135,136,148,142,143,149,71,133,100,43,25,42,45,21,22,41,315]),import.meta.url),()=>o(()=>import("../nodes/20.CuOgTm-x.js"),__vite__mapDeps([316,4,5,66,29,3,7,30,34,11,1,2,35,130,220,33,8,216,28,203,12,13,14,15,16,32,31,9,217,129,27,218,40,38,39,20,70,58,84,219,273,249,167,57,22,104,317]),import.meta.url)],re=[],oe={"/(app)":[6,[2],[3]],"/(app)/agent/[id]":[7,[2],[3]],"/(app)/desktop-control-agent":[8,[2],[3]],"/desktop-overlay":[13],"/dev-console":[14],"/dock-annotation":[16],"/dock-capture-editor":[17],"/dock":[15],"/frame":[18],"/hud":[19,[4]],"/(app)/settings":[9,[2],[3]],"/tab-window/[id]":[20,[5]],"/(app)/workspace/creating":[12,[2],[3]],"/(app)/workspace/[id]":[10,[2],[3]],"/(app)/workspace/[id]/files":[11,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:yt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),ae=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),se=!1,ne=(t,e)=>Gt[t](e),ie=()=>o(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{ne as decode,Gt as decoders,oe as dictionary,ae as encoders,ie as get_error_template,se as hash,Q as hooks,Yt as matchers,ee as nodes,te as root,re as server_loads};
4
+ `)}function Mt(t,e){if(t instanceof Error)return{name:w(String(t.name)),message:w(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const a="message"in t?t.message:void 0;return{name:"object",message:typeof a=="string"?w(a):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:w(String(t)),stack:null,routeId:e}}let Z=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("no diff result available"))return{message:""};if(a.includes("isInHiddenArea"))return{message:""};if(a.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("Not found: /index.html")||a.includes("Not found"))return Z?(A++,A>=Ft&&(x.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{x.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),x.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(Z=!0,A=0,{message:""});A=0}return gt(t)?{message:""}:St(t)?{message:""}:(x.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Yt={};var zt=q('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=q("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let a=f(e,"stores",7),n=f(e,"page",7),i=f(e,"constructors",7),s=f(e,"components",23,()=>[]),_=f(e,"form",7),l=f(e,"data_0",7,null),d=f(e,"data_1",7,null),p=f(e,"data_2",7,null);vt(()=>a().page.set(n())),Tt(()=>{a(),n(),i(),s(),_(),l(),d(),p(),a().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=a().page.subscribe(()=>{m(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=y(()=>i()[2]);var tt={get stores(){return a()},set stores(r){a(r),g()},get page(){return n()},set page(r){n(r),g()},get constructors(){return i()},set constructors(r){i(r),g()},get components(){return s()},set components(r=[]){s(r),g()},get form(){return _()},set form(r){_(r),g()},get data_0(){return l()},set data_0(r=null){l(r),g()},get data_1(){return d()},set data_1(r=null){d(r),g()},get data_2(){return p()},set data_2(r=null){p(r),g()},$set:dt,$on:(r,u)=>pt(e,r,u)},G=Bt(),W=T(G);{var et=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params},children:(L,$t)=>{var H=I(),_t=T(H);V(_t,()=>m(Y),(ut,mt)=>{S(mt(ut,{get data(){return p()},get form(){return _()},get params(){return n().params}}),ct=>s()[2]=ct,()=>s()?.[2])}),c(L,H)},$$slots:{default:!0}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)},it=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)};k(st,h=>{i()[2]?h(nt):h(it,-1)})}c(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)},rt=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)};k(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var u=zt(),E=Ot(u);{var R=v=>{var b=Pt();Dt(()=>Lt(b,m(B))),c(v,b)};k(E,v=>{m(z)&&v(R)})}Rt(u),c(r,u)};k(ot,r=>{m(O)&&r(at)})}return c(t,G),At(tt)}const te=ft(J),ee=[()=>o(()=>import("../nodes/0.D7LoWNFt.js"),__vite__mapDeps([6,4,5,7,8,9,10,11,3,12,13,14,15,16,2,17,18,19,20,21,22,23]),import.meta.url),()=>o(()=>import("../nodes/1.T820Pcdi.js"),__vite__mapDeps([24,4,5,8,25,26,27,28,7,29,3,30,31,32,33,34,11,1,2,35,9]),import.meta.url),()=>o(()=>import("../nodes/2.CXHTT9vG.js"),__vite__mapDeps([36,4,5,7,37,8,9,29,3,30,27,28,31,33,38,2,12,13,14,15,16,11,39,34,1,35,20,40,25,41,21,22,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,32,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,19,101,102,103,10,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,18,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,26,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211]),import.meta.url),()=>o(()=>import("../nodes/3.CafUSpEU.js"),__vite__mapDeps([212,4,5,8,65,31,7,29,3,30,25,26,27,28,32,33,34,11,1,2,35,9,43,44,42,45,38,12,13,14,15,16,39,20,40,46,21,22,41]),import.meta.url),()=>o(()=>import("../nodes/4.wtpkgmx_.js"),__vite__mapDeps([213,4,5,7,10,11,3,47,12,13,14,15,16,2,38,27,28,8,29,30,31,39,34,1,35,20,40,48,44,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,32,33,9,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107,108,109]),import.meta.url),()=>o(()=>import("../nodes/5.D26Atcdx.js"),__vite__mapDeps([214,4,5,7,202,203,12,13,14,15,3,16,2,11,27,28,8,29,30,31,204,151,130,129,32,33,34,1,35,9,128,125,112,65,86,126,64,121,122,89,90,87,67,88,131,63,44,201,108,109,10,47,38,39,20,40,48,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,66,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107]),import.meta.url),()=>o(()=>import("../nodes/6.uEepPxKF.js"),__vite__mapDeps([215,4,5,66,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,114,82,56,46,57,62,63,64,65,67,68,112,86,87,88,124,125,126,121,122,89,90,97,111,113,115,116,117,118,119,120,123,127,44,53,54,48,21,22,55,51,128,131,132,133,134,135,136,137,43,25,42,45,41,138,139,188,163,164,165,166,78,52,50,49,79,154,155,148,156,157,158,110,159,141,18,142,143,160,161,162,167,168,169,149,170,151,171,189,180,91,220,221,222,197,223,224,225,73,226,74,227,228,229,140,77,144,230,96,231,232,233,234,195,235,80,95,187,236,237,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,26,251,183,252,253,254,72,75,76,61,69,255,256,150,257,208,209,258,259,93,260,261,262,263,264,265,184,102,185,266,267,268,269,192,92,172,270,271,193,272,37,204,273,274,179,275]),import.meta.url),()=>o(()=>import("../nodes/7.D-r8R1wS.js"),__vite__mapDeps([276,4,5,8,31,7,29,3,30,33,38,2,12,13,14,15,16,11,27,28,39,34,1,35,20,40,44,26,25,50,51,48,49,46,223,9,65,224,62,32,63,64,66,67,68,160,54,141,18,128,125,112,86,126,121,122,89,90,87,88,129,130,131,97,53,21,22,55,56,57,58,142,143,137,127,116,117,225,73,226,124,74,227,149,228,229,52,154,155,135,115,136,148,156,157,158,110,70,111,113,114,118,119,120,123,132,133,134,43,42,45,41,138,139,159,161,162,163,164,165,166,167,168,169,170,151,171,140,77,144,78,79,230,96,231,232,233,234,195,235,80,95,187,236,237,197,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,82,188,189,180,91,251,183,252,253,254,256,98,99,277]),import.meta.url),()=>o(()=>import("../nodes/8.ELuFvMEz.js"),__vite__mapDeps([278,4,5,66,114,279,21,14,22,41,13,12,15,3,7,16,2,11,62,8,29,30,32,33,31,34,1,35,28,9,40,63,64,27,65,67,68,130,220]),import.meta.url),()=>o(()=>import("../nodes/9.tuk9n1NJ.js"),__vite__mapDeps([280,4,5,8,9,31,7,29,3,30,33,32,34,11,1,2,35,28,86,121,65,112,122,89,90,111,113,66,114,115,27,87,67,88,116,117,118,119,120,123,124,125,126,64,97,62,40,63,12,13,14,15,16,68,127,44,53,38,39,20,54,48,21,22,55,56,46,57,58,51,128,129,130,131,132,133,134,135,136,137,43,25,42,45,41,70,138,139,173,147,148,151,142,143,149,26,60,158,281,282,204,79,160,161,227,234,195,83,71,50,49,251,265,184,183,102,164,165,150,169,81,279,155,156,261,262,100,92,283,91,284,285,82,69,106,268,157,167,286,229]),import.meta.url),()=>o(()=>import("../nodes/10.TooAJmth.js"),__vite__mapDeps([287,4,5,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,26,25,56,46,57,181,65,44,182,59,52,53,54,48,21,22,55,51,50,49,60,61,62,63,64,66,67,68,69,96,97,132,114,115,112,86,133,155,131,121,122,89,90,135,136,148,156,157,158,128,125,126,87,88,154,110,111,113,116,117,118,119,120,123,124,127,134,137,43,42,45,41,138,139,159,141,18,142,143,160,161,162,163,164,165,166,167,168,169,149,170,151,171,183,184,140,77,144,178,185,37,186,95,260,99,197,190,82,281,282,204,93,81,272,80,102,231,273,264,232,230,233,234,195,235,227,187,236,265,266,249,274,176,205,175,105,106,107,108,109,177,206,207,288,201,289,290,94,291,153,150,100,292,293,101,294,295,296,257,297,199,298,172,262,193,299]),import.meta.url),()=>o(()=>import("../nodes/11.YCt8uKtA.js"),__vite__mapDeps([300,4,5,8,42,25,31,7,29,3,30,28,12,13,14,15,16,2,11,27,33,190,117,32,34,1,35,9,120,65,112,86,62,40,63,64,66,67,68,110,97,258,193,156,125,292,293,101,38,39,20,288,201,108,109,107,54,48,44,45,161,289,118,103,296,102,301]),import.meta.url),()=>o(()=>import("../nodes/12.C5GV0W_U.js"),__vite__mapDeps([302,4,5,66,114,27,28,8,7,29,3,30,31]),import.meta.url),()=>o(()=>import("../nodes/13.BpCKbOND.js"),__vite__mapDeps([303,4,5,8,9,32,7,29,3,30,33,31,34,11,1,2,35,28,27,130,220,304]),import.meta.url),()=>o(()=>import("../nodes/14.DomreN-2.js"),__vite__mapDeps([305,4,5,8,29,3,7,30,34,11,1,2,35,130,220,33,31,32,28,9,306,13,174,197,112,65,86,40,116,117,132,66,114,115,133,134,135,136,27,131,121,122,64,89,90,307]),import.meta.url),()=>o(()=>import("../nodes/15.BaajVSfs.js"),__vite__mapDeps([308,4,5,8,55,12,13,14,15,3,7,16,2,11,56,46,57,38,27,28,29,30,31,39,34,1,35,20,40,58,51,130,220,33,47,48,44,49,50,52,53,54,21,22,59,60,61,62,32,9,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,10,104,105,106,107,108,109,245,195,141,18,128,125,112,126,121,122,129,131,142,143,137,127,116,117,210,118,191,246,145,113,114,115,119,123,124,164,165,178,163,166,188,154,155,135,136,148,156,157,158,110,111,120,132,133,134,138,139,159,160,161,162,167,168,169,149,170,151,171,189,285,255,225,140,144,223,224,226,227,228,229,230,231,232,233,234,235,187,236,237,197,238,239,206,240,241,242,243,244,247,248,249,194,196,250,26,180,251,183,252,253,254,256,150,257,208,209,258,259,306,309]),import.meta.url),()=>o(()=>import("../nodes/16.BcdRdVBS.js"),__vite__mapDeps([310,4,5,29,3,7,30,34,11,1,2,35,130,220,33,8,31,65,73,225,28,16,197,32,9,76,77,40,54,48,44,311,229]),import.meta.url),()=>o(()=>import("../nodes/17.C5h-oNNo.js"),__vite__mapDeps([312,4,5,8,9,29,3,7,30,34,11,1,2,35,130,220,33,267,31,97,226,15,16,32,28,86,87,67,88,124,125,112,65,126,64,121,122,89,90,27,54,48,44,49,74,73,225,227,149,228,229,123,40,268,197,75,269]),import.meta.url),()=>o(()=>import("../nodes/18.vgJOUK1N.js"),__vite__mapDeps([313,4,5,29,3,7,30,34,11,1,2,35,130,220,33]),import.meta.url),()=>o(()=>import("../nodes/19.BBw49idM.js"),__vite__mapDeps([314,4,5,8,54,11,3,48,44,27,28,7,29,30,31,32,33,34,1,2,35,9,12,13,14,15,16,65,187,80,38,39,20,40,55,56,46,57,58,51,180,91,63,85,113,66,114,115,112,86,87,67,88,116,117,118,119,161,128,125,126,64,121,122,89,90,129,130,131,137,146,147,134,135,136,148,142,143,149,71,133,100,43,25,42,45,21,22,41,315]),import.meta.url),()=>o(()=>import("../nodes/20.CuOgTm-x.js"),__vite__mapDeps([316,4,5,66,29,3,7,30,34,11,1,2,35,130,220,33,8,216,28,203,12,13,14,15,16,32,31,9,217,129,27,218,40,38,39,20,70,58,84,219,273,249,167,57,22,104,317]),import.meta.url)],re=[],oe={"/(app)":[6,[2],[3]],"/(app)/agent/[id]":[7,[2],[3]],"/(app)/desktop-control-agent":[8,[2],[3]],"/desktop-overlay":[13],"/dev-console":[14],"/dock-annotation":[16],"/dock-capture-editor":[17],"/dock":[15],"/frame":[18],"/hud":[19,[4]],"/(app)/settings":[9,[2],[3]],"/tab-window/[id]":[20,[5]],"/(app)/workspace/creating":[12,[2],[3]],"/(app)/workspace/[id]":[10,[2],[3]],"/(app)/workspace/[id]/files":[11,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:yt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),ae=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),se=!1,ne=(t,e)=>Gt[t](e),ie=()=>o(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{ne as decode,Gt as decoders,oe as dictionary,ae as encoders,ie as get_error_template,se as hash,Q as hooks,Yt as matchers,ee as nodes,te as root,re as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,s as r}from"../chunks/DL95yZo7.js";export{o as load_css,r as start};
@@ -1 +1 @@
1
- import{t as L,bo as O,bw as I,bs as ee,bq as te,b as N,br as ne,bp as oe}from"../chunks/YLhFQnIu.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as T,W as E,bn as W,aA as R}from"../chunks/3SdAC2_C.js";import{t as $}from"../chunks/CrpUtGFn.js";import{i as ie}from"../chunks/YeOAvjnW.js";import{k as ae}from"../chunks/CBbdbU2x.js";import{w as ce}from"../chunks/BIv0yV05.js";import{Jx as ue}from"../chunks/D5wnbxHp.js";import{z as de,I as B}from"../chunks/Bqd7fdCF.js";import{initAppStore as le}from"../chunks/DwbEs_9r.js";import{J as fe,H as me}from"../chunks/_3Ca9E4W.js";import{i as pe}from"../chunks/DQ8CqY9L.js";const we=!1,ve=!1,ge=!0,Ce=Object.freeze(Object.defineProperty({__proto__:null,csr:ge,prerender:ve,ssr:we},Symbol.toStringTag,{value:"Module"}));function be(e,t,r){const f=le(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const j=3,Y=4,he=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<he||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function Ee(){return document.querySelector("webview:hover")!==null}function Ae(e){e!=="back"&&e!=="forward"||Ee()||S(e)}function q(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function C(e){q(e)||(e.button===j?(e.preventDefault(),S("back")):e.button===Y&&(e.preventDefault(),S("forward")))}function F(e){q(e)||(e.button===j||e.button===Y)&&e.preventDefault()}function ye(e=window){return e.addEventListener("mouseup",C,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",C,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function _e(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function z(e,t){if(new.target)return L({component:z,...e});P(t,!0);const r=()=>ee(m,"$resolvedLocale$",f),[f,p]=te();let s=O(t,"children",7);const l=be(ue,{startSagas:()=>[]},void 0);re(l);const m=fe(),v=me();se(()=>{const n=!pe()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},M=()=>c(!1),k=()=>c(!0),K=v.subscribe(_=>{d=_,a()}),D=window.electronAPI,H=de();let y;a(),n&&(H?y=D?.on?.("window:focus",c):(window.addEventListener("blur",M),window.addEventListener("focus",k)));const Q=_e(document.documentElement),X=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const Z=ye(window),U=window.electronAPI?.on?.(B.APP.HISTORY_NAVIGATE,Ae);return()=>{K(),Q.destroy(),y?D.offById("window:focus",y):n&&!H&&(window.removeEventListener("blur",M),window.removeEventListener("focus",k)),document.documentElement.removeAttribute("data-window-blurred"),X(),Z(),U&&window.electronAPI.offById(B.APP.HISTORY_NAVIGATE,U)}});var u={get children(){return s()},set children(n){s(n),R()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);$(d,()=>s()??T),E(n,o)}),E(e,w);var i=W(u);return p(),i}const x="/dev-console";function Se(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Le(e){return e===G||e.startsWith(`${G}/`)}const V="/frame";function Oe(e){return e===V||e===`${V}/`}function J(e,t){if(new.target)return L({component:J,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(Se(window.location.pathname)||Le(window.location.pathname)||Oe(window.location.pathname));var p={get children(){return r()},set children(u){r(u),R()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);$(g,()=>r()??T),E(u,w)},v=u=>{z(u,{get children(){return r()}})};ie(l,u=>{f?u(m):u(v,-1)})}return E(e,s),W(p)}var Ie=new Set(["$$slots","$$events","$$legacy","children"]);function Ne(e,t){if(new.target)return L({component:Ne,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Ie);var p={get children(){return r()},set children(s){r(s),R()},$set:I,$on:(s,l)=>N(t,s,l)};return J(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);$(v,()=>r()??T),E(s,m)},$$slots:{default:!0}})),W(p)}export{Ne as component,Ce as universal};
1
+ import{t as L,bo as O,bw as I,bs as ee,bq as te,b as N,br as ne,bp as oe}from"../chunks/YLhFQnIu.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as T,W as E,bn as W,aA as R}from"../chunks/3SdAC2_C.js";import{t as $}from"../chunks/CrpUtGFn.js";import{i as ie}from"../chunks/YeOAvjnW.js";import{k as ae}from"../chunks/CBbdbU2x.js";import{w as ce}from"../chunks/BIv0yV05.js";import{Jx as ue}from"../chunks/D5wnbxHp.js";import{z as de,I as B}from"../chunks/Bqd7fdCF.js";import{initAppStore as le}from"../chunks/DwbEs_9r.js";import{J as fe,H as me}from"../chunks/_3Ca9E4W.js";import{i as pe}from"../chunks/DJKfrY8C.js";const we=!1,ve=!1,ge=!0,Ce=Object.freeze(Object.defineProperty({__proto__:null,csr:ge,prerender:ve,ssr:we},Symbol.toStringTag,{value:"Module"}));function be(e,t,r){const f=le(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const j=3,Y=4,he=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<he||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function Ee(){return document.querySelector("webview:hover")!==null}function Ae(e){e!=="back"&&e!=="forward"||Ee()||S(e)}function q(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function C(e){q(e)||(e.button===j?(e.preventDefault(),S("back")):e.button===Y&&(e.preventDefault(),S("forward")))}function F(e){q(e)||(e.button===j||e.button===Y)&&e.preventDefault()}function ye(e=window){return e.addEventListener("mouseup",C,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",C,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function _e(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function z(e,t){if(new.target)return L({component:z,...e});P(t,!0);const r=()=>ee(m,"$resolvedLocale$",f),[f,p]=te();let s=O(t,"children",7);const l=be(ue,{startSagas:()=>[]},void 0);re(l);const m=fe(),v=me();se(()=>{const n=!pe()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},M=()=>c(!1),k=()=>c(!0),K=v.subscribe(_=>{d=_,a()}),D=window.electronAPI,H=de();let y;a(),n&&(H?y=D?.on?.("window:focus",c):(window.addEventListener("blur",M),window.addEventListener("focus",k)));const Q=_e(document.documentElement),X=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const Z=ye(window),U=window.electronAPI?.on?.(B.APP.HISTORY_NAVIGATE,Ae);return()=>{K(),Q.destroy(),y?D.offById("window:focus",y):n&&!H&&(window.removeEventListener("blur",M),window.removeEventListener("focus",k)),document.documentElement.removeAttribute("data-window-blurred"),X(),Z(),U&&window.electronAPI.offById(B.APP.HISTORY_NAVIGATE,U)}});var u={get children(){return s()},set children(n){s(n),R()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);$(d,()=>s()??T),E(n,o)}),E(e,w);var i=W(u);return p(),i}const x="/dev-console";function Se(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Le(e){return e===G||e.startsWith(`${G}/`)}const V="/frame";function Oe(e){return e===V||e===`${V}/`}function J(e,t){if(new.target)return L({component:J,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(Se(window.location.pathname)||Le(window.location.pathname)||Oe(window.location.pathname));var p={get children(){return r()},set children(u){r(u),R()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);$(g,()=>r()??T),E(u,w)},v=u=>{z(u,{get children(){return r()}})};ie(l,u=>{f?u(m):u(v,-1)})}return E(e,s),W(p)}var Ie=new Set(["$$slots","$$events","$$legacy","children"]);function Ne(e,t){if(new.target)return L({component:Ne,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Ie);var p={get children(){return r()},set children(s){r(s),R()},$set:I,$on:(s,l)=>N(t,s,l)};return J(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);$(v,()=>r()??T),E(s,m)},$$slots:{default:!0}})),W(p)}export{Ne as component,Ce as universal};
@@ -1 +1 @@
1
- import{t as W,bw as A,b as D,bm as u,br as R,bp as U}from"../chunks/YLhFQnIu.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as y,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as O}from"../chunks/3SdAC2_C.js";import{i as T}from"../chunks/YeOAvjnW.js";import{g as re}from"../chunks/CrvtnK13.js";import{p as b}from"../chunks/CoAfXTHr.js";import{F as te,cT as ae}from"../chunks/gwv5JQYH.js";import{f as se}from"../chunks/Cw2fqKk9.js";import"../chunks/DJivXy66.js";var oe=O('<p class="text-sm text-subtle"> </p>'),ie=O('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function q(i,o){if(new.target)return W({component:q,...i});E(o,!0);let c=y(()=>b.error),r=y(()=>b.status),v=y(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:A,$on:(l,n)=>D(o,l,n)},j=X(),G=Y(j);{var H=l=>{var n=ie(),F=a(n),S=a(F),x=a(S),z=a(x),I=a(z);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),p=$(d,!0);k(h=>m(p,h),[()=>u.error_page_status_label({status:e(r)})]),_(t,d)};T(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var P=f(w,2),Q=a(P);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var p=ee();k(h=>m(p,h),[()=>u.error_page_reload_button()]),_(t,p)},$$slots:{default:!0}}),s(P),s(S),s(F),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>u.error_page_title(),()=>e(c)?.message||u.error_page_unexpected_fallback()]),_(l,n)};T(G,l=>{e(v)||l(H)})}return _(i,j),N(g)}var le=new Set(["$$slots","$$events","$$legacy"]);function ne(i,o){if(new.target)return W({component:ne,...i});E(o,!0);let c=U(o,le);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(i,R(()=>c)),N(r)}export{ne as component};
1
+ import{t as W,bw as A,b as D,bm as u,br as R,bp as U}from"../chunks/YLhFQnIu.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as y,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as O}from"../chunks/3SdAC2_C.js";import{i as T}from"../chunks/YeOAvjnW.js";import{g as re}from"../chunks/DL95yZo7.js";import{p as b}from"../chunks/C9wBKZsV.js";import{F as te,cT as ae}from"../chunks/gwv5JQYH.js";import{f as se}from"../chunks/Cw2fqKk9.js";import"../chunks/DJivXy66.js";var oe=O('<p class="text-sm text-subtle"> </p>'),ie=O('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function q(i,o){if(new.target)return W({component:q,...i});E(o,!0);let c=y(()=>b.error),r=y(()=>b.status),v=y(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:A,$on:(l,n)=>D(o,l,n)},j=X(),G=Y(j);{var H=l=>{var n=ie(),F=a(n),S=a(F),x=a(S),z=a(x),I=a(z);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),p=$(d,!0);k(h=>m(p,h),[()=>u.error_page_status_label({status:e(r)})]),_(t,d)};T(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var P=f(w,2),Q=a(P);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var p=ee();k(h=>m(p,h),[()=>u.error_page_reload_button()]),_(t,p)},$$slots:{default:!0}}),s(P),s(S),s(F),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>u.error_page_title(),()=>e(c)?.message||u.error_page_unexpected_fallback()]),_(l,n)};T(G,l=>{e(v)||l(H)})}return _(i,j),N(g)}var le=new Set(["$$slots","$$events","$$legacy"]);function ne(i,o){if(new.target)return W({component:ne,...i});E(o,!0);let c=U(o,le);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(i,R(()=>c)),N(r)}export{ne as component};