cc-viewer 1.6.31 → 1.6.32

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.
@@ -563,7 +563,7 @@ void main() {
563
563
  * Copyright (c) Paul O'Shannessy
564
564
  * SPDX-License-Identifier: ISC
565
565
  */var a_e={L:OO.QrCode.Ecc.LOW,M:OO.QrCode.Ecc.MEDIUM,Q:OO.QrCode.Ecc.QUARTILE,H:OO.QrCode.Ecc.HIGH},fB=128,pB="L",mB="#FFFFFF",gB="#000000",vB=!1,$B=1,l_e=4,c_e=0,u_e=.1;function SB(t,e=0){const n=[];return t.forEach(function(i,r){let s=null;i.forEach(function(o,a){if(!o&&s!==null){n.push(`M${s+e} ${r+e}h${a-s}v1H${s+e}z`),s=null;return}if(a===i.length-1){if(!o)return;s===null?n.push(`M${a+e},${r+e} h1v1H${a+e}z`):n.push(`M${s+e},${r+e} h${a+1-s}v1H${s+e}z`);return}o&&s===null&&(s=a)})}),n.join("")}function bB(t,e){return t.slice().map((n,i)=>i<e.y||i>=e.y+e.h?n:n.map((r,s)=>s<e.x||s>=e.x+e.w?r:!1))}function d_e(t,e,n,i){if(i==null)return null;const r=t.length+n*2,s=Math.floor(e*u_e),o=r/e,a=(i.width||s)*o,l=(i.height||s)*o,c=i.x==null?t.length/2-a/2:i.x*o,u=i.y==null?t.length/2-l/2:i.y*o,d=i.opacity==null?1:i.opacity;let h=null;if(i.excavate){let g=Math.floor(c),v=Math.floor(u),$=Math.ceil(a+c-g),y=Math.ceil(l+u-v);h={x:g,y:v,w:$,h:y}}const p=i.crossOrigin;return{x:c,y:u,h:l,w:a,excavation:h,opacity:d,crossOrigin:p}}function h_e(t,e){return e!=null?Math.max(Math.floor(e),0):t?l_e:c_e}function yB({value:t,level:e,minVersion:n,includeMargin:i,marginSize:r,imageSettings:s,size:o,boostLevel:a}){let l=ie.useMemo(()=>{const g=(Array.isArray(t)?t:[t]).reduce((v,$)=>(v.push(...OO.QrSegment.makeSegments($)),v),[]);return OO.QrCode.encodeSegments(g,a_e[e],n,void 0,void 0,a)},[t,e,n,a]);const{cells:c,margin:u,numCells:d,calculatedImageSettings:h}=ie.useMemo(()=>{let p=l.getModules();const g=h_e(i,r),v=p.length+g*2,$=d_e(p,o,g,s);return{cells:p,margin:g,numCells:v,calculatedImageSettings:$}},[l,o,s,i,r]);return{qrcode:l,margin:u,cells:c,numCells:d,calculatedImageSettings:h}}var O_e=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),_B=ie.forwardRef(function(e,n){const i=e,{value:r,size:s=fB,level:o=pB,bgColor:a=mB,fgColor:l=gB,includeMargin:c=vB,minVersion:u=$B,boostLevel:d,marginSize:h,imageSettings:p}=i,v=gC(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:$}=v,y=gC(v,["style"]),_=p==null?void 0:p.src,x=ie.useRef(null),Q=ie.useRef(null),w=ie.useCallback(R=>{x.current=R,typeof n=="function"?n(R):n&&(n.current=R)},[n]),[P,T]=ie.useState(!1),{margin:z,cells:E,numCells:A,calculatedImageSettings:L}=yB({value:r,level:o,minVersion:u,boostLevel:d,includeMargin:c,marginSize:h,imageSettings:p,size:s});ie.useEffect(()=>{if(x.current!=null){const R=x.current,j=R.getContext("2d");if(!j)return;let M=E;const N=Q.current,W=L!=null&&N!==null&&N.complete&&N.naturalHeight!==0&&N.naturalWidth!==0;W&&L.excavation!=null&&(M=bB(E,L.excavation));const B=window.devicePixelRatio||1;R.height=R.width=s*B;const D=s/A*B;j.scale(D,D),j.fillStyle=a,j.fillRect(0,0,A,A),j.fillStyle=l,O_e?j.fill(new Path2D(SB(M,z))):E.forEach(function(U,q){U.forEach(function(Z,H){Z&&j.fillRect(H+z,q+z,1,1)})}),L&&(j.globalAlpha=L.opacity),W&&j.drawImage(N,L.x+z,L.y+z,L.w,L.h)}}),ie.useEffect(()=>{T(!1)},[_]);const k=mC({height:s,width:s},$);let X=null;return _!=null&&(X=ie.createElement("img",{src:_,key:_,style:{display:"none"},onLoad:()=>{T(!0)},ref:Q,crossOrigin:L==null?void 0:L.crossOrigin})),ie.createElement(ie.Fragment,null,ie.createElement("canvas",mC({style:k,height:s,width:s,ref:w,role:"img"},y)),X)});_B.displayName="QRCodeCanvas";var f_e=ie.forwardRef(function(e,n){const i=e,{value:r,size:s=fB,level:o=pB,bgColor:a=mB,fgColor:l=gB,includeMargin:c=vB,minVersion:u=$B,boostLevel:d,title:h,marginSize:p,imageSettings:g}=i,v=gC(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:$,cells:y,numCells:_,calculatedImageSettings:x}=yB({value:r,level:o,minVersion:u,boostLevel:d,includeMargin:c,marginSize:p,imageSettings:g,size:s});let Q=y,w=null;g!=null&&x!=null&&(x.excavation!=null&&(Q=bB(y,x.excavation)),w=ie.createElement("image",{href:g.src,height:x.h,width:x.w,x:x.x+$,y:x.y+$,preserveAspectRatio:"none",opacity:x.opacity,crossOrigin:x.crossOrigin}));const P=SB(Q,$);return ie.createElement("svg",mC({height:s,width:s,viewBox:`0 0 ${_} ${_}`,ref:n,role:"img"},v),!!h&&ie.createElement("title",null,h),ie.createElement("path",{fill:a,d:`M0,0 h${_}v${_}H0z`,shapeRendering:"crispEdges"}),ie.createElement("path",{fill:l,d:P,shapeRendering:"crispEdges"}),w)});f_e.displayName="QRCodeSVG";function p_e(t){const e=t==null?void 0:t.system;return typeof e=="string"?e:Array.isArray(e)?e.map(n=>n&&n.text||"").join(""):""}const m_e=/You are a Claude agent/i,Ux=new WeakMap;function g_e(t){if(!t)return!1;const e=Ux.get(t);if(e!==void 0)return e;if(t.teammate)return Ux.set(t,!1),!1;const n=p_e(t.body||{}),i=m_e.test(n);return Ux.set(t,i),i}function v_e(t){if(!(t!=null&&t.body))return null;const e=t.body.messages||[];if(e.length===0)return null;for(const n of e){if(n.role!=="user")continue;const i=n.content;let r="";if(typeof i=="string"?r=i:Array.isArray(i)&&(r=i.filter(o=>o&&o.type==="text").map(o=>o.text||"").join(" ")),!r)continue;const s=r.match(/Agent\s+(?:oh-my-claudecode:)?(\S+)\s+started/i)||r.match(/You are (\w+)[,.]/)||r.match(/name[::]\s*["']?(\w+)/i);if(s)return s[1]}return null}const Rz=/command execution specialist|file search specialist|planning specialist|general-purpose agent/i,$_e=/running as an agent in a team|Agent Teammate Communication/i;function Xm(t){const e=t==null?void 0:t.system;return typeof e=="string"?e:Array.isArray(e)?e.map(n=>n&&n.text||"").join(""):""}const u0=new WeakMap;function xB(t){if(!t)return!1;const e=u0.get(t);if(e!==void 0)return e;if(t.teammate)return u0.set(t,!0),!0;if(g_e(t))return t.teammate||(t.teammate=v_e(t)||null),u0.set(t,!0),!0;const n=Xm(t.body||{}),i=$_e.test(n);return u0.set(t,i),i}const Ez=new WeakMap;function Cr(t){if(!t)return!1;const e=Ez.get(t);if(e!==void 0)return e;const n=S_e(t);return Ez.set(t,n),n}function S_e(t){if(!t||xB(t))return!1;if(t.mainAgent){const s=Xm(t.body||{});return!Rz.test(s)}const e=t.body||{};if(!e.system||!Array.isArray(e.tools))return!1;const n=Xm(e);if(!n.includes("You are Claude Code")||Rz.test(n))return!1;const i=Array.isArray(e.system),r=e.tools.some(s=>s.name==="ToolSearch");if(i&&r){const s=e.messages||[];if((s.length>0?typeof s[0].content=="string"?s[0].content:Array.isArray(s[0].content)?s[0].content.map(a=>a.text||"").join(""):"":"").includes("<available-deferred-tools>"))return!0}if(e.tools.length>5){const s=e.tools.some(l=>l.name==="Edit"),o=e.tools.some(l=>l.name==="Bash"),a=e.tools.some(l=>l.name==="Task"||l.name==="Agent");if(s&&o&&a)return!0}return!1}function vC(t){return t?/^Base directory for this skill:/i.test(t.trim()):!1}function Cu(t){if(!t)return!0;const e=t.trim();return e?/Implement the following plan:/i.test(e)?!1:!!(/^<[a-zA-Z_][\w-]*[\s>]/i.test(e)||/^\[SUGGESTION MODE:/i.test(e)||/^Your response was cut off because it exceeded the output token limit/i.test(e)||/^Base directory for this skill:/i.test(e)):!0}function wk(t){if(!Array.isArray(t))return{commands:[],textBlocks:[],skillBlocks:[]};const e=t.some(s=>s.type==="text"&&/<command-message>/i.test(s.text||"")),n=[];if(e)for(const s of t){if(s.type!=="text")continue;const o=(s.text||"").match(/<command-name>\s*([^<]*)<\/command-name>/i);if(o){const a=o[1].trim();n.push(a.startsWith("/")?a:`/${a}`)}}let i=t.filter(s=>s.type==="text"&&!Cu(s.text));e&&(i=i.filter(s=>!/<command-message>/i.test(s.text||"")));const r=i.filter(s=>vC(s.text));return r.length>0&&(i=i.filter(s=>!vC(s.text))),{commands:n,textBlocks:i,skillBlocks:r}}function b_e(t){var n;const e=t==null?void 0:t.messages;if(!Array.isArray(e))return null;for(let i=e.length-1;i>=0;i--){const r=e[i].content;if(Array.isArray(r))for(const s of r){if(s.type!=="tool_result")continue;const o=Array.isArray(s.content)?s.content:[s];for(const a of o){const l=a.text||(typeof a.content=="string"?a.content:"");if(!(!l||!l.includes('"sender"')))try{const c=JSON.parse(l);if((n=c==null?void 0:c.routing)!=null&&n.sender)return c.routing.sender}catch{}}}}return null}const y_e=[{match:/\[1m\]/i,tokens:1e6},{match:/claude/i,tokens:2e5},{match:/gpt-4o|o1|o3|o4/i,tokens:128e3},{match:/gpt-4/i,tokens:128e3},{match:/gpt-3/i,tokens:16e3},{match:/deepseek/i,tokens:128e3}];function Xz(t){if(!t)return 2e5;for(const e of y_e)if(e.match.test(t))return e.tokens;return 2e5}function QB(t,e,n,i){var r,s;for(let o=n;o<e.length;o++){const a=e[o];if(Cr(a)){if(i){const l=(s=(r=a.response)==null?void 0:r.body)==null?void 0:s.usage;if(l){const c=l.cache_creation_input_tokens||0,u=l.cache_read_input_tokens||0;if(c>0&&c>u){const d=x_e(i,a);d&&t.set(o,d)}}}i=a}}return i}function __e(t){const e=new Map;return QB(e,t,0,null),e}const zz=new WeakMap;function d0(t,e){let n=zz.get(t);if(n||(n={},zz.set(t,n)),n[e]===void 0){const i=Tu(t.body);n[e]=JSON.stringify(i==null?void 0:i[e])}return n[e]}function x_e(t,e){if(e.timestamp-t.timestamp>300*1e3)return{reason:"ttl",reasons:["ttl"]};const i=Tu(t.body),r=Tu(e.body);if(!i||!r)return{reason:"key_change",reasons:["key_change"]};const s=[];i.model!==r.model&&s.push("model_change");const o=d0(t,"system"),a=d0(e,"system");o!==a&&s.push("system_change");const l=d0(t,"tools"),c=d0(e,"tools");l!==c&&s.push("tools_change");const u=i.messages||[],d=r.messages||[];if(d.length<u.length)s.push("msg_truncated");else{const h=Math.min(u.length,d.length);let p=!0;for(let g=0;g<h;g++)if(JSON.stringify(u[g])!==JSON.stringify(d[g])){p=!1;break}p||s.push("msg_modified")}return s.length===0&&s.push("key_change"),{reason:s[0],reasons:s}}function b1(t){return t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}function wB(t){return t.content?typeof t.content=="string"?t.content:Array.isArray(t.content)?t.content.filter(e=>e.type==="text").map(e=>e.text).join(`
566
- `):JSON.stringify(t.content):String(t.content??"")}const Q_e=[{match:/claude/i,name:"Claude",color:"#000000",svg:'<svg t="1771495509570" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1570" width="200" height="200"><path d="M198.4 678.4l198.4-115.2 6.4-12.8H243.2l-96-6.4-102.4-6.4-19.2-6.4-25.6-25.6v-12.8l19.2-12.8h32l64 6.4 96 6.4 70.4 6.4L384 512h19.2V492.8l-6.4-6.4-102.4-64-108.8-76.8-51.2-38.4-32-19.2-19.2-25.6-6.4-38.4 32-32h44.8l38.4 32 83.2 64L384 364.8l12.8 12.8 6.4-6.4-6.4-12.8L339.2 256l-64-108.8-25.6-38.4-6.4-25.6c0-12.8-6.4-19.2-6.4-32l32-44.8 19.2-6.4 44.8 6.4 19.2 12.8 25.6 57.6 44.8 96 64 128 19.2 38.4 6.4 38.4 6.4 12.8h6.4V384l6.4-70.4 12.8-89.6 12.8-115.2 6.4-32 19.2-38.4 32-19.2 25.6 12.8 19.2 32v19.2l-32 70.4-19.2 121.6-19.2 83.2h6.4l12.8-12.8 44.8-57.6 70.4-89.6 32-32 38.4-38.4 25.6-19.2h44.8l32 51.2-12.8 51.2-51.2 57.6-38.4 51.2-51.2 70.4-38.4 57.6v6.4h6.4l121.6-25.6 64-12.8 76.8-12.8 38.4 19.2 6.4 19.2-12.8 32-83.2 19.2-96 19.2-147.2 32 64 6.4h96l128 6.4 32 19.2 25.6 38.4-6.4 19.2-51.2 25.6-70.4-12.8-160-38.4-57.6-12.8h-6.4v6.4l44.8 44.8 83.2 76.8 108.8 102.4 6.4 25.6-12.8 19.2h-12.8l-96-70.4-38.4-32-83.2-70.4h-6.4v6.4l19.2 25.6 102.4 147.2 6.4 44.8-6.4 12.8-25.6 6.4-25.6-6.4-57.6-83.2-64-83.2-51.2-83.2-6.4 6.4-25.6 307.2-12.8 12.8-32 12.8-25.6-19.2-12.8-32 12.8-64 19.2-83.2 12.8-64 12.8-83.2 6.4-25.6h-6.4l-64 83.2-96 128-70.4 76.8-19.2 6.4-32-12.8v-25.6l19.2-25.6 102.4-128 64-83.2 38.4-51.2v-6.4l-268.8 172.8-51.2 12.8-19.2-19.2v-32l12.8-12.8 76.8-57.6z m0 0" fill="#D97757" p-id="1571"></path></svg>'},{match:/gpt|o1|o3|o4/i,name:"OpenAI",color:"#00000",svg:'<svg t="1771495569354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2752" width="200" height="200"><path d="M565.265178 954.519092c-22.289934 0-48.400999-8.151747-67.952455-14.838727a103.425292 103.425292 0 0 1-26.875292-11.272338c-12.737105-7.769634-15.411897-8.342804-19.806198-24.773669 21.971506-5.158528 81.581157-41.905075 103.871091-55.342721 148.896757-89.159735 119.028246-10.444426 119.028246-364.981743 15.029784 3.566389 82.791182 32.415932 82.791182 57.316972 0 133.102747 20.570425 273.847757-52.604243 354.91943-22.799418 25.47421-91.834527 58.972796-138.388646 58.972796z m-433.061569-299.321966c258.626916 136.860193 184.369594 157.048504 357.721593 52.094759 44.579867-27.193719 90.433445-49.292596 132.593263-77.568969v101.896839c-95.528287 22.226248-272.319304 227.038896-419.050754 100.686815l-25.856323-25.155782c-37.319718-43.943012-45.344094-72.410442-45.344094-151.889977z m375.744596-19.105658c-19.933569-13.310275-79.479535-51.330533-101.896839-57.316972v-133.739602a1158.312326 1158.312326 0 0 0 101.896839-57.316973c43.943012 10.189684 70.690933 47.063603 114.633945 57.316973v127.371049c-17.831947 12.10025-95.846715 58.718054-114.633945 63.749211z m-426.693016-178.31947c0-63.685525-4.26693-90.306074 38.84817-145.776166 23.945757-30.88748 47.509402-39.612396 82.090641-57.953828v261.110652c44.134069 23.372588 83.873836 49.037854 129.345301 74.448379l131.765351 78.396881c-59.545966 15.921381-63.685525 61.32916-109.602788 33.753328-104.699003-62.730242-272.38299-129.345301-272.38299-243.91556z m866.123138 127.37105c0 79.543221-47.573087 161.188063-121.002497 178.31947v-165.582365c0-82.791182 9.743885-84.574377-48.910483-116.608196L565.265178 362.371082c15.79401-23.62733 22.608361-19.105657 48.146256-34.835982 41.714019-25.47421 39.039227-16.112438 117.053995 28.785857 94.190891 54.196382 216.849212 100.559444 216.849212 228.885777z m-541.326961-197.425127v-95.528287c43.751956-23.181531 90.688187-50.94842 133.357489-76.804743 82.154327-49.547338 95.528287-63.303412 185.006449-63.303412 48.464684 0 102.533695 36.746548 125.651541 65.405034 42.223503 52.22213 39.930824 92.662439 39.930824 151.125751-31.078536-16.494551-192.393971-121.002497-222.899337-121.002498s-229.650003 123.422547-261.110652 140.108155z m-50.94842 159.213812c-16.36718-10.95391-63.112355-39.99451-82.791183-44.579867 0-168.320842-33.880699-314.606493 67.952455-390.519639 56.043262-41.714019 113.169178-53.814269 181.376375-30.696423 25.47421 8.661231 35.536523 20.888852 56.36169 26.429493-11.781822 16.048752-80.68956 50.311565-102.278953 63.303412-154.564769 93.235608-120.620384 7.451206-120.620384 376.063024z m-292.953415 121.002498c0 169.148754 115.143429 280.853165 274.293556 273.847756 59.800708-2.674792 26.811606-7.705949 69.417222 25.47421 97.820966 76.741057 228.822091 73.747838 319.637649 1.018969a251.939936 251.939936 0 0 0 52.604244-55.661149c58.20857-85.274918-10.95391-45.598836 81.96327-83.619094 130.236898-53.241099 199.399378-217.358696 128.64476-355.428914-27.448461-53.559526-40.249252-28.849543-28.276373-104.699003 18.723544-118.582447-63.176041-230.032116-157.621674-269.771884-98.90362-41.586648-129.090559 12.737105-178.892639-37.574459A161.888604 161.888604 0 0 0 580.103905 28.913674C474.003821-27.766443 331.284559 1.528898 258.428319 93.681853c-81.326415 102.979494 9.489143 54.705866-92.407697 98.648878C15.149614 257.353652-33.251385 439.175825 41.579107 561.06992c56.807488 92.598753 20.570425 4.967471 20.570424 106.800625z" fill="#EFA474" p-id="2753"></path></svg>'},{match:/gemini/i,name:"Gemini",color:"#000000",svg:'<svg t="1771495622863" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4556" width="200" height="200"><path d="M960 512.896A477.248 477.248 0 0 0 512.896 960h-1.792A477.184 477.184 0 0 0 64 512.896v-1.792A477.184 477.184 0 0 0 511.104 64h1.792A477.248 477.248 0 0 0 960 511.104z" fill="#448AFF" p-id="4557"></path></svg>'},{match:/qwen/i,name:"Qwen",color:"#00000",svg:'<svg t="1771495640319" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5634" width="200" height="200"><path d="M537.782857 57.161143c16.749714 29.44 33.426286 58.953143 50.102857 88.502857a7.68 7.68 0 0 0 6.692572 3.913143h236.873143c7.424 0 13.750857 4.681143 19.017142 13.933714l62.061715 109.677714c8.082286 14.372571 10.24 20.370286 1.024 35.693715a2262.893714 2262.893714 0 0 0-32.438857 55.478857l-15.652572 28.086857c-4.534857 8.338286-9.508571 11.922286-1.718857 21.833143l113.152 197.851428c7.314286 12.8 4.754286 21.065143-1.828571 32.841143-18.651429 33.499429-37.632 66.742857-56.978286 99.84-6.765714 11.593143-14.994286 16.018286-29.001143 15.798857a1833.398857 1833.398857 0 0 0-99.291429 0.658286 4.242286 4.242286 0 0 0-3.437714 2.157714 24571.830857 24571.830857 0 0 1-115.419428 202.24c-7.204571 12.507429-16.201143 15.469714-30.939429 15.506286-42.532571 0.146286-85.430857 0.182857-128.731429 0.109714a22.930286 22.930286 0 0 1-19.821714-11.556571l-56.978286-99.108571a3.84 3.84 0 0 0-3.547428-2.121143h-218.331429a76.288 76.288 0 0 1-34.377143-3.913143l-68.388571-118.198857a23.149714 23.149714 0 0 1-0.073143-23.04l51.492572-90.441143a8.448 8.448 0 0 0 0-8.411429 23594.496 23594.496 0 0 1-80.018286-139.593143L47.542857 425.325714c-6.838857-13.202286-7.387429-21.138286 4.022857-41.179428 19.858286-34.669714 39.570286-69.302857 59.209143-103.936 5.632-9.984 12.946286-14.262857 24.905143-14.262857 36.827429-0.182857 73.654857-0.182857 110.445714-0.073143 1.901714 0 3.657143-1.024 4.571429-2.669715l119.734857-208.859428a20.845714 20.845714 0 0 1 17.993143-10.496c22.381714-0.036571 44.946286 0 67.547428-0.256l43.410286-0.987429c14.555429-0.109714 30.866286 1.389714 38.4 14.518857z m-146.432 17.188571a2.56 2.56 0 0 0-2.194286 1.28l-122.331428 213.942857a6.692571 6.692571 0 0 1-5.741714 3.364572H138.788571c-2.377143 0-2.962286 1.060571-1.755428 3.145143l247.917714 433.334857c1.060571 1.792 0.548571 2.633143-1.462857 2.669714l-119.222857 0.658286a9.289143 9.289143 0 0 0-8.557714 4.937143l-56.32 98.56c-1.865143 3.328-0.914286 5.046857 2.925714 5.046857l243.858286 0.365714c1.974857 0 3.401143 0.841143 4.425142 2.56l59.867429 104.704c1.974857 3.474286 3.913143 3.510857 5.924571 0l213.577143-373.76 33.426286-58.953143a2.340571 2.340571 0 0 1 4.096 0l60.745143 107.958857a5.193143 5.193143 0 0 0 4.571428 2.633143l117.906286-0.841143a1.718857 1.718857 0 0 0 1.462857-2.56l-123.721143-217.014857a4.608 4.608 0 0 1 0-4.827428l12.507429-21.613715 47.798857-84.370285c1.024-1.755429 0.512-2.633143-1.499428-2.633143H392.521143c-2.486857 0-3.108571-1.097143-1.828572-3.291429l61.184-106.861714a4.571429 4.571429 0 0 0 0-4.864l-58.258285-102.253714a2.56 2.56 0 0 0-2.267429-1.316572z m268.361143 342.198857c1.974857 0 2.486857 0.841143 1.462857 2.56l-35.474286 62.500572-111.542857 195.620571a2.377143 2.377143 0 0 1-2.121143 1.243429 2.486857 2.486857 0 0 1-2.121142-1.243429l-147.346286-257.353143c-0.841143-1.462857-0.402286-2.230857 1.206857-2.304l9.216-0.512 286.793143-0.512h-0.073143z" fill="#7D5DED" p-id="5635"></path></svg>'},{match:/kimi|moonshot/i,name:"Kimi",color:"#00000",svg:'<svg t="1771495664798" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6649" width="200" height="200"><path d="M731.062857 590.262857v318.317714h-148.589714V443.977143a146.285714 146.285714 0 0 1-146.285714 146.285714l-214.491429-0.036571v318.354285H73.142857V165.814857h148.553143v275.858286h180.882286l119.771428-275.858286h167.753143l-67.84 156.269714a255.524571 255.524571 0 0 1-106.678857 119.588572h66.925714a148.553143 148.553143 0 0 1 148.516572 148.589714z m120.758857-473.965714a99.035429 99.035429 0 0 1 0 198.070857h-99.035428V215.332571a99.035429 99.035429 0 0 1 99.035428-99.035428z" fill="#F4F4F4" p-id="6650"></path></svg>'},{match:/glm|chatglm/i,name:"GLM",color:"#00000",svg:'<svg data-name="glm" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 217.2 200"> <!-- Generator: Adobe Illustrator 29.8.2, SVG Export Plug-In . SVG Version: 2.1.1 Build 3) --> <defs> <style> .st0 { fill: #fff; } </style> </defs> <path class="st0" d="M86.8,190.4H0L131.3,4.8h85.8L86.8,190.4h0ZM212.8,190h-107.9l14.9-21.6c2.3-3.3,6-5.2,9.9-5.2h83.1v26.8h0ZM99.4,26.3c-2.3,3.3-6,5.2-9.9,5.2H6.4V4.8h107.9l-14.9,21.6Z"/> </svg>'},{match:/minimax|abab/i,name:"MiniMax",color:"#00000",svg:'<svg viewBox="0 0 24 24" fill="#fff"><path d="M4 8l4-4 4 4 4-4 4 4v8l-4 4-4-4-4 4-4-4z" fill="none" stroke="#fff" stroke-width="1.5" stroke-linejoin="round"/></svg>'},{match:/deepseek/i,name:"DeepSeek",color:"#00000",svg:'<svg t="1771495947541" class="icon" viewBox="0 0 1391 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11539" width="200" height="200"><path d="M1326.70201318 112.02090779c-12.94676356-6.47485468-18.53640721 5.86654827-26.0997327 12.13814316-2.57756953 2.02376031-4.77807747 4.65435413-6.9785854 7.08168819-18.91788751 20.63528526-41.02017805 34.19182812-69.92725218 32.57311444-42.23384508-2.42733405-78.29772513 11.12773591-110.16384908 44.10589703-6.77679853-40.66668282-29.28560862-64.94444203-63.55255448-80.52327231-17.95608583-8.09209545-36.06388005-16.1856638-48.63358202-33.78825438-8.74900746-12.5431898-11.12773591-26.50330641-15.52727888-40.26016327-2.7823022-8.29535522-5.56460442-16.79249731-14.92044538-18.20942411-10.19244639-1.61871367-14.16337637 7.08168818-18.15934561 14.36516325-15.93232553 29.74073376-22.12880269 62.51710799-21.49692994 95.69705596 1.36684831 74.65672404 32.27117059 134.13819156 93.62469006 176.42358804 6.9800583 4.8546681 8.77551959 9.71080912 6.57501165 16.79102439-4.17271686 14.56695011-9.18056624 28.7303265-13.55506995 43.29727663-2.78377509 9.30723537-6.95501906 11.32952278-16.74241882 7.28347507-33.66158524-14.36516325-62.745407-35.60875491-88.46513227-61.30196806-43.62425973-43.09548975-83.0772755-90.64060097-132.26613965-127.86659667a581.67054343 581.67054343 0 0 0-35.07703915-24.48101901c-50.20074429-49.77065841 6.57501167-90.63912807 19.72650789-95.49526908 13.73181759-5.05792788 4.77955037-22.4572587-39.65480265-22.25547181s-85.07599655 15.3770434-136.87041526 35.60875491c-7.58541892 3.03416756-15.55379103 5.25971475-23.69596499 7.08168819-47.03990759-9.10544849-95.84876434-11.12773591-146.8596019-5.26118765-96.02551195 10.92594905-172.73103555 57.25739323-229.12678412 136.36373875-67.72674425 95.09022244-83.68558192 203.13015422-64.13582165 315.82149435 20.48504978 118.76262107 79.88992666 217.09027084 171.13736114 293.97106918 94.6350973 79.71317902 203.61031862 118.76262107 327.93607117 111.27735913 75.51542292-4.45256725 159.57953934-14.77020989 254.41642354-96.71040901 23.92426399 12.13961607 49.03715574 16.99575708 90.66564019 20.63675815 32.09295007 3.03416756 62.97223311-1.61871367 86.87145788-6.67664152 37.45429471-8.09209545 34.84874013-43.49906349 21.31870939-49.97244528-109.7838417-52.19946535-85.68283009-30.95587367-107.58333373-48.15194474 55.78891504-67.37324899 139.85303146-137.3770918 172.73103555-364.17669887 2.60408167-18.00616433 0.40357375-29.33568711 0-43.90263724-0.20325977-8.90218873 1.76894914-12.34287584 11.75960867-13.35328309 27.49014733-3.23742733 54.19671351-10.92594905 78.70277179-24.68280588 71.11440706-39.65480265 99.81822142-104.80250446 106.59649284-182.89844271 1.01188015-11.9363563-0.20178686-24.27775924-12.56970195-30.54935413M706.87018452 814.87993343c-106.36966673-85.37941333-157.98733782-113.5014334-179.30604722-112.28776638-19.92829476 1.21366703-16.33737217 24.48101902-11.96286844 39.65480264 4.5777635 14.97199677 10.57098089 25.2896394 18.94145384 38.44113563 5.76786417 8.70040186 9.76383341 21.64863831-5.78995762 31.35944742-34.26841876 21.64863831-93.82647692-7.28347506-96.60730623-8.69892897-69.3454579-41.67856295-127.33635378-96.710409-168.1797842-171.97249368-39.45154288-72.43117687-62.33888747-150.1220685-66.13306983-233.07267483-1.01188015-20.02992464 4.77955037-27.11161282 24.27923214-30.75408682a235.19659216 235.19659216 0 0 1 77.91771774-2.02228741c108.59668681 16.18713669 201.05631542 65.75453531 278.54394728 144.25552022 44.23256614 44.71125762 77.69089163 98.12439001 112.1861365 150.32385536 36.64567431 55.43394691 76.0986901 108.24024576 126.29943438 151.53604947 17.72778682 15.17378365 31.86465106 26.7065662 45.41972102 35.20370829-40.84343042 4.65435413-108.99878765 5.66476139-155.60860936-31.96628094m51.00936468-334.83953883c0-8.90218873 6.9815312-15.98387693 15.75557791-15.98387693q2.98408908 0.05155138 5.36134463 1.01188017a15.85720779 15.85720779 0 0 1 10.16740714 14.97199676 15.78061715 15.78061715 0 0 1-15.73053865 15.98387691 15.60386953 15.60386953 0 0 1-15.55379103-15.98387691m158.39238446 82.95060635c-10.1423679 4.24930749-20.30830215 7.89178146-30.09570191 8.29535522-15.12370514 0.81009328-31.66286419-5.46150162-40.61513142-13.15002332-13.96011661-11.93782919-23.92573689-18.61447073-28.09845373-39.45301577-1.79546129-8.90218873-0.81009328-22.65904557 0.78505403-30.54935414 3.59092258-16.99575708-0.40504665-27.92023321-12.13961606-37.8343021-9.55910075-8.09356835-21.72522894-10.31911553-35.07703915-10.31911552-4.98281013 0-9.55910075-2.22407429-12.94823645-4.04604774a13.27669246 13.27669246 0 0 1-5.76639128-18.61299783c1.39041466-2.8323807 8.16868608-9.71228202 9.7623605-10.92594905 18.13136058-10.52090241 39.04649623-7.08021529 58.36795748 0.81009328 17.93104659 7.48526194 31.46107731 21.24359167 51.01083757 40.6666828 19.92829476 23.46913885 23.51921733 29.94399353 34.84874013 47.54511123 8.97877936 13.75685685 17.14746545 27.92023321 22.71206987 44.10442409 3.41270206 10.11732865-0.98684091 18.41121097-12.74644958 23.46913885" fill="#4D6BFE" p-id="11540"></path></svg>'}];function w_e(t){if(!t)return null;for(const e of Q_e)if(e.match.test(t))return{name:t.replace(/^claude-/,"").replace(/-\d{8,}$/,""),provider:e.name,color:e.color,svg:e.svg};return{name:t,provider:t,color:"#065f46",svg:null}}function jz(t){return t==="user"?'<svg viewBox="0 0 24 24"><path d="M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"/></svg>':t==="agent"?'<svg viewBox="0 0 24 24"><path d="M12 2a2 2 0 012 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 017 7h1a1 1 0 011 1v3a1 1 0 01-1 1h-1.17A7 7 0 0113 22h-2a7 7 0 01-6.83-3H3a1 1 0 01-1-1v-3a1 1 0 011-1h1a7 7 0 017-7h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 012-2zM9.5 13a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm5 0a1.5 1.5 0 100 3 1.5 1.5 0 000-3z"/></svg>':t==="sub-search"||t==="sub-explore"?'<svg viewBox="0 0 1024 1024"><path d="M128.957606 76.608479v495.401496c0 20.428928-17.875312 38.304239-38.304239 38.304239S52.349127 592.438903 52.349127 572.009975V38.304239c0-20.428928 17.875312-38.304239 38.30424-38.304239h426.453865c20.428928 0 38.304239 17.875312 38.304239 38.304239s-17.875312 38.304239-38.304239 38.30424H128.957606z m127.680798 127.680798v495.401496c0 20.428928-17.875312 38.304239-38.304239 38.304239S180.029925 720.119701 180.029925 699.690773V165.985037c0-20.428928 17.875312-38.304239 38.30424-38.304239h426.453865c20.428928 0 38.304239 17.875312 38.304239 38.304239s-17.875312 38.304239-38.304239 38.30424H256.638404z m579.670823 291.112219v-150.663341H399.640898v515.830424h76.608479c0 38.304239 30.643392 68.947631 43.411471 89.376558h-145.55611c-33.197007 0-61.286783-28.089776-61.286783-63.840399V321.755611c0-35.750623 28.089776-63.840399 61.286783-63.840399h490.294264c33.197007 0 61.286783 28.089776 61.286784 63.840399V564.349127c-20.428928-22.982544-58.733167-56.179551-89.376559-68.947631zM486.46384 411.13217h255.361596c15.321696 0 25.53616 10.214464 25.53616 25.536159s-10.214464 25.53616-25.53616 25.53616H486.46384c-15.321696 0-25.53616-10.214464-25.536159-25.53616s10.214464-25.53616 25.536159-25.536159z m0 102.144638h102.144639c15.321696 0 25.53616 10.214464 25.536159 25.53616s-10.214464 25.53616-25.536159 25.536159h-102.144639c-15.321696 0-25.53616-10.214464-25.536159-25.536159s10.214464-25.53616 25.536159-25.53616z m503.062345 492.84788c-2.553616 2.553616-7.660848 10.214464-12.76808 10.214464-10.214464 10.214464-35.750623 10.214464-45.965088 0l-81.71571-71.501247c-28.089776 17.875312-63.840399 28.089776-99.591023 28.089776-102.144638 0-186.413965-84.269327-186.413965-186.413965s84.269327-186.413965 186.413965-186.413965 186.413965 84.269327 186.413965 186.413965c0 38.304239-10.214464 71.501247-30.643391 99.591022l81.715711 71.501247c12.76808 12.76808 12.76808 35.750623 2.553616 48.518703z m-240.039901-324.309227c-58.733167 0-104.698254 48.518703-104.698254 104.698255 0 58.733167 48.518703 104.698254 104.698254 104.698254s104.698254-48.518703 104.698255-104.698254c2.553616-58.733167-45.965087-104.698254-104.698255-104.698255z" fill="#ffffff"/></svg>':t==="sub-plan"?'<svg viewBox="0 0 1024 1024"><path d="M674.507676 598.338391 287.079856 598.338391c-14.136975 0-25.638937 11.499915-25.638937 25.63689 0 14.137998 11.501962 25.640983 25.638937 25.640983l387.42782 0c14.137998 0 25.640983-11.501962 25.640983-25.640983C700.148659 609.838306 688.646698 598.338391 674.507676 598.338391zM794.746154 384.583029c-14.137998 0-25.640983 11.501962-25.640983 25.63996l0 494.299873c0 0.130983 0 0.280386-0.001023 0.433882-0.899486 0.279363-2.665713 0.644683-5.764284 0.644683L200.047664 905.601426c-4.312212 0-7.564279-2.971681-7.564279-6.913457L192.483384 191.851493c0-4.493338 0.974188-8.28878 1.811252-9.821693l373.337917 0c14.136975 0 25.63996-11.501962 25.63996-25.63996 0-14.136975-11.501962-25.638937-25.63996-25.638937l-374.069581 0c-30.336936 0-52.357462 25.696242-52.357462 61.099566l0 706.836477c0 32.086789 26.396183 58.19133 58.84113 58.19133l563.293223 0c34.119075 0 57.042157-21.041222 57.042157-52.356438L820.382021 410.224012C820.383044 396.086014 808.883129 384.583029 794.746154 384.583029zM674.507676 745.295394 287.079856 745.295394c-14.136975 0-25.638937 11.499915-25.638937 25.63689 0 14.137998 11.501962 25.640983 25.638937 25.640983l387.42782 0c14.137998 0 25.640983-11.501962 25.640983-25.640983C700.148659 756.795309 688.646698 745.295394 674.507676 745.295394zM879.595634 157.107177c-3.77293-14.409175-12.871145-28.250414-24.964578-37.975916l-43.827181-35.240619c-12.880355-10.352789-29.27679-16.290011-44.986587-16.290011-16.876366 0-31.594579 6.747681-41.439808 18.995633l-19.624966 24.381293c-6.380314 7.968485-7.987928 17.577331-5.222955 26.916023l-114.241904 142.063553-2.486634 3.090385-22.812565 85.303828c-9.749038 30.859845 4.449335 48.075949 13.806447 55.608505 6.783497 5.450129 14.468526 8.728802 22.851451 9.754155 0.984421 0.246617 2.125407 0.488117 3.440355 0.632403 1.003863 0.110517 2.053776 0.167822 3.118014 0.167822l0.014326 0c4.588505 0 10.047844-0.9967 17.180288-3.13541l2.877537-1.065262 83.402525-41.897226 119.874181-149.07934c0.440022 0.017396 0.880043 0.032746 1.320065 0.032746 9.218966 0 17.411555-3.862981 23.077601-10.892071l19.562545-24.342408C880.924909 191.1976 884.15037 174.495196 879.595634 157.107177zM674.469813 348.564697l-56.738235 28.537963c-2.958378 0.579191-5.734608 1.684362-8.277524 3.296069-0.313132 0.198521-0.615007 0.385786-0.905626 0.562818 0.12382-0.318248 0.25378-0.639566 0.39295-0.971118 0.99977-2.437515 1.588171-5.022387 1.753947-7.702426l17.732873-66.078974 105.73209-131.488707 48.647977 39.113833L674.469813 348.564697zM831.385633 172.919305l-7.679913 9.550517-68.139913-54.779627 7.687076-9.56382c0.291642-0.132006 1.144056-0.38374 2.604314-0.38374 4.28356 0 9.735735 2.071172 13.570063 5.15644l43.832298 35.245735c3.493567 2.805906 6.421246 7.018857 7.642051 10.993378C831.497173 171.081447 831.492056 172.446537 831.385633 172.919305zM487.474932 291.067168l-200.394053 0c-14.136975 0-25.638937 11.501962-25.638937 25.63996 0 14.136975 11.501962 25.637913 25.638937 25.637913l200.394053 0c14.137998 0 25.63996-11.500938 25.63996-25.637913C513.114892 302.56913 501.611907 291.067168 487.474932 291.067168zM674.507676 438.023148 287.079856 438.023148c-14.136975 0-25.638937 11.500938-25.638937 25.638937s11.501962 25.638937 25.638937 25.638937l387.42782 0c14.137998 0 25.640983-11.501962 25.640983-25.638937S688.646698 438.023148 674.507676 438.023148z" fill="#ffffff"/></svg>':t==="teammate"?'<svg viewBox="0 0 24 24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z" fill="#ffffff"/></svg>':'<svg viewBox="0 0 1024 1024"><path d="M810.666667 384l53.333333-117.333333L981.333333 213.333333l-117.333333-53.333333L810.666667 42.666667l-53.333334 117.333333L640 213.333333l117.333333 53.333334L810.666667 384zM810.666667 640l-53.333334 117.333333L640 810.666667l117.333333 53.333333L810.666667 981.333333l53.333333-117.333333L981.333333 810.666667l-117.333333-53.333334L810.666667 640zM490.666667 405.333333L384 170.666667 277.333333 405.333333 42.666667 512l234.666666 106.666667L384 853.333333l106.666667-234.666666L725.333333 512l-234.666666-106.666667z m-64.426667 148.906667L384 647.253333l-42.24-93.013333L248.746667 512l93.013333-42.24L384 376.746667l42.24 93.013333 93.013333 42.24-93.013333 42.24z" fill="#ffffff"/></svg>'}function $i(t){return t==null||t===0?"0":t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":String(t)}function Tu(t){if(Array.isArray(t))return t.map(Tu);if(t&&typeof t=="object"){const e={};for(const n of Object.keys(t))n.startsWith("_")||(e[n]=Tu(t[n]));return e}return t}function PB(t){var n,i,r;const e={};for(const s of t){const o=(i=(n=s.response)==null?void 0:n.body)==null?void 0:i.usage;if(!o)continue;const a=((r=s.body)==null?void 0:r.model)||"unknown";e[a]||(e[a]={input:0,output:0,cacheCreation:0,cacheRead:0});const l=e[a];l.input+=o.input_tokens||0,l.output+=o.output_tokens||0,l.cacheCreation+=o.cache_creation_input_tokens||0,l.cacheRead+=o.cache_read_input_tokens||0}return e}function CB(t){var i,r,s;const e={ttl:{count:0,cacheCreate:0},system_change:{count:0,cacheCreate:0},tools_change:{count:0,cacheCreate:0},model_change:{count:0,cacheCreate:0},msg_truncated:{count:0,cacheCreate:0},msg_modified:{count:0,cacheCreate:0},key_change:{count:0,cacheCreate:0}},n=__e(t);for(const[o,a]of n){const l=((s=(r=(i=t[o].response)==null?void 0:i.body)==null?void 0:r.usage)==null?void 0:s.cache_creation_input_tokens)||0,c=a.reasons||[a.reason];for(const u of c)e[u]&&(e[u].count++,e[u].cacheCreate+=l)}return e}function TB(t){var n,i;const e={};for(const r of t){const s=(i=(n=r.response)==null?void 0:n.body)==null?void 0:i.content;if(Array.isArray(s))for(const o of s)o.type==="tool_use"&&o.name&&(e[o.name]=(e[o.name]||0)+1)}return Object.entries(e).sort((r,s)=>s[1]-r[1])}function kB(t){var n;const e={};for(const i of t){const r=(n=i.body)==null?void 0:n.messages;if(Array.isArray(r))for(const s of r){if(s.role!=="user")continue;const o=s.content;if(Array.isArray(o))for(const a of o){if(a.type!=="text"||!vC(a.text))continue;const l=a.text.match(/^#\s+(.+)$/m),c=l?l[1]:"Skill";e[c]=(e[c]||0)+1}}}return Object.entries(e).sort((i,r)=>r[1]-i[1])}function y1(t){return typeof t!="string"?!1:t.includes("<system-reminder>")&&t.includes("# claudeMd")}function _1(t){return typeof t!="string"?!1:t.includes("<system-reminder>")&&t.includes("skills are available")}function P_e(t){const e=t==null?void 0:t.messages;if(!Array.isArray(e))return!1;for(const n of e){const i=n==null?void 0:n.content;if(typeof i=="string"){if(y1(i))return!0}else if(Array.isArray(i)){for(const r of i)if(r.type==="text"&&y1(r.text))return!0}}return!1}function C_e(t){const e=t==null?void 0:t.messages;if(!Array.isArray(e))return!1;for(const n of e){const i=n==null?void 0:n.content;if(typeof i=="string"){if(_1(i))return!0}else if(Array.isArray(i)){for(const r of i)if(r.type==="text"&&_1(r.text))return!0}}return!1}function T_e(t){return t?t.replace(/^claude-/,"").replace(/-\d{8,}$/,""):null}function k_e(t){if(!t)return!1;const e=t.url||"";return!(t.isHeartbeat||t.isCountTokens||/\/api\/eval\/sdk-/.test(e)||/\/messages\/count_tokens/.test(e)||t.inProgress===!0||t.response&&t.response.status===0)}function la(t){return t.filter(k_e)}function Mz(t,e){for(let n=e-1;n>=0;n--)if(Cr(t[n])&&t[n].timestamp)return t[n].timestamp;return null}function RB(t){var s,o,a,l;if(!Array.isArray(t)||t.length===0)return null;let e=null;if(t.length===1)e=t[0];else{let c=null,u=null;for(let d=t.length-1;d>=0;d--)if(Cr(t[d])&&(c||(c=t[d]),(o=(s=t[d].response)==null?void 0:s.body)!=null&&o.usage)){u=t[d];break}e=u||c}if(!e||!e.body)return null;const n=e.body,i=(l=(a=e.response)==null?void 0:a.body)==null?void 0:l.usage,r={system:[],messages:[],tools:[],cacheCreateTokens:(i==null?void 0:i.cache_creation_input_tokens)||0,cacheReadTokens:(i==null?void 0:i.cache_read_input_tokens)||0};if(Array.isArray(n.system)){let c=-1;for(let u=n.system.length-1;u>=0;u--)if(n.system[u].cache_control){c=u;break}if(c>=0)for(let u=0;u<=c;u++){const d=n.system[u];d.type==="text"&&d.text&&r.system.push(d.text)}}if(Array.isArray(n.messages)){let c=-1;for(let u=n.messages.length-1;u>=0;u--){const d=n.messages[u].content;if(Array.isArray(d)){for(const h of d)if(h.cache_control){c=u;break}if(c>=0)break}}if(c>=0)for(let u=0;u<=c;u++){const d=n.messages[u],h=d.content;if(typeof h=="string")r.messages.push(`[${d.role}] ${h}`);else if(Array.isArray(h)){for(const p of h)if(p.type==="text"&&p.text)r.messages.push(`[${d.role}] ${p.text}`);else if(p.type==="tool_result"){const g=wB(p);g&&r.messages.push(`[tool_result: ${p.tool_use_id}] ${g}`)}}}}if(Array.isArray(n.tools)&&n.tools.some(u=>u.cache_control))for(const u of n.tools){const d=`${u.name}: ${u.description||""}`;r.tools.push(d)}return r}function Pk(t){const e=t==null?void 0:t.content;if(typeof e=="string")return e;if(Array.isArray(e)){for(const n of e)if((n==null?void 0:n.type)==="text"&&n.text)return n.text}return""}function R_e(t){const e=t.body||{},n=Xm(e);if(/Extract any file paths/i.test(n)||/process Bash commands/i.test(n)||/command execution specialist/i.test(n))return"Bash";if(/file search specialist/i.test(n))return"Search";if(/planning specialist/i.test(n))return"Plan";if(/general-purpose agent/i.test(n))return"General";const i=e.messages||[];for(let r=i.length-1;r>=0;r--){if(i[r].role!=="user")continue;const s=Pk(i[r]);if(/^Command:/m.test(s))return"Bash";break}return null}function E_e(t){var i;const e=(i=t.body)==null?void 0:i.messages;if(!Array.isArray(e)||e.length!==1)return!1;const n=e[0];return n.role==="user"&&n.content==="count"}function X_e(t,e){var l;const n=t.body||{},i=n.tools,r=n.messages||[];if(Array.isArray(i)&&i.length>0||r.length!==1||r[0].role!=="user")return!1;const s=Pk(r[0]);if(!s||s.trim()==="count")return!1;const o=s.trim();if(/^Command:/m.test(s)||/^<policy_spec>/i.test(o)||/^<task-notification>/i.test(o))return!1;const a=Xm(n);if(!a.includes("Claude Code")||/process Bash commands/i.test(a)||/Extract any file paths/i.test(a))return!1;if(e){const c=((l=e.body)==null?void 0:l.messages)||[],u=s.slice(0,80);if(c.some(h=>{const p=h==null?void 0:h.content;return typeof p=="string"?p.includes(u):Array.isArray(p)?p.some(g=>(g==null?void 0:g.type)==="text"&&g.text&&g.text.includes(u)):!1}))return!0}return!1}function Nu(t,e){var i;if(xB(t))return t.teammate?{type:"Teammate",subType:t.teammate}:(t._cachedTeammateName===void 0&&(t._cachedTeammateName=b_e(t.body)||null),{type:"Teammate",subType:t._cachedTeammateName});if(Cr(t))return{type:"MainAgent",subType:null};if(t.isCountTokens||E_e(t))return{type:"Count",subType:null};if(X_e(t,e)){const r=Pk((((i=t.body)==null?void 0:i.messages)||[])[0]);return/Implement the following plan:/i.test(r.trim())?{type:"Plan",subType:"Prompt"}:{type:"Preflight",subType:null}}return{type:"SubAgent",subType:R_e(t)}}function $C(t,e){return t==="Teammate"&&e?`Teammate:${e}`:t==="Plan"&&e?`Plan:${e}`:t==="SubAgent"&&e?`SubAgent:${e}`:t}function z_e(t,e){const n=t||"X";if(!e)return`Teammate: ${n}`;const i=e.replace(/^claude-/i,"").replace(/-\d{8}$/,"");return`Teammate: ${n}(${i})`}function Ck(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sh=Ck();function EB(t){sh=t}var vd={exec:()=>null};function ri(t,e=""){let n=typeof t=="string"?t:t.source,i={replace:(r,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(io.caret,"$1"),n=n.replace(r,o),i},getRegex:()=>new RegExp(n,e)};return i}var j_e=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),io={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},M_e=/^(?:[ \t]*(?:\n|$))+/,N_e=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,I_e=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Cg=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,A_e=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Tk=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,XB=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zB=ri(XB).replace(/bull/g,Tk).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),L_e=ri(XB).replace(/bull/g,Tk).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),kk=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,W_e=/^[^\n]+/,Rk=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,V_e=ri(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Rk).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),B_e=ri(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Tk).getRegex(),Ob="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ek=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Y_e=ri("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ek).replace("tag",Ob).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jB=ri(kk).replace("hr",Cg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ob).getRegex(),U_e=ri(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",jB).getRegex(),Xk={blockquote:U_e,code:N_e,def:V_e,fences:I_e,heading:A_e,hr:Cg,html:Y_e,lheading:zB,list:B_e,newline:M_e,paragraph:jB,table:vd,text:W_e},Nz=ri("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Cg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ob).getRegex(),D_e={...Xk,lheading:L_e,table:Nz,paragraph:ri(kk).replace("hr",Cg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nz).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ob).getRegex()},q_e={...Xk,html:ri(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ek).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:vd,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ri(kk).replace("hr",Cg).replace("heading",` *#{1,6} *[^
566
+ `):JSON.stringify(t.content):String(t.content??"")}const Q_e=[{match:/claude/i,name:"Claude",color:"#000000",svg:'<svg t="1771495509570" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1570" width="200" height="200"><path d="M198.4 678.4l198.4-115.2 6.4-12.8H243.2l-96-6.4-102.4-6.4-19.2-6.4-25.6-25.6v-12.8l19.2-12.8h32l64 6.4 96 6.4 70.4 6.4L384 512h19.2V492.8l-6.4-6.4-102.4-64-108.8-76.8-51.2-38.4-32-19.2-19.2-25.6-6.4-38.4 32-32h44.8l38.4 32 83.2 64L384 364.8l12.8 12.8 6.4-6.4-6.4-12.8L339.2 256l-64-108.8-25.6-38.4-6.4-25.6c0-12.8-6.4-19.2-6.4-32l32-44.8 19.2-6.4 44.8 6.4 19.2 12.8 25.6 57.6 44.8 96 64 128 19.2 38.4 6.4 38.4 6.4 12.8h6.4V384l6.4-70.4 12.8-89.6 12.8-115.2 6.4-32 19.2-38.4 32-19.2 25.6 12.8 19.2 32v19.2l-32 70.4-19.2 121.6-19.2 83.2h6.4l12.8-12.8 44.8-57.6 70.4-89.6 32-32 38.4-38.4 25.6-19.2h44.8l32 51.2-12.8 51.2-51.2 57.6-38.4 51.2-51.2 70.4-38.4 57.6v6.4h6.4l121.6-25.6 64-12.8 76.8-12.8 38.4 19.2 6.4 19.2-12.8 32-83.2 19.2-96 19.2-147.2 32 64 6.4h96l128 6.4 32 19.2 25.6 38.4-6.4 19.2-51.2 25.6-70.4-12.8-160-38.4-57.6-12.8h-6.4v6.4l44.8 44.8 83.2 76.8 108.8 102.4 6.4 25.6-12.8 19.2h-12.8l-96-70.4-38.4-32-83.2-70.4h-6.4v6.4l19.2 25.6 102.4 147.2 6.4 44.8-6.4 12.8-25.6 6.4-25.6-6.4-57.6-83.2-64-83.2-51.2-83.2-6.4 6.4-25.6 307.2-12.8 12.8-32 12.8-25.6-19.2-12.8-32 12.8-64 19.2-83.2 12.8-64 12.8-83.2 6.4-25.6h-6.4l-64 83.2-96 128-70.4 76.8-19.2 6.4-32-12.8v-25.6l19.2-25.6 102.4-128 64-83.2 38.4-51.2v-6.4l-268.8 172.8-51.2 12.8-19.2-19.2v-32l12.8-12.8 76.8-57.6z m0 0" fill="#D97757" p-id="1571"></path></svg>'},{match:/gpt|o1|o3|o4/i,name:"OpenAI",color:"#00000",svg:'<svg t="1771495569354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2752" width="200" height="200"><path d="M565.265178 954.519092c-22.289934 0-48.400999-8.151747-67.952455-14.838727a103.425292 103.425292 0 0 1-26.875292-11.272338c-12.737105-7.769634-15.411897-8.342804-19.806198-24.773669 21.971506-5.158528 81.581157-41.905075 103.871091-55.342721 148.896757-89.159735 119.028246-10.444426 119.028246-364.981743 15.029784 3.566389 82.791182 32.415932 82.791182 57.316972 0 133.102747 20.570425 273.847757-52.604243 354.91943-22.799418 25.47421-91.834527 58.972796-138.388646 58.972796z m-433.061569-299.321966c258.626916 136.860193 184.369594 157.048504 357.721593 52.094759 44.579867-27.193719 90.433445-49.292596 132.593263-77.568969v101.896839c-95.528287 22.226248-272.319304 227.038896-419.050754 100.686815l-25.856323-25.155782c-37.319718-43.943012-45.344094-72.410442-45.344094-151.889977z m375.744596-19.105658c-19.933569-13.310275-79.479535-51.330533-101.896839-57.316972v-133.739602a1158.312326 1158.312326 0 0 0 101.896839-57.316973c43.943012 10.189684 70.690933 47.063603 114.633945 57.316973v127.371049c-17.831947 12.10025-95.846715 58.718054-114.633945 63.749211z m-426.693016-178.31947c0-63.685525-4.26693-90.306074 38.84817-145.776166 23.945757-30.88748 47.509402-39.612396 82.090641-57.953828v261.110652c44.134069 23.372588 83.873836 49.037854 129.345301 74.448379l131.765351 78.396881c-59.545966 15.921381-63.685525 61.32916-109.602788 33.753328-104.699003-62.730242-272.38299-129.345301-272.38299-243.91556z m866.123138 127.37105c0 79.543221-47.573087 161.188063-121.002497 178.31947v-165.582365c0-82.791182 9.743885-84.574377-48.910483-116.608196L565.265178 362.371082c15.79401-23.62733 22.608361-19.105657 48.146256-34.835982 41.714019-25.47421 39.039227-16.112438 117.053995 28.785857 94.190891 54.196382 216.849212 100.559444 216.849212 228.885777z m-541.326961-197.425127v-95.528287c43.751956-23.181531 90.688187-50.94842 133.357489-76.804743 82.154327-49.547338 95.528287-63.303412 185.006449-63.303412 48.464684 0 102.533695 36.746548 125.651541 65.405034 42.223503 52.22213 39.930824 92.662439 39.930824 151.125751-31.078536-16.494551-192.393971-121.002497-222.899337-121.002498s-229.650003 123.422547-261.110652 140.108155z m-50.94842 159.213812c-16.36718-10.95391-63.112355-39.99451-82.791183-44.579867 0-168.320842-33.880699-314.606493 67.952455-390.519639 56.043262-41.714019 113.169178-53.814269 181.376375-30.696423 25.47421 8.661231 35.536523 20.888852 56.36169 26.429493-11.781822 16.048752-80.68956 50.311565-102.278953 63.303412-154.564769 93.235608-120.620384 7.451206-120.620384 376.063024z m-292.953415 121.002498c0 169.148754 115.143429 280.853165 274.293556 273.847756 59.800708-2.674792 26.811606-7.705949 69.417222 25.47421 97.820966 76.741057 228.822091 73.747838 319.637649 1.018969a251.939936 251.939936 0 0 0 52.604244-55.661149c58.20857-85.274918-10.95391-45.598836 81.96327-83.619094 130.236898-53.241099 199.399378-217.358696 128.64476-355.428914-27.448461-53.559526-40.249252-28.849543-28.276373-104.699003 18.723544-118.582447-63.176041-230.032116-157.621674-269.771884-98.90362-41.586648-129.090559 12.737105-178.892639-37.574459A161.888604 161.888604 0 0 0 580.103905 28.913674C474.003821-27.766443 331.284559 1.528898 258.428319 93.681853c-81.326415 102.979494 9.489143 54.705866-92.407697 98.648878C15.149614 257.353652-33.251385 439.175825 41.579107 561.06992c56.807488 92.598753 20.570425 4.967471 20.570424 106.800625z" fill="#EFA474" p-id="2753"></path></svg>'},{match:/gemini/i,name:"Gemini",color:"#000000",svg:'<svg t="1771495622863" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4556" width="200" height="200"><path d="M960 512.896A477.248 477.248 0 0 0 512.896 960h-1.792A477.184 477.184 0 0 0 64 512.896v-1.792A477.184 477.184 0 0 0 511.104 64h1.792A477.248 477.248 0 0 0 960 511.104z" fill="#448AFF" p-id="4557"></path></svg>'},{match:/qwen/i,name:"Qwen",color:"#00000",svg:'<svg t="1771495640319" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5634" width="200" height="200"><path d="M537.782857 57.161143c16.749714 29.44 33.426286 58.953143 50.102857 88.502857a7.68 7.68 0 0 0 6.692572 3.913143h236.873143c7.424 0 13.750857 4.681143 19.017142 13.933714l62.061715 109.677714c8.082286 14.372571 10.24 20.370286 1.024 35.693715a2262.893714 2262.893714 0 0 0-32.438857 55.478857l-15.652572 28.086857c-4.534857 8.338286-9.508571 11.922286-1.718857 21.833143l113.152 197.851428c7.314286 12.8 4.754286 21.065143-1.828571 32.841143-18.651429 33.499429-37.632 66.742857-56.978286 99.84-6.765714 11.593143-14.994286 16.018286-29.001143 15.798857a1833.398857 1833.398857 0 0 0-99.291429 0.658286 4.242286 4.242286 0 0 0-3.437714 2.157714 24571.830857 24571.830857 0 0 1-115.419428 202.24c-7.204571 12.507429-16.201143 15.469714-30.939429 15.506286-42.532571 0.146286-85.430857 0.182857-128.731429 0.109714a22.930286 22.930286 0 0 1-19.821714-11.556571l-56.978286-99.108571a3.84 3.84 0 0 0-3.547428-2.121143h-218.331429a76.288 76.288 0 0 1-34.377143-3.913143l-68.388571-118.198857a23.149714 23.149714 0 0 1-0.073143-23.04l51.492572-90.441143a8.448 8.448 0 0 0 0-8.411429 23594.496 23594.496 0 0 1-80.018286-139.593143L47.542857 425.325714c-6.838857-13.202286-7.387429-21.138286 4.022857-41.179428 19.858286-34.669714 39.570286-69.302857 59.209143-103.936 5.632-9.984 12.946286-14.262857 24.905143-14.262857 36.827429-0.182857 73.654857-0.182857 110.445714-0.073143 1.901714 0 3.657143-1.024 4.571429-2.669715l119.734857-208.859428a20.845714 20.845714 0 0 1 17.993143-10.496c22.381714-0.036571 44.946286 0 67.547428-0.256l43.410286-0.987429c14.555429-0.109714 30.866286 1.389714 38.4 14.518857z m-146.432 17.188571a2.56 2.56 0 0 0-2.194286 1.28l-122.331428 213.942857a6.692571 6.692571 0 0 1-5.741714 3.364572H138.788571c-2.377143 0-2.962286 1.060571-1.755428 3.145143l247.917714 433.334857c1.060571 1.792 0.548571 2.633143-1.462857 2.669714l-119.222857 0.658286a9.289143 9.289143 0 0 0-8.557714 4.937143l-56.32 98.56c-1.865143 3.328-0.914286 5.046857 2.925714 5.046857l243.858286 0.365714c1.974857 0 3.401143 0.841143 4.425142 2.56l59.867429 104.704c1.974857 3.474286 3.913143 3.510857 5.924571 0l213.577143-373.76 33.426286-58.953143a2.340571 2.340571 0 0 1 4.096 0l60.745143 107.958857a5.193143 5.193143 0 0 0 4.571428 2.633143l117.906286-0.841143a1.718857 1.718857 0 0 0 1.462857-2.56l-123.721143-217.014857a4.608 4.608 0 0 1 0-4.827428l12.507429-21.613715 47.798857-84.370285c1.024-1.755429 0.512-2.633143-1.499428-2.633143H392.521143c-2.486857 0-3.108571-1.097143-1.828572-3.291429l61.184-106.861714a4.571429 4.571429 0 0 0 0-4.864l-58.258285-102.253714a2.56 2.56 0 0 0-2.267429-1.316572z m268.361143 342.198857c1.974857 0 2.486857 0.841143 1.462857 2.56l-35.474286 62.500572-111.542857 195.620571a2.377143 2.377143 0 0 1-2.121143 1.243429 2.486857 2.486857 0 0 1-2.121142-1.243429l-147.346286-257.353143c-0.841143-1.462857-0.402286-2.230857 1.206857-2.304l9.216-0.512 286.793143-0.512h-0.073143z" fill="#7D5DED" p-id="5635"></path></svg>'},{match:/kimi|moonshot/i,name:"Kimi",color:"#00000",svg:'<svg t="1771495664798" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6649" width="200" height="200"><path d="M731.062857 590.262857v318.317714h-148.589714V443.977143a146.285714 146.285714 0 0 1-146.285714 146.285714l-214.491429-0.036571v318.354285H73.142857V165.814857h148.553143v275.858286h180.882286l119.771428-275.858286h167.753143l-67.84 156.269714a255.524571 255.524571 0 0 1-106.678857 119.588572h66.925714a148.553143 148.553143 0 0 1 148.516572 148.589714z m120.758857-473.965714a99.035429 99.035429 0 0 1 0 198.070857h-99.035428V215.332571a99.035429 99.035429 0 0 1 99.035428-99.035428z" fill="#F4F4F4" p-id="6650"></path></svg>'},{match:/glm|chatglm/i,name:"GLM",color:"#00000",svg:'<svg data-name="glm" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 217.2 200"> <!-- Generator: Adobe Illustrator 29.8.2, SVG Export Plug-In . SVG Version: 2.1.1 Build 3) --> <defs> <style> .st0 { fill: #fff; } </style> </defs> <path class="st0" d="M86.8,190.4H0L131.3,4.8h85.8L86.8,190.4h0ZM212.8,190h-107.9l14.9-21.6c2.3-3.3,6-5.2,9.9-5.2h83.1v26.8h0ZM99.4,26.3c-2.3,3.3-6,5.2-9.9,5.2H6.4V4.8h107.9l-14.9,21.6Z"/> </svg>'},{match:/minimax|abab/i,name:"MiniMax",color:"#00000",svg:'<svg viewBox="0 0 24 24" fill="#fff"><path d="M4 8l4-4 4 4 4-4 4 4v8l-4 4-4-4-4 4-4-4z" fill="none" stroke="#fff" stroke-width="1.5" stroke-linejoin="round"/></svg>'},{match:/deepseek/i,name:"DeepSeek",color:"#00000",svg:'<svg t="1771495947541" class="icon" viewBox="0 0 1391 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11539" width="200" height="200"><path d="M1326.70201318 112.02090779c-12.94676356-6.47485468-18.53640721 5.86654827-26.0997327 12.13814316-2.57756953 2.02376031-4.77807747 4.65435413-6.9785854 7.08168819-18.91788751 20.63528526-41.02017805 34.19182812-69.92725218 32.57311444-42.23384508-2.42733405-78.29772513 11.12773591-110.16384908 44.10589703-6.77679853-40.66668282-29.28560862-64.94444203-63.55255448-80.52327231-17.95608583-8.09209545-36.06388005-16.1856638-48.63358202-33.78825438-8.74900746-12.5431898-11.12773591-26.50330641-15.52727888-40.26016327-2.7823022-8.29535522-5.56460442-16.79249731-14.92044538-18.20942411-10.19244639-1.61871367-14.16337637 7.08168818-18.15934561 14.36516325-15.93232553 29.74073376-22.12880269 62.51710799-21.49692994 95.69705596 1.36684831 74.65672404 32.27117059 134.13819156 93.62469006 176.42358804 6.9800583 4.8546681 8.77551959 9.71080912 6.57501165 16.79102439-4.17271686 14.56695011-9.18056624 28.7303265-13.55506995 43.29727663-2.78377509 9.30723537-6.95501906 11.32952278-16.74241882 7.28347507-33.66158524-14.36516325-62.745407-35.60875491-88.46513227-61.30196806-43.62425973-43.09548975-83.0772755-90.64060097-132.26613965-127.86659667a581.67054343 581.67054343 0 0 0-35.07703915-24.48101901c-50.20074429-49.77065841 6.57501167-90.63912807 19.72650789-95.49526908 13.73181759-5.05792788 4.77955037-22.4572587-39.65480265-22.25547181s-85.07599655 15.3770434-136.87041526 35.60875491c-7.58541892 3.03416756-15.55379103 5.25971475-23.69596499 7.08168819-47.03990759-9.10544849-95.84876434-11.12773591-146.8596019-5.26118765-96.02551195 10.92594905-172.73103555 57.25739323-229.12678412 136.36373875-67.72674425 95.09022244-83.68558192 203.13015422-64.13582165 315.82149435 20.48504978 118.76262107 79.88992666 217.09027084 171.13736114 293.97106918 94.6350973 79.71317902 203.61031862 118.76262107 327.93607117 111.27735913 75.51542292-4.45256725 159.57953934-14.77020989 254.41642354-96.71040901 23.92426399 12.13961607 49.03715574 16.99575708 90.66564019 20.63675815 32.09295007 3.03416756 62.97223311-1.61871367 86.87145788-6.67664152 37.45429471-8.09209545 34.84874013-43.49906349 21.31870939-49.97244528-109.7838417-52.19946535-85.68283009-30.95587367-107.58333373-48.15194474 55.78891504-67.37324899 139.85303146-137.3770918 172.73103555-364.17669887 2.60408167-18.00616433 0.40357375-29.33568711 0-43.90263724-0.20325977-8.90218873 1.76894914-12.34287584 11.75960867-13.35328309 27.49014733-3.23742733 54.19671351-10.92594905 78.70277179-24.68280588 71.11440706-39.65480265 99.81822142-104.80250446 106.59649284-182.89844271 1.01188015-11.9363563-0.20178686-24.27775924-12.56970195-30.54935413M706.87018452 814.87993343c-106.36966673-85.37941333-157.98733782-113.5014334-179.30604722-112.28776638-19.92829476 1.21366703-16.33737217 24.48101902-11.96286844 39.65480264 4.5777635 14.97199677 10.57098089 25.2896394 18.94145384 38.44113563 5.76786417 8.70040186 9.76383341 21.64863831-5.78995762 31.35944742-34.26841876 21.64863831-93.82647692-7.28347506-96.60730623-8.69892897-69.3454579-41.67856295-127.33635378-96.710409-168.1797842-171.97249368-39.45154288-72.43117687-62.33888747-150.1220685-66.13306983-233.07267483-1.01188015-20.02992464 4.77955037-27.11161282 24.27923214-30.75408682a235.19659216 235.19659216 0 0 1 77.91771774-2.02228741c108.59668681 16.18713669 201.05631542 65.75453531 278.54394728 144.25552022 44.23256614 44.71125762 77.69089163 98.12439001 112.1861365 150.32385536 36.64567431 55.43394691 76.0986901 108.24024576 126.29943438 151.53604947 17.72778682 15.17378365 31.86465106 26.7065662 45.41972102 35.20370829-40.84343042 4.65435413-108.99878765 5.66476139-155.60860936-31.96628094m51.00936468-334.83953883c0-8.90218873 6.9815312-15.98387693 15.75557791-15.98387693q2.98408908 0.05155138 5.36134463 1.01188017a15.85720779 15.85720779 0 0 1 10.16740714 14.97199676 15.78061715 15.78061715 0 0 1-15.73053865 15.98387691 15.60386953 15.60386953 0 0 1-15.55379103-15.98387691m158.39238446 82.95060635c-10.1423679 4.24930749-20.30830215 7.89178146-30.09570191 8.29535522-15.12370514 0.81009328-31.66286419-5.46150162-40.61513142-13.15002332-13.96011661-11.93782919-23.92573689-18.61447073-28.09845373-39.45301577-1.79546129-8.90218873-0.81009328-22.65904557 0.78505403-30.54935414 3.59092258-16.99575708-0.40504665-27.92023321-12.13961606-37.8343021-9.55910075-8.09356835-21.72522894-10.31911553-35.07703915-10.31911552-4.98281013 0-9.55910075-2.22407429-12.94823645-4.04604774a13.27669246 13.27669246 0 0 1-5.76639128-18.61299783c1.39041466-2.8323807 8.16868608-9.71228202 9.7623605-10.92594905 18.13136058-10.52090241 39.04649623-7.08021529 58.36795748 0.81009328 17.93104659 7.48526194 31.46107731 21.24359167 51.01083757 40.6666828 19.92829476 23.46913885 23.51921733 29.94399353 34.84874013 47.54511123 8.97877936 13.75685685 17.14746545 27.92023321 22.71206987 44.10442409 3.41270206 10.11732865-0.98684091 18.41121097-12.74644958 23.46913885" fill="#4D6BFE" p-id="11540"></path></svg>'}];function w_e(t){if(!t)return null;for(const e of Q_e)if(e.match.test(t))return{name:t.replace(/^claude-/,"").replace(/-\d{8,}$/,""),provider:e.name,color:e.color,svg:e.svg};return{name:t,provider:t,color:"#065f46",svg:null}}function jz(t){return t==="user"?'<svg viewBox="0 0 24 24"><path d="M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"/></svg>':t==="agent"?'<svg viewBox="0 0 24 24"><path d="M12 2a2 2 0 012 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 017 7h1a1 1 0 011 1v3a1 1 0 01-1 1h-1.17A7 7 0 0113 22h-2a7 7 0 01-6.83-3H3a1 1 0 01-1-1v-3a1 1 0 011-1h1a7 7 0 017-7h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 012-2zM9.5 13a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm5 0a1.5 1.5 0 100 3 1.5 1.5 0 000-3z"/></svg>':t==="sub-search"||t==="sub-explore"?'<svg viewBox="0 0 1024 1024"><path d="M128.957606 76.608479v495.401496c0 20.428928-17.875312 38.304239-38.304239 38.304239S52.349127 592.438903 52.349127 572.009975V38.304239c0-20.428928 17.875312-38.304239 38.30424-38.304239h426.453865c20.428928 0 38.304239 17.875312 38.304239 38.304239s-17.875312 38.304239-38.304239 38.30424H128.957606z m127.680798 127.680798v495.401496c0 20.428928-17.875312 38.304239-38.304239 38.304239S180.029925 720.119701 180.029925 699.690773V165.985037c0-20.428928 17.875312-38.304239 38.30424-38.304239h426.453865c20.428928 0 38.304239 17.875312 38.304239 38.304239s-17.875312 38.304239-38.304239 38.30424H256.638404z m579.670823 291.112219v-150.663341H399.640898v515.830424h76.608479c0 38.304239 30.643392 68.947631 43.411471 89.376558h-145.55611c-33.197007 0-61.286783-28.089776-61.286783-63.840399V321.755611c0-35.750623 28.089776-63.840399 61.286783-63.840399h490.294264c33.197007 0 61.286783 28.089776 61.286784 63.840399V564.349127c-20.428928-22.982544-58.733167-56.179551-89.376559-68.947631zM486.46384 411.13217h255.361596c15.321696 0 25.53616 10.214464 25.53616 25.536159s-10.214464 25.53616-25.53616 25.53616H486.46384c-15.321696 0-25.53616-10.214464-25.536159-25.53616s10.214464-25.53616 25.536159-25.536159z m0 102.144638h102.144639c15.321696 0 25.53616 10.214464 25.536159 25.53616s-10.214464 25.53616-25.536159 25.536159h-102.144639c-15.321696 0-25.53616-10.214464-25.536159-25.536159s10.214464-25.53616 25.536159-25.53616z m503.062345 492.84788c-2.553616 2.553616-7.660848 10.214464-12.76808 10.214464-10.214464 10.214464-35.750623 10.214464-45.965088 0l-81.71571-71.501247c-28.089776 17.875312-63.840399 28.089776-99.591023 28.089776-102.144638 0-186.413965-84.269327-186.413965-186.413965s84.269327-186.413965 186.413965-186.413965 186.413965 84.269327 186.413965 186.413965c0 38.304239-10.214464 71.501247-30.643391 99.591022l81.715711 71.501247c12.76808 12.76808 12.76808 35.750623 2.553616 48.518703z m-240.039901-324.309227c-58.733167 0-104.698254 48.518703-104.698254 104.698255 0 58.733167 48.518703 104.698254 104.698254 104.698254s104.698254-48.518703 104.698255-104.698254c2.553616-58.733167-45.965087-104.698254-104.698255-104.698255z" fill="#ffffff"/></svg>':t==="sub-plan"?'<svg viewBox="0 0 1024 1024"><path d="M674.507676 598.338391 287.079856 598.338391c-14.136975 0-25.638937 11.499915-25.638937 25.63689 0 14.137998 11.501962 25.640983 25.638937 25.640983l387.42782 0c14.137998 0 25.640983-11.501962 25.640983-25.640983C700.148659 609.838306 688.646698 598.338391 674.507676 598.338391zM794.746154 384.583029c-14.137998 0-25.640983 11.501962-25.640983 25.63996l0 494.299873c0 0.130983 0 0.280386-0.001023 0.433882-0.899486 0.279363-2.665713 0.644683-5.764284 0.644683L200.047664 905.601426c-4.312212 0-7.564279-2.971681-7.564279-6.913457L192.483384 191.851493c0-4.493338 0.974188-8.28878 1.811252-9.821693l373.337917 0c14.136975 0 25.63996-11.501962 25.63996-25.63996 0-14.136975-11.501962-25.638937-25.63996-25.638937l-374.069581 0c-30.336936 0-52.357462 25.696242-52.357462 61.099566l0 706.836477c0 32.086789 26.396183 58.19133 58.84113 58.19133l563.293223 0c34.119075 0 57.042157-21.041222 57.042157-52.356438L820.382021 410.224012C820.383044 396.086014 808.883129 384.583029 794.746154 384.583029zM674.507676 745.295394 287.079856 745.295394c-14.136975 0-25.638937 11.499915-25.638937 25.63689 0 14.137998 11.501962 25.640983 25.638937 25.640983l387.42782 0c14.137998 0 25.640983-11.501962 25.640983-25.640983C700.148659 756.795309 688.646698 745.295394 674.507676 745.295394zM879.595634 157.107177c-3.77293-14.409175-12.871145-28.250414-24.964578-37.975916l-43.827181-35.240619c-12.880355-10.352789-29.27679-16.290011-44.986587-16.290011-16.876366 0-31.594579 6.747681-41.439808 18.995633l-19.624966 24.381293c-6.380314 7.968485-7.987928 17.577331-5.222955 26.916023l-114.241904 142.063553-2.486634 3.090385-22.812565 85.303828c-9.749038 30.859845 4.449335 48.075949 13.806447 55.608505 6.783497 5.450129 14.468526 8.728802 22.851451 9.754155 0.984421 0.246617 2.125407 0.488117 3.440355 0.632403 1.003863 0.110517 2.053776 0.167822 3.118014 0.167822l0.014326 0c4.588505 0 10.047844-0.9967 17.180288-3.13541l2.877537-1.065262 83.402525-41.897226 119.874181-149.07934c0.440022 0.017396 0.880043 0.032746 1.320065 0.032746 9.218966 0 17.411555-3.862981 23.077601-10.892071l19.562545-24.342408C880.924909 191.1976 884.15037 174.495196 879.595634 157.107177zM674.469813 348.564697l-56.738235 28.537963c-2.958378 0.579191-5.734608 1.684362-8.277524 3.296069-0.313132 0.198521-0.615007 0.385786-0.905626 0.562818 0.12382-0.318248 0.25378-0.639566 0.39295-0.971118 0.99977-2.437515 1.588171-5.022387 1.753947-7.702426l17.732873-66.078974 105.73209-131.488707 48.647977 39.113833L674.469813 348.564697zM831.385633 172.919305l-7.679913 9.550517-68.139913-54.779627 7.687076-9.56382c0.291642-0.132006 1.144056-0.38374 2.604314-0.38374 4.28356 0 9.735735 2.071172 13.570063 5.15644l43.832298 35.245735c3.493567 2.805906 6.421246 7.018857 7.642051 10.993378C831.497173 171.081447 831.492056 172.446537 831.385633 172.919305zM487.474932 291.067168l-200.394053 0c-14.136975 0-25.638937 11.501962-25.638937 25.63996 0 14.136975 11.501962 25.637913 25.638937 25.637913l200.394053 0c14.137998 0 25.63996-11.500938 25.63996-25.637913C513.114892 302.56913 501.611907 291.067168 487.474932 291.067168zM674.507676 438.023148 287.079856 438.023148c-14.136975 0-25.638937 11.500938-25.638937 25.638937s11.501962 25.638937 25.638937 25.638937l387.42782 0c14.137998 0 25.640983-11.501962 25.640983-25.638937S688.646698 438.023148 674.507676 438.023148z" fill="#ffffff"/></svg>':t==="teammate"?'<svg viewBox="0 0 24 24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z" fill="#ffffff"/></svg>':'<svg viewBox="0 0 1024 1024"><path d="M810.666667 384l53.333333-117.333333L981.333333 213.333333l-117.333333-53.333333L810.666667 42.666667l-53.333334 117.333333L640 213.333333l117.333333 53.333334L810.666667 384zM810.666667 640l-53.333334 117.333333L640 810.666667l117.333333 53.333333L810.666667 981.333333l53.333333-117.333333L981.333333 810.666667l-117.333333-53.333334L810.666667 640zM490.666667 405.333333L384 170.666667 277.333333 405.333333 42.666667 512l234.666666 106.666667L384 853.333333l106.666667-234.666666L725.333333 512l-234.666666-106.666667z m-64.426667 148.906667L384 647.253333l-42.24-93.013333L248.746667 512l93.013333-42.24L384 376.746667l42.24 93.013333 93.013333 42.24-93.013333 42.24z" fill="#ffffff"/></svg>'}function $i(t){return t==null||t===0?"0":t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":String(t)}function Tu(t){if(Array.isArray(t))return t.map(Tu);if(t&&typeof t=="object"){const e={};for(const n of Object.keys(t))n.startsWith("_")||(e[n]=Tu(t[n]));return e}return t}function PB(t){var n,i,r;const e={};for(const s of t){const o=(i=(n=s.response)==null?void 0:n.body)==null?void 0:i.usage;if(!o)continue;const a=((r=s.body)==null?void 0:r.model)||"unknown";e[a]||(e[a]={input:0,output:0,cacheCreation:0,cacheRead:0});const l=e[a];l.input+=o.input_tokens||0,l.output+=o.output_tokens||0,l.cacheCreation+=o.cache_creation_input_tokens||0,l.cacheRead+=o.cache_read_input_tokens||0}return e}function CB(t){var i,r,s;const e={ttl:{count:0,cacheCreate:0},system_change:{count:0,cacheCreate:0},tools_change:{count:0,cacheCreate:0},model_change:{count:0,cacheCreate:0},msg_truncated:{count:0,cacheCreate:0},msg_modified:{count:0,cacheCreate:0},key_change:{count:0,cacheCreate:0}},n=__e(t);for(const[o,a]of n){const l=((s=(r=(i=t[o].response)==null?void 0:i.body)==null?void 0:r.usage)==null?void 0:s.cache_creation_input_tokens)||0,c=a.reasons||[a.reason];for(const u of c)e[u]&&(e[u].count++,e[u].cacheCreate+=l)}return e}function TB(t){var n,i;const e={};for(const r of t){const s=(i=(n=r.response)==null?void 0:n.body)==null?void 0:i.content;if(Array.isArray(s))for(const o of s)o.type==="tool_use"&&o.name&&(e[o.name]=(e[o.name]||0)+1)}return Object.entries(e).sort((r,s)=>s[1]-r[1])}function kB(t){var n;const e={};for(const i of t){const r=(n=i.body)==null?void 0:n.messages;if(Array.isArray(r))for(const s of r){if(s.role!=="user")continue;const o=s.content;if(Array.isArray(o))for(const a of o){if(a.type!=="text"||!vC(a.text))continue;const l=a.text.match(/^#\s+(.+)$/m),c=l?l[1]:"Skill";e[c]=(e[c]||0)+1}}}return Object.entries(e).sort((i,r)=>r[1]-i[1])}function y1(t){return typeof t!="string"?!1:t.includes("<system-reminder>")&&t.includes("# claudeMd")}function _1(t){return typeof t!="string"?!1:t.includes("<system-reminder>")&&t.includes("skills are available")}function P_e(t){const e=t==null?void 0:t.messages;if(!Array.isArray(e))return!1;for(const n of e){const i=n==null?void 0:n.content;if(typeof i=="string"){if(y1(i))return!0}else if(Array.isArray(i)){for(const r of i)if(r.type==="text"&&y1(r.text))return!0}}return!1}function C_e(t){const e=t==null?void 0:t.messages;if(!Array.isArray(e))return!1;for(const n of e){const i=n==null?void 0:n.content;if(typeof i=="string"){if(_1(i))return!0}else if(Array.isArray(i)){for(const r of i)if(r.type==="text"&&_1(r.text))return!0}}return!1}function T_e(t){return t?t.replace(/^claude-/,"").replace(/-\d{8,}$/,""):null}function k_e(t){var n,i,r;if(!t)return!1;const e=t.url||"";return!(t.isHeartbeat||t.isCountTokens||/\/api\/eval\/sdk-/.test(e)||/\/messages\/count_tokens/.test(e)||t.inProgress===!0||t.response&&t.response.status===0||((n=t.body)==null?void 0:n.max_tokens)===1&&!((i=t.body)!=null&&i.system)&&(!((r=t.body)!=null&&r.tools)||t.body.tools.length===0))}function la(t){return t.filter(k_e)}function Mz(t,e){for(let n=e-1;n>=0;n--)if(Cr(t[n])&&t[n].timestamp)return t[n].timestamp;return null}function RB(t){var s,o,a,l;if(!Array.isArray(t)||t.length===0)return null;let e=null;if(t.length===1)e=t[0];else{let c=null,u=null;for(let d=t.length-1;d>=0;d--)if(Cr(t[d])&&(c||(c=t[d]),(o=(s=t[d].response)==null?void 0:s.body)!=null&&o.usage)){u=t[d];break}e=u||c}if(!e||!e.body)return null;const n=e.body,i=(l=(a=e.response)==null?void 0:a.body)==null?void 0:l.usage,r={system:[],messages:[],tools:[],cacheCreateTokens:(i==null?void 0:i.cache_creation_input_tokens)||0,cacheReadTokens:(i==null?void 0:i.cache_read_input_tokens)||0};if(Array.isArray(n.system)){let c=-1;for(let u=n.system.length-1;u>=0;u--)if(n.system[u].cache_control){c=u;break}if(c>=0)for(let u=0;u<=c;u++){const d=n.system[u];d.type==="text"&&d.text&&r.system.push(d.text)}}if(Array.isArray(n.messages)){let c=-1;for(let u=n.messages.length-1;u>=0;u--){const d=n.messages[u].content;if(Array.isArray(d)){for(const h of d)if(h.cache_control){c=u;break}if(c>=0)break}}if(c>=0)for(let u=0;u<=c;u++){const d=n.messages[u],h=d.content;if(typeof h=="string")r.messages.push(`[${d.role}] ${h}`);else if(Array.isArray(h)){for(const p of h)if(p.type==="text"&&p.text)r.messages.push(`[${d.role}] ${p.text}`);else if(p.type==="tool_result"){const g=wB(p);g&&r.messages.push(`[tool_result: ${p.tool_use_id}] ${g}`)}}}}if(Array.isArray(n.tools)&&n.tools.some(u=>u.cache_control))for(const u of n.tools){const d=`${u.name}: ${u.description||""}`;r.tools.push(d)}return r}function Pk(t){const e=t==null?void 0:t.content;if(typeof e=="string")return e;if(Array.isArray(e)){for(const n of e)if((n==null?void 0:n.type)==="text"&&n.text)return n.text}return""}function R_e(t){const e=t.body||{},n=Xm(e);if(/Extract any file paths/i.test(n)||/process Bash commands/i.test(n)||/command execution specialist/i.test(n))return"Bash";if(/file search specialist/i.test(n))return"Search";if(/planning specialist/i.test(n))return"Plan";if(/general-purpose agent/i.test(n))return"General";const i=e.messages||[];for(let r=i.length-1;r>=0;r--){if(i[r].role!=="user")continue;const s=Pk(i[r]);if(/^Command:/m.test(s))return"Bash";break}return null}function E_e(t){var i;const e=(i=t.body)==null?void 0:i.messages;if(!Array.isArray(e)||e.length!==1)return!1;const n=e[0];return n.role==="user"&&n.content==="count"}function X_e(t,e){var l;const n=t.body||{},i=n.tools,r=n.messages||[];if(Array.isArray(i)&&i.length>0||r.length!==1||r[0].role!=="user")return!1;const s=Pk(r[0]);if(!s||s.trim()==="count")return!1;const o=s.trim();if(/^Command:/m.test(s)||/^<policy_spec>/i.test(o)||/^<task-notification>/i.test(o))return!1;const a=Xm(n);if(!a.includes("Claude Code")||/process Bash commands/i.test(a)||/Extract any file paths/i.test(a))return!1;if(e){const c=((l=e.body)==null?void 0:l.messages)||[],u=s.slice(0,80);if(c.some(h=>{const p=h==null?void 0:h.content;return typeof p=="string"?p.includes(u):Array.isArray(p)?p.some(g=>(g==null?void 0:g.type)==="text"&&g.text&&g.text.includes(u)):!1}))return!0}return!1}function Nu(t,e){var i;if(xB(t))return t.teammate?{type:"Teammate",subType:t.teammate}:(t._cachedTeammateName===void 0&&(t._cachedTeammateName=b_e(t.body)||null),{type:"Teammate",subType:t._cachedTeammateName});if(Cr(t))return{type:"MainAgent",subType:null};if(t.isCountTokens||E_e(t))return{type:"Count",subType:null};if(X_e(t,e)){const r=Pk((((i=t.body)==null?void 0:i.messages)||[])[0]);return/Implement the following plan:/i.test(r.trim())?{type:"Plan",subType:"Prompt"}:{type:"Preflight",subType:null}}return{type:"SubAgent",subType:R_e(t)}}function $C(t,e){return t==="Teammate"&&e?`Teammate:${e}`:t==="Plan"&&e?`Plan:${e}`:t==="SubAgent"&&e?`SubAgent:${e}`:t}function z_e(t,e){const n=t||"X";if(!e)return`Teammate: ${n}`;const i=e.replace(/^claude-/i,"").replace(/-\d{8}$/,"");return`Teammate: ${n}(${i})`}function Ck(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sh=Ck();function EB(t){sh=t}var vd={exec:()=>null};function ri(t,e=""){let n=typeof t=="string"?t:t.source,i={replace:(r,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(io.caret,"$1"),n=n.replace(r,o),i},getRegex:()=>new RegExp(n,e)};return i}var j_e=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),io={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},M_e=/^(?:[ \t]*(?:\n|$))+/,N_e=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,I_e=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Cg=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,A_e=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Tk=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,XB=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zB=ri(XB).replace(/bull/g,Tk).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),L_e=ri(XB).replace(/bull/g,Tk).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),kk=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,W_e=/^[^\n]+/,Rk=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,V_e=ri(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Rk).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),B_e=ri(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Tk).getRegex(),Ob="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ek=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Y_e=ri("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ek).replace("tag",Ob).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jB=ri(kk).replace("hr",Cg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ob).getRegex(),U_e=ri(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",jB).getRegex(),Xk={blockquote:U_e,code:N_e,def:V_e,fences:I_e,heading:A_e,hr:Cg,html:Y_e,lheading:zB,list:B_e,newline:M_e,paragraph:jB,table:vd,text:W_e},Nz=ri("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Cg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ob).getRegex(),D_e={...Xk,lheading:L_e,table:Nz,paragraph:ri(kk).replace("hr",Cg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nz).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ob).getRegex()},q_e={...Xk,html:ri(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ek).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:vd,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ri(kk).replace("hr",Cg).replace("heading",` *#{1,6} *[^
567
567
  ]`).replace("lheading",zB).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Z_e=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,F_e=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,MB=/^( {2,}|\\)\n(?!\s*$)/,G_e=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,fb=/[\p{P}\p{S}]/u,zk=/[\s\p{P}\p{S}]/u,NB=/[^\s\p{P}\p{S}]/u,H_e=ri(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,zk).getRegex(),IB=/(?!~)[\p{P}\p{S}]/u,K_e=/(?!~)[\s\p{P}\p{S}]/u,J_e=/(?:[^\s\p{P}\p{S}]|~)/u,AB=/(?![*_])[\p{P}\p{S}]/u,exe=/(?![*_])[\s\p{P}\p{S}]/u,txe=/(?:[^\s\p{P}\p{S}]|[*_])/u,nxe=ri(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",j_e?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),LB=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ixe=ri(LB,"u").replace(/punct/g,fb).getRegex(),rxe=ri(LB,"u").replace(/punct/g,IB).getRegex(),WB="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",sxe=ri(WB,"gu").replace(/notPunctSpace/g,NB).replace(/punctSpace/g,zk).replace(/punct/g,fb).getRegex(),oxe=ri(WB,"gu").replace(/notPunctSpace/g,J_e).replace(/punctSpace/g,K_e).replace(/punct/g,IB).getRegex(),axe=ri("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,NB).replace(/punctSpace/g,zk).replace(/punct/g,fb).getRegex(),lxe=ri(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,AB).getRegex(),cxe="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",uxe=ri(cxe,"gu").replace(/notPunctSpace/g,txe).replace(/punctSpace/g,exe).replace(/punct/g,AB).getRegex(),dxe=ri(/\\(punct)/,"gu").replace(/punct/g,fb).getRegex(),hxe=ri(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Oxe=ri(Ek).replace("(?:-->|$)","-->").getRegex(),fxe=ri("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Oxe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),x1=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,pxe=ri(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",x1).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),VB=ri(/^!?\[(label)\]\[(ref)\]/).replace("label",x1).replace("ref",Rk).getRegex(),BB=ri(/^!?\[(ref)\](?:\[\])?/).replace("ref",Rk).getRegex(),mxe=ri("reflink|nolink(?!\\()","g").replace("reflink",VB).replace("nolink",BB).getRegex(),Iz=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,jk={_backpedal:vd,anyPunctuation:dxe,autolink:hxe,blockSkip:nxe,br:MB,code:F_e,del:vd,delLDelim:vd,delRDelim:vd,emStrongLDelim:ixe,emStrongRDelimAst:sxe,emStrongRDelimUnd:axe,escape:Z_e,link:pxe,nolink:BB,punctuation:H_e,reflink:VB,reflinkSearch:mxe,tag:fxe,text:G_e,url:vd},gxe={...jk,link:ri(/^!?\[(label)\]\((.*?)\)/).replace("label",x1).getRegex(),reflink:ri(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",x1).getRegex()},SC={...jk,emStrongRDelimAst:oxe,emStrongLDelim:rxe,delLDelim:lxe,delRDelim:uxe,url:ri(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Iz).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ri(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Iz).getRegex()},vxe={...SC,br:ri(MB).replace("{2,}","*").getRegex(),text:ri(SC.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},h0={normal:Xk,gfm:D_e,pedantic:q_e},vp={normal:jk,gfm:SC,breaks:vxe,pedantic:gxe},$xe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Az=t=>$xe[t];function pl(t,e){if(e){if(io.escapeTest.test(t))return t.replace(io.escapeReplace,Az)}else if(io.escapeTestNoEncode.test(t))return t.replace(io.escapeReplaceNoEncode,Az);return t}function Lz(t){try{t=encodeURI(t).replace(io.percentDecode,"%")}catch{return null}return t}function Wz(t,e){var s;let n=t.replace(io.findPipe,(o,a,l)=>{let c=!1,u=a;for(;--u>=0&&l[u]==="\\";)c=!c;return c?"|":" |"}),i=n.split(io.splitPipe),r=0;if(i[0].trim()||i.shift(),i.length>0&&!((s=i.at(-1))!=null&&s.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(io.slashPipe,"|");return i}function $p(t,e,n){let i=t.length;if(i===0)return"";let r=0;for(;r<i&&t.charAt(i-r-1)===e;)r++;return t.slice(0,i-r)}function Sxe(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===e[0])n++;else if(t[i]===e[1]&&(n--,n<0))return i;return n>0?-2:-1}function bxe(t,e=0){let n=e,i="";for(let r of t)if(r===" "){let s=4-n%4;i+=" ".repeat(s),n+=s}else i+=r,n++;return i}function Vz(t,e,n,i,r){let s=e.href,o=e.title||null,a=t[1].replace(r.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:s,title:o,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,l}function yxe(t,e,n){let i=t.match(n.other.indentCodeCompensation);if(i===null)return e;let r=i[1];return e.split(`
568
568
  `).map(s=>{let o=s.match(n.other.beginningSpace);if(o===null)return s;let[a]=o;return a.length>=r.length?s.slice(r.length):s}).join(`
569
569
  `)}var Q1=class{constructor(t){tt(this,"options");tt(this,"rules");tt(this,"lexer");this.options=t||sh}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$p(n,`
@@ -647,7 +647,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error
647
647
  === ${J("ui.messages")} ===`),v.messages.forEach(w=>Q.push(w))),v.tools.length>0&&(Q.push(`
648
648
  === ${J("ui.tools")} ===`),v.tools.forEach(w=>Q.push(w))),Q.join(`
649
649
 
650
- `)},_=v.messages.map((Q,w)=>({text:Q,msgIdx:w})).filter(({text:Q})=>Q.startsWith("[user]")).map(({text:Q,msgIdx:w})=>{const P=Q.replace(/^\[user\]\s*/,"").trim();return!P||Cu(P)?{cleaned:"",msgIdx:w}:{cleaned:P1.parseSegments(P).filter(E=>E.type==="text").map(E=>E.content.trim()).filter(E=>E&&!Cu(E)).join(" ").trim(),msgIdx:w}}).filter(({cleaned:Q})=>!(!Q||/Implement the following plan:/i.test(Q))),x=_.length>0?S.jsx("div",{style:{width:600,maxHeight:300,overflowY:"auto"},children:_.map(({cleaned:Q,msgIdx:w})=>S.jsx("div",{style:{padding:"4px 8px",fontSize:12,color:"#ccc",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",borderRadius:3},onMouseEnter:P=>{P.currentTarget.style.background="rgba(22,104,220,0.2)",P.currentTarget.style.color="#fff"},onMouseLeave:P=>{P.currentTarget.style.background="",P.currentTarget.style.color="#ccc"},onClick:()=>this.scrollToCacheMsg(w),children:Q},w))}):null;return S.jsxs("div",{style:{padding:"8px 0",height:"100%",display:"flex",flexDirection:"column"},children:[(()=>{const w=v.cacheCreateTokens>0||v.cacheReadTokens>0?v:this._lastCachedTokensKey===$?this._lastCachedTokens:null;return w||x?S.jsxs("div",{style:{display:"flex",alignItems:"center",fontSize:12,fontFamily:"monospace",color:"#aaa",marginBottom:12,flexShrink:0},children:[w&&S.jsxs(S.Fragment,{children:[J("ui.tokens"),": ",S.jsxs("span",{style:{color:"#faad14"},children:["write ",$i(w.cacheCreateTokens)]})," / ",S.jsxs("span",{style:{color:"#52c41a"},children:["read ",$i(w.cacheReadTokens)]}),S.jsx(Pd,{style:{marginLeft:8,cursor:"pointer",color:"#888",transition:"color 0.2s"},onClick:()=>{navigator.clipboard.writeText(y()).then(()=>{Tn.success(J("ui.copied"))}).catch(()=>{})}})]}),x&&S.jsx(Sl,{content:x,trigger:"hover",placement:"left",children:S.jsx("span",{style:{marginLeft:"auto",fontSize:11,color:"#1668dc",cursor:"pointer",border:"1px solid #1668dc",borderRadius:3,padding:"1px 6px",whiteSpace:"nowrap"},children:J("ui.userPromptNav")})})]}):null})(),S.jsxs("div",{style:{flex:1,overflowY:"auto",minHeight:0},ref:Q=>{this._cacheScrollEl=Q},children:[v.system.length>0&&S.jsxs("div",{style:{marginBottom:12},children:[S.jsxs("div",{style:{fontSize:13,fontWeight:600,color:"#e5e5e5",marginBottom:6},children:[J("ui.systemPrompt")," (",v.system.length,")"]}),v.system.map((Q,w)=>S.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.5,color:"#ccc",background:"#0d1b2a",border:"1px solid #1b3a5c",borderRadius:4,padding:8,margin:"4px 0",fontFamily:"Menlo, Monaco, monospace"},children:Q},w))]}),v.messages.length>0&&S.jsxs("div",{style:{marginBottom:12},children:[S.jsxs("div",{style:{fontSize:13,fontWeight:600,color:"#e5e5e5",marginBottom:6},children:[J("ui.messages")," (",v.messages.length,")"]}),v.messages.map((Q,w)=>{const P=w===this.state.cacheHighlightIdx,T=P?this.state.cacheHighlightFading?{boxShadow:"0 0 10px rgba(22,104,220,0)",transition:"box-shadow 3s ease-out",position:"relative"}:{boxShadow:"0 0 10px rgba(22,104,220,0.6)",transition:"box-shadow 0.2s ease-in",position:"relative"}:{};return S.jsxs("pre",{"data-msg-idx":w,style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.5,color:"#ccc",background:"#111",border:"1px solid #2a2a2a",borderRadius:4,padding:8,margin:"4px 0",fontFamily:"Menlo, Monaco, monospace",...T},children:[P&&S.jsx("svg",{style:{position:"absolute",inset:0,width:"100%",height:"100%",pointerEvents:"none",overflow:"visible",opacity:this.state.cacheHighlightFading?0:1,transition:this.state.cacheHighlightFading?"opacity 3s ease-out":void 0},preserveAspectRatio:"none",children:S.jsx("rect",{x:"0.5",y:"0.5",width:"calc(100% - 1px)",height:"calc(100% - 1px)",rx:"4",ry:"4",fill:"none",stroke:"#1668dc",strokeWidth:"1",strokeDasharray:"6 4",children:S.jsx("animate",{attributeName:"stroke-dashoffset",from:"0",to:"-100",dur:"4s",repeatCount:"indefinite"})})}),Q]},w)})]}),v.tools.length>0&&S.jsxs("div",{style:{marginBottom:12},children:[S.jsxs("div",{style:{fontSize:13,fontWeight:600,color:"#e5e5e5",marginBottom:6},children:[J("ui.tools")," (",v.tools.length,")"]}),v.tools.map((Q,w)=>S.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.5,color:"#ccc",background:"#111",border:"1px solid #2a2a2a",borderRadius:4,padding:8,margin:"4px 0",fontFamily:"Menlo, Monaco, monospace"},children:Q},w))]})]})]})})()})},{key:"context",label:"Context",children:S.jsx("div",{className:dn.tabContent,style:{height:"calc(100vh - 220px)",minHeight:400},children:S.jsx(uCe,{body:e.body,response:(h=e.response)==null?void 0:h.body})})}],u=(g=(p=e.response)==null?void 0:p.body)==null?void 0:g.usage,d=u?(()=>{const v=u.input_tokens||0,$=u.output_tokens||0,y=u.cache_creation_input_tokens||0,_=u.cache_read_input_tokens||0,x=v+y+_,Q=x>0?(_/x*100).toFixed(1):"0.0";return{input:v,output:$,cacheCreate:y,cacheRead:_,hitRate:Q}})():null;return S.jsxs("div",{className:dn.container,children:[S.jsxs("div",{className:dn.urlSection,children:[S.jsxs("div",{className:dn.urlLeft,children:[S.jsx(ACe,{className:dn.urlText,ellipsis:{rows:2,expandable:!0},children:e.url}),S.jsxs(xl,{size:"small",wrap:!0,children:[S.jsx(to,{color:e.method==="POST"?"blue":"green",children:e.method}),S.jsxs(yo,{type:"secondary",className:dn.metaText,children:["🕐 ",r]}),e.duration&&S.jsxs(yo,{type:"secondary",className:dn.metaText,children:["⏱️ ",e.duration,"ms"]}),e.response&&S.jsxs(to,{color:s?"success":"error",children:["HTTP ",e.response.status]})]})]}),d&&S.jsx("div",{className:dn.tokenStatsBox,children:S.jsxs("div",{className:dn.tokenGrid,children:[S.jsxs("div",{className:dn.tokenRows,children:[S.jsxs("div",{className:dn.tokenRow,children:[S.jsx("span",{className:dn.tokenLabel,children:"Token"}),S.jsxs("span",{className:dn.tokenTd,children:["input: ",$i(d.input)]}),S.jsxs("span",{className:dn.tokenTd,children:["output: ",$i(d.output)]})]}),S.jsxs("div",{className:`${dn.tokenRow} ${dn.tokenRowBorder}`,children:[S.jsx("span",{className:dn.tokenLabel,children:"Cache"}),S.jsxs("span",{className:dn.tokenTd,children:["create: ",$i(d.cacheCreate)]}),S.jsxs("span",{className:dn.tokenTd,children:["read: ",$i(d.cacheRead)]})]})]}),S.jsxs("div",{className:dn.tokenHitRate,children:[S.jsxs("div",{children:[d.hitRate,"%"]}),S.jsx("div",{className:dn.tokenHitRateLabel,children:J("ui.hitRate")})]})]})})]}),S.jsx(eb,{activeKey:n,onChange:i,items:c,size:"small"})]})}}const WCe=["system-reminder","local-command-caveat","project-reminder","important-instruction-reminders","file-modified-reminder","todo-reminder","user-prompt-submit-hook","local-command-stdout","command-name","task-notification","environment_details","context"];function VCe(t){if(!t)return{segments:[]};const e=new RegExp("<("+WCe.join("|")+")\\b[^>]*>([\\s\\S]*?)</\\1>","gi"),n=[];let i=0,r;for(;(r=e.exec(t))!==null;){if(r.index>i){const s=t.slice(i,r.index).trim();s&&n.push({type:"text",content:s})}n.push({type:"system-tag",tag:r[1],content:r[2].trim()}),i=r.index+r[0].length}if(i<t.length){const s=t.slice(i).trim();s&&n.push({type:"text",content:s})}return{segments:n}}function BCe(t){const{segments:e}=VCe(t);return e.length===0?{segments:[]}:{segments:e}}const YCe="_avatar_16qh5_3",UCe="_avatarImg_16qh5_13",DCe="_messageRow_16qh5_34",qCe="_messageRowEnd_16qh5_40",ZCe="_contentCol_16qh5_49",FCe="_contentColLimited_16qh5_54",GCe="_labelRow_16qh5_62",HCe="_labelRowEnd_16qh5_69",KCe="_labelRight_16qh5_76",JCe="_labelText_16qh5_84",e2e="_timeText_16qh5_88",t2e="_timeTextNoMargin_16qh5_94",n2e="_labelTextRight_16qh5_100",i2e="_bubbleUser_16qh5_107 _bubble_16qh5_21",r2e="_bubbleAssistant_16qh5_113 _bubble_16qh5_21",s2e="_bubbleHighlight_16qh5_121",o2e="_bubbleHighlightFading_16qh5_125",a2e="_borderSvg_16qh5_130",l2e="_borderSvgFading_16qh5_139",c2e="_borderRect_16qh5_144",u2e="_bubblePlan_16qh5_153 _bubble_16qh5_21",d2e="_bubbleSubAgent_16qh5_161 _bubble_16qh5_21",h2e="_systemTagLabel_16qh5_175",O2e="_skillLabel_16qh5_179",f2e="_systemTagPre_16qh5_184",p2e="_collapseMargin_16qh5_192",m2e="_collapseNoMargin_16qh5_196",g2e="_thinkingLabel_16qh5_202",v2e="_bashCollapseLabel_16qh5_206",$2e="_toolBox_16qh5_213",S2e="_toolLabel_16qh5_222",b2e="_codePre_16qh5_228",y2e="_pathTag_16qh5_240",_2e="_pathTagClickable_16qh5_245",x2e="_descSpan_16qh5_258",Q2e="_secondarySpan_16qh5_263",w2e="_patternSpan_16qh5_267",P2e="_kvContainer_16qh5_273",C2e="_kvItem_16qh5_278",T2e="_kvKey_16qh5_282",k2e="_kvValue_16qh5_286",R2e="_toolResult_16qh5_292",E2e="_toolResultLabel_16qh5_301",X2e="_compactLabel_16qh5_307",z2e="_compactPre_16qh5_312",j2e="_viewRequestBtn_16qh5_322",M2e="_optionList_16qh5_336",N2e="_optionDesc_16qh5_340",I2e="_questionSpacing_16qh5_354",A2e="_askQuestionBox_16qh5_367",L2e="_askQuestionHeader_16qh5_376",W2e="_askQuestionText_16qh5_387",V2e="_askOptionItem_16qh5_393",B2e="_askOptionSelected_16qh5_402",Y2e="_askCheckSvg_16qh5_407",U2e="_planModeBox_16qh5_414",D2e="_planModeLabel_16qh5_423",q2e="_planModePermissions_16qh5_428",Z2e="_planModePermLabel_16qh5_434",F2e="_planModeHeader_16qh5_440",G2e="_planStatusBadge_16qh5_446",H2e="_planStatusApproved_16qh5_454",K2e="_planStatusRejected_16qh5_463",J2e="_planStatusPending_16qh5_472",eTe="_planFeedback_16qh5_481",tTe="_planFeedbackLabel_16qh5_490",nTe="_planApprovalActions_16qh5_495",iTe="_planApproveBtn_16qh5_501",rTe="_planRejectBtn_16qh5_516",sTe="_planOptionBtn_16qh5_531",oTe="_planFeedbackInputWrap_16qh5_546",aTe="_planFeedbackTextarea_16qh5_550",lTe="_planFeedbackBtnRow_16qh5_570",cTe="_planFeedbackSendBtn_16qh5_577",uTe="_planFeedbackCancelBtn_16qh5_597",dTe="_askQuestionInteractive_16qh5_614",hTe="_askRadioGroup_16qh5_623",OTe="_askRadioItem_16qh5_631",fTe="_askRadioItemSelected_16qh5_646",pTe="_askRadioDot_16qh5_650",mTe="_askCheckboxGroup_16qh5_657",gTe="_askOtherInput_16qh5_683",vTe="_askSubmitRow_16qh5_696",$Te="_askSubmitBtn_16qh5_702",STe="_askMarkdownLayout_16qh5_722",bTe="_askMarkdownPreview_16qh5_733",Be={avatar:YCe,avatarImg:UCe,messageRow:DCe,messageRowEnd:qCe,contentCol:ZCe,contentColLimited:FCe,labelRow:GCe,labelRowEnd:HCe,labelRight:KCe,labelText:JCe,timeText:e2e,timeTextNoMargin:t2e,labelTextRight:n2e,bubbleUser:i2e,bubbleAssistant:r2e,bubbleHighlight:s2e,bubbleHighlightFading:o2e,borderSvg:a2e,borderSvgFading:l2e,borderRect:c2e,bubblePlan:u2e,bubbleSubAgent:d2e,systemTagLabel:h2e,skillLabel:O2e,systemTagPre:f2e,collapseMargin:p2e,collapseNoMargin:m2e,thinkingLabel:g2e,bashCollapseLabel:v2e,toolBox:$2e,toolLabel:S2e,codePre:b2e,pathTag:y2e,pathTagClickable:_2e,descSpan:x2e,secondarySpan:Q2e,patternSpan:w2e,kvContainer:P2e,kvItem:C2e,kvKey:T2e,kvValue:k2e,toolResult:R2e,toolResultLabel:E2e,compactLabel:X2e,compactPre:z2e,viewRequestBtn:j2e,optionList:M2e,optionDesc:N2e,questionSpacing:I2e,askQuestionBox:A2e,askQuestionHeader:L2e,askQuestionText:W2e,askOptionItem:V2e,askOptionSelected:B2e,askCheckSvg:Y2e,planModeBox:U2e,planModeLabel:D2e,planModePermissions:q2e,planModePermLabel:Z2e,planModeHeader:F2e,planStatusBadge:G2e,planStatusApproved:H2e,planStatusRejected:K2e,planStatusPending:J2e,planFeedback:eTe,planFeedbackLabel:tTe,planApprovalActions:nTe,planApproveBtn:iTe,planRejectBtn:rTe,planOptionBtn:sTe,planFeedbackInputWrap:oTe,planFeedbackTextarea:aTe,planFeedbackBtnRow:lTe,planFeedbackSendBtn:cTe,planFeedbackCancelBtn:uTe,askQuestionInteractive:dTe,askRadioGroup:hTe,askRadioItem:OTe,askRadioItemSelected:fTe,askRadioDot:pTe,askCheckboxGroup:mTe,askOtherInput:gTe,askSubmitRow:vTe,askSubmitBtn:$Te,askMarkdownLayout:STe,askMarkdownPreview:bTe};class yTe extends ie.Component{constructor(e){super(e),this.state={selections:{},multiSelections:{},otherActive:{},otherText:{},submitting:!1}}render(){const{questions:e,onSubmit:n}=this.props,i=Array.isArray(e)?e:[],{selections:r,multiSelections:s,otherActive:o,otherText:a,submitting:l}=this.state,c=i.every((d,h)=>{if(o[h])return(a[h]||"").trim().length>0;if(d.multiSelect){const p=s[h];return p&&p.size>0}return r[h]!=null}),u=()=>{if(!c||l)return;this.setState({submitting:!0});const d=i.map((h,p)=>{if(o[p]){const $=(h.options||[]).length;return{questionIndex:p,type:"other",optionIndex:$,text:(a[p]||"").trim(),isMultiSelect:!!h.multiSelect}}if(h.multiSelect){const $=s[p]||new Set,y=[];return(h.options||[]).forEach((_,x)=>{$.has(_.label)&&y.push(x)}),{questionIndex:p,type:"multi",selectedIndices:y}}const g=r[p],v=(h.options||[]).findIndex($=>$.label===g);return{questionIndex:p,type:"single",optionIndex:v}});n&&n(d)};return S.jsxs("div",{className:Be.askQuestionInteractive,children:[i.map((d,h)=>{var _;const p=d.multiSelect,g=!p&&((_=d.options)==null?void 0:_.some(x=>x.preview)),v=r[h],$=g&&v?(d.options.find(x=>x.label===v)||{}).preview:null,y=S.jsxs("div",{children:[d.header&&S.jsx("span",{className:Be.askQuestionHeader,children:d.header}),S.jsx("div",{className:Be.askQuestionText,children:d.question}),p?S.jsxs("div",{className:Be.askCheckboxGroup,children:[(d.options||[]).map((x,Q)=>{const w=!!(s[h]&&s[h].has(x.label));return S.jsxs("div",{className:`${Be.askRadioItem}${w?" "+Be.askRadioItemSelected:""}`,onClick:()=>{this.setState(P=>{const T=P.multiSelections[h]||new Set,z=new Set(T);return z.has(x.label)?z.delete(x.label):z.add(x.label),{multiSelections:{...P.multiSelections,[h]:z},otherActive:{...P.otherActive,[h]:!1}}})},children:[S.jsx("span",{className:Be.askRadioDot,children:w?"☑":"☐"}),x.label,x.description&&S.jsxs("span",{className:Be.optionDesc,children:["— ",x.description]})]},Q)}),!(d.options||[]).some(x=>/^other$/i.test(x.label))&&S.jsxs("div",{className:`${Be.askRadioItem}${o[h]?" "+Be.askRadioItemSelected:""}`,onClick:()=>{this.setState(x=>({otherActive:{...x.otherActive,[h]:!0},multiSelections:{...x.multiSelections,[h]:new Set}}))},children:[S.jsx("span",{className:Be.askRadioDot,children:o[h]?"☑":"☐"}),J("ui.askOther")]})]}):S.jsxs("div",{className:Be.askRadioGroup,children:[(d.options||[]).map((x,Q)=>{const w=/^other$/i.test(x.label),P=w?o[h]:!o[h]&&v===x.label;return S.jsxs("div",{className:`${Be.askRadioItem}${P?" "+Be.askRadioItemSelected:""}`,onClick:()=>{w?this.setState(T=>({otherActive:{...T.otherActive,[h]:!0},selections:{...T.selections,[h]:void 0}})):this.setState(T=>({selections:{...T.selections,[h]:x.label},otherActive:{...T.otherActive,[h]:!1}}))},children:[S.jsx("span",{className:Be.askRadioDot,children:P?"◉":"○"}),x.label,x.description&&S.jsxs("span",{className:Be.optionDesc,children:["— ",x.description]})]},Q)}),!(d.options||[]).some(x=>/^other$/i.test(x.label))&&S.jsxs("div",{className:`${Be.askRadioItem}${o[h]?" "+Be.askRadioItemSelected:""}`,onClick:()=>{this.setState(x=>({otherActive:{...x.otherActive,[h]:!0},selections:{...x.selections,[h]:void 0}}))},children:[S.jsx("span",{className:Be.askRadioDot,children:o[h]?"◉":"○"}),J("ui.askOther")]})]}),o[h]&&S.jsx("div",{className:Be.askOtherInput,children:S.jsx(Cc,{size:"small",placeholder:J("ui.askOtherPlaceholder"),value:a[h]||"",onChange:x=>this.setState(Q=>({otherText:{...Q.otherText,[h]:x.target.value}})),onPressEnter:()=>{c&&!l&&u()},autoFocus:!0})})]});return S.jsx("div",{className:h<i.length-1?Be.questionSpacing:void 0,children:g?S.jsxs("div",{className:Be.askMarkdownLayout,children:[y,S.jsx("div",{className:Be.askMarkdownPreview,children:$?S.jsx("pre",{children:$}):S.jsx("span",{style:{color:"#6b7280"},children:"—"})})]}):y},h)}),S.jsx("div",{className:Be.askSubmitRow,children:S.jsx("button",{className:Be.askSubmitBtn,disabled:!c||l,onClick:u,children:J(l?"ui.askSubmitting":"ui.askSubmit")})})]})}}class _Te{diff(e,n,i={}){let r;typeof i=="function"?(r=i,i={}):"callback"in i&&(r=i.callback);const s=this.castInput(e,i),o=this.castInput(n,i),a=this.removeEmpty(this.tokenize(s,i)),l=this.removeEmpty(this.tokenize(o,i));return this.diffWithOptionsObj(a,l,i,r)}diffWithOptionsObj(e,n,i,r){var s;const o=_=>{if(_=this.postProcess(_,i),r){setTimeout(function(){r(_)},0);return}else return _},a=n.length,l=e.length;let c=1,u=a+l;i.maxEditLength!=null&&(u=Math.min(u,i.maxEditLength));const d=(s=i.timeout)!==null&&s!==void 0?s:1/0,h=Date.now()+d,p=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(p[0],n,e,0,i);if(p[0].oldPos+1>=l&&g+1>=a)return o(this.buildValues(p[0].lastComponent,n,e));let v=-1/0,$=1/0;const y=()=>{for(let _=Math.max(v,-c);_<=Math.min($,c);_+=2){let x;const Q=p[_-1],w=p[_+1];Q&&(p[_-1]=void 0);let P=!1;if(w){const z=w.oldPos-_;P=w&&0<=z&&z<a}const T=Q&&Q.oldPos+1<l;if(!P&&!T){p[_]=void 0;continue}if(!T||P&&Q.oldPos<w.oldPos?x=this.addToPath(w,!0,!1,0,i):x=this.addToPath(Q,!1,!0,1,i),g=this.extractCommon(x,n,e,_,i),x.oldPos+1>=l&&g+1>=a)return o(this.buildValues(x.lastComponent,n,e))||!0;p[_]=x,x.oldPos+1>=l&&($=Math.min($,_-1)),g+1>=a&&(v=Math.max(v,_+1))}c++};if(r)(function _(){setTimeout(function(){if(c>u||Date.now()>h)return r(void 0);y()||_()},0)})();else for(;c<=u&&Date.now()<=h;){const _=y();if(_)return _}}addToPath(e,n,i,r,s){const o=e.lastComponent;return o&&!s.oneChangePerToken&&o.added===n&&o.removed===i?{oldPos:e.oldPos+r,lastComponent:{count:o.count+1,added:n,removed:i,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:n,removed:i,previousComponent:o}}}extractCommon(e,n,i,r,s){const o=n.length,a=i.length;let l=e.oldPos,c=l-r,u=0;for(;c+1<o&&l+1<a&&this.equals(i[l+1],n[c+1],s);)c++,l++,u++,s.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!s.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,c}equals(e,n,i){return i.comparator?i.comparator(e,n):e===n||!!i.ignoreCase&&e.toLowerCase()===n.toLowerCase()}removeEmpty(e){const n=[];for(let i=0;i<e.length;i++)e[i]&&n.push(e[i]);return n}castInput(e,n){return e}tokenize(e,n){return Array.from(e)}join(e){return e.join("")}postProcess(e,n){return e}get useLongestToken(){return!1}buildValues(e,n,i){const r=[];let s;for(;e;)r.push(e),s=e.previousComponent,delete e.previousComponent,e=s;r.reverse();const o=r.length;let a=0,l=0,c=0;for(;a<o;a++){const u=r[a];if(u.removed)u.value=this.join(i.slice(c,c+u.count)),c+=u.count;else{if(!u.added&&this.useLongestToken){let d=n.slice(l,l+u.count);d=d.map(function(h,p){const g=i[c+p];return g.length>h.length?g:h}),u.value=this.join(d)}else u.value=this.join(n.slice(l,l+u.count));l+=u.count,u.added||(c+=u.count)}}return r}}class xTe extends _Te{constructor(){super(...arguments),this.tokenize=wTe}equals(e,n,i){return i.ignoreWhitespace?((!i.newlineIsToken||!e.includes(`
650
+ `)},_=v.messages.map((Q,w)=>({text:Q,msgIdx:w})).filter(({text:Q})=>Q.startsWith("[user]")).map(({text:Q,msgIdx:w})=>{const P=Q.replace(/^\[user\]\s*/,"").trim();return!P||Cu(P)?{cleaned:"",msgIdx:w}:{cleaned:P1.parseSegments(P).filter(E=>E.type==="text").map(E=>E.content.trim()).filter(E=>E&&!Cu(E)).join(" ").trim(),msgIdx:w}}).filter(({cleaned:Q})=>!(!Q||/Implement the following plan:/i.test(Q))),x=_.length>0?S.jsx("div",{style:{width:600,maxHeight:300,overflowY:"auto"},children:_.map(({cleaned:Q,msgIdx:w})=>S.jsx("div",{style:{padding:"4px 8px",fontSize:12,color:"#ccc",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",borderRadius:3},onMouseEnter:P=>{P.currentTarget.style.background="rgba(22,104,220,0.2)",P.currentTarget.style.color="#fff"},onMouseLeave:P=>{P.currentTarget.style.background="",P.currentTarget.style.color="#ccc"},onClick:()=>this.scrollToCacheMsg(w),children:Q},w))}):null;return S.jsxs("div",{style:{padding:"8px 0",height:"100%",display:"flex",flexDirection:"column"},children:[(()=>{const w=v.cacheCreateTokens>0||v.cacheReadTokens>0?v:this._lastCachedTokensKey===$?this._lastCachedTokens:null;return w||x?S.jsxs("div",{style:{display:"flex",alignItems:"center",fontSize:12,fontFamily:"monospace",color:"#aaa",marginBottom:12,flexShrink:0},children:[w&&S.jsxs(S.Fragment,{children:[J("ui.tokens"),": ",S.jsxs("span",{style:{color:"#faad14"},children:["write ",$i(w.cacheCreateTokens)]})," / ",S.jsxs("span",{style:{color:"#52c41a"},children:["read ",$i(w.cacheReadTokens)]}),S.jsx(Pd,{style:{marginLeft:8,cursor:"pointer",color:"#888",transition:"color 0.2s"},onClick:()=>{navigator.clipboard.writeText(y()).then(()=>{Tn.success(J("ui.copied"))}).catch(()=>{})}})]}),x&&S.jsx(Sl,{content:x,trigger:"hover",placement:"left",children:S.jsx("span",{style:{marginLeft:"auto",fontSize:11,color:"#1668dc",cursor:"pointer",border:"1px solid #1668dc",borderRadius:3,padding:"1px 6px",whiteSpace:"nowrap"},children:J("ui.userPromptNav")})})]}):null})(),S.jsxs("div",{style:{flex:1,overflowY:"auto",minHeight:0},ref:Q=>{this._cacheScrollEl=Q},children:[v.system.length>0&&S.jsxs("div",{style:{marginBottom:12},children:[S.jsxs("div",{style:{fontSize:13,fontWeight:600,color:"#e5e5e5",marginBottom:6},children:[J("ui.systemPrompt")," (",v.system.length,")"]}),v.system.map((Q,w)=>S.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.5,color:"#ccc",background:"#0d1b2a",border:"1px solid #1b3a5c",borderRadius:4,padding:8,margin:"4px 0",fontFamily:"Menlo, Monaco, monospace"},children:Q},w))]}),v.messages.length>0&&S.jsxs("div",{style:{marginBottom:12},children:[S.jsxs("div",{style:{fontSize:13,fontWeight:600,color:"#e5e5e5",marginBottom:6},children:[J("ui.messages")," (",v.messages.length,")"]}),v.messages.map((Q,w)=>{const P=w===this.state.cacheHighlightIdx,T=P?this.state.cacheHighlightFading?{boxShadow:"0 0 10px rgba(22,104,220,0)",transition:"box-shadow 3s ease-out",position:"relative"}:{boxShadow:"0 0 10px rgba(22,104,220,0.6)",transition:"box-shadow 0.2s ease-in",position:"relative"}:{};return S.jsxs("pre",{"data-msg-idx":w,style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.5,color:"#ccc",background:"#111",border:"1px solid #2a2a2a",borderRadius:4,padding:8,margin:"4px 0",fontFamily:"Menlo, Monaco, monospace",...T},children:[P&&S.jsx("svg",{style:{position:"absolute",inset:0,width:"100%",height:"100%",pointerEvents:"none",overflow:"visible",opacity:this.state.cacheHighlightFading?0:1,transition:this.state.cacheHighlightFading?"opacity 3s ease-out":void 0},preserveAspectRatio:"none",children:S.jsx("rect",{x:"0.5",y:"0.5",width:"calc(100% - 1px)",height:"calc(100% - 1px)",rx:"4",ry:"4",fill:"none",stroke:"#1668dc",strokeWidth:"1",strokeDasharray:"6 4",children:S.jsx("animate",{attributeName:"stroke-dashoffset",from:"0",to:"-100",dur:"4s",repeatCount:"indefinite"})})}),Q]},w)})]}),v.tools.length>0&&S.jsxs("div",{style:{marginBottom:12},children:[S.jsxs("div",{style:{fontSize:13,fontWeight:600,color:"#e5e5e5",marginBottom:6},children:[J("ui.tools")," (",v.tools.length,")"]}),v.tools.map((Q,w)=>S.jsx("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.5,color:"#ccc",background:"#111",border:"1px solid #2a2a2a",borderRadius:4,padding:8,margin:"4px 0",fontFamily:"Menlo, Monaco, monospace"},children:Q},w))]})]})]})})()})},{key:"context",label:"Context",children:S.jsx("div",{className:dn.tabContent,style:{height:"calc(100vh - 220px)",minHeight:400},children:S.jsx(uCe,{body:e.body,response:(h=e.response)==null?void 0:h.body})})}],u=(g=(p=e.response)==null?void 0:p.body)==null?void 0:g.usage,d=u?(()=>{const v=u.input_tokens||0,$=u.output_tokens||0,y=u.cache_creation_input_tokens||0,_=u.cache_read_input_tokens||0,x=v+y+_,Q=x>0?(_/x*100).toFixed(1):"0.0";return{input:v,output:$,cacheCreate:y,cacheRead:_,hitRate:Q}})():null;return S.jsxs("div",{className:dn.container,children:[S.jsxs("div",{className:dn.urlSection,children:[S.jsxs("div",{className:dn.urlLeft,children:[S.jsx(ACe,{className:dn.urlText,ellipsis:{rows:2,expandable:!0},children:e.url}),S.jsxs(xl,{size:"small",wrap:!0,children:[S.jsx(to,{color:e.method==="POST"?"blue":"green",children:e.method}),S.jsxs(yo,{type:"secondary",className:dn.metaText,children:["🕐 ",r]}),e.duration&&S.jsxs(yo,{type:"secondary",className:dn.metaText,children:["⏱️ ",e.duration,"ms"]}),e.response&&S.jsxs(to,{color:s?"success":"error",children:["HTTP ",e.response.status]})]})]}),d&&S.jsx("div",{className:dn.tokenStatsBox,children:S.jsxs("div",{className:dn.tokenGrid,children:[S.jsxs("div",{className:dn.tokenRows,children:[S.jsxs("div",{className:dn.tokenRow,children:[S.jsx("span",{className:dn.tokenLabel,children:"Token"}),S.jsxs("span",{className:dn.tokenTd,children:["input: ",$i(d.input)]}),S.jsxs("span",{className:dn.tokenTd,children:["output: ",$i(d.output)]})]}),S.jsxs("div",{className:`${dn.tokenRow} ${dn.tokenRowBorder}`,children:[S.jsx("span",{className:dn.tokenLabel,children:"Cache"}),S.jsxs("span",{className:dn.tokenTd,children:["create: ",$i(d.cacheCreate)]}),S.jsxs("span",{className:dn.tokenTd,children:["read: ",$i(d.cacheRead)]})]})]}),S.jsxs("div",{className:dn.tokenHitRate,children:[S.jsxs("div",{children:[d.hitRate,"%"]}),S.jsx("div",{className:dn.tokenHitRateLabel,children:J("ui.hitRate")})]})]})})]}),S.jsx(eb,{activeKey:n,onChange:i,items:c,size:"small"})]})}}const WCe=["system-reminder","local-command-caveat","project-reminder","important-instruction-reminders","file-modified-reminder","todo-reminder","user-prompt-submit-hook","local-command-stdout","command-name","task-notification","environment_details","context"];function VCe(t){if(!t)return{segments:[]};const e=new RegExp("<("+WCe.join("|")+")\\b[^>]*>([\\s\\S]*?)</\\1>","gi"),n=[];let i=0,r;for(;(r=e.exec(t))!==null;){if(r.index>i){const s=t.slice(i,r.index).trim();s&&n.push({type:"text",content:s})}n.push({type:"system-tag",tag:r[1],content:r[2].trim()}),i=r.index+r[0].length}if(i<t.length){const s=t.slice(i).trim();s&&n.push({type:"text",content:s})}return{segments:n}}function BCe(t){const{segments:e}=VCe(t);return e.length===0?{segments:[]}:{segments:e}}const YCe="_avatar_drlif_3",UCe="_avatarImg_drlif_13",DCe="_messageRow_drlif_34",qCe="_messageRowEnd_drlif_40",ZCe="_contentCol_drlif_49",FCe="_contentColLimited_drlif_53",GCe="_labelRow_drlif_61",HCe="_labelRowEnd_drlif_68",KCe="_labelRight_drlif_75",JCe="_labelText_drlif_83",e2e="_timeText_drlif_87",t2e="_timeTextNoMargin_drlif_93",n2e="_labelTextRight_drlif_99",i2e="_bubbleUser_drlif_106 _bubble_drlif_21",r2e="_bubbleAssistant_drlif_112 _bubble_drlif_21",s2e="_bubbleHighlight_drlif_120",o2e="_bubbleHighlightFading_drlif_124",a2e="_borderSvg_drlif_129",l2e="_borderSvgFading_drlif_138",c2e="_borderRect_drlif_143",u2e="_bubblePlan_drlif_152 _bubble_drlif_21",d2e="_bubbleSubAgent_drlif_160 _bubble_drlif_21",h2e="_systemTagLabel_drlif_174",O2e="_skillLabel_drlif_178",f2e="_systemTagPre_drlif_183",p2e="_collapseMargin_drlif_191",m2e="_collapseNoMargin_drlif_195",g2e="_thinkingLabel_drlif_201",v2e="_bashCollapseLabel_drlif_205",$2e="_toolBox_drlif_212",S2e="_toolLabel_drlif_221",b2e="_codePre_drlif_227",y2e="_pathTag_drlif_239",_2e="_pathTagClickable_drlif_244",x2e="_descSpan_drlif_257",Q2e="_secondarySpan_drlif_262",w2e="_patternSpan_drlif_266",P2e="_kvContainer_drlif_272",C2e="_kvItem_drlif_277",T2e="_kvKey_drlif_281",k2e="_kvValue_drlif_285",R2e="_toolResult_drlif_291",E2e="_toolResultLabel_drlif_300",X2e="_compactLabel_drlif_306",z2e="_compactPre_drlif_311",j2e="_viewRequestBtn_drlif_321",M2e="_optionList_drlif_335",N2e="_optionDesc_drlif_339",I2e="_questionSpacing_drlif_353",A2e="_askQuestionBox_drlif_366",L2e="_askQuestionHeader_drlif_375",W2e="_askQuestionText_drlif_386",V2e="_askOptionItem_drlif_392",B2e="_askOptionSelected_drlif_401",Y2e="_askCheckSvg_drlif_406",U2e="_planModeBox_drlif_413",D2e="_planModeLabel_drlif_422",q2e="_planModePermissions_drlif_427",Z2e="_planModePermLabel_drlif_433",F2e="_planModeHeader_drlif_439",G2e="_planStatusBadge_drlif_445",H2e="_planStatusApproved_drlif_453",K2e="_planStatusRejected_drlif_462",J2e="_planStatusPending_drlif_471",eTe="_planFeedback_drlif_480",tTe="_planFeedbackLabel_drlif_489",nTe="_planApprovalActions_drlif_494",iTe="_planApproveBtn_drlif_500",rTe="_planRejectBtn_drlif_515",sTe="_planOptionBtn_drlif_530",oTe="_planFeedbackInputWrap_drlif_545",aTe="_planFeedbackTextarea_drlif_549",lTe="_planFeedbackBtnRow_drlif_569",cTe="_planFeedbackSendBtn_drlif_576",uTe="_planFeedbackCancelBtn_drlif_596",dTe="_askQuestionInteractive_drlif_613",hTe="_askRadioGroup_drlif_622",OTe="_askRadioItem_drlif_630",fTe="_askRadioItemSelected_drlif_645",pTe="_askRadioDot_drlif_649",mTe="_askCheckboxGroup_drlif_656",gTe="_askOtherInput_drlif_682",vTe="_askSubmitRow_drlif_695",$Te="_askSubmitBtn_drlif_701",STe="_askMarkdownLayout_drlif_721",bTe="_askMarkdownPreview_drlif_732",Be={avatar:YCe,avatarImg:UCe,messageRow:DCe,messageRowEnd:qCe,contentCol:ZCe,contentColLimited:FCe,labelRow:GCe,labelRowEnd:HCe,labelRight:KCe,labelText:JCe,timeText:e2e,timeTextNoMargin:t2e,labelTextRight:n2e,bubbleUser:i2e,bubbleAssistant:r2e,bubbleHighlight:s2e,bubbleHighlightFading:o2e,borderSvg:a2e,borderSvgFading:l2e,borderRect:c2e,bubblePlan:u2e,bubbleSubAgent:d2e,systemTagLabel:h2e,skillLabel:O2e,systemTagPre:f2e,collapseMargin:p2e,collapseNoMargin:m2e,thinkingLabel:g2e,bashCollapseLabel:v2e,toolBox:$2e,toolLabel:S2e,codePre:b2e,pathTag:y2e,pathTagClickable:_2e,descSpan:x2e,secondarySpan:Q2e,patternSpan:w2e,kvContainer:P2e,kvItem:C2e,kvKey:T2e,kvValue:k2e,toolResult:R2e,toolResultLabel:E2e,compactLabel:X2e,compactPre:z2e,viewRequestBtn:j2e,optionList:M2e,optionDesc:N2e,questionSpacing:I2e,askQuestionBox:A2e,askQuestionHeader:L2e,askQuestionText:W2e,askOptionItem:V2e,askOptionSelected:B2e,askCheckSvg:Y2e,planModeBox:U2e,planModeLabel:D2e,planModePermissions:q2e,planModePermLabel:Z2e,planModeHeader:F2e,planStatusBadge:G2e,planStatusApproved:H2e,planStatusRejected:K2e,planStatusPending:J2e,planFeedback:eTe,planFeedbackLabel:tTe,planApprovalActions:nTe,planApproveBtn:iTe,planRejectBtn:rTe,planOptionBtn:sTe,planFeedbackInputWrap:oTe,planFeedbackTextarea:aTe,planFeedbackBtnRow:lTe,planFeedbackSendBtn:cTe,planFeedbackCancelBtn:uTe,askQuestionInteractive:dTe,askRadioGroup:hTe,askRadioItem:OTe,askRadioItemSelected:fTe,askRadioDot:pTe,askCheckboxGroup:mTe,askOtherInput:gTe,askSubmitRow:vTe,askSubmitBtn:$Te,askMarkdownLayout:STe,askMarkdownPreview:bTe};class yTe extends ie.Component{constructor(e){super(e),this.state={selections:{},multiSelections:{},otherActive:{},otherText:{},submitting:!1}}render(){const{questions:e,onSubmit:n}=this.props,i=Array.isArray(e)?e:[],{selections:r,multiSelections:s,otherActive:o,otherText:a,submitting:l}=this.state,c=i.every((d,h)=>{if(o[h])return(a[h]||"").trim().length>0;if(d.multiSelect){const p=s[h];return p&&p.size>0}return r[h]!=null}),u=()=>{if(!c||l)return;this.setState({submitting:!0});const d=i.map((h,p)=>{if(o[p]){const $=(h.options||[]).length;return{questionIndex:p,type:"other",optionIndex:$,text:(a[p]||"").trim(),isMultiSelect:!!h.multiSelect}}if(h.multiSelect){const $=s[p]||new Set,y=[];return(h.options||[]).forEach((_,x)=>{$.has(_.label)&&y.push(x)}),{questionIndex:p,type:"multi",selectedIndices:y}}const g=r[p],v=(h.options||[]).findIndex($=>$.label===g);return{questionIndex:p,type:"single",optionIndex:v}});n&&n(d)};return S.jsxs("div",{className:Be.askQuestionInteractive,children:[i.map((d,h)=>{var _;const p=d.multiSelect,g=!p&&((_=d.options)==null?void 0:_.some(x=>x.preview)),v=r[h],$=g&&v?(d.options.find(x=>x.label===v)||{}).preview:null,y=S.jsxs("div",{children:[d.header&&S.jsx("span",{className:Be.askQuestionHeader,children:d.header}),S.jsx("div",{className:Be.askQuestionText,children:d.question}),p?S.jsxs("div",{className:Be.askCheckboxGroup,children:[(d.options||[]).map((x,Q)=>{const w=!!(s[h]&&s[h].has(x.label));return S.jsxs("div",{className:`${Be.askRadioItem}${w?" "+Be.askRadioItemSelected:""}`,onClick:()=>{this.setState(P=>{const T=P.multiSelections[h]||new Set,z=new Set(T);return z.has(x.label)?z.delete(x.label):z.add(x.label),{multiSelections:{...P.multiSelections,[h]:z},otherActive:{...P.otherActive,[h]:!1}}})},children:[S.jsx("span",{className:Be.askRadioDot,children:w?"☑":"☐"}),x.label,x.description&&S.jsxs("span",{className:Be.optionDesc,children:["— ",x.description]})]},Q)}),!(d.options||[]).some(x=>/^other$/i.test(x.label))&&S.jsxs("div",{className:`${Be.askRadioItem}${o[h]?" "+Be.askRadioItemSelected:""}`,onClick:()=>{this.setState(x=>({otherActive:{...x.otherActive,[h]:!0},multiSelections:{...x.multiSelections,[h]:new Set}}))},children:[S.jsx("span",{className:Be.askRadioDot,children:o[h]?"☑":"☐"}),J("ui.askOther")]})]}):S.jsxs("div",{className:Be.askRadioGroup,children:[(d.options||[]).map((x,Q)=>{const w=/^other$/i.test(x.label),P=w?o[h]:!o[h]&&v===x.label;return S.jsxs("div",{className:`${Be.askRadioItem}${P?" "+Be.askRadioItemSelected:""}`,onClick:()=>{w?this.setState(T=>({otherActive:{...T.otherActive,[h]:!0},selections:{...T.selections,[h]:void 0}})):this.setState(T=>({selections:{...T.selections,[h]:x.label},otherActive:{...T.otherActive,[h]:!1}}))},children:[S.jsx("span",{className:Be.askRadioDot,children:P?"◉":"○"}),x.label,x.description&&S.jsxs("span",{className:Be.optionDesc,children:["— ",x.description]})]},Q)}),!(d.options||[]).some(x=>/^other$/i.test(x.label))&&S.jsxs("div",{className:`${Be.askRadioItem}${o[h]?" "+Be.askRadioItemSelected:""}`,onClick:()=>{this.setState(x=>({otherActive:{...x.otherActive,[h]:!0},selections:{...x.selections,[h]:void 0}}))},children:[S.jsx("span",{className:Be.askRadioDot,children:o[h]?"◉":"○"}),J("ui.askOther")]})]}),o[h]&&S.jsx("div",{className:Be.askOtherInput,children:S.jsx(Cc,{size:"small",placeholder:J("ui.askOtherPlaceholder"),value:a[h]||"",onChange:x=>this.setState(Q=>({otherText:{...Q.otherText,[h]:x.target.value}})),onPressEnter:()=>{c&&!l&&u()},autoFocus:!0})})]});return S.jsx("div",{className:h<i.length-1?Be.questionSpacing:void 0,children:g?S.jsxs("div",{className:Be.askMarkdownLayout,children:[y,S.jsx("div",{className:Be.askMarkdownPreview,children:$?S.jsx("pre",{children:$}):S.jsx("span",{style:{color:"#6b7280"},children:"—"})})]}):y},h)}),S.jsx("div",{className:Be.askSubmitRow,children:S.jsx("button",{className:Be.askSubmitBtn,disabled:!c||l,onClick:u,children:J(l?"ui.askSubmitting":"ui.askSubmit")})})]})}}class _Te{diff(e,n,i={}){let r;typeof i=="function"?(r=i,i={}):"callback"in i&&(r=i.callback);const s=this.castInput(e,i),o=this.castInput(n,i),a=this.removeEmpty(this.tokenize(s,i)),l=this.removeEmpty(this.tokenize(o,i));return this.diffWithOptionsObj(a,l,i,r)}diffWithOptionsObj(e,n,i,r){var s;const o=_=>{if(_=this.postProcess(_,i),r){setTimeout(function(){r(_)},0);return}else return _},a=n.length,l=e.length;let c=1,u=a+l;i.maxEditLength!=null&&(u=Math.min(u,i.maxEditLength));const d=(s=i.timeout)!==null&&s!==void 0?s:1/0,h=Date.now()+d,p=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(p[0],n,e,0,i);if(p[0].oldPos+1>=l&&g+1>=a)return o(this.buildValues(p[0].lastComponent,n,e));let v=-1/0,$=1/0;const y=()=>{for(let _=Math.max(v,-c);_<=Math.min($,c);_+=2){let x;const Q=p[_-1],w=p[_+1];Q&&(p[_-1]=void 0);let P=!1;if(w){const z=w.oldPos-_;P=w&&0<=z&&z<a}const T=Q&&Q.oldPos+1<l;if(!P&&!T){p[_]=void 0;continue}if(!T||P&&Q.oldPos<w.oldPos?x=this.addToPath(w,!0,!1,0,i):x=this.addToPath(Q,!1,!0,1,i),g=this.extractCommon(x,n,e,_,i),x.oldPos+1>=l&&g+1>=a)return o(this.buildValues(x.lastComponent,n,e))||!0;p[_]=x,x.oldPos+1>=l&&($=Math.min($,_-1)),g+1>=a&&(v=Math.max(v,_+1))}c++};if(r)(function _(){setTimeout(function(){if(c>u||Date.now()>h)return r(void 0);y()||_()},0)})();else for(;c<=u&&Date.now()<=h;){const _=y();if(_)return _}}addToPath(e,n,i,r,s){const o=e.lastComponent;return o&&!s.oneChangePerToken&&o.added===n&&o.removed===i?{oldPos:e.oldPos+r,lastComponent:{count:o.count+1,added:n,removed:i,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:n,removed:i,previousComponent:o}}}extractCommon(e,n,i,r,s){const o=n.length,a=i.length;let l=e.oldPos,c=l-r,u=0;for(;c+1<o&&l+1<a&&this.equals(i[l+1],n[c+1],s);)c++,l++,u++,s.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!s.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,c}equals(e,n,i){return i.comparator?i.comparator(e,n):e===n||!!i.ignoreCase&&e.toLowerCase()===n.toLowerCase()}removeEmpty(e){const n=[];for(let i=0;i<e.length;i++)e[i]&&n.push(e[i]);return n}castInput(e,n){return e}tokenize(e,n){return Array.from(e)}join(e){return e.join("")}postProcess(e,n){return e}get useLongestToken(){return!1}buildValues(e,n,i){const r=[];let s;for(;e;)r.push(e),s=e.previousComponent,delete e.previousComponent,e=s;r.reverse();const o=r.length;let a=0,l=0,c=0;for(;a<o;a++){const u=r[a];if(u.removed)u.value=this.join(i.slice(c,c+u.count)),c+=u.count;else{if(!u.added&&this.useLongestToken){let d=n.slice(l,l+u.count);d=d.map(function(h,p){const g=i[c+p];return g.length>h.length?g:h}),u.value=this.join(d)}else u.value=this.join(n.slice(l,l+u.count));l+=u.count,u.added||(c+=u.count)}}return r}}class xTe extends _Te{constructor(){super(...arguments),this.tokenize=wTe}equals(e,n,i){return i.ignoreWhitespace?((!i.newlineIsToken||!e.includes(`
651
651
  `))&&(e=e.trim()),(!i.newlineIsToken||!n.includes(`
652
652
  `))&&(n=n.trim())):i.ignoreNewlineAtEof&&!i.newlineIsToken&&(e.endsWith(`
653
653
  `)&&(e=e.slice(0,-1)),n.endsWith(`
@@ -29,7 +29,7 @@ body{margin:0;background-color:#0d0d0d}::selection{background-color:#264f78;colo
29
29
  * The original design remains. The terminal itself
30
30
  * has been extended to include xterm CSI codes, among
31
31
  * other features.
32
- */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}._terminalPanel_9197g_1{height:100%;display:flex;flex-direction:column;background:#0a0a0a}._terminalContainer_9197g_8{flex:1;overflow:hidden;padding:4px 8px;touch-action:none;overscroll-behavior:contain}._terminalContainer_9197g_8 .xterm-helper-textarea{caret-color:transparent!important}._terminalToolbar_9197g_21{height:35px;flex-shrink:0;display:flex;align-items:center;padding:0 8px;gap:4px;border-top:1px solid #1f1f1f;background:#0d0d0d}._toolbarBtn_9197g_32{display:flex;align-items:center;gap:4px;height:26px;padding:0 10px;border:1px solid #333;border-radius:4px;background:#1a1a1a;color:#aaa;font-size:12px;cursor:pointer;white-space:nowrap}._toolbarBtn_9197g_32:hover{background:#2a2a2a;color:#ddd;border-color:#555}._toolbarBtnDisabled_9197g_53{opacity:.4;cursor:not-allowed}._toolbarBtnDisabled_9197g_53:hover{background:#1a1a1a;color:#aaa;border-color:#333}._toolbarBtn_9197g_32 svg{width:14px;height:14px}._virtualKeybar_9197g_68{display:flex;gap:6px;padding:8px 10px;background:#111;border-top:1px solid #222;overflow-x:auto;flex-shrink:0;-webkit-overflow-scrolling:touch}._virtualKey_9197g_68{flex-shrink:0;padding:12px 20px;border:1px solid #333;border-radius:8px;background:#1a1a1a;color:#ccc;font-size:15px;font-family:Menlo,Monaco,monospace;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:pan-x;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}._virtualKeyPressed_9197g_99{background:#333;border-color:#555;color:#fff}._helpBtn_ovmho_1{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#1a1a1a;border:1px solid #444;color:#aaa;font-size:11px;line-height:1;cursor:pointer;margin-left:4px;vertical-align:middle;transition:background .2s;-webkit-user-select:none;user-select:none}._helpBtn_ovmho_1:hover{background:#333}._modalBody_ovmho_24{max-height:60vh;overflow-y:auto;overflow-x:hidden;line-height:1.7;color:#d9d9d9;word-break:break-word}._modalBody_ovmho_24 h1,._modalBody_ovmho_24 h2,._modalBody_ovmho_24 h3{margin-top:.8em;color:#f0f0f0}._modalBody_ovmho_24 p{margin:.5em 0}._modalBody_ovmho_24 code{background:#2a2a2a;padding:1px 4px;border-radius:3px;font-size:.9em;color:#e8ab6a}._modalBody_ovmho_24 pre{background:#1a1a1a;padding:12px;border-radius:6px;overflow-x:auto;color:#d9d9d9;max-width:100%;box-sizing:border-box}._modalBody_ovmho_24 a{color:#5b9bd5}._modalBody_ovmho_24 strong{color:#f0f0f0}._spinWrap_ovmho_70{display:flex;justify-content:center;padding:40px 0}._modalBody_ovmho_24 textarea{width:100%;min-height:200px;background:#1a1a1a;color:#d9d9d9;font-family:monospace;font-size:13px;line-height:1.6;border:1px solid #333;border-radius:6px;padding:10px 14px;resize:vertical;outline:none;box-sizing:border-box}@media(max-width:768px){._modalBody_ovmho_24{font-size:13px;line-height:1.6;max-height:75vh}._modalBody_ovmho_24 h1{font-size:18px}._modalBody_ovmho_24 h2{font-size:16px}._modalBody_ovmho_24 h3{font-size:14px}._modalBody_ovmho_24 pre{font-size:12px;padding:8px}._modalBody_ovmho_24 code,._modalBody_ovmho_24 textarea{font-size:12px}}._headerBar_85daq_2{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%}._logoWrap_85daq_10{display:inline-flex;align-items:center;position:relative;margin-top:14px}._logoWrapActive_85daq_17:after{content:"";position:absolute;top:-10px;bottom:-10px;left:0;right:-200px}._logoImage_85daq_26{height:24px;width:24px;border-radius:3px;vertical-align:middle;opacity:.75;transition:opacity .2s;cursor:pointer}._logoImageActive_85daq_36{opacity:1}._compactBtn_85daq_41{font-size:12px;height:30px;line-height:28px}._compactBtnNoBorder_85daq_47{font-size:12px;height:30px;line-height:28px;border:none}._tokenStatsTag_85daq_55{border-radius:12px;cursor:pointer;background:#2a2a2a;border:1px solid #3a3a3a;color:#ccc}._tokenStatsIcon_85daq_63{margin-right:4px}._liveTag_85daq_68{position:relative;display:inline-flex;align-items:center;border-radius:12px;border:1px solid;padding:0 10px;height:22px;font-size:12px;line-height:22px;overflow:hidden;transition:border-color .3s,color .3s;white-space:nowrap}._liveTagFill_85daq_83{position:absolute;left:0;top:0;bottom:0;opacity:.35;transition:width .5s ease,background-color .3s;pointer-events:none}._liveTagContent_85daq_93{position:relative;z-index:1;display:inline-flex;align-items:center}._liveTagHistory_85daq_100{background:#2a2a2a;border-color:#424242;color:#d1d5db}._liveTagText_85daq_106{margin-left:4px}._countdownStrong_85daq_111{font-variant-numeric:tabular-nums}._qrcodePopover_85daq_116{display:flex;flex-direction:column;align-items:center;padding:8px}._qrcodeSection_85daq_123{display:flex;flex-direction:column;align-items:center;padding:16px;margin-bottom:12px;border:1px solid #333;border-radius:8px;background:#111}._qrcodeTitle_85daq_134{font-size:14px;font-weight:600;color:#e5e5e5;margin-bottom:12px}._qrcodeUrlInput_85daq_141{margin-top:12px;font-size:12px;font-family:Menlo,Monaco,monospace}._qrcodeUrlCopy_85daq_147{cursor:pointer;color:#888;transition:color .2s}._qrcodeUrlCopy_85daq_147:hover{color:#3b82f6}._settingsGroupBox_85daq_158{border:1px solid #333;border-radius:8px;background:#111;padding:4px 16px;margin-bottom:12px}._settingsGroupTitle_85daq_166{font-size:14px;font-weight:600;color:#e5e5e5;padding:12px 0 4px;border-bottom:1px solid #333}._settingsItem_85daq_175{display:flex;justify-content:space-between;align-items:center;padding:12px 0}._settingsLabel_85daq_182{font-size:14px}._tokenStatsEmpty_85daq_187{padding:8px 4px;color:#999;font-size:13px}._tokenStatsContainer_85daq_194{display:flex;gap:12px;align-items:flex-start}._tokenStatsColumn_85daq_200{min-width:240px}._toolStatsColumn_85daq_204{min-width:180px}._modelCard_85daq_209{border:1px solid #333;border-radius:6px;padding:8px 10px;background:#111}._modelCardSpaced_85daq_216{margin-bottom:10px}._modelName_85daq_222{font-size:13px;font-weight:600;color:#e5e5e5;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #333}._statsTable_85daq_232{width:100%;border-collapse:collapse}._th_85daq_237{padding:2px 12px;font-size:12px;font-family:monospace;white-space:nowrap;color:#888;font-weight:400;text-align:right}._td_85daq_247{padding:2px 12px;font-size:12px;font-family:monospace;white-space:nowrap;color:#e5e5e5;text-align:right}._label_85daq_256{padding:2px 12px;font-size:12px;font-family:monospace;white-space:nowrap;color:#aaa;font-weight:400;text-align:left}._rowBorder_85daq_266{border-bottom:1px solid #2a2a2a}._rebuildCard_85daq_270{border:1px solid #333;border-radius:6px;padding:8px 10px;margin-top:10px;background:#111}._rebuildTotalRow_85daq_278{border-top:1px solid #444}._rebuildTotalRow_85daq_278 td{font-weight:600}._promptExportBar_85daq_287{margin-bottom:12px}._promptScrollArea_85daq_291{max-height:500px;overflow:auto}._promptEmpty_85daq_296{color:#999;padding:12px}._promptTimestamp_85daq_302{color:#666;font-size:12px;margin:12px 0 4px;padding-bottom:6px}._textPromptCard_85daq_310{margin:4px 0;background:#141414;border-radius:6px;border:1px solid #303030;padding:10px 14px}._preText_85daq_319{white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.6;color:#d9d9d9;margin:4px 0}._systemCollapse_85daq_329{margin:4px 0;background:#1a1a1a;border:1px solid #303030;border-radius:6px}._systemLabel_85daq_336{color:#888;font-size:12px}._preSys_85daq_341{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.5;color:#999;margin:0}._promptTextarea_85daq_351{box-sizing:border-box;background:#000;width:100%;min-height:400px;color:#d9d9d9;font-family:monospace;font-size:13px;line-height:1.6;border:none;resize:vertical;padding:10px 14px;outline:none}._projectStatsCenter_85daq_367{display:flex;justify-content:center;padding:40px 0}._projectStatsEmpty_85daq_373{color:#999;padding:40px 0;text-align:center;font-size:13px}._projectStatsContent_85daq_380{display:flex;flex-direction:column;gap:16px}._projectStatsUpdated_85daq_386{color:#666;font-size:12px;text-align:right}._projectStatsSummary_85daq_392{display:grid;grid-template-columns:1fr 1fr;gap:10px}._projectStatCard_85daq_398{background:#111;border:1px solid #333;border-radius:8px;padding:14px 12px;text-align:center}._projectStatValue_85daq_406{font-size:22px;font-weight:700;color:#e5e5e5;font-family:monospace;font-variant-numeric:tabular-nums}._projectStatLabel_85daq_414{font-size:12px;color:#888;margin-top:4px}._projectStatsSection_85daq_420{display:flex;flex-direction:column;gap:10px}._projectStatsSectionTitle_85daq_426{font-size:14px;font-weight:600;color:#ccc;padding-bottom:4px;border-bottom:1px solid #333}._projectStatsModelCard_85daq_434{background:#111;border:1px solid #333;border-radius:6px;padding:10px 12px}._projectStatsModelHeader_85daq_441{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #333}._projectStatsModelName_85daq_450{font-size:13px;font-weight:600;color:#e5e5e5}._projectStatsModelCount_85daq_456{font-size:12px;color:#888;font-family:monospace}._pluginDirHint_85daq_463{margin-bottom:12px;font-size:12px;color:#888}._pluginDirPath_85daq_469{font-family:Menlo,Monaco,monospace;color:#aaa;cursor:pointer;padding:1px 4px;border-radius:3px;background:#1a1a1a}._pluginDirPath_85daq_469:hover{color:#3b82f6}._pluginList_85daq_482{display:flex;flex-direction:column;gap:8px}._pluginItem_85daq_488{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #303030;border-radius:6px;background:#141414}._pluginInfo_85daq_498{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}._pluginName_85daq_506{font-size:14px;color:#e5e5e5;font-weight:500}._pluginFile_85daq_512{font-size:12px;color:#666;font-family:Menlo,Monaco,monospace}._pluginHooks_85daq_518{display:flex;gap:4px;flex-wrap:wrap;margin-top:2px}._pluginHookTag_85daq_525{font-size:11px;padding:0 5px;border-radius:3px;background:#1e3a5f;color:#6cb6ff;line-height:18px}._pluginActions_85daq_534{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:12px}._pluginEmpty_85daq_542{text-align:center;padding:32px 0;color:#999}._cachePopover_85daq_549{max-width:800px}._cacheScrollArea_85daq_553{max-height:450px;overflow-y:auto}._cachePopoverTitle_85daq_558{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:#e5e5e5}._cachePopoverHeader_85daq_567{margin-bottom:8px;padding-bottom:6px;border-bottom:1px solid #333}._cacheCopyBtn_85daq_573{font-size:14px;color:#888;cursor:pointer;transition:color .2s;margin-left:8px}._cacheCopyBtn_85daq_573:hover{color:#e5e5e5}._cachePopoverEmpty_85daq_585{padding:8px 4px;color:#999;font-size:13px}._cacheTokenInfo_85daq_591{display:flex;align-items:center;font-size:12px;font-family:monospace;color:#aaa;margin-bottom:8px}._cacheSection_85daq_600{margin-bottom:10px}._cacheSectionTitle_85daq_604{font-size:12px;font-weight:600;color:#aaa;margin-bottom:4px}._cacheCodeBlock_85daq_611{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.5;color:#ccc;background:#111;border:1px solid #2a2a2a;border-radius:4px;padding:8px;margin:4px 0;font-family:Menlo,Monaco,monospace}._cacheCodeBlockSystem_85daq_625{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.5;color:#ccc;background:#0d1b2a;border:1px solid #1b3a5c;border-radius:4px;padding:8px;margin:4px 0;font-family:Menlo,Monaco,monospace}._cacheNavBtn_85daq_639{margin-left:auto;font-size:11px;color:#1668dc;cursor:pointer;border:1px solid #1668dc;border-radius:3px;padding:1px 6px;white-space:nowrap}._cacheNavBtn_85daq_639:hover{background:#1668dc26}._cacheNavList_85daq_654{width:600px;max-height:300px;overflow-y:auto}._cacheNavItem_85daq_660{padding:4px 8px;font-size:12px;color:#ccc;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:3px}._cacheNavItem_85daq_660:hover{background:#1668dc33;color:#fff}._cacheBlockHighlight_85daq_676{box-shadow:0 0 10px #1668dc99;transition:box-shadow .2s ease-in}._cacheBlockHighlightFading_85daq_681{box-shadow:0 0 10px #1668dc00;transition:box-shadow 3s ease-out}._cacheBorderSvg_85daq_686{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible}._cacheBorderSvgFading_85daq_695{opacity:0;transition:opacity 3s ease-out}._cacheBorderRect_85daq_700{animation:_cacheDashRotate_85daq_1 4s linear infinite}@keyframes _cacheDashRotate_85daq_1{0%{stroke-dashoffset:0}to{stroke-dashoffset:-100}}._centerEmpty_oxhcp_1{display:flex;align-items:center;justify-content:center;height:100%}._scrollContainer_oxhcp_8{overflow:auto;height:100%;-webkit-overflow-scrolling:touch;will-change:scroll-position}._listItem_oxhcp_15{cursor:pointer;padding:8px 12px;border-left:3px solid transparent;border-bottom:1px solid #1f1f1f;transition:background .15s}._listItem_oxhcp_15:hover{background:#151515}._listItemActive_oxhcp_27{background:#1a2332;border-left-color:#3b82f6}._listItemActive_oxhcp_27:hover{background:#1a2332}._itemContent_oxhcp_36{width:100%;min-width:0}._itemHeader_oxhcp_41{display:flex;align-items:center;gap:6px;margin-bottom:4px;font-size:12px}._tagNoMargin_oxhcp_49{margin:0;font-size:12px}._modelName_oxhcp_54{font-size:12px}._time_oxhcp_58{font-size:12px;color:#6b7280;margin-left:auto}._detailRow_oxhcp_64{display:flex;gap:8px;font-size:12px;align-items:center}._urlText_oxhcp_71{color:#555;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}._duration_oxhcp_80{color:#6b7280;flex-shrink:0}._statusOk_oxhcp_85{color:#52c41a;opacity:.5;flex-shrink:0}._statusErr_oxhcp_91{color:#ef4444;flex-shrink:0}._statusDefault_oxhcp_96{color:#9ca3af;flex-shrink:0}._usageBox_oxhcp_101{background:#111;border-radius:4px;padding:3px 6px;margin-top:4px;font-size:12px;color:#6b7280;line-height:1.6}._cacheDot_oxhcp_111{display:inline-block;width:6px;height:6px;border-radius:50%;margin:0 3px;vertical-align:middle}._cacheDotLoss_oxhcp_120{background-color:#8b1a1a;cursor:help}._cacheDotNormal_oxhcp_125{background-color:#3a3a3a}._GzYRV{line-height:1.2;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}._3eOF8{margin-right:5px;font-weight:700}._3eOF8+._3eOF8{margin-left:-5px}._1MFti{cursor:pointer}._f10Tu{font-size:1.2em;margin-right:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._1UmXx:after{content:"▸"}._1LId0:after{content:"▾"}._1pNG9{margin-right:5px}._1pNG9:after{content:"...";font-size:.8em}._2IvMF{background:#eee}._2bkNM{margin:0;padding:0 10px}._1BXBN{margin:0;padding:0}._1MGIk{font-weight:600;margin-right:5px;color:#000}._3uHL6{color:#000}._2T6PJ,._1Gho6{color:#df113a}._vGjyY{color:#2a3f3c}._1bQdo{color:#0b75f5}._3zQKs{color:#469038}._1xvuR{color:#43413d}._oLqym,._2AXVT,._2KJWg{color:#000}._11RoI{background:#002b36}._17H2C,._3QHg2,._3fDAz{color:#fdf6e3}._2bSDX{font-weight:bolder;margin-right:5px;color:#fdf6e3}._gsbQL{color:#fdf6e3}._LaAZe,._GTKgm{color:#81b5ac}._Chy1W{color:#cb4b16}._2bveF{color:#d33682}._2vRm-{color:#ae81ff}._1prJR{color:#268bd2}._container_1h2lr_1{background:#0d1117;border-radius:6px;border:1px solid #2a2a2a;padding:12px;font-size:13px;font-family:monospace;overflow:auto}._tag_17wfp_1{display:inline-block;font-size:10px;color:#6b7280;background:#ffffff0f;border:1px solid rgba(255,255,255,.1);border-radius:3px;padding:0 4px;margin-left:6px;cursor:pointer;line-height:18px;vertical-align:middle;transition:color .2s,border-color .2s;-webkit-user-select:none;user-select:none}._tag_17wfp_1:hover{color:#93c5fd;border-color:#93c5fd4d}._tagActive_17wfp_22{color:#93c5fd;border-color:#93c5fd40}._tagLoading_17wfp_27{cursor:wait;opacity:.7}._spinner_17wfp_32{display:inline-block;width:10px;height:10px;border:1.5px solid rgba(147,197,253,.3);border-top-color:#93c5fd;border-radius:50%;animation:_spin_17wfp_32 .6s linear infinite;margin-right:3px;vertical-align:middle}@keyframes _spin_17wfp_32{to{transform:rotate(360deg)}}._root_1a6ku_1{display:flex;height:100%;min-height:0;gap:0}._sidebar_1a6ku_9{width:220px;flex-shrink:0;border-right:1px solid #2a2a2a;overflow-y:auto;padding:4px 0;-webkit-overflow-scrolling:touch}._section_1a6ku_18{-webkit-user-select:none;user-select:none}._sectionHeader_1a6ku_22{display:flex;align-items:center;gap:6px;width:100%;padding:6px 10px;cursor:pointer;color:#d1d5db;font-size:12px;font-weight:600;transition:background .15s;background:none;border:0;text-align:left;font:inherit}._sectionHeader_1a6ku_22:hover{background:#ffffff0d}._sectionHeader_1a6ku_22:focus-visible{outline:1px solid rgba(99,179,237,.75);outline-offset:-1px}._arrow_1a6ku_48{font-size:10px;color:#888;flex-shrink:0}._sectionTitle_1a6ku_54{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._sectionCount_1a6ku_62{font-size:11px;color:#666;background:#1f1f1f;border-radius:10px;padding:0 6px;line-height:18px}._sectionBody_1a6ku_71{padding:2px 0}._historyToggle_1a6ku_76{display:flex;align-items:center;gap:6px;width:100%;padding:4px 10px 4px 14px;cursor:pointer;color:#666;font-size:11px;transition:color .15s,background .15s;background:none;border:0;text-align:left;font:inherit}._historyToggle_1a6ku_76:hover{color:#888;background:#ffffff08}._historyToggle_1a6ku_76:focus-visible{outline:1px solid rgba(99,179,237,.75);outline-offset:-1px}._historyToggleLabel_1a6ku_102{flex:1}._item_1a6ku_107{display:flex;align-items:center;justify-content:space-between;width:100%;padding:5px 10px 5px 24px;font-size:12px;color:#888;cursor:pointer;transition:background .15s,color .15s;background:none;border:0;text-align:left;font:inherit}._item_1a6ku_107:hover{background:#ffffff0a;color:#d1d5db}._item_1a6ku_107:focus-visible{outline:1px solid rgba(99,179,237,.75);outline-offset:-1px}._itemActive_1a6ku_133{background:#63b3ed1f;color:#63b3ed}._itemActive_1a6ku_133:hover{background:#63b3ed29;color:#63b3ed}._itemContent_1a6ku_143{flex:1;min-width:0;overflow:hidden}._itemLabel_1a6ku_149{font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}._itemSublabel_1a6ku_157{font-size:10px;color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}._itemTime_1a6ku_166{font-size:9px;color:#555;flex-shrink:0;margin-left:4px;font-family:monospace}._content_1a6ku_175{flex:1;min-width:0;overflow:auto;padding:12px 16px;-webkit-overflow-scrolling:touch}._contentEmpty_1a6ku_183{height:100%;display:flex;align-items:center;justify-content:center}._contentInner_1a6ku_190{padding-bottom:20px}._emptyWrap_1a6ku_194{display:flex;align-items:center;justify-content:center;height:200px}._roleHeader_1a6ku_202{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:nowrap}._roleBadge_1a6ku_210{font-size:10px;font-weight:600;letter-spacing:.04em;padding:2px 7px;border-radius:4px;flex-shrink:0}._role_user_1a6ku_219{background:#3b82f62e;color:#60a5fa;border:1px solid rgba(59,130,246,.3)}._role_assistant_1a6ku_225{background:#8b5cf62e;color:#a78bfa;border:1px solid rgba(139,92,246,.3)}._roleLabel_1a6ku_231{font-size:11px;color:#666;flex:1;min-width:0}._contentTime_1a6ku_238{margin-left:auto;font-size:10px;color:#555;font-family:monospace;flex-shrink:0}._turnDivider_1a6ku_246{border:none;border-top:1px solid #1e1e1e;margin:14px 0}._textBlock_1a6ku_253{margin-bottom:8px;border:1px solid #222;border-radius:6px;overflow:hidden}._textBlockBar_1a6ku_260{display:flex;align-items:center;gap:6px;padding:4px 10px;background:#141414;border-bottom:1px solid #222}._textBlockBody_1a6ku_269{padding:10px 12px;font-size:13px;line-height:1.7;color:#d1d5db;word-break:break-word}._textBlockCompact_1a6ku_277{position:relative;padding:8px 10px;font-size:12px;color:#aaa}._textBlockCompactFloat_1a6ku_284{float:right;margin-left:6px;margin-bottom:2px}._thinkingBlock_1a6ku_291{margin-bottom:8px;border:1px solid #2a2a1e;border-radius:6px;overflow:hidden;background:#111108}._thinkingHeader_1a6ku_299{display:flex;align-items:center;gap:6px;padding:5px 10px;cursor:pointer;font-size:12px;color:#888;transition:background .15s}._thinkingHeader_1a6ku_299:hover{background:#ffffc808}._thinkingPreview_1a6ku_314{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666;font-size:11px}._thinkingBody_1a6ku_324{padding:8px 12px;border-top:1px solid #2a2a1e}._toolBlock_1a6ku_330{margin-bottom:8px;border:1px solid #222;border-radius:6px;overflow:hidden}._toolBlockResult_1a6ku_337{border-color:#1a2a1a}._toolBlockError_1a6ku_341{border-color:#2a1a1a}._toolBlockHeader_1a6ku_345{display:flex;align-items:center;gap:8px;padding:5px 10px;background:#141414;border-bottom:1px solid #222;font-size:12px;flex-wrap:wrap}._toolBlockBody_1a6ku_356{padding:8px 10px;font-size:12px}._toolName_1a6ku_361{color:#d1d5db;font-weight:500;font-family:monospace}._toolId_1a6ku_367{color:#555;font-size:10px;font-family:monospace;margin-left:auto}._errorLabel_1a6ku_374{font-size:10px;color:#f87171;background:#ef44441f;border:1px solid rgba(239,68,68,.25);border-radius:3px;padding:1px 5px}._blockTag_1a6ku_384{font-size:9px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;padding:1px 5px;border-radius:3px;background:#1a1a1a;color:#666;border:1px solid #2a2a2a;flex-shrink:0}._blockTagText_1a6ku_397{background:#3b82f61a;color:#60a5fa;border-color:#3b82f633}._blockTagThinking_1a6ku_403{background:#eab3081a;color:#ca8a04;border-color:#eab30833}._blockTagResult_1a6ku_409{background:#22c55e1a;color:#4ade80;border-color:#22c55e33}._blockTagError_1a6ku_415{background:#ef44441a;color:#f87171;border-color:#ef444433}._jsonBlock_1a6ku_422{margin-bottom:8px;border:1px solid #222;border-radius:6px;overflow:hidden}._jsonBlockLabel_1a6ku_429{font-size:10px;color:#666;padding:3px 10px;background:#141414;border-bottom:1px solid #222;font-family:monospace}._blockSeparator_1a6ku_439{border:none;border-top:1px solid #2a2a2a;margin:16px 0}._markdownBody_1a6ku_446{font-size:13px;line-height:1.7;color:#d1d5db;word-break:break-word}._container_ty3f8_1{height:100%;overflow:auto;padding:0 16px;-webkit-overflow-scrolling:touch;will-change:scroll-position}._emptyState_ty3f8_9{display:flex;align-items:center;justify-content:center;height:100%}._urlSection_ty3f8_16{padding:12px 0;border-bottom:1px solid #1f1f1f;display:flex;align-items:flex-start}._urlLeft_ty3f8_23{flex:1;min-width:0}._tokenStatsBox_ty3f8_28{flex-shrink:0;padding-left:12px;display:flex;align-items:center}._tokenGrid_ty3f8_35{display:flex;border:1px solid #303030;border-radius:6px;overflow:hidden;min-width:360px;font-size:11px;line-height:1.6}._tokenRows_ty3f8_45{flex:1}._tokenRow_ty3f8_45{display:flex}._tokenRowBorder_ty3f8_53{border-top:1px solid #303030}._tokenLabel_ty3f8_57{color:#888;padding:4px 8px;white-space:nowrap;font-weight:600}._tokenTd_ty3f8_64{flex:1;color:#d1d5db;text-align:right;padding:4px 8px;font-family:monospace;white-space:nowrap}._tokenHitRate_ty3f8_73{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#d1d5db;padding:4px 8px;font-family:monospace;white-space:nowrap;border-left:1px solid #303030;min-width:100px}._tokenHitRateLabel_ty3f8_86{color:#888;font-size:10px;font-family:sans-serif}._tokenRowBorder_ty3f8_53 td{border-top:1px solid #303030}._urlText_ty3f8_96{color:#d1d5db;font-size:13px;margin-bottom:8px;word-break:break-all}._metaText_ty3f8_103,._headersContainer_ty3f8_107{font-size:12px}._headerRow_ty3f8_111{display:flex;padding:4px 0;border-bottom:1px solid #1f1f1f}._headerKey_ty3f8_117{min-width:200px;flex-shrink:0}._headerValue_ty3f8_122{word-break:break-all;margin-left:8px}._streamingBox_ty3f8_127{padding:20px;background:#1a1a1a;border-radius:6px;border:1px solid #2a2a2a}._bodyToolbar_ty3f8_134{display:flex;gap:8px;margin-bottom:8px}._rawTextPre_ty3f8_140{background:#0d1117;border:1px solid #2a2a2a;border-radius:6px;padding:12px;font-size:12px;color:#e5e7eb;overflow:auto;max-height:600px;white-space:pre-wrap;word-break:break-all}._tabContent_ty3f8_153{padding:12px 0}._collapseSpacing_ty3f8_157{margin-bottom:16px}._bodyLabel_ty3f8_161{margin:0}._bodyHeader_ty3f8_165{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}._diffSection_ty3f8_172{margin-bottom:16px}._diffToggle_ty3f8_176{display:inline-block;margin-bottom:8px;cursor:pointer}._diffIcon_ty3f8_182{font-size:12px;margin-left:4px}._viewInChatBtn_ty3f8_187{display:inline-flex;align-items:center;height:26px;border-radius:13px;border:1px solid #424242;background:transparent;color:#888;cursor:pointer;font-size:12px;transition:all .2s;padding:0 10px;white-space:nowrap}._viewInChatBtn_ty3f8_187:hover{border-color:#666;color:#d1d5db;background:#ffffff0f}._reminderSelect_ty3f8_208{min-width:140px;font-size:12px}._reminderSelect_ty3f8_208 .ant-select-selector.ant-select-selector{border-radius:2px;border-color:#424242;background:transparent;min-height:26px;height:auto;padding:0 8px;font-family:monospace}._reminderSelect_ty3f8_208 .ant-select-selection-placeholder{font-size:11px}._avatar_16qh5_3{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}._avatarImg_16qh5_13{width:32px;height:32px;border-radius:50%;flex-shrink:0;object-fit:cover}._bubble_16qh5_21{border-radius:8px;border:1px solid #222;box-sizing:border-box;padding:6px 10px;max-width:100%;font-size:14px;line-height:1.6;word-break:break-word}._messageRow_16qh5_34{display:flex;gap:10px;padding:8px 0}._messageRowEnd_16qh5_40{display:flex;gap:10px;padding:8px 0;justify-content:flex-end}._contentCol_16qh5_49{min-width:0;flex:1}._contentColLimited_16qh5_54{min-width:0;max-width:80%;width:fit-content}._labelRow_16qh5_62{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}._labelRowEnd_16qh5_69{display:flex;justify-content:flex-end;align-items:center;margin-bottom:2px}._labelRight_16qh5_76{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-left:auto}._labelText_16qh5_84{font-size:11px}._timeText_16qh5_88,._timeTextNoMargin_16qh5_94{font-size:10px;color:#6b7280;flex-shrink:0}._labelTextRight_16qh5_100{font-size:11px;margin-left:auto}._bubbleUser_16qh5_107{background:#1668dc;color:#e5e7eb}._bubbleAssistant_16qh5_113{background:#141414;color:#e5e7eb;transition:box-shadow 0s;position:relative}._bubbleHighlight_16qh5_121{box-shadow:0 0 10px #1668dc99}._bubbleHighlightFading_16qh5_125{box-shadow:0 0 10px #1668dc00;transition:box-shadow 5s ease-out}._borderSvg_16qh5_130{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible}._borderSvgFading_16qh5_139{opacity:0;transition:opacity 5s ease-out}._borderRect_16qh5_144{animation:_dashRotate_16qh5_1 4s linear infinite}@keyframes _dashRotate_16qh5_1{0%{stroke-dashoffset:0}to{stroke-dashoffset:-100}}._bubblePlan_16qh5_153{background:#141428;border:5px solid #1668dc;font-size:12px;color:#e5e7eb}._bubbleSubAgent_16qh5_161{background:#1a1a21;color:#e5e7eb}._bubbleSelection_16qh5_167{background:#1a3a1a;color:#e5e7eb}._systemTagLabel_16qh5_175{font-size:12px}._skillLabel_16qh5_179{font-size:12px;color:#a78bfa}._systemTagPre_16qh5_184{font-size:12px;color:#9ca3af;white-space:pre-wrap;word-break:break-all;margin:0}._collapseMargin_16qh5_192{margin:4px 0}._collapseNoMargin_16qh5_196{margin:0}._thinkingLabel_16qh5_202{font-size:12px}._bashCollapseLabel_16qh5_206{font-size:12px;color:#9ca3af}._toolBox_16qh5_213{background:#1a1a21;border:1px solid #2a2a3e;border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._toolLabel_16qh5_222{color:#a78bfa}._codePre_16qh5_228{font-size:12px;margin:4px 0 0;white-space:pre-wrap;word-break:break-all;background:#111;border-radius:4px;padding:6px 8px}._pathTag_16qh5_240{color:#7dd3fc;font-size:11px}._pathTagClickable_16qh5_245{color:#666;font-size:11px;cursor:pointer}._pathTagClickable_16qh5_245:hover{text-decoration:underline;color:#93c5fd}._descSpan_16qh5_258{color:#6b7280;font-weight:400}._secondarySpan_16qh5_263{color:#6b7280}._patternSpan_16qh5_267{color:#fbbf24}._kvContainer_16qh5_273{margin-top:4px;font-size:11px}._kvItem_16qh5_278{margin:2px 0}._kvKey_16qh5_282{color:#7dd3fc}._kvValue_16qh5_286{color:#9ca3af}._toolResult_16qh5_292{background:#111420;border:1px solid #1e293b;border-radius:6px;padding:6px 10px;margin:2px 0 6px;font-size:11px}._toolResultLabel_16qh5_301{font-size:11px}._compactLabel_16qh5_307{font-size:12px;color:#93c5fd}._compactPre_16qh5_312{font-size:12px;color:#d1d5db;white-space:pre-wrap;word-break:break-all;margin:0}._viewRequestBtn_16qh5_322{font-size:10px;color:#555;cursor:pointer;margin-left:6px;flex-shrink:0}._viewRequestBtn_16qh5_322:hover{color:#93c5fd}._optionList_16qh5_336{padding-left:8px}._optionDesc_16qh5_340{color:#555;margin-left:6px;font-weight:400}._questionText_16qh5_348{font-size:13px;color:#ccc;margin-bottom:4px}._questionSpacing_16qh5_354{margin-bottom:10px}._option_16qh5_336{font-size:12px;padding:1px 0}._askQuestionBox_16qh5_367{background:#0d1f0d;border:1px solid #2ea043;border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._askQuestionHeader_16qh5_376{display:inline-block;background:#1a3a1a;color:#7ee787;font-size:10px;padding:1px 6px;border-radius:4px;margin-bottom:4px;font-weight:600}._askQuestionText_16qh5_387{color:#e5e7eb;font-size:13px;margin-bottom:4px}._askOptionItem_16qh5_393{font-size:12px;color:#9ca3af;padding:1px 0;display:flex;align-items:center;gap:4px}._askOptionSelected_16qh5_402{color:#e5e7eb;font-weight:600}._askCheckSvg_16qh5_407{flex-shrink:0;vertical-align:middle}._planModeBox_16qh5_414{background:#0d1528;border:1px solid #1668dc;border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._planModeLabel_16qh5_423{color:#93c5fd;font-weight:600}._planModePermissions_16qh5_428{margin-top:6px;padding-top:6px;border-top:1px solid #1e3a5f}._planModePermLabel_16qh5_434{color:#6b7280;font-size:11px;margin-bottom:2px}._planModeHeader_16qh5_440{display:flex;justify-content:space-between;align-items:center}._planStatusBadge_16qh5_446{font-size:11px;font-weight:600;padding:1px 8px;border-radius:10px;line-height:1.6}._planStatusApproved_16qh5_454{border-color:#22c55e}._planStatusApproved_16qh5_454._planStatusBadge_16qh5_446{background:#22c55e26;color:#4ade80}._planStatusRejected_16qh5_463{border-color:#ef4444}._planStatusRejected_16qh5_463._planStatusBadge_16qh5_446{background:#ef444426;color:#f87171}._planStatusPending_16qh5_472{border-color:#1668dc}._planStatusPending_16qh5_472._planStatusBadge_16qh5_446{background:#1668dc26;color:#93c5fd}._planFeedback_16qh5_481{margin-top:6px;padding:6px 8px;background:#ef444414;border-radius:4px;font-size:12px;color:#e5e7eb}._planFeedbackLabel_16qh5_490{color:#f87171;font-weight:600}._planApprovalActions_16qh5_495{display:flex;gap:8px;margin-top:8px}._planApproveBtn_16qh5_501{padding:4px 16px;border-radius:4px;border:1px solid #22c55e;background:#22c55e26;color:#4ade80;font-size:13px;cursor:pointer;transition:background .15s}._planApproveBtn_16qh5_501:hover{background:#22c55e4d}._planRejectBtn_16qh5_516{padding:4px 16px;border-radius:4px;border:1px solid #ef4444;background:#ef444426;color:#f87171;font-size:13px;cursor:pointer;transition:background .15s}._planRejectBtn_16qh5_516:hover{background:#ef44444d}._planOptionBtn_16qh5_531{padding:4px 16px;border-radius:4px;border:1px solid #6b7280;background:#6b728026;color:#d1d5db;font-size:13px;cursor:pointer;transition:background .15s}._planOptionBtn_16qh5_531:hover{background:#6b72804d}._planFeedbackInputWrap_16qh5_546{margin-top:8px}._planFeedbackTextarea_16qh5_550{width:100%;min-height:60px;max-height:120px;padding:8px 10px;border-radius:4px;border:1px solid #4b5563;background:#1f2937;color:#e5e7eb;font-size:13px;line-height:1.5;resize:vertical;font-family:inherit;outline:none}._planFeedbackTextarea_16qh5_550:focus{border-color:#3b82f6}._planFeedbackBtnRow_16qh5_570{display:flex;gap:8px;margin-top:6px;justify-content:flex-end}._planFeedbackSendBtn_16qh5_577{padding:4px 16px;border-radius:4px;border:1px solid #3b82f6;background:#3b82f633;color:#60a5fa;font-size:13px;cursor:pointer;transition:background .15s}._planFeedbackSendBtn_16qh5_577:hover{background:#3b82f659}._planFeedbackSendBtn_16qh5_577:disabled{opacity:.4;cursor:not-allowed}._planFeedbackCancelBtn_16qh5_597{padding:4px 16px;border-radius:4px;border:1px solid #6b7280;background:#6b728026;color:#d1d5db;font-size:13px;cursor:pointer;transition:background .15s}._planFeedbackCancelBtn_16qh5_597:hover{background:#6b72804d}._askQuestionInteractive_16qh5_614{background:#0d1528;border:1px solid #1668dc;border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._askRadioGroup_16qh5_623{display:flex;flex-direction:column;gap:2px;padding-left:4px;margin-top:4px}._askRadioItem_16qh5_631{color:#d1d5db;font-size:12px;padding:3px 0;cursor:pointer;display:flex;align-items:baseline;gap:6px;-webkit-user-select:none;user-select:none}._askRadioItem_16qh5_631:hover{color:#fff}._askRadioItemSelected_16qh5_646{color:#58a6ff}._askRadioDot_16qh5_650{flex-shrink:0;font-size:13px;line-height:1}._askRadioGroup_16qh5_623 .ant-radio-wrapper,._askCheckboxGroup_16qh5_657 .ant-checkbox-wrapper{color:#d1d5db;font-size:12px;padding:3px 0;cursor:pointer;pointer-events:auto}._askRadioGroup_16qh5_623 .ant-radio-wrapper>span,._askRadioGroup_16qh5_623 .ant-radio{cursor:pointer;pointer-events:auto}._askRadioGroup_16qh5_623 .ant-radio-input{cursor:pointer}._askCheckboxGroup_16qh5_657{display:flex;flex-direction:column;gap:2px;padding-left:4px;margin-top:4px}._askOtherInput_16qh5_683{margin-top:4px;margin-left:24px;width:calc(100% - 24px)}._askOtherInput_16qh5_683 .ant-input{background:#1f2937;border-color:#4b5563;color:#e5e7eb;font-size:12px}._askSubmitRow_16qh5_696{display:flex;justify-content:flex-end;margin-top:8px}._askSubmitBtn_16qh5_702{padding:4px 20px;border-radius:4px;border:1px solid #1668dc;background:#1668dc33;color:#60a5fa;font-size:13px;cursor:pointer;transition:background .15s}._askSubmitBtn_16qh5_702:hover{background:#1668dc59}._askSubmitBtn_16qh5_702:disabled{opacity:.4;cursor:not-allowed}._askMarkdownLayout_16qh5_722{display:flex;gap:12px;margin-top:4px}._askMarkdownLayout_16qh5_722>:first-child{flex:1;min-width:0}._askMarkdownPreview_16qh5_733{flex:1;min-width:0;background:#0d1117;border:1px solid #2a2a3e;border-radius:6px;padding:8px 10px;font-size:12px;color:#d1d5db;max-height:240px;overflow-y:auto}._askMarkdownPreview_16qh5_733 pre{white-space:pre-wrap;word-break:break-all;margin:0;font-family:SF Mono,Menlo,Consolas,monospace;font-size:11px;line-height:1.5}._wrapper_veubx_1{margin:6px 0;background:#1a1a21;border:1px solid #2a2a3e;border-radius:6px;padding:8px 12px}._header_veubx_9{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}._headerRight_veubx_16{display:flex;align-items:center;gap:12px;flex-shrink:0;white-space:nowrap}._filePath_veubx_24{color:#a78bfa;font-size:12px;font-weight:600}._filePathClickable_veubx_30{color:#a78bfa;font-size:12px;font-weight:600;cursor:pointer}._filePathClickable_veubx_30:hover{text-decoration:underline;color:#c4b5fd}._toggle_veubx_42{color:#6b7280;font-size:11px;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;flex-shrink:0}._diffSummary_veubx_51{font-size:11px;color:#6b7280}._diffBody_veubx_58{display:flex;font-family:SF Mono,Cascadia Code,Fira Code,Menlo,Consolas,monospace;font-size:12px;line-height:1.5}._gutter_veubx_66{flex-shrink:0;-webkit-user-select:none;user-select:none}._gutterRow_veubx_71{display:flex;height:18px}._lineNumOld_veubx_76,._lineNumNew_veubx_77{text-align:right;color:#484f58;padding:0 6px 0 2px;box-sizing:border-box}._prefix_veubx_84{width:16px;min-width:16px;text-align:center;font-weight:600}._codeWrap_veubx_92{flex:1;min-width:0;overflow-x:auto}._codeInner_veubx_99{display:inline-block;min-width:100%}._codeLine_veubx_104{white-space:pre;padding:0 4px;height:18px}._rowContext_veubx_112{background:#1a1a21;color:#8b949e}._rowDel_veubx_117{background:#ef44441f;color:#fca5a5}._rowDel_veubx_117._gutterRow_veubx_71{background:#341f31}._rowDel_veubx_117._gutterRow_veubx_71 ._prefix_veubx_84{color:#ef4444}._rowAdd_veubx_128{background:#22c55e1f;color:#86efac}._rowAdd_veubx_128._gutterRow_veubx_71{background:#1b2f34}._rowAdd_veubx_128._gutterRow_veubx_71 ._prefix_veubx_84{color:#22c55e}._rowContext_veubx_112._gutterRow_veubx_71{background:#1a1a21}._plainResult_zn49o_1{background:#111;border-radius:6px;font-size:12px}._plainTitle_zn49o_7{font-size:11px}._plainPre_zn49o_11{color:#d1d5db;margin:0;white-space:pre-wrap;word-break:break-all;font-size:12px;padding:8px 12px}._codeResult_zn49o_20{background:#111;border-radius:4px;border:1px solid #1e293b;overflow:hidden}._codeHeader_zn49o_27{display:flex;justify-content:space-between;align-items:center;padding:4px 10px;background:#111}._codeHeader_zn49o_27:not(:last-child){border-bottom:1px solid #1e293b}._codeTitle_zn49o_39{font-size:11px;color:#8b949e}._codeToggle_zn49o_44{font-size:11px;color:#484f58;cursor:pointer;-webkit-user-select:none;user-select:none}._codePre_zn49o_51{margin:0;padding:8px 12px;font-size:12px;line-height:1.5;overflow:auto;max-height:500px}._markdownBody_zn49o_60{padding:8px 12px;font-size:13px;line-height:1.6;overflow:auto;max-height:500px}._fileExplorer_1g58f_1{width:240px;flex-shrink:0;background:#111;border-right:1px solid #2a2a2a;display:flex;flex-direction:column;overflow:hidden;-webkit-user-select:none;user-select:none}._header_1g58f_12{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #2a2a2a;flex-shrink:0}._headerTitle_1g58f_21{font-size:11px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.5px}._collapseBtn_1g58f_29{width:20px;height:20px;border:none;background:none;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:0}._collapseBtn_1g58f_29:hover{color:#ccc;background:#2a2a2a}._treeContainer_1g58f_48{flex:1;overflow:auto;padding:4px 0}._treeItem_1g58f_54{display:flex;align-items:center;height:26px;padding:0 8px;cursor:pointer;color:#ccc;font-size:13px;white-space:nowrap;transition:background .1s}._treeItem_1g58f_54:hover{background:#1a1a1a}._treeItem_1g58f_54._treeItemSelected_1g58f_70{background:#532f00}._arrow_1g58f_74{width:16px;flex-shrink:0;color:#666;display:flex;align-items:center;justify-content:center}._icon_1g58f_83{width:16px;height:16px;flex-shrink:0;margin-right:6px;display:flex;align-items:center;justify-content:center}._fileName_1g58f_93{overflow:hidden;text-overflow:ellipsis}._fileNameInput_1g58f_98{background:transparent;border:none;border-bottom:1px solid #528bff;color:#ccc;font-size:13px;font-family:inherit;padding:0;margin:0;outline:none;width:100%;min-width:40px;height:20px;line-height:20px}._loading_1g58f_114{color:#555;font-size:12px;padding:4px 8px}._error_1g58f_120{color:#ff6b6b;font-size:12px;padding:4px 8px}._treeItemGitIgnored_1g58f_126{opacity:.4}._fileContentView_7x6gt_1{display:flex;flex-direction:column;height:100%;background:#0d0d0d;animation:_slideInFromRight_7x6gt_1 .25s ease-out}@keyframes _slideInFromRight_7x6gt_1{0%{transform:translate(-40px);opacity:0}to{transform:translate(0);opacity:1}}._closing_7x6gt_20{animation:_slideOutToRight_7x6gt_1 .2s ease-in forwards}@keyframes _slideOutToRight_7x6gt_1{0%{transform:translate(0);opacity:1}to{transform:translate(-40px);opacity:0}}._editorBanner_7x6gt_35{padding:6px 16px;background:#1a3a2a;color:#4ade80;font-size:12px;text-align:center;flex-shrink:0;border-bottom:1px solid #2a5a3a;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s}._editorBanner_7x6gt_35:hover{background:#245a3a}._header_7x6gt_52{display:flex;align-items:center;justify-content:space-between;padding:6px 16px;border-bottom:1px solid #2a2a2a;background:#111;flex-shrink:0}._headerLeft_7x6gt_62{display:flex;align-items:center;gap:8px;flex:1;min-width:0}._headerRight_7x6gt_70{display:flex;align-items:center;gap:10px;flex-shrink:0}._backBtn_7x6gt_77{width:28px;height:28px;border:none;background:none;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:6px;padding:0;flex-shrink:0;transition:background .15s,color .15s}._backBtn_7x6gt_77:hover{color:#ccc;background:#1a1a1a}._filePath_7x6gt_98{font-size:13px;color:#ccc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fileSize_7x6gt_106{font-size:11px;color:#666;flex-shrink:0;margin-left:8px}._closeBtn_7x6gt_113{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #3a3a3a;background:#1a1a1a;color:#888;border-radius:6px;cursor:pointer;transition:background .15s,color .15s,border-color .15s}._closeBtn_7x6gt_113:hover{background:#2a2a2a;color:#fff;border-color:#4a4a4a}._saveBtn_7x6gt_134{display:flex;align-items:center;gap:5px;padding:4px 12px;border:1px solid #3a3a3a;background:#1a1a1a;color:#ccc;font-size:12px;border-radius:6px;cursor:pointer;transition:background .15s,color .15s,border-color .15s;white-space:nowrap}._saveBtn_7x6gt_134:hover:not(:disabled){background:#2a2a2a;color:#fff;border-color:#4a4a4a}._saveBtn_7x6gt_134:disabled{opacity:.4;cursor:not-allowed}._saveStatus_7x6gt_160{font-size:11px;color:#888;white-space:nowrap}._saveStatusSaved_7x6gt_166{color:#4caf50}._saveStatusFailed_7x6gt_170{color:#ff6b6b}._contentContainer_7x6gt_174{flex:1;overflow:hidden;background:#0d0d0d;display:flex;min-height:0;min-width:0}._editorWrapper_7x6gt_183{flex:1;display:flex;min-height:0;min-width:0;overflow:hidden}._lineNumCol_7x6gt_191{flex-shrink:0;width:56px;overflow:hidden;background:#0d0d0d;border-right:1px solid #2a2a2a;-webkit-user-select:none;user-select:none;padding-top:4px}._lineNumRow_7x6gt_201{padding:0 16px;text-align:right;color:#555;font-family:SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,Courier New,monospace;font-size:13px;line-height:1.5;white-space:nowrap}._editorCol_7x6gt_211{flex:1;min-width:0;min-height:0;display:flex}._editorCol_7x6gt_211 .cm-theme{flex:1;display:flex;min-height:0;min-width:0}._editorCol_7x6gt_211 .cm-editor{flex:1;min-width:0;min-height:0}._loading_7x6gt_231{display:flex;align-items:center;justify-content:center;height:100%;width:100%;color:#666;font-size:14px}._error_7x6gt_241{display:flex;align-items:center;justify-content:center;height:100%;width:100%;color:#ff6b6b;font-size:14px}._imageViewer_1vf1x_1{display:flex;flex-direction:column;height:100%;background:#0d0d0d}._header_1vf1x_8{display:flex;align-items:center;justify-content:space-between;padding:6px 16px;border-bottom:1px solid #2a2a2a;background:#111;flex-shrink:0}._headerLeft_1vf1x_18{display:flex;align-items:center;gap:8px;flex:1;min-width:0}._headerRight_1vf1x_26{display:flex;align-items:center;gap:10px;flex-shrink:0}._backBtn_1vf1x_33{width:28px;height:28px;border:none;background:none;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:6px;padding:0;flex-shrink:0;transition:background .15s,color .15s}._backBtn_1vf1x_33:hover{color:#ccc;background:#1a1a1a}._filePath_1vf1x_54{font-size:13px;color:#ccc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fileSize_1vf1x_62{font-size:11px;color:#666;flex-shrink:0}._toolbar_1vf1x_68{display:flex;align-items:center;gap:4px;padding:6px 16px;background:#111;border-bottom:1px solid #2a2a2a;flex-shrink:0}._toolBtn_1vf1x_78{width:28px;height:28px;border:1px solid #3a3a3a;background:#1a1a1a;color:#999;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:6px;padding:0;transition:background .15s,color .15s,border-color .15s}._toolBtn_1vf1x_78:hover{background:#2a2a2a;color:#fff;border-color:#4a4a4a}._zoomLabel_1vf1x_99{font-size:11px;color:#888;min-width:42px;text-align:center;-webkit-user-select:none;user-select:none}._canvasArea_1vf1x_107{flex:1;overflow:hidden;position:relative;cursor:grab;background-color:#1a1a1a;background-image:linear-gradient(45deg,#222 25%,transparent 25%),linear-gradient(-45deg,#222 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#222 75%),linear-gradient(-45deg,transparent 75%,#222 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}._canvasArea_1vf1x_107._dragging_1vf1x_122{cursor:grabbing}._imageWrap_1vf1x_126{position:absolute;top:0;left:0;transform-origin:0 0}._imageWrap_1vf1x_126 img{display:block;max-width:none;image-rendering:auto}._statusBar_1vf1x_139{display:flex;align-items:center;gap:16px;padding:4px 16px;background:#111;border-top:1px solid #2a2a2a;flex-shrink:0;font-size:11px;color:#666}._loading_1vf1x_151{display:flex;align-items:center;justify-content:center;height:100%;width:100%;color:#666;font-size:14px}._error_1vf1x_161{display:flex;align-items:center;justify-content:center;height:100%;width:100%;color:#ff6b6b;font-size:14px}._gitChanges_nt7bg_1{width:240px;flex-shrink:0;background:#111;border-right:1px solid #2a2a2a;display:flex;flex-direction:column;overflow:hidden;-webkit-user-select:none;user-select:none}._header_nt7bg_12{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #2a2a2a;flex-shrink:0}._headerTitle_nt7bg_21{font-size:11px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.5px}._collapseBtn_nt7bg_29{width:20px;height:20px;border:none;background:none;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:0}._collapseBtn_nt7bg_29:hover{color:#ccc;background:#2a2a2a}._changesContainer_nt7bg_48{flex:1;overflow:auto;padding:4px 0}._changeItem_nt7bg_54{display:flex;align-items:center;height:26px;padding:0 8px;cursor:pointer;color:#ccc;font-size:13px;white-space:nowrap;transition:background .1s;gap:6px}._changeItem_nt7bg_54:hover{background:#1a1a1a}._changeItem_nt7bg_54._changeItemSelected_nt7bg_71{background:#532f00}._dirItem_nt7bg_75{display:flex;align-items:center;height:26px;padding:0 8px;color:#999;font-size:13px;white-space:nowrap;gap:6px}._dirArrow_nt7bg_86{width:16px;flex-shrink:0;color:#666;display:flex;align-items:center;justify-content:center}._dirName_nt7bg_95{overflow:hidden;text-overflow:ellipsis}._status_nt7bg_100{width:16px;flex-shrink:0;font-size:11px;font-weight:600;text-align:center;margin-left:auto}._icon_nt7bg_109{width:16px;height:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center}._fileName_nt7bg_118{overflow:hidden;text-overflow:ellipsis;flex:1}._loading_nt7bg_124{color:#555;font-size:12px;padding:8px 12px}._error_nt7bg_130{color:#ff6b6b;font-size:12px;padding:8px 12px}._empty_nt7bg_136{color:#666;font-size:12px;padding:8px 12px;text-align:center}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
32
+ */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}._terminalPanel_9197g_1{height:100%;display:flex;flex-direction:column;background:#0a0a0a}._terminalContainer_9197g_8{flex:1;overflow:hidden;padding:4px 8px;touch-action:none;overscroll-behavior:contain}._terminalContainer_9197g_8 .xterm-helper-textarea{caret-color:transparent!important}._terminalToolbar_9197g_21{height:35px;flex-shrink:0;display:flex;align-items:center;padding:0 8px;gap:4px;border-top:1px solid #1f1f1f;background:#0d0d0d}._toolbarBtn_9197g_32{display:flex;align-items:center;gap:4px;height:26px;padding:0 10px;border:1px solid #333;border-radius:4px;background:#1a1a1a;color:#aaa;font-size:12px;cursor:pointer;white-space:nowrap}._toolbarBtn_9197g_32:hover{background:#2a2a2a;color:#ddd;border-color:#555}._toolbarBtnDisabled_9197g_53{opacity:.4;cursor:not-allowed}._toolbarBtnDisabled_9197g_53:hover{background:#1a1a1a;color:#aaa;border-color:#333}._toolbarBtn_9197g_32 svg{width:14px;height:14px}._virtualKeybar_9197g_68{display:flex;gap:6px;padding:8px 10px;background:#111;border-top:1px solid #222;overflow-x:auto;flex-shrink:0;-webkit-overflow-scrolling:touch}._virtualKey_9197g_68{flex-shrink:0;padding:12px 20px;border:1px solid #333;border-radius:8px;background:#1a1a1a;color:#ccc;font-size:15px;font-family:Menlo,Monaco,monospace;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:pan-x;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}._virtualKeyPressed_9197g_99{background:#333;border-color:#555;color:#fff}._helpBtn_ovmho_1{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#1a1a1a;border:1px solid #444;color:#aaa;font-size:11px;line-height:1;cursor:pointer;margin-left:4px;vertical-align:middle;transition:background .2s;-webkit-user-select:none;user-select:none}._helpBtn_ovmho_1:hover{background:#333}._modalBody_ovmho_24{max-height:60vh;overflow-y:auto;overflow-x:hidden;line-height:1.7;color:#d9d9d9;word-break:break-word}._modalBody_ovmho_24 h1,._modalBody_ovmho_24 h2,._modalBody_ovmho_24 h3{margin-top:.8em;color:#f0f0f0}._modalBody_ovmho_24 p{margin:.5em 0}._modalBody_ovmho_24 code{background:#2a2a2a;padding:1px 4px;border-radius:3px;font-size:.9em;color:#e8ab6a}._modalBody_ovmho_24 pre{background:#1a1a1a;padding:12px;border-radius:6px;overflow-x:auto;color:#d9d9d9;max-width:100%;box-sizing:border-box}._modalBody_ovmho_24 a{color:#5b9bd5}._modalBody_ovmho_24 strong{color:#f0f0f0}._spinWrap_ovmho_70{display:flex;justify-content:center;padding:40px 0}._modalBody_ovmho_24 textarea{width:100%;min-height:200px;background:#1a1a1a;color:#d9d9d9;font-family:monospace;font-size:13px;line-height:1.6;border:1px solid #333;border-radius:6px;padding:10px 14px;resize:vertical;outline:none;box-sizing:border-box}@media(max-width:768px){._modalBody_ovmho_24{font-size:13px;line-height:1.6;max-height:75vh}._modalBody_ovmho_24 h1{font-size:18px}._modalBody_ovmho_24 h2{font-size:16px}._modalBody_ovmho_24 h3{font-size:14px}._modalBody_ovmho_24 pre{font-size:12px;padding:8px}._modalBody_ovmho_24 code,._modalBody_ovmho_24 textarea{font-size:12px}}._headerBar_85daq_2{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%}._logoWrap_85daq_10{display:inline-flex;align-items:center;position:relative;margin-top:14px}._logoWrapActive_85daq_17:after{content:"";position:absolute;top:-10px;bottom:-10px;left:0;right:-200px}._logoImage_85daq_26{height:24px;width:24px;border-radius:3px;vertical-align:middle;opacity:.75;transition:opacity .2s;cursor:pointer}._logoImageActive_85daq_36{opacity:1}._compactBtn_85daq_41{font-size:12px;height:30px;line-height:28px}._compactBtnNoBorder_85daq_47{font-size:12px;height:30px;line-height:28px;border:none}._tokenStatsTag_85daq_55{border-radius:12px;cursor:pointer;background:#2a2a2a;border:1px solid #3a3a3a;color:#ccc}._tokenStatsIcon_85daq_63{margin-right:4px}._liveTag_85daq_68{position:relative;display:inline-flex;align-items:center;border-radius:12px;border:1px solid;padding:0 10px;height:22px;font-size:12px;line-height:22px;overflow:hidden;transition:border-color .3s,color .3s;white-space:nowrap}._liveTagFill_85daq_83{position:absolute;left:0;top:0;bottom:0;opacity:.35;transition:width .5s ease,background-color .3s;pointer-events:none}._liveTagContent_85daq_93{position:relative;z-index:1;display:inline-flex;align-items:center}._liveTagHistory_85daq_100{background:#2a2a2a;border-color:#424242;color:#d1d5db}._liveTagText_85daq_106{margin-left:4px}._countdownStrong_85daq_111{font-variant-numeric:tabular-nums}._qrcodePopover_85daq_116{display:flex;flex-direction:column;align-items:center;padding:8px}._qrcodeSection_85daq_123{display:flex;flex-direction:column;align-items:center;padding:16px;margin-bottom:12px;border:1px solid #333;border-radius:8px;background:#111}._qrcodeTitle_85daq_134{font-size:14px;font-weight:600;color:#e5e5e5;margin-bottom:12px}._qrcodeUrlInput_85daq_141{margin-top:12px;font-size:12px;font-family:Menlo,Monaco,monospace}._qrcodeUrlCopy_85daq_147{cursor:pointer;color:#888;transition:color .2s}._qrcodeUrlCopy_85daq_147:hover{color:#3b82f6}._settingsGroupBox_85daq_158{border:1px solid #333;border-radius:8px;background:#111;padding:4px 16px;margin-bottom:12px}._settingsGroupTitle_85daq_166{font-size:14px;font-weight:600;color:#e5e5e5;padding:12px 0 4px;border-bottom:1px solid #333}._settingsItem_85daq_175{display:flex;justify-content:space-between;align-items:center;padding:12px 0}._settingsLabel_85daq_182{font-size:14px}._tokenStatsEmpty_85daq_187{padding:8px 4px;color:#999;font-size:13px}._tokenStatsContainer_85daq_194{display:flex;gap:12px;align-items:flex-start}._tokenStatsColumn_85daq_200{min-width:240px}._toolStatsColumn_85daq_204{min-width:180px}._modelCard_85daq_209{border:1px solid #333;border-radius:6px;padding:8px 10px;background:#111}._modelCardSpaced_85daq_216{margin-bottom:10px}._modelName_85daq_222{font-size:13px;font-weight:600;color:#e5e5e5;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #333}._statsTable_85daq_232{width:100%;border-collapse:collapse}._th_85daq_237{padding:2px 12px;font-size:12px;font-family:monospace;white-space:nowrap;color:#888;font-weight:400;text-align:right}._td_85daq_247{padding:2px 12px;font-size:12px;font-family:monospace;white-space:nowrap;color:#e5e5e5;text-align:right}._label_85daq_256{padding:2px 12px;font-size:12px;font-family:monospace;white-space:nowrap;color:#aaa;font-weight:400;text-align:left}._rowBorder_85daq_266{border-bottom:1px solid #2a2a2a}._rebuildCard_85daq_270{border:1px solid #333;border-radius:6px;padding:8px 10px;margin-top:10px;background:#111}._rebuildTotalRow_85daq_278{border-top:1px solid #444}._rebuildTotalRow_85daq_278 td{font-weight:600}._promptExportBar_85daq_287{margin-bottom:12px}._promptScrollArea_85daq_291{max-height:500px;overflow:auto}._promptEmpty_85daq_296{color:#999;padding:12px}._promptTimestamp_85daq_302{color:#666;font-size:12px;margin:12px 0 4px;padding-bottom:6px}._textPromptCard_85daq_310{margin:4px 0;background:#141414;border-radius:6px;border:1px solid #303030;padding:10px 14px}._preText_85daq_319{white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.6;color:#d9d9d9;margin:4px 0}._systemCollapse_85daq_329{margin:4px 0;background:#1a1a1a;border:1px solid #303030;border-radius:6px}._systemLabel_85daq_336{color:#888;font-size:12px}._preSys_85daq_341{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.5;color:#999;margin:0}._promptTextarea_85daq_351{box-sizing:border-box;background:#000;width:100%;min-height:400px;color:#d9d9d9;font-family:monospace;font-size:13px;line-height:1.6;border:none;resize:vertical;padding:10px 14px;outline:none}._projectStatsCenter_85daq_367{display:flex;justify-content:center;padding:40px 0}._projectStatsEmpty_85daq_373{color:#999;padding:40px 0;text-align:center;font-size:13px}._projectStatsContent_85daq_380{display:flex;flex-direction:column;gap:16px}._projectStatsUpdated_85daq_386{color:#666;font-size:12px;text-align:right}._projectStatsSummary_85daq_392{display:grid;grid-template-columns:1fr 1fr;gap:10px}._projectStatCard_85daq_398{background:#111;border:1px solid #333;border-radius:8px;padding:14px 12px;text-align:center}._projectStatValue_85daq_406{font-size:22px;font-weight:700;color:#e5e5e5;font-family:monospace;font-variant-numeric:tabular-nums}._projectStatLabel_85daq_414{font-size:12px;color:#888;margin-top:4px}._projectStatsSection_85daq_420{display:flex;flex-direction:column;gap:10px}._projectStatsSectionTitle_85daq_426{font-size:14px;font-weight:600;color:#ccc;padding-bottom:4px;border-bottom:1px solid #333}._projectStatsModelCard_85daq_434{background:#111;border:1px solid #333;border-radius:6px;padding:10px 12px}._projectStatsModelHeader_85daq_441{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #333}._projectStatsModelName_85daq_450{font-size:13px;font-weight:600;color:#e5e5e5}._projectStatsModelCount_85daq_456{font-size:12px;color:#888;font-family:monospace}._pluginDirHint_85daq_463{margin-bottom:12px;font-size:12px;color:#888}._pluginDirPath_85daq_469{font-family:Menlo,Monaco,monospace;color:#aaa;cursor:pointer;padding:1px 4px;border-radius:3px;background:#1a1a1a}._pluginDirPath_85daq_469:hover{color:#3b82f6}._pluginList_85daq_482{display:flex;flex-direction:column;gap:8px}._pluginItem_85daq_488{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #303030;border-radius:6px;background:#141414}._pluginInfo_85daq_498{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}._pluginName_85daq_506{font-size:14px;color:#e5e5e5;font-weight:500}._pluginFile_85daq_512{font-size:12px;color:#666;font-family:Menlo,Monaco,monospace}._pluginHooks_85daq_518{display:flex;gap:4px;flex-wrap:wrap;margin-top:2px}._pluginHookTag_85daq_525{font-size:11px;padding:0 5px;border-radius:3px;background:#1e3a5f;color:#6cb6ff;line-height:18px}._pluginActions_85daq_534{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:12px}._pluginEmpty_85daq_542{text-align:center;padding:32px 0;color:#999}._cachePopover_85daq_549{max-width:800px}._cacheScrollArea_85daq_553{max-height:450px;overflow-y:auto}._cachePopoverTitle_85daq_558{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:#e5e5e5}._cachePopoverHeader_85daq_567{margin-bottom:8px;padding-bottom:6px;border-bottom:1px solid #333}._cacheCopyBtn_85daq_573{font-size:14px;color:#888;cursor:pointer;transition:color .2s;margin-left:8px}._cacheCopyBtn_85daq_573:hover{color:#e5e5e5}._cachePopoverEmpty_85daq_585{padding:8px 4px;color:#999;font-size:13px}._cacheTokenInfo_85daq_591{display:flex;align-items:center;font-size:12px;font-family:monospace;color:#aaa;margin-bottom:8px}._cacheSection_85daq_600{margin-bottom:10px}._cacheSectionTitle_85daq_604{font-size:12px;font-weight:600;color:#aaa;margin-bottom:4px}._cacheCodeBlock_85daq_611{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.5;color:#ccc;background:#111;border:1px solid #2a2a2a;border-radius:4px;padding:8px;margin:4px 0;font-family:Menlo,Monaco,monospace}._cacheCodeBlockSystem_85daq_625{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.5;color:#ccc;background:#0d1b2a;border:1px solid #1b3a5c;border-radius:4px;padding:8px;margin:4px 0;font-family:Menlo,Monaco,monospace}._cacheNavBtn_85daq_639{margin-left:auto;font-size:11px;color:#1668dc;cursor:pointer;border:1px solid #1668dc;border-radius:3px;padding:1px 6px;white-space:nowrap}._cacheNavBtn_85daq_639:hover{background:#1668dc26}._cacheNavList_85daq_654{width:600px;max-height:300px;overflow-y:auto}._cacheNavItem_85daq_660{padding:4px 8px;font-size:12px;color:#ccc;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:3px}._cacheNavItem_85daq_660:hover{background:#1668dc33;color:#fff}._cacheBlockHighlight_85daq_676{box-shadow:0 0 10px #1668dc99;transition:box-shadow .2s ease-in}._cacheBlockHighlightFading_85daq_681{box-shadow:0 0 10px #1668dc00;transition:box-shadow 3s ease-out}._cacheBorderSvg_85daq_686{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible}._cacheBorderSvgFading_85daq_695{opacity:0;transition:opacity 3s ease-out}._cacheBorderRect_85daq_700{animation:_cacheDashRotate_85daq_1 4s linear infinite}@keyframes _cacheDashRotate_85daq_1{0%{stroke-dashoffset:0}to{stroke-dashoffset:-100}}._centerEmpty_oxhcp_1{display:flex;align-items:center;justify-content:center;height:100%}._scrollContainer_oxhcp_8{overflow:auto;height:100%;-webkit-overflow-scrolling:touch;will-change:scroll-position}._listItem_oxhcp_15{cursor:pointer;padding:8px 12px;border-left:3px solid transparent;border-bottom:1px solid #1f1f1f;transition:background .15s}._listItem_oxhcp_15:hover{background:#151515}._listItemActive_oxhcp_27{background:#1a2332;border-left-color:#3b82f6}._listItemActive_oxhcp_27:hover{background:#1a2332}._itemContent_oxhcp_36{width:100%;min-width:0}._itemHeader_oxhcp_41{display:flex;align-items:center;gap:6px;margin-bottom:4px;font-size:12px}._tagNoMargin_oxhcp_49{margin:0;font-size:12px}._modelName_oxhcp_54{font-size:12px}._time_oxhcp_58{font-size:12px;color:#6b7280;margin-left:auto}._detailRow_oxhcp_64{display:flex;gap:8px;font-size:12px;align-items:center}._urlText_oxhcp_71{color:#555;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}._duration_oxhcp_80{color:#6b7280;flex-shrink:0}._statusOk_oxhcp_85{color:#52c41a;opacity:.5;flex-shrink:0}._statusErr_oxhcp_91{color:#ef4444;flex-shrink:0}._statusDefault_oxhcp_96{color:#9ca3af;flex-shrink:0}._usageBox_oxhcp_101{background:#111;border-radius:4px;padding:3px 6px;margin-top:4px;font-size:12px;color:#6b7280;line-height:1.6}._cacheDot_oxhcp_111{display:inline-block;width:6px;height:6px;border-radius:50%;margin:0 3px;vertical-align:middle}._cacheDotLoss_oxhcp_120{background-color:#8b1a1a;cursor:help}._cacheDotNormal_oxhcp_125{background-color:#3a3a3a}._GzYRV{line-height:1.2;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}._3eOF8{margin-right:5px;font-weight:700}._3eOF8+._3eOF8{margin-left:-5px}._1MFti{cursor:pointer}._f10Tu{font-size:1.2em;margin-right:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._1UmXx:after{content:"▸"}._1LId0:after{content:"▾"}._1pNG9{margin-right:5px}._1pNG9:after{content:"...";font-size:.8em}._2IvMF{background:#eee}._2bkNM{margin:0;padding:0 10px}._1BXBN{margin:0;padding:0}._1MGIk{font-weight:600;margin-right:5px;color:#000}._3uHL6{color:#000}._2T6PJ,._1Gho6{color:#df113a}._vGjyY{color:#2a3f3c}._1bQdo{color:#0b75f5}._3zQKs{color:#469038}._1xvuR{color:#43413d}._oLqym,._2AXVT,._2KJWg{color:#000}._11RoI{background:#002b36}._17H2C,._3QHg2,._3fDAz{color:#fdf6e3}._2bSDX{font-weight:bolder;margin-right:5px;color:#fdf6e3}._gsbQL{color:#fdf6e3}._LaAZe,._GTKgm{color:#81b5ac}._Chy1W{color:#cb4b16}._2bveF{color:#d33682}._2vRm-{color:#ae81ff}._1prJR{color:#268bd2}._container_1h2lr_1{background:#0d1117;border-radius:6px;border:1px solid #2a2a2a;padding:12px;font-size:13px;font-family:monospace;overflow:auto}._tag_17wfp_1{display:inline-block;font-size:10px;color:#6b7280;background:#ffffff0f;border:1px solid rgba(255,255,255,.1);border-radius:3px;padding:0 4px;margin-left:6px;cursor:pointer;line-height:18px;vertical-align:middle;transition:color .2s,border-color .2s;-webkit-user-select:none;user-select:none}._tag_17wfp_1:hover{color:#93c5fd;border-color:#93c5fd4d}._tagActive_17wfp_22{color:#93c5fd;border-color:#93c5fd40}._tagLoading_17wfp_27{cursor:wait;opacity:.7}._spinner_17wfp_32{display:inline-block;width:10px;height:10px;border:1.5px solid rgba(147,197,253,.3);border-top-color:#93c5fd;border-radius:50%;animation:_spin_17wfp_32 .6s linear infinite;margin-right:3px;vertical-align:middle}@keyframes _spin_17wfp_32{to{transform:rotate(360deg)}}._root_1a6ku_1{display:flex;height:100%;min-height:0;gap:0}._sidebar_1a6ku_9{width:220px;flex-shrink:0;border-right:1px solid #2a2a2a;overflow-y:auto;padding:4px 0;-webkit-overflow-scrolling:touch}._section_1a6ku_18{-webkit-user-select:none;user-select:none}._sectionHeader_1a6ku_22{display:flex;align-items:center;gap:6px;width:100%;padding:6px 10px;cursor:pointer;color:#d1d5db;font-size:12px;font-weight:600;transition:background .15s;background:none;border:0;text-align:left;font:inherit}._sectionHeader_1a6ku_22:hover{background:#ffffff0d}._sectionHeader_1a6ku_22:focus-visible{outline:1px solid rgba(99,179,237,.75);outline-offset:-1px}._arrow_1a6ku_48{font-size:10px;color:#888;flex-shrink:0}._sectionTitle_1a6ku_54{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._sectionCount_1a6ku_62{font-size:11px;color:#666;background:#1f1f1f;border-radius:10px;padding:0 6px;line-height:18px}._sectionBody_1a6ku_71{padding:2px 0}._historyToggle_1a6ku_76{display:flex;align-items:center;gap:6px;width:100%;padding:4px 10px 4px 14px;cursor:pointer;color:#666;font-size:11px;transition:color .15s,background .15s;background:none;border:0;text-align:left;font:inherit}._historyToggle_1a6ku_76:hover{color:#888;background:#ffffff08}._historyToggle_1a6ku_76:focus-visible{outline:1px solid rgba(99,179,237,.75);outline-offset:-1px}._historyToggleLabel_1a6ku_102{flex:1}._item_1a6ku_107{display:flex;align-items:center;justify-content:space-between;width:100%;padding:5px 10px 5px 24px;font-size:12px;color:#888;cursor:pointer;transition:background .15s,color .15s;background:none;border:0;text-align:left;font:inherit}._item_1a6ku_107:hover{background:#ffffff0a;color:#d1d5db}._item_1a6ku_107:focus-visible{outline:1px solid rgba(99,179,237,.75);outline-offset:-1px}._itemActive_1a6ku_133{background:#63b3ed1f;color:#63b3ed}._itemActive_1a6ku_133:hover{background:#63b3ed29;color:#63b3ed}._itemContent_1a6ku_143{flex:1;min-width:0;overflow:hidden}._itemLabel_1a6ku_149{font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}._itemSublabel_1a6ku_157{font-size:10px;color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}._itemTime_1a6ku_166{font-size:9px;color:#555;flex-shrink:0;margin-left:4px;font-family:monospace}._content_1a6ku_175{flex:1;min-width:0;overflow:auto;padding:12px 16px;-webkit-overflow-scrolling:touch}._contentEmpty_1a6ku_183{height:100%;display:flex;align-items:center;justify-content:center}._contentInner_1a6ku_190{padding-bottom:20px}._emptyWrap_1a6ku_194{display:flex;align-items:center;justify-content:center;height:200px}._roleHeader_1a6ku_202{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:nowrap}._roleBadge_1a6ku_210{font-size:10px;font-weight:600;letter-spacing:.04em;padding:2px 7px;border-radius:4px;flex-shrink:0}._role_user_1a6ku_219{background:#3b82f62e;color:#60a5fa;border:1px solid rgba(59,130,246,.3)}._role_assistant_1a6ku_225{background:#8b5cf62e;color:#a78bfa;border:1px solid rgba(139,92,246,.3)}._roleLabel_1a6ku_231{font-size:11px;color:#666;flex:1;min-width:0}._contentTime_1a6ku_238{margin-left:auto;font-size:10px;color:#555;font-family:monospace;flex-shrink:0}._turnDivider_1a6ku_246{border:none;border-top:1px solid #1e1e1e;margin:14px 0}._textBlock_1a6ku_253{margin-bottom:8px;border:1px solid #222;border-radius:6px;overflow:hidden}._textBlockBar_1a6ku_260{display:flex;align-items:center;gap:6px;padding:4px 10px;background:#141414;border-bottom:1px solid #222}._textBlockBody_1a6ku_269{padding:10px 12px;font-size:13px;line-height:1.7;color:#d1d5db;word-break:break-word}._textBlockCompact_1a6ku_277{position:relative;padding:8px 10px;font-size:12px;color:#aaa}._textBlockCompactFloat_1a6ku_284{float:right;margin-left:6px;margin-bottom:2px}._thinkingBlock_1a6ku_291{margin-bottom:8px;border:1px solid #2a2a1e;border-radius:6px;overflow:hidden;background:#111108}._thinkingHeader_1a6ku_299{display:flex;align-items:center;gap:6px;padding:5px 10px;cursor:pointer;font-size:12px;color:#888;transition:background .15s}._thinkingHeader_1a6ku_299:hover{background:#ffffc808}._thinkingPreview_1a6ku_314{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666;font-size:11px}._thinkingBody_1a6ku_324{padding:8px 12px;border-top:1px solid #2a2a1e}._toolBlock_1a6ku_330{margin-bottom:8px;border:1px solid #222;border-radius:6px;overflow:hidden}._toolBlockResult_1a6ku_337{border-color:#1a2a1a}._toolBlockError_1a6ku_341{border-color:#2a1a1a}._toolBlockHeader_1a6ku_345{display:flex;align-items:center;gap:8px;padding:5px 10px;background:#141414;border-bottom:1px solid #222;font-size:12px;flex-wrap:wrap}._toolBlockBody_1a6ku_356{padding:8px 10px;font-size:12px}._toolName_1a6ku_361{color:#d1d5db;font-weight:500;font-family:monospace}._toolId_1a6ku_367{color:#555;font-size:10px;font-family:monospace;margin-left:auto}._errorLabel_1a6ku_374{font-size:10px;color:#f87171;background:#ef44441f;border:1px solid rgba(239,68,68,.25);border-radius:3px;padding:1px 5px}._blockTag_1a6ku_384{font-size:9px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;padding:1px 5px;border-radius:3px;background:#1a1a1a;color:#666;border:1px solid #2a2a2a;flex-shrink:0}._blockTagText_1a6ku_397{background:#3b82f61a;color:#60a5fa;border-color:#3b82f633}._blockTagThinking_1a6ku_403{background:#eab3081a;color:#ca8a04;border-color:#eab30833}._blockTagResult_1a6ku_409{background:#22c55e1a;color:#4ade80;border-color:#22c55e33}._blockTagError_1a6ku_415{background:#ef44441a;color:#f87171;border-color:#ef444433}._jsonBlock_1a6ku_422{margin-bottom:8px;border:1px solid #222;border-radius:6px;overflow:hidden}._jsonBlockLabel_1a6ku_429{font-size:10px;color:#666;padding:3px 10px;background:#141414;border-bottom:1px solid #222;font-family:monospace}._blockSeparator_1a6ku_439{border:none;border-top:1px solid #2a2a2a;margin:16px 0}._markdownBody_1a6ku_446{font-size:13px;line-height:1.7;color:#d1d5db;word-break:break-word}._container_ty3f8_1{height:100%;overflow:auto;padding:0 16px;-webkit-overflow-scrolling:touch;will-change:scroll-position}._emptyState_ty3f8_9{display:flex;align-items:center;justify-content:center;height:100%}._urlSection_ty3f8_16{padding:12px 0;border-bottom:1px solid #1f1f1f;display:flex;align-items:flex-start}._urlLeft_ty3f8_23{flex:1;min-width:0}._tokenStatsBox_ty3f8_28{flex-shrink:0;padding-left:12px;display:flex;align-items:center}._tokenGrid_ty3f8_35{display:flex;border:1px solid #303030;border-radius:6px;overflow:hidden;min-width:360px;font-size:11px;line-height:1.6}._tokenRows_ty3f8_45{flex:1}._tokenRow_ty3f8_45{display:flex}._tokenRowBorder_ty3f8_53{border-top:1px solid #303030}._tokenLabel_ty3f8_57{color:#888;padding:4px 8px;white-space:nowrap;font-weight:600}._tokenTd_ty3f8_64{flex:1;color:#d1d5db;text-align:right;padding:4px 8px;font-family:monospace;white-space:nowrap}._tokenHitRate_ty3f8_73{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#d1d5db;padding:4px 8px;font-family:monospace;white-space:nowrap;border-left:1px solid #303030;min-width:100px}._tokenHitRateLabel_ty3f8_86{color:#888;font-size:10px;font-family:sans-serif}._tokenRowBorder_ty3f8_53 td{border-top:1px solid #303030}._urlText_ty3f8_96{color:#d1d5db;font-size:13px;margin-bottom:8px;word-break:break-all}._metaText_ty3f8_103,._headersContainer_ty3f8_107{font-size:12px}._headerRow_ty3f8_111{display:flex;padding:4px 0;border-bottom:1px solid #1f1f1f}._headerKey_ty3f8_117{min-width:200px;flex-shrink:0}._headerValue_ty3f8_122{word-break:break-all;margin-left:8px}._streamingBox_ty3f8_127{padding:20px;background:#1a1a1a;border-radius:6px;border:1px solid #2a2a2a}._bodyToolbar_ty3f8_134{display:flex;gap:8px;margin-bottom:8px}._rawTextPre_ty3f8_140{background:#0d1117;border:1px solid #2a2a2a;border-radius:6px;padding:12px;font-size:12px;color:#e5e7eb;overflow:auto;max-height:600px;white-space:pre-wrap;word-break:break-all}._tabContent_ty3f8_153{padding:12px 0}._collapseSpacing_ty3f8_157{margin-bottom:16px}._bodyLabel_ty3f8_161{margin:0}._bodyHeader_ty3f8_165{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}._diffSection_ty3f8_172{margin-bottom:16px}._diffToggle_ty3f8_176{display:inline-block;margin-bottom:8px;cursor:pointer}._diffIcon_ty3f8_182{font-size:12px;margin-left:4px}._viewInChatBtn_ty3f8_187{display:inline-flex;align-items:center;height:26px;border-radius:13px;border:1px solid #424242;background:transparent;color:#888;cursor:pointer;font-size:12px;transition:all .2s;padding:0 10px;white-space:nowrap}._viewInChatBtn_ty3f8_187:hover{border-color:#666;color:#d1d5db;background:#ffffff0f}._reminderSelect_ty3f8_208{min-width:140px;font-size:12px}._reminderSelect_ty3f8_208 .ant-select-selector.ant-select-selector{border-radius:2px;border-color:#424242;background:transparent;min-height:26px;height:auto;padding:0 8px;font-family:monospace}._reminderSelect_ty3f8_208 .ant-select-selection-placeholder{font-size:11px}._avatar_drlif_3{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}._avatarImg_drlif_13{width:32px;height:32px;border-radius:50%;flex-shrink:0;object-fit:cover}._bubble_drlif_21{border-radius:8px;border:1px solid #222;box-sizing:border-box;padding:6px 10px;max-width:100%;font-size:14px;line-height:1.6;word-break:break-word}._messageRow_drlif_34{display:flex;gap:10px;padding:8px 0}._messageRowEnd_drlif_40{display:flex;gap:10px;padding:8px 0;justify-content:flex-end}._contentCol_drlif_49{min-width:0}._contentColLimited_drlif_53{min-width:0;max-width:80%;width:fit-content}._labelRow_drlif_61{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}._labelRowEnd_drlif_68{display:flex;justify-content:flex-end;align-items:center;margin-bottom:2px}._labelRight_drlif_75{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-left:auto}._labelText_drlif_83{font-size:11px}._timeText_drlif_87,._timeTextNoMargin_drlif_93{font-size:10px;color:#6b7280;flex-shrink:0}._labelTextRight_drlif_99{font-size:11px;margin-left:auto}._bubbleUser_drlif_106{background:#1668dc;color:#e5e7eb}._bubbleAssistant_drlif_112{background:#141414;color:#e5e7eb;transition:box-shadow 0s;position:relative}._bubbleHighlight_drlif_120{box-shadow:0 0 10px #1668dc99}._bubbleHighlightFading_drlif_124{box-shadow:0 0 10px #1668dc00;transition:box-shadow 5s ease-out}._borderSvg_drlif_129{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible}._borderSvgFading_drlif_138{opacity:0;transition:opacity 5s ease-out}._borderRect_drlif_143{animation:_dashRotate_drlif_1 4s linear infinite}@keyframes _dashRotate_drlif_1{0%{stroke-dashoffset:0}to{stroke-dashoffset:-100}}._bubblePlan_drlif_152{background:#141428;border:5px solid #1668dc;font-size:12px;color:#e5e7eb}._bubbleSubAgent_drlif_160{background:#1a1a21;color:#e5e7eb}._bubbleSelection_drlif_166{background:#1a3a1a;color:#e5e7eb}._systemTagLabel_drlif_174{font-size:12px}._skillLabel_drlif_178{font-size:12px;color:#a78bfa}._systemTagPre_drlif_183{font-size:12px;color:#9ca3af;white-space:pre-wrap;word-break:break-all;margin:0}._collapseMargin_drlif_191{margin:4px 0}._collapseNoMargin_drlif_195{margin:0}._thinkingLabel_drlif_201{font-size:12px}._bashCollapseLabel_drlif_205{font-size:12px;color:#9ca3af}._toolBox_drlif_212{background:#1a1a21;border:1px solid #2a2a3e;border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._toolLabel_drlif_221{color:#a78bfa}._codePre_drlif_227{font-size:12px;margin:4px 0 0;white-space:pre-wrap;word-break:break-all;background:#111;border-radius:4px;padding:6px 8px}._pathTag_drlif_239{color:#7dd3fc;font-size:11px}._pathTagClickable_drlif_244{color:#666;font-size:11px;cursor:pointer}._pathTagClickable_drlif_244:hover{text-decoration:underline;color:#93c5fd}._descSpan_drlif_257{color:#6b7280;font-weight:400}._secondarySpan_drlif_262{color:#6b7280}._patternSpan_drlif_266{color:#fbbf24}._kvContainer_drlif_272{margin-top:4px;font-size:11px}._kvItem_drlif_277{margin:2px 0}._kvKey_drlif_281{color:#7dd3fc}._kvValue_drlif_285{color:#9ca3af}._toolResult_drlif_291{background:#111420;border:1px solid #1e293b;border-radius:6px;padding:6px 10px;margin:2px 0 6px;font-size:11px}._toolResultLabel_drlif_300{font-size:11px}._compactLabel_drlif_306{font-size:12px;color:#93c5fd}._compactPre_drlif_311{font-size:12px;color:#d1d5db;white-space:pre-wrap;word-break:break-all;margin:0}._viewRequestBtn_drlif_321{font-size:10px;color:#555;cursor:pointer;margin-left:6px;flex-shrink:0}._viewRequestBtn_drlif_321:hover{color:#93c5fd}._optionList_drlif_335{padding-left:8px}._optionDesc_drlif_339{color:#555;margin-left:6px;font-weight:400}._questionText_drlif_347{font-size:13px;color:#ccc;margin-bottom:4px}._questionSpacing_drlif_353{margin-bottom:10px}._option_drlif_335{font-size:12px;padding:1px 0}._askQuestionBox_drlif_366{background:#0d1f0d;border:1px solid #2ea043;border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._askQuestionHeader_drlif_375{display:inline-block;background:#1a3a1a;color:#7ee787;font-size:10px;padding:1px 6px;border-radius:4px;margin-bottom:4px;font-weight:600}._askQuestionText_drlif_386{color:#e5e7eb;font-size:13px;margin-bottom:4px}._askOptionItem_drlif_392{font-size:12px;color:#9ca3af;padding:1px 0;display:flex;align-items:center;gap:4px}._askOptionSelected_drlif_401{color:#e5e7eb;font-weight:600}._askCheckSvg_drlif_406{flex-shrink:0;vertical-align:middle}._planModeBox_drlif_413{background:#0d1528;border:1px solid #1668dc;border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._planModeLabel_drlif_422{color:#93c5fd;font-weight:600}._planModePermissions_drlif_427{margin-top:6px;padding-top:6px;border-top:1px solid #1e3a5f}._planModePermLabel_drlif_433{color:#6b7280;font-size:11px;margin-bottom:2px}._planModeHeader_drlif_439{display:flex;justify-content:space-between;align-items:center}._planStatusBadge_drlif_445{font-size:11px;font-weight:600;padding:1px 8px;border-radius:10px;line-height:1.6}._planStatusApproved_drlif_453{border-color:#22c55e}._planStatusApproved_drlif_453._planStatusBadge_drlif_445{background:#22c55e26;color:#4ade80}._planStatusRejected_drlif_462{border-color:#ef4444}._planStatusRejected_drlif_462._planStatusBadge_drlif_445{background:#ef444426;color:#f87171}._planStatusPending_drlif_471{border-color:#1668dc}._planStatusPending_drlif_471._planStatusBadge_drlif_445{background:#1668dc26;color:#93c5fd}._planFeedback_drlif_480{margin-top:6px;padding:6px 8px;background:#ef444414;border-radius:4px;font-size:12px;color:#e5e7eb}._planFeedbackLabel_drlif_489{color:#f87171;font-weight:600}._planApprovalActions_drlif_494{display:flex;gap:8px;margin-top:8px}._planApproveBtn_drlif_500{padding:4px 16px;border-radius:4px;border:1px solid #22c55e;background:#22c55e26;color:#4ade80;font-size:13px;cursor:pointer;transition:background .15s}._planApproveBtn_drlif_500:hover{background:#22c55e4d}._planRejectBtn_drlif_515{padding:4px 16px;border-radius:4px;border:1px solid #ef4444;background:#ef444426;color:#f87171;font-size:13px;cursor:pointer;transition:background .15s}._planRejectBtn_drlif_515:hover{background:#ef44444d}._planOptionBtn_drlif_530{padding:4px 16px;border-radius:4px;border:1px solid #6b7280;background:#6b728026;color:#d1d5db;font-size:13px;cursor:pointer;transition:background .15s}._planOptionBtn_drlif_530:hover{background:#6b72804d}._planFeedbackInputWrap_drlif_545{margin-top:8px}._planFeedbackTextarea_drlif_549{width:100%;min-height:60px;max-height:120px;padding:8px 10px;border-radius:4px;border:1px solid #4b5563;background:#1f2937;color:#e5e7eb;font-size:13px;line-height:1.5;resize:vertical;font-family:inherit;outline:none}._planFeedbackTextarea_drlif_549:focus{border-color:#3b82f6}._planFeedbackBtnRow_drlif_569{display:flex;gap:8px;margin-top:6px;justify-content:flex-end}._planFeedbackSendBtn_drlif_576{padding:4px 16px;border-radius:4px;border:1px solid #3b82f6;background:#3b82f633;color:#60a5fa;font-size:13px;cursor:pointer;transition:background .15s}._planFeedbackSendBtn_drlif_576:hover{background:#3b82f659}._planFeedbackSendBtn_drlif_576:disabled{opacity:.4;cursor:not-allowed}._planFeedbackCancelBtn_drlif_596{padding:4px 16px;border-radius:4px;border:1px solid #6b7280;background:#6b728026;color:#d1d5db;font-size:13px;cursor:pointer;transition:background .15s}._planFeedbackCancelBtn_drlif_596:hover{background:#6b72804d}._askQuestionInteractive_drlif_613{background:#0d1528;border:1px solid #1668dc;border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._askRadioGroup_drlif_622{display:flex;flex-direction:column;gap:2px;padding-left:4px;margin-top:4px}._askRadioItem_drlif_630{color:#d1d5db;font-size:12px;padding:3px 0;cursor:pointer;display:flex;align-items:baseline;gap:6px;-webkit-user-select:none;user-select:none}._askRadioItem_drlif_630:hover{color:#fff}._askRadioItemSelected_drlif_645{color:#58a6ff}._askRadioDot_drlif_649{flex-shrink:0;font-size:13px;line-height:1}._askRadioGroup_drlif_622 .ant-radio-wrapper,._askCheckboxGroup_drlif_656 .ant-checkbox-wrapper{color:#d1d5db;font-size:12px;padding:3px 0;cursor:pointer;pointer-events:auto}._askRadioGroup_drlif_622 .ant-radio-wrapper>span,._askRadioGroup_drlif_622 .ant-radio{cursor:pointer;pointer-events:auto}._askRadioGroup_drlif_622 .ant-radio-input{cursor:pointer}._askCheckboxGroup_drlif_656{display:flex;flex-direction:column;gap:2px;padding-left:4px;margin-top:4px}._askOtherInput_drlif_682{margin-top:4px;margin-left:24px;width:calc(100% - 24px)}._askOtherInput_drlif_682 .ant-input{background:#1f2937;border-color:#4b5563;color:#e5e7eb;font-size:12px}._askSubmitRow_drlif_695{display:flex;justify-content:flex-end;margin-top:8px}._askSubmitBtn_drlif_701{padding:4px 20px;border-radius:4px;border:1px solid #1668dc;background:#1668dc33;color:#60a5fa;font-size:13px;cursor:pointer;transition:background .15s}._askSubmitBtn_drlif_701:hover{background:#1668dc59}._askSubmitBtn_drlif_701:disabled{opacity:.4;cursor:not-allowed}._askMarkdownLayout_drlif_721{display:flex;gap:12px;margin-top:4px}._askMarkdownLayout_drlif_721>:first-child{flex:1;min-width:0}._askMarkdownPreview_drlif_732{flex:1;min-width:0;background:#0d1117;border:1px solid #2a2a3e;border-radius:6px;padding:8px 10px;font-size:12px;color:#d1d5db;max-height:240px;overflow-y:auto}._askMarkdownPreview_drlif_732 pre{white-space:pre-wrap;word-break:break-all;margin:0;font-family:SF Mono,Menlo,Consolas,monospace;font-size:11px;line-height:1.5}._wrapper_veubx_1{margin:6px 0;background:#1a1a21;border:1px solid #2a2a3e;border-radius:6px;padding:8px 12px}._header_veubx_9{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}._headerRight_veubx_16{display:flex;align-items:center;gap:12px;flex-shrink:0;white-space:nowrap}._filePath_veubx_24{color:#a78bfa;font-size:12px;font-weight:600}._filePathClickable_veubx_30{color:#a78bfa;font-size:12px;font-weight:600;cursor:pointer}._filePathClickable_veubx_30:hover{text-decoration:underline;color:#c4b5fd}._toggle_veubx_42{color:#6b7280;font-size:11px;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;flex-shrink:0}._diffSummary_veubx_51{font-size:11px;color:#6b7280}._diffBody_veubx_58{display:flex;font-family:SF Mono,Cascadia Code,Fira Code,Menlo,Consolas,monospace;font-size:12px;line-height:1.5}._gutter_veubx_66{flex-shrink:0;-webkit-user-select:none;user-select:none}._gutterRow_veubx_71{display:flex;height:18px}._lineNumOld_veubx_76,._lineNumNew_veubx_77{text-align:right;color:#484f58;padding:0 6px 0 2px;box-sizing:border-box}._prefix_veubx_84{width:16px;min-width:16px;text-align:center;font-weight:600}._codeWrap_veubx_92{flex:1;min-width:0;overflow-x:auto}._codeInner_veubx_99{display:inline-block;min-width:100%}._codeLine_veubx_104{white-space:pre;padding:0 4px;height:18px}._rowContext_veubx_112{background:#1a1a21;color:#8b949e}._rowDel_veubx_117{background:#ef44441f;color:#fca5a5}._rowDel_veubx_117._gutterRow_veubx_71{background:#341f31}._rowDel_veubx_117._gutterRow_veubx_71 ._prefix_veubx_84{color:#ef4444}._rowAdd_veubx_128{background:#22c55e1f;color:#86efac}._rowAdd_veubx_128._gutterRow_veubx_71{background:#1b2f34}._rowAdd_veubx_128._gutterRow_veubx_71 ._prefix_veubx_84{color:#22c55e}._rowContext_veubx_112._gutterRow_veubx_71{background:#1a1a21}._plainResult_zn49o_1{background:#111;border-radius:6px;font-size:12px}._plainTitle_zn49o_7{font-size:11px}._plainPre_zn49o_11{color:#d1d5db;margin:0;white-space:pre-wrap;word-break:break-all;font-size:12px;padding:8px 12px}._codeResult_zn49o_20{background:#111;border-radius:4px;border:1px solid #1e293b;overflow:hidden}._codeHeader_zn49o_27{display:flex;justify-content:space-between;align-items:center;padding:4px 10px;background:#111}._codeHeader_zn49o_27:not(:last-child){border-bottom:1px solid #1e293b}._codeTitle_zn49o_39{font-size:11px;color:#8b949e}._codeToggle_zn49o_44{font-size:11px;color:#484f58;cursor:pointer;-webkit-user-select:none;user-select:none}._codePre_zn49o_51{margin:0;padding:8px 12px;font-size:12px;line-height:1.5;overflow:auto;max-height:500px}._markdownBody_zn49o_60{padding:8px 12px;font-size:13px;line-height:1.6;overflow:auto;max-height:500px}._fileExplorer_1g58f_1{width:240px;flex-shrink:0;background:#111;border-right:1px solid #2a2a2a;display:flex;flex-direction:column;overflow:hidden;-webkit-user-select:none;user-select:none}._header_1g58f_12{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #2a2a2a;flex-shrink:0}._headerTitle_1g58f_21{font-size:11px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.5px}._collapseBtn_1g58f_29{width:20px;height:20px;border:none;background:none;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:0}._collapseBtn_1g58f_29:hover{color:#ccc;background:#2a2a2a}._treeContainer_1g58f_48{flex:1;overflow:auto;padding:4px 0}._treeItem_1g58f_54{display:flex;align-items:center;height:26px;padding:0 8px;cursor:pointer;color:#ccc;font-size:13px;white-space:nowrap;transition:background .1s}._treeItem_1g58f_54:hover{background:#1a1a1a}._treeItem_1g58f_54._treeItemSelected_1g58f_70{background:#532f00}._arrow_1g58f_74{width:16px;flex-shrink:0;color:#666;display:flex;align-items:center;justify-content:center}._icon_1g58f_83{width:16px;height:16px;flex-shrink:0;margin-right:6px;display:flex;align-items:center;justify-content:center}._fileName_1g58f_93{overflow:hidden;text-overflow:ellipsis}._fileNameInput_1g58f_98{background:transparent;border:none;border-bottom:1px solid #528bff;color:#ccc;font-size:13px;font-family:inherit;padding:0;margin:0;outline:none;width:100%;min-width:40px;height:20px;line-height:20px}._loading_1g58f_114{color:#555;font-size:12px;padding:4px 8px}._error_1g58f_120{color:#ff6b6b;font-size:12px;padding:4px 8px}._treeItemGitIgnored_1g58f_126{opacity:.4}._fileContentView_7x6gt_1{display:flex;flex-direction:column;height:100%;background:#0d0d0d;animation:_slideInFromRight_7x6gt_1 .25s ease-out}@keyframes _slideInFromRight_7x6gt_1{0%{transform:translate(-40px);opacity:0}to{transform:translate(0);opacity:1}}._closing_7x6gt_20{animation:_slideOutToRight_7x6gt_1 .2s ease-in forwards}@keyframes _slideOutToRight_7x6gt_1{0%{transform:translate(0);opacity:1}to{transform:translate(-40px);opacity:0}}._editorBanner_7x6gt_35{padding:6px 16px;background:#1a3a2a;color:#4ade80;font-size:12px;text-align:center;flex-shrink:0;border-bottom:1px solid #2a5a3a;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s}._editorBanner_7x6gt_35:hover{background:#245a3a}._header_7x6gt_52{display:flex;align-items:center;justify-content:space-between;padding:6px 16px;border-bottom:1px solid #2a2a2a;background:#111;flex-shrink:0}._headerLeft_7x6gt_62{display:flex;align-items:center;gap:8px;flex:1;min-width:0}._headerRight_7x6gt_70{display:flex;align-items:center;gap:10px;flex-shrink:0}._backBtn_7x6gt_77{width:28px;height:28px;border:none;background:none;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:6px;padding:0;flex-shrink:0;transition:background .15s,color .15s}._backBtn_7x6gt_77:hover{color:#ccc;background:#1a1a1a}._filePath_7x6gt_98{font-size:13px;color:#ccc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fileSize_7x6gt_106{font-size:11px;color:#666;flex-shrink:0;margin-left:8px}._closeBtn_7x6gt_113{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #3a3a3a;background:#1a1a1a;color:#888;border-radius:6px;cursor:pointer;transition:background .15s,color .15s,border-color .15s}._closeBtn_7x6gt_113:hover{background:#2a2a2a;color:#fff;border-color:#4a4a4a}._saveBtn_7x6gt_134{display:flex;align-items:center;gap:5px;padding:4px 12px;border:1px solid #3a3a3a;background:#1a1a1a;color:#ccc;font-size:12px;border-radius:6px;cursor:pointer;transition:background .15s,color .15s,border-color .15s;white-space:nowrap}._saveBtn_7x6gt_134:hover:not(:disabled){background:#2a2a2a;color:#fff;border-color:#4a4a4a}._saveBtn_7x6gt_134:disabled{opacity:.4;cursor:not-allowed}._saveStatus_7x6gt_160{font-size:11px;color:#888;white-space:nowrap}._saveStatusSaved_7x6gt_166{color:#4caf50}._saveStatusFailed_7x6gt_170{color:#ff6b6b}._contentContainer_7x6gt_174{flex:1;overflow:hidden;background:#0d0d0d;display:flex;min-height:0;min-width:0}._editorWrapper_7x6gt_183{flex:1;display:flex;min-height:0;min-width:0;overflow:hidden}._lineNumCol_7x6gt_191{flex-shrink:0;width:56px;overflow:hidden;background:#0d0d0d;border-right:1px solid #2a2a2a;-webkit-user-select:none;user-select:none;padding-top:4px}._lineNumRow_7x6gt_201{padding:0 16px;text-align:right;color:#555;font-family:SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,Courier New,monospace;font-size:13px;line-height:1.5;white-space:nowrap}._editorCol_7x6gt_211{flex:1;min-width:0;min-height:0;display:flex}._editorCol_7x6gt_211 .cm-theme{flex:1;display:flex;min-height:0;min-width:0}._editorCol_7x6gt_211 .cm-editor{flex:1;min-width:0;min-height:0}._loading_7x6gt_231{display:flex;align-items:center;justify-content:center;height:100%;width:100%;color:#666;font-size:14px}._error_7x6gt_241{display:flex;align-items:center;justify-content:center;height:100%;width:100%;color:#ff6b6b;font-size:14px}._imageViewer_1vf1x_1{display:flex;flex-direction:column;height:100%;background:#0d0d0d}._header_1vf1x_8{display:flex;align-items:center;justify-content:space-between;padding:6px 16px;border-bottom:1px solid #2a2a2a;background:#111;flex-shrink:0}._headerLeft_1vf1x_18{display:flex;align-items:center;gap:8px;flex:1;min-width:0}._headerRight_1vf1x_26{display:flex;align-items:center;gap:10px;flex-shrink:0}._backBtn_1vf1x_33{width:28px;height:28px;border:none;background:none;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:6px;padding:0;flex-shrink:0;transition:background .15s,color .15s}._backBtn_1vf1x_33:hover{color:#ccc;background:#1a1a1a}._filePath_1vf1x_54{font-size:13px;color:#ccc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fileSize_1vf1x_62{font-size:11px;color:#666;flex-shrink:0}._toolbar_1vf1x_68{display:flex;align-items:center;gap:4px;padding:6px 16px;background:#111;border-bottom:1px solid #2a2a2a;flex-shrink:0}._toolBtn_1vf1x_78{width:28px;height:28px;border:1px solid #3a3a3a;background:#1a1a1a;color:#999;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:6px;padding:0;transition:background .15s,color .15s,border-color .15s}._toolBtn_1vf1x_78:hover{background:#2a2a2a;color:#fff;border-color:#4a4a4a}._zoomLabel_1vf1x_99{font-size:11px;color:#888;min-width:42px;text-align:center;-webkit-user-select:none;user-select:none}._canvasArea_1vf1x_107{flex:1;overflow:hidden;position:relative;cursor:grab;background-color:#1a1a1a;background-image:linear-gradient(45deg,#222 25%,transparent 25%),linear-gradient(-45deg,#222 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#222 75%),linear-gradient(-45deg,transparent 75%,#222 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}._canvasArea_1vf1x_107._dragging_1vf1x_122{cursor:grabbing}._imageWrap_1vf1x_126{position:absolute;top:0;left:0;transform-origin:0 0}._imageWrap_1vf1x_126 img{display:block;max-width:none;image-rendering:auto}._statusBar_1vf1x_139{display:flex;align-items:center;gap:16px;padding:4px 16px;background:#111;border-top:1px solid #2a2a2a;flex-shrink:0;font-size:11px;color:#666}._loading_1vf1x_151{display:flex;align-items:center;justify-content:center;height:100%;width:100%;color:#666;font-size:14px}._error_1vf1x_161{display:flex;align-items:center;justify-content:center;height:100%;width:100%;color:#ff6b6b;font-size:14px}._gitChanges_nt7bg_1{width:240px;flex-shrink:0;background:#111;border-right:1px solid #2a2a2a;display:flex;flex-direction:column;overflow:hidden;-webkit-user-select:none;user-select:none}._header_nt7bg_12{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #2a2a2a;flex-shrink:0}._headerTitle_nt7bg_21{font-size:11px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.5px}._collapseBtn_nt7bg_29{width:20px;height:20px;border:none;background:none;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:0}._collapseBtn_nt7bg_29:hover{color:#ccc;background:#2a2a2a}._changesContainer_nt7bg_48{flex:1;overflow:auto;padding:4px 0}._changeItem_nt7bg_54{display:flex;align-items:center;height:26px;padding:0 8px;cursor:pointer;color:#ccc;font-size:13px;white-space:nowrap;transition:background .1s;gap:6px}._changeItem_nt7bg_54:hover{background:#1a1a1a}._changeItem_nt7bg_54._changeItemSelected_nt7bg_71{background:#532f00}._dirItem_nt7bg_75{display:flex;align-items:center;height:26px;padding:0 8px;color:#999;font-size:13px;white-space:nowrap;gap:6px}._dirArrow_nt7bg_86{width:16px;flex-shrink:0;color:#666;display:flex;align-items:center;justify-content:center}._dirName_nt7bg_95{overflow:hidden;text-overflow:ellipsis}._status_nt7bg_100{width:16px;flex-shrink:0;font-size:11px;font-weight:600;text-align:center;margin-left:auto}._icon_nt7bg_109{width:16px;height:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center}._fileName_nt7bg_118{overflow:hidden;text-overflow:ellipsis;flex:1}._loading_nt7bg_124{color:#555;font-size:12px;padding:8px 12px}._error_nt7bg_130{color:#ff6b6b;font-size:12px;padding:8px 12px}._empty_nt7bg_136{color:#666;font-size:12px;padding:8px 12px;text-align:center}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
33
33
  Theme: GitHub Dark
34
34
  Description: Dark theme as seen on github.com
35
35
  Author: github.com
package/dist/index.html CHANGED
@@ -6,8 +6,8 @@
6
6
  <title>Claude Code Viewer</title>
7
7
  <link rel="icon" href="/favicon.ico?v=1">
8
8
  <link rel="shortcut icon" href="/favicon.ico?v=1">
9
- <script type="module" crossorigin src="/assets/index-CKwnd6Uu.js"></script>
10
- <link rel="stylesheet" crossorigin href="/assets/index-DQteFQtN.css">
9
+ <script type="module" crossorigin src="/assets/index-AD0x3eII.js"></script>
10
+ <link rel="stylesheet" crossorigin href="/assets/index-BlNBvL5K.css">
11
11
  </head>
12
12
  <body>
13
13
  <div id="root"></div>
package/interceptor.js CHANGED
@@ -198,7 +198,7 @@ export function resetWorkspace() {
198
198
  LOG_FILE = '';
199
199
  }
200
200
 
201
- const MAX_LOG_SIZE = 250 * 1024 * 1024; // 250MB
201
+ const MAX_LOG_SIZE = 150 * 1024 * 1024; // 150MB
202
202
 
203
203
  function checkAndRotateLogFile() {
204
204
  // Teammate 不做日志轮转,由 leader 负责
@@ -373,7 +373,7 @@ export function setupInterceptor() {
373
373
  }
374
374
  } catch { }
375
375
 
376
- // 用户新指令边界:检查日志文件大小,超过 250MB 则切换新文件
376
+ // 用户新指令边界:检查日志文件大小,超过 150MB 则切换新文件
377
377
  if (requestEntry?.mainAgent) {
378
378
  checkAndRotateLogFile();
379
379
  // 仅 mainAgent 请求时缓存模型名,避免 SubAgent 覆盖
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-viewer",
3
- "version": "1.6.31",
3
+ "version": "1.6.32",
4
4
  "description": "Claude Code Logger visualization management tool",
5
5
  "license": "MIT",
6
6
  "main": "server.js",