@vantran-se/openchamber-web 2.4.0 → 2.4.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 (80) hide show
  1. package/dist/assets/{AboutDialog-Dh2Z6Rpo.js → AboutDialog-BItSBkkK.js} +1 -1
  2. package/dist/assets/{ArchiveView-31PVMzC2.js → ArchiveView-CEGi3y1V.js} +1 -1
  3. package/dist/assets/{ChangedPathLabel-CbXts83B.js → ChangedPathLabel-CQNGnF-T.js} +1 -1
  4. package/dist/assets/{CommandPalette-DzOIUvyX.js → CommandPalette-DWX1HV4m.js} +1 -1
  5. package/dist/assets/{DiffView-C6UN20mH.js → DiffView-Be1Xoy_F.js} +1 -1
  6. package/dist/assets/{FilesView-V9SCRZ9-.js → FilesView-DONPk8-K.js} +1 -1
  7. package/dist/assets/{GitView-RJHLEROE.js → GitView-D10y-u46.js} +1 -1
  8. package/dist/assets/{GuestSurfacePane-C9dmI3Di.js → GuestSurfacePane-Cot0OO7x.js} +1 -1
  9. package/dist/assets/{HelpDialog-DyGX9_8h.js → HelpDialog-Bw836_tH.js} +1 -1
  10. package/dist/assets/{InProgressOperationBanner-B3oEOw3O.js → InProgressOperationBanner-saAihIub.js} +1 -1
  11. package/dist/assets/{IntegrationsCatalogView-CwBk0nb-.js → IntegrationsCatalogView-BtdMeTHf.js} +1 -1
  12. package/dist/assets/{JsonTreeView-BnV3bUfi.js → JsonTreeView-BOQC0uTM.js} +1 -1
  13. package/dist/assets/{MarkdownRendererImpl-DwFPVpAe.js → MarkdownRendererImpl-CuZntPVf.js} +1 -1
  14. package/dist/assets/{MemoryDebugPanel-DwNkGEQI.js → MemoryDebugPanel-BZgSuf-z.js} +1 -1
  15. package/dist/assets/{OnboardingScreen-CLGQ5tGv.js → OnboardingScreen-Bx2h2w69.js} +1 -1
  16. package/dist/assets/{OpenCodeStatusDialog-D7ZnJOuR.js → OpenCodeStatusDialog-N9JgIC1p.js} +1 -1
  17. package/dist/assets/{PatchDiff-BriSysUP.js → PatchDiff-Ca_Ci2CX.js} +1 -1
  18. package/dist/assets/{PierreDiffViewer-ToKfUZsI.js → PierreDiffViewer-Ck0P8Q2W.js} +1 -1
  19. package/dist/assets/{PlanView-YOnwcP8k.js → PlanView-dx70wKWR.js} +1 -1
  20. package/dist/assets/{ProjectActionsDialog-C3u320eT.js → ProjectActionsDialog-BS20dYCJ.js} +1 -1
  21. package/dist/assets/{PullRequestComparisonSelector-Cvng5foj.js → PullRequestComparisonSelector-DOW9_VlK.js} +1 -1
  22. package/dist/assets/{RunOverview-CX4EWbX4.js → RunOverview-DtxjzGnX.js} +1 -1
  23. package/dist/assets/{ScheduledTasksDialog-Cg0llpjw.js → ScheduledTasksDialog-HcypGtky.js} +1 -1
  24. package/dist/assets/{SettingsView-C5MS7v4D.js → SettingsView-IBrGwDoM.js} +1 -1
  25. package/dist/assets/{SettingsWindow-ZCLlBZBD.js → SettingsWindow-Bugr9Hmx.js} +1 -1
  26. package/dist/assets/{SourceBoardView-DeQ_gjii.js → SourceBoardView-BD5rmib8.js} +1 -1
  27. package/dist/assets/{SpaceAccessDialog-MzV-zdo9.js → SpaceAccessDialog-BYhp5gfB.js} +1 -1
  28. package/dist/assets/{SpaceApplyDialog-DDxyMT0_.js → SpaceApplyDialog-CC0axZal.js} +1 -1
  29. package/dist/assets/{SpaceRow-sK_fpiHu.js → SpaceRow-DDWTQgfP.js} +1 -1
  30. package/dist/assets/{SpaceSetupOutput-DXkmiL2Y.js → SpaceSetupOutput-BqurG7V4.js} +1 -1
  31. package/dist/assets/{SpacesView-DZNEvbJ7.js → SpacesView-Bcbb9aXY.js} +1 -1
  32. package/dist/assets/{SubmoduleDiffSummary-E0GcoYiO.js → SubmoduleDiffSummary-BS1PSa4l.js} +1 -1
  33. package/dist/assets/{ToolOutputDialog-CKl9iGaM.js → ToolOutputDialog-DXWQ17Fv.js} +1 -1
  34. package/dist/assets/{ToolPartDiffPreview-CRANc7sQ.js → ToolPartDiffPreview-DXRs6cSg.js} +1 -1
  35. package/dist/assets/{UsageStatsView-np-Qgyn0.js → UsageStatsView-DFVydqMY.js} +1 -1
  36. package/dist/assets/{Virtualizer-CgLU97RO.js → Virtualizer-B8rX50qD.js} +1 -1
  37. package/dist/assets/{WalkthroughView-oJlQ42QA.js → WalkthroughView-CECS5lDs.js} +1 -1
  38. package/dist/assets/{WorktreesView-XC8e1Gxk.js → WorktreesView-FH0uzPQG.js} +1 -1
  39. package/dist/assets/{appThemeRegistry-DsBAd3cG.js → appThemeRegistry-CnS_OWEL.js} +1 -1
  40. package/dist/assets/{computeVirtualFileMetrics-tFBUWYu1.js → computeVirtualFileMetrics-rZJ-MSfY.js} +1 -1
  41. package/dist/assets/{decorate-N1FIdwTF.js → decorate-Bbbyq0tX.js} +1 -1
  42. package/dist/assets/{flexokiTheme-qbTuJgIP.js → flexokiTheme-DECIbITo.js} +1 -1
  43. package/dist/assets/{index-DppcIt7q.js → index-DElZNtel.js} +1 -1
  44. package/dist/assets/{initializeSharedPreferences-Cfgz92Al.js → initializeSharedPreferences-C5qncsHs.js} +1 -1
  45. package/dist/assets/{install-iZ64WEBd.js → install-D-H6uk7D.js} +1 -1
  46. package/dist/assets/{isDiffPlainText-DxiX2X7Q.js → isDiffPlainText-DMFSMXcK.js} +1 -1
  47. package/dist/assets/{isFilePlainText-y0Pch-hF.js → isFilePlainText-BQGSJxcX.js} +1 -1
  48. package/dist/assets/{main-BggWUmia.js → main-CcnDurk6.js} +4 -4
  49. package/dist/assets/{main-CcAbEyCv.js → main-DMdUGpFx.js} +2 -2
  50. package/dist/assets/{markdownCore-P3Pd8JpY.js → markdownCore-BwFkWhmZ.js} +1 -1
  51. package/dist/assets/{miniChat-iJHNCDmk.js → miniChat-B8DW3cmv.js} +2 -2
  52. package/dist/assets/{mobile-C1tleU1e.js → mobile-Caqsx1Op.js} +2 -2
  53. package/dist/assets/{moveWorkspacePath-CUn1SV66.js → moveWorkspacePath-By4gjwmW.js} +1 -1
  54. package/dist/assets/{parseDiffFromFile-Phw3Q2Mh.js → parseDiffFromFile-C9ASoy7R.js} +1 -1
  55. package/dist/assets/{pierreDiffTint-J7FoDbyq.js → pierreDiffTint-IfgQ6oty.js} +1 -1
  56. package/dist/assets/{relocateRestoredSession-Ch0D1a0g.js → relocateRestoredSession-DBWTClOj.js} +1 -1
  57. package/dist/assets/{renderElectronMiniChatApp-QPvTS_hc.js → renderElectronMiniChatApp-C5irgP-w.js} +2 -2
  58. package/dist/assets/{renderMobileApp-Ci_S1TJm.js → renderMobileApp-DnyN_ARh.js} +3 -3
  59. package/dist/assets/{restartOpenCode-BE2HLPm1.js → restartOpenCode-VU-OEAvZ.js} +1 -1
  60. package/dist/assets/{runtimeEndpointReset-DcZoNIpr.js → runtimeEndpointReset-BJUtkqal.js} +3 -3
  61. package/dist/assets/{selectionMarkdown-Dw3ME6dV.js → selectionMarkdown-DV_HvvmZ.js} +1 -1
  62. package/dist/assets/{shikiHighlight-3Hs_1ia3.js → shikiHighlight-BKmAuapa.js} +1 -1
  63. package/dist/assets/{space-apply-CvoK3fqX.js → space-apply-Br_BRuH8.js} +1 -1
  64. package/dist/assets/{space-close-B_kflt9L.js → space-close-D_1iLJrX.js} +1 -1
  65. package/dist/assets/{spaceNetwork-ClSGQtiE.js → spaceNetwork-Dcj-qJy-.js} +1 -1
  66. package/dist/assets/{textMateThemeFromAppTheme-kAREvDjp.js → textMateThemeFromAppTheme-Bye_bpEL.js} +1 -1
  67. package/dist/assets/{useAppFontEffects-BZrjCfFw.js → useAppFontEffects-d9vsRNKm.js} +13 -13
  68. package/dist/assets/{useCallableModelProviders-CpxZpJTR.js → useCallableModelProviders-8CrUkERW.js} +1 -1
  69. package/dist/assets/{useDiffFindSurface-D6svD0Z1.js → useDiffFindSurface-sw5jZ-9V.js} +1 -1
  70. package/dist/assets/{useInlineCommentController-CV8dwlO7.js → useInlineCommentController-Cw5IRM5Y.js} +1 -1
  71. package/dist/assets/{useMarkdownLocalAssets-D0S_fJEu.js → useMarkdownLocalAssets-D3a1j44d.js} +1 -1
  72. package/dist/assets/{useRootScrollLock-5OfQ_8IH.js → useRootScrollLock-BWsNuapq.js} +2 -2
  73. package/dist/assets/{useWalkthroughReview-CxCd3Z0I.js → useWalkthroughReview-D7I1H6_J.js} +1 -1
  74. package/dist/assets/{vendor-codemirror-language-data-DsRKCbVv.js → vendor-codemirror-language-data-DP_Bh3S8.js} +2 -2
  75. package/dist/index.html +1 -1
  76. package/dist/mini-chat.html +1 -1
  77. package/dist/mobile.html +1 -1
  78. package/package.json +1 -1
  79. package/server/index.js +2 -1
  80. package/server/lib/guests/service-registry.js +3 -0
@@ -1 +1 @@
1
- import{r as s}from"./vendor-react-BUCujlKS.js";import{e as u,k as p}from"./katex.min-u4DtE8E5.js";import{a1 as f}from"./useAppFontEffects-BZrjCfFw.js";function h(t=!0){const i=f(r=>r.providers),e=u(r=>r.currentDirectory),[c,n]=s.useState(void 0);return s.useEffect(()=>{if(!t)return;let r=!1;return(async()=>{try{const d=e?`/api/small-model?directory=${encodeURIComponent(e)}`:"/api/small-model",o=await p(d,{method:"GET",headers:{Accept:"application/json"}});if(!o.ok)return;const a=await o.json().catch(()=>null);!r&&Array.isArray(a?.authenticatedProviders)&&n(a.authenticatedProviders.filter(l=>typeof l=="string"))}catch{}})(),()=>{r=!0}},[i,e,t]),c}export{h as u};
1
+ import{r as s}from"./vendor-react-BUCujlKS.js";import{e as u,k as p}from"./katex.min-u4DtE8E5.js";import{a1 as f}from"./useAppFontEffects-d9vsRNKm.js";function h(t=!0){const i=f(r=>r.providers),e=u(r=>r.currentDirectory),[c,n]=s.useState(void 0);return s.useEffect(()=>{if(!t)return;let r=!1;return(async()=>{try{const d=e?`/api/small-model?directory=${encodeURIComponent(e)}`:"/api/small-model",o=await p(d,{method:"GET",headers:{Accept:"application/json"}});if(!o.ok)return;const a=await o.json().catch(()=>null);!r&&Array.isArray(a?.authenticatedProviders)&&n(a.authenticatedProviders.filter(l=>typeof l=="string"))}catch{}})(),()=>{r=!0}},[i,e,t]),c}export{h as u};
@@ -1 +1 @@
1
- import{f as de,R as n,j as M}from"./vendor-react-BUCujlKS.js";import{h as me}from"./PierreDiffViewer-ToKfUZsI.js";import{u as pe,N as he,br as fe,I as te,y as ge,B as re,dq as xe,dr as be}from"./useAppFontEffects-BZrjCfFw.js";import"./katex.min-u4DtE8E5.js";const ye="data-diff-find-bar",Pe=t=>{const e=de.c(87),{query:i,onQueryChange:b,total:c,currentIndex:p,isSearching:s,failedCount:E,onNext:g,onPrevious:x,onClose:m,focusNonce:d,className:P}=t,L=E===void 0?0:E,{t:o}=pe(),R=n.useRef(null);let k,C;e[0]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{R.current?.focus()},C=[],e[0]=k,e[1]=C):(k=e[0],C=e[1]),n.useEffect(k,C);let F,y;e[2]!==d?(F=()=>{d&&d>0&&(R.current?.focus(),R.current?.select())},y=[d],e[2]=d,e[3]=F,e[4]=y):(F=e[3],y=e[4]),n.useEffect(F,y);let I;e[5]!==s||e[6]!==i?(I=i.trim().length>0&&!s,e[5]=s,e[6]=i,e[7]=I):I=e[7];const N=I;let h;e[8]!==p||e[9]!==N||e[10]!==o||e[11]!==c?(h=c>0?o("diffFind.countAria",{current:p+1,total:c}):N?o("diffFind.noMatches"):void 0,e[8]=p,e[9]=N,e[10]=o,e[11]=c,e[12]=h):h=e[12];const _=h;let a;e[13]!==s||e[14]!==_||e[15]!==o?(a=s?[_,o("diffFind.searchingAria")].filter(Boolean).join(", "):_,e[13]=s,e[14]=_,e[15]=o,e[16]=a):a=e[16];const l=a;let u;e[17]!==m||e[18]!==g||e[19]!==x?(u=T=>{fe(T)||(T.key==="Enter"?(T.preventDefault(),T.shiftKey?x():g()):T.key==="Escape"&&(T.preventDefault(),m()))},e[17]=m,e[18]=g,e[19]=x,e[20]=u):u=e[20];const S=u;let v;e[21]!==P?(v=he("absolute inset-e-3 top-3 z-40 flex flex-col rounded-lg border border-border/60 bg-[var(--surface-elevated)] px-1.5 py-1 shadow-lg",P),e[21]=P,e[22]=v):v=e[22];let Q;e[23]===Symbol.for("react.memo_cache_sentinel")?(Q=M.jsx(te,{name:"search",className:"ms-0.5 size-3.5 text-muted-foreground"}),e[23]=Q):Q=e[23];let $;e[24]!==b?($=T=>b(T.target.value),e[24]=b,e[25]=$):$=e[25];let j;e[26]!==o?(j=o("diffFind.placeholder"),e[26]=o,e[27]=j):j=e[27];let z;e[28]!==o?(z=o("diffFind.placeholder"),e[28]=o,e[29]=z):z=e[29];let D;e[30]!==S||e[31]!==i||e[32]!==$||e[33]!==j||e[34]!==z?(D=M.jsx(ge,{ref:R,value:i,onChange:$,onKeyDown:S,placeholder:j,"aria-label":z,className:"h-7 w-40 rounded-md px-2 py-0 text-sm md:w-56"}),e[30]=S,e[31]=i,e[32]=$,e[33]=j,e[34]=z,e[35]=D):D=e[35];let B;e[36]!==p||e[37]!==N||e[38]!==s||e[39]!==o||e[40]!==c?(B=N&&c===0?o("diffFind.noMatches"):c>0?`${p+1}/${c}${s?"+":""}`:"",e[36]=p,e[37]=N,e[38]=s,e[39]=o,e[40]=c,e[41]=B):B=e[41];let r;e[42]!==l||e[43]!==B?(r=M.jsx("span",{className:"min-w-12 px-1 text-center typography-micro text-muted-foreground tabular-nums","aria-live":"polite","aria-label":l,children:B}),e[42]=l,e[43]=B,e[44]=r):r=e[44];let f;e[45]!==o?(f=o("diffFind.previousAria"),e[45]=o,e[46]=f):f=e[46];let w;e[47]!==o?(w=o("diffFind.previousAria"),e[47]=o,e[48]=w):w=e[48];const A=c===0;let O;e[49]===Symbol.for("react.memo_cache_sentinel")?(O=M.jsx(te,{name:"arrow-up",className:"size-3.5"}),e[49]=O):O=e[49];let H;e[50]!==x||e[51]!==f||e[52]!==w||e[53]!==A?(H=M.jsx(re,{type:"button",variant:"ghost",size:"sm",className:"size-6 p-0 text-muted-foreground",onClick:x,title:f,"aria-label":w,disabled:A,children:O}),e[50]=x,e[51]=f,e[52]=w,e[53]=A,e[54]=H):H=e[54];let K;e[55]!==o?(K=o("diffFind.nextAria"),e[55]=o,e[56]=K):K=e[56];let W;e[57]!==o?(W=o("diffFind.nextAria"),e[57]=o,e[58]=W):W=e[58];const se=c===0;let Y;e[59]===Symbol.for("react.memo_cache_sentinel")?(Y=M.jsx(te,{name:"arrow-down",className:"size-3.5"}),e[59]=Y):Y=e[59];let q;e[60]!==g||e[61]!==K||e[62]!==W||e[63]!==se?(q=M.jsx(re,{type:"button",variant:"ghost",size:"sm",className:"size-6 p-0 text-muted-foreground",onClick:g,title:K,"aria-label":W,disabled:se,children:Y}),e[60]=g,e[61]=K,e[62]=W,e[63]=se,e[64]=q):q=e[64];let U;e[65]!==o?(U=o("diffFind.closeAria"),e[65]=o,e[66]=U):U=e[66];let J;e[67]!==o?(J=o("diffFind.closeAria"),e[67]=o,e[68]=J):J=e[68];let Z;e[69]===Symbol.for("react.memo_cache_sentinel")?(Z=M.jsx(te,{name:"close",className:"size-3.5"}),e[69]=Z):Z=e[69];let G;e[70]!==m||e[71]!==U||e[72]!==J?(G=M.jsx(re,{type:"button",variant:"ghost",size:"sm",className:"size-6 p-0 text-muted-foreground",onClick:m,title:U,"aria-label":J,children:Z}),e[70]=m,e[71]=U,e[72]=J,e[73]=G):G=e[73];let V;e[74]!==D||e[75]!==r||e[76]!==H||e[77]!==q||e[78]!==G?(V=M.jsxs("div",{className:"flex items-center gap-1",children:[Q,D,r,H,q,G]}),e[74]=D,e[75]=r,e[76]=H,e[77]=q,e[78]=G,e[79]=V):V=e[79];let X;e[80]!==L||e[81]!==o?(X=L>0&&M.jsx("p",{className:"w-0 min-w-full px-1 pb-0.5 typography-micro text-status-warning",children:o("diffFind.failedCount",{count:L})}),e[80]=L,e[81]=o,e[82]=X):X=e[82];let ee;return e[83]!==v||e[84]!==V||e[85]!==X?(ee=M.jsxs("div",{"data-diff-find-bar":"",className:v,children:[V,X]}),e[83]=v,e[84]=V,e[85]=X,e[86]=ee):ee=e[86],ee},Se=/[.*+?^${}()|[\]\\]/g,we=t=>t.replace(Se,"\\$&"),Fe=t=>t.replace(/\r?\n$/,""),Ee=(t,e,i)=>{const b=new RegExp(we(e),i?"g":"gi"),c=[];for(const p of t.matchAll(b))c.push({spanStart:p.index??0,spanLength:p[0].length});return c},ne=(t,e,i,b,c,p,s)=>{if(b<1)return;const E=Fe(c);for(const g of Ee(E,p,s))t.push({filePath:e,side:i,lineNumber:b,spanStart:g.spanStart,spanLength:g.spanLength})},Re=(t,e,i,b)=>{if(i.length===0)return[];const c=b.caseSensitive??!1,p=b.layout==="inline",s=[];for(const E of t.hunks){let g=E.additionStart,x=E.deletionStart;for(const m of E.hunkContent){if(m.type==="context"){for(let d=0;d<m.lines;d+=1)p||ne(s,e,"deletions",x+d,t.deletionLines[m.deletionLineIndex+d],i,c),ne(s,e,"additions",g+d,t.additionLines[m.additionLineIndex+d],i,c);g+=m.lines,x+=m.lines;continue}for(let d=0;d<m.deletions;d+=1)ne(s,e,"deletions",x+d,t.deletionLines[m.deletionLineIndex+d],i,c);x+=m.deletions;for(let d=0;d<m.additions;d+=1)ne(s,e,"additions",g+d,t.additionLines[m.additionLineIndex+d],i,c);g+=m.additions}}return s},ve=120,_e=(t,e)=>t&&e?me(t):t,oe=[],ae=(t,e)=>t.filePath===e.filePath&&t.side===e.side&&t.lineNumber===e.lineNumber&&t.spanStart===e.spanStart,ce=(t,e)=>{const i=t.get(e.filePath);return i!==void 0&&i.revision===e.revision},ie=(t,e)=>t.has(e.filePath)&&t.get(e.filePath)===e.revision,le=(t,e)=>{const i=[],b=c=>{for(const p of c){const s=e.get(p.filePath);s?.nestedSources&&s.revision===p.revision?b(s.nestedSources):i.push(p)}};return b(t),i},je=({sources:t,caseSensitive:e=!1})=>{const[i,b]=n.useState(!1),[c,p]=n.useState(""),[s,E]=n.useState(""),[g,x]=n.useState(0),[m,d]=n.useState(()=>new Map),P=n.useRef(m),[L,o]=n.useState(()=>new Map),R=n.useRef(L),k=n.useRef(t);k.current=t;const C=n.useRef(i);C.current=i;const F=n.useRef(!1),y=n.useRef(null),I=n.useCallback(async()=>{if(!F.current){F.current=!0;try{for(;;){if(!C.current)return;const r=le(k.current,P.current).find(O=>!ce(P.current,O)&&!ie(R.current,O));if(!r)return;let f;try{f=await r.load()}catch{const O=new Map(R.current).set(r.filePath,r.revision);R.current=O,o(O);continue}const w=f!==null&&"nestedSources"in f?{revision:r.revision,diff:null,nestedSources:f.nestedSources}:{revision:r.revision,diff:f,nestedSources:null},A=new Map(P.current).set(r.filePath,w);P.current=A,d(A)}}finally{F.current=!1}}},[]);n.useEffect(()=>{i&&I()},[i,I,t]),n.useEffect(()=>{if(c===s)return;const r=window.setTimeout(()=>{E(c),x(0)},ve);return()=>window.clearTimeout(r)},[s,c]);const N=n.useMemo(()=>le(t,m),[m,t]),h=n.useMemo(()=>{if(!i)return oe;const r=s.trim();if(r.length===0)return oe;const f=[];for(const w of N){const A=m.get(w.filePath)?.diff;A&&f.push(...Re(A,w.filePath,r,{caseSensitive:e,layout:w.layout}))}return f},[s,e,i,m,N]),_=n.useRef(h);_.current=h;const[a,l]=n.useState({matches:h,query:s});if(a.matches!==h){const r=a.query===s?a.matches[g]:void 0,f=r?h.findIndex(A=>ae(A,r)):-1,w=f>=0?f:h.length===0?0:Math.min(g,h.length-1);l({matches:h,query:s}),w!==g&&x(w)}const u=n.useCallback(r=>{y.current=null,p(r)},[]),S=n.useCallback(()=>{if(!C.current&&R.current.size>0){const r=new Map;R.current=r,o(r)}b(!0)},[]),v=n.useCallback(()=>{y.current=null,S()},[S]),Q=n.useCallback(()=>{y.current=null,b(!1)},[]),$=n.useCallback((r,f)=>{if(p(r),E(r),S(),f){y.current={...f,query:r};return}y.current=null,x(0)},[S]),j=i&&N.some(r=>!ce(m,r)&&!ie(L,r)),z=i?N.filter(r=>ie(L,r)).length:0;n.useEffect(()=>{const r=y.current;if(!r)return;if(!i||r.query!==s){y.current=null;return}const f=h.findIndex(w=>ae(w,r));if(f>=0){y.current=null,x(h.length===0?0:(f+1)%h.length);return}j||(y.current=null,x(0))},[s,i,j,h]);const D=n.useCallback(()=>{x(r=>{const f=_.current.length;return f===0?0:(r+1)%f})},[]),B=n.useCallback(()=>{x(r=>{const f=_.current.length;return f===0?0:(r-1+f)%f})},[]);return{isOpen:i,open:v,close:Q,query:c,setQuery:u,matches:h,currentIndex:g,currentMatch:h[g]??null,isSearching:j,failedCount:z,next:D,previous:B,openWithQuery:$}},Ce=(t,e)=>t instanceof HTMLElement&&!e?.contains(t)&&(t.isContentEditable||t.matches("input, textarea")),Ne=5e3,Ie="[data-find-surface]",ue=(t,e)=>{if(!(t instanceof Element))return!1;const i=t.closest(Ie);return i!==null&&i!==e},Oe=({find:t,visible:e,rootRef:i,reveal:b})=>{const{isOpen:c,matches:p,currentMatch:s,currentIndex:E,open:g,close:x,openWithQuery:m}=t,d=n.useRef(new Map),[P,L]=n.useState(0),o=n.useRef(b);o.current=b;const R=n.useMemo(()=>{const a=new Map;for(const l of p){const u=a.get(l.filePath);u?u.push(l):a.set(l.filePath,[l])}return a},[p]),k=n.useRef({isOpen:c,currentMatch:s,matchesByFile:R});k.current={isOpen:c,currentMatch:s,matchesByFile:R};const C=n.useCallback((a,l)=>{const u=k.current,S=u.currentMatch;if(!u.isOpen||!S||S.filePath!==a){l.setFindHighlights([],0);return}const v=u.matchesByFile.get(a)??[];l.setFindHighlights(v,v.indexOf(S))},[]),F=n.useRef(null),y=n.useCallback(()=>{const a=F.current;a?.frame!=null&&window.cancelAnimationFrame(a.frame),F.current=null},[]),I=n.useCallback(a=>{const l=F.current;l?.frame!=null&&window.cancelAnimationFrame(l.frame);const u={match:a,frame:null,deadline:performance.now()+Ne};F.current=u;const S=()=>{if(u.frame=null,F.current!==u)return;if(d.current.get(a.filePath)?.scrollToLine({lineNumber:a.lineNumber,side:a.side,align:"center"})){F.current=null;return}performance.now()<u.deadline&&(u.frame=window.requestAnimationFrame(S))};u.frame=window.requestAnimationFrame(S)},[]);n.useEffect(()=>y,[y]);const N=n.useCallback((a,l)=>{if(!l){d.current.delete(a);return}d.current.set(a,l),k.current.isOpen&&C(a,l);const u=F.current;u&&u.match.filePath===a&&I(u.match)},[C,I]);n.useEffect(()=>{for(const[a,l]of d.current)C(a,l)},[C,s,c,R]);const h=n.useRef(null);n.useEffect(()=>{if(!c||!s){h.current=null,y();return}const a=`${E}:${s.filePath}:${s.side}:${s.lineNumber}:${s.spanStart}`;h.current!==a&&(h.current=a,o.current(s,d.current.has(s.filePath)),I(s))},[y,E,s,c,I]),xe("find_in_file",a=>{if(!e||a.defaultPrevented||Ce(document.activeElement,i.current)||ue(a.target,i.current))return!1;g(),L(l=>l+1)}),n.useEffect(()=>{if(!e||!c)return;const a=l=>{if(l.key!=="Escape"||l.defaultPrevented||fe(l))return;const{target:u}=l;if(!(u instanceof Node))return;const S=document.activeElement,v=!S||S===document.body;!i.current?.contains(u)&&!v||ue(u,i.current)||!(u instanceof Element&&u.closest(`[${ye}]`)!==null)&&be(u)||(l.preventDefault(),l.stopPropagation(),x())};return window.addEventListener("keydown",a,!0),()=>window.removeEventListener("keydown",a,!0)},[x,c,i,e]);const _=n.useCallback((a,l)=>{m(l.word,{filePath:a,side:l.side,lineNumber:l.lineNumber,spanStart:l.spanStart}),L(u=>u+1)},[m]);return{registerViewer:N,openOnWord:_,focusNonce:P}};export{Pe as D,Oe as a,_e as r,je as u};
1
+ import{f as de,R as n,j as M}from"./vendor-react-BUCujlKS.js";import{h as me}from"./PierreDiffViewer-Ck0P8Q2W.js";import{u as pe,N as he,br as fe,I as te,y as ge,B as re,dq as xe,dr as be}from"./useAppFontEffects-d9vsRNKm.js";import"./katex.min-u4DtE8E5.js";const ye="data-diff-find-bar",Pe=t=>{const e=de.c(87),{query:i,onQueryChange:b,total:c,currentIndex:p,isSearching:s,failedCount:E,onNext:g,onPrevious:x,onClose:m,focusNonce:d,className:P}=t,L=E===void 0?0:E,{t:o}=pe(),R=n.useRef(null);let k,C;e[0]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{R.current?.focus()},C=[],e[0]=k,e[1]=C):(k=e[0],C=e[1]),n.useEffect(k,C);let F,y;e[2]!==d?(F=()=>{d&&d>0&&(R.current?.focus(),R.current?.select())},y=[d],e[2]=d,e[3]=F,e[4]=y):(F=e[3],y=e[4]),n.useEffect(F,y);let I;e[5]!==s||e[6]!==i?(I=i.trim().length>0&&!s,e[5]=s,e[6]=i,e[7]=I):I=e[7];const N=I;let h;e[8]!==p||e[9]!==N||e[10]!==o||e[11]!==c?(h=c>0?o("diffFind.countAria",{current:p+1,total:c}):N?o("diffFind.noMatches"):void 0,e[8]=p,e[9]=N,e[10]=o,e[11]=c,e[12]=h):h=e[12];const _=h;let a;e[13]!==s||e[14]!==_||e[15]!==o?(a=s?[_,o("diffFind.searchingAria")].filter(Boolean).join(", "):_,e[13]=s,e[14]=_,e[15]=o,e[16]=a):a=e[16];const l=a;let u;e[17]!==m||e[18]!==g||e[19]!==x?(u=T=>{fe(T)||(T.key==="Enter"?(T.preventDefault(),T.shiftKey?x():g()):T.key==="Escape"&&(T.preventDefault(),m()))},e[17]=m,e[18]=g,e[19]=x,e[20]=u):u=e[20];const S=u;let v;e[21]!==P?(v=he("absolute inset-e-3 top-3 z-40 flex flex-col rounded-lg border border-border/60 bg-[var(--surface-elevated)] px-1.5 py-1 shadow-lg",P),e[21]=P,e[22]=v):v=e[22];let Q;e[23]===Symbol.for("react.memo_cache_sentinel")?(Q=M.jsx(te,{name:"search",className:"ms-0.5 size-3.5 text-muted-foreground"}),e[23]=Q):Q=e[23];let $;e[24]!==b?($=T=>b(T.target.value),e[24]=b,e[25]=$):$=e[25];let j;e[26]!==o?(j=o("diffFind.placeholder"),e[26]=o,e[27]=j):j=e[27];let z;e[28]!==o?(z=o("diffFind.placeholder"),e[28]=o,e[29]=z):z=e[29];let D;e[30]!==S||e[31]!==i||e[32]!==$||e[33]!==j||e[34]!==z?(D=M.jsx(ge,{ref:R,value:i,onChange:$,onKeyDown:S,placeholder:j,"aria-label":z,className:"h-7 w-40 rounded-md px-2 py-0 text-sm md:w-56"}),e[30]=S,e[31]=i,e[32]=$,e[33]=j,e[34]=z,e[35]=D):D=e[35];let B;e[36]!==p||e[37]!==N||e[38]!==s||e[39]!==o||e[40]!==c?(B=N&&c===0?o("diffFind.noMatches"):c>0?`${p+1}/${c}${s?"+":""}`:"",e[36]=p,e[37]=N,e[38]=s,e[39]=o,e[40]=c,e[41]=B):B=e[41];let r;e[42]!==l||e[43]!==B?(r=M.jsx("span",{className:"min-w-12 px-1 text-center typography-micro text-muted-foreground tabular-nums","aria-live":"polite","aria-label":l,children:B}),e[42]=l,e[43]=B,e[44]=r):r=e[44];let f;e[45]!==o?(f=o("diffFind.previousAria"),e[45]=o,e[46]=f):f=e[46];let w;e[47]!==o?(w=o("diffFind.previousAria"),e[47]=o,e[48]=w):w=e[48];const A=c===0;let O;e[49]===Symbol.for("react.memo_cache_sentinel")?(O=M.jsx(te,{name:"arrow-up",className:"size-3.5"}),e[49]=O):O=e[49];let H;e[50]!==x||e[51]!==f||e[52]!==w||e[53]!==A?(H=M.jsx(re,{type:"button",variant:"ghost",size:"sm",className:"size-6 p-0 text-muted-foreground",onClick:x,title:f,"aria-label":w,disabled:A,children:O}),e[50]=x,e[51]=f,e[52]=w,e[53]=A,e[54]=H):H=e[54];let K;e[55]!==o?(K=o("diffFind.nextAria"),e[55]=o,e[56]=K):K=e[56];let W;e[57]!==o?(W=o("diffFind.nextAria"),e[57]=o,e[58]=W):W=e[58];const se=c===0;let Y;e[59]===Symbol.for("react.memo_cache_sentinel")?(Y=M.jsx(te,{name:"arrow-down",className:"size-3.5"}),e[59]=Y):Y=e[59];let q;e[60]!==g||e[61]!==K||e[62]!==W||e[63]!==se?(q=M.jsx(re,{type:"button",variant:"ghost",size:"sm",className:"size-6 p-0 text-muted-foreground",onClick:g,title:K,"aria-label":W,disabled:se,children:Y}),e[60]=g,e[61]=K,e[62]=W,e[63]=se,e[64]=q):q=e[64];let U;e[65]!==o?(U=o("diffFind.closeAria"),e[65]=o,e[66]=U):U=e[66];let J;e[67]!==o?(J=o("diffFind.closeAria"),e[67]=o,e[68]=J):J=e[68];let Z;e[69]===Symbol.for("react.memo_cache_sentinel")?(Z=M.jsx(te,{name:"close",className:"size-3.5"}),e[69]=Z):Z=e[69];let G;e[70]!==m||e[71]!==U||e[72]!==J?(G=M.jsx(re,{type:"button",variant:"ghost",size:"sm",className:"size-6 p-0 text-muted-foreground",onClick:m,title:U,"aria-label":J,children:Z}),e[70]=m,e[71]=U,e[72]=J,e[73]=G):G=e[73];let V;e[74]!==D||e[75]!==r||e[76]!==H||e[77]!==q||e[78]!==G?(V=M.jsxs("div",{className:"flex items-center gap-1",children:[Q,D,r,H,q,G]}),e[74]=D,e[75]=r,e[76]=H,e[77]=q,e[78]=G,e[79]=V):V=e[79];let X;e[80]!==L||e[81]!==o?(X=L>0&&M.jsx("p",{className:"w-0 min-w-full px-1 pb-0.5 typography-micro text-status-warning",children:o("diffFind.failedCount",{count:L})}),e[80]=L,e[81]=o,e[82]=X):X=e[82];let ee;return e[83]!==v||e[84]!==V||e[85]!==X?(ee=M.jsxs("div",{"data-diff-find-bar":"",className:v,children:[V,X]}),e[83]=v,e[84]=V,e[85]=X,e[86]=ee):ee=e[86],ee},Se=/[.*+?^${}()|[\]\\]/g,we=t=>t.replace(Se,"\\$&"),Fe=t=>t.replace(/\r?\n$/,""),Ee=(t,e,i)=>{const b=new RegExp(we(e),i?"g":"gi"),c=[];for(const p of t.matchAll(b))c.push({spanStart:p.index??0,spanLength:p[0].length});return c},ne=(t,e,i,b,c,p,s)=>{if(b<1)return;const E=Fe(c);for(const g of Ee(E,p,s))t.push({filePath:e,side:i,lineNumber:b,spanStart:g.spanStart,spanLength:g.spanLength})},Re=(t,e,i,b)=>{if(i.length===0)return[];const c=b.caseSensitive??!1,p=b.layout==="inline",s=[];for(const E of t.hunks){let g=E.additionStart,x=E.deletionStart;for(const m of E.hunkContent){if(m.type==="context"){for(let d=0;d<m.lines;d+=1)p||ne(s,e,"deletions",x+d,t.deletionLines[m.deletionLineIndex+d],i,c),ne(s,e,"additions",g+d,t.additionLines[m.additionLineIndex+d],i,c);g+=m.lines,x+=m.lines;continue}for(let d=0;d<m.deletions;d+=1)ne(s,e,"deletions",x+d,t.deletionLines[m.deletionLineIndex+d],i,c);x+=m.deletions;for(let d=0;d<m.additions;d+=1)ne(s,e,"additions",g+d,t.additionLines[m.additionLineIndex+d],i,c);g+=m.additions}}return s},ve=120,_e=(t,e)=>t&&e?me(t):t,oe=[],ae=(t,e)=>t.filePath===e.filePath&&t.side===e.side&&t.lineNumber===e.lineNumber&&t.spanStart===e.spanStart,ce=(t,e)=>{const i=t.get(e.filePath);return i!==void 0&&i.revision===e.revision},ie=(t,e)=>t.has(e.filePath)&&t.get(e.filePath)===e.revision,le=(t,e)=>{const i=[],b=c=>{for(const p of c){const s=e.get(p.filePath);s?.nestedSources&&s.revision===p.revision?b(s.nestedSources):i.push(p)}};return b(t),i},je=({sources:t,caseSensitive:e=!1})=>{const[i,b]=n.useState(!1),[c,p]=n.useState(""),[s,E]=n.useState(""),[g,x]=n.useState(0),[m,d]=n.useState(()=>new Map),P=n.useRef(m),[L,o]=n.useState(()=>new Map),R=n.useRef(L),k=n.useRef(t);k.current=t;const C=n.useRef(i);C.current=i;const F=n.useRef(!1),y=n.useRef(null),I=n.useCallback(async()=>{if(!F.current){F.current=!0;try{for(;;){if(!C.current)return;const r=le(k.current,P.current).find(O=>!ce(P.current,O)&&!ie(R.current,O));if(!r)return;let f;try{f=await r.load()}catch{const O=new Map(R.current).set(r.filePath,r.revision);R.current=O,o(O);continue}const w=f!==null&&"nestedSources"in f?{revision:r.revision,diff:null,nestedSources:f.nestedSources}:{revision:r.revision,diff:f,nestedSources:null},A=new Map(P.current).set(r.filePath,w);P.current=A,d(A)}}finally{F.current=!1}}},[]);n.useEffect(()=>{i&&I()},[i,I,t]),n.useEffect(()=>{if(c===s)return;const r=window.setTimeout(()=>{E(c),x(0)},ve);return()=>window.clearTimeout(r)},[s,c]);const N=n.useMemo(()=>le(t,m),[m,t]),h=n.useMemo(()=>{if(!i)return oe;const r=s.trim();if(r.length===0)return oe;const f=[];for(const w of N){const A=m.get(w.filePath)?.diff;A&&f.push(...Re(A,w.filePath,r,{caseSensitive:e,layout:w.layout}))}return f},[s,e,i,m,N]),_=n.useRef(h);_.current=h;const[a,l]=n.useState({matches:h,query:s});if(a.matches!==h){const r=a.query===s?a.matches[g]:void 0,f=r?h.findIndex(A=>ae(A,r)):-1,w=f>=0?f:h.length===0?0:Math.min(g,h.length-1);l({matches:h,query:s}),w!==g&&x(w)}const u=n.useCallback(r=>{y.current=null,p(r)},[]),S=n.useCallback(()=>{if(!C.current&&R.current.size>0){const r=new Map;R.current=r,o(r)}b(!0)},[]),v=n.useCallback(()=>{y.current=null,S()},[S]),Q=n.useCallback(()=>{y.current=null,b(!1)},[]),$=n.useCallback((r,f)=>{if(p(r),E(r),S(),f){y.current={...f,query:r};return}y.current=null,x(0)},[S]),j=i&&N.some(r=>!ce(m,r)&&!ie(L,r)),z=i?N.filter(r=>ie(L,r)).length:0;n.useEffect(()=>{const r=y.current;if(!r)return;if(!i||r.query!==s){y.current=null;return}const f=h.findIndex(w=>ae(w,r));if(f>=0){y.current=null,x(h.length===0?0:(f+1)%h.length);return}j||(y.current=null,x(0))},[s,i,j,h]);const D=n.useCallback(()=>{x(r=>{const f=_.current.length;return f===0?0:(r+1)%f})},[]),B=n.useCallback(()=>{x(r=>{const f=_.current.length;return f===0?0:(r-1+f)%f})},[]);return{isOpen:i,open:v,close:Q,query:c,setQuery:u,matches:h,currentIndex:g,currentMatch:h[g]??null,isSearching:j,failedCount:z,next:D,previous:B,openWithQuery:$}},Ce=(t,e)=>t instanceof HTMLElement&&!e?.contains(t)&&(t.isContentEditable||t.matches("input, textarea")),Ne=5e3,Ie="[data-find-surface]",ue=(t,e)=>{if(!(t instanceof Element))return!1;const i=t.closest(Ie);return i!==null&&i!==e},Oe=({find:t,visible:e,rootRef:i,reveal:b})=>{const{isOpen:c,matches:p,currentMatch:s,currentIndex:E,open:g,close:x,openWithQuery:m}=t,d=n.useRef(new Map),[P,L]=n.useState(0),o=n.useRef(b);o.current=b;const R=n.useMemo(()=>{const a=new Map;for(const l of p){const u=a.get(l.filePath);u?u.push(l):a.set(l.filePath,[l])}return a},[p]),k=n.useRef({isOpen:c,currentMatch:s,matchesByFile:R});k.current={isOpen:c,currentMatch:s,matchesByFile:R};const C=n.useCallback((a,l)=>{const u=k.current,S=u.currentMatch;if(!u.isOpen||!S||S.filePath!==a){l.setFindHighlights([],0);return}const v=u.matchesByFile.get(a)??[];l.setFindHighlights(v,v.indexOf(S))},[]),F=n.useRef(null),y=n.useCallback(()=>{const a=F.current;a?.frame!=null&&window.cancelAnimationFrame(a.frame),F.current=null},[]),I=n.useCallback(a=>{const l=F.current;l?.frame!=null&&window.cancelAnimationFrame(l.frame);const u={match:a,frame:null,deadline:performance.now()+Ne};F.current=u;const S=()=>{if(u.frame=null,F.current!==u)return;if(d.current.get(a.filePath)?.scrollToLine({lineNumber:a.lineNumber,side:a.side,align:"center"})){F.current=null;return}performance.now()<u.deadline&&(u.frame=window.requestAnimationFrame(S))};u.frame=window.requestAnimationFrame(S)},[]);n.useEffect(()=>y,[y]);const N=n.useCallback((a,l)=>{if(!l){d.current.delete(a);return}d.current.set(a,l),k.current.isOpen&&C(a,l);const u=F.current;u&&u.match.filePath===a&&I(u.match)},[C,I]);n.useEffect(()=>{for(const[a,l]of d.current)C(a,l)},[C,s,c,R]);const h=n.useRef(null);n.useEffect(()=>{if(!c||!s){h.current=null,y();return}const a=`${E}:${s.filePath}:${s.side}:${s.lineNumber}:${s.spanStart}`;h.current!==a&&(h.current=a,o.current(s,d.current.has(s.filePath)),I(s))},[y,E,s,c,I]),xe("find_in_file",a=>{if(!e||a.defaultPrevented||Ce(document.activeElement,i.current)||ue(a.target,i.current))return!1;g(),L(l=>l+1)}),n.useEffect(()=>{if(!e||!c)return;const a=l=>{if(l.key!=="Escape"||l.defaultPrevented||fe(l))return;const{target:u}=l;if(!(u instanceof Node))return;const S=document.activeElement,v=!S||S===document.body;!i.current?.contains(u)&&!v||ue(u,i.current)||!(u instanceof Element&&u.closest(`[${ye}]`)!==null)&&be(u)||(l.preventDefault(),l.stopPropagation(),x())};return window.addEventListener("keydown",a,!0),()=>window.removeEventListener("keydown",a,!0)},[x,c,i,e]);const _=n.useCallback((a,l)=>{m(l.word,{filePath:a,side:l.side,lineNumber:l.lineNumber,spanStart:l.spanStart}),L(u=>u+1)},[m]);return{registerViewer:N,openOnWord:_,focusNonce:P}};export{Pe as D,Oe as a,_e as r,je as u};
@@ -1,2 +1,2 @@
1
- import{f as Me,r as de,j as a,R as he}from"./vendor-react-BUCujlKS.js";import{u as Pe,N as pe,B as We,I as ge,aF as Be,am as qe,bp as Ge,bq as Xe,br as Ue,G as ke,aE as Ve,bs as ve,bt as Ye,bu as Ke,A as Je,bv as Qe}from"./useAppFontEffects-BZrjCfFw.js";import{f as Ze,g as et,h as tt}from"./runtimeEndpointReset-DcZoNIpr.js";import{a5 as nt}from"./katex.min-u4DtE8E5.js";const ze="inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-interactive-hover hover:text-foreground";function yt(n){const e=Me.c(61),{draft:i,onEdit:y,onDelete:f,className:$,maxWidth:A}=n,{t:o}=Pe(),[R,z]=de.useState(!1),K=i.text;let U;e[0]!==K?(U=K.length>150||K.split(`
1
+ import{f as Me,r as de,j as a,R as he}from"./vendor-react-BUCujlKS.js";import{u as Pe,N as pe,B as We,I as ge,aF as Be,am as qe,bp as Ge,bq as Xe,br as Ue,G as ke,aE as Ve,bs as ve,bt as Ye,bu as Ke,A as Je,bv as Qe}from"./useAppFontEffects-d9vsRNKm.js";import{f as Ze,g as et,h as tt}from"./runtimeEndpointReset-BJUtkqal.js";import{a5 as nt}from"./katex.min-u4DtE8E5.js";const ze="inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-interactive-hover hover:text-foreground";function yt(n){const e=Me.c(61),{draft:i,onEdit:y,onDelete:f,className:$,maxWidth:A}=n,{t:o}=Pe(),[R,z]=de.useState(!1),K=i.text;let U;e[0]!==K?(U=K.length>150||K.split(`
2
2
  `).length>3,e[0]=K,e[1]=U):U=e[1];const I=U;let H;e[2]!==$?(H=pe("w-full max-w-[min(100%,calc(var(--oc-context-panel-width,100vw)-var(--oc-editor-gutter-width,0px)))] overflow-hidden rounded-xl border border-[var(--interactive-border)] bg-[var(--surface-elevated)] shadow-none",$),e[2]=$,e[3]=H):H=e[3];const F=A?`${Math.max(200,Math.floor(A))}px`:void 0;let c;e[4]!==F?(c={maxWidth:F},e[4]=F,e[5]=c):c=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u={backgroundColor:"color-mix(in srgb, var(--surface-muted-foreground) 8%, transparent)"},e[6]=u):u=e[6];let s;e[7]!==i.fileLabel?(s=a.jsx("span",{className:"min-w-0 max-w-[200px] truncate text-xs font-medium text-foreground",title:i.fileLabel,children:i.fileLabel}),e[7]=i.fileLabel,e[8]=s):s=e[8];let O;e[9]===Symbol.for("react.memo_cache_sentinel")?(O=a.jsx("span",{className:"text-xs text-muted-foreground",children:"•"}),e[9]=O):O=e[9];let p;e[10]!==i.endLine||e[11]!==i.startLine||e[12]!==o?(p=o("inlineComment.range.lines",{start:i.startLine,end:i.endLine}),e[10]=i.endLine,e[11]=i.startLine,e[12]=o,e[13]=p):p=e[13];const X=i.side?` (${i.side})`:"";let m;e[14]!==p||e[15]!==X?(m=a.jsxs("span",{className:"min-w-0 flex-1 truncate text-xs text-muted-foreground",children:[p,X]}),e[14]=p,e[15]=X,e[16]=m):m=e[16];let W;e[17]===Symbol.for("react.memo_cache_sentinel")?(W={minHeight:0,minWidth:0},e[17]=W):W=e[17];let d;e[18]!==o?(d=o("inlineComment.actions.editComment"),e[18]=o,e[19]=d):d=e[19];let h;e[20]!==o?(h=o("inlineComment.actions.editComment"),e[20]=o,e[21]=h):h=e[21];let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(ge,{name:"pencil",className:"h-3 w-3"}),e[22]=N):N=e[22];let r;e[23]!==y||e[24]!==d||e[25]!==h?(r=a.jsx("button",{type:"button",className:ze,style:W,onClick:y,"aria-label":d,title:h,children:N}),e[23]=y,e[24]=d,e[25]=h,e[26]=r):r=e[26];let D;e[27]===Symbol.for("react.memo_cache_sentinel")?(D={minHeight:0,minWidth:0},e[27]=D):D=e[27];let C;e[28]!==o?(C=o("inlineComment.actions.deleteComment"),e[28]=o,e[29]=C):C=e[29];let _;e[30]!==o?(_=o("inlineComment.actions.deleteComment"),e[30]=o,e[31]=_):_=e[31];let E;e[32]===Symbol.for("react.memo_cache_sentinel")?(E=a.jsx(ge,{name:"close",className:"h-3 w-3"}),e[32]=E):E=e[32];let j;e[33]!==f||e[34]!==C||e[35]!==_?(j=a.jsx("button",{type:"button",className:ze,style:D,onClick:f,"aria-label":C,title:_,children:E}),e[33]=f,e[34]=C,e[35]=_,e[36]=j):j=e[36];let v;e[37]!==m||e[38]!==r||e[39]!==j||e[40]!==s?(v=a.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5",style:u,children:[s,O,m,r,j]}),e[37]=m,e[38]=r,e[39]=j,e[40]=s,e[41]=v):v=e[41];const T=R||!I,w=!R&&I&&"line-clamp-3";let L;e[42]!==w?(L=pe("whitespace-pre-wrap break-words text-sm leading-relaxed text-foreground",w),e[42]=w,e[43]=L):L=e[43];let k;e[44]!==K||e[45]!==L?(k=a.jsx("div",{className:L,children:K}),e[44]=K,e[45]=L,e[46]=k):k=e[46];let S;e[47]!==I||e[48]!==R||e[49]!==o?(S=I&&a.jsx(Ze,{asChild:!0,children:a.jsx(We,{variant:"ghost",size:"sm",className:"mt-1 h-6 w-full justify-start px-0 text-xs text-muted-foreground hover:text-foreground",children:R?a.jsxs(a.Fragment,{children:[a.jsx(ge,{name:"arrow-up-s",className:"me-1 size-3"}),o("inlineComment.actions.showLess")]}):a.jsxs(a.Fragment,{children:[a.jsx(ge,{name:"arrow-down-s",className:"me-1 size-3"}),o("inlineComment.actions.showMore")]})})}),e[47]=I,e[48]=R,e[49]=o,e[50]=S):S=e[50];let M;e[51]===Symbol.for("react.memo_cache_sentinel")?(M=a.jsx(et,{}),e[51]=M):M=e[51];let x;e[52]!==T||e[53]!==k||e[54]!==S?(x=a.jsx("div",{className:"px-3 py-2",children:a.jsxs(tt,{open:T,onOpenChange:z,children:[k,S,M]})}),e[52]=T,e[53]=k,e[54]=S,e[55]=x):x=e[55];let P;return e[56]!==H||e[57]!==v||e[58]!==x||e[59]!==c?(P=a.jsxs("div",{className:H,style:c,"data-comment-card":"true",children:[v,x]}),e[56]=H,e[57]=v,e[58]=x,e[59]=c,e[60]=P):P=e[60],P}const st=120;function Ct(n){const e=Me.c(90),{initialText:i,onTextChange:y,onSave:f,onCancel:$,fileLabel:A,lineRange:o,isEditing:R,className:z,maxWidth:K,bandColor:U,floating:I}=n,H=i===void 0?"":i,F=I===void 0?!1:I,{t:c}=Pe(),{isMobile:u}=Be(),[s,O]=he.useState(H),p=de.useRef(null),X=qe("enter");let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{const t=p.current;t&&(t.style.height="auto",t.style.height=`${Math.min(t.scrollHeight,st)}px`)},e[0]=m):m=e[0];const W=m;let d;e[1]!==y?(d=t=>{O(t),y?.(t)},e[1]=y,e[2]=d):d=e[2];const h=d;let N;e[3]!==s?(N=[s],e[3]=s,e[4]=N):N=e[4],he.useLayoutEffect(W,N);const r=de.useRef(o);let D,C;e[5]!==o?(D=()=>{o&&(r.current=o)},C=[o],e[5]=o,e[6]=D,e[7]=C):(D=e[6],C=e[7]),de.useEffect(D,C);const _=rt;let E;if(e[8]!==A||e[9]!==o||e[10]!==c){const t=_(o);E=[A,t?c("inlineComment.range.lines",{start:t.start,end:t.end}):null].filter(Boolean).join(" • ")||c("inlineComment.actions.comment"),e[8]=A,e[9]=o,e[10]=c,e[11]=E}else E=e[11];const j=E;let v,T;e[12]!==u?(v=()=>{const t=p.current;if(!t)return;t.focus({preventScroll:!0});const Y=t.value.length;t.setSelectionRange(Y,Y),u&&t.scrollIntoView({behavior:"auto",block:"nearest"})},T=[u],e[12]=u,e[13]=v,e[14]=T):(v=e[13],T=e[14]),de.useEffect(v,T);const w=Ge(),L=de.useRef(null);let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{const t=L.current;t!==null&&(L.current=null,p.current?.setSelectionRange(t,t))},e[15]=k):k=e[15];let S;e[16]!==s?(S=[s],e[16]=s,e[17]=S):S=e[17],he.useLayoutEffect(k,S);let M;e[18]!==h||e[19]!==s?(M=(t,Y,Z)=>{const $e=p.current?.value??s;L.current=t+Z.length,h(`${$e.slice(0,t)}${Z}${$e.slice(Y)}`),p.current?.focus()},e[18]=h,e[19]=s,e[20]=M):M=e[20];const x=M;let P;e[21]===Symbol.for("react.memo_cache_sentinel")?(P=()=>p.current?.selectionStart??0,e[21]=P):P=e[21];const ee=P;let V;e[22]!==x||e[23]!==s?(V={text:s,getCaret:ee,replaceRange:x},e[22]=x,e[23]=s,e[24]=V):V=e[24];const g=Xe(V);let l;e[25]!==w||e[26]!==x?(l=t=>{const Y=t.currentTarget,Z=w.takePastedImages(t.clipboardData,Y.value,{start:Y.selectionStart,end:Y.selectionEnd});Z&&(t.preventDefault(),x(Z.from,Z.to,Z.insertion))},e[25]=w,e[26]=x,e[27]=l):l=e[27];const b=l;let B;e[28]!==w||e[29]!==f||e[30]!==s?(B=()=>{s.trim()&&(f(s,_(r.current)),w.attachCitedImages(s))},e[28]=w,e[29]=f,e[30]=s,e[31]=B):B=e[31];const q=B;let J;e[32]!==u||e[33]!==$||e[34]!==q||e[35]!==g?(J=t=>{Ue(t)||g.handleKeyDown(t)||(t.key==="Enter"&&!t.shiftKey&&(!u||t.metaKey||t.ctrlKey)?(t.preventDefault(),q()):t.key==="Escape"&&(t.preventDefault(),$()))},e[32]=u,e[33]=$,e[34]=q,e[35]=g,e[36]=J):J=e[36];const G=J;let Q;e[37]!==q?(Q=t=>{t.stopPropagation(),q()},e[37]=q,e[38]=Q):Q=e[38];const xe=Q,we=!F&&"oc-inline-comment-band px-3 py-2";let te;e[39]!==z||e[40]!==we?(te=pe("w-full max-w-[min(100%,calc(var(--oc-context-panel-width,100vw)-var(--oc-editor-gutter-width,0px)))] font-sans",we,z),e[39]=z,e[40]=we,e[41]=te):te=e[41];const Le=K?`${Math.max(200,Math.floor(K))}px`:void 0,De=F?void 0:U;let ne;e[42]!==Le||e[43]!==De?(ne={maxWidth:Le,backgroundColor:De},e[42]=Le,e[43]=De,e[44]=ne):ne=e[44];const Ae="true",_e=at,je=it,Re=F?"oc-glass-popover oc-glass-floating rounded-3xl ps-4":"oc-raised oc-field rounded-lg bg-[var(--surface-elevated)] ps-3";let se;e[45]!==Re?(se=pe("relative flex items-end gap-2 py-1 pe-1 text-foreground",Re),e[45]=Re,e[46]=se):se=e[46];const He=g.picker,Oe=1;let oe;e[47]!==h||e[48]!==g?(oe=t=>{h(t.target.value),g.sync(t.target.value,t.target.selectionStart)},e[47]=h,e[48]=g,e[49]=oe):oe=e[49];let le;e[50]!==g?(le=t=>g.sync(t.currentTarget.value,t.currentTarget.selectionStart),e[50]=g,e[51]=le):le=e[51];const Ie=u?c("inlineComment.input.placeholderShort"):c("inlineComment.input.placeholder",{shortcut:X}),Ne=u&&"text-base leading-6";let ie;e[52]!==Ne?(ie=pe("min-w-0 flex-1 resize-none bg-transparent py-1.5 text-sm leading-5 text-foreground outline-none placeholder:text-muted-foreground",Ne),e[52]=Ne,e[53]=ie):ie=e[53];let be;e[54]===Symbol.for("react.memo_cache_sentinel")?(be={minHeight:0},e[54]=be):be=e[54];let ae;e[55]!==j||e[56]!==G||e[57]!==b||e[58]!==oe||e[59]!==le||e[60]!==Ie||e[61]!==ie||e[62]!==s?(ae=a.jsx("textarea",{ref:p,rows:Oe,value:s,onChange:oe,onSelect:le,onKeyDown:G,onPaste:b,placeholder:Ie,"aria-label":j,spellCheck:!0,className:ie,style:be}),e[55]=j,e[56]=G,e[57]=b,e[58]=oe,e[59]=le,e[60]=Ie,e[61]=ie,e[62]=s,e[63]=ae):ae=e[63];let ye;e[64]!==s?(ye=s.trim(),e[64]=s,e[65]=ye):ye=e[65];const Ee=!ye,Te=u?"h-9 w-9":"h-8 w-8";let re;e[66]!==Te?(re=pe("mb-0.5 flex shrink-0 items-center justify-center rounded-full bg-[var(--primary-base)] text-[var(--primary-foreground)] transition-opacity duration-150 hover:opacity-90 disabled:opacity-40",Te),e[66]=Te,e[67]=re):re=e[67];let ce;e[68]!==c?(ce=c("inlineComment.actions.comment"),e[68]=c,e[69]=ce):ce=e[69];let me;e[70]!==c?(me=c("inlineComment.actions.comment"),e[70]=c,e[71]=me):me=e[71];let Ce;e[72]===Symbol.for("react.memo_cache_sentinel")?(Ce=a.jsx(ge,{name:"attachment-2",className:"h-4 w-4"}),e[72]=Ce):Ce=e[72];let fe;e[73]!==xe||e[74]!==Ee||e[75]!==re||e[76]!==ce||e[77]!==me?(fe=a.jsx("button",{type:"button",onClick:xe,onPointerDown:lt,onTouchStart:ot,disabled:Ee,className:re,"aria-label":ce,title:me,children:Ce}),e[73]=xe,e[74]=Ee,e[75]=re,e[76]=ce,e[77]=me,e[78]=fe):fe=e[78];let ue;e[79]!==g.picker||e[80]!==se||e[81]!==ae||e[82]!==fe?(ue=a.jsxs("div",{className:se,children:[He,ae,fe]}),e[79]=g.picker,e[80]=se,e[81]=ae,e[82]=fe,e[83]=ue):ue=e[83];let Se;return e[84]!==te||e[85]!==ne||e[86]!==_e||e[87]!==je||e[88]!==ue?(Se=a.jsx("div",{className:te,style:ne,"data-comment-input":Ae,onPointerDown:_e,onTouchStart:je,children:ue}),e[84]=te,e[85]=ne,e[86]=_e,e[87]=je,e[88]=ue,e[89]=Se):Se=e[89],Se}function ot(n){return n.stopPropagation()}function lt(n){return n.stopPropagation()}function it(n){return n.stopPropagation()}function at(n){return n.stopPropagation()}function rt(n){if(!n)return;const e=Math.min(n.start,n.end),i=Math.max(n.start,n.end);return{...n,start:e,end:i}}const ct=n=>{const e=Math.min(n.startLine,n.endLine),i=Math.max(n.startLine,n.endLine);return{...n,startLine:e,endLine:i}},Fe=n=>{const e=Math.min(n.start,n.end),i=Math.max(n.start,n.end);return{...n,start:e,end:i}};function St(n){const e=Me.c(47),{t:i}=Pe(),{source:y,fileLabel:f,language:$,getCodeForRange:A,toStoreRange:o,fromDraftRange:R}=n,z=ke(pt),K=ke(dt),U=Ve();let I;e[0]!==z?(I=l=>z?l.getDirectoryForSession(z):null,e[0]=z,e[1]=I):I=e[1];const H=ke(I),F=ve(ut),c=ve(ft),u=ve(mt),[s,O]=he.useState(null),[p,X]=he.useState(""),[m,W]=he.useState(null),d=z??(K?"draft":null),h=H??U;let N;e:{if(!d||!h){N=null;break e}let l;e[2]!==h||e[3]!==d?(l={directory:h,sessionKey:d},e[2]=h,e[3]=d,e[4]=l):l=e[4],N=l}const r=N;let D;e[5]!==r?(D=r?Ye(nt(),r.directory,r.sessionKey):null,e[5]=r,e[6]=D):D=e[6];const C=D;let _;e[7]!==C?(_=l=>C?l.drafts[C]??Ke:Ke,e[7]=C,e[8]=_):_=e[8];const E=ve(_);let j;e:{if(!r||!f){let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[9]=b):b=e[9],j=b;break e}let l;if(e[10]!==f||e[11]!==E||e[12]!==y){let b;e[14]!==f||e[15]!==y?(b=B=>B.source===y&&B.fileLabel===f,e[14]=f,e[15]=y,e[16]=b):b=e[16],l=E.filter(b),e[10]=f,e[11]=E,e[12]=y,e[13]=l}else l=e[13];j=l}const v=j;let T;e[17]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{O(null),X(""),W(null)},e[17]=T):T=e[17];const w=T;let L;e[18]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{w()},e[18]=L):L=e[18];const k=L;let S;e[19]!==R?(S=l=>{const b=Fe(R(l));O(b),X(l.text),W(l.id)},e[19]=R,e[20]=S):S=e[20];const M=S;let x;e[21]!==m||e[22]!==u||e[23]!==r?(x=l=>{r&&(u(r,l.id),m===l.id&&w())},e[21]=m,e[22]=u,e[23]=r,e[24]=x):x=e[24];const P=x;let ee;e[25]!==F||e[26]!==m||e[27]!==f||e[28]!==A||e[29]!==$||e[30]!==s||e[31]!==y||e[32]!==i||e[33]!==r||e[34]!==o||e[35]!==c?(ee=(l,b)=>{const B=b??s,q=l.trim();if(!B||!q||!f)return;if(!r){Je.error(i("inlineComment.toast.selectSessionToSave"));return}const J=Fe(B),G=ct(o(J)),Q=A(J),xe=!m;m?c(r,m,{fileLabel:f,startLine:G.startLine,endLine:G.endLine,side:G.side,code:Q,language:$,text:q}):F(r,{source:y,fileLabel:f,startLine:G.startLine,endLine:G.endLine,side:G.side,code:Q,language:$,text:q}),w(),xe&&requestAnimationFrame(Qe)},e[25]=F,e[26]=m,e[27]=f,e[28]=A,e[29]=$,e[30]=s,e[31]=y,e[32]=i,e[33]=r,e[34]=o,e[35]=c,e[36]=ee):ee=e[36];const V=ee;let g;return e[37]!==p||e[38]!==P||e[39]!==v||e[40]!==m||e[41]!==R||e[42]!==V||e[43]!==s||e[44]!==d||e[45]!==M?(g={sessionKey:d,drafts:v,selection:s,setSelection:O,commentText:p,setCommentText:X,editingDraftId:m,setEditingDraftId:W,reset:w,cancel:k,startEdit:M,deleteDraft:P,saveComment:V,fromDraftRange:R},e[37]=p,e[38]=P,e[39]=v,e[40]=m,e[41]=R,e[42]=V,e[43]=s,e[44]=d,e[45]=M,e[46]=g):g=e[46],g}function mt(n){return n.removeDraft}function ft(n){return n.updateDraft}function ut(n){return n.addDraft}function dt(n){return n.newSessionDraft?.open}function pt(n){return n.currentSessionId}export{Ct as I,yt as a,Fe as n,St as u};
@@ -1,4 +1,4 @@
1
- import{j as p,f as Re,R as v,c as fe}from"./vendor-react-BUCujlKS.js";import{I as me,a as Ae}from"./useInlineCommentController-CV8dwlO7.js";import{u as Ce,aF as Le,G as pe,aE as Ee,bs as Se,I as Ie,N as ce,cZ as De,bv as je,c_ as _e,c$ as Te,d0 as Me}from"./useAppFontEffects-BZrjCfFw.js";import{a5 as xe,k as Oe}from"./katex.min-u4DtE8E5.js";function et(t){const{drafts:e,editingDraftId:s,commentText:i,onTextChange:l,selection:a,isDragging:w,fileLabel:C,newWidgetId:D,mapDraftToRange:y,onSave:j,onCancel:u,onEdit:O,onDelete:d}=t,b=[];for(const r of e){const L=y(r);if(r.id===s){b.push({afterLine:L.end,id:`edit-${r.id}`,content:p.jsx(me,{initialText:i,onTextChange:l,fileLabel:C,lineRange:L,isEditing:!0,onSave:j,onCancel:u},`edit-${r.id}`)});continue}b.push({afterLine:L.end,id:`card-${r.id}`,content:p.jsx(Ae,{draft:r,onEdit:()=>O(r),onDelete:()=>d(r)},`card-${r.id}`)})}if(a&&!s&&!w){const r={...a,start:Math.min(a.start,a.end),end:Math.max(a.start,a.end)};b.push({afterLine:r.end,id:D,content:p.jsx(me,{initialText:i,onTextChange:l,fileLabel:C,lineRange:r,isEditing:!1,onSave:j,onCancel:u},D)})}return b}function tt(t){const e=Re.c(63),{containerRef:s,filePath:i,fileContent:l}=t,{t:a}=Ce(),{isMobile:w}=Le(),C=pe(Pe),D=pe(Ke),y=Ee(),j=Se(qe),[u,O]=v.useState(null),[d,b]=v.useState(""),[r,L]=v.useState(!1),[k,n]=v.useState(""),m=v.useRef(!1),g=v.useRef(null),h=v.useRef(null),[f,E]=v.useState(null);let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{O(null),b(""),L(!1),m.current=!1,h.current=null,E(null)},e[0]=_):_=e[0];const R=_;let B,G;e[1]!==s?(B=()=>{const o=s.current;if(!o)return;const c=()=>{if(m.current)return;const S=window.getSelection(),H=S?.toString().trim()??"";if(!S||!H||S.rangeCount===0){R();return}const I=S.getRangeAt(0);if(!o.contains(I.commonAncestorContainer)){R();return}const M=I.getBoundingClientRect();h.current=I.cloneRange(),b(H),O({x:M.left+M.width/2,y:M.top-10})},x=S=>{g.current?.contains(S.target)||m.current&&R()};return document.addEventListener("selectionchange",c),document.addEventListener("pointerdown",x),()=>{document.removeEventListener("selectionchange",c),document.removeEventListener("pointerdown",x)}},G=[s,R],e[1]=s,e[2]=B,e[3]=G):(B=e[2],G=e[3]),v.useEffect(B,G);let Q;e[4]!==l?(Q=o=>{const c=K=>l.slice(0,K).split(`
1
+ import{j as p,f as Re,R as v,c as fe}from"./vendor-react-BUCujlKS.js";import{I as me,a as Ae}from"./useInlineCommentController-Cw5IRM5Y.js";import{u as Ce,aF as Le,G as pe,aE as Ee,bs as Se,I as Ie,N as ce,cZ as De,bv as je,c_ as _e,c$ as Te,d0 as Me}from"./useAppFontEffects-d9vsRNKm.js";import{a5 as xe,k as Oe}from"./katex.min-u4DtE8E5.js";function et(t){const{drafts:e,editingDraftId:s,commentText:i,onTextChange:l,selection:a,isDragging:w,fileLabel:C,newWidgetId:D,mapDraftToRange:y,onSave:j,onCancel:u,onEdit:O,onDelete:d}=t,b=[];for(const r of e){const L=y(r);if(r.id===s){b.push({afterLine:L.end,id:`edit-${r.id}`,content:p.jsx(me,{initialText:i,onTextChange:l,fileLabel:C,lineRange:L,isEditing:!0,onSave:j,onCancel:u},`edit-${r.id}`)});continue}b.push({afterLine:L.end,id:`card-${r.id}`,content:p.jsx(Ae,{draft:r,onEdit:()=>O(r),onDelete:()=>d(r)},`card-${r.id}`)})}if(a&&!s&&!w){const r={...a,start:Math.min(a.start,a.end),end:Math.max(a.start,a.end)};b.push({afterLine:r.end,id:D,content:p.jsx(me,{initialText:i,onTextChange:l,fileLabel:C,lineRange:r,isEditing:!1,onSave:j,onCancel:u},D)})}return b}function tt(t){const e=Re.c(63),{containerRef:s,filePath:i,fileContent:l}=t,{t:a}=Ce(),{isMobile:w}=Le(),C=pe(Pe),D=pe(Ke),y=Ee(),j=Se(qe),[u,O]=v.useState(null),[d,b]=v.useState(""),[r,L]=v.useState(!1),[k,n]=v.useState(""),m=v.useRef(!1),g=v.useRef(null),h=v.useRef(null),[f,E]=v.useState(null);let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{O(null),b(""),L(!1),m.current=!1,h.current=null,E(null)},e[0]=_):_=e[0];const R=_;let B,G;e[1]!==s?(B=()=>{const o=s.current;if(!o)return;const c=()=>{if(m.current)return;const S=window.getSelection(),H=S?.toString().trim()??"";if(!S||!H||S.rangeCount===0){R();return}const I=S.getRangeAt(0);if(!o.contains(I.commonAncestorContainer)){R();return}const M=I.getBoundingClientRect();h.current=I.cloneRange(),b(H),O({x:M.left+M.width/2,y:M.top-10})},x=S=>{g.current?.contains(S.target)||m.current&&R()};return document.addEventListener("selectionchange",c),document.addEventListener("pointerdown",x),()=>{document.removeEventListener("selectionchange",c),document.removeEventListener("pointerdown",x)}},G=[s,R],e[1]=s,e[2]=B,e[3]=G):(B=e[2],G=e[3]),v.useEffect(B,G);let Q;e[4]!==l?(Q=o=>{const c=K=>l.slice(0,K).split(`
2
2
  `).length,x=Ue,S=(K,ye)=>{for(const be of x(K)){const he=l.indexOf(be,ye);if(he>=0)return he}return-1},H=o.length>=8?l.indexOf(o):-1;if(H>=0){const K=c(H);return{start:K,end:K+o.split(`
3
3
  `).length-1}}const I=o.split(`
4
4
  `).map(ze).filter(Boolean);if(I.length===0)return null;const M=S(I[0],0);if(M<0)return null;const ie=c(M);if(I.length===1)return{start:ie,end:ie};const ge=S(I[I.length-1],M);return ge<0?null:{start:ie,end:Math.max(ie,c(ge))}},e[4]=l,e[5]=Q):Q=e[5];const N=Q;let V;e[6]===Symbol.for("react.memo_cache_sentinel")?(V=()=>{const o=h.current;if(!o){E(null);return}E(De(o))},e[6]=V):V=e[6];const le=V;let X,Y;e[7]!==r?(X=()=>{if(!r)return;let o=null;const c=()=>{o===null&&(o=window.requestAnimationFrame(()=>{o=null,le()}))};return document.addEventListener("scroll",c,{capture:!0,passive:!0}),window.addEventListener("resize",c),()=>{o!==null&&window.cancelAnimationFrame(o),document.removeEventListener("scroll",c,{capture:!0}),window.removeEventListener("resize",c)}},Y=[r,le],e[7]=r,e[8]=X,e[9]=Y):(X=e[8],Y=e[9]),v.useEffect(X,Y);let Z;e[10]!==d?(Z=o=>{d&&(n(o),L(!0),m.current=!0,le(),window.getSelection()?.removeAllRanges())},e[10]=d,e[11]=Z):Z=e[11];const A=Z;let J,ee;e[12]!==u||e[13]!==r||e[14]!==w||e[15]!==A?(ee=()=>{if(!u||r||w)return;const o=c=>{const x=_e(c);x&&(c.preventDefault(),A(x))};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},J=[u,r,w,A],e[12]=u,e[13]=r,e[14]=w,e[15]=A,e[16]=J,e[17]=ee):(J=e[16],ee=e[17]),v.useEffect(ee,J);let te;e[18]!==j||e[19]!==C||e[20]!==y||e[21]!==i||e[22]!==D||e[23]!==N||e[24]!==d?(te=o=>{const c=C??(D?"draft":null);if(!d||!c||!y){R();return}const x=N(d);j({directory:y,sessionKey:c},{source:"file-quote",fileLabel:i,startLine:x?.start??0,endLine:x?.end??0,code:d,language:"",text:o.trim()}),R(),queueMicrotask(Fe)},e[18]=j,e[19]=C,e[20]=y,e[21]=i,e[22]=D,e[23]=N,e[24]=d,e[25]=te):te=e[25];const ue=te;if(!u)return null;let ne;e[26]!==r||e[27]!==N||e[28]!==d?(ne=r?N(d):null,e[26]=r,e[27]=N,e[28]=d,e[29]=ne):ne=e[29];const W=ne;let re;e[30]!==r||e[31]!==f?(re=r&&f&&f.length>0?p.jsx("div",{className:"pointer-events-none fixed inset-0 z-40",children:f.map(Ne)}):null,e[30]=r,e[31]=f,e[32]=re):re=e[32];const T=re;let F;e[33]!==W?(F=W?{start:W.start,end:W.end}:void 0,e[33]=W,e[34]=F):F=e[34];let se;e[35]!==i||e[36]!==k||e[37]!==ue||e[38]!==F?(se=p.jsx(me,{initialText:k,fileLabel:i,lineRange:F,onSave:ue,onCancel:R,floating:!0}),e[35]=i,e[36]=k,e[37]=ue,e[38]=F,e[39]=se):se=e[39];const z=se;if(w){let o;e[40]===Symbol.for("react.memo_cache_sentinel")?(o={paddingBottom:"calc(0.5rem + env(safe-area-inset-bottom, 0px))"},e[40]=o):o=e[40];let c;e[41]!==z||e[42]!==r||e[43]!==A||e[44]!==a?(c=p.jsx("div",{ref:g,className:"pointer-events-auto mx-auto max-w-[420px] px-3",style:o,children:r?z:p.jsx("div",{className:ce("mx-auto w-fit","oc-glass-popover oc-glass-floating rounded-full","p-1"),children:p.jsxs("button",{type:"button",onMouseDown:ke,onClick:()=>A(""),className:ce("flex min-w-0 items-center gap-2 rounded-full px-4 py-2","text-sm font-medium leading-tight text-foreground","active:bg-[var(--interactive-hover)]","transition-colors duration-150"),title:a("chat.textSelection.title.commentOnSelection"),children:[p.jsx(Ie,{name:"chat-1",className:"size-4 flex-shrink-0"}),p.jsx("span",{className:"min-w-0 whitespace-nowrap",children:a("chat.textSelection.actions.comment")})]})})}),e[41]=z,e[42]=r,e[43]=A,e[44]=a,e[45]=c):c=e[45];let x;return e[46]!==T||e[47]!==c?(x=fe.createPortal(p.jsxs("div",{className:"oc-keyboard-inset-surface pointer-events-none fixed inset-x-0 bottom-0 z-50",children:[T,c]}),document.body),e[46]=T,e[47]=c,e[48]=x):x=e[48],x}let U;e[49]!==u.x||e[50]!==u.y?(U={left:u.x,top:u.y,transform:"translate(-50%, -100%)"},e[49]=u.x,e[50]=u.y,e[51]=U):U=e[51];let $;e[52]!==T?($=T?fe.createPortal(T,document.body):null,e[52]=T,e[53]=$):$=e[53];let q;e[54]!==z||e[55]!==r||e[56]!==A||e[57]!==a?(q=r?p.jsx("div",{className:"w-[min(420px,80vw)]",children:z}):p.jsx("div",{className:ce("flex items-center whitespace-nowrap","oc-glass-popover oc-glass-floating rounded-full","p-1"),children:p.jsx("button",{type:"button",onClick:()=>A(""),className:ce("px-3.5 py-1.5 rounded-full","text-sm font-medium","text-foreground","hover:bg-[var(--interactive-hover)]","transition-colors duration-150"),title:a("chat.textSelection.title.commentOnSelection"),children:a("chat.textSelection.actions.comment")})}),e[54]=z,e[55]=r,e[56]=A,e[57]=a,e[58]=q):q=e[58];let oe;return e[59]!==U||e[60]!==$||e[61]!==q?(oe=fe.createPortal(p.jsxs("div",{ref:g,className:"fixed z-50",style:U,children:[$,q]}),document.body),e[59]=U,e[60]=$,e[61]=q,e[62]=oe):oe=e[62],oe}function ke(t){return t.preventDefault()}function Ne(t,e){return p.jsx("div",{className:"oc-chat-comment-rect absolute",style:{left:t.left,top:t.top,width:t.width,height:t.height}},e)}function Fe(){je()}function ze(t){return t.trim()}function Ue(t){const e=t.trim();return[e,e.slice(0,32),e.split(" ").slice(0,4).join(" ")].filter($e)}function $e(t){return t.length>=8}function qe(t){return t.addDraft}function Ke(t){return t.newSessionDraft?.open}function Pe(t){return t.currentSessionId}const nt=t=>{let e=!0;return{poll:async()=>{if(!e||t.isDirty())return!1;const s=t.getLoadedContent(),i=t.getLoadedRevision();try{const l=await t.readContent();if(!e||t.isDirty()||i!==t.getLoadedRevision())return!1;if(l===s)return!0;const a=await t.readContent();return!e||t.isDirty()||a!==l||i!==t.getLoadedRevision()?!1:(t.applyContent(l),!0)}catch{return!1}},dispose:()=>{e=!1}}},P="data-oc-local-asset",We=25*1024*1024,ae=t=>{const e=t.trim();return!e||e.startsWith("#")||e.startsWith("//")?!1:!/^[a-z][a-z\d+.-]*:/i.test(e)},He=t=>t.split(/[?#]/,1)[0]??"",Be=t=>t.trim().toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-"),Ge=(t,e)=>{const s=we(e.replace(/^#/,"")).toLowerCase();if(!s)return!1;for(const i of Array.from(t.querySelectorAll("h1, h2, h3, h4, h5, h6")))if(i.id===s||Be(i.textContent??"")===s)return i.scrollIntoView({block:"start"}),!0;return!1},we=t=>{try{return decodeURIComponent(t)}catch{return t}},Qe=t=>t.split(",").flatMap(e=>{const[s,...i]=e.trim().split(/\s+/);return s?[{url:s,descriptor:i.join(" ")}]:[]}),de="data-oc-media",Ve=/\(\s*prefers-color-scheme\s*:\s*(light|dark)\s*\)/gi,ve=(t,e)=>{for(const s of Array.from(t.querySelectorAll("picture > source[media]"))){const i=s.getAttribute(de)??s.getAttribute("media")??"",l=i.replace(Ve,(a,w)=>w.toLowerCase()===e?"(min-width: 0px)":"(max-width: -1px)");l!==i&&(s.getAttribute(de)!==i&&s.setAttribute(de,i),s.getAttribute("media")!==l&&s.setAttribute("media",l))}},rt=({container:t,filePath:e,workspaceRoot:s,onOpenFile:i,enabled:l,colorScheme:a})=>{const w=v.useRef(i);w.current=i;const C=v.useRef(a);C.current=a,v.useEffect(()=>{l&&t&&ve(t,a)},[a,t,l]),v.useEffect(()=>{if(!l||!t||!e)return;const D=e.slice(0,e.lastIndexOf("/")+1)||"/",y=n=>Te(D,we(He(n))),j=n=>({path:n,allowOutsideWorkspace:s&&Me(n,s)?void 0:"true",directory:s||void 0});let u=!1;const O=xe(),d=new Map,b=n=>{const m=d.get(n);if(m)return m;const g=(async()=>{const h=await Oe("/api/fs/raw",{query:j(n),signal:AbortSignal.timeout(3e4)});if(!h.ok)throw new Error(`Image read failed (${h.status})`);const f=await h.blob();if(f.size>We)throw new Error("Image too large for preview");if(u||xe()!==O)throw new Error("Preview closed");return URL.createObjectURL(f)})();return d.set(n,g),g.catch(()=>d.delete(n)),g},r=()=>{for(const n of Array.from(t.querySelectorAll("img[src]"))){const m=n.getAttribute("src")??"";if(!ae(m))continue;const g=y(m);n.setAttribute(P,g),b(g).then(h=>{u||n.getAttribute(P)!==g||n.getAttribute("src")!==h&&(n.src=h)}).catch(()=>{u||n.removeAttribute(P)})}for(const n of Array.from(t.querySelectorAll("source[srcset], img[srcset]"))){const m=Qe(n.getAttribute("srcset")??"");if(!m.some(f=>ae(f.url)))continue;const g=m.map(f=>({...f,path:ae(f.url)?y(f.url):null})),h=g.map(f=>f.path??f.url).join(",");n.setAttribute(P,h),Promise.all(g.map(async({url:f,descriptor:E,path:_})=>{const R=_?await b(_):f;return E?`${R} ${E}`:R})).then(f=>{if(u||n.getAttribute(P)!==h)return;const E=f.join(", ");n.getAttribute("srcset")!==E&&n.setAttribute("srcset",E)}).catch(()=>{u||n.removeAttribute(P)})}ve(t,C.current)},L=n=>{if(n.defaultPrevented||n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey)return;const m=n.target;if(!(m instanceof Element))return;const g=m.closest("a[href]");if(!(g instanceof HTMLAnchorElement)||!t.contains(g))return;const h=g.getAttribute("href")??"";if(h.startsWith("#")){n.preventDefault(),n.stopPropagation(),Ge(t,h);return}ae(h)&&(n.preventDefault(),n.stopPropagation(),w.current(y(h)))};r();const k=new MutationObserver(r);return k.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src","srcset","media"]}),t.addEventListener("click",L,!0),()=>{u=!0,k.disconnect(),t.removeEventListener("click",L,!0);for(const n of d.values())n.then(m=>URL.revokeObjectURL(m)).catch(()=>{})}},[t,l,e,s])};export{tt as F,et as b,nt as c,rt as u};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/useAppFontEffects-BZrjCfFw.js","assets/vendor-react-BUCujlKS.js","assets/vendor-scheduler-7OC5HNn7.js","assets/katex.min-u4DtE8E5.js","assets/vendor-zod-DDir2TeQ.js","assets/vendor-vite-runtime-DD1OZmLC.js","assets/vendor-zustand-BAGL70zf.js","assets/vendor-opencode-client-h8RufjAw.js","assets/katex-CQK6Iqoe.css","assets/vendor-base-ui-CPKyhvxM.js","assets/vendor-floating-ui-utils-D6FqdtJt.js","assets/vendor-floating-ui-dom-BTvzWks8.js","assets/vendor-floating-ui-core-PuGzNPnN.js","assets/vendor-floating-ui-react-dom-DxYCWdHj.js","assets/vendor-use-sync-external-store-D6wYuSt-.js","assets/vendor-simplewebauthn-browser-VDA66rT_.js","assets/vendor-class-variance-authority-5VPnzWs2.js","assets/vendor-clsx-B-dksMZM.js","assets/vendor-dnd-kit-core-BZknOX2w.js","assets/vendor-dnd-kit-utilities-B_MdXhJC.js","assets/vendor-dnd-kit-accessibility-BHxJPORy.js","assets/vendor-dnd-kit-sortable-CsEagZ81.js","assets/vendor-tanstack-react-virtual-Bmi0tTrf.js","assets/vendor-tanstack-virtual-core-CdGDGrnp.js","assets/vendor-framer-motion-DxDVhOLc.js","assets/vendor-motion-dom-HXPOMxb7.js","assets/vendor-motion-utils-BGh8QBgx.js","assets/vendor-codemirror-commands-dar6chwA.js","assets/vendor-codemirror-state-Dek9sMtw.js","assets/vendor-marijn-find-cluster-break-DXwl3gUT.js","assets/vendor-codemirror-view-B66jUSmE.js","assets/vendor-style-mod-NZ5MEPvj.js","assets/vendor-w3c-keyname-Vcq4gwWv.js","assets/vendor-crelt-C8TCjufn.js","assets/vendor-codemirror-language-DyL0aCoH.js","assets/vendor-lezer-common-B3-cUCR_.js","assets/vendor-lezer-highlight-CDMHUZ74.js","assets/vendor-codemirror-streamparser-CmlTsbN2.js","assets/vendor-codemirror-lang-javascript-Cem6LjJ8.js","assets/vendor-lezer-javascript-D7Tj24ot.js","assets/vendor-lezer-lr-bhwg1HMg.js","assets/vendor-codemirror-autocomplete-CIqXJolH.js","assets/vendor-codemirror-lang-json-C9rLLO0q.js","assets/vendor-lezer-json-Iaex0UN-.js","assets/vendor-codemirror-lang-css-9qjxcVkg.js","assets/vendor-lezer-css-C5xB6jxd.js","assets/vendor-codemirror-lang-html-D7VQUxeE.js","assets/vendor-lezer-html-C0I1p52t.js","assets/vendor-codemirror-lang-markdown-Cikh4w2I.js","assets/vendor-lezer-markdown-C6g-d6P3.js","assets/vendor-codemirror-language-data-DsRKCbVv.js","assets/vendor-codemirror-lang-python-DVl8-2Op.js","assets/vendor-lezer-python-CvuFxeZl.js","assets/vendor-sonner-DFyL3AvE.js","assets/vendor-capacitor-core-B4EWRrHz.js","assets/vendor-cmdk-DgLInKvT.js","assets/vendor-radix-ui-react-dialog-B94Bt2qq.js","assets/vendor-radix-ui-primitive-Dc_FVRD7.js","assets/vendor-radix-ui-react-compose-refs-DcAh5WdT.js","assets/vendor-radix-ui-react-context-Czxm7Z62.js","assets/vendor-radix-ui-react-id-f5BLKEVw.js","assets/vendor-radix-ui-react-use-layout-effect-D_3IhJdJ.js","assets/vendor-radix-ui-react-use-controllable-state-BFT5YmkA.js","assets/vendor-radix-ui-react-dismissable-layer-D7kXcwgJ.js","assets/vendor-radix-ui-react-primitive-DhVoX9SD.js","assets/vendor-radix-ui-react-slot-BQgQOasS.js","assets/vendor-radix-ui-react-use-callback-ref-BZPnuXAC.js","assets/vendor-radix-ui-react-use-escape-keydown-oph88g-F.js","assets/vendor-radix-ui-react-focus-scope-CiaxW4dD.js","assets/vendor-radix-ui-react-portal-BMJYHWck.js","assets/vendor-radix-ui-react-presence-CNxf-uq4.js","assets/vendor-radix-ui-react-focus-guards-B6qJXYua.js","assets/vendor-react-remove-scroll-DO7dCTnK.js","assets/vendor-tslib-De9GV7Vy.js","assets/vendor-react-remove-scroll-bar-BcFYyj3E.js","assets/vendor-react-style-singleton-q6EMHnwf.js","assets/vendor-get-nonce-C-Z93AgS.js","assets/vendor-use-sidecar-zDC0RhA3.js","assets/vendor-use-callback-ref-D3RC8gqK.js","assets/vendor-aria-hidden-DvXkyWUv.js","assets/vendor-legendapp-list-D2O6oUGf.js","assets/vendor-tailwind-merge-CPcsbTWB.js","assets/vendor-fuse.js-Dw8P0qyA.js"])))=>i.map(i=>d[i]);
2
- import{f as A,R as E,r as we,j as o}from"./vendor-react-BUCujlKS.js";import{u as G,aE as xe,aF as ge,aG as be,av as O,aH as Se,aI as ne,aJ as ve,aK as ae,a7 as _e,a5 as se}from"./katex.min-u4DtE8E5.js";import{u as Q,N as H,I as z,aS as ye,aT as je,aR as Ce,G as q,eE as Ne,eF as Ie,n as ke,eG as Ee,eH as De,al as Le,eI as ze,eJ as Re,e0 as Te,K as Ae,x as oe,eK as ie,eL as Fe,eM as Pe,eN as $e,eO as Ge,cF as Oe,eP as He,H as Me,eQ as We}from"./useAppFontEffects-BZrjCfFw.js";import{M as le}from"./vendor-base-ui-CPKyhvxM.js";import{o as re,r as Be,u as Ve,s as Ue}from"./vendor-zod-DDir2TeQ.js";import{_ as ce}from"./vendor-vite-runtime-DD1OZmLC.js";function $t(){const n=A.c(5),e=G(Ze);let t;n[0]===Symbol.for("react.memo_cache_sentinel")?(t=xe(),n[0]=t):t=n[0];const c=t;let i;n[1]!==e?(i=ge(e),n[1]=e,n[2]=i):i=n[2];const r=i;let s;return n[3]!==r?(s={usesFramelessChrome:c,side:r},n[3]=r,n[4]=s):s=n[4],s}function Ze(n){return n.desktopWindowControlsPosition}const Ke={close:"#FF5F57",minimize:"#FEBC2E",maximize:"#28C940"},Ye="rgba(0, 0, 0, 0.7)",qe=n=>{const e=A.c(3),{action:t}=n;if(t==="close"){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(z,{name:"close",className:"size-[10px]"}),e[0]=i):i=e[0],i}if(t==="minimize"){let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(z,{name:"subtract",className:"size-[10px]"}),e[1]=i):i=e[1],i}let c;return e[2]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(z,{name:"add",className:"size-[10px]"}),e[2]=c):c=e[2],c},Je=n=>{const e=A.c(18),{action:t,isMaximized:c,onActivate:i}=n,{t:r}=Q(),s=Ke[t];let a;e[0]!==t||e[1]!==c||e[2]!==r?(a=r(t==="close"?"header.windowControls.close":t==="minimize"?"header.windowControls.minimize":c?"header.windowControls.restore":"header.windowControls.maximize"),e[0]=t,e[1]=c,e[2]=r,e[3]=a):a=e[3];const d=a;let u;e[4]!==t||e[5]!==i?(u=()=>i(t),e[4]=t,e[5]=i,e[6]=u):u=e[6];let l;e[7]!==s?(l={backgroundColor:s,color:Ye},e[7]=s,e[8]=l):l=e[8];let m;e[9]!==t?(m=o.jsx("span",{className:"flex items-center justify-center opacity-0 transition-opacity duration-75 group-hover/wctl:opacity-100",children:o.jsx(qe,{action:t})}),e[9]=t,e[10]=m):m=e[10];let p;e[11]!==l||e[12]!==m?(p=o.jsx("span",{className:"flex size-3.5 items-center justify-center rounded-full shadow-[inset_0_0_0_0.5px_rgba(0,0,0,0.28)] transition-[filter] duration-75 active:brightness-90",style:l,children:m}),e[11]=l,e[12]=m,e[13]=p):p=e[13];let f;return e[14]!==d||e[15]!==u||e[16]!==p?(f=o.jsx("button",{type:"button",onClick:u,title:d,"aria-label":d,className:"app-region-no-drag flex h-8 w-[24px] items-center justify-center rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:p}),e[14]=d,e[15]=u,e[16]=p,e[17]=f):f=e[17],f},Gt=E.memo(function(e){const t=A.c(27),{visible:c,position:i}=e,r=i===void 0?"right":i,{t:s}=Q(),[a,d]=E.useState(!1),u=G(Qe);let l,m;if(t[0]!==c?(l=()=>{if(!c)return;let D=!1;O("desktop_get_current_window_state").then(_=>{D||d(!!_?.maximized)}).catch(Xe);const I=_=>{const k=_.detail;d(!!k?.maximized)};return window.addEventListener("openchamber:window-maximized-changed",I),()=>{D=!0,window.removeEventListener("openchamber:window-maximized-changed",I)}},m=[c],t[0]=c,t[1]=l,t[2]=m):(l=t[1],m=t[2]),we.useEffect(l,m),!c)return null;const p=r==="left";let f,w,h,x,g;if(t[3]!==u||t[4]!==p||t[5]!==a||t[6]!==r||t[7]!==s){g=Symbol.for("react.early_return_sentinel");e:{const D=be(r);let I;t[13]===Symbol.for("react.memo_cache_sentinel")?(I=S=>{if(S==="close"){O("desktop_close_current_window");return}if(S==="minimize"){O("desktop_minimize_current_window");return}O("desktop_toggle_current_window_maximized").then(v=>d(!!v?.maximized)).catch(et)},t[13]=I):I=t[13];const _=I;if(u==="traffic-lights"){const S=p?"me-1":"ms-1 me-3";let v;t[14]!==S?(v=H("app-region-no-drag group/wctl flex h-8 shrink-0 items-center",S),t[14]=S,t[15]=v):v=t[15];let y;t[16]!==s?(y=s("header.windowControls.groupAria"),t[16]=s,t[17]=y):y=t[17];let j;t[18]!==a?(j=T=>o.jsx(Je,{action:T,isMaximized:a,onActivate:_},T),t[18]=a,t[19]=j):j=t[19],g=o.jsx("div",{dir:"ltr",className:v,"aria-label":y,children:D.map(j)});break e}const k=H("app-region-no-drag inline-flex items-center justify-center text-muted-foreground transition-colors hover:bg-interactive-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",p?"h-8 w-8 rounded-md":"h-12 w-11"),F=p?"app-region-no-drag me-1 flex h-8 shrink-0 items-center":"app-region-no-drag ms-1 flex h-12 shrink-0 items-center",R=S=>S==="minimize"?o.jsx("button",{type:"button",className:k,onClick:tt,title:s("header.windowControls.minimize"),"aria-label":s("header.windowControls.minimize"),children:o.jsx(z,{name:"subtract",className:"h-4 w-4"})},"minimize"):S==="maximize"?o.jsx("button",{type:"button",className:k,onClick:()=>{O("desktop_toggle_current_window_maximized").then(v=>d(!!v?.maximized)).catch(nt)},title:s(a?"header.windowControls.restore":"header.windowControls.maximize"),"aria-label":s(a?"header.windowControls.restore":"header.windowControls.maximize"),children:o.jsx(z,{name:a?"fullscreen-exit":"checkbox-blank",className:"h-3.5 w-3.5"})},"maximize"):o.jsx("button",{type:"button",className:H(k,"hover:bg-[var(--status-error)] hover:text-[var(--status-error-foreground)]"),onClick:st,title:s("header.windowControls.close"),"aria-label":s("header.windowControls.close"),children:o.jsx(z,{name:"close",className:"h-4 w-4"})},"close");f="ltr",w=F,t[20]!==s?(h=s("header.windowControls.groupAria"),t[20]=s,t[21]=h):h=t[21],x=D.map(R)}t[3]=u,t[4]=p,t[5]=a,t[6]=r,t[7]=s,t[8]=f,t[9]=w,t[10]=h,t[11]=x,t[12]=g}else f=t[8],w=t[9],h=t[10],x=t[11],g=t[12];if(g!==Symbol.for("react.early_return_sentinel"))return g;let b;return t[22]!==f||t[23]!==w||t[24]!==h||t[25]!==x?(b=o.jsx("div",{dir:f,className:w,"aria-label":h,children:x}),t[22]=f,t[23]=w,t[24]=h,t[25]=x,t[26]=b):b=t[26],b});function Qe(n){return n.desktopWindowControlsStyle}function Xe(){}function et(){}function tt(){O("desktop_minimize_current_window")}function nt(){}function st(){O("desktop_close_current_window")}const te="new-session";function Ot(n){const e=A.c(18),{children:t,variant:c,scopeProjectId:i,align:r}=n,s=c===void 0?"default":c,a=i===void 0?null:i,d=r===void 0?"start":r,u=G(it),l=G(ot);let m;e[0]!==t?(m=o.jsx(ye,{asChild:!0,children:t}),e[0]=t,e[1]=m):m=e[1];const p=s==="compact"?"w-[280px]":"w-[360px]";let f;e[2]!==p?(f=H("overflow-hidden p-1 max-w-[calc(100vw-32px)]",p),e[2]=p,e[3]=f):f=e[3];let w;e[4]!==u||e[5]!==a||e[6]!==l||e[7]!==s?(w=u?o.jsx(rt,{onSelect:()=>l(!1),variant:s,scopeProjectId:a}):null,e[4]=u,e[5]=a,e[6]=l,e[7]=s,e[8]=w):w=e[8];let h;e[9]!==d||e[10]!==f||e[11]!==w?(h=o.jsx(je,{align:d,sideOffset:6,className:f,children:w}),e[9]=d,e[10]=f,e[11]=w,e[12]=h):h=e[12];let x;return e[13]!==u||e[14]!==l||e[15]!==m||e[16]!==h?(x=o.jsxs(Ce,{open:u,onOpenChange:l,modal:!1,disableGlobalShortcuts:!0,children:[m,h]}),e[13]=u,e[14]=l,e[15]=m,e[16]=h,e[17]=x):x=e[17],x}function ot(n){return n.setSessionDropdownOpen}function it(n){return n.isSessionDropdownOpen}function rt(n){const e=A.c(31),{onSelect:t,variant:c,scopeProjectId:i}=n,r=q(ct),s=q(lt);let a;e[0]!==r||e[1]!==i?(a={scopeProjectId:i,currentSessionId:r},e[0]=r,e[1]=i,e[2]=a):a=e[2];const d=Ne(!0,a),u=q(at),{t:l}=Q();let m;e[3]!==t||e[4]!==u?(m=()=>{t(),u()},e[3]=t,e[4]=u,e[5]=m):m=e[5];const p=m;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=new Set,e[6]=f):f=e[6];const[w,h]=E.useState(f),x=E.useRef(null),g=E.useRef(!1),b=s?te:r;let D;e[7]===Symbol.for("react.memo_cache_sentinel")?(D=N=>{h(P=>{const C=new Set(P);return C.has(N)?C.delete(N):C.add(N),C})},e[7]=D):D=e[7];const I=D;let _,k;e[8]!==w||e[9]!==b||e[10]!==d?(_=()=>{if(g.current||!b)return;const N=b===te?[]:Ie(d,b);if(!N)return;if(N.some(C=>!w.has(C))){h(C=>new Set([...C,...N]));return}const P=requestAnimationFrame(()=>{const C=Array.from(x.current?.querySelectorAll("[data-switcher-item-id]")??[]).find($=>$.dataset.switcherItemId===b);C&&(C.focus(),C.scrollIntoView({block:"nearest"}),g.current=!0)});return()=>cancelAnimationFrame(P)},k=[w,b,d],e[8]=w,e[9]=b,e[10]=d,e[11]=_,e[12]=k):(_=e[11],k=e[12]),E.useLayoutEffect(_,k);let F,R;e[13]===Symbol.for("react.memo_cache_sentinel")?(F=H("group relative flex w-full cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 outline-hidden select-none","data-[highlighted]:bg-interactive-hover hover:bg-interactive-hover"),R=o.jsx(z,{name:"chat-new",className:"h-4 w-4 flex-shrink-0 text-muted-foreground"}),e[13]=F,e[14]=R):(F=e[13],R=e[14]);let S;e[15]!==l?(S=l("sessions.sidebar.header.actions.newSession"),e[15]=l,e[16]=S):S=e[16];let v;e[17]!==S?(v=o.jsx("span",{className:"truncate typography-ui-label font-normal leading-tight text-foreground",children:S}),e[17]=S,e[18]=v):v=e[18];let y;e[19]!==p||e[20]!==v?(y=o.jsxs(le,{"data-switcher-item-id":te,onClick:p,className:F,children:[R,v]}),e[19]=p,e[20]=v,e[21]=y):y=e[21];let j;e[22]!==w||e[23]!==d||e[24]!==t||e[25]!==l||e[26]!==c?(j=d.length===0?o.jsx("div",{className:"px-3 py-4 text-center typography-meta text-muted-foreground",children:l("sessions.switcher.empty")}):d.map(N=>o.jsx(de,{item:N,depth:0,variant:c,expandedParents:w,toggleParent:I,closeDropdown:t},N.node.session.id)),e[22]=w,e[23]=d,e[24]=t,e[25]=l,e[26]=c,e[27]=j):j=e[27];let T;return e[28]!==y||e[29]!==j?(T=o.jsx(ke,{ref:x,outerClassName:"max-h-[60vh]",disableHorizontal:!0,children:o.jsxs("div",{className:"space-y-0.5",children:[y,j]})}),e[28]=y,e[29]=j,e[30]=T):T=e[30],T}function at(n){return n.openNewSessionDraft}function lt(n){return n.newSessionDraft.open===!0}function ct(n){return n.currentSessionId}function de(n){const e=A.c(31),{item:t,depth:c,variant:i,expandedParents:r,toggleParent:s,closeDropdown:a}=n,{node:d,secondaryMeta:u}=t,l=d.session,m=d.children.length>0;let p;e[0]!==r||e[1]!==l.id?(p=r.has(l.id),e[0]=r,e[1]=l.id,e[2]=p):p=e[2];const f=p;let w;e[3]!==m||e[4]!==l.id||e[5]!==s?(w=m?()=>s(l.id):void 0,e[3]=m,e[4]=l.id,e[5]=s,e[6]=w):w=e[6];let h;e[7]!==a||e[8]!==c||e[9]!==m||e[10]!==f||e[11]!==u||e[12]!==l||e[13]!==w||e[14]!==i?(h=o.jsx(dt,{session:l,depth:c,variant:i,secondaryMeta:u,hasChildren:m,isExpanded:f,onToggleExpand:w,closeDropdown:a}),e[7]=a,e[8]=c,e[9]=m,e[10]=f,e[11]=u,e[12]=l,e[13]=w,e[14]=i,e[15]=h):h=e[15];let x;e[16]!==a||e[17]!==c||e[18]!==r||e[19]!==m||e[20]!==f||e[21]!==t.groupDirectory||e[22]!==t.projectId||e[23]!==d.children||e[24]!==u||e[25]!==s||e[26]!==i?(x=m&&f?d.children.map(b=>o.jsx(de,{item:{node:b,projectId:t.projectId,groupDirectory:t.groupDirectory,secondaryMeta:u},depth:c+1,variant:i,expandedParents:r,toggleParent:s,closeDropdown:a},b.session.id)):null,e[16]=a,e[17]=c,e[18]=r,e[19]=m,e[20]=f,e[21]=t.groupDirectory,e[22]=t.projectId,e[23]=d.children,e[24]=u,e[25]=s,e[26]=i,e[27]=x):x=e[27];let g;return e[28]!==h||e[29]!==x?(g=o.jsxs(o.Fragment,{children:[h,x]}),e[28]=h,e[29]=x,e[30]=g):g=e[30],g}function dt(n){const e=A.c(55),{session:t,depth:c,variant:i,secondaryMeta:r,hasChildren:s,isExpanded:a,onToggleExpand:d,closeDropdown:u}=n,{t:l}=Q(),m=q(ft),p=q(mt),f=G(ut),w=Ee(t.id),h=m===t.id;let x;e[0]!==t.title||e[1]!==l?(x=t.title?.trim()||l("sessions.sidebar.session.untitled"),e[0]=t.title,e[1]=l,e[2]=x):x=e[2];const g=x,b=!!t.parentID,D=w>0&&(!b||f),I=De(t.id),_=I!==null,k=Le(_),F=!_&&D&&!h;let R;if(e[3]!==t){const L=ze(t)||Date.now();R=Re(L),e[3]=t,e[4]=R}else R=e[4];const S=R;let v;e[5]!==r?.projectLabel?(v=r?.projectLabel?.trim()||null,e[5]=r?.projectLabel,e[6]=v):v=e[6];const y=v;let j;e[7]!==r?.branchLabel?(j=r?.branchLabel?.trim()||null,e[7]=r?.branchLabel,e[8]=j):j=e[8];const T=j,N=T&&T!=="HEAD"?T:null;let P;e[9]!==u||e[10]!==h||e[11]!==t||e[12]!==p?(P=()=>{if(h){u();return}const L=Ae(t);p(t.id,L??null),u()},e[9]=u,e[10]=h,e[11]=t,e[12]=p,e[13]=P):P=e[13];const C=P;let $;e[14]!==C?($=L=>{if(L.target?.closest("[data-switcher-expand]")){L.preventDefault();return}C()},e[14]=C,e[15]=$):$=e[15];const he=t.id,X=h&&"bg-interactive-selection text-interactive-selection-foreground hover:bg-interactive-selection data-[highlighted]:bg-interactive-selection";let M;e[16]!==X?(M=H("group relative flex w-full cursor-pointer items-start gap-2 rounded-lg px-2 py-1.5 outline-hidden select-none","data-[highlighted]:bg-interactive-hover hover:bg-interactive-hover",X),e[16]=X,e[17]=M):M=e[17];const ee=8+c*12;let W;e[18]!==ee?(W={paddingInlineStart:ee},e[18]=ee,e[19]=W):W=e[19];let B;e[20]!==s||e[21]!==a||e[22]!==d||e[23]!==l||e[24]!==i?(B=i==="compact"&&s?o.jsx("span",{role:"button",tabIndex:-1,"data-switcher-expand":!0,onClick:L=>{L.preventDefault(),L.stopPropagation(),d?.()},className:"inline-flex h-3.5 w-3.5 flex-shrink-0 items-center justify-center rounded text-muted-foreground/70 hover:text-foreground","aria-label":l(a?"sessions.sidebar.session.subsessions.collapse":"sessions.sidebar.session.subsessions.expand"),children:a?o.jsx(z,{name:"arrow-down-s",className:"h-3.5 w-3.5"}):o.jsx(z,{name:"arrow-right-s",className:"h-3.5 w-3.5"})}):null,e[20]=s,e[21]=a,e[22]=d,e[23]=l,e[24]=i,e[25]=B):B=e[25];let V;e[26]!==g?(V=o.jsx("span",{dir:"auto",className:"truncate oc-ui-start-align typography-ui-label font-normal leading-tight text-foreground",children:g}),e[26]=g,e[27]=V):V=e[27];let U;e[28]!==B||e[29]!==V?(U=o.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[B,V]}),e[28]=B,e[29]=V,e[30]=U):U=e[30];let Z;e[31]!==N||e[32]!==s||e[33]!==a||e[34]!==d||e[35]!==y||e[36]!==l||e[37]!==S||e[38]!==i?(Z=i==="default"?o.jsxs("div",{className:"flex min-w-0 items-center gap-1.5 truncate text-muted-foreground/70 leading-tight",style:{fontSize:"calc(var(--text-ui-label) * 0.85)"},children:[s?o.jsx("span",{role:"button",tabIndex:-1,"data-switcher-expand":!0,onClick:L=>{L.preventDefault(),L.stopPropagation(),d?.()},className:"inline-flex h-3 w-3 flex-shrink-0 items-center justify-center rounded text-muted-foreground/70 hover:text-foreground","aria-label":l(a?"sessions.sidebar.session.subsessions.collapse":"sessions.sidebar.session.subsessions.expand"),children:a?o.jsx(z,{name:"arrow-down-s",className:"h-3 w-3"}):o.jsx(z,{name:"arrow-right-s",className:"h-3 w-3"})}):null,o.jsx("span",{className:"flex-shrink-0",children:S}),y?o.jsx("span",{className:"truncate",children:y}):null,N?o.jsxs("span",{className:"inline-flex min-w-0 items-center gap-0.5",children:[o.jsx(z,{name:"git-branch",className:"h-3 w-3 flex-shrink-0 text-muted-foreground/70"}),o.jsx("span",{className:"truncate",children:N})]}):null]}):null,e[31]=N,e[32]=s,e[33]=a,e[34]=d,e[35]=y,e[36]=l,e[37]=S,e[38]=i,e[39]=Z):Z=e[39];let K;e[40]!==U||e[41]!==Z?(K=o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[U,Z]}),e[40]=U,e[41]=Z,e[42]=K):K=e[42];let Y;e[43]!==_||e[44]!==k||e[45]!==F||e[46]!==I?(Y=_||F?o.jsx("span",{className:"flex h-3 w-3 flex-shrink-0 items-center justify-center self-center",children:o.jsx(Te,{state:I??"unread",runningClassName:H("h-2 w-2",k)})}):null,e[43]=_,e[44]=k,e[45]=F,e[46]=I,e[47]=Y):Y=e[47];let J;return e[48]!==t.id||e[49]!==W||e[50]!==K||e[51]!==Y||e[52]!==$||e[53]!==M?(J=o.jsxs(le,{onClick:$,"data-slot":"session-switcher-item","data-switcher-item-id":he,className:M,style:W,children:[K,Y]}),e[48]=t.id,e[49]=W,e[50]=K,e[51]=Y,e[52]=$,e[53]=M,e[54]=J):J=e[54],J}function ut(n){return n.notifyOnSubtasks}function mt(n){return n.setCurrentSession}function ft(n){return n.currentSessionId}const Ht=n=>!Number.isFinite(n)||n<=0?new Intl.NumberFormat(oe(),{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(0):new Intl.NumberFormat(oe(),{style:"currency",currency:"USD",minimumFractionDigits:n<.01?4:2,maximumFractionDigits:n<.01?4:2}).format(n),pt="ui-store",ht=re({state:re({contextSurfaceZones:Be(Ue(),Ve())})}),wt=n=>{if(!n)return null;let e;try{e=JSON.parse(n)}catch{return null}const t=ht.safeParse(e);return t.success?ve.parse(t.data.state.contextSurfaceZones):null},Mt=()=>{const n=e=>{if(e.key!==pt)return;const t=wt(e.newValue);if(!t)return;const c=G.getState().contextSurfaceZones,i=new Set([...Object.keys(c),...Object.keys(t)].filter(Se));for(const r of i){const s=ne(t,r);s!==ne(G.getState().contextSurfaceZones,r)&&G.getState().moveContextSurfaceToZone(r,s)}};return window.addEventListener("storage",n),()=>window.removeEventListener("storage",n)},xt=E.lazy(()=>ce(()=>import("./useAppFontEffects-BZrjCfFw.js").then(n=>n.oS),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82])).then(n=>({default:n.GuestAttachDialog}))),ue=E.lazy(()=>ce(()=>import("./useAppFontEffects-BZrjCfFw.js").then(n=>n.oR),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82])).then(n=>({default:n.PluginPane}))),Wt=()=>{const n=A.c(11),e=ie(gt),t=ie(bt),c=Fe(St),i=Pe(vt);let r;n[0]!==i?(r=i.map(_t),n[0]=i,n[1]=r):r=n[1];let s;n[2]!==t||n[3]!==e?(s=e?o.jsx(E.Suspense,{fallback:null,children:o.jsx(xt,{guestId:e.guestId,item:e.item,onOpenChange:u=>{u||t()}})}):null,n[2]=t,n[3]=e,n[4]=s):s=n[4];let a;n[5]!==c?(a=c?o.jsx("div",{"aria-hidden":"true",className:"pointer-events-none fixed top-0 -inset-s-[9999px] h-px w-px overflow-hidden",children:o.jsx(E.Suspense,{fallback:null,children:o.jsx(ue,{mode:ae(c),surface:"panel",headless:!0})})}):null,n[5]=c,n[6]=a):a=n[6];let d;return n[7]!==r||n[8]!==s||n[9]!==a?(d=o.jsxs(o.Fragment,{children:[r,s,a]}),n[7]=r,n[8]=s,n[9]=a,n[10]=d):d=n[10],d};function gt(n){return n.request}function bt(n){return n.close}function St(n){return n.guestId}function vt(n){return n.requests}function _t(n){return o.jsx("div",{"aria-hidden":"true",inert:!0,className:"pointer-events-none fixed top-0 -inset-s-[9999px] h-px w-px overflow-hidden",children:o.jsx(E.Suspense,{fallback:null,children:o.jsx(ue,{mode:ae(n.guestId),surface:"background",headless:!0,backgroundAction:n})})},n.id)}const yt=45e3,jt=[1e3,2e3,4e3],me={isHidden:()=>!1,onVisible:()=>()=>{}},Ct=()=>()=>{},Nt=()=>typeof document>"u"?me:{isHidden:()=>document.visibilityState==="hidden",onVisible:n=>{const e=()=>{document.visibilityState!=="hidden"&&n()};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)}},It=(n,e,t=window.setTimeout.bind(window),c=window.clearTimeout.bind(window),i=me,r=Ct)=>{let s=!1,a,d=0,u=!1,l=!1,m=!1,p=!1;const f=async x=>{l=!0,m=!1;const g=await x().catch(()=>!1);if(l=!1,s)return;if(u||=g,!u&&m){f(e);return}const b=u?void 0:jt[d];b!==void 0&&(d+=1),a=t(()=>{if(a=void 0,i.isHidden()){p=!0;return}f(e)},b??yt)},w=i.onVisible(()=>{!p||s||(p=!1,f(e))}),h=r(()=>{if(!(s||u)){if(l){m=!0;return}a!==void 0&&c(a),a=void 0,p=!1,f(e)}});return f(n),()=>{s=!0,w(),h(),a!==void 0&&c(a)}},Bt=n=>{const e=A.c(3);let t,c;e[0]!==n?(t=()=>{const i=kt;let r=i();const s=_e(()=>{r(),r=i()});return()=>{s(),r()}},c=[n],e[0]=n,e[1]=t,e[2]=c):(t=e[1],c=e[2]),E.useEffect(t,c)};function kt(){const n=se();let e=!0;const t=async i=>(i?await $e(Ge()):await Oe(),!e||se()!==n?!1:(He(),Me.getState().status==="ready")),c=It(()=>t(!0),()=>t(!1),window.setTimeout.bind(window),window.clearTimeout.bind(window),Nt(),i=>We(r=>{r===n&&i()}));return()=>{e=!1,c()}}const fe=()=>{const n=[document.documentElement,document.body],e=document.getElementById("root");return e&&n.push(e),n},pe=()=>{let n=!1;for(const e of fe())e.scrollTop!==0&&(e.scrollTop=0,n=!0),e.scrollLeft!==0&&(e.scrollLeft=0,n=!0);return n},Et=n=>n===document||fe().some(e=>e===n),Vt=()=>{const n=A.c(1);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],n[0]=e):e=n[0],E.useEffect(Lt,e)};function Dt(n){Et(n.target)&&pe()}function Lt(){const n=Dt;return document.addEventListener("scroll",n,{capture:!0,passive:!0}),pe(),()=>document.removeEventListener("scroll",n,{capture:!0})}export{Wt as G,Ot as S,Gt as W,Mt as a,Vt as b,Bt as c,Ht as f,$t as u};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/useAppFontEffects-d9vsRNKm.js","assets/vendor-react-BUCujlKS.js","assets/vendor-scheduler-7OC5HNn7.js","assets/katex.min-u4DtE8E5.js","assets/vendor-zod-DDir2TeQ.js","assets/vendor-vite-runtime-DD1OZmLC.js","assets/vendor-zustand-BAGL70zf.js","assets/vendor-opencode-client-h8RufjAw.js","assets/katex-CQK6Iqoe.css","assets/vendor-base-ui-CPKyhvxM.js","assets/vendor-floating-ui-utils-D6FqdtJt.js","assets/vendor-floating-ui-dom-BTvzWks8.js","assets/vendor-floating-ui-core-PuGzNPnN.js","assets/vendor-floating-ui-react-dom-DxYCWdHj.js","assets/vendor-use-sync-external-store-D6wYuSt-.js","assets/vendor-simplewebauthn-browser-VDA66rT_.js","assets/vendor-class-variance-authority-5VPnzWs2.js","assets/vendor-clsx-B-dksMZM.js","assets/vendor-dnd-kit-core-BZknOX2w.js","assets/vendor-dnd-kit-utilities-B_MdXhJC.js","assets/vendor-dnd-kit-accessibility-BHxJPORy.js","assets/vendor-dnd-kit-sortable-CsEagZ81.js","assets/vendor-tanstack-react-virtual-Bmi0tTrf.js","assets/vendor-tanstack-virtual-core-CdGDGrnp.js","assets/vendor-framer-motion-DxDVhOLc.js","assets/vendor-motion-dom-HXPOMxb7.js","assets/vendor-motion-utils-BGh8QBgx.js","assets/vendor-codemirror-commands-dar6chwA.js","assets/vendor-codemirror-state-Dek9sMtw.js","assets/vendor-marijn-find-cluster-break-DXwl3gUT.js","assets/vendor-codemirror-view-B66jUSmE.js","assets/vendor-style-mod-NZ5MEPvj.js","assets/vendor-w3c-keyname-Vcq4gwWv.js","assets/vendor-crelt-C8TCjufn.js","assets/vendor-codemirror-language-DyL0aCoH.js","assets/vendor-lezer-common-B3-cUCR_.js","assets/vendor-lezer-highlight-CDMHUZ74.js","assets/vendor-codemirror-streamparser-CmlTsbN2.js","assets/vendor-codemirror-lang-javascript-Cem6LjJ8.js","assets/vendor-lezer-javascript-D7Tj24ot.js","assets/vendor-lezer-lr-bhwg1HMg.js","assets/vendor-codemirror-autocomplete-CIqXJolH.js","assets/vendor-codemirror-lang-json-C9rLLO0q.js","assets/vendor-lezer-json-Iaex0UN-.js","assets/vendor-codemirror-lang-css-9qjxcVkg.js","assets/vendor-lezer-css-C5xB6jxd.js","assets/vendor-codemirror-lang-html-D7VQUxeE.js","assets/vendor-lezer-html-C0I1p52t.js","assets/vendor-codemirror-lang-markdown-Cikh4w2I.js","assets/vendor-lezer-markdown-C6g-d6P3.js","assets/vendor-codemirror-language-data-DP_Bh3S8.js","assets/vendor-codemirror-lang-python-DVl8-2Op.js","assets/vendor-lezer-python-CvuFxeZl.js","assets/vendor-sonner-DFyL3AvE.js","assets/vendor-capacitor-core-B4EWRrHz.js","assets/vendor-cmdk-DgLInKvT.js","assets/vendor-radix-ui-react-dialog-B94Bt2qq.js","assets/vendor-radix-ui-primitive-Dc_FVRD7.js","assets/vendor-radix-ui-react-compose-refs-DcAh5WdT.js","assets/vendor-radix-ui-react-context-Czxm7Z62.js","assets/vendor-radix-ui-react-id-f5BLKEVw.js","assets/vendor-radix-ui-react-use-layout-effect-D_3IhJdJ.js","assets/vendor-radix-ui-react-use-controllable-state-BFT5YmkA.js","assets/vendor-radix-ui-react-dismissable-layer-D7kXcwgJ.js","assets/vendor-radix-ui-react-primitive-DhVoX9SD.js","assets/vendor-radix-ui-react-slot-BQgQOasS.js","assets/vendor-radix-ui-react-use-callback-ref-BZPnuXAC.js","assets/vendor-radix-ui-react-use-escape-keydown-oph88g-F.js","assets/vendor-radix-ui-react-focus-scope-CiaxW4dD.js","assets/vendor-radix-ui-react-portal-BMJYHWck.js","assets/vendor-radix-ui-react-presence-CNxf-uq4.js","assets/vendor-radix-ui-react-focus-guards-B6qJXYua.js","assets/vendor-react-remove-scroll-DO7dCTnK.js","assets/vendor-tslib-De9GV7Vy.js","assets/vendor-react-remove-scroll-bar-BcFYyj3E.js","assets/vendor-react-style-singleton-q6EMHnwf.js","assets/vendor-get-nonce-C-Z93AgS.js","assets/vendor-use-sidecar-zDC0RhA3.js","assets/vendor-use-callback-ref-D3RC8gqK.js","assets/vendor-aria-hidden-DvXkyWUv.js","assets/vendor-legendapp-list-D2O6oUGf.js","assets/vendor-tailwind-merge-CPcsbTWB.js","assets/vendor-fuse.js-Dw8P0qyA.js"])))=>i.map(i=>d[i]);
2
+ import{f as A,R as E,r as we,j as o}from"./vendor-react-BUCujlKS.js";import{u as G,aE as xe,aF as ge,aG as be,av as O,aH as Se,aI as ne,aJ as ve,aK as ae,a7 as _e,a5 as se}from"./katex.min-u4DtE8E5.js";import{u as Q,N as H,I as z,aS as ye,aT as je,aR as Ce,G as q,eE as Ne,eF as Ie,n as ke,eG as Ee,eH as De,al as Le,eI as ze,eJ as Re,e0 as Te,K as Ae,x as oe,eK as ie,eL as Fe,eM as Pe,eN as $e,eO as Ge,cF as Oe,eP as He,H as Me,eQ as We}from"./useAppFontEffects-d9vsRNKm.js";import{M as le}from"./vendor-base-ui-CPKyhvxM.js";import{o as re,r as Be,u as Ve,s as Ue}from"./vendor-zod-DDir2TeQ.js";import{_ as ce}from"./vendor-vite-runtime-DD1OZmLC.js";function $t(){const n=A.c(5),e=G(Ze);let t;n[0]===Symbol.for("react.memo_cache_sentinel")?(t=xe(),n[0]=t):t=n[0];const c=t;let i;n[1]!==e?(i=ge(e),n[1]=e,n[2]=i):i=n[2];const r=i;let s;return n[3]!==r?(s={usesFramelessChrome:c,side:r},n[3]=r,n[4]=s):s=n[4],s}function Ze(n){return n.desktopWindowControlsPosition}const Ke={close:"#FF5F57",minimize:"#FEBC2E",maximize:"#28C940"},Ye="rgba(0, 0, 0, 0.7)",qe=n=>{const e=A.c(3),{action:t}=n;if(t==="close"){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(z,{name:"close",className:"size-[10px]"}),e[0]=i):i=e[0],i}if(t==="minimize"){let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(z,{name:"subtract",className:"size-[10px]"}),e[1]=i):i=e[1],i}let c;return e[2]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(z,{name:"add",className:"size-[10px]"}),e[2]=c):c=e[2],c},Je=n=>{const e=A.c(18),{action:t,isMaximized:c,onActivate:i}=n,{t:r}=Q(),s=Ke[t];let a;e[0]!==t||e[1]!==c||e[2]!==r?(a=r(t==="close"?"header.windowControls.close":t==="minimize"?"header.windowControls.minimize":c?"header.windowControls.restore":"header.windowControls.maximize"),e[0]=t,e[1]=c,e[2]=r,e[3]=a):a=e[3];const d=a;let u;e[4]!==t||e[5]!==i?(u=()=>i(t),e[4]=t,e[5]=i,e[6]=u):u=e[6];let l;e[7]!==s?(l={backgroundColor:s,color:Ye},e[7]=s,e[8]=l):l=e[8];let m;e[9]!==t?(m=o.jsx("span",{className:"flex items-center justify-center opacity-0 transition-opacity duration-75 group-hover/wctl:opacity-100",children:o.jsx(qe,{action:t})}),e[9]=t,e[10]=m):m=e[10];let p;e[11]!==l||e[12]!==m?(p=o.jsx("span",{className:"flex size-3.5 items-center justify-center rounded-full shadow-[inset_0_0_0_0.5px_rgba(0,0,0,0.28)] transition-[filter] duration-75 active:brightness-90",style:l,children:m}),e[11]=l,e[12]=m,e[13]=p):p=e[13];let f;return e[14]!==d||e[15]!==u||e[16]!==p?(f=o.jsx("button",{type:"button",onClick:u,title:d,"aria-label":d,className:"app-region-no-drag flex h-8 w-[24px] items-center justify-center rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:p}),e[14]=d,e[15]=u,e[16]=p,e[17]=f):f=e[17],f},Gt=E.memo(function(e){const t=A.c(27),{visible:c,position:i}=e,r=i===void 0?"right":i,{t:s}=Q(),[a,d]=E.useState(!1),u=G(Qe);let l,m;if(t[0]!==c?(l=()=>{if(!c)return;let D=!1;O("desktop_get_current_window_state").then(_=>{D||d(!!_?.maximized)}).catch(Xe);const I=_=>{const k=_.detail;d(!!k?.maximized)};return window.addEventListener("openchamber:window-maximized-changed",I),()=>{D=!0,window.removeEventListener("openchamber:window-maximized-changed",I)}},m=[c],t[0]=c,t[1]=l,t[2]=m):(l=t[1],m=t[2]),we.useEffect(l,m),!c)return null;const p=r==="left";let f,w,h,x,g;if(t[3]!==u||t[4]!==p||t[5]!==a||t[6]!==r||t[7]!==s){g=Symbol.for("react.early_return_sentinel");e:{const D=be(r);let I;t[13]===Symbol.for("react.memo_cache_sentinel")?(I=S=>{if(S==="close"){O("desktop_close_current_window");return}if(S==="minimize"){O("desktop_minimize_current_window");return}O("desktop_toggle_current_window_maximized").then(v=>d(!!v?.maximized)).catch(et)},t[13]=I):I=t[13];const _=I;if(u==="traffic-lights"){const S=p?"me-1":"ms-1 me-3";let v;t[14]!==S?(v=H("app-region-no-drag group/wctl flex h-8 shrink-0 items-center",S),t[14]=S,t[15]=v):v=t[15];let y;t[16]!==s?(y=s("header.windowControls.groupAria"),t[16]=s,t[17]=y):y=t[17];let j;t[18]!==a?(j=T=>o.jsx(Je,{action:T,isMaximized:a,onActivate:_},T),t[18]=a,t[19]=j):j=t[19],g=o.jsx("div",{dir:"ltr",className:v,"aria-label":y,children:D.map(j)});break e}const k=H("app-region-no-drag inline-flex items-center justify-center text-muted-foreground transition-colors hover:bg-interactive-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",p?"h-8 w-8 rounded-md":"h-12 w-11"),F=p?"app-region-no-drag me-1 flex h-8 shrink-0 items-center":"app-region-no-drag ms-1 flex h-12 shrink-0 items-center",R=S=>S==="minimize"?o.jsx("button",{type:"button",className:k,onClick:tt,title:s("header.windowControls.minimize"),"aria-label":s("header.windowControls.minimize"),children:o.jsx(z,{name:"subtract",className:"h-4 w-4"})},"minimize"):S==="maximize"?o.jsx("button",{type:"button",className:k,onClick:()=>{O("desktop_toggle_current_window_maximized").then(v=>d(!!v?.maximized)).catch(nt)},title:s(a?"header.windowControls.restore":"header.windowControls.maximize"),"aria-label":s(a?"header.windowControls.restore":"header.windowControls.maximize"),children:o.jsx(z,{name:a?"fullscreen-exit":"checkbox-blank",className:"h-3.5 w-3.5"})},"maximize"):o.jsx("button",{type:"button",className:H(k,"hover:bg-[var(--status-error)] hover:text-[var(--status-error-foreground)]"),onClick:st,title:s("header.windowControls.close"),"aria-label":s("header.windowControls.close"),children:o.jsx(z,{name:"close",className:"h-4 w-4"})},"close");f="ltr",w=F,t[20]!==s?(h=s("header.windowControls.groupAria"),t[20]=s,t[21]=h):h=t[21],x=D.map(R)}t[3]=u,t[4]=p,t[5]=a,t[6]=r,t[7]=s,t[8]=f,t[9]=w,t[10]=h,t[11]=x,t[12]=g}else f=t[8],w=t[9],h=t[10],x=t[11],g=t[12];if(g!==Symbol.for("react.early_return_sentinel"))return g;let b;return t[22]!==f||t[23]!==w||t[24]!==h||t[25]!==x?(b=o.jsx("div",{dir:f,className:w,"aria-label":h,children:x}),t[22]=f,t[23]=w,t[24]=h,t[25]=x,t[26]=b):b=t[26],b});function Qe(n){return n.desktopWindowControlsStyle}function Xe(){}function et(){}function tt(){O("desktop_minimize_current_window")}function nt(){}function st(){O("desktop_close_current_window")}const te="new-session";function Ot(n){const e=A.c(18),{children:t,variant:c,scopeProjectId:i,align:r}=n,s=c===void 0?"default":c,a=i===void 0?null:i,d=r===void 0?"start":r,u=G(it),l=G(ot);let m;e[0]!==t?(m=o.jsx(ye,{asChild:!0,children:t}),e[0]=t,e[1]=m):m=e[1];const p=s==="compact"?"w-[280px]":"w-[360px]";let f;e[2]!==p?(f=H("overflow-hidden p-1 max-w-[calc(100vw-32px)]",p),e[2]=p,e[3]=f):f=e[3];let w;e[4]!==u||e[5]!==a||e[6]!==l||e[7]!==s?(w=u?o.jsx(rt,{onSelect:()=>l(!1),variant:s,scopeProjectId:a}):null,e[4]=u,e[5]=a,e[6]=l,e[7]=s,e[8]=w):w=e[8];let h;e[9]!==d||e[10]!==f||e[11]!==w?(h=o.jsx(je,{align:d,sideOffset:6,className:f,children:w}),e[9]=d,e[10]=f,e[11]=w,e[12]=h):h=e[12];let x;return e[13]!==u||e[14]!==l||e[15]!==m||e[16]!==h?(x=o.jsxs(Ce,{open:u,onOpenChange:l,modal:!1,disableGlobalShortcuts:!0,children:[m,h]}),e[13]=u,e[14]=l,e[15]=m,e[16]=h,e[17]=x):x=e[17],x}function ot(n){return n.setSessionDropdownOpen}function it(n){return n.isSessionDropdownOpen}function rt(n){const e=A.c(31),{onSelect:t,variant:c,scopeProjectId:i}=n,r=q(ct),s=q(lt);let a;e[0]!==r||e[1]!==i?(a={scopeProjectId:i,currentSessionId:r},e[0]=r,e[1]=i,e[2]=a):a=e[2];const d=Ne(!0,a),u=q(at),{t:l}=Q();let m;e[3]!==t||e[4]!==u?(m=()=>{t(),u()},e[3]=t,e[4]=u,e[5]=m):m=e[5];const p=m;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=new Set,e[6]=f):f=e[6];const[w,h]=E.useState(f),x=E.useRef(null),g=E.useRef(!1),b=s?te:r;let D;e[7]===Symbol.for("react.memo_cache_sentinel")?(D=N=>{h(P=>{const C=new Set(P);return C.has(N)?C.delete(N):C.add(N),C})},e[7]=D):D=e[7];const I=D;let _,k;e[8]!==w||e[9]!==b||e[10]!==d?(_=()=>{if(g.current||!b)return;const N=b===te?[]:Ie(d,b);if(!N)return;if(N.some(C=>!w.has(C))){h(C=>new Set([...C,...N]));return}const P=requestAnimationFrame(()=>{const C=Array.from(x.current?.querySelectorAll("[data-switcher-item-id]")??[]).find($=>$.dataset.switcherItemId===b);C&&(C.focus(),C.scrollIntoView({block:"nearest"}),g.current=!0)});return()=>cancelAnimationFrame(P)},k=[w,b,d],e[8]=w,e[9]=b,e[10]=d,e[11]=_,e[12]=k):(_=e[11],k=e[12]),E.useLayoutEffect(_,k);let F,R;e[13]===Symbol.for("react.memo_cache_sentinel")?(F=H("group relative flex w-full cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 outline-hidden select-none","data-[highlighted]:bg-interactive-hover hover:bg-interactive-hover"),R=o.jsx(z,{name:"chat-new",className:"h-4 w-4 flex-shrink-0 text-muted-foreground"}),e[13]=F,e[14]=R):(F=e[13],R=e[14]);let S;e[15]!==l?(S=l("sessions.sidebar.header.actions.newSession"),e[15]=l,e[16]=S):S=e[16];let v;e[17]!==S?(v=o.jsx("span",{className:"truncate typography-ui-label font-normal leading-tight text-foreground",children:S}),e[17]=S,e[18]=v):v=e[18];let y;e[19]!==p||e[20]!==v?(y=o.jsxs(le,{"data-switcher-item-id":te,onClick:p,className:F,children:[R,v]}),e[19]=p,e[20]=v,e[21]=y):y=e[21];let j;e[22]!==w||e[23]!==d||e[24]!==t||e[25]!==l||e[26]!==c?(j=d.length===0?o.jsx("div",{className:"px-3 py-4 text-center typography-meta text-muted-foreground",children:l("sessions.switcher.empty")}):d.map(N=>o.jsx(de,{item:N,depth:0,variant:c,expandedParents:w,toggleParent:I,closeDropdown:t},N.node.session.id)),e[22]=w,e[23]=d,e[24]=t,e[25]=l,e[26]=c,e[27]=j):j=e[27];let T;return e[28]!==y||e[29]!==j?(T=o.jsx(ke,{ref:x,outerClassName:"max-h-[60vh]",disableHorizontal:!0,children:o.jsxs("div",{className:"space-y-0.5",children:[y,j]})}),e[28]=y,e[29]=j,e[30]=T):T=e[30],T}function at(n){return n.openNewSessionDraft}function lt(n){return n.newSessionDraft.open===!0}function ct(n){return n.currentSessionId}function de(n){const e=A.c(31),{item:t,depth:c,variant:i,expandedParents:r,toggleParent:s,closeDropdown:a}=n,{node:d,secondaryMeta:u}=t,l=d.session,m=d.children.length>0;let p;e[0]!==r||e[1]!==l.id?(p=r.has(l.id),e[0]=r,e[1]=l.id,e[2]=p):p=e[2];const f=p;let w;e[3]!==m||e[4]!==l.id||e[5]!==s?(w=m?()=>s(l.id):void 0,e[3]=m,e[4]=l.id,e[5]=s,e[6]=w):w=e[6];let h;e[7]!==a||e[8]!==c||e[9]!==m||e[10]!==f||e[11]!==u||e[12]!==l||e[13]!==w||e[14]!==i?(h=o.jsx(dt,{session:l,depth:c,variant:i,secondaryMeta:u,hasChildren:m,isExpanded:f,onToggleExpand:w,closeDropdown:a}),e[7]=a,e[8]=c,e[9]=m,e[10]=f,e[11]=u,e[12]=l,e[13]=w,e[14]=i,e[15]=h):h=e[15];let x;e[16]!==a||e[17]!==c||e[18]!==r||e[19]!==m||e[20]!==f||e[21]!==t.groupDirectory||e[22]!==t.projectId||e[23]!==d.children||e[24]!==u||e[25]!==s||e[26]!==i?(x=m&&f?d.children.map(b=>o.jsx(de,{item:{node:b,projectId:t.projectId,groupDirectory:t.groupDirectory,secondaryMeta:u},depth:c+1,variant:i,expandedParents:r,toggleParent:s,closeDropdown:a},b.session.id)):null,e[16]=a,e[17]=c,e[18]=r,e[19]=m,e[20]=f,e[21]=t.groupDirectory,e[22]=t.projectId,e[23]=d.children,e[24]=u,e[25]=s,e[26]=i,e[27]=x):x=e[27];let g;return e[28]!==h||e[29]!==x?(g=o.jsxs(o.Fragment,{children:[h,x]}),e[28]=h,e[29]=x,e[30]=g):g=e[30],g}function dt(n){const e=A.c(55),{session:t,depth:c,variant:i,secondaryMeta:r,hasChildren:s,isExpanded:a,onToggleExpand:d,closeDropdown:u}=n,{t:l}=Q(),m=q(ft),p=q(mt),f=G(ut),w=Ee(t.id),h=m===t.id;let x;e[0]!==t.title||e[1]!==l?(x=t.title?.trim()||l("sessions.sidebar.session.untitled"),e[0]=t.title,e[1]=l,e[2]=x):x=e[2];const g=x,b=!!t.parentID,D=w>0&&(!b||f),I=De(t.id),_=I!==null,k=Le(_),F=!_&&D&&!h;let R;if(e[3]!==t){const L=ze(t)||Date.now();R=Re(L),e[3]=t,e[4]=R}else R=e[4];const S=R;let v;e[5]!==r?.projectLabel?(v=r?.projectLabel?.trim()||null,e[5]=r?.projectLabel,e[6]=v):v=e[6];const y=v;let j;e[7]!==r?.branchLabel?(j=r?.branchLabel?.trim()||null,e[7]=r?.branchLabel,e[8]=j):j=e[8];const T=j,N=T&&T!=="HEAD"?T:null;let P;e[9]!==u||e[10]!==h||e[11]!==t||e[12]!==p?(P=()=>{if(h){u();return}const L=Ae(t);p(t.id,L??null),u()},e[9]=u,e[10]=h,e[11]=t,e[12]=p,e[13]=P):P=e[13];const C=P;let $;e[14]!==C?($=L=>{if(L.target?.closest("[data-switcher-expand]")){L.preventDefault();return}C()},e[14]=C,e[15]=$):$=e[15];const he=t.id,X=h&&"bg-interactive-selection text-interactive-selection-foreground hover:bg-interactive-selection data-[highlighted]:bg-interactive-selection";let M;e[16]!==X?(M=H("group relative flex w-full cursor-pointer items-start gap-2 rounded-lg px-2 py-1.5 outline-hidden select-none","data-[highlighted]:bg-interactive-hover hover:bg-interactive-hover",X),e[16]=X,e[17]=M):M=e[17];const ee=8+c*12;let W;e[18]!==ee?(W={paddingInlineStart:ee},e[18]=ee,e[19]=W):W=e[19];let B;e[20]!==s||e[21]!==a||e[22]!==d||e[23]!==l||e[24]!==i?(B=i==="compact"&&s?o.jsx("span",{role:"button",tabIndex:-1,"data-switcher-expand":!0,onClick:L=>{L.preventDefault(),L.stopPropagation(),d?.()},className:"inline-flex h-3.5 w-3.5 flex-shrink-0 items-center justify-center rounded text-muted-foreground/70 hover:text-foreground","aria-label":l(a?"sessions.sidebar.session.subsessions.collapse":"sessions.sidebar.session.subsessions.expand"),children:a?o.jsx(z,{name:"arrow-down-s",className:"h-3.5 w-3.5"}):o.jsx(z,{name:"arrow-right-s",className:"h-3.5 w-3.5"})}):null,e[20]=s,e[21]=a,e[22]=d,e[23]=l,e[24]=i,e[25]=B):B=e[25];let V;e[26]!==g?(V=o.jsx("span",{dir:"auto",className:"truncate oc-ui-start-align typography-ui-label font-normal leading-tight text-foreground",children:g}),e[26]=g,e[27]=V):V=e[27];let U;e[28]!==B||e[29]!==V?(U=o.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[B,V]}),e[28]=B,e[29]=V,e[30]=U):U=e[30];let Z;e[31]!==N||e[32]!==s||e[33]!==a||e[34]!==d||e[35]!==y||e[36]!==l||e[37]!==S||e[38]!==i?(Z=i==="default"?o.jsxs("div",{className:"flex min-w-0 items-center gap-1.5 truncate text-muted-foreground/70 leading-tight",style:{fontSize:"calc(var(--text-ui-label) * 0.85)"},children:[s?o.jsx("span",{role:"button",tabIndex:-1,"data-switcher-expand":!0,onClick:L=>{L.preventDefault(),L.stopPropagation(),d?.()},className:"inline-flex h-3 w-3 flex-shrink-0 items-center justify-center rounded text-muted-foreground/70 hover:text-foreground","aria-label":l(a?"sessions.sidebar.session.subsessions.collapse":"sessions.sidebar.session.subsessions.expand"),children:a?o.jsx(z,{name:"arrow-down-s",className:"h-3 w-3"}):o.jsx(z,{name:"arrow-right-s",className:"h-3 w-3"})}):null,o.jsx("span",{className:"flex-shrink-0",children:S}),y?o.jsx("span",{className:"truncate",children:y}):null,N?o.jsxs("span",{className:"inline-flex min-w-0 items-center gap-0.5",children:[o.jsx(z,{name:"git-branch",className:"h-3 w-3 flex-shrink-0 text-muted-foreground/70"}),o.jsx("span",{className:"truncate",children:N})]}):null]}):null,e[31]=N,e[32]=s,e[33]=a,e[34]=d,e[35]=y,e[36]=l,e[37]=S,e[38]=i,e[39]=Z):Z=e[39];let K;e[40]!==U||e[41]!==Z?(K=o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[U,Z]}),e[40]=U,e[41]=Z,e[42]=K):K=e[42];let Y;e[43]!==_||e[44]!==k||e[45]!==F||e[46]!==I?(Y=_||F?o.jsx("span",{className:"flex h-3 w-3 flex-shrink-0 items-center justify-center self-center",children:o.jsx(Te,{state:I??"unread",runningClassName:H("h-2 w-2",k)})}):null,e[43]=_,e[44]=k,e[45]=F,e[46]=I,e[47]=Y):Y=e[47];let J;return e[48]!==t.id||e[49]!==W||e[50]!==K||e[51]!==Y||e[52]!==$||e[53]!==M?(J=o.jsxs(le,{onClick:$,"data-slot":"session-switcher-item","data-switcher-item-id":he,className:M,style:W,children:[K,Y]}),e[48]=t.id,e[49]=W,e[50]=K,e[51]=Y,e[52]=$,e[53]=M,e[54]=J):J=e[54],J}function ut(n){return n.notifyOnSubtasks}function mt(n){return n.setCurrentSession}function ft(n){return n.currentSessionId}const Ht=n=>!Number.isFinite(n)||n<=0?new Intl.NumberFormat(oe(),{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(0):new Intl.NumberFormat(oe(),{style:"currency",currency:"USD",minimumFractionDigits:n<.01?4:2,maximumFractionDigits:n<.01?4:2}).format(n),pt="ui-store",ht=re({state:re({contextSurfaceZones:Be(Ue(),Ve())})}),wt=n=>{if(!n)return null;let e;try{e=JSON.parse(n)}catch{return null}const t=ht.safeParse(e);return t.success?ve.parse(t.data.state.contextSurfaceZones):null},Mt=()=>{const n=e=>{if(e.key!==pt)return;const t=wt(e.newValue);if(!t)return;const c=G.getState().contextSurfaceZones,i=new Set([...Object.keys(c),...Object.keys(t)].filter(Se));for(const r of i){const s=ne(t,r);s!==ne(G.getState().contextSurfaceZones,r)&&G.getState().moveContextSurfaceToZone(r,s)}};return window.addEventListener("storage",n),()=>window.removeEventListener("storage",n)},xt=E.lazy(()=>ce(()=>import("./useAppFontEffects-d9vsRNKm.js").then(n=>n.oS),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82])).then(n=>({default:n.GuestAttachDialog}))),ue=E.lazy(()=>ce(()=>import("./useAppFontEffects-d9vsRNKm.js").then(n=>n.oR),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82])).then(n=>({default:n.PluginPane}))),Wt=()=>{const n=A.c(11),e=ie(gt),t=ie(bt),c=Fe(St),i=Pe(vt);let r;n[0]!==i?(r=i.map(_t),n[0]=i,n[1]=r):r=n[1];let s;n[2]!==t||n[3]!==e?(s=e?o.jsx(E.Suspense,{fallback:null,children:o.jsx(xt,{guestId:e.guestId,item:e.item,onOpenChange:u=>{u||t()}})}):null,n[2]=t,n[3]=e,n[4]=s):s=n[4];let a;n[5]!==c?(a=c?o.jsx("div",{"aria-hidden":"true",className:"pointer-events-none fixed top-0 -inset-s-[9999px] h-px w-px overflow-hidden",children:o.jsx(E.Suspense,{fallback:null,children:o.jsx(ue,{mode:ae(c),surface:"panel",headless:!0})})}):null,n[5]=c,n[6]=a):a=n[6];let d;return n[7]!==r||n[8]!==s||n[9]!==a?(d=o.jsxs(o.Fragment,{children:[r,s,a]}),n[7]=r,n[8]=s,n[9]=a,n[10]=d):d=n[10],d};function gt(n){return n.request}function bt(n){return n.close}function St(n){return n.guestId}function vt(n){return n.requests}function _t(n){return o.jsx("div",{"aria-hidden":"true",inert:!0,className:"pointer-events-none fixed top-0 -inset-s-[9999px] h-px w-px overflow-hidden",children:o.jsx(E.Suspense,{fallback:null,children:o.jsx(ue,{mode:ae(n.guestId),surface:"background",headless:!0,backgroundAction:n})})},n.id)}const yt=45e3,jt=[1e3,2e3,4e3],me={isHidden:()=>!1,onVisible:()=>()=>{}},Ct=()=>()=>{},Nt=()=>typeof document>"u"?me:{isHidden:()=>document.visibilityState==="hidden",onVisible:n=>{const e=()=>{document.visibilityState!=="hidden"&&n()};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)}},It=(n,e,t=window.setTimeout.bind(window),c=window.clearTimeout.bind(window),i=me,r=Ct)=>{let s=!1,a,d=0,u=!1,l=!1,m=!1,p=!1;const f=async x=>{l=!0,m=!1;const g=await x().catch(()=>!1);if(l=!1,s)return;if(u||=g,!u&&m){f(e);return}const b=u?void 0:jt[d];b!==void 0&&(d+=1),a=t(()=>{if(a=void 0,i.isHidden()){p=!0;return}f(e)},b??yt)},w=i.onVisible(()=>{!p||s||(p=!1,f(e))}),h=r(()=>{if(!(s||u)){if(l){m=!0;return}a!==void 0&&c(a),a=void 0,p=!1,f(e)}});return f(n),()=>{s=!0,w(),h(),a!==void 0&&c(a)}},Bt=n=>{const e=A.c(3);let t,c;e[0]!==n?(t=()=>{const i=kt;let r=i();const s=_e(()=>{r(),r=i()});return()=>{s(),r()}},c=[n],e[0]=n,e[1]=t,e[2]=c):(t=e[1],c=e[2]),E.useEffect(t,c)};function kt(){const n=se();let e=!0;const t=async i=>(i?await $e(Ge()):await Oe(),!e||se()!==n?!1:(He(),Me.getState().status==="ready")),c=It(()=>t(!0),()=>t(!1),window.setTimeout.bind(window),window.clearTimeout.bind(window),Nt(),i=>We(r=>{r===n&&i()}));return()=>{e=!1,c()}}const fe=()=>{const n=[document.documentElement,document.body],e=document.getElementById("root");return e&&n.push(e),n},pe=()=>{let n=!1;for(const e of fe())e.scrollTop!==0&&(e.scrollTop=0,n=!0),e.scrollLeft!==0&&(e.scrollLeft=0,n=!0);return n},Et=n=>n===document||fe().some(e=>e===n),Vt=()=>{const n=A.c(1);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],n[0]=e):e=n[0],E.useEffect(Lt,e)};function Dt(n){Et(n.target)&&pe()}function Lt(){const n=Dt;return document.addEventListener("scroll",n,{capture:!0,passive:!0}),pe(),()=>document.removeEventListener("scroll",n,{capture:!0})}export{Wt as G,Ot as S,Gt as W,Mt as a,Vt as b,Bt as c,Ht as f,$t as u};
@@ -1,4 +1,4 @@
1
- import{f as E,j as o,r as N}from"./vendor-react-BUCujlKS.js";import{u as P,N as L,be as ke,bg as Xe,bi as ve,bf as be,I as D,aS as we,aT as je,bj as ye,aR as Ne,cI as Se,B as J,z as Me,a1 as te,bT as Qe,V as Ye,W as Ze,X as et,dp as tt,aD as st,b4 as V}from"./useAppFontEffects-BZrjCfFw.js";import{aU as nt}from"./katex.min-u4DtE8E5.js";import{M as Ie,W as ot,e as lt}from"./runtimeEndpointReset-DcZoNIpr.js";import{u as Ce}from"./useCallableModelProviders-CpxZpJTR.js";import{C as at}from"./ChangedPathLabel-CbXts83B.js";import{P as rt,a as it}from"./PierreDiffViewer-ToKfUZsI.js";import{f as Re}from"./PullRequestComparisonSelector-Cvng5foj.js";const ct="z-[70]",$e=l=>{const e=E.c(43),{review:t,size:s,className:r}=l,a=s===void 0?"default":s,{t:c,locales:i,label:n}=P(),[u,d]=N.useState(!1);let m;e[0]!==r||e[1]!==a?(m=L(ke({size:a}),"min-w-0",r),e[0]=r,e[1]=a,e[2]=m):m=e[2];let g;e[3]!==c?(g=c("walkthrough.language.selectorAria"),e[3]=c,e[4]=g):g=e[4];let f;e[5]!==n||e[6]!==t.activeLanguage?(f=n(t.activeLanguage),e[5]=n,e[6]=t.activeLanguage,e[7]=f):f=e[7];let k;e[8]===Symbol.for("react.memo_cache_sentinel")?(k=o.jsx(D,{name:"global",className:"shrink-0"}),e[8]=k):k=e[8];let x;e[9]!==n||e[10]!==t.activeLanguage?(x=n(t.activeLanguage),e[9]=n,e[10]=t.activeLanguage,e[11]=x):x=e[11];let h;e[12]!==x?(h=o.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[k,o.jsx("span",{className:"walkthrough-header__label truncate",children:x})]}),e[12]=x,e[13]=h):h=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(D,{name:"arrow-down-s",className:"walkthrough-header__label"}),e[14]=p):p=e[14];let w;e[15]!==m||e[16]!==g||e[17]!==f||e[18]!==h?(w=o.jsx(we,{asChild:!0,children:o.jsxs("button",{type:"button",className:m,"aria-label":g,title:f,children:[h,p]})}),e[15]=m,e[16]=g,e[17]=f,e[18]=h,e[19]=w):w=e[19];const b=a==="mobile"?ct:void 0;let y;e[20]!==c?(y=c("walkthrough.language.menuLabel"),e[20]=c,e[21]=y):y=e[21];let v;e[22]!==y?(v=o.jsx(ve,{className:Ie,children:y}),e[22]=y,e[23]=v):v=e[23];const S=t.activeLanguage;let M;e[24]!==t?(M=_=>{d(!1),t.selectLanguage(_)},e[24]=t,e[25]=M):M=e[25];let I;if(e[26]!==n||e[27]!==i){let _;e[29]!==n?(_=T=>o.jsx(be,{value:T,children:n(T)},T),e[29]=n,e[30]=_):_=e[30],I=i.map(_),e[26]=n,e[27]=i,e[28]=I}else I=e[28];let C;e[31]!==t.activeLanguage||e[32]!==M||e[33]!==I?(C=o.jsx(ye,{value:S,onValueChange:M,children:I}),e[31]=t.activeLanguage,e[32]=M,e[33]=I,e[34]=C):C=e[34];let z;e[35]!==b||e[36]!==v||e[37]!==C?(z=o.jsxs(je,{align:"end",className:"max-h-80 w-48 overflow-y-auto",positionerClassName:b,children:[v,C]}),e[35]=b,e[36]=v,e[37]=C,e[38]=z):z=e[38];let O;return e[39]!==u||e[40]!==z||e[41]!==w?(O=o.jsxs(Ne,{open:u,onOpenChange:d,children:[w,z]}),e[39]=u,e[40]=z,e[41]=w,e[42]=O):O=e[42],O},De=l=>{const e=E.c(9),{review:t,className:s}=l,r=t.activeProviderId??"";let a;e[0]!==t.modelProviders?(a=t.modelProviders??[],e[0]=t.modelProviders,e[1]=a):a=e[1];let c;return e[2]!==s||e[3]!==t.activeModelId||e[4]!==t.isStructuredOutputCapable||e[5]!==t.selectModel||e[6]!==r||e[7]!==a?(c=o.jsx(Se,{providerId:r,modelId:t.activeModelId,onChange:t.selectModel,allowedProviderIds:a,isModelAllowed:t.isStructuredOutputCapable,tooltipsEnabled:!1,dropdownPortalToBody:!0,className:s}),e[2]=s,e[3]=t.activeModelId,e[4]=t.isStructuredOutputCapable,e[5]=t.selectModel,e[6]=r,e[7]=a,e[8]=c):c=e[8],c},ze=l=>{const e=E.c(43),{review:t,hasView:s,size:r,className:a,labelClassName:c,onActed:i}=l,n=r===void 0?"sm":r,{t:u}=P();if(t.isGenerating){let b;e[0]!==u?(b=u("walkthrough.action.cancel"),e[0]=u,e[1]=b):b=e[1];let y;e[2]!==u?(y=u("walkthrough.action.cancel"),e[2]=u,e[3]=y):y=e[3];let v;e[4]!==i||e[5]!==t?(v=()=>{t.cancel(),i?.()},e[4]=i,e[5]=t,e[6]=v):v=e[6];let S;e[7]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(D,{name:"stop",className:"size-3.5"}),e[7]=S):S=e[7];let M;e[8]!==u?(M=u("walkthrough.action.cancel"),e[8]=u,e[9]=M):M=e[9];let I;e[10]!==c||e[11]!==M?(I=o.jsx("span",{className:c,children:M}),e[10]=c,e[11]=M,e[12]=I):I=e[12];let C;return e[13]!==a||e[14]!==n||e[15]!==b||e[16]!==y||e[17]!==v||e[18]!==I?(C=o.jsxs(J,{type:"button",variant:"outline",size:n,className:a,"aria-label":b,title:y,onClick:v,children:[S,I]}),e[13]=a,e[14]=n,e[15]=b,e[16]=y,e[17]=v,e[18]=I,e[19]=C):C=e[19],C}let d;e[20]!==s||e[21]!==u?(d=u(s?"walkthrough.action.regenerate":"walkthrough.action.generate"),e[20]=s,e[21]=u,e[22]=d):d=e[22];const m=d,g=t.generateDisabled?"border-border text-muted-foreground":ot;let f;e[23]!==a||e[24]!==g?(f=L(g,a),e[23]=a,e[24]=g,e[25]=f):f=e[25];let k;e[26]!==s||e[27]!==i||e[28]!==t?(k=()=>{t.handleGenerate(s),i?.()},e[26]=s,e[27]=i,e[28]=t,e[29]=k):k=e[29];const x=s?"refresh":"route";let h;e[30]!==x?(h=o.jsx(D,{name:x,className:"size-3.5"}),e[30]=x,e[31]=h):h=e[31];let p;e[32]!==c||e[33]!==m?(p=o.jsx("span",{className:c,children:m}),e[32]=c,e[33]=m,e[34]=p):p=e[34];let w;return e[35]!==t.generateDisabled||e[36]!==n||e[37]!==f||e[38]!==k||e[39]!==h||e[40]!==p||e[41]!==m?(w=o.jsxs(J,{type:"button",variant:"outline",size:n,className:f,disabled:t.generateDisabled,"aria-label":m,title:m,onClick:k,children:[h,p]}),e[35]=t.generateDisabled,e[36]=n,e[37]=f,e[38]=k,e[39]=h,e[40]=p,e[41]=m,e[42]=w):w=e[42],w},Tt=l=>{const e=E.c(20),{review:t,view:s,size:r}=l,a=r===void 0?"default":r,{t:c}=P();if(s.stops.length===0)return null;let i;e[0]!==a?(i=L(ke({size:a}),"shrink-0 tabular-nums"),e[0]=a,e[1]=i):i=e[1];let n;e[2]!==c?(n=c("walkthrough.toc.jumpAria"),e[2]=c,e[3]=n):n=e[3];const u=`${t.activeStopPosition} / ${s.stops.length}`;let d;e[4]!==u?(d=o.jsx("span",{dir:"ltr",children:u}),e[4]=u,e[5]=d):d=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(D,{name:"arrow-down-s"}),e[6]=m):m=e[6];let g;e[7]!==i||e[8]!==n||e[9]!==d?(g=o.jsx(we,{asChild:!0,children:o.jsxs("button",{type:"button",className:i,"aria-label":n,children:[d,m]})}),e[7]=i,e[8]=n,e[9]=d,e[10]=g):g=e[10];const f=t.activeStopId??"",k=t.handleSelectStop;let x;e[11]!==s.chapters?(x=s.chapters.map(dt),e[11]=s.chapters,e[12]=x):x=e[12];let h;e[13]!==t.handleSelectStop||e[14]!==x||e[15]!==f?(h=o.jsx(je,{align:"end",className:"max-h-96 w-72 max-w-[calc(100vw-2rem)] overflow-y-auto",children:o.jsx(ye,{value:f,onValueChange:k,children:x})}),e[13]=t.handleSelectStop,e[14]=x,e[15]=f,e[16]=h):h=e[16];let p;return e[17]!==h||e[18]!==g?(p=o.jsxs(Ne,{children:[g,h]}),e[17]=h,e[18]=g,e[19]=p):p=e[19],p},At=l=>{const e=E.c(20),{review:t,view:s}=l,{t:r,label:a}=P(),{entry:c}=t;let i;e[0]!==c||e[1]!==t.isGenerating||e[2]!==r||e[3]!==s?(i=t.isGenerating&&s&&o.jsxs("div",{className:"flex shrink-0 items-center gap-2 bg-[var(--status-info-background)] px-3 py-2",children:[o.jsx(Me,{className:"size-4 shrink-0 text-[var(--status-info)]"}),o.jsx("span",{className:"typography-meta text-foreground",children:c.stage==="collecting"?r("walkthrough.stage.collecting"):c.stage==="assembling"?r("walkthrough.stage.assembling"):r("walkthrough.stage.asking")})]}),e[0]=c,e[1]=t.isGenerating,e[2]=r,e[3]=s,e[4]=i):i=e[4];let n;e[5]!==a||e[6]!==t||e[7]!==r?(n=(t.languageMissing||t.modelMissing)&&o.jsxs("div",{className:"flex shrink-0 items-center gap-2 bg-[var(--status-info-background)] px-3 py-2",children:[o.jsx(D,{name:"information",className:"size-4 shrink-0 text-[var(--status-info)]"}),o.jsx("span",{className:"typography-meta min-w-0 text-foreground",children:t.languageMissing&&t.modelMissing?r("walkthrough.missing.languageAndModel"):t.languageMissing?r("walkthrough.missing.language",{requested:a(t.activeLanguage),shown:a(t.shownLocale)}):r("walkthrough.missing.model",{model:t.activeModelId})}),o.jsx(J,{type:"button",variant:"ghost",size:"xs",className:"ms-auto shrink-0",disabled:t.generateDisabled,onClick:()=>t.handleGenerate(!1),children:r("walkthrough.action.generate")})]}),e[5]=a,e[6]=t,e[7]=r,e[8]=n):n=e[8];let u;e[9]!==t||e[10]!==r||e[11]!==s?(u=s?.isStale&&!t.isGenerating&&o.jsxs("div",{className:"flex shrink-0 items-center gap-2 bg-status-warning/10 px-3 py-2",children:[o.jsx(D,{name:"error-warning",className:"size-4 shrink-0 text-status-warning"}),o.jsx("span",{className:"typography-meta min-w-0 text-foreground",children:r("walkthrough.stale.banner",{count:s.staleStopCount})}),o.jsx(J,{type:"button",variant:"ghost",size:"xs",className:"ms-auto shrink-0",disabled:t.isGenerating,onClick:()=>t.handleGenerate(!0),children:r("walkthrough.action.regenerate")})]}),e[9]=t,e[10]=r,e[11]=s,e[12]=u):u=e[12];let d;e[13]!==t.errorMessage?(d=t.errorMessage&&o.jsxs("div",{className:"flex shrink-0 items-start gap-2 bg-status-error/10 px-3 py-2",children:[o.jsx(D,{name:"error-warning",className:"mt-0.5 size-4 shrink-0 text-status-error"}),o.jsx("span",{className:"typography-meta line-clamp-2 text-foreground",title:t.errorMessage,children:t.errorMessage})]}),e[13]=t.errorMessage,e[14]=d):d=e[14];let m;return e[15]!==i||e[16]!==n||e[17]!==u||e[18]!==d?(m=o.jsxs(o.Fragment,{children:[i,n,u,d]}),e[15]=i,e[16]=n,e[17]=u,e[18]=d,e[19]=m):m=e[19],m},Ht=l=>{const e=E.c(32),{review:t,size:s}=l,r=s===void 0?"default":s,{t:a}=P();if(t.entry.status==="loading"){let S;return e[0]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:o.jsx(D,{name:"loader-4",className:"size-6 animate-spin text-muted-foreground"})}),e[0]=S):S=e[0],S}let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(D,{name:"route",className:"size-6 text-muted-foreground"}),e[1]=c):c=e[1];let i;e[2]!==a?(i=a("walkthrough.empty.title"),e[2]=a,e[3]=i):i=e[3];let n;e[4]!==i?(n=o.jsx("h3",{className:"typography-ui-label font-semibold text-foreground",children:i}),e[4]=i,e[5]=n):n=e[5];let u;e[6]!==a?(u=a("walkthrough.empty.description"),e[6]=a,e[7]=u):u=e[7];let d;e[8]!==u?(d=o.jsx("p",{className:"typography-meta max-w-md text-muted-foreground",children:u}),e[8]=u,e[9]=d):d=e[9];const m=r==="mobile"?"w-full flex-col":"flex-wrap items-center justify-center";let g;e[10]!==m?(g=L("flex max-w-full gap-2 pt-1",m),e[10]=m,e[11]=g):g=e[11];const f=r==="mobile"?void 0:"max-w-48";let k;e[12]!==t||e[13]!==f?(k=o.jsx(De,{review:t,className:f}),e[12]=t,e[13]=f,e[14]=k):k=e[14];const x=r==="mobile"?"w-full":"max-w-40";let h;e[15]!==t||e[16]!==r||e[17]!==x?(h=o.jsx($e,{review:t,size:r,className:x}),e[15]=t,e[16]=r,e[17]=x,e[18]=h):h=e[18];let p;e[19]!==k||e[20]!==h||e[21]!==g?(p=o.jsxs("div",{className:g,children:[k,h]}),e[19]=k,e[20]=h,e[21]=g,e[22]=p):p=e[22];const w=r==="mobile"?"lg":"sm",b=r==="mobile"?"w-full":void 0;let y;e[23]!==t||e[24]!==w||e[25]!==b?(y=o.jsx(ze,{review:t,hasView:!1,size:w,className:b}),e[23]=t,e[24]=w,e[25]=b,e[26]=y):y=e[26];let v;return e[27]!==p||e[28]!==y||e[29]!==n||e[30]!==d?(v=o.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-8 text-center",children:[c,n,d,p,y]}),e[27]=p,e[28]=y,e[29]=n,e[30]=d,e[31]=v):v=e[31],v},Wt=l=>{const e=E.c(44),{review:t,hasView:s,size:r,onOpenChanges:a,onActed:c}=l,i=r===void 0?"default":r,{t:n}=P();let u;e[0]!==n?(u=n("walkthrough.options.model"),e[0]=n,e[1]=u):u=e[1];let d;e[2]!==u?(d=o.jsx("span",{className:"typography-meta text-muted-foreground",children:u}),e[2]=u,e[3]=d):d=e[3];const m=i==="mobile"?void 0:"w-full max-w-none";let g;e[4]!==t||e[5]!==m?(g=o.jsx(De,{review:t,className:m}),e[4]=t,e[5]=m,e[6]=g):g=e[6];let f;e[7]!==d||e[8]!==g?(f=o.jsxs("div",{className:"flex flex-col gap-1.5",children:[d,g]}),e[7]=d,e[8]=g,e[9]=f):f=e[9];let k;e[10]!==n?(k=n("walkthrough.options.language"),e[10]=n,e[11]=k):k=e[11];let x;e[12]!==k?(x=o.jsx("span",{className:"typography-meta text-muted-foreground",children:k}),e[12]=k,e[13]=x):x=e[13];let h;e[14]!==t||e[15]!==i?(h=o.jsx($e,{review:t,size:i,className:"w-full"}),e[14]=t,e[15]=i,e[16]=h):h=e[16];let p;e[17]!==x||e[18]!==h?(p=o.jsxs("div",{className:"flex flex-col gap-1.5",children:[x,h]}),e[17]=x,e[18]=h,e[19]=p):p=e[19];const w=i==="mobile"?"lg":"sm";let b;e[20]!==s||e[21]!==c||e[22]!==t||e[23]!==w?(b=o.jsx(ze,{review:t,hasView:s,size:w,className:"w-full",onActed:c}),e[20]=s,e[21]=c,e[22]=t,e[23]=w,e[24]=b):b=e[24];let y;e[25]!==c||e[26]!==a||e[27]!==n?(y=a&&o.jsxs(J,{type:"button",variant:"ghost",size:"sm",className:"w-full",onClick:()=>{a(),c?.()},children:[o.jsx(D,{name:"arrow-left-right",className:"size-4"}),n("contextPanel.mode.diff")]}),e[25]=c,e[26]=a,e[27]=n,e[28]=y):y=e[28];const v=i==="mobile"?"lg":"sm";let S;e[29]!==c?(S=()=>{lt(),c?.()},e[29]=c,e[30]=S):S=e[30];let M;e[31]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx(D,{name:"question",className:"size-4"}),e[31]=M):M=e[31];let I;e[32]!==n?(I=n("walkthrough.help.guide"),e[32]=n,e[33]=I):I=e[33];let C;e[34]!==v||e[35]!==S||e[36]!==I?(C=o.jsxs(J,{type:"button",variant:"ghost",size:v,className:"w-full",onClick:S,children:[M,I]}),e[34]=v,e[35]=S,e[36]=I,e[37]=C):C=e[37];let z;return e[38]!==p||e[39]!==b||e[40]!==y||e[41]!==C||e[42]!==f?(z=o.jsxs("div",{className:"flex flex-col gap-3",children:[f,p,b,y,C]}),e[38]=p,e[39]=b,e[40]=y,e[41]=C,e[42]=f,e[43]=z):z=e[43],z};function ut(l){return o.jsxs(be,{value:l.stop.id,children:[o.jsx("span",{className:"w-5 shrink-0 tabular-nums text-muted-foreground",children:l.position}),o.jsx("span",{className:"min-w-0 truncate",children:l.stop.title})]},l.stop.id)}function dt(l,e){const{chapter:t,stops:s}=l;return o.jsxs(N.Fragment,{children:[e>0&&o.jsx(Xe,{}),o.jsx(ve,{className:Ie,children:o.jsx("span",{className:"block truncate",children:t.title})}),s.map(ut)]},t.id)}const ht=l=>l?`${l.providerID}/${l.modelID}`:"",Ft=({reason:l,model:e,requiredChars:t,availableChars:s,onRetry:r})=>{const{t:a}=P(),c=te(h=>h.modelsMetadata),[i,n]=N.useState(!1),u=l==="context-too-small"||l==="structured-output-unsupported"||l==="output-exhausted",d=Ce(u),m=N.useCallback(async(h,p)=>{if(!h||!p||i)return;const w=`${h}/${p}`;n(!0);try{await nt({walkthroughModelOverride:w}),r()}catch(b){console.warn("Failed to save small model override:",b)}finally{n(!1)}},[r,i]),g=N.useCallback((h,p)=>c.get(`${h}/${p}`)?.structured_output!==!1,[c]),f=ht(e),k=()=>{if(l==="no-model")return a("walkthrough.blocked.noModel.description");if(l==="empty-diff")return a("walkthrough.blocked.emptyDiff.description");if(l==="only-generated")return a("walkthrough.blocked.onlyGenerated.description");if(l==="server-unsupported")return a("walkthrough.blocked.serverUnsupported.description");if(l==="output-exhausted")return f?a("walkthrough.blocked.outputExhausted.description",{model:f}):a("walkthrough.blocked.outputExhausted.descriptionUnknownModel");if(l==="structured-output-unsupported")return f?a("walkthrough.blocked.structuredOutput.description",{model:f}):a("walkthrough.blocked.structuredOutput.descriptionUnknownModel");const h=Math.ceil((t??0)/1e3),p=Math.ceil((s??0)/1e3);return f?a("walkthrough.blocked.contextTooSmall.description",{model:f,required:h,available:p}):a("walkthrough.blocked.contextTooSmall.descriptionUnknownModel",{required:h,available:p})},x=()=>a(l==="no-model"?"walkthrough.blocked.noModel.title":l==="empty-diff"?"walkthrough.blocked.emptyDiff.title":l==="only-generated"?"walkthrough.blocked.onlyGenerated.title":l==="server-unsupported"?"walkthrough.blocked.serverUnsupported.title":l==="output-exhausted"?"walkthrough.blocked.outputExhausted.title":l==="structured-output-unsupported"?"walkthrough.blocked.structuredOutput.title":"walkthrough.blocked.contextTooSmall.title");return o.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-8 text-center",children:[o.jsx(D,{name:l==="empty-diff"||l==="only-generated"?"information":"error-warning",className:"size-6 text-muted-foreground"}),o.jsx("h3",{className:"typography-ui-label font-semibold text-foreground",children:x()}),o.jsx("p",{className:"typography-meta max-w-md text-muted-foreground",children:k()}),u&&o.jsxs("div",{className:"flex flex-col items-center gap-2 pt-2",children:[o.jsx("span",{className:"typography-micro text-muted-foreground",children:a("walkthrough.blocked.chooseModel")}),o.jsx(Se,{providerId:e?.providerID??"",modelId:e?.modelID??"",onChange:(h,p)=>{m(h,p)},allowedProviderIds:d??[],isModelAllowed:g})]}),(l==="empty-diff"||l==="only-generated"||l==="server-unsupported")&&o.jsx(J,{type:"button",variant:"outline",size:"sm",onClick:r,children:a("walkthrough.action.refresh")})]})},pt=[{labelKey:"walkthrough.stage.collecting"},{labelKey:"walkthrough.stage.asking"},{labelKey:"walkthrough.stage.assembling"}],Gt=l=>{const e=E.c(6),{progress:t}=l,{t:s}=P(),{completedCount:r,activeIndex:a}=t;let c;e[0]!==a||e[1]!==r||e[2]!==s?(c=pt.map((n,u)=>{const d=u<r,m=a===u;return o.jsxs("li",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center",children:d?o.jsx(D,{name:"check",className:"size-3.5 text-status-success"}):m?o.jsx(Me,{className:"size-3.5 text-[var(--status-info)]"}):o.jsx("span",{className:"size-1.5 rounded-full bg-surface-muted"})}),o.jsx("span",{className:L("typography-meta",m?"text-foreground":d?"text-muted-foreground":"text-muted-foreground/60"),children:s(n.labelKey)})]},n.labelKey)}),e[0]=a,e[1]=r,e[2]=s,e[3]=c):c=e[3];let i;return e[4]!==c?(i=o.jsx("ul",{className:"flex flex-col gap-2 text-start",children:c}),e[4]=c,e[5]=i):i=e[5],i},ft=l=>{if(!l?.walkthrough)return null;const e=new Map(l.hunks.map(a=>[a.id,a])),t=new Set,s=[],r=[];for(const[a,c]of l.walkthrough.chapters.entries()){const i=[];for(const n of c.stops){const u=[],d=[];for(const g of n.hunkIds){const f=e.get(g);f?(u.push(f),t.add(g)):d.push(g)}const m={stop:n,chapter:c,chapterIndex:a,position:s.length+1,hunks:u,missingHunkIds:d,isStale:d.length>0};s.push(m),i.push(m)}r.push({chapter:c,stops:i})}return{walkthrough:l.walkthrough,stops:s,chapters:r,uncoveredHunks:l.hunks.filter(a=>!t.has(a.id)),staleStopCount:s.filter(a=>a.isStale).length,isStale:s.some(a=>a.isStale)}},mt=l=>{const e=new Map;for(const t of l){const s=e.get(t.path);if(s){s.added+=t.added,s.deleted+=t.deleted;continue}e.set(t.path,{path:t.path,added:t.added,deleted:t.deleted})}return[...e.values()]},ue=l=>{const e=[];for(const t of l){const s=e.at(-1);if(s&&s.path===t.path){s.hunks.push(t);continue}e.push({path:t.path,hunks:[t]})}return e},Ee=l=>{if(l.length===0)return"";if(l.length===1)return l[0].patch;const e=l[0].patch,t=e.indexOf(`
1
+ import{f as E,j as o,r as N}from"./vendor-react-BUCujlKS.js";import{u as P,N as L,be as ke,bg as Xe,bi as ve,bf as be,I as D,aS as we,aT as je,bj as ye,aR as Ne,cI as Se,B as J,z as Me,a1 as te,bT as Qe,V as Ye,W as Ze,X as et,dp as tt,aD as st,b4 as V}from"./useAppFontEffects-d9vsRNKm.js";import{aU as nt}from"./katex.min-u4DtE8E5.js";import{M as Ie,W as ot,e as lt}from"./runtimeEndpointReset-BJUtkqal.js";import{u as Ce}from"./useCallableModelProviders-8CrUkERW.js";import{C as at}from"./ChangedPathLabel-CQNGnF-T.js";import{P as rt,a as it}from"./PierreDiffViewer-Ck0P8Q2W.js";import{f as Re}from"./PullRequestComparisonSelector-DOW9_VlK.js";const ct="z-[70]",$e=l=>{const e=E.c(43),{review:t,size:s,className:r}=l,a=s===void 0?"default":s,{t:c,locales:i,label:n}=P(),[u,d]=N.useState(!1);let m;e[0]!==r||e[1]!==a?(m=L(ke({size:a}),"min-w-0",r),e[0]=r,e[1]=a,e[2]=m):m=e[2];let g;e[3]!==c?(g=c("walkthrough.language.selectorAria"),e[3]=c,e[4]=g):g=e[4];let f;e[5]!==n||e[6]!==t.activeLanguage?(f=n(t.activeLanguage),e[5]=n,e[6]=t.activeLanguage,e[7]=f):f=e[7];let k;e[8]===Symbol.for("react.memo_cache_sentinel")?(k=o.jsx(D,{name:"global",className:"shrink-0"}),e[8]=k):k=e[8];let x;e[9]!==n||e[10]!==t.activeLanguage?(x=n(t.activeLanguage),e[9]=n,e[10]=t.activeLanguage,e[11]=x):x=e[11];let h;e[12]!==x?(h=o.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[k,o.jsx("span",{className:"walkthrough-header__label truncate",children:x})]}),e[12]=x,e[13]=h):h=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(D,{name:"arrow-down-s",className:"walkthrough-header__label"}),e[14]=p):p=e[14];let w;e[15]!==m||e[16]!==g||e[17]!==f||e[18]!==h?(w=o.jsx(we,{asChild:!0,children:o.jsxs("button",{type:"button",className:m,"aria-label":g,title:f,children:[h,p]})}),e[15]=m,e[16]=g,e[17]=f,e[18]=h,e[19]=w):w=e[19];const b=a==="mobile"?ct:void 0;let y;e[20]!==c?(y=c("walkthrough.language.menuLabel"),e[20]=c,e[21]=y):y=e[21];let v;e[22]!==y?(v=o.jsx(ve,{className:Ie,children:y}),e[22]=y,e[23]=v):v=e[23];const S=t.activeLanguage;let M;e[24]!==t?(M=_=>{d(!1),t.selectLanguage(_)},e[24]=t,e[25]=M):M=e[25];let I;if(e[26]!==n||e[27]!==i){let _;e[29]!==n?(_=T=>o.jsx(be,{value:T,children:n(T)},T),e[29]=n,e[30]=_):_=e[30],I=i.map(_),e[26]=n,e[27]=i,e[28]=I}else I=e[28];let C;e[31]!==t.activeLanguage||e[32]!==M||e[33]!==I?(C=o.jsx(ye,{value:S,onValueChange:M,children:I}),e[31]=t.activeLanguage,e[32]=M,e[33]=I,e[34]=C):C=e[34];let z;e[35]!==b||e[36]!==v||e[37]!==C?(z=o.jsxs(je,{align:"end",className:"max-h-80 w-48 overflow-y-auto",positionerClassName:b,children:[v,C]}),e[35]=b,e[36]=v,e[37]=C,e[38]=z):z=e[38];let O;return e[39]!==u||e[40]!==z||e[41]!==w?(O=o.jsxs(Ne,{open:u,onOpenChange:d,children:[w,z]}),e[39]=u,e[40]=z,e[41]=w,e[42]=O):O=e[42],O},De=l=>{const e=E.c(9),{review:t,className:s}=l,r=t.activeProviderId??"";let a;e[0]!==t.modelProviders?(a=t.modelProviders??[],e[0]=t.modelProviders,e[1]=a):a=e[1];let c;return e[2]!==s||e[3]!==t.activeModelId||e[4]!==t.isStructuredOutputCapable||e[5]!==t.selectModel||e[6]!==r||e[7]!==a?(c=o.jsx(Se,{providerId:r,modelId:t.activeModelId,onChange:t.selectModel,allowedProviderIds:a,isModelAllowed:t.isStructuredOutputCapable,tooltipsEnabled:!1,dropdownPortalToBody:!0,className:s}),e[2]=s,e[3]=t.activeModelId,e[4]=t.isStructuredOutputCapable,e[5]=t.selectModel,e[6]=r,e[7]=a,e[8]=c):c=e[8],c},ze=l=>{const e=E.c(43),{review:t,hasView:s,size:r,className:a,labelClassName:c,onActed:i}=l,n=r===void 0?"sm":r,{t:u}=P();if(t.isGenerating){let b;e[0]!==u?(b=u("walkthrough.action.cancel"),e[0]=u,e[1]=b):b=e[1];let y;e[2]!==u?(y=u("walkthrough.action.cancel"),e[2]=u,e[3]=y):y=e[3];let v;e[4]!==i||e[5]!==t?(v=()=>{t.cancel(),i?.()},e[4]=i,e[5]=t,e[6]=v):v=e[6];let S;e[7]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(D,{name:"stop",className:"size-3.5"}),e[7]=S):S=e[7];let M;e[8]!==u?(M=u("walkthrough.action.cancel"),e[8]=u,e[9]=M):M=e[9];let I;e[10]!==c||e[11]!==M?(I=o.jsx("span",{className:c,children:M}),e[10]=c,e[11]=M,e[12]=I):I=e[12];let C;return e[13]!==a||e[14]!==n||e[15]!==b||e[16]!==y||e[17]!==v||e[18]!==I?(C=o.jsxs(J,{type:"button",variant:"outline",size:n,className:a,"aria-label":b,title:y,onClick:v,children:[S,I]}),e[13]=a,e[14]=n,e[15]=b,e[16]=y,e[17]=v,e[18]=I,e[19]=C):C=e[19],C}let d;e[20]!==s||e[21]!==u?(d=u(s?"walkthrough.action.regenerate":"walkthrough.action.generate"),e[20]=s,e[21]=u,e[22]=d):d=e[22];const m=d,g=t.generateDisabled?"border-border text-muted-foreground":ot;let f;e[23]!==a||e[24]!==g?(f=L(g,a),e[23]=a,e[24]=g,e[25]=f):f=e[25];let k;e[26]!==s||e[27]!==i||e[28]!==t?(k=()=>{t.handleGenerate(s),i?.()},e[26]=s,e[27]=i,e[28]=t,e[29]=k):k=e[29];const x=s?"refresh":"route";let h;e[30]!==x?(h=o.jsx(D,{name:x,className:"size-3.5"}),e[30]=x,e[31]=h):h=e[31];let p;e[32]!==c||e[33]!==m?(p=o.jsx("span",{className:c,children:m}),e[32]=c,e[33]=m,e[34]=p):p=e[34];let w;return e[35]!==t.generateDisabled||e[36]!==n||e[37]!==f||e[38]!==k||e[39]!==h||e[40]!==p||e[41]!==m?(w=o.jsxs(J,{type:"button",variant:"outline",size:n,className:f,disabled:t.generateDisabled,"aria-label":m,title:m,onClick:k,children:[h,p]}),e[35]=t.generateDisabled,e[36]=n,e[37]=f,e[38]=k,e[39]=h,e[40]=p,e[41]=m,e[42]=w):w=e[42],w},Tt=l=>{const e=E.c(20),{review:t,view:s,size:r}=l,a=r===void 0?"default":r,{t:c}=P();if(s.stops.length===0)return null;let i;e[0]!==a?(i=L(ke({size:a}),"shrink-0 tabular-nums"),e[0]=a,e[1]=i):i=e[1];let n;e[2]!==c?(n=c("walkthrough.toc.jumpAria"),e[2]=c,e[3]=n):n=e[3];const u=`${t.activeStopPosition} / ${s.stops.length}`;let d;e[4]!==u?(d=o.jsx("span",{dir:"ltr",children:u}),e[4]=u,e[5]=d):d=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(D,{name:"arrow-down-s"}),e[6]=m):m=e[6];let g;e[7]!==i||e[8]!==n||e[9]!==d?(g=o.jsx(we,{asChild:!0,children:o.jsxs("button",{type:"button",className:i,"aria-label":n,children:[d,m]})}),e[7]=i,e[8]=n,e[9]=d,e[10]=g):g=e[10];const f=t.activeStopId??"",k=t.handleSelectStop;let x;e[11]!==s.chapters?(x=s.chapters.map(dt),e[11]=s.chapters,e[12]=x):x=e[12];let h;e[13]!==t.handleSelectStop||e[14]!==x||e[15]!==f?(h=o.jsx(je,{align:"end",className:"max-h-96 w-72 max-w-[calc(100vw-2rem)] overflow-y-auto",children:o.jsx(ye,{value:f,onValueChange:k,children:x})}),e[13]=t.handleSelectStop,e[14]=x,e[15]=f,e[16]=h):h=e[16];let p;return e[17]!==h||e[18]!==g?(p=o.jsxs(Ne,{children:[g,h]}),e[17]=h,e[18]=g,e[19]=p):p=e[19],p},At=l=>{const e=E.c(20),{review:t,view:s}=l,{t:r,label:a}=P(),{entry:c}=t;let i;e[0]!==c||e[1]!==t.isGenerating||e[2]!==r||e[3]!==s?(i=t.isGenerating&&s&&o.jsxs("div",{className:"flex shrink-0 items-center gap-2 bg-[var(--status-info-background)] px-3 py-2",children:[o.jsx(Me,{className:"size-4 shrink-0 text-[var(--status-info)]"}),o.jsx("span",{className:"typography-meta text-foreground",children:c.stage==="collecting"?r("walkthrough.stage.collecting"):c.stage==="assembling"?r("walkthrough.stage.assembling"):r("walkthrough.stage.asking")})]}),e[0]=c,e[1]=t.isGenerating,e[2]=r,e[3]=s,e[4]=i):i=e[4];let n;e[5]!==a||e[6]!==t||e[7]!==r?(n=(t.languageMissing||t.modelMissing)&&o.jsxs("div",{className:"flex shrink-0 items-center gap-2 bg-[var(--status-info-background)] px-3 py-2",children:[o.jsx(D,{name:"information",className:"size-4 shrink-0 text-[var(--status-info)]"}),o.jsx("span",{className:"typography-meta min-w-0 text-foreground",children:t.languageMissing&&t.modelMissing?r("walkthrough.missing.languageAndModel"):t.languageMissing?r("walkthrough.missing.language",{requested:a(t.activeLanguage),shown:a(t.shownLocale)}):r("walkthrough.missing.model",{model:t.activeModelId})}),o.jsx(J,{type:"button",variant:"ghost",size:"xs",className:"ms-auto shrink-0",disabled:t.generateDisabled,onClick:()=>t.handleGenerate(!1),children:r("walkthrough.action.generate")})]}),e[5]=a,e[6]=t,e[7]=r,e[8]=n):n=e[8];let u;e[9]!==t||e[10]!==r||e[11]!==s?(u=s?.isStale&&!t.isGenerating&&o.jsxs("div",{className:"flex shrink-0 items-center gap-2 bg-status-warning/10 px-3 py-2",children:[o.jsx(D,{name:"error-warning",className:"size-4 shrink-0 text-status-warning"}),o.jsx("span",{className:"typography-meta min-w-0 text-foreground",children:r("walkthrough.stale.banner",{count:s.staleStopCount})}),o.jsx(J,{type:"button",variant:"ghost",size:"xs",className:"ms-auto shrink-0",disabled:t.isGenerating,onClick:()=>t.handleGenerate(!0),children:r("walkthrough.action.regenerate")})]}),e[9]=t,e[10]=r,e[11]=s,e[12]=u):u=e[12];let d;e[13]!==t.errorMessage?(d=t.errorMessage&&o.jsxs("div",{className:"flex shrink-0 items-start gap-2 bg-status-error/10 px-3 py-2",children:[o.jsx(D,{name:"error-warning",className:"mt-0.5 size-4 shrink-0 text-status-error"}),o.jsx("span",{className:"typography-meta line-clamp-2 text-foreground",title:t.errorMessage,children:t.errorMessage})]}),e[13]=t.errorMessage,e[14]=d):d=e[14];let m;return e[15]!==i||e[16]!==n||e[17]!==u||e[18]!==d?(m=o.jsxs(o.Fragment,{children:[i,n,u,d]}),e[15]=i,e[16]=n,e[17]=u,e[18]=d,e[19]=m):m=e[19],m},Ht=l=>{const e=E.c(32),{review:t,size:s}=l,r=s===void 0?"default":s,{t:a}=P();if(t.entry.status==="loading"){let S;return e[0]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:o.jsx(D,{name:"loader-4",className:"size-6 animate-spin text-muted-foreground"})}),e[0]=S):S=e[0],S}let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(D,{name:"route",className:"size-6 text-muted-foreground"}),e[1]=c):c=e[1];let i;e[2]!==a?(i=a("walkthrough.empty.title"),e[2]=a,e[3]=i):i=e[3];let n;e[4]!==i?(n=o.jsx("h3",{className:"typography-ui-label font-semibold text-foreground",children:i}),e[4]=i,e[5]=n):n=e[5];let u;e[6]!==a?(u=a("walkthrough.empty.description"),e[6]=a,e[7]=u):u=e[7];let d;e[8]!==u?(d=o.jsx("p",{className:"typography-meta max-w-md text-muted-foreground",children:u}),e[8]=u,e[9]=d):d=e[9];const m=r==="mobile"?"w-full flex-col":"flex-wrap items-center justify-center";let g;e[10]!==m?(g=L("flex max-w-full gap-2 pt-1",m),e[10]=m,e[11]=g):g=e[11];const f=r==="mobile"?void 0:"max-w-48";let k;e[12]!==t||e[13]!==f?(k=o.jsx(De,{review:t,className:f}),e[12]=t,e[13]=f,e[14]=k):k=e[14];const x=r==="mobile"?"w-full":"max-w-40";let h;e[15]!==t||e[16]!==r||e[17]!==x?(h=o.jsx($e,{review:t,size:r,className:x}),e[15]=t,e[16]=r,e[17]=x,e[18]=h):h=e[18];let p;e[19]!==k||e[20]!==h||e[21]!==g?(p=o.jsxs("div",{className:g,children:[k,h]}),e[19]=k,e[20]=h,e[21]=g,e[22]=p):p=e[22];const w=r==="mobile"?"lg":"sm",b=r==="mobile"?"w-full":void 0;let y;e[23]!==t||e[24]!==w||e[25]!==b?(y=o.jsx(ze,{review:t,hasView:!1,size:w,className:b}),e[23]=t,e[24]=w,e[25]=b,e[26]=y):y=e[26];let v;return e[27]!==p||e[28]!==y||e[29]!==n||e[30]!==d?(v=o.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-8 text-center",children:[c,n,d,p,y]}),e[27]=p,e[28]=y,e[29]=n,e[30]=d,e[31]=v):v=e[31],v},Wt=l=>{const e=E.c(44),{review:t,hasView:s,size:r,onOpenChanges:a,onActed:c}=l,i=r===void 0?"default":r,{t:n}=P();let u;e[0]!==n?(u=n("walkthrough.options.model"),e[0]=n,e[1]=u):u=e[1];let d;e[2]!==u?(d=o.jsx("span",{className:"typography-meta text-muted-foreground",children:u}),e[2]=u,e[3]=d):d=e[3];const m=i==="mobile"?void 0:"w-full max-w-none";let g;e[4]!==t||e[5]!==m?(g=o.jsx(De,{review:t,className:m}),e[4]=t,e[5]=m,e[6]=g):g=e[6];let f;e[7]!==d||e[8]!==g?(f=o.jsxs("div",{className:"flex flex-col gap-1.5",children:[d,g]}),e[7]=d,e[8]=g,e[9]=f):f=e[9];let k;e[10]!==n?(k=n("walkthrough.options.language"),e[10]=n,e[11]=k):k=e[11];let x;e[12]!==k?(x=o.jsx("span",{className:"typography-meta text-muted-foreground",children:k}),e[12]=k,e[13]=x):x=e[13];let h;e[14]!==t||e[15]!==i?(h=o.jsx($e,{review:t,size:i,className:"w-full"}),e[14]=t,e[15]=i,e[16]=h):h=e[16];let p;e[17]!==x||e[18]!==h?(p=o.jsxs("div",{className:"flex flex-col gap-1.5",children:[x,h]}),e[17]=x,e[18]=h,e[19]=p):p=e[19];const w=i==="mobile"?"lg":"sm";let b;e[20]!==s||e[21]!==c||e[22]!==t||e[23]!==w?(b=o.jsx(ze,{review:t,hasView:s,size:w,className:"w-full",onActed:c}),e[20]=s,e[21]=c,e[22]=t,e[23]=w,e[24]=b):b=e[24];let y;e[25]!==c||e[26]!==a||e[27]!==n?(y=a&&o.jsxs(J,{type:"button",variant:"ghost",size:"sm",className:"w-full",onClick:()=>{a(),c?.()},children:[o.jsx(D,{name:"arrow-left-right",className:"size-4"}),n("contextPanel.mode.diff")]}),e[25]=c,e[26]=a,e[27]=n,e[28]=y):y=e[28];const v=i==="mobile"?"lg":"sm";let S;e[29]!==c?(S=()=>{lt(),c?.()},e[29]=c,e[30]=S):S=e[30];let M;e[31]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx(D,{name:"question",className:"size-4"}),e[31]=M):M=e[31];let I;e[32]!==n?(I=n("walkthrough.help.guide"),e[32]=n,e[33]=I):I=e[33];let C;e[34]!==v||e[35]!==S||e[36]!==I?(C=o.jsxs(J,{type:"button",variant:"ghost",size:v,className:"w-full",onClick:S,children:[M,I]}),e[34]=v,e[35]=S,e[36]=I,e[37]=C):C=e[37];let z;return e[38]!==p||e[39]!==b||e[40]!==y||e[41]!==C||e[42]!==f?(z=o.jsxs("div",{className:"flex flex-col gap-3",children:[f,p,b,y,C]}),e[38]=p,e[39]=b,e[40]=y,e[41]=C,e[42]=f,e[43]=z):z=e[43],z};function ut(l){return o.jsxs(be,{value:l.stop.id,children:[o.jsx("span",{className:"w-5 shrink-0 tabular-nums text-muted-foreground",children:l.position}),o.jsx("span",{className:"min-w-0 truncate",children:l.stop.title})]},l.stop.id)}function dt(l,e){const{chapter:t,stops:s}=l;return o.jsxs(N.Fragment,{children:[e>0&&o.jsx(Xe,{}),o.jsx(ve,{className:Ie,children:o.jsx("span",{className:"block truncate",children:t.title})}),s.map(ut)]},t.id)}const ht=l=>l?`${l.providerID}/${l.modelID}`:"",Ft=({reason:l,model:e,requiredChars:t,availableChars:s,onRetry:r})=>{const{t:a}=P(),c=te(h=>h.modelsMetadata),[i,n]=N.useState(!1),u=l==="context-too-small"||l==="structured-output-unsupported"||l==="output-exhausted",d=Ce(u),m=N.useCallback(async(h,p)=>{if(!h||!p||i)return;const w=`${h}/${p}`;n(!0);try{await nt({walkthroughModelOverride:w}),r()}catch(b){console.warn("Failed to save small model override:",b)}finally{n(!1)}},[r,i]),g=N.useCallback((h,p)=>c.get(`${h}/${p}`)?.structured_output!==!1,[c]),f=ht(e),k=()=>{if(l==="no-model")return a("walkthrough.blocked.noModel.description");if(l==="empty-diff")return a("walkthrough.blocked.emptyDiff.description");if(l==="only-generated")return a("walkthrough.blocked.onlyGenerated.description");if(l==="server-unsupported")return a("walkthrough.blocked.serverUnsupported.description");if(l==="output-exhausted")return f?a("walkthrough.blocked.outputExhausted.description",{model:f}):a("walkthrough.blocked.outputExhausted.descriptionUnknownModel");if(l==="structured-output-unsupported")return f?a("walkthrough.blocked.structuredOutput.description",{model:f}):a("walkthrough.blocked.structuredOutput.descriptionUnknownModel");const h=Math.ceil((t??0)/1e3),p=Math.ceil((s??0)/1e3);return f?a("walkthrough.blocked.contextTooSmall.description",{model:f,required:h,available:p}):a("walkthrough.blocked.contextTooSmall.descriptionUnknownModel",{required:h,available:p})},x=()=>a(l==="no-model"?"walkthrough.blocked.noModel.title":l==="empty-diff"?"walkthrough.blocked.emptyDiff.title":l==="only-generated"?"walkthrough.blocked.onlyGenerated.title":l==="server-unsupported"?"walkthrough.blocked.serverUnsupported.title":l==="output-exhausted"?"walkthrough.blocked.outputExhausted.title":l==="structured-output-unsupported"?"walkthrough.blocked.structuredOutput.title":"walkthrough.blocked.contextTooSmall.title");return o.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-8 text-center",children:[o.jsx(D,{name:l==="empty-diff"||l==="only-generated"?"information":"error-warning",className:"size-6 text-muted-foreground"}),o.jsx("h3",{className:"typography-ui-label font-semibold text-foreground",children:x()}),o.jsx("p",{className:"typography-meta max-w-md text-muted-foreground",children:k()}),u&&o.jsxs("div",{className:"flex flex-col items-center gap-2 pt-2",children:[o.jsx("span",{className:"typography-micro text-muted-foreground",children:a("walkthrough.blocked.chooseModel")}),o.jsx(Se,{providerId:e?.providerID??"",modelId:e?.modelID??"",onChange:(h,p)=>{m(h,p)},allowedProviderIds:d??[],isModelAllowed:g})]}),(l==="empty-diff"||l==="only-generated"||l==="server-unsupported")&&o.jsx(J,{type:"button",variant:"outline",size:"sm",onClick:r,children:a("walkthrough.action.refresh")})]})},pt=[{labelKey:"walkthrough.stage.collecting"},{labelKey:"walkthrough.stage.asking"},{labelKey:"walkthrough.stage.assembling"}],Gt=l=>{const e=E.c(6),{progress:t}=l,{t:s}=P(),{completedCount:r,activeIndex:a}=t;let c;e[0]!==a||e[1]!==r||e[2]!==s?(c=pt.map((n,u)=>{const d=u<r,m=a===u;return o.jsxs("li",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center",children:d?o.jsx(D,{name:"check",className:"size-3.5 text-status-success"}):m?o.jsx(Me,{className:"size-3.5 text-[var(--status-info)]"}):o.jsx("span",{className:"size-1.5 rounded-full bg-surface-muted"})}),o.jsx("span",{className:L("typography-meta",m?"text-foreground":d?"text-muted-foreground":"text-muted-foreground/60"),children:s(n.labelKey)})]},n.labelKey)}),e[0]=a,e[1]=r,e[2]=s,e[3]=c):c=e[3];let i;return e[4]!==c?(i=o.jsx("ul",{className:"flex flex-col gap-2 text-start",children:c}),e[4]=c,e[5]=i):i=e[5],i},ft=l=>{if(!l?.walkthrough)return null;const e=new Map(l.hunks.map(a=>[a.id,a])),t=new Set,s=[],r=[];for(const[a,c]of l.walkthrough.chapters.entries()){const i=[];for(const n of c.stops){const u=[],d=[];for(const g of n.hunkIds){const f=e.get(g);f?(u.push(f),t.add(g)):d.push(g)}const m={stop:n,chapter:c,chapterIndex:a,position:s.length+1,hunks:u,missingHunkIds:d,isStale:d.length>0};s.push(m),i.push(m)}r.push({chapter:c,stops:i})}return{walkthrough:l.walkthrough,stops:s,chapters:r,uncoveredHunks:l.hunks.filter(a=>!t.has(a.id)),staleStopCount:s.filter(a=>a.isStale).length,isStale:s.some(a=>a.isStale)}},mt=l=>{const e=new Map;for(const t of l){const s=e.get(t.path);if(s){s.added+=t.added,s.deleted+=t.deleted;continue}e.set(t.path,{path:t.path,added:t.added,deleted:t.deleted})}return[...e.values()]},ue=l=>{const e=[];for(const t of l){const s=e.at(-1);if(s&&s.path===t.path){s.hunks.push(t);continue}e.push({path:t.path,hunks:[t]})}return e},Ee=l=>{if(l.length===0)return"";if(l.length===1)return l[0].patch;const e=l[0].patch,t=e.indexOf(`
2
2
  @@`);if(t===-1)return e;const s=e.slice(0,t),r=l.map(a=>{const c=a.patch.indexOf(`
3
3
  @@`);return c===-1?"":a.patch.slice(c+1)});return`${s}
4
4
  ${r.join("")}`},_e=N.memo(function(e){const t=E.c(19),{path:s,hunks:r,renderSideBySide:a,wrapLines:c,runKey:i,registerFindViewerRef:n,onFindWordRequest:u}=e;let d;if(t[0]!==r||t[1]!==s){const w=Ee(r);d=w?Re(s,w):void 0,t[0]=r,t[1]=s,t[2]=d}else d=t[2];const m=d;let g;t[3]!==n||t[4]!==i?(g=w=>{i!==void 0&&n?.(i,w)},t[3]=n,t[4]=i,t[5]=g):g=t[5];const f=g;let k;t[6]!==u||t[7]!==i?(k=w=>{i!==void 0&&u?.(i,w)},t[6]=u,t[7]=i,t[8]=k):k=t[8];const x=k;if(!m)return null;let h;t[9]!==s?(h=Qe(s)||"",t[9]=s,t[10]=h):h=t[10];let p;return t[11]!==m||t[12]!==x||t[13]!==s||t[14]!==a||t[15]!==f||t[16]!==h||t[17]!==c?(p=o.jsx(rt,{ref:f,original:"",modified:"",fileDiff:m,language:h,fileName:s,renderSideBySide:a,wrapLines:c,layout:"inline",onFindWordRequest:x}),t[11]=m,t[12]=x,t[13]=s,t[14]=a,t[15]=f,t[16]=h,t[17]=c,t[18]=p):p=t[18],p}),de=(l,e,t)=>`${l}::${e}::${t.map(s=>s.id).join(",")}`,Le="__uncovered__",xe=(l,e)=>ue(e).map((t,s)=>({key:de(l,s,t.hunks),stopId:l,path:t.path,hunks:t.hunks})),Bt=l=>[...l.stops.flatMap(e=>xe(e.stop.id,e.hunks)),...xe(Le,l.uncoveredHunks)],gt=l=>{const e=Ee(l.hunks);return e?Re(l.path,e):null},Ut=(l,e)=>l.map(t=>({filePath:t.key,layout:e,load:async()=>gt(t)})),ie=l=>`walkthrough-stop-${l}`,xt=1200,kt={critical:"oc-tile-inset font-medium text-foreground",normal:"oc-tile-inset text-muted-foreground",context:"oc-tile-inset text-muted-foreground"},vt=l=>{const e=E.c(22),{stopView:t}=l,{t:s}=P(),{stop:r}=t;let a;e[0]!==t.position?(a=o.jsx("span",{className:"oc-tile-inset typography-micro flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full px-1.5 tabular-nums text-muted-foreground",children:t.position}),e[0]=t.position,e[1]=a):a=e[1];let c;e[2]!==r.title?(c=o.jsx("h3",{className:"typography-ui-header min-w-0 font-semibold text-foreground",children:r.title}),e[2]=r.title,e[3]=c):c=e[3];let i;e[4]!==r.importance||e[5]!==s?(i=r.importance!=="normal"&&o.jsxs(Ye,{children:[o.jsx(Ze,{className:L("typography-micro flex h-5 shrink-0 items-center whitespace-nowrap rounded px-1.5 leading-none",kt[r.importance]),children:r.importance==="critical"?s("walkthrough.importance.critical"):s("walkthrough.importance.context")}),o.jsx(et,{className:"max-w-64",children:o.jsx("p",{className:"typography-micro leading-tight",children:r.importance==="critical"?s("walkthrough.importance.criticalHint"):s("walkthrough.importance.contextHint")})})]}),e[4]=r.importance,e[5]=s,e[6]=i):i=e[6];let n;e[7]!==a||e[8]!==c||e[9]!==i?(n=o.jsxs("div",{className:"flex items-center gap-2",children:[a,c,i]}),e[7]=a,e[8]=c,e[9]=i,e[10]=n):n=e[10];let u;e[11]!==r.prose?(u=o.jsx("p",{className:"typography-ui-label text-muted-foreground",children:r.prose}),e[11]=r.prose,e[12]=u):u=e[12];let d;e[13]!==t.hunks||e[14]!==t.isStale||e[15]!==t.missingHunkIds||e[16]!==s?(d=t.isStale&&o.jsxs("p",{className:"typography-meta flex items-center gap-1.5 text-status-warning",children:[o.jsx(D,{name:"error-warning",className:"size-3.5 shrink-0"}),t.hunks.length===0?s("walkthrough.stop.staleAll"):s("walkthrough.stop.stalePartial",{count:t.missingHunkIds.length})]}),e[13]=t.hunks,e[14]=t.isStale,e[15]=t.missingHunkIds,e[16]=s,e[17]=d):d=e[17];let m;return e[18]!==n||e[19]!==u||e[20]!==d?(m=o.jsxs("header",{className:"flex flex-col gap-2 px-4 pt-5 pb-3",children:[n,u,d]}),e[18]=n,e[19]=u,e[20]=d,e[21]=m):m=e[21],m},Pe=l=>{const e=E.c(2),{path:t}=l;let s;return e[0]!==t?(s=o.jsxs("div",{className:"sticky top-0 z-10 flex items-center gap-1.5 border-b border-[var(--interactive-border)]/35 bg-[var(--surface-elevated)]/90 px-4 py-1.5 backdrop-blur-md supports-[backdrop-filter]:bg-[var(--surface-elevated)]/80",children:[o.jsx(tt,{filePath:t,className:"size-3.5 shrink-0"}),o.jsx(at,{path:t,className:"typography-meta font-mono"})]}),e[0]=t,e[1]=s):s=e[1],s},bt=l=>{const e=E.c(17),{stopId:t,hunks:s,renderSideBySide:r,wrapLines:a,registerFindViewerRef:c,onFindWordRequest:i}=l;let n;e[0]!==s?(n=ue(s),e[0]=s,e[1]=n):n=e[1];const u=n;let d;if(e[2]!==i||e[3]!==c||e[4]!==r||e[5]!==u||e[6]!==t||e[7]!==a){let g;e[9]!==i||e[10]!==c||e[11]!==r||e[12]!==t||e[13]!==a?(g=(f,k)=>o.jsxs("div",{children:[o.jsx(Pe,{path:f.path}),o.jsx(_e,{path:f.path,hunks:f.hunks,renderSideBySide:r,wrapLines:a,runKey:de(t,k,f.hunks),registerFindViewerRef:c,onFindWordRequest:i})]},`${f.path}-${k}`),e[9]=i,e[10]=c,e[11]=r,e[12]=t,e[13]=a,e[14]=g):g=e[14],d=u.map(g),e[2]=i,e[3]=c,e[4]=r,e[5]=u,e[6]=t,e[7]=a,e[8]=d}else d=e[8];let m;return e[15]!==d?(m=o.jsx(o.Fragment,{children:d}),e[15]=d,e[16]=m):m=e[16],m},qt=N.memo(function(e){const t=E.c(47),{view:s,activeStopId:r,scrollToStopId:a,onActiveStopChange:c,onScrollHandled:i,renderSideBySide:n,wrapLines:u,summary:d,uncoveredOpenRequest:m,registerFindViewerRef:g,onFindWordRequest:f}=e,k=m===void 0?0:m,{t:x}=P(),h=N.useRef(null),[p,w]=N.useState(!1),b=N.useRef(null),y=N.useRef(null);let v,S;t[0]!==k?(v=()=>{k>0&&w(!0)},S=[k],t[0]=k,t[1]=v,t[2]=S):(v=t[1],S=t[2]),N.useEffect(v,S);let M,I;t[3]===Symbol.for("react.memo_cache_sentinel")?(M=()=>()=>y.current?.(),I=[],t[3]=M,t[4]=I):(M=t[3],I=t[4]),N.useEffect(M,I);let C,z;t[5]!==i||t[6]!==a?(C=()=>{if(!a)return;const $=document.getElementById(ie(a)),R=h.current;if($&&R){y.current?.(),b.current=a,$.scrollIntoView({behavior:"auto",block:"start"});const F=new ResizeObserver(()=>$.scrollIntoView({behavior:"auto",block:"start"}));for(const X of R.children)F.observe(X);const Q=["wheel","touchstart","pointerdown","keydown"],A=()=>{F.disconnect();for(const X of Q)R.removeEventListener(X,A);window.clearTimeout(se),b.current===a&&(b.current=null),y.current===A&&(y.current=null)};for(const X of Q)R.addEventListener(X,A,{passive:!0});const se=window.setTimeout(A,xt);y.current=A}i()},z=[a,i],t[5]=i,t[6]=a,t[7]=C,t[8]=z):(C=t[7],z=t[8]),N.useEffect(C,z);let O;t[9]!==c?(O=$=>{const R=$.filter(wt).sort(jt)[0];if(!R)return;const F=R.target.getAttribute("data-stop-id");F&&(b.current||c(F))},t[9]=c,t[10]=O):O=t[10];const _=O;let T,G;t[11]!==_||t[12]!==s.stops?(G=()=>{const $=h.current;if(!$)return;const R=new IntersectionObserver(_,{root:$,rootMargin:"0px 0px -70% 0px",threshold:0});for(const F of s.stops){const Q=document.getElementById(ie(F.stop.id));Q&&R.observe(Q)}return()=>R.disconnect()},T=[_,s.stops],t[11]=_,t[12]=s.stops,t[13]=T,t[14]=G):(T=t[13],G=t[14]),N.useEffect(G,T);let B;t[15]!==s.uncoveredHunks?(B=ue(s.uncoveredHunks),t[15]=s.uncoveredHunks,t[16]=B):B=t[16];const Z=B;let U;t[17]!==d?(U=d&&o.jsx("p",{className:"typography-ui-label px-4 pt-4 text-muted-foreground",children:d}),t[17]=d,t[18]=U):U=t[18];let q;if(t[19]!==r||t[20]!==f||t[21]!==g||t[22]!==n||t[23]!==x||t[24]!==s.stops||t[25]!==u){let $;t[27]!==r||t[28]!==f||t[29]!==g||t[30]!==n||t[31]!==x||t[32]!==u?($=R=>o.jsxs("section",{id:ie(R.stop.id),"data-stop-id":R.stop.id,className:L("border-b border-border/60",r===R.stop.id&&"bg-interactive-selection/5"),children:[o.jsx(vt,{stopView:R}),R.hunks.length>0?o.jsx(bt,{stopId:R.stop.id,hunks:R.hunks,renderSideBySide:n,wrapLines:u,registerFindViewerRef:g,onFindWordRequest:f}):o.jsx("p",{className:"typography-meta px-4 pb-4 text-muted-foreground",children:x("walkthrough.stop.noCode")})]},R.stop.id),t[27]=r,t[28]=f,t[29]=g,t[30]=n,t[31]=x,t[32]=u,t[33]=$):$=t[33],q=s.stops.map($),t[19]=r,t[20]=f,t[21]=g,t[22]=n,t[23]=x,t[24]=s.stops,t[25]=u,t[26]=q}else q=t[26];let W;t[34]!==f||t[35]!==g||t[36]!==n||t[37]!==x||t[38]!==p||t[39]!==Z||t[40]!==s.uncoveredHunks.length||t[41]!==u?(W=s.uncoveredHunks.length>0&&o.jsxs("section",{className:"border-b border-border/60",children:[o.jsxs(J,{type:"button",variant:"ghost",className:"h-auto w-full justify-start gap-2 px-4 py-3",onClick:()=>w(yt),"aria-expanded":p,children:[o.jsx(D,{name:p?"arrow-down-s":"arrow-right-s",className:"size-4 shrink-0"}),o.jsx("span",{className:"typography-ui-label text-muted-foreground",children:x("walkthrough.uncovered.title",{count:s.uncoveredHunks.length})})]}),!p&&o.jsx("p",{className:"typography-meta px-4 pb-3 ps-10 text-muted-foreground",children:x("walkthrough.uncovered.description")}),p&&Z.map(($,R)=>o.jsxs("div",{children:[o.jsx(Pe,{path:$.path}),o.jsx(_e,{path:$.path,hunks:$.hunks,renderSideBySide:n,wrapLines:u,runKey:de(Le,R,$.hunks),registerFindViewerRef:g,onFindWordRequest:f})]},`${$.path}-${R}`))]}),t[34]=f,t[35]=g,t[36]=n,t[37]=x,t[38]=p,t[39]=Z,t[40]=s.uncoveredHunks.length,t[41]=u,t[42]=W):W=t[42];let K;return t[43]!==U||t[44]!==q||t[45]!==W?(K=o.jsxs("div",{ref:h,className:"min-h-0 flex-1 overflow-y-auto","data-diff-virtual-root":!0,"data-diff-virtual-content":!0,children:[U,q,W]}),t[43]=U,t[44]=q,t[45]=W,t[46]=K):K=t[46],K});function wt(l){return l.isIntersecting}function jt(l,e){return l.boundingClientRect.top-e.boundingClientRect.top}function yt(l){return!l}const Nt={bug:"bug",wrench:"tools",path:"compass-3",flask:"flask",doc:"file-text",gear:"settings-3"},St=l=>{const e=E.c(35),{stopView:t,isActive:s,isVisited:r,onSelect:a,activeRef:c,page:i}=l,{t:n}=P();let u;if(e[0]!==c||e[1]!==s||e[2]!==r||e[3]!==a||e[4]!==i||e[5]!==t.hunks||e[6]!==t.isStale||e[7]!==t.position||e[8]!==t.stop.title||e[9]!==n){const d=mt(t.hunks),m=i?"min-h-11 justify-center py-2":"py-1.5",g=s&&"bg-interactive-selection text-interactive-selection-foreground";let f;e[11]!==m||e[12]!==g?(f=L("flex w-full flex-col gap-1 rounded px-2 text-start transition-colors",m,"hover:bg-interactive-hover",g),e[11]=m,e[12]=g,e[13]=f):f=e[13];const k=s?"bg-interactive-selection-foreground/20":r?"bg-status-success/15 text-status-success":"oc-tile-inset text-muted-foreground";let x;e[14]!==k?(x=L("typography-micro flex h-4 min-w-4 shrink-0 items-center justify-center rounded-full px-1 tabular-nums",k),e[14]=k,e[15]=x):x=e[15];let h;e[16]!==s||e[17]!==r||e[18]!==t.position?(h=r&&!s?o.jsx(D,{name:"check",className:"size-2.5"}):t.position,e[16]=s,e[17]=r,e[18]=t.position,e[19]=h):h=e[19];let p;e[20]!==x||e[21]!==h?(p=o.jsx("span",{className:x,children:h}),e[20]=x,e[21]=h,e[22]=p):p=e[22];const w=i?"typography-ui-label":"typography-meta";let b;e[23]!==w?(b=L("truncate font-medium",w),e[23]=w,e[24]=b):b=e[24];let y;e[25]!==t.stop.title||e[26]!==b?(y=o.jsx("span",{className:b,children:t.stop.title}),e[25]=t.stop.title,e[26]=b,e[27]=y):y=e[27];let v;e[28]!==t.isStale||e[29]!==n?(v=t.isStale&&o.jsx(D,{name:"error-warning",className:"size-3 shrink-0 text-status-warning","aria-label":n("walkthrough.stop.staleShort")}),e[28]=t.isStale,e[29]=n,e[30]=v):v=e[30];let S;e[31]!==y||e[32]!==v||e[33]!==p?(S=o.jsxs("span",{className:"flex items-center gap-2",children:[p,y,v]}),e[31]=y,e[32]=v,e[33]=p,e[34]=S):S=e[34],u=o.jsx("li",{children:o.jsxs("button",{ref:s?c:void 0,type:"button",onClick:a,"aria-current":s?"step":void 0,className:f,children:[S,d.length>0&&o.jsxs("span",{className:L("flex min-w-0 items-baseline gap-1.5 ps-6 text-muted-foreground",i?"typography-meta":"typography-micro"),title:d.map(Mt).join(`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-codemirror-lang-sql-DthMFzdd.js","assets/vendor-codemirror-language-DyL0aCoH.js","assets/vendor-lezer-common-B3-cUCR_.js","assets/vendor-codemirror-state-Dek9sMtw.js","assets/vendor-marijn-find-cluster-break-DXwl3gUT.js","assets/vendor-codemirror-view-B66jUSmE.js","assets/vendor-style-mod-NZ5MEPvj.js","assets/vendor-w3c-keyname-Vcq4gwWv.js","assets/vendor-crelt-C8TCjufn.js","assets/vendor-lezer-highlight-CDMHUZ74.js","assets/vendor-codemirror-streamparser-CmlTsbN2.js","assets/vendor-lezer-lr-bhwg1HMg.js","assets/vendor-codemirror-autocomplete-CIqXJolH.js","assets/vendor-codemirror-lang-cpp-BKWsoVi6.js","assets/vendor-lezer-cpp-BleAU9o-.js","assets/vendor-codemirror-lang-css-9qjxcVkg.js","assets/vendor-lezer-css-C5xB6jxd.js","assets/vendor-codemirror-lang-go-Bfc85TYP.js","assets/vendor-lezer-go-CXK1UKk8.js","assets/vendor-codemirror-lang-html-D7VQUxeE.js","assets/vendor-lezer-html-C0I1p52t.js","assets/vendor-codemirror-lang-javascript-Cem6LjJ8.js","assets/vendor-lezer-javascript-D7Tj24ot.js","assets/vendor-codemirror-lang-java-Sz-iQqje.js","assets/vendor-lezer-java-D_zzj-NV.js","assets/vendor-codemirror-lang-jinja-BNojcnII.js","assets/vendor-codemirror-lang-json-C9rLLO0q.js","assets/vendor-lezer-json-Iaex0UN-.js","assets/vendor-codemirror-lang-less-DWScMdGe.js","assets/vendor-codemirror-lang-liquid-BtpaZ1-f.js","assets/vendor-codemirror-lang-markdown-Cikh4w2I.js","assets/vendor-lezer-markdown-C6g-d6P3.js","assets/vendor-codemirror-lang-php-oZEJV80p.js","assets/vendor-lezer-php-_DHrbsZG.js","assets/vendor-codemirror-lang-python-DVl8-2Op.js","assets/vendor-lezer-python-CvuFxeZl.js","assets/vendor-codemirror-lang-rust-DyrK7wU8.js","assets/vendor-lezer-rust-Lqgd5SAo.js","assets/vendor-codemirror-lang-sass-DTg9Motp.js","assets/vendor-lezer-sass-Dnm2lY4t.js","assets/vendor-codemirror-lang-wast-BT6IxuyE.js","assets/vendor-codemirror-lang-xml-C8QzPA1o.js","assets/vendor-lezer-xml-hUDuAyS5.js","assets/vendor-codemirror-lang-yaml-CO68whJF.js","assets/vendor-lezer-yaml-BNIl6S_O.js","assets/dockerfile-BKs6k2Af.js","assets/simple-mode-GW_nhZxv.js","assets/factor-kuTfRLto.js","assets/nsis-LY0VT_u5.js","assets/pug-CIGw5rlb.js","assets/javascript-BO_2ioGC.js","assets/useAppFontEffects-BZrjCfFw.js","assets/vendor-react-BUCujlKS.js","assets/vendor-scheduler-7OC5HNn7.js","assets/katex.min-u4DtE8E5.js","assets/vendor-zod-DDir2TeQ.js","assets/vendor-vite-runtime-DD1OZmLC.js","assets/vendor-zustand-BAGL70zf.js","assets/vendor-opencode-client-h8RufjAw.js","assets/katex-CQK6Iqoe.css","assets/vendor-base-ui-CPKyhvxM.js","assets/vendor-floating-ui-utils-D6FqdtJt.js","assets/vendor-floating-ui-dom-BTvzWks8.js","assets/vendor-floating-ui-core-PuGzNPnN.js","assets/vendor-floating-ui-react-dom-DxYCWdHj.js","assets/vendor-use-sync-external-store-D6wYuSt-.js","assets/vendor-simplewebauthn-browser-VDA66rT_.js","assets/vendor-class-variance-authority-5VPnzWs2.js","assets/vendor-clsx-B-dksMZM.js","assets/vendor-dnd-kit-core-BZknOX2w.js","assets/vendor-dnd-kit-utilities-B_MdXhJC.js","assets/vendor-dnd-kit-accessibility-BHxJPORy.js","assets/vendor-dnd-kit-sortable-CsEagZ81.js","assets/vendor-tanstack-react-virtual-Bmi0tTrf.js","assets/vendor-tanstack-virtual-core-CdGDGrnp.js","assets/vendor-framer-motion-DxDVhOLc.js","assets/vendor-motion-dom-HXPOMxb7.js","assets/vendor-motion-utils-BGh8QBgx.js","assets/vendor-codemirror-commands-dar6chwA.js","assets/vendor-sonner-DFyL3AvE.js","assets/vendor-capacitor-core-B4EWRrHz.js","assets/vendor-cmdk-DgLInKvT.js","assets/vendor-radix-ui-react-dialog-B94Bt2qq.js","assets/vendor-radix-ui-primitive-Dc_FVRD7.js","assets/vendor-radix-ui-react-compose-refs-DcAh5WdT.js","assets/vendor-radix-ui-react-context-Czxm7Z62.js","assets/vendor-radix-ui-react-id-f5BLKEVw.js","assets/vendor-radix-ui-react-use-layout-effect-D_3IhJdJ.js","assets/vendor-radix-ui-react-use-controllable-state-BFT5YmkA.js","assets/vendor-radix-ui-react-dismissable-layer-D7kXcwgJ.js","assets/vendor-radix-ui-react-primitive-DhVoX9SD.js","assets/vendor-radix-ui-react-slot-BQgQOasS.js","assets/vendor-radix-ui-react-use-callback-ref-BZPnuXAC.js","assets/vendor-radix-ui-react-use-escape-keydown-oph88g-F.js","assets/vendor-radix-ui-react-focus-scope-CiaxW4dD.js","assets/vendor-radix-ui-react-portal-BMJYHWck.js","assets/vendor-radix-ui-react-presence-CNxf-uq4.js","assets/vendor-radix-ui-react-focus-guards-B6qJXYua.js","assets/vendor-react-remove-scroll-DO7dCTnK.js","assets/vendor-tslib-De9GV7Vy.js","assets/vendor-react-remove-scroll-bar-BcFYyj3E.js","assets/vendor-react-style-singleton-q6EMHnwf.js","assets/vendor-get-nonce-C-Z93AgS.js","assets/vendor-use-sidecar-zDC0RhA3.js","assets/vendor-use-callback-ref-D3RC8gqK.js","assets/vendor-aria-hidden-DvXkyWUv.js","assets/vendor-legendapp-list-D2O6oUGf.js","assets/vendor-tailwind-merge-CPcsbTWB.js","assets/vendor-fuse.js-Dw8P0qyA.js","assets/vendor-codemirror-lang-vue-BLOgzDW5.js","assets/vendor-codemirror-lang-angular-D1pDry5v.js"])))=>i.map(i=>d[i]);
2
- import{_ as o}from"./vendor-vite-runtime-DD1OZmLC.js";import{t,L as i,S as a}from"./vendor-codemirror-language-DyL0aCoH.js";function n(e){return new i(a.define(e))}function r(e){return o(()=>import("./vendor-codemirror-lang-sql-DthMFzdd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(_=>_.sql({dialect:_[e]}))}const l=[t.of({name:"C",extensions:["c","h","ino"],load(){return o(()=>import("./vendor-codemirror-lang-cpp-BKWsoVi6.js"),__vite__mapDeps([13,14,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.cpp())}}),t.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return o(()=>import("./vendor-codemirror-lang-cpp-BKWsoVi6.js"),__vite__mapDeps([13,14,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.cpp())}}),t.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return r("Cassandra")}}),t.of({name:"CSS",extensions:["css"],load(){return o(()=>import("./vendor-codemirror-lang-css-9qjxcVkg.js"),__vite__mapDeps([15,16,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.css())}}),t.of({name:"Go",extensions:["go"],load(){return o(()=>import("./vendor-codemirror-lang-go-Bfc85TYP.js"),__vite__mapDeps([17,18,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.go())}}),t.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return o(()=>import("./vendor-codemirror-lang-html-D7VQUxeE.js"),__vite__mapDeps([19,20,11,2,9,15,16,1,3,4,5,6,7,8,10,21,22,12])).then(e=>e.html())}}),t.of({name:"Java",extensions:["java"],load(){return o(()=>import("./vendor-codemirror-lang-java-Sz-iQqje.js"),__vite__mapDeps([23,24,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.java())}}),t.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-Cem6LjJ8.js"),__vite__mapDeps([21,22,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.javascript())}}),t.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return o(()=>import("./vendor-codemirror-lang-jinja-BNojcnII.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,19,20,11,15,16,21,22,12])).then(e=>e.jinja())}}),t.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return o(()=>import("./vendor-codemirror-lang-json-C9rLLO0q.js"),__vite__mapDeps([26,27,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.json())}}),t.of({name:"JSX",extensions:["jsx"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-Cem6LjJ8.js"),__vite__mapDeps([21,22,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.javascript({jsx:!0}))}}),t.of({name:"LESS",extensions:["less"],load(){return o(()=>import("./vendor-codemirror-lang-less-DWScMdGe.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,15,16,11])).then(e=>e.less())}}),t.of({name:"Liquid",extensions:["liquid"],load(){return o(()=>import("./vendor-codemirror-lang-liquid-BtpaZ1-f.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,19,20,11,15,16,21,22,12])).then(e=>e.liquid())}}),t.of({name:"MariaDB SQL",load(){return r("MariaSQL")}}),t.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return o(()=>import("./vendor-codemirror-lang-markdown-Cikh4w2I.js"),__vite__mapDeps([30,3,4,5,6,7,8,1,2,9,10,12,31,19,20,11,15,16,21,22])).then(e=>e.markdown())}}),t.of({name:"MS SQL",load(){return r("MSSQL")}}),t.of({name:"MySQL",load(){return r("MySQL")}}),t.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return o(()=>import("./vendor-codemirror-lang-php-oZEJV80p.js"),__vite__mapDeps([32,33,11,2,9,19,20,15,16,1,3,4,5,6,7,8,10,21,22,12])).then(e=>e.php())}}),t.of({name:"PLSQL",extensions:["pls"],load(){return r("PLSQL")}}),t.of({name:"PostgreSQL",load(){return r("PostgreSQL")}}),t.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return o(()=>import("./vendor-codemirror-lang-python-DVl8-2Op.js"),__vite__mapDeps([34,35,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.python())}}),t.of({name:"Rust",extensions:["rs"],load(){return o(()=>import("./vendor-codemirror-lang-rust-DyrK7wU8.js"),__vite__mapDeps([36,37,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.rust())}}),t.of({name:"Sass",extensions:["sass"],load(){return o(()=>import("./vendor-codemirror-lang-sass-DTg9Motp.js"),__vite__mapDeps([38,39,11,2,9,1,3,4,5,6,7,8,10,15,16])).then(e=>e.sass({indented:!0}))}}),t.of({name:"SCSS",extensions:["scss"],load(){return o(()=>import("./vendor-codemirror-lang-sass-DTg9Motp.js"),__vite__mapDeps([38,39,11,2,9,1,3,4,5,6,7,8,10,15,16])).then(e=>e.sass())}}),t.of({name:"SQL",extensions:["sql"],load(){return r("StandardSQL")}}),t.of({name:"SQLite",load(){return r("SQLite")}}),t.of({name:"TSX",extensions:["tsx"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-Cem6LjJ8.js"),__vite__mapDeps([21,22,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.javascript({jsx:!0,typescript:!0}))}}),t.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-Cem6LjJ8.js"),__vite__mapDeps([21,22,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.javascript({typescript:!0}))}}),t.of({name:"WebAssembly",extensions:["wat","wast"],load(){return o(()=>import("./vendor-codemirror-lang-wast-BT6IxuyE.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11])).then(e=>e.wast())}}),t.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return o(()=>import("./vendor-codemirror-lang-xml-C8QzPA1o.js"),__vite__mapDeps([41,42,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.xml())}}),t.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return o(()=>import("./vendor-codemirror-lang-yaml-CO68whJF.js"),__vite__mapDeps([43,44,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.yaml())}}),t.of({name:"APL",extensions:["dyalog","apl"],load(){return o(()=>import("./apl-B4CMkyY2.js"),[]).then(e=>n(e.apl))}}),t.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return o(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(e=>n(e.asciiArmor))}}),t.of({name:"ASN.1",extensions:["asn","asn1"],load(){return o(()=>import("./asn1-EdZsLKOL.js"),[]).then(e=>n(e.asn1({})))}}),t.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return o(()=>import("./asterisk-B-8jnY81.js"),[]).then(e=>n(e.asterisk))}}),t.of({name:"Brainfuck",extensions:["b","bf"],load(){return o(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(e=>n(e.brainfuck))}}),t.of({name:"Cobol",extensions:["cob","cpy"],load(){return o(()=>import("./cobol-CWcv1MsR.js"),[]).then(e=>n(e.cobol))}}),t.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.csharp))}}),t.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"ClojureScript",extensions:["cljs"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return o(()=>import("./css-BnMrqG3P.js"),[]).then(e=>n(e.gss))}}),t.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return o(()=>import("./cmake-BQqOBYOt.js"),[]).then(e=>n(e.cmake))}}),t.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return o(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(e=>n(e.coffeeScript))}}),t.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return o(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(e=>n(e.commonLisp))}}),t.of({name:"Cypher",extensions:["cyp","cypher"],load(){return o(()=>import("./cypher-C_CwsFkJ.js"),[]).then(e=>n(e.cypher))}}),t.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return o(()=>import("./python-Cso5vRIg.js"),[]).then(e=>n(e.cython))}}),t.of({name:"Crystal",extensions:["cr"],load(){return o(()=>import("./crystal-SjHAIU92.js"),[]).then(e=>n(e.crystal))}}),t.of({name:"D",extensions:["d"],load(){return o(()=>import("./d-pRatUO7H.js"),[]).then(e=>n(e.d))}}),t.of({name:"Dart",extensions:["dart"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.dart))}}),t.of({name:"diff",extensions:["diff","patch"],load(){return o(()=>import("./diff-DbItnlRl.js"),[]).then(e=>n(e.diff))}}),t.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return o(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([45,46])).then(e=>n(e.dockerFile))}}),t.of({name:"DTD",extensions:["dtd"],load(){return o(()=>import("./dtd-DF_7sFjM.js"),[]).then(e=>n(e.dtd))}}),t.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return o(()=>import("./dylan-DwRh75JA.js"),[]).then(e=>n(e.dylan))}}),t.of({name:"EBNF",load(){return o(()=>import("./ebnf-CDyGwa7X.js"),[]).then(e=>n(e.ebnf))}}),t.of({name:"ECL",extensions:["ecl"],load(){return o(()=>import("./ecl-Cabwm37j.js"),[]).then(e=>n(e.ecl))}}),t.of({name:"edn",extensions:["edn"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"Eiffel",extensions:["e"],load(){return o(()=>import("./eiffel-CnydiIhH.js"),[]).then(e=>n(e.eiffel))}}),t.of({name:"Elm",extensions:["elm"],load(){return o(()=>import("./elm-vLlmbW-K.js"),[]).then(e=>n(e.elm))}}),t.of({name:"Erlang",extensions:["erl"],load(){return o(()=>import("./erlang-BNw1qcRV.js"),[]).then(e=>n(e.erlang))}}),t.of({name:"Esper",load(){return o(()=>import("./sql-D0XecflT.js"),[]).then(e=>n(e.esper))}}),t.of({name:"Factor",extensions:["factor"],load(){return o(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([47,46])).then(e=>n(e.factor))}}),t.of({name:"FCL",load(){return o(()=>import("./fcl-Kvtd6kyn.js"),[]).then(e=>n(e.fcl))}}),t.of({name:"Forth",extensions:["forth","fth","4th"],load(){return o(()=>import("./forth-Ffai-XNe.js"),[]).then(e=>n(e.forth))}}),t.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return o(()=>import("./fortran-DYz_wnZ1.js"),[]).then(e=>n(e.fortran))}}),t.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.fSharp))}}),t.of({name:"Gas",extensions:["s"],load(){return o(()=>import("./gas-Bneqetm1.js"),[]).then(e=>n(e.gas))}}),t.of({name:"Gherkin",extensions:["feature"],load(){return o(()=>import("./gherkin-heZmZLOM.js"),[]).then(e=>n(e.gherkin))}}),t.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return o(()=>import("./groovy-D9Dt4D0W.js"),[]).then(e=>n(e.groovy))}}),t.of({name:"Haskell",extensions:["hs"],load(){return o(()=>import("./haskell-Cw1EW3IL.js"),[]).then(e=>n(e.haskell))}}),t.of({name:"Haxe",extensions:["hx"],load(){return o(()=>import("./haxe-H-WmDvRZ.js"),[]).then(e=>n(e.haxe))}}),t.of({name:"HXML",extensions:["hxml"],load(){return o(()=>import("./haxe-H-WmDvRZ.js"),[]).then(e=>n(e.hxml))}}),t.of({name:"HTTP",load(){return o(()=>import("./http-DBlCnlav.js"),[]).then(e=>n(e.http))}}),t.of({name:"IDL",extensions:["pro"],load(){return o(()=>import("./idl-BEugSyMb.js"),[]).then(e=>n(e.idl))}}),t.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return o(()=>import("./javascript-BO_2ioGC.js"),[]).then(e=>n(e.jsonld))}}),t.of({name:"Julia",extensions:["jl"],load(){return o(()=>import("./julia-DuME0IfC.js"),[]).then(e=>n(e.julia))}}),t.of({name:"Kotlin",extensions:["kt","kts"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.kotlin))}}),t.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return o(()=>import("./livescript-BwQOo05w.js"),[]).then(e=>n(e.liveScript))}}),t.of({name:"Lua",extensions:["lua"],load(){return o(()=>import("./lua-VAEuO923.js"),[]).then(e=>n(e.lua))}}),t.of({name:"mIRC",extensions:["mrc"],load(){return o(()=>import("./mirc-CjQqDB4T.js"),[]).then(e=>n(e.mirc))}}),t.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return o(()=>import("./mathematica-DTrFuWx2.js"),[]).then(e=>n(e.mathematica))}}),t.of({name:"Modelica",extensions:["mo"],load(){return o(()=>import("./modelica-Dc1JOy9r.js"),[]).then(e=>n(e.modelica))}}),t.of({name:"MUMPS",extensions:["mps"],load(){return o(()=>import("./mumps-BT43cFF4.js"),[]).then(e=>n(e.mumps))}}),t.of({name:"Mbox",extensions:["mbox"],load(){return o(()=>import("./mbox-CNhZ1qSd.js"),[]).then(e=>n(e.mbox))}}),t.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return o(()=>import("./nginx-DdIZxoE0.js"),[]).then(e=>n(e.nginx))}}),t.of({name:"NSIS",extensions:["nsh","nsi"],load(){return o(()=>import("./nsis-LY0VT_u5.js"),__vite__mapDeps([48,46])).then(e=>n(e.nsis))}}),t.of({name:"NTriples",extensions:["nt","nq"],load(){return o(()=>import("./ntriples-BfvgReVJ.js"),[]).then(e=>n(e.ntriples))}}),t.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.objectiveC))}}),t.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.objectiveCpp))}}),t.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.oCaml))}}),t.of({name:"Octave",extensions:["m"],load(){return o(()=>import("./octave-CWZ4xMHY.js"),[]).then(e=>n(e.octave))}}),t.of({name:"Oz",extensions:["oz"],load(){return o(()=>import("./oz-BzwKVEFT.js"),[]).then(e=>n(e.oz))}}),t.of({name:"Pascal",extensions:["p","pas"],load(){return o(()=>import("./pascal--L3eBynH.js"),[]).then(e=>n(e.pascal))}}),t.of({name:"Perl",extensions:["pl","pm"],load(){return o(()=>import("./perl-CdXCOZ3F.js"),[]).then(e=>n(e.perl))}}),t.of({name:"Pig",extensions:["pig"],load(){return o(()=>import("./pig-CevX1Tat.js"),[]).then(e=>n(e.pig))}}),t.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return o(()=>import("./powershell-CFHJl5sT.js"),[]).then(e=>n(e.powerShell))}}),t.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return o(()=>import("./properties-C78fOPTZ.js"),[]).then(e=>n(e.properties))}}),t.of({name:"ProtoBuf",extensions:["proto"],load(){return o(()=>import("./protobuf-ChK-085T.js"),[]).then(e=>n(e.protobuf))}}),t.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return o(()=>import("./pug-CIGw5rlb.js"),__vite__mapDeps([49,50])).then(e=>n(e.pug))}}),t.of({name:"Puppet",extensions:["pp"],load(){return o(()=>import("./puppet-DMA9R1ak.js"),[]).then(e=>n(e.puppet))}}),t.of({name:"Q",extensions:["q"],load(){return o(()=>import("./q-pXgVlZs6.js"),[]).then(e=>n(e.q))}}),t.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return o(()=>import("./r-B6wPVr8A.js"),[]).then(e=>n(e.r))}}),t.of({name:"RPM Changes",load(){return o(()=>import("./rpm-CTu-6PCP.js"),[]).then(e=>n(e.rpmChanges))}}),t.of({name:"RPM Spec",extensions:["spec"],load(){return o(()=>import("./rpm-CTu-6PCP.js"),[]).then(e=>n(e.rpmSpec))}}),t.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return o(()=>import("./ruby-BK5aLJev.js"),[]).then(e=>n(e.ruby))}}),t.of({name:"SAS",extensions:["sas"],load(){return o(()=>import("./sas-B4kiWyti.js"),[]).then(e=>n(e.sas))}}),t.of({name:"Scala",extensions:["scala"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.scala))}}),t.of({name:"Scheme",extensions:["scm","ss"],load(){return o(()=>import("./scheme-C41bIUwD.js"),[]).then(e=>n(e.scheme))}}),t.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return o(()=>import("./useAppFontEffects-BZrjCfFw.js").then(e=>e.oQ),__vite__mapDeps([51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,3,4,5,6,7,8,1,2,9,10,21,22,11,12,26,27,15,16,19,20,30,31,34,35,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108])).then(e=>n(e.shell))}}),t.of({name:"Sieve",extensions:["siv","sieve"],load(){return o(()=>import("./sieve-C3Gn_uJK.js"),[]).then(e=>n(e.sieve))}}),t.of({name:"Smalltalk",extensions:["st"],load(){return o(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(e=>n(e.smalltalk))}}),t.of({name:"Solr",load(){return o(()=>import("./solr-DehyRSwq.js"),[]).then(e=>n(e.solr))}}),t.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.sml))}}),t.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return o(()=>import("./sparql-DkYu6x3z.js"),[]).then(e=>n(e.sparql))}}),t.of({name:"Spreadsheet",alias:["excel","formula"],load(){return o(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(e=>n(e.spreadsheet))}}),t.of({name:"Squirrel",extensions:["nut"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.squirrel))}}),t.of({name:"Stylus",extensions:["styl"],load(){return o(()=>import("./stylus-B533Al4x.js"),[]).then(e=>n(e.stylus))}}),t.of({name:"Swift",extensions:["swift"],load(){return o(()=>import("./swift-BzpIVaGY.js"),[]).then(e=>n(e.swift))}}),t.of({name:"sTeX",load(){return o(()=>import("./stex-C3f8Ysf7.js"),[]).then(e=>n(e.stex))}}),t.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return o(()=>import("./stex-C3f8Ysf7.js"),[]).then(e=>n(e.stex))}}),t.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return o(()=>import("./verilog-C6RDOZhf.js"),[]).then(e=>n(e.verilog))}}),t.of({name:"Tcl",extensions:["tcl"],load(){return o(()=>import("./tcl-DVfN8rqt.js"),[]).then(e=>n(e.tcl))}}),t.of({name:"Textile",extensions:["textile"],load(){return o(()=>import("./textile-CnDTJFAw.js"),[]).then(e=>n(e.textile))}}),t.of({name:"TiddlyWiki",load(){return o(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(e=>n(e.tiddlyWiki))}}),t.of({name:"Tiki wiki",load(){return o(()=>import("./tiki-DGYXhP31.js"),[]).then(e=>n(e.tiki))}}),t.of({name:"TOML",extensions:["toml"],load(){return o(()=>import("./toml-Bm5Em-hy.js"),[]).then(e=>n(e.toml))}}),t.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return o(()=>import("./troff-wAsdV37c.js"),[]).then(e=>n(e.troff))}}),t.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return o(()=>import("./ttcn-CfJYG6tj.js"),[]).then(e=>n(e.ttcn))}}),t.of({name:"TTCN_CFG",extensions:["cfg"],load(){return o(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(e=>n(e.ttcnCfg))}}),t.of({name:"Turtle",extensions:["ttl"],load(){return o(()=>import("./turtle-B1tBg_DP.js"),[]).then(e=>n(e.turtle))}}),t.of({name:"Web IDL",extensions:["webidl"],load(){return o(()=>import("./webidl-ZXfAyPTL.js"),[]).then(e=>n(e.webIDL))}}),t.of({name:"VB.NET",extensions:["vb"],load(){return o(()=>import("./vb-CmGdzxic.js"),[]).then(e=>n(e.vb))}}),t.of({name:"VBScript",extensions:["vbs"],load(){return o(()=>import("./vbscript-BuJXcnF6.js"),[]).then(e=>n(e.vbScript))}}),t.of({name:"Velocity",extensions:["vtl"],load(){return o(()=>import("./velocity-D8B20fx6.js"),[]).then(e=>n(e.velocity))}}),t.of({name:"Verilog",extensions:["v"],load(){return o(()=>import("./verilog-C6RDOZhf.js"),[]).then(e=>n(e.verilog))}}),t.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return o(()=>import("./vhdl-lSbBsy5d.js"),[]).then(e=>n(e.vhdl))}}),t.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return o(()=>import("./xquery-DzFWVndE.js"),[]).then(e=>n(e.xQuery))}}),t.of({name:"Yacas",extensions:["ys"],load(){return o(()=>import("./yacas-BJ4BC0dw.js"),[]).then(e=>n(e.yacas))}}),t.of({name:"Z80",extensions:["z80"],load(){return o(()=>import("./z80-Hz9HOZM7.js"),[]).then(e=>n(e.z80))}}),t.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.mscgen))}}),t.of({name:"Xù",extensions:["xu"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.xu))}}),t.of({name:"MsGenny",extensions:["msgenny"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.msgenny))}}),t.of({name:"Vue",extensions:["vue"],load(){return o(()=>import("./vendor-codemirror-lang-vue-BLOgzDW5.js"),__vite__mapDeps([109,1,2,3,4,5,6,7,8,9,10,19,20,11,15,16,21,22,12])).then(e=>e.vue())}}),t.of({name:"Angular Template",load(){return o(()=>import("./vendor-codemirror-lang-angular-D1pDry5v.js"),__vite__mapDeps([110,1,2,3,4,5,6,7,8,9,10,19,20,11,15,16,21,22,12])).then(e=>e.angular())}})];export{l};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-codemirror-lang-sql-DthMFzdd.js","assets/vendor-codemirror-language-DyL0aCoH.js","assets/vendor-lezer-common-B3-cUCR_.js","assets/vendor-codemirror-state-Dek9sMtw.js","assets/vendor-marijn-find-cluster-break-DXwl3gUT.js","assets/vendor-codemirror-view-B66jUSmE.js","assets/vendor-style-mod-NZ5MEPvj.js","assets/vendor-w3c-keyname-Vcq4gwWv.js","assets/vendor-crelt-C8TCjufn.js","assets/vendor-lezer-highlight-CDMHUZ74.js","assets/vendor-codemirror-streamparser-CmlTsbN2.js","assets/vendor-lezer-lr-bhwg1HMg.js","assets/vendor-codemirror-autocomplete-CIqXJolH.js","assets/vendor-codemirror-lang-cpp-BKWsoVi6.js","assets/vendor-lezer-cpp-BleAU9o-.js","assets/vendor-codemirror-lang-css-9qjxcVkg.js","assets/vendor-lezer-css-C5xB6jxd.js","assets/vendor-codemirror-lang-go-Bfc85TYP.js","assets/vendor-lezer-go-CXK1UKk8.js","assets/vendor-codemirror-lang-html-D7VQUxeE.js","assets/vendor-lezer-html-C0I1p52t.js","assets/vendor-codemirror-lang-javascript-Cem6LjJ8.js","assets/vendor-lezer-javascript-D7Tj24ot.js","assets/vendor-codemirror-lang-java-Sz-iQqje.js","assets/vendor-lezer-java-D_zzj-NV.js","assets/vendor-codemirror-lang-jinja-BNojcnII.js","assets/vendor-codemirror-lang-json-C9rLLO0q.js","assets/vendor-lezer-json-Iaex0UN-.js","assets/vendor-codemirror-lang-less-DWScMdGe.js","assets/vendor-codemirror-lang-liquid-BtpaZ1-f.js","assets/vendor-codemirror-lang-markdown-Cikh4w2I.js","assets/vendor-lezer-markdown-C6g-d6P3.js","assets/vendor-codemirror-lang-php-oZEJV80p.js","assets/vendor-lezer-php-_DHrbsZG.js","assets/vendor-codemirror-lang-python-DVl8-2Op.js","assets/vendor-lezer-python-CvuFxeZl.js","assets/vendor-codemirror-lang-rust-DyrK7wU8.js","assets/vendor-lezer-rust-Lqgd5SAo.js","assets/vendor-codemirror-lang-sass-DTg9Motp.js","assets/vendor-lezer-sass-Dnm2lY4t.js","assets/vendor-codemirror-lang-wast-BT6IxuyE.js","assets/vendor-codemirror-lang-xml-C8QzPA1o.js","assets/vendor-lezer-xml-hUDuAyS5.js","assets/vendor-codemirror-lang-yaml-CO68whJF.js","assets/vendor-lezer-yaml-BNIl6S_O.js","assets/dockerfile-BKs6k2Af.js","assets/simple-mode-GW_nhZxv.js","assets/factor-kuTfRLto.js","assets/nsis-LY0VT_u5.js","assets/pug-CIGw5rlb.js","assets/javascript-BO_2ioGC.js","assets/useAppFontEffects-d9vsRNKm.js","assets/vendor-react-BUCujlKS.js","assets/vendor-scheduler-7OC5HNn7.js","assets/katex.min-u4DtE8E5.js","assets/vendor-zod-DDir2TeQ.js","assets/vendor-vite-runtime-DD1OZmLC.js","assets/vendor-zustand-BAGL70zf.js","assets/vendor-opencode-client-h8RufjAw.js","assets/katex-CQK6Iqoe.css","assets/vendor-base-ui-CPKyhvxM.js","assets/vendor-floating-ui-utils-D6FqdtJt.js","assets/vendor-floating-ui-dom-BTvzWks8.js","assets/vendor-floating-ui-core-PuGzNPnN.js","assets/vendor-floating-ui-react-dom-DxYCWdHj.js","assets/vendor-use-sync-external-store-D6wYuSt-.js","assets/vendor-simplewebauthn-browser-VDA66rT_.js","assets/vendor-class-variance-authority-5VPnzWs2.js","assets/vendor-clsx-B-dksMZM.js","assets/vendor-dnd-kit-core-BZknOX2w.js","assets/vendor-dnd-kit-utilities-B_MdXhJC.js","assets/vendor-dnd-kit-accessibility-BHxJPORy.js","assets/vendor-dnd-kit-sortable-CsEagZ81.js","assets/vendor-tanstack-react-virtual-Bmi0tTrf.js","assets/vendor-tanstack-virtual-core-CdGDGrnp.js","assets/vendor-framer-motion-DxDVhOLc.js","assets/vendor-motion-dom-HXPOMxb7.js","assets/vendor-motion-utils-BGh8QBgx.js","assets/vendor-codemirror-commands-dar6chwA.js","assets/vendor-sonner-DFyL3AvE.js","assets/vendor-capacitor-core-B4EWRrHz.js","assets/vendor-cmdk-DgLInKvT.js","assets/vendor-radix-ui-react-dialog-B94Bt2qq.js","assets/vendor-radix-ui-primitive-Dc_FVRD7.js","assets/vendor-radix-ui-react-compose-refs-DcAh5WdT.js","assets/vendor-radix-ui-react-context-Czxm7Z62.js","assets/vendor-radix-ui-react-id-f5BLKEVw.js","assets/vendor-radix-ui-react-use-layout-effect-D_3IhJdJ.js","assets/vendor-radix-ui-react-use-controllable-state-BFT5YmkA.js","assets/vendor-radix-ui-react-dismissable-layer-D7kXcwgJ.js","assets/vendor-radix-ui-react-primitive-DhVoX9SD.js","assets/vendor-radix-ui-react-slot-BQgQOasS.js","assets/vendor-radix-ui-react-use-callback-ref-BZPnuXAC.js","assets/vendor-radix-ui-react-use-escape-keydown-oph88g-F.js","assets/vendor-radix-ui-react-focus-scope-CiaxW4dD.js","assets/vendor-radix-ui-react-portal-BMJYHWck.js","assets/vendor-radix-ui-react-presence-CNxf-uq4.js","assets/vendor-radix-ui-react-focus-guards-B6qJXYua.js","assets/vendor-react-remove-scroll-DO7dCTnK.js","assets/vendor-tslib-De9GV7Vy.js","assets/vendor-react-remove-scroll-bar-BcFYyj3E.js","assets/vendor-react-style-singleton-q6EMHnwf.js","assets/vendor-get-nonce-C-Z93AgS.js","assets/vendor-use-sidecar-zDC0RhA3.js","assets/vendor-use-callback-ref-D3RC8gqK.js","assets/vendor-aria-hidden-DvXkyWUv.js","assets/vendor-legendapp-list-D2O6oUGf.js","assets/vendor-tailwind-merge-CPcsbTWB.js","assets/vendor-fuse.js-Dw8P0qyA.js","assets/vendor-codemirror-lang-vue-BLOgzDW5.js","assets/vendor-codemirror-lang-angular-D1pDry5v.js"])))=>i.map(i=>d[i]);
2
+ import{_ as o}from"./vendor-vite-runtime-DD1OZmLC.js";import{t,L as i,S as a}from"./vendor-codemirror-language-DyL0aCoH.js";function n(e){return new i(a.define(e))}function r(e){return o(()=>import("./vendor-codemirror-lang-sql-DthMFzdd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(_=>_.sql({dialect:_[e]}))}const l=[t.of({name:"C",extensions:["c","h","ino"],load(){return o(()=>import("./vendor-codemirror-lang-cpp-BKWsoVi6.js"),__vite__mapDeps([13,14,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.cpp())}}),t.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return o(()=>import("./vendor-codemirror-lang-cpp-BKWsoVi6.js"),__vite__mapDeps([13,14,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.cpp())}}),t.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return r("Cassandra")}}),t.of({name:"CSS",extensions:["css"],load(){return o(()=>import("./vendor-codemirror-lang-css-9qjxcVkg.js"),__vite__mapDeps([15,16,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.css())}}),t.of({name:"Go",extensions:["go"],load(){return o(()=>import("./vendor-codemirror-lang-go-Bfc85TYP.js"),__vite__mapDeps([17,18,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.go())}}),t.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return o(()=>import("./vendor-codemirror-lang-html-D7VQUxeE.js"),__vite__mapDeps([19,20,11,2,9,15,16,1,3,4,5,6,7,8,10,21,22,12])).then(e=>e.html())}}),t.of({name:"Java",extensions:["java"],load(){return o(()=>import("./vendor-codemirror-lang-java-Sz-iQqje.js"),__vite__mapDeps([23,24,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.java())}}),t.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-Cem6LjJ8.js"),__vite__mapDeps([21,22,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.javascript())}}),t.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return o(()=>import("./vendor-codemirror-lang-jinja-BNojcnII.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,19,20,11,15,16,21,22,12])).then(e=>e.jinja())}}),t.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return o(()=>import("./vendor-codemirror-lang-json-C9rLLO0q.js"),__vite__mapDeps([26,27,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.json())}}),t.of({name:"JSX",extensions:["jsx"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-Cem6LjJ8.js"),__vite__mapDeps([21,22,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.javascript({jsx:!0}))}}),t.of({name:"LESS",extensions:["less"],load(){return o(()=>import("./vendor-codemirror-lang-less-DWScMdGe.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,15,16,11])).then(e=>e.less())}}),t.of({name:"Liquid",extensions:["liquid"],load(){return o(()=>import("./vendor-codemirror-lang-liquid-BtpaZ1-f.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,19,20,11,15,16,21,22,12])).then(e=>e.liquid())}}),t.of({name:"MariaDB SQL",load(){return r("MariaSQL")}}),t.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return o(()=>import("./vendor-codemirror-lang-markdown-Cikh4w2I.js"),__vite__mapDeps([30,3,4,5,6,7,8,1,2,9,10,12,31,19,20,11,15,16,21,22])).then(e=>e.markdown())}}),t.of({name:"MS SQL",load(){return r("MSSQL")}}),t.of({name:"MySQL",load(){return r("MySQL")}}),t.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return o(()=>import("./vendor-codemirror-lang-php-oZEJV80p.js"),__vite__mapDeps([32,33,11,2,9,19,20,15,16,1,3,4,5,6,7,8,10,21,22,12])).then(e=>e.php())}}),t.of({name:"PLSQL",extensions:["pls"],load(){return r("PLSQL")}}),t.of({name:"PostgreSQL",load(){return r("PostgreSQL")}}),t.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return o(()=>import("./vendor-codemirror-lang-python-DVl8-2Op.js"),__vite__mapDeps([34,35,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.python())}}),t.of({name:"Rust",extensions:["rs"],load(){return o(()=>import("./vendor-codemirror-lang-rust-DyrK7wU8.js"),__vite__mapDeps([36,37,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.rust())}}),t.of({name:"Sass",extensions:["sass"],load(){return o(()=>import("./vendor-codemirror-lang-sass-DTg9Motp.js"),__vite__mapDeps([38,39,11,2,9,1,3,4,5,6,7,8,10,15,16])).then(e=>e.sass({indented:!0}))}}),t.of({name:"SCSS",extensions:["scss"],load(){return o(()=>import("./vendor-codemirror-lang-sass-DTg9Motp.js"),__vite__mapDeps([38,39,11,2,9,1,3,4,5,6,7,8,10,15,16])).then(e=>e.sass())}}),t.of({name:"SQL",extensions:["sql"],load(){return r("StandardSQL")}}),t.of({name:"SQLite",load(){return r("SQLite")}}),t.of({name:"TSX",extensions:["tsx"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-Cem6LjJ8.js"),__vite__mapDeps([21,22,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.javascript({jsx:!0,typescript:!0}))}}),t.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return o(()=>import("./vendor-codemirror-lang-javascript-Cem6LjJ8.js"),__vite__mapDeps([21,22,11,2,9,1,3,4,5,6,7,8,10,12])).then(e=>e.javascript({typescript:!0}))}}),t.of({name:"WebAssembly",extensions:["wat","wast"],load(){return o(()=>import("./vendor-codemirror-lang-wast-BT6IxuyE.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11])).then(e=>e.wast())}}),t.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return o(()=>import("./vendor-codemirror-lang-xml-C8QzPA1o.js"),__vite__mapDeps([41,42,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.xml())}}),t.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return o(()=>import("./vendor-codemirror-lang-yaml-CO68whJF.js"),__vite__mapDeps([43,44,11,2,9,1,3,4,5,6,7,8,10])).then(e=>e.yaml())}}),t.of({name:"APL",extensions:["dyalog","apl"],load(){return o(()=>import("./apl-B4CMkyY2.js"),[]).then(e=>n(e.apl))}}),t.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return o(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(e=>n(e.asciiArmor))}}),t.of({name:"ASN.1",extensions:["asn","asn1"],load(){return o(()=>import("./asn1-EdZsLKOL.js"),[]).then(e=>n(e.asn1({})))}}),t.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return o(()=>import("./asterisk-B-8jnY81.js"),[]).then(e=>n(e.asterisk))}}),t.of({name:"Brainfuck",extensions:["b","bf"],load(){return o(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(e=>n(e.brainfuck))}}),t.of({name:"Cobol",extensions:["cob","cpy"],load(){return o(()=>import("./cobol-CWcv1MsR.js"),[]).then(e=>n(e.cobol))}}),t.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.csharp))}}),t.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"ClojureScript",extensions:["cljs"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return o(()=>import("./css-BnMrqG3P.js"),[]).then(e=>n(e.gss))}}),t.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return o(()=>import("./cmake-BQqOBYOt.js"),[]).then(e=>n(e.cmake))}}),t.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return o(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(e=>n(e.coffeeScript))}}),t.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return o(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(e=>n(e.commonLisp))}}),t.of({name:"Cypher",extensions:["cyp","cypher"],load(){return o(()=>import("./cypher-C_CwsFkJ.js"),[]).then(e=>n(e.cypher))}}),t.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return o(()=>import("./python-Cso5vRIg.js"),[]).then(e=>n(e.cython))}}),t.of({name:"Crystal",extensions:["cr"],load(){return o(()=>import("./crystal-SjHAIU92.js"),[]).then(e=>n(e.crystal))}}),t.of({name:"D",extensions:["d"],load(){return o(()=>import("./d-pRatUO7H.js"),[]).then(e=>n(e.d))}}),t.of({name:"Dart",extensions:["dart"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.dart))}}),t.of({name:"diff",extensions:["diff","patch"],load(){return o(()=>import("./diff-DbItnlRl.js"),[]).then(e=>n(e.diff))}}),t.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return o(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([45,46])).then(e=>n(e.dockerFile))}}),t.of({name:"DTD",extensions:["dtd"],load(){return o(()=>import("./dtd-DF_7sFjM.js"),[]).then(e=>n(e.dtd))}}),t.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return o(()=>import("./dylan-DwRh75JA.js"),[]).then(e=>n(e.dylan))}}),t.of({name:"EBNF",load(){return o(()=>import("./ebnf-CDyGwa7X.js"),[]).then(e=>n(e.ebnf))}}),t.of({name:"ECL",extensions:["ecl"],load(){return o(()=>import("./ecl-Cabwm37j.js"),[]).then(e=>n(e.ecl))}}),t.of({name:"edn",extensions:["edn"],load(){return o(()=>import("./clojure-BMjYHr_A.js"),[]).then(e=>n(e.clojure))}}),t.of({name:"Eiffel",extensions:["e"],load(){return o(()=>import("./eiffel-CnydiIhH.js"),[]).then(e=>n(e.eiffel))}}),t.of({name:"Elm",extensions:["elm"],load(){return o(()=>import("./elm-vLlmbW-K.js"),[]).then(e=>n(e.elm))}}),t.of({name:"Erlang",extensions:["erl"],load(){return o(()=>import("./erlang-BNw1qcRV.js"),[]).then(e=>n(e.erlang))}}),t.of({name:"Esper",load(){return o(()=>import("./sql-D0XecflT.js"),[]).then(e=>n(e.esper))}}),t.of({name:"Factor",extensions:["factor"],load(){return o(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([47,46])).then(e=>n(e.factor))}}),t.of({name:"FCL",load(){return o(()=>import("./fcl-Kvtd6kyn.js"),[]).then(e=>n(e.fcl))}}),t.of({name:"Forth",extensions:["forth","fth","4th"],load(){return o(()=>import("./forth-Ffai-XNe.js"),[]).then(e=>n(e.forth))}}),t.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return o(()=>import("./fortran-DYz_wnZ1.js"),[]).then(e=>n(e.fortran))}}),t.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.fSharp))}}),t.of({name:"Gas",extensions:["s"],load(){return o(()=>import("./gas-Bneqetm1.js"),[]).then(e=>n(e.gas))}}),t.of({name:"Gherkin",extensions:["feature"],load(){return o(()=>import("./gherkin-heZmZLOM.js"),[]).then(e=>n(e.gherkin))}}),t.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return o(()=>import("./groovy-D9Dt4D0W.js"),[]).then(e=>n(e.groovy))}}),t.of({name:"Haskell",extensions:["hs"],load(){return o(()=>import("./haskell-Cw1EW3IL.js"),[]).then(e=>n(e.haskell))}}),t.of({name:"Haxe",extensions:["hx"],load(){return o(()=>import("./haxe-H-WmDvRZ.js"),[]).then(e=>n(e.haxe))}}),t.of({name:"HXML",extensions:["hxml"],load(){return o(()=>import("./haxe-H-WmDvRZ.js"),[]).then(e=>n(e.hxml))}}),t.of({name:"HTTP",load(){return o(()=>import("./http-DBlCnlav.js"),[]).then(e=>n(e.http))}}),t.of({name:"IDL",extensions:["pro"],load(){return o(()=>import("./idl-BEugSyMb.js"),[]).then(e=>n(e.idl))}}),t.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return o(()=>import("./javascript-BO_2ioGC.js"),[]).then(e=>n(e.jsonld))}}),t.of({name:"Julia",extensions:["jl"],load(){return o(()=>import("./julia-DuME0IfC.js"),[]).then(e=>n(e.julia))}}),t.of({name:"Kotlin",extensions:["kt","kts"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.kotlin))}}),t.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return o(()=>import("./livescript-BwQOo05w.js"),[]).then(e=>n(e.liveScript))}}),t.of({name:"Lua",extensions:["lua"],load(){return o(()=>import("./lua-VAEuO923.js"),[]).then(e=>n(e.lua))}}),t.of({name:"mIRC",extensions:["mrc"],load(){return o(()=>import("./mirc-CjQqDB4T.js"),[]).then(e=>n(e.mirc))}}),t.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return o(()=>import("./mathematica-DTrFuWx2.js"),[]).then(e=>n(e.mathematica))}}),t.of({name:"Modelica",extensions:["mo"],load(){return o(()=>import("./modelica-Dc1JOy9r.js"),[]).then(e=>n(e.modelica))}}),t.of({name:"MUMPS",extensions:["mps"],load(){return o(()=>import("./mumps-BT43cFF4.js"),[]).then(e=>n(e.mumps))}}),t.of({name:"Mbox",extensions:["mbox"],load(){return o(()=>import("./mbox-CNhZ1qSd.js"),[]).then(e=>n(e.mbox))}}),t.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return o(()=>import("./nginx-DdIZxoE0.js"),[]).then(e=>n(e.nginx))}}),t.of({name:"NSIS",extensions:["nsh","nsi"],load(){return o(()=>import("./nsis-LY0VT_u5.js"),__vite__mapDeps([48,46])).then(e=>n(e.nsis))}}),t.of({name:"NTriples",extensions:["nt","nq"],load(){return o(()=>import("./ntriples-BfvgReVJ.js"),[]).then(e=>n(e.ntriples))}}),t.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.objectiveC))}}),t.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.objectiveCpp))}}),t.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.oCaml))}}),t.of({name:"Octave",extensions:["m"],load(){return o(()=>import("./octave-CWZ4xMHY.js"),[]).then(e=>n(e.octave))}}),t.of({name:"Oz",extensions:["oz"],load(){return o(()=>import("./oz-BzwKVEFT.js"),[]).then(e=>n(e.oz))}}),t.of({name:"Pascal",extensions:["p","pas"],load(){return o(()=>import("./pascal--L3eBynH.js"),[]).then(e=>n(e.pascal))}}),t.of({name:"Perl",extensions:["pl","pm"],load(){return o(()=>import("./perl-CdXCOZ3F.js"),[]).then(e=>n(e.perl))}}),t.of({name:"Pig",extensions:["pig"],load(){return o(()=>import("./pig-CevX1Tat.js"),[]).then(e=>n(e.pig))}}),t.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return o(()=>import("./powershell-CFHJl5sT.js"),[]).then(e=>n(e.powerShell))}}),t.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return o(()=>import("./properties-C78fOPTZ.js"),[]).then(e=>n(e.properties))}}),t.of({name:"ProtoBuf",extensions:["proto"],load(){return o(()=>import("./protobuf-ChK-085T.js"),[]).then(e=>n(e.protobuf))}}),t.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return o(()=>import("./pug-CIGw5rlb.js"),__vite__mapDeps([49,50])).then(e=>n(e.pug))}}),t.of({name:"Puppet",extensions:["pp"],load(){return o(()=>import("./puppet-DMA9R1ak.js"),[]).then(e=>n(e.puppet))}}),t.of({name:"Q",extensions:["q"],load(){return o(()=>import("./q-pXgVlZs6.js"),[]).then(e=>n(e.q))}}),t.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return o(()=>import("./r-B6wPVr8A.js"),[]).then(e=>n(e.r))}}),t.of({name:"RPM Changes",load(){return o(()=>import("./rpm-CTu-6PCP.js"),[]).then(e=>n(e.rpmChanges))}}),t.of({name:"RPM Spec",extensions:["spec"],load(){return o(()=>import("./rpm-CTu-6PCP.js"),[]).then(e=>n(e.rpmSpec))}}),t.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return o(()=>import("./ruby-BK5aLJev.js"),[]).then(e=>n(e.ruby))}}),t.of({name:"SAS",extensions:["sas"],load(){return o(()=>import("./sas-B4kiWyti.js"),[]).then(e=>n(e.sas))}}),t.of({name:"Scala",extensions:["scala"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.scala))}}),t.of({name:"Scheme",extensions:["scm","ss"],load(){return o(()=>import("./scheme-C41bIUwD.js"),[]).then(e=>n(e.scheme))}}),t.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return o(()=>import("./useAppFontEffects-d9vsRNKm.js").then(e=>e.oQ),__vite__mapDeps([51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,3,4,5,6,7,8,1,2,9,10,21,22,11,12,26,27,15,16,19,20,30,31,34,35,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108])).then(e=>n(e.shell))}}),t.of({name:"Sieve",extensions:["siv","sieve"],load(){return o(()=>import("./sieve-C3Gn_uJK.js"),[]).then(e=>n(e.sieve))}}),t.of({name:"Smalltalk",extensions:["st"],load(){return o(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(e=>n(e.smalltalk))}}),t.of({name:"Solr",load(){return o(()=>import("./solr-DehyRSwq.js"),[]).then(e=>n(e.solr))}}),t.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return o(()=>import("./mllike-BO34x3tv.js"),[]).then(e=>n(e.sml))}}),t.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return o(()=>import("./sparql-DkYu6x3z.js"),[]).then(e=>n(e.sparql))}}),t.of({name:"Spreadsheet",alias:["excel","formula"],load(){return o(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(e=>n(e.spreadsheet))}}),t.of({name:"Squirrel",extensions:["nut"],load(){return o(()=>import("./clike-B9uivgTg.js"),[]).then(e=>n(e.squirrel))}}),t.of({name:"Stylus",extensions:["styl"],load(){return o(()=>import("./stylus-B533Al4x.js"),[]).then(e=>n(e.stylus))}}),t.of({name:"Swift",extensions:["swift"],load(){return o(()=>import("./swift-BzpIVaGY.js"),[]).then(e=>n(e.swift))}}),t.of({name:"sTeX",load(){return o(()=>import("./stex-C3f8Ysf7.js"),[]).then(e=>n(e.stex))}}),t.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return o(()=>import("./stex-C3f8Ysf7.js"),[]).then(e=>n(e.stex))}}),t.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return o(()=>import("./verilog-C6RDOZhf.js"),[]).then(e=>n(e.verilog))}}),t.of({name:"Tcl",extensions:["tcl"],load(){return o(()=>import("./tcl-DVfN8rqt.js"),[]).then(e=>n(e.tcl))}}),t.of({name:"Textile",extensions:["textile"],load(){return o(()=>import("./textile-CnDTJFAw.js"),[]).then(e=>n(e.textile))}}),t.of({name:"TiddlyWiki",load(){return o(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(e=>n(e.tiddlyWiki))}}),t.of({name:"Tiki wiki",load(){return o(()=>import("./tiki-DGYXhP31.js"),[]).then(e=>n(e.tiki))}}),t.of({name:"TOML",extensions:["toml"],load(){return o(()=>import("./toml-Bm5Em-hy.js"),[]).then(e=>n(e.toml))}}),t.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return o(()=>import("./troff-wAsdV37c.js"),[]).then(e=>n(e.troff))}}),t.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return o(()=>import("./ttcn-CfJYG6tj.js"),[]).then(e=>n(e.ttcn))}}),t.of({name:"TTCN_CFG",extensions:["cfg"],load(){return o(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(e=>n(e.ttcnCfg))}}),t.of({name:"Turtle",extensions:["ttl"],load(){return o(()=>import("./turtle-B1tBg_DP.js"),[]).then(e=>n(e.turtle))}}),t.of({name:"Web IDL",extensions:["webidl"],load(){return o(()=>import("./webidl-ZXfAyPTL.js"),[]).then(e=>n(e.webIDL))}}),t.of({name:"VB.NET",extensions:["vb"],load(){return o(()=>import("./vb-CmGdzxic.js"),[]).then(e=>n(e.vb))}}),t.of({name:"VBScript",extensions:["vbs"],load(){return o(()=>import("./vbscript-BuJXcnF6.js"),[]).then(e=>n(e.vbScript))}}),t.of({name:"Velocity",extensions:["vtl"],load(){return o(()=>import("./velocity-D8B20fx6.js"),[]).then(e=>n(e.velocity))}}),t.of({name:"Verilog",extensions:["v"],load(){return o(()=>import("./verilog-C6RDOZhf.js"),[]).then(e=>n(e.verilog))}}),t.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return o(()=>import("./vhdl-lSbBsy5d.js"),[]).then(e=>n(e.vhdl))}}),t.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return o(()=>import("./xquery-DzFWVndE.js"),[]).then(e=>n(e.xQuery))}}),t.of({name:"Yacas",extensions:["ys"],load(){return o(()=>import("./yacas-BJ4BC0dw.js"),[]).then(e=>n(e.yacas))}}),t.of({name:"Z80",extensions:["z80"],load(){return o(()=>import("./z80-Hz9HOZM7.js"),[]).then(e=>n(e.z80))}}),t.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.mscgen))}}),t.of({name:"Xù",extensions:["xu"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.xu))}}),t.of({name:"MsGenny",extensions:["msgenny"],load(){return o(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(e=>n(e.msgenny))}}),t.of({name:"Vue",extensions:["vue"],load(){return o(()=>import("./vendor-codemirror-lang-vue-BLOgzDW5.js"),__vite__mapDeps([109,1,2,3,4,5,6,7,8,9,10,19,20,11,15,16,21,22,12])).then(e=>e.vue())}}),t.of({name:"Angular Template",load(){return o(()=>import("./vendor-codemirror-lang-angular-D1pDry5v.js"),__vite__mapDeps([110,1,2,3,4,5,6,7,8,9,10,19,20,11,15,16,21,22,12])).then(e=>e.angular())}})];export{l};
package/dist/index.html CHANGED
@@ -492,7 +492,7 @@
492
492
  pointer-events: none;
493
493
  }
494
494
  </style>
495
- <script type="module" crossorigin src="/assets/main-CcAbEyCv.js"></script>
495
+ <script type="module" crossorigin src="/assets/main-DMdUGpFx.js"></script>
496
496
  <link rel="modulepreload" crossorigin href="/assets/vendor-vite-runtime-DD1OZmLC.js">
497
497
  <link rel="modulepreload" crossorigin href="/assets/vendor-zod-DDir2TeQ.js">
498
498
  <link rel="modulepreload" crossorigin href="/assets/vendor-scheduler-7OC5HNn7.js">